vendor: 4,819 bytes, line 1
1(function(h,y){"object"==typeof exports&&"undefined"!=typeof module?module.exports=y():"function"==typeof define&&define.amd?define(y):h.Popper=y()})(this,function(){"use strict";for(var h="undefined"!=typeof window&&"undefined"!=typeof document,y=["Edge","Trident","Firefox"],c=0,d=0;d<y.length;d+=1)if(h&&navigator.userAgent.indexOf(y[d])>=0){c=1;break}var s=h&&window.Promise?function a(V){var dt=!1;return function(){dt||(dt=!0,window.Promise.resolve().then(function(){dt=!1,V()}))}}:function v(V){var dt=!1;return function(){dt||(dt=!0,setTimeout(function(){dt=!1,V()},c))}};function n(V){return V&&"[object Function]"==={}.toString.call(V)}function r(V,dt){if(1!==V.nodeType)return[];var yt=V.ownerDocument.defaultView.getComputedStyle(V,null);return dt?yt[dt]:yt}function u(V){return"HTML"===V.nodeName?V:V.parentNode||V.host}function l(V){if(!V)return document.body;switch(V.nodeName){case"HTML":case"BODY":return V.ownerDocument.body;case"#document":return V.body}var dt=r(V);return/(auto|scroll|overlay)/.test(dt.overflow+dt.overflowY+dt.overflowX)?V:l(u(V))}var p=h&&!(!window.MSInputMethodContext||!document.documentMode),x=h&&/MSIE 10/.test(navigator.userAgent);function m(V){return 11===V?p:10===V?x:p||x}function g(V){if(!V)return document.documentElement;for(var dt=m(10)?document.body:null,gt=V.offsetParent||null;gt===dt&&V.nextElementSibling;)gt=(V=V.nextElementSibling).offsetParent;var yt=gt&>.nodeName;return yt&&"BODY"!==yt&&"HTML"!==yt?-1!==["TH","TD","TABLE"].indexOf(gt.nodeName)&&"static"===r(gt,"position")?g(gt):gt:V?V.ownerDocument.documentElement:document.documentElement}function C(V){return null!==V.parentNode?C(V.parentNode):V}function k(V,dt){if(!(V&&V.nodeType&&dt&&dt.nodeType))return document.documentElement;var gt=V.compareDocumentPosition(dt)&Node.DOCUMENT_POSITION_FOLLOWING,yt=gt?V:dt,St=gt?dt:V,Et=document.createRange();Et.setStart(yt,0),Et.setEnd(St,0);var At=Et.commonAncestorContainer;if(V!==At&&dt!==At||yt.contains(St))return function w(V){var dt=V.nodeName;return"BODY"!==dt&&("HTML"===dt||g(V.firstElementChild)===V)}(At)?At:g(At);var Ot=C(V);return Ot.host?k(Ot.host,dt):k(V,C(dt).host)}function M(V){var dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",gt="top"===dt?"scrollTop":"scrollLeft",yt=V.nodeName;if("BODY"===yt||"HTML"===yt){var St=V.ownerDocument.documentElement,Et=V.ownerDocument.scrollingElement||St;return Et[gt]}return V[gt]}function N(V,dt){var gt=arguments.length>2&&void 0!==arguments[2]&&arguments[2],yt=M(dt,"top"),St=M(dt,"left"),Et=gt?-1:1;return V.top+=yt*Et,V.bottom+=yt*Et,V.left+=St*Et,V.right+=St*Et,V}function O(V,dt){var gt="x"===dt?"Left":"Top",yt="Left"===gt?"Right":"Bottom";return parseFloat(V["border"+gt+"Width"],10)+parseFloat(V["border"+yt+"Width"],10)}function _(V,dt,gt,yt){return Math.max(dt["offset"+V],dt["scroll"+V],gt["client"+V],gt["offset"+V],gt["scroll"+V],m(10)?parseInt(gt["offset"+V])+parseInt(yt["margin"+("Height"===V?"Top":"Left")])+parseInt(yt["margin"+("Height"===V?"Bottom":"Right")]):0)}function P(V){var dt=V.body,gt=V.documentElement,yt=m(10)&&getComputedStyle(gt);return{height:_("Height",dt,gt,yt),width:_("Width",dt,gt,yt)}}var A=function(V,dt){if(!(V instanceof dt))throw new TypeError("Cannot call a class as a function")},T=function(){function V(dt,gt){for(var yt=0;yt<gt.length;yt++){var St=gt[yt];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.writable=!0),Object.defineProperty(dt,St.key,St)}}return function(dt,gt,yt){return gt&&V(dt.prototype,gt),yt&&V(dt,yt),dt}}(),L=function(V,dt,gt){return dt in V?Object.defineProperty(V,dt,{value:gt,enumerable:!0,configurable:!0,writable:!0}):V[dt]=gt,V},I=Object.assign||function(V){for(var dt=1;dt<arguments.length;dt++){var gt=arguments[dt];for(var yt in gt)Object.prototype.hasOwnProperty.call(gt,yt)&&(V[yt]=gt[yt])}return V};function F(V){return I({},V,{right:V.left+V.width,bottom:V.top+V.height})}function W(V){var dt={};try{if(m(10)){dt=V.getBoundingClientRect();var gt=M(V,"top"),yt=M(V,"left");dt.top+=gt,dt.left+=yt,dt.bottom+=gt,dt.right+=yt}else dt=V.getBoundingClientRect()}catch(Wt){}var St={left:dt.left,top:dt.top,width:dt.right-dt.left,height:dt.bottom-dt.top},Et="HTML"===V.nodeName?P(V.ownerDocument):{},Gt=V.offsetWidth-(Et.width||V.clientWidth||St.right-St.left),Xt=V.offsetHeight-(Et.height||V.clientHeight||St.bottom-St.top);if(Gt||Xt){var Zt=r(V);Gt-=O(Zt,"x"),Xt-=O(Zt,"y"),St.width-=Gt,St.height-=Xt}return F(St)}function q(V,dt){var gt=arguments.length>2&&void 0!==arguments[2]&&arguments[2],yt=m(10),St="HTML"===dt.nodeName,Et=W(V),At=W(dt),Ot=l(V),Gt=r(dt),Xt=parseFloat(Gt.borderTopWidth,10),Zt=parseFloat(Gt.borderLeftWidth,10);gt&&St&&(At.top=Math.max(At.top,0),At.left=Math.max(At.left,0));var Wt=F({top:Et.top-At.top-Xt,left:Et.left-At.left-Zt,width:Et.width,height:Et.height});
vendor: 5,912 bytes, line 1
1if(Wt.marginTop=0,Wt.marginLeft=0,!yt&&St){var ae=parseFloat(Gt.marginTop,10),se=parseFloat(Gt.marginLeft,10);Wt.top-=Xt-ae,Wt.bottom-=Xt-ae,Wt.left-=Zt-se,Wt.right-=Zt-se,Wt.marginTop=ae,Wt.marginLeft=se}return(yt&&!gt?dt.contains(Ot):dt===Ot&&"BODY"!==Ot.nodeName)&&(Wt=N(Wt,dt)),Wt}function et(V){var dt=arguments.length>1&&void 0!==arguments[1]&&arguments[1],gt=V.ownerDocument.documentElement,yt=q(V,gt),St=Math.max(gt.clientWidth,window.innerWidth||0),Et=Math.max(gt.clientHeight,window.innerHeight||0),At=dt?0:M(gt),Ot=dt?0:M(gt,"left"),Gt={top:At-yt.top+yt.marginTop,left:Ot-yt.left+yt.marginLeft,width:St,height:Et};return F(Gt)}function X(V){var dt=V.nodeName;if("BODY"===dt||"HTML"===dt)return!1;if("fixed"===r(V,"position"))return!0;var gt=u(V);return!!gt&&X(gt)}function it(V){if(!V||!V.parentElement||m())return document.documentElement;for(var dt=V.parentElement;dt&&"none"===r(dt,"transform");)dt=dt.parentElement;return dt||document.documentElement}function z(V,dt,gt,yt){var St=arguments.length>4&&void 0!==arguments[4]&&arguments[4],Et={top:0,left:0},At=St?it(V):k(V,dt);if("viewport"===yt)Et=et(At,St);else{var Ot=void 0;"scrollParent"===yt?"BODY"===(Ot=l(u(dt))).nodeName&&(Ot=V.ownerDocument.documentElement):Ot="window"===yt?V.ownerDocument.documentElement:yt;var Gt=q(Ot,At,St);if("HTML"!==Ot.nodeName||X(At))Et=Gt;else{var Xt=P(V.ownerDocument),Zt=Xt.height,Wt=Xt.width;Et.top+=Gt.top-Gt.marginTop,Et.bottom=Zt+Gt.top,Et.left+=Gt.left-Gt.marginLeft,Et.right=Wt+Gt.left}}var ae="number"==typeof(gt=gt||0);return Et.left+=ae?gt:gt.left||0,Et.top+=ae?gt:gt.top||0,Et.right-=ae?gt:gt.right||0,Et.bottom-=ae?gt:gt.bottom||0,Et}function j(V){return V.width*V.height}function tt(V,dt,gt,yt,St){var Et=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===V.indexOf("auto"))return V;var At=z(gt,yt,Et,St),Ot={top:{width:At.width,height:dt.top-At.top},right:{width:At.right-dt.right,height:At.height},bottom:{width:At.width,height:At.bottom-dt.bottom},left:{width:dt.left-At.left,height:At.height}},Gt=Object.keys(Ot).map(function(ae){return I({key:ae},Ot[ae],{area:j(Ot[ae])})}).sort(function(ae,se){return se.area-ae.area}),Xt=Gt.filter(function(ae){return ae.width>=gt.clientWidth&&ae.height>=gt.clientHeight}),Zt=Xt.length>0?Xt[0].key:Gt[0].key,Wt=V.split("-")[1];return Zt+(Wt?"-"+Wt:"")}function at(V,dt,gt){var yt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,St=yt?it(dt):k(dt,gt);return q(gt,St,yt)}function ct(V){var gt=V.ownerDocument.defaultView.getComputedStyle(V),yt=parseFloat(gt.marginTop||0)+parseFloat(gt.marginBottom||0),St=parseFloat(gt.marginLeft||0)+parseFloat(gt.marginRight||0);return{width:V.offsetWidth+St,height:V.offsetHeight+yt}}function ut(V){var dt={left:"right",right:"left",bottom:"top",top:"bottom"};return V.replace(/left|right|bottom|top/g,function(gt){return dt[gt]})}function rt(V,dt,gt){gt=gt.split("-")[0];var yt=ct(V),St={width:yt.width,height:yt.height},Et=-1!==["right","left"].indexOf(gt),At=Et?"top":"left",Ot=Et?"left":"top",Gt=Et?"height":"width",Xt=Et?"width":"height";return St[At]=dt[At]+dt[Gt]/2-yt[Gt]/2,St[Ot]=gt===Ot?dt[Ot]-yt[Xt]:dt[ut(Ot)],St}function lt(V,dt){return Array.prototype.find?V.find(dt):V.filter(dt)[0]}function kt(V,dt,gt){var yt=void 0===gt?V:V.slice(0,function ft(V,dt,gt){if(Array.prototype.findIndex)return V.findIndex(function(St){return St[dt]===gt});var yt=lt(V,function(St){return St[dt]===gt});return V.indexOf(yt)}(V,"name",gt));return yt.forEach(function(St){St.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var Et=St.function||St.fn;St.enabled&&n(Et)&&(dt.offsets.popper=F(dt.offsets.popper),dt.offsets.reference=F(dt.offsets.reference),dt=Et(dt,St))}),dt}function wt(){if(!this.state.isDestroyed){var V={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};V.offsets.reference=at(this.state,this.popper,this.reference,this.options.positionFixed),V.placement=tt(this.options.placement,V.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),V.originalPlacement=V.placement,V.positionFixed=this.options.positionFixed,V.offsets.popper=rt(this.popper,V.offsets.reference,V.placement),V.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",V=kt(this.modifiers,V),this.state.isCreated?this.options.onUpdate(V):(this.state.isCreated=!0,this.options.onCreate(V))}}function Nt(V,dt){return V.some(function(gt){return gt.enabled&>.name===dt})}function Yt(V){for(var dt=[!1,"ms","Webkit","Moz","O"],gt=V.charAt(0).toUpperCase()+V.slice(1),yt=0;yt<dt.length;yt++){var St=dt[yt],Et=St?""+St+gt:V;if(void 0!==document.body.style[Et])return Et}return null}function Qt(){return this.state.isDestroyed=!0,Nt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Yt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function $t(V){var dt=V.ownerDocument;return dt?dt.defaultView:window}function ce(V,dt,gt,yt){var St="BODY"===V.nodeName,Et=St?V.ownerDocument.defaultView:V;Et.addEventListener(dt,gt,{passive:!0}),St||ce(l(Et.parentNode),dt,gt,yt),yt.push(Et)}function fe(V,dt,gt,yt){gt.updateBound=yt,$t(V).addEventListener("resize",gt.updateBound,{passive:!0});var St=l(V);return ce(St,"scroll",gt.updateBound,gt.scrollParents),gt.scrollElement=St,gt.eventsEnabled=!0,gt}function qt(){this.state.eventsEnabled||(this.state=fe(this.reference,0,this.state,this.scheduleUpdate))}function Tt(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function Ct(V,dt){return $t(V).removeEventListener("resize",dt.updateBound),dt.scrollParents.forEac
vendor: 8,459 bytes, line 1
1h(function(gt){gt.removeEventListener("scroll",dt.updateBound)}),dt.updateBound=null,dt.scrollParents=[],dt.scrollElement=null,dt.eventsEnabled=!1,dt}(this.reference,this.state))}function jt(V){return""!==V&&!isNaN(parseFloat(V))&&isFinite(V)}function Ut(V,dt){Object.keys(dt).forEach(function(gt){var yt="";-1!==["width","height","top","right","bottom","left"].indexOf(gt)&&jt(dt[gt])&&(yt="px"),V.style[gt]=dt[gt]+yt})}var ke=h&&/Firefox/i.test(navigator.userAgent);function be(V,dt,gt){var yt=lt(V,function(Ot){return Ot.name===dt}),St=!!yt&&V.some(function(Ot){return Ot.name===gt&&Ot.enabled&&Ot.order<yt.order});if(!St){var Et="`"+dt+"`";console.warn("`"+gt+"` modifier is required by "+Et+" modifier in order to work, be sure to include it before "+Et+"!")}return St}var o=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],f=o.slice(3);function b(V){var dt=arguments.length>1&&void 0!==arguments[1]&&arguments[1],gt=f.indexOf(V),yt=f.slice(gt+1).concat(f.slice(0,gt));return dt?yt.reverse():yt}var Ht={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function G(V){var dt=V.placement,gt=dt.split("-")[0],yt=dt.split("-")[1];if(yt){var St=V.offsets,Et=St.reference,At=St.popper,Ot=-1!==["bottom","top"].indexOf(gt),Gt=Ot?"left":"top",Xt=Ot?"width":"height",Zt={start:L({},Gt,Et[Gt]),end:L({},Gt,Et[Gt]+Et[Xt]-At[Xt])};V.offsets.popper=I({},At,Zt[yt])}return V}},offset:{order:200,enabled:!0,fn:function ot(V,dt){var Gt,gt=dt.offset,St=V.offsets,Et=St.popper,At=St.reference,Ot=V.placement.split("-")[0];return Gt=jt(+gt)?[+gt,0]:function nt(V,dt,gt,yt){var St=[0,0],Et=-1!==["right","left"].indexOf(yt),At=V.split(/(\+|\-)/).map(function(Zt){return Zt.trim()}),Ot=At.indexOf(lt(At,function(Zt){return-1!==Zt.search(/,|\s/)}));At[Ot]&&-1===At[Ot].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var Gt=/\s*,\s*|\s+/,Xt=-1!==Ot?[At.slice(0,Ot).concat([At[Ot].split(Gt)[0]]),[At[Ot].split(Gt)[1]].concat(At.slice(Ot+1))]:[At];return Xt=Xt.map(function(Zt,Wt){var ae=(1===Wt?!Et:Et)?"height":"width",se=!1;return Zt.reduce(function(oe,we){return""===oe[oe.length-1]&&-1!==["+","-"].indexOf(we)?(oe[oe.length-1]=we,se=!0,oe):se?(oe[oe.length-1]+=we,se=!1,oe):oe.concat(we)},[]).map(function(oe){return function Y(V,dt,gt,yt){var St=V.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),Et=+St[1],At=St[2];return Et?0===At.indexOf("%")?F("%p"===At?gt:yt)[dt]/100*Et:"vh"===At||"vw"===At?("vh"===At?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*Et:Et:V}(oe,ae,dt,gt)})}),Xt.forEach(function(Zt,Wt){Zt.forEach(function(ae,se){jt(ae)&&(St[Wt]+=ae*("-"===Zt[se-1]?-1:1))})}),St}(gt,Et,At,Ot),"left"===Ot?(Et.top+=Gt[0],Et.left-=Gt[1]):"right"===Ot?(Et.top+=Gt[0],Et.left+=Gt[1]):"top"===Ot?(Et.left+=Gt[0],Et.top-=Gt[1]):"bottom"===Ot&&(Et.left+=Gt[0],Et.top+=Gt[1]),V.popper=Et,V},offset:0},preventOverflow:{order:300,enabled:!0,fn:function K(V,dt){var gt=dt.boundariesElement||g(V.instance.popper);V.instance.reference===gt&&(gt=g(gt));var yt=Yt("transform"),St=V.instance.popper.style,Et=St.top,At=St.left,Ot=St[yt];St.top="",St.left="",St[yt]="";var Gt=z(V.instance.popper,V.instance.reference,dt.padding,gt,V.positionFixed);St.top=Et,St.left=At,St[yt]=Ot,dt.boundaries=Gt;var Zt=V.offsets.popper,Wt={primary:function(se){var oe=Zt[se];return Zt[se]<Gt[se]&&!dt.escapeWithReference&&(oe=Math.max(Zt[se],Gt[se])),L({},se,oe)},secondary:function(se){var oe="right"===se?"left":"top",we=Zt[oe];return Zt[se]>Gt[se]&&!dt.escapeWithReference&&(we=Math.min(Zt[oe],Gt[se]-("right"===se?Zt.width:Zt.height))),L({},oe,we)}};return dt.priority.forEach(function(ae){var se=-1!==["left","top"].indexOf(ae)?"primary":"secondary";Zt=I({},Zt,Wt[se](ae))}),V.offsets.popper=Zt,V},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function H(V){var dt=V.offsets,gt=dt.popper,yt=dt.reference,St=V.placement.split("-")[0],Et=Math.floor,At=-1!==["top","bottom"].indexOf(St),Ot=At?"right":"bottom",Gt=At?"left":"top",Xt=At?"width":"height";return gt[Ot]<Et(yt[Gt])&&(V.offsets.popper[Gt]=Et(yt[Gt])-gt[Xt]),gt[Gt]>Et(yt[Ot])&&(V.offsets.popper[Gt]=Et(yt[Ot])),V}},arrow:{order:500,enabled:!0,fn:function Me(V,dt){var gt;if(!be(V.instance.modifiers,"arrow","keepTogether"))return V;var yt=dt.element;if("string"==typeof yt){if(!(yt=V.instance.popper.querySelector(yt)))return V}else if(!V.instance.popper.contains(yt))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),V;var St=V.placement.split("-")[0],Et=V.offsets,At=Et.popper,Ot=Et.reference,Gt=-1!==["left","right"].indexOf(St),Xt=Gt?"height":"width",Zt=Gt?"Top":"Left",Wt=Zt.toLowerCase(),ae=Gt?"left":"top",se=Gt?"bottom":"right",oe=ct(yt)[Xt];Ot[se]-oe<At[Wt]&&(V.offsets.popper[Wt]-=At[Wt]-(Ot[se]-oe)),Ot[Wt]+oe>At[se]&&(V.offsets.popper[Wt]+=Ot[Wt]+oe-At[se]),V.offsets.popper=F(V.offsets.popper);var we=Ot[Wt]+Ot[Xt]/2-oe/2,ze=r(V.instance.popper),Ue=parseFloat(ze["margin"+Zt],10),Ce=parseFloat(ze["border"+Zt+"Width"],10),We=we-V.offsets.popper[Wt]-Ue-Ce;return We=Math.max(Math.min(At[Xt]-oe,We),0),V.arrowElement=yt,V.offsets.arrow=(L(gt={},Wt,Math.round(We)),L(gt,ae,""),gt),V},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function D(V,dt){if(Nt(V.instance.modifiers,"inner")||V.flipped&&V.placement===V.originalPlacement)return V;var gt=z(V.instance.popper,V.instance.reference,dt.padding,dt.boundariesElement,V.positionFixed),yt=V.placement.split("-")[0],St=ut(yt),Et=V.placement.split("-")[1]||"",At=[];switch(dt.behavior){case"flip":At=[yt,St];break;case"clockwise":At=b(yt);break;case"counterclockwise":At=b(yt,!0);break;default:At=dt.behavior}return At.forEach(function(Ot,Gt){if(yt!==Ot||At.length===Gt+1)return V;yt=V.placement.split("-")[0],St=ut(yt);var Xt=V.offsets.popper,Zt=V.offsets.reference,Wt=Math.floor,ae="left"===yt&&Wt(Xt.right)>Wt(Zt.left)||"right"===yt&&Wt(Xt.left)<Wt(Zt.right)||"top"===yt&&Wt(Xt.bottom)>Wt(Zt.top)||"bottom"===yt&&Wt(Xt.top)<Wt(Zt.bottom),se=Wt(Xt.left)<Wt(gt.left),oe=Wt(Xt.right)>Wt(gt.right),we=Wt(Xt.top)<Wt(gt.top),ze=Wt(Xt.bottom)>Wt(gt.bottom),Ue="left"===yt&&se||"right"===yt&&oe||"top"===yt&&we||"bottom"===yt&&ze,Ce=-1!==["top","bottom"].indexOf(yt),Ke=!!dt.flipVariations&&(Ce&&"start"===Et&&se||Ce&&"end"===Et&&oe||!Ce&&"start"===Et&&we||!Ce&&"end"===Et&&ze)||!!dt.flipVariationsByContent&&(Ce&&"start"===Et&&oe||Ce&&"end"===Et&&se||!Ce&&"start"===Et&&ze||!Ce&&"end"===Et&&we);(ae||Ue||Ke)&&(V.flipped=!0,(ae||Ue)&&(yt=At[Gt+1]),Ke&&(Et=function Fe(V){return"end"===V?"start":"start"===V?"end":V}(Et)),V.placement=yt+(Et?"-"+Et:""),V.offsets.popper=I({},V.offsets.popper,rt(V.instance.popper,V.offsets.reference,V.placement)),V=kt(V.instance.modifiers,V,"flip"))}),V},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function pt(V){var dt=V.placement,gt=dt.split("-")[0],yt=V.offsets,St=yt.popper,Et=yt.reference,At=-1!==["left","right"].indexOf(gt),Ot=-1===["top","left"].indexOf(gt);return St[At?"left":"top"]=Et[gt]-(Ot?St[At?"width":"height"]:0),V.placement=ut(dt),V.offsets.popper=F(St),V}},hide:{order:800,enabled:!0,fn:function Q(V){if(!be(V.instance.modifiers,"hide","preventOverflow"))return V;var dt=V.offsets.reference,gt=lt(V.instance.modifiers,function(yt){return"preventOverflow"===yt.name}).boundaries;if(dt.bottom<gt.top||dt.left>gt.right||dt.top>gt.bottom||dt.right<gt.left){if(!0===V.hide)return V;V.hide=!0,V.attributes["x-out-of-boundaries"]=""}else{if(!1===V.hide)return V;V.hide=!1,V.attributes["x-out-of-boundaries"]=!1}return V}},computeStyle:{order:850,enabled:!0,fn:function me(V,dt){var gt=dt.x,yt=dt.y,St=V.offsets.popper,Et=lt(V.instance.modifiers,function(We){return"applyStyle"===We.name}).gpuAcceleration;void 0!==Et&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var oe,we,At=void 0!==Et?Et:dt.gpuAcceleration,Ot=g(V.instance.popper),Gt=W(Ot),Xt={position:St.position},Zt=function Vt(V,dt){var gt=V.offsets,yt=gt.popper,Et=Math.round,At=Math.floor,Ot=function(Ue){return Ue}
1,Gt=Et(gt.reference.width),Xt=Et(yt.width),Zt=-1!==["left","right"].indexOf(V.placement),Wt=-1!==V.placement.indexOf("-"),oe=dt?Zt||Wt||Gt%2==Xt%2?Et:At:Ot,we=dt?Et:Ot;return{left:oe(Gt%2==1&&Xt%2==1&&!Wt&&dt?yt.left-1:yt.left),top:we(yt.top),bottom:we(yt.bottom),right:oe(yt.right)}}(V,window.devicePixelRatio<2||!ke),Wt="bottom"===gt?"top":"bottom",ae="right"===yt?"left":"right",se=Yt("transform");if(we="bottom"===Wt?"HTML"===Ot.nodeName?-Ot.clientHeight+Zt.bottom:-Gt.height+Zt.bottom:Zt.top,oe="right"===ae?"HTML"===Ot.nodeName?-Ot.clientWidth+Zt.right:-Gt.width+Zt.right:Zt.left,At&&se)Xt[se]="translate3d("+oe+"px, "+we+"px, 0)",Xt[Wt]=0,Xt[ae]=0,Xt.willChange="transform";else{var Ue="right"===ae?-1:1;Xt[Wt]=we*("bottom"===Wt?-1:1),Xt[ae]=oe*Ue,Xt.willChange=Wt+", "+ae}return V.attributes=I({},{"x-placement":V.placement},V.attributes),V.styles=I({},Xt,V.styles),V.arrowStyles=I({},V.offsets.arrow,V.arrowStyles),V},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function ne(V){return Ut(V.instance.popper,V.styles),function Kt(V,dt){Object.keys(dt).forEach(function(gt){!1!==dt[gt]?V.setAttribute(gt,dt[gt]):V.removeAttribute(gt)})}(V.instance.popper,V.attributes),V.arrowElement&&Object.keys(V.arrowStyles).length&&Ut(V.arrowElement,V.arrowStyles),V},onLoad:function zt(V,dt,gt,yt,St){var Et=at(St,dt,V,gt.positionFixed),At=tt(gt.placement,Et,dt,V,gt.modifiers.flip.boundariesElement,gt.modifiers.flip.padding);return dt.setAttribute("x-placement",At),Ut(dt,{position:gt.positionFixed?"fixed":"absolute"}),gt},gpuAcceleration:void 0}}},Ft=function(){function V(dt,gt){var yt=this,St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};A(this,V),this.scheduleUpdate=function(){return requestAnimationFrame(yt.update)},this.update=s(this.update.bind(this)),this.options=I({},V.Defaults,St),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=dt&&dt.jquery?dt[0]:dt,this.popper=gt&>.jquery?gt[0]:gt,this.options.modifiers={},Object.keys(I({},V.Defaults.modifiers,St.modifiers)).forEach(function(At){yt.options.modifiers[At]=I({},V.Defaults.modifiers[At]||{},St.modifiers?St.modifiers[At]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(At){return I({name:At},yt.options.modifiers[At])}).sort(function(At,Ot){return At.order-Ot.order}),this.modifiers.forEach(function(At){At.enabled&&n(At.onLoad)&&At.onLoad(yt.reference,yt.popper,yt.options,At,yt.state)}),this.update();var Et=this.options.eventsEnabled;Et&&this.enableEventListeners(),this.state.eventsEnabled=Et}return T(V,[{key:"update",value:function(){return wt.call(this)}},{key:"destroy",value:function(){return Qt.call(this)}},{key:"enableEventListeners",value:function(){return qt.call(this)}},{key:"disableEventListeners",value:function(){return Tt.call(this)}}]),V}();return Ft.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ft.placements=o,Ft.Defaults=Ht,Ft}),function(h,y){"object"==typeof exports&&"undefined"!=typeof module?module.exports=y(require("popper.js")):"function"==typeof define&&define.amd?define(["popper.js"],y):h.Tooltip=y(h.Popper)}(this,function(h){"use strict";h=h&&h.hasOwnProperty("default")?h.default:h;var d=function(){function n(r,u){for(var l,p=0;p<u.length;p++)(l=u[p]).enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}return function(r,u,l){return u&&n(r.prototype,u),l&&n(r,l),r}}(),a=Object.assign||function(n){for(var r,u=1;u<arguments.length;u++)for(var l in r=arguments[u])Object.prototype.hasOwnProperty.call(r,l)&&(n[l]=r[l]);return n},v={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0,arrowSelector:".tooltip-arrow, .tooltip__arrow",innerSelector:".tooltip-inner, .tooltip__inner"},t=function(){function n(r,u){(function(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")})(this,n),s.call(this),u=a({},v,u),r.jquery&&(r=r[0]),this.reference=r,this.options=u;var l="string"==typeof u.trigger?u.trigger.split(" ").filter(function(p){return-1!==["click","hover","focus"].indexOf(p)}):[];this._isOpen=!1,this._popperOptions={},this._setEventListeners(r,l,u)}return d(n,[{key:"_create",value:function(r,u,l,p){var x=window.document.createElement("div");x.innerHTML=u.trim();var m=x.childNodes[0];m.id="tooltip_"+Math.random().toString(36).substr(2,10),m.setAttribute("aria-hidden","false");var g=x.querySelector(this.options.innerSelector);return this._addTitleContent(r,l,p,g),m}},{key:"_addTitleContent",value:function(r,u,l,p){if(1===u.nodeType||11===u.nodeType)l&&p.appendChild(u);else if(function y(n){return n&&"[object Function]"==={}.toString.call(n)}(u)){var x=u.call(r);l?p.innerHTML=x:p.textContent=x}else l?p.innerHTML=u:p.textContent=u}},{key:"_show",value:function(r,u){if(this._isOpen&&!this._isOpening)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.visibility="visible",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(
1),this;var l=r.getAttribute("title")||u.title;if(!l)return this;var p=this._create(r,u.template,l,u.html);r.setAttribute("aria-describedby",p.id);var x=this._findContainer(u.container,r);return this._append(p,x),this._popperOptions=a({},u.popperOptions,{placement:u.placement}),this._popperOptions.modifiers=a({},this._popperOptions.modifiers,{arrow:a({},this._popperOptions.modifiers&&this._popperOptions.modifiers.arrow,{element:u.arrowSelector}),offset:a({},this._popperOptions.modifiers&&this._popperOptions.modifiers.offset,{offset:u.offset})}),u.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:u.boundariesElement}),this.popperInstance=new h(r,p,this._popperOptions),this._tooltipNode=p,this}},{key:"_hide",value:function(){return this._isOpen?(this._isOpen=!1,this._tooltipNode.style.visibility="hidden",this._tooltipNode.setAttribute("aria-hidden","true"),this):this}},{key:"_dispose",value:function(){var r=this;return this._events.forEach(function(u){r.reference.removeEventListener(u.event,u.func)}),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy&&(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(r,u){return"string"==typeof r?r=window.document.querySelector(r):!1===r&&(r=u.parentNode),r}},{key:"_append",value:function(r,u){u.appendChild(r)}},{key:"_setEventListeners",value:function(r,u,l){var p=this,x=[],m=[];u.forEach(function(g){"hover"===g?(x.push("mouseenter"),m.push("mouseleave")):"focus"===g?(x.push("focus"),m.push("blur")):"click"===g&&(x.push("click"),m.push("click"))}),x.forEach(function(g){var w=function(C){!0===p._isOpening||(C.usedByTooltip=!0,p._scheduleShow(r,l.delay,l,C))};p._events.push({event:g,func:w}),r.addEventListener(g,w)}),m.forEach(function(g){var w=function(C){!0===C.usedByTooltip||p._scheduleHide(r,l.delay,l,C)};p._events.push({event:g,func:w}),r.addEventListener(g,w),"click"===g&&l.closeOnClickOutside&&document.addEventListener("mousedown",function(C){if(p._isOpening){var k=p.popperInstance.popper;r.contains(C.target)||k.contains(C.target)||w(C)}},!0)})}},{key:"_scheduleShow",value:function(r,u,l){var p=this;this._isOpening=!0,this._showTimeout=window.setTimeout(function(){return p._show(r,l)},u&&u.show||u||0)}},{key:"_scheduleHide",value:function(r,u,l,p){var x=this;this._isOpening=!1;var m=u&&u.hide||u||0;window.clearTimeout(this._showTimeout),window.setTimeout(function(){if(!1!==x._isOpen&&document.body.contains(x._tooltipNode)){if("mouseleave"===p.type&&x._setTooltipNodeEvent(p,r,u,l))return;x._hide(r,l)}},m)}},{key:"_updateTitleContent",value:function(r){if(void 0!==this._tooltipNode){var u=this._tooltipNode.querySelector(this.options.innerSelector);this._clearTitleContent(u,this.options.html,this.reference.getAttribute("title")||this.options.title),this._addTitleContent(this.reference,r,this.options.html,u),this.options.title=r,this.popperInstance.update()}else void 0!==this.options.title&&(this.options.title=r)}},{key:"_clearTitleContent",value:function(r,u,l){1===l.nodeType||11===l.nodeType?u&&r.removeChild(l):u?r.innerHTML="":r.textContent=""}}]),n}(),s=function(){var n=this;this.show=function(){return n._show(n.reference,n.options)},this.hide=function(){return n._hide()},this.dispose=function(){return n._dispose()},this.toggle=function(){return n._isOpen?n.hide():n.show()},this.updateTitleContent=function(r){return n._updateTitleContent(r)},this._events=[],this._setTooltipNodeEvent=function(r,u,l,p){return!!n._tooltipNode.contains(r.relatedreference||r.toElement||r.relatedTarget)&&(n._tooltipNode.addEventListener(r.type,function m(g){var w=g.relatedreference||g.toElement||g.relatedTarget;n._tooltipNode.removeEventListener(r.type,m),u.contains(w)||n._scheduleHide(u,p.delay,p,g)}),!0)}};return t}),function(h,y){"object"==typeof exports&&"undefined"!=typeof module?module.exports=y():"function"==typeof define&&define.amd?define(y):h.PerfectScrollbar=y()}(this,function(){"use strict";function h(z){return getComputedStyle(z)}function y(z,j){for(var tt in j){var at=j[tt];"number"==typeof at&&(at+="px"),z.style[tt]=at}return z}function c(z){var j=document.createElement("div");return j.className=z,j}var d="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function a(z,j){if(!d)throw new Error("No element matching method supported");return d.call(z,j)}function v(z){z.remove?z.remove():z.parentNode&&z.parentNode.removeChild(z)}function t(z,j){return Array.prototype.filter.call(z.children,function(tt){return a(tt,j)})}var s_element_thumb=function(z){return"ps__thumb-"+z},s_element_rail=function(z){return"ps__rail-"+z}
vendor: 4,870 bytes, line 1
1,s_element_consuming="ps__child--consume",s_state_focus="ps--focus",s_state_clicking="ps--clicking",s_state_active=function(z){return"ps--active-"+z},s_state_scrolling=function(z){return"ps--scrolling-"+z},n={x:null,y:null};function r(z,j){var tt=z.element.classList,at=s_state_scrolling(j);tt.contains(at)?clearTimeout(n[j]):tt.add(at)}function u(z,j){n[j]=setTimeout(function(){return z.isAlive&&z.element.classList.remove(s_state_scrolling(j))},z.settings.scrollingThreshold)}var p=function(j){this.element=j,this.handlers={}},x={isEmpty:{configurable:!0}};p.prototype.bind=function(j,tt){void 0===this.handlers[j]&&(this.handlers[j]=[]),this.handlers[j].push(tt),this.element.addEventListener(j,tt,!1)},p.prototype.unbind=function(j,tt){var at=this;this.handlers[j]=this.handlers[j].filter(function(ct){return!(!tt||ct===tt)||(at.element.removeEventListener(j,ct,!1),!1)})},p.prototype.unbindAll=function(){for(var tt in this.handlers)this.unbind(tt)},x.isEmpty.get=function(){var z=this;return Object.keys(this.handlers).every(function(j){return 0===z.handlers[j].length})},Object.defineProperties(p.prototype,x);var m=function(){this.eventElements=[]};function g(z){if("function"==typeof window.CustomEvent)return new CustomEvent(z);var j=document.createEvent("CustomEvent");return j.initCustomEvent(z,!1,!1,void 0),j}m.prototype.eventElement=function(j){var tt=this.eventElements.filter(function(at){return at.element===j})[0];return tt||(tt=new p(j),this.eventElements.push(tt)),tt},m.prototype.bind=function(j,tt,at){this.eventElement(j).bind(tt,at)},m.prototype.unbind=function(j,tt,at){var ct=this.eventElement(j);ct.unbind(tt,at),ct.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(ct),1)},m.prototype.unbindAll=function(){this.eventElements.forEach(function(j){return j.unbindAll()}),this.eventElements=[]},m.prototype.once=function(j,tt,at){var ct=this.eventElement(j),ut=function(rt){ct.unbind(tt,ut),at(rt)};ct.bind(tt,ut)};var w=function(z,j,tt,at,ct){var ut;if(void 0===at&&(at=!0),void 0===ct&&(ct=!1),"top"===j)ut=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==j)throw new Error("A proper axis should be provided");ut=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function C(z,j,tt,at,ct){var ut=tt[0],rt=tt[1],lt=tt[2],ft=tt[3],kt=tt[4],wt=tt[5];void 0===at&&(at=!0),void 0===ct&&(ct=!1);var Nt=z.element;z.reach[ft]=null,Nt[lt]<1&&(z.reach[ft]="start"),Nt[lt]>z[ut]-z[rt]-1&&(z.reach[ft]="end"),j&&(Nt.dispatchEvent(g("ps-scroll-"+ft)),j<0?Nt.dispatchEvent(g("ps-scroll-"+kt)):j>0&&Nt.dispatchEvent(g("ps-scroll-"+wt)),at&&function l(z,j){r(z,j),u(z,j)}(z,ft)),z.reach[ft]&&(j||ct)&&Nt.dispatchEvent(g("ps-"+ft+"-reach-"+z.reach[ft]))}(z,tt,ut,at,ct)};function k(z){return parseInt(z,10)||0}var O={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},_=function(z){var j=z.element,tt=Math.floor(j.scrollTop);z.containerWidth=j.clientWidth,z.containerHeight=j.clientHeight,z.contentWidth=j.scrollWidth,z.contentHeight=j.scrollHeight,j.contains(z.scrollbarXRail)||(t(j,s_element_rail("x")).forEach(function(at){return v(at)}),j.appendChild(z.scrollbarXRail)),j.contains(z.scrollbarYRail)||(t(j,s_element_rail("y")).forEach(function(at){return v(at)}),j.appendChild(z.scrollbarYRail)),!z.settings.suppressScrollX&&z.containerWidth+z.settings.scrollXMarginOffset<z.contentWidth?(z.scrollbarXActive=!0,z.railXWidth=z.containerWidth-z.railXMarginWidth,z.railXRatio=z.containerWidth/z.railXWidth,z.scrollbarXWidth=P(z,k(z.railXWidth*z.containerWidth/z.contentWidth)),z.scrollbarXLeft=k((z.negativeScrollAdjustment+j.scrollLeft)*(z.railXWidth-z.scrollbarXWidth)/(z.contentWidth-z.containerWidth))):z.scrollbarXActive=!1,!z.settings.suppressScrollY&&z.containerHeight+z.settings.scrollYMarginOffset<z.contentHeight?(z.scrollbarYActive=!0,z.railYHeight=z.containerHeight-z.railYMarginHeight,z.railYRatio=z.containerHeight/z.railYHeight,z.scrollbarYHeight=P(z,k(z.railYHeight*z.containerHeight/z.contentHeight)),z.scrollbarYTop=k(tt*(z.railYHeight-z.scrollbarYHeight)/(z.contentHeight-z.containerHeight))):z.scrollbarYActive=!1,z.scrollbarXLeft>=z.railXWidth-z.scrollbarXWidth&&(z.scrollbarXLeft=z.railXWidth-z.scrollbarXWidth),z.scrollbarYTop>=z.railYHeight-z.scrollbarYHeight&&(z.scrollbarYTop=z.railYHeight-z.scrollbarYHeight),function A(z,j){var tt={width:j.railXWidth},at=Math.floor(z.scrollTop);tt.left=j.isRtl?j.negativeScrollAdjustment+z.scrollLeft+j.containerWidth-j.contentWidth:z.scrollLeft,j.isScrollbarXUsingBottom?tt.bottom=j.scrollbarXBottom-
1at:tt.top=j.scrollbarXTop+at,y(j.scrollbarXRail,tt);var ct={top:at,height:j.railYHeight};j.isScrollbarYUsingRight?ct.right=j.isRtl?j.contentWidth-(j.negativeScrollAdjustment+z.scrollLeft)-j.scrollbarYRight-j.scrollbarYOuterWidth:j.scrollbarYRight-z.scrollLeft:ct.left=j.isRtl?j.negativeScrollAdjustment+z.scrollLeft+2*j.containerWidth-j.contentWidth-j.scrollbarYLeft-j.scrollbarYOuterWidth:j.scrollbarYLeft+z.scrollLeft,y(j.scrollbarYRail,ct),y(j.scrollbarX,{left:j.scrollbarXLeft,width:j.scrollbarXWidth-j.railBorderXWidth}),y(j.scrollbarY,{top:j.scrollbarYTop,height:j.scrollbarYHeight-j.railBorderYWidth})}(j,z),z.scrollbarXActive?j.classList.add(s_state_active("x")):(j.classList.remove(s_state_active("x")),z.scrollbarXWidth=0,z.scrollbarXLeft=0,j.scrollLeft=0),z.scrollbarYActive?j.classList.add(s_state_active("y")):(j.classList.remove(s_state_active("y")),z.scrollbarYHeight=0,z.scrollbarYTop=0,j.scrollTop=0)};function P(z,j){return z.settings.minScrollbarLength&&(j=Math.max(j,z.settings.minScrollbarLength)),z.settings.maxScrollbarLength&&(j=Math.min(j,z.settings.maxScrollbarLength)),j}function I(z,j){var tt=j[0],at=j[1],ct=j[2],ut=j[3],lt=j[5],ft=j[6],kt=j[7],wt=j[8],Nt=z.element,Yt=null,Qt=null,$t=null;function ce(qt){Nt[ft]=Yt+$t*(qt[ct]-Qt),r(z,kt),_(z),qt.stopPropagation(),qt.preventDefault()}function fe(){u(z,kt),z[wt].classList.remove(s_state_clicking),z.event.unbind(z.ownerDocument,"mousemove",ce)}z.event.bind(z[j[4]],"mousedown",function(qt){Yt=Nt[ft],Qt=qt[ct],$t=(z[at]-z[tt])/(z[ut]-z[lt]),z.event.bind(z.ownerDocument,"mousemove",ce),z.event.once(z.ownerDocument,"mouseup",fe),z[wt].classList.add(s_state_clicking),qt.stopPropagation(),qt.preventDefault()})}var X={"click-rail":function(z){z.event.bind(z.scrollbarY,"mousedown",function(j){return j.stopPropagation()}),z.event.bind(z.scrollbarYRail,"mousedown",function(j){var tt=j.pageY-window.pageYOffset-z.scrollbarYRail.getBoundingClientRect().top;z.element.scrollTop+=(tt>z.scrollbarYTop?1:-1)*z.containerHeight,_(z),j.stopPropagation()}),z.event.bind(z.scrollbarX,"mousedown",function(j){return j.stopPropagation()}),z.event.bind(z.scrollbarXRail,"mousedown",function(j){var tt=j.pageX-window.pageXOffset-z.scrollbarXRail.getBoundingClientRect().left;z.element.scrollLeft+=(tt>z.scrollbarXLeft?1:-1)*z.containerWidth,_(z),j.stopPropagation()})},"drag-thumb":function(z){I(z,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I(z,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(z){var j=z.element;z.event.bind(z.ownerDocument,"keydown",function(ut){if(!(ut.isDefaultPrevented&&ut.isDefaultPrevented()||ut.defaultPrevented)&&(a(j,":hover")||a(z.scrollbarX,":focus")||a(z.scrollbarY,":focus"))){var rt=document.activeElement?document.activeElement:z.ownerDocument.activeElement;if(rt){if("IFRAME"===rt.tagName)rt=rt.contentDocument.activeElement;else for(;rt.shadowRoot;)rt=rt.shadowRoot.activeElement;if(function M(z){return a(z,"input,[contenteditable]")||a(z,"select,[contenteditable]")||a(z,"textarea,[contenteditable]")||a(z,"button,[contenteditable]")}(rt))return}var lt=0,ft=0;switch(ut.which){case 37:lt=ut.metaKey?-z.contentWidth:ut.altKey?-z.containerWidth:-30;break;case 38:ft=ut.metaKey?z.contentHeight:ut.altKey?z.containerHeight:30;break;case 39:lt=ut.metaKey?z.contentWidth:ut.altKey?z.containerWidth:30;break;case 40:ft=ut.metaKey?-z.contentHeight:ut.altKey?-z.containerHeight:-30;break;case 32:ft=ut.shiftKey?z.containerHeight:-z.containerHeight;break;case 33:ft=z.containerHeight;break;case 34:ft=-z.containerHeight;break;case 36:ft=z.contentHeight;break;case 35:ft=-z.contentHeight;break;default:return}z.settings.suppressScrollX&&0!==lt||z.settings.suppressScrollY&&0!==ft||(j.scrollTop-=ft,j.scrollLeft+=lt,_(z),function ct(ut,rt){var lt=Math.floor(j.scrollTop);if(0===ut){if(!z.scrollbarYActive)return!1;if(0===lt&&rt>0||lt>=z.contentHeight-z.containerHeight&&rt<0)return!z.settings.wheelPropagation}var ft=j.scrollLeft;if(0===rt){if(!z.scrollbarXActive)return!1;if(0===ft&&ut<0||ft>=z.contentWidth-z.containerWidth&&ut>0)return!z.settings.wheelPropagation}return!0}(lt,ft)&&ut.preventDefault())}})},wheel:function(z){var j=z.element;function ut(rt){var lt=function at(rt){var lt=rt.deltaX,ft=-1*rt.deltaY;return(void 0===lt||void 0===ft)&&(lt=-1*rt.wheelDeltaX/6,ft=rt.wheelDeltaY/6),rt.deltaMode&&1===rt.deltaMode&&(lt*=10,ft*=10),lt!=lt&&ft!=ft&&(lt=0,ft=rt.wheelDelta),rt.shiftKey?[-ft,-lt]:[lt,ft]}(rt),ft=lt[0],kt=lt[1];if(!function ct(rt,lt,ft){if(!O.isWebKit&&j.querySelector("select:focus"))return!0;
vendor: 6,588 bytes, line 1
1if(!j.contains(rt))return!1;for(var kt=rt;kt&&kt!==j;){if(kt.classList.contains(s_element_consuming))return!0;var wt=h(kt);if([wt.overflow,wt.overflowX,wt.overflowY].join("").match(/(scroll|auto)/)){var Yt=kt.scrollHeight-kt.clientHeight;if(Yt>0&&!(0===kt.scrollTop&&ft>0)&&!(kt.scrollTop===Yt&&ft<0))return!0;var Qt=kt.scrollWidth-kt.clientWidth;if(Qt>0&&!(0===kt.scrollLeft&<<0)&&!(kt.scrollLeft===Qt&<>0))return!0}kt=kt.parentNode}return!1}(rt.target,ft,kt)){var wt=!1;z.settings.useBothWheelAxes?z.scrollbarYActive&&!z.scrollbarXActive?(kt?j.scrollTop-=kt*z.settings.wheelSpeed:j.scrollTop+=ft*z.settings.wheelSpeed,wt=!0):z.scrollbarXActive&&!z.scrollbarYActive&&(ft?j.scrollLeft+=ft*z.settings.wheelSpeed:j.scrollLeft-=kt*z.settings.wheelSpeed,wt=!0):(j.scrollTop-=kt*z.settings.wheelSpeed,j.scrollLeft+=ft*z.settings.wheelSpeed),_(z),wt=wt||function tt(rt,lt){var ft=Math.floor(j.scrollTop),kt=0===j.scrollTop,wt=ft+j.offsetHeight===j.scrollHeight,Nt=0===j.scrollLeft,Yt=j.scrollLeft+j.offsetWidth===j.scrollWidth;return!(Math.abs(lt)>Math.abs(rt)?kt||wt:Nt||Yt)||!z.settings.wheelPropagation}(ft,kt),wt&&!rt.ctrlKey&&(rt.stopPropagation(),rt.preventDefault())}}void 0!==window.onwheel?z.event.bind(j,"wheel",ut):void 0!==window.onmousewheel&&z.event.bind(j,"mousewheel",ut)},touch:function(z){if(O.supportsTouch||O.supportsIePointer){var j=z.element,ct={},ut=0,rt={},lt=null;O.supportsTouch?(z.event.bind(j,"touchstart",wt),z.event.bind(j,"touchmove",Yt),z.event.bind(j,"touchend",Qt)):O.supportsIePointer&&(window.PointerEvent?(z.event.bind(j,"pointerdown",wt),z.event.bind(j,"pointermove",Yt),z.event.bind(j,"pointerup",Qt)):window.MSPointerEvent&&(z.event.bind(j,"MSPointerDown",wt),z.event.bind(j,"MSPointerMove",Yt),z.event.bind(j,"MSPointerUp",Qt)))}function at($t,ce){j.scrollTop-=ce,j.scrollLeft-=$t,_(z)}function ft($t){return $t.targetTouches?$t.targetTouches[0]:$t}function kt($t){return!($t.pointerType&&"pen"===$t.pointerType&&0===$t.buttons||!($t.targetTouches&&1===$t.targetTouches.length||$t.pointerType&&"mouse"!==$t.pointerType&&$t.pointerType!==$t.MSPOINTER_TYPE_MOUSE))}function wt($t){if(kt($t)){var ce=ft($t);ct.pageX=ce.pageX,ct.pageY=ce.pageY,ut=(new Date).getTime(),null!==lt&&clearInterval(lt)}}function Yt($t){if(kt($t)){var ce=ft($t),fe={pageX:ce.pageX,pageY:ce.pageY},qt=fe.pageX-ct.pageX,Ct=fe.pageY-ct.pageY;if(function Nt($t,ce,fe){if(!j.contains($t))return!1;for(var qt=$t;qt&&qt!==j;){if(qt.classList.contains(s_element_consuming))return!0;var Ct=h(qt);if([Ct.overflow,Ct.overflowX,Ct.overflowY].join("").match(/(scroll|auto)/)){var jt=qt.scrollHeight-qt.clientHeight;if(jt>0&&!(0===qt.scrollTop&&fe>0)&&!(qt.scrollTop===jt&&fe<0))return!0;var Ut=qt.scrollLeft-qt.clientWidth;if(Ut>0&&!(0===qt.scrollLeft&&ce<0)&&!(qt.scrollLeft===Ut&&ce>0))return!0}qt=qt.parentNode}return!1}($t.target,qt,Ct))return;at(qt,Ct),ct=fe;var Tt=(new Date).getTime(),jt=Tt-ut;jt>0&&(rt.x=qt/jt,rt.y=Ct/jt,ut=Tt),function tt($t,ce){var fe=Math.floor(j.scrollTop),qt=j.scrollLeft,Ct=Math.abs($t),Tt=Math.abs(ce);if(Tt>Ct){if(ce<0&&fe===z.contentHeight-z.containerHeight||ce>0&&0===fe)return 0===window.scrollY&&ce>0&&O.isChrome}else if(Ct>Tt&&($t<0&&qt===z.contentWidth-z.containerWidth||$t>0&&0===qt))return!0;return!0}(qt,Ct)&&$t.preventDefault()}}function Qt(){z.settings.swipeEasing&&(clearInterval(lt),lt=setInterval(function(){z.isInitialized?clearInterval(lt):rt.x||rt.y?Math.abs(rt.x)<.01&&Math.abs(rt.y)<.01?clearInterval(lt):(at(30*rt.x,30*rt.y),rt.x*=.8,rt.y*=.8):clearInterval(lt)},10))}}},it=function(j,tt){var at=this;if(void 0===tt&&(tt={}),"string"==typeof j&&(j=document.querySelector(j)),!j||!j.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var ct in this.element=j,j.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},tt)at.settings[ct]=tt[ct];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var wt,kt,ut=function(){return j.classList.add(s_state_focus)},rt=function(){return j.classList.remove(s_state_focus)};this.isRtl="rtl"===h(j).direction,this.isNegativeScroll=(kt=j.scrollLeft,j.scrollLeft=-1,wt=j.scrollLeft<0,j.scrollLeft=kt,wt),this.negativeScrollAdjustment=this.isNegativeScroll?j.scrollWidth-j.clientWidth:0,this.event=new m,this.ownerDocument=j.ownerDocument||document,this.scrollbarXRail=c(s_element_rail("x")),j.appendChild(this.scrollbarXRail),this.scrollbarX=c(s_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",ut),this.event.bind(this.scrollbarX,"blur",rt),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var lt=h(this.scrollbarXRail);this.scrollbarXBottom=parseInt(lt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=k(lt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=k(lt.borderLeftWidth)+k(lt.borderRightWidth),y(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=k(lt.marginLeft)+k(lt.marginRight),y(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=c(s_element_rail("y")),j.appendChild(this.scrollbarYRail),this.scrollbarY=c(s_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",ut),this.event.bind(this.scrollbarY,"blur",rt),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var ft=h(this.scrollbarYRail);this.scrollbarYRight=parseInt(ft.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=k(ft.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function N(z){var j=h(z);return k(j.width)+k(j.paddingLeft)+k(j.paddingRight)+k(j.borderLeftWidth)+k(j.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=k(ft.borderTopWidth)+k(ft.borderBottomWidth),y(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=k(ft.marginTop)+k(ft.marginBottom),y(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:j.scrollLeft<=0?"start":j.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:j.scrollTop<=0?"start":j.scrollTop>=this.contentHeight-this.containerHeight?"end":null}
1,this.isAlive=!0,this.settings.handlers.forEach(function(kt){return X[kt](at)}),this.lastScrollTop=Math.floor(j.scrollTop),this.lastScrollLeft=j.scrollLeft,this.event.bind(this.element,"scroll",function(kt){return at.onScroll(kt)}),_(this)};return it.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,y(this.scrollbarXRail,{display:"block"}),y(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=k(h(this.scrollbarXRail).marginLeft)+k(h(this.scrollbarXRail).marginRight),this.railYMarginHeight=k(h(this.scrollbarYRail).marginTop)+k(h(this.scrollbarYRail).marginBottom),y(this.scrollbarXRail,{display:"none"}),y(this.scrollbarYRail,{display:"none"}),_(this),w(this,"top",0,!1,!0),w(this,"left",0,!1,!0),y(this.scrollbarXRail,{display:""}),y(this.scrollbarYRail,{display:""}))},it.prototype.onScroll=function(j){!this.isAlive||(_(this),w(this,"top",this.element.scrollTop-this.lastScrollTop),w(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},it.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),v(this.scrollbarX),v(this.scrollbarY),v(this.scrollbarXRail),v(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},it.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(j){return!j.match(/^ps([-_].+|)$/)}).join(" ")},it}),this.Element&&function(h){h.matches=h.matches||h.matchesSelector||h.webkitMatchesSelector||h.msMatchesSelector||function(y){for(var c=this,d=(c.parentNode||c.document).querySelectorAll(y),a=-1;d[++a]&&d[a]!=c;);return!!d[a]}}(Element.prototype),this.Element&&function(h){h.closest=h.closest||function(y){for(var c=this;c.matches&&!c.matches(y);)c=c.parentNode;return c.matches?c:null}}(Element.prototype),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),this.Element&&function(h){h.matches=h.matches||h.matchesSelector||h.webkitMatchesSelector||h.msMatchesSelector||function(y){for(var c=this,d=(c.parentNode||c.document).querySelectorAll(y),a=-1;d[++a]&&d[a]!=c;);return!!d[a]}}(Element.prototype),function(){for(var h=0,y=["webkit","moz"],c=0;c<y.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[y[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[y[c]+"CancelAnimationFrame"]||window[y[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(d){var a=(new Date).getTime(),v=Math.max(0,16-(a-h)),t=window.setTimeout(function(){d(a+v)},v);return h=a+v,t}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(d){clearTimeout(d)})}(),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(y){y.hasOwnProperty("prepend")||Object.defineProperty(y,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var d=Array.prototype.slice.call(arguments),a=document.createDocumentFragment();d.forEach(function(v){var t=v instanceof Node;a.appendChild(t?v:document.createTextNode(String(v)))}),this.insertBefore(a,this.firstChild)}})}),window.KTUtilElementDataStore={},window.KTUtilElementDataStoreID=0,window.KTUtilDelegatedEventHandlers={};var KTUtil=function(){var h=[],y={sm:544,md:768,lg:1024,xl:1200};return{init:function(d){var a;d&&d.breakpoints&&(y=d.breakpoints),a=!1,window.addEventListener("resize",function(){clearTimeout(a),a=setTimeout(function(){!function(){for(var t=0;t<h.length;t++)h[t].call()}()},250)})},addResizeHandler:function(d){h.push(d)},removeResizeHandler:function(d){for(var a=0;a<h.length;a++)d===h[a]&&delete h[a]},runResizeHandlers:function(){_runResizeHandlers()},resize:function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var d=window.document.createEvent("UIEvents");d.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(d)}},getURLParam:function(d){var v,t,s=window.location.search.substring(1).split("&");for(v=0;v<s.length;v++)if((t=s[v].split("="))[0]==d)return unescape(t[1]);return null},isMobileDevice:function(){return this.getViewPort().width<this.getBreakp
1oint("lg")},isDesktopDevice:function(){return!KTUtil.isMobileDevice()},getViewPort:function(){var d=window,a="inner";return"innerWidth"in window||(a="client",d=document.documentElement||document.body),{width:d[a+"Width"],height:d[a+"Height"]}},isInResponsiveRange:function(d){var a=this.getViewPort().width;return"general"==d||"desktop"==d&&a>=this.getBreakpoint("lg")||"tablet"==d&&a>=this.getBreakpoint("md")+1&&a<this.getBreakpoint("lg")||"mobile"==d&&a<=this.getBreakpoint("md")||"desktop-and-tablet"==d&&a>=this.getBreakpoint("md")+1||"tablet-and-mobile"==d&&a<=this.getBreakpoint("lg")||"minimal-desktop-and-below"==d&&a<=this.getBreakpoint("xl")},getUniqueID:function(d){return d+Math.floor(Math.random()*(new Date).getTime())},getBreakpoint:function(d){return y[d]},isset:function(d,a){var v;if(-1!==(a=a||"").indexOf("["))throw new Error("Unsupported object path notation.");a=a.split(".");do{if(void 0===d||(v=a.shift(),!d.hasOwnProperty(v)))return!1;d=d[v]}while(a.length);return!0},getHighestZindex:function(d){for(var v,t,a=KTUtil.get(d);a&&a!==document;){if(("absolute"===(v=KTUtil.css(a,"position"))||"relative"===v||"fixed"===v)&&(t=parseInt(KTUtil.css(a,"z-index")),!isNaN(t)&&0!==t))return t;a=a.parentNode}return null},hasFixedPositionedParent:function(d){for(;d&&d!==document;){if(position=KTUtil.css(d,"position"),"fixed"===position)return!0;d=d.parentNode}return!1},sleep:function(d){for(var a=(new Date).getTime(),v=0;v<1e7&&!((new Date).getTime()-a>d);v++);},getRandomInt:function(d,a){return Math.floor(Math.random()*(a-d+1))+d},isAngularVersion:function(){return void 0!==window.Zone},deepExtend:function(d){d=d||{};for(var a=1;a<arguments.length;a++){var v=arguments[a];if(v)for(var t in v)v.hasOwnProperty(t)&&(d[t]="object"==typeof v[t]?KTUtil.deepExtend(d[t],v[t]):v[t])}return d},extend:function(d){d=d||{};for(var a=1;a<arguments.length;a++)if(arguments[a])for(var v in arguments[a])arguments[a].hasOwnProperty(v)&&(d[v]=arguments[a][v]);return d},get:function(d){var a;return d===document?document:d&&1===d.nodeType?d:(a=document.getElementById(d))?a:(a=document.getElementsByTagName(d))||(a=document.getElementsByClassName(d))?a[0]:null},getByID:function(d){return d&&1===d.nodeType?d:document.getElementById(d)},getByTag:function(d){var a;return(a=document.getElementsByTagName(d))?a[0]:null},getByClass:function(d){var a;return(a=document.getElementsByClassName(d))?a[0]:null},hasClasses:function(d,a){if(d){for(var v=a.split(" "),t=0;t<v.length;t++)if(0==KTUtil.hasClass(d,KTUtil.trim(v[t])))return!1;return!0}},hasClass:function(d,a){if(d)return d.classList?d.classList.contains(a):new RegExp("\\b"+a+"\\b").test(d.className)},addClass:function(d,a){if(d&&void 0!==a){var v=a.split(" ");if(d.classList)for(var t=0;t<v.length;t++)v[t]&&v[t].length>0&&d.classList.add(KTUtil.trim(v[t]));else if(!KTUtil.hasClass(d,a))for(t=0;t<v.length;t++)d.className+=" "+KTUtil.trim(v[t])}},removeClass:function(d,a){if(d&&void 0!==a){var v=a.split(" ");if(d.classList)for(var t=0;t<v.length;t++)d.classList.remove(KTUtil.trim(v[t]));else if(KTUtil.hasClass(d,a))for(t=0;t<v.length;t++)d.className=d.className.replace(new RegExp("\\b"+KTUtil.trim(v[t])+"\\b","g"),"")}},triggerCustomEvent:function(d,a,v){if(window.CustomEvent)var t=new CustomEvent(a,{detail:v});else(t=document.createEvent("CustomEvent")).initCustomEvent(a,!0,!0,v);d.dispatchEvent(t)},triggerEvent:function(d,a){var v;if(d.ownerDocument)v=d.ownerDocument;else{if(9!=d.nodeType)throw new Error("Invalid node passed to fireEvent: "+d.id);v=d}if(d.dispatchEvent){var t="";switch(a){case"click":case"mouseenter":case"mouseleave":case"mousedown":case"mouseup":t="MouseEvents";break;case"focus":case"change":case"blur":case"select":t="HTMLEvents";break;default:throw"fireEvent: Couldn't find an event class for event '"+a+"'."}(s=v.createEvent(t)).initEvent(a,"change"!=a,!0),s.synthetic=!0,d.dispatchEvent(s,!0)}else if(d.fireEvent){var s;(s=v.createEventObject()).synthetic=!0,d.fireEvent("on"+a,s)}},index:function(d){for(var a=(d=KTUtil.get(d)).parentNode.children,v=0;v<a.length;v++)if(a[v]==d)return v},trim:function(d){return d.trim()},eventTriggered:function(d){return!!d.currentTarget.dataset.triggered||(d.currentTarget.dataset.triggered=!0,!1)},remove:function(d){d&&d.parentNode&&d.parentNode.removeChild(d)},find:function(d,a){if(d=KTUtil.get(d))return d.querySelector(a)},findAll:function(d,a){if(d=KTUtil.get(d))return d.querySelectorAll(a)},insertAfter:function(d,a){return a.parentNode.insertBefore(d,a.nextSibling)},parents:function(d,a){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var s=(this.document||this.ownerDocument).querySelectorAll(t),n=s.length;--n>=0&&s.item(n)!==this;);return n>-1});for(var v=[];d&&d!==document;d=d.parentNode)a?d.matches(a)&&v.push(d):v.push(d);return v},children:function(d,a,v){if(d&&d.childNodes){for(var t=[],s=0,n=d.childNodes.length;s<n;++s)1==d.childNodes[s].nodeType&&KTUtil.matches(d.childNodes[s],a,v)&&t.push(d.childNodes[s]);return t}},child:function(d,a,v){var t=KTUtil.children(d,a,v);return t?t[0]:null},matches:function(d,a,v){var t=Element.prototype;return!(!d||!d.tagName)&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(n){return-1!==[].indexOf.call(document.querySelectorAll(n),this)}).call(d,a)},data:function(d){return d=KTUtil.get(d),{set:function(a,v){void 0!==d&&(void 0===d.customDataTag&&(KTUtilElementDataStoreID++,d.customDataTag=KTUtilElementDataStoreID),void 0===KTUtilElementDataStore[d.customDataTag]&&(KTUtilElementDataStore[d.customDataTag]={}),KTUtilElementDataStore[d.customDataTag][a]=v)}
1,get:function(a){if(void 0!==d)return void 0===d.customDataTag?null:this.has(a)?KTUtilElementDataStore[d.customDataTag][a]:null},has:function(a){return void 0!==d&&void 0!==d.customDataTag&&!(!KTUtilElementDataStore[d.customDataTag]||!KTUtilElementDataStore[d.customDataTag][a])},remove:function(a){d&&this.has(a)&&delete KTUtilElementDataStore[d.customDataTag][a]}}},outerWidth:function(d,a){if(!0===a){var v=parseFloat(d.offsetWidth);return v+=parseFloat(KTUtil.css(d,"margin-left"))+parseFloat(KTUtil.css(d,"margin-right")),parseFloat(v)}return parseFloat(d.offsetWidth)},offset:function(d){var a,v;if(d=KTUtil.get(d))return d.getClientRects().length?{top:(a=d.getBoundingClientRect()).top+(v=d.ownerDocument.defaultView).pageYOffset,left:a.left+v.pageXOffset}:{top:0,left:0}},height:function(d){return KTUtil.css(d,"height")},visible:function(d){return!(0===d.offsetWidth&&0===d.offsetHeight)},attr:function(d,a,v){if(null!=(d=KTUtil.get(d))){if(void 0===v)return d.getAttribute(a);d.setAttribute(a,v)}},hasAttr:function(d,a){if(null!=(d=KTUtil.get(d)))return!!d.getAttribute(a)},removeAttr:function(d,a){null!=(d=KTUtil.get(d))&&d.removeAttribute(a)},animate:function(d,a,v,t,u,n){var r={linear:function(w,C,k,M){return k*w/M+C}};if(u=r.linear,"number"==typeof d&&"number"==typeof a&&"number"==typeof v&&"function"==typeof t){"function"!=typeof n&&(n=function(){});var l=window.requestAnimationFrame||function(w){window.setTimeout(w,20)},x=a-d;t(d);var g=window.performance&&window.performance.now?window.performance.now():+new Date;l(function m(w){var C=(w||+new Date)-g;C>=0&&t(u(C,d,x,v)),C>=0&&C>=v?(t(a),n()):l(m)})}},actualCss:function(d,a,v){var s,t="";if((d=KTUtil.get(d))instanceof HTMLElement)return d.getAttribute("kt-hidden-"+a)&&!1!==v?parseFloat(d.getAttribute("kt-hidden-"+a)):(t=d.style.cssText,d.style.cssText="position: absolute; visibility: hidden; display: block;","width"==a?s=d.offsetWidth:"height"==a&&(s=d.offsetHeight),d.style.cssText=t,d.setAttribute("kt-hidden-"+a,s),parseFloat(s))},actualHeight:function(d,a){return KTUtil.actualCss(d,"height",a)},actualWidth:function(d,a){return KTUtil.actualCss(d,"width",a)},getScroll:function(d,a){return a="scroll"+a,d==window||d==document?self["scrollTop"==a?"pageYOffset":"pageXOffset"]||browserSupportsBoxModel&&document.documentElement[a]||document.body[a]:d[a]},css:function(d,a,v){if(d=KTUtil.get(d))if(void 0!==v)d.style[a]=v;else{var t=(d.ownerDocument||document).defaultView;if(t&&t.getComputedStyle)return a=a.replace(/([A-Z])/g,"-$1").toLowerCase(),t.getComputedStyle(d,null).getPropertyValue(a);if(d.currentStyle)return a=a.replace(/\-(\w)/g,function(n,r){return r.toUpperCase()}),/^\d+(em|pt|%|ex)?$/i.test(v=d.currentStyle[a])?(n=v,r=d.style.left,u=d.runtimeStyle.left,d.runtimeStyle.left=d.currentStyle.left,d.style.left=n||0,n=d.style.pixelLeft+"px",d.style.left=r,d.runtimeStyle.left=u,n):v}var n,r,u},slide:function(d,a,v,t,s){if(!(!d||"up"==a&&!1===KTUtil.visible(d)||"down"==a&&!0===KTUtil.visible(d))){v=v||600;var n=KTUtil.actualHeight(d),r=!1,u=!1;KTUtil.css(d,"padding-top")&&!0!==KTUtil.data(d).has("slide-padding-top")&&KTUtil.data(d).set("slide-padding-top",KTUtil.css(d,"padding-top")),KTUtil.css(d,"padding-bottom")&&!0!==KTUtil.data(d).has("slide-padding-bottom")&&KTUtil.data(d).set("slide-padding-bottom",KTUtil.css(d,"padding-bottom")),KTUtil.data(d).has("slide-padding-top")&&(r=parseInt(KTUtil.data(d).get("slide-padding-top"))),KTUtil.data(d).has("slide-padding-bottom")&&(u=parseInt(KTUtil.data(d).get("slide-padding-bottom"))),"up"==a?(d.style.cssText="display: block; overflow: hidden;",r&&KTUtil.animate(0,r,v,function(l){d.style.paddingTop=r-l+"px"},"linear"),u&&KTUtil.animate(0,u,v,function(l){d.style.paddingBottom=u-l+"px"},"linear"),KTUtil.animate(0,n,v,function(l){d.style.height=n-l+"px"},"linear",function(){t(),d.style.height="",d.style.display="none"})):"down"==a&&(d.style.cssText="display: block; overflow: hidden;",r&&KTUtil.animate(0,r,v,function(l){d.style.paddingTop=l+"px"},"linear",function(){d.style.paddingTop=""}),u&&KTUtil.animate(0,u,v,function(l){d.style.paddingBottom=l+"px"},"linear",function(){d.style.paddingBottom=""}),KTUtil.animate(0,n,v,function(l){d.style.height=l+"px"},"linear",function(){t(),d.style.height="",d.style.display="",d.style.overflow=""}))}},slideUp:function(d,a,v){KTUtil.slide(d,"up",a,v)},slideDown:function(d,a,v){KTUtil.slide(d,"down",a,v)},show:function(d,a){void 0!==d&&(d.style.display=a||"block")},hide:function(d){void 0!==d&&(d.style.display="none")},addEvent:function(d,a,v,t){void 0!==(d=KTUtil.get(d))&&d.addEventListener(a,v)},removeEvent:function(d,a,v){(d=KTUtil.get(d)).removeEventListener(a,v)},on:function(d,a,v,t){if(a){var s=KTUtil.getUniqueID("event");return KTUtilDelegatedEventHandlers[s]=function(n){for(var r=d.querySelectorAll(a),u=n.target;u&&u!==d;){for(var l=0,p=r.length;l<p;l++)u===r[l]&&t.call(u,n);u=u.parentNode}},KTUtil.addEvent(d,v,KTUtilDelegatedEventHandlers[s]),s}},off:function(d,a,v){!d||!KTUtilDelegatedEventHandlers[v]||(KTUtil.removeEvent(d,a,KTUtilDelegatedEventHandlers[v]),delete KTUtilDelegatedEventHandlers[v])},one:function(a,v,t){(a=KTUtil.get(a)).addEventListener(v,function s(n){return n.target&&n.target.removeEventListener&&n.target.removeEventListener(n.type,s),t(n)})},hash:function(d){var v,a=0;if(0===d.length)return a;for(v=0;v<d.length;
1v++)a=(a<<5)-a+d.charCodeAt(v),a|=0;return a},animateClass:function(d,a,v){var t,s={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd",msAnimation:"msAnimationEnd"};for(var n in s)void 0!==d.style[n]&&(t=s[n]);KTUtil.addClass(d,"animated "+a),KTUtil.one(d,t,function(){KTUtil.removeClass(d,"animated "+a)}),v&&KTUtil.one(d,t,v)},transitionEnd:function(d,a){var v,t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"mozTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"msTransitionEnd"};for(var s in t)void 0!==d.style[s]&&(v=t[s]);KTUtil.one(d,v,a)},animationEnd:function(d,a){var v,t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd",msAnimation:"msAnimationEnd"};for(var s in t)void 0!==d.style[s]&&(v=t[s]);KTUtil.one(d,v,a)},animateDelay:function(d,a){for(var v=["webkit-","moz-","ms-","o-",""],t=0;t<v.length;t++)KTUtil.css(d,v[t]+"animation-delay",a)},animateDuration:function(d,a){for(var v=["webkit-","moz-","ms-","o-",""],t=0;t<v.length;t++)KTUtil.css(d,v[t]+"animation-duration",a)},scrollTo:function(s,a,t){t=t||500;var u,l,n=(s=KTUtil.get(s))?KTUtil.offset(s).top:0,r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;n>r?(u=n,l=r):(u=r,l=n),a&&(l+=a),KTUtil.animate(u,l,t,function(p){document.documentElement.scrollTop=p,document.body.parentNode.scrollTop=p,document.body.scrollTop=p})},scrollTop:function(d,a){KTUtil.scrollTo(null,d,a)},isArray:function(d){return d&&Array.isArray(d)},ready:function(d){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?d():document.addEventListener("DOMContentLoaded",d)},isEmpty:function(d){for(var a in d)if(d.hasOwnProperty(a))return!1;return!0},numberString:function(d){for(var a=(d+="").split("."),v=a[0],t=a.length>1?"."+a[1]:"",s=/(\d+)(\d{3})/;s.test(v);)v=v.replace(s,"$1,$2");return v+t},detectIE:function(){var d=window.navigator.userAgent,a=d.indexOf("MSIE ");if(a>0)return parseInt(d.substring(a+5,d.indexOf(".",a)),10);if(d.indexOf("Trident/")>0){var t=d.indexOf("rv:");return parseInt(d.substring(t+3,d.indexOf(".",t)),10)}var s=d.indexOf("Edge/");return s>0&&parseInt(d.substring(s+5,d.indexOf(".",s)),10)},isRTL:function(){return"rtl"==KTUtil.attr(KTUtil.get("html"),"direction")},scrollInit:function(d,a){function v(){var t,s;if(s=a.height instanceof Function?parseInt(a.height.call()):parseInt(a.height),(a.mobileNativeScroll||a.disableForMobile)&&KTUtil.isInResponsiveRange("tablet-and-mobile"))(t=KTUtil.data(d).get("ps"))?(a.resetHeightOnDestroy?KTUtil.css(d,"height","auto"):(KTUtil.css(d,"overflow","auto"),s>0&&KTUtil.css(d,"height",s+"px")),t.destroy(),t=KTUtil.data(d).remove("ps")):s>0&&(KTUtil.css(d,"overflow","auto"),KTUtil.css(d,"height",s+"px"));else if(s>0&&KTUtil.css(d,"height",s+"px"),a.desktopNativeScroll)KTUtil.css(d,"overflow","auto");else{KTUtil.css(d,"overflow","hidden"),(t=KTUtil.data(d).get("ps"))?t.update():(KTUtil.addClass(d,"kt-scroll"),t=new PerfectScrollbar(d,{wheelSpeed:.5,swipeEasing:!0,wheelPropagation:!1!==a.windowScroll,minScrollbarLength:40,maxScrollbarLength:300,suppressScrollX:"true"!=KTUtil.attr(d,"data-scroll-x")}),KTUtil.data(d).set("ps",t));var n=KTUtil.attr(d,"id");if(!0===a.rememberPosition&&Cookies&&n){if(Cookies.get(n)){var r=parseInt(Cookies.get(n));r>0&&(d.scrollTop=r)}d.addEventListener("ps-scroll-y",function(){Cookies.set(n,d.scrollTop)})}}}d&&(v(),a.handleWindowResize&&KTUtil.addResizeHandler(function(){v()}))},scrollUpdate:function(d){var a;(a=KTUtil.data(d).get("ps"))&&a.update()},scrollUpdateAll:function(d){for(var a=KTUtil.findAll(d,".ps"),v=0,t=a.length;v<t;v++)KTUtil.scrollerUpdate(a[v])},scrollDestroy:function(d){var a;(a=KTUtil.data(d).get("ps"))&&(a.destroy(),a=KTUtil.data(d).remove("ps"))},setHTML:function(d,a){KTUtil.get(d)&&(KTUtil.get(d).innerHTML=a)},getHTML:function(d){if(KTUtil.get(d))return KTUtil.get(d).innerHTML}}}();KTUtil.ready(function(){KTUtil.init()}),window.onload=function(){KTUtil.removeClass(KTUtil.get("body"),"kt-page--loading")};var KTHeader=function(h,y){var c=this,a=KTUtil.get(h),v=KTUtil.get("body");if(void 0!==a){var t={classic:!1,offset:{mobile:150,desktop:200},minimize:{mobile:!1,desktop:!1}},s={construct:function(n){return KTUtil.data(a).has("header")?c=KTUtil.data(a).get("header"):(s.init(n),s.build(),KTUtil.data(a).set("header",c)),c},init:function(n){c.events=[],c.options=KTUtil.deepExtend({},t,n)},build:function(){var n=0,r=!0;KTUtil.getViewPort(),!1===c.options.minimize.mobile&&!1===c.options.minimize.desktop||window.addEventListener("scroll",function(){var p,x,m,l=0;KTUtil.isInResponsiveRange("desktop")?(l=c.options.offset.desktop,p=c.options.minimize.desktop.on,x=c.options.minimize.desktop.off):KTUtil.isInResponsiveRange("tablet-and-mobile")&&(l=c.options.offset.mobile,p=c.options.minimize.mobile.on,x=c.options.minimize.mobile.off),m=window.pageYOffset,KTUtil.isInResponsiveRange("tablet-and-mobile")&&c.options.classic&&c.options.classic.mobile||KTUtil.isInResponsiveRange("desktop")&&c.options.classic&&c.options.classic.desktop?m>l?(KTUtil.addClass(v,p),KTUtil.removeClass(v,x),r&&(s.eventTrigger("minimizeOn",c),r=!1)):(KTUtil.addClass(v,x),KTUtil.removeClass(v,p),0==r&&(s.eventTrigger("minimizeOff",c),r
1=!0)):(m>l&&n<m?(KTUtil.addClass(v,p),KTUtil.removeClass(v,x),r&&(s.eventTrigger("minimizeOn",c),r=!1)):(KTUtil.addClass(v,x),KTUtil.removeClass(v,p),0==r&&(s.eventTrigger("minimizeOff",c),r=!0)),n=m)})},eventTrigger:function(n,r){for(var u=0;u<c.events.length;u++){var l=c.events[u];l.name==n&&(1==l.one?0==l.fired&&(c.events[u].fired=!0,l.handler.call(this,c,r)):l.handler.call(this,c,r))}},addEvent:function(n,r,u){c.events.push({name:n,handler:r,one:u,fired:!1})}};return c.setDefaults=function(n){t=n},c.on=function(n,r){return s.addEvent(n,r)},s.construct.apply(c,[y]),c}},KTMenu=function(h,y){var c=this,d=!1,a=KTUtil.get(h),v=KTUtil.get("body");if(a){var t={scroll:{rememberPosition:!1},accordion:{slideSpeed:200,autoScroll:!1,autoScrollSpeed:1200,expandAll:!0},dropdown:{timeout:500}},s={construct:function(n){return KTUtil.data(a).has("menu")?c=KTUtil.data(a).get("menu"):(s.init(n),s.reset(),s.build(),KTUtil.data(a).set("menu",c)),c},init:function(n){c.events=[],c.eventHandlers={},c.options=KTUtil.deepExtend({},t,n),c.pauseDropdownHoverTime=0,c.uid=KTUtil.getUniqueID()},update:function(n){c.options=KTUtil.deepExtend({},t,n),c.pauseDropdownHoverTime=0,s.reset(),c.eventHandlers={},s.build(),KTUtil.data(a).set("menu",c)},reload:function(){s.reset(),s.build(),s.resetSubmenuProps()},build:function(){c.eventHandlers.event_1=KTUtil.on(a,".kt-menu__toggle","click",s.handleSubmenuAccordion),("dropdown"===s.getSubmenuMode()||s.isConditionalSubmenuDropdown())&&(c.eventHandlers.event_2=KTUtil.on(a,'[data-ktmenu-submenu-toggle="hover"]',"mouseover",s.handleSubmenuDrodownHoverEnter),c.eventHandlers.event_3=KTUtil.on(a,'[data-ktmenu-submenu-toggle="hover"]',"mouseout",s.handleSubmenuDrodownHoverExit),c.eventHandlers.event_4=KTUtil.on(a,'[data-ktmenu-submenu-toggle="click"] > .kt-menu__toggle, [data-ktmenu-submenu-toggle="click"] > .kt-menu__link .kt-menu__toggle',"click",s.handleSubmenuDropdownClick),c.eventHandlers.event_5=KTUtil.on(a,'[data-ktmenu-submenu-toggle="tab"] > .kt-menu__toggle, [data-ktmenu-submenu-toggle="tab"] > .kt-menu__link .kt-menu__toggle',"click",s.handleSubmenuDropdownTabClick)),c.eventHandlers.event_6=KTUtil.on(a,".kt-menu__item > .kt-menu__link:not(.kt-menu__toggle):not(.kt-menu__link--toggle-skip)","click",s.handleLinkClick),c.options.scroll&&c.options.scroll.height&&s.scrollInit()},reset:function(){KTUtil.off(a,"click",c.eventHandlers.event_1),KTUtil.off(a,"mouseover",c.eventHandlers.event_2),KTUtil.off(a,"mouseout",c.eventHandlers.event_3),KTUtil.off(a,"click",c.eventHandlers.event_4),KTUtil.off(a,"click",c.eventHandlers.event_5),KTUtil.off(a,"click",c.eventHandlers.event_6)},scrollInit:function(){c.options.scroll&&c.options.scroll.height?(KTUtil.scrollDestroy(a),KTUtil.scrollInit(a,{mobileNativeScroll:!0,windowScroll:!1,resetHeightOnDestroy:!0,handleWindowResize:!0,height:c.options.scroll.height,rememberPosition:c.options.scroll.rememberPosition})):KTUtil.scrollDestroy(a)},scrollUpdate:function(){c.options.scroll&&c.options.scroll.height&&KTUtil.scrollUpdate(a)},scrollTop:function(){c.options.scroll&&c.options.scroll.height&&KTUtil.scrollTop(a)},getSubmenuMode:function(n){return KTUtil.isInResponsiveRange("desktop")?n&&KTUtil.hasAttr(n,"data-ktmenu-submenu-toggle")&&"hover"==KTUtil.attr(n,"data-ktmenu-submenu-toggle")?"dropdown":KTUtil.isset(c.options.submenu,"desktop.state.body")?KTUtil.hasClasses(v,c.options.submenu.desktop.state.body)?c.options.submenu.desktop.state.mode:c.options.submenu.desktop.default:KTUtil.isset(c.options.submenu,"desktop")?c.options.submenu.desktop:void 0:KTUtil.isInResponsiveRange("tablet")&&KTUtil.isset(c.options.submenu,"tablet")?c.options.submenu.tablet:!(!KTUtil.isInResponsiveRange("mobile")||!KTUtil.isset(c.options.submenu,"mobile"))&&c.options.submenu.mobile},isConditionalSubmenuDropdown:function(){return!(!KTUtil.isInResponsiveRange("desktop")||!KTUtil.isset(c.options.submenu,"desktop.state.body"))},resetSubmenuProps:function(n){var r=KTUtil.findAll(a,".kt-menu__submenu");if(r)for(var u=0,l=r.length;u<l;u++)KTUtil.css(r[0],"display",""),KTUtil.css(r[0],"overflow","")},handleSubmenuDrodownHoverEnter:function(n){if("accordion"!==s.get
1SubmenuMode(this)&&!1!==c.resumeDropdownHover()){var r=this;"1"==r.getAttribute("data-hover")&&(r.removeAttribute("data-hover"),clearTimeout(r.getAttribute("data-timeout")),r.removeAttribute("data-timeout")),s.showSubmenuDropdown(r)}},handleSubmenuDrodownHoverExit:function(n){if(!1!==c.resumeDropdownHover()&&"accordion"!==s.getSubmenuMode(this)){var r=this,l=setTimeout(function(){"1"==r.getAttribute("data-hover")&&s.hideSubmenuDropdown(r,!0)},c.options.dropdown.timeout);r.setAttribute("data-hover","1"),r.setAttribute("data-timeout",l)}},handleSubmenuDropdownClick:function(n){if("accordion"!==s.getSubmenuMode(this)){var r=this.closest(".kt-menu__item");"accordion"!=r.getAttribute("data-ktmenu-submenu-mode")&&(!1===KTUtil.hasClass(r,"kt-menu__item--hover")?(KTUtil.addClass(r,"kt-menu__item--open-dropdown"),s.showSubmenuDropdown(r)):(KTUtil.removeClass(r,"kt-menu__item--open-dropdown"),s.hideSubmenuDropdown(r,!0)),n.preventDefault())}},handleSubmenuDropdownTabClick:function(n){if("accordion"!==s.getSubmenuMode(this)){var r=this.closest(".kt-menu__item");"accordion"!=r.getAttribute("data-ktmenu-submenu-mode")&&(0==KTUtil.hasClass(r,"kt-menu__item--hover")&&(KTUtil.addClass(r,"kt-menu__item--open-dropdown"),s.showSubmenuDropdown(r)),n.preventDefault())}},handleLinkClick:function(n){var r=this.closest(".kt-menu__item.kt-menu__item--submenu");!1!==s.eventTrigger("linkClick",this,n)&&r&&"dropdown"===s.getSubmenuMode(r)&&s.hideSubmenuDropdowns()},handleSubmenuDropdownClose:function(n,r){if("accordion"!==s.get
1SubmenuMode(r)){var u=a.querySelectorAll(".kt-menu__item.kt-menu__item--submenu.kt-menu__item--hover:not(.kt-menu__item--tabs)");if(u.length>0&&!1===KTUtil.hasClass(r,"kt-menu__toggle")&&0===r.querySelectorAll(".kt-menu__toggle").length)for(var l=0,p=u.length;l<p;l++)s.hideSubmenuDropdown(u[0],!0)}},handleSubmenuAccordion:function(n,r){var u,l=r||this;if("dropdown"===s.getSubmenuMode(r)&&(u=l.closest(".kt-menu__item"))&&"accordion"!=u.getAttribute("data-ktmenu-submenu-mode"))n.preventDefault();else{var p=l.closest(".kt-menu__item"),x=KTUtil.child(p,".kt-menu__submenu, .kt-menu__inner");if(!KTUtil.hasClass(l.closest(".kt-menu__item"),"kt-menu__item--open-always")&&p&&x){n.preventDefault();var m=c.options.accordion.slideSpeed;if(!1===KTUtil.hasClass(p,"kt-menu__item--open")){if(!1===c.options.accordion.expandAll){var w=l.closest(".kt-menu__nav, .kt-menu__subnav"),C=KTUtil.children(w,".kt-menu__item.kt-menu__item--open.kt-menu__item--submenu:not(.kt-menu__item--here):not(.kt-menu__item--open-always)");if(w&&C)for(var k=0,M=C.length;k<M;k++){var N=C[0],O=KTUtil.child(N,".kt-menu__submenu");O&&KTUtil.slideUp(O,m,function(){s.scrollUpdate(),KTUtil.removeClass(N,"kt-menu__item--open")})}}KTUtil.slideDown(x,m,function(){s.scrollToItem(l),s.scrollUpdate(),s.eventTrigger("submenuToggle",x,n)}),KTUtil.addClass(p,"kt-menu__item--open")}else KTUtil.slideUp(x,m,function(){s.scrollToItem(l),s.eventTrigger("submenuToggle",x,n)}),KTUtil.removeClass(p,"kt-menu__item--open")}}},scrollToItem:function(n){KTUtil.isInResponsiveRange("desktop")&&c.options.accordion.autoScroll&&"1"!==a.getAttribute("data-ktmenu-scroll")&&KTUtil.scrollTo(n,c.options.accordion.autoScrollSpeed)},hideSubmenuDropdown:function(n,r){r&&(KTUtil.removeClass(n,"kt-menu__item--hover"),KTUtil.removeClass(n,"kt-menu__item--active-tab")),n.removeAttribute("data-hover"),n.getAttribute("data-ktmenu-dropdown-toggle-class")&&KTUtil.removeClass(v,n.getAttribute("data-ktmenu-dropdown-toggle-class"));var u=n.getAttribute("data-timeout");n.removeAttribute("data-timeout"),clearTimeout(u)},hideSubmenuDropdowns:function(){var n;if(n=a.querySelectorAll('.kt-menu__item--submenu.kt-menu__item--hover:not(.kt-menu__item--tabs):not([data-ktmenu-submenu-toggle="tab"])'))for(var r=0,u=n.length;r<u;r++)s.hideSubmenuDropdown(n[r],!0)},showSubmenuDropdown:function(n){var r=a.querySelectorAll(".kt-menu__item--submenu.kt-menu__item--hover, .kt-menu__item--submenu.kt-menu__item--active-tab");if(r)for(var u=0,l=r.length;u<l;u++){var p=r[u];n!==p&&!1===p.contains(n)&&!1===n.contains(p)&&s.hideSubmenuDropdown(p,!0)}KTUtil.addClass(n,"kt-menu__item--hover"),n.getAttribute("data-ktmenu-dropdown-toggle-class")&&KTUtil.addClass(v,n.getAttribute("data-ktmenu-dropdown-toggle-class"))},createSubmenuDropdownClickDropoff:function(n){var r,u=(r=KTUtil.child(n,".kt-menu__submenu")?KTUtil.css(r,"z-index"):0)-1,l=document.createElement('<div class="kt-menu__dropoff" style="background: transparent; position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: '+u+'"></div>');v.appendChild(l),KTUtil.addEvent(l,"click",function(p){p.stopPropagation(),p.preventDefault(),KTUtil.remove(this),s.hideSubmenuDropdown(n,!0)})},pauseDropdownHover:function(n){var r=new Date;c.pauseDropdownHoverTime=r.getTime()+n},resumeDropdownHover:function(){return(new Date).getTime()>c.pauseDropdownHoverTime},resetActiveItem:function(n){for(var r,u,l=0,p=(r=a.querySelectorAll(".kt-menu__item--active")).length;l<p;l++){var x=r[0];KTUtil.removeClass(x,"kt-menu__item--active"),KTUtil.hide(KTUtil.child(x,".kt-menu__submenu"));for(var m=0,g=(u=KTUtil.parents(x,".kt-menu__item--submenu")||[]).length;m<g;m++){var w=u[l];KTUtil.removeClass(w,"kt-menu__item--open"),KTUtil.hide(KTUtil.child(w,".kt-menu__submenu"))}}if(!1===c.options.accordion.expandAll&&(r=a.querySelectorAll(".kt-menu__item--open")))for(l=0,p=r.length;l<p;l++)KTUtil.removeClass(u[0],"kt-menu__item--open")},setActiveItem:function(n){s.resetActiveItem();for(var r=KTUtil.parents(n,".kt-menu__item--submenu")||[],u=0,l=r.length;u<l;u++)KTUtil.addClass(KTUtil.get(r[u]),"kt-menu__item--open");KTUtil.addClass(KTUtil.get(n),"kt-menu__item--active")},getPageTitle:function(n){return KTUtil.child(n,".kt-menu__link-text")?undefined.innerHTML:""},eventTrigger:function(n,r,u){for(var l=0;l<c.events.length;l++){var p=c.events[l];if(p.name==n){if(1!=p.one)return p.handler.call(this,r,u);if(0==p.fired)return c.events[l].fired=!0,p.handler.call(this,r,u)}}},addEvent:function(n,r,u){c.events.push({name:n,handler:r,one:u,fired:!1})},removeEvent:function(n){c.events[n]&&delete c.events[n]}};return c.setDefaults=function(n){t=n},c.scrollUpdate=function(){return s.scrollUpdate()},c.scrollReInit=function(){return s.scrollInit()},c.scrollTop=function(){return s.scrollTop()},c.setActiveItem=function(n){return s.setActiveItem(n)},c.reload=function(){return s.reload()},c.update=function(n){return s.update(n)},c.getPageTitle=function(n){return s.getPageTitle(n)},c.getSubmenuMode=function(n){return s.getSubmenuMode(n)},c.hideDropdown=function(n){s.hideSubmenuDropdown(n,!0)},c.hideDropdowns=function(){s.hideSubmenuDropdowns()},c.pauseDropdownHover=function(n){s.pauseDropdownHover(n)},c.resumeDropdownHover=function(){return s.resumeDropdownHover()},c.on=function(n,r){return s.addEvent(n,r)},c.off=function(n){return s.removeEvent(n)},c.one=function(n,r){return s.addEvent(n,r,!0)},s.construct.apply(c,[y]),KTUtil.addResizeHandler(function(){d&&c.reload()}),d=!0,c}};document.addEventListener("click",function(h){var c;if(c=KTUtil.get("body").querySelectorAll('.kt-menu__nav .kt-menu__item.kt-menu__item--submenu.kt-menu__item--hover:not(.kt-menu__item--tabs)[data-ktmenu-submenu-toggle="click"]'))for(var d=0,a=c.length;d<a;d++){var v=c[d].closest(".kt-menu__nav").parentNode;if(v){var t=KTUtil.data(v).get("menu");if(!t||!t||"dropdown"!==t.getSubmenuMode())break;h.target!==v&&!1===v.contains(h.target)&&t.hideDropdowns()}}});var KTOffcanvas=function(h,y){var c=this,a=KTUtil.get(h),v=KTUtil.get("body");if(a){var t={},s={construct:function(n){return KTUtil.data(a).has("offcanvas")?c=KTUtil.data(a).get("offcanvas"):(s.init(n),s.build(),KTUtil.data(a).set("offcanvas",c)),c},init:function(n){c.events=[],c.options=KTUtil.deepExtend({},t,n),c.classBase=c.options.baseClass,c.classShown=c.classBase+"--on",c.classOverlay=c.classBase+"-overlay",c.state=KTUtil.hasClass(a,c.classShown)?"shown":"hidden"},build:function(){if(c.options.toggleBy)if("string"==typeof c.options.toggleBy)KTUtil.addEvent(c.options.toggleBy,"click",function(u){u.preventDefault(),s.toggle()});else if(c.options.toggleBy&&c.options.toggleBy[0])if(c.options.toggleBy[0].target)for(var n in c.options.toggleBy)KTUtil.addEvent(c.options.toggleBy[n].target,"click",function(u){u.preventDefault(),s.toggle()});else for(var n in c.options.toggleBy)KTUtil.addEvent(c.options.toggleBy[n],"click",function(l){l.preventDefault(),s.toggle()});else c.options.toggleBy&&c.options.toggleBy.target&&KTUtil.addEvent(c.options.toggleBy.target,"click",function(u){u.preventDefault(),s.toggle()});var r=KTUtil.get(c.options.closeBy);r&&KTUtil.addEvent(r,"click",function(u){u.preventDefault(),s.hide()}),KTUtil.addResizeHandler(function(){(parseInt(KTUtil.css(a,"left"))>=0||parseInt(KTUtil.css(a,"right")>=0)||"fixed"!=KTUtil.css(a,"position"))&&KTUtil.css(a,"opacity","1")})},isShown:function(n){return"shown"==c.state},toggle:function(){s.eventTrigger("toggle"),"shown"==c.state?s.hide(this):s.show(this)},show:function(n){"shown"!=c.state&&(s.eventTrigger("beforeShow"),s.togglerClass(n,"show"),KTUtil.addClass(v,c.classShown),KTUtil.addClass(a,c.classShown),KTUtil.css(a,"opacity","1"),c.state="shown",c.options.overlay&&(c.overlay=KTUtil.insertAfter(d
1ocument.createElement("DIV"),a),KTUtil.addClass(c.overlay,c.classOverlay),KTUtil.addEvent(c.overlay,"click",function(r){r.stopPropagation(),r.preventDefault(),s.hide(n)})),s.eventTrigger("afterShow"))},hide:function(n){"hidden"!=c.state&&(s.eventTrigger("beforeHide"),s.togglerClass(n,"hide"),KTUtil.removeClass(v,c.classShown),KTUtil.removeClass(a,c.classShown),c.state="hidden",c.options.overlay&&c.overlay&&KTUtil.remove(c.overlay),KTUtil.transitionEnd(a,function(){KTUtil.css(a,"opacity","0")}),s.eventTrigger("afterHide"))},togglerClass:function(n,r){var l,u=KTUtil.attr(n,"id");if(c.options.toggleBy&&c.options.toggleBy[0]&&c.options.toggleBy[0].target)for(var p in c.options.toggleBy)c.options.toggleBy[p].target===u&&(l=c.options.toggleBy[p]);else c.options.toggleBy&&c.options.toggleBy.target&&(l=c.options.toggleBy);if(l){var x=KTUtil.get(l.target);"show"===r&&KTUtil.addClass(x,l.state),"hide"===r&&KTUtil.removeClass(x,l.state)}},eventTrigger:function(n,r){for(var u=0;u<c.events.length;u++){var l=c.events[u];l.name==n&&(1==l.one?0==l.fired&&(c.events[u].fired=!0,l.handler.call(this,c,r)):l.handler.call(this,c,r))}},addEvent:function(n,r,u){c.events.push({name:n,handler:r,one:u,fired:!1})}};return c.setDefaults=function(n){t=n},c.isShown=function(){return s.isShown()},c.hide=function(){return s.hide()},c.show=function(){return s.show()},c.on=function(n,r){return s.addEvent(n,r)},c.one=function(n,r){return s.addEvent(n,r,!0)},s.construct.apply(c,[y]),c}},KTScrolltop=function(h,y){var c=this,a=KTUtil.get(h),v=KTUtil.get("body");if(a){var t={offset:300,speed:600,toggleClass:"kt-scrolltop--on"},s={construct:function(n){return KTUtil.data(a).has("scrolltop")?c=KTUtil.data(a).get("scrolltop"):(s.init(n),s.build(),KTUtil.data(a).set("scrolltop",c)),c},init:function(n){c.events=[],c.options=KTUtil.deepExtend({},t,n)},build:function(){navigator.userAgent.match(/iPhone|iPad|iPod/i)?(window.addEventListener("touchend",function(){s.handle()}),window.addEventListener("touchcancel",function(){s.handle()}),window.addEventListener("touchleave",function(){s.handle()})):window.addEventListener("scroll",function(){s.handle()}),KTUtil.addEvent(a,"click",s.scroll)},handle:function(){window.pageYOffset>c.options.offset?KTUtil.addClass(v,c.options.toggleClass):KTUtil.removeClass(v,c.options.toggleClass)},scroll:function(n){n.preventDefault(),KTUtil.scrollTop(0,c.options.speed)},eventTrigger:function(n,r){for(var u=0;u<c.events.length;u++){var l=c.events[u];l.name==n&&(1==l.one?0==l.fired&&(c.events[u].fired=!0,l.handler.call(this,c,r)):l.handler.call(this,c,r))}},addEvent:function(n,r,u){c.events.push({name:n,handler:r,one:u,fired:!1})}};return c.setDefaults=function(n){t=n},c.on=function(n,r){return s.addEvent(n,r)},c.one=function(n,r){return s.addEvent(n,r,!0)},s.construct.apply(c,[y]),c}},KTToggle=function(h,y){var c=this,a=KTUtil.get(h);if(KTUtil.get("body"),a){var t={togglerState:"",targetState:""},s={construct:function(n){return KTUtil.data(a).has("toggle")?c=KTUtil.data(a).get("toggle"):(s.init(n),s.build(),KTUtil.data(a).set("toggle",c)),c},init:function(n){c.element=a,c.events=[],c.options=KTUtil.deepExtend({},t,n),c.target=KTUtil.get(c.options.target),c.targetState=c.options.targetState,c.togglerState=c.options.togglerState,c.state=KTUtil.hasClasses(c.target,c.targetState)?"on":"off"},build:function(){KTUtil.addEvent(a,"mouseup",s.toggle)},toggle:function(n){return s.eventTrigger("beforeToggle"),"off"==c.state?s.toggleOn():s.toggleOff(),s.eventTrigger("afterToggle"),n.preventDefault(),c},toggleOn:function(){return s.eventTrigger("beforeOn"),KTUtil.addClass(c.target,c.targetState),c.togglerState&&KTUtil.addClass(a,c.togglerState),c.state="on",s.eventTrigger("afterOn"),s.eventTrigger("toggle"),c},toggleOff:function(){return s.eventTrigger("beforeOff"),KTUtil.removeClass(c.target,c.targetState),c.togglerState&&KTUtil.removeClass(a,c.togglerState),c.state="off",s.eventTrigger("afterOff"),s.eventTrigger("toggle"),c},eventTrigger:function(n){for(var r=0;r<c.events.length;r++){var u=c.events[r];u.name==n&&(1==u.one?0==u.fired&&(c.events[r].fired=!0,u.handler.call(this,c)):u.handler.call(this,c))}},addEvent:function(n,r,u){return c.events.push({name:n,handler:r,one:u,fired:!1}),c}};return c.setDefaults=function(n){t=n},c.getState=function(){return c.state},c.toggle=function(){return s.toggle()},c.toggleOn=function(){return s.toggleOn()},c.toggleOff=function(){return s.toggleOff()},c.on=function(n,r){return s.addEvent(n,r)},c.one=function(n,r){return s.addEvent(n,r,!0)},s.construct.apply(c,[y]),c}},KTDialog=function(h){var c,y=this,d=KTUtil.get("body"),a={placement:"top center",type:"loader",width:100,state:"default",message:"Loading..."},v={construct:function(t){return v.init(t),y},init:function(t){y.events=[],y.options=KTUtil.deepExtend({},a,t),y.state=!1},show:function(){return v.eventTrigger("show"),c=document.createElement("DIV"),KTUtil.setHTML(c,y.options.message),KTUtil.addClass(c,"kt-dialog kt-dialog--shown"),KTUtil.addClass(c,"kt-dialog--"+y.options.state),KTUtil.addClass(c,"kt-dialog--"+y.options.type),"top center"==y.options.placement&&KTUtil.addClass(c,"kt-dialog--top-center"),d.appendChild(c),y.state="shown",v.eventTrigger("shown"),y},hide:function(){return c&&(v.eventTrigger("hide"),c.remove(),y.state="hidden",v.eventTrigger("hidden")),y},eventTrigger:function(t){for(var s=0;s<y.events.length;s++){var n=y.events[s];n.name==t&&(1==n.one?0==n.fired&&(y.events[s].fired=!0,n.handler.call(this,y)):n.handler.call(this,y))}},addEvent:function(t,s,n){return y.events.push({name:t,handler:s,one:n,fired:!1}),y}};return y.setDefaults=function(t){a=t},y.shown=function(){return"shown"==y.state},y.hidden=function(){return"hidden"==y.state},y.show=function(){return v.show()},y.hide=function(){return v.hide()},y.on=function(t,s){return v.addEvent(t,s)},y.one=function(t,s){return v.addEvent(t,s,!0)},v.construct.apply(y,[h]),y},KTWizard=function(h,y){var c=this,a=KTUtil.get(h);if(KTUtil.get("body"),a){var t={startStep:1,manualStepForward:!1},s={construct:function(n){return KTUtil.data(a).has("wizard")?c=KTUtil.data(a).get("wizard"):(s.init(n),s.build(),KTUtil.data(a).set("wizard",c)),c},init:function(n){c.element=a,c.events=[],c.options=KTUtil.deepExtend({},t,n),c.steps=KTUtil.findAll(a,'[data-ktwizard-type="step"]'),c.btnSubmit=KTUtil.find(a,'[data-ktwizard-type="action-submit"]'),c.btnNext=KTUtil.find(a,'[data-ktwizard-type="action-next"]'),c.btnPrev=KTUtil.find(a,'[data-ktwizard-type="action-prev"]'),c.btnLast=KTUtil.find(a,'[data-ktwizard-type="action-last"]'),c.btnFirst=KTUtil.find(a,'[data-ktwizard-type="action-first"]'),c.events=[],c.currentStep=1,c.stopped=!1,c.totalSteps=c.steps.length,c.options.startStep>1&&s.goTo(c.options.startStep),s.updateUI()},build:function(){KTUtil.addEvent(c.btnNext,"click",function(n){n.preventDefault(),s.goNext()}),KTUtil.addEvent(c.btnPrev,"click",function(n){n.preventDefault(),s.goPrev()}),KTUtil.addEvent(c.btnFirst,"click",function(n){n.preventDefault(),s.goFirst()}),KTUtil.addEvent(c.btnLast,"click",function(n){n.preventDefault(),s.goLast()}),KTUtil.on(a,'a[data-ktwizard-type="step"]',"click",function(){var n=KTUtil.index(this)+1;n!==c.currentStep&&s.goTo(n)})},goTo:function(n){var r;if(!(n===c.currentStep||n>c.totalSteps||n<0))return n=n?parseInt(n):s.getNextStep(),r=s.eventTrigger(n>c.currentStep?"beforeNext":"beforePrev"),!0===c.stopped?void(c.stopped=!1):(!1!==r&&(s.eventTrigger("beforeChange"),c.currentStep=n,s.updateUI(),s.eventTrigger("change")),s.eventTrigger(n>c.startStep?"afterNext":"afterPrev"),c)},stop:function(){c.stopped=!0},start:function(){c.stopped=!1},isLastStep:function(){return c.currentStep===c.totalSteps},isFirstStep:function(){return 1===c.currentStep},isBetweenStep:function(){return!1===s.isLastStep()&&!1===s.isFirstStep()},goNext:function(){return s.goTo(s.getNextStep())},goPrev:function(){return s.goTo(s.getPrevStep())},goLast:function(){return s.goTo(c.totalSteps)},goFirst:function(){return s.goTo(1)},updateUI:function(){var n,r=c.currentStep-1;n=s.isLastStep()?"last":s.isFirstStep()?"first":"between",KTUtil.attr(c.element,"data-ktwizard-state",n);var u=KTUtil.findAll(c.element,'[data-ktwizard-type="step"]');if(u&&u.length>0)for(var l=0,p=u.length;l<p;l++)KTUtil.attr(u[l],"data-ktwizard-state",l==r?"current":l<r?"done":"pending");var x=KTUtil.findAll(c.element,'[data-ktwizard-type="step-info"]');if(x&&x.length>0)for(l=0,p=x.length;l<p;l++)l==r?KTUtil.attr(x[l],"data-ktwizard-state","current"):KTUtil.removeAttr(x[l],"data-ktwizard-state");var m=KTUtil.findAll(c.element,'[data-ktwizard-type="step-content"]');if(m&&m.length>0)for(l=0,p=m.length;l<p;l++)l==r?KTUtil.attr(m[l],"data-ktwizard-state","current"):KTUtil.removeAttr(m[l],"data-ktwizard-state")},getNextStep:function(){return c.totalSteps>=c.currentStep+1?c.currentStep+1:c.totalSteps},getPrevStep:function(){return c.currentStep-1>=1?c.currentStep-1:1},eventTrigger:function(n){for(var r=0;r<c.events.length;r++){var u=c.events[r];u.name==n&&(1==u.one?0==u.fired&&(c.events[r].fired=!0,u.handler.call(this,c)):u.handler.call(this,c))}},addEvent:function(n,r,u){return c.events.push({name:n,handler:r,one:u,fired:!1}),c}};return c.setDefaults=function(n){t=n},c.goNext=function(){return s.goNext()},c.goPrev=function(){return s.goPrev()},c.goLast=function(){return s.goLast()},c.stop=function(){return s.stop()},c.start=function(){return s.start()},c.goFirst=function(){return s.goFirst()},c.goTo=function(n){return s.goTo(n)},c.getStep=function(){return c.currentStep},c.isLastStep=function(){return s.isLastStep()},c.isFirstStep=function(){return s.isFirstStep()},c.on=function(n,r){return s.addEvent(n,r)},c.one=function(n,r){return s.addEvent(n,r,!0)},s.construct.apply(c,[y]),c}};!function(h,y){"object"==typeof exports&&"object"==typeof module?module.exports=y():"function"==typeof define&&define.amd?define([],y):"object"==typeof exports?exp
1orts.Quill=y():h.Quill=y()}("undefined"!=typeof self?self:this,function(){return function(h){function y(d){if(c[d])return c[d].exports;var a=c[d]={i:d,l:!1,exports:{}};return h[d].call(a.exports,a,a.exports,y),a.l=!0,a.exports}var c={};return y.m=h,y.c=c,y.d=function(d,a,v){y.o(d,a)||Object.defineProperty(d,a,{configurable:!1,enumerable:!0,get:v})},y.n=function(d){var a=d&&d.__esModule?function(){return d.default}:function(){return d};return y.d(a,"a",a),a},y.o=function(d,a){return Object.prototype.hasOwnProperty.call(d,a)},y.p="",y(y.s=45)}([function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var d=c(17),a=c(18),v=c(19),t=c(48),s=c(49),n=c(50),r=c(51),u=c(52),l=c(11),p=c(29),x=c(30),m=c(28),g=c(1);y.default={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:d.default,Format:a.default,Leaf:v.default,Embed:r.default,Scroll:t.default,Block:n.default,Inline:s.default,Text:u.default,Attributor:{Attribute:l.default,Class:p.default,Style:x.default,Store:m.default}}},function(h,y,c){"use strict";function v(m,g){var w;if(void 0===g&&(g=x.ANY),"string"==typeof m)w=p[m]||r[m];else if(m instanceof Text||m.nodeType===Node.TEXT_NODE)w=p.text;else if("number"==typeof m)m&x.LEVEL&x.BLOCK?w=p.block:m&x.LEVEL&x.INLINE&&(w=p.inline);else if(m instanceof HTMLElement){var C=(m.getAttribute("class")||"").split(/\s+/);for(var k in C)if(w=u[C[k]])break;w=w||l[m.tagName]}return null==w?null:g&x.LEVEL&w.scope&&g&x.TYPE&w.scope?w:null}var m,s=this&&this.__extends||(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,w){g.__proto__=w}||function(g,w){for(var C in w)w.hasOwnProperty(C)&&(g[C]=w[C])},function(g,w){function C(){this.constructor=g}m(g,w),g.prototype=null===w?Object.create(w):(C.prototype=w.prototype,new C)});Object.defineProperty(y,"__esModule",{value:!0});var n=function(m){function g(w){var C=this;return(C=m.call(this,w="[Parchment] "+w)||this).message=w,C.name=C.constructor.name,C}return s(g,m),g}(Error);y.ParchmentError=n;var x,r={},u={},l={},p={};y.DATA_KEY="__blot",function(m){m[m.TYPE=3]="TYPE",m[m.LEVEL=12]="LEVEL",m[m.ATTRIBUTE=13]="ATTRIBUTE",m[m.BLOT=14]="BLOT",m[m.INLINE=7]="INLINE",m[m.BLOCK=11]="BLOCK",m[m.BLOCK_BLOT=10]="BLOCK_BLOT",m[m.INLINE_BLOT=6]="INLINE_BLOT",m[m.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",m[m.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",m[m.ANY=15]="ANY"}(x=y.Scope||(y.Scope={})),y.create=function d(m,g){var w=v(m);if(null==w)throw new n("Unable to create "+m+" blot");return new w(m instanceof Node||m.nodeType===Node.TEXT_NODE?m:w.create(g),g)},y.find=function a(m,g){return void 0===g&&(g=!1),null==m?null:null!=m[y.DATA_KEY]?m[y.DATA_KEY].blot:g?a(m.parentNode,g):null},y.query=v,y.register=function t(){for(var m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];if(m.length>1)return m.map(function(k){return t(k)});var w=m[0];if("string"!=typeof w.blotName&&"string"!=typeof w.attrName)throw new n("Invalid definition");if("abstract"===w.blotName)throw new n("Cannot register abstract class");if(p[w.blotName||w.attrName]=w,"string"==typeof w.keyName)r[w.keyName]=w;else if(null!=w.className&&(u[w.className]=w),null!=w.tagName){w.tagName=Array.isArray(w.tagName)?w.tagName.map(function(k){return k.toUpperCase()}):w.tagName.toUpperCase();var C=Array.isArray(w.tagName)?w.tagName:[w.tagName];C.forEach(function(k){null!=l[k]&&null!=w.className||(l[k]=w)})}return w}},function(h,y){"use strict";var c=Object.prototype.hasOwnProperty,d=Object.prototype.toString,a=Object.defineProperty,v=Object.getOwnPropertyDescriptor,t=function(u){return"function"==typeof Array.isArray?Array.isArray(u):"[object Array]"===d.call(u)},s=function(u){if(!u||"[object Object]"!==d.call(u))return!1;var x,l=c.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&c.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!l&&!p)return!1;for(x in u);return void 0===x||c.call(u,x)},n=function(u,l){a&&"__proto__"===l.name?a(u,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):u[l.name]=l.newValue},r=function(u,l){if("__proto__"===l){if(!c.call(u,l))return;if(v)return v(u,l).value}return u[l]};h.exports=function u(){var l,p,x,m,g,w,C=arguments[0],k=1,M=arguments.length,N=!1;for("boolean"==typeof C&&(N=C,C=arguments[1]||{},k=2),(null==C||"object"!=typeof C&&"function"!=typeof C)&&(C={});k<M;++k)if(null!=(l=arguments[k]))for(p in l)x=r(C,p),C!==(m=r(l,p))&&(N&&m&&(s(m)||(g=t(m)))?(g?(g=!1,w=x&&t(x)?x:[]):w=x&&s(x)?x:{},n(C,{name:p,newValue:u(N,w,m)})):void 0!==m&&n(C,{name:p,newValue:m}));return C}}
vendor: 15,022 bytes, line 1
1,function(h,y,c){"use strict";function d(A){return A&&A.__esModule?A:{default:A}}function a(A,T){if(!(A instanceof T))throw new TypeError("Cannot call a class as a function")}function v(A,T){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?A:T}function t(A,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);A.prototype=Object.create(T&&T.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(A,T):A.__proto__=T)}function s(A){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==A?T:("function"==typeof A.formats&&(T=(0,l.default)(T,A.formats())),null==A.parent||"scroll"==A.parent.blotName||A.parent.statics.scope!==A.statics.scope?T:s(A.parent,T))}Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.BlockEmbed=y.bubbleFormats=void 0;var n=function(){function A(T,L){for(var I=0;I<L.length;I++){var F=L[I];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(T,F.key,F)}}return function(T,L,I){return L&&A(T.prototype,L),I&&A(T,I),T}}(),r=function A(T,L,I){null===T&&(T=Function.prototype);var F=Object.getOwnPropertyDescriptor(T,L);if(void 0===F){var W=Object.getPrototypeOf(T);return null===W?void 0:A(W,L,I)}if("value"in F)return F.value;var q=F.get;return void 0!==q?q.call(I):void 0},l=d(c(2)),x=d(c(4)),g=d(c(0)),C=d(c(14)),M=d(c(5)),O=d(c(8)),_=function(A){function T(){return a(this,T),v(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return t(T,A),n(T,[{key:"attach",value:function(){r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"attach",this).call(this),this.attributes=new g.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new x.default).insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(L,I){var F=g.default.query(L,g.default.Scope.BLOCK_ATTRIBUTE);null!=F&&this.attributes.attribute(F,I)}},{key:"formatAt",value:function(L,I,F,W){this.format(F,W)}},{key:"insertAt",value:function(L,I,F){if("string"==typeof I&&I.endsWith("\n")){var W=g.default.create(P.blotName);this.parent.insertBefore(W,0===L?this:this.next),W.insertAt(0,I.slice(0,-1))}else r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,L,I,F)}}]),T}(g.default.Embed);_.scope=g.default.Scope.BLOCK_BLOT;var P=function(A){function T(L){a(this,T);var I=v(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,L));return I.cache={},I}return t(T,A),n(T,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(g.default.Leaf).reduce(function(L,I){return 0===I.length()?L:L.insert(I.value(),s(I))},new x.default).insert("\n",s(this))),this.cache.delta}},{key:"deleteAt",value:function(L,I){r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"deleteAt",this).call(this,L,I),this.cache={}}},{key:"formatAt",value:function(L,I,F,W){I<=0||(g.default.query(F,g.default.Scope.BLOCK)?L+I===this.length()&&this.format(F,W):r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"formatAt",this).call(this,L,Math.min(I,this.length()-L-1),F,W),this.cache={})}},{key:"insertAt",value:function(L,I,F){if(null!=F)return r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,L,I,F);if(0!==I.length){var W=I.split("\n"),q=W.shift();q.length>0&&(L<this.length()-1||null==this.children.tail?r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,Math.min(L,this.length()-1),q):this.children.tail.insertAt(this.children.tail.length(),q),this.cache={});var et=this;W.reduce(function(X,it){return(et=et.split(X,!0)).insertAt(0,it),it.length},L+q.length)}}},{key:"insertBefore",value:function(L,I){var F=this.children.head;r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertBefore",this).call(this,L,I),F instanceof C.default&&F.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(L,I){r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"moveChildren",this).call(this,L,I),this.cache={}}},{key:"optimize",value:function(L){r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,L),this.cache={}}},{key:"path",value:function(L){return r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"path",this).call(this,L,!0)}},{key:"removeChild",value:function(L){r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"removeChild",this).call(this,L),this.cache={}}},{key:"split",value:function(L){var I=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(I&&(0===L||L>=this.length()-1)){var F=this.clone();return 0===L?(this.parent.insertBefore(F,this),this):(this.parent.insertBefore(F,this.next),F)}var W=r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"split",this).call(this,L,I);return this.cache={},W}}]),T}(g.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[M.default,g.default.Embed,O.default],y.bubbleFormats=s,y.BlockEmbed=_,y.default=P},function(h,y,c){var d=c(54),a=c(12),v=c(2),t=c(20),s=String.fromCharCode(0),n=function(r){this.ops=Array.isArray(r)?r:null!=r&&Array.isArray(r.ops)?r.ops:[]};n.prototype.insert=function(r,u){var l={};return 0===r.length?this:(l.insert=r,null!=u&&"object"==typeof u&&Object.keys(u).length>0&&(l.attributes=u),this.push(l))},n.prototype.delete=function(r){return r<=0?this:this.push({delete:r})},n.prototype.retain=function(r,u){if(r<=0)return this;var l={retain:r};return null!=u&&"object"==typeof u&&Object.keys(u).length>0&&(l.attributes=u),this.push(l)},n.prototype.push=function(r){var u=this.ops.length,l=this.ops[u-1];if(r=v(!0,{},r),"object"==typeof l){if("number"==typeof r.delete&&"number"==typeof l.delete)return this.ops[u-1]={delete:l.delete+r.delete},this;if("number"==typeof l.delete&&null!=r.insert&&"object"!=typeof(l=this.ops[(u-=1)-1]))return this.ops.unshift(r),this;if(a(r.attributes,l.attributes)){if("string"==typeof r.insert&&"string"==typeof l.insert)return this.ops[u-1]={insert:l.insert+r.insert},"object"==typeof r.attributes&&(this.ops[u-1].attributes=r.attributes),this;if("number"==typeof r.retain&&"number"==typeof l.retain)return this.ops[u-1]={retain:l.retain+r.retain},"object"==typeof r.attributes&&(this.ops[u-1].attributes=r.attributes),this}}return u===this.ops.length?this.ops.push(r):this.ops.splice(u,0,r),this},n.prototype.chop=function(){var r=this.ops[this.ops.length-1];return r&&r.retain&&!r.attributes&&this.ops.pop(),this},n.prototype.filter=function(r){return this.ops.filter(r)},n.prototype.forEach=function(r){this.ops.forEach(r)},n.prototype.map=function(r){return this.ops.map(r)},n.prototype.partition=function(r){var u=[],l=[];return this.forEach(function(p){(r(p)?u:l).push(p)}),[u,l]},n.prototype.reduce=function(r,u){return this.ops.reduce(r,u)},n.prototype.changeLength=function(){return this.reduce(function(r,u){return u.insert?r+t.length(u):u.delete?r-u.delete:r},0)},n.prototype.length=function(){return this.reduce(function(r,u){return r+t.length(u)},0)},n.prototype.slice=function(r,u){r=r||0,"number"!=typeof u&&(u=1/0);for(var l=[],p=t.iterator(this.ops),x=0;x<u&&p.hasNext();){var m;x<r?m=p.next(r-x):(m=p.next(u-x),l.push(m)),x+=t.length(m)}return new n(l)},n.prototype.compose=function(r){var u=t.iterator(this.ops),l=t.iterator(r.ops),p=[],x=l.peek();if(null!=x&&"number"==typeof x.retain&&null==x.attributes){for(var m=x.retain;"insert"===u.peekType()&&u.peekLength()<=m;)m-=u.peekLength(),p.push(u.next());x.retain-m>0&&l.next(x.retain-m)}for(var g=new n(p);u.hasNext()||l.hasNext();)if("insert"===l.peekType())g.push(l.next());else if("delete"===u.peekType())g.push(u.next());else{var w=Math.min(u.peekLength(),l.peekLength()),C=u.next(w),k=l.next(w);if("number"==typeof k.retain){var M={};"number"==typeof C.retain?M.retain=w:M.insert=C.insert;var N=t.attributes.compose(C.attributes,k.attributes,"number"==typeof C.retain);if(N&&(M.attributes=N),g.push(M),!l.hasNext()&&a(g.ops[g.ops.length-1],M)){var O=new n(u.rest());return g.concat(O).chop()}}else"number"==typeof k.delete&&"number"==typeof C.retain&&g.push(k)}return g.chop()},n.prototype.concat=function(r){var u=new n(this.ops.slice());return r.ops.length>0&&(u.push(r.ops[0]),u.ops=u.ops.concat(r.ops.slice(1))),u},n.prototype.diff=function(r,u){if(this.ops===r.ops)return new n;var l=[this,r].map(function(w){return w.map(function(C){if(null!=C.insert)return"string"==typeof C.insert?C.insert:s;throw new Error("diff() called "+(w===r?"on":"with")+" non-document")}).join("")}),p=new n,x=d(l[0],l[1],u),m=t.iterator(this.ops),g=t.iterator(r.ops);return x.forEach(function(w){for(var C=w[1].length;C>0;){var k=0;switch(w[0]){case d.INSERT:k=Math.min(g.peekLength(),C),p.push(g.next(k));break;case d.DELETE:k=Math.min(C,m.peekLength()),m.next(k),p.delete(k);break;case d.EQUAL:k=Math.min(m.peekLength(),g.peekLength(),C);var M=m.next(k),N=g.next(k);a(M.insert,N.insert)?p.retain(k,t.attributes.diff(M.attributes,N.attributes)):p.push(N).delete(k)}C-=k}}),p.chop()},n.prototype.eachLine=function(r,u){u=u||"\n";for(var l=t.iterator(this.ops),p=new n,x=0;l.hasNext();){if("insert"!==l.peekType())return;var m=l.peek(),g=t.length(m)-l.peekLength(),w="string"==typeof m.insert?m.insert.indexOf(u,g)-g:-1;if(w<0)p.push(l.next());else if(w>0)p.push(l.next(w));else{if(!1===r(p,l.next(1).attributes||{},x))return;x+=1,p=new n}}p.length()>0&&r(p,{},x)},n.prototype.transform=function(r,u){if(u=!!u,"number"==typeof r)return this.transformPosition(r,u);for(var l=t.iterator(this.ops),p=t.iterator(r.ops),x=new n;l.hasNext()||p.hasNext();)if("insert"!==l.peekType()||!u&&"insert"===p.peekType())if("insert"===p.peekType())x.push(p.next());else{var m=Math.min(l.peekLength(),p.peekLength()),g=l.next(m),w=p.next(m);if(g.delete)continue;w.delete?x.push(w):x.retain(m,t.attributes.transform(g.attributes,w.attributes,u))}else x.retain(t.length(l.next()));return x.chop()},n.prototype.transformPosition=function(r,u){u=!!u;for(var l=t.iterator(this.ops),p=0;l.hasNext()&&p<=r;){var x=l.peekLength(),m=l.peekType();l.next(),"delete"!==m?("insert"===m&&(p<r||!u)&&(r+=x),p+=x):r-=Math.min(x,r-p)}return r},h.exports=n},function(h,y,c){"use strict";function d(m){return m&&m.__esModule?m:{default:m}}function a(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function v(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?m:g}Object.defineProperty(y,"__esModule",{value:!0});var s=function(){function m(g,w){for(var C=0;C<w.length;C++){var k=w[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,w,C){return w&&m(g.prototype,w),C&&m(g,C),g}}(),n=function m(g,w,C){null===g&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,w);if(void 0===k){var M=Object.getPrototypeOf(g);return null===M?void 0:m(M,w,C)}if("value"in k)return k.value;var N=k.get;return void 0!==N?N.call(C):void 0},u=d(c(8)),p=d(c(0)),x=function(m){function g(){return a(this,g),v(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return function t(m,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}(g,m),s(g,[{key:"formatAt",value:function(w,C,k,M){if(g.compare(this.statics.blotName,k)<0&&p.default.query(k,p.default.Scope.BLOT)){var N=this.isolate(w,C);M&&N.wrap(k,M)}else n(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,w,C,k,M)}},{key:"optimize",value:function(w){if(n(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,w),this.parent instanceof g&&g.compare(this.statics.blotName,this.parent.statics.blotName)>0){var C=this.parent.isolate(this.offset(),this.length());this.moveChildren(C),C.wrap(this)}}}],[{key:"compare",value:function(w,C){var k=g.order.indexOf(w),M=g.order.indexOf(C);return k>=0||M>=0?k-M:w===C?0:w<C?-1:1}}]),g}(p.default.Inline);x.allowedChildren=[x,p.default.Embed,u.default],x.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],y.default=x},function(h,y,c){"use strict";function d(it){return it&&it.__esModule?it:{default:it}}function a(it,z,j){return z in it?Object.defineProperty(it,z,{value:j,enumerable:!0,configurable:!0,writable:!0}):it[z]=j,it}function v(it,z){if(!(it instanceof z))throw new TypeError("Cannot call a class as a function")}function t(it,z){if((z=(0,L.default)(!0,{container:it,modules:{clipboard:!0,keyboard:!0,history:!0}},z)).theme&&z.theme!==X.DEFAULTS.theme){if(z.theme=X.import("themes/"+z.theme),null==z.theme)throw new Error("Invalid theme "+z.theme+". Did you register it?")}else z.theme=q.default;var j=(0,L.default)(!0,{},z.theme.DEFAULTS);[j,z].forEach(function(ct){ct.modules=ct.modules||{},Object.keys(ct.modules).forEach(function(ut){!0===ct.modules[ut]&&(ct.modules[ut]={})})});var at=Object.keys(j.modules).concat(Object.keys(z.modules)).reduce(function(ct,ut){var rt=X.import("modules/"+ut);return null==rt?et.error("Cannot load "+ut+" module. Are you sure you registered it?"):ct[ut]=rt.DEFAULTS||{},ct},{});return null!=z.modules&&z.modules.toolbar&&z.modules.toolbar.constructor!==Object&&(z.modules.toolbar={container:z.modules.toolbar}),z=(0,L.default)(!0,{},X.DEFAULTS,{modules:at},j,z),["bounds","container","scrollingContainer"].forEach(function(ct){"string"==typeof z[ct]&&(z[ct]=document.querySelector(z[ct]))}),z.modules=Object.keys(z.modules).reduce(function(ct,ut){return z.modules[ut]&&(ct[ut]=z.modules[ut]),ct},{}),z}function s(it,z,j,tt){if(this.options.strict&&!this.isEnabled()&&z===k.default.sources.USER)return new m.default;var at=null==j?null:this.getSelection(),ct=this.editor.delta,ut=it();if(null!=at&&(!0===j&&(j=at.index),null==tt?at=r(at,ut,z):0!==tt&&(at=r(at,j,tt,z)),this.setSelection(at,k.default.sources.SILENT)),ut.length()>0){var rt,ft,lt=[k.default.events.TEXT_CHANGE,ut,ct,z];(rt=this.emitter).emit.apply(rt,[k.default.events.EDITOR_CHANGE].concat(lt)),z!==k.default.sources.SILENT&&(ft=this.emitter).emit.apply(ft,lt)}return ut}function n(it,z,j,tt,at){var ct={};return"number"==typeof it.index&&"number"==typeof it.length?"number"!=typeof z?(at=tt,tt=j,j=z,z=it.length,it=it.index):(z=it.length,it=it.index):"number"!=typeof z&&(at=tt,tt=j,j=z,z=0),"object"===(void 0===j?"undefined":u(j))?(ct=j,at=tt):"str
1ing"==typeof j&&(null!=tt?ct[j]=tt:at=j),[it,z,ct,at=at||k.default.sources.API]}function r(it,z,j,tt){if(null==it)return null;var at=void 0,ct=void 0;if(z instanceof m.default){var ut=[it.index,it.index+it.length].map(function(kt){return z.transformPosition(kt,tt!==k.default.sources.USER)}),rt=l(ut,2);at=rt[0],ct=rt[1]}else{var lt=[it.index,it.index+it.length].map(function(kt){return kt<z||kt===z&&tt===k.default.sources.USER?kt:j>=0?kt+j:Math.max(z,kt+j)}),ft=l(lt,2);at=ft[0],ct=ft[1]}return new P.Range(at,ct-at)}Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.overload=y.expandConfig=void 0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it},l=function(z,j){if(Array.isArray(z))return z;if(Symbol.iterator in Object(z))return function it(z,j){var tt=[],at=!0,ct=!1,ut=void 0;try{for(var rt,lt=z[Symbol.iterator]();!(at=(rt=lt.next()).done)&&(tt.push(rt.value),!j||tt.length!==j);at=!0);}catch(ft){ct=!0,ut=ft}finally{try{!at&<.return&<.return()}finally{if(ct)throw ut}}return tt}(z,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")},p=function(){function it(z,j){for(var tt=0;tt<j.length;tt++){var at=j[tt];at.enumerable=at.enumerable||!1,at.configurable=!0,"value"in at&&(at.writable=!0),Object.defineProperty(z,at.key,at)}}return function(z,j,tt){return j&&it(z.prototype,j),tt&&it(z,tt),z}}();c(53);var m=d(c(4)),w=d(c(57)),k=d(c(9)),N=d(c(7)),_=d(c(0)),P=c(22),A=d(P),L=d(c(2)),F=d(c(10)),q=d(c(32)),et=(0,F.default)("quill"),X=function(){function it(z){var j=this,tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(v(this,it),this.options=t(z,tt),this.container=this.options.container,null==this.container)return et.error("Invalid Quill container",z);this.options.debug&&it.debug(this.options.debug);var at=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new k.default,this.scroll=_.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new w.default(this.scroll),this.selection=new A.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(k.default.events.EDITOR_CHANGE,function(ut){ut===k.default.events.TEXT_CHANGE&&j.root.classList.toggle("ql-blank",j.editor.isBlank())}),this.emitter.on(k.default.events.SCROLL_UPDATE,function(ut,rt){var lt=j.selection.lastRange,ft=lt&&0===lt.length?lt.index:void 0;s.call(j,function(){return j.editor.update(null,rt,ft)},ut)});var ct=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+at+"<p><br></p></div>");this.setContents(ct),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return p(it,null,[{key:"debug",value:function(z){!0===z&&(z="log"),F.default.level(z)}},{key:"find",value:function(z){return z.__quill||_.default.find(z)}},{key:"import",value:function(z){return null==this.imports[z]&&et.error("Cannot import "+z+". Are you sure it was registered?"),this.imports[z]}},{key:"register",value:function(z,j){var tt=this,at=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof z){var ct=z.attrName||z.blotName;"string"==typeof ct?this.register("formats/"+ct,z,j):Object.keys(z).forEach(function(ut){tt.register(ut,z[ut],j)})}else null==this.imports[z]||at||et.warn("Overwriting "+z+" with",j),this.imports[z]=j,(z.startsWith("blots/")||z.startsWith("formats/"))&&"abstract"!==j.blotName?_.default.register(j):z.startsWith("modules")&&"function"==typeof j.register&&j.register()}}]),p(it,[{key:"addContainer",value:function(z){var j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof z){var tt=z;(z=document.createElement("div")).classList.add(tt)}return this.container.insertBefore(z,j),z}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(z,j,tt){var at=this,ct=n(z,j,tt),ut=l(ct,4);return s.call(this,function(){return at.editor.deleteText(z,j)},tt=ut[3],z=ut[0],-1*(j=ut[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var z=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(z),this.container.classList.toggle("ql-disabled",!z)}},{key:"focus",value:function(){var z=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=z,this.scrollIntoView()}},{key:"format",value:function(z,j){var tt=this,at=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k.default.sources.API;return s.call(this,function(){var ct=tt.getSelection(!0),ut=new m.default;if(null==ct)return ut;if(_.default.query(z,_.default.Scope.BLOCK))ut=tt.editor.formatLine(ct.index,ct.length,a({},z,j));else{if(0===ct.length)return tt.selection.format(z,j),ut;ut=tt.editor.formatText(ct.index,ct.length,a({},z,j))}return tt.setSelection(ct,k.default.sources.SILENT),ut},at)}},{key:"formatLine",value:function(z,j,tt,at,ct){var rt,ut=this,lt=n(z,j,tt,at,ct),ft=l(lt,4);return j=ft[1],rt=ft[2],s.call(this,function(){return ut.editor.formatLine(z,j,rt)},ct=ft[3],z=ft[0],0)}},{key:"formatText",value:function(z,j,tt,at,ct){var rt,ut=this,lt=n(z,j,tt,at,ct),ft=l(lt,4);return j=ft[1],rt=ft[2],s.call(this,function(){return ut.editor.formatText(z,j,rt)},ct=ft[3],z=ft[0],0)}},{key:"getBounds",value:function(z){var j=arguments.length>
vendor: 4,621 bytes, line 1
11&&void 0!==arguments[1]?arguments[1]:0,tt=void 0;tt="number"==typeof z?this.selection.getBounds(z,j):this.selection.getBounds(z.index,z.length);var at=this.container.getBoundingClientRect();return{bottom:tt.bottom-at.top,height:tt.height,left:tt.left-at.left,right:tt.right-at.left,top:tt.top-at.top,width:tt.width}}},{key:"getContents",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-z,tt=n(z,j),at=l(tt,2);return this.editor.getContents(z=at[0],j=at[1])}},{key:"getFormat",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof z?this.editor.getFormat(z,j):this.editor.getFormat(z.index,z.length)}},{key:"getIndex",value:function(z){return z.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(z){return this.scroll.leaf(z)}},{key:"getLine",value:function(z){return this.scroll.line(z)}},{key:"getLines",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof z?this.scroll.lines(z.index,z.length):this.scroll.lines(z,j)}},{key:"getModule",value:function(z){return this.theme.modules[z]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-z,tt=n(z,j),at=l(tt,2);return this.editor.getText(z=at[0],j=at[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(z,j,tt){var at=this,ct=arguments.length>3&&void 0!==arguments[3]?arguments[3]:it.sources.API;return s.call(this,function(){return at.editor.insertEmbed(z,j,tt)},ct,z)}},{key:"insertText",value:function(z,j,tt,at,ct){var rt,ut=this,lt=n(z,0,tt,at,ct),ft=l(lt,4);return rt=ft[2],s.call(this,function(){return ut.editor.insertText(z,j,rt)},ct=ft[3],z=ft[0],j.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(z,j,tt){this.clipboard.dangerouslyPasteHTML(z,j,tt)}},{key:"removeFormat",value:function(z,j,tt){var at=this,ct=n(z,j,tt),ut=l(ct,4);return j=ut[1],s.call(this,function(){return at.editor.removeFormat(z,j)},tt=ut[3],z=ut[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(z){var j=this,tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k.default.sources.API;return s.call(this,function(){z=new m.default(z);var at=j.getLength(),ct=j.editor.deleteText(0,at),ut=j.editor.applyDelta(z),rt=ut.ops[ut.ops.length-1];return null!=rt&&"string"==typeof rt.insert&&"\n"===rt.insert[rt.insert.length-1]&&(j.editor.deleteText(j.getLength()-1,1),ut.delete(1)),ct.compose(ut)},tt)}},{key:"setSelection",value:function(z,j,tt){if(null==z)this.selection.setRange(null,j||it.sources.API);else{var at=n(z,j,tt),ct=l(at,4);tt=ct[3],this.selection.setRange(new P.Range(z=ct[0],j=ct[1]),tt),tt!==k.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(z){var j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k.default.sources.API,tt=(new m.default).insert(z);return this.setContents(tt,j)}},{key:"update",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k.default.sources.USER,j=this.scroll.update(z);return this.selection.update(z),j}},{key:"updateContents",value:function(z){var j=this,tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k.default.sources.API;return s.call(this,function(){return z=new m.default(z),j.editor.applyDelta(z,tt)},tt,!0)}}]),it}();X.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},X.events=k.default.events,X.sources=k.default.sources,X.version="1.3.7",X.imports={delta:m.default,parchment:_.default,"core/module":N.default,"core/theme":q.default},y.expandConfig=t,y.overload=n,y.default=X}
vendor: 4,165 bytes, line 1
1,function(h,y,c){"use strict";function d(v,t){if(!(v instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var a=function v(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d(this,v),this.quill=t,this.options=s};a.DEFAULTS={},y.default=a},function(h,y,c){"use strict";function d(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}function a(r,u){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?r:u}Object.defineProperty(y,"__esModule",{value:!0});var r,n=function(r){function u(){return d(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function v(r,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);r.prototype=Object.create(u&&u.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(r,u):r.__proto__=u)}(u,r),u}(((r=c(0))&&r.__esModule?r:{default:r}).default.Text);y.default=n},function(h,y,c){"use strict";function d(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(y,"__esModule",{value:!0});var s=function(){function g(w,C){for(var k=0;k<C.length;k++){var M=C[k];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(w,M.key,M)}}return function(w,C,k){return C&&g(w.prototype,C),k&&g(w,k),w}}(),n=function g(w,C,k){null===w&&(w=Function.prototype);var M=Object.getOwnPropertyDescriptor(w,C);if(void 0===M){var N=Object.getPrototypeOf(w);return null===N?void 0:g(N,C,k)}if("value"in M)return M.value;var O=M.get;return void 0!==O?O.call(k):void 0},u=d(c(58)),x=(0,d(c(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(g){document.addEventListener(g,function(){for(var w=arguments.length,C=Array(w),k=0;k<w;k++)C[k]=arguments[k];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(M){var N;M.__quill&&M.__quill.emitter&&(N=M.__quill.emitter).handleDOM.apply(N,C)})})});var m=function(g){function w(){!function a(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}(this,w);var C=function v(g,w){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!=typeof w&&"function"!=typeof w?g:w}(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return C.listeners={},C.on("error",x.error),C}return function t(g,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(g,w):g.__proto__=w)}(w,g),s(w,[{key:"emit",value:function(){x.log.apply(x,arguments),n(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(C){for(var k=arguments.length,M=Array(k>1?k-1:0),N=1;N<k;N++)M[N-1]=arguments[N];(this.listeners[C.type]||[]).forEach(function(O){var _=O.node,P=O.handler;(C.target===_||_.contains(C.target))&&P.apply(void 0,[C].concat(M))})}},{key:"listenDOM",value:function(C,k,M){this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push({node:k,handler:M})}}]),w}(u.default);m.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},m.sources={API:"api",SILENT:"silent",USER:"user"},y.default=m},function(h,y,c){"use strict";function d(s){if(v.indexOf(s)<=v.indexOf(t)){for(var n,r=arguments.length,u=Array(r>1?r-1:0),l=1;l<r;l++)u[l-1]=arguments[l];(n=console)[s].apply(n,u)}}function a(s){return v.reduce(function(n,r){return n[r]=d.bind(console,r,s),n},{})}Object.defineProperty(y,"__esModule",{value:!0});var v=["error","warn","log","info"],t="warn";d.level=a.level=function(s){t=s},y.default=a}
vendor: 4,127 bytes, line 1
1,function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var d=c(1),a=function(){function v(t,s,n){void 0===n&&(n={}),this.attrName=t,this.keyName=s,this.scope=null!=n.scope?n.scope&d.Scope.LEVEL|d.Scope.TYPE&d.Scope.ATTRIBUTE:d.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return v.keys=function(t){return[].map.call(t.attributes,function(s){return s.name})},v.prototype.add=function(t,s){return!!this.canAdd(t,s)&&(t.setAttribute(this.keyName,s),!0)},v.prototype.canAdd=function(t,s){return null!=d.query(t,d.Scope.BLOT&(this.scope|d.Scope.TYPE))&&(null==this.whitelist||("string"==typeof s?this.whitelist.indexOf(s.replace(/["']/g,""))>-1:this.whitelist.indexOf(s)>-1))},v.prototype.remove=function(t){t.removeAttribute(this.keyName)},v.prototype.value=function(t){var s=t.getAttribute(this.keyName);return this.canAdd(t,s)&&s?s:""},v}();y.default=a},function(h,y,c){function d(u){return null==u}function a(u){return!(!u||"object"!=typeof u||"number"!=typeof u.length||"function"!=typeof u.copy||"function"!=typeof u.slice||u.length>0&&"number"!=typeof u[0])}var t=Array.prototype.slice,s=c(55),n=c(56),r=h.exports=function(u,l,p){return p||(p={}),u===l||(u instanceof Date&&l instanceof Date?u.getTime()===l.getTime():!u||!l||"object"!=typeof u&&"object"!=typeof l?p.strict?u===l:u==l:function v(u,l,p){var x,m;if(d(u)||d(l)||u.prototype!==l.prototype)return!1;if(n(u))return!!n(l)&&(u=t.call(u),l=t.call(l),r(u,l,p));if(a(u)){if(!a(l)||u.length!==l.length)return!1;for(x=0;x<u.length;x++)if(u[x]!==l[x])return!1;return!0}try{var g=s(u),w=s(l)}catch(C){return!1}if(g.length!=w.length)return!1;for(g.sort(),w.sort(),x=g.length-1;x>=0;x--)if(g[x]!=w[x])return!1;for(x=g.length-1;x>=0;x--)if(!r(u[m=g[x]],l[m],p))return!1;return typeof u==typeof l}(u,l,p))}},function(h,y,c){"use strict";function d(_){return _&&_.__esModule?_:{default:_}}function a(_,P){if(!(_ instanceof P))throw new TypeError("Cannot call a class as a function")}function v(_,P){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!P||"object"!=typeof P&&"function"!=typeof P?_:P}function t(_,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function, not "+typeof P);_.prototype=Object.create(P&&P.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(_,P):_.__proto__=P)}Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.Code=void 0;var s=function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return function _(P,A){var T=[],L=!0,I=!1,F=void 0;try{for(var W,q=P[Symbol.iterator]();!(L=(W=q.next()).done)&&(T.push(W.value),!A||T.length!==A);L=!0);}catch(et){I=!0,F=et}finally{try{!L&&q.return&&q.return()}finally{if(I)throw F}}return T}(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=function(){function _(P,A){for(var T=0;T<A.length;T++){var L=A[T];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,A,T){return A&&_(P.prototype,A),T&&_(P,T),P}}(),r=function _(P,A,T){null===P&&(P=Function.prototype);var L=Object.getOwnPropertyDescriptor(P,A);if(void 0===L){var I=Object.getPrototypeOf(P);return null===I?void 0:_(I,A,T)}if("value"in L)return L.value;var F=L.get;return void 0!==F?F.call(T):void 0},l=d(c(4)),x=d(c(0)),g=d(c(3)),C=d(c(5)),M=d(c(8)),N=function(_){function P(){return a(this,P),v(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return t(P,_),P}(C.default);N.blotName="code",N.tagName="CODE";var O=function(_){function P(){return a(this,P),v(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return t(P,_),n(P,[{key:"delta",value:function(){var A=this,T=this.domNode.textContent;return T.endsWith("\n")&&(T=T.slice(0,-1)),T.split("\n").reduce(function(L,I){return L.insert(I).insert("\n",A.formats())},new l.default)}},{key:"format",value:function(A,T){if(A!==this.statics.blotName||!T){var L=this.descendant(M.default,this.length()-1),F=s(L,1)[
vendor: 24,214 bytes, line 1
10];null!=F&&F.deleteAt(F.length()-1,1),r(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,A,T)}}},{key:"formatAt",value:function(A,T,L,I){if(0!==T&&null!=x.default.query(L,x.default.Scope.BLOCK)&&(L!==this.statics.blotName||I!==this.statics.formats(this.domNode))){var F=this.newlineIndex(A);if(!(F<0||F>=A+T)){var W=this.newlineIndex(A,!0)+1,q=F-W+1,et=this.isolate(W,q),X=et.next;et.format(L,I),X instanceof P&&X.formatAt(0,A-W+T-q,L,I)}}}},{key:"insertAt",value:function(A,T,L){if(null==L){var I=this.descendant(M.default,A),F=s(I,2);F[0].insertAt(F[1],T)}}},{key:"length",value:function(){var A=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?A:A+1}},{key:"newlineIndex",value:function(A){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,A).lastIndexOf("\n");var T=this.domNode.textContent.slice(A).indexOf("\n");return T>-1?A+T:-1}},{key:"optimize",value:function(A){this.domNode.textContent.endsWith("\n")||this.appendChild(x.default.create("text","\n")),r(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,A);var T=this.next;null!=T&&T.prev===this&&T.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===T.statics.formats(T.domNode)&&(T.optimize(A),T.moveChildren(this),T.remove())}},{key:"replace",value:function(A){r(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,A),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(T){var L=x.default.find(T);null==L?T.parentNode.removeChild(T):L instanceof x.default.Embed?L.remove():L.unwrap()})}}],[{key:"create",value:function(A){var T=r(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,A);return T.setAttribute("spellcheck",!1),T}},{key:"formats",value:function(){return!0}}]),P}(g.default);O.blotName="code-block",O.tagName="PRE",O.TAB=" ",y.Code=N,y.default=O},function(h,y,c){"use strict";function d(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}function a(l,p){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?l:p}Object.defineProperty(y,"__esModule",{value:!0});var l,t=function(){function l(p,x){for(var m=0;m<x.length;m++){var g=x[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,x,m){return x&&l(p.prototype,x),m&&l(p,m),p}}(),s=function l(p,x,m){null===p&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,x);if(void 0===g){var w=Object.getPrototypeOf(p);return null===w?void 0:l(w,x,m)}if("value"in g)return g.value;var C=g.get;return void 0!==C?C.call(m):void 0},u=function(l){function p(){return d(this,p),a(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return function v(l,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);l.prototype=Object.create(p&&p.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(l,p):l.__proto__=p)}(p,l),t(p,[{key:"insertInto",value:function(x,m){0===x.children.length?s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertInto",this).call(this,x,m):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),p}(((l=c(0))&&l.__esModule?l:{default:l}).default.Embed);u.blotName="break",u.tagName="BR",y.default=u},function(h,y,c){"use strict";function d(p,x){if(!(p instanceof x))throw new TypeError("Cannot call a class as a function")}function a(p,x){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!=typeof x&&"function"!=typeof x?p:x}function t(p,x){var m=document.createElement("a");m.href=p;var g=m.href.slice(0,m.href.indexOf(":"));return x.indexOf(g)>-1}Object.defineProperty(y,"__esModule",{value:!0}),y.sanitize=y.default=void 0;var p,s=function(){function p(x,m){for(var g=0;g<m.length;g++){var w=m[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(x,w.key,w)}}return function(x,m,g){return m&&p(x.prototype,m),g&&p(x,g),x}}(),n=function p(x,m,g){null===x&&(x=Function.prototype);var w=Object.getOwnPropertyDescriptor(x,m);if(void 0===w){var C=Object.getPrototypeOf(x);return null===C?void 0:p(C,m,g)}if("value"in w)return w.value;var k=w.get;return void 0!==k?k.call(g):void 0},l=function(p){function x(){return d(this,x),a(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return function v(p,x){if("function"!=typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);p.prototype=Object.create(x&&x.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(p,x):p.__proto__=x)}(x,p),s(x,[{key:"format",value:function(m,g){if(m!==this.statics.blotName||!g)return n(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,m,g);g=this.constructor.sanitize(g),this.domNode.setAttribute("href",g)}}],[{key:"create",value:function(m){var g=n(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,m);return m=this.sanitize(m),g.setAttribute("href",m),g.setAttribute("rel","noopener noreferrer"),g.setAttribute("target","_blank"),g}},{key:"formats",value:function(m){return m.getAttribute("href")}},{key:"sanitize",value:function(m){return t(m,this.PROTOCOL_WHITELIST)?m:this.SANITIZED_URL}}]),x}(((p=c(5))&&p.__esModule?p:{default:p}).default);l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],y.default=l,y.sanitize=t},function(h,y,c){"use strict";function d(m){return m&&m.__esModule?m:{default:m}}function v(m,g){m.setAttribute(g,"true"!==m.getAttribute(g))}Object.defineProperty(y,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&"function"==typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},s=function(){function m(g,w){for(var C=0;C<w.length;C++){var k=w[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,w,C){return w&&m(g.prototype,w),C&&m(g,C),g}}(),r=d(c(25)),l=d(c(106)),p=0,x=function(){function m(g){var w=this;(function a(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")})(this,m),this.select=g,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){w.togglePicker()}),this.label.addEventListener("keydown",function(C){switch(C.keyCode){case r.default.keys.ENTER:w.togglePicker();break;case r.default.keys.ESCAPE:w.escape(),C.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return s(m,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(g){var w=this,C=document.createElement("span");return C.tabIndex="0",C.setAttribute("role","button"),C.classList.add("ql-picker-item"),g.hasAttribute("value")&&C.setAttribute("data-value",g.getAttribute("value")),g.textContent&&C.setAttribute("data-label",g.textContent),C.addEventListener("click",function(){w.selectItem(C,!0)}),C.addEventListener("keydown",function(k){switch(k.keyCode){case r.default.keys.ENTER:w.selectItem(C,!0),k.preventDefault();break;case r.default.keys.ESCAPE:w.escape(),k.preventDefault()}}),C}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=l.default,g.tabIndex="0",g.setAttribute("role","button"),g.setAttribute("aria-expanded","false"),this.container.appendChild(g),g}},{key:"buildOptions",value:function(){var g=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+p,p+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(C){var k=g.buildItem(C);w.appendChild(k),!0===C.selected&&g.selectItem(k)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var g=this;[].slice.call(this.select.attributes).forEach(function(w){g.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var g=this;this.close(),setTimeout(function(){return g.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(g){var w=arguments.length>1&&void 0!==arguments[1]&&arguments[1],C=this.container.querySelector(".ql-selected");if(g!==C&&(null!=C&&C.classList.remove("ql-selected"),null!=g&&(g.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(g.parentNode.children,g),g.hasAttribute("data-value")?this.label.setAttribute("data-value",g.getAttribute("data-value")):this.label.removeAttribute("data-value"),g.hasAttribute("data-label")?this.label.setAttribute("data-label",g.getAttribute("data-label")):this.label.removeAttribute("data-label"),w))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":t(Event))){var k=document.createEvent("Event");k.initEvent("change",!0,!0),this.select.dispatchEvent(k)}this.close()}}},{key:"update",value:function(){var g=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];g=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var C=null!=g&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",C)}}]),m}();y.default=x},function(h,y,c){"use strict";function d(r){var u=s.find(r);if(null==u)try{u=s.create(r)}catch(l){u=s.create(s.Scope.INLINE),[].slice.call(r.childNodes).forEach(function(p){u.domNode.appendChild(p)}),r.parentNode&&r.parentNode.replaceChild(u.domNode,r),u.attach()}return u}var r,a=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var p in l)l.hasOwnProperty(p)&&(u[p]=l[p])},function(u,l){function p(){this.constructor=u}r(u,l),u.prototype=null===l?Object.create(l):(p.prototype=l.prototype,new p)});Object.defineProperty(y,"__esModule",{value:!0});var v=c(47),t=c(27),s=c(1),n=function(r){function u(l){var p=r.call(this,l)||this;return p.build(),p}return a(u,r),u.prototype.appendChild=function(l){this.insertBefore(l)},u.prototype.attach=function(){r.prototype.attach.call(this),this.children.forEach(function(l){l.attach()})},u.prototype.build=function(){var l=this;this.children=new v.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(p){try{var x=d(p);l.insertBefore(x,l.children.head||void 0)}catch(m){if(m instanceof s.ParchmentError)return;throw m}})},u.prototype.deleteAt=function(l,p){if(0===l&&p===this.length())return this.remove();this.children.forEachAt(l,p,function(x,m,g){x.deleteAt(m,g)})},u.prototype.descendant=function(l,p){var x=this.children.find(p),m=x[0],g=x[1];return null==l.blotName&&l(m)||null!=l.blotName&&m instanceof l?[m,g]:m instanceof u?m.descendant(l,g):[null,-1]},u.prototype.descendants=function(l,p,x){void 0===p&&(p=0),void 0===x&&(x=Number.MAX_VALUE);var m=[],g=x;return this.children.forEachAt(p,x,function(w,C,k){(null==l.blotName&&l(w)||null!=l.blotName&&w instanceof l)&&m.push(w),w instanceof u&&(m=m.concat(w.descendants(l,C,g))),g-=k}),m},u.prototype.detach=function(){this.children.forEach(function(l){l.detach()}),r.prototype.detach.call(this)},u.prototype.formatAt=function(l,p,x,m){this.children.forEachAt(l,p,function(g,w,C){g.formatAt(w,C,x,m)})},u.prototype.insertAt=function(l,p,x){var m=this.children.find(l),g=m[0];if(g)g.insertAt(m[1],p,x);else{var C=null==x?s.create("text",p):s.create(p,x);this.appendChild(C)}},u.prototype.insertBefore=function(l,p){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(x){return l instanceof x}))throw new s.ParchmentError("Cannot insert "+l.statics.blotName+" into "+this.statics.blotName);l.insertInto(this,p)},u.prototype.length=function(){return this.children.reduce(function(l,p){return l+p.length()},0)},u.prototype.moveChildren=function(l,p){this.children.forEach(function(x){l.insertBefore(x,p)})},u.prototype.optimize=function(l){if(r.prototype.optimize.call(this,l),0===this.children.length)if(null!=this.statics.defaultChild){var p=s.create(this.statics.defaultChild);this.appendChild(p),p.optimize(l)}else this.remove()},u.prototype.path=function(l,p){void 0===p&&(p=!1);var x=this.children.find(l,p),m=x[0],g=x[1],w=[[this,l]];return m instanceof u?w.concat(m.path(g,p)):(null!=m&&w.push([m,g]),w)},u.prototype.removeChild=function(l){this.children.remove(l)},u.prototype.replace=function(l){l instanceof u&&l.moveChildren(this),r.prototype.replace.call(this,l)},u.prototype.split=function(l,p){if(void 0===p&&(p=!1),!p){if(0===l)return this;if(l===this.length())return this.next}var x=this.clone();return this.parent.insertBefore(x,this.next),this.children.forEachAt(l,this.length(),function(m,g,w){m=m.split(g,p),x.appendChild(m)}),x},u.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},u.prototype.update=function(l,p){var x=this,m=[],g=[];l.forEach(function(w){w.target===x.domNode&&"childList"===w.type&&(m.push.apply(m,w.addedNodes),g.push.apply(g,w.removedNodes))}),g.forEach(function(w){if(!(null!=w.parentNode&&"IFRAME"!==w.tagName&&document.body.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var C=s.find(w);null!=C&&(null!=C.domNode.parentNode&&C.domNode.parentNode!==x.domNode||C.detach())}}),m.filter(function(w){return w.parentNode==x.domNode}).sort(function(w,C){return w===C?0:w.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(w){var C=null;null!=w.nextSibling&&(C=s.find(w.nextSibling));var k=d(w);k.next==C&&null!=k.next||(null!=k.parent&&k.parent.removeChild(x),x.insertBefore(k,C||void 0))})},u}(t.default);y.default=n},function(h,y,c){"use strict";var r,d=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var p in l)l.hasOwnProperty(p)&&(u[p]=l[p])},function(u,l){function p(){this.constructor=u}r(u,l),u.prototype=null===l?Object.create(l):(p.prototype=l.prototype,new p)});Object.defineProperty(y,"__esModule",{value:!0});var a=c(11),v=c(28),t=c(17),s=c(1),n=function(r){function u(l){var p=r.call(this,l)||this;return p.attributes=new v.default(p.domNode),p}return d(u,r),u.formats=function(l){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?l.tagName.toLowerCase():void 0)},u.prototype.format=function(l,p){var x=s.query(l);x instanceof a.default?this.attributes.attribute(x,p):p&&(null==x||l===this.statics.blotName&&this.formats()[l]===p||this.replaceWith(l,p))},u.prototype.formats=function(){var l=this.attributes.values(),p=this.statics.formats(this.domNode);return null!=p&&(l[this.statics.blotName]=p),l},u.prototype.replaceWith=function(l,p){var x=r.prototype.replaceWith.call(this,l,p);return this.attributes.copy(x),x},u.prototype.update=function(l,p){var x=this;r.prototype.update.call(this,l,p),l.some(function(m){return m.target===x.domNode&&"attributes"===m.type})&&this.attributes.build()},u.prototype.wrap=function(l,p){var x=r.prototype.wrap.call(this,l,p);return x instanceof u&&x.statics.scope===this.statics.scope&&this.attributes.move(x),x},u}(t.default);y.default=n},function(h,y,c){"use strict";var s,d=this&&this.__extends||(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var u in r)r.hasOwnProperty(u)&&(n[u]=r[u])},function(n,r){function u(){this.constructor=n}s(n,r),n.prototype=null===r?Object.create(r):(u.prototype=r.prototype,new u)});Object.defineProperty(y,"__esModule",{value:!0});var a=c(27),v=c(1),t=function(s){function n(){return null!==s&&s.apply(this,arguments)||this}return d(n,s),n.value=function(r){return!0},n.prototype.index=function(r,u){return this.domNode===r||this.domNode.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(u,1):-1},n.prototype.position=function(r,u){var l=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return r>0&&(l+=1),[this.parent.domNode,l]},n.prototype.value=function(){var r;return(r={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,r},n.scope=v.Scope.INLINE_BLOT,n}(a.default);y.default=t},function(h,y,c){function d(s){this.ops=s,this.index=0,this.offset=0}var a=c(12),v=c(2),t={attributes:{compose:function(s,n,r){"object"!=typeof s&&(s={}),"object"!=typeof n&&(n={});var u=v(!0,{},n);for(var l in r||(u=Object.keys(u).reduce(function(p,x){return null!=u[x]&&(p[x]=u[x]),p},{})),s)void 0!==s[l]&&void 0===n[l]&&(u[l]=s[l]);return Object.keys(u).length>0?u:void 0},diff:function(s,n){"object"!=typeof s&&(s={}),"object"!=typeof n&&(n={});var r=Object.keys(s).concat(Object.keys(n)).reduce(function(u,l){return a(s[l],n[l])||(u[l]=void 0===n[l]?null:n[l]),u},{});return Object.keys(r).length>0?r:void 0},transform:function(s,n,r){if("object"!=typeof s)return n;if("object"==typeof n){if(!r)return n;var u=Object.keys(n).reduce(function(l,p){return void 0===s[p]&&(l[p]=n[p]),l},{});return Object.keys(u).length>0?u:void 0}}},iterator:function(s){return new d(s)},length:function(s){return"number"==typeof s.delete?s.delete:"number"==typeof s.retain?s.retain:"string"==typeof s.insert?s.insert.length:1}};d.prototype.hasNext=function(){return this.peekLength()<1/0},d.prototype.next=function(s){s||(s=1/0);var n=this.ops[this.index];if(n){var r=this.offset,u=t.length(n);if(s>=u-r?(s=u-r,this.index+=1,this.offset=0):this.offset+=s,"number"==typeof n.delete)return{delete:s};var l={};return n.attributes&&(l.attributes=n.attributes),"number"==typeof n.retain?l.retain=s:l.insert="string"==typeof n.insert?n.insert.substr(r,s):n.insert,l}return{retain:1/0}},d.prototype.peek=function(){return this.ops[this.index]},d.prototype.peekLength=function(){return this.ops[this.index]?t.length(this.ops[this.index])-this.offset:1/0},d.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},d.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var s=this.offset,n=this.index,r=this.next(),u=this.ops.slice(this.index);return this.offset=s,this.index=n,[r].concat(u)}return[]},h.exports=t},function(h,y){var c=function(){"use strict";function d(x,m){return null!=m&&x instanceof m}function a(x,m,g,w,C){"object"==typeof m&&(g=m.depth,w=m.prototype,C=m.includeNonEnumerable,m=m.circular);var M=[],N=[],O="undefined"!=typeof Buffer;return void 0===m&&(m=!0),void 0===g&&(g=1/0),function k(_,P){if(null===_)return null;if(0===P)return _;var A,T;if("object"!=typeof _)return _;if(d(_,u))A=new u;else if(d(_,l))A=new l;else if(d(_,p))A=new p(function(z,j){_.then(function(tt){z(k(tt,P-1))},function(tt){j(k(tt,P-1))})});else if(a.__isArray(_))A=[];else if(a.__isRegExp(_))A=new RegExp(_.source,r(_)),_.lastIndex&&(A.lastIndex=_.lastIndex);else if(a.__isDate(_))A=new Date(_.getTime());else{if(O&&Buffer.isBuffer(_))return A=Buffer.allocUnsafe?Buffer.allocUnsafe(_.length):new Buffer(_.length),_.copy(A),A;d(_,Error)?A=Object.create(_):void 0===w?(T=Object.getPrototypeOf(_),A=Object.create(T)):(A=Object.create(w),T=w)}if(m){var L=M.indexOf(_);if(-1!=L)return N[L];M.push(_),N.push(A)}for(var I in d(_,u)&&_.forEach(function(z,j){var tt=k(j,P-1),at=k(z,P-1);A.set(tt,at)}),d(_,l)&&_.forEach(function(z){var j=k(z,P-1);A.add(j)}),_){var F;T&&(F=Object.getOwnPropertyDescriptor(T,I)),F&&null==F.set||(A[I]=k(_[I],P-1))}if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(_);for(I=0;I<W.length;I++){var q=W[I];(!(et=Object.getOwnPropertyDescriptor(_,q))||et.enumerable||C)&&(A[q]=k(_[q],P-1),et.enumerable||Object.defineProperty(A,q,{enumerable:!1}))}}if(C){var X=Object.getOwnPropertyNames(_);for(I=0;I<X.length;I++){var et,it=X[I];(et=Object.getOwnPropertyDescriptor(_,it))&&et.enumerable||(A[it]=k(_[it],P-1),Object.defineProperty(A,it,{enumerable:!1}))}}return A}(x,g)}function v(x){return Object.prototype.toString.call(x)}function r(x){var m="";return x.global&&(m+="g"),x.ignoreCase&&(m+="i"),x.multiline&&(m+="m"),m}var u,l,p;try{u=Map}catch(x){u=function(){}}try{l=Set}catch(x){l=function(){}}try{p=Promise}catch(x){p=function(){}}return a.clonePrototype=function(x){if(null===x)return null;var m=function(){};return m.prototype=x,new m},a.__objToStr=v,a.__isDate=function t(x){return"object"==typeof x&&"[object Date]"===v(x)},a.__isArray=function s(x){return"object"==typeof x&&"[object Array]"===v(x)},a.__isRegExp=function n(x){return"object"==typeof x&&"[object RegExp]"===v(x)},a.__getRegExpFlags=r,a}();"object"==typeof h&&h.exports&&(h.exports=c)},function(h,y,c){"use strict";function d(_){return _&&_.__esModule?_:{default:_}}function a(_){if(Array.isArray(_)){for(var P=0,A=Array(_.length);P<_.length;P++)A[P]=_[P];return A}return Array.from(_)}function v(_,P){if(!(_ instanceof P))throw new TypeError("Cannot call a class as a function")}function t(_,P){return P instanceof Text&&(P=P.parentNode),_.contains(P)}Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.Range=void 0;var s=function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return function _(P,A){var T=[],L=!0,I=!1,F=void 0;try{for(var W,q=P[Symbol.iterator]();!(L=(W=q.next()).done)&&(T.push(W.value),!A||T.length!==A);L=!0);}catch(et){I=!0,F=et}finally{try{!L&&q.return&&q.return()}finally{if(I)throw F}}return T}(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=function(){function _(P,A){for(var T=0;T<A.length;T++){var L=A[T];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,A,T){return A&&_(P.prototype,A),T&&_(P,T),P}}(),u=d(c(0)),p=d(c(21)),m=d(c(12)),w=d(c(9)),M=(0,d(c(10)).default)("quill:selection"),N=function _(P){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,_),this.index=P,this.length=A},O=function(){function _(P,A){var T=this;v(this,_),this.emitter=A,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=u.default.create("cursor",this),this.lastRange=this.savedRange=new N(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){T.mouseDown||setTimeout(T.update.bind(T,w.default.sources.USER),1)}),this.emitter.on(w.default.events.EDITOR_CHANGE,function(L,I){L===w.default.events.TEXT_CHANGE&&I.length()>0&&T.update(w.default.sources.SILENT)}),this.emitter.on(w.default.events.SCROLL_BEFORE_UPDATE,function(){if(T.hasFocus()){var L=T.getNativeRange();null!=L&&L.start.node!==T.cursor.textNode&&T.emitter.once(w.default.events.SCROLL_UPDATE,function(){try{T.setNativeRange(L.start.node,L.start.offset,L.end.node,L.end.offset)}catch(I){}})}}),this.emitter.on(w.default.events.SCROLL_OPTIMIZE,function(L,I){if(I.range){var F=I.range;T.setNativeRange(F.startNode,F.startOffset,F.endNode,F.endOffset)}}),this.update(w.default.sources.SILENT)}return n(_,[{key:"handleComposition",value:function(){var P=this;this.root.addEventListener("compositionstart",function(){P.composing=!0}),this.root.addEventListener("compositionend",function(){if(P.composing=!1,P.cursor.parent){var A=P.cursor.restore(
vendor: 5,689 bytes, line 1
1);if(!A)return;setTimeout(function(){P.setNativeRange(A.startNode,A.startOffset,A.endNode,A.endOffset)},1)}})}},{key:"handleDragging",value:function(){var P=this;this.emitter.listenDOM("mousedown",document.body,function(){P.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){P.mouseDown=!1,P.update(w.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(P,A){if(null==this.scroll.whitelist||this.scroll.whitelist[P]){this.scroll.update();var T=this.getNativeRange();if(null!=T&&T.native.collapsed&&!u.default.query(P,u.default.Scope.BLOCK)){if(T.start.node!==this.cursor.textNode){var L=u.default.find(T.start.node,!1);if(null==L)return;if(L instanceof u.default.Leaf){var I=L.split(T.start.offset);L.parent.insertBefore(this.cursor,I)}else L.insertBefore(this.cursor,T.start.node);this.cursor.attach()}this.cursor.format(P,A),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(P){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,T=this.scroll.length();P=Math.min(P,T-1),A=Math.min(P+A,T-1)-P;var L=void 0,I=this.scroll.leaf(P),F=s(I,2),W=F[0],q=F[1];if(null==W)return null;var et=W.position(q,!0),X=s(et,2);L=X[0],q=X[1];var it=document.createRange();if(A>0){it.setStart(L,q);var z=this.scroll.leaf(P+A),j=s(z,2);if(null==(W=j[0]))return null;var tt=W.position(q=j[1],!0),at=s(tt,2);return it.setEnd(L=at[0],q=at[1]),it.getBoundingClientRect()}var ct="left",ut=void 0;return L instanceof Text?(q<L.data.length?(it.setStart(L,q),it.setEnd(L,q+1)):(it.setStart(L,q-1),it.setEnd(L,q),ct="right"),ut=it.getBoundingClientRect()):(ut=W.domNode.getBoundingClientRect(),q>0&&(ct="right")),{bottom:ut.top+ut.height,height:ut.height,left:ut[ct],right:ut[ct],top:ut.top,width:0}}},{key:"getNativeRange",value:function(){var P=document.getSelection();if(null==P||P.rangeCount<=0)return null;var A=P.getRangeAt(0);if(null==A)return null;var T=this.normalizeNative(A);return M.info("getNativeRange",T),T}},{key:"getRange",value:function(){var P=this.getNativeRange();return null==P?[null,null]:[this.normalizedToRange(P),P]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(P){var A=this,T=[[P.start.node,P.start.offset]];P.native.collapsed||T.push([P.end.node,P.end.offset]);var L=T.map(function(W){var q=s(W,2),et=q[0],X=q[1],it=u.default.find(et,!0),z=it.offset(A.scroll);return 0===X?z:it instanceof u.default.Container?z+it.length():z+it.index(et,X)}),I=Math.min(Math.max.apply(Math,a(L)),this.scroll.length()-1),F=Math.min.apply(Math,[I].concat(a(L)));return new N(F,I-F)}},{key:"normalizeNative",value:function(P){if(!t(this.root,P.startContainer)||!P.collapsed&&!t(this.root,P.endContainer))return null;var A={start:{node:P.startContainer,offset:P.startOffset},end:{node:P.endContainer,offset:P.endOffset},native:P};return[A.start,A.end].forEach(function(T){for(var L=T.node,I=T.offset;!(L instanceof Text)&&L.childNodes.length>0;)if(L.childNodes.length>I)L=L.childNodes[I],I=0;else{if(L.childNodes.length!==I)break;I=(L=L.lastChild)instanceof Text?L.data.length:L.childNodes.length+1}T.node=L,T.offset=I}),A}},{key:"rangeToNative",value:function(P){var A=this,T=P.collapsed?[P.index]:[P.index,P.index+P.length],L=[],I=this.scroll.length();return T.forEach(function(F,W){F=Math.min(I-1,F);var et=A.scroll.leaf(F),X=s(et,2),z=X[1],j=X[0].position(z,0!==W),tt=s(j,2);L.push(tt[0],z=tt[1])}),L.length<2&&(L=L.concat(L)),L}},{key:"scrollIntoView",value:function(P){var A=this.lastRange;if(null!=A){var T=this.getBounds(A.index,A.length);if(null!=T){var L=this.scroll.length()-1,I=this.scroll.line(Math.min(A.index,L)),W=s(I,1)[0],q=W;if(A.length>0){var et=this.scroll.line(Math.min(A.index+A.length,L));q=s(et,1)[0]}if(null!=W&&null!=q){var X=P.getBoundingClientRect();T.top<X.top?P.scrollTop-=X.top-T.top:T.bottom>X.bottom&&(P.scrollTop+=T.bottom-X.bottom)}}}}},{key:"setNativeRange",value:function(P,A){var T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P,L=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A,I=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(M.info("setNativeRange",P,A,T,L),null==P||null!=this.root.parentNode&&null!=P.parentNode&&null!=T.parentNode){var F=document.getSelection();if(null!=F)if(null!=P){this.hasFocus()||this.root.focus();var W=(this.getNativeRange()||{}).native;if(null==W||I||P!==W.startContainer||A!==W.startOffset||T!==W.endContainer||L!==W.endOffset){"BR"==P.tagName&&(A=[].indexOf.call(P.parentNode.childNodes,P),P=P.parentNode),"BR"==T.tagName&&(L=[].indexOf.call(T.parentNode.childNodes,T),T=T.parentNode);var q=document.createRange();q.setStart(P,A),q.setEnd(T,L),F.removeAllRanges(),F.addRange(q)}}else F.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(P){var A=arguments.length>1&&void 0!==arguments[1]&&arguments[1],T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.default.sources.API;if("string"==typeof A&&(T=A,A=!1),M.info("setRange",P),null!=P){var L=this.rangeToNative(P);this.setNativeRange.apply(this,a(L).concat([A]))}else this.setNativeRange(null);this.update(T)}},{key:"update",value:function(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w.default.sources.USER,A=this.lastRange,T=this.getRange(),L=s(T,2),I=L[0],F=L[1];if(this.lastRange=I,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,m.default)(A,this.lastRange)){var W;!this.composing&&null!=F&&F.native.collapsed&&F.start.node!==this.cursor.textNode&&this.cursor.restore(
vendor: 5,575 bytes, line 1
1);var et,q=[w.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(A),P];(W=this.emitter).emit.apply(W,[w.default.events.EDITOR_CHANGE].concat(q)),P!==w.default.sources.SILENT&&(et=this.emitter).emit.apply(et,q)}}}]),_}();y.Range=N,y.default=O},function(h,y,c){"use strict";function d(p){return p&&p.__esModule?p:{default:p}}function a(p,x){if(!(p instanceof x))throw new TypeError("Cannot call a class as a function")}function v(p,x){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!=typeof x&&"function"!=typeof x?p:x}Object.defineProperty(y,"__esModule",{value:!0});var n=d(c(0)),r=c(3),u=d(r),l=function(p){function x(){return a(this,x),v(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return function t(p,x){if("function"!=typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);p.prototype=Object.create(x&&x.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(p,x):p.__proto__=x)}(x,p),x}(n.default.Container);l.allowedChildren=[u.default,r.BlockEmbed,l],y.default=l},function(h,y,c){"use strict";function d(x,m){if(!(x instanceof m))throw new TypeError("Cannot call a class as a function")}function a(x,m){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?x:m}Object.defineProperty(y,"__esModule",{value:!0}),y.ColorStyle=y.ColorClass=y.ColorAttributor=void 0;var x,t=function(){function x(m,g){for(var w=0;w<g.length;w++){var C=g[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(m,C.key,C)}}return function(m,g,w){return g&&x(m.prototype,g),w&&x(m,w),m}}(),s=function x(m,g,w){null===m&&(m=Function.prototype);var C=Object.getOwnPropertyDescriptor(m,g);if(void 0===C){var k=Object.getPrototypeOf(m);return null===k?void 0:x(k,g,w)}if("value"in C)return C.value;var M=C.get;return void 0!==M?M.call(w):void 0},r=(x=c(0))&&x.__esModule?x:{default:x},u=function(x){function m(){return d(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return function v(x,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);x.prototype=Object.create(m&&m.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(x,m):x.__proto__=m)}(m,x),t(m,[{key:"value",value:function(g){var w=s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,g);return w.startsWith("rgb(")?"#"+(w=w.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(C){return("00"+parseInt(C).toString(16)).slice(-2)}).join(""):w}}]),m}(r.default.Attributor.Style),l=new r.default.Attributor.Class("color","ql-color",{scope:r.default.Scope.INLINE}),p=new u("color","color",{scope:r.default.Scope.INLINE});y.ColorAttributor=u,y.ColorClass=l,y.ColorStyle=p},function(h,y,c){"use strict";function d(rt){return rt&&rt.__esModule?rt:{default:rt}}function a(rt,lt,ft){return lt in rt?Object.defineProperty(rt,lt,{value:ft,enumerable:!0,configurable:!0,writable:!0}):rt[lt]=ft,rt}function n(rt,lt){var ft;return a(ft={key:rt,shiftKey:lt,altKey:null},rt===ut.keys.LEFT?"prefix":"suffix",/^$/),a(ft,"handler",function(wt){var Nt=wt.index;rt===ut.keys.RIGHT&&(Nt+=wt.length+1);var Yt=this.quill.getLeaf(Nt);return!(C(Yt,1)[0]instanceof q.default.Embed&&(rt===ut.keys.LEFT?lt?this.quill.setSelection(wt.index-1,wt.length+1,X.default.sources.USER):this.quill.setSelection(wt.index-1,X.default.sources.USER):lt?this.quill.setSelection(wt.index,wt.length+1,X.default.sources.USER):this.quill.setSelection(wt.index+wt.length+1,X.default.sources.USER),1))}),ft}function r(rt,lt){if(!(0===rt.index||this.quill.getLength()<=1)){var ft=this.quill.getLine(rt.index),wt=C(ft,1)[0],Nt={};if(0===lt.offset){var Yt=this.quill.getLine(rt.index-1),$t=C(Yt,1)[0];if(null!=$t&&$t.length()>1){var ce=wt.formats(),fe=this.quill.getFormat(rt.index-1,1);Nt=F.default.attributes.diff(ce,fe)||{}}}var qt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(lt.prefix)?2:1;this.quill.deleteText(rt.index-qt,qt,X.default.sources.USER),Object.keys(Nt).length>0&&this.quill.formatLine(rt.index-qt,qt,Nt,X.default.sources.USER),this.quill.focus()}}function u(rt,lt){var ft=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(lt.suffix)?2:1;if(!(rt.index>=this.quill.getLength()-ft)){var kt={},wt=0,Nt=this.quill.getLine(rt.index),Qt=C(Nt,1)[0];if(lt.offset>=Qt.length()-1){var $t=this.quill.getLine(rt.index+1),fe=C($t,1)[0];if(fe){var qt=Qt.formats(),Ct=this.quill.getFormat(rt.index,1);kt=F.default.attributes.diff(qt,Ct)||{},wt=fe.length()}}this.quill.deleteText(rt.index,ft,X.default.sources.USER),Object.keys(kt).length>0&&this.quill.formatLine(rt.index+wt-1,ft,kt,X.default.sources.USER)}}function l(rt){var lt=this.quill.getLines(rt),ft={};if(lt.length>1){var kt=lt[0].formats(),wt=lt[lt.length-1].formats();ft=F.default.attributes.diff(wt,kt)||{}}this.quill.deleteText(rt,X.default.sources.USER),Object.keys(ft).length>0&&this.quill.formatLine(rt.index,1,ft,X.default.sources.USER),this.quill.setSelection(rt.index,X.default.sources.SILENT),this.quill.focus()}function p(rt,lt){var ft=this;rt.length>0&&this.quill.scroll.deleteAt(rt.index,rt.length);var kt=Object.keys(lt.format).reduce(function(wt,Nt){return q.default.query(Nt,q.default.Scope.BLOCK)&&!Array.isArray(lt.format[Nt])&&(wt[
vendor: 6,826 bytes, line 1
1Nt]=lt.format[Nt]),wt},{});this.quill.insertText(rt.index,"\n",kt,X.default.sources.USER),this.quill.setSelection(rt.index+1,X.default.sources.SILENT),this.quill.focus(),Object.keys(lt.format).forEach(function(wt){null==kt[wt]&&(Array.isArray(lt.format[wt])||"link"!==wt&&ft.quill.format(wt,lt.format[wt],X.default.sources.USER))})}function x(rt){return{key:ut.keys.TAB,shiftKey:!rt,format:{"code-block":!0},handler:function(lt){var ft=q.default.query("code-block"),kt=lt.index,wt=lt.length,Nt=this.quill.scroll.descendant(ft,kt),Yt=C(Nt,2),Qt=Yt[0],$t=Yt[1];if(null!=Qt){var ce=this.quill.getIndex(Qt),fe=Qt.newlineIndex($t,!0)+1,qt=Qt.newlineIndex(ce+$t+wt),Ct=Qt.domNode.textContent.slice(fe,qt).split("\n");$t=0,Ct.forEach(function(Tt,jt){rt?(Qt.insertAt(fe+$t,ft.TAB),$t+=ft.TAB.length,0===jt?kt+=ft.TAB.length:wt+=ft.TAB.length):Tt.startsWith(ft.TAB)&&(Qt.deleteAt(fe+$t,ft.TAB.length),$t-=ft.TAB.length,0===jt?kt-=ft.TAB.length:wt-=ft.TAB.length),$t+=Tt.length+1}),this.quill.update(X.default.sources.USER),this.quill.setSelection(kt,wt,X.default.sources.SILENT)}}}}function m(rt){return{key:rt[0].toUpperCase(),shortKey:!0,handler:function(lt,ft){this.quill.format(rt,!ft.format[rt],X.default.sources.USER)}}}function g(rt){if("string"==typeof rt||"number"==typeof rt)return g({key:rt});if("object"===(void 0===rt?"undefined":w(rt))&&(rt=(0,N.default)(rt,!1)),"string"==typeof rt.key)if(null!=ut.keys[rt.key.toUpperCase()])rt.key=ut.keys[rt.key.toUpperCase()];else{if(1!==rt.key.length)return null;rt.key=rt.key.toUpperCase().charCodeAt(0)}return rt.shortKey&&(rt[ct]=rt.shortKey,delete rt.shortKey),rt}Object.defineProperty(y,"__esModule",{value:!0}),y.SHORTKEY=y.default=void 0;var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},C=function(lt,ft){if(Array.isArray(lt))return lt;if(Symbol.iterator in Object(lt))return function rt(lt,ft){var kt=[],wt=!0,Nt=!1,Yt=void 0;try{for(var Qt,$t=lt[Symbol.iterator]();!(wt=(Qt=$t.next()).done)&&(kt.push(Qt.value),!ft||kt.length!==ft);wt=!0);}catch(ce){Nt=!0,Yt=ce}finally{try{!wt&&$t.return&&$t.return()}finally{if(Nt)throw Yt}}return kt}(lt,ft);throw new TypeError("Invalid attempt to destructure non-iterable instance")},k=function(){function rt(lt,ft){for(var kt=0;kt<ft.length;kt++){var wt=ft[kt];wt.enumerable=wt.enumerable||!1,wt.configurable=!0,"value"in wt&&(wt.writable=!0),Object.defineProperty(lt,wt.key,wt)}}return function(lt,ft,kt){return ft&&rt(lt.prototype,ft),kt&&rt(lt,kt),lt}}(),N=d(c(21)),_=d(c(12)),A=d(c(2)),L=d(c(4)),F=d(c(20)),q=d(c(0)),X=d(c(6)),z=d(c(10)),tt=d(c(7)),at=(0,z.default)("quill:keyboard"),ct=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",ut=function(rt){function lt(ft,kt){!function v(rt,lt){if(!(rt instanceof lt))throw new TypeError("Cannot call a class as a function")}(this,lt);var wt=function t(rt,lt){if(!rt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!lt||"object"!=typeof lt&&"function"!=typeof lt?rt:lt}(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,ft,kt));return wt.bindings={},Object.keys(wt.options.bindings).forEach(function(Nt){("list autofill"!==Nt||null==ft.scroll.whitelist||ft.scroll.whitelist.list)&&wt.options.bindings[Nt]&&wt.addBinding(wt.options.bindings[Nt])}),wt.addBinding({key:lt.keys.ENTER,shiftKey:null},p),wt.addBinding({key:lt.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(wt.addBinding({key:lt.keys.BACKSPACE},{collapsed:!0},r),wt.addBinding({key:lt.keys.DELETE},{collapsed:!0},u)):(wt.addBinding({key:lt.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},r),wt.addBinding({key:lt.keys.DELETE},{collapsed:!0,suffix:/^.?$/},u)),wt.addBinding({key:lt.keys.BACKSPACE},{collapsed:!1},l),wt.addBinding({key:lt.keys.DELETE},{collapsed:!1},l),wt.addBinding({key:lt.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},r),wt.listen(),wt}return function s(rt,lt){if("function"!=typeof lt&&null!==lt)throw new TypeError("Super expression must either be null or a function, not "+typeof lt);rt.prototype=Object.create(lt&<.prototype,{constructor:{value:rt,enumerable:!1,writable:!0,configurable:!0}}),lt&&(Object.setPrototypeOf?Object.setPrototypeOf(rt,lt):rt.__proto__=lt)}(lt,rt),k(lt,null,[{key:"match",value:function(ft,kt){return kt=g(kt),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(wt){return!!kt[wt]!==ft[wt]&&null!==kt[wt]})&&kt.key===(ft.which||ft.keyCode)}}]),k(lt,[{key:"addBinding",value:function(ft){var kt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},wt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Nt=g(ft);if(null==Nt||null==Nt.key)return at.warn("Attempted to add invalid keyboard binding",Nt);"function"==typeof kt&&(kt={handler:kt}),"function"==typeof wt&&(wt={handler:wt}),Nt=(0,A.default)(Nt,kt,wt),this.bindings[Nt.key]=this.bindings[Nt.key]||[],this.bindings[Nt.key].push(Nt)}},{key:"listen",value:function(){var ft=this;this.quill.root.addEventListener("keydown",function(kt){if(!kt.defaultPrevented){var Nt=(ft.bindings[kt.which||kt.keyCode]||[]).filter(function(be){return lt.match(kt,be)});if(0!==Nt.length){var Yt=ft.quill.getSelection();if(null!=Yt&&ft.quill.hasFocus()){var Qt=ft.quill.getLine(Yt.index),$t=C(Qt,2),ce=$t[0],fe=$t[1],qt=ft.quill.getLeaf(Yt.index),Ct=C(qt,2),Tt=Ct[0],jt=Ct[1],Ut=0===Yt.length?[Tt,jt]:ft.quill.getLeaf(Yt.index+Yt.length),Kt=C(Ut,2),ne=Kt[0],zt=Kt[1],Vt=Tt instanceof q.default.Text?Tt.value().slice(0,jt):"",ke=ne instanceof q.default.Text?ne.value().slice(zt):"",me={collapsed:0===Yt.length,empty:0===Yt.length&&ce.length()<=1,format:ft.quill.getFormat(Yt),offset:fe,prefix:Vt,suffix:ke};Nt.some(function(be){if(null!=be.collapsed&&be.collapsed!==me.collapsed||null!=be.empty&&be.empty!==me.empty||null!=be.offset&&be.offset!==me.offset)return!1;if(Array.isArray(be.format)){if(be.format.every(function(Me){return null==me.format[Me]}))return!1}else if("object"===w(be.format)&&!Object.keys(be.format).every(function(Me){return!0===be.format[Me]?null!=me.format[Me]:!1===be.format[Me]?null==me.format[Me]:(0,_.default)(be.format[Me],me.format[Me])}))return!1;return!(null!=be.prefix&&!be.prefix.test(me.prefix)||null!=be.suffix&&!be.suffix.test(me.suffix)||!0===be.handler.call(ft,Yt,me))})&&kt.preventDefault()}}}})}}]),lt}(tt.default);ut.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},ut.DEFAULTS={bindings:{bold:m("bold"),italic:m("italic"),underline:m("underline"),indent:{key:ut.keys.TAB,format:["blockquote","indent","list"],handler:function(rt,lt){if(lt.collapsed&&0!==lt.offset)return!0;this.quill.format("indent","+1",X.default.sources.USER)}}
vendor: 4,526 bytes, line 1
1,outdent:{key:ut.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(rt,lt){if(lt.collapsed&&0!==lt.offset)return!0;this.quill.format("indent","-1",X.default.sources.USER)}},"outdent backspace":{key:ut.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(rt,lt){null!=lt.format.indent?this.quill.format("indent","-1",X.default.sources.USER):null!=lt.format.list&&this.quill.format("list",!1,X.default.sources.USER)}},"indent code-block":x(!0),"outdent code-block":x(!1),"remove tab":{key:ut.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(rt){this.quill.deleteText(rt.index-1,1,X.default.sources.USER)}},tab:{key:ut.keys.TAB,handler:function(rt){this.quill.history.cutoff();var lt=(new L.default).retain(rt.index).delete(rt.length).insert("\t");this.quill.updateContents(lt,X.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(rt.index+1,X.default.sources.SILENT)}},"list empty enter":{key:ut.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(rt,lt){this.quill.format("list",!1,X.default.sources.USER),lt.format.indent&&this.quill.format("indent",!1,X.default.sources.USER)}},"checklist enter":{key:ut.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(rt){var lt=this.quill.getLine(rt.index),ft=C(lt,2),kt=ft[0],wt=ft[1],Nt=(0,A.default)({},kt.formats(),{list:"checked"}),Yt=(new L.default).retain(rt.index).insert("\n",Nt).retain(kt.length()-wt-1).retain(1,{list:"unchecked"});this.quill.updateContents(Yt,X.default.sources.USER),this.quill.setSelection(rt.index+1,X.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:ut.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(rt,lt){var ft=this.quill.getLine(rt.index),kt=C(ft,2),wt=kt[0],Nt=kt[1],Yt=(new L.default).retain(rt.index).insert("\n",lt.format).retain(wt.length()-Nt-1).retain(1,{header:null});this.quill.updateContents(Yt,X.default.sources.USER),this.quill.setSelection(rt.index+1,X.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(rt,lt){var ft=lt.prefix.length,kt=this.quill.getLine(rt.index),wt=C(kt,2),Nt=wt[0],Yt=wt[1];if(Yt>ft)return!0;var Qt=void 0;switch(lt.prefix.trim()){case"[]":case"[ ]":Qt="unchecked";break;case"[x]":Qt="checked";break;case"-":case"*":Qt="bullet";break;default:Qt="ordered"}this.quill.insertText(rt.index," ",X.default.sources.USER),this.quill.history.cutoff();var $t=(new L.default).retain(rt.index-Yt).delete(ft+1).retain(Nt.length()-2-Yt).retain(1,{list:Qt});this.quill.updateContents($t,X.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(rt.index-ft,X.default.sources.SILENT)}},"code exit":{key:ut.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(rt){var lt=this.quill.getLine(rt.index),ft=C(lt,2),kt=ft[0],wt=ft[1],Nt=(new L.default).retain(rt.index+kt.length()-wt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Nt,X.default.sources.USER)}},"embed left":n(ut.keys.LEFT,!1),"embed left shift":n(ut.keys.LEFT,!0),"embed right":n(ut.keys.RIGHT,!1),"embed right shift":n(ut.keys.RIGHT,!0)}},y.default=ut,y.SHORTKEY=ct},function(h,y,c){"use strict";h.exports={align:{"":c(75),center:c(76),right:c(77),justify:c(78)},background:c(79),blockquote:c(80),bold:c(81),clean:c(82),code:c(40),"code-block":c(40),color:c(83),direction:{"":c(84),rtl:c(85)},float:{center:c(86),full:c(87),left:c(88),right:c(89)},formula:c(90),header:{1:c(91),2:c(92)},italic:c(93),image:c(94),indent:{"+1":c(95),"-1":c(96)},link:c(97),list:{ordered:c(98),bullet:c(99),check:c(100)},script:{sub:c(101),super:c(102)},strike:c(103),underline:c(104),video:c(105)}},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var d=c(1),a=function(){function v(t){this.domNode=t,this.domNode[d.DATA_KEY]={blot:this}}return Object.defineProperty(v.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),v.create=function(t){if(null==this.tagName)throw new d.ParchmentError("Blot definition missing tagName");var s;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),s="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])
vendor: 4,388 bytes, line 1
1):s=document.createElement(this.tagName),this.className&&s.classList.add(this.className),s},v.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},v.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return d.create(t)},v.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[d.DATA_KEY]},v.prototype.deleteAt=function(t,s){this.isolate(t,s).remove()},v.prototype.formatAt=function(t,s,n,r){var u=this.isolate(t,s);if(null!=d.query(n,d.Scope.BLOT)&&r)u.wrap(n,r);else if(null!=d.query(n,d.Scope.ATTRIBUTE)){var l=d.create(this.statics.scope);u.wrap(l),l.format(n,r)}},v.prototype.insertAt=function(t,s,n){var r=null==n?d.create("text",s):d.create(s,n),u=this.split(t);this.parent.insertBefore(r,u)},v.prototype.insertInto=function(t,s){void 0===s&&(s=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,s),null!=s&&(n=s.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},v.prototype.isolate=function(t,s){var n=this.split(t);return n.split(s),n},v.prototype.length=function(){return 1},v.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},v.prototype.optimize=function(t){null!=this.domNode[d.DATA_KEY]&&delete this.domNode[d.DATA_KEY].mutations},v.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},v.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},v.prototype.replaceWith=function(t,s){var n="string"==typeof t?d.create(t,s):t;return n.replace(this),n},v.prototype.split=function(t,s){return 0===t?this:this.next},v.prototype.update=function(t,s){},v.prototype.wrap=function(t,s){var n="string"==typeof t?d.create(t,s):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},v.blotName="abstract",v}();y.default=a},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var d=c(11),a=c(29),v=c(30),t=c(1),s=function(){function n(r){this.attributes={},this.domNode=r,this.build()}return n.prototype.attribute=function(r,u){u?r.add(this.domNode,u)&&(null!=r.value(this.domNode)?this.attributes[r.attrName]=r:delete this.attributes[r.attrName]):(r.remove(this.domNode),delete this.attributes[r.attrName])},n.prototype.build=function(){var r=this;this.attributes={};var u=d.default.keys(this.domNode),l=a.default.keys(this.domNode),p=v.default.keys(this.domNode);u.concat(l).concat(p).forEach(function(x){var m=t.query(x,t.Scope.ATTRIBUTE);m instanceof d.default&&(r.attributes[m.attrName]=m)})},n.prototype.copy=function(r){var u=this;Object.keys(this.attributes).forEach(function(l){var p=u.attributes[l].value(u.domNode);r.format(l,p)})},n.prototype.move=function(r){var u=this;this.copy(r),Object.keys(this.attributes).forEach(function(l){u.attributes[l].remove(u.domNode)}),this.attributes={}},n.prototype.values=function(){var r=this;return Object.keys(this.attributes).reduce(function(u,l){return u[l]=r.attributes[l].value(r.domNode),u},{})},n}();y.default=s},function(h,y,c){"use strict";function d(s,n){return(s.getAttribute("class")||"").split(/\s+/).filter(function(r){return 0===r.indexOf(n+"-")})}var s,a=this&&this.__extends||(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var u in r)r.hasOwnProperty(u)&&(n[u]=r[u])},function(n,r){function u(){this.constructor=n}s(n,r),n.prototype=null===r?Object.create(r):(u.prototype=r.prototype,new u)});Object.defineProperty(y,"__esModule",{value:!0});var t=function(s){function n(){return null!==s&&s.apply(this,arguments)||this}return a(n,s),n.keys=function(r){return(r.getAttribute("class")||"").split(/\s+/).map(function(u){return u.split("-").slice(0,-1).join("-")})},n.prototype.add=function(r,u){return!!this.canAdd(r,u)&&(this.remove(r),r.classList.add(this.keyName+"-"+u),!0)},n.prototype.remove=function(r){d(r,this.keyName).forEach(function(u){r.classList.remove(u)}),0===r.classList.length&&r.removeAttribute("class")},n.prototype.value=function(r){var l=(d(r,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(r,l)?l:""},n}(c(11).default);y.default=t}
vendor: 4,279 bytes, line 1
1,function(h,y,c){"use strict";function d(s){var n=s.split("-"),r=n.slice(1).map(function(u){return u[0].toUpperCase()+u.slice(1)}).join("");return n[0]+r}var s,a=this&&this.__extends||(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var u in r)r.hasOwnProperty(u)&&(n[u]=r[u])},function(n,r){function u(){this.constructor=n}s(n,r),n.prototype=null===r?Object.create(r):(u.prototype=r.prototype,new u)});Object.defineProperty(y,"__esModule",{value:!0});var t=function(s){function n(){return null!==s&&s.apply(this,arguments)||this}return a(n,s),n.keys=function(r){return(r.getAttribute("style")||"").split(";").map(function(u){return u.split(":")[0].trim()})},n.prototype.add=function(r,u){return!!this.canAdd(r,u)&&(r.style[d(this.keyName)]=u,!0)},n.prototype.remove=function(r){r.style[d(this.keyName)]="",r.getAttribute("style")||r.removeAttribute("style")},n.prototype.value=function(r){var u=r.style[d(this.keyName)];return this.canAdd(r,u)?u:""},n}(c(11).default);y.default=t},function(h,y,c){"use strict";function d(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(y,"__esModule",{value:!0});var n=function g(w,C,k){null===w&&(w=Function.prototype);var M=Object.getOwnPropertyDescriptor(w,C);if(void 0===M){var N=Object.getPrototypeOf(w);return null===N?void 0:g(N,C,k)}if("value"in M)return M.value;var O=M.get;return void 0!==O?O.call(k):void 0},r=function(){function g(w,C){for(var k=0;k<C.length;k++){var M=C[k];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(w,M.key,M)}}return function(w,C,k){return C&&g(w.prototype,C),k&&g(w,k),w}}(),l=d(c(0)),x=d(c(8)),m=function(g){function w(C,k){!function a(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}(this,w);var M=function v(g,w){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!=typeof w&&"function"!=typeof w?g:w}(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,C));return M.selection=k,M.textNode=document.createTextNode(w.CONTENTS),M.domNode.appendChild(M.textNode),M._length=0,M}return function t(g,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(g,w):g.__proto__=w)}(w,g),r(w,null,[{key:"value",value:function(){}}]),r(w,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(C,k){if(0!==this._length)return n(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,C,k);for(var M=this,N=0;null!=M&&M.statics.scope!==l.default.Scope.BLOCK_BLOT;)N+=M.offset(M.parent),M=M.parent;null!=M&&(this._length=w.CONTENTS.length,M.optimize(),M.formatAt(N,w.CONTENTS.length,C,k),this._length=0)}},{key:"index",value:function(C,k){return C===this.textNode?0:n(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,C,k)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){n(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var C=this.textNode,k=this.selection.getNativeRange(),M=void 0,N=void 0,O=void 0;if(null!=k&&k.start.node===C&&k.end.node===C){var _=[C,k.start.offset,k.end.offset];M=_[0],N=_[1],O=_[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==w.CONTENTS){var P=this.textNode.data.split(w.CONTENTS).join("");this.next instanceof x.default?(M=this.next.domNode,this.next.insertAt(0,P),this.textNode.data=w.CONTENTS):(this.textNode.data=P,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(w.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=N){var T=function(w,C){if(Array.isArray(w))return w;
vendor: 4,304 bytes, line 1
1if(Symbol.iterator in Object(w))return function g(w,C){var k=[],M=!0,N=!1,O=void 0;try{for(var _,P=w[Symbol.iterator]();!(M=(_=P.next()).done)&&(k.push(_.value),!C||k.length!==C);M=!0);}catch(A){N=!0,O=A}finally{try{!M&&P.return&&P.return()}finally{if(N)throw O}}return k}(w,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([N,O].map(function(L){return Math.max(0,Math.min(M.data.length,L-1))}),2);return{startNode:M,startOffset:N=T[0],endNode:M,endOffset:O=T[1]}}}}},{key:"update",value:function(C,k){var M=this;if(C.some(function(O){return"characterData"===O.type&&O.target===M.textNode})){var N=this.restore();N&&(k.range=N)}}},{key:"value",value:function(){return""}}]),w}(l.default.Embed);m.blotName="cursor",m.className="ql-cursor",m.tagName="span",m.CONTENTS="\ufeff",y.default=m},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var a=function(){function t(s,n){for(var r=0;r<n.length;r++){var u=n[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}return function(s,n,r){return n&&t(s.prototype,n),r&&t(s,r),s}}(),v=function(){function t(s,n){(function d(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),this.quill=s,this.options=n,this.modules={}}return a(t,[{key:"init",value:function(){var s=this;Object.keys(this.options.modules).forEach(function(n){null==s.modules[n]&&s.addModule(n)})}},{key:"addModule",value:function(s){var n=this.quill.constructor.import("modules/"+s);return this.modules[s]=new n(this.quill,this.options.modules[s]||{}),this.modules[s]}}]),t}();v.DEFAULTS={modules:{}},v.themes={default:v},y.default=v},function(h,y,c){"use strict";function d(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(y,"__esModule",{value:!0});var s=function(){function g(w,C){for(var k=0;k<C.length;k++){var M=C[k];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(w,M.key,M)}}return function(w,C,k){return C&&g(w.prototype,C),k&&g(w,k),w}}(),n=function g(w,C,k){null===w&&(w=Function.prototype);var M=Object.getOwnPropertyDescriptor(w,C);if(void 0===M){var N=Object.getPrototypeOf(w);return null===N?void 0:g(N,C,k)}if("value"in M)return M.value;var O=M.get;return void 0!==O?O.call(k):void 0},u=d(c(0)),p=d(c(8)),x="\ufeff",m=function(g){function w(C){!function a(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}(this,w);var k=function v(g,w){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!=typeof w&&"function"!=typeof w?g:w}(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,C));return k.contentNode=document.createElement("span"),k.contentNode.setAttribute("contenteditable",!1),[].slice.call(k.domNode.childNodes).forEach(function(M){k.contentNode.appendChild(M)}),k.leftGuard=document.createTextNode(x),k.rightGuard=document.createTextNode(x),k.domNode.appendChild(k.leftGuard),k.domNode.appendChild(k.contentNode),k.domNode.appendChild(k.rightGuard),k}return function t(g,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(g,w):g.__proto__=w)}(w,g),s(w,[{key:"index",value:function(C,k){return C===this.leftGuard?0:C===this.rightGuard?1:n(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,C,k)}},{key:"restore",value:function(C){var k=void 0,M=void 0,N=C.data.split(x).join("");if(C===this.leftGuard)if(this.prev instanceof p.default){var O=this.prev.length();this.prev.insertAt(O,N),k={startNode:this.prev.domNode,startOffset:O+N.length}}else M=document.createTextNode(N),this.parent.insertBefore(u.default.create(M),this),k={startNode:M,startOffset:N.length};else C===this.rightGuard&&(this.next instanceof p.default?(this.next.insertAt(0,N),k={startNode:this.next.domNode,startOffset:N.length}):(M=document.createTextNode(N),this.parent.insertBefore(u.default.create(M),this.next),k={startNode:M,startOffset:N.length}));return C.data=x,k}},{key:"update",value:function(C,k){var M=this;
vendor: 8,738 bytes, line 1
1C.forEach(function(N){if("characterData"===N.type&&(N.target===M.leftGuard||N.target===M.rightGuard)){var O=M.restore(N.target);O&&(k.range=O)}})}}]),w}(u.default.Embed);y.default=m},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.AlignStyle=y.AlignClass=y.AlignAttribute=void 0;var r,a=(r=c(0))&&r.__esModule?r:{default:r},v={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},t=new a.default.Attributor.Attribute("align","align",v),s=new a.default.Attributor.Class("align","ql-align",v),n=new a.default.Attributor.Style("align","text-align",v);y.AlignAttribute=t,y.AlignClass=s,y.AlignStyle=n},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.BackgroundStyle=y.BackgroundClass=void 0;var n,a=(n=c(0))&&n.__esModule?n:{default:n},v=c(24),t=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),s=new v.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});y.BackgroundClass=t,y.BackgroundStyle=s},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.DirectionStyle=y.DirectionClass=y.DirectionAttribute=void 0;var r,a=(r=c(0))&&r.__esModule?r:{default:r},v={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},t=new a.default.Attributor.Attribute("direction","dir",v),s=new a.default.Attributor.Class("direction","ql-direction",v),n=new a.default.Attributor.Style("direction","direction",v);y.DirectionAttribute=t,y.DirectionClass=s,y.DirectionStyle=n},function(h,y,c){"use strict";function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function a(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?m:g}Object.defineProperty(y,"__esModule",{value:!0}),y.FontClass=y.FontStyle=void 0;var m,t=function(){function m(g,w){for(var C=0;C<w.length;C++){var k=w[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,w,C){return w&&m(g.prototype,w),C&&m(g,C),g}}(),s=function m(g,w,C){null===g&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,w);if(void 0===k){var M=Object.getPrototypeOf(g);return null===M?void 0:m(M,w,C)}if("value"in k)return k.value;var N=k.get;return void 0!==N?N.call(C):void 0},r=(m=c(0))&&m.__esModule?m:{default:m},u={scope:r.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new r.default.Attributor.Class("font","ql-font",u),p=function(m){function g(){return d(this,g),a(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return function v(m,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}(g,m),t(g,[{key:"value",value:function(w){return s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,w).replace(/["']/g,"")}}]),g}(r.default.Attributor.Style),x=new p("font","font-family",u);y.FontStyle=x,y.FontClass=l},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.SizeStyle=y.SizeClass=void 0;var s,a=(s=c(0))&&s.__esModule?s:{default:s},v=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),t=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});y.SizeClass=v,y.SizeStyle=t},function(h,y,c){"use strict";function d(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}function a(l,p){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?l:p}Object.defineProperty(y,"__esModule",{value:!0});var l,t=function(){function l(p,x){for(var m=0;m<x.length;m++){var g=x[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,x,m){return x&&l(p.prototype,x),m&&l(p,m),p}}(),s=function l(p,x,m){null===p&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,x);if(void 0===g){var w=Object.getPrototypeOf(p);return null===w?void 0:l(w,x,m)}if("value"in g)return g.value;var C=g.get;return void 0!==C?C.call(m):void 0},u=function(l){function p(){return d(this,p),a(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return function v(l,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);l.prototype=Object.create(p&&p.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(l,p):l.__proto__=p)}(p,l),t(p,[{key:"optimize",value:function(x){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,x),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(((l=c(5))&&l.__esModule?l:{default:l}).default);u.blotName="bold",u.tagName=["STRONG","B"],y.default=u},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var l,t=function(){function l(p,x){for(var m=0;m<x.length;m++){var g=x[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,x,m){return x&&l(p.prototype,x),m&&l(p,m),p}}(),s=function l(p,x,m){null===p&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,x);if(void 0===g){var w=Object.getPrototypeOf(p);return null===w?void 0:l(w,x,m)}if("value"in g)return g.value;var C=g.get;return void 0!==C?C.call(m):void 0},u=function(l){function p(x,m){!function d(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p);var g=function a(l,p){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?l:p}(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,x));return g.label.innerHTML=m,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),g}return function v(l,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);l.prototype=Object.create(p&&p.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(l,p):l.__proto__=p)}(p,l),t(p,[{key:"buildItem",value:function(x){var m=s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,x);return m.style.backgroundColor=x.getAttribute("value")||"",m}},{key:"selectItem",value:function(x,m){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,x,m);var g=this.label.querySelector(".ql-color-label"),w=x&&x.getAttribute("data-value")||"";g&&("line"===g.tagName?g.style.stroke=w:g.style.fill=w)}}]),p}(((l=c(16))&&l.__esModule?l:{default:l}).default);y.default=u},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var l,t=function(){function l(p,x){for(var m=0;m<x.length;m++){var g=x[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,x,m){return x&&l(p.prototype,x),m&&l(p,m),p}}(),s=function l(p,x,m){null===p&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,x);if(void 0===g){var w=Object.getPrototypeOf(p);return null===w?void 0:l(w,x,m)}if("value"in g)return g.value;var C=g.get;return void 0!==C?C.call(m):void 0},u=function(l){function p(x,m){!function d(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p);var g=function a(l,p){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?l:p}(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,x));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(w){
1w.innerHTML=m[w.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return function v(l,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);l.prototype=Object.create(p&&p.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(l,p):l.__proto__=p)}(p,l),t(p,[{key:"selectItem",value:function(x,m){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,x,m),this.label.innerHTML=(x=x||this.defaultItem).innerHTML}}]),p}(((l=c(16))&&l.__esModule?l:{default:l}).default);y.default=u},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var a=function(){function t(s,n){for(var r=0;r<n.length;r++){var u=n[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}return function(s,n,r){return n&&t(s.prototype,n),r&&t(s,r),s}}(),v=function(){function t(s,n){var r=this;(function d(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),this.quill=s,this.boundsContainer=n||document.body,this.root=s.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"}),this.hide()}return a(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(s){var n=s.left+s.width/2-this.root.offsetWidth/2,r=s.bottom+this.quill.root.scrollTop;this.root.style.left=n+"px",this.root.style.top=r+"px",this.root.classList.remove("ql-flip");var u=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect(),p=0;return l.right>u.right&&(this.root.style.left=n+(p=u.right-l.right)+"px"),l.left<u.left&&(this.root.style.left=n+(p=u.left-l.left)+"px"),l.bottom>u.bottom&&(this.root.style.top=r-(s.bottom-s.top+(l.bottom-l.top))+"px",this.root.classList.add("ql-flip")),p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();y.default=v},function(h,y,c){"use strict";function d(tt){return tt&&tt.__esModule?tt:{default:tt}}function a(tt,at){if(!(tt instanceof at))throw new TypeError("Cannot call a class as a function")}function v(tt,at){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!at||"object"!=typeof at&&"function"!=typeof at?tt:at}function t(tt,at){if("function"!=typeof at&&null!==at)throw new TypeError("Super expression must either be null or a function, not "+typeof at);tt.prototype=Object.create(at&&at.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),at&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,at):tt.__proto__=at)}function n(tt,at){var ct=arguments.length>2&&void 0!==arguments[2]&&arguments[2];at.forEach(function(ut){var rt=document.createElement("option");ut===ct?rt.setAttribute("selected","selected"):rt.setAttribute("value",ut),tt.appendChild(rt)})}Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.BaseTooltip=void 0;var r=function(){function tt(at,ct){for(var ut=0;ut<ct.length;ut++){var rt=ct[ut];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(at,rt.key,rt)}}return function(at,ct,ut){return ct&&tt(at.prototype,ct),ut&&tt(at,ut),at}}(),u=function tt(at,ct,ut){null===at&&(at=Function.prototype);var rt=Object.getOwnPropertyDescriptor(at,ct);if(void 0===rt){var lt=Object.getPrototypeOf(at);return null===lt?void 0:tt(lt,ct,ut)}if("value"in rt)return rt.value;var ft=rt.get;return void 0!==ft?ft.call(ut):void 0},p=d(c(2)),m=d(c(4)),w=d(c(9)),k=d(c(25)),N=d(c(32)),_=d(c(41)),A=d(c(42)),L=d(c(16)),F=d(c(43)),W=[!1,"center","right","justify"],q=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],et=[!1,"serif","monospace"],X=["1","2","3",!1],it=["small",!1,"large","huge"],z=function(tt){function at(ct,ut){a(this,at);var rt=v(this,(at.__proto__||Object.getPrototypeOf(at)).call(this,ct,ut));return ct.emitter.listenDOM("click",document.body,function ft(kt){if(!document.body.contains(ct.root))return document.body.removeEventListener("click",ft);null==rt.tooltip||rt.tooltip.root.contains(kt.target)||document.activeElement===rt.tooltip.textbox||rt.quill.hasFocus()||rt.tooltip.hide(),null!=rt.pickers&&rt.pickers.forEac
vendor: 4,724 bytes, line 1
1h(function(wt){wt.container.contains(kt.target)||wt.close()})}),rt}return t(at,tt),r(at,[{key:"addModule",value:function(ct){var ut=u(at.prototype.__proto__||Object.getPrototypeOf(at.prototype),"addModule",this).call(this,ct);return"toolbar"===ct&&this.extendToolbar(ut),ut}},{key:"buildButtons",value:function(ct,ut){ct.forEach(function(rt){(rt.getAttribute("class")||"").split(/\s+/).forEach(function(lt){if(lt.startsWith("ql-")&&(lt=lt.slice(3),null!=ut[lt]))if("direction"===lt)rt.innerHTML=ut[lt][""]+ut[lt].rtl;else if("string"==typeof ut[lt])rt.innerHTML=ut[lt];else{var ft=rt.value||"";null!=ft&&ut[lt][ft]&&(rt.innerHTML=ut[lt][ft])}})})}},{key:"buildPickers",value:function(ct,ut){var rt=this;this.pickers=ct.map(function(ft){if(ft.classList.contains("ql-align"))return null==ft.querySelector("option")&&n(ft,W),new A.default(ft,ut.align);if(ft.classList.contains("ql-background")||ft.classList.contains("ql-color")){var kt=ft.classList.contains("ql-background")?"background":"color";return null==ft.querySelector("option")&&n(ft,q,"background"===kt?"#ffffff":"#000000"),new _.default(ft,ut[kt])}return null==ft.querySelector("option")&&(ft.classList.contains("ql-font")?n(ft,et):ft.classList.contains("ql-header")?n(ft,X):ft.classList.contains("ql-size")&&n(ft,it)),new L.default(ft)}),this.quill.on(w.default.events.EDITOR_CHANGE,function(){rt.pickers.forEach(function(ft){ft.update()})})}}]),at}(N.default);z.DEFAULTS=(0,p.default)(!0,{},N.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var tt=this,at=this.container.querySelector("input.ql-image[type=file]");null==at&&((at=document.createElement("input")).setAttribute("type","file"),at.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),at.classList.add("ql-image"),at.addEventListener("change",function(){if(null!=at.files&&null!=at.files[0]){var ct=new FileReader;ct.onload=function(ut){var rt=tt.quill.getSelection(!0);tt.quill.updateContents((new m.default).retain(rt.index).delete(rt.length).insert({image:ut.target.result}),w.default.sources.USER),tt.quill.setSelection(rt.index+1,w.default.sources.SILENT),at.value=""},ct.readAsDataURL(at.files[0])}}),this.container.appendChild(at)),at.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var j=function(tt){function at(ct,ut){a(this,at);var rt=v(this,(at.__proto__||Object.getPrototypeOf(at)).call(this,ct,ut));return rt.textbox=rt.root.querySelector('input[type="text"]'),rt.listen(),rt}return t(at,tt),r(at,[{key:"listen",value:function(){var ct=this;this.textbox.addEventListener("keydown",function(ut){k.default.match(ut,"enter")?(ct.save(),ut.preventDefault()):k.default.match(ut,"escape")&&(ct.cancel(),ut.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var ct=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",ut=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=ut?this.textbox.value=ut:ct!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+ct)||""),this.root.setAttribute("data-mode",ct)}},{key:"restoreFocus",value:function(){var ct=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=ct}},{key:"save",value:function(){var ct=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var ut=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",ct,w.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",ct,w.default.sources.USER)),this.quill.root.scrollTop=ut;break;case"video":ct=function s(tt){var at=tt.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||tt.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return at?(at[1]||"https")+"://www.youtube.com/embed/"+at[2]+"?showinfo=0":(at=tt.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(at[1]||"https")+"://player.vimeo.com/video/"+at[2]+"/":tt}(ct);case"formula":if(!ct)break;var rt=this.quill.getSelection(!0);if(null!=rt){var lt=rt.index+rt.length;this.quill.insertEmbed(lt,this.root.getAttribute("data-mode"),ct,w.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(lt+1," ",w.default.sources.USER),this.quill.setSelection(lt+2,w.default.sources.USER)}}this.textbox.value="",this.hide()}}]),at}(F.default);y.BaseTooltip=j,y.default=z}
vendor: 1,984 bytes, line 1
1,function(h,y,c){"use strict";function d(ne){return ne&&ne.__esModule?ne:{default:ne}}Object.defineProperty(y,"__esModule",{value:!0});var v=d(c(46)),t=c(34),s=c(36),n=c(62),u=d(c(63)),p=d(c(64)),x=c(65),m=d(x),g=c(35),w=c(24),C=c(37),k=c(38),N=d(c(39)),_=d(c(66)),A=d(c(15)),L=d(c(67)),F=d(c(68)),q=d(c(69)),X=d(c(70)),z=d(c(71)),j=c(13),tt=d(j),ct=d(c(72)),rt=d(c(73)),ft=d(c(74)),wt=d(c(26)),Yt=d(c(16)),$t=d(c(41)),fe=d(c(42)),Ct=d(c(43)),jt=d(c(107)),Kt=d(c(108));v.default.register({"attributors/attribute/direction":s.DirectionAttribute,"attributors/class/align":t.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":w.ColorClass,"attributors/class/direction":s.DirectionClass,"attributors/class/font":C.FontClass,"attributors/class/size":k.SizeClass,"attributors/style/align":t.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":w.ColorStyle,"attributors/style/direction":s.DirectionStyle,"attributors/style/font":C.FontStyle,"attributors/style/size":k.SizeStyle},!0),v.default.register({"formats/align":t.AlignClass,"formats/direction":s.DirectionClass,"formats/indent":n.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":w.ColorStyle,"formats/font":C.FontClass,"formats/size":k.SizeClass,"formats/blockquote":u.default,"formats/code-block":tt.default,"formats/header":p.default,"formats/list":m.default,"formats/bold":N.default,"formats/code":j.Code,"formats/italic":_.default,"formats/link":A.default,"formats/script":L.default,"formats/strike":F.default,"formats/underline":q.default,"formats/image":X.default,"formats/video":z.default,"formats/list/item":x.ListItem,"modules/formula":ct.default,"modules/syntax":rt.default,"modules/toolbar":ft.default,"themes/bubble":jt.default,"themes/snow":Kt.default,"ui/icons":wt.default,"ui/picker":Yt.default,"ui/icon-picker":fe.default,"ui/color-picker":$t.default,"ui/tooltip":Ct.default},!0),y.default=v.default},function(h,y,c){"use strict";
vendor: 8,770 bytes, line 1
1function d(q){return q&&q.__esModule?q:{default:q}}Object.defineProperty(y,"__esModule",{value:!0});var v=d(c(0)),s=d(c(6)),n=c(3),r=d(n),l=d(c(14)),x=d(c(23)),g=d(c(31)),C=d(c(33)),M=d(c(5)),O=d(c(59)),P=d(c(8)),T=d(c(60)),I=d(c(61)),W=d(c(25));s.default.register({"blots/block":r.default,"blots/block/embed":n.BlockEmbed,"blots/break":l.default,"blots/container":x.default,"blots/cursor":g.default,"blots/embed":C.default,"blots/inline":M.default,"blots/scroll":O.default,"blots/text":P.default,"modules/clipboard":T.default,"modules/history":I.default,"modules/keyboard":W.default}),v.default.register(r.default,l.default,g.default,M.default,O.default,P.default),y.default=s.default},function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var d=function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var v=[],t=0;t<arguments.length;t++)v[t]=arguments[t];this.insertBefore(v[0],null),v.length>1&&this.append.apply(this,v.slice(1))},a.prototype.contains=function(v){for(var t,s=this.iterator();t=s();)if(t===v)return!0;return!1},a.prototype.insertBefore=function(v,t){v&&(v.next=t,null!=t?(v.prev=t.prev,null!=t.prev&&(t.prev.next=v),t.prev=v,t===this.head&&(this.head=v)):null!=this.tail?(this.tail.next=v,v.prev=this.tail,this.tail=v):(v.prev=null,this.head=this.tail=v),this.length+=1)},a.prototype.offset=function(v){for(var t=0,s=this.head;null!=s;){if(s===v)return t;t+=s.length(),s=s.next}return-1},a.prototype.remove=function(v){this.contains(v)&&(null!=v.prev&&(v.prev.next=v.next),null!=v.next&&(v.next.prev=v.prev),v===this.head&&(this.head=v.next),v===this.tail&&(this.tail=v.prev),this.length-=1)},a.prototype.iterator=function(v){return void 0===v&&(v=this.head),function(){var t=v;return null!=v&&(v=v.next),t}},a.prototype.find=function(v,t){void 0===t&&(t=!1);for(var s,n=this.iterator();s=n();){var r=s.length();if(v<r||t&&v===r&&(null==s.next||0!==s.next.length()))return[s,v];v-=r}return[null,0]},a.prototype.forEach=function(v){for(var t,s=this.iterator();t=s();)v(t)},a.prototype.forEachAt=function(v,t,s){if(!(t<=0))for(var n,r=this.find(v),p=v-r[1],x=this.iterator(r[0]);(n=x())&&p<v+t;){var m=n.length();v>p?s(n,v-p,Math.min(t,p+m-v)):s(n,0,Math.min(m,v+t-p)),p+=m}},a.prototype.map=function(v){return this.reduce(function(t,s){return t.push(v(s)),t},[])},a.prototype.reduce=function(v,t){for(var s,n=this.iterator();s=n();)t=v(t,s);return t},a}();y.default=d},function(h,y,c){"use strict";var n,d=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var l in u)u.hasOwnProperty(l)&&(r[l]=u[l])},function(r,u){function l(){this.constructor=r}n(r,u),r.prototype=null===u?Object.create(u):(l.prototype=u.prototype,new l)});Object.defineProperty(y,"__esModule",{value:!0});var a=c(17),v=c(1),t={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(n){function r(u){var l=n.call(this,u)||this;return l.scroll=l,l.observer=new MutationObserver(function(p){l.update(p)}),l.observer.observe(l.domNode,t),l.attach(),l}return d(r,n),r.prototype.detach=function(){n.prototype.detach.call(this),this.observer.disconnect()},r.prototype.deleteAt=function(u,l){this.update(),0===u&&l===this.length()?this.children.forEach(function(p){p.remove()}):n.prototype.deleteAt.call(this,u,l)},r.prototype.formatAt=function(u,l,p,x){this.update(),n.prototype.formatAt.call(this,u,l,p,x)},r.prototype.insertAt=function(u,l,p){this.update(),n.prototype.insertAt.call(this,u,l,p)},r.prototype.optimize=function(u,l){var p=this;void 0===u&&(u=[]),void 0===l&&(l={}),n.prototype.optimize.call(this,l);for(var x=[].slice.call(this.observer.takeRecords());x.length>0;)u.push(x.pop());for(var m=function(k,M){void 0===M&&(M=!0),null!=k&&k!==p&&null!=k.domNode.parentNode&&(null==k.domNode[v.DATA_KEY].mutations&&(k.domNode[v.DATA_KEY].mutations=[]),M&&m(k.parent))},g=function(k){null!=k.domNode[v.DATA_KEY]&&null!=k.domNode[v.DATA_KEY].mutations&&(k instanceof a.default&&k.children.forEach(g),k.optimize(l))},w=u,C=0;w.length>0;C+=1){if(C>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(w.forEach(function(k){var M=v.find(k.target,!0);null!=M&&(M.domNode===k.target&&("childList"===k.type?(m(v.find(k.previousSibling,!1)),[].forEach.call(k.addedNodes,function(N){var O=v.find(N,!1);m(O,!1),O instanceof a.default&&O.children.forEach(function(_){m(_,!1)})})):"attributes"===k.type&&m(M.prev)),m(M))}),this.children.forEach(g),x=(w=[].slice.call(this.observer.takeRecords())).slice();x.length>0;)u.push(x.pop())}},r.prototype.update=function(u,l){var p=this;void 0===l&&(l={}),(u=u||this.observer.takeRecords()).map(function(x){var m=v.find(x.target,!0);return null==m?null:null==m.domNode[v.DATA_KEY].mutations?(m.domNode[v.DATA_KEY].mutations=[x],m):(m.domNode[v.DATA_KEY].mutations.push(x),null)}).forEach(function(x){null!=x&&x!==p&&null!=x.domNode[v.DATA_KEY]&&x.update(x.domNode[v.DATA_KEY].mutations||[],l)}),null!=this.domNode[v.DATA_KEY].mutations&&n.prototype.update.call(this,this.domNode[v.DATA_KEY].mutations,l),this.optimize(u,l)},r.blotName="scroll",r.defaultChild="block",r.scope=v.Scope.BLOCK_BLOT,r.tagName="DIV",r}(a.default);y.default=s},function(h,y,c){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var l in u)u.hasOwnProperty(l)&&(r[l]=u[l])},function(r,u){function l(){this.constructor=r}n(r,u),r.prototype=null===u?Object.create(u):(l.prototype=u.prototype,new l)});Object.defineProperty(y,"__esModule",{value:!0});var v=c(18),t=c(1),s=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return a(r,n),r.formats=function(u){if(u.tagName!==r.tagName)return n.formats.call(this,u)},r.prototype.format=function(u,l){var p=this;u!==this.statics.blotName||l?n.prototype.format.call(this,u,l):(this.children.forEach(function(x){x instanceof v.default||(x=x.wrap(r.blotName,!0)),p.attributes.copy(x)}),this.unwrap())},r.prototype.formatAt=function(u,l,p,x){null!=this.formats()[p]||t.query(p,t.Scope.ATTRIBUTE)?this.isolate(u,l).format(p,x):n.prototype.formatAt.call(this,u,l,p,x)},r.prototype.optimize=function(u){n.prototype.optimize.call(this,u);var l=this.formats();if(0===Object.keys(l).length)return this.unwrap();var p=this.next;p instanceof r&&p.prev===this&&function d(n,r){if(Object.keys(n).length!==Object.keys(r).length)return!1;for(var u in n)if(n[u]!==r[u])return!1;return!0}(l,p.formats())&&(p.moveChildren(this),p.remove())},r.blotName="inline",r.scope=t.Scope.INLINE_BLOT,r.tagName="SPAN",r}(v.default);y.default=s},function(h,y,c){"use strict";var s,d=this&&this.__extends||(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var u in r)r.hasOwnProperty(u)&&(n[u]=r[u])},function(n,r){function u(){this.constructor=n}s(n,r),n.prototype=null===r?Object.create(r):(u.prototype=r.prototype,new u)});Object.defineProperty(y,"__esModule",{value:!0});var a=c(18),v=c(1),t=function(s){function n(){return null!==s&&s.apply(this,arguments)||this}return d(n,s),n.formats=function(r){var u=v.query(n.blotName).tagName;if(r.tagName!==u)return s.formats.call(this,r)},n.prototype.format=function(r,u){null!=v.query(r,v.Scope.BLOCK)&&(r!==this.statics.blotName||u?s.prototype.format.call(this,r,u):this.replaceWith(n.blotName))},n.prototype.formatAt=function(r,u,l,p){null!=v.query(l,v.Scope.BLOCK)?this.format(l,p):s.prototype.formatAt.call(this,r,u,l,p)},n.prototype.insertAt=function(r,u,l){if(null==l||null!=v.query(u,v.Scope.INLINE))s.prototype.insertAt.call(this,r,u,l);else{var p=this.split(r),x=v.create(u,l);p.parent.insertBefore(x,p)}},n.prototype.update=function(r,u){navigator.userAgent.match(/Trident/)?this.build():s.prototype.update.call(this,r,u)},n.blotName="block",n.scope=v.Scope.BLOCK_BLOT,n.tagName="P",n}(a.default);y.default=t},function(h,y,c){"use strict";var t,d=this&&this.__extends||(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,n){s.__proto__=n}||function(s,n){for(var r in n)n.hasOwnProperty(r)&&(s[r]=n[r])},function(s,n){function r(){this.constructor=s}t(s,n),s.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(y,"__esModule",{value:!0});var v=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return d(s,t),s.formats=function(n){},s.prototype.format=function(n,r){t.prototype.formatAt.call(this,0,this.length(),n,r)},s.prototype.formatAt=function(n,r,u,l){0===n&&r===this.length()?this.format(u,l):t.prototype.formatAt.call(this,n,r,u,l)},s.prototype.formats=function(){return this.statics.formats(this.domNode)},s}(c(19).default);y.default=v}
vendor: 7,962 bytes, line 1
1,function(h,y,c){"use strict";var s,d=this&&this.__extends||(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var u in r)r.hasOwnProperty(u)&&(n[u]=r[u])},function(n,r){function u(){this.constructor=n}s(n,r),n.prototype=null===r?Object.create(r):(u.prototype=r.prototype,new u)});Object.defineProperty(y,"__esModule",{value:!0});var a=c(19),v=c(1),t=function(s){function n(r){var u=s.call(this,r)||this;return u.text=u.statics.value(u.domNode),u}return d(n,s),n.create=function(r){return document.createTextNode(r)},n.value=function(r){var u=r.data;return u.normalize&&(u=u.normalize()),u},n.prototype.deleteAt=function(r,u){this.domNode.data=this.text=this.text.slice(0,r)+this.text.slice(r+u)},n.prototype.index=function(r,u){return this.domNode===r?u:-1},n.prototype.insertAt=function(r,u,l){null==l?(this.text=this.text.slice(0,r)+u+this.text.slice(r),this.domNode.data=this.text):s.prototype.insertAt.call(this,r,u,l)},n.prototype.length=function(){return this.text.length},n.prototype.optimize=function(r){s.prototype.optimize.call(this,r),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof n&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},n.prototype.position=function(r,u){return void 0===u&&(u=!1),[this.domNode,r]},n.prototype.split=function(r,u){if(void 0===u&&(u=!1),!u){if(0===r)return this;if(r===this.length())return this.next}var l=v.create(this.domNode.splitText(r));return this.parent.insertBefore(l,this.next),this.text=this.statics.value(this.domNode),l},n.prototype.update=function(r,u){var l=this;r.some(function(p){return"characterData"===p.type&&p.target===l.domNode})&&(this.text=this.statics.value(this.domNode))},n.prototype.value=function(){return this.text},n.blotName="text",n.scope=v.Scope.INLINE_BLOT,n}(a.default);y.default=t},function(h,y,c){"use strict";var d=document.createElement("div");if(d.classList.toggle("test-class",!1),d.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(v,t){return arguments.length>1&&!this.contains(v)==!t?t:a.call(this,v)}}String.prototype.startsWith||(String.prototype.startsWith=function(v,t){return this.substr(t=t||0,v.length)===v}),String.prototype.endsWith||(String.prototype.endsWith=function(v,t){var s=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>s.length)&&(t=s.length);var n=s.indexOf(v,t-=v.length);return-1!==n&&n===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(v){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof v)throw new TypeError("predicate must be a function");for(var t,s=Object(this),n=s.length>>>0,r=arguments[1],u=0;u<n;u++)if(v.call(r,t=s[u],u,s))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(h,y){function c(k,M,N){if(k==M)return k?[[w,k]]:[];(N<0||k.length<N)&&(N=null);var O=t(k,M),_=k.substring(0,O);O=s(k=k.substring(O),M=M.substring(O));var P=k.substring(k.length-O),A=function d(k,M){var N;if(!k)return[[g,M]];if(!M)return[[m,k]];var O=k.length>M.length?k:M,_=k.length>M.length?M:k,P=O.indexOf(_);if(-1!=P)return N=[[g,O.substring(0,P)],[w,_],[g,O.substring(P+_.length)]],k.length>M.length&&(N[0][0]=N[2][0]=m),N;if(1==_.length)return[[m,k],[g,M]];var A=function n(k,M){function N(q,et,X){for(var it,z,j,tt,at=q.substring(X,X+Math.floor(q.length/4)),ct=-1,ut="";-1!=(ct=et.indexOf(at,ct+1));){var rt=t(q.substring(X),et.substring(ct)),lt=s(q.substring(0,X),et.substring(0,ct));ut.length<lt+rt&&(ut=et.substring(ct-lt,ct)+et.substring(ct,ct+rt),it=q.substring(0,X-lt),z=q.substring(X+rt),j=et.substring(0,ct-lt),tt=et.substring(ct+rt))}return 2*ut.length>=q.length?[it,z,j,tt,ut]:null}var O=k.length>M.length?k:M,_=k.length>M.length?M:k;if(O.length<4||2*_.length<O.length)return null;var P,L,I,F,W,A=N(O,_,Math.ceil(O.length/4)),T=N(O,_,Math.ceil(O.length/2));return A||T?(P=T?A&&A[4].length>T[4].length?A:T:A,k.length>M.length?(L=P[0],I=P[1],F=P[2],W=P[3]):(F=P[0],W=P[1],L=P[2],I=P[3]),[L,I,F,W,P[4]]):null}(k,M);if(A){var L=A[1],F=A[3],W=A[4],q=c(A[0],A[2]),et=c(L,F);return q.concat([[w,W]],et)}return function a(k,M){for(var N=k.length,O=M.length,_=Math.ceil((N+O)/2),P=_,A=2*_,T=new Array(A),L=new Array(A),I=0;I<A;I++)T[I]=-1,L[I]=-1;T[P+1]=0,L[P+1]=0;for(var F=N-O,W=F%2!=0,q=0,et=0,X=0,it=0,z=0;z<_;z++){for(var j=-z+q;j<=z-et;j+=2){for(var at=P+j,ct=(tt=j==-z||j!=z&&T[at-1]<T[at+1]?T[at+1]:T[at-1]+1)-j;tt<N&&ct<O&&k.charAt(tt)==M.charAt(ct);)tt++,ct++;if(T[at]=tt,tt>N)et+=2;else if(ct>O)q+=2;else if(W&&(ut=P+F-j)>=0&&ut<A&&-1!=L[ut]&&tt>=(rt=N-L[ut]))return v(k,M,tt,ct)}for(var lt=-z+X;lt<=z-it;lt+=2){for(var rt,ut=P+lt,ft=(rt=lt==-z||lt!=z&&L[ut-1]<L[ut+1]?L[ut+1]:L[ut-1]+1)-lt;rt<N&&ft<O&&k.charAt(N-rt-1)==M.charAt(O-ft-1);)rt++,ft++;if(L[ut]=rt,rt>N)it+=2;else if(ft>O)X+=2;else if(!W){var tt;if((at=P+F-lt)>=0&&at<A&&-1!=T[at])if(ct=P+(tt=T[at])-at,tt>=(rt=N-rt))return v(k,M,tt,ct)}}}return[[m,k],[g,M]]}(k,M)}(k=k.substring(0,k.length-O),M=M.substring(0,M.length-O));return _&&A.unshift([w,_]),P&&A.push([w,P]),r(A),null!=N&&(A=function l(k,M){var N=function u(k,M){if(0===M)return[w,k];for(var N=0,O=0;O<k.length;O++){var _=k[O];if(_[0]===m||_[0]===w){var P=N+_[1].length;if(M===P)return[O+1,k];if(M<P){k=k.slice();var A=M-N,T=[_[0],_[1].slice(0,A)],L=[_[0],_[1].slice(A)];return k.splice(O,1,T,L),[O+1,k]}N=P}}throw new Error("cursor_pos is out of bounds!")}(k,M),O=N[1],_=N[0],P=O[_],A=O[_+1];if(null==P||P[0]!==w)return k;if(null!=A&&P[1]+A[1]===A[1]+P[1])return O.splice(_,2,A,P),x(O,_,2);if(null!=A&&0===A[1].indexOf(P[1])){O.splice(_,2,[A[0],P[1]],[0,P[1]]);var T=A[1].slice(P[1].length);return T.length>0&&O.splice(_+2,0,[A[0],T]),x(O,_,3)}return k}(A,N)),function p(k){for(var M=!1,N=function(P){return P.charCodeAt(0)>=56320&&P.charCodeAt(0)<=57343},O=2;O<k.length;O+=1)k[O-2][0]===w&&function(P){return P.charCodeAt(P.length-1)>=55296&&P.charCodeAt(P.length-1)<=56319}(k[O-2][1])&&k[O-1][0]===m&&N(k[O-1][1])&&k[O][0]===g&&N(k[O][1])&&(M=!0,k[O-1][1]=k[O-2][1].slice(-1)+k[O-1][1],k[O][1]=k[O-2][1].slice(-1)+k[O][1],k[O-2][1]=k[O-2][1].slice(0,-1));if(!M)return k;var _=[];for(O=0;O<k.length;O+=1)k[O][1].length>0&&_.push(k[O]);return _}(A)}function v(k,M,N,O){var _=k.substring(0,N),P=M.substring(0,O),A=k.substring(N),T=M.substring(O),L=c(_,P),I=c(A,T);return L.concat(I)}function t(k,M){if(!k||!M||k.charAt(0)!=M.charAt(0))return 0;for(var N=0,O=Math.min(k.length,M.length),_=O,P=0;N<_;)k.substring(P,_)==M.substring(P,_)?P=N=_:O=_,_=Math.floor((O-N)/2+N);return _}function s(k,M){if(!k||!M||k.charAt(k.length-1)!=M.charAt(M.length-1))return 0;for(var N=0,O=Math.min(k.length,M.length),_=O,P=0;N<_;)k.substring(k.length-_,k.length-P)==M.substring(M.length-_,M.length-P)?P=N=_:O=_,_=Math.floor((O-N)/2+N);return _}function r(k){k.push([w,""]);for(var M,N=0,O=0,_=0,P="",A="";N<k.length;)switch(k[N][0]){case g:_++,A+=k[N][1],N++;break;case m:O++,P+=k[N][1],N++;break;case w:O+_>1?(0!==O&&0!==_&&(0!==(M=t(A,P))&&(N-O-_>0&&k[N-O-_-1][0]==w?k[N-O-_-1][1]+=A.substring(0,M):(k.splice(0,0,[w,A.substring(0,M)]),N++),A=A.substring(M),P=P.substring(M)),0!==(M=s(A,P))&&(k[N][1]=A.substring(A.length-M)+k[N][1],A=A.substring(0,A.length-M),P=P.substring(0,P.length-M))),0===O?k.splice(N-_,O+_,[g,A]):0===_?k.splice(N-O,O+_,[m,P]):k.splice(N-O-_,O+_,[m,P],[g,A]),N=N-O-_+(O?1:0)+(_?1:0)+1):0!==N&&k[N-1][0]==w?(k[N-1][1]+=k[N][1],k.splice(N,1)):N++,_=0,O=0,P="",A=""}""===k[k.length-1][1]&&k.pop();var T=!1;for(N=1;N<k.length-1;)k[N-1][0]==w&&k[N+1][0]==w&&(k[N][1].substring(k[N][1].length-k[N-1][1].length)==k[N-1][1]?(k[N][1]=k[N-1][1]+k[N][1].substring(0,k[N][1].length-k[N-1][1].length),k[N+1][1]=k[N-1][1]+k[N+1][1],k.splice(N-1,1),T=!0):k[N][1].substring(0,k[N+1][
vendor: 4,274 bytes, line 1
11].length)==k[N+1][1]&&(k[N-1][1]+=k[N+1][1],k[N][1]=k[N][1].substring(k[N+1][1].length)+k[N+1][1],k.splice(N+1,1),T=!0)),N++;T&&r(k)}function x(k,M,N){for(var O=M+N-1;O>=0&&O>=M-1;O--)if(O+1<k.length){var _=k[O],P=k[O+1];_[0]===P[1]&&k.splice(O,2,[_[0],_[1]+P[1]])}return k}var m=-1,g=1,w=0,C=c;C.INSERT=g,C.DELETE=m,C.EQUAL=w,h.exports=C},function(h,y){function c(d){var a=[];for(var v in d)a.push(v);return a}(h.exports="function"==typeof Object.keys?Object.keys:c).shim=c},function(h,y){function c(v){return"[object Arguments]"==Object.prototype.toString.call(v)}function d(v){return v&&"object"==typeof v&&"number"==typeof v.length&&Object.prototype.hasOwnProperty.call(v,"callee")&&!Object.prototype.propertyIsEnumerable.call(v,"callee")||!1}var a="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(y=h.exports=a?c:d).supported=c,y.unsupported=d},function(h,y,c){"use strict";function d(it){return it&&it.__esModule?it:{default:it}}function t(it,z){return Object.keys(z).reduce(function(j,tt){return null==it[tt]||(z[tt]===it[tt]?j[tt]=z[tt]:Array.isArray(z[tt])?z[tt].indexOf(it[tt])<0&&(j[tt]=z[tt].concat([it[tt]])):j[tt]=[z[tt],it[tt]]),j},{})}Object.defineProperty(y,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it},r=function(z,j){if(Array.isArray(z))return z;if(Symbol.iterator in Object(z))return function it(z,j){var tt=[],at=!0,ct=!1,ut=void 0;try{for(var rt,lt=z[Symbol.iterator]();!(at=(rt=lt.next()).done)&&(tt.push(rt.value),!j||tt.length!==j);at=!0);}catch(ft){ct=!0,ut=ft}finally{try{!at&<.return&<.return()}finally{if(ct)throw ut}}return tt}(z,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=function(){function it(z,j){for(var tt=0;tt<j.length;tt++){var at=j[tt];at.enumerable=at.enumerable||!1,at.configurable=!0,"value"in at&&(at.writable=!0),Object.defineProperty(z,at.key,at)}}return function(z,j,tt){return j&&it(z.prototype,j),tt&&it(z,tt),z}}(),p=d(c(4)),m=d(c(20)),w=d(c(0)),k=d(c(13)),N=d(c(31)),O=c(3),_=d(O),A=d(c(14)),L=d(c(21)),F=d(c(12)),q=d(c(2)),et=/^[ -~]*$/,X=function(){function it(z){(function v(it,z){if(!(it instanceof z))throw new TypeError("Cannot call a class as a function")})(this,it),this.scroll=z,this.delta=this.getDelta()}return u(it,[{key:"applyDelta",value:function(z){var j=this,tt=!1;this.scroll.update();var at=this.scroll.length();return this.scroll.batchStart(),z=function s(it){return it.reduce(function(z,j){if(1===j.insert){var tt=(0,L.default)(j.attributes);return delete tt.image,z.insert({image:j.attributes.image},tt)}if(null==j.attributes||!0!==j.attributes.list&&!0!==j.attributes.bullet||((j=(0,L.default)(j)).attributes.list?j.attributes.list="ordered":(j.attributes.list="bullet",delete j.attributes.bullet)),"string"==typeof j.insert){var at=j.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return z.insert(at,j.attributes)}return z.push(j)},new p.default)}(z),z.reduce(function(ct,ut){var rt=ut.retain||ut.delete||ut.insert.length||1,lt=ut.attributes||{};if(null!=ut.insert){if("string"==typeof ut.insert){var ft=ut.insert;ft.endsWith("\n")&&tt&&(tt=!1,ft=ft.slice(0,-1)),ct>=at&&!ft.endsWith("\n")&&(tt=!0),j.scroll.insertAt(ct,ft);var kt=j.scroll.line(ct),wt=r(kt,2),Nt=wt[0],Yt=wt[1],Qt=(0,q.default)({},(0,O.bubbleFormats)(Nt));if(Nt instanceof _.default){var $t=Nt.descendant(w.default.Leaf,Yt),ce=r($t,1);Qt=(0,q.default)(Qt,(0,O.bubbleFormats)(ce[0]))}lt=m.default.attributes.diff(Qt,lt)||{}}else if("object"===n(ut.insert)){var qt=Object.keys(ut.insert)[0];if(null==qt)return ct;j.scroll.insertAt(ct,qt,ut.insert[qt])}at+=rt}return Object.keys(lt).forEach(function(Ct){j.scroll.formatAt(ct,rt,Ct,lt[Ct])}),ct+rt},0),z.reduce(function(ct,ut){return"number"==typeof ut.delete?(j.scroll.deleteAt(ct,ut.delete),ct):ct+(ut.retain||ut.insert.length||1)},0),this.scroll.batchEnd(),this.update(z)}},{key:"deleteText",value:function(z,j){return this.scroll.deleteAt(z,j),this.update((new p.default).retain(z).delete(j))}},{key:"formatLine",value:function(z,j){var tt=this,at=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
vendor: 4,666 bytes, line 1
1return this.scroll.update(),Object.keys(at).forEach(function(ct){if(null==tt.scroll.whitelist||tt.scroll.whitelist[ct]){var ut=tt.scroll.lines(z,Math.max(j,1)),rt=j;ut.forEach(function(lt){var ft=lt.length();if(lt instanceof k.default){var kt=z-lt.offset(tt.scroll),wt=lt.newlineIndex(kt+rt)-kt+1;lt.formatAt(kt,wt,ct,at[ct])}else lt.format(ct,at[ct]);rt-=ft})}}),this.scroll.optimize(),this.update((new p.default).retain(z).retain(j,(0,L.default)(at)))}},{key:"formatText",value:function(z,j){var tt=this,at=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(at).forEach(function(ct){tt.scroll.formatAt(z,j,ct,at[ct])}),this.update((new p.default).retain(z).retain(j,(0,L.default)(at)))}},{key:"getContents",value:function(z,j){return this.delta.slice(z,z+j)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(z,j){return z.concat(j.delta())},new p.default)}},{key:"getFormat",value:function(z){var j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,tt=[],at=[];0===j?this.scroll.path(z).forEach(function(ut){var lt=r(ut,1)[0];lt instanceof _.default?tt.push(lt):lt instanceof w.default.Leaf&&at.push(lt)}):(tt=this.scroll.lines(z,j),at=this.scroll.descendants(w.default.Leaf,z,j));var ct=[tt,at].map(function(ut){if(0===ut.length)return{};for(var rt=(0,O.bubbleFormats)(ut.shift());Object.keys(rt).length>0;){var lt=ut.shift();if(null==lt)return rt;rt=t((0,O.bubbleFormats)(lt),rt)}return rt});return q.default.apply(q.default,ct)}},{key:"getText",value:function(z,j){return this.getContents(z,j).filter(function(tt){return"string"==typeof tt.insert}).map(function(tt){return tt.insert}).join("")}},{key:"insertEmbed",value:function(z,j,tt){return this.scroll.insertAt(z,j,tt),this.update((new p.default).retain(z).insert(function a(it,z,j){return z in it?Object.defineProperty(it,z,{value:j,enumerable:!0,configurable:!0,writable:!0}):it[z]=j,it}({},j,tt)))}},{key:"insertText",value:function(z,j){var tt=this,at=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return j=j.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(z,j),Object.keys(at).forEach(function(ct){tt.scroll.formatAt(z,j.length,ct,at[ct])}),this.update((new p.default).retain(z).insert(j,(0,L.default)(at)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var z=this.scroll.children.head;return z.statics.blotName===_.default.blotName&&!(z.children.length>1)&&z.children.head instanceof A.default}},{key:"removeFormat",value:function(z,j){var tt=this.getText(z,j),at=this.scroll.line(z+j),ct=r(at,2),ut=ct[0],rt=ct[1],lt=0,ft=new p.default;null!=ut&&(lt=ut instanceof k.default?ut.newlineIndex(rt)-rt+1:ut.length()-rt,ft=ut.delta().slice(rt,rt+lt-1).insert("\n"));var wt=this.getContents(z,j+lt).diff((new p.default).insert(tt).concat(ft)),Nt=(new p.default).retain(z).concat(wt);return this.applyDelta(Nt)}},{key:"update",value:function(z){var j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,at=this.delta;if(1===j.length&&"characterData"===j[0].type&&j[0].target.data.match(et)&&w.default.find(j[0].target)){var ct=w.default.find(j[0].target),ut=(0,O.bubbleFormats)(ct),rt=ct.offset(this.scroll),lt=j[0].oldValue.replace(N.default.CONTENTS,""),ft=(new p.default).insert(lt),kt=(new p.default).insert(ct.value());z=(new p.default).retain(rt).concat(ft.diff(kt,tt)).reduce(function(wt,Nt){return Nt.insert?wt.insert(Nt.insert,ut):wt.push(Nt)},new p.default),this.delta=at.compose(z)}else this.delta=this.getDelta(),z&&(0,F.default)(at.compose(z),this.delta)||(z=at.diff(this.delta,tt));return z}}]),it}();y.default=X},function(h,y){"use strict";function c(){}function d(s,n,r){this.fn=s,this.context=n,this.once=r||!1}function a(){this._events=new c,this._eventsCount=0}var v=Object.prototype.hasOwnProperty,t="~";Object.create&&(c.prototype=Object.create(null),(new c).__proto__||(t=!1)),a.prototype.eventNames=function(){var s,n,r=[];if(0===this._eventsCount)return r;for(n in s=this._events)v.call(s,n)&&r.push(t?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(s)):r},a.prototype.listeners=function(s,n){var u=this._events[t?t+s:s];if(n)return!!u;if(!u)return[];if(u.fn)return[u.fn];for(var l=0,p=u.length,x=new Array(p);l<p;l++)x[l]=u[l].fn;return x},a.prototype.emit=function(s,n,r,u,l,p){var x=t?t+s:s;if(!this._events[x])return!1;var m,g,w=this._events[x],C=arguments.length;if(w.fn){switch(w.once&&this.removeListener(s,w.fn,void 0,!0),C){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,n),!0;
vendor: 6,248 bytes, line 1
1case 3:return w.fn.call(w.context,n,r),!0;case 4:return w.fn.call(w.context,n,r,u),!0;case 5:return w.fn.call(w.context,n,r,u,l),!0;case 6:return w.fn.call(w.context,n,r,u,l,p),!0}for(g=1,m=new Array(C-1);g<C;g++)m[g-1]=arguments[g];w.fn.apply(w.context,m)}else{var k,M=w.length;for(g=0;g<M;g++)switch(w[g].once&&this.removeListener(s,w[g].fn,void 0,!0),C){case 1:w[g].fn.call(w[g].context);break;case 2:w[g].fn.call(w[g].context,n);break;case 3:w[g].fn.call(w[g].context,n,r);break;case 4:w[g].fn.call(w[g].context,n,r,u);break;default:if(!m)for(k=1,m=new Array(C-1);k<C;k++)m[k-1]=arguments[k];w[g].fn.apply(w[g].context,m)}}return!0},a.prototype.on=function(s,n,r){var u=new d(n,r||this),l=t?t+s:s;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],u]:this._events[l].push(u):(this._events[l]=u,this._eventsCount++),this},a.prototype.once=function(s,n,r){var u=new d(n,r||this,!0),l=t?t+s:s;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],u]:this._events[l].push(u):(this._events[l]=u,this._eventsCount++),this},a.prototype.removeListener=function(s,n,r,u){var l=t?t+s:s;if(!this._events[l])return this;if(!n)return 0==--this._eventsCount?this._events=new c:delete this._events[l],this;var p=this._events[l];if(p.fn)p.fn!==n||u&&!p.once||r&&p.context!==r||(0==--this._eventsCount?this._events=new c:delete this._events[l]);else{for(var x=0,m=[],g=p.length;x<g;x++)(p[x].fn!==n||u&&!p[x].once||r&&p[x].context!==r)&&m.push(p[x]);m.length?this._events[l]=1===m.length?m[0]:m:0==--this._eventsCount?this._events=new c:delete this._events[l]}return this},a.prototype.removeAllListeners=function(s){var n;return s?this._events[n=t?t+s:s]&&(0==--this._eventsCount?this._events=new c:delete this._events[n]):(this._events=new c,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=t,a.EventEmitter=a,void 0!==h&&(h.exports=a)},function(h,y,c){"use strict";function d(A){return A&&A.__esModule?A:{default:A}}function s(A){return A instanceof w.default||A instanceof g.BlockEmbed}Object.defineProperty(y,"__esModule",{value:!0});var n=function(T,L){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return function A(T,L){var I=[],F=!0,W=!1,q=void 0;try{for(var et,X=T[Symbol.iterator]();!(F=(et=X.next()).done)&&(I.push(et.value),!L||I.length!==L);F=!0);}catch(it){W=!0,q=it}finally{try{!F&&X.return&&X.return()}finally{if(W)throw q}}return I}(T,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function A(T,L){for(var I=0;I<L.length;I++){var F=L[I];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(T,F.key,F)}}return function(T,L,I){return L&&A(T.prototype,L),I&&A(T,I),T}}(),u=function A(T,L,I){null===T&&(T=Function.prototype);var F=Object.getOwnPropertyDescriptor(T,L);if(void 0===F){var W=Object.getPrototypeOf(T);return null===W?void 0:A(W,L,I)}if("value"in F)return F.value;var q=F.get;return void 0!==q?q.call(I):void 0},p=d(c(0)),m=d(c(9)),g=c(3),w=d(g),k=d(c(14)),N=d(c(13)),_=d(c(23)),P=function(A){function T(L,I){!function a(A,T){if(!(A instanceof T))throw new TypeError("Cannot call a class as a function")}(this,T);var F=function v(A,T){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?A:T}(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,L));return F.emitter=I.emitter,Array.isArray(I.whitelist)&&(F.whitelist=I.whitelist.reduce(function(W,q){return W[q]=!0,W},{})),F.domNode.addEventListener("DOMNodeInserted",function(){}),F.optimize(),F.enable(),F}return function t(A,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);A.prototype=Object.create(T&&T.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(A,T):A.__proto__=T)}(T,A),r(T,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(L,I){var F=this.line(L),W=n(F,2),q=W[0],et=W[1],X=this.line(L+I),z=n(X,1)[0];if(u(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"deleteAt",this).call(this,L,I),null!=z&&q!==z&&et>0){if(q instanceof g.BlockEmbed||z instanceof g.BlockEmbed)return void this.optimize();if(q instanceof N.default){var j=q.newlineIndex(q.length(),!0);if(j>-1&&(q=q.split(j+1))===z)return void this.optimize()}else if(z instanceof N.default){var tt=z.newlineIndex(0);tt>-1&&z.split(tt+1)}q.moveChildren(z,z.children.head instanceof k.default?null:z.children.head),q.remove()}this.optimize()}},{key:"enable",value:function(){var L=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",L)}},{key:"formatAt",value:function(L,I,F,W){(null==this.whitelist||this.whitelist[F])&&(u(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"formatAt",this).call(this,L,I,F,W),this.optimize())}},{key:"insertAt",value:function(L,I,F){if(null==F||null==this.whitelist||this.whitelist[I]){if(L>=this.length())if(null==F||null==p.default.query(I,p.default.Scope.BLOCK)){var W=p.default.create(this.statics.defaultChild);this.appendChild(W),null==F&&I.endsWith("\n")&&(I=I.slice(0,-1)),W.insertAt(0,I,F)}else{var q=p.default.create(I,F);this.appendChild(q)}else u(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,L,I,F);this.optimize()}}},{key:"insertBefore",value:function(L,I){if(L.statics.scope===p.default.Scope.INLINE_BLOT){var F=p.default.create(this.statics.defaultChild);F.appendChild(L),L=F}u(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertBefore",this).call(this,L,I)}},{key:"leaf",value:function(L){return this.path(L).pop()||[null,-1]}},{key:"line",value:function(L){return L===this.length()?this.line(L-1):this.descendant(s,L)}},{key:"lines",value:function(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function F(W,q,et){var X=[],it=et;
vendor: 4,059 bytes, line 1
1return W.children.forEachAt(q,et,function(z,j,tt){s(z)?X.push(z):z instanceof p.default.Container&&(X=X.concat(F(z,j,it))),it-=tt}),X}(this,L,I)}},{key:"optimize",value:function(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(u(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,L,I),L.length>0&&this.emitter.emit(m.default.events.SCROLL_OPTIMIZE,L,I))}},{key:"path",value:function(L){return u(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"path",this).call(this,L).slice(1)}},{key:"update",value:function(L){if(!0!==this.batch){var I=m.default.sources.USER;"string"==typeof L&&(I=L),Array.isArray(L)||(L=this.observer.takeRecords()),L.length>0&&this.emitter.emit(m.default.events.SCROLL_BEFORE_UPDATE,I,L),u(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"update",this).call(this,L.concat([])),L.length>0&&this.emitter.emit(m.default.events.SCROLL_UPDATE,I,L)}}}]),T}(p.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[w.default,g.BlockEmbed,_.default],y.default=P},function(h,y,c){"use strict";function d(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}function a(Ct,Tt,jt){return Tt in Ct?Object.defineProperty(Ct,Tt,{value:jt,enumerable:!0,configurable:!0,writable:!0}):Ct[Tt]=jt,Ct}function n(Ct,Tt,jt){return"object"===(void 0===Tt?"undefined":P(Tt))?Object.keys(Tt).reduce(function(Ut,Kt){return n(Ut,Kt,Tt[Kt])},Ct):Ct.reduce(function(Ut,Kt){return Kt.attributes&&Kt.attributes[Tt]?Ut.push(Kt):Ut.insert(Kt.insert,(0,I.default)({},a({},Tt,jt),Kt.attributes))},new W.default)}function r(Ct){return Ct.nodeType!==Node.ELEMENT_NODE?{}:Ct["__ql-computed-style"]||(Ct["__ql-computed-style"]=window.getComputedStyle(Ct))}function u(Ct,Tt){for(var jt="",Ut=Ct.ops.length-1;Ut>=0&&jt.length<Tt.length;--Ut){var Kt=Ct.ops[Ut];if("string"!=typeof Kt.insert)break;jt=Kt.insert+jt}return jt.slice(-1*Tt.length)===Tt}function l(Ct){return 0!==Ct.childNodes.length&&["block","list-item"].indexOf(r(Ct).display)>-1}function p(Ct,Tt,jt){return Ct.nodeType===Ct.TEXT_NODE?jt.reduce(function(Ut,Kt){return Kt(Ct,Ut)},new W.default):Ct.nodeType===Ct.ELEMENT_NODE?[].reduce.call(Ct.childNodes||[],function(Ut,Kt){var ne=p(Kt,Tt,jt);return Kt.nodeType===Ct.ELEMENT_NODE&&(ne=Tt.reduce(function(zt,Vt){return Vt(Kt,zt)},ne),ne=(Kt[Qt]||[]).reduce(function(zt,Vt){return Vt(Kt,zt)},ne)),Ut.concat(ne)},new W.default):new W.default}function x(Ct,Tt,jt){return n(jt,Ct,!0)}function m(Ct,Tt){var jt=et.default.Attributor.Attribute.keys(Ct),Ut=et.default.Attributor.Class.keys(Ct),Kt=et.default.Attributor.Style.keys(Ct),ne={};return jt.concat(Ut).concat(Kt).forEach(function(zt){var Vt=et.default.query(zt,et.default.Scope.ATTRIBUTE);null!=Vt&&(ne[Vt.attrName]=Vt.value(Ct),ne[Vt.attrName])||(null==(Vt=ce[zt])||Vt.attrName!==zt&&Vt.keyName!==zt||(ne[Vt.attrName]=Vt.value(Ct)||void 0),null==(Vt=fe[zt])||Vt.attrName!==zt&&Vt.keyName!==zt||(ne[(Vt=fe[zt]).attrName]=Vt.value(Ct)||void 0))}),Object.keys(ne).length>0&&(Tt=n(Tt,ne)),Tt}function g(Ct,Tt){var jt=et.default.query(Ct);if(null==jt)return Tt;if(jt.prototype instanceof et.default.Embed){var Ut={},Kt=jt.value(Ct);null!=Kt&&(Ut[jt.blotName]=Kt,Tt=(new W.default).insert(Ut,jt.formats(Ct)))}else"function"==typeof jt.formats&&(Tt=n(Tt,jt.blotName,jt.formats(Ct)));return Tt}function M(Ct,Tt){return u(Tt,"\n")||(l(Ct)||Tt.length()>0&&Ct.nextSibling&&l(Ct.nextSibling))&&Tt.insert("\n"),Tt}function N(Ct,Tt){if(l(Ct)&&null!=Ct.nextElementSibling&&!u(Tt,"\n\n")){var jt=Ct.offsetHeight+parseFloat(r(Ct).marginTop)+parseFloat(r(Ct).marginBottom);Ct.nextElementSibling.offsetTop>Ct.offsetTop+1.5*jt&&Tt.insert("\n")}return Tt}function _(Ct,Tt){var jt=Ct.data;if("O:P"===Ct.parentNode.tagName)return Tt.insert(jt.trim());if(0===jt.trim().length&&Ct.parentNode.classList.contains("ql-clipboard"))return Tt;if(!r(Ct.parentNode).whiteSpace.startsWith("pre")){var Ut=function(Kt,ne){return(ne=ne.replace(/[^\u
vendor: 5,281 bytes, line 1
100a0]/g,"")).length<1&&Kt?" ":ne};jt=(jt=jt.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,Ut.bind(Ut,!0)),(null==Ct.previousSibling&&l(Ct.parentNode)||null!=Ct.previousSibling&&l(Ct.previousSibling))&&(jt=jt.replace(/^\s+/,Ut.bind(Ut,!1))),(null==Ct.nextSibling&&l(Ct.parentNode)||null!=Ct.nextSibling&&l(Ct.nextSibling))&&(jt=jt.replace(/\s+$/,Ut.bind(Ut,!1)))}return Tt.insert(jt)}Object.defineProperty(y,"__esModule",{value:!0}),y.matchText=y.matchSpacing=y.matchNewline=y.matchBlot=y.matchAttributor=y.default=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ct){return typeof Ct}:function(Ct){return Ct&&"function"==typeof Symbol&&Ct.constructor===Symbol&&Ct!==Symbol.prototype?"symbol":typeof Ct},A=function(Tt,jt){if(Array.isArray(Tt))return Tt;if(Symbol.iterator in Object(Tt))return function Ct(Tt,jt){var Ut=[],Kt=!0,ne=!1,zt=void 0;try{for(var Vt,ke=Tt[Symbol.iterator]();!(Kt=(Vt=ke.next()).done)&&(Ut.push(Vt.value),!jt||Ut.length!==jt);Kt=!0);}catch(me){ne=!0,zt=me}finally{try{!Kt&&ke.return&&ke.return()}finally{if(ne)throw zt}}return Ut}(Tt,jt);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function Ct(Tt,jt){for(var Ut=0;Ut<jt.length;Ut++){var Kt=jt[Ut];Kt.enumerable=Kt.enumerable||!1,Kt.configurable=!0,"value"in Kt&&(Kt.writable=!0),Object.defineProperty(Tt,Kt.key,Kt)}}return function(Tt,jt,Ut){return jt&&Ct(Tt.prototype,jt),Ut&&Ct(Tt,Ut),Tt}}(),I=d(c(2)),W=d(c(4)),et=d(c(0)),it=d(c(6)),j=d(c(10)),at=d(c(7)),ct=c(34),ut=c(35),lt=d(c(13)),ft=c(24),kt=c(36),wt=c(37),Nt=c(38),Yt=(0,j.default)("quill:clipboard"),Qt="__ql-matcher",$t=[[Node.TEXT_NODE,_],[Node.TEXT_NODE,M],["br",function w(Ct,Tt){return u(Tt,"\n")||Tt.insert("\n"),Tt}],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,g],[Node.ELEMENT_NODE,N],[Node.ELEMENT_NODE,m],[Node.ELEMENT_NODE,function O(Ct,Tt){var jt={},Ut=Ct.style||{};return Ut.fontStyle&&"italic"===r(Ct).fontStyle&&(jt.italic=!0),Ut.fontWeight&&(r(Ct).fontWeight.startsWith("bold")||parseInt(r(Ct).fontWeight)>=700)&&(jt.bold=!0),Object.keys(jt).length>0&&(Tt=n(Tt,jt)),parseFloat(Ut.textIndent||0)>0&&(Tt=(new W.default).insert("\t").concat(Tt)),Tt}],["li",function k(Ct,Tt){var jt=et.default.query(Ct);if(null==jt||"list-item"!==jt.blotName||!u(Tt,"\n"))return Tt;for(var Ut=-1,Kt=Ct.parentNode;!Kt.classList.contains("ql-clipboard");)"list"===(et.default.query(Kt)||{}).blotName&&(Ut+=1),Kt=Kt.parentNode;return Ut<=0?Tt:Tt.compose((new W.default).retain(Tt.length()-1).retain(1,{indent:Ut}))}],["b",x.bind(x,"bold")],["i",x.bind(x,"italic")],["style",function C(){return new W.default}]],ce=[ct.AlignAttribute,kt.DirectionAttribute].reduce(function(Ct,Tt){return Ct[Tt.keyName]=Tt,Ct},{}),fe=[ct.AlignStyle,ut.BackgroundStyle,ft.ColorStyle,kt.DirectionStyle,wt.FontStyle,Nt.SizeStyle].reduce(function(Ct,Tt){return Ct[Tt.keyName]=Tt,Ct},{}),qt=function(Ct){function Tt(jt,Ut){!function v(Ct,Tt){if(!(Ct instanceof Tt))throw new TypeError("Cannot call a class as a function")}(this,Tt);var Kt=function t(Ct,Tt){if(!Ct)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Tt||"object"!=typeof Tt&&"function"!=typeof Tt?Ct:Tt}(this,(Tt.__proto__||Object.getPrototypeOf(Tt)).call(this,jt,Ut));return Kt.quill.root.addEventListener("paste",Kt.onPaste.bind(Kt)),Kt.container=Kt.quill.addContainer("ql-clipboard"),Kt.container.setAttribute("contenteditable",!0),Kt.container.setAttribute("tabindex",-1),Kt.matchers=[],$t.concat(Kt.options.matchers).forEach(function(ne){var zt=A(ne,2),ke=zt[1];(Ut.matchVisual||ke!==N)&&Kt.addMatcher(zt[0],ke)}),Kt}return function s(Ct,Tt){if("function"!=typeof Tt&&null!==Tt)throw new TypeError("Super expression must either be null or a function, not "+typeof Tt);Ct.prototype=Object.create(Tt&&Tt.prototype,{constructor:{value:Ct,enumerable:!1,writable:!0,configurable:!0}}),Tt&&(Object.setPrototypeOf?Object.setPrototypeOf(Ct,Tt):Ct.__proto__=Tt)}(Tt,Ct),T(Tt,[{key:"addMatcher",value:function(jt,Ut){this.matchers.push([jt,Ut])}},{key:"convert",value:function(jt){if("string"==typeof jt)return this.container.innerHTML=jt.replace(/\>\r?\n +\</g,"><"),this.convert();var Ut=this.quill.getFormat(this.quill.selection.savedRange.index);if(Ut[lt.default.blotName]){var Kt=this.container.innerText;return this.container.innerHTML="",(new W.default).insert(Kt,a({},lt.default.blotName,Ut[lt.default.blotName]))}var ne=this.prepareMatching(),zt=A(ne,2),me=p(this.container,zt[0],zt[1]);return u(me,"\n")&&null==me.ops[me.ops.length-1].attributes&&(me=me.compose((new W.default).retain(me.length()-1).delete(1))),Yt.log("convert",this.container.innerHTML,me),this.container.innerHTML="",me}},{key:"dangerouslyPasteHTML",value:function(jt,Ut){var Kt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:it.default.sources.API;if("string"==typeof jt)this.quill.setContents(this.convert(jt),Ut),this.quill.setSelection(0,it.default.sources.SILENT);else{var ne=this.convert(Ut);this.quill.updateContents((new W.default).retain(jt).concat(ne),Kt),this.quill.setSelection(jt+ne.length(),it.default.sources.SILENT)}}},{key:"onPaste",value:function(jt){var Ut=this;if(!jt.defaultPrevented&&this.quill.isEnabled()){var Kt=this.quill.getSelection(),ne=(new W.default).retain(Kt.index),zt
vendor: 4,089 bytes, line 1
1=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(it.default.sources.SILENT),setTimeout(function(){ne=ne.concat(Ut.convert()).delete(Kt.length),Ut.quill.updateContents(ne,it.default.sources.USER),Ut.quill.setSelection(ne.length()-Kt.length,it.default.sources.SILENT),Ut.quill.scrollingContainer.scrollTop=zt,Ut.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var jt=this,Ut=[],Kt=[];return this.matchers.forEach(function(ne){var zt=A(ne,2),Vt=zt[0],ke=zt[1];switch(Vt){case Node.TEXT_NODE:Kt.push(ke);break;case Node.ELEMENT_NODE:Ut.push(ke);break;default:[].forEach.call(jt.container.querySelectorAll(Vt),function(me){me[Qt]=me[Qt]||[],me[Qt].push(ke)})}}),[Ut,Kt]}}]),Tt}(at.default);qt.DEFAULTS={matchers:[],matchVisual:!0},y.default=qt,y.matchAttributor=m,y.matchBlot=g,y.matchNewline=M,y.matchSpacing=N,y.matchText=_},function(h,y,c){"use strict";function d(C){return C&&C.__esModule?C:{default:C}}function n(C){var k=C.reduce(function(N,O){return N+(O.delete||0)},0),M=C.length()-k;return function s(C){var k=C.ops[C.ops.length-1];return null!=k&&(null!=k.insert?"string"==typeof k.insert&&k.insert.endsWith("\n"):null!=k.attributes&&Object.keys(k.attributes).some(function(M){return null!=l.default.query(M,l.default.Scope.BLOCK)}))}(C)&&(M-=1),M}Object.defineProperty(y,"__esModule",{value:!0}),y.getLastChangeIndex=y.default=void 0;var r=function(){function C(k,M){for(var N=0;N<M.length;N++){var O=M[N];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(k,O.key,O)}}return function(k,M,N){return M&&C(k.prototype,M),N&&C(k,N),k}}(),l=d(c(0)),x=d(c(6)),w=function(C){function k(M,N){!function a(C,k){if(!(C instanceof k))throw new TypeError("Cannot call a class as a function")}(this,k);var O=function v(C,k){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!k||"object"!=typeof k&&"function"!=typeof k?C:k}(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,M,N));return O.lastRecorded=0,O.ignoreChange=!1,O.clear(),O.quill.on(x.default.events.EDITOR_CHANGE,function(_,P,A,T){_!==x.default.events.TEXT_CHANGE||O.ignoreChange||(O.options.userOnly&&T!==x.default.sources.USER?O.transform(P):O.record(P,A))}),O.quill.keyboard.addBinding({key:"Z",shortKey:!0},O.undo.bind(O)),O.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},O.redo.bind(O)),/Win/i.test(navigator.platform)&&O.quill.keyboard.addBinding({key:"Y",shortKey:!0},O.redo.bind(O)),O}return function t(C,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function, not "+typeof k);C.prototype=Object.create(k&&k.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(C,k):C.__proto__=k)}(k,C),r(k,[{key:"change",value:function(M,N){if(0!==this.stack[M].length){var O=this.stack[M].pop();this.stack[N].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[M],x.default.sources.USER),this.ignoreChange=!1;var _=n(O[M]);this.quill.setSelection(_)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(M,N){if(0!==M.ops.length){this.stack.redo=[];var O=this.quill.getContents().diff(N),_=Date.now();if(this.lastRecorded+this.options.delay>_&&this.stack.undo.length>0){var P=this.stack.undo.pop();O=O.compose(P.undo),M=P.redo.compose(M)}else this.lastRecorded=_;this.stack.undo.push({redo:M,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(M){this.stack.undo.forEach(function(N){N.undo=M.transform(N.undo,!0),N.redo=M.transform(N.redo,!0)}),this.stack.redo.forEach(function(N){N.undo=M.transform(N.undo,!0),N.redo=M.transform(N.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),k}(d(c(7)).default);w.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},y.default=w,y.getLastChangeIndex=n}
vendor: 8,649 bytes, line 1
1,function(h,y,c){"use strict";function d(p,x){if(!(p instanceof x))throw new TypeError("Cannot call a class as a function")}function a(p,x){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!=typeof x&&"function"!=typeof x?p:x}Object.defineProperty(y,"__esModule",{value:!0}),y.IndentClass=void 0;var p,t=function(){function p(x,m){for(var g=0;g<m.length;g++){var w=m[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(x,w.key,w)}}return function(x,m,g){return m&&p(x.prototype,m),g&&p(x,g),x}}(),s=function p(x,m,g){null===x&&(x=Function.prototype);var w=Object.getOwnPropertyDescriptor(x,m);if(void 0===w){var C=Object.getPrototypeOf(x);return null===C?void 0:p(C,m,g)}if("value"in w)return w.value;var k=w.get;return void 0!==k?k.call(g):void 0},r=(p=c(0))&&p.__esModule?p:{default:p},u=function(p){function x(){return d(this,x),a(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return function v(p,x){if("function"!=typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);p.prototype=Object.create(x&&x.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(p,x):p.__proto__=x)}(x,p),t(x,[{key:"add",value:function(m,g){if("+1"===g||"-1"===g){var w=this.value(m)||0;g="+1"===g?w+1:w-1}return 0===g?(this.remove(m),!0):s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"add",this).call(this,m,g)}},{key:"canAdd",value:function(m,g){return s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"canAdd",this).call(this,m,g)||s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"canAdd",this).call(this,m,parseInt(g))}},{key:"value",value:function(m){return parseInt(s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,m))||void 0}}]),x}(r.default.Attributor.Class),l=new u("indent","ql-indent",{scope:r.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});y.IndentClass=l},function(h,y,c){"use strict";function d(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}function a(r,u){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?r:u}Object.defineProperty(y,"__esModule",{value:!0});var r,n=function(r){function u(){return d(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function v(r,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);r.prototype=Object.create(u&&u.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(r,u):r.__proto__=u)}(u,r),u}(((r=c(3))&&r.__esModule?r:{default:r}).default);n.blotName="blockquote",n.tagName="blockquote",y.default=n},function(h,y,c){"use strict";function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function a(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}Object.defineProperty(y,"__esModule",{value:!0});var u,t=function(){function u(l,p){for(var x=0;x<p.length;x++){var m=p[x];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(l,m.key,m)}}return function(l,p,x){return p&&u(l.prototype,p),x&&u(l,x),l}}(),r=function(u){function l(){return d(this,l),a(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function v(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),t(l,null,[{key:"formats",value:function(p){return this.tagName.indexOf(p.tagName)+1}}]),l}(((u=c(3))&&u.__esModule?u:{default:u}).default);r.blotName="header",r.tagName=["H1","H2","H3","H4","H5","H6"],y.default=r},function(h,y,c){"use strict";function d(k){return k&&k.__esModule?k:{default:k}}function v(k,M){if(!(k instanceof M))throw new TypeError("Cannot call a class as a function")}function t(k,M){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?k:M}function s(k,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);k.prototype=Object.create(M&&M.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(k,M):k.__proto__=M)}Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.ListItem=void 0;var n=function(){function k(M,N){for(var O=0;O<N.length;O++){var _=N[O];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(M,_.key,_)}}return function(M,N,O){return N&&k(M.prototype,N),O&&k(M,O),M}}(),r=function k(M,N,O){null===M&&(M=Function.prototype);var _=Object.getOwnPropertyDescriptor(M,N);if(void 0===_){var P=Object.getPrototypeOf(M);return null===P?void 0:k(P,N,O)}if("value"in _)return _.value;var A=_.get;return void 0!==A?A.call(O):void 0},l=d(c(0)),x=d(c(3)),g=d(c(23)),w=function(k){function M(){return v(this,M),t(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return s(M,k),n(M,[{key:"format",value:function(N,O){N!==C.blotName||O?r(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"format",this).call(this,N,O):this.replaceWith(l.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(N,O){return this.parent.isolate(this.offset(this.parent),this.length()),N===this.parent.statics.blotName?(this.parent.replaceWith(N,O),this):(this.parent.unwrap(),r(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replaceWith",this).call(this,N,O))}}],[{key:"formats",value:function(N){return N.tagName===this.tagName?void 0:r(M.__proto__||Object.getPrototypeOf(M),"formats",this).call(this,N)}}]),M}(x.default);w.blotName="list-item",w.tagName="LI";var C=function(k){function M(N){v(this,M);var O=t(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,N)),_=function(P){if(P.target.parentNode===N){var A=O.statics.formats(N),T=l.default.find(P.target);"checked"===A?T.format("list","unchecked"):"unchecked"===A&&T.format("list","checked")}};return N.addEventListener("touchstart",_),N.addEventListener("mousedown",_),O}return s(M,k),n(M,null,[{key:"create",value:function(N){var O="ordered"===N?"OL":"UL",_=r(M.__proto__||Object.getPrototypeOf(M),"create",this).call(this,O);return"checked"!==N&&"unchecked"!==N||_.setAttribute("data-checked","checked"===N),_}},{key:"formats",value:function(N){return"OL"===N.tagName?"ordered":"UL"===N.tagName?N.hasAttribute("data-checked")?"true"===N.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),n(M,[{key:"format",value:function(N,O){this.children.length>0&&this.children.tail.format(N,O)}},{key:"formats",value:function(){return function a(k,M,N){return M in k?Object.defineProperty(k,M,{value:N,enumerable:!0,configurable:!0,writable:!0}):k[M]=N,k}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(N,O){if(N instanceof w)r(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertBefore",this).call(this,N,O);else{var _=null==O?this.length():O.offset(this),P=this.split(_);P.parent.insertBefore(N,P)}}},{key:"optimize",value:function(N){r(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,N);var O=this.next;null!=O&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(N){if(N.statics.blotName!==this.statics.blotName){var O=l.default.create(this.statics.defaultChild);N.moveChildren(O),this.appendChild(O)}r(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replace",this).call(this,N)}}]),M}(g.default);C.blotName="list",C.scope=l.default.Scope.BLOCK_BLOT,C.tagName=["OL","UL"],C.defaultChild="list-item",C.allowedChildren=[w],y.ListItem=w,y.default=C}
vendor: 23,061 bytes, line 1
1,function(h,y,c){"use strict";function d(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}function a(r,u){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?r:u}Object.defineProperty(y,"__esModule",{value:!0});var r,n=function(r){function u(){return d(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function v(r,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);r.prototype=Object.create(u&&u.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(r,u):r.__proto__=u)}(u,r),u}(((r=c(39))&&r.__esModule?r:{default:r}).default);n.blotName="italic",n.tagName=["EM","I"],y.default=n},function(h,y,c){"use strict";function d(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}function a(l,p){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?l:p}Object.defineProperty(y,"__esModule",{value:!0});var l,t=function(){function l(p,x){for(var m=0;m<x.length;m++){var g=x[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,x,m){return x&&l(p.prototype,x),m&&l(p,m),p}}(),s=function l(p,x,m){null===p&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,x);if(void 0===g){var w=Object.getPrototypeOf(p);return null===w?void 0:l(w,x,m)}if("value"in g)return g.value;var C=g.get;return void 0!==C?C.call(m):void 0},u=function(l){function p(){return d(this,p),a(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return function v(l,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);l.prototype=Object.create(p&&p.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(l,p):l.__proto__=p)}(p,l),t(p,null,[{key:"create",value:function(x){return"super"===x?document.createElement("sup"):"sub"===x?document.createElement("sub"):s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,x)}},{key:"formats",value:function(x){return"SUB"===x.tagName?"sub":"SUP"===x.tagName?"super":void 0}}]),p}(((l=c(5))&&l.__esModule?l:{default:l}).default);u.blotName="script",u.tagName=["SUB","SUP"],y.default=u},function(h,y,c){"use strict";function d(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}function a(r,u){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?r:u}Object.defineProperty(y,"__esModule",{value:!0});var r,n=function(r){function u(){return d(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function v(r,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);r.prototype=Object.create(u&&u.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(r,u):r.__proto__=u)}(u,r),u}(((r=c(5))&&r.__esModule?r:{default:r}).default);n.blotName="strike",n.tagName="S",y.default=n},function(h,y,c){"use strict";function d(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}function a(r,u){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?r:u}Object.defineProperty(y,"__esModule",{value:!0});var r,n=function(r){function u(){return d(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function v(r,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);r.prototype=Object.create(u&&u.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(r,u):r.__proto__=u)}(u,r),u}(((r=c(5))&&r.__esModule?r:{default:r}).default);n.blotName="underline",n.tagName="U",y.default=n},function(h,y,c){"use strict";function d(x,m){if(!(x instanceof m))throw new TypeError("Cannot call a class as a function")}function a(x,m){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?x:m}Object.defineProperty(y,"__esModule",{value:!0});var x,t=function(){function x(m,g){for(var w=0;w<g.length;w++){var C=g[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(m,C.key,C)}}return function(m,g,w){return g&&x(m.prototype,g),w&&x(m,w),m}}(),s=function x(m,g,w){null===m&&(m=Function.prototype);var C=Object.getOwnPropertyDescriptor(m,g);if(void 0===C){var k=Object.getPrototypeOf(m);return null===k?void 0:x(k,g,w)}if("value"in C)return C.value;var M=C.get;return void 0!==M?M.call(w):void 0},r=(x=c(0))&&x.__esModule?x:{default:x},u=c(15),l=["alt","height","width"],p=function(x){function m(){return d(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return function v(x,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);x.prototype=Object.create(m&&m.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(x,m):x.__proto__=m)}(m,x),t(m,[{key:"format",value:function(g,w){l.indexOf(g)>-1?w?this.domNode.setAttribute(g,w):this.domNode.removeAttribute(g):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,g,w)}}],[{key:"create",value:function(g){var w=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,g);return"string"==typeof g&&w.setAttribute("src",this.sanitize(g)),w}},{key:"formats",value:function(g){return l.reduce(function(w,C){return g.hasAttribute(C)&&(w[C]=g.getAttribute(C)),w},{})}},{key:"match",value:function(g){return/\.(jpe?g|gif|png)$/.test(g)||/^data:image\/.+;base64/.test(g)}},{key:"sanitize",value:function(g){return(0,u.sanitize)(g,["http","https","data"])?g:"//:0"}},{key:"value",value:function(g){return g.getAttribute("src")}}]),m}(r.default.Embed);p.blotName="image",p.tagName="IMG",y.default=p},function(h,y,c){"use strict";function d(x,m){if(!(x instanceof m))throw new TypeError("Cannot call a class as a function")}function a(x,m){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?x:m}Object.defineProperty(y,"__esModule",{value:!0});var x,t=function(){function x(m,g){for(var w=0;w<g.length;w++){var C=g[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(m,C.key,C)}}return function(m,g,w){return g&&x(m.prototype,g),w&&x(m,w),m}}(),s=function x(m,g,w){null===m&&(m=Function.prototype);var C=Object.getOwnPropertyDescriptor(m,g);if(void 0===C){var k=Object.getPrototypeOf(m);return null===k?void 0:x(k,g,w)}if("value"in C)return C.value;var M=C.get;return void 0!==M?M.call(w):void 0},n=c(3),u=(x=c(15))&&x.__esModule?x:{default:x},l=["height","width"],p=function(x){function m(){return d(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return function v(x,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);x.prototype=Object.create(m&&m.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(x,m):x.__proto__=m)}(m,x),t(m,[{key:"format",value:function(g,w){l.indexOf(g)>-1?w?this.domNode.setAttribute(g,w):this.domNode.removeAttribute(g):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,g,w)}}],[{key:"create",value:function(g){var w=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,g);return w.setAttribute("frameborder","0"),w.setAttribute("allowfullscreen",!0),w.setAttribute("src",this.sanitize(g)),w}},{key:"formats",value:function(g){return l.reduce(function(w,C){return g.hasAttribute(C)&&(w[C]=g.getAttribute(C)),w},{})}},{key:"sanitize",value:function(g){return u.default.sanitize(g)}},{key:"value",value:function(g){return g.getAttribute("src")}}]),m}(n.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",y.default=p},function(h,y,c){"use strict";function d(C){return C&&C.__esModule?C:{default:C}}function a(C,k){if(!(C instanceof k))throw new TypeError("Cannot call a class as a function")}function v(C,k){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!k||"object"!=typeof k&&"function"!=typeof k?C:k}function t(C,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function, not "+typeof k);C.prototype=Object.create(k&&k.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(C,k):C.__proto__=k)}Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.FormulaBlot=void 0;var s=function(){function C(k,M){for(var N=0;N<M.length;N++){var O=M[N];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(k,O.key,O)}}return function(k,M,N){return M&&C(k.prototype,M),N&&C(k,N),k}}(),n=function C(k,M,N){null===k&&(k=Function.prototype);var O=Object.getOwnPropertyDescriptor(k,M);if(void 0===O){var _=Object.getPrototypeOf(k);return null===_?void 0:C(_,M,N)}if("value"in O)return O.value;var P=O.get;return void 0!==P?P.call(N):void 0},u=d(c(33)),p=d(c(6)),m=d(c(7)),g=function(C){function k(){return a(this,k),v(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return t(k,C),s(k,null,[{key:"create",value:function(M){var N=n(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,M);return"string"==typeof M&&(window.katex.render(M,N,{throwOnError:!1,errorColor:"#f00"}),N.setAttribute("data-value",M)),N}},{key:"value",value:function(M){return M.getAttribute("data-value")}}]),k}(u.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var w=function(C){function k(){a(this,k);var M=v(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return M}return t(k,C),s(k,null,[{key:"register",value:function(){p.default.register(g,!0)}}]),k}(m.default);y.FormulaBlot=g,y.default=w},function(h,y,c){"use strict";function d(N){return N&&N.__esModule?N:{default:N}}function a(N,O){if(!(N instanceof O))throw new TypeError("Cannot call a class as a function")}function v(N,O){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!O||"object"!=typeof O&&"function"!=typeof O?N:O}function t(N,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function, not "+typeof O);N.prototype=Object.create(O&&O.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(N,O):N.__proto__=O)}Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.CodeToken=y.CodeBlock=void 0;var s=function(){function N(O,_){for(var P=0;P<_.length;P++){var A=_[P];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,_,P){return _&&N(O.prototype,_),P&&N(O,P),O}}(),n=function N(O,_,P){null===O&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,_);if(void 0===A){var T=Object.getPrototypeOf(O);return null===T?void 0:N(T,_,P)}if("value"in A)return A.value;var L=A.get;return void 0!==L?L.call(P):void 0},u=d(c(0)),p=d(c(6)),m=d(c(7)),C=function(N){function O(){return a(this,O),v(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return t(O,N),s(O,[{key:"replaceWith",value:function(_){this.domNode.textContent=this.domNode.textContent,this.attach(),n(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,_)}},{key:"highlight",value:function(_){var P=this.domNode.textContent;this.cachedText!==P&&((P.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=_(P),this.domNode.normalize(),this.attach()),this.cachedText=P)}}]),O}(d(c(13)).default);C.className="ql-syntax";var k=new u.default.Attributor.Class("token","hljs",{scope:u.default.Scope.INLINE}),M=function(N){function O(_,P){a(this,O);var A=v(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,_,P));if("function"!=typeof A.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var T=null;return A.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(T),T=setTimeout(function(){A.highlight(),T=null},A.options.interval)}),A.highlight(),A}return t(O,N),s(O,null,[{key:"register",value:function(){p.default.register(k,!0),p.default.register(C,!0)}}]),s(O,[{key:"highlight",value:function(){var _=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var P=this.quill.getSelection();this.quill.scroll.descendants(C).forEach(function(A){A.highlight(_.options.highlight)}),this.quill.update(p.default.sources.SILENT),null!=P&&this.quill.setSelection(P,p.default.sources.SILENT)}}}]),O}(m.default);M.DEFAULTS={highlight:null==window.hljs?null:function(N){return window.hljs.highlightAuto(N).value},interval:1e3},y.CodeBlock=C,y.CodeToken=k,y.default=M},function(h,y,c){"use strict";function d(T){return T&&T.__esModule?T:{default:T}}function t(T,L){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!L||"object"!=typeof L&&"function"!=typeof L?T:L}function n(T,L,I){var F=document.createElement("button");F.setAttribute("type","button"),F.classList.add("ql-"+L),null!=I&&(F.value=I),T.appendChild(F)}function r(T,L){Array.isArray(L[0])||(L=[L]),L.forEach(function(I){var F=document.createElement("span");F.classList.add("ql-formats"),I.forEach(function(W){if("string"==typeof W)n(F,W);else{var q=Object.keys(W)[0],et=W[q];Array.isArray(et)?function u(T,L,I){var F=document.createElement("select");F.classList.add("ql-"+L),I.forEach(function(W){var q=document.createElement("option");!1!==W?q.setAttribute("value",W):q.setAttribute("selected","selected"),F.appendChild(q)}),T.appendChild(F)}(F,q,et):n(F,q,et)}}),T.appendChild(F)})}Object.defineProperty(y,"__esModule",{value:!0}),y.addControls=y.default=void 0;var l=function(L,I){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return function T(L,I){var F=[],W=!0,q=!1,et=void 0;try{for(var X,it=L[Symbol.iterator]();!(W=(X=it.next()).done)&&(F.push(X.value),!I||F.length!==I);W=!0);}catch(z){q=!0,et=z}finally{try{!W&&it.return&&it.return()}finally{if(q)throw et}}return F}(L,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")},p=function(){function T(L,I){for(var F=0;F<I.length;F++){var W=I[F];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(L,W.key,W)}}return function(L,I,F){return I&&T(L.prototype,I),F&&T(L,F),L}}(),m=d(c(4)),w=d(c(0)),k=d(c(6)),N=d(c(10)),_=d(c(7)),P=(0,N.default)("quill:toolbar"),A=function(T){function L(I,F){!function v(T,L){if(!(T instanceof L))throw new TypeError("Cannot call a class as a function")}(this,L);var et,W=t(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,I,F));if(Array.isArray(W.options.container)){var q=document.createElement("div");r(q,W.options.container),I.container.parentNode.insertBefore(q,I.container),W.container=q}else W.container="string"==typeof W.options.container?document.querySelector(W.options.container):W.options.container;return W.container instanceof HTMLElement?(W.container.classList.add("ql-toolbar"),W.controls=[],W.handlers={},Object.keys(W.options.handlers).forEach(function(X){W.addHandler(X,W.options.handlers[X])}),[].forEach.call(W.container.querySelectorAll("button, select"),function(X){W.attach(X)}),W.quill.on(k.default.events.EDITOR_CHANGE,function(X,it){X===k.default.events.SELECTION_CHANGE&&W.update(it)}),W.quill.on(k.default.events.SCROLL_OPTIMIZE,function(){var X=W.quill.selection.getRange(),it=l(X,1);W.update(it[0])}),W):(et=P.error("Container required for toolbar",W.options),t(W,et))}return function s(T,L){if("function"!=typeof L&&null!==L)throw new TypeError("Super expression must either be null or a function, not "+typeof L);T.prototype=Object.create(L&&L.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(T,L):T.__proto__=L)}(L,T),p(L,[{key:"addHandler",value:function(I,F){this.handlers[I]=F}},{key:"attach",value:function(I){var F=this,W=[].find.call(I.classList,function(et){return 0===et.indexOf("ql-")});if(W){if(W=W.slice(3),"BUTTON"===I.tagName&&I.setAttribute("type","button"),null==this.handlers[W]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[W])return void P.warn("ignoring attaching to disabled format",W,I);if(null==w.default.query(W))return void P.warn("ignoring attaching to nonexistent format",W,I)}I.addEventListener("SELECT"===I.tagName?"change":"click",function(et){var X=void 0;if("SELECT"===I.tagName){if(I.selectedIndex<0)return;var it=I.options[I.selectedIndex];X=!it.hasAttribute("selected")&&(it.value||!1)}else X=!I.classList.contains("ql-active")&&(I.value||!I.hasAttribute("value")),et.preventDefault();F.quill.focus();var z=F.quill.selection.getRange(),tt=l(z,1)[0];if(null!=F.handlers[W])F.handlers[W].call(F,X);else if(w.default.query(W).prototype instanceof w.default.Embed){if(!(X=prompt("Enter "+W)))return;F.quill.updateContents((new m.default).retain(tt.index).delete(tt.length).insert(function a(T,L,I){return L in T?Object.defineProperty(T,L,{value:I,enumerable:!0,configurable:!0,writable:!0}):T[L]=I,T}({},W,X)),k.default.sources.USER)}else F.quill.format(W,X,k.default.sources.USER);F.update(tt)}),this.controls.push([W,I])}}},{key:"update",value:function(I){var F=null==I?{}:this.quill.getFormat(I);this.controls.forEach(function(W){var q=l(W,2),et=q[0],X=q[1];if("SELECT"===X.tagName){var it=void 0;if(null==I)it=null;else if(null==F[et])it=X.querySelector("option[selected]");else if(!Array.isArray(F[et])){var z=F[et];"string"==typeof z&&(z=z.replace(/\"/g,'\\"')),it=X.querySelector('option[value="'+z+'"]')}null==it?(X.value="",X.selectedIndex=-1):it.selected=!0}else if(null==I)X.classList.remove("ql-active");else if(X.hasAttribute("value")){var j=F[et]===X.getAttribute("value")||null!=F[et]&&F[et].toString()===X.getAttribute("value")||null==F[et]&&!X.getAttribute("value");X.classList.toggle("ql-active",j)}else X.classList.toggle("ql-active",null!=F[et])})}}]),L}(_.default);A.DEFAULTS={},A.DEFAULTS={container:null,handlers:{clean:function(){var T=this,L=this.quill.getSelection();if(null!=L)if(0==L.length){var I=this.quill.getFormat();Object.keys(I).forEach(function(F){null!=w.default.query(F,w.default.Scope.INLINE)&&T.quill.format(F,!1)})}else this.quill.removeFormat(L,k.default.sources.USER)},direction:function(T){var L=this.quill.getFormat().align;"rtl"===T&&null==L?this.quill.format("align","right",k.default.sources.USER):T||"right"!==L||this.quill.format("align",!1,k.default.sources.USER),this.quill.format("direction",T,k.default.sources.USER)},indent:function(T){var L=this.quill.getSelection(),I=this.quill.getFormat(L),F=parseInt(I.indent||0);if("+1"===T||"-1"===T){var W="+1"===T?1:-1;"rtl"===I.direction&&(W*=-1),this.quill.format("indent",F+W,k.default.sources.USER)}},link:function(T){!0===T&&(T=prompt("Enter link URL:")),this.quill.format("link",T,k.default.sources.USER)},list:function(T){var L=this.quill.getSelection(),I=this.quill.getFormat(L);this.quill.format("list","check"===T?"checked"!==I.list&&"unchecked"!==I.list&&"unchecked":T,k.default.sources.USER)}}},y.default=A,y.addControls=r},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect>
1 <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(h,y){h.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(h,y){h.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(h,y){h.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(h,y){h.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(h,y){h.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}
vendor: 7,494 bytes, line 1
1,function(h,y,c){"use strict";function d(O){return O&&O.__esModule?O:{default:O}}function a(O,_){if(!(O instanceof _))throw new TypeError("Cannot call a class as a function")}function v(O,_){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!_||"object"!=typeof _&&"function"!=typeof _?O:_}function t(O,_){if("function"!=typeof _&&null!==_)throw new TypeError("Super expression must either be null or a function, not "+typeof _);O.prototype=Object.create(_&&_.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(O,_):O.__proto__=_)}Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.BubbleTooltip=void 0;var s=function O(_,P,A){null===_&&(_=Function.prototype);var T=Object.getOwnPropertyDescriptor(_,P);if(void 0===T){var L=Object.getPrototypeOf(_);return null===L?void 0:O(L,P,A)}if("value"in T)return T.value;var I=T.get;return void 0!==I?I.call(A):void 0},n=function(){function O(_,P){for(var A=0;A<P.length;A++){var T=P[A];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(_,T.key,T)}}return function(_,P,A){return P&&O(_.prototype,P),A&&O(_,A),_}}(),u=d(c(2)),p=d(c(9)),x=c(44),m=d(x),g=c(22),C=d(c(26)),k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],M=function(O){function _(P,A){a(this,_),null!=A.modules.toolbar&&null==A.modules.toolbar.container&&(A.modules.toolbar.container=k);var T=v(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,P,A));return T.quill.container.classList.add("ql-bubble"),T}return t(_,O),n(_,[{key:"extendToolbar",value:function(P){this.tooltip=new N(this.quill,this.options.bounds),this.tooltip.root.appendChild(P.container),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),C.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),C.default)}}]),_}(m.default);M.DEFAULTS=(0,u.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var N=function(O){function _(P,A){a(this,_);var T=v(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,P,A));return T.quill.on(p.default.events.EDITOR_CHANGE,function(L,I,F,W){if(L===p.default.events.SELECTION_CHANGE)if(null!=I&&I.length>0&&W===p.default.sources.USER){T.show(),T.root.style.left="0px",T.root.style.width="",T.root.style.width=T.root.offsetWidth+"px";var q=T.quill.getLines(I.index,I.length);if(1===q.length)T.position(T.quill.getBounds(I));else{var et=q[q.length-1],X=T.quill.getIndex(et),it=Math.min(et.length()-1,I.index+I.length-X),z=T.quill.getBounds(new g.Range(X,it));T.position(z)}}else document.activeElement!==T.textbox&&T.quill.hasFocus()&&T.hide()}),T}return t(_,O),n(_,[{key:"listen",value:function(){var P=this;s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){P.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!P.root.classList.contains("ql-hidden")){var A=P.quill.getSelection();null!=A&&P.position(P.quill.getBounds(A))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(P){var A=s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"position",this).call(this,P),T=this.root.querySelector(".ql-tooltip-arrow");if(T.style.marginLeft="",0===A)return A;T.style.marginLeft=-1*A-T.offsetWidth/2+"px"}}]),_}(x.BaseTooltip);N.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),y.BubbleTooltip=N,y.default=M},function(h,y,c){"use strict";function d(A){return A&&A.__esModule?A:{default:A}}function a(A,T){if(!(A instanceof T))throw new TypeError("Cannot call a class as a function")}function v(A,T){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?A:T}function t(A,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);A.prototype=Object.create(T&&T.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(A,T):A.__proto__=T)}Object.defineProperty(y,"__esModule",{value:!0});var n=function A(T,L,I){null===T&&(T=Function.prototype);var F=Object.getOwnPropertyDescriptor(T,L);if(void 0===F){var W=Object.getPrototypeOf(T);return null===W?void 0:A(W,L,I)}if("value"in F)return F.value;var q=F.get;return void 0!==q?q.call(I):void 0},r=function(){function A(T,L){for(var I=0;I<L.length;I++){var F=L[I];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(T,F.key,F)}}return function(T,L,I){return L&&A(T.prototype,L),I&&A(T,I),T}}(),l=d(c(2)),x=d(c(9)),m=c(44),g=d(m),C=d(c(15)),k=c(22),N=d(c(26)),O=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_=function(A){function T(L,I){a(this,T),null!=I.modules.toolbar&&null==I.modules.toolbar.container&&(I.modules.toolbar.container=O);var F=v(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,L,I));return F.quill.container.classList.add("ql-snow"),F}return t(T,A),r(T,[{key:"extendToolbar",value:function(L){L.container.classList.add("ql-snow"),this.buildButtons([].slice.call(L.container.querySelectorAll("button")),N.default),this.buildPickers([].slice.call(L.container.querySelectorAll("select")),N.default),this.tooltip=new P(this.quill,this.options.bounds),L.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(I,F){L.handlers.link.call(L,!F.format.link)})}}]),T}(g.default);_.DEFAULTS=(0,l.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){if(A){var T=this.quill.getSelection();if(null==T||0==T.length)return;var L=this.quill.getText(T);/^\S+@\S+\.\S+$/.test(L)&&0!==L.indexOf("mailto:")&&(L="mailto:"+L),this.quill.theme.tooltip.edit("link",L)}else this.quill.format("link",!1)}}}}});var P=function(A){function T(L,I){a(this,T);var F=v(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,L,I));return F.preview=F.root.querySelector("a.ql-preview"),F}return t(T,A),r(T,[{key:"listen",value:function(){var L=this;n(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(I){L.root.classList.contains("ql-editing")?L.save():L.edit("link",L.preview.textContent),I.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(I){if(null!=L.linkRange){var F=L.linkRange;L.restoreFocus(),L.quill.formatText(F,"link",!1,x.default.sources.USER),delete L.linkRange}I.preventDefault(),L.hide()}),this.quill.on(x.default.events.SELECTION_CHANGE,function(I,F,W){if(null!=I){if(0===I.length&&W===x.default.sources.USER){var et=function(T,L){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return function A(T,L){var I=[],F=!0,W=!1,q=void 0;try{for(var et,X=T[Symbol.iterator]();!(F=(et=X.next()).done)&&(I.push(et.value),!L||I.length!==L);F=!0);}catch(it){W=!0,q=it}finally{try{!F&&X.return&&X.return()}finally{if(W)throw q}}return I}(T,L);
vendor: 13,152 bytes, line 1
1throw new TypeError("Invalid attempt to destructure non-iterable instance")}(L.quill.scroll.descendant(C.default,I.index),2),X=et[0];if(null!=X){L.linkRange=new k.Range(I.index-et[1],X.length());var z=C.default.formats(X.domNode);return L.preview.textContent=z,L.preview.setAttribute("href",z),L.show(),void L.position(L.quill.getBounds(L.linkRange))}}else delete L.linkRange;L.hide()}})}},{key:"show",value:function(){n(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),T}(m.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),y.default=_}]).default}),function(h,y){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=h.document?y(h,!0):function(c){if(!c.document)throw new Error("jQuery requires a window with a document");return y(c)}:y(h)}("undefined"!=typeof window?window:this,function(h,y){"use strict";var c=[],d=Object.getPrototypeOf,a=c.slice,v=c.flat?function(S){return c.flat.call(S)}:function(S){return c.concat.apply([],S)},t=c.push,s=c.indexOf,n={},r=n.toString,u=n.hasOwnProperty,l=u.toString,p=l.call(Object),x={},m=function(S){return"function"==typeof S&&"number"!=typeof S.nodeType&&"function"!=typeof S.item},g=function(S){return null!=S&&S===S.window},w=h.document,C={type:!0,src:!0,nonce:!0,noModule:!0};function k(S,R,B){var U,Z,J=(B=B||w).createElement("script");if(J.text=S,R)for(U in C)(Z=R[U]||R.getAttribute&&R.getAttribute(U))&&J.setAttribute(U,Z);B.head.appendChild(J).parentNode.removeChild(J)}function M(S){return null==S?S+"":"object"==typeof S||"function"==typeof S?n[r.call(S)]||"object":typeof S}var N="3.7.1",O=/HTML$/i,_=function(S,R){return new _.fn.init(S,R)};function P(S){var R=!!S&&"length"in S&&S.length,B=M(S);return!m(S)&&!g(S)&&("array"===B||0===R||"number"==typeof R&&0<R&&R-1 in S)}function A(S,R){return S.nodeName&&S.nodeName.toLowerCase()===R.toLowerCase()}_.fn=_.prototype={jquery:N,constructor:_,length:0,toArray:function(){return a.call(this)},get:function(S){return null==S?a.call(this):S<0?this[S+this.length]:this[S]},pushStack:function(S){var R=_.merge(this.constructor(),S);return R.prevObject=this,R},each:function(S){return _.each(this,S)},map:function(S){return this.pushStack(_.map(this,function(R,B){return S.call(R,B,R)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,function(S,R){return(R+1)%2}))},odd:function(){return this.pushStack(_.grep(this,function(S,R){return R%2}))},eq:function(S){var R=this.length,B=+S+(S<0?R:0);return this.pushStack(0<=B&&B<R?[this[B]]:[])},end:function(){return this.prevObject||this.constructor()},push:t,sort:c.sort,splice:c.splice},_.extend=_.fn.extend=function(){var S,R,B,U,Z,J,st=arguments[0]||{},vt=1,mt=arguments.length,_t=!1;for("boolean"==typeof st&&(_t=st,st=arguments[vt]||{},vt++),"object"==typeof st||m(st)||(st={}),vt===mt&&(st=this,vt--);vt<mt;vt++)if(null!=(S=arguments[vt]))for(R in S)U=S[R],"__proto__"!==R&&st!==U&&(_t&&U&&(_.isPlainObject(U)||(Z=Array.isArray(U)))?(B=st[R],J=Z&&!Array.isArray(B)?[]:Z||_.isPlainObject(B)?B:{},Z=!1,st[R]=_.extend(_t,J,U)):void 0!==U&&(st[R]=U));return st},_.extend({expando:"jQuery"+(N+Math.random()).replace(/\D/g,""),isReady:!0,error:function(S){throw new Error(S)},noop:function(){},isPlainObject:function(S){var R,B;return!(!S||"[object Object]"!==r.call(S)||(R=d(S))&&("function"!=typeof(B=u.call(R,"constructor")&&R.constructor)||l.call(B)!==p))},isEmptyObject:function(S){var R;for(R in S)return!1;return!0},globalEval:function(S,R,B){k(S,{nonce:R&&R.nonce},B)},each:function(S,R){var B,U=0;if(P(S))for(B=S.length;U<B&&!1!==R.call(S[U],U,S[U]);U++);else for(U in S)if(!1===R.call(S[U],U,S[U]))break;return S},text:function(S){var R,B="",U=0,Z=S.nodeType;if(!Z)for(;R=S[U++];)B+=_.text(R);return 1===Z||11===Z?S.textContent:9===Z?S.documentElement.textContent:3===Z||4===Z?S.nodeValue:B},makeArray:function(S,R){var B=R||[];return null!=S&&(P(Object(S))?_.merge(B,"string"==typeof S?[S]:S):t.call(B,S)),B},inArray:function(S,R,B){return null==R?-1:s.call(R,S,B)},isXMLDoc:function(S){var B=S&&(S.ownerDocument||S).documentElement;return!O.test(S&&S.namespaceURI||B&&B.nodeName||"HTML")},merge:function(S,R){for(var B=+R.length,U=0,Z=S.length;U<B;U++)S[Z++]=R[U];return S.length=Z,S},grep:function(S,R,B){for(var U=[],Z=0,J=S.length,st=!B;Z<J;Z++)!R(S[Z],Z)!==st&&U.push(S[Z]);return U},map:function(S,R,B){var U,Z,J=0,st=[];if(P(S))for(U=S.length;J<U;J++)null!=(Z=R(S[J],J,B))&&st.push(Z);else for(J in S)null!=(Z=R(S[J],J,B))&&st.push(Z);return v(st)},guid:1,support:x}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=c[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(S,R){n["[object "+R+"]"]=R.toLowerCase()});var T=c.pop,L=c.sort,I=c.splice,F="[\\x20\\t\\r\\n\\f]",W=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g");_.contains=function(S,R){var B=R&&R.parentNode;return S===B||!(!B||1!==B.nodeType||!(S.contains?S.contains(B):S.compareDocumentPosition&&16&S.compareDocumentPosition(B)))};var q=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function et(S,R){return R?"\0"===S?"\ufffd":S.slice(0,-1)+"\\"+S.charCodeAt(S.length-1).toString(16)+" ":"\\"+S}_.escapeSelector=function(S){return(S+"").replace(q,et)};var X=w,it=t;!function(){var S,R,B,U,Z,J,st,vt,mt,_t,Dt=it,Lt=_.expando,Mt=0,Bt=0,re=Re(),he=Re(),de=Re(),Ae=Re(),Be=function(ht,xt){return ht===xt&&(Z=!0),0},rn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",sn="(?:\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ve="\\["+F+"*("+sn+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+sn+"))|)"+F+"*\\]",yn=":("+sn+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ve+")*)|.*)\\)|)",xe=new RegExp(F+"+","g"),Te=new RegExp("^"+F+"*,"+F+"*"),Dn=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),Xn=new RegExp(F+"|>"),an=new RegExp(yn),Tn=new RegExp("^"+sn+"$"),un={ID:new RegExp("^#("+sn+")"),CLASS:new RegExp("^\\.("+sn+")"),TAG:new RegExp("^("+sn+"|[*])"),ATTR:new RegExp("^"+ve),PSEUDO:new RegExp("^"+yn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+rn+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},fn=/^(?:input|select|textarea|button)$/i,Cn=/^h\d$/i,Ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,He=/[+~]/,Ne=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),Ge=function(ht,xt){var Pt="0x"+ht.slice(1)-65536;return xt||(Pt<0?String.fromCharCode(Pt+65536):String.fromCharCode(Pt>>10|55296,1023&Pt|56320))},pn=function(){gn()},Ye=zn(function(ht){return!0===ht.disabled&&A(ht,"fieldset")},{dir:"parentNode",next:"legend"});try{Dt.apply(c=a.call(X.childNodes),X.childNodes)}catch(ht){Dt={apply:function(xt,Pt){it.apply(xt,a.call(Pt))},call:function(xt){it.apply(xt,a.call(arguments,1))}}}function le(ht,xt,Pt,Rt){var It,te,ee,ie,Jt,_e,pe,ge=xt&&xt.ownerDocument,ye=xt?xt.nodeType:9;if(Pt=Pt||[],"string"!=typeof ht||!ht||1!==ye&&9!==ye&&11!==ye)return Pt;if(!Rt&&(gn(xt),xt=xt||J,vt)){if(11!==ye&&(Jt=Ve.exec(ht)))if(It=Jt[1]){if(9===ye){if(!(ee=xt.getElementById(It)))return Pt;if(ee.id===It)return Dt.call(Pt,ee),Pt}else if(ge&&(ee=ge.getElementById(It))&&le.contains(xt,ee)&&ee.id===It)return Dt.call(Pt,ee),Pt}else{if(Jt[2])return Dt.apply(Pt,xt.getElementsByTagName(ht)),Pt;if((It=Jt[3])&&xt.getElementsByClassName)return Dt.apply(Pt,xt.getElementsByClassName(It)),Pt}if(!(Ae[ht+" "]||mt&&mt.test(ht))){if(pe=ht,ge=xt,1===ye&&(Xn.test(ht)||Dn.test(ht))){for((ge=He.test(ht)&&$n(xt.parentNode)||xt)==xt&&x.scope||((ie=xt.getAttribute("id"))?ie=_.escapeSelector(ie):xt.setAttribute("id",ie=Lt)),te=(_e=An(ht)).length;te--;)_e[te]=(ie?"#"+ie:":scope")+" "+On(_e[te]);pe=_e.join(",")}try{return Dt.apply(Pt,ge.querySelectorAll(pe)),Pt}catch(ue){Ae(ht,!0)}finally{ie===Lt&&xt.removeAttribute("id")}}}return mi(ht.replace(W,"$1"),xt,Pt,Rt)}function Re(){var ht=[];return function xt(Pt,Rt){return ht.push(Pt+" ")>R.cacheLength&&delete xt[ht.shift()],xt[Pt+" "]=Rt}}function Le(ht){return ht[Lt]=!0,ht}function Se(ht){var xt=J.createElement("fieldset");try{return!!ht(xt)}catch(Pt){return!1}finally{xt.parentNode&&xt.parentNode.removeChild(xt),xt=null}}function on(ht){return function(xt){return A(xt,"input")&&xt.type===ht}}function Sn(ht){return function(xt){return(A(xt,"input")||A(xt,"button"))&&xt.type===ht}}function Nn(ht){return function(xt){return"form"in xt?xt.parentNode&&!1===xt.disabled?"label"in xt?"label"in xt.parentNode?xt.parentNode.disabled===ht:xt.disabled===ht:xt.isDisabled===ht||xt.isDisabled!==!ht&&Ye(xt)===ht:xt.disabled===ht:"label"in xt&&xt.disabled===ht}}function xn(ht){return Le(function(xt){return xt=+xt,Le(function(Pt,Rt){for(var It,te=ht([],Pt.length,xt),ee=te.length;ee--;)Pt[It=te[ee]]&&(Pt[It]=!(Rt[It]=Pt[It]))})})}function $n(ht){return ht&&void 0!==ht.getElementsByTagName&&ht}function gn(ht){var xt,Pt=ht?ht.ownerDocument||ht:X;return Pt!=J&&9===Pt.nodeType&&Pt.documentElement&&(st=(J=Pt).documentElement,vt=!_.isXMLDoc(J),_t=st.matches||st.webkitMatchesSelector||st.msMatchesSelector,st.msMatchesSelector&&X!=J&&(xt=J.defaultView)&&xt.top!==xt&&xt.addEventListener("unload",pn),x.getById=Se(function(Rt){return st.appendChild(Rt).id=_.expando,!J.getElementsByName||!J.getElementsByName(_.expando).length}),x.disconnectedMatch=Se(function(Rt){return _t.call(Rt,"*")}),x.scope=Se(function(){return J.querySelectorAll(":scope")}),x.cssHas=Se(function(){try{return J.querySelector(":has(*,:jqfake)"),!1}catch(Rt){return!0}}),x.getById?(R.filter.ID=function(Rt){var It=Rt.replace(Ne,Ge);return function(te){return te.getAttribute("id")===It}},R.find.ID=function(Rt,It){if(void 0!==It.getElementById&&vt){var te=It.getElementById(Rt);return te?[te]:[]}}):(R.filter.ID=function(Rt){var It=Rt.replace(Ne,Ge);return function(te){var ee=void 0!==te.getAttributeNode&&te.getAttributeNode("id");return ee&&ee.value===It}},R.find.ID=function(Rt,It){if(void 0!==It.getElementById&&vt){var te,ee,ie,Jt=It.getElementById(Rt);if(Jt){if((te=Jt.getAttributeNode("id"))&&te.value===Rt)return[Jt];for(ie=It.getElementsByName(Rt),ee=0;Jt=ie[ee++];)if((te=Jt.getAttributeNode("id"))&&te.value===Rt)return[Jt]}return[]}}),R.find.TAG=function(Rt,It){return void 0!==It.getElementsByTagName?It.getElementsByTagName(Rt):It.querySelectorAll(Rt)},R.find.CLASS=function(Rt,It){if(void 0!==It.getElementsByClassName&&vt)return It.getElementsByClassName(Rt)},mt=[],Se(function(Rt){var It;st.appendChild(Rt).innerHTML="<a id='"+Lt+"' href='' disabled='disabled'></a><select id='"+Lt+"-\r\\' disabled='disabled'><option selected=''></option></select>",Rt.querySelectorAll("[selected]").length||mt.push("\\["+F+"*(?:value|"+rn+")"),Rt.querySelectorAll("[id~="+Lt+"-]").length||mt.push("~="),Rt.querySelectorAll("a#"+Lt+"+*").length||mt.push(".#.+[+~]"),Rt.querySelectorAll(":checked").length||mt.push(":checked"),(It=J.createElement("input")).setAttribute("type","hidden"),Rt.appendChild(It).setAttribute("name","D"),st.appendChild(Rt).disabled=!0,2!==Rt.querySelectorAll(":disabled").length&&mt.push(":enabled",":disabled"),(It=J.createElement("input")).setAttribute("name",""),Rt.appendChild(It),Rt.querySelectorAll("[name='']").length||mt.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")")}),x.cssHas||mt.push(":has"),mt=mt.length&&new RegExp(mt.join("|")),Be=function(Rt,It){if(Rt===It)return Z=!0,0;var te=!Rt.compareDocumentPosition-!It.compareDocumentPosition;return te||(1&(te=(Rt.ownerDocument||Rt)==(It.ownerDocument||It)?Rt.compareDocumentPosition(It):1)||!x.sortDetached&&It.compareDocumentPosition(Rt)===te?Rt===J||Rt.ownerDocument==X&&le.contains(X,Rt)?-1:It===J||It.ownerDocument==X&&le.contains(X,It)?1:U?s.call(U,Rt)-s.call(U,It):0:4&te?-1:1)}),J}for(S in le.matches=function(ht,xt){return le(ht,null,null,xt)},le.matchesSelector=function(ht,xt){if(gn(ht),vt&&!Ae[xt+" "]&&(!mt||!mt.test(xt)))try{var Pt=_t.call(ht,xt);if(Pt||x.disconnectedMatch||ht.document&&11!==ht.document.nodeType)return Pt}catch(Rt){Ae(xt,!0)}return 0<le(xt,J,null,[ht]).length},le.contains=function(ht,xt){return(ht.ownerDocument||ht)!=J&&gn(ht),_.contains(ht,xt)},le.attr=function(ht,xt){(ht.ownerDocument||ht)!=J&&gn(ht);var Pt=R.attrHandle[xt.toLowerCase()],Rt=Pt&&u.call(R.attrHandle,xt.toLowerCase())?Pt(ht,xt,!vt):void 0;return void 0!==Rt?Rt:ht.getAttribute(xt)},le.error=function(ht){throw new Error("Syntax error, unrecognized expression: "+ht)},_.uniqueSort=function(ht){var xt,Pt=[],Rt=0,It=0;if(Z=!x.sortStable,U=!x.sortStable&&a.call(ht,0),L.call(ht,Be),Z){for(;xt=ht[It++];
vendor: 8,703 bytes, line 1
1)xt===ht[It]&&(Rt=Pt.push(It));for(;Rt--;)I.call(ht,Pt[Rt],1)}return U=null,ht},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(a.apply(this)))},(R=_.expr={cacheLength:50,createPseudo:Le,match:un,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(ht){return ht[1]=ht[1].replace(Ne,Ge),ht[3]=(ht[3]||ht[4]||ht[5]||"").replace(Ne,Ge),"~="===ht[2]&&(ht[3]=" "+ht[3]+" "),ht.slice(0,4)},CHILD:function(ht){return ht[1]=ht[1].toLowerCase(),"nth"===ht[1].slice(0,3)?(ht[3]||le.error(ht[0]),ht[4]=+(ht[4]?ht[5]+(ht[6]||1):2*("even"===ht[3]||"odd"===ht[3])),ht[5]=+(ht[7]+ht[8]||"odd"===ht[3])):ht[3]&&le.error(ht[0]),ht},PSEUDO:function(ht){var xt,Pt=!ht[6]&&ht[2];return un.CHILD.test(ht[0])?null:(ht[3]?ht[2]=ht[4]||ht[5]||"":Pt&&an.test(Pt)&&(xt=An(Pt,!0))&&(xt=Pt.indexOf(")",Pt.length-xt)-Pt.length)&&(ht[0]=ht[0].slice(0,xt),ht[2]=Pt.slice(0,xt)),ht.slice(0,3))}},filter:{TAG:function(ht){var xt=ht.replace(Ne,Ge).toLowerCase();return"*"===ht?function(){return!0}:function(Pt){return A(Pt,xt)}},CLASS:function(ht){var xt=re[ht+" "];return xt||(xt=new RegExp("(^|"+F+")"+ht+"("+F+"|$)"))&&re(ht,function(Pt){return xt.test("string"==typeof Pt.className&&Pt.className||void 0!==Pt.getAttribute&&Pt.getAttribute("class")||"")})},ATTR:function(ht,xt,Pt){return function(Rt){var It=le.attr(Rt,ht);return null==It?"!="===xt:!xt||(It+="","="===xt?It===Pt:"!="===xt?It!==Pt:"^="===xt?Pt&&0===It.indexOf(Pt):"*="===xt?Pt&&-1<It.indexOf(Pt):"$="===xt?Pt&&It.slice(-Pt.length)===Pt:"~="===xt?-1<(" "+It.replace(xe," ")+" ").indexOf(Pt):"|="===xt&&(It===Pt||It.slice(0,Pt.length+1)===Pt+"-"))}},CHILD:function(ht,xt,Pt,Rt,It){var te="nth"!==ht.slice(0,3),ee="last"!==ht.slice(-4),ie="of-type"===xt;return 1===Rt&&0===It?function(Jt){return!!Jt.parentNode}:function(Jt,_e,pe){var ge,ye,ue,Oe,qe,je=te!==ee?"nextSibling":"previousSibling",Xe=Jt.parentNode,Ze=ie&&Jt.nodeName.toLowerCase(),tn=!pe&&!ie,Ee=!1;if(Xe){if(te){for(;je;){for(ue=Jt;ue=ue[je];)if(ie?A(ue,Ze):1===ue.nodeType)return!1;qe=je="only"===ht&&!qe&&"nextSibling"}return!0}if(qe=[ee?Xe.firstChild:Xe.lastChild],ee&&tn){for(Ee=(Oe=(ge=(ye=Xe[Lt]||(Xe[Lt]={}))[ht]||[])[0]===Mt&&ge[1])&&ge[2],ue=Oe&&Xe.childNodes[Oe];ue=++Oe&&ue&&ue[je]||(Ee=Oe=0)||qe.pop();)if(1===ue.nodeType&&++Ee&&ue===Jt){ye[ht]=[Mt,Oe,Ee];break}}else if(tn&&(Ee=Oe=(ge=(ye=Jt[Lt]||(Jt[Lt]={}))[ht]||[])[0]===Mt&&ge[1]),!1===Ee)for(;(ue=++Oe&&ue&&ue[je]||(Ee=Oe=0)||qe.pop())&&(!(ie?A(ue,Ze):1===ue.nodeType)||!++Ee||(tn&&((ye=ue[Lt]||(ue[Lt]={}))[ht]=[Mt,Ee]),ue!==Jt)););return(Ee-=It)===Rt||Ee%Rt==0&&0<=Ee/Rt}}},PSEUDO:function(ht,xt){var Pt,Rt=R.pseudos[ht]||R.setFilters[ht.toLowerCase()]||le.error("unsupported pseudo: "+ht);return Rt[Lt]?Rt(xt):1<Rt.length?(Pt=[ht,ht,"",xt],R.setFilters.hasOwnProperty(ht.toLowerCase())?Le(function(It,te){for(var ee,ie=Rt(It,xt),Jt=ie.length;Jt--;)It[ee=s.call(It,ie[Jt])]=!(te[ee]=ie[Jt])}):function(It){return Rt(It,0,Pt)}):Rt}},pseudos:{not:Le(function(ht){var xt=[],Pt=[],Rt=Qn(ht.replace(W,"$1"));return Rt[Lt]?Le(function(It,te,ee,ie){for(var Jt,_e=Rt(It,null,ie,[]),pe=It.length;pe--;)(Jt=_e[pe])&&(It[pe]=!(te[pe]=Jt))}):function(It,te,ee){return xt[0]=It,Rt(xt,null,ee,Pt),xt[0]=null,!Pt.pop()}}),has:Le(function(ht){return function(xt){return 0<le(ht,xt).length}}),contains:Le(function(ht){return ht=ht.replace(Ne,Ge),function(xt){return-1<(xt.textContent||_.text(xt)).indexOf(ht)}}),lang:Le(function(ht){return Tn.test(ht||"")||le.error("unsupported lang: "+ht),ht=ht.replace(Ne,Ge).toLowerCase(),function(xt){var Pt;do{if(Pt=vt?xt.lang:xt.getAttribute("xml:lang")||xt.getAttribute("lang"))return(Pt=Pt.toLowerCase())===ht||0===Pt.indexOf(ht+"-")}while((xt=xt.parentNode)&&1===xt.nodeType);return!1}}),target:function(ht){var xt=h.location&&h.location.hash;return xt&&xt.slice(1)===ht.id},root:function(ht){return ht===st},focus:function(ht){return ht===function(){try{return J.activeElement}catch(xt){}}()&&J.hasFocus()&&!!(ht.type||ht.href||~ht.tabIndex)},enabled:Nn(!1),disabled:Nn(!0),checked:function(ht){return A(ht,"input")&&!!ht.checked||A(ht,"option")&&!!ht.selected},selected:function(ht){return!0===ht.selected},empty:function(ht){for(ht=ht.firstChild;ht;ht=ht.nextSibling)if(ht.nodeType<6)return!1;return!0},parent:function(ht){return!R.pseudos.empty(ht)},header:function(ht){return Cn.test(ht.nodeName)},input:function(ht){return fn.test(ht.nodeName)},button:function(ht){return A(ht,"input")&&"button"===ht.type||A(ht,"button")},text:function(ht){var xt;return A(ht,"input")&&"text"===ht.type&&(null==(xt=ht.getAttribute("type"))||"text"===xt.toLowerCase())},first:xn(function(){return[0]}),last:xn(function(ht,xt){return[xt-1]}),eq:xn(function(ht,xt,Pt){return[Pt<0?Pt+xt:Pt]}),even:xn(function(ht,xt){for(var Pt=0;Pt<xt;Pt+=2)ht.push(Pt);return ht}),odd:xn(function(ht,xt){for(var Pt=1;Pt<xt;Pt+=2)ht.push(Pt);return ht}),lt:xn(function(ht,xt,Pt){var Rt;for(Rt=Pt<0?Pt+xt:xt<Pt?xt:Pt;0<=--Rt;)ht.push(Rt);return ht}),gt:xn(function(ht,xt,Pt){for(var Rt=Pt<0?Pt+xt:Pt;++Rt<xt;)ht.push(Rt);return ht})}}).pseudos.nth=R.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})R.pseudos[S]=on(S);for(S in{submit:!0,reset:!0})R.pseudos[S]=Sn(S);function gi(){}function An(ht,xt){var Pt,Rt,It,te,ee,ie,Jt,_e=he[ht+" "];if(_e)return xt?0:_e.slice(0);for(ee=ht,ie=[],Jt=R.preFilter;ee;){for(te in Pt&&!(Rt=Te.exec(ee))||(Rt&&(ee=ee.slice(Rt[0].length)||ee),ie.push(It=[])),Pt=!1,(Rt=Dn.exec(ee))&&(Pt=Rt.shift(),It.push({value:Pt,type:Rt[0].replace(W," ")}),ee=ee.slice(Pt.length)),R.filter)!(Rt=un[te].exec(ee))||Jt[te]&&!(Rt=Jt[te](Rt))||(Pt=Rt.shift(),It.push({value:Pt,type:te,matches:Rt}),ee=ee.slice(Pt.length));if(!Pt)break}return xt?ee.length:ee?le.error(ht):he(ht,ie).slice(0)}function On(ht){for(var xt=0,Pt=ht.length,Rt="";xt<Pt;xt++)Rt+=ht[xt].value;return Rt}function zn(ht,xt,Pt){var Rt=xt.dir,It=xt.next,te=It||Rt,ee=Pt&&"parentNode"===te,ie=Bt++;return xt.first?function(Jt,_e,pe){for(;Jt=Jt[Rt];)if(1===Jt.nodeType||ee)return ht(Jt,_e,pe);return!1}:function(Jt,_e,pe){var ge,ye,ue=[Mt,ie];if(pe){for(;Jt=Jt[Rt];)if((1===Jt.nodeType||ee)&&ht(Jt,_e,pe))return!0}else for(;Jt=Jt[Rt];)if(1===Jt.nodeType||ee)if(ye=Jt[Lt]||(Jt[Lt]={}),It&&A(Jt,It))Jt=Jt[Rt]||Jt;else{if((ge=ye[te])&&ge[0]===Mt&&ge[1]===ie)return ue[2]=ge[2];if((ye[te]=ue)[2]=ht(Jt,_e,pe))return!0}return!1}}function Zn(ht){return 1<ht.length?function(xt,Pt,Rt){for(var It=ht.length;It--;)if(!ht[It](xt,Pt,Rt))return!1;return!0}:ht[0]}function In(ht,xt,Pt,Rt,It){for(var te,ee=[],ie=0,Jt=ht.length,_e=null!=xt;ie<Jt;ie++)(te=ht[ie])&&(Pt&&!Pt(te,Rt,It)||(ee.push(te),_e&&xt.push(ie)));return ee}function Vn(ht,xt,Pt,Rt,It,te){return Rt&&!Rt[Lt]&&(Rt=Vn(Rt)),It&&!It[Lt]&&(It=Vn(It,te)),Le(function(ee,ie,Jt,_e){var pe,ge,ye,ue,Oe=[],qe=[],je=ie.length,Xe=ee||function(tn,Ee,bn){for(var en=0,Bn=Ee.length;en<Bn;en++)le(tn,Ee[en],bn);return bn}(xt||"*",Jt.nodeType?[Jt]:Jt,[]),Ze=!ht||!ee&&xt?Xe:In(Xe,Oe,ht,Jt,_e);if(Pt?Pt(Ze,ue=It||(ee?ht:je||Rt)?[]:ie,Jt,_e):ue=Ze,Rt)for(pe=In(ue,qe),Rt(pe,[],Jt,_e),ge=pe.length;ge--;)(ye=pe[ge])&&(ue[qe[ge]]=!(Ze[qe[ge]]=ye));if(ee){if(It||ht){if(It){for(pe=[],ge=ue.length;ge--;)(ye=ue[ge])&&pe.push(Ze[ge]=ye);It(null,ue=[],pe,_e)}for(ge=ue.length;ge--;)(ye=ue[ge])&&-1<(pe=It?s.call(ee,ye):Oe[ge])&&(ee[pe]=!(ie[pe]=ye))}}else ue=In(ue===ie?ue.splice(je,ue.length):ue),It?It(null,ie,ue,_e):Dt.apply(ie,ue)})}function Jn(ht){for(var xt,Pt,Rt,It=ht.length,te=R.relative[ht[0].type],ee=te||R.relative[" "],ie=te?1:0,Jt=zn(function(ge){return ge===xt},ee,!0),_e=zn(function(ge){return-1<s.call(xt,ge)},ee,!0),pe=[function(ge,ye,ue){var Oe=!te&&(ue||ye!=B)||((xt=ye).nodeType?Jt(ge,ye,ue):_e(ge,ye,ue));return xt=null,Oe}];ie<It;ie++)if(Pt=R.relative[ht[ie].type])pe=[zn(Zn(pe),Pt)];else{if((Pt=R.filter[ht[ie].type].apply(null,ht[ie].matches))[Lt]){for(Rt=++ie;Rt<It&&!R.relative[ht[Rt].type];Rt++);return Vn(1<ie&&Zn(pe),1<ie&&On(ht.slice(0,ie-1).concat({value:" "===ht[ie-2].type?"*":""})).replace(W,"$1"),Pt,ie<Rt&&Jn(ht.slice(ie,Rt)),Rt<It&&Jn(ht=ht.slice(Rt)),Rt<It&&On(ht))}pe.push(Pt)}return Zn(pe)}function Qn(ht,xt){var Pt,Rt,It,te,ee,ie,Jt=[],_e=[],pe=de[ht+" "];if(!pe){for(xt||(xt=An(ht)),Pt=xt.length;Pt--;)(pe=Jn(xt[Pt]))[Lt]?Jt.push(pe):_e.push(pe);(pe=de(ht,(Rt=_e,te=0<(It=Jt).length,ee=0<Rt.length,ie=function(ge,ye,ue,Oe,qe){var je,Xe,Ze,tn=0,Ee="0",bn=ge&&[],en=[],Bn=B,vi=ge||ee&&R.find.TAG("*",qe),yi=Mt+=null==Bn?1:Math.random()||.1,Ii=vi.length;for(qe&&(B=ye==J||ye||qe);Ee!==Ii&&null!=(je=vi[Ee]);Ee++){if(ee&&je){for(Xe=0,ye||je.ownerDocument==J||(gn(je),ue=!vt);Ze=Rt[Xe++];)if(Ze(je,ye||J,ue)){Dt.call(Oe,je);break}qe&&(Mt=yi)}
vendor: 7,622 bytes, line 1
1te&&((je=!Ze&&je)&&tn--,ge&&bn.push(je))}if(tn+=Ee,te&&Ee!==tn){for(Xe=0;Ze=It[Xe++];)Ze(bn,en,ye,ue);if(ge){if(0<tn)for(;Ee--;)bn[Ee]||en[Ee]||(en[Ee]=T.call(Oe));en=In(en)}Dt.apply(Oe,en),qe&&!ge&&0<en.length&&1<tn+It.length&&_.uniqueSort(Oe)}return qe&&(Mt=yi,B=Bn),bn},te?Le(ie):ie))).selector=ht}return pe}function mi(ht,xt,Pt,Rt){var It,te,ee,ie,Jt,_e="function"==typeof ht&&ht,pe=!Rt&&An(ht=_e.selector||ht);if(Pt=Pt||[],1===pe.length){if(2<(te=pe[0]=pe[0].slice(0)).length&&"ID"===(ee=te[0]).type&&9===xt.nodeType&&vt&&R.relative[te[1].type]){if(!(xt=(R.find.ID(ee.matches[0].replace(Ne,Ge),xt)||[])[0]))return Pt;_e&&(xt=xt.parentNode),ht=ht.slice(te.shift().value.length)}for(It=un.needsContext.test(ht)?0:te.length;It--&&!R.relative[ie=(ee=te[It]).type];)if((Jt=R.find[ie])&&(Rt=Jt(ee.matches[0].replace(Ne,Ge),He.test(te[0].type)&&$n(xt.parentNode)||xt))){if(te.splice(It,1),!(ht=Rt.length&&On(te)))return Dt.apply(Pt,Rt),Pt;break}}return(_e||Qn(ht,pe))(Rt,xt,!vt,Pt,!xt||He.test(ht)&&$n(xt.parentNode)||xt),Pt}gi.prototype=R.filters=R.pseudos,R.setFilters=new gi,x.sortStable=Lt.split("").sort(Be).join("")===Lt,gn(),x.sortDetached=Se(function(ht){return 1&ht.compareDocumentPosition(J.createElement("fieldset"))}),_.find=le,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,le.compile=Qn,le.select=mi,le.setDocument=gn,le.tokenize=An,le.escape=_.escapeSelector,le.getText=_.text,le.isXML=_.isXMLDoc,le.selectors=_.expr,le.support=_.support,le.uniqueSort=_.uniqueSort}();var z=function(S,R,B){for(var U=[],Z=void 0!==B;(S=S[R])&&9!==S.nodeType;)if(1===S.nodeType){if(Z&&_(S).is(B))break;U.push(S)}return U},j=function(S,R){for(var B=[];S;S=S.nextSibling)1===S.nodeType&&S!==R&&B.push(S);return B},tt=_.expr.match.needsContext,at=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ct(S,R,B){return m(R)?_.grep(S,function(U,Z){return!!R.call(U,Z,U)!==B}):R.nodeType?_.grep(S,function(U){return U===R!==B}):"string"!=typeof R?_.grep(S,function(U){return-1<s.call(R,U)!==B}):_.filter(R,S,B)}_.filter=function(S,R,B){var U=R[0];return B&&(S=":not("+S+")"),1===R.length&&1===U.nodeType?_.find.matchesSelector(U,S)?[U]:[]:_.find.matches(S,_.grep(R,function(Z){return 1===Z.nodeType}))},_.fn.extend({find:function(S){var R,B,U=this.length,Z=this;if("string"!=typeof S)return this.pushStack(_(S).filter(function(){for(R=0;R<U;R++)if(_.contains(Z[R],this))return!0}));for(B=this.pushStack([]),R=0;R<U;R++)_.find(S,Z[R],B);return 1<U?_.uniqueSort(B):B},filter:function(S){return this.pushStack(ct(this,S||[],!1))},not:function(S){return this.pushStack(ct(this,S||[],!0))},is:function(S){return!!ct(this,"string"==typeof S&&tt.test(S)?_(S):S||[],!1).length}});var ut,rt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(S,R,B){var U,Z;if(!S)return this;if(B=B||ut,"string"==typeof S){if(!(U="<"===S[0]&&">"===S[S.length-1]&&3<=S.length?[null,S,null]:rt.exec(S))||!U[1]&&R)return!R||R.jquery?(R||B).find(S):this.constructor(R).find(S);if(U[1]){if(_.merge(this,_.parseHTML(U[1],(R=R instanceof _?R[0]:R)&&R.nodeType?R.ownerDocument||R:w,!0)),at.test(U[1])&&_.isPlainObject(R))for(U in R)m(this[U])?this[U](R[U]):this.attr(U,R[U]);return this}return(Z=w.getElementById(U[2]))&&(this[0]=Z,this.length=1),this}return S.nodeType?(this[0]=S,this.length=1,this):m(S)?void 0!==B.ready?B.ready(S):S(_):_.makeArray(S,this)}).prototype=_.fn,ut=_(w);var lt=/^(?:parents|prev(?:Until|All))/,ft={children:!0,contents:!0,next:!0,prev:!0};function kt(S,R){for(;(S=S[R])&&1!==S.nodeType;);return S}_.fn.extend({has:function(S){var R=_(S,this),B=R.length;return this.filter(function(){for(var U=0;U<B;U++)if(_.contains(this,R[U]))return!0})},closest:function(S,R){var B,U=0,Z=this.length,J=[],st="string"!=typeof S&&_(S);if(!tt.test(S))for(;U<Z;U++)for(B=this[U];B&&B!==R;B=B.parentNode)if(B.nodeType<11&&(st?-1<st.index(B):1===B.nodeType&&_.find.matchesSelector(B,S))){J.push(B);break}return this.pushStack(1<J.length?_.uniqueSort(J):J)},index:function(S){return S?"string"==typeof S?s.call(_(S),this[0]):s.call(this,S.jquery?S[0]:S):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(S,R){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(S,R))))},addBack:function(S){return this.add(null==S?this.prevObject:this.prevObject.filter(S))}}),_.each({parent:function(S){var R=S.parentNode;return R&&11!==R.nodeType?R:null},parents:function(S){return z(S,"parentNode")},parentsUntil:function(S,R,B){return z(S,"parentNode",B)},next:function(S){return kt(S,"nextSibling")},prev:function(S){return kt(S,"previousSibling")},nextAll:function(S){return z(S,"nextSibling")},prevAll:function(S){return z(S,"previousSibling")},nextUntil:function(S,R,B){return z(S,"nextSibling",B)},prevUntil:function(S,R,B){return z(S,"previousSibling",B)},siblings:function(S){return j((S.parentNode||{}).firstChild,S)},children:function(S){return j(S.firstChild)},contents:function(S){return null!=S.contentDocument&&d(S.contentDocument)?S.contentDocument:(A(S,"template")&&(S=S.content||S),_.merge([],S.childNodes))}},function(S,R){_.fn[S]=function(B,U){var Z=_.map(this,R,B);return"Until"!==S.slice(-5)&&(U=B),U&&"string"==typeof U&&(Z=_.filter(U,Z)),1<this.length&&(ft[S]||_.uniqueSort(Z),lt.test(S)&&Z.reverse()),this.pushStack(Z)}});var wt=/[^\x20\t\r\n\f]+/g;function Nt(S){return S}function Yt(S){throw S}function Qt(S,R,B,U){var Z;try{S&&m(Z=S.promise)?Z.call(S).done(R).fail(B):S&&m(Z=S.then)?Z.call(S,R,B):R.apply(void 0,[S].slice(U))}catch(J){B.apply(void 0,[J])}}_.Callbacks=function(S){var B;S="string"==typeof S?(B={},_.each(S.match(wt)||[],function(Mt,Bt){B[Bt]=!0}),B):_.extend({},S);var U,Z,J,st,vt=[],mt=[],_t=-1,Dt=function(){for(st=st||S.once,J=U=!0;mt.length;_t=-1)for(Z=mt.shift();++_t<vt.length;)!1===vt[_t].apply(Z[0],Z[1])&&S.stopOnFalse&&(_t=vt.length,Z=!1);S.memory||(Z=!1),U=!1,st&&(vt=Z?[]:"")},Lt={add:function(){return vt&&(Z&&!U&&(_t=vt.length-1,mt.push(Z)),function Mt(Bt){_.each(Bt,function(re,he){m(he)?S.unique&&Lt.has(he)||vt.push(he):he&&he.length&&"string"!==M(he)&&Mt(he)})}(arguments),Z&&!U&&Dt()),this},remove:function(){return _.each(arguments,function(Mt,Bt){for(var re;-1<(re=_.inArray(Bt,vt,re));)vt.splice(re,1),re<=_t&&_t--}),this},has:function(Mt){return Mt?-1<_.inArray(Mt,vt):0<vt.length},empty:function(){return vt&&(vt=[]),this},disable:function(){return st=mt=[],vt=Z="",this},disabled:function(){return!vt},lock:function(){return st=mt=[],Z||U||(vt=Z=""),this},locked:function(){return!!st},fireWith:function(Mt,Bt){return st||(Bt=[Mt,(Bt=Bt||[]).slice?Bt.slice():Bt],mt.push(Bt),U||Dt()),this},fire:function(){return Lt.fireWith(this,arguments),this},fired:function(){return!!J}};return Lt},_.extend({Deferred:function(S){var R=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],B="pending",U={state:function(){return B},always:function(){return Z.done(arguments).fail(arguments),this},catch:function(J){return U.then(null,J)},pipe:function(){var J=arguments;return _.Deferred(function(st){_.each(R,function(vt,mt){var _t=m(J[mt[4]])&&J[mt[4]];Z[mt[1]](function(){var Dt=_t&&_t.apply(this,arguments);Dt&&m(Dt.promise)?Dt.promise().progress(st.notify).done(st.resolve).fail(st.reject):st[mt[0]+"With"](this,_t?[Dt]:arguments)})}),J=null}).promise()},then:function(J,st,vt){var mt=0;function _t(Dt,Lt,Mt,Bt){return function(){var re=this,he=arguments,de=function(){var Be,rn;if(!(Dt<mt)){if((Be=Mt.apply(re,he))===Lt.promise())throw new TypeError("Thenable self
1-resolution");m(rn=Be&&("object"==typeof Be||"function"==typeof Be)&&Be.then)?Bt?rn.call(Be,_t(mt,Lt,Nt,Bt),_t(mt,Lt,Yt,Bt)):(mt++,rn.call(Be,_t(mt,Lt,Nt,Bt),_t(mt,Lt,Yt,Bt),_t(mt,Lt,Nt,Lt.notifyWith))):(Mt!==Nt&&(re=void 0,he=[Be]),(Bt||Lt.resolveWith)(re,he))}},Ae=Bt?de:function(){try{de()}catch(Be){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(Be,Ae.error),mt<=Dt+1&&(Mt!==Yt&&(re=void 0,he=[Be]),Lt.rejectWith(re,he))}};Dt?Ae():(_.Deferred.getErrorHook?Ae.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(Ae.error=_.Deferred.getStackHook()),h.setTimeout(Ae))}}return _.Deferred(function(Dt){R[0][3].add(_t(0,Dt,m(vt)?vt:Nt,Dt.notifyWith)),R[1][3].add(_t(0,Dt,m(J)?J:Nt)),R[2][3].add(_t(0,Dt,m(st)?st:Yt))}).promise()},promise:function(J){return null!=J?_.extend(J,U):U}},Z={};return _.each(R,function(J,st){var vt=st[2],mt=st[5];U[st[1]]=vt.add,mt&&vt.add(function(){B=mt},R[3-J][2].disable,R[3-J][3].disable,R[0][2].lock,R[0][3].lock),vt.add(st[3].fire),Z[st[0]]=function(){return Z[st[0]+"With"](this===Z?void 0:this,arguments),this},Z[st[0]+"With"]=vt.fireWith}),U.promise(Z),S&&S.call(Z,Z),Z},when:function(S){var R=arguments.length,B=R,U=Array(B),Z=a.call(arguments),J=_.Deferred(),st=function(vt){return function(mt){U[vt]=this,Z[vt]=1<arguments.length?a.call(arguments):mt,--R||J.resolveWith(U,Z)}};if(R<=1&&(Qt(S,J.done(st(B)).resolve,J.reject,!R),"pending"===J.state()||m(Z[B]&&Z[B].then)))return J.then();for(;B--;)Qt(Z[B],st(B),J.reject);return J.promise()}});var $t=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(S,R){h.console&&h.console.warn&&S&&$t.test(S.name)&&h.console.warn("jQuery.Deferred exception: "+S.message,S.stack,R)},_.readyException=function(S){h.setTimeout(function(){throw S})};var ce=_.Deferred();function fe(){w.removeEventListener("DOMContentLoaded",fe),h.removeEventListener("load",fe),_.ready()}_.fn.ready=function(S){return ce.then(S).catch(function(R){_.readyException(R)}),this},_.extend({isReady:!1,readyWait:1,ready:function(S){(!0===S?--_.readyWait:_.isReady)||(_.isReady=!0)!==S&&0<--_.readyWait||ce.resolveWith(w,[_])}}),_.ready.then=ce.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?h.setTimeout(_.ready):(w.addEventListener("DOMContentLoaded",fe),h.addEventListener("load",fe));var qt=function(S,R,B,U,Z,J,st){var vt=0,mt=S.length,_t=null==B;if("object"===M(B))for(vt in Z=!0,B)qt(S,R,vt,B[vt],!0,J,st);else if(void 0!==U&&(Z=!0,m(U)||(st=!0),_t&&(st?(R.call(S,U),R=null):(_t=R,R=function(Dt,Lt,Mt){return _t.call(_(Dt),Mt)})),R))for(;vt<mt;vt++)R(S[vt],B,st?U:U.call(S[vt],vt,R(S[vt],B)));return Z?S:_t?R.call(S):mt?R(S[0],B):J},Ct=/^-ms-/,Tt=/-([a-z])/g;function jt(S,R){return R.toUpperCase()}function Ut(S){return S.replace(Ct,"ms-").replace(Tt,jt)}var Kt=function(S){return 1===S.nodeType||9===S.nodeType||!+S.nodeType};function ne(){this.expando=_.expando+ne.uid++}ne.uid=1,ne.prototype={cache:function(S){var R=S[this.expando];return R||(R={},Kt(S)&&(S.nodeType?S[this.expando]=R:Object.defineProperty(S,this.expando,{value:R,configurable:!0}))),R},set:function(S,R,B){var U,Z=this.cache(S);if("string"==typeof R)Z[Ut(R)]=B;else for(U in R)Z[Ut(U)]=R[U];return Z},get:function(S,R){return void 0===R?this.cache(S):S[this.expando]&&S[this.expando][Ut(R)]},access:function(S,R,B){return void 0===R||R&&"string"==typeof R&&void 0===B?this.get(S,R):(this.set(S,R,B),void 0!==B?B:R)},remove:function(S,R){var B,U=S[this.expando];if(void 0!==U){if(void 0!==R)for((B=(R=Array.isArray(R)?R.map(Ut):(R=Ut(R))in U?[R]:R.match(wt)||[]).length);B--;)delete U[R[B]];(void 0===R||_.isEmptyObject(U))&&(S.nodeType?S[this.expando]=void 0:delete S[this.expando])}},hasData:function(S){var R=S[this.expando];return void 0!==R&&!_.isEmptyObject(R)}};var zt=new ne,Vt=new ne,ke=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,me=/[A-Z]/g;function be(S,R,B){var U,Z;if(void 0===B&&1===S.nodeType)if(U="data-"+R.replace(me,"-$&").toLowerCase(),"string"==typeof(B=S.getAttribute(U))){try{B="true"===(Z=B)||"false"!==Z&&("null"===Z?null:Z===+Z+""?+Z:ke.test(Z)?JSON.parse(Z):Z)}catch(J){}Vt.set(S,R,B)}else B=void 0;return B}_.extend({hasData:function(S){return Vt.hasData(S)||zt.hasData(S)},data:function(S,R,B){return Vt.access(S,R,B)},removeData:function(S,R){Vt.remove(S,R)},_data:function(S,R,B){return zt.access(S,R,B)},_removeData:function(S,R){zt.remove(S,R)}}),_.fn.extend({data:function(S,R){var B,U,Z,J=this[0],st=J&&J.attributes;if(void 0===S){if(this.length&&(Z=Vt.get(J),1===J.nodeType&&!zt.get(J,"hasDataAttrs"))){for(B=st.length;B--;)st[B]&&0===(U=st[B].name).indexOf("data-")&&(U=Ut(U.slice(5)),be(J,U,Z[U]));zt.set(J,"hasDataAttrs",!0)}return Z}return"object"==typeof S?this.each(function(){Vt.set(this,S)}):qt(this,function(vt){var mt;if(J&&void 0===vt)return void 0!==(mt=Vt.get(J,S))||void 0!==(mt=be(J,S))?mt:void 0;this.each(function(){Vt.set(this,S,vt)})},null,R,1<arguments.length,null,!0)},removeData:function(S){return this.each(function(){Vt.remove(this,S)})}}),_.extend({queue:function(S,R,B){var U;if(S)return U=zt.get(S,R=(R||"fx")+"queue"),B&&(!U||Array.isArray(B)?U=zt.access(S,R,_.makeArray(B)):U.push(B)),U||[]},dequeue:function(S,R){var B=_.queue(S,R=R||"fx"),U=B.length,Z=B.shift(),J=_._queueHooks(S,R);
vendor: 11,130 bytes, line 1
1"inprogress"===Z&&(Z=B.shift(),U--),Z&&("fx"===R&&B.unshift("inprogress"),delete J.stop,Z.call(S,function(){_.dequeue(S,R)},J)),!U&&J&&J.empty.fire()},_queueHooks:function(S,R){var B=R+"queueHooks";return zt.get(S,B)||zt.access(S,B,{empty:_.Callbacks("once memory").add(function(){zt.remove(S,[R+"queue",B])})})}}),_.fn.extend({queue:function(S,R){var B=2;return"string"!=typeof S&&(R=S,S="fx",B--),arguments.length<B?_.queue(this[0],S):void 0===R?this:this.each(function(){var U=_.queue(this,S,R);_._queueHooks(this,S),"fx"===S&&"inprogress"!==U[0]&&_.dequeue(this,S)})},dequeue:function(S){return this.each(function(){_.dequeue(this,S)})},clearQueue:function(S){return this.queue(S||"fx",[])},promise:function(S,R){var B,U=1,Z=_.Deferred(),J=this,st=this.length,vt=function(){--U||Z.resolveWith(J,[J])};for("string"!=typeof S&&(R=S,S=void 0),S=S||"fx";st--;)(B=zt.get(J[st],S+"queueHooks"))&&B.empty&&(U++,B.empty.add(vt));return vt(),Z.promise(R)}});var Me=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Fe=new RegExp("^(?:([+-])=|)("+Me+")([a-z%]*)$","i"),o=["Top","Right","Bottom","Left"],f=w.documentElement,b=function(S){return _.contains(S.ownerDocument,S)},E={composed:!0};f.getRootNode&&(b=function(S){return _.contains(S.ownerDocument,S)||S.getRootNode(E)===S.ownerDocument});var D=function(S,R){return"none"===(S=R||S).style.display||""===S.style.display&&b(S)&&"none"===_.css(S,"display")};function H(S,R,B,U){var Z,J,st=20,vt=U?function(){return U.cur()}:function(){return _.css(S,R,"")},mt=vt(),_t=B&&B[3]||(_.cssNumber[R]?"":"px"),Dt=S.nodeType&&(_.cssNumber[R]||"px"!==_t&&+mt)&&Fe.exec(_.css(S,R));if(Dt&&Dt[3]!==_t){for(_t=_t||Dt[3],Dt=+(mt/=2)||1;st--;)_.style(S,R,Dt+_t),(1-J)*(1-(J=vt()/mt||.5))<=0&&(st=0),Dt/=J;_.style(S,R,(Dt*=2)+_t),B=B||[]}return B&&(Dt=+Dt||+mt||0,Z=B[1]?Dt+(B[1]+1)*B[2]:+B[2],U&&(U.unit=_t,U.start=Dt,U.end=Z)),Z}var Y={};function nt(S,R){for(var B,U,Z,J,st,vt,mt,_t=[],Dt=0,Lt=S.length;Dt<Lt;Dt++)(U=S[Dt]).style&&(B=U.style.display,R?("none"===B&&(_t[Dt]=zt.get(U,"display")||null,_t[Dt]||(U.style.display="")),""===U.style.display&&D(U)&&(_t[Dt]=(mt=st=J=void 0,st=(Z=U).ownerDocument,(mt=Y[vt=Z.nodeName])||(J=st.body.appendChild(st.createElement(vt)),mt=_.css(J,"display"),J.parentNode.removeChild(J),"none"===mt&&(mt="block"),Y[vt]=mt)))):"none"!==B&&(_t[Dt]="none",zt.set(U,"display",B)));for(Dt=0;Dt<Lt;Dt++)null!=_t[Dt]&&(S[Dt].style.display=_t[Dt]);return S}_.fn.extend({show:function(){return nt(this,!0)},hide:function(){return nt(this)},toggle:function(S){return"boolean"==typeof S?S?this.show():this.hide():this.each(function(){D(this)?_(this).show():_(this).hide()})}});var ot,K,G=/^(?:checkbox|radio)$/i,Q=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i;ot=w.createDocumentFragment().appendChild(w.createElement("div")),(K=w.createElement("input")).setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),ot.appendChild(K),x.checkClone=ot.cloneNode(!0).cloneNode(!0).lastChild.checked,ot.innerHTML="<textarea>x</textarea>",x.noCloneChecked=!!ot.cloneNode(!0).lastChild.defaultValue,ot.innerHTML="<option></option>",x.option=!!ot.lastChild;var bt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ht(S,R){var B;return B=void 0!==S.getElementsByTagName?S.getElementsByTagName(R||"*"):void 0!==S.querySelectorAll?S.querySelectorAll(R||"*"):[],void 0===R||R&&A(S,R)?_.merge([S],B):B}function Ft(S,R){for(var B=0,U=S.length;B<U;B++)zt.set(S[B],"globalEval",!R||zt.get(R[B],"globalEval"))}bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,x.option||(bt.optgroup=bt.option=[1,"<select multiple='multiple'>","</select>"]);var V=/<|&#?\w+;/;function dt(S,R,B,U,Z){for(var J,st,vt,mt,_t,Dt,Lt=R.createDocumentFragment(),Mt=[],Bt=0,re=S.length;Bt<re;Bt++)if((J=S[Bt])||0===J)if("object"===M(J))_.merge(Mt,J.nodeType?[J]:J);else if(V.test(J)){for(st=st||Lt.appendChild(R.createElement("div")),vt=(Q.exec(J)||["",""])[1].toLowerCase(),st.innerHTML=(mt=bt[vt]||bt._default)[1]+_.htmlPrefilter(J)+mt[2],Dt=mt[0];Dt--;)st=st.lastChild;_.merge(Mt,st.childNodes),(st=Lt.firstChild).textContent=""}else Mt.push(R.createTextNode(J));for(Lt.textContent="",Bt=0;J=Mt[Bt++];)if(U&&-1<_.inArray(J,U))Z&&Z.push(J);else if(_t=b(J),st=Ht(Lt.appendChild(J),"script"),_t&&Ft(st),B)for(Dt=0;J=st[Dt++];)pt.test(J.type||"")&&B.push(J);return Lt}var gt=/^([^.]*)(?:\.(.+)|)/;function yt(){return!0}function St(){return!1}function Et(S,R,B,U,Z,J){var st,vt;if("object"==typeof R){for(vt in"string"!=typeof B&&(U=U||B,B=void 0),R)Et(S,vt,B,U,R[vt],J);return S}if(null==U&&null==Z?(Z=B,U=B=void 0):null==Z&&("string"==typeof B?(Z=U,U=void 0):(Z=U,U=B,B=void 0)),!1===Z)Z=St;else if(!Z)return S;return 1===J&&(st=Z,(Z=function(mt){return _().off(mt),st.apply(this,arguments)}).guid=st.guid||(st.guid=_.guid++)),S.each(function(){_.event.add(this,R,Z,U,B)})}function At(S,R,B){B?(zt.set(S,R,!1),_.event.add(S,R,{namespace:!1,handler:function(U){var Z,J=zt.get(this,R);if(1&U.isTrigger&&this[R]){if(J)(_.event.special[R]||{}).delegateType&&U.stopPropagation();else if(J=a.call(arguments),zt.set(this,R,J),this[R](),Z=zt.get(this,R),zt.set(this,R,!1),J!==Z)return U.stopImmediatePropagation(),U.preventDefault(),Z}else J&&(zt.set(this,R,_.event.trigger(J[0],J.slice(1),this)),U.stopPropagation(),U.isImmediatePropagationStopped=yt)}})):void 0===zt.get(S,R)&&_.event.add(S,R,yt)}_.event={global:{},add:function(S,R,B,U,Z){var J,st,vt,mt,_t,Dt,Lt,Mt,Bt,re,he,de=zt.get(S);if(Kt(S))for(B.handler&&(B=(J=B).handler,Z=J.selector),Z&&_.find.matchesSelector(f,Z),B.guid||(B.guid=_.guid++),(mt=de.events)||(mt=de.events=Object.create(null)),(st=de.handle)||(st=de.handle=function(Ae){return void 0!==_&&_.event.triggered!==Ae.type?_.event.dispatch.apply(S,arguments):void 0}),_t=(R=(R||"").match(wt)||[""]).length;_t--;)Bt=he=(vt=gt.exec(R[_t])||[])[1],re=(vt[2]||"").split(".").sort(),Bt&&(Lt=_.event.special[Bt]||{},Lt=_.event.special[Bt=(Z?Lt.delegateType:Lt.bindType)||Bt]||{},Dt=_.extend({type:Bt,origType:he,data:U,handler:B,guid:B.guid,selector:Z,needsContext:Z&&_.expr.match.needsContext.test(Z),namespace:re.join(".")},J),(Mt=mt[Bt])||((Mt=mt[Bt]=[]).delegateCount=0,Lt.setup&&!1!==Lt.setup.call(S,U,re,st)||S.addEventListener&&S.addEventListener(Bt,st)),Lt.add&&(Lt.add.call(S,Dt),Dt.handler.guid||(Dt.handler.guid=B.guid)),Z?Mt.splice(Mt.delegateCount++,0,Dt):Mt.push(Dt),_.event.global[Bt]=!0)},remove:function(S,R,B,U,Z){var J,st,vt,mt,_t,Dt,Lt,Mt,Bt,re,he,de=zt.hasData(S)&&zt.get(S);if(de&&(mt=de.events)){for(_t=(R=(R||"").match(wt)||[""]).length;_t--;)if(Bt=he=(vt=gt.exec(R[_t])||[])[1],re=(vt[2]||"").split(".").sort(),Bt){for(Lt=_.event.special[Bt]||{},Mt=mt[Bt=(U?Lt.delegateType:Lt.bindType)||Bt]||[],vt=vt[2]&&new RegExp("(^|\\.)"+re.join("\\.(?:.*\\.|)")+"(\\.|$)"),st=J=Mt.length;J--;)Dt=Mt[J],!Z&&he!==Dt.origType||B&&B.guid!==Dt.guid||vt&&!vt.test(Dt.namespace)||U&&U!==Dt.selector&&("**"!==U||!Dt.selector)||(Mt.splice(J,1),Dt.selector&&Mt.delegateCount--,Lt.remove&&Lt.remove.call(S,Dt));st&&!Mt.length&&(Lt.teardown&&!1!==Lt.teardown.call(S,re,de.handle)||_.removeEvent(S,Bt,de.handle),delete mt[Bt])}else for(Bt in mt)_.event.remove(S,Bt+R[_t],B,U,!0);_.isEmptyObject(mt)&&zt.remove(S,"handle events")}},dispatch:function(S){var R,B,U,Z,J,st,vt=new Array(arguments.length),mt=_.event.fix(S),_t=(zt.get(this,"events")||Object.create(null))[mt.type]||[],Dt=_.event.special[mt.type]||{};for(vt[0]=mt,R=1;R<arguments.length;R++)vt[R]=arguments[R];if(mt.delegateTarget=this,!Dt.preDispatch||!1!==Dt.preDispatch.call(this,mt)){for(st=_.event.handlers.call(this,mt,_t),R=0;(Z=st[R++])&&!mt.isPropagationStopped();)for(mt.currentTarget=Z.elem,B=0;(J=Z.handlers[B++])&&!mt.isImmediatePropagationStopped();)mt.rnamespace&&!1!==J.namespace&&!mt.rnamespace.test(J.namespace)||(mt.handleObj=J,mt.data=J.data,void 0!==(U=((_.event.special[J.origType]||{}).handle||J.handler).apply(Z.elem,vt))&&!1===(mt.result=U)&&(mt.preventDefault(),mt.stopPropagation()));return Dt.postDispatch&&Dt.postDispatch.call(this,mt),mt.result}},handlers:function(S,R){var B,U,Z,J,st,vt=[],mt=R.delegateCount,_t=S.target;if(mt&&_t.nodeType&&!("click"===S.type&&1<=S.button))for(;_t!==this;_t=_t.parentNode||this)if(1===_t.nodeType&&("click"!==S.type||!0!==_t.disabled)){for(J=[],st={},B=0;B<mt;B++)void 0===st[Z=(U=R[B]).selector+" "]&&(st[Z]=U.needsContext?-1<_(Z,this).index(_t):_.find(Z,this,null,[_t]).length),st[Z]&&J.push(U);J.length&&vt.push({elem:_t,handlers:J})}return _t=this,mt<R.length&&vt.push({elem:_t,handlers:R.slice(mt)}),vt},addProp:function(S,R){Object.defineProperty(_.Event.prototype,S,{enumerable:!0,configurable:!0,get:m(R)?function(){if(this.originalEvent)return R(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[S]},set:function(B){Object.defineProperty(this,S,{enumerable:!0,configurable:!0,writable:!0,value:B})}})},fix:function(S){return S[_.expando]?S:new _.Event(S)},special:{load:{noBubble:!0},click:{setup:function(S){var R=this||S;return G.test(R.type)&&R.click&&A(R,"input")&&At(R,"click",!0),!1},trigger:function(S){var R=this||S;return G.test(R.type)&&R.click&&A(R,"input")&&At(R,"click"),!0},_default:function(S){var R=S.target;return G.test(R.type)&&R.click&&A(R,"input")&&zt.get(R,"click")||A(R,"a")}},beforeunload:{postDispatch:function(S){void 0!==S.result&&S.originalEvent&&(S.originalEvent.returnValue=S.result)}}}},_.removeEvent=function(S,R,B){S.removeEventListener&&S.removeEventListener(R,B)},_.Event=function(S,R){if(!(this instanceof _.Event))return new _.Event(S,R);S&&S.type?(this.originalEvent=S,this.type=S.type,this.isDefaultPrevented=S.defaultPrevented||void 0===S.defaultPrevented&&!1===S.returnValue?yt:St,this.target=S.target&&3===S.target.nodeType?S.target.parentNode:S.target,this.currentTarget=S.currentTarget,this.relatedTarget=S.relatedTarget):this.type=S,R&&_.extend(this,R),this.timeStamp=S&&S.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var S=this.originalEvent;this.isDefaultPrevented=yt,S&&!this.isSimulated&&S.preventDefault()},stopPropagation:function(){var S=this.originalEvent;this.isPropagationStopped=yt,S&&!this.isSimulated&&S.stopPropagation()},stopImmediatePropagation:function(){var S=this.originalEvent;this.isImmediatePropagationStopped=yt,S&&!this.isSimulated&&S.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},function(S,R){function B(U){if(w.documentMode){var Z=zt.get(this,"handle"),J=_.event.fix(U);
vendor: 4,542 bytes, line 1
1J.type="focusin"===U.type?"focus":"blur",J.isSimulated=!0,Z(U),J.target===J.currentTarget&&Z(J)}else _.event.simulate(R,U.target,_.event.fix(U))}_.event.special[S]={setup:function(){var U;if(At(this,S,!0),!w.documentMode)return!1;(U=zt.get(this,R))||this.addEventListener(R,B),zt.set(this,R,(U||0)+1)},trigger:function(){return At(this,S),!0},teardown:function(){var U;if(!w.documentMode)return!1;(U=zt.get(this,R)-1)?zt.set(this,R,U):(this.removeEventListener(R,B),zt.remove(this,R))},_default:function(U){return zt.get(U.target,S)},delegateType:R},_.event.special[R]={setup:function(){var U=this.ownerDocument||this.document||this,Z=w.documentMode?this:U,J=zt.get(Z,R);J||(w.documentMode?this.addEventListener(R,B):U.addEventListener(S,B,!0)),zt.set(Z,R,(J||0)+1)},teardown:function(){var U=this.ownerDocument||this.document||this,Z=w.documentMode?this:U,J=zt.get(Z,R)-1;J?zt.set(Z,R,J):(w.documentMode?this.removeEventListener(R,B):U.removeEventListener(S,B,!0),zt.remove(Z,R))}}}),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(S,R){_.event.special[S]={delegateType:R,bindType:R,handle:function(B){var U,Z=B.relatedTarget,J=B.handleObj;return Z&&(Z===this||_.contains(this,Z))||(B.type=J.origType,U=J.handler.apply(this,arguments),B.type=R),U}}}),_.fn.extend({on:function(S,R,B,U){return Et(this,S,R,B,U)},one:function(S,R,B,U){return Et(this,S,R,B,U,1)},off:function(S,R,B){var U,Z;if(S&&S.preventDefault&&S.handleObj)return U=S.handleObj,_(S.delegateTarget).off(U.namespace?U.origType+"."+U.namespace:U.origType,U.selector,U.handler),this;if("object"==typeof S){for(Z in S)this.off(Z,R,S[Z]);return this}return!1!==R&&"function"!=typeof R||(B=R,R=void 0),!1===B&&(B=St),this.each(function(){_.event.remove(this,S,B,R)})}});var Ot=/<script|<style|<link/i,Gt=/checked\s*(?:[^=]|=\s*.checked.)/i,Xt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Zt(S,R){return A(S,"table")&&A(11!==R.nodeType?R:R.firstChild,"tr")&&_(S).children("tbody")[0]||S}function Wt(S){return S.type=(null!==S.getAttribute("type"))+"/"+S.type,S}function ae(S){return"true/"===(S.type||"").slice(0,5)?S.type=S.type.slice(5):S.removeAttribute("type"),S}function se(S,R){var B,U,Z,J,st,vt;if(1===R.nodeType){if(zt.hasData(S)&&(vt=zt.get(S).events))for(Z in zt.remove(R,"handle events"),vt)for(B=0,U=vt[Z].length;B<U;B++)_.event.add(R,Z,vt[Z][B]);Vt.hasData(S)&&(J=Vt.access(S),st=_.extend({},J),Vt.set(R,st))}}function oe(S,R,B,U){R=v(R);var Z,J,st,vt,mt,_t,Dt=0,Lt=S.length,Mt=Lt-1,Bt=R[0],re=m(Bt);if(re||1<Lt&&"string"==typeof Bt&&!x.checkClone&&Gt.test(Bt))return S.each(function(he){var de=S.eq(he);re&&(R[0]=Bt.call(this,he,de.html())),oe(de,R,B,U)});if(Lt&&(J=(Z=dt(R,S[0].ownerDocument,!1,S,U)).firstChild,1===Z.childNodes.length&&(Z=J),J||U)){for(vt=(st=_.map(Ht(Z,"script"),Wt)).length;Dt<Lt;Dt++)mt=Z,Dt!==Mt&&(mt=_.clone(mt,!0,!0),vt&&_.merge(st,Ht(mt,"script"))),B.call(S[Dt],mt,Dt);if(vt)for(_t=st[st.length-1].ownerDocument,_.map(st,ae),Dt=0;Dt<vt;Dt++)pt.test((mt=st[Dt]).type||"")&&!zt.access(mt,"globalEval")&&_.contains(_t,mt)&&(mt.src&&"module"!==(mt.type||"").toLowerCase()?_._evalUrl&&!mt.noModule&&_._evalUrl(mt.src,{nonce:mt.nonce||mt.getAttribute("nonce")},_t):k(mt.textContent.replace(Xt,""),mt,_t))}return S}function we(S,R,B){for(var U,Z=R?_.filter(R,S):S,J=0;null!=(U=Z[J]);J++)B||1!==U.nodeType||_.cleanData(Ht(U)),U.parentNode&&(B&&b(U)&&Ft(Ht(U,"script")),U.parentNode.removeChild(U));return S}_.extend({htmlPrefilter:function(S){return S},clone:function(S,R,B){var U,Z,J,st,vt,mt,_t,Dt=S.cloneNode(!0),Lt=b(S);if(!(x.noCloneChecked||1!==S.nodeType&&11!==S.nodeType||_.isXMLDoc(S)))for(st=Ht(Dt),U=0,Z=(J=Ht(S)).length;U<Z;U++)vt=J[U],"input"===(_t=(mt=st[U]).nodeName.toLowerCase())&&G.test(vt.type)?mt.checked=vt.checked:"input"!==_t&&"textarea"!==_t||(mt.defaultValue=vt.defaultValue);if(R)if(B)for(J=J||Ht(S),st=st||Ht(Dt),U=0,Z=J.length;U<Z;U++)se(J[U],st[U]);else se(S,Dt);return 0<(st=Ht(Dt,"script")).length&&Ft(st,!Lt&&Ht(S,"script")),Dt},cleanData:function(S){for(var R,B,U,Z=_.event.special,J=0;void 0!==(B=S[J]);J++)if(Kt(B)){if(R=B[zt.expando]){if(R.events)for(U in R.events)Z[U]?_.event.remove(B,U):_.removeEvent(B,U,R.handle);B[zt.expando]=void 0}B[Vt.expando]&&(B[Vt.expando]=void 0)}}}),_.fn.extend({detach:function(S){return we(this,S,!0)},remove:function(S){return we(this,S)},text:function(S){return qt(this,function(R){return void 0===R?_.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=R
vendor: 4,072 bytes, line 1
1)})},null,S,arguments.length)},append:function(){return oe(this,arguments,function(S){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Zt(this,S).appendChild(S)})},prepend:function(){return oe(this,arguments,function(S){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var R=Zt(this,S);R.insertBefore(S,R.firstChild)}})},before:function(){return oe(this,arguments,function(S){this.parentNode&&this.parentNode.insertBefore(S,this)})},after:function(){return oe(this,arguments,function(S){this.parentNode&&this.parentNode.insertBefore(S,this.nextSibling)})},empty:function(){for(var S,R=0;null!=(S=this[R]);R++)1===S.nodeType&&(_.cleanData(Ht(S,!1)),S.textContent="");return this},clone:function(S,R){return S=null!=S&&S,R=null==R?S:R,this.map(function(){return _.clone(this,S,R)})},html:function(S){return qt(this,function(R){var B=this[0]||{},U=0,Z=this.length;if(void 0===R&&1===B.nodeType)return B.innerHTML;if("string"==typeof R&&!Ot.test(R)&&!bt[(Q.exec(R)||["",""])[1].toLowerCase()]){R=_.htmlPrefilter(R);try{for(;U<Z;U++)1===(B=this[U]||{}).nodeType&&(_.cleanData(Ht(B,!1)),B.innerHTML=R);B=0}catch(J){}}B&&this.empty().append(R)},null,S,arguments.length)},replaceWith:function(){var S=[];return oe(this,arguments,function(R){var B=this.parentNode;_.inArray(this,S)<0&&(_.cleanData(Ht(this)),B&&B.replaceChild(R,this))},S)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(S,R){_.fn[S]=function(B){for(var U,Z=[],J=_(B),st=J.length-1,vt=0;vt<=st;vt++)U=vt===st?this:this.clone(!0),_(J[vt])[R](U),t.apply(Z,U.get());return this.pushStack(Z)}});var ze=new RegExp("^("+Me+")(?!px)[a-z%]+$","i"),Ue=/^--/,Ce=function(S){var R=S.ownerDocument.defaultView;return R&&R.opener||(R=h),R.getComputedStyle(S)},We=function(S,R,B){var U,Z,J={};for(Z in R)J[Z]=S.style[Z],S.style[Z]=R[Z];for(Z in U=B.call(S),R)S.style[Z]=J[Z];return U},ln=new RegExp(o.join("|"),"i");function Ke(S,R,B){var U,Z,J,st,vt=Ue.test(R),mt=S.style;return(B=B||Ce(S))&&(st=B.getPropertyValue(R)||B[R],vt&&st&&(st=st.replace(W,"$1")||void 0),""!==st||b(S)||(st=_.style(S,R)),!x.pixelBoxStyles()&&ze.test(st)&&ln.test(R)&&(U=mt.width,Z=mt.minWidth,J=mt.maxWidth,mt.minWidth=mt.maxWidth=mt.width=st,st=B.width,mt.width=U,mt.minWidth=Z,mt.maxWidth=J)),void 0!==st?st+"":st}function $e(S,R){return{get:function(){if(!S())return(this.get=R).apply(this,arguments);delete this.get}}}!function(){function S(){if(_t){mt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",_t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",f.appendChild(mt).appendChild(_t);var Dt=h.getComputedStyle(_t);B="1%"!==Dt.top,vt=12===R(Dt.marginLeft),_t.style.right="60%",J=36===R(Dt.right),U=36===R(Dt.width),_t.style.position="absolute",Z=12===R(_t.offsetWidth/3),f.removeChild(mt),_t=null}}function R(Dt){return Math.round(parseFloat(Dt))}var B,U,Z,J,st,vt,mt=w.createElement("div"),_t=w.createElement("div");_t.style&&(_t.style.backgroundClip="content-box",_t.cloneNode(!0).style.backgroundClip="",x.clearCloneStyle="content-box"===_t.style.backgroundClip,_.extend(x,{boxSizingReliable:function(){return S(),U},pixelBoxStyles:function(){return S(),J},pixelPosition:function(){return S(),B},reliableMarginLeft:function(){return S(),vt},scrollboxSize:function(){return S(),Z},reliableTrDimensions:function(){var Dt,Lt,Mt,Bt;return null==st&&(Dt=w.createElement("table"),Lt=w.createElement("tr"),Mt=w.createElement("div"),Dt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Lt.style.cssText="box-sizing:content-box;border:1px solid",Lt.style.height="1px",Mt.style.height="9px",Mt.style.display="block",f.appendChild(Dt).appendChild(Lt).appendChild(Mt),Bt=h.getComputedStyle(Lt),st=parseInt(Bt.height,10)+parseInt(Bt.borderTopWidth,10)+parseInt(Bt.borderBottomWidth,10)===Lt.offsetHeight,f.removeChild(Dt)),st}}))}();var Pe=["Webkit","Moz","ms"],nn=w.createElement("div").style,wn={};
vendor: 5,697 bytes, line 1
1function hn(S){return _.cssProps[S]||wn[S]||(S in nn?S:wn[S]=function(B){for(var U=B[0].toUpperCase()+B.slice(1),Z=Pe.length;Z--;)if((B=Pe[Z]+U)in nn)return B}(S)||S)}var dn=/^(none|table(?!-c[ea]).+)/,cn={position:"absolute",visibility:"hidden",display:"block"},De={letterSpacing:"0",fontWeight:"400"};function Ie(S,R,B){var U=Fe.exec(R);return U?Math.max(0,U[2]-(B||0))+(U[3]||"px"):R}function Hn(S,R,B,U,Z,J){var st="width"===R?1:0,vt=0,mt=0,_t=0;if(B===(U?"border":"content"))return 0;for(;st<4;st+=2)"margin"===B&&(_t+=_.css(S,B+o[st],!0,Z)),U?("content"===B&&(mt-=_.css(S,"padding"+o[st],!0,Z)),"margin"!==B&&(mt-=_.css(S,"border"+o[st]+"Width",!0,Z))):(mt+=_.css(S,"padding"+o[st],!0,Z),"padding"!==B?mt+=_.css(S,"border"+o[st]+"Width",!0,Z):vt+=_.css(S,"border"+o[st]+"Width",!0,Z));return!U&&0<=J&&(mt+=Math.max(0,Math.ceil(S["offset"+R[0].toUpperCase()+R.slice(1)]-J-mt-vt-.5))||0),mt+_t}function ti(S,R,B){var U=Ce(S),Z=(!x.boxSizingReliable()||B)&&"border-box"===_.css(S,"boxSizing",!1,U),J=Z,st=Ke(S,R,U),vt="offset"+R[0].toUpperCase()+R.slice(1);if(ze.test(st)){if(!B)return st;st="auto"}return(!x.boxSizingReliable()&&Z||!x.reliableTrDimensions()&&A(S,"tr")||"auto"===st||!parseFloat(st)&&"inline"===_.css(S,"display",!1,U))&&S.getClientRects().length&&(Z="border-box"===_.css(S,"boxSizing",!1,U),(J=vt in S)&&(st=S[vt])),(st=parseFloat(st)||0)+Hn(S,R,B||(Z?"border":"content"),J,U,st)+"px"}function Je(S,R,B,U,Z){return new Je.prototype.init(S,R,B,U,Z)}_.extend({cssHooks:{opacity:{get:function(S,R){if(R){var B=Ke(S,"opacity");return""===B?"1":B}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(S,R,B,U){if(S&&3!==S.nodeType&&8!==S.nodeType&&S.style){var Z,J,st,vt=Ut(R),mt=Ue.test(R),_t=S.style;if(mt||(R=hn(vt)),st=_.cssHooks[R]||_.cssHooks[vt],void 0===B)return st&&"get"in st&&void 0!==(Z=st.get(S,!1,U))?Z:_t[R];"string"==(J=typeof B)&&(Z=Fe.exec(B))&&Z[1]&&(B=H(S,R,Z),J="number"),null!=B&&B==B&&("number"!==J||mt||(B+=Z&&Z[3]||(_.cssNumber[vt]?"":"px")),x.clearCloneStyle||""!==B||0!==R.indexOf("background")||(_t[R]="inherit"),st&&"set"in st&&void 0===(B=st.set(S,B,U))||(mt?_t.setProperty(R,B):_t[R]=B))}},css:function(S,R,B,U){var Z,J,st,vt=Ut(R);return Ue.test(R)||(R=hn(vt)),(st=_.cssHooks[R]||_.cssHooks[vt])&&"get"in st&&(Z=st.get(S,!0,B)),void 0===Z&&(Z=Ke(S,R,U)),"normal"===Z&&R in De&&(Z=De[R]),""===B||B?(J=parseFloat(Z),!0===B||isFinite(J)?J||0:Z):Z}}),_.each(["height","width"],function(S,R){_.cssHooks[R]={get:function(B,U,Z){if(U)return!dn.test(_.css(B,"display"))||B.getClientRects().length&&B.getBoundingClientRect().width?ti(B,R,Z):We(B,cn,function(){return ti(B,R,Z)})},set:function(B,U,Z){var J,st=Ce(B),vt=!x.scrollboxSize()&&"absolute"===st.position,mt=(vt||Z)&&"border-box"===_.css(B,"boxSizing",!1,st),_t=Z?Hn(B,R,Z,mt,st):0;return mt&&vt&&(_t-=Math.ceil(B["offset"+R[0].toUpperCase()+R.slice(1)]-parseFloat(st[R])-Hn(B,R,"border",!1,st)-.5)),_t&&(J=Fe.exec(U))&&"px"!==(J[3]||"px")&&(B.style[R]=U,U=_.css(B,R)),Ie(0,U,_t)}}}),_.cssHooks.marginLeft=$e(x.reliableMarginLeft,function(S,R){if(R)return(parseFloat(Ke(S,"marginLeft"))||S.getBoundingClientRect().left-We(S,{marginLeft:0},function(){return S.getBoundingClientRect().left}))+"px"}),_.each({margin:"",padding:"",border:"Width"},function(S,R){_.cssHooks[S+R]={expand:function(B){for(var U=0,Z={},J="string"==typeof B?B.split(" "):[B];U<4;U++)Z[S+o[U]+R]=J[U]||J[U-2]||J[0];return Z}},"margin"!==S&&(_.cssHooks[S+R].set=Ie)}),_.fn.extend({css:function(S,R){return qt(this,function(B,U,Z){var J,st,vt={},mt=0;if(Array.isArray(U)){for(J=Ce(B),st=U.length;mt<st;mt++)vt[U[mt]]=_.css(B,U[mt],!1,J);return vt}return void 0!==Z?_.style(B,U,Z):_.css(B,U)},S,R,1<arguments.length)}}),((_.Tween=Je).prototype={constructor:Je,init:function(S,R,B,U,Z,J){this.elem=S,this.prop=B,this.easing=Z||_.easing._default,this.options=R,this.start=this.now=this.cur(),this.end=U,this.unit=J||(_.cssNumber[B]?"":"px")},cur:function(){var S=Je.propHooks[this.prop];return S&&S.get?S.get(this):Je.propHooks._default.get(this)},run:function(S){var R,B=Je.propHooks[this.prop];return this.pos=R=this.options.duration?_.easing[this.easing](S,this.options.duration*S,0,1,this.options.duration):S,this.now=(this.end-this.start)*R+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),B&&B.set?B.set(this):Je.propHooks._default.set(this),this}}).init.prototype=Je.prototype,(Je.propHooks={_default:{get:function(S){var R;return 1!==S.elem.nodeType||null!=S.elem[S.prop]&&null==S.elem.style[S.prop]?S.elem[S.prop]:(R=_.css(S.elem,S.prop,""))&&"auto"!==R?R:0},set:function(S){_.fx.step[S.prop]?_.fx.step[S.prop](S):1!==S.elem.nodeType||!_.cssHooks[S.prop]&&null==S.elem.style[hn(S.prop)]?S.elem[S.prop]=S.now:_.style(S.elem,S.prop,S.now+S.unit)}}}).scrollTop=Je.propHooks.scrollLeft={set:function(S){S.elem.nodeType&&S.elem.parentNode&&(S.elem[S.prop]=S.now)}},_.easing={linear:function(S){return S},swing:function(S){return.5-Math.cos(S*Math.PI)/2},_default:"swing"},_.fx=Je.prototype.init,_.fx.step={};var _n,Rn,kn,ei,xi=/^(?:toggle|show|hide)$/,bi=/queueHooks$/;function jn(){Rn&&(!1===w.hidden&&h.requestAnimationFrame?h.requestAnimationFrame(jn):h.setTimeout(jn,_.fx.interval),_.fx.tick())}function ni(){return h.setTimeout(function(){_n=void 0}),_n=Date.now()}function Ln(S,R){var B,U=0,Z={height:S};for(R=R?1:0;U<4;
vendor: 11,039 bytes, line 1
1U+=2-R)Z["margin"+(B=o[U])]=Z["padding"+B]=S;return R&&(Z.opacity=Z.width=S),Z}function ii(S,R,B){for(var U,Z=(Qe.tweeners[R]||[]).concat(Qe.tweeners["*"]),J=0,st=Z.length;J<st;J++)if(U=Z[J].call(B,R,S))return U}function Qe(S,R,B){var U,Z,J=0,st=Qe.prefilters.length,vt=_.Deferred().always(function(){delete mt.elem}),mt=function(){if(Z)return!1;for(var Lt=_n||ni(),Mt=Math.max(0,_t.startTime+_t.duration-Lt),Bt=1-(Mt/_t.duration||0),re=0,he=_t.tweens.length;re<he;re++)_t.tweens[re].run(Bt);return vt.notifyWith(S,[_t,Bt,Mt]),Bt<1&&he?Mt:(he||vt.notifyWith(S,[_t,1,0]),vt.resolveWith(S,[_t]),!1)},_t=vt.promise({elem:S,props:_.extend({},R),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},B),originalProperties:R,originalOptions:B,startTime:_n||ni(),duration:B.duration,tweens:[],createTween:function(Lt,Mt){var Bt=_.Tween(S,_t.opts,Lt,Mt,_t.opts.specialEasing[Lt]||_t.opts.easing);return _t.tweens.push(Bt),Bt},stop:function(Lt){var Mt=0,Bt=Lt?_t.tweens.length:0;if(Z)return this;for(Z=!0;Mt<Bt;Mt++)_t.tweens[Mt].run(1);return Lt?(vt.notifyWith(S,[_t,1,0]),vt.resolveWith(S,[_t,Lt])):vt.rejectWith(S,[_t,Lt]),this}}),Dt=_t.props;for(function(Lt,Mt){var Bt,re,he,de,Ae;for(Bt in Lt)if(he=Mt[re=Ut(Bt)],de=Lt[Bt],Array.isArray(de)&&(he=de[1],de=Lt[Bt]=de[0]),Bt!==re&&(Lt[re]=de,delete Lt[Bt]),(Ae=_.cssHooks[re])&&"expand"in Ae)for(Bt in de=Ae.expand(de),delete Lt[re],de)Bt in Lt||(Lt[Bt]=de[Bt],Mt[Bt]=he);else Mt[re]=he}(Dt,_t.opts.specialEasing);J<st;J++)if(U=Qe.prefilters[J].call(_t,S,Dt,_t.opts))return m(U.stop)&&(_._queueHooks(_t.elem,_t.opts.queue).stop=U.stop.bind(U)),U;return _.map(Dt,ii,_t),m(_t.opts.start)&&_t.opts.start.call(S,_t),_t.progress(_t.opts.progress).done(_t.opts.done,_t.opts.complete).fail(_t.opts.fail).always(_t.opts.always),_.fx.timer(_.extend(mt,{elem:S,anim:_t,queue:_t.opts.queue})),_t}_.Animation=_.extend(Qe,{tweeners:{"*":[function(S,R){var B=this.createTween(S,R);return H(B.elem,S,Fe.exec(R),B),B}]},tweener:function(S,R){m(S)?(R=S,S=["*"]):S=S.match(wt);for(var B,U=0,Z=S.length;U<Z;U++)(Qe.tweeners[B=S[U]]=Qe.tweeners[B]||[]).unshift(R)},prefilters:[function(S,R,B){var U,Z,J,st,vt,mt,_t,Dt,Lt="width"in R||"height"in R,Mt=this,Bt={},re=S.style,he=S.nodeType&&D(S),de=zt.get(S,"fxshow");for(U in B.queue||(null==(st=_._queueHooks(S,"fx")).unqueued&&(st.unqueued=0,vt=st.empty.fire,st.empty.fire=function(){st.unqueued||vt()}),st.unqueued++,Mt.always(function(){Mt.always(function(){st.unqueued--,_.queue(S,"fx").length||st.empty.fire()})})),R)if(xi.test(Z=R[U])){if(delete R[U],J=J||"toggle"===Z,Z===(he?"hide":"show")){if("show"!==Z||!de||void 0===de[U])continue;he=!0}Bt[U]=de&&de[U]||_.style(S,U)}if((mt=!_.isEmptyObject(R))||!_.isEmptyObject(Bt))for(U in Lt&&1===S.nodeType&&(B.overflow=[re.overflow,re.overflowX,re.overflowY],null==(_t=de&&de.display)&&(_t=zt.get(S,"display")),"none"===(Dt=_.css(S,"display"))&&(_t?Dt=_t:(nt([S],!0),_t=S.style.display||_t,Dt=_.css(S,"display"),nt([S]))),("inline"===Dt||"inline-block"===Dt&&null!=_t)&&"none"===_.css(S,"float")&&(mt||(Mt.done(function(){re.display=_t}),null==_t&&(_t="none"===(Dt=re.display)?"":Dt)),re.display="inline-block")),B.overflow&&(re.overflow="hidden",Mt.always(function(){re.overflow=B.overflow[0],re.overflowX=B.overflow[1],re.overflowY=B.overflow[2]})),mt=!1,Bt)mt||(de?"hidden"in de&&(he=de.hidden):de=zt.access(S,"fxshow",{display:_t}),J&&(de.hidden=!he),he&&nt([S],!0),Mt.done(function(){for(U in he||nt([S]),zt.remove(S,"fxshow"),Bt)_.style(S,U,Bt[U])})),mt=ii(he?de[U]:0,U,Mt),U in de||(de[U]=mt.start,he&&(mt.end=mt.start,mt.start=0))}],prefilter:function(S,R){R?Qe.prefilters.unshift(S):Qe.prefilters.push(S)}}),_.speed=function(S,R,B){var U=S&&"object"==typeof S?_.extend({},S):{complete:B||!B&&R||m(S)&&S,duration:S,easing:B&&R||R&&!m(R)&&R};return _.fx.off?U.duration=0:"number"!=typeof U.duration&&(U.duration=U.duration in _.fx.speeds?_.fx.speeds[U.duration]:_.fx.speeds._default),null!=U.queue&&!0!==U.queue||(U.queue="fx"),U.old=U.complete,U.complete=function(){m(U.old)&&U.old.call(this),U.queue&&_.dequeue(this,U.queue)},U},_.fn.extend({fadeTo:function(S,R,B,U){return this.filter(D).css("opacity",0).show().end().animate({opacity:R},S,B,U)},animate:function(S,R,B,U){var Z=_.isEmptyObject(S),J=_.speed(R,B,U),st=function(){var vt=Qe(this,_.extend({},S),J);(Z||zt.get(this,"finish"))&&vt.stop(!0)};return st.finish=st,Z||!1===J.queue?this.each(st):this.queue(J.queue,st)},stop:function(S,R,B){var U=function(Z){var J=Z.stop;delete Z.stop,J(B)};return"string"!=typeof S&&(B=R,R=S,S=void 0),R&&this.queue(S||"fx",[]),this.each(function(){var Z=!0,J=null!=S&&S+"queueHooks",st=_.timers,vt=zt.get(this);if(J)vt[J]&&vt[J].stop&&U(vt[J]);else for(J in vt)vt[J]&&vt[J].stop&&bi.test(J)&&U(vt[J]);for(J=st.length;J--;)st[J].elem!==this||null!=S&&st[J].queue!==S||(st[J].anim.stop(B),Z=!1,st.splice(J,1));!Z&&B||_.dequeue(this,S)})},finish:function(S){return!1!==S&&(S=S||"fx"),this.each(function(){var R,B=zt.get(this),U=B[S+"queue"],Z=B[S+"queueHooks"],J=_.timers,st=U?U.length:0;for(B.finish=!0,_.queue(this,S,[]),Z&&Z.stop&&Z.stop.call(this,!0),R=J.length;R--;)J[R].elem===this&&J[R].queue===S&&(J[R].anim.stop(!0),J.splice(R,1));for(R=0;R<st;R++)U[R]&&U[R].finish&&U[R].finish.call(this);delete B.finish})}}),_.each(["toggle","show","hide"],function(S,R){var B=_.fn[R];_.fn[R]=function(U,Z,J){return null==U||"boolean"==typeof U?B.apply(this,arguments):this.animate(Ln(R,!0),U,Z,J)}}),_.each({slideDown:Ln("show"),slideUp:Ln("hide"),slideToggle:Ln("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(S,R){_.fn[S]=function(B,U,Z){return this.animate(R,B,U,Z)}}),_.timers=[],_.fx.tick=function(){var S,R=0,B=_.timers;for(_n=Date.now();R<B.length;R++)(S=B[R])()||B[R]!==S||B.splice(R--,1);B.length||_.fx.stop(),_n=void 0},_.fx.timer=function(S){_.timers.push(S),_.fx.start()},_.fx.interval=13,_.fx.start=function(){Rn||(Rn=!0,jn())},_.fx.stop=function(){Rn=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(S,R){return S=_.fx&&_.fx.speeds[S]||S,this.queue(R=R||"fx",function(B,U){var Z=h.setTimeout(B,S);U.stop=function(){h.clearTimeout(Z)}})},kn=w.createElement("input"),ei=w.createElement("select").appendChild(w.createElement("option")),kn.type="checkbox",x.checkOn=""!==kn.value,x.optSelected=ei.selected,(kn=w.createElement("input")).value="t",kn.type="radio",x.radioValue="t"===kn.value;var ri,En=_.expr.attrHandle;_.fn.extend({attr:function(S,R){return qt(this,_.attr,S,R,1<arguments.length)},removeAttr:function(S){return this.each(function(){_.removeAttr(this,S)})}}),_.extend({attr:function(S,R,B){var U,Z,J=S.nodeType;if(3!==J&&8!==J&&2!==J)return void 0===S.getAttribute?_.prop(S,R,B):(1===J&&_.isXMLDoc(S)||(Z=_.attrHooks[R.toLowerCase()]||(_.expr.match.bool.test(R)?ri:void 0)),void 0!==B?null===B?void _.removeAttr(S,R):Z&&"set"in Z&&void 0!==(U=Z.set(S,B,R))?U:(S.setAttribute(R,B+""),B):Z&&"get"in Z&&null!==(U=Z.get(S,R))?U:null==(U=_.find.attr(S,R))?void 0:U)},attrHooks:{type:{set:function(S,R){if(!x.radioValue&&"radio"===R&&A(S,"input")){var B=S.value;return S.setAttribute("type",R),B&&(S.value=B),R}}}},removeAttr:function(S,R){var B,U=0,Z=R&&R.match(wt);if(Z&&1===S.nodeType)for(;B=Z[U++];)S.removeAttribute(B)}}),ri={set:function(S,R,B){return!1===R?_.removeAttr(S,B):S.setAttribute(B,B),B}},_.each(_.expr.match.bool.source.match(/\w+/g),function(S,R){var B=En[R]||_.find.attr;En[R]=function(U,Z,J){var st,vt,mt=Z.toLowerCase();return J||(vt=En[mt],En[mt]=st,st=null!=B(U,Z,J)?mt:null,En[mt]=vt),st}});var wi=/^(?:input|select|textarea|button)$/i,_i=/^(?:a|area)$/i;function mn(S){return(S.match(wt)||[]).join(" ")}function vn(S){return S.getAttribute&&S.getAttribute("class")||""}function Fn(S){return Array.isArray(S)?S:"string"==typeof S&&S.match(wt)||[]}_.fn.extend({prop:function(S,R){return qt(this,_.prop,S,R,1<arguments.length)},removeProp:function(S){return this.each(function(){delete this[_.propFix[S]||S]})}}),_.extend({prop:function(S,R,B){var U,Z,J=S.nodeType;if(3!==J&&8!==J&&2!==J)return 1===J&&_.isXMLDoc(S)||(Z=_.propHooks[R=_.propFix[R]||R]),void 0!==B?Z&&"set"in Z&&void 0!==(U=Z.set(S,B,R))?U:S[R]=B:Z&&"get"in Z&&null!==(U=Z.get(S,R))?U:S[R]},propHooks:{tabIndex:{get:function(S){var R=_.find.attr(S,"tabindex");return R?parseInt(R,10):wi.test(S.nodeName)||_i.test(S.nodeName)&&S.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),x.optSelected||(_.propHooks.selected={get:function(S){return null},set:function(S){}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this}),_.fn.extend({addClass:function(S){var R,B,U,Z,J,st;return m(S)?this.each(function(vt){_(this).addClass(S.call(this,vt,vn(this)))}):(R=Fn(S)).length?this.each(function(){if(U=vn(this),B=1===this.nodeType&&" "+mn(U)+" "){for(J=0;J<R.length;J++)B.indexOf(" "+(Z=R[J])+" ")<0&&(B+=Z+" ");st=mn(B),U!==st&&this.setAttribute("class",st)}}):this},removeClass:function(S){var R,B,U,Z,J,st;return m(S)?this.each(function(vt){_(this).removeClass(S.call(this,vt,vn(this)))}):arguments.length?(R=Fn(S)).length?this.each(function(){if(U=vn(this),B=1===this.nodeType&&" "+mn(U)+" "){for(J=0;J<R.length;J++)for(Z=R[J];-1<B.indexOf(" "+Z+" ");)B=B.replace(" "+Z+" "," ");st=mn(B),U!==st&&this.setAttribute("class",st)}}):this:this.attr("class","")},toggleClass:function(S,R){var B,U,Z,J,st=typeof S,vt="string"===st||Array.isArray(S);return m(S)?this.each(function(mt){_(this).toggleClass(S.call(this,mt,vn(this),R),R)}):"boolean"==typeof R&&vt?R?this.addClass(S):this.removeClass(S):(B=Fn(S),this.each(function(){if(vt)for(J=_(this),Z=0;Z<B.length;Z++)J.hasClass(U=B[Z])?J.removeClass(U):J.addClass(U);else void 0!==S&&"boolean"!==st||((U=vn(this))&&zt.set(this,"__className__",U),this.setAttribute&&this.setAttribute("class",U||!1===S?"":zt.get(this,"__className__")||""))}))},hasClass:function(S){var R,B,U=0;for(R=" "+S+" ";B=this[U++];)if(1===B.nodeType&&-1<(" "+mn(vn(B))+" ").indexOf(R))return!0;return!1}});var ki=/\r/g;_.fn.extend({val:function(S){var R,B,U,Z=this[0];return arguments.length?(U=m(S),this.each(function(J){var st;1===this.nodeType&&(null==(st=U?S.call(this,J,_(this).val()):S)?st="":"number"==typeof st?st+="":Array.isArray(st)&&(st=_.map(st,function(vt){return null==vt?"":vt+""})),(R=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in R&&void 0!==R.set(this,st,"value")||(this.value=st))})):Z?(R=_.valHooks[Z.type]||_.valHooks[Z.nodeName.toLowerCase()])&&"get"in R&&void 0!==(B=R.get(Z,"value"))?B:"string"==typeof(B=Z.value)?B.replace(ki,""):null==B?"":B:void 0}}),_.extend({valHooks:{option:{get:function(S){var R=_.find.attr(S,"value");return null!=R?R:mn(_.text(S))}},select:{get:function(S){var R,B,U,Z=S.options,J=S.selectedIndex,st="select-one"===S.type,vt=st?null:[],mt=st?J+1:Z.length;for(U=J<0?mt:st?J:0;U<mt;U++)if(((B=Z[U]).selected||U===J)&&!B.disabled&&(!B.parentNode.disabled||!A(B.parentNode,"optgroup"))){if(R=_(B).val(),st)return R;
vendor: 4,224 bytes, line 1
1vt.push(R)}return vt},set:function(S,R){for(var B,U,Z=S.options,J=_.makeArray(R),st=Z.length;st--;)((U=Z[st]).selected=-1<_.inArray(_.valHooks.option.get(U),J))&&(B=!0);return B||(S.selectedIndex=-1),J}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(S,R){if(Array.isArray(R))return S.checked=-1<_.inArray(_(S).val(),R)}},x.checkOn||(_.valHooks[this].get=function(S){return null===S.getAttribute("value")?"on":S.value})});var Mn=h.location,si={guid:Date.now()},Un=/\?/;_.parseXML=function(S){var R,B;if(!S||"string"!=typeof S)return null;try{R=(new h.DOMParser).parseFromString(S,"text/xml")}catch(U){}return B=R&&R.getElementsByTagName("parsererror")[0],R&&!B||_.error("Invalid XML: "+(B?_.map(B.childNodes,function(U){return U.textContent}).join("\n"):S)),R};var ai=/^(?:focusinfocus|focusoutblur)$/,oi=function(S){S.stopPropagation()};_.extend(_.event,{trigger:function(S,R,B,U){var Z,J,st,vt,mt,_t,Dt,Lt,Mt=[B||w],Bt=u.call(S,"type")?S.type:S,re=u.call(S,"namespace")?S.namespace.split("."):[];if(J=Lt=st=B=B||w,3!==B.nodeType&&8!==B.nodeType&&!ai.test(Bt+_.event.triggered)&&(-1<Bt.indexOf(".")&&(Bt=(re=Bt.split(".")).shift(),re.sort()),mt=Bt.indexOf(":")<0&&"on"+Bt,(S=S[_.expando]?S:new _.Event(Bt,"object"==typeof S&&S)).isTrigger=U?2:3,S.namespace=re.join("."),S.rnamespace=S.namespace?new RegExp("(^|\\.)"+re.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,S.result=void 0,S.target||(S.target=B),R=null==R?[S]:_.makeArray(R,[S]),Dt=_.event.special[Bt]||{},U||!Dt.trigger||!1!==Dt.trigger.apply(B,R))){if(!U&&!Dt.noBubble&&!g(B)){for(ai.test((vt=Dt.delegateType||Bt)+Bt)||(J=J.parentNode);J;J=J.parentNode)Mt.push(J),st=J;st===(B.ownerDocument||w)&&Mt.push(st.defaultView||st.parentWindow||h)}for(Z=0;(J=Mt[Z++])&&!S.isPropagationStopped();)Lt=J,S.type=1<Z?vt:Dt.bindType||Bt,(_t=(zt.get(J,"events")||Object.create(null))[S.type]&&zt.get(J,"handle"))&&_t.apply(J,R),(_t=mt&&J[mt])&&_t.apply&&Kt(J)&&(S.result=_t.apply(J,R),!1===S.result&&S.preventDefault());return S.type=Bt,U||S.isDefaultPrevented()||Dt._default&&!1!==Dt._default.apply(Mt.pop(),R)||!Kt(B)||mt&&m(B[Bt])&&!g(B)&&((st=B[mt])&&(B[mt]=null),_.event.triggered=Bt,S.isPropagationStopped()&&Lt.addEventListener(Bt,oi),B[Bt](),S.isPropagationStopped()&&Lt.removeEventListener(Bt,oi),_.event.triggered=void 0,st&&(B[mt]=st)),S.result}},simulate:function(S,R,B){var U=_.extend(new _.Event,B,{type:S,isSimulated:!0});_.event.trigger(U,null,R)}}),_.fn.extend({trigger:function(S,R){return this.each(function(){_.event.trigger(S,R,this)})},triggerHandler:function(S,R){var B=this[0];if(B)return _.event.trigger(S,R,B,!0)}});var Ci=/\[\]$/,li=/\r?\n/g,Si=/^(?:submit|button|image|reset|file)$/i,Ei=/^(?:input|select|textarea|keygen)/i;function Wn(S,R,B,U){var Z;if(Array.isArray(R))_.each(R,function(J,st){B||Ci.test(S)?U(S,st):Wn(S+"["+("object"==typeof st&&null!=st?J:"")+"]",st,B,U)});else if(B||"object"!==M(R))U(S,R);else for(Z in R)Wn(S+"["+Z+"]",R[Z],B,U)}_.param=function(S,R){var B,U=[],Z=function(J,st){var vt=m(st)?st():st;U[U.length]=encodeURIComponent(J)+"="+encodeURIComponent(null==vt?"":vt)};if(null==S)return"";if(Array.isArray(S)||S.jquery&&!_.isPlainObject(S))_.each(S,function(){Z(this.name,this.value)});else for(B in S)Wn(B,S[B],R,Z);return U.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var S=_.prop(this,"elements");return S?_.makeArray(S):this}).filter(function(){var S=this.type;return this.name&&!_(this).is(":disabled")&&Ei.test(this.nodeName)&&!Si.test(S)&&(this.checked||!G.test(S))}).map(function(S,R){var B=_(this).val();return null==B?null:Array.isArray(B)?_.map(B,function(U){return{name:R.name,value:U.replace(li,"\r\n")}}):{name:R.name,value:B.replace(li,"\r\n")}}).get()}});var Mi=/%20/g,Pi=/#.*$/,Di=/([?&])_=[^&]*/,Ti=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ai=/^(?:GET|HEAD)$/,Ri=/^\/\//,ci={},qn={},ui="*/".concat("*"),Kn=w.createElement("a");function hi(S){return function(R,B){"string"!=typeof R&&(B=R,R="*");var U,Z=0,J=R.toLowerCase().match(wt)||[];if(m(B))for(;U=J[Z++];)"+"===U[0]?(U=U.slice(1)||"*",(S[U]=S[U]||[]).unshift(B)):(S[U]=S[U]||[]).push(B)}}function di(S,R,B,U){var Z={},J=S===qn;function st(vt){var mt;
vendor: 4,453 bytes, line 1
1return Z[vt]=!0,_.each(S[vt]||[],function(_t,Dt){var Lt=Dt(R,B,U);return"string"!=typeof Lt||J||Z[Lt]?J?!(mt=Lt):void 0:(R.dataTypes.unshift(Lt),st(Lt),!1)}),mt}return st(R.dataTypes[0])||!Z["*"]&&st("*")}function Gn(S,R){var B,U,Z=_.ajaxSettings.flatOptions||{};for(B in R)void 0!==R[B]&&((Z[B]?S:U||(U={}))[B]=R[B]);return U&&_.extend(!0,S,U),S}Kn.href=Mn.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mn.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Mn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ui,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(S,R){return R?Gn(Gn(S,_.ajaxSettings),R):Gn(_.ajaxSettings,S)},ajaxPrefilter:hi(ci),ajaxTransport:hi(qn),ajax:function(S,R){"object"==typeof S&&(R=S,S=void 0);var B,U,Z,J,st,vt,mt,_t,Dt,Lt,Mt=_.ajaxSetup({},R=R||{}),Bt=Mt.context||Mt,re=Mt.context&&(Bt.nodeType||Bt.jquery)?_(Bt):_.event,he=_.Deferred(),de=_.Callbacks("once memory"),Ae=Mt.statusCode||{},Be={},rn={},sn="canceled",ve={readyState:0,getResponseHeader:function(xe){var Te;if(mt){if(!J)for(J={};Te=Ti.exec(Z);)J[Te[1].toLowerCase()+" "]=(J[Te[1].toLowerCase()+" "]||[]).concat(Te[2]);Te=J[xe.toLowerCase()+" "]}return null==Te?null:Te.join(", ")},getAllResponseHeaders:function(){return mt?Z:null},setRequestHeader:function(xe,Te){return null==mt&&(xe=rn[xe.toLowerCase()]=rn[xe.toLowerCase()]||xe,Be[xe]=Te),this},overrideMimeType:function(xe){return null==mt&&(Mt.mimeType=xe),this},statusCode:function(xe){var Te;if(xe)if(mt)ve.always(xe[ve.status]);else for(Te in xe)Ae[Te]=[Ae[Te],xe[Te]];return this},abort:function(xe){var Te=xe||sn;return B&&B.abort(Te),yn(0,Te),this}};if(he.promise(ve),Mt.url=((S||Mt.url||Mn.href)+"").replace(Ri,Mn.protocol+"//"),Mt.type=R.method||R.type||Mt.method||Mt.type,Mt.dataTypes=(Mt.dataType||"*").toLowerCase().match(wt)||[""],null==Mt.crossDomain){vt=w.createElement("a");try{vt.href=Mt.url,vt.href=vt.href,Mt.crossDomain=Kn.protocol+"//"+Kn.host!=vt.protocol+"//"+vt.host}catch(xe){Mt.crossDomain=!0}}if(Mt.data&&Mt.processData&&"string"!=typeof Mt.data&&(Mt.data=_.param(Mt.data,Mt.traditional)),di(ci,Mt,R,ve),mt)return ve;for(Dt in(_t=_.event&&Mt.global)&&0==_.active++&&_.event.trigger("ajaxStart"),Mt.type=Mt.type.toUpperCase(),Mt.hasContent=!Ai.test(Mt.type),U=Mt.url.replace(Pi,""),Mt.hasContent?Mt.data&&Mt.processData&&0===(Mt.contentType||"").indexOf("application/x-www-form-urlencoded")&&(Mt.data=Mt.data.replace(Mi,"+")):(Lt=Mt.url.slice(U.length),Mt.data&&(Mt.processData||"string"==typeof Mt.data)&&(U+=(Un.test(U)?"&":"?")+Mt.data,delete Mt.data),!1===Mt.cache&&(U=U.replace(Di,"$1"),Lt=(Un.test(U)?"&":"?")+"_="+si.guid+++Lt),Mt.url=U+Lt),Mt.ifModified&&(_.lastModified[U]&&ve.setRequestHeader("If-Modified-Since",_.lastModified[U]),_.etag[U]&&ve.setRequestHeader("If-None-Match",_.etag[U])),(Mt.data&&Mt.hasContent&&!1!==Mt.contentType||R.contentType)&&ve.setRequestHeader("Content-Type",Mt.contentType),ve.setRequestHeader("Accept",Mt.dataTypes[0]&&Mt.accepts[Mt.dataTypes[0]]?Mt.accepts[Mt.dataTypes[0]]+("*"!==Mt.dataTypes[0]?", "+ui+"; q=0.01":""):Mt.accepts["*"]),Mt.headers)ve.setRequestHeader(Dt,Mt.headers[Dt]);if(Mt.beforeSend&&(!1===Mt.beforeSend.call(Bt,ve,Mt)||mt))return ve.abort();if(sn="abort",de.add(Mt.complete),ve.done(Mt.success),ve.fail(Mt.error),B=di(qn,Mt,R,ve)){if(ve.readyState=1,_t&&re.trigger("ajaxSend",[ve,Mt]),mt)return ve;Mt.async&&0<Mt.timeout&&(st=h.setTimeout(function(){ve.abort("timeout")},Mt.timeout));try{mt=!1,B.send(Be,yn)}catch(xe){if(mt)throw xe;yn(-1,xe)}}else yn(-1,"No Transport");function yn(xe,Te,Dn,Xn){var an,Tn,un,fn,Cn,Ve=Te;mt||(mt=!0,st&&h.clearTimeout(st),B=void 0,Z=Xn||"",ve.readyState=0<xe?4:0,an=200<=xe&&xe<300||304===xe,Dn&&(fn=function(He,Ne,Ge){for(var pn,Ye,le,Re,Le=He.contents,Se=He.dataTypes;"*"===Se[0];)Se.shift(),void 0===pn&&(pn=He.mimeType||Ne.getResponseHeader("Content-Type"));if(pn)for(Ye in Le)if(Le[Ye]&&Le[Ye].test(pn)){Se.unshift(Ye);break}if(Se[0]in Ge)le=Se[0];else{for(Ye in Ge){if(!Se[0]||He.converters[Ye+" "+Se[0]]){le=Ye;break}
vendor: 4,766 bytes, line 1
1Re||(Re=Ye)}le=le||Re}if(le)return le!==Se[0]&&Se.unshift(le),Ge[le]}(Mt,ve,Dn)),!an&&-1<_.inArray("script",Mt.dataTypes)&&_.inArray("json",Mt.dataTypes)<0&&(Mt.converters["text script"]=function(){}),fn=function(He,Ne,Ge,pn){var Ye,le,Re,Le,Se,on={},Sn=He.dataTypes.slice();if(Sn[1])for(Re in He.converters)on[Re.toLowerCase()]=He.converters[Re];for(le=Sn.shift();le;)if(He.responseFields[le]&&(Ge[He.responseFields[le]]=Ne),!Se&&pn&&He.dataFilter&&(Ne=He.dataFilter(Ne,He.dataType)),Se=le,le=Sn.shift())if("*"===le)le=Se;else if("*"!==Se&&Se!==le){if(!(Re=on[Se+" "+le]||on["* "+le]))for(Ye in on)if((Le=Ye.split(" "))[1]===le&&(Re=on[Se+" "+Le[0]]||on["* "+Le[0]])){!0===Re?Re=on[Ye]:!0!==on[Ye]&&(le=Le[0],Sn.unshift(Le[1]));break}if(!0!==Re)if(Re&&He.throws)Ne=Re(Ne);else try{Ne=Re(Ne)}catch(Nn){return{state:"parsererror",error:Re?Nn:"No conversion from "+Se+" to "+le}}}return{state:"success",data:Ne}}(Mt,fn,ve,an),an?(Mt.ifModified&&((Cn=ve.getResponseHeader("Last-Modified"))&&(_.lastModified[U]=Cn),(Cn=ve.getResponseHeader("etag"))&&(_.etag[U]=Cn)),204===xe||"HEAD"===Mt.type?Ve="nocontent":304===xe?Ve="notmodified":(Ve=fn.state,Tn=fn.data,an=!(un=fn.error))):(un=Ve,!xe&&Ve||(Ve="error",xe<0&&(xe=0))),ve.status=xe,ve.statusText=(Te||Ve)+"",an?he.resolveWith(Bt,[Tn,Ve,ve]):he.rejectWith(Bt,[ve,Ve,un]),ve.statusCode(Ae),Ae=void 0,_t&&re.trigger(an?"ajaxSuccess":"ajaxError",[ve,Mt,an?Tn:un]),de.fireWith(Bt,[ve,Ve]),_t&&(re.trigger("ajaxComplete",[ve,Mt]),--_.active||_.event.trigger("ajaxStop")))}return ve},getJSON:function(S,R,B){return _.get(S,R,B,"json")},getScript:function(S,R){return _.get(S,void 0,R,"script")}}),_.each(["get","post"],function(S,R){_[R]=function(B,U,Z,J){return m(U)&&(J=J||Z,Z=U,U=void 0),_.ajax(_.extend({url:B,type:R,dataType:J,data:U,success:Z},_.isPlainObject(B)&&B))}}),_.ajaxPrefilter(function(S){var R;for(R in S.headers)"content-type"===R.toLowerCase()&&(S.contentType=S.headers[R]||"")}),_._evalUrl=function(S,R,B){return _.ajax({url:S,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(U){_.globalEval(U,R,B)}})},_.fn.extend({wrapAll:function(S){var R;return this[0]&&(m(S)&&(S=S.call(this[0])),R=_(S,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&R.insertBefore(this[0]),R.map(function(){for(var B=this;B.firstElementChild;)B=B.firstElementChild;return B}).append(this)),this},wrapInner:function(S){return m(S)?this.each(function(R){_(this).wrapInner(S.call(this,R))}):this.each(function(){var R=_(this),B=R.contents();B.length?B.wrapAll(S):R.append(S)})},wrap:function(S){var R=m(S);return this.each(function(B){_(this).wrapAll(R?S.call(this,B):S)})},unwrap:function(S){return this.parent(S).not("body").each(function(){_(this).replaceWith(this.childNodes)}),this}}),_.expr.pseudos.hidden=function(S){return!_.expr.pseudos.visible(S)},_.expr.pseudos.visible=function(S){return!!(S.offsetWidth||S.offsetHeight||S.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new h.XMLHttpRequest}catch(S){}};var Li={0:200,1223:204},Pn=_.ajaxSettings.xhr();x.cors=!!Pn&&"withCredentials"in Pn,x.ajax=Pn=!!Pn,_.ajaxTransport(function(S){var R,B;if(x.cors||Pn&&!S.crossDomain)return{send:function(U,Z){var J,st=S.xhr();if(st.open(S.type,S.url,S.async,S.username,S.password),S.xhrFields)for(J in S.xhrFields)st[J]=S.xhrFields[J];for(J in S.mimeType&&st.overrideMimeType&&st.overrideMimeType(S.mimeType),S.crossDomain||U["X-Requested-With"]||(U["X-Requested-With"]="XMLHttpRequest"),U)st.setRequestHeader(J,U[J]);R=function(vt){return function(){R&&(R=B=st.onload=st.onerror=st.onabort=st.ontimeout=st.onreadystatechange=null,"abort"===vt?st.abort():"error"===vt?"number"!=typeof st.status?Z(0,"error"):Z(st.status,st.statusText):Z(Li[st.status]||st.status,st.statusText,"text"!==(st.responseType||"text")||"string"!=typeof st.responseText?{binary:st.response}:{text:st.responseText},st.getAllResponseHeaders()))}},st.onload=R(),B=st.onerror=st.ontimeout=R("error"),void 0!==st.onabort?st.onabort=B:st.onreadystatechange=function(){4===st.readyState&&h.setTimeout(function(){R&&B()})},R=R("abort");try{st.send(S.hasContent&&S.data||null)}catch(vt){if(R)throw vt}},abort:function(){R&&R()}}}),_.ajaxPrefilter(function(S){S.crossDomain&&(S.contents.script=!1)}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(S){return _.globalEval(S),S}}}),_.ajaxPrefilter("script",function(S){void 0===S.cache&&(S.cache=!1),S.crossDomain&&(S.type="GET")}),_.ajaxTransport("script",function(S){var R,B;if(S.crossDomain||S.scriptAttrs)return{send:function(U,Z){R=_("<script>").attr(S.scriptAttrs||{}
vendor: 4,194 bytes, line 1
1).prop({charset:S.scriptCharset,src:S.url}).on("load error",B=function(J){R.remove(),B=null,J&&Z("error"===J.type?404:200,J.type)}),w.head.appendChild(R[0])},abort:function(){B&&B()}}});var fi,pi=[],Yn=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var S=pi.pop()||_.expando+"_"+si.guid++;return this[S]=!0,S}}),_.ajaxPrefilter("json jsonp",function(S,R,B){var U,Z,J,st=!1!==S.jsonp&&(Yn.test(S.url)?"url":"string"==typeof S.data&&0===(S.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yn.test(S.data)&&"data");if(st||"jsonp"===S.dataTypes[0])return U=S.jsonpCallback=m(S.jsonpCallback)?S.jsonpCallback():S.jsonpCallback,st?S[st]=S[st].replace(Yn,"$1"+U):!1!==S.jsonp&&(S.url+=(Un.test(S.url)?"&":"?")+S.jsonp+"="+U),S.converters["script json"]=function(){return J||_.error(U+" was not called"),J[0]},S.dataTypes[0]="json",Z=h[U],h[U]=function(){J=arguments},B.always(function(){void 0===Z?_(h).removeProp(U):h[U]=Z,S[U]&&(S.jsonpCallback=R.jsonpCallback,pi.push(U)),J&&m(Z)&&Z(J[0]),J=Z=void 0}),"script"}),x.createHTMLDocument=((fi=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===fi.childNodes.length),_.parseHTML=function(S,R,B){return"string"!=typeof S?[]:("boolean"==typeof R&&(B=R,R=!1),R||(x.createHTMLDocument?((U=(R=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,R.head.appendChild(U)):R=w),J=!B&&[],(Z=at.exec(S))?[R.createElement(Z[1])]:(Z=dt([S],R,J),J&&J.length&&_(J).remove(),_.merge([],Z.childNodes)));var U,Z,J},_.fn.load=function(S,R,B){var U,Z,J,st=this,vt=S.indexOf(" ");return-1<vt&&(U=mn(S.slice(vt)),S=S.slice(0,vt)),m(R)?(B=R,R=void 0):R&&"object"==typeof R&&(Z="POST"),0<st.length&&_.ajax({url:S,type:Z||"GET",dataType:"html",data:R}).done(function(mt){J=arguments,st.html(U?_("<div>").append(_.parseHTML(mt)).find(U):mt)}).always(B&&function(mt,_t){st.each(function(){B.apply(this,J||[mt.responseText,_t,mt])})}),this},_.expr.pseudos.animated=function(S){return _.grep(_.timers,function(R){return S===R.elem}).length},_.offset={setOffset:function(S,R,B){var U,Z,J,st,vt,mt,_t=_.css(S,"position"),Dt=_(S),Lt={};"static"===_t&&(S.style.position="relative"),vt=Dt.offset(),J=_.css(S,"top"),mt=_.css(S,"left"),("absolute"===_t||"fixed"===_t)&&-1<(J+mt).indexOf("auto")?(st=(U=Dt.position()).top,Z=U.left):(st=parseFloat(J)||0,Z=parseFloat(mt)||0),m(R)&&(R=R.call(S,B,_.extend({},vt))),null!=R.top&&(Lt.top=R.top-vt.top+st),null!=R.left&&(Lt.left=R.left-vt.left+Z),"using"in R?R.using.call(S,Lt):Dt.css(Lt)}},_.fn.extend({offset:function(S){if(arguments.length)return void 0===S?this:this.each(function(Z){_.offset.setOffset(this,S,Z)});var R,B,U=this[0];return U?U.getClientRects().length?{top:(R=U.getBoundingClientRect()).top+(B=U.ownerDocument.defaultView).pageYOffset,left:R.left+B.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var S,R,B,U=this[0],Z={top:0,left:0};if("fixed"===_.css(U,"position"))R=U.getBoundingClientRect();else{for(R=this.offset(),B=U.ownerDocument,S=U.offsetParent||B.documentElement;S&&(S===B.body||S===B.documentElement)&&"static"===_.css(S,"position");)S=S.parentNode;S&&S!==U&&1===S.nodeType&&((Z=_(S).offset()).top+=_.css(S,"borderTopWidth",!0),Z.left+=_.css(S,"borderLeftWidth",!0))}return{top:R.top-Z.top-_.css(U,"marginTop",!0),left:R.left-Z.left-_.css(U,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var S=this.offsetParent;S&&"static"===_.css(S,"position");)S=S.offsetParent;return S||f})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(S,R){var B="pageYOffset"===R;_.fn[S]=function(U){return qt(this,function(Z,J,st){var vt;if(g(Z)?vt=Z:9===Z.nodeType&&(vt=Z.defaultView),void 0===st)return vt?vt[R]:Z[J];vt?vt.scrollTo(B?vt.pageXOffset:st,B?st:vt.pageYOffset):Z[J]=st},S,U,arguments.length)}}),_.each(["top","left"],function(S,R){_.cssHooks[R]=$e(x.pixelPosition,function(B,U){if(U)return U=Ke(B,R),ze.test(U)?_(B).position()[R]+"px":U})}),_.each({Height:"height",Width:"width"},function(S,R){_.each({padding:"inner"+S,content:R,"":"outer"+S},function(B,U){_.fn[U]=function(Z,J){var st=arguments.length&&(B||"boolean"!=typeof Z),vt=B||(!0===
1Z||!0===J?"margin":"border");return qt(this,function(mt,_t,Dt){var Lt;return g(mt)?0===U.indexOf("outer")?mt["inner"+S]:mt.document.documentElement["client"+S]:9===mt.nodeType?(Lt=mt.documentElement,Math.max(mt.body["scroll"+S],Lt["scroll"+S],mt.body["offset"+S],Lt["offset"+S],Lt["client"+S])):void 0===Dt?_.css(mt,_t,vt):_.style(mt,_t,Dt,vt)},R,st?Z:void 0,st)}})}),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(S,R){_.fn[R]=function(B){return this.on(R,B)}}),_.fn.extend({bind:function(S,R,B){return this.on(S,null,R,B)},unbind:function(S,R){return this.off(S,null,R)},delegate:function(S,R,B,U){return this.on(R,S,B,U)},undelegate:function(S,R,B){return 1===arguments.length?this.off(S,"**"):this.off(R,S||"**",B)},hover:function(S,R){return this.on("mouseenter",S).on("mouseleave",R||S)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(S,R){_.fn[R]=function(B,U){return 0<arguments.length?this.on(R,null,B,U):this.trigger(R)}});var Ni=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;_.proxy=function(S,R){var B,U,Z;if("string"==typeof R&&(B=S[R],R=S,S=B),m(S))return U=a.call(arguments,2),(Z=function(){return S.apply(R||this,U.concat(a.call(arguments)))}).guid=S.guid=S.guid||_.guid++,Z},_.holdReady=function(S){S?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=A,_.isFunction=m,_.isWindow=g,_.camelCase=Ut,_.type=M,_.now=Date.now,_.isNumeric=function(S){var R=_.type(S);return("number"===R||"string"===R)&&!isNaN(S-parseFloat(S))},_.trim=function(S){return null==S?"":(S+"").replace(Ni,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return _});var Oi=h.jQuery,zi=h.$;return _.noConflict=function(S){return h.$===_&&(h.$=zi),S&&h.jQuery===_&&(h.jQuery=Oi),_},void 0===y&&(h.jQuery=h.$=_),_}),function(h){"use strict";"function"==typeof define&&define.amd?define(["jquery"],h):h(jQuery)}(function(h){"use strict";h.ui=h.ui||{},h.ui.version="1.13.3";var y,c,d,a,v,t,s,n,r,u,l=0,p=Array.prototype.hasOwnProperty,x=Array.prototype.slice;function m(o,f,b){return[parseFloat(o[0])*(r.test(o[0])?f/100:1),parseFloat(o[1])*(r.test(o[1])?b/100:1)]}function g(o,f){return parseInt(h.css(o,f),10)||0}function w(o){return null!=o&&o===o.window}h.cleanData=(y=h.cleanData,function(o){for(var f,b,E=0;null!=(b=o[E]);E++)(f=h._data(b,"events"))&&f.remove&&h(b).triggerHandler("remove");y(o)}),h.widget=function(o,f,b){var E,D,H,Y={},nt=o.split(".")[0],ot=nt+"-"+(o=o.split(".")[1]);return b||(b=f,f=h.Widget),Array.isArray(b)&&(b=h.extend.apply(null,[{}].concat(b))),h.expr.pseudos[ot.toLowerCase()]=function(K){return!!h.data(K,ot)},h[nt]=h[nt]||{},E=h[nt][o],D=h[nt][o]=function(K,G){if(!this||!this._createWidget)return new D(K,G);arguments.length&&this._createWidget(K,G)},h.extend(D,E,{version:b.version,_proto:h.extend({},b),_childConstructors:[]}),(H=new f).options=h.widget.extend({},H.options),h.each(b,function(K,G){function Q(){return f.prototype[K].apply(this,arguments)}function pt(bt){return f.prototype[K].apply(this,bt)}Y[K]="function"!=typeof G?G:function(){var bt,Ht=this._super,Ft=this._superApply;return this._super=Q,this._superApply=pt,bt=G.apply(this,arguments),this._super=Ht,this._superApply=Ft,bt}}),D.prototype=h.widget.extend(H,{widgetEventPrefix:E&&H.widgetEventPrefix||o},Y,{constructor:D,namespace:nt,widgetName:o,widgetFullName:ot}),E?(h.each(E._childConstructors,function(K,G){var Q=G.prototype;h.widget(Q.namespace+"."+Q.widgetName,D,G._proto)}),delete E._childConstructors):f._childConstructors.push(D),h.widget.bridge(o,D),D},h.widget.extend=function(o){for(var f,b,E=x.call(arguments,1),D=0,H=E.length;D<H;D++)for(f in E[D])b=E[D][f],p.call(E[D],f)&&void 0!==b&&(o[f]=h.isPlainObject(b)?h.isPlainObject(o[f])?h.widget.extend({},o[f],b):h.widget.extend({},b):b);return o},h.widget.bridge=function(o,f){var b=f.prototype.widgetFullName||o;h.fn[o]=function(E){var D="string"==typeof E,H=x.call(arguments,1
vendor: 68,285 bytes, line 1
1),Y=this;return D?this.length||"instance"!==E?this.each(function(){var nt,ot=h.data(this,b);return"instance"===E?(Y=ot,!1):ot?"function"!=typeof ot[E]||"_"===E.charAt(0)?h.error("no such method '"+E+"' for "+o+" widget instance"):(nt=ot[E].apply(ot,H))!==ot&&void 0!==nt?(Y=nt&&nt.jquery?Y.pushStack(nt.get()):nt,!1):void 0:h.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+E+"'")}):Y=void 0:(H.length&&(E=h.widget.extend.apply(null,[E].concat(H))),this.each(function(){var nt=h.data(this,b);nt?(nt.option(E||{}),nt._init&&nt._init()):h.data(this,b,new f(E,this))})),Y}},h.Widget=function(){},h.Widget._childConstructors=[],h.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(o,f){f=h(f||this.defaultElement||this)[0],this.element=h(f),this.uuid=l++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=h(),this.hoverable=h(),this.focusable=h(),this.classesElementLookup={},f!==this&&(h.data(f,this.widgetFullName,this),this._on(!0,this.element,{remove:function(b){b.target===f&&this.destroy()}}),this.document=h(f.style?f.ownerDocument:f.document||f),this.window=h(this.document[0].defaultView||this.document[0].parentWindow)),this.options=h.widget.extend({},this.options,this._getCreateOptions(),o),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:h.noop,_create:h.noop,_init:h.noop,destroy:function(){var o=this;this._destroy(),h.each(this.classesElementLookup,function(f,b){o._removeClass(b,f)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:h.noop,widget:function(){return this.element},option:function(o,f){var b,E,D,H=o;if(0===arguments.length)return h.widget.extend({},this.options);if("string"==typeof o)if(H={},o=(b=o.split(".")).shift(),b.length){for(E=H[o]=h.widget.extend({},this.options[o]),D=0;D<b.length-1;D++)E[b[D]]=E[b[D]]||{},E=E[b[D]];if(o=b.pop(),1===arguments.length)return void 0===E[o]?null:E[o];E[o]=f}else{if(1===arguments.length)return void 0===this.options[o]?null:this.options[o];H[o]=f}return this._setOptions(H),this},_setOptions:function(o){for(var f in o)this._setOption(f,o[f]);return this},_setOption:function(o,f){return"classes"===o&&this._setOptionClasses(f),this.options[o]=f,"disabled"===o&&this._setOptionDisabled(f),this},_setOptionClasses:function(o){var f,b,E;for(f in o)E=this.classesElementLookup[f],o[f]!==this.options.classes[f]&&E&&E.length&&(b=h(E.get()),this._removeClass(E,f),b.addClass(this._classes({element:b,keys:f,classes:o,add:!0})))},_setOptionDisabled:function(o){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!o),o&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var f=[],b=this;function E(D,H){for(var Y,nt=0;nt<D.length;nt++)Y=b.classesElementLookup[D[nt]]||h(),Y=o.add?(function(){var ot=[];o.element.each(function(K,G){h.map(b.classesElementLookup,function(Q){return Q}).some(function(Q){return Q.is(G)})||ot.push(G)}),b._on(h(ot),{remove:"_untrackClassesElement"})}(),h(h.uniqueSort(Y.get().concat(o.element.get())))):h(Y.not(o.element).get()),b.classesElementLookup[D[nt]]=Y,f.push(D[nt]),H&&o.classes[D[nt]]&&f.push(o.classes[D[nt]])}return(o=h.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&E(o.keys.match(/\S+/g)||[],!0),o.extra&&E(o.extra.match(/\S+/g)||[]),f.join(" ")},_untrackClassesElement:function(o){var f=this;h.each(f.classesElementLookup,function(b,E){-1!==h.inArray(o.target,E)&&(f.classesElementLookup[b]=h(E.not(o.target).get()))}),this._off(h(o.target))},_removeClass:function(o,f,b){return this._toggleClass(o,f,b,!1)},_addClass:function(o,f,b){return this._toggleClass(o,f,b,!0)},_toggleClass:function(o,H,b,E){var D="string"==typeof o||null===o;return(H={extra:D?H:b,keys:D?o:H,element:D?this.element:o,add:E="boolean"==typeof E?E:b}).element.toggleClass(this._classes(H),E),this},_on:function(o,f,b){var E,D=this;"boolean"!=typeof o&&(b=f,f=o,o=!1),b?(f=E=h(f),this.bindings=this.bindings.add(f)):(b=f,f=this.element,E=this.widget()),h.each(b,function(K,Y){function nt(){if(o||!0!==D.options.disabled&&!h(this).hasClass("ui-state-disabled"))return("string"==typeof Y?D[Y]:Y).apply(D,arguments)}"string"!=typeof Y&&(nt.guid=Y.guid=Y.guid||nt.guid||h.guid++);var ot=(K=K.match(/^([\w:-]*)\s*(.*)$/))[1]+D.eventNamespace;(K=K[2])?E.on(ot,K,nt):f.on(ot,nt)})},_off:function(o,f){f=(f||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,o.off(f),this.bindings=h(this.bindings.not(o).get()),this.focusable=h(this.focusable.not(o).get()),this.hoverable=h(this.hoverable.not(o).get())},_delay:function(o,f){var b=this;return setTimeout(function(){return("string"==typeof o?b[o]:o).apply(b,arguments)},f||0)},_hoverable:function(o){this.hoverable=this.hoverable.add(o),this._on(o,{mouseenter:function(f){this._addClass(h(f.currentTarget),null,"ui-state-hover")},mouseleave:function(f){this._removeClass(h(f.currentTarget),null,"ui-state-hover")}})},_focusable:function(o){this.focusable=this.focusable.add(o),this._on(o,{focusin:function(f){this._addClass(h(f.currentTarget),null,"ui-state-focus")},focusout:function(f){this._removeClass(h(f.currentTarget),null,"ui-state-focus")}})},_trigger:function(o,f,b){var E,D,H=this.options[o];if(b=b||{},(f=h.Event(f)).type=(o===this.widgetEventPrefix?o:this.widgetEventPrefix+o).toLowerCase(),f.target=this.element[0],D=f.originalEvent)for(E in D)E in f||(f[E]=D[E]);return this.element.trigger(f,b),!("function"==typeof H&&!1===H.apply(this.element[0],[f].concat(b))||f.isDefaultPrevented())}},h.each({show:"fadeIn",hide:"fadeOut"},function(o,f){h.Widget.prototype["_"+o]=function(b,E,D){var H,Y=(E="string"==typeof E?{effect:E}:E)?!0!==E&&"number"!=typeof E&&E.effect||f:o;"number"==typeof(E=E||{})?E={duration:E}:!0===E&&(E={}),H=!h.isEmptyObject(E),E.complete=D,E.delay&&b.delay(E.delay),H&&h.effects&&h.effects.effect[Y]?b[o](E):Y!==o&&b[Y]?b[Y](E.duration,E.easing,D):b.queue(function(nt){h(this)[o](),D&&D.call(b[0]),nt()})}}),d=Math.max,a=Math.abs,v=/left|center|right/,t=/top|center|bottom/,s=/[\+\-]\d+(\.[\d]+)?%?/,n=/^\w+/,r=/%$/,u=h.fn.position,h.position={scrollbarWidth:function(){var o,f,b;return void 0!==c?c:(b=(f=h("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],h("body").append(f),o=b.offsetWidth,f.css("overflow","scroll"),o===(b=b.offsetWidth)&&(b=f[0].clientWidth),f.remove(),c=o-b)},getScrollInfo:function(o){var b=o.isWindow||o.isDocument?"":o.element.css("overflow-x"),f=o.isWindow||o.isDocument?"":o.element.css("overflow-y");return b="scroll"===b||"auto"===b&&o.width<o.element[0].scrollWidth,{width:"scroll"===f||"auto"===f&&o.height<o.element[0].scrollHeight?h.position.scrollbarWidth():0,height:b?h.position.scrollbarWidth():0}},getWithinInfo:function(o){var f=h(o||window),b=w(f[0]),E=!!f[0]&&9===f[0].nodeType;return{element:f,isWindow:b,isDocument:E,offset:b||E?{left:0,top:0}:h(o).offset(),scrollLeft:f.scrollLeft(),scrollTop:f.scrollTop(),width:f.outerWidth(),height:f.outerHeight()}}},h.fn.position=function(o){var f,b,E,D,H,Y,nt,ot,K,G,Q,pt;return o&&o.of?(Y="string"==typeof(o=h.extend({},o)).of?h(document).find(o.of):h(o.of),nt=h.position.getWithinInfo(o.within),ot=h.position.getScrollInfo(nt),K=(o.collision||"flip").split(" "),G={},pt=9===(pt=(Q=Y)[0]).nodeType?{width:Q.width(),height:Q.height(),offset:{top:0,left:0}}:w(pt)?{width:Q.width(),height:Q.height(),offset:{top:Q.scrollTop(),left:Q.scrollLeft()}}:pt.preventDefault?{width:0,height:0,offset:{top:pt.pageY,left:pt.pageX}}:{width:Q.outerWidth(),height:Q.outerHeight(),offset:Q.offset()},Y[0].preventDefault&&(o.at="left top"),b=pt.width,E=pt.height,H=h.extend({},D=pt.offset),h.each(["my","at"],function(){var bt,Ht,Ft=(o[this]||"").split(" ");(Ft=1===Ft.length?v.test(Ft[0])?Ft.concat(["center"]):t.test(Ft[0])?["center"].concat(Ft):["center","center"]:Ft)[0]=v.test(Ft[0])?Ft[0]:"center",Ft[1]=t.test(Ft[1])?Ft[1]:"center",bt=s.exec(Ft[0]),Ht=s.exec(Ft[1]),G[this]=[bt?bt[0]:0,Ht?Ht[0]:0],o[this]=[n.exec(Ft[0])[0],n.exec(Ft[1])[0]]}),1===K.length&&(K[1]=K[0]),"right"===o.at[0]?H.left+=b:"center"===o.at[0]&&(H.left+=b/2),"bottom"===o.at[1]?H.top+=E:"center"===o.at[1]&&(H.top+=E/2),f=m(G.at,b,E),H.left+=f[0],H.top+=f[1],this.each(function(){var bt,Ht,Ft=h(this),V=Ft.outerWidth(),dt=Ft.outerHeight(),gt=g(this,"marginLeft"),yt=g(this,"marginTop"),St=V+gt+g(this,"marginRight")+ot.width,Et=dt+yt+g(this,"marginBottom")+ot.height,At=h.extend({},H),Ot=m(G.my,Ft.outerWidth(),Ft.outerHeight());"right"===o.my[0]?At.left-=V:"center"===o.my[0]&&(At.left-=V/2),"bottom"===o.my[1]?At.top-=dt:"center"===o.my[1]&&(At.top-=dt/2),At.left+=Ot[0],At.top+=Ot[1],bt={marginLeft:gt,marginTop:yt},h.each(["left","top"],function(Gt,Xt){h.ui.position[K[Gt]]&&h.ui.position[K[Gt]][Xt](At,{targetWidth:b,targetHeight:E,elemWidth:V,elemHeight:dt,collisionPosition:bt,collisionWidth:St,collisionHeight:Et,offset:[f[0]+Ot[0],f[1]+Ot[1]],my:o.my,at:o.at,within:nt,elem:Ft})}),o.using&&(Ht=function(Gt){var Xt=D.left-At.left,Zt=Xt+b-V,Wt=D.top-At.top,ae=Wt+E-dt,se={target:{element:Y,left:D.left,top:D.top,width:b,height:E},element:{element:Ft,left:At.left,top:At.top,width:V,height:dt},horizontal:Zt<0?"left":0<Xt?"right":"center",vertical:ae<0?"top":0<Wt?"bottom":"middle"};b<V&&a(Xt+Zt)<b&&(se.horizontal="center"),E<dt&&a(Wt+ae)<E&&(se.vertical="middle"),se.important=d(a(Xt),a(Zt))>d(a(Wt),a(ae))?"horizontal":"vertical",o.using.call(this,Gt,se)}),Ft.offset(h.extend(At,{using:Ht}))})):u.apply(this,arguments)},h.ui.position={fit:{left:function(o,f){var D,E=(D=f.within).isWindow?D.scrollLeft:D.offset.left,H=o.left-f.collisionPosition.marginLeft,Y=E-H,nt=H+f.collisionWidth-(D=D.width)-E;f.collisionWidth>D?0<Y&&nt<=0?o.left+=Y-(o.left+Y+f.collisionWidth-D-E):o.left=!(0<nt&&Y<=0)&&nt<Y?E+D-f.collisionWidth:E:0<Y?o.left+=Y:0<nt?o.left-=nt:o.left=d(o.left-H,o.left)},top:function(o,f){var E,D=f.within.height,H=o.top-f.collisionPosition.marginTop,Y=(E=(E=f.within).isWindow?E.scrollTop:E.offset.top)-H,nt=H+f.collisionHeight-D-E;f.collisionHeight>D?0<Y&&nt<=0?o.top+=Y-(o.top+Y+f.collisionHeight-D-E):o.top=!(0<nt&&Y<=0)&&nt<Y?E+D-f.collisionHeight:E:0<Y?o.top+=Y:0<nt?o.top-=nt:o.top=d(o.top-H,o.top)}},flip:{left:function(o,f){var D,b=(D=f.within).offset.left+D.scrollLeft,E=D.width,H=(Y=o.left-f.collisionPosition.marginLeft)-(D=D.isWindow?D.scrollLeft:D.offset.left),Y=Y+f.collisionWidth-E-D,nt="left"===f.my[0]?-f.elemWidth:"right"===f.my[0]?f.elemWidth:0,ot="left"===f.at[0]?f.targetWidth:"right"===f.at[0]?-f.targetWidth:0,K=-2*f.offset[0];H<0?((E=o.left+nt+ot+K+f.collisionWidth-E-b)<0||E<a(H))&&(o.left+=nt+ot+K):0<Y&&(0<(b=o.left-f.collisionPosition.marginLeft+nt+ot+K-D)||a(b)<Y)&&(o.left+=nt+ot+K)},top:function(o,f){var D,b=(D=f.within).offset.top+D.scrollTop,E=D.height,H=(Y=o.top-f.collisionPosition.marginTop)-(D=D.isWindow?D.scrollTop:D.offset.top),Y=Y+f.collisionHeight-E-D,nt="top"===f.my[1]?-f.elemHeight:"bottom"===f.my[1]?f.elemHeight:0,ot="top"===f.at[1]?f.targetHeight:"bottom"===f.at[1]?-f.targetHeight:0,K=-2*f.offset[1];H<0?((E=o.top+nt+ot+K+f.collisionHeight-E-b)<0||E<a(H))&&(o.top+=nt+ot+K):0<Y&&(0<(b=o.top-f.collisionPosition.marginTop+nt+ot+K-D)||a(b)<Y)&&(o.top+=nt+ot+K)}},flipfit:{left:function(){h.ui.position.flip.left.apply(this,arguments),h.ui.position.fit.left.apply(this,arguments)},top:function(){h.ui.position.flip.top.apply(this,arguments),h.ui.position.fit.top.apply(this,arguments)}}},h.extend(h.expr.pseudos,{data:h.expr.createPseudo?h.expr.createPseudo(function(o){return function(f){return!!h.data(f,o)}}):function(o,f,b){return!!h.data(o,b[3])}}),h.fn.extend({disableSelection:(C="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(C+".ui-disableSelection",function(o){o.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var C,k=h,M={},N=M.toString,O=/^([\-+])=\s*(\d+\.?\d*)/,_=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(o){return[o[1],o[2],o[3],o[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(o){return[2.55*o[1],2.55*o[2],2.55*o[3],o[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16),o[4]?(parseInt(o[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16),o[4]?(parseInt(o[4]+o[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(o){return[o[1],o[2]/100,o[3]/100,o[4]]}}],P=k.Color=function(o,f,b,E){return new k.Color.fn.parse(o,f,b,E)},A={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},T={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},L=P.support={},I=k("<p>")[0],F=k.each;function W(o){return null==o?o+"":"object"==typeof o?M[N.call(o)]||"object":typeof o}function q(o,f,b){var E=T[f.type]||{};return null==o?b||!f.def?null:f.def:(o=E.floor?~~o:parseFloat(o),isNaN(o)?f.def:E.mod?(o+E.mod)%E.mod:Math.min(E.max,Math.max(0,o)))}function et(o){var f=P(),b=f._rgba=[];return o=o.toLowerCase(),F(_,function(E,Y){var H=(H=Y.re.exec(o))&&Y.parse(H);if(Y=Y.space||"rgba",H)return H=f[Y](H),f[A[Y].cache]=H[A[Y].cache],b=f._rgba=H._rgba,!1}),b.length?("0,0,0,0"===b.join()&&k.extend(b,kt.transparent),f):kt[o]}function X(o,f,b){return 6*(b=(b+1)%1)<1?o+(f-o)*b*6:2*b<1?f:3*b<2?o+(f-o)*(2/3-b)*6:o}I.style.cssText="background-color:rgba(1,1,1,.5)",L.rgba=-1<I.style.backgroundColor.indexOf("rgba"),F(A,function(o,f){f.cache="_"+o,f.props.alpha={idx:3,type:"percent",def:1}}),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(o,f){M["[object "+f+"]"]=f.toLowerCase()}),(P.fn=k.extend(P.prototype,{parse:function(o,f,b,E){if(void 0===o)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=k(o).css(f),f=void 0);var D=this,H=W(o),Y=this._rgba=[];return void 0!==f&&(o=[o,f,b,E],H="array"),"string"===H?this.parse(et(o)||kt._default):"array"===H?(F(A.rgba.props,function(nt,ot){Y[ot.idx]=q(o[ot.idx],ot)}),this):"object"===H?(F(A,o instanceof P?function(nt,ot){o[ot.cache]&&(D[ot.cache]=o[ot.cache].slice())}:function(nt,ot){var K=ot.cache;F(ot.props,function(G,Q){if(!D[K]&&ot.to){if("alpha"===G||null==o[G])return;D[K]=ot.to(D._rgba)}D[K][Q.idx]=q(o[G],Q,!0)}),D[K]&&k.inArray(null,D[K].slice(0,3))<0&&(null==D[K][3]&&(D[K][3]=1),ot.from)&&(D._rgba=ot.from(D[K]))}),this):void 0},is:function(o){var f=P(o),b=!0,E=this;return F(A,function(D,H){var Y,nt=f[H.cache];return nt&&(Y=E[H.cache]||H.to&&H.to(E._rgba)||[],F(H.props,function(ot,K){if(null!=nt[K.idx])return b=nt[K.idx]===Y[K.idx]})),b}),b},_space:function(){var o=[],f=this;return F(A,function(b,E){f[E.cache]&&o.push(b)}),o.pop()},transition:function(b,f){b=(nt=P(b))._space();var E=A[b],D=0===this.alpha()?P("transparent"):this,H=D[E.cache]||E.to(D._rgba),Y=H.slice(),nt=nt[E.cache];return F(E.props,function(ot,K){var G=K.idx,Q=H[G],pt=nt[G],bt=T[K.type]||{};null!==pt&&(null===Q?Y[G]=pt:(bt.mod&&(pt-Q>bt.mod/2?Q+=bt.mod:Q-pt>bt.mod/2&&(Q-=bt.mod)),Y[G]=q((pt-Q)*f+Q,K)))}),this[b](Y)},blend:function(o){var f,b,E;return 1===this._rgba[3]?this:(f=this._rgba.slice(),b=f.pop(),E=P(o)._rgba,P(k.map(f,function(D,H){return(1-b)*E[H]+b*D})))},toRgbaString:function(){var o="rgba(",f=k.map(this._rgba,function(b,E){return null!=b?b:2<E?1:0});return 1===f[3]&&(f.pop(),o="rgb("),o+f.join()+")"},toHslaString:function(){var o="hsla(",f=k.map(this.hsla(),function(b,E){return null==b&&(b=2<E?1:0),E&&E<3?Math.round(100*b)+"%":b});return 1===f[3]&&(f.pop(),o="hsl("),o+f.join()+")"},toHexString:function(o){var f=this._rgba.slice(),b=f.pop();return o&&f.push(~~(255*b)),"#"+k.map(f,function(E){return 1===(E=(E||0).toString(16)).length?"0"+E:E}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=P.fn,A.hsla.to=function(o){var f,b,E,D,H,Y,nt,ot;return null==o[0]||null==o[1]||null==o[2]?[null,null,null,o[3]]:(f=o[0]/255,b=o[1]/255,E=o[2]/255,o=o[3],D=(ot=Math.max(f,b,E))-(nt=Math.min(f,b,E)),Y=.5*(H=ot+nt),nt=nt===ot?0:f===ot?60*(b-E)/D+360:b===ot?60*(E-f)/D+120:60*(f-b)/D+240,ot=0==D?0:Y<=.5?D/H:D/(2-H),[Math.round(nt)%360,ot,Y,null==o?1:o])},A.hsla.from=function(o){var f,b,E;return null==o[0]||null==o[1]||null==o[2]?[null,null,null,o[3]]:(f=o[0]/360,E=o[1],b=o[2],o=o[3],E=2*b-(b=b<=.5?b*(1+E):b+E-b*E),[Math.round(255*X(E,b,f+1/3)),Math.round(255*X(E,b,f)),Math.round(255*X(E,b,f-1/3)),o])},F(A,function(o,f){var b=f.props,E=f.cache,D=f.to,H=f.from;P.fn[o]=function(Y){var nt,ot,K;return D&&!this[E]&&(this[E]=D(this._rgba)),void 0===Y?this[E].slice():(nt=W(Y),ot="array"===nt||"object"===nt?Y:arguments,K=this[E].slice(),F(b,function(G,Q){null==(G=ot["object"===nt?G:Q.idx])&&(G=K[Q.idx]),K[Q.idx]=q(G,Q)}),H?((Y=P(H(K)))[E]=K,Y):P(K))},F(b,function(Y,nt){P.fn[Y]||(P.fn[Y]=function(ot){var K=W(ot),G="alpha"===Y?this._hsla?"hsla":"rgba":o,Q=this[G](),pt=Q[nt.idx];return"undefined"===K?pt:("function"===K&&(K=W(ot=ot.call(this,pt))),null==ot&&nt.empty?this:("string"===K&&(K=O.exec(ot))&&(ot=pt+parseFloat(K[2])*("+"===K[1]?1:-1)),Q[nt.idx]=ot,this[G](Q)))})})}),(P.hook=function(o){o=o.split(" "),F(o,function(f,b){k.cssHooks[b]={set:function(E,D){var H,Y,nt="";if("transparent"!==D&&("string"!==W(D)||(H=et(D)))){if(D=P(H||D),!L.rgba&&1!==D._rgba[3]){for(Y="backgroundColor"===b?E.parentNode:E;(""===nt||"transparent"===nt)&&Y&&Y.style;)try{nt=k.css(Y,"backgroundColor"),Y=Y.parentNode}catch(ot){}D=D.blend(nt&&"transparent"!==nt?nt:"_default")}D=D.toRgbaString()}try{E.style[b]=D}catch(ot){}}},k.fx.step[b]=function(E){E.colorInit||(E.start=P(E.elem,b),E.end=P(E.end),E.colorInit=!0),k.cssHooks[b].set(E.elem,E.start.transition(E.end,E.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),k.cssHooks.borderColor={expand:function(o){var f={};return F(["Top","Right","Bottom","Left"],function(b,E){f["border"+E+"Color"]=o}),f}};var it,z,j,tt,at,ct,ut,rt,lt,ft,kt=k.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},wt="ui-effects-",Nt="ui-effects-style",Yt="ui-effects-animated";function Qt(o){var f,b,E=o.ownerDocument.defaultView?o.ownerDocument.defaultView.getComputedStyle(o,null):o.currentStyle,D={};if(E&&E.length&&E[0]&&E[E[0]])for(b=E.length;b--;)"string"==typeof E[f=E[b]]&&(D[f.replace(/-([\da-z])/gi,function(H,Y){return Y.toUpperCase()})]=E[f]);else for(f in E)"string"==typeof E[f]&&(D[f]=E[f]);return D}function $t(o,f,b,E){return o={effect:o=h.isPlainObject(o)?(f=o).effect:o},"function"==typeof(f=null==f?{}:f)&&(E=f,b=null,f={}),"number"!=typeof f&&!h.fx.speeds[f]||(E=b,b=f,f={}),"function"==typeof b&&(E=b,b=null),f&&h.extend(o,f),b=b||f.duration,o.duration=h.fx.off?0:"number"==typeof b?b:b in h.fx.speeds?h.fx.speeds[b]:h.fx.speeds._default,o.complete=E||f.complete,o}function ce(o){return!o||"number"==typeof o||h.fx.speeds[o]||"string"==typeof o&&!h.effects.effect[o]||"function"==typeof o||"object"==typeof o&&!o.effect}function fe(D,E){var b=E.outerWidth();return E=E.outerHeight(),D=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(D)||["",0,b,E,0],{top:parseFloat(D[1])||0,right:"auto"===D[2]?b:parseFloat(D[2]),bottom:"auto"===D[3]?E:parseFloat(D[3]),left:parseFloat(D[4])||0}}h.effects={effect:{}},tt=["add","remove","toggle"],at={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},h.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(o,f){h.fx.step[f]=function(b){("none"!==b.end&&!b.setAttr||1===b.pos&&!b.setAttr)&&(k.style(b.elem,f,b.end),b.setAttr=!0)}}),h.fn.addBack||(h.fn.addBack=function(o){return this.add(null==o?this.prevObject:this.prevObject.filter(o))}),h.effects.animateClass=function(o,f,b,E){var D=h.speed(f,b,E);return this.queue(function(){var H=h(this),Y=H.attr("class")||"",nt=(nt=D.children?H.find("*").addBack():H).map(function(){return{el:h(this),start:Qt(this)}}),ot=function(){h.each(tt,function(K,G){o[G]&&H[G+"Class"](o[G])})};ot(),nt=nt.map(function(){return this.end=Qt(this.el[0]),this.diff=function(K,G){var Q,pt,bt={};for(Q in G)K[Q]===(pt=G[Q])||at[Q]||!h.fx.step[Q]&&isNaN(parseFloat(pt))||(bt[Q]=pt);return bt}(this.start,this.end),this}),H.attr("class",Y),nt=nt.map(function(){var K=this,G=h.Deferred(),Q=h.extend({},D,{queue:!1,complete:function(){G.resolve(K)}});return this.el.animate(this.diff,Q),G.promise()}),h.when.apply(h,nt.get()).done(function(){ot(),h.each(arguments,function(){var K=this.el;h.each(this.diff,function(G){K.css(G,"")})}),D.complete.call(H[0])})})},h.fn.extend({addClass:(j=h.fn.addClass,function(o,f,b,E){return f?h.effects.animateClass.call(this,{add:o},f,b,E):j.apply(this,arguments)}),removeClass:(z=h.fn.removeClass,function(o,f,b,E){return 1<arguments.length?h.effects.animateClass.call(this,{remove:o},f,b,E):z.apply(this,arguments)}),toggleClass:(it=h.fn.toggleClass,function(o,f,b,E,D){return"boolean"==typeof f||void 0===f?b?h.effects.animateClass.call(this,f?{add:o}:{remove:o},b,E,D):it.apply(this,arguments):h.effects.animateClass.call(this,{toggle:o},f,b,E)}),switchClass:function(o,f,b,E,D){return h.effects.animateClass.call(this,{add:f,remove:o},b,E,D)}}),h.expr&&h.expr.pseudos&&h.expr.pseudos.animated&&(h.expr.pseudos.animated=(ct=h.expr.pseudos.animated,function(o){return!!h(o).data(Yt)||ct(o)})),!1!==h.uiBackCompat&&h.extend(h.effects,{save:function(o,f){for(var b=0,E=f.length;b<E;b++)null!==f[b]&&o.data(wt+f[b],o[0].style[f[b]])},restore:function(o,f){for(var b,E=0,D=f.length;E<D;E++)null!==f[E]&&(b=o.data(wt+f[E]),o.css(f[E],b))},setMode:function(o,f){return"toggle"===f?o.is(":hidden")?"show":"hide":f},createWrapper:function(o){if(o.parent().is(".ui-effects-wrapper"))return o.parent();var f={width:o.outerWidth(!0),height:o.outerHeight(!0),float:o.css("float")},b=h("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),E={width:o.width(),height:o.height()},D=document.activeElement;return o.wrap(b),o[0]!==D&&!h.contains(o[0],D)||h(D).trigger("focus"),b=o.parent(),"static"===o.css("position")?(b.css({position:"relative"}),o.css({position:"relative"})):(h.extend(f,{position:o.css("position"),zIndex:o.css("z-index")}),h.each(["top","left","bottom","right"],function(H,Y){f[Y]=o.css(Y),isNaN(parseInt(f[Y],10))&&(f[Y]="auto")}),o.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),o.css(E),b.css(f).show()},removeWrapper:function(o){var f=document.activeElement;return o.parent().is(".ui-effects-wrapper")&&(o.parent().replaceWith(o),o[0]!==f&&!h.contains(o[0],f)||h(f).trigger("focus")),o}}),h.extend(h.effects,{version:"1.13.3",define:function(o,f,b){return b||(b=f,f="effect"),h.effects.effect[o]=b,h.effects.effect[o].mode=f,b},scaledDimensions:function(o,f,b){var E;return 0===f?{height:0,width:0,outerHeight:0,outerWidth:0}:(E="horizontal"!==b?(f||100)/100:1,b="vertical"!==b?(f||100)/100:1,{height:o.height()*b,width:o.width()*E,outerHeight:o.outerHeight()*b,outerWidth:o.outerWidth()*E})},clipToBox:function(o){return{width:o.clip.right-o.clip.left,height:o.clip.bottom-o.clip.top,left:o.clip.left,top:o.clip.top}},unshift:function(o,f,b){var E=o.queue();1<f&&E.splice.apply(E,[1,0].concat(E.splice(f,b))),o.dequeue()},saveStyle:function(o){o.data(Nt,o[0].style.cssText)},restoreStyle:function(o){o[0].style.cssText=o.data(Nt)||"",o.removeData(Nt)},mode:function(o,f){return o=o.is(":hidden"),"toggle"===f&&(f=o?"show":"hide"),(o?"hide"===f:"show"===f)?"none":f},getBaseline:function(o,f){var b,E;switch(o[0]){case"top":b=0;break;case"middle":b=.5;break;case"bottom":b=1;break;default:b=o[0]/f.height}switch(o[1]){case"left":E=0;break;case"center":E=.5;break;case"right":E=1;break;default:E=o[1]/f.width}return{x:E,y:b}},createPlaceholder:function(o){var f,b=o.css("position"),E=o.position();return o.css({marginTop:o.css("marginTop"),marginBottom:o.css("marginBottom"),marginLeft:o.css("marginLeft"),marginRight:o.css("marginRight")}).outerWidth(o.outerWidth()).outerHeight(o.outerHeight()),/^(static|relative)/.test(b)&&(b="absolute",f=h("<"+o[0].nodeName+">").insertAfter(o).css({display:/^(inline|ruby)/.test(o.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:o.css("marginTop"),marginBottom:o.css("marginBottom"),marginLeft:o.css("marginLeft"),marginRight:o.css("marginRight"),float:o.css("float")}).outerWidth(o.outerWidth()).outerHeight(o.outerHeight()).addClass("ui-effects-placeholder"),o.data(wt+"placeholder",f)),o.css({position:b,left:E.left,top:E.top}),f},removePlaceholder:function(o){var f=wt+"placeholder",b=o.data(f);b&&(b.remove(),o.removeData(f))},cleanUp:function(o){h.effects.restoreStyle(o),h.effects.removePlaceholder(o)},setTransition:function(o,f,b,E){return E=E||{},h.each(f,function(D,H){var Y=o.cssUnit(H);0<Y[0]&&(E[H]=Y[0]*b+Y[1])}),E}}),h.fn.extend({effect:function(){function o(G){var Q=h(this),pt=h.effects.mode(Q,nt)||E;Q.data(Yt,!0),ot.push(pt),E&&("show"===pt||pt===E&&"hide"===pt)&&Q.show(),E&&"none"===pt||h.effects.saveStyle(Q),"function"==typeof G&&G()}var f=$t.apply(this,arguments),b=h.effects.effect[f.effect],E=b.mode,D=f.queue,H=D||"fx",Y=f.complete,nt=f.mode,ot=[];return h.fx.off||!b?nt?this[nt](f.duration,Y):this.each(function(){Y&&Y.call(this)}):!1===D?this.each(o).each(K):this.queue(H,o).queue(H,K);function K(G){var Q=h(this);function pt(){"function"==typeof Y&&Y.call(Q[0]),"function"==typeof G&&G()}f.mode=ot.shift(),!1===h.uiBackCompat||E?"none"===f.mode?(Q[nt](),pt()):b.call(Q[0],f,function(){Q.removeData(Yt),h.effects.cleanUp(Q),"hide"===f.mode&&Q.hide(),pt()}):(Q.is(":hidden")?"hide"===nt:"show"===nt)?(Q[nt](),pt()):b.call(Q[0],f,pt)}},show:(lt=h.fn.show,function(o){return ce(o)?lt.apply(this,arguments):((o=$t.apply(this,arguments)).mode="show",this.effect.call(this,o))}),hide:(rt=h.fn.hide,function(o){return ce(o)?rt.apply(this,arguments):((o=$t.apply(this,arguments)).mode="hide",this.effect.call(this,o))}),toggle:(ut=h.fn.toggle,function(o){return ce(o)||"boolean"==typeof o?ut.apply(this,arguments):((o=$t.apply(this,arguments)).mode="toggle",this.effect.call(this,o))}),cssUnit:function(o){var f=this.css(o),b=[];return h.each(["em","px","%","pt"],function(E,D){0<f.indexOf(D)&&(b=[parseFloat(f),D])}),b},cssClip:function(o){return o?this.css("clip","rect("+o.top+"px "+o.right+"px "+o.bottom+"px "+o.left+"px)"):fe(this.css("clip"),this)},transfer:function(o,f){var b=h(this),E="fixed"===(nt=h(o.to)).css("position"),H=h("body"),D=E?H.scrollTop():0,Y=(H=E?H.scrollLeft():0,{top:(Y=nt.offset()).top-D,left:Y.left-H,height:nt.innerHeight(),width:nt.innerWidth()}),nt=b.offset(),ot=h("<div class='ui-effects-transfer'></div>");ot.appendTo("body").addClass(o.className).css({top:nt.top-D,left:nt.left-H,height:b.innerHeight(),width:b.innerWidth(),position:E?"fixed":"absolute"}).animate(Y,o.duration,o.easing,function(){ot.remove(),"function"==typeof f&&f()})}}),h.fx.step.clip=function(o){o.clipInit||(o.start=h(o.elem).cssClip(),"string"==typeof o.end&&(o.end=fe(o.end,o.elem)),o.clipInit=!0),h(o.elem).cssClip({top:o.pos*(o.end.top-o.start.top)+o.start.top,right:o.pos*(o.end.right-o.start.right)+o.start.right,bottom:o.pos*(o.end.bottom-o.start.bottom)+o.start.bottom,left:o.pos*(o.end.left-o.start.left)+o.start.left})},ft={},h.each(["Quad","Cubic","Quart","Quint","Expo"],function(o,f){ft[f]=function(b){return Math.pow(b,o+2)}}),h.extend(ft,{Sine:function(o){return 1-Math.cos(o*Math.PI/2)},Circ:function(o){return 1-Math.sqrt(1-o*o)},Elastic:function(o){return 0===o||1===o?o:-Math.pow(2,8*(o-1))*Math.sin((80*(o-1)-7.5)*Math.PI/15)},Back:function(o){return o*o*(3*o-2)},Bounce:function(o){for(var f,b=4;o<((f=Math.pow(2,--b))-1)/11;);return 1/Math.pow(4,3-b)-7.5625*Math.pow((3*f-2)/22-o,2)}}),h.each(ft,function(o,f){h.easing["easeIn"+o]=f,h.easing["easeOut"+o]=function(b){return 1-f(1-b)},h.easing["easeInOut"+o]=function(b){return b<.5?f(2*b)/2:1-f(-2*b+2)/2}}),I=h.effects,h.effects.define("blind","hide",function(o,f){var b={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},E=h(this),D=o.direction||"up",H=E.cssClip(),Y={clip:h.extend({},H)},nt=h.effects.createPlaceholder(E);Y.clip[b[D][0]]=Y.clip[b[D][1]],"show"===o.mode&&(E.cssClip(Y.clip),nt&&nt.css(h.effects.clipToBox(Y)),Y.clip=H),nt&&nt.animate(h.effects.clipToBox(Y),o.duration,o.easing),E.animate(Y,{queue:!1,duration:o.duration,easing:o.easing,complete:f})}),h.effects.define("bounce",function(V,f){var b,E,Y,D=h(this),H="hide"===(Y=V.mode),nt=V.direction||"up",ot=V.distance,K=V.times||5,G=2*K+((Y="show"===Y)||H?1:0),Q=V.duration/G,pt=V.easing,bt="up"===nt||"down"===nt?"top":"left",Ht="up"===nt||"left"===nt,Ft=0;for(V=D.queue().length,h.effects.createPlaceholder(D),nt=D.css(bt),ot=ot||D["top"==bt?"outerHeight":"outerWidth"]()/3,Y&&((E={opacity:1})[bt]=nt,D.css("opacity",0).css(bt,Ht?2*-ot:2*ot).animate(E,Q,pt)),H&&(ot/=Math.pow(2,K-1)),(E={})[bt]=nt;Ft<K;Ft++)(b={})[bt]=(Ht?"-=":"+=")+ot,D.animate(b,Q,pt).animate(E,Q,pt),ot=H?2*ot:ot/2;H&&((b={opacity:0})[bt]=(Ht?"-=":"+=")+ot,D.animate(b,Q,pt)),D.queue(f),h.effects.unshift(D,V,1+G)}),h.effects.define("clip","hide",function(o,f){var b={},E=h(this),D=(H="both"===(Y=o.direction||"vertical"))||"horizontal"===Y,H=H||"vertical"===Y,Y=E.cssClip();b.clip={top:H?(Y.bottom-Y.top)/2:Y.top,right:D?(Y.right-Y.left)/2:Y.right,bottom:H?(Y.bottom-Y.top)/2:Y.bottom,left:D?(Y.right-Y.left)/2:Y.left},h.effects.createPlaceholder(E),"show"===o.mode&&(E.cssClip(b.clip),b.clip=Y),E.animate(b,{queue:!1,duration:o.duration,easing:o.easing,complete:f})}),h.effects.define("drop","hide",function(o,f){var b,Y,E=h(this),D="show"===o.mode,H="up"===(Y=o.direction||"left")||"down"===Y?"top":"left",nt="+="==(Y="up"===Y||"left"===Y?"-=":"+=")?"-=":"+=",ot={opacity:0};h.effects.createPlaceholder(E),b=o.distance||E["top"==H?"outerHeight":"outerWidth"](!0)/2,ot[H]=Y+b,D&&(E.css(ot),ot[H]=nt+b,ot.opacity=1),E.animate(ot,{queue:!1,duration:o.duration,easing:o.easing,complete:f})}),h.effects.define("explode","hide",function(o,f){var b,E,D,H,Y,nt,ot=o.pieces?Math.round(Math.sqrt(o.pieces)):3,K=ot,G=h(this),Q="show"===o.mode,pt=G.show().css("visibility","hidden").offset(),bt=Math.ceil(G.outerWidth()/K),Ht=Math.ceil(G.outerHeight()/ot),Ft=[];function V(){Ft.push(this),Ft.length===ot*K&&(G.css({visibility:"visible"}),h(Ft).remove(),f())}for(b=0;b<ot;b++)for(H=pt.top+b*Ht,nt=b-(ot-1)/2,E=0;E<K;E++)D=pt.left+E*bt,Y=E-(K-1)/2,G.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-E*bt,top:-b*Ht}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:bt,height:Ht,left:D+(Q?Y*bt:0),top:H+(Q?nt*Ht:0),opacity:Q?0:1}).animate({left:D+(Q?0:Y*bt),top:H+(Q?0:nt*Ht),opacity:Q?1:0},o.duration||500,o.easing,V)}),h.effects.define("fade","toggle",function(o,f){var b="show"===o.mode;h(this).css("opacity",b?0:1).animate({opacity:b?1:0},{queue:!1,duration:o.duration,easing:o.easing,complete:f})}),h.effects.define("fold","hide",function(o,f){var b=h(this),E="show"===(D=o.mode),D="hide"===D,H=o.size||15,Y=/([0-9]+)%/.exec(H),nt=o.horizFirst?["right","bottom"]:["bottom","right"],ot=o.duration/2,K=h.effects.createPlaceholder(b),G=b.cssClip(),Q={clip:h.extend({},G)},pt={clip:h.extend({},G)},bt=[G[nt[0]],G[nt[1]]],Ht=b.queue().length;Y&&(H=parseInt(Y[1],10)/100*bt[D?0:1]),Q.clip[nt[0]]=H,pt.clip[nt[0]]=H,pt.clip[nt[1]]=0,E&&(b.cssClip(pt.clip),K&&K.css(h.effects.clipToBox(pt)),pt.clip=G),b.queue(function(Ft){K&&K.animate(h.effects.clipToBox(Q),ot,o.easing).animate(h.effects.clipToBox(pt),ot,o.easing),Ft()}).animate(Q,ot,o.easing).animate(pt,ot,o.easing).queue(f),h.effects.unshift(b,Ht,4)}),h.effects.define("highlight","show",function(o,f){var b=h(this),E={backgroundColor:b.css("backgroundColor")};"hide"===o.mode&&(E.opacity=0),h.effects.saveStyle(b),b.css({backgroundImage:"none",backgroundColor:o.color||"#ffff99"}).animate(E,{queue:!1,duration:o.duration,easing:o.easing,complete:f})}),h.effects.define("size",function(o,f){var b,E=h(this),D=["fontSize"],H=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],Y=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],nt=o.mode,ot="effect"!==nt,K=o.scale||"both",G=o.origin||["middle","center"],Q=E.css("position"),pt=E.position(),bt=h.effects.scaledDimensions(E),Ht=o.from||bt,Ft=o.to||h.effects.scaledDimensions(E,0);h.effects.createPlaceholder(E),"show"===nt&&(nt=Ht,Ht=Ft,Ft=nt),b={from:{y:Ht.height/bt.height,x:Ht.width/bt.width},to:{y:Ft.height/bt.height,x:Ft.width/bt.width}},"box"!==K&&"both"!==K||(b.from.y!==b.to.y&&(Ht=h.effects.setTransition(E,H,b.from.y,Ht),Ft=h.effects.setTransition(E,H,b.to.y,Ft)),b.from.x!==b.to.x&&(Ht=h.effects.setTransition(E,Y,b.from.x,Ht),Ft=h.effects.setTransition(E,Y,b.to.x,Ft))),"content"!==K&&"both"!==K||b.from.y!==b.to.y&&(Ht=h.effects.setTransition(E,D,b.from.y,Ht),Ft=h.effects.setTransition(E,D,b.to.y,Ft)),G&&(nt=h.effects.getBaseline(G,bt),Ht.top=(bt.outerHeight-Ht.outerHeight)*nt.y+pt.top,Ht.left=(bt.outerWidth-Ht.outerWidth)*nt.x+pt.left,Ft.top=(bt.outerHeight-Ft.outerHeight)*nt.y+pt.top,Ft.left=(bt.outerWidth-Ft.outerWidth)*nt.x+pt.left),delete Ht.outerHeight,delete Ht.outerWidth,E.css(Ht),"content"!==K&&"both"!==K||(H=H.concat(["marginTop","marginBottom"]).concat(D),Y=Y.concat(["marginLeft","marginRight"]),E.find("*[width]").each(function(){var V=h(this),dt={height:(gt=h.effects.scaledDimensions(V)).height*b.from.y,width:gt.width*b.from.x,outerHeight:gt.outerHeight*b.from.y,outerWidth:gt.outerWidth*b.from.x},gt={height:gt.height*b.to.y,width:gt.width*b.to.x,outerHeight:gt.height*b.to.y,outerWidth:gt.width*b.to.x};b.from.y!==b.to.y&&(dt=h.effects.setTransition(V,H,b.from.y,dt),gt=h.effects.setTransition(V,H,b.to.y,gt)),b.from.x!==b.to.x&&(dt=h.effects.setTransition(V,Y,b.from.x,dt),gt=h.effects.setTransition(V,Y,b.to.x,gt)),ot&&h.effects.saveStyle(V),V.css(dt),V.animate(gt,o.duration,o.easing,function(){ot&&h.effects.restoreStyle(V)})})),E.animate(Ft,{queue:!1,duration:o.duration,easing:o.easing,complete:function(){var V=E.offset();0===Ft.opacity&&E.css("opacity",Ht.opacity),ot||(E.css("position","static"===Q?"relative":Q).offset(V),h.effects.saveStyle(E)),f()}})}),h.effects.define("scale",function(o,f){var E=h(this),b=o.mode;b=parseInt(o.percent,10)||(0===parseInt(o.percent,10)||"effect"!==b?0:100),E=h.extend(!0,{from:h.effects.scaledDimensions(E),to:h.effects.scaledDimensions(E,b,o.direction||"both"),origin:o.origin||["middle","center"]},o),o.fade&&(E.from.opacity=1,E.to.opacity=0),h.effects.effect.size.call(this,E,f)}),h.effects.define("puff","hide",function(o,f){o=h.extend(!0,{},o,{fade:!0,percent:parseInt(o.percent,10)||150}),h.effects.effect.scale.call(this,o,f)}),h.effects.define("pulsate","show",function(o,f){var b=h(this),E="show"===(ot=o.mode),D=2*(o.times||5)+(E||"hide"===ot?1:0),H=o.duration/D,Y=0,nt=1,ot=b.queue().length;for(!E&&b.is(":visible")||(b.css("opacity",0).show(),Y=1);nt<D;nt++)b.animate({opacity:Y},H,o.easing),Y=1-Y;b.animate({opacity:Y},H,o.easing),b.queue(f),h.effects.unshift(b,ot,1+D)}),h.effects.define("shake",function(o,f){var b=1,E=h(this),K=o.direction||"left",D=o.distance||20,H=o.times||3,Y=2*H+1,nt=Math.round(o.duration/Y),ot="up"===K||"down"===K?"top":"left",G=(K="up"===K||"left"===K,{}),Q={},pt={},bt=E.queue().length;for(h.effects.createPlaceholder(E),G[ot]=(K?"-=":"+=")+D,Q[ot]=(K?"+=":"-=")+2*D,pt[ot]=(K?"-=":"+=")+2*D,E.animate(G,nt,o.easing);b<H;b++)E.animate(Q,nt,o.easing).animate(pt,nt,o.easing);E.animate(Q,nt,o.easing).animate(G,nt/2,o.easing).queue(f),h.effects.unshift(E,bt,1+Y)}),h.effects.define("slide","show",function(o,f){var b,E,D=h(this),H={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},Y=o.mode,nt=o.direction||"left",ot="up"===nt||"down"===nt?"top":"left",K="up"===nt||"left"===nt,G=o.distance||D["top"==ot?"outerHeight":"outerWidth"](!0),Q={};h.effects.createPlaceholder(D),b=D.cssClip(),E=D.position()[ot],Q[ot]=(K?-1:1)*G+E,Q.clip=D.cssClip(),Q.clip[H[nt][1]]=Q.clip[H[nt][0]],"show"===Y&&(D.cssClip(Q.clip),D.css(ot,Q[ot]),Q.clip=b,Q[ot]=E),D.animate(Q,{queue:!1,duration:o.duration,easing:o.easing,complete:f})}),I=!1!==h.uiBackCompat?h.effects.define("transfer",function(o,f){h(this).transfer(o,f)}):I,h.ui.focusable=function(o,f){var b,E,D,H=o.nodeName.toLowerCase();return"area"===H?(D=(b=o.parentNode).name,!(!o.href||!D||"map"!==b.nodeName.toLowerCase())&&0<(b=h("img[usemap='#"+D+"']")).length&&b.is(":visible")):(/^(input|select|textarea|button|object)$/.test(H)?(E=!o.disabled)&&(D=h(o).closest("fieldset")[0])&&(E=!D.disabled):E="a"===H&&o.href||f,E&&h(o).is(":visible")&&function(Y){for(var nt=Y.css("visibility");"inherit"===nt;)nt=(Y=Y.parent()).css("visibility");return"visible"===nt}(h(o)))},h.extend(h.expr.pseudos,{focusable:function(o){return h.ui.focusable(o,null!=h.attr(o,"tabindex"))}}),h.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):h(this[0].form)},h.ui.formResetMixin={_formResetHandler:function(){var o=h(this);setTimeout(function(){var f=o.data("ui-form-reset-instances");h.each(f,function(){this.refresh()})})},_bindFormResetHandler:function(){var o;this.form=this.element._form(),this.form.length&&((o=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),o.push(this),this.form.data("ui-form-reset-instances",o))},_unbindFormResetHandler:function(){var o;this.form.length&&((o=this.form.data("ui-form-reset-instances")).splice(h.inArray(this,o),1),o.length?this.form.data("ui-form-reset-instances",o):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},h.expr.pseudos||(h.expr.pseudos=h.expr[":"]),h.uniqueSort||(h.uniqueSort=h.unique),h.escapeSelector||(qt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,Ct=function(o,f){return f?"\0"===o?"\ufffd":o.slice(0,-1)+"\\"+o.charCodeAt(o.length-1).toString(16)+" ":"\\"+o},h.escapeSelector=function(o){return(o+"").replace(qt,Ct)}),h.fn.even&&h.fn.odd||h.fn.extend({even:function(){return this.filter(function(o){return o%2==0})},odd:function(){return this.filter(function(o){return o%2==1})}}),h.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},h.fn.labels=function(){var o,f,b;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(f=this.eq(0).parents("label"),(o=this.attr("id"))&&(b=(b=this.eq(0).parents().last()).add((b.length?b:this).siblings()),o="label[for='"+h.escapeSelector(o)+"']",f=f.add(b.find(o).addBack(o))),this.pushStack(f)):this.pushStack([])},h.fn.scrollParent=function(D){var f=this.css("position"),b="absolute"===f,E=D?/(auto|scroll|hidden)/:/(auto|scroll)/;return D=this.parents().filter(function(){var H=h(this);return(!b||"static"!==H.css("position"))&&E.test(H.css("overflow")+H.css("overflow-y")+H.css("overflow-x"))}).eq(0),"fixed"!==f&&D.length?D:h(this[0].ownerDocument||document)},h.extend(h.expr.pseudos,{tabbable:function(o){var f=h.attr(o,"tabindex"),b=null!=f;return(!b||0<=f)&&h.ui.focusable(o,b)}}),h.fn.extend({uniqueId:(Tt=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++Tt)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&h(this).removeAttr("id")})}}),h.widget("ui.accordion",{version:"1.13.3",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(o){return o.find("> li > :first-child").add(o.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var o=this.options;this.prevShow=this.prevHide=h(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),o.collapsible||!1!==o.active&&null!=o.active||(o.active=0),this._processPanels(),o.active<0&&(o.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():h()}},_createIcons:function(){var o,f=this.options.icons;f&&(o=h("<span>"),this._addClass(o,"ui-accordion-header-icon","ui-icon "+f.header),o.prependTo(this.headers),o=this.active.children(".ui-accordion-header-icon"),this._removeClass(o,f.header)._addClass(o,null,f.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var o;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),o=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&o.css("height","")},_setOption:function(o,f){"active"===o?this._activate(f):("event"===o&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(f)),this._super(o,f),"collapsible"!==o||f||!1!==this.options.active||this._activate(0),"icons"===o&&(this._destroyIcons(),f)&&this._createIcons())},_setOptionDisabled:function(o){this._super(o),this.element.attr("aria-disabled",o),this._toggleClass(null,"ui-state-disabled",!!o),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!o)},_keydown:function(o){if(!o.altKey&&!o.ctrlKey){var f=h.ui.keyCode,b=this.headers.length,E=this.headers.index(o.target),D=!1;switch(o.keyCode){case f.RIGHT:case f.DOWN:D=this.headers[(E+1)%b];break;case f.LEFT:case f.UP:D=this.headers[(E-1+b)%b];break;case f.SPACE:case f.ENTER:this._eventHandler(o);break;case f.HOME:D=this.headers[0];break;case f.END:D=this.headers[b-1]}D&&(h(o.target).attr("tabIndex",-1),h(D).attr("tabIndex",0),h(D).trigger("focus"),o.preventDefault())}},_panelKeyDown:function(o){o.keyCode===h.ui.keyCode.UP&&o.ctrlKey&&h(o.currentTarget).prev().trigger("focus")},refresh:function(){var o=this.options;this._processPanels(),!1===o.active&&!0===o.collapsible||!this.headers.length?(o.active=!1,this.active=h()):!1===o.active?this._activate(0):this.active.length&&!h.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(o.active=!1,this.active=h()):this._activate(Math.max(0,o.active-1)):o.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var o=this.headers,f=this.panels;this.headers="function"==typeof this.options.header?this.options.header(this.element):this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),f&&(this._off(o.not(this.headers)),this._off(f.not(this.panels)))},_refresh:function(){var o,f=this.options,b=f.heightStyle,E=this.element.parent();this.active=this._findActive(f.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var D=h(this),H=D.uniqueId().attr("id"),Y=D.next(),nt=Y.uniqueId().attr("id");D.attr("aria-controls",nt),Y.attr("aria-labelledby",H)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(f.event),"fill"===b?(o=E.height(),this.element.siblings(":visible").each(function(){var D=h(this),H=D.css("position");"absolute"!==H&&"fixed"!==H&&(o-=D.outerHeight(!0))}),this.headers.each(function(){o-=h(this).outerHeight(!0)}),this.headers.next().each(function(){h(this).height(Math.max(0,o-h(this).innerHeight()+h(this).height()))}).css("overflow","auto")):"auto"===b&&(o=0,this.headers.next().each(function(){var D=h(this).is(":visible");D||h(this).show(),o=Math.max(o,h(this).css("height","").height()),D||h(this).hide()}).height(o))},_activate:function(o){(o=this._findActive(o)[0])!==this.active[0]&&this._eventHandler({target:o=o||this.active[0],currentTarget:o,preventDefault:h.noop})},_findActive:function(o){return"number"==typeof o?this.headers.eq(o):h()},_setupEvents:function(o){var f={keydown:"_keydown"};o&&h.each(o.split(" "),function(b,E){f[E]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,f),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(o){var f=this.options,b=this.active,E=h(o.currentTarget),D=E[0]===b[0],H=D&&f.collapsible,Y=H?h():E.next(),nt=b.next();nt={oldHeader:b,oldPanel:nt,newHeader:H?h():E,newPanel:Y},o.preventDefault(),D&&!f.collapsible||!1===this._trigger("beforeActivate",o,nt)||(f.active=!H&&this.headers.index(E),this.active=D?h():E,this._toggle(nt),this._removeClass(b,"ui-accordion-header-active","ui-state-active"),f.icons&&(Y=b.children(".ui-accordion-header-icon"),this._removeClass(Y,null,f.icons.activeHeader)._addClass(Y,null,f.icons.header)),D)||(this._removeClass(E,"ui-accordion-header-collapsed")._addClass(E,"ui-accordion-header-active","ui-state-active"),f.icons&&(o=E.children(".ui-accordion-header-icon"),this._removeClass(o,null,f.icons.header)._addClass(o,null,f.icons.activeHeader)),this._addClass(E.next(),"ui-accordion-content-active"))},_toggle:function(o){var f=o.newPanel,b=this.prevShow.length?this.prevShow:o.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=f,this.prevHide=b,this.options.animate?this._animate(f,b,o):(b.hide(),f.show(),this._toggleComplete(o)),b.attr({"aria-hidden":"true"}),b.prev().attr({"aria-selected":"false","aria-expanded":"false"}),f.length&&b.length?b.prev().attr({tabIndex:-1,"aria-expanded":"false"}):f.length&&this.headers.filter(function(){return 0===parseInt(h(this).attr("tabIndex"),10)}).attr("tabIndex",-1),f.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(o,f,b){function E(){H._toggleComplete(b)}var D,H=this,Y=0,nt=o.css("box-sizing"),K=o.length&&(!f.length||o.index()<f.index()),ot=this.options.animate||{},G=(G="string"==typeof(K=K&&ot.down||ot)?K:G)||K.easing||ot.easing,Q=(Q="number"==typeof K?K:Q)||K.duration||ot.duration;return f.length?o.length?(D=o.show().outerHeight(),f.animate(this.hideProps,{duration:Q,easing:G,step:function(pt,bt){bt.now=Math.round(pt)}}),void o.hide().animate(this.showProps,{duration:Q,easing:G,complete:E,step:function(pt,bt){bt.now=Math.round(pt),"height"!==bt.prop?"content-box"===nt&&(Y+=bt.now):"content"!==H.options.heightStyle&&(bt.now=Math.round(D-f.outerHeight()-Y),Y=0)}})):f.animate(this.hideProps,Q,G,E):o.animate(this.showProps,Q,G,E)},_toggleComplete:function(o){var f=o.oldPanel,b=f.prev();this._removeClass(f,"ui-accordion-content-active"),this._removeClass(b,"ui-accordion-header-active")._addClass(b,"ui-accordion-header-collapsed"),f.length&&(f.parent()[0].className=f.parent()[0].className),this._trigger("activate",null,o)}}),h.ui.safeActiveElement=function(o){var f;try{f=o.activeElement}catch(b){f=o.body}return(f=f||o.body).nodeName?f:o.body},h.widget("ui.menu",{version:"1.13.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(o){o.preventDefault(),this._activateItem(o)},"click .ui-menu-item":function(o){var f=h(o.target),b=h(h.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&f.not(".ui-state-disabled").length&&(this.select(o),o.isPropagationStopped()||(this.mouseHandled=!0),f.has(".ui-menu").length?this.expand(o):!this.element.is(":focus")&&b.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(o,f){var b=this.active||this._menuItems().first();f||this.focus(o,b)},blur:function(o){this._delay(function(){h.contains(this.element[0],h.ui.safeActiveElement(this.document[0]))||this.collapseAll(o)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(o){this._closeOnDocumentClick(o)&&this.collapseAll(o,!0),this.mouseHandled=!1}})},_activateItem:function(o){var f,b;this.previousFilter||o.clientX===this.lastMousePosition.x&&o.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:o.clientX,y:o.clientY},f=h(o.target).closest(".ui-menu-item"),b=h(o.currentTarget),f[0]!==b[0])||b.is(".ui-state-active")||(this._removeClass(b.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(o,b))},_destroy:function(){var o=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),o.children().each(function(){var f=h(this);f.data("ui-menu-submenu-caret")&&f.remove()})},_keydown:function(o){var f,b,E,D=!0;switch(o.keyCode){case h.ui.keyCode.PAGE_UP:this.previousPage(o);break;case h.ui.keyCode.PAGE_DOWN:this.nextPage(o);break;case h.ui.keyCode.HOME:this._move("first","first",o);break;case h.ui.keyCode.END:this._move("last","last",o);break;case h.ui.keyCode.UP:this.previous(o);break;case h.ui.keyCode.DOWN:this.next(o);break;case h.ui.keyCode.LEFT:this.collapse(o);break;case h.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(o);break;case h.ui.keyCode.ENTER:case h.ui.keyCode.SPACE:this._activate(o);break;case h.ui.keyCode.ESCAPE:this.collapse(o);break;default:f=this.previousFilter||"",E=D=!1,b=96<=o.keyCode&&o.keyCode<=105?(o.keyCode-96).toString():String.fromCharCode(o.keyCode),clearTimeout(this.filterTimer),b===f?E=!0:b=f+b,f=this._filterMenuItems(b),(f=E&&-1!==f.index(this.active.next())?this.active.nextAll(".ui-menu-item"):f).length||(b=String.fromCharCode(o.keyCode),f=this._filterMenuItems(b)),f.length?(this.focus(o,f),this.previousFilter=b,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}D&&o.preventDefault()},_activate:function(o){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(o):this.select(o))},refresh:function(){var o,f,b=this,E=this.options.icons.submenu,D=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),o=D.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var H=h(this),Y=H.prev(),nt=h("<span>").data("ui-menu-submenu-caret",!0);b._addClass(nt,"ui-menu-icon","ui-icon "+E),Y.attr("aria-haspopup","true").prepend(nt),H.attr("aria-labelledby",Y.attr("id"))}),this._addClass(o,"ui-menu","ui-widget ui-widget-content ui-front"),(o=D.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var H=h(this);b._isDivider(H)&&b._addClass(H,"ui-menu-divider","ui-widget-content")}),f=(D=o.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(D,"ui-menu-item")._addClass(f,"ui-menu-item-wrapper"),o.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!h.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(o,f){var b;"icons"===o&&(b=this.element.find(".ui-menu-icon"),this._removeClass(b,null,this.options.icons.submenu)._addClass(b,null,f.submenu)),this._super(o,f)},_setOptionDisabled:function(o){this._super(o),this.element.attr("aria-disabled",String(o)),this._toggleClass(null,"ui-state-disabled",!!o)},focus:function(o,f){var b;this.blur(o,o&&"focus"===o.type),this._scrollIntoView(f),this.active=f.first(),b=this.active.children(".ui-menu-item-wrapper"),this._addClass(b,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",b.attr("id")),b=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(b,null,"ui-state-active"),o&&"keydown"===o.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(b=f.children(".ui-menu")).length&&o&&/^mouse/.test(o.type)&&this._startOpening(b),this.activeMenu=f.parent(),this._trigger("focus",o,{item:f})},_scrollIntoView:function(o){var f,b,E;this._hasScroll()&&(f=parseFloat(h.css(this.activeMenu[0],"borderTopWidth"))||0,b=parseFloat(h.css(this.activeMenu[0],"paddingTop"))||0,f=o.offset().top-this.activeMenu.offset().top-f-b,b=this.activeMenu.scrollTop(),E=this.activeMenu.height(),o=o.outerHeight(),f<0?this.activeMenu.scrollTop(b+f):E<f+o&&this.activeMenu.scrollTop(b+f-E+o))},blur:function(o,f){f||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",o,{item:this.active}),this.active=null)},_startOpening:function(o){clearTimeout(this.timer),"true"===o.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(o)},this.delay))},_open:function(o){var f=h.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(o.parents(".ui-menu")).hide().attr("aria-hidden","true"),o.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(f)},collapseAll:function(o,f){clearTimeout(this.timer),this.timer=this._delay(function(){var b=f?this.element:h(o&&o.target).closest(this.element.find(".ui-menu"));b.length||(b=this.element),this._close(b),this.blur(o),this._removeClass(b.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=b},f?0:this.delay)},_close:function(o){(o=o||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(o){return!h(o.target).closest(".ui-menu").length},_isDivider:function(o){return!/[^\-\u2014\u2013\s]/.test(o.text())},collapse:function(o){var f=this.active&&this.active.parent().closest(".ui-menu-item",this.element);f&&f.length&&(this._close(),this.focus(o,f))},expand:function(o){var f=this.active&&this._menuItems(this.active.children(".ui-menu")).first();f&&f.length&&(this._open(f.parent()),this._delay(function(){this.focus(o,f)}))},next:function(o){this._move("next","first",o)},previous:function(o){this._move("prev","last",o)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(o){return(o||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(o,f,b){var E;(E=this.active?"first"===o||"last"===o?this.active["first"===o?"prevAll":"nextAll"](".ui-menu-item").last():this.active[o+"All"](".ui-menu-item").first():E)&&E.length&&this.active||(E=this._menuItems(this.activeMenu)[f]()),this.focus(b,E)},nextPage:function(o){var f,b,E;this.active?this.isLastItem()||(this._hasScroll()?(b=this.active.offset().top,E=this.element.innerHeight(),0===h.fn.jquery.indexOf("3.2.")&&(E+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(f=h(this)).offset().top-b-E<0}),this.focus(o,f)):this.focus(o,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(o)},previousPage:function(o){var f,b,E;this.active?this.isFirstItem()||(this._hasScroll()?(b=this.active.offset().top,E=this.element.innerHeight(),0===h.fn.jquery.indexOf("3.2.")&&(E+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(f=h(this)).offset().top-b+E}),this.focus(o,f)):this.focus(o,this._menuItems(this.activeMenu).first())):this.next(o)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(o){this.active=this.active||h(o.target).closest(".ui-menu-item");var f={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(o,!0),this._trigger("select",o,f)},_filterMenuItems:function(f){f=f.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");var b=new RegExp("^"+f,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return b.test(String.prototype.trim.call(h(this).children(".ui-menu-item-wrapper").text()))})}}),h.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var o,f,b,E="textarea"===(D=this.element[0].nodeName.toLowerCase()),D="input"===D;this.isMultiLine=E||!D&&this._isContentEditable(this.element),this.valueMethod=this.element[E||D?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(H){if(this.element.prop("readOnly"))f=b=o=!0;else{f=b=o=!1;var Y=h.ui.keyCode;switch(H.keyCode){case Y.PAGE_UP:o=!0,this._move("previousPage",H);break;case Y.PAGE_DOWN:o=!0,this._move("nextPage",H);break;case Y.UP:o=!0,this._keyEvent("previous",H);break;case Y.DOWN:o=!0,this._keyEvent("next",H);break;case Y.ENTER:this.menu.active&&(o=!0,H.preventDefault(),this.menu.select(H));break;case Y.TAB:this.menu.active&&this.menu.select(H);break;case Y.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(H),H.preventDefault());break;default:f=!0,this._searchTimeout(H)}}},keypress:function(H){if(o)o=!1,this.isMultiLine&&!this.menu.element.is(":visible")||H.preventDefault();else if(!f){var Y=h.ui.keyCode;switch(H.keyCode){case Y.PAGE_UP:this._move("previousPage",H);break;case Y.PAGE_DOWN:this._move("nextPage",H);break;case Y.UP:this._keyEvent("previous",H);break;case Y.DOWN:this._keyEvent("next",H)}}},input:function(H){b?(b=!1,H.preventDefault()):this._searchTimeout(H)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(H){clearTimeout(this.searching),this.close(H),this._change(H)}}),this._initSource(),this.menu=h("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(H){H.preventDefault()},menufocus:function(H,Y){var nt,ot;this.isNewMenu&&(this.isNewMenu=!1,H.originalEvent)&&/^mouse/.test(H.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){h(H.target).trigger(H.originalEvent)})):(ot=Y.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",H,{item:ot})&&H.originalEvent&&/^key/.test(H.originalEvent.type)&&this._value(ot.value),(nt=Y.item.attr("aria-label")||ot.value)&&String.prototype.trim.call(nt).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(h("<div>").text(nt))},100)))},menuselect:function(H,Y){var nt=Y.item.data("ui-autocomplete-item"),ot=this.previous;this.element[0]!==h.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=ot,this._delay(function(){this.previous=ot,this.selectedItem=nt})),!1!==this._trigger("select",H,{item:nt})&&this._value(nt.value),this.term=this._value(),this.close(H),this.selectedItem=nt}}),this.liveRegion=h("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(o,f){this._super(o,f),"source"===o&&this._initSource(),"appendTo"===o&&this.menu.element.appendTo(this._appendTo()),"disabled"===o&&f&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(o){var f=this.menu.element[0];return o.target===this.element[0]||o.target===f||h.contains(f,o.target)},_closeOnClickOutside:function(o){this._isEventTargetInWidget(o)||this.close()},_appendTo:function(){var o=this.options.appendTo;return(o=(o=o&&(o.jquery||o.nodeType?h(o):this.document.find(o).eq(0)))&&o[0]?o:this.element.closest(".ui-front, dialog")).length?o:this.document[0].body},_initSource:function(){var o,f,b=this;Array.isArray(this.options.source)?(o=this.options.source,this.source=function(E,D){D(h.ui.autocomplete.filter(o,E.term))}):"string"==typeof this.options.source?(f=this.options.source,this.source=function(E,D){b.xhr&&b.xhr.abort(),b.xhr=h.ajax({url:f,data:E,dataType:"json",success:function(H){D(H)},error:function(){D([])}})}):this.source=this.options.source},_searchTimeout:function(o){clearTimeout(this.searching),this.searching=this._delay(function(){var f=this.term===this._value(),b=this.menu.element.is(":visible");f&&(b||o.altKey||o.ctrlKey||o.metaKey||o.shiftKey)||(this.selectedItem=null,this.search(null,o))},this.options.delay)},search:function(o,f){return o=null!=o?o:this._value(),this.term=this._value(),o.length<this.options.minLength?this.close(f):!1!==this._trigger("search",f)?this._search(o):void 0},_search:function(o){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:o},this._response())},_response:function(){var o=++this.requestIndex;return function(f){o===this.requestIndex&&this.__response(f),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(o){o=o&&this._normalize(o),this._trigger("response",null,{content:o}),!this.options.disabled&&o&&o.length&&!this.cancelSearch?(this._suggest(o),this._trigger("open")):this._close()},close:function(o){this.cancelSearch=!0,this._close(o)},_close:function(o){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",o))},_change:function(o){this.previous!==this._value()&&this._trigger("change",o,{item:this.selectedItem})},_normalize:function(o){return o.length&&o[0].label&&o[0].value?o:h.map(o,function(f){return"string"==typeof f?{label:f,value:f}:h.extend({},f,{label:f.label||f.value,value:f.value||f.label})})},_suggest:function(o){var f=this.menu.element.empty();this._renderMenu(f,o),this.isNewMenu=!0,this.menu.refresh(),f.show(),this._resizeMenu(),f.position(h.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var o=this.menu.element;o.outerWidth(Math.max(o.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(o,f){var b=this;h.each(f,function(E,D){b._renderItemData(o,D)})},_renderItemData:function(o,f){return this._renderItem(o,f).data("ui-autocomplete-item",f)},_renderItem:function(o,f){return h("<li>").append(h("<div>").text(f.label)).appendTo(o)},_move:function(o,f){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(o)||this.menu.isLastItem()&&/^next/.test(o)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[o](f):this.search(null,f)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(o,f){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(o,f),f.preventDefault())},_isContentEditable:function(o){var f;return!!o.length&&("inherit"===(f=o.prop("contentEditable"))?this._isContentEditable(o.parent()):"true"===f)}}),h.extend(h.ui.autocomplete,{escapeRegex:function(o){return o.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(o,f){var b=new RegExp(h.ui.autocomplete.escapeRegex(f),"i");return h.grep(o,function(E){return b.test(E.label||E.value||E)})}}),h.widget("ui.autocomplete",h.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(o){return o+(1<o?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(o){var f;this._superApply(arguments),this.options.disabled||this.cancelSearch||(f=o&&o.length?this.options.messages.results(o.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(h("<div>").text(f))},100))}});var qt,Ct,Tt,jt,Ut,Kt=/ui-corner-([a-z]){2,6}/g;function ne(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},h.extend(this._defaults,this.regional[""]),this.regional.en=h.extend(!0,{},this.regional[""]),this.regional["en-US"]=h.extend(!0,{},this.regional.en),this.dpDiv=zt(h("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function zt(o){var f="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return o.on("mouseout",f,function(){h(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&h(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&h(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",f,Vt)}function Vt(){h.datepicker._isDisabledDatepicker((Ut.inline?Ut.dpDiv.parent():Ut.input)[0])||(h(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),h(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&h(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&h(this).addClass("ui-datepicker-next-hover"))}function ke(o,f){for(var b in h.extend(o,f),f)null==f[b]&&(o[b]=f[b])}h.widget("ui.controlgroup",{version:"1.13.3",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var o=this,f=[];h.each(this.options.items,function(b,E){var D,H={};E&&("controlgroupLabel"===b?((D=o.element.find(E)).each(function(){var Y=h(this);Y.children(".ui-controlgroup-label-contents").length||Y.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),o._addClass(D,null,"ui-widget ui-widget-content ui-state-default"),f=f.concat(D.get())):h.fn[b]&&(H=o["_"+b+"Options"]?o["_"+b+"Options"]("middle"):{classes:{}},o.element.find(E).each(function(){var Y=h(this),nt=Y[b]("instance"),ot=h.widget.extend({},H);"button"===b&&Y.parent(".ui-spinner").length||((nt=nt||Y[b]()[b]("instance"))&&(ot.classes=o._resolveClassesValues(ot.classes,nt)),Y[b](ot),ot=Y[b]("widget"),h.data(ot[0],"ui-controlgroup-data",nt||Y[b]("instance")),f.push(ot[0]))})))}),this.childWidgets=h(h.uniqueSort(f)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(o){this.childWidgets.each(function(){var f=h(this).data("ui-controlgroup-data");f&&f[o]&&f[o]()})},_updateCornerClass:function(o,f){f=this._buildSimpleOptions(f,"label").classes.label,this._removeClass(o,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(o,null,f)},_buildSimpleOptions:function(o,f){var b="vertical"===this.options.direction,E={classes:{}};return E.classes[f]={middle:"",first:"ui-corner-"+(b?"top":"left"),last:"ui-corner-"+(b?"bottom":"right"),only:"ui-corner-all"}[o],E},_spinnerOptions:function(o){return(o=this._buildSimpleOptions(o,"ui-spinner")).classes["ui-spinner-up"]="",o.classes["ui-spinner-down"]="",o},_buttonOptions:function(o){return this._buildSimpleOptions(o,"ui-button")},_checkboxradioOptions:function(o){return this._buildSimpleOptions(o,"ui-checkboxradio-label")},_selectmenuOptions:function(o){var f="vertical"===this.options.direction;return{width:f&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(f?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(f?"top":"left")},last:{"ui-selectmenu-button-open":f?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(f?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[o]}},_resolveClassesValues:function(o,f){var b={};return h.each(o,function(E){var D=f.options.classes[E]||"";D=String.prototype.trim.call(D.replace(Kt,"")),b[E]=(D+" "+o[E]).replace(/\s+/g," ")}),b},_setOption:function(o,f){"direction"===o&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(o,f),"disabled"===o?this._callChildMethod(f?"disable":"enable"):this.refresh()},refresh:function(){var o,f=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),o=this.childWidgets,(o=this.options.onlyVisible?o.filter(":visible"):o).length&&(h.each(["first","last"],function(b,E){var D,H=o[E]().data("ui-controlgroup-data");H&&f["_"+H.widgetName+"Options"]?((D=f["_"+H.widgetName+"Options"](1===o.length?"only":E)).classes=f._resolveClassesValues(D.classes,H),H.element[H.widgetName](D)):f._updateCornerClass(o[E](),E)}),this._callChildMethod("refresh"))}}),h.widget("ui.checkboxradio",[h.ui.formResetMixin,{version:"1.13.3",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var o,f=this._super()||{};return this._readType(),o=this.element.labels(),this.label=h(o[o.length-1]),this.label.length||h.error("No label found for checkboxradio widget"),this.originalLabel="",(o=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=o.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(f.label=this.originalLabel),null!=(o=this.element[0].disabled)&&(f.disabled=o),f},_create:function(){var o=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),o&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var o=this.element[0].nodeName.toLowerCase();
vendor: 1,411 bytes, line 1
1this.type=this.element[0].type,"input"===o&&/radio|checkbox/.test(this.type)||h.error("Can't create checkboxradio on element.nodeName="+o+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var o=this.element[0].name,f="input[name='"+h.escapeSelector(o)+"']";return o?(this.form.length?h(this.form[0].elements).filter(f):h(f).filter(function(){return 0===h(this)._form().length})).not(this.element):h([])},_toggleClasses:function(){var o=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",o),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",o)._toggleClass(this.icon,null,"ui-icon-blank",!o),"radio"===this.type&&this._getRadioGroup().each(function(){var f=h(this).checkboxradio("instance");f&&f._removeClass(f.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(o,f){"label"===o&&!f||(this._super(o,f),"disabled"===o?(this._toggleClass(this.label,null,"ui-state-disabled",f),this.element[0].disabled=f):this.refresh())},_updateIcon:function(o){var f="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=h("<span>"),this.iconSpace=h("<span> </span>
1"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(f+=o?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,o?"ui-icon-blank":"ui-icon-check")):f+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",f),o||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var o=this.label.contents().not(this.element[0]);this.icon&&(o=o.not(this.icon[0])),(o=this.iconSpace?o.not(this.iconSpace[0]):o).remove(),this.label.append(this.options.label)},refresh:function(){var o=this.element[0].checked,f=this.element[0].disabled;this._updateIcon(o),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",o),null!==this.options.label&&this._updateLabel(),f!==this.options.disabled&&this._setOptions({disabled:f})}}]),h.widget("ui.button",{version:"1.13.3",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var o,f=this._super()||{};return this.isInput=this.element.is("input"),null!=(o=this.element[0].disabled)&&(f.disabled=o),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(f.label=this.originalLabel),f},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(o){o.keyCode===h.ui.keyCode.SPACE&&(o.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(b,f){var E=(b="iconPosition"!==b)?this.options.iconPosition:f,D="top"===E||"bottom"===E;this.icon?b&&this._removeClass(this.icon,null,this.options.icon):(this.icon=h("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),b&&this._addClass(this.icon,null,f),this._attachIcon(E),D?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 154,591 bytes, line 1
1pace||(this.iconSpace=h("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(E))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(o){this.icon[/^(?:end|bottom)/.test(o)?"before":"after"](this.iconSpace)},_attachIcon:function(o){this.element[/^(?:end|bottom)/.test(o)?"append":"prepend"](this.icon)},_setOptions:function(o){(void 0===o.showLabel?this.options:o).showLabel||(void 0===o.icon?this.options:o).icon||(o.showLabel=!0),this._super(o)},_setOption:function(o,f){"icon"===o&&(f?this._updateIcon(o,f):this.icon&&(this.icon.remove(),this.iconSpace)&&this.iconSpace.remove()),"iconPosition"===o&&this._updateIcon(o,f),"showLabel"===o&&(this._toggleClass("ui-button-icon-only",null,!f),this._updateTooltip()),"label"===o&&(this.isInput?this.element.val(f):(this.element.html(f),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(o,f),"disabled"===o&&(this._toggleClass(null,"ui-state-disabled",f),this.element[0].disabled=f)&&this.element.trigger("blur")},refresh:function(){var o=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");o!==this.options.disabled&&this._setOptions({disabled:o}),this._updateTooltip()}}),!1!==h.uiBackCompat&&(h.widget("ui.button",h.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(o,f){"text"===o?this._super("showLabel",f):("showLabel"===o&&(this.options.text=f),"icon"===o&&(this.options.icons.primary=f),"icons"===o&&(f.primary?(this._super("icon",f.primary),this._super("iconPosition","beginning")):f.secondary&&(this._super("icon",f.secondary),this._super("iconPosition","end"))),this._superApply(arguments))}}),h.fn.button=(jt=h.fn.button,function(o){var f="string"==typeof o,b=Array.prototype.slice.call(arguments,1),E=this;return f?this.length||"instance"!==o?this.each(function(){var D,H=h(this).attr("type");return H=h.data(this,"ui-"+("checkbox"!==H&&"radio"!==H?"button":"checkboxradio")),"instance"===o?(E=H,!1):H?"function"!=typeof H[o]||"_"===o.charAt(0)?h.error("no such method '"+o+"' for button widget instance"):(D=H[o].apply(H,b))!==H&&void 0!==D?(E=D&&D.jquery?E.pushStack(D.get()):D,!1):void 0:h.error("cannot call methods on button prior to initialization; attempted to call method '"+o+"'")}):E=void 0:(b.length&&(o=h.widget.extend.apply(null,[o].concat(b))),this.each(function(){var D=h(this).attr("type"),H=h.data(this,"ui-"+(D="checkbox"!==D&&"radio"!==D?"button":"checkboxradio"));H?(H.option(o||{}),H._init&&H._init()):"button"==D?jt.call(h(this),o):h(this).checkboxradio(h.extend({icon:!1},o))})),E}),h.fn.buttonset=function(){return h.ui.controlgroup||h.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),h.extend(h.ui,{datepicker:{version:"1.13.3"}}),h.extend(ne.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(o){return ke(this._defaults,o||{}),this},_attachDatepicker:function(o,f){var b,E=o.nodeName.toLowerCase(),D="div"===E||"span"===E;o.id||(this.uuid+=1,o.id="dp"+this.uuid),(b=this._newInst(h(o),D)).settings=h.extend({},f||{}),"input"===E?this._connectDatepicker(o,b):D&&this._inlineDatepicker(o,b)},_newInst:function(o,f){return{id:o[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:o,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:f,dpDiv:f?zt(h("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(o,f){var b=h(o);f.append=h([]),f.trigger=h([]),b.hasClass(this.markerClassName)||(this._attachments(b,f),b.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(f),h.data(o,"datepicker",f),f.settings.disabled&&this._disableDatepicker(o))},_attachments:function(o,f){var b,E=this._get(f,"appendText"),D=this._get(f,"isRTL");f.append&&f.append.remove(),E&&(f.append=h("<span>").addClass(this._appendClass).text(E),o[D?"before":"after"](f.append)),o.off("focus",this._showDatepicker),f.trigger&&f.trigger.remove(),"focus"!==(E=this._get(f,"showOn"))&&"both"!==E||o.on("focus",this._showDatepicker),"button"!==E&&"both"!==E||(E=this._get(f,"buttonText"),b=this._get(f,"buttonImage"),this._get(f,"buttonImageOnly")?f.trigger=h("<img>").addClass(this._triggerClass).attr({src:b,alt:E,title:E}):(f.trigger=h("<button type='button'>").addClass(this._triggerClass),b?f.trigger.html(h("<img>").attr({src:b,alt:E,title:E})):f.trigger.text(E)),o[D?"before":"after"](f.trigger),f.trigger.on("click",function(){return h.datepicker._datepickerShowing&&h.datepicker._lastInput===o[0]?h.datepicker._hideDatepicker():(h.datepicker._datepickerShowing&&h.datepicker._lastInput!==o[0]&&h.datepicker._hideDatepicker(),h.datepicker._showDatepicker(o[0])),!1}))},_autoSize:function(o){var f,b,E,D,H,Y;this._get(o,"autoSize")&&!o.inline&&(H=new Date(2009,11,20),(Y=this._get(o,"dateFormat")).match(/[DM]/)&&(H.setMonth((f=function(nt){for(D=E=b=0;D<nt.length;D++)nt[D].length>b&&(b=nt[D].length,E=D);return E})(this._get(o,Y.match(/MM/)?"monthNames":"monthNamesShort"))),H.setDate(f(this._get(o,Y.match(/DD/)?"dayNames":"dayNamesShort"))+20-H.getDay())),o.input.attr("size",this._formatDate(o,H).length))},_inlineDatepicker:function(o,f){var b=h(o);b.hasClass(this.markerClassName)||(b.addClass(this.markerClassName).append(f.dpDiv),h.data(o,"datepicker",f),this._setDate(f,this._getDefaultDate(f),!0),this._updateDatepicker(f),this._updateAlternate(f),f.settings.disabled&&this._disableDatepicker(o),f.dpDiv.css("display","block"))},_dialogDatepicker:function(o,f,b,E,D){var H,Y=this._dialogInst;return Y||(this.uuid+=1,this._dialogInput=h("<input type='text' id='"+(H="dp"+this.uuid)+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),h("body").append(this._dialogInput),(Y=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},h.data(this._dialogInput[0],"datepicker",Y)),ke(Y.settings,E||{}),f=f&&f.constructor===Date?this._formatDate(Y,f):f,this._dialogInput.val(f),this._pos=D?D.length?D:[D.pageX,D.pageY]:null,this._pos||(H=document.documentElement.clientWidth,E=document.documentElement.clientHeight,f=document.documentElement.scrollLeft||document.body.scrollLeft,D=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[H/2-100+f,E/2-150+D]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),Y.settings.onSelect=b,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),h.blockUI&&h.blockUI(this.dpDiv),h.data(this._dialogInput[0],"datepicker",Y),this},_destroyDatepicker:function(o){var f,b=h(o),E=h.data(o,"datepicker");b.hasClass(this.markerClassName)&&(f=o.nodeName.toLowerCase(),h.removeData(o,"datepicker"),"input"===f?(E.append.remove(),E.trigger.remove(),b.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==f&&"span"!==f||b.removeClass(this.markerClassName).empty(),Ut===E)&&(Ut=null,this._curInst=null)},_enableDatepicker:function(o){var f,b=h(o),E=h.data(o,"datepicker");b.hasClass(this.markerClassName)&&("input"===(f=o.nodeName.toLowerCase())?(o.disabled=!1,E.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==f&&"span"!==f||((E=b.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),E.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=h.map(this._disabledInputs,function(D){return D===o?null:D}))},_disableDatepicker:function(o){var f,b=h(o),E=h.data(o,"datepicker");b.hasClass(this.markerClassName)&&("input"===(f=o.nodeName.toLowerCase())?(o.disabled=!0,E.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==f&&"span"!==f||((E=b.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),E.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=h.map(this._disabledInputs,function(D){return D===o?null:D}),this._disabledInputs[this._disabledInputs.length]=o)},_isDisabledDatepicker:function(o){if(o)for(var f=0;f<this._disabledInputs.length;f++)if(this._disabledInputs[f]===o)return!0;return!1},_getInst:function(o){try{return h.data(o,"datepicker")}catch(f){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(o,f,b){var E,D,H=this._getInst(o);if(2===arguments.length&&"string"==typeof f)return"defaults"===f?h.extend({},h.datepicker._defaults):H?"all"===f?h.extend({},H.settings):this._get(H,f):null;E=f||{},"string"==typeof f&&((E={})[f]=b),H&&(this._curInst===H&&this._hideDatepicker(),f=this._getDateDatepicker(o,!0),b=this._getMinMaxDate(H,"min"),D=this._getMinMaxDate(H,"max"),ke(H.settings,E),null!==b&&void 0!==E.dateFormat&&void 0===E.minDate&&(H.settings.minDate=this._formatDate(H,b)),null!==D&&void 0!==E.dateFormat&&void 0===E.maxDate&&(H.settings.maxDate=this._formatDate(H,D)),"disabled"in E&&(E.disabled?this._disableDatepicker(o):this._enableDatepicker(o)),this._attachments(h(o),H),this._autoSize(H),this._setDate(H,f),this._updateAlternate(H),this._updateDatepicker(H))},_changeDatepicker:function(o,f,b){this._optionDatepicker(o,f,b)},_refreshDatepicker:function(o){(o=this._getInst(o))&&this._updateDatepicker(o)},_setDateDatepicker:function(o,f){(o=this._getInst(o))&&(this._setDate(o,f),this._updateDatepicker(o),this._updateAlternate(o))},_getDateDatepicker:function(o,f){return(o=this._getInst(o))&&!o.inline&&this._setDateFromField(o,f),o?this._getDate(o):null},_doKeyDown:function(o){var f,b,E=h.datepicker._getInst(o.target),D=!0,H=E.dpDiv.is(".ui-datepicker-rtl");if(E._keyEvent=!0,h.datepicker._datepickerShowing)switch(o.keyCode){case 9:h.datepicker._hideDatepicker(),D=!1;break;case 13:return(b=h("td."+h.datepicker._dayOverClass+":not(."+h.datepicker._currentClass+")",E.dpDiv))[0]&&h.datepicker._selectDay(o.target,E.selectedMonth,E.selectedYear,b[0]),(b=h.datepicker._get(E,"onSelect"))?(f=h.datepicker._formatDate(E),b.apply(E.input?E.input[0]:null,[f,E])):h.datepicker._hideDatepicker(),!1;case 27:h.datepicker._hideDatepicker();break;case 33:h.datepicker._adjustDate(o.target,o.ctrlKey?-h.datepicker._get(E,"stepBigMonths"):-h.datepicker._get(E,"stepMonths"),"M");break;case 34:h.datepicker._adjustDate(o.target,o.ctrlKey?+h.datepicker._get(E,"stepBigMonths"):+h.datepicker._get(E,"stepMonths"),"M");break;case 35:(o.ctrlKey||o.metaKey)&&h.datepicker._clearDate(o.target),D=o.ctrlKey||o.metaKey;break;case 36:(o.ctrlKey||o.metaKey)&&h.datepicker._gotoToday(o.target),D=o.ctrlKey||o.metaKey;break;case 37:(o.ctrlKey||o.metaKey)&&h.datepicker._adjustDate(o.target,H?1:-1,"D"),D=o.ctrlKey||o.metaKey,o.originalEvent.altKey&&h.datepicker._adjustDate(o.target,o.ctrlKey?-h.datepicker._get(E,"stepBigMonths"):-h.datepicker._get(E,"stepMonths"),"M");break;case 38:(o.ctrlKey||o.metaKey)&&h.datepicker._adjustDate(o.target,-7,"D"),D=o.ctrlKey||o.metaKey;break;case 39:(o.ctrlKey||o.metaKey)&&h.datepicker._adjustDate(o.target,H?-1:1,"D"),D=o.ctrlKey||o.metaKey,o.originalEvent.altKey&&h.datepicker._adjustDate(o.target,o.ctrlKey?+h.datepicker._get(E,"stepBigMonths"):+h.datepicker._get(E,"stepMonths"),"M");break;case 40:(o.ctrlKey||o.metaKey)&&h.datepicker._adjustDate(o.target,7,"D"),D=o.ctrlKey||o.metaKey;break;default:D=!1}else 36===o.keyCode&&o.ctrlKey?h.datepicker._showDatepicker(this):D=!1;D&&(o.preventDefault(),o.stopPropagation())},_doKeyPress:function(o){var f,b=h.datepicker._getInst(o.target);if(h.datepicker._get(b,"constrainInput"))return b=h.datepicker._possibleChars(h.datepicker._get(b,"dateFormat")),f=String.fromCharCode(null==o.charCode?o.keyCode:o.charCode),o.ctrlKey||o.metaKey||f<" "||!b||-1<b.indexOf(f)},_doKeyUp:function(o){if((o=h.datepicker._getInst(o.target)).input.val()!==o.lastVal)try{h.datepicker.parseDate(h.datepicker._get(o,"dateFormat"),o.input?o.input.val():null,h.datepicker._getFormatConfig(o))&&(h.datepicker._setDateFromField(o),h.datepicker._updateAlternate(o),h.datepicker._updateDatepicker(o))}catch(f){}return!0},_showDatepicker:function(o){var f,b,E,D;"input"!==(o=o.target||o).nodeName.toLowerCase()&&(o=h("input",o.parentNode)[0]),h.datepicker._isDisabledDatepicker(o)||h.datepicker._lastInput===o||(D=h.datepicker._getInst(o),h.datepicker._curInst&&h.datepicker._curInst!==D&&(h.datepicker._curInst.dpDiv.stop(!0,!0),D)&&h.datepicker._datepickerShowing&&h.datepicker._hideDatepicker(h.datepicker._curInst.input[0]),!1===(b=(b=h.datepicker._get(D,"beforeShow"))?b.apply(o,[o,D]):{}))||(ke(D.settings,b),D.lastVal=null,h.datepicker._lastInput=o,h.datepicker._setDateFromField(D),h.datepicker._inDialog&&(o.value=""),h.datepicker._pos||(h.datepicker._pos=h.datepicker._findPos(o),h.datepicker._pos[1]+=o.offsetHeight),f=!1,h(o).parents().each(function(){return!(f|="fixed"===h(this).css("position"))}),b={left:h.datepicker._pos[0],top:h.datepicker._pos[1]},h.datepicker._pos=null,D.dpDiv.empty(),D.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),h.datepicker._updateDatepicker(D),b=h.datepicker._checkOffset(D,b,f),D.dpDiv.css({position:h.datepicker._inDialog&&h.blockUI?"static":f?"fixed":"absolute",display:"none",left:b.left+"px",top:b.top+"px"}),D.inline)||(b=h.datepicker._get(D,"showAnim"),E=h.datepicker._get(D,"duration"),D.dpDiv.css("z-index",function(H){for(var Y;H.length&&H[0]!==document;){if(("absolute"===(Y=H.css("position"))||"relative"===Y||"fixed"===Y)&&(Y=parseInt(H.css("zIndex"),10),!isNaN(Y))&&0!==Y)return Y;H=H.parent()}return 0}(h(o))+1),h.datepicker._datepickerShowing=!0,h.effects&&h.effects.effect[b]?D.dpDiv.show(b,h.datepicker._get(D,"showOptions"),E):D.dpDiv[b||"show"](b?E:null),h.datepicker._shouldFocusInput(D)&&D.input.trigger("focus"),h.datepicker._curInst=D)},_updateDatepicker:function(o){this.maxRows=4,(Ut=o).dpDiv.empty().append(this._generateHTML(o)),this._attachHandlers(o);var f,b=this._getNumberOfMonths(o),E=b[1],D=o.dpDiv.find("."+this._dayOverClass+" a"),H=h.datepicker._get(o,"onUpdateDatepicker");0<D.length&&Vt.apply(D.get(0)),o.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<E&&o.dpDiv.addClass("ui-datepicker-multi-"+E).css("width",17*E+"em"),o.dpDiv[(1!==b[0]||1!==b[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),o.dpDiv[(this._get(o,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),o===h.datepicker._curInst&&h.datepicker._datepickerShowing&&h.datepicker._shouldFocusInput(o)&&o.input.trigger("focus"),o.yearshtml&&(f=o.yearshtml,setTimeout(function(){f===o.yearshtml&&o.yearshtml&&o.dpDiv.find("select.ui-datepicker-year").first().replaceWith(o.yearshtml),f=o.yearshtml=null},0)),H&&H.apply(o.input?o.input[0]:null,[o])},_shouldFocusInput:function(o){return o.input&&o.input.is(":visible")&&!o.input.is(":disabled")&&!o.input.is(":focus")},_checkOffset:function(o,f,b){var E=o.dpDiv.outerWidth(),D=o.dpDiv.outerHeight(),H=o.input?o.input.outerWidth():0,Y=o.input?o.input.outerHeight():0,nt=document.documentElement.clientWidth+(b?0:h(document).scrollLeft()),ot=document.documentElement.clientHeight+(b?0:h(document).scrollTop());return f.left-=this._get(o,"isRTL")?E-H:0,f.left-=b&&f.left===o.input.offset().left?h(document).scrollLeft():0,f.top-=b&&f.top===o.input.offset().top+Y?h(document).scrollTop():0,f.left-=Math.min(f.left,f.left+E>nt&&E<nt?Math.abs(f.left+E-nt):0),f.top-=Math.min(f.top,f.top+D>ot&&D<ot?Math.abs(D+Y):0),f},_findPos:function(o){for(var f=this._getInst(o),b=this._get(f,"isRTL");o&&("hidden"===o.type||1!==o.nodeType||h.expr.pseudos.hidden(o));)o=o[b?"previousSibling":"nextSibling"];return[(f=h(o).offset()).left,f.top]},_hideDatepicker:function(o){var f,b,E=this._curInst;!E||o&&E!==h.data(o,"datepicker")||this._datepickerShowing&&(o=this._get(E,"showAnim"),b=this._get(E,"duration"),f=function(){h.datepicker._tidyDialog(E)},h.effects&&(h.effects.effect[o]||h.effects[o])?E.dpDiv.hide(o,h.datepicker._get(E,"showOptions"),b,f):E.dpDiv["slideDown"===o?"slideUp":"fadeIn"===o?"fadeOut":"hide"](o?b:null,f),o||f(),this._datepickerShowing=!1,(b=this._get(E,"onClose"))&&b.apply(E.input?E.input[0]:null,[E.input?E.input.val():"",E]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),h.blockUI)&&(h.unblockUI(),h("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(o){o.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(o){var f;h.datepicker._curInst&&(o=h(o.target),f=h.datepicker._getInst(o[0]),!(o[0].id===h.datepicker._mainDivId||0!==o.parents("#"+h.datepicker._mainDivId).length||o.hasClass(h.datepicker.markerClassName)||o.closest("."+h.datepicker._triggerClass).length||!h.datepicker._datepickerShowing||h.datepicker._inDialog&&h.blockUI)||o.hasClass(h.datepicker.markerClassName)&&h.datepicker._curInst!==f)&&h.datepicker._hideDatepicker()},_adjustDate:function(E,f,b){E=h(E);var D=this._getInst(E[0]);this._isDisabledDatepicker(E[0])||(this._adjustInstDate(D,f,b),this._updateDatepicker(D))},_gotoToday:function(b){b=h(b);var f,E=this._getInst(b[0]);this._get(E,"gotoCurrent")&&E.currentDay?(E.selectedDay=E.currentDay,E.drawMonth=E.selectedMonth=E.currentMonth,E.drawYear=E.selectedYear=E.currentYear):(f=new Date,E.selectedDay=f.getDate(),E.drawMonth=E.selectedMonth=f.getMonth(),E.drawYear=E.selectedYear=f.getFullYear()),this._notifyChange(E),this._adjustDate(b)},_selectMonthYear:function(E,f,b){E=h(E);var D=this._getInst(E[0]);D["selected"+("M"===b?"Month":"Year")]=D["draw"+("M"===b?"Month":"Year")]=parseInt(f.options[f.selectedIndex].value,10),this._notifyChange(D),this._adjustDate(E)},_selectDay:function(o,f,b,E){var D=h(o);h(E).hasClass(this._unselectableClass)||this._isDisabledDatepicker(D[0])||((D=this._getInst(D[0])).selectedDay=D.currentDay=parseInt(h("a",E).attr("data-date")),D.selectedMonth=D.currentMonth=f,D.selectedYear=D.currentYear=b,this._selectDate(o,this._formatDate(D,D.currentDay,D.currentMonth,D.currentYear)))},_clearDate:function(o){o=h(o),this._selectDate(o,"")},_selectDate:function(E,f){var b;E=h(E),E=this._getInst(E[0]),f=null!=f?f:this._formatDate(E),E.input&&E.input.val(f),this._updateAlternate(E),(b=this._get(E,"onSelect"))?b.apply(E.input?E.input[0]:null,[f,E]):E.input&&E.input.trigger("change"),E.inline?this._updateDatepicker(E):(this._hideDatepicker(),this._lastInput=E.input[0],"object"!=typeof E.input[0]&&E.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(o){var f,b,E=this._get(o,"altField");E&&(b=this._get(o,"altFormat")||this._get(o,"dateFormat"),f=this._getDate(o),b=this.formatDate(b,f,this._getFormatConfig(o)),h(document).find(E).val(b))},noWeekends:function(o){return[0<(o=o.getDay())&&o<6,""]},iso8601Week:function(b){var f;return(b=new Date(b.getTime())).setDate(b.getDate()+4-(b.getDay()||7)),f=b.getTime(),b.setMonth(0),b.setDate(1),Math.floor(Math.round((f-b)/864e5)/7)+1},parseDate:function(o,f,b){if(null==o||null==f)throw"Invalid arguments";if(""===(f="object"==typeof f?f.toString():f+""))return null;for(var E,D,H=0,Y="string"!=typeof(Y=(b?b.shortYearCutoff:null)||this._defaults.shortYearCutoff)?Y:(new Date).getFullYear()%100+parseInt(Y,10),nt=(b?b.dayNamesShort:null)||this._defaults.dayNamesShort,ot=(b?b.dayNames:null)||this._defaults.dayNames,K=(b?b.monthNamesShort:null)||this._defaults.monthNamesShort,G=(b?b.monthNames:null)||this._defaults.monthNames,Q=-1,pt=-1,bt=-1,Ht=-1,Ft=!1,V=function(Et){return(Et=St+1<o.length&&o.charAt(St+1)===Et)&&St++,Et},dt=function(At){var Ot=V(At);if(Ot="@"===At?14:"!"===At?20:"y"===At&&Ot?4:"o"===At?3:2,At=new RegExp("^\\d{"+("y"===At?Ot:1)+","+Ot+"}"),Ot=f.substring(H).match(At))return H+=Ot[0].length,parseInt(Ot[0],10);throw"Missing number at position "+H},gt=function(Xt,At,Ot){var Gt=-1;if(Xt=h.map(V(Xt)?Ot:At,function(Zt,Wt){return[[Wt,Zt]]}).sort(function(Zt,Wt){return-(Zt[1].length-Wt[1].length)}),h.each(Xt,function(Zt,Wt){var ae=Wt[1];if(f.substr(H,ae.length).toLowerCase()===ae.toLowerCase())return Gt=Wt[0],H+=ae.length,!1}),-1!==Gt)return Gt+1;throw"Unknown name at position "+H},yt=function(){if(f.charAt(H)!==o.charAt(St))throw"Unexpected literal at position "+H;H++},St=0;St<o.length;St++)if(Ft)"'"!==o.charAt(St)||V("'")?yt():Ft=!1;else switch(o.charAt(St)){case"d":bt=dt("d");break;case"D":gt("D",nt,ot);break;case"o":Ht=dt("o");break;case"m":pt=dt("m");break;case"M":pt=gt("M",K,G);break;case"y":Q=dt("y");break;case"@":Q=(D=new Date(dt("@"))).getFullYear(),pt=D.getMonth()+1,bt=D.getDate();break;case"!":Q=(D=new Date((dt("!")-this._ticksTo1970)/1e4)).getFullYear(),pt=D.getMonth()+1,bt=D.getDate();break;case"'":V("'")?yt():Ft=!0;break;default:yt()}if(H<f.length&&(b=f.substr(H),!/^\s+/.test(b)))throw"Extra/unparsed characters found in date: "+b;if(-1===Q?Q=(new Date).getFullYear():Q<100&&(Q+=(new Date).getFullYear()-(new Date).getFullYear()%100+(Q<=Y?0:-100)),-1<Ht)for(pt=1,bt=Ht;!(bt<=(E=this._getDaysInMonth(Q,pt-1)));)pt++,bt-=E;if((D=this._daylightSavingAdjust(new Date(Q,pt-1,bt))).getFullYear()!==Q||D.getMonth()+1!==pt||D.getDate()!==bt)throw"Invalid date";return D},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(o,f,b){if(!f)return"";function E(bt,Ht,Ft){var V=""+Ht;if(G(bt))for(;V.length<Ft;)V="0"+V;return V}function D(bt,Ht,Ft,V){return(G(bt)?V:Ft)[Ht]}var H,Y=(b?b.dayNamesShort:null)||this._defaults.dayNamesShort,nt=(b?b.dayNames:null)||this._defaults.dayNames,ot=(b?b.monthNamesShort:null)||this._defaults.monthNamesShort,K=(b?b.monthNames:null)||this._defaults.monthNames,G=function(bt){return(bt=H+1<o.length&&o.charAt(H+1)===bt)&&H++,bt},Q="",pt=!1;if(f)for(H=0;H<o.length;H++)if(pt)"'"!==o.charAt(H)||G("'")?Q+=o.charAt(H):pt=!1;else switch(o.charAt(H)){case"d":Q+=E("d",f.getDate(),2);break;case"D":Q+=D("D",f.getDay(),Y,nt);break;case"o":Q+=E("o",Math.round((new Date(f.getFullYear(),f.getMonth(),f.getDate()).getTime()-new Date(f.getFullYear(),0,0).getTime())/864e5),3);break;case"m":Q+=E("m",f.getMonth()+1,2);break;case"M":Q+=D("M",f.getMonth(),ot,K);break;case"y":Q+=G("y")?f.getFullYear():(f.getFullYear()%100<10?"0":"")+f.getFullYear()%100;break;case"@":Q+=f.getTime();break;case"!":Q+=1e4*f.getTime()+this._ticksTo1970;break;case"'":G("'")?Q+="'":pt=!0;break;default:Q+=o.charAt(H)}return Q},_possibleChars:function(o){for(var f="",b=!1,E=function(H){return(H=D+1<o.length&&o.charAt(D+1)===H)&&D++,H},D=0;D<o.length;D++)if(b)"'"!==o.charAt(D)||E("'")?f+=o.charAt(D):b=!1;else switch(o.charAt(D)){case"d":case"m":case"y":case"@":f+="0123456789";break;case"D":case"M":return null;case"'":E("'")?f+="'":b=!0;break;default:f+=o.charAt(D)}return f},_get:function(o,f){return(void 0!==o.settings[f]?o.settings:this._defaults)[f]},_setDateFromField:function(o,f){if(o.input.val()!==o.lastVal){var b=this._get(o,"dateFormat"),E=o.lastVal=o.input?o.input.val():null,D=this._getDefaultDate(o),H=D,Y=this._getFormatConfig(o);try{H=this.parseDate(b,E,Y)||D}catch(nt){E=f?"":E}o.selectedDay=H.getDate(),o.drawMonth=o.selectedMonth=H.getMonth(),o.drawYear=o.selectedYear=H.getFullYear(),o.currentDay=E?H.getDate():0,o.currentMonth=E?H.getMonth():0,o.currentYear=E?H.getFullYear():0,this._adjustInstDate(o)}},_getDefaultDate:function(o){return this._restrictMinMax(o,this._determineDate(o,this._get(o,"defaultDate"),new Date))},_determineDate:function(o,f,b){var E,D=null==f||""===f?b:"string"==typeof f?function(H){try{return h.datepicker.parseDate(h.datepicker._get(o,"dateFormat"),H,h.datepicker._getFormatConfig(o))}catch(pt){}for(var Y=(H.toLowerCase().match(/^c/)?h.datepicker._getDate(o):null)||new Date,nt=Y.getFullYear(),ot=Y.getMonth(),K=Y.getDate(),G=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,Q=G.exec(H);Q;){switch(Q[2]||"d"){case"d":case"D":K+=parseInt(Q[1],10);break;case"w":case"W":K+=7*parseInt(Q[1],10);break;case"m":case"M":ot+=parseInt(Q[1],10),K=Math.min(K,h.datepicker._getDaysInMonth(nt,ot));break;case"y":case"Y":nt+=parseInt(Q[1],10),K=Math.min(K,h.datepicker._getDaysInMonth(nt,ot))}Q=G.exec(H)}return new Date(nt,ot,K)}(f):"number"==typeof f?isNaN(f)?b:(D=f,(E=new Date).setDate(E.getDate()+D),E):new Date(f.getTime());return(D=D&&"Invalid Date"===D.toString()?b:D)&&(D.setHours(0),D.setMinutes(0),D.setSeconds(0),D.setMilliseconds(0)),this._daylightSavingAdjust(D)},_daylightSavingAdjust:function(o){return o?(o.setHours(12<o.getHours()?o.getHours()+2:0),o):null},_setDate:function(o,Y,b){var E=!Y,D=o.selectedMonth,H=o.selectedYear;Y=this._restrictMinMax(o,this._determineDate(o,Y,new Date)),o.selectedDay=o.currentDay=Y.getDate(),o.drawMonth=o.selectedMonth=o.currentMonth=Y.getMonth(),o.drawYear=o.selectedYear=o.currentYear=Y.getFullYear(),D===o.selectedMonth&&H===o.selectedYear||b||this._notifyChange(o),this._adjustInstDate(o),o.input&&o.input.val(E?"":this._formatDate(o))},_getDate:function(o){return!o.currentYear||o.input&&""===o.input.val()?null:this._daylightSavingAdjust(new Date(o.currentYear,o.currentMonth,o.currentDay))},_attachHandlers:function(o){var f=this._get(o,"stepMonths"),b="#"+o.id.replace(/\\\\/g,"\\");o.dpDiv.find("[data-handler]").map(function(){var E={prev:function(){h.datepicker._adjustDate(b,-f,"M")},next:function(){h.datepicker._adjustDate(b,+f,"M")},hide:function(){h.datepicker._hideDatepicker()},today:function(){h.datepicker._gotoToday(b)},selectDay:function(){return h.datepicker._selectDay(b,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return h.datepicker._selectMonthYear(b,this,"M"),!1},selectYear:function(){return h.datepicker._selectMonthYear(b,this,"Y"),!1}};h(this).on(this.getAttribute("data-event"),E[this.getAttribute("data-handler")])})},_generateHTML:function(o){var f,b,E,D,H,Y,nt,ot,K,G,Q,pt,bt,Ht,Ft,V,dt,gt,yt,St,Et,At,Ot,Gt,Xt,Zt,Wt,ae,se,oe,we,ze,We=new Date,Ue=this._daylightSavingAdjust(new Date(We.getFullYear(),We.getMonth(),We.getDate())),Ce=this._get(o,"isRTL"),ln=(We=this._get(o,"showButtonPanel"),this._get(o,"hideIfNoPrevNext")),Ke=this._get(o,"navigationAsDateFormat"),$e=this._getNumberOfMonths(o),Pe=this._get(o,"showCurrentAtPos"),nn=this._get(o,"stepMonths"),wn=1!==$e[0]||1!==$e[1],hn=this._daylightSavingAdjust(o.currentDay?new Date(o.currentYear,o.currentMonth,o.currentDay):new Date(9999,9,9)),dn=this._getMinMaxDate(o,"min"),cn=this._getMinMaxDate(o,"max"),De=o.drawMonth-Pe,Ie=o.drawYear;if(De<0&&(De+=12,Ie--),cn)for(f=this._daylightSavingAdjust(new Date(cn.getFullYear(),cn.getMonth()-$e[0]*$e[1]+1,cn.getDate())),f=dn&&f<dn?dn:f;this._daylightSavingAdjust(new Date(Ie,De,1))>f;)--De<0&&(De=11,Ie--);for(o.drawMonth=De,o.drawYear=Ie,Pe=this._get(o,"prevText"),Pe=Ke?this.formatDate(Pe,this._daylightSavingAdjust(new Date(Ie,De-nn,1)),this._getFormatConfig(o)):Pe,b=this._canAdjustMonth(o,-1,Ie,De)?h("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:Pe}).append(h("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Ce?"e":"w")).text(Pe))[0].outerHTML:ln?"":h("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:Pe}).append(h("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Ce?"e":"w")).text(Pe))[0].outerHTML,Pe=this._get(o,"nextText"),Pe=Ke?this.formatDate(Pe,this._daylightSavingAdjust(new Date(Ie,De+nn,1)),this._getFormatConfig(o)):Pe,E=this._canAdjustMonth(o,1,Ie,De)?h("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:Pe}).append(h("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Ce?"w":"e")).text(Pe))[0].outerHTML:ln?"":h("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:Pe}).append(h("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(Ce?"w":"e")).text(Pe))[0].outerHTML,nn=this._get(o,"currentText"),ln=this._get(o,"gotoCurrent")&&o.currentDay?hn:Ue,nn=Ke?this.formatDate(nn,ln,this._getFormatConfig(o)):nn,Pe="",o.inline||(Pe=h("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(o,"closeText"))[0].outerHTML),Ke="",We&&(Ke=h("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(Ce?Pe:"").append(this._isInRange(o,ln)?h("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(nn):"").append(Ce?"":Pe)[0].outerHTML),D=parseInt(this._get(o,"firstDay"),10),D=isNaN(D)?0:D,H=this._get(o,"showWeek"),Y=this._get(o,"dayNames"),nt=this._get(o,"dayNamesMin"),ot=this._get(o,"monthNames"),K=this._get(o,"monthNamesShort"),G=this._get(o,"beforeShowDay"),Q=this._get(o,"showOtherMonths"),pt=this._get(o,"selectOtherMonths"),bt=this._getDefaultDate(o),Ht="",V=0;V<$e[0];V++){for(dt="",this.maxRows=4,gt=0;gt<$e[1];gt++){if(yt=this._daylightSavingAdjust(new Date(Ie,De,o.selectedDay)),St=" ui-corner-all",Et="",wn){if(Et+="<div class='ui-datepicker-group",1<$e[1])switch(gt){case 0:Et+=" ui-datepicker-group-first",St=" ui-corner-"+(Ce?"right":"left");break;case $e[1]-1:Et+=" ui-datepicker-group-last",St=" ui-corner-"+(Ce?"left":"right");break;default:Et+=" ui-datepicker-group-middle",St=""}Et+="'>"}for(Et+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+St+"'>"+(/all|left/.test(St)&&0===V?Ce?E:b:"")+(/all|right/.test(St)&&0===V?Ce?b:E:"")+this._generateMonthYearHeader(o,De,Ie,dn,cn,0<V||0<gt,ot,K)+"</div><table class='ui-datepicker-calendar'><thead><tr>",At=H?"<th class='ui-datepicker-week-col'>"+this._get(o,"weekHeader")+"</th>":"",Ft=0;Ft<7;Ft++)At+="<th scope='col'"+(5<=(Ft+D+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+Y[Ot=(Ft+D)%7]+"'>"+nt[Ot]+"</span></th>";for(Et+=At+"</tr></thead><tbody>",Xt=this._getDaysInMonth(Ie,De),Ie===o.selectedYear&&De===o.selectedMonth&&(o.selectedDay=Math.min(o.selectedDay,Xt)),Gt=(this._getFirstDayOfMonth(Ie,De)-D+7)%7,Xt=Math.ceil((Gt+Xt)/7),this.maxRows=Zt=wn&&this.maxRows>Xt?this.maxRows:Xt,Wt=this._daylightSavingAdjust(new Date(Ie,De,1-Gt)),ae=0;ae<Zt;ae++){for(Et+="<tr>",se=H?"<td class='ui-datepicker-week-col'>"+this._get(o,"calculateWeek")(Wt)+"</td>":"",Ft=0;Ft<7;Ft++)oe=G?G.apply(o.input?o.input[0]:null,[Wt]):[!0,""],ze=(we=Wt.getMonth()!==De)&&!pt||!oe[0]||dn&&Wt<dn||cn&&cn<Wt,se+="<td class='"+(5<=(Ft+D+6)%7?" ui-datepicker-week-end":"")+(we?" ui-datepicker-other-month":"")+(Wt.getTime()===yt.getTime()&&De===o.selectedMonth&&o._keyEvent||bt.getTime()===Wt.getTime()&&bt.getTime()===yt.getTime()?" "+this._dayOverClass:"")+(ze?" "+this._unselectableClass+" ui-state-disabled":"")+(we&&!Q?"":" "+oe[1]+(Wt.getTime()===hn.getTime()?" "+this._currentClass:"")+(Wt.getTime()===Ue.getTime()?" ui-datepicker-today":""))+"'"+(we&&!Q||!oe[2]?"":" title='"+oe[2].replace(/'/g,"'")+"'")+(ze?"":" data-handler='selectDay' data-event='click' data-month='"+Wt.getMonth()+"' data-year='"+Wt.getFullYear()+"'")+">"+(we&&!Q?" ":ze?"<span class='ui-state-default'>"+Wt.getDate()+"</span>":"<a class='ui-state-default"+(Wt.getTime()===Ue.getTime()?" ui-state-highlight":"")+(Wt.getTime()===hn.getTime()?" ui-state-active":"")+(we?" ui-priority-secondary":"")+"' href='#' aria-current='"+(Wt.getTime()===hn.getTime()?"true":"false")+"' data-date='"+Wt.getDate()+"'>"+Wt.getDate()+"</a>")+"</td>",Wt.setDate(Wt.getDate()+1),Wt=this._daylightSavingAdjust(Wt);Et+=se+"</tr>"}11<++De&&(De=0,Ie++),dt+=Et+="</tbody></table>"+(wn?"</div>"+(0<$e[0]&>===$e[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}Ht+=dt}return Ht+=Ke,o._keyEvent=!1,Ht},_generateMonthYearHeader:function(o,f,b,E,D,H,Y,nt){var ot,K,G,Q,pt,bt,Ht=this._get(o,"changeMonth"),Ft=this._get(o,"changeYear"),V=this._get(o,"showMonthAfterYear"),dt=this._get(o,"selectMonthLabel"),gt=this._get(o,"selectYearLabel"),yt="<div class='ui-datepicker-title'>",St="";if(H||!Ht)St+="<span class='ui-datepicker-month'>"+Y[f]+"</span>";else{for(ot=E&&E.getFullYear()===b,K=D&&D.getFullYear()===b,St+="<select class='ui-datepicker-month' aria-label='"+dt+"' data-handler='selectMonth' data-event='change'>",G=0;G<12;G++)(!ot||G>=E.getMonth())&&(!K||G<=D.getMonth())&&(St+="<option value='"+G+"'"+(G===f?" selected='selected'":"")+">"+nt[G]+"</option>");St+="</select>"}if(V||(yt+=St+(!H&&Ht&&Ft?"":" ")),!o.yearshtml)if(o.yearshtml="",H||!Ft)yt+="<span class='ui-datepicker-year'>"+b+"</span>";else{for(Y=this._get(o,"yearRange").split(":"),Q=(new Date).getFullYear(),pt=(dt=function(Et){return Et=Et.match(/c[+\-].*/)?b+parseInt(Et.substring(1),10):Et.match(/[+\-].*/)?Q+parseInt(Et,10):parseInt(Et,10),isNaN(Et)?Q:Et})(Y[0]),bt=Math.max(pt,dt(Y[1]||"")),pt=E?Math.max(pt,E.getFullYear()):pt,bt=D?Math.min(bt,D.getFullYear()):bt,o.yearshtml+="<select class='ui-datepicker-year' aria-label='"+gt+"' data-handler='selectYear' data-event='change'>";pt<=bt;pt++)o.yearshtml+="<option value='"+pt+"'"+(pt===b?" selected='selected'":"")+">"+pt+"</option>";o.yearshtml+="</select>",yt+=o.yearshtml,o.yearshtml=null}return yt+=this._get(o,"yearSuffix"),V&&(yt+=(!H&&Ht&&Ft?"":" ")+St),yt+"</div>"},_adjustInstDate:function(o,D,b){var H=o.selectedYear+("Y"===b?D:0),E=o.selectedMonth+("M"===b?D:0);D=Math.min(o.selectedDay,this._getDaysInMonth(H,E))+("D"===b?D:0),H=this._restrictMinMax(o,this._daylightSavingAdjust(new Date(H,E,D))),o.selectedDay=H.getDate(),o.drawMonth=o.selectedMonth=H.getMonth(),o.drawYear=o.selectedYear=H.getFullYear(),"M"!==b&&"Y"!==b||this._notifyChange(o)},_restrictMinMax:function(b,f){var E=(E=this._getMinMaxDate(b,"min"))&&f<E?E:f;return(b=this._getMinMaxDate(b,"max"))&&b<E?b:E},_notifyChange:function(o){var f=this._get(o,"onChangeMonthYear");f&&f.apply(o.input?o.input[0]:null,[o.selectedYear,o.selectedMonth+1,o])},_getNumberOfMonths:function(o){return null==(o=this._get(o,"numberOfMonths"))?[1,1]:"number"==typeof o?[1,o]:o},_getMinMaxDate:function(o,f){return this._determineDate(o,this._get(o,f+"Date"),null)},_getDaysInMonth:function(o,f){return 32-this._daylightSavingAdjust(new Date(o,f,32)).getDate()},_getFirstDayOfMonth:function(o,f){return new Date(o,f,1).getDay()},_canAdjustMonth:function(o,f,H,E){var D=this._getNumberOfMonths(o);return H=this._daylightSavingAdjust(new Date(H,E+(f<0?f:D[0]*D[1]),1)),f<0&&H.setDate(this._getDaysInMonth(H.getFullYear(),H.getMonth())),this._isInRange(o,H)},_isInRange:function(nt,f){var b,E=this._getMinMaxDate(nt,"min"),D=this._getMinMaxDate(nt,"max"),H=null,Y=null;return(nt=this._get(nt,"yearRange"))&&(nt=nt.split(":"),b=(new Date).getFullYear(),H=parseInt(nt[0],10),Y=parseInt(nt[1],10),nt[0].match(/[+\-].*/)&&(H+=b),nt[1].match(/[+\-].*/))&&(Y+=b),(!E||f.getTime()>=E.getTime())&&(!D||f.getTime()<=D.getTime())&&(!H||f.getFullYear()>=H)&&(!Y||f.getFullYear()<=Y)},_getFormatConfig:function(o){var f=this._get(o,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof f?f:(new Date).getFullYear()%100+parseInt(f,10),dayNamesShort:this._get(o,"dayNamesShort"),dayNames:this._get(o,"dayNames"),monthNamesShort:this._get(o,"monthNamesShort"),monthNames:this._get(o,"monthNames")}},_formatDate:function(o,f,b,E){return f||(o.currentDay=o.selectedDay,o.currentMonth=o.selectedMonth,o.currentYear=o.selectedYear),E=f?"object"==typeof f?f:this._daylightSavingAdjust(new Date(E,b,f)):this._daylightSavingAdjust(new Date(o.currentYear,o.currentMonth,o.currentDay)),this.formatDate(this._get(o,"dateFormat"),E,this._getFormatConfig(o))}}),h.fn.datepicker=function(o){if(!this.length)return this;h.datepicker.initialized||(h(document).on("mousedown",h.datepicker._checkExternalClick),h.datepicker.initialized=!0),0===h("#"+h.datepicker._mainDivId).length&&h("body").append(h.datepicker.dpDiv);var f=Array.prototype.slice.call(arguments,1);return"string"==typeof o&&("isDisabled"===o||"getDate"===o||"widget"===o)||"option"===o&&2===arguments.length&&"string"==typeof arguments[1]?h.datepicker["_"+o+"Datepicker"].apply(h.datepicker,[this[0]].concat(f)):this.each(function(){"string"==typeof o?h.datepicker["_"+o+"Datepicker"].apply(h.datepicker,[this].concat(f)):h.datepicker._attachDatepicker(this,o)})},h.datepicker=new ne,h.datepicker.initialized=!1,h.datepicker.uuid=(new Date).getTime(),h.datepicker.version="1.13.3",h.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var Fe,me=!1;function be(o,f,b){return f<=o&&o<f+b}function Me(o){return function(){var f=this.element.val();o.apply(this,arguments),this._refresh(),f!==this.element.val()&&this._trigger("change")}}h(document).on("mouseup",function(){me=!1}),h.widget("ui.mouse",{version:"1.13.3",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var o=this;this.element.on("mousedown."+this.widgetName,function(f){return o._mouseDown(f)}).on("click."+this.widgetName,function(f){if(!0===h.data(f.target,o.widgetName+".preventClickEvent"))return h.removeData(f.target,o.widgetName+".preventClickEvent"),f.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(o){var f,b,E;if(!me)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(o),b=1===(this._mouseDownEvent=o).which,E=!("string"!=typeof(f=this).options.cancel||!o.target.nodeName)&&h(o.target).closest(this.options.cancel).length,b&&!E&&this._mouseCapture(o)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){f.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(o)&&this._mouseDelayMet(o)&&(this._mouseStarted=!1!==this._mouseStart(o),!this._mouseStarted)?o.preventDefault():(!0===h.data(o.target,this.widgetName+".preventClickEvent")&&h.removeData(o.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(D){return f._mouseMove(D)},this._mouseUpDelegate=function(D){return f._mouseUp(D)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),o.preventDefault(),me=!0)),!0},_mouseMove:function(o){if(this._mouseMoved){if(h.ui.ie&&(!document.documentMode||document.documentMode<9)&&!o.button)return this._mouseUp(o);if(!o.which)if(o.originalEvent.altKey||o.originalEvent.ctrlKey||o.originalEvent.metaKey||o.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(o)}return(o.which||o.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(o),o.preventDefault()):(this._mouseDistanceMet(o)&&this._mouseDelayMet(o)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,o),this._mouseStarted?this._mouseDrag(o):this._mouseUp(o)),!this._mouseStarted)},_mouseUp:function(o){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,o.target===this._mouseDownEvent.target&&h.data(o.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(o)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,me=!1,o.preventDefault()},_mouseDistanceMet:function(o){return Math.max(Math.abs(this._mouseDownEvent.pageX-o.pageX),Math.abs(this._mouseDownEvent.pageY-o.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),h.ui.plugin={add:function(o,f,b){var E,D=h.ui[o].prototype;for(E in b)D.plugins[E]=D.plugins[E]||[],D.plugins[E].push([f,b[E]])},call:function(o,f,b,E){var D,H=o.plugins[f];if(H&&(E||o.element[0].parentNode&&11!==o.element[0].parentNode.nodeType))for(D=0;D<H.length;D++)o.options[H[D][0]]&&H[D][1].apply(o.element,b)}},h.ui.safeBlur=function(o){o&&"body"!==o.nodeName.toLowerCase()&&h(o).trigger("blur")},h.widget("ui.draggable",h.ui.mouse,{version:"1.13.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(o,f){this._super(o,f),"handle"===o&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(o){var f=this.options;return!(this.helper||f.disabled||0<h(o.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(o),!this.handle)||(this._blurActiveElement(o),this._blockFrames(!0===f.iframeFix?"iframe":f.iframeFix),0))},_blockFrames:function(o){this.iframeBlocks=this.document.find(o).map(function(){var f=h(this);return h("<div>").css("position","absolute").appendTo(f.parent()).outerWidth(f.outerWidth()).outerHeight(f.outerHeight()).offset(f.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(o){var f=h.ui.safeActiveElement(this.document[0]);h(o.target).closest(f).length||h.ui.safeBlur(f)},_mouseStart:function(o){var f=this.options;return this.helper=this._createHelper(o),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),h.ui.ddmanager&&(h.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===h(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(o),this.originalPosition=this.position=this._generatePosition(o,!1),this.originalPageX=o.pageX,this.originalPageY=o.pageY,f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt),this._setContainment(),!1===this._trigger("start",o)?(this._clear(),!1):(this._cacheHelperProportions(),h.ui.ddmanager&&!f.dropBehaviour&&h.ui.ddmanager.prepareOffsets(this,o),this._mouseDrag(o,!0),h.ui.ddmanager&&h.ui.ddmanager.dragStart(this,o),!0)},_refreshOffsets:function(o){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:o.pageX-this.offset.left,top:o.pageY-this.offset.top}},_mouseDrag:function(o,f){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(o,!0),this.positionAbs=this._convertPositionTo("absolute"),!f){if(f=this._uiHash(),!1===this._trigger("drag",o,f))return this._mouseUp(new h.Event("mouseup",o)),!1;this.position=f.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",h.ui.ddmanager&&h.ui.ddmanager.drag(this,o),!1},_mouseStop:function(o){var f=this,b=!1;return h.ui.ddmanager&&!this.options.dropBehaviour&&(b=h.ui.ddmanager.drop(this,o)),this.dropped&&(b=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!b||"valid"===this.options.revert&&b||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,b)?h(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==f._trigger("stop",o)&&f._clear()}):!1!==this._trigger("stop",o)&&this._clear(),!1},_mouseUp:function(o){return this._unblockFrames(),h.ui.ddmanager&&h.ui.ddmanager.dragStop(this,o),this.handleElement.is(o.target)&&this.element.trigger("focus"),h.ui.mouse.prototype._mouseUp.call(this,o)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new h.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(o){return!this.options.handle||!!h(o.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(E){var f=this.options,b="function"==typeof f.helper;return(E=b?h(f.helper.apply(this.element[0],[E])):"clone"===f.helper?this.element.clone().removeAttr("id"):this.element).parents("body").length||E.appendTo("parent"===f.appendTo?this.element[0].parentNode:f.appendTo),b&&E[0]===this.element[0]&&this._setPositionRelative(),E[0]===this.element[0]||/(fixed|absolute)/.test(E.css("position"))||E.css("position","absolute"),E},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(o){"string"==typeof o&&(o=o.split(" ")),"left"in(o=Array.isArray(o)?{left:+o[0],top:+o[1]||0}:o)&&(this.offset.click.left=o.left+this.margins.left),"right"in o&&(this.offset.click.left=this.helperProportions.width-o.right+this.margins.left),"top"in o&&(this.offset.click.top=o.top+this.margins.top),"bottom"in o&&(this.offset.click.top=this.helperProportions.height-o.bottom+this.margins.top)},_isRootNode:function(o){return/(html|body)/i.test(o.tagName)||o===this.document[0]},_getParentOffset:function(){var o=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&h.contains(this.scrollParent[0],this.offsetParent[0])&&(o.left+=this.scrollParent.scrollLeft(),o.top+=this.scrollParent.scrollTop()),{top:(o=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:o).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:o.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var o,f;return"relative"!==this.cssPosition?{top:0,left:0}:(o=this.element.position(),f=this._isRootNode(this.scrollParent[0]),{top:o.top-(parseInt(this.helper.css("top"),10)||0)+(f?0:this.scrollParent.scrollTop()),left:o.left-(parseInt(this.helper.css("left"),10)||0)+(f?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var o,f=this.options,b=this.document[0];this.relativeContainer=null,f.containment?"window"===f.containment?this.containment=[h(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,h(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,h(window).scrollLeft()+h(window).width()-this.helperProportions.width-this.margins.left,h(window).scrollTop()+(h(window).height()||b.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===f.containment?this.containment=[0,0,h(b).width()-this.helperProportions.width-this.margins.left,(h(b).height()||b.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:f.containment.constructor===Array?this.containment=f.containment:("parent"===f.containment&&(f.containment=this.helper[0].parentNode),(f=(b=h(f.containment))[0])&&(o=/(scroll|auto)/.test(b.css("overflow")),this.containment=[(parseInt(b.css("borderLeftWidth"),10)||0)+(parseInt(b.css("paddingLeft"),10)||0),(parseInt(b.css("borderTopWidth"),10)||0)+(parseInt(b.css("paddingTop"),10)||0),(o?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(b.css("borderRightWidth"),10)||0)-(parseInt(b.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(o?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b.css("borderBottomWidth"),10)||0)-(parseInt(b.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=b)):this.containment=null},_convertPositionTo:function(b,f){f=f||this.position,b="absolute"===b?1:-1;var E=this._isRootNode(this.scrollParent[0]);return{top:f.top+this.offset.relative.top*b+this.offset.parent.top*b-("fixed"===this.cssPosition?-this.offset.scroll.top:E?0:this.offset.scroll.top)*b,left:f.left+this.offset.relative.left*b+this.offset.parent.left*b-("fixed"===this.cssPosition?-this.offset.scroll.left:E?0:this.offset.scroll.left)*b}},_generatePosition:function(o,f){var b,E=this.options,D=this._isRootNode(this.scrollParent[0]),H=o.pageX,Y=o.pageY;return D&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(Y=f&&(this.containment&&(b=this.relativeContainer?(f=this.relativeContainer.offset(),[this.containment[0]+f.left,this.containment[1]+f.top,this.containment[2]+f.left,this.containment[3]+f.top]):this.containment,o.pageX-this.offset.click.left<b[0]&&(H=b[0]+this.offset.click.left),o.pageY-this.offset.click.top<b[1]&&(Y=b[1]+this.offset.click.top),o.pageX-this.offset.click.left>b[2]&&(H=b[2]+this.offset.click.left),o.pageY-this.offset.click.top>b[3])&&(Y=b[3]+this.offset.click.top),E.grid&&(f=E.grid[1]?this.originalPageY+Math.round((Y-this.originalPageY)/E.grid[1])*E.grid[1]:this.originalPageY,Y=!b||f-this.offset.click.top>=b[1]||f-this.offset.click.top>b[3]?f:f-this.offset.click.top>=b[1]?f-E.grid[1]:f+E.grid[1],o=E.grid[0]?this.originalPageX+Math.round((H-this.originalPageX)/E.grid[0])*E.grid[0]:this.originalPageX,H=!b||o-this.offset.click.left>=b[0]||o-this.offset.click.left>b[2]?o:o-this.offset.click.left>=b[0]?o-E.grid[0]:o+E.grid[0]),"y"===E.axis&&(H=this.originalPageX),"x"===E.axis)?this.originalPageY:Y)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:D?0:this.offset.scroll.top),left:H-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:D?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(o,f,b){return b=b||this._uiHash(),h.ui.plugin.call(this,o,[f,b,this],!0),/^(drag|start|stop)/.test(o)&&(this.positionAbs=this._convertPositionTo("absolute"),b.offset=this.positionAbs),h.Widget.prototype._trigger.call(this,o,f,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),h.ui.plugin.add("draggable","connectToSortable",{start:function(o,f,b){var E=h.extend({},f,{item:b.element});b.sortables=[],h(b.options.connectToSortable).each(function(){var D=h(this).sortable("instance");D&&!D.options.disabled&&(b.sortables.push(D),D.refreshPositions(),D._trigger("activate",o,E))})},stop:function(o,f,b){var E=h.extend({},f,{item:b.element});b.cancelHelperRemoval=!1,h.each(b.sortables,function(){var D=this;D.isOver?(D.isOver=0,b.cancelHelperRemoval=!0,D.cancelHelperRemoval=!1,D._storedCSS={position:D.placeholder.css("position"),top:D.placeholder.css("top"),left:D.placeholder.css("left")},D._mouseStop(o),D.options.helper=D.options._helper):(D.cancelHelperRemoval=!0,D._trigger("deactivate",o,E))})},drag:function(o,f,b){h.each(b.sortables,function(){var E=!1,D=this;D.positionAbs=b.positionAbs,D.helperProportions=b.helperProportions,D.offset.click=b.offset.click,D._intersectsWith(D.containerCache)&&(E=!0,h.each(b.sortables,function(){return this.positionAbs=b.positionAbs,this.helperProportions=b.helperProportions,this.offset.click=b.offset.click,E=(this===D||!this._intersectsWith(this.containerCache)||!h.contains(D.element[0],this.element[0]))&&E})),E?(D.isOver||(D.isOver=1,b._parent=f.helper.parent(),D.currentItem=f.helper.appendTo(D.element).data("ui-sortable-item",!0),D.options._helper=D.options.helper,D.options.helper=function(){return f.helper[0]},o.target=D.currentItem[0],D._mouseCapture(o,!0),D._mouseStart(o,!0,!0),D.offset.click.top=b.offset.click.top,D.offset.click.left=b.offset.click.left,D.offset.parent.left-=b.offset.parent.left-D.offset.parent.left,D.offset.parent.top-=b.offset.parent.top-D.offset.parent.top,b._trigger("toSortable",o),b.dropped=D.element,h.each(b.sortables,function(){this.refreshPositions()}),b.currentItem=b.element,D.fromOutside=b),D.currentItem&&(D._mouseDrag(o),f.position=D.position)):D.isOver&&(D.isOver=0,D.cancelHelperRemoval=!0,D.options._revert=D.options.revert,D.options.revert=!1,D._trigger("out",o,D._uiHash(D)),D._mouseStop(o,!0),D.options.revert=D.options._revert,D.options.helper=D.options._helper,D.placeholder&&D.placeholder.remove(),f.helper.appendTo(b._parent),b._refreshOffsets(o),f.position=b._generatePosition(o,!0),b._trigger("fromSortable",o),b.dropped=!1,h.each(b.sortables,function(){this.refreshPositions()}))})}}),h.ui.plugin.add("draggable","cursor",{start:function(o,f,D){var E=h("body");D=D.options,E.css("cursor")&&(D._cursor=E.css("cursor")),E.css("cursor",D.cursor)},stop:function(o,f,b){(b=b.options)._cursor&&h("body").css("cursor",b._cursor)}}),h.ui.plugin.add("draggable","opacity",{start:function(o,f,b){f=h(f.helper),b=b.options,f.css("opacity")&&(b._opacity=f.css("opacity")),f.css("opacity",b.opacity)},stop:function(o,f,b){(b=b.options)._opacity&&h(f.helper).css("opacity",b._opacity)}}),h.ui.plugin.add("draggable","scroll",{start:function(o,f,b){b.scrollParentNotHidden||(b.scrollParentNotHidden=b.helper.scrollParent(!1)),b.scrollParentNotHidden[0]!==b.document[0]&&"HTML"!==b.scrollParentNotHidden[0].tagName&&(b.overflowOffset=b.scrollParentNotHidden.offset())},drag:function(o,f,b){var E=b.options,D=!1,H=b.scrollParentNotHidden[0],Y=b.document[0];H!==Y&&"HTML"!==H.tagName?(E.axis&&"x"===E.axis||(b.overflowOffset.top+H.offsetHeight-o.pageY<E.scrollSensitivity?H.scrollTop=D=H.scrollTop+E.scrollSpeed:o.pageY-b.overflowOffset.top<E.scrollSensitivity&&(H.scrollTop=D=H.scrollTop-E.scrollSpeed)),E.axis&&"y"===E.axis||(b.overflowOffset.left+H.offsetWidth-o.pageX<E.scrollSensitivity?H.scrollLeft=D=H.scrollLeft+E.scrollSpeed:o.pageX-b.overflowOffset.left<E.scrollSensitivity&&(H.scrollLeft=D=H.scrollLeft-E.scrollSpeed))):(E.axis&&"x"===E.axis||(o.pageY-h(Y).scrollTop()<E.scrollSensitivity?D=h(Y).scrollTop(h(Y).scrollTop()-E.scrollSpeed):h(window).height()-(o.pageY-h(Y).scrollTop())<E.scrollSensitivity&&(D=h(Y).scrollTop(h(Y).scrollTop()+E.scrollSpeed))),E.axis&&"y"===E.axis||(o.pageX-h(Y).scrollLeft()<E.scrollSensitivity?D=h(Y).scrollLeft(h(Y).scrollLeft()-E.scrollSpeed):h(window).width()-(o.pageX-h(Y).scrollLeft())<E.scrollSensitivity&&(D=h(Y).scrollLeft(h(Y).scrollLeft()+E.scrollSpeed)))),!1!==D&&h.ui.ddmanager&&!E.dropBehaviour&&h.ui.ddmanager.prepareOffsets(b,o)}}),h.ui.plugin.add("draggable","snap",{start:function(o,f,b){var E=b.options;b.snapElements=[],h(E.snap.constructor!==String?E.snap.items||":data(ui-draggable)":E.snap).each(function(){var D=h(this),H=D.offset();this!==b.element[0]&&b.snapElements.push({item:this,width:D.outerWidth(),height:D.outerHeight(),top:H.top,left:H.left})})},drag:function(o,f,b){for(var E,D,H,Y,nt,ot,K,G,Q,pt=b.options,bt=pt.snapTolerance,Ht=f.offset.left,Ft=Ht+b.helperProportions.width,V=f.offset.top,dt=V+b.helperProportions.height,gt=b.snapElements.length-1;0<=gt;gt--)ot=(nt=b.snapElements[gt].left-b.margins.left)+b.snapElements[gt].width,G=(K=b.snapElements[gt].top-b.margins.top)+b.snapElements[gt].height,Ft<nt-bt||ot+bt<Ht||dt<K-bt||G+bt<V||!h.contains(b.snapElements[gt].item.ownerDocument,b.snapElements[gt].item)?(b.snapElements[gt].snapping&&b.options.snap.release&&b.options.snap.release.call(b.element,o,h.extend(b._uiHash(),{snapItem:b.snapElements[gt].item})),b.snapElements[gt].snapping=!1):("inner"!==pt.snapMode&&(E=Math.abs(K-dt)<=bt,D=Math.abs(G-V)<=bt,H=Math.abs(nt-Ft)<=bt,Y=Math.abs(ot-Ht)<=bt,E&&(f.position.top=b._convertPositionTo("relative",{top:K-b.helperProportions.height,left:0}).top),D&&(f.position.top=b._convertPositionTo("relative",{top:G,left:0}).top),H&&(f.position.left=b._convertPositionTo("relative",{top:0,left:nt-b.helperProportions.width}).left),Y)&&(f.position.left=b._convertPositionTo("relative",{top:0,left:ot}).left),Q=E||D||H||Y,"outer"!==pt.snapMode&&(E=Math.abs(K-V)<=bt,D=Math.abs(G-dt)<=bt,H=Math.abs(nt-Ht)<=bt,Y=Math.abs(ot-Ft)<=bt,E&&(f.position.top=b._convertPositionTo("relative",{top:K,left:0}).top),D&&(f.position.top=b._convertPositionTo("relative",{top:G-b.helperProportions.height,left:0}).top),H&&(f.position.left=b._convertPositionTo("relative",{top:0,left:nt}).left),Y)&&(f.position.left=b._convertPositionTo("relative",{top:0,left:ot-b.helperProportions.width}).left),!b.snapElements[gt].snapping&&(E||D||H||Y||Q)&&b.options.snap.snap&&b.options.snap.snap.call(b.element,o,h.extend(b._uiHash(),{snapItem:b.snapElements[gt].item})),b.snapElements[gt].snapping=E||D||H||Y||Q)}}),h.ui.plugin.add("draggable","stack",{start:function(o,f,D){var E;(D=h.makeArray(h((D=D.options).stack)).sort(function(H,Y){return(parseInt(h(H).css("zIndex"),10)||0)-(parseInt(h(Y).css("zIndex"),10)||0)})).length&&(E=parseInt(h(D[0]).css("zIndex"),10)||0,h(D).each(function(H){h(this).css("zIndex",E+H)}),this.css("zIndex",E+D.length))}}),h.ui.plugin.add("draggable","zIndex",{start:function(o,f,b){f=h(f.helper),b=b.options,f.css("zIndex")&&(b._zIndex=f.css("zIndex")),f.css("zIndex",b.zIndex)},stop:function(o,f,b){(b=b.options)._zIndex&&h(f.helper).css("zIndex",b._zIndex)}}),h.widget("ui.resizable",h.ui.mouse,{version:"1.13.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(o){return parseFloat(o)||0},_isNumber:function(o){return!isNaN(parseFloat(o))},_hasScroll:function(o,b){if("hidden"===h(o).css("overflow"))return!1;var E=!1;if(0<o[b=b&&"left"===b?"scrollLeft":"scrollTop"])return!0;try{o[b]=1,E=0<o[b],o[b]=0}catch(D){}return E},_create:function(){var o,f=this.options,b=this;this._addClass("ui-resizable"),h.extend(this,{_aspectRatio:!!f.aspectRatio,aspectRatio:f.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:f.helper||f.ghost||f.animate?f.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(h("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,o={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(o),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(o),this._proportionallyResize()),this._setupHandles(),f.autoHide&&h(this.element).on("mouseenter",function(){f.disabled||(b._removeClass("ui-resizable-autohide"),b._handles.show())}).on("mouseleave",function(){f.disabled||b.resizing||(b._addClass("ui-resizable-autohide"),b._handles.hide())}),this._mouseInit()},_destroy:function(){function o(b){h(b).removeData("resizable").removeData("ui-resizable").off(".resizable")}var f;return this._mouseDestroy(),this._addedHandles.remove(),this.elementIsWrapper&&(o(this.element),this.originalElement.css({position:(f=this.element).css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")}).insertAfter(f),f.remove()),this.originalElement.css("resize",this.originalResizeStyle),o(this.originalElement),this},_setOption:function(o,f){switch(this._super(o,f),o){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!f}},_setupHandles:function(){var o,f,b,E,D,H=this.options,Y=this;if(this.handles=H.handles||(h(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=h(),this._addedHandles=h(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),b=this.handles.split(","),this.handles={},f=0;f<b.length;f++)E="ui-resizable-"+(o=String.prototype.trim.call(b[f])),D=h("<div>"),this._addClass(D,"ui-resizable-handle "+E),D.css({zIndex:H.zIndex}),this.handles[o]=".ui-resizable-"+o,this.element.children(this.handles[o]).length||(this.element.append(D),this._addedHandles=this._addedHandles.add(D));this._renderAxis=function(nt){var ot,K,G;for(ot in nt=nt||this.element,this.handles)this.handles[ot].constructor===String?this.handles[ot]=this.element.children(this.handles[ot]).first().show():(this.handles[ot].jquery||this.handles[ot].nodeType)&&(this.handles[ot]=h(this.handles[ot]),this._on(this.handles[ot],{mousedown:Y._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(G=h(this.handles[ot],this.element),G=/sw|ne|nw|se|n|s/.test(ot)?G.outerHeight():G.outerWidth(),K=["padding",/ne|nw|n/.test(ot)?"Top":/se|sw|s/.test(ot)?"Bottom":/^e$/.test(ot)?"Right":"Left"].join(""),nt.css(K,G),this._proportionallyResize()),this._handles=this._handles.add(this.handles[ot])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){Y.resizing||(this.className&&(D=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),Y.axis=D&&D[1]?D[1]:"se")}),H.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(o){var f,b,E=!1;for(f in this.handles)(b=h(this.handles[f])[0])!==o.target&&!h.contains(b,o.target)||(E=!0);return!this.options.disabled&&E},_mouseStart:function(o){var f,b,E=this.options,D=this.element;return this.resizing=!0,this._renderProxy(),f=this._num(this.helper.css("left")),b=this._num(this.helper.css("top")),E.containment&&(f+=h(E.containment).scrollLeft()||0,b+=h(E.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:f,top:b},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:D.width(),height:D.height()},this.originalSize=this._helper?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()},this.sizeDiff={width:D.outerWidth()-D.width(),height:D.outerHeight()-D.height()},this.originalPosition={left:f,top:b},this.originalMousePosition={left:o.pageX,top:o.pageY},this.aspectRatio="number"==typeof E.aspectRatio?E.aspectRatio:this.originalSize.width/this.originalSize.height||1,D=h(".ui-resizable-"+this.axis).css("cursor"),h("body").css("cursor","auto"===D?this.axis+"-resize":D),this._addClass("ui-resizable-resizing"),this._propagate("start",o),!0},_mouseDrag:function(o){var f=o.pageX-(b=this.originalMousePosition).left||0,b=o.pageY-b.top||0,E=this._change[E=this.axis];return this._updatePrevProperties(),E&&(E=E.apply(this,[o,f,b]),this._updateVirtualBoundaries(o.shiftKey),(this._aspectRatio||o.shiftKey)&&(E=this._updateRatio(E,o)),E=this._respectSize(E,o),this._updateCache(E),this._propagate("resize",o),f=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),h.isEmptyObject(f)||(this._updatePrevProperties(),this._trigger("resize",o,this.ui()),this._applyChanges())),!1},_mouseStop:function(o){this.resizing=!1;var f,b,E,D=this.options,H=this;return this._helper&&(b=(f=(b=this._proportionallyResizeElements).length&&/textarea/i.test(b[0].nodeName))&&this._hasScroll(b[0],"left")?0:H.sizeDiff.height,f=f?0:H.sizeDiff.width,f={width:H.helper.width()-f,height:H.helper.height()-b},b=parseFloat(H.element.css("left"))+(H.position.left-H.originalPosition.left)||null,E=parseFloat(H.element.css("top"))+(H.position.top-H.originalPosition.top)||null,D.animate||this.element.css(h.extend(f,{top:E,left:b})),H.helper.height(H.size.height),H.helper.width(H.size.width),this._helper)&&!D.animate&&this._proportionallyResize(),h("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",o),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var o={};return this.position.top!==this.prevPosition.top&&(o.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(o.left=this.position.left+"px"),this.helper.css(o),this.size.width!==this.prevSize.width&&(o.width=this.size.width+"px",this.helper.width(o.width)),this.size.height!==this.prevSize.height&&(o.height=this.size.height+"px",this.helper.height(o.height)),o},_updateVirtualBoundaries:function(o){var f,b,E,D={minWidth:this._isNumber((D=this.options).minWidth)?D.minWidth:0,maxWidth:this._isNumber(D.maxWidth)?D.maxWidth:1/0,minHeight:this._isNumber(D.minHeight)?D.minHeight:0,maxHeight:this._isNumber(D.maxHeight)?D.maxHeight:1/0};(this._aspectRatio||o)&&(b=D.minWidth/this.aspectRatio,f=D.maxHeight*this.aspectRatio,E=D.maxWidth/this.aspectRatio,D.minWidth<(o=D.minHeight*this.aspectRatio)&&(D.minWidth=o),D.minHeight<b&&(D.minHeight=b),f<D.maxWidth&&(D.maxWidth=f),E<D.maxHeight)&&(D.maxHeight=E),this._vBoundaries=D},_updateCache:function(o){this.offset=this.helper.offset(),this._isNumber(o.left)&&(this.position.left=o.left),this._isNumber(o.top)&&(this.position.top=o.top),this._isNumber(o.height)&&(this.size.height=o.height),this._isNumber(o.width)&&(this.size.width=o.width)},_updateRatio:function(o){var f=this.position,b=this.size,E=this.axis;return this._isNumber(o.height)?o.width=o.height*this.aspectRatio:this._isNumber(o.width)&&(o.height=o.width/this.aspectRatio),"sw"===E&&(o.left=f.left+(b.width-o.width),o.top=null),"nw"===E&&(o.top=f.top+(b.height-o.height),o.left=f.left+(b.width-o.width)),o},_respectSize:function(o){var f=this._vBoundaries,K=this.axis,b=this._isNumber(o.width)&&f.maxWidth&&f.maxWidth<o.width,E=this._isNumber(o.height)&&f.maxHeight&&f.maxHeight<o.height,D=this._isNumber(o.width)&&f.minWidth&&f.minWidth>o.width,H=this._isNumber(o.height)&&f.minHeight&&f.minHeight>o.height,Y=this.originalPosition.left+this.originalSize.width,nt=this.originalPosition.top+this.originalSize.height,ot=/sw|nw|w/.test(K);return K=/nw|ne|n/.test(K),D&&(o.width=f.minWidth),H&&(o.height=f.minHeight),b&&(o.width=f.maxWidth),E&&(o.height=f.maxHeight),D&&ot&&(o.left=Y-f.minWidth),b&&ot&&(o.left=Y-f.maxWidth),H&&K&&(o.top=nt-f.minHeight),E&&K&&(o.top=nt-f.maxHeight),o.width||o.height||o.left||!o.top?o.width||o.height||o.top||!o.left||(o.left=null):o.top=null,o},_getPaddingPlusBorderDimensions:function(o){for(var f=0,b=[],E=[o.css("borderTopWidth"),o.css("borderRightWidth"),o.css("borderBottomWidth"),o.css("borderLeftWidth")],D=[o.css("paddingTop"),o.css("paddingRight"),o.css("paddingBottom"),o.css("paddingLeft")];f<4;f++)b[f]=parseFloat(E[f])||0,b[f]+=parseFloat(D[f])||0;return{height:b[0]+b[2],width:b[1]+b[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var o,f=0,b=this.helper||this.element;f<this._proportionallyResizeElements.length;f++)o=this._proportionallyResizeElements[f],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(o)),o.css({height:b.height()-this.outerDimensions.height||0,width:b.width()-this.outerDimensions.width||0})},_renderProxy:function(){var f=this.options;this.elementOffset=this.element.offset(),this._helper?(this.helper=this.helper||h("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++f.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(o,f){return{width:this.originalSize.width+f}},w:function(o,f){return{left:this.originalPosition.left+f,width:this.originalSize.width-f}},n:function(o,f,b){return{top:this.originalPosition.top+b,height:this.originalSize.height-b}},s:function(o,f,b){return{height:this.originalSize.height+b}},se:function(o,f,b){return h.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[o,f,b]))},sw:function(o,f,b){return h.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[o,f,b]))},ne:function(o,f,b){return h.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[o,f,b]))},nw:function(o,f,b){return h.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[o,f,b]))}},_propagate:function(o,f){h.ui.plugin.call(this,o,[f,this.ui()]),"resize"!==o&&this._trigger(o,f,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),h.ui.plugin.add("resizable","animate",{stop:function(o){var f=h(this).resizable("instance"),b=f.options,E=f._proportionallyResizeElements,H=(D=E.length&&/textarea/i.test(E[0].nodeName))&&f._hasScroll(E[0],"left")?0:f.sizeDiff.height,D={width:f.size.width-(D=D?0:f.sizeDiff.width),height:f.size.height-H},Y=(H=parseFloat(f.element.css("left"))+(f.position.left-f.originalPosition.left)||null,parseFloat(f.element.css("top"))+(f.position.top-f.originalPosition.top)||null);f.element.animate(h.extend(D,Y&&H?{top:Y,left:H}:{}),{duration:b.animateDuration,easing:b.animateEasing,step:function(){var nt={width:parseFloat(f.element.css("width")),height:parseFloat(f.element.css("height")),top:parseFloat(f.element.css("top")),left:parseFloat(f.element.css("left"))};E&&E.length&&h(E[0]).css({width:nt.width,height:nt.height}),f._updateCache(nt),f._propagate("resize",o)}})}}),h.ui.plugin.add("resizable","containment",{start:function(){var o,f,b,E,H,D=h(this).resizable("instance"),Y=D.element;(Y=(H=(H=D.options).containment)instanceof h?H.get(0):/parent/.test(H)?Y.parent().get(0):H)&&(D.containerElement=h(Y),/document/.test(H)||H===document?(D.containerOffset={left:0,top:0},D.containerPosition={left:0,top:0},D.parentData={element:h(document),left:0,top:0,width:h(document).width(),height:h(document).height()||document.body.parentNode.scrollHeight}):(o=h(Y),f=[],h(["Top","Right","Left","Bottom"]).each(function(nt,ot){f[nt]=D._num(o.css("padding"+ot))}),D.containerOffset=o.offset(),D.containerPosition=o.position(),D.containerSize={height:o.innerHeight()-f[3],width:o.innerWidth()-f[1]},H=D.containerOffset,E=D.containerSize.height,b=D.containerSize.width,b=D._hasScroll(Y,"left")?Y.scrollWidth:b,E=D._hasScroll(Y)?Y.scrollHeight:E,D.parentData={element:Y,left:H.left,top:H.top,width:b,height:E}))},resize:function(H){var f=h(this).resizable("instance"),b=f.options,E=f.containerOffset,D=f.position,Y=(H=f._aspectRatio||H.shiftKey,{top:0,left:0}),nt=f.containerElement,ot=!0;nt[0]!==document&&/static/.test(nt.css("position"))&&(Y=E),D.left<(f._helper?E.left:0)&&(f.size.width=f.size.width+(f._helper?f.position.left-E.left:f.position.left-Y.left),H&&(f.size.height=f.size.width/f.aspectRatio,ot=!1),f.position.left=b.helper?E.left:0),D.top<(f._helper?E.top:0)&&(f.size.height=f.size.height+(f._helper?f.position.top-E.top:f.position.top),H&&(f.size.width=f.size.height*f.aspectRatio,ot=!1),f.position.top=f._helper?E.top:0),nt=f.containerElement.get(0)===f.element.parent().get(0),b=/relative|absolute/.test(f.containerElement.css("position")),nt&&b?(f.offset.left=f.parentData.left+f.position.left,f.offset.top=f.parentData.top+f.position.top):(f.offset.left=f.element.offset().left,f.offset.top=f.element.offset().top),D=Math.abs(f.sizeDiff.width+(f._helper?f.offset.left-Y.left:f.offset.left-E.left)),nt=Math.abs(f.sizeDiff.height+(f._helper?f.offset.top-Y.top:f.offset.top-E.top)),D+f.size.width>=f.parentData.width&&(f.size.width=f.parentData.width-D,H)&&(f.size.height=f.size.width/f.aspectRatio,ot=!1),nt+f.size.height>=f.parentData.height&&(f.size.height=f.parentData.height-nt,H)&&(f.size.width=f.size.height*f.aspectRatio,ot=!1),ot||(f.position.left=f.prevPosition.left,f.position.top=f.prevPosition.top,f.size.width=f.prevSize.width,f.size.height=f.prevSize.height)},stop:function(){var o=h(this).resizable("instance"),f=o.options,b=o.containerOffset,E=o.containerPosition,D=o.containerElement,H=(nt=h(o.helper)).offset(),Y=nt.outerWidth()-o.sizeDiff.width,nt=nt.outerHeight()-o.sizeDiff.height;o._helper&&!f.animate&&/relative/.test(D.css("position"))&&h(this).css({left:H.left-E.left-b.left,width:Y,height:nt}),o._helper&&!f.animate&&/static/.test(D.css("position"))&&h(this).css({left:H.left-E.left-b.left,width:Y,height:nt})}}),h.ui.plugin.add("resizable","alsoResize",{start:function(){var o=h(this).resizable("instance").options;h(o.alsoResize).each(function(){var f=h(this);f.data("ui-resizable-alsoresize",{width:parseFloat(f.css("width")),height:parseFloat(f.css("height")),left:parseFloat(f.css("left")),top:parseFloat(f.css("top"))})})},resize:function(o,f){var b=h(this).resizable("instance"),D=b.originalSize,H=b.originalPosition,Y={height:b.size.height-D.height||0,width:b.size.width-D.width||0,top:b.position.top-H.top||0,left:b.position.left-H.left||0};h(b.options.alsoResize).each(function(){var nt=h(this),ot=h(this).data("ui-resizable-alsoresize"),K={},G=nt.parents(f.originalElement[0]).length?["width","height"]:["width","height","top","left"];h.each(G,function(Q,pt){var bt=(ot[pt]||0)+(Y[pt]||0);bt&&0<=bt&&(K[pt]=bt||null)}),nt.css(K)})},stop:function(){h(this).removeData("ui-resizable-alsoresize")}}),h.ui.plugin.add("resizable","ghost",{start:function(){var o=h(this).resizable("instance"),f=o.size;o.ghost=o.originalElement.clone(),o.ghost.css({opacity:.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}),o._addClass(o.ghost,"ui-resizable-ghost"),!1!==h.uiBackCompat&&"string"==typeof o.options.ghost&&o.ghost.addClass(this.options.ghost),o.ghost.appendTo(o.helper)},resize:function(){var o=h(this).resizable("instance");o.ghost&&o.ghost.css({position:"relative",height:o.size.height,width:o.size.width})},stop:function(){var o=h(this).resizable("instance");o.ghost&&o.helper&&o.helper.get(0).removeChild(o.ghost.get(0))}}),h.ui.plugin.add("resizable","grid",{resize:function(){var o,f=h(this).resizable("instance"),b=f.options,G=f.size,E=f.originalSize,D=f.originalPosition,H=f.axis,Y="number"==typeof b.grid?[b.grid,b.grid]:b.grid,nt=Y[0]||1,ot=Y[1]||1,K=Math.round((G.width-E.width)/nt)*nt,Q=(G=Math.round((G.height-E.height)/ot)*ot,E.width+K),pt=E.height+G,bt=b.maxWidth&&b.maxWidth<Q,Ht=b.maxHeight&&b.maxHeight<pt,Ft=b.minWidth&&b.minWidth>Q,V=b.minHeight&&b.minHeight>pt;b.grid=Y,Ft&&(Q+=nt),V&&(pt+=ot),bt&&(Q-=nt),Ht&&(pt-=ot),/^(se|s|e)$/.test(H)?(f.size.width=Q,f.size.height=pt):/^(ne)$/.test(H)?(f.size.width=Q,f.size.height=pt,f.position.top=D.top-G):/^(sw)$/.test(H)?(f.size.width=Q,f.size.height=pt,f.position.left=D.left-K):((pt-ot<=0||Q-nt<=0)&&(o=f._getPaddingPlusBorderDimensions(this)),0<pt-ot?(f.size.height=pt,f.position.top=D.top-G):(f.size.height=pt=ot-o.height,f.position.top=D.top+E.height-pt),0<Q-nt?(f.size.width=Q,f.position.left=D.left-K):(f.size.width=Q=nt-o.width,f.position.left=D.left+E.width-Q))}}),h.widget("ui.dialog",{version:"1.13.3",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(o){var f=h(this).css(o).offset().top;f<0&&h(this).css("top",o.top-f)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&h.fn.draggable&&this._makeDraggable(),this.options.resizable&&h.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var o=this.options.appendTo;return o&&(o.jquery||o.nodeType)?h(o):this.document.find(o||"body").eq(0)},_destroy:function(){var o,f=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(o=f.parent.children().eq(f.index)).length&&o[0]!==this.element[0]?o.before(this.element):f.parent.append(this.element)},widget:function(){return this.uiDialog},disable:h.noop,enable:h.noop,close:function(o){var f=this;this._isOpen&&!1!==this._trigger("beforeClose",o)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||h.ui.safeBlur(h.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){f._trigger("close",o)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(o,f){var b=!1,E=this.uiDialog.siblings(".ui-front:visible").map(function(){return+h(this).css("z-index")}).get();return(E=Math.max.apply(null,E))>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",E+1),b=!0),b&&!f&&this._trigger("focus",o),b},open:function(){var o=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=h(h.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){o._focusTabbable(),o._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var o=this._focusedElement;(o=(o=(o=(o=(o=o||this.element.find("[autofocus]")).length?o:this.element.find(":tabbable")).length?o:this.uiDialogButtonPane.find(":tabbable")).length?o:this.uiDialogTitlebarClose.filter(":tabbable")).length?o:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var o=h.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===o||h.contains(this.uiDialog[0],o)||this._focusTabbable()},_keepFocus:function(o){o.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=h("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(o){var f,b,E;this.options.closeOnEscape&&!o.isDefaultPrevented()&&o.keyCode&&o.keyCode===h.ui.keyCode.ESCAPE?(o.preventDefault(),this.close(o)):o.keyCode!==h.ui.keyCode.TAB||o.isDefaultPrevented()||(f=this.uiDialog.find(":tabbable"),b=f.first(),E=f.last(),o.target!==E[0]&&o.target!==this.uiDialog[0]||o.shiftKey?o.target!==b[0]&&o.target!==this.uiDialog[0]||!o.shiftKey||(this._delay(function(){E.trigger("focus")}),o.preventDefault()):(this._delay(function(){b.trigger("focus")}),o.preventDefault()))},mousedown:function(o){this._moveToTop(o)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var o;this.uiDialogTitlebar=h("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(f){h(f.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=h("<button type='button'></button>").button({label:h("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(f){f.preventDefault(),this.close(f)}}),o=h("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(o,"ui-dialog-title"),this._title(o),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":o.attr("id")})},_title:function(o){this.options.title?o.text(this.options.title):o.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=h("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=h("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var o=this,f=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),h.isEmptyObject(f)||Array.isArray(f)&&!f.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(h.each(f,function(b,E){var D;E=h.extend({type:"button"},E="function"==typeof E?{click:E,text:b}:E),D=E.click,b={icon:E.icon,iconPosition:E.iconPosition,showLabel:E.showLabel,icons:E.icons,text:E.text},delete E.click,delete E.icon,delete E.iconPosition,delete E.showLabel,delete E.icons,"boolean"==typeof E.text&&delete E.text,h("<button></button>",E).button(b).appendTo(o.uiButtonSet).on("click",function(){D.apply(o.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var o=this,f=this.options;function b(E){return{position:E.position,offset:E.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(E,D){o._addClass(h(this),"ui-dialog-dragging"),o._blockFrames(),o._trigger("dragStart",E,b(D))},drag:function(E,D){o._trigger("drag",E,b(D))},stop:function(E,D){var H=D.offset.left-o.document.scrollLeft(),Y=D.offset.top-o.document.scrollTop();f.position={my:"left top",at:"left"+(0<=H?"+":"")+H+" top"+(0<=Y?"+":"")+Y,of:o.window},o._removeClass(h(this),"ui-dialog-dragging"),o._unblockFrames(),o._trigger("dragStop",E,b(D))}})},_makeResizable:function(){var o=this,f=this.options,E=f.resizable,b=this.uiDialog.css("position");function D(H){return{originalPosition:H.originalPosition,originalSize:H.originalSize,position:H.position,size:H.size}}E="string"==typeof E?E:"n,e,s,w,se,sw,ne,nw",this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:this._minHeight(),handles:E,start:function(H,Y){o._addClass(h(this),"ui-dialog-resizing"),o._blockFrames(),o._trigger("resizeStart",H,D(Y))},resize:function(H,Y){o._trigger("resize",H,D(Y))},stop:function(H,Y){var nt=(ot=o.uiDialog.offset()).left-o.document.scrollLeft(),ot=ot.top-o.document.scrollTop();f.height=o.uiDialog.height(),f.width=o.uiDialog.width(),f.position={my:"left top",at:"left"+(0<=nt?"+":"")+nt+" top"+(0<=ot?"+":"")+ot,of:o.window},o._removeClass(h(this),"ui-dialog-resizing"),o._unblockFrames(),o._trigger("resizeStop",H,D(Y))}}).css("position",b)},_trackFocus:function(){this._on(this.widget(),{focusin:function(o){this._makeFocusTarget(),this._focusedElement=h(o.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var o=this._trackingInstances(),f=h.inArray(this,o);-1!==f&&o.splice(f,1)},_trackingInstances:function(){var o=this.document.data("ui-dialog-instances");return o||this.document.data("ui-dialog-instances",o=[]),o},_minHeight:function(){var o=this.options;return"auto"===o.height?o.minHeight:Math.min(o.minHeight,o.height)},_position:function(){var o=this.uiDialog.is(":visible");o||this.uiDialog.show(),this.uiDialog.position(this.options.position),o||this.uiDialog.hide()},_setOptions:function(o){var f=this,b=!1,E={};h.each(o,function(D,H){f._setOption(D,H),D in f.sizeRelatedOptions&&(b=!0),D in f.resizableRelatedOptions&&(E[D]=H)}),b&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",E)},_setOption:function(o,f){var b,E=this.uiDialog;"disabled"!==o&&(this._super(o,f),"appendTo"===o&&this.uiDialog.appendTo(this._appendTo()),"buttons"===o&&this._createButtons(),"closeText"===o&&this.uiDialogTitlebarClose.button({label:h("<a>").text(""+this.options.closeText).html()}),"draggable"===o&&((b=E.is(":data(ui-draggable)"))&&!f&&E.draggable("destroy"),!b)&&f&&this._makeDraggable(),"position"===o&&this._position(),"resizable"===o&&((b=E.is(":data(ui-resizable)"))&&!f&&E.resizable("destroy"),b&&"string"==typeof f&&E.resizable("option","handles",f),b||!1===f||this._makeResizable()),"title"===o)&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var o,f,b,E=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),E.minWidth>E.width&&(E.width=E.minWidth),o=this.uiDialog.css({height:"auto",width:E.width}).outerHeight(),f=Math.max(0,E.minHeight-o),b="number"==typeof E.maxHeight?Math.max(0,E.maxHeight-o):"none","auto"===E.height?this.element.css({minHeight:f,maxHeight:b,height:"auto"}):this.element.height(Math.max(0,E.height-o)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var o=h(this);return h("<div>").css({position:"absolute",width:o.outerWidth(),height:o.outerHeight()}).appendTo(o.parent()).offset(o.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(o){return!!h(o.target).closest(".ui-dialog").length||!!h(o.target).closest(".ui-datepicker").length},_createOverlay:function(){var o,f;this.options.modal&&(o=h.fn.jquery.substring(0,4),f=!0,this._delay(function(){f=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(b){var E;f||(E=this._trackingInstances()[0])._allowInteraction(b)||(b.preventDefault(),E._focusTabbable(),"3.4."!==o&&"3.5."!==o&&"3.6."!==o)||E._delay(E._restoreTabbableFocus)}.bind(this)),this.overlay=h("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var o;this.options.modal&&this.overlay&&((o=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",o):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==h.uiBackCompat&&h.widget("ui.dialog",h.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(o,f){"dialogClass"===o&&this.uiDialog.removeClass(this.options.dialogClass).addClass(f),this._superApply(arguments)}}),h.widget("ui.droppable",{version:"1.13.3",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var o,f=this.options,b=f.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof b?b:function(E){return E.is(b)},this.proportions=function(){if(!arguments.length)return o=o||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};o=arguments[0]},this._addToManager(f.scope),f.addClasses&&this._addClass("ui-droppable")},_addToManager:function(o){h.ui.ddmanager.droppables[o]=h.ui.ddmanager.droppables[o]||[],h.ui.ddmanager.droppables[o].push(this)},_splice:function(o){for(var f=0;f<o.length;f++)o[f]===this&&o.splice(f,1)},_destroy:function(){this._splice(h.ui.ddmanager.droppables[this.options.scope])},_setOption:function(o,f){"accept"===o?this.accept="function"==typeof f?f:function(E){return E.is(f)}:"scope"===o&&(this._splice(h.ui.ddmanager.droppables[this.options.scope]),this._addToManager(f)),this._super(o,f)},_activate:function(o){var f=h.ui.ddmanager.current;this._addActiveClass(),f&&this._trigger("activate",o,this.ui(f))},_deactivate:function(o){var f=h.ui.ddmanager.current;this._removeActiveClass(),f&&this._trigger("deactivate",o,this.ui(f))},_over:function(o){var f=h.ui.ddmanager.current;f&&(f.currentItem||f.element)[0]!==this.element[0]&&this.accept.call(this.element[0],f.currentItem||f.element)&&(this._addHoverClass(),this._trigger("over",o,this.ui(f)))},_out:function(o){var f=h.ui.ddmanager.current;f&&(f.currentItem||f.element)[0]!==this.element[0]&&this.accept.call(this.element[0],f.currentItem||f.element)&&(this._removeHoverClass(),this._trigger("out",o,this.ui(f)))},_drop:function(o,f){var b=f||h.ui.ddmanager.current,E=!1;return!(!b||(b.currentItem||b.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var D=h(this).droppable("instance");if(D.options.greedy&&!D.options.disabled&&D.options.scope===b.options.scope&&D.accept.call(D.element[0],b.currentItem||b.element)&&h.ui.intersect(b,h.extend(D,{offset:D.element.offset()}),D.options.tolerance,o))return!(E=!0)}),E)||!this.accept.call(this.element[0],b.currentItem||b.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",o,this.ui(b)),this.element)},ui:function(o){return{draggable:o.currentItem||o.element,helper:o.helper,position:o.position,offset:o.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),h.ui.intersect=function(o,f,b,E){if(!f.offset)return!1;var D=(o.positionAbs||o.position.absolute).left+o.margins.left,H=(o.positionAbs||o.position.absolute).top+o.margins.top,Y=D+o.helperProportions.width,nt=H+o.helperProportions.height,ot=f.offset.left,K=f.offset.top,G=ot+f.proportions().width,Q=K+f.proportions().height;switch(b){case"fit":return ot<=D&&Y<=G&&K<=H&&nt<=Q;case"intersect":return ot<D+o.helperProportions.width/2&&Y-o.helperProportions.width/2<G&&K<H+o.helperProportions.height/2&&nt-o.helperProportions.height/2<Q;case"pointer":return be(E.pageY,K,f.proportions().height)&&be(E.pageX,ot,f.proportions().width);case"touch":return(K<=H&&H<=Q||K<=nt&&nt<=Q||H<K&&Q<nt)&&(ot<=D&&D<=G||ot<=Y&&Y<=G||D<ot&&G<Y);default:return!1}},!(h.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(o,f){var b,E,D=h.ui.ddmanager.droppables[o.options.scope]||[],H=f?f.type:null,Y=(o.currentItem||o.element).find(":data(ui-droppable)").addBack();t:for(b=0;b<D.length;b++)if(!(D[b].options.disabled||o&&!D[b].accept.call(D[b].element[0],o.currentItem||o.element))){for(E=0;E<Y.length;E++)if(Y[E]===D[b].element[0]){D[b].proportions().height=0;continue t}D[b].visible="none"!==D[b].element.css("display"),D[b].visible&&("mousedown"===H&&D[b]._activate.call(D[b],f),D[b].offset=D[b].element.offset(),D[b].proportions({width:D[b].element[0].offsetWidth,height:D[b].element[0].offsetHeight}))}},drop:function(o,f){var b=!1;return h.each((h.ui.ddmanager.droppables[o.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&h.ui.intersect(o,this,this.options.tolerance,f)&&(b=this._drop.call(this,f)||b),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],o.currentItem||o.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,f))}),b},dragStart:function(o,f){o.element.parentsUntil("body").on("scroll.droppable",function(){o.options.refreshPositions||h.ui.ddmanager.prepareOffsets(o,f)})},drag:function(o,f){o.options.refreshPositions&&h.ui.ddmanager.prepareOffsets(o,f),h.each(h.ui.ddmanager.droppables[o.options.scope]||[],function(){var b,E,D,H;this.options.disabled||this.greedyChild||!this.visible||(H=!(H=h.ui.intersect(o,this,this.options.tolerance,f))&&this.isover?"isout":H&&!this.isover?"isover":null)&&(this.options.greedy&&(E=this.options.scope,(D=this.element.parents(":data(ui-droppable)").filter(function(){return h(this).droppable("instance").options.scope===E})).length)&&((b=h(D[0]).droppable("instance")).greedyChild="isover"===H),b&&"isover"===H&&(b.isover=!1,b.isout=!0,b._out.call(b,f)),this[H]=!0,this["isout"===H?"isover":"isout"]=!1,this["isover"===H?"_over":"_out"].call(this,f),b)&&"isout"===H&&(b.isout=!1,b.isover=!0,b._over.call(b,f))})},dragStop:function(o,f){o.element.parentsUntil("body").off("scroll.droppable"),o.options.refreshPositions||h.ui.ddmanager.prepareOffsets(o,f)}})!==h.uiBackCompat&&h.widget("ui.droppable",h.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),h.widget("ui.progressbar",{version:"1.13.3",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=h("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(o){if(void 0===o)return this.options.value;this.options.value=this._constrainedValue(o),this._refreshValue()},_constrainedValue:function(o){return void 0===o&&(o=this.options.value),this.indeterminate=!1===o,"number"!=typeof o&&(o=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,o))},_setOptions:function(o){var f=o.value;delete o.value,this._super(o),this.options.value=this._constrainedValue(f),this._refreshValue()},_setOption:function(o,f){"max"===o&&(f=Math.max(this.min,f)),this._super(o,f)},_setOptionDisabled:function(o){this._super(o),this.element.attr("aria-disabled",o),this._toggleClass(null,"ui-state-disabled",!!o)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var o=this.options.value,f=this._percentage();this.valueDiv.toggle(this.indeterminate||o>this.min).width(f.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,o===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=h("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":o}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==o&&(this.oldValue=o,this._trigger("change")),o===this.options.max&&this._trigger("complete")}}),h.widget("ui.selectable",h.ui.mouse,{version:"1.13.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var o=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){o.elementPos=h(o.element[0]).offset(),o.selectees=h(o.options.filter,o.element[0]),o._addClass(o.selectees,"ui-selectee"),o.selectees.each(function(){var f=h(this),b=f.offset();h.data(this,"selectable-item",{element:this,$element:f,left:(b={left:b.left-o.elementPos.left,top:b.top-o.elementPos.top}).left,top:b.top,right:b.left+f.outerWidth(),bottom:b.top+f.outerHeight(),startselected:!1,selected:f.hasClass("ui-selected"),selecting:f.hasClass("ui-selecting"),unselecting:f.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=h("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(o){var f=this,b=this.options;this.opos=[o.pageX,o.pageY],this.elementPos=h(this.element[0]).offset(),this.options.disabled||(this.selectees=h(b.filter,this.element[0]),this._trigger("start",o),h(b.appendTo).append(this.helper),this.helper.css({left:o.pageX,top:o.pageY,width:0,height:0}),b.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var E=h.data(this,"selectable-item");E.startselected=!0,o.metaKey||o.ctrlKey||(f._removeClass(E.$element,"ui-selected"),E.selected=!1,f._addClass(E.$element,"ui-unselecting"),E.unselecting=!0,f._trigger("unselecting",o,{unselecting:E.element}))}),h(o.target).parents().addBack().each(function(){var E,D=h.data(this,"selectable-item");if(D)return E=!o.metaKey&&!o.ctrlKey||!D.$element.hasClass("ui-selected"),f._removeClass(D.$element,E?"ui-unselecting":"ui-selected")._addClass(D.$element,E?"ui-selecting":"ui-unselecting"),D.unselecting=!E,D.selecting=E,(D.selected=E)?f._trigger("selecting",o,{selecting:D.element}):f._trigger("unselecting",o,{unselecting:D.element}),!1}))},_mouseDrag:function(o){var f,b,E,D,H,Y,nt;if(this.dragged=!0,!this.options.disabled)return E=(b=this).options,(Y=o.pageX)<(D=this.opos[0])&&(f=Y,Y=D,D=f),(nt=o.pageY)<(H=this.opos[1])&&(f=nt,nt=H,H=f),this.helper.css({left:D,top:H,width:Y-D,height:nt-H}),this.selectees.each(function(){var ot=h.data(this,"selectable-item"),K=!1,G={};ot&&ot.element!==b.element[0]&&(G.left=ot.left+b.elementPos.left,G.right=ot.right+b.elementPos.left,G.top=ot.top+b.elementPos.top,G.bottom=ot.bottom+b.elementPos.top,"touch"===E.tolerance?K=!(Y<G.left||G.right<D||nt<G.top||G.bottom<H):"fit"===E.tolerance&&(K=D<G.left&&G.right<Y&&H<G.top&&G.bottom<nt),K?(ot.selected&&(b._removeClass(ot.$element,"ui-selected"),ot.selected=!1),ot.unselecting&&(b._removeClass(ot.$element,"ui-unselecting"),ot.unselecting=!1),ot.selecting||(b._addClass(ot.$element,"ui-selecting"),ot.selecting=!0,b._trigger("selecting",o,{selecting:ot.element}))):(ot.selecting&&((o.metaKey||o.ctrlKey)&&ot.startselected?(b._removeClass(ot.$element,"ui-selecting"),ot.selecting=!1,b._addClass(ot.$element,"ui-selected"),ot.selected=!0):(b._removeClass(ot.$element,"ui-selecting"),ot.selecting=!1,ot.startselected&&(b._addClass(ot.$element,"ui-unselecting"),ot.unselecting=!0),b._trigger("unselecting",o,{unselecting:ot.element}))),!ot.selected||o.metaKey||o.ctrlKey||ot.startselected||(b._removeClass(ot.$element,"ui-selected"),ot.selected=!1,b._addClass(ot.$element,"ui-unselecting"),ot.unselecting=!0,b._trigger("unselecting",o,{unselecting:ot.element}))))}),!1},_mouseStop:function(o){var f=this;return this.dragged=!1,h(".ui-unselecting",this.element[0]).each(function(){var b=h.data(this,"selectable-item");f._removeClass(b.$element,"ui-unselecting"),b.unselecting=!1,b.startselected=!1,f._trigger("unselected",o,{unselected:b.element})}),h(".ui-selecting",this.element[0]).each(function(){var b=h.data(this,"selectable-item");f._removeClass(b.$element,"ui-selecting")._addClass(b.$element,"ui-selected"),b.selecting=!1,b.selected=!0,b.startselected=!0,f._trigger("selected",o,{selected:b.element})}),this._trigger("stop",o),this.helper.remove(),!1}}),h.widget("ui.selectmenu",[h.ui.formResetMixin,{version:"1.13.3",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var o=this.element.uniqueId().attr("id");this.ids={element:o,button:o+"-button",menu:o+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=h()},_drawButton:function(){var o,f=this,b=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(E){this.button.trigger("focus"),E.preventDefault()}}),this.element.hide(),this.button=h("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),o=h("<span>").appendTo(this.button),this._addClass(o,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(b).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){f._rendered||f._refreshMenu()})},_drawMenu:function(){var o=this;this.menu=h("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=h("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(f,b){f.preventDefault(),o._setSelection(),o._select(b.item.data("ui-selectmenu-item"),f)},focus:function(f,b){b=b.item.data("ui-selectmenu-item"),null!=o.focusIndex&&b.index!==o.focusIndex&&(o._trigger("focus",f,{item:b}),o.isOpen||o._select(b,f)),o.focusIndex=b.index,o.button.attr("aria-activedescendant",o.menuItems.eq(b.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var o=this.element.find("option");this.menu.empty(),this._parseOptions(o),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,o.length&&(o=this._getSelectedItem(),this.menuInstance.focus(null,o),this._setAria(o.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(o){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",o)))},_position:function(){this.menuWrap.position(h.extend({of:this.button},this.options.position))},close:function(o){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",o))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(o){var f=h("<span>");return this._setText(f,o.label),this._addClass(f,"ui-selectmenu-text"),f},_renderMenu:function(o,f){var b=this,E="";h.each(f,function(D,H){var Y;H.optgroup!==E&&(Y=h("<li>",{text:H.optgroup}),b._addClass(Y,"ui-selectmenu-optgroup","ui-menu-divider"+(H.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),Y.appendTo(o),E=H.optgroup),b._renderItemData(o,H)})},_renderItemData:function(o,f){return this._renderItem(o,f).data("ui-selectmenu-item",f)},_renderItem:function(o,f){var b=h("<li>"),E=h("<div>",{title:f.element.attr("title")});return f.disabled&&this._addClass(b,null,"ui-state-disabled"),f.hidden?b.prop("hidden",!0):this._setText(E,f.label),b.append(E).appendTo(o)},_setText:function(o,f){f?o.text(f):o.html(" ")},_move:function(o,f){var b,E=".ui-menu-item";this.isOpen?b=this.menuItems.eq(this.focusIndex).parent("li"):(b=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),E+=":not(.ui-state-disabled)"),(b="first"===o||"last"===o?b["first"===o?"prevAll":"nextAll"](E).eq(-1):b[o+"All"](E).eq(0)).length&&this.menuInstance.focus(f,b)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(o){this[this.isOpen?"close":"open"](o)},_setSelection:function(){var o;this.range&&(window.getSelection?((o=window.getSelection()).removeAllRanges(),o.addRange(this.range)):this.range.select(),this.button.trigger("focus"))},_documentClick:{mousedown:function(o){!this.isOpen||h(o.target).closest(".ui-selectmenu-menu, #"+h.escapeSelector(this.ids.button)).length||this.close(o)}},_buttonEvents:{mousedown:function(){var o;window.getSelection?(o=window.getSelection()).rangeCount&&(this.range=o.getRangeAt(0)):this.range=document.selection.createRange()},click:function(o){this._setSelection(),this._toggle(o)},keydown:function(o){var f=!0;switch(o.keyCode){case h.ui.keyCode.TAB:case h.ui.keyCode.ESCAPE:this.close(o),f=!1;break;case h.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(o);break;case h.ui.keyCode.UP:o.altKey?this._toggle(o):this._move("prev",o);break;case h.ui.keyCode.DOWN:o.altKey?this._toggle(o):this._move("next",o);break;case h.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(o):this._toggle(o);break;case h.ui.keyCode.LEFT:this._move("prev",o);break;case h.ui.keyCode.RIGHT:this._move("next",o);break;case h.ui.keyCode.HOME:case h.ui.keyCode.PAGE_UP:this._move("first",o);break;case h.ui.keyCode.END:case h.ui.keyCode.PAGE_DOWN:this._move("last",o);break;default:this.menu.trigger(o),f=!1}f&&o.preventDefault()}},_selectFocusedItem:function(o){var f=this.menuItems.eq(this.focusIndex).parent("li");f.hasClass("ui-state-disabled")||this._select(f.data("ui-selectmenu-item"),o)},_select:function(o,f){var b=this.element[0].selectedIndex;this.element[0].selectedIndex=o.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(o)),this._setAria(o),this._trigger("select",f,{item:o}),o.index!==b&&this._trigger("change",f,{item:o}),this.close(f)},_setAria:function(o){o=this.menuItems.eq(o.index).attr("id"),this.button.attr({"aria-labelledby":o,"aria-activedescendant":o}),this.menu.attr("aria-activedescendant",o)},_setOption:function(o,f){var b;"icons"===o&&(b=this.button.find("span.ui-icon"),this._removeClass(b,null,this.options.icons.button)._addClass(b,null,f.button)),this._super(o,f),"appendTo"===o&&this.menuWrap.appendTo(this._appendTo()),"width"===o&&this._resizeButton()},_setOptionDisabled:function(o){this._super(o),this.menuInstance.option("disabled",o),this.button.attr("aria-disabled",o),this._toggleClass(this.button,null,"ui-state-disabled",o),this.element.prop("disabled",o),o?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var o=this.options.appendTo;return(o=(o=o&&(o.jquery||o.nodeType?h(o):this.document.find(o).eq(0)))&&o[0]?o:this.element.closest(".ui-front, dialog")).length?o:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var o=this.options.width;!1===o?this.button.css("width",""):(null===o&&(o=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(o))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var o=this._super();return o.disabled=this.element.prop("disabled"),o},_parseOptions:function(o){var f=this,b=[];o.each(function(E,D){b.push(f._parseOption(h(D),E))}),this.items=b},_parseOption:function(o,f){var b=o.parent("optgroup");return{element:o,index:f,value:o.val(),label:o.text(),hidden:b.prop("hidden")||o.prop("hidden"),optgroup:b.attr("label")||"",disabled:b.prop("disabled")||o.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),h.widget("ui.slider",h.ui.mouse,{version:"1.13.3",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var o,f=this.options,b=this.element.find(".ui-slider-handle"),E=[],D=f.values&&f.values.length||1;for(b.length>D&&(b.slice(D).remove(),b=b.slice(0,D)),o=b.length;o<D;o++)E.push("<span tabindex='0'></span>");this.handles=b.add(h(E.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(H){h(this).data("ui-slider-handle-index",H).attr("tabIndex",0)})},_createRange:function(){var o=this.options;o.range?(!0===o.range&&(o.values?o.values.length&&2!==o.values.length?o.values=[o.values[0],o.values[0]]:Array.isArray(o.values)&&(o.values=o.values.slice(0)):o.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=h("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==o.range&&"max"!==o.range||this._addClass(this.range,"ui-slider-range-"+o.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(o){var f,b,E,D,H,Y,nt=this,ot=this.options;return!ot.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),f=this._normValueFromMouse(H={x:o.pageX,y:o.pageY}),b=this._valueMax()-this._valueMin()+1,this.handles.each(function(K){var G=Math.abs(f-nt.values(K));(G<b||b===G&&(K===nt._lastChangedValue||nt.values(K)===ot.min))&&(b=G,E=h(this),D=K)}),!1!==this._start(o,D))&&(this._mouseSliding=!0,this._handleIndex=D,this._addClass(E,null,"ui-state-active"),E.trigger("focus"),H=E.offset(),Y=!h(o.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=Y?{left:0,top:0}:{left:o.pageX-H.left-E.width()/2,top:o.pageY-H.top-E.height()/2-(parseInt(E.css("borderTopWidth"),10)||0)-(parseInt(E.css("borderBottomWidth"),10)||0)+(parseInt(E.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(o,D,f),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(o){var f=this._normValueFromMouse(f={x:o.pageX,y:o.pageY});return this._slide(o,this._handleIndex,f),!1},_mouseStop:function(o){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(o,this._handleIndex),this._change(o,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(b){var f;return(b=1<(b=(b="horizontal"===this.orientation?(f=this.elementSize.width,b.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(f=this.elementSize.height,b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/f)?1:b)<0&&(b=0),"vertical"===this.orientation&&(b=1-b),f=this._valueMax()-this._valueMin(),b=this._valueMin()+b*f,this._trimAlignValue(b)},_uiHash:function(o,f,b){var E={handle:this.handles[o],handleIndex:o,value:void 0!==f?f:this.value()};return this._hasMultipleValues()&&(E.value=void 0!==f?f:this.values(o),E.values=b||this.values()),E},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(o,f){return this._trigger("start",o,this._uiHash(f))},_slide:function(o,f,b){var E,D=this.value(),H=this.values();this._hasMultipleValues()&&(E=this.values(f?0:1),D=this.values(f),2===this.options.values.length&&!0===this.options.range&&(b=0===f?Math.min(E,b):Math.max(E,b)),H[f]=b),b!==D&&!1!==this._trigger("slide",o,this._uiHash(f,b,H))&&(this._hasMultipleValues()?this.values(f,b):this.value(b))},_stop:function(o,f){this._trigger("stop",o,this._uiHash(f))},_change:function(o,f){this._keySliding||this._mouseSliding||(this._lastChangedValue=f,this._trigger("change",o,this._uiHash(f)))},value:function(o){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(o),this._refreshValue(),this._change(null,0)},values:function(o,f){var b,E,D;if(1<arguments.length)this.options.values[o]=this._trimAlignValue(f),this._refreshValue(),this._change(null,o);else{if(!arguments.length)return this._values();if(!Array.isArray(o))return this._hasMultipleValues()?this._values(o):this.value();for(b=this.options.values,E=o,D=0;D<b.length;D+=1)b[D]=this._trimAlignValue(E[D]),this._change(null,D);this._refreshValue()}},_setOption:function(o,f){var b,E=0;switch("range"===o&&!0===this.options.range&&("min"===f?(this.options.value=this._values(0),this.options.values=null):"max"===f&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(E=this.options.values.length),this._super(o,f),o){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(f),this.handles.css("horizontal"===f?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),b=E-1;0<=b;b--)this._change(null,b);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(o){this._super(o),this._toggleClass(null,"ui-state-disabled",!!o)},_value:function(){return this._trimAlignValue(this.options.value)},_values:function(o){var f,b;if(arguments.length)return this._trimAlignValue(o=this.options.values[o]);if(this._hasMultipleValues()){for(f=this.options.values.slice(),b=0;b<f.length;b+=1)f[b]=this._trimAlignValue(f[b]);return f}return[]},_trimAlignValue:function(o){var f,b;return o<=this._valueMin()?this._valueMin():o>=this._valueMax()?this._valueMax():(f=0<this.options.step?this.options.step:1,b=o-(o=(o-this._valueMin())%f),2*Math.abs(o)>=f&&(b+=0<o?f:-f),parseFloat(b.toFixed(5)))},_calculateNewMax:function(){var o=this.options.max,f=this._valueMin(),b=this.options.step;(o=Math.round((o-f)/b)*b+f)>this.options.max&&(o-=b),this.max=parseFloat(o.toFixed(this._precision()))},_precision:function(){var o=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(o,this._precisionOf(this.options.min)):o},_precisionOf:function(f){var b=(f=f.toString()).indexOf(".");return-1===b?0:f.length-b-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(o){"vertical"===o&&this.range.css({width:"",left:""}),"horizontal"===o&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var o,f,b,E,D,H=this.options.range,Y=this.options,nt=this,ot=!this._animateOff&&Y.animate,K={};this._hasMultipleValues()?this.handles.each(function(G){f=(nt.values(G)-nt._valueMin())/(nt._valueMax()-nt._valueMin())*100,K["horizontal"===nt.orientation?"left":"bottom"]=f+"%",h(this).stop(1,1)[ot?"animate":"css"](K,Y.animate),!0===nt.options.range&&("horizontal"===nt.orientation?(0===G&&nt.range.stop(1,1)[ot?"animate":"css"]({left:f+"%"},Y.animate),1===G&&nt.range[ot?"animate":"css"]({width:f-o+"%"},{queue:!1,duration:Y.animate})):(0===G&&nt.range.stop(1,1)[ot?"animate":"css"]({bottom:f+"%"},Y.animate),1===G&&nt.range[ot?"animate":"css"]({height:f-o+"%"},{queue:!1,duration:Y.animate}))),o=f}):(b=this.value(),E=this._valueMin(),D=this._valueMax(),K["horizontal"===this.orientation?"left":"bottom"]=(f=D!==E?(b-E)/(D-E)*100:0)+"%",this.handle.stop(1,1)[ot?"animate":"css"](K,Y.animate),"min"===H&&"horizontal"===this.orientation&&this.range.stop(1,1)[ot?"animate":"css"]({width:f+"%"},Y.animate),"max"===H&&"horizontal"===this.orientation&&this.range.stop(1,1)[ot?"animate":"css"]({width:100-f+"%"},Y.animate),"min"===H&&"vertical"===this.orientation&&this.range.stop(1,1)[ot?"animate":"css"]({height:f+"%"},Y.animate),"max"===H&&"vertical"===this.orientation&&this.range.stop(1,1)[ot?"animate":"css"]({height:100-f+"%"},Y.animate))},_handleEvents:{keydown:function(o){var f,b,E,D=h(o.target).data("ui-slider-handle-index");switch(o.keyCode){case h.ui.keyCode.HOME:case h.ui.keyCode.END:case h.ui.keyCode.PAGE_UP:case h.ui.keyCode.PAGE_DOWN:case h.ui.keyCode.UP:case h.ui.keyCode.RIGHT:case h.ui.keyCode.DOWN:case h.ui.keyCode.LEFT:if(o.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(h(o.target),null,"ui-state-active"),!1!==this._start(o,D)))break;return}switch(E=this.options.step,f=b=this._hasMultipleValues()?this.values(D):this.value(),o.keyCode){case h.ui.keyCode.HOME:b=this._valueMin();break;case h.ui.keyCode.END:b=this._valueMax();break;case h.ui.keyCode.PAGE_UP:b=this._trimAlignValue(f+(this._valueMax()-this._valueMin())/this.numPages);break;case h.ui.keyCode.PAGE_DOWN:b=this._trimAlignValue(f-(this._valueMax()-this._valueMin())/this.numPages);break;case h.ui.keyCode.UP:case h.ui.keyCode.RIGHT:if(f===this._valueMax())return;b=this._trimAlignValue(f+E);break;case h.ui.keyCode.DOWN:case h.ui.keyCode.LEFT:if(f===this._valueMin())return;b=this._trimAlignValue(f-E)}this._slide(o,D,b)},keyup:function(o){var f=h(o.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(o,f),this._change(o,f),this._removeClass(h(o.target),null,"ui-state-active"))}}}),h.widget("ui.sortable",h.ui.mouse,{version:"1.13.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(o,f,b){return f<=o&&o<f+b},_isFloating:function(o){return/left|right/.test(o.css("float"))||/inline|table-cell/.test(o.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(o,f){this._super(o,f),"handle"===o&&this._setHandleClassName()},_setHandleClassName:function(){var o=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),h.each(this.items,function(){o._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var o=this.items.length-1;0<=o;o--)this.items[o].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(o,f){var b=null,E=!1,D=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(o),h(o.target).parents().each(function(){if(h.data(this,D.widgetName+"-item")===D)return b=h(this),!1}),!(b=h.data(o.target,D.widgetName+"-item")===D?h(o.target):b))||this.options.handle&&!f&&(h(this.options.handle,b).find("*").addBack().each(function(){this===o.target&&(E=!0)}),!E)||(this.currentItem=b,this._removeCurrentsFromItems(),0))},_mouseStart:function(o,f,b){var E,D,H=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=h("parent"!==H.appendTo?H.appendTo:this.currentItem.parent()),this.helper=this._createHelper(o),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},h.extend(this.offset,{click:{left:o.pageX-this.offset.left,top:o.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),H.cursorAt&&this._adjustOffsetFromHelper(H.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),h.extend(this.offset,{parent:this._getParentOffset()}),H.containment&&this._setContainment(),H.cursor&&"auto"!==H.cursor&&(D=this.document.find("body"),this.storedCursor=D.css("cursor"),D.css("cursor",H.cursor),this.storedStylesheet=h("<style>*{ cursor: "+H.cursor+" !important; }</style>").appendTo(D)),H.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",H.zIndex)),H.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",H.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",o,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!b)for(E=this.containers.length-1;0<=E;E--)this.containers[E]._trigger("activate",o,this._uiHash(this));return h.ui.ddmanager&&(h.ui.ddmanager.current=this),h.ui.ddmanager&&!H.dropBehaviour&&h.ui.ddmanager.prepareOffsets(this,o),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(o),this.originalPageX=o.pageX,this.originalPageY=o.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(o),!0},_scroll:function(o){var f=this.options,b=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-o.pageY<f.scrollSensitivity?this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop+f.scrollSpeed:o.pageY-this.overflowOffset.top<f.scrollSensitivity&&(this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop-f.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-o.pageX<f.scrollSensitivity?this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft+f.scrollSpeed:o.pageX-this.overflowOffset.left<f.scrollSensitivity&&(this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft-f.scrollSpeed)):(o.pageY-this.document.scrollTop()<f.scrollSensitivity?b=this.document.scrollTop(this.document.scrollTop()-f.scrollSpeed):this.window.height()-(o.pageY-this.document.scrollTop())<f.scrollSensitivity&&(b=this.document.scrollTop(this.document.scrollTop()+f.scrollSpeed)),o.pageX-this.document.scrollLeft()<f.scrollSensitivity?b=this.document.scrollLeft(this.document.scrollLeft()-f.scrollSpeed):this.window.width()-(o.pageX-this.document.scrollLeft())<f.scrollSensitivity&&(b=this.document.scrollLeft(this.document.scrollLeft()+f.scrollSpeed))),b},_mouseDrag:function(o){var f,b,E,D,H=this.options;for(this.position=this._generatePosition(o),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),H.scroll&&!1!==this._scroll(o)&&(this._refreshItemPositions(!0),h.ui.ddmanager)&&!H.dropBehaviour&&h.ui.ddmanager.prepareOffsets(this,o),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},f=this.items.length-1;0<=f;f--)if(E=(b=this.items[f]).item[0],(D=this._intersectsWithPointer(b))&&b.instance===this.currentContainer&&!(E===this.currentItem[0]||this.placeholder[1===D?"next":"prev"]()[0]===E||h.contains(this.placeholder[0],E)||"semi-dynamic"===this.options.type&&h.contains(this.element[0],E))){if(this.direction=1===D?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(b))break;this._rearrange(o,b),this._trigger("change",o,this._uiHash());break}return this._contactContainers(o),h.ui.ddmanager&&h.ui.ddmanager.drag(this,o),this._trigger("sort",o,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(o,f){var b,E,D,H;if(o)return h.ui.ddmanager&&!this.options.dropBehaviour&&h.ui.ddmanager.drop(this,o),this.options.revert?(E=(b=this).placeholder.offset(),H={},(D=this.options.axis)&&"x"!==D||(H.left=E.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),D&&"y"!==D||(H.top=E.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,h(this.helper).animate(H,parseInt(this.options.revert,10)||500,function(){b._clear(o)})):this._clear(o,f),!1},cancel:function(){if(this.dragging){this._mouseUp(new h.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var o=this.containers.length-1;0<=o;o--)this.containers[o]._trigger("deactivate",null,this._uiHash(this)),this.containers[o].containerCache.over&&(this.containers[o]._trigger("out",null,this._uiHash(this)),this.containers[o].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),h.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?h(this.domPosition.prev).after(this.currentItem):h(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(o){var f=this._getItemsAsjQuery(o&&o.connected),b=[];return o=o||{},h(f).each(function(){var E=(h(o.item||this).attr(o.attribute||"id")||"").match(o.expression||/(.+)[\-=_](.+)/);E&&b.push((o.key||E[1]+"[]")+"="+(o.key&&o.expression?E[1]:E[2]))}),!b.length&&o.key&&b.push(o.key+"="),b.join("&")},toArray:function(o){var f=this._getItemsAsjQuery(o&&o.connected),b=[];return o=o||{},f.each(function(){b.push(h(o.item||this).attr(o.attribute||"id")||"")}),b},_intersectsWith:function(o){var f=this.positionAbs.left,E=this.positionAbs.top,H=o.left,Y=H+o.width,nt=o.top,ot=nt+o.height,K=this.offset.click.top,G=this.offset.click.left;return K="x"===this.options.axis||nt<E+K&&E+K<ot,G="y"===this.options.axis||H<f+G&&f+G<Y,"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>o[this.floating?"width":"height"]?K&&G:H<f+this.helperProportions.width/2&&f+this.helperProportions.width-this.helperProportions.width/2<Y&&nt<E+this.helperProportions.height/2&&E+this.helperProportions.height-this.helperProportions.height/2<ot},_intersectsWithPointer:function(b){var f="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height);return b="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width),!(!f||!b)&&(f=this.dragDirection.vertical,b=this.dragDirection.horizontal,this.floating?"right"===b||"down"===f?2:1:f&&("down"===f?2:1))},_intersectsWithSides:function(b){var f=this._isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height),E=(b=this._isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width),this.dragDirection.vertical),D=this.dragDirection.horizontal;return this.floating&&D?"right"===D&&b||"left"===D&&!b:E&&("down"===E&&f||"up"===E&&!f)},_getDragVerticalDirection:function(){var o=this.positionAbs.top-this.lastPositionAbs.top;return 0!=o&&(0<o?"down":"up")},_getDragHorizontalDirection:function(){var o=this.positionAbs.left-this.lastPositionAbs.left;return 0!=o&&(0<o?"right":"left")},refresh:function(o){return this._refreshItems(o),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var o=this.options;return o.connectWith.constructor===String?[o.connectWith]:o.connectWith},_getItemsAsjQuery:function(o){var f,b,E,D,H=[],Y=[],nt=this._connectWith();if(nt&&o)for(f=nt.length-1;0<=f;f--)for(b=(E=h(nt[f],this.document[0])).length-1;0<=b;b--)(D=h.data(E[b],this.widgetFullName))&&D!==this&&!D.options.disabled&&Y.push(["function"==typeof D.options.items?D.options.items.call(D.element):h(D.options.items,D.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),D]);function ot(){H.push(this)}for(Y.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):h(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),f=Y.length-1;0<=f;f--)Y[f][0].each(ot);return h(H)},_removeCurrentsFromItems:function(){var o=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=h.grep(this.items,function(f){for(var b=0;b<o.length;b++)if(o[b]===f.item[0])return!1;return!0})},_refreshItems:function(o){this.items=[],this.containers=[this];var f,b,E,D,H,Y,nt,ot,K=this.items,G=[["function"==typeof this.options.items?this.options.items.call(this.element[0],o,{item:this.currentItem}):h(this.options.items,this.element),this]],Q=this._connectWith();if(Q&&this.ready)for(f=Q.length-1;0<=f;f--)for(b=(E=h(Q[f],this.document[0])).length-1;0<=b;b--)(D=h.data(E[b],this.widgetFullName))&&D!==this&&!D.options.disabled&&(G.push(["function"==typeof D.options.items?D.options.items.call(D.element[0],o,{item:this.currentItem}):h(D.options.items,D.element),D]),this.containers.push(D));for(f=G.length-1;0<=f;f--)for(H=G[f][1],ot=(Y=G[f][b=0]).length;b<ot;b++)(nt=h(Y[b])).data(this.widgetName+"-item",H),K.push({item:nt,instance:H,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(o){for(var f,b,E=this.items.length-1;0<=E;E--)f=this.items[E],this.currentContainer&&f.instance!==this.currentContainer&&f.item[0]!==this.currentItem[0]||(b=this.options.toleranceElement?h(this.options.toleranceElement,f.item):f.item,o||(f.width=b.outerWidth(),f.height=b.outerHeight()),b=b.offset(),f.left=b.left,f.top=b.top)},refreshPositions:function(o){var f,b;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(o),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(f=this.containers.length-1;0<=f;f--)b=this.containers[f].element.offset(),this.containers[f].containerCache.left=b.left,this.containers[f].containerCache.top=b.top,this.containers[f].containerCache.width=this.containers[f].element.outerWidth(),this.containers[f].containerCache.height=this.containers[f].element.outerHeight();return this},_createPlaceholder:function(o){var f,b,E=(o=o||this).options;E.placeholder&&E.placeholder.constructor!==String||(f=E.placeholder,b=o.currentItem[0].nodeName.toLowerCase(),E.placeholder={element:function(){var D=h("<"+b+">",o.document[0]);return o._addClass(D,"ui-sortable-placeholder",f||o.currentItem[0].className)._removeClass(D,"ui-sortable-helper"),"tbody"===b?o._createTrPlaceholder(o.currentItem.find("tr").eq(0),h("<tr>",o.document[0]).appendTo(D)):"tr"===b?o._createTrPlaceholder(o.currentItem,D):"img"===b&&D.attr("src",o.currentItem.attr("src")),f||D.css("visibility","hidden"),D},update:function(D,H){f&&!E.forcePlaceholderSize||(H.height()&&(!E.forcePlaceholderSize||"tbody"!==b&&"tr"!==b)||H.height(o.currentItem.innerHeight()-parseInt(o.currentItem.css("paddingTop")||0,10)-parseInt(o.currentItem.css("paddingBottom")||0,10)),H.width())||H.width(o.currentItem.innerWidth()-parseInt(o.currentItem.css("paddingLeft")||0,10)-parseInt(o.currentItem.css("paddingRight")||0,10))}}),o.placeholder=h(E.placeholder.element.call(o.element,o.currentItem)),o.currentItem.after(o.placeholder),E.placeholder.update(o,o.placeholder)},_createTrPlaceholder:function(o,f){var b=this;o.children().each(function(){h("<td> </td>",b.document[0]).attr("colspan",h(this).attr("colspan")||1).appendTo(f)})},_contactContainers:function(o){for(var f,b,E,D,H,Y,nt,ot,K,G=null,Q=null,pt=this.containers.length-1;0<=pt;pt--)h.contains(this.currentItem[0],this.containers[pt].element[0])||(this._intersectsWith(this.containers[pt].containerCache)?G&&h.contains(this.containers[pt].element[0],G.element[0])||(G=this.containers[pt],Q=pt):this.containers[pt].containerCache.over&&(this.containers[pt]._trigger("out",o,this._uiHash(this)),this.containers[pt].containerCache.over=0));if(G)if(1===this.containers.length)this.containers[Q].containerCache.over||(this.containers[Q]._trigger("over",o,this._uiHash(this)),this.containers[Q].containerCache.over=1);else{for(b=1e4,E=null,D=(ot=G.floating||this._isFloating(this.currentItem))?"left":"top",H=ot?"width":"height",K=ot?"pageX":"pageY",f=this.items.length-1;0<=f;f--)h.contains(this.containers[Q].element[0],this.items[f].item[0])&&this.items[f].item[0]!==this.currentItem[0]&&(Y=this.items[f].item.offset()[D],nt=!1,o[K]-Y>this.items[f][H]/2&&(nt=!0),Math.abs(o[K]-Y)<b)&&(b=Math.abs(o[K]-Y),E=this.items[f],this.direction=nt?"up":"down");(E||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[Q]?this.currentContainer.containerCache.over||(this.containers[Q]._trigger("over",o,this._uiHash()),this.currentContainer.containerCache.over=1):(E?this._rearrange(o,E,null,!0):this._rearrange(o,null,this.containers[Q].element,!0),this._trigger("change",o,this._uiHash()),this.containers[Q]._trigger("change",o,this._uiHash(this)),this.currentContainer=this.containers[Q],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[Q]._trigger("over",o,this._uiHash(this)),this.containers[Q].containerCache.over=1))}},_createHelper:function(b){var f=this.options;return(b="function"==typeof f.helper?h(f.helper.apply(this.element[0],[b,this.currentItem])):"clone"===f.helper?this.currentItem.clone():this.currentItem).parents("body").length||this.appendTo[0].appendChild(b[0]),b[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),b[0].style.width&&!f.forceHelperSize||b.width(this.currentItem.width()),b[0].style.height&&!f.forceHelperSize||b.height(this.currentItem.height()),b},_adjustOffsetFromHelper:function(o){"string"==typeof o&&(o=o.split(" ")),"left"in(o=Array.isArray(o)?{left:+o[0],top:+o[1]||0}:o)&&(this.offset.click.left=o.left+this.margins.left),"right"in o&&(this.offset.click.left=this.helperProportions.width-o.right+this.margins.left),"top"in o&&(this.offset.click.top=o.top+this.margins.top),"bottom"in o&&(this.offset.click.top=this.helperProportions.height-o.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var o=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&h.contains(this.scrollParent[0],this.offsetParent[0])&&(o.left+=this.scrollParent.scrollLeft(),o.top+=this.scrollParent.scrollTop()),{top:(o=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&h.ui.ie?{top:0,left:0}:o).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:o.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var o;return"relative"===this.cssPosition?{top:(o=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:o.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var o,f,b=this.options;"parent"===b.containment&&(b.containment=this.helper[0].parentNode),"document"!==b.containment&&"window"!==b.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===b.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===b.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(b.containment)||(o=h(b.containment)[0],b=h(b.containment).offset(),f="hidden"!==h(o).css("overflow"),this.containment=[b.left+(parseInt(h(o).css("borderLeftWidth"),10)||0)+(parseInt(h(o).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(h(o).css("borderTopWidth"),10)||0)+(parseInt(h(o).css("paddingTop"),10)||0)-this.margins.top,b.left+(f?Math.max(o.scrollWidth,o.offsetWidth):o.offsetWidth)-(parseInt(h(o).css("borderLeftWidth"),10)||0)-(parseInt(h(o).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(f?Math.max(o.scrollHeight,o.offsetHeight):o.offsetHeight)-(parseInt(h(o).css("borderTopWidth"),10)||0)-(parseInt(h(o).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(b,f){f=f||this.position,b="absolute"===b?1:-1;var E="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&h.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,D=/(html|body)/i.test(E[0].tagName);return{top:f.top+this.offset.relative.top*b+this.offset.parent.top*b-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():D?0:E.scrollTop())*b,left:f.left+this.offset.relative.left*b+this.offset.parent.left*b-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():D?0:E.scrollLeft())*b}},_generatePosition:function(o){var f=this.options,b=o.pageX,E=o.pageY,D="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&h.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,H=/(html|body)/i.test(D[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(o.pageX-this.offset.click.left<this.containment[0]&&(b=this.containment[0]+this.offset.click.left),o.pageY-this.offset.click.top<this.containment[1]&&(E=this.containment[1]+this.offset.click.top),o.pageX-this.offset.click.left>this.containment[2]&&(b=this.containment[2]+this.offset.click.left),o.pageY-this.offset.click.top>this.containment[3])&&(E=this.containment[3]+this.offset.click.top),f.grid)&&(o=this.originalPageY+Math.round((E-this.originalPageY)/f.grid[1])*f.grid[1],E=!this.containment||o-this.offset.click.top>=this.containment[1]&&o-this.offset.click.top<=this.containment[3]?o:o-this.offset.click.top>=this.containment[1]?o-f.grid[1]:o+f.grid[1],o=this.originalPageX+Math.round((b-this.originalPageX)/f.grid[0])*f.grid[0],b=!this.containment||o-this.offset.click.left>=this.containment[0]&&o-this.offset.click.left<=this.containment[2]?o:o-this.offset.click.left>=this.containment[0]?o-f.grid[0]:o+f.grid[0]),{top:E-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():H?0:D.scrollTop()),left:b-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():H?0:D.scrollLeft())}},_rearrange:function(o,f,b,E){b?b[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?f.item[0]:f.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var D=this.counter;this._delay(function(){D===this.counter&&this.refreshPositions(!E)})},_clear:function(o,f){this.reverting=!1;var b,E=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(b in this._storedCSS)"auto"!==this._storedCSS[b]&&"static"!==this._storedCSS[b]||(this._storedCSS[b]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function D(H,Y,nt){return function(ot){nt._trigger(H,ot,Y._uiHash(Y))}}for(this.fromOutside&&!f&&E.push(function(H){this._trigger("receive",H,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||f||E.push(function(H){this._trigger("update",H,this._uiHash())}),this===this.currentContainer||f||(E.push(function(H){this._trigger("remove",H,this._uiHash())}),E.push(function(H){return function(Y){H._trigger("receive",Y,this._uiHash(this))}}.call(this,this.currentContainer)),E.push(function(H){return function(Y){H._trigger("update",Y,this._uiHash(this))}}.call(this,this.currentContainer))),b=this.containers.length-1;0<=b;b--)f||E.push(D("deactivate",this,this.containers[b])),this.containers[b].containerCache.over&&(E.push(D("out",this,this.containers[b])),this.containers[b].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,f||this._trigger("beforeStop",o,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!f){for(b=0;b<E.length;b++)E[b].call(this,o);this._trigger("stop",o,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===h.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(o){var f=o||this;return{helper:f.helper,placeholder:f.placeholder||h([]),position:f.position,originalPosition:f.originalPosition,offset:f.positionAbs,item:f.currentItem,sender:o?o.element:null}}}),h.widget("ui.spinner",{version:"1.13.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var o=this._super(),f=this.element;return h.each(["min","max","step"],function(b,E){var D=f.attr(E);null!=D&&D.length&&(o[E]=D)}),o},_events:{keydown:function(o){this._start(o)&&this._keydown(o)&&o.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(o){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",o))},mousewheel:function(o,f){var b=h.ui.safeActiveElement(this.document[0]);if(this.element[0]===b&&f){if(!this.spinning&&!this._start(o))return!1;this._spin((0<f?1:-1)*this.options.step,o),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(o)},100),o.preventDefault()}},"mousedown .ui-spinner-button":function(o){var f;function b(){this.element[0]!==h.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=f,this._delay(function(){this.previous=f}))}f=this.element[0]===h.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),o.preventDefault(),b.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,b.call(this)}),!1!==this._start(o)&&this._repeat(null,h(o.currentTarget).hasClass("ui-spinner-up")?1:-1,o)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(o){if(h(o.currentTarget).hasClass("ui-state-active"))return!1!==this._start(o)&&void this._repeat(null,h(o.currentTarget).hasClass("ui-spinner-up")?1:-1,o)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(o){var f=this.options,b=h.ui.keyCode;switch(o.keyCode){case b.UP:return this._repeat(null,1,o),!0;case b.DOWN:return this._repeat(null,-1,o),!0;case b.PAGE_UP:return this._repeat(null,f.page,o),!0;case b.PAGE_DOWN:return this._repeat(null,-f.page,o),!0}return!1},_start:function(o){return!(!this.spinning&&!1===this._trigger("start",o))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(o,f,b){o=o||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,f,b)},o),this._spin(f*this.options.step,b)},_spin:function(o,f){var b=this.value()||0;this.counter||(this.counter=1),b=this._adjustValue(b+o*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",f,{value:b})||(this._value(b),this.counter++)},_increment:function(o){var f=this.options.incremental;return f?"function"==typeof f?f(o):Math.floor(o*o*o/5e4-o*o/500+17*o/200+1):1},_precision:function(){var o=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(o,this._precisionOf(this.options.min)):o},_precisionOf:function(f){var b=(f=f.toString()).indexOf(".");return-1===b?0:f.length-b-1},_adjustValue:function(o){var f=this.options,b=null!==f.min?f.min:0;return o=b+Math.round((o-b)/f.step)*f.step,o=parseFloat(o.toFixed(this._precision())),null!==f.max&&o>f.max?f.max:null!==f.min&&o<f.min?f.min:o},_stop:function(o){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",o))},_setOption:function(o,f){var b;"culture"===o||"numberFormat"===o?(b=this._parse(this.element.val()),this.options[o]=f,this.element.val(this._format(b))):("max"!==o&&"min"!==o&&"step"!==o||"string"==typeof f&&(f=this._parse(f)),"icons"===o&&(b=this.buttons.first().find(".ui-icon"),this._removeClass(b,null,this.options.icons.up),this._addClass(b,null,f.up),b=this.buttons.last().find(".ui-icon"),this._removeClass(b,null,this.options.icons.down),this._addClass(b,null,f.down)),this._super(o,f))},_setOptionDisabled:function(o){this._super(o),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!o),this.element.prop("disabled",!!o),this.buttons.button(o?"disable":"enable")},_setOptions:Me(function(o){this._super(o)}),_parse:function(o){return""===(o="string"==typeof o&&""!==o?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(o,10,this.options.culture):+o:o)||isNaN(o)?null:o},_format:function(o){return""===o?"":window.Globalize&&this.options.numberFormat?Globalize.format(o,this.options.numberFormat,this.options.culture):o},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var o=this.value();return null!==o&&o===this._adjustValue(o)},_value:function(o,f){var b;""!==o&&null!==(b=this._parse(o))&&(f||(b=this._adjustValue(b)),o=this._format(b)),this.element.val(o),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:Me(function(o){this._stepUp(o)}),_stepUp:function(o){this._start()&&(this._spin((o||1)*this.options.step),this._stop())},stepDown:Me(function(o){this._stepDown(o)}),_stepDown:function(o){this._start()&&(this._spin((o||1)*-this.options.step),this._stop())},pageUp:Me(function(o){this._stepUp((o||1)*this.options.page)}),pageDown:Me(function(o){this._stepDown((o||1)*this.options.page)}
vendor: 6,433 bytes, line 1
1),value:function(o){if(!arguments.length)return this._parse(this.element.val());Me(this._value).call(this,o)},widget:function(){return this.uiSpinner}}),!1!==h.uiBackCompat&&h.widget("ui.spinner",h.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),h.widget("ui.tabs",{version:"1.13.3",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(Fe=/#.*$/,function(o){var f=o.href.replace(Fe,""),b=location.href.replace(Fe,"");try{f=decodeURIComponent(f)}catch(E){}try{b=decodeURIComponent(b)}catch(E){}return 1<o.hash.length&&f===b}),_create:function(){var o=this,f=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,f.collapsible),this._processTabs(),f.active=this._initialActive(),Array.isArray(f.disabled)&&(f.disabled=h.uniqueSort(f.disabled.concat(h.map(this.tabs.filter(".ui-state-disabled"),function(b){return o.tabs.index(b)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(f.active):h(),this._refresh(),this.active.length&&this.load(f.active)},_initialActive:function(){var o=this.options.active,f=this.options.collapsible,b=location.hash.substring(1);return null===o&&(b&&this.tabs.each(function(E,D){if(h(D).attr("aria-controls")===b)return o=E,!1}),null!==(o=null===o?this.tabs.index(this.tabs.filter(".ui-tabs-active")):o)&&-1!==o||(o=!!this.tabs.length&&0)),!1!==o&&-1===(o=this.tabs.index(this.tabs.eq(o)))&&(o=!f&&0),o=!f&&!1===o&&this.anchors.length?0:o},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):h()}},_tabKeydown:function(o){var f=h(h.ui.safeActiveElement(this.document[0])).closest("li"),b=this.tabs.index(f),E=!0;if(!this._handlePageNav(o)){switch(o.keyCode){case h.ui.keyCode.RIGHT:case h.ui.keyCode.DOWN:b++;break;case h.ui.keyCode.UP:case h.ui.keyCode.LEFT:E=!1,b--;break;case h.ui.keyCode.END:b=this.anchors.length-1;break;case h.ui.keyCode.HOME:b=0;break;case h.ui.keyCode.SPACE:return o.preventDefault(),clearTimeout(this.activating),void this._activate(b);case h.ui.keyCode.ENTER:return o.preventDefault(),clearTimeout(this.activating),void this._activate(b!==this.options.active&&b);default:return}o.preventDefault(),clearTimeout(this.activating),b=this._focusNextTab(b,E),o.ctrlKey||o.metaKey||(f.attr("aria-selected","false"),this.tabs.eq(b).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",b)},this.delay))}},_panelKeydown:function(o){this._handlePageNav(o)||o.ctrlKey&&o.keyCode===h.ui.keyCode.UP&&(o.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(o){return o.altKey&&o.keyCode===h.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):o.altKey&&o.keyCode===h.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(o,f){for(var b=this.tabs.length-1;-1!==h.inArray(o=(o=b<o?0:o)<0?b:o,this.options.disabled);)o=f?o+1:o-1;return o},_focusNextTab:function(o,f){return o=this._findNextTab(o,f),this.tabs.eq(o).trigger("focus"),o},_setOption:function(o,f){"active"===o?this._activate(f):(this._super(o,f),"collapsible"===o&&(this._toggleClass("ui-tabs-collapsible",null,f),f||!1!==this.options.active||this._activate(0)),"event"===o&&this._setupEvents(f),"heightStyle"===o&&this._setupHeightStyle(f))},_sanitizeSelector:function(o){return o?o.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var o=this.options,f=this.tablist.children(":has(a[href])");o.disabled=h.map(f.filter(".ui-state-disabled"),function(b){return f.index(b)}),this._processTabs(),!1!==o.active&&this.anchors.length?this.active.length&&!h.contains(this.tablist[0],this.active[0])?this.tabs.length===o.disabled.length?(o.active=!1,this.active=h()):this._activate(this._findNextTab(Math.max(0,o.active-1),!1)):o.active=this.tabs.index(this.active):(o.active=!1,this.active=h()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var o=this,f=this.tabs,b=this.anchors,E=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(D){h(this).is(".ui-state-disabled")&&D.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){h(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return h("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=h(),this.anchors.each(function(D,H){var Y,nt,ot,K=h(H).uniqueId().attr("id"),G=h(H).closest("li"),Q=G.attr("aria-controls");o._isLocal(H)?(ot=(Y=H.hash).substring(1),nt=o.element.find(o._sanitizeSelector(Y))):(ot=G.attr("aria-controls")||h({}).uniqueId()[0].id,(nt=o.element.find(Y="#"+ot)).length||(nt=o._createPanel(ot)).insertAfter(o.panels[D-1]||o.tablist),nt.attr("aria-live","polite")),nt.length&&(o.panels=o.panels.add(nt)),Q&&G.data("ui-tabs-aria-controls",Q),G.attr({"aria-controls":ot,"aria-labelledby":K}),nt.attr("aria-labelledby",K)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),f&&(this._off(f.not(this.tabs)
vendor: 12,624 bytes, line 1
1),this._off(b.not(this.anchors)),this._off(E.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(o){return h("<div>").attr("id",o).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(o){var f,b;for(Array.isArray(o)&&(o.length?o.length===this.anchors.length&&(o=!0):o=!1),b=0;f=this.tabs[b];b++)f=h(f),!0===o||-1!==h.inArray(b,o)?(f.attr("aria-disabled","true"),this._addClass(f,null,"ui-state-disabled")):(f.removeAttr("aria-disabled"),this._removeClass(f,null,"ui-state-disabled"));this.options.disabled=o,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===o)},_setupEvents:function(o){var f={};o&&h.each(o.split(" "),function(b,E){f[E]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(b){b.preventDefault()}}),this._on(this.anchors,f),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(o){var f,b=this.element.parent();"fill"===o?(f=b.height(),f-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var E=h(this),D=E.css("position");"absolute"!==D&&"fixed"!==D&&(f-=E.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){f-=h(this).outerHeight(!0)}),this.panels.each(function(){h(this).height(Math.max(0,f-h(this).innerHeight()+h(this).height()))}).css("overflow","auto")):"auto"===o&&(f=0,this.panels.each(function(){f=Math.max(f,h(this).height("").height())}).height(f))},_eventHandler:function(o){var f=this.options,nt=this.active,b=h(o.currentTarget).closest("li"),E=b[0]===nt[0],D=E&&f.collapsible,H=D?h():this._getPanelForTab(b),Y=nt.length?this._getPanelForTab(nt):h();nt={oldTab:nt,oldPanel:Y,newTab:D?h():b,newPanel:H},o.preventDefault(),b.hasClass("ui-state-disabled")||b.hasClass("ui-tabs-loading")||this.running||E&&!f.collapsible||!1===this._trigger("beforeActivate",o,nt)||(f.active=!D&&this.tabs.index(b),this.active=E?h():b,this.xhr&&this.xhr.abort(),Y.length||H.length||h.error("jQuery UI Tabs: Mismatching fragment identifier."),H.length&&this.load(this.tabs.index(b),o),this._toggle(o,nt))},_toggle:function(o,f){var b=this,E=f.newPanel,D=f.oldPanel;function H(){b.running=!1,b._trigger("activate",o,f)}function Y(){b._addClass(f.newTab.closest("li"),"ui-tabs-active","ui-state-active"),E.length&&b.options.show?b._show(E,b.options.show,H):(E.show(),H())}this.running=!0,D.length&&this.options.hide?this._hide(D,this.options.hide,function(){b._removeClass(f.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),Y()}):(this._removeClass(f.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),D.hide(),Y()),D.attr("aria-hidden","true"),f.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),E.length&&D.length?f.oldTab.attr("tabIndex",-1):E.length&&this.tabs.filter(function(){return 0===h(this).attr("tabIndex")}).attr("tabIndex",-1),E.attr("aria-hidden","false"),f.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(f){(f=this._findActive(f))[0]!==this.active[0]&&(f=(f=f.length?f:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:f,currentTarget:f,preventDefault:h.noop}))},_findActive:function(o){return!1===o?h():this.tabs.eq(o)},_getIndex:function(o){return"string"==typeof o?this.anchors.index(this.anchors.filter("[href$='"+h.escapeSelector(o)+"']")):o},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){h.data(this,"ui-tabs-destroy")?h(this).remove():h(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var o=h(this),f=o.data("ui-tabs-aria-controls");f?o.attr("aria-controls",f).removeData("ui-tabs-aria-controls"):o.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(o){var f=this.options.disabled;!1!==f&&(f=void 0!==o&&(o=this._getIndex(o),Array.isArray(f)?h.map(f,function(b){return b!==o?b:null}):h.map(this.tabs,function(b,E){return E!==o?E:null})),this._setOptionDisabled(f))},disable:function(o){var f=this.options.disabled;if(!0!==f){if(void 0===o)f=!0;else{if(o=this._getIndex(o),-1!==h.inArray(o,f))return;f=Array.isArray(f)?h.merge([o],f).sort():[o]}this._setOptionDisabled(f)}},load:function(H,f){function b(ot,K){"abort"===K&&E.panels.stop(!1,!0),E._removeClass(D,"ui-tabs-loading"),Y.removeAttr("aria-busy"),ot===E.xhr&&delete E.xhr}H=this._getIndex(H);var E=this,D=this.tabs.eq(H),Y=(H=D.find(".ui-tabs-anchor"),this._getPanelForTab(D)),nt={tab:D,panel:Y};this._isLocal(H[0])||(this.xhr=h.ajax(this._ajaxSettings(H,f,nt)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(D,"ui-tabs-loading"),Y.attr("aria-busy","true"),this.xhr.done(function(ot,K,G){setTimeout(function(){Y.html(ot),E._trigger("load",f,nt),b(G,K)},1)}).fail(function(ot,K){setTimeout(function(){b(ot,K)},1)})))},_ajaxSettings:function(o,f,b){var E=this;return{url:o.attr("href").replace(/#.*$/,""),beforeSend:function(D,H){return E._trigger("beforeLoad",f,h.extend({jqXHR:D,ajaxSettings:H},b))}}},_getPanelForTab:function(o){return o=h(o).attr("aria-controls"),this.element.find(this._sanitizeSelector("#"+o))}}),!1!==h.uiBackCompat&&h.widget("ui.tabs",h.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),h.widget("ui.tooltip",{version:"1.13.3",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var o=h(this).attr("title");return h("<a>").text(o).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(o,f){var b=(o.attr("aria-describedby")||"").split(/\s+/);b.push(f),o.data("ui-tooltip-id",f).attr("aria-describedby",String.prototype.trim.call(b.join(" ")))},_removeDescribedBy:function(o){var b=o.data("ui-tooltip-id"),f=(o.attr("aria-describedby")||"").split(/\s+/);-1!==(b=h.inArray(b,f))&&f.splice(b,1),o.removeData("ui-tooltip-id"),(f=String.prototype.trim.call(f.join(" ")))?o.attr("aria-describedby",f):o.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=h("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=h([])},_setOption:function(o,f){var b=this;this._super(o,f),"content"===o&&h.each(this.tooltips,function(E,D){b._updateContent(D.element)})},_setOptionDisabled:function(o){this[o?"_disable":"_enable"]()},_disable:function(){var o=this;h.each(this.tooltips,function(f,b){var E=h.Event("blur");E.target=E.currentTarget=b.element[0],o.close(E,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var f=h(this);if(f.is("[title]"))return f.data("ui-tooltip-title",f.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var o=h(this);o.data("ui-tooltip-title")&&o.attr("title",o.data("ui-tooltip-title"))}),this.disabledTitles=h([])},open:function(o){var f=this,b=h(o?o.target:this.element).closest(this.options.items);b.length&&!b.data("ui-tooltip-id")&&(b.attr("title")&&b.data("ui-tooltip-title",b.attr("title")),b.data("ui-tooltip-open",!0),o&&"mouseover"===o.type&&b.parents().each(function(){var E,D=h(this);D.data("ui-tooltip-open")&&((E=h.Event("blur")).target=E.currentTarget=this,f.close(E,!0)),D.attr("title")&&(D.uniqueId(),f.parents[this.id]={element:this,title:D.attr("title")},D.attr("title",""))}),this._registerCloseHandlers(o,b),this._updateContent(b,o))},_updateContent:function(o,f){var b=this.options.content,E=this,D=f?f.type:null;if("string"==typeof b||b.nodeType||b.jquery)return this._open(f,o,b);(b=b.call(o[0],function(H){E._delay(function(){o.data("ui-tooltip-open")&&(f&&(f.type=D),this._open(f,o,H))})}))&&this._open(f,o,b)},_open:function(o,f,b){var E,D,H,Y=h.extend({},this.options.position);function nt(ot){Y.of=ot,E.is(":hidden")||E.position(Y)}b&&((H=this._find(f))?H.tooltip.find(".ui-tooltip-content").html(b):(f.is("[title]")&&(o&&"mouseover"===o.type?f.attr("title",""):f.removeAttr("title")),H=this._tooltip(f),this._addDescribedBy(f,(E=H.tooltip).attr("id")),E.find(".ui-tooltip-content").html(b),this.liveRegion.children().hide(),(H=h("<div>").html(E.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),H.removeAttr("id").find("[id]").removeAttr("id"),H.appendTo(this.liveRegion),this.options.track&&o&&/^mouse/.test(o.type)?(this._on(this.document,{mousemove:nt}),nt(o)):E.position(h.extend({of:f},this.options.position)),E.hide(),this._show(E,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(D=this.delayedShow=setInterval(function(){E.is(":visible")&&(nt(Y.of),clearInterval(D))},13)),this._trigger("open",o,{tooltip:E})))},_registerCloseHandlers:function(o,f){var b={keyup:function(E){E.keyCode===h.ui.keyCode.ESCAPE&&((E=h.Event(E)).currentTarget=f[0],this.close(E,!0))}};f[0]!==this.element[0]&&(b.remove=function(){var E=this._find(f);E&&this._removeTooltip(E.tooltip)}),o&&"mouseover"!==o.type||(b.mouseleave="close"),o&&"focusin"!==o.type||(b.focusout="close"),this._on(!0,f,b)},close:function(o){var f,b=this,E=h(o?o.currentTarget:this.element),D=this._find(E);D?(f=D.tooltip,D.closing||(clearInterval(this.delayedShow),E.data("ui-tooltip-title")&&!E.attr("title")&&E.attr("title",E.data("ui-tooltip-title")),this._removeDescribedBy(E),D.hiding=!0,f.stop(!0),this._hide(f,this.options.hide,function(){b._removeTooltip(h(this))}),E.removeData("ui-tooltip-open"),this._off(E,"mouseleave focusout keyup"),E[0]!==this.element[0]&&this._off(E,"remove"),this._off(this.document,"mousemove"),o&&"mouseleave"===o.type&&h.each(this.parents,function(H,Y){h(Y.element).attr("title",Y.title),delete b.parents[H]}),D.closing=!0,this._trigger("close",o,{tooltip:f}),D.hiding)||(D.closing=!1)):E.removeData("ui-tooltip-open")},_tooltip:function(o){var f=h("<div>").attr("role","tooltip"),b=h("<div>").appendTo(f),E=f.uniqueId().attr("id");return this._addClass(b,"ui-tooltip-content"),this._addClass(f,"ui-tooltip","ui-widget ui-widget-content"),f.appendTo(this._appendTo(o)),this.tooltips[E]={element:o,tooltip:f}},_find:function(o){return(o=o.data("ui-tooltip-id"))?this.tooltips[o]:null},_removeTooltip:function(o){clearInterval(this.delayedShow),o.remove(),delete this.tooltips[o.attr("id")]},_appendTo:function(o){return(o=o.closest(".ui-front, dialog")).length?o:this.document[0].body},_destroy:function(){var o=this;h.each(this.tooltips,function(f,D){var E=h.Event("blur");E.target=E.currentTarget=(D=D.element)[0],o.close(E,!0),h("#"+f).remove(),D.data("ui-tooltip-title")&&(D.attr("title")||D.attr("title",D.data("ui-tooltip-title")),D.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==h.uiBackCompat&&h.widget("ui.tooltip",h.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var o=this._superApply(arguments);return this.options.tooltipClass&&o.tooltip.addClass(this.options.tooltipClass),o}})}),function(y,c){"object"==typeof exports&&"object"==typeof module?module.exports=c():"function"==typeof define&&define.amd?define([],c):"object"==typeof exports?exports.draw2d=c():y.draw2d=c()}(window,function(){return function(h){var y={};function c(d){if(y[d])return y[d].exports;var a=y[d]={i:d,l:!1,exports:{}};return h[d].call(a.exports,a,a.exports,c),a.l=!0,a.exports}return c.m=h,c.c=y,c.d=function(d,a,v){c.o(d,a)||Object.defineProperty(d,a,{enumerable:!0,get:v})},c.r=function(d){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},c.t=function(d,a){if(1&a&&(d=c(d)),8&a||4&a&&"object"==typeof d&&d&&d.__esModule)return d;var v=Object.create(null);if(c.r(v),Object.defineProperty(v,"default",{enumerable:!0,value:d}),2&a&&"string"!=typeof d)for(var t in d)c.d(v,t,function(s){return d[s]}.bind(null,t));return v},c.n=function(d){var a=d&&d.__esModule?function(){return d.default}:function(){return d};return c.d(a,"a",a),a},c.o=function(d,a){return Object.prototype.hasOwnProperty.call(d,a)},c.p="",c(c.s="./src/index.js")}({
vendor: 65,667 bytes, line 1
1"./node_modules/canvg-browser/index.js":function(h,y,c){"use strict";var d=c("./node_modules/rgbcolor/index.js"),a=c("./node_modules/stackblur/index.js");function n(u){var l=[0,0,0],M=function(N,O){var _=u.match(N);null!=_&&(l[O]+=_.length,u=u.replace(N," "))};return u=(u=u.replace(/:not\(([^\)]*)\)/g," $1 ")).replace(/{[^]*/gm," "),M(/(\[[^\]]+\])/g,1),M(/(#[^\s\+>~\.\[:]+)/g,0),M(/(\.[^\s\+>~\.\[:]+)/g,1),M(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),M(/(:[\w-]+\([^\)]*\))/gi,1),M(/(:[^\s\+>~\.\[:]+)/g,1),u=(u=u.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),M(/([^\s\+>~\.\[:]+)/g,2),l.join("")}c("./node_modules/xmldom/dom-parser.js"),h.exports=function t(u,l,p){if(null!=u||null!=l||null!=p){"string"==typeof u&&(u=document.getElementById(u)),null!=u.svg&&u.svg.stop();var k=function r(u){var l={opts:u},p=function s(){var u;return void 0!==Element.prototype.matches?u=function(l,p){return l.matches(p)}:void 0!==Element.prototype.webkitMatchesSelector?u=function(l,p){return l.webkitMatchesSelector(p)}:void 0!==Element.prototype.mozMatchesSelector?u=function(l,p){return l.mozMatchesSelector(p)}:void 0!==Element.prototype.msMatchesSelector?u=function(l,p){return l.msMatchesSelector(p)}:void 0!==Element.prototype.oMatchesSelector?u=function(l,p){return l.oMatchesSelector(p)}:(("function"==typeof jQuery||"function"==typeof Zepto)&&(u=function(l,p){return $(l).is(p)}),void 0===u&&(u=Sizzle.matchesSelector)),u}();"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(m,g,w,C,k,M){var N={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:g,offsetY:w,scaleWidth:C,scaleHeight:k};for(var O in M)M.hasOwnProperty(O)&&(N[O]=M[O]);t(this.canvas,m,N)}),l.FRAMERATE=30,l.MAX_VIRTUAL_PIXELS=3e4,l.log=function(m){},1==l.opts.log&&"undefined"!=typeof console&&(l.log=function(m){console.log(m)}),l.init=function(m){var g=0;l.UniqueId=function(){return"canvg"+ ++g},l.Definitions={},l.Styles={},l.StylesSpecificity={},l.Animations=[],l.Images=[],l.ctx=m,l.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(w,C){this.viewPorts.push({width:w,height:C})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(w){return null!=w&&"number"==typeof w?w:"x"==w?this.width():"y"==w?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},l.init(),l.ImagesLoaded=function(){for(var m=0;m<l.Images.length;m++)if(!l.Images[m].loaded)return!1;return!0},l.trim=function(m){return m.replace(/^\s+|\s+$/g,"")},l.compressSpaces=function(m){return m.replace(/[\s\r\t\n]+/gm," ")},l.ajax=function(m){var g;return(g=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"))?(g.open("GET",m,!1),g.send(null),g.responseText):null},l.parseXml=function(m){if("undefined"!=typeof Windows&&void 0!==Windows.Data&&void 0!==Windows.Data.Xml){var g=new Windows.Data.Xml.Dom.XmlDocument,w=new Windows.Data.Xml.Dom.XmlLoadSettings;return w.prohibitDtd=!1,g.loadXml(m,w),g}return window.DOMParser?(new DOMParser).parseFromString(m,"text/xml"):(m=m.replace(/<!DOCTYPE svg[^>]*>/,""),(g=new ActiveXObject("Microsoft.XMLDOM")).async="false",g.loadXML(m),g)},l.Property=function(m,g){this.name=m,this.value=g},l.Property.prototype.getValue=function(){return this.value},l.Property.prototype.hasValue=function(){return null!=this.value&&""!=this.value},l.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var m=parseFloat(this.value);return(this.value+"").match(/%$/)&&(m/=100),m},l.Property.prototype.valueOrDefault=function(m){return this.hasValue()?this.value:m},l.Property.prototype.numValueOrDefault=function(m){return this.hasValue()?this.numValue():m},l.Property.prototype.addOpacity=function(m){var g=this.value;if(null!=m.value&&""!=m.value&&"string"==typeof this.value){var w=new d(this.value);w.ok&&(g="rgba("+w.r+", "+w.g+", "+w.b+", "+m.numValue()+")")}return new l.Property(this.name,g)},l.Property.prototype.getDefinition=function(){var m=this.value.match(/#([^\)'"]+)/);return m&&(m=m[1]),m||(m=this.value),l.Definitions[m]},l.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},l.Property.prototype.getFillStyleDefinition=function(m,g){var w=this.getDefinition();if(null!=w&&w.createGradient)return w.createGradient(l.ctx,m,g);if(null!=w&&w.createPattern){if(w.getHrefAttribute().hasValue()){var C=w.attribute("patternTransform");w=w.getHrefAttribute().getDefinition(),C.hasValue()&&(w.attribute("patternTransform",!0).value=C.value)}return w.createPattern(l.ctx,m)}return null},l.Property.prototype.getDPI=function(m){return 96},l.Property.prototype.getEM=function(m){var g=12,w=new l.Property("fontSize",l.Font.Parse(l.ctx.font).fontSize);return w.hasValue()&&(g=w.toPixels(m)),g},l.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},l.Property.prototype.toPixels=function(m,g){if(!this.hasValue())return 0;var w=this.value+"";if(w.match(/em$/))return this.numValue()*this.getEM(m);if(w.match(/ex$/))return this.numValue()*this.getEM(m)/2;if(w.match(/px$/))return this.numValue();if(w.match(/pt$/))return this.numValue()*this.getDPI(m)*(1/72);if(w.match(/pc$/))return 15*this.numValue();if(w.match(/cm$/))return this.numValue()*this.getDPI(m)/2.54;if(w.match(/mm$/))return this.numValue()*this.getDPI(m)/25.4;if(w.match(/in$/))return this.numValue()*this.getDPI(m);if(w.match(/%$/))return this.numValue()*l.ViewPort.ComputeSize(m);var C=this.numValue();return g&&C<1?C*l.ViewPort.ComputeSize(m):C},l.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var m=this.value+"";return m.match(/s$/)?1e3*this.numValue():(m.match(/ms$/),this.numValue())},l.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var m=this.value+"";return m.match(/deg$/)?this.numValue()*(Math.PI/180):m.match(/grad$/)?this.numValue()*(Math.PI/200):m.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var x={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return l.Property.prototype.toTextBaseline=function(){return this.hasValue()?x[this.value]:null},l.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(g,w,C,k,M,N){var O=null!=N?this.Parse(N):this.CreateFont("","","","","",l.ctx.font);return{fontFamily:M||O.fontFamily,fontSize:k||O.fontSize,fontStyle:g||O.fontStyle,fontWeight:C||O.fontWeight,fontVariant:w||O.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var m=this;this.Parse=function(g){for(var w={},C=l.trim(l.compressSpaces(g||"")).split(" "),k={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},M="",N=0;N<C.length;N++)k.fontStyle||-1==m.Styles.indexOf(C[N])?k.fontVariant||-1==m.Variants.indexOf(C[N])?k.fontWeight||-1==m.Weights.indexOf(C[N])?k.fontSize?"inherit"!=C[N]&&(M+=C[N]):("inherit"!=C[N]&&(w.fontSize=C[N].split("/")[0]),k.fontStyle=k.fontVariant=k.fontWeight=k.fontSize=!0):("inherit"!=C[N]&&(w.fontWeight=C[N]),k.fontStyle=k.fontVariant=k.fontWeight=!0):("inherit"!=C[N]&&(w.fontVariant=C[N]),k.fontStyle=k.fontVariant=!0):("inherit"!=C[N]&&(w.fontStyle=C[N]),k.fontStyle=!0);return""!=M&&(w.fontFamily=M),w}},l.ToNumberArray=function(m){for(var g=l.trim(l.compressSpaces((m||"").replace(/,/g," "))).split(" "),w=0;w<g.length;w++)g[w]=parseFloat(g[w]);return g},l.Point=function(m,g){this.x=m,this.y=g},l.Point.prototype.angleTo=function(m){return Math.atan2(m.y-this.y,m.x-this.x)},l.Point.prototype.applyTransform=function(m){var w=this.x*m[1]+this.y*m[3]+m[5];this.x=this.x*m[0]+this.y*m[2]+m[4],this.y=w},l.CreatePoint=function(m){var g=l.ToNumberArray(m);return new l.Point(g[0],g[1])},l.CreatePath=function(m){for(var g=l.ToNumberArray(m),w=[],C=0;C<g.length;C+=2)w.push(new l.Point(g[C],g[C+1]));return w},l.BoundingBox=function(m,g,w,C){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.x=function(){return this.x1},this.y=function(){return this.y1},this.width=function(){return this.x2-this.x1},this.height=function(){return this.y2-this.y1},this.addPoint=function(k,M){null!=k&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=k,this.x2=k),k<this.x1&&(this.x1=k),k>this.x2&&(this.x2=k)),null!=M&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=M,this.y2=M),M<this.y1&&(this.y1=M),M>this.y2&&(this.y2=M))},this.addX=function(k){this.addPoint(k,null)},this.addY=function(k){this.addPoint(null,k)},this.addBoundingBox=function(k){this.addPoint(k.x1,k.y1),this.addPoint(k.x2,k.y2)},this.addQuadraticCurve=function(k,M,N,O,_,P){var A=k+.6666666666666666*(N-k),T=M+2/3*(O-M);this.addBezierCurve(k,M,A,A+1/3*(_-k),T,T+1/3*(P-M),_,P)},this.addBezierCurve=function(k,M,N,O,_,P,A,T){var L=[k,M],I=[N,O],F=[_,P],W=[A,T];this.addPoint(L[0],L[1]),this.addPoint(W[0],W[1]);for(var q=0;q<=1;q++){var et=function(ut){return Math.pow(1-ut,3)*L[q]+3*Math.pow(1-ut,2)*ut*I[q]+3*(1-ut)*Math.pow(ut,2)*F[q]+Math.pow(ut,3)*W[q]},X=6*L[q]-12*I[q]+6*F[q],it=-3*L[q]+9*I[q]-9*F[q]+3*W[q],z=3*I[q]-3*L[q];if(0!=it){var tt=Math.pow(X,2)-4*z*it;if(!(tt<0)){var at=(-X+Math.sqrt(tt))/(2*it);0<at&&at<1&&(0==q&&this.addX(et(at)),1==q&&this.addY(et(at)));var ct=(-X-Math.sqrt(tt))/(2*it);0<ct&&ct<1&&(0==q&&this.addX(et(ct)),1==q&&this.addY(et(ct)))}}else{if(0==X)continue;var j=-z/X;0<j&&j<1&&(0==q&&this.addX(et(j)),1==q&&this.addY(et(j)))}}},this.isPointInBox=function(k,M){return this.x1<=k&&k<=this.x2&&this.y1<=M&&M<=this.y2},this.addPoint(m,g),this.addPoint(w,C)},l.Transform=function(m){var g=this;this.Type={},this.Type.translate=function(_){this.p=l.CreatePoint(_),this.apply=function(P){P.translate(this.p.x||0,this.p.y||0)},this.unapply=function(P){P.translate(-1*this.p.x||0,-1*this.p.y||0)},this.applyToPoint=function(P){P.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}},this.Type.rotate=function(_){var P=l.ToNumberArray(_);this.angle=new l.Property("angle",P[0]),this.cx=P[1]||0,this.cy=P[2]||0,this.apply=function(A){A.translate(this.cx,this.cy),A.rotate(this.angle.toRadians()),A.translate(-this.cx,-this.cy)},this.unapply=function(A){A.translate(this.cx,this.cy),A.rotate(-1*this.angle.toRadians()),A.translate(-this.cx,-this.cy)},this.applyToPoint=function(A){var T=this.angle.toRadians();A.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]),A.applyTransform([Math.cos(T),Math.sin(T),-Math.sin(T),Math.cos(T),0,0]),A.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}},this.Type.scale=function(_){this.p=l.CreatePoint(_),this.apply=function(P){P.scale(this.p.x||1,this.p.y||this.p.x||1)},this.unapply=function(P){P.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)},this.applyToPoint=function(P){P.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}},this.Type.matrix=function(_){this.m=l.ToNumberArray(_),this.apply=function(P){P.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])},this.unapply=function(P){var A=this.m[0],T=this.m[2],L=this.m[4],I=this.m[1],F=this.m[3],W=this.m[5],it=1/(A*(1*F-0*W)-T*(1*I-0*W)+L*(0*I-0*F));P.transform(it*(1*F-0*W),it*(0*W-1*I),it*(0*L-1*T),it*(1*A-0*L),it*(T*W-L*F),it*(L*I-A*W))},this.applyToPoint=function(P){P.applyTransform(this.m)}},this.Type.SkewBase=function(_){this.base=g.Type.matrix,this.base(_),this.angle=new l.Property("angle",_)},this.Type.SkewBase.prototype=new this.Type.matrix,this.Type.skewX=function(_){this.base=g.Type.SkewBase,this.base(_),this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]},this.Type.skewX.prototype=new this.Type.SkewBase,this.Type.skewY=function(_){this.base=g.Type.SkewBase,this.base(_),this.m=[1,Math.tan(this.angle.toRadians()),0,1,0,0]},this.Type.skewY.prototype=new this.Type.SkewBase,this.transforms=[],this.apply=function(_){for(var P=0;P<this.transforms.length;P++)this.transforms[P].apply(_)},this.unapply=function(_){for(var P=this.transforms.length-1;P>=0;P--)this.transforms[P].unapply(_)},this.applyToPoint=function(_){for(var P=0;P<this.transforms.length;P++)this.transforms[P].applyToPoint(_)};for(var w=l.trim(l.compressSpaces(m)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/),C=0;C<w.length;C++){var k=l.trim(w[C].split("(")[0]),M=w[C].split("(")[1].replace(")",""),N=this.Type[k];if(void 0!==N){var O=new N(M);O.type=k,this.transforms.push(O)}}},l.AspectRatio=function(m,g,w,C,k,M,N,O,_,P){var A=(g=(g=l.compressSpaces(g)).replace(/^defer\s/,"")).split(" ")[0]||"xMidYMid",T=g.split(" ")[1]||"meet",L=w/C,I=k/M,F=Math.min(L,I),W=Math.max(L,I);"meet"==T&&(C*=F,M*=F),"slice"==T&&(C*=W,M*=W),_=new l.Property("refX",_),P=new l.Property("refY",P),_.hasValue()&&P.hasValue()?m.translate(-F*_.toPixels("x"),-F*P.toPixels("y")):(A.match(/^xMid/)&&("meet"==T&&F==I||"slice"==T&&W==I)&&m.translate(w/2-C/2,0),A.match(/YMid$/)&&("meet"==T&&F==L||"slice"==T&&W==L)&&m.translate(0,k/2-M/2),A.match(/^xMax/)&&("meet"==T&&F==I||"slice"==T&&W==I)&&m.translate(w-C,0),A.match(/YMax$/)&&("meet"==T&&F==L||"slice"==T&&W==L)&&m.translate(0,k-M)),"none"==A?m.scale(L,I):"meet"==T?m.scale(F,F):"slice"==T&&m.scale(W,W),m.translate(null==N?0:-N,null==O?0:-O)},l.Element={},l.EmptyProperty=new l.Property("EMPTY",""),l.Element.ElementBase=function(m){if(this.attributes={},this.styles={},this.stylesSpecificity={},this.children=[],this.attribute=function(P,A){var T=this.attributes[P];return null!=T?T:(1==A&&(T=new l.Property(P,""),this.attributes[P]=T),T||l.EmptyProperty)},this.getHrefAttribute=function(){for(var P in this.attributes)if("href"==P||P.match(/:href$/))return this.attributes[P];return l.EmptyProperty},this.style=function(P,A,T){var L=this.styles[P];if(null!=L)return L;var I=this.attribute(P);if(null!=I&&I.hasValue())return this.styles[P]=I,I;if(1!=T){var F=this.parent;if(null!=F){var W=F.style(P);if(null!=W&&W.hasValue())return W}}return 1==A&&(L=new l.Property(P,""),this.styles[P]=L),L||l.EmptyProperty},this.render=function(P){if("none"!=this.style("display").value&&"hidden"!=this.style("visibility").value){if(P.save(),this.style("mask").hasValue()){var A=this.style("mask").getDefinition();null!=A&&A.apply(P,this)}else if(this.style("filter").hasValue()){var T=this.style("filter").getDefinition();null!=T&&T.apply(P,this)}else this.setContext(P),this.renderChildren(P),this.clearContext(P);P.restore()}},this.setContext=function(P){},this.clearContext=function(P){},this.renderChildren=function(P){for(var A=0;A<this.children.length;A++)this.children[A].render(P)},this.addChild=function(P,A){var T=P;A&&(T=l.CreateElement(P)),T.parent=this,"title"!=T.type&&this.children.push(T)},this.addStylesFromStyleDefinition=function(){for(var P in l.Styles)if("@"!=P[0]&&p(m,P)){var A=l.Styles[P],T=l.StylesSpecificity[P];if(null!=A)for(var L in A){var I=this.stylesSpecificity[L];void 0===I&&(I="000"),T>I&&(this.styles[L]=A[L],this.stylesSpecificity[L]=T)}}},null!=m&&1==m.nodeType){for(var g=0;g<m.attributes.length;g++){var w=m.attributes[g];this.attributes[w.nodeName]=new l.Property(w.nodeName,w.value)}if(this.addStylesFromStyleDefinition(),this.attribute("style").hasValue()){var C=this.attribute("style").value.split(";");for(g=0;g<C.length;g++)if(""!=l.trim(C[g])){var k=C[g].split(":"),M=l.trim(k[0]),N=l.trim(k[1]);this.styles[M]=new l.Property(M,N)}}for(this.attribute("id").hasValue()&&null==l.Definitions[this.attribute("id").value]&&(l.Definitions[this.attribute("id").value]=this),g=0;g<m.childNodes.length;g++){var O=m.childNodes[g];1==O.nodeType&&this.addChild(O,!0),!this.captureTextNodes||3!=O.nodeType&&4!=O.nodeType||""!=l.compressSpaces(O.value||O.text||O.textContent||"")&&this.addChild(new l.Element.tspan(O),!1)}}},l.Element.RenderedElementBase=function(m){this.base=l.Element.ElementBase,this.base(m),this.setContext=function(g){var w;if(this.style("fill").isUrlDefinition())null!=(w=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity")))&&(g.fillStyle=w);else if(this.style("fill").hasValue()){var C;"currentColor"==(C=this.style("fill")).value&&(C.value=this.style("color").value),"inherit"!=C.value&&(g.fillStyle="none"==C.value?"rgba(0,0,0,0)":C.value)}if(this.style("fill-opacity").hasValue()&&(C=(C=new l.Property("fill",g.fillStyle)).addOpacity(this.style("fill-opacity")),g.fillStyle=C.value),this.style("stroke").isUrlDefinition())null!=(w=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity")))&&(g.strokeStyle=w);else if(this.style("stroke").hasValue()){var k;"currentColor"==(k=this.style("stroke")).value&&(k.value=this.style("color").value),"inherit"!=k.value&&(g.strokeStyle="none"==k.value?"rgba(0,0,0,0)":k.value)}if(this.style("stroke-opacity").hasValue()&&(k=(k=new l.Property("stroke",g.strokeStyle)).addOpacity(this.style("stroke-opacity")),g.strokeStyle=k.value),this.style("stroke-width").hasValue()){var M=this.style("stroke-width").toPixels();g.lineWidth=0==M?.001:M}if(this.style("stroke-linecap").hasValue()&&(g.lineCap=this.style("stroke-linecap").value),this.style("stroke-linejoin").hasValue()&&(g.lineJoin=this.style("stroke-linejoin").value),this.style("stroke-miterlimit").hasValue()&&(g.miterLimit=this.style("stroke-miterlimit").value),this.style("stroke-dasharray").hasValue()&&"none"!=this.style("stroke-dasharray").value){var N=l.ToNumberArray(this.style("stroke-dasharray").value);void 0!==g.setLineDash?g.setLineDash(N):void 0!==g.webkitLineDash?g.webkitLineDash=N:void 0!==g.mozDash&&(1!=N.length||0!=N[0])&&(g.mozDash=N);var O=this.style("stroke-dashoffset").numValueOrDefault(1);void 0!==g.lineDashOffset?g.lineDashOffset=O:void 0!==g.webkitLineDashOffset?g.webkitLineDashOffset=O:void 0!==g.mozDashOffset&&(g.mozDashOffset=O)}if(void 0!==g.font&&(g.font=l.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").toPixels()+"px":"",this.style("font-family").value).toString()),this.style("transform",!1,!0).hasValue()&&new l.Transform(this.style("transform",!1,!0).value).apply(g),this.style("clip-path",!1,!0).hasValue()){var P=this.style("clip-path",!1,!0).getDefinition();null!=P&&P.apply(g)}this.style("opacity").hasValue()&&(g.globalAlpha=this.style("opacity").numValue())}},l.Element.RenderedElementBase.prototype=new l.Element.ElementBase,l.Element.PathElementBase=function(m){this.base=l.Element.RenderedElementBase,this.base(m),this.path=function(g){return null!=g&&g.beginPath(),new l.BoundingBox},this.renderChildren=function(g){this.path(g),l.Mouse.checkPath(this,g),""!=g.fillStyle&&("inherit"!=this.style("fill-rule").valueOrDefault("inherit")?g.fill(this.style("fill-rule").value):g.fill()),""!=g.strokeStyle&&g.stroke();var w=this.getMarkers();if(null!=w){if(this.style("marker-start").isUrlDefinition()&&(C=this.style("marker-start").getDefinition()).render(g,w[0][0],w[0][1]),this.style("marker-mid").isUrlDefinition())for(var C=this.style("marker-mid").getDefinition(),k=1;k<w.length-1;k++)C.render(g,w[k][0],w[k][1]);this.style("marker-end").isUrlDefinition()&&(C=this.style("marker-end").getDefinition()).render(g,w[w.length-1][0],w[w.length-1][1])}},this.getBoundingBox=function(){return this.path()},this.getMarkers=function(){return null}},l.Element.PathElementBase.prototype=new l.Element.RenderedElementBase,l.Element.svg=function(m){this.base=l.Element.RenderedElementBase,this.base(m),this.baseClearContext=this.clearContext,this.clearContext=function(g){this.baseClearContext(g),l.ViewPort.RemoveCurrent()},this.baseSetContext=this.setContext,this.setContext=function(g){g.strokeStyle="rgba(0,0,0,0)",g.lineCap="butt",g.lineJoin="miter",g.miterLimit=4,void 0!==g.font&&void 0!==window.getComputedStyle&&(g.font=window.getComputedStyle(g.canvas).getPropertyValue("font")),this.baseSetContext(g),this.attribute("x").hasValue()||(this.attribute("x",!0).value=0),this.attribute("y").hasValue()||(this.attribute("y",!0).value=0),g.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var w=l.ViewPort.width(),C=l.ViewPort.height();if(this.attribute("width").hasValue()||(this.attribute("width",!0).value="100%"),this.attribute("height").hasValue()||(this.attribute("height",!0).value="100%"),void 0===this.root){w=this.attribute("width").toPixels("x"),C=this.attribute("height").toPixels("y");var k=0,M=0;this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()&&(k=-this.attribute("refX").toPixels("x"),M=-this.attribute("refY").toPixels("y")),"visible"!=this.attribute("overflow").valueOrDefault("hidden")&&(g.beginPath(),g.moveTo(k,M),g.lineTo(w,M),g.lineTo(w,C),g.lineTo(k,C),g.closePath(),g.clip())}if(l.ViewPort.SetCurrent(w,C),this.attribute("viewBox").hasValue()){var N=l.ToNumberArray(this.attribute("viewBox").value),O=N[0],_=N[1];w=N[2],C=N[3],l.AspectRatio(g,this.attribute("preserveAspectRatio").value,l.ViewPort.width(),w,l.ViewPort.height(),C,O,_,this.attribute("refX").value,this.attribute("refY").value),l.ViewPort.RemoveCurrent(),l.ViewPort.SetCurrent(N[2],N[3])}}},l.Element.svg.prototype=new l.Element.RenderedElementBase,l.Element.rect=function(m){this.base=l.Element.PathElementBase,this.base(m),this.path=function(g){var w=this.attribute("x").toPixels("x"),C=this.attribute("y").toPixels("y"),k=this.attribute("width").toPixels("x"),M=this.attribute("height").toPixels("y"),N=this.attribute("rx").toPixels("x"),O=this.attribute("ry").toPixels("y");return this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue()&&(O=N),this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue()&&(N=O),N=Math.min(N,k/2),O=Math.min(O,M/2),null!=g&&(g.beginPath(),g.moveTo(w+N,C),g.lineTo(w+k-N,C),g.quadraticCurveTo(w+k,C,w+k,C+O),g.lineTo(w+k,C+M-O),g.quadraticCurveTo(w+k,C+M,w+k-N,C+M),g.lineTo(w+N,C+M),g.quadraticCurveTo(w,C+M,w,C+M-O),g.lineTo(w,C+O),g.quadraticCurveTo(w,C,w+N,C),g.closePath()),new l.BoundingBox(w,C,w+k,C+M)}},l.Element.rect.prototype=new l.Element.PathElementBase,l.Element.circle=function(m){this.base=l.Element.PathElementBase,this.base(m),this.path=function(g){var w=this.attribute("cx").toPixels("x"),C=this.attribute("cy").toPixels("y"),k=this.attribute("r").toPixels();return null!=g&&(g.beginPath(),g.arc(w,C,k,0,2*Math.PI,!0),g.closePath()),new l.BoundingBox(w-k,C-k,w+k,C+k)}},l.Element.circle.prototype=new l.Element.PathElementBase,l.Element.ellipse=function(m){this.base=l.Element.PathElementBase,this.base(m),this.path=function(g){var w=(Math.sqrt(2)-1)/3*4,C=this.attribute("rx").toPixels("x"),k=this.attribute("ry").toPixels("y"),M=this.attribute("cx").toPixels("x"),N=this.attribute("cy").toPixels("y");return null!=g&&(g.beginPath(),g.moveTo(M,N-k),g.bezierCurveTo(M+w*C,N-k,M+C,N-w*k,M+C,N),g.bezierCurveTo(M+C,N+w*k,M+w*C,N+k,M,N+k),g.bezierCurveTo(M-w*C,N+k,M-C,N+w*k,M-C,N),g.bezierCurveTo(M-C,N-w*k,M-w*C,N-k,M,N-k),g.closePath()),new l.BoundingBox(M-C,N-k,M+C,N+k)}},l.Element.ellipse.prototype=new l.Element.PathElementBase,l.Element.line=function(m){this.base=l.Element.PathElementBase,this.base(m),this.getPoints=function(){return[new l.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new l.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]},this.path=function(g){var w=this.getPoints();return null!=g&&(g.beginPath(),g.moveTo(w[0].x,w[0].y),g.lineTo(w[1].x,w[1].y)),new l.BoundingBox(w[0].x,w[0].y,w[1].x,w[1].y)},this.getMarkers=function(){var g=this.getPoints(),w=g[0].angleTo(g[1]);return[[g[0],w],[g[1],w]]}},l.Element.line.prototype=new l.Element.PathElementBase,l.Element.polyline=function(m){this.base=l.Element.PathElementBase,this.base(m),this.points=l.CreatePath(this.attribute("points").value),this.path=function(g){var w=new l.BoundingBox(this.points[0].x,this.points[0].y);null!=g&&(g.beginPath(),g.moveTo(this.points[0].x,this.points[0].y));for(var C=1;C<this.points.length;C++)w.addPoint(this.points[C].x,this.points[C].y),null!=g&&g.lineTo(this.points[C].x,this.points[C].y);return w},this.getMarkers=function(){for(var g=[],w=0;w<this.points.length-1;w++)g.push([this.points[w],this.points[w].angleTo(this.points[w+1])]);return g.length>0&&g.push([this.points[this.points.length-1],g[g.length-1][1]]),g}},l.Element.polyline.prototype=new l.Element.PathElementBase,l.Element.polygon=function(m){this.base=l.Element.polyline,this.base(m),this.basePath=this.path,this.path=function(g){var w=this.basePath(g);return null!=g&&(g.lineTo(this.points[0].x,this.points[0].y),g.closePath()),w}},l.Element.polygon.prototype=new l.Element.polyline,l.Element.path=function(m){this.base=l.Element.PathElementBase,this.base(m);var g=this.attribute("d").value;g=g.replace(/,/gm," ");for(var w=0;w<2;w++)g=g.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");for(g=(g=g.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2"),w=0;w<2;w++)g=g.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");g=g.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),g=l.compressSpaces(g),g=l.trim(g),this.PathParser=new function(C){this.tokens=C.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new l.Point(0,0),this.control=new l.Point(0,0),this.current=new l.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var k=new l.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(k)},this.getAsControlPoint=function(){var k=this.getPoint();return this.control=k,k},this.getAsCurrentPoint=function(){var k=this.getPoint();return this.current=k,k},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new l.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(k){return this.isRelativeCommand()&&(k.x+=this.current.x,k.y+=this.current.y),k},this.addMarker=function(k,M,N){null!=N&&this.angles.length>0&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(N)),this.addMarkerAngle(k,null==M?null:M.angleTo(k))},this.addMarkerAngle=function(k,M){this.points.push(k),this.angles.push(M)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var k=0;k<this.angles.length;k++)if(null==this.angles[k])for(var M=k+1;M<this.angles.length;M++)if(null!=this.angles[M]){this.angles[k]=this.angles[M];break}return this.angles}}(g),this.path=function(C){var k=this.PathParser;k.reset();var M=new l.BoundingBox;for(null!=C&&C.beginPath();!k.isEnd();)switch(k.nextCommand(),k.command){case"M":case"m":var N=k.getAsCurrentPoint();for(k.addMarker(N),M.addPoint(N.x,N.y),null!=C&&C.moveTo(N.x,N.y),k.start=k.current;!k.isCommandOrEnd();)N=k.getAsCurrentPoint(),k.addMarker(N,k.start),M.addPoint(N.x,N.y),null!=C&&C.lineTo(N.x,N.y);break;case"L":case"l":for(;!k.isCommandOrEnd();){var O=k.current;N=k.getAsCurrentPoint(),k.addMarker(N,O),M.addPoint(N.x,N.y),null!=C&&C.lineTo(N.x,N.y)}break;case"H":case"h":for(;!k.isCommandOrEnd();){var _=new l.Point((k.isRelativeCommand()?k.current.x:0)+k.getScalar(),k.current.y);k.addMarker(_,k.current),k.current=_,M.addPoint(k.current.x,k.current.y),null!=C&&C.lineTo(k.current.x,k.current.y)}break;case"V":case"v":for(;!k.isCommandOrEnd();)_=new l.Point(k.current.x,(k.isRelativeCommand()?k.current.y:0)+k.getScalar()),k.addMarker(_,k.current),k.current=_,M.addPoint(k.current.x,k.current.y),null!=C&&C.lineTo(k.current.x,k.current.y);break;case"C":case"c":for(;!k.isCommandOrEnd();){var P=k.current,A=k.getPoint(),T=k.getAsControlPoint(),L=k.getAsCurrentPoint();k.addMarker(L,T,A),M.addBezierCurve(P.x,P.y,A.x,A.y,T.x,T.y,L.x,L.y),null!=C&&C.bezierCurveTo(A.x,A.y,T.x,T.y,L.x,L.y)}break;case"S":case"s":for(;!k.isCommandOrEnd();)P=k.current,A=k.getReflectedControlPoint(),T=k.getAsControlPoint(),L=k.getAsCurrentPoint(),k.addMarker(L,T,A),M.addBezierCurve(P.x,P.y,A.x,A.y,T.x,T.y,L.x,L.y),null!=C&&C.bezierCurveTo(A.x,A.y,T.x,T.y,L.x,L.y);break;case"Q":case"q":for(;!k.isCommandOrEnd();)P=k.current,T=k.getAsControlPoint(),L=k.getAsCurrentPoint(),k.addMarker(L,T,T),M.addQuadraticCurve(P.x,P.y,T.x,T.y,L.x,L.y),null!=C&&C.quadraticCurveTo(T.x,T.y,L.x,L.y);break;case"T":case"t":for(;!k.isCommandOrEnd();)P=k.current,T=k.getReflectedControlPoint(),k.control=T,L=k.getAsCurrentPoint(),k.addMarker(L,T,T),M.addQuadraticCurve(P.x,P.y,T.x,T.y,L.x,L.y),null!=C&&C.quadraticCurveTo(T.x,T.y,L.x,L.y);break;case"A":case"a":for(;!k.isCommandOrEnd();){P=k.current;var I=k.getScalar(),F=k.getScalar(),W=k.getScalar()*(Math.PI/180),q=k.getScalar(),et=k.getScalar(),X=(L=k.getAsCurrentPoint(),new l.Point(Math.cos(W)*(P.x-L.x)/2+Math.sin(W)*(P.y-L.y)/2,-Math.sin(W)*(P.x-L.x)/2+Math.cos(W)*(P.y-L.y)/2)),it=Math.pow(X.x,2)/Math.pow(I,2)+Math.pow(X.y,2)/Math.pow(F,2);it>1&&(I*=Math.sqrt(it),F*=Math.sqrt(it));var z=(q==et?-1:1)*Math.sqrt((Math.pow(I,2)*Math.pow(F,2)-Math.pow(I,2)*Math.pow(X.y,2)-Math.pow(F,2)*Math.pow(X.x,2))/(Math.pow(I,2)*Math.pow(X.y,2)+Math.pow(F,2)*Math.pow(X.x,2)));isNaN(z)&&(z=0);var j=new l.Point(z*I*X.y/F,z*-F*X.x/I),tt=new l.Point((P.x+L.x)/2+Math.cos(W)*j.x-Math.sin(W)*j.y,(P.y+L.y)/2+Math.sin(W)*j.x+Math.cos(W)*j.y),at=function(qt){return Math.sqrt(Math.pow(qt[0],2)+Math.pow(qt[1],2))},ct=function(qt,Ct){return(qt[0]*Ct[0]+qt[1]*Ct[1])/(at(qt)*at(Ct))},ut=function(qt,Ct){return(qt[0]*Ct[1]<qt[1]*Ct[0]?-1:1)*Math.acos(ct(qt,Ct))},rt=ut([1,0],[(X.x-j.x)/I,(X.y-j.y)/F]),lt=[(X.x-j.x)/I,(X.y-j.y)/F],ft=[(-X.x-j.x)/I,(-X.y-j.y)/F],kt=ut(lt,ft);ct(lt,ft)<=-1&&(kt=Math.PI),ct(lt,ft)>=1&&(kt=0);var wt=1-et?1:-1,Nt=rt+wt*(kt/2),Yt=new l.Point(tt.x+I*Math.cos(Nt),tt.y+F*Math.sin(Nt));if(k.addMarkerAngle(Yt,Nt-wt*Math.PI/2),k.addMarkerAngle(L,Nt-wt*Math.PI),M.addPoint(L.x,L.y),null!=C){ct=I>F?I:F;var Qt=I>F?1:I/F,$t=I>F?F/I:1;C.translate(tt.x,tt.y),C.rotate(W),C.scale(Qt,$t),C.arc(0,0,ct,rt,rt+kt,1-et),C.scale(1/Qt,1/$t),C.rotate(-W),C.translate(-tt.x,-tt.y)}}break;case"Z":case"z":null!=C&&C.closePath(),k.current=k.start}return M},this.getMarkers=function(){for(var C=this.PathParser.getMarkerPoints(),k=this.PathParser.getMarkerAngles(),M=[],N=0;N<C.length;N++)M.push([C[N],k[N]]);return M}},l.Element.path.prototype=new l.Element.PathElementBase,l.Element.pattern=function(m){this.base=l.Element.ElementBase,this.base(m),this.createPattern=function(g,w){var C=this.attribute("width").toPixels("x",!0),k=this.attribute("height").toPixels("y",!0),M=new l.Element.svg;M.attributes.viewBox=new l.Property("viewBox",this.attribute("viewBox").value),M.attributes.width=new l.Property("width",C+"px"),M.attributes.height=new l.Property("height",k+"px"),M.attributes.transform=new l.Property("transform",this.attribute("patternTransform").value),M.children=this.children;var N=document.createElement("canvas");N.width=C,N.height=k;var O=N.getContext("2d");this.attribute("x").hasValue()&&this.attribute("y").hasValue()&&O.translate(this.attribute("x").toPixels("x",!0),this.attribute("y").toPixels("y",!0));for(var _=-1;_<=1;_++)for(var P=-1;P<=1;P++)O.save(),M.attributes.x=new l.Property("x",_*N.width),M.attributes.y=new l.Property("y",P*N.height),M.render(O),O.restore();return g.createPattern(N,"repeat")}},l.Element.pattern.prototype=new l.Element.ElementBase,l.Element.marker=function(m){this.base=l.Element.ElementBase,this.base(m),this.baseRender=this.render,this.render=function(g,w,C){g.translate(w.x,w.y),"auto"==this.attribute("orient").valueOrDefault("auto")&&g.rotate(C),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&g.scale(g.lineWidth,g.lineWidth),g.save();var k=new l.Element.svg;k.attributes.viewBox=new l.Property("viewBox",this.attribute("viewBox").value),k.attributes.refX=new l.Property("refX",this.attribute("refX").value),k.attributes.refY=new l.Property("refY",this.attribute("refY").value),k.attributes.width=new l.Property("width",this.attribute("markerWidth").value),k.attributes.height=new l.Property("height",this.attribute("markerHeight").value),k.attributes.fill=new l.Property("fill",this.attribute("fill").valueOrDefault("black")),k.attributes.stroke=new l.Property("stroke",this.attribute("stroke").valueOrDefault("none")),k.children=this.children,k.render(g),g.restore(),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&g.scale(1/g.lineWidth,1/g.lineWidth),"auto"==this.attribute("orient").valueOrDefault("auto")&&g.rotate(-C),g.translate(-w.x,-w.y)}},l.Element.marker.prototype=new l.Element.ElementBase,l.Element.defs=function(m){this.base=l.Element.ElementBase,this.base(m),this.render=function(g){}},l.Element.defs.prototype=new l.Element.ElementBase,l.Element.GradientBase=function(m){this.base=l.Element.ElementBase,this.base(m),this.stops=[];for(var g=0;g<this.children.length;g++){var w=this.children[g];"stop"==w.type&&this.stops.push(w)}this.getGradient=function(){},this.gradientUnits=function(){return this.attribute("gradientUnits").valueOrDefault("objectBoundingBox")},this.attributesToInherit=["gradientUnits"],this.inheritStopContainer=function(C){for(var k=0;k<this.attributesToInherit.length;k++){var M=this.attributesToInherit[k];!this.attribute(M).hasValue()&&C.attribute(M).hasValue()&&(this.attribute(M,!0).value=C.attribute(M).value)}},this.createGradient=function(C,k,M){var N=this;this.getHrefAttribute().hasValue()&&(N=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(N));var O=function(q){return M.hasValue()?new l.Property("color",q).addOpacity(M).value:q},_=this.getGradient(C,k);if(null==_)return O(N.stops[N.stops.length-1].color);for(var P=0;P<N.stops.length;P++)_.addColorStop(N.stops[P].offset,O(N.stops[P].color));if(this.attribute("gradientTransform").hasValue()){var A=l.ViewPort.viewPorts[0],T=new l.Element.rect;T.attributes.x=new l.Property("x",-l.MAX_VIRTUAL_PIXELS/3),T.attributes.y=new l.Property("y",-l.MAX_VIRTUAL_PIXELS/3),T.attributes.width=new l.Property("width",l.MAX_VIRTUAL_PIXELS),T.attributes.height=new l.Property("height",l.MAX_VIRTUAL_PIXELS);var L=new l.Element.g;L.attributes.transform=new l.Property("transform",this.attribute("gradientTransform").value),L.children=[T];var I=new l.Element.svg;I.attributes.x=new l.Property("x",0),I.attributes.y=new l.Property("y",0),I.attributes.width=new l.Property("width",A.width),I.attributes.height=new l.Property("height",A.height),I.children=[L];var F=document.createElement("canvas");F.width=A.width,F.height=A.height;var W=F.getContext("2d");return W.fillStyle=_,I.render(W),W.createPattern(F,"no-repeat")}return _}},l.Element.GradientBase.prototype=new l.Element.ElementBase,l.Element.linearGradient=function(m){this.base=l.Element.GradientBase,this.base(m),this.attributesToInherit.push("x1"),this.attributesToInherit.push("y1"),this.attributesToInherit.push("x2"),this.attributesToInherit.push("y2"),this.getGradient=function(g,w){var C="objectBoundingBox"==this.gradientUnits()?w.getBoundingBox():null;!this.attribute("x1").hasValue()&&!this.attribute("y1").hasValue()&&!this.attribute("x2").hasValue()&&!this.attribute("y2").hasValue()&&(this.attribute("x1",!0).value=0,this.attribute("y1",!0).value=0,this.attribute("x2",!0).value=1,this.attribute("y2",!0).value=0);var k="objectBoundingBox"==this.gradientUnits()?C.x()+C.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x"),M="objectBoundingBox"==this.gradientUnits()?C.y()+C.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y"),N="objectBoundingBox"==this.gradientUnits()?C.x()+C.width()*this.attribute("x2").numValue():this.attribute("x2").toPixels("x"),O="objectBoundingBox"==this.gradientUnits()?C.y()+C.height()*this.attribute("y2").numValue():this.attribute("y2").toPixels("y");return k==N&&M==O?null:g.createLinearGradient(k,M,N,O)}},l.Element.linearGradient.prototype=new l.Element.GradientBase,l.Element.radialGradient=function(m){this.base=l.Element.GradientBase,this.base(m),this.attributesToInherit.push("cx"),this.attributesToInherit.push("cy"),this.attributesToInherit.push("r"),this.attributesToInherit.push("fx"),this.attributesToInherit.push("fy"),this.getGradient=function(g,w){var C=w.getBoundingBox();this.attribute("cx").hasValue()||(this.attribute("cx",!0).value="50%"),this.attribute("cy").hasValue()||(this.attribute("cy",!0).value="50%"),this.attribute("r").hasValue()||(this.attribute("r",!0).value="50%");var k="objectBoundingBox"==this.gradientUnits()?C.x()+C.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x"),M="objectBoundingBox"==this.gradientUnits()?C.y()+C.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y"),N=k,O=M;this.attribute("fx").hasValue()&&(N="objectBoundingBox"==this.gradientUnits()?C.x()+C.width()*this.attribute("fx").numValue():this.attribute("fx").toPixels("x")),this.attribute("fy").hasValue()&&(O="objectBoundingBox"==this.gradientUnits()?C.y()+C.height()*this.attribute("fy").numValue():this.attribute("fy").toPixels("y"));var _="objectBoundingBox"==this.gradientUnits()?(C.width()+C.height())/2*this.attribute("r").numValue():this.attribute("r").toPixels();return g.createRadialGradient(N,O,0,k,M,_)}},l.Element.radialGradient.prototype=new l.Element.GradientBase,l.Element.stop=function(m){this.base=l.Element.ElementBase,this.base(m),this.offset=this.attribute("offset").numValue(),this.offset<0&&(this.offset=0),this.offset>1&&(this.offset=1);var g=this.style("stop-color",!0);""==g.value&&(g.value="#000"),this.style("stop-opacity").hasValue()&&(g=g.addOpacity(this.style("stop-opacity"))),this.color=g.value},l.Element.stop.prototype=new l.Element.ElementBase,l.Element.AnimateBase=function(m){this.base=l.Element.ElementBase,this.base(m),l.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var g=this.attribute("attributeType").value,w=this.attribute("attributeName").value;return"CSS"==g?this.parent.style(w,!0):this.parent.attribute(w,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(g){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+g;var w=!1;if(this.begin<this.duration){var C=this.calcValue();this.attribute("type").hasValue()&&(C=this.attribute("type").value+"("+C+")"),this.getProperty().value=C,w=!0}return w},this.from=this.attribute("from"),this.to=this.attribute("to"),this.values=this.attribute("values"),this.values.hasValue()&&(this.values.value=this.values.value.split(";")),this.progress=function(){var g={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var w=g.progress*(this.values.value.length-1),C=Math.floor(w),k=Math.ceil(w);g.from=new l.Property("from",parseFloat(this.values.value[C])),g.to=new l.Property("to",parseFloat(this.values.value[k])),g.progress=(w-C)/(k-C)}else g.from=this.from,g.to=this.to;return g}},l.Element.AnimateBase.prototype=new l.Element.ElementBase,l.Element.animate=function(m){this.base=l.Element.AnimateBase,this.base(m),this.calcValue=function(){var g=this.progress();return g.from.numValue()+(g.to.numValue()-g.from.numValue())*g.progress+this.initialUnits}},l.Element.animate.prototype=new l.Element.AnimateBase,l.Element.animateColor=function(m){this.base=l.Element.AnimateBase,this.base(m),this.calcValue=function(){var g=this.progress(),w=new d(g.from.value),C=new d(g.to.value);if(w.ok&&C.ok){var M=w.g+(C.g-w.g)*g.progress,N=w.b+(C.b-w.b)*g.progress;return"rgb("+parseInt(w.r+(C.r-w.r)*g.progress,10)+","+parseInt(M,10)+","+parseInt(N,10)+")"}return this.attribute("from").value}},l.Element.animateColor.prototype=new l.Element.AnimateBase,l.Element.animateTransform=function(m){this.base=l.Element.AnimateBase,this.base(m),this.calcValue=function(){for(var g=this.progress(),w=l.ToNumberArray(g.from.value),C=l.ToNumberArray(g.to.value),k="",M=0;M<w.length;M++)k+=w[M]+(C[M]-w[M])*g.progress+" ";return k}},l.Element.animateTransform.prototype=new l.Element.animate,l.Element.font=function(m){this.base=l.Element.ElementBase,this.base(m),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.isRTL=!1,this.isArabic=!1,this.fontFace=null,this.missingGlyph=null,this.glyphs=[];for(var g=0;g<this.children.length;g++){var w=this.children[g];"font-face"==w.type?(this.fontFace=w,w.style("font-family").hasValue()&&(l.Definitions[w.style("font-family").value]=this)):"missing-glyph"==w.type?this.missingGlyph=w:"glyph"==w.type&&(""!=w.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[w.unicode]&&(this.glyphs[w.unicode]=[]),this.glyphs[w.unicode][w.arabicForm]=w):this.glyphs[w.unicode]=w)}},l.Element.font.prototype=new l.Element.ElementBase,l.Element.fontface=function(m){this.base=l.Element.ElementBase,this.base(m),this.ascent=this.attribute("ascent").value,this.descent=this.attribute("descent").value,this.unitsPerEm=this.attribute("units-per-em").numValue()},l.Element.fontface.prototype=new l.Element.ElementBase,l.Element.missingglyph=function(m){this.base=l.Element.path,this.base(m),this.horizAdvX=0},l.Element.missingglyph.prototype=new l.Element.path,l.Element.glyph=function(m){this.base=l.Element.path,this.base(m),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.unicode=this.attribute("unicode").value,this.arabicForm=this.attribute("arabic-form").value},l.Element.glyph.prototype=new l.Element.path,l.Element.text=function(m){this.captureTextNodes=!0,this.base=l.Element.RenderedElementBase,this.base(m),this.baseSetContext=this.setContext,this.setContext=function(g){this.baseSetContext(g);var w=this.style("dominant-baseline").toTextBaseline();null==w&&(w=this.style("alignment-baseline").toTextBaseline()),null!=w&&(g.textBaseline=w)},this.getBoundingBox=function(){var g=this.attribute("x").toPixels("x"),w=this.attribute("y").toPixels("y"),C=this.parent.style("font-size").numValueOrDefault(l.Font.Parse(l.ctx.font).fontSize);return new l.BoundingBox(g,w-C,g+Math.floor(2*C/3)*this.children[0].getText().length,w)},this.renderChildren=function(g){this.x=this.attribute("x").toPixels("x"),this.y=this.attribute("y").toPixels("y"),this.attribute("dx").hasValue()&&(this.x+=this.attribute("dx").toPixels("x")),this.attribute("dy").hasValue()&&(this.y+=this.attribute("dy").toPixels("y")),this.x+=this.getAnchorDelta(g,this,0);for(var w=0;w<this.children.length;w++)this.renderChild(g,this,this,w)},this.getAnchorDelta=function(g,w,C){var k=this.style("text-anchor").valueOrDefault("start");if("start"!=k){for(var M=0,N=C;N<w.children.length;N++){var O=w.children[N];if(N>C&&O.attribute("x").hasValue())break;M+=O.measureTextRecursive(g)}return-1*("end"==k?M:M/2)}return 0},this.renderChild=function(g,w,C,k){var M=C.children[k];for(M.attribute("x").hasValue()?(M.x=M.attribute("x").toPixels("x")+w.getAnchorDelta(g,C,k),M.attribute("dx").hasValue()&&(M.x+=M.attribute("dx").toPixels("x"))):(M.attribute("dx").hasValue()&&(w.x+=M.attribute("dx").toPixels("x")),M.x=w.x),w.x=M.x+M.measureText(g),M.attribute("y").hasValue()?(M.y=M.attribute("y").toPixels("y"),M.attribute("dy").hasValue()&&(M.y+=M.attribute("dy").toPixels("y"))):(M.attribute("dy").hasValue()&&(w.y+=M.attribute("dy").toPixels("y")),M.y=w.y),w.y=M.y,M.render(g),k=0;k<M.children.length;k++)w.renderChild(g,w,M,k)}},l.Element.text.prototype=new l.Element.RenderedElementBase,l.Element.TextElementBase=function(m){this.base=l.Element.RenderedElementBase,this.base(m),this.getGlyph=function(g,w,C){var k=w[C],M=null;if(g.isArabic){var N="isolated";(0==C||" "==w[C-1])&&C<w.length-2&&" "!=w[C+1]&&(N="terminal"),C>0&&" "!=w[C-1]&&C<w.length-2&&" "!=w[C+1]&&(N="medial"),C>0&&" "!=w[C-1]&&(C==w.length-1||" "==w[C+1])&&(N="initial"),void 0!==g.glyphs[k]&&null==(M=g.glyphs[k][N])&&"glyph"==g.glyphs[k].type&&(M=g.glyphs[k])}else M=g.glyphs[k];return null==M&&(M=g.missingGlyph),M},this.renderChildren=function(g){var w=this.parent.style("font-family").getDefinition();if(null==w)""!=g.fillStyle&&g.fillText(l.compressSpaces(this.getText()),this.x,this.y),""!=g.strokeStyle&&g.strokeText(l.compressSpaces(this.getText()),this.x,this.y);else{var C=this.parent.style("font-size").numValueOrDefault(l.Font.Parse(l.ctx.font).fontSize),k=this.parent.style("font-style").valueOrDefault(l.Font.Parse(l.ctx.font).fontStyle),M=this.getText();w.isRTL&&(M=M.split("").reverse().join(""));for(var N=l.ToNumberArray(this.parent.attribute("dx").value),O=0;O<M.length;O++){var _=this.getGlyph(w,M,O),P=C/w.fontFace.unitsPerEm;g.translate(this.x,this.y),g.scale(P,-P);var A=g.lineWidth;g.lineWidth=g.lineWidth*w.fontFace.unitsPerEm/C,"italic"==k&&g.transform(1,0,.4,1,0,0),_.render(g),"italic"==k&&g.transform(1,0,-.4,1,0,0),g.lineWidth=A,g.scale(1/P,-1/P),g.translate(-this.x,-this.y),this.x+=C*(_.horizAdvX||w.horizAdvX)/w.fontFace.unitsPerEm,void 0!==N[O]&&!isNaN(N[O])&&(this.x+=N[O])}}},this.getText=function(){},this.measureTextRecursive=function(g){for(var w=this.measureText(g),C=0;C<this.children.length;C++)w+=this.children[C].measureTextRecursive(g);return w},this.measureText=function(g){var w=this.parent.style("font-family").getDefinition();if(null!=w){var C=this.parent.style("font-size").numValueOrDefault(l.Font.Parse(l.ctx.font).fontSize),k=0,M=this.getText();w.isRTL&&(M=M.split("").reverse().join(""));for(var N=l.ToNumberArray(this.parent.attribute("dx").value),O=0;O<M.length;O++)k+=(this.getGlyph(w,M,O).horizAdvX||w.horizAdvX)*C/w.fontFace.unitsPerEm,void 0!==N[O]&&!isNaN(N[O])&&(k+=N[O]);return k}var P=l.compressSpaces(this.getText());if(!g.measureText)return 10*P.length;g.save(),this.setContext(g);var A=g.measureText(P).width;return g.restore(),A}},l.Element.TextElementBase.prototype=new l.Element.RenderedElementBase,l.Element.tspan=function(m){this.captureTextNodes=!0,this.base=l.Element.TextElementBase,this.base(m),this.text=l.compressSpaces(m.value||m.text||m.textContent||""),this.getText=function(){return this.children.length>0?"":this.text}},l.Element.tspan.prototype=new l.Element.TextElementBase,l.Element.tref=function(m){this.base=l.Element.TextElementBase,this.base(m),this.getText=function(){var g=this.getHrefAttribute().getDefinition();if(null!=g)return g.children[0].getText()}},l.Element.tref.prototype=new l.Element.TextElementBase,l.Element.a=function(m){this.base=l.Element.TextElementBase,this.base(m),this.hasText=m.childNodes.length>0;for(var g=0;g<m.childNodes.length;g++)3!=m.childNodes[g].nodeType&&(this.hasText=!1);this.text=this.hasText?m.childNodes[0].value:"",this.getText=function(){return this.text},this.baseRenderChildren=this.renderChildren,this.renderChildren=function(w){if(this.hasText){this.baseRenderChildren(w);var C=new l.Property("fontSize",l.Font.Parse(l.ctx.font).fontSize);l.Mouse.checkBoundingBox(this,new l.BoundingBox(this.x,this.y-C.toPixels("y"),this.x+this.measureText(w),this.y))}else if(this.children.length>0){var k=new l.Element.g;k.children=this.children,k.parent=this,k.render(w)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){l.ctx.canvas.style.cursor="pointer"}},l.Element.a.prototype=new l.Element.TextElementBase,l.Element.image=function(m){this.base=l.Element.RenderedElementBase,this.base(m);var g=this.getHrefAttribute().value;if(""!=g){var w=g.match(/\.svg$/);if(l.Images.push(this),this.loaded=!1,w)this.img=l.ajax(g),this.loaded=!0;else{this.img=document.createElement("img"),1==l.opts.useCORS&&(this.img.crossOrigin="Anonymous");var C=this;this.img.onload=function(){C.loaded=!0},this.img.onerror=function(){l.log('ERROR: image "'+g+'" not found'),C.loaded=!0},this.img.src=g}this.renderChildren=function(k){var M=this.attribute("x").toPixels("x"),N=this.attribute("y").toPixels("y"),O=this.attribute("width").toPixels("x"),_=this.attribute("height").toPixels("y");0==O||0==_||(k.save(),w?k.drawSvg(this.img,M,N,O,_):(k.translate(M,N),l.AspectRatio(k,this.attribute("preserveAspectRatio").value,O,this.img.width,_,this.img.height,0,0),k.drawImage(this.img,0,0)),k.restore())},this.getBoundingBox=function(){var k=this.attribute("x").toPixels("x"),M=this.attribute("y").toPixels("y"),N=this.attribute("width").toPixels("x"),O=this.attribute("height").toPixels("y");return new l.BoundingBox(k,M,k+N,M+O)}}},l.Element.image.prototype=new l.Element.RenderedElementBase,l.Element.g=function(m){this.base=l.Element.RenderedElementBase,this.base(m),this.getBoundingBox=function(){for(var g=new l.BoundingBox,w=0;w<this.children.length;w++)g.addBoundingBox(this.children[w].getBoundingBox());return g}},l.Element.g.prototype=new l.Element.RenderedElementBase,l.Element.symbol=function(m){this.base=l.Element.RenderedElementBase,this.base(m),this.render=function(g){}},l.Element.symbol.prototype=new l.Element.RenderedElementBase,l.Element.style=function(m){this.base=l.Element.ElementBase,this.base(m);for(var g="",w=0;w<m.childNodes.length;w++)g+=m.childNodes[w].data;g=g.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"");var C=(g=l.compressSpaces(g)).split("}");for(w=0;w<C.length;w++)if(""!=l.trim(C[w]))for(var k=C[w].split("{"),M=k[0].split(","),N=k[1].split(";"),O=0;O<M.length;O++){var _=l.trim(M[O]);if(""!=_){for(var P=l.Styles[_]||{},A=0;A<N.length;A++){var T=N[A].indexOf(":"),L=N[A].substr(0,T),I=N[A].substr(T+1,N[A].length-T);null!=L&&null!=I&&(P[l.trim(L)]=new l.Property(l.trim(L),l.trim(I)))}if(l.Styles[_]=P,l.StylesSpecificity[_]=n(_),"@font-face"==_)for(var F=P["font-family"].value.replace(/"/g,""),W=P.src.value.split(","),q=0;q<W.length;q++)if(W[q].indexOf('format("svg")')>0)for(var et=W[q].indexOf("url"),X=W[q].indexOf(")",et),it=W[q].substr(et+5,X-et-6),j=l.parseXml(l.ajax(it)).getElementsByTagName("font"),tt=0;tt<j.length;tt++){var at=l.CreateElement(j[tt]);l.Definitions[F]=at}}}},l.Element.style.prototype=new l.Element.ElementBase,l.Element.use=function(m){this.base=l.Element.RenderedElementBase,this.base(m),this.baseSetContext=this.setContext,this.setContext=function(w){this.baseSetContext(w),this.attribute("x").hasValue()&&w.translate(this.attribute("x").toPixels("x"),0),this.attribute("y").hasValue()&&w.translate(0,this.attribute("y").toPixels("y"))};var g=this.getHrefAttribute().getDefinition();this.path=function(w){null!=g&&g.path(w)},this.getBoundingBox=function(){if(null!=g)return g.getBoundingBox()},this.renderChildren=function(w){if(null!=g){var C=g;"symbol"==g.type&&((C=new l.Element.svg).type="svg",C.attributes.viewBox=new l.Property("viewBox",g.attribute("viewBox").value),C.attributes.preserveAspectRatio=new l.Property("preserveAspectRatio",g.attribute("preserveAspectRatio").value),C.attributes.overflow=new l.Property("overflow",g.attribute("overflow").value),C.children=g.children),"svg"==C.type&&(this.attribute("width").hasValue()&&(C.attributes.width=new l.Property("width",this.attribute("width").value)),this.attribute("height").hasValue()&&(C.attributes.height=new l.Property("height",this.attribute("height").value)));var k=C.parent;C.parent=null,C.render(w),C.parent=k}}},l.Element.use.prototype=new l.Element.RenderedElementBase,l.Element.mask=function(m){this.base=l.Element.ElementBase,this.base(m),this.apply=function(g,w){var C=this.attribute("x").toPixels("x"),k=this.attribute("y").toPixels("y"),M=this.attribute("width").toPixels("x"),N=this.attribute("height").toPixels("y");if(0==M&&0==N){for(var O=new l.BoundingBox,_=0;_<this.children.length;_++)O.addBoundingBox(this.children[_].getBoundingBox());C=Math.floor(O.x1),k=Math.floor(O.y1),M=Math.floor(O.width()),N=Math.floor(O.height())}var P=w.attribute("mask").value;w.attribute("mask").value="";var A=document.createElement("canvas");A.width=C+M,A.height=k+N;var T=A.getContext("2d");this.renderChildren(T);var L=document.createElement("canvas");L.width=C+M,L.height=k+N;var I=L.getContext("2d");w.render(I),I.globalCompositeOperation="destination-in",I.fillStyle=T.createPattern(A,"no-repeat"),I.fillRect(0,0,C+M,k+N),g.fillStyle=I.createPattern(L,"no-repeat"),g.fillRect(0,0,C+M,k+N),w.attribute("mask").value=P},this.render=function(g){}},l.Element.mask.prototype=new l.Element.ElementBase,l.Element.clipPath=function(m){this.base=l.Element.ElementBase,this.base(m),this.apply=function(g){var w=CanvasRenderingContext2D.prototype.beginPath;CanvasRenderingContext2D.prototype.beginPath=function(){};var C=CanvasRenderingContext2D.prototype.closePath;CanvasRenderingContext2D.prototype.closePath=function(){},w.call(g);for(var k=0;k<this.children.length;k++){var M=this.children[k];if(void 0!==M.path){var N=null;M.style("transform",!1,!0).hasValue()&&(N=new l.Transform(M.style("transform",!1,!0).value)).apply(g),M.path(g),CanvasRenderingContext2D.prototype.closePath=C,N&&N.unapply(g)}}C.call(g),g.clip(),CanvasRenderingContext2D.prototype.beginPath=w,CanvasRenderingContext2D.prototype.closePath=C},this.render=function(g){}},l.Element.clipPath.prototype=new l.Element.ElementBase,l.Element.filter=function(m){this.base=l.Element.ElementBase,this.base(m),this.apply=function(g,w){var C=w.getBoundingBox(),k=Math.floor(C.x1),M=Math.floor(C.y1),N=Math.floor(C.width()),O=Math.floor(C.height()),_=w.style("filter").value;w.style("filter").value="";for(var P=0,A=0,T=0;T<this.children.length;T++){var L=this.children[T].extraFilterDistance||0;P=Math.max(P,L),A=Math.max(A,L)}var I=document.createElement("canvas");I.width=N+2*P,I.height=O+2*A;var F=I.getContext("2d");for(F.translate(-k+P,-M+A),w.render(F),T=0;T<this.children.length;T++)"function"==typeof this.children[T].apply&&this.children[T].apply(F,0,0,N+2*P,O+2*A);g.drawImage(I,0,0,N+2*P,O+2*A,k-P,M-A,N+2*P,O+2*A),w.style("filter",!0).value=_},this.render=function(g){}},l.Element.filter.prototype=new l.Element.ElementBase,l.Element.feMorphology=function(m){this.base=l.Element.ElementBase,this.base(m),this.apply=function(g,w,C,k,M){}},l.Element.feMorphology.prototype=new l.Element.ElementBase,l.Element.feComposite=function(m){this.base=l.Element.ElementBase,this.base(m),this.apply=function(g,w,C,k,M){}},l.Element.feComposite.prototype=new l.Element.ElementBase,l.Element.feColorMatrix=function(m){this.base=l.Element.ElementBase,this.base(m);var g=l.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var w=g[0];g=[.213+.787*w,.715-.715*w,.072-.072*w,0,0,.213-.213*w,.715+.285*w,.072-.072*w,0,0,.213-.213*w,.715-.715*w,.072+.928*w,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var C=g[0]*Math.PI/180,k=function(_,P,A){return _+Math.cos(C)*P+Math.sin(C)*A};g=[k(.213,.787,-.213),k(.715,-.715,-.715),k(.072,-.072,.928),0,0,k(.213,-.213,.143),k(.715,.285,.14),k(.072,-.072,-.283),0,0,k(.213,-.213,-.787),k(.715,-.715,.715),k(.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}function M(_,P,A,T,L,I){return _[A*T*4+4*P+I]}function N(_,P,A,T,L,I,F){_[A*T*4+4*P+I]=F}function O(_,P){var A=g[_];return A*(A<0?P-255:P)}this.apply=function(_,P,A,T,L){var I=_.getImageData(0,0,T,L);for(A=0;A<L;A++)for(P=0;P<T;P++){var F=M(I.data,P,A,T,0,0),W=M(I.data,P,A,T,0,1),q=M(I.data,P,A,T,0,2),et=M(I.data,P,A,T,0,3);N(I.data,P,A,T,0,0,O(0,F)+O(1,W)+O(2,q)+O(3,et)+O(4,1)),N(I.data,P,A,T,0,1,O(5,F)+O(6,W)+O(7,q)+O(8,et)+O(9,1)),N(I.data,P,A,T,0,2,O(10,F)+O(11,W)+O(12,q)+O(13,et)+O(14,1)),N(I.data,P,A,T,0,3,O(15,F)+O(16,W)+O(17,q)+O(18,et)+O(19,1))}_.clearRect(0,0,T,L),_.putImageData(I,0,0)}},l.Element.feColorMatrix.prototype=new l.Element.ElementBase,l.Element.feGaussianBlur=function(m){this.base=l.Element.ElementBase,this.base(m),this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue()),this.extraFilterDistance=this.blurRadius,this.apply=function(g,w,C,k,M){void 0!==a.canvasRGBA?(g.canvas.id=l.UniqueId(),g.canvas.style.display="none",document.body.appendChild(g.canvas),a.canvasRGBA(g.canvas.id,w,C,k,M,this.blurRadius),document.body.removeChild(g.canvas)):l.log("ERROR: StackBlur.js must be included for blur to work")}},l.Element.feGaussianBlur.prototype=new l.Element.ElementBase,l.Element.title=function(m){},l.Element.title.prototype=new l.Element.ElementBase,l.Element.desc=function(m){},l.Element.desc.prototype=new l.Element.ElementBase,l.Element.MISSING=function(m){l.log("ERROR: Element '"+m.nodeName+"' not yet implemented.")},l.Element.MISSING.prototype=new l.Element.ElementBase,l.CreateElement=function(m){var g=m.nodeName.replace(/^[^:]+:/,"");g=g.replace(/\-/g,"");var w=null;return(w=void 0!==l.Element[g]?new l.Element[g](m):new l.Element.MISSING(m)).type=m.nodeName,w},l.load=function(m,g){l.loadXml(m,l.ajax(g))},l.loadXml=function(m,g){l.loadXmlDoc(m,l.parseXml(g))},l.loadXmlDoc=function(m,g){l.init(m);var w=function(O){for(var _=m.canvas;_;)O.x-=_.offsetLeft,O.y-=_.offsetTop,_=_.offsetParent;return window.scrollX&&(O.x+=window.scrollX),window.scrollY&&(O.y+=window.scrollY),O};1!=l.opts.ignoreMouse&&(m.canvas.onclick=function(O){var _=w(new l.Point(null!=O?O.clientX:event.clientX,null!=O?O.clientY:event.clientY));l.Mouse.onclick(_.x,_.y)},m.canvas.onmousemove=function(O){var _=w(new l.Point(null!=O?O.clientX:event.clientX,null!=O?O.clientY:event.clientY));l.Mouse.onmousemove(_.x,_.y)});var C=l.CreateElement(g.documentElement);C.root=!0,C.addStylesFromStyleDefinition();var k=!0,M=function(){l.ViewPort.Clear(),m.canvas.parentNode&&l.ViewPort.SetCurrent(m.canvas.parentNode.clientWidth,m.canvas.parentNode.clientHeight),1!=l.opts.ignoreDimensions&&(C.style("width").hasValue()&&(m.canvas.width=C.style("width").toPixels("x"),m.canvas.style.width=m.canvas.width+"px"),C.style("height").hasValue()&&(m.canvas.height=C.style("height").toPixels("y"),m.canvas.style.height=m.canvas.height+"px"));var O=m.canvas.clientWidth||m.canvas.width,_=m.canvas.clientHeight||m.canvas.height;if(1==l.opts.ignoreDimensions&&C.style("width").hasValue()&&C.style("height").hasValue()&&(O=C.style("width").toPixels("x"),_=C.style("height").toPixels("y")),l.ViewPort.SetCurrent(O,_),null!=l.opts.offsetX&&(C.attribute("x",!0).value=l.opts.offsetX),null!=l.opts.offsetY&&(C.attribute("y",!0).value=l.opts.offsetY),null!=l.opts.scaleWidth||null!=l.opts.scaleHeight){var P=null,A=null,T=l.ToNumberArray(C.attribute("viewBox").value);null!=l.opts.scaleWidth&&(C.attribute("width").hasValue()?P=C.attribute("width").toPixels("x")/l.opts.scaleWidth:isNaN(T[2])||(P=T[2]/l.opts.scaleWidth)),null!=l.opts.scaleHeight&&(C.attribute("height").hasValue()?A=C.attribute("height").toPixels("y")/l.opts.scaleHeight:isNaN(T[3])||(A=T[3]/l.opts.scaleHeight)),null==P&&(P=A),null==A&&(A=P),C.attribute("width",!0).value=l.opts.scaleWidth,C.attribute("height",!0).value=l.opts.scaleHeight,C.style("transform",!0,!0).value+=" scale("+1/P+","+1/A+")"}1!=l.opts.ignoreClear&&m.clearRect(0,0,O,_),C.render(m),k&&(k=!1,"function"==typeof l.opts.renderCallback&&l.opts.renderCallback(g))},N=!0;l.ImagesLoaded()&&(N=!1,M()),l.intervalID=setInterval(function(){var O=!1;if(N&&l.ImagesLoaded()&&(N=!1,O=!0),1!=l.opts.ignoreMouse&&(O|=l.Mouse.hasEvents()),1!=l.opts.ignoreAnimation)for(var _=0;_<l.Animations.length;_++)O|=l.Animations[_].update(1e3/l.FRAMERATE);"function"==typeof l.opts.forceRedraw&&1==l.opts.forceRedraw()&&(O=!0),O&&(M(),l.Mouse.runEvents())},1e3/l.FRAMERATE)},l.stop=function(){l.intervalID&&clearInterval(l.intervalID)},l.Mouse=new function(){this.events=[],this.hasEvents=function(){return 0!=this.events.length},this.onclick=function(m,g){this.events.push({type:"onclick",x:m,y:g,run:function(w){w.onclick&&w.onclick()}})},this.onmousemove=function(m,g){this.events.push({type:"onmousemove",x:m,y:g,run:function(w){w.onmousemove&&w.onmousemove()}})},this.eventElements=[],this.checkPath=function(m,g){for(var w=0;w<this.events.length;w++){var C=this.events[w];g.isPointInPath&&g.isPointInPath(C.x,C.y)&&(this.eventElements[w]=m)}},this.checkBoundingBox=function(m,g){for(var w=0;w<this.events.length;w++){var C=this.events[w];g.isPointInBox(C.x,C.y)&&(this.eventElements[w]=m)}},this.runEvents=function(){l.ctx.canvas.style.cursor="";for(var m=0;m<this.events.length;m++)for(var g=this.events[m],w=this.eventElements[m];w;)g.run(w),w=w.parent;this.events=[],this.eventElements=[]}},l}(p||{});1==u.childNodes.length&&"OBJECT"==u.childNodes[0].nodeName||(u.svg=k);var M=u.getContext("2d");void 0!==l.documentElement?k.loadXmlDoc(M,l):"<"==l.substr(0,1)?k.loadXml(M,l):k.load(M,l)}else for(var x=document.querySelectorAll("svg"),m=0;m<x.length;m++){var g=x[m],w=document.createElement("canvas");w.width=g.clientWidth,w.height=g.clientHeight,g.parentNode.insertBefore(w,g),g.parentNode.removeChild(g);var C=document.createElement("div");C.appendChild(g),t(w,C.innerHTML)}}},"./node_modules/css-loader/index.js!./src/css/contextmenu.css":function(h,y,c){(h.exports=c("./node_modules/css-loader/lib/css-base.js")(!1)).push([h.i,'\n\n/*!\n * jQuery contextMenu - Plugin for simple contextMenu handling\n *\n * Version: 1.5.24\n *\n * Authors: Rodney Rehm, Addy Osmani (patches for FF)\n * Web: http://medialize.github.com/jQuery-contextMenu/\n *\n * Licensed under\n * MIT License http://www.opensource.org/licenses/mit-license\n * GPL v3 http://opensource.org/licenses/GPL-3.0\n *\n */\n.context-menu-list {\n margin:0;\n padding:0;\n\n min-width: 120px;\n max-width: 250px;\n display: inline-block;\n position: absolute;\n list-style-type: none;\n\n border: 1px solid #DDD;\n background: #EEE;\n\n -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\n -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\n -ms-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\n -o-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\n\n font-family: Verdana, Arial, Helvetica, sans-serif;\n font-size: 11px;\n}\n\n.context-menu-item {\n padding: 2px 2px 2px 24px;\n background-color: #EEE;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: -moz-none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.context-menu-separator {\n padding-bottom:0;\n border-bottom: 1px solid #DDD;\n}\n\n.context-menu-item > label > input,\n.context-menu-item > label > textarea {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n\n.context-menu-item.hover {\n cursor: pointer;\n background-color: #39F;\n}\n\n.context-menu-item.disabled {\n color: #666;\n}\n\n.context-menu-input.hover,\n.context-menu-item.disabled.hover {\n cursor: default;\n background-color: #EEE;\n}\n\n.context-menu-submenu:after {\n content: ">";\n color: #666;\n position: absolute;\n top: 0;\n right: 3px;\n z-index: 1;\n}\n\n/* icons\n #protip:\n In case you want to use sprites for icons (which I would suggest you do) have a look at\n http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement\n .context-menu-item.icon:before {}\n */\n.context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }\n\n/* vertically align inside labels */\n.context-menu-input > label > * { vertical-align: top; }\n\n/* position checkboxes and radios as icons */\n.context-menu-input > label > input[type="checkbox"],\n.context-menu-input > label > input[type="radio"] {\n margin-left: -17px;\n}\n.context-menu-input > label > span {\n margin-left: 5px;\n}\n\n.context-menu-input > label,\n.context-menu-input > label > input[type="text"],\n.context-menu-input > label > textarea,\n.context-menu-input > label > select {\n display: block;\n width: 100%;\n\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n -ms-box-sizing: border-box;\n -o-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.context-menu-input > label > textarea {\n height: 100px;\n}\n.context-menu-item > .context-menu-list {\n display: none;\n /* re-positioned by js */\n right: -5px;\n top: 5px;\n}\n\n.context-menu-item.hover > .context-menu-list {\n display: block;\n}\n\n.context-menu-accesskey {\n text-decoration: underline;\n}\n',""])},
vendor: 370,150 bytes, line 1
1"./node_modules/css-loader/lib/css-base.js":function(h,y){h.exports=function(a){var v=[];return v.toString=function(){return this.map(function(s){var n=function c(a,v){var t=a[1]||"",s=a[3];if(!s)return t;if(v&&"function"==typeof btoa){var n=function d(a){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"}(s),r=s.sources.map(function(u){return"/*# sourceURL="+s.sourceRoot+u+" */"});return[t].concat(r).concat([n]).join("\n")}return[t].join("\n")}(s,a);return s[2]?"@media "+s[2]+"{"+n+"}":n}).join("")},v.i=function(t,s){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var u=this[r][0];"number"==typeof u&&(n[u]=!0)}for(r=0;r<t.length;r++){var l=t[r];("number"!=typeof l[0]||!n[l[0]])&&(s&&!l[2]?l[2]=s:s&&(l[2]="("+l[2]+") and ("+s+")"),v.push(l))}},v}},"./node_modules/raw-loader/index.js!./src/lib/Class.exec.js":function(h,y){h.exports='/* \n * Simple JavaScript Inheritance \n * By John Resig http://ejohn.org/ \n * MIT Licensed. \n * \n ****************************************************** \n * Example Usage \n ****************************************************** \n var Person = Class.extend({ \n init: function(isDancing){ \n this.dancing = isDancing; \n }, \n dance: function(){ \n return this.dancing; \n } \n}); \n\nvar Ninja = Person.extend({ \n init: function(){ \n this._super( false ); \n }, \n dance: function(){ \n // Call the inherited version of dance() \n return this._super(); \n }, \n swingSword: function(){ \n return true; \n } \n}); \n\nvar p = new Person(true); \np.dance(); // => true \n\nvar n = new Ninja(); \nn.dance(); // => false \nn.swingSword(); // => true \n\n// Should all be true \np instanceof Person && p instanceof Class && \nn instanceof Ninja && n instanceof Person && n instanceof Class \n\n ****************************************************** \n */ \n \n// Inspired by base2 and Prototype \n(function(){ \n var fnTest = /xyz/.test(function(){xyz;}) ? /\\b_super\\b/ : /.*/; \n\n // The base Class implementation (does nothing) \n this.Class = function(){}; \n \n\n // Create a new Class that inherits from this class \n Class.extend = function(prop) { \n var _super = this.prototype; \n \n // Instantiate a base class (but only create the instance, \n // don\'t run the init constructor) \n initializing = true; \n var prototype = new this(); \n initializing = false; \n \n \n // Copy the properties over onto the new prototype \n for (var name in prop) { \n // Check if we\'re overwriting an existing function \n prototype[name] = typeof prop[name] == "function" && \n typeof _super[name] == "function" && fnTest.test(prop[name]) ? \n (function(name, fn){ \n return function() { \n var tmp = this._super; \n \n // Add a new ._super() method that is the same method \n // but on the super-class \n this._super = _super[name]; \n \n // The method only need to be bound temporarily, so we \n // remove it when we\'re done executing \n var ret = fn.apply(this, arguments); \n this._super = tmp; \n \n return ret; \n }; \n })(name, prop[name]) : \n prop[name]; \n } \n \n // The dummy class constructor \n function Class() { \n // All construction is actually done in the init method \n if ( !initializing && this.init ) \n this.init.apply(this, arguments); \n } \n \n // Populate our constructed prototype object \n Class.prototype = prototype; \n \n // Enforce the constructor to be what we expect \n Class.prototype.constructor = Class; \n\n // And make this class extendable \n Class.extend = arguments.callee; \n \n // EXTENSION BY Draw2D.org to inject methods into an existing class to provide plugins or \n // bugfixes for further releases \n // \n Class.inject = function (prop) { \n var proto = this.prototype; \n var parent = {}; \n for (var name in prop) { \n if (typeof (prop[name]) == "function" && typeof (proto[name]) == "function" && fnTest.test(prop[name])) { \n parent[name] = proto[name]; \n proto[name] = (function (name, fn) { \n return function () { \n var tmp = this.parent; \n this.parent = parent[name]; \n var ret = fn.apply(this, arguments); \n this.parent = tmp; \n return ret; \n }; \n })(name, prop[name]); \n } else { \n proto[name] = prop[name]; \n } \n } \n }; \n \n return Class; \n }; \n})();\n \n'},"./node_modules/raw-loader/index.js!./src/lib/pathfinding.exec.js":function(h,y){h.exports='var PF=function(){var e=function(t,n){var r=e.resolve(t,n||"/"),i=e.modules[r];if(!i)throw new Error("Failed to resolve module "+t+", tried "+r);var s=i._cached?i._cached:i();return s};return e.paths=[],e.modules={},e.extensions=[".js",".coffee"],e._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},e.resolve=function(){return function(t,n){function u(t){if(e.modules[t])return t;for(var n=0;n<e.extensions.length;n++){var r=e.extensions[n];if(e.modules[t+r])return t+r}}function a(t){t=t.replace(/\\/+$/,"");var n=t+"/package.json";if(e.modules[n]){var i=e.modules[n](),s=i.browserify;if(typeof s=="object"&&s.main){var o=u(r.resolve(t,s.main));if(o)return o}else if(typeof s=="string"){var o=u(r.resolve(t,s));if(o)return o}else if(i.main){var o=u(r.resolve(t,i.main));if(o)return o}}return u(t+"/index")}function f(e,t){var n=l(t);for(var r=0;r<n.length;r++){var i=n[r],s=u(i+"/"+e);if(s)return s;var o=a(i+"/"+e);if(o)return o}var s=u(e);if(s)return s}function l(e){var t;e==="/"?t=[""]:t=r.normalize(e).split("/");var n=[];for(var i=t.length-1;i>=0;i--){if(t[i]==="node_modules")continue;var s=t.slice(0,i+1).join("/")+"/node_modules";n.push(s)}return n}n||(n="/");if(e._core[t])return t;var r=e.modules.path();n=r.resolve("/",n);var i=n||"/";if(t.match(/^(?:\\.\\.?\\/|\\/)/)){var s=u(r.resolve(i,t))||a(r.resolve(i,t));if(s)return s}var o=f(t,i);if(o)return o;throw new Error("Cannot find module \'"+t+"\'")}}(),e.alias=function(t,n){var r=e.modules.path(),i=null;try{i=e.resolve(t+"/package.json","/")}catch(s){i=e.resolve(t,"/")}var o=r.dirname(i),u=(Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t})(e.modules);for(var a=0;a<u.length;a++){var f=u[a];if(f.slice(0,o.length+1)===o+"/"){var l=f.slice(o.length);e.modules[n+l]=e.modules[o+l]}else f===o&&(e.modules[n]=e.modules[o])}},e.define=function(t,n){var r=e._core[t]?"":e.modules.path().dirname(t),i=function(t){return e(t,r)};i.resolve=function(t){return e.resolve(t,r)},i.modules=e.modules,i.define=e.define;var s={exports:{}};e.modules[t]=function(){return e.modules[t]._cached=s.exports,n.call(s.exports,i,s,s.exports,r,t),e.modules[t]._cached=s.exports,s.exports}},typeof process=="undefined"&&(process={}),process.nextTick||(process.nextTick=function(){var e=[],t=typeof window!="undefined"&&window.postMessage&&window.addEventListener;return t&&window.addEventListener("message",function(t){if(t.source===window&&t.data==="browserify-tick"){t.stopPropagation();if(e.length>0){var n=e.shift();n()}}},!0),function(n){t?(e.push(n),window.postMessage("browserify-tick","*")):setTimeout(n,0)}}()),process.title||(process.title="browser"),process.binding||(process.binding=function(t){if(t==="evals")return e("vm");throw new Error("No such module")}),process.cwd||(process.cwd=function(){return"."}),process.env||(process.env={}),process.argv||(process.argv=[]),e.define("path",function(e,t,n,r,i){function s(e,t){var n=[];for(var r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}function o(e,t){var n=0;for(var r=e.length;r>=0;r--){var i=e[r];i=="."?e.splice(r,1):i===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var u=/^(.+\\/(?!$)|\\/)?((?:.+?)?(\\.[^.]*)?)$/;n.resolve=function(){var e="",t=!1;for(var n=arguments.length;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(typeof r!="string"||!r)continue;e=r+"/"+e,t=r.charAt(0)==="/"}return e=o(s(e.split("/"),function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."},n.normalize=function(e){var t=e.charAt(0)==="/",n=e.slice(-1)==="/";return e=o(s(e.split("/"),function(e){return!!e}),!t).join("/"),!e&&!t&&(e="."),e&&n&&(e+="/"),(t?"/":"")+e},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(s(e,function(e,t){return e&&typeof e=="string"}).join("/"))},n.dirname=function(e){var t=u.exec(e)[1]||"",n=!1;return t?t.length===1||n&&t.length<=3&&t.charAt(1)===":"?t:t.substring(0,t.length-1):"."},n.basename=function(e,t){var n=u.exec(e)[2]||"";return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return u.exec(e)[3]||""}}),e.define("/core/Node.js",function(e,t,n,r,i){function s(e,t,n){this.x=e,this.y=t,this.walkable=n===undefined?!0:n}t.exports=s}),e.define("/core/Grid.js",function(e,t,n,r,i){function o(e,t,n){this.width=e,this.height=t,this.nodes=this._buildNodes(e,t,n)}var s=e("./Node");o.prototype._buildNodes=function(e,t,n){var r,i,o=new Array(t),u;for(r=0;r<t;++r){o[r]=new Array(e);for(i=0;i<e;++i)o[r][i]=new s(i,r)}if(n===undefined)return o;if(n.length!==t||n[0].length!==e)throw new Error("Matrix size does not fit");for(r=0;r<t;++r)for(i=0;i<e;++i)n[r][i]&&(o[r][i].walkable=!1);return o},o.prototype.getNodeAt=function(e,t){return this.nodes[t][e]},o.prototype.isWalkableAt=function(e,t){return this.isInside(e,t)&&this.nodes[t][e].walkable},o.prototype.isInside=function(e,t){return e>=0&&e<this.width&&t>=0&&t<this.height},o.prototype.setWalkableAt=function(e,t,n){this.nodes[t][e].walkable=n},o.prototype.getNeighbors=function(e,t,n){var r=e.x,i=e.y,s=[],o=!1,u=!1,a=!1,f=!1,l=!1,c=!1,h=!1,p=!1,d=this.nodes;return this.isWalkableAt(r,i-1)&&(s.push(d[i-1][r]),o=!0),this.isWalkableAt(r+1,i)&&(s.push(d[i][r+1]),a=!0),this.isWalkableAt(r,i+1)&&(s.push(d[i+1][r]),l=!0),this.isWalkableAt(r-1,i)&&(s.push(d[i][r-1]),h=!0),t?(n?(u=h&&o,f=o&&a,c=a&&l,p=l&&h):(u=h||o,f=o||a,c=a||l,p=l||h),u&&this.isWalkableAt(r-1,i-1)&&s.push(d[i-1][r-1]),f&&this.isWalkableAt(r+1,i-1)&&s.push(d[i-1][r+1]),c&&this.isWalkableAt(r+1,i+1)&&s.push(d[i+1][r+1]),p&&this.isWalkableAt(r-1,i+1)&&s.push(d[i+1][r-1]),s):s},o.prototype.clone=function(){var e,t,n=this.width,r=this.height,i=this.nodes,u=new o(n,r),a=new Array(r),f;for(e=0;e<r;++e){a[e]=new Array(n);for(t=0;t<n;++t)a[e][t]=new s(t,e,i[e][t].walkable)}return u.nodes=a,u},t.exports=o}),e.define("/core/Heap.js",function(e,t,n,r,i){(function(){var e,n,r,i,s,o,u,a,f,l,c,h,p,d,v;r=Math.floor,l=Math.min,n=function(e,t){return e<t?-1:e>t?1:0},f=function(e,t,i,s,o){var u;i==null&&(i=0),o==null&&(o=n);if(i<0)throw new Error("lo must be non-negative");s==null&&(s=e.length);while(o(i,s)<0)u=r((i+s)/2),o(t,e[u])<0?s=u:i=u+1;return[].splice.apply(e,[i,i-i].concat(t)),t},o=function(e,t,r){return r==null&&(r=n),e.push(t),d(e,0,e.length-1,r)},s=function(e,t){var r,i;return t==null&&(t=n),r=e.pop(),e.length?(i=e[0],e[0]=r,v(e,0,t)):i=r,i},a=function(e,t,r){var i;return r==null&&(r=n),i=e[0],e[0]=t,v(e,0,r),i},u=function(e,t,r){var i;return r==null&&(r=n),e.length&&r(e[0],t)<0&&(i=[e[0],t],t=i[0],e[0]=i[1],v(e,0,r)),t},i=function(e,t){var i,s,o,u,a,f,l,c;t==null&&(t=n),f=function(){c=[];for(var t=0,n=r(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)c.push(t);return c}.apply(this).reverse(),l=[];for(s=0,u=f.length;s<u;s++)i=f[s],l.push(v(e,i,t));return l},p=function(e,t,r){var i;return r==null&&(r=n),i=e.indexOf(t),d(e,0,i,r),v(e,i,r)},c=function(e,t,r){var s,o,a,f,l;r==null&&(r=n),o=e.slice(0,t);if(!o.length)return o;i(o,r),l=e.slice(t);for(a=0,f=l.length;a<f;a++)s=l[a],u(o,s,r);return o.sort(r).reverse()},h=function(e,t,r){var o,u,a,c,h,p,d,v,m,g;r==null&&(r=n);if(t*10<=e.length){c=e.slice(0,t).sort(r);if(!c.length)return c;a=c[c.length-1],v=e.slice(t);for(h=0,d=v.length;h<d;h++)o=v[h],r(o,a)<0&&(f(c,o,0,null,r),c.pop(),a=c[c.length-1]);return c}i(e,r),g=[];for(u=p=0,m=l(t,e.length);0<=m?p<m:p>m;u=0<=m?++p:--p)g.push(s(e,r));return g},d=function(e,t,r,i){var s,o,u;i==null&&(i=n),s=e[r];while(r>t){u=r-1>>1,o=e[u];if(i(s,o)<0){e[r]=o,r=u;continue}break}return e[r]=s},v=function(e,t,r){var i,s,o,u,a;r==null&&(r=n),s=e.length,a=t,o=e[t],i=2*t+1;while(i<s)u=i+1,u<s&&!(r(e[i],e[u])<0)&&(i=u),e[t]=e[i],t=i,i=2*t+1;return e[t]=o,d(e,a,t,r)},e=function(){function e(e){this.cmp=e!=null?e:n,this.nodes=[]}return e.name="Heap",e.push=o,e.pop=s,e.replace=a,e.pushpop=u,e.heapify=i,e.nlargest=c,e.nsmallest=h,e.prototype.push=function(e){return o(this.nodes,e,this.cmp)},e.prototype.pop=function(){return s(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return this.nodes.indexOf(e)!==-1},e.prototype.replace=function(e){return a(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return u(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return i(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return p(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return this.nodes.length===0},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return t=new e,t.nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.remove=e.prototype.pop,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(typeof t!="undefined"&&t!==null?t.exports:void 0)?t.exports=e:window.Heap=e}).call(this)}),e.define("/core/Util.js",function(e,t,n,r,i){function s(e){var t=[[e.x,e.y]];while(e.parent)e=e.parent,t.push([e.x,e.y]);return t.reverse()}function o(e,t){var n=s(e),r=s(t);return n.concat(r.reverse())}function u(e){var t,n=0,r,i,s,o;for(t=1;t<e.length;++t)r=e[t-1],i=e[t],s=r[0]-i[0],o=r[1]-i[1],n+=Math.sqrt(s*s+o*o);return n}function a(e,t,n,r){var i=Math.abs,s=[],o,u,a,f,l,c;a=i(n-e),f=i(r-t),o=e<n?1:-1,u=t<r?1:-1,l=a-f;for(;;){s.push([e,t]);if(e===n&&t===r)break;c=2*l,c>-f&&(l-=f,e+=o),c<a&&(l+=a,t+=u)}return s}function f(e,t){var n=t.length,r=t[0][0],i=t[0][1],s=t[n-1][0],o=t[n-1][1],u,f,l,c,h,p,d,v,m,g,y,b,w;u=r,f=i,h=t[1][0],p=t[1][1],d=[[u,f]];for(v=2;v<n;++v){g=t[v],l=g[0],c=g[1],y=a(u,f,l,c),w=!1;for(m=1;m<y.length;++m){b=y[m];if(!e.isWalkableAt(b[0],b[1])){w=!0,d.push([h,p]),u=h,f=p;break}}w||(h=l,p=c)}return d.push([s,o]),d}n.backtrace=s,n.biBacktrace=o,n.pathLength=u,n.getLine=a,n.smoothenPath=f}),e.define("/core/Heuristic.js",function(e,t,n,r,i){t.exports={manhattan:function(e,t){return e+t},euclidean:function(e,t){return Math.sqrt(e*e+t*t)},chebyshev:function(e,t){return Math.max(e,t)}}}),e.define("/finders/AStarFinder.js",function(e,t,n,r,i){function a(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.heuristic=e.heuristic||u.manhattan}var s=e("../core/Heap"),o=e("../core/Util"),u=e("../core/Heuristic");a.prototype.findPath=function(e,t,n,r,i){var u=new s(function(e,t){return e.f-t.f}),a=i.getNodeAt(e,t),f=i.getNodeAt(n,r),l=this.heuristic,c=this.allowDiagonal,h=this.dontCrossCorners,p=Math.abs,d=Math.SQRT2,v,m,g,y,b,w,E,S;a.g=0,a.f=0,u.push(a),a.opened=!0;while(!u.empty()){v=u.pop(),v.closed=!0;if(v===f)return o.backtrace(f);m=i.getNeighbors(v,c,h);for(y=0,b=m.length;y<b;++y){g=m[y];if(g.closed)continue;w=g.x,E=g.y,S=v.g+(w-v.x===0||E-v.y===0?1:d);if(!g.opened||S<g.g)g.g=S,g.h=g.h||l(p(w-n),p(E-r)),g.f=g.g+g.h,g.parent=v,g.opened?u.updateItem(g):(u.push(g),g.opened=!0)}}return[]},t.exports=a}),e.define("/finders/BestFirstFinder.js",function(e,t,n,r,i){function o(e){s.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return t(e,n)*1e6}}var s=e("./AStarFinder");o.prototype=new s,o.prototype.constructor=o,t.exports=o}),e.define("/finders/BreadthFirstFinder.js",function(e,t,n,r,i){function o(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners}var s=e("../core/Util");o.prototype.findPath=function(e,t,n,r,i){var o=[],u=this.allowDiagonal,a=this.dontCrossCorners,f=i.getNodeAt(e,t),l=i.getNodeAt(n,r),c,h,p,d,v;o.push(f),f.opened=!0;while(o.length){p=o.shift(),p.closed=!0;if(p===l)return s.backtrace(l);c=i.getNeighbors(p,u,a);for(d=0,v=c.length;d<v;++d){h=c[d];if(h.closed||h.opened)continue;o.push(h),h.opened=!0,h.parent=p}}return[]},t.exports=o}),e.define("/finders/DijkstraFinder.js",function(e,t,n,r,i){function o(e){s.call(this,e),this.heuristic=function(e,t){return 0}}var s=e("./AStarFinder");o.prototype=new s,o.prototype.constructor=o,t.exports=o}),e.define("/finders/BiAStarFinder.js",function(e,t,n,r,i){function a(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.heuristic=e.heuristic||u.manhattan}var s=e("../core/Heap"),o=e("../core/Util"),u=e("../core/Heuristic");a.prototype.findPath=function(e,t,n,r,i){var u=function(e,t){return e.f-t.f},a=new s(u),f=new s(u),l=i.getNodeAt(e,t),c=i.getNodeAt(n,r),h=this.heuristic,p=this.allowDiagonal,d=this.dontCrossCorners,v=Math.abs,m=Math.SQRT2,g,y,b,w,E,S,x,T,N=1,C=2;l.g=0,l.f=0,a.push(l),l.opened=N,c.g=0,c.f=0,f.push(c),c.opened=C;while(!a.empty()&&!f.empty()){g=a.pop(),g.closed=!0,y=i.getNeighbors(g,p,d);for(w=0,E=y.length;w<E;++w){b=y[w];if(b.closed)continue;if(b.opened===C)return o.biBacktrace(g,b);S=b.x,x=b.y,T=g.g+(S-g.x===0||x-g.y===0?1:m);if(!b.opened||T<b.g)b.g=T,b.h=b.h||h(v(S-n),v(x-r)),b.f=b.g+b.h,b.parent=g,b.opened?a.updateItem(b):(a.push(b),b.opened=N)}g=f.pop(),g.closed=!0,y=i.getNeighbors(g,p,d);for(w=0,E=y.length;w<E;++w){b=y[w];if(b.closed)continue;if(b.opened===N)return o.biBacktrace(b,g);S=b.x,x=b.y,T=g.g+(S-g.x===0||x-g.y===0?1:m);if(!b.opened||T<b.g)b.g=T,b.h=b.h||h(v(S-e),v(x-t)),b.f=b.g+b.h,b.parent=g,b.opened?f.updateItem(b):(f.push(b),b.opened=C)}}return[]},t.exports=a}),e.define("/finders/BiBestFirstFinder.js",function(e,t,n,r,i){function o(e){s.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return t(e,n)*1e6}}var s=e("./BiAStarFinder");o.prototype=new s,o.prototype.constructor=o,t.exports=o}),e.define("/finders/BiBreadthFirstFinder.js",function(e,t,n,r,i){function o(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners}var s=e("../core/Util");o.prototype.findPath=function(e,t,n,r,i){var o=i.getNodeAt(e,t),u=i.getNodeAt(n,r),a=[],f=[],l,c,h,p=this.allowDiagonal,d=this.dontCrossCorners,v=0,m=1,g,y;a.push(o),o.opened=!0,o.by=v,f.push(u),u.opened=!0,u.by=m;while(a.length&&f.length){h=a.shift(),h.closed=!0,l=i.getNeighbors(h,p,d);for(g=0,y=l.length;g<y;++g){c=l[g];if(c.closed)continue;if(c.opened){if(c.by===m)return s.biBacktrace(h,c);continue}a.push(c),c.parent=h,c.opened=!0,c.by=v}h=f.shift(),h.closed=!0,l=i.getNeighbors(h,p,d);for(g=0,y=l.length;g<y;++g){c=l[g];if(c.closed)continue;if(c.opened){if(c.by===v)return s.biBacktrace(c,h);continue}f.push(c),c.parent=h,c.opened=!0,c.by=m}}return[]},t.exports=o}),e.define("/finders/BiDijkstraFinder.js",function(e,t,n,r,i){function o(e){s.call(this,e),this.heuristic=function(e,t){return 0}}var s=e("./BiAStarFinder");o.prototype=new s,o.prototype.constructor=o,t.exports=o}),e.define("/finders/JumpPointFinder.js",function(e,t,n,r,i){function a(e){e=e||{},this.heuristic=e.heuristic||u.manhattan}var s=e("../core/Heap"),o=e("../core/Util"),u=e("../core/Heuristic");a.prototype.findPath=function(e,t,n,r,i){var u=this.openList=new s(function(e,t){return e.f-t.f}),a=this.startNode=i.getNodeAt(e,t),f=this.endNode=i.getNodeAt(n,r),l;this.grid=i,a.g=0,a.f=0,u.push(a),a.opened=!0;while(!u.empty()){l=u.pop(),l.closed=!0;if(l===f)return o.backtrace(f);this._identifySuccessors(l)}return[]},a.prototype._identifySuccessors=function(e){var t=this.grid,n=this.heuristic,r=this.openList,i=this.endNode.x,s=this.endNode.y,o,a,f,l,c,h=e.x,p=e.y,d,v,m,g,y,b,w,E=Math.abs,S=Math.max;o=this._findNeighbors(e);for(l=0,c=o.length;l<c;++l){a=o[l],f=this._jump(a[0],a[1],h,p);if(f){d=f[0],v=f[1],w=t.getNodeAt(d,v);if(w.closed)continue;y=u.euclidean(E(d-h),E(v-p)),b=e.g+y;if(!w.opened||b<w.g)w.g=b,w.h=w.h||n(E(d-i),E(v-s)),w.f=w.g+w.h,w.parent=e,w.opened?r.updateItem(w):(r.push(w),w.opened=!0)}}},a.prototype._jump=function(e,t,n,r){var i=this.grid,s=e-n,o=t-r,u,a;if(!i.isWalkableAt(e,t))return null;if(i.getNodeAt(e,t)===this.endNode)return[e,t];if(s!==0&&o!==0){if(i.isWalkableAt(e-s,t+o)&&!i.isWalkableAt(e-s,t)||i.isWalkableAt(e+s,t-o)&&!i.isWalkableAt(e,t-o))return[e,t]}else if(s!==0){if(i.isWalkableAt(e+s,t+1)&&!i.isWalkableAt(e,t+1)||i.isWalkableAt(e+s,t-1)&&!i.isWalkableAt(e,t-1))return[e,t]}else if(i.isWalkableAt(e+1,t+o)&&!i.isWalkableAt(e+1,t)||i.isWalkableAt(e-1,t+o)&&!i.isWalkableAt(e-1,t))return[e,t];if(s!==0&&o!==0){u=this._jump(e+s,t,e,t),a=this._jump(e,t+o,e,t);if(u||a)return[e,t]}return i.isWalkableAt(e+s,t)||i.isWalkableAt(e,t+o)?this._jump(e+s,t+o,e,t):null},a.prototype._findNeighbors=function(e){var t=e.parent,n=e.x,r=e.y,i=this.grid,s,o,u,a,f,l,c=[],h,p,d,v;if(t)s=t.x,o=t.y,f=(n-s)/Math.max(Math.abs(n-s),1),l=(r-o)/Math.max(Math.abs(r-o),1),f!==0&&l!==0?(i.isWalkableAt(n,r+l)&&c.push([n,r+l]),i.isWalkableAt(n+f,r)&&c.push([n+f,r]),(i.isWalkableAt(n,r+l)||i.isWalkableAt(n+f,r))&&c.push([n+f,r+l]),!i.isWalkableAt(n-f,r)&&i.isWalkableAt(n,r+l)&&c.push([n-f,r+l]),!i.isWalkableAt(n,r-l)&&i.isWalkableAt(n+f,r)&&c.push([n+f,r-l])):f===0?i.isWalkableAt(n,r+l)&&(i.isWalkableAt(n,r+l)&&c.push([n,r+l]),i.isWalkableAt(n+1,r)||c.push([n+1,r+l]),i.isWalkableAt(n-1,r)||c.push([n-1,r+l])):i.isWalkableAt(n+f,r)&&(i.isWalkableAt(n+f,r)&&c.push([n+f,r]),i.isWalkableAt(n,r+1)||c.push([n+f,r+1]),i.isWalkableAt(n,r-1)||c.push([n+f,r-1]));else{h=i.getNeighbors(e,!0);for(d=0,v=h.length;d<v;++d)p=h[d],c.push([p.x,p.y])}return c},t.exports=a}),e.define("/PathFinding.js",function(e,t,n,r,i){t.exports={Node:e("./core/Node"),Grid:e("./core/Grid"),Heap:e("./core/Heap"),Util:e("./core/Util"),Heuristic:e("./core/Heuristic"),AStarFinder:e("./finders/AStarFinder"),BestFirstFinder:e("./finders/BestFirstFinder"),BreadthFirstFinder:e("./finders/BreadthFirstFinder"),DijkstraFinder:e("./finders/DijkstraFinder"),BiAStarFinder:e("./finders/BiAStarFinder"),BiBestFirstFinder:e("./finders/BiBestFirstFinder"),BiBreadthFirstFinder:e("./finders/BiBreadthFirstFinder"),BiDijkstraFinder:e("./finders/BiDijkstraFinder"),JumpPointFinder:e("./finders/JumpPointFinder")}}),e("/PathFinding.js"),e("/PathFinding")}()'},"./node_modules/raw-loader/index.js!./src/lib/raphael.exec.js":function(h,y){h.exports='\n\n// \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \\\\// \u2502 Rapha\xebl 2.1.0 - JavaScript Vector Library \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 Copyright \xa9 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) \u2502 \\\\\n// \u2502 Copyright \xa9 2008-2012 Sencha Labs (http://sencha.com) \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 Licensed under the MIT (http://raphaeljs.com/license.html) license.\u2502 \\\\\n// \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \\\\\n\n// \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \\\\\n// \u2502 Eve 0.3.4 - JavaScript Events Library \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 Copyright (c) 2008-2011 Dmitry Baranovskiy (http://dmitry.baranovskiy.com/) \u2502 \\\\\n// \u2502 Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. \u2502 \\\\\n// \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \\\\\n\n// THIS FILES IS PATCHED BY FREEGROUP\n// you can\'t replace this file with a new version without migrate all changes\n// tagged with "FREEGROUP"\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an "AS IS" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \\\\\n// \u2502 Eve 0.4.2 - JavaScript Events Library \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 Author Dmitry Baranovskiy (http://dmitry.baranovskiy.com/) \u2502 \\\\\n// \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \\\\\n(function (glob, factory) {\n if (typeof define === "function" && define.amd) {\n define("eve", function() {\n return factory();\n });\n } else if (typeof exports === "object") {\n module.exports = factory();\n } else {\n glob.eve = factory();\n }\n}(this, function(){\n var version = "0.4.2",\n has = "hasOwnProperty",\n separator = /[\\.\\/]/,\n wildcard = "*",\n fun = function () {},\n numsort = function (a, b) {\n return a - b;\n },\n current_event,\n stop,\n events = {n: {}},\n /*\\\n * eve\n [ method ]\n\n * Fires event with given `name`, given scope and other parameters.\n\n > Arguments\n\n - name (string) name of the *event*, dot (`.`) or slash (`/`) separated\n - scope (object) context for the event handlers\n - varargs (...) the rest of arguments will be sent to event handlers\n\n = (object) array of returned values from the listeners\n \\*/\n eve = function (name, scope) {\n name = String(name);\n var e = events,\n oldstop = stop,\n args = Array.prototype.slice.call(arguments, 2),\n listeners = eve.listeners(name),\n z = 0,\n f = false,\n l,\n indexed = [],\n queue = {},\n out = [],\n ce = current_event,\n errors = [];\n current_event = name;\n stop = 0;\n for (var i = 0, ii = listeners.length; i < ii; i++) if ("zIndex" in listeners[i]) {\n indexed.push(listeners[i].zIndex);\n if (listeners[i].zIndex < 0) {\n queue[listeners[i].zIndex] = listeners[i];\n }\n }\n indexed.sort(numsort);\n while (indexed[z] < 0) {\n l = queue[indexed[z++]];\n out.push(l.apply(scope, args));\n if (stop) {\n stop = oldstop;\n return out;\n }\n }\n for (i = 0; i < ii; i++) {\n l = listeners[i];\n if ("zIndex" in l) {\n if (l.zIndex == indexed[z]) {\n out.push(l.apply(scope, args));\n if (stop) {\n break;\n }\n do {\n z++;\n l = queue[indexed[z]];\n l && out.push(l.apply(scope, args));\n if (stop) {\n break;\n }\n } while (l)\n } else {\n queue[l.zIndex] = l;\n }\n } else {\n out.push(l.apply(scope, args));\n if (stop) {\n break;\n }\n }\n }\n stop = oldstop;\n current_event = ce;\n return out.length ? out : null;\n };\n // Undocumented. Debug only.\n eve._events = events;\n /*\\\n * eve.listeners\n [ method ]\n\n * Internal method which gives you array of all event handlers that will be triggered by the given `name`.\n\n > Arguments\n\n - name (string) name of the event, dot (`.`) or slash (`/`) separated\n\n = (array) array of event handlers\n \\*/\n eve.listeners = function (name) {\n var names = name.split(separator),\n e = events,\n item,\n items,\n k,\n i,\n ii,\n j,\n jj,\n nes,\n es = [e],\n out = [];\n for (i = 0, ii = names.length; i < ii; i++) {\n nes = [];\n for (j = 0, jj = es.length; j < jj; j++) {\n e = es[j].n;\n items = [e[names[i]], e[wildcard]];\n k = 2;\n while (k--) {\n item = items[k];\n if (item) {\n nes.push(item);\n out = out.concat(item.f || []);\n }\n }\n }\n es = nes;\n }\n return out;\n };\n\n /*\\\n * eve.on\n [ method ]\n **\n * Binds given event handler with a given name. You can use wildcards \u201c`*`\u201d for the names:\n | eve.on("*.under.*", f);\n | eve("mouse.under.floor"); // triggers f\n * Use @eve to trigger the listener.\n **\n > Arguments\n **\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\n - f (function) event handler function\n **\n = (function) returned function accepts a single numeric parameter that represents z-index of the handler. It is an optional feature and only used when you need to ensure that some subset of handlers will be invoked in a given order, despite of the order of assignment.\n > Example:\n | eve.on("mouse", eatIt)(2);\n | eve.on("mouse", scream);\n | eve.on("mouse", catchIt)(1);\n * This will ensure that `catchIt()` function will be called before `eatIt()`.\n *\n * If you want to put your handler before non-indexed handlers, specify a negative value.\n * Note: I assume most of the time you don\u2019t need to worry about z-index, but it\u2019s nice to have this feature \u201cjust in case\u201d.\n \\*/\n eve.on = function (name, f) {\n name = String(name);\n if (typeof f != "function") {\n return function () {};\n }\n var names = name.split(separator),\n e = events;\n for (var i = 0, ii = names.length; i < ii; i++) {\n e = e.n;\n e = e.hasOwnProperty(names[i]) && e[names[i]] || (e[names[i]] = {n: {}});\n }\n e.f = e.f || [];\n for (i = 0, ii = e.f.length; i < ii; i++) if (e.f[i] == f) {\n return fun;\n }\n e.f.push(f);\n return function (zIndex) {\n if (+zIndex == +zIndex) {\n f.zIndex = +zIndex;\n }\n };\n };\n /*\\\n * eve.f\n [ method ]\n **\n * Returns function that will fire given event with optional arguments.\n * Arguments that will be passed to the result function will be also\n * concated to the list of final arguments.\n | el.onclick = eve.f("click", 1, 2);\n | eve.on("click", function (a, b, c) {\n | console.log(a, b, c); // 1, 2, [event object]\n | });\n > Arguments\n - event (string) event name\n - varargs (\u2026) and any other arguments\n = (function) possible event handler function\n \\*/\n eve.f = function (event) {\n var attrs = [].slice.call(arguments, 1);\n return function () {\n eve.apply(null, [event, null].concat(attrs).concat([].slice.call(arguments, 0)));\n };\n };\n /*\\\n * eve.stop\n [ method ]\n **\n * Is used inside an event handler to stop the event, preventing any subsequent listeners from firing.\n \\*/\n eve.stop = function () {\n stop = 1;\n };\n /*\\\n * eve.nt\n [ method ]\n **\n * Could be used inside event handler to figure out actual name of the event.\n **\n > Arguments\n **\n - subname (string) #optional subname of the event\n **\n = (string) name of the event, if `subname` is not specified\n * or\n = (boolean) `true`, if current event\u2019s name contains `subname`\n \\*/\n eve.nt = function (subname) {\n if (subname) {\n return new RegExp("(?:\\\\.|\\\\/|^)" + subname + "(?:\\\\.|\\\\/|$)").test(current_event);\n }\n return current_event;\n };\n /*\\\n * eve.nts\n [ method ]\n **\n * Could be used inside event handler to figure out actual name of the event.\n **\n **\n = (array) names of the event\n \\*/\n eve.nts = function () {\n return current_event.split(separator);\n };\n /*\\\n * eve.off\n [ method ]\n **\n * Removes given function from the list of event listeners assigned to given name.\n * If no arguments specified all the events will be cleared.\n **\n > Arguments\n **\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\n - f (function) event handler function\n \\*/\n /*\\\n * eve.unbind\n [ method ]\n **\n * See @eve.off\n \\*/\n eve.off = eve.unbind = function (name, f) {\n if (!name) {\n eve._events = events = {n: {}};\n return;\n }\n var names = name.split(separator),\n e,\n key,\n splice,\n i, ii, j, jj,\n cur = [events];\n for (i = 0, ii = names.length; i < ii; i++) {\n for (j = 0; j < cur.length; j += splice.length - 2) {\n splice = [j, 1];\n e = cur[j].n;\n if (names[i] != wildcard) {\n if (e[names[i]]) {\n splice.push(e[names[i]]);\n }\n } else {\n for (key in e) if (e[has](key)) {\n splice.push(e[key]);\n }\n }\n cur.splice.apply(cur, splice);\n }\n }\n for (i = 0, ii = cur.length; i < ii; i++) {\n e = cur[i];\n while (e.n) {\n if (f) {\n if (e.f) {\n for (j = 0, jj = e.f.length; j < jj; j++) if (e.f[j] == f) {\n e.f.splice(j, 1);\n break;\n }\n !e.f.length && delete e.f;\n }\n for (key in e.n) if (e.n[has](key) && e.n[key].f) {\n var funcs = e.n[key].f;\n for (j = 0, jj = funcs.length; j < jj; j++) if (funcs[j] == f) {\n funcs.splice(j, 1);\n break;\n }\n !funcs.length && delete e.n[key].f;\n }\n } else {\n delete e.f;\n for (key in e.n) if (e.n[has](key) && e.n[key].f) {\n delete e.n[key].f;\n }\n }\n e = e.n;\n }\n }\n };\n /*\\\n * eve.once\n [ method ]\n **\n * Binds given event handler with a given name to only run once then unbind itself.\n | eve.once("login", f);\n | eve("login"); // triggers f\n | eve("login"); // no listeners\n * Use @eve to trigger the listener.\n **\n > Arguments\n **\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\n - f (function) event handler function\n **\n = (function) same return function as @eve.on\n \\*/\n eve.once = function (name, f) {\n var f2 = function () {\n eve.unbind(name, f2);\n return f.apply(this, arguments);\n };\n return eve.on(name, f2);\n };\n /*\\\n * eve.version\n [ property (string) ]\n **\n * Current version of the library.\n \\*/\n eve.version = version;\n eve.toString = function () {\n return "You are running Eve " + version;\n };\n\n return eve;\n}));\n\n// \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \\\\\n// \u2502 Rapha\xebl 2.1.4 - JavaScript Vector Library \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 Core Module \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 Licensed under the MIT (http://raphaeljs.com/license.html) license.\u2502 \\\\\n// \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \\\\\n\n(function (glob, factory) {\n if (typeof define === "function" && define.amd) {\n define("raphael.core", ["eve"], function(eve) {\n return factory(eve);\n });\n } else if (typeof exports === "object") {\n module.exports = factory(require("eve"));\n } else {\n glob.Raphael = factory(glob.eve);\n }\n}(this, function (eve) {\n /*\\\n * Raphael\n [ method ]\n **\n * Creates a canvas object on which to draw.\n * You must do this first, as all future calls to drawing methods\n * from this instance will be bound to this canvas.\n > Parameters\n **\n - container (HTMLElement|string) DOM element or its ID which is going to be a parent for drawing surface\n - width (number)\n - height (number)\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\n * or\n - x (number)\n - y (number)\n - width (number)\n - height (number)\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\n * or\n - all (array) (first 3 or 4 elements in the array are equal to [containerID, width, height] or [x, y, width, height]. The rest are element descriptions in format {type: type, <attributes>}). See @Paper.add.\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\n * or\n - onReadyCallback (function) function that is going to be called on DOM ready event. You can also subscribe to this event via Eve\u2019s \u201cDOMLoad\u201d event. In this case method returns `undefined`.\n = (object) @Paper\n > Usage\n | // Each of the following examples create a canvas\n | // that is 320px wide by 200px high.\n | // Canvas is created at the viewport\u2019s 10,50 coordinate.\n | var paper = Raphael(10, 50, 320, 200);\n | // Canvas is created at the top left corner of the #notepad element\n | // (or its top right corner in dir="rtl" elements)\n | var paper = Raphael(document.getElementById("notepad"), 320, 200);\n | // Same as above\n | var paper = Raphael("notepad", 320, 200);\n | // Image dump\n | var set = Raphael(["notepad", 320, 200, {\n | type: "rect",\n | x: 10,\n | y: 10,\n | width: 25,\n | height: 25,\n | stroke: "#f00"\n | }, {\n | type: "text",\n | x: 30,\n | y: 40,\n | text: "Dump"\n | }]);\n \\*/\n function R(first) {\n if (R.is(first, "function")) {\n return loaded ? first() : eve.on("raphael.DOMload", first);\n } else if (R.is(first, array)) {\n return R._engine.create[apply](R, first.splice(0, 3 + R.is(first[0], nu))).add(first);\n } else {\n var args = Array.prototype.slice.call(arguments, 0);\n if (R.is(args[args.length - 1], "function")) {\n var f = args.pop();\n return loaded ? f.call(R._engine.create[apply](R, args)) : eve.on("raphael.DOMload", function () {\n f.call(R._engine.create[apply](R, args));\n });\n } else {\n return R._engine.create[apply](R, arguments);\n }\n }\n }\n R.version = "2.1.4";\n R.eve = eve;\n var loaded,\n separator = /[, ]+/,\n elements = {circle: 1, rect: 1, path: 1, ellipse: 1, text: 1, image: 1},\n formatrg = /\\{(\\d+)\\}/g,\n proto = "prototype",\n has = "hasOwnProperty",\n g = {\n doc: document,\n win: window\n },\n oldRaphael = {\n was: Object.prototype[has].call(g.win, "Raphael"),\n is: g.win.Raphael\n },\n Paper = function () {\n /*\\\n * Paper.ca\n [ property (object) ]\n **\n * Shortcut for @Paper.customAttributes\n \\*/\n /*\\\n * Paper.customAttributes\n [ property (object) ]\n **\n * If you have a set of attributes that you would like to represent\n * as a function of some number you can do it easily with custom attributes:\n > Usage\n | paper.customAttributes.hue = function (num) {\n | num = num % 1;\n | return {fill: "hsb(" + num + ", 0.75, 1)"};\n | };\n | // Custom attribute \u201chue\u201d will change fill\n | // to be given hue with fixed saturation and brightness.\n | // Now you can use it like this:\n | var c = paper.circle(10, 10, 10).attr({hue: .45});\n | // or even like this:\n | c.animate({hue: 1}, 1e3);\n |\n | // You could also create custom attribute\n | // with multiple parameters:\n | paper.customAttributes.hsb = function (h, s, b) {\n | return {fill: "hsb(" + [h, s, b].join(",") + ")"};\n | };\n | c.attr({hsb: "0.5 .8 1"});\n | c.animate({hsb: [1, 0, 0.5]}, 1e3);\n \\*/\n this.ca = this.customAttributes = {};\n },\n paperproto,\n appendChild = "appendChild",\n apply = "apply",\n concat = "concat",\n supportsTouch = (\'ontouchstart\' in g.win) || g.win.DocumentTouch && g.doc instanceof DocumentTouch, //taken from Modernizr touch test\n E = "",\n S = " ",\n Str = String,\n split = "split",\n events = "click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[split](S),\n touchMap = {\n mousedown: "touchstart",\n mousemove: "touchmove",\n mouseup: "touchend"\n },\n lowerCase = Str.prototype.toLowerCase,\n math = Math,\n mmax = math.max,\n mmin = math.min,\n abs = math.abs,\n pow = math.pow,\n PI = math.PI,\n nu = "number",\n string = "string",\n array = "array",\n toString = "toString",\n fillString = "fill",\n objectToString = Object.prototype.toString,\n paper = {},\n push = "push",\n ISURL = R._ISURL = /^url\\([\'"]?(.+?)[\'"]?\\)$/i,\n colourRegExp = /^\\s*((#[a-f\\d]{6})|(#[a-f\\d]{3})|rgba?\\(\\s*([\\d\\.]+%?\\s*,\\s*[\\d\\.]+%?\\s*,\\s*[\\d\\.]+%?(?:\\s*,\\s*[\\d\\.]+%?)?)\\s*\\)|hsba?\\(\\s*([\\d\\.]+(?:deg|\\xb0|%)?\\s*,\\s*[\\d\\.]+%?\\s*,\\s*[\\d\\.]+(?:%?\\s*,\\s*[\\d\\.]+)?)%?\\s*\\)|hsla?\\(\\s*([\\d\\.]+(?:deg|\\xb0|%)?\\s*,\\s*[\\d\\.]+%?\\s*,\\s*[\\d\\.]+(?:%?\\s*,\\s*[\\d\\.]+)?)%?\\s*\\))\\s*$/i,\n isnan = {"NaN": 1, "Infinity": 1, "-Infinity": 1},\n bezierrg = /^(?:cubic-)?bezier\\(([^,]+),([^,]+),([^,]+),([^\\)]+)\\)/,\n round = math.round,\n setAttribute = "setAttribute",\n toFloat = parseFloat,\n toInt = parseInt,\n upperCase = Str.prototype.toUpperCase,\n availableAttrs = R._availableAttrs = {\n "arrow-end": "none",\n "arrow-start": "none",\n blur: 0,\n "clip-rect": "0 0 1e9 1e9",\n cursor: "default",\n cx: 0,\n cy: 0,\n fill: "#fff",\n "fill-opacity": 1,\n font: \'10px "Arial"\',\n "font-family": \'"Arial"\',\n "font-size": "10",\n "font-style": "normal",\n "font-weight": 400,\n gradient: 0,\n height: 0,\n href: "http://raphaeljs.com/",\n "letter-spacing": 0,\n opacity: 1,\n path: "M0,0",\n r: 0,\n rx: 0,\n ry: 0,\n src: "",\n stroke: "#000",\n "stroke-dasharray": "",\n "stroke-linecap": "butt",\n "stroke-linejoin": "butt",\n "stroke-miterlimit": 0,\n "stroke-opacity": 1,\n "stroke-width": 1,\n "stroke-scale": false, // FreeGroup: draw2d enhancement\n target: "_blank",\n "text-anchor": "middle",\n title: "Raphael",\n transform: "",\n width: 0,\n x: 0,\n y: 0\n },\n availableAnimAttrs = R._availableAnimAttrs = {\n blur: nu,\n "clip-rect": "csv",\n cx: nu,\n cy: nu,\n fill: "colour",\n "fill-opacity": nu,\n "font-size": nu,\n height: nu,\n opacity: nu,\n path: "path",\n r: nu,\n rx: nu,\n ry: nu,\n stroke: "colour",\n "stroke-opacity": nu,\n "stroke-width": nu,\n transform: "transform",\n width: nu,\n x: nu,\n y: nu\n },\n whitespace = /[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]/g,\n commaSpaces = /[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*,[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*/,\n hsrg = {hs: 1, rg: 1},\n p2s = /,?([achlmqrstvxz]),?/gi,\n pathCommand = /([achlmrqstvz])[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*,?[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*)+)/ig,\n tCommand = /([rstm])[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*,?[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*)+)/ig,\n pathValues = /(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*,?[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*/ig,\n radial_gradient = R._radial_gradient = /^r(?:\\(([^,]+?)[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*,[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*([^\\)]+?)\\))?/,\n eldata = {},\n sortByKey = function (a, b) {\n return a.key - b.key;\n },\n sortByNumber = function (a, b) {\n return toFloat(a) - toFloat(b);\n },\n fun = function () {},\n pipe = function (x) {\n return x;\n },\n rectPath = R._rectPath = function (x, y, w, h, r) {\n if (r) {\n return [["M", x + r, y], ["l", w - r * 2, 0], ["a", r, r, 0, 0, 1, r, r], ["l", 0, h - r * 2], ["a", r, r, 0, 0, 1, -r, r], ["l", r * 2 - w, 0], ["a", r, r, 0, 0, 1, -r, -r], ["l", 0, r * 2 - h], ["a", r, r, 0, 0, 1, r, -r], ["z"]];\n }\n return [["M", x, y], ["l", w, 0], ["l", 0, h], ["l", -w, 0], ["z"]];\n },\n ellipsePath = function (x, y, rx, ry) {\n if (ry == null) {\n ry = rx;\n }\n return [["M", x, y], ["m", 0, -ry], ["a", rx, ry, 0, 1, 1, 0, 2 * ry], ["a", rx, ry, 0, 1, 1, 0, -2 * ry], ["z"]];\n },\n getPath = R._getPath = {\n path: function (el) {\n return el.attr("path");\n },\n circle: function (el) {\n var a = el.attrs;\n return ellipsePath(a.cx, a.cy, a.r);\n },\n ellipse: function (el) {\n var a = el.attrs;\n return ellipsePath(a.cx, a.cy, a.rx, a.ry);\n },\n rect: function (el) {\n var a = el.attrs;\n return rectPath(a.x, a.y, a.width, a.height, a.r);\n },\n image: function (el) {\n var a = el.attrs;\n return rectPath(a.x, a.y, a.width, a.height);\n },\n text: function (el) {\n var bbox = el._getBBox();\n return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);\n },\n set : function(el) {\n var bbox = el._getBBox();\n return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);\n }\n },\n /*\\\n * Raphael.mapPath\n [ method ]\n **\n * Transform the path string with given matrix.\n > Parameters\n - path (string) path string\n - matrix (object) see @Matrix\n = (string) transformed path string\n \\*/\n mapPath = R.mapPath = function (path, matrix) {\n if (!matrix) {\n return path;\n }\n var x, y, i, j, ii, jj, pathi;\n path = path2curve(path);\n for (i = 0, ii = path.length; i < ii; i++) {\n pathi = path[i];\n for (j = 1, jj = pathi.length; j < jj; j += 2) {\n x = matrix.x(pathi[j], pathi[j + 1]);\n y = matrix.y(pathi[j], pathi[j + 1]);\n pathi[j] = x;\n pathi[j + 1] = y;\n }\n }\n return path;\n };\n\n R._g = g;\n /*\\\n * Raphael.type\n [ property (string) ]\n **\n * Can be \u201cSVG\u201d, \u201cVML\u201d or empty, depending on browser support.\n \\*/\n R.type = (g.win.SVGAngle || g.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") ? "SVG" : "VML");\n if (R.type == "VML") {\n var d = g.doc.createElement("div"),\n b;\n d.innerHTML = \'<v:shape adj="1"/>\';\n b = d.firstChild;\n b.style.behavior = "url(#default#VML)";\n if (!(b && typeof b.adj == "object")) {\n return (R.type = E);\n }\n d = null;\n }\n /*\\\n * Raphael.svg\n [ property (boolean) ]\n **\n * `true` if browser supports SVG.\n \\*/\n /*\\\n * Raphael.vml\n [ property (boolean) ]\n **\n * `true` if browser supports VML.\n \\*/\n R.svg = !(R.vml = R.type == "VML");\n R._Paper = Paper;\n /*\\\n * Raphael.fn\n [ property (object) ]\n **\n * You can add your own method to the canvas. For example if you want to draw a pie chart,\n * you can create your own pie chart function and ship it as a Rapha\xebl plugin. To do this\n * you need to extend the `Raphael.fn` object. You should modify the `fn` object before a\n * Rapha\xebl instance is created, otherwise it will take no effect. Please note that the\n * ability for namespaced plugins was removed in Raphael 2.0. It is up to the plugin to\n * ensure any namespacing ensures proper context.\n > Usage\n | Raphael.fn.arrow = function (x1, y1, x2, y2, size) {\n | return this.path( ... );\n | };\n | // or create namespace\n | Raphael.fn.mystuff = {\n | arrow: function () {\u2026},\n | star: function () {\u2026},\n | // etc\u2026\n | };\n | var paper = Raphael(10, 10, 630, 480);\n | // then use it\n | paper.arrow(10, 10, 30, 30, 5).attr({fill: "#f00"});\n | paper.mystuff.arrow();\n | paper.mystuff.star();\n \\*/\n R.fn = paperproto = Paper.prototype = R.prototype;\n R._id = 0;\n R._oid = 0;\n /*\\\n * Raphael.is\n [ method ]\n **\n * Handful of replacements for `typeof` operator.\n > Parameters\n - o (\u2026) any object or primitive\n - type (string) name of the type, i.e. \u201cstring\u201d, \u201cfunction\u201d, \u201cnumber\u201d, etc.\n = (boolean) is given value is of given type\n \\*/\n R.is = function (o, type) {\n type = lowerCase.call(type);\n if (type == "finite") {\n return !isnan[has](+o);\n }\n if (type == "array") {\n return o instanceof Array;\n }\n return (type == "null" && o === null) ||\n (type == typeof o && o !== null) ||\n (type == "object" && o === Object(o)) ||\n (type == "array" && Array.isArray && Array.isArray(o)) ||\n objectToString.call(o).slice(8, -1).toLowerCase() == type;\n };\n\n function clone(obj) {\n if (typeof obj == "function" || Object(obj) !== obj) {\n return obj;\n }\n var res = new obj.constructor;\n for (var key in obj) if (obj[has](key)) {\n res[key] = clone(obj[key]);\n }\n return res;\n }\n\n /*\\\n * Raphael.angle\n [ method ]\n **\n * Returns angle between two or three points\n > Parameters\n - x1 (number) x coord of first point\n - y1 (number) y coord of first point\n - x2 (number) x coord of second point\n - y2 (number) y coord of second point\n - x3 (number) #optional x coord of third point\n - y3 (number) #optional y coord of third point\n = (number) angle in degrees.\n \\*/\n R.angle = function (x1, y1, x2, y2, x3, y3) {\n if (x3 == null) {\n var x = x1 - x2,\n y = y1 - y2;\n if (!x && !y) {\n return 0;\n }\n return (180 + math.atan2(-y, -x) * 180 / PI + 360) % 360;\n } else {\n return R.angle(x1, y1, x3, y3) - R.angle(x2, y2, x3, y3);\n }\n };\n /*\\\n * Raphael.rad\n [ method ]\n **\n * Transform angle to radians\n > Parameters\n - deg (number) angle in degrees\n = (number) angle in radians.\n \\*/\n R.rad = function (deg) {\n return deg % 360 * PI / 180;\n };\n /*\\\n * Raphael.deg\n [ method ]\n **\n * Transform angle to degrees\n > Parameters\n - rad (number) angle in radians\n = (number) angle in degrees.\n \\*/\n R.deg = function (rad) {\n return Math.round ((rad * 180 / PI% 360)* 1000) / 1000;\n };\n /*\\\n * Raphael.snapTo\n [ method ]\n **\n * Snaps given value to given grid.\n > Parameters\n - values (array|number) given array of values or step of the grid\n - value (number) value to adjust\n - tolerance (number) #optional tolerance for snapping. Default is `10`.\n = (number) adjusted value.\n \\*/\n R.snapTo = function (values, value, tolerance) {\n tolerance = R.is(tolerance, "finite") ? tolerance : 10;\n if (R.is(values, array)) {\n var i = values.length;\n while (i--) if (abs(values[i] - value) <= tolerance) {\n return values[i];\n }\n } else {\n values = +values;\n var rem = value % values;\n if (rem < tolerance) {\n return value - rem;\n }\n if (rem > values - tolerance) {\n return value - rem + values;\n }\n }\n return value;\n };\n\n /*\\\n * Raphael.createUUID\n [ method ]\n **\n * Returns RFC4122, version 4 ID\n \\*/\n var createUUID = R.createUUID = (function (uuidRegEx, uuidReplacer) {\n return function () {\n return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(uuidRegEx, uuidReplacer).toUpperCase();\n };\n })(/[xy]/g, function (c) {\n var r = math.random() * 16 | 0,\n v = c == "x" ? r : (r & 3 | 8);\n return v.toString(16);\n });\n\n /*\\\n * Raphael.setWindow\n [ method ]\n **\n * Used when you need to draw in `<iframe>`. Switched window to the iframe one.\n > Parameters\n - newwin (window) new window object\n \\*/\n R.setWindow = function (newwin) {\n eve("raphael.setWindow", R, g.win, newwin);\n g.win = newwin;\n g.doc = g.win.document;\n if (R._engine.initWin) {\n R._engine.initWin(g.win);\n }\n };\n var toHex = function (color) {\n if (R.vml) {\n // http://dean.edwards.name/weblog/2009/10/convert-any-colour-value-to-hex-in-msie/\n var trim = /^\\s+|\\s+$/g;\n var bod;\n try {\n var docum = new ActiveXObject("htmlfile");\n docum.write("<body>");\n docum.close();\n bod = docum.body;\n } catch(e) {\n bod = createPopup().document.body;\n }\n var range = bod.createTextRange();\n toHex = cacher(function (color) {\n try {\n bod.style.color = Str(color).replace(trim, E);\n var value = range.queryCommandValue("ForeColor");\n value = ((value & 255) << 16) | (value & 65280) | ((value & 16711680) >>> 16);\n return "#" + ("000000" + value.toString(16)).slice(-6);\n } catch(e) {\n return "none";\n }\n });\n } else {\n var i = g.doc.createElement("i");\n i.title = "Rapha\\xebl Colour Picker";\n i.style.display = "none";\n g.doc.body.appendChild(i);\n toHex = cacher(function (color) {\n i.style.color = color;\n return g.doc.defaultView.getComputedStyle(i, E).getPropertyValue("color");\n });\n }\n return toHex(color);\n },\n hsbtoString = function () {\n return "hsb(" + [this.h, this.s, this.b] + ")";\n },\n hsltoString = function () {\n return "hsl(" + [this.h, this.s, this.l] + ")";\n },\n rgbtoString = function () {\n return this.hex;\n },\n prepareRGB = function (r, g, b) {\n if (g == null && R.is(r, "object") && "r" in r && "g" in r && "b" in r) {\n b = r.b;\n g = r.g;\n r = r.r;\n }\n if (g == null && R.is(r, string)) {\n var clr = R.getRGB(r);\n r = clr.r;\n g = clr.g;\n b = clr.b;\n }\n if (r > 1 || g > 1 || b > 1) {\n r /= 255;\n g /= 255;\n b /= 255;\n }\n\n return [r, g, b];\n },\n packageRGB = function (r, g, b, o) {\n r *= 255;\n g *= 255;\n b *= 255;\n var rgb = {\n r: r,\n g: g,\n b: b,\n hex: R.rgb(r, g, b),\n toString: rgbtoString\n };\n R.is(o, "finite") && (rgb.opacity = o);\n return rgb;\n };\n\n /*\\\n * Raphael.color\n [ method ]\n **\n * Parses the color string and returns object with all values for the given color.\n > Parameters\n - clr (string) color string in one of the supported formats (see @Raphael.getRGB)\n = (object) Combined RGB & HSB object in format:\n o {\n o r (number) red,\n o g (number) green,\n o b (number) blue,\n o hex (string) color in HTML/CSS format: #\u2022\u2022\u2022\u2022\u2022\u2022,\n o error (boolean) `true` if string can\u2019t be parsed,\n o h (number) hue,\n o s (number) saturation,\n o v (number) value (brightness),\n o l (number) lightness\n o }\n \\*/\n R.color = function (clr) {\n var rgb;\n if (R.is(clr, "object") && "h" in clr && "s" in clr && "b" in clr) {\n rgb = R.hsb2rgb(clr);\n clr.r = rgb.r;\n clr.g = rgb.g;\n clr.b = rgb.b;\n clr.hex = rgb.hex;\n } else if (R.is(clr, "object") && "h" in clr && "s" in clr && "l" in clr) {\n rgb = R.hsl2rgb(clr);\n clr.r = rgb.r;\n clr.g = rgb.g;\n clr.b = rgb.b;\n clr.hex = rgb.hex;\n } else {\n if (R.is(clr, "string")) {\n clr = R.getRGB(clr);\n }\n if (R.is(clr, "object") && "r" in clr && "g" in clr && "b" in clr) {\n rgb = R.rgb2hsl(clr);\n clr.h = rgb.h;\n clr.s = rgb.s;\n clr.l = rgb.l;\n rgb = R.rgb2hsb(clr);\n clr.v = rgb.b;\n } else {\n clr = {hex: "none"};\n clr.r = clr.g = clr.b = clr.h = clr.s = clr.v = clr.l = -1;\n }\n }\n clr.toString = rgbtoString;\n return clr;\n };\n /*\\\n * Raphael.hsb2rgb\n [ method ]\n **\n * Converts HSB values to RGB object.\n > Parameters\n - h (number) hue\n - s (number) saturation\n - v (number) value or brightness\n = (object) RGB object in format:\n o {\n o r (number) red,\n o g (number) green,\n o b (number) blue,\n o hex (string) color in HTML/CSS format: #\u2022\u2022\u2022\u2022\u2022\u2022\n o }\n \\*/\n R.hsb2rgb = function (h, s, v, o) {\n if (this.is(h, "object") && "h" in h && "s" in h && "b" in h) {\n v = h.b;\n s = h.s;\n o = h.o;\n h = h.h;\n }\n h *= 360;\n var R, G, B, X, C;\n h = (h % 360) / 60;\n C = v * s;\n X = C * (1 - abs(h % 2 - 1));\n R = G = B = v - C;\n\n h = ~~h;\n R += [C, X, 0, 0, X, C][h];\n G += [X, C, C, X, 0, 0][h];\n B += [0, 0, X, C, C, X][h];\n return packageRGB(R, G, B, o);\n };\n /*\\\n * Raphael.hsl2rgb\n [ method ]\n **\n * Converts HSL values to RGB object.\n > Parameters\n - h (number) hue\n - s (number) saturation\n - l (number) luminosity\n = (object) RGB object in format:\n o {\n o r (number) red,\n o g (number) green,\n o b (number) blue,\n o hex (string) color in HTML/CSS format: #\u2022\u2022\u2022\u2022\u2022\u2022\n o }\n \\*/\n R.hsl2rgb = function (h, s, l, o) {\n if (this.is(h, "object") && "h" in h && "s" in h && "l" in h) {\n l = h.l;\n s = h.s;\n h = h.h;\n }\n if (h > 1 || s > 1 || l > 1) {\n h /= 360;\n s /= 100;\n l /= 100;\n }\n h *= 360;\n var R, G, B, X, C;\n h = (h % 360) / 60;\n C = 2 * s * (l < .5 ? l : 1 - l);\n X = C * (1 - abs(h % 2 - 1));\n R = G = B = l - C / 2;\n\n h = ~~h;\n R += [C, X, 0, 0, X, C][h];\n G += [X, C, C, X, 0, 0][h];\n B += [0, 0, X, C, C, X][h];\n return packageRGB(R, G, B, o);\n };\n /*\\\n * Raphael.rgb2hsb\n [ method ]\n **\n * Converts RGB values to HSB object.\n > Parameters\n - r (number) red\n - g (number) green\n - b (number) blue\n = (object) HSB object in format:\n o {\n o h (number) hue\n o s (number) saturation\n o b (number) brightness\n o }\n \\*/\n R.rgb2hsb = function (r, g, b) {\n b = prepareRGB(r, g, b);\n r = b[0];\n g = b[1];\n b = b[2];\n\n var H, S, V, C;\n V = mmax(r, g, b);\n C = V - mmin(r, g, b);\n H = (C == 0 ? null :\n V == r ? (g - b) / C :\n V == g ? (b - r) / C + 2 :\n (r - g) / C + 4\n );\n H = ((H + 360) % 6) * 60 / 360;\n S = C == 0 ? 0 : C / V;\n return {h: H, s: S, b: V, toString: hsbtoString};\n };\n /*\\\n * Raphael.rgb2hsl\n [ method ]\n **\n * Converts RGB values to HSL object.\n > Parameters\n - r (number) red\n - g (number) green\n - b (number) blue\n = (object) HSL object in format:\n o {\n o h (number) hue\n o s (number) saturation\n o l (number) luminosity\n o }\n \\*/\n R.rgb2hsl = function (r, g, b) {\n b = prepareRGB(r, g, b);\n r = b[0];\n g = b[1];\n b = b[2];\n\n var H, S, L, M, m, C;\n M = mmax(r, g, b);\n m = mmin(r, g, b);\n C = M - m;\n H = (C == 0 ? null :\n M == r ? (g - b) / C :\n M == g ? (b - r) / C + 2 :\n (r - g) / C + 4);\n H = ((H + 360) % 6) * 60 / 360;\n L = (M + m) / 2;\n S = (C == 0 ? 0 :\n L < .5 ? C / (2 * L) :\n C / (2 - 2 * L));\n return {h: H, s: S, l: L, toString: hsltoString};\n };\n R._path2string = function () {\n return this.join(",").replace(p2s, "$1");\n };\n function repush(array, item) {\n for (var i = 0, ii = array.length; i < ii; i++) if (array[i] === item) {\n return array.push(array.splice(i, 1)[0]);\n }\n }\n function cacher(f, scope, postprocessor) {\n function newf() {\n var arg = Array.prototype.slice.call(arguments, 0),\n args = arg.join("\\u2400"),\n cache = newf.cache = newf.cache || {},\n count = newf.count = newf.count || [];\n if (cache[has](args)) {\n repush(count, args);\n return postprocessor ? postprocessor(cache[args]) : cache[args];\n }\n count.length >= 1e3 && delete cache[count.shift()];\n count.push(args);\n cache[args] = f[apply](scope, arg);\n return postprocessor ? postprocessor(cache[args]) : cache[args];\n }\n return newf;\n }\n\n var preload = R._preload = function (src, f) {\n var img = g.doc.createElement("img");\n img.style.cssText = "position:absolute;left:-9999em;top:-9999em";\n img.onload = function () {\n f.call(this);\n this.onload = null;\n g.doc.body.removeChild(this);\n };\n img.onerror = function () {\n g.doc.body.removeChild(this);\n };\n g.doc.body.appendChild(img);\n img.src = src;\n };\n\n function clrToString() {\n return this.hex;\n }\n\n /*\\\n * Raphael.getRGB\n [ method ]\n **\n * Parses colour string as RGB object\n > Parameters\n - colour (string) colour string in one of formats:\n # <ul>\n # <li>Colour name (\u201c<code>red</code>\u201d, \u201c<code>green</code>\u201d, \u201c<code>cornflowerblue</code>\u201d, etc)</li>\n # <li>#\u2022\u2022\u2022 \u2014 shortened HTML colour: (\u201c<code>#000</code>\u201d, \u201c<code>#fc0</code>\u201d, etc)</li>\n # <li>#\u2022\u2022\u2022\u2022\u2022\u2022 \u2014 full length HTML colour: (\u201c<code>#000000</code>\u201d, \u201c<code>#bd2300</code>\u201d)</li>\n # <li>rgb(\u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022) \u2014 red, green and blue channels\u2019 values: (\u201c<code>rgb(200, 100, 0)</code>\u201d)</li>\n # <li>rgb(\u2022\u2022\u2022%, \u2022\u2022\u2022%, \u2022\u2022\u2022%) \u2014 same as above, but in %: (\u201c<code>rgb(100%, 175%, 0%)</code>\u201d)</li>\n # <li>hsb(\u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022) \u2014 hue, saturation and brightness values: (\u201c<code>hsb(0.5, 0.25, 1)</code>\u201d)</li>\n # <li>hsb(\u2022\u2022\u2022%, \u2022\u2022\u2022%, \u2022\u2022\u2022%) \u2014 same as above, but in %</li>\n # <li>hsl(\u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022) \u2014 same as hsb</li>\n # <li>hsl(\u2022\u2022\u2022%, \u2022\u2022\u2022%, \u2022\u2022\u2022%) \u2014 same as hsb</li>\n # </ul>\n = (object) RGB object in format:\n o {\n o r (number) red,\n o g (number) green,\n o b (number) blue\n o hex (string) color in HTML/CSS format: #\u2022\u2022\u2022\u2022\u2022\u2022,\n o error (boolean) true if string can\u2019t be parsed\n o }\n \\*/\n R.getRGB = cacher(function (colour) {\n if (!colour || !!((colour = Str(colour)).indexOf("-") + 1)) {\n return {r: -1, g: -1, b: -1, hex: "none", error: 1, toString: clrToString};\n }\n if (colour == "none") {\n return {r: -1, g: -1, b: -1, hex: "none", toString: clrToString};\n }\n !(hsrg[has](colour.toLowerCase().substring(0, 2)) || colour.charAt() == "#") && (colour = toHex(colour));\n var res,\n red,\n green,\n blue,\n opacity,\n t,\n values,\n rgb = colour.match(colourRegExp);\n if (rgb) {\n if (rgb[2]) {\n blue = toInt(rgb[2].substring(5), 16);\n green = toInt(rgb[2].substring(3, 5), 16);\n red = toInt(rgb[2].substring(1, 3), 16);\n }\n if (rgb[3]) {\n blue = toInt((t = rgb[3].charAt(3)) + t, 16);\n green = toInt((t = rgb[3].charAt(2)) + t, 16);\n red = toInt((t = rgb[3].charAt(1)) + t, 16);\n }\n if (rgb[4]) {\n values = rgb[4][split](commaSpaces);\n red = toFloat(values[0]);\n values[0].slice(-1) == "%" && (red *= 2.55);\n green = toFloat(values[1]);\n values[1].slice(-1) == "%" && (green *= 2.55);\n blue = toFloat(values[2]);\n values[2].slice(-1) == "%" && (blue *= 2.55);\n rgb[1].toLowerCase().slice(0, 4) == "rgba" && (opacity = toFloat(values[3]));\n values[3] && values[3].slice(-1) == "%" && (opacity /= 100);\n }\n if (rgb[5]) {\n values = rgb[5][split](commaSpaces);\n red = toFloat(values[0]);\n values[0].slice(-1) == "%" && (red *= 2.55);\n green = toFloat(values[1]);\n values[1].slice(-1) == "%" && (green *= 2.55);\n blue = toFloat(values[2]);\n values[2].slice(-1) == "%" && (blue *= 2.55);\n (values[0].slice(-3) == "deg" || values[0].slice(-1) == "\\xb0") && (red /= 360);\n rgb[1].toLowerCase().slice(0, 4) == "hsba" && (opacity = toFloat(values[3]));\n values[3] && values[3].slice(-1) == "%" && (opacity /= 100);\n return R.hsb2rgb(red, green, blue, opacity);\n }\n if (rgb[6]) {\n values = rgb[6][split](commaSpaces);\n red = toFloat(values[0]);\n values[0].slice(-1) == "%" && (red *= 2.55);\n green = toFloat(values[1]);\n values[1].slice(-1) == "%" && (green *= 2.55);\n blue = toFloat(values[2]);\n values[2].slice(-1) == "%" && (blue *= 2.55);\n (values[0].slice(-3) == "deg" || values[0].slice(-1) == "\\xb0") && (red /= 360);\n rgb[1].toLowerCase().slice(0, 4) == "hsla" && (opacity = toFloat(values[3]));\n values[3] && values[3].slice(-1) == "%" && (opacity /= 100);\n return R.hsl2rgb(red, green, blue, opacity);\n }\n rgb = {r: red, g: green, b: blue, toString: clrToString};\n rgb.hex = "#" + (16777216 | blue | (green << 8) | (red << 16)).toString(16).slice(1);\n R.is(opacity, "finite") && (rgb.opacity = opacity);\n return rgb;\n }\n return {r: -1, g: -1, b: -1, hex: "none", error: 1, toString: clrToString};\n }, R);\n /*\\\n * Raphael.hsb\n [ method ]\n **\n * Converts HSB values to hex representation of the colour.\n > Parameters\n - h (number) hue\n - s (number) saturation\n - b (number) value or brightness\n = (string) hex representation of the colour.\n \\*/\n R.hsb = cacher(function (h, s, b) {\n return R.hsb2rgb(h, s, b).hex;\n });\n /*\\\n * Raphael.hsl\n [ method ]\n **\n * Converts HSL values to hex representation of the colour.\n > Parameters\n - h (number) hue\n - s (number) saturation\n - l (number) luminosity\n = (string) hex representation of the colour.\n \\*/\n R.hsl = cacher(function (h, s, l) {\n return R.hsl2rgb(h, s, l).hex;\n });\n /*\\\n * Raphael.rgb\n [ method ]\n **\n * Converts RGB values to hex representation of the colour.\n > Parameters\n - r (number) red\n - g (number) green\n - b (number) blue\n = (string) hex representation of the colour.\n \\*/\n R.rgb = cacher(function (r, g, b) {\n function round(x) { return (x + 0.5) | 0; }\n return "#" + (16777216 | round(b) | (round(g) << 8) | (round(r) << 16)).toString(16).slice(1);\n });\n /*\\\n * Raphael.getColor\n [ method ]\n **\n * On each call returns next colour in the spectrum. To reset it back to red call @Raphael.getColor.reset\n > Parameters\n - value (number) #optional brightness, default is `0.75`\n = (string) hex representation of the colour.\n \\*/\n R.getColor = function (value) {\n var start = this.getColor.start = this.getColor.start || {h: 0, s: 1, b: value || .75},\n rgb = this.hsb2rgb(start.h, start.s, start.b);\n start.h += .075;\n if (start.h > 1) {\n start.h = 0;\n start.s -= .2;\n start.s <= 0 && (this.getColor.start = {h: 0, s: 1, b: start.b});\n }\n return rgb.hex;\n };\n /*\\\n * Raphael.getColor.reset\n [ method ]\n **\n * Resets spectrum position for @Raphael.getColor back to red.\n \\*/\n R.getColor.reset = function () {\n delete this.start;\n };\n\n // http://schepers.cc/getting-to-the-point\n function catmullRom2bezier(crp, z) {\n var d = [];\n for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) {\n var p = [\n {x: +crp[i - 2], y: +crp[i - 1]},\n {x: +crp[i], y: +crp[i + 1]},\n {x: +crp[i + 2], y: +crp[i + 3]},\n {x: +crp[i + 4], y: +crp[i + 5]}\n ];\n if (z) {\n if (!i) {\n p[0] = {x: +crp[iLen - 2], y: +crp[iLen - 1]};\n } else if (iLen - 4 == i) {\n p[3] = {x: +crp[0], y: +crp[1]};\n } else if (iLen - 2 == i) {\n p[2] = {x: +crp[0], y: +crp[1]};\n p[3] = {x: +crp[2], y: +crp[3]};\n }\n } else {\n if (iLen - 4 == i) {\n p[3] = p[2];\n } else if (!i) {\n p[0] = {x: +crp[i], y: +crp[i + 1]};\n }\n }\n d.push(["C",\n (-p[0].x + 6 * p[1].x + p[2].x) / 6,\n (-p[0].y + 6 * p[1].y + p[2].y) / 6,\n (p[1].x + 6 * p[2].x - p[3].x) / 6,\n (p[1].y + 6*p[2].y - p[3].y) / 6,\n p[2].x,\n p[2].y\n ]);\n }\n\n return d;\n }\n /*\\\n * Raphael.parsePathString\n [ method ]\n **\n * Utility method\n **\n * Parses given path string into an array of arrays of path segments.\n > Parameters\n - pathString (string|array) path string or array of segments (in the last case it will be returned straight away)\n = (array) array of segments.\n \\*/\n R.parsePathString = function (pathString) {\n if (!pathString) {\n return null;\n }\n var pth = paths(pathString);\n if (pth.arr) {\n return pathClone(pth.arr);\n }\n\n var paramCounts = {a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0},\n data = [];\n if (R.is(pathString, array) && R.is(pathString[0], array)) { // rough assumption\n data = pathClone(pathString);\n }\n if (!data.length) {\n Str(pathString).replace(pathCommand, function (a, b, c) {\n var params = [],\n name = b.toLowerCase();\n c.replace(pathValues, function (a, b) {\n b && params.push(+b);\n });\n if (name == "m" && params.length > 2) {\n data.push([b][concat](params.splice(0, 2)));\n name = "l";\n b = b == "m" ? "l" : "L";\n }\n if (name == "r") {\n data.push([b][concat](params));\n } else while (params.length >= paramCounts[name]) {\n data.push([b][concat](params.splice(0, paramCounts[name])));\n if (!paramCounts[name]) {\n break;\n }\n }\n });\n }\n data.toString = R._path2string;\n pth.arr = pathClone(data);\n return data;\n };\n /*\\\n * Raphael.parseTransformString\n [ method ]\n **\n * Utility method\n **\n * Parses given path string into an array of transformations.\n > Parameters\n - TString (string|array) transform string or array of transformations (in the last case it will be returned straight away)\n = (array) array of transformations.\n \\*/\n R.parseTransformString = cacher(function (TString) {\n if (!TString) {\n return null;\n }\n var paramCounts = {r: 3, s: 4, t: 2, m: 6},\n data = [];\n if (R.is(TString, array) && R.is(TString[0], array)) { // rough assumption\n data = pathClone(TString);\n }\n if (!data.length) {\n Str(TString).replace(tCommand, function (a, b, c) {\n var params = [],\n name = lowerCase.call(b);\n c.replace(pathValues, function (a, b) {\n b && params.push(+b);\n });\n data.push([b][concat](params));\n });\n }\n data.toString = R._path2string;\n return data;\n });\n // PATHS\n var paths = function (ps) {\n var p = paths.ps = paths.ps || {};\n if (p[ps]) {\n p[ps].sleep = 100;\n } else {\n p[ps] = {\n sleep: 100\n };\n }\n setTimeout(function () {\n for (var key in p) if (p[has](key) && key != ps) {\n p[key].sleep--;\n !p[key].sleep && delete p[key];\n }\n });\n return p[ps];\n };\n /*\\\n * Raphael.findDotsAtSegment\n [ method ]\n **\n * Utility method\n **\n * Find dot coordinates on the given cubic bezier curve at the given t.\n > Parameters\n - p1x (number) x of the first point of the curve\n - p1y (number) y of the first point of the curve\n - c1x (number) x of the first anchor of the curve\n - c1y (number) y of the first anchor of the curve\n - c2x (number) x of the second anchor of the curve\n - c2y (number) y of the second anchor of the curve\n - p2x (number) x of the second point of the curve\n - p2y (number) y of the second point of the curve\n - t (number) position on the curve (0..1)\n = (object) point information in format:\n o {\n o x: (number) x coordinate of the point\n o y: (number) y coordinate of the point\n o m: {\n o x: (number) x coordinate of the left anchor\n o y: (number) y coordinate of the left anchor\n o }\n o n: {\n o x: (number) x coordinate of the right anchor\n o y: (number) y coordinate of the right anchor\n o }\n o start: {\n o x: (number) x coordinate of the start of the curve\n o y: (number) y coordinate of the start of the curve\n o }\n o end: {\n o x: (number) x coordinate of the end of the curve\n o y: (number) y coordinate of the end of the curve\n o }\n o alpha: (number) angle of the curve derivative at the point\n o }\n \\*/\n R.findDotsAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\n var t1 = 1 - t,\n t13 = pow(t1, 3),\n t12 = pow(t1, 2),\n t2 = t * t,\n t3 = t2 * t,\n x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x,\n y = t13 * p1y + t12 * 3 * t * c1y + t1 * 3 * t * t * c2y + t3 * p2y,\n mx = p1x + 2 * t * (c1x - p1x) + t2 * (c2x - 2 * c1x + p1x),\n my = p1y + 2 * t * (c1y - p1y) + t2 * (c2y - 2 * c1y + p1y),\n nx = c1x + 2 * t * (c2x - c1x) + t2 * (p2x - 2 * c2x + c1x),\n ny = c1y + 2 * t * (c2y - c1y) + t2 * (p2y - 2 * c2y + c1y),\n ax = t1 * p1x + t * c1x,\n ay = t1 * p1y + t * c1y,\n cx = t1 * c2x + t * p2x,\n cy = t1 * c2y + t * p2y,\n alpha = (90 - math.atan2(mx - nx, my - ny) * 180 / PI);\n (mx > nx || my < ny) && (alpha += 180);\n return {\n x: x,\n y: y,\n m: {x: mx, y: my},\n n: {x: nx, y: ny},\n start: {x: ax, y: ay},\n end: {x: cx, y: cy},\n alpha: alpha\n };\n };\n /*\\\n * Raphael.bezierBBox\n [ method ]\n **\n * Utility method\n **\n * Return bounding box of a given cubic bezier curve\n > Parameters\n - p1x (number) x of the first point of the curve\n - p1y (number) y of the first point of the curve\n - c1x (number) x of the first anchor of the curve\n - c1y (number) y of the first anchor of the curve\n - c2x (number) x of the second anchor of the curve\n - c2y (number) y of the second anchor of the curve\n - p2x (number) x of the second point of the curve\n - p2y (number) y of the second point of the curve\n * or\n - bez (array) array of six points for bezier curve\n = (object) point information in format:\n o {\n o min: {\n o x: (number) x coordinate of the left point\n o y: (number) y coordinate of the top point\n o }\n o max: {\n o x: (number) x coordinate of the right point\n o y: (number) y coordinate of the bottom point\n o }\n o }\n \\*/\n R.bezierBBox = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {\n if (!R.is(p1x, "array")) {\n p1x = [p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y];\n }\n var bbox = curveDim.apply(null, p1x);\n return {\n x: bbox.min.x,\n y: bbox.min.y,\n x2: bbox.max.x,\n y2: bbox.max.y,\n width: bbox.max.x - bbox.min.x,\n height: bbox.max.y - bbox.min.y\n };\n };\n /*\\\n * Raphael.isPointInsideBBox\n [ method ]\n **\n * Utility method\n **\n * Returns `true` if given point is inside bounding boxes.\n > Parameters\n - bbox (string) bounding box\n - x (string) x coordinate of the point\n - y (string) y coordinate of the point\n = (boolean) `true` if point inside\n \\*/\n R.isPointInsideBBox = function (bbox, x, y) {\n return x >= bbox.x && x <= bbox.x2 && y >= bbox.y && y <= bbox.y2;\n };\n /*\\\n * Raphael.isBBoxIntersect\n [ method ]\n **\n * Utility method\n **\n * Returns `true` if two bounding boxes intersect\n > Parameters\n - bbox1 (string) first bounding box\n - bbox2 (string) second bounding box\n = (boolean) `true` if they intersect\n \\*/\n R.isBBoxIntersect = function (bbox1, bbox2) {\n var i = R.isPointInsideBBox;\n return i(bbox2, bbox1.x, bbox1.y)\n || i(bbox2, bbox1.x2, bbox1.y)\n || i(bbox2, bbox1.x, bbox1.y2)\n || i(bbox2, bbox1.x2, bbox1.y2)\n || i(bbox1, bbox2.x, bbox2.y)\n || i(bbox1, bbox2.x2, bbox2.y)\n || i(bbox1, bbox2.x, bbox2.y2)\n || i(bbox1, bbox2.x2, bbox2.y2)\n || (bbox1.x < bbox2.x2 && bbox1.x > bbox2.x || bbox2.x < bbox1.x2 && bbox2.x > bbox1.x)\n && (bbox1.y < bbox2.y2 && bbox1.y > bbox2.y || bbox2.y < bbox1.y2 && bbox2.y > bbox1.y);\n };\n function base3(t, p1, p2, p3, p4) {\n var t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4,\n t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3;\n return t * t2 - 3 * p1 + 3 * p2;\n }\n function bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) {\n if (z == null) {\n z = 1;\n }\n z = z > 1 ? 1 : z < 0 ? 0 : z;\n var z2 = z / 2,\n n = 12,\n Tvalues = [-0.1252,0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],\n Cvalues = [0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],\n sum = 0;\n for (var i = 0; i < n; i++) {\n var ct = z2 * Tvalues[i] + z2,\n xbase = base3(ct, x1, x2, x3, x4),\n ybase = base3(ct, y1, y2, y3, y4),\n comb = xbase * xbase + ybase * ybase;\n sum += Cvalues[i] * math.sqrt(comb);\n }\n return z2 * sum;\n }\n function getTatLen(x1, y1, x2, y2, x3, y3, x4, y4, ll) {\n if (ll < 0 || bezlen(x1, y1, x2, y2, x3, y3, x4, y4) < ll) {\n return;\n }\n var t = 1,\n step = t / 2,\n t2 = t - step,\n l,\n e = .01;\n l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2);\n while (abs(l - ll) > e) {\n step /= 2;\n t2 += (l < ll ? 1 : -1) * step;\n l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2);\n }\n return t2;\n }\n function intersect(x1, y1, x2, y2, x3, y3, x4, y4) {\n if (\n mmax(x1, x2) < mmin(x3, x4) ||\n mmin(x1, x2) > mmax(x3, x4) ||\n mmax(y1, y2) < mmin(y3, y4) ||\n mmin(y1, y2) > mmax(y3, y4)\n ) {\n return;\n }\n var nx = (x1 * y2 - y1 * x2) * (x3 - x4) - (x1 - x2) * (x3 * y4 - y3 * x4),\n ny = (x1 * y2 - y1 * x2) * (y3 - y4) - (y1 - y2) * (x3 * y4 - y3 * x4),\n denominator = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4);\n\n if (!denominator) {\n return;\n }\n var px = nx / denominator,\n py = ny / denominator,\n px2 = +px.toFixed(2),\n py2 = +py.toFixed(2);\n if (\n px2 < +mmin(x1, x2).toFixed(2) ||\n px2 > +mmax(x1, x2).toFixed(2) ||\n px2 < +mmin(x3, x4).toFixed(2) ||\n px2 > +mmax(x3, x4).toFixed(2) ||\n py2 < +mmin(y1, y2).toFixed(2) ||\n py2 > +mmax(y1, y2).toFixed(2) ||\n py2 < +mmin(y3, y4).toFixed(2) ||\n py2 > +mmax(y3, y4).toFixed(2)\n ) {\n return;\n }\n return {x: px, y: py};\n }\n function inter(bez1, bez2) {\n return interHelper(bez1, bez2);\n }\n function interCount(bez1, bez2) {\n return interHelper(bez1, bez2, 1);\n }\n function interHelper(bez1, bez2, justCount) {\n var bbox1 = R.bezierBBox(bez1),\n bbox2 = R.bezierBBox(bez2);\n if (!R.isBBoxIntersect(bbox1, bbox2)) {\n return justCount ? 0 : [];\n }\n var l1 = bezlen.apply(0, bez1),\n l2 = bezlen.apply(0, bez2),\n n1 = mmax(~~(l1 / 5), 1),\n n2 = mmax(~~(l2 / 5), 1),\n dots1 = [],\n dots2 = [],\n xy = {},\n res = justCount ? 0 : [];\n for (var i = 0; i < n1 + 1; i++) {\n var p = R.findDotsAtSegment.apply(R, bez1.concat(i / n1));\n dots1.push({x: p.x, y: p.y, t: i / n1});\n }\n for (i = 0; i < n2 + 1; i++) {\n p = R.findDotsAtSegment.apply(R, bez2.concat(i / n2));\n dots2.push({x: p.x, y: p.y, t: i / n2});\n }\n for (i = 0; i < n1; i++) {\n for (var j = 0; j < n2; j++) {\n var di = dots1[i],\n di1 = dots1[i + 1],\n dj = dots2[j],\n dj1 = dots2[j + 1],\n ci = abs(di1.x - di.x) < .001 ? "y" : "x",\n cj = abs(dj1.x - dj.x) < .001 ? "y" : "x",\n is = intersect(di.x, di.y, di1.x, di1.y, dj.x, dj.y, dj1.x, dj1.y);\n if (is) {\n if (xy[is.x.toFixed(4)] == is.y.toFixed(4)) {\n continue;\n }\n xy[is.x.toFixed(4)] = is.y.toFixed(4);\n var t1 = di.t + abs((is[ci] - di[ci]) / (di1[ci] - di[ci])) * (di1.t - di.t),\n t2 = dj.t + abs((is[cj] - dj[cj]) / (dj1[cj] - dj[cj])) * (dj1.t - dj.t);\n if (t1 >= 0 && t1 <= 1.001 && t2 >= 0 && t2 <= 1.001) {\n if (justCount) {\n res++;\n } else {\n res.push({\n x: is.x,\n y: is.y,\n t1: mmin(t1, 1),\n t2: mmin(t2, 1)\n });\n }\n }\n }\n }\n }\n return res;\n }\n /*\\\n * Raphael.pathIntersection\n [ method ]\n **\n * Utility method\n **\n * Finds intersections of two paths\n > Parameters\n - path1 (string) path string\n - path2 (string) path string\n = (array) dots of intersection\n o [\n o {\n o x: (number) x coordinate of the point\n o y: (number) y coordinate of the point\n o t1: (number) t value for segment of path1\n o t2: (number) t value for segment of path2\n o segment1: (number) order number for segment of path1\n o segment2: (number) order number for segment of path2\n o bez1: (array) eight coordinates representing bezi\xe9r curve for the segment of path1\n o bez2: (array) eight coordinates representing bezi\xe9r curve for the segment of path2\n o }\n o ]\n \\*/\n R.pathIntersection = function (path1, path2) {\n return interPathHelper(path1, path2);\n };\n R.pathIntersectionNumber = function (path1, path2) {\n return interPathHelper(path1, path2, 1);\n };\n function interPathHelper(path1, path2, justCount) {\n path1 = R._path2curve(path1);\n path2 = R._path2curve(path2);\n var x1, y1, x2, y2, x1m, y1m, x2m, y2m, bez1, bez2,\n res = justCount ? 0 : [];\n for (var i = 0, ii = path1.length; i < ii; i++) {\n var pi = path1[i];\n if (pi[0] == "M") {\n x1 = x1m = pi[1];\n y1 = y1m = pi[2];\n } else {\n if (pi[0] == "C") {\n bez1 = [x1, y1].concat(pi.slice(1));\n x1 = bez1[6];\n y1 = bez1[7];\n } else {\n bez1 = [x1, y1, x1, y1, x1m, y1m, x1m, y1m];\n x1 = x1m;\n y1 = y1m;\n }\n for (var j = 0, jj = path2.length; j < jj; j++) {\n var pj = path2[j];\n if (pj[0] == "M") {\n x2 = x2m = pj[1];\n y2 = y2m = pj[2];\n } else {\n if (pj[0] == "C") {\n bez2 = [x2, y2].concat(pj.slice(1));\n x2 = bez2[6];\n y2 = bez2[7];\n } else {\n bez2 = [x2, y2, x2, y2, x2m, y2m, x2m, y2m];\n x2 = x2m;\n y2 = y2m;\n }\n var intr = interHelper(bez1, bez2, justCount);\n if (justCount) {\n res += intr;\n } else {\n for (var k = 0, kk = intr.length; k < kk; k++) {\n intr[k].segment1 = i;\n intr[k].segment2 = j;\n intr[k].bez1 = bez1;\n intr[k].bez2 = bez2;\n }\n res = res.concat(intr);\n }\n }\n }\n }\n }\n return res;\n }\n /*\\\n * Raphael.isPointInsidePath\n [ method ]\n **\n * Utility method\n **\n * Returns `true` if given point is inside a given closed path.\n > Parameters\n - path (string) path string\n - x (number) x of the point\n - y (number) y of the point\n = (boolean) true, if point is inside the path\n \\*/\n R.isPointInsidePath = function (path, x, y) {\n var bbox = R.pathBBox(path);\n return R.isPointInsideBBox(bbox, x, y) &&\n interPathHelper(path, [["M", x, y], ["H", bbox.x2 + 10]], 1) % 2 == 1;\n };\n R._removedFactory = function (methodname) {\n return function () {\n eve("raphael.log", null, "Rapha\\xebl: you are calling to method \\u201c" + methodname + "\\u201d of removed object", methodname);\n };\n };\n /*\\\n * Raphael.pathBBox\n [ method ]\n **\n * Utility method\n **\n * Return bounding box of a given path\n > Parameters\n - path (string) path string\n = (object) bounding box\n o {\n o x: (number) x coordinate of the left top point of the box\n o y: (number) y coordinate of the left top point of the box\n o x2: (number) x coordinate of the right bottom point of the box\n o y2: (number) y coordinate of the right bottom point of the box\n o width: (number) width of the box\n o height: (number) height of the box\n o cx: (number) x coordinate of the center of the box\n o cy: (number) y coordinate of the center of the box\n o }\n \\*/\n var pathDimensions = R.pathBBox = function (path) {\n var pth = paths(path);\n if (pth.bbox) {\n var b= pth.bbox;\n return {x: b.x, y: b.y, width: b.width, height: b.height, x2: b.x2, y2: b.y2} ; // FREEGROUP FIX!!!!!!\n // raphael reuse the returned bbox. You must clone it here if the caller need the bbxo for\n //further calculation\n }\n if (!path) {\n return {x: 0, y: 0, width: 0, height: 0, x2: 0, y2: 0};\n }\n path = path2curve(path);\n var x = 0,\n y = 0,\n X = [],\n Y = [],\n p;\n for (var i = 0, ii = path.length; i < ii; i++) {\n p = path[i];\n if (p[0] == "M") {\n x = p[1];\n y = p[2];\n X.push(x);\n Y.push(y);\n } else {\n var dim = curveDim(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);\n X = X[concat](dim.min.x, dim.max.x);\n Y = Y[concat](dim.min.y, dim.max.y);\n x = p[5];\n y = p[6];\n }\n }\n var xmin = mmin[apply](0, X),\n ymin = mmin[apply](0, Y),\n xmax = mmax[apply](0, X),\n ymax = mmax[apply](0, Y),\n width = xmax - xmin,\n height = ymax - ymin,\n bb = {\n x: xmin,\n y: ymin,\n x2: xmax,\n y2: ymax,\n width: width,\n height: height,\n cx: xmin + width / 2,\n cy: ymin + height / 2\n };\n pth.bbox = clone(bb);\n return bb;\n },\n pathClone = function (pathArray) {\n var res = clone(pathArray);\n res.toString = R._path2string;\n return res;\n },\n pathToRelative = R._pathToRelative = function (pathArray) {\n var pth = paths(pathArray);\n if (pth.rel) {\n return pathClone(pth.rel);\n }\n if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption\n pathArray = R.parsePathString(pathArray);\n }\n var res = [],\n x = 0,\n y = 0,\n mx = 0,\n my = 0,\n start = 0;\n if (pathArray[0][0] == "M") {\n x = pathArray[0][1];\n y = pathArray[0][2];\n mx = x;\n my = y;\n start++;\n res.push(["M", x, y]);\n }\n for (var i = start, ii = pathArray.length; i < ii; i++) {\n var r = res[i] = [],\n pa = pathArray[i];\n if (pa[0] != lowerCase.call(pa[0])) {\n r[0] = lowerCase.call(pa[0]);\n switch (r[0]) {\n case "a":\n r[1] = pa[1];\n r[2] = pa[2];\n r[3] = pa[3];\n r[4] = pa[4];\n r[5] = pa[5];\n r[6] = +(pa[6] - x).toFixed(3);\n r[7] = +(pa[7] - y).toFixed(3);\n break;\n case "v":\n r[1] = +(pa[1] - y).toFixed(3);\n break;\n case "m":\n mx = pa[1];\n my = pa[2];\n default:\n for (var j = 1, jj = pa.length; j < jj; j++) {\n r[j] = +(pa[j] - ((j % 2) ? x : y)).toFixed(3);\n }\n }\n } else {\n r = res[i] = [];\n if (pa[0] == "m") {\n mx = pa[1] + x;\n my = pa[2] + y;\n }\n for (var k = 0, kk = pa.length; k < kk; k++) {\n res[i][k] = pa[k];\n }\n }\n var len = res[i].length;\n switch (res[i][0]) {\n case "z":\n x = mx;\n y = my;\n break;\n case "h":\n x += +res[i][len - 1];\n break;\n case "v":\n y += +res[i][len - 1];\n break;\n default:\n x += +res[i][len - 2];\n y += +res[i][len - 1];\n }\n }\n res.toString = R._path2string;\n pth.rel = pathClone(res);\n return res;\n },\n pathToAbsolute = R._pathToAbsolute = function (pathArray) {\n var pth = paths(pathArray);\n if (pth.abs) {\n return pathClone(pth.abs);\n }\n if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption\n pathArray = R.parsePathString(pathArray);\n }\n if (!pathArray || !pathArray.length) {\n return [["M", 0, 0]];\n }\n var res = [],\n x = 0,\n y = 0,\n mx = 0,\n my = 0,\n start = 0;\n if (pathArray[0][0] == "M") {\n x = +pathArray[0][1];\n y = +pathArray[0][2];\n mx = x;\n my = y;\n start++;\n res[0] = ["M", x, y];\n }\n var crz = pathArray.length == 3 && pathArray[0][0] == "M" && pathArray[1][0].toUpperCase() == "R" && pathArray[2][0].toUpperCase() == "Z";\n for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {\n res.push(r = []);\n pa = pathArray[i];\n if (pa[0] != upperCase.call(pa[0])) {\n r[0] = upperCase.call(pa[0]);\n switch (r[0]) {\n case "A":\n r[1] = pa[1];\n r[2] = pa[2];\n r[3] = pa[3];\n r[4] = pa[4];\n r[5] = pa[5];\n r[6] = +(pa[6] + x);\n r[7] = +(pa[7] + y);\n break;\n case "V":\n r[1] = +pa[1] + y;\n break;\n case "H":\n r[1] = +pa[1] + x;\n break;\n case "R":\n var dots = [x, y][concat](pa.slice(1));\n for (var j = 2, jj = dots.length; j < jj; j++) {\n dots[j] = +dots[j] + x;\n dots[++j] = +dots[j] + y;\n }\n res.pop();\n res = res[concat](catmullRom2bezier(dots, crz));\n break;\n case "M":\n mx = +pa[1] + x;\n my = +pa[2] + y;\n default:\n for (j = 1, jj = pa.length; j < jj; j++) {\n r[j] = +pa[j] + ((j % 2) ? x : y);\n }\n }\n } else if (pa[0] == "R") {\n dots = [x, y][concat](pa.slice(1));\n res.pop();\n res = res[concat](catmullRom2bezier(dots, crz));\n r = ["R"][concat](pa.slice(-2));\n } else {\n for (var k = 0, kk = pa.length; k < kk; k++) {\n r[k] = pa[k];\n }\n }\n switch (r[0]) {\n case "Z":\n x = mx;\n y = my;\n break;\n case "H":\n x = r[1];\n break;\n case "V":\n y = r[1];\n break;\n case "M":\n mx = r[r.length - 2];\n my = r[r.length - 1];\n default:\n x = r[r.length - 2];\n y = r[r.length - 1];\n }\n }\n res.toString = R._path2string;\n pth.abs = pathClone(res);\n return res;\n },\n l2c = function (x1, y1, x2, y2) {\n return [x1, y1, x2, y2, x2, y2];\n },\n q2c = function (x1, y1, ax, ay, x2, y2) {\n var _13 = 1 / 3,\n _23 = 2 / 3;\n return [\n _13 * x1 + _23 * ax,\n _13 * y1 + _23 * ay,\n _13 * x2 + _23 * ax,\n _13 * y2 + _23 * ay,\n x2,\n y2\n ];\n },\n a2c = function (x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {\n // for more information of where this math came from visit:\n // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\n var _120 = PI * 120 / 180,\n rad = PI / 180 * (+angle || 0),\n res = [],\n xy,\n rotate = cacher(function (x, y, rad) {\n var X = x * math.cos(rad) - y * math.sin(rad),\n Y = x * math.sin(rad) + y * math.cos(rad);\n return {x: X, y: Y};\n });\n if (!recursive) {\n xy = rotate(x1, y1, -rad);\n x1 = xy.x;\n y1 = xy.y;\n xy = rotate(x2, y2, -rad);\n x2 = xy.x;\n y2 = xy.y;\n var cos = math.cos(PI / 180 * angle),\n sin = math.sin(PI / 180 * angle),\n x = (x1 - x2) / 2,\n y = (y1 - y2) / 2;\n var h = (x * x) / (rx * rx) + (y * y) / (ry * ry);\n if (h > 1) {\n h = math.sqrt(h);\n rx = h * rx;\n ry = h * ry;\n }\n var rx2 = rx * rx,\n ry2 = ry * ry,\n k = (large_arc_flag == sweep_flag ? -1 : 1) *\n math.sqrt(abs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x))),\n cx = k * rx * y / ry + (x1 + x2) / 2,\n cy = k * -ry * x / rx + (y1 + y2) / 2,\n f1 = math.asin(((y1 - cy) / ry).toFixed(9)),\n f2 = math.asin(((y2 - cy) / ry).toFixed(9));\n\n f1 = x1 < cx ? PI - f1 : f1;\n f2 = x2 < cx ? PI - f2 : f2;\n f1 < 0 && (f1 = PI * 2 + f1);\n f2 < 0 && (f2 = PI * 2 + f2);\n if (sweep_flag && f1 > f2) {\n f1 = f1 - PI * 2;\n }\n if (!sweep_flag && f2 > f1) {\n f2 = f2 - PI * 2;\n }\n } else {\n f1 = recursive[0];\n f2 = recursive[1];\n cx = recursive[2];\n cy = recursive[3];\n }\n var df = f2 - f1;\n if (abs(df) > _120) {\n var f2old = f2,\n x2old = x2,\n y2old = y2;\n f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);\n x2 = cx + rx * math.cos(f2);\n y2 = cy + ry * math.sin(f2);\n res = a2c(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy]);\n }\n df = f2 - f1;\n var c1 = math.cos(f1),\n s1 = math.sin(f1),\n c2 = math.cos(f2),\n s2 = math.sin(f2),\n t = math.tan(df / 4),\n hx = 4 / 3 * rx * t,\n hy = 4 / 3 * ry * t,\n m1 = [x1, y1],\n m2 = [x1 + hx * s1, y1 - hy * c1],\n m3 = [x2 + hx * s2, y2 - hy * c2],\n m4 = [x2, y2];\n m2[0] = 2 * m1[0] - m2[0];\n m2[1] = 2 * m1[1] - m2[1];\n if (recursive) {\n return [m2, m3, m4][concat](res);\n } else {\n res = [m2, m3, m4][concat](res).join()[split](",");\n var newres = [];\n for (var i = 0, ii = res.length; i < ii; i++) {\n newres[i] = i % 2 ? rotate(res[i - 1], res[i], rad).y : rotate(res[i], res[i + 1], rad).x;\n }\n return newres;\n }\n },\n findDotAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\n var t1 = 1 - t;\n return {\n x: pow(t1, 3) * p1x + pow(t1, 2) * 3 * t * c1x + t1 * 3 * t * t * c2x + pow(t, 3) * p2x,\n y: pow(t1, 3) * p1y + pow(t1, 2) * 3 * t * c1y + t1 * 3 * t * t * c2y + pow(t, 3) * p2y\n };\n },\n curveDim = cacher(function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {\n var a = (c2x - 2 * c1x + p1x) - (p2x - 2 * c2x + c1x),\n b = 2 * (c1x - p1x) - 2 * (c2x - c1x),\n c = p1x - c1x,\n t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a,\n t2 = (-b - math.sqrt(b * b - 4 * a * c)) / 2 / a,\n y = [p1y, p2y],\n x = [p1x, p2x],\n dot;\n abs(t1) > "1e12" && (t1 = .5);\n abs(t2) > "1e12" && (t2 = .5);\n if (t1 > 0 && t1 < 1) {\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t1);\n x.push(dot.x);\n y.push(dot.y);\n }\n if (t2 > 0 && t2 < 1) {\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t2);\n x.push(dot.x);\n y.push(dot.y);\n }\n a = (c2y - 2 * c1y + p1y) - (p2y - 2 * c2y + c1y);\n b = 2 * (c1y - p1y) - 2 * (c2y - c1y);\n c = p1y - c1y;\n t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a;\n t2 = (-b - math.sqrt(b * b - 4 * a * c)) / 2 / a;\n abs(t1) > "1e12" && (t1 = .5);\n abs(t2) > "1e12" && (t2 = .5);\n if (t1 > 0 && t1 < 1) {\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t1);\n x.push(dot.x);\n y.push(dot.y);\n }\n if (t2 > 0 && t2 < 1) {\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t2);\n x.push(dot.x);\n y.push(dot.y);\n }\n return {\n min: {x: mmin[apply](0, x), y: mmin[apply](0, y)},\n max: {x: mmax[apply](0, x), y: mmax[apply](0, y)}\n };\n }),\n path2curve = R._path2curve = cacher(function (path, path2) {\n var pth = !path2 && paths(path);\n if (!path2 && pth.curve) {\n return pathClone(pth.curve);\n }\n var p = pathToAbsolute(path),\n p2 = path2 && pathToAbsolute(path2),\n attrs = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null},\n attrs2 = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null},\n processPath = function (path, d, pcom) {\n var nx, ny, tq = {T:1, Q:1};\n if (!path) {\n return ["C", d.x, d.y, d.x, d.y, d.x, d.y];\n }\n !(path[0] in tq) && (d.qx = d.qy = null);\n switch (path[0]) {\n case "M":\n d.X = path[1];\n d.Y = path[2];\n break;\n case "A":\n path = ["C"][concat](a2c[apply](0, [d.x, d.y][concat](path.slice(1))));\n break;\n case "S":\n if (pcom == "C" || pcom == "S") { // In "S" case we have to take into account, if the previous command is C/S.\n nx = d.x * 2 - d.bx; // And reflect the previous\n ny = d.y * 2 - d.by; // command\'s control point relative to the current point.\n }\n else { // or some else or nothing\n nx = d.x;\n ny = d.y;\n }\n path = ["C", nx, ny][concat](path.slice(1));\n break;\n case "T":\n if (pcom == "Q" || pcom == "T") { // In "T" case we have to take into account, if the previous command is Q/T.\n d.qx = d.x * 2 - d.qx; // And make a reflection similar\n d.qy = d.y * 2 - d.qy; // to case "S".\n }\n else { // or something else or nothing\n d.qx = d.x;\n d.qy = d.y;\n }\n path = ["C"][concat](q2c(d.x, d.y, d.qx, d.qy, path[1], path[2]));\n break;\n case "Q":\n d.qx = path[1];\n d.qy = path[2];\n path = ["C"][concat](q2c(d.x, d.y, path[1], path[2], path[3], path[4]));\n break;\n case "L":\n path = ["C"][concat](l2c(d.x, d.y, path[1], path[2]));\n break;\n case "H":\n path = ["C"][concat](l2c(d.x, d.y, path[1], d.y));\n break;\n case "V":\n path = ["C"][concat](l2c(d.x, d.y, d.x, path[1]));\n break;\n case "Z":\n path = ["C"][concat](l2c(d.x, d.y, d.X, d.Y));\n break;\n }\n return path;\n },\n fixArc = function (pp, i) {\n if (pp[i].length > 7) {\n pp[i].shift();\n var pi = pp[i];\n while (pi.length) {\n pcoms1[i]="A"; // if created multiple C:s, their original seg is saved\n p2 && (pcoms2[i]="A"); // the same as above\n pp.splice(i++, 0, ["C"][concat](pi.splice(0, 6)));\n }\n pp.splice(i, 1);\n ii = mmax(p.length, p2 && p2.length || 0);\n }\n },\n fixM = function (path1, path2, a1, a2, i) {\n if (path1 && path2 && path1[i][0] == "M" && path2[i][0] != "M") {\n path2.splice(i, 0, ["M", a2.x, a2.y]);\n a1.bx = 0;\n a1.by = 0;\n a1.x = path1[i][1];\n a1.y = path1[i][2];\n ii = mmax(p.length, p2 && p2.length || 0);\n }\n },\n pcoms1 = [], // path commands of original path p\n pcoms2 = [], // path commands of original path p2\n pfirst = "", // temporary holder for original path command\n pcom = ""; // holder for previous path command of original path\n for (var i = 0, ii = mmax(p.length, p2 && p2.length || 0); i < ii; i++) {\n p[i] && (pfirst = p[i][0]); // save current path command\n\n if (pfirst != "C") // C is not saved yet, because it may be result of conversion\n {\n pcoms1[i] = pfirst; // Save current path command\n i && ( pcom = pcoms1[i-1]); // Get previous path command pcom\n }\n p[i] = processPath(p[i], attrs, pcom); // Previous path command is inputted to processPath\n\n if (pcoms1[i] != "A" && pfirst == "C") pcoms1[i] = "C"; // A is the only command\n // which may produce multiple C:s\n // so we have to make sure that C is also C in original path\n\n fixArc(p, i); // fixArc adds also the right amount of A:s to pcoms1\n\n if (p2) { // the same procedures is done to p2\n p2[i] && (pfirst = p2[i][0]);\n if (pfirst != "C")\n {\n pcoms2[i] = pfirst;\n i && (pcom = pcoms2[i-1]);\n }\n p2[i] = processPath(p2[i], attrs2, pcom);\n\n if (pcoms2[i]!="A" && pfirst=="C") pcoms2[i]="C";\n\n fixArc(p2, i);\n }\n fixM(p, p2, attrs, attrs2, i);\n fixM(p2, p, attrs2, attrs, i);\n var seg = p[i],\n seg2 = p2 && p2[i],\n seglen = seg.length,\n seg2len = p2 && seg2.length;\n attrs.x = seg[seglen - 2];\n attrs.y = seg[seglen - 1];\n attrs.bx = toFloat(seg[seglen - 4]) || attrs.x;\n attrs.by = toFloat(seg[seglen - 3]) || attrs.y;\n attrs2.bx = p2 && (toFloat(seg2[seg2len - 4]) || attrs2.x);\n attrs2.by = p2 && (toFloat(seg2[seg2len - 3]) || attrs2.y);\n attrs2.x = p2 && seg2[seg2len - 2];\n attrs2.y = p2 && seg2[seg2len - 1];\n }\n if (!p2) {\n pth.curve = pathClone(p);\n }\n return p2 ? [p, p2] : p;\n }, null, pathClone),\n parseDots = R._parseDots = cacher(function (gradient) {\n var dots = [];\n for (var i = 0, ii = gradient.length; i < ii; i++) {\n var dot = {},\n par = gradient[i].match(/^([^:]*):?([\\d\\.]*)/);\n dot.color = R.getRGB(par[1]);\n if (dot.color.error) {\n return null;\n }\n dot.opacity = dot.color.opacity;\n dot.color = dot.color.hex;\n par[2] && (dot.offset = par[2] + "%");\n dots.push(dot);\n }\n for (i = 1, ii = dots.length - 1; i < ii; i++) {\n if (!dots[i].offset) {\n var start = toFloat(dots[i - 1].offset || 0),\n end = 0;\n for (var j = i + 1; j < ii; j++) {\n if (dots[j].offset) {\n end = dots[j].offset;\n break;\n }\n }\n if (!end) {\n end = 100;\n j = ii;\n }\n end = toFloat(end);\n var d = (end - start) / (j - i + 1);\n for (; i < j; i++) {\n start += d;\n dots[i].offset = start + "%";\n }\n }\n }\n return dots;\n }),\n tear = R._tear = function (el, paper) {\n el == paper.top && (paper.top = el.prev);\n el == paper.bottom && (paper.bottom = el.next);\n el.next && (el.next.prev = el.prev);\n el.prev && (el.prev.next = el.next);\n },\n tofront = R._tofront = function (el, paper) {\n if (paper.top === el) {\n return;\n }\n tear(el, paper);\n el.next = null;\n el.prev = paper.top;\n paper.top.next = el;\n paper.top = el;\n },\n toback = R._toback = function (el, paper) {\n if (paper.bottom === el) {\n return;\n }\n tear(el, paper);\n el.next = paper.bottom;\n el.prev = null;\n paper.bottom.prev = el;\n paper.bottom = el;\n },\n insertafter = R._insertafter = function (el, el2, paper) {\n tear(el, paper);\n el2 == paper.top && (paper.top = el);\n el2.next && (el2.next.prev = el);\n el.next = el2.next;\n el.prev = el2;\n el2.next = el;\n },\n insertbefore = R._insertbefore = function (el, el2, paper) {\n tear(el, paper);\n el2 == paper.bottom && (paper.bottom = el);\n el2.prev && (el2.prev.next = el);\n el.prev = el2.prev;\n el2.prev = el;\n el.next = el2;\n },\n /*\\\n * Raphael.toMatrix\n [ method ]\n **\n * Utility method\n **\n * Returns matrix of transformations applied to a given path\n > Parameters\n - path (string) path string\n - transform (string|array) transformation string\n = (object) @Matrix\n \\*/\n toMatrix = R.toMatrix = function (path, transform) {\n var bb = pathDimensions(path),\n el = {\n _: {\n transform: E\n },\n getBBox: function () {\n return bb;\n }\n };\n extractTransform(el, transform);\n return el.matrix;\n },\n /*\\\n * Raphael.transformPath\n [ method ]\n **\n * Utility method\n **\n * Returns path transformed by a given transformation\n > Parameters\n - path (string) path string\n - transform (string|array) transformation string\n = (string) path\n \\*/\n transformPath = R.transformPath = function (path, transform) {\n return mapPath(path, toMatrix(path, transform));\n },\n extractTransform = R._extractTransform = function (el, tstr) {\n if (tstr == null) {\n return el._.transform;\n }\n tstr = Str(tstr).replace(/\\.{3}|\\u2026/g, el._.transform || E);\n var tdata = R.parseTransformString(tstr),\n deg = 0,\n dx = 0,\n dy = 0,\n sx = 1,\n sy = 1,\n _ = el._,\n m = new Matrix;\n _.transform = tdata || [];\n if (tdata) {\n for (var i = 0, ii = tdata.length; i < ii; i++) {\n var t = tdata[i],\n tlen = t.length,\n command = Str(t[0]).toLowerCase(),\n absolute = t[0] != command,\n inver = absolute ? m.invert() : 0,\n x1,\n y1,\n x2,\n y2,\n bb;\n if (command == "t" && tlen == 3) {\n if (absolute) {\n x1 = inver.x(0, 0);\n y1 = inver.y(0, 0);\n x2 = inver.x(t[1], t[2]);\n y2 = inver.y(t[1], t[2]);\n m.translate(x2 - x1, y2 - y1);\n } else {\n m.translate(t[1], t[2]);\n }\n } else if (command == "r") {\n if (tlen == 2) {\n bb = bb || el.getBBox(1);\n m.rotate(t[1], bb.x + bb.width / 2, bb.y + bb.height / 2);\n deg += t[1];\n } else if (tlen == 4) {\n if (absolute) {\n x2 = inver.x(t[2], t[3]);\n y2 = inver.y(t[2], t[3]);\n m.rotate(t[1], x2, y2);\n } else {\n m.rotate(t[1], t[2], t[3]);\n }\n deg += t[1];\n }\n } else if (command == "s") {\n if (tlen == 2 || tlen == 3) {\n bb = bb || el.getBBox(1);\n m.scale(t[1], t[tlen - 1], bb.x + bb.width / 2, bb.y + bb.height / 2);\n sx *= t[1];\n sy *= t[tlen - 1];\n } else if (tlen == 5) {\n if (absolute) {\n x2 = inver.x(t[3], t[4]);\n y2 = inver.y(t[3], t[4]);\n m.scale(t[1], t[2], x2, y2);\n } else {\n m.scale(t[1], t[2], t[3], t[4]);\n }\n sx *= t[1];\n sy *= t[2];\n }\n } else if (command == "m" && tlen == 7) {\n m.add(t[1], t[2], t[3], t[4], t[5], t[6]);\n }\n _.dirtyT = 1;\n el.matrix = m;\n }\n }\n\n /*\\\n * Element.matrix\n [ property (object) ]\n **\n * Keeps @Matrix object, which represents element transformation\n \\*/\n el.matrix = m;\n\n _.sx = sx;\n _.sy = sy;\n _.deg = deg;\n _.dx = dx = m.e;\n _.dy = dy = m.f;\n\n if (sx == 1 && sy == 1 && !deg && _.bbox) {\n _.bbox.x += +dx;\n _.bbox.y += +dy;\n } else {\n _.dirtyT = 1;\n }\n },\n getEmpty = function (item) {\n var l = item[0];\n switch (l.toLowerCase()) {\n case "t": return [l, 0, 0];\n case "m": return [l, 1, 0, 0, 1, 0, 0];\n case "r": if (item.length == 4) {\n return [l, 0, item[2], item[3]];\n } else {\n return [l, 0];\n }\n case "s": if (item.length == 5) {\n return [l, 1, 1, item[3], item[4]];\n } else if (item.length == 3) {\n return [l, 1, 1];\n } else {\n return [l, 1];\n }\n }\n },\n equaliseTransform = R._equaliseTransform = function (t1, t2) {\n t2 = Str(t2).replace(/\\.{3}|\\u2026/g, t1);\n t1 = R.parseTransformString(t1) || [];\n t2 = R.parseTransformString(t2) || [];\n var maxlength = mmax(t1.length, t2.length),\n from = [],\n to = [],\n i = 0, j, jj,\n tt1, tt2;\n for (; i < maxlength; i++) {\n tt1 = t1[i] || getEmpty(t2[i]);\n tt2 = t2[i] || getEmpty(tt1);\n if ((tt1[0] != tt2[0]) ||\n (tt1[0].toLowerCase() == "r" && (tt1[2] != tt2[2] || tt1[3] != tt2[3])) ||\n (tt1[0].toLowerCase() == "s" && (tt1[3] != tt2[3] || tt1[4] != tt2[4]))\n ) {\n return;\n }\n from[i] = [];\n to[i] = [];\n for (j = 0, jj = mmax(tt1.length, tt2.length); j < jj; j++) {\n j in tt1 && (from[i][j] = tt1[j]);\n j in tt2 && (to[i][j] = tt2[j]);\n }\n }\n return {\n from: from,\n to: to\n };\n };\n R._getContainer = function (x, y, w, h) {\n var container;\n container = h == null && !R.is(x, "object") ? g.doc.getElementById(x) : x;\n if (container == null) {\n return;\n }\n if (container.tagName) {\n if (y == null) {\n return {\n container: container,\n width: container.style.pixelWidth || container.offsetWidth,\n height: container.style.pixelHeight || container.offsetHeight\n };\n } else {\n return {\n container: container,\n width: y,\n height: w\n };\n }\n }\n return {\n container: 1,\n x: x,\n y: y,\n width: w,\n height: h\n };\n };\n /*\\\n * Raphael.pathToRelative\n [ method ]\n **\n * Utility method\n **\n * Converts path to relative form\n > Parameters\n - pathString (string|array) path string or array of segments\n = (array) array of segments.\n \\*/\n R.pathToRelative = pathToRelative;\n R._engine = {};\n /*\\\n * Raphael.path2curve\n [ method ]\n **\n * Utility method\n **\n * Converts path to a new path where all segments are cubic bezier curves.\n > Parameters\n - pathString (string|array) path string or array of segments\n = (array) array of segments.\n \\*/\n R.path2curve = path2curve;\n /*\\\n * Raphael.matrix\n [ method ]\n **\n * Utility method\n **\n * Returns matrix based on given parameters.\n > Parameters\n - a (number)\n - b (number)\n - c (number)\n - d (number)\n - e (number)\n - f (number)\n = (object) @Matrix\n \\*/\n R.matrix = function (a, b, c, d, e, f) {\n return new Matrix(a, b, c, d, e, f);\n };\n function Matrix(a, b, c, d, e, f) {\n if (a != null) {\n this.a = +a;\n this.b = +b;\n this.c = +c;\n this.d = +d;\n this.e = +e;\n this.f = +f;\n } else {\n this.a = 1;\n this.b = 0;\n this.c = 0;\n this.d = 1;\n this.e = 0;\n this.f = 0;\n }\n }\n (function (matrixproto) {\n /*\\\n * Matrix.add\n [ method ]\n **\n * Adds given matrix to existing one.\n > Parameters\n - a (number)\n - b (number)\n - c (number)\n - d (number)\n - e (number)\n - f (number)\n or\n - matrix (object) @Matrix\n \\*/\n matrixproto.add = function (a, b, c, d, e, f) {\n var out = [[], [], []],\n m = [[this.a, this.c, this.e], [this.b, this.d, this.f], [0, 0, 1]],\n matrix = [[a, c, e], [b, d, f], [0, 0, 1]],\n x, y, z, res;\n\n if (a && a instanceof Matrix) {\n matrix = [[a.a, a.c, a.e], [a.b, a.d, a.f], [0, 0, 1]];\n }\n\n for (x = 0; x < 3; x++) {\n for (y = 0; y < 3; y++) {\n res = 0;\n for (z = 0; z < 3; z++) {\n res += m[x][z] * matrix[z][y];\n }\n out[x][y] = res;\n }\n }\n this.a = out[0][0];\n this.b = out[1][0];\n this.c = out[0][1];\n this.d = out[1][1];\n this.e = out[0][2];\n this.f = out[1][2];\n };\n /*\\\n * Matrix.invert\n [ method ]\n **\n * Returns inverted version of the matrix\n = (object) @Matrix\n \\*/\n matrixproto.invert = function () {\n var me = this,\n x = me.a * me.d - me.b * me.c;\n return new Matrix(me.d / x, -me.b / x, -me.c / x, me.a / x, (me.c * me.f - me.d * me.e) / x, (me.b * me.e - me.a * me.f) / x);\n };\n /*\\\n * Matrix.clone\n [ method ]\n **\n * Returns copy of the matrix\n = (object) @Matrix\n \\*/\n matrixproto.clone = function () {\n return new Matrix(this.a, this.b, this.c, this.d, this.e, this.f);\n };\n /*\\\n * Matrix.translate\n [ method ]\n **\n * Translate the matrix\n > Parameters\n - x (number)\n - y (number)\n \\*/\n matrixproto.translate = function (x, y) {\n this.add(1, 0, 0, 1, x, y);\n };\n /*\\\n * Matrix.scale\n [ method ]\n **\n * Scales the matrix\n > Parameters\n - x (number)\n - y (number) #optional\n - cx (number) #optional\n - cy (number) #optional\n \\*/\n matrixproto.scale = function (x, y, cx, cy) {\n y == null && (y = x);\n (cx || cy) && this.add(1, 0, 0, 1, cx, cy);\n this.add(x, 0, 0, y, 0, 0);\n (cx || cy) && this.add(1, 0, 0, 1, -cx, -cy);\n };\n /*\\\n * Matrix.rotate\n [ method ]\n **\n * Rotates the matrix\n > Parameters\n - a (number)\n - x (number)\n - y (number)\n \\*/\n matrixproto.rotate = function (a, x, y) {\n a = R.rad(a);\n x = x || 0;\n y = y || 0;\n var cos = +math.cos(a).toFixed(9),\n sin = +math.sin(a).toFixed(9);\n this.add(cos, sin, -sin, cos, x, y);\n this.add(1, 0, 0, 1, -x, -y);\n };\n /*\\\n * Matrix.x\n [ method ]\n **\n * Return x coordinate for given point after transformation described by the matrix. See also @Matrix.y\n > Parameters\n - x (number)\n - y (number)\n = (number) x\n \\*/\n matrixproto.x = function (x, y) {\n return x * this.a + y * this.c + this.e;\n };\n /*\\\n * Matrix.y\n [ method ]\n **\n * Return y coordinate for given point after transformation described by the matrix. See also @Matrix.x\n > Parameters\n - x (number)\n - y (number)\n = (number) y\n \\*/\n matrixproto.y = function (x, y) {\n return x * this.b + y * this.d + this.f;\n };\n matrixproto.get = function (i) {\n return +this[Str.fromCharCode(97 + i)].toFixed(4);\n };\n matrixproto.toString = function () {\n return R.svg ?\n "matrix(" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)].join() + ")" :\n [this.get(0), this.get(2), this.get(1), this.get(3), 0, 0].join();\n };\n matrixproto.toFilter = function () {\n return "progid:DXImageTransform.Microsoft.Matrix(M11=" + this.get(0) +\n ", M12=" + this.get(2) + ", M21=" + this.get(1) + ", M22=" + this.get(3) +\n ", Dx=" + this.get(4) + ", Dy=" + this.get(5) + ", sizingmethod=\'auto expand\')";\n };\n matrixproto.offset = function () {\n return [this.e.toFixed(4), this.f.toFixed(4)];\n };\n function norm(a) {\n return a[0] * a[0] + a[1] * a[1];\n }\n function normalize(a) {\n var mag = math.sqrt(norm(a));\n a[0] && (a[0] /= mag);\n a[1] && (a[1] /= mag);\n }\n /*\\\n * Matrix.split\n [ method ]\n **\n * Splits matrix into primitive transformations\n = (object) in format:\n o dx (number) translation by x\n o dy (number) translation by y\n o scalex (number) scale by x\n o scaley (number) scale by y\n o shear (number) shear\n o rotate (number) rotation in deg\n o isSimple (boolean) could it be represented via simple transformations\n \\*/\n matrixproto.split = function () {\n var out = {};\n // translation\n out.dx = this.e;\n out.dy = this.f;\n\n // scale and shear\n var row = [[this.a, this.c], [this.b, this.d]];\n out.scalex = math.sqrt(norm(row[0]));\n normalize(row[0]);\n\n out.shear = row[0][0] * row[1][0] + row[0][1] * row[1][1];\n row[1] = [row[1][0] - row[0][0] * out.shear, row[1][1] - row[0][1] * out.shear];\n\n out.scaley = math.sqrt(norm(row[1]));\n normalize(row[1]);\n out.shear /= out.scaley;\n\n // rotation\n var sin = -row[0][1],\n cos = row[1][1];\n if (cos < 0) {\n out.rotate = R.deg(math.acos(cos));\n if (sin < 0) {\n out.rotate = 360 - out.rotate;\n }\n } else {\n out.rotate = R.deg(math.asin(sin));\n }\n\n out.isSimple = !+out.shear.toFixed(9) && (out.scalex.toFixed(9) == out.scaley.toFixed(9) || !out.rotate);\n out.isSuperSimple = !+out.shear.toFixed(9) && out.scalex.toFixed(9) == out.scaley.toFixed(9) && !out.rotate;\n out.noRotation = !+out.shear.toFixed(9) && !out.rotate;\n return out;\n };\n /*\\\n * Matrix.toTransformString\n [ method ]\n **\n * Return transform string that represents given matrix\n = (string) transform string\n \\*/\n matrixproto.toTransformString = function (shorter) {\n var s = shorter || this[split]();\n if (s.isSimple) {\n s.scalex = +s.scalex.toFixed(4);\n s.scaley = +s.scaley.toFixed(4);\n s.rotate = +s.rotate.toFixed(4);\n return (s.dx || s.dy ? "t" + [s.dx, s.dy] : E) +\n (s.scalex != 1 || s.scaley != 1 ? "s" + [s.scalex, s.scaley, 0, 0] : E) +\n (s.rotate ? "r" + [s.rotate, 0, 0] : E);\n } else {\n return "m" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)];\n }\n };\n })(Matrix.prototype);\n\n var preventDefault = function () {\n this.returnValue = false;\n },\n preventTouch = function () {\n return this.originalEvent.preventDefault();\n },\n stopPropagation = function () {\n this.cancelBubble = true;\n },\n stopTouch = function () {\n return this.originalEvent.stopPropagation();\n },\n getEventPosition = function (e) {\n var scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft;\n\n return {\n x: e.clientX + scrollX,\n y: e.clientY + scrollY\n };\n },\n addEvent = (function () {\n if (g.doc.addEventListener) {\n return function (obj, type, fn, element) {\n var f = function (e) {\n var pos = getEventPosition(e);\n return fn.call(element, e, pos.x, pos.y);\n };\n obj.addEventListener(type, f, false);\n\n if (supportsTouch && touchMap[type]) {\n var _f = function (e) {\n var pos = getEventPosition(e),\n olde = e;\n\n for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) {\n if (e.targetTouches[i].target == obj) {\n e = e.targetTouches[i];\n e.originalEvent = olde;\n e.preventDefault = preventTouch;\n e.stopPropagation = stopTouch;\n break;\n }\n }\n\n return fn.call(element, e, pos.x, pos.y);\n };\n obj.addEventListener(touchMap[type], _f, false);\n }\n\n return function () {\n obj.removeEventListener(type, f, false);\n\n if (supportsTouch && touchMap[type])\n obj.removeEventListener(touchMap[type], _f, false);\n\n return true;\n };\n };\n } else if (g.doc.attachEvent) {\n return function (obj, type, fn, element) {\n var f = function (e) {\n e = e || g.win.event;\n var scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,\n x = e.clientX + scrollX,\n y = e.clientY + scrollY;\n e.preventDefault = e.preventDefault || preventDefault;\n e.stopPropagation = e.stopPropagation || stopPropagation;\n return fn.call(element, e, x, y);\n };\n obj.attachEvent("on" + type, f);\n var detacher = function () {\n obj.detachEvent("on" + type, f);\n return true;\n };\n return detacher;\n };\n }\n })(),\n drag = [],\n dragMove = function (e) {\n var x = e.clientX,\n y = e.clientY,\n scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,\n dragi,\n j = drag.length;\n while (j--) {\n dragi = drag[j];\n if (supportsTouch && e.touches) {\n var i = e.touches.length,\n touch;\n while (i--) {\n touch = e.touches[i];\n if (touch.identifier == dragi.el._drag.id) {\n x = touch.clientX;\n y = touch.clientY;\n (e.originalEvent ? e.originalEvent : e).preventDefault();\n break;\n }\n }\n } else {\n e.preventDefault();\n }\n var node = dragi.el.node,\n o,\n next = node.nextSibling,\n parent = node.parentNode,\n display = node.style.display;\n g.win.opera && parent.removeChild(node);\n node.style.display = "none";\n o = dragi.el.paper.getElementByPoint(x, y);\n node.style.display = display;\n g.win.opera && (next ? parent.insertBefore(node, next) : parent.appendChild(node));\n o && eve("raphael.drag.over." + dragi.el.id, dragi.el, o);\n x += scrollX;\n y += scrollY;\n eve("raphael.drag.move." + dragi.el.id, dragi.move_scope || dragi.el, x - dragi.el._drag.x, y - dragi.el._drag.y, x, y, e);\n }\n },\n dragUp = function (e) {\n R.unmousemove(dragMove).unmouseup(dragUp);\n var i = drag.length,\n dragi;\n while (i--) {\n dragi = drag[i];\n dragi.el._drag = {};\n eve("raphael.drag.end." + dragi.el.id, dragi.end_scope || dragi.start_scope || dragi.move_scope || dragi.el, e);\n }\n drag = [];\n },\n /*\\\n * Raphael.el\n [ property (object) ]\n **\n * You can add your own method to elements. This is usefull when you want to hack default functionality or\n * want to wrap some common transformation or attributes in one method. In difference to canvas methods,\n * you can redefine element method at any time. Expending element methods wouldn\u2019t affect set.\n > Usage\n | Raphael.el.red = function () {\n | this.attr({fill: "#f00"});\n | };\n | // then use it\n | paper.circle(100, 100, 20).red();\n \\*/\n elproto = R.el = {};\n /*\\\n * Element.click\n [ method ]\n **\n * Adds event handler for click for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unclick\n [ method ]\n **\n * Removes event handler for click for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.dblclick\n [ method ]\n **\n * Adds event handler for double click for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.undblclick\n [ method ]\n **\n * Removes event handler for double click for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.mousedown\n [ method ]\n **\n * Adds event handler for mousedown for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unmousedown\n [ method ]\n **\n * Removes event handler for mousedown for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.mousemove\n [ method ]\n **\n * Adds event handler for mousemove for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unmousemove\n [ method ]\n **\n * Removes event handler for mousemove for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.mouseout\n [ method ]\n **\n * Adds event handler for mouseout for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unmouseout\n [ method ]\n **\n * Removes event handler for mouseout for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.mouseover\n [ method ]\n **\n * Adds event handler for mouseover for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unmouseover\n [ method ]\n **\n * Removes event handler for mouseover for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.mouseup\n [ method ]\n **\n * Adds event handler for mouseup for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unmouseup\n [ method ]\n **\n * Removes event handler for mouseup for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.touchstart\n [ method ]\n **\n * Adds event handler for touchstart for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.untouchstart\n [ method ]\n **\n * Removes event handler for touchstart for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.touchmove\n [ method ]\n **\n * Adds event handler for touchmove for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.untouchmove\n [ method ]\n **\n * Removes event handler for touchmove for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.touchend\n [ method ]\n **\n * Adds event handler for touchend for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.untouchend\n [ method ]\n **\n * Removes event handler for touchend for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.touchcancel\n [ method ]\n **\n * Adds event handler for touchcancel for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.untouchcancel\n [ method ]\n **\n * Removes event handler for touchcancel for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n for (var i = events.length; i--;) {\n (function (eventName) {\n R[eventName] = elproto[eventName] = function (fn, scope) {\n if (R.is(fn, "function")) {\n this.events = this.events || [];\n this.events.push({name: eventName, f: fn, unbind: addEvent(this.shape || this.node || g.doc, eventName, fn, scope || this)});\n }\n return this;\n };\n R["un" + eventName] = elproto["un" + eventName] = function (fn) {\n var events = this.events || [],\n l = events.length;\n while (l--){\n if (events[l].name == eventName && (R.is(fn, "undefined") || events[l].f == fn)) {\n events[l].unbind();\n events.splice(l, 1);\n !events.length && delete this.events;\n }\n }\n return this;\n };\n })(events[i]);\n }\n\n /*\\\n * Element.data\n [ method ]\n **\n * Adds or retrieves given value asociated with given key.\n **\n * See also @Element.removeData\n > Parameters\n - key (string) key to store data\n - value (any) #optional value to store\n = (object) @Element\n * or, if value is not specified:\n = (any) value\n * or, if key and value are not specified:\n = (object) Key/value pairs for all the data associated with the element.\n > Usage\n | for (var i = 0, i < 5, i++) {\n | paper.circle(10 + 15 * i, 10, 10)\n | .attr({fill: "#000"})\n | .data("i", i)\n | .click(function () {\n | alert(this.data("i"));\n | });\n | }\n \\*/\n elproto.data = function (key, value) {\n var data = eldata[this.id] = eldata[this.id] || {};\n if (arguments.length == 0) {\n return data;\n }\n if (arguments.length == 1) {\n if (R.is(key, "object")) {\n for (var i in key) if (key[has](i)) {\n this.data(i, key[i]);\n }\n return this;\n }\n eve("raphael.data.get." + this.id, this, data[key], key);\n return data[key];\n }\n data[key] = value;\n eve("raphael.data.set." + this.id, this, value, key);\n return this;\n };\n /*\\\n * Element.removeData\n [ method ]\n **\n * Removes value associated with an element by given key.\n * If key is not provided, removes all the data of the element.\n > Parameters\n - key (string) #optional key\n = (object) @Element\n \\*/\n elproto.removeData = function (key) {\n if (key == null) {\n eldata[this.id] = {};\n } else {\n eldata[this.id] && delete eldata[this.id][key];\n }\n return this;\n };\n /*\\\n * Element.getData\n [ method ]\n **\n * Retrieves the element data\n = (object) data\n \\*/\n elproto.getData = function () {\n return clone(eldata[this.id] || {});\n };\n /*\\\n * Element.hover\n [ method ]\n **\n * Adds event handlers for hover for the element.\n > Parameters\n - f_in (function) handler for hover in\n - f_out (function) handler for hover out\n - icontext (object) #optional context for hover in handler\n - ocontext (object) #optional context for hover out handler\n = (object) @Element\n \\*/\n elproto.hover = function (f_in, f_out, scope_in, scope_out) {\n return this.mouseover(f_in, scope_in).mouseout(f_out, scope_out || scope_in);\n };\n /*\\\n * Element.unhover\n [ method ]\n **\n * Removes event handlers for hover for the element.\n > Parameters\n - f_in (function) handler for hover in\n - f_out (function) handler for hover out\n = (object) @Element\n \\*/\n elproto.unhover = function (f_in, f_out) {\n return this.unmouseover(f_in).unmouseout(f_out);\n };\n var draggable = [];\n /*\\\n * Element.drag\n [ method ]\n **\n * Adds event handlers for drag of the element.\n > Parameters\n - onmove (function) handler for moving\n - onstart (function) handler for drag start\n - onend (function) handler for drag end\n - mcontext (object) #optional context for moving handler\n - scontext (object) #optional context for drag start handler\n - econtext (object) #optional context for drag end handler\n * Additionaly following `drag` events will be triggered: `drag.start.<id>` on start,\n * `drag.end.<id>` on end and `drag.move.<id>` on every move. When element will be dragged over another element\n * `drag.over.<id>` will be fired as well.\n *\n * Start event and start handler will be called in specified context or in context of the element with following parameters:\n o x (number) x position of the mouse\n o y (number) y position of the mouse\n o event (object) DOM event object\n * Move event and move handler will be called in specified context or in context of the element with following parameters:\n o dx (number) shift by x from the start point\n o dy (number) shift by y from the start point\n o x (number) x position of the mouse\n o y (number) y position of the mouse\n o event (object) DOM event object\n * End event and end handler will be called in specified context or in context of the element with following parameters:\n o event (object) DOM event object\n = (object) @Element\n \\*/\n elproto.drag = function (onmove, onstart, onend, move_scope, start_scope, end_scope) {\n function start(e) {\n (e.originalEvent || e).preventDefault();\n var x = e.clientX,\n y = e.clientY,\n scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft;\n this._drag.id = e.identifier;\n if (supportsTouch && e.touches) {\n var i = e.touches.length, touch;\n while (i--) {\n touch = e.touches[i];\n this._drag.id = touch.identifier;\n if (touch.identifier == this._drag.id) {\n x = touch.clientX;\n y = touch.clientY;\n break;\n }\n }\n }\n this._drag.x = x + scrollX;\n this._drag.y = y + scrollY;\n !drag.length && R.mousemove(dragMove).mouseup(dragUp);\n drag.push({el: this, move_scope: move_scope, start_scope: start_scope, end_scope: end_scope});\n onstart && eve.on("raphael.drag.start." + this.id, onstart);\n onmove && eve.on("raphael.drag.move." + this.id, onmove);\n onend && eve.on("raphael.drag.end." + this.id, onend);\n eve("raphael.drag.start." + this.id, start_scope || move_scope || this, e.clientX + scrollX, e.clientY + scrollY, e);\n }\n this._drag = {};\n draggable.push({el: this, start: start});\n this.mousedown(start);\n return this;\n };\n /*\\\n * Element.onDragOver\n [ method ]\n **\n * Shortcut for assigning event handler for `drag.over.<id>` event, where id is id of the element (see @Element.id).\n > Parameters\n - f (function) handler for event, first argument would be the element you are dragging over\n \\*/\n elproto.onDragOver = function (f) {\n f ? eve.on("raphael.drag.over." + this.id, f) : eve.unbind("raphael.drag.over." + this.id);\n };\n /*\\\n * Element.undrag\n [ method ]\n **\n * Removes all drag event handlers from given element.\n \\*/\n elproto.undrag = function () {\n var i = draggable.length;\n while (i--) if (draggable[i].el == this) {\n this.unmousedown(draggable[i].start);\n draggable.splice(i, 1);\n eve.unbind("raphael.drag.*." + this.id);\n }\n !draggable.length && R.unmousemove(dragMove).unmouseup(dragUp);\n drag = [];\n };\n /*\\\n * Paper.circle\n [ method ]\n **\n * Draws a circle.\n **\n > Parameters\n **\n - x (number) x coordinate of the centre\n - y (number) y coordinate of the centre\n - r (number) radius\n = (object) Rapha\xebl element object with type \u201ccircle\u201d\n **\n > Usage\n | var c = paper.circle(50, 50, 40);\n \\*/\n paperproto.circle = function (x, y, r) {\n var out = R._engine.circle(this, x || 0, y || 0, r || 0);\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.rect\n [ method ]\n *\n * Draws a rectangle.\n **\n > Parameters\n **\n - x (number) x coordinate of the top left corner\n - y (number) y coordinate of the top left corner\n - width (number) width\n - height (number) height\n - r (number) #optional radius for rounded corners, default is 0\n = (object) Rapha\xebl element object with type \u201crect\u201d\n **\n > Usage\n | // regular rectangle\n | var c = paper.rect(10, 10, 50, 50);\n | // rectangle with rounded corners\n | var c = paper.rect(40, 40, 50, 50, 10);\n \\*/\n paperproto.rect = function (x, y, w, h, r) {\n var out = R._engine.rect(this, x || 0, y || 0, w || 0, h || 0, r || 0);\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.ellipse\n [ method ]\n **\n * Draws an ellipse.\n **\n > Parameters\n **\n - x (number) x coordinate of the centre\n - y (number) y coordinate of the centre\n - rx (number) horizontal radius\n - ry (number) vertical radius\n = (object) Rapha\xebl element object with type \u201cellipse\u201d\n **\n > Usage\n | var c = paper.ellipse(50, 50, 40, 20);\n \\*/\n paperproto.ellipse = function (x, y, rx, ry) {\n var out = R._engine.ellipse(this, x || 0, y || 0, rx || 0, ry || 0);\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.path\n [ method ]\n **\n * Creates a path element by given path data string.\n > Parameters\n - pathString (string) #optional path string in SVG format.\n * Path string consists of one-letter commands, followed by comma seprarated arguments in numercal form. Example:\n | "M10,20L30,40"\n * Here we can see two commands: \u201cM\u201d, with arguments `(10, 20)` and \u201cL\u201d with arguments `(30, 40)`. Upper case letter mean command is absolute, lower case\u2014relative.\n *\n # <p>Here is short list of commands available, for more details see <a href="http://www.w3.org/TR/SVG/paths.html#PathData" title="Details of a path\'s data attribute\'s format are described in the SVG specification.">SVG path string format</a>.</p>\n # <table><thead><tr><th>Command</th><th>Name</th><th>Parameters</th></tr></thead><tbody>\n # <tr><td>M</td><td>moveto</td><td>(x y)+</td></tr>\n # <tr><td>Z</td><td>closepath</td><td>(none)</td></tr>\n # <tr><td>L</td><td>lineto</td><td>(x y)+</td></tr>\n # <tr><td>H</td><td>horizontal lineto</td><td>x+</td></tr>\n # <tr><td>V</td><td>vertical lineto</td><td>y+</td></tr>\n # <tr><td>C</td><td>curveto</td><td>(x1 y1 x2 y2 x y)+</td></tr>\n # <tr><td>S</td><td>smooth curveto</td><td>(x2 y2 x y)+</td></tr>\n # <tr><td>Q</td><td>quadratic B\xe9zier curveto</td><td>(x1 y1 x y)+</td></tr>\n # <tr><td>T</td><td>smooth quadratic B\xe9zier curveto</td><td>(x y)+</td></tr>\n # <tr><td>A</td><td>elliptical arc</td><td>(rx ry x-axis-rotation large-arc-flag sweep-flag x y)+</td></tr>\n # <tr><td>R</td><td><a href="http://en.wikipedia.org/wiki/Catmull\u2013Rom_spline#Catmull.E2.80.93Rom_spline">Catmull-Rom curveto</a>*</td><td>x1 y1 (x y)+</td></tr></tbody></table>\n * * \u201cCatmull-Rom curveto\u201d is a not standard SVG command and added in 2.0 to make life easier.\n * Note: there is a special case when path consist of just three commands: \u201cM10,10R\u2026z\u201d. In this case path will smoothly connects to its beginning.\n > Usage\n | var c = paper.path("M10 10L90 90");\n | // draw a diagonal line:\n | // move to 10,10, line to 90,90\n * For example of path strings, check out these icons: http://raphaeljs.com/icons/\n \\*/\n paperproto.path = function (pathString) {\n pathString && !R.is(pathString, string) && !R.is(pathString[0], array) && (pathString += E);\n var out = R._engine.path(R.format[apply](R, arguments), this);\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.image\n [ method ]\n **\n * Embeds an image into the surface.\n **\n > Parameters\n **\n - src (string) URI of the source image\n - x (number) x coordinate position\n - y (number) y coordinate position\n - width (number) width of the image\n - height (number) height of the image\n = (object) Rapha\xebl element object with type \u201cimage\u201d\n **\n > Usage\n | var c = paper.image("apple.png", 10, 10, 80, 80);\n \\*/\n paperproto.image = function (src, x, y, w, h) {\n var out = R._engine.image(this, src || "about:blank", x || 0, y || 0, w || 0, h || 0);\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.text\n [ method ]\n **\n * Draws a text string. If you need line breaks, put \u201c\\n\u201d in the string.\n **\n > Parameters\n **\n - x (number) x coordinate position\n - y (number) y coordinate position\n - text (string) The text string to draw\n = (object) Rapha\xebl element object with type \u201ctext\u201d\n **\n > Usage\n | var t = paper.text(50, 50, "Rapha\xebl\\nkicks\\nbutt!");\n \\*/\n paperproto.text = function (x, y, text) {\n var out = R._engine.text(this, x || 0, y || 0, Str(text));\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.set\n [ method ]\n **\n * Creates array-like object to keep and operate several elements at once.\n * Warning: it doesn\u2019t create any elements for itself in the page, it just groups existing elements.\n * Sets act as pseudo elements \u2014 all methods available to an element can be used on a set.\n = (object) array-like object that represents set of elements\n **\n > Usage\n | var st = paper.set();\n | st.push(\n | paper.circle(10, 10, 5),\n | paper.circle(30, 10, 5)\n | );\n | st.attr({fill: "red"}); // changes the fill of both circles\n \\*/\n paperproto.set = function (itemsArray) {\n !R.is(itemsArray, "array") && (itemsArray = Array.prototype.splice.call(arguments, 0, arguments.length));\n var out = new Set(itemsArray);\n this.__set__ && this.__set__.push(out);\n out["paper"] = this;\n out["type"] = "set";\n return out;\n };\n /*\\\n * Paper.setStart\n [ method ]\n **\n * Creates @Paper.set. All elements that will be created after calling this method and before calling\n * @Paper.setFinish will be added to the set.\n **\n > Usage\n | paper.setStart();\n | paper.circle(10, 10, 5),\n | paper.circle(30, 10, 5)\n | var st = paper.setFinish();\n | st.attr({fill: "red"}); // changes the fill of both circles\n \\*/\n paperproto.setStart = function (set) {\n this.__set__ = set || this.set();\n };\n /*\\\n * Paper.setFinish\n [ method ]\n **\n * See @Paper.setStart. This method finishes catching and returns resulting set.\n **\n = (object) set\n \\*/\n paperproto.setFinish = function (set) {\n var out = this.__set__;\n delete this.__set__;\n return out;\n };\n /*\\\n * Paper.getSize\n [ method ]\n **\n * Obtains current paper actual size.\n **\n = (object)\n \\*/\n paperproto.getSize = function () {\n var container = this.canvas.parentNode;\n return {\n width: container.offsetWidth,\n height: container.offsetHeight\n };\n };\n /*\\\n * Paper.setSize\n [ method ]\n **\n * If you need to change dimensions of the canvas call this method\n **\n > Parameters\n **\n - width (number) new width of the canvas\n - height (number) new height of the canvas\n \\*/\n paperproto.setSize = function (width, height) {\n return R._engine.setSize.call(this, width, height);\n };\n /*\\\n * Paper.setViewBox\n [ method ]\n **\n * Sets the view box of the paper. Practically it gives you ability to zoom and pan whole paper surface by\n * specifying new boundaries.\n **\n > Parameters\n **\n - x (number) new x position, default is `0`\n - y (number) new y position, default is `0`\n - w (number) new width of the canvas\n - h (number) new height of the canvas\n - fit (boolean) `true` if you want graphics to fit into new boundary box\n \\*/\n paperproto.setViewBox = function (x, y, w, h, fit) {\n return R._engine.setViewBox.call(this, x, y, w, h, fit);\n };\n /*\\\n * Paper.top\n [ property ]\n **\n * Points to the topmost element on the paper\n \\*/\n /*\\\n * Paper.bottom\n [ property ]\n **\n * Points to the bottom element on the paper\n \\*/\n paperproto.top = paperproto.bottom = null;\n /*\\\n * Paper.raphael\n [ property ]\n **\n * Points to the @Raphael object/function\n \\*/\n paperproto.raphael = R;\n var getOffset = function (elem) {\n var box = elem.getBoundingClientRect(),\n doc = elem.ownerDocument,\n body = doc.body,\n docElem = doc.documentElement,\n clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,\n top = box.top + (g.win.pageYOffset || docElem.scrollTop || body.scrollTop ) - clientTop,\n left = box.left + (g.win.pageXOffset || docElem.scrollLeft || body.scrollLeft) - clientLeft;\n return {\n y: top,\n x: left\n };\n };\n /*\\\n * Paper.getElementByPoint\n [ method ]\n **\n * Returns you topmost element under given point.\n **\n = (object) Rapha\xebl element object\n > Parameters\n **\n - x (number) x coordinate from the top left corner of the window\n - y (number) y coordinate from the top left corner of the window\n > Usage\n | paper.getElementByPoint(mouseX, mouseY).attr({stroke: "#f00"});\n \\*/\n paperproto.getElementByPoint = function (x, y) {\n var paper = this,\n svg = paper.canvas,\n target = g.doc.elementFromPoint(x, y);\n if (g.win.opera && target.tagName == "svg") {\n var so = getOffset(svg),\n sr = svg.createSVGRect();\n sr.x = x - so.x;\n sr.y = y - so.y;\n sr.width = sr.height = 1;\n var hits = svg.getIntersectionList(sr, null);\n if (hits.length) {\n target = hits[hits.length - 1];\n }\n }\n if (!target) {\n return null;\n }\n while (target.parentNode && target != svg.parentNode && !target.raphael) {\n target = target.parentNode;\n }\n target == paper.canvas.parentNode && (target = svg);\n target = target && target.raphael ? paper.getById(target.raphaelid) : null;\n return target;\n };\n\n /*\\\n * Paper.getElementsByBBox\n [ method ]\n **\n * Returns set of elements that have an intersecting bounding box\n **\n > Parameters\n **\n - bbox (object) bbox to check with\n = (object) @Set\n \\*/\n paperproto.getElementsByBBox = function (bbox) {\n var set = this.set();\n this.forEach(function (el) {\n if (R.isBBoxIntersect(el.getBBox(), bbox)) {\n set.push(el);\n }\n });\n return set;\n };\n\n /*\\\n * Paper.getById\n [ method ]\n **\n * Returns you element by its internal ID.\n **\n > Parameters\n **\n - id (number) id\n = (object) Rapha\xebl element object\n \\*/\n paperproto.getById = function (id) {\n var bot = this.bottom;\n while (bot) {\n if (bot.id == id) {\n return bot;\n }\n bot = bot.next;\n }\n return null;\n };\n /*\\\n * Paper.forEach\n [ method ]\n **\n * Executes given function for each element on the paper\n *\n * If callback function returns `false` it will stop loop running.\n **\n > Parameters\n **\n - callback (function) function to run\n - thisArg (object) context object for the callback\n = (object) Paper object\n > Usage\n | paper.forEach(function (el) {\n | el.attr({ stroke: "blue" });\n | });\n \\*/\n paperproto.forEach = function (callback, thisArg) {\n var bot = this.bottom;\n while (bot) {\n if (callback.call(thisArg, bot) === false) {\n return this;\n }\n bot = bot.next;\n }\n return this;\n };\n /*\\\n * Paper.getElementsByPoint\n [ method ]\n **\n * Returns set of elements that have common point inside\n **\n > Parameters\n **\n - x (number) x coordinate of the point\n - y (number) y coordinate of the point\n = (object) @Set\n \\*/\n paperproto.getElementsByPoint = function (x, y) {\n var set = this.set();\n this.forEach(function (el) {\n if (el.isPointInside(x, y)) {\n set.push(el);\n }\n });\n return set;\n };\n function x_y() {\n return this.x + S + this.y;\n }\n function x_y_w_h() {\n return this.x + S + this.y + S + this.width + " \\xd7 " + this.height;\n }\n /*\\\n * Element.isPointInside\n [ method ]\n **\n * Determine if given point is inside this element\u2019s shape\n **\n > Parameters\n **\n - x (number) x coordinate of the point\n - y (number) y coordinate of the point\n = (boolean) `true` if point inside the shape\n \\*/\n elproto.isPointInside = function (x, y) {\n var rp = this.realPath = getPath[this.type](this);\n if (this.attr(\'transform\') && this.attr(\'transform\').length) {\n rp = R.transformPath(rp, this.attr(\'transform\'));\n }\n return R.isPointInsidePath(rp, x, y);\n };\n /*\\\n * Element.getBBox\n [ method ]\n **\n * Return bounding box for a given element\n **\n > Parameters\n **\n - isWithoutTransform (boolean) flag, `true` if you want to have bounding box before transformations. Default is `false`.\n = (object) Bounding box object:\n o {\n o x: (number) top left corner x\n o y: (number) top left corner y\n o x2: (number) bottom right corner x\n o y2: (number) bottom right corner y\n o width: (number) width\n o height: (number) height\n o }\n \\*/\n elproto.getBBox = function (isWithoutTransform) {\n if (this.removed) {\n return {};\n }\n var _ = this._;\n if (isWithoutTransform) {\n if (_.dirty || !_.bboxwt) {\n this.realPath = getPath[this.type](this);\n _.bboxwt = pathDimensions(this.realPath);\n _.bboxwt.toString = x_y_w_h;\n _.dirty = 0;\n }\n return _.bboxwt;\n }\n if (_.dirty || _.dirtyT || !_.bbox) {\n if (_.dirty || !this.realPath) {\n _.bboxwt = 0;\n this.realPath = getPath[this.type](this);\n }\n _.bbox = pathDimensions(mapPath(this.realPath, this.matrix));\n _.bbox.toString = x_y_w_h;\n _.dirty = _.dirtyT = 0;\n }\n return _.bbox;\n };\n /*\\\n * Element.clone\n [ method ]\n **\n = (object) clone of a given element\n **\n \\*/\n elproto.clone = function () {\n if (this.removed) {\n return null;\n }\n var out = this.paper[this.type]().attr(this.attr());\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Element.glow\n [ method ]\n **\n * Return set of elements that create glow-like effect around given element. See @Paper.set.\n *\n * Note: Glow is not connected to the element. If you change element attributes it won\u2019t adjust itself.\n **\n > Parameters\n **\n - glow (object) #optional parameters object with all properties optional:\n o {\n o width (number) size of the glow, default is `10`\n o fill (boolean) will it be filled, default is `false`\n o opacity (number) opacity, default is `0.5`\n o offsetx (number) horizontal offset, default is `0`\n o offsety (number) vertical offset, default is `0`\n o color (string) glow colour, default is `black`\n o }\n = (object) @Paper.set of elements that represents glow\n \\*/\n elproto.glow = function (glow) {\n if (this.type == "text") {\n return null;\n }\n glow = glow || {};\n var s = {\n width: (glow.width || 10) + (+this.attr("stroke-width") || 1),\n fill: glow.fill || false,\n opacity: glow.opacity == null ? .5 : glow.opacity,\n offsetx: glow.offsetx || 0,\n offsety: glow.offsety || 0,\n color: glow.color || "#000"\n },\n c = s.width / 2,\n r = this.paper,\n out = r.set(),\n path = this.realPath || getPath[this.type](this);\n path = this.matrix ? mapPath(path, this.matrix) : path;\n for (var i = 1; i < c + 1; i++) {\n out.push(r.path(path).attr({\n stroke: s.color,\n fill: s.fill ? s.color : "none",\n "stroke-linejoin": "round",\n "stroke-linecap": "round",\n "stroke-width": +(s.width / c * i).toFixed(3),\n opacity: +(s.opacity / c).toFixed(3)\n }));\n }\n return out.insertBefore(this).translate(s.offsetx, s.offsety);\n };\n var curveslengths = {},\n getPointAtSegmentLength = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length) {\n if (length == null) {\n return bezlen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y);\n } else {\n return R.findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, getTatLen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length));\n }\n },\n getLengthFactory = function (istotal, subpath) {\n return function (path, length, onlystart) {\n path = path2curve(path);\n var x, y, p, l, sp = "", subpaths = {}, point,\n len = 0;\n for (var i = 0, ii = path.length; i < ii; i++) {\n p = path[i];\n if (p[0] == "M") {\n x = +p[1];\n y = +p[2];\n } else {\n l = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);\n if (len + l > length) {\n if (subpath && !subpaths.start) {\n point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);\n sp += ["C" + point.start.x, point.start.y, point.m.x, point.m.y, point.x, point.y];\n if (onlystart) {return sp;}\n subpaths.start = sp;\n sp = ["M" + point.x, point.y + "C" + point.n.x, point.n.y, point.end.x, point.end.y, p[5], p[6]].join();\n len += l;\n x = +p[5];\n y = +p[6];\n continue;\n }\n if (!istotal && !subpath) {\n point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);\n return {x: point.x, y: point.y, alpha: point.alpha};\n }\n }\n len += l;\n x = +p[5];\n y = +p[6];\n }\n sp += p.shift() + p;\n }\n subpaths.end = sp;\n point = istotal ? len : subpath ? subpaths : R.findDotsAtSegment(x, y, p[0], p[1], p[2], p[3], p[4], p[5], 1);\n point.alpha && (point = {x: point.x, y: point.y, alpha: point.alpha});\n return point;\n };\n };\n var getTotalLength = getLengthFactory(1),\n getPointAtLength = getLengthFactory(),\n getSubpathsAtLength = getLengthFactory(0, 1);\n /*\\\n * Raphael.getTotalLength\n [ method ]\n **\n * Returns length of the given path in pixels.\n **\n > Parameters\n **\n - path (string) SVG path string.\n **\n = (number) length.\n \\*/\n R.getTotalLength = getTotalLength;\n /*\\\n * Raphael.getPointAtLength\n [ method ]\n **\n * Return coordinates of the point located at the given length on the given path.\n **\n > Parameters\n **\n - path (string) SVG path string\n - length (number)\n **\n = (object) representation of the point:\n o {\n o x: (number) x coordinate\n o y: (number) y coordinate\n o alpha: (number) angle of derivative\n o }\n \\*/\n R.getPointAtLength = getPointAtLength;\n /*\\\n * Raphael.getSubpath\n [ method ]\n **\n * Return subpath of a given path from given length to given length.\n **\n > Parameters\n **\n - path (string) SVG path string\n - from (number) position of the start of the segment\n - to (number) position of the end of the segment\n **\n = (string) pathstring for the segment\n \\*/\n R.getSubpath = function (path, from, to) {\n if (this.getTotalLength(path) - to < 1e-6) {\n return getSubpathsAtLength(path, from).end;\n }\n var a = getSubpathsAtLength(path, to, 1);\n return from ? getSubpathsAtLength(a, from).end : a;\n };\n /*\\\n * Element.getTotalLength\n [ method ]\n **\n * Returns length of the path in pixels. Only works for element of \u201cpath\u201d type.\n = (number) length.\n \\*/\n elproto.getTotalLength = function () {\n var path = this.getPath();\n if (!path) {\n return;\n }\n\n if (this.node.getTotalLength) {\n return this.node.getTotalLength();\n }\n\n return getTotalLength(path);\n };\n /*\\\n * Element.getPointAtLength\n [ method ]\n **\n * Return coordinates of the point located at the given length on the given path. Only works for element of \u201cpath\u201d type.\n **\n > Parameters\n **\n - length (number)\n **\n = (object) representation of the point:\n o {\n o x: (number) x coordinate\n o y: (number) y coordinate\n o alpha: (number) angle of derivative\n o }\n \\*/\n elproto.getPointAtLength = function (length) {\n var path = this.getPath();\n if (!path) {\n return;\n }\n\n return getPointAtLength(path, length);\n };\n /*\\\n * Element.getPath\n [ method ]\n **\n * Returns path of the element. Only works for elements of \u201cpath\u201d type and simple elements like circle.\n = (object) path\n **\n \\*/\n elproto.getPath = function () {\n var path,\n getPath = R._getPath[this.type];\n\n if (this.type == "text" || this.type == "set") {\n return;\n }\n\n if (getPath) {\n path = getPath(this);\n }\n\n return path;\n };\n /*\\\n * Element.getSubpath\n [ method ]\n **\n * Return subpath of a given element from given length to given length. Only works for element of \u201cpath\u201d type.\n **\n > Parameters\n **\n - from (number) position of the start of the segment\n - to (number) position of the end of the segment\n **\n = (string) pathstring for the segment\n \\*/\n elproto.getSubpath = function (from, to) {\n var path = this.getPath();\n if (!path) {\n return;\n }\n\n return R.getSubpath(path, from, to);\n };\n /*\\\n * Raphael.easing_formulas\n [ property ]\n **\n * Object that contains easing formulas for animation. You could extend it with your own. By default it has following list of easing:\n # <ul>\n # <li>\u201clinear\u201d</li>\n # <li>\u201c<\u201d or \u201ceaseIn\u201d or \u201cease-in\u201d</li>\n # <li>\u201c>\u201d or \u201ceaseOut\u201d or \u201cease-out\u201d</li>\n # <li>\u201c<>\u201d or \u201ceaseInOut\u201d or \u201cease-in-out\u201d</li>\n # <li>\u201cbackIn\u201d or \u201cback-in\u201d</li>\n # <li>\u201cbackOut\u201d or \u201cback-out\u201d</li>\n # <li>\u201celastic\u201d</li>\n # <li>\u201cbounce\u201d</li>\n # </ul>\n # <p>See also <a href="http://raphaeljs.com/easing.html">Easing demo</a>.</p>\n \\*/\n var ef = R.easing_formulas = {\n linear: function (n) {\n return n;\n },\n "<": function (n) {\n return pow(n, 1.7);\n },\n ">": function (n) {\n return pow(n, .48);\n },\n "<>": function (n) {\n var q = .48 - n / 1.04,\n Q = math.sqrt(.1734 + q * q),\n x = Q - q,\n X = pow(abs(x), 1 / 3) * (x < 0 ? -1 : 1),\n y = -Q - q,\n Y = pow(abs(y), 1 / 3) * (y < 0 ? -1 : 1),\n t = X + Y + .5;\n return (1 - t) * 3 * t * t + t * t * t;\n },\n backIn: function (n) {\n var s = 1.70158;\n return n * n * ((s + 1) * n - s);\n },\n backOut: function (n) {\n n = n - 1;\n var s = 1.70158;\n return n * n * ((s + 1) * n + s) + 1;\n },\n elastic: function (n) {\n if (n == !!n) {\n return n;\n }\n return pow(2, -10 * n) * math.sin((n - .075) * (2 * PI) / .3) + 1;\n },\n bounce: function (n) {\n var s = 7.5625,\n p = 2.75,\n l;\n if (n < (1 / p)) {\n l = s * n * n;\n } else {\n if (n < (2 / p)) {\n n -= (1.5 / p);\n l = s * n * n + .75;\n } else {\n if (n < (2.5 / p)) {\n n -= (2.25 / p);\n l = s * n * n + .9375;\n } else {\n n -= (2.625 / p);\n l = s * n * n + .984375;\n }\n }\n }\n return l;\n }\n };\n ef.easeIn = ef["ease-in"] = ef["<"];\n ef.easeOut = ef["ease-out"] = ef[">"];\n ef.easeInOut = ef["ease-in-out"] = ef["<>"];\n ef["back-in"] = ef.backIn;\n ef["back-out"] = ef.backOut;\n\n var animationElements = [],\n requestAnimFrame = window.requestAnimationFrame ||\n window.webkitRequestAnimationFrame ||\n window.mozRequestAnimationFrame ||\n window.oRequestAnimationFrame ||\n window.msRequestAnimationFrame ||\n function (callback) {\n setTimeout(callback, 16);\n },\n animation = function () {\n var Now = +new Date,\n l = 0;\n for (; l < animationElements.length; l++) {\n var e = animationElements[l];\n if (e.el.removed || e.paused) {\n continue;\n }\n var time = Now - e.start,\n ms = e.ms,\n easing = e.easing,\n from = e.from,\n diff = e.diff,\n to = e.to,\n t = e.t,\n that = e.el,\n set = {},\n now,\n init = {},\n key;\n if (e.initstatus) {\n time = (e.initstatus * e.anim.top - e.prev) / (e.percent - e.prev) * ms;\n e.status = e.initstatus;\n delete e.initstatus;\n e.stop && animationElements.splice(l--, 1);\n } else {\n e.status = (e.prev + (e.percent - e.prev) * (time / ms)) / e.anim.top;\n }\n if (time < 0) {\n continue;\n }\n if (time < ms) {\n var pos = easing(time / ms);\n for (var attr in from) if (from[has](attr)) {\n switch (availableAnimAttrs[attr]) {\n case nu:\n now = +from[attr] + pos * ms * diff[attr];\n break;\n case "colour":\n now = "rgb(" + [\n upto255(round(from[attr].r + pos * ms * diff[attr].r)),\n upto255(round(from[attr].g + pos * ms * diff[attr].g)),\n upto255(round(from[attr].b + pos * ms * diff[attr].b))\n ].join(",") + ")";\n break;\n case "path":\n now = [];\n for (var i = 0, ii = from[attr].length; i < ii; i++) {\n now[i] = [from[attr][i][0]];\n for (var j = 1, jj = from[attr][i].length; j < jj; j++) {\n now[i][j] = +from[attr][i][j] + pos * ms * diff[attr][i][j];\n }\n now[i] = now[i].join(S);\n }\n now = now.join(S);\n break;\n case "transform":\n if (diff[attr].real) {\n now = [];\n for (i = 0, ii = from[attr].length; i < ii; i++) {\n now[i] = [from[attr][i][0]];\n for (j = 1, jj = from[attr][i].length; j < jj; j++) {\n now[i][j] = from[attr][i][j] + pos * ms * diff[attr][i][j];\n }\n }\n } else {\n var get = function (i) {\n return +from[attr][i] + pos * ms * diff[attr][i];\n };\n // now = [["r", get(2), 0, 0], ["t", get(3), get(4)], ["s", get(0), get(1), 0, 0]];\n now = [["m", get(0), get(1), get(2), get(3), get(4), get(5)]];\n }\n break;\n case "csv":\n if (attr == "clip-rect") {\n now = [];\n i = 4;\n while (i--) {\n now[i] = +from[attr][i] + pos * ms * diff[attr][i];\n }\n }\n break;\n default:\n var from2 = [][concat](from[attr]);\n now = [];\n i = that.paper.customAttributes[attr].length;\n while (i--) {\n now[i] = +from2[i] + pos * ms * diff[attr][i];\n }\n break;\n }\n set[attr] = now;\n }\n that.attr(set);\n (function (id, that, anim) {\n setTimeout(function () {\n eve("raphael.anim.frame." + id, that, anim);\n });\n })(that.id, that, e.anim);\n } else {\n (function(f, el, a) {\n setTimeout(function() {\n eve("raphael.anim.frame." + el.id, el, a);\n eve("raphael.anim.finish." + el.id, el, a);\n R.is(f, "function") && f.call(el);\n });\n })(e.callback, that, e.anim);\n that.attr(to);\n animationElements.splice(l--, 1);\n if (e.repeat > 1 && !e.next) {\n for (key in to) if (to[has](key)) {\n init[key] = e.totalOrigin[key];\n }\n e.el.attr(init);\n runAnimation(e.anim, e.el, e.anim.percents[0], null, e.totalOrigin, e.repeat - 1);\n }\n if (e.next && !e.stop) {\n runAnimation(e.anim, e.el, e.next, null, e.totalOrigin, e.repeat);\n }\n }\n }\n animationElements.length && requestAnimFrame(animation);\n },\n upto255 = function (color) {\n return color > 255 ? 255 : color < 0 ? 0 : color;\n };\n /*\\\n * Element.animateWith\n [ method ]\n **\n * Acts similar to @Element.animate, but ensure that given animation runs in sync with another given element.\n **\n > Parameters\n **\n - el (object) element to sync with\n - anim (object) animation to sync with\n - params (object) #optional final attributes for the element, see also @Element.attr\n - ms (number) #optional number of milliseconds for animation to run\n - easing (string) #optional easing type. Accept on of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\n - callback (function) #optional callback function. Will be called at the end of animation.\n * or\n - element (object) element to sync with\n - anim (object) animation to sync with\n - animation (object) #optional animation object, see @Raphael.animation\n **\n = (object) original element\n \\*/\n elproto.animateWith = function (el, anim, params, ms, easing, callback) {\n var element = this;\n if (element.removed) {\n callback && callback.call(element);\n return element;\n }\n var a = params instanceof Animation ? params : R.animation(params, ms, easing, callback),\n x, y;\n runAnimation(a, element, a.percents[0], null, element.attr());\n for (var i = 0, ii = animationElements.length; i < ii; i++) {\n if (animationElements[i].anim == anim && animationElements[i].el == el) {\n animationElements[ii - 1].start = animationElements[i].start;\n break;\n }\n }\n return element;\n //\n //\n // var a = params ? R.animation(params, ms, easing, callback) : anim,\n // status = element.status(anim);\n // return this.animate(a).status(a, status * anim.ms / a.ms);\n };\n function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) {\n var cx = 3 * p1x,\n bx = 3 * (p2x - p1x) - cx,\n ax = 1 - cx - bx,\n cy = 3 * p1y,\n by = 3 * (p2y - p1y) - cy,\n ay = 1 - cy - by;\n function sampleCurveX(t) {\n return ((ax * t + bx) * t + cx) * t;\n }\n function solve(x, epsilon) {\n var t = solveCurveX(x, epsilon);\n return ((ay * t + by) * t + cy) * t;\n }\n function solveCurveX(x, epsilon) {\n var t0, t1, t2, x2, d2, i;\n for(t2 = x, i = 0; i < 8; i++) {\n x2 = sampleCurveX(t2) - x;\n if (abs(x2) < epsilon) {\n return t2;\n }\n d2 = (3 * ax * t2 + 2 * bx) * t2 + cx;\n if (abs(d2) < 1e-6) {\n break;\n }\n t2 = t2 - x2 / d2;\n }\n t0 = 0;\n t1 = 1;\n t2 = x;\n if (t2 < t0) {\n return t0;\n }\n if (t2 > t1) {\n return t1;\n }\n while (t0 < t1) {\n x2 = sampleCurveX(t2);\n if (abs(x2 - x) < epsilon) {\n return t2;\n }\n if (x > x2) {\n t0 = t2;\n } else {\n t1 = t2;\n }\n t2 = (t1 - t0) / 2 + t0;\n }\n return t2;\n }\n return solve(t, 1 / (200 * duration));\n }\n elproto.onAnimation = function (f) {\n f ? eve.on("raphael.anim.frame." + this.id, f) : eve.unbind("raphael.anim.frame." + this.id);\n return this;\n };\n function Animation(anim, ms) {\n var percents = [],\n newAnim = {};\n this.ms = ms;\n this.times = 1;\n if (anim) {\n for (var attr in anim) if (anim[has](attr)) {\n newAnim[toFloat(attr)] = anim[attr];\n percents.push(toFloat(attr));\n }\n percents.sort(sortByNumber);\n }\n this.anim = newAnim;\n this.top = percents[percents.length - 1];\n this.percents = percents;\n }\n /*\\\n * Animation.delay\n [ method ]\n **\n * Creates a copy of existing animation object with given delay.\n **\n > Parameters\n **\n - delay (number) number of ms to pass between animation start and actual animation\n **\n = (object) new altered Animation object\n | var anim = Raphael.animation({cx: 10, cy: 20}, 2e3);\n | circle1.animate(anim); // run the given animation immediately\n | circle2.animate(anim.delay(500)); // run the given animation after 500 ms\n \\*/\n Animation.prototype.delay = function (delay) {\n var a = new Animation(this.anim, this.ms);\n a.times = this.times;\n a.del = +delay || 0;\n return a;\n };\n /*\\\n * Animation.repeat\n [ method ]\n **\n * Creates a copy of existing animation object with given repetition.\n **\n > Parameters\n **\n - repeat (number) number iterations of animation. For infinite animation pass `Infinity`\n **\n = (object) new altered Animation object\n \\*/\n Animation.prototype.repeat = function (times) {\n var a = new Animation(this.anim, this.ms);\n a.del = this.del;\n a.times = math.floor(mmax(times, 0)) || 1;\n return a;\n };\n function runAnimation(anim, element, percent, status, totalOrigin, times) {\n percent = toFloat(percent);\n var params,\n isInAnim,\n isInAnimSet,\n percents = [],\n next,\n prev,\n timestamp,\n ms = anim.ms,\n from = {},\n to = {},\n diff = {};\n if (status) {\n for (i = 0, ii = animationElements.length; i < ii; i++) {\n var e = animationElements[i];\n if (e.el.id == element.id && e.anim == anim) {\n if (e.percent != percent) {\n animationElements.splice(i, 1);\n isInAnimSet = 1;\n } else {\n isInAnim = e;\n }\n element.attr(e.totalOrigin);\n break;\n }\n }\n } else {\n status = +to; // NaN\n }\n for (var i = 0, ii = anim.percents.length; i < ii; i++) {\n if (anim.percents[i] == percent || anim.percents[i] > status * anim.top) {\n percent = anim.percents[i];\n prev = anim.percents[i - 1] || 0;\n ms = ms / anim.top * (percent - prev);\n next = anim.percents[i + 1];\n params = anim.anim[percent];\n break;\n } else if (status) {\n element.attr(anim.anim[anim.percents[i]]);\n }\n }\n if (!params) {\n return;\n }\n if (!isInAnim) {\n for (var attr in params) if (params[has](attr)) {\n if (availableAnimAttrs[has](attr) || element.paper.customAttributes[has](attr)) {\n from[attr] = element.attr(attr);\n (from[attr] == null) && (from[attr] = availableAttrs[attr]);\n to[attr] = params[attr];\n switch (availableAnimAttrs[attr]) {\n case nu:\n diff[attr] = (to[attr] - from[attr]) / ms;\n break;\n case "colour":\n from[attr] = R.getRGB(from[attr]);\n var toColour = R.getRGB(to[attr]);\n diff[attr] = {\n r: (toColour.r - from[attr].r) / ms,\n g: (toColour.g - from[attr].g) / ms,\n b: (toColour.b - from[attr].b) / ms\n };\n break;\n case "path":\n var pathes = path2curve(from[attr], to[attr]),\n toPath = pathes[1];\n from[attr] = pathes[0];\n diff[attr] = [];\n for (i = 0, ii = from[attr].length; i < ii; i++) {\n diff[attr][i] = [0];\n for (var j = 1, jj = from[attr][i].length; j < jj; j++) {\n diff[attr][i][j] = (toPath[i][j] - from[attr][i][j]) / ms;\n }\n }\n break;\n case "transform":\n var _ = element._,\n eq = equaliseTransform(_[attr], to[attr]);\n if (eq) {\n from[attr] = eq.from;\n to[attr] = eq.to;\n diff[attr] = [];\n diff[attr].real = true;\n for (i = 0, ii = from[attr].length; i < ii; i++) {\n diff[attr][i] = [from[attr][i][0]];\n for (j = 1, jj = from[attr][i].length; j < jj; j++) {\n diff[attr][i][j] = (to[attr][i][j] - from[attr][i][j]) / ms;\n }\n }\n } else {\n var m = (element.matrix || new Matrix),\n to2 = {\n _: {transform: _.transform},\n getBBox: function () {\n return element.getBBox(1);\n }\n };\n from[attr] = [\n m.a,\n m.b,\n m.c,\n m.d,\n m.e,\n m.f\n ];\n extractTransform(to2, to[attr]);\n to[attr] = to2._.transform;\n diff[attr] = [\n (to2.matrix.a - m.a) / ms,\n (to2.matrix.b - m.b) / ms,\n (to2.matrix.c - m.c) / ms,\n (to2.matrix.d - m.d) / ms,\n (to2.matrix.e - m.e) / ms,\n (to2.matrix.f - m.f) / ms\n ];\n // from[attr] = [_.sx, _.sy, _.deg, _.dx, _.dy];\n // var to2 = {_:{}, getBBox: function () { return element.getBBox(); }};\n // extractTransform(to2, to[attr]);\n // diff[attr] = [\n // (to2._.sx - _.sx) / ms,\n // (to2._.sy - _.sy) / ms,\n // (to2._.deg - _.deg) / ms,\n // (to2._.dx - _.dx) / ms,\n // (to2._.dy - _.dy) / ms\n // ];\n }\n break;\n case "csv":\n var values = Str(params[attr])[split](separator),\n from2 = Str(from[attr])[split](separator);\n if (attr == "clip-rect") {\n from[attr] = from2;\n diff[attr] = [];\n i = from2.length;\n while (i--) {\n diff[attr][i] = (values[i] - from[attr][i]) / ms;\n }\n }\n to[attr] = values;\n break;\n default:\n values = [][concat](params[attr]);\n from2 = [][concat](from[attr]);\n diff[attr] = [];\n i = element.paper.customAttributes[attr].length;\n while (i--) {\n diff[attr][i] = ((values[i] || 0) - (from2[i] || 0)) / ms;\n }\n break;\n }\n }\n }\n var easing = params.easing,\n easyeasy = R.easing_formulas[easing];\n if (!easyeasy) {\n easyeasy = Str(easing).match(bezierrg);\n if (easyeasy && easyeasy.length == 5) {\n var curve = easyeasy;\n easyeasy = function (t) {\n return CubicBezierAtTime(t, +curve[1], +curve[2], +curve[3], +curve[4], ms);\n };\n } else {\n easyeasy = pipe;\n }\n }\n timestamp = params.start || anim.start || +new Date;\n e = {\n anim: anim,\n percent: percent,\n timestamp: timestamp,\n start: timestamp + (anim.del || 0),\n status: 0,\n initstatus: status || 0,\n stop: false,\n ms: ms,\n easing: easyeasy,\n from: from,\n diff: diff,\n to: to,\n el: element,\n callback: params.callback,\n prev: prev,\n next: next,\n repeat: times || anim.times,\n origin: element.attr(),\n totalOrigin: totalOrigin\n };\n animationElements.push(e);\n if (status && !isInAnim && !isInAnimSet) {\n e.stop = true;\n e.start = new Date - ms * status;\n if (animationElements.length == 1) {\n return animation();\n }\n }\n if (isInAnimSet) {\n e.start = new Date - e.ms * status;\n }\n animationElements.length == 1 && requestAnimFrame(animation);\n } else {\n isInAnim.initstatus = status;\n isInAnim.start = new Date - isInAnim.ms * status;\n }\n eve("raphael.anim.start." + element.id, element, anim);\n }\n /*\\\n * Raphael.animation\n [ method ]\n **\n * Creates an animation object that can be passed to the @Element.animate or @Element.animateWith methods.\n * See also @Animation.delay and @Animation.repeat methods.\n **\n > Parameters\n **\n - params (object) final attributes for the element, see also @Element.attr\n - ms (number) number of milliseconds for animation to run\n - easing (string) #optional easing type. Accept one of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\n - callback (function) #optional callback function. Will be called at the end of animation.\n **\n = (object) @Animation\n \\*/\n R.animation = function (params, ms, easing, callback) {\n if (params instanceof Animation) {\n return params;\n }\n if (R.is(easing, "function") || !easing) {\n callback = callback || easing || null;\n easing = null;\n }\n params = Object(params);\n ms = +ms || 0;\n var p = {},\n json,\n attr;\n for (attr in params) if (params[has](attr) && toFloat(attr) != attr && toFloat(attr) + "%" != attr) {\n json = true;\n p[attr] = params[attr];\n }\n if (!json) {\n // if percent-like syntax is used and end-of-all animation callback used\n if(callback){\n // find the last one\n var lastKey = 0;\n for(var i in params){\n var percent = toInt(i);\n if(params[has](i) && percent > lastKey){\n lastKey = percent;\n }\n }\n lastKey += \'%\';\n // if already defined callback in the last keyframe, skip\n !params[lastKey].callback && (params[lastKey].callback = callback);\n }\n return new Animation(params, ms);\n } else {\n easing && (p.easing = easing);\n callback && (p.callback = callback);\n return new Animation({100: p}, ms);\n }\n };\n /*\\\n * Element.animate\n [ method ]\n **\n * Creates and starts animation for given element.\n **\n > Parameters\n **\n - params (object) final attributes for the element, see also @Element.attr\n - ms (number) number of milliseconds for animation to run\n - easing (string) #optional easing type. Accept one of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\n - callback (function) #optional callback function. Will be called at the end of animation.\n * or\n - animation (object) animation object, see @Raphael.animation\n **\n = (object) original element\n \\*/\n elproto.animate = function (params, ms, easing, callback) {\n var element = this;\n if (element.removed) {\n callback && callback.call(element);\n return element;\n }\n var anim = params instanceof Animation ? params : R.animation(params, ms, easing, callback);\n runAnimation(anim, element, anim.percents[0], null, element.attr());\n return element;\n };\n /*\\\n * Element.setTime\n [ method ]\n **\n * Sets the status of animation of the element in milliseconds. Similar to @Element.status method.\n **\n > Parameters\n **\n - anim (object) animation object\n - value (number) number of milliseconds from the beginning of the animation\n **\n = (object) original element if `value` is specified\n * Note, that during animation following events are triggered:\n *\n * On each animation frame event `anim.frame.<id>`, on start `anim.start.<id>` and on end `anim.finish.<id>`.\n \\*/\n elproto.setTime = function (anim, value) {\n if (anim && value != null) {\n this.status(anim, mmin(value, anim.ms) / anim.ms);\n }\n return this;\n };\n /*\\\n * Element.status\n [ method ]\n **\n * Gets or sets the status of animation of the element.\n **\n > Parameters\n **\n - anim (object) #optional animation object\n - value (number) #optional 0 \u2013 1. If specified, method works like a setter and sets the status of a given animation to the value. This will cause animation to jump to the given position.\n **\n = (number) status\n * or\n = (array) status if `anim` is not specified. Array of objects in format:\n o {\n o anim: (object) animation object\n o status: (number) status\n o }\n * or\n = (object) original element if `value` is specified\n \\*/\n elproto.status = function (anim, value) {\n var out = [],\n i = 0,\n len,\n e;\n if (value != null) {\n runAnimation(anim, this, -1, mmin(value, 1));\n return this;\n } else {\n len = animationElements.length;\n for (; i < len; i++) {\n e = animationElements[i];\n if (e.el.id == this.id && (!anim || e.anim == anim)) {\n if (anim) {\n return e.status;\n }\n out.push({\n anim: e.anim,\n status: e.status\n });\n }\n }\n if (anim) {\n return 0;\n }\n return out;\n }\n };\n /*\\\n * Element.pause\n [ method ]\n **\n * Stops animation of the element with ability to resume it later on.\n **\n > Parameters\n **\n - anim (object) #optional animation object\n **\n = (object) original element\n \\*/\n elproto.pause = function (anim) {\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\n if (eve("raphael.anim.pause." + this.id, this, animationElements[i].anim) !== false) {\n animationElements[i].paused = true;\n }\n }\n return this;\n };\n /*\\\n * Element.resume\n [ method ]\n **\n * Resumes animation if it was paused with @Element.pause method.\n **\n > Parameters\n **\n - anim (object) #optional animation object\n **\n = (object) original element\n \\*/\n elproto.resume = function (anim) {\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\n var e = animationElements[i];\n if (eve("raphael.anim.resume." + this.id, this, e.anim) !== false) {\n delete e.paused;\n this.status(e.anim, e.status);\n }\n }\n return this;\n };\n /*\\\n * Element.stop\n [ method ]\n **\n * Stops animation of the element.\n **\n > Parameters\n **\n - anim (object) #optional animation object\n **\n = (object) original element\n \\*/\n elproto.stop = function (anim) {\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\n if (eve("raphael.anim.stop." + this.id, this, animationElements[i].anim) !== false) {\n animationElements.splice(i--, 1);\n }\n }\n return this;\n };\n function stopAnimation(paper) {\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.paper == paper) {\n animationElements.splice(i--, 1);\n }\n }\n eve.on("raphael.remove", stopAnimation);\n eve.on("raphael.clear", stopAnimation);\n elproto.toString = function () {\n return "Rapha\\xebl\\u2019s object";\n };\n\n // Set\n var Set = function (items) {\n this.items = [];\n this.length = 0;\n this.type = "set";\n if (items) {\n for (var i = 0, ii = items.length; i < ii; i++) {\n if (items[i] && (items[i].constructor == elproto.constructor || items[i].constructor == Set)) {\n this[this.items.length] = this.items[this.items.length] = items[i];\n this.length++;\n }\n }\n }\n },\n setproto = Set.prototype;\n /*\\\n * Set.push\n [ method ]\n **\n * Adds each argument to the current set.\n = (object) original element\n \\*/\n setproto.push = function () {\n var item,\n len;\n for (var i = 0, ii = arguments.length; i < ii; i++) {\n item = arguments[i];\n if (item && (item.constructor == elproto.constructor || item.constructor == Set)) {\n len = this.items.length;\n this[len] = this.items[len] = item;\n this.length++;\n }\n }\n return this;\n };\n /*\\\n * Set.pop\n [ method ]\n **\n * Removes last element and returns it.\n = (object) element\n \\*/\n setproto.pop = function () {\n this.length && delete this[this.length--];\n return this.items.pop();\n };\n /*\\\n * Set.forEach\n [ method ]\n **\n * Executes given function for each element in the set.\n *\n * If function returns `false` it will stop loop running.\n **\n > Parameters\n **\n - callback (function) function to run\n - thisArg (object) context object for the callback\n = (object) Set object\n \\*/\n setproto.forEach = function (callback, thisArg) {\n for (var i = 0, ii = this.items.length; i < ii; i++) {\n if (callback.call(thisArg, this.items[i], i) === false) {\n return this;\n }\n }\n return this;\n };\n for (var method in elproto) if (elproto[has](method)) {\n setproto[method] = (function (methodname) {\n return function () {\n var arg = arguments;\n return this.forEach(function (el) {\n el[methodname][apply](el, arg);\n });\n };\n })(method);\n }\n setproto.attr = function (name, value) {\n if (name && R.is(name, array) && R.is(name[0], "object")) {\n for (var j = 0, jj = name.length; j < jj; j++) {\n this.items[j].attr(name[j]);\n }\n } else {\n for (var i = 0, ii = this.items.length; i < ii; i++) {\n this.items[i].attr(name, value);\n }\n }\n return this;\n };\n /*\\\n * Set.clear\n [ method ]\n **\n * Removes all elements from the set\n \\*/\n setproto.clear = function () {\n while (this.length) {\n this.pop();\n }\n };\n /*\\\n * Set.splice\n [ method ]\n **\n * Removes given element from the set\n **\n > Parameters\n **\n - index (number) position of the deletion\n - count (number) number of element to remove\n - insertion\u2026 (object) #optional elements to insert\n = (object) set elements that were deleted\n \\*/\n setproto.splice = function (index, count, insertion) {\n index = index < 0 ? mmax(this.length + index, 0) : index;\n count = mmax(0, mmin(this.length - index, count));\n var tail = [],\n todel = [],\n args = [],\n i;\n for (i = 2; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n for (i = 0; i < count; i++) {\n todel.push(this[index + i]);\n }\n for (; i < this.length - index; i++) {\n tail.push(this[index + i]);\n }\n var arglen = args.length;\n for (i = 0; i < arglen + tail.length; i++) {\n this.items[index + i] = this[index + i] = i < arglen ? args[i] : tail[i - arglen];\n }\n i = this.items.length = this.length -= count - arglen;\n while (this[i]) {\n delete this[i++];\n }\n return new Set(todel);\n };\n /*\\\n * Set.exclude\n [ method ]\n **\n * Removes given element from the set\n **\n > Parameters\n **\n - element (object) element to remove\n = (boolean) `true` if object was found & removed from the set\n \\*/\n setproto.exclude = function (el) {\n for (var i = 0, ii = this.length; i < ii; i++) if (this[i] == el) {\n this.splice(i, 1);\n return true;\n }\n };\n setproto.animate = function (params, ms, easing, callback) {\n (R.is(easing, "function") || !easing) && (callback = easing || null);\n var len = this.items.length,\n i = len,\n item,\n set = this,\n collector;\n if (!len) {\n return this;\n }\n callback && (collector = function () {\n !--len && callback.call(set);\n });\n easing = R.is(easing, string) ? easing : collector;\n var anim = R.animation(params, ms, easing, collector);\n item = this.items[--i].animate(anim);\n while (i--) {\n this.items[i] && !this.items[i].removed && this.items[i].animateWith(item, anim, anim);\n (this.items[i] && !this.items[i].removed) || len--;\n }\n return this;\n };\n setproto.insertAfter = function (el) {\n var i = this.items.length;\n while (i--) {\n this.items[i].insertAfter(el);\n }\n return this;\n };\n\n // FREEGROUP Fix: RaphaelJS changes the order of the elements of the \'set\' by calling the toBack method.\n // "toBack" must be called reverse to care about the rendering order. In this case we override\n // the buggy default implementation here.\n //\n setproto.toBack = function () {\n var i = this.items.length;\n while (i--) {\n this.items[i].toBack();\n }\n return this;\n };\n\n // FREEGROUP Fix: Unfortunately raphael didn\'T expose the "set.prototype". In this case\n // I must add all extension to the raphael implementation itself.\n // Provide support method for easy check if the elements are visible.\n setproto.isVisible = function () {\n var i = this.items.length;\n var visible = false;\n while (i--) {\n visible = visible ||this.items[i].isVisible();\n }\n return visible;\n };\n\n\n // FREEGROUP FIX: Adding "isWithoutTransform" to the function and redirect them to the elements\n setproto.getBBox = function (isWithoutTransform) {\n var x = [],\n y = [],\n x2 = [],\n y2 = [];\n for (var i = this.items.length; i--;) if (!this.items[i].removed) {\n var box = this.items[i].getBBox(isWithoutTransform);\n x.push(box.x);\n y.push(box.y);\n x2.push(box.x + box.width);\n y2.push(box.y + box.height);\n }\n x = mmin[apply](0, x);\n y = mmin[apply](0, y);\n x2 = mmax[apply](0, x2);\n y2 = mmax[apply](0, y2);\n return {\n x: x,\n y: y,\n x2: x2,\n y2: y2,\n width: x2 - x,\n height: y2 - y\n };\n };\n setproto.clone = function (s) {\n s = this.paper.set();\n for (var i = 0, ii = this.items.length; i < ii; i++) {\n s.push(this.items[i].clone());\n }\n return s;\n };\n setproto.toString = function () {\n return "Rapha\\xebl\\u2018s set";\n };\n\n setproto.glow = function(glowConfig) {\n var ret = this.paper.set();\n this.forEach(function(shape, index){\n var g = shape.glow(glowConfig);\n if(g != null){\n g.forEach(function(shape2, index2){\n ret.push(shape2);\n });\n }\n });\n return ret;\n };\n\n\n /*\\\n * Set.isPointInside\n [ method ]\n **\n * Determine if given point is inside this set\u2019s elements\n **\n > Parameters\n **\n - x (number) x coordinate of the point\n - y (number) y coordinate of the point\n = (boolean) `true` if point is inside any of the set\'s elements\n \\*/\n setproto.isPointInside = function (x, y) {\n var isPointInside = false;\n this.forEach(function (el) {\n if (el.isPointInside(x, y)) {\n isPointInside = true;\n return false; // stop loop\n }\n });\n return isPointInside;\n };\n\n /*\\\n * Raphael.registerFont\n [ method ]\n **\n * Adds given font to the registered set of fonts for Rapha\xebl. Should be used as an internal call from within Cuf\xf3n\u2019s font file.\n * Returns original parameter, so it could be used with chaining.\n # <a href="http://wiki.github.com/sorccu/cufon/about">More about Cuf\xf3n and how to convert your font form TTF, OTF, etc to JavaScript file.</a>\n **\n > Parameters\n **\n - font (object) the font to register\n = (object) the font you passed in\n > Usage\n | Cufon.registerFont(Raphael.registerFont({\u2026}));\n \\*/\n R.registerFont = function (font) {\n if (!font.face) {\n return font;\n }\n this.fonts = this.fonts || {};\n var fontcopy = {\n w: font.w,\n face: {},\n glyphs: {}\n },\n family = font.face["font-family"];\n for (var prop in font.face) if (font.face[has](prop)) {\n fontcopy.face[prop] = font.face[prop];\n }\n if (this.fonts[family]) {\n this.fonts[family].push(fontcopy);\n } else {\n this.fonts[family] = [fontcopy];\n }\n if (!font.svg) {\n fontcopy.face["units-per-em"] = toInt(font.face["units-per-em"], 10);\n for (var glyph in font.glyphs) if (font.glyphs[has](glyph)) {\n var path = font.glyphs[glyph];\n fontcopy.glyphs[glyph] = {\n w: path.w,\n k: {},\n d: path.d && "M" + path.d.replace(/[mlcxtrv]/g, function (command) {\n return {l: "L", c: "C", x: "z", t: "m", r: "l", v: "c"}[command] || "M";\n }) + "z"\n };\n if (path.k) {\n for (var k in path.k) if (path[has](k)) {\n fontcopy.glyphs[glyph].k[k] = path.k[k];\n }\n }\n }\n }\n return font;\n };\n /*\\\n * Paper.getFont\n [ method ]\n **\n * Finds font object in the registered fonts by given parameters. You could specify only one word from the font name, like \u201cMyriad\u201d for \u201cMyriad Pro\u201d.\n **\n > Parameters\n **\n - family (string) font family name or any word from it\n - weight (string) #optional font weight\n - style (string) #optional font style\n - stretch (string) #optional font stretch\n = (object) the font object\n > Usage\n | paper.print(100, 100, "Test string", paper.getFont("Times", 800), 30);\n \\*/\n paperproto.getFont = function (family, weight, style, stretch) {\n stretch = stretch || "normal";\n style = style || "normal";\n weight = +weight || {normal: 400, bold: 700, lighter: 300, bolder: 800}[weight] || 400;\n if (!R.fonts) {\n return;\n }\n var font = R.fonts[family];\n if (!font) {\n var name = new RegExp("(^|\\\\s)" + family.replace(/[^\\w\\d\\s+!~.:_-]/g, E) + "(\\\\s|$)", "i");\n for (var fontName in R.fonts) if (R.fonts[has](fontName)) {\n if (name.test(fontName)) {\n font = R.fonts[fontName];\n break;\n }\n }\n }\n var thefont;\n if (font) {\n for (var i = 0, ii = font.length; i < ii; i++) {\n thefont = font[i];\n if (thefont.face["font-weight"] == weight && (thefont.face["font-style"] == style || !thefont.face["font-style"]) && thefont.face["font-stretch"] == stretch) {\n break;\n }\n }\n }\n return thefont;\n };\n /*\\\n * Paper.print\n [ method ]\n **\n * Creates path that represent given text written using given font at given position with given size.\n * Result of the method is path element that contains whole text as a separate path.\n **\n > Parameters\n **\n - x (number) x position of the text\n - y (number) y position of the text\n - string (string) text to print\n - font (object) font object, see @Paper.getFont\n - size (number) #optional size of the font, default is `16`\n - origin (string) #optional could be `"baseline"` or `"middle"`, default is `"middle"`\n - letter_spacing (number) #optional number in range `-1..1`, default is `0`\n - line_spacing (number) #optional number in range `1..3`, default is `1`\n = (object) resulting path element, which consist of all letters\n > Usage\n | var txt = r.print(10, 50, "print", r.getFont("Museo"), 30).attr({fill: "#fff"});\n \\*/\n paperproto.print = function (x, y, string, font, size, origin, letter_spacing, line_spacing) {\n origin = origin || "middle"; // baseline|middle\n letter_spacing = mmax(mmin(letter_spacing || 0, 1), -1);\n line_spacing = mmax(mmin(line_spacing || 1, 3), 1);\n var letters = Str(string)[split](E),\n shift = 0,\n notfirst = 0,\n path = E,\n scale;\n R.is(font, "string") && (font = this.getFont(font));\n if (font) {\n scale = (size || 16) / font.face["units-per-em"];\n var bb = font.face.bbox[split](separator),\n top = +bb[0],\n lineHeight = bb[3] - bb[1],\n shifty = 0,\n height = +bb[1] + (origin == "baseline" ? lineHeight + (+font.face.descent) : lineHeight / 2);\n for (var i = 0, ii = letters.length; i < ii; i++) {\n if (letters[i] == "\\n") {\n shift = 0;\n curr = 0;\n notfirst = 0;\n shifty += lineHeight * line_spacing;\n } else {\n var prev = notfirst && font.glyphs[letters[i - 1]] || {},\n curr = font.glyphs[letters[i]];\n shift += notfirst ? (prev.w || font.w) + (prev.k && prev.k[letters[i]] || 0) + (font.w * letter_spacing) : 0;\n notfirst = 1;\n }\n if (curr && curr.d) {\n path += R.transformPath(curr.d, ["t", shift * scale, shifty * scale, "s", scale, scale, top, height, "t", (x - top) / scale, (y - height) / scale]);\n }\n }\n }\n return this.path(path).attr({\n fill: "#000",\n stroke: "none"\n });\n };\n\n /*\\\n * Paper.add\n [ method ]\n **\n * Imports elements in JSON array in format `{type: type, <attributes>}`\n **\n > Parameters\n **\n - json (array)\n = (object) resulting set of imported elements\n > Usage\n | paper.add([\n | {\n | type: "circle",\n | cx: 10,\n | cy: 10,\n | r: 5\n | },\n | {\n | type: "rect",\n | x: 10,\n | y: 10,\n | width: 10,\n | height: 10,\n | fill: "#fc0"\n | }\n | ]);\n \\*/\n paperproto.add = function (json) {\n if (R.is(json, "array")) {\n var res = this.set(),\n i = 0,\n ii = json.length,\n j;\n for (; i < ii; i++) {\n j = json[i] || {};\n elements[has](j.type) && res.push(this[j.type]().attr(j));\n }\n }\n return res;\n };\n\n /*\\\n * Raphael.format\n [ method ]\n **\n * Simple format function. Replaces construction of type \u201c`{<number>}`\u201d to the corresponding argument.\n **\n > Parameters\n **\n - token (string) string to format\n - \u2026 (string) rest of arguments will be treated as parameters for replacement\n = (string) formated string\n > Usage\n | var x = 10,\n | y = 20,\n | width = 40,\n | height = 50;\n | // this will draw a rectangular shape equivalent to "M10,20h40v50h-40z"\n | paper.path(Raphael.format("M{0},{1}h{2}v{3}h{4}z", x, y, width, height, -width));\n \\*/\n R.format = function (token, params) {\n var args = R.is(params, array) ? [0][concat](params) : arguments;\n token && R.is(token, string) && args.length - 1 && (token = token.replace(formatrg, function (str, i) {\n return args[++i] == null ? E : args[i];\n }));\n return token || E;\n };\n /*\\\n * Raphael.fullfill\n [ method ]\n **\n * A little bit more advanced format function than @Raphael.format. Replaces construction of type \u201c`{<name>}`\u201d to the corresponding argument.\n **\n > Parameters\n **\n - token (string) string to format\n - json (object) object which properties will be used as a replacement\n = (string) formated string\n > Usage\n | // this will draw a rectangular shape equivalent to "M10,20h40v50h-40z"\n | paper.path(Raphael.fullfill("M{x},{y}h{dim.width}v{dim.height}h{dim[\'negative width\']}z", {\n | x: 10,\n | y: 20,\n | dim: {\n | width: 40,\n | height: 50,\n | "negative width": -40\n | }\n | }));\n \\*/\n R.fullfill = (function () {\n var tokenRegex = /\\{([^\\}]+)\\}/g,\n objNotationRegex = /(?:(?:^|\\.)(.+?)(?=\\[|\\.|$|\\()|\\[(\'|")(.+?)\\2\\])(\\(\\))?/g, // matches .xxxxx or ["xxxxx"] to run over object properties\n replacer = function (all, key, obj) {\n var res = obj;\n key.replace(objNotationRegex, function (all, name, quote, quotedName, isFunc) {\n name = name || quotedName;\n if (res) {\n if (name in res) {\n res = res[name];\n }\n typeof res == "function" && isFunc && (res = res());\n }\n });\n res = (res == null || res == obj ? all : res) + "";\n return res;\n };\n return function (str, obj) {\n return String(str).replace(tokenRegex, function (all, key) {\n return replacer(all, key, obj);\n });\n };\n })();\n /*\\\n * Raphael.ninja\n [ method ]\n **\n * If you want to leave no trace of Rapha\xebl (Well, Rapha\xebl creates only one global variable `Raphael`, but anyway.) You can use `ninja` method.\n * Beware, that in this case plugins could stop working, because they are depending on global variable existence.\n **\n = (object) Raphael object\n > Usage\n | (function (local_raphael) {\n | var paper = local_raphael(10, 10, 320, 200);\n | \u2026\n | })(Raphael.ninja());\n \\*/\n R.ninja = function () {\n oldRaphael.was ? (g.win.Raphael = oldRaphael.is) : delete Raphael;\n return R;\n };\n /*\\\n * Raphael.st\n [ property (object) ]\n **\n * You can add your own method to elements and sets. It is wise to add a set method for each element method\n * you added, so you will be able to call the same method on sets too.\n **\n * See also @Raphael.el.\n > Usage\n | Raphael.el.red = function () {\n | this.attr({fill: "#f00"});\n | };\n | Raphael.st.red = function () {\n | this.forEach(function (el) {\n | el.red();\n | });\n | };\n | // then use it\n | paper.set(paper.circle(100, 100, 20), paper.circle(110, 100, 20)).red();\n \\*/\n R.st = setproto;\n\n eve.on("raphael.DOMload", function () {\n loaded = true;\n });\n\n // Firefox <3.6 fix: http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html\n (function (doc, loaded, f) {\n if (doc.readyState == null && doc.addEventListener){\n doc.addEventListener(loaded, f = function () {\n doc.removeEventListener(loaded, f, false);\n doc.readyState = "complete";\n }, false);\n doc.readyState = "loading";\n }\n function isLoaded() {\n (/in/).test(doc.readyState) ? setTimeout(isLoaded, 9) : R.eve("raphael.DOMload");\n }\n isLoaded();\n })(document, "DOMContentLoaded");\n\n return R;\n}));\n\n// \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \\\\\n// \u2502 Rapha\xebl 2.1.4 - JavaScript Vector Library \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 SVG Module \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 Copyright (c) 2008-2011 Dmitry Baranovskiy (http://raphaeljs.com) \u2502 \\\\\n// \u2502 Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) \u2502 \\\\\n// \u2502 Licensed under the MIT (http://raphaeljs.com/license.html) license. \u2502 \\\\\n// \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \\\\\n\n(function (glob, factory) {\n if (typeof define === "function" && define.amd) {\n define("raphael.svg", ["raphael.core"], function(raphael) {\n return factory(raphael);\n });\n } else if (typeof exports === "object") {\n factory(require("./raphael.core"));\n } else {\n factory(glob.Raphael);\n }\n}(this, function(R) {\n if (R && !R.svg) {\n return;\n }\n\n var has = "hasOwnProperty",\n Str = String,\n toFloat = parseFloat,\n toInt = parseInt,\n math = Math,\n mmax = math.max,\n abs = math.abs,\n pow = math.pow,\n separator = /[, ]+/,\n eve = R.eve,\n E = "",\n S = " ";\n var xlink = "http://www.w3.org/1999/xlink",\n markers = {\n block: "M5,0 0,2.5 5,5z",\n classic: "M5,0 0,2.5 5,5 3.5,3 3.5,2z",\n diamond: "M2.5,0 5,2.5 2.5,5 0,2.5z",\n open: "M6,1 1,3.5 6,6",\n oval: "M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"\n },\n markerCounter = {};\n R.toString = function () {\n return "Your browser supports SVG.\\nYou are running Rapha\\xebl " + this.version;\n };\n var $ = function (el, attr) {\n if (attr) {\n if (typeof el == "string") {\n el = $(el);\n }\n for (var key in attr) if (attr[has](key)) {\n if (key.substring(0, 6) == "xlink:") {\n el.setAttributeNS(xlink, key.substring(6), Str(attr[key]));\n } else {\n try {\n el.setAttribute(key, Str(attr[key]));\n }\n catch(e){\n debugger\n }\n }\n }\n } else {\n el = R._g.doc.createElementNS("http://www.w3.org/2000/svg", el);\n el.style && (el.style.webkitTapHighlightColor = "rgba(0,0,0,0)");\n }\n return el;\n },\n addGradientFill = function (element, gradient) {\n var type = "linear",\n id = element.id + gradient,\n fx = .5, fy = .5,\n o = element.node,\n SVG = element.paper,\n s = o.style,\n el = R._g.doc.getElementById(id);\n if (!el) {\n gradient = Str(gradient).replace(R._radial_gradient, function (all, _fx, _fy) {\n type = "radial";\n if (_fx && _fy) {\n fx = toFloat(_fx);\n fy = toFloat(_fy);\n var dir = ((fy > .5) * 2 - 1);\n pow(fx - .5, 2) + pow(fy - .5, 2) > .25 &&\n (fy = math.sqrt(.25 - pow(fx - .5, 2)) * dir + .5) &&\n fy != .5 &&\n (fy = fy.toFixed(5) - 1e-5 * dir);\n }\n return E;\n });\n gradient = gradient.split(/\\s*\\-\\s*/);\n if (type == "linear") {\n var angle = gradient.shift();\n angle = -toFloat(angle);\n if (isNaN(angle)) {\n return null;\n }\n var vector = [0, 0, math.cos(R.rad(angle)), math.sin(R.rad(angle))],\n max = 1 / (mmax(abs(vector[2]), abs(vector[3])) || 1);\n vector[2] *= max;\n vector[3] *= max;\n if (vector[2] < 0) {\n vector[0] = -vector[2];\n vector[2] = 0;\n }\n if (vector[3] < 0) {\n vector[1] = -vector[3];\n vector[3] = 0;\n }\n }\n var dots = R._parseDots(gradient);\n if (!dots) {\n return null;\n }\n id = id.replace(/[\\(\\)\\s,\\xb0#]/g, "_");\n\n if (element.gradient && id != element.gradient.id) {\n SVG.defs.removeChild(element.gradient);\n delete element.gradient;\n }\n\n if (!element.gradient) {\n el = $(type + "Gradient", {id: id});\n element.gradient = el;\n $(el, type == "radial" ? {\n fx: fx,\n fy: fy\n } : {\n x1: vector[0],\n y1: vector[1],\n x2: vector[2],\n y2: vector[3],\n gradientTransform: element.matrix.invert()\n });\n SVG.defs.appendChild(el);\n for (var i = 0, ii = dots.length; i < ii; i++) {\n el.appendChild($("stop", {\n offset: dots[i].offset ? dots[i].offset : i ? "100%" : "0%",\n "stop-color": dots[i].color || "#fff",\n "stop-opacity": isFinite(dots[i].opacity) ? dots[i].opacity : 1\n }));\n }\n }\n }\n /* FREEGROUP: don\'t push URL parameter into the drawing. This will break Apps with "?" in the URL\n * see: https://github.com/DmitryBaranovskiy/raphael/issues/693\n **/\n var url ="";//document.location.protocol + "//" + document.location.host + document.location.pathname;\n $(o, {\n fill: "url(\'" + url + "#" + id + "\')",\n opacity: 1,\n "fill-opacity": 1\n });\n\n s.fill = E;\n s.opacity = 1;\n s.fillOpacity = 1;\n return 1;\n },\n updatePosition = function (o) {\n var bbox = o.getBBox(1);\n $(o.pattern, {patternTransform: o.matrix.invert() + " translate(" + bbox.x + "," + bbox.y + ")"});\n },\n addArrow = function (o, value, isEnd) {\n if (o.type == "path") {\n var values = Str(value).toLowerCase().split("-"),\n p = o.paper,\n se = isEnd ? "end" : "start",\n node = o.node,\n attrs = o.attrs,\n stroke = attrs["stroke-width"],\n i = values.length,\n type = "classic",\n from,\n to,\n dx,\n refX,\n attr,\n w = 3,\n h = 3,\n t = 5;\n while (i--) {\n switch (values[i]) {\n case "block":\n case "classic":\n case "oval":\n case "diamond":\n case "open":\n case "none":\n type = values[i];\n break;\n case "wide": h = 5; break;\n case "narrow": h = 2; break;\n case "long": w = 5; break;\n case "short": w = 2; break;\n }\n }\n if (type == "open") {\n w += 2;\n h += 2;\n t += 2;\n dx = 1;\n refX = isEnd ? 4 : 1;\n attr = {\n fill: "none",\n stroke: attrs.stroke\n };\n } else {\n refX = dx = w / 2;\n attr = {\n fill: attrs.stroke,\n stroke: "none"\n };\n }\n if (o._.arrows) {\n if (isEnd) {\n o._.arrows.endPath && markerCounter[o._.arrows.endPath]--;\n o._.arrows.endMarker && markerCounter[o._.arrows.endMarker]--;\n } else {\n o._.arrows.startPath && markerCounter[o._.arrows.startPath]--;\n o._.arrows.startMarker && markerCounter[o._.arrows.startMarker]--;\n }\n } else {\n o._.arrows = {};\n }\n if (type != "none") {\n var pathId = "raphael-marker-" + type,\n markerId = "raphael-marker-" + se + type + w + h + "-obj" + o.id;\n if (!R._g.doc.getElementById(pathId)) {\n p.defs.appendChild($($("path"), {\n "stroke-linecap": "round",\n d: markers[type],\n id: pathId\n }));\n markerCounter[pathId] = 1;\n } else {\n markerCounter[pathId]++;\n }\n var marker = R._g.doc.getElementById(markerId),\n use;\n if (!marker) {\n marker = $($("marker"), {\n id: markerId,\n markerHeight: h,\n markerWidth: w,\n orient: "auto",\n refX: refX,\n refY: h / 2\n });\n use = $($("use"), {\n "xlink:href": "#" + pathId,\n transform: (isEnd ? "rotate(180 " + w / 2 + " " + h / 2 + ") " : E) + "scale(" + w / t + "," + h / t + ")",\n "stroke-width": (1 / ((w / t + h / t) / 2)).toFixed(4)\n });\n marker.appendChild(use);\n p.defs.appendChild(marker);\n markerCounter[markerId] = 1;\n } else {\n markerCounter[markerId]++;\n use = marker.getElementsByTagName("use")[0];\n }\n $(use, attr);\n var delta = dx * (type != "diamond" && type != "oval");\n if (isEnd) {\n from = o._.arrows.startdx * stroke || 0;\n to = R.getTotalLength(attrs.path) - delta * stroke;\n } else {\n from = delta * stroke;\n to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);\n }\n attr = {};\n attr["marker-" + se] = "url(#" + markerId + ")";\n if (to || from) {\n attr.d = R.getSubpath(attrs.path, from, to);\n }\n $(node, attr);\n o._.arrows[se + "Path"] = pathId;\n o._.arrows[se + "Marker"] = markerId;\n o._.arrows[se + "dx"] = delta;\n o._.arrows[se + "Type"] = type;\n o._.arrows[se + "String"] = value;\n } else {\n if (isEnd) {\n from = o._.arrows.startdx * stroke || 0;\n to = R.getTotalLength(attrs.path) - from;\n } else {\n from = 0;\n to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);\n }\n o._.arrows[se + "Path"] && $(node, {d: R.getSubpath(attrs.path, from, to)});\n delete o._.arrows[se + "Path"];\n delete o._.arrows[se + "Marker"];\n delete o._.arrows[se + "dx"];\n delete o._.arrows[se + "Type"];\n delete o._.arrows[se + "String"];\n }\n for (attr in markerCounter) if (markerCounter[has](attr) && !markerCounter[attr]) {\n var item = R._g.doc.getElementById(attr);\n item && item.parentNode.removeChild(item);\n }\n }\n },\n dasharray = {\n "-": [3, 1],\n ".": [1, 1],\n "-.": [3, 1, 1, 1],\n "-..": [3, 1, 1, 1, 1, 1],\n ". ": [1, 3],\n "- ": [4, 3],\n "--": [8, 3],\n "- .": [4, 3, 1, 3],\n "--.": [8, 3, 1, 3],\n "--..": [8, 3, 1, 3, 1, 3]\n },\n addDashes = function (o, value, params) {\n value = dasharray[Str(value).toLowerCase()];\n if (value) {\n var width = o.attrs["stroke-width"] || "1",\n butt = {round: width, square: width, butt: 0}[o.attrs["stroke-linecap"] || params["stroke-linecap"]] || 0,\n dashes = [],\n i = value.length;\n while (i--) {\n dashes[i] = value[i] * width + ((i % 2) ? 1 : -1) * butt;\n }\n $(o.node, {"stroke-dasharray": dashes.join(",")});\n }\n else {\n $(o.node, {"stroke-dasharray": "none"});\n }\n },\n setFillAndStroke = function (o, params) {\n var node = o.node,\n attrs = o.attrs,\n vis = node.style.visibility;\n node.style.visibility = "hidden";\n for (var att in params) {\n if (params[has](att)) {\n if (!R._availableAttrs[has](att)) {\n continue;\n }\n var value = params[att];\n attrs[att] = value;\n switch (att) {\n case "blur":\n o.blur(value);\n break;\n case "title":\n var title = node.getElementsByTagName("title");\n\n // Use the existing <title>.\n if (title.length && (title = title[0])) {\n title.firstChild.nodeValue = value;\n } else {\n title = $("title");\n var val = R._g.doc.createTextNode(value);\n title.appendChild(val);\n node.appendChild(title);\n }\n break;\n case "href":\n case "target":\n var pn = node.parentNode;\n if (pn.tagName.toLowerCase() != "a") {\n var hl = $("a");\n pn.insertBefore(hl, node);\n hl.appendChild(node);\n pn = hl;\n }\n if (att == "target") {\n pn.setAttributeNS(xlink, "show", value == "blank" ? "new" : value);\n } else {\n pn.setAttributeNS(xlink, att, value);\n }\n break;\n case "cursor":\n node.style.cursor = value;\n break;\n case "transform":\n o.transform(value);\n break;\n case "arrow-start":\n addArrow(o, value);\n break;\n case "arrow-end":\n addArrow(o, value, 1);\n break;\n case "clip-rect":\n var rect = Str(value).split(separator);\n if (rect.length == 4) {\n o.clip && o.clip.parentNode.parentNode.removeChild(o.clip.parentNode);\n var el = $("clipPath"),\n rc = $("rect");\n el.id = R.createUUID();\n $(rc, {\n x: rect[0],\n y: rect[1],\n width: rect[2],\n height: rect[3]\n });\n el.appendChild(rc);\n o.paper.defs.appendChild(el);\n $(node, {"clip-path": "url(#" + el.id + ")"});\n o.clip = rc;\n }\n if (!value) {\n var path = node.getAttribute("clip-path");\n if (path) {\n var clip = R._g.doc.getElementById(path.replace(/(^url\\(#|\\)$)/g, E));\n clip && clip.parentNode.removeChild(clip);\n $(node, {"clip-path": E});\n delete o.clip;\n }\n }\n break;\n case "path":\n if (o.type == "path") {\n $(node, {d: value ? attrs.path = R._pathToAbsolute(value) : "M0,0"});\n o._.dirty = 1;\n if (o._.arrows) {\n "startString" in o._.arrows && addArrow(o, o._.arrows.startString);\n "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\n }\n }\n break;\n case "width":\n node.setAttribute(att, value);\n o._.dirty = 1;\n if (attrs.fx) {\n att = "x";\n value = attrs.x;\n } else {\n break;\n }\n case "x":\n if (attrs.fx) {\n value = -attrs.x - (attrs.width || 0);\n }\n case "rx":\n if (att == "rx" && o.type == "rect") {\n break;\n }\n case "cx":\n node.setAttribute(att, value);\n o.pattern && updatePosition(o);\n o._.dirty = 1;\n break;\n case "height":\n node.setAttribute(att, value);\n o._.dirty = 1;\n if (attrs.fy) {\n att = "y";\n value = attrs.y;\n } else {\n break;\n }\n case "y":\n if (attrs.fy) {\n value = -attrs.y - (attrs.height || 0);\n }\n case "ry":\n if (att == "ry" && o.type == "rect") {\n break;\n }\n case "cy":\n node.setAttribute(att, value);\n o.pattern && updatePosition(o);\n o._.dirty = 1;\n break;\n case "r":\n if (o.type == "rect") {\n $(node, {rx: value, ry: value});\n } else {\n node.setAttribute(att, value);\n }\n o._.dirty = 1;\n break;\n case "src":\n if (o.type == "image") {\n node.setAttributeNS(xlink, "href", value);\n }\n break;\n case "stroke-width":\n /* FREEGROUP fix\n * draw2d version 3.0.3\n *\n * don\'t scale the line width if the user resize an shape/element.\n * Obscure stroke-width in case of "Draw2D touch" usage\n */\n if(!attrs["stroke-scale"]){\n if (o._.sx != 1 || o._.sy != 1) {\n value /= mmax(abs(o._.sx), abs(o._.sy)) || 1;\n }\n if (o.paper._vbSize) {\n // value *= o.paper._vbSize;\n }\n }\n\n\n node.setAttribute(att, value);\n if (attrs["stroke-dasharray"]) {\n addDashes(o, attrs["stroke-dasharray"], params);\n }\n if (o._.arrows) {\n "startString" in o._.arrows && addArrow(o, o._.arrows.startString);\n "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\n }\n break;\n case "stroke-dasharray":\n addDashes(o, value, params);\n break;\n case "fill":\n var isURL = Str(value).match(R._ISURL);\n if (isURL) {\n el = $("pattern");\n var ig = $("image");\n el.id = R.createUUID();\n $(el, {x: 0, y: 0, patternUnits: "userSpaceOnUse", height: 1, width: 1});\n $(ig, {x: 0, y: 0, "xlink:href": isURL[1]});\n el.appendChild(ig);\n\n (function (el) {\n R._preload(isURL[1], function () {\n var w = this.offsetWidth,\n h = this.offsetHeight;\n $(el, {width: w, height: h});\n $(ig, {width: w, height: h});\n });\n })(el);\n o.paper.defs.appendChild(el);\n $(node, {fill: "url(#" + el.id + ")"});\n o.pattern = el;\n o.pattern && updatePosition(o);\n break;\n }\n var clr = R.getRGB(value);\n if (!clr.error) {\n delete params.gradient;\n delete attrs.gradient;\n !R.is(attrs.opacity, "undefined") &&\n R.is(params.opacity, "undefined") &&\n $(node, {opacity: attrs.opacity});\n !R.is(attrs["fill-opacity"], "undefined") &&\n R.is(params["fill-opacity"], "undefined") &&\n $(node, {"fill-opacity": attrs["fill-opacity"]});\n } else if ((o.type == "circle" || o.type == "ellipse" || Str(value).charAt() != "r") && addGradientFill(o, value)) {\n if ("opacity" in attrs || "fill-opacity" in attrs) {\n var gradient = R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\\(#|\\)$/g, E));\n if (gradient) {\n var stops = gradient.getElementsByTagName("stop");\n $(stops[stops.length - 1], {"stop-opacity": ("opacity" in attrs ? attrs.opacity : 1) * ("fill-opacity" in attrs ? attrs["fill-opacity"] : 1)});\n }\n }\n attrs.gradient = value;\n attrs.fill = "none";\n break;\n }\n clr[has]("opacity") && $(node, {"fill-opacity": clr.opacity > 1 ? clr.opacity / 100 : clr.opacity});\n case "stroke":\n clr = R.getRGB(value);\n node.setAttribute(att, clr.hex);\n att == "stroke" && clr[has]("opacity") && $(node, {"stroke-opacity": clr.opacity > 1 ? clr.opacity / 100 : clr.opacity});\n if (att == "stroke" && o._.arrows) {\n "startString" in o._.arrows && addArrow(o, o._.arrows.startString);\n "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\n }\n break;\n case "gradient":\n (o.type == "circle" || o.type == "ellipse" || Str(value).charAt() != "r") && addGradientFill(o, value);\n break;\n case "opacity":\n if (attrs.gradient && !attrs[has]("stroke-opacity")) {\n $(node, {"stroke-opacity": value > 1 ? value / 100 : value});\n }\n // fall\n case "fill-opacity":\n if (attrs.gradient) {\n gradient = R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\\(#|\\)$/g, E));\n if (gradient) {\n stops = gradient.getElementsByTagName("stop");\n // FREEGROUP FIX\n for (gri = 0, grii = stops.length; gri < grii; gri++) {\n $(stops[gri], {"stop-opacity": value});\n }\n // END FIX\n }\n break;\n }\n default:\n att == "font-size" && (value = toInt(value, 10) + "px");\n var cssrule = att.replace(/(\\-.)/g, function (w) {\n return w.substring(1).toUpperCase();\n });\n node.style[cssrule] = value;\n o._.dirty = 1;\n node.setAttribute(att, value);\n break;\n }\n }\n }\n\n tuneText(o, params);\n node.style.visibility = vis;\n },\n leading = 1.2,\n tuneText = function (el, params) {\n if (el.type != "text" || !(params[has]("text") || params[has]("font") || params[has]("font-size") || params[has]("x") || params[has]("y"))) {\n return;\n }\n var a = el.attrs,\n node = el.node,\n fontSize = node.firstChild ? toInt(R._g.doc.defaultView.getComputedStyle(node.firstChild, E).getPropertyValue("font-size"), 10) : 10;\n\n if (params[has]("text")) {\n a.text = params.text;\n while (node.firstChild) {\n node.removeChild(node.firstChild);\n }\n var texts = Str(params.text).split("\\n"),\n tspans = [],\n tspan;\n for (var i = 0, ii = texts.length; i < ii; i++) {\n tspan = $("tspan");\n i && $(tspan, {dy: fontSize * leading, x: a.x});\n tspan.appendChild(R._g.doc.createTextNode(texts[i]));\n node.appendChild(tspan);\n tspans[i] = tspan;\n }\n } else {\n tspans = node.getElementsByTagName("tspan");\n for (i = 0, ii = tspans.length; i < ii; i++) if (i) {\n $(tspans[i], {dy: fontSize * leading, x: a.x});\n } else {\n $(tspans[0], {dy: 0});\n }\n }\n $(node, {x: a.x, y: a.y});\n el._.dirty = 1;\n var bb = el._getBBox(),\n dif = a.y - (bb.y + bb.height / 2);\n dif && R.is(dif, "finite") && $(tspans[0], {dy: dif});\n },\n getRealNode = function (node) {\n if (node.parentNode && node.parentNode.tagName.toLowerCase() === "a") {\n return node.parentNode;\n } else {\n return node;\n }\n },\n Element = function (node, svg) {\n var X = 0,\n Y = 0;\n /*\\\n * Element.node\n [ property (object) ]\n **\n * Gives you a reference to the DOM object, so you can assign event handlers or just mess around.\n **\n * Note: Don\u2019t mess with it.\n > Usage\n | // draw a circle at coordinate 10,10 with radius of 10\n | var c = paper.circle(10, 10, 10);\n | c.node.onclick = function () {\n | c.attr("fill", "red");\n | };\n \\*/\n this[0] = this.node = node;\n /*\\\n * Element.raphael\n [ property (object) ]\n **\n * Internal reference to @Raphael object. In case it is not available.\n > Usage\n | Raphael.el.red = function () {\n | var hsb = this.paper.raphael.rgb2hsb(this.attr("fill"));\n | hsb.h = 1;\n | this.attr({fill: this.paper.raphael.hsb2rgb(hsb).hex});\n | }\n \\*/\n node.raphael = true;\n /*\\\n * Element.id\n [ property (number) ]\n **\n * Unique id of the element. Especially useful when you want to listen to events of the element,\n * because all events are fired in format `<module>.<action>.<id>`. Also useful for @Paper.getById method.\n \\*/\n this.id = R._oid++;\n node.raphaelid = this.id;\n this.matrix = R.matrix();\n this.realPath = null;\n /*\\\n * Element.paper\n [ property (object) ]\n **\n * Internal reference to \u201cpaper\u201d where object drawn. Mainly for use in plugins and element extensions.\n > Usage\n | Raphael.el.cross = function () {\n | this.attr({fill: "red"});\n | this.paper.path("M10,10L50,50M50,10L10,50")\n | .attr({stroke: "red"});\n | }\n \\*/\n this.paper = svg;\n this.attrs = this.attrs || {};\n this._ = {\n transform: [],\n sx: 1,\n sy: 1,\n deg: 0,\n dx: 0,\n dy: 0,\n dirty: 1\n };\n !svg.bottom && (svg.bottom = this);\n /*\\\n * Element.prev\n [ property (object) ]\n **\n * Reference to the previous element in the hierarchy.\n \\*/\n this.prev = svg.top;\n svg.top && (svg.top.next = this);\n svg.top = this;\n /*\\\n * Element.next\n [ property (object) ]\n **\n * Reference to the next element in the hierarchy.\n \\*/\n this.next = null;\n },\n elproto = R.el;\n\n Element.prototype = elproto;\n elproto.constructor = Element;\n\n R._engine.path = function (pathString, SVG) {\n var el = $("path");\n SVG.canvas && SVG.canvas.appendChild(el);\n var p = new Element(el, SVG);\n p.type = "path";\n setFillAndStroke(p, {\n fill: "none",\n stroke: "#000",\n path: pathString\n });\n return p;\n };\n /*\\\n * Element.rotate\n [ method ]\n **\n * Deprecated! Use @Element.transform instead.\n * Adds rotation by given angle around given point to the list of\n * transformations of the element.\n > Parameters\n - deg (number) angle in degrees\n - cx (number) #optional x coordinate of the centre of rotation\n - cy (number) #optional y coordinate of the centre of rotation\n * If cx & cy aren\u2019t specified centre of the shape is used as a point of rotation.\n = (object) @Element\n \\*/\n elproto.rotate = function (deg, cx, cy) {\n if (this.removed) {\n return this;\n }\n deg = Str(deg).split(separator);\n if (deg.length - 1) {\n cx = toFloat(deg[1]);\n cy = toFloat(deg[2]);\n }\n deg = toFloat(deg[0]);\n (cy == null) && (cx = cy);\n if (cx == null || cy == null) {\n var bbox = this.getBBox(1);\n cx = bbox.x + bbox.width / 2;\n cy = bbox.y + bbox.height / 2;\n }\n this.transform(this._.transform.concat([["r", deg, cx, cy]]));\n return this;\n };\n /*\\\n * Element.scale\n [ method ]\n **\n * Deprecated! Use @Element.transform instead.\n * Adds scale by given amount relative to given point to the list of\n * transformations of the element.\n > Parameters\n - sx (number) horisontal scale amount\n - sy (number) vertical scale amount\n - cx (number) #optional x coordinate of the centre of scale\n - cy (number) #optional y coordinate of the centre of scale\n * If cx & cy aren\u2019t specified centre of the shape is used instead.\n = (object) @Element\n \\*/\n elproto.scale = function (sx, sy, cx, cy) {\n if (this.removed) {\n return this;\n }\n sx = Str(sx).split(separator);\n if (sx.length - 1) {\n sy = toFloat(sx[1]);\n cx = toFloat(sx[2]);\n cy = toFloat(sx[3]);\n }\n sx = toFloat(sx[0]);\n (sy == null) && (sy = sx);\n (cy == null) && (cx = cy);\n if (cx == null || cy == null) {\n var bbox = this.getBBox(1);\n }\n cx = cx == null ? bbox.x + bbox.width / 2 : cx;\n cy = cy == null ? bbox.y + bbox.height / 2 : cy;\n this.transform(this._.transform.concat([["s", sx, sy, cx, cy]]));\n return this;\n };\n /*\\\n * Element.translate\n [ method ]\n **\n * Deprecated! Use @Element.transform instead.\n * Adds translation by given amount to the list of transformations of the element.\n > Parameters\n - dx (number) horisontal shift\n - dy (number) vertical shift\n = (object) @Element\n \\*/\n elproto.translate = function (dx, dy) {\n if (this.removed) {\n return this;\n }\n dx = Str(dx).split(separator);\n if (dx.length - 1) {\n dy = toFloat(dx[1]);\n }\n dx = toFloat(dx[0]) || 0;\n dy = +dy || 0;\n this.transform(this._.transform.concat([["t", dx, dy]]));\n return this;\n };\n /*\\\n * Element.transform\n [ method ]\n **\n * Adds transformation to the element which is separate to other attributes,\n * i.e. translation doesn\u2019t change `x` or `y` of the rectange. The format\n * of transformation string is similar to the path string syntax:\n | "t100,100r30,100,100s2,2,100,100r45s1.5"\n * Each letter is a command. There are four commands: `t` is for translate, `r` is for rotate, `s` is for\n * scale and `m` is for matrix.\n *\n * There are also alternative \u201cabsolute\u201d translation, rotation and scale: `T`, `R` and `S`. They will not take previous transformation into account. For example, `...T100,0` will always move element 100 px horisontally, while `...t100,0` could move it vertically if there is `r90` before. Just compare results of `r90t100,0` and `r90T100,0`.\n *\n * So, the example line above could be read like \u201ctranslate by 100, 100; rotate 30\xb0 around 100, 100; scale twice around 100, 100;\n * rotate 45\xb0 around centre; scale 1.5 times relative to centre\u201d. As you can see rotate and scale commands have origin\n * coordinates as optional parameters, the default is the centre point of the element.\n * Matrix accepts six parameters.\n > Usage\n | var el = paper.rect(10, 20, 300, 200);\n | // translate 100, 100, rotate 45\xb0, translate -100, 0\n | el.transform("t100,100r45t-100,0");\n | // if you want you can append or prepend transformations\n | el.transform("...t50,50");\n | el.transform("s2...");\n | // or even wrap\n | el.transform("t50,50...t-50-50");\n | // to reset transformation call method with empty string\n | el.transform("");\n | // to get current value call it without parameters\n | console.log(el.transform());\n > Parameters\n - tstr (string) #optional transformation string\n * If tstr isn\u2019t specified\n = (string) current transformation string\n * else\n = (object) @Element\n \\*/\n elproto.transform = function (tstr) {\n var _ = this._;\n if (tstr == null) {\n return _.transform;\n }\n R._extractTransform(this, tstr);\n\n this.clip && $(this.clip, {transform: this.matrix.invert()});\n this.pattern && updatePosition(this);\n this.node && $(this.node, {transform: this.matrix});\n\n if (_.sx != 1 || _.sy != 1) {\n var sw = this.attrs[has]("stroke-width") ? this.attrs["stroke-width"] : 1;\n this.attr({"stroke-width": sw});\n }\n\n //Reduce transform string\n _.transform = this.matrix.toTransformString();\n\n return this;\n };\n /*\\\n * Element.hide\n [ method ]\n **\n * Makes element invisible. See @Element.show.\n = (object) @Element\n \\*/\n elproto.hide = function () {\n if(!this.removed) this.node.style.display = "none";\n return this;\n };\n /*\\\n * Element.show\n [ method ]\n **\n * Makes element visible. See @Element.hide.\n = (object) @Element\n \\*/\n elproto.show = function () {\n if(!this.removed) this.node.style.display = "";\n return this;\n };\n /*\\\n * Element.remove\n [ method ]\n **\n * Removes element from the paper.\n \\*/\n elproto.remove = function () {\n var node = getRealNode(this.node);\n if (this.removed || !node.parentNode) {\n return;\n }\n var paper = this.paper;\n paper.__set__ && paper.__set__.exclude(this);\n eve.unbind("raphael.*.*." + this.id);\n if (this.gradient) {\n paper.defs.removeChild(this.gradient);\n }\n R._tear(this, paper);\n\n node.parentNode.removeChild(node);\n\n // Remove custom data for element\n this.removeData();\n\n for (var i in this) {\n this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;\n }\n this.removed = true;\n };\n elproto._getBBox = function () {\n if (this.node.style.display == "none") {\n this.show();\n var hide = true;\n }\n var canvasHidden = false,\n containerStyle;\n if (this.paper.canvas.parentElement) {\n containerStyle = this.paper.canvas.parentElement.style;\n } //IE10+ can\'t find parentElement\n else if (this.paper.canvas.parentNode) {\n containerStyle = this.paper.canvas.parentNode.style;\n }\n\n if(containerStyle && containerStyle.display == "none") {\n canvasHidden = true;\n containerStyle.display = "";\n }\n var bbox = {};\n try {\n bbox = this.node.getBBox();\n } catch(e) {\n // Firefox 3.0.x, 25.0.1 (probably more versions affected) play badly here - possible fix\n bbox = {\n x: this.node.clientLeft,\n y: this.node.clientTop,\n width: this.node.clientWidth,\n height: this.node.clientHeight\n }\n } finally {\n bbox = bbox || {};\n if(canvasHidden){\n containerStyle.display = "none";\n }\n }\n hide && this.hide();\n return bbox;\n };\n /*\\\n * Element.attr\n [ method ]\n **\n * Sets the attributes of the element.\n > Parameters\n - attrName (string) attribute\u2019s name\n - value (string) value\n * or\n - params (object) object of name/value pairs\n * or\n - attrName (string) attribute\u2019s name\n * or\n - attrNames (array) in this case method returns array of current values for given attribute names\n = (object) @Element if attrsName & value or params are passed in.\n = (...) value of the attribute if only attrsName is passed in.\n = (array) array of values of the attribute if attrsNames is passed in.\n = (object) object of attributes if nothing is passed in.\n > Possible parameters\n # <p>Please refer to the <a href="http://www.w3.org/TR/SVG/" title="The W3C Recommendation for the SVG language describes these properties in detail.">SVG specification</a> for an explanation of these parameters.</p>\n o arrow-end (string) arrowhead on the end of the path. The format for string is `<type>[-<width>[-<length>]]`. Possible types: `classic`, `block`, `open`, `oval`, `diamond`, `none`, width: `wide`, `narrow`, `medium`, length: `long`, `short`, `midium`.\n o clip-rect (string) comma or space separated values: x, y, width and height\n o cursor (string) CSS type of the cursor\n o cx (number) the x-axis coordinate of the center of the circle, or ellipse\n o cy (number) the y-axis coordinate of the center of the circle, or ellipse\n o fill (string) colour, gradient or image\n o fill-opacity (number)\n o font (string)\n o font-family (string)\n o font-size (number) font size in pixels\n o font-weight (string)\n o height (number)\n o href (string) URL, if specified element behaves as hyperlink\n o opacity (number)\n o path (string) SVG path string format\n o r (number) radius of the circle, ellipse or rounded corner on the rect\n o rx (number) horisontal radius of the ellipse\n o ry (number) vertical radius of the ellipse\n o src (string) image URL, only works for @Element.image element\n o stroke (string) stroke colour\n o stroke-dasharray (string) [\u201c\u201d, \u201cnone\u201d, \u201c`-`\u201d, \u201c`.`\u201d, \u201c`-.`\u201d, \u201c`-..`\u201d, \u201c`. `\u201d, \u201c`- `\u201d, \u201c`--`\u201d, \u201c`- .`\u201d, \u201c`--.`\u201d, \u201c`--..`\u201d]\n o stroke-linecap (string) [\u201c`butt`\u201d, \u201c`square`\u201d, \u201c`round`\u201d]\n o stroke-linejoin (string) [\u201c`bevel`\u201d, \u201c`round`\u201d, \u201c`miter`\u201d]\n o stroke-miterlimit (number)\n o stroke-opacity (number)\n o stroke-width (number) stroke width in pixels, default is \'1\'\n o target (string) used with href\n o text (string) contents of the text element. Use `\\n` for multiline text\n o text-anchor (string) [\u201c`start`\u201d, \u201c`middle`\u201d, \u201c`end`\u201d], default is \u201c`middle`\u201d\n o title (string) will create tooltip with a given text\n o transform (string) see @Element.transform\n o width (number)\n o x (number)\n o y (number)\n > Gradients\n * Linear gradient format: \u201c`\u2039angle\u203a-\u2039colour\u203a[-\u2039colour\u203a[:\u2039offset\u203a]]*-\u2039colour\u203a`\u201d, example: \u201c`90-#fff-#000`\u201d \u2013 90\xb0\n * gradient from white to black or \u201c`0-#fff-#f00:20-#000`\u201d \u2013 0\xb0 gradient from white via red (at 20%) to black.\n *\n * radial gradient: \u201c`r[(\u2039fx\u203a, \u2039fy\u203a)]\u2039colour\u203a[-\u2039colour\u203a[:\u2039offset\u203a]]*-\u2039colour\u203a`\u201d, example: \u201c`r#fff-#000`\u201d \u2013\n * gradient from white to black or \u201c`r(0.25, 0.75)#fff-#000`\u201d \u2013 gradient from white to black with focus point\n * at 0.25, 0.75. Focus point coordinates are in 0..1 range. Radial gradients can only be applied to circles and ellipses.\n > Path String\n # <p>Please refer to <a href="http://www.w3.org/TR/SVG/paths.html#PathData" title="Details of a path\u2019s data attribute\u2019s format are described in the SVG specification.">SVG documentation regarding path string</a>. Rapha\xebl fully supports it.</p>\n > Colour Parsing\n # <ul>\n # <li>Colour name (\u201c<code>red</code>\u201d, \u201c<code>green</code>\u201d, \u201c<code>cornflowerblue</code>\u201d, etc)</li>\n # <li>#\u2022\u2022\u2022 \u2014 shortened HTML colour: (\u201c<code>#000</code>\u201d, \u201c<code>#fc0</code>\u201d, etc)</li>\n # <li>#\u2022\u2022\u2022\u2022\u2022\u2022 \u2014 full length HTML colour: (\u201c<code>#000000</code>\u201d, \u201c<code>#bd2300</code>\u201d)</li>\n # <li>rgb(\u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022) \u2014 red, green and blue channels\u2019 values: (\u201c<code>rgb(200, 100, 0)</code>\u201d)</li>\n # <li>rgb(\u2022\u2022\u2022%, \u2022\u2022\u2022%, \u2022\u2022\u2022%) \u2014 same as above, but in %: (\u201c<code>rgb(100%, 175%, 0%)</code>\u201d)</li>\n # <li>rgba(\u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022) \u2014 red, green and blue channels\u2019 values: (\u201c<code>rgba(200, 100, 0, .5)</code>\u201d)</li>\n # <li>rgba(\u2022\u2022\u2022%, \u2022\u2022\u2022%, \u2022\u2022\u2022%, \u2022\u2022\u2022%) \u2014 same as above, but in %: (\u201c<code>rgba(100%, 175%, 0%, 50%)</code>\u201d)</li>\n # <li>hsb(\u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022) \u2014 hue, saturation and brightness values: (\u201c<code>hsb(0.5, 0.25, 1)</code>\u201d)</li>\n # <li>hsb(\u2022\u2022\u2022%, \u2022\u2022\u2022%, \u2022\u2022\u2022%) \u2014 same as above, but in %</li>\n # <li>hsba(\u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022) \u2014 same as above, but with opacity</li>\n # <li>hsl(\u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022) \u2014 almost the same as hsb, see <a href="http://en.wikipedia.org/wiki/HSL_and_HSV" title="HSL and HSV - Wikipedia, the free encyclopedia">Wikipedia page</a></li>\n # <li>hsl(\u2022\u2022\u2022%, \u2022\u2022\u2022%, \u2022\u2022\u2022%) \u2014 same as above, but in %</li>\n # <li>hsla(\u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022, \u2022\u2022\u2022) \u2014 same as above, but with opacity</li>\n # <li>Optionally for hsb and hsl you could specify hue as a degree: \u201c<code>hsl(240deg, 1, .5)</code>\u201d or, if you want to go fancy, \u201c<code>hsl(240\xb0, 1, .5)</code>\u201d</li>\n # </ul>\n \\*/\n elproto.attr = function (name, value) {\n if (this.removed) {\n return this;\n }\n if (name == null) {\n var res = {};\n for (var a in this.attrs) if (this.attrs[has](a)) {\n res[a] = this.attrs[a];\n }\n res.gradient && res.fill == "none" && (res.fill = res.gradient) && delete res.gradient;\n res.transform = this._.transform;\n return res;\n }\n if (value == null && R.is(name, "string")) {\n if (name == "fill" && this.attrs.fill == "none" && this.attrs.gradient) {\n return this.attrs.gradient;\n }\n if (name == "transform") {\n return this._.transform;\n }\n var names = name.split(separator),\n out = {};\n for (var i = 0, ii = names.length; i < ii; i++) {\n name = names[i];\n if (name in this.attrs) {\n out[name] = this.attrs[name];\n } else if (R.is(this.paper.customAttributes[name], "function")) {\n out[name] = this.paper.customAttributes[name].def;\n } else {\n out[name] = R._availableAttrs[name];\n }\n }\n return ii - 1 ? out : out[names[0]];\n }\n if (value == null && R.is(name, "array")) {\n out = {};\n for (i = 0, ii = name.length; i < ii; i++) {\n out[name[i]] = this.attr(name[i]);\n }\n return out;\n }\n if (value != null) {\n var params = {};\n params[name] = value;\n } else if (name != null && R.is(name, "object")) {\n params = name;\n }\n for (var key in params) {\n eve("raphael.attr." + key + "." + this.id, this, params[key]);\n }\n for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], "function")) {\n var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));\n this.attrs[key] = params[key];\n for (var subkey in par) if (par[has](subkey)) {\n params[subkey] = par[subkey];\n }\n }\n setFillAndStroke(this, params);\n return this;\n };\n /*\\\n * Element.toFront\n [ method ]\n **\n * Moves the element so it is the closest to the viewer\u2019s eyes, on top of other elements.\n = (object) @Element\n \\*/\n elproto.toFront = function () {\n if (this.removed) {\n return this;\n }\n var node = getRealNode(this.node);\n node.parentNode.appendChild(node);\n var svg = this.paper;\n svg.top != this && R._tofront(this, svg);\n return this;\n };\n /*\\\n * Element.toBack\n [ method ]\n **\n * Moves the element so it is the furthest from the viewer\u2019s eyes, behind other elements.\n = (object) @Element\n \\*/\n elproto.toBack = function () {\n if (this.removed) {\n return this;\n }\n var node = getRealNode(this.node);\n var parentNode = node.parentNode;\n parentNode.insertBefore(node, parentNode.firstChild);\n R._toback(this, this.paper);\n var svg = this.paper;\n return this;\n };\n /*\\\n * Element.insertAfter\n [ method ]\n **\n * Inserts current object after the given one.\n = (object) @Element\n \\*/\n elproto.insertAfter = function (element) {\n if (this.removed || !element) {\n return this;\n }\n\n var node = getRealNode(this.node);\n var afterNode = getRealNode(element.node || element[element.length - 1].node);\n if (afterNode.nextSibling) {\n afterNode.parentNode.insertBefore(node, afterNode.nextSibling);\n } else {\n afterNode.parentNode.appendChild(node);\n }\n R._insertafter(this, element, this.paper);\n return this;\n };\n /*\\\n * Element.insertBefore\n [ method ]\n **\n * Inserts current object before the given one.\n = (object) @Element\n \\*/\n elproto.insertBefore = function (element) {\n if (this.removed || !element) {\n return this;\n }\n\n var node = getRealNode(this.node);\n var beforeNode = getRealNode(element.node || element[0].node);\n beforeNode.parentNode.insertBefore(node, beforeNode);\n R._insertbefore(this, element, this.paper);\n return this;\n };\n elproto.blur = function (size) {\n // Experimental. No Safari support. Use it on your own risk.\n var t = this;\n if (+size !== 0) {\n var fltr = $("filter"),\n blur = $("feGaussianBlur");\n t.attrs.blur = size;\n fltr.id = R.createUUID();\n $(blur, {stdDeviation: +size || 1.5});\n fltr.appendChild(blur);\n t.paper.defs.appendChild(fltr);\n t._blur = fltr;\n $(t.node, {filter: "url(#" + fltr.id + ")"});\n } else {\n if (t._blur) {\n t._blur.parentNode.removeChild(t._blur);\n delete t._blur;\n delete t.attrs.blur;\n }\n t.node.removeAttribute("filter");\n }\n return t;\n };\n R._engine.circle = function (svg, x, y, r) {\n var el = $("circle");\n svg.canvas && svg.canvas.appendChild(el);\n var res = new Element(el, svg);\n res.attrs = {cx: x, cy: y, r: r, fill: "none", stroke: "#000"};\n res.type = "circle";\n $(el, res.attrs);\n return res;\n };\n R._engine.rect = function (svg, x, y, w, h, r) {\n var el = $("rect");\n svg.canvas && svg.canvas.appendChild(el);\n var res = new Element(el, svg);\n res.attrs = {x: x, y: y, width: w, height: h, rx: r || 0, ry: r || 0, fill: "none", stroke: "#000"};\n res.type = "rect";\n $(el, res.attrs);\n return res;\n };\n R._engine.ellipse = function (svg, x, y, rx, ry) {\n var el = $("ellipse");\n svg.canvas && svg.canvas.appendChild(el);\n var res = new Element(el, svg);\n res.attrs = {cx: x, cy: y, rx: rx, ry: ry, fill: "none", stroke: "#000"};\n res.type = "ellipse";\n $(el, res.attrs);\n return res;\n };\n R._engine.image = function (svg, src, x, y, w, h) {\n var el = $("image");\n $(el, {x: x, y: y, width: w, height: h, preserveAspectRatio: "none"});\n el.setAttributeNS(xlink, "href", src);\n svg.canvas && svg.canvas.appendChild(el);\n var res = new Element(el, svg);\n res.attrs = {x: x, y: y, width: w, height: h, src: src};\n res.type = "image";\n return res;\n };\n R._engine.text = function (svg, x, y, text) {\n var el = $("text");\n svg.canvas && svg.canvas.appendChild(el);\n var res = new Element(el, svg);\n res.attrs = {\n x: x,\n y: y,\n "text-anchor": "middle",\n text: text,\n "font-family": R._availableAttrs["font-family"],\n "font-size": R._availableAttrs["font-size"],\n stroke: "none",\n fill: "#000"\n };\n res.type = "text";\n setFillAndStroke(res, res.attrs);\n return res;\n };\n R._engine.setSize = function (width, height) {\n this.width = width || this.width;\n this.height = height || this.height;\n this.canvas.setAttribute("width", this.width);\n this.canvas.setAttribute("height", this.height);\n if (this._viewBox) {\n this.setViewBox.apply(this, this._viewBox);\n }\n return this;\n };\n R._engine.create = function () {\n var con = R._getContainer.apply(0, arguments),\n container = con && con.container,\n x = con.x,\n y = con.y,\n width = con.width,\n height = con.height;\n if (!container) {\n throw new Error("SVG container not found.");\n }\n var cnvs = $("svg"),\n css = "overflow:hidden;",\n isFloating;\n x = x || 0;\n y = y || 0;\n width = width || 512;\n height = height || 342;\n $(cnvs, {\n height: height,\n version: 1.1,\n width: width,\n xmlns: "http://www.w3.org/2000/svg",\n "xmlns:xlink": "http://www.w3.org/1999/xlink"\n });\n if (container == 1) {\n cnvs.style.cssText = css + "position:absolute;left:" + x + "px;top:" + y + "px";\n R._g.doc.body.appendChild(cnvs);\n isFloating = 1;\n } else {\n cnvs.style.cssText = css + "position:relative";\n if (container.firstChild) {\n container.insertBefore(cnvs, container.firstChild);\n } else {\n container.appendChild(cnvs);\n }\n }\n container = new R._Paper;\n container.width = width;\n container.height = height;\n container.canvas = cnvs;\n container.clear();\n container._left = container._top = 0;\n isFloating && (container.renderfix = function () {});\n container.renderfix();\n return container;\n };\n R._engine.setViewBox = function (x, y, w, h, fit) {\n eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);\n var paperSize = this.getSize(),\n size = mmax(w / paperSize.width, h / paperSize.height),\n top = this.top,\n aspectRatio = fit ? "xMidYMid meet" : "xMinYMin",\n vb,\n sw;\n if (x == null) {\n if (this._vbSize) {\n size = 1;\n }\n delete this._vbSize;\n vb = "0 0 " + this.width + S + this.height;\n } else {\n this._vbSize = size;\n vb = x + S + y + S + w + S + h;\n }\n $(this.canvas, {\n viewBox: vb,\n preserveAspectRatio: aspectRatio\n });\n while (size && top) {\n sw = "stroke-width" in top.attrs ? top.attrs["stroke-width"] : 1;\n top.attr({"stroke-width": sw});\n top._.dirty = 1;\n top._.dirtyT = 1;\n top = top.prev;\n }\n this._viewBox = [x, y, w, h, !!fit];\n return this;\n };\n /*\\\n * Paper.renderfix\n [ method ]\n **\n * Fixes the issue of Firefox and IE9 regarding subpixel rendering. If paper is dependant\n * on other elements after reflow it could shift half pixel which cause for lines to lost their crispness.\n * This method fixes the issue.\n **\n Special thanks to Mariusz Nowak (http://www.medikoo.com/) for this method.\n \\*/\n R.prototype.renderfix = function () {\n var cnvs = this.canvas,\n s = cnvs.style,\n pos;\n try {\n pos = cnvs.getScreenCTM() || cnvs.createSVGMatrix();\n } catch (e) {\n pos = cnvs.createSVGMatrix();\n }\n var left = -pos.e % 1,\n top = -pos.f % 1;\n if (left || top) {\n if (left) {\n this._left = (this._left + left) % 1;\n s.left = this._left + "px";\n }\n if (top) {\n this._top = (this._top + top) % 1;\n s.top = this._top + "px";\n }\n }\n };\n /*\\\n * Paper.clear\n [ method ]\n **\n * Clears the paper, i.e. removes all the elements.\n \\*/\n R.prototype.clear = function () {\n R.eve("raphael.clear", this);\n var c = this.canvas;\n while (c.firstChild) {\n c.removeChild(c.firstChild);\n }\n this.bottom = this.top = null;\n (this.desc = $("desc")).appendChild(R._g.doc.createTextNode("Created with Rapha\\xebl " + R.version));\n c.appendChild(this.desc);\n c.appendChild(this.defs = $("defs"));\n };\n /*\\\n * Paper.remove\n [ method ]\n **\n * Removes the paper from the DOM.\n \\*/\n R.prototype.remove = function () {\n eve("raphael.remove", this);\n this.canvas.parentNode && this.canvas.parentNode.removeChild(this.canvas);\n for (var i in this) {\n this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;\n }\n };\n var setproto = R.st;\n for (var method in elproto) if (elproto[has](method) && !setproto[has](method)) {\n setproto[method] = (function (methodname) {\n return function () {\n var arg = arguments;\n return this.forEach(function (el) {\n el[methodname].apply(el, arg);\n });\n };\n })(method);\n }\n}));\n\n// \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \\\\\n// \u2502 Rapha\xebl 2.1.4 - JavaScript Vector Library \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 VML Module \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 Copyright (c) 2008-2011 Dmitry Baranovskiy (http://raphaeljs.com) \u2502 \\\\\n// \u2502 Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) \u2502 \\\\\n// \u2502 Licensed under the MIT (http://raphaeljs.com/license.html) license. \u2502 \\\\\n// \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \\\\\n\n(function (glob, factory) {\n if (typeof define === "function" && define.amd) {\n define("raphael.vml", ["raphael.core"], function(raphael) {\n return factory(raphael);\n });\n } else if (typeof exports === "object") {\n factory(require("./raphael.core"));\n } else {\n factory(glob.Raphael);\n }\n}(this, function(R) {\n if (R && !R.vml) {\n return;\n }\n\n var has = "hasOwnProperty",\n Str = String,\n toFloat = parseFloat,\n math = Math,\n round = math.round,\n mmax = math.max,\n mmin = math.min,\n abs = math.abs,\n fillString = "fill",\n separator = /[, ]+/,\n eve = R.eve,\n ms = " progid:DXImageTransform.Microsoft",\n S = " ",\n E = "",\n map = {M: "m", L: "l", C: "c", Z: "x", m: "t", l: "r", c: "v", z: "x"},\n bites = /([clmz]),?([^clmz]*)/gi,\n blurregexp = / progid:\\S+Blur\\([^\\)]+\\)/g,\n val = /-?[^,\\s-]+/g,\n cssDot = "position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",\n zoom = 21600,\n pathTypes = {path: 1, rect: 1, image: 1},\n ovalTypes = {circle: 1, ellipse: 1},\n path2vml = function (path) {\n var total = /[ahqstv]/ig,\n command = R._pathToAbsolute;\n Str(path).match(total) && (command = R._path2curve);\n total = /[clmz]/g;\n if (command == R._pathToAbsolute && !Str(path).match(total)) {\n var res = Str(path).replace(bites, function (all, command, args) {\n var vals = [],\n isMove = command.toLowerCase() == "m",\n res = map[command];\n args.replace(val, function (value) {\n if (isMove && vals.length == 2) {\n res += vals + map[command == "m" ? "l" : "L"];\n vals = [];\n }\n vals.push(round(value * zoom));\n });\n return res + vals;\n });\n return res;\n }\n var pa = command(path), p, r;\n res = [];\n for (var i = 0, ii = pa.length; i < ii; i++) {\n p = pa[i];\n r = pa[i][0].toLowerCase();\n r == "z" && (r = "x");\n for (var j = 1, jj = p.length; j < jj; j++) {\n r += round(p[j] * zoom) + (j != jj - 1 ? "," : E);\n }\n res.push(r);\n }\n return res.join(S);\n },\n compensation = function (deg, dx, dy) {\n var m = R.matrix();\n m.rotate(-deg, .5, .5);\n return {\n dx: m.x(dx, dy),\n dy: m.y(dx, dy)\n };\n },\n setCoords = function (p, sx, sy, dx, dy, deg) {\n var _ = p._,\n m = p.matrix,\n fillpos = _.fillpos,\n o = p.node,\n s = o.style,\n y = 1,\n flip = "",\n dxdy,\n kx = zoom / sx,\n ky = zoom / sy;\n s.visibility = "hidden";\n if (!sx || !sy) {\n return;\n }\n o.coordsize = abs(kx) + S + abs(ky);\n s.rotation = deg * (sx * sy < 0 ? -1 : 1);\n if (deg) {\n var c = compensation(deg, dx, dy);\n dx = c.dx;\n dy = c.dy;\n }\n sx < 0 && (flip += "x");\n sy < 0 && (flip += " y") && (y = -1);\n s.flip = flip;\n o.coordorigin = (dx * -kx) + S + (dy * -ky);\n if (fillpos || _.fillsize) {\n var fill = o.getElementsByTagName(fillString);\n fill = fill && fill[0];\n o.removeChild(fill);\n if (fillpos) {\n c = compensation(deg, m.x(fillpos[0], fillpos[1]), m.y(fillpos[0], fillpos[1]));\n fill.position = c.dx * y + S + c.dy * y;\n }\n if (_.fillsize) {\n fill.size = _.fillsize[0] * abs(sx) + S + _.fillsize[1] * abs(sy);\n }\n o.appendChild(fill);\n }\n s.visibility = "visible";\n };\n R.toString = function () {\n return "Your browser doesn\\u2019t support SVG. Falling down to VML.\\nYou are running Rapha\\xebl " + this.version;\n };\n var addArrow = function (o, value, isEnd) {\n var values = Str(value).toLowerCase().split("-"),\n se = isEnd ? "end" : "start",\n i = values.length,\n type = "classic",\n w = "medium",\n h = "medium";\n while (i--) {\n switch (values[i]) {\n case "block":\n case "classic":\n case "oval":\n case "diamond":\n case "open":\n case "none":\n type = values[i];\n break;\n case "wide":\n case "narrow": h = values[i]; break;\n case "long":\n case "short": w = values[i]; break;\n }\n }\n var stroke = o.node.getElementsByTagName("stroke")[0];\n stroke[se + "arrow"] = type;\n stroke[se + "arrowlength"] = w;\n stroke[se + "arrowwidth"] = h;\n },\n setFillAndStroke = function (o, params) {\n // o.paper.canvas.style.display = "none";\n o.attrs = o.attrs || {};\n var node = o.node,\n a = o.attrs,\n s = node.style,\n xy,\n newpath = pathTypes[o.type] && (params.x != a.x || params.y != a.y || params.width != a.width || params.height != a.height || params.cx != a.cx || params.cy != a.cy || params.rx != a.rx || params.ry != a.ry || params.r != a.r),\n isOval = ovalTypes[o.type] && (a.cx != params.cx || a.cy != params.cy || a.r != params.r || a.rx != params.rx || a.ry != params.ry),\n res = o;\n\n\n for (var par in params) if (params[has](par)) {\n a[par] = params[par];\n }\n if (newpath) {\n a.path = R._getPath[o.type](o);\n o._.dirty = 1;\n }\n params.href && (node.href = params.href);\n params.title && (node.title = params.title);\n params.target && (node.target = params.target);\n params.cursor && (s.cursor = params.cursor);\n "blur" in params && o.blur(params.blur);\n if (params.path && o.type == "path" || newpath) {\n node.path = path2vml(~Str(a.path).toLowerCase().indexOf("r") ? R._pathToAbsolute(a.path) : a.path);\n o._.dirty = 1;\n if (o.type == "image") {\n o._.fillpos = [a.x, a.y];\n o._.fillsize = [a.width, a.height];\n setCoords(o, 1, 1, 0, 0, 0);\n }\n }\n "transform" in params && o.transform(params.transform);\n if (isOval) {\n var cx = +a.cx,\n cy = +a.cy,\n rx = +a.rx || +a.r || 0,\n ry = +a.ry || +a.r || 0;\n node.path = R.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x", round((cx - rx) * zoom), round((cy - ry) * zoom), round((cx + rx) * zoom), round((cy + ry) * zoom), round(cx * zoom));\n o._.dirty = 1;\n }\n if ("clip-rect" in params) {\n var rect = Str(params["clip-rect"]).split(separator);\n if (rect.length == 4) {\n rect[2] = +rect[2] + (+rect[0]);\n rect[3] = +rect[3] + (+rect[1]);\n var div = node.clipRect || R._g.doc.createElement("div"),\n dstyle = div.style;\n dstyle.clip = R.format("rect({1}px {2}px {3}px {0}px)", rect);\n if (!node.clipRect) {\n dstyle.position = "absolute";\n dstyle.top = 0;\n dstyle.left = 0;\n dstyle.width = o.paper.width + "px";\n dstyle.height = o.paper.height + "px";\n node.parentNode.insertBefore(div, node);\n div.appendChild(node);\n node.clipRect = div;\n }\n }\n if (!params["clip-rect"]) {\n node.clipRect && (node.clipRect.style.clip = "auto");\n }\n }\n if (o.textpath) {\n var textpathStyle = o.textpath.style;\n params.font && (textpathStyle.font = params.font);\n params["font-family"] && (textpathStyle.fontFamily = \'"\' + params["font-family"].split(",")[0].replace(/^[\'"]+|[\'"]+$/g, E) + \'"\');\n params["font-size"] && (textpathStyle.fontSize = params["font-size"]);\n params["font-weight"] && (textpathStyle.fontWeight = params["font-weight"]);\n params["font-style"] && (textpathStyle.fontStyle = params["font-style"]);\n }\n if ("arrow-start" in params) {\n addArrow(res, params["arrow-start"]);\n }\n if ("arrow-end" in params) {\n addArrow(res, params["arrow-end"], 1);\n }\n if (params.opacity != null ||\n params["stroke-width"] != null ||\n params.fill != null ||\n params.src != null ||\n params.stroke != null ||\n params["stroke-width"] != null ||\n params["stroke-opacity"] != null ||\n params["fill-opacity"] != null ||\n params["stroke-dasharray"] != null ||\n params["stroke-miterlimit"] != null ||\n params["stroke-linejoin"] != null ||\n params["stroke-linecap"] != null) {\n var fill = node.getElementsByTagName(fillString),\n newfill = false;\n fill = fill && fill[0];\n !fill && (newfill = fill = createNode(fillString));\n if (o.type == "image" && params.src) {\n fill.src = params.src;\n }\n params.fill && (fill.on = true);\n if (fill.on == null || params.fill == "none" || params.fill === null) {\n fill.on = false;\n }\n if (fill.on && params.fill) {\n var isURL = Str(params.fill).match(R._ISURL);\n if (isURL) {\n fill.parentNode == node && node.removeChild(fill);\n fill.rotate = true;\n fill.src = isURL[1];\n fill.type = "tile";\n var bbox = o.getBBox(1);\n fill.position = bbox.x + S + bbox.y;\n o._.fillpos = [bbox.x, bbox.y];\n\n R._preload(isURL[1], function () {\n o._.fillsize = [this.offsetWidth, this.offsetHeight];\n });\n } else {\n fill.color = R.getRGB(params.fill).hex;\n fill.src = E;\n fill.type = "solid";\n if (R.getRGB(params.fill).error && (res.type in {circle: 1, ellipse: 1} || Str(params.fill).charAt() != "r") && addGradientFill(res, params.fill, fill)) {\n a.fill = "none";\n a.gradient = params.fill;\n fill.rotate = false;\n }\n }\n }\n if ("fill-opacity" in params || "opacity" in params) {\n var opacity = ((+a["fill-opacity"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+R.getRGB(params.fill).o + 1 || 2) - 1);\n opacity = mmin(mmax(opacity, 0), 1);\n fill.opacity = opacity;\n if (fill.src) {\n fill.color = "none";\n }\n }\n node.appendChild(fill);\n var stroke = (node.getElementsByTagName("stroke") && node.getElementsByTagName("stroke")[0]),\n newstroke = false;\n !stroke && (newstroke = stroke = createNode("stroke"));\n if ((params.stroke && params.stroke != "none") ||\n params["stroke-width"] ||\n params["stroke-opacity"] != null ||\n params["stroke-dasharray"] ||\n params["stroke-miterlimit"] ||\n params["stroke-linejoin"] ||\n params["stroke-linecap"]) {\n stroke.on = true;\n }\n (params.stroke == "none" || params.stroke === null || stroke.on == null || params.stroke == 0 || params["stroke-width"] == 0) && (stroke.on = false);\n var strokeColor = R.getRGB(params.stroke);\n stroke.on && params.stroke && (stroke.color = strokeColor.hex);\n opacity = ((+a["stroke-opacity"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+strokeColor.o + 1 || 2) - 1);\n var width = (toFloat(params["stroke-width"]) || 1) * .75;\n opacity = mmin(mmax(opacity, 0), 1);\n params["stroke-width"] == null && (width = a["stroke-width"]);\n params["stroke-width"] && (stroke.weight = width);\n width && width < 1 && (opacity *= width) && (stroke.weight = 1);\n stroke.opacity = opacity;\n\n params["stroke-linejoin"] && (stroke.joinstyle = params["stroke-linejoin"] || "miter");\n stroke.miterlimit = params["stroke-miterlimit"] || 8;\n params["stroke-linecap"] && (stroke.endcap = params["stroke-linecap"] == "butt" ? "flat" : params["stroke-linecap"] == "square" ? "square" : "round");\n if ("stroke-dasharray" in params) {\n var dasharray = {\n "-": "shortdash",\n ".": "shortdot",\n "-.": "shortdashdot",\n "-..": "shortdashdotdot",\n ". ": "dot",\n "- ": "dash",\n "--": "longdash",\n "- .": "dashdot",\n "--.": "longdashdot",\n "--..": "longdashdotdot"\n };\n stroke.dashstyle = dasharray[has](params["stroke-dasharray"]) ? dasharray[params["stroke-dasharray"]] : E;\n }\n newstroke && node.appendChild(stroke);\n }\n if (res.type == "text") {\n res.paper.canvas.style.display = E;\n var span = res.paper.span,\n m = 100,\n fontSize = a.font && a.font.match(/\\d+(?:\\.\\d*)?(?=px)/);\n s = span.style;\n a.font && (s.font = a.font);\n a["font-family"] && (s.fontFamily = a["font-family"]);\n a["font-weight"] && (s.fontWeight = a["font-weight"]);\n a["font-style"] && (s.fontStyle = a["font-style"]);\n fontSize = toFloat(a["font-size"] || fontSize && fontSize[0]) || 10;\n s.fontSize = fontSize * m + "px";\n res.textpath.string && (span.innerHTML = Str(res.textpath.string).replace(/</g, "<").replace(/&/g, "&").replace(/\\n/g, "<br>"));\n var brect = span.getBoundingClientRect();\n res.W = a.w = (brect.right - brect.left) / m;\n res.H = a.h = (brect.bottom - brect.top) / m;\n // res.paper.canvas.style.display = "none";\n res.X = a.x;\n res.Y = a.y + res.H / 2;\n\n ("x" in params || "y" in params) && (res.path.v = R.format("m{0},{1}l{2},{1}", round(a.x * zoom), round(a.y * zoom), round(a.x * zoom) + 1));\n var dirtyattrs = ["x", "y", "text", "font", "font-family", "font-weight", "font-style", "font-size"];\n for (var d = 0, dd = dirtyattrs.length; d < dd; d++) if (dirtyattrs[d] in params) {\n res._.dirty = 1;\n break;\n }\n\n // text-anchor emulation\n switch (a["text-anchor"]) {\n case "start":\n res.textpath.style["v-text-align"] = "left";\n res.bbx = res.W / 2;\n break;\n case "end":\n res.textpath.style["v-text-align"] = "right";\n res.bbx = -res.W / 2;\n break;\n default:\n res.textpath.style["v-text-align"] = "center";\n res.bbx = 0;\n break;\n }\n res.textpath.style["v-text-kern"] = true;\n }\n // res.paper.canvas.style.display = E;\n },\n addGradientFill = function (o, gradient, fill) {\n o.attrs = o.attrs || {};\n var attrs = o.attrs,\n pow = Math.pow,\n opacity,\n oindex,\n type = "linear",\n fxfy = ".5 .5";\n o.attrs.gradient = gradient;\n gradient = Str(gradient).replace(R._radial_gradient, function (all, fx, fy) {\n type = "radial";\n if (fx && fy) {\n fx = toFloat(fx);\n fy = toFloat(fy);\n pow(fx - .5, 2) + pow(fy - .5, 2) > .25 && (fy = math.sqrt(.25 - pow(fx - .5, 2)) * ((fy > .5) * 2 - 1) + .5);\n fxfy = fx + S + fy;\n }\n return E;\n });\n gradient = gradient.split(/\\s*\\-\\s*/);\n if (type == "linear") {\n var angle = gradient.shift();\n angle = -toFloat(angle);\n if (isNaN(angle)) {\n return null;\n }\n }\n var dots = R._parseDots(gradient);\n if (!dots) {\n return null;\n }\n o = o.shape || o.node;\n if (dots.length) {\n o.removeChild(fill);\n fill.on = true;\n fill.method = "none";\n fill.color = dots[0].color;\n fill.color2 = dots[dots.length - 1].color;\n var clrs = [];\n for (var i = 0, ii = dots.length; i < ii; i++) {\n dots[i].offset && clrs.push(dots[i].offset + S + dots[i].color);\n }\n fill.colors = clrs.length ? clrs.join() : "0% " + fill.color;\n if (type == "radial") {\n fill.type = "gradientTitle";\n fill.focus = "100%";\n fill.focussize = "0 0";\n fill.focusposition = fxfy;\n fill.angle = 0;\n } else {\n // fill.rotate= true;\n fill.type = "gradient";\n fill.angle = (270 - angle) % 360;\n }\n o.appendChild(fill);\n }\n return 1;\n },\n Element = function (node, vml) {\n this[0] = this.node = node;\n node.raphael = true;\n this.id = R._oid++;\n node.raphaelid = this.id;\n this.X = 0;\n this.Y = 0;\n this.attrs = {};\n this.paper = vml;\n this.matrix = R.matrix();\n this._ = {\n transform: [],\n sx: 1,\n sy: 1,\n dx: 0,\n dy: 0,\n deg: 0,\n dirty: 1,\n dirtyT: 1\n };\n !vml.bottom && (vml.bottom = this);\n this.prev = vml.top;\n vml.top && (vml.top.next = this);\n vml.top = this;\n this.next = null;\n };\n var elproto = R.el;\n\n Element.prototype = elproto;\n elproto.constructor = Element;\n elproto.transform = function (tstr) {\n if (tstr == null) {\n return this._.transform;\n }\n var vbs = this.paper._viewBoxShift,\n vbt = vbs ? "s" + [vbs.scale, vbs.scale] + "-1-1t" + [vbs.dx, vbs.dy] : E,\n oldt;\n if (vbs) {\n oldt = tstr = Str(tstr).replace(/\\.{3}|\\u2026/g, this._.transform || E);\n }\n R._extractTransform(this, vbt + tstr);\n var matrix = this.matrix.clone(),\n skew = this.skew,\n o = this.node,\n split,\n isGrad = ~Str(this.attrs.fill).indexOf("-"),\n isPatt = !Str(this.attrs.fill).indexOf("url(");\n matrix.translate(1, 1);\n if (isPatt || isGrad || this.type == "image") {\n skew.matrix = "1 0 0 1";\n skew.offset = "0 0";\n split = matrix.split();\n if ((isGrad && split.noRotation) || !split.isSimple) {\n o.style.filter = matrix.toFilter();\n var bb = this.getBBox(),\n bbt = this.getBBox(1),\n dx = bb.x - bbt.x,\n dy = bb.y - bbt.y;\n o.coordorigin = (dx * -zoom) + S + (dy * -zoom);\n setCoords(this, 1, 1, dx, dy, 0);\n } else {\n o.style.filter = E;\n setCoords(this, split.scalex, split.scaley, split.dx, split.dy, split.rotate);\n }\n } else {\n o.style.filter = E;\n skew.matrix = Str(matrix);\n skew.offset = matrix.offset();\n }\n if (oldt !== null) { // empty string value is true as well\n this._.transform = oldt;\n R._extractTransform(this, oldt);\n }\n return this;\n };\n elproto.rotate = function (deg, cx, cy) {\n if (this.removed) {\n return this;\n }\n if (deg == null) {\n return;\n }\n deg = Str(deg).split(separator);\n if (deg.length - 1) {\n cx = toFloat(deg[1]);\n cy = toFloat(deg[2]);\n }\n deg = toFloat(deg[0]);\n (cy == null) && (cx = cy);\n if (cx == null || cy == null) {\n var bbox = this.getBBox(1);\n cx = bbox.x + bbox.width / 2;\n cy = bbox.y + bbox.height / 2;\n }\n this._.dirtyT = 1;\n this.transform(this._.transform.concat([["r", deg, cx, cy]]));\n return this;\n };\n elproto.translate = function (dx, dy) {\n if (this.removed) {\n return this;\n }\n dx = Str(dx).split(separator);\n if (dx.length - 1) {\n dy = toFloat(dx[1]);\n }\n dx = toFloat(dx[0]) || 0;\n dy = +dy || 0;\n if (this._.bbox) {\n this._.bbox.x += dx;\n this._.bbox.y += dy;\n }\n this.transform(this._.transform.concat([["t", dx, dy]]));\n return this;\n };\n elproto.scale = function (sx, sy, cx, cy) {\n if (this.removed) {\n return this;\n }\n sx = Str(sx).split(separator);\n if (sx.length - 1) {\n sy = toFloat(sx[1]);\n cx = toFloat(sx[2]);\n cy = toFloat(sx[3]);\n isNaN(cx) && (cx = null);\n isNaN(cy) && (cy = null);\n }\n sx = toFloat(sx[0]);\n (sy == null) && (sy = sx);\n (cy == null) && (cx = cy);\n if (cx == null || cy == null) {\n var bbox = this.getBBox(1);\n }\n cx = cx == null ? bbox.x + bbox.width / 2 : cx;\n cy = cy == null ? bbox.y + bbox.height / 2 : cy;\n\n this.transform(this._.transform.concat([["s", sx, sy, cx, cy]]));\n this._.dirtyT = 1;\n return this;\n };\n elproto.hide = function () {\n !this.removed && (this.node.style.display = "none");\n return this;\n };\n elproto.show = function () {\n !this.removed && (this.node.style.display = E);\n return this;\n };\n // Needed to fix the vml setViewBox issues\n elproto.auxGetBBox = R.el.getBBox;\n elproto.getBBox = function(){\n var b = this.auxGetBBox();\n if (this.paper && this.paper._viewBoxShift)\n {\n var c = {};\n var z = 1/this.paper._viewBoxShift.scale;\n c.x = b.x - this.paper._viewBoxShift.dx;\n c.x *= z;\n c.y = b.y - this.paper._viewBoxShift.dy;\n c.y *= z;\n c.width = b.width * z;\n c.height = b.height * z;\n c.x2 = c.x + c.width;\n c.y2 = c.y + c.height;\n return c;\n }\n return b;\n };\n elproto._getBBox = function () {\n if (this.removed) {\n return {};\n }\n return {\n x: this.X + (this.bbx || 0) - this.W / 2,\n y: this.Y - this.H,\n width: this.W,\n height: this.H\n };\n };\n elproto.remove = function () {\n if (this.removed || !this.node.parentNode) {\n return;\n }\n this.paper.__set__ && this.paper.__set__.exclude(this);\n R.eve.unbind("raphael.*.*." + this.id);\n R._tear(this, this.paper);\n this.node.parentNode.removeChild(this.node);\n this.shape && this.shape.parentNode.removeChild(this.shape);\n for (var i in this) {\n this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;\n }\n this.removed = true;\n };\n elproto.attr = function (name, value) {\n if (this.removed) {\n return this;\n }\n if (name == null) {\n var res = {};\n for (var a in this.attrs) if (this.attrs[has](a)) {\n res[a] = this.attrs[a];\n }\n res.gradient && res.fill == "none" && (res.fill = res.gradient) && delete res.gradient;\n res.transform = this._.transform;\n return res;\n }\n if (value == null && R.is(name, "string")) {\n if (name == fillString && this.attrs.fill == "none" && this.attrs.gradient) {\n return this.attrs.gradient;\n }\n var names = name.split(separator),\n out = {};\n for (var i = 0, ii = names.length; i < ii; i++) {\n name = names[i];\n if (name in this.attrs) {\n out[name] = this.attrs[name];\n } else if (R.is(this.paper.customAttributes[name], "function")) {\n out[name] = this.paper.customAttributes[name].def;\n } else {\n out[name] = R._availableAttrs[name];\n }\n }\n return ii - 1 ? out : out[names[0]];\n }\n if (this.attrs && value == null && R.is(name, "array")) {\n out = {};\n for (i = 0, ii = name.length; i < ii; i++) {\n out[name[i]] = this.attr(name[i]);\n }\n return out;\n }\n var params;\n if (value != null) {\n params = {};\n params[name] = value;\n }\n value == null && R.is(name, "object") && (params = name);\n for (var key in params) {\n eve("raphael.attr." + key + "." + this.id, this, params[key]);\n }\n if (params) {\n for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], "function")) {\n var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));\n this.attrs[key] = params[key];\n for (var subkey in par) if (par[has](subkey)) {\n params[subkey] = par[subkey];\n }\n }\n // this.paper.canvas.style.display = "none";\n if (params.text && this.type == "text") {\n this.textpath.string = params.text;\n }\n setFillAndStroke(this, params);\n // this.paper.canvas.style.display = E;\n }\n return this;\n };\n elproto.toFront = function () {\n !this.removed && this.node.parentNode.appendChild(this.node);\n this.paper && this.paper.top != this && R._tofront(this, this.paper);\n return this;\n };\n elproto.toBack = function () {\n if (this.removed) {\n return this;\n }\n if (this.node.parentNode.firstChild != this.node) {\n this.node.parentNode.insertBefore(this.node, this.node.parentNode.firstChild);\n R._toback(this, this.paper);\n }\n return this;\n };\n elproto.insertAfter = function (element) {\n if (this.removed) {\n return this;\n }\n if (element.constructor == R.st.constructor) {\n element = element[element.length - 1];\n }\n if (element.node.nextSibling) {\n element.node.parentNode.insertBefore(this.node, element.node.nextSibling);\n } else {\n element.node.parentNode.appendChild(this.node);\n }\n R._insertafter(this, element, this.paper);\n return this;\n };\n elproto.insertBefore = function (element) {\n if (this.removed) {\n return this;\n }\n if (element.constructor == R.st.constructor) {\n element = element[0];\n }\n element.node.parentNode.insertBefore(this.node, element.node);\n R._insertbefore(this, element, this.paper);\n return this;\n };\n elproto.blur = function (size) {\n var s = this.node.runtimeStyle,\n f = s.filter;\n f = f.replace(blurregexp, E);\n if (+size !== 0) {\n this.attrs.blur = size;\n s.filter = f + S + ms + ".Blur(pixelradius=" + (+size || 1.5) + ")";\n s.margin = R.format("-{0}px 0 0 -{0}px", round(+size || 1.5));\n } else {\n s.filter = f;\n s.margin = 0;\n delete this.attrs.blur;\n }\n return this;\n };\n\n R._engine.path = function (pathString, vml) {\n var el = createNode("shape");\n el.style.cssText = cssDot;\n el.coordsize = zoom + S + zoom;\n el.coordorigin = vml.coordorigin;\n var p = new Element(el, vml),\n attr = {fill: "none", stroke: "#000"};\n pathString && (attr.path = pathString);\n p.type = "path";\n p.path = [];\n p.Path = E;\n setFillAndStroke(p, attr);\n vml.canvas.appendChild(el);\n var skew = createNode("skew");\n skew.on = true;\n el.appendChild(skew);\n p.skew = skew;\n p.transform(E);\n return p;\n };\n R._engine.rect = function (vml, x, y, w, h, r) {\n var path = R._rectPath(x, y, w, h, r),\n res = vml.path(path),\n a = res.attrs;\n res.X = a.x = x;\n res.Y = a.y = y;\n res.W = a.width = w;\n res.H = a.height = h;\n a.r = r;\n a.path = path;\n res.type = "rect";\n return res;\n };\n R._engine.ellipse = function (vml, x, y, rx, ry) {\n var res = vml.path(),\n a = res.attrs;\n res.X = x - rx;\n res.Y = y - ry;\n res.W = rx * 2;\n res.H = ry * 2;\n res.type = "ellipse";\n setFillAndStroke(res, {\n cx: x,\n cy: y,\n rx: rx,\n ry: ry\n });\n return res;\n };\n R._engine.circle = function (vml, x, y, r) {\n var res = vml.path(),\n a = res.attrs;\n res.X = x - r;\n res.Y = y - r;\n res.W = res.H = r * 2;\n res.type = "circle";\n setFillAndStroke(res, {\n cx: x,\n cy: y,\n r: r\n });\n return res;\n };\n R._engine.image = function (vml, src, x, y, w, h) {\n var path = R._rectPath(x, y, w, h),\n res = vml.path(path).attr({stroke: "none"}),\n a = res.attrs,\n node = res.node,\n fill = node.getElementsByTagName(fillString)[0];\n a.src = src;\n res.X = a.x = x;\n res.Y = a.y = y;\n res.W = a.width = w;\n res.H = a.height = h;\n a.path = path;\n res.type = "image";\n fill.parentNode == node && node.removeChild(fill);\n fill.rotate = true;\n fill.src = src;\n fill.type = "tile";\n res._.fillpos = [x, y];\n res._.fillsize = [w, h];\n node.appendChild(fill);\n setCoords(res, 1, 1, 0, 0, 0);\n return res;\n };\n R._engine.text = function (vml, x, y, text) {\n var el = createNode("shape"),\n path = createNode("path"),\n o = createNode("textpath");\n x = x || 0;\n y = y || 0;\n text = text || "";\n path.v = R.format("m{0},{1}l{2},{1}", round(x * zoom), round(y * zoom), round(x * zoom) + 1);\n path.textpathok = true;\n o.string = Str(text);\n o.on = true;\n el.style.cssText = cssDot;\n el.coordsize = zoom + S + zoom;\n el.coordorigin = "0 0";\n var p = new Element(el, vml),\n attr = {\n fill: "#000",\n stroke: "none",\n font: R._availableAttrs.font,\n text: text\n };\n p.shape = el;\n p.path = path;\n p.textpath = o;\n p.type = "text";\n p.attrs.text = Str(text);\n p.attrs.x = x;\n p.attrs.y = y;\n p.attrs.w = 1;\n p.attrs.h = 1;\n setFillAndStroke(p, attr);\n el.appendChild(o);\n el.appendChild(path);\n vml.canvas.appendChild(el);\n var skew = createNode("skew");\n skew.on = true;\n el.appendChild(skew);\n p.skew = skew;\n p.transform(E);\n return p;\n };\n R._engine.setSize = function (width, height) {\n var cs = this.canvas.style;\n this.width = width;\n this.height = height;\n width == +width && (width += "px");\n height == +height && (height += "px");\n cs.width = width;\n cs.height = height;\n cs.clip = "rect(0 " + width + " " + height + " 0)";\n if (this._viewBox) {\n R._engine.setViewBox.apply(this, this._viewBox);\n }\n return this;\n };\n R._engine.setViewBox = function (x, y, w, h, fit) {\n R.eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);\n var paperSize = this.getSize(),\n width = paperSize.width,\n height = paperSize.height,\n H, W;\n if (fit) {\n H = height / h;\n W = width / w;\n if (w * H < width) {\n x -= (width - w * H) / 2 / H;\n }\n if (h * W < height) {\n y -= (height - h * W) / 2 / W;\n }\n }\n this._viewBox = [x, y, w, h, !!fit];\n this._viewBoxShift = {\n dx: -x,\n dy: -y,\n scale: paperSize\n };\n this.forEach(function (el) {\n el.transform("...");\n });\n return this;\n };\n var createNode;\n R._engine.initWin = function (win) {\n var doc = win.document;\n if (doc.styleSheets.length < 31) {\n doc.createStyleSheet().addRule(".rvml", "behavior:url(#default#VML)");\n } else {\n // no more room, add to the existing one\n // http://msdn.microsoft.com/en-us/library/ms531194%28VS.85%29.aspx\n doc.styleSheets[0].addRule(".rvml", "behavior:url(#default#VML)");\n }\n try {\n !doc.namespaces.rvml && doc.namespaces.add("rvml", "urn:schemas-microsoft-com:vml");\n createNode = function (tagName) {\n return doc.createElement(\'<rvml:\' + tagName + \' class="rvml">\');\n };\n } catch (e) {\n createNode = function (tagName) {\n return doc.createElement(\'<\' + tagName + \' xmlns="urn:schemas-microsoft.com:vml" class="rvml">\');\n };\n }\n };\n R._engine.initWin(R._g.win);\n R._engine.create = function () {\n var con = R._getContainer.apply(0, arguments),\n container = con.container,\n height = con.height,\n s,\n width = con.width,\n x = con.x,\n y = con.y;\n if (!container) {\n throw new Error("VML container not found.");\n }\n var res = new R._Paper,\n c = res.canvas = R._g.doc.createElement("div"),\n cs = c.style;\n x = x || 0;\n y = y || 0;\n width = width || 512;\n height = height || 342;\n res.width = width;\n res.height = height;\n width == +width && (width += "px");\n height == +height && (height += "px");\n res.coordsize = zoom * 1e3 + S + zoom * 1e3;\n res.coordorigin = "0 0";\n res.span = R._g.doc.createElement("span");\n res.span.style.cssText = "position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";\n c.appendChild(res.span);\n cs.cssText = R.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden", width, height);\n if (container == 1) {\n R._g.doc.body.appendChild(c);\n cs.left = x + "px";\n cs.top = y + "px";\n cs.position = "absolute";\n } else {\n if (container.firstChild) {\n container.insertBefore(c, container.firstChild);\n } else {\n container.appendChild(c);\n }\n }\n res.renderfix = function () {};\n return res;\n };\n R.prototype.clear = function () {\n R.eve("raphael.clear", this);\n this.canvas.innerHTML = E;\n this.span = R._g.doc.createElement("span");\n this.span.style.cssText = "position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";\n this.canvas.appendChild(this.span);\n this.bottom = this.top = null;\n };\n R.prototype.remove = function () {\n R.eve("raphael.remove", this);\n this.canvas.parentNode.removeChild(this.canvas);\n for (var i in this) {\n this[i] = typeof this[i] == "function" ? R._removedFactory(i) : null;\n }\n return true;\n };\n\n var setproto = R.st;\n for (var method in elproto) if (elproto[has](method) && !setproto[has](method)) {\n setproto[method] = (function (methodname) {\n return function () {\n var arg = arguments;\n return this.forEach(function (el) {\n el[methodname].apply(el, arg);\n });\n };\n })(method);\n }\n}));\n\n// \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \\\\\n// \u2502 Rapha\xebl @VERSION - JavaScript Vector Library \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 Copyright \xa9 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) \u2502 \\\\\n// \u2502 Copyright \xa9 2008-2012 Sencha Labs (http://sencha.com) \u2502 \\\\\n// \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \\\\\n// \u2502 Licensed under the MIT (http://raphaeljs.com/license.html) license.\u2502 \\\\\n// \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \\\\\n\n(function (glob, factory) {\n if (typeof define === "function" && define.amd) {\n define("raphael", ["raphael.core", "raphael.svg", "raphael.vml"], function(Raphael) {\n return (glob.Raphael = factory(Raphael));\n });\n } else if (typeof exports === "object") {\n var raphael = require("raphael.core");\n\n require("raphael.svg");\n require("raphael.vml");\n\n module.exports = factory(raphael);\n } else {\n glob.Raphael = factory(glob.Raphael);\n }\n}(this, function (Raphael) {\n return Raphael.ninja();\n}));\n\n\n\n\n\n\n\n\n\n/**\n * FRaphael\n * \tAn extension for Raphael.js to make it easier to work with Filter Effects\n *\n * Copyright \xa9 2013 Chris Scott <[email protected]>\n * Delivered with and licensed under the MIT licence\n *\n */\n\n// Create the global FRaphael object\n(function(scope) {\n var\tversion = "0.0.1",\n license = "MIT";\n\n var\tns = "http://www.w3.org/2000/svg",\n idCounter = 0;\n\n var FR = {\n // Object prototype for a filter\n Filter: function(id) {\n if (id == undefined) {\n id = "filter-" + idCounter++;\n while(FR.filters[id] != undefined) {\n id = "filter-" + idCounter++;\n }\n }\n\n if (FR.filters[id] != undefined) {\n throw "A filter with id " + id + " already exists";\n }\n\n this.element = document.createElementNS(ns, "filter");\n this.element.setAttribute("id", id);\n this.element.setAttribute("x", "-25%");\n this.element.setAttribute("y", "-25%");\n this.element.setAttribute("width", "150%");\n this.element.setAttribute("height", "150%");\n\n this.lastFEResult = null;\n\n FR.filters[id] = this;\n this.id = id;\n },\n\n // Object prototype for an effect\n FilterEffect: function(type, attributes) {\n this.element = document.createElementNS(ns, type);\n for (var key in attributes) {\n this.element.setAttribute(key, attributes[key]);\n }\n },\n\n // Return the filter applied to an element or a new filter if none are currently applied\n getFilter: function(element) {\n var filterId = element.data("filterId");\n var filter = null;\n\n if (filterId == undefined) {\n filterId = "element-filter-" + element.id;\n filter = element.paper.createFilter(filterId);\n element.filter(filterId);\n } else {\n filter = FR.filters[filterId];\n }\n\n return filter;\n },\n\n // maintain a list of filters by id\n filters: {}\n };\n\n FR.Filter.prototype = {\n addEffect: function(type, attributes, children) {\n var effect = new FR.FilterEffect(type, attributes);\n\n if (children) {\n if (children instanceof Array) {\n for (var x in children) {\n if (!children.hasOwnProperty(x)) continue;\n\n effect.element.appendChild(children[x].element);\n }\n } else {\n effect.element.appendChild(children.element);\n }\n }\n\n this.element.appendChild(effect.element);\n\n return this;\n },\n\n chainEffect: function(type, attributes, children) {\n if (attributes == undefined) {\n attributes = {};\n }\n\n var inId;\n var outId;\n if (attributes.in == undefined) {\n inId = this.getLastResult();\n } else {\n inId = attributes.in;\n }\n if (attributes.result == undefined) {\n outId = idCounter++;\n } else {\n outId = attributes.result;\n }\n\n this.lastFEResult = outId;\n\n attributes.in = inId;\n attributes.result = outId;\n\n this.addEffect(type, attributes, children);\n\n return this;\n },\n\n getLastResult: function() {\n return (this.lastFEResult == undefined) ? "SourceGraphic" : this.lastFEResult;\n },\n\n merge: function(in1, in2, attributes) {\n var mergeNode1 = new FR.FilterEffect("feMergeNode", {\n in: in1\n });\n var mergeNode2 = new FR.FilterEffect("feMergeNode", {\n in: in2\n });\n\n this.chainEffect("feMerge", attributes, [mergeNode1, mergeNode2]);\n\n return this;\n },\n\n compose: function(in1, in2, operator, attributes) {\n if (attributes == undefined) {\n attributes = {};\n }\n\n if (operator == undefined) {\n operator = "over";\n }\n\n attributes.in = in1;\n attributes.in2 = in2;\n attributes.operator = operator;\n\n this.chainEffect("feComposite", attributes);\n\n return this;\n },\n\n arithmeticCompose: function(in1, in2, k1, k2, k3, k4) {\n if (k1 == undefined) {\n k1 = 0;\n }\n if (k2 == undefined) {\n k2 = 0;\n }\n if (k3 == undefined) {\n k3 = 0;\n }\n if (k4 == undefined) {\n k4 = 0;\n }\n\n this.compose(in1, in2, "arithmetic", {\n k1: k1,\n k2: k2,\n k3: k3,\n k4: k4\n });\n\n return this;\n },\n\n addBlur: function(stdDeviation, attributes) {\n if (!stdDeviation) {\n throw "Standard deviation is required to perform a blur filter";\n }\n\n if (attributes == undefined) {\n attributes = {};\n }\n attributes.stdDeviation = stdDeviation;\n\n this.chainEffect("feGaussianBlur", attributes);\n\n return this;\n },\n\n addOffset: function(dx, dy, attributes) {\n if (dx == undefined | dy == undefined) {\n throw "dx and dy values are required to perform an offset FE";\n }\n\n if (attributes == undefined) {\n attributes = {};\n }\n attributes.dx = dx;\n attributes.dy = dy;\n\n this.chainEffect("feOffset", attributes);\n\n return this;\n },\n\n addLighting: function(x, y, z, color, type, attributes) {\n if (x == undefined | y == undefined | z == undefined) {\n throw "Three co-ordinates are required to create a light source";\n }\n\n var previousResult = this.getLastResult();\n\n var id = idCounter++;\n\n if (attributes == undefined) {\n attributes = {};\n }\n\n attributes.result = id;\n if (color != undefined) {\n attributes["lighting-color"] = color;\n }\n\n if (type == undefined || type == "diffuse") {\n type = "feDiffuseLighting";\n } else if (type == "specular") {\n type = "feSpecularLighting";\n }\n\n var lightSource = new FR.FilterEffect("fePointLight", {\n x: x,\n y: y,\n z: z\n });\n\n this.chainEffect(type, attributes, lightSource).arithmeticCompose(previousResult, id, 3, 0.2, 0, 0);\n\n return this;\n },\n\n addShiftToColor: function(color, moveBy, attributes) {\n if (color == undefined) {\n throw "A colour string is a required argument to create a colorMatrix";\n }\n if (moveBy == undefined) {\n moveBy = 0.5;\n }\n\n var remainingColor = 1 - moveBy, x = remainingColor;\n\n if (attributes == undefined) {\n attributes = {};\n }\n\n var colorObject = Raphael.color(color);\n var\tr = colorObject.r * moveBy / 255,\n g = colorObject.g * moveBy / 255,\n b = colorObject.b * moveBy / 255;\n\n /**\n * r\'\tx 0 0 0 r\t\tr\n * g\'\t0 x 0 0 g\t\tg\n * b\' =\t0 0 x 0 b\t.\tb\n * a\'\t0 0 0 1 0\t\to\n * 1\t\t\t\t\t1\n */\n attributes.values = x + " 0 0 0 " + r + " 0 " + x + " 0 0 " + g + " 0 0 " + x + " 0 " + b + " 0 0 0 1 0 ";\n\n this.chainEffect("feColorMatrix", attributes);\n\n return this;\n },\n\n addRecolor: function(color, opacity, attributes) {\n if (color == undefined) {\n throw "A colour string is a required argument to create a colorMatrix";\n }\n if (opacity == undefined) {\n opacity = 1;\n }\n\n if (attributes == undefined) {\n attributes = {};\n }\n\n var colorObject = Raphael.color(color);\n var\tr = colorObject.r / 255,\n g = colorObject.g / 255,\n b = colorObject.b / 255;\n\n /**\n * r\'\t0 0 0 0 r\t\tr\n * g\'\t0 0 0 0 g\t\tg\n * b\' =\t0 0 0 0 b\t.\tb\n * a\'\t0 0 0 a 0\t\ta\n * 1\t\t\t\t\t1\n */\n attributes.values = "0 0 0 0 " + r + " 0 0 0 0 " + g + " 0 0 0 0 " + b + " 0 0 0 " + opacity + " 0 ";\n\n this.chainEffect("feColorMatrix", attributes);\n\n return this;\n },\n\n addDesaturate: function(saturation, attributes) {\n if (saturation == undefined) {\n saturnation = 0;\n }\n\n if (attributes == undefined) {\n attributes = {};\n }\n\n attributes.values = saturation;\n attributes.type = "saturate";\n\n this.chainEffect("feColorMatrix", attributes);\n\n return this;\n },\n\n addConvolveMatrix: function(matrix, attributes) {\n if (matrix == undefined) {\n throw "A matrix (usually 9 numbers) must be provided to apply a convolve matrix transform";\n }\n\n if (attributes == undefined) {\n attributes = {};\n }\n\n attributes.kernelMatrix = matrix;\n\n this.chainEffect("feConvolveMatrix", attributes);\n\n return this;\n },\n\n createShadow: function(dx, dy, blur, opacity, color) {\n if (dx == undefined) {\n throw "dx is required for the shadow effect";\n }\n if (dy == undefined) {\n throw "dy is required for the shadow effect";\n }\n if (blur == undefined) {\n throw "blur (stdDeviation) is required for the shadow effect";\n }\n\n if (opacity == undefined) {\n opacity = 0.6;\n }\n\n var previousResult = this.getLastResult();\n\n if (color == undefined) {\n color = "#000000";\n }\n\n this.addOffset(dx, dy, {\n in: "SourceAlpha"\n });\n\n this.addRecolor(color, opacity);\n\n this.addBlur(blur);\n\n this.merge(this.getLastResult(), previousResult);\n\n return this;\n },\n\n createEmboss: function(height, x, y, z) {\n if (height == undefined) {\n height = 2;\n }\n if (x == undefined) {\n x = -1000;\n }\n if (y == undefined) {\n y = -5000;\n }\n if (z == undefined) {\n z = 300;\n }\n\n // Create the highlight\n\n this.addOffset(height * x / (x + y), height * y / (x + y), {\n in: "SourceAlpha"\n });\n\n this.addBlur(height * 0.5);\n\n var whiteLightSource = new FR.FilterEffect("fePointLight", {\n x: x,\n y: y,\n z: z\n });\n\n this.chainEffect("feSpecularLighting", {\n surfaceScale: height,\n specularConstant: 0.8,\n specularExponent: 15\n }, whiteLightSource);\n\n this.compose(this.getLastResult(), "SourceAlpha", "in");\n var whiteLight = this.getLastResult();\n\n // Create the lowlight\n\n this.addOffset(height * -1 * x / (x + y), height * -1 * y / (x + y), {\n in: "SourceAlpha"\n });\n\n this.addBlur(height * 0.5);\n\n var darkLightSource = new FR.FilterEffect("fePointLight", {\n x: -1 * x,\n y: -1 * y,\n z: z\n });\n\n this.chainEffect("feSpecularLighting", {\n surfaceScale: height,\n specularConstant: 1.8,\n specularExponent: 6\n }, darkLightSource);\n\n this.compose(this.getLastResult(), "SourceAlpha", "in");\n this.chainEffect("feColorMatrix", {\n values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"\n });\n var darkLight = this.getLastResult();\n\n this.arithmeticCompose(whiteLight, darkLight, 0, 0.8, 0.5, 0);\n\n this.merge("SourceGraphic", this.getLastResult());\n\n return this;\n }\n };\n\n scope.FRaphael = FR;\n})(this);\n\n/**\n * add a filter to the paper by id\n */\nRaphael.fn.createFilter = function(id) {\n var paper = this;\n var filter = new FRaphael.Filter(id);\n paper.defs.appendChild(filter.element);\n\n return filter;\n};\n\n/**\n * Apply a filter to an element by id\n */\nRaphael.el.filter = function(filter) {\n var id = (filter instanceof FRaphael.Filter) ? filter.id : filter;\n\n this.node.setAttribute("filter", "url(#" + id + ")");\n this.data("filterId", id);\n\n return this;\n};\n\n/**\n * Get the current filter for an element or a new one if not\n */\nRaphael.el.getFilter = function() {\n return FRaphael.getFilter(this);\n};\n\n/**\n * A shorthand method for applying blur\n */\nRaphael.el.blur = function(stdDeviation) {\n if (stdDeviation == undefined) {\n stdDeviation = 3;\n }\n\n this.getFilter().addBlur(stdDeviation);\n\n return this;\n};\n\n/**\n * A shorthand method for applying a drop shadow\n */\nRaphael.el.shadow = function(dx, dy, blur, opacity, color) {\n if (dx == undefined) {\n dx = 3;\n }\n if (dy == undefined) {\n dy = 3;\n }\n if (blur == undefined) {\n blur = 3;\n }\n\n this.getFilter().createShadow(dx, dy, blur, opacity, color);\n\n return this;\n};\n\n/**\n * A shorthand method for applying lighting\n */\nRaphael.el.light = function(x, y, z, color, type) {\n if (x == undefined) {\n x = this.paper.width;\n }\n if (y == undefined) {\n y = 0;\n }\n if (z == undefined) {\n z = 20;\n }\n\n this.getFilter().addLighting(x, y, z, color, type);\n\n return this;\n};\n\n/**\n * A shorthand method for applying a colour shift\n */\nRaphael.el.colorShift = function(color, shift) {\n if (color == undefined) {\n color = "black";\n }\n if (shift == undefined) {\n shift = 0.5;\n }\n\n this.getFilter().addShiftToColor(color, shift);\n\n return this;\n};\n\n/**\n * A shorthand method for embossing\n */\nRaphael.el.emboss = function(height) {\n this.getFilter().createEmboss(height);\n\n return this;\n};\n\n/**\n * A shorthand method for desaturating\n */\nRaphael.el.desaturate = function(saturation) {\n this.getFilter().addDesaturate(saturation);\n\n return this;\n};\n\n/**\n * A shorthand method for complete desaturation\n */\nRaphael.el.greyScale = function() {\n this.getFilter().addDesaturate(0);\n\n return this;\n};\n'},
vendor: 4,963 bytes, line 1
1"./node_modules/rgbcolor/index.js":function(h,y){h.exports=function(c){this.ok=!1,this.alpha=1,"#"==c.charAt(0)&&(c=c.substr(1,6)),c=(c=c.replace(/ /g,"")).toLowerCase();var d={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};c=d[c]||c;for(var a=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],v=0;v<a.length;v++){var s=a[v].process,n=a[v].re.exec(c);if(n){var r=s(n);this.r=r[0],this.g=r[1],this.b=r[2],r.length>3&&(this.alpha=r[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),p=this.b.toString(16);return 1==u.length&&(u="0"+u),1==l.length&&(l="0"+l),1==p.length&&(p="0"+p),"#"+u+l+p},this.getHelpXML=function(){for(var u=new Array,l=0;l<a.length;l++)for(var p=a[l].example,x=0;x<p.length;x++)u[u.length]=p[x];for(var m in d)u[u.length]=m;var g=document.createElement("ul");for(g.setAttribute("id","rgbcolor-examples"),l=0;l<u.length;l++)try{var w=document.createElement("li"),C=new RGBColor(u[l]),k=document.createElement("div");k.style.cssText="margin: 3px; border: 1px solid black; background:"+C.toHex()+"; color:"+C.toHex(),k.appendChild(document.createTextNode("test"));var M=document.createTextNode(" "+u[l]+" -> "+C.toRGB()+" -> "+C.toHex());w.appendChild(k),w.appendChild(M),g.appendChild(w)}catch(O){}return g}}},
vendor: 418 bytes, line 1
1"./node_modules/script-loader/addScript.js":function(h,y){h.exports=function(c){function d(v){"undefined"!=typeof console&&(console.error||console.log)("[Script Loader]",v)}try{"undefined"!=typeof execScript&&function a(){return"undefined"!=typeof attachEvent&&"undefined"==typeof addEventListener}()?execScript(c):"undefined"!=typeof eval?eval.call(null,c):d("EvalError: No eval function available")}catch(v){d(v)}}},
vendor: 14,642 bytes, line 1
1"./node_modules/shifty/dist/shifty.js":function(h,y,c){h.exports=function(d){function a(t){if(v[t])return v[t].exports;var s=v[t]={i:t,l:!1,exports:{}};return d[t].call(s.exports,s,s.exports,a),s.l=!0,s.exports}var v={};return a.m=d,a.c=v,a.i=function(t){return t},a.d=function(t,s,n){a.o(t,s)||Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:n})},a.n=function(t){var s=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(s,"a",s),s},a.o=function(t,s){return Object.prototype.hasOwnProperty.call(t,s)},a.p="/assets/",a(a.s=6)}([function(d,a,v){"use strict";(function(t){function s(W){if(W&&W.__esModule)return W;var q={};if(null!=W)for(var et in W)Object.prototype.hasOwnProperty.call(W,et)&&(q[et]=W[et]);return q.default=W,q}function n(W,q){if(!(W instanceof q))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(a,"__esModule",{value:!0}),a.Tweenable=a.composeEasingObject=a.tweenProps=a.clone=a.each=void 0;var u=function(){function W(q,et){for(var X=0;X<et.length;X++){var it=et[X];it.enumerable=it.enumerable||!1,it.configurable=!0,"value"in it&&(it.writable=!0),Object.defineProperty(q,it.key,it)}}return function(q,et,X){return et&&W(q.prototype,et),X&&W(q,X),q}}(),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(W){return typeof W}:function(W){return W&&"function"==typeof Symbol&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W};a.tween=function r(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},q=new F,et=q.tween(W);return et.tweenable=q,et};var W,x=s(v(5)),g=(W=v(1))&&W.__esModule?W:{default:W},C=s(v(7)),k="undefined"!=typeof window?window:t,M=k.cancelAnimationFrame||k.webkitCancelAnimationFrame||k.oCancelAnimationFrame||k.msCancelAnimationFrame||k.mozCancelRequestAnimationFrame||k.clearTimeout,N=k.requestAnimationFrame||k.webkitRequestAnimationFrame||k.oRequestAnimationFrame||k.msRequestAnimationFrame||k.mozCancelRequestAnimationFrame&&k.mozRequestAnimationFrame||setTimeout,O=function(){},_=a.each=function(W,q){return Object.keys(W).forEach(q)},P=a.clone=function(W){return(0,g.default)({},W)},A=P(x),L=a.tweenProps=function(W,q,et,X,it,z,j){var tt=W<z?0:(W-z)/it;return _(q,function(at){var ct=j[at];q[at]=function(W,q,et,X){return W+(q-W)*et(X)}(et[at],X[at],"function"==typeof ct?ct:A[ct],tt)}),q},I=a.composeEasingObject=function(W){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"linear",et={},X=void 0===q?"undefined":l(q);return _(W,"string"===X||"function"===X?function(it){return et[it]=q}:function(it){return et[it]=et[it]||q[it]||"linear"}),et},F=a.Tweenable=function(){function W(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;n(this,W),this._currentState=q,this._configured=!1,this._scheduleFunction=N,void 0!==et&&this.setConfig(et)}return u(W,[{key:"_applyFilter",value:function(q){var et=this,X=W.filters,it=this._filterArgs;_(X,function(z){var j=X[z][q];void 0!==j&&j.apply(et,it)})}},{key:"_timeoutHandler",value:function(q){var et=this,X=arguments,it=this._currentState,z=this._delay,j=this._duration,tt=this._step,at=this._targetState,ct=this._timestamp,ut=ct+z+j,rt=Math.min(q||W.now(),ut),lt=rt>=ut,ft=j-(ut-rt);this.isPlaying()&&(lt?(tt(at,this._attachment,ft),this.stop(!0)):(this._scheduleId=this._scheduleFunction.call(k,function(){return et._timeoutHandler.apply(et,X)},1e3/60),this._applyFilter("beforeTween"),rt<ct+z?(rt=1,j=1,ct=1):ct+=z,L(rt,it,this._originalState,at,j,ct,this._easing),this._applyFilter("afterTween"),tt(it,this._attachment,ft)))}},{key:"tween",value:function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,et=this._attachment;return this._isTweening?this:(void 0===q&&this._configured||this.setConfig(q),this._timestamp=W.now(),this._start(this.get(),et),this.resume())}},{key:"setConfig",value:function(){var q=this,et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._configured=!0,this._attachment=et.attachment,(0,g.default)(this,{_pausedAtTime:null,_scheduleId:null,_delay:et.delay||0,_start:et.start||O,_step:et.step||O,_duration:et.duration||500,_currentState:P(et.from||this.get())}),(0,g.default)(this,{_originalState:this.get(),_targetState:P(et.to||this.get())});var X=this._currentState;return this._targetState=(0,g.default)({},X,this._targetState),this._easing=I(X,et.easing),this._filterArgs=[X,this._originalState,this._targetState,this._easing],this._applyFilter("tweenCreated"),this._promise=new(et.promise||Promise)(function(z,j){q._resolve=z,q._reject=j}),this._promise.catch(O),this}},{key:"get",value:function(){return P(this._currentState)}},{key:"set",value:function(q){this._currentState=q}},{key:"pause",value:function(){return this._pausedAtTime=W.now(),this._isPaused=!0,this}},{key:"resume",value:function(){return this._isPaused&&(this._timestamp+=W.now()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0,this._timeoutHandler(),this._promise}},{key:"seek",value:function(q){q=Math.max(q,0);var et=W.now();return this._timestamp+q===0||(this._timestamp=et-q,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,this._timeoutHandler(et),this.pause())),this}},{key:"stop",value:function(){var q=arguments.length>0&&void 0!==arguments[0]&&arguments[0],et=this._attachment,X=this._currentState,it=this._easing,z=this._originalState,j=this._targetState;return this._isTweening=!1,this._isPaused=!1,M(this._scheduleId),q?(this._applyFilter("beforeTween"),L(1,X,z,j,1,0,it),this._applyFilter("afterTween"),this._applyFilter("afterTweenEnd"),this._resolve(X,et)):this._reject(X,et),this}},{key:"isPlaying",value:function(){return this._isTweening&&!this._isPaused}},{key:"setScheduleFunction",value:function(q){this._scheduleFunction=q}},{key:"dispose",value:function(){var q=this;_(this,function(et){return delete q[et]})}}]),W}();(0,g.default)(F,{formulas:A,filters:{token:C},now:Date.now||function(W){return+new Date}})}).call(a,v(4))},function(d,a,v){"use strict";function t(u){if(null==u)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}var s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;d.exports=function(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de","5"===Object.getOwnPropertyNames(u)[0])return!1;for(var l={},p=0;p<10;p++)l["_"+String.fromCharCode(p)]=p;if("0123456789"!==Object.getOwnPropertyNames(l).map(function(m){return l[m]}).join(""))return!1;var x={};return"abcdefghijklmnopqrst".split("").forEach(function(m){x[m]=m}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},x)).join("")}catch(m){return!1}}()?Object.assign:function(u,l){for(var p,x,m=t(u),g=1;g<arguments.length;g++){for(var w in p=Object(arguments[g]))n.call(p,w)&&(m[w]=p[w]);if(s){x=s(p);for(var C=0;C<x.length;C++)r.call(p,x[C])&&(m[x[C]]=p[x[C]])}}return m}},function(d,a,v){"use strict";function t(l,p,x,m,g,w){var C=0,k=0,M=0,N=0,O=0,_=0,P=function(F){return((C*F+k)*F+M)*F},T=function(F){return(3*C*F+2*k)*F+M},L=function(F){return F>=0?F:0-F};return C=1-(M=3*p)-(k=3*(m-p)-M),N=1-(_=3*x)-(O=3*(g-x)-_),function(F){return((N*F+O)*F+_)*F}(function(F,W){var q=void 0,et=void 0,X=void 0,it=void 0,z=void 0,j=void 0;for(X=F,j=0;j<8;j++){if(it=P(X)-F,L(it)<W)return X;if(z=T(X),L(z)<1e-6)break;X-=it/z}if((X=F)<(q=0))return q;if(X>(et=1))return et;for(;q<et;){if(it=P(X),L(it-F)<W)return X;F>it?q=X:et=X,X=.5*(et-q)+q}return X}(l,1/(200*w)))}Object.defineProperty(a,"__esModule",{value:!0}),a.unsetBezierFunction=a.setBezierFunction=void 0;var l,s=v(0),r=(l=v(1))&&l.__esModule?l:{default:l};a.setBezierFunction=function(l,p,x,m,g){return s.Tweenable.formulas[l]=(0,r.default)(function(l,p,x,m){return function(g){return t(g,l,p,x,m,1)}}(p,x,m,g),{displayName:l,x1:p,y1:x,x2:m,y2:g})},a.unsetBezierFunction=function(l){return delete s.Tweenable.formulas[l]}},function(d,a,v){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.interpolate=void 0;var t=v(0),s=new t.Tweenable;s._filterArgs=[],a.interpolate=function(n,r,u,l){var p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,x=(0,t.clone)(n),m=(0,t.composeEasingObject)(n,l);s.set({}),s._filterArgs=[x,n,r,m],s._applyFilter("tweenCreated"),s._applyFilter("beforeTween");var g=(0,t.tweenProps)(u,x,n,r,1,p,m);return s._applyFilter("afterTween"),g}},function(d,a,v){"use strict";var t,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(n){"object"===("undefined"==typeof window?"undefined":s(window))&&(t=window)}d.exports=t},function(d,a,v){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.linear=function(t){return t},a.easeInQuad=function(t){return Math.pow(t,2)},a.easeOutQuad=function(t){return-(Math.pow(t-1,2)-1)},a.easeInOutQuad=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},a.easeInCubic=function(t){return Math.pow(t,3)},a.easeOutCubic=function(t){return Math.pow(t-1,3)+1},a.easeInOutCubic=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},a.easeInQuart=function(t){return Math.pow(t,4)},a.easeOutQuart=function(t){return-(Math.pow(t-1,4)-1)},a.easeInOutQuart=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},a.easeInQuint=function(t){return Math.pow(t,5)},a.easeOutQuint=function(t){return Math.pow(t-1,5)+1},a.easeInOutQuint=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},a.easeInSine=function(t){return 1-Math.cos(t*(Math.PI/2))},a.easeOutSine=function(t){return Math.sin(t*(Math.PI/2))},a.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},a.easeInExpo=function(t){return 0===t?0:Math.pow(2,10*(t-1))},a.easeOutExpo=function(t){return 1===t?1:1-Math.pow(2,-10*t)},a.easeInOutExpo=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},a.easeInCirc=function(t){return-(Math.sqrt(1-t*t)-1)},a.easeOutCirc=function(t){return Math.sqrt(1-Math.pow(t-1,2))},a.easeInOutCirc=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},a.easeOutBounce=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},a.easeInBack=function(t){var s=1.70158;return t*t*((s+1)*t-s)},a.easeOutBack=function(t){var s=1.70158;return(t-=1)*t*((s+1)*t+s)+1},a.easeInOutBack=function(t){var s=1.70158;return(t/=.5)<1?t*t*((1+(s*=1.525))*t-s)*.5:.5*((t-=2)*t*((1+(s*=1.525))*t+s)+2)},a.elastic=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},a.swingFromTo=function(t){var s=1.70158;return(t/=.5)<1?t*t*((1+(s*=1.525))*t-s)*.5:.5*((t-=2)*t*((1+(s*=1.525))*t+s)+2)},a.swingFrom=function(t){var s=1.70158;return t*t*((s+1)*t-s)},a.swingTo=function(t){var s=1.70158;return(t-=1)*t*((s+1)*t+s)+1},a.bounce=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},a.bouncePast=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},a.easeFromTo=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},a.easeFrom=function(t){return Math.pow(t,4)},a.easeTo=function(t){return Math.pow(t,.25)}},function(d,a,v){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=v(0);Object.defineProperty(a,"Tweenable",{enumerable:!0,get:function(){return t.Tweenable}}),Object.defineProperty(a,"tween",{enumerable:!0,get:function(){return t.tween}});var s=v(3);Object.defineProperty(a,"interpolate",{enumerable:!0,get:function(){return s.interpolate}});var n=v(2);Object.defineProperty(a,"setBezierFunction",{enumerable:!0,get:function(){return n.setBezierFunction}}),Object.defineProperty(a,"unsetBezierFunction",{enumerable:!0,get:function(){return n.unsetBezierFunction}})},function(d,a,v){"use strict";function t(et){return parseInt(et,16)}Object.defineProperty(a,"__esModule",{value:!0}),a.tweenCreated=function s(et,X,it){[et,X,it].forEach(M),this._tokenData=P(et)},a.beforeTween=function n(et,X,it,z){var j=this._tokenData;W(z,j),[et,X,it].forEach(function(tt){return A(tt,j)})},a.afterTween=function r(et,X,it,z){var j=this._tokenData;[et,X,it].forEach(function(tt){return F(tt,j)}),q(z,j)};var et,X,u=v(0),l=(et=/[0-9.\-]+/g.source,X=/,\s*/.source,new RegExp("rgb\\("+et+X+et+X+et+"\\)","g")),p=/#([0-9]|[a-f]){3,6}/gi,x=function(et,X){return et.map(function(it,z){return"_"+X+"_"+z})},m=function(et){var X=et.match(/([^\-0-9\.]+)/g);return X?(1===X.length||et.charAt(0).match(/(\d|\-|\.)/))&&X.unshift(""):X=["",""],X.join("VAL")},w=function(et){return"rgb("+function(et){return 3===(et=et.replace(/#/,"")).length&&(et=(et=et.split(""))[0]+et[0]+et[1]+et[1]+et[2]+et[2]),[t(et.substr(0,2)),t(et.substr(2,2)),t(et.substr(4,2))]}(et).join(",")+")"},C=function(et,X,it){var z=X.match(et),j=X.replace(et,"VAL");return z&&z.forEach(function(tt){return j=j.replace("VAL",it(tt))}),j},M=function(et){(0,u.each)(et,function(X){var it=et[X];"string"==typeof it&&it.match(p)&&(et[X]=function(et){return C(p,et,w)}(it))})},N=function(et){var X=et.match(/[0-9.\-]+/g).map(Math.floor);return""+et.match(/^.*\(/)[0]+X.join(",")+")"},_=function(et){return et.match(/[0-9.\-]+/g)},P=function(et){var X={};return(0,u.each)(et,function(it){var z=et[it];"string"==typeof z&&(X[it]={formatString:m(z),chunkNames:x(_(z),it)})}),X},A=function(et,X){(0,u.each)(X,function(it){_(et[it]).forEach(function(z,j){return et[X[it].chunkNames[j]]=+z}),delete et[it]})},F=function(et,X){(0,u.each)(X,function(it){var z=X[it],j=z.chunkNames,at=function(et,X){return X.forEach(function(it){return et=et.replace("VAL",+it.toFixed(4))}),et}(z.formatString,function(et,X){return X.map(function(it){return et[it]})}(function(et,X){var it={};return X.forEach(function(z){it[z]=et[z],delete et[z]}),it}(et,j),j));et[it]=function(et){return C(l,et,N)}(at)})},W=function(et,X){(0,u.each)(X,function(it){var tt,at,z=X[it].chunkNames,j=et[it];"string"==typeof j?(tt=j.split(" "),at=tt[tt.length-1],z.forEach(function(ct,ut){return et[ct]=tt[ut]||at})):z.forEach(function(tt){return et[tt]=j}),delete et[it]})},q=function(et,X){(0,u.each)(X,function(it){var z=X[it].chunkNames,j=et[z[0]];et[it]="string"==typeof j?z.map(function(tt){var at=et[tt];return delete et[tt],at}).join(" "):j})}}])},
vendor: 3,686 bytes, line 1
1"./node_modules/stackblur/index.js":function(h,y){var c=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],d=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function v(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}h.exports=function a(t,s,n,r){if(!(isNaN(r)||r<1)){var u,l,p,x,m,g,w,C,k,M,N,O,_,P,A,T,L,I,F,W,q,et,X,it,z=(r|=0)+r+1,tt=s-1,at=n-1,ct=r+1,ut=ct*(ct+1)/2,rt=new v,lt=rt;for(p=1;p<z;p++)if(lt=lt.next=new v,p==ct)var ft=lt;lt.next=rt;var kt=null,wt=null;w=g=0;var Nt=c[r],Yt=d[r];for(l=0;l<n;l++){for(T=L=I=F=C=k=M=N=0,O=ct*(W=t[g]),_=ct*(q=t[g+1]),P=ct*(et=t[g+2]),A=ct*(X=t[g+3]),C+=ut*W,k+=ut*q,M+=ut*et,N+=ut*X,lt=rt,p=0;p<ct;p++)lt.r=W,lt.g=q,lt.b=et,lt.a=X,lt=lt.next;for(p=1;p<ct;p++)C+=(lt.r=W=t[x=g+((tt<p?tt:p)<<2)])*(it=ct-p),k+=(lt.g=q=t[x+1])*it,M+=(lt.b=et=t[x+2])*it,N+=(lt.a=X=t[x+3])*it,T+=W,L+=q,I+=et,F+=X,lt=lt.next;for(kt=rt,wt=ft,u=0;u<s;u++)t[g+3]=X=N*Nt>>Yt,0!=X?(t[g]=(C*Nt>>Yt)*(X=255/X),t[g+1]=(k*Nt>>Yt)*X,t[g+2]=(M*Nt>>Yt)*X):t[g]=t[g+1]=t[g+2]=0,C-=O,k-=_,M-=P,N-=A,O-=kt.r,_-=kt.g,P-=kt.b,A-=kt.a,x=w+((x=u+r+1)<tt?x:tt)<<2,C+=T+=kt.r=t[x],k+=L+=kt.g=t[x+1],M+=I+=kt.b=t[x+2],N+=F+=kt.a=t[x+3],kt=kt.next,O+=W=wt.r,_+=q=wt.g,P+=et=wt.b,A+=X=wt.a,T-=W,L-=q,I-=et,F-=X,wt=wt.next,g+=4;w+=s}for(u=0;u<s;u++){for(L=I=F=T=k=M=N=C=0,O=ct*(W=t[g=u<<2]),_=ct*(q=t[g+1]),P=ct*(et=t[g+2]),A=ct*(X=t[g+3]),C+=ut*W,k+=ut*q,M+=ut*et,N+=ut*X,lt=rt,p=0;p<ct;p++)lt.r=W,lt.g=q,lt.b=et,lt.a=X,lt=lt.next;for(m=s,p=1;p<=r;p++)C+=(lt.r=W=t[g=m+u<<2])*(it=ct-p),k+=(lt.g=q=t[g+1])*it,M+=(lt.b=et=t[g+2])*it,N+=(lt.a=X=t[g+3])*it,T+=W,L+=q,I+=et,F+=X,lt=lt.next,p<at&&(m+=s);for(g=u,kt=rt,wt=ft,l=0;l<n;l++)t[3+(x=g<<2)]=X=N*Nt>>Yt,X>0?(t[x]=(C*Nt>>Yt)*(X=255/X),t[x+1]=(k*Nt>>Yt)*X,t[x+2]=(M*Nt>>Yt)*X):t[x]=t[x+1]=t[x+2]=0,C-=O,k-=_,M-=P,N-=A,O-=kt.r,_-=kt.g,P-=kt.b,A-=kt.a,x=u+((x=l+ct)<at?x:at)*s<<2,C+=T+=kt.r=t[x],k+=L+=kt.g=t[x+1],M+=I+=kt.b=t[x+2],N+=F+=kt.a=t[x+3],kt=kt.next,O+=W=wt.r,_+=q=wt.g,P+=et=wt.b,A+=X=wt.a,T-=W,L-=q,I-=et,F-=X,wt=wt.next,g+=s}}}},
vendor: 4,267 bytes, line 1
1"./node_modules/style-loader/lib/addStyles.js":function(h,y,c){var A,T,d={},v=(A=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===T&&(T=A.apply(this,arguments)),T}),t=function(A){return document.querySelector(A)},s=function(A){var T={};return function(L){if("function"==typeof L)return L();if(void 0===T[L]){var I=t.call(this,L);if(window.HTMLIFrameElement&&I instanceof window.HTMLIFrameElement)try{I=I.contentDocument.head}catch(F){I=null}T[L]=I}return T[L]}}(),n=null,r=0,u=[],l=c("./node_modules/style-loader/lib/urls.js");function p(A,T){for(var L=0;L<A.length;L++){var I=A[L],F=d[I.id];if(F){F.refs++;for(var W=0;W<F.parts.length;W++)F.parts[W](I.parts[W]);for(;W<I.parts.length;W++)F.parts.push(M(I.parts[W],T))}else{var q=[];for(W=0;W<I.parts.length;W++)q.push(M(I.parts[W],T));d[I.id]={id:I.id,refs:1,parts:q}}}}function x(A,T){for(var L=[],I={},F=0;F<A.length;F++){var W=A[F],q=T.base?W[0]+T.base:W[0],z={css:W[1],media:W[2],sourceMap:W[3]};I[q]?I[q].parts.push(z):L.push(I[q]={id:q,parts:[z]})}return L}function m(A,T){var L=s(A.insertInto);if(!L)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var I=u[u.length-1];if("top"===A.insertAt)I?I.nextSibling?L.insertBefore(T,I.nextSibling):L.appendChild(T):L.insertBefore(T,L.firstChild),u.push(T);else if("bottom"===A.insertAt)L.appendChild(T);else{if("object"!=typeof A.insertAt||!A.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var F=s(A.insertInto+" "+A.insertAt.before);L.insertBefore(T,F)}}function g(A){if(null===A.parentNode)return!1;A.parentNode.removeChild(A);var T=u.indexOf(A);T>=0&&u.splice(T,1)}function w(A){var T=document.createElement("style");return void 0===A.attrs.type&&(A.attrs.type="text/css"),k(T,A.attrs),m(A,T),T}function k(A,T){Object.keys(T).forEach(function(L){A.setAttribute(L,T[L])})}function M(A,T){var L,I,F,W;if(T.transform&&A.css){if(!(W=T.transform(A.css)))return function(){};A.css=W}if(T.singleton){var q=r++;L=n||(n=w(T)),I=O.bind(null,L,q,!1),F=O.bind(null,L,q,!0)}else A.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(L=function C(A){var T=document.createElement("link");return void 0===A.attrs.type&&(A.attrs.type="text/css"),A.attrs.rel="stylesheet",k(T,A.attrs),m(A,T),T}(T),I=P.bind(null,L,T),F=function(){g(L),L.href&&URL.revokeObjectURL(L.href)}):(L=w(T),I=_.bind(null,L),F=function(){g(L)});return I(A),function(X){if(X){if(X.css===A.css&&X.media===A.media&&X.sourceMap===A.sourceMap)return;I(A=X)}else F()}}h.exports=function(A,T){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(T=T||{}).attrs="object"==typeof T.attrs?T.attrs:{},!T.singleton&&"boolean"!=typeof T.singleton&&(T.singleton=v()),T.insertInto||(T.insertInto="head"),T.insertAt||(T.insertAt="bottom");var L=x(A,T);return p(L,T),function(F){for(var W=[],q=0;q<L.length;q++)(X=d[L[q].id]).refs--,W.push(X);for(F&&p(x(F,T),T),q=0;q<W.length;q++){var X;if(0===(X=W[q]).refs){for(var z=0;z<X.parts.length;z++)X.parts[z]();delete d[X.id]}}}};var N=function(){var A=[];return function(T,L){return A[T]=L,A.filter(Boolean).join("\n")}}();function O(A,T,L,I){var F=L?"":I.css;if(A.styleSheet)A.styleSheet.cssText=N(T,F);else{var W=document.createTextNode(F),q=A.childNodes;q[T]&&A.removeChild(q[T]),q.length?A.insertBefore(W,q[T]):A.appendChild(W)}}function _(A,T){var L=T.css,I=T.media;if(I&&A.setAttribute("media",I),A.styleSheet)A.styleSheet.cssText=L;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(L))}}function P(A,T,L){var I=L.css,F=L.sourceMap;(T.convertToAbsoluteUrls||void 0===T.convertToAbsoluteUrls&&F)&&(I=l(I)),F&&(I+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(F))))+" */");var q=new Blob([I],{type:"text/css"}),et=A.href;A.href=URL.createObjectURL(q),et&&URL.revokeObjectURL(et)}},
vendor: 654 bytes, line 1
1"./node_modules/style-loader/lib/urls.js":function(h,y){h.exports=function(c){var d="undefined"!=typeof window&&window.location;if(!d)throw new Error("fixUrls requires window.location");if(!c||"string"!=typeof c)return c;var a=d.protocol+"//"+d.host,v=a+d.pathname.replace(/\/[^\/]*$/,"/");return c.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(s,n){var u,r=n.trim().replace(/^"(.*)"$/,function(l,p){return p}).replace(/^'(.*)'$/,function(l,p){return p});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?s:(u=0===r.indexOf("//")?r:0===r.indexOf("/")?a+r:v+r.replace(/^\.\//,""),"url("+JSON.stringify(u)+")")})}},
vendor: 188 bytes, line 1
1"./node_modules/webpack/buildin/global.js":function(h,y){var c;c=function(){return this}();try{c=c||new Function("return this")()}catch(d){"object"==typeof window&&(c=window)}h.exports=c},
vendor: 3,460 bytes, line 1
1"./node_modules/xmldom/dom-parser.js":function(h,y,c){function d(p){this.options=p||{locator:{}}}function v(){this.cdata=!1}function t(p,x){x.lineNumber=p.lineNumber,x.columnNumber=p.columnNumber}function s(p){if(p)return"\n@"+(p.systemId||"")+"#[line:"+p.lineNumber+",col:"+p.columnNumber+"]"}function n(p,x,m){return"string"==typeof p?p.substr(x,m):p.length>=x+m||x?new java.lang.String(p,x,m)+"":p}function r(p,x){p.currentElement?p.currentElement.appendChild(x):p.doc.appendChild(x)}d.prototype.parseFromString=function(p,x){var m=this.options,g=new u,w=m.domBuilder||new v,C=m.errorHandler,k=m.locator,M=m.xmlns||{},N={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return k&&w.setDocumentLocator(k),g.errorHandler=function a(p,x,m){if(!p){if(x instanceof v)return x;p=x}var g={},w=p instanceof Function;function C(k){var M=p[k];!M&&w&&(M=2==p.length?function(N){p(k,N)}:p),g[k]=M&&function(N){M("[xmldom "+k+"]\t"+N+s(m))}||function(){}}return m=m||{},C("warning"),C("error"),C("fatalError"),g}(C,w,k),g.domBuilder=m.domBuilder||w,/\/x?html?$/.test(x)&&(N.nbsp="\xa0",N.copy="\xa9",M[""]="http://www.w3.org/1999/xhtml"),M.xml=M.xml||"http://www.w3.org/XML/1998/namespace",p?g.parse(p,M,N):g.errorHandler.error("invalid doc source"),w.doc},v.prototype={startDocument:function(){this.doc=(new l).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(p,x,m,g){var w=this.doc,C=w.createElementNS(p,m||x),k=g.length;r(this,C),this.currentElement=C,this.locator&&t(this.locator,C);for(var M=0;M<k;M++){p=g.getURI(M);var N=g.getValue(M),O=(m=g.getQName(M),w.createAttributeNS(p,m));this.locator&&t(g.getLocator(M),O),O.value=O.nodeValue=N,C.setAttributeNode(O)}},endElement:function(p,x,m){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(p,x){},endPrefixMapping:function(p){},processingInstruction:function(p,x){var m=this.doc.createProcessingInstruction(p,x);this.locator&&t(this.locator,m),r(this,m)},ignorableWhitespace:function(p,x,m){},characters:function(p,x,m){if(p=n.apply(this,arguments)){if(this.cdata)var g=this.doc.createCDATASection(p);else g=this.doc.createTextNode(p);this.currentElement?this.currentElement.appendChild(g):/^\s*$/.test(p)&&this.doc.appendChild(g),this.locator&&t(this.locator,g)}},skippedEntity:function(p){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(p){(this.locator=p)&&(p.lineNumber=0)},comment:function(p,x,m){p=n.apply(this,arguments);var g=this.doc.createComment(p);this.locator&&t(this.locator,g),r(this,g)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(p,x,m){var g=this.doc.implementation;if(g&&g.createDocumentType){var w=g.createDocumentType(p,x,m);this.locator&&t(this.locator,w),r(this,w)}},warning:function(p){console.warn("[xmldom warning]\t"+p,s(this.locator))},error:function(p){console.error("[xmldom error]\t"+p,s(this.locator))},fatalError:function(p){throw console.error("[xmldom fatalError]\t"+p,s(this.locator)),p}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(p){v.prototype[p]=function(){return null}});var u=c("./node_modules/xmldom/sax.js").XMLReader,l=y.DOMImplementation=c("./node_modules/xmldom/dom.js").DOMImplementation;y.XMLSerializer=c("./node_modules/xmldom/dom.js").XMLSerializer,y.DOMParser=d},
vendor: 15,365 bytes, line 1
1"./node_modules/xmldom/dom.js":function(h,y){function c(K,G){for(var Q in K)G[Q]=K[Q]}function d(K,G){var Q=K.prototype;if(Object.create){var pt=Object.create(G.prototype);Q.__proto__=pt}if(!(Q instanceof G)){let Ht=function(){};Ht.prototype=G.prototype,Ht=new Ht,c(Q,Ht),K.prototype=Q=Ht}Q.constructor!=K&&("function"!=typeof K&&console.error("unknow Class:"+K),Q.constructor=K)}var v={},t=v.ELEMENT_NODE=1,s=v.ATTRIBUTE_NODE=2,n=v.TEXT_NODE=3,r=v.CDATA_SECTION_NODE=4,u=v.ENTITY_REFERENCE_NODE=5,l=v.ENTITY_NODE=6,p=v.PROCESSING_INSTRUCTION_NODE=7,x=v.COMMENT_NODE=8,m=v.DOCUMENT_NODE=9,g=v.DOCUMENT_TYPE_NODE=10,w=v.DOCUMENT_FRAGMENT_NODE=11,C=v.NOTATION_NODE=12,k={},M={},_=(k.INDEX_SIZE_ERR=(M[1]="Index size error",1),k.DOMSTRING_SIZE_ERR=(M[2]="DOMString size error",2),k.HIERARCHY_REQUEST_ERR=(M[3]="Hierarchy request error",3)),I=(k.WRONG_DOCUMENT_ERR=(M[4]="Wrong document",4),k.INVALID_CHARACTER_ERR=(M[5]="Invalid character",5),k.NO_DATA_ALLOWED_ERR=(M[6]="No data allowed",6),k.NO_MODIFICATION_ALLOWED_ERR=(M[7]="No modification allowed",7),k.NOT_FOUND_ERR=(M[8]="Not found",8)),W=(k.NOT_SUPPORTED_ERR=(M[9]="Not supported",9),k.INUSE_ATTRIBUTE_ERR=(M[10]="Attribute in use",10));function j(K,G){if(G instanceof Error)var Q=G;else Q=this,Error.call(this,M[K]),this.message=M[K],Error.captureStackTrace&&Error.captureStackTrace(this,j);return Q.code=K,G&&(this.message=this.message+": "+G),Q}function tt(){}function at(K,G){this._node=K,this._refresh=G,ct(this)}function ct(K){var G=K._node._inc||K._node.ownerDocument._inc;if(K._inc!=G){var Q=K._refresh(K._node);nt(K,"length",Q.length),c(Q,K),K._inc=G}}function ut(){}function rt(K,G){for(var Q=K.length;Q--;)if(K[Q]===G)return Q}function lt(K,G,Q,pt){if(pt?G[rt(G,pt)]=Q:G[G.length++]=Q,K){Q.ownerElement=K;var bt=K.ownerDocument;bt&&(pt&&ce(bt,K,pt),function $t(K,G,Q){K&&K._inc++,"http://www.w3.org/2000/xmlns/"==Q.namespaceURI&&(G._nsMap[Q.prefix?Q.localName:""]=Q.value)}(bt,K,Q))}}function ft(K,G,Q){var pt=rt(G,Q);if(!(pt>=0))throw j(I,new Error(K.tagName+"@"+Q));for(var bt=G.length-1;pt<bt;)G[pt]=G[++pt];if(G.length=bt,K){var Ht=K.ownerDocument;Ht&&(ce(Ht,K,Q),Q.ownerElement=null)}}function kt(K){if(this._features={},K)for(var G in K)this._features=K[G]}function wt(){}function Nt(K){return("<"==K?"<":">"==K&&">")||"&"==K&&"&"||'"'==K&&"""||"&#"+K.charCodeAt()+";"}function Yt(K,G){if(G(K))return!0;if(K=K.firstChild)do{if(Yt(K,G))return!0}while(K=K.nextSibling)}function Qt(){}function ce(K,G,Q,pt){K&&K._inc++,"http://www.w3.org/2000/xmlns/"==Q.namespaceURI&&delete G._nsMap[Q.prefix?Q.localName:""]}function fe(K,G,Q){if(K&&K._inc){K._inc++;var pt=G.childNodes;if(Q)pt[pt.length++]=Q;else{for(var bt=G.firstChild,Ht=0;bt;)pt[Ht++]=bt,bt=bt.nextSibling;pt.length=Ht}}}function qt(K,G){var Q=G.previousSibling,pt=G.nextSibling;return Q?Q.nextSibling=pt:K.firstChild=pt,pt?pt.previousSibling=Q:K.lastChild=Q,fe(K.ownerDocument,K),G}function Ct(K,G,Q){var pt=G.parentNode;if(pt&&pt.removeChild(G),G.nodeType===w){var bt=G.firstChild;if(null==bt)return G;var Ht=G.lastChild}else bt=Ht=G;var Ft=Q?Q.previousSibling:K.lastChild;bt.previousSibling=Ft,Ht.nextSibling=Q,Ft?Ft.nextSibling=bt:K.firstChild=bt,null==Q?K.lastChild=Ht:Q.previousSibling=Ht;do{bt.parentNode=K}while(bt!==Ht&&(bt=bt.nextSibling));return fe(K.ownerDocument||K,K),G.nodeType==w&&(G.firstChild=G.lastChild=null),G}function jt(){this._nsMap={}}function Ut(){}function Kt(){}function ne(){}function zt(){}function Vt(){}function ke(){}function me(){}function be(){}function Me(){}function Fe(){}function o(){}function f(){}function b(K,G){var Q=[],pt=9==this.nodeType?this.documentElement:this,bt=pt.prefix,Ht=pt.namespaceURI;if(Ht&&null==bt&&null==(bt=pt.lookupPrefix(Ht)))var Ft=[{namespace:Ht,prefix:null}];return D(this,Q,K,G,Ft),Q.join("")}function E(K,G,Q){var pt=K.prefix||"",bt=K.namespaceURI;if(!pt&&!bt||"xml"===pt&&"http://www.w3.org/XML/1998/namespace"===bt||"http://www.w3.org/2000/xmlns/"==bt)return!1;for(var Ht=Q.length;Ht--;){var Ft=Q[Ht];if(Ft.prefix==pt)return Ft.namespace!=bt}return!0}function D(K,G,Q,pt,bt){if(pt){if(!(K=pt(K)))return;if("string"==typeof K)return void G.push(K)}switch(K.nodeType){case t:bt||(bt=[]);var Ft=K.attributes,V=Ft.length,Ot=K.firstChild,dt=K.tagName;Q="http://www.w3.org/1999/xhtml"===K.namespaceURI||Q,G.push("<",dt);for(var gt=0;gt<V;gt++)"xmlns"==(yt=Ft.item(gt)).prefix?bt.push({prefix:yt.localName,namespace:yt.value}):"xmlns"==yt.nodeName&&bt.push({prefix:"",namespace:yt.value});for(gt=0;gt<V;gt++){var yt,St,Et;E(yt=Ft.item(gt),0,bt)&&(G.push((St=yt.prefix||"")?" xmlns:"+St:" xmlns",'="',Et=yt.namespaceURI,'"'),bt.push({prefix:St,namespace:Et})),D(yt,G,Q,pt,bt)}if(E(K,0,bt)&&(G.push((St=K.prefix||"")?" xmlns:"+St:" xmlns",'="',Et=K.namespaceURI,'"'),bt.push({prefix:St,namespace:Et})),Ot||Q&&!/^(?:meta|link|img|br|hr|input)$/i.test(dt)){if(G.push(">"),Q&&/^script$/i.test(dt))for(;Ot;)Ot.data?G.push(Ot.data):D(Ot,G,Q,pt,bt),Ot=Ot.nextSibling;else for(;Ot;)D(Ot,G,Q,pt,bt),Ot=Ot.nextSibling;G.push("</",dt,">")}else G.push("/>");return;case m:case w:for(Ot=K.firstChild;Ot;)D(Ot,G,Q,pt,bt),Ot=Ot.nextSibling;return;case s:return G.push(" ",K.name,'="',K.value.replace(/[<&"]/g,Nt),'"');case n:return G.push(K.data.replace(/[<&]/g,Nt));case r:return G.push("<![CDATA[",K.data,"]]>");case x:return G.push("\x3c!--",K.data,"--\x3e");case g:var Gt=K.publicId,Xt=K.systemId;if(G.push("<!DOCTYPE ",K.name),Gt)G.push(' PUBLIC "',Gt),Xt&&"."!=Xt&&G.push('" "',Xt),G.push('">');else if(Xt&&"."!=Xt)G.push(' SYSTEM "',Xt,'">');else{var Zt=K.internalSubset;Zt&&G.push(" [",Zt,"]"),G.push(">")}return;case p:return G.push("<?",K.target," ",K.data,"?>");case u:return G.push("&",K.nodeName,";");default:G.push("??",K.nodeName)}}function H(K,G,Q){var pt;switch(G.nodeType){case t:(pt=G.cloneNode(!1)).ownerDocument=K;case w:break;case s:Q=!0}if(pt||(pt=G.cloneNode(!1)),pt.ownerDocument=K,pt.parentNode=null,Q)for(var bt=G.firstChild;bt;)pt.appendChild(H(K,bt,Q)),bt=bt.nextSibling;return pt}function Y(K,G,Q){var pt=new G.constructor;for(var bt in G){var Ht=G[bt];"object"!=typeof Ht&&Ht!=pt[bt]&&(pt[bt]=Ht)}switch(G.childNodes&&(pt.childNodes=new tt),pt.ownerDocument=K,pt.nodeType){case t:var Ft=G.attributes,V=pt.attributes=new ut,dt=Ft.length;V._ownerElement=pt;for(var gt=0;gt<dt;gt++)pt.setAttributeNode(Y(K,Ft.item(gt),!0));break;case s:Q=!0}if(Q)for(var yt=G.firstChild;yt;)pt.appendChild(Y(K,yt,Q)),yt=yt.nextSibling;return pt}function nt(K,G,Q){K[G]=Q}k.INVALID_STATE_ERR=(M[11]="Invalid state",11),k.SYNTAX_ERR=(M[12]="Syntax error",12),k.INVALID_MODIFICATION_ERR=(M[13]="Invalid modification",13),k.NAMESPACE_ERR=(M[14]="Invalid namespace",14),k.INVALID_ACCESS_ERR=(M[15]="Invalid access",15),j.prototype=Error.prototype,c(k,j),tt.prototype={length:0,item:function(K){return this[K]||null},toString:function(K,G){for(var Q=[],pt=0;pt<this.length;pt++)D(this[pt],Q,K,G);return Q.join("")}},at.prototype.item=function(K){return ct(this),this[K]},d(at,tt),ut.prototype={length:0,item:tt.prototype.item,getNamedItem:function(K){for(var G=this.length;G--;){var Q=this[G];if(Q.nodeName==K)return Q}},setNamedItem:function(K){var G=K.ownerElement;if(G&&G!=this._ownerElement)throw new j(W);var Q=this.getNamedItem(K.nodeName);return lt(this._ownerElement,this,K,Q),Q},setNamedItemNS:function(K){var Q,G=K.ownerElement;if(G&&G!=this._ownerElement)throw new j(W);return Q=this.getNamedItemNS(K.namespaceURI,K.localName),lt(this._ownerElement,this,K,Q),Q},removeNamedItem:function(K){var G=this.getNamedItem(K);return ft(this._ownerElement,this,G),G},removeNamedItemNS:function(K,G){var Q=this.getNamedItemNS(K,G);return ft(this._ownerElement,this,Q),Q},getNamedItemNS:function(K,G){for(var Q=this.length;Q--;){var pt=this[Q];if(pt.localName==G&&pt.namespaceURI==K)return pt}return null}},kt.prototype={hasFeature:function(K,G){var Q=this._features[K.toLowerCase()];return!(!Q||G&&!(G in Q))},createDocument:function(K,G,Q){var pt=new Qt;if(pt.implementation=this,pt.childNodes=new tt,pt.doctype=Q,Q&&pt.appendChild(Q),G){var bt=pt.createElementNS(K,G);pt.appendChild(bt)}return pt},createDocumentType:function(K,G,Q){var pt=new ke;return pt.name=K,pt.nodeName=K,pt.publicId=G,pt.systemId=Q,pt}},wt.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(K,G){return Ct(this,K,G)},replaceChild:function(K,G){this.insertBefore(K,G),G&&this.removeChild(G)},removeChild:function(K){return qt(this,K)},appendChild:function(K){return this.insertBefore(K,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(K){return Y(this.ownerDocument||this,this,K)},normalize:function(){for(var K=this.firstChild;K;){var G=K.nextSibling;G&&G.nodeType==n&&K.nodeType==n?(this.removeChild(G),K.appendData(G.data)):(K.normalize(),K=G)}},isSupported:function(K,G){return this.ownerDocument.implementation.hasFeature(K,G)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(K){for(var G=this;G;){var Q=G._nsMap;if(Q)for(var pt in Q)if(Q[pt]==K)return pt;G=G.nodeType==s?G.ownerDocument:G.parentNode}return null},lookupNamespaceURI:function(K){for(var G=this;G;){var Q=G._nsMap;if(Q&&K in Q)return Q[K];G=G.nodeType==s?G.ownerDocument:G.parentNode}return null},isDefaultNamespace:function(K){return null==this.lookupPrefix(K)}},c(v,wt),c(v,wt.prototype),Qt.prototype={nodeName:"#document",nodeType:m,doctype:null,documentElement:null,_inc:1,insertBefore:function(K,G){if(K.nodeType==w){for(var Q=K.firstChild;Q;){var pt=Q.nextSibling;this.insertBefore(Q,G),Q=pt}return K}return null==this.documentElement&&K.nodeType==t&&(this.documentElement=K),Ct(this,K,G),K.ownerDocument=this,K},removeChild:function(K){return this.documentElement==K&&(this.documentElement=null),qt(this,K)},importNode:function(K,G){return H(this,K,G)},getElementById:function(K){var G=null;return Yt(this.documentElement,function(Q){if(Q.nodeType==t&&Q.getAttribute("id")==K)return G=Q,!0}),G},createElement:function(K){var G=new jt;return G.ownerDocument=this,G.nodeName=K,G.tagName=K,G.childNodes=new tt,(G.attributes=new ut)._ownerElement=G,G},createDocumentFragment:function(){var K=new Fe;return K.ownerDocument=this,K.childNodes=new tt,K},createTextNode:function(K){var G=new ne;return G.ownerDocument=this,G.appendData(K),G},createComment:function(K){var G=new zt;return G.ownerDocument=this,G.appendData(K),G},createCDATASection:function(K){var G=new Vt;return G.ownerDocument=this,G.appendData(K),G},createProcessingInstruction:function(K,G){var Q=new o;return Q.ownerDocument=this,Q.tagName=Q.target=K,Q.nodeValue=Q.data=G,Q},createAttribute:function(K){var G=new Ut;return G.ownerDocument=this,G.name=K,G.nodeName=K,G.localName=K,G.specified=!0,G},createEntityReference:function(K){var G=new Me;return G.ownerDocument=this,G.nodeName=K,G},createElementNS:function(K,G){var Q=new jt,pt=G.split(":"),bt=Q.attributes=new ut;return Q.childNodes=new tt,Q.ownerDocument=this,Q.nodeName=G,Q.tagName=G,Q.namespaceURI=K,2==pt.length?(Q.prefix=pt[0],Q.localName=pt[1]):Q.localName=G,bt._ownerElement=Q,Q},createAttributeNS:function(K,G){var Q=new Ut,pt=G.split(":");return Q.ownerDocument=this,Q.nodeName=G,Q.name=G,Q.namespaceURI=K,Q.specified=!0,2==pt.length?(Q.prefix=pt[0],Q.localName=pt[1]):Q.localName=G,Q}},d(Qt,wt),Qt.prototype.getElementsByTagName=(jt.prototype={nodeType:t,hasAttribute:function(K){return null!=this.getAttributeNode(K)},getAttribute:function(K){var G=this.getAttributeNode(K);return G&&G.value||""},getAttributeNode:function(K){return this.attributes.getNamedItem(K)},setAttribute:function(K,G){var Q=this.ownerDocument.createAttribute(K);Q.value=Q.nodeValue=""+G,this.setAttributeNode(Q)},removeAttribute:function(K){var G=this.getAttributeNode(K);G&&this.removeAttributeNode(G)},appendChild:function(K){return K.nodeType===w?this.insertBefore(K,null):function Tt(K,G){var Q=G.parentNode;if(Q){var pt=K.lastChild;Q.removeChild(G),pt=K.lastChild}return pt=K.lastChild,G.parentNode=K,G.previousSibling=pt,G.nextSibling=null,pt?pt.nextSibling=G:K.firstChild=G,K.lastChild=G,fe(K.ownerDocument,K,G),G}(this,K)},setAttributeNode:function(K){return this.attributes.setNamedItem(K)},setAttributeNodeNS:function(K){return this.attributes.setNamedItemNS(K)},removeAttributeNode:function(K){return this.attributes.removeNamedItem(K.nodeName)},removeAttributeNS:function(K,G){var Q=this.getAttributeNodeNS(K,G);Q&&this.removeAttributeNode(Q)},hasAttributeNS:function(K,G){return null!=this.getAttributeNodeNS(K,G)},getAttributeNS:function(K,G){var Q=this.getAttributeNodeNS(K,G);return Q&&Q.value||""},setAttributeNS:function(K,G,Q){var pt=this.ownerDocument.createAttributeNS(K,G);pt.value=pt.nodeValue=""+Q,this.setAttributeNode(pt)},getAttributeNodeNS:function(K,G){return this.attributes.getNamedItemNS(K,G)},getElementsByTagName:function(K){return new at(this,function(G){var Q=[];return Yt(G,function(pt){pt!==G&&pt.nodeType==t&&("*"===K||pt.tagName==K)&&Q.push(pt)}),Q})},getElementsByTagNameNS:function(K,G){return new at(this,function(Q){var pt=[];return Yt(Q,function(bt){bt!==Q&&bt.nodeType===t&&("*"===K||bt.namespaceURI===K)&&("*"===G||bt.localName==G)&&pt.push(bt)}),pt})}}).getElementsByTagName,Qt.prototype.getElementsByTagNameNS=jt.prototype.getElementsByTagNameNS,d(jt,wt),Ut.prototype.nodeType=s,d(Ut,wt),Kt.prototype={data:"",substringData:function(K,G){return this.data.substring(K,K+G)},appendData:function(K){this.nodeValue=this.data=K=this.data+K,this.length=K.length},insertData:function(K,G){this.replaceData(K,0,G)},appendChild:function(K){throw new Error(M[_])},deleteData:function(K,G){this.replaceData(K,G,"")},replaceData:function(K,G,Q){var pt=this.data.substring(0,K),bt=this.data.substring(K+G);this.nodeValue=this.data=Q=pt+Q+bt,this.length=Q.length}},d(Kt,wt),ne.prototype={nodeName:"#text",nodeType:n,splitText:function(K){var G=this.data,Q=G.substring(K);G=G.substring(0,K),this.data=this.nodeValue=G,this.length=G.length;var pt=this.ownerDocument.createTextNode(Q);return this.parentNode&&this.parentNode.insertBefore(pt,this.nextSibling),pt}},d(ne,Kt),zt.prototype={nodeName:"#comment",nodeType:x},d(zt,Kt),Vt.prototype={nodeName:"#cdata-section",nodeType:r},d(Vt,Kt),ke.prototype.nodeType=g,d(ke,wt),me.prototype.nodeType=C,d(me,wt),be.prototype.nodeType=l,d(be,wt),Me.prototype.nodeType=u,d(Me,wt),Fe.prototype.nodeName="#document-fragment",Fe.prototype.nodeType=w,d(Fe,wt),o.prototype.nodeType=p,d(o,wt),f.prototype.serializeToString=function(K,G,Q){return b.call(K,G,Q)},wt.prototype.toString=b;try{if(Object.defineProperty){let K=function(G){switch(G.nodeType){case t:case w:var Q=[];for(G=G.firstChild;G;)7!==G.nodeType&&8!==G.nodeType&&Q.push(K(G)),G=G.nextSibling;return Q.join("");default:return G.nodeValue}};Object.defineProperty(at.prototype,"length",{get:function(){return ct(this),this.$$length}}),Object.defineProperty(wt.prototype,"textContent",{get:function(){return K(this)},set:function(G){switch(this.nodeType){case t:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(G||String(G))&&this.appendChild(this.ownerDocument.createTextNode(G));break;default:this.data=G,this.value=G,this.nodeValue=G}}}),nt=function(G,Q,pt){G["$$"+Q]=pt}}}catch(K){}y.DOMImplementation=kt,y.XMLSerializer=f},
vendor: 7,407 bytes, line 1
1"./node_modules/xmldom/sax.js":function(h,y){var c=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=new RegExp("[\\-\\.0-9"+c.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+c.source+d.source+"*(?::"+c.source+d.source+"*)?$");function x(){}function g(L,I){return I.lineNumber=L.lineNumber,I.columnNumber=L.columnNumber,I}function w(L,I,F,W,q,et){for(var X,z=++I,j=0;;){var tt=L.charAt(z);switch(tt){case"=":if(1===j)X=L.slice(I,z),j=3;else{if(2!==j)throw new Error("attribute equal must after attrName");j=3}break;case"'":case'"':if(3===j||1===j){if(1===j&&(et.warning('attribute value must after "="'),X=L.slice(I,z)),!((z=L.indexOf(tt,I=z+1))>0))throw new Error("attribute value no end '"+tt+"' match");it=L.slice(I,z).replace(/&#?\w+;/g,q),F.add(X,it,I-1),j=5}else{if(4!=j)throw new Error('attribute value must after "="');it=L.slice(I,z).replace(/&#?\w+;/g,q),F.add(X,it,I),et.warning('attribute "'+X+'" missed start quot('+tt+")!!"),I=z+1,j=5}break;case"/":switch(j){case 0:F.setTagName(L.slice(I,z));case 5:case 6:case 7:j=7,F.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return et.error("unexpected end of input"),0==j&&F.setTagName(L.slice(I,z)),z;case">":switch(j){case 0:F.setTagName(L.slice(I,z));case 5:case 6:case 7:break;case 4:case 1:"/"===(it=L.slice(I,z)).slice(-1)&&(F.closed=!0,it=it.slice(0,-1));case 2:2===j&&(it=X),4==j?(et.warning('attribute "'+it+'" missed quot(")!!'),F.add(X,it.replace(/&#?\w+;/g,q),I)):(("http://www.w3.org/1999/xhtml"!==W[""]||!it.match(/^(?:disabled|checked|selected)$/i))&&et.warning('attribute "'+it+'" missed value!! "'+it+'" instead!!'),F.add(it,it,I));break;case 3:throw new Error("attribute value missed!!")}return z;case"\x80":tt=" ";default:if(tt<=" ")switch(j){case 0:F.setTagName(L.slice(I,z)),j=6;break;case 1:X=L.slice(I,z),j=2;break;case 4:var it=L.slice(I,z).replace(/&#?\w+;/g,q);et.warning('attribute "'+it+'" missed quot(")!!'),F.add(X,it,I);case 5:j=6}else switch(j){case 2:("http://www.w3.org/1999/xhtml"!==W[""]||!X.match(/^(?:disabled|checked|selected)$/i))&&et.warning('attribute "'+X+'" missed value!! "'+X+'" instead2!!'),F.add(X,X,I),I=z,j=1;break;case 5:et.warning('attribute space is required"'+X+'"!!');case 6:j=1,I=z;break;case 3:j=4,I=z;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}z++}}function C(L,I,F){for(var W=L.tagName,q=null,at=L.length;at--;){var et=L[at],X=et.qName,it=et.value;if((ct=X.indexOf(":"))>0)var z=et.prefix=X.slice(0,ct),j=X.slice(ct+1),tt="xmlns"===z&&j;else j=X,z=null,tt="xmlns"===X&&"";et.localName=j,!1!==tt&&(null==q&&(q={},N(F,F={})),F[tt]=q[tt]=it,et.uri="http://www.w3.org/2000/xmlns/",I.startPrefixMapping(tt,it))}for(at=L.length;at--;)(z=(et=L[at]).prefix)&&("xml"===z&&(et.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==z&&(et.uri=F[z||""]));var ct;(ct=W.indexOf(":"))>0?(z=L.prefix=W.slice(0,ct),j=L.localName=W.slice(ct+1)):(z=null,j=L.localName=W);var ut=L.uri=F[z||""];if(I.startElement(ut,j,W,L),!L.closed)return L.currentNSMap=F,L.localNSMap=q,!0;if(I.endElement(ut,j,W),q)for(z in q)I.endPrefixMapping(z)}function k(L,I,F,W,q){if(/^(?:script|textarea)$/i.test(F)){var et=L.indexOf("</"+F+">",I),X=L.substring(I+1,et);if(/[&<]/.test(X))return/^script$/i.test(F)?(q.characters(X,0,X.length),et):(X=X.replace(/&#?\w+;/g,W),q.characters(X,0,X.length),et)}return I+1}function M(L,I,F,W){var q=W[F];return null==q&&((q=L.lastIndexOf("</"+F+">"))<I&&(q=L.lastIndexOf("</"+F)),W[F]=q),q<I}function N(L,I){for(var F in L)I[F]=L[F]}function O(L,I,F,W){if("-"===L.charAt(I+2))return"-"===L.charAt(I+3)?(et=L.indexOf("--\x3e",I+4))>I?(F.comment(L,I+4,et-I-4),et+3):(W.error("Unclosed comment"),-1):-1;if("CDATA["==L.substr(I+3,6)){var et=L.indexOf("]]>",I+9);return F.startCDATA(),F.characters(L,I+9,et-I-9),F.endCDATA(),et+3}var X=function T(L,I){var F,W=[],q=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(q.lastIndex=I,q.exec(L);F=q.exec(L);)if(W.push(F),F[1])return W}(L,I),it=X.length;if(it>1&&/!doctype/i.test(X[0][0])){var z=X[1][0],j=it>3&&/^public$/i.test(X[2][0])&&X[3][0],tt=it>4&&X[4][0],at=X[it-1];return F.startDTD(z,j&&j.replace(/^(['"])(.*?)\1$/,"$2"),tt&&tt.replace(/^(['"])(.*?)\1$/,"$2")),F.endDTD(),at.index+at[0].length}return-1}function _(L,I,F){var W=L.indexOf("?>",I);if(W){var q=L.substring(I,W).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return q?(F.processingInstruction(q[1],q[2]),W+2):-1}return-1}function P(L){}function A(L,I){return L.__proto__=I,L}x.prototype={parse:function(L,I,F){var W=this.domBuilder;W.startDocument(),N(I,I={}),function m(L,I,F,W,q){function X(zt){var Vt=zt.slice(1,-1);return Vt in F?F[Vt]:"#"===Vt.charAt(0)?function et(zt){return zt>65535?(zt-=65536,String.fromCharCode(55296+(zt>>10),56320+(1023&zt))):String.fromCharCode(zt)}(parseInt(Vt.substr(1).replace("x","0x"))):(q.error("entity not found:"+zt),zt)}function it(zt){if(zt>lt){var Vt=L.substring(lt,zt).replace(/&#?\w+;/g,X);ct&&z(lt),W.characters(Vt,0,zt-lt),lt=zt}}function z(zt,Vt){for(;zt>=tt&&(Vt=at.exec(L));)tt=(j=Vt.index)+Vt[0].length,ct.lineNumber++;ct.columnNumber=zt-j+1}for(var j=0,tt=0,at=/.*(?:\r\n?|\n)|.*$/g,ct=W.locator,ut=[{currentNSMap:I}],rt={},lt=0;;){try{var ft=L.indexOf("<",lt);if(ft<0){if(!L.substr(lt).match(/^\s*$/)){var kt=W.doc,wt=kt.createTextNode(L.substr(lt));kt.appendChild(wt),W.currentElement=wt}return}switch(ft>lt&&it(ft),L.charAt(ft+1)){case"/":var Tt=L.indexOf(">",ft+3),Nt=L.substring(ft+2,Tt),Yt=ut.pop();Tt<0?(Nt=L.substring(ft+2).replace(/[\s<].*/,""),q.error("end tag name: "+Nt+" is not complete:"+Yt.tagName),Tt=ft+1+Nt.length):Nt.match(/\s</)&&(Nt=Nt.replace(/[\s<].*/,""),q.error("end tag name: "+Nt+" maybe not complete"),Tt=ft+1+Nt.length);var Qt=Yt.localNSMap,$t=Yt.tagName==Nt;if($t||Yt.tagName&&Yt.tagName.toLowerCase()==Nt.toLowerCase()){if(W.endElement(Yt.uri,Yt.localName,Nt),Qt)for(var fe in Qt)W.endPrefixMapping(fe);$t||q.fatalError("end tag name: "+Nt+" is not match the current start tagName:"+Yt.tagName)}else ut.push(Yt);Tt++;break;case"?":ct&&z(ft),Tt=_(L,ft,W);break;case"!":ct&&z(ft),Tt=O(L,ft,W,q);break;default:ct&&z(ft);var qt=new P,Ct=ut[ut.length-1].currentNSMap,jt=(Tt=w(L,ft,qt,Ct,X,q),qt.length);if(!qt.closed&&M(L,Tt,qt.tagName,rt)&&(qt.closed=!0,F.nbsp||q.warning("unclosed xml attribute")),ct&&jt){for(var Ut=g(ct,{}),Kt=0;Kt<jt;Kt++){var ne=qt[Kt];z(ne.offset),ne.locator=g(ct,{})}W.locator=Ut,C(qt,W,Ct)&&ut.push(qt),W.locator=ct}else C(qt,W,Ct)&&ut.push(qt);"http://www.w3.org/1999/xhtml"!==qt.uri||qt.closed?Tt++:Tt=k(L,Tt,qt.tagName,X,W)}}catch(zt){q.error("element parse error: "+zt),Tt=-1}Tt>lt?lt=Tt:it(Math.max(ft,lt)+1)}}(L,I,F,W,this.errorHandler),W.endDocument()}},P.prototype={setTagName:function(L){if(!a.test(L))throw new Error("invalid tagName:"+L);this.tagName=L},add:function(L,I,F){if(!a.test(L))throw new Error("invalid attribute:"+L);this[this.length++]={qName:L,value:I,offset:F}},length:0,getLocalName:function(L){return this[L].localName},getLocator:function(L){return this[L].locator},getQName:function(L){return this[L].qName},getURI:function(L){return this[L].uri},getValue:function(L){return this[L].value}},A({},A.prototype)instanceof A||(A=function(L,I){function F(){}for(I in F.prototype=I,F=new F,L)F[I]=L[I];return F}),y.XMLReader=x},
1"./src/Canvas.js":function(h,y,c){"use strict";var a=function v(s){return s&&s.__esModule?s:{default:s}}(c("./src/packages.js"));function t(s){if(Array.isArray(s)){for(var n=0,r=Array(s.length);n<s.length;n++)r[n]=s[n];return r}return Array.from(s)}a.default.Canvas=Class.extend({NAME:"draw2d.Canvas",init:function(n,r,u){var l=this;this.setScrollArea(document.body),this.canvasId=n,this.html=$("#"+n),this.html.css({cursor:"default"}),isNaN(parseFloat(r))||isNaN(parseFloat(u))?(this.initialWidth=this.getWidth(),this.initialHeight=this.getHeight()):(this.initialWidth=parseInt(r),this.initialHeight=parseInt(u),this.html.height(this.initialHeight).width(this.initialWidth)),this.html.css({"-webkit-tap-highlight-color":"rgba(0,0,0,0)"}),$(this.html).droppable({accept:".draw2d_droppable",over:function(x,m){l.onDragEnter(m.draggable)},out:function(x,m){l.onDragLeave(m.draggable)},drop:function(x,m){x=l._getEvent(x);var g=$(m.helper).position(),w=l.fromDocumentToCanvasCoordinate(x.clientX,x.clientY);l.onDrop(m.draggable,w.getX()-(x.clientX-g.left)+5,w.getY()-(x.clientY-g.top)+5,x.shiftKey,x.ctrlKey)}}),$(".draw2d_droppable").draggable({appendTo:"body",stack:"body",zIndex:27e3,helper:"clone",drag:function(x,m){x=l._getEvent(x);var g=l.fromDocumentToCanvasCoordinate(x.clientX,x.clientY);l.onDrag(m.draggable,g.getX(),g.getY(),x.shiftKey,x.ctrlKey)},stop:function(x,m){},start:function(x,m){$(m.helper).addClass("shadow")}}),this.paper=isNaN(parseFloat(u))?Raphael(n,this.getWidth(),this.getHeight()):Raphael(n,r,u),this.paper.canvas.style.position="absolute",this.zoomPolicy=null,this.zoomFactor=1,this.selection=new a.default.Selection,this.currentDropTarget=null,this.currentHoverFigure=null,this.regionDragDropConstraint=new a.default.policy.figure.RegionEditPolicy(0,0,this.getWidth(),this.getHeight()),this.eventSubscriptions={},this.editPolicy=new a.default.util.ArrayList,this.figures=new a.default.util.ArrayList,this.lines=new a.default.util.ArrayList,this.commonPorts=new a.default.util.ArrayList,this.resizeHandles=new a.default.util.ArrayList,this.commandStack=new a.default.command.CommandStack,this.linesToRepaintAfterDragDrop=new a.default.util.ArrayList,this.lineIntersections=new a.default.util.ArrayList,this.installEditPolicy(new a.default.policy.canvas.WheelZoomPolicy),this.installEditPolicy(new a.default.policy.canvas.DefaultKeyboardPolicy),this.installEditPolicy(new a.default.policy.canvas.BoundingboxSelectionPolicy),this.installEditPolicy(new a.default.policy.canvas.DropInterceptorPolicy),this.installEditPolicy(new a.default.policy.connection.ComposedConnectionCreatePolicy([new a.default.policy.connection.DragConnectionCreatePolicy,new a.default.policy.connection.ClickConnectionCreatePolicy])),this.commandStack.addEventListener(function(p){!0===p.isPostChangeEvent()&&(l.calculateConnectionIntersection(),l.linesToRepaintAfterDragDrop.each(function(x,m){m.svgPathString=null,m.repaint()}),l.linesToRepaintAfterDragDrop=new a.default.util.ArrayList)}),this.mouseDown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseDragDiffX=0,this.mouseDragDiffY=0,this.html.bind("mouseup touchend",function(p){if(!1!==l.mouseDown){p=l._getEvent(p),l.calculateConnectionIntersection(),l.mouseDown=!1;var x=l.fromDocumentToCanvasCoordinate(p.clientX,p.clientY);l.editPolicy.each(function(m,g){g.onMouseUp(l,x.x,x.y,p.shiftKey,p.ctrlKey)}),l.mouseDragDiffX=0,l.mouseDragDiffY=0}}),this.html.bind("mousemove touchmove",function(p){p=l._getEvent(p);var x=l.fromDocumentToCanvasCoordinate(p.clientX,p.clientY);if(!1===l.mouseDown){try{var m=l.getBestFigure(x.x,x.y);m!==l.currentHoverFigure&&null!==l.currentHoverFigure&&(l.currentHoverFigure.onMouseLeave(),l.currentHoverFigure.fireEvent("mouseleave"),l.fireEvent("mouseleave",{figure:l.currentHoverFigure})),m!==l.currentHoverFigure&&null!==m&&(m.onMouseEnter(),m.fireEvent("mouseenter"),l.fireEvent("mouseenter",{figure:m})),l.currentHoverFigure=m}catch(C){console.log(C)}l.editPolicy.each(function(C,k){k.onMouseMove(l,x.x,x.y,p.shiftKey,p.ctrlKey)}),l.fireEvent("mousemove",{x:x.x,y:x.y,shiftKey:p.shiftKey,ctrlKey:p.ctrlKey,hoverFigure:l.currentHoverFigure})}else{var g=(p.clientX-l.mouseDownX)*l.zoomFactor,w=(p.clientY-l.mouseDownY)*l.zoomFactor;l.editPolicy.each(function(C,k){k.onMouseDrag(l,g,w,g-l.mouseDragDiffX,w-l.mouseDragDiffY,p.shiftKey,p.ctrlKey)}),l.mouseDragDiffX=g,l.mouseDragDiffY=w,l.fireEvent("mousemove",{x:x.x,y:x.y,shift
1Key:p.shiftKey,ctrlKey:p.ctrlKey,hoverFigure:l.currentHoverFigure})}}),this.html.bind("mousedown",function(p){try{var x=null;switch(p.which){case 1:case 0:try{p.preventDefault(),p=l._getEvent(p),l.mouseDownX=p.clientX,l.mouseDownY=p.clientY,l.mouseDragDiffX=0,l.mouseDragDiffY=0,x=l.fromDocumentToCanvasCoordinate(p.clientX,p.clientY),l.mouseDown=!0,l.editPolicy.each(function(m,g){g.onMouseDown(l,x.x,x.y,p.shiftKey,p.ctrlKey)})}catch(m){console.log(m)}break;case 3:return p.preventDefault(),void 0!==p.stopPropagation&&p.stopPropagation(),p=l._getEvent(p),x=l.fromDocumentToCanvasCoordinate(p.clientX,p.clientY),l.onRightMouseDown(x.x,x.y,p.shiftKey,p.ctrlKey),!1}}catch(m){console.log(m)}}),this.html.on("dblclick",function(p){p=l._getEvent(p),l.mouseDownX=p.clientX,l.mouseDownY=p.clientY;var x=l.fromDocumentToCanvasCoordinate(p.clientX,p.clientY);l.onDoubleClick(x.x,x.y,p.shiftKey,p.ctrlKey)}),this.html.on("click",function(p){if(p=l._getEvent(p),l.mouseDownX===p.clientX||l.mouseDownY===p.clientY){var x=l.fromDocumentToCanvasCoordinate(p.clientX,p.clientY);l.onClick(x.x,x.y,p.shiftKey,p.ctrlKey)}}),this.html.on("MozMousePixelScroll DOMMouseScroll mousewheel",function(p){var x=l._getEvent(p),m=l.fromDocumentToCanvasCoordinate(x.originalEvent.clientX,x.originalEvent.clientY),g=0;"mousewheel"===p.type?g=-1*p.originalEvent.wheelDelta:"DOMMouseScroll"===p.type&&(g=40*p.originalEvent.detail),!1===l.onMouseWheel(g,m.x,m.y,x.shiftKey,x.ctrlKey)&&p.preventDefault()}),this.keyupCallback=function(p){var x=$(p.target);!x.is("input")&&!x.is("textarea")&&l.editPolicy.each(function(m,g){g instanceof a.default.policy.canvas.KeyboardPolicy&&g.onKeyUp(l,p.keyCode,p.shiftKey,p.ctrlKey)})},$(document).bind("keyup",this.keyupCallback),this.keydownCallback=function(p){var x=$(p.target);!x.is("input")&&!x.is("textarea")&&l.editPolicy.each(function(m,g){g instanceof a.default.policy.canvas.KeyboardPolicy&&g.onKeyDown(l,p.keyCode,p.shiftKey,p.ctrlKey)})},$(document).bind("keydown",this.keydownCallback)},destroy:function(){this.clear(),$(document).unbind("keydown",this.keydownCallback),$(document).unbind("keyup",this.keyupCallback),this.eventSubscriptions={};try{this.paper.remove()}catch(n){}},clear:function(){this.fireEvent("clear");var n=this;return this.lines.clone().each(function(r,u){n.remove(u)}),this.figures.clone().each(function(r,u){n.remove(u)}),this.zoomFactor=1,this.selection.clear(),this.currentDropTarget=null,this.figures=new a.default.util.ArrayList,this.lines=new a.default.util.ArrayList,this.commonPorts=new a.default.util.ArrayList,this.commandStack.markSaveLocation(),this.linesToRepaintAfterDragDrop=new a.default.util.ArrayList,this.lineIntersections=new a.default.util.ArrayList,this},hideDecoration:function(){},showDecoration:function(){},calculateConnectionIntersection:function(){var n=this;this.lineIntersections=new a.default.util.ArrayList;for(var r=this.getLines().clone(),u=function(){var p=r.removeElementAt(0);r.each(function(x,m){var g=p.intersection(m);g.getSize()>0&&(n.lineIntersections.add({line:p,other:m,intersection:g}),n.lineIntersections.add({line:m,other:p,intersection:g}))})};r.getSize()>0;)u();return this},installEditPolicy:function(n){var r=this;return n instanceof a.default.policy.canvas.SelectionPolicy?(this.getSelection().getAll().each(function(u,l){l.unselect()}),this.editPolicy.grep(function(u){var l=!(u instanceof a.default.policy.canvas.SelectionPolicy);return!1===l&&u.onUninstall(r),l})):n instanceof a.default.policy.canvas.ZoomPolicy?(this.editPolicy.grep(function(u){var l=!(u instanceof a.default.policy.canvas.ZoomPolicy);return!1===l&&u.onUninstall(r),l}),this.zoomPolicy=n):n instanceof a.default.policy.connection.ConnectionCreatePolicy&&this.editPolicy.grep(function(u){var l=!(u instanceof a.default.policy.connection.ConnectionCreatePolicy);return!1===l&&u.onUninstall(r),l}),n.NAME&&this.uninstallEditPolicy(n.NAME),n.onInstall(this),this.editPolicy.add(n),this},uninstallEditPolicy:function(n){if(null!==n){var r=this.editPolicy.remove(n);if(null!==r)r.onUninstall(this),r instanceof a.default.policy.canvas.ZoomPolicy&&(this.zoomPolicy=null);else{var u=this,l="string"==typeof n?n:n.NAME;this.editPolicy.grep(function(p){return p.NAME!==l||(p.onUninstall(u),p instanceof a.default.policy.canvas.ZoomPolicy&&(u.zoomPolicy=null),!1)})}return this}},getDropInterceptorPolicies:function(){return this.editPolicy.clone().grep(function(n){return n instanceof a.default.policy.canvas.DropInterceptorPolicy})},setZoom:function(n,r){this.zoomPolicy&&this.zoomPolicy.setZoom(n,r)},getZoom:function(){return this.zoomFactor},getDimension:function(){return new a.default.geo.Rectangle(0,0,this.initialWidth,this.initialHeight)},setDimension:function(n,r){if(void 0===n){var u=this.getFigures().clone().map(function(p){return p.getAbsoluteX()+p.getWidth()}),l=this.getFigures().clone().map(function(p){return p.getAbsoluteY()+p.getHeight()});this.initialHeight=Math.max.apply(Math,t(l.asArray())),this.initialWidth=Math.max.apply(Math,t(u.asArray()))}else n instanceof a.default.geo.Rectangle?(this.initialWidth=n.w,this.initialHeight=n.h):"number"==typeof n.width&&"number"==typeof n.height?(this.initialWidth=n.width,this.initialHeight=n.height):"number"==typeof n&&"number"==typeof r&&(this.initialWidth=n,this.initialHeight=r);return this.html.css({width:this.initialWidth+"px",height:this.initialHeight+"px"}),this.paper.setSize(this.initialWidth,this.initialHeight),this.setZoom(this.zoomFactor,!1),this},fromDocumentToCanvasCoordinate:function(n,r){return new a.default.geo.Point((n-this.getAbsoluteX()+this.getScrollLeft())*this.zoomFactor,(r-this.getAbsoluteY()+this.getScrollTop())*this.zoomFactor)},fromCanvasToDocumentCoordinate:function(n,r){return new a.default.geo.Point(n*(1/this.zoomFactor)+this.getAbsoluteX()-this.getScrollLeft(),r*(1/this.zoomFactor)+this.getAbsoluteY()-this.getScrollTop())},getHtmlContainer:function(){return this.html},_getEvent:function(n){if(void 0!==n.originalEvent){if(n.originalEvent.touches&&n.originalEvent.touches.length)return n.originalEvent.touches[0];if(n.originalEvent.changedTouches&&n.originalEvent.changedTouches.length)return n.originalEvent.changedTouches[0]}return n},setScrollArea:function(n){return this.scrollArea=$(n),this},getScrollArea:function(){return this.scrollArea}
1,getScrollLeft:function(){return this.getScrollArea().scrollLeft()},getScrollTop:function(){return this.getScrollArea().scrollTop()},setScrollLeft:function(n){return this.getScrollArea().scrollLeft(n),this},setScrollTop:function(n){return this.getScrollArea().scrollTop(n),this},scrollTo:function(n,r){return this.getScrollArea().scrollTop(n).scrollLeft(r),this},getAbsoluteX:function(){return this.html.offset().left},getAbsoluteY:function(){return this.html.offset().top},getWidth:function(){return this.html.width()},getHeight:function(){return this.html.height()},add:function(n,r,u){if(n.getCanvas()!==this)return n instanceof a.default.shape.basic.Line?(this.lines.add(n),this.linesToRepaintAfterDragDrop=this.lines):(this.figures.add(n),void 0!==u?n.setPosition(r,u):void 0!==r&&n.setPosition(r)),n.setCanvas(this),n.installEditPolicy(this.regionDragDropConstraint),n.getShapeElement(),n.repaint(),this.fireEvent("figure:add",{figure:n,canvas:this}),n.fireEvent("added",{figure:n,canvas:this}),n.fireEvent("move",{figure:n,x:n.getX(),y:n.getY(),dx:0,dy:0}),n instanceof a.default.shape.basic.PolyLine&&(this.calculateConnectionIntersection(),this.linesToRepaintAfterDragDrop.each(function(l,p){p.svgPathString=null,p.repaint()}),this.linesToRepaintAfterDragDrop=new a.default.util.ArrayList),this},remove:function(n){var r=this;return n.getCanvas()!==this||(this.getSelection().contains(n)&&this.editPolicy.each(function(u,l){"function"==typeof l.unselect&&l.unselect(r,n)}),n instanceof a.default.shape.basic.Line?this.lines.remove(n):this.figures.remove(n),n.setCanvas(null),n instanceof a.default.Connection&&n.disconnect(),this.fireEvent("figure:remove",{figure:n}),n.fireEvent("removed",{figure:n,canvas:this})),this},getLines:function(){return this.lines},getFigures:function(){return this.figures},getLine:function(n){for(var r=this.lines.getSize(),u=0;u<r;u++){var l=this.lines.get(u);if(l.getId()===n)return l}return null},getFigure:function(n){var r=null;return this.figures.each(function(u,l){if(l.id===n)return r=l,!1}),r},getIntersection:function(n){var r=new a.default.util.ArrayList;return this.lineIntersections.each(function(u,l){l.line===n&&l.intersection.each(function(p,x){r.add({x:x.x,y:x.y,justTouching:x.justTouching,other:l.other})})}),r},snapToHelper:function(n,r){var u=this;if(this.getSelection().getSize()>1)return r;var l=r.clone();return this.editPolicy.each(function(p,x){x instanceof a.default.policy.canvas.SnapToEditPolicy&&(r=x.snap(u,n,r,l))}),r},registerPort:function(n){return this.commonPorts.contains(n)||this.commonPorts.add(n),this},unregisterPort:function(n){return this.commonPorts.remove(n),this},getAllPorts:function(){return this.commonPorts},getCommandStack:function(){return this.commandStack},getPrimarySelection:function(){return this.selection.getPrimary()},getSelection:function(){return this.selection},setCurrentSelection:function(n){var r=this;return this.selection.getAll().each(function(u,l){r.editPolicy.each(function(p,x){"function"==typeof x.unselect&&x.unselect(r,l)})}),this.addSelection(n),this},addSelection:function(n){var r=this,u=function(p,x){r.editPolicy.each(function(m,g){"function"==typeof g.select&&g.select(r,x)})};return n instanceof a.default.util.ArrayList||n instanceof a.default.Selection?n.each(u):u(0,n),this},getBestFigure:function(n,r,u,l){Array.isArray(u)||(u=u?[u]:[]),Array.isArray(l)||(l=l?[l]:[]);for(var p=null,x=null,m=function(tt,at){for(var ct=0,ut=at.length;ct<ut;ct++){var rt=at[ct];if("function"==typeof rt){if(tt instanceof rt)return!0}else if(rt===tt||rt.contains(tt))return!0}return!1},g=function(tt){return m(tt,u)},w=0===l.length?function(){return!0}:function(j){return m(j,l)},C=function j(tt){tt.each(function(at,ct){var ut=ct.figure;return j(ut.children),null===p&&ut.isVisible()&&ut.hitTest(n,r)&&!g(ut)&&w(ut)&&(p=ut),null===p})},k=0,M=this.resizeHandles.getSize();k<M;k++)if((x=this.resizeHandles.get(k)).isVisible()&&x.hitTest(n,r)&&!g(x)&&w(x))return x;for(var N=0,O=this.commonPorts.getSize();N<O;N++){var _=this.commonPorts.get(N);if(C(_.children),null===p&&_.isVisible()&&_.hitTest(n,r)&&!g(_)&&w(_)&&(p=_),null!==p)return p}for(var P=this.figures.getSize()-1;P>=0;P--){var A=this.figures.get(P);if(C(A.children),null===p&&A.isVisible()&&A.hitTest(n,r)&&!g(A)&&w(A)){p=A;break}}var T=p,L=null,I=this.getBestLine(n,r,u,l);p=null;for(var F=this.lines.getSize(),W=0;W<F;W++)if(C(this.lines.get(W).children),null!==p){L=p;break}var z=[{i:null!==T?$(T.shape.node).index():-1,f:T},{i:null!==L?$(L.shape.node).index():-1,f:L},{i:null!==I?$(I.shape.node).index():-1,f:I}];return(z=(z=z.filter(function(j){return-1!==j.i})).sort(function(j,tt){return tt.i-j.i})).length>0&&(p=z[0].f),p},getBestLine:function(n,r,u){Array.isArray(u)||(u=u instanceof a.default.Figure?[u]:[]);for(var l=this.lines.getSize(),p=0;p<l;p++){var x=this.lines.get(p);if(!0===x.isVisible()&&!0===x.hitTest(n,r)&&-1===$.inArray(x,u))return x}return null},onDragEnter:function(n){},onDrag:function(n,r,u){},onDragLeave:function(n){},onDrop:function(n,r,u,l,p){},onDoubleClick:function(n,r,u,l){var p=this.getBestFigure(n,r);null===p&&(p=this.getBestLine(n,r)),this.fireEvent("dblclick",{figure:p,x:n,y:r,shiftKey:u,ctrlKey:l}),this.editPolicy.each(function(x,m){m.onDoubleClick(p,n,r,u,l)})},onClick:function(n,r,u,l){var p=this.getBestFigure(n,r);this.fireEvent("click",{figure:p,x:n,y:r,relX:null!==p?n-p.getAbsoluteX():0,relY:null!==p?r-p.getAbsoluteY():0,shiftKey:u,ctrlKey:l}),this.editPolicy.each(function(x,m){m.onClick(p,n,r,u,l)})},onRightMouseDown:function(n,r,u,l){var p=this.getBestFigure(n,r);this.fireEvent("contextmenu",{figure:p,x:n,y:r,shiftKey:u,ctrlKey:l}),null!==p&&(p.fireEvent("contextmenu",{figure:p,x:n,y:r,shiftKey:u,ctrlKey:l}),p.onContextMenu(n,r),p.editPolicy.each(function(x,m){m.onRightMouseDown(p,n,r,u,l)})),this.editPolicy.each(function(x,m){m.onRightMouseDown(p,n,r,u,l)})},onMouseWheel:function(n,r,u,l,p){var x=!0;return this.fireEvent("wheel",{wheelDelta:n,x:r,y:u,shiftKey:l,ctrlKey:p}),this.editPolicy.each(function(m,g){x=g.onMouseWheel(n,r,u,l,p)&&x}),x},fireEvent:function(n,r){if(void 0!==this.eventSubscriptions[n])for(var u=this.eventSubscriptions[n],l=0;l<u.length;l++)try{u[l](this,r)}catch(p){console.log(p),console.log(u[l])}},on:function(n,r){for(var u=n.split(" "),l=0;l<u.length;l++)void 0===this.eventSubscriptions[u[l]]&&(this.eventSubscriptions[u[l]]=[]),this.eventSubscriptions[u[l]].push(r);return this},off:function(n){if(void 0===n)this.eventSubscriptions={};else if("string"==typeof n)this.eventSubscriptions[n]=[];else for(var r in this.eventSubscriptions)this.eventSubscriptions[r]=this.eventSubscriptions[r].filter(function(u){return u!==n});return this}})},
1"./src/Configuration.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.Configuration={version:"@VERSION@",i18n:{command:{move:"Move Shape",assignShape:"Add Shapes to Composite",groupShapes:"Group Shapes",ungroupShapes:"Ungroup Shapes",deleteShape:"Delete Shape",moveShape:"Move Shape",moveLine:"Move Line",addShape:"Add Shape",moveVertex:"Move Vertex",moveVertices:"Move Vertices",deleteVertex:"Delete Vertex",resizeShape:"Resize Shape",rotateShape:"Rotate Shape",collection:"Execute Commands",addVertex:"Add Vertex",changeAttributes:"Change Attributes",connectPorts:"Connect Ports"},menu:{deleteSegment:"Delete Segment",addSegment:"Add Segment"},dialog:{filenamePrompt:"Enter Filename:"}},factory:{createResizeHandle:function(s,n,r,u){return console.log("deprecated call factory.createResizeHandle"),new a.default.ResizeHandle({owner:s,type:n,width:r,height:u})},createConnection:function(s,n,r,u){return console.log("deprecated call factory.createConnection"),new a.default.Connection},createInputPort:function(s){return new a.default.InputPort},createOutputPort:function(s){return new a.default.OutputPort},createHybridPort:function(s){return new a.default.HybridPort}}}},
1"./src/Connection.js":function(module,exports,__webpack_require__){"use strict";var _packages=__webpack_require__("./src/packages.js"),_packages2=_interopRequireDefault(_packages),_extend=__webpack_require__("./src/util/extend.js"),_extend2=_interopRequireDefault(_extend);function _interopRequireDefault(h){return h&&h.__esModule?h:{default:h}}_packages2.default.Connection=_packages2.default.shape.basic.PolyLine.extend({NAME:"draw2d.Connection",init:function(y,c,d){this.sourcePort=null,this.targetPort=null,this.oldPoint=null,this.sourceDecorator=null,this.targetDecorator=null,this.sourceDecoratorNode=null,this.targetDecoratorNode=null,this.isMoving=!1;var a=this;this.moveListener=function(v){v===a.sourcePort?a.setStartPoint(a.sourcePort.getAbsoluteX(),a.sourcePort.getAbsoluteY()):a.setEndPoint(a.targetPort.getAbsoluteX(),a.targetPort.getAbsoluteY())},this._super((0,_extend2.default)({color:"#129CE4",stroke:2,radius:3},y),(0,_extend2.default)({sourceDecorator:this.setSourceDecorator,targetDecorator:this.setTargetDecorator,source:this.setSource,target:this.setTarget},c),(0,_extend2.default)({sourceDecorator:this.getSourceDecorator,targetDecorator:this.getTargetDecorator,source:this.getSource,target:this.getTarget},d))},disconnect:function(){null!==this.sourcePort&&(this.sourcePort.off(this.moveListener),this.sourcePort.connections.remove(this),this.sourcePort.fireEvent("disconnect",{port:this.sourcePort,connection:this}),null!==this.canvas&&this.canvas.fireEvent("disconnect",{port:this.sourcePort,connection:this}),this.sourcePort.onDisconnect(this),this.fireSourcePortRouteEvent()),null!==this.targetPort&&(this.targetPort.off(this.moveListener),this.targetPort.connections.remove(this),this.targetPort.fireEvent("disconnect",{port:this.targetPort,connection:this}),null!==this.canvas&&this.canvas.fireEvent("disconnect",{port:this.targetPort,connection:this}),this.targetPort.onDisconnect(this),this.fireTargetPortRouteEvent())},reconnect:function(){null!==this.sourcePort&&(this.sourcePort.on("move",this.moveListener),this.sourcePort.connections.add(this),this.sourcePort.fireEvent("connect",{port:this.sourcePort,connection:this}),null!==this.canvas&&this.canvas.fireEvent("connect",{port:this.sourcePort,connection:this}),this.sourcePort.onConnect(this),this.fireSourcePortRouteEvent()),null!==this.targetPort&&(this.targetPort.on("move",this.moveListener),this.targetPort.connections.add(this),this.targetPort.fireEvent("connect",{port:this.targetPort,connection:this}),null!==this.canvas&&this.canvas.fireEvent("connect",{port:this.targetPort,connection:this}),this.targetPort.onConnect(this),this.fireTargetPortRouteEvent()),this.routingRequired=!0,this.repaint()},isResizeable:function(){return this.isDraggable()},add:function(y,c,d){if(!(c instanceof _packages2.default.layout.locator.ConnectionLocator))throw"Locator must implement the class draw2d.layout.locator.ConnectionLocator";this._super(y,c,d)},setSourceDecorator:function(y){return this.sourceDecorator&&this.sourceDecorator.setParent(null),this.sourceDecorator=y,this.routingRequired=!0,this.sourceDecorator.setParent(this),null!==this.sourceDecoratorNode&&(this.sourceDecoratorNode.remove(),this.sourceDecoratorNode=null),this.repaint(),this},getSourceDecorator:function(){return this.sourceDecorator},setTargetDecorator:function(y){return this.targetDecorator&&this.targetDecorator.setParent(null),this.targetDecorator=y,this.routingRequired=!0,this.targetDecorator.setParent(this),null!==this.targetDecoratorNode&&(this.targetDecoratorNode.remove(),this.targetDecoratorNode=null),this.repaint(),this},getTargetDecorator:function(){return this.targetDecorator},calculatePath:function(y){if(null===this.sourcePort||null===this.targetPort)return this;if(this._super(y),null!==this.shape){var c=this.sourcePort.getZOrder(),d=this.targetPort.getZOrder();this.toBack(c<d?this.sourcePort:this.targetPort)}return this},repaint:function(y){var c=this;if(!0!==this.repaintBlocked&&null!==this.shape&&null!==this.sourcePort&&null!==this.targetPort){if(this._super(y),null!==this.targetDecorator&&null===this.targetDecoratorNode&&(this.targetDecoratorNode=this.targetDecorator.paint(this.getCanvas().paper)),null!==this.sourceDecorator&&null===this.sourceDecoratorNode&&(this.sourceDecoratorNode=this.sourceDecorator.paint(this.getCanvas().paper)),null!==this.sourceDecoratorNode){var d=this.getVertices().first();this.sourceDecoratorNode.transform("r"+this.getStartAngle()+","+d.x+","+d.y+" t"+d.x+","+d.y),this.sourceDecoratorNode.attr({opacity:this.alpha}),null===this.sourceDecorator.getColor()?this.sourceDecoratorNode.attr({stroke:"#"+this.lineColor.hex()}):this.sourceDecoratorNode.attr({stroke:"#"+this.sourceDecorator.getColor().hex()}),this.sourceDecoratorNode.forEach(function(v){v.node.setAttribute("class",null!==c.cssClass?c.cssClass:"")})}if(null!==this.targetDecoratorNode){var a=this.getVertices().last(
1);this.targetDecoratorNode.transform("r"+this.getEndAngle()+","+a.x+","+a.y+" t"+a.x+","+a.y),this.targetDecoratorNode.attr({opacity:this.alpha}),null===this.targetDecorator.getColor()?this.targetDecoratorNode.attr({stroke:"#"+this.lineColor.hex()}):this.targetDecoratorNode.attr({stroke:"#"+this.targetDecorator.getColor().hex()}),this.targetDecoratorNode.forEach(function(v){v.node.setAttribute("class",null!==c.cssClass?c.cssClass:"")})}}},getAbsoluteX:function(){return 0},getAbsoluteY:function(){return 0},postProcess:function(y){this.router.postProcess(this,this.getCanvas(),y)},onDrag:function(y,c,d,a){var v=this;null!==this.command&&(this.router.onDrag(this,y,c,d,a),this.command.updateVertices(this.getVertices().clone()),this.editPolicy.each(function(t,s){s instanceof _packages2.default.policy.figure.DragDropEditPolicy&&s.onDrag(v.canvas,v)}),this.svgPathString=null,this.repaint(),this.editPolicy.each(function(t,s){s instanceof _packages2.default.policy.figure.DragDropEditPolicy&&s.moved(v.canvas,v)}),this.fireEvent("move",{figure:this,dx:y,dy:y}))},toFront:function(y){return this._super(y),null!==this.shape&&(null!==this.targetDecoratorNode&&this.targetDecoratorNode.insertAfter(this.shape),null!==this.sourceDecoratorNode&&this.sourceDecoratorNode.insertAfter(this.shape)),this},toBack:function(y){return this._super(y),null!==this.shape&&(null!==this.targetDecoratorNode&&this.targetDecoratorNode.insertAfter(this.shape),null!==this.sourceDecoratorNode&&this.sourceDecoratorNode.insertAfter(this.shape)),this},getStartPoint:function(y){return this.getStartPosition(y)},getStartPosition:function(y){return!1===this.isMoving?this.sourcePort.getConnectionAnchorLocation(y||this.targetPort.getConnectionAnchorReferencePoint(this),this):this._super()},getEndPoint:function(y){return this.getEndPosition(y)},getEndPosition:function(y){return!1===this.isMoving?this.targetPort.getConnectionAnchorLocation(y||this.sourcePort.getConnectionAnchorReferencePoint(this),this):this._super()},setSource:function(y){null!==this.sourcePort&&(this.sourcePort.off(this.moveListener),this.sourcePort.connections.remove(this),this.sourcePort.fireEvent("disconnect",{port:this.sourcePort,connection:this}),null!==this.canvas&&this.canvas.fireEvent("disconnect",{port:this.sourcePort,connection:this}),this.sourcePort.onDisconnect(this)),this.sourcePort=y,null!==this.sourcePort&&(this.routingRequired=!0,this.fireSourcePortRouteEvent(),this.sourcePort.connections.add(this),this.sourcePort.on("move",this.moveListener),null!==this.canvas&&this.canvas.fireEvent("connect",{port:this.sourcePort,connection:this}),this.sourcePort.fireEvent("connect",{port:this.sourcePort,connection:this}),this.sourcePort.onConnect(this),this.setStartPoint(y.getAbsoluteX(),y.getAbsoluteY()),this.fireEvent("connect",{port:this.sourcePort,connection:this}))},getSource:function(){return this.sourcePort},setTarget:function(y){null!==this.targetPort&&(this.targetPort.off(this.moveListener),this.targetPort.connections.remove(this),this.targetPort.fireEvent("disconnect",{port:this.targetPort,connection:this}),null!==this.canvas&&this.canvas.fireEvent("disconnect",{port:this.targetPort,connection:this}),this.targetPort.onDisconnect(this)),this.targetPort=y,null!==this.targetPort&&(this.routingRequired=!0,this.fireTargetPortRouteEvent(),this.targetPort.connections.add(this),this.targetPort.on("move",this.moveListener),null!==this.canvas&&this.canvas.fireEvent("connect",{port:this.targetPort,connection:this}),this.targetPort.fireEvent("connect",{port:this.targetPort,connection:this}),this.targetPort.onConnect(this),this.setEndPoint(y.getAbsoluteX(),y.getAbsoluteY()),this.fireEvent("connect",{port:this.targetPort,connection:this}))},getTarget:function(){return this.targetPort},sharingPorts:function(y){return this.sourcePort==y.sourcePort||this.sourcePort==y.targetPort||this.targetPort==y.sourcePort||this.targetPort==y.targetPort},setCanvas:function(y){if(this.canvas!==y){var c=null==this.canvas?y:this.canvas;this._super(y),null!==this.sourceDecoratorNode&&(this.sourceDecoratorNode.remove(),this.sourceDecoratorNode=null),null!==this.targetDecoratorNode&&(this.targetDecoratorNode.remove(),this.targetDecoratorNode=null),null===this.canvas?(null!==this.sourcePort&&(this.sourcePort.off(this.moveListener),c.fireEvent("disconnect",{port:this.sourcePort,connection:this}),this.sourcePort.onDisconnect(this)),null!==this.targetPort&&(this.targetPort.off(this.moveListener),c.fireEvent("disconnect",{port:this.targetPort,connection:this}),this.targetPort.onDisconnect(this))):(null!==this.sourcePort&&(this.sourcePort.on("move",this.moveListener),this.canvas.fireEvent("connect",{port:this.sourcePort,connection:this}),this.sourcePort.onConnect(this)),null!==this.targetPort&&(this.targetPort.on("move",this.moveListener),this.canvas.fireEvent("connect",{port:this.targetPort,connection:this}),this.targetPort.onConnect(this)))}},getStartAngle:function(){if(0===this.lineSegments.getSize())return 0;var y=this.lineSegments.get(0).start,c=this.lineSegments.get(0).end;this.router instanceof _packages2.default.layout.connection.SplineConnectionRouter&&(c=this.lineSegments.get(5).end);var d=Math.sqrt((y.x-c.x)*(y.x-c.x)+(y.y-c.y)*(y.y-c.y)),a=-180/Math.PI*Math.asin((y.y-c.y)/d);return a<0?a=c.x<y.x?Math.abs(a)+180:360-Math.abs(a):c.x<y.x&&(a=180-a),a},getEndAngle:function(){if(0===this.lineSegments.getSize())return 90;var y=this.lineSegments.get(this.lineSegments.getSize()-1).end,c=this.lineSegments.get(this.lineSegments.getSize()-1).start;this.router instanceof _packages2.default.layout.connection.SplineConnectionRouter&&(c=this.lineSegments.get(this.lineSegments.getSize()-5).end);var d=Math.sqrt((y.x-c.x)*(y.x-c.x)+(y.y-c.y)*(y.y-c.y)),a=-180/Math.PI*Math.asin((y.y-c.y)/d);return a<0?a=c.x<y.x?Math.abs(a)+180:360-Math.abs(a):c.x<y.x&&(a=180-a),a},fireSourcePortRouteEvent:function(){this.sourcePort.getConnections().each(function(y,c){c.routingRequired=!0,c.repaint()})},fireTargetPortRouteEvent:function(){this.targetPort.getConnections().each(function(y,c){c.routingRequired=!0,c.repaint()})},createCommand:function(y){return y.getPolicy()===_packages2.default.command.CommandType.MOVE&&this.isDraggable()?new _packages2.default.command.CommandMoveVertices(this):y.getPolicy()===_packages2.default.command.CommandType.MOVE_BASEPOINT?new _packages2.default.command.CommandReconnect(this):this._super(y)},getPersistentAttributes:function(){for(var y=this._super(),c=this.getSource().getParent();null!==c.getParent();)c=c.getParent();for(y.source={node:c.getId(),port:this.getSource().getName()},c=this.getTarget().getParent();null!==c.getParent();)c=c.getParent();return y.target={node:c.getId(),port:this.getTarget().getName()},null!==this.sourceDecorator&&(y.source.decoration=this.sourceDecorator.NAME),null!==this.targetDecorator&&(y.target.decoration=this.targetDecorator.NAME),y},setPersistentAttributes:function setPersistentAttributes(memento){return this._super(memento),void 0!==memento.target.decoration&&null!=memento.target.decoration&&this.setTargetDecorator(eval("new "+memento.target.decoration)),void 0!==memento.source.decoration&&null!=memento.source.decoration&&this.setSourceDecorator(eval("new "+memento.source.decoration)),this}})},
1"./src/Figure.js":function(module,exports,__webpack_require__){"use strict";var _packages=__webpack_require__("./src/packages.js"),_packages2=_interopRequireDefault(_packages),_JSONUtil=__webpack_require__("./src/util/JSONUtil.js"),_JSONUtil2=_interopRequireDefault(_JSONUtil),_UUID=__webpack_require__("./src/util/UUID.js"),_UUID2=_interopRequireDefault(_UUID),_extend=__webpack_require__("./src/util/extend.js"),_extend2=_interopRequireDefault(_extend);function _interopRequireDefault(h){return h&&h.__esModule?h:{default:h}}function _defineProperty(h,y,c){return y in h?Object.defineProperty(h,y,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[y]=c,h}function _toConsumableArray(h){if(Array.isArray(h)){for(var y=0,c=Array(h.length);y<h.length;y++)c[y]=h[y];return c}return Array.from(h)}_packages2.default.Figure=Class.extend({NAME:"draw2d.Figure",MIN_TIMER_INTERVAL:50,init:function(y,c,d){var a=this;this.setterWhitelist=(0,_extend2.default)({id:this.setId,x:this.setX,y:this.setY,width:this.setWidth,height:this.setHeight,boundingBox:this.setBoundingBox,minWidth:this.setMinWidth,minHeight:this.setMinHeight,cssClass:this.setCssClass,userData:this.setUserData,draggable:this.setDraggable,resizeable:this.setResizeable,selectable:this.setSelectable,angle:this.setRotationAngle,alpha:this.setAlpha,opacity:this.setAlpha,glow:this.setGlow,visible:this.setVisible,keepAspectRatio:this.setKeepAspectRatio},c),this.getterWhitelist=(0,_extend2.default)({id:this.getId,visible:this.isVisible,angle:this.getRotationAngle,x:this.getX,y:this.getY,userData:this.getUserData,width:this.getWidth,height:this.getHeight,draggable:this.isDraggable,resizeable:this.isResizeable,selectable:this.isSelectable,alpha:this.getAlpha,opacity:this.getAlpha},d),this.id=_UUID2.default.create(),this.isResizeHandle=!1,this.command=null,this.canvas=null,this.shape=null,this.children=new _packages2.default.util.ArrayList,this.selectable=!0,this.deleteable=!0,this.resizeable=!0,this.draggable=!0,this.visible=!0,this.keepAspectRatio=!1,this.canSnapToHelper=!0,this.snapToGridAnchor=new _packages2.default.geo.Point(0,0),this.editPolicy=new _packages2.default.util.ArrayList,this.timerId=-1,this.timerInterval=0,this.parent=null,this.composite=null,this.userData=null,this.x=0,this.y=0,this.minHeight=5,this.minWidth=5,this.rotationAngle=0,this.cssClass=this.NAME.replace(new RegExp("[.]","g"),"_"),this.width=this.getMinWidth(),this.height=this.getMinHeight(),this.alpha=1,this.isInDragDrop=!1,this.ox=0,this.oy=0,this.repaintBlocked=!1,this.lastAppliedAttributes={},this.selectionHandles=new _packages2.default.util.ArrayList,this.panningDelegate=null,this.eventSubscriptions={},this.relocateChildrenEventCallback=function(){a.children.each(function(v,t){t.locator.relocate(v,t.figure)})},this.defaultSelectionAdapter=this.selectionAdapter=function(){return a},this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy),this.attr(y)},attr:function(y,c){var d=this,a=this.repaintBlocked;try{if($.isPlainObject(y))for(var v in y)if("userData."===v.substring(0,9))null===this.userData&&(this.userData={}),_JSONUtil2.default.set({userData:this.userData},v,y[v]),this.fireEvent("change:"+v,{value:y[v]});else{var t=this.setterWhitelist[v],s=y[v];t&&void 0!==s?t.call(this,s):"function"==typeof y[v]&&(this[v]=s.bind(this))}else if("string"==typeof y){if(void 0===c){var n=this.getterWhitelist[y];return"function"==typeof n?n.call(this):"userData."===y.substring(0,9)?_JSONUtil2.default.get({userData:this.userData},y):void 0}if("function"==typeof c&&(c=c()),"userData."===y.substring(0,9))null===this.userData&&(this.userData={}),_JSONUtil2.default.set({userData:this.userData},y,c),this.fireEvent("change:"+y,{value:c});else{var u=this.setterWhitelist[y];u&&u.call(this,c)}}else{if(Array.isArray(y))return Object.assign.apply(Object,[{}].concat(_toConsumableArray(Object.keys(y).map(function(x){return _defineProperty({},x,d.attr(x))}))));if(void 0===y){var l={};for(var p in this.getterWhitelist)l[p]=this.getterWhitelist[p].call(this);return l}}}finally{this.repaintBlocked=a}return this},pick:function(y,c){var d="string"!=typeof arguments[1]?arguments[1]:Array.prototype.slice.call(arguments,1
1),a={},v=void 0;for(v in d)void 0!==y[v]&&(a[v]=y[v]);return a},select:function(y){void 0===y&&(y=!0);var c=this;return this.editPolicy.each(function(d,a){a instanceof _packages2.default.policy.figure.SelectionPolicy&&a.onSelect(c.canvas,c,y)}),null!==this.canvas&&this.canvas.getSelection().add(this),this.fireEvent("select",{figure:this}),this},unselect:function(){var y=this;return this.editPolicy.each(function(c,d){d instanceof _packages2.default.policy.figure.SelectionPolicy&&d.onUnselect(y.canvas,y)}),null!==this.canvas&&this.canvas.getSelection().remove(this),this.fireEvent("unselect",{figure:this}),this},setSelectionAdapter:function(y){return this.selectionAdapter=null==y?this.defaultSelectionAdapter:y,this},getSelectionAdapter:function(){return this.selectionAdapter},isSelected:function(){return null!==this.canvas&&this.canvas.getSelection().contains(this)},setUserData:function(y){return this.userData=y,this.fireEvent("change:userData",{value:y}),this},getUserData:function(){return this.userData},getId:function(){return this.id},setId:function(y){return this.id=y,this},getCssClass:function(){return this.cssClass},setCssClass:function(y){return this.cssClass=null===y?null:y.trim(),null===this.shape||(null===this.cssClass?this.shape.node.removeAttribute("class"):this.shape.node.setAttribute("class",this.cssClass),this.fireEvent("change:cssClass",{value:this.cssClass})),this},hasCssClass:function(y){return null!==this.cssClass&&new RegExp(" "+y.trim()+" ").test(" "+this.cssClass+" ")},addCssClass:function(y){return y=y.trim(),this.hasCssClass(y)||(this.setCssClass(null===this.cssClass?y:this.cssClass+" "+y),this.fireEvent("change:cssClass",{value:this.cssClass})),this},removeCssClass:function(y){y=y.trim();var c=" "+this.cssClass.replace(/[\t\r\n]/g," ")+" ";if(this.hasCssClass(y)){for(;c.indexOf(" "+y+" ")>=0;)c=c.replace(" "+y+" "," ");this.setCssClass(c.replace(/^\s+|\s+$/g,"")),this.fireEvent("change:cssClass",{value:this.cssClass})}return this},toggleCssClass:function(y){y=y.trim();var c=" "+this.cssClass.replace(/[\t\r\n]/g," ")+" ";if(this.hasCssClass(y)){for(;c.indexOf(" "+y+" ")>=0;)c=c.replace(" "+y+" "," ");this.setCssClass(c.replace(/^\s+|\s+$/g,""))}else this.setCssClass(this.cssClass+" "+y);return this.fireEvent("change:cssClass",{value:this.cssClass}),this},setCanvas:function(y){return null===y&&null!==this.shape&&(this.isSelected()&&this.unselect(),this.shape.remove(),this.shape=null),this.canvas=y,null!==this.canvas&&this.getShapeElement(),this.lastAppliedAttributes={},null===y?this.stopTimer():this.timerInterval>=this.MIN_TIMER_INTERVAL&&this.startTimer(this.timerInterval),this.children.each(function(c,d){d.figure.setCanvas(y)}),this},getCanvas:function(){return this.canvas},startTimer:function(y){var c=this;return this.stopTimer(),this.timerInterval=Math.max(this.MIN_TIMER_INTERVAL,y),null!==this.canvas&&(this.timerId=window.setInterval(function(){c.onTimer(),c.fireEvent("timer")},this.timerInterval)),this},stopTimer:function(){return this.timerId>=0&&(window.clearInterval(this.timerId),this.timerId=-1),this},onTimer:function(){},toFront:function(y){var c=this;if(this.composite instanceof _packages2.default.shape.composite.StrongComposite&&void 0!==y&&y.getZOrder()<this.composite.getZOrder()&&(y=this.composite),void 0===y){if(this.getShapeElement().toFront(),null!==this.canvas){var v=this.canvas.getFigures(),t=this.canvas.getLines();null!==v.remove(this)?v.add(this):null!==t.remove(this)&&t.add(this)}}else if(this.getShapeElement().insertAfter(y.getTopLevelShapeElement()),null!==this.canvas){var s=this.canvas.getFigures(),n=this.canvas.getLines();if(null!==s.remove(this)){var r=s.indexOf(y);s.insertElementAt(this,r+1)}else null!==n.remove(this)&&n.add(this)}return this.children.each(function(u,l){l.figure.toFront(c)}),this.selectionHandles.each(function(u,l){l.toFront()}),this},toBack:function(y){if(!(this.composite instanceof _packages2.default.shape.composite.StrongComposite)){if(null!==this.canvas){var c=this.canvas.getFigures(),d=this.canvas.getLines();null!==c.remove(this)?c.insertElementAt(this,0):null!==d.remove(this)&&d.insertElementAt(this,0),void 0!==y?this.get
1ShapeElement().insertBefore(y.getShapeElement()):this.getShapeElement().toBack()}var a=this;return this.children.each(function(v,t){t.figure.toFront(a)},!0),this}this.toFront(this.composite)},installEditPolicy:function(y){var c=this;return y instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy&&this.editPolicy.grep(function(d){var a=!(d instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy);return a||d.onUninstall(c),a}),this.editPolicy.grep(function(d){var a=d.__proto__!==y.__proto__;return a||d.onUninstall(c),a}),y.onInstall(this),this.editPolicy.add(y),this},uninstallEditPolicy:function(y){var c=this.editPolicy.remove(y);if(null===c){var d=this,a="string"==typeof y?y:y.NAME;this.editPolicy.grep(function(v){return v.NAME!==a||(v.onUninstall(d),!1)})}else c.onUninstall(this)},add:function(y,c,d){if(null==c)throw"Second parameter 'locator' is required for method 'Figure#add'";return y.setParent(this),c.bind(this,y),y.on("resize",this.relocateChildrenEventCallback),isNaN(parseInt(d))?this.children.add({figure:y,locator:c}):this.children.insertElementAt({figure:y,locator:c},d),null!==this.canvas&&y.setCanvas(this.canvas),this.repaint(),this},remove:function(y){if(null==y)return debug.warn("The parameter child is required for Figure.remove"),null;var c=null;return this.children.grep(function(d){var a=d.figure!==y;return a||(c=d),a}),null!==c?(y.setParent(null),y.setCanvas(null),c.locator.unbind(this,y),y.off(this.relocateChildrenEventCallback),this.repaint(),c):null},getChildren:function(){return this.children.clone().map(function(y){return y.figure})},resetChildren:function(){return this.children.each(function(y,c){c.figure.setCanvas(null)}),this.children=new _packages2.default.util.ArrayList,this.repaint(),this},getShapeElement:function(){return null!==this.shape||(this.shape=this.createShapeElement(),this.isVisible()||this.shape.hide(),null!==this.cssClass&&this.shape.node.setAttribute("class",this.cssClass)),this.shape},getTopLevelShapeElement:function(){return this.getShapeElement()},createShapeElement:function(){throw"Inherited class ["+this.NAME+"] must override the abstract method createShapeElement"},repaint:function(y){if(!0===this.repaintBlocked||null===this.shape)return this;var c=this;return y=y||{},!0!==this.visible?(!0===this.shape.isVisible()&&(isNaN(parseFloat(y.visibleDuration))?this.shape.hide():$(this.shape.node).fadeOut(y.visibleDuration,function(){c.shape.hide()})),this):(!1===this.shape.isVisible()&&(isNaN(parseFloat(y.visibleDuration))?this.shape.show():$(this.shape.node).fadeIn(y.visibleDuration,function(){c.shape.show()})),y.opacity=this.alpha,y=_JSONUtil2.default.flatDiff(y,this.lastAppliedAttributes),this.lastAppliedAttributes=y,Object.getOwnPropertyNames(y).length>0&&this.shape.attr(y),this.applyTransformation(),("x"in y||"width"in y||"cx"in y||"path"in y)&&this.children.each(function(d,a){a.locator.relocate(d,a.figure)}),this)},applyTransformation:function(){return this},setGlow:function(y){return this},getHandleBBox:function(){return null},onDragStart:function(y,c,d,a){this.isInDragDrop=!1;var v=this.getHandleBBox();if(null!==v&&!1===v.translate(this.getAbsolutePosition().scale(-1)).hitTest(y,c))return this.panningDelegate=this.getBestChild(this.getX()+y,this.getY()+c),null!==this.panningDelegate&&this.panningDelegate.onDragStart(y-this.panningDelegate.x,c-this.panningDelegate.y,d,a),!1;if(this.command=this.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE)),null!==this.command){this.ox=this.getX(),this.oy=this.getY(),this.isInDragDrop=!0;var t=this,s=!0;return this.editPolicy.each(function(n,r){r instanceof _packages2.default.policy.figure.DragDropEditPolicy&&(s=s&&r.onDragStart(t.canvas,t,y,c,d,a))}),s&&this.fireEvent("dragstart",{x:y,y:c,shiftKey:d,ctrlKey:a}),s}return!1},onDrag:function(y,c,d,a,v,t){var s=this;this.editPolicy.each(function(r,u){if(u instanceof _packages2.default.policy.figure.DragDropEditPolicy){var l=u.adjustPosition(s,s.ox+y,s.oy+c);l&&(y=l.x-s.ox,c=l.y-s.oy)}});var n=new _packages2.default.geo.Point(this.ox+y,this.oy+c);this.getCanSnapToHelper()&&(n=this.getCanvas().snapToHelper(this,n)),this.setPosition(n),this.editPolicy.each(function(r,u){u instanceof _packages2.default.policy.figure.DragDropEditPolicy&&u.onDrag(s.canvas,s)}),this.fireEvent("drag",{dx:y,dy:c,dx2:d,dy2:a,shiftKey:v,ctrlKey:t})},onPanning:function(y,c,d,a,v,t){},onPanningEnd:function(){},onDragEnd:function(y,c,d,a){var v=this;null!==this.command&&(this.command.setPosition(this.x,this.y),this.canvas.getCommandStack().execute(this.command),this.command=null),this.isInDragDrop=!1,this.panningDelegate=null,this.editPolicy.each(function(t,s){s instanceof _packages2.default.policy.figure.DragDropEditPolicy&&s.onDragEnd(v.canvas,v,y,c,d,a)}),this.fireEvent("move",{x:this.getX(),y:this.getY(),dx:0,dy:0}),this.fireEvent("change:x",{x:this.getX(),dx:0}),this.fireEvent("change:y",{y:this.getY(),dy:0}),this.fireEvent("dragend",{x:y,y:c,shiftKey:d,ctrlKey:a})},delegateTarget:function(y){var c=this,d=y;return this.getCanvas().getDropInterceptorPolicies().each(function(a,v){if(null!==(d=v.delegateTarget(y,c)))return!1}),d},onDragEnter:function(y){},onDragLeave:function(y){},onDrop:function(y,c,d,a,v){},onCatch:function(y,c,d,a,v){},onMouseEnter:function(){},onMouseLeave:function(){},onDoubleClick:function(){},onClick:function(){},onContextMenu:function(y,c){},setAlpha:function(y){if((y=Math.min(1,Math.max(0,parseFloat(y))))!==this.alpha)return this.alpha=y,this.repaint(),this.fireEvent("change:opacity",{value:this.alpha}),this},getAlpha:function(){return this.alpha},setRotationAngle:function(y){var c=this;return this.rotationAngle=y,this.editPolicy.each(function(d,a){a instanceof _packages2.default.policy.figure.DragDropEditPolicy&&a.moved(c.canvas,c)}),this.fireEvent("change:angle",{value:this.rotationAngle}),this.repaint(),this},getRotationAngle:function(){return this.rotationAngle},setVisible:function(y,c){if((y=!!y)!==this.visible)return this.visible=y,this.repaint({visibleDuration:c}),this.fireEvent(this.visible?"show":"hide"),this.fireEvent("change:visibility",{value:this.visible}),this},isVisible:function(){return this.visible&&null!==this.shape},setKeepAspectRatio:function(y){return this.keepAspectRatio=y,this},getKeepAspectRatio:function(){return this.keepAspectRatio},getZOrder:function(){if(null===this.shape)return-1;for(var y=0,c=this.shape.node;null!==(c=c.previousSibling);)y++;return y},setCanSnapToHelper:function(y){return this.canSnapToHelper=!!y,this},getCanSnapToHelper:function(){return this.canSnapToHelper}
1,getSnapToGridAnchor:function(){return this.snapToGridAnchor},setSnapToGridAnchor:function(y){return this.snapToGridAnchor=y,this},setWidth:function(y){return this.setDimension(parseFloat(y),this.getHeight()),this.fireEvent("change:width",{value:this.width}),this},getWidth:function(){return this.width},setHeight:function(y){return this.setDimension(this.getWidth(),parseFloat(y)),this.fireEvent("change:height",{value:this.height}),this},getHeight:function(){return this.height},getMinWidth:function(){return this.minWidth},setMinWidth:function(y){return this.minWidth=parseFloat(y),this.fireEvent("change:minWidth",{value:this.minWidth}),this.setWidth(this.getWidth()),this},getMinHeight:function(){return this.minHeight},setMinHeight:function(y){return this.minHeight=parseFloat(y),this.fireEvent("change:minHeight",{value:this.minHeight}),this.setHeight(this.getHeight()),this},setX:function(y){return this.setPosition(parseFloat(y),this.y),this},getX:function(){return this.x},setY:function(y){return this.setPosition(this.x,parseFloat(y)),this},getY:function(){return this.y},getAbsoluteX:function(){return this.parent?this.getX()+this.parent.getAbsoluteX():this.getX()},getAbsoluteY:function(){return this.parent?this.getY()+this.parent.getAbsoluteY():this.getY()},getAbsolutePosition:function(){return new _packages2.default.geo.Point(this.getAbsoluteX(),this.getAbsoluteY())},getAbsoluteBounds:function(){return new _packages2.default.geo.Rectangle(this.getAbsoluteX(),this.getAbsoluteY(),this.getWidth(),this.getHeight())},setPosition:function(y,c){var d=this,a_x=this.x,a_y=this.y;y instanceof _packages2.default.geo.Point?(this.x=y.x,this.y=y.y):(this.x=y,this.y=c),this.editPolicy.each(function(t,s){if(s instanceof _packages2.default.policy.figure.DragDropEditPolicy){var n=s.adjustPosition(d,d.x,d.y);d.x=n.x,d.y=n.y}}),this.repaint(),this.editPolicy.each(function(t,s){s instanceof _packages2.default.policy.figure.DragDropEditPolicy&&s.moved(d.canvas,d)});var v={x:this.x,y:this.y,dx:this.x-a_x,dy:this.y-a_y};return this.fireEvent("move",v),this.fireEvent("change:x",v),this.fireEvent("change:y",v),this},getPosition:function(){return new _packages2.default.geo.Point(this.getX(),this.getY())},translate:function(y,c){return this.setPosition(this.getX()+y,this.getY()+c),this},setDimension:function(y,c){var d=this,a={width:this.width,height:this.height};return y=Math.max(this.getMinWidth(),y),c=Math.max(this.getMinHeight(),c),this.width===y&&this.height===c?(this.editPolicy.each(function(v,t){t instanceof _packages2.default.policy.figure.DragDropEditPolicy&&t.moved(d.canvas,d)}),this):(this.editPolicy.each(function(v,t){if(t instanceof _packages2.default.policy.figure.DragDropEditPolicy){var s=t.adjustDimension(d,y,c);y=s.w,c=s.h}}),!0===this.keepAspectRatio?y>=this.getMinWidth()&&(c=this.getHeight()*(y/this.getWidth()))>=this.getMinHeight()&&(this.width=y,this.height=c):(this.width=Math.max(this.getMinWidth(),y),this.height=Math.max(this.getMinHeight(),c)),this.repaint(),this.fireEvent("resize"),this.fireEvent("change:dimension",{height:this.height,width:this.width,old:a}),this.editPolicy.each(function(v,t){t instanceof _packages2.default.policy.figure.DragDropEditPolicy&&t.moved(d.canvas,d)}),this)},setBoundingBox:function(y){y=new _packages2.default.geo.Rectangle(y);var c=this.repaintBlocked;return this.repaintBlocked=!0,this.setPosition(y.x,y.y),this.repaintBlocked=c,this.setDimension(y.w,y.h),this},getBoundingBox:function(){return new _packages2.default.geo.Rectangle(this.getAbsoluteX(),this.getAbsoluteY(),this.getWidth(),this.getHeight())},getOuterBoundingBox:function(){var y=new _packages2.default.geo.Rectangle(this.getAbsoluteX(),this.getAbsoluteY(),this.getWidth(),this.getHeight());return this.getChildren().each(function(c,d){var a=d.getOuterBoundingBox();y.merge(a)}),y},hitTest:function(y,c,d){return"number"==typeof d?this.getBoundingBox().scale(d,d).hitTest(y,c):this.getBoundingBox().hitTest(y,c)},setDraggable:function(y){return this.draggable=!!y,this},isDraggable:function(){return null!==this.composite?this.composite.isMemberDraggable(this,this.draggable):this.draggable},isResizeable:function(){return this.resizeable},setResizeable:function(y){return this.resizeable=!!y,this.fireEvent("change:resizeable",{value:this.resizeable}),this},isSelectable:function(){return null!==this.composite?this.composite.isMemberSelectable(this,this.selectable):this.selectable},setSelectable:function(y){return this.selectable=!!y,this.fireEvent("change:selectable",{value:this.selectable}),this},isStrechable:function(){return!this.getKeepAspectRatio()},isDeleteable:function(){return this.deleteable},setDeleteable:function(y){return this.deleteable=!!y,this.fireEvent("change:deleteable",{value:this.deleteable}),this},setParent:function(y){return this.parent=y,this.setSelectionAdapter(null!==y?y.getSelectionAdapter():null),this},getParent:function(){return this.parent},contains:function(y){if(y.getParent()===this)return!0;for(var c=0,d=this.children.getSize();c<d;c++)if(this.children.get(c).figure.contains(y))return!0;return!1},getRoot:function(){for(var y=this.parent;null!==y&&null!==y.parent;)y=y.parent;return y},setComposite:function(y){if(null!==y&&!(y instanceof _packages2.default.shape.composite.StrongComposite))throw"'composite must inherit from 'draw2d.shape.composite.StrongComposite'";return this.composite=y,this},getComposite:function(){return this.composite},fireEvent:function(y,c){try{if(void 0===this.eventSubscriptions[y]||!0===this._inEvent)return;this._inEvent=!0;for(var d=this.eventSubscriptions[y],a=0;a<d.length;a++)d[a](this,c)}catch(v){throw console.log(v),v}finally{this._inEvent=!1,"change:"===y.substring(0,7)&&this.fireEvent("change",y.substring(7))}},on:function(y,c,d){var a=y.split(" ");d&&((c=c.bind(d)).___originalCallback=c);for(var v=0;v<a.length;
1v++)void 0===this.eventSubscriptions[a[v]]&&(this.eventSubscriptions[a[v]]=[]),-1!==$.inArray(c,this.eventSubscriptions[a[v]])||this.eventSubscriptions[a[v]].push(c);return this},off:function(y){if(void 0===y)this.eventSubscriptions={};else if("string"==typeof y)this.eventSubscriptions[y]=[];else for(var c in this.eventSubscriptions)this.eventSubscriptions[c]=this.eventSubscriptions[c].filter(function(d){return void 0!==d.___originalCallback?d.___originalCallback!==y:d!==y});return this},getBestChild:function(y,c,d){Array.isArray(d)||(d=d instanceof _packages2.default.Figure?[d]:[]);var a=null;return function t(s){s.each(function(n,r){var u=r.figure;return t(u.children),null===a&&!0===u.isVisible()&&!0===u.hitTest(y,c)&&-1===$.inArray(u,d)&&(a=u),null===a})}(this.children),a},createCommand:function(y){return null===y?null:y.getPolicy()===_packages2.default.command.CommandType.MOVE?this.isDraggable()?new _packages2.default.command.CommandMove(this):null:y.getPolicy()===_packages2.default.command.CommandType.DELETE?this.isDeleteable()?new _packages2.default.command.CommandDelete(this):null:y.getPolicy()===_packages2.default.command.CommandType.RESIZE&&this.isResizeable()?new _packages2.default.command.CommandResize(this):null},clone:function clone(cloneMetaData){cloneMetaData=(0,_extend2.default)({excludeChildren:!1},cloneMetaData);var clone=eval("new "+this.NAME+"();"),initialId=clone.id;return clone.setPersistentAttributes(this.getPersistentAttributes()),clone.id=initialId,!1===cloneMetaData.excludeChildren&&(clone.resetChildren(),this.children.each(function(i,entry){var child=entry.figure.clone(),locator=entry.locator.NAME?eval("new "+entry.locator.NAME+"();"):null;clone.add(child,locator)})),clone},getPersistentAttributes:function h(){var y={type:this.NAME,id:this.id,x:this.getX(),y:this.getY(),width:this.width,height:this.height,alpha:this.alpha,selectable:this.selectable,draggable:this.draggable,angle:this.rotationAngle,userData:(0,_extend2.default)(!0,{},this.userData)};return null!==this.cssClass&&(y.cssClass=this.cssClass),null!==this.composite&&(y.composite=this.composite.getId()),y},setPersistentAttributes:function h(y){return this.id=y.id,this.setPosition(parseFloat(y.x),parseFloat(y.y)),void 0!==y.width&&(this.width=parseFloat(y.width)),void 0!==y.height&&(this.height=parseFloat(y.height)),void 0!==y.userData&&(this.userData=y.userData),void 0!==y.selectable&&(this.selectable=y.selectable),void 0!==y.draggable&&(this.draggable=y.draggable),void 0!==y.cssClass&&this.setCssClass(y.cssClass),void 0!==y.alpha&&this.setAlpha(parseFloat(y.alpha)),void 0!==y.angle&&(this.rotationAngle=parseFloat(y.angle)),this}})},
1"./src/HeadlessCanvas.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.HeadlessCanvas=Class.extend({NAME:"draw2d.HeadlessCanvas",init:function(){this.figures=new a.default.util.ArrayList,this.lines=new a.default.util.ArrayList,this.commonPorts=new a.default.util.ArrayList,this.eventSubscriptions={},this.commandStack=new a.default.command.CommandStack},clear:function(){return this.figures=new a.default.util.ArrayList,this.lines=new a.default.util.ArrayList,this.commonPorts=new a.default.util.ArrayList,this.commandStack.markSaveLocation(),this},calculateConnectionIntersection:function(){},hideDecoration:function(){},showDecoration:function(){},add:function(s,n,r){if(s.getCanvas()!==this)return s instanceof a.default.shape.basic.Line?this.lines.add(s):this.figures.add(s),s.canvas=this,this},getLines:function(){return this.lines},getFigures:function(){return this.figures},getLine:function(s){for(var n=this.lines.getSize(),r=0;r<n;r++){var u=this.lines.get(r);if(u.getId()===s)return u}return null},getFigure:function(s){var n=null;return this.figures.each(function(r,u){if(u.id===s)return n=u,!1}),n},registerPort:function(s){return this.commonPorts.contains(s)||this.commonPorts.add(s),this},getAllPorts:function(){return this.commonPorts},getCommandStack:function(){return this.commandStack},fireEvent:function(s,n){if(void 0!==this.eventSubscriptions[s])for(var r=this.eventSubscriptions[s],u=0;u<r.length;u++)try{r[u](this,n)}catch(l){console.log(l),console.log(r[u])}},on:function(s,n){for(var r=s.split(" "),u=0;u<r.length;u++)void 0===this.eventSubscriptions[r[u]]&&(this.eventSubscriptions[r[u]]=[]),this.eventSubscriptions[r[u]].push(n);return this},off:function(s){if(void 0===s)this.eventSubscriptions={};else if("string"==typeof s)this.eventSubscriptions[s]=[];else for(var n in this.eventSubscriptions)this.eventSubscriptions[n]=this.eventSubscriptions[n].filter(function(r){return r!==s});return this}})},
1"./src/HybridPort.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.HybridPort=a.default.Port.extend({NAME:"draw2d.HybridPort",init:function(s,n,r){this._super(s,n,r),this.locator=new a.default.layout.locator.InputPortLocator},createCommand:function(s){return s.getPolicy()===a.default.command.CommandType.CONNECT?s.source.getParent().getId()===s.target.getParent().getId()?null:s.source instanceof a.default.InputPort?new a.default.command.CommandConnect(s.target,s.source,s.source):s.source instanceof a.default.OutputPort?new a.default.command.CommandConnect(s.source,s.target,s.source):s.source instanceof a.default.HybridPort?new a.default.command.CommandConnect(s.target,s.source,s.source):null:this._super(s)}})},
1"./src/InputPort.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.InputPort=a.default.Port.extend({NAME:"draw2d.InputPort",init:function(s,n,r){this._super(s,n,r),this.locator=new a.default.layout.locator.InputPortLocator},createCommand:function(s){return s.getPolicy()===a.default.command.CommandType.CONNECT?new a.default.command.CommandConnect(s.source,s.target,s.source):this._super(s)}})},
1"./src/OutputPort.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.OutputPort=a.default.Port.extend({NAME:"draw2d.OutputPort",init:function(s,n,r){this._super(s,n,r),this.locator=new a.default.layout.locator.OutputPortLocator},createCommand:function(s){return s.getPolicy()===a.default.command.CommandType.CONNECT?new a.default.command.CommandConnect(s.target,s.source,s.source):this._super(s)}})},
1"./src/Port.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.Port=a.default.shape.basic.Circle.extend({NAME:"draw2d.Port",DEFAULT_BORDER_COLOR:new a.default.util.Color("#1B1B1B"),init:function(r,u,l){var p=this;this.locator=null,this.lighterBgColor=null,this.name=null,this.coronaWidth=5,this._super((0,t.default)({bgColor:"#4f6870",stroke:1,diameter:10,color:"#1B1B1B",selectable:!1},r),(0,t.default)({coronaWidth:this.setCoronaWidth,semanticGroup:this.setSemanticGroup},u),(0,t.default)({coronaWidth:this.getCoronaWidth,semanticGroup:this.getSemanticGroup},l)),this.ox=this.x,this.oy=this.y,this.corona=null,this.useGradient=!0,this.preferredConnectionDirection=null,this.connections=new a.default.util.ArrayList,this.moveListener=function(x,m){p.repaint(),p.fireEvent("move",{figure:p,dx:0,dy:0})},this.connectionAnchor=new a.default.layout.anchor.ConnectionAnchor(this),this.value=null,this.maxFanOut=Number.MAX_SAFE_INTEGER,this.semanticGroup="global",this.setCanSnapToHelper(!1),this.editPolicy.each(function(x,m){return p.uninstallEditPolicy(m)}),this.installEditPolicy(new a.default.policy.port.IntrusivePortsFeedbackPolicy),this.portSelectionAdapter=function(){return p}},getSelectionAdapter:function(){return this.portSelectionAdapter},setMaxFanOut:function(r){return this.maxFanOut=Math.max(1,r),this.fireEvent("change:maxFanOut",{value:this.maxFanOut}),this},getMaxFanOut:function(){return this.maxFanOut},setSemanticGroup:function(r){return this.semanticGroup=r,this.fireEvent("change:semanticGroup",{value:this.semanticGroup}),this},getSemanticGroup:function(){return this.semanticGroup},setConnectionAnchor:function(r){return null==r&&(r=new a.default.layout.anchor.ConnectionAnchor),this.connectionAnchor=r,this.connectionAnchor.setOwner(this),this.fireEvent("move",{figure:this,dx:0,dy:0}),this},getConnectionAnchorLocation:function(r,u){return this.connectionAnchor.getLocation(r,u)},getConnectionAnchorReferencePoint:function(r){return this.connectionAnchor.getReferencePoint(r)},getConnectionDirection:function(r){return null==this.preferredConnectionDirection?this.getParent().getBoundingBox().getDirection(this.getAbsolutePosition()):this.preferredConnectionDirection},setConnectionDirection:function(r){return this.preferredConnectionDirection=r,this.fireEvent("move",{figure:this,dx:0,dy:0}),this},setLocator:function(r){return this.locator=r,this},getLocator:function(){return this.locator},setBackgroundColor:function(r){return this.lighterBgColor=new a.default.util.Color(r).lighter(.3).rgba(),this._super(r),this},setValue:function(r){if(r===this.value)return this;var u=this.value;return this.value=r,null!==this.getParent()&&this.getParent().onPortValueChanged(this),this.fireEvent("change:value",{value:this.value,old:u}),this},getValue:function(){return this.value},repaint:function(r){!0===this.repaintBlocked||null===this.shape||((r=r||{}).cx=this.getAbsoluteX(),r.cy=this.getAbsoluteY(),r.rx=this.width/2,r.ry=r.rx,r.cursor="move",r.fill=this.getAlpha()<.9||!1===this.useGradient?this.bgColor.rgba():["90",this.bgColor.hash(),this.lighterBgColor].join("-"),this._super(r))},onMouseEnter:function(){this._oldstroke=this.getStroke(),this.setStroke(2)},onMouseLeave:function(){this.setStroke(this._oldstroke)},getConnections:function(){return this.connections},setParent:function(r){null!==this.parent&&this.parent.off(this.moveListener),this._super(r),null!==this.parent&&this.parent.on("move",this.moveListener)},getCoronaWidth:function(){return this.coronaWidth},setCoronaWidth:function(r){return this.coronaWidth=r,this},onDragStart:function(r,u,l,p){if(this.getConnections().getSize()>=this.maxFanOut)return!1;var x=this;this.ox=this.x,this.oy=this.y;var m=!0;return this.editPolicy.each(function(g,w){w instanceof a.default.policy.figure.DragDropEditPolicy&&(m=m&&w.onDragStart(x.canvas,x,r,u,l,p))}),m},onDrag:function(r,u,l,p,x,m){this._super(r,u)},onDragEnd:function(r,u,l,p){this.setAlpha(1),this.setPosition(this.ox,this.oy)},onDrop:function(r,u,l,p,x){},onConnect:function(r){},onDisconnect:function(r){},getName:function(){return this.name},setName:function(r){return this.name=r,this},hitTest:function(r,u,l){var p=this.getAbsoluteX()-this.coronaWidth-this.getWidth()/2,x=this.getAbsoluteY()-this.coronaWidth-this.getHeight()/2,m=p+this.getWidth()+2*this.coronaWidth,g=x+this.getHeight()+2*this.coronaWidth;return r>=p&&r<=m&&u>=x&&u<=g},setGlow:function(r){return!0===r&&null===this.corona?(this.corona=new a.default.Corona,this.corona.setDimension(this.getWidth()+2*this.getCoronaWidth(),this.getWidth()+2*this.getCoronaWidth()),this.corona.setPosition(this.getAbsoluteX()-this.getCoronaWidth()-this.getWidth()/2,this.getAbsoluteY()-this.getCoronaWidth()-this.getHeight()/2),this.corona.setCanvas(this.getCanvas()),this.corona.getShapeElement(),this.corona.repaint()):!1===r&&null!==this.corona&&(this.corona.setCanvas(null),this.corona=null),this},setDiameter:function(r){return this.setDimension(r,r),this.fireEvent("change:diameter",{value:r}),this},createCommand:function(r){return r.getPolicy()===a.default.command.CommandType.MOVE&&this.isDraggable()?new a.default.command.CommandMovePort(this):null},fireEvent:function(r,u){!0===this.isInDragDrop&&"drag"!==r||this._super(r,u)},getPersistentAttributes:function(){var r=this._super();
1return r.maxFanOut=this.maxFanOut,r.name=this.name,r.semanticGroup=this.semanticGroup,delete r.x,delete r.y,delete r.ports,r},setPersistentAttributes:function(r){return this._super(r),void 0!==r.maxFanOut&&(this.maxFanOut="number"==typeof r.maxFanOut?r.maxFanOut:Math.max(1,parseInt(r.maxFanOut))),void 0!==r.name&&this.setName(r.name),void 0!==r.semanticGroup&&this.setSemanticGroup(r.semanticGroup),this}}),a.default.Corona=a.default.shape.basic.Circle.extend({init:function(){this._super(),this.setAlpha(.3),this.setBackgroundColor(new a.default.util.Color(178,225,255)),this.setColor(new a.default.util.Color(102,182,252))},setAlpha:function(r){return this._super(Math.min(.3,r)),this.setDeleteable(!1),this.setDraggable(!1),this.setResizeable(!1),this.setSelectable(!1),this}})},
1"./src/ResizeHandle.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.ResizeHandle=a.default.shape.basic.Rectangle.extend({NAME:"draw2d.ResizeHandle",init:function(r,u,l){var p=this;this.zoomCallback=function(){p.attr({width:p.origWidth*p.getCanvas().getZoom(),height:p.origHeight*p.getCanvas().getZoom(),radius:p.origRadius*p.getCanvas().getZoom(),stroke:p.origStroke*p.getCanvas().getZoom()}),p.blockEvent||p.owner.fireEvent("move",{})},this._super((0,t.default)({bgColor:"#FDFDFD",stroke:.5,width:10,height:10,minWidth:.3,minHeight:.3,color:"#a0a0a0",radius:1,selectable:!1},r),(0,t.default)({owner:this.setOwner,type:this.setType},u),(0,t.default)({owner:this.getOwner,type:this.getType},l)),this.isResizeHandle=!0,this.command=null,this.commandMove=null,this.commandResize=null,this.useGradient=!0,this.origRadius=this.radius,this.origWidth=this.width,this.origHeight=this.height,this.origStroke=this.stroke},getSnapToDirection:function(){switch(this.type){case 1:return a.default.SnapToHelper.NORTH_WEST;case 2:return a.default.SnapToHelper.NORTH;case 3:return a.default.SnapToHelper.NORTH_EAST;case 4:default:return a.default.SnapToHelper.EAST;case 5:return a.default.SnapToHelper.SOUTH_EAST;case 6:return a.default.SnapToHelper.SOUTH;case 7:return a.default.SnapToHelper.SOUTH_WEST;case 8:return a.default.SnapToHelper.WEST;case 9:return a.default.SnapToHelper.NSEW}},createShapeElement:function(){return this.shape=this._super(),this.shape.node.setAttribute("type",this.type),this.updateCursor(this.shape),this.shape},getOwner:function(){return this.owner},setOwner:function(r){return this.owner=r,this},getType:function(){return this.type},setType:function(r){return this.type=r,this},updateCursor:function(r){if(null===r)return this;if(!1===this.isDraggable())return r.attr({cursor:"default"}),this;switch(this.type){case 1:r.attr({cursor:"nw-resize"});break;case 2:r.attr({cursor:"n-resize"});break;case 3:r.attr({cursor:"ne-resize"});break;case 4:r.attr({cursor:"e-resize"});break;case 5:r.attr({cursor:"se-resize"});break;case 6:r.attr({cursor:"s-resize"});break;case 7:r.attr({cursor:"sw-resize"});break;case 8:r.attr({cursor:"w-resize"});break;default:r.attr({cursor:"move"})}return this},setDraggable:function(r){return this._super(r),this.updateCursor(this.shape),this},onDragStart:function(r,u,l,p){return!!this.isDraggable()&&(this.ox=this.getAbsoluteX(),this.oy=this.getAbsoluteY(),this.commandMove=this.owner.createCommand(new a.default.command.CommandType(a.default.command.CommandType.MOVE)),this.commandResize=this.owner.createCommand(new a.default.command.CommandType(a.default.command.CommandType.RESIZE)),!0)},onDrag:function(r,u,l,p){if(!1!==this.isDraggable()){var x=this.getAbsoluteX(),m=this.getAbsoluteY();this._super(r,u,l,p);var g=this.getAbsoluteX()-x,w=this.getAbsoluteY()-m,C=this.owner,k=C.getAbsoluteX(),M=C.getAbsoluteY(),N=C.getWidth(),O=C.getHeight(),_=null,P=null,A=null;switch(this.type){case 1:C.setDimension(N-g,O-w),_=k+(N-C.getWidth()),P=M+(O-C.getHeight()),C.setPosition(_,P);break;case 2:C.setDimension(N,O-w),_=k,P=M+(O-C.getHeight()),C.setPosition(_,P);break;case 3:C.setDimension(N+g,O-w),_=k,P=M+(O-C.getHeight()),C.setPosition(_,P);break;case 4:C.setDimension(N+g,O);break;case 5:C.setDimension(N+g,O+w);break;case 6:C.setDimension(N,O+w);break;case 7:C.setDimension(N-g,O+w),_=k+(N-C.getWidth()),C.setPosition(_,P=M);break;case 8:C.setDimension(N-g,O),_=k+(N-C.getWidth()),C.setPosition(_,P=M)}null!==_&&((A=C.getPosition()).x!==_||A.y!==P)&&C.setDimension(C.getWidth()-(A.x-_),C.getHeight()-(A.y-P))}},onDragEnd:function(r,u,l,p){!this.isDraggable()||(null!==this.commandMove&&(this.commandMove.setPosition(this.owner.getX(),this.owner.getY()),this.canvas.getCommandStack().execute(this.commandMove),this.commandMove=null),null!==this.commandResize&&(this.commandResize.setDimension(this.owner.getWidth(),this.owner.getHeight()),this.canvas.getCommandStack().execute(this.commandResize),this.commandResize=null))},setPosition:function(r,u){if(r instanceof a.default.geo.Point?(this.x=r.x,this.y=r.y):(this.x=r,this.y=u),
1!0===this.repaintBlocked||null===this.shape)return this;this.shape.attr({x:this.x,y:this.y}),this.applyTransformation()},setDimension:function(r,u){void 0!==u?this._super(r,u):a.default.isTouchDevice?this._super(15,15):this._super(8,8);var l=this.getWidth(),p=l/2;switch(this.type){case 1:this.setSnapToGridAnchor(new a.default.geo.Point(l,l));break;case 2:this.setSnapToGridAnchor(new a.default.geo.Point(p,l));break;case 3:this.setSnapToGridAnchor(new a.default.geo.Point(0,l));break;case 4:this.setSnapToGridAnchor(new a.default.geo.Point(0,p));break;case 5:this.setSnapToGridAnchor(new a.default.geo.Point(0,0));break;case 6:this.setSnapToGridAnchor(new a.default.geo.Point(p,0));break;case 7:this.setSnapToGridAnchor(new a.default.geo.Point(l,0));break;case 8:this.setSnapToGridAnchor(new a.default.geo.Point(l,p));break;case 9:this.setSnapToGridAnchor(new a.default.geo.Point(p,p))}return this},show:function(r){this.setCanvas(r),this.canvas.resizeHandles.add(this),this.shape.insertAfter(this.owner.getShapeElement());try{this.blockEvent=!0,this.zoomCallback()}finally{this.blockEvent=!1}return this.repaint(),this},hide:function(){if(null!==this.shape)return this.canvas.resizeHandles.remove(this),this.setCanvas(null),this},setCanvas:function(r){null!==this.canvas&&this.canvas.off(this.zoomCallback),this._super(r),null!==this.canvas&&this.canvas.on("zoom",this.zoomCallback)},setBackgroundColor:function(r){return r=new a.default.util.Color(r),this.bgGradient="90-"+r.darker(.2).hash()+"-"+r.hash(),this._super(r),this},repaint:function(r){!0===this.repaintBlocked||null===this.shape||((r=r||{}).fill="none"===this.bgColor.hash()?"none":this.getAlpha()<.9||!1===this.useGradient?this.bgColor.rgba():this.bgGradient,this._super(r))},supportsSnapToHelper:function(){return!0},onKeyDown:function(r,u){this.canvas.onKeyDown(r,u)},fireEvent:function(r,u){}})},
1"./src/SVGFigure.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.SVGFigure=a.default.SetFigure.extend({NAME:"draw2d.SVGFigure",init:function(r,u,l){this.svg=null,this._super((0,t.default)({},r),(0,t.default)({svg:this.setSVG},u),(0,t.default)({svg:this.getSVG},l))},createSet:function(){return null===this.svg&&(this.svg=this.getSVG()),this.importSVG(this.canvas,this.svg)},getSVG:function(){return this.svg},setSVG:function(r,u){if(this.svg=r,null!==this.canvas&&null!==this.svgNodes){var l=this.createSet();if(isNaN(parseFloat(u)))l.insertAfter(this.svgNodes),this.svgNodes.remove(),this.svgNodes=l,this.applyTransformation();else{l.hide(),l.insertAfter(this.svgNodes);var p=this.svgNodes;this.svgNodes=l,this.applyTransformation(),p.forEach(function(x){$(x.node).fadeOut(u,function(){x.remove()})}),l.forEach(function(x){$(x.node).fadeIn(u)})}}return this},importSVG:function(r,u){var l=r.paper.set();try{if(void 0===u)throw"No data was provided.";var p=$(u);void 0===this._dimensionReadFromJSON&&(p.attr("width")&&p.attr("height")&&this.setDimension(parseFloat(p.attr("width")),parseFloat(p.attr("height"))),delete this._dimensionReadFromJSON);var x=new RegExp("([a-z0-9-]+) ?: ?([^ ;]+)[ ;]?","gi");p.children().each(function(m,g){var w=null,C=null,k={},M=g.tagName,N=M.indexOf(":");if(-1!=N&&(M=M.substr(N+1)),$(g.attributes).each(function(){switch(this.nodeName){case"stroke-dasharray":k[this.nodeName]="- ";break;case"style":C=this.nodeValue;break;case"id":case"xml:space":break;default:k[this.nodeName]=this.value?this.value:this.nodeValue}}),null!==C)for(;x.exec(C);)k[RegExp.$1]=RegExp.$2;switch(void 0===k["stroke-width"]&&(k["stroke-width"]=void 0===k.stroke?0:1.2),M){case"rect":w=r.paper.rect(),void 0!==k.rx&&(k.r=parseInt(k.rx),delete k.rx);break;case"circle":w=r.paper.circle();break;case"ellipse":w=r.paper.ellipse();break;case"path":k.fill="none",w=r.paper.path(k.d);break;case"line":k.d="M "+k.x1+" "+k.y1+"L"+k.x2+" "+k.y2,k.fill="none",w=r.paper.path(k.d);break;case"polyline":k.d="M "+k.points.replace(" "," L"),w=r.paper.path(k.d);break;case"polygon":w=r.paper.polygon(k.points);break;case"image":w=r.paper.image();break;case"tspan":case"text":if(g.childNodes.length>0){var _=g.firstChild;do{switch(_.nodeType){case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:return;case 3:_=g}var P=r.paper.text(0,0,$(_).text()),A={x:parseFloat(_.attributes.x.value),y:parseFloat(_.attributes.y.value),"text-anchor":"start"};void 0!==_.attributes["text-anchor"]?A["text-anchor"]=_.attributes["text-anchor"].value:void 0!==k["text-anchor"]&&(A["text-anchor"]=k["text-anchor"]),void 0!==_.attributes["font-size"]?A["font-size"]=parseInt(_.attributes["font-size"].value):void 0!==k["font-size"]&&(A["font-size"]=parseInt(k["font-size"])),void 0!==_.attributes["font-family"]?A["font-family"]=_.attributes["font-family"].value:void 0!==k["font-family"]&&(A["font-family"]=k["font-family"]),A.fill="#000000",void 0!==_.attributes.fill?A.fill=_.attributes.fill.value:void 0!==k.fill&&(A.fill=k.fill),A.y=A.y+P.getBBox().height/2,P.attr(A),l.push(P),_=_.nextSibling}while(_&&3===_.nodeType)}else w=r.paper.text(0,0,$(g).html()),void 0===k.fill&&(k.fill="#000000"),void 0===k["text-anchor"]&&(k["text-anchor"]="start"),void 0!==k["font-size"]&&(k["font-size"]=parseInt(k["font-size"])),void 0!==k["font-family"]&&(k["font-family"]=parseInt(k["font-family"])),k.y=parseFloat(k.y)+w.getBBox().height/2}null!==w&&(w.attr(k),l.push(w))})}catch(m){alert("The SVG data you entered was invalid! ("+m+")")}return l},setPersistentAttributes:function(r){return this._super(r),(void 0!==r.width||void 0!==r.height)&&(this._dimensionReadFromJSON=!0),this}})},
1"./src/Selection.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.Selection=Class.extend({NAME:"draw2d.Selection",init:function(){this.primary=null,this.all=new a.default.util.ArrayList},clear:function(){return this.primary=null,this.all=new a.default.util.ArrayList,this},getPrimary:function(){return this.primary},setPrimary:function(s){return this.primary=s,this.add(s),this},remove:function(s){return this.all.remove(s),this.primary===s&&(this.primary=null),this},add:function(s){return null!==s&&!this.all.contains(s)&&this.all.add(s),this},contains:function(s,n){if(n){for(var r=0;r<this.all.getSize();r++){var u=this.all.get(r);if(u===s||u.contains(s))return!0}return!1}return this.all.contains(s)},getSize:function(){return this.all.getSize()},getAll:function(s){if(!0===s){var n=new a.default.util.ArrayList;return function u(l){n.addAll(l,!0),l.each(function(p,x){x instanceof a.default.shape.composite.StrongComposite&&u(x.getAssignedFigures())})}(this.all),n}return this.all.clone()},each:function(s,n){return this.all.each(s,n),this}})},
1"./src/SetFigure.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.SetFigure=a.default.shape.basic.Rectangle.extend({NAME:"draw2d.SetFigure",init:function(r,u,l){this.svgNodes=null,this.originalWidth=null,this.originalHeight=null,this.scaleX=1,this.scaleY=1,this.strokeScale=!0,this._super((0,t.default)({stroke:0,bgColor:null},r),u,l)},setCanvas:function(r){null===r&&null!==this.svgNodes&&(this.svgNodes.remove(),this.svgNodes=null),this._super(r)},setCssClass:function(r){return this._super(r),null===this.svgNodes||this.svgNodes.forEach(null===this.cssClass?function(u){u.node.removeAttribute("class")}:function(u){u.node.setAttribute("class",r)}),this},repaint:function(r){!0===this.repaintBlocked||null===this.shape||(null!==this.originalWidth&&(this.scaleX=this.width/this.originalWidth,this.scaleY=this.height/this.originalHeight),r=r||{},this.applyAlpha(),this._super(r))},setVisible:function(r,u){this._super(r,u),null!==this.svgNodes&&(u?this.svgNodes.forEach(!0===this.visible?function(l){$(l.node).fadeIn(u,function(){return l.show()})}:function(l){$(l.node).fadeOut(u,function(){return l.hide()})}):!0===this.visible?this.svgNodes.show():this.svgNodes.hide())},applyAlpha:function(){this.svgNodes.attr({opacity:this.alpha})},applyTransformation:function(){var r="S"+this.scaleX+","+this.scaleY+",0,0 R"+this.rotationAngle+","+(this.getWidth()/2|0)+","+(this.getHeight()/2|0)+"T"+this.getAbsoluteX()+","+this.getAbsoluteY();if(this.svgNodes.transform(r),90===this.rotationAngle||270===this.rotationAngle){var u=this.svgNodes.getBBox(!0),x="...S"+u.height/u.width+","+u.width/u.height+","+(this.getAbsoluteX()+this.getWidth()/2)+","+(this.getAbsoluteY()+this.getHeight()/2);this.svgNodes.transform(x)}return this},toFront:function(r){if(this.composite instanceof a.default.shape.composite.StrongComposite&&void 0!==r&&r.getZOrder()<this.composite.getZOrder()&&(r=this.composite),void 0===r){if(this.getShapeElement().toFront(),null!==this.svgNodes&&this.svgNodes.toFront(),null!==this.canvas){var p=this.canvas.getFigures(),x=this.canvas.getLines();null!==p.remove(this)?p.add(this):null!==x.remove(this)&&x.add(this)}}else if(null!==this.svgNodes&&this.svgNodes.insertAfter(r.getTopLevelShapeElement()),this.getShapeElement().insertAfter(r.getTopLevelShapeElement()),null!==this.canvas){var m=this.canvas.getFigures(),g=this.canvas.getLines();if(null!==m.remove(this)){var w=m.indexOf(r);m.insertElementAt(this,w+1)}else null!==g.remove(this)&&g.add(this)}this.children.each(function(k,M){M.figure.toFront(r)});var C=this;return this.getPorts().each(function(k,M){M.getConnections().each(function(N,O){O.toFront(r)}),M.toFront(C)}),this.selectionHandles.each(function(k,M){M.toFront()}),this},toBack:function(r){if(!(this.composite instanceof a.default.shape.composite.StrongComposite)){if(null!==this.canvas){var u=this.canvas.getFigures(),l=this.canvas.getLines();null!==u.remove(this)?u.insertElementAt(this,0):null!==l.remove(this)&&l.insertElementAt(this,0)}this.children.each(function(x,m){m.figure.toBack(r)},!0),null!==this.svgNodes&&(void 0!==r?this.svgNodes.insertBefore(r.getShapeElement()):this.svgNodes.toBack()),null!==this.canvas&&(void 0!==r?this.getShapeElement().insertBefore(r.getShapeElement()):this.getShapeElement().toBack());var p=this;return this.getPorts().each(function(x,m){m.getConnections().each(function(g,w){w.toFront(p)}),m.toFront(p)}),this}this.toFront(this.composite)},getTopLevelShapeElement:function(){return 0===this.svgNodes.length?this.shape:this.svgNodes},createShapeElement:function(){var r=this.canvas.paper.rect(this.getX(),this.getY(),this.getWidth(),this.getHeight());if(this.svgNodes=this.createSet(),void 0===this.svgNodes.forEach){var u=this.canvas.paper.set();u.push(this.svgNodes),this.svgNodes=u}this.svgNodes.attr({"stroke-scale":this.strokeScale}),this.setVisible(this.visible),this.setCssClass(this.cssClass);var l=this.svgNodes.getBBox();return this.originalWidth=l.width,this.originalHeight=l.height,r},createSet:function(){return this.canvas.paper.set()}})},
1"./src/VectorFigure.js":function(h,y,c){"use strict";var a=r(c("./src/packages.js")),t=r(c("./src/util/JSONUtil.js")),n=r(c("./src/util/extend.js"));function r(u){return u&&u.__esModule?u:{default:u}}a.default.VectorFigure=a.default.shape.node.Node.extend({NAME:"draw2d.VectorFigure",init:function(l,p,x){this.stroke=1,this.radius=0,this.bgColor=new a.default.util.Color("#ffffff"),this.color=new a.default.util.Color("#303030"),this.dasharray=null,this.strokeBeforeGlow=this.stroke,this.glowIsActive=!1,this._super(l,(0,n.default)({dasharray:this.setDashArray,radius:this.setRadius,bgColor:this.setBackgroundColor,color:this.setColor,stroke:this.setStroke},p),(0,n.default)({dasharray:this.getDashArray,radius:this.getRadius,bgColor:this.getBackgroundColor,color:this.getColor,stroke:this.getStroke},x))},setRadius:function(l){return this.radius=l,this.repaint(),this.fireEvent("change:radius",{value:this.radius}),this},getRadius:function(){return this.radius},setDashArray:function(l){return this.dasharray=l,this.repaint(),this.fireEvent("change:dashArray",{value:this.dasharray}),this},getDashArray:function(){return this.dasharray},setGlow:function(l){return l===this.glowIsActive||(this.glowIsActive=l,!0===l?(this.strokeBeforeGlow=this.getStroke(),this.setStroke(2.5*this.strokeBeforeGlow)):this.setStroke(this.strokeBeforeGlow)),this},repaint:function(l){if(!0!==this.repaintBlocked&&null!==this.shape)return(l=l||{}).x=this.getAbsoluteX(),l.y=this.getAbsoluteY(),void 0===l.stroke&&(l.stroke=null===this.color||0===this.stroke?"none":this.color.rgba()),t.default.ensureDefault(l,"stroke-width",this.stroke),t.default.ensureDefault(l,"fill",this.bgColor.rgba()),t.default.ensureDefault(l,"dasharray",this.dasharray),t.default.ensureDefault(l,"stroke-dasharray",this.dasharray),this._super(l),this},setBackgroundColor:function(l){return this.bgColor=new a.default.util.Color(l),this.repaint(),this.fireEvent("change:bgColor",{value:this.bgColor}),this},getBackgroundColor:function(){return this.bgColor},setStroke:function(l){return this.stroke=l,this.repaint(),this.fireEvent("change:stroke",{value:this.stroke}),this},getStroke:function(){return this.stroke},setColor:function(l){return this.color=new a.default.util.Color(l),this.repaint(),this.fireEvent("change:color",{value:this.color}),this},getColor:function(){return this.color},getPersistentAttributes:function(){return(0,n.default)(this._super(),{bgColor:this.bgColor.rgba(),color:this.color.rgba(),stroke:this.stroke,radius:this.radius,dasharray:this.dasharray})},setPersistentAttributes:function(l){return this._super(l),void 0!==l.radius&&this.setRadius(l.radius),void 0!==l.bgColor&&this.setBackgroundColor(l.bgColor),void 0!==l.color&&this.setColor(l.color),void 0!==l.stroke&&this.setStroke(null===l.stroke?0:parseFloat(l.stroke)),"string"==typeof l.dasharray&&(this.dasharray=l.dasharray),this}})},
1"./src/command/Command.js":function(h,y,c){"use strict";(function v(t){return t&&t.__esModule?t:{default:t}})(c("./src/packages.js")).default.command.Command=Class.extend({NAME:"draw2d.command.Command",init:function(s){this.label=s},getLabel:function(){return this.label},canExecute:function(){return!0},execute:function(){},cancel:function(){},undo:function(){},redo:function(){}})},
1"./src/command/CommandAdd.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandAdd=a.default.command.Command.extend({NAME:"draw2d.command.CommandAdd",init:function(s,n,r,u){this._super(a.default.Configuration.i18n.command.addShape),this.figure=n,this.canvas=s,this.pos=new a.default.geo.Point(r,u)},canExecute:function(){return null===this.figure.getCanvas()},execute:function(){this.canvas.add(this.figure,this.pos.x,this.pos.y)},redo:function(){this.execute()},undo:function(){this.canvas.remove(this.figure)}})},
1"./src/command/CommandAddVertex.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandAddVertex=a.default.command.Command.extend({NAME:"draw2d.command.CommandAddVertex",init:function(s,n,r,u){this._super(a.default.Configuration.i18n.command.addVertex),this.line=s,this.index=n,this.newPoint=new a.default.geo.Point(r,u)},canExecute:function(){return!0},execute:function(){this.redo()},undo:function(){this.line.removeVertexAt(this.index)},redo:function(){this.line.insertVertexAt(this.index,this.newPoint.x,this.newPoint.y)}})},
1"./src/command/CommandAssignFigure.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandAssignFigure=a.default.command.Command.extend({NAME:"draw2d.command.CommandAssignFigure",init:function(s,n){this._super(a.default.Configuration.i18n.command.assignShape),this.figure=s,this.composite=n,this.assignedConnections=new a.default.util.ArrayList,this.isNode=this.figure instanceof a.default.shape.node.Node,this.oldBoundingBox=n.getBoundingBox()},canExecute:function(){return!0},execute:function(){if(this.composite.assignFigure(this.figure),!0===this.isNode){var s=this.figure.getConnections(),n=this;s.each(function(r,u){u.getSource().getParent().getComposite()===n.composite&&u.getTarget().getParent().getComposite()===n.composite&&u.getComposite()!==n.composite&&(n.assignedConnections.add({oldComposite:u.getComposite(),connection:u}),n.composite.assignFigure(u))})}},undo:function(){this.composite.unassignFigure(this.figure),this.assignedConnections.each(function(s,n){null!==n.oldComposite?n.oldComposite.assignFigure(n.connection):n.connection.getComposite().unassignFigure(n.connection)}),this.composite.stickFigures=!0,this.composite.setBoundingBox(this.oldBoundingBox),this.composite.stickFigures=!1},redo:function(){var s=this;this.composite.setBoundingBox(this.oldBoundingBox),this.composite.assignFigure(this.figure),this.assignedConnections.each(function(n,r){return s.composite.assignFigure(r.connection)})}})},
1"./src/command/CommandAttr.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandAttr=a.default.command.Command.extend({NAME:"draw2d.command.CommandAttr",init:function(s,n){var r=this;this._super(a.default.Configuration.i18n.command.changeAttributes),this.figure=s,this.newAttributes=n,this.oldAttributes={},Object.keys(n).forEach(function(u){r.oldAttributes[u]=s.attr(u)})},canExecute:function(){return!0},execute:function(){this.redo()},undo:function(){this.figure.attr(this.oldAttributes)},redo:function(){this.figure.attr(this.newAttributes)}})},
1"./src/command/CommandBoundingBox.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandBoundingBox=a.default.command.Command.extend({NAME:"draw2d.command.CommandResize",init:function(s,n){this._super(a.default.Configuration.i18n.command.resizeShape),this.figure=s,this.oldBoundingBox=this.figure.getBoundingBox(),this.newBoundingBox=n},canExecute:function(){return!this.oldBoundingBox.equals(this.newBoundingBox)},execute:function(){this.redo()},undo:function(){this.figure.setBoundingBox(this.oldBoundingBox)},redo:function(){this.figure.setBoundingBox(this.newBoundingBox)}})},
1"./src/command/CommandCollection.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandCollection=a.default.command.Command.extend({NAME:"draw2d.command.CommandCollection",init:function(s){this._super(void 0===s?a.default.Configuration.i18n.command.collection:s),this.commands=new a.default.util.ArrayList},getLabel:function(){if(1===this.commands.getSize())return this.commands.first().getLabel();if(this.commands.getSize()>1){var s=this.commands.clone().map(function(n){return n.getLabel()});if(s.unique(),1===s.getSize())return s.first()}return this._super()},add:function(s){this.commands.add(s)},canExecute:function(){var s=!1;return this.commands.each(function(n,r){s=s||r.canExecute()}),s},execute:function(){this.commands.each(function(s,n){n.execute()})},redo:function(){this.commands.each(function(s,n){n.redo()})},undo:function(){this.commands.reverse(),this.commands.each(function(s,n){n.undo()}),this.commands.reverse()}})},
1"./src/command/CommandConnect.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandConnect=a.default.command.Command.extend({NAME:"draw2d.command.CommandConnect",init:function(s,n,r){this._super(a.default.Configuration.i18n.command.connectPorts),this.canvas=n.getCanvas(),this.source=s,this.target=n,this.connection=null,this.dropTarget=r},setConnection:function(s){this.connection=s},getConnection:function(){return this.connection},execute:function(){var s=this,n=function(l){s.connection=l,s.connection.setSource(s.source),s.connection.setTarget(s.target),s.canvas.add(s.connection)};if(null===this.connection){var r=a.default.Configuration.factory.createConnection(this.source,this.target,n,this.dropTarget);if(void 0===r)return;this.connection=r}n(this.connection)},redo:function(){this.canvas.add(this.connection),this.connection.reconnect()},undo:function(){this.canvas.remove(this.connection)}})},
1"./src/command/CommandDelete.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandDelete=a.default.command.Command.extend({NAME:"draw2d.command.CommandDelete",init:function(s){this._super(a.default.Configuration.i18n.command.deleteShape),this.parent=s.getParent(),this.figure=s,this.canvas=s.getCanvas(),this.connections=null,this.removedParentEntry=null,this.indexOfChild=-1},canExecute:function(){return null!==this.figure.getCanvas()},execute:function(){this.redo()},undo:function(){null!==this.parent?(this.parent.add(this.removedParentEntry.figure,this.removedParentEntry.locator,this.indexOfChild),this.canvas.setCurrentSelection(this.parent)):(this.canvas.add(this.figure),this.canvas.setCurrentSelection(this.figure)),this.figure instanceof a.default.Connection&&this.figure.reconnect();for(var s=0;s<this.connections.getSize();++s)this.canvas.add(this.connections.get(s)),this.connections.get(s).reconnect()},redo:function(){this.canvas.setCurrentSelection(null),null===this.connections&&(this.connections=this.figure instanceof a.default.shape.node.Node?this.figure.getConnections():new a.default.util.ArrayList);for(var s=0;s<this.connections.getSize();++s)this.canvas.remove(this.connections.get(s));null!==this.parent?(this.indexOfChild=this.parent.getChildren().indexOf(this.figure),this.removedParentEntry=this.parent.remove(this.figure)):this.canvas.remove(this.figure)}})},
1"./src/command/CommandDeleteGroup.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandDeleteGroup=a.default.command.Command.extend({NAME:"draw2d.command.CommandDeleteGroup",init:function(s){this._super(a.default.Configuration.i18n.command.deleteShape),this.parent=s.getParent(),this.group=s,this.canvas=s.getCanvas(),this.batchDelete=null},canExecute:function(){for(var s=this.group.getAssignedFigures(),n=0;n<s.getSize();n++)if(!1===s.get(n).isDeleteable())return!1;return null!==this.group.getCanvas()},execute:function(){this.redo()},undo:function(){this.batchDelete.undo(),this.canvas.setCurrentSelection(this.group)},redo:function(){if(null===this.batchDelete){this.batchDelete=new a.default.command.CommandCollection,this.batchDelete.add(new a.default.command.CommandUngroup(this.canvas,this.group));for(var s=this.group.getAssignedFigures(),n=0;n<s.getSize();n++){var u=s.get(n).createCommand(new a.default.command.CommandType(a.default.command.CommandType.DELETE));this.batchDelete.add(u)}}this.batchDelete.execute()}})},
1"./src/command/CommandGroup.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandGroup=a.default.command.Command.extend({NAME:"draw2d.command.CommandGroup",init:function(s,n){this._super(a.default.Configuration.i18n.command.groupShapes),this.figures=n instanceof a.default.Selection?n.getAll():n,this.figures.grep(function(r){return null===r.getComposite()}),this.canvas=s,this.group=new a.default.shape.composite.Group},canExecute:function(){return!this.figures.isEmpty()},execute:function(){this.redo()},undo:function(){var s=this;this.figures.each(function(n,r){s.group.unassignFigure(r)}),this.canvas.remove(this.group),this.canvas.setCurrentSelection(this.figures)},redo:function(){var s=this;this.figures.each(function(n,r){s.group.assignFigure(r)}),this.canvas.add(this.group),this.canvas.setCurrentSelection(this.group)}})},
1"./src/command/CommandMove.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandMove=a.default.command.Command.extend({NAME:"draw2d.command.CommandMove",init:function(s,n,r){this._super(a.default.Configuration.i18n.command.moveShape),this.figure=s,void 0===n?(this.oldX=s.getX(),this.oldY=s.getY()):(this.oldX=n,this.oldY=r)},setStartPosition:function(s,n){this.oldX=s,this.oldY=n},setPosition:function(s,n){this.newX=s,this.newY=n},canExecute:function(){return this.newX!==this.oldX||this.newY!==this.oldY},execute:function(){this.redo()},undo:function(){this.figure.setPosition(this.oldX,this.oldY)},redo:function(){this.figure.setPosition(this.newX,this.newY)}})},
1"./src/command/CommandMoveConnection.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandMoveConnection=a.default.command.Command.extend({NAME:"draw2d.command.CommandMoveConnection",init:function(s){this._super(a.default.Configuration.i18n.command.moveLine),this.line=s,this.dx=0,this.dy=0},setTranslation:function(s,n){this.dx=s,this.dy=n},canExecute:function(){return 0!==this.dx&&0!==this.dy},execute:function(){this.redo()},undo:function(){var s=this;this.line.getVertices().each(function(n,r){r.translate(-s.dx,-s.dy)}),this.line.svgPathString=null,this.line.setPosition(this.line.getStartPosition())},redo:function(){var s=this;this.line.getVertices().each(function(n,r){r.translate(s.dx,s.dy)}),this.line.svgPathString=null,this.line.setPosition(this.line.getStartPosition())}})},
1"./src/command/CommandMoveLine.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandMoveLine=a.default.command.Command.extend({NAME:"draw2d.command.CommandMoveLine",init:function(s){this._super(a.default.Configuration.i18n.command.moveLine),this.line=s,this.dx=0,this.dy=0},setTranslation:function(s,n){this.dx=s,this.dy=n},canExecute:function(){return 0!==this.dx&&0!==this.dy},execute:function(){this.redo()},undo:function(){var s=this;this.line.getVertices().each(function(n,r){r.translate(-s.dx,-s.dy)}),this.line.svgPathString=null,this.line.setPosition(this.line.getStartPosition())},redo:function(){var s=this;this.line.getVertices().each(function(n,r){r.translate(s.dx,s.dy)}),this.line.svgPathString=null,this.line.setPosition(this.line.getStartPosition())}})},
1"./src/command/CommandMoveVertex.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandMoveVertex=a.default.command.Command.extend({NAME:"draw2d.command.CommandMoveVertex",init:function(s){this._super(a.default.Configuration.i18n.command.moveVertex),this.line=s,this.index=-1,this.newPoint=null},setIndex:function(s){this.index=s,this.origPoint=this.line.getVertices().get(this.index).clone()},updatePosition:function(s,n){this.newPoint=new a.default.geo.Point(s,n)},canExecute:function(){return-1!==this.index&&null!==this.newPoint},execute:function(){this.redo()},undo:function(){this.line.setVertex(this.index,this.origPoint.x,this.origPoint.y)},redo:function(){this.line.setVertex(this.index,this.newPoint.x,this.newPoint.y)}})},
1"./src/command/CommandMoveVertices.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandMoveVertices=a.default.command.Command.extend({NAME:"draw2d.command.CommandMoveVertices",init:function(s){this._super(a.default.Configuration.i18n.command.moveVertices),this.line=s,this.oldVertices=s.getVertices().clone(!0),this.newVertices=null},updateVertices:function(s){this.newVertices=s},canExecute:function(){return null!==this.newVertices},execute:function(){this.redo()},undo:function(){this.line.setVertices(this.oldVertices)},redo:function(){this.line.setVertices(this.newVertices)}})},
1"./src/command/CommandReconnect.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandReconnect=a.default.command.Command.extend({NAME:"draw2d.command.CommandReconnect",init:function(s){this._super(a.default.Configuration.i18n.command.connectPorts),this.con=s,this.oldSourcePort=s.getSource(),this.oldTargetPort=s.getTarget()},canExecute:function(){return!0},setNewPorts:function(s,n){this.newSourcePort=s,this.newTargetPort=n},setIndex:function(s){},updatePosition:function(s,n){},execute:function(){this.redo()},cancel:function(){this.con.setSource(this.oldSourcePort),this.con.setTarget(this.oldTargetPort),this.con.routingRequired=!0,this.con.repaint()},undo:function(){this.con.setSource(this.oldSourcePort),this.con.setTarget(this.oldTargetPort),this.con.routingRequired=!0,this.con.repaint()},redo:function(){this.con.setSource(this.newSourcePort),this.con.setTarget(this.newTargetPort),this.con.routingRequired=!0,this.con.repaint()}})},
1"./src/command/CommandRemoveVertex.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandRemoveVertex=a.default.command.Command.extend({NAME:"draw2d.command.CommandRemoveVertex",init:function(s,n){this._super(a.default.Configuration.i18n.command.deleteVertex),this.line=s,this.index=n,this.oldPoint=s.getVertices().get(n).clone()},canExecute:function(){return!0},execute:function(){this.redo()},undo:function(){this.line.insertVertexAt(this.index,this.oldPoint.x,this.oldPoint.y)},redo:function(){this.line.removeVertexAt(this.index)}})},
1"./src/command/CommandReplaceVertices.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandReplaceVertices=a.default.command.Command.extend({NAME:"draw2d.command.CommandReplaceVertices",init:function(s,n,r){this._super(a.default.Configuration.i18n.command.addSegment),this.line=s,this.originalVertices=n,this.newVertices=r},canExecute:function(){return!0},execute:function(){this.redo()},undo:function(){this.line.setVertices(this.originalVertices)},redo:function(){this.line.setVertices(this.newVertices)}})},
1"./src/command/CommandResize.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandResize=a.default.command.Command.extend({NAME:"draw2d.command.CommandResize",init:function(s,n,r){this._super(a.default.Configuration.i18n.command.resizeShape),this.figure=s,void 0===n?(this.oldWidth=s.getWidth(),this.oldHeight=s.getHeight()):(this.oldWidth=n,this.oldHeight=r)},setDimension:function(s,n){this.newWidth=0|s,this.newHeight=0|n},canExecute:function(){return this.newWidth!==this.oldWidth||this.newHeight!==this.oldHeight},execute:function(){this.redo()},undo:function(){this.figure.setDimension(this.oldWidth,this.oldHeight)},redo:function(){this.figure.setDimension(this.newWidth,this.newHeight)}})},
1"./src/command/CommandRotate.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandRotate=a.default.command.Command.extend({NAME:"draw2d.command.CommandRotate",init:function(s,n){this._super(a.default.Configuration.i18n.command.rotateShape),this.figure=s,this.oldAngle=s.getRotationAngle(),this.newAngle=n},canExecute:function(){return this.oldAngle!==this.newAngle},execute:function(){this.redo()},undo:function(){this.rotate(this.oldAngle)},redo:function(){this.rotate(this.newAngle)},rotate:function(s){var n=this.figure.getWidth(),r=this.figure.getHeight();this.figure.setRotationAngle(s),this.figure.setDimension(r,n),this.figure.portRelayoutRequired=!0}})},
1"./src/command/CommandStack.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandStack=Class.extend({NAME:"draw2d.command.CommandStack",init:function(){this.undostack=[],this.redostack=[],this.maxundo=50,this.transactionCommand=null,this.eventListeners=new a.default.util.ArrayList},setUndoLimit:function(s){return this.maxundo=s,this},markSaveLocation:function(){return this.undostack=[],this.redostack=[],this.notifyListeners(new a.default.command.Command,a.default.command.CommandStack.POST_EXECUTE),this},execute:function(s){if(void 0===s)throw"Missing parameter [command] for method call CommandStack.execute";return null===s||!1===s.canExecute()?this:null!==this.transactionCommand?(this.transactionCommand.add(s),this):(this.notifyListeners(s,a.default.command.CommandStack.PRE_EXECUTE,"PRE_EXECUTE"),this.undostack.push(s),s.execute(),this.redostack=[],this.undostack.length>this.maxundo&&(this.undostack=this.undostack.slice(this.undostack.length-this.maxundo)),this.notifyListeners(s,a.default.command.CommandStack.POST_EXECUTE,"POST_EXECUTE"),this)},startTransaction:function(s){if(null!==this.transactionCommand)throw"CommandStack is already within transactional mode. Don't call 'startTransaction";return this.transactionCommand=new a.default.command.CommandCollection(s),this},isInTransaction:function(){return null!==this.transactionCommand},commitTransaction:function(){if(null===this.transactionCommand)return this;var s=this.transactionCommand;return this.transactionCommand=null,1===s.commands.getSize()?this.execute(s.commands.first()):this.execute(s),this},undo:function(){var s=this.undostack.pop();return s&&(this.notifyListeners(s,a.default.command.CommandStack.PRE_UNDO),this.redostack.push(s),s.undo(),this.notifyListeners(s,a.default.command.CommandStack.POST_UNDO)),this},redo:function(){var s=this.redostack.pop();return s&&(this.notifyListeners(s,a.default.command.CommandStack.PRE_REDO),this.undostack.push(s),s.redo(),this.notifyListeners(s,a.default.command.CommandStack.POST_REDO)),this},getRedoLabel:function(){if(0===this.redostack.length)return"";var s=this.redostack[this.redostack.length-1];return s?s.getLabel():""},getUndoLabel:function(){if(0===this.undostack.length)return"";var s=this.undostack[this.undostack.length-1];return s?s.getLabel():""},canRedo:function(){return this.redostack.length>0},canUndo:function(){return this.undostack.length>0},addEventListener:function(s){return this.on("change",s)},on:function(s,n){if("change"!==s)throw"only event of kind 'change' is supported";if(n instanceof a.default.command.CommandStackEventListener)this.eventListeners.add(n);else if("function"==typeof n.stackChanged)this.eventListeners.add(n);else{if("function"!=typeof n)throw"Object doesn't implement required callback interface [draw2d.command.CommandStackListener]";this.eventListeners.add({stackChanged:n})}return this},removeEventListener:function(s){return this.off(s),this},off:function(s){return this.eventListeners.grep(function(n){return n===s||n.stackChanged===s}),this},notifyListeners:function(s,n,r){for(var u=new a.default.command.CommandStackEvent(this,s,n,r),l=this.eventListeners.getSize(),p=0;p<l;p++)this.eventListeners.get(p).stackChanged(u)}}),a.default.command.CommandStack.PRE_EXECUTE=1,a.default.command.CommandStack.PRE_REDO=2,a.default.command.CommandStack.PRE_UNDO=4,a.default.command.CommandStack.POST_EXECUTE=8,a.default.command.CommandStack.POST_REDO=16,a.default.command.CommandStack.POST_UNDO=32,a.default.command.CommandStack.POST_INIT=64,a.default.command.CommandStack.POST_MASK=a.default.command.CommandStack.POST_EXECUTE|a.default.command.CommandStack.POST_UNDO|a.default.command.CommandStack.POST_REDO,a.default.command.CommandStack.PRE_MASK=a.default.command.CommandStack.PRE_EXECUTE|a.default.command.CommandStack.PRE_UNDO|a.default.command.CommandStack.PRE_REDO},
1"./src/command/CommandStackEvent.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandStackEvent=Class.extend({NAME:"draw2d.command.CommandStackEvent",init:function(s,n,r,u){this.stack=s,this.command=n,this.details=r,this.action=u},getStack:function(){return this.stack},getCommand:function(){return this.command},getDetails:function(){return this.details},isPostChangeEvent:function(){return 0!=(this.getDetails()&a.default.command.CommandStack.POST_MASK)},isPreChangeEvent:function(){return 0!=(this.getDetails()&a.default.command.CommandStack.PRE_MASK)}})},
1"./src/command/CommandStackEventListener.js":function(h,y,c){"use strict";(function v(t){return t&&t.__esModule?t:{default:t}})(c("./src/packages.js")).default.command.CommandStackEventListener=Class.extend({NAME:"draw2d.command.CommandStackEventListener",init:function(){},stackChanged:function(s){}})},
1"./src/command/CommandType.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandType=Class.extend({NAME:"draw2d.command.CommandType",init:function(s){this.policy=s},getPolicy:function(){return this.policy}}),a.default.command.CommandType.DELETE="DELETE",a.default.command.CommandType.MOVE="MOVE",a.default.command.CommandType.CONNECT="CONNECT",a.default.command.CommandType.MOVE_BASEPOINT="MOVE_BASEPOINT",a.default.command.CommandType.MOVE_VERTEX="MOVE_VERTEX",a.default.command.CommandType.MOVE_VERTICES="MOVE_VERTICES",a.default.command.CommandType.MOVE_GHOST_VERTEX="MOVE_GHOST_VERTEX",a.default.command.CommandType.RESIZE="RESIZE",a.default.command.CommandType.RESET="RESET",a.default.command.CommandType.ROTATE="ROTATE"},
1"./src/command/CommandUngroup.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.command.CommandUngroup=a.default.command.Command.extend({NAME:"draw2d.command.CommandUngroup",init:function(s,n){this._super(a.default.Configuration.i18n.command.ungroupShapes),this.group=n instanceof a.default.Selection?n.getAll().first():n,this.canvas=s,this.figures=this.group.getAssignedFigures().clone()},canExecute:function(){return!this.figures.isEmpty()},execute:function(){this.redo()},undo:function(){var s=this;this.figures.each(function(n,r){s.group.assignFigure(r)}),this.canvas.add(this.group),this.canvas.setCurrentSelection(this.group)},redo:function(){var s=this;this.figures.each(function(n,r){s.group.unassignFigure(r)}),this.canvas.setCurrentSelection(this.figures),this.canvas.remove(this.group)}})},
1"./src/css/contextmenu.css":function(h,y,c){var d=c("./node_modules/css-loader/index.js!./src/css/contextmenu.css");"string"==typeof d&&(d=[[h.i,d,""]]);c("./node_modules/style-loader/lib/addStyles.js")(d,{hmr:!0,transform:void 0,insertInto:void 0}),d.locals&&(h.exports=d.locals)},
1"./src/decoration/connection/ArrowDecorator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.decoration.connection.ArrowDecorator=a.default.decoration.connection.Decorator.extend({NAME:"draw2d.decoration.connection.ArrowDecorator",init:function(s,n){this._super(s,n)},paint:function(s){var n=s.set();return n.push(s.path(["M0 0","L",this.width," ",-this.height/2,"L",this.width," ",this.height/2,"L0 0"].join(""))),n.attr({fill:this.backgroundColor.rgba()}),n}})},
1"./src/decoration/connection/BarDecorator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.decoration.connection.BarDecorator=a.default.decoration.connection.Decorator.extend({NAME:"draw2d.decoration.connection.BarDecorator",init:function(s,n){this._super(s,n)},paint:function(s){var n=s.set(),r=["M",this.width/2," ",-this.height/2];return r.push("L",this.width/2," ",this.height/2),n.push(s.path(r.join(""))),n.attr({fill:this.backgroundColor.rgba()}),n}})},
1"./src/decoration/connection/CircleDecorator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.decoration.connection.CircleDecorator=a.default.decoration.connection.Decorator.extend({NAME:"draw2d.decoration.connection.CircleDecorator",init:function(s,n){this._super(s,n)},paint:function(s){var n=s.set();return n.push(s.circle(0,0,this.width/2)),n.attr({fill:this.backgroundColor.rgba()}),n}})},
1"./src/decoration/connection/Decorator.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/Color.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.decoration.connection.Decorator=Class.extend({NAME:"draw2d.decoration.connection.Decorator",init:function(r,u){this.width=void 0===r||r<1?20:r,this.height=void 0===u||u<1?15:u,this.parent=null,this.color=null,this.backgroundColor=new t.default(250,250,250)},paint:function(r){},setParent:function(r){this.parent=r},setColor:function(r){return this.color=new t.default(r),null!==this.parent&&this.parent.repaint(),this},getColor:function(){return this.color},setBackgroundColor:function(r){return this.backgroundColor=new t.default(r),null!==this.parent&&this.parent.repaint(),this},getBackgroundColor:function(){return this.backgroundColor},setDimension:function(r,u){return this.width=r,this.height=u,this}})},
1"./src/decoration/connection/DiamondDecorator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.decoration.connection.DiamondDecorator=a.default.decoration.connection.Decorator.extend({NAME:"draw2d.decoration.connection.DiamondDecorator",init:function(s,n){this._super(s,n)},paint:function(s){var n=s.set();return n.push(s.path(["M",this.width/2," ",-this.height/2,"L",this.width," ",0,"L",this.width/2," ",this.height/2,"L",0," ",0,"L",this.width/2," ",-this.height/2,"Z"].join(""))),n.attr({fill:this.backgroundColor.rgba()}),n}})},
1"./src/geo/Line.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.geo.Line={inverseLerp:function(s,n,r,u,l,p){var x=Math.abs(r-s),m=Math.abs(r-l);return 0===x&&(x=Math.abs(u-n),m=Math.abs(u-p),0===x)?1:m/x},pointProjection:function(s,n,r,u,l,p){var x=new a.default.geo.Point(0,0);s===r&&n===u&&(s-=1e-5);var w,C,k,M,m=(l-s)*(r-s)+(p-n)*(u-n),g=Math.pow(r-s,2)+Math.pow(u-n,2);return x.x=s+(m/=g)*(r-s),x.y=n+m*(u-n),w=Math.min(s,r),C=Math.max(s,r),k=Math.min(n,u),M=Math.max(n,u),x.x>=w&&x.x<=C&&x.y>=k&&x.y<=M?x:null},distance:function(s,n,r,u,l,p){var x=(l-=s)*(r-=s)+(p-=n)*(u-=n),m=void 0;m=x<=0||(x=(l=r-l)*r+(p=u-p)*u)<=0?0:x*x/(r*r+u*u);var g=l*l+p*p-m;return g<0&&(g=0),Math.sqrt(g)}}},
1"./src/geo/Point.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.geo.Point=Class.extend({NAME:"draw2d.geo.Point",init:function(s,n){s instanceof a.default.geo.Point?(this.x=s.x,this.y=s.y):isNaN(parseFloat(s.x))||isNaN(parseFloat(s.y))?(this.x=s,this.y=n):(this.x=s.x,this.y=s.y),this.bx=null,this.by=null,this.bw=null,this.bh=null},setBoundary:function(s,n,r,u){return s instanceof a.default.geo.Rectangle?(this.bx=s.x,this.by=s.y,this.bw=s.w,this.bh=s.h):(this.bx=s,this.by=n,this.bw=r,this.bh=u),this.adjustBoundary(),this},adjustBoundary:function(){return null===this.bx||(this.x=Math.min(Math.max(this.bx,this.x),this.bw),this.y=Math.min(Math.max(this.by,this.y),this.bh)),this},translate:function(s,n){return this.x+=s,this.y+=n,this.adjustBoundary(),this},getX:function(){return this.x},getY:function(){return this.y},setX:function(s){return this.x=s,this.adjustBoundary(),this},setY:function(s){return this.y=s,this.adjustBoundary(),this},setPosition:function(s,n){return s instanceof a.default.geo.Point?(this.x=s.x,this.y=s.y):(this.x=s,this.y=n),this.adjustBoundary(),this},getPosition:function(s){var n=s.x-this.x,r=s.y-this.y;return Math.abs(n)>Math.abs(r)?n<0?a.default.geo.PositionConstants.WEST:a.default.geo.PositionConstants.EAST:r<0?a.default.geo.PositionConstants.NORTH:a.default.geo.PositionConstants.SOUTH},equals:function(s){return this.x===s.x&&this.y===s.y},distance:function(s){return Math.sqrt((this.x-s.x)*(this.x-s.x)+(this.y-s.y)*(this.y-s.y))},getDistance:function(s){return this.distance(s)},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},translated:function(s,n){var r=new a.default.geo.Point(s,n);return new a.default.geo.Point(this.x+r.x,this.y+r.y)},scale:function(s){return this.x*=s,this.y*=s,this.adjustBoundary(),this},scaled:function(s){return new a.default.geo.Point(this.x*s,this.y*s)},getScaled:function(s){return this.scaled(s)},getPersistentAttributes:function(){return{x:this.x,y:this.y}},setPersistentAttributes:function(s){return this.x=s.x,this.y=s.y,this},subtract:function(s){return new a.default.geo.Point(this.x-s.x,this.y-s.y)},dot:function(s){return this.x*s.x+this.y*s.y},cross:function(s){return this.x*s.y-this.y*s.x},lerp:function(s,n){return new a.default.geo.Point(this.x+(s.x-this.x)*n,this.y+(s.y-this.y)*n)},clone:function(){return new a.default.geo.Point(this.x,this.y)}})},
1"./src/geo/PositionConstants.js":function(h,y,c){"use strict";(function v(t){return t&&t.__esModule?t:{default:t}})(c("./src/packages.js")).default.geo.PositionConstants={NORTH:1,SOUTH:4,WEST:8,EAST:16}},
1"./src/geo/Ray.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.geo.Ray=a.default.geo.Point.extend({NAME:"draw2d.geo.Ray",init:function(s,n){this._super(s,n)},isHorizontal:function(){return 0!=this.x},similarity:function(s){return Math.abs(this.dot(s))},getAveraged:function(s){return new a.default.geo.Ray((this.x+s.x)/2,(this.y+s.y)/2)}})},
1"./src/geo/Rectangle.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.geo.Rectangle=a.default.geo.Point.extend({NAME:"draw2d.geo.Rectangle",init:function(s,n,r,u){s instanceof a.default.geo.Rectangle?(n=s.y,r=s.w,u=s.h,s=s.x):"number"==typeof s.x&&"number"==typeof s.y?(n=s.y,r=s.w|s.width,u=s.h|s.height,s=s.x):"number"==typeof s.top&&"number"==typeof s.left&&(n=s.top,r=s.w|s.width,u=s.h|s.height,s=s.left),this._super(s,n),this.w=r,this.h=u},adjustBoundary:function(){null!==this.bx&&(this.x=Math.min(Math.max(this.bx,this.x),this.bw-this.w),this.y=Math.min(Math.max(this.by,this.y),this.bh-this.h),this.w=Math.min(this.w,this.bw),this.h=Math.min(this.h,this.bh))},resize:function(s,n){return this.w+=s,this.h+=n,this.adjustBoundary(),this},scale:function(s,n){return this.w+=s,this.h+=n,this.x-=s/2,this.y-=n/2,this.adjustBoundary(),this},translate:function(s,n){var r=new a.default.geo.Point(s,n);return this.x+=r.x,this.y+=r.y,this.adjustBoundary(),this},translated:function(s,n){var r=new a.default.geo.Point(s,n);return new a.default.geo.Rectangle(this.x+r.x,this.y+r.y,this.w,this.h)},setBounds:function(s){return this.setPosition(s.x,s.y),this.w=s.w,this.h=s.h,this},isEmpty:function(){return this.w<=0||this.h<=0},getWidth:function(){return this.w},setWidth:function(s){return this.w=s,this.adjustBoundary(),this},getHeight:function(){return this.h},setHeight:function(s){return this.h=s,this.adjustBoundary(),this},getLeft:function(){return this.x},getRight:function(){return this.x+this.w},getTop:function(){return this.y},getBottom:function(){return this.y+this.h},getTopLeft:function(){return new a.default.geo.Point(this.x,this.y)},getTopCenter:function(){return new a.default.geo.Point(this.x+this.w/2,this.y)},getTopRight:function(){return new a.default.geo.Point(this.x+this.w,this.y)},getCenterLeft:function(){return new a.default.geo.Point(this.x,this.y+this.h/2)},getCenterRight:function(){return new a.default.geo.Point(this.x+this.w,this.y+this.h/2)},getBottomLeft:function(){return new a.default.geo.Point(this.x,this.y+this.h)},getBottomCenter:function(){return new a.default.geo.Point(this.x+this.w/2,this.y+this.h)},getCenter:function(){return new a.default.geo.Point(this.x+this.w/2,this.y+this.h/2)},getBottomRight:function(){return new a.default.geo.Point(this.x+this.w,this.y+this.h)},getVertices:function(){var s=new a.default.util.ArrayList;return s.add(this.getTopLeft()),s.add(this.getTopRight()),s.add(this.getBottomRight()),s.add(this.getBottomLeft()),s},moveInside:function(s){var n=new a.default.geo.Rectangle(s.x,s.y,s.w,s.h);return n.x=Math.max(n.x,this.x),n.y=Math.max(n.y,this.y),n.x=n.w<this.w?Math.min(n.x+n.w,this.x+this.w)-n.w:this.x,n.y=n.h<this.h?Math.min(n.y+n.h,this.y+this.h)-n.h:this.y,n},getDistance:function(s){var n=this.x,r=this.y,u=this.w,l=this.h,p=s.getX(),x=s.getY(),m=1,g=1;s instanceof a.default.geo.Rectangle&&(m=s.getWidth(),g=s.getHeight());var w=9;if(n+u<=p)w=r+l<=x?0:r>=x+g?6:7;else if(n>=p+m)w=r+l<=x?2:r>=x+g?4:3;else if(r+l<=x)w=1;else{if(!(r>=x+g))return 0;w=5}switch(w){case 0:return-((n=n+u-p)+(r=r+l-x));case 1:return-(r+l-x);case 2:return-((n=p+m-n)+(r=r+l-x));case 3:return-(p+m-n);case 4:return-((n=p+m-n)+(r=x+g-r));case 5:return-(x+g-r);case 6:return-((n=n+u-p)+(r=x+g-r));case 7:return-(n+u-p)}throw"Unknown data type of parameter for distance calculation in draw2d.geo.Rectangle.getDistance(..)"},determineOctant:function(s){var r=this.x+3,u=this.y+3,p=this.h-6,x=s.x,m=s.y,g=2,w=2;return s instanceof a.default.geo.Rectangle&&(g=s.w,w=s.h),x+g<=r?m+w<=u?0:m>=u+p?6:7:x>=r+(this.w-6)?m+w<=u?2:m>=u+p?4:3:m+w<=u?1:m>=u+p?5:8},getDirection:function(s){var n=this.getTopLeft();switch(this.determineOctant(s)){case 0:return n.x-s.x<n.y-s.y?a.default.geo.Rectangle.DIRECTION_UP:a.default.geo.Rectangle.DIRECTION_LEFT;case 1:return a.default.geo.Rectangle.DIRECTION_UP;case 2:return n=this.getTopRight(),s.x-n.x<n.y-s.y?a.default.geo.Rectangle.DIRECTION_UP:a.default.geo.Rectangle.DIRECTION_RIGHT;case 3:return a.default.geo.Rectangle.DIRECTION_RIGHT;case 4:return n=this.getBottomRight(),s.x-n.x<s.y-n.y?a.default.geo.Rectangle.DIRECTION_DOWN:a.default.geo.Rectangle.DIRECTION_RIGHT;case 5:return a.default.geo.Rectangle.DIRECTION_DOWN;case 6:return(n=this.getBottomLeft()).x-s.x<s.y-n.y?a.default.geo.Rectangle.DIRECTION_DOWN:a.default.geo.Rectangle.DIRECTION_LEFT;case 7:return a.default.geo.Rectangle.DIRECTION_LEFT;case 8:return s.y>this.y?a.default.geo.Rectangle.DIRECTION_DOWN:a.default.geo.Rectangle.DIRECTION_UP}return a.default.geo.Rectangle.DIRECTION_UP},equals:function(s){return this.x==s.x&&this.y==s.y&&this.w==s.w&&this.h==s.h},hitTest:function(s,n){s instanceof a.default.geo.Point&&(n=s.y,s=s.x);var r=this.x+this.getWidth(),u=this.y+this.getHeight();return s>=this.x&&s<=r&&n>=this.y&&n<=u},isInside:function(s){return s.hitTest(this.getTopLeft())&&s.hitTest(this.getTopRight())&&s.hitTest(this.getBottomLeft())&&s.hitTest(this.getBottomRight())},contains:function(s){return this.hitTest(s.getTopLeft())&&this.hitTest(s.getTopRight())&&this.hitTest(s.getBottomLeft())&&this.hitTest(s.getBottomRight())},intersects:function(s){var n=s.x,r=s.y,l=s.y+s.h,p=this.x,x=this.y,g=this.y+this.h;return Math.max(0,Math.min(s.x+s.w,this.x+this.w)-Math.max(n,p))*Math.max(0,Math.min(l,g)-Math.max(r,x))!=0},merge:function(s){var n=Math.max(s.getRight(),this.getRight()),r=Math.max(s.getBottom(),this.getBottom());return this.setPosition(Math.min(this.x,s.x),Math.min(this.y,s.y)),this.w=n-this.x,this.h=r-this.y,this},intersectionWithLine:function(s,n){var r=new a.default.util.ArrayList,u=this.getVertices();u.add(u.first());for(var l=u.first(),p=null,x=1;x<5;x++)p=u.get(x),null!==(l=a.default.shape.basic.Line.intersection(s,n,l,p))&&r.add(l),l=p;return r},clone:function(){return new a.default.geo.Rectangle(this.x,this.y,this.w,this.h)},toJSON:function(){return{width:this.w,height:this.h,x:this.x,y:this.y}}}),a.default.geo.Rectangle.DIRECTION_UP=0,a.default.geo.Rectangle.DIRECTION_RIGHT=1,a.default.geo.Rectangle.DIRECTION_DOWN=2,a.default.geo.Rectangle.DIRECTION_LEFT=3},
1"./src/geo/Util.js":function(h,y,c){"use strict";(function v(t){return t&&t.__esModule?t:{default:t}})(c("./src/packages.js")).default.geo.Util={insetPoint:function(s,n,r){if(s.equals(n))return s;var u=s.x-n.x,l=s.y-n.y,p=Math.sqrt(u*u+l*l),x=Math.min(p/2,r);return{x:n.x+u/p*(p-x),y:n.y+l/p*(p-x)}}}},
1"./src/index.js":function(h,y,c){"use strict";var a=l(c("./src/packages.js"));function l(p){return p&&p.__esModule?p:{default:p}}l(c("./src/lib/raphael.exec.js")),l(c("./src/lib/Class.exec.js")),l(c("./src/lib/pathfinding.exec.js")),h.exports=a.default,c("./src/util/raphael_ext.js"),c("./src/util/Polyfill.js"),c("./src/util/Base64.js"),c("./src/util/Debug.js"),c("./src/util/ArrayList.js"),c("./src/util/SVGUtil.js"),c("./src/util/spline/Spline.js"),c("./src/util/spline/CubicSpline.js"),c("./src/util/spline/CatmullRomSpline.js"),c("./src/util/spline/BezierSpline.js"),c("./src/geo/PositionConstants.js"),c("./src/geo/Point.js"),c("./src/geo/Rectangle.js"),c("./src/geo/Util.js"),c("./src/geo/Ray.js"),c("./src/geo/Line.js"),c("./src/command/CommandType.js"),c("./src/command/Command.js"),c("./src/command/CommandCollection.js"),c("./src/command/CommandStack.js"),c("./src/command/CommandStackEvent.js"),c("./src/command/CommandStackEventListener.js"),c("./src/command/CommandMove.js"),c("./src/command/CommandAttr.js"),c("./src/command/CommandMoveLine.js"),c("./src/command/CommandMoveConnection.js"),c("./src/command/CommandMoveVertex.js"),c("./src/command/CommandMoveVertices.js"),c("./src/command/CommandResize.js"),c("./src/command/CommandRotate.js"),c("./src/command/CommandConnect.js"),c("./src/command/CommandReconnect.js"),c("./src/command/CommandDelete.js"),c("./src/command/CommandDeleteGroup.js"),c("./src/command/CommandAdd.js"),c("./src/command/CommandGroup.js"),c("./src/command/CommandUngroup.js"),c("./src/command/CommandAddVertex.js"),c("./src/command/CommandAssignFigure.js"),c("./src/command/CommandBoundingBox.js"),c("./src/command/CommandRemoveVertex.js"),c("./src/command/CommandReplaceVertices.js"),c("./src/layout/connection/ConnectionRouter.js"),c("./src/layout/connection/DirectRouter.js"),c("./src/layout/connection/RubberbandRouter.js"),c("./src/layout/connection/VertexRouter.js"),c("./src/layout/connection/ManhattanConnectionRouter.js"),c("./src/layout/connection/ManhattanBridgedConnectionRouter.js"),c("./src/layout/connection/InteractiveManhattanConnectionRouter.js"),c("./src/layout/connection/CircuitConnectionRouter.js"),c("./src/layout/connection/SplineConnectionRouter.js"),c("./src/layout/connection/FanConnectionRouter.js"),c("./src/layout/connection/MazeConnectionRouter.js"),c("./src/layout/connection/MuteableManhattanConnectionRouter.js"),c("./src/layout/connection/SketchConnectionRouter.js"),c("./src/layout/mesh/MeshLayouter.js"),c("./src/layout/mesh/ExplodeLayouter.js"),c("./src/layout/mesh/ProposedMeshChange.js"),c("./src/layout/locator/Locator.js"),c("./src/layout/locator/PortLocator.js"),c("./src/layout/locator/DraggableLocator.js"),c("./src/layout/locator/SmartDraggableLocator.js"),c("./src/layout/locator/XYAbsPortLocator.js"),c("./src/layout/locator/XYRelPortLocator.js"),c("./src/layout/locator/InputPortLocator.js"),c("./src/layout/locator/OutputPortLocator.js"),c("./src/layout/locator/ConnectionLocator.js"),c("./src/layout/locator/ManhattanMidpointLocator.js"),c("./src/layout/locator/PolylineMidpointLocator.js"),c("./src/layout/locator/ParallelMidpointLocator.js"),c("./src/layout/locator/TopLocator.js"),c("./src/layout/locator/BottomLocator.js"),c("./src/layout/locator/LeftLocator.js"),c("./src/layout/locator/RightLocator.js"),c("./src/layout/locator/CenterLocator.js"),c("./src/policy/EditPolicy.js"),c("./src/policy/canvas/CanvasPolicy.js"),c("./src/policy/canvas/ZoomPolicy.js"),c("./src/policy/canvas/WheelZoomPolicy.js"),c("./src/policy/canvas/KeyboardPolicy.js"),c("./src/policy/canvas/DefaultKeyboardPolicy.js"),c("./src/policy/canvas/ExtendedKeyboardPolicy.js"),c("./src/policy/canvas/SelectionPolicy.js"),c("./src/policy/canvas/SingleSelectionPolicy.js"),c("./src/policy/canvas/GhostMoveSelectionPolicy.js"),c("./src/policy/canvas/PanningSelectionPolicy.js"),c("./src/policy/canvas/BoundingboxSelectionPolicy.js"),c("./src/policy/canvas/ReadOnlySelectionPolicy.js"),c("./src/policy/canvas/DecorationPolicy.js"),c("./src/policy/canvas/FadeoutDecorationPolicy.js"),c("./src/policy/canvas/CoronaDecorationPolicy.js"),c("./src/policy/canvas/SnapToEditPolicy.js"),c("./src/policy/canvas/ShowDimetricGridEditPolicy.js"),c("./src/policy/canvas/SnapToDimetricGridEditPolicy.js"),c("./src/policy/canvas/ShowGridEditPolicy.js"),c("./src/policy/canvas/SnapToGri
1dEditPolicy.js"),c("./src/policy/canvas/ShowDotEditPolicy.js"),c("./src/policy/canvas/ShowChessboardEditPolicy.js"),c("./src/policy/canvas/SnapToGeometryEditPolicy.js"),c("./src/policy/canvas/SnapToVerticesEditPolicy.js"),c("./src/policy/canvas/SnapToInBetweenEditPolicy.js"),c("./src/policy/canvas/SnapToCenterEditPolicy.js"),c("./src/policy/canvas/DropInterceptorPolicy.js"),c("./src/policy/connection/ConnectionCreatePolicy.js"),c("./src/policy/connection/ComposedConnectionCreatePolicy.js"),c("./src/policy/connection/ClickConnectionCreatePolicy.js"),c("./src/policy/connection/OrthogonalConnectionCreatePolicy.js"),c("./src/policy/connection/DragConnectionCreatePolicy.js"),c("./src/policy/figure/FigureEditPolicy.js"),c("./src/policy/figure/DragDropEditPolicy.js"),c("./src/policy/figure/RegionEditPolicy.js"),c("./src/policy/figure/HorizontalEditPolicy.js"),c("./src/policy/figure/VerticalEditPolicy.js"),c("./src/policy/figure/SelectionPolicy.js"),c("./src/policy/figure/SelectionFeedbackPolicy.js"),c("./src/policy/figure/ResizeSelectionFeedbackPolicy.js"),c("./src/policy/figure/RectangleSelectionFeedbackPolicy.js"),c("./src/policy/figure/BigRectangleSelectionFeedbackPolicy.js"),c("./src/policy/figure/RoundRectangleSelectionFeedbackPolicy.js"),c("./src/policy/figure/BusSelectionFeedbackPolicy.js"),c("./src/policy/figure/WidthSelectionFeedbackPolicy.js"),c("./src/policy/figure/VBusSelectionFeedbackPolicy.js"),c("./src/policy/figure/HBusSelectionFeedbackPolicy.js"),c("./src/policy/figure/AntSelectionFeedbackPolicy.js"),c("./src/policy/figure/GlowSelectionFeedbackPolicy.js"),c("./src/policy/figure/SlimSelectionFeedbackPolicy.js"),c("./src/policy/figure/VertexSelectionFeedbackPolicy.js"),c("./src/policy/line/LineSelectionFeedbackPolicy.js"),c("./src/policy/line/VertexSelectionFeedbackPolicy.js"),c("./src/policy/line/OrthogonalSelectionFeedbackPolicy.js"),c("./src/policy/port/PortFeedbackPolicy.js"),c("./src/policy/port/ElasticStrapFeedbackPolicy.js"),c("./src/policy/port/IntrusivePortsFeedbackPolicy.js"),c("./src/Configuration.js"),c("./src/HeadlessCanvas.js"),c("./src/Canvas.js"),c("./src/Selection.js"),c("./src/Figure.js"),c("./src/shape/node/Node.js"),c("./src/VectorFigure.js"),c("./src/shape/basic/Rectangle.js"),c("./src/SetFigure.js"),c("./src/SVGFigure.js"),c("./src/shape/node/Hub.js"),c("./src/shape/node/HorizontalBus.js"),c("./src/shape/node/VerticalBus.js"),c("./src/shape/node/Fulcrum.js"),c("./src/shape/basic/Arc.js"),c("./src/shape/basic/Oval.js"),c("./src/shape/basic/Circle.js"),c("./src/shape/basic/Label.js"),c("./src/shape/basic/Text.js"),c("./src/shape/basic/Line.js"),c("./src/shape/basic/PolyLine.js"),c("./src/shape/basic/Image.js"),c("./src/shape/basic/Polygon.js"),c("./src/shape/basic/Diamond.js"),c("./src/shape/dimetric/Rectangle.js"),c("./src/shape/composite/Composite.js"),c("./src/shape/composite/StrongComposite.js"),c("./src/shape/composite/Group.js"),c("./src/shape/composite/Jailhouse.js"),c("./src/shape/composite/WeakComposite.js"),c("./src/shape/composite/Raft.js"),c("./src/Connection.js"),c("./src/VectorFigure.js"),c("./src/ResizeHandle.js"),c("./src/shape/basic/LineResizeHandle.js"),c("./src/shape/basic/LineStartResizeHandle.js"),c("./src/shape/basic/LineEndResizeHandle.js"),c("./src/shape/basic/VertexResizeHandle.js"),c("./src/shape/basic/GhostVertexResizeHandle.js"),c("./src/Port.js"),c("./src/InputPort.js"),c("./src/OutputPort.js"),c("./src/HybridPort.js"),c("./src/layout/anchor/ConnectionAnchor.js"),c("./src/layout/anchor/ChopboxConnectionAnchor.js"),c("./src/layout/anchor/FanConnectionAnchor.js"),c("./src/layout/anchor/ShortesPathConnectionAnchor.js"),c("./src/layout/anchor/CenterEdgeConnectionAnchor.js"),c("./src/shape/arrow/CalligrapherArrowLeft.js"),c("./src/shape/arrow/CalligrapherArrowDownLeft.js"),c("./src/shape/node/Start.js"),c("./src/shape/node/End.js"),c("./src/shape/node/Between.js"),c("./src/shape/note/PostIt.js"),c("./src/shape/flowchart/Document.js"),c("./src/shape/widget/Widget.js"),c("./src/shape/widget/Slider.js"),c("./src/shape/diagram/Diagram.js"),c("./src/shape/diagram/Pie.js"),c("./src/shape/diagram/Sparkline.js"),c("./src/shape/analog/OpAmp.js"),c("./src/shape/analog/ResistorBridge.js"),c("./src/shape/analog/ResistorVertical.js"),c("./src/shape/analog/VoltageSupplyHorizontal.js"),c("./src/shape/analog/VoltageSupplyVertical.js"),c("./src/shape/layout/Layout.js"),c("./src/shape/layout/HorizontalLayout.js"),c("./src/shape/layout/VerticalLayout.js"),c("./src/shape/layout/TableLayout.js"),c("./src/shape/layout/FlexGridLayout.js"),c("./src/shape/layout/StackLayout.js"),c("./src/shape/icon/Icon.js"),c("./src/shape/icon/Thunder.js"),c("./src/shape/icon/Snow.js"),c("./src/shape/icon/Hail.js"),c("./src/shape/icon/Rain.js"),c("./src/shape/icon/Cloudy.js"),c("./src/shape/icon/Sun.js"),c("./src/shape/icon/Undo.js"),c("./src/shape/icon/Detour.js"),c("./src/shape/icon/Merge.js"),c("./src/shape/icon/Split.js"),c("./src/shape/icon/Fork.js"),c("./src/shape/icon/ForkAlt.js"),c("./src/shape/icon/Exchange.js"),c("./src/shape/icon/Shuffle.js"),c("./src/shape/icon/Refresh.js"),
1c("./src/shape/icon/Ccw.js"),c("./src/shape/icon/Acw.js"),c("./src/shape/icon/Contract.js"),c("./src/shape/icon/Expand.js"),c("./src/shape/icon/Stop.js"),c("./src/shape/icon/End.js"),c("./src/shape/icon/Start.js"),c("./src/shape/icon/Ff.js"),c("./src/shape/icon/Rw.js"),c("./src/shape/icon/ArrowRight.js"),c("./src/shape/icon/ArrowLeft.js"),c("./src/shape/icon/ArrowUp.js"),c("./src/shape/icon/ArrowDown.js"),c("./src/shape/icon/ArrowLeft2.js"),c("./src/shape/icon/ArrowRight2.js"),c("./src/shape/icon/Smile2.js"),c("./src/shape/icon/Smile.js"),c("./src/shape/icon/Alarm.js"),c("./src/shape/icon/Clock.js"),c("./src/shape/icon/StopWatch.js"),c("./src/shape/icon/History.js"),c("./src/shape/icon/Future.js"),c("./src/shape/icon/GlobeAlt2.js"),c("./src/shape/icon/GlobeAlt.js"),c("./src/shape/icon/Globe.js"),c("./src/shape/icon/Warning.js"),c("./src/shape/icon/Code.js"),c("./src/shape/icon/Pensil.js"),c("./src/shape/icon/Pen.js"),c("./src/shape/icon/Plus.js"),c("./src/shape/icon/Minus.js"),c("./src/shape/icon/TShirt.js"),c("./src/shape/icon/Sticker.js"),c("./src/shape/icon/Page2.js"),c("./src/shape/icon/Page.js"),c("./src/shape/icon/Landscape1.js"),
1c("./src/shape/icon/Landscape2.js"),c("./src/shape/icon/Plugin.js"),c("./src/shape/icon/Bookmark.js"),c("./src/shape/icon/Hammer.js"),c("./src/shape/icon/Users.js"),c("./src/shape/icon/User.js"),c("./src/shape/icon/Customer.js"),c("./src/shape/icon/Employee.js"),c("./src/shape/icon/Anonymous.js"),c("./src/shape/icon/Skull.js"),c("./src/shape/icon/Mail.js"),c("./src/shape/icon/Picture.js"),c("./src/shape/icon/Bubble.js"),c("./src/shape/icon/CodeTalk.js"),c("./src/shape/icon/Talkq.js"),c("./src/shape/icon/Talke.js"),c("./src/shape/icon/Home.js"),c("./src/shape/icon/Lock.js"),c("./src/shape/icon/Clip.js"),c("./src/shape/icon/Star.js"),c("./src/shape/icon/StarOff.js"),c("./src/shape/icon/Star2.js"),c("./src/shape/icon/Star2Off.js"),c("./src/shape/icon/Star3.js"),c("./src/shape/icon/Star3Off.js"),c("./src/shape/icon/Chat.js"),c("./src/shape/icon/Quote.js"),c("./src/shape/icon/Gear2.js"),c("./src/shape/icon/Gear.js"),c("./src/shape/icon/Wrench.js"),c("./src/shape/icon/Wrench2.js"),c("./src/shape/icon/Wrench3.js"),c("./src/shape/icon/ScrewDriver.js"),c("./src/shape/icon/HammerAndScrewDriver.js"),c("./src/shape/icon/Magic.js"),c("./src/shape/icon/Download.js"),c("./src/shape/icon/View.js"),c("./src/shape/icon/Noview.js"),c("./src/shape/icon/Cloud.js"),c("./src/shape/icon/Cloud2.js"),c("./src/shape/icon/CloudDown.js"),c("./src/shape/icon/CloudUp.js"),c("./src/shape/icon/Location.js"),c("./src/shape/icon/Volume0.js"),c("./src/shape/icon/Volume1.js"),c("./src/shape/icon/Volume2.js"),c("./src/shape/icon/Volume3.js"),c("./src/shape/icon/Key.js"),c("./src/shape/icon/Ruler.js"),c("./src/shape/icon/Power.js"),c("./src/shape/icon/Unlock.js"),c("./src/shape/icon/Flag.js"),c("./src/shape/icon/Tag.js"),c("./src/shape/icon/Search.js"),c("./src/shape/icon/ZoomOut.js"),c("./src/shape/icon/ZoomIn.js"),c("./src/shape/icon/Cross.js"),c("./src/shape/icon/Check.js"),c("./src/shape/icon/Settings.js"),c("./src/shape/icon/SettingsAlt.js"),c("./src/shape/icon/Feed.js"),c("./src/shape/icon/Bug.js"),c("./src/shape/icon/Link.js"),c("./src/shape/icon/Calendar.js"),c("./src/shape/icon/Picker.js"),c("./src/shape/icon/No.js"),c("./src/shape/icon/CommandLine.js"),c("./src/shape/icon/Photo.js"),c("./src/shape/icon/Printer.js"),c("./src/shape/icon/Export.js"),c("./src/shape/icon/Import.js"),c("./src/shape/icon/Run.js"),c("./src/shape/icon/Magnet.js"),c("./src/shape/icon/NoMagnet.js"),c("./src/shape/icon/ReflectH.js"),c("./src/shape/icon/ReflectV.js"),c("./src/shape/icon/Resize2.js"),c("./src/shape/icon/Rotate.js"),c("./src/shape/icon/Connect.js"),c("./src/shape/icon/Disconnect.js"),c("./src/shape/icon/Folder.js"),c("./src/shape/icon/Man.js"),c("./src/shape/icon/Woman.js"),c("./src/shape/icon/People.js"),c("./src/shape/icon/Parent.js"),c("./src/shape/icon/Notebook.js"),c("./src/shape/icon/Diagram.js"),c("./src/shape/icon/BarChart.js"),c("./src/shape/icon/PieChart.js"),c("./src/shape/icon/LineChart.js"),c("./src/shape/icon/Apps.js"),c("./src/shape/icon/Locked.js"),c("./src/shape/icon/Ppt.js"),c("./src/shape/icon/Lab.js"),c("./src/shape/icon/Umbrella.js"),c("./src/shape/icon/Dry.js"),c("./src/shape/icon/Ipad.js"),c("./src/shape/icon/Iphone.js"),c("./src/shape/icon/Jigsaw.js"),c("./src/shape/icon/Lamp.js"),c("./src/shape/icon/Lamp_alt.js"),c("./src/shape/icon/Video.js"),c("./src/shape/icon/Palm.js"),c("./src/shape/icon/Fave.js"),c("./src/shape/icon/Help.js"),c("./src/shape/icon/Crop.js"),c("./src/shape/icon/BioHazard.js"),c("./src/shape/icon/WheelChair.js"),c("./src/shape/icon/Mic.js"),c("./src/shape/icon/MicMute.js"),c("./src/shape/icon/IMac.js"),c("./src/shape/icon/Pc.js"),c("./src/shape/icon/Cube.js"),c("./src/shape/icon/FullCube.js"),c("./src/shape/icon/Font.js"),c("./src/shape/icon/Trash.js"),c("./src/shape/icon/NewWindow.js"),c("./src/shape/icon/DockRight.js"),c("./src/shape/icon/DockLeft.js"),c("./src/shape/icon/DockBottom.js"),c("./src/shape/icon/DockTop.js"),c("./src/shape/icon/Pallete.js"),c("./src/shape/icon/Cart.js"),c("./src/shape/icon/Glasses.js"),c("./src/shape/icon/Package.js"),c("./src/shape/icon/Book.js"),c("./src/shape/icon/Books.js"),c("./src/shape/icon/Icons.js"),c("./src/shape/icon/List.js"),c("./src/shape/icon/Db.
1js"),c("./src/shape/icon/Paper.js"),c("./src/shape/icon/TakeOff.js"),c("./src/shape/icon/Landing.js"),c("./src/shape/icon/Plane.js"),c("./src/shape/icon/Phone.js"),c("./src/shape/icon/HangUp.js"),c("./src/shape/icon/SlideShare.js"),c("./src/shape/icon/Twitter.js"),c("./src/shape/icon/TwitterBird.js"),c("./src/shape/icon/Skype.js"),c("./src/shape/icon/Windows.js"),c("./src/shape/icon/Apple.js"),c("./src/shape/icon/Linux.js"),c("./src/shape/icon/NodeJs.js"),c("./src/shape/icon/JQuery.js"),c("./src/shape/icon/Sencha.js"),c("./src/shape/icon/Vim.js"),c("./src/shape/icon/InkScape.js"),c("./src/shape/icon/Aumade.js"),c("./src/shape/icon/Firefox.js"),c("./src/shape/icon/Ie.js"),c("./src/shape/icon/Ie9.js"),c("./src/shape/icon/Opera.js"),c("./src/shape/icon/Chrome.js"),c("./src/shape/icon/Safari.js"),c("./src/shape/icon/LinkedIn.js"),c("./src/shape/icon/Flickr.js"),c("./src/shape/icon/GitHub.js"),c("./src/shape/icon/GitHubAlt.js"),c("./src/shape/icon/Raphael.js"),c("./src/shape/icon/GRaphael.js"),c("./src/shape/icon/Svg.js"),c("./src/shape/icon/Usb.js"),c("./src/shape/icon/Ethernet.js"),c("./src/shape/pert/Activity.js"),c("./src/shape/pert/Start.js"),c("./src/shape/state/Start.js"),c("./src/shape/state/End.js"),c("./src/shape/state/State.js"),c("./src/shape/state/Connection.js"),c("./src/ui/LabelEditor.js"),c("./src/ui/LabelInplaceEditor.js"),c("./src/decoration/connection/Decorator.js"),c("./src/decoration/connection/ArrowDecorator.js"),c("./src/decoration/connection/DiamondDecorator.js"),c("./src/decoration/connection/CircleDecorator.js"),c("./src/decoration/connection/BarDecorator.js"),c("./src/io/Reader.js"),c("./src/io/Writer.js"),c("./src/io/svg/Writer.js"),c("./src/io/png/Writer.js"),c("./src/io/json/Writer.js"),c("./src/io/json/Reader.js")},
1"./src/io/Reader.js":function(h,y,c){"use strict";(function v(t){return t&&t.__esModule?t:{default:t}})(c("./src/packages.js")).default.io.Reader=Class.extend({init:function(){},unmarshal:function(s,n){}})},
1"./src/io/Writer.js":function(h,y,c){"use strict";(function v(t){return t&&t.__esModule?t:{default:t}})(c("./src/packages.js")).default.io.Writer=Class.extend({init:function(){},marshal:function(s,n){if("function"!=typeof n)throw"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.";n("","")},formatXml:function(s){var n="",r=new RegExp("(>)(<)(/*)","g");s=s.replace(r,"$1\r\n$2$3");var u=0;return s.split("\r\n").forEach(function(l){var p=0;l.match(new RegExp(".+</w[^>]*>$"))?p=0:l.match(new RegExp("^</w"))?0!=u&&(u-=1):p=l.match(new RegExp("^<w[^>]*[^/]>.*$"))?1:0;for(var x="",m=0;m<u;m++)x+=" ";n+=x+l+"\r\n",u+=p}),n}})},
1"./src/io/json/Reader.js":function(module,exports,__webpack_require__){"use strict";var _packages=__webpack_require__("./src/packages.js"),_packages2=_interopRequireDefault(_packages);function _interopRequireDefault(h){return h&&h.__esModule?h:{default:h}}_packages2.default.io.json.Reader=_packages2.default.io.Reader.extend({NAME:"draw2d.io.json.Reader",init:function(){this._super()},unmarshal:function(y,c){var d=this,a=new _packages2.default.util.ArrayList;"string"==typeof c&&(c=JSON.parse(c));var v=null;return c.forEach(function(t){try{var s=d.createFigureFromElement(t)||d.createFigureFromType(t.type),n=null,r=null;for(var u in t){var l=t[u];if("source"===u){if(null===(v=y.getFigure(l.node)))throw"Source figure with id '"+l.node+"' not found";if(null===(n=v.getPort(l.port)))throw"Unable to find source port '"+l.port+"' at figure '"+l.node+"' to unmarschal '"+t.type+"'"}else if("target"===u){if(null===(v=y.getFigure(l.node)))throw"Target figure with id '"+l.node+"' not found";if(null===(r=v.getPort(l.port)))throw"Unable to find target port '"+l.port+"' at figure '"+l.node+"' to unmarschal '"+t.type+"'"}}null!==n&&null!==r&&(s.setSource(n),s.setTarget(r)),s.setPersistentAttributes(t),y.add(s),a.add(s)}catch(p){debug.error(t,"Unable to instantiate figure type '"+t.type+"' with id '"+t.id+"' during unmarshal by "+d.NAME+". Skipping figure.."),debug.error(p),debug.warn(t)}}),c.forEach(function(t){if(void 0!==t.composite){var s=y.getFigure(t.id);null===s&&(s=y.getLine(t.id)),y.getFigure(t.composite).assignFigure(s)}}),y.calculateConnectionIntersection(),y.getLines().each(function(t,s){s.svgPathString=null,s.repaint()}),y.linesToRepaintAfterDragDrop=y.getLines().clone(),y.showDecoration(),a},createFigureFromType:function createFigureFromType(type){return eval("new "+type+"()")},createFigureFromElement:function h(y){return null}})},
1"./src/io/json/Writer.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.io.json.Writer=a.default.io.Writer.extend({init:function(){this._super()},marshal:function(s,n){if("function"!=typeof n)throw"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.";var r=[];s.getFigures().each(function(l,p){r.push(p.getPersistentAttributes())}),s.getLines().each(function(l,p){r.push(p.getPersistentAttributes())});var u=a.default.util.Base64.encode(JSON.stringify(r,null,2));n(r,u)}})},
1"./src/io/png/Writer.js":function(h,y,c){"use strict";var a=function v(s){return s&&s.__esModule?s:{default:s}}(c("./src/packages.js")),t=c("./node_modules/canvg-browser/index.js");a.default.io.png.Writer=a.default.io.Writer.extend({init:function(){this._super()},marshal:function(n,r,u){if("function"!=typeof r)throw"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.";var l="",p=!1;if(n instanceof a.default.Figure){var x=n,m=x.getPosition();x.setPosition(1,1),l='<svg xmlns:xlink="http://www.w3.org/1999/xlink" >'+x.shape.node.outerHTML+"</svg>",x.setPosition(m),x.initialWidth=x.getWidth()+2,x.initialHeight=x.getHeight()+2}else p={zoom:n.getZoom(),scrollLeft:n.getScrollLeft(),scrollTop:n.getScrollTop()},n.setZoom(1),n.hideDecoration(),l=(new XMLSerializer).serializeToString(n.getHtmlContainer().find("svg")[0]);var g=$('<canvas id="canvas_png_export_for_draw2d"></canvas>');$("body").append(g);var w=$("#canvas_png_export_for_draw2d")[0];w.width=n.initialWidth,w.height=n.initialHeight,t("canvas_png_export_for_draw2d",l,{ignoreMouse:!0,ignoreAnimation:!0,renderCallback:function(){try{if(n instanceof a.default.Canvas&&(p&&(n.setZoom(p.zoom),n.setScrollLeft(p.scrollLeft),n.setScrollTop(p.scrollTop)),n.showDecoration()),void 0!==u){var k=u.x,M=u.y,N=u.w,O=u.h,_=document.createElement("canvas");_.width=N,_.height=O,_.getContext("2d").drawImage(w,k,M,N,O,0,0,N,O);var P=_.toDataURL("image/png"),A=P.replace("data:image/png;base64,","");r(P,A)}else{var T=w.toDataURL("image/png");r(T,T.replace("data:image/png;base64,",""))}}finally{g.remove()}}})}})},
1"./src/io/svg/Writer.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.io.svg.Writer=a.default.io.Writer.extend({init:function(){this._super()},marshal:function(s,n){if("function"!=typeof n)throw"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.";var r=s.getPrimarySelection();s.setCurrentSelection(null);var u=s.getHtmlContainer().html().replace(/>\s+/g,">").replace(/\s+</g,"<");u=(u=this.formatXml(u)).replace(/<desc>.*<\/desc>/g,"<desc>Create with draw2d JS graph library and RaphaelJS</desc>"),s.setCurrentSelection(r),n(u,a.default.util.Base64.encode(u))}})},
1"./src/layout/anchor/CenterEdgeConnectionAnchor.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.anchor.CenterEdgeConnectionAnchor=a.default.layout.anchor.ConnectionAnchor.extend({NAME:"draw2d.layout.anchor.CenterEdgeConnectionAnchor",init:function(s){this._super(s)},getLocation:function(s,n){var r=this.getOwner().getParent().getBoundingBox(),u=r.getDirection(s),l=r.getCenter();switch(u){case 0:l.y=r.y;break;case 1:l.x=r.x+r.w;break;case 2:l.y=r.y+r.h;break;case 3:l.x=r.x}return l},getBox:function(){return this.getOwner().getParent().getBoundingBox()},getReferencePoint:function(s){return this.getBox().getCenter()}})},
1"./src/layout/anchor/ChopboxConnectionAnchor.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.anchor.ChopboxConnectionAnchor=a.default.layout.anchor.ConnectionAnchor.extend({NAME:"draw2d.layout.anchor.ChopboxConnectionAnchor",init:function(s){this._super(s)},getLocation:function(s,n){var r=new a.default.geo.Rectangle(0,0);r.setBounds(this.getBox()),r.translate(-1,-1),r.resize(1,1);var u=r.getCenter();if(r.isEmpty()||s.x===u.x&&s.y===u.y)return u;var l=s.x-u.x,p=s.y-u.y,x=.5/Math.max(Math.abs(l)/r.w,Math.abs(p)/r.h);return u.translate(l*=x,p*=x),u},getBox:function(){return this.getOwner().getParent().getBoundingBox()},getReferencePoint:function(s){return this.getBox().getCenter()}})},
1"./src/layout/anchor/ConnectionAnchor.js":function(h,y,c){"use strict";(function v(t){return t&&t.__esModule?t:{default:t}})(c("./src/packages.js")).default.layout.anchor.ConnectionAnchor=Class.extend({NAME:"draw2d.layout.anchor.ConnectionAnchor",init:function(s){this.owner=s},getLocation:function(s,n){return this.getReferencePoint(n)},getOwner:function(){return this.owner},setOwner:function(s){if(void 0===s)throw"Missing parameter for 'owner' in ConnectionAnchor.setOwner";this.owner=s},getBox:function(){return this.getOwner().getAbsoluteBounds()},getReferencePoint:function(s){return this.getOwner().getAbsolutePosition()}})},
1"./src/layout/anchor/FanConnectionAnchor.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.anchor.FanConnectionAnchor=a.default.layout.anchor.ConnectionAnchor.extend({NAME:"draw2d.layout.anchor.FanConnectionAnchor",init:function(s,n){this._super(s),this.separation=n?parseInt(n):10},getLocation:function(s,n){var r=new a.default.geo.Rectangle(0,0);r.setBounds(this.getBox()),r.translate(-1,-1),r.resize(1,1);var u=r.getCenter();if(r.isEmpty()||s.x===u.x&&s.y===u.y)return u;var l=n.getSource(),p=n.getTarget(),x=this.getOwner().getConnections().clone();x.grep(function(I){return I.getTarget()===p&&I.getSource()===l||I.getTarget()===l&&I.getSource()===p});var w,m=x.indexOf(n)+1,g=u.getPosition(s);w=g===a.default.geo.PositionConstants.SOUTH||g===a.default.geo.PositionConstants.EAST?new a.default.geo.Point(s.x-u.x,s.y-u.y):new a.default.geo.Point(u.x-s.x,u.y-s.y);var C=Math.sqrt(w.x*w.x+w.y*w.y);m<=2&&(C*=1.5);var k=this.separation*w.x/C,M=this.separation*w.y/C;u=m%2==0?new a.default.geo.Point(u.x+m/2*(-1*M),u.y+m/2*k):new a.default.geo.Point(u.x+m/2*M,u.y+m/2*(-1*k));var N=this.getBox().intersectionWithLine(u,s);switch(N.getSize()){case 0:var O=this.getBox().getVertices(),_=O.first();return _.distance=s.distance(_),O.asArray().reduce(function(I,F){return F.distance=s.distance(F),F.distance<I.distance?F:I});case 1:return N.get(0);case 2:var P=N.get(0),A=N.get(1);return s.distance(P)<s.distance(A)?P:A}},getBox:function(){return this.getOwner().getParent().getBoundingBox()},getReferencePoint:function(s){return this.getBox().getCenter()}})},
1"./src/layout/anchor/ShortesPathConnectionAnchor.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.anchor.ShortesPathConnectionAnchor=a.default.layout.anchor.ConnectionAnchor.extend({NAME:"draw2d.layout.anchor.ShortesPathConnectionAnchor",init:function(s){this._super(s)},getLocation:function(s,n){var r=this.getOwner().getParent().getBoundingBox(),u=r.getCenter();if(this.getOwner().getParent()instanceof a.default.shape.basic.Oval){var l=this.getOwner().getParent().intersectionWithLine(s,u);if(1===l.getSize())return l.get(0)}switch(r.determineOctant(new a.default.geo.Rectangle(s.x,s.y,2,2))){case 0:return r.getTopLeft();case 1:return new a.default.geo.Point(s.x,r.getTop());case 2:return r.getTopRight();case 3:return new a.default.geo.Point(r.getRight(),s.y);case 4:return r.getBottomRight();case 5:return new a.default.geo.Point(s.x,r.getBottom());case 6:return r.getBottomLeft();case 7:return new a.default.geo.Point(r.getLeft(),s.y)}return r.getTopLeft()},getBox:function(){return this.getOwner().getParent().getBoundingBox()},getReferencePoint:function(s){return this.getBox().getCenter()}})},
1"./src/layout/connection/CircuitConnectionRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.CircuitConnectionRouter=a.default.layout.connection.ManhattanConnectionRouter.extend({NAME:"draw2d.layout.connection.CircuitConnectionRouter",init:function(){this._super(),this.setBridgeRadius(4),this.setVertexRadius(2),this.abortRoutingOnFirstVertexNode=!1},onInstall:function(s){s.installEditPolicy(new a.default.policy.line.LineSelectionFeedbackPolicy)},onUninstall:function(s){null!=s.vertexNodes&&(s.vertexNodes.remove(),s.vertexNodes=null)},setVertexRadius:function(s){return this.vertexRadius=s,this},setJunctionRadius:function(s){this.vertexRadius=s},setBridgeRadius:function(s){return this.bridgeRadius=s,this.bridge_LR=[" r",.5,-.5,s-s/2,-(s-s/4),s,-s,s+s/2,-(s-s/4),2*s,"0 "].join(" "),this.bridge_RL=[" r",-.5,-.5,-(s-s/2),-(s-s/4),-s,-s,-(s+s/2),-(s-s/4),2*-s,"0 "].join(" "),this},route:function(s,n){var r=this,u=s.getStartPoint(),l=s.getSource().getConnectionDirection(s.getTarget()),p=s.getEndPoint(),x=s.getTarget().getConnectionDirection(s.getSource());this._route(s,p,x,u,l);var m=s.getCanvas().getIntersection(s).sort("x"),g=m.clone().reverse(),w=m;null!=s.vertexNodes&&s.vertexNodes.remove(),s.vertexNodes=s.canvas.paper.set();for(var C=s.getVertices(),k=C.get(0),M=["M",.5+(0|k.x)," ",.5+(0|k.y)],N=k,O=null,_=null,P=null,A=1;A<C.getSize();A++)k=C.get(A),N.x>k.x?(w=g,_=this.bridge_RL,O=-this.bridgeRadius):(w=m,_=this.bridge_LR,O=this.bridgeRadius),w.each(function(T,L){if(!0===a.default.shape.basic.Line.hit(1,N.x,N.y,k.x,k.y,L.x,L.y))if(s.sharingPorts(L.other)){var I=L.other,F=I.getZOrder();if(s.getZOrder()<F){var q=s.canvas.paper.ellipse(L.x,L.y,r.vertexRadius,r.vertexRadius).attr({fill:s.lineColor.rgba()});s.vertexNodes.push(q),!0===r.abortRoutingOnFirstVertexNode&&((s.getSource()===I.getSource()||s.getSource()===I.getTarget())&&(M=["M",.5+(0|L.x)," ",.5+(0|L.y)],null!==P&&(P.remove(),s.vertexNodes.exclude(P))),P=q)}}else k.y===L.y&&(M.push(" L",.5+(L.x-O|0)," ",.5+(0|L.y)),M.push(_))}),M.push(" L",.5+(0|k.x)," ",.5+(0|k.y)),N=k;s.svgPathString=M.join("")}})},
1"./src/layout/connection/ConnectionRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.ConnectionRouter=Class.extend({NAME:"draw2d.layout.connection.ConnectionRouter",init:function(){},route:function(s,n){throw"subclasses must implement the method [ConnectionRouter.route]"},_paint:function(s){var r=s.getVertices(),u=r.get(0),l=s.getRadius(),p=["M",u.x," ",u.y],x=1,m=void 0,g=void 0,w=void 0;if(l>0){var C=u;for(m=r.getSize()-1;x<m;x++)u=r.get(x),g=a.default.geo.Util.insetPoint(u,C,l),p.push("L",g.x,",",g.y),w=r.get(x+1),g=a.default.geo.Util.insetPoint(u,w,l),p.push("Q",u.x,",",u.y," ",g.x,", ",g.y),C=u;u=r.get(x),p.push("L",u.x,",",u.y)}else for(m=r.getSize();x<m;x++)u=r.get(x),p.push("L",u.x,",",u.y);s.svgPathString=p.join("")},onInstall:function(s){},onUninstall:function(s){},canRemoveVertexAt:function(s){return!1},canRemoveSegmentAt:function(s){return!1},getPersistentAttributes:function(s,n){return n},setPersistentAttributes:function(s,n){},onDrag:function(s,n,r,u,l){},verticesSet:function(s){}})},
1"./src/layout/connection/DirectRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.DirectRouter=a.default.layout.connection.ConnectionRouter.extend({NAME:"draw2d.layout.connection.DirectRouter",init:function(){this._super()},onInstall:function(s){s.installEditPolicy(new a.default.policy.line.LineSelectionFeedbackPolicy)},invalidate:function(){},route:function(s,n){var r=s.getStartPosition(),u=s.getEndPosition();s.addPoint(r),s.addPoint(u);var l=["M",r.x," ",r.y];l.push("L",u.x," ",u.y),s.svgPathString=l.join("")}})},
1"./src/layout/connection/FanConnectionRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.FanConnectionRouter=a.default.layout.connection.DirectRouter.extend({NAME:"draw2d.layout.connection.FanConnectionRouter",init:function(){this._super()},onInstall:function(s){s.installEditPolicy(new a.default.policy.line.LineSelectionFeedbackPolicy)},route:function(s,n){var r=s.getSource().getConnections().clone();r.grep(function(u){return u.getTarget()===s.getTarget()||u.getSource()===s.getTarget()}),r.getSize()>1?this.routeCollision(s,r.indexOf(s)):this._super(s,n)},routeCollision:function(s,n){n+=1;var m,r=s.getStartPoint(),u=s.getEndPoint(),p=new a.default.geo.Point((u.x+r.x)/2,(u.y+r.y)/2),x=u.getPosition(r);m=x===a.default.geo.PositionConstants.SOUTH||x===a.default.geo.PositionConstants.EAST?new a.default.geo.Point(u.x-r.x,u.y-r.y):new a.default.geo.Point(r.x-u.x,r.y-u.y);var k,g=Math.sqrt(m.x*m.x+m.y*m.y),w=15*m.x/g,C=15*m.y/g;k=n%2==0?new a.default.geo.Point(p.x+n/2*(-1*C),p.y+n/2*w):new a.default.geo.Point(p.x+n/2*C,p.y+n/2*(-1*w)),s.addPoint(r),s.addPoint(k),s.addPoint(u),this._paint(s)}})},
1"./src/layout/connection/InteractiveManhattanConnectionRouter.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.layout.connection.InteractiveManhattanConnectionRouter=a.default.layout.connection.ManhattanConnectionRouter.extend({NAME:"draw2d.layout.connection.InteractiveManhattanConnectionRouter",init:function(){this._super()},onInstall:function(r){r.installEditPolicy(new a.default.policy.line.OrthogonalSelectionFeedbackPolicy),r._routingMetaData||(r._routingMetaData={routedByUserInteraction:!1,fromDir:-1,toDir:-1})},onUninstall:function(r){delete r._routingMetaData},route:function(r,u){0===u.oldVertices.getSize()||!1===r._routingMetaData.routedByUserInteraction?(this._super(r,u),r._routingMetaData.fromDir=r.getSource().getConnectionDirection(r.getTarget()),r._routingMetaData.toDir=r.getTarget().getConnectionDirection(r.getSource())):(this.halfRoute(r,u),this._paint(r))},halfRoute:function(r,u){var l=this.MINDIST,p=Math.max,x=Math.min,m=(u=u||{oldVertices:new a.default.util.ArrayList}).oldVertices,g=m.getSize(),w=r.getStartPosition(),C=r.getSource().getConnectionDirection(r.getTarget()),k=r.getEndPosition(),M=r.getTarget().getConnectionDirection(r.getSource());if((r._routingMetaData.fromDir!==C||r._routingMetaData.toDir!==M)&&(r._routingMetaData.routedByUserInteraction=!1,this.route(r,u)),(C===a.default.geo.Rectangle.DIRECTION_RIGHT&&M===a.default.geo.Rectangle.DIRECTION_LEFT&&w.x>k.x&&g<=4||2===r.getVertices().getSize()&&!0===r._routingMetaData.routedByUserInteraction)&&(r._routingMetaData.routedByUserInteraction=!1,this.route(r,u)),m.each(function(A,T){r.addPoint(T)}),!r.isInDragDrop){if(u.startMoved||!w.equals(m.get(0))){var N=m.get(1),O=m.get(2);switch(r.setVertex(0,w),C){case a.default.geo.Rectangle.DIRECTION_RIGHT:r.setVertex(1,p(w.x+l,N.x),w.y),O&&r.setVertex(2,p(w.x+l,N.x),O.y);break;case a.default.geo.Rectangle.DIRECTION_LEFT:r.setVertex(1,x(w.x-l,N.x),w.y),O&&r.setVertex(2,x(w.x-l,N.x),O.y);break;case a.default.geo.Rectangle.DIRECTION_UP:r.setVertex(1,w.x,x(w.y-l,N.y)),O&&r.setVertex(2,O.x,x(w.y-l,N.y));break;case a.default.geo.Rectangle.DIRECTION_DOWN:r.setVertex(1,w.x,p(w.y+l,N.y)),O&&r.setVertex(2,O.x,p(w.y+l,N.y))}}if(u.endMoved||!k.equals(m.get(g-1))){var _=m.get(g-2),P=m.get(g-3);switch(r.setVertex(g-1,k),M){case a.default.geo.Rectangle.DIRECTION_RIGHT:r.setVertex(g-2,p(k.x+l,_.x),k.y),P&&r.setVertex(g-3,p(k.x+l,_.x),P.y);break;case a.default.geo.Rectangle.DIRECTION_LEFT:r.setVertex(g-2,x(k.x-l,_.x),k.y),P&&r.setVertex(g-3,x(k.x-l,_.x),P.y);break;case a.default.geo.Rectangle.DIRECTION_UP:r.setVertex(g-2,k.x,x(k.y-l,_.y)),P&&r.setVertex(g-3,P.x,x(k.y-l,_.y));break;case a.default.geo.Rectangle.DIRECTION_DOWN:r.setVertex(g-2,k.x,p(k.y+l,_.y)),P&&r.setVertex(g-3,P.x,p(k.y+l,_.y))}}}},canRemoveSegmentAt:function(r,u){var l=r.getVertices().getSize()-1;if(u<=0||u+1>=l||l<4)return!1;var p=r.getStartPosition(),x=r.getSource().getConnectionDirection(r.getTarget()),m=r.getEndPosition(),g=r.getTarget().getConnectionDirection(r.getSource());if(l<=5){if(x===a.default.geo.Rectangle.DIRECTION_RIGHT&&g===a.default.geo.Rectangle.DIRECTION_LEFT&&p.x>=m.x||x==a.default.geo.Rectangle.DIRECTION_LEFT&g==a.default.geo.Rectangle.DIRECTION_RIGHT&&p.x<=m.x||x==a.default.geo.Rectangle.DIRECTION_UP&g==a.default.geo.Rectangle.DIRECTION_DOWN&&p.y<=m.y||x==a.default.geo.Rectangle.DIRECTION_DOWN&g==a.default.geo.Rectangle.DIRECTION_UP&&p.y>=m.y)return!1;var w=new a.default.Connection;if(w.lineSegments=new a.default.util.ArrayList,w.vertices=new a.default.util.ArrayList,w.sourcePort=r.sourcePort,w.targetPort=r.targetPort,w._routingMetaData={routedByUserInteraction:!1,fromDir:-1,toDir:-1},this.route(w,{oldVertices:new a.default.util.ArrayList}),r.getVertices().getSize()-1<=w.getVertices().getSize()-1)return!1}return!0},onDrag:function(r,u,l,p,x){var m=0;if(null!==r.draggedSegment){if(0!==r.draggedSegment.index&&r.draggedSegment.index!==r.getSegments().getSize()-1){r._routingMetaData.routedByUserInteraction=!0;var w=r.draggedSegment.start,C=r.draggedSegment.end;m=r.draggedSegment.index;
1var k=r.getVertices().first(),M=r.getVertices().last(),N=0;w.y===C.y?(1===m&&(N=w.y-k.y),m===r.getSegments().getSize()-2&&(N=C.y-M.y),N<0&&x>0?x=Math.min(x,-N-this.MINDIST):N>0&&x<0&&(x=-Math.min(-x,N-this.MINDIST)),r.getVertex(m).translate(0,x),r.getVertex(m+1).translate(0,x)):w.x===C.x&&(1===m&&((N=w.x-k.x)<0&&p>0?p=Math.min(p,-N-this.MINDIST):N>0&&p<0&&(p=-Math.min(-p,N-this.MINDIST))),m===r.getSegments().getSize()-2&&((N=C.x-M.x)<0&&p>0?p=Math.min(p,-N-this.MINDIST):N>0&&p<0&&(p=-Math.min(-p,N-this.MINDIST))),r.getVertex(m).translate(p,0),r.getVertex(m+1).translate(p,0))}}else{var g=r.getVertices().getSize()-1;for(m=1;m<g;m++)r.getVertex(m).translate(p,x)}},verticesSet:function(r){r._routingMetaData.routedByUserInteraction=!0,null!==r.getSource()&&null!==r.getTarget()&&(r._routingMetaData.fromDir=r.getSource().getConnectionDirection(r.getTarget()),r._routingMetaData.toDir=r.getTarget().getConnectionDirection(r.getSource()))},getPersistentAttributes:function(r,u){return u.vertex=[],r.getVertices().each(function(l,p){u.vertex.push({x:p.x,y:p.y})}),u.routingMetaData=(0,t.default)({},r._routingMetaData),u},setPersistentAttributes:function(r,u){Array.isArray(u.vertex)&&(r.oldPoint=null,r.lineSegments=new a.default.util.ArrayList,r.setVertices(u.vertex)),void 0!==u.routingMetaData&&(r._routingMetaData=(0,t.default)({},u.routingMetaData))}})},
1"./src/layout/connection/ManhattanBridgedConnectionRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.ManhattanBridgedConnectionRouter=a.default.layout.connection.ManhattanConnectionRouter.extend({NAME:"draw2d.layout.connection.ManhattanBridgedConnectionRouter",BRIDGE_HORIZONTAL_LR:" r 0 0 3 -4 7 -4 10 0 13 0 ",BRIDGE_HORIZONTAL_RL:" r 0 0 -3 -4 -7 -4 -10 0 -13 0 ",init:function(){this._super()},onInstall:function(s){s.installEditPolicy(new a.default.policy.line.LineSelectionFeedbackPolicy)},route:function(s,n){var r=this,u=s.getStartPoint(),l=s.getSource().getConnectionDirection(s.getTarget()),p=s.getEndPoint(),x=s.getTarget().getConnectionDirection(s.getSource());this._route(s,p,x,u,l);for(var m=s.getCanvas().getIntersection(s).sort("x"),g=m.clone().reverse(),w=m,C=s.getVertices(),k=C.get(0),M=["M",.5+(0|k.x)," ",.5+(0|k.y)],N=k,O=function(A){k=C.get(A);var T=5,L=r.BRIDGE_HORIZONTAL_LR;N.x>k.x&&(w=g,L=r.BRIDGE_HORIZONTAL_RL,T=-T),w.each(function(I,F){!1===F.justTouching&&!0===a.default.shape.basic.Line.hit(1,N.x,N.y,k.x,k.y,F.x,F.y)&&k.y===F.y&&(M.push(" L",.5+(F.x-T|0)," ",.5+(0|F.y)),M.push(L))}),M.push(" L",.5+(0|k.x)," ",.5+(0|k.y)),N=k},_=1;_<C.getSize();_++)O(_);s.svgPathString=M.join("")}})},
1"./src/layout/connection/ManhattanConnectionRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.ManhattanConnectionRouter=a.default.layout.connection.ConnectionRouter.extend({NAME:"draw2d.layout.connection.ManhattanConnectionRouter",MINDIST:20,TOL:.1,TOLxTOL:.01,TOGGLE_DIST:20,init:function(){this._super()},onInstall:function(s){s.installEditPolicy(new a.default.policy.line.LineSelectionFeedbackPolicy)},route:function(s,n){var r=s.getStartPosition(),u=s.getSource().getConnectionDirection(s.getTarget()),l=s.getEndPosition(),p=s.getTarget().getConnectionDirection(s.getSource());this._route(s,l,p,r,u),this._paint(s)},_route:function(s,n,r,u,l){var p=a.default.geo.Rectangle.DIRECTION_UP,x=a.default.geo.Rectangle.DIRECTION_RIGHT,m=a.default.geo.Rectangle.DIRECTION_DOWN,g=a.default.geo.Rectangle.DIRECTION_LEFT,w=n.x-u.x,C=n.y-u.y,k=void 0,M=void 0,N=void 0;w*w<this.TOLxTOL&&C*C<this.TOLxTOL?s.addPoint(new a.default.geo.Point(u.x,u.y)):(r===g?w>0&&C*C<this.TOL&&l===x?(k=u,M=l):(w<0?k=new a.default.geo.Point(n.x-this.MINDIST,n.y):C>0&&l===m||C<0&&l===p?k=new a.default.geo.Point(u.x,n.y):r===l?(N=Math.min(n.x,u.x)-this.MINDIST,k=new a.default.geo.Point(N,n.y)):k=new a.default.geo.Point(n.x-w/2,n.y),M=C>0?p:m):r===x?w<0&&C*C<this.TOL&&l===g?(k=u,M=l):(w>0?k=new a.default.geo.Point(n.x+this.MINDIST,n.y):C>0&&l===m||C<0&&l===p?k=new a.default.geo.Point(u.x,n.y):r===l?(N=Math.max(n.x,u.x)+this.MINDIST,k=new a.default.geo.Point(N,n.y)):k=new a.default.geo.Point(n.x-w/2,n.y),M=C>0?p:m):r===m?w*w<this.TOL&&C<0&&l===p?(k=u,M=l):(C>0?k=new a.default.geo.Point(n.x,n.y+this.MINDIST):w>0&&l===x||w<0&&l===g?k=new a.default.geo.Point(n.x,u.y):r===l?(N=Math.max(n.y,u.y)+this.MINDIST,k=new a.default.geo.Point(n.x,N)):k=new a.default.geo.Point(n.x,n.y-C/2),M=w>0?g:x):r===p&&(w*w<this.TOL&&C>0&&l===m?(k=u,M=l):(C<0?k=new a.default.geo.Point(n.x,n.y-this.MINDIST):w>0&&l===x||w<0&&l===g?k=new a.default.geo.Point(n.x,u.y):r===l?(N=Math.min(n.y,u.y)-this.MINDIST,k=new a.default.geo.Point(n.x,N)):k=new a.default.geo.Point(n.x,n.y-C/2),M=w>0?g:x)),this._route(s,k,M,u,l),s.addPoint(n))}})},
1"./src/layout/connection/MazeConnectionRouter.js":function(h,y,c){"use strict";var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},v=function t(n){return n&&n.__esModule?n:{default:n}}(c("./src/packages.js")),s=null;v.default.layout.connection.MazeConnectionRouter=v.default.layout.connection.ConnectionRouter.extend({NAME:"draw2d.layout.connection.MazeConnectionRouter",init:function(){this._super(),this.useSpline=!1,this.useSimplify=!0,this.useSimplifyValue=2,this.useDebug=!1,this.useShift=4,this.portOutletOffset=15,this.finder=new PF.JumpPointFinder({allowDiagonal:!1,dontCrossCorners:!0})},onInstall:function(r){r.installEditPolicy(new v.default.policy.line.LineSelectionFeedbackPolicy)},route:function(r,u){var l=r.getStartPoint(),p=r.getSource().getConnectionDirection(r.getTarget()),x=r.getEndPoint(),m=r.getTarget().getConnectionDirection(r.getSource());this._route(r,x,m,l,p),this._paint(r)},_route:function(r,u,l,p,x){var m=this.useShift,g=p,w=u;u=this.getAdjustedPoint(u,l,this.portOutletOffset),p=this.getAdjustedPoint(p,x,this.portOutletOffset);var C=this.generateNoGoGrid(r,u,l,p,x),k=this.finder.findPath(Math.max(u.x)>>m,Math.max(u.y)>>m,Math.max(p.x)>>m,Math.max(0,p.y)>>m,C);if(k.forEach(function(X){X.x=X[0]=X[0]<<m,X.y=X[1]=X[1]<<m}),this.useDebug){null!==s&&s.remove(),s=r.canvas.paper.set();for(var M=0;M<C.width;M++)for(var N=0;N<C.height;N++)C.isWalkableAt(M,N)||s.push(r.canvas.paper.rect(M<<m,N<<m,1<<m,1<<m).attr({fill:"red",opacity:"0.1"}));s.push(r.canvas.paper.rect(u.x-3,u.y-3,6,6).attr({fill:"#ff0000",opacity:"0.8"})),s.push(r.canvas.paper.rect(p.x-3,p.y-3,6,6).attr({fill:"#ff0000",opacity:"0.8"})),k.forEach(function(X){s.push(r.canvas.paper.rect(X.x-3,X.y-3,6,6).attr({fill:"#0000ff",opacity:"0.8"}))});for(var O=k[0],_=["M",O.x," ",O.y],P=1;P<k.length;P++)_.push("L",(O=k[P]).x," ",O.y);_=_.join(""),s.push(r.canvas.paper.path(_).attr({stroke:"#0000ff"}))}if(this.adjustPath(u,k,l),k.reverse(),this.adjustPath(p,k,x),k.reverse(),k.forEach(function(X){X.x=X[0],X.y=X[1]}),this.useSpline){var A=new v.default.util.ArrayList;if(A.add(w),k.forEach(function(X){A.add(new v.default.geo.Point(X[0],X[1]))}),A.add(g),this.useDebug){k.forEach(function(X){s.push(r.canvas.paper.rect(X.x-3,X.y-3,6,6).attr({fill:"#00ff00",opacity:"0.8"}))});for(var T=k[0],L=["M",T.x," ",T.y],I=1;I<k.length;I++)L.push("L",(T=k[I]).x," ",T.y);L=L.join(""),s.push(r.canvas.paper.path(L).attr({stroke:"#00ff00"}))}this.spline=new v.default.util.spline.CubicSpline;var F=this.spline.generate(A,8);this.useSimplify?(k=[],F.each(function(X,it){k.push({x:it.x,y:it.y})}),(k=this.simplify(k,this.useSimplifyValue,!0)).forEach(function(X){r.addPoint(X.x,X.y)})):F.each(function(X,it){r.addPoint(it)})}else{if(this.useSimplify&&(k=this.simplify(k,this.useSimplifyValue,!0)),this.useDebug){k.forEach(function(X){s.push(r.canvas.paper.rect(X.x-3,X.y-3,6,6).attr({fill:"#00ff00",opacity:"0.8"}))});for(var W=k[0],q=["M",W.x," ",W.y],et=1;et<k.length;et++)q.push("L",(W=k[et]).x," ",W.y);q=q.join(""),s.push(r.canvas.paper.path(q).attr({stroke:"#00ff00"}))}r.addPoint(w),k.forEach(function(X){r.addPoint(X[0],X[1])}),r.addPoint(g)}},generateNoGoGrid:function(r,u,l,p,x){var m=this.useShift,g=(1<<m)/2,w=r.getCanvas().paper.width>>m,C=r.getCanvas().paper.height>>m,k=new PF.Grid(w,C);r.getCanvas().getFigures().each(function(at,ct){var ut=ct.getBoundingBox();if(!0!==ut.hitTest(u.x,u.y)&&!ut.hitTest(p.x,p.y)){var rt=ut.x>>m,lt=ut.y>>m;if(!(rt<1||lt<1))for(var ft=ut.x+ut.w+g>>m,kt=ut.y+ut.h+g>>m,wt=rt;wt<=ft;wt++)for(var Nt=lt;Nt<=kt;Nt++)k.setWalkableAt(wt,Nt,!1)}});var N=r.getSource().getParent().getBoundingBox();if(1===x||3===x){var O=N.y>>m;if(O>0)for(var _=N.y+N.h,P=p.x>>m,A=O-1;A<<m<=_;A++)k.setWalkableAt(P,A,!0)}else{var T=N.x>>m;if(T>0)for(var L=N.x+N.w,I=p.x>>m,F=T-1;F<<m<=L;F++)k.setWalkableAt(F,I,!0)}if(N=r.getTarget().getParent().getBoundingBox(),1===l||3===l){var W=N.y>>m;if(W>0)for(var q=N.y+N.h,et=u.x>>m,X=W-1;X<<m<=q;X++)k.setWalkableAt(et,X,!0)}else{var it=N.x>>m;if(it>0)for(var z=N.x+N.w,j=u.x>>m,tt=it-1;tt<<m<=z;tt++)k.setWalkableAt(tt,j,!0)}return k},getAdjustedPoint:function(r,u,l){switch(u){case v.default.geo.Rectangle.DIRECTION_UP:return new v.default.geo.Point(r.x,r.y-l);case v.default.geo.Rectangle.DIRECTION_RIGHT:return new v.default.geo.Point(r.x+l,r.y);case v.default.geo.Rectangle.DIRECTION_DOWN:return new v.default.geo.Point(r.x,r.y+l);case v.default.geo.Rectangle.DIRECTION_LEFT:return new v.default.geo.Point(r.x-l,r.y)}},adjustPath:function(r,u,l){var p=this.useShift,x=r.x>>p,m=r.y>>p;u.forEach(function(g){if(m!==g[1]>>p)return!1;g[1]=r.y}),u.forEach(function(g){if(x!==g[0]>>p)return!1;g[0]=r.x})},getSquareDistance:function(r,u){var l=r.x-u.x,p=r.y-u.y;return l*l+p*p},getSquareSegmentDistance:function(r,u,l){var p=u.x,x=u.y,m=l.x-p,g=l.y-x,w=void 0;return(0!==m||0!==g)&&((w=((r.x-p)*m+(r.y-x)*g)/(m*m+g*g))>1?(p=l.x,x=l.y):w>0&&(p+=m*w,x+=g*w)),(m=r.x-p)*m+(g=r.y-x)*g},simplifyRadialDistance:function(r,u){var l=void 0,p=r.length,x=null,m=r[0],g=[m];for(l=1;l<p;l++)this.getSquareDistance(x=r[l],m)>u&&(g.push(x),m=x);return m!==x&&g.push(x),g},simplifyDouglasPeucker:function(r,u){var l=r.length,x=new(("undefined"==typeof Uint8Array?"undefined":d(Uint8Array))!==void 0+""?Uint8Array:Array)(l),m=0,g=l-1,w=void 0,C=void 0,k=void 0,M=void 0,N=[],O=[],_=[];for(x[m]=x[g]=1;g;){for(C=0,w=m+1;w<g;w++)(k=this.getSquareSegmentDistance(r[w],r[m],r[g]))>C&&(M=w,C=k);C>u&&(x[M]=1,N.push(m),O.push(M),N.push(M),O.push(g)),m=N.pop(),g=O.pop()}for(w=0;w<l;w++)x[w]&&_.push(r[w]);return _},simplify:function(r,u,l){var p=void 0!==u?u*u:1;return l||(r=this.simplifyRadialDistance(r,p)),this.simplifyDouglasPeucker(r,p)}})},
1"./src/layout/connection/MuteableManhattanConnectionRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.MuteableManhattanConnectionRouter=a.default.layout.connection.ManhattanConnectionRouter.extend({NAME:"draw2d.layout.connection.MuteableManhattanConnectionRouter",UP:new a.default.geo.Ray(0,-1),DOWN:new a.default.geo.Ray(0,1),LEFT:new a.default.geo.Ray(-1,0),RIGHT:new a.default.geo.Ray(1,0),init:function(){this._super(),this.rowsUsed={},this.colsUsed={},this.constraints={},this.reservedInfo={}},route:function(s,n){this.rowsUsed={},this.colsUsed={},this.constraints={},this.reservedInfo={};var r=s.getCanvas(),u=void 0,l=s.getStartPoint(),p=s.getEndPoint(),x=new a.default.geo.Ray(l),m=new a.default.geo.Ray(p),g=new a.default.geo.Ray((x.x+m.x)/2,(x.y+m.y)/2),w=new a.default.geo.Ray(m.x-x.x,m.y-x.y),C=this.getStartDirection(s),k=this.getEndDirection(s),M=new a.default.util.ArrayList,N=C.isHorizontal();if(M.add(N?x.y:x.x),N=!N,0===C.dot(k))C.dot(w)>=0&&k.dot(w)<=0||(u=C.dot(w)<0?C.similarity(x.translated(C.scaled(10))):N?g.y:g.x,M.add(u),N=!N,u=k.dot(w)>0?k.similarity(m.translated(k.scaled(10))):N?g.y:g.x,M.add(u),N=!N);else if(C.dot(k)>0)u=C.dot(w)>=0?C.similarity(x.translated(C.scaled(10))):k.similarity(m.translated(k.scaled(10))),M.add(u),N=!N;else{if(C.dot(w)<0&&(u=C.similarity(x.translated(C.scaled(10))),M.add(u),N=!N),this.isCycle(s))u=N?s.getSource().getParent().getBoundingBox().getTop()-10:s.getSource().getParent().getBoundingBox().getRight()+10;else if(N){for(var O=g.y,_=k.similarity(m.translated(k.scaled(10))),P=new a.default.geo.Ray(M.get(M.getSize()-1),O),A=this.findFirstFigureAtStraightLine(r,P,this.LEFT,a.default.util.ArrayList.EMPTY_LIST);null!=A&&A.getBoundingBox().x+A.getBoundingBox().width>_;)O=A.getBoundingBox().y+A.getBoundingBox().height+5,P.y=O,A=this.findFirstFigureAtStraightLine(r,P,this.LEFT,a.default.util.ArrayList.EMPTY_LIST);u=O}else{var T=this.findFirstFigureAtStraightLine(r,x,this.RIGHT,this.getExcludingFigures(s));null==T?u=g.x:(u=Math.min(g.x,x.translated(new a.default.geo.Ray(3*(T.getBoundingBox().x-x.x)/4,0)).x),u=Math.max(x.x,u)),u=this.adjust(s,u)}M.add(u),N=!N}M.add(N?m.y:m.x),this.processPositions(x,m,M,C.isHorizontal(),s),this._paint(s)},getColumnNear:function(s,n,r,u){var l=Math.min(r,u),p=Math.max(r,u);l>n&&(p=l,l=n-(l-n)),p<n&&(l=p,p=n+(n-p));var x=0,m=-1;n%6!=0&&(n-=n%6);for(var g=void 0;x<n;){if(!((g=parseInt(n+x*m))in this.colsUsed))return this.colsUsed[g]=g,this.reserveColumn(s,g),g;if(g<=l)return g+6;if(g>=p)return g-6;1===m?m=-1:(m=1,x+=6)}return n},getRowNear:function(s,n,r,u){var l=Math.min(r,u),p=Math.max(r,u);l>n&&(p=l,l=n-(l-n)),p<n&&(l=p,p=n+(n-p));var x=0,m=-1;n%6!=0&&(n-=n%6);for(var g=void 0;x<n;){if(!((g=parseInt(n+x*m))in this.rowsUsed))return this.rowsUsed[g]=g,this.reserveRow(s,g),g;if(g<=l)return g+6;if(g>=p)return g-6;1===m?m=-1:(m=1,x+=6)}return n},getEndDirection:function(s){var n=s.getEndPoint(),r=s.getTarget().getParent().getBoundingBox();return this.getDirection(r,n)},getStartDirection:function(s){var n=s.getStartPoint(),r=s.getSource().getParent().getBoundingBox();return this.getDirection(r,n)},getDirection:function(s,n){var r=Math.abs(s.y-n.y),u=Math.abs(s.x-n.x),l=this.LEFT;return r<=u&&(u=r,l=this.UP),(r=Math.abs(s.getBottom()-n.y))<=u&&(u=r,l=this.DOWN),(r=Math.abs(s.getRight()-n.x))<u&&(l=this.RIGHT),l},processPositions:function(s,n,r,u,l){this.removeReservedLines(l);var p=[];p.push(u?s.x:s.y);var x=void 0;for(x=0;x<r.getSize();x++)p.push(r.get(x));u===(r.getSize()%2==1)?p.push(n.x):p.push(n.y),l.addPoint(new a.default.geo.Point(s.x,s.y));var m=void 0,g=void 0,w=void 0,M=void 0;for(x=2;x<p.length-1;x++)w=p[x-1],g=p[x],M=x!==p.length-2,(u=!u)?(M&&(p[x]=g=this.getRowNear(l,g,p[x-2],p[x+2])),m=new a.default.geo.Point(w,g)):(M&&(p[x]=g=this.getColumnNear(l,g,p[x-2],p[x+2])),m=new a.default.geo.Point(g,w)),l.addPoint(m);l.addPoint(new a.default.geo.Point(n.x,n.y))},removeReservedLines:function(s){var n=this.reservedInfo[s];if(null!=n){for(var r=0;r<n.reservedRows.getSize();r++)delete this.rowsUsed[n.reservedRows.get(r)];for(var u=0;u<n.reservedCols.getSize();u++)delete this.colsUsed[n.reservedCols.get(u)];delete this.reservedInfo[s]}},reserveColumn:function(s,n){var r=this.reservedInfo[s];null==r&&(r={reservedCols:new a.default.util.ArrayList,reservedRows:new a.default.util.ArrayList},this.reservedInfo[s]=r),r.reservedCols.add(n)},reserveRow:function(s,n){var r=this.reservedInfo[s];null==r&&(r={reservedCols:new a.default.util.ArrayList,reservedRows:new a.default.util.ArrayList},this.reservedInfo[s]=r),r.reservedRows.add(n)},getConstraint:function(s){return this.constraints[s]},setConstraint:function(s,n){this.constraints[s]=n},isCycle:function(s){var n=s.getSource().getParent(),r=s.getTarget().getParent();return n.id===r.id},getExcludingFigures:function(s){var n=new a.default.util.ArrayList;return n.add(s.getSource().getParent()),n.add(s.getTarget().getParent()),n},findFirstFigureAtStraightLine:function(s,n,r,u){var l=null,p=s.getFigures(),x=this;return p.each(function(m,g){try{if(!u.contains(g)){var w=g.getBoundingBox();x.LEFT.equals(r)?n.x>w.x&&n.y>=w.y&&n.y<=w.y+w.h&&(null===l||w.x>l.getBoundingBox().x)&&(l=g):x.RIGHT.equals(r)?n.x<w.x+w.w&&n.y>=w.y&&n.y<=w.y+w.h&&(null==l||w.x<l.getBoundingBox().x)&&(l=g):x.UP.equals(r)?n.y>w.y&&n.x>=w.x&&n.x<=w.x+w.w&&(null===l||w.y>l.getBoundingBox().y)&&(l=g):x.DOWN.equals(r)&&n.y<w.y+w.h&&n.x>=w.x&&n.x<=w.x+w.w&&(null===l||w.y<l.getBoundingBox().y)&&(l=g)}}catch(C){console.log(C)}}),l},adjust:function(s,n){var r=n,u=s.getSource().getPosition();return s.getCanvas().getLines().each(function(p,x){try{if(x===s)return;var m=x.getTarget().getPosition();u.x<m.x&&u.y===m.y&&x.getVertices().getMidpoint().x<=n&&(r=x.getVertices().getMidpoint().x-5)}catch(g){console.log(g)}}),r}})},
1"./src/layout/connection/RubberbandRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.RubberbandRouter=a.default.layout.connection.ConnectionRouter.extend({NAME:"draw2d.layout.connection.RubberbandRouter",init:function(){this._super()},onInstall:function(s){s.installEditPolicy(new a.default.policy.line.LineSelectionFeedbackPolicy)},invalidate:function(){},route:function(s,n){var r=10,u=s.getStartPoint(),l=s.getEndPoint(),p=l.subtract(u),x=p.clone(),m=p.length(),g=1-Math.min(.75,.002*m),w=u.lerp(l,.25*g),C=u.lerp(l,.5),k=u.lerp(l,1-.25*g);r=Math.max(5,r*g),p.x=p.x/m*r,p.y=p.y/m*r,x.x=x.x/m*(r*g),x.y=x.y/m*(r*g);var M=new a.default.geo.Point(-p.y+u.x,p.x+u.y),N=new a.default.geo.Point(p.y+u.x,-p.x+u.y),O=new a.default.geo.Point(-x.y+w.x,x.x+w.y),_=new a.default.geo.Point(x.y+w.x,-x.x+w.y),P=new a.default.geo.Point(-x.y+C.x,x.x+C.y),A=new a.default.geo.Point(x.y+C.x,-x.x+C.y),T=new a.default.geo.Point(-x.y+k.x,x.x+k.y),L=new a.default.geo.Point(x.y+k.x,-x.x+k.y),I=new a.default.geo.Point(-p.y+l.x,p.x+l.y),F=new a.default.geo.Point(p.y+l.x,-p.x+l.y);s.addPoint(u),s.addPoint(l);var W=["M",M.x,",",M.y];W.push("A",r,",",r,"0 0 1 ",N.x,",",N.y),W.push("C",N.x,",",N.y,_.x,",",_.y,A.x,",",A.y),W.pu
1sh("C",A.x,",",A.y,L.x,",",L.y,F.x,",",F.y),W.push("A",r,",",r,"0 0 1",I.x,",",I.y),W.push("C",I.x,",",I.y,T.x,",",T.y,P.x,",",P.y),W.push("C",P.x,",",P.y,O.x,",",O.y,M.x,",",M.y),s.svgPathString=W.join(" ")}})},
1"./src/layout/connection/SketchConnectionRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.SketchConnectionRouter=a.default.layout.connection.MazeConnectionRouter.extend({NAME:"draw2d.layout.connection.SketchConnectionRouter",init:function(){this._super(),this.useSpline=!0,this.useShift=5,this.useSimplifyValue=.2,this.finder=new PF.JumpPointFinder({allowDiagonal:!1,dontCrossCorners:!0})},onInstall:function(s){s.installEditPolicy(new a.default.policy.line.LineSelectionFeedbackPolicy)}})},
1"./src/layout/connection/SplineConnectionRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.SplineConnectionRouter=a.default.layout.connection.ManhattanConnectionRouter.extend({NAME:"draw2d.layout.connection.SplineConnectionRouter",init:function(){this._super(),this.spline=new a.default.util.spline.CubicSpline,this.MINDIST=50},onInstall:function(s){s.installEditPolicy(new a.default.policy.line.LineSelectionFeedbackPolicy)},route:function(s,n){var r=void 0,u=s.getStartPoint(),l=s.getSource().getConnectionDirection(s.getTarget()),p=s.getEndPoint(),x=s.getTarget().getConnectionDirection(s.getSource());this._route(s,p,x,u,l);var m=s.getVertices();s.oldPoint=null,s.lineSegments=new a.default.util.ArrayList,s.vertices=new a.default.util.ArrayList,this.spline.generate(m,8).each(function(M,N){s.addPoint(N)});var w=(m=s.getVertices()).getSize(),C=m.get(0),k=["M",C.x," ",C.y];for(r=1;r<w;r++)C=m.get(r),k.push("L",C.x," ",C.y);s.svgPathString=k.join("")}})},
1"./src/layout/connection/VertexRouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.connection.VertexRouter=a.default.layout.connection.ConnectionRouter.extend({NAME:"draw2d.layout.connection.VertexRouter",init:function(){this._super()},onInstall:function(s){s.installEditPolicy(new a.default.policy.line.VertexSelectionFeedbackPolicy)},invalidate:function(){},route:function(s,n){for(var r=n.oldVertices.getSize(),u=0;u<r;u++)s.addPoint(n.oldVertices.get(u));var l=s.getVertices(),p=s.getStartPosition(l.get(1)),x=s.getEndPosition(l.get(l.getSize()-2));l.first().setPosition(p),l.last().setPosition(x),this._paint(s)},canRemoveVertexAt:function(s,n){return!1},canRemoveSegmentAt:function(s,n){var r=s.getVertices().getSize()-1;return!(n<=0||n>=r)&&r>=2},getPersistentAttributes:function(s,n){return n.vertex=[],s.getVertices().each(function(r,u){n.vertex.push({x:u.x,y:u.y})}),n},setPersistentAttributes:function(s,n){Array.isArray(n.vertex)&&n.vertex.length>1&&(s.oldPoint=null,s.lineSegments=new a.default.util.ArrayList,s.setVertices(n.vertex))},onDrag:function(s,n,r,u,l){for(var p=s.getVertices().getSize()-1,x=1;x<p;x++)s.getVertex(x).translate(u,l)}})},
1"./src/layout/locator/BottomLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.BottomLocator=a.default.layout.locator.Locator.extend({NAME:"draw2d.layout.locator.BottomLocator",init:function(s,n,r){this._super(s,n,r)},relocate:function(s,n){var r=n.getParent(),u=r.getBoundingBox(),l=r instanceof a.default.Port?u.w/2:0,p=n.getBoundingBox();n instanceof a.default.Port?n.setPosition(u.w/2-l,u.h):n.setPosition(u.w/2-p.w/2-l,2+u.h)}})},
1"./src/layout/locator/CenterLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.CenterLocator=a.default.layout.locator.Locator.extend({NAME:"draw2d.layout.locator.CenterLocator",init:function(s,n,r){this._super(s,n,r)},relocate:function(s,n){var u=n.getParent().getBoundingBox();if(n instanceof a.default.Port)n.setPosition(u.w/2,u.h/2);else{var l=n.getBoundingBox();n.setPosition(.5+(u.w/2-l.w/2|0),.5+(u.h/2-l.h/2|0))}}})},
1"./src/layout/locator/ConnectionLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.ConnectionLocator=a.default.layout.locator.Locator.extend({NAME:"draw2d.layout.locator.ConnectionLocator",init:function(s,n,r){this._super(s,n,r)}})},
1"./src/layout/locator/DraggableLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.DraggableLocator=a.default.layout.locator.Locator.extend({NAME:"draw2d.layout.locator.DraggableLocator",init:function(s,n,r){this._super(s,n,r)},bind:function(s,n){n.setSelectionAdapter(function(){return n})},unbind:function(s,n){n.setSelectionAdapter(null)}})},
1"./src/layout/locator/InputPortLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.InputPortLocator=a.default.layout.locator.PortLocator.extend({NAME:"draw2d.layout.locator.InputPortLocator",init:function(s,n,r){this._super(s,n,r)},relocate:function(s,n){var r=n.getParent(),u=1,l=this.NAME,p=1;r.getPorts().each(function(x,m){p=m===n?u:p,u+=m.getLocator().NAME===l?1:0}),this.applyConsiderRotation(n,0,r.getHeight()/u*p)}})},
1"./src/layout/locator/LeftLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.LeftLocator=a.default.layout.locator.Locator.extend({NAME:"draw2d.layout.locator.LeftLocator",init:function(s,n,r){this._super(s,n,r),this.margin=s&&"margin"in s?s.margin:5},relocate:function(s,n){var r=n.getParent(),u=r.getBoundingBox(),l=r instanceof a.default.Port?u.h/2:0;if(n instanceof a.default.Port)n.setPosition(0,u.h/2-l);else{var p=n.getBoundingBox();n.setPosition(-p.w-this.margin,u.h/2-p.h/2-l)}}})},
1"./src/layout/locator/Locator.js":function(module,exports,__webpack_require__){"use strict";var _packages=__webpack_require__("./src/packages.js"),_packages2=_interopRequireDefault(_packages),_extend=__webpack_require__("./src/util/extend.js"),_extend2=_interopRequireDefault(_extend),_JSONUtil=__webpack_require__("./src/util/JSONUtil.js"),_JSONUtil2=_interopRequireDefault(_JSONUtil);function _interopRequireDefault(h){return h&&h.__esModule?h:{default:h}}function _defineProperty(h,y,c){return y in h?Object.defineProperty(h,y,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[y]=c,h}function _toConsumableArray(h){if(Array.isArray(h)){for(var y=0,c=Array(h.length);y<h.length;y++)c[y]=h[y];return c}return Array.from(h)}_packages2.default.layout.locator.Locator=Class.extend({NAME:"draw2d.layout.locator.Locator",init:function(y,c,d){this.setterWhitelist=(0,_extend2.default)({},c),this.getterWhitelist=(0,_extend2.default)({},d),this.attr(y)},attr:function(y,c){var d=this;if($.isPlainObject(y))for(var a in y){var v=this.setterWhitelist[a],t=y[a];v&&void 0!==t&&v.call(this,t)}else if("string"==typeof y){if(void 0===c){var s=this.getterWhitelist[y];return"function"==typeof s?s.call(this):void 0}"function"==typeof c&&(c=c());var n=this.setterWhitelist[y];n&&n.call(this,c)}else{if(Array.isArray(y))return Object.assign.apply(Object,[{}].concat(_toConsumableArray(Object.keys(y).map(function(l){return _defineProperty({},l,d.attr(l))}))));if(void 0===y){var r={};for(var u in this.getterWhitelist)r[u]=this.getterWhitelist[u].call(this);return r}}return this},bind:function(y,c){return c.setDraggable(!1),c.setSelectable(!1),this},unbind:function(y,c){return this},relocate:function(y,c){c.repaint()},clone:function clone(){return eval("new "+this.NAME+"()")}})},
1"./src/layout/locator/ManhattanMidpointLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.ManhattanMidpointLocator=a.default.layout.locator.ConnectionLocator.extend({NAME:"draw2d.layout.locator.ManhattanMidpointLocator",init:function(s,n,r){this._super(s,n,r)},relocate:function(s,n){var u=n.getParent().getVertices(),l=Math.floor((u.getSize()-2)/2);if(!(u.getSize()<=l+1)){var p=u.get(l),x=u.get(l+1);n.setPosition((x.x-p.x)/2+p.x-n.getWidth()/2|0,(x.y-p.y)/2+p.y-n.getHeight()/2|0)}}})},
1"./src/layout/locator/OutputPortLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.OutputPortLocator=a.default.layout.locator.PortLocator.extend({NAME:"draw2d.layout.locator.OutputPortLocator",init:function(s,n,r){this._super(s,n,r)},relocate:function(s,n){var r=n.getParent(),u=1,l=this.NAME,p=1;r.getPorts().each(function(x,m){p=m===n?u:p,u+=m.getLocator().NAME===l?1:0}),this.applyConsiderRotation(n,r.getWidth(),r.getHeight()/u*p)}})},
1"./src/layout/locator/ParallelMidpointLocator.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.layout.locator.ParallelMidpointLocator=a.default.layout.locator.ConnectionLocator.extend({NAME:"draw2d.layout.locator.ParallelMidpointLocator",init:function(r,u,l){this.distance=0,this._super((0,t.default)({distance:-5},r),(0,t.default)({x:this.setDistance},u),(0,t.default)({distance:this.getDistance},l))},setDistance:function(r){return this.distance=r,this},getDistance:function(){return this.distance},relocate:function(r,u){var p=u.getParent().getVertices(),x=Math.floor((p.getSize()-2)/2);if(!(p.getSize()<=x+1)){var m=p.get(x),g=p.get(x+1),w=this.distance<=0?this.distance-u.getHeight():this.distance,C=m.x-g.x,k=m.y-g.y,M=Math.sqrt(C*C+k*k),N=-Math.asin(k/M),O=180/Math.PI*N;N<0?g.x<m.x?(N=Math.abs(N)+Math.PI,O=360-O,w=-w-u.getHeight()):(N=2*Math.PI-Math.abs(N),O=360+O):g.x<m.x&&(N=Math.PI-N,O=360-O,w=-w-u.getHeight());var _=this.rotate(M/2-u.getWidth()/2,w,0,0,N),P=this.rotate(0,0,u.getWidth()/2,u.getHeight()/2,N);u.setRotationAngle(O),u.setPosition(_.x-P.x+m.x,_.y-P.y+m.y)}},rotate:function(r,u,l,p,x){var m=Math.cos,g=Math.sin;return{x:(r-l)*m(x)-(u-p)*g(x)+l,y:(r-l)*g(x)+(u-p)*m(x)+p}}})},
1"./src/layout/locator/PolylineMidpointLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.PolylineMidpointLocator=a.default.layout.locator.ManhattanMidpointLocator.extend({NAME:"draw2d.layout.locator.PolylineMidpointLocator",init:function(s,n,r){this._super(s,n,r)},relocate:function(s,n){var u=n.getParent().getVertices();if(u.getSize()%2==0)this._super(s,n);else{s=Math.floor(u.getSize()/2);var l=u.get(s);n.setPosition(l.x-n.getWidth()/2,l.y-n.getHeight()/2)}}})},
1"./src/layout/locator/PortLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.PortLocator=a.default.layout.locator.Locator.extend({NAME:"draw2d.layout.locator.PortLocator",init:function(s,n,r){this._super(s,n,r)},applyConsiderRotation:function(s,n,r){var u=s.getParent(),l=u.getWidth()/2,p=u.getHeight()/2,x=u.getRotationAngle(),m=Raphael.matrix();if(m.rotate(x,l,p),90===x||270===x){var g=u.getHeight()/u.getWidth();m.scale(g,1/g,l,p)}s.setPosition(m.x(n,r),m.y(n,r))}})},
1"./src/layout/locator/RightLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.RightLocator=a.default.layout.locator.Locator.extend({NAME:"draw2d.layout.locator.RightLocator",init:function(s,n,r){this._super(s,n,r),this.margin=s&&"margin"in s?s.margin:5},relocate:function(s,n){var r=n.getParent(),u=r.getBoundingBox(),l=r instanceof a.default.Port?u.h/2:0;if(n instanceof a.default.Port)n.setPosition(u.w,u.h/2-l);else{var p=n.getBoundingBox();n.setPosition(u.w+this.margin,u.h/2-p.h/2-l)}}})},
1"./src/layout/locator/SmartDraggableLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.SmartDraggableLocator=a.default.layout.locator.Locator.extend({NAME:"draw2d.layout.locator.SmartDraggableLocator",init:function(s,n,r){this._super(s,n,r),this.boundedCorners={init:!1,parent:0,child:0,dist:Number.MAX_SAFE_INTEGER,xOffset:0,yOffset:0}},bind:function(s,n){var r=this,u=function(){r.boundedCorners={init:!1,parent:0,child:0,dist:Number.MAX_SAFE_INTEGER,xOffset:0,yOffset:0};var p=n.getParent().getBoundingBox().getVertices(),x=n.getBoundingBox().getVertices(),m=void 0,g=void 0,w=void 0,C=void 0,k=void 0;for(m=0;m<p.getSize();m++)for(g=0;g<x.getSize();g++)w=p.get(m),C=x.get(g),(k=Math.abs(w.distance(C)))<r.boundedCorners.dist&&(r.boundedCorners={parent:m,child:g,dist:k,xOffset:w.x-C.x,yOffset:w.y-C.y});r.boundedCorners.init=!0};n.setSelectionAdapter(function(){return n}),n.getParent().on("added",u),n.on("dragend",u)},unbind:function(s,n){n.setSelectionAdapter(null)},relocate:function(s,n){if(this._super(s,n),!0===this.boundedCorners.init){var r=n.getParent().getBoundingBox().getVertices(),u=n.getBoundingBox().getVertices(),l=r.get(this.boundedCorners.parent),p=u.get(this.boundedCorners.child);n.translate(l.x-p.x-this.boundedCorners.xOffset,l.y-p.y-this.boundedCorners.yOffset)}}})},
1"./src/layout/locator/TopLocator.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.locator.TopLocator=a.default.layout.locator.Locator.extend({NAME:"draw2d.layout.locator.TopLocator",init:function(s,n,r){this._super(s,n,r)},relocate:function(s,n){var r=n.getParent(),u=r.getBoundingBox(),l=r instanceof a.default.Port?u.w/2:0,p=n.getBoundingBox();n instanceof a.default.Port?n.setPosition(u.w/2-l,0):n.setPosition(u.w/2-p.w/2-l,-(p.h+2))}})},
1"./src/layout/locator/XYAbsPortLocator.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.layout.locator.XYAbsPortLocator=a.default.layout.locator.PortLocator.extend({NAME:"draw2d.layout.locator.XYAbsPortLocator",init:function(r,u,l){this.x=0,this.y=0,this._super(r,(0,t.default)({x:this.setX,y:this.setY},u),(0,t.default)({x:this.getX,y:this.getY},l))},setX:function(r){this.x=r},setY:function(r){this.y=r},getX:function(){return this.x},getY:function(){return this.y},relocate:function(r,u){this.applyConsiderRotation(u,this.x,this.y)}})},
1"./src/layout/locator/XYRelPortLocator.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.layout.locator.XYRelPortLocator=a.default.layout.locator.PortLocator.extend({NAME:"draw2d.layout.locator.XYRelPortLocator",init:function(r,u,l){"number"==typeof r&&"number"==typeof u?(this.x=r,this.y=u,this._super()):(this.x=0,this.y=0,this._super(r,(0,t.default)({x:this.setX,y:this.setY},u),(0,t.default)({x:this.getX,y:this.getY},l)))},setX:function(r){this.x=r},setY:function(r){this.y=r},getX:function(){return this.x},getY:function(){return this.y},relocate:function(r,u){var l=u.getParent();this.applyConsiderRotation(u,l.getWidth()/100*this.x,l.getHeight()/100*this.y)}})},
1"./src/layout/mesh/ExplodeLayouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.mesh.ExplodeLayouter=a.default.layout.mesh.MeshLayouter.extend({MIN_MARGIN:40,init:function(){},add:function(s,n){var r=[];r[0]={x:0,y:0},r[1]={x:0,y:0},r[2]={x:0,y:0},r[3]={x:0,y:0},r[4]={x:0,y:0},r[5]={x:0,y:0},r[6]={x:0,y:0},r[7]={x:0,y:0},r[8]={x:0,y:0};var u=n.getBoundingBox(),l=s.getFigures(),p=null,x=0,m=0,g=null,w=0;for(w=0;w<l.getSize();w++)if((p=l.get(w))!==n&&(x=p.getBoundingBox().getDistance(u))<this.MIN_MARGIN)switch(m=this.determineOctant(u,p.getBoundingBox()),m){case 2:case 3:r[2].x=Math.max(r[2].x,this.MIN_MARGIN-x),r[3].x=Math.max(r[3].x,this.MIN_MARGIN-x),r[4].x=Math.max(r[4].x,this.MIN_MARGIN-x);break;case 4:r[2].x=Math.max(r[2].x,this.MIN_MARGIN-x),r[3].x=Math.max(r[3].x,this.MIN_MARGIN-x),r[4].x=Math.max(r[4].x,this.MIN_MARGIN-x),r[4].y=Math.max(r[4].y,this.MIN_MARGIN-x),r[5].y=Math.max(r[5].y,this.MIN_MARGIN-x),r[6].y=Math.max(r[6].y,this.MIN_MARGIN-x);break;case 5:case 6:r[4].y=Math.max(r[4].y,this.MIN_MARGIN-x),r[5].y=Math.max(r[5].y,this.MIN_MARGIN-x),r[6].y=Math.max(r[6].y,this.MIN_MARGIN-x);break;case 8:x=0|u.getBottomRight().getDistance(p.getBoundingBox().getTopLeft()),r[2].x=Math.max(r[2].x,this.MIN_MARGIN+x),r[3].x=Math.max(r[3].x,this.MIN_MARGIN+x),r[4].x=Math.max(r[4].x,this.MIN_MARGIN+x),r[4].y=Math.max(r[4].y,this.MIN_MARGIN+x),r[5].y=Math.max(r[5].y,this.MIN_MARGIN+x),r[6].y=Math.max(r[6].y,this.MIN_MARGIN+x),r[8].x=Math.max(r[8].x,this.MIN_MARGIN+x)}var C=new a.default.util.ArrayList;for(w=0;w<l.getSize();w++)(p=l.get(w))!==n&&(0!==(g=r[m=this.determineOctant(u,p.getBoundingBox())]).x||0!==g.y)&&C.add(new a.default.layout.mesh.ProposedMeshChange(p,g.x,g.y));return C},determineOctant:function(s,n){var r=s.x,u=s.y,p=s.h,x=n.x,m=n.y,w=n.h;return x+n.w<=r?m+w<=u?0:m>=u+p?6:7:x>=r+s.w?m+w<=u?2:m>=u+p?4:3:m+w<=u?1:m>=u+p?5:8}})},
1"./src/layout/mesh/MeshLayouter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.layout.mesh.MeshLayouter=Class.extend({init:function(){},add:function(s,n){return new a.default.util.ArrayList}})},
1"./src/layout/mesh/ProposedMeshChange.js":function(h,y,c){"use strict";(function v(t){return t&&t.__esModule?t:{default:t}})(c("./src/packages.js")).default.layout.mesh.ProposedMeshChange=Class.extend({init:function(s,n,r){this.figure=s,this.x=n,this.y=r},getFigure:function(){return this.figure},getX:function(){return this.x},getY:function(){return this.y}})},
1"./src/lib/Class.exec.js":function(h,y,c){"use strict";c("./node_modules/script-loader/addScript.js")(c("./node_modules/raw-loader/index.js!./src/lib/Class.exec.js"))},
1"./src/lib/jquery.autoresize.js":function(h,y,c){"use strict";!function(d){var a="ar"+ +new Date;function t(n){return this.filter(t.resizableFilterSelector).each(function(){new s(d(this),n)}),this}function s(n,r){var u;n.data("AutoResizer")&&n.data("AutoResizer").destroy(),r=this.config=d.extend({},t.defaults,r),this.el=n,this.nodeName=n[0].nodeName.toLowerCase(),this.originalHeight=n.height(),this.previousScrollTop=null,this.value=n.val(),"original"===r.maxWidth&&(r.maxWidth=n.width()),"original"===r.minWidth&&(r.minWidth=n.width()),"original"===r.maxHeight&&(r.maxHeight=n.height()),"original"===r.minHeight&&(r.minHeight=n.height()),"textarea"===this.nodeName&&n.css({resize:"none",overflowY:"hidden"}),n.data("AutoResizer",this),r.animate.complete=(u=r.animate.complete,function(){return r.onAfterResize.call(n),u.apply(this,arguments)}),this.bind()}t.defaults={onResize:function(){},onBeforeResize:function(){return 123},onAfterResize:function(){return 555},animate:{duration:200,complete:function(){}},extraSpace:50,minHeight:"original",maxHeight:500,minWidth:"original",maxWidth:500},t.cloneCSSProperties=["lineHeight","textDecoration","letterSpacing","fontSize","fontFamily","fontStyle","fontWeight","textTransform","textAlign","direction","wordSpacing","fontSizeAdjust","paddingTop","paddingLeft","paddingBottom","paddingRight","width"],t.cloneCSSValues={position:"absolute",top:-9999,left:-9999,opacity:0,overflow:"hidden"},t.resizableFilterSelector=["textarea:not(textarea."+a+")","input:not(input[type])","input[type=text]","input[type=password]","input[type=email]","input[type=url]"].join(","),t.AutoResizer=s,d.fn.autoResize=t,s.prototype={bind:function(){var r=d.proxy(function(){return this.check(),!0},this);this.unbind(),this.el.bind("keyup.autoResize",r).bind("change.autoResize",r).bind("paste.autoResize",function(){setTimeout(function(){r()},0)}),this.el.is(":hidden")||this.check(null,!0)},unbind:function(){this.el.unbind(".autoResize")},createClone:function(){var r=this.el,u="textarea"===this.nodeName?r.clone():d("<span/>");this.clone=u,d.each(t.cloneCSSProperties,function(l,p){u[0].style[p]=r.css(p)}),u.removeAttr("name").removeAttr("id").addClass(a).attr("tabIndex",-1).css(t.cloneCSSValues),"textarea"===this.nodeName?u.height("auto"):u.width("auto").css({whiteSpace:"nowrap"})},check:function(r,u){this.clone||(this.createClone(),this.injectClone());var l=this.config,p=this.clone,x=this.el,m=x.val();if(m===this.prevValue)return!0;if(this.prevValue=m,"input"!==this.nodeName){p.width(x.width()).height(0).val(m).scrollTop(1e4);var k=p[0].scrollTop;if(m){if(this.previousScrollTop===k)return;this.previousScrollTop=k,k+l.extraSpace>=l.maxHeight?(x.css("overflowY",""),k=l.maxHeight,u=!0):k+l.extraSpace<=l.minHeight?k=l.minHeight:(x.css("overflowY","hidden"),k+=l.extraSpace)}else k=l.minHeight,this.previousScrollTop=null;l.onBeforeResize.call(x),l.onResize.call(x),l.animate&&!u?x.stop(1,1).animate({height:k},l.animate):(x.height(k),l.onAfterResize.call(x))}else{p.text(m);var g=p.width(),w=g+l.extraSpace>=l.minWidth?g+l.extraSpace:l.minWidth,C=x.width();((w=Math.min(w,l.maxWidth))<C&&w>=l.minWidth||w>=l.minWidth&&w<=l.maxWidth)&&(l.onBeforeResize.call(x),l.onResize.call(x),x.scrollLeft(0),l.animate&&!u?x.stop(1,1).animate({width:w},l.animate):(x.width(w),l.onAfterResize.call(x)))}},destroy:function(){this.unbind(),this.el.removeData("AutoResizer"),this.clone.remove(),delete this.el,delete this.clone},injectClone:function(){(t.cloneContainer||(t.cloneContainer=d("<arclones/>").appendTo("body"))).append(this.clone)}}}(jQuery)},
1"./src/lib/jquery.contextmenu.js":function(h,y,c){"use strict";!function(d,a){if(d.support.htmlMenuitem="HTMLMenuItemElement"in window,d.support.htmlCommand="HTMLCommandElement"in window,d.support.eventSelectstart="onselectstart"in document.documentElement,!d.ui||!d.ui.widget){var v=d.cleanData;d.cleanData=function(O){for(var P,_=0;null!=(P=O[_]);_++)try{d(P).triggerHandler("remove")}catch(A){}v(O)}}var t=null,s=!1,n=d(window),r=0,u={},l={},p={},x={selector:null,appendTo:null,trigger:"right",autoHide:!1,delay:200,reposition:!1,determinePosition:function(_){if(d.ui&&d.ui.position)_.css("display","block").position({my:"center top",at:"center bottom",of:this,offset:"0 5",collision:"fit"}).css("display","none");else{var P=this.offset();P.top+=this.outerHeight(),P.left+=this.outerWidth()/2-_.outerWidth()/2,_.css(P)}},position:function(_,P,A){var L;if(P||A){L="maintain"===P&&"maintain"===A?_.$menu.position():{top:A,left:P};var I=n.scrollTop()+n.height(),F=n.scrollLeft()+n.width(),W=_.$menu.height(),q=_.$menu.width();L.top+W>I&&(L.top-=W),L.left+q>F&&(L.left-=q),_.$menu.css(L)}else _.determinePosition.call(this,_.$menu)},positionSubmenu:function(_){if(d.ui&&d.ui.position)_.css("display","block").position({my:"left top",at:"right top",of:this,collision:"flipfit fit"}).css("display","");else{var P={top:0,left:this.outerWidth()};_.css(P)}},zIndex:1,animation:{duration:50,show:"slideDown",hide:"slideUp"},events:{show:d.noop,hide:d.noop},callback:null,items:{}},m={timer:null,pageX:null,pageY:null},w={abortevent:function(_){_.preventDefault(),_.stopImmediatePropagation()},contextmenu:function(_){var P=d(this);if(_.preventDefault(),_.stopImmediatePropagation(),!("right"!=_.data.trigger&&_.originalEvent||P.hasClass("context-menu-active")||P.hasClass("context-menu-disabled"))){if(t=P,_.data.build){var A=_.data.build(t,_);if(!1===A)return;if(_.data=d.extend(!0,{},x,_.data,A||{}),!_.data.items||d.isEmptyObject(_.data.items))throw window.console&&(console.error||console.log)("No items specified to show in contextMenu"),new Error("No Items sepcified");_.data.$trigger=t,C.create(_.data)}C.show.call(P,_.data,_.pageX,_.pageY)}},click:function(_){_.preventDefault(),_.stopImmediatePropagation(),d(this).trigger(d.Event("contextmenu",{data:_.data,pageX:_.pageX,pageY:_.pageY}))},mousedown:function(_){var P=d(this);t&&t.length&&!t.is(P)&&t.data("contextMenu").$menu.trigger("contextmenu:hide"),2==_.button&&(t=P.data("contextMenuActive",!0))},mouseup:function(_){var P=d(this);P.data("contextMenuActive")&&t&&t.length&&t.is(P)&&!P.hasClass("context-menu-disabled")&&(_.preventDefault(),_.stopImmediatePropagation(),t=P,P.trigger(d.Event("contextmenu",{data:_.data,pageX:_.pageX,pageY:_.pageY}))),P.removeData("contextMenuActive")},mouseenter:function(_){var P=d(this),A=d(_.relatedTarget),T=d(document);A.is(".context-menu-list")||A.closest(".context-menu-list").length||t&&t.length||(m.pageX=_.pageX,m.pageY=_.pageY,m.data=_.data,T.on("mousemove.contextMenuShow",w.mousemove),m.timer=setTimeout(function(){m.timer=null,T.off("mousemove.contextMenuShow"),t=P,P.trigger(d.Event("contextmenu",{data:m.data,pageX:m.pageX,pageY:m.pageY}))},_.data.delay))},mousemove:function(_){m.pageX=_.pageX,m.pageY=_.pageY},mouseleave:function(_){var P=d(_.relatedTarget);if(!P.is(".context-menu-list")&&!P.closest(".context-menu-list").length){try{clearTimeout(m.timer)}catch(A){}m.timer=null}},layerClick:function(_){var W,q,A=d(this).data("contextMenuRoot"),L=_.button,I=_.pageX,F=_.pageY;_.preventDefault(),_.stopImmediatePropagation(),setTimeout(function(){var X,j="left"==A.trigger&&0===L||"right"==A.trigger&&2===L;if(document.elementFromPoint&&(A.$layer.hide(),W=document.elementFromPoint(I-n.scrollLeft(),F-n.scrollTop()),A.$layer.show()),A.reposition&&j)if(document.elementFromPoint){if(A.$trigger.is(W)||A.$trigger.has(W).length)return void A.position.call(A.$trigger,A,I,F)}else if(q=A.$trigger.offset(),X=d(window),q.top+=X.scrollTop(),q.top<=_.pageY&&(q.left+=X.scrollLeft(),q.left<=_.pageX&&(q.bottom=q.top+A.$trigger.outerHeight(),q.bottom>=_.pageY&&(q.right=q.left+A.$trigger.outerWidth(),q.right>=_.pageX))))return void A.position.call(A.$trigger,A,I,F);W&&j&&A.$trigger.one("contextmenu:hidden",function(){d(W).contextMenu({x:I,y:F})}),A.$menu.trigger("contextmenu:hide")},50)},keyStop:function(_,P){P.isInput||_.preventDefault(),_.stopPropagation()},key:function(_){var P=t.data("contextMenu")||{};switch(_.keyCode){case 9:case 38:if(w.keyStop(_,P),P.isInput){if(9==_.keyCode&&_.shiftKey)return _.preventDefault(),P.$selected&&P.$selected.find("input, textarea, select").blur(),void P.$menu.trigger("prevcommand");if(38==_.keyCode&&"checkbox"==P.$selected.find("input, textarea, select").prop("type"))return void _.preventDefault()}else if(9!=_.keyCode||_.shiftKey)return void P.$menu.trigger("prevcommand");case 40:if(w.keyStop(_,P),!P.isInput)return void P.$menu.trigger("nextcommand");if(9==_.keyCode)return _.preventDefault(),P.$selected&&P.$selected.find("input, textarea, select").blur(),void P.$menu.trigger("nextcommand");if(40==_.keyCode&&"checkbox"==P.$selected.find("input, textarea, select").prop("type"))return void _.preventDefault();break;case 37:if(w.keyStop(_,P),P.isInput||!P.$selected||!P.$selected.length)break;if(!P.$selected.parent().hasClass("context-menu-root")){var A=P.$selected.parent().parent();return P.$selected.trigger("contextmenu:blur"),void(P.$selected=A)}break;case 39:if(w.keyStop(_,P),P.isInput||!P.$selected||!P.$selected.length)break;
1var T=P.$selected.data("contextMenu")||{};if(T.$menu&&P.$selected.hasClass("context-menu-submenu"))return P.$selected=null,T.$selected=null,void T.$menu.trigger("nextcommand");break;case 35:case 36:if(P.$selected&&P.$selected.find("input, textarea, select").length)return;return(P.$selected&&P.$selected.parent()||P.$menu).children(":not(.disabled, .not-selectable)")[36==_.keyCode?"first":"last"]().trigger("contextmenu:focus"),void _.preventDefault();case 13:if(w.keyStop(_,P),P.isInput){if(P.$selected&&!P.$selected.is("textarea, select"))return void _.preventDefault();break}return void(P.$selected&&P.$selected.trigger("mouseup"));case 32:case 33:case 34:return void w.keyStop(_,P);case 27:return w.keyStop(_,P),void P.$menu.trigger("contextmenu:hide");default:var L=String.fromCharCode(_.keyCode).toUpperCase();if(P.accesskeys[L])return void P.accesskeys[L].$node.trigger(P.accesskeys[L].$menu?"contextmenu:focus":"mouseup")}_.stopPropagation(),P.$selected&&P.$selected.trigger(_)},prevItem:function(_){_.stopPropagation();var P=d(this).data("contextMenu")||{};if(P.$selected){var A=P.$selected;(P=P.$selected.parent().data("contextMenu")||{}).$selected=A}for(var T=P.$menu.children(),L=P.$selected&&P.$selected.prev().length?P.$selected.prev():T.last(),I=L;L.hasClass("disabled")||L.hasClass("not-selectable");)if((L=L.prev().length?L.prev():T.last()).is(I))return;P.$selected&&w.itemMouseleave.call(P.$selected.get(0),_),w.itemMouseenter.call(L.get(0),_);var F=L.find("input, textarea, select");F.length&&F.focus()},nextItem:function(_){_.stopPropagation();var P=d(this).data("contextMenu")||{};if(P.$selected){var A=P.$selected;(P=P.$selected.parent().data("contextMenu")||{}).$selected=A}for(var T=P.$menu.children(),L=P.$selected&&P.$selected.next().length?P.$selected.next():T.first(),I=L;L.hasClass("disabled")||L.hasClass("not-selectable");)if((L=L.next().length?L.next():T.first()).is(I))return;P.$selected&&w.itemMouseleave.call(P.$selected.get(0),_),w.itemMouseenter.call(L.get(0),_);var F=L.find("input, textarea, select");F.length&&F.focus()},focusInput:function(_){var P=d(this).closest(".context-menu-item"),A=P.data(),T=A.contextMenu,L=A.contextMenuRoot;L.$selected=T.$selected=P,L.isInput=T.isInput=!0},blurInput:function(_){var A=d(this).closest(".context-menu-item").data();A.contextMenuRoot.isInput=A.contextMenu.isInput=!1},menuMouseenter:function(_){var P=d(this).data().contextMenuRoot;P&&(P.hovering=!0)},menuMouseleave:function(_){var P=d(this).data().contextMenuRoot;P&&P.$layer&&P.$layer.is(_.relatedTarget)&&(P.hovering=!1)},itemMouseenter:function(_){var P=d(this),A=P.data(),T=A.contextMenu,L=A.contextMenuRoot;if(L){if(L.hovering=!0,_&&L.$layer&&L.$layer.is(_.relatedTarget)&&(_.preventDefault(),_.stopImmediatePropagation()),(T.$menu?T:L).$menu.children(".hover").trigger("contextmenu:blur"),P.hasClass("disabled")||P.hasClass("not-selectable"))return void(T.$selected=null);P.trigger("contextmenu:focus")}},itemMouseleave:function(_){var P=d(this),A=P.data(),T=A.contextMenu,L=A.contextMenuRoot;if(L&&L!==T&&L.$layer&&L.$layer.is(_.relatedTarget))return L.$selected&&L.$selected.trigger("contextmenu:blur"),_.preventDefault(),_.stopImmediatePropagation(),void(L.$selected=T.$selected=T.$node);P.trigger("contextmenu:blur")},itemClick:function(_){var F,P=d(this),A=P.data(),L=A.contextMenuRoot,I=A.contextMenuKey;if(A.contextMenu.items[I]&&!P.is(".disabled, .context-menu-submenu, .context-menu-separator, .not-selectable")){if(_.preventDefault(),_.stopImmediatePropagation(),d.isFunction(L.callbacks[I])&&Object.prototype.hasOwnProperty.call(L.callbacks,I))F=L.callbacks[I];else{if(!d.isFunction(L.callback))return;F=L.callback}!1!==F.call(L.$trigger,I,L)?L.$menu.trigger("contextmenu:hide"):L.$menu.parent().length&&C.update.call(L.$trigger,L)}},inputClick:function(_){_.stopImmediatePropagation()},hideMenu:function(_,P){var A=d(this).data("contextMenuRoot");C.hide.call(A.$trigger,A,P&&P.force)},focusItem:function(_){_.stopPropagation();var P=d(this),A=P.data(),T=A.contextMenu,L=A.contextMenuRoot;P.addClass("hover").siblings(".hover").trigger("contextmenu:blur"),T.$selected=L.$selected=P,T.$node&&L.positionSubmenu.call(T.$node,T.$menu)},blurItem:function(_){_.stopPropagation();var P=d(this),T=P.data().contextMenu;P.removeClass("hover"),T&&(T.$selected=null)}},C={show:function(_,P,A){var T=d(this),I={};d("#context-menu-layer").trigger("mousedown"),_.$trigger=T,!1!==_.events.show.call(T,_)?(C.update.call(T,_),_.position.call(T,_,P,A),_.zIndex&&(I.zIndex=function(_){for(var P=0,A=_;P=Math.max(P,parseInt(A.css("z-index"),10)||0),(A=A.parent())&&A.length&&!("html body".indexOf(A.prop("nodeName").toLowerCase())>-1););return P}(T)+_.zIndex),C.layer.call(_.$menu,_,I.zIndex),_.$menu.find("ul").css("zIndex",I.zIndex+1),_.$menu.css(I)[_.animation.show](_.animation.duration,function(){T.trigger("contextmenu:visible")}),T.data("contextMenu",_).addClass("context-menu-active"),d(document).off("keydown.contextMenu").on("keydown.contextMenu",w.
1key),_.autoHide&&d(document).on("mousemove.contextMenuAutoHide",function(F){var W=T.offset();W.right=W.left+T.outerWidth(),W.bottom=W.top+T.outerHeight(),_.$layer&&!_.hovering&&(!(F.pageX>=W.left&&F.pageX<=W.right)||!(F.pageY>=W.top&&F.pageY<=W.bottom))&&_.$menu.trigger("contextmenu:hide")})):t=null},hide:function(_,P){var T,A=d(this);if(_||(_=A.data("contextMenu")||{}),P||!_.events||!1!==_.events.hide.call(A,_)){if(A.removeData("contextMenu").removeClass("context-menu-active"),_.$layer){setTimeout((T=_.$layer,function(){T.remove()}),10);try{delete _.$layer}catch(T){_.$layer=null}}t=null,_.$menu.find(".hover").trigger("contextmenu:blur"),_.$selected=null,d(document).off(".contextMenuAutoHide").off("keydown.contextMenu"),_.$menu&&_.$menu[_.animation.hide](_.animation.duration,function(){_.build&&(_.$menu.remove(),d.each(_,function(T,L){switch(T){case"ns":case"selector":case"build":case"trigger":return!0;default:_[T]=a;try{delete _[T]}catch(I){}return!0}})),setTimeout(function(){A.trigger("contextmenu:hidden")},10)})}},create:function(_,P){P===a&&(P=_),_.$menu=d('<ul class="context-menu-list"></ul>').addClass(_.className||"").data({contextMenu:_,contextMenuRoot:P}),d.each(["callbacks","commands","inputs"],function(A,T){_[T]={},P[T]||(P[T]={})}),P.accesskeys||(P.accesskeys={}),d.each(_.items,function(A,T){var L=d('<li class="context-menu-item"></li>').addClass(T.className||""),I=null,F=null;
1if(L.on("click",d.noop),"string"!=typeof T&&(T.$node=L.data({contextMenu:_,contextMenuRoot:P,contextMenuKey:A})),T.accesskey)for(var et,W=function k(O){for(var T,_=O.split(/\s+/),P=[],A=0;T=_[A];A++)T=T[0].toUpperCase(),P.push(T);return P}(T.accesskey),q=0;et=W[q];q++)if(!P.accesskeys[et]){P.accesskeys[et]=T,T._name=T.name.replace(new RegExp("("+et+")","i"),'<span class="context-menu-accesskey">$1</span>');break}if("string"==typeof T)L.addClass("context-menu-separator not-selectable");else if(T.type&&p[T.type])p[T.type].call(L,T,_,P),d.each([_,P],function(X,it){it.commands[A]=T,d.isFunction(T.callback)&&(it.callbacks[A]=T.callback)});else{switch("html"==T.type?L.addClass("context-menu-html not-selectable"):T.type?(I=d("<label></label>").appendTo(L),d("<span></span>").html(T._name||T.name).appendTo(I),L.addClass("context-menu-input"),_.hasTypes=!0,d.each([_,P],function(X,it){it.commands[A]=T,it.inputs[A]=T})):T.items&&(T.type="sub"),T.type){case"text":F=d('<input type="text" value="1" name="" value="">').attr("name","context-menu-input-"+A).val(T.value||"").appendTo(I);break;case"textarea":F=d('<textarea name=""></textarea>').attr("name","context-menu-input-"+A).val(T.value||"").appendTo(I),T.height&&F.height(T.height);break;case"checkbox":F=d('<input type="checkbox" value="1" name="" value="">').attr("name","context-menu-input-"+A).val(T.value||"").prop("checked",!!T.selected).prependTo(I);break;case"radio":F=d('<input type="radio" value="1" name="" value="">').attr("name","context-menu-input-"+T.radio).val(T.value||"").prop("checked",!!T.selected).prependTo(I);break;case"select":F=d('<select name="">').attr("name","context-menu-input-"+A).appendTo(I),T.options&&(d.each(T.options,function(X,it){d("<option></option>").val(X).text(it).appendTo(F)}),F.val(T.selected));break;case"sub":d("<span></span>").html(T._name||T.name).appendTo(L),T.appendTo=T.$node,C.create(T,P),L.data("contextMenu",T).addClass("context-menu-submenu"),T.callback=null;break;case"html":d(T.html).appendTo(L);break;default:d.each([_,P],function(X,it){it.commands[A]=T,d.isFunction(T.callback)&&(it.callbacks[A]=T.callback)}),d("<span></span>").html(T._name||T.name||"").appendTo(L)}T.type&&"sub"!=T.type&&"html"!=T.type&&(F.on("focus",w.focusInput).on("blur",w.blurInput),T.events&&F.on(T.events,_)),T.icon&&L.addClass("icon icon-"+T.icon)}"string"!=typeof T&&(T.$input=F,T.$label=I),L.appendTo(_.$menu),!_.hasTypes&&d.support.eventSelectstart&&L.on("selectstart.disableTextSelect",w.abortevent)}),_.$node||_.$menu.css("display","none").addClass("context-menu-root"),_.$menu.appendTo(_.appendTo||document.body)},resize:function(_,P){_.css({position:"absolute",display:"block"}),_.data("width",Math.ceil(_.width())+1),_.css({position:"static",minWidth:"0px",maxWidth:"100000px"}),_.find("> li > ul").each(function(){C.resize(d(this),!0)}),P||_.find("ul").andSelf().css({position:"",display:"",minWidth:"",maxWidth:""}).width(function(){return d(this).data("width")})},update:function(_,P){var A=this;P===a&&(P=_,C.resize(_.$menu)),_.$menu.children().each(function(){var T=d(this),L=T.data("contextMenuKey"),I=_.items[L],F=I===a||"string"==typeof I||d.isFunction(I.disabled)&&I.disabled.call(A,L,P)||!0===I.disabled;if(T[F?"addClass":"removeClass"]("disabled"),I&&I.type)switch(T.find("input, select, textarea").prop("disabled",F),I.type){case"text":case"textarea":I.$input.val(I.value||"");break;case"checkbox":case"radio":I.$input.val(I.value||"").prop("checked",!!I.selected);break;case"select":I.$input.val(I.selected||"")}I&&I.$menu&&C.update.call(A,I,P)})},layer:function(_,P){var A=_.$layer=d('<div id="context-menu-layer" style="position:fixed; z-index:'+P+'; top:0; left:0; opacity: 0; filter: alpha(opacity=0); background-color: #000;"></div>').css({height:n.height(),width:n.width(),display:"block"}).data("contextMenuRoot",_).insertBefore(this).on("contextmenu",w.abortevent).on("mousedown",w.layerClick);return d.support.fixedPosition||A.css({position:"absolute",height:d(document).height()}),A}};function M(O){return O.id&&d('label[for="'+O.id+'"]').val()||O.name}function N(O,_,P){return P||(P=0),_.each(function(){var I,F,A=d(this),T=this,L=this.nodeName.toLowerCase();switch("label"==L&&A.find("input, textarea, select").length&&(I=A.text(),L=(T=(A=A.children().first()).get(0)).nodeName.toLowerCase()),L){case"menu":F={name:A.attr("label"),items:{}},P=N(F.items,A.children(),P);break;case"a":case"button":F={name:A.text(),disabled:!!A.attr("disabled"),callback:function(){A.click()}};break;case"menuitem":case"command":switch(A.attr("type")){case a:case"command":case"menuitem":F={name:A.attr("label"),disabled:!!A.attr("disabled"),callback:function(){A.click()}};break;case"checkbox":F={type:"checkbox",disabled:!!A.attr("disabled"),name:A.attr("label"),selected:!!A.attr("checked")};break;case"radio":F={type:"radio",disabled:!!A.attr("disabled"),name:A.attr("label"),radio:A.attr("radiogroup"),value:A.attr("id"),selected:!!A.attr("checked")};break;default:F=a}break;case"hr":F="-------";break;case"input":switch(A.attr("type")){case"text":F={type:"text",name:I||M(T),disabled:!!A.attr("disabled"),value:A.val()};break;case"checkbox":F={type:"checkbox",name:I||M(T),disabled:!!A.attr("disabled"),selected:!!A.attr("checked")};break;case"radio":F={type:"radio",name:I||M(T),disabled:!!A.attr("disabled"),radio:!!A.attr("name"),value:A.val(),selected:!!A.attr("checked")};break;default:F=a}break;case"select":F={type:"select",name:I||M(T),disabled:!!A.attr("disabled"),selected:A.val(),options:{}},A.children().each(function(){F.options[this.value]=d(this).text()});break;
1case"textarea":F={type:"textarea",name:I||M(T),disabled:!!A.attr("disabled"),value:A.val()};break;case"label":break;default:F={type:"html",html:A.clone(!0)}}F&&(P++,O["key"+P]=F)}),P}d.fn.contextMenu=function(O){if(O===a)this.first().trigger("contextmenu");else if(O.x&&O.y)this.first().trigger(d.Event("contextmenu",{pageX:O.x,pageY:O.y}));else if("hide"===O){var _=this.data("contextMenu").$menu;_&&_.trigger("contextmenu:hide")}else"destroy"===O?d.contextMenu("destroy",{context:this}):d.isPlainObject(O)?(O.context=this,d.contextMenu("create",O)):O?this.removeClass("context-menu-disabled"):O||this.addClass("context-menu-disabled");return this},d.contextMenu=function(O,_){"string"!=typeof O&&(_=O,O="create"),"string"==typeof _?_={selector:_}:_===a&&(_={});var P=d.extend(!0,{},x,_||{}),A=d(document),T=A,L=!1;switch(P.context&&P.context.length?(T=d(P.context).first(),P.context=T.get(0),L=P.context!==document):P.context=document,O){case"create":if(!P.selector)throw new Error("No selector specified");if(P.selector.match(/.context-menu-(list|item|input)($|\s)/))throw new Error('Cannot bind to selector "'+P.selector+'" as it contains a reserved className');if(!P.build&&(!P.items||d.isEmptyObject(P.items)))throw new Error("No Items sepcified");switch(r++,P.ns=".contextMenu"+r,L||(u[P.selector]=P.ns),l[P.ns]=P,P.trigger||(P.trigger="right"),s||(A.on({"contextmenu:hide.contextMenu":w.hideMenu,"prevcommand.contextMenu":w.prevItem,"nextcommand.contextMenu":w.nextItem,"contextmenu.contextMenu":w.abortevent,"mouseenter.contextMenu":w.menuMouseenter,"mouseleave.contextMenu":w.menuMouseleave},".context-menu-list").on("mouseup.contextMenu",".context-menu-input",w.inputClick).on({"mouseup.contextMenu":w.itemClick,"contextmenu:focus.contextMenu":w.focusItem,"contextmenu:blur.contextMenu":w.blurItem,"contextmenu.contextMenu":w.abortevent,"mouseenter.contextMenu":w.itemMouseenter,"mouseleave.contextMenu":w.itemMouseleave},".context-menu-item"),s=!0),T.on("contextmenu"+P.ns,P.selector,P,w.contextmenu),L&&T.on("remove"+P.ns,function(){d(this).contextMenu("destroy")}),P.trigger){case"hover":T.on("mouseenter"+P.ns,P.selector,P,w.mouseenter).on("mouseleave"+P.ns,P.selector,P,w.mouseleave);break;case"left":T.on("click"+P.ns,P.selector,P,w.click)}P.build||C.create(P);break;case"destroy":var I;if(L){var F=P.context;d.each(l,function(W,q){if(q.context!==F)return!0;(I=d(".context-menu-list").filter(":visible")).length&&I.data().contextMenuRoot.$trigger.is(d(q.context).find(q.selector))&&I.trigger("contextmenu:hide",{force:!0});try{l[q.ns].$menu&&l[q.ns].$menu.remove(),delete l[q.ns]}catch(et){l[q.ns]=null}return d(q.context).off(q.ns),!0})}else if(P.selector){if(u[P.selector]){(I=d(".context-menu-list").filter(":visible")).length&&I.data().contextMenuRoot.$trigger.is(P.selector)&&I.trigger("contextmenu:hide",{force:!0});try{l[u[P.selector]].$menu&&l[u[P.selector]].$menu.remove(),delete l[u[P.selector]]}catch(W){l[u[P.selector]]=null}A.off(u[P.selector])}}else A.off(".contextMenu .contextMenuAutoHide"),d.each(l,function(W,q){d(q.context).off(q.ns)}),u={},l={},r=0,s=!1,d("#context-menu-layer, .context-menu-list").remove();break;case"html5":(!d.support.htmlCommand&&!d.support.htmlMenuitem||"boolean"==typeof _&&_)&&d('menu[type="context"]').each(function(){this.id&&d.contextMenu({selector:"[contextmenu="+this.id+"]",items:d.contextMenu.fromMenu(this)})}).css("display","none");break;default:throw new Error('Unknown operation "'+O+'"')}return this},d.contextMenu.setInputValues=function(O,_){_===a&&(_={}),d.each(O.inputs,function(P,A){switch(A.type){case"text":case"textarea":A.value=_[P]||"";break;case"checkbox":A.selected=!!_[P];break;case"radio":A.selected=(_[A.radio]||"")==A.value;break;case"select":A.selected=_[P]||""}})},d.contextMenu.getInputValues=function(O,_){return _===a&&(_={}),d.each(O.inputs,function(P,A){switch(A.type){case"text":case"textarea":case"select":_[P]=A.$input.val();break;case"checkbox":_[P]=A.$input.prop("checked");break;case"radio":A.$input.prop("checked")&&(_[A.radio]=A.value)}}),_},d.contextMenu.fromMenu=function(O){var P={};return N(P,d(O).children()),P},d.contextMenu.defaults=x,d.contextMenu.types=p,d.contextMenu.handle=w,d.contextMenu.op=C,d.contextMenu.menus=l}(jQuery)},
1"./src/lib/pathfinding.exec.js":function(h,y,c){"use strict";c("./node_modules/script-loader/addScript.js")(c("./node_modules/raw-loader/index.js!./src/lib/pathfinding.exec.js"))},
1"./src/lib/raphael.exec.js":function(h,y,c){"use strict";c("./node_modules/script-loader/addScript.js")(c("./node_modules/raw-loader/index.js!./src/lib/raphael.exec.js"))},
1"./src/packages.js":function(h,y,c){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default={geo:{},io:{json:{},png:{},svg:{}},util:{spline:{}},policy:{canvas:{},connection:{},line:{},port:{},figure:{}},shape:{basic:{},dimetric:{},composite:{},arrow:{},node:{},note:{},diagram:{},flowchart:{},analog:{},icon:{},layout:{},pert:{},state:{},widget:{}},command:{},decoration:{connection:{}},layout:{connection:{},anchor:{},mesh:{},locator:{}},ui:{},isTouchDevice:-1!=navigator.platform.indexOf("iPhone")||-1!=navigator.platform.indexOf("iPod")||-1!=navigator.platform.indexOf("iPad")},h.exports=y.default},
1"./src/policy/EditPolicy.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.policy.EditPolicy=Class.extend({NAME:"draw2d.policy.EditPolicy",init:function(r,u,l){this.setterWhitelist=(0,t.default)({},u),this.getterWhitelist=(0,t.default)({},l),this.attr(r)},attr:function(r,u){if($.isPlainObject(r))for(var l in r){var p=this.setterWhitelist[l];p?p.call(this,r[l]):"function"==typeof r[l]&&(this[l]=r[l].bind(this))}else if("string"==typeof r){if(void 0===u){var x=this.getterWhitelist[r];return"function"==typeof x?x.call(this):void 0}"function"==typeof u&&(u=u());var m=this.setterWhitelist[r];m&&m.call(this,u)}else if(void 0===r){var g={};for(key in this.getterWhitelist)g[key]=this.getterWhitelist[key].call(this);return g}return this},onInstall:function(r){},onUninstall:function(r){}})},
1"./src/policy/canvas/BoundingboxSelectionPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.BoundingboxSelectionPolicy=a.default.policy.canvas.SingleSelectionPolicy.extend({NAME:"draw2d.policy.canvas.BoundingboxSelectionPolicy",init:function(){this.isInsideMode=function(s,n){return s.isInside(n)},this.intersectsMode=function(s,n){return s.intersects(n)},this.decision=this.isInsideMode,this._super(),this.boundingBoxFigure1=null,this.boundingBoxFigure2=null,this.x=0,this.y=0,this.canDrawBoundingBox=!1},select:function(s,n){var r=this;if(!s.getSelection().contains(n)){var u=s.getSelection().getPrimary();null!==n&&n.select(!0),u!==n&&(s.getSelection().setPrimary(n),s.fireEvent("select",{figure:n,selection:s.getSelection()}));var l=s.getSelection();s.getLines().each(function(p,x){x instanceof a.default.Connection&&l.contains(x.getSource().getRoot())&&l.contains(x.getTarget().getRoot())&&r.select(s,x,!1)})}},setDecisionMode:function(s){return this.decision=!0===s?this.intersectsMode:this.isInsideMode,this},onMouseDown:function(s,n,r,u,l){var p=this;try{this.x=n,this.y=r;var x=s.getSelection().getAll();this.mouseMovedDuringMouseDown=!1;var m=!0;this.canDrawBoundingBox=!1;for(var g=s.getBestFigure(n,r);null!==g;){var w=g.getSelectionAdapter()();if(w===g)break;g=w}if(g instanceof a.default.Port)return;null!==g&&!1===g.isSelectable()&&!1===g.isDraggable()&&(g=null),this.canDrawBoundingBox=!0,null!==g&&g.isDraggable()&&(m=g.onDragStart(n-g.getAbsoluteX(),r-g.getAbsoluteY(),u,l),this.mouseDraggingElement=!1===m?null:g),this.mouseDownElement=g,null!==this.mouseDownElement&&this.mouseDownElement.fireEvent("mousedown",{x:n,y:r,shiftKey:u,ctrlKey:l}),!1===u&&null!==this.mouseDownElement&&!1===this.mouseDownElement.isResizeHandle&&!x.contains(this.mouseDownElement)&&x.each(function(C,k){p.unselect(s,k)}),g!==s.getSelection().getPrimary()&&null!==g&&!0===g.isSelectable()&&(this.select(s,g),g instanceof a.default.shape.basic.Line?g instanceof a.default.Connection||(s.draggingLineCommand=g.createCommand(new a.default.command.CommandType(a.default.command.CommandType.MOVE)),null!==s.draggingLineCommand&&(s.draggingLine=g)):!1===m&&g.unselect()),null!==this.mouseDownElement&&!1===this.mouseDownElement.isResizeHandle&&(x=s.getSelection().getAll()).each(function(C,k){var M=1,N=1,O=k.getHandleBBox();null!==O&&(O.translate(k.getAbsolutePosition().scale(-1)),M=O.x+1,N=O.y+1);var _=k.onDragStart(M,N,u,l,!0);k instanceof a.default.shape.basic.Line||!1===_&&p.unselect(s,k)})}catch(C){throw console.log(C),C}},onMouseDrag:function(s,n,r,u,l,p,x){if(!1!==this.canDrawBoundingBox)try{this._super(s,n,r,u,l,p,x),null===this.mouseDraggingElement&&null===this.mouseDownElement&&null===this.boundingBoxFigure1&&(this.boundingBoxFigure1=new a.default.shape.basic.Rectangle({width:1,height:1,x:this.x,y:this.y,bgColor:"#d4d1d4",alpha:.1}),this.boundingBoxFigure1.setCanvas(s),this.boundingBoxFigure2=new a.default.shape.basic.Rectangle({width:1,height:1,x:this.x,y:this.y,dash:"--..",stroke:.5,color:"#37a8ff",bgColor:null}),this.boundingBoxFigure2.setCanvas(s));var m=Math.abs;null!==this.boundingBoxFigure1&&(this.boundingBoxFigure1.setDimension(m(n),m(r)),this.boundingBoxFigure1.setPosition(this.x+Math.min(0,n),this.y+Math.min(0,r)),this.boundingBoxFigure2.setDimension(m(n),m(r)),this.boundingBoxFigure2.setPosition(this.x+Math.min(0,n),this.y+Math.min(0,r)))}catch(g){console.log(g)}},onMouseUp:function(s,n,r,u,l){var p=this;try{if(null===this.mouseDownElement?s.getSelection().getAll().each(function(g,w){p.unselect(s,w)}):this.mouseDownElement instanceof a.default.ResizeHandle||this.mouseDownElement instanceof a.default.shape.basic.LineResizeHandle||null!==this.mouseDownElement&&!1===this.mouseMovedDuringMouseDown&&(s.getSelection().getAll().contains(this.mouseDownElement)||s.getSelection().getAll().each(function(g,w){p.unselect(s,w)})),this._super(s,n,r,u,l),null!==this.boundingBoxFigure1){var m=this.boundingBoxFigure1.getBoundingBox();s.getFigures().each(function(g,w){if(!0===w.isSelectable()&&!0===w.isVisible()&&p.decision(w.getBoundingBox(),m)){var C=1,k=1,M=w.getHandleBBox();null!==M&&(M.translate(w.getAbsolutePosition().scale(-1)),C=M.x+1,k=M.y+1),!0===w.onDragStart(C,k,u,l)&&p.select(s,w)}}),this.boundingBoxFigure1.setCanvas(null),this.boundingBoxFigure1=null,this.boundingBoxFigure2.setCanvas(null),this.boundingBoxFigure2=null}}catch(g){console.log(g)}}})},
1"./src/policy/canvas/CanvasPolicy.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/Color.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.policy.canvas.CanvasPolicy=a.default.policy.EditPolicy.extend({NAME:"draw2d.policy.canvas.CanvasPolicy",init:function(r,u,l){this.canvas=null,this._super(r,u,l)},onInstall:function(r){this.canvas=r},onUninstall:function(r){this.canvas=null},onMouseMove:function(r,u,l,p,x){},onMouseDown:function(r,u,l,p,x){},onMouseDrag:function(r,u,l,p,x,m,g){},onMouseUp:function(r,u,l,p,x){},onRightMouseDown:function(r,u,l,p,x){},onClick:function(r,u,l,p,x){},onDoubleClick:function(r,u,l,p,x){},onMouseWheel:function(r,u,l,p,x){return!0},createMonochromGif:function(r,u,l,p){p=new t.default(p);for(var x=String.fromCharCode(r%256)+String.fromCharCode(r/256)+String.fromCharCode(u%256)+String.fromCharCode(u/256),m="GIF89a"+x+"\xf0\0\0\xff\xff\xff"+String.fromCharCode(p.red)+String.fromCharCode(p.green)+String.fromCharCode(p.blue)+"!\xf9\x04\x01\0\0\0,\0\0\0\0"+x+"\0\x02",g={bit:1,byte_:0,data:"",writeBit:function(M){M&&(this.byte_|=this.bit),this.bit<<=1,256===this.bit&&(this.bit=1,this.data+=String.fromCharCode(this.byte_),this.byte_=0)},get:function(){var M="",N=this.data;1!==this.bit&&(N+=String.fromCharCode(this.byte_));for(var O=0;O<N.length+1;O+=255){var _=N.length-O;_<0&&(_=0),_>255&&(_=255),M+=String.fromCharCode(_)+N.substring(O,O+255)}return M+"\0"}},w=0;w<u;w++)for(var C=0;C<r;C++)g.writeBit(l[C+r*w]),g.writeBit(0),g.writeBit(0),g.writeBit(0),g.writeBit(0),g.writeBit(1);return m+=g.get()+";","data:image/gif;base64,"+a.default.util.Base64.encode(m)}})},
1"./src/policy/canvas/CoronaDecorationPolicy.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.policy.canvas.CoronaDecorationPolicy=a.default.policy.canvas.DecorationPolicy.extend({NAME:"draw2d.policy.canvas.CoronaDecorationPolicy",init:function(r,u,l){this.startDragX=0,this.startDragY=0,this.diameterToBeFullVisible=0,this.diameterToBeVisible=0,this.sumDiameter=0,this._super((0,t.default)({diameterToBeVisible:200,diameterToBeFullVisible:20},r),(0,t.default)({diameterToBeVisible:this.setDiameterToBeVisible,diameterToBeFullVisible:this.setDiameterToBeFullVisible},u),(0,t.default)({diameterToBeVisible:this.getDiameterToBeVisible,diameterToBeFullVisible:this.getDiameterToBeFullVisible},l))},setDiameterToBeVisible:function(r){this.diameterToBeVisible=r,this.sumDiameter=this.diameterToBeFullVisible+this.diameterToBeVisible},getDiameterToBeVisible:function(){return this.diameterToBeVisible},setDiameterToBeFullVisible:function(r){this.diameterToBeFullVisible=r,this.sumDiameter=this.diameterToBeFullVisible+this.diameterToBeVisible},getDiameterToBeFullVisible:function(){return this.diameterToBeFullVisible},onInstall:function(r){this._super(r),r.getFigures().each(function(u,l){l.getPorts().each(function(p,x){return x.setAlpha(0)})})},onUninstall:function(r){this._super(r),r.getFigures().each(function(u,l){l.getPorts().each(function(p,x){x.__origAlpha&&(x.setAlpha(x.__origAlpha),delete x.__origAlpha)})})},onMouseDown:function(r,u,l,p,x){this.startDragX=u,this.startDragY=l},onMouseMove:function(r,u,l,p,x){this.updatePorts(r,u,l)},onMouseDrag:function(r,u,l,p,x,m,g){this.updatePorts(r,this.startDragX+u,this.startDragY+l)},updatePorts:function(r,u,l){var p=this;r.getFigures().each(function(x,m){m instanceof a.default.shape.node.Node&&(!0===m.isVisible()&&!0===m.hitTest(u,l,p.sumDiameter)?m.getPorts().each(function(g,w){!1===w.isVisible()&&(w.__origAlpha=m.getAlpha());var C=m.getBoundingBox().getDistance(new a.default.geo.Point(u,l)),k=Math.max(0,1-100/(p.diameterToBeVisible-p.diameterToBeFullVisible)*C/100);w.setAlpha(k)}):m.getPorts().each(function(g,w){w.setAlpha(0)}))})}})},
1"./src/policy/canvas/DecorationPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.DecorationPolicy=a.default.policy.canvas.CanvasPolicy.extend({NAME:"draw2d.policy.canvas.DecorationPolicy",init:function(s,n,r){this._super(s,n,r)}})},
1"./src/policy/canvas/DefaultKeyboardPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.DefaultKeyboardPolicy=a.default.policy.canvas.KeyboardPolicy.extend({NAME:"draw2d.policy.canvas.DefaultKeyboardPolicy",init:function(){this._super()},onKeyDown:function(s,n,r,u){if(46===n&&null!==s.getPrimarySelection()){s.getCommandStack().startTransaction(a.default.Configuration.i18n.command.deleteShape);var l=s.getSelection();l.each(function(p,x){if(!(x instanceof a.default.Connection&&(l.contains(x.getSource(),!0)||l.contains(x.getTarget(),!0)))){var m=x.createCommand(new a.default.command.CommandType(a.default.command.CommandType.DELETE));null!==m&&s.getCommandStack().execute(m)}}),s.getCommandStack().commitTransaction()}else this._super(s,n,r,u)}})},
1"./src/policy/canvas/DropInterceptorPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.DropInterceptorPolicy=a.default.policy.canvas.CanvasPolicy.extend({NAME:"draw2d.policy.canvas.DropInterceptorPolicy",init:function(s,n,r){this._super(s,n,r)},delegateTarget:function(s,n){return!(s instanceof a.default.Port)&&n instanceof a.default.shape.composite.StrongComposite?n:n instanceof a.default.Port&&s instanceof a.default.Port&&n.getSemanticGroup()!==s.getSemanticGroup()||!(n instanceof a.default.Port)||!(s instanceof a.default.Port)||n.getConnections().getSize()>=n.getMaxFanOut()||s instanceof a.default.OutputPort&&n instanceof a.default.OutputPort||s instanceof a.default.InputPort&&n instanceof a.default.InputPort||s instanceof a.default.Port&&n instanceof a.default.Port&&s.getParent()===n.getParent()?null:s instanceof a.default.Port&&n instanceof a.default.shape.node.Hub?n.getHybridPort(0):n}})},
1"./src/policy/canvas/ExtendedKeyboardPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.ExtendedKeyboardPolicy=a.default.policy.canvas.KeyboardPolicy.extend({NAME:"draw2d.policy.canvas.ExtendedKeyboardPolicy",init:function(){this._super()},onKeyDown:function(s,n,r,u){if(null!==s.getPrimarySelection()&&!0===u)switch(n){case 71:s.getPrimarySelection()instanceof a.default.shape.composite.Group&&1===s.getSelection().getSize()?s.getCommandStack().execute(new a.default.command.CommandUngroup(s,s.getPrimarySelection())):s.getCommandStack().execute(new a.default.command.CommandGroup(s,s.getSelection()));break;case 66:s.getPrimarySelection().toBack();break;case 70:s.getPrimarySelection().toFront()}else this._super(s,n,r,u)}})},
1"./src/policy/canvas/FadeoutDecorationPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.FadeoutDecorationPolicy=a.default.policy.canvas.DecorationPolicy.extend({NAME:"draw2d.policy.canvas.FadeoutDecorationPolicy",DEFAULT_FADEOUT_DURATION:60,DEFAULT_ALPHA_DECREMENT:.05,init:function(){this._super(),this.alpha=1,this.alphaDec=this.DEFAULT_ALPHA_DECREMENT,this.hidePortsCounter=this.DEFAULT_FADEOUT_DURATION,this.portDragging=!1},onInstall:function(s){this._super(s),this.timerId=window.setInterval(this.onTimer.bind(this),50),this.hidePortsCounter=1,this.alpha=.1},onUninstall:function(s){window.clearInterval(this.timerId),this.canvas.getAllPorts().each(function(n,r){r.setAlpha(1)}),this._super(s)},onTimer:function(){var s=this;this.hidePortsCounter--,this.hidePortsCounter<=0&&this.alpha>0?(this.alpha=Math.max(0,this.alpha-this.alphaDec),this.canvas.getAllPorts().each(function(n,r){r.setAlpha(s.alpha)}),this.canvas.getSelection().getAll().each(function(n,r){r.selectionHandles.each(function(u,l){l.setAlpha(s.alpha)})})):this.hidePortsCounter>0&&1!==this.alpha&&(this.alpha=1,this.alphaDec=this.DEFAULT_ALPHA_DECREMENT,this.duringHide=!1,this.canvas.getAllPorts().each(function(n,r){r.setAlpha(s.alpha)}),this.canvas.getSelection().getAll().each(function(n,r){r.selectionHandles.each(function(u,l){l.setAlpha(s.alpha)})}))},onMouseDown:function(s,n,r,u,l){this.hidePortsCounter=this.DEFAULT_FADEOUT_DURATION,this.portDragging=s.getBestFigure(n,r)instanceof a.default.Port},onMouseMove:function(s,n,r,u,l){this.hidePortsCounter=this.DEFAULT_FADEOUT_DURATION,this.portDragging=!1},onMouseDrag:function(s,n,r,u,l,p,x){!1===this.portDragging&&(this.hidePortsCounter=0,this.alphaDec=.1,this.onTimer())},onMouseUp:function(s,n,r,u,l){this.hidePortsCounter=this.DEFAULT_FADEOUT_DURATION,this.portDragging=!1}})},
1"./src/policy/canvas/GhostMoveSelectionPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.GhostMoveSelectionPolicy=a.default.policy.canvas.SingleSelectionPolicy.extend({NAME:"draw2d.policy.canvas.GhostMoveSelectionPolicy",init:function(){this.clone=null,this.ghostRectangle1=null,this.ghostRectangle2=null,this._super()},onMouseDrag:function(s,n,r,u,l,p,x){if(this.mouseMovedDuringMouseDown=!0,null!==this.mouseDraggingElement){var m=s.getSelection().getAll();m.contains(this.mouseDraggingElement)?(null===this.ghostRectangle1?(this.ghostRectangle1=new a.default.shape.basic.Rectangle,this.ghostRectangle1.setBackgroundColor("#303030"),this.ghostRectangle1.setAlpha(.1),this.ghostRectangle2=new a.default.shape.basic.Rectangle,this.ghostRectangle2.setDashArray("- "),this.ghostRectangle2.setStroke(1),this.ghostRectangle2.setColor("#5497DC"),this.ghostRectangle2.setBackgroundColor(null),this.ghostRectangle1.setBoundingBox(this.mouseDraggingElement.getBoundingBox()),this.ghostRectangle2.setBoundingBox(this.mouseDraggingElement.getBoundingBox()),this.ghostRectangle1.setCanvas(s),this.ghostRectangle1.toFront(),this.ghostRectangle2.setCanvas(s),this.ghostRectangle2.toFront(),this.clone=this.mouseDraggingElement.clone(),this.clone instanceof a.default.shape.node.Node&&this.clone.resetPorts(),this.clone.setCanvas(s),this.clone.getShapeElement(),this.clone.setAlpha(.4),this.clone.repaint()):(this.ghostRectangle1.translate(u,l),this.ghostRectangle2.translate(u,l),this.clone.translate(u,l)),m.each(function(C,k){k._newPos=new a.default.geo.Point(k.ox+n,k.oy+r)})):this.mouseDraggingElement.onDrag(n,r,u,l,p,x);var g=s.fromDocumentToCanvasCoordinate(s.mouseDownX+n/s.zoomFactor,s.mouseDownY+r/s.zoomFactor),w=s.getBestFigure(g.x,g.y,this.mouseDraggingElement);w!==s.currentDropTarget&&(null!==s.currentDropTarget&&(s.currentDropTarget.onDragLeave(this.mouseDraggingElement),s.currentDropTarget.fireEvent("dragLeave",{draggingElement:this.draggingElement}),s.currentDropTarget=null),null!==w&&(s.currentDropTarget=w.delegateTarget(this.mouseDraggingElement),null!==s.currentDropTarget&&(s.currentDropTarget.onDragEnter(this.mouseDraggingElement),s.currentDropTarget.fireEvent("dragEnter",{draggingElement:this.draggingElement}))))}else null!==this.mouseDownElement&&!(this.mouseDownElement instanceof a.default.Connection)&&(null!==this.mouseDownElement.panningDelegate?(this.mouseDownElement.panningDelegate.fireEvent("panning",{dx:n,dy:r,dx2:u,dy2:l,shiftKey:p,ctrlKey:x}),this.mouseDownElement.panningDelegate.onPanning(n,r,u,l,p,x)):(this.mouseDownElement.fireEvent("panning",{dx:n,dy:r,dx2:u,dy2:l,shiftKey:p,ctrlKey:x}),this.mouseDownElement.onPanning(n,r,u,l,p,x)))},onMouseUp:function(s,n,r,u,l){if(null!==this.ghostRectangle1&&(this.ghostRectangle1.setCanvas(null),this.ghostRectangle1=null,this.ghostRectangle2.setCanvas(null),this.ghostRectangle2=null,this.clone.setCanvas(null),this.clone=null),null!==this.mouseDraggingElement){var p=new a.default.util.ArrayList;this.mouseDraggingElement instanceof a.default.shape.node.Node&&s.lineIntersections.each(function(m,g){p.contains(g.line)||p.add(g.line),p.contains(g.other)||p.add(g.other)}),s.getCommandStack().startTransaction(),s.getSelection().getAll().contains(this.mouseDraggingElement)?s.getSelection().getAll().each(function(m,g){g._newPos&&(g.setPosition(g._newPos),delete g._newPos),g.onDragEnd(n,r,u,l)}):this.mouseDraggingElement.onDragEnd(n,r,u,l),null!==s.currentDropTarget&&!this.mouseDraggingElement.isResizeHandle&&(this.mouseDraggingElement.onDrop(s.currentDropTarget,n,r,u,l),s.currentDropTarget.onDragLeave(this.mouseDraggingElement),s.currentDropTarget.onCatch(this.mouseDraggingElement,n,r,u,l),s.currentDropTarget=null),s.getCommandStack().commitTransaction(),this.mouseDraggingElement instanceof a.default.shape.node.Node&&(s.lineIntersections.each(function(m,g){p.contains(g.line)||p.add(g.line),p.contains(g.other)||p.add(g.other)}),p.each(function(m,g){g.svgPathString=null,g.repaint()})),this.mouseDraggingElement=null}null===this.mouseDownElement&&!1===this.mouseMovedDuringMouseDown&&this.select(s,null),this.mouseDownElement=null,this.mouseMovedDuringMouseDown=!1}})},
1"./src/policy/canvas/KeyboardPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.KeyboardPolicy=a.default.policy.canvas.CanvasPolicy.extend({NAME:"draw2d.policy.canvas.KeyboardPolicy",init:function(s,n,r){this._super(s,n,r)},onKeyUp:function(s,n,r,u){},onKeyDown:function(s,n,r,u){}})},
1"./src/policy/canvas/PanningSelectionPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.PanningSelectionPolicy=a.default.policy.canvas.SingleSelectionPolicy.extend({NAME:"draw2d.policy.canvas.PanningSelectionPolicy",init:function(){this._super()},onMouseDrag:function(s,n,r,u,l,p,x){if(this._super(s,n,r,u,l,p,x),null===this.mouseDraggingElement&&null===this.mouseDownElement){var m=s.fromDocumentToCanvasCoordinate(s.mouseDownX+n/s.zoomFactor,s.mouseDownY+r/s.zoomFactor);if(null===s.getBestFigure(m.x,m.y)){var w=s.getScrollArea();w.scrollTop(w.scrollTop()-l),w.scrollLeft(w.scrollLeft()-u)}}}})},
1"./src/policy/canvas/ReadOnlySelectionPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.ReadOnlySelectionPolicy=a.default.policy.canvas.SelectionPolicy.extend({NAME:"draw2d.policy.canvas.ReadOnlySelectionPolicy",init:function(s,n,r){this._super(s,n,r)},onInstall:function(s){this._super(s),s.getAllPorts().each(function(n,r){r.setVisible(!1)})},onUninstall:function(s){s.getAllPorts().each(function(n,r){r.setVisible(!0)}),this._super(s)},onMouseDrag:function(s,n,r,u,l,p,x){var m=s.getScrollArea();m.scrollTop(m.scrollTop()-l),m.scrollLeft(m.scrollLeft()-u)}})},
1"./src/policy/canvas/SelectionPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.SelectionPolicy=a.default.policy.canvas.CanvasPolicy.extend({NAME:"draw2d.policy.canvas.SelectionPolicy",init:function(s,n,r){this._super(s,n,r)},select:function(s,n){},unselect:function(s,n){s.getSelection().remove(n),n.unselect(),s.fireEvent("unselect",{figure:n})}})},
1"./src/policy/canvas/ShowChessboardEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.ShowChessboardEditPolicy=a.default.policy.canvas.DecorationPolicy.extend({NAME:"draw2d.policy.canvas.ShowChessboardEditPolicy",GRID_COLOR:"#e0e0e0",GRID_WIDTH:20,init:function(s){this._super(),this.grid=s||this.GRID_WIDTH},onInstall:function(s){var n=this;this._super(s),this.oldBg=this.canvas.html.css("background"),this.setGrid(1/s.getZoom()),this.onZoomCallback=function(r,u){n.setGrid(1/u.value)},s.on("zoom",this.onZoomCallback)},onUninstall:function(s){this._super(s),$(s.paper.canvas).css({background:this.oldBg}),s.off(this.onZoomCallback)},setGrid:function(s){var n=this.GRID_COLOR,r="linear-gradient(45deg, "+n+" 25%, transparent 25%, transparent 75%, "+n+" 75%, "+n+" 100%),\nlinear-gradient(45deg, "+n+" 25%, transparent 25%, transparent 75%, "+n+" 75%, "+n+" 100%)",u=2*this.grid*s+"px "+2*this.grid*s+"px",l="0 0, "+this.grid*s+"px "+this.grid*s+"px";$(this.canvas.paper.canvas).css({background:r,"background-size":u,"background-position":l})}})},
1"./src/policy/canvas/ShowDimetricGridEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.ShowDimetricGridEditPolicy=a.default.policy.canvas.DecorationPolicy.extend({NAME:"draw2d.policy.canvas.ShowDimetricGridEditPolicy",GRID_COLOR:"#f0f0f0",GRID_WIDTH:30,init:function(s){this.color=new a.default.util.Color(this.GRID_COLOR),this.zoom=1,this.shapes=null,this._super(),this.grid="number"==typeof s?s:this.GRID_WIDTH},onInstall:function(s){this._super(s),this.zoom=s.getZoom(),this.setGrid(this.grid)},onUninstall:function(s){this._super(s),null!==this.shapes&&this.shapes.remove()},setGridColor:function(s){this.color=new a.default.util.Color(s),this.setGrid(this.grid)},setGrid:function(s){if(this.grid=s,null!=this.canvas){null!==this.shapes&&this.shapes.remove();var n=this.canvas.paper,r=this.grid,u=void 0,l=n.width,p=n.height,x={stroke:this.color.rgba()},m=Math.sqrt(l*l+p*p),g=Math.atan(.5),w=Math.PI-g,C=Math.cos(g),k=Math.sin(g),M=Math.cos(w),N=Math.sin(w);for(n.setStart(),u=0;u<=l;u+=2*r)n.path([["M",u,0],["L",u+C*m,k*m]]).attr(x),n.path([["M",u,0],["L",u+M*m,N*m]]).attr(x);for(u=r;u<=p;u+=r)n.path([["M",0,u],["L",C*m,u+k*m]]).attr(x),n.path([["M",l,u],["L",l+M*m,u+N*m]]).attr(x);this.shapes=n.setFinish(),this.shapes.toBack()}}})},
1"./src/policy/canvas/ShowDotEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.ShowDotEditPolicy=a.default.policy.canvas.DecorationPolicy.extend({NAME:"draw2d.policy.canvas.ShowDotEditPolicy",DOT_COLOR:"#999999",DOT_RADIUS:1,DOT_DISTANCE:20,init:function(s,n,r){var u=this;this._super(),this.dotDistance=s||this.DOT_DISTANCE,this.dotRadius=n||this.DOT_RADIUS,this.dotColor=new a.default.util.Color(r||this.DOT_COLOR),this.onZoomCallback=function(l,p){u.setGrid(1/p.value)}},onInstall:function(s){this._super(s),this.oldBg=this.canvas.html.css("background"),this.setGrid(1/s.getZoom()),s.on("zoom",this.onZoomCallback)},onUninstall:function(s){this._super(s),$(s.paper.canvas).css({background:this.oldBg}),s.off(this.onZoomCallback)},setGrid:function(s){var n="#FFFFFF",r=this.dotColor.rgba(),u="linear-gradient(90deg, "+n+" "+(this.dotDistance-this.dotRadius)*s+"px, transparent 1%) center, linear-gradient("+n+" "+(this.dotDistance-this.dotRadius)*s+"px, transparent 1%) center, "+r,l=this.dotDistance*s+"px "+this.dotDistance*s+"px";$(this.canvas.paper.canvas).css({background:u,"background-size":l})}})},
1"./src/policy/canvas/ShowGridEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.ShowGridEditPolicy=a.default.policy.canvas.DecorationPolicy.extend({NAME:"draw2d.policy.canvas.ShowGridEditPolicy",GRID_COLOR:"#f0f0f0",GRID_WIDTH:20,GRID_STOKE:1,init:function(s,n,r){var u=this;this.gridWidth=s||this.GRID_WIDTH,this.gridStroke=n||this.GRID_STOKE,this.gridColor=new a.default.util.Color(r||this.GRID_COLOR),this._super(),this.onZoomCallback=function(l,p){u.setGrid(1/p.value)}},setGridColor:function(s){this.gridColor=new a.default.util.Color(s),this.setGrid(1/this.canvas.getZoom())},onInstall:function(s){this._super(s),this.oldBg=this.canvas.html.css("background"),this.setGrid(1/s.getZoom()),s.on("zoom",this.onZoomCallback)},onUninstall:function(s){this._super(s),$(s.paper.canvas).css({background:this.oldBg}),s.off(this.onZoomCallback)},setGrid:function(s){var r=this.gridColor.rgba(),u=" linear-gradient(to right, "+r+" "+this.gridStroke+"px, transparent "+this.gridStroke+"px),\n linear-gradient(to bottom, "+r+" "+this.gridStroke+"px, #FFFFFF "+this.gridStroke+"px)",l=this.gridWidth*s+"px "+this.gridWidth*s+"px";$(this.canvas.paper.canvas).css({background:u,"background-size":l})}})},
1"./src/policy/canvas/SingleSelectionPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.SingleSelectionPolicy=a.default.policy.canvas.SelectionPolicy.extend({NAME:"draw2d.policy.canvas.SingleSelectionPolicy",init:function(){this._super(),this.mouseMovedDuringMouseDown=!1,this.mouseDraggingElement=null,this.mouseDownElement=null},select:function(s,n){if(!s.getSelection().contains(n)){var r=s.getSelection().getPrimary();null!==s.getSelection().getPrimary()&&this.unselect(s,s.getSelection().getPrimary()),null!==n&&n.select(!0),s.getSelection().setPrimary(n),r!==n&&s.fireEvent("select",{figure:n,selection:s.getSelection()})}},onMouseDown:function(s,n,r,u,l){this.mouseMovedDuringMouseDown=!1;for(var p=!0,x=s.getBestFigure(n,r);null!==x;){var m=x.getSelectionAdapter()();if(m===x)break;x=m}x instanceof a.default.Port||(null!==x&&x.isDraggable()&&(p=x.onDragStart(n-x.getAbsoluteX(),r-x.getAbsoluteY(),u,l),this.mouseDraggingElement=!1===p?null:x),this.mouseDownElement=x,null!==this.mouseDownElement&&this.mouseDownElement.fireEvent("mousedown",{x:n,y:r,shiftKey:u,ctrlKey:l}),x!==s.getSelection().getPrimary()&&null!==x&&!0===x.isSelectable()&&(this.select(s,x),x instanceof a.default.shape.basic.Line?x instanceof a.default.Connection||(s.draggingLineCommand=x.createCommand(new a.default.command.CommandType(a.default.command.CommandType.MOVE)),null!==s.draggingLineCommand&&(s.draggingLine=x)):!1===p&&x.unselect()))},onMouseDrag:function(s,n,r,u,l,p,x){if(this.mouseMovedDuringMouseDown=!0,null!==this.mouseDraggingElement){var m=s.getSelection();m.contains(this.mouseDraggingElement)?m.each(function(C,k){k.onDrag(n,r,u,l,p,x)}):this.mouseDraggingElement.onDrag(n,r,u,l,p,x);var g=s.fromDocumentToCanvasCoordinate(s.mouseDownX+n/s.zoomFactor,s.mouseDownY+r/s.zoomFactor),w=s.getBestFigure(g.x,g.y,this.mouseDraggingElement);w!==s.currentDropTarget&&(null!==s.currentDropTarget&&(s.currentDropTarget.onDragLeave(this.mouseDraggingElement),s.currentDropTarget.fireEvent("dragLeave",{draggingElement:this.mouseDraggingElement}),s.currentDropTarget=null),null!==w&&(s.currentDropTarget=w.delegateTarget(this.mouseDraggingElement),null!==s.currentDropTarget&&(s.currentDropTarget.onDragEnter(this.mouseDraggingElement),s.currentDropTarget.fireEvent("dragEnter",{draggingElement:this.mouseDraggingElement}))))}else null!==this.mouseDownElement&&!(this.mouseDownElement instanceof a.default.Connection)&&(null!==this.mouseDownElement.panningDelegate?(this.mouseDownElement.panningDelegate.fireEvent("panning",{dx:n,dy:r,dx2:u,dy2:l,shiftKey:p,ctrlKey:x}),this.mouseDownElement.panningDelegate.onPanning(n,r,u,l,p,x)):(this.mouseDownElement.fireEvent("panning",{dx:n,dy:r,dx2:u,dy2:l,shiftKey:p,ctrlKey:x}),this.mouseDownElement.onPanning(n,r,u,l,p,x)))},onMouseUp:function(s,n,r,u,l){if(null!==this.mouseDraggingElement){var p=new a.default.util.ArrayList;this.mouseDraggingElement instanceof a.default.shape.node.Node&&s.lineIntersections.each(function(m,g){p.contains(g.line)||p.add(g.line),p.contains(g.other)||p.add(g.other)}),s.getCommandStack().startTransaction(),s.getSelection().getAll().contains(this.mouseDraggingElement)?s.getSelection().getAll().each(function(m,g){g.onDragEnd(n,r,u,l)}):this.mouseDraggingElement.onDragEnd(n,r,u,l),null!==s.currentDropTarget&&!this.mouseDraggingElement.isResizeHandle&&(this.mouseDraggingElement.onDrop(s.currentDropTarget,n,r,u,l),s.currentDropTarget.onDragLeave(this.mouseDraggingElement),s.currentDropTarget.fireEvent("dragLeave",{draggingElement:this.mouseDraggingElement}),s.currentDropTarget.onCatch(this.mouseDraggingElement,n,r,u,l),s.currentDropTarget=null),s.getCommandStack().commitTransaction(),this.mouseDraggingElement instanceof a.default.shape.node.Node&&(s.lineIntersections.each(function(m,g){p.contains(g.line)||p.add(g.line),p.contains(g.other)||p.add(g.other)}),p.each(function(m,g){g.svgPathString=null,g.repaint()})),this.mouseDraggingElement=null}else null!==this.mouseDownElement&&!(this.mouseDownElement instanceof a.default.Connection)&&(null!==this.mouseDownElement.panningDelegate?(this.mouseDownElement.panningDelegate.fireEvent("panningEnd"),this.mouseDownElement.panningDelegate.onPanningEnd()):(this.mouseDownElement.fireEvent("panningEnd"),this.mouseDownElement.onPanningEnd()));null===this.mouseDownElement&&!1===this.mouseMovedDuringMouseDown&&this.select(s,null),null!==this.mouseDownElement&&this.mouseDownElement.fireEvent("mouseup",{x:n,y:r,shiftKey:u,ctrlKey:l}),this.mouseDownElement=null,this.mouseMovedDuringMouseDown=!1},onClick:function(s,n,r,u,l){null!==s&&(s.fireEvent("click",{figure:s,x:n,y:r,relX:n-s.getAbsoluteX(),relY:r-s.getAbsoluteY(),shiftKey:u,ctrlKey:l}),s.onClick())},onDoubleClick:function(s,n,r,u,l){null!==s&&(s.fireEvent("dblclick",{x:n,y:r,shiftKey:u,ctrlKey:l}),s.onDoubleClick())}})},
1"./src/policy/canvas/SnapToCenterEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.SnapToCenterEditPolicy=a.default.policy.canvas.SnapToEditPolicy.extend({NAME:"draw2d.policy.canvas.SnapToCenterEditPolicy",SNAP_THRESHOLD:5,FADEOUT_DURATION:500,init:function(s,n,r){this._super(s,n,r),this.centers=null,this.horizontalGuideLines=null,this.verticalGuideLines=null},onMouseUp:function(s,n,r,u,l){this.centers=null,this.hideHorizontalGuides(!1),this.hideVerticalGuides(!1)},snap:function(s,n,r,u){if(n instanceof a.default.ResizeHandle||n instanceof a.default.shape.basic.Line)return r;var l=r.x===u.x,p=r.y===u.y,m=new a.default.geo.Rectangle(r.x,r.y,n.getWidth(),n.getHeight()).getCenter();if(r=r.clone(),!0===l){var g=this.snapHorizontal(m);g.snapped?(this.showHorizontalGuides(n,g),r.y+=g.diff):this.hideHorizontalGuides(!0)}else this.hideHorizontalGuides(!0);if(!0===p){var w=this.snapVertical(m);w.snapped?(this.showVerticalGuides(n,w),r.x+=w.diff):this.hideVerticalGuides(!0)}else this.hideVerticalGuides(!0);return r},snapVertical:function(s){var n=this;null===this.centers&&this.populateCenters();var r={point:s,snapped:!1,diff:0},u=[];if(this.centers.forEach(function(x){Math.abs(x.x-s.x)<n.SNAP_THRESHOLD&&u.push(x)}),0===u.length)return r;u.sort(function(x,m){return x.x-m.x});var l=u[0].x-s.x,p=s.clone();return p.x+=l,{snapped:!0,diff:l,point:u[0],snappedPoint:p}},snapHorizontal:function(s){var n=this;null===this.centers&&this.populateCenters();var r={point:s,snapped:!1,diff:0},u=[];if(this.centers.forEach(function(x){Math.abs(x.y-s.y)<n.SNAP_THRESHOLD&&u.push(x)}),0===u.length)return r;u.sort(function(x,m){return x.y-m.y});var l=u[0].y-s.y,p=s.clone();return p.y+=l,{snapped:!0,diff:l,point:u[0],snappedPoint:p}},populateCenters:function(){var s=this.canvas.getSelection().getAll(!0),n=this.centers=[];this.canvas.getFigures().each(function(u,l){s.contains(l)||n.push(l.getBoundingBox().getCenter())})},showHorizontalGuides:function(s,n){null!==this.horizontalGuideLines&&(this.horizontalGuideLines.stop(),this.horizontalGuideLines.remove());var r=n.point,u=n.snappedPoint;this.canvas.paper.setStart(),this.canvas.paper.path("M "+r.x+" "+(.5+(0|r.y))+" L "+u.x+" "+(.5+(0|u.y))).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.horizontalGuideLines=this.canvas.paper.setFinish(),this.horizontalGuideLines.toFront()},hideHorizontalGuides:function(s){var n=this;null!==this.horizontalGuideLines&&(!0===s?null!==this.horizontalGuideLines&&(this.horizontalGuideLines.remove(),this.horizontalGuideLines=null):this.horizontalGuideLines.animate({opacity:.1},this.FADEOUT_DURATION,function(){null!==n.horizontalGuideLines&&(n.horizontalGuideLines.remove(),n.horizontalGuideLines=null)}))},showVerticalGuides:function(s,n){null!==this.verticalGuideLines&&(this.verticalGuideLines.stop(),this.verticalGuideLines.remove());var r=n.point,u=n.snappedPoint;this.canvas.paper.setStart(),this.canvas.paper.path("M "+(.5+(0|r.x))+" "+r.y+" L "+(.5+(0|u.x))+" "+u.y).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.verticalGuideLines=this.canvas.paper.setFinish(),this.verticalGuideLines.toFront()},hideVerticalGuides:function(s){var n=this;null!==this.verticalGuideLines&&(!0===s?null!==this.verticalGuideLines&&(this.verticalGuideLines.remove(),this.verticalGuideLines=null):this.verticalGuideLines.animate({opacity:.1},this.FADEOUT_DURATION,function(){null!==n.verticalGuideLines&&(n.verticalGuideLines.remove(),n.verticalGuideLines=null)}))}})},
1"./src/policy/canvas/SnapToDimetricGridEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.SnapToDimetricGridEditPolicy=a.default.policy.canvas.ShowDimetricGridEditPolicy.extend({NAME:"draw2d.policy.canvas.SnapToDimetricGridEditPolicy",init:function(s){this._super(s)},snap:function(s,n,r,u){if(n instanceof a.default.shape.basic.Line)return r;var l=n.getSnapToGridAnchor();r.x=r.x+l.x,r.y=r.y+l.y;var p=this.grid/5;return r.x=p*Math.floor((r.x+p/2)/p),r.y=p*Math.floor((r.y+p/2)/p),r.x=r.x-l.x,r.y=r.y-l.y,r}})},
1"./src/policy/canvas/SnapToEditPolicy.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.SnapToHelper={},a.default.SnapToHelper.NORTH=1,a.default.SnapToHelper.SOUTH=4,a.default.SnapToHelper.WEST=8,a.default.SnapToHelper.EAST=16,a.default.SnapToHelper.CENTER_H=32,a.default.SnapToHelper.CENTER_V=642,a.default.SnapToHelper.NORTH_EAST=a.default.SnapToHelper.NORTH|a.default.SnapToHelper.EAST,a.default.SnapToHelper.NORTH_WEST=a.default.SnapToHelper.NORTH|a.default.SnapToHelper.WEST,a.default.SnapToHelper.SOUTH_EAST=a.default.SnapToHelper.SOUTH|a.default.SnapToHelper.EAST,a.default.SnapToHelper.SOUTH_WEST=a.default.SnapToHelper.SOUTH|a.default.SnapToHelper.WEST,a.default.SnapToHelper.NORTH_SOUTH=a.default.SnapToHelper.NORTH|a.default.SnapToHelper.SOUTH,a.default.SnapToHelper.EAST_WEST=a.default.SnapToHelper.EAST|a.default.SnapToHelper.WEST,a.default.SnapToHelper.NSEW=a.default.SnapToHelper.NORTH_SOUTH|a.default.SnapToHelper.EAST_WEST,a.default.policy.canvas.SnapToEditPolicy=a.default.policy.canvas.CanvasPolicy.extend({NAME:"draw2d.policy.canvas.SnapToEditPolicy",init:function(r,u,l){this.lineColor=null,this._super((0,t.default)({lineColor:"#51C1FC"},r),(0,t.default)({lineColor:this.setLineColor},u),(0,t.default)({lineColor:this.getLineColor},l))},setLineColor:function(r){return this.lineColor=new a.default.util.Color(r),this},getLineColor:function(){return this.lineColor},snap:function(r,u,l,p){return l}})},
1"./src/policy/canvas/SnapToGeometryEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.SnapToGeometryEditPolicy=a.default.policy.canvas.SnapToEditPolicy.extend({NAME:"draw2d.policy.canvas.SnapToGeometryEditPolicy",SNAP_THRESHOLD:3,FADEOUT_DURATION:300,init:function(s,n,r){this._super(s,n,r),this.rows=null,this.cols=null,this.vline=null,this.hline=null},onMouseUp:function(s,n,r,u,l){this.rows=null,this.cols=null,this.hideVerticalLine(),this.hideHorizontalLine()},snap:function(s,n,r,u){if(n instanceof a.default.shape.basic.Line)return r;var l=void 0,p=r.x===u.x,x=r.y===u.y;if(!p&&!x)return r;if(n instanceof a.default.ResizeHandle){var m=n.getSnapToGridAnchor();r.x+=m.x,r.y+=m.y;var g=n.getSnapToDirection();return l=this.snapPoint(g,r),p&&g&a.default.SnapToHelper.EAST_WEST&&!(l.edge&a.default.SnapToHelper.EAST_WEST)?this.showVerticalLine(n,a.default.SnapToHelper.WEST,l.point.x):this.hideVerticalLine(),x&&g&a.default.SnapToHelper.NORTH_SOUTH&&!(l.edge&a.default.SnapToHelper.NORTH_SOUTH)?this.showHorizontalLine(n,a.default.SnapToHelper.NORTH,l.point.y):this.hideHorizontalLine(),l.point.x=p?l.point.x-m.x:r.x,l.point.y=x?l.point.y-m.y:r.y,l.point}var w=new a.default.geo.Rectangle(r.x,r.y,n.getWidth(),n.getHeight());return l=this.snapRectangle(w),p||(l.bounds.x=r.x),x||(l.bounds.y=r.y),!p||l.edge&a.default.SnapToHelper.WEST?!p||l.edge&a.default.SnapToHelper.EAST?this.hideVerticalLine():this.showVerticalLine(n,a.default.SnapToHelper.EAST,l.bounds.x+l.bounds.getWidth()):this.showVerticalLine(n,a.default.SnapToHelper.WEST,l.bounds.x),!x||l.edge&a.default.SnapToHelper.NORTH?!x||l.edge&a.default.SnapToHelper.SOUTH?this.hideHorizontalLine():this.showHorizontalLine(n,a.default.SnapToHelper.SOUTH,l.bounds.y+l.bounds.getHeight()):this.showHorizontalLine(n,a.default.SnapToHelper.NORTH,l.bounds.y),l.bounds.getTopLeft()},snapRectangle:function(s){var n=s.clone(),r=this.snapPoint(a.default.SnapToHelper.NORTH_WEST,s.getTopLeft());n.x=r.point.x,n.y=r.point.y;var u=this.snapPoint(a.default.SnapToHelper.SOUTH_EAST,s.getBottomRight());return r.edge&a.default.SnapToHelper.WEST&&(n.x=u.point.x-s.getWidth()),r.edge&a.default.SnapToHelper.NORTH&&(n.y=u.point.y-s.getHeight()),{edge:r.edge|u.edge,bounds:n}},snapPoint:function(s,n){var r=n.clone();if((null===this.rows||null===this.cols)&&this.populateRowsAndCols(),0!=(s&a.default.SnapToHelper.EAST)){var u=this.getCorrectionFor(this.cols,n.x+1,1);u!==this.SNAP_THRESHOLD&&(s&=~a.default.SnapToHelper.EAST,r.x+=u)}if(0!=(s&a.default.SnapToHelper.WEST)){var l=this.getCorrectionFor(this.cols,n.x,-1);l!==this.SNAP_THRESHOLD&&(s&=~a.default.SnapToHelper.WEST,r.x+=l)}if(0!=(s&a.default.SnapToHelper.SOUTH)){var p=this.getCorrectionFor(this.rows,n.y+1,1);p!==this.SNAP_THRESHOLD&&(s&=~a.default.SnapToHelper.SOUTH,r.y+=p)}if(0!=(s&a.default.SnapToHelper.NORTH)){var x=this.getCorrectionFor(this.rows,n.y,-1);x!==this.SNAP_THRESHOLD&&(s&=~a.default.SnapToHelper.NORTH,r.y+=x)}return{edge:s,point:r}},populateRowsAndCols:function(){var s=this.canvas.getSelection();this.rows=[],this.cols=[];for(var n=this.canvas.getFigures(),r=0;r<n.getSize();r++){var u=n.get(r);if(!s.contains(u,!0)){var l=u.getBoundingBox();this.cols.push({type:-1,location:l.x}),this.cols.push({type:0,location:l.x+(l.w-1)/2}),this.cols.push({type:1,location:l.getRight()+1}),this.rows.push({type:-1,location:l.y}),this.rows.push({type:0,location:l.y+(l.h-1)/2}),this.rows.push({type:1,location:l.getBottom()+1})}}},getCorrectionFor:function(s,n,r){for(var u=this.SNAP_THRESHOLD,l=this.SNAP_THRESHOLD,p=0;p<s.length;p++){var x=s[p],m=void 0;(-1===x.type&&0!==r||0===x.type&&0===r||1===x.type&&0!==r)&&(m=Math.abs(n-x.location))<u&&(u=m,l=x.location-n)}return l},showVerticalLine:function(s,n,r){null!=this.vline&&(this.vline.stop(),this.vline.remove());var u=this.canvas.getFigures().clone();if(u.removeAll(this.canvas.getSelection().getAll(!0)),u.map(function(C){return C.getBoundingBox()}),u.grep(function(C){return Math.abs(C.x-r)<=1||Math.abs(C.getRight()-r)<=1}),0!==u.getSize()){var l=s.getBoundingBox(),p=l.getCenter();u.sort(function(C,k){return C.getCenter().distance(p)-k.getCenter().distance(p)});var x=0,m=this.canvas.getHeight()*Math.max(1,this.canvas.getZoom()),g=m,w=u.get(0);l.y<w.y?(x=l.y,g=w.getBottom()-l.y):(x=w.y,g=l.getBottom()-w.y),r=.5+(0|r),this.canvas.paper.setStart(),this.canvas.paper.path("M "+r+" 0 l 0 "+m).attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+r+" "+x+" l 0 "+g).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.vline=this.canvas.paper.setFinish(),this.vline.toBack()}},hideVerticalLine:function(){var s=this;null!=this.vline&&this.vline.animate({opacity:.1},this.FADEOUT_DURATION,function(){null!==s.vline&&(s.vline.remove(),s.vline=null)})},showHorizontalLine:function(s,n,r){null!=this.hline&&(this.hline.stop(),this.hline.remove());var u=this.canvas.getFigures().clone();if(u.removeAll(this.canvas.getSelection().getAll(!0)),u.map(function(C){return C.getBoundingBox()}),u.grep(function(C){return Math.abs(C.y-r)<=1||Math.abs(C.getBottom()-r)<=1}),0!==u.getSize()){var l=s.getBoundingBox(),p=l.getCenter();u.sort(function(C,k){return C.getCenter().distance(p)-k.getCenter().distance(p)});var m,x=0,g=m=this.canvas.getWidth()*Math.max(1,this.canvas.getZoom()),w=u.get(0);l.x<w.x?(x=l.x,g=w.getRight()-l.x):(x=w.x,g=l.getRight()-w.x),r=.5+(0|r),this.canvas.paper.setStart(),this.canvas.paper.path("M 0 "+r+" l "+m+" 0").attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+x+" "+r+" l "+g+" 0").attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.hline=this.canvas.paper.setFinish(),this.hline.toBack()}},hideHorizontalLine:function(){var s=this;null!==this.hline&&this.hline.animate({opacity:.1},this.FADEOUT_DURATION,function(){null!==s.hline&&(s.hline.remove(),s.hline=null)})}})},
1"./src/policy/canvas/SnapToGridEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.SnapToGridEditPolicy=a.default.policy.canvas.SnapToEditPolicy.extend({NAME:"draw2d.policy.canvas.SnapToGridEditPolicy",init:function(s,n){this._super(),this.grid=s||20,(void 0===n||!0===n)&&(this.renderer=new a.default.policy.canvas.ShowGridEditPolicy(this.grid))},onInstall:function(s){this._super(s),this.renderer&&this.renderer.onInstall(s)},onUninstall:function(s){this._super(s),this.renderer&&this.renderer.onUninstall(s)},setGrid:function(s){this.grid=s,this.renderer&&this.renderer.setGrid(s)},snap:function(s,n,r,u){if(n instanceof a.default.shape.basic.Line)return r;var l=n.getSnapToGridAnchor();return r.x=r.x+l.x,r.y=r.y+l.y,r.x=this.grid*Math.floor((r.x+this.grid/2)/this.grid),r.y=this.grid*Math.floor((r.y+this.grid/2)/this.grid),r.x=r.x-l.x,r.y=r.y-l.y,r}})},
1"./src/policy/canvas/SnapToInBetweenEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.SnapToInBetweenEditPolicy=a.default.policy.canvas.SnapToEditPolicy.extend({NAME:"draw2d.policy.canvas.SnapToInBetweenEditPolicy",SNAP_THRESHOLD:5,FADEOUT_DURATION:500,init:function(s,n,r){this._super(s,n,r),this.bounds=null,this.horizontalGuideLines=null,this.verticalGuideLines=null},onMouseUp:function(s,n,r,u,l){this.bounds=null,this.hideHorizontalGuides(!1),this.hideVerticalGuides(!1)},snap:function(s,n,r,u){if(n instanceof a.default.ResizeHandle||n instanceof a.default.shape.basic.Line)return r;var l=r.x===u.x,p=r.y===u.y,x=new a.default.geo.Rectangle(r.x,r.y,n.getWidth(),n.getHeight());if(r=r.clone(),!0===l){var m=this.snapHorizontal(x);m.snapped?(this.showHorizontalGuides(n,m),r.x+=m.diff):this.hideHorizontalGuides(!0)}else this.hideHorizontalGuides(!0);if(!0===p){var g=this.snapVertical(x);g.snapped?(this.showVerticalGuides(n,g),r.y+=g.diff):this.hideVerticalGuides(!0)}else this.hideVerticalGuides(!0);return r},snapHorizontal:function(s){var n=s.getCenter();null===this.bounds&&this.populateBounds();var r={point:n,snapped:!1,snappedBox:s.clone()},u=null,l=[],p=n.clone();if(p.x=0,this.bounds.forEach(function(C,k){null!==(u=a.default.shape.basic.Line.intersection(C.getTopRight(),C.getBottomRight(),n,p))&&(u.causedBBox=C,l.push(u))}),0===l.length)return r;l.sort(function(C,k){return k.x-C.x});var x=[],m=n.clone();if(m.x=Number.MAX_SAFE_INTEGER,this.bounds.forEach(function(C,k){null!==(u=a.default.shape.basic.Line.intersection(C.getTopLeft(),C.getBottomLeft(),n,m))&&(u.causedBBox=C,x.push(u))}),0===x.length)return r;x.sort(function(C,k){return C.x-k.x});var g=s.clone(),w=(l[0].x+x[0].x)/2-n.x;return g.x+=w,{snapped:Math.abs(w)<this.SNAP_THRESHOLD,snappedRect:g,diff:w,leftSide:l[0],rightSide:x[0]}},snapVertical:function(s){var n=s.getCenter();null===this.bounds&&this.populateBounds();var r={point:n,snapped:!1,snappedBox:s.clone()},u=null,l=[],p=n.clone();if(p.y=0,this.bounds.forEach(function(C){null!==(u=a.default.shape.basic.Line.intersection(C.getBottomLeft(),C.getBottomRight(),n,p))&&(u.causedBBox=C,l.push(u))}),0===l.length)return r;l.sort(function(C,k){return k.y-C.y});var x=[],m=n.clone();if(m.y=Number.MAX_SAFE_INTEGER,this.bounds.forEach(function(C){null!==(u=a.default.shape.basic.Line.intersection(C.getTopLeft(),C.getTopRight(),n,m))&&(u.causedBBox=C,x.push(u))}),0===x.length)return r;x.sort(function(C,k){return C.y-k.y});var g=s.clone(),w=(l[0].y+x[0].y)/2-n.y;return g.y+=w,{snapped:Math.abs(w)<this.SNAP_THRESHOLD,snappedRect:g,diff:w,topSide:l[0],bottomSide:x[0]}},populateBounds:function(){var s=this.canvas.getSelection().getAll(!0),n=this.bounds=[];this.canvas.getFigures().each(function(u,l){s.contains(l)||n.push(l.getBoundingBox())})},showHorizontalGuides:function(s,n){null!=this.horizontalGuideLines&&(this.horizontalGuideLines.stop(),this.horizontalGuideLines.remove());var r=n.snappedRect.getTopLeft(),u=n.snappedRect.getTopRight(),l=.5+(Math.min(n.leftSide.causedBBox.getTopRight().y,Math.min(n.rightSide.causedBBox.y,s.getY()))-50|0);this.canvas.paper.setStart(),this.canvas.paper.path("M "+(.5+(0|n.leftSide.x))+" "+l+" L "+(.5+(0|n.leftSide.x))+" "+n.leftSide.y).attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+(.5+(0|r.x))+" "+l+" L "+(.5+(0|r.x))+" "+r.y).attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+(.5+(0|u.x))+" "+l+" L "+(.5+(0|u.x))+" "+u.y).attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+(.5+(0|n.rightSide.x))+" "+l+" L "+(.5+(0|n.rightSide.x))+" "+n.rightSide.y).attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+n.leftSide.x+" "+(l+5)+" L "+r.x+" "+(l+5)).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.canvas.paper.path("M "+n.rightSide.x+" "+(l+5)+" L "+u.x+" "+(l+5)).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.canvas.paper.path(" M "+(n.leftSide.x+5)+" "+l+" L "+n.leftSide.x+" "+(l+5)+" L "+(n.leftSide.x+5)+" "+(l+10)).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.canvas.paper.path(" M "+(r.x-5)+" "+l+" L "+r.x+" "+(l+5)+" L "+(r.x-5)+" "+(l+10)).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.canvas.paper.path(" M "+(u.x+5)+" "+l+" L "+u.x+" "+(l+5)+" L "+(u.x+5)+" "+(l+10)).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.canvas.paper.path(" M "+(n.rightSide.x-5)+" "+l+" L "+n.rightSide.x+" "+(l+5)+" L "+(n.rightSide.x-5)+" "+(l+10)).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.horizontalGuideLines=this.canvas.paper.setFinish(),this.horizontalGuideLines.toFront()},hideHorizontalGuides:function(s){var n=this;null!=this.horizontalGuideLines&&(!0===s?null!==this.horizontalGuideLines&&(this.horizontalGuideLines.remove(),this.horizontalGuideLines=null):this.horizontalGuideLines.animate({opacity:.1},this.FADEOUT_DURATION,function(){null!==n.horizontalGuideLines&&(n.horizontalGuideLines.remove(),n.horizontalGuideLines=null)}))},showVerticalGuides:function(s,n){null!=this.verticalGuideLines&&(this.verticalGuideLines.stop(),this.verticalGuideLines.remove());var r=n.snappedRect.getTopRight(),u=n.snappedRect.getBottomRight(),l=.5+(Math.max(n.topSide.causedBBox.getRight(),Math.max(n.bottomSide.causedBBox.getRight(),s.getX()))+40|0);this.canvas.paper.setStart(),this.canvas.paper.path("M "+l+" "+(.5+(0|n.topSide.y))+" L "+(.5+(0|n.topSide.x))+" "+(.5+(0|n.topSide.y))).attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+l+" "+(.5+(0|r.y))+" L "+(.5+(0|r.x))+" "+(.5+(0|r.y))).attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+l+" "+(.5+(0|u.y))+" L "+(.5+(0|u.x))+" "+(.5+(0|u.y))).attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+l+" "+(.5+(0|n.bottomSide.y))+" L "+(.5+(0|n.bottomSide.x))+" "+(.5+(0|n.bottomSide.y))).attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+(l-5)+" "+(.5+(0|n.topSide.y))+" L "+(l-5)+" "+(.5+(0|r.y))).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.canvas.paper.path("M "+(l-5)+" "+(.5+(0|n.bottomSide.y))+" L "+(l-5)+" "+(.5+(0|u.y))).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.canvas.paper.path(" M "+(l-10)+" "+(n.topSide.y+5)+" L "+(l-5)+" "+n.topSide.y+" L "+l+" "+(n.topSide.y+5)).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.canvas.paper.path(" M "+(l-10)+" "+(r.y-5)+" L "+(l-5)+" "+r.y+" L "+l+" "+(r.y-5)).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.canvas.paper.path(" M "+(l-10)+" "+(u.y+5)+" L "+(l-5)+" "+u.y+" L "+l+" "+(u.y+5)).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.canvas.paper.path(" M "+(l-10)+" "+(n.bottomSide.y-5)+" L "+(l-5)+" "+n.bottomSide.y+" L "+l+" "+(n.bottomSide.y-5)).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.verticalGuideLines=this.canvas.paper.setFinish(),this.verticalGuideLines.toFront()},hideVerticalGuides:function(){var s=this;null!=this.verticalGuideLines&&this.verticalGuideLines.animate({opacity:.1},this.FADEOUT_DURATION,function(){null!==s.verticalGuideLines&&(s.verticalGuideLines.remove(),s.verticalGuideLines=null)})}})},
1"./src/policy/canvas/SnapToVerticesEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.canvas.SnapToVerticesEditPolicy=a.default.policy.canvas.SnapToEditPolicy.extend({NAME:"draw2d.policy.canvas.SnapToVerticesEditPolicy",SNAP_THRESHOLD:3,FADEOUT_DURATION:300,init:function(s,n,r){this._super(s,n,r),this.constraints=null,this.vline=null,this.hline=null},onMouseUp:function(s,n,r,u,l){this.constraints=null,this.hideVerticalLine(),this.hideHorizontalLine()},snap:function(s,n,r,u){if(!(n instanceof a.default.shape.basic.VertexResizeHandle))return r;var l=r.x===u.x,p=r.y===u.y;if(!l&&!p)return r;var x=r.clone(),m=this.getCorrectionFor(n,u);return l&&m.vertical.x!==Number.MAX_SAFE_INTEGER?(x.x=m.vertical.x,this.showVerticalLine(u,m.vertical)):this.hideVerticalLine(),p&&m.horizontal.y!==Number.MAX_SAFE_INTEGER?(x.y=m.horizontal.y,this.showHorizontalLine(u,m.horizontal)):this.hideHorizontalLine(),x},getCorrectionFor:function(s,n){var r=this;null===this.constraints&&(this.constraints=[],this.canvas.getLines().each(function(k,M){M.getVertices().each(function(N,O){(s.index!==N||s.owner!==M)&&r.constraints.push(O)})}));for(var m,g,l=this.SNAP_THRESHOLD,p={x:Number.MAX_SAFE_INTEGER,y:Number.MAX_SAFE_INTEGER,diffy:Number.MAX_SAFE_INTEGER},x={x:Number.MAX_SAFE_INTEGER,y:Number.MAX_SAFE_INTEGER,diffx:Number.MAX_SAFE_INTEGER},w=0;w<this.constraints.length;w++){var C=this.constraints[w];m=Math.abs(n.x-C.x),g=Math.abs(n.y-C.y),m<l&&g<p.diffy&&(p={x:C.x,y:C.y,diffy:g}),g<l&&m<x.diffx&&(x={x:C.x,y:C.y,diffx:m})}return{vertical:p,horizontal:x}},showVerticalLine:function(s,n){null!=this.vline&&(this.vline.stop(),this.vline.remove());var r=this.canvas.getHeight(),u=.5+(0|n.x);this.canvas.paper.setStart(),this.canvas.paper.path("M "+u+" 0 l 0 "+r).attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+u+" "+s.y+" L "+u+" "+n.y).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.vline=this.canvas.paper.setFinish(),this.vline.toBack()},hideVerticalLine:function(){var s=this;null!=this.vline&&this.vline.animate({opacity:.1},this.FADEOUT_DURATION,function(){null!==s.vline&&(s.vline.remove(),s.vline=null)})},showHorizontalLine:function(s,n){null!=this.hline&&(this.hline.stop(),this.hline.remove());var r=this.canvas.getWidth(),u=.5+(0|n.y);this.canvas.paper.setStart(),this.canvas.paper.path("M 0 "+u+" l "+r+" 0").attr({stroke:this.lineColor.rgba(),"stroke-width":1,"stroke-dasharray":". "}),this.canvas.paper.path("M "+s.x+" "+u+" L "+n.x+" "+u).attr({stroke:this.lineColor.rgba(),"stroke-width":1}),this.hline=this.canvas.paper.setFinish(),this.hline.toBack()},hideHorizontalLine:function(){var s=this;null!==this.hline&&this.hline.animate({opacity:.1},this.FADEOUT_DURATION,function(){null!==s.hline&&(s.hline.remove(),s.hline=null)})}})},
1"./src/policy/canvas/WheelZoomPolicy.js":function(h,y,c){"use strict";var a=function t(s){return s&&s.__esModule?s:{default:s}}(c("./src/packages.js")),v=c("./node_modules/shifty/dist/shifty.js");a.default.policy.canvas.WheelZoomPolicy=a.default.policy.canvas.ZoomPolicy.extend({NAME:"draw2d.policy.canvas.WheelZoomPolicy",init:function(){var n=this;this._super(),this.center=null,this.debouncedZoomedCallback=this._debounce(function(){var r=n.canvas;null!==r&&r.fireEvent("zoomed",{value:r.zoomFactor}),n.center=null},200)},onInstall:function(n){this._super(n),n.setZoom(1),n.__wheelZoom=1},onUninstall:function(n){this._super(n),delete n.__wheelZoom},onMouseWheel:function(n,r,u,l,p){if(!1===l)return!0;var x=(1e4*Math.min(5,Math.max(.1,this.canvas.zoomFactor+(n/=1024)))|0)/1e4;if(null===this.center){var m=this.canvas.fromCanvasToDocumentCoordinate(r,u);this.center={x:r,y:u,clientX:m.x,clientY:m.y}}return this._zoom(x,this.center),this.debouncedZoomedCallback(),!1},setZoom:function(n,r){var u=this,l=this.canvas.getScrollTop(),p=this.canvas.getScrollLeft(),x=this.canvas.getScrollArea().width(),g=l+this.canvas.getScrollArea().height()/2*this.canvas.zoomFactor,w=p+x/2*this.canvas.zoomFactor;r?(new v.Tweenable).tween({from:{x:this.canvas.zoomFactor},to:{x:n},duration:300,easing:"easeOutSine",step:function(M){u._zoom(M.x,w,g)},finish:function(M){u.debouncedZoomedCallback()}}):(this._zoom(n,{x:w,y:g}),this.debouncedZoomedCallback())},_zoom:function(n,r){var u=this.canvas;if(n!==u.zoomFactor){if(u.zoomFactor=n,u.paper.setViewBox(0,0,u.initialWidth,u.initialHeight),u.html.find("svg").attr({width:u.initialWidth/n,height:u.initialHeight/n}),r.clientX){var l=u.fromCanvasToDocumentCoordinate(r.x,r.y);u.scrollTo(this.canvas.getScrollTop()-(r.clientY-l.y),u.getScrollLeft()-(r.clientX-l.x))}u.fireEvent("zoom",{value:u.zoomFactor})}},_debounce:function(n,r,u){var l=this,p=arguments,x=void 0;return function(){var m=l,g=p,C=u&&!x;clearTimeout(x),x=setTimeout(function(){x=null,u||n.apply(m,g)},r),C&&n.apply(m,g)}}})},
1"./src/policy/canvas/ZoomPolicy.js":function(h,y,c){"use strict";var a=function t(s){return s&&s.__esModule?s:{default:s}}(c("./src/packages.js")),v=c("./node_modules/shifty/dist/shifty.js");a.default.policy.canvas.ZoomPolicy=a.default.policy.canvas.CanvasPolicy.extend({NAME:"draw2d.policy.canvas.ZoomPolicy",init:function(){this._super()},onInstall:function(n){this._super(n),n.setZoom(1)},onUninstall:function(n){this._super(n)},setZoom:function(n,r){var u=this.canvas,l=function(m){u.zoomFactor=Math.min(Math.max(.01,m),10),u.paper.setViewBox(0,0,u.initialWidth*u.zoomFactor|0,u.initialHeight*u.zoomFactor|0),u.fireEvent("zoom",{value:u.zoomFactor})};r?(new v.Tweenable).tween({from:{x:u.zoomFactor},to:{x:n},duration:300,easing:"easeOutSine",step:function(m){return l(m.x)},finish:function(m){return u.fireEvent("zoomed",{value:u.zoomFactor})}}):(l(n),u.fireEvent("zoomed",{value:u.zoomFactor}))}})},
1"./src/policy/connection/ClickConnectionCreatePolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.connection.ClickConnectionCreatePolicy=a.default.policy.connection.ConnectionCreatePolicy.extend({NAME:"draw2d.policy.connection.ClickConnectionCreatePolicy",init:function(s,n,r){this._super(s,n,r),this.port1=null,this.beeline=null,this.pulse=null,this.tempConnection=null,this.vertices=[]},onClick:function(s,n,r,u,l){var p=this,x=s;if(null!==x||null!==this.port1){if(null===x)return this.vertices.push(new a.default.geo.Point(n,r)),this.beeline.setStartPosition(n,r),this.tempConnection.setVertices(this.vertices),null!==this.pulse&&(this.pulse.remove(),this.pulse=null),void this.ripple(n,r,0);if(x instanceof a.default.Port){if(null===this.port1){var m=x.getCanvas();this.port1=x,this.vertices.push(x.getAbsolutePosition()),this.beeline=new a.default.shape.basic.Line({start:this.port1.getAbsolutePosition(),end:this.port1.getAbsolutePosition(),dasharray:"- ",color:"#2C70FF"}),this.beeline.hide=function(){p.beeline.setCanvas(null)},this.beeline.show=function(O){p.beeline.setCanvas(O),p.beeline.shape.toFront()},this.beeline.show(m),this.tempConnection=new a.default.shape.basic.PolyLine({start:this.port1.getAbsolutePosition(),end:this.port1.getAbsolutePosition(),stroke:2,color:"#2C70FF"}),this.tempConnection.hide=function(){p.tempConnection.setCanvas(null)},this.tempConnection.show=function(O){p.tempConnection.setCanvas(O),p.tempConnection.shape.toFront()},this.tempConnection.show(m),this.tempConnection.setVertices([this.port1.getAbsolutePosition(),this.port1.getAbsolutePosition()]);var g=function(){p.tempConnection.shape.animate({"stroke-width":2},800,w)},w=function(){p.tempConnection.shape.animate({"stroke-width":1},800,g)};g();var C=x.getAbsolutePosition();return void(this.pulse=this.ripple(C.x,C.y,1))}if(x.delegateTarget(this.port1)instanceof a.default.Port){var M=new a.default.command.CommandType(a.default.command.CommandType.CONNECT);M.source=this.port1,M.target=x;var N=null;null!==(N=this.port1 instanceof a.default.InputPort?this.port1.createCommand(M):x.createCommand(M))&&(this.vertices.push(x.getPosition()),N.setConnection(this.createConnection()),s.getCanvas().getCommandStack().execute(N),this.beeline.hide(),this.tempConnection.hide(),null!==this.pulse&&(this.pulse.remove(),this.pulse=null),this.beeline=null,this.port1=null,this.vertices=[])}}}},onMouseMove:function(s,n,r,u,l){null!==this.beeline&&this.beeline.setEndPosition(n,r)},onKeyDown:function(s,n,r,u){27===n&&null!==this.beeline&&(this.beeline.hide(),this.tempConnection.hide(),this.beeline=null,this.port1=null,this.vertices=[],null!=this.pulse&&(this.pulse.remove(),this.pulse=null))},createConnection:function(){var s=this._super();return 2===this.vertices.length?s.setRouter(new a.default.layout.connection.DirectRouter):(s.setRouter(new a.default.layout.connection.VertexRouter),s.setVertices(this.vertices)),s.setRadius(10),s}})},
1"./src/policy/connection/ComposedConnectionCreatePolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.connection.ComposedConnectionCreatePolicy=a.default.policy.connection.ConnectionCreatePolicy.extend({NAME:"draw2d.policy.connection.ComposedConnectionCreatePolicy",init:function(s){this.policies=s,this._super()},onMouseDown:function(){var s=arguments;this.policies.forEach(function(n){n.onMouseDown.apply(n,s)})},onMouseDrag:function(){var s=arguments;this.policies.forEach(function(n){n.onMouseDrag.apply(n,s)})},onMouseUp:function(){var s=arguments;this.policies.forEach(function(n){n.onMouseUp.apply(n,s)})},onClick:function(){var s=arguments;this.policies.forEach(function(n){n.onClick.apply(n,s)})},onMouseMove:function(){var s=arguments;this.policies.forEach(function(n){n.onMouseMove.apply(n,s)})},onKeyUp:function(s,n,r,u){var l=arguments;this.policies.forEach(function(p){p.onKeyUp.apply(p,l)})},onKeyDown:function(s,n,r,u){var l=arguments;this.policies.forEach(function(p){p.onKeyDown.apply(p,l)})},onInstall:function(s){var n=arguments;this.policies.forEach(function(r){r.onInstall.apply(r,n)})},onUninstall:function(s){var n=arguments;this.policies.forEach(function(r){r.onUninstall.apply(r,n)})}})},
1"./src/policy/connection/ConnectionCreatePolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.connection.ConnectionCreatePolicy=a.default.policy.canvas.KeyboardPolicy.extend({NAME:"draw2d.policy.connection.ConnectionCreatePolicy",init:function(s,n,r){this._super(s,n,r)},createConnection:function(){return new a.default.Connection({router:new a.default.layout.connection.DirectRouter})},ripple:function(s,n,r){switch(r){case 0:var u=this.canvas.paper.circle(s,n,3,3).attr({fill:null,stroke:"#d0d0ff"}),l=Raphael.animation({transform:"s6",opacity:0,"stroke-width":3},500,"linear",function(){u.remove()});return u.animate(l),this.canvas.paper.set();case 1:var p=this.canvas.paper.circle(s,n,3,3).attr({fill:null,stroke:"#3f72bf"}),x=this.canvas.paper.circle(s,n,3,3).attr({fill:null,stroke:"#ff0000"}),m=Raphael.animation({transform:"s6",opacity:0,"stroke-width":1},1200,"linear").repeat(1/0);p.animate(m);var g=Raphael.animation({transform:"s12",opacity:0,"stroke-width":4},500,"linear",function(){x.remove()});return x.animate(g),p}}})},
1"./src/policy/connection/DragConnectionCreatePolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.connection.DragConnectionCreatePolicy=a.default.policy.connection.ConnectionCreatePolicy.extend({NAME:"draw2d.policy.connection.DragConnectionCreatePolicy",init:function(s,n,r){this._super(s,n,r),this.mouseDraggingElement=null,this.currentDropTarget=null,this.currentTarget=null},onMouseDown:function(s,n,r,u,l){var p=s.getBestFigure(n,r);if(null!==p&&p instanceof a.default.Port&&(!0===p.isInDragDrop&&(p.onDragEnd(n,r,u,l),p.isInDragDrop=!1),p.isDraggable())){var x=p.onDragStart(n-p.getAbsoluteX(),r-p.getAbsoluteY(),u,l);x&&p.fireEvent("dragstart",{x:n-p.getAbsoluteX(),y:r-p.getAbsoluteY(),shiftKey:u,ctrlKey:l}),this.mouseDraggingElement=!1===x?null:p,this.mouseDownElement=p}},onMouseDrag:function(s,n,r,u,l,p,x){try{if(null!==this.mouseDraggingElement){var m=this.mouseDraggingElement,g=this.currentTarget;m.isInDragDrop=!0,m.onDrag(n,r,u,l,p,x),(C=s.getBestFigure(m.getAbsoluteX(),m.getAbsoluteY(),m))!==g&&(null!==g&&(g.onDragLeave(m),g.fireEvent("dragLeave",{draggingElement:m}),m.editPolicy.each(function(k,M){M instanceof a.default.policy.port.PortFeedbackPolicy&&M.onHoverLeave(s,m,g)})),null!==C?(this.currentTarget=g=C.delegateTarget(m),null!==g&&(g.onDragEnter(m),g.fireEvent("dragEnter",{draggingElement:m}),m.editPolicy.each(function(k,M){M instanceof a.default.policy.port.PortFeedbackPolicy&&M.onHoverEnter(s,m,g)}))):this.currentTarget=null);var C,w=s.fromDocumentToCanvasCoordinate(s.mouseDownX+n/s.zoomFactor,s.mouseDownY+r/s.zoomFactor);(C=s.getBestFigure(w.x,w.y,this.mouseDraggingElement))!==this.currentDropTarget&&(null!==this.currentDropTarget&&(this.currentDropTarget.onDragLeave(this.mouseDraggingElement),this.currentDropTarget.fireEvent("dragLeave",{draggingElement:this.mouseDraggingElement}),this.currentDropTarget=null),null!==C&&(this.currentDropTarget=C.delegateTarget(this.mouseDraggingElement),null!==this.currentDropTarget&&(this.currentDropTarget.onDragEnter(this.mouseDraggingElement),this.currentDropTarget.fireEvent("dragEnter",{draggingElement:this.mouseDraggingElement}))))}}catch(k){console.log(k)}},onMouseUp:function(s,n,r,u,l){if(null!==this.mouseDraggingElement){var p=this.mouseDraggingElement,x=this.currentTarget;if(s.getCommandStack().startTransaction(),p.onDragEnd(n,r,u,l),x&&p.editPolicy.each(function(w,C){C instanceof a.default.policy.port.PortFeedbackPolicy&&C.onHoverLeave(s,p,x)}),p.editPolicy.each(function(w,C){C instanceof a.default.policy.figure.DragDropEditPolicy&&C.onDragEnd(s,p,n,r,u,l)}),this.currentTarget=null,p.isInDragDrop=!1,p.fireEvent("dragend",{x:n,y:r,shiftKey:u,ctrlKey:l}),null!==this.currentDropTarget&&(this.mouseDraggingElement.onDrop(this.currentDropTarget,n,r,u,l),this.currentDropTarget.onDragLeave(this.mouseDraggingElement),this.currentDropTarget.fireEvent("dragLeave",{draggingElement:this.mouseDraggingElement}),this.currentDropTarget instanceof a.default.Port)){var m=new a.default.command.CommandType(a.default.command.CommandType.CONNECT);m.source=this.currentDropTarget,m.target=this.mouseDraggingElement;var g=this.mouseDraggingElement.createCommand(m);null!==g&&(g.setConnection(this.createConnection()),s.getCommandStack().execute(g),this.currentDropTarget.onCatch(this.mouseDraggingElement,n,r,u,l))}s.getCommandStack().commitTransaction(),this.currentDropTarget=null,this.mouseDraggingElement=null}},createConnection:function(){var s=this._super();return s.setRouter(new a.default.layout.connection.DirectRouter),s}})},
1"./src/policy/connection/OrthogonalConnectionCreatePolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.connection.OrthogonalConnectionCreatePolicy=a.default.policy.connection.ConnectionCreatePolicy.extend({NAME:"draw2d.policy.connection.ClickConnectionCreatePolicy",init:function(s,n,r){this._super(s,n,r),this.port1=null,this.beeline=null,this.pulse=null,this.tempConnection=null,this.vertices=new a.default.util.ArrayList},onClick:function(s,n,r,u,l){var p=a.default.geo.Rectangle.DIRECTION_UP,x=a.default.geo.Rectangle.DIRECTION_RIGHT,m=a.default.geo.Rectangle.DIRECTION_DOWN,g=a.default.geo.Rectangle.DIRECTION_LEFT,w=this,C=s;if(null!==C||null!==this.port1){if(null===C){var k=this.port1.getCanvas(),M=this.beeline.getEndPosition();return this.vertices.add(M),this.beeline.setStartPosition(this.beeline.getEndPosition()),this.tempConnection.setVertices(this.vertices),null!==this.pulse&&(this.pulse.remove(),this.pulse=null),void this.ripple(M.x,M.y,0)}if(C instanceof a.default.Port)if(null===this.port1){k=C.getCanvas(),this.port1=C,this.vertices.add(C.getAbsolutePosition()),this.beeline=new a.default.shape.basic.Line({start:this.port1.getAbsolutePosition(),end:this.port1.getAbsolutePosition(),dasharray:"- ",color:"#2C70FF"}),this.beeline.hide=function(){w.beeline.setCanvas(null)},this.beeline.show=function(z){w.beeline.setCanvas(z),w.beeline.shape.toFront()},this.beeline.show(k),this.tempConnection=new a.default.shape.basic.PolyLine({start:this.port1.getAbsolutePosition(),end:this.port1.getAbsolutePosition(),stroke:2,color:"#2C70FF"}),this.tempConnection.hide=function(){w.tempConnection.setCanvas(null)},this.tempConnection.show=function(z){w.tempConnection.setCanvas(z),w.tempConnection.shape.toFront()},this.tempConnection.show(k),this.tempConnection.setVertices([this.port1.getAbsolutePosition(),this.port1.getAbsolutePosition()]);var N=function(){w.tempConnection.shape.animate({"stroke-width":2},800,O)},O=function(){w.tempConnection.shape.animate({"stroke-width":1},800,N)};N(),k.paper.setStart(),null!==this.pulse&&(this.pulse.remove(),this.pulse=null);var _=C.getAbsolutePosition();this.ripple(_.x,_.y,1),this.pulse=k.paper.setFinish()}else{if(!(C.delegateTarget(this.port1)instanceof a.default.Port))return;var A=new a.default.command.CommandType(a.default.command.CommandType.CONNECT);A.source=this.port1,A.target=C;var T=null;if(null!==(T=this.port1 instanceof a.default.InputPort?this.port1.createCommand(A):C.createCommand(A))){var L=this.createConnection();if(T.setConnection(L),C.getCanvas().getCommandStack().execute(T),this.beeline.hide(),this.tempConnection.hide(),null!==this.pulse&&(this.pulse.remove(),this.pulse=null),this.beeline=null,this.port1=null,this.vertices.getSize()<=2)return;var et,I=T.getConnection().getRouter().MINDIST,F=this.vertices.get(this.vertices.getSize()-2),W=this.vertices.last(),q=C.getAbsolutePosition();switch(et=W.x===F.x?W.y<F.y?p:m:W.x<F.x?g:x,C.getConnectionDirection(this.port1)){case p:switch(et){case p:W.y<q.y-I?(this.vertices.add(new a.default.geo.Point(q.x,W.y)),this.vertices.add(q)):(W.y=q.y-I,this.vertices.add(new a.default.geo.Point(q.x,W.y)),this.vertices.add(q));break;case x:W.y>q.y-I?(F.y=q.y-I,W.x=q.x,W.y=F.y,this.vertices.add(q)):(W.x=q.x,this.vertices.add(q));break;case m:W.y<q.y-I?(F.x=q.x,W.setPosition(q)):(W.y=q.y-I,this.vertices.add(new a.default.geo.Point(q.x,W.y)),this.vertices.add(q));break;case g:W.y>q.y-I?(F.y=q.y-I,W.x=q.x,W.y=F.y,this.vertices.add(q)):(W.x=q.x,this.vertices.add(q))}break;case x:switch(et){case p:W.x>q.x+I?(W.y=q.y,this.vertices.add(q)):(this.vertices.add(new a.default.geo.Point(q.x+I,W.y)),this.vertices.add(new a.default.geo.Point(q.x+I,q.y)),this.vertices.add(q));break;case x:W.x>q.x+I?(this.vertices.add(new a.default.geo.Point(W.x,q.y)),this.vertices.add(q)):(W.x=q.x+I,this.vertices.add(new a.default.geo.Point(W.x,q.y)),this.vertices.add(q));break;case m:W.x>q.x+I?(W.y=q.y,this.vertices.add(q)):(this.vertices.add(new a.default.geo.Point(q.x+I,W.y)),this.vertices.add(new a.default.geo.Point(q.x+I,q.y)),this.vertices.add(q));break;case g:W.x>q.x+I?(this.vertices.add(new a.default.geo.Point(W.x,q.y)),this.vertices.add(q)):(W.x=q.x+I,this.vertices.add(new a.default.geo.Point(W.x,q.y)),this.vertices.add(q))}break;case m:switch(et){case p:W.y<q.y+I?(W.y=q.y+I,this.vertices.add(new a.default.geo.Point(q.x,W.y)),this.vertices.add(q)):(W.x=q.x,W.y=q.y,F.x=q.x);break;case x:W.y<q.y+I?(this.vertices.add(new a.default.geo.Point(W.x,q.y+I)),this.vertices.add(new a.default.geo.Point(q.x,q.y+I)),this.vertices.add(q)):(W.x=q.x,this.vertices.add(q));break;case m:W.y<q.y+I?(W.y=q.y+I,this.vertices.add(new a.default.geo.Point(q.x,W.y)),this.vertices.add(q)):(this.vertices.add(new a.default.geo.Point(q.x,W.y)),this.vertices.add(q));break;
1case g:W.y<q.y-I?(F.y=q.y-I,W.x=q.x,W.y=F.y,this.vertices.add(q)):(W.x=q.x,this.vertices.add(q))}break;case g:switch(et){case p:W.x>=q.x-I?(this.vertices.add(new a.default.geo.Point(q.x-I,W.y)),this.vertices.add(new a.default.geo.Point(q.x-I,q.y)),this.vertices.add(q)):W.y>q.y&&W.x<q.x-I?(W.y=q.y,this.vertices.add(q)):(this.vertices.add(new a.default.geo.Point(q.x-I,W.y)),this.vertices.add(new a.default.geo.Point(q.x-I,q.y)),this.vertices.add(q));break;case x:if(W.y<q.y&&W.x>q.x-I)this.vertices.add(new a.default.geo.Point(W.x,X=q.y-(q.y-W.y)/2)),this.vertices.add(new a.default.geo.Point(q.x-I,X)),this.vertices.add(new a.default.geo.Point(q.x-I,q.y)),this.vertices.add(q);else if(W.y>q.y&&W.x>q.x-I){var X;this.vertices.add(new a.default.geo.Point(W.x,X=q.y+(W.y-q.y)/2)),this.vertices.add(new a.default.geo.Point(q.x-I,X)),this.vertices.add(new a.default.geo.Point(q.x-I,q.y)),this.vertices.add(q)}else this.vertices.add(new a.default.geo.Point(W.x,q.y)),this.vertices.add(q);break;case m:W.x>=q.x-I?(this.vertices.add(new a.default.geo.Point(q.x-I,W.y)),this.vertices.add(new a.default.geo.Point(q.x-I,q.y)),this.vertices.add(q)):(W.y=q.y,this.vertices.add(q));break;case g:W.x<q.x-I?(this.vertices.add(new a.default.geo.Point(W.x,q.y)),this.vertices.add(q)):(W.x=q.x-I,this.vertices.add(new a.default.geo.Point(W.x,q.y)),this.vertices.add(q))}}this.vertices.getSize()>3&&(L._routingMetaData.routedByUserInteraction=!0,L.setVertices(this.vertices)),this.vertices.clear()}}}},onMouseMove:function(s,n,r,u,l){null!==this.beeline&&this.beeline.setEndPosition(this.orthogonal(this.vertices.last(),{x:n,y:r}))},onKeyDown:function(s,n,r,u){27===n&&null!==this.beeline&&(this.beeline.hide(),this.tempConnection.hide(),this.beeline=null,this.port1=null,this.vertices.clear(),null!=this.pulse&&(this.pulse.remove(),this.pulse=null))},orthogonal:function(s,n){var r=Math.abs(s.x-n.x)+10,u=a.default.geo.Line.distance(s.x-r,s.y,s.x+r,s.y,n.x,n.y),l=Math.abs(s.y-n.y)+10;return a.default.geo.Line.distance(s.x,s.y-l,s.x,s.y+l,n.x,n.y)>u?{x:n.x,y:s.y}:{x:s.x,y:n.y}},createConnection:function(){var s=this._super();return s.attr({radius:7,stroke:3}),s.setRouter(new a.default.layout.connection.InteractiveManhattanConnectionRouter),s}})},
1"./src/policy/figure/AntSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.AntSelectionFeedbackPolicy=a.default.policy.figure.SelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.AntSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onSelect:function(s,n,r){if(n.selectionHandles.isEmpty()){var u=new a.default.shape.basic.Rectangle({bgColor:null,dasharray:"- ",color:"#2C70FF"});if(u.hide=function(){u.setCanvas(null)},u.show=function(p){u.setCanvas(p),u.shape.toFront()},u.show(s),n.selectionHandles.add(u),null!==n.getParent()){var l=new a.default.shape.basic.Line({opacity:.5,bgColor:null,dasharray:"- ",color:"#2C70FF"});l.show=function(p){return l.setCanvas(p)},l.hide=function(){return l.setCanvas(null)},l.show(s),n.selectionHandles.add(l),this._updateBeeLine(l,n)}}this.moved(s,n)},moved:function(s,n){if(!n.selectionHandles.isEmpty()){var u=n.selectionHandles.first();u.setPosition(n.getAbsolutePosition().translate(-2,-2)),u.setDimension(n.getWidth()+4,n.getHeight()+4),u.setRotationAngle(n.getRotationAngle()),n.selectionHandles.getSize()>1&&this._updateBeeLine(n.selectionHandles.get(1),n)}},_updateBeeLine:function(s,n){var r=n.getParent();if(null!==r)if(r instanceof a.default.shape.basic.Line){var u=n.getBoundingBox().getCenter(),l=r.pointProjection(u);if(null===l){var p=s.getStartPosition(),x=s.getEndPosition();l=u.distance(p)<u.distance(p)?p:x}n.getBoundingBox().intersectionWithLine(u,l).getSize()>0?s.setStartPosition(n.getBoundingBox().intersectionWithLine(u,l).get(0)).setEndPosition(l):s.setStartPosition(n.getBoundingBox().getCenter()).setEndPosition(l)}else{var C=n.getBoundingBox(),k=r.getBoundingBox(),M=C.getCenter(),N=k.getCenter();C.intersects(k)||C.hitTest(N)||k.hitTest(M)?s.setStartPosition(M).setEndPosition(N):(C.scale(3,3),k.scale(3,3),s.setStartPosition(C.intersectionWithLine(M,N).get(0)).setEndPosition(k.intersectionWithLine(M,N).get(0)))}}})},
1"./src/policy/figure/BigRectangleSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.BigRectangleSelectionFeedbackPolicy=a.default.policy.figure.RectangleSelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.BigRectangleSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},createResizeHandle:function(s,n){return new a.default.ResizeHandle({owner:s,type:n,width:15,height:15})}})},
1"./src/policy/figure/BusSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.BusSelectionFeedbackPolicy=a.default.policy.figure.SelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.BusSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onSelect:function(s,n,r){if(n.selectionHandles.isEmpty()){var u=a.default.Configuration.factory.createResizeHandle(n,2),l=a.default.Configuration.factory.createResizeHandle(n,4),p=a.default.Configuration.factory.createResizeHandle(n,6),x=a.default.Configuration.factory.createResizeHandle(n,8);n.selectionHandles.add(u,l,p,x),u.setDraggable(n.isResizeable()),l.setDraggable(n.isResizeable()),p.setDraggable(n.isResizeable()),x.setDraggable(n.isResizeable()),u.show(s),l.show(s),p.show(s),x.show(s)}this.moved(s,n)},moved:function(s,n){if(!n.selectionHandles.isEmpty()){var r=n.selectionHandles.find(function(C){return 2===C.type}),u=n.selectionHandles.find(function(C){return 4===C.type}),l=n.selectionHandles.find(function(C){return 6===C.type}),p=n.selectionHandles.find(function(C){return 8===C.type}),x=n.getHeight(),m=n.getWidth(),g=n.getX(),w=n.getY();r.setPosition(g+m/2-r.getWidth()/2,w-r.getHeight()),u.setPosition(g+m,w+x/2-u.getHeight()/2),l.setPosition(g+m/2-l.getWidth()/2,w+x),p.setPosition(g-p.getWidth(),w+x/2-p.getHeight()/2)}}})},
1"./src/policy/figure/DragDropEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.DragDropEditPolicy=a.default.policy.figure.FigureEditPolicy.extend({NAME:"draw2d.policy.figure.DragDropEditPolicy",init:function(s,n,r){var u=this;this._super(s,n,r),this.moveCallback=function(l,p){u.moved(l.getCanvas(),l)}},onInstall:function(s){this._super(s),s.on("move",this.moveCallback)},onUninstall:function(s){this._super(s),s.off(this.moveCallback)},onDragStart:function(s,n,r,u,l,p){return n.shape.attr({cursor:"move"}),!0===n.isMoving&&n.setAlpha(n.originalAlpha),n.originalAlpha=n.getAlpha(),n.isMoving=!1,!0},onDrag:function(s,n){!1===n.isMoving&&(n.isMoving=!0,n.setAlpha(.4*n.originalAlpha))},onDragEnd:function(s,n,r,u,l,p){n.shape.attr({cursor:"default"}),n.isMoving=!1,n.setAlpha(n.originalAlpha)},adjustPosition:function(s,n,r){return n instanceof a.default.geo.Point?n:new a.default.geo.Point(n,r)},adjustDimension:function(s,n,r){return new a.default.geo.Rectangle(0,0,n,r)},moved:function(s,n){}})},
1"./src/policy/figure/FigureEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.FigureEditPolicy=a.default.policy.EditPolicy.extend({NAME:"draw2d.policy.figure.FigureEditPolicy",init:function(s,n,r){this._super(s,n,r)},onRightMouseDown:function(s,n,r,u,l){}})},
1"./src/policy/figure/GlowSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.GlowSelectionFeedbackPolicy=a.default.policy.figure.SelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.GlowSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onSelect:function(s,n,r){n.setGlow(!0),this.moved(s,n)},onUnselect:function(s,n){this._super(s,n),n.setGlow(!1)}})},
1"./src/policy/figure/HBusSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.HBusSelectionFeedbackPolicy=a.default.policy.figure.BusSelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.HBusSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},moved:function(s,n){if(!n.selectionHandles.isEmpty()){var r=n.selectionHandles.find(function(l){return 4===l.type}),u=n.selectionHandles.find(function(l){return 8===l.type});r.setDimension(r.getWidth(),n.getHeight()),u.setDimension(r.getWidth(),n.getHeight()),this._super(s,n)}}})},
1"./src/policy/figure/HorizontalEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.HorizontalEditPolicy=a.default.policy.figure.DragDropEditPolicy.extend({NAME:"draw2d.policy.figure.HorizontalEditPolicy",init:function(s,n,r){this._super(s,n,r)},adjustPosition:function(s,n,r){return new a.default.geo.Point(n,s.getY())}})},
1"./src/policy/figure/RectangleSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.RectangleSelectionFeedbackPolicy=a.default.policy.figure.SelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.RectangleSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onSelect:function(s,n,r){if(n.selectionHandles.isEmpty()){var u=new a.default.shape.basic.Rectangle({bgColor:null,dashArray:"- ",color:"#2C70FF",stroke:.5});u.hide=function(){u.setCanvas(null)},u.show=function(N){u.setCanvas(N),u.toFront(n)};var l=this.createResizeHandle(n,1),p=this.createResizeHandle(n,3),x=this.createResizeHandle(n,5),m=this.createResizeHandle(n,7);if(n.selectionHandles.add(l,p,x,m),l.show(s),p.show(s),x.show(s),m.show(s),!1===n.isResizeable()){var g={bgColor:null,draggable:!1};l.attr(g),p.attr(g),x.attr(g),m.attr(g),l.setDraggable(!1),p.setDraggable(!1),x.setDraggable(!1),m.setDraggable(!1)}if(!n.getKeepAspectRatio()&&n.isResizeable()){var w=this.createResizeHandle(n,2),C=this.createResizeHandle(n,4),k=this.createResizeHandle(n,6),M=this.createResizeHandle(n,8);n.selectionHandles.add(w,C,k,M),w.show(s),C.show(s),k.show(s),M.show(s)}n.selectionHandles.add(u),u.show(s)}this.moved(s,n)},moved:function(s,n){if(!n.selectionHandles.isEmpty()){var r=3*s.getZoom(),u=n.getHeight(),l=n.getWidth(),p=n.getAbsoluteX(),x=n.getAbsoluteY(),m=n.selectionHandles.find(function(P){return 1===P.type}),g=n.selectionHandles.find(function(P){return 3===P.type}),w=n.selectionHandles.find(function(P){return 5===P.type}),C=n.selectionHandles.find(function(P){return 7===P.type});if(m.setPosition(p-m.getWidth(),x-m.getHeight()),g.setPosition(p+l,x-g.getHeight()),w.setPosition(p+l,x+u),C.setPosition(p-C.getWidth(),x+u),!n.getKeepAspectRatio()&&n.isResizeable()){var k=n.selectionHandles.find(function(P){return 2===P.type}),M=n.selectionHandles.find(function(P){return 4===P.type}),N=n.selectionHandles.find(function(P){return 6===P.type}),O=n.selectionHandles.find(function(P){return 8===P.type});k.setPosition(p+l/2-k.getWidth()/2,x-k.getHeight()),M.setPosition(p+l,x+u/2-M.getHeight()/2),N.setPosition(p+l/2-N.getWidth()/2,x+u),O.setPosition(p-O.getWidth(),x+u/2-O.getHeight()/2)}var _=n.selectionHandles.last();_.attr({x:p-r,y:x-r,width:l+2*r,height:u+2*r,stroke:s.getZoom()}),_.setRotationAngle(n.getRotationAngle())}},createResizeHandle:function(s,n){return new a.default.ResizeHandle({owner:s,type:n,width:10,height:10})}})},
1"./src/policy/figure/RegionEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.RegionEditPolicy=a.default.policy.figure.DragDropEditPolicy.extend({NAME:"draw2d.policy.figure.RegionEditPolicy",init:function(s,n,r,u){if(this._super(),s instanceof a.default.geo.Rectangle)this.constRect=s;else{if("number"!=typeof u)throw"Invalid parameter. RegionEditPolicy need a rectangle as parameter in the constructor";this.constRect=new a.default.geo.Rectangle(s,n,r,u)}},setBoundingBox:function(s){return this.constRect=s,this},getBoundingBox:function(){return this.constRect},adjustPosition:function(s,n,r){var u=null;return u=n instanceof a.default.geo.Point?new a.default.geo.Rectangle(n.x,n.y,s.getWidth(),s.getHeight()):new a.default.geo.Rectangle(n,r,s.getWidth(),s.getHeight()),(u=this.constRect.moveInside(u)).getTopLeft()},adjustDimension:function(s,n,r){var u=s.getAbsoluteX()+n-this.constRect.getRight(),l=s.getAbsoluteY()+r-this.constRect.getBottom();return u>0&&(n-=u),l>0&&(r-=l),new a.default.geo.Rectangle(0,0,n,r)}})},
1"./src/policy/figure/ResizeSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.ResizeSelectionFeedbackPolicy=a.default.policy.figure.SelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.ResizeSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onSelect:function(s,n,r){if(n.selectionHandles.isEmpty()){var u=a.default.Configuration.factory.createResizeHandle(n,1),l=a.default.Configuration.factory.createResizeHandle(n,3),p=a.default.Configuration.factory.createResizeHandle(n,5),x=a.default.Configuration.factory.createResizeHandle(n,7);if(n.selectionHandles.add(u,l,p,x),u.show(s),l.show(s),p.show(s),x.show(s),!1===n.isResizeable()&&(u.setBackgroundColor(null),l.setBackgroundColor(null),p.setBackgroundColor(null),x.setBackgroundColor(null),u.setDraggable(!1),l.setDraggable(!1),p.setDraggable(!1),x.setDraggable(!1)),!n.getKeepAspectRatio()&&n.isResizeable()){var m=a.default.Configuration.factory.createResizeHandle(n,2),g=a.default.Configuration.factory.createResizeHandle(n,4),w=a.default.Configuration.factory.createResizeHandle(n,6),C=a.default.Configuration.factory.createResizeHandle(n,8);n.selectionHandles.add(m,g,w,C),m.show(s),g.show(s),w.show(s),C.show(s)}}this.moved(s,n)},moved:function(s,n){if(!n.selectionHandles.isEmpty()){var r=n.getHeight(),u=n.getWidth(),l=n.getX(),p=n.getY(),x=n.selectionHandles.find(function(O){return 1===O.type}),m=n.selectionHandles.find(function(O){return 3===O.type}),g=n.selectionHandles.find(function(O){return 5===O.type}),w=n.selectionHandles.find(function(O){return 7===O.type});if(x.setPosition(l-x.getWidth(),p-x.getHeight()),m.setPosition(l+u,p-m.getHeight()),g.setPosition(l+u,p+r),w.setPosition(l-w.getWidth(),p+r),!n.getKeepAspectRatio()){var C=n.selectionHandles.find(function(O){return 2===O.type}),k=n.selectionHandles.find(function(O){return 4===O.type}),M=n.selectionHandles.find(function(O){return 6===O.type}),N=n.selectionHandles.find(function(O){return 8===O.type});C.setPosition(l+u/2-C.getWidth()/2,p-C.getHeight()),k.setPosition(l+u,p+r/2-k.getHeight()/2),M.setPosition(l+u/2-M.getWidth()/2,p+r),N.setPosition(l-N.getWidth(),p+r/2-N.getHeight()/2)}}}})},
1"./src/policy/figure/RoundRectangleSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.RoundRectangleSelectionFeedbackPolicy=a.default.policy.figure.RectangleSelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.RoundRectangleSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},createResizeHandle:function(s,n){return new a.default.ResizeHandle({owner:s,type:n,width:12,height:12,radius:4})}})},
1"./src/policy/figure/SelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.SelectionFeedbackPolicy=a.default.policy.figure.SelectionPolicy.extend({NAME:"draw2d.policy.figure.SelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onUnselect:function(s,n){this._super(s,n),n.selectionHandles.each(function(r,u){return u.hide()}),n.selectionHandles=new a.default.util.ArrayList},onInstall:function(s){this._super(s);var n=s.getCanvas();null!==n&&n.getSelection().contains(s)&&this.onSelect(n,s,!0)},onUninstall:function(s){this._super(s),s.selectionHandles.each(function(n,r){return r.hide()}),s.selectionHandles=new a.default.util.ArrayList}})},
1"./src/policy/figure/SelectionPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.SelectionPolicy=a.default.policy.figure.DragDropEditPolicy.extend({NAME:"draw2d.policy.figure.SelectionPolicy",init:function(s,n,r){this._super(s,n,r)},onSelect:function(s,n,r){},onUnselect:function(s,n){}})},
1"./src/policy/figure/SlimSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.SlimSelectionFeedbackPolicy=a.default.policy.figure.RectangleSelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.SlimSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},createResizeHandle:function(s,n){return new a.default.ResizeHandle({owner:s,type:n,width:6,height:6,radius:0})}})},
1"./src/policy/figure/VBusSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.VBusSelectionFeedbackPolicy=a.default.policy.figure.BusSelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.VBusSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},moved:function(s,n){if(!n.selectionHandles.isEmpty()){var r=n.selectionHandles.find(function(p){return 2===p.type}),u=n.selectionHandles.find(function(p){return 6===p.type}),l=n.getWidth();r.setDimension(l,r.getHeight()),u.setDimension(l,u.getHeight()),this._super(s,n)}}})},
1"./src/policy/figure/VertexSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.VertexSelectionFeedbackPolicy=a.default.policy.figure.SelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.VertexSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onSelect:function(s,n,r){for(var u=n.getVertices(),l=0;l<u.getSize();l++){var p=new a.default.shape.basic.VertexResizeHandle(n,l);if(n.selectionHandles.add(p),p.setDraggable(n.isResizeable()),p.show(s),0!==l){var x=new a.default.shape.basic.GhostVertexResizeHandle(n,l-1);n.selectionHandles.add(x),x.setDraggable(n.isResizeable()),x.show(s)}}this.moved(s,n)},moved:function(s,n){n.selectionHandles.each(function(r,u){return u.relocate()})}})},
1"./src/policy/figure/VerticalEditPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.VerticalEditPolicy=a.default.policy.figure.DragDropEditPolicy.extend({NAME:"draw2d.policy.figure.VerticalEditPolicy",init:function(s,n,r){this._super(s,n,r)},adjustPosition:function(s,n,r){return new a.default.geo.Point(s.getX(),r)}})},
1"./src/policy/figure/WidthSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.figure.WidthSelectionFeedbackPolicy=a.default.policy.figure.SelectionFeedbackPolicy.extend({NAME:"draw2d.policy.figure.BusSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onSelect:function(s,n,r){if(n.selectionHandles.isEmpty()){var u=new a.default.ResizeHandle({owner:n,type:4}),l=new a.default.ResizeHandle({owner:n,type:8});u.installEditPolicy(new a.default.policy.figure.HorizontalEditPolicy),l.installEditPolicy(new a.default.policy.figure.HorizontalEditPolicy),n.selectionHandles.add(u,l),u.setDraggable(n.isResizeable()),l.setDraggable(n.isResizeable()),u.show(s),l.show(s)}this.moved(s,n)},moved:function(s,n){if(!n.selectionHandles.isEmpty()){var r=n.selectionHandles.find(function(m){return 4===m.type}),u=n.selectionHandles.find(function(m){return 8===m.type}),l=n.getWidth(),p=n.getX(),x=n.getY();r.setDimension(r.getWidth(),n.getHeight()),u.setDimension(u.getWidth(),n.getHeight()),r.setPosition(p+l,x),u.setPosition(p-u.getWidth(),x)}}})},
1"./src/policy/line/LineSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.line.LineSelectionFeedbackPolicy=a.default.policy.figure.SelectionFeedbackPolicy.extend({NAME:"draw2d.policy.line.LineSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onSelect:function(s,n,r){n.selectionHandles.isEmpty()&&(n.selectionHandles.add(new a.default.shape.basic.LineStartResizeHandle(n)),n.selectionHandles.add(new a.default.shape.basic.LineEndResizeHandle(n)),n.selectionHandles.each(function(u,l){l.setDraggable(n.isResizeable()),l.show(s)})),this.moved(s,n)},moved:function(s,n){n.selectionHandles.each(function(r,u){return u.relocate()})}})},
1"./src/policy/line/OrthogonalSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=r(c("./src/packages.js"));function r(u){return u&&u.__esModule?u:{default:u}}r(c("./src/lib/jquery.contextmenu.js")),r(c("./src/css/contextmenu.css")),a.default.policy.line.OrthogonalSelectionFeedbackPolicy=a.default.policy.line.LineSelectionFeedbackPolicy.extend({NAME:"draw2d.policy.line.OrthogonalSelectionFeedbackPolicy",init:function(l,p,x){this._super(l,p,x),this.ResizeHandle=a.default.ResizeHandle.extend({NAME:"draw2d.policy.line.OrthogonalSelectionFeedbackPolicy.ResizeHandle",init:function(g,w){this._super({owner:g}),this.index=w},onDragStart:function(g,w,C,k){this._super(g,w,C,k),this.command=this.getCanvas().getPrimarySelection().createCommand(new a.default.command.CommandType(a.default.command.CommandType.MOVE_VERTICES)),this.vertex=this.owner.getVertex(this.index).clone()},onDrag:function(g,w,C,k){if(null==this.command)return!1;var M=this.owner.getRouter().MINDIST||10,N=this.owner.getSource().getConnectionDirection(this.owner.getTarget()),O=this.owner.getTarget().getConnectionDirection(this.owner.getSource());this.vertex.translate(C,k);var _=this.owner.getVertices(),P=_.getSize(),A=Math.max,T=Math.min;if(1===this.index){var L=_.get(this.index-1),I=_.get(this.index),F=_.get(this.index+1);if(I.x===F.x&&L.y===I.y)switch(N){case a.default.geo.Rectangle.DIRECTION_RIGHT:this.owner.setVertex(1,A(L.x+M,this.vertex.x),I.y),this.owner.setVertex(2,A(L.x+M,this.vertex.x),F.y);break;case a.default.geo.Rectangle.DIRECTION_LEFT:this.owner.setVertex(1,T(L.x-M,this.vertex.x),I.y),this.owner.setVertex(2,T(L.x-M,this.vertex.x),F.y)}else switch(N){case a.default.geo.Rectangle.DIRECTION_UP:this.owner.setVertex(1,I.x,T(L.y-M,this.vertex.y)),this.owner.setVertex(2,F.x,T(L.y-M,this.vertex.y));break;case a.default.geo.Rectangle.DIRECTION_DOWN:this.owner.setVertex(1,I.x,A(L.y+M,this.vertex.y)),this.owner.setVertex(2,F.x,A(L.y+M,this.vertex.y))}}else if(this.index===P-2){var W=_.get(this.index-1),q=_.get(this.index),et=_.get(this.index+1);if(et.x===q.x&&W.y===q.y)switch(O){case a.default.geo.Rectangle.DIRECTION_UP:this.owner.setVertex(P-2,q.x,T(et.y-M,this.vertex.y)),this.owner.setVertex(P-3,W.x,T(et.y-M,this.vertex.y));break;case a.default.geo.Rectangle.DIRECTION_DOWN:this.owner.setVertex(P-2,q.x,A(et.y+M,this.vertex.y)),this.owner.setVertex(P-3,W.x,A(et.y+M,this.vertex.y))}else switch(O){case a.default.geo.Rectangle.DIRECTION_RIGHT:this.owner.setVertex(P-2,A(et.x+M,this.vertex.x),q.y),this.owner.setVertex(P-3,A(et.x+M,this.vertex.x),W.y);break;case a.default.geo.Rectangle.DIRECTION_LEFT:this.owner.setVertex(P-2,T(et.x-M,this.vertex.x),q.y),this.owner.setVertex(P-3,T(et.x-M,this.vertex.x),W.y)}}else{var X=_.get(this.index-2),it=_.get(this.index-1),z=_.get(this.index),j=_.get(this.index+1),tt=_.get(this.index+2);if(z.x===j.x&&z.y===it.y)if(this.index-2==0)switch(N){case a.default.geo.Rectangle.DIRECTION_RIGHT:this.owner.setVertex(this.index-1,it.x,A(this.vertex.y,X.y-M)),this.owner.setVertex(this.index,this.vertex.x,A(this.vertex.y,X.y-M)),this.owner.setVertex(this.index+1,this.vertex.x,j.y);break;case a.default.geo.Rectangle.DIRECTION_LEFT:this.owner.setVertex(this.index-1,it.x,T(this.vertex.y,X.y+M)),this.owner.setVertex(this.index,this.vertex.x,this.vertex.y),this.owner.setVertex(this.index+1,this.vertex.x,j.y);break;case a.default.geo.Rectangle.DIRECTION_UP:this.owner.setVertex(this.index-1,it.x,T(this.vertex.y,X.y-M)),this.owner.setVertex(this.index,this.vertex.x,T(this.vertex.y,X.y-M)),this.owner.setVertex(this.index+1,this.vertex.x,j.y);break;case a.default.geo.Rectangle.DIRECTION_DOWN:this.owner.setVertex(this.index-1,it.x,A(this.vertex.y,X.y+M)),this.owner.setVertex(this.index,this.vertex.x,A(this.vertex.y,X.y+M)),this.owner.setVertex(this.index+1,this.vertex.x,j.y)}else if(this.index-P+3==0)switch(O){case a.default.geo.Rectangle.DIRECTION_RIGHT:this.owner.setVertex(this.index-1,it.x,this.vertex.y),this.owner.setVertex(this.index,A(this.vertex.x,tt.x+M),this.vertex.y),this.owner.setVertex(this.index+1,A(this.vertex.x,tt.x+M),j.y);break;case a.default.geo.Rectangle.DIRECTION_LEFT:this.owner.setVertex(this.index-1,it.x,this.vertex.y),this.owner.setVertex(this.index,T(this.vertex.x,tt.x-M),this.vertex.y),this.owner.setVertex(this.index+1,T(this.vertex.x,tt.x-M),j.y)}else this.owner.setVertex(this.index-1,it.x,this.vertex.y),this.owner.setVertex(this.index,this.vertex),this.owner.setVertex(this.index+1,this.vertex.x,j.y);else if(it.x===z.x&&z.y===j.y)if(this.index-2==0)switch(N){case a.default.geo.Rectangle.DIRECTION_RIGHT:this.owner.setVertex(this.index-1,A(this.vertex.x,X.x+M),it.y),this.owner.setVertex(this.index,A(this.vertex.x,X.x+M),this.vertex.y),this.owner.setVertex(this.index+1,j.x,this.vertex.y);break;case a.default.geo.Rectangle.DIRECTION_LEFT:this.owner.setVertex(this.index-1,T(this.vertex.x,X.x-M),it.y),this.owner.setVertex(this.index,T(this.vertex.x,X.x-M),this.vertex.y),this.owner.setVertex(this.index+1,j.x,this.vertex.y)}else if(this.index-P+3==0)switch(O){case a.default.geo.Rectangle.DIRECTION_UP:this.owner.setVertex(this.index-1,this.vertex.x,A(this.vertex.y,it.y)),this.owner.setVertex(this.index,this.vertex.x,T(this.vertex.y,tt.
1y-M)),this.owner.setVertex(this.index+1,j.x,T(this.vertex.y,tt.y-M));break;case a.default.geo.Rectangle.DIRECTION_DOWN:this.owner.setVertex(this.index-1,this.vertex.x,it.y),this.owner.setVertex(this.index,this.vertex.x,A(this.vertex.y,tt.y+M)),this.owner.setVertex(this.index+1,j.x,A(this.vertex.y,tt.y+M))}else this.owner.setVertex(this.index-1,this.vertex.x,it.y),this.owner.setVertex(this.index,this.vertex),this.owner.setVertex(this.index+1,j.x,this.vertex.y)}return this.relocate(),null!==this.command&&this.command.updateVertices(this.owner.getVertices().clone()),this.owner._routingMetaData.routedByUserInteraction=!0,!0},onDragEnd:function(g,w,C,k){return this.getCanvas().getCommandStack().execute(this.command),this.command=null,!0},relocate:function(){var g=this.getWidth()/2,w=this.getHeight()/2,C=this.owner.getVertices().get(this.index);C&&this.setPosition(C.x-g,C.y-w)}})},onSelect:function(l,p,x){this._super(l,p,x);for(var m=p.getVertices(),g=1;g<m.getSize()-1;g++){var w=new this.ResizeHandle(p,g);p.selectionHandles.add(w),w.setDraggable(p.isResizeable()),w.show(l)}this.moved(l,p)},removeSegment:function(l,p){var m=l.getVertices().getSize()-1,g=l.getStartPoint(),w=l.getSource().getConnectionDirection(l.getTarget()),C=l.getEndPoint(),k=l.getTarget().getConnectionDirection(l.getSource()),M=l.getVertex(p-1),N=l.getVertex(p),O=l.getVertex(p+1),_=l.getVertex(p+2);if(N.y===O.y){var P=(N.x+O.x)/2;if(1===p)switch(w){case a.default.geo.Rectangle.DIRECTION_RIGHT:P=Math.max(P,g.x+10);break;case a.default.geo.Rectangle.DIRECTION_LEFT:P=Math.min(P,g.x-10);break;case a.default.geo.Rectangle.DIRECTION_UP:case a.default.geo.Rectangle.DIRECTION_DOWN:P=g.x}if(p===m-2)switch(w){case a.default.geo.Rectangle.DIRECTION_RIGHT:P=Math.max(P,C.x+10);break;case a.default.geo.Rectangle.DIRECTION_LEFT:P=Math.min(P,C.x-10);break;case a.default.geo.Rectangle.DIRECTION_UP:case a.default.geo.Rectangle.DIRECTION_DOWN:P=C.x}l.setVertex(p-1,new a.default.geo.Point(P,M.y)),l.setVertex(p+2,new a.default.geo.Point(P,_.y)),l.removeVertexAt(p),l.removeVertexAt(p),l._routingMetaData.routedByUserInteraction=!0}else if(N.x===O.x){var A=(N.y+O.y)/2;if(1===p)switch(w){case a.default.geo.Rectangle.DIRECTION_RIGHT:case a.default.geo.Rectangle.DIRECTION_LEFT:A=g.y;break;case a.default.geo.Rectangle.DIRECTION_UP:case a.default.geo.Rectangle.DIRECTION_DOWN:newX=g.x}if(p===m-2)switch(k){case a.default.geo.Rectangle.DIRECTION_RIGHT:case a.default.geo.Rectangle.DIRECTION_LEFT:A=C.y;break;case a.default.geo.Rectangle.DIRECTION_UP:case a.default.geo.Rectangle.DIRECTION_DOWN:newX=C.x}l.setVertex(p-1,new a.default.geo.Point(M.x,A)),l.setVertex(p+2,new a.default.geo.Point(_.x,A)),l.removeVertexAt(p),l.removeVertexAt(p),l._routingMetaData.routedByUserInteraction=!0}},splitSegment:function(l,p,x,m){var g=l.getVertices().getSize()-1,w=l.getVertex(p),C=l.getVertex(p+1),k=40;if(w.x===C.x)if(l._routingMetaData.routedByUserInteraction=!0,1===g){var M=w.getDistance(C)/4/2,N=new a.default.geo.Point(w.x,m-M),O=new a.default.geo.Point(C.x+k,m-M),_=new a.default.geo.Point(C.x+k,m+M),P=new a.default.geo.Point(C.x,m+M);l.insertVertexAt(p+1,N),l.insertVertexAt(p+2,O),l.insertVertexAt(p+3,_),l.insertVertexAt(p+4,P)}else{var A=new a.default.geo.Point(0,0),T=new a.default.geo.Point(0,0);0===p?(A.y=m,A.x=w.x,T.y=m,T.x=C.x+k,l.setVertex(p+1,new a.default.geo.Point(T.x,C.y))):p===g-1?(A.y=m,A.x=w.x-k,T.y=m,T.x=C.x,l.setVertex(p,new a.default.geo.Point(A.x,w.y))):(A.y=m,A.x=w.x-20,T.y=m,T.x=C.x+20,l.setVertex(p,new a.default.geo.Point(A.x,w.y)),l.setVertex(p+1,new a.default.geo.Point(T.x,C.y))),l.insertVertexAt(p+1,A),l.insertVertexAt(p+2,T)}else if(w.y==C.y)if(l._routingMetaData.routedByUserInteraction=!0,1===g){var L=w.getDistance(C)/4/2,I=new a.default.geo.Point(x-L,w.y),F=new a.default.geo.Point(x-L,w.y-k),W=new a.default.geo.Point(x+L,w.y-k),q=new a.default.geo.Point(x+L,w.y);l.insertVertexAt(p+1,I),l.insertVertexAt(p+2,F),l.insertVertexAt(p+3,W),l.insertVertexAt(p+4,q)}else{var et=new a.default.geo.Point(0,0),X=new a.default.geo.Point(0,0);0===p?(et.x=x,et.y=w.y,X.x=x,X.y=C.y+k,l.setVertex(p+1,new a.default.geo.Point(C.x,X.y))):p===g-1?(et.x=x,et.y=w.y-k,X.x=x,X.y=C.y,l.setVertex(p,new a.default.geo.Point(w.x,et.y))):(et.x=x,et.y=w.y-20,X.x=x,X.y=C.y+20,l.setVertex(p,new a.default.geo.Point(w.x,et.y)),l.setVertex(p+1,new a.default.geo.Point(C.x,X.y))),l.insertVertexAt(p+1,et),l.insertVertexAt(p+2,X)}},onRightMouseDown:function(l,p,x,m,g){var w=this,C=l.hitSegment(p,x),k={split:{name:a.default.Configuration.i18n.menu.addSegment}};null!==C&&(l.getRouter().canRemoveSegmentAt(l,C.index)&&(k.remove={name:a.default.Configuration.i18n.menu.deleteSegment}),$.contextMenu({selector:"body",events:{hide:function(){$.contextMenu("destroy")}},callback:function(N,O){switch(N){case"remove":var _=l.getVertices().clone(!0);w.removeSegment(l,C.index);var P=l.getVertices().clone(!0);l.getCanvas().getCommandStack().execute(new a.default.command.CommandReplaceVertices(l,_,P));break;case"split":var A=l.getVertices().clone(!0);w.splitSegment(l,C.index,p,x);var T=l.getVertices().clone(!0);l.getCanvas().getCommandStack().execute(new a.default.command.CommandReplaceVertices(l,A,T))}},x:p,y:x,items:k}))}})},
1"./src/policy/line/VertexSelectionFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.line.VertexSelectionFeedbackPolicy=a.default.policy.line.LineSelectionFeedbackPolicy.extend({NAME:"draw2d.policy.line.VertexSelectionFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onSelect:function(s,n,r){var u=new a.default.shape.basic.LineStartResizeHandle(n),l=new a.default.shape.basic.LineEndResizeHandle(n);n.selectionHandles.add(u),n.selectionHandles.add(l);for(var x=n.getVertices().getSize()-1,m=1;m<x;m++)n.selectionHandles.add(new a.default.shape.basic.VertexResizeHandle(n,m)),n.selectionHandles.add(new a.default.shape.basic.GhostVertexResizeHandle(n,m-1));n.selectionHandles.add(new a.default.shape.basic.GhostVertexResizeHandle(n,m-1)),n.selectionHandles.each(function(g,w){w.setDraggable(n.isResizeable()),w.show(s)}),this.moved(s,n)}})},
1"./src/policy/port/ElasticStrapFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.port.ElasticStrapFeedbackPolicy=a.default.policy.port.PortFeedbackPolicy.extend({NAME:"draw2d.policy.port.ElasticStrapFeedbackPolicy",init:function(s,n,r){this._super(s,n,r),this.connectionLine=null},onDragStart:function(s,n,r,u,l,p){return this.connectionLine=new a.default.shape.basic.Line,this.connectionLine.setCanvas(s),this.connectionLine.getShapeElement(),this.onDrag(s,n),!0},onDrag:function(s,n){var r=n.ox+n.getParent().getAbsoluteX(),u=n.oy+n.getParent().getAbsoluteY();this.connectionLine.setStartPosition(r,u),this.connectionLine.setEndPosition(n.getAbsoluteX(),n.getAbsoluteY())},onDragEnd:function(s,n,r,u,l,p){this.connectionLine.setCanvas(null),this.connectionLine=null},onHoverEnter:function(s,n,r){this.connectionLine.setGlow(!0),r.setGlow(!0)},onHoverLeave:function(s,n,r){r.setGlow(!1),this.connectionLine.setGlow(!1)}})},
1"./src/policy/port/IntrusivePortsFeedbackPolicy.js":function(h,y,c){"use strict";var a=function t(s){return s&&s.__esModule?s:{default:s}}(c("./src/packages.js")),v=c("./node_modules/shifty/dist/shifty.js");a.default.policy.port.IntrusivePortsFeedbackPolicy=a.default.policy.port.PortFeedbackPolicy.extend({NAME:"draw2d.policy.port.IntrusivePortsFeedbackPolicy",init:function(n,r,u){this._super(n,r,u),this.connectionLine=null,this.tweenable=null,this.growFactor=2},onDragStart:function(n,r,u,l,p,x){var m=n.getAllPorts().clone();m.grep(function(w){return w.NAME!==r.NAME&&w.parent!==r.parent&&w.getSemanticGroup()===r.getSemanticGroup()||w instanceof a.default.HybridPort||r instanceof a.default.HybridPort});var g=0;return m.each(function(w,C){void 0===C.__beforeInflate&&(C.__beforeInflate=C.getWidth()),g=C.__beforeInflate}),this.tweenable=new v.Tweenable,this.tweenable.tween({from:{size:g},to:{size:g*this.growFactor},duration:200,easing:"easeOutSine",step:function(C){m.each(function(k,M){M.shape.attr({rx:C.size/2,ry:C.size/2}),M.width=M.height=C.size,M.fireEvent("resize")})}}),this.connectionLine=new a.default.shape.basic.Line,this.connectionLine.setCanvas(n),this.connectionLine.getShapeElement(),this.connectionLine.setDashArray("- "),this.connectionLine.setColor("#30c48a"),this.onDrag(n,r),!0},onDrag:function(n,r){var u=r.ox+r.getParent().getAbsoluteX(),l=r.oy+r.getParent().getAbsoluteY();this.connectionLine.setStartPosition(u,l),this.connectionLine.setEndPosition(r.getAbsoluteX(),r.getAbsoluteY())},onDragEnd:function(n,r,u,l,p,x){this.tweenable&&(this.tweenable.stop(!0),this.tweenable.dispose(),this.tweenable=null);var m=n.getAllPorts().clone();m.grep(function(g){return g.__beforeInflate}),m.each(function(g,w){w.shape.attr({rx:w.__beforeInflate/2,ry:w.__beforeInflate/2}),w.width=w.height=w.__beforeInflate,delete w.__beforeInflate}),this.connectionLine.setCanvas(null),this.connectionLine=null},onHoverEnter:function(n,r,u){this.connectionLine.setGlow(!0),u.setGlow(!0)},onHoverLeave:function(n,r,u){u.setGlow(!1),this.connectionLine.setGlow(!1)}})},
1"./src/policy/port/PortFeedbackPolicy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.policy.port.PortFeedbackPolicy=a.default.policy.figure.DragDropEditPolicy.extend({NAME:"draw2d.policy.port.PortFeedbackPolicy",init:function(s,n,r){this._super(s,n,r)},onHoverEnter:function(s,n,r){},onHoverLeave:function(s,n,r){}})},
1"./src/shape/analog/OpAmp.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.analog.OpAmp=a.default.SVGFigure.extend({NAME:"draw2d.shape.analog.OpAmp",MyInputPortLocator:a.default.layout.locator.PortLocator.extend({init:function(){this._super()},relocate:function(s,n){var r=n.getParent();this.applyConsiderRotation(n,1,(8+18.5*s)*r.scaleY)}}),init:function(s,n,r){this._super(extend({stroke:0,bgColor:"#f0f0ff"},s),n,r),this.inputLocator=new this.MyInputPortLocator,this.createPort("input",this.inputLocator),this.createPort("input",this.inputLocator),this.createPort("output")},getSVG:function(){return'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="50" height="50"><path d="m8.2627,0l0,35.36035l31.23926,-17.76025l-31.23926,-17.60011l0,0l0,0.00001zm2.27832,27.36719l4.08105,0m-2.10449,-2.20703l0,4.27979m2.26367,-21.35938l-4.15918,0" stroke="#1B1B1B" fill="none"/><line x1="0.53516" y1="8" x2="8.21191" y2="8" stroke="#010101"/><line x1="39.14941" y1="18" x2="45.81055" y2="18" stroke="#010101" /><line x1="0.53516" y1="27" x2="8.21191" y2="27" stroke="#010101" /></svg>'},repaint:function(s){if(!0!==this.repaintBlocked&&null!==this.shape)return(s=s||{}).fill="none",null!=this.bgColor&&this.svgNodes[0].attr({fill:this.bgColor.rgba()}),this._super(s),this}})},
1"./src/shape/analog/ResistorBridge.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.analog.ResistorBridge=a.default.SVGFigure.extend({NAME:"draw2d.shape.analog.ResistorBridge",MyInputPortLocator:a.default.layout.locator.PortLocator.extend({init:function(){this._super()},relocate:function(s,n){var r=n.getParent().getWidth(),u=n.getParent().getHeight();this.applyConsiderRotation(n,r/2+1,u*s)}}),MyOutputPortLocator:a.default.layout.locator.PortLocator.extend({init:function(){this._super()},relocate:function(s,n){var r=n.getParent().getWidth(),u=n.getParent().getHeight();this.applyConsiderRotation(n,r*(s-2),u/2)}}),init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r),this.inputLocator=new this.MyInputPortLocator,this.outputLocator=new this.MyOutputPortLocator,this.createPort("hybrid",this.inputLocator),this.createPort("hybrid",this.inputLocator),this.createPort("hybrid",this.outputLocator),this.createPort("hybrid",this.outputLocator)},getSVG:function(){return'<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><path fill="#010101" stroke="#010101" stroke-miterlimit="14.3" id="path12322" d="m47.62207,22.71094l0,0c0.73145,0.73242 0.71777,1.93359 -0.03027,2.68164c-0.74805,0.74951 -1.94922,0.76123 -2.68073,0.0293c-0.73138,-0.73242 -0.71967,-1.93211 0.03033,-2.68115c0.74707,-0.74803 1.94727,-0.76219 2.68066,-0.02979l0,0z"/><path fill="#010101" stroke="#010101" stroke-miterlimit="14.3" id="path12324" d="m25.84082,0.93115l0,0c0.73145,0.73096 0.71875,1.93359 -0.02832,2.68066c-0.75,0.74951 -1.94922,0.76123 -2.68164,0.0293c-0.73242,-0.73241 -0.71973,-1.93164 0.0293,-2.68065c0.74805,-0.74756 1.94922,-0.76172 2.68066,-0.0293l0,0l0,-0.00002z"/><path fill="#010101" stroke="#010101" stroke-miterlimit="14.3" id="path12326" d="m25.75098,44.58203l0,0c0.73145,0.73193 0.71875,1.93311 -0.02832,2.68115c-0.75,0.74902 -1.94922,0.76074 -2.68262,0.0293c-0.73145,-0.73193 -0.71973,-1.93262 0.03033,-2.68164c0.74707,-0.74756 1.94922,-0.76123 2.68066,-0.02879l0,0l-0.00006,-0.00002z"/><path fill="#010101" stroke="#010101" stroke-miterlimit="14.3" id="path12328" d="m3.9707,22.80127l0,0c0.73242,0.73193 0.71777,1.93359 -0.0293,2.68115c-0.74902,0.74951 -1.94922,0.76172 -2.68164,0.0293c-0.73145,-0.73242 -0.71973,-1.93164 0.03027,-2.68115c0.74707,-0.74707 1.94922,-0.76074 2.68066,-0.0293l0,0z"/><polyline fill="none" stroke="#010101" id="polyline12334" points="24.908203125,45.49267578125 31.71875,38.68310546875 31.2119140625,36.98876953125 34.892578125,37.95703125 33.953125,34.22265625 37.6650390625,35.18359375 36.6767578125,31.52490234375 40.3759765625,32.47314453125 39.873046875,30.52783203125 45.884765625,24.51708984375 " stroke-miterlimit="14.3"/><polyline fill="#010101" id="polyline12338" points="36.3408203125,23.98876953125 38.146484375,29.55810546875 33.630859375,29.55810546875 35.435546875,23.98779296875 "/><line fill="none" stroke="#010101" id="line12340" y2="28.90967" x2="35.8877" y1="41.13428" x1="35.88867" stroke-miterlimit="14.3"/><polyline fill="none" stroke="#010101" id="polyline12346" points="3.2109375,23.79248046875 10.01953125,16.98388671875 9.513671875,15.2890625 13.193359375,16.25732421875 12.251953125,12.5234375 15.9658203125,13.48486328125 14.9775390625,9.82568359375 18.6767578125,10.7734375 18.173828125,8.82958984375 24.185546875,2.81787109375 " stroke-miterlimit="14.3"/><polyline fill="#010101" id="polyline12350" points="13.126953125,23.80419921875 11.3212890625,18.236328125 15.8369140625,18.236328125 14.0322265625,23.806640625 "/><line fill="none" stroke="#010101" id="line12352" y2="18.8833" x2="13.58008" y1="6.65967" x1="13.5791" stroke-miterlimit="14.3"/><polyline fill="none" stroke="#010101" id="polyline12358" points="46.65625,24.33642578125 39.84765625,17.52783203125 38.154296875,18.033203125 39.1220703125,14.353515625 35.3876953125,15.29345703125 36.34765625,11.58056640625 32.689453125,12.56884765625 33.6376953125,8.86865234375 31.6923828125,9.373046875 24.322265625,2.00341796875 " stroke-miterlimit="14.3"/><polyline fill="#010101" id="polyline12362" points="36.578125,1.87109375 38.3828125,7.439453125 33.8681640625,7.439453125 35.672851
15625,1.869140625 "/><line fill="none" stroke="#010101" id="line12364" y2="6.7915" x2="36.125" y1="19.01758" x1="36.125" stroke-miterlimit="14.3"/><polyline fill="none" stroke="#010101" id="polyline12370" points="24.494140625,46.49951171875 17.685546875,39.69091796875 15.9921875,40.1953125 16.958984375,36.515625 13.2265625,37.45556640625 14.185546875,33.7421875 10.52734375,34.73193359375 11.474609375,31.03125 9.529296875,31.53515625 2.1611328125,24.166015625 " stroke-miterlimit="14.3"/><polyline fill="#010101" id="polyline12374" points="12.150390625,44.80029296875 10.34765625,39.23193359375 14.861328125,39.23095703125 13.0556640625,44.80224609375 "/><line fill="none" stroke="#010101" id="line12376" y2="39.87891" x2="12.60352" y1="27.6543" x1="12.60352" stroke-miterlimit="14.3"/></svg>'}})},
1"./src/shape/analog/ResistorVertical.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.analog.ResistorVertical=a.default.SetFigure.extend({NAME:"draw2d.shape.analog.ResistorVertical",MyInputPortLocator:a.default.layout.locator.PortLocator.extend({init:function(){this._super()},relocate:function(s,n){var r=n.getParent().getWidth(),u=n.getParent().getHeight();this.applyConsiderRotation(n,r/2,u)}}),MyOutputPortLocator:a.default.layout.locator.PortLocator.extend({init:function(){this._super()},relocate:function(s,n){var r=n.getParent().getWidth();this.applyConsiderRotation(n,r/2,0)}}),init:function(s,n,r){this._super(extend({width:30,height:50,bgColor:null},s),n,r),this.inputLocator=new this.MyInputPortLocator,this.outputLocator=new this.MyOutputPortLocator,this.createPort("hybrid",this.inputLocator),this.createPort("hybrid",this.outputLocator)},createSet:function(){var s=this._super();return s.push(this.canvas.paper.path("M15,0 L15,5 L0,7.5 L30,10 L0,15 L30,20 L0,25 L30,30 L15,32.5 L15,40")),s}})},
1"./src/shape/analog/VoltageSupplyHorizontal.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.analog.VoltageSupplyHorizontal=a.default.SVGFigure.extend({NAME:"draw2d.shape.analog.VoltageSupplyHorizontal",MyInputPortLocator:a.default.layout.locator.PortLocator.extend({init:function(){this._super()},relocate:function(s,n){var r=n.getParent().getHeight();this.applyConsiderRotation(n,0,r/2)}}),MyOutputPortLocator:a.default.layout.locator.PortLocator.extend({init:function(){this._super()},relocate:function(s,n){var r=n.getParent().getWidth(),u=n.getParent().getHeight();this.applyConsiderRotation(n,r,u/2)}}),init:function(s,n,r){this._super(extend({width:50,height:30},s),n,r),this.createPort("hybrid",new this.MyInputPortLocator),this.createPort("hybrid",new this.MyOutputPortLocator)},getSVG:function(){return'<svg width="49" height="28" xmlns="http://www.w3.org/2000/svg" version="1.1"><path d="m24.99933,18.95592l0,-9.54576m-5.78374,-9.40907l0,28.35939m-5.78718,-9.40457l0,-9.54576m-5.78374,-9.40907l0,28.35939" id="path10566" stroke-miterlimit="14.3" stroke="#010101" fill="none"/><path d="m26.79878,14.13039l6.90583,0m-33.22691,0l6.90583,0" id="path10568" stroke-miterlimit="14.3" stroke-linecap="square" stroke="#010101" fill="none"/></svg>'}})},
1"./src/shape/analog/VoltageSupplyVertical.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.analog.VoltageSupplyVertical=a.default.SVGFigure.extend({NAME:"draw2d.shape.analog.VoltageSupplyVertical",MyInputPortLocator:a.default.layout.locator.PortLocator.extend({init:function(){this._super()},relocate:function(s,n){var r=n.getParent().getWidth(),u=n.getParent().getHeight();this.applyConsiderRotation(n,r/2,u)}}),MyOutputPortLocator:a.default.layout.locator.PortLocator.extend({init:function(){this._super()},relocate:function(s,n){var r=n.getParent().getWidth();this.applyConsiderRotation(n,r/2,0)}}),init:function(s,n,r){this._super(extend({width:30,height:50},s),n,r),this.inputLocator=new this.MyInputPortLocator,this.outputLocator=new this.MyOutputPortLocator,this.createPort("hybrid",this.inputLocator),this.createPort("hybrid",this.outputLocator)},getSVG:function(){return'<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><path d="m19.62398,12.37594l-9.87926,0m-9.74355,8.22145l29.36289,0m
1-9.74007,8.22469l-9.87927,0m-9.74355,8.22145l29.36289,0" id="path10560" stroke-miterlimit="14.3" stroke="#010101" fill="none"/><path d="m14.63157,9.81646l0,-9.81646m0,47.2328l0,-9.81646" id="path10562" stroke-miterlimit="14.3" stroke-linecap="square" stroke="#010101" fill="none"/></svg>'}})},
1"./src/shape/arrow/CalligrapherArrowDownLeft.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.arrow.CalligrapherArrowDownLeft=a.default.SVGFigure.extend({NAME:"draw2d.shape.arrow.CalligrapherArrowDownLeft",init:function(s,n,r){this._super(s)},getSVG:function(){return'<svg width="180" height="300" xmlns="http://www.w3.org/2000/svg" version="1.1"> <path style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none" id="path3084" d="m 159.63578,17.846597 c 0.43137,9.44641 -0.0636,18.88035 -0.8284,28.30165 c -1.73211,18.38336 -4.05381,36.71698 -6.08253,55.075313 c -1.61738,13.7075 -3.03402,27.43467 -3.97611,41.19113 c -1.09101,11.16584 -1.31019,22.36559 -1.28541,33.56466 c -0.1328,4.82188 0.3218,9.6468 0.14332,14.46812 c -0.0888,2.39977 -0.28315,3.73625 -0.55012,6.12095 c -0.85848,4.73147 -2.27416,9.40019 -4.7769,13.68272 c -1.47003,2.51544 -3.78493,5.6647 -5.47739,8.05048 c -5.02888,6.66256 -11.08555,12.65652 -18.10552,17.75963 c -4.23302,3.07716 -7.74942,5.12065 -12.22081,7.86298 c -13.253319,6.72606 -25.889792,15.11686 -40.84124,18.60576 c -3.016829,0.7039 -4.431417,0.8157 -7.450859,1.2076 c -6.983246,0.5774 -14.009174,0.3375 -21.010676,0.2509 c -3.278795,-0.033 -6.55749,0.01 -9.835897,0.045 c 0,0 20.838833,-13.2364 20.838833,-13.2364 l 0,0 c 3.147056,0.093 6.294483,0.1852 9.443646,0.2007 c 6.966697,0.011 13.971433,0.1301 20.897176,-0.6344 c 3.732439,-0.5577 7.321215,-1.2431 10.881203,-2.4145 c 1.517208,-0.4992 5.830867,-2.43339 4.487902,-1.6386 c -6.098183,3.6088 -25.104875,12.8748 -9.52514,5.223 c 4.40875,-2.5927 8.262057,-4.7459 12.425175,-7.65986 c 6.839117,-4.78709 12.633657,-10.50427 17.500607,-16.86761 c 2.53518,-3.56692 5.24684,-7.12748 7.07617,-11.03446 c 1.42357,-3.0404 2.21532,-6.28727 2.91146,-9.50152 c 0.91919,-6.88822 1.03991,-13.81392 1.25118,-20.74151 c 0.47683,-11.27871 0.96259,-22.55877 1.61689,-33.83062 c 1.21127,-14.03392 3.64191,-27.94339 5.46543,-41.92167 c 2.26899,-18.186603 4.6835,-36.384373 5.4487,-54.679643 c 0.0788,-2.46092 0.23808,-4.92087 0.23618,-7.38276 c -0.005,-6.45916 -0.62194,-13.00218 -2.13821,-19.32664 c 0,0 23.48134,-10.73998 23.48134,-10.73998 z" inkscape:connector-curvature="0" /> <path style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none" id="path3086" d="m 41.271518,252.40239 c 2.465518,-0.7264 4.879503,-1.7726 7.145328,-2.9859 c 0.955597,-0.5117 3.736822,-2.1986 2.791991,-1.6673 c -5.218817,2.9348 -10.409826,5.9187 -15.61474,8.878 c 5.366557,-3.4898 10.227818,-7.6685 14.119927,-12.75576 c 3.507157,-5.09382 4.097613,-11.17122 4.301158,-17.17644 c 0.02635,-3.95844 -0.31227,-7.90612 -0.635377,-11.84752 c 0,0 19.920693,-10.3059 19.920693,-10.3059 l 0,0 c 0.171761,4.05015 0.409899,8.09777 0.50079,12.15101 c -0.185739,6.23619 -0.347804,12.66862 -3.492579,18.24747 c -0.503375,0.75197 -0.961922,1.53596 -1.510126,2.25591 c -3.478528,4.56826 -8.226837,8.04586 -12.757403,11.47443 c -7.345206,4.3297 -14.671333,8.692 -22.035619,12.9891 c -3.551305,2.0723 -7.368692,3.8726 -11.394645,4.7773 c 0,0 18.660602,-14.0344 18.660602,-14.0344 z" inkscape:connector-curvature="0" /> <path style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none" id="path3088" d="m 37.815923,255.49919 c 3.41111,0.1581 6.814569,0.2213 10.182693,0.8184 c 6.92998,2.6928 13.533527,6.2357 20.043462,9.8162 c 3.912139,2.1362 7.91195,4.4644 10.690321,8.0298 c 1.039962,1.2802 1.510411,2.7604 1.893523,4.3313 c 0,0 -20.370847,10.9259 -20.370847,10.9259 l 0,0 c -0.225419,-1.2711 -0.55067,-2.4558 -1.329618,-3.5184 c -2.332229,-3.3633 -5.869056,-5.6279 -9.247191,-7.8233 c -6.335066,-3.7106 -12.98611,-7.1834 -20.232784,-8.6836 c -3.497247,-0.3814 -7.011372,-0.4307 -10.521829,-0.1703 c 0,0 18.89227,-13.726 18.89227,-13.726 z" inkscape:connector-curvature="0" /></svg>'},repaint:function(s){!0===this.repaintBlocked||null===this.shape||(null!==this.svgNodes&&this.svgNodes.attr({fill:this.color.rgba()}),this._super(s))}})},
1"./src/shape/arrow/CalligrapherArrowLeft.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.arrow.CalligrapherArrowLeft=a.default.SVGFigure.extend({NAME:"draw2d.shape.arrow.CalligrapherArrowLeft",init:function(s,n,r){this._super(s)},getSVG:function(){return'<svg width="230" height="60" xmlns="http://www.w3.org/2000/svg" version="1.1"> <path style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none" id="path3024" d="m 218.87943,27.464763 c -1.21088,-0.0563 -2.42064,-0.14616 -3.63262,-0.16893 c -5.82495,-0.10948 -18.61676,-0.0226 -22.97385,0.0122 c -7.12848,0.057 -14.25673,0.14021 -21.38495,0.22333 c -9.03765,0.10539 -18.07511,0.22813 -27.11266,0.3422 c -10.2269,0.11878 -20.4538,0.23756 -30.6807,0.35634 c -35.488759,0.4089 -70.975849,0.82793 -106.4669238,0.95195 c 0,0 7.9718628,-5.70244 7.9718628,-5.70244 l 0,0 c 6.374241,0.28694 12.745594,0.64561 19.122722,0.86083 c 28.09499,0.94816 56.21338,0.92473 84.315959,0.32205 c 10.51273,-0.32805 21.0288,-0.56402 31.53819,-0.98412 c 27.47361,-1.09824 54.91405,-2.91665 82.28177,-5.53697 c 0,0 -12.9788,9.32351 -12.9788,9.32351 z" inkscape:connector-curvature="0" /> <path style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none" id="path3026" d="m 100.75066,1.6309831 c -7.165239,3.9571 -14.284929,7.47866 -22.036659,10.2707299 c -5.00195,1.80163 -10.10374,3.31886 -15.2402,4.79424 c -8.25878,2.37815 -16.55626,4.65805 -24.9012,6.79479 c -2.89107,0.71593 -5.74687,1.56407 -8.66266,2.20424 c -3.211679,0.70512 -6.49468,1.17333 -9.752959,1.6747 c -5.447101,0.92112 -10.9044008,1.81762 -16.3983488,2.50082 c -1.608931,0.0814 -0.850754,0.10697 -2.275834,-0.0365 C 20.004071,21.041553 19.256899,21.517873 32.515691,19.216243 c 6.21537,-1.05913 12.34875,-2.37668 18.3945,-4.03234 c 8.12719,-2.02803 16.23765,-4.1157 24.26421,-6.4321199 c 5.23574,-1.55053 10.41682,-3.15473 15.46857,-5.12875 c 1.38953,-0.54295 2.7579,-1.12682 4.12253,-1.71603 c 0.98421,-0.42496 3.86537,-1.81801999 2.92296,-1.32600999 C 93.642191,2.6934931 89.529511,4.7073031 85.450031,6.7704531 l 15.300629,-5.1394 z" inkscape:connector-curvature="0" sodipodi:nodetypes="csccsccccccsssccc" /> <path style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none" id="path3028" d="m 80.764281,58.068863 c -2.45498,-3.50762 -6.58178,-6.10525 -10.40324,-8.66732 c -4.30614,-2.72676 -7.93958,-6.28283 -12.6021,-8.28702 c -7.39912,-4.50257 -11.70055,-7.85592 -20.85866,-9.23429 c -4.9257,-0.85706 -17.294247,-1.32043 -22.226462,-2.15427 c -3.445882,-0.42869 -6.2035918,0.70541 -9.6845138,0.57715 c -1.496337,-0.0586 -2.99355,-0.0965 -4.491229,-0.12472 l 13.9525278,-6.24562 l 3.25,-1.17153 c 1.441459,0.0813 -1.116338,0.15309 0.325505,0.23016 c 3.574557,0.17902 7.211864,0.0695 10.712655,0.73822 c 4.723107,1.08097 9.443947,2.1624 14.234177,3.05317 c 2.76739,0.64203 3.92627,0.87082 6.64127,1.66289 c 4.42146,1.28993 8.60075,3.01513 12.86503,4.58129 c 1.90199,0.73446 5.05193,1.93181 6.89302,2.7216 c 4.92005,2.11061 9.5916,4.57045 13.9716,7.31023 c 4.16708,2.62011 8.48023,5.20033 11.72012,8.56863 z" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccccccccscsccc" /></svg>'},repaint:function(s){!0===this.repaintBlocked||null===this.shape||(null!==this.svgNodes&&this.svgNodes.attr({fill:this.color.rgba()}),this._super(s))}})},
1"./src/shape/basic/Arc.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.basic.Arc=a.default.SetFigure.extend({NAME:"draw2d.shape.basic.Arc",init:function(r,u,l){this.startAngle=180,this.endAngle=360,this._super((0,t.default)({width:80,height:50,bgColor:null,color:"#1B1B1B"},r),u,l),this.strokeScale=!1},createSet:function(){this.canvas.paper.setStart();var r=this.endAngle-this.startAngle>180,u=this.startAngle%360*Math.PI/180,l=this.endAngle%360*Math.PI/180,p=this.getWidth()/2,x=this.getHeight()/2;return this.canvas.paper.path([["M",p,x,"l",p*Math.cos(u),x*Math.sin(u),"A",p,x,0,+r,1,p+p*Math.cos(l),x+x*Math.sin(l),"z"]].join("")).attr({fill:"#fff0f0"}),this.canvas.paper.setFinish()}})},
1"./src/shape/basic/Circle.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.basic.Circle=a.default.shape.basic.Oval.extend({NAME:"draw2d.shape.basic.Circle",init:function(r,u,l){this._super(r,(0,t.default)({diameter:this.setDiameter,radius:this.setRadius},u),(0,t.default)({diameter:this.getDiameter,radius:this.getRadius},l)),this.setKeepAspectRatio(!0)},setDiameter:function(r){var u=this.getCenter();return this.setDimension(r,r),this.setCenter(u),this.fireEvent("change:diameter",{value:r}),this},getDiameter:function(){return this.getWidth()},setRadius:function(r){return this.setDiameter(2*r),this.fireEvent("change:radius",{value:r}),this},getRadius:function(){return this.getWidth/2},getPersistentAttributes:function(){var r=this._super();return delete r.radius,r}})},
1"./src/shape/basic/Diamond.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.basic.Diamond=a.default.shape.basic.Polygon.extend({NAME:"draw2d.shape.basic.Diamond",init:function(s,n,r){this._super(extend({bgColor:"#00a3f6",color:"#1B1B1B"},s),n,r);var u=this.getPosition();this.resetVertices();var l=this.getBoundingBox();this.addVertex(l.w/2,0),this.addVertex(l.w,l.h/2),this.addVertex(l.w/2,l.h),this.addVertex(0,l.h/2),this.installEditPolicy(new a.default.policy.figure.RectangleSelectionFeedbackPolicy),this.setPosition(u)}})},
1"./src/shape/basic/GhostVertexResizeHandle.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.basic.GhostVertexResizeHandle=a.default.shape.basic.LineResizeHandle.extend({NAME:"draw2d.shape.basic.GhostVertexResizeHandle",init:function(s,n){this.maxOpacity=.35,this.precursorIndex=n,this._super({owner:s,opacity:this.maxOpacity})},createShapeElement:function(){var s=this._super();return s.attr({cursor:"pointer"}),s},setAlpha:function(s){return this._super(Math.min(this.maxOpacity,Math.max(0,parseFloat(s)))),this},onClick:function(){var s=new a.default.command.CommandAddVertex(this.owner,this.precursorIndex+1,this.getAbsoluteX()+this.getWidth()/2,this.getAbsoluteY()+this.getHeight()/2);this.getCanvas().getCommandStack().execute(s)},onDragStart:function(s,n,r,u){return!0},onDrag:function(s,n,r,u){return!0},onDragEnd:function(s,n,r,u){return this.fireEvent("dragend",{x:s,y:n,shiftKey:r,ctrlKey:u}),!0},relocate:function(){var s=this.owner.getVertices().get(this.precursorIndex),n=this.owner.getVertices().get(this.precursorIndex+1);this.setPosition((n.x-s.x)/2+s.x-this.getWidth()/2,(n.y-s.y)/2+s.y-this.getHeight()/2)}})},
1"./src/shape/basic/Image.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.basic.Image=a.default.shape.node.Node.extend({NAME:"draw2d.shape.basic.Image",init:function(r,u,l){this._super(r,(0,t.default)({path:this.setPath},u),(0,t.default)({path:this.getPath},l))},setPath:function(r){return this.path=r,null!==this.shape&&this.shape.attr({src:this.path}),this.fireEvent("change:path",{value:this.path}),this},getPath:function(){return this.path},repaint:function(r){return!0===this.repaintBlocked||null===this.shape||((r=r||{}).x=this.getAbsoluteX(),r.y=this.getAbsoluteY(),r.width=this.getWidth(),r.height=this.getHeight(),r.src=this.path,$(this.shape.node).css({display:"inline-block",width:r.width,height:r.height}),this._super(r)),this},createShapeElement:function(){return this.canvas.paper.image(this.path,this.getX(),this.getY(),this.getWidth(),this.getHeight())},getPersistentAttributes:function(){return(0,t.default)(this._super(),{path:this.path})},setPersistentAttributes:function(r){this._super(r),void 0!==r.path&&this.setPath(r.path)}})},
1"./src/shape/basic/Label.js":function(module,exports,__webpack_require__){"use strict";var _packages=__webpack_require__("./src/packages.js"),_packages2=_interopRequireDefault(_packages),_JSONUtil=__webpack_require__("./src/util/JSONUtil.js"),_JSONUtil2=_interopRequireDefault(_JSONUtil),_extend=__webpack_require__("./src/util/extend.js"),_extend2=_interopRequireDefault(_extend);function _interopRequireDefault(h){return h&&h.__esModule?h:{default:h}}_packages2.default.shape.basic.Label=_packages2.default.SetFigure.extend({NAME:"draw2d.shape.basic.Label",FONT_FALLBACK:{Georgia:"Georgia, serif","Palatino Linotype":'"Palatino Linotype", "Book Antiqua", Palatino, serif',"Times New Roman":'"Times New Roman", Times, serif',Arial:"Arial, Helvetica, sans-serif","Arial Black":'"Arial Black", Gadget, sans-serif',"Comic Sans MS":'"Comic Sans MS", cursive, sans-serif',Impact:"Impact, Charcoal, sans-serif","Lucida Sans Unicode":'"Lucida Sans Unicode", "Lucida Grande", sans-serif',"Tahoma, Geneva":"Tahoma, Geneva, sans-seri","Trebuchet MS":'"Trebuchet MS", Helvetica, sans-serif',Verdana:"Verdana, Geneva, sans-serif","Courier New":'"Courier New", Courier, monospace',"Lucida Console":'"Lucida Console", Monaco, monospace'},init:function(y,c,d){this.text="",this.cachedWidth=null,this.cachedHeight=null,this.cachedMinWidth=null,this.cachedMinHeight=null,this.fontSize=12,this.fontColor=new _packages2.default.util.Color("#080808"),this.fontFamily=null,this.padding={top:4,right:4,bottom:4,left:4},this.outlineStroke=0,this.outlineColor=new _packages2.default.util.Color(null),this.bold=!1,this.editor=null,this._super((0,_extend2.default)({stroke:1,width:1,height:1,resizeable:!1},y),(0,_extend2.default)({text:this.setText,editor:this.installEditor,outlineStroke:this.setOutlineStroke,outlineColor:this.setOutlineColor,fontFamily:this.setFontFamily,fontSize:this.setFontSize,fontColor:this.setFontColor,padding:this.setPadding,bold:this.setBold},c),(0,_extend2.default)({text:this.getText,outlineStroke:this.getOutlineStroke,outlineColor:this.getOutlineColor,fontFamily:this.getFontFamily,fontSize:this.getFontSize,fontColor:this.getFontColor,padding:this.getPadding,bold:this.isBold},d)),this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy),this.lastAppliedLabelRotation="",this.lastAppliedTextAttributes={}},createSet:function(){return this.canvas.paper.text(0,0,this.text)},setCanvas:function(y){this.clearCache(),this._super(y),this.clearCache()},repaint:function(y){if(!(!0===this.repaintBlocked||null===this.shape||this.parent&&!0===this.parent.repaintBlocked)){var c=this.calculateTextAttr();c.text=this.text;var d=_JSONUtil2.default.flatDiff(c,this.lastAppliedTextAttributes);this.lastAppliedTextAttributes=c,Object.getOwnPropertyNames(d).length>0&&(this.svgNodes.attr(c),this.svgNodes.attr({x:this.padding.left+this.stroke,y:this.svgNodes.getBBox(!0).height/2+this.padding.top+this.getStroke()})),this._super(y)}},calculateTextAttr:function(){var y={"text-anchor":"start","font-size":this.fontSize,"font-weight":!0===this.bold?"bold":"normal",fill:this.fontColor.rgba(),stroke:this.outlineColor.rgba(),"stroke-width":this.outlineStroke};return null!==this.fontFamily&&(y["font-family"]=this.fontFamily),y},applyTransformation:function(){var y="R"+this.rotationAngle;return this.shape.transform(y),this.lastAppliedLabelRotation=y,this.svgNodes.transform("R"+this.rotationAngle+"T"+this.getAbsoluteX()+","+this.getAbsoluteY()),this},setFontSize:function(y){this.clearCache(),this.fontSize=y,this.repaint(),this.fireEvent("change:fontSize",{value:this.fontSize}),this.fireEvent("resize");var c=this;return this.editPolicy.each(function(d,a){a instanceof _packages2.default.policy.figure.DragDropEditPolicy&&a.moved(c.canvas,c)}),this},getFontSize:function(){return this.fontSize},setBold:function(y){this.clearCache(),this.bold=y,this.repaint(),this.fireEvent("change:bold",{value:this.bold}),this.fireEvent("resize");var c=this;return this.editPolicy.each(function(d,a){a instanceof _packages2.default.policy.figure.DragDropEditPolicy&&a.moved(c.canvas,c)}),this},isBold:function(){return this.bold},setOutlineColor:function(y){return this.outlineColor=new _packages2.default.util.Color(y),this.repaint(),this.fireEvent("change:outlineColor",{value:this.outlineColor}),this},getOutlineColor:function(){return this.outlineColor},setOutlineStroke:function(y){return this.outlineStroke=y,this.repaint(),this.fireEvent("change:outlineStroke",{value:this.outlineStroke}),this},getOutlineStroke:function(){return this.outlineStroke},setFontColor:function(y){return this.fontColor=new _packages2.default.util.Color(y),this.repaint(),this.fireEvent("change:font
1Color",{value:this.fontColor}),this},getFontColor:function(){return this.fontColor},setPadding:function(y){return this.clearCache(),this.padding="number"==typeof y?{top:y,right:y,bottom:y,left:y}:(0,_extend2.default)(this.padding,y),this.repaint(),this.fireEvent("change:padding",{value:this.padding}),this},getPadding:function(){return this.padding},setFontFamily:function(y){return this.clearCache(),null!=y&&void 0!==this.FONT_FALLBACK[y]&&(y=this.FONT_FALLBACK[y]),this.fontFamily=y,this.repaint(),this.fireEvent("change:fontFamily",{value:this.fontFamily}),this},getFontFamily:function(){return this.fontFamily},setDimension:function(y,c){return this.clearCache(),this._super(y,c),this},clearCache:function(){return this.portRelayoutRequired=!0,this.cachedMinWidth=null,this.cachedMinHeight=null,this.cachedWidth=null,this.cachedHeight=null,this.lastAppliedTextAttributes={},this},getMinWidth:function(){return null===this.shape?0:(null===this.cachedMinWidth&&(this.cachedMinWidth=this.svgNodes.getBBox(!0).width+this.padding.left+this.padding.right+2*this.getStroke()),this.cachedMinWidth)},getMinHeight:function(){return null===this.shape?0:(null===this.cachedMinHeight&&(this.cachedMinHeight=this.svgNodes.getBBox(!0).height+this.padding.top+this.padding.bottom+2*this.getStroke()),this.cachedMinHeight)},getWidth:function(){return null===this.shape?0:(null===this.cachedWidth&&(this.cachedWidth=!0===this.resizeable?Math.max(this.width,this.getMinWidth()):this.getMinWidth()),this.cachedWidth)},getHeight:function(){return null===this.shape?0:(null===this.cachedHeight&&(this.cachedHeight=Math.max(this.height,this.getMinHeight())),this.cachedHeight)},installEditor:function installEditor(editor){return"string"==typeof editor&&(editor=eval("new "+editor+"()")),this.editor=editor,this},onDoubleClick:function h(){null!==this.editor&&this.editor.start(this)},getText:function h(){return this.text},setText:function h(y){this.clearCache(),this.text=y,this.repaint();var c=this;return this.editPolicy.each(function(d,a){a instanceof _packages2.default.policy.figure.DragDropEditPolicy&&a.moved(c.canvas,c)}),this.fireEvent("resize"),this.fireEvent("change:text",{value:this.text}),null!==this.parent&&this.parent.repaint(),this},hitTest:function h(y,c,d){if(0===this.rotationAngle)return this._super(y,c,d);var a=this.getBoundingBox();"number"==typeof d&&a.scale(d,d);var v=this.shape.matrix,t=a.getVertices();t.each(function(x,m){var g=v.x(m.x,m.y),w=v.y(m.x,m.y);m.x=g,m.y=w});for(var n=3,r=!1,u=0;u<4;u++){var l=t.get(u),p=t.get(n);(l.y<c&&p.y>=c||p.y<c&&l.y>=c)&&(l.x<=y||p.x<=y)&&l.x+(c-l.y)/(p.y-l.y)*(p.x-l.x)<y&&(r=!r),n=u}return r},getPersistentAttributes:function h(){var y=this._super();return y.text=this.text,y.outlineStroke=this.outlineStroke,y.outlineColor=this.outlineColor.rgba(),y.fontSize=this.fontSize,y.fontColor=this.fontColor.rgba(),y.fontFamily=this.fontFamily,null!==this.editor&&(y.editor=this.editor.NAME),y},setPersistentAttributes:function setPersistentAttributes(memento){return this._super(memento),void 0!==memento.text&&this.setText(memento.text),void 0!==memento.outlineStroke&&this.setOutlineStroke(memento.outlineStroke),void 0!==memento.outlineColor&&this.setOutlineColor(memento.outlineColor),void 0!==memento.fontFamily&&this.setFontFamily(memento.fontFamily),void 0!==memento.fontSize&&this.setFontSize(memento.fontSize),void 0!==memento.fontColor&&this.setFontColor(memento.fontColor),"string"==typeof memento.editor&&this.installEditor(eval("new "+memento.editor+"()")),this}})},
1"./src/shape/basic/Line.js":function(module,exports,__webpack_require__){"use strict";var _packages=__webpack_require__("./src/packages.js"),_packages2=_interopRequireDefault(_packages),_JSONUtil=__webpack_require__("./src/util/JSONUtil.js"),_JSONUtil2=_interopRequireDefault(_JSONUtil),_extend=__webpack_require__("./src/util/extend.js"),_extend2=_interopRequireDefault(_extend);function _interopRequireDefault(h){return h&&h.__esModule?h:{default:h}}function _toConsumableArray(h){if(Array.isArray(h)){for(var y=0,c=Array(h.length);y<h.length;y++)c[y]=h[y];return c}return Array.from(h)}_packages2.default.shape.basic.Line=_packages2.default.Figure.extend({NAME:"draw2d.shape.basic.Line",DEFAULT_COLOR:new _packages2.default.util.Color(0,0,0),init:function(y,c,d){this.corona=10,this.isGlowing=!1,this.lineColor=this.DEFAULT_COLOR,this.stroke=1,this.outlineStroke=0,this.outlineColor=new _packages2.default.util.Color(null),this.outlineVisible=!1,this.draggedSegment=null,this.dasharray=null,this.start=new _packages2.default.geo.Point(30,30),this.end=new _packages2.default.geo.Point(100,100),this.vertices=new _packages2.default.util.ArrayList,this.vertices.add(this.start.clone()),this.vertices.add(this.end.clone()),this._super((0,_extend2.default)({deleteable:!1,selectable:!0},y),(0,_extend2.default)({},{start:this.setStartPosition,startX:this.setStartX,startY:this.setStartY,end:this.setEndPosition,endX:this.setEndX,endY:this.setEndY,vertices:this.setVertices,outlineColor:this.setOutlineColor,outlineStroke:this.setOutlineStroke,color:this.setColor,stroke:this.setStroke,corona:this.setCorona,dasharray:this.setDashArray,glow:this.setGlow},c),(0,_extend2.default)({},{start:this.getStartPosition,end:this.getEndPosition,outlineColor:this.getOutlineColor,outlineStroke:this.getOutlineStroke,stroke:this.getStroke,corona:this.getCorona,color:this.getColor,dasharray:this.getDashArray,vertices:this.getVertices},d)),0===this.editPolicy.getSize()&&this.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy)},setOutlineColor:function(y){return this.outlineColor=new _packages2.default.util.Color(y),this.repaint(),this.fireEvent("change:outlineColor",{value:this.outlineColor}),this},getOutlineColor:function(){return this.outlineColor},setOutlineStroke:function(y){return this.outlineStroke=y,this.repaint(),this.fireEvent("change:outlineStroke",{value:this.outlineStroke}),this},getOutlineStroke:function(){return this.outlineStroke},onDragStart:function(y,c,d,a,v){var t=this._super(y,c,d,a);return!0===t&&!0!==v&&(this.draggedSegment={index:0,start:this.start,end:this.end}),t},onDrag:function(y,c,d,a){null!==this.command&&(this.vertices.each(function(v,t){t.translate(d,a)}),this.command.updateVertices(this.vertices.clone()),this.start.translate(d,a),this.end.translate(d,a),this.svgPathString=null,this._super(y,c,d,a))},onDragEnd:function(y,c,d,a){var v=this;this.isInDragDrop=!1,this.draggedSegment=null,null!==this.command&&(this.canvas.getCommandStack().execute(this.command),this.command=null,this.isMoving=!1,this.editPolicy.each(function(t,s){s instanceof _packages2.default.policy.figure.DragDropEditPolicy&&s.onDragEnd(v.canvas,v,y,c,d,a)}),this.fireEvent("move",{figure:this,dx:0,dy:0}),this.fireEvent("dragend",{x:y,y:c,shiftKey:d,ctrlKey:a}))},onClick:function(){},setDashArray:function(y){return this.dasharray=y,this.repaint(),this.fireEvent("change:dashArray",{value:this.dasharray}),this},getDashArray:function(){return this.dasharray},createShapeElement:function(){var y=this.canvas.paper.set();return y.push(this.canvas.paper.path("M"+this.start.x+" "+this.start.y+"L"+this.end.x+" "+this.end.y)),y.push(this.canvas.paper.path("M"+this.start.x+" "+this.start.y+"L"+this.end.x+" "+this.end.y)),y.node=y.items[1].node,this.outlineVisible=!0,y},repaint:function(y){!0===this.repaintBlocked||null===this.shape||(void 0===y?y={stroke:this.lineColor.rgba(),"stroke-width":this.stroke,path:["M",this.start.x,this.start.y,"L",this.end.x,this.end.y].join(" ")}:(void 0===y.path&&(y.path=["M",this.start.x,this.start.y,"L",this.end.x,this.end.y].join(" ")),_JSONUtil2.default.ensureDefault(y,"stroke",this.lineColor.rgba()),_JSONUtil2.default.ensureDefault(y,"stroke-width",this.stroke)),_JSONUtil2.default.ensureDefault(y,"stroke-dasharray",this.dasharray),this._super(y),this.outlineStroke>0?(this.shape.items[0].attr({"stroke-width":this.outlineStroke+this.stroke,stroke:this.outlineColor.rgba()}),!1===this.outlineVisible&&this.shape.items[0].show(),this.outlineVisible=!0):!0===this.outlineVisible&&(this.shape.items[0].attr({"stroke-width":0,stroke:"none"}),this.shape.items[0].hide(),this.outlineVisible=!1))},toBack:function(y){return this._super(y),!0===this.outlineVisible&&this.shape.items[0].insertBefore(this.shape.items[1]),this},setGlow:function(y){if(this.isGlowing!==y)return!0===y?(this._lineColor=this.lineColor,this._stroke=this.stroke,this.setColor(new _packages2.default.util.Color("#3f72bf")),this.setStroke(4*this.stroke|0)):(this.setColor(this._lineColor),this.setStroke(this._stroke)),this.isGlowing=y,this},isResizeable:function(){return!0},setStroke:function(y){return this.stroke=parseFloat(y),this.repaint(),this.fireEvent("change:stroke",{value:this.stroke}),this},getStroke:function(){return this.stroke},setCorona:function(y){return this.corona=parseFloat(y),this},getCorona:function(){return this.corona},setColor:function(y){return this.lineColor=new _packages2.default.util.Color(y),this.repaint(),this.fireEvent("change:color",{value:this.lineColor}),this},getColor:function(){return this.lineColor},translate:function(y,c){this.vertices.each(function(a,v){v.translate(y,c)}),this.start=this.vertices.first().clone(),this.end=this.vertices.last().clone();var d=this;return this.editPolicy.each(function(a,v){v instanceof _packages2.default.policy.figure.DragDropEditPolicy&&v.moved(d.canvas,d)}),this.svgPathString=null,this.repaint(),this},getBoundingBox:function(){var y=Math.min.apply(Math,_toConsumableArray(this.vertices.asArray().map(function(s){return s.x}))),c=Math.min.apply(Math,_toConsumableArray(this.vertices.asArray().map(function(s){return s.y}))),d=Math.max.apply(Math,_toConsumableArray(this.vertices.asArray().map(function(s){return s.x}))),a=Math.max.apply(Math,_toConsumableArray(this.vertices.asArray().map(function(s){return s.y})));return new _packages2.default.geo.Rectangle(y,c,d-y,a-c)},setStartPosition:function(y,c){var d=new _packages2.default.geo.Point(y,
1c);if(this.start.equals(d))return this;this.start.setPosition(d),this.vertices.first().setPosition(d),this.repaint();var a=this;return this.editPolicy.each(function(v,t){t instanceof _packages2.default.policy.figure.DragDropEditPolicy&&t.moved(a.canvas,a)}),this.fireEvent("change:start",{value:this.start}),this},setStartPoint:function(y,c){return this.setStartPosition(y,c)},setStartX:function(y){this.setStartPosition(y,this.start.y)},setStartY:function(y){this.setStartPosition(this.start.x,y)},setEndX:function(y){this.setEndPosition(y,this.end.y)},setEndY:function(y){this.setEndPosition(this.end.x,y)},setEndPosition:function(y,c){var d=new _packages2.default.geo.Point(y,c);if(this.end.equals(d))return this;this.end.setPosition(d),this.vertices.last().setPosition(d),this.repaint();var a=this;return this.editPolicy.each(function(v,t){t instanceof _packages2.default.policy.figure.DragDropEditPolicy&&t.moved(a.canvas,a)}),this.fireEvent("change:end",{value:this.end}),this},setEndPoint:function(y,c){return this.setEndPosition(y,c)},getStartX:function(){return this.start.x},getStartY:function(){return this.start.y},getStartPosition:function(){return this.start.clone()},getStartPoint:function(){return this.getStartPosition()},getEndX:function(){return this.end.x},getEndY:function(){return this.end.y},getEndPosition:function(){return this.end.clone()},getEndPoint:function(){return this.getEndPosition()},getX:function(){return this.getBoundingBox().x},getY:function(){return this.getBoundingBox().y},getVertex:function(y){return this.vertices.get(y)},setVertex:function(y,c,d){c instanceof _packages2.default.geo.Point&&(d=c.y,c=c.x);var a=this.vertices.get(y);if(null!==a&&(a.x!==c||a.y!==d)){a.x=parseFloat(c),a.y=parseFloat(d),this.start=this.vertices.first().clone(),this.end=this.vertices.last().clone(),this.svgPathString=null,this.routingRequired=!0,this.repaint();var v=this;return this.editPolicy.each(function(t,s){s instanceof _packages2.default.policy.figure.DragDropEditPolicy&&s.moved(v.canvas,v)}),this.fireEvent("change:vertices",{value:this.vertices}),this}},getVertices:function(){return this.vertices},setVertices:function(y){var c=this,d=this;if(Array.isArray(y))this.vertices=new _packages2.default.util.ArrayList,y.forEach(function(a){c.vertices.add(new _packages2.default.geo.Point(a))});else{if(!(y instanceof _packages2.default.util.ArrayList))throw"invalid argument for Line.setVertices";this.vertices=y.clone(!0)}return this.vertices.getSize()>1&&(this.start=this.vertices.first().clone(),this.end=this.vertices.last().clone()),this.svgPathString=null,this.repaint(),this.selectionHandles.isEmpty()||this.editPolicy.each(function(a,v){v instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy&&(v.onUnselect(d.canvas,d),v.onSelect(d.canvas,d))}),this.editPolicy.each(function(a,v){v instanceof _packages2.default.policy.figure.DragDropEditPolicy&&v.moved(d.canvas,d)}),this.fireEvent("change:vertices",{value:this.vertices}),this},getSegments:function(){var y=new _packages2.default.util.ArrayList;return y.add({start:this.getStartPosition(),end:this.getEndPosition()}),y},getLength:function(){return Math.sqrt((this.start.x-this.end.x)*(this.start.x-this.end.x)+(this.start.y-this.end.y)*(this.start.y-this.end.y))},getAngle:function(){var y=this.getLength(),c=-180/Math.PI*Math.asin((this.start.y-this.end.y)/y);return c<0?c=this.end.x<this.start.x?Math.abs(c)+180:360-Math.abs(c):this.end.x<this.start.x&&(c=180-c),c},createCommand:function(y){return y.getPolicy()===_packages2.default.command.CommandType.MOVE&&this.isDraggable()?new _packages2.default.command.CommandMoveVertices(this):y.getPolicy()===_packages2.default.command.CommandType.DELETE&&this.isDeleteable()?new _packages2.default.command.CommandDelete(this):y.getPolicy()===_packages2.default.command.CommandType.MOVE_BASEPOINT&&this.isDraggable()?new _packages2.default.command.CommandMoveVertex(this):null},installEditPolicy:function(y){!(y instanceof _packages2.default.policy.line.LineSelectionFeedbackPolicy)&&y instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy||this._super(y)},hitTest:function(y,c){return _packages2.default.shape.basic.Line.hit(this.corona+this.stroke,this.start.x,this.start.y,this.end.x,this.end.y,y,c)},pointProjection:function(y,c){var d=new _packages2.default.geo.Point(y,
1c),a=this.getStartPosition(),v=this.getEndPosition();return _packages2.default.geo.Line.pointProjection(a.x,a.y,v.x,v.y,d.x,d.y)},lerp:function(y){var c=this.getStartPosition(),d=this.getEndPosition();return y=Math.min(1,Math.max(0,y)),new _packages2.default.geo.Point(c.x+(d.x-c.x)*y,c.y+(d.y-c.y)*y)},intersection:function(y){var c=new _packages2.default.util.ArrayList;if(y===this)return c;var d=this.getSegments(),a=y.getSegments();return d.each(function(v,t){a.each(function(s,n){var r=_packages2.default.shape.basic.Line.intersection(t.start,t.end,n.start,n.end);null!==r&&c.add(r)})}),c},getPersistentAttributes:function(){var y=this._super();return delete y.x,delete y.y,delete y.width,delete y.height,y.stroke=this.stroke,y.color=this.getColor().rgba(),y.outlineStroke=this.outlineStroke,y.outlineColor=this.outlineColor.rgba(),null!==this.dasharray&&(y.dasharray=this.dasharray),this.editPolicy.getSize()>0&&(y.policy=this.editPolicy.first().NAME),y.vertex=[],this.getVertices().each(function(c,d){y.vertex.push({x:d.x,y:d.y})}),y},setPersistentAttributes:function setPersistentAttributes(memento){if(this._super(memento),"string"==typeof memento.dasharray&&(this.dasharray=memento.dasharray),void 0!==memento.stroke&&this.setStroke(parseFloat(memento.stroke)),void 0!==memento.color&&this.setColor(memento.color),void 0!==memento.outlineStroke&&this.setOutlineStroke(memento.outlineStroke),void 0!==memento.outlineColor&&this.setOutlineColor(memento.outlineColor),void 0!==memento.policy)try{this.installEditPolicy(eval("new "+memento.policy+"()"))}catch(h){debug.warn("Unable to install edit policy '"+memento.policy+"' forced by "+this.NAME+".setPersistentAttributes. Using default.")}return Array.isArray(memento.vertex)&&memento.vertex.length>1&&this.setVertices(memento.vertex),this}}),_packages2.default.shape.basic.Line.intersection=function(h,y,c,d){var a=null,s=(d.y-c.y)*(y.x-h.x)-(d.x-c.x)*(y.y-h.y);if(0!==s){var n=((d.x-c.x)*(h.y-c.y)-(d.y-c.y)*(h.x-c.x))/s,r=((y.x-h.x)*(h.y-c.y)-(y.y-h.y)*(h.x-c.x))/s;0<=n&&n<=1&&0<=r&&r<=1&&((a=new _packages2.default.geo.Point(h.x+n*(y.x-h.x)|0,h.y+n*(y.y-h.y)|0)).justTouching=0===n||1===n||0===r||1===r)}return a},_packages2.default.shape.basic.Line.hit=function(h,y,c,d,a,v,t){return _packages2.default.geo.Line.distance(y,c,d,a,v,t)<h}},
1"./src/shape/basic/LineEndResizeHandle.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.basic.LineEndResizeHandle=a.default.shape.basic.LineResizeHandle.extend({NAME:"draw2d.shape.basic.LineEndResizeHandle",init:function(s){this._super({owner:s,index:s.getVertices().getSize()-1})},getRelatedPort:function(){return this.owner instanceof a.default.Connection?this.owner.getTarget():null},getOppositePort:function(){return this.owner instanceof a.default.Connection?this.owner.getSource():null},onDrag:function(s,n,r,u){this._super(s,n,r,u);var l=this.owner.getEndPoint().clone();return l.translate(r,u),null!==this.command&&this.command.updatePosition(l),this.owner.setEndPoint(l),this.owner.isMoving=!0,!0},onDrop:function(s,n,r,u,l){this.owner.isMoving=!1,this.owner instanceof a.default.Connection&&null!==this.command&&(this.command.setNewPorts(this.owner.getSource(),s),this.getCanvas().getCommandStack().execute(this.command)),this.command=null},relocate:function(){var s=this.getWidth()/2,n=this.getHeight()/2,r=this.owner.getEndPoint();return this.setPosition(r.x-s,r.y-n),this}})},
1"./src/shape/basic/LineResizeHandle.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.basic.LineResizeHandle=a.default.shape.basic.Circle.extend({NAME:"draw2d.shape.basic.LineResizeHandle",init:function(r,u,l){var p=this;this.zoomCallback=function(){p.attr({width:p.origWidth*p.getCanvas().getZoom(),height:p.origHeight*p.getCanvas().getZoom(),stroke:p.origStroke*p.getCanvas().getZoom()}),p.blockEvent||p.owner.fireEvent("move",{})},this._super((0,t.default)({bgColor:"#5bcaff",stroke:1,width:10,height:10,minWidth:.3,minHeight:.3,selectable:!1},r),(0,t.default)({owner:this.setOwner,index:this.setIndex},u),(0,t.default)({owner:this.getOwner,index:this.getIndex},l)),this.isResizeHandle=!0,this.currentTarget=null,this.origWidth=this.width,this.origHeight=this.height,this.origStroke=this.stroke},getOwner:function(){return this.owner},setOwner:function(r){return this.owner=r,this},getIndex:function(){return this.index},setIndex:function(r){return this.index=r,this},createShapeElement:function(){var r=this._super();return r.attr({cursor:"move"}),r},setBackgroundColor:function(r){return r=new a.default.util.Color(r),this.bgGradient="r(.4,.3)"+r.hash()+"-"+r.darker(.1).hash()+":60-"+r.darker(.2).hash(),this._super(r),this.setColor(r.darker(.3)),this},getRelatedPort:function(){return null},getOppositePort:function(){return null},repaint:function(r){!0===this.repaintBlocked||null===this.shape||((r=r||{}).fill="none"===this.bgColor.hash()||this.getAlpha()<.9?this.bgColor.rgba():this.bgGradient,this._super(r))},onDragStart:function(r,u,l,p){return this.command=this.owner.createCommand(new a.default.command.CommandType(a.default.command.CommandType.MOVE_BASEPOINT)),null!==this.command&&this.command.setIndex(this.index),this.setAlpha(.2),this.shape.attr({cursor:"crosshair"}),this.fireEvent("dragstart",{x:r,y:u,shiftKey:l,ctrlKey:p}),!0},onDrag:function(r,u,l,p){this.setPosition(this.x+l,this.y+p);var x=this.getOppositePort(),m=null!==x?x.getCanvas().getBestFigure(this.getX(),this.getY(),[this,this.owner]):null;return m!==this.currentTarget&&(null!==this.currentTarget&&(this.currentTarget.onDragLeave(x),this.currentTarget.setGlow(!1),this.currentTarget.fireEvent("dragLeave",{draggingElement:x})),null!==m&&(this.currentTarget=m.delegateTarget(x),null!==this.currentTarget&&(this.currentTarget.setGlow(!0),this.currentTarget.onDragEnter(x),this.currentTarget.fireEvent("dragEnter",{draggingElement:x})))),!0},onDragEnd:function(r,u,l,p){if(!this.isDraggable())return!1;this.shape.attr({cursor:"move"});var x=this.getOppositePort();null!==x&&null!==this.currentTarget&&(this.onDrop(this.currentTarget,r,u,l,p),this.currentTarget.onDragLeave(x),this.currentTarget.setGlow(!1),this.currentTarget.fireEvent("dragLeave",{draggingElement:x}),this.currentTarget.onCatch(this,r,u,l,p),this.currentTarget=null),this.owner.isMoving=!1,this.owner instanceof a.default.Connection?null!==this.command&&this.command.cancel():null!==this.command&&this.getCanvas().getCommandStack().execute(this.command),this.command=null,this.setAlpha(1),this.fireEvent("dragend",{x:r,y:u,shiftKey:l,ctrlKey:p})},relocate:function(){return this},supportsSnapToHelper:function(){return!(this.owner instanceof a.default.Connection)},show:function(r,u,l){this.setCanvas(r);try{this.blockEvent=!0,this.zoomCallback()}finally{this.blockEvent=!1}this.shape.toFront(),this.canvas.resizeHandles.add(this)},hide:function(){null!==this.shape&&(this.canvas.resizeHandles.remove(this),this.setCanvas(null))},setCanvas:function(r){null!==this.canvas&&this.canvas.off(this.zoomCallback),this._super(r),null!==this.canvas&&this.canvas.on("zoom",this.zoomCallback)},onKeyDown:function(r,u){this.canvas.onKeyDown(r,u)}})},
1"./src/shape/basic/LineStartResizeHandle.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.basic.LineStartResizeHandle=a.default.shape.basic.LineResizeHandle.extend({NAME:"draw2d.shape.basic.LineStartResizeHandle",init:function(s){this._super({owner:s,index:0})},getRelatedPort:function(){return this.owner instanceof a.default.Connection?this.owner.getSource():null},getOppositePort:function(){return this.owner instanceof a.default.Connection?this.owner.getTarget():null},onDrag:function(s,n,r,u){this._super(s,n,r,u);var l=this.owner.getStartPoint();return l.translate(r,u),null!==this.command&&this.command.updatePosition(l),this.owner.setStartPoint(l),this.owner.isMoving=!0,!0},onDrop:function(s,n,r,u,l){this.owner.isMoving=!1,this.owner instanceof a.default.Connection&&null!==this.command&&(this.command.setNewPorts(s,this.owner.getTarget()),this.getCanvas().getCommandStack().execute(this.command)),this.command=null},relocate:function(){var s=this.getWidth()/2,n=this.getHeight()/2,r=this.owner.getStartPoint();return this.setPosition(r.x-s,r.y-n),this}})},
1"./src/shape/basic/Oval.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.basic.Oval=a.default.VectorFigure.extend({NAME:"draw2d.shape.basic.Oval",init:function(r,u,l){this._super((0,t.default)({bgColor:"#C02B1D",color:"#1B1B1B"},r),(0,t.default)({center:this.setCenter},u),l)},createShapeElement:function(){var r=this.getWidth()/2,u=this.getHeight()/2;return this.canvas.paper.ellipse(this.getAbsoluteX()+r,this.getAbsoluteY()+u,r,u)},getCenter:function(){var r=this.getWidth()/2,u=this.getHeight()/2;return this.getPosition().translated(r,u)},setCenter:function(r,u){var l=new a.default.geo.Point(r,u),p=this.getWidth()/2,x=this.getHeight()/2;return l.translate(-p,-x),this.setPosition(l),this.fireEvent("change:center",{value:{x:r,y:u}}),this},repaint:function(r){!0===this.repaintBlocked||null===this.shape||(void 0===(r=r||{}).rx&&(r.rx=this.width/2,r.ry=this.height/2),void 0===r.cx&&(r.cx=this.getAbsoluteX()+r.rx,r.cy=this.getAbsoluteY()+r.ry),this._super(r))},intersectionWithLine:function(r,u){var l=this.getWidth()/2,p=this.getHeight()/2,x=new a.default.util.ArrayList,m=new a.default.geo.Point(r.x,r.y),g=u.subtract(r),w=new a.default.geo.Point(this.getAbsoluteX()+l,this.getAbsoluteY()+p),C=m.subtract(w),k=new a.default.geo.Point(g.x/(l*l),g.y/(p*p)),M=new a.default.geo.Point(C.x/(l*l),C.y/(p*p)),N=g.dot(k),O=g.dot(M),P=O*O-N*(C.dot(M)-1);if(!(P<0))if(P>0){var A=Math.sqrt(P),T=(-O-A)/N,L=(-O+A)/N;(T<0||1<T)&&(L<0||1<L)||(0<=T&&T<=1&&x.add(r.lerp(u,T)),0<=L&&L<=1&&x.add(r.lerp(u,L)))}else{var I=-O/N;0<=I&&I<=1&&x.add(r.lerp(u,I))}return x}})},
1"./src/shape/basic/PolyLine.js":function(module,exports,__webpack_require__){"use strict";var _packages=__webpack_require__("./src/packages.js"),_packages2=_interopRequireDefault(_packages),_JSONUtil=__webpack_require__("./src/util/JSONUtil.js"),_JSONUtil2=_interopRequireDefault(_JSONUtil),_extend=__webpack_require__("./src/util/extend.js"),_extend2=_interopRequireDefault(_extend);function _interopRequireDefault(h){return h&&h.__esModule?h:{default:h}}_packages2.default.shape.basic.PolyLine=_packages2.default.shape.basic.Line.extend({NAME:"draw2d.shape.basic.PolyLine",init:function(y,c,d){this.svgPathString=null,this.oldPoint=null,this.router=null,this.routingRequired=!0,this.lineSegments=new _packages2.default.util.ArrayList,this.radius="",this._super((0,_extend2.default)({router:new _packages2.default.layout.connection.VertexRouter},y),(0,_extend2.default)({},{router:this.setRouter,radius:this.setRadius},c),(0,_extend2.default)({},{router:this.getRouter,radius:this.getRadius},d))},setRadius:function(y){return this.radius=y,this.svgPathString=null,this.repaint(),this.fireEvent("change:radius",{value:this.radius}),this},setOutlineStroke:function(y){return this.outlineStroke!==y&&(this.svgPathString=null,this.routingRequired=!0),this._super(y),this},getRadius:function(){return this.radius},setStartPoint:function(y,c){this.vertices.getSize()>0?this.vertices.first().setPosition(y,c):this.vertices.add(new _packages2.default.geo.Point(y,
1c)),this.start=this.vertices.first().clone(),this.calculatePath({startMoved:!0,endMoved:!1}),this.repaint();var d=this;return this.editPolicy.each(function(a,v){v instanceof _packages2.default.policy.figure.DragDropEditPolicy&&v.moved(d.canvas,d)}),this.fireEvent("change:start",{value:this.start}),this},setEndPoint:function(y,c){this.vertices.getSize()>1?this.vertices.last().setPosition(y,c):this.vertices.add(new _packages2.default.geo.Point(y,c)),this.end=this.vertices.last().clone(),!1===this.isInDragDrop&&this.calculatePath({startMoved:!1,endMoved:!0}),this.repaint();var d=this;return this.editPolicy.each(function(a,v){v instanceof _packages2.default.policy.figure.DragDropEditPolicy&&v.moved(d.canvas,d)}),this.fireEvent("change:end",{value:this.end}),this},addVertex:function(y,c){if(this.vertices.add(new _packages2.default.geo.Point(y,c)),this.start=this.vertices.first().clone(),this.end=this.vertices.last().clone(),this.svgPathString=null,this.repaint(),!this.selectionHandles.isEmpty()){var d=this;this.editPolicy.each(function(a,v){v instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy&&(v.onUnselect(d.canvas,d),v.onSelect(d.canvas,d))})}return this.fireEvent("change:vertices",{value:this.vertices}),this},insertVertexAt:function(y,c,d){var a=new _packages2.default.geo.Point(c,d);if(this.vertices.insertElementAt(a,y),this.start=this.vertices.first().clone(),this.end=this.vertices.last().clone(),this.svgPathString=null,this.repaint(),!this.selectionHandles.isEmpty()){var v=this;this.editPolicy.each(function(t,s){s instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy&&(s.onUnselect(v.canvas,v),s.onSelect(v.canvas,v))})}return this.fireEvent("change:vertices",{value:this.vertices}),this},removeVertexAt:function(y){var c=this.vertices.removeElementAt(y);if(this.start=this.vertices.first().clone(),this.end=this.vertices.last().clone(),this.svgPathString=null,this.repaint(),!this.selectionHandles.isEmpty()){var d=this;this.editPolicy.each(function(a,v){v instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy&&(v.onUnselect(d.canvas,d),v.onSelect(d.canvas,d))})}return this.fireEvent("change:vertices",{value:this.vertices}),c},setRouter:function(y){return null!==this.router&&this.router.onUninstall(this),this.router=null==y?new _packages2.default.layout.connection.DirectRouter:y,this.router.onInstall(this),this.routingRequired=!0,this.repaint(),this.fireEvent("change:router",{value:this.router}),this},getRouter:function(){return this.router},calculatePath:function(y){y=y||{},null!==this.shape&&(this.svgPathString=null,y.oldVertices=this.vertices,this.oldPoint=null,this.lineSegments=new _packages2.default.util.ArrayList,this.vertices=new _packages2.default.util.ArrayList,this.router.route(this,y),this.routingRequired=!1,this.fireEvent("routed"),this.fireEvent("change:route",{}))},repaint:function(y){return!0===this.repaintBlocked||null===this.shape?this:((null===this.svgPathString||!0===this.routingRequired)&&this.calculatePath(),void 0===y&&(y={}),y.path=this.svgPathString,_JSONUtil2.default.ensureDefault(y,"stroke-linecap","round"),_JSONUtil2.default.ensureDefault(y,"stroke-linejoin","round"),this._super(y))},getSegments:function(){return this.lineSegments},addPoint:function(y,c){void 0!==c&&(y=new _packages2.default.geo.Point(y,
1c)),this.vertices.add(y),null!==this.oldPoint&&this.lineSegments.add({start:this.oldPoint,end:y}),this.svgPathString=null,this.oldPoint=y},onDragStart:function(y,c,d,a,v){var t=this._super(y,c,d,a,v);return!0===t&&!0!==v&&(this.draggedSegment=this.hitSegment(y,c)),t},getLength:function(){for(var y=0,c=0;c<this.lineSegments.getSize();c++){var d=this.lineSegments.get(c),a=d.start,v=d.end;y+=Math.sqrt((a.x-v.x)*(a.x-v.x)+(a.y-v.y)*(a.y-v.y))}return y},setVertices:function(y){this.router.verticesSet(this),this._super(y)},pointProjection:function(y,c){for(var d=null,a=null,v=null,t=null,s=null,n=Number.MAX_SAFE_INTEGER,r=new _packages2.default.geo.Point(y,c),u=0;u<this.lineSegments.getSize();u++)if(s=this.lineSegments.get(u),null!==(a=_packages2.default.geo.Line.pointProjection((v=s.start).x,v.y,(t=s.end).x,t.y,r.x,r.y))){var l=a.distance(r);(null==d||l<n)&&((d=a).index=u,n=l)}if(null!==d){for(var p=0,x=void 0,m=0;m<d.index;m++)p+=(x=this.lineSegments.get(m)).start.distance(x.end);p+=(v=(x=this.lineSegments.get(d.index)).start).distance(t=x.end)*_packages2.default.geo.Line.inverseLerp(t.x,t.y,v.x,v.y,d.x,d.y),d.percentage=1/this.getLength()*p}return d},lerp:function(y){for(var c=this.getLength()*y,d=c,a=null,v=null,t=null,s=0;s<this.lineSegments.getSize();s++){if((c-=(v=(a=this.lineSegments.get(s)).start).distance(t=a.end))<=0)return y=1/v.distance(t)*d,new _packages2.default.geo.Point(v.x+(t.x-v.x)*y,v.y+(t.y-v.y)*y);d=c}return t},hitSegment:function(y,c){for(var d=0;d<this.lineSegments.getSize();d++){var a=this.lineSegments.get(d);if(_packages2.default.shape.basic.Line.hit(this.corona+this.stroke,a.start.x,a.start.y,a.end.x,a.end.y,y,c))return{index:d,start:a.start,end:a.end}}return null},hitTest:function(y,c){return null!==this.hitSegment(y,c)},createCommand:function(y){if(y.getPolicy()===_packages2.default.command.CommandType.DELETE){if(!0===this.isDeleteable())return new _packages2.default.command.CommandDelete(this)}else if(y.getPolicy()===_packages2.default.command.CommandType.MOVE_VERTEX){if(!0===this.isResizeable())return new _packages2.default.command.CommandMoveVertex(this)}else if(y.getPolicy()===_packages2.default.command.CommandType.MOVE_VERTICES&&!0===this.isResizeable())return new _packages2.default.command.CommandMoveVertices(this);return this._super(y)},getPersistentAttributes:function(){var y=(0,_extend2.default)(this._super(),{router:this.router.NAME,radius:this.radius});return this.router.getPersistentAttributes(this,y)},setPersistentAttributes:function setPersistentAttributes(memento){if(this._super(memento),void 0!==memento.router)try{this.setRouter(eval("new "+memento.router+"()"))}catch(h){debug.warn("Unable to install router '"+memento.router+"' forced by "+this.NAME+".setPersistentAttributes. Using default")}void 0!==memento.radius&&this.setRadius(memento.radius),this.router.setPersistentAttributes(this,memento),this.vertices.getSize()>1&&(this.start=this.vertices.first().clone(),this.end=this.vertices.last().clone())}})},
1"./src/shape/basic/Polygon.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/JSONUtil.js"));function s(r){return r&&r.__esModule?r:{default:r}}function n(r){if(Array.isArray(r)){for(var u=0,l=Array(r.length);u<r.length;u++)l[u]=r[u];return l}return Array.from(r)}a.default.shape.basic.Polygon=a.default.VectorFigure.extend({NAME:"draw2d.shape.basic.Polygon",init:function(u,l,p){if(this.minX=0,this.minY=0,this.maxX=0,this.maxY=0,this.vertices=new a.default.util.ArrayList,this._super(u,l,p),0===this.vertices.getSize()){var x=this.width,m=this.height,g=this.getPosition();this.addVertex(new a.default.geo.Point(0,0)),this.addVertex(new a.default.geo.Point(x,0)),this.addVertex(new a.default.geo.Point(x,m)),this.setPosition(g)}this.svgPathString=null,this.installEditPolicy(new a.default.policy.figure.VertexSelectionFeedbackPolicy)},setRadius:function(u){return this.svgPathString=null,this._super(u),this.fireEvent("change:radius",{value:u}),this},createShapeElement:function(){return this.canvas.paper.path("M0 10L100 100")},calculatePath:function(){var u=this.getRadius(),l=[];if(0===u){var p=this.vertices.getSize(),x=this.vertices.get(0);l.push("M",x.x," ",x.y);for(var m=1;m<p;m++)x=this.vertices.get(m),l.push("L",x.x," ",x.y);l.push("Z")}else{length=this.vertices.getSize();var g=this.vertices.first(),w=this.vertices.last();g.equals(w)&&(length-=1,w=this.vertices.get(length-1));var C=a.default.geo.Util.insetPoint(g,w,u);l.push("M",C.x,",",C.y);for(var k=0;k<length;k++){g=this.vertices.get(k),w=this.vertices.get((k+1)%length);var M=a.default.geo.Util.insetPoint(g,w,u),N=a.default.geo.Util.insetPoint(w,g,u);l.push("Q",g.x,",",g.y," ",M.x,", ",M.y),l.push("L",N.x,",",N.y)}}return this.svgPathString=l.join(""),this},repaint:function(u){!0===this.repaintBlocked||null===this.shape||(null===this.svgPathString&&this.calculatePath(),t.default.ensureDefault(u=u||{},"path",this.svgPathString),this._super(u))},translate:function(u,l){var p=this;return u=this.x+u,l=this.y+l,this.editPolicy.each(function(x,m){if(m instanceof a.default.policy.figure.DragDropEditPolicy){var g=m.adjustPosition(p,u,l);u=g.x,l=g.y}}),u-=this.x,l-=this.y,this.vertices.each(function(x,m){m.translate(u,l)}),this.svgPathString=null,this.updateBoundingBox(),this.repaint(),this.editPolicy.each(function(x,m){m instanceof a.default.policy.figure.DragDropEditPolicy&&m.moved(p.canvas,p)}),this.fireEvent("move",{figure:this,dx:u,dy:l}),this.fireEvent("change:x",{value:this.x}),this.fireEvent("change:y",{value:this.y}),this},setPosition:function(u,l){return u instanceof a.default.geo.Point&&(l=u.y,u=u.x),this.svgPathString=null,this.translate(u-this.minX,l-this.minY),this.x=u,this.y=l,this},setDimension:function(u,l){var p=this.width,x=this.height;this._super(u,l);var m=1/p*this.width,g=1/x*this.height,w=this.x,C=this.y;return this.vertices.each(function(k,M){var N=(M.getX()-w)*m,O=(M.getY()-C)*g;M.setPosition(w+N,C+O)}),this.svgPathString=null,this.repaint(),this.fireEvent("change:dimension",{value:{width:this.width,height:this.height}}),this},getVertices:function(){return this.vertices},getVertex:function(u){return this.vertices.get(u)},resetVertices:function(){var u=this;return this.vertices=new a.default.util.ArrayList,this.svgPathString=null,this.repaint(),this.updateBoundingBox(),this.editPolicy.each(function(l,p){p instanceof a.default.policy.figure.DragDropEditPolicy&&p.moved(u.canvas,u)}),this},setVertex:function(u,l,p){var x=this.vertices.get(u);if(null===x||x.x===l&&x.y===p)return this;x.x=parseFloat(l),x.y=parseFloat(p),this.svgPathString=null,this.repaint(),this.updateBoundingBox();var m=this;return this.editPolicy.each(function(g,w){w instanceof a.default.policy.figure.DragDropEditPolicy&&w.moved(m.canvas,m)}),this.fireEvent("change:vertices",{value:this.vertices}),this},addVertex:function(u,l){this.vertices.add(new a.default.geo.Point(u,l)),this.svgPathString=null,this.repaint(),this.updateBoundingBox();var p=this;return this.editPolicy.each(function(x,m){m instanceof a.default.policy.figure.DragDropEditPolicy&&m.moved(p.canvas,p)}),this.fireEvent("change:vertices",{value:this.vertices}),this},insertVertexAt:function(u,l,p){if(this.vertices.insertElementAt(new a.default.geo.Point(l,p),u),this.svgPathString=null,this.repaint(),this.updateBoundingBox(),!this.selectionHandles.isEmpty()){var x=this;this.editPolicy.each(function(m,g){g instanceof a.default.policy.figure.SelectionFeedbackPolicy&&(g.onUnselect(x.canvas,x),g.onSelect(x.canvas,x))})}return this.fireEvent("change:vertices",{value:this.vertices}),this},removeVertexAt:function(u){if(this.vertices.getSize()<=3)return null;var l=this.vertices.removeElementAt(u);if(this.svgPathString=null,this.repaint(),this.updateBoundingBox(),!this.selectionHandles.isEmpty()){var p=this;this.editPolicy.each(function(x,m){m instanceof a.default.policy.figure.SelectionFeedbackPolicy&&(m.onUnselect(p.canvas,p),m.onSelect(p.canvas,p))})}return this.fireEvent("change:vertices",{value:this.vertices}),l},setRotationAngle:function(u){this.rotationAngle=360%u;var l=u/(180/Math.PI),p=this.getBoundingBox().getCenter();this.vertices.each(function(g,w){var C=function(w,C,k,M,N){var O=Math.cos,_=Math.sin;return{x:(w-k)*O(N)-(C-M)*_(N)+k,y:(w-k)*_(N)+(C-M)*O(N)+M}}(w.x,w.y,p.x,p.y,l);w.setPosition(C.x,C.y)}),this.updateBoundingBox();var m=this;return this.editPolicy.each(function(g,w){w instanceof a.default.policy.figure.DragDropEditPolicy&&w.moved(m.canvas,m)}),this.repaint(),this.fireEvent("change:angle",{value:this.rotationAngle}),this},updateBoundingBox:function(){this.vertices.isEmpty()?(this.minX=this.x,this.minY=this.y,this.maxX=this.x+this.width,this.maxY=this.y+this.height):(this.minX=this.x=Math.min.apply(Math,n(this.vertices.asArray().map(function(u){return u.x}))),this.minY=this.y=Math.min.apply(Math,n(this.vertices.asArray().map(function(u){return u.y}))),this.maxX=Math.max.apply(Math,n(this.vertices.asArray().map(function(u){return u.x}))),this.maxY=Math.max.apply(Math,n(this.vertices.asArray().map(function(u){return u.y}))),this.width=this.maxX-this.minX,this.height=this.maxY-this.minY)},createCommand:function(u){return u.getPolicy()===a.default.command.CommandType.MOVE_VERTEX&&!0===this.isResizeable()?new a.default.command.CommandMoveVertex(this):this._super(u)},getPersistentAttributes:function(){var u=this._super();return u.vertices=[],this.vertices.each(function(l,p){u.vertices.push({x:p.x,y:p.y})}),u},setPersistentAttributes:function(u){var l=this;this._super(u),void 0!==u.vertices&&(this.vertices=new a.default.util.ArrayList,u.vertices.forEac
1h(function(p){l.addVertex(p)}))}})},
1"./src/shape/basic/Rectangle.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.basic.Rectangle=a.default.VectorFigure.extend({NAME:"draw2d.shape.basic.Rectangle",init:function(r,u,l){this.dasharray=null,this._super((0,t.default)({bgColor:"#a0a0a0",color:"#1B1B1B"},r),(0,t.default)({},{dash:this.setDashArray,dasharray:this.setDashArray},u),(0,t.default)({},{dash:this.getDashArray,dasharray:this.getDashArray},l))},repaint:function(r){if(!0!==this.repaintBlocked&&null!==this.shape)return r=(0,t.default)({},{width:this.getWidth(),height:this.getHeight(),r:this.getRadius()},r),null!==this.dasharray&&(r["stroke-dasharray"]=this.dasharray),this._super(r),this},applyTransformation:function(){var r="R"+this.rotationAngle;if(90===this.getRotationAngle()||270===this.getRotationAngle()){var u=this.getHeight()/this.getWidth();r=r+"S"+u+","+1/u+","+(this.getAbsoluteX()+this.getWidth()/2)+","+(this.getAbsoluteY()+this.getHeight()/2)}return this.shape.transform(r),this},createShapeElement:function(){return this.canvas.paper.rect(this.getAbsoluteX(),this.getAbsoluteY(),this.getWidth(),this.getHeight())},setDashArray:function(r){return this.dasharray=r,this.repaint(),this.fireEvent("change:dashArray",{value:this.dasharray}),this},getDashArray:function(){return this.dasharray},getPersistentAttributes:function(){var r=this._super();return null!==this.dasharray&&(r.dasharray=this.dasharray),r},setPersistentAttributes:function(r){return this._super(r),"string"==typeof r.dasharray&&(this.dasharray=r.dasharray),this}})},
1"./src/shape/basic/Text.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.basic.Text=a.default.shape.basic.Label.extend({NAME:"draw2d.shape.basic.Text",init:function(s,n,r){this.cachedWrappedAttr=null,this._super(extend({width:100,height:50,resizeable:!0},s),n,r),this.installEditPolicy(new a.default.policy.figure.WidthSelectionFeedbackPolicy)},repaint:function(s){!0===this.repaintBlocked||null===this.shape||(this.svgNodes.attr(extend({},this.calculateTextAttr(),this.wrappedTextAttr(this.text,this.getWidth()-this.padding.left-this.padding.right))),this.svgNodes.attr({x:this.padding.left,y:this.getHeight()/2}),a.default.SetFigure.prototype.repaint.call(this,s))},setDimension:function(s,n){this.clearCache();var r=this.wrappedTextAttr(this.text,s);return this.cachedMinWidth=Math.max(s,r.width),this.cachedMinHeight=r.height,a.default.shape.node.Node.prototype.setDimension.call(this,this.cachedMinWidth,this.cachedMinHeight),this.fireEvent("change:dimension",{value:{width:this.cachedMinWidth,height:this.cachedMinHeight}}),this},clearCache:function(){return this._super(),this.cachedWrappedAttr=null,this},getMinWidth:function(){if(null===this.shape)return 0;if(null===this.cachedMinWidth){var s=this.text.split(" ").reduce(function(r,u){return r.length>u.length?r:u}),n=this.canvas.paper.text(0,0,s).attr(extend({},this.calculateTextAttr(),{text:s}));this.cachedMinWidth=n.getBBox(!0).width+this.padding.left+this.padding.right+2*this.getStroke(),n.remove()}return this.cachedMinWidth},wrappedTextAttr:function(s,n){var r=s.split(" ");if(null===this.canvas||0===r.length)return{text:s,width:n,height:20};if(null===this.cachedWrappedAttr){for(var u="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",l=this.canvas.paper.text(0,0,"").attr(extend({},this.calculateTextAttr(),{text:u})),p=l.getBBox(!0).width/u.length,x=[r[0]],m=x[0].length*p,g=null,w=1;w<r.length;w++){var C=(g=r[w]).length*p;m+C>n?(x.push("\n"),m=C):(x.push(" "),m+=C),x.push(g)}l.attr({text:x.join("")});var k=l.getBBox(!0);l.remove(),this.cachedWrappedAttr={text:x.join(""),width:Math.max(n,k.width)+this.padding.left+this.padding.right,height:k.height+this.padding.top+this.padding.bottom}}return this.cachedWrappedAttr}})},
1"./src/shape/basic/VertexResizeHandle.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.basic.VertexResizeHandle=a.default.ResizeHandle.extend({NAME:"draw2d.shape.basic.VertexResizeHandle",SNAP_THRESHOLD:3,LINE_COLOR:"#1387E6",FADEOUT_DURATION:300,init:function(s,n){this._super({owner:s}),this.index=n,this.isDead=!1},onDoubleClick:function(){var s=new a.default.command.CommandRemoveVertex(this.owner,this.index);this.getCanvas().getCommandStack().execute(s),this.isDead=!0},onDragStart:function(s,n,r,u){if(!0!==this.isDead)return this._super(),this.command=this.getCanvas().getPrimarySelection().createCommand(new a.default.command.CommandType(a.default.command.CommandType.MOVE_VERTEX)),null!=this.command&&(this.command.setIndex(this.index),this.setAlpha(.2),this.shape.attr({cursor:"crosshair"})),this.vertex=this.owner.getVertex(this.index).clone(),this.fireEvent("dragstart",{x:s,y:n,shiftKey:r,ctrlKey:u}),!0},onDrag:function(s,n,r,u){if(!0!==this.isDead&&null!=this.command){this.setPosition(this.x+r,this.y+u),this.vertex.translate(r,u);var l=this.vertex.clone();this.getCanSnapToHelper()&&(l=this.getCanvas().snapToHelper(this,l)),this.owner.setVertex(this.index,l.x,l.y),this.command.updatePosition(this.vertex.x,this.vertex.y)}},onDragEnd:function(s,n,r,u){if(!0!==this.isDead&&null!==this.command){this.shape.attr({cursor:"move"});var l=this.getCanvas().getCommandStack(),p=new a.default.command.CommandCollection;try{p.add(this.command),this.command=null,this.getEnclosingAngle()>178&&p.add(new a.default.command.CommandRemoveVertex(this.owner,this.index))}finally{l.execute(p)}this.setAlpha(1),this.fireEvent("dragend",{x:s,y:n,shiftKey:r,ctrlKey:u})}},relocate:function(){var s=this.getWidth()/2,n=this.getHeight()/2,r=this.owner.getVertex(this.index);this.setPosition(r.x-s,r.y-n)},getEnclosingAngle:function(){var s=this.owner.getVertices(),n=this.vertex.getScaled(-1),r=s.getSize(),u=s.get((this.index-1+r)%r).translated(n),l=s.get((this.index+1)%r).translated(n),p=u.dot(l);return 180*Math.acos(p/(u.length()*l.length()))/Math.PI}})},
1"./src/shape/composite/Composite.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.composite.Composite=a.default.SetFigure.extend({NAME:"draw2d.shape.composite.Composite",init:function(s,n,r){this._super(extend({stroke:1,color:"#f0f0f0"},s),n,r)},onDoubleClick:function(){},isMemberSelectable:function(s,n){return n},isMemberDraggable:function(s,n){return n},setCanvas:function(s){return this._super(s),null!==s&&this.toBack(),this}})},
1"./src/shape/composite/Group.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.composite.Group=a.default.shape.composite.StrongComposite.extend({NAME:"draw2d.shape.composite.Group",init:function(s,n,r){this._super(extend({bgColor:null,color:null,resizeable:!1},s),n,r),this.stickFigures=!1},isMemberSelectable:function(s,n){return!1},isMemberDraggable:function(s,n){return!1},setPosition:function(s,n){var r=this.x,u=this.y;this._super(s,n);var l=this.x-r,p=this.y-u;return 0===l&&0===p||!1===this.stickFigures&&this.assignedFigures.each(function(x,m){m.translate(l,p)}),this},assignFigure:function(s){if(!this.assignedFigures.contains(s)){var n=this;this.stickFigures=!0,!0===this.assignedFigures.isEmpty()?this.setBoundingBox(s.getBoundingBox()):this.setBoundingBox(this.getBoundingBox().merge(s.getBoundingBox())),this.assignedFigures.add(s),s.setComposite(this),s.setSelectionAdapter(function(){return n}),this.stickFigures=!1}return this},unassignFigure:function(s){if(this.assignedFigures.contains(s)){if(this.stickFigures=!0,s.setComposite(null),s.setSelectionAdapter(null),this.assignedFigures.remove(s),!this.assignedFigures.isEmpty()){var n=this.assignedFigures.first().getBoundingBox();this.assignedFigures.each(function(r,u){n.merge(u.getBoundingBox())}),this.setBoundingBox(n)}this.stickFigures=!1}return this},createCommand:function(s){return null===s?null:s.getPolicy()===a.default.command.CommandType.DELETE?this.isDeleteable()?new a.default.command.CommandDeleteGroup(this):null:this._super(s)}})},
1"./src/shape/composite/Jailhouse.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.composite.Jailhouse=a.default.shape.composite.StrongComposite.extend({NAME:"draw2d.shape.composite.Jailhouse",init:function(s,n,r){this.policy=new a.default.policy.figure.RegionEditPolicy(0,0,10,10),this._super(extend({bgColor:"#f0f0f0",color:"#333333"},s),n,r),this.stickFigures=!1},setDimension:function(s,n){this._super(s,n),this.policy.setBoundingBox(this.getAbsoluteBounds())},setPosition:function(s,n){var r=this.x,u=this.y;this._super(s,n);var l=this.x-r,p=this.y-u;return 0===l&&0===p||(this.policy.getBoundingBox().setPosition(s,n),!1===this.stickFigures&&this.assignedFigures.each(function(x,m){m.translate(l,p)})),this},assignFigure:function(s){return!this.assignedFigures.contains(s)&&s!==this&&(this.stickFigures=!0,this.setBoundingBox(this.getBoundingBox().merge(s.getBoundingBox())),this.assignedFigures.add(s),s.setComposite(this),s.installEditPolicy(this.policy),s.toFront(this),this.stickFigures=!1),this},getAssignedFigures:function(){return this.assignedFigures},unassignFigure:function(s){if(this.assignedFigures.contains(s)){if(this.stickFigures=!0,s.setComposite(null),s.uninstallEditPolicy(this.policy),this.assignedFigures.remove(s),!this.assignedFigures.isEmpty()){var n=this.assignedFigures.first().getBoundingBox();this.assignedFigures.each(function(r,u){n.merge(u.getBoundingBox())}),this.setBoundingBox(n)}this.stickFigures=!1}return this},onCatch:function(s,n,r,u,l){this.getCanvas().getCommandStack().execute(new a.default.command.CommandAssignFigure(s,this))},getMinWidth:function(){var s=0;return this.assignedFigures.each(function(n,r){s=Math.max(s,r.getBoundingBox().getRight())}),s-this.getAbsoluteX()},getMinHeight:function(){var s=0;return this.assignedFigures.each(function(n,r){s=Math.max(s,r.getBoundingBox().getBottom())}),s-this.getAbsoluteY()}})},
1"./src/shape/composite/Raft.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.composite.Raft=a.default.shape.composite.WeakComposite.extend({NAME:"draw2d.shape.composite.Raft",init:function(s,n,r){this.aboardFigures=new a.default.util.ArrayList,this._super(extend({bgColor:"#f0f0f0",color:"#1B1B1B"},s),n,r)},onDragStart:function(s,n,r,u){return this._super(s,n,r,u),this.aboardFigures=new a.default.util.ArrayList,this.getAboardFigures(this.isInDragDrop),!0},setPosition:function(s,n,r){var u=this.x,l=this.y,p=r?a.default.util.ArrayList.EMPTY_LIST:this.getAboardFigures(!1===this.isInDragDrop);this._super(s,n);var x=this.x-u,m=this.y-l;return 0===x&&0===m||(null!==this.canvas&&(p=p.clone(),this.canvas.getLines().each(function(g,w){w instanceof a.default.Connection&&p.contains(w.getSource().getRoot())&&p.contains(w.getTarget().getRoot())&&p.add(w)})),p.each(function(g,w){w.translate(x,m)})),this},onDrag:function(s,n,r,u,l,p){var x=this;this.editPolicy.each(function(g,w){if(w instanceof a.default.policy.figure.DragDropEditPolicy){var C=w.adjustPosition(x,x.ox+s,x.oy+n);C&&(s=C.x-x.ox,n=C.y-x.oy)}});var m=new a.default.geo.Point(this.ox+s,this.oy+n);this.getCanSnapToHelper()&&(m=this.getCanvas().snapToHelper(this,m)),this.setPosition(m.x,m.y,l),this.editPolicy.each(function(g,w){w instanceof a.default.policy.figure.DragDropEditPolicy&&w.onDrag(x.canvas,x)}),this.fireEvent("drag",{dx:s,dy:n,dx2:r,dy2:u,shiftKey:l,ctrlKey:p})},getAboardFigures:function(s){if(!0===s&&null!==this.canvas){var n=this.getBoundingBox(),r=this.getZOrder();this.aboardFigures=new a.default.util.ArrayList;var u=this;this.getCanvas().getFigures().each(function(l,p){if(p!==u&&!0===p.isSelectable()&&p.getBoundingBox().isInside(n)){if(u.getNextComposite(p)!==u)return;p.getZOrder()>r&&u.aboardFigures.add(p)}})}return this.aboardFigures},getNextComposite:function(s){var n=null;return this.getCanvas().getFigures().each(function(r,u){if(s!==u&&u instanceof a.default.shape.composite.Composite){if(null!==n&&n.getZOrder()>u.getZOrder())return;u.getBoundingBox().contains(s.getBoundingBox())&&(n=u)}}),n}})},
1"./src/shape/composite/StrongComposite.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.composite.StrongComposite=a.default.shape.composite.Composite.extend({NAME:"draw2d.shape.composite.StrongComposite",init:function(s,n,r){this.assignedFigures=new a.default.util.ArrayList,this._super(s,n,r)},contains:function(s){for(var n=0,r=this.assignedFigures.getSize();n<r;n++){var u=this.assignedFigures.get(n);if(u===s||u.contains(s))return!0}return this._super(s)},assignFigure:function(s){return this},unassignFigure:function(s){return this},getAssignedFigures:function(){return this.assignedFigures},onDrop:function(s,n,r,u,l){},onCatch:function(s,n,r,u,l){},toFront:function(s){this._super(s);var n=this.getAssignedFigures().clone();n.sort(function(u,l){return u.getZOrder()>l.getZOrder()?-1:1});var r=this;return n.each(function(u,l){l.toFront(r)}),this},toBack:function(s){this._super(s);var n=this.getAssignedFigures().clone();n.sort(function(u,l){return u.getZOrder()>l.getZOrder()?-1:1});var r=this;return n.each(function(u,l){l.toBack(r)}),this}})},
1"./src/shape/composite/WeakComposite.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.composite.WeakComposite=a.default.shape.composite.Composite.extend({NAME:"draw2d.shape.composite.WeakComposite",init:function(s,n,r){this._super(s,n,r)}})},
1"./src/shape/diagram/Diagram.js":function(h,y,c){"use strict";var a=r(c("./src/packages.js")),t=r(c("./src/util/extend.js")),n=r(c("./src/util/JSONUtil.js"));function r(u){return u&&u.__esModule?u:{default:u}}a.default.shape.diagram.Diagram=a.default.SetFigure.extend({init:function(l,p,x){this.data=[],this.cache={},this._super((0,t.default)({data:[],bgColor:"#8dabf2",stroke:1,color:"#f0f0f0",radius:2,resizeable:!0},l),(0,t.default)({},{data:this.setData},p),(0,t.default)({},{data:this.getData},x))},setData:function(l){this.data=l,this.cache={},null!==this.svgNodes&&(this.svgNodes.remove(),this.svgNodes=this.createSet()),this.repaint(),this.fireEvent("change:data",{value:l})},getData:function(){return this.data},setDimension:function(l,p){return this.cache={},this._super(l,p),this},getWidth:function(){return this.width},getHeight:function(){return this.height},repaint:function(l){return!0===this.repaintBlocked||null==this.shape?this:(n.default.ensureDefault(l=l||{},"fill","none"),this._super(l))},applyTransformation:function(){return!0===this.isResizeable()?this.svgNodes.transform("S"+this.scaleX+","+this.scaleY+","+this.getAbsoluteX()+","+this.getAbsoluteY()+"t"+this.getAbsoluteX()+","+this.getAbsoluteY()):this.svgNodes.transform("T"+this.getAbsoluteX()+","+this.getAbsoluteY()),this}})},
1"./src/shape/diagram/Pie.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.diagram.Pie=a.default.shape.diagram.Diagram.extend({NAME:"draw2d.shape.diagram.Pie",COLORS:["#00A8F0","#b9dd69","#f3546a","#4DA74D","#9440ED"],TWO_PI:2*Math.PI,init:function(r,u,l){this._super((0,t.default)({stroke:0},r),(0,t.default)({diameter:this.setDiameter,radius:this.setRadius},u),(0,t.default)({diameter:this.getDiameter,radius:this.getRadius},l))},setDiameter:function(r){var u=this.getCenter();return this.setDimension(r,r),this.setCenter(u),this.fireEvent("change:diameter",{value:this.width}),this},getDiameter:function(){return this.getWidth()},setRadius:function(r){return this.setDiameter(2*r),this.fireEvent("change:radius",{value:this.width/2}),this},getCenter:function(){var r=this.getDiameter()/2;return this.getPosition().translate(r,r)},setCenter:function(r,u){var l=new a.default.geo.Point(r,u),p=this.getDiameter()/2;return l.translate(-p,-p),this.setPosition(l),this.fireEvent("change:center",{value:{x:r,y:u}}),this},setData:function(r){var u=this;this.sum=0,r.forEach(function(p){u.sum+=p});var l=1/this.sum;return r.forEach(function(p,x){r[x]=l*p}),this._super(r),this.fireEvent("change:data",{value:r}),this},createSet:function(){for(var r=this.getWidth()/2,u=this.data.length,l=this.canvas.paper.set(),p=0,x=0;x<u;x++){var m=this.TWO_PI*this.data[x],g=this.COLORS[x%u],w=this.drawSegment(r,m,p,.1);w.attr({stroke:this.color.rgba(),fill:g}),l.push(w),p+=m}return l},setDimension:function(r,u){return r>u?this._super(r,r):this._super(u,u),null!==this.svgNodes&&(this.svgNodes.remove(),this.svgNodes=this.createSet()),this.repaint(),this},polarPath:function(r,u,l){return"L "+(r*Math.cos(u+l)+r)+" "+(r*Math.sin(u+l)+r)+" "},drawSegment:function(r,u,l,p){for(var x="M "+r+" "+r,m=0;m<u;m+=p)x+=this.polarPath(r,m,l);return x+=this.polarPath(r,u,l),x+="L "+r+" "+r,this.getCanvas().paper.path(x)},applyTransformation:function(){return this.svgNodes.transform("T"+this.getAbsoluteX()+","+this.getAbsoluteY()),this}})},
1"./src/shape/diagram/Sparkline.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(r){return r&&r.__esModule?r:{default:r}}function n(r){if(Array.isArray(r)){for(var u=0,l=Array(r.length);u<r.length;u++)l[u]=r[u];return l}return Array.from(r)}a.default.shape.diagram.Sparkline=a.default.shape.diagram.Diagram.extend({NAME:"draw2d.shape.diagram.Sparkline",init:function(u,l,p){this.min=0,this.max=10,this.padding=4,this._super((0,t.default)({width:180,height:50},u),l,p)},setData:function(u){return u.length>0?(this.min=Math.min.apply(Math,n(u)),this.max=Math.max.apply(Math,n(u))):(this.min=0,this.max=1),this.max===this.min&&(this.max=this.min+1),this._super(u),this.fireEvent("change:data",{value:u}),this},createSet:function(){return this.canvas.paper.path("M0 0 l0 0")},repaint:function(u){var l=this;if(!0!==this.repaintBlocked&&null!==this.shape){(u=u||{}).fill="90-#000:5-#4d4d4d:95";var p=this.padding,x=this.getWidth()-2*p,m=this.getHeight()-2*p,g=this.data.length,w=this.min,C=this.max;if(null!==this.svgNodes&&void 0===this.cache.pathString){var M=null;this.data.forEach(function(N,O){var _=function(O,_){var P=1;return g>1&&(P=x/(g-1)),{y:-(O-w)/(C-w)*m+m+p,x:p+_*P}}(N,O);l.cache.pathString=null===M?["M",_.x,_.y].join(" "):[l.cache.pathString,"L",_.x,_.y].join(" "),M=_}),this.svgNodes.attr({path:this.cache.pathString,stroke:"#f0f0f0"})}return this._super(u),this}}})},
1"./src/shape/dimetric/Rectangle.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.dimetric.Rectangle=a.default.shape.basic.Polygon.extend({NAME:"draw2d.shape.dimetric.Rectangle",init:function(s,n,r){this._super(extend({bgColor:"#00a3f6",color:"#1B1B1B"},s),n,r);var u=this.getPosition();this.resetVertices();var l=Math.atan(.5),p=Math.cos(l),x=Math.sin(l),m=this.getBoundingBox(),g=m.w,w=m.h;this.addVertex(0,0),this.addVertex(p*g,x*g),this.addVertex(p*g-p*w,x*g+x*w),this.addVertex(-p*w,x*w),this.installEditPolicy(new a.default.policy.figure.RectangleSelectionFeedbackPolicy),this.setPosition(u)}})},
1"./src/shape/flowchart/Document.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.flowchart.Document=a.default.VectorFigure.extend({NAME:"draw2d.shape.flowchart.Document",init:function(s,n,r){this.amplitude=.08,this._super(extend({width:80,height:50,bgColor:"#2196f3",color:"#1B1B1B",stroke:1},s),n,r)},createShapeElement:function(){return this.canvas.paper.path(this.calcPath())},calcPath:function(){var s=this.getWidth(),n=this.getHeight(),r=s/2,u=s/4,l=n*this.amplitude|0;return["M",this.getAbsoluteX(),",",this.getAbsoluteY(),"l",s,",",0,"l",0,",",n-l,"q",-u,",",-l,-r,",",0,"q",-u,",",l,-r,",",0,"z"].join(" ")},repaint:function(s){if(!0!==this.repaintBlocked&&null!==this.shape)return s=extend({},{path:this.calcPath()},s),this._super(s),this}})},
1"./src/shape/icon/Acw.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Acw=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Acw",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M19.275,3.849l1.695,8.56l1.875-1.642c2.311,3.59,1.72,8.415-1.584,11.317c-2.24,1.96-5.186,2.57-7.875,1.908l-0.84,3.396c3.75,0.931,7.891,0.066,11.02-2.672c4.768-4.173,5.521-11.219,1.94-16.279l2.028-1.775L19.275,3.849zM8.154,20.232c-2.312-3.589-1.721-8.416,1.582-11.317c2.239-1.959,5.186-2.572,7.875-1.909l0.842-3.398c-3.752-0.93-7.893-0.067-11.022,2.672c-4.765,4.174-5.519,11.223-1.939,16.283l-2.026,1.772l8.26,2.812l-1.693-8.559L8.154,20.232z")}})},
1"./src/shape/icon/Alarm.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Alarm=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Alarm",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M8.179,20.115c-0.478,0.277-0.642,0.889-0.365,1.366c0.275,0.479,0.889,0.642,1.365,0.366c0.479-0.275,0.643-0.888,0.367-1.367C9.27,20.004,8.658,19.84,8.179,20.115zM9.18,12.239c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,13.126,9.657,12.516,9.18,12.239zM8.625,17.043c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,18.043,8.624,17.596,8.625,17.043zM16.312,3.957V3.031h1c0.275,0,0.5-0.225,0.5-0.5v-0.5c0-0.275-0.225-0.5-0.5-0.5h-3.625c-0.275,0-0.5,0.225-0.5,0.5v0.5c0,0.275,0.225,0.5,0.5,0.5h1v0.926C7.819,4.381,2.376,10.068,2.374,17.042C2.376,24.291,8.251,30.166,15.5,30.169c7.249-0.003,13.124-5.878,13.125-13.127C28.624,10.067,23.181,4.38,16.312,3.957zM15.5,27.166C9.909,27.157,5.385,22.633,5.375,17.042C5.385,11.451,9.909,6.927,15.5,6.917c5.59,0.01,10.115,4.535,10.124,10.125C25.615,22.633,21.091,27.157,15.5,27.166zM12.062,22.998c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,23.887,12.54,23.275,12.062,22.998zM12.062,11.088c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,11.2,11.584,11.364,12.062,11.088zM22.822,13.971c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,14.083,22.344,14.247,22.822,13.971zM15.501,23.92c-0.552,0-1,0.447-1,1c0,0.552,0.448,1,1,1s1-0.448,1-1C16.501,24.367,16.053,23.92,15.501,23.92zM19.938,9.355c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,10.245,20.418,9.632,19.938,9.355zM23.378,16.042c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,16.492,23.929,16.042,23.378,16.042zM22.823,20.115c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.091,0.367,1.367c0.477,0.275,1.089,0.112,1.365-0.366C23.464,21.004,23.3,20.391,22.823,20.115zM15.501,8.167c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.366c0.275,0.479,0.889,0.642,1.365,0.366l3.305-1.676c0.055,0.006,0.109,0.017,0.166,0.017c0.828,0,1.5-0.672,1.5-1.5l-0.5-7.876C16.501,8.614,16.053,8.167,15.501,8.167zM18.939,22.998c-0.479,0.276-0.643,0.888-0.366,1.367c0.275,0.477,0.888,0.642,1.366,0.365c0.478-0.276,0.642-0.889,0.366-1.365C20.028,22.886,19.417,22.723,18.939,22.998zM11.197,3.593c-0.836-1.04-2.103-1.718-3.541-1.718c-2.52,0-4.562,2.042-4.562,4.562c0,0.957,0.297,1.843,0.8,2.576C5.649,6.484,8.206,4.553,11.197,3.593zM27.106,9.014c0.503-0.733,0.8-1.619,0.8-2.576c0-2.52-2.043-4.562-4.562-4.562c-1.438,0-2.704,0.678-3.541,1.717C22.794,4.553,25.351,6.484,27.106,9.014z")}})},
1"./src/shape/icon/Anonymous.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Anonymous=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Anonymous",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.523,23.813c-0.518-0.51-6.795-2.938-7.934-3.396c-1.132-0.451-1.584-1.697-1.584-1.697s-0.51,0.282-0.51-0.51c0-0.793,0.51,0.51,1.021-2.548c0,0,1.414-0.397,1.133-3.68l-0.338,0.001c0,0,0.85-3.511,0-4.699c-0.854-1.188-1.188-1.981-3.062-2.548c-1.869-0.567-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.793-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.32s0.283,3.059,0.566,3.624l-0.337,0.112c-0.283,3.283,1.132,3.681,1.132,3.681c0.509,3.058,1.019,1.755,1.019,2.548c0,0.792-0.51,0.51-0.51,0.51s-0.452,1.246-1.584,1.697c-1.132,0.453-7.416,2.887-7.927,3.396c-0.511,0.521-0.453,2.896-0.453,2.896h26.954C28.977,26.709,29.039,24.332,28.523,23.813zM16.618,13.693c-0.398-0.251-0.783-1.211-0.783-1.64c0-0.133,0-0.236,0-0.236c-0.105-0.106-0.574-0.096-0.67,0c0,0,0,0.104,0,0.236c0,0.429-0.385,1.389-0.783,1.64c-0.399,0.251-1.611,0.237-2.084-0.236c-0.473-0.473-0.524-1.663-0.643-1.78c-0.118-0.119-0.185-0.185-0.185-0.185l0.029-0.414c0,0,0.842-0.207,1.699-0.207s1.803,0.502,1.803,0.502c0.231-0.074,0.784-0.083,0.996,0c0,0,0.945-0.502,1.803-0.502s1.699,0.207,1.699,0.207l0.029,0.414c0,0-0.066,0.066-0.185,0.185c-0.118,0.118-0.169,1.308-0.643,1.78C18.229,13.93,17.018,13.944,16.618,13.693z")}})},
1"./src/shape/icon/Apple.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Apple=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Apple",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.32,10.85c-1.743,1.233-2.615,2.719-2.615,4.455c0,2.079,1.078,3.673,3.232,4.786c-0.578,1.677-1.416,3.134-2.514,4.375c-1.097,1.241-2.098,1.862-3.004,1.862c-0.427,0-1.009-0.143-1.748-0.423l-0.354-0.138c-0.725-0.281-1.363-0.423-1.92-0.423c-0.525,0-1.1,0.11-1.725,0.331l-0.445,0.16l-0.56,0.229c-0.441,0.176-0.888,0.264-1.337,0.264c-1.059,0-2.228-0.872-3.507-2.616c-1.843-2.498-2.764-5.221-2.764-8.167c0-2.095,0.574-3.781,1.725-5.061c1.149-1.279,2.673-1.92,4.568-1.92c0.709,0,1.371,0.13,1.988,0.389l0.423,0.172l0.445,0.183c0.396,0.167,0.716,0.251,0.959,0.251c0.312,0,0.659-0.072,1.04-0.217l0.582-0.229l0.435-0.16c0.693-0.251,1.459-0.377,2.297-0.377C21.512,8.576,23.109,9.334,24.32,10.85zM19.615,3.287c0.021,0.267,0.033,0.473,0.033,0.617c0,1.317-0.479,2.473-1.438,3.467s-2.075,1.49-3.347,1.49c-0.038-0.297-0.058-0.51-0.058-0.639c0-1.12,0.445-2.171,1.337-3.153c0.891-0.982,1.922-1.558,3.096-1.725C19.32,3.329,19.447,3.311,19.615,3.287z")}})},
1"./src/shape/icon/Apps.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Apps=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Apps",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.359,18.424l-2.326,1.215c0.708,1.174,1.384,2.281,1.844,3.033l2.043-1.066C25.538,20.822,24.966,19.652,24.359,18.424zM19.143,14.688c0.445,0.84,1.342,2.367,2.274,3.926l2.414-1.261c-0.872-1.769-1.72-3.458-2.087-4.122c-0.896-1.621-1.982-3.108-3.454-5.417c-1.673-2.625-3.462-5.492-4.052-4.947c-1.194,0.384,1.237,4.094,1.876,5.715C16.73,10.147,17.991,12.512,19.143,14.688zM26.457,22.673l-1.961,1.022l1.982,4.598c0,0,0.811,0.684,1.92,0.213c1.104-0.469,0.81-1.706,0.81-1.706L26.457,22.673zM24.35,15.711c0.168,0.339,2.924,5.93,2.924,5.93h1.983v-5.93H24.35zM18.34,15.704h-4.726l-3.424,5.935h11.66C21.559,21.159,18.771,16.479,18.34,15.704zM3.231,21.613l3.437-5.902H2.083v5.93h1.133L3.231,21.613zM15.048,10.145c0-0.93-0.754-1.685-1.685-1.685c-0.661,0-1.231,0.381-1.507,0.936l2.976,1.572C14.97,10.725,15.048,10.444,15.048,10.145zM14.343,12.06l-3.188-1.684L9.62,13.012l3.197,1.689L14.343,12.06zM3.192,26.886l-0.384,1.108v0.299l0.298-0.128l0.725-0.896l2.997-2.354l-3.137-1.651L3.192,26.886zM9.02,14.044l-4.757,8.17l3.23,1.706l4.728-8.186L9.02,14.044z")}})},
1"./src/shape/icon/ArrowDown.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ArrowDown=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ArrowDown",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M5.318,6.684L15.5,24.316L25.682,6.684H5.318z")}})},
1"./src/shape/icon/ArrowLeft.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ArrowLeft=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ArrowLeft",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.316,5.318L6.684,15.5l17.632,10.182V5.318L24.316,5.318z")}})},
1"./src/shape/icon/ArrowLeft2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ArrowLeft2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ArrowLeft2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.871,9.814 15.684,16.001 21.871,22.188 18.335,25.725 8.612,16.001 18.335,6.276z")}})},
1"./src/shape/icon/ArrowRight.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ArrowRight=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ArrowRight",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M6.684,25.682L24.316,15.5L6.684,5.318V25.682z")}})},
1"./src/shape/icon/ArrowRight2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ArrowRight2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ArrowRight2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M10.129,22.186 16.316,15.999 10.129,9.812 13.665,6.276 23.389,15.999 13.665,25.725z")}})},
1"./src/shape/icon/ArrowUp.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ArrowUp=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ArrowUp",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.682,24.316L15.5,6.684L5.318,24.316H25.682z")}})},
1"./src/shape/icon/Aumade.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Aumade=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Aumade",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.513,24.52c-0.131-0.217-0.14-0.481-0.022-0.711l1.987-3.844l0,0c0.186-0.357,0.625-0.497,0.981-0.312c0.357,0.188,0.498,0.625,0.312,0.982l-1.801,3.48l2.228,3.699h12.269l-14.8-25.631L6.433,18.178c0.434,0.242,0.909,0.479,1.391,0.654c0.571,0.211,1.148,0.342,1.658,0.342c0.276,0,0.579-0.078,0.916-0.238c0.337-0.158,0.7-0.396,1.073-0.688c0.749-0.582,1.527-1.354,2.334-2.021c0.539-0.442,1.091-0.844,1.706-1.099c0.352-0.145,0.729-0.239,1.128-0.239c0.622,0,1.174,0.214,1.622,0.5c0.449,0.287,0.813,0.646,1.11,0.995c0.59,0.697,0.902,1.359,0.924,1.394l0,0c0.18,0.361,0.021,0.801-0.341,0.977c-0.356,0.176-0.798,0.021-0.978-0.34c0-0.002-0.002-0.004-0.004-0.007c-0.002-0.011-0.008-0.021-0.018-0.034c-0.018-0.033-0.043-0.082-0.078-0.146c-0.07-0.125-0.179-0.305-0.312-0.496c-0.271-0.391-0.668-0.845-1.092-1.104c-0.281-0.178-0.561-0.272-0.844-0.272c-0.216,0-0.479,0.069-0.788,0.229c-0.309,0.153-0.653,0.396-1.016,0.688c-0.727,0.584-1.511,1.362-2.351,2.033c-0.562,0.445-1.15,0.853-1.809,1.103c-0.375,0.143-0.776,0.229-1.195,0.229c-0.749,0-1.48-0.181-2.164-0.433c-0.58-0.219-1.125-0.482-1.613-0.764L0.86,27.816h15.63L14.513,24.52zM18.214,22.242c0.222-0.557,0.537-1.217,0.963-1.848c0.427-0.627,0.957-1.232,1.646-1.646c0.379-0.229,0.812-0.391,1.282-0.438l-0.604-0.934l0,0c-0.22-0.339-0.123-0.789,0.215-1.009c0.341-0.219,0.789-0.123,1.013,0.216l1.545,2.391c0.184,0.274,0.147,0.646-0.075,0.893c-0.228,0.247-0.591,0.305-0.886,0.145c-0.354-0.191-0.646-0.258-0.901-0.258c-0.291,0-0.562,0.084-0.845,0.25c-0.277,0.164-0.562,0.414-0.813,0.719c-0.519,0.607-0.937,1.422-1.185,2.055c-0.111,0.285-0.387,0.466-0.678,0.466c-0.092,0-0.183-0.021-0.271-0.056C18.249,23.039,18.064,22.615,18.214,22.242z")}})},
1"./src/shape/icon/BarChart.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.BarChart=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.BarChart",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.25,8.375V28h6.5V8.375H21.25zM12.25,28h6.5V4.125h-6.5V28zM3.25,28h6.5V12.625h-6.5V28z")}})},
1"./src/shape/icon/BioHazard.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.BioHazard=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.BioHazard",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M26.154,13.988c-0.96-0.554-1.982-0.892-3.019-1.032c0.396-0.966,0.616-2.023,0.616-3.131c0-4.399-3.438-8.001-7.772-8.264c3.245,0.258,5.803,2.979,5.803,6.292c0,3.373-2.653,6.123-5.983,6.294v1.292c0.908,0.144,1.605,0.934,1.605,1.883c0,0.232-0.043,0.454-0.118,0.66l1.181,0.683c1.826-2.758,5.509-3.658,8.41-1.981c2.896,1.672,3.965,5.299,2.506,8.254C31.386,21.038,29.992,16.204,26.154,13.988zM4.122,16.587c2.92-1.686,6.628-0.764,8.442,2.034l1.141-0.657c-0.072-0.2-0.109-0.417-0.109-0.642c0-0.909,0.638-1.67,1.489-1.859v-1.319c-3.3-0.202-5.92-2.94-5.92-6.292c0-3.297,2.532-6.007,5.757-6.286c-4.312,0.285-7.729,3.875-7.729,8.258c0,1.078,0.206,2.106,0.581,3.05c-1.004,0.147-1.999,0.481-2.931,1.02c-3.812,2.201-5.209,6.985-3.264,10.87C0.174,21.823,1.251,18.244,4.122,16.587zM11.15,11.452c0.114,0.139,0.235,0.271,0.362,0.398c0.126,0.126,0.259,0.247,0.397,0.361c0.102,0.084,0.211,0.16,0.318,0.236c0.93-0.611,2.045-0.969,3.244-0.969c1.201,0,2.312,0.357,3.242,0.969c0.107-0.077,0.217-0.152,0.318-0.236c0.139-0.114,0.271-0.235,0.397-0.361c0.127-0.127,0.248-0.259,0.362-0.398c0.113-0.138,0.222-0.283,0.323-0.431c-1.307-0.956-2.908-1.528-4.643-1.528c-0.042,0-0.083-0.001-0.124,0c-0.019,0-0.04-0.001-0.06,0c-1.666,0.038-3.201,0.605-4.462,1.528C10.929,11.17,11.037,11.314,11.15,11.452zM9.269,16.787c-0.168-0.062-0.338-0.117-0.512-0.164c-0.173-0.047-0.348-0.083-0.525-0.113c-0.177-0.03-0.355-0.053-0.535-0.065c-0.175,1.609,0.13,3.282,0.998,4.786c0.868,1.503,2.164,2.606,3.645,3.259c0.079-0.162,0.15-0.328,0.212-0.496c0.063-0.169,0.118-0.338,0.164-0.512c0.047-0.173,0.087-0.349,0.115-0.525c0.022-0.13,0.034-0.262,0.046-0.394c-0.993-0.5-1.86-1.286-2.461-2.325c-0.6-1.04-0.847-2.182-0.783-3.294C9.512,16.889,9.392,16.833,9.269,16.787zM18.122,22.657c0.014,0.132,0.024,0.263,0.046,0.394c0.03,0.177,0.067,0.352,0.113,0.524c0.047,0.174,0.102,0.346,0.165,0.514c0.062,0.169,0.132,0.333,0.212,0.495c1.48-0.653,2.777-1.755,3.644-3.257c0.868-1.504,1.176-3.179,1.001-4.788c-0.18,0.013-0.358,0.035-0.535,0.065c-0.177,0.029-0.353,0.067-0.525,0.113s-0.345,0.101-0.513,0.163c-0.124,0.047-0.241,0.105-0.362,0.16c0.063,1.11-0.183,2.253-0.784,3.292C19.984,21.373,19.116,22.157,18.122,22.657zM20.569,27.611c-2.92-1.687-3.977-5.358-2.46-8.329l-1.192-0.689c-0.349,0.389-0.854,0.634-1.417,0.634c-0.571,0-1.086-0.254-1.436-0.653l-1.146,0.666c1.475,2.96,0.414,6.598-2.488,8.272c-2.888,1.668-6.552,0.791-8.386-1.935c2.38,3.667,7.249,4.87,11.079,2.658c0.929-0.535,1.711-1.227,2.339-2.018c0.64,0.832,1.45,1.554,2.416,2.112c3.835,2.213,8.709,1.006,11.086-2.671C27.132,28.396,23.463,29.282,20.569,27.611z")}})},
1"./src/shape/icon/Book.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Book=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Book",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.754,4.626c-0.233-0.161-0.536-0.198-0.802-0.097L12.16,9.409c-0.557,0.213-1.253,0.316-1.968,0.316c-0.997,0.002-2.029-0.202-2.747-0.48C7.188,9.148,6.972,9.04,6.821,8.943c0.056-0.024,0.12-0.05,0.193-0.075L18.648,4.43l1.733,0.654V3.172c0-0.284-0.14-0.554-0.374-0.714c-0.233-0.161-0.538-0.198-0.802-0.097L6.414,7.241c-0.395,0.142-0.732,0.312-1.02,0.564C5.111,8.049,4.868,8.45,4.872,8.896c0,0.012,0.004,0.031,0.004,0.031v17.186c0,0.008-0.003,0.015-0.003,0.021c0,0.006,0.003,0.01,0.003,0.016v0.017h0.002c0.028,0.601,0.371,0.983,0.699,1.255c1.034,0.803,2.769,1.252,4.614,1.274c0.874,0,1.761-0.116,2.583-0.427l12.796-4.881c0.337-0.128,0.558-0.448,0.558-0.809V5.341C26.128,5.057,25.988,4.787,25.754,4.626zM5.672,11.736c0.035,0.086,0.064,0.176,0.069,0.273l0.004,0.054c0.016,0.264,0.13,0.406,0.363,0.611c0.783,0.626,2.382,1.08,4.083,1.093c0.669,0,1.326-0.083,1.931-0.264v1.791c-0.647,0.143-1.301,0.206-1.942,0.206c-1.674-0.026-3.266-0.353-4.509-1.053V11.736zM10.181,24.588c-1.674-0.028-3.266-0.354-4.508-1.055v-2.712c0.035,0.086,0.065,0.176,0.07,0.275l0.002,0.053c0.018,0.267,0.13,0.408,0.364,0.613c0.783,0.625,2.381,1.079,4.083,1.091c0.67,0,1.327-0.082,1.932-0.262v1.789C11.476,24.525,10.821,24.588,10.181,24.588z")}})},
1"./src/shape/icon/Bookmark.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Bookmark=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Bookmark",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M17.396,1.841L6.076,25.986l7.341-4.566l1.186,8.564l11.32-24.146L17.396,1.841zM19.131,9.234c-0.562-0.264-0.805-0.933-0.541-1.495c0.265-0.562,0.934-0.805,1.496-0.541s0.805,0.934,0.541,1.496S19.694,9.498,19.131,9.234z")}})},
1"./src/shape/icon/Books.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Books=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Books",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M26.679,7.858c-0.176-0.138-0.404-0.17-0.606-0.083l-9.66,4.183c-0.42,0.183-0.946,0.271-1.486,0.271c-0.753,0.002-1.532-0.173-2.075-0.412c-0.194-0.083-0.356-0.176-0.471-0.259c0.042-0.021,0.09-0.042,0.146-0.064l8.786-3.804l1.31,0.561V6.612c0-0.244-0.106-0.475-0.283-0.612c-0.176-0.138-0.406-0.17-0.605-0.083l-9.66,4.183c-0.298,0.121-0.554,0.268-0.771,0.483c-0.213,0.208-0.397,0.552-0.394,0.934c0,0.01,0.003,0.027,0.003,0.027v14.73c0,0.006-0.002,0.012-0.002,0.019c0,0.005,0.002,0.007,0.002,0.012v0.015h0.002c0.021,0.515,0.28,0.843,0.528,1.075c0.781,0.688,2.091,1.073,3.484,1.093c0.66,0,1.33-0.1,1.951-0.366l9.662-4.184c0.255-0.109,0.422-0.383,0.422-0.692V8.471C26.961,8.227,26.855,7.996,26.679,7.858zM20.553,5.058c-0.017-0.221-0.108-0.429-0.271-0.556c-0.176-0.138-0.404-0.17-0.606-0.083l-9.66,4.183C9.596,8.784,9.069,8.873,8.53,8.873C7.777,8.874,6.998,8.699,6.455,8.46C6.262,8.378,6.099,8.285,5.984,8.202C6.026,8.181,6.075,8.16,6.13,8.138l8.787-3.804l1.309,0.561V3.256c0-0.244-0.106-0.475-0.283-0.612c-0.176-0.138-0.407-0.17-0.606-0.083l-9.66,4.183C5.379,6.864,5.124,7.011,4.907,7.227C4.693,7.435,4.51,7.779,4.513,8.161c0,0.011,0.003,0.027,0.003,0.027v14.73c0,0.006-0.001,0.013-0.001,0.019c0,0.005,0.001,0.007,0.001,0.012v0.016h0.002c0.021,0.515,0.28,0.843,0.528,1.075c0.781,0.688,2.091,1.072,3.485,1.092c0.376,0,0.754-0.045,1.126-0.122V11.544c-0.01-0.7,0.27-1.372,0.762-1.856c0.319-0.315,0.708-0.564,1.19-0.756L20.553,5.058z")}})},
1"./src/shape/icon/Bubble.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Bubble=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Bubble",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,5.333c-7.732,0-14,4.701-14,10.5c0,1.982,0.741,3.833,2.016,5.414L2,25.667l5.613-1.441c2.339,1.317,5.237,2.107,8.387,2.107c7.732,0,14-4.701,14-10.5C30,10.034,23.732,5.333,16,5.333z")}})},
1"./src/shape/icon/Bug.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Bug=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Bug",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.589,10.903l-5.828,1.612c-0.534-1.419-1.338-2.649-2.311-3.628l3.082-5.44c0.271-0.48,0.104-1.092-0.38-1.365c-0.479-0.271-1.09-0.102-1.36,0.377l-2.924,5.162c-0.604-0.383-1.24-0.689-1.9-0.896c-0.416-1.437-1.652-2.411-3.058-2.562c-0.001-0.004-0.002-0.008-0.003-0.012c-0.061-0.242-0.093-0.46-0.098-0.65c-0.005-0.189,0.012-0.351,0.046-0.479c0.037-0.13,0.079-0.235,0.125-0.317c0.146-0.26,0.34-0.43,0.577-0.509c0.023,0.281,0.142,0.482,0.352,0.601c0.155,0.088,0.336,0.115,0.546,0.086c0.211-0.031,0.376-0.152,0.496-0.363c0.105-0.186,0.127-0.389,0.064-0.607c-0.064-0.219-0.203-0.388-0.414-0.507c-0.154-0.087-0.314-0.131-0.482-0.129c-0.167,0.001-0.327,0.034-0.481,0.097c-0.153,0.063-0.296,0.16-0.429,0.289c-0.132,0.129-0.241,0.271-0.33,0.426c-0.132,0.234-0.216,0.496-0.25,0.783c-0.033,0.286-0.037,0.565-0.009,0.84c0.017,0.16,0.061,0.301,0.094,0.449c-0.375-0.021-0.758,0.002-1.14,0.108c-0.482,0.133-0.913,0.36-1.28,0.653c-0.052-0.172-0.098-0.344-0.18-0.518c-0.116-0.249-0.263-0.486-0.438-0.716c-0.178-0.229-0.384-0.41-0.618-0.543C9.904,3.059,9.737,2.994,9.557,2.951c-0.18-0.043-0.352-0.052-0.516-0.027s-0.318,0.08-0.463,0.164C8.432,3.172,8.318,3.293,8.23,3.445C8.111,3.656,8.08,3.873,8.136,4.092c0.058,0.221,0.181,0.384,0.367,0.49c0.21,0.119,0.415,0.138,0.611,0.056C9.31,4.556,9.451,4.439,9.539,4.283c0.119-0.21,0.118-0.443-0.007-0.695c0.244-0.055,0.497-0.008,0.757,0.141c0.081,0.045,0.171,0.115,0.27,0.208c0.097,0.092,0.193,0.222,0.286,0.388c0.094,0.166,0.179,0.368,0.251,0.608c0.013,0.044,0.023,0.098,0.035,0.146c-0.911,0.828-1.357,2.088-1.098,3.357c-0.582,0.584-1.072,1.27-1.457,2.035l-5.16-2.926c-0.48-0.271-1.092-0.102-1.364,0.377C1.781,8.404,1.95,9.016,2.43,9.289l5.441,3.082c-0.331,1.34-0.387,2.807-0.117,4.297l-5.828,1.613c-0.534,0.147-0.846,0.699-0.698,1.231c0.147,0.53,0.697,0.843,1.231,0.694l5.879-1.627c0.503,1.057,1.363,2.28,2.371,3.443l-3.194,5.639c-0.272,0.481-0.104,1.092,0.378,1.363c0.239,0.137,0.512,0.162,0.758,0.094c0.248-0.068,0.469-0.229,0.604-0.471l2.895-5.109c2.7,2.594,5.684,4.123,5.778,1.053c1.598,2.56,3.451-0.338,4.502-3.976l5.203,2.947c0.24,0.138,0.514,0.162,0.762,0.094c0.246-0.067,0.467-0.229,0.603-0.471c0.272-0.479,0.104-1.091-0.377-1.362l-5.701-3.229c0.291-1.505,0.422-2.983,0.319-4.138l5.886-1.627c0.53-0.147,0.847-0.697,0.696-1.229C29.673,11.068,29.121,10.756,28.589,10.903z")}})},
1"./src/shape/icon/Calendar.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Calendar=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Calendar",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M11.758,15.318c0.312-0.3,0.408-0.492,0.408-0.492h0.024c0,0-0.012,0.264-0.012,0.528v5.469h-1.871v1.031h4.87v-1.031H13.33v-7.436h-1.055l-2.027,1.967l0.719,0.744L11.758,15.318zM16.163,21.207c0,0.205,0.024,0.42,0.06,0.647h5.457v-1.031h-4.197c0.023-1.931,4.065-2.362,4.065-5.146c0-1.463-1.114-2.436-2.674-2.436c-1.907,0-2.675,1.607-2.675,1.607l0.875,0.587c0,0,0.6-1.08,1.716-1.08c0.887,0,1.522,0.563,1.522,1.403C20.312,17.754,16.163,18.186,16.163,21.207zM12,3.604h-2v3.335h2V3.604zM23,4.77v3.17h-4V4.77h-6v3.168H9.002V4.77H6.583v21.669h18.833V4.77H23zM24.417,25.438H7.584V10.522h16.833V25.438zM22,3.604h-2v3.335h2V3.604z")}})},
1"./src/shape/icon/Cart.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Cart=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Cart",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M29.02,11.754L8.416,9.473L7.16,4.716C7.071,4.389,6.772,4.158,6.433,4.158H3.341C3.114,3.866,2.775,3.667,2.377,3.667c-0.686,0-1.242,0.556-1.242,1.242c0,0.686,0.556,1.242,1.242,1.242c0.399,0,0.738-0.201,0.965-0.493h2.512l5.23,19.8c-0.548,0.589-0.891,1.373-0.891,2.242c0,1.821,1.473,3.293,3.293,3.293c1.82,0,3.294-1.472,3.297-3.293c0-0.257-0.036-0.504-0.093-0.743h5.533c-0.056,0.239-0.092,0.486-0.092,0.743c0,1.821,1.475,3.293,3.295,3.293s3.295-1.472,3.295-3.293c0-1.82-1.473-3.295-3.295-3.297c-0.951,0.001-1.801,0.409-2.402,1.053h-7.136c-0.601-0.644-1.451-1.052-2.402-1.053c-0.379,0-0.738,0.078-1.077,0.196l-0.181-0.685H26.81c1.157-0.027,2.138-0.83,2.391-1.959l1.574-7.799c0.028-0.145,0.041-0.282,0.039-0.414C30.823,12.733,30.051,11.86,29.02,11.754zM25.428,27.994c-0.163,0-0.295-0.132-0.297-0.295c0.002-0.165,0.134-0.297,0.297-0.297s0.295,0.132,0.297,0.297C25.723,27.862,25.591,27.994,25.428,27.994zM27.208,20.499l0.948-0.948l-0.318,1.578L27.208,20.499zM12.755,11.463l1.036,1.036l-1.292,1.292l-1.292-1.292l1.087-1.087L12.755,11.463zM17.253,11.961l0.538,0.538l-1.292,1.292l-1.292-1.292l0.688-0.688L17.253,11.961zM9.631,14.075l0.868-0.868l1.292,1.292l-1.292,1.292l-0.564-0.564L9.631,14.075zM9.335,12.956l-0.328-1.24L9.792,12.5L9.335,12.956zM21.791,16.499l-1.292,1.292l-1.292-1.292l1.292-1.292L21.791,16.499zM21.207,14.5l1.292-1.292l1.292,1.292l-1.292,1.292L21.207,14.5zM18.5,15.791l-1.293-1.292l1.292-1.292l1.292,1.292L18.5,15.791zM17.791,16.499L16.5,17.791l-1.292-1.292l1.292-1.292L17.791,16.499zM14.499,15.791l-1.292-1.292l1.292-1.292l1.292,1.292L14.499,15.791zM13.791,16.499l-1.292,1.291l-1.292-1.291l1.292-1.292L13.791,16.499zM10.499,17.207l1.292,1.292l-0.785,0.784l-0.54-2.044L10.499,17.207zM11.302,20.404l1.197-1.197l1.292,1.292L12.5,21.791l-1.131-1.13L11.302,20.404zM13.208,18.499l1.291-1.292l1.292,1.292L14.5,19.791L13.208,18.499zM16.5,19.207l1.292,1.292L16.5,21.79l-1.292-1.291L16.5,19.207zM17.208,18.499l1.292-1.292l1.291,1.292L18.5,19.79L17.208,18.499zM20.499,19.207l1.292,1.292L20.5,21.79l-1.292-1.292L20.499,19.207zM21.207,18.499l1.292-1.292l1.292,1.292l-1.292,1.292L21.207,18.499zM23.207,16.499l1.292-1.292l1.292,1.292l-1.292,1.292L23.207,16.499zM25.207,14.499l1.292-1.292L27.79,14.5l-1.291,1.292L25.207,14.499zM24.499,13.792l-1.156-1.156l2.082,0.23L24.499,13.792zM21.791,12.5l-1.292,1.292L19.207,12.5l0.29-0.29l2.253,0.25L21.791,12.5zM14.5,11.791l-0.152-0.152l0.273,0.03L14.5,11.791zM10.5,11.792l-0.65-0.65l1.171,0.129L10.5,11.792zM14.5,21.207l1.205,1.205h-2.409L14.5,21.207zM18.499,21.207l1.206,1.206h-2.412L18.499,21.207zM22.499,21.207l1.208,1.207l-2.414-0.001L22.499,21.207zM23.207,20.499l1.292-1.292l1.292,1.292l-1.292,1.292L23.207,20.499zM25.207,18.499l1.292-1.291l1.291,1.291l-1.291,1.292L25.207,18.499zM28.499,17.791l-1.291-1.292l1.291-1.291l0.444,0.444l-0.429,2.124L28.499,17.791zM29.001,13.289l-0.502,0.502l-0.658-0.658l1.016,0.112C28.911,13.253,28.956,13.271,29.001,13.289zM13.487,27.994c-0.161,0-0.295-0.132-0.295-0.295c0-0.165,0.134-0.297,0.295-0.297c0.163,0,0.296,0.132,0.296,0.297C13.783,27.862,13.651,27.994,13.487,27.994zM26.81,22.414h-1.517l1.207-1.207l0.93,0.93C27.243,22.306,27.007,22.428,26.81,22.414z")}})},
1"./src/shape/icon/Ccw.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Ccw=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Ccw",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.249,15.499c-0.009,4.832-3.918,8.741-8.75,8.75c-2.515,0-4.768-1.064-6.365-2.763l2.068-1.442l-7.901-3.703l0.744,8.694l2.193-1.529c2.244,2.594,5.562,4.242,9.26,4.242c6.767,0,12.249-5.482,12.249-12.249H24.249zM15.499,6.75c2.516,0,4.769,1.065,6.367,2.764l-2.068,1.443l7.901,3.701l-0.746-8.693l-2.192,1.529c-2.245-2.594-5.562-4.245-9.262-4.245C8.734,3.25,3.25,8.734,3.249,15.499H6.75C6.758,10.668,10.668,6.758,15.499,6.75z")}})},
1"./src/shape/icon/Chat.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Chat=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Chat",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.985,5.972c-7.563,0-13.695,4.077-13.695,9.106c0,2.877,2.013,5.44,5.147,7.108c-0.446,1.479-1.336,3.117-3.056,4.566c0,0,4.015-0.266,6.851-3.143c0.163,0.04,0.332,0.07,0.497,0.107c-0.155-0.462-0.246-0.943-0.246-1.443c0-3.393,3.776-6.05,8.599-6.05c3.464,0,6.379,1.376,7.751,3.406c1.168-1.34,1.847-2.892,1.847-4.552C29.68,10.049,23.548,5.972,15.985,5.972zM27.68,22.274c0-2.79-3.401-5.053-7.599-5.053c-4.196,0-7.599,2.263-7.599,5.053c0,2.791,3.403,5.053,7.599,5.053c0.929,0,1.814-0.116,2.637-0.319c1.573,1.597,3.801,1.744,3.801,1.744c-0.954-0.804-1.447-1.713-1.695-2.534C26.562,25.293,27.68,23.871,27.68,22.274z")}})},
1"./src/shape/icon/Check.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Check=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Check",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M2.379,14.729 5.208,11.899 12.958,19.648 25.877,6.733 28.707,9.561 12.958,25.308z")}})},
1"./src/shape/icon/Chrome.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Chrome=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Chrome",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.318,7.677c0.071-0.029,0.148-0.046,0.229-0.046h11.949c-2.533-3.915-6.938-6.506-11.949-6.506c-5.017,0-9.428,2.598-11.959,6.522l4.291,7.431C8.018,11.041,11.274,7.796,15.318,7.677zM28.196,8.84h-8.579c2.165,1.357,3.605,3.763,3.605,6.506c0,1.321-0.334,2.564-0.921,3.649c-0.012,0.071-0.035,0.142-0.073,0.209l-5.973,10.347c7.526-0.368,13.514-6.587,13.514-14.205C29.77,13.002,29.201,10.791,28.196,8.84zM15.547,23.022c-2.761,0-5.181-1.458-6.533-3.646c-0.058-0.046-0.109-0.103-0.149-0.171L2.89,8.855c-1,1.946-1.565,4.153-1.565,6.492c0,7.624,5.999,13.846,13.534,14.205l4.287-7.425C18.073,22.698,16.848,23.022,15.547,23.022zM9.08,15.347c0,1.788,0.723,3.401,1.894,4.573c1.172,1.172,2.785,1.895,4.573,1.895c1.788,0,3.401-0.723,4.573-1.895s1.895-2.785,1.895-4.573c0-1.788-0.723-3.4-1.895-4.573c-1.172-1.171-2.785-1.894-4.573-1.894c-1.788,0-3.401,0.723-4.573,1.894C9.803,11.946,9.081,13.559,9.08,15.347z")}})},
1"./src/shape/icon/Clip.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Clip=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Clip",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M23.898,6.135c-1.571-1.125-3.758-0.764-4.884,0.808l-8.832,12.331c-0.804,1.122-0.546,2.684,0.577,3.488c1.123,0.803,2.684,0.545,3.488-0.578l6.236-8.706l-0.813-0.583l-6.235,8.707h0c-0.483,0.672-1.42,0.828-2.092,0.347c-0.673-0.481-0.827-1.419-0.345-2.093h0l8.831-12.33l0.001-0.001l-0.002-0.001c0.803-1.119,2.369-1.378,3.489-0.576c1.12,0.803,1.379,2.369,0.577,3.489v-0.001l-9.68,13.516l0.001,0.001c-1.124,1.569-3.316,1.931-4.885,0.808c-1.569-1.125-1.93-3.315-0.807-4.885l7.035-9.822l-0.813-0.582l-7.035,9.822c-1.447,2.02-0.982,4.83,1.039,6.277c2.021,1.448,4.831,0.982,6.278-1.037l9.68-13.516C25.83,9.447,25.47,7.261,23.898,6.135z")}})},
1"./src/shape/icon/Clock.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Clock=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Clock",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.5,2.374C8.251,2.375,2.376,8.251,2.374,15.5C2.376,22.748,8.251,28.623,15.5,28.627c7.249-0.004,13.124-5.879,13.125-13.127C28.624,8.251,22.749,2.375,15.5,2.374zM15.5,25.623C9.909,25.615,5.385,21.09,5.375,15.5C5.385,9.909,9.909,5.384,15.5,5.374c5.59,0.01,10.115,4.535,10.124,10.125C25.615,21.09,21.091,25.615,15.5,25.623zM8.625,15.5c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,16.5,8.624,16.053,8.625,15.5zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.887,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM22.822,12.428c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,12.54,22.344,12.705,22.822,12.428zM12.062,21.455c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,22.344,12.54,21.732,12.062,21.455zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM22.823,18.572c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.092,0.367,1.367c0.477,0.275,1.089,0.113,1.365-0.365C23.464,19.461,23.3,18.848,22.823,18.572zM19.938,7.813c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM23.378,14.5c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,14.949,23.929,14.5,23.378,14.5zM15.501,6.624c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.365c0.275,0.479,0.889,0.643,1.365,0.367l3.305-1.676C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876C16.501,7.072,16.053,6.624,15.501,6.624zM15.501,22.377c-0.552,0-1,0.447-1,1s0.448,1,1,1s1-0.447,1-1S16.053,22.377,15.501,22.377zM18.939,21.455c-0.479,0.277-0.643,0.889-0.366,1.367c0.275,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.889,0.366-1.365C20.028,21.344,19.417,21.18,18.939,21.455z")}})},
1"./src/shape/icon/Cloud.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Cloud=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Cloud",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.345,13.904c0.019-0.195,0.03-0.392,0.03-0.591c0-3.452-2.798-6.25-6.25-6.25c-2.679,0-4.958,1.689-5.847,4.059c-0.589-0.646-1.429-1.059-2.372-1.059c-1.778,0-3.219,1.441-3.219,3.219c0,0.21,0.023,0.415,0.062,0.613c-2.372,0.391-4.187,2.436-4.187,4.918c0,2.762,2.239,5,5,5h15.875c2.762,0,5-2.238,5-5C28.438,16.362,26.672,14.332,24.345,13.904z")}})},
1"./src/shape/icon/Cloud2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Cloud2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Cloud2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M7.562,24.812c-3.313,0-6-2.687-6-6l0,0c0.002-2.659,1.734-4.899,4.127-5.684l0,0c0.083-2.26,1.937-4.064,4.216-4.066l0,0c0.73,0,1.415,0.19,2.01,0.517l0,0c1.266-2.105,3.57-3.516,6.208-3.517l0,0c3.947,0.002,7.157,3.155,7.248,7.079l0,0c2.362,0.804,4.062,3.034,4.064,5.671l0,0c0,3.313-2.687,6-6,6l0,0H7.562L7.562,24.812zM24.163,14.887c-0.511-0.095-0.864-0.562-0.815-1.079l0,0c0.017-0.171,0.027-0.336,0.027-0.497l0,0c-0.007-2.899-2.352-5.245-5.251-5.249l0,0c-2.249-0.002-4.162,1.418-4.911,3.41l0,0c-0.122,0.323-0.406,0.564-0.748,0.63l0,0c-0.34,0.066-0.694-0.052-0.927-0.309l0,0c-0.416-0.453-0.986-0.731-1.633-0.731l0,0c-1.225,0.002-2.216,0.993-2.22,2.218l0,0c0,0.136,0.017,0.276,0.045,0.424l0,0c0.049,0.266-0.008,0.54-0.163,0.762l0,0c-0.155,0.223-0.392,0.371-0.657,0.414l0,0c-1.9,0.313-3.352,1.949-3.35,3.931l0,0c0.004,2.209,1.792,3.995,4.001,4.001l0,0h15.874c2.209-0.006,3.994-1.792,3.999-4.001l0,0C27.438,16.854,26.024,15.231,24.163,14.887L24.163,14.887")}})},
1"./src/shape/icon/CloudDown.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.CloudDown=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.CloudDown",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.345,13.904c0.019-0.195,0.03-0.392,0.03-0.591c0-3.452-2.798-6.25-6.25-6.25c-2.679,0-4.958,1.689-5.847,4.059c-0.589-0.646-1.429-1.059-2.372-1.059c-1.778,0-3.219,1.441-3.219,3.219c0,0.21,0.023,0.415,0.062,0.613c-2.372,0.391-4.187,2.436-4.187,4.918c0,2.762,2.239,5,5,5h3.404l-0.707-0.707c-0.377-0.377-0.585-0.879-0.585-1.413c0-0.533,0.208-1.035,0.585-1.412l0.556-0.557c0.4-0.399,0.937-0.628,1.471-0.628c0.027,0,0.054,0,0.08,0.002v-0.472c0-1.104,0.898-2.002,2-2.002h3.266c1.103,0,2,0.898,2,2.002v0.472c0.027-0.002,0.054-0.002,0.081-0.002c0.533,0,1.07,0.229,1.47,0.63l0.557,0.552c0.78,0.781,0.78,2.05,0,2.828l-0.706,0.707h2.403c2.762,0,5-2.238,5-5C28.438,16.362,26.672,14.332,24.345,13.904z M21.033,20.986l-0.556-0.555c-0.39-0.389-0.964-0.45-1.276-0.137c-0.312,0.312-0.568,0.118-0.568-0.432v-1.238c0-0.55-0.451-1-1-1h-3.265c-0.55,0-1,0.45-1,1v1.238c0,0.55-0.256,0.744-0.569,0.432c-0.312-0.313-0.887-0.252-1.276,0.137l-0.556,0.555c-0.39,0.389-0.39,1.024-0.001,1.413l4.328,4.331c0.194,0.194,0.451,0.291,0.707,0.291s0.512-0.097,0.707-0.291l4.327-4.331C21.424,22.011,21.423,21.375,21.033,20.986z")}})},
1"./src/shape/icon/CloudUp.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.CloudUp=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.CloudUp",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.345,13.904c0.019-0.195,0.03-0.392,0.03-0.591c0-3.452-2.798-6.25-6.25-6.25c-2.679,0-4.958,1.689-5.847,4.059c-0.589-0.646-1.429-1.059-2.372-1.059c-1.778,0-3.219,1.441-3.219,3.219c0,0.21,0.023,0.415,0.062,0.613c-2.372,0.391-4.187,2.436-4.187,4.918c0,2.762,2.239,5,5,5h2.312c-0.126-0.266-0.2-0.556-0.2-0.859c0-0.535,0.208-1.04,0.587-1.415l4.325-4.329c0.375-0.377,0.877-0.585,1.413-0.585c0.54,0,1.042,0.21,1.417,0.587l4.323,4.329c0.377,0.373,0.585,0.878,0.585,1.413c0,0.304-0.073,0.594-0.2,0.859h1.312c2.762,0,5-2.238,5-5C28.438,16.362,26.672,14.332,24.345,13.904z M16.706,17.916c-0.193-0.195-0.45-0.291-0.706-0.291s-0.512,0.096-0.707,0.291l-4.327,4.33c-0.39,0.389-0.389,1.025,0.001,1.414l0.556,0.555c0.39,0.389,0.964,0.449,1.276,0.137s0.568-0.119,0.568,0.432v1.238c0,0.549,0.451,1,1,1h3.265c0.551,0,1-0.451,1-1v-1.238c0-0.551,0.256-0.744,0.569-0.432c0.312,0.312,0.887,0.252,1.276-0.137l0.556-0.555c0.39-0.389,0.39-1.025,0.001-1.414L16.706,17.916z")}})},
1"./src/shape/icon/Cloudy.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Cloudy=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Cloudy",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.378,6.781c0.41,0.988,1.938,0.346,1.524-0.648C15.708,5.667,15.515,5.2,15.32,4.734c-0.289-0.695-0.875-3.233-2.042-2.747c-1.03,0.433-0.128,1.846,0.142,2.494C13.739,5.248,14.059,6.015,14.378,6.781M20.8,7.223c1.094,0.453,1.538-1.551,1.813-2.216c0.281-0.677,1.478-2.565,0.357-3.029c-1.092-0.453-1.537,1.548-1.813,2.216C20.876,4.872,19.68,6.757,20.8,7.223M18.137,6.692c1.183,0,0.829-2.019,0.829-2.742c0-0.732,0.383-2.935-0.829-2.935c-1.183,0-0.828,2.019-0.828,2.742C17.309,4.49,16.926,6.692,18.137,6.692M23.058,8.729c0.852,0.85,2.142-0.972,2.659-1.49c0.512-0.513,2.187-1.687,1.352-2.524c-0.834-0.836-2.013,0.843-2.522,1.353C24.028,6.585,22.198,7.874,23.058,8.729M24.565,10.986c0.448,1.091,2.183-0.01,2.849-0.286c0.676-0.28,2.858-0.771,2.394-1.89c-0.455-1.091-2.181,0.008-2.849,0.285C26.281,9.377,24.102,9.866,24.565,10.986M12.036,8.742c0.752,0.75,1.932-0.415,1.17-1.173c-0.253-0.347-0.646-0.645-0.949-0.946c-0.541-0.539-2.162-2.799-3.068-1.889c-0.79,0.791,0.586,1.755,1.083,2.25C10.859,7.57,11.447,8.156,12.036,8.742M29.365,17.397c-0.768-0.317-1.534-0.635-2.302-0.952c-0.646-0.268-2.07-1.169-2.495-0.135c-0.481,1.168,2.054,1.747,2.751,2.035c0.455,0.188,0.911,0.377,1.367,0.565C29.7,19.331,30.379,17.816,29.365,17.397M29.942,12.817c-0.83,0-1.66,0-2.49,0c-0.701,0-2.357-0.288-2.355,0.83c0,1.262,2.567,0.827,3.319,0.827c0.493,0,0.986,0,1.479-0.001C30.99,14.473,31.043,12.815,29.942,12.817M24.234,18.568c-0.673-0.673-1.773,0.189-1.281,1.007c-0.295-0.264-0.614-0.499-0.961-0.69c3.894-2.866,3.328-9.006-1.021-11.107c-2.024-0.978-4.481-0.828-6.368,0.394c-0.871,0.564-1.603,1.336-2.119,2.236c-0.262,0.456-0.468,0.943-0.612,1.449c-0.074,0.258-0.131,0.521-0.172,0.786c-0.083,0.534-0.109,0.553-0.553,0.871c-0.182-0.957-1.64-0.675-2.326-0.674c-0.815,0.001-1.963-0.217-2.752,0.046c-0.867,0.289-0.652,1.615,0.263,1.613c0.324,0.052,0.701-0.001,1.028-0.001c0.904-0.001,1.809-0.002,2.713-0.003c-0.308,0.352-0.496,0.969-0.94,0.77c-0.467-0.209-0.978-0.319-1.49-0.319c-0.951,0-1.877,0.375-2.561,1.036c-0.681,0.658-1.088,1.569-1.123,2.516c-0.944,0.31-1.791,0.891-2.421,1.658c-2.756,3.354-0.265,8.554,4.058,8.554v-0.002c3.597,0,7.194,0,10.792,0c1.341,0,2.843,0.167,4.168-0.113c3.652-0.772,5.361-5.21,3.133-8.229c0.548,0.547,1.096,1.094,1.644,1.641c0.183,0.183,0.364,0.424,0.575,0.574c0.552,0.552,1.524,0.066,1.403-0.713c-0.097-0.622-1.042-1.267-1.448-1.673C25.319,19.652,24.776,19.11,24.234,18.568M18.137,8.787c4.559,0.009,6.576,5.979,2.912,8.734c-0.637-3.505-4.161-5.824-7.629-5.03C13.943,10.367,15.852,8.792,18.137,8.787M22.895,24.08c-0.633,3.346-4.149,2.879-6.68,2.879c-3.017,0-6.033,0-9.049,0c-0.767,0-1.62,0.084-2.373-0.095c-2.274-0.538-3.416-3.242-2.172-5.235c0.678-1.087,1.568-1.19,2.626-1.67c0.604-0.273,0.456-0.807,0.456-1.331c0.002-0.597,0.284-1.169,0.756-1.533c0.787-0.608,1.943-0.497,2.611,0.234c1.098,1.205,1.96-1.346,2.507-1.893c2.025-2.025,5.475-1.708,7.068,0.684c0.344,0.516,0.581,1.102,0.693,1.712c0.097,0.529-0.115,1.341,0.188,1.796c0.291,0.47,0.943,0.463,1.397,0.68c0.508,0.23,0.963,0.591,1.304,1.034C22.834,22.125,23.064,23.107,22.895,24.08M6.906,9.917c0.881,0.364,1.763,0.727,2.644,1.091c0.353,0.146,0.707,0.292,1.06,0.437c0.997,0.412,1.637-1.119,0.642-1.526C10.47,9.441,9.456,9.177,8.609,8.828c-0.354-0.146-0.707-0.292-1.06-0.437C6.554,7.98,5.912,9.505,6.906,9.917")}})},
1"./src/shape/icon/Code.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Code=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Code",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M8.982,7.107L0.322,15.77l8.661,8.662l3.15-3.15L6.621,15.77l5.511-5.511L8.982,7.107zM21.657,7.107l-3.148,3.151l5.511,5.511l-5.511,5.511l3.148,3.15l8.662-8.662L21.657,7.107z")}})},
1"./src/shape/icon/CodeTalk.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.CodeTalk=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.CodeTalk",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM13.704,19.47l-2.338,2.336l-6.43-6.431l6.429-6.432l2.339,2.341l-4.091,4.091L13.704,19.47zM20.775,21.803l-2.337-2.339l4.092-4.09l-4.092-4.092l2.337-2.339l6.43,6.426L20.775,21.803z")}})},
1"./src/shape/icon/CommandLine.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.CommandLine=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.CommandLine",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M2.021,9.748L2.021,9.748V9.746V9.748zM2.022,9.746l5.771,5.773l-5.772,5.771l2.122,2.123l7.894-7.895L4.143,7.623L2.022,9.746zM12.248,23.269h14.419V20.27H12.248V23.269zM16.583,17.019h10.084V14.02H16.583V17.019zM12.248,7.769v3.001h14.419V7.769H12.248z")}})},
1"./src/shape/icon/Connect.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Connect=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Connect",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.06,13.719c-0.944-5.172-5.461-9.094-10.903-9.094v4c3.917,0.006,7.085,3.176,7.094,7.094c-0.009,3.917-3.177,7.085-7.094,7.093v4.002c5.442-0.004,9.959-3.926,10.903-9.096h4.69v-3.999H25.06zM20.375,15.719c0-3.435-2.784-6.219-6.219-6.219c-2.733,0-5.05,1.766-5.884,4.218H1.438v4.001h6.834c0.833,2.452,3.15,4.219,5.884,4.219C17.591,21.938,20.375,19.153,20.375,15.719z")}})},
1"./src/shape/icon/Contract.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Contract=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Contract",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.083,18.895l-8.428-2.259l2.258,8.428l1.838-1.837l7.053,7.053l2.476-2.476l-7.053-7.053L25.083,18.895zM5.542,11.731l8.428,2.258l-2.258-8.428L9.874,7.398L3.196,0.72L0.72,3.196l6.678,6.678L5.542,11.731zM7.589,20.935l-6.87,6.869l2.476,2.476l6.869-6.869l1.858,1.857l2.258-8.428l-8.428,2.258L7.589,20.935zM23.412,10.064l6.867-6.87l-2.476-2.476l-6.868,6.869l-1.856-1.856l-2.258,8.428l8.428-2.259L23.412,10.064z")}})},
1"./src/shape/icon/Crop.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Crop=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Crop",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.303,21.707V8.275l4.48-4.421l-2.021-2.048l-4.126,4.07H8.761V2.083H5.882v3.793H1.8v2.877h4.083v15.832h15.542v4.609h2.878v-4.609H29.2v-2.878H24.303zM19.72,8.753L8.761,19.565V8.753H19.72zM10.688,21.706l10.735-10.591l0.001,10.592L10.688,21.706z")}})},
1"./src/shape/icon/Cross.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Cross=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Cross",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z")}})},
1"./src/shape/icon/Cube.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Cube=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Cube",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.5,3.029l-10.8,6.235L4.7,21.735L15.5,27.971l10.8-6.235V9.265L15.5,3.029zM24.988,10.599L16,15.789v10.378c0,0.275-0.225,0.5-0.5,0.5s-0.5-0.225-0.5-0.5V15.786l-8.987-5.188c-0.239-0.138-0.321-0.444-0.183-0.683c0.138-0.238,0.444-0.321,0.683-0.183l8.988,5.189l8.988-5.189c0.238-0.138,0.545-0.055,0.684,0.184C25.309,10.155,25.227,10.461,24.988,10.599z")}})},
1"./src/shape/icon/Customer.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Customer=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Customer",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.523,23.813c-0.518-0.51-6.795-2.938-7.934-3.396c-1.132-0.451-1.584-1.697-1.584-1.697s-0.51,0.282-0.51-0.51c0-0.793,0.51,0.51,1.021-2.548c0,0,1.414-0.397,1.133-3.68l-0.338,0.001c0,0,0.85-3.511,0-4.699c-0.854-1.188-1.188-1.981-3.062-2.548c-1.869-0.567-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.793-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.32s0.283,3.059,0.566,3.624l-0.337,0.112c-0.283,3.283,1.132,3.681,1.132,3.681c0.509,3.058,1.019,1.755,1.019,2.548c0,0.792-0.51,0.51-0.51,0.51s-0.452,1.246-1.584,1.697c-1.132,0.453-7.416,2.887-7.927,3.396c-0.511,0.521-0.453,2.896-0.453,2.896h12.036l0.878-3.459l-0.781-0.781l1.344-1.344l1.344,1.344l-0.781,0.781l0.879,3.459h12.035C28.977,26.709,29.039,24.332,28.523,23.813z")}})},
1"./src/shape/icon/Db.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Db=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Db",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.499,23.438c-3.846,0-7.708-0.987-9.534-3.117c-0.054,0.236-0.09,0.48-0.09,0.737v3.877c0,3.435,4.988,4.998,9.625,4.998s9.625-1.563,9.625-4.998v-3.877c0-0.258-0.036-0.501-0.09-0.737C23.209,22.451,19.347,23.438,15.499,23.438zM15.499,15.943c-3.846,0-7.708-0.987-9.533-3.117c-0.054,0.236-0.091,0.479-0.091,0.736v3.877c0,3.435,4.988,4.998,9.625,4.998s9.625-1.563,9.625-4.998v-3.877c0-0.257-0.036-0.501-0.09-0.737C23.209,14.956,19.347,15.943,15.499,15.943zM15.5,1.066c-4.637,0-9.625,1.565-9.625,5.001v3.876c0,3.435,4.988,4.998,9.625,4.998s9.625-1.563,9.625-4.998V6.067C25.125,2.632,20.137,1.066,15.5,1.066zM15.5,9.066c-4.211,0-7.625-1.343-7.625-3c0-1.656,3.414-3,7.625-3s7.625,1.344,7.625,3C23.125,7.724,19.711,9.066,15.5,9.066z")}})},
1"./src/shape/icon/Detour.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Detour=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Detour",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M29.342,15.5l-7.556-4.363v2.614H18.75c-1.441-0.004-2.423,1.002-2.875,1.784c-0.735,1.222-1.056,2.561-1.441,3.522c-0.135,0.361-0.278,0.655-0.376,0.817c-1.626,0-0.998,0-2.768,0c-0.213-0.398-0.571-1.557-0.923-2.692c-0.237-0.676-0.5-1.381-1.013-2.071C8.878,14.43,7.89,13.726,6.75,13.75H2.812v3.499c0,0,0.358,0,1.031,0h2.741c0.008,0.013,0.018,0.028,0.029,0.046c0.291,0.401,0.634,1.663,1.031,2.888c0.218,0.623,0.455,1.262,0.92,1.897c0.417,0.614,1.319,1.293,2.383,1.293H11c2.25,0,1.249,0,3.374,0c0.696,0.01,1.371-0.286,1.809-0.657c1.439-1.338,1.608-2.886,2.13-4.127c0.218-0.608,0.453-1.115,0.605-1.314c0.006-0.01,0.012-0.018,0.018-0.025h2.85v2.614L29.342,15.5zM10.173,14.539c0.568,0.76,0.874,1.559,1.137,2.311c0.04,0.128,0.082,0.264,0.125,0.399h2.58c0.246-0.697,0.553-1.479,1.005-2.228c0.252-0.438,0.621-0.887,1.08-1.272H9.43C9.735,14.003,9.99,14.277,10.173,14.539z")}})},
1"./src/shape/icon/Diagram.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.icon.Diagram=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Diagram",init:function(r,u,l){this._super((0,t.default)({width:50,height:50},r),u,l)},createSet:function(){return this.canvas.paper.path("M6.812,17.202l7.396-3.665v-2.164h-0.834c-0.414,0-0.808-0.084-1.167-0.237v1.159l-7.396,3.667v2.912h2V17.202zM26.561,18.875v-2.913l-7.396-3.666v-1.158c-0.358,0.152-0.753,0.236-1.166,0.236h-0.832l-0.001,2.164l7.396,3.666v1.672H26.561zM16.688,18.875v-7.501h-2v7.501H16.688zM27.875,19.875H23.25c-1.104,0-2,0.896-2,2V26.5c0,1.104,0.896,2,2,2h4.625c1.104,0,2-0.896,2-2v-4.625C29.875,20.771,28.979,19.875,27.875,19.875zM8.125,19.875H3.5c-1.104,0-2,0.896-2,2V26.5c0,1.104,0.896,2,2,2h4.625c1.104,0,2-0.896,2-2v-4.625C10.125,20.771,9.229,19.875,8.125,19.875zM13.375,10.375H18c1.104,0,2-0.896,2-2V3.75c0-1.104-0.896-2-2-2h-4.625c-1.104,0-2,0.896-2,2v4.625C11.375,9.479,12.271,10.375,13.375,10.375zM18,19.875h-4.625c-1.104,0-2,0.896-2,2V26.5c0,1.104,0.896,2,2,2H18c1.104,0,2-0.896,2-2v-4.625C20,20.771,19.104,19.875,18,19.875z")}})},
1"./src/shape/icon/Disconnect.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Disconnect=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Disconnect",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M9.219,9.5c-2.733,0-5.05,1.766-5.884,4.218H1.438v4.001h1.897c0.833,2.452,3.15,4.219,5.884,4.219c3.435,0,6.219-2.784,6.219-6.219S12.653,9.5,9.219,9.5zM27.685,13.719c-0.944-5.172-5.461-9.094-10.903-9.094v4c3.917,0.006,7.085,3.176,7.094,7.094c-0.009,3.917-3.177,7.085-7.094,7.093v4.002c5.442-0.004,9.959-3.926,10.903-9.096h2.065v-3.999H27.685z")}})},
1"./src/shape/icon/DockBottom.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.DockBottom=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.DockBottom",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M3.083,7.333v16.334h24.833V7.333H3.083zM24.915,16.833H6.083v-6.501h18.833L24.915,16.833L24.915,16.833z")}})},
1"./src/shape/icon/DockLeft.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.DockLeft=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.DockLeft",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M3.084,7.333v16.334h24.832V7.333H3.084z M11.667,10.332h13.251v10.336H11.667V10.332z")}})},
1"./src/shape/icon/DockRight.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.DockRight=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.DockRight",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M3.083,7.333v16.334h24.833V7.333H3.083z M19.333,20.668H6.083V10.332h13.25V20.668z")}})},
1"./src/shape/icon/DockTop.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.DockTop=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.DockTop",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M27.916,23.667V7.333H3.083v16.334H27.916zM24.915,20.668H6.083v-6.501h18.833L24.915,20.668L24.915,20.668z")}})},
1"./src/shape/icon/Download.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Download=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Download",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM16,28.792c-1.549,0-2.806-1.256-2.806-2.806s1.256-2.806,2.806-2.806c1.55,0,2.806,1.256,2.806,2.806S17.55,28.792,16,28.792zM16,21.087l-7.858-6.562h3.469V5.747h8.779v8.778h3.468L16,21.087z")}})},
1"./src/shape/icon/Dry.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Dry=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Dry",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.784,26.991c0,1.238-1.329,1.696-1.835,1.696c-0.504,0-1.536-0.413-1.65-1.812c0-0.354-0.288-0.642-0.644-0.642c-0.354,0-0.641,0.287-0.641,0.642c0.045,1.056,0.756,3.052,2.935,3.052c2.432,0,3.166-1.882,3.166-3.144v-8.176l-1.328-0.024C14.787,18.584,14.784,25.889,14.784,26.991zM15.584,9.804c-6.807,0-11.084,4.859-11.587,8.326c0.636-0.913,1.694-1.51,2.89-1.51c1.197,0,2.22,0.582,2.855,1.495c0.638-0.904,1.69-1.495,2.88-1.495c1.2,0,2.26,0.6,2.896,1.517c0.635-0.917,1.83-1.517,3.03-1.517c1.19,0,2.241,0.591,2.879,1.495c0.636-0.913,1.659-1.495,2.855-1.495c1.197,0,2.254,0.597,2.89,1.51C26.669,14.663,22.393,9.804,15.584,9.804zM14.733,7.125v2.081h1.323V7.125c0-0.365-0.296-0.661-0.661-0.661C15.029,6.464,14.733,6.76,14.733,7.125zM7.562,6.015c0.54,0.312,1.229,0.128,1.54-0.412c0.109-0.189,0.157-0.398,0.15-0.602L9.251,3.09L7.59,4.047c-0.178,0.095-0.333,0.24-0.441,0.428C6.837,5.015,7.022,5.703,7.562,6.015zM5.572,11.717c0.109-0.19,0.158-0.398,0.151-0.602L5.721,9.203l-1.66,0.957c-0.178,0.096-0.333,0.241-0.441,0.429c-0.311,0.539-0.127,1.229,0.413,1.539C4.571,12.44,5.26,12.256,5.572,11.717zM10.523,9.355c0.539,0.312,1.229,0.126,1.541-0.412c0.109-0.189,0.156-0.398,0.15-0.603L12.214,6.43l-1.662,0.956c-0.177,0.097-0.332,0.241-0.441,0.43C9.799,8.354,9.984,9.044,10.523,9.355zM15.251,3.998c0.539,0.312,1.229,0.126,1.54-0.412c0.11-0.19,0.157-0.398,0.15-0.603L16.94,1.072l-1.661,0.956c-0.178,0.097-0.332,0.242-0.441,0.43C14.526,2.998,14.711,3.687,15.251,3.998zM19.348,8.914c0.539,0.312,1.228,0.128,1.541-0.412c0.109-0.189,0.156-0.398,0.149-0.602h-0.001V5.988l-1.661,0.957c-0.178,0.096-0.332,0.241-0.441,0.429C18.623,7.914,18.809,8.603,19.348,8.914zM23.633,5.196c0.54,0.312,1.23,0.126,1.542-0.413c0.109-0.189,0.156-0.398,0.149-0.602h-0.001V2.27l-1.662,0.957c-0.177,0.096-0.331,0.24-0.44,0.43C22.909,4.195,23.094,4.885,23.633,5.196zM27.528,8.51l-1.659,0.956c-0.18,0.097-0.334,0.242-0.443,0.43c-0.312,0.539-0.127,1.229,0.413,1.54c0.539,0.312,1.229,0.127,1.541-0.412c0.109-0.19,0.158-0.398,0.151-0.603L27.528,8.51z")}})},
1"./src/shape/icon/Employee.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Employee=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Employee",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.523,23.813c-0.518-0.51-6.795-2.938-7.934-3.396c-1.132-0.451-1.584-1.697-1.584-1.697s-0.51,0.282-0.51-0.51c0-0.793,0.51,0.51,1.021-2.548c0,0,1.414-0.397,1.133-3.68l-0.338,0.001c0,0,0.85-3.511,0-4.699c-0.854-1.188-1.188-1.981-3.062-2.548c-1.869-0.567-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.793-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.32s0.283,3.059,0.566,3.624l-0.337,0.112c-0.283,3.283,1.132,3.681,1.132,3.681c0.509,3.058,1.019,1.755,1.019,2.548c0,0.792-0.51,0.51-0.51,0.51s-0.452,1.246-1.584,1.697c-1.132,0.453-7.416,2.887-7.927,3.396c-0.511,0.521-0.453,2.896-0.453,2.896h26.954C28.977,26.709,29.039,24.332,28.523,23.813zM22.188,26.062h-4.562v-1.25h4.562V26.062z")}})},
1"./src/shape/icon/End.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.End=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.End",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.167,5.5,21.167,13.681,6.684,5.318,6.684,25.682,21.167,17.318,21.167,25.5,25.5,25.5,25.5,5.5z")}})},
1"./src/shape/icon/Ethernet.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Ethernet=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Ethernet",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M22.5,8.5v3.168l3.832,3.832L22.5,19.332V22.5l7-7L22.5,8.5zM8.5,22.5v-3.168L4.667,15.5L8.5,11.668V8.5l-7,7L8.5,22.5zM15.5,14.101c-0.928,0-1.68,0.751-1.68,1.68c0,0.927,0.752,1.681,1.68,1.681c0.927,0,1.68-0.754,1.68-1.681C17.18,14.852,16.427,14.101,15.5,14.101zM10.46,14.101c-0.928,0-1.68,0.751-1.68,1.68c0,0.927,0.752,1.681,1.68,1.681s1.68-0.754,1.68-1.681C12.14,14.852,11.388,14.101,10.46,14.101zM20.541,14.101c-0.928,0-1.682,0.751-1.682,1.68c0,0.927,0.754,1.681,1.682,1.681s1.68-0.754,1.68-1.681C22.221,14.852,21.469,14.101,20.541,14.101z")}})},
1"./src/shape/icon/Exchange.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Exchange=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Exchange",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.786,12.876l7.556-4.363l-7.556-4.363v2.598H2.813v3.5h18.973V12.876zM10.368,18.124l-7.556,4.362l7.556,4.362V24.25h18.974v-3.501H10.368V18.124z")}})},
1"./src/shape/icon/Expand.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Expand=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Expand",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.545,23.328,17.918,15.623,25.534,8.007,27.391,9.864,29.649,1.436,21.222,3.694,23.058,5.53,15.455,13.134,7.942,5.543,9.809,3.696,1.393,1.394,3.608,9.833,5.456,8.005,12.98,15.608,5.465,23.123,3.609,21.268,1.351,29.695,9.779,27.438,7.941,25.6,15.443,18.098,23.057,25.791,21.19,27.638,29.606,29.939,27.393,21.5z")}})},
1"./src/shape/icon/Export.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Export=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Export",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.086,20.904c-1.805,3.113-5.163,5.212-9.023,5.219c-5.766-0.01-10.427-4.672-10.438-10.435C4.636,9.922,9.297,5.261,15.063,5.25c3.859,0.007,7.216,2.105,9.022,5.218l3.962,2.284l0.143,0.082C26.879,6.784,21.504,2.25,15.063,2.248C7.64,2.25,1.625,8.265,1.624,15.688c0.002,7.42,6.017,13.435,13.439,13.437c6.442-0.002,11.819-4.538,13.127-10.589l-0.141,0.081L24.086,20.904zM28.4,15.688l-7.15-4.129v2.297H10.275v3.661H21.25v2.297L28.4,15.688z")}})},
1"./src/shape/icon/Fave.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Fave=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Fave",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.132,7.971c-2.203-2.205-5.916-2.098-8.25,0.235L15.5,8.588l-0.382-0.382c-2.334-2.333-6.047-2.44-8.25-0.235c-2.204,2.203-2.098,5.916,0.235,8.249l8.396,8.396l8.396-8.396C26.229,13.887,26.336,10.174,24.132,7.971z")}})},
1"./src/shape/icon/Feed.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Feed=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Feed",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M4.135,16.762c3.078,0,5.972,1.205,8.146,3.391c2.179,2.187,3.377,5.101,3.377,8.202h4.745c0-9.008-7.299-16.335-16.269-16.335V16.762zM4.141,8.354c10.973,0,19.898,8.975,19.898,20.006h4.743c0-13.646-11.054-24.749-24.642-24.749V8.354zM10.701,25.045c0,1.815-1.471,3.287-3.285,3.287s-3.285-1.472-3.285-3.287c0-1.813,1.471-3.285,3.285-3.285S10.701,23.231,10.701,25.045z")}})},
1"./src/shape/icon/Ff.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Ff=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Ff",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.5,15.5,15.2,9.552,15.2,15.153,5.5,9.552,5.5,21.447,15.2,15.847,15.2,21.447z")}})},
1"./src/shape/icon/Firefox.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Firefox=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Firefox",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.4,22.469c0.479-0.964,0.851-1.991,1.095-3.066c0.953-3.661,0.666-6.854,0.666-6.854l-0.327,2.104c0,0-0.469-3.896-1.044-5.353c-0.881-2.231-1.273-2.214-1.274-2.21c0.542,1.379,0.494,2.169,0.483,2.288c-0.01-0.016-0.019-0.032-0.027-0.047c-0.131-0.324-0.797-1.819-2.225-2.878c-2.502-2.481-5.943-4.014-9.745-4.015c-4.056,0-7.705,1.745-10.238,4.525C5.444,6.5,5.183,5.938,5.159,5.317c0,0-0.002,0.002-0.006,0.005c0-0.011-0.003-0.021-0.003-0.031c0,0-1.61,1.247-1.436,4.612c-0.299,0.574-0.56,1.172-0.777,1.791c-0.375,0.817-0.75,2.004-1.059,3.746c0,0,0.133-0.422,0.399-0.988c-0.064,0.482-0.103,0.971-0.116,1.467c-0.09,0.845-0.118,1.865-0.039,3.088c0,0,0.032-0.406,0.136-1.021c0.834,6.854,6.667,12.165,13.743,12.165l0,0c1.86,0,3.636-0.37,5.256-1.036C24.938,27.771,27.116,25.196,28.4,22.469zM16.002,3.356c2.446,0,4.73,0.68,6.68,1.86c-2.274-0.528-3.433-0.261-3.423-0.248c0.013,0.015,3.384,0.589,3.981,1.411c0,0-1.431,0-2.856,0.41c-0.065,0.019,5.242,0.663,6.327,5.966c0,0-0.582-1.213-1.301-1.42c0.473,1.439,0.351,4.17-0.1,5.528c-0.058,0.174-0.118-0.755-1.004-1.155c0.284,2.037-0.018,5.268-1.432,6.158c-0.109,0.07,0.887-3.189,0.201-1.93c-4.093,6.276-8.959,2.539-10.934,1.208c1.585,0.388,3.267,0.108,4.242-0.559c0.982-0.672,1.564-1.162,2.087-1.047c0.522,0.117,0.87-0.407,0.464-0.872c-0.405-0.466-1.392-1.105-2.725-0.757c-0.94,0.247-2.107,1.287-3.886,0.233c-1.518-0.899-1.507-1.63-1.507-2.095c0-0.366,0.257-0.88,0.734-1.028c0.58,0.062,1.044,0.214,1.537,0.466c0.005-0.135,0.006-0.315-0.001-0.519c0.039-0.077,0.015-0.311-0.047-0.596c-0.036-0.287-0.097-0.582-0.19-0.851c0.01-0.002,0.017-0.007,0.021-0.021c0.076-0.344,2.147-1.544,2.299-1.659c0.153-0.114,0.55-0.378,0.506-1.183c-0.015-0.265-0.058-0.294-2.232-0.286c-0.917,0.003-1.425-0.894-1.589-1.245c0.222-1.231,0.863-2.11,1.919-2.704c0.02-0.011,0.015-0.021-0.008-0.027c0.219-0.127-2.524-0.006-3.76,1.604C9.674,8.045,9.219,7.95,8.71,7.95c-0.638,0-1.139,0.07-1.603,0.187c-0.05,0.013-0.122,0.011-0.208-0.001C6.769,8.04,6.575,7.88,6.365,7.672c0.161-0.18,0.324-0.356,0.495-0.526C9.201,4.804,12.43,3.357,16.002,3.356z")}})},
1"./src/shape/icon/Flag.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Flag=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Flag",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M26.04,9.508c0.138-0.533,0.15-1.407,0.028-1.943l-0.404-1.771c-0.122-0.536-0.665-1.052-1.207-1.146l-3.723-0.643c-0.542-0.094-1.429-0.091-1.97,0.007l-4.033,0.726c-0.542,0.098-1.429,0.108-1.973,0.023L8.812,4.146C8.817,4.165,8.826,4.182,8.83,4.201l2.701,12.831l1.236,0.214c0.542,0.094,1.428,0.09,1.97-0.007l4.032-0.727c0.541-0.097,1.429-0.107,1.973-0.022l4.329,0.675c0.544,0.085,0.906-0.288,0.807-0.829l-0.485-2.625c-0.1-0.541-0.069-1.419,0.068-1.952L26.04,9.508zM6.667,3.636C6.126,3.75,5.78,4.279,5.894,4.819l5.763,27.378H13.7L7.852,4.409C7.736,3.867,7.207,3.521,6.667,3.636z")}})},
1"./src/shape/icon/Flickr.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Flickr=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Flickr",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.77,8.895c-2.379,0-4.479,1.174-5.77,2.969c-1.289-1.795-3.39-2.969-5.77-2.969c-3.924,0-7.105,3.181-7.105,7.105c0,3.924,3.181,7.105,7.105,7.105c2.379,0,4.48-1.175,5.77-2.97c1.29,1.795,3.391,2.97,5.77,2.97c3.925,0,7.105-3.182,7.105-7.105C28.875,12.075,25.694,8.895,21.77,8.895zM21.769,21.822c-3.211,0-5.821-2.61-5.821-5.821c0-3.213,2.61-5.824,5.821-5.824c3.213,0,5.824,2.611,5.824,5.824C27.593,19.212,24.981,21.822,21.769,21.822z")}})},
1"./src/shape/icon/Folder.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Folder=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Folder",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.625,26.75h-26.5V8.375h1.124c1.751,0,0.748-3.125,3-3.125c3.215,0,1.912,0,5.126,0c2.251,0,1.251,3.125,3.001,3.125h14.25V26.75z")}})},
1"./src/shape/icon/Font.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Font=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Font",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M22.255,19.327l-1.017,0.131c-0.609,0.081-1.067,0.208-1.375,0.382c-0.521,0.293-0.779,0.76-0.779,1.398c0,0.484,0.178,0.867,0.532,1.146c0.354,0.28,0.774,0.421,1.262,0.421c0.593,0,1.164-0.138,1.72-0.412c0.938-0.453,1.4-1.188,1.4-2.229v-1.354c-0.205,0.131-0.469,0.229-0.792,0.328C22.883,19.229,22.564,19.29,22.255,19.327zM8.036,18.273h4.309l-2.113-6.063L8.036,18.273zM28.167,7.75H3.168c-0.552,0-1,0.448-1,1v16.583c0,0.553,0.448,1,1,1h24.999c0.554,0,1-0.447,1-1V8.75C29.167,8.198,28.721,7.75,28.167,7.75zM14.305,23.896l-1.433-4.109H7.488L6,23.896H4.094L9.262,10.17h2.099l4.981,13.727H14.305L14.305,23.896zM26.792,23.943c-0.263,0.074-0.461,0.121-0.599,0.141c-0.137,0.02-0.323,0.027-0.562,0.027c-0.579,0-0.999-0.204-1.261-0.615c-0.138-0.219-0.231-0.525-0.29-0.926c-0.344,0.449-0.834,0.839-1.477,1.169c-0.646,0.329-1.354,0.493-2.121,0.493c-0.928,0-1.688-0.28-2.273-0.844c-0.589-0.562-0.884-1.271-0.884-2.113c0-0.928,0.29-1.646,0.868-2.155c0.578-0.511,1.34-0.824,2.279-0.942l2.682-0.336c0.388-0.05,0.646-0.211,0.775-0.484c0.063-0.146,0.104-0.354,0.104-0.646c0-0.575-0.203-0.993-0.604-1.252c-0.408-0.26-0.99-0.389-1.748-0.389c-0.877,0-1.5,0.238-1.865,0.713c-0.205,0.263-0.34,0.654-0.399,1.174H17.85c0.031-1.237,0.438-2.097,1.199-2.582c0.77-0.484,1.659-0.726,2.674-0.726c1.176,0,2.131,0.225,2.864,0.673c0.729,0.448,1.093,1.146,1.093,2.093v5.766c0,0.176,0.035,0.313,0.106,0.422c0.071,0.104,0.223,0.156,0.452,0.156c0.076,0,0.16-0.005,0.254-0.015c0.093-0.011,0.191-0.021,0.299-0.041L26.792,23.943L26.792,23.943z")}})},
1"./src/shape/icon/Fork.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Fork=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Fork",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M13.741,10.249h8.045v2.627l7.556-4.363l-7.556-4.363v2.598H9.826C11.369,7.612,12.616,8.922,13.741,10.249zM21.786,20.654c-0.618-0.195-1.407-0.703-2.291-1.587c-1.79-1.756-3.712-4.675-5.731-7.227c-2.049-2.486-4.159-4.972-7.451-5.091h-3.5v3.5h3.5c0.656-0.027,1.683,0.486,2.879,1.683c1.788,1.753,3.712,4.674,5.731,7.226c1.921,2.331,3.907,4.639,6.863,5.016v2.702l7.556-4.362l-7.556-4.362V20.654z")}})},
1"./src/shape/icon/ForkAlt.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ForkAlt=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ForkAlt",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.786,12.873l7.556-4.361l-7.556-4.362v2.701c-2.929,0.374-4.905,2.64-6.809,4.952c0.545,0.703,1.08,1.418,1.604,2.127c0.192,0.26,0.383,0.514,0.573,0.77c0.802-1.043,1.584-1.999,2.341-2.74c0.884-0.885,1.673-1.393,2.291-1.588V12.873zM17.661,17.006c-1.893-2.371-3.815-5.354-6.009-7.537c-1.461-1.428-3.155-2.664-5.34-2.693h-3.5v3.5h3.5c0.971-0.119,2.845,1.333,4.712,3.771c1.895,2.371,3.815,5.354,6.011,7.537c1.326,1.297,2.847,2.426,4.751,2.645v2.646l7.556-4.363l-7.556-4.362v2.535C20.746,20.346,19.205,19.022,17.661,17.006z")}})},
1"./src/shape/icon/FullCube.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.FullCube=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.FullCube",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.5,3.029l-10.8,6.235L4.7,21.735L15.5,27.971l10.8-6.235V9.265L15.5,3.029zM15.5,7.029l6.327,3.652L15.5,14.334l-6.326-3.652L15.5,7.029zM24.988,10.599L16,15.789v10.378c0,0.275-0.225,0.5-0.5,0.5s-0.5-0.225-0.5-0.5V15.786l-8.987-5.188c-0.239-0.138-0.321-0.444-0.183-0.683c0.138-0.238,0.444-0.321,0.683-0.183l8.988,5.189l8.988-5.189c0.238-0.138,0.545-0.055,0.684,0.184C25.309,10.155,25.227,10.461,24.988,10.599z")}})},
1"./src/shape/icon/Future.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Future=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Future",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M17.001,15.5l-0.5-7.876c0-0.552-0.448-1-1-1c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.89-0.365,1.365c0.275,0.479,0.889,0.644,1.365,0.367l3.305-1.677C15.39,16.99,15.444,17,15.501,17C16.329,17,17.001,16.329,17.001,15.5zM18.939,21.455c-0.479,0.277-0.644,0.889-0.366,1.367c0.274,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.89,0.365-1.365C20.027,21.344,19.417,21.18,18.939,21.455zM19.938,7.813c-0.477-0.276-1.09-0.111-1.364,0.366c-0.275,0.48-0.111,1.091,0.366,1.367c0.477,0.276,1.088,0.112,1.365-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM21.823,20.305c0.477,0.274,1.089,0.112,1.364-0.365c0.276-0.479,0.112-1.092-0.364-1.367c-0.48-0.275-1.093-0.111-1.367,0.365C21.182,19.416,21.344,20.029,21.823,20.305zM22.822,12.428c0.478-0.275,0.643-0.888,0.365-1.366c-0.274-0.478-0.89-0.642-1.365-0.366c-0.479,0.278-0.643,0.89-0.366,1.367S22.344,12.705,22.822,12.428zM24.378,15.5c0-0.551-0.448-1-1-1c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1C23.93,16.5,24.378,16.053,24.378,15.5zM9.546,12.062c0.275-0.478,0.111-1.089-0.366-1.366c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366C8.658,12.704,9.269,12.541,9.546,12.062zM6.624,15.5c0,0.553,0.449,1,1,1c0.552,0,1-0.447,1.001-1c-0.001-0.552-0.448-0.999-1.001-1C7.071,14.5,6.624,14.948,6.624,15.5zM9.179,20.305c0.479-0.275,0.643-0.888,0.367-1.367c-0.276-0.477-0.888-0.641-1.367-0.365c-0.478,0.277-0.642,0.889-0.365,1.367C8.089,20.418,8.703,20.58,9.179,20.305zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM14.501,23.377c0,0.553,0.448,1,1,1c0.552,0,1-0.447,1-1s-0.448-1-1-1C14.949,22.377,14.501,22.824,14.501,23.377zM10.696,21.822c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.276,1.091,0.11,1.365-0.365c0.277-0.479,0.113-1.09-0.365-1.367C11.584,21.18,10.973,21.344,10.696,21.822zM28.674,14.087l-3.27-1.186c0.291,1.105,0.41,2.274,0.309,3.478c-0.492,5.639-5.449,9.809-11.091,9.333c-5.639-0.495-9.809-5.45-9.333-11.09c0.494-5.641,5.449-9.812,11.089-9.335c2.428,0.212,4.567,1.266,6.194,2.833l-1.637,1.377l7.031,2.548l-1.309-7.364l-1.771,1.492c-2.133-2.151-4.996-3.597-8.25-3.877C9.346,1.67,2.926,7.072,2.297,14.364c-0.625,7.291,4.777,13.71,12.066,14.339c7.293,0.625,13.713-4.776,14.342-12.066C28.779,15.771,28.762,14.919,28.674,14.087z")}})},
1"./src/shape/icon/GRaphael.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.GRaphael=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.GRaphael",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.833,15.709c0-1.477-0.574-2.862-1.617-3.904l-7.002-7.001l-0.003,0.002c-1.027-1.03-2.445-1.62-3.9-1.62c-1.455,0-2.871,0.59-3.9,1.621l-0.002-0.002l-7,7C4.376,12.836,3.79,14.25,3.79,15.709s0.586,2.873,1.619,3.902l6.312,6.312c0.253,0.285,0.519,0.556,0.8,0.8c1.049,0.989,2.463,1.534,3.908,1.51c1.417-0.021,2.783-0.604,3.785-1.604l6.812-6.812c0.021-0.021,0.035-0.029,0.062-0.062l0.143-0.146c0.271-0.271,0.484-0.562,0.725-0.86l-0.012-0.002C28.516,17.85,28.833,16.805,28.833,15.709zM18.77,25.17c-1.121,1.119-2.917,1.336-4.271,0.514l0.002-0.002c-0.213-0.145-0.414-0.303-0.61-0.471c-0.016-0.016-7.04-7.041-7.04-7.041c-1.34-1.34-1.342-3.584,0-4.92l7-6.998c1.121-1.121,2.908-1.338,4.259-0.512v0.002c0.213,0.141,0.414,0.299,0.604,0.467c0.021,0.016,7.053,7.043,7.053,7.043c0.396,0.388,0.655,0.852,0.818,1.348l-2.607,0.006c-0.537-3.754-3.769-6.641-7.667-6.641c-4.277,0-7.744,3.468-7.745,7.746c0.001,4.277,3.468,7.744,7.745,7.744c3.917,0,7.156-2.91,7.668-6.688l2.638-0.021c-0.16,0.521-0.441,1.02-0.849,1.412L18.77,25.17zM16.312,16.789c0.002,0,0.002,0,0.004,0l5.476-0.02c-0.5,2.562-2.76,4.518-5.48,4.521c-3.084-0.004-5.578-2.5-5.584-5.582c0.006-3.084,2.5-5.58,5.584-5.584c2.708,0.004,4.959,1.929,5.472,4.484l-5.476,0.018c-0.596,0.002-1.078,0.488-1.076,1.084C15.233,16.308,15.715,16.789,16.312,16.789z")}})},
1"./src/shape/icon/Gear.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Gear=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Gear",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M26.974,16.514l3.765-1.991c-0.074-0.738-0.217-1.454-0.396-2.157l-4.182-0.579c-0.362-0.872-0.84-1.681-1.402-2.423l1.594-3.921c-0.524-0.511-1.09-0.977-1.686-1.406l-3.551,2.229c-0.833-0.438-1.73-0.77-2.672-0.984l-1.283-3.976c-0.364-0.027-0.728-0.056-1.099-0.056s-0.734,0.028-1.099,0.056l-1.271,3.941c-0.967,0.207-1.884,0.543-2.738,0.986L7.458,4.037C6.863,4.466,6.297,4.932,5.773,5.443l1.55,3.812c-0.604,0.775-1.11,1.629-1.49,2.55l-4.05,0.56c-0.178,0.703-0.322,1.418-0.395,2.157l3.635,1.923c0.041,1.013,0.209,1.994,0.506,2.918l-2.742,3.032c0.319,0.661,0.674,1.303,1.085,1.905l4.037-0.867c0.662,0.72,1.416,1.351,2.248,1.873l-0.153,4.131c0.663,0.299,1.352,0.549,2.062,0.749l2.554-3.283C15.073,26.961,15.532,27,16,27c0.507,0,1.003-0.046,1.491-0.113l2.567,3.301c0.711-0.2,1.399-0.45,2.062-0.749l-0.156-4.205c0.793-0.513,1.512-1.127,2.146-1.821l4.142,0.889c0.411-0.602,0.766-1.243,1.085-1.905l-2.831-3.131C26.778,18.391,26.93,17.467,26.974,16.514zM20.717,21.297l-1.785,1.162l-1.098-1.687c-0.571,0.22-1.186,0.353-1.834,0.353c-2.831,0-5.125-2.295-5.125-5.125c0-2.831,2.294-5.125,5.125-5.125c2.83,0,5.125,2.294,5.125,5.125c0,1.414-0.573,2.693-1.499,3.621L20.717,21.297z")}})},
1"./src/shape/icon/Gear2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Gear2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Gear2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M17.047,27.945c-0.34,0.032-0.688,0.054-1.046,0.054l0,0c-0.32,0-0.631-0.017-0.934-0.043l0,0l-2.626,3.375l-0.646-0.183c-0.758-0.213-1.494-0.48-2.202-0.8l0,0L8.979,30.07l0.158-4.24c-0.558-0.39-1.079-0.825-1.561-1.302l0,0L3.424,25.42l-0.379-0.557c-0.445-0.654-0.824-1.339-1.16-2.032l0,0l-0.292-0.605l2.819-3.12c-0.176-0.661-0.293-1.343-0.353-2.038l0,0l-3.736-1.975l0.068-0.669c0.08-0.801,0.235-1.567,0.42-2.303l0,0l0.165-0.653l4.167-0.577c0.297-0.627,0.647-1.221,1.041-1.78l0,0l-1.59-3.914l0.48-0.47c0.564-0.55,1.168-1.048,1.798-1.503l0,0l0.546-0.394l3.597,2.259c0.606-0.279,1.24-0.509,1.897-0.685l0,0l1.304-4.046l0.672-0.051c0.362-0.027,0.751-0.058,1.174-0.058l0,0c0.422,0,0.81,0.031,1.172,0.058l0,0l0.672,0.051l1.318,4.088c0.632,0.176,1.244,0.401,1.831,0.674l0,0l3.647-2.291l0.548,0.394c0.63,0.455,1.235,0.954,1.798,1.501l0,0l0.482,0.47l-1.639,4.031c0.357,0.519,0.679,1.068,0.954,1.646l0,0l4.297,0.595l0.167,0.653c0.188,0.735,0.342,1.501,0.42,2.303l0,0l0.068,0.669l-3.866,2.044c-0.058,0.634-0.161,1.258-0.315,1.866l0,0l2.913,3.218l-0.293,0.608c-0.335,0.695-0.712,1.382-1.159,2.034l0,0l-0.379,0.555l-4.255-0.912c-0.451,0.451-0.939,0.866-1.461,1.241l0,0l0.162,4.323l-0.615,0.278c-0.709,0.319-1.444,0.587-2.202,0.8l0,0l-0.648,0.183L17.047,27.945L17.047,27.945zM20.424,29.028c0.227-0.076,0.45-0.157,0.671-0.244l0,0l-0.152-4.083l0.479-0.307c0.717-0.466,1.37-1.024,1.95-1.658l0,0l0.386-0.423l4.026,0.862c0.121-0.202,0.238-0.409,0.351-0.62l0,0l-2.754-3.045l0.171-0.544c0.243-0.783,0.381-1.623,0.422-2.5l0,0l0.025-0.571l3.658-1.933c-0.038-0.234-0.082-0.467-0.132-0.7l0,0l-4.07-0.563l-0.219-0.527c-0.327-0.787-0.76-1.524-1.277-2.204l0,0l-0.342-0.453l1.548-3.808c-0.179-0.157-0.363-0.31-0.552-0.458l0,0l-3.455,2.169L20.649,7.15c-0.754-0.397-1.569-0.698-2.429-0.894l0,0l-0.556-0.127l-1.248-3.87c-0.121-0.006-0.239-0.009-0.354-0.009l0,0c-0.117,0-0.235,0.003-0.357,0.009l0,0l-1.239,3.845l-0.564,0.12c-0.875,0.188-1.709,0.494-2.486,0.896l0,0l-0.508,0.264L7.509,5.249c-0.188,0.148-0.372,0.301-0.55,0.458l0,0l1.507,3.708L8.112,9.869c-0.552,0.709-1.011,1.485-1.355,2.319l0,0l-0.218,0.529l-3.939,0.545c-0.05,0.233-0.094,0.466-0.131,0.7l0,0l3.531,1.867l0.022,0.575c0.037,0.929,0.192,1.82,0.459,2.653l0,0l0.175,0.548l-2.667,2.95c0.112,0.212,0.229,0.419,0.351,0.621l0,0l3.916-0.843l0.39,0.423c0.601,0.657,1.287,1.229,2.043,1.703l0,0l0.488,0.305l-0.149,4.02c0.221,0.087,0.445,0.168,0.672,0.244l0,0l2.479-3.188l0.566,
10.07c0.427,0.054,0.843,0.089,1.257,0.089l0,0c0.445,0,0.894-0.039,1.353-0.104l0,0l0.571-0.08L20.424,29.028L20.424,29.028zM21.554,20.75l0.546,0.839l-3.463,2.253l-1.229-1.891l0,0c-0.447,0.109-0.917,0.173-1.406,0.173l0,0c-3.384,0-6.126-2.743-6.126-6.123l0,0c0-3.384,2.742-6.126,6.126-6.126l0,0c3.38,0,6.123,2.742,6.123,6.126l0,0c0,1.389-0.467,2.676-1.25,3.704l0,0L21.554,20.75M19.224,21.073l0.108-0.069l-0.987-1.519l0.572-0.572c0.748-0.75,1.207-1.773,1.207-2.912l0,0c-0.004-2.278-1.848-4.122-4.123-4.126l0,0c-2.28,0.004-4.122,1.846-4.126,4.126l0,0c0.004,2.275,1.848,4.119,4.126,4.123l0,0c0.509,0,0.999-0.104,1.473-0.286l0,0l0.756-0.29L19.224,21.073L19.224,21.073z")}})},
1"./src/shape/icon/GitHub.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.GitHub=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.GitHub",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.436,15.099c-1.201-0.202-2.451-0.335-3.466-0.371l-0.179-0.006c0.041-0.09,0.072-0.151,0.082-0.16c0.022-0.018,0.04-0.094,0.042-0.168c0-0.041,0.018-0.174,0.046-0.35c0.275,0.01,0.64,0.018,1.038,0.021c1.537,0.012,3.145,0.136,4.248,0.331c0.657,0.116,0.874,0.112,0.389-0.006c-0.491-0.119-1.947-0.294-3.107-0.37c-0.779-0.053-1.896-0.073-2.554-0.062c0.019-0.114,0.041-0.241,0.064-0.371c0.093-0.503,0.124-1.009,0.126-2.016c0.002-1.562-0.082-1.992-0.591-3.025c-0.207-0.422-0.441-0.78-0.724-1.104c0.247-0.729,0.241-1.858-0.015-2.848c-0.211-0.812-0.285-0.864-1.021-0.708C22.19,4.019,21.69,4.2,21.049,4.523c-0.303,0.153-0.721,0.391-1.024,0.578c-0.79-0.278-1.607-0.462-2.479-0.561c-0.884-0.1-3.051-0.044-3.82,0.098c-0.752,0.139-1.429,0.309-2.042,0.511c-0.306-0.189-0.75-0.444-1.067-0.604C9.973,4.221,9.473,4.041,8.847,3.908c-0.734-0.157-0.81-0.104-1.02,0.708c-0.26,1.003-0.262,2.151-0.005,2.878C7.852,7.577,7.87,7.636,7.877,7.682c-1.042,1.312-1.382,2.78-1.156,4.829c0.059,0.534,0.15,1.024,0.277,1.473c-0.665-0.004-1.611,0.02-2.294,0.064c-1.162,0.077-2.618,0.25-3.109,0.369c-0.484,0.118-0.269,0.122,0.389,0.007c1.103-0.194,2.712-0.32,4.248-0.331c0.29-0.001,0.561-0.007,0.794-0.013c0.07,0.237,0.15,0.463,0.241,0.678L7.26,14.759c-1.015,0.035-2.264,0.168-3.465,0.37c-0.901,0.151-2.231,0.453-2.386,0.54c-0.163,0.091-0.03,0.071,0.668-0.106c1.273-0.322,2.928-0.569,4.978-0.741l0.229-0.02c0.44,1.022,1.118,1.802,2.076,2.41c0.586,0.373,1.525,0.756,1.998,0.816c0.13,0.016,0.508,0.094,0.84,0.172c0.333,0.078,0.984,0.195,1.446,0.262h0.011c-0.009,0.006-0.017,0.01-0.025,0.016c-0.56,0.291-0.924,0.744-1.169,1.457c-0.11,0.033-0.247,0.078-0.395,0.129c-0.529,0.18-0.735,0.217-1.271,0.221c-0.556,0.004-0.688-0.02-1.02-0.176c-0.483-0.225-0.933-0.639-1.233-1.133c-0.501-0.826-1.367-1.41-2.089-1.41c-0.617,0-0.734,0.25-0.288,0.615c0.672,0.549,1.174,1.109,1.38,1.537c0.116,0.24,0.294,0.611,0.397,0.824c0.109,0.227,0.342,0.535,0.564,0.748c0.522,0.498,1.026,0.736,1.778,0.848c0.504,0.074,0.628,0.074,1.223-0.002c0.287-0.035,0.529-0.076,0.746-0.127c0,0.244,0,0.525,0,0.855c0,1.766-0.021,2.334-0.091,2.5c-0.132,0.316-0.428,0.641-0.716,0.787c-0.287,0.146-0.376,0.307-0.255,0.455c0.067,0.08,0.196,0.094,0.629,0.066c0.822-0.051,1.403-0.355,1.699-0.891c0.095-0.172,0.117-0.518,0.147-2.318c0.032-1.953,0.046-2.141,0.173-2.42c0.077-0.166,0.188-0.346,0.25-0.395c0.104-0.086,0.111,0.084,0.111,2.42c-0.001,2.578-0.027,2.889-0.285,3.385c-0.058,0.113-0.168,0.26-0.245,0.33c-0.135,0.123-0.192,0.438-0.098,0.533c0.155,0.154,0.932-0.088,1.356-0.422c0.722-0.572,0.808-1.045,0.814-4.461l0.003-2.004l0.219,0.021l0.219,0.02l0.036,2.621c0.041,2.951,0.047,2.994,0.549,3.564c0.285,0.322,0.572,0.5,1.039,0.639c0.625,0.188,0.813-0.102,0.393-0.605c-0.457-0.547-0.479-0.756-0.454-3.994c0.017-2.076,0.017-2.076,0.151-1.955c0.282,0.256,0.336,0.676,0.336,2.623c0,2.418,0.069,2.648,0.923,3.07c0.399,0.195,0.511,0.219,1.022,0.221c0.544,0.002,0.577-0.006,0.597-0.148c0.017-0.115-0.05-0.193-0.304-0.348c-0.333-0.205-0.564-0.467-0.709-0.797c-0.055-0.127-0.092-0.959-0.117-2.672c-0.036-2.393-0.044-2.502-0.193-2.877c-0.201-0.504-0.508-0.902-0.897-1.166c-0.101-0.066-0.202-0.121-0.333-0.162c0.161-0.016,0.317-0.033,0.468-0.055c1.572-0.209,2.403-0.383,3.07-0.641c1.411-0.543,2.365-1.445,2.882-2.724c0.046-0.114,0.092-0.222,0.131-0.309l0.398,0.033c2.051,0.173,3.706,0.42,4.979,0.743c0.698,0.177,0.831,0.198,0.668,0.105C30.666,15.551,29.336,15.25,28.436,15.099zM22.422,15.068c-0.233,0.512-0.883,1.17-1.408,1.428c-0.518,0.256-1.33,0.451-2.25,0.544c-0.629,0.064-4.137,0.083-4.716,0.026c-1.917-0.188-2.991-0.557-3.783-1.296c-0.75-0.702-1.1-1.655-1.039-2.828c0.039-0.734,0.216-1.195,0.679-1.755c0.421-0.51,0.864-0.825,1.386-0.985c0.437-0.134,1.778-0.146,3.581-0.03c0.797,0.051,1.456,0.051,2.252,0c1.886-0.119,3.145-0.106,3.61,0.038c0.731,0.226,1.397,0.834,1.797,1.644c0.18,0.362,0.215,0.516,0.241,1.075C22.808,13.699,22.675,14.517,22.422,15.068zM12.912,11.762c-1.073-0.188-1.686,1.649-0.863,2.587c0.391,0.445,0.738,0.518,1.172,0.248c0.402-0.251,
10.62-0.72,0.62-1.328C13.841,12.458,13.472,11.862,12.912,11.762zM19.425,11.872c-1.073-0.188-1.687,1.647-0.864,2.586c0.392,0.445,0.738,0.519,1.173,0.247c0.401-0.25,0.62-0.72,0.62-1.328C20.354,12.569,19.985,11.971,19.425,11.872zM16.539,15.484c-0.023,0.074-0.135,0.184-0.248,0.243c-0.286,0.147-0.492,0.096-0.794-0.179c-0.187-0.169-0.272-0.258-0.329-0.081c-0.053,0.164,0.28,0.493,0.537,0.594c0.236,0.094,0.405,0.097,0.661-0.01c0.254-0.106,0.476-0.391,0.476-0.576C16.842,15.303,16.595,15.311,16.539,15.484zM16.222,14.909c0.163-0.144,0.2-0.44,0.044-0.597s-0.473-0.133-0.597,0.043c-0.144,0.206-0.067,0.363,0.036,0.53C15.865,15.009,16.08,15.034,16.222,14.909z")}})},
1"./src/shape/icon/GitHubAlt.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.GitHubAlt=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.GitHubAlt",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M23.356,17.485c-0.004,0.007-0.007,0.013-0.01,0.021l0.162,0.005c0.107,0.004,0.218,0.01,0.33,0.016c-0.046-0.004-0.09-0.009-0.136-0.013L23.356,17.485zM15.5,1.249C7.629,1.25,1.25,7.629,1.249,15.5C1.25,23.371,7.629,29.75,15.5,29.751c7.871-0.001,14.25-6.38,14.251-14.251C29.75,7.629,23.371,1.25,15.5,1.249zM3.771,17.093c0.849-0.092,1.833-0.148,2.791-0.156c0.262,0,0.507-0.006,0.717-0.012c0.063,0.213,0.136,0.419,0.219,0.613H7.492c-0.918,0.031-2.047,0.152-3.134,0.335c-0.138,0.023-0.288,0.051-0.441,0.08C3.857,17.67,3.81,17.383,3.771,17.093zM12.196,22.224c-0.1,0.028-0.224,0.07-0.357,0.117c-0.479,0.169-0.665,0.206-1.15,0.206c-0.502,0.015-0.621-0.019-0.921-0.17C9.33,22.171,8.923,21.8,8.651,21.353c-0.453-0.746-1.236-1.275-1.889-1.275c-0.559,0-0.664,0.227-0.261,0.557c0.608,0.496,1.062,0.998,1.248,1.385c0.105,0.215,0.266,0.546,0.358,0.744c0.099,0.206,0.311,0.474,0.511,0.676c0.472,0.441,0.928,0.659,1.608,0.772c0.455,0.06,0.567,0.06,1.105-0.004c0.26-0.03,0.479-0.067,0.675-0.118v0.771c0,1.049-0.008,1.628-0.031,1.945c-1.852-0.576-3.507-1.595-4.848-2.934c-1.576-1.578-2.706-3.592-3.195-5.848c0.952-0.176,2.073-0.32,3.373-0.43l0.208-0.018c0.398,0.925,1.011,1.631,1.876,2.179c0.53,0.337,1.38,0.685,1.808,0.733c0.118,0.02,0.46,0.09,0.76,0.16c0.302,0.066,0.89,0.172,1.309,0.236h0.009c-0.007,0.018-0.014,0.02-0.022,0.02C12.747,21.169,12.418,21.579,12.196,22.224zM13.732,27.207c-0.168-0.025-0.335-0.056-0.5-0.087c0.024-0.286,0.038-0.785,0.054-1.723c0.028-1.767,0.041-1.94,0.156-2.189c0.069-0.15,0.17-0.32,0.226-0.357c0.095-0.078,0.101,0.076,0.101,2.188C13.769,26.143,13.763,26.786,13.732,27.207zM15.5,27.339c-0.148,0-0.296-0.006-0.443-0.012c0.086-0.562,0.104-1.428,0.106-2.871l0.003-1.82l0.197,0.019l0.199,0.02l0.032,2.365c0.017,1.21,0.027,1.878,0.075,2.296C15.613,27.335,15.558,27.339,15.5,27.339zM17.006,27.24c-0.039-0.485-0.037-1.243-0.027-2.553c0.019-1.866,0.019-1.866,0.131-1.769c0.246,0.246,0.305,0.623,0.305,2.373c0,0.928,0.011,1.497,0.082,1.876C17.334,27.196,17.17,27.22,17.006,27.24zM27.089,17.927c-0.155-0.029-0.307-0.057-0.446-0.08c-0.96-0.162-1.953-0.275-2.804-0.32c1.25,0.108,2.327,0.248,3.246,0.418c-0.479,2.289-1.618,4.33-3.214,5.928c-1.402,1.4-3.15,2.448-5.106,3.008c-0.034-0.335-0.058-1.048-0.066-2.212c-0.03-2.167-0.039-2.263-0.17-2.602c-0.181-0.458-0.47-0.811-0.811-1.055c-0.094-0.057-0.181-0.103-0.301-0.14c0.145-0.02,0.282-0.021,0.427-0.057c1.418-0.188,2.168-0.357,2.772-0.584c1.263-0.492,2.129-1.301,2.606-2.468c0.044-0.103,0.088-0.2,0.123-0.279l0.011,0.001c0.032-0.07,0.057-0.118,0.064-0.125c0.02-0.017,0.036-0.085,0.038-0.151c0-0.037,0.017-0.157,0.041-0.317c0.249,0.01,0.58,0.018,0.938,0.02c0.959,0.008,1.945,0.064,2.794,0.156C27.194,17.356,27.148,17.644,27.089,17.927zM25.823,16.87c-0.697-0.049-1.715-0.064-2.311-0.057c0.02-0.103,0.037-0.218,0.059-0.336c0.083-0.454,0.111-0.912,0.113-1.823c0.002-1.413-0.074-1.801-0.534-2.735c-0.188-0.381-0.399-0.705-0.655-0.998c0.225-0.659,0.207-1.68-0.02-2.575c-0.19-0.734-0.258-0.781-0.924-0.64c-0.563,0.12-1.016,0.283-1.598,0.576c-0.274,0.138-0.652,0.354-0.923,0.522c-0.715-0.251-1.451-0.419-2.242-0.508c-0.799-0.092-2.759-0.04-3.454,0.089c-0.681,0.126-1.293,0.28-1.848,0.462c-0.276-0.171-0.678-0.4-0.964-0.547C9.944,8.008,9.491,7.846,8.925,7.727c-0.664-0.144-0.732-0.095-0.922,0.64c-0.235,0.907-0.237,1.945-0.004,2.603c0.026,0.075,0.043,0.129,0.05,0.17c-0.942,1.187-1.25,2.515-1.046,4.367c0.053,0.482,0.136,0.926,0.251,1.333c-0.602-0.004-1.457,0.018-2.074,0.057c-0.454,0.031-0.957,0.076-1.418,0.129c-0.063-0.5-0.101-1.008-0.101-1.524c0-3.273,1.323-6.225,3.468-8.372c2.146-2.144,5.099-3.467,8.371-3.467c3.273,0,6.226,1.323,8.371,3.467c2.145,2.147,3.468,5.099,3.468,8.372c0,0.508-0.036,1.008-0.098,1.499C26.78,16.946,26.276,16.899,25.823,16.87z")}})},
1"./src/shape/icon/Glasses.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Glasses=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Glasses",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.075,9.531c0,0-2.705-1.438-5.158-1.438c-2.453,0-4.862,0.593-4.862,0.593L3.971,9.869c0,0,0.19,0.19,0.528,0.53c0.338,0.336,0.486,3.741,1.838,5.094c1.353,1.354,4.82,1.396,5.963,0.676c1.14-0.718,2.241-3.466,2.241-4.693c0-0.38,0-0.676,0-0.676c0.274-0.275,1.615-0.303,1.917,0c0,0,0,0.296,0,0.676c0,1.227,1.101,3.975,2.241,4.693c1.144,0.72,4.611,0.678,5.963-0.676c1.355-1.353,1.501-4.757,1.839-5.094c0.338-0.34,0.528-0.53,0.528-0.53l-0.084-1.183c0,0-2.408-0.593-4.862-0.593c-2.453,0-5.158,1.438-5.158,1.438C16.319,9.292,14.737,9.32,14.075,9.531z")}})},
1"./src/shape/icon/Globe.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Globe=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Globe",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM19.158,23.269c-0.079,0.064-0.183,0.13-0.105,0.207c0.078,0.078-0.09,0.131-0.09,0.17s0.104,0.246,0.052,0.336c-0.052,0.092-0.091,0.223-0.13,0.301c-0.039,0.077-0.131,0.155-0.104,0.272c0.025,0.116-0.104,0.077-0.104,0.194c0,0.116,0.116,0.065,0.09,0.208c-0.025,0.144-0.09,0.183-0.09,0.285c0,0.104,0.064,0.247,0.064,0.286s-0.064,0.17-0.155,0.272c-0.092,0.104-0.155,0.17-0.144,0.233c0.014,0.065,0.104,0.144,0.091,0.184c-0.013,0.037-0.129,0.168-0.116,0.259c0.014,0.09,0.129,0.053,0.155,0.116c0.026,0.065-0.155,0.118-0.078,0.183c0.078,0.064,0.183,0.051,0.156,0.208c-0.019,0.112,0.064,0.163,0.126,0.198c-0.891,0.221-1.818,0.352-2.777,0.352C9.639,27.533,4.466,22.36,4.466,16c0-2.073,0.557-4.015,1.518-5.697c0.079-0.042,0.137-0.069,0.171-0.062c0.065,0.013,0.079,0.104,0.183,0.13c0.
1104,0.026,0.195-0.078,0.26-0.117c0.064-0.039,0.116-0.195,0.051-0.182c-0.065,0.013-0.234,0-0.234,0s0.183-0.104,0.183-0.169s0.025-0.169,0.129-0.208C6.83,9.655,6.83,9.681,6.765,9.837C6.7,9.993,6.896,9.928,6.973,9.863s0.13-0.013,0.272-0.104c0.143-0.091,0.143-0.143,0.221-0.143c0.078,0,0.221,0.143,0.299,0.091c0.077-0.052,0.299,0.065,0.429,0.065c0.129,0,0.545,0.169,0.624,0.169c0.078,0,0.312,0.09,0.325,0.259c0.013,0.169,0.09,0.156,0.168,0.156s0.26,0.065,0.26,0.13c0,0.065-0.052,0.325,0.078,0.39c0.129,0.064,0.247,0.169,0.299,0.143c0.052-0.026,0-0.233-0.064-0.26c-0.065-0.026-0.027-0.117-0.052-0.169c-0.026-0.051,0.078-0.051,0.117,0.039c0.039,0.091,0.143,0.26,0.208,0.26c0.064,0,0.208,0.156,0.168,0.247c-0.039,0.091,0.039,0.221,0.156,0.221c0.116,0,0.26,0.182,0.312,0.195c0.052,0.013,0.117,0.078,0.117,0.117c0,0.04,0.065,0.26,0.065,0.351c0,0.09-0.04,0.454-0.053,0.597s0.104,0.39,0.234,0.52c0.129,0.13,0.246,0.377,0.324,0.429c0.079,0.052,0.13,0.195,0.247,0.182c0.117-0.013,0.195,0.078,0.299,0.26c0.104,0.182,0.208,0.48,0.286,0.506c0.078,0.026,0.208,0.117,0.142,0.182c-0.064,0.064-0.168,0.208-0.051,0.208c0.117,0,0.156-0.065,0.247,0.053c0.09,0.116,0.208,0.181,0.194,0.26c-0.013,0.077,0.104,0.103,0.156,0.116c0.052,0.013,0.169,0.247,0.286,0.143c0.117-0.104-0.155-0.259-0.234-0.326c-0.078-0.064,0-0.207-0.182-0.35c-0.182-0.143-0.156-0.247-0.286-0.351c-0.13-0.104-0.233-0.195-0.104-0.286c0.13-0.091,0.143,0.091,0.195,0.208c0.052,0.116,0.324,0.351,0.441,0.454c0.117,0.104,0.326,0.468,0.39,0.468s0.247,0.208,0.247,0.208s0.103,0.168,0.064,0.22c-0.039,0.052,0.053,0.247,0.144,0.299c0.09,0.052,0.455,0.22,0.507,0.247c0.052,0.027,0.155,0.221,0.299,0.221c0.142,0,0.247,0.014,0.286,0.053c0.039,0.038,0.155,0.194,0.234,0.104c0.078-0.092,0.09-0.131,0.208-0.131c0.117,0,0.168,0.091,0.233,0.156c0.065,0.065,0.247,0.235,0.338,0.222c0.091-0.013,0.208,0.104,0.273,0.064s0.169,0.025,0.22,0.052c0.054,0.026,0.234,0.118,0.222,0.272c-0.013,0.157,0.103,0.195,0.182,0.234c0.078,0.039,0.182,0.13,0.248,0.195c0.064,0.063,0.206,0.077,0.246,0.116c0.039,0.039,0.065,0.117,0.182,0.052c0.116-0.064,0.092-0.181,0.092-0.181s0.129-0.026,0.194,0.026c0.064,0.05,0.104,0.22,0.144,0.246c0.038,0.026,0.115,0.221,0.063,0.362c-0.051,0.145-0.038,0.286-0.091,0.286c-0.052,0-0.116,0.17-0.195,0.209c-0.076,0.039-0.285,0.221-0.272,0.286c0.013,0.063,0.131,0.258,0.104,0.35c-0.025,0.091-0.194,0.195-0.154,0.338c0.038,0.144,0.312,0.183,0.323,0.312c0.014,0.131,0.209,0.417,0.235,0.546c0.025,0.13,0.246,0.272,0.246,0.453c0,0.184,0.312,0.3,0.377,0.312c0.063,0.013,0.182,0.131,0.272,0.17s0.169,0.116,0.233,0.221s0.053,0.261,0.053,0.299c0,0.039-0.039,0.44-0.078,0.674C19.145,23.021,19.235,23.203,19.158,23.269zM10.766,11.188c0.039,0.013,0.117,0.091,0.156,0.091c0.04,0,0.234,0.156,0.286,0.208c0.053,0.052,0.053,0.195-0.013,0.208s-0.104-0.143-0.117-0.208c-0.013-0.065-0.143-0.065-0.208-0.104C10.805,11.344,10.66,11.152,10.766,11.188zM27.51,16.41c-0.144,0.182-0.13,0.272-0.195,0.286c-0.064,0.013,0.065,0.065,0.09,0.194c0.022,0.112-0.065,0.224,0.063,0.327c-0.486,4.619-3.71,8.434-8.016,9.787c-0.007-0.011-0.019-0.025-0.021-0.034c-0.027-0.078-0.027-0.233,0.064-0.285c0.091-0.053,0.312-0.233,0.363-0.272c0.052-0.04,0.13-0.221,0.091-0.247c-0.038-0.026-0.232,0-0.26-0.039c-0.026-0.039-0.026-0.092,0.104-0.182c0.13-0.091,0.195-0.222,0.247-0.26c0.052-0.039,0.155-0.117,0.195-0.209c0.038-0.09-0.041-0.039-0.118-0.039s-0.117-0.142-0.117-0.207s0.195,0.026,0.339,0.052c0.143,0.024,0.077-0.065,0.064-0.142c-0.013-0.078,0.026-0.209,0.105-0.17c0.076,0.039,0.479-0.013,0.531-0.026c0.052-0.013,0.194-0.246,0.246-0.312c0.053-0.065,0.064-0.129,0-0.168c-0.065-0.04-0.143-0.184-0.168-0.221c-0.026-0.041-0.039-0.274-0.013-0.34c0.025-0.063,0,0.377,0.181,0.43c0.183,0.052,0.286,0.078,0.455-0.078c0.169-0.155,0.298-0.26,0.312-0.363c0.013-0.104,0.052-0.209,0.117-0.246c0.065-0.039,0.104,0.103,0.182-0.065c0.078-0.17,0.156-0.157,0.234-0.299c0.077-0.144-0.13-0.325,0.024-0.43c0.157-0.103,0.43-0.233,0.43-0.233s0.078-0.039,0.234-0.078c0.155-0.038,0.324-0.014,0.376-0.09c0.052-0.079,0.104-0.247,0.182-0.338c0.079-0.092,0.169-0.234,0.13-0.299c-0.039-0.065,0.104-0.352,0.091-0.429c-0.013-0.078-0.13-0.261,0.065-0.416s0.402-0.391,0.416-0.454c0.012-0.065,0.169-0.338,0.154-0.469c-0.012-0.129-0.154-0.285-0.245-0.325c-0.092-0.037-0.286-0.05-0.364-0.154s-0.299-0.208-0.377-0.182c-0.077,0.026-0.208,0.051-0.312-0.015c-0.104-0.063-0.272-0.143-0.337-0.194c-0.066-0.051-0.234-0.09-0.312-0.09s-0.065-0.053-0.182,0.103c-0.117,0.157,0,0.209-0.208,0.182c-0.209-0.024,0.025-0.038,0.144-0.194c0.115-0.155-0.014-0.247-0.144-0.207c-0.13,0.039-0.039,0.117-0.247,0.156c-0.207,0.038-0.207-0.092-0.077-0.117c0.13-0.026,0.363-0.143,0.363-0.194c0-0.053-0.026-0.196-0.13-0.196s-0.078-0.129-0.233-0.297c-0.156-0.17-0.351-0.274-0.508-0.249c-0.154,0.026-0.272,0.065-0.35-0.076c-0.078-0.144-0.169-0.17-0.222-0.247c-0.051-0.078-0.182,0-0.221-0.039s-0.039-0.039-0.039-0.039s-0.169,0.039-0.077-0.078c0.09-0.117,0.129-0.338,0.09-0.325c-0.038,0.013-0.104,0.196-0.168,0.183c-0.064-0.013-0.014-0.04-0.144-0.117c-0.13-0.078-0.337-0.013-0.337,0.052c0,0.065-0.065,0.117-0.065,0.117s-0.039-0.038-0.078-0.117c-0.039-0.078-0.221-0.091-0.312-0.013c-0.09,0.078-0.142-0.196-0.207-0.196s-0.194,0.065-0.26,0.184c-0.064,0.116-0.038,0.285-0.092,0.272c-0.05-0.013-0.063-0.233-0.05-0.312c0.012-0.079,0.155-0.208,0.05-0.234c-0.103-0.026-0.259,0.13-0.323,0.143c-0.065,0.013-0.195,0.104-0.273,0.209c-0.077,0.103-0.116,0.168-0.195,0.207c-0.077,0.039-0.193,0-0.167-0.039c0.025-0.039-0.222-0.181-0.261-0.13c-0.04,0.052-0.155,0.091-0.272,0.144c-0.117,0.052-0.222-0.065-0.247-0.117s-0.079-0.064-0.091-0.234c-0.013-0.168,0.027-0.351,0.065-0.454c0.038-0.104-0.195-0.312-0.286-0.3c-0.091,0.015-0.182,0.105-0.272,0.091c-0.092-0.012-0.052-0.038-0.195-0.038c-0.143,0-0.026-0.025,0-0.143c0.
1025-0.116-0.052-0.273,0.092-0.377c0.142-0.104,0.091-0.351,0-0.363c-0.092-0.014-0.261,0.039-0.377,0.026c-0.116-0.014-0.208,0.091-0.169,0.207c0.039,0.117-0.065,0.195-0.104,0.183c-0.039-0.013-0.09-0.078-0.234,0.026c-0.142,0.103-0.194,0.064-0.337-0.052c-0.143-0.118-0.299-0.234-0.325-0.416c-0.026-0.182-0.04-0.364,0.013-0.468c0.051-0.104,0.051-0.285-0.026-0.312c-0.078-0.025,0.09-0.155,0.181-0.181c0.092-0.026,0.234-0.143,0.26-0.195c0.026-0.052,0.156-0.04,0.298-0.04c0.143,0,0.169,0,0.312,0.078c0.143,0.078,0.169-0.039,0.169-0.078c0-0.039,0.052-0.117,0.208-0.104c0.156,0.013,0.376-0.052,0.416-0.013s0.116,0.195,0.194,0.143c0.079-0.051,0.104-0.143,0.131,0.014c0.025,0.155,0.09,0.39,0.208,0.429c0.116,0.039,0.052,0.194,0.168,0.207c0.115,0.013,0.17-0.246,0.131-0.337c-0.04-0.09-0.118-0.363-0.183-0.428c-0.064-0.065-0.064-0.234,0.064-0.286c0.13-0.052,0.442-0.312,0.532-0.389c0.092-0.079,0.338-0.144,0.261-0.248c-0.078-0.104-0.104-0.168-0.104-0.247s0.078-0.052,0.117,0s0.194-0.078,0.155-0.143c-0.038-0.064-0.026-0.155,0.065-0.143c0.091,0.013,0.116-0.065,0.078-0.117c-0.039-0.052,0.091-0.117,0.182-0.091c0.092,0.026,0.325-0.013,0.364-0.065c0.038-0.052-0.078-0.104-0.078-0.208c0-0.104,0.155-0.195,0.247-0.208c0.091-0.013,0.207,0,0.221-0.039c0.012-0.039,0.143-0.143,0.155-0.052c0.014,0.091,0,0.247,0.104,0.247c0.104,0,0.232-0.117,0.272-0.129c0.038-0.013,0.286-0.065,0.338-0.078c0.052-0.013,0.363-0.039,0.325-0.13c-0.039-0.09-0.078-0.181-0.118-0.22c-0.039-0.039-0.077,0.013-0.13,0.078c-0.051,0.065-0.143,0.065-0.168,0.013c-0.026-0.051,0.012-0.207-0.078-0.156c-0.092,0.052-0.104,0.104-0.157,0.078c-0.052-0.026-0.103-0.117-0.103-0.117s0.129-0.064,0.038-0.182c-0.09-0.117-0.221-0.091-0.35-0.025c-0.13,0.064-0.118,0.051-0.273,0.09s-0.234,0.078-0.234,0.078s0.209-0.129,0.299-0.208c0.091-0.078,0.209-0.117,0.286-0.195c0.078-0.078,0.285,0.039,0.285,0.039s0.105-0.104,0.105-0.039s-0.027,0.234,0.051,0.234c0.079,0,0.299-0.104,0.21-0.131c-0.093-0.026,0.129,0,0.219-0.065c0.092-0.065,0.194-0.065,0.247-0.09c0.052-0.026,0.092-0.143,0.182-0.143c0.092,0,0.13,0.117,0,0.195s-0.143,0.273-0.208,0.325c-0.064,0.052-0.026,0.117,0.078,0.104c0.104-0.013,0.194,0.013,0.286-0.013s0.143,0.026,0.168,0.065c0.026,0.039,0.104-0.039,0.104-0.039s0.169-0.039,0.221,0.026c0.053,0.064,0.092-0.039,0.053-0.104c-0.039-0.064-0.092-0.129-0.13-0.208c-0.039-0.078-0.091-0.104-0.194-0.078c-0.104,0.026-0.13-0.026-0.195-0.064c-0.065-0.04-0.118,0.052-0.065-0.04c0.053-0.09,0.078-0.117,0.117-0.195c0.039-0.078,0.209-0.221,0.039-0.259c-0.169-0.04-0.222-0.065-0.247-0.143c-0.026-0.078-0.221-0.221-0.272-0.221c-0.053,0-0.233,0-0.247-0.065c-0.013-0.065-0.143-0.208-0.208-0.273c-0.064-0.065-0.312-0.351-0.351-0.377c-0.039-0.026-0.091-0.013-0.208,0.143c-0.116,0.157-0.22,0.183-0.312,0.144c-0.091-0.039-0.104-0.026-0.193-0.13c-0.093-0.104,0.09-0.117,0.051-0.182c-0.04-0.064-0.247-0.091-0.377-0.104c-0.13-0.013-0.221-0.156-0.416-0.169c-0.194-0.013-0.428,0.026-0.493,0.026c-0.064,0-0.064,0.091-0.09,0.234c-0.027,0.143,0.09,0.182-0.027,0.208c-0.116,0.026-0.169,0.039-0.052,0.091c0.117,0.052,0.273,0.26,0.273,0.26s0,0.117-0.092,0.182c-0.09,0.065-0.182,0.13-0.233,0.053c-0.053-0.079-0.195-0.065-0.155,0.013c0.038,0.078,0.116,0.117,0.116,0.195c0,0.077,0.117,0.272,0.039,0.337c-0.078,0.065-0.168,0.014-0.233,0.026s-0.131-0.104-0.078-0.13c0.051-0.026-0.014-0.221-0.014-0.221s-0.155,0.221-0.143,0.104c0.014-0.117-0.064-0.13-0.064-0.221c0-0.091-0.079-0.13-0.194-0.104c-0.118,0.026-0.26-0.04-0.482-0.079c-0.22-0.039-0.311-0.064-0.493-0.156c-0.182-0.091-0.247-0.026-0.338-0.013c-0.091,0.013-0.052-0.182-0.169-0.207c-0.116-0.027-0.181,0.025-0.207-0.144c-0.026-0.168,0.039-0.208,0.324-0.39c0.286-0.182,0.247-0.26,0.468-0.286c0.22-0.026,0.325,0.026,0.325-0.039s0.052-0.325,0.052-0.195S16.95,9.109,16.832,9.2c-0.116,0.091-0.052,0.104,0.04,0.104c0.091,0,0.259-0.091,0.259-0.091s0.208-0.091,0.26-0.013c0.053,0.078,0.053,0.156,0.144,0.156s0.285-0.104,0.116-0.195c-0.168-0.091-0.272-0.078-0.376-0.182s-0.078-0.065-0.195-0.039c-0.116,0.026-0.116-0.039-0.156-0.039s-0.104,0.026-0.13-0.026c-0.025-0.052,0.014-0.065,0.145-0.065c0.129,0,0.285,0.039,0.285,0.039s0.155-0.052,0.194-0.065c0.039-0.013,0.247-0.039,0.208-0.155c-0.04-0.117-0.169-0.117-0.208-0.156s0.078-0.09,0.143-0.117c0.065-0.026,0.247,0,0.247,0s0.117,0.013,0.117-0.039S17.897,8.2,17.976,8.239s0,0.156,0.11
17,0.13c0.116-0.026,0.143,0,0.207,0.039c0.065,0.039-0.013,0.195-0.077,0.221c-0.065,0.025-0.169,0.077-0.026,0.09c0.144,0.014,0.246,0.014,0.246,0.014s0.092-0.091,0.131-0.169c0.038-0.078,0.104-0.026,0.155,0c0.052,0.025,0.247,0.065,0.065,0.117c-0.183,0.052-0.221,0.117-0.26,0.182c-0.038,0.065-0.053,0.104-0.221,0.065c-0.17-0.039-0.26-0.026-0.299,0.039c-0.039,0.064-0.013,0.273,0.053,0.247c0.063-0.026,0.129-0.026,0.207-0.052c0.078-0.026,0.39,0.026,0.467,0.013c0.078-0.013,0.209,0.13,0.248,0.104c0.039-0.026,0.117,0.052,0.194,0.104c0.078,0.052,0.052-0.117,0.194-0.013c0.144,0.104,0.065,0.104,0.144,0.104c0.076,0,0.246,0.013,0.246,0.013s0.014-0.129,0.144-0.104c0.13,0.026,0.245,0.169,0.232,0.064c-0.012-0.103,0.013-0.181-0.09-0.259c-0.104-0.078-0.272-0.13-0.299-0.169c-0.026-0.039-0.052-0.091-0.013-0.117c0.039-0.025,0.221,0.013,0.324,0.079c0.104,0.065,0.195,0.13,0.273,0.078c0.077-0.052,0.17-0.078,0.208-0.117c0.038-0.04,0.13-0.156,0.13-0.156s-0.391-0.051-0.441-0.117c-0.053-0.065-0.235-0.156-0.287-0.156s-0.194,0.091-0.246-0.039s-0.052-0.286-0.105-0.299c-0.05-0.013-0.597-0.091-0.674-0.13c-0.078-0.039-0.39-0.13-0.507-0.195s-0.286-0.156-0.389-0.156c-0.104,0-0.533,0.052-0.611,0.039c-0.078-0.013-0.312,0.026-0.403,0.039c-0.091,0.013,0.117,0.182-0.077,0.221c-0.195,0.039-0.169,0.065-0.13-0.13c0.038-0.195-0.131-0.247-0.299-0.169c-0.169,0.078-0.442,0.13-0.377,0.221c0.065,0.091-0.012,0.157,0.117,0.247c0.13,0.091,0.183,0.117,0.35,0.104c0.17-0.013,0.339,0.025,0.339,0.025s0,0.157-0.064,0.182c-0.065,0.026-0.169,0.026-0.196,0.104c-0.025,0.078-0.155,0.117-0.155,0.078s0.065-0.169-0.026-0.234c-0.09-0.065-0.117-0.078-0.221-0.013c-0.104,0.065-0.116,0.091-0.169-0.013C16.053,8.291,15.897,8.2,15.897,8.2s-0.104-0.129-0.182-0.194c-0.077-0.065-0.22-0.052-0.234,0.013c-0.013,0.064,0.026,0.129,0.078,0.247c0.052,0.117,0.104,0.337,0.013,0.351c-0.091,0.013-0.104,0.026-0.195,0.052c-0.091,0.026-0.13-0.039-0.13-0.143s-0.04-0.195-0.013-0.234c0.026-0.039-0.104,0.027-0.234,0c-0.13-0.025-0.233,0.052-0.104,0.092c0.13,0.039,0.157,0.194,0.039,0.233c-0.117,0.039-0.559,0-0.702,0s-0.35,0.039-0.39-0.039c-0.039-0.078,0.118-0.129,0.208-0.129c0.091,0,0.363,0.012,0.467-0.13c0.104-0.143-0.13-0.169-0.233-0.169c-0.104,0-0.183-0.039-0.299-0.155c-0.118-0.117,0.078-0.195,0.052-0.247c-0.026-0.052-0.156-0.014-0.272-0.014c-0.117,0-0.299-0.09-0.299,0.014c0,0.104,0.143,0.402,0.052,0.337c-0.091-0.064-0.078-0.156-0.143-0.234c-0.065-0.078-0.168-0.065-0.299-0.052c-0.129,0.013-0.35,0.052-0.415,0.039c-0.064-0.013-0.013-0.013-0.156-0.078c-0.142-0.065-0.208-0.052-0.312-0.117C12.091,7.576,12.182,7.551,12,7.538c-0.181-0.013-0.168,0.09-0.35,0.065c-0.182-0.026-0.234,0.013-0.416,0c-0.182-0.013-0.272-0.026-0.299,0.065c-0.025,0.091-0.078,0.247-0.156,0.247c-0.077,0-0.169,0.091,0.078,0.104c0.247,0.013,0.105,0.129,0.325,0.117c0.221-0.013,0.416-0.013,0.468-0.117c0.052-0.104,0.091-0.104,0.117-0.065c0.025,0.039,0.22,0.272,0.22,0.272s0.131,0.104,0.183,0.13c0.051,0.026-0.052,0.143-0.156,0.078c-0.104-0.065-0.299-0.051-0.377-0.116c-0.078-0.065-0.429-0.065-0.52-0.052c-0.09,0.013-0.247-0.039-0.299-0.039c-0.051,0-0.221,0.13-0.221,0.13S10.532,8.252,10.494,8.2c-0.039-0.052-0.104,0.052-0.156,0.065c-0.052,0.013-0.208-0.104-0.364-0.052C9.818,8.265,9.87,8.317,9.649,8.304s-0.272-0.052-0.35-0.039C9.22,8.278,9.22,8.278,9.22,8.278S9.233,8.33,9.143,8.382C9.052,8.434,8.986,8.499,8.921,8.421C8.857,8.343,8.818,8.343,8.779,8.33c-0.04-0.013-0.118-0.078-0.286-0.04C8.324,8.33,8.064,8.239,8.013,8.239c-0.04,0-0.313-0.015-0.491-0.033c2.109-2.292,5.124-3.74,8.478-3.74c2.128,0,4.117,0.589,5.83,1.598c-0.117,0.072-0.319,0.06-0.388,0.023c-0.078-0.043-0.158-0.078-0.475-0.061c-0.317,0.018-0.665,0.122-0.595,0.226c0.072,0.104-0.142,0.165-0.197,0.113c-0.055-0.052-0.309,0.06-0.293,0.165c0.016,0.104-0.039,0.225-0.175,0.199c-0.134-0.027-0.229,0.06-0.237,0.146c-0.007,0.087-0.309,0.147-0.332,0.147c-0.024,0-0.412-0.008-0.27,0.095c0.097,0.069,0.15,0.027,0.27,0.052c0.119,0.026,0.214,0.217,0.277,0.243c0.062,0.026,0.15,0,0.189-0.052c0.04-0.052,0.095-0.234,0.095-0.234s0,0.173,0.097,0.208c0.095,0.035,0.331-0.026,0.395-0.017c0.064,0.008,0.437,0.061,0.538,0.112c0.104,0.052,0.356,0.087,0.428,0.199c0.071,0.113,0.08,0.503,0.119,0.546c0.04,0.043,0.174-0.139,0.205-0.182c0.031-0.044,0.198-0.018,0.254,0.042c0.056,0.061,0.182,0.208,0.175,0.269C21.9,8.365,21.877,8.459,21.83,8.425c-0.048-0.034-0.127-0.025-0.096-0.095c0.032-0.069,0.048-0.217-0.015-0.217c-0.064,0-0.119,0-0.119,0s-0.12-0.035-0.199,0.095s-0.015,0.26,0.04,0.26s0.184,0,0.184,0.034c0,0.035-0.136,0.139-0.128,0.2c0.009,0.061,0.11,0.268,0.144,0.312c0.031,0.043,0.197,0.086,0.244,0.096c0.049,0.008-0.111,0.017-0.07,0.077c0.04,0.061,0.102,0.208,0.189,0.243c0.087,0.035,0.333,0.19,0.363,0.26c0.032,0.069,0.222-0.052,0.262-0.061c0.04-0.008,0.032,0.182,0.143,0.191c0.11,0.008,0.15-0.018,0.245-0.096s0.072-0.182,0.079-0.26c0.009-0.078,0-0.138,0.104-0.113c0.104,0.026,0.158-0.018,0.15-0.104c-0.008-0.087-0.095-0.191,0.07-0.217c0.167-0.026,0.254-0.138,0.357-0.138c0.103,0,0.389,0.043,0.419,0c0.032-0.043,0.167-0.243,0.254-0.251c0.067-0.007,0.224-0.021,0.385-0.042c1.582,1.885,2.561,4.284,2.673,6.905c-0.118,0.159-0.012,0.305,0.021,0.408c0.001,0.03,0.005,0.058,0.005,0.088c0,0.136-0.016,0.269-0.021,0.404C27.512,16.406,27.512,16.408,27.51,16.41zM17.794,12.084c-0.064,0.013-0.169-0.052-0.169-0.143s-0.091,0.169-0.04,0.247c0.053,0.078-0.104,0.169-0.155,0.169s-0.091-0.116-0.078-0.233c0.014-0.117-0.077-0.221-0.221-0.208c-0.143,0.014-0.208,0.13-0.259,0.169c-0.053,0.039-0.053,0.259-0.04,0.312s0.013,0.235-0.116,0.221c-0.118-0.013-0.092-0.233-0.079-0.312c0.014-0.078-0.039-0.273,0.014-0.376c0.053-0.104,0.207-0.143,0.312-0.156s0.324,0.065,0.363,0.052c0.04-0.014,0.222-0.014,0.312,0C17.729,11.837,17.858,12.071,17.794,12.084zM18.027,12.123c0.04,0.026,0.311-0.039,0.364,0.026c0.051,0.065-0.054,0.078-0.183,0.13c-0.129,0.052-0.169,0.039-0.221,0.104s-0.221,0.09-0.299,0.168c-0.078,0.079-0.217,0.125-0.246,0.065c-0.04-0.078,0.013-0.039,0.025-0.078c0.013-0.039,0.245-0.129,0.245-0.129S17.988,12.097,18.027,12.123zM16.988,11.668c-0.038,0.013-0.182-0.026-0.3-0.026c-0.116,0-0.091-0.078-0.143-0.064c-0.051,0.013-0.168,0.039-0.247,0.078c-0.078,0.039-0.208,0.03-0.208-0.04c0-0.104,0.052-0.078,0.221-0.143c0.169-0.065,0.352-0.247,0.429-0.169c0.078,0.078,0.221,0.169,0.312,0.182C17.144,11.5,17.026,11.655,16.988,11.668zM15.659,7.637c-0.079,0.026-0.347,0.139-0.321,0.199c0.01,0.023,0.078,0.069,0.19,0.052c0.113-0.018,0.276-0.035,0.355-0.043c0.
1078-0.009,0.095-0.139,0.009-0.147C15.805,7.689,15.736,7.611,15.659,7.637zM14.698,7.741c-0.061,0.026-0.243-0.043-0.338,0.018c-0.061,0.038-0.026,0.164,0.07,0.172c0.095,0.009,0.259-0.06,0.276-0.008c0.018,0.052,0.078,0.286,0.234,0.208c0.156-0.078,0.147-0.147,0.19-0.156c0.043-0.009-0.008-0.199-0.078-0.243C14.983,7.689,14.758,7.715,14.698,7.741zM14.385,7.005c0.017,0.044-0.008,0.078,0.113,0.095c0.121,0.018,0.173,0.035,0.243,0.035c0.069,0,0.042-0.113-0.018-0.19c-0.061-0.078-0.043-0.069-0.199-0.113c-0.156-0.043-0.312-0.043-0.416-0.035c-0.104,0.009-0.217-0.017-0.243,0.104c-0.013,0.062,0.07,0.112,0.174,0.112S14.368,6.962,14.385,7.005zM14.611,7.481c0.043,0.095,0.043,0.051,0.165,0.061C14.896,7.551,14.991,7.421,15,7.378c0.009-0.044-0.061-0.13-0.225-0.113c-0.165,0.017-0.667-0.026-0.736,0.034c-0.066,0.058,0,0.233-0.026,0.251c-0.026,0.017,0.009,0.095,0.077,0.078c0.069-0.017,0.104-0.182,0.157-0.182C14.299,7.447,14.568,7.386,14.611,7.481zM12.982,7.126c0.052,0.043,0.183,0.008,0.173-0.035c-0.008-0.043,0.053-0.217-0.051-0.225C13,6.858,12.854,6.962,12.697,7.014c-0.101,0.033-0.078,0.13-0.009,0.13S12.931,7.083,12.982,7.126zM13.72,7.282c-0.087,0.043-0.114,0.069-0.191,0.052c-0.078-0.017-0.078-0.156-0.217-0.13c-0.138,0.026-0.164,0.104-0.207,0.139s-0.139,0.061-0.173,0.043c-0.034-0.017-0.234-0.129-0.234-0.129s-0.416-0.018-0.433-0.07c-0.017-0.052-0.086-0.138-0.277-0.121s-0.52,0.13-0.572,0.13c-0.052,0,0.062,0.104-0.009,0.104c-0.069,0-0.155-0.008-0.181,0.069c-0.018,0.053,0.078,0.052,0.189,0.052c0.112,0,0.295,0,0.347-0.026c0.052-0.026,0.312-0.087,0.303-0.009c-0.009,0.079,0.104,0.199,0.164,0.182c0.061-0.017,0.183-0.13,0.243-0.086c0.061,0.043,0.07,0.146,0.13,0.173c0.061,0.025,0.226,0.025,0.304,0c0.077-0.027,0.294-0.027,0.389-0.009c0.095,0.018,0.373,0.069,0.399,0.018c0.026-0.053,0.104-0.061,0.112-0.113s0.051-0.216,0.051-0.216S13.806,7.239,13.72,7.282zM18.105,16.239c-0.119,0.021-0.091,0.252,0.052,0.21C18.3,16.407,18.223,16.217,18.105,16.239zM19.235,15.929c-0.104-0.026-0.221,0-0.299,0.013c-0.078,0.013-0.299,0.208-0.299,0.208s0.143,0.026,0.233,0.026c0.092,0,0.144,0.051,0.221,0.09c0.078,0.04,0.221-0.052,0.272-0.052c0.053,0,0.118,0.156,0.131-0.013C19.508,16.032,19.339,15.955,19.235,15.929zM15.616,7.507c-0.043-0.104-0.259-0.139-0.304-0.035C15.274,7.563,15.659,7.611,15.616,7.507zM18.093,15.292c0.143-0.026,0.064-0.144-0.053-0.13C17.922,15.175,17.949,15.318,18.093,15.292zM19.82,16.095c-0.119,0.022-0.092,0.253,0.051,0.211C20.015,16.264,19.937,16.074,19.82,16.095zM18.247,15.708c-0.09,0.013-0.285-0.09-0.389-0.182c-0.104-0.091-0.299-0.091-0.377-0.091c-0.077,0-0.39,0.091-0.39,0.091c-0.013,0.13,0.117,0.091,0.273,0.091s0.429-0.026,0.479,0.039c0.053,0.064,0.286,0.168,0.352,0.221c0.064,0.052,0.272,0.065,0.285,0.013S18.338,15.695,18.247,15.708zM16.698,7.412c-0.13-0.009-0.295-0.009-0.399,0c-0.104,0.008-0.182-0.069-0.26-0.113c-0.077-0.043-0.251-0.182-0.354-0.199c-0.104-0.017-0.086-0.017-0.303-0.069c-0.11-0.027-0.294-0.061-0.294-0.086c0-0.026-0.052,0.121,0.043,0.165c0.095,0.043,0.251,0.121,0.363,0.164c0.114,0.043,0.329,0.052,0.399,0.139c0.069,0.086,0.303,0.156,0.303,0.156l0.277,0.026c0,0,0.191-0.043,0.39-0.026c0.199,0.017,0.493,0.043,0.659,0.035c0.163-0.008,0.189-0.061,0.208-0.095c0.016-0.035-0.304-0.104-0.383-0.095C17.271,7.42,16.827,7.42,16.698,7.412zM17.182,9.404c-0.034,0.039,0.157,0.095,0.191,0.043C17.407,9.396,17.271,9.309,17.182,9.404zM17.764,9.585c0.086-0.035,0.043-0.139-0.079-0.104C17.547,9.521,17.676,9.62,17.764,9.585z")}})},
1"./src/shape/icon/GlobeAlt.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.GlobeAlt=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.GlobeAlt",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM27.436,17.39c0.001,0.002,0.004,0.002,0.005,0.004c-0.022,0.187-0.054,0.37-0.085,0.554c-0.015-0.012-0.034-0.025-0.047-0.036c-0.103-0.09-0.254-0.128-0.318-0.115c-0.157,0.032,0.229,0.305,0.267,0.342c0.009,0.009,0.031,0.03,0.062,0.058c-1.029,5.312-5.709,9.338-11.319,9.338c-4.123,0-7.736-2.18-9.776-5.441c0.123-0.016,0.24-0.016,0.28-0.076c0.051-0.077,0.102-0.241,0.178-0.331c0.077-0.089,0.165-0.229,0.127-0.292c-0.039-0.064,0.101-0.344,0.088-0.419c-0.013-0.076-0.127-0.256,0.064-0.407s0.394-0.382,0.407-0.444c0.012-0.063,0.166-0.331,0.152-0.458c-0.012-0.127-0.152-0.28-0.24-0.318c-0.09-0.037-0.28-0.05-0.356-0.151c-0.077-0.103-0.292-0.203-0.368-0.178c-0.076,0.025-0.204,0.05-0.305-0.015c-0.102-0.062-0.267-0.139-0.33-0.189c-0.065-0.05-0.229-0.088-0.305-0.088c-0.077,0-0.065-0.052-0.178,0.101c-0.114,0.153,0,0.204-0.204,0.177c-0.204-0.023,0.025-0.036,0.141-0.189c0.113-0.152-0.013-0.242-0.141-0.203c-0.126,0.038-0.038,0.115-0.241,0.153c-0.203,0.036-0.203-0.09-0.076-0.115s0.355-0.139,0.355-0.19c0-0.051-0.025-0.191-0.127-0.191s-0.077-0.126-0.229-0.291c-0.092-0.101-0.196-0.164-0.299-0.204c-0.09-0.579-0.15-1.167-0.15-1.771c0-2.844,1.039-5.446,2.751-7.458c0.024-0.02,0.048-0.034,0.069-0.036c0.084-0.009,0.31-0.025,0.51-0.059c0.202-0.034,0.418-0.161,0.489-0.153c0.069,0.008,0.241,0.008,0.186-0.042C8.417,8.2,8.339,8.082,8.223,8.082S8.215,7.896,8.246,7.896c0.03,0,0.186,0.025,0.178,0.11C8.417,8.091,8.471,8.2,8.625,8.167c0.156-0.034,0.132-0.162,0.102-0.195C8.695,7.938,8.672,7.853,8.642,7.794c-0.031-0.06-0.023-0.136,0.14-0.153C8.944,7.625,9.168,7.708,9.16,7.573s0-0.28,0.046-0.356C9.253,7.142,9.354,7.09,9.299,7.065C9.246,7.04,9.176,7.099,9.121,6.972c-0.054-0.127,0.047-0.22,0.108-0.271c0.02-0.015,0.067-0.06,0.124-0.112C11.234,5.257,13.524,4.466,16,4.466c3.213,0,6.122,1.323,8.214,3.45c-0.008,0.022-0.01,0.052-0.031,0.056c-0.077,0.013-0.166,0.063-0.179-0.051c-0.013-0.114-0.013-0.331-0.102-0.203c-0.089,0.127-0.127,0.127-0.127,0.191c0,0.063,0.076,0.127,0.051,0.241C23.8,8.264,23.8,8.341,23.84,8.341c0.036,0,0.126-0.115,0.239-0.141c0.116-0.025,0.319-0.088,0.332,0.026c0.013,0.115,0.139,0.152,0.013,0.203c-0.128,0.051-0.267,0.026-0.293-0.051c-0.025-0.077-0.114-0.077-0.203-0.013c-0.088,0.063-0.279,0.292-0.279,0.292s-0.306,0.139-0.343,0.114c-0.04-0.025,0.101-0.165,0.203-0.228c0.102-0.064,0.178-0.204,0.14-0.242c-0.038-0.038-0.088-0.279-0.063-0.343c0.025-0.063,0.139-0.152,0.013-0.216c-0.127-0.063-0.217-0.14-0.318-0.178s-0.216,0.152-0.305,0.204c-0.089,0.051-0.076,0.114-0.191,0.127c-0.114,0.013-0.189,0.165,0,0.254c0.191,0.089,0.255,0.152,0.204,0.204c-0.051,0.051-0.267-0.025-0.267-0.025s-0.165-0.076-0.268-0.076c-0.101,0-0.229-0.063-0.33-0.076c-0.102-0.013-0.306-0.013-0.355,0.038c-0.051,0.051-0.179,0.203-0.28,0.152c-0.101-0.051-0.101-0.102-0.241-0.051c-0.14,0.051-0.279-0.038-0.355,0.038c-0.077,0.076-0.013,0.076-0.255,0c-0.241-0.076-0.189,0.051-0.419,0.089s-0.368-0.038-0.432,0.038c-0.064,0.077-0.153,0.217-0.19,0.127c-0.038-0.088,0.126-0.241,0.062-0.292c-0.062-0.051-0.33-0.025-0.367,0.013c-0.039,0.038-0.014,0.178,0.011,0.229c0.026,0.05,0.064,0.254-0.011,0.216c-0.077-0.038-0.064-0.166-0.141-0.152c-0.076,0.013-0.165,0.051-0.203,0.077c-0.038,0.025-0.191,0.025-0.229,0.076c-0.037,0.051,0.014,0.191-0.051,0.203c-0.063,0.013-0.114,0.064-0.254-0.025c-0.14-0.089-0.14-0.038-0.178-0.012c-0.038,0.025-0.216,0.127-0.229,0.012c-0.013-0.114,0.025-0.152-0.089-0.229c-0.115-0.076-0.026-0.076,0.127-0.025c0.152,0.05,0.343,0.075,0.622-0.013c0.28-0.089,0.395-0.127,0.28-0.178c-0.115-0.05-0.229-0.101-0.406-0.127c-0.179-0.025-0.42-0.025-0.7-0.127c-0.279-0.102-0.343-0.14-0.457-0.165c-0.115-0.026-0.813-0.14-1.132-0.089c-0.317,0.051-1.193,0.28-1.245,0.318s-0.128,0.19-0.292,0.318c-0.165,0.127-0.47,0.419-0.712,0.47c-0.241,0.051-0.521,0.254-0.521,0.305c0,0.051,0.101,0.242,0.076,0.28c-0.025,0.038,0.05,0.229,0.191,0.28c0.139,0.05,0.381,0.038,0.393-0.039c0.014-0.076,0.204-0.241,0.217-0.127c0.013,0.115,0.14,0.292,0.114,0.368c-0.025,0.077,0,0.153,0.09,0.14c0.
1088-0.012,0.559-0.114,0.559-0.114s0.153-0.064,0.127-0.166c-0.026-0.101,0.166-0.241,0.203-0.279c0.038-0.038,0.178-0.191,0.014-0.241c-0.167-0.051-0.293-0.064-0.115-0.216s0.292,0,0.521-0.229c0.229-0.229-0.051-0.292,0.191-0.305c0.241-0.013,0.496-0.025,0.444,0.051c-0.05,0.076-0.342,0.242-0.508,0.318c-0.166,0.077-0.14,0.216-0.076,0.292c0.063,0.076,0.09,0.254,0.204,0.229c0.113-0.025,0.254-0.114,0.38-0.101c0.128,0.012,0.383-0.013,0.42-0.013c0.039,0,0.216,0.178,0.114,0.203c-0.101,0.025-0.229,0.013-0.445,0.025c-0.215,0.013-0.456,0.013-0.456,0.051c0,0.039,0.292,0.127,0.19,0.191c-0.102,0.063-0.203-0.013-0.331-0.026c-0.127-0.012-0.203,0.166-0.241,0.267c-0.039,0.102,0.063,0.28-0.127,0.216c-0.191-0.063-0.331-0.063-0.381-0.038c-0.051,0.025-0.203,0.076-0.331,0.114c-0.126,0.038-0.076-0.063-0.242-0.063c-0.164,0-0.164,0-0.164,0l-0.103,0.013c0,0-0.101-0.063-0.114-0.165c-0.013-0.102,0.05-0.216-0.013-0.241c-0.064-0.026-0.292,0.012-0.33,0.088c-0.038,0.076-0.077,0.216-0.026,0.28c0.052,0.063,0.204,0.19,0.064,0.152c-0.14-0.038-0.317-0.051-0.419,0.026c-0.101,0.076-0.279,0.241-0.279,0.241s-0.318,0.025-0.318,0.102c0,0.077,0,0.178-0.114,0.191c-0.115,0.013-0.268,0.05-0.42,0.076c-0.153,0.025-0.139,0.088-0.317,0.102s-0.204,0.089-0.038,0.114c0.165,0.025,0.418,0.127,0.431,0.241c0.014,0.114-0.013,0.242-0.076,0.356c-0.043,0.079-0.305,0.026-0.458,0.026c-0.152,0-0.456-0.051-0.584,0c-0.127,0.051-0.102,0.305-0.064,0.419c0.039,0.114-0.012,0.178-0.063,0.216c-0.051,0.038-0.065,0.152,0,0.204c0.063,0.051,0.114,0.165,0.166,0.178c0.051,0.013,0.215-0.038,0.279,0.025c0.064,0.064,0.127,0.216,0.165,0.178c0.039-0.038,0.089-0.203,0.153-0.166c0.064,0.039,0.216-0.012,0.331-0.025s0.177-0.14,0.292-0.204c0.114-0.063,0.05-0.063,0.013-0.14c-0.038-0.076,0.114-0.165,0.204-0.254c0.088-0.089,0.253-0.013,0.292-0.115c0.038-0.102,0.051-0.279,0.151-0.267c0.103,0.013,0.243,0.076,0.331,0.076c0.089,0,0.279-0.14,0.332-0.165c0.05-0.025,0.241-0.013,0.267,0.102c0.025,0.114,0.241,0.254,0.292,0.279c0.051,0.025,0.381,0.127,0.433,0.165c0.05,0.038,0.126,0.153,0.152,0.254c0.025,0.102,0.114,0.102,0.128,0.013c0.012-0.089-0.065-0.254,0.025-0.242c0.088,0.013,0.191-0.026,0.191-0.026s-0.243-0.165-0.331-0.203c-0.088-0.038-0.255-0.114-0.331-0.241c-0.076-0.127-0.267-0.153-0.254-0.279c0.013-0.127,0.191-0.051,0.292,0.051c0.102,0.102,0.356,0.241,0.445,0.33c0.088,0.089,0.229,0.127,0.267,0.242c0.039,0.114,0.152,0.241,0.19,0.292c0.038,0.051,0.165,0.331,0.204,0.394c0.038,0.063,0.165-0.012,0.229-0.063c0.063-0.051,0.179-0.076,0.191-0.178c0.013-0.102-0.153-0.178-0.203-0.216c-0.051-0.038,0.127-0.076,0.191-0.127c0.063-0.05,0.177-0.14,0.228-0.063c0.051,0.077,0.026,0.381,0.051,0.432c0.025,0.051,0.279,0.127,0.331,0.191c0.05,0.063,0.267,0.089,0.304,0.051c0.039-0.038,0.242,0.026,0.294,0.038c0.049,0.013,0.202-0.025,0.304-0.05c0.103-0.025,0.204-0.102,0.191,0.063c-0.013,0.165-0.051,0.419-0.179,0.546c-0.127,0.127-0.076,0.191-0.202,0.191c-0.06,0-0.113,0-0.156,0.021c-0.041-0.065-0.098-0.117-0.175-0.097c-0.152,0.038-0.344,0.038-0.47,0.19c-0.128,0.153-0.178,0.165-0.204,0.114c-0.025-0.051,0.369-0.267,0.317-0.331c-0.05-0.063-0.355-0.038-0.521-0.038c-0.166,0-0.305-0.102-0.433-0.127c-0.126-0.025-0.292,0.127-0.418,0.254c-0.128,0.127-0.216,0.038-0.331,0.038c-0.115,0-0.331-0.165-0.331-0.165s-0.216-0.089-0.305-0.089c-0.088,0-0.267-0.165-0.318-0.165c-0.05,0-0.19-0.115-0.088-0.166c0.101-0.05,0.202,0.051,0.101-0.229c-0.101-0.279-0.33-0.216-0.419-0.178c-0.088,0.039-0.724,0.025-0.775,0.025c-0.051,0-0.419,0.127-0.533,0.178c-0.116,0.051-0.318,0.115-0.369,0.14c-0.051,0.025-0.318-0.051-0.433,0.013c-0.151,0.084-0.291,0.216-0.33,0.216c-0.038,0-0.153,0.089-0.229,0.28c-0.077,0.19,0.013,0.355-0.128,0.419c-0.139,0.063-0.394,0.204-0.495,0.305c-0.102,0.101-0.229,0.458-0.355,0.623c-0.127,0.165,0,0.317,0.025,0.419c0.025,0.101,0.114,0.292-0.025,0.471c-0.14,0.178-0.127,0.266-0.191,0.279c-0.063,0.013,0.063,0.063,0.088,0.19c0.025,0.128-0.114,0.255,0.128,0.369c0.241,0.113,0.355,0.217,0.418,0.367c0.064,0.153,0.382,0.407,0.382,0.407s0.229,0.205,0.344,0.293c0.114,0.089,0.152,0.038,0.177-0.05c0.025-0.09,0.178-0.104,0.355-0.104c0.178,0,0.305,0.04,0.483,0.014c0.178-0.025,0.356-0.141,0.42-0.166c0.063-0.025,0.279-0.164,0.443-0.063c0.166,0.103,0.141,0.241,0.23,0.332c0.088,0.088,0.24,0.037,0.355-0.051c0.114-0.09,0.064-0.052,0.203,0.025c0.14,0.075,0.204,0.151,0.077,0.267c-0.128,0.113-0.051,0.293-0.
1128,0.47c-0.076,0.178-0.063,0.203,0.077,0.278c0.14,0.076,0.394,0.548,0.47,0.638c0.077,0.088-0.025,0.342,0.064,0.495c0.089,0.151,0.178,0.254,0.077,0.331c-0.103,0.075-0.28,0.216-0.292,0.47s0.051,0.431,0.102,0.521s0.177,0.331,0.241,0.419c0.064,0.089,0.14,0.305,0.152,0.445c0.013,0.14-0.024,0.306,0.039,0.381c0.064,0.076,0.102,0.191,0.216,0.292c0.115,0.103,0.152,0.318,0.152,0.318s0.039,0.089,0.051,0.229c0.012,0.14,0.025,0.228,0.152,0.292c0.126,0.063,0.215,0.076,0.28,0.013c0.063-0.063,0.381-0.077,0.546-0.063c0.165,0.013,0.355-0.075,0.521-0.19s0.407-0.419,0.496-0.508c0.089-0.09,0.292-0.255,0.268-0.356c-0.025-0.101-0.077-0.203,0.024-0.254c0.102-0.052,0.344-0.152,0.356-0.229c0.013-0.077-0.09-0.395-0.115-0.457c-0.024-0.064,0.064-0.18,0.165-0.306c0.103-0.128,0.421-0.216,0.471-0.267c0.051-0.053,0.191-0.267,0.217-0.433c0.024-0.167-0.051-0.369,0-0.457c0.05-0.09,0.013-0.165-0.103-0.268c-0.114-0.102-0.089-0.407-0.127-0.457c-0.037-0.051-0.013-0.319,0.063-0.345c0.076-0.023,0.242-0.279,0.344-0.393c0.102-0.114,0.394-0.47,0.534-0.496c0.139-0.025,0.355-0.229,0.368-0.343c0.013-0.115,0.38-0.547,0.394-0.635c0.013-0.09,0.166-0.42,0.102-0.497c-0.062-0.076-0.559,0.115-0.622,0.141c-0.064,0.025-0.241,0.127-0.446,0.113c-0.202-0.013-0.114-0.177-0.127-0.254c-0.012-0.076-0.228-0.368-0.279-0.381c-0.051-0.012-0.203-0.166-0.267-0.317c-0.063-0.153-0.152-0.343-0.254-0.458c-0.102-0.114-0.165-0.38-0.268-0.559c-0.101-0.178-0.189-0.407-0.279-0.572c-0.021-0.041-0.045-0.079-0.067-0.117c0.118-0.029,0.289-0.082,0.31-0.009c0.024,0.088,0.165,0.279,0.19,0.419s0.165,0.089,0.178,0.216c0.014,0.128,0.14,0.433,0.19,0.47c0.052,0.038,0.28,0.242,0.318,0.318c0.038,0.076,0.089,0.178,0.127,0.369c0.038,0.19,0.076,0.444,0.179,0.482c0.102,0.038,0.444-0.064,0.508-0.102s0.482-0.242,0.635-0.255c0.153-0.012,0.179-0.115,0.368-0.152c0.191-0.038,0.331-0.177,0.458-0.28c0.127-0.101,0.28-0.355,0.33-0.444c0.052-0.088,0.179-0.152,0.115-0.253c-0.063-0.103-0.331-0.254-0.433-0.268c-0.102-0.012-0.089-0.178-0.152-0.178s-0.051,0.088-0.178,0.153c-0.127,0.063-0.255,0.19-0.344,0.165s0.026-0.089-0.113-0.203s-0.192-0.14-0.192-0.228c0-0.089-0.278-0.255-0.304-0.382c-0.026-0.127,0.19-0.305,0.254-0.19c0.063,0.114,0.115,0.292,0.279,0.368c0.165,0.076,0.318,0.204,0.395,0.229c0.076,0.025,0.267-0.14,0.33-0.114c0.063,0.024,0.191,0.253,0.306,0.292c0.
1113,0.038,0.495,0.051,0.559,0.051s0.33,0.013,0.381-0.063c0.051-0.076,0.089-0.076,0.153-0.076c0.062,0,0.177,0.229,0.267,0.254c0.089,0.025,0.254,0.013,0.241,0.179c-0.012,0.164,0.076,0.305,0.165,0.317c0.09,0.012,0.293-0.191,0.293-0.191s0,0.318-0.012,0.433c-0.014,0.113,0.139,0.534,0.139,0.534s0.19,0.393,0.241,0.482s0.267,0.355,0.267,0.47c0,0.115,0.025,0.293,0.103,0.293c0.076,0,0.152-0.203,0.24-0.331c0.091-0.126,0.116-0.305,0.153-0.432c0.038-0.127,0.038-0.356,0.038-0.444c0-0.09,0.075-0.166,0.255-0.242c0.178-0.076,0.304-0.292,0.456-0.407c0.153-0.115,0.141-0.305,0.446-0.305c0.305,0,0.278,0,0.355-0.077c0.076-0.076,0.151-0.127,0.19,0.013c0.038,0.14,0.254,0.343,0.292,0.394c0.038,0.052,0.114,0.191,0.103,0.344c-0.013,0.152,0.012,0.33,0.075,0.33s0.191-0.216,0.191-0.216s0.279-0.189,0.267,0.013c-0.014,0.203,0.025,0.419,0.025,0.545c0,0.053,0.042,0.135,0.088,0.21c-0.005,0.059-0.004,0.119-0.009,0.178C27.388,17.153,27.387,17.327,27.436,17.39zM20.382,12.064c0.076,0.05,0.102,0.127,0.152,0.203c0.052,0.076,0.14,0.05,0.203,0.114c0.063,0.064-0.178,0.14-0.075,0.216c0.101,0.077,0.151,0.381,0.165,0.458c0.013,0.076-0.279,0.114-0.369,0.102c-0.089-0.013-0.354-0.102-0.445-0.127c-0.089-0.026-0.139-0.343-0.025-0.331c0.116,0.013,0.141-0.025,0.267-0.139c0.128-0.115-0.189-0.166-0.278-0.191c-0.089-0.025-0.268-0.305-0.331-0.394c-0.062-0.089-0.014-0.228,0.141-0.331c0.076-0.051,0.279,0.063,0.381,0c0.101-0.063,0.203-0.14,0.241-0.165c0.039-0.025,0.293,0.038,0.33,0.114c0.039,0.076,0.191,0.191,0.141,0.229c-0.052,0.038-0.281,0.076-0.356,0c-0.075-0.077-0.255,0.012-0.268,0.152C20.242,12.115,20.307,12.013,20.382,12.064zM16.875,12.28c-0.077-0.025,0.025-0.178,0.102-0.229c0.075-0.051,0.164-0.178,0.241-0.305c0.076-0.127,0.178-0.14,0.241-0.127c0.063,0.013,0.203,0.241,0.241,0.318c0.038,0.076,0.165-0.026,0.217-0.051c0.05-0.025,0.127-0.102,0.14-0.165s0.127-0.102,0.254-0.102s0.013,0.102-0.076,0.127c-0.09,0.025-0.038,0.077,0.113,0.127c0.153,0.051,0.293,0.191,0.459,0.279c0.165,0.089,0.19,0.267,0.088,0.292c-0.101,0.025-0.406,0.051-0.521,0.038c-0.114-0.013-0.254-0.127-0.419-0.153c-0.165-0.025-0.369-0.013-0.433,0.077s-0.292,0.05-0.395,0.05c-0.102,0-0.228,0.127-0.253,0.077C16.875,12.534,16.951,12.306,16.875,12.28zM17.307,9.458c0.063-0.178,0.419,0.038,0.355,0.127C17.599,9.675,17.264,9.579,17.307,9.458zM17.802,18.584c0.063,0.102-0.14,0.431-0.254,0.407c-0.113-0.027-0.076-0.318-0.038-0.382C17.548,18.545,17.769,18.529,17.802,18.584zM13.189,12.674c0.025-0.051-0.039-0.153-0.127-0.013C13.032,12.71,13.164,12.725,13.189,12.674zM20.813,8.035c0.141,0.076,0.339,0.107,0.433,0.013c0.076-0.076,0.013-0.204-0.05-0.216c-0.064-0.013-0.104-0.115,0.062-0.203c0.165-0.089,0.343-0.204,0.534-0.229c0.19-0.025,0.622-0.038,0.774,0c0.152,0.039,0.382-0.166,0.445-0.254s-0.203-0.152-0.279-0.051c-0.077,0.102-0.444,0.076-0.521,0.051c-0.076-0.025-0.686,0.102-0.812,0.102c-0.128,0-0.179,0.152-0.356,0.229c-0.179,0.076-0.42,0.191-0.509,0.229c-0.088,0.038-0.177,0.19-0.101,0.216C20.509,7.947,20.674,7.959,20.813,8.035zM14.142,12.674c0.064-0.089-0.051-0.217-0.114-0.217c-0.12,0-0.178,0.191-0.103,0.254C14.002,12.776,14.078,12.763,14.142,12.674zM14.714,13.017c0.064,0.025,0.114,0.102,0.165,0.114c0.052,0.013,0.217,0,0.167-0.127s-0.167-0.127-0.204-0.127c-0.038,0-0.203-0.038-0.267,0C14.528,12.905,14.65,12.992,14.714,13.017zM11.308,10.958c0.101,0.013,0.217-0.063,0.305-0.101c0.088-0.038,0.216-0.114,0.216-0.229c0-0.114-0.025-0.216-0.077-0.267c-0.051-0.051-0.14-0.064-0.216-0.051c-0.115,0.02-0.127,0.14-0.203,0.14c-0.076,0-0.165,0.025-0.14,0.114s0.077,0.152,0,0.19C11.117,10.793,11.205,10.946,11.308,10.958zM11.931,10.412c0.127,0.051,0.394,0.102,0.292,0.153c-0.102,0.051-0.28,0.19-0.305,0.267s0.216,0.153,0.216,0.153s-0.077,0.089-0.013,0.114c0.063,0.025,0.102-0.089,0.203-0.089c0.101,0,0.304,0.063,0.406,0.063c0.103,0,0.267-0.14,0.254-0.229c-0.013-0.089-0.14-0.229-0.254-0.28c-0.113-0.051-0.241-0.28-0.317-0.331c-0.076-0.051,0.076-0.178-0.013-0.267c-0.09-0.089-0.153-0.076-0.255-0.14c-0.102-0.063-0.191,0.013-0.254,0.089c-0.063,0.076-0.14-0.013-0.217,0.012c-0.102,0.035-0.063,0.166-0.012,0.229C11.714,10.221,11.804,10.361,11.931,10.412zM24.729,17.198c-0.083,0.037-0.153,0.47,0,0.521c0.152,0.052,0.241-0.202,0.191-0.267C24.868,17.39,24.843,17.147,24.729,17.198zM20.114,20.464c-0.159-0.045-0.177,0.166-0.304,0.306c-0.128,0.141-0.267,0.254-0.317,0.241c-0.052-0.013-0.331,0.089-0.242,0.279c0.089,0.191,0.076,0.382-0.013,0.472c-0.089,0.088,0.076,0.342,0.052,0.482c-0.026,0.139,0.037,0.229,0.215,0.229s0.242-0.064,0.318-0.229c0.076-0.166,0.088-0.331,0.164-0.47c0.077-0.141,0.141-0.434,0.179-0.51c0.038-0.075,0.114-0.316,0.102-0.457C20.254,20.669,20.204,20.489,20.114,20.464zM10.391,8.802c-0.069-0.06-0.229-0.102-0.306-0.11c-0.076-0.008-0.152,0.06-0.321,0.06c-0.168,0-0.279,0.067-0.347,0C9.349,8.684,9.068,8.65,9.042,8.692C9.008,8.749,8.941,8.751,9.008,8.87c0.069,0.118,0.12,0.186,0.179,0.178s0.262-0.017,0.288,0.051C9.5,9.167,9.569,9.226,9.712,9.184c0.145-0.042,0.263-0.068,0.296-0.119c0.033-0.051,0.263-0.059,0.263-0.059S10.458,8.861,10.391,8.802z")}})},
1"./src/shape/icon/GlobeAlt2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.GlobeAlt2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.GlobeAlt2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM8.251,7.48c0.122,0.055,0.255,0.104,0.28,0.137C8.57,7.668,8.621,7.823,8.557,7.861C8.492,7.9,8.39,7.887,8.376,7.771c-0.013-0.115-0.026-0.128-0.18-0.18c-0.022-0.007-0.035-0.01-0.051-0.015C8.18,7.544,8.216,7.512,8.251,7.48zM7.733,7.974c0.031,0.087,0.113,0.125,0,0.17C7.673,8.168,7.611,8.172,7.559,8.165C7.617,8.102,7.672,8.035,7.733,7.974zM16,27.533C9.639,27.533,4.466,22.36,4.466,16c0-0.085,0.011-0.168,0.013-0.254c0.004-0.003,0.008-0.006,0.012-0.009c0.129-0.102,0.283-0.359,0.334-0.45c0.052-0.089,0.181-0.154,0.116-0.256c-0.059-0.096-0.292-0.23-0.407-0.261c0.01-0.099,0.032-0.195,0.045-0.294c0.063,0.077,0.137,0.17,0.208,0.194c0.115,0.038,0.501,0.052,0.566,0.052c0.063,0,0.334,0.014,0.386-0.064c0.051-0.077,0.09-0.077,0.154-0.077c0.064,0,0.18,0.231,0.271,0.257c0.089,0.026,0.257,0.013,0.244,0.181c-0.012,0.166,0.077,0.309,0.167,0.321c0.09,0.013,0.296-0.194,0.296-0.194s0,0.322-0.012,0.438C6.846,15.698,7,16.124,7,16.124s0.193,0.397,0.244,0.488c0.052,0.09,0.27,0.36,0.27,0.476c0,0.117,0.026,0.297,0.104,0.297s0.155-0.206,0.244-0.335c0.091-0.128,0.117-0.31,0.155-0.438c0.039-0.129,0.039-0.36,0.039-0.45c0-0.091,0.076-0.168,0.257-0.245c0.181-0.077,0.309-0.296,0.463-0.412c0.155-0.116,0.142-0.309,0.452-0.309c0.308,0,0.282,0,0.36-0.078c0.077-0.077,0.154-0.128,0.192,0.013c0.039,0.142,0.257,0.347,0.296,0.399c0.039,0.052,0.116,0.193,0.104,0.348c-0.013,0.153,0.012,0.334,0.077,0.334c0.064,0,0.193-0.219,0.193-0.219s0.283-0.192,0.27,0.014c-0.014,0.205,0.025,0.425,0.025,0.552c0,0.13,0.232,0.438,0.232,0.362c0-0.079,0.103-0.296,0.103-0.413c0-0.114,0.064-0.063,0.231,0.051c0.167,0.116,0.283,0.349,0.283,0.349s0.168,0.154,0.193,0.219c0.026,0.064,0.206-0.025,0.244-0.104c0.039-0.076,0.065-0.115,0.167-0.141c0.104-0.026,0.231-0.026,0.271-0.168c0.039-0.142,0.154-0.308,0-0.502c-0.154-0.193-0.232-0.321-0.347-0.412c-0.117-0.09-0.206-0.322-0.206-0.322s0.244-0.218,0.321-0.296c0.079-0.077,0.193-0.025,0.207,0.064c0.013,0.091-0.115,0.168-0.141,0.361c-0.026,0.192,0.154,0.257,0.206,0.192c0.051-0.065,0.18-0.219,0.18-0.257c0-0.039-0.089-0.026-0.102-0.167c-0.013-0.142,0.166-0.245,0.23-0.207c0.066,0.039,0.477-0.051,0.67-0.154s0.308-0.322,0.425-0.412c0.116-0.089,0.515-0.386,0.489-0.527c-0.026-0.142,0.012-0.334-0.09-0.515c-0.103-0.18-0.232-0.295-0.283-0.373c-0.051-0.077,0.219-0.09,0.347-0.206c0.129-0.116,0-0.219-0.064-0.206c-0.064,0.013-0.232,0.052-0.296,0.039c-0.064-0.013-0.103-0.077-0.206-0.155c-0.102-0.077,0.026-0.192,0.091-0.179c0.064,0.013,0.23-0.129,0.308-0.193c0.077-0.064,0.193-0.115,0.154-0.051c-0.038,0.064-0.128,0.296-0.026,0.309c0.104,0.013,0.348-0.193,0.388-0.18c0.038,0.013,0.102,0.18,0.064,0.257c-0.039,0.077-0.039,0.206,0.013,0.193c0.051-0.013,0.154-0.129,0.18-0.09c0.027,0.039,0.154,0.116,0.09,0.257c-0.063,0.142-0.193,0.193-0.039,0.284c0.154,0.089,0.206,0.012,0.322-0.052c0.115-0.064,0.193-0.347,0.128-0.438c-0.064-0.09-0.218-0.27-0.218-0.334c0-0.064,0.257-0.064,0.257-0.167s0.09-0.18,0.18-0.219c0.091-0.039,0.206-0.206,0.244-0.154c0.039,0.052,0.271,0.116,0.334,0.039c0.064-0.077,0.4-0.36,0.605-0.515c0.206-0.154,0.283-0.334,0.336-0.515c0.051-0.18,0.128-0.296,0.102-0.437v0c0.077,0.18,0.09,0.309,0.077,0.45c-0.013,0.142,0,0.438,0.026,0.476c0.025,0.039,0.129,0.128,0.192,0.103c0.064-0.025-0.025-0.283-0.025-0.334c0-0.052,0.09-0.129,0.142-0.142c0.052-0.013,0-0.231-0.065-0.322c-0.063-0.09-0.154-0.142-0.102-0.154c0.051-0.013,0.115-0.116,0.077-0.142c-0.039-0.025-0.014-0.116-0.103-0.09c-0.065,0.019-0.241-0.015-0.235,0.095c-0.037-0.11-0.116-0.183-0.216-0.172c-0.116,0.013-0.181,0.077-0.296,0.077s-0.025-0.18-0.077-0.18c-0.051,0-0.168,0.167-0.231,0.077c-0.064-0.09,0.18-0.206,0.373-0.27c0.192-0.064,0.514-0.438,0.644-0.451c0.128-0.013,0.45,0.026,0.733,0.013c0.283-0.013,0.373-0.129,0.463-0.064s0.283,0.142,0.399,0.129c0.116-0.014,0.064,0,0.244-0.129c0.18-0.129,0.348-0.193,0.438-0.296c0.09-0.103,0.335-0.18,0.348-0.077c0.014,0.103-0.026,0.206,0.077,0.206s0.258-0.103,0.386-0.154c0.129-0.051,0.231-0.116,0.231-0.116s-0.527,0.36-0.655,0.438c-0.129,0.077-0.438,0.129-0.567,0.283c-0.128,0.155-0.205,0.206-0.192,0.374c0.014,0.167,0.231,0.386,0.128,0.54c-0.103,0.154-0.141,0.373-0.141,0.373s0.154-0.219,0.373-0.36s0.348-0.334,0.425-0.412s0.309-0.091,0.309-0.181s0.064-0.206,0.104-0.309c0.038-0.103-0.077-0.078,0-0.206c0.076-0.129,0.064-0.232,0.45-0.232s0.257,0.026,0.566,
10.013c0.309-0.013,0.424-0.167,0.72-0.245c0.296-0.077,0.527-0.128,0.618-0.089c0.09,0.038,0.232,0.012,0.141-0.078c-0.089-0.09-0.295-0.219-0.193-0.245c0.104-0.026,0.207-0.039,0.246-0.142c0.039-0.103-0.142-0.283-0.039-0.386c0.104-0.103-0.077-0.231-0.207-0.257c-0.128-0.025-0.63,0.026-0.731-0.025c-0.104-0.052-0.271-0.116-0.322-0.078c-0.052,0.039-0.168,0.245-0.168,0.245s-0.09,0.025-0.168-0.09c-0.076-0.116-0.5-0.103-0.629-0.103s-0.271,0.025-0.413,0.039c-0.141,0.013-0.219,0.052-0.322-0.039c-0.102-0.09-0.243-0.129-0.296-0.167c-0.051-0.039-0.334-0.039-0.553-0.012c-0.218,0.025-0.438,0.025-0.438,0.025s-0.104-0.039-0.257-0.129c-0.154-0.09-0.309-0.154-0.361-0.154c-0.051,0-0.449,0.064-0.539,0c-0.091-0.064-0.181-0.103-0.245-0.103s-0.115-0.103-0.038-0.103s0.437-0.103,0.437-0.103s-0.103-0.142-0.231-0.142c-0.128,0-0.359-0.064-0.424-0.064s-0.014,0.064-0.142,0.039c-0.13-0.026-0.258-0.078-0.335-0.026c-0.076,0.051-0.258,0.128-0.064,0.18c0.193,0.052,0.373,0,0.425,0.078c0.052,0.077,0,0.115,0,0.167s-0.103,0.193-0.167,0.219c-0.064,0.025-0.143-0.039-0.27,0.025c-0.129,0.064-0.451,0.013-0.49,0.052c-0.038,0.039-0.115-0.103-0.18-0.077c-0.064,0.025-0.232,0.193-0.322,0.18c-0.089-0.013-0.206-0.103-0.206-0.206s-0.038-0.232-0.077-0.258c-0.038-0.025-0.322-0.039-0.425-0.025c-0.103,0.013-0.424,0.038-0.477,0.09c-0.052,0.052-0.193,0.09-0.283,0.09s-0.167-0.09-0.36-0.116c-0.192-0.026-0.617-0.039-0.669-0.026s-0.218-0.025-0.155-0.077c0.065-0.051,0.257-0.219,0.143-0.295c-0.117-0.078-0.375-0.078-0.489-0.09c-0.117-0.013-0.232-0.039-0.413-0.013c-0.181,0.026-0.219,0.116-0.296,0.039c-0.077-0.077,0.193,0.039-0.077-0.077c-0.27-0.116-0.399-0.103-0.477-0.064c-0.077,0.039,0.013,0.025-0.192,0.103c-0.206,0.078-0.322,0.116-0.374,0.129c-0.051,0.012-0.372-0.065-0.411-0.091c-0.038-0.025-0.181,0.013-0.309,0.064S9.895,7.025,9.767,7C9.638,6.973,9.432,6.973,9.303,7.025C9.174,7.076,9.084,7.076,8.956,7.166c-0.13,0.09-0.373,0.142-0.373,0.142S8.522,7.305,8.448,7.301C10.474,5.541,13.111,4.466,16,4.466c6.361,0,11.534,5.173,11.534,11.534S22.36,27.533,16,27.533zM14.888,19.92c0,0,0.207-0.026,0.207-0.117c0-0.089-0.207-0.205-0.282-0.102c-0.078,0.102-0.219,0.205-0.207,0.296C14.625,20.138,14.888,19.92,14.888,19.92zM14.875,17.023c-0.181,0.233-0.167,0.182-0.296,0.128c-0.128-0.05-0.334,0.116-0.296,0.182c0.039,0.064,0.322-0.014,0.386,0.102c0.065,0.116,0.065,0.129,0.193,0.104c0.128-0.026,0.257-0.205,0.219-0.295C15.043,17.151,14.875,17.023,14.875,17.023zM14.837,18.245c-0.051,0-0.412,0.064-0.451,0.079c-0.039,0.013-0.27-0.025-0.27-0.025c-0.09,0.089-0.026,0.179,0.116,0.166s0.438-0.052,0.502-0.052C14.799,18.413,14.888,18.245,14.837,18.245zM14.284,14.668c-0.19,0.03-0.308,0.438-0.155,0.425C14.284,15.081,14.451,14.643,14.284,14.668zM14.734,16.959c-0.052-0.064-0.181-0.271-0.323-0.219c-0.042,0.017-0.153,0.245-0.012,0.245C14.541,16.985,14.786,17.023,14.734,16.959zM14.85,16.805c0.232-0.013,0.167-0.245-0.013-0.257C14.786,16.544,14.618,16.818,14.85,16.805zM17.591,18.928c-0.193-0.039-0.244-0.102-0.45-0.205c-0.207-0.103-0.67-0.103-0.682-0.039c-0.014,0.064,0,0-0.155-0.05c-0.153-0.054-0.271,0-0.309-0.091c-0.038-0.091-0.128-0.117-0.244-0.002c-0.097,0.097-0.142,0.104,0.078,0.143c0.218,0.039,0.283,0.039,0.192,0.141c-0.09,0.104-0.154,0.233-0.077,0.244c0.077,0.015,0.309-0.05,0.334,0c0.026,0.054-0.051,0.064,0.207,0.105c0.258,0.037,0.309,0.128,0.359,0.178c0.051,0.052,0.206,0.22,0.104,0.22c-0.104,0-0.219,0.128-0.142,0.143c0.077,0.013,0.309-0.039,0.321,0c0.014,0.037,0.143,0.283,0.271,0.271c0.129-0.013,0.206-0.244,0.27-0.31c0.065-0.064,0.322-0.104,0.349,0.012c0.026,0.116,0.104,0.233,0.257,0.311c0.154,0.076,0.335,0.154,0.348,0.089c0.013-0.064-0.077-0.309-0.181-0.346c-0.103-0.041-0.282-0.259-0.282-0.348c0-0.091-0.155-0.117-0.232-0.182C17.849,19.147,17.784,18.967,17.591,18.928zM8.042,17.023c-0.084,0.037-0.155,0.476,0,0.527c0.154,0.052,0.244-0.205,0.193-0.271C8.183,17.218,8.158,16.973,8.042,17.023zM15.429,18.117c-0.118-0.05-0.335,0.424-0.181,0.463C15.403,18.62,15.518,18.156,15.429,18.117zM15.687,13.703c0.077,0,0.18-0.051,0.18-0.193c0-0.142,0.18,0,0.27-0.013s0.141-0.103,0.18-0.206c0.005-0.013,0.008-0.021,0.009-0.027c-0.003,0.024-0.001,0.093,0.095,0.117c0.154,0.038,0.205-0.064,0.205-0.103s0.283-0.103,0.336-0.142c0.051-0.038,0.258-0.103,0.27-0.154c0.013-0.051,0-0.348,0.064-0.373c0.064-0.026,0.154-0.026,0.052-0.206c-0.104-0.181-0.104-0.348-0.232-0.271c-0.095,0.057-0.038,0.284-0.115,0.438s-0.142,0.296-0.193,0.296s-0.321,0.103-0.399,0.18c-0.076,0.077-0.45-0.064-0.501,0c-0.052,0.064-0.154,0.141-0.219,0.193c-0.065,0.051-0.245,0.013-0.207,0.167C15.518,13.562,15.609,13.703,15.687,13.703zM17.449,12.056c0.18-0.013,0.348-0.064,0.348-0.064s0.271,0.013,0.232-0.116c-0.04-0.128-0.322-0.141-0.375-0.128c-0.051,0.013-0.142-0.142-0.244-0.116c-0.096,0.023-0.128,0.155-0.128,0.193c0,0.039-0.36,0.115-0.245,0.219C17.153,12.146,17.27,12.069,17.449,12.056zM13.91,19.058c0.104,0.064,0.296-0.219,0.349-0.13c0.051,0.091-0.013,0.13,0.076,0.246c0.091,0.114,0.258,0.102,0.258,0.102s-0.013-0.309-0.155-0.387c-0.142-0.077-0.232-0.166-0.064-0.141c0.167,0.026,0.257-0.039,0.219-0.114c-0.039-0.078-0.283-0.039-0.361-0.026s-0.193-0.052-0.193-0.052c-0.077,0.024-0.063,0.089-0.09,0.219C13.923,18.902,13.807,18.992,13.91,19.058zM20.924,21.618c-0.231-0.052-0.077,0.039,0,0.154c0.077,0.116,0.232,0.176,0.258,0.05C21.193,21.759,21.155,21.67,20.924,21.618zM21.915,24.744c-0.077,0.064,0,0.091-0.219,0.22c-0.22,0.13-0.49,0.271-0.54
11,0.386c-0.052,0.116,0.051,0.181,0.258,0.192c0.206,0.013,0.154,0.053,0.296-0.103s0.271-0.244,0.438-0.373c0.168-0.128,0.168-0.322,0.168-0.322s-0.181-0.178-0.193-0.141C22.1,24.665,21.992,24.681,21.915,24.744zM18.504,21.618c0.014-0.116-0.219-0.116-0.334-0.207c-0.116-0.089-0.128-0.359-0.193-0.515c-0.064-0.153-0.192-0.257-0.322-0.397c-0.128-0.143-0.192-0.465-0.23-0.438c-0.039,0.025-0.154,0.399-0.064,0.515c0.09,0.116-0.039,0.348-0.103,0.503c-0.065,0.153-0.22-0.026-0.349-0.104c-0.129-0.078-0.308-0.128-0.398-0.219c-0.09-0.091,0.155-0.335,0.091-0.426c-0.065-0.09-0.412-0.013-0.45-0.013c-0.039,0-0.116-0.128-0.194-0.128c-0.077,0-0.064,0.258-0.064,0.258s-0.078-0.091-0.193-0.207c-0.117-0.115,0.012,0.077-0.103,0.193c-0.117,0.117-0.079,0.078-0.129,0.206c-0.051,0.129-0.167,0.077-0.283-0.052c-0.116-0.128-0.179-0.037-0.258,0c-0.077,0.039-0.141,0.259-0.18,0.309c-0.039,0.052-0.309,0.117-0.374,0.182c-0.064,0.062-0.09,0.27-0.09,0.322c0,0.05-0.271,0.023-0.361,0.089c-0.09,0.064-0.23,0.025-0.321,0.025c-0.09,0-0.399,0.244-0.502,0.308c-0.103,0.066-0.103,0.298-0.051,0.362c0.051,0.063,0.154,0.219,0.09,0.244c-0.064,0.026-0.104,0.206,0.051,0.359c0.154,0.155,0.103,0.194,0.115,0.271c0.014,0.077,0.078,0.104,0.181,0.232c0.102,0.128-0.181,0.231-0.219,0.31c-0.039,0.076,0.091,0.192,0.167,0.257c0.077,0.063,0.271,0.026,0.386-0.013c0.117-0.039,0.245-0.143,0.321-0.155c0.079-0.013,0.438-0.026,0.438-0.026s0.129-0.192,0.219-0.296c0.089-0.102,0.372-0.013,0.372-0.013s0.117-0.076,0.426-0.141c0.309-0.065,0.179,0.064,0.296,0.104c0.115,0.037,0.27,0.062,0.359,0.128c0.09,0.064,0,0.218-0.012,0.283c-0.014,0.064,0.219,0.038,0.23-0.026c0.014-0.064,0.077-0.128,0.207-0.205c0.128-0.078,0.025,0.114,0.076,0.231c0.052,0.116,0.129-0.157,0.129-0.026c0,0.039,0.039,0.078,0.051,0.116c0.014,0.039,0.181,0.052,0.181,0.18c0,0.13,0,0.207,0.039,0.231c0.038,0.026,0.244,0,0.335,0.155c0.089,0.154,0.154,0.013,0.205-0.052c0.052-0.064,0.231,0.026,0.283,0.078c0.052,0.05,0.193-0.104,0.387-0.155c0.192-0.051,0.167-0.039,0.219-0.115c0.051-0.078,0.09-0.283,0.205-0.438c0.115-0.153,0.271-0.424,0.271-0.631c0-0.206-0.014-0.682-0.155-0.899C18.761,21.953,18.492,21.733,18.504,21.618zM18.029,24.77c-0.065-0.013-0.207-0.062-0.207-0.062c-0.142,0.141,0.142,0.141,0.104,0.283c-0.039,0.141,0.193,0.089,0.257,0.064c0.063-0.027,0.22-0.323,0.193-0.399C18.351,24.577,18.093,24.783,18.029,24.77zM22.803,24.178c-0.052,0-0.077,0.064-0.192,0c-0.117-0.063-0.091-0.037-0.168-0.167c-0.077-0.127-0.091-0.296-0.219-0.23c-0.051,0.025,0,0.168,0.051,0.218c0.053,0.052,0.077,0.231,0.064,0.283c-0.012,0.052-0.231,0.116-0.129,0.18c0.104,0.064,0.297,0,0.271,0.078c-0.025,0.077-0.129,0.179-0.013,0.205c0.115,0.025,0.154-0.089,0.207-0.178c0.051-0.093,0.089-0.169,0.179-0.221C22.944,24.294,22.854,24.178,22.803,24.178zM22.815,21.18c0.168,0.064,0.464-0.231,0.347-0.27C23.047,20.871,22.815,21.18,22.815,21.18zM13.923,19.906c-0.029,0.115,0.193,0.167,0.206,0.039C14.141,19.816,13.949,19.803,13.923,19.906zM14.27,16.47c-0.064,0.065-0.257,0.193-0.283,0.31c-0.025,0.115,0.309-0.182,0.399-0.296c0.091-0.117,0.27-0.052,0.308-0.117c0.04-0.063,0.04-0.063,0.04-0.063s-0.142-0.025-0.257-0.063c-0.117-0.039-0.258,0.102-0.193-0.104c0.064-0.206,0.257-0.167,0.219-0.322c-0.039-0.154-0.168-0.193-0.207-0.193c-0.09,0,0.013,0.141-0.116,0.231c-0.128,0.09-0.271,0.128-0.193,0.283C14.064,16.29,14.334,16.405,14.27,16.47zM13.254,19.751c0.013-0.076-0.142-0.192-0.206-0.192c-0.065,0-0.386-0.077-0.386-0.077c-0.058,0.023-0.135,0.045-0.158,0.077c-0.007-0.011-0.022-0.024-0.049-0.039c-0.142-0.075-0.309,0-0.361-0.102c-0.05-0.104-0.127-0.104-0.179-0.039c-0.094,0.117,0.025,0.206,0.063,0.231c0.038,0.024,0.181,0.052,0.309,0.039c0.08-0.008,0.181-0.027,0.21-0.059c0.004,0.014,0.016,0.027,0.035,0.044c0.103,0.092,0.167,0.13,0.321,0.116C13.009,19.74,13.241,19.829,13.254,19.751zM12.881,18.992c0.065,0,0.193,0,0.283,0.026c0.09,0.025,0.386,0.05,0.373-0.064c-0.013-0.115-0.038-0.297,0.089-0.411c0.13-0.117,0.257-0.18,0.193-0.348c-0.063-0.167-0.193-0.271-0.103-0.349c0.09-0.076,0.192-0.102,0.192-0.166c0-0.065-0.217,0.18-0.244-0.246c-0.005-0.091-0.206,0.025-0.219,0.116c-0.012,0.091,0.142,0.167-0.103,0.167c-0.245,0-0.257,0.194-0.309,0.232c-0.052,0.039-0.103,0.051-0.207,0.076c-0.102,0.026-0.127,0.13-0.153,0.194c-0.025,0.063-0.206-0.116-0.257-0.064c-0.051,0.052-0.013,0.296,0.077,0.501C12.585,18.863,12.816,18.992,12.881,18.992zM11.979,18.928c0.065-0.077,0.038-0.192-0.063-0.18c-0.103,0.013-0.193-0.168-0.36-0.283c-0.168-0.114-0.296-0.194-0.451-0.36c-0.154-0.167-0.347-0.271-0.45-0.359c-0.104-0.091-0.257-0.13-0.322-0.116c-0.159,0.032,0.231,0.309,0.271,0.346c0.039,0.041,0.387,0.335,0.387,0.478s0.231,0.476,0.296,0.527c0.064,0.052,0.385,0.244,0.437,0.348c0.052,0.103,0.167,0.13,0.167-0.013C11.89,19.174,11.916,19.006,11.979,18.928zM11.002,17.474c0.064,0.232,0.193,0.464,0.244,0.555c0.052,0.089,0.271,0.217,0.348,0.281c0.077,0.064,0.192-0.
1024,0.143-0.102c-0.052-0.078-0.155-0.192-0.167-0.283c-0.013-0.091-0.078-0.233-0.181-0.387c-0.102-0.153-0.192-0.192-0.257-0.295c-0.064-0.104-0.296-0.297-0.296-0.297c-0.102,0.013-0.102,0.205-0.051,0.271C10.834,17.28,10.938,17.243,11.002,17.474z")}})},
1"./src/shape/icon/Hail.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Hail=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Hail",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.372,6.912c-0.093-3.925-3.302-7.078-7.248-7.08c-2.638,0.002-4.942,1.412-6.208,3.518c-0.595-0.327-1.28-0.518-2.01-0.518C7.627,2.834,5.773,4.639,5.69,6.898c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h15.875c3.312,0,6-2.688,6-6C29.434,9.944,27.732,7.715,25.372,6.912zM23.436,16.584H7.562c-2.209-0.006-3.997-1.793-4.001-4c-0.002-1.983,1.45-3.619,3.35-3.933c0.265-0.043,0.502-0.19,0.657-0.414C7.723,8.015,7.78,7.74,7.731,7.475C7.703,7.326,7.686,7.187,7.686,7.051c0.004-1.225,0.995-2.217,2.22-2.219c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.31c0.342-0.066,0.626-0.308,0.748-0.631c0.749-1.992,2.662-3.412,4.911-3.41c2.898,0.004,5.244,2.351,5.251,5.25c0,0.16-0.009,0.325-0.026,0.496c-0.05,0.518,0.305,0.984,0.814,1.079c1.859,0.345,3.273,1.966,3.271,3.923C27.43,14.791,25.645,16.578,23.436,16.584zM11.503,23.709c-0.784-0.002-1.418-0.636-1.418-1.416c0-0.785,0.634-1.416,1.418-1.418c0.78,0.002,1.413,0.633,1.416,1.418C12.917,23.073,12.284,23.707,11.503,23.709zM19.002,23.709c-0.783-0.002-1.418-0.636-1.418-1.416c0-0.785,0.635-1.416,1.418-1.418c0.779,0.002,1.414,0.633,1.414,1.418C20.417,23.073,19.784,23.707,19.002,23.709zM7.503,28.771c-0.783-0.002-1.417-0.637-1.417-1.418s0.634-1.414,1.417-1.416c0.78,0.002,1.415,0.635,1.415,1.416C8.917,28.135,8.284,28.77,7.503,28.771zM15.001,28.771c-0.782-0.002-1.417-0.637-1.417-1.418s0.634-1.414,1.417-1.416c0.78,0.002,1.413,0.635,1.415,1.416C16.415,28.135,15.784,28.77,15.001,28.771zM22.5,28.771c-0.782-0.002-1.416-0.634-1.416-1.416c0-0.785,0.634-1.418,1.416-1.42c0.781,0.002,1.414,0.635,1.418,1.42C23.915,28.138,23.282,28.77,22.5,28.771z")}})},
1"./src/shape/icon/Hammer.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Hammer=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Hammer",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M7.831,29.354c0.685,0.353,1.62,1.178,2.344,0.876c0.475-0.195,0.753-1.301,1.048-1.883c2.221-4.376,4.635-9.353,6.392-13.611c0-0.19,0.101-0.337-0.049-0.595c0.983-1.6,1.65-3.358,2.724-5.138c0.34-0.566,0.686-1.351,1.163-1.577l0.881-0.368c1.12-0.288,1.938-0.278,2.719,0.473c0.396,0.383,0.578,1.015,0.961,1.395c0.259,0.26,1.246,0.899,1.613,0.8c0.285-0.077,0.52-0.364,0.72-0.728l0.696-1.286c0.195-0.366,0.306-0.718,0.215-0.999c-0.117-0.362-1.192-0.84-1.552-0.915c-0.528-0.113-1.154,0.081-1.692-0.041c-1.057-0.243-1.513-0.922-1.883-2.02c-2.608-1.533-6.119-2.53-10.207-1.244c-1.109,0.349-2.172,0.614-2.901,1.323c-0.146,0.412,0.143,0.494,0.446,0.489c-0.237,0.216-0.62,0.341-0.399,0.848c2.495-1.146,7.34-1.542,7.
1669,0.804c0.072,0.522-0.395,1.241-0.682,1.835c-0.905,1.874-2.011,3.394-2.813,5.091c-0.298,0.017-0.366,0.18-0.525,0.287c-2.604,3.8-5.451,8.541-7.9,12.794c-0.326,0.566-1.098,1.402-1.002,1.906C5.961,28.641,7.146,29,7.831,29.354z")}})},
1"./src/shape/icon/HammerAndScrewDriver.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.HammerAndScrewDriver=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.HammerAndScrewDriver",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.537,9.859c-0.473-0.259-1.127-0.252-1.609-0.523c-0.943-0.534-1.186-1.316-1.226-2.475c-2.059-2.215-5.138-4.176-9.424-4.114c-1.162,0.017-2.256-0.035-3.158,0.435c-0.258,0.354-0.004,0.516,0.288,0.599c-0.29,0.138-0.692,0.147-0.626,0.697c2.72-0.383,7.475,0.624,7.116,2.966c-0.08,0.521-0.735,1.076-1.179,1.563c-1.263,1.382-2.599,2.45-3.761,3.667l0.336,0.336c0.742-0.521,1.446-0.785,2.104-0.785c0.707,0,1.121,0.297,1.276,0.433c0.575-0.618,1.166-1.244,1.839-1.853c0.488-0.444,1.047-1.099,1.566-1.178l0.949-0.101c1.156,0.047,1.937,0.29,2.471,1.232c0.27,0.481,0.262,1.139,0.521,1.613c0.175,0.324,0.937,1.218,1.316,1.228c0.294,0.009,0.603-0.199,0.899-0.49l1.033-1.034c0.291-0.294,0.501-0.6,0.492-0.896C29.754,10.801,28.861,10.035,28.537,9.859zM13.021,15.353l-0.741-0.741c-3.139,2.643-6.52,5.738-9.531,8.589c-0.473,0.443-1.452,1.021-1.506,1.539c-0.083,0.781,0.95,1.465,1.506,2c0.556,0.533,1.212,1.602,1.994,1.51c0.509-0.043,1.095-1.029,1.544-1.502c2.255-2.374,4.664-4.976,6.883-7.509c-0.312-0.371-0.498-0.596-0.498-0.596C12.535,18.451,11.779,17.272,13.021,15.353zM20.64,15.643c-0.366-0.318-1.466,0.143-1.777-0.122c-0.311-0.266,0.171-1.259-0.061-1.455c-0.482-0.406-0.77-0.646-0.77-0.646s-0.862-0.829-2.812,0.928L7.44,6.569C7.045,6.173,7.203,4.746,7.203,4.746L3.517,2.646L2.623,3.541l2.1,3.686c0,0,1.428-0.158,1.824,0.237l7.792,7.793c-1.548,1.831-0.895,2.752-0.895,2.752s0.238,0.288,0.646,0.771c0.196,0.23,1.188-0.249,1.455,0.061c0.264,0.312-0.196,1.41,0.12,1.777c2.666,3.064,6.926,7.736,8.125,7.736c0.892,0,2.021-0.724,2.948-1.64c0.925-0.917,1.639-2.055,1.639-2.947C28.377,22.567,23.704,18.309,20.64,15.643z")}})},
1"./src/shape/icon/HangUp.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.HangUp=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.HangUp",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.563,10.494c-7.35-7.349-19.265-7.348-26.612,0.001c-1.796,1.796-0.247,6.84-0.247,6.84c0.135,0.443,0.616,0.72,1.067,0.614l6.898-1.604c0.451-0.105,0.82-0.57,0.82-1.033l0.001-3.685c0-0.463,0.379-0.842,0.842-0.842h8.285c0.464,0,0.843,0.379,0.843,0.842l-0.001,3.471c0.001,0.462,0.375,0.907,0.83,0.986l7.635,1.316c0.456,0.08,0.873-0.232,0.926-0.692C29.851,16.708,30.359,12.29,28.563,10.494zM17.264,14.072h-3.501v4.39h-2.625l4.363,7.556l4.363-7.556h-2.6V14.072z")}})},
1"./src/shape/icon/Help.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Help=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Help",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M4.834,4.834L4.833,4.833c-5.889,5.892-5.89,15.443,0.001,21.334s15.44,5.888,21.33-0.002c5.891-5.891,5.893-15.44,0.002-21.33C20.275-1.056,10.725-1.056,4.834,4.834zM25.459,5.542c0.833,0.836,1.523,1.757,2.104,2.726l-4.08,4.08c-0.418-1.062-1.053-2.06-1.912-2.918c-0.859-0.859-1.857-1.494-2.92-1.913l4.08-4.08C23.7,4.018,24.622,4.709,25.459,5.542zM10.139,20.862c-2.958-2.968-2.959-7.758-0.001-10.725c2.966-2.957,7.756-2.957,10.725,0c2.954,2.965,2.955,7.757-0.001,10.724C17.896,23.819,13.104,23.817,10.139,20.862zM5.542,25.459c-0.833-0.837-1.524-1.759-2.105-2.728l4.081-4.081c0.418,1.063,1.055,2.06,1.914,2.919c0.858,0.859,1.855,1.494,2.917,1.913l-4.081,4.081C7.299,26.982,6.379,26.292,5.542,25.459zM8.268,3.435l4.082,4.082C11.288,7.935,10.29,8.571,9.43,9.43c-0.858,0.859-1.494,1.855-1.912,2.918L3.436,8.267c0.58-0.969,1.271-1.89,2.105-2.727C6.377,4.707,7.299,4.016,8.268,3.435zM22.732,27.563l-4.082-4.082c1.062-0.418,2.061-1.053,2.919-1.912c0.859-0.859,1.495-1.857,1.913-2.92l4.082,4.082c-0.58,0.969-1.271,1.891-2.105,2.728C24.623,26.292,23.701,26.983,22.732,27.563z")}})},
1"./src/shape/icon/History.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.History=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.History",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M10.666,18.292c0.275,0.479,0.889,0.644,1.365,0.367l3.305-1.677C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876c0-0.552-0.448-1-1-1c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96C10.553,17.204,10.389,17.816,10.666,18.292zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.888,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM6.624,15.5c0,0.553,0.449,1,1,1c0.552,0,1-0.447,1.001-1c-0.001-0.552-0.448-0.999-1.001-1C7.071,14.5,6.624,14.948,6.624,15.5zM14.501,23.377c0,0.553,0.448,1,1,1c0.552,0,1-0.447,1-1s-0.448-1-1-1C14.949,22.377,14.501,22.824,14.501,23.377zM10.696,21.822c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.276,1.091,0.11,1.365-0.365c0.277-0.479,0.113-1.09-0.365-1.367C11.584,21.18,10.973,21.344,10.696,21.822zM21.822,10.696c-0.479,0.278-0.643,0.89-0.366,1.367s0.888,0.642,1.366,0.365c0.478-0.275,0.643-0.888,0.365-1.366C22.913,10.584,22.298,10.42,21.822,10.696zM21.456,18.938c-0.274,0.479-0.112,1.092,0.367,1.367c0.477,0.274,1.089,0.112,1.364-0.365c0.276-0.479,0.112-1.092-0.364-1.367C22.343,18.297,21.73,18.461,21.456,18.938zM24.378,15.5c0-0.551-0.448-1-1-1c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1C23.93,16.5,24.378,16.053,24.378,15.5zM18.573,22.822c0.274,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.89,0.365-1.365c-0.277-0.479-0.888-0.643-1.365-0.367C18.46,21.732,18.296,22.344,18.573,22.822zM18.939,9.546c0.477,0.276,1.088,0.112,1.365-0.366c0.276-0.478,0.113-1.091-0.367-1.367c-0.477-0.276-1.09-0.111-1.364,0.366C18.298,8.659,18.462,9.27,18.939,9.546zM28.703,14.364C28.074,7.072,21.654,1.67,14.364,2.295c-3.254,0.281-6.118,1.726-8.25,3.877L4.341,4.681l-1.309,7.364l7.031-2.548L8.427,8.12c1.627-1.567,3.767-2.621,6.194-2.833c5.64-0.477,10.595,3.694,11.089,9.335c0.477,5.64-3.693,10.595-9.333,11.09c-5.643,0.476-10.599-3.694-11.092-9.333c-0.102-1.204,0.019-2.373,0.31-3.478l-3.27,1.186c-0.089,0.832-0.106,1.684-0.031,2.55c0.629,7.29,7.048,12.691,14.341,12.066C23.926,28.074,29.328,21.655,28.703,14.364z")}})},
1"./src/shape/icon/Home.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Home=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Home",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M27.812,16l-3.062-3.062V5.625h-2.625v4.688L16,4.188L4.188,16L7,15.933v11.942h17.875V16H27.812zM16,26.167h-5.833v-7H16V26.167zM21.667,23.167h-3.833v-4.042h3.833V23.167z")}})},
1"./src/shape/icon/IMac.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.IMac=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.IMac",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.936,2.099H2.046c-0.506,0-0.919,0.414-0.919,0.92v21.097c0,0.506,0.413,0.919,0.919,0.919h17.062v-0.003h9.828c0.506,0,0.92-0.413,0.92-0.921V3.019C29.854,2.513,29.439,2.099,28.936,2.099zM28.562,20.062c0,0.412-0.338,0.75-0.75,0.75H3.062c-0.413,0-0.75-0.338-0.75-0.75v-16c0-0.413,0.337-0.75,0.75-0.75h24.75c0.412,0,0.75,0.337,0.75,0.75V20.062zM20.518,28.4c-0.033-0.035-0.062-0.055-0.068-0.062l-0.01-0.004l-0.008-0.004c0,0-0.046-0.021-0.119-0.062c-0.108-0.056-0.283-0.144-0.445-0.237c-0.162-0.097-0.32-0.199-0.393-0.271c-0.008-0.014-0.035-0.079-0.058-0.17c-0.083-0.32-0.161-0.95-0.22-1.539h-7.5c-0.023,0.23-0.048,0.467-0.076,0.691c-0.035,0.272-0.073,0.524-0.113,0.716c-0.02,0.096-0.039,0.175-0.059,0.23c-0.009,0.025-0.018,0.05-0.024,0.062c-0.003,0.006-0.005,0.01-0.007,0.013c-0.094,0.096-0.34,0.246-0.553,0.36c-0.107,0.062-0.209,0.11-0.283,0.146c-0.074,0.037-0.119,0.062-0.119,0.062l-0.007,0.004l-0.008,0.004c-0.01,0.009-0.038,0.022-0.07,0.062c-0.031,0.037-0.067,0.103-0.067,0.185c0.002,0.002-0.004,0.037-0.006,0.088c0,0.043,0.007,0.118,0.068,0.185c0.061,0.062,0.143,0.08,0.217,0.08h9.716c0.073,0,0.153-0.021,0.215-0.08c0.062-0.063,0.068-0.142,0.068-0.185c-0.001-0.051-0.008-0.086-0.007-0.088C20.583,28.503,20.548,28.439,20.518,28.4z")}})},
1"./src/shape/icon/Icon.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Icon=a.default.SetFigure.extend({NAME:"draw2d.shape.icon.Icon",init:function(s,n,r){this._super(extend({width:50,height:50,color:"#333333",bgColor:null},s),n,r),this.keepAspectRatio=!1},repaint:function(s){!0===this.repaintBlocked||null===this.shape||(s=s||{},null!==this.svgNodes&&this.svgNodes.attr({fill:this.color.rgba(),stroke:"none"}),this._super(s))},applyTransformation:function(){var s=[];if(0!==this.rotationAngle&&s.push("R"+this.rotationAngle),90===this.getRotationAngle()||270===this.getRotationAngle()){var n=this.getHeight()/this.getWidth();s.push("T"+-this.offsetY+","+-this.offsetX),s.push("S"+n+","+1/n+",0,0")}else s.push("T"+-this.offsetX+","+-this.offsetY);return!0===this.isResizeable()?s.push("T"+this.getAbsoluteX()+","+this.getAbsoluteY()+"S"+this.scaleX+","+this.scaleY+","+this.getAbsoluteX()+","+this.getAbsoluteY()):s.push("T"+this.getAbsoluteX()+","+this.getAbsoluteY()),this.svgNodes.transform(s.join(" ")),this},createShapeElement:function(){var s=this._super(),n=this.svgNodes.getBBox();return this.offsetX=n.x,this.offsetY=n.y,s}})},
1"./src/shape/icon/Icons.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Icons=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Icons",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M4.083,14H14V4.083H4.083V14zM17,4.083V14h9.917V4.083H17zM17,26.917h9.917v-9.918H17V26.917zM4.083,26.917H14v-9.918H4.083V26.917z")}})},
1"./src/shape/icon/Ie.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Ie=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Ie",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M27.998,2.266c-2.12-1.91-6.925,0.382-9.575,1.93c-0.76-0.12-1.557-0.185-2.388-0.185c-3.349,0-6.052,0.985-8.106,2.843c-2.336,2.139-3.631,4.94-3.631,8.177c0,0.028,0.001,0.056,0.001,0.084c3.287-5.15,8.342-7.79,9.682-8.487c0.212-0.099,0.338,0.155,0.141,0.253c-0.015,0.042-0.015,0,0,0c-2.254,1.35-6.434,5.259-9.146,10.886l-0.003-0.007c-1.717,3.547-3.167,8.529-0.267,10.358c2.197,1.382,6.13-0.248,9.295-2.318c0.764,0.108,1.567,0.165,2.415,0.165c5.84,0,9.937-3.223,11.399-7.924l-8.022-0.014c-0.337,1.661-1.464,2.548-3.223,2.548c-2.21,0-3.729-1.211-3.828-4.012l15.228-0.014c0.028-0.578-0.042-0.985-0.042-1.436c0-5.251-3.143-9.355-8.255-10.663c2.081-1.294,5.974-3.209,7.848-1.681c1.407,1.14,0.633,3.533,0.295,4.518c-0.056,0.254,0.24,0.296,0.296,0.057C28.814,5.573,29.026,3.194,27.998,2.266zM13.272,25.676c-2.469,1.475-5.873,2.539-7.539,1.289c-1.243-0.935-0.696-3.468,0.398-5.938c0.664,0.992,1.495,1.886,2.473,2.63C9.926,24.651,11.479,25.324,13.272,25.676zM12.714,13.046c0.042-2.435,1.787-3.49,3.617-3.49c1.928,0,3.49,1.112,3.49,3.49H12.714z")}})},
1"./src/shape/icon/Ie9.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Ie9=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Ie9",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M27.751,17.887c0.054-0.434,0.081-0.876,0.081-1.324c0-1.744-0.413-3.393-1.146-4.854c1.133-2.885,1.155-5.369-0.201-6.777c-1.756-1.822-5.391-1.406-9.433,0.721c-0.069-0.001-0.138-0.003-0.206-0.003c-6.069,0-10.988,4.888-10.988,10.917c0,0.183,0.005,0.354,0.014,0.529c-2.688,4.071-3.491,7.967-1.688,9.838c1.557,1.613,4.691,1.344,8.2-0.392c1.363,0.604,2.873,0.938,4.462,0.938c4.793,0,8.867-3.049,10.369-7.299H21.26c-0.814,1.483-2.438,2.504-4.307,2.504c-2.688,0-4.867-2.104-4.867-4.688c0-0.036,0.002-0.071,0.003-0.106h15.662V17.887zM26.337,6.099c0.903,0.937,0.806,2.684-0.087,4.818c-1.27-2.083-3.221-3.71-5.546-4.576C23.244,5.217,25.324,5.047,26.337,6.099zM16.917,10.372c2.522,0,4.585,1.991,4.748,4.509h-9.496C12.333,12.363,14.396,10.372,16.917,10.372zM5.687,26.501c-1.103-1.146-0.712-3.502,0.799-6.298c0.907,2.546,2.736,4.658,5.09,5.938C8.92,27.368,6.733,27.587,5.687,26.501z")}})},
1"./src/shape/icon/Import.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Import=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Import",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.067,2.25c-5.979,0-11.035,3.91-12.778,9.309h3.213c1.602-3.705,5.271-6.301,9.565-6.309c5.764,0.01,10.428,4.674,10.437,10.437c-0.009,5.764-4.673,10.428-10.437,10.438c-4.294-0.007-7.964-2.605-9.566-6.311H2.289c1.744,5.399,6.799,9.31,12.779,9.312c7.419-0.002,13.437-6.016,13.438-13.438C28.504,8.265,22.486,2.252,15.067,2.25zM10.918,19.813l7.15-4.126l-7.15-4.129v2.297H-0.057v3.661h10.975V19.813z")}})},
1"./src/shape/icon/InkScape.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.InkScape=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.InkScape",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M20.402,17.626c0.84-0.772,2.468-0.381,5.979-1.853c1.716-0.72,1.572-1.265,1.566-1.928c-0.001-0.014,0-0.027,0-0.041h-0.005c-0.012-0.667-0.291-1.332-0.846-1.845L17.049,2.684c-0.566-0.522-1.304-0.782-2.042-0.782V1.898c-0.738,0-1.475,0.261-2.04,0.783l-10.05,9.276c-0.554,0.512-0.832,1.176-0.843,1.844H2.07c0,0,0.003,0.011,0.004,0.011c0,0.012-0.004,0.024-0.004,0.034h0.017c0.193,0.676,5.164,1.536,5.718,2.049c0.838,0.774-3.211,1.339-2.374,2.114c0.838,0.773,5.062,1.496,5.898,2.271c0.838,0.771-1.711,1.596-0.874,2.366c0.837,0.773,3.651-0.191,3.142,1.822c1.13,1.045,3.49,0.547,5.071-0.498c0.837-0.771-1.607-0.703-0.77-1.477c0.836-0.774,2.949-0.777,4.73-2.627C21.913,18.838,19.566,18.398,20.402,17.626zM10.973,16.868l-0.42-0.504c1.497,0.358,3.162,0.827,4.498,0.837l0.058,0.554C13.964,17.646,11.544,17.137,10.973,16.868zM18.161,8.58l-1.396-0.74L14.53,9.594l-1.067-3.192l-1.177,2.545L8.998,9.25l0.036-1.352c0-0.324,1.895-2.596,3.05-3.136l2.112-1.401c0.312-0.186,0.53-0.261,0.727-0.257c0.327,0.011,0.593,0.239,1.112,0.55l4.748,3.25c0.357,0.215,0.619,0.522,0.626,0.898l-2.813-1.254L18.161,8.58zM26.434,19.594c-0.313-0.07-1.688-0.691-2.035,0.165c0.968,0.981,2.645,2.181,3.316,1.482C28.391,20.543,27.102,19.745,26.434,19.594zM4.663,21.566c-0.315,0.074-1.842,0.115-1.719,1.021c1.351,0.451,3.438,0.792,3.684-0.113C6.873,21.566,5.33,21.414,4.663,21.566zM17.877,26.396c-0.232,0.209-1.53,0.953-0.929,1.681c1.413-0.236,3.403-0.914,3.12-1.812C19.786,25.369,18.37,25.953,17.877,26.396z")}})},
1"./src/shape/icon/Ipad.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Ipad=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Ipad",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.221,1.417H6.11c-0.865,0-1.566,0.702-1.566,1.566v25.313c0,0.865,0.701,1.565,1.566,1.565h19.111c0.865,0,1.565-0.7,1.565-1.565V2.984C26.787,2.119,26.087,1.417,25.221,1.417zM15.666,29.299c-0.346,0-0.626-0.279-0.626-0.625s0.281-0.627,0.626-0.627c0.346,0,0.627,0.281,0.627,0.627S16.012,29.299,15.666,29.299zM24.376,26.855c0,0.174-0.142,0.312-0.313,0.312H7.27c-0.173,0-0.313-0.142-0.313-0.312V4.3c0-0.173,0.14-0.313,0.313-0.313h16.792c0.172,0,0.312,0.14,0.312,0.313L24.376,26.855L24.376,26.855z")}})},
1"./src/shape/icon/Iphone.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Iphone=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Iphone",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M20.755,1H10.62C9.484,1,8.562,1.921,8.562,3.058v24.385c0,1.136,0.921,2.058,2.058,2.058h10.135c1.136,0,2.058-0.922,2.058-2.058V3.058C22.812,1.921,21.891,1,20.755,1zM14.659,3.264h2.057c0.101,0,0.183,0.081,0.183,0.18c0,0.1-0.082,0.18-0.183,0.18h-2.057c-0.1,0-0.181-0.081-0.181-0.18C14.478,3.344,14.559,3.264,14.659,3.264zM13.225,3.058c0.199,0,0.359,0.162,0.359,0.36c0,0.198-0.161,0.36-0.359,0.36c-0.2,0-0.36-0.161-0.36-0.36S13.025,3.058,13.225,3.058zM15.688,28.473c-0.796,0-1.44-0.646-1.44-1.438c0-0.799,0.645-1.439,1.44-1.439s1.44,0.646,1.44,1.439S16.483,28.473,15.688,28.473zM22.041,24.355c0,0.17-0.139,0.309-0.309,0.309H9.642c-0.17,0-0.308-0.139-0.308-0.309V6.042c0-0.17,0.138-0.309,0.308-0.309h12.09c0.17,0,0.309,0.138,0.309,0.309V24.355z")}})},
1"./src/shape/icon/JQuery.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.JQuery=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.JQuery",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M10.322,23.041C4.579,18.723,2.777,11.07,5.494,4.583c-0.254,0.291-0.502,0.59-0.739,0.904c-5.177,6.887-4.008,16.505,2.613,21.482c6.62,4.979,16.184,3.432,21.362-3.455c0.237-0.314,0.454-0.635,0.663-0.959C23.915,26.963,16.064,27.357,10.322,23.041zM13.662,18.598c4.765,3.582,11.604,2.564,15.567-2.198c-3.609,2.641-9.09,2.475-13.361-0.736S9.916,7.231,11.451,3.03C7.976,8.161,8.897,15.015,13.662,18.598zM18.642,11.976c3.254,2.447,8.146,1.438,10.967-2.242c-2.604,1.921-6.341,1.955-9.157-0.164c-2.819-2.118-3.826-5.718-2.701-8.754C14.998,4.549,15.387,9.528,18.642,11.976z")}})},
1"./src/shape/icon/Jigsaw.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Jigsaw=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Jigsaw",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M3.739,13.619c0,0,3.516-4.669,5.592-3.642c2.077,1.027-0.414,2.795,1.598,3.719c2.011,0.924,5.048-0.229,4.376-2.899c-0.672-2.67-1.866-0.776-2.798-2.208c-0.934-1.432,4.586-4.59,4.586-4.59s3.361,6.651,4.316,4.911c1.157-2.105,3.193-4.265,5.305-1.025c0,0,1.814,2.412,0.246,3.434s-2.917,0.443-3.506,1.553c-0.586,1.112,3.784,4.093,3.784,4.093s-2.987,4.81-4.926,3.548c-1.939-1.262,0.356-3.364-2.599-3.989c-1.288-0.23-3.438,0.538-3.818,2.34c-0.13,2.709,1.604,2.016,2.797,3.475c1.191,1.457-4.484,4.522-4.484,4.522s-1.584-3.923-3.811-4.657c-2.227-0.735-0.893,2.135-2.917,2.531c-2.024,0.396-4.816-2.399-3.46-4.789c1.358-2.391,3.275-0.044,3.441-1.951C7.629,16.087,3.739,13.619,3.739,13.619z")}})},
1"./src/shape/icon/Key.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Key=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Key",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M18.386,16.009l0.009-0.006l-0.58-0.912c1.654-2.226,1.876-5.319,0.3-7.8c-2.043-3.213-6.303-4.161-9.516-2.118c-3.212,2.042-4.163,6.302-2.12,9.517c1.528,2.402,4.3,3.537,6.944,3.102l0.424,0.669l0.206,0.045l0.779-0.447l-0.305,1.377l2.483,0.552l-0.296,1.325l1.903,0.424l-0.68,3.06l1.406,0.313l-0.424,1.906l4.135,0.918l0.758-3.392L18.386,16.009z M10.996,8.944c-0.685,0.436-1.593,0.233-2.029-0.452C8.532,7.807,8.733,6.898,9.418,6.463s1.594-0.233,2.028,0.452C11.883,7.6,11.68,8.509,10.996,8.944z")}})},
1"./src/shape/icon/Lab.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Lab=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Lab",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M22.121,24.438l-3.362-7.847c-0.329-0.769-0.599-2.081-0.599-2.917s0.513-1.521,1.14-1.521s1.141-0.513,1.141-1.14s-0.685-1.14-1.521-1.14h-6.84c-0.836,0-1.52,0.513-1.52,1.14s0.513,1.14,1.14,1.14s1.14,0.685,1.14,1.521s-0.269,2.148-0.599,2.917l-3.362,7.847C8.55,25.206,8.28,26.177,8.28,26.595s0.342,1.103,0.76,1.521s1.444,0.76,2.28,0.76h8.359c0.836,0,1.862-0.342,2.28-0.76s0.76-1.103,0.76-1.521S22.45,25.206,22.121,24.438zM16.582,7.625c0,0.599,0.484,1.083,1.083,1.083s1.083-0.484,1.083-1.083s-0.484-1.084-1.083-1.084S16.582,7.026,16.582,7.625zM13.667,7.792c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5s-0.5,0.224-0.5,0.5S13.391,7.792,13.667,7.792zM15.584,5.292c0.874,0,1.583-0.709,1.583-1.583c0-0.875-0.709-1.584-1.583-1.584C14.709,2.125,14,2.834,14,3.709C14,4.583,14.709,5.292,15.584,5.292z")}})},
1"./src/shape/icon/Lamp.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Lamp=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Lamp",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.5,2.833c-3.866,0-7,3.134-7,7c0,3.859,3.945,4.937,4.223,9.499h5.553c0.278-4.562,4.224-5.639,4.224-9.499C22.5,5.968,19.366,2.833,15.5,2.833zM15.5,28.166c1.894,0,2.483-1.027,2.667-1.666h-5.334C13.017,27.139,13.606,28.166,15.5,28.166zM12.75,25.498h5.5v-5.164h-5.5V25.498z")}})},
1"./src/shape/icon/Lamp_alt.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Lamp_alt=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Lamp_alt",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M12.75,25.498h5.5v-5.164h-5.5V25.498zM15.5,28.166c1.894,0,2.483-1.027,2.667-1.666h-5.334C13.017,27.139,13.606,28.166,15.5,28.166zM15.5,2.833c-3.866,0-7,3.134-7,7c0,3.859,3.945,4.937,4.223,9.499h1.271c-0.009-0.025-0.024-0.049-0.029-0.078L11.965,8.256c-0.043-0.245,0.099-0.485,0.335-0.563c0.237-0.078,0.494,0.026,0.605,0.25l0.553,1.106l0.553-1.106c0.084-0.17,0.257-0.277,0.446-0.277c0.189,0,0.362,0.107,0.446,0.277l0.553,1.106l0.553-1.106c0.084-0.17,0.257-0.277,0.448-0.277c0.189,0,0.36,0.107,0.446,0.277l0.554,1.106l0.553-1.106c0.111-0.224,0.368-0.329,0.604-0.25s0.377,0.318,0.333,0.563l-1.999,10.998c-0.005,0.029-0.02,0.053-0.029,0.078h1.356c0.278-4.562,4.224-5.639,4.224-9.499C22.5,5.968,19.366,2.833,15.5,2.833zM17.458,10.666c-0.191,0-0.364-0.107-0.446-0.275l-0.554-1.106l-0.553,1.106c-0.086,0.168-0.257,0.275-0.446,0.275c-0.191,0-0.364-0.107-0.449-0.275l-0.553-1.106l-0.553,1.106c-0.084,0.168-0.257,0.275-0.446,0.275c-0.012,0-0.025,0-0.037-0.001l1.454,8.001h1.167l1.454-8.001C17.482,10.666,17.47,10.666,17.458,10.666z")}})},
1"./src/shape/icon/Landing.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Landing=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Landing",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M23.322,19.491c0,0,1.903,0.342,0.299-1.869c-1.353-1.866-5.261-3.104-5.261-3.104l-4.213-8.229l-2.47-0.394l0.973,5.449L9.241,10.11L8.772,7.273L7.008,6.302c0,0-0.496,2.742-0.149,5.271C6.859,11.573,13.965,17.999,23.322,19.491zM3.251,23.106v1.998h24.498v-1.998H3.251zM14,17.94c0,0.414,0.336,0.75,0.75,0.75s0.75-0.336,0.75-0.75s-0.336-0.75-0.75-0.75S14,17.526,14,17.94z")}})},
1"./src/shape/icon/Landscape1.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Landscape1=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Landscape1",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M19.883,5.71H2.746c-0.163,0-0.319,0.071-0.435,0.188c-0.118,0.117-0.18,0.272-0.18,0.435v18.364c0,0.164,0.063,0.318,0.18,0.436c0.123,0.117,0.287,0.18,0.435,0.18h25.75c0.164,0,0.324-0.066,0.438-0.18c0.118-0.114,0.182-0.273,0.182-0.436V14.551c-0.002-0.102-0.01-0.188-0.021-0.271c-0.186-1.543-1.543-3.424-3.236-5.168C24.039,7.31,21.869,5.753,19.883,5.71zM26.914,12.314c-0.008-0.005-0.019-0.007-0.029-0.01c-1.092-0.293-2.33-0.355-3.199-0.355c-0.162,0-0.312,0.002-0.445,0.004c-0.037-0.604-0.129-1.604-0.356-2.625c-0.11-0.461-0.246-0.94-0.433-1.42c0.857,0.541,1.748,1.264,2.535,2.068C25.74,10.718,26.41,11.551,26.914,12.314zM3.365,6.947h16.517c0.058,0,0.12,0,0.183,0.004c0.694,0.105,1.307,1.221,1.616,2.646c0.335,1.484,0.354,2.997,0.354,3l0.007,0.656l0.651-0.051c0,0,0.398-0.027,0.99-0.025c0.809,0,1.977,0.062,2.871,0.312c0.939,0.275,1.352,0.635,1.326,1.051h0.002v9.542H3.365V6.951V6.947z")}})},
1"./src/shape/icon/Landscape2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Landscape2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Landscape2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M19.883,5.71H2.746c-0.163,0-0.319,0.071-0.435,0.188c-0.118,0.117-0.18,0.272-0.18,0.435v18.364c0,0.164,0.063,0.318,0.18,0.436c0.123,0.117,0.287,0.18,0.435,0.18h25.75c0.164,0,0.324-0.066,0.438-0.18c0.118-0.114,0.182-0.273,0.182-0.436V14.551c-0.002-0.102-0.01-0.188-0.021-0.271c-0.186-1.543-1.543-3.424-3.236-5.168C24.039,7.31,21.869,5.753,19.883,5.71zM3.365,6.947h16.517c0.058,0,0.12,0,0.183,0.004c0.694,0.105,1.307,1.221,1.616,2.646c0.335,1.484,0.354,2.997,0.354,3l0.007,0.656l0.651-0.051c0,0,0.398-0.027,0.99-0.025c0.809,0,1.977,0.062,2.871,0.312c0.939,0.275,1.352,0.635,1.326,1.051h0.002v9.542H3.365V6.951V6.947z")}})},
1"./src/shape/icon/LineChart.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.LineChart=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.LineChart",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M3.625,25.062c-0.539-0.115-0.885-0.646-0.77-1.187l0,0L6.51,6.584l2.267,9.259l1.923-5.188l3.581,3.741l3.883-13.103l2.934,11.734l1.96-1.509l5.271,11.74c0.226,0.504,0,1.095-0.505,1.321l0,0c-0.505,0.227-1.096,0-1.322-0.504l0,0l-4.23-9.428l-2.374,1.826l-1.896-7.596l-2.783,9.393l-3.754-3.924L8.386,22.66l-1.731-7.083l-1.843,8.711c-0.101,0.472-0.515,0.794-0.979,0.794l0,0C3.765,25.083,3.695,25.076,3.625,25.062L3.625,25.062z")}})},
1"./src/shape/icon/Link.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Link=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Link",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16.45,18.085l-2.47,2.471c0.054,1.023-0.297,2.062-1.078,2.846c-1.465,1.459-3.837,1.459-5.302-0.002c-1.461-1.465-1.46-3.836-0.001-5.301c0.783-0.781,1.824-1.131,2.847-1.078l2.469-2.469c-2.463-1.057-5.425-0.586-7.438,1.426c-2.634,2.637-2.636,6.907,0,9.545c2.638,2.637,6.909,2.635,9.545,0l0.001,0.002C17.033,23.511,17.506,20.548,16.45,18.085zM14.552,12.915l2.467-2.469c-0.053-1.023,0.297-2.062,1.078-2.848C19.564,6.139,21.934,6.137,23.4,7.6c1.462,1.465,1.462,3.837,0,5.301c-0.783,0.783-1.822,1.132-2.846,1.079l-2.469,2.468c2.463,1.057,5.424,0.584,7.438-1.424c2.634-2.639,2.633-6.91,0-9.546c-2.639-2.636-6.91-2.637-9.545-0.001C13.967,7.489,13.495,10.451,14.552,12.915zM18.152,10.727l-7.424,7.426c-0.585,0.584-0.587,1.535,0,2.121c0.585,0.584,1.536,0.584,2.121-0.002l7.425-7.424c0.584-0.586,0.584-1.535,0-2.121C19.687,10.141,18.736,10.142,18.152,10.727z")}})},
1"./src/shape/icon/LinkedIn.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.LinkedIn=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.LinkedIn",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M27.25,3.125h-22c-1.104,0-2,0.896-2,2v22c0,1.104,0.896,2,2,2h22c1.104,0,2-0.896,2-2v-22C29.25,4.021,28.354,3.125,27.25,3.125zM11.219,26.781h-4v-14h4V26.781zM9.219,11.281c-1.383,0-2.5-1.119-2.5-2.5s1.117-2.5,2.5-2.5s2.5,1.119,2.5,2.5S10.602,11.281,9.219,11.281zM25.219,26.781h-4v-8.5c0-0.4-0.403-1.055-0.687-1.213c-0.375-0.211-1.261-0.229-1.665-0.034l-1.648,0.793v8.954h-4v-14h4v0.614c1.583-0.723,3.78-0.652,5.27,0.184c1.582,0.886,2.73,2.864,2.73,4.702V26.781z")}})},
1"./src/shape/icon/Linux.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Linux=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Linux",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M11.791,25.229c1.027-0.104,1.162-1.191,0.68-1.666c-0.398-0.392-2.598-2.022-3.171-2.664C9.033,20.6,8.673,20.454,8.52,20.12c-0.352-0.771-0.598-1.869-0.151-2.658c0.081-0.144,0.133-0.078,0.071,0.22c-0.351,1.684,0.746,3.059,0.986,2.354c0.167-0.487,0.013-1.358,0.102-2.051c0.158-1.226,1.273-3.577,1.763-3.712c-0.755-1.398,0.886-2.494,0.866-3.723c-0.014-0.798,0.701,0.982,1.419,1.359c0.802,0.422,1.684-0.794,2.936-1.41c0.354-0.176,0.809-0.376,0.776-0.524c-0.146-0.718-1.644,0.886-2.979,0.939c-0.61,0.024-0.837-0.12-1.072-0.347c-0.712-0.689,0.073-0.115,1.132-0.307c0.471-0.085,0.629-0.163,1.128-0.365c0.5-0.201,1.069-0.5,1.636-0.654c0.395-0.106,0.361-0.402,0.208-0.491c-0.088-0.051-0.219-0.046-0.321,0.133c-0.244,0.419-1.383,0.661-1.74,0.771c-0.457,0.14-0.962,0.271-1.634,0.243c-1.021-0.042-0.782-0.509-1.513-0.928c-0.213-0.122-0.156-0.444,0.129-0.729c0.148-0.148,0.557-0.232,0.76-0.572c0.028-0.047,0.289-0.32,0.494-0.461c0.07-0.049,0.076-1.295-0.562-1.32c-0.543-0.021-0.697,0.398-0.675,0.818c0.022,0.419,0.245,0.765,0.393,0.764c0.285-0.004,0.019,0.311-0.138,0.361c-0.237,0.078-0.562-0.934-0.525-1.418c0.039-0.506,0.303-1.4,0.942-1.383c0.576,0.016,0.993,0.737,0.973,1.983c-0.003,0.211,0.935-0.101,1.247,0.229c0.224,0.236-0.767-2.207,1.438-2.375c0.582,0.111,1.14,0.305,1.371,1.641c-0.086,0.139,0.146,1.07-0.215,1.182c-0.438,0.135-0.707-0.02-0.453-0.438c0.172-0.418,0.004-1.483-0.882-1.42c-0.887,0.064-0.769,1.637-0.526,1.668c0.243,0.031,0.854,0.465,1.282,0.549c1.401,0.271,0.371,1.075,0.555,2.048c0.205,1.099,0.929,0.809,1.578,3.717c0.137,0.177,0.676,0.345,1.199,2.579c0.473,2.011-0.195,3.473,0.938,3.353c0.256-0.026,0.629-0.1,0.792-0.668c0.425-1.489-0.213-3.263-0.855-4.46c-0.375-0.698-0.729-1.174-0.916-1.337c0.738,0.436,1.683,1.829,1.898,2.862c0.286,1.358,0.49,1.934,0.059,3.37c0.25,0.125,0.871,0.39,0.871,0.685c-0.647-0.53-2.629-0.625-2.68,0.646c-0.338,0.008-0.594,0.034-0.811,0.293c-0.797,0.944-0.059,2.842-0.139,3.859c-0.07,0.896-0.318,1.783-0.46,2.683c-0.474-0.019-0.428-0.364-0.274-0.852c0.135-0.431,0.351-0.968,0.365-1.484c0.012-0.467-0.039-0.759-0.156-0.831c-0.118-0.072-0.303,0.074-0.559,0.485c-0.543,0.875-1.722,1.261-2.821,1.397c-1.099,0.138-2.123,0.028-2.664-0.578c-0.186-0.207-0.492,0.058-0.529,0.111c-0.049,0.074,0.18,0.219,0.352,0.533c0.251,0.461,0.49,1.159-0.105,1.479C12.83,26.314,12.316,26.221,11.791,25.229L11.791,25.229zM11.398,25.188c0.395,0.621,1.783,3.232-0.652,3.571c-0.814,0.114-2.125-0.474-3.396-0.784c-1.142-0.279-2.301-0.444-2.949-0.627c-0.391-0.108-0.554-0.25-0.588-0.414c-0.091-0.434,0.474-1.041,0.503-1.555c0.028-0.514-0.188-0.779-0.364-1.199c-0.177-0.42-0.224-0.734-0.081-0.914c0.109-0.141,0.334-0.199,0.698-0.164c0.462,0.047,1.02-0.049,1.319-0.23c0.505-0.309,0.742-0.939,0.516-1.699c0,0.744-0.244,1.025-0.855,1.366c-0.577,0.319-1.467,0.062-1.875,0.416c-0.492,0.427,0.175,1.528,0.12,2.338c-0.042,0.622-0.69,1.322-0.401,1.946c0.291,0.627,1.648,0.695,3.064,0.99c2.012,0.422,3.184,1.153,4.113,1.188c1.356,0.05,1.564-1.342,3.693-1.36c0.621-0.033,1.229-0.052,1.835-0.06c0.688-0.009,1.375-0.003,2.079,0.014c1.417,0.034,0.931,0.773,1.851,1.246c0.774,0.397,2.17,0.241,2.504-0.077c0.451-0.431,1.662-1.467,2.592-1.935c1.156-0.583,3.876-1.588,1.902-2.812c-0.461-0.285-1.547-0.588-1.639-2.676c-0.412,0.366-0.365,2.312,0.784,2.697c1.283,0.431,2.085,1.152-0.301,1.969c-1.58,0.54-1.849,0.706-3.099,1.747c-1.267,1.054-3.145,0.636-2.815-1.582c0.171-1.155,0.269-2.11-0.019-3.114c-0.142-0.49-0.211-1.119-0.114-1.562c0.187-0.858,0.651-1.117,1.106-0.293c0.285,0.519,0.385,1.122,1.408,1.171c1.607,0.077,1.926-1.553,2.439-1.627c0.343-0.05,0.686-1.02,0.425-2.589c-0.28-1.681-1.269-4.332-2.536-5.677c-1.053-1.118-1.717-2.098-2.135-3.497c-0.352-1.175-0.547-2.318-0.475-3.412c0.094-1.417-0.691-3.389-1.943-4.316c-0.782-0.581-2.011-0.893-3.122-0.88c-0.623,0.00
17-1.21,0.099-1.661,0.343c-1.855,1.008-2.113,2.445-2.086,4.088c0.025,1.543,0.078,3.303,0.254,4.977c-0.208,0.77-1.288,2.227-1.979,3.114C8.59,14.233,8.121,16.01,7.52,17.561c-0.321,0.828-0.862,1.2-0.908,2.265C6.6,20.122,6.61,20.891,6.894,20.672C7.98,19.829,9.343,21.95,11.398,25.188L11.398,25.188zM17.044,2.953c-0.06,0.176-0.3,0.321-0.146,0.443c0.152,0.123,0.24-0.171,0.549-0.281c0.08-0.028,0.449,0.012,0.519-0.164c0.03-0.077-0.19-0.164-0.321-0.291c-0.133-0.125-0.262-0.236-0.386-0.229C16.938,2.451,17.096,2.798,17.044,2.953L17.044,2.953zM18.934,9.35c0.115-0.121,0.174,0.207,0.483,0.402c0.244,0.154,0.481,0.04,0.545,0.354c0.044,0.225-0.097,0.467-0.284,0.436C19.35,10.486,18.596,9.705,18.934,9.35L18.934,9.35zM13.832,7.375c-0.508-0.037-0.543,0.33-0.375,0.324C13.629,7.693,13.523,7.408,13.832,7.375L13.832,7.375zM12.96,6.436c0.06-0.013,0.146,0.09,0.119,0.233c-0.037,0.199-0.021,0.324,0.117,0.325c0.022,0,0.048-0.005,0.056-0.057c0.066-0.396-0.14-0.688-0.225-0.711C12.834,6.178,12.857,6.458,12.96,6.436L12.96,6.436zM16.663,6.268c0.129,0.039,0.253,0.262,0.28,0.504c0.002,0.021,0.168-0.035,0.17-0.088c0.011-0.389-0.321-0.571-0.408-0.562C16.506,6.139,16.562,6.238,16.663,6.268L16.663,6.268zM14.765,7.423c0.463-0.214,0.625,0.118,0.465,0.171C15.066,7.648,15.065,7.345,14.765,7.423L14.765,7.423zM9.178,15.304c-0.219-0.026,0.063-0.19,0.184-0.397c0.131-0.227,0.105-0.511,0.244-0.469s0.061,0.2-0.033,0.461C9.491,15.121,9.258,15.313,9.178,15.304L9.178,15.304z")}})},
1"./src/shape/icon/List.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.List=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.List",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M4.082,4.083v2.999h22.835V4.083H4.082zM4.082,20.306h22.835v-2.999H4.082V20.306zM4.082,13.694h22.835v-2.999H4.082V13.694zM4.082,26.917h22.835v-2.999H4.082V26.917z")}})},
1"./src/shape/icon/Location.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Location=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Location",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,3.5c-4.142,0-7.5,3.358-7.5,7.5c0,4.143,7.5,18.121,7.5,18.121S23.5,15.143,23.5,11C23.5,6.858,20.143,3.5,16,3.5z M16,14.584c-1.979,0-3.584-1.604-3.584-3.584S14.021,7.416,16,7.416S19.584,9.021,19.584,11S17.979,14.584,16,14.584z")}})},
1"./src/shape/icon/Lock.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Lock=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Lock",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M22.335,12.833V9.999h-0.001C22.333,6.501,19.498,3.666,16,3.666S9.666,6.502,9.666,10h0v2.833H7.375V25h17.25V12.833H22.335zM11.667,10C11.667,10,11.667,10,11.667,10c0-2.39,1.944-4.334,4.333-4.334c2.391,0,4.335,1.944,4.335,4.333c0,0,0,0,0,0v2.834h-8.668V10z")}})},
1"./src/shape/icon/Locked.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Locked=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Locked",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M26.711,14.085L16.914,4.29c-0.778-0.778-2.051-0.778-2.829,0L4.29,14.086c-0.778,0.778-0.778,2.05,0,2.829l9.796,9.796c0.778,0.777,2.051,0.777,2.829,0l9.797-9.797C27.488,16.136,27.488,14.863,26.711,14.085zM8.218,16.424c-0.4-0.153-0.687-0.533-0.687-0.987s0.287-0.834,0.687-0.987V16.424zM8.969,16.424v-1.974c0.4,0.152,0.687,0.533,0.687,0.987S9.369,16.272,8.969,16.424zM13.5,19.188l1.203-3.609c-0.689-0.306-1.172-0.994-1.172-1.797c0-1.087,0.881-1.969,1.969-1.969c1.087,0,1.969,0.881,1.969,1.969c0,0.803-0.482,1.491-1.172,1.797l1.203,3.609H13.5zM22.03,16.549c-0.399-0.152-0.687-0.533-0.687-0.986s0.287-0.834,0.687-0.987V16.549zM22.781,16.549v-1.973c0.4,0.152,0.688,0.533,0.688,0.987S23.182,16.397,22.781,16.549z")}})},
1"./src/shape/icon/Magic.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Magic=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Magic",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M23.043,4.649l-0.404-2.312l-1.59,1.727l-2.323-0.33l1.151,2.045l-1.032,2.108l2.302-0.463l1.686,1.633l0.271-2.332l2.074-1.099L23.043,4.649zM26.217,18.198l-0.182-1.25l-0.882,0.905l-1.245-0.214l0.588,1.118l-0.588,1.118l1.245-0.214l0.882,0.905l0.182-1.25l1.133-0.56L26.217,18.198zM4.92,7.672L5.868,7.3l0.844,0.569L6.65,6.853l0.802-0.627L6.467,5.97L6.118,5.013L5.571,5.872L4.553,5.908l0.647,0.786L4.92,7.672zM10.439,10.505l1.021-1.096l1.481,0.219l-0.727-1.31l0.667-1.341l-1.47,0.287l-1.069-1.048L10.16,7.703L8.832,8.396l1.358,0.632L10.439,10.505zM17.234,12.721c-0.588-0.368-1.172-0.618-1.692-0.729c-0.492-0.089-1.039-0.149-1.425,0.374L2.562,30.788h6.68l9.669-15.416c0.303-0.576,0.012-1.041-0.283-1.447C18.303,13.508,17.822,13.09,17.234,12.721zM13.613,21.936c-0.254-0.396-0.74-0.857-1.373-1.254c-0.632-0.396-1.258-0.634-1.726-0.69l4.421-7.052c0.064-0.013,0.262-0.021,0.543,0.066c0.346,0.092,0.785,0.285,1.225,0.562c0.504,0.313,0.908,0.677,1.133,0.97c0.113,0.145,0.178,0.271,0.195,0.335c0.002,0.006,0.004,0.011,0.004,0.015L13.613,21.936z")}})},
1"./src/shape/icon/Magnet.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Magnet=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Magnet",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M20.812,19.5h5.002v-6.867c-0.028-1.706-0.61-3.807-2.172-5.841c-1.539-2.014-4.315-3.72-7.939-3.687C12.076,3.073,9.3,4.779,7.762,6.792C6.2,8.826,5.617,10.928,5.588,12.634V19.5h5v-6.866c-0.027-0.377,0.303-1.789,1.099-2.748c0.819-0.979,1.848-1.747,4.014-1.778c2.165,0.032,3.195,0.799,4.013,1.778c0.798,0.959,1.126,2.372,1.099,2.748V19.5L20.812,19.5zM25.814,25.579c0,0,0-2.354,0-5.079h-5.002c0,2.727,0,5.08,0,5.08l5.004-0.001H25.814zM5.588,25.58h5c0,0,0-2.354,0-5.08h-5C5.588,23.227,5.588,25.58,5.588,25.58z")}})},
1"./src/shape/icon/Mail.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Mail=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Mail",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.516,7.167H3.482l12.517,7.108L28.516,7.167zM16.74,17.303C16.51,17.434,16.255,17.5,16,17.5s-0.51-0.066-0.741-0.197L2.5,10.06v14.773h27V10.06L16.74,17.303z")}})},
1"./src/shape/icon/Man.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Man=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Man",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.021,16.349c-0.611-1.104-1.359-1.998-2.109-2.623c-0.875,0.641-1.941,1.031-3.103,1.031c-1.164,0-2.231-0.391-3.105-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.578,5.192-0.35,5.874c0.55,0.307,1.127,0.078,1.723-0.496c-0.105,0.582-0.166,1.213-0.166,1.873c0,2.932,1.139,5.307,2.543,5.307c0.846,0,1.265-0.865,1.466-2.189c0.201,1.324,0.62,2.189,1.463,2.189c1.406,0,2.545-2.375,2.545-5.307c0-0.66-0.061-1.291-0.168-1.873c0.598,0.574,1.174,0.803,1.725,0.496C22.602,21.541,22.443,18.912,21.021,16.349zM15.808,13.757c2.362,0,4.278-1.916,4.278-4.279s-1.916-4.279-4.278-4.279c-2.363,0-4.28,1.916-4.28,4.279S13.445,13.757,15.808,13.757z")}})},
1"./src/shape/icon/Merge.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Merge=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Merge",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M29.342,15.5l-7.556-4.363v2.613h-1.411c-0.788-0.01-1.331-0.241-2.019-0.743c-1.021-0.745-2.094-2.181-3.551-3.568C13.367,8.06,11.291,6.73,8.5,6.749H2.812v3.5H8.5c2.231,0.012,3.441,1.185,5.07,2.934c0.697,0.753,1.428,1.58,2.324,2.323c-1.396,1.165-2.412,2.516-3.484,3.501c-1.183,1.081-2.202,1.723-3.912,1.741H2.813v3.5h5.716c3.752,0.001,6.035-2.319,7.619-4.066c0.817-0.895,1.537-1.691,2.209-2.191c0.686-0.502,1.23-0.732,2.017-0.742h1.412v2.614L29.342,15.5z")}})},
1"./src/shape/icon/Mic.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Mic=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Mic",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.5,21.125c2.682,0,4.875-2.25,4.875-5V5.875c0-2.75-2.193-5-4.875-5s-4.875,2.25-4.875,5v10.25C10.625,18.875,12.818,21.125,15.5,21.125zM21.376,11v5.125c0,3.308-2.636,6-5.876,6s-5.875-2.691-5.875-6V11H6.626v5.125c0,4.443,3.194,8.132,7.372,8.861v2.139h-3.372v3h9.749v-3h-3.376v-2.139c4.181-0.727,7.375-4.418,7.375-8.861V11H21.376z")}})},
1"./src/shape/icon/MicMute.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.MicMute=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.MicMute",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M10.121,18.529c-0.317-0.736-0.496-1.549-0.496-2.404V11H6.626v5.125c0,1.693,0.466,3.275,1.272,4.627L10.121,18.529zM20.375,8.276V5.875c0-2.75-2.193-5-4.875-5s-4.875,2.25-4.875,5v10.25c0,0.568,0.113,1.105,0.285,1.615L20.375,8.276zM21.376,12.931v3.195c0,3.308-2.636,6-5.876,6c-0.958,0-1.861-0.24-2.661-0.657l-2.179,2.179c0.995,0.659,2.123,1.128,3.338,1.34v2.139h-3.372v3h9.749v-3h-3.376v-2.139c4.181-0.727,7.375-4.418,7.375-8.861V11h-1.068L21.376,12.931zM20.375,16.125v-2.194l-6.788,6.788c0.588,0.26,1.234,0.405,1.913,0.405C18.182,21.125,20.375,18.875,20.375,16.125zM25.542,4.522L4.855,25.209l1.415,1.416L26.956,5.937L25.542,4.522z")}})},
1"./src/shape/icon/Minus.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Minus=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Minus",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.979,12.896,5.979,12.896,5.979,19.562,25.979,19.562z")}})},
1"./src/shape/icon/NewWindow.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.NewWindow=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.NewWindow",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M5.896,5.333V21.25h23.417V5.333H5.896zM26.312,18.25H8.896V8.334h17.417V18.25L26.312,18.25zM4.896,9.542H1.687v15.917h23.417V22.25H4.896V9.542z")}})},
1"./src/shape/icon/No.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.No=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.No",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,2.939C9.006,2.942,3.338,8.61,3.335,15.605C3.335,22.6,9.005,28.268,16,28.27c6.994-0.002,12.662-5.67,12.664-12.664C28.663,8.61,22.995,2.939,16,2.939zM25.663,15.605c-0.003,1.943-0.583,3.748-1.569,5.264L10.736,7.513c1.515-0.988,3.32-1.569,5.265-1.573C21.337,5.951,25.654,10.269,25.663,15.605zM6.335,15.605c0.004-1.943,0.584-3.75,1.573-5.266l13.355,13.357c-1.516,0.986-3.32,1.566-5.264,1.569C10.664,25.26,6.346,20.941,6.335,15.605z")}})},
1"./src/shape/icon/NoMagnet.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.NoMagnet=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.NoMagnet",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M10.59,17.857v-5.225c-0.027-0.376,0.303-1.789,1.099-2.748c0.819-0.979,1.849-1.748,4.014-1.778c1.704,0.026,2.699,0.508,3.447,1.189l3.539-3.539c-1.616-1.526-4.01-2.679-6.986-2.652C12.077,3.073,9.3,4.779,7.762,6.793C6.2,8.826,5.617,10.928,5.59,12.634V19.5h3.357L10.59,17.857zM5.59,20.5v2.357L7.947,20.5H5.59zM20.812,13.29v6.21h5.002v-6.866c-0.021-1.064-0.252-2.283-0.803-3.542L20.812,13.29zM25.339,4.522L4.652,25.209l1.415,1.416L26.753,5.937L25.339,4.522zM20.812,25.58h5.002c0,0,0-2.354,0-5.08h-5.002C20.812,23.227,20.812,25.58,20.812,25.58zM10.59,25.58c0,0,0-0.827,0-2.064L8.525,25.58H10.59z")}})},
1"./src/shape/icon/NodeJs.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.NodeJs=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.NodeJs",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M4.783,4.458L2.59,3.196C2.553,3.174,2.511,3.163,2.469,3.161H2.447C2.405,3.163,2.363,3.174,2.326,3.196L0.133,4.458C0.051,4.505,0,4.593,0,4.688l0.005,3.398c0,0.047,0.024,0.092,0.066,0.114c0.041,0.024,0.091,0.024,0.132,0l1.303-0.746c0.083-0.049,0.132-0.136,0.132-0.229V5.637c0-0.095,0.05-0.183,0.132-0.229l0.555-0.32c0.041-0.023,0.086-0.035,0.132-0.035c0.045,0,0.092,0.012,0.132,0.035l0.555,0.32c0.082,0.047,0.133,0.135,0.133,0.229v1.588c0,0.094,0.051,0.182,0.132,0.229l1.303,0.746c0.041,0.024,0.092,0.024,0.132,0c0.041-0.022,0.066-0.067,0.066-0.114l0.004-3.398C4.915,4.593,4.865,4.505,4.783,4.458zM17.93,0.745l-1.305-0.729c-0.042-0.023-0.091-0.022-0.132,0.001c-0.041,0.024-0.065,0.067-0.065,0.114v3.365c0,0.033-0.018,0.064-0.046,0.081s-0.064,0.017-0.093,0l-0.549-0.316c-0.082-0.047-0.183-0.047-0.265,0l-2.193,1.266c-0.082,0.047-0.133,0.135-0.133,0.229V7.29c0,0.095,0.051,0.182,0.132,0.229l2.194,1.267c0.082,0.048,0.183,0.048,0.265,0l2.194-1.267c0.082-0.048,0.133-0.135,0.133-0.229V0.977C18.066,0.88,18.014,0.792,17.93,0.745zM16.421,6.458c0,0.023-0.013,0.045-0.033,0.057l-0.753,0.435c-0.021,0.012-0.045,0.012-0.066,0l-0.753-0.435c-0.021-0.012-0.033-0.034-0.033-0.057v-0.87c0-0.023,0.013-0.045,0.033-0.058l0.753-0.435c0.021-0.012,0.045-0.012,0.066,0l0.753,0.435c0.021,0.012,0.033,0.034,0.033,0.058V6.458zM24.473,4.493l-2.18-1.266c-0.082-0.047-0.183-0.048-0.265,0l-2.193,1.266c-0.082,0.047-0.132,0.135-0.132,0.229v2.532c0,0.096,0.051,0.184,0.133,0.23l2.18,1.242c0.08,0.045,0.179,0.046,0.26,0.001l1.318-0.732c0.042-0.023,0.067-0.067,0.068-0.115c0-0.048-0.025-0.092-0.066-0.116l-2.207-1.266c-0.041-0.023-0.066-0.067-0.066-0.115V5.59c0-0.047,0.025-0.091,0.065-0.115l0.688-0.396c0.041-0.024,0.091-0.024,0.132,0l0.688,0.396c0.041,0.023,0.066,0.067,0.066,0.115v0.625c0,0.047,0.025,0.091,0.066,0.114c0.041,0.024,0.092,0.024,0.132,0l1.314-0.764c0.081-0.047,0.132-0.135,0.132-0.229V4.722C24.605,4.628,24.555,4.541,24.473,4.493zM11.363,4.48L9.169,3.214c-0.082-0.047-0.183-0.047-0.265,0L6.711,4.48C6.629,4.527,6.579,4.615,6.579,4.709v2.534c0,0.095,0.051,0.182,0.133,0.229l2.193,1.267c0.082,0.048,0.183,0.048,0.265,0l2.193-1.267c0.082-0.048,0.132-0.135,0.132-0.229V4.709C11.495,4.615,11.445,4.527,11.363,4.48zM31.019,4.382L28.95,3.187c-0.13-0.074-0.304-0.074-0.435,0l-2.068,1.195c-0.135,0.077-0.218,0.222-0.218,0.377v2.386c0,0.156,0.083,0.301,0.218,0.378l0.542,0.312c0.263,0.13,0.356,0.13,0.477,0.13c0.389,0,0.612-0.236,0.612-0.646V4.962c0-0.033-0.027-0.06-0.06-0.06h-0.263c-0.033,0-0.061,0.026-0.061,0.06v2.356c0,0.182-0.188,0.363-0.495,0.209l-0.566-0.326c-0.021-0.012-0.033-0.033-0.033-0.057V4.759c0-0.023,0.013-0.045,0.033-0.057l2.067-1.193c0.019-0.011,0.044-0.011,0.063,0l2.067,1.193c0.02,0.012,0.032,0.034,0.032,0.057v2.386c0,0.023-0.013,0.046-0.032,0.057l-2.068,1.193c-0.018,0.012-0.045,0.012-0.063,0l-0.53-0.314c-0.017-0.01-0.036-0.013-0.052-0.004c-0.146,0.083-0.175,0.094-0.312,0.143c-0.034,0.012-0.084,0.031,0.019,0.09l0.691,0.408c0.065,0.038,0.141,0.059,0.217,0.059s0.151-0.021,0.218-0.059l2.068-1.194c0.134-0.078,0.217-0.222,0.217-0.378V4.759C31.235,4.604,31.152,4.459,31.019,4.382zM29.371,6.768c-0.548,0-0.668-0.138-0.708-0.41c-0.005-0.029-0.029-0.051-0.06-0.051h-0.268c-0.033,0-0.06,0.026-0.06,0.06c0,0.349,0.189,0.765,1.095,0.765c0.655,0,1.031-0.259,1.031-0.709c0-0.447-0.302-0.566-0.938-0.65c-0.643-0.085-0.708-0.128-0.708-0.279c0-0.125,0.056-0.29,0.531-0.29c0.425,0,0.581,0.091,0.646,0.378c0.006,0.027,0.03,0.047,0.059,0.047h0.269c0.017,0,0.032-0.007,0.044-0.019c0.011-0.013,0.017-0.029,0.016-0.046c-0.042-0.493-0.37-0.723-1.032-0.723c-0.59,0-0.941,0.249-0.941,0.666c0,0.453,0.35,0.578,0.916,0.634c0.677,0.066,0.729,0.166,0.729,0.298C29.992,6.669,29.807,6.768,29.371,6.768zM22.128,5.446l-0.42,0.243c-0.016,0.009-0.025,0.026-0.025,0.044v0.486c0,0.019,0.01,0.035,0.025,0.044l0.42,0.243c0.016,0.009,0.035,0.009,0.052,0l0.421-0.243c0.016-0.009,0.025-0.025,0.025-0.044V5.733c0-0.018-0.01-0.035-0.025-0.044L22.18,5.446C22.163,5.438,22.144,5.438,22.128,5.446z")}})},
1"./src/shape/icon/Notebook.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Notebook=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Notebook",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.875,1.375H8c-1.033,0-1.874,0.787-1.979,1.792h1.604c1.102,0,2,0.898,2,2c0,1.102-0.898,2-2,2H6v0.999h1.625c1.104,0,2.002,0.898,2.002,2.002c0,1.104-0.898,2.001-2.002,2.001H6v0.997h1.625c1.102,0,2,0.898,2,2c0,1.104-0.898,2.004-2,2.004H6v0.994h1.625c1.102,0,2,0.898,2,2.002s-0.898,2.002-2,2.002H6v0.997h1.624c1.104,0,2.002,0.897,2.002,2.001c0,1.104-0.898,2.002-2.002,2.002H6.004C6.027,28.252,6.91,29.125,8,29.125h16.875c1.104,0,2-0.896,2-2V3.375C26.875,2.271,25.979,1.375,24.875,1.375zM25.25,8.375c0,0.552-0.447,1-1,1H14c-0.553,0-1-0.448-1-1V4c0-0.552,0.447-1,1-1h10.25c0.553,0,1,0.448,1,1V8.375zM8.625,25.166c0-0.554-0.449-1.001-1-1.001h-3.25c-0.552,0-1,0.447-1,1.001c0,0.552,0.449,1,1,1h3.25C8.176,26.166,8.625,25.718,8.625,25.166zM4.375,6.166h3.251c0.551,0,0.999-0.448,0.999-0.999c0-0.555-0.448-1-0.999-1H4.375c-0.553,0-1,0.445-1,1C3.374,5.718,3.822,6.166,4.375,6.166zM4.375,11.167h3.25c0.553,0,1-0.448,1-1s-0.448-1-1-1h-3.25c-0.553,0-1,0.448-1,1S3.822,11.167,4.375,11.167zM4.375,16.167h3.25c0.551,0,1-0.448,1-1.001s-0.448-0.999-1-0.999h-3.25c-0.553,0-1.001,0.446-1.001,0.999S3.822,16.167,4.375,16.167zM3.375,20.165c0,0.553,0.446,1.002,1,1.002h3.25c0.551,0,1-0.449,1-1.002c0-0.552-0.448-1-1-1h-3.25C3.821,19.165,3.375,19.613,3.375,20.165z")}})},
1"./src/shape/icon/Noview.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Noview=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Noview",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M11.478,17.568c-0.172-0.494-0.285-1.017-0.285-1.568c0-2.65,2.158-4.807,4.807-4.807c0.552,0,1.074,0.113,1.568,0.285l2.283-2.283C18.541,8.647,17.227,8.286,16,8.286C8.454,8.286,2.5,16,2.5,16s2.167,2.791,5.53,5.017L11.478,17.568zM23.518,11.185l-3.056,3.056c0.217,0.546,0.345,1.138,0.345,1.76c0,2.648-2.158,4.807-4.807,4.807c-0.622,0-1.213-0.128-1.76-0.345l-2.469,2.47c1.327,0.479,2.745,0.783,4.229,0.783c5.771,0,13.5-7.715,13.5-7.715S26.859,13.374,23.518,11.185zM25.542,4.917L4.855,25.604L6.27,27.02L26.956,6.332L25.542,4.917z")}})},
1"./src/shape/icon/Opera.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Opera=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Opera",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.954,2.046c-7.489,0-12.872,5.432-12.872,13.581c0,7.25,5.234,13.835,12.873,13.835c7.712,0,12.974-6.583,12.974-13.835C28.929,7.413,23.375,2.046,15.954,2.046zM15.952,26.548L15.952,26.548c-2.289,0-3.49-1.611-4.121-3.796c-0.284-1.037-0.458-2.185-0.563-3.341c-0.114-1.374-0.129-2.773-0.129-4.028c0-0.993,0.018-1.979,0.074-2.926c0.124-1.728,0.386-3.431,0.89-4.833c0.694-1.718,1.871-2.822,3.849-2.822c2.5,0,3.763,1.782,4.385,4.322c0.429,1.894,0.56,4.124,0.56,6.274c0,2.299-0.103,5.153-0.763,7.442C19.473,24.979,18.242,26.548,15.952,26.548z")}})},
1"./src/shape/icon/Package.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Package=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Package",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M17.078,22.004l-1.758-4.129l-2.007,4.752l-7.519-3.289l0.174,3.905l9.437,4.374l10.909-5.365l-0.149-4.989L17.078,22.004zM29.454,6.619L18.521,3.383l-3.006,2.671l-3.091-2.359L1.546,8.199l3.795,3.048l-3.433,5.302l10.879,4.757l2.53-5.998l2.257,5.308l11.393-5.942l-3.105-4.709L29.454,6.619zM15.277,14.579l-9.059-3.83l9.275-4.101l9.608,3.255L15.277,14.579z")}})},
1"./src/shape/icon/Page.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Page=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Page",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164z")}})},
1"./src/shape/icon/Page2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Page2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Page2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM22.157,6.545c0.805,0.786,1.529,1.676,2.069,2.534c-0.468-0.185-0.959-0.322-1.42-0.431c-1.015-0.228-2.008-0.32-2.625-0.357c0.003-0.133,0.004-0.283,0.004-0.446c0-0.869-0.055-2.108-0.356-3.2c-0.003-0.01-0.005-0.02-0.009-0.03C20.584,5.119,21.416,5.788,22.157,6.545zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164z")}})},
1"./src/shape/icon/Pallete.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Pallete=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Pallete",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.653,7.25c-3.417,0-8.577,0.983-8.577,3.282c0,1.91,2.704,3.229,1.691,3.889c-1.02,0.666-2.684-1.848-4.048-1.848c-1.653,0-2.815,1.434-2.815,2.926c0,4.558,6.326,8.25,13.749,8.25c7.424,0,13.443-3.692,13.443-8.25C29.096,10.944,23.077,7.25,15.653,7.25zM10.308,13.521c0-0.645,0.887-1.166,1.98-1.166c1.093,0,1.979,0.521,1.979,1.166c0,0.644-0.886,1.166-1.979,1.166C11.195,14.687,10.308,14.164,10.308,13.521zM14.289,22.299c-1.058,0-1.914-0.68-1.914-1.518s0.856-1.518,1.914-1.518c1.057,0,1.914,0.68,1.914,1.518S15.346,22.299,14.289,22.299zM19.611,21.771c-1.057,0-1.913-0.681-1.913-1.519c0-0.84,0.856-1.521,1.913-1.521c1.059,0,1.914,0.681,1.914,1.521C21.525,21.092,20.67,21.771,19.611,21.771zM20.075,10.66c0-0.838,0.856-1.518,1.914-1.518s1.913,0.68,1.913,1.518c0,0.839-0.855,1.518-1.913,1.518C20.934,12.178,20.075,11.499,20.075,10.66zM24.275,19.482c-1.057,0-1.914-0.681-1.914-1.519s0.857-1.518,1.914-1.518c1.059,0,1.914,0.68,1.914,1.518S25.334,19.482,24.275,19.482zM25.286,15.475c-1.058,0-1.914-0.68-1.914-1.519c0-0.838,0.856-1.518,1.914-1.518c1.057,0,1.913,0.68,1.913,1.518C27.199,14.795,26.343,15.475,25.286,15.475z")}})},
1"./src/shape/icon/Palm.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Palm=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Palm",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.296,27.885v-2.013c0,0-0.402-1.408-1.073-2.013c-0.671-0.604-1.274-1.274-1.409-1.61c0,0-0.268,0.135-0.737-0.335s-1.812-2.616-1.812-2.616l-0.671-0.872c0,0-0.47-0.671-1.275-1.342c-0.805-0.672-0.938-0.067-1.476-0.738s0.604-1.275,1.006-1.409c0.403-0.134,1.946,0.134,2.684,0.872c0.738,0.738,0.738,0.738,0.738,0.738l1.073,1.141l0.537,0.201l0.671-1.073l-0.269-2.281c0,0-0.604-2.55-0.737-4.764c-0.135-2.214-0.47-5.703,1.006-5.837s1.007,2.55,1.073,3.489c0.067,0.938,0.806,5.232,1.208,5.568c0.402,0.335,0.671,0.066,0.671,0.066l0.402-7.514c0,0-0.479-2.438,1.073-2.549c0.939-0.067,0.872,1.543,0.872,2.147c0,0.604,0.269,7.514,0.269,7.514l0.537,0.135c0,0,0.402-2.214,0.604-3.153s0.604-2.416,0.537-3.087c-0.067-0.671-0.135-2.348,1.006-2.348s0.872,1.812,0.939,2.415s-0.134,3.153-0.134,3.757c0,0.604-0.738,3.623-0.537,3.824s2.08-2.817,2.349-3.958c0.268-1.141,0.201-3.02,1.408-2.885c1.208,0.134,0.47,2.817,0.402,3.086c-0.066,0.269-0.671,2.349-0.872,2.952s-0.805,1.476-1.006,2.013s0.402,2.349,0,4.629c-0.402,2.281-1.61,5.166-1.61,5.166l0.604,2.08c0,0-1.744,0.671-3.824,0.805C16.443,28.221,14.296,27.885,14.296,27.885z")}})},
1"./src/shape/icon/Paper.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Paper=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Paper",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.916,8.009L15.953,1.888c-0.251-0.119-0.548-0.115-0.798,0.008c-0.25,0.125-0.433,0.357-0.491,0.629c-0.002,0.01-1.04,4.83-2.578,9.636c-0.526,1.646-1.114,3.274-1.728,4.704l1.665,0.786c2-4.643,3.584-11.052,4.181-13.614l11.264,5.316c-0.346,1.513-1.233,5.223-2.42,8.927c-0.767,2.399-1.665,4.797-2.585,6.532c-0.889,1.79-1.958,2.669-2.197,2.552c-1.419,0.03-2.418-1.262-3.09-2.918c-0.32-0.803-0.53-1.63-0.657-2.246c-0.127-0.618-0.166-1.006-0.168-1.006c-0.034-0.317-0.232-0.597-0.52-0.731l-12.962-6.12c-0.301-0.142-0.654-0.11-0.925,0.081c-0.27,0.193-0.416,0.518-0.38,0.847c0.008,0.045,0.195,1.848,0.947,3.736c0.521,1.321,1.406,2.818,2.845,3.575l12.956,6.131l0.006-0.013c0.562,0.295,1.201,0.487,1.947,0.496c1.797-0.117,2.777-1.668,3.818-3.525c3-5.69,5.32-16.602,5.338-16.642C29.512,8.615,29.302,8.19,28.916,8.009z")}})},
1"./src/shape/icon/Parent.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Parent=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Parent",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.423,12.17c-0.875,0.641-1.941,1.031-3.102,1.031c-1.164,0-2.231-0.391-3.104-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.578,5.192-0.35,5.874c0.549,0.312,1.127,0.078,1.723-0.496c-0.105,0.582-0.166,1.213-0.166,1.873c0,2.938,1.139,5.312,2.543,5.312c0.846,0,1.265-0.865,1.466-2.188c0.2,1.314,0.62,2.188,1.461,2.188c1.396,0,2.545-2.375,2.545-5.312c0-0.66-0.062-1.291-0.168-1.873c0.6,0.574,1.176,0.812,1.726,0.496c1.227-0.682,1.068-3.311-0.354-5.874C15.921,13.689,15.173,12.795,14.423,12.17zM11.32,12.201c2.361,0,4.277-1.916,4.277-4.279s-1.916-4.279-4.277-4.279c-2.363,0-4.28,1.916-4.28,4.279S8.957,12.201,11.32,12.201zM21.987,17.671c1.508,0,2.732-1.225,2.732-2.735c0-1.51-1.225-2.735-2.732-2.735c-1.511,0-2.736,1.225-2.736,2.735C19.251,16.446,20.477,17.671,21.987,17.671zM25.318,19.327c-0.391-0.705-0.869-1.277-1.349-1.677c-0.56,0.41-1.24,0.659-1.982,0.659c-0.744,0-1.426-0.25-1.983-0.659c-0.479,0.399-0.958,0.972-1.35,1.677c-0.909,1.638-1.009,3.318-0.224,3.754c0.351,0.2,0.721,0.05,1.101-0.317c-0.067,0.372-0.105,0.775-0.105,1.197c0,1.878,0.728,3.396,1.625,3.396c0.54,0,0.808-0.553,0.937-1.398c0.128,0.841,0.396,1.398,0.934,1.398c0.893,0,1.627-1.518,1.627-3.396c0-0.422-0.04-0.825-0.107-1.197c0.383,0.367,0.752,0.52,1.104,0.317C26.328,22.646,26.227,20.965,25.318,19.327z")}})},
1"./src/shape/icon/Pc.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Pc=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Pc",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M29.249,3.14h-9.188l-0.459,0.459v18.225l0.33,2.389H19.57v0.245h-0.307v-0.306h-0.611v0.244h-0.311v-0.367h-0.486v0.307h-1.104l-2.022-0.367v-0.92h0.858l0.302-1.47h2.728c0.188,0,0.339-0.152,0.339-0.339V7.828c0-0.187-0.149-0.338-0.339-0.338H1.591c-0.187,0-0.339,0.152-0.339,0.338V21.24c0,0.187,0.152,0.339,0.339,0.339h3.016l0.199,1.47h1.409l-3.4,3.4L2.11,27.951c0,0,2.941,1.102,6.678,1.102c3.737,0,9.679-0.857,10.476-0.857s4.84,0,4.84,0v-1.225l-0.137-1.068h1.744c-0.2,0.106-0.322,0.244-0.322,0.396v0.979c0,0.341,0.604,0.613,1.352,0.613c0.742,0,1.348-0.272,1.348-0.613v-0.979c0-0.339-0.604-0.611-1.348-0.611c-0.188,0-0.364,0.019-0.525,0.049v-0.17h-2.29l-0.055-0.432h5.382L29.249,3.14L29.249,3.14zM2.478,20.17V8.714h15.07V20.17H2.478z")}})},
1"./src/shape/icon/Pen.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Pen=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Pen",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M13.587,12.074c-0.049-0.074-0.11-0.147-0.188-0.202c-0.333-0.243-0.803-0.169-1.047,0.166c-0.244,0.336-0.167,0.805,0.167,1.048c0.303,0.22,0.708,0.167,0.966-0.091l-7.086,9.768l-2.203,7.997l6.917-4.577L26.865,4.468l-4.716-3.42l-1.52,2.096c-0.087-0.349-0.281-0.676-0.596-0.907c-0.73-0.529-1.751-0.369-2.28,0.363C14.721,6.782,16.402,7.896,13.587,12.074zM10.118,25.148L6.56,27.503l1.133-4.117L10.118,25.148zM14.309,11.861c2.183-3.225,1.975-4.099,3.843-6.962c0.309,0.212,0.664,0.287,1.012,0.269L14.309,11.861z")}})},
1"./src/shape/icon/Pensil.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Pensil=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Pensil",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.31,2.872l-3.384-2.127c-0.854-0.536-1.979-0.278-2.517,0.576l-1.334,2.123l6.474,4.066l1.335-2.122C26.42,4.533,26.164,3.407,25.31,2.872zM6.555,21.786l6.474,4.066L23.581,9.054l-6.477-4.067L6.555,21.786zM5.566,26.952l-0.143,3.819l3.379-1.787l3.14-1.658l-6.246-3.925L5.566,26.952z")}})},
1"./src/shape/icon/People.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.People=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.People",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.066,20.667c1.227-0.682,1.068-3.311-0.354-5.874c-0.611-1.104-1.359-1.998-2.109-2.623c-0.875,0.641-1.941,1.031-3.102,1.031c-1.164,0-2.231-0.391-3.104-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.578,5.192-0.35,5.874c0.549,0.312,1.127,0.078,1.723-0.496c-0.105,0.582-0.166,1.213-0.166,1.873c0,2.938,1.139,5.312,2.543,5.312c0.846,0,1.265-0.865,1.466-2.188c0.2,1.314,0.62,2.188,1.461,2.188c1.396,0,2.545-2.375,2.545-5.312c0-0.66-0.062-1.291-0.168-1.873C19.939,20.745,20.516,20.983,21.066,20.667zM15.5,12.201c2.361,0,4.277-1.916,4.277-4.279S17.861,3.644,15.5,3.644c-2.363,0-4.28,1.916-4.28,4.279S13.137,12.201,15.5,12.201zM24.094,14.914c1.938,0,3.512-1.573,3.512-3.513c0-1.939-1.573-3.513-3.512-3.513c-1.94,0-3.513,1.573-3.513,3.513C20.581,13.341,22.153,14.914,24.094,14.914zM28.374,17.043c-0.502-0.907-1.116-1.641-1.732-2.154c-0.718,0.526-1.594,0.846-2.546,0.846c-0.756,0-1.459-0.207-2.076-0.55c0.496,1.093,0.803,2.2,0.861,3.19c0.093,1.516-0.381,2.641-1.329,3.165c-0.204,0.117-0.426,0.183-0.653,0.224c-0.056,0.392-0.095,0.801-0.095,1.231c0,2.412,0.935,4.361,2.088,4.361c0.694,0,1.039-0.71,1.204-1.796c0.163,1.079,0.508,1.796,1.199,1.796c1.146,0,2.09-1.95,2.09-4.361c0-0.542-0.052-1.06-0.139-1.538c0.492,0.472,0.966,0.667,1.418,0.407C29.671,21.305,29.541,19.146,28.374,17.043zM6.906,14.914c1.939,0,3.512-1.573,3.512-3.513c0-1.939-1.573-3.513-3.512-3.513c-1.94,0-3.514,1.573-3.514,3.513C3.392,13.341,4.966,14.914,6.906,14.914zM9.441,21.536c-1.593-0.885-1.739-3.524-0.457-6.354c-0.619,0.346-1.322,0.553-2.078,0.553c-0.956,0-1.832-0.321-2.549-0.846c-0.
1616,0.513-1.229,1.247-1.733,2.154c-1.167,2.104-1.295,4.262-0.287,4.821c0.451,0.257,0.925,0.064,1.414-0.407c-0.086,0.479-0.136,0.996-0.136,1.538c0,2.412,0.935,4.361,2.088,4.361c0.694,0,1.039-0.71,1.204-1.796c0.165,1.079,0.509,1.796,1.201,1.796c1.146,0,2.089-1.95,2.089-4.361c0-0.432-0.04-0.841-0.097-1.233C9.874,21.721,9.651,21.656,9.441,21.536z")}})},
1"./src/shape/icon/Phone.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Phone=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Phone",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M22.065,18.53c-0.467-0.29-1.167-0.21-1.556,0.179l-3.093,3.092c-0.389,0.389-1.025,0.389-1.414,0L9.05,14.848c-0.389-0.389-0.389-1.025,0-1.414l2.913-2.912c0.389-0.389,0.447-1.075,0.131-1.524L6.792,1.485C6.476,1.036,5.863,0.948,5.433,1.29c0,0-4.134,3.281-4.134,6.295c0,12.335,10,22.334,22.334,22.334c3.015,0,5.948-5.533,5.948-5.533c0.258-0.486,0.087-1.122-0.38-1.412L22.065,18.53z")}})},
1"./src/shape/icon/Photo.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Photo=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Photo",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.25,10.25H20.5v-1.5h-9.375v1.5h-3.75c-1.104,0-2,0.896-2,2v10.375c0,1.104,0.896,2,2,2H24.25c1.104,0,2-0.896,2-2V12.25C26.25,11.146,25.354,10.25,24.25,10.25zM15.812,23.499c-3.342,0-6.06-2.719-6.06-6.061c0-3.342,2.718-6.062,6.06-6.062s6.062,2.72,6.062,6.062C21.874,20.78,19.153,23.499,15.812,23.499zM15.812,13.375c-2.244,0-4.062,1.819-4.062,4.062c0,2.244,1.819,4.062,4.062,4.062c2.244,0,4.062-1.818,4.062-4.062C19.875,15.194,18.057,13.375,15.812,13.375z")}})},
1"./src/shape/icon/Picker.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Picker=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Picker",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M22.221,10.853c-0.111-0.414-0.261-0.412,0.221-1.539l1.66-3.519c0.021-0.051,0.2-0.412,0.192-0.946c0.015-0.529-0.313-1.289-1.119-1.642c-1.172-0.555-1.17-0.557-2.344-1.107c-0.784-0.396-1.581-0.171-1.979,0.179c-0.42,0.333-0.584,0.7-0.609,0.75L16.58,6.545c-0.564,1.084-0.655,0.97-1.048,1.147c-0.469,0.129-1.244,0.558-1.785,1.815c-1.108,2.346-1.108,2.346-1.108,2.346l-0.276,0.586l1.17,0.553l-3.599,7.623c-0.38,0.828-0.166,1.436-0.166,2.032c0.01,0.627-0.077,1.509-0.876,3.21l-0.276,0.586l3.517,1.661l0.276-0.585c0.808-1.699,1.431-2.326,1.922-2.717c0.46-0.381,1.066-0.6,1.465-1.42l3.599-7.618l1.172,0.554l0.279-0.589c0,0,0,0,1.105-2.345C22.578,12.166,22.419,11.301,22.221,10.853zM14.623,22.83c-0.156,0.353-0.413,0.439-1.091,0.955c-0.577,0.448-1.264,1.172-2.009,2.6l-1.191-0.562c0.628-1.48,0.75-2.474,0.73-3.203c-0.031-0.851-0.128-1.104,0.045-1.449l3.599-7.621l3.517,1.662L14.623,22.83z")}})},
1"./src/shape/icon/Picture.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Picture=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Picture",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M2.5,4.833v22.334h27V4.833H2.5zM25.25,25.25H6.75V6.75h18.5V25.25zM11.25,14c1.426,0,2.583-1.157,2.583-2.583c0-1.427-1.157-2.583-2.583-2.583c-1.427,0-2.583,1.157-2.583,2.583C8.667,12.843,9.823,14,11.25,14zM24.251,16.25l-4.917-4.917l-6.917,6.917L10.5,16.333l-2.752,2.752v5.165h16.503V16.25z")}})},
1"./src/shape/icon/PieChart.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.PieChart=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.PieChart",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.583,15.917l1.648-10.779C16.692,5.056,16.145,5,15.583,5C9.554,5,4.666,9.888,4.666,15.917c0,6.029,4.888,10.917,10.917,10.917S26.5,21.946,26.5,15.917c0-0.256-0.021-0.507-0.038-0.759L15.583,15.917zM19.437,3.127l-1.648,10.779l10.879-0.759C28.313,8.026,24.436,3.886,19.437,3.127z")}})},
1"./src/shape/icon/Plane.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Plane=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Plane",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M19.671,8.11l-2.777,2.777l-3.837-0.861c0.362-0.505,0.916-1.683,0.464-2.135c-0.518-0.517-1.979,0.278-2.305,0.604l-0.913,0.913L7.614,8.804l-2.021,2.021l2.232,1.061l-0.082,0.082l1.701,1.701l0.688-0.687l3.164,1.504L9.571,18.21H6.413l-1.137,1.138l3.6,0.948l1.83,1.83l0.947,3.598l1.137-1.137V21.43l3.725-3.725l1.504,3.164l-0.687,0.687l1.702,1.701l0.081-0.081l1.062,2.231l2.02-2.02l-0.604-2.689l0.912-0.912c0.326-0.326,1.121-1.789,0.604-2.306c-0.452-0.452-1.63,0.101-2.135,0.464l-0.861-3.838l2.777-2.777c0.947-0.947,3.599-4.862,2.62-5.839C24.533,4.512,20.618,7.163,19.671,8.11z")}})},
1"./src/shape/icon/Plugin.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Plugin=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Plugin",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M26.33,15.836l-3.893-1.545l3.136-7.9c0.28-0.705-0.064-1.505-0.771-1.785c-0.707-0.28-1.506,0.065-1.785,0.771l-3.136,7.9l-4.88-1.937l3.135-7.9c0.281-0.706-0.064-1.506-0.77-1.786c-0.706-0.279-1.506,0.065-1.785,0.771l-3.136,7.9L8.554,8.781l-1.614,4.066l2.15,0.854l-2.537,6.391c-0.61,1.54,0.143,3.283,1.683,3.895l1.626,0.646L8.985,26.84c-0.407,1.025,0.095,2.188,1.122,2.596l0.93,0.369c1.026,0.408,2.188-0.095,2.596-1.121l0.877-2.207l1.858,0.737c1.54,0.611,3.284-0.142,3.896-1.682l2.535-6.391l1.918,0.761L26.33,15.836z")}})},
1"./src/shape/icon/Plus.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Plus=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Plus",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.979,12.896 19.312,12.896 19.312,6.229 12.647,6.229 12.647,12.896 5.979,12.896 5.979,19.562 12.647,19.562 12.647,26.229 19.312,26.229 19.312,19.562 25.979,19.562z")}})},
1"./src/shape/icon/Power.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Power=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Power",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.542,8.354c-1.47-1.766-2.896-2.617-3.025-2.695c-0.954-0.565-2.181-0.241-2.739,0.724c-0.556,0.961-0.24,2.194,0.705,2.763c0,0,0.001,0,0.002,0.001c0.001,0,0.002,0.001,0.003,0.002c0.001,0,0.003,0.001,0.004,0.001c0.102,0.062,1.124,0.729,2.08,1.925c1.003,1.261,1.933,3.017,1.937,5.438c-0.001,2.519-1.005,4.783-2.64,6.438c-1.637,1.652-3.877,2.668-6.368,2.669c-2.491-0.001-4.731-1.017-6.369-2.669c-1.635-1.654-2.639-3.919-2.64-6.438c0.005-2.499,0.995-4.292,2.035-5.558c0.517-0.625,1.043-1.098,1.425-1.401c0.191-0.152,0.346-0.263,0.445-0.329c0.049-0.034,0.085-0.058,0.104-0.069c0.005-0.004,0.009-0.006,0.012-0.008s0.004-0.002,0.004-0.002l0,0c0.946-0.567,1.262-1.802,0.705-2.763c-0.559-0.965-1.785-1.288-2.739-0.724c-0.128,0.079-1.555,0.93-3.024,2.696c-1.462,1.751-2.974,4.511-2.97,8.157C2.49,23.775,8.315,29.664,15.5,29.667c7.186-0.003,13.01-5.892,13.012-13.155C28.516,12.864,27.005,10.105,25.542,8.354zM15.5,17.523c1.105,0,2.002-0.907,2.002-2.023h-0.001V3.357c0-1.118-0.896-2.024-2.001-2.024s-2.002,0.906-2.002,2.024V15.5C13.498,16.616,14.395,17.523,15.5,17.523z")}})},
1"./src/shape/icon/Ppt.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Ppt=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Ppt",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16.604,1.914c0-0.575-0.466-1.041-1.041-1.041s-1.041,0.466-1.041,1.041v1.04h2.082V1.914zM16.604,22.717h-2.082v3.207c0,0.574-4.225,4.031-4.225,4.031l2.468-0.003l2.807-2.673l3.013,2.693l2.272-0.039l-4.254-4.011V22.717L16.604,22.717zM28.566,7.113c0.86,0,1.56-0.698,1.56-1.56c0-0.861-0.698-1.56-1.56-1.56H2.561c-0.861,0-1.56,0.699-1.56,1.56c0,0.862,0.699,1.56,1.56,1.56h1.583v12.505l-0.932-0.022c-0.861,0-1.213,0.467-1.213,1.04c0,0.576,0.352,1.041,1.213,1.041h24.597c0.86,0,1.299-0.465,1.299-1.041c0-1.094-1.299-1.04-1.299-1.04l-0.804,0.109V7.113H28.566zM11.435,17.516c-3.771,0-4.194-4.191-4.194-4.191c0-4.096,4.162-4.161,4.162-4.161v4.161h4.193C15.596,17.516,11.435,17.516,11.435,17.516zM18.716,13.388h-1.071v-1.073h1.071V13.388zM18.716,10.267h-1.071V9.194h1.071V10.267zM23.314,13.388H20.26c-0.296,0-0.535-0.24-0.535-0.536c0-0.297,0.239-0.537,0.535-0.537h3.057c0.297,0,0.535,0.24,0.535,0.537C23.852,13.147,23.611,13.388,23.314,13.388zM23.314,10.267H20.26c-0.296,0-0.535-0.239-0.535-0.535c0-0.297,0.239-0.537,0.535-0.537h3.057c0.297,0,0.535,0.24,0.535,0.537C23.852,10.027,23.611,10.267,23.314,10.267z")}})},
1"./src/shape/icon/Printer.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Printer=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Printer",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.569,12.125h-2.12c-0.207-1.34-1.247-2.759-2.444-3.967c-1.277-1.24-2.654-2.234-3.784-2.37c-0.062-0.008-0.124-0.014-0.198-0.015H8.594c-0.119,0-0.235,0.047-0.319,0.132c-0.083,0.083-0.132,0.2-0.132,0.32v5.9H6.069c-1.104,0-2,0.896-2,2V23h4.074v2.079c0,0.118,0.046,0.23,0.132,0.318c0.086,0.085,0.199,0.131,0.319,0.131h13.445c0.118,0,0.232-0.046,0.318-0.131s0.138-0.199,0.138-0.318V23h4.074v-8.875C26.569,13.021,25.674,12.125,24.569,12.125zM21.589,24.626H9.043V21.5h12.546V24.626zM21.589,13.921c0-0.03,0-0.063-0.003-0.096c-0.015-0.068-0.062-0.135-0.124-0.2H9.043v-6.95h6.987v0.001c0.305-0.019,0.567,0.282,0.769,0.971c0.183,0.655,0.229,1.509,0.229,2.102c0.001,0.433-0.019,0.725-0.019,0.725l-0.037,0.478l0.48,0.005c0.002,0,1.109,0.014,2.196,0.26c1.044,0.226,1.86,0.675,1.938,1.184c0.003,0.045,0.003,0.091,0.003,0.133V13.921z")}})},
1"./src/shape/icon/Quote.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Quote=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Quote",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.505,5.873c-3.937,2.52-5.904,5.556-5.904,9.108c0,1.104,0.192,1.656,0.576,1.656l0.396-0.107c0.312-0.12,0.563-0.18,0.756-0.18c1.128,0,2.07,0.411,2.826,1.229c0.756,0.82,1.134,1.832,1.134,3.037c0,1.157-0.408,2.14-1.224,2.947c-0.816,0.807-1.801,1.211-2.952,1.211c-1.608,0-2.935-0.661-3.979-1.984c-1.044-1.321-1.565-2.98-1.565-4.977c0-2.259,0.443-4.327,1.332-6.203c0.888-1.875,2.243-3.57,4.067-5.085c1.824-1.514,2.988-2.272,3.492-2.272c0.336,0,0.612,0.162,0.828,0.486c0.216,0.324,0.324,0.606,0.324,0.846L14.505,5.873zM27.465,5.873c-3.937,2.52-5.904,5.556-5.904,9.108c0,1.104,0.192,1.656,0.576,1.656l0.396-0.107c0.312-0.12,0.563-0.18,0.756-0.18c1.104,0,2.04,0.411,2.808,1.229c0.769,0.82,1.152,1.832,1.152,3.037c0,1.157-0.408,2.14-1.224,2.947c-0.816,0.807-1.801,1.211-2.952,1.211c-1.608,0-2.935-0.661-3.979-1.984c-1.044-1.321-1.565-2.98-1.565-4.977c0-2.284,0.449-4.369,1.35-6.256c0.9-1.887,2.256-3.577,4.068-5.067c1.812-1.49,2.97-2.236,3.474-2.236c0.336,0,0.612,0.162,0.828,0.486c0.216,0.324,0.324,0.606,0.324,0.846L27.465,5.873z")}})},
1"./src/shape/icon/Rain.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Rain=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Rain",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.371,7.306c-0.092-3.924-3.301-7.077-7.248-7.079c-2.638,0.001-4.942,1.412-6.208,3.517c-0.595-0.327-1.28-0.517-2.01-0.517C7.626,3.229,5.772,5.033,5.689,7.293c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h15.874c3.312,0,6-2.688,6-6C29.434,10.34,27.732,8.11,25.371,7.306zM23.436,16.979H7.561c-2.209-0.006-3.997-1.792-4.001-4.001c-0.002-1.982,1.45-3.618,3.35-3.931c0.265-0.043,0.502-0.191,0.657-0.414C7.722,8.41,7.779,8.136,7.73,7.87C7.702,7.722,7.685,7.582,7.685,7.446C7.689,6.221,8.68,5.23,9.905,5.228c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.309c0.342-0.066,0.626-0.307,0.748-0.63c0.749-1.992,2.662-3.412,4.911-3.41c2.899,0.004,5.244,2.35,5.251,5.249c0,0.161-0.009,0.326-0.027,0.497c-0.049,0.517,0.305,0.984,0.815,1.079c1.86,0.344,3.274,1.966,3.271,3.923C27.43,15.186,25.645,16.973,23.436,16.979zM9.029,26.682c0-1.115,0.021-5.425,0.021-5.432c0.002-0.409-0.247-0.779-0.628-0.932c-0.38-0.152-0.815-0.059-1.099,0.24c-0.006,0.008-1.037,1.098-2.081,2.342c-0.523,0.627-1.048,1.287-1.463,1.896c-0.399,0.648-0.753,1.066-0.811,1.885C2.971,28.355,4.324,29.711,6,29.714C7.672,29.71,9.029,28.354,9.029,26.682zM4.971,26.727c0.091-0.349,1.081-1.719,1.993-2.764c0.025-0.029,0.051-0.061,0.076-0.089c-0.005,1.124-0.01,2.294-0.01,2.808c0,0.567-0.461,1.028-1.029,1.03C5.447,27.71,4.997,27.273,4.971,26.727zM16.425,26.682c0-1.115,0.021-5.424,0.021-5.43c0.002-0.41-0.247-0.779-0.628-0.934c-0.381-0.152-0.814-0.058-1.1,0.242c-0.006,0.008-1.035,1.094-2.08,2.342c-0.522,0.623-1.047,1.285-1.463,1.894c-0.399,0.649-0.753,1.068-0.809,1.888c0,1.672,1.354,3.028,3.029,3.028C15.068,29.711,16.425,28.354,16.425,26.682zM12.365,26.729c0.092-0.349,1.081-1.72,1.993-2.765c0.025-0.03,0.05-0.06,0.075-0.089c-0.005,1.123-0.011,2.294-0.011,2.807c-0.002,0.568-0.461,1.027-1.028,1.029C12.84,27.709,12.392,27.273,12.365,26.729zM23.271,20.317c-0.38-0.153-0.816-0.06-1.099,0.24c-0.009,0.008-1.037,1.097-2.08,2.342c-0.523,0.625-1.049,1.285-1.462,1.896c-0.402,0.649-0.754,1.067-0.812,1.886c0,1.672,1.354,3.029,3.03,3.029c1.673,0,3.027-1.357,3.027-3.029c0-1.115,0.022-5.425,0.022-5.431C23.9,20.84,23.651,20.47,23.271,20.317zM21.879,26.681c-0.004,0.568-0.463,1.027-1.031,1.029c-0.553-0.002-1.002-0.438-1.028-0.982c0.092-0.349,1.081-1.72,1.993-2.765c0.025-0.028,0.05-0.059,0.074-0.088C21.883,24.998,21.879,26.167,21.879,26.681z")}})},
1"./src/shape/icon/Raphael.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Raphael=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Raphael",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M27.777,18.941c0.584-0.881,0.896-1.914,0.896-2.998c0-1.457-0.567-2.826-1.598-3.854l-6.91-6.911l-0.003,0.002c-0.985-0.988-2.35-1.6-3.851-1.6c-1.502,0-2.864,0.612-3.85,1.6H12.46l-6.911,6.911c-1.031,1.029-1.598,2.398-1.598,3.854c0,1.457,0.567,2.826,1.598,3.854l6.231,6.229c0.25,0.281,0.512,0.544,0.789,0.785c1.016,0.961,2.338,1.49,3.743,1.49c1.456,0,2.825-0.565,3.854-1.598l6.723-6.725c0.021-0.019,0.034-0.032,0.051-0.051l0.14-0.138c0.26-0.26,0.487-0.54,0.688-0.838c0.004-0.008,0.01-0.015,0.014-0.021L27.777,18.941zM26.658,15.946c0,0.678-0.197,1.326-0.561,1.879c-0.222,0.298-0.447,0.559-0.684,0.784L25.4,18.625c-1.105,1.052-2.354,1.35-3.414,1.35c-0.584,0-1.109-0.09-1.523-0.195c-2.422-0.608-5.056-2.692-6.261-5.732c0.649,0.274,1.362,0.426,2.11,0.426c2.811,0,5.129-2.141,5.415-4.877l3.924,3.925C26.301,14.167,26.658,15.029,26.658,15.946zM16.312,5.6c1.89,0,3.426,1.538,3.426,3.427c0,1.89-1.536,3.427-3.426,3.427c-1.889,0-3.426-1.537-3.426-3.427C12.886,7.138,14.423,5.6,16.312,5.6zM6.974,18.375c-0.649-0.648-1.007-1.512-1.007-2.429c0-0.917,0.357-1.78,1.007-2.428l2.655-2.656c-0.693,2.359-0.991,4.842-0.831,7.221c0.057,0.854,0.175,1.677,0.345,2.46L6.974,18.375zM11.514,11.592c0.583,4.562,4.195,9.066,8.455,10.143c0.693,0.179,1.375,0.265,2.033,0.265c0.01,0,0.02,0,0.027,0l-3.289,3.289c-0.648,0.646-1.512,1.006-2.428,1.006c-0.638,0-1.248-0.177-1.779-0.5l0.001-0.002c-0.209-0.142-0.408-0.295-0.603-0.461c-0.015-0.019-0.031-0.026-0.046-0.043l-0.665-0.664c-1.367-1.567-2.227-3.903-2.412-6.671C10.669,15.856,10.921,13.673,11.514,11.592")}})},
1"./src/shape/icon/ReflectH.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ReflectH=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ReflectH",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.57,20.273h0.854v-1.705H15.57V20.273zM15.57,23.686h0.854V21.98H15.57V23.686zM15.57,27.096h0.854v-1.705H15.57V27.096zM15.57,29.689h0.854V28.8H15.57V29.689zM15.57,16.865h0.854V15.16H15.57V16.865zM15.57,3.225h0.854V1.52H15.57V3.225zM15.57,6.635h0.854V4.93H15.57V6.635zM15.57,10.045h0.854V8.34H15.57V10.045zM15.57,13.455h0.854V11.75H15.57V13.455zM18.41,3.327V25.46h12.015L18.41,3.327zM19.264,6.68l9.729,17.93h-9.729V6.68zM13.535,25.46V3.327L1.521,25.46H13.535z")}})},
1"./src/shape/icon/ReflectV.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ReflectV=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ReflectV",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M20.643,16.008v-0.854h-1.705v0.854H20.643zM24.053,16.008v-0.854h-1.705v0.854H24.053zM27.463,16.008v-0.854h-1.705v0.854H27.463zM30.059,16.008v-0.854h-0.891v0.854H30.059zM17.232,16.008v-0.854h-1.709v0.854H17.232zM3.593,16.008v-0.854H1.888v0.854H3.593zM7.003,16.008v-0.854H5.298v0.854H7.003zM10.414,16.008v-0.854H8.709v0.854H10.414zM13.824,16.008v-0.854h-1.705v0.854H13.824zM3.694,13.167h22.134V1.152L3.694,13.167zM7.048,12.314l17.929-9.729v9.729H7.048zM25.828,18.042H3.694l22.134,12.015V18.042z")}})},
1"./src/shape/icon/Refresh.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Refresh=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Refresh",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.083,15.5c-0.009,4.739-3.844,8.574-8.583,8.583c-4.741-0.009-8.577-3.844-8.585-8.583c0.008-4.741,3.844-8.577,8.585-8.585c1.913,0,3.665,0.629,5.09,1.686l-1.782,1.783l8.429,2.256l-2.26-8.427l-1.89,1.89c-2.072-1.677-4.717-2.688-7.587-2.688C8.826,3.418,3.418,8.826,3.416,15.5C3.418,22.175,8.826,27.583,15.5,27.583S27.583,22.175,27.583,15.5H24.083z")}})},
1"./src/shape/icon/Resize2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Resize2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Resize2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M1.999,2.332v26.499H28.5V2.332H1.999zM26.499,26.832H4V12.5h8.167V4.332h14.332V26.832zM15.631,17.649l5.468,5.469l-1.208,1.206l5.482,1.469l-1.47-5.481l-1.195,1.195l-5.467-5.466l1.209-1.208l-5.482-1.469l1.468,5.48L15.631,17.649z")}})},
1"./src/shape/icon/Rotate.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Rotate=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Rotate",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.5,5.27c1.914,0,3.666,0.629,5.089,1.686l-1.781,1.783l8.428,2.256l-2.26-8.427l-1.889,1.89C21.016,2.781,18.371,1.77,15.5,1.77C8.827,1.773,3.418,7.181,3.417,13.855c0.001,4.063,2.012,7.647,5.084,9.838v-4.887c-0.993-1.4-1.583-3.105-1.585-4.952C6.923,9.114,10.759,5.278,15.5,5.27zM9.5,29.23h12V12.355h-12V29.23z")}})},
1"./src/shape/icon/Ruler.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Ruler=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Ruler",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M6.63,21.796l-5.122,5.121h25.743V1.175L6.63,21.796zM18.702,10.48c0.186-0.183,0.48-0.183,0.664,0l1.16,1.159c0.184,0.183,0.186,0.48,0.002,0.663c-0.092,0.091-0.213,0.137-0.332,0.137c-0.121,0-0.24-0.046-0.33-0.137l-1.164-1.159C18.519,10.96,18.519,10.664,18.702,10.48zM17.101,12.084c0.184-0.183,0.48-0.183,0.662,0l2.156,2.154c0.184,0.183,0.184,0.48,0.002,0.661c-0.092,0.092-0.213,0.139-0.334,0.139s-0.24-0.046-0.33-0.137l-2.156-2.154C16.917,12.564,16.917,12.267,17.101,12.084zM15.497,13.685c0.184-0.183,0.48-0.183,0.664,0l1.16,1.161c0.184,0.183,0.182,0.48-0.002,0.663c-0.092,0.092-0.211,0.138-0.33,0.138c-0.121,0-0.24-0.046-0.332-0.138l-1.16-1.16C15.314,14.166,15.314,13.868,15.497,13.685zM13.896,15.288c0.184-0.183,0.48-0.181,0.664,0.002l1.158,1.159c0.183,0.184,0.183,0.48,0,0.663c-0.092,0.092-0.212,0.138-0.332,0.138c-0.119,0-0.24-0.046-0.332-0.138l-1.158-1.161C13.713,15.767,13.713,15.471,13.896,15.288zM12.293,16.892c0.183-0.184,0.479-0.184,0.663,0l2.154,2.153c0.184,0.184,0.184,0.481,0,0.665c-0.092,0.092-0.211,0.138-0.33,0.138c-0.121,0-0.242-0.046-0.334-0.138l-2.153-2.155C12.11,17.371,12.11,17.075,12.293,16.892zM10.302,24.515c-0.091,0.093-0.212,0.139-0.332,0.139c-0.119,0-0.238-0.045-0.33-0.137l-2.154-2.153c-0.184-0.183-0.184-0.479,0-0.663s0.479-0.184,0.662,0l2.154,2.153C10.485,24.036,10.485,24.332,10.302,24.515zM10.912,21.918c-0.093,0.093-0.214,0.139-0.333,0.139c-0.12,0-0.24-0.045-0.33-0.137l-1.162-1.161c-0.184-0.183-0.184-0.479,0-0.66c0.184-0.185,0.48-0.187,0.664-0.003l1.161,1.162C11.095,21.438,11.095,21.735,10.912,21.918zM12.513,20.316c-0.092,0.092-0.211,0.138-0.332,0.138c-0.119,0-0.239-0.046-0.331-0.138l-1.159-1.16c-0.184-0.184-0.184-0.48,0-0.664s0.48-0.182,0.663,0.002l1.159,1.161C12.696,19.838,12.696,20.135,12.513,20.316zM22.25,21.917h-8.67l8.67-8.67V21.917zM22.13,10.7c-0.09,0.092-0.211,0.138-0.33,0.138c-0.121,0-0.242-0.046-0.334-0.138l-1.16-1.159c-0.184-0.183-0.184-0.479,0-0.663c0.182-0.183,0.479-0.183,0.662,0l1.16,1.159C22.312,10.221,22.313,10.517,22.13,10.7zM24.726,10.092c-0.092,0.092-0.213,0.137-0.332,0.137s-0.24-0.045-0.33-0.137l-2.154-2.154c-0.184-0.183-0.184-0.481,0-0.664s0.482-0.181,0.664,0.002l2.154,2.154C24.911,9.613,24.909,9.91,24.726,10.092z")}})},
1"./src/shape/icon/Run.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Run=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Run",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M17.41,20.395l-0.778-2.723c0.228-0.2,0.442-0.414,0.644-0.643l2.721,0.778c0.287-0.418,0.534-0.862,0.755-1.323l-2.025-1.96c0.097-0.288,0.181-0.581,0.241-0.883l2.729-0.684c0.02-0.252,0.039-0.505,0.039-0.763s-0.02-0.51-0.039-0.762l-2.729-0.684c-0.061-0.302-0.145-0.595-0.241-0.883l2.026-1.96c-0.222-0.46-0.469-0.905-0.756-1.323l-2.721,0.777c-0.201-0.228-0.416-0.442-0.644-0.643l0.778-2.722c-0.418-0.286-0.863-0.534-1.324-0.755l-1.96,2.026c-0.287-0.097-0.581-0.18-0.883-0.241l-0.683-2.73c-0.253-0.019-0.505-0.039-0.763-0.039s-0.51,0.02-0.762,0.039l-0.684,2.73c-0.302,0.061-0.595,0.144-0.883,0.241l-1.96-2.026C7.048,3.463,6.604,3.71,6.186,3.997l0.778,2.722C6.736,6.919,6.521,7.134,6.321,7.361L3.599,6.583C3.312,7.001,3.065,7.446,2.844,7.907l2.026,1.96c-0.096,0.288-0.18,0.581-0.241,0.883l-2.73,0.684c-0.019,0.252-0.039,0.505-0.039,0.762s0.02,0.51,0.039,0.763l2.73,0.684c0.061,0.302,0.145,0.595,0.241,0.883l-2.026,1.96c0.221,0.46,0.468,0.905,0.755,1.323l2.722-0.778c0.2,0.229,0.415,0.442,0.643,0.643l-0.778,2.723c0.418,0.286,0.863,0.533,1.323,0.755l1.96-2.026c0.288,0.097,0.581,0.181,0.883,0.241l0.684,2.729c0.252,0.02,0.505,0.039,0.763,0.039s0.51-0.02,0.763-0.039l0.683-2.729c0.302-0.061,0.596-0.145,0.883-0.241l1.96,2.026C16.547,20.928,16.992,20.681,17.41,20.395zM11.798,15.594c-1.877,0-3.399-1.522-3.399-3.399s1.522-3.398,3.399-3.398s3.398,1.521,3.398,3.398S13.675,15.594,11.798,15.594zM27.29,22.699c0.019-0.547-0.06-1.104-0.23-1.654l1.244-1.773c-0.188-0.35-0.4-0.682-0.641-0.984l-2.122,0.445c-0.428-0.364-0.915-0.648-1.436-0.851l-0.611-2.079c-0.386-0.068-0.777-0.105-1.173-0.106l-0.974,1.936c-0.279,0.054-0.558,0.128-0.832,0.233c-0.257,0.098-0.497,0.22-0.727,0.353L17.782,17.4c-0.297,0.262-0.568,0.545-0.813,0.852l0.907,1.968c-0.259,0.495-0.437,1.028-0.519,1.585l-1.891,1.06c0.019,0.388,0.076,0.776,0.164,1.165l2.104,0.519c0.231,0.524,0.541,0.993,0.916,1.393l-0.352,2.138c0.32,0.23,0.66,0.428,1.013,0.6l1.715-1.32c0.536,0.141,1.097,0.195,1.662,0.15l1.452,1.607c0.2-0.057,0.399-0.118,0.596-0.193c0.175-0.066,0.34-0.144,0.505-0.223l0.037-2.165c0.455-0.339,0.843-0.747,1.152-1.206l2.161-0.134c0.152-0.359,0.279-0.732,0.368-1.115L27.29,22.699zM23.127,24.706c-1.201,0.458-2.545-0.144-3.004-1.345s0.143-2.546,1.344-3.005c1.201-0.458,2.547,0.144,3.006,1.345C24.931,22.902,24.328,24.247,23.127,24.706z")}})},
1"./src/shape/icon/Rw.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Rw=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Rw",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M5.5,15.499,15.8,21.447,15.8,15.846,25.5,21.447,25.5,9.552,15.8,15.152,15.8,9.552z")}})},
1"./src/shape/icon/Safari.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Safari=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Safari",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16.154,5.135c-0.504,0-1,0.031-1.488,0.089l-0.036-0.18c-0.021-0.104-0.06-0.198-0.112-0.283c0.381-0.308,0.625-0.778,0.625-1.306c0-0.927-0.751-1.678-1.678-1.678s-1.678,0.751-1.678,1.678c0,0.745,0.485,1.376,1.157,1.595c-0.021,0.105-0.021,0.216,0,0.328l0.033,0.167C7.645,6.95,3.712,11.804,3.712,17.578c0,6.871,5.571,12.441,12.442,12.441c6.871,0,12.441-5.57,12.441-12.441C28.596,10.706,23.025,5.135,16.154,5.135zM16.369,8.1c4.455,0,8.183,3.116,9.123,7.287l-0.576,0.234c-0.148-0.681-0.755-1.191-1.48-1.191c-0.837,0-1.516,0.679-1.516,1.516c0,0.075,0.008,0.148,0.018,0.221l-2.771-0.028c-0.054-0.115-0.114-0.226-0.182-0.333l3.399-5.11l0.055-0.083l-4.766,4.059c-0.352-0.157-0.74-0.248-1.148-0.256l0.086-0.018l-1.177-2.585c0.64-0.177,1.111-0.763,1.111-1.459c0-0.837-0.678-1.515-1.516-1.515c-0.075,0-0.147,0.007-0.219,0.018l0.058-0.634C15.357,8.141,15.858,8.1,16.369,8.1zM12.146,3.455c0-0.727,0.591-1.318,1.318-1.318c0.727,0,1.318,0.591,1.318,1.318c0,0.425-0.203,0.802-0.516,1.043c-0.183-0.123-0.413-0.176-0.647-0.13c-0.226,0.045-0.413,0.174-0.535,0.349C12.542,4.553,12.146,4.049,12.146,3.455zM7.017,17.452c0-4.443,3.098-8.163,7.252-9.116l0.297,0.573c-0.61,0.196-1.051,0.768-1.051,1.442c0,0.837,0.678,1.516,1.515,1.516c0.068,0,0.135-0.006,0.2-0.015l-0.058,2.845l0.052-0.011c-0.442,0.204-0.824,0.513-1.116,0.895l0.093-0.147l-1.574-0.603l1.172,1.239l0.026-0.042c-0.19,0.371-0.306,0.788-0.324,1.229l-0.003-0.016l-2.623,1.209c-0.199-0.604-0.767-1.041-1.438-1.041c-0.837,0-1.516,0.678-1.516,1.516c0,0.064,0.005,0.128,0.013,0.191l-0.783-0.076C7.063,18.524,7.017,17.994,7.017,17.452zM16.369,26.805c-4.429,0-8.138-3.078-9.106-7.211l0.691-0.353c0.146,0.686,0.753,1.2,1.482,1.2c0.837,0,1.515-0.679,1.515-1.516c0-0.105-0.011-0.207-0.031-0.307l2.858,0.03c0.045,0.095,0.096,0.187,0.15,0.276l-3.45,5.277l0.227-0.195l4.529-3.92c0.336,0.153,0.705,0.248,1.094,0.266l-0.019,0.004l1.226,2.627c-0.655,0.166-1.142,0.76-1.142,1.468c0,0.837,0.678,1.515,1.516,1.515c0.076,0,0.151-0.007,0.225-0.018l0.004,0.688C17.566,26.746,16.975,26.805,16.369,26.805zM18.662,26.521l-0.389-0.6c0.661-0.164,1.152-0.759,1.152-1.47c0-0.837-0.68-1.516-1.516-1.516c-0.066,0-0.13,0.005-0.193,0.014v-2.86l-0.025,0.004c0.409-0.185,0.77-0.459,1.055-0.798l1.516,0.659l-1.104-1.304c0.158-0.335,0.256-0.704,0.278-1.095l2.552-1.164c0.19,0.618,0.766,1.068,1.447,1.068c0.838,0,1.516-0.679,1.516-1.516c0-0.069-0.006-0.137-0.016-0.204l0.65,0.12c0.089,0.517,0.136,1.049,0.136,1.591C25.722,21.826,22.719,25.499,18.662,26.521z")}})},
1"./src/shape/icon/ScrewDriver.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ScrewDriver=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ScrewDriver",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M19.387,14.373c2.119-2.619,5.322-6.77,5.149-7.75c-0.128-0.729-0.882-1.547-1.763-2.171c-0.883-0.625-1.916-1.044-2.645-0.915c-0.98,0.173-3.786,4.603-5.521,7.49c-0.208,0.344,0.328,1.177,0.156,1.468c-0.172,0.292-1.052,0.042-1.18,0.261c-0.263,0.451-0.417,0.722-0.417,0.722s-0.553,0.823,1.163,2.163l-5.233,7.473c-0.267,0.381-1.456,0.459-1.456,0.459l-1.184,3.312l0.859,0.602l2.708-2.246c0,0-0.334-1.143-0.068-1.523l5.242-7.489c1.719,1,2.377,0.336,2.377,0.336s0.201-0.238,0.536-0.639c0.161-0.194-0.374-0.936-0.159-1.197C18.169,14.467,19.133,14.685,19.387,14.373z")}})},
1"./src/shape/icon/Search.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Search=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Search",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z")}})},
1"./src/shape/icon/Sencha.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Sencha=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Sencha",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M18.265,22.734c1.365,0.662,2.309,2.062,2.309,3.682c0,1.566-0.881,2.928-2.176,3.615l1.922-0.98c3.16-1.58,5.332-4.846,5.332-8.617c0-3.719-2.109-6.945-5.195-8.547l-6.272-3.144c-1.366-0.662-2.308-2.062-2.308-3.682c0-1.567,0.881-2.928,2.175-3.614L12.13,2.428c-3.161,1.578-5.332,4.843-5.332,8.616c0,3.718,2.108,6.944,5.195,8.546L18.265,22.734z")}})},
1"./src/shape/icon/Settings.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Settings=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Settings",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16.015,12.03c-2.156,0-3.903,1.747-3.903,3.903c0,2.155,1.747,3.903,3.903,3.903c0.494,0,0.962-0.102,1.397-0.27l0.836,1.285l1.359-0.885l-0.831-1.276c0.705-0.706,1.142-1.681,1.142-2.757C19.918,13.777,18.171,12.03,16.015,12.03zM16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM26.174,20.809c-0.241,0.504-0.513,0.99-0.826,1.45L22.19,21.58c-0.481,0.526-1.029,0.994-1.634,1.385l0.119,3.202c-0.507,0.23-1.028,0.421-1.569,0.57l-1.955-2.514c-0.372,0.051-0.75,0.086-1.136,0.086c-0.356,0-0.706-0.029-1.051-0.074l-1.945,2.5c-0.541-0.151-1.065-0.342-1.57-0.569l0.117-3.146c-0.634-0.398-1.208-0.88-1.712-1.427L6.78,22.251c-0.313-0.456-0.583-0.944-0.826-1.448l2.088-2.309c-0.226-0.703-0.354-1.451-0.385-2.223l-2.768-1.464c0.055-0.563,0.165-1.107,0.301-1.643l3.084-0.427c0.29-0.702,0.675-1.352,1.135-1.942L8.227,7.894c0.399-0.389,0.83-0.744,1.283-1.07l2.663,1.672c0.65-0.337,1.349-0.593,2.085-0.75l0.968-3.001c0.278-0.021,0.555-0.042,0.837-0.042c0.282,0,0.56,0.022,0.837,0.042l0.976,3.028c0.72,0.163,1.401,0.416,2.036,0.75l2.704-1.697c0.455,0.326,0.887,0.681,1.285,1.07l-1.216,2.986c0.428,0.564,0.793,1.181,1.068,1.845l3.185,0.441c0.135,0.535,0.247,1.081,0.302,1.643l-2.867,1.516c-0.034,0.726-0.15,1.43-0.355,2.1L26.174,20.809z")}})},
1"./src/shape/icon/SettingsAlt.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.SettingsAlt=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.SettingsAlt",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM24.386,14.968c-1.451,1.669-3.706,2.221-5.685,1.586l-7.188,8.266c-0.766,0.88-2.099,0.97-2.979,0.205s-0.973-2.099-0.208-2.979l7.198-8.275c-0.893-1.865-0.657-4.164,0.787-5.824c1.367-1.575,3.453-2.151,5.348-1.674l-2.754,3.212l0.901,2.621l2.722,0.529l2.761-3.22C26.037,11.229,25.762,13.387,24.386,14.968z")}})},
1"./src/shape/icon/Shuffle.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Shuffle=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Shuffle",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.786,20.654c-0.618-0.195-1.407-0.703-2.291-1.587c-0.757-0.742-1.539-1.698-2.34-2.741c-0.191,0.256-0.382,0.51-0.574,0.77c-0.524,0.709-1.059,1.424-1.604,2.127c1.904,2.31,3.88,4.578,6.809,4.952v2.701l7.556-4.362l-7.556-4.362V20.654zM9.192,11.933c0.756,0.741,1.538,1.697,2.339,2.739c0.195-0.262,0.39-0.521,0.587-0.788c0.52-0.703,1.051-1.412,1.592-2.11c-2.032-2.463-4.133-4.907-7.396-5.025h-3.5v3.5h3.5C6.969,10.223,7.996,10.735,9.192,11.933zM21.786,10.341v2.535l7.556-4.363l-7.556-4.363v2.647c-1.904,0.219-3.425,1.348-4.751,2.644c-2.196,2.183-4.116,5.167-6.011,7.538c-1.867,2.438-3.741,3.888-4.712,3.771h-3.5v3.5h3.5c2.185-0.029,3.879-1.266,5.34-2.693c2.194-2.184,4.116-5.167,6.009-7.538C19.205,12.003,20.746,10.679,21.786,10.341z")}})},
1"./src/shape/icon/Skull.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Skull=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Skull",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.947,11.14c0-5.174-3.979-9.406-10.613-9.406c-6.633,0-10.282,4.232-10.282,9.406c0,5.174,1.459,4.511,1.459,7.43c0,1.095-1.061,0.564-1.061,2.919c0,2.587,3.615,2.223,4.677,3.283c1.061,1.062,0.961,3.019,0.961,3.019s0.199,0.796,0.564,0.563c0,0,0.232,0.564,0.498,0.232c0,0,0.265,0.563,0.531,0.1c0,0,0.265,0.631,0.696,0.166c0,0,0.431,0.63,0.929,0.133c0,0,0.564,0.53,1.194,0.133c0.63,0.397,1.194-0.133,1.194-0.133c0.497,0.497,0.929-0.133,0.929-0.133c0.432,0.465,0.695-0.166,0.695-0.166c0.268,0.464,0.531-0.1,0.531-0.1c0.266,0.332,0.498-0.232,0.498-0.232c0.365,0.232,0.564-0.563,0.564-0.563s-0.1-1.957,0.961-3.019c1.062-1.061,4.676-0.696,4.676-3.283c0-2.354-1.061-1.824-1.061-2.919C24.488,15.651,25.947,16.314,25.947,11.14zM10.333,20.992c-1.783,0.285-2.59-0.215-2.785-1.492c-0.508-3.328,2.555-3.866,4.079-3.683c0.731,0.088,1.99,0.862,1.99,1.825C13.617,20.229,11.992,20.727,10.333,20.992zM16.461,25.303c-0.331,0-0.862-0.431-0.895-1.227c-0.033,0.796-0.63,1.227-0.961,1.227c-0.332,0-0.83-0.331-0.863-1.127c-0.033-0.796,1.028-4.013,1.792-4.013c0.762,0,1.824,3.217,1.791,4.013S16.794,25.303,16.461,25.303zM23.361,19.5c-0.195,1.277-1.004,1.777-2.787,1.492c-1.658-0.266-3.283-0.763-3.283-3.35c0-0.963,1.258-1.737,1.99-1.825C20.805,15.634,23.869,16.172,23.361,19.5z")}})},
1"./src/shape/icon/Skype.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Skype=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Skype",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.777,18.438c0.209-0.948,0.318-1.934,0.318-2.944c0-7.578-6.144-13.722-13.724-13.722c-0.799,0-1.584,0.069-2.346,0.2C11.801,1.199,10.35,0.75,8.793,0.75c-4.395,0-7.958,3.562-7.958,7.958c0,1.47,0.399,2.845,1.094,4.024c-0.183,0.893-0.277,1.814-0.277,2.76c0,7.58,6.144,13.723,13.722,13.723c0.859,0,1.699-0.078,2.515-0.23c1.119,0.604,2.399,0.945,3.762,0.945c4.395,0,7.957-3.562,7.957-7.959C29.605,20.701,29.309,19.502,28.777,18.438zM22.412,22.051c-0.635,0.898-1.573,1.609-2.789,2.115c-1.203,0.5-2.646,0.754-4.287,0.754c-1.971,0-3.624-0.346-4.914-1.031C9.5,23.391,8.74,22.717,8.163,21.885c-0.583-0.842-0.879-1.676-0.879-2.479c0-0.503,0.192-0.939,0.573-1.296c0.375-0.354,0.857-0.532,1.432-0.532c0.471,0,0.878,0.141,1.209,0.422c0.315,0.269,0.586,0.662,0.805,1.174c0.242,0.558,0.508,1.027,0.788,1.397c0.269,0.355,0.656,0.656,1.151,0.89c0.497,0.235,1.168,0.354,1.992,0.354c1.135,0,2.064-0.241,2.764-0.721c0.684-0.465,1.016-1.025,1.016-1.711c0-0.543-0.173-0.969-0.529-1.303c-0.373-0.348-0.865-0.621-1.465-0.807c-0.623-0.195-1.47-0.404-2.518-0.623c-1.424-0.306-2.634-0.668-3.596-1.076c-0.984-0.419-1.777-1-2.357-1.727c-0.59-0.736-0.889-1.662-0.889-2.75c0-1.036,0.314-1.971,0.933-2.776c0.613-0.8,1.51-1.423,2.663-1.849c1.139-0.422,2.494-0.635,4.027-0.635c1.225,0,2.303,0.141,3.201,0.421c0.904,0.282,1.668,0.662,2.267,1.13c0.604,0.472,1.054,0.977,1.335,1.5c0.284,0.529,0.43,1.057,0.43,1.565c0,0.49-0.189,0.937-0.563,1.324c-0.375,0.391-0.851,0.589-1.408,0.589c-0.509,0-0.905-0.124-1.183-0.369c-0.258-0.227-0.523-0.58-0.819-1.09c-0.342-0.65-0.756-1.162-1.229-1.523c-0.463-0.351-1.232-0.529-2.292-0.529c-0.984,0-1.784,0.197-2.379,0.588c-0.572,0.375-0.85,0.805-0.85,1.314c0,0.312,0.09,0.574,0.273,0.799c0.195,0.238,0.471,0.447,0.818,0.621c0.36,0.182,0.732,0.326,1.104,0.429c0.382,0.106,1.021,0.263,1.899,0.466c1.11,0.238,2.131,0.506,3.034,0.793c0.913,0.293,1.703,0.654,2.348,1.072c0.656,0.429,1.178,0.979,1.547,1.635c0.369,0.658,0.558,1.471,0.558,2.416C23.371,20.119,23.049,21.148,22.412,22.051z")}})},
1"./src/shape/icon/SlideShare.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.SlideShare=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.SlideShare",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.952,12.795c-0.956,1.062-5.073,2.409-5.604,2.409h-4.513c-0.749,0-1.877,0.147-2.408,0.484c0.061,0.054,0.122,0.108,0.181,0.163c0.408,0.379,1.362,0.913,2.206,0.913c0.397,0,0.723-0.115,1-0.354c1.178-1.007,1.79-1.125,2.145-1.125c0.421,0,0.783,0.193,0.996,0.531c0.4,0.626,0.106,1.445-0.194,2.087c-0.718,1.524-3.058,3.171-5.595,3.171c-0.002,0-0.002,0-0.004,0c-0.354,0-0.701-0.033-1.033-0.099v3.251c0,0.742,1.033,2.533,4.167,2.533s3.955-3.701,3.955-4.338v-4.512c2.23-1.169,4.512-1.805,5.604-3.895C30.882,12.05,29.907,11.733,28.952,12.795zM21.942,17.521c0.796-1.699-0.053-1.699-1.54-0.425s-3.665,0.105-4.408-0.585c-0.743-0.689-1.486-1.22-2.814-1.167c-1.328,0.053-4.46-0.161-6.267-0.585c-1.805-0.425-4.895-3-5.15-2.335c-0.266,0.69,0.211,1.168,1.168,2.335c0.955,1.169,5.075,2.778,5.075,2.778s0,3.453,0,4.886c0,1.435,2.973,3.61,4.512,3.61s2.708-1.062,2.708-1.806v-4.512C17.775,21.045,21.146,19.221,21.942,17.521zM20.342,13.73c1.744,0,3.159-1.414,3.159-3.158c0-1.745-1.415-3.159-3.159-3.159s-3.158,1.414-3.158,3.159C17.184,12.316,18.598,13.73,20.342,13.73zM12.019,13.73c1.744,0,3.158-1.414,3.158-3.158c0-1.745-1.414-3.159-3.158-3.159c-1.745,0-3.159,1.414-3.159,3.159C8.86,12.316,10.273,13.73,12.019,13.73z")}})},
1"./src/shape/icon/Smile.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Smile=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Smile",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM20.729,7.375c0.934,0,1.688,1.483,1.688,3.312S21.661,14,20.729,14c-0.932,0-1.688-1.483-1.688-3.312S19.798,7.375,20.729,7.375zM11.104,7.375c0.932,0,1.688,1.483,1.688,3.312S12.037,14,11.104,14s-1.688-1.483-1.688-3.312S10.172,7.375,11.104,7.375zM16.021,26c-2.873,0-5.563-1.757-7.879-4.811c2.397,1.564,5.021,2.436,7.774,2.436c2.923,0,5.701-0.98,8.215-2.734C21.766,24.132,18.99,26,16.021,26z")}})},
1"./src/shape/icon/Smile2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Smile2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Smile2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM16,29.534C8.539,29.534,2.466,23.462,2.466,16C2.466,8.539,8.539,2.466,16,2.466c7.462,0,13.535,6.072,13.535,13.533C29.534,23.462,23.462,29.534,16,29.534zM11.104,14c0.932,0,1.688-1.483,1.688-3.312s-0.755-3.312-1.688-3.312s-1.688,1.483-1.688,3.312S10.172,14,11.104,14zM20.729,14c0.934,0,1.688-1.483,1.688-3.312s-0.756-3.312-1.688-3.312c-0.932,0-1.688,1.483-1.688,3.312S19.798,14,20.729,14zM8.143,21.189C10.458,24.243,13.148,26,16.021,26c2.969,0,5.745-1.868,8.11-5.109c-2.515,1.754-5.292,2.734-8.215,2.734C13.164,23.625,10.54,22.756,8.143,21.189z")}})},
1"./src/shape/icon/Snow.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Snow=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Snow",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.372,6.912c-0.093-3.925-3.302-7.078-7.248-7.08c-2.638,0.002-4.942,1.412-6.208,3.518c-0.595-0.327-1.28-0.518-2.01-0.518C7.627,2.834,5.773,4.639,5.69,6.898c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h15.875c3.312,0,6-2.688,6-6C29.434,9.944,27.732,7.715,25.372,6.912zM23.436,16.584H7.562c-2.209-0.006-3.997-1.793-4.001-4c-0.002-1.983,1.45-3.619,3.35-3.933c0.265-0.043,0.502-0.19,0.657-0.414C7.723,8.015,7.78,7.74,7.731,7.475C7.703,7.326,7.686,7.187,7.686,7.051c0.004-1.225,0.995-2.217,2.22-2.219c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.31c0.342-0.066,0.626-0.308,0.748-0.631c0.749-1.992,2.662-3.412,4.911-3.41c2.898,0.004,5.244,2.351,5.251,5.25c0,0.16-0.009,0.325-0.026,0.496c-0.05,0.518,0.305,0.984,0.814,1.079c1.859,0.345,3.273,1.966,3.271,3.923C27.43,14.791,25.645,16.578,23.436,16.584zM16.667,24.09l1.119-1.119c0.389-0.391,0.389-1.025,0-1.416c-0.392-0.391-1.025-0.391-1.415,0l-1.119,1.119l-1.119-1.119c-0.391-0.391-1.025-0.391-1.415,0c-0.391,0.391-0.391,1.025,0,1.416l1.118,1.117l-1.12,1.121c-0.389,0.393-0.389,1.021,0,1.414c0.195,0.188,0.451,0.293,0.707,0.293c0.256,0,0.512-0.104,0.708-0.293l1.12-1.119l1.12,1.119c0.195,0.188,0.451,0.293,0.708,0.293c0.256,0,0.512-0.104,0.707-0.293c0.391-0.396,0.391-1.021,0-1.414L16.667,24.09zM25.119,21.817c-0.393-0.392-1.025-0.392-1.415,0l-1.12,1.121l-1.12-1.121c-0.391-0.392-1.022-0.392-1.414,0c-0.39,0.392-0.39,1.022,0,1.416l1.119,1.119l-1.119,1.119c-0.39,0.391-0.39,1.022,0,1.413c0.195,0.195,0.451,0.294,0.707,0.294c0.257,0,0.513-0.099,0.707-0.294l1.12-1.118l1.12,1.118c0.194,0.195,0.45,0.294,0.707,0.294c0.256,0,0.513-0.099,0.708-0.294c0.389-0.391,0.389-1.022,0-1.413l-1.12-1.119l1.12-1.119C25.507,22.842,25.507,22.209,25.119,21.817zM9.334,23.953l1.119-1.119c0.389-0.394,0.389-1.021,0-1.414c-0.391-0.394-1.025-0.394-1.415,0l-1.119,1.119l-1.12-1.121c-0.391-0.39-1.023-0.39-1.415,0c-0.391,0.396-0.391,1.024,0,1.418l1.119,1.117l-1.12,1.118c-0.391,0.394-0.391,1.025,0,1.414c0.196,0.195,0.452,0.293,0.708,0.293c0.256,0,0.511-0.098,0.707-0.293l1.12-1.119l1.121,1.121c0.195,0.195,0.451,0.293,0.707,0.293s0.513-0.098,0.708-0.293c0.389-0.391,0.389-1.022,0-1.416L9.334,23.953z")}})},
1"./src/shape/icon/Split.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Split=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Split",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.786,20.698c-1.792-0.237-2.912-1.331-4.358-2.886c-0.697-0.751-1.428-1.577-2.324-2.319c1.396-1.165,2.411-2.519,3.483-3.503c1.01-0.92,1.901-1.519,3.199-1.688v2.574l7.556-4.363L21.786,4.15v2.652c-3.34,0.266-5.45,2.378-6.934,4.013c-0.819,0.896-1.537,1.692-2.212,2.192c-0.685,0.501-1.227,0.731-2.013,0.742c-0.001,0-0.002,0-0.003,0H2.812v3.5h0.001v0.001c0,0,0.046-0.001,0.136-0.001h7.677c0.786,0.011,1.33,0.241,2.017,0.743c1.021,0.743,2.095,2.181,3.552,3.568c1.312,1.258,3.162,2.46,5.592,2.649v2.664l7.556-4.36l-7.556-4.361V20.698z")}})},
1"./src/shape/icon/Star.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Star=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Star",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,22.375L7.116,28.83l3.396-10.438l-8.883-6.458l10.979,0.002L16.002,1.5l3.391,10.434h10.981l-8.886,6.457l3.396,10.439L16,22.375L16,22.375z")}})},
1"./src/shape/icon/Star2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Star2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Star2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.615,4.928c0.487-0.986,1.284-0.986,1.771,0l2.249,4.554c0.486,0.986,1.775,1.923,2.864,2.081l5.024,0.73c1.089,0.158,1.335,0.916,0.547,1.684l-3.636,3.544c-0.788,0.769-1.28,2.283-1.095,3.368l0.859,5.004c0.186,1.085-0.459,1.553-1.433,1.041l-4.495-2.363c-0.974-0.512-2.567-0.512-3.541,0l-4.495,2.363c-0.974,0.512-1.618,0.044-1.432-1.041l0.858-5.004c0.186-1.085-0.307-2.6-1.094-3.368L3.93,13.977c-0.788-0.768-0.542-1.525,0.547-1.684l5.026-0.73c1.088-0.158,2.377-1.095,2.864-2.081L14.615,4.928z")}})},
1"./src/shape/icon/Star2Off.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Star2Off=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Star2Off",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M26.522,12.293l-5.024-0.73c-1.089-0.158-2.378-1.095-2.864-2.081l-2.249-4.554c-0.487-0.986-1.284-0.986-1.771,0l-2.247,4.554c-0.487,0.986-1.776,1.923-2.864,2.081l-5.026,0.73c-1.088,0.158-1.334,0.916-0.547,1.684l3.637,3.544c0.788,0.769,1.28,2.283,1.094,3.368l-0.858,5.004c-0.186,1.085,0.458,1.553,1.432,1.041l4.495-2.363c0.974-0.512,2.566-0.512,3.541,0l4.495,2.363c0.974,0.512,1.618,0.044,1.433-1.041l-0.859-5.004c-0.186-1.085,0.307-2.6,1.095-3.368l3.636-3.544C27.857,13.209,27.611,12.452,26.522,12.293zM22.037,16.089c-1.266,1.232-1.966,3.394-1.67,5.137l0.514,2.984l-2.679-1.409c-0.757-0.396-1.715-0.612-2.702-0.612s-1.945,0.216-2.7,0.61l-2.679,1.409l0.511-2.982c0.297-1.743-0.404-3.905-1.671-5.137l-2.166-2.112l2.995-0.435c1.754-0.255,3.592-1.591,4.373-3.175L15.5,7.652l1.342,2.716c0.781,1.583,2.617,2.92,4.369,3.173l2.992,0.435L22.037,16.089z")}})},
1"./src/shape/icon/Star3.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Star3=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Star3",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M22.441,28.181c-0.419,0-0.835-0.132-1.189-0.392l-5.751-4.247L9.75,27.789c-0.354,0.26-0.771,0.392-1.189,0.392c-0.412,0-0.824-0.128-1.175-0.384c-0.707-0.511-1-1.422-0.723-2.25l2.26-6.783l-5.815-4.158c-0.71-0.509-1.009-1.416-0.74-2.246c0.268-0.826,1.037-1.382,1.904-1.382c0.004,0,0.01,0,0.014,0l7.15,0.056l2.157-6.816c0.262-0.831,1.035-1.397,1.906-1.397s1.645,0.566,1.906,1.397l2.155,6.816l7.15-0.056c0.004,0,0.01,0,0.015,0c0.867,0,1.636,0.556,1.903,1.382c0.271,0.831-0.028,1.737-0.739,2.246l-5.815,4.158l2.263,6.783c0.276,0.826-0.017,1.737-0.721,2.25C23.268,28.053,22.854,28.181,22.441,28.181L22.441,28.181z")}})},
1"./src/shape/icon/Star3Off.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Star3Off=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Star3Off",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M28.631,12.359c-0.268-0.826-1.036-1.382-1.903-1.382h-0.015l-7.15,0.056l-2.155-6.816c-0.262-0.831-1.035-1.397-1.906-1.397s-1.645,0.566-1.906,1.397l-2.157,6.816l-7.15-0.056H4.273c-0.868,0-1.636,0.556-1.904,1.382c-0.27,0.831,0.029,1.737,0.74,2.246l5.815,4.158l-2.26,6.783c-0.276,0.828,0.017,1.739,0.723,2.25c0.351,0.256,0.763,0.384,1.175,0.384c0.418,0,0.834-0.132,1.189-0.392l5.751-4.247l5.751,4.247c0.354,0.26,0.771,0.392,1.189,0.392c0.412,0,0.826-0.128,1.177-0.384c0.704-0.513,0.997-1.424,0.721-2.25l-2.263-6.783l5.815-4.158C28.603,14.097,28.901,13.19,28.631,12.359zM19.712,17.996l2.729,8.184l-6.94-5.125L8.56,26.18l2.729-8.184l-7.019-5.018l8.627,0.066L15.5,4.82l2.603,8.225l8.627-0.066L19.712,17.996z")}})},
1"./src/shape/icon/StarOff.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.StarOff=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.StarOff",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,22.375L7.116,28.83l3.396-10.438l-8.883-6.458l10.979,0.002L16.002,1.5l3.391,10.434h10.981l-8.886,6.457l3.396,10.439L16,22.375L16,22.375zM22.979,26.209l-2.664-8.205l6.979-5.062h-8.627L16,4.729l-2.666,8.206H4.708l6.979,5.07l-2.666,8.203L16,21.146L22.979,26.209L22.979,26.209z")}})},
1"./src/shape/icon/Start.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Start=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Start",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.316,5.318,9.833,13.682,9.833,5.5,5.5,5.5,5.5,25.5,9.833,25.5,9.833,17.318,24.316,25.682z")}})},
1"./src/shape/icon/Sticker.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Sticker=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Sticker",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.5,1.999c-1.042,0-1.916,0.377-2.57,1.088L2.895,13.138C2.302,13.784,1.999,14.58,1.999,15.5C1.999,22.943,8.057,29,15.5,29S29,22.943,29,15.5S22.943,1.999,15.5,1.999zM15.5,28C8.596,28,3,22.404,3,15.5c0-3.452,5.239-2.737,7.501-4.999C12.762,8.239,12.048,3,15.5,3C22.404,3,28,8.597,28,15.5S22.404,28,15.5,28z")}})},
1"./src/shape/icon/Stop.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Stop=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Stop",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M5.5,5.5h20v20h-20z")}})},
1"./src/shape/icon/StopWatch.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.StopWatch=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.StopWatch",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M27.216,18.533c0-3.636-1.655-6.883-4.253-9.032l0.733-0.998l0.482,0.354c0.198,0.146,0.481,0.104,0.628-0.097l0.442-0.604c0.146-0.198,0.103-0.482-0.097-0.628l-2.052-1.506c-0.199-0.146-0.481-0.103-0.628,0.097L22.03,6.724c-0.146,0.199-0.104,0.482,0.096,0.628l0.483,0.354l-0.736,1.003c-1.28-0.834-2.734-1.419-4.296-1.699c0.847-0.635,1.402-1.638,1.403-2.778h-0.002c0-1.922-1.557-3.48-3.479-3.48c-1.925,0-3.48,1.559-3.48,3.48c0,1.141,0.556,2.144,1.401,2.778c-1.549,0.277-2.99,0.857-4.265,1.68L8.424,7.684l0.484-0.353c0.198-0.145,0.245-0.428,0.098-0.628l-0.44-0.604C8.42,5.899,8.136,5.855,7.937,6.001L5.881,7.5c-0.2,0.146-0.243,0.428-0.099,0.628l0.442,0.604c0.145,0.2,0.428,0.244,0.627,0.099l0.483-0.354l0.729,0.999c-2.615,2.149-4.282,5.407-4.282,9.057c0,6.471,5.245,11.716,11.718,11.716c6.47,0,11.716-5.243,11.718-11.716H27.216zM12.918,4.231c0.002-1.425,1.155-2.58,2.582-2.582c1.426,0.002,2.579,1.157,2.581,2.582c-0.002,1.192-0.812,2.184-1.908,2.482v-1.77h0.6c0.246,0,0.449-0.203,0.449-0.449V3.746c0-0.247-0.203-0.449-0.449-0.449h-2.545c-0.247,0-0.449,0.202-0.449,0.449v0.749c0,0.246,0.202,0.449,0.449,0.449h0.599v1.77C13.729,6.415,12.919,5.424,12.918,4.231zM15.5,27.554c-4.983-0.008-9.015-4.038-9.022-9.021c0.008-4.982,4.039-9.013,9.022-9.022c4.981,0.01,9.013,4.04,9.021,9.022C24.513,23.514,20.481,27.546,15.5,27.554zM15.5,12.138c0.476,0,0.861-0.385,0.861-0.86s-0.386-0.861-0.861-0.861s-0.861,0.386-0.861,0.861S15.024,12.138,15.5,12.138zM15.5,24.927c-0.476,0-0.861,0.386-0.861,0.861s0.386,0.861,0.861,0.861s0.861-0.386,0.861-0.861S15.976,24.927,15.5,24.927zM12.618,11.818c-0.237-0.412-0.764-0.553-1.176-0.315c-0.412,0.238-0.554,0.765-0.315,1.177l2.867,6.722c0.481,0.831,1.543,1.116,2.375,0.637c0.829-0.479,1.114-1.543,0.635-2.374L12.618,11.818zM18.698,24.07c-0.412,0.237-0.555,0.765-0.316,1.176c0.237,0.412,0.764,0.554,1.176,0.315c0.413-0.238,0.553-0.765,0.316-1.176C19.635,23.974,19.108,23.832,18.698,24.07zM8.787,15.65c0.412,0.238,0.938,0.097,1.176-0.315c0.237-0.413,0.097-0.938-0.314-1.176c-0.412-0.239-0.938-0.098-1.177,0.313C8.234,14.886,8.375,15.412,8.787,15.65zM22.215,21.413c-0.412-0.236-0.938-0.096-1.176,0.316c-0.238,0.412-0.099,0.938,0.314,1.176c0.41,0.238,0.937,0.098,1.176-0.314C22.768,22.178,22.625,21.652,22.215,21.413zM9.107,18.531c-0.002-0.476-0.387-0.86-0.861-0.86c-0.477,0-0.862,0.385-0.862,0.86c0.001,0.476,0.386,0.86,0.861,0.861C8.722,19.393,9.106,19.008,9.107,18.531zM21.896,18.531c0,0.477,0.384,0.862,0.859,0.86c0.476,0.002,0.862-0.382,0.862-0.859s-0.387-0.86-0.862-0.862C22.279,17.671,21.896,18.056,21.896,18.531zM8.787,21.413c-0.412,0.238-0.554,0.765-0.316,1.176c0.239,0.412,0.765,0.553,1.177,0.316c0.413-0.239,0.553-0.765,0.315-1.178C9.725,21.317,9.198,21.176,8.787,21.413zM21.352,14.157c-0.411,0.238-0.551,0.764-0.312,1.176c0.237,0.413,0.764,0.555,1.174,0.315c0.412-0.236,0.555-0.762,0.316-1.176C22.29,14.06,21.766,13.921,21.352,14.157zM12.304,24.067c-0.413-0.235-0.939-0.096-1.176,0.315c-0.238,0.413-0.098,0.939,0.312,1.178c0.413,0.236,0.939,0.096,1.178-0.315C12.857,24.832,12.715,24.308,12.304,24.067zM18.698,12.992c0.41,0.238,0.938,0.099,1.174-0.313c0.238-0.411,0.1-0.938-0.314-1.177c-0.414-0.238-0.937-0.097-1.177,0.315C18.144,12.229,18.286,12.755,18.698,12.992z")}})},
1"./src/shape/icon/Sun.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Sun=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Sun",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.502,7.504c-4.35,0-7.873,3.523-7.873,7.873c0,4.347,3.523,7.872,7.873,7.872c4.346,0,7.871-3.525,7.871-7.872C23.374,11.027,19.85,7.504,15.502,7.504zM15.502,21.25c-3.244-0.008-5.866-2.63-5.874-5.872c0.007-3.243,2.63-5.866,5.874-5.874c3.242,0.008,5.864,2.631,5.871,5.874C21.366,18.62,18.744,21.242,15.502,21.25zM15.502,6.977c0.553,0,1-0.448,1-1.001V1.125c-0.002-0.553-0.448-1-1-1c-0.553,0-1.001,0.449-1,1.002v4.85C14.502,6.528,14.949,6.977,15.502,6.977zM18.715,7.615c0.125,0.053,0.255,0.076,0.382,0.077c0.394,0,0.765-0.233,0.925-0.618l1.856-4.483c0.21-0.511-0.031-1.095-0.541-1.306c-0.511-0.211-1.096,0.031-1.308,0.541L18.174,6.31C17.963,6.82,18.205,7.405,18.715,7.615zM21.44,9.436c0.195,0.194,0.451,0.293,0.707,0.293s0.512-0.098,0.707-0.293l3.43-3.433c0.391-0.39,0.39-1.023,0-1.415c-0.392-0.39-1.025-0.39-1.415,0.002L21.44,8.021C21.049,8.412,21.049,9.045,21.44,9.436zM23.263,12.16c0.158,0.385,0.531,0.617,0.923,0.617c0.127,0,0.257-0.025,0.383-0.078l4.48-1.857c0.511-0.211,0.753-0.797,0.541-1.307s-0.796-0.752-1.307-0.54l-4.481,1.857C23.292,11.064,23.051,11.65,23.263,12.16zM29.752,14.371l-4.851,0.001c-0.552,0-1,0.448-0.998,1.001c0,0.553,0.447,0.999,0.998,0.999l4.852-0.002c0.553,0,0.999-0.449,0.999-1C30.752,14.817,30.304,14.369,29.752,14.371zM29.054,19.899l-4.482-1.854c-0.512-0.212-1.097,0.03-1.307,0.541c-0.211,0.511,0.031,1.096,0.541,1.308l4.482,1.854c0.126,0.051,0.256,0.075,0.383,0.075c0.393,0,0.765-0.232,0.925-0.617C29.806,20.695,29.563,20.109,29.054,19.899zM22.86,21.312c-0.391-0.391-1.023-0.391-1.414,0.001c-0.391,0.39-0.39,1.022,0,1.413l3.434,3.429c0.195,0.195,0.45,0.293,0.706,0.293s0.513-0.098,0.708-0.293c0.391-0.392,0.389-1.025,0-1.415L22.86,21.312zM20.029,23.675c-0.211-0.511-0.796-0.752-1.307-0.541c-0.51,0.212-0.752,0.797-0.54,1.308l1.86,4.48c0.159,0.385,0.531,0.617,0.925,0.617c0.128,0,0.258-0.024,0.383-0.076c0.511-0.211,0.752-0.797,0.54-1.309L20.029,23.675zM15.512,23.778c-0.553,0-1,0.448-1,1l0.004,4.851c0,0.553,0.449,0.999,1,0.999c0.553,0,1-0.448,0.998-1l-0.003-4.852C16.511,24.226,16.062,23.777,15.512,23.778zM12.296,23.142c-0.51-0.21-1.094,0.031-1.306,0.543l-1.852,4.483c-0.21,0.511,0.033,1.096,0.543,1.307c0.125,0.052,0.254,0.076,0.382,0.076c0.392,0,0.765-0.234,0.924-0.619l1.853-4.485C13.051,23.937,12.807,23.353,12.296,23.142zM9.57,21.325c-0.392-0.391-1.025-0.389-1.415,0.002L4.729,24.76c-0.391,0.392-0.389,1.023,0.002,1.415c0.195,0.194,0.45,0.292,0.706,0.292c0.257,0,0.513-0.098,0.708-0.293l3.427-3.434C9.961,22.349,9.961,21.716,9.57,21.325zM7.746,18.604c-0.213-0.509-0.797-0.751-1.307-0.54L1.96,19.925c-0.511,0.212-0.752,0.798-0.54,1.308c0.16,0.385,0.531,0.616,0.924,0.616c0.127,0,0.258-0.024,0.383-0.076l4.479-1.861C7.715,19.698,7.957,19.113,7.746,18.604zM7.1,15.392c0-0.553-0.447-0.999-1-0.999l-4.851,0.006c-0.553,0-1.001,0.448-0.999,1.001c0.001,0.551,0.449,1,1,0.998l4.852-0.006C6.654,16.392,7.102,15.942,7.1,15.392zM1.944,10.869l4.485,1.85c0.125,0.053,0.254,0.076,0.381,0.076c0.393,0,0.766-0.232,0.925-0.618c0.212-0.511-0.032-1.097-0.544-1.306L2.708,9.021c-0.511-0.21-1.095,0.032-1.306,0.542C1.19,10.074,1.435,10.657,1.944,10.869zM8.137,9.451c0.195,0.193,0.449,0.291,0.705,0.291s0.513-0.098,0.709-0.295c0.391-0.389,0.389-1.023-0.004-1.414L6.
1113,4.609C5.723,4.219,5.088,4.221,4.699,4.612c-0.391,0.39-0.389,1.024,0.002,1.414L8.137,9.451zM10.964,7.084c0.16,0.384,0.532,0.615,0.923,0.615c0.128,0,0.258-0.025,0.384-0.077c0.51-0.212,0.753-0.798,0.54-1.307l-1.864-4.479c-0.212-0.51-0.798-0.751-1.308-0.539C9.129,1.51,8.888,2.096,9.1,2.605L10.964,7.084z")}})},
1"./src/shape/icon/Svg.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Svg=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Svg",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M31.274,15.989c0-2.473-2.005-4.478-4.478-4.478l0,0c0.81-0.811,1.312-1.93,1.312-3.167c0-2.474-2.005-4.479-4.479-4.479c-1.236,0-2.356,0.501-3.167,1.312c0-2.473-2.005-4.478-4.478-4.478c-2.474,0-4.479,2.005-4.479,4.478c-0.811-0.81-1.93-1.312-3.167-1.312c-2.474,0-4.479,2.005-4.479,4.479c0,1.236,0.501,2.356,1.312,3.166c-2.474,0-4.479,2.005-4.479,4.479c0,2.474,2.005,4.479,4.479,4.479c-0.811,0.81-1.312,1.93-1.312,3.167c0,2.473,2.005,4.478,4.479,4.478c1.236,0,2.356-0.501,3.167-1.312c0,2.473,2.005,4.479,4.479,4.479c2.473,0,4.478-2.006,4.478-4.479l0,0c0.811,0.811,1.931,1.312,3.167,1.312c2.474,0,4.478-2.005,4.478-4.478c0-1.237-0.501-2.357-1.312-3.168c0.001,0,0.001,0,0.001,0C29.27,20.467,31.274,18.463,31.274,15.989zM23.583,21.211c0.016,0,0.031-0.001,0.047-0.001c1.339,0,2.424,1.085,2.424,2.425c0,1.338-1.085,2.424-2.424,2.424s-2.424-1.086-2.424-2.424c0-0.017,0.001-0.031,0.001-0.047l-3.541-3.542v5.009c0.457,0.44,0.743,1.06,0.743,1.746c0,1.339-1.086,2.424-2.424,2.424c-1.339,0-2.425-1.085-2.425-2.424c0-0.687,0.286-1.306,0.743-1.746v-5.009l-3.541,3.542c0,0.016,0.001,0.031,0.001,0.047c0,1.338-1.085,2.424-2.424,2.424s-2.424-1.086-2.424-2.424c0-1.34,1.085-2.425,2.424-2.425c0.015,0,0.031,0.001,0.046,0.001l3.542-3.541H6.919c-0.44,0.458-1.06,0.743-1.746,0.743c-1.339,0-2.424-1.085-2.424-2.424s1.085-2.424,2.424-2.424c0.686,0,1.305,0.285,1.746,0.744h5.008l-3.542-3.542c-0.015,0-0.031,0.001-0.046,0.001c-1.339,0-2.424-1.085-2.424-2.424S7.001,5.92,8.34,5.92s2.424,1.085,2.424,2.424c0,0.015-0.001,0.031-0.001,0.046l3.541,3.542V6.924c-0.457-0.441-0.743-1.06-0.743-1.746c0-1.339,1.086-2.425,2.425-2.425c1.338,0,2.424,1.085,2.424,2.425c0,0.686-0.286,1.305-0.743,1.746v5.008l3.541-3.542c0-0.015-0.001-0.031-0.001-0.046c0-1.339,1.085-2.424,2.424-2.424s2.424,1.085,2.424,2.424c0,1.339-1.085,2.424-2.424,2.424c-0.016,0-0.031-0.001-0.047-0.001l-3.541,3.542h5.008c0.441-0.458,1.061-0.744,1.747-0.744c1.338,0,2.423,1.085,2.423,2.424s-1.085,2.424-2.423,2.424c-0.687,0-1.306-0.285-1.747-0.743h-5.008L23.583,21.211z")}})},
1"./src/shape/icon/TShirt.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.TShirt=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.TShirt",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M20.1,4.039c-0.681,1.677-2.32,2.862-4.24,2.862c-1.921,0-3.56-1.185-4.24-2.862L1.238,8.442l2.921,6.884l3.208-1.361V28h17.099V14.015l3.093,1.312l2.922-6.884L20.1,4.039z")}})},
1"./src/shape/icon/Tag.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Tag=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Tag",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.263,2.826H7.904L2.702,8.028v6.359L18.405,30.09l11.561-11.562L14.263,2.826zM6.495,8.859c-0.619-0.619-0.619-1.622,0-2.24C7.114,6,8.117,6,8.736,6.619c0.62,0.62,0.619,1.621,0,2.241C8.117,9.479,7.114,9.479,6.495,8.859z")}})},
1"./src/shape/icon/TakeOff.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.TakeOff=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.TakeOff",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M10.27,19.267c0,0,9.375-1.981,16.074-8.681c0,0,1.395-1.339-1.338-1.339c-2.305,0-5.6,2.438-5.6,2.438l-9.137-1.42l-1.769,1.769l4.983,2.411l-3.001,2.035l-2.571-1.285L6.09,16.052C6.09,16.052,8.02,18.062,10.27,19.267zM3.251,23.106v1.998h24.498v-1.998H3.251z")}})},
1"./src/shape/icon/Talke.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Talke=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Talke",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM16.982,21.375h-1.969v-1.889h1.969V21.375zM16.982,17.469v0.625h-1.969v-0.769c0-2.321,2.641-2.689,2.641-4.337c0-0.752-0.672-1.329-1.553-1.329c-0.912,0-1.713,0.672-1.713,0.672l-1.12-1.393c0,0,1.104-1.153,3.009-1.153c1.81,0,3.49,1.121,3.49,3.009C19.768,15.437,16.982,15.741,16.982,17.469z")}})},
1"./src/shape/icon/Talkq.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Talkq=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Talkq",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM16.868,21.375h-1.969v-1.889h1.969V21.375zM16.772,18.094h-1.777l-0.176-8.083h2.113L16.772,18.094z")}})},
1"./src/shape/icon/Thunder.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Thunder=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Thunder",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.371,7.306c-0.092-3.924-3.301-7.077-7.248-7.079c-2.638,0.001-4.942,1.412-6.208,3.517c-0.595-0.327-1.28-0.517-2.01-0.517C7.626,3.229,5.772,5.033,5.689,7.293c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h5.271l-2.166,3.398l1.977-0.411L10,30.875l9.138-10.102L17,21l2.167-2.023h4.269c3.312,0,6-2.688,6-6C29.434,10.34,27.732,8.11,25.371,7.306zM23.436,16.979H7.561c-2.209-0.006-3.997-1.792-4.001-4.001c-0.002-1.982,1.45-3.618,3.35-3.931c0.265-0.043,0.502-0.191,0.657-0.414C7.722,8.41,7.779,8.136,7.73,7.87C7.702,7.722,7.685,7.582,7.685,7.446C7.689,6.221,8.68,5.23,9.905,5.228c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.309c0.342-0.066,0.626-0.307,0.748-0.63c0.749-1.992,2.662-3.412,4.911-3.41c2.899,0.004,5.244,2.35,5.251,5.249c0,0.161-0.009,0.326-0.027,0.497c-0.049,0.517,0.305,0.984,0.815,1.079c1.86,0.344,3.274,1.966,3.271,3.923C27.43,15.186,25.645,16.973,23.436,16.979z")}})},
1"./src/shape/icon/Trash.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Trash=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Trash",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M20.826,5.75l0.396,1.188c1.54,0.575,2.589,1.44,2.589,2.626c0,2.405-4.308,3.498-8.312,3.498c-4.003,0-8.311-1.093-8.311-3.498c0-1.272,1.21-2.174,2.938-2.746l0.388-1.165c-2.443,0.648-4.327,1.876-4.327,3.91v2.264c0,1.224,0.685,2.155,1.759,2.845l0.396,9.265c0,1.381,3.274,2.5,7.312,2.5c4.038,0,7.313-1.119,7.313-2.5l0.405-9.493c0.885-0.664,1.438-1.521,1.438-2.617V9.562C24.812,7.625,23.101,6.42,20.826,5.75zM11.093,24.127c-0.476-0.286-1.022-0.846-1.166-1.237c-1.007-2.76-0.73-4.921-0.529-7.509c0.747,0.28,1.58,0.491,2.45,0.642c-0.216,2.658-0.43,4.923,0.003,7.828C11.916,24.278,11.567,24.411,11.093,24.127zM17.219,24.329c-0.019,0.445-0.691,0.856-1.517,0.856c-0.828,0-1.498-0.413-1.517-0.858c-0.126-2.996-0.032-5.322,0.068-8.039c0.418,0.022,0.835,0.037,1.246,0.037c0.543,0,1.097-0.02,1.651-0.059C17.251,18.994,17.346,21.325,17.219,24.329zM21.476,22.892c-0.143,0.392-0.69,0.95-1.165,1.235c-0.474,0.284-0.817,0.151-0.754-0.276c0.437-2.93,0.214-5.209-0.005-7.897c0.881-0.174,1.708-0.417,2.44-0.731C22.194,17.883,22.503,20.076,21.476,22.892zM11.338,9.512c0.525,0.173,1.092-0.109,1.268-0.633h-0.002l0.771-2.316h4.56l0.771,2.316c0.14,0.419,0.53,0.685,0.949,0.685c0.104,0,0.211-0.017,0.316-0.052c0.524-0.175,0.808-0.742,0.633-1.265l-1.002-3.001c-0.136-0.407-0.518-0.683-0.945-0.683h-6.002c-0.428,0-0.812,0.275-0.948,0.683l-1,2.999C10.532,8.77,10.815,9.337,11.338,9.512z")}})},
1"./src/shape/icon/Twitter.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Twitter=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Twitter",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M23.295,22.567h-7.213c-2.125,0-4.103-2.215-4.103-4.736v-1.829h11.232c1.817,0,3.291-1.469,3.291-3.281c0-1.813-1.474-3.282-3.291-3.282H11.979V6.198c0-1.835-1.375-3.323-3.192-3.323c-1.816,0-3.29,1.488-3.29,3.323v11.633c0,6.23,4.685,11.274,10.476,11.274h7.211c1.818,0,3.318-1.463,3.318-3.298S25.112,22.567,23.295,22.567z")}})},
1"./src/shape/icon/TwitterBird.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.TwitterBird=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.TwitterBird",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.605,13.11c0.913-2.851,2.029-4.698,3.313-6.038c0.959-1,1.453-1.316,0.891-0.216c0.25-0.199,0.606-0.464,0.885-0.605c1.555-0.733,1.442-0.119,0.373,0.54c2.923-1.045,2.82,0.286-0.271,0.949c2.527,0.047,5.214,1.656,5.987,5.077c0.105,0.474-0.021,0.428,0.464,0.514c1.047,0.186,2.03,0.174,2.991-0.13c-0.104,0.708-1.039,1.167-2.497,1.471c-0.541,0.112-0.651,0.083-0.005,0.229c0.799,0.179,1.69,0.226,2.634,0.182c-0.734,0.846-1.905,1.278-3.354,1.296c-0.904,3.309-2.976,5.678-5.596,7.164c-6.152,3.492-15.108,2.984-19.599-3.359c2.947,2.312,7.312,2.821,10.555-0.401c-2.125,0-2.674-1.591-0.99-2.449c-1.595-0.017-2.608-0.521-3.203-1.434c-0.226-0.347-0.229-0.374,0.14-0.64c0.405-0.293,0.958-0.423,1.528-0.467c-1.651-0.473-2.66-1.335-3.009-2.491c-0.116-0.382-0.134-0.363,0.256-0.462c0.38-0.097,0.87-0.148,1.309-0.17C6.11,10.88,5.336,9.917,5.139,8.852c-0.186-1.006,0.005-0.748,0.758-0.46C9.263,9.68,12.619,11.062,14.605,13.11L14.605,13.11z")}})},
1"./src/shape/icon/Umbrella.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Umbrella=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Umbrella",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M14.784,26.991c0,1.238-1.329,1.696-1.835,1.696c-0.504,0-1.536-0.413-1.65-1.812c0-0.354-0.288-0.642-0.644-0.642c-0.354,0-0.641,0.287-0.641,0.642c0.045,1.056,0.756,3.052,2.935,3.052c2.432,0,3.166-1.882,3.166-3.144v-8.176l-1.328-0.024C14.787,18.584,14.784,25.889,14.784,26.991zM15.584,9.804c-6.807,0-11.084,4.859-11.587,8.326c0.636-0.913,1.694-1.51,2.89-1.51c1.197,0,2.22,0.582,2.855,1.495c0.638-0.904,1.69-1.495,2.88-1.495c1.2,0,2.26,0.6,2.896,1.517c0.635-0.917,1.83-1.517,3.03-1.517c1.19,0,2.241,0.591,2.879,1.495c0.636-0.913,1.659-1.495,2.855-1.495c1.197,0,2.254,0.597,2.89,1.51C26.669,14.663,22.393,9.804,15.584,9.804zM14.733,7.125v2.081h1.323V7.125c0-0.365-0.296-0.661-0.661-0.661C15.029,6.464,14.733,6.76,14.733,7.125z")}})},
1"./src/shape/icon/Undo.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Undo=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Undo",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M12.981,9.073V6.817l-12.106,6.99l12.106,6.99v-2.422c3.285-0.002,9.052,0.28,9.052,2.269c0,2.78-6.023,4.263-6.023,4.263v2.132c0,0,13.53,0.463,13.53-9.823C29.54,9.134,17.952,8.831,12.981,9.073z")}})},
1"./src/shape/icon/Unlock.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Unlock=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Unlock",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M20.375,12.833h-2.209V10c0,0,0,0,0-0.001c0-2.389,1.945-4.333,4.334-4.333c2.391,0,4.335,1.944,4.335,4.333c0,0,0,0,0,0v2.834h2V9.999h-0.001c-0.001-3.498-2.836-6.333-6.334-6.333S16.166,6.502,16.166,10v2.833H3.125V25h17.25V12.833z")}})},
1"./src/shape/icon/Usb.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Usb=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Usb",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M15.5,1.667L13.745,4.74h1.252v15.709L11.8,17.391c-0.205-0.26-0.351-0.601-0.358-0.952c0-1.417-0.001-2.258-0.001-2.568c0.592-0.21,1.02-0.774,1.02-1.444c0-0.849-0.682-1.538-1.521-1.538c-0.84,0-1.521,0.689-1.521,1.538c0,0.67,0.427,1.234,1.019,1.444l-0.001,2.539c0,0.688,0.373,1.409,0.812,1.868c-0.013-0.013-0.027-0.025,0,0c0.011,0.01,3.392,3.245,3.392,3.245c0.205,0.26,0.35,0.6,0.357,0.951v1.776c-1.161,0.236-2.036,1.272-2.036,2.517c0,1.418,1.137,2.566,2.539,2.566c1.403,0,2.54-1.148,2.54-2.566c0-1.244-0.875-2.28-2.038-2.517v-1.746c0-0.005,0-0.009,0-0.014v-3.861c0.008-0.35,0.152-0.689,0.358-0.949c0,0,3.38-3.234,3.392-3.245c0.027-0.026,0.012-0.013,0,0c0.438-0.459,0.811-1.181,0.811-1.869V10.12h1.02V7.046h-3.041v3.075h1.018c0,0-0.002,0.644-0.002,2.476c-0.008,0.351-0.152,0.692-0.357,0.952l-3.198,3.06V4.74h1.254L15.5,1.667z")}})},
1"./src/shape/icon/User.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.User=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.User",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M20.771,12.364c0,0,0.849-3.51,0-4.699c-0.85-1.189-1.189-1.981-3.058-2.548s-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.792-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.321s0.283,3.058,0.566,3.624l-0.337,0.113c-0.283,3.283,1.132,3.68,1.132,3.68c0.509,3.058,1.019,1.756,1.019,2.548s-0.51,0.51-0.51,0.51s-0.452,1.245-1.584,1.698c-1.132,0.452-7.416,2.886-7.927,3.396c-0.511,0.511-0.453,2.888-0.453,2.888h26.947c0,0,0.059-2.377-0.452-2.888c-0.512-0.511-6.796-2.944-7.928-3.396c-1.132-0.453-1.584-1.698-1.584-1.698s-0.51,0.282-0.51-0.51s0.51,0.51,1.02-2.548c0,0,1.414-0.397,1.132-3.68H20.771z")}})},
1"./src/shape/icon/Users.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Users=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Users",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.053,20.8c-1.132-0.453-1.584-1.698-1.584-1.698s-0.51,0.282-0.51-0.51s0.51,0.51,1.02-2.548c0,0,1.414-0.397,1.132-3.68h-0.34c0,0,0.849-3.51,0-4.699c-0.85-1.189-1.189-1.981-3.058-2.548s-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.792-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.321s0.283,3.058,0.566,3.624l-0.337,0.113c-0.283,3.283,1.132,3.68,1.132,3.68c0.509,3.058,1.019,1.756,1.019,2.548s-0.51,0.51-0.51,0.51s-0.452,1.245-1.584,1.698c-1.132,0.452-7.416,2.886-7.927,3.396c-0.511,0.511-0.453,2.888-0.453,2.888h26.947c0,0,0.059-2.377-0.452-2.888C28.469,23.686,22.185,21.252,21.053,20.8zM8.583,20.628c-0.099-0.18-0.148-0.31-0.148-0.31s-0.432,0.239-0.432-0.432s0.432,0.432,0.864-2.159c0,0,1.199-0.336,0.959-3.119H9.538c0,0,0.143-0.591,0.237-1.334c-0.004-0.308,0.006-0.636,0.037-0.996l0.038-0.426c-0.021-0.492-0.107-0.939-0.312-1.226C8.818,9.619,8.53,8.947,6.947,8.467c-1.583-0.48-1.008-0.385-2.159-0.336C3.636,8.179,2.676,8.802,2.676,9.139c0,0-0.72,0.048-1.008,0.336c-0.271,0.271-0.705,1.462-0.757,1.885v0.281c0.047,0.653,0.258,2.449,0.469,2.872l-0.286,0.096c-0.239,2.783,0.959,3.119,0.959,3.119c0.432,2.591,0.864,1.488,0.864,2.159s-0.432,0.432-0.432,0.432s-0.383,1.057-1.343,1.439c-0.061,0.024-0.139,0.056-0.232,0.092v5.234h0.575c-0.029-1.278,0.077-2.927,0.746-3.594C2.587,23.135,3.754,22.551,8.583,20.628zM30.913,11.572c-0.04-0.378-0.127-0.715-0.292-0.946c-0.719-1.008-1.008-1.679-2.59-2.159c-1.584-0.48-1.008-0.385-2.16-0.336C24.72,8.179,23.76,8.802,23.76,9.139c0,0-0.719,0.048-1.008,0.336c-0.271,0.272-0.709,1.472-0.758,1.891h0.033l0.08,0.913c0.02,0.231,0.022,0.436,0.027,0.645c0.09,0.666,0.21,1.35,0.33,1.589l-0.286,0.096c-0.239,2.783,0.96,3.119,0.96,3.119c0.432,2.591,0.863,1.488,0.863,2.159s-0.432,0.432-0.432,0.432s-0.053,0.142-0.163,0.338c4.77,1.9,5.927,2.48,6.279,2.834c0.67,0.667,0.775,2.315,0.746,3.594h0.48v-5.306c-0.016-0.006-0.038-0.015-0.052-0.021c-0.959-0.383-1.343-1.439-1.343-1.439s-0.433,0.239-0.433-0.432s0.433,0.432,0.864-2.159c0,0,0.804-0.229,0.963-1.841v-1.227c-0.001-0.018-0.001-0.033-0.003-0.051h-0.289c0,0,0.215-0.89,0.292-1.861V11.572z")}})},
1"./src/shape/icon/Video.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Video=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Video",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M27.188,4.875v1.094h-4.5V4.875H8.062v1.094h-4.5V4.875h-1v21.25h1v-1.094h4.5v1.094h14.625v-1.094h4.5v1.094h1.25V4.875H27.188zM8.062,23.719h-4.5v-3.125h4.5V23.719zM8.062,19.281h-4.5v-3.125h4.5V19.281zM8.062,14.844h-4.5v-3.125h4.5V14.844zM8.062,10.406h-4.5V7.281h4.5V10.406zM11.247,20.59V9.754l9.382,5.418L11.247,20.59zM27.188,23.719h-4.5v-3.125h4.5V23.719zM27.188,19.281h-4.5v-3.125h4.5V19.281zM27.188,14.844h-4.5v-3.125h4.5V14.844zM27.188,10.406h-4.5V7.281h4.5V10.406z")}})},
1"./src/shape/icon/View.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.View=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.View",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M16,8.286C8.454,8.286,2.5,16,2.5,16s5.954,7.715,13.5,7.715c5.771,0,13.5-7.715,13.5-7.715S21.771,8.286,16,8.286zM16,20.807c-2.649,0-4.807-2.157-4.807-4.807s2.158-4.807,4.807-4.807s4.807,2.158,4.807,4.807S18.649,20.807,16,20.807zM16,13.194c-1.549,0-2.806,1.256-2.806,2.806c0,1.55,1.256,2.806,2.806,2.806c1.55,0,2.806-1.256,2.806-2.806C18.806,14.451,17.55,13.194,16,13.194z")}})},
1"./src/shape/icon/Vim.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Vim=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Vim",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M25.012,10.44l4.571-4.645c0.11-0.113,0.173-0.264,0.173-0.423V3.134c0-0.159-0.064-0.314-0.177-0.427l-0.604-0.602c-0.111-0.112-0.261-0.176-0.42-0.177l-9.646-0.086C18.71,1.84,18.523,1.935,18.41,2.099L17.807,2.96c-0.033,0.047-0.059,0.099-0.076,0.154l-2.144-2.156l0,0l-1.646,1.666l-0.447-0.497c-0.112-0.125-0.27-0.197-0.438-0.199L3.324,1.756c-0.163-0.003-0.322,0.06-0.437,0.176L2.284,2.535C2.171,2.647,2.107,2.803,2.107,2.962v2.325c0,0.164,0.066,0.32,0.183,0.434l0.657,0.635C3.056,6.461,3.2,6.521,3.352,6.525l0.285,0.007l0.007,6.512l-2.527,2.557l2.533,2.533l0.008,8.084c0,0.159,0.065,0.314,0.177,0.427l0.861,0.861c0.112,0.111,0.268,0.176,0.427,0.176h2.67c0.161,0,0.317-0.064,0.43-0.181l2.378-2.417l4.9,4.9l14.47-14.558L25.012,10.44zM9.747,24.232l-2.208,2.242H5.372l-0.509-0.509L4.856,19.34l-0.008-7.515L4.842,5.943c0-0.328-0.261-0.594-0.588-0.603L3.617,5.326L3.313,5.031v-1.82l0.245-0.245l9.215,0.163l0.319,0.354l0.126,0.141v1.419l-0.352,0.362H12.26c-0.331,0-0.6,0.266-0.603,0.597l-0.076,7.203c-0.002,0.244,0.141,0.463,0.365,0.56c0.224,0.096,0.482,0.049,0.657-0.12l7.495-7.235c0.174-0.171,0.23-0.432,0.139-0.66c-0.09-0.228-0.312-0.377-0.56-0.377h-0.479l-0.296-0.379V3.496l0.312-0.445l9.083,0.081l0.252,0.252v1.743l-4.388,4.458L9.747,24.232z")}})},
1"./src/shape/icon/Volume0.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Volume0=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Volume0",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z")}})},
1"./src/shape/icon/Volume1.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Volume1=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Volume1",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z M18.806,11.219c-0.393-0.389-1.024-0.389-1.415,0.002c-0.39,0.391-0.39,1.024,0.002,1.416v-0.002c0.863,0.864,1.395,2.049,1.395,3.366c0,1.316-0.531,2.497-1.393,3.361c-0.394,0.389-0.394,1.022-0.002,1.415c0.195,0.195,0.451,0.293,0.707,0.293c0.257,0,0.513-0.098,0.708-0.293c1.222-1.22,1.98-2.915,1.979-4.776C20.788,14.136,20.027,12.439,18.806,11.219z")}})},
1"./src/shape/icon/Volume2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Volume2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Volume2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z M18.806,11.219c-0.393-0.389-1.024-0.389-1.415,0.002c-0.39,0.391-0.39,1.024,0.002,1.416v-0.002c0.863,0.864,1.395,2.049,1.395,3.366c0,1.316-0.531,2.497-1.393,3.361c-0.394,0.389-0.394,1.022-0.002,1.415c0.195,0.195,0.451,0.293,0.707,0.293c0.257,0,0.513-0.098,0.708-0.293c1.222-1.22,1.98-2.915,1.979-4.776C20.788,14.136,20.027,12.439,18.806,11.219z M21.101,8.925c-0.393-0.391-1.024-0.391-1.413,0c-0.392,0.391-0.392,1.025,0,1.414c1.45,1.451,2.344,3.447,2.344,5.661c0,2.212-0.894,4.207-2.342,5.659c-0.392,0.39-0.392,1.023,0,1.414c0.195,0.195,0.451,0.293,0.708,0.293c0.256,0,0.512-0.098,0.707-0.293c1.808-1.809,2.929-4.315,2.927-7.073C24.033,13.24,22.912,10.732,21.101,8.925z")}})},
1"./src/shape/icon/Volume3.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Volume3=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Volume3",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z M18.806,11.219c-0.393-0.389-1.024-0.389-1.415,0.002c-0.39,0.391-0.39,1.024,0.002,1.416v-0.002c0.863,0.864,1.395,2.049,1.395,3.366c0,1.316-0.531,2.497-1.393,3.361c-0.394,0.389-0.394,1.022-0.002,1.415c0.195,0.195,0.451,0.293,0.707,0.293c0.257,0,0.513-0.098,0.708-0.293c1.222-1.22,1.98-2.915,1.979-4.776C20.788,14.136,20.027,12.439,18.806,11.219z M21.101,8.925c-0.393-0.391-1.024-0.391-1.413,0c-0.392,0.391-0.392,1.025,0,1.414c1.45,1.451,2.344,3.447,2.344,5.661c0,2.212-0.894,4.207-2.342,5.659c-0.392,0.39-0.392,1.023,0,1.414c0.195,0.195,0.451,0.293,0.708,0.293c0.256,0,0.512-0.098,0.707-0.293c1.808-1.809,2.929-4.315,2.927-7.073C24.033,13.24,22.912,10.732,21.101,8.925z M23.28,6.746c-0.393-0.391-1.025-0.389-1.414,0.002c-0.391,0.389-0.391,1.023,0.002,1.413h-0.002c2.009,2.009,3.248,4.773,3.248,7.839c0,3.063-1.239,5.828-3.246,7.838c-0.391,0.39-0.391,1.023,0.002,1.415c0.194,0.194,0.45,0.291,0.706,0.291s0.513-0.098,0.708-0.293c2.363-2.366,3.831-5.643,3.829-9.251C27.115,12.389,25.647,9.111,23.28,6.746z")}})},
1"./src/shape/icon/Warning.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Warning=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Warning",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M29.225,23.567l-3.778-6.542c-1.139-1.972-3.002-5.2-4.141-7.172l-3.778-6.542c-1.14-1.973-3.003-1.973-4.142,0L9.609,9.853c-1.139,1.972-3.003,5.201-4.142,7.172L1.69,23.567c-1.139,1.974-0.207,3.587,2.071,3.587h23.391C29.432,27.154,30.363,25.541,29.225,23.567zM16.536,24.58h-2.241v-2.151h2.241V24.58zM16.428,20.844h-2.023l-0.201-9.204h2.407L16.428,20.844z")}})},
1"./src/shape/icon/WheelChair.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.WheelChair=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.WheelChair",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M20.373,19.85c0,4.079-3.318,7.397-7.398,7.397c-4.079,0-7.398-3.318-7.398-7.397c0-2.466,1.213-4.652,3.073-5.997l-0.251-2.21c-2.875,1.609-4.825,4.684-4.825,8.207c0,5.184,4.217,9.4,9.401,9.4c4.395,0,8.093-3.031,9.117-7.111L20.37,19.73C20.37,19.771,20.373,19.81,20.373,19.85zM11.768,6.534c1.321,0,2.392-1.071,2.392-2.392c0-1.321-1.071-2.392-2.392-2.392c-1.321,0-2.392,1.071-2.392,2.392C9.375,5.463,10.446,6.534,11.768,6.534zM27.188,22.677l-5.367-7.505c-0.28-0.393-0.749-0.579-1.226-0.538c-0.035-0.003-0.071-0.006-0.106-0.006h-6.132l-0.152-1.335h4.557c0.53,0,0.96-0.429,0.96-0.959c0-0.53-0.43-0.959-0.96-0.959h-4.776l-0.25-2.192c-0.146-1.282-1.303-2.203-2.585-2.057C9.869,7.271,8.948,8.428,9.094,9.71l0.705,6.19c0.136,1.197,1.154,2.078,2.332,2.071c0.004,0,0.007,0.001,0.012,0.001h8.023l4.603,6.436c0.439,0.615,1.338,0.727,2.007,0.248C27.442,24.178,27.628,23.292,27.188,22.677z")}})},
1"./src/shape/icon/Windows.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Windows=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Windows",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M20.023,17.484c-1.732-0.205-3.022-0.908-4.212-1.701l0,0l-0.559,0.279l-2.578,8.924l0,0c1.217,0.805,2.905,1.707,4.682,1.914c2.686,0.312,5.56-0.744,6.391-1.195l2.617-9.061l-0.559-0.279C25.805,16.365,23.193,17.857,20.023,17.484zM14.424,14.825c-1.267-0.87-2.578-1.652-4.375-1.816c-0.318-0.029-0.627-0.042-0.925-0.042c-3.011,0-4.948,1.347-4.948,1.347l-2.565,8.877l0,0l0.526,0.281c0.981-0.476,2.78-1.145,5.09-0.984c1.665,0.113,2.92,0.781,4.117,1.531l0.507-0.26l0,0L14.424,14.825zM10.201,12.094c1.664,0.114,2.921,0.78,4.117,1.533l0.509-0.26l0,0L17.4,4.431c-1.27-0.87-2.579-1.653-4.377-1.816c-0.318-0.029-0.626-0.042-0.924-0.042C9.088,2.573,7.15,3.92,7.15,3.92l-2.566,8.878L5.11,13.08C6.092,12.604,7.891,11.936,10.201,12.094zM28.779,5.971L28.779,5.971c0,0.001-2.609,1.492-5.779,1.119c-1.734-0.204-3.023-0.907-4.213-1.701L18.227,5.67l-2.576,8.923l0,0c1.215,0.803,2.906,1.709,4.68,1.915c2.687,0.312,5.558-0.745,6.392-1.197l2.615-9.059L28.779,5.971z")}})},
1"./src/shape/icon/Woman.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Woman=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Woman",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M21.022,16.349c-0.611-1.104-1.359-1.998-2.109-2.623c-0.875,0.641-1.941,1.031-3.104,1.031c-1.164,0-2.231-0.391-3.105-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.579,5.192-0.351,5.874c0.55,0.307,1.127,0.078,1.723-0.496c-0.105,0.582-0.167,1.213-0.167,1.873c0,2.932,1.139,5.307,2.543,5.307c0.846,0,1.265-0.865,1.466-2.189c0.201,1.324,0.62,2.189,1.464,2.189c1.406,0,2.545-2.375,2.545-5.307c0-0.66-0.061-1.291-0.168-1.873c0.598,0.574,1.174,0.803,1.725,0.496C22.603,21.541,22.444,18.912,21.022,16.349zM15.808,13.757c2.363,0,4.279-1.916,4.279-4.279s-1.916-4.279-4.279-4.279c-2.363,0-4.28,1.916-4.28,4.279S13.445,13.757,15.808,13.757zM18.731,4.974c1.235,0.455,0.492-0.725,0.492-1.531s0.762-1.792-0.492-1.391c-1.316,0.422-2.383,0.654-2.383,1.461S17.415,4.489,18.731,4.974zM15.816,4.4c0.782,0,0.345-0.396,0.345-0.884c0-0.488,0.438-0.883-0.345-0.883s-0.374,0.396-0.374,0.883C15.442,4.005,15.034,4.4,15.816,4.4zM12.884,4.974c1.316-0.484,2.383-0.654,2.383-1.461S14.2,2.474,12.884,2.052c-1.254-0.402-0.492,0.584-0.492,1.391S11.648,5.428,12.884,4.974z")}})},
1"./src/shape/icon/Wrench.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Wrench=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Wrench",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M26.834,14.693c1.816-2.088,2.181-4.938,1.193-7.334l-3.646,4.252l-3.594-0.699L19.596,7.45l3.637-4.242c-2.502-0.63-5.258,0.13-7.066,2.21c-1.907,2.193-2.219,5.229-1.039,7.693L5.624,24.04c-1.011,1.162-0.888,2.924,0.274,3.935c1.162,1.01,2.924,0.888,3.935-0.274l9.493-10.918C21.939,17.625,24.918,16.896,26.834,14.693z")}})},
1"./src/shape/icon/Wrench2.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Wrench2=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Wrench2",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M24.946,9.721l-2.872-0.768l-0.771-2.874l3.188-3.231c-1.992-0.653-4.268-0.192-5.848,1.391c-1.668,1.668-2.095,4.111-1.279,6.172l-3.476,3.478l-3.478,3.478c-2.062-0.816-4.504-0.391-6.173,1.277c-1.583,1.581-2.043,3.856-1.39,5.849l3.231-3.188l2.874,0.77l0.769,2.872l-3.239,3.197c1.998,0.665,4.288,0.207,5.876-1.384c1.678-1.678,2.1-4.133,1.271-6.202l3.463-3.464l3.464-3.463c2.069,0.828,4.523,0.406,6.202-1.272c1.592-1.589,2.049-3.878,1.384-5.876L24.946,9.721z")}})},
1"./src/shape/icon/Wrench3.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.Wrench3=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.Wrench3",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M27.839,6.775l-3.197,3.239L21.77,9.246l-0.771-2.874l3.188-3.231c-1.992-0.653-4.268-0.192-5.848,1.391c-1.668,1.668-2.095,4.111-1.279,6.172L7.42,20.344c-0.204-0.032-0.408-0.062-0.621-0.062c-2.173,0-3.933,1.759-3.933,3.933c0,2.173,1.76,3.933,3.933,3.933c2.171,0,3.931-1.76,3.933-3.933c0-0.24-0.03-0.473-0.071-0.7l9.592-9.59c2.069,0.828,4.523,0.406,6.202-1.272C28.047,11.062,28.504,8.772,27.839,6.775zM6.799,25.146c-0.517,0-0.933-0.418-0.935-0.933c0.002-0.515,0.418-0.933,0.935-0.933c0.514,0,0.932,0.418,0.932,0.933S7.313,25.146,6.799,25.146z")}})},
1"./src/shape/icon/ZoomIn.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ZoomIn=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ZoomIn",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M22.646,19.307c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127l3.535-3.537L22.646,19.307zM13.688,20.369c-3.582-0.008-6.478-2.904-6.484-6.484c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486C20.165,17.465,17.267,20.361,13.688,20.369zM15.687,9.051h-4v2.833H8.854v4.001h2.833v2.833h4v-2.834h2.832v-3.999h-2.833V9.051z")}})},
1"./src/shape/icon/ZoomOut.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.icon.ZoomOut=a.default.shape.icon.Icon.extend({NAME:"draw2d.shape.icon.ZoomOut",init:function(s,n,r){this._super(extend({width:50,height:50},s),n,r)},createSet:function(){return this.canvas.paper.path("M22.646,19.307c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127l3.535-3.537L22.646,19.307zM13.688,20.369c-3.582-0.008-6.478-2.904-6.484-6.484c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486C20.165,17.465,17.267,20.361,13.688,20.369zM8.854,11.884v4.001l9.665-0.001v-3.999L8.854,11.884z")}})},
1"./src/shape/layout/FlexGridLayout.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.layout.FlexGridLayout=a.default.shape.layout.Layout.extend({NAME:"draw2d.shape.layout.FlexGridLayout",init:function(r,u,l){var p=this;this.cellLocator={relocate:function(k,M){!0===p.gridDef.layoutRequired&&p._layout();var N=M.__cellConstraint,O=N.x,_=N.y;if(M.isResizeable())M.setDimension(Math.max(M.getMinWidth(),N.width),Math.max(M.getMinHeight(),N.height));else{switch(N.valign){case"middle":_+=(N.height-M.getHeight())/2;break;case"bottom":_+=N.height-M.getHeight()}switch(N.align){case"center":O+=(N.width-M.getWidth())/2;break;case"right":O+=N.width-M.getWidth()}}M.setPosition(O,_)},bind:function(){},unbind:function(){},translate:function(k,M){k.setPosition(k.x+M.x,k.y+M.y)}},this.debug=!1,this.gridDef={debugLines:[],def_cols:[],def_rows:[],min_height:[],min_width:[],minGridWidth:10,minGridHeight:10,hResizeable:!1,vResizeable:!1,layoutRequired:!0},this._super((0,t.default)({stroke:2},r),(0,t.default)({},u),(0,t.default)({},l)),this.resizeListener=function(C){p.gridDef.layoutRequired=!0,p.getParent()instanceof a.default.shape.layout.Layout?p.fireEvent("resize"):p.setDimension(!0===p.gridDef.hResizeable?p.getWidth():1,!0===p.gridDef.vResizeable?p.getHeight():1)};for(var x=r.rows.split(","),m=r.columns.split(","),g=0;g<m.length;g++)this.gridDef.def_cols[g]=this.cellWidthFromDef(m[g]);for(var w=0;w<x.length;w++)this.gridDef.def_rows[w]=this.cellWidthFromDef(x[w]);this.installEditPolicy(new a.default.policy.figure.RectangleSelectionFeedbackPolicy)},add:function(r,u){r.__cellConstraint=(0,t.default)({},{row:0,col:0,rowspan:1,colspan:1,align:"left",valign:"top",width:1,height:1},u),this.gridDef.layoutRequired=!0,this._super(r,this.cellLocator),this._layout()},getMinWidth:function(){return this.gridDef.minGridWidth},getMinHeight:function(){return this.gridDef.minGridHeight},setCanvas:function(r){return this.gridDef.layoutRequired=!0,this._super(r),this},repaint:function(r){return!0===this.repaintBlocked||null===this.shape||(this._super(r),this.debug&&this.paintDebugGrid()),this},setDimension:function(r,u){return!0===this.gridDef.layoutRequired&&this._layout(),this._super(r,u),this.gridDef.layoutRequired=!0,this.repaint(),this},_layout:function(){this.gridDef.layoutRequired=!1;var r=this.getChildren();this.gridDef.min_height=this.gridDef.def_rows.slice(0),this.gridDef.min_width=this.gridDef.def_cols.slice(0);for(var u=0;u<r.getSize();u++){var l=r.get(u),p=l.__cellConstraint;if(this.gridDef.min_width[p.col]=Math.max(this.gridDef.min_width[p.col],l.getMinWidth()),p.rowspan>1){var x=l.getMinHeight(),m=this.cellHeight(p.row,p.row+p.rowspan);m<x&&(this.gridDef.min_height[p.row+p.rowspan-1]=this.gridDef.min_height[p.row+p.rowspan-1]+(x-m))}else this.gridDef.min_height[p.row]=Math.max(this.gridDef.min_height[p.row],l.getMinHeight())}this.gridDef.minGridWidth=this._getGridWidth(),this.gridDef.minGridHeight=this._getGridHeight();for(var w=this._getGridHeight(),C=0;C<this.gridDef.def_rows.length;C++)if(-1===this.gridDef.def_rows[C]){this.gridDef.min_height[C]=this.gridDef.min_height[C]+Math.max(0,this.getHeight()-w),this.gridDef.vResizeable=!0;break}for(var k=this._getGridWidth(),M=0;M<this.gridDef.def_cols.length;M++)if(-1===this.gridDef.def_cols[M]){this.gridDef.min_width[M]=this.gridDef.min_width[M]+Math.max(0,this.getWidth()-k),this.gridDef.hResizeable=!0;break}for(var N=0;N<r.getSize();N++){var O=r.get(N).__cellConstraint;O.width=this.cellWidth(O.col,O.col+O.colspan),O.height=this.cellHeight(O.row,O.row+O.rowspan),O.x=this.cellX(O.col),O.y=this.cellY(O.row)}return this},cellX:function(r){for(var u=0,l=0;l<r;l++)u+=this.gridDef.min_width[l];return u},cellY:function(r){for(var u=0,l=0;l<r;l++)u+=this.gridDef.min_height[l];return u},cellWidth:function(r,u){for(var l=0,p=r;p<u;p++)l+=this.gridDef.min_width[p];return l},cellHeight:function(r,u){for(var l=0,p=r;p<u;p++)l+=this.gridDef.min_height[p];return l},paintDebugGrid:function(){for(var r=0;r<this.gridDef.debugLines.length;r++)this.gridDef.debugLines[r].remove();this.gridDef.debugLines=[];for(var u=this._getGridHeight(),l=this._getGridWidth(),p=this.getAbsoluteX(),x=this.getAbsoluteY(),m=p,g=0;g<=this.gridDef.min_width.length;g++){var w=this.canvas.paper.path("M "+m+" "+x+" l 0 "+u).attr({stroke:"#FF0000","stroke-width":1});this.gridDef.debugLines.push(w),g<this.gridDef.min_width.length&&(m+=this.gridDef.min_width[g])}for(var C=x,k=0;k<=this.gridDef.min_height.length;k++){var M=this.canvas.paper.path("M "+p+" "+C+" l "+l+" 0").attr({stroke:"#FF0000","stroke-width":1});this.gridDef.debugLines.push(M),k<this.gridDef.min_height.length&&(C+=this.gridDef.min_height[k])}},_getGridWidth:function(){for(var r=0,u=0;u<this.gridDef.min_width.length;u++)r+=this.gridDef.min_width[u];return r},_getGridHeight:function(){for(var r=0,u=0;u<this.gridDef.min_height.length;u++)r+=this.gridDef.min_height[u];return r},cellWidthFromDef:function(r){var u=new RegExp("(\\d+)(?:px)?"),l=r.match(u);return null!=l?parseInt(l[1]):(u=new RegExp("p(?:ref)?"),null!=(l=r.match(u))?0:(u=new RegExp("g(?:row)?"),null!=(l=r.match(u))?(this.autoResize=!1,-1):0))}})},
1"./src/shape/layout/HorizontalLayout.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.layout.HorizontalLayout=a.default.shape.layout.Layout.extend({NAME:"draw2d.shape.layout.HorizontalLayout",init:function(r,u,l){this.gap=0;var p=this;this.locator={translate:function(m,g){m.setPosition(m.x+g.x,m.y+g.y)},bind:function(){},unbind:function(){},relocate:function(m,g){for(var w=p.getStroke(),C=w+p.padding.top,k=w+p.padding.left,M=0;M<m;M++){var N=p.children.get(M).figure;N.isVisible()&&(k+=N.getWidth()+p.gap)}g.setPosition(k,C)}},this._super((0,t.default)({width:1,height:1,gap:0},r),(0,t.default)({gap:this.setGap},u),(0,t.default)({gap:this.getGap},l))},add:function(r,u,l){return this._super(r,this.locator,l),this.setDimension(1,1),this},setGap:function(r){return this.gap=r,this.setDimension(1,1),this},getGap:function(){return this.gap},getMinWidth:function(){var r=this,u=2*this.stroke+this.padding.left+this.padding.right,l=0;return this.children.each(function(p,x){x.figure.isVisible()&&(u+=x.figure.isResizeable()?x.figure.getMinWidth():x.figure.getWidth()+l,l=r.gap)}),u},getMinHeight:function(){var r=2*this.stroke+this.padding.top+this.padding.bottom,u=0;return this.children.each(function(l,p){u=Math.max(u,p.figure.isResizeable()?p.figure.getMinHeight():p.figure.getHeight())}),u+r},setDimension:function(r,u){this._super(r,u);var l=this.width-this.getMinWidth();if(l>0)l=l/this.children.getSize()|0,this.children.each(function(x,m){!0===m.figure.isResizeable()&&m.figure.setDimension(m.figure.getMinWidth()+l,m.figure.getHeight())});else{var p=this.getMinHeight();this.children.each(function(x,m){!0===m.figure.isResizeable()&&m.figure.setDimension(1,p)})}return this},getPersistentAttributes:function(){var r=this._super();return r.gap=this.gap,r},setPersistentAttributes:function(r){return this._super(r),"number"==typeof r.gap&&(this.gap=r.gap),this}})},
1"./src/shape/layout/Layout.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.layout.Layout=a.default.shape.basic.Rectangle.extend({NAME:"draw2d.shape.layout.Layout",init:function(r,u,l){var p=this;this.padding={top:0,right:0,bottom:0,left:0},this._super((0,t.default)({bgColor:null,radius:0,stroke:0},r),(0,t.default)({padding:this.setPadding},u),(0,t.default)({padding:this.getPadding},l)),this.resizeListener=function(x){p.getParent()instanceof a.default.shape.layout.Layout||p.setDimension(1,1),p.fireEvent("resize")},this.installEditPolicy(new a.default.policy.figure.AntSelectionFeedbackPolicy)},add:function(r,u,l){return this._super(r,u,l),r.on("resize",this.resizeListener),r.on("change:visibility",this.resizeListener),r.visible=r.visible&&this.visible,this},remove:function(r){var u=this._super(r);return r.off(this.resizeListener),this.setDimension(1,1),u},setPadding:function(r){return this.padding="number"==typeof r?{top:r,right:r,bottom:r,left:r}:(0,t.default)(this.padding,r),this.fireEvent("change:padding",{value:this.padding}),this.setDimension(1,1),this},getPadding:function(){return this.padding},setVisible:function(r){return this.children.each(function(u,l){l.figure.setVisible(r)}),this._super(r),this.setDimension(1,1),this},createCommand:function(r){return r.getPolicy()===a.default.command.CommandType.ROTATE?null:this._super(r)}})},
1"./src/shape/layout/StackLayout.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/extend.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.layout.StackLayout=a.default.shape.layout.Layout.extend({NAME:"draw2d.shape.layout.StackLayout",init:function(r,u,l){this.visibleLayer=0,this.locator=new a.default.layout.locator.XYAbsPortLocator(0,0),this._super((0,t.default)({resizeable:!0,width:10,height:10},r),(0,t.default)({},u),(0,t.default)({},l)),this.resizeListener=function(p){},this.installEditPolicy(new a.default.policy.figure.RectangleSelectionFeedbackPolicy)},setVisibleLayer:function(r,u){return this.getChildren().get(this.visibleLayer).setVisible(!1,u),this.visibleLayer=Math.min(this.getChildren().getSize()-1,Math.max(0,r)),this.getChildren().get(this.visibleLayer).setVisible(!0,u),this},getVisibleLayer:function(){return this.visibleLayer},add:function(r,u,l){return r.hitTest=function(){return!1},this.getChildren().each(function(p,x){x.setVisible(!1)}),this.visibleLayer=this.getChildren().getSize(),this._super(r,this.locator,l)},setVisible:function(r){return a.default.shape.basic.Rectangle.prototype.setVisible.call(this,r),this},getMinWidth:function(){var r=2*this.stroke+this.padding.left+this.padding.right,u=10;return this.children.each(function(l,p){u=Math.max(u,p.figure.isResizeable()?p.figure.getMinWidth():p.figure.getWidth())}),u+r},getMinHeight:function(){var r=2*this.stroke+this.padding.top+this.padding.bottom,u=10;return this.children.each(function(l,p){u=Math.max(u,p.figure.isResizeable()?p.figure.getMinHeight():p.figure.getHeight())}),u+r},setDimension:function(r,u){this._super(r,u);var l=this.width-this.padding.left-this.padding.right,p=this.height-this.padding.top-this.padding.bottom;return l===this._recursiveWidth&&p===this._recursiveHeight||(this._recursiveHeight=p,this._recursiveWidth=l,this.children.each(function(x,m){m.figure.isResizeable()&&m.figure.setDimension(l,p)}),delete this._recursiveHeight,delete this._recursiveWidth),this}})},
1"./src/shape/layout/TableLayout.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.layout.TableLayout=a.default.shape.layout.Layout.extend({NAME:"draw2d.shape.layout.TableLayout",DUMMY_CELL:{getMinHeight:function(){return 1},getMinWidth:function(){return 1},off:function(){}},init:function(s,n,r){var u=this;this.cellLocator={relocate:function(p,x){if(!0!==u.repaintBlocked){var m=x.__cell,g=u.getCellLayout(m.row,m.column),w=u.getWidth(),C=u.getMinWidth(),k=0;w!=C&&(k=(w-C)/u.layoutInfos[0].length*m.column);var M=x.getWidth(),N=x.getHeight(),O=g.x+u.padding.left+g.padding.left+k,_=g.y+u.padding.top+g.padding.top;if(x.isResizeable()){var P=Math.max(x.getMinWidth(),g.w-(g.padding.left+g.padding.right)+k),A=Math.max(x.getMinHeight(),g.h-(g.padding.top+g.padding.bottom));x.setDimension(P,A)}else{switch(g.valign){case"middle":_+=(g.h-(N+g.padding.top+g.padding.bottom))/2;break;case"bottom":_+=g.h-(N+g.padding.top+g.padding.bottom)}switch(g.align){case"center":O=O+(g.w-(M+g.padding.left+g.padding.right))/2+k/2;break;case"right":O=O+(g.w-(M+g.padding.left+g.padding.right))+k}}x.setPosition(O,_)}},bind:function(){},unbind:function(){},translate:function(p,x){p.setPosition(p.x+x.x,p.y+x.y)}},this.padding={top:4,right:4,bottom:4,left:4},this.grid=[],this.layoutInfos=[],this.layoutInfos[0]=[],this.layoutInfos[0][0]={x:0,y:0,w:1,h:1,valign:"top",align:"left"},this._super(extend({stroke:1,resizeable:!1},s),extend({padding:this.setPadding},n),extend({padding:this.getPadding},r))},setCellPadding:function(s,n,r){var u=this.getCellLayout(s,n);return null===u||("number"==typeof r?u.padding={top:r,right:r,bottom:r,left:r}:extend(u.padding,r),this.calculateLayout(),this.setDimension(1,1)),this},getCellPadding:function(s,n){var r=this.getCellLayout(s,n);return null===r||void 0===r.padding?{top:0,right:0,bottom:0,left:0}:r.padding},setPadding:function(s){return this.padding="number"==typeof s?{top:s,right:s,bottom:s,left:s}:extend(this.padding,s),this.calculateLayout(),this.setDimension(1,1),this.fireEvent("change:padding",{value:this.padding}),this},getPadding:function(){return this.padding},setCanvas:function(s){return this._super(s),this.calculateLayout(),this.setDimension(2,2),this},add:function(s,n,r){return this._super(s,n,r),this.setDimension(1,1),this},removeRow:function(s){var n=this,r=this.grid.splice(s,1);return r[0].forEach(function(u){n.remove(u)}),this.calculateLayout(),this.setDimension(2,2),r},addRow:function(){var s=[],n=this,r=Array.prototype.slice.call(arguments),l=this.grid.length>0?Math.max(this.grid[0].length,r.length):r.length,p=[];r.forEach(function(m,g){"string"==typeof m&&(m=new a.default.shape.basic.Label({text:m})),p.push(m),s.push(m)}),this.grid.push(p),this.grid.forEach(function(m,g){for(var w=l-m.length,C=0;C<w;C++)m.push(n.DUMMY_CELL)});var x=this.repaintBlocked;return this.repaintBlocked=!0,s.forEach(function(m){n.add(m,n.cellLocator)}),this.repaintBlocked=x,this.calculateLayout(),this.setDimension(1,1),this},getMinWidth:function(){if(null===this.canvas||0===this.layoutInfos.length)return 10;var s=this.layoutInfos[this.layoutInfos.length-1],n=s[s.length-1];return n.w+n.x+this.padding.left+this.padding.right},getMinHeight:function(){if(null===this.canvas||0===this.layoutInfos.length)return 10;var s=this.layoutInfos[this.layoutInfos.length-1],n=s[s.length-1];return n.h+n.y+this.padding.top+this.padding.bottom},setCellVerticalAlign:function(s,n,r){var u=this.getCellLayout(s,n);if(null!==u){switch(r){case"top":case"middle":case"bottom":u.valign=r,this.calculateLayout(),this.setDimension(1,1)}return this}},getCellVerticalAlign:function(s,n){var r=this.getCellLayout(s,n);return null===r?"top":r.valign},setCellAlign:function(s,n,r){var u=this.getCellLayout(s,n);if(null!==u){switch(r){case"left":case"center":case"right":u.align=r,this.calculateLayout(),this.setDimension(1,1)}return this}},getCellAlign:function(s,n){var r=this.getCellLayout(s,n);return null===r?"left":r.align},getCellLayout:function(s,n){if(s<0||n<0||s>=this.layoutInfos.length)return null;var r=this.layoutInfos[s];return n>=r.length?null:r[n]},calculateLayout:function(){for(var n=this.grid.length,r=this.grid.length>0?this.grid[0].length:0,u=[],l=0;l<n;l++){u[l]=[];for(var p=0;p<r;p++)u[l][p]={width:0,height:0,x:0,y:0,valign:this.getCellVerticalAlign(l,p),align:this.getCellAlign(l,p),padding:this.getCellPadding(l,p)}}var x=new Array(r+1).join("0").split("").map(parseFloat),m=new Array(n+1).join("0").split("").map(parseFloat);
1this.grid.forEach(function(N,O){for(var _=0;_<r;_++){var P=u[O][_],A=N[_];A.__cell={row:O,column:_},m[O]=Math.max(m[O],A.getMinHeight()+P.padding.top+P.padding.bottom),x[_]=Math.max(x[_],A.getMinWidth()+P.padding.left+P.padding.right)}});for(var g=0,w=0,C=0;C<n;C++){for(var k=0;k<r;k++){var M=u[C][k];M.w=x[k],M.h=m[C],M.x=g,M.y=w,g+=M.w}w+=m[C],g=0}return this.layoutInfos=u,this}})},
1"./src/shape/layout/VerticalLayout.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.layout.VerticalLayout=a.default.shape.layout.Layout.extend({NAME:"draw2d.shape.layout.VerticalLayout",init:function(s,n,r){this.gap=0;var u=this;this.locator={translate:function(p,x){p.setPosition(p.x+x.x,p.y+x.y)},bind:function(){},unbind:function(){},relocate:function(p,x){for(var g=u.getStroke()+u.padding.top,w=u.padding.left,C=0;C<p;C++){var k=u.children.get(C).figure;k.isVisible()&&(g+=k.getHeight()+u.gap)}x.setPosition(w,g)}},this._super(extend({width:10,height:10},s),extend({gap:this.setGap},n),extend({gap:this.getGap},r))},add:function(s,n,r){return this._super(s,this.locator,r),this.setDimension(1,1),this},setGap:function(s){this.gap=s,this.setDimension(1,1)},getMinWidth:function(){var s=2*this.stroke+this.padding.left+this.padding.right,n=10;return this.children.each(function(r,u){u.figure.isVisible()&&(n=Math.max(n,u.figure.isResizeable()?u.figure.getMinWidth():u.figure.getWidth()))}),n+s},getMinHeight:function(){var s=this,n=0,r=2*this.stroke+this.padding.top+this.padding.bottom,u=0;return this.children.each(function(l,p){p.figure.isVisible()&&(u+=(p.figure.isResizeable()?p.figure.getMinHeight():p.figure.getHeight())+n,n=s.gap)}),u+r},setDimension:function(s,n){this._super(s,n);var r=this.width-this.padding.left-this.padding.right;return r===this._recursiveWidth||(this._recursiveWidth=r,this.children.each(function(u,l){l.figure.isResizeable()&&l.figure.isVisible()&&l.figure.setDimension(r,l.figure.getMinHeight())}),delete this._recursiveWidth),this},getPersistentAttributes:function(){var s=this._super();return s.gap=this.gap,s},setPersistentAttributes:function(s){return this._super(s),"number"==typeof s.gap&&(this.gap=s.gap),this}})},
1"./src/shape/node/Between.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.node.Between=a.default.shape.basic.Rectangle.extend({NAME:"draw2d.shape.node.Between",DEFAULT_COLOR:new a.default.util.Color("#4D90FE"),init:function(s,n,r){this._super(extend({bgColor:this.DEFAULT_COLOR,color:this.DEFAULT_COLOR.darker(),width:50,height:50},s),n,r),this.createPort("output"),this.createPort("input")}})},
1"./src/shape/node/End.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.node.End=a.default.shape.basic.Rectangle.extend({NAME:"draw2d.shape.node.End",DEFAULT_COLOR:new a.default.util.Color("#4D90FE"),init:function(s,n,r){this._super(extend({bgColor:this.DEFAULT_COLOR,color:this.DEFAULT_COLOR.darker(),width:50,height:50},s),n,r),this.createPort("input")}})},
1"./src/shape/node/Fulcrum.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/JSONUtil.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.node.Fulcrum=a.default.shape.node.Hub.extend({NAME:"draw2d.shape.node.Fulcrum",init:function(r,u,l){this._super(extend({width:40,height:40},r),u,l),this.port.setConnectionAnchor(new a.default.layout.anchor.ConnectionAnchor(this.port)),this.port.setVisible(!0),this.port.hitTest=this.port._orig_hitTest,this.setConnectionDirStrategy(0),this.setColor(null),this.setRadius(10),this.setBackgroundColor(null),this.setStroke(0),this.installEditPolicy(new a.default.policy.figure.AntSelectionFeedbackPolicy)},repaint:function(r){return!0===this.repaintBlocked||null===this.shape?this:(t.default.ensureDefault(r=r||{},"fill",this.bgColor.rgba()),this._super(r))}})},
1"./src/shape/node/HorizontalBus.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.node.HorizontalBus=a.default.shape.node.Hub.extend({NAME:"draw2d.shape.node.HorizontalBus",init:function(s,n,r){this._super(s,n,r),this.setConnectionDirStrategy(1),this.installEditPolicy(new a.default.policy.figure.HBusSelectionFeedbackPolicy)}})},
1"./src/shape/node/Hub.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js")),t=s(c("./src/util/Color.js"));function s(n){return n&&n.__esModule?n:{default:n}}a.default.shape.node.Hub=a.default.shape.basic.Rectangle.extend({NAME:"draw2d.shape.node.Hub",DEFAULT_COLOR:new t.default("#4DF0FE"),BACKGROUND_COLOR:new t.default("#29AA77"),init:function(r,u,l){this.label=null,this._super(extend({color:this.DEFAULT_COLOR.darker(),bgColor:this.BACKGROUND_COLOR},r),extend({label:this.setLabel,text:this.setLabel},u),extend({label:this.getLabel,text:this.getLabel},l));var p=this.port=this.createPort("hybrid",new a.default.layout.locator.CenterLocator),x=a.default.geo.Rectangle;this.CONNECTION_DIR_STRATEGY=[function(m){return p.getParent().getBoundingBox().getDirection(m.getAbsolutePosition())},function(m){return p.getAbsoluteY()>m.getAbsoluteY()?x.DIRECTION_UP:x.DIRECTION_DOWN},function(m){return p.getAbsoluteX()>m.getAbsoluteX()?x.DIRECTION_LEFT:x.DIRECTION_RIGHT}],this.port.setGlow=this.setGlow.bind(this),this.port._orig_hitTest=this.port.hitTest,this.port.hitTest=this.hitTest.bind(this),this.port.setConnectionAnchor(new a.default.layout.anchor.ShortesPathConnectionAnchor(this.port)),this.port.setVisible(!1),this.port.setVisible=function(){},this.setConnectionDirStrategy(0)},delegateTarget:function(r){return this.getHybridPort(0).delegateTarget(r)},getMinWidth:function(){return null!==this.label?Math.max(this.label.getMinWidth(),this._super()):this._super()},repaint:function(r){!0===this.repaintBlocked||null===this.shape||(void 0===(r=r||{}).fill&&(r.fill=null!==this.bgColor?"90-"+this.bgColor.hash()+":5-"+this.bgColor.lighter(.3).hash()+":95":"none"),this._super(r))},setLabel:function(r){if(null===this.label){var u=this;this.label=new a.default.shape.basic.Label({text:r,color:"#0d0d0d",fontColor:"#0d0d0d",stroke:0}),this.add(this.label,new a.default.layout.locator.CenterLocator),this.label.setSelectionAdapter(function(){return u}),this.label.delegateTarget=function(){return u.port}}else this.label.setText(r)},setConnectionDirStrategy:function(r){switch(r){case 0:case 1:case 2:this.port.getConnectionDirection=this.CONNECTION_DIR_STRATEGY[r]}},getPersistentAttributes:function(){var r=this._super();return r.dirStrategy=this.CONNECTION_DIR_STRATEGY.indexOf(this.port.getConnectionDirection),null!==this.label&&(r.label=this.label.getText()),r},setPersistentAttributes:function(r){this._super(r),"number"==typeof r.dirStrategy&&this.setConnectionDirStrategy(r.dirStrategy),void 0!==r.label&&this.setLabel(r.label)}})},
1"./src/shape/node/Node.js":function(module,exports,__webpack_require__){"use strict";var _packages=__webpack_require__("./src/packages.js"),_packages2=_interopRequireDefault(_packages),_extend=__webpack_require__("./src/util/extend.js"),_extend2=_interopRequireDefault(_extend);function _interopRequireDefault(h){return h&&h.__esModule?h:{default:h}}_packages2.default.shape.node.Node=_packages2.default.Figure.extend({NAME:"draw2d.shape.node.Node",init:function(y,c,d){this.inputPorts=new _packages2.default.util.ArrayList,this.outputPorts=new _packages2.default.util.ArrayList,this.hybridPorts=new _packages2.default.util.ArrayList,this.persistPorts=!0,this.portRelayoutRequired=!0,this.cachedPorts=null,this._super((0,_extend2.default)({width:50,height:50},y),(0,_extend2.default)({persistPorts:this.setPersistPorts},c),(0,_extend2.default)({persistPorts:this.getPersistPorts},d))},setPersistPorts:function(y){return this.persistPorts=y,this.fireEvent("change:persistPorts",{value:this.persistPorts}),this},getPersistPorts:function(){return this.persistPorts},toFront:function(y){var c=this;return this._super(y),this.getPorts().each(function(d,a){a.getConnections().each(function(v,t){return t.toFront(y)}),a.toFront(c)}),this},toBack:function(y){return this.getPorts().each(function(c,d){d.getConnections().each(function(a,v){return v.toBack(y)}),d.toBack(y)}),this._super(y),this},setVisible:function(y,c){y?this.getPorts().each(function(d,a){a.setVisible(void 0===a.__initialVisibilityState||a.__initialVisibilityState,c),delete a.__initialVisibilityState}):this.getPorts().each(function(d,a){a.__initialVisibilityState=a.isVisible(),a.setVisible(!1,c)}),this._super(y,c)},getPorts:function(y){var c=this;if("boolean"==typeof y&&!1===y){var d=new _packages2.default.util.ArrayList;return d.addAll(this.inputPorts),d.addAll(this.outputPorts),d.addAll(this.hybridPorts),d}return null===this.cachedPorts&&(this.cachedPorts=new _packages2.default.util.ArrayList,this.cachedPorts.addAll(this.inputPorts),this.cachedPorts.addAll(this.outputPorts),this.cachedPorts.addAll(this.hybridPorts),this.children.each(function(a,v){c.cachedPorts.addAll(v.figure.getPorts())})),this.cachedPorts},getInputPorts:function(){return this.inputPorts.clone().addAll(this.hybridPorts)},getOutputPorts:function(){return this.outputPorts.clone().addAll(this.hybridPorts)},clone:function(y){y=(0,_extend2.default)({excludePorts:!1},y);var c=this._super(y);return!1===y.excludePorts&&(c.resetPorts(),this.getPorts(!1).each(function(a,v){var t=v.clone(),s=v.getLocator().clone();c.addPort(t,s)})),c},getPort:function(y){return this.getPorts().find(function(c){return c.getName()===y})},getInputPort:function(y){if("number"==typeof y)return this.inputPorts.get(y);for(var c=0;c<this.inputPorts.getSize();c++){var d=this.inputPorts.get(c);if(d.getName()===y)return d}return null},getOutputPort:function(y){if("number"==typeof y)return this.outputPorts.get(y);for(var c=0;c<this.outputPorts.getSize();c++){var d=this.outputPorts.get(c);if(d.getName()===y)return d}return null},getHybridPort:function(y){if("number"==typeof y)return this.hybridPorts.get(y);for(var c=0;c<this.hybridPorts.getSize();c++){var d=this.hybridPorts.get(c);if(d.getName()===y)return d}return null},addPort:function(y,c){if(!(y instanceof _packages2.default.Port))throw"Argument is not typeof 'draw2d.Port'. \nFunction: draw2d.shape.node.Node#addPort";return null!==this.cachedPorts&&this.cachedPorts.add(y),this.portRelayoutRequired=!0,y instanceof _packages2.default.InputPort?this.inputPorts.add(y):y instanceof _packages2.default.OutputPort?this.outputPorts.add(y):y instanceof _packages2.default.HybridPort&&this.hybridPorts.add(y),void 0!==c&&c instanceof _packages2.default.layout.locator.Locator&&y.setLocator(c),y.setParent(this),y.setCanvas(this.canvas),y.setDeleteable(!1),null!==this.canvas&&(y.getShapeElement(),this.canvas.registerPort(y)),y},resetPorts:function(){var y=this;return this.getPorts().each(function(c,d){return y.removePort(d)}),this},removePort:function(y){if(this.portRelayoutRequired=!0,this.cachedPorts=null,this.inputPorts.remove(y),this.outputPorts.remove(y),this.hybridPorts.remove(y),null!==y.getCanvas()){var c=y.getCanvas();c.unregisterPort(y),y.getConnections().clone().each(function(a,v){c.remove(v)})}return y.setCanvas(null),this},createPort:function(y,c){var d=null,a=0;switch(y){case"input":d=_packages2.default.Configuration.factory.createInputPort(this),a=this.inputPorts.getSize();break;case"output":d=_packages2.default.Configuration.factory.createOutputPort(this),a=this.outputPorts.getSize();break;case"hybrid":d=_packages2.default.Configuration.factory.createHybridPort(this),a=this.hybridPorts.getSize();break;default:throw"Unknown type ["+y+"] of port requested"}return d.setName(y+a),this.addPort(d,c),this.setDimension(this.width,this.height),d},getConnections:function(){for(var y=new _packages2.default.util.ArrayList,c=this.getPorts(),d=0;d<c.getSize();d++)for(var a=c.get(d),v=0,t=a.getConnections().getSize();
1v<t;v++)y.contains(a.getConnections().get(v))||y.add(a.getConnections().get(v));return y},setCanvas:function(y){var c=this.canvas;this._super(y);var d=this.getPorts();return null!==c&&d.each(function(a,v){return c.unregisterPort(v)}),null!==y?(d.each(function(a,v){v.setCanvas(y),y.registerPort(v)}),this.setDimension(this.width,this.height)):d.each(function(a,v){return v.setCanvas(null)}),this},setRotationAngle:function(y){return this.portRelayoutRequired=!0,this._super(y),this.layoutPorts(),this},setDimension:function(y,c){return this.portRelayoutRequired=!0,this._super(y,c),this},onPortValueChanged:function(y){},repaint:function(y){return!0===this.repaintBlocked||null===this.shape||(this._super(y),this.layoutPorts()),this},layoutPorts:function(){return!1===this.portRelayoutRequired||(this.portRelayoutRequired=!1,this.outputPorts.each(function(y,c){return c.locator.relocate(y,c)}),this.inputPorts.each(function(y,c){return c.locator.relocate(y,c)}),this.hybridPorts.each(function(y,c){return c.locator.relocate(y,c)})),this},createCommand:function(y){return null===y?null:y.getPolicy()===_packages2.default.command.CommandType.ROTATE?new _packages2.default.command.CommandRotate(this,(this.getRotationAngle()+90)%360):this._super(y)},getPersistentAttributes:function(){var y=this._super();return!0===this.persistPorts&&(y.ports=[],this.getPorts().each(function(c,d){y.ports.push((0,_extend2.default)(d.getPersistentAttributes(),{name:d.getName(),port:d.NAME,locator:d.getLocator().NAME,locatorAttr:d.getLocator().attr()}))})),y},setPersistentAttributes:function setPersistentAttributes(memento){var _this4=this;return this._super(memento),void 0!==memento.ports&&(this.persistPorts=!0,this.resetPorts(),memento.ports.forEach(function(e){var locator=eval("new "+e.locator+"()");e.locatorAttr&&locator.attr(e.locatorAttr);var port=eval("new "+e.port+"()");port.setPersistentAttributes(e),_this4.addPort(port,locator)})),this}})},
1"./src/shape/node/Start.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.node.Start=a.default.shape.basic.Rectangle.extend({NAME:"draw2d.shape.node.Start",DEFAULT_COLOR:new a.default.util.Color("#4D90FE"),init:function(s,n,r){this._super(extend({bgColor:this.DEFAULT_COLOR,color:this.DEFAULT_COLOR.darker(),width:50,height:50},s),n,r),this.createPort("output")}})},
1"./src/shape/node/VerticalBus.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.node.VerticalBus=a.default.shape.node.Hub.extend({NAME:"draw2d.shape.node.VerticalBus",init:function(s,n,r){this._super(s,n,r),this.setConnectionDirStrategy(2),this.installEditPolicy(new a.default.policy.figure.VBusSelectionFeedbackPolicy)},setLabel:function(s){var n=null===this.label;this._super(s),!0===n&&null!==this.label&&this.label.setRotationAngle(90)},getMinHeight:function(){return null===this.shape&&null===this.label?0:null!==this.label?this.label.getMinWidth():this._super()},getMinWidth:function(){return null===this.shape&&null===this.label?0:null!==this.label?this.label.getMinHeight():this._super()}})},
1"./src/shape/note/PostIt.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.note.PostIt=a.default.shape.basic.Label.extend({NAME:"draw2d.shape.note.PostIt",init:function(s,n,r){this._super(s,n,r),this.setStroke(1),this.setBackgroundColor("#5b5b5b"),this.setColor("#FFFFFF"),this.setFontColor("#ffffff"),this.setFontSize(14),this.setPadding(5),this.setRadius(5)}})},
1"./src/shape/pert/Activity.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.pert.Activity=a.default.shape.layout.VerticalLayout.extend({NAME:"draw2d.shape.pert.Activity",init:function(s,n,r){var u=this;this.mementoValues={duration:null},this.bgColor=new a.default.util.Color("#f3f3f3"),this.lighterBgColor=this.bgColor.lighter(.2).rgba(),this.darkerBgColor=this.bgColor.darker(.2).rgba(),this._super(extend({bgColor:this.bgColor,stroke:2,radius:2,color:this.darkerBgColor},s),n,r);var l=new a.default.shape.layout.HorizontalLayout({stroke:0});this.earlyStartLabel=this.createLabel("Early Start").setStroke(0),this.durationLabel=new a.default.shape.basic.Label({text:"Duration",stroke:1,color:this.darkerBgColor,radius:0,bgColor:null,padding:5}),this.durationLabel.installEditor(new a.default.ui.LabelEditor({onCommit:function(m){u.setDuration(parseFloat(m))}})),this.earlyEndLabel=this.createLabel({text:"Early End",stroke:0}),l.add(this.earlyStartLabel),l.add(this.durationLabel),l.add(this.earlyEndLabel),this.activityLabel=new a.default.shape.basic.Label({text:"Activity Name",radius:0,padding:10,color:this.darkerBgColor,bgColor:null}),this.activityLabel.installEditor(new a.default.ui.LabelInplaceEditor),this.inputPort=this.activityLabel.createPort("input"),this.inputPort.getActivity=function(){return u},this.inputPort.onConnect=function(){u.setDuration(u.mementoValues.duration)},this.inputPort.onDisconnect=function(){u.setDuration(u.mementoValues.duration)},this.inputPort.setValue=function(x){u.setDuration(u.mementoValues.duration)},this.outputPort=this.activityLabel.createPort("output"),this.outputPort.getActivity=function(){return u},this.outputPort.onConnect=function(){u.setDuration(u.mementoValues.duration)},this.outputPort.onDisconnect=function(){u.setDuration(u.mementoValues.duration)};var p=new a.default.shape.layout.HorizontalLayout({stroke:0});this.lateStartLabel=this.createLabel("Late Start").setStroke(0),this.stackLabel=this.createLabel("Stack"),this.lateEndLabel=this.createLabel("Late End").setStroke(0),p.add(this.lateStartLabel),p.add(this.stackLabel),p.add(this.lateEndLabel),this.add(l),this.add(this.activityLabel),this.add(p),this.setDuration(1)},setDuration:function(s){this.mementoValues.duration!==s&&(this.mementoValues.duration=s,this.durationLabel.setText(this.mementoValues.duration));var n=this.getEarlyStart();this.earlyStartLabel.setText(n),this.earlyEndLabel.setText(n+this.mementoValues.duration);var r=this.outputPort.getConnections();if(r.each(function(l,p){p.getTarget().setValue()}),0===r.getSize()){var u=parseFloat(this.earlyEndLabel.getText());this.setLateFinish(u)}},getEarlyEnd:function(){return this.getEarlyStart()+this.mementoValues.duration},getEarlyStart:function(){var s=0;return this.inputPort.getConnections().each(function(n,r){var u=r.getSource().getActivity();s=Math.max(s,u.getEarlyEnd())}),s},setLateFinish:function(s){var n=s-this.mementoValues.duration;this.lateEndLabel.setText(s),this.lateStartLabel.setText(n),this.stackLabel.setText(n-parseFloat(this.earlyStartLabel.getText())),this.inputPort.getConnections().each(function(u,l){l.getSource().getActivity().setLateFinish(n)})},createLabel:function(s){var n=new a.default.shape.basic.Label({text:s});return n.setStroke(1),n.setColor(this.darkerBgColor),n.setRadius(0),n.setBackgroundColor(null),n.setPadding(5),n.setColor(this.bgColor.darker(.2)),n.onDoubleClick=function(r){},n},setBackgroundColor:function(s){this._super(s),this.lighterBgColor=this.bgColor.lighter(.2).rgba(),this.darkerBgColor=this.bgColor.darker(.2).rgba()},repaint:function(s){!0===this.repaintBlocked||null===this.shape||((s=s||{}).fill=this.getAlpha()<.9?this.bgColor.rgba():["90",this.bgColor.hash(),this.lighterBgColor].join("-"),this._super(s))}})},
1"./src/shape/pert/Start.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.pert.Start=a.default.shape.layout.VerticalLayout.extend({NAME:"draw2d.shape.pert.Start",init:function(s,n,r){var u=this;this.mementoValues={duration:null},this.bgColor=new a.default.util.Color("#f3f3f3"),this.lighterBgColor=this.bgColor.lighter(.2).rgba(),this.darkerBgColor=this.bgColor.darker(.2).rgba(),this._super(extend({bgColor:this.bgColor,stroke:2,radius:2,color:this.darkerBgColor},s),n,r);var l=new a.default.shape.layout.HorizontalLayout({stroke:0});this.durationLabel=new a.default.shape.basic.Label({text:"Duration",stroke:1,color:this.darkerBgColor,radius:0,bgColor:null,padding:5}),this.durationLabel.installEditor(new a.default.ui.LabelEditor({text:"Enter new duration",onCommit:function(m){u.setDuration(parseFloat(m))}})),this.earlyEndLabel=this.createLabel({text:"Early End",stroke:0}),l.add(this.durationLabel),l.add(this.earlyEndLabel),this.activityLabel=new a.default.shape.basic.Label({text:"Start",radius:0,padding:10,color:this.darkerBgColor,bgColor:null}),this.activityLabel.installEditor(new a.default.ui.LabelInplaceEditor),this.outputPort=this.activityLabel.createPort("output"),this.outputPort.getActivity=function(){return u},this.outputPort.onConnect=function(){u.setDuration(u.mementoValues.duration)},this.outputPort.onDisconnect=function(){u.setDuration(u.mementoValues.duration)};var p=this.createLabel(" ");p.setPadding(10),p.setStroke(0),this.lateEndLabel=p,this.add(l),this.add(this.activityLabel),this.add(p),this.setDuration(1)},setDuration:function(s){this.mementoValues.duration!==s&&(this.mementoValues.duration=s,this.durationLabel.setText(this.mementoValues.duration)),this.earlyEndLabel.setText(this.mementoValues.duration);var n=this.outputPort.getConnections();if(n.each(function(u,l){l.getTarget().setValue()}),0===n.getSize()){var r=parseFloat(this.earlyEndLabel.getText());this.setLateFinish(r)}},getEarlyEnd:function(){return this.mementoValues.duration},setLateFinish:function(s){this.lateEndLabel.setText(s)},createLabel:function(s){var n=new a.default.shape.basic.Label({text:s});return n.setStroke(1),n.setColor(this.darkerBgColor),n.setRadius(0),n.setBackgroundColor(null),n.setPadding(5),n.setColor(this.bgColor.darker(.2)),n.onDoubleClick=function(r){},n},setBackgroundColor:function(s){this._super(s),this.lighterBgColor=this.bgColor.lighter(.2).rgba(),this.darkerBgColor=this.bgColor.darker(.2).rgba()},repaint:function(s){!0===this.repaintBlocked||null===this.shape||((s=s||{}).fill=this.getAlpha()<.9?this.bgColor.rgba():["90",this.bgColor.hash(),this.lighterBgColor].join("-"),this._super(s))}})},
1"./src/shape/state/Connection.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.state.Connection=a.default.Connection.extend({NAME:"draw2d.shape.state.Connection",DEFAULT_COLOR:new a.default.util.Color("#4D90FE"),init:function(s,n,r){this._super(extend({router:null,stroke:2},s),n,r),this.setTargetDecorator(new a.default.decoration.connection.ArrowDecorator(17,8)),this.label=new a.default.shape.basic.Label({text:"label"}),this.label.setStroke(1),this.label.setPadding(2),this.label.setBackgroundColor("#f0f0f0"),this.add(this.label,new a.default.layout.locator.ParallelMidpointLocator)},setLabel:function(s){return this.label.setText(s),this.label.setVisible(!(null===s||""===s)),this.fireEvent("change:label",{value:s}),this},getLabel:function(){return this.label.getText()},getPersistentAttributes:function(){return extend(this._super(),{label:this.getLabel()})},setPersistentAttributes:function(s){this._super(s),void 0!==s.label&&this.setLabel(s.label)}})},
1"./src/shape/state/End.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.state.End=a.default.shape.basic.Circle.extend({NAME:"draw2d.shape.state.End",DEFAULT_COLOR:new a.default.util.Color("#4D90FE"),init:function(s,n,r){this.innerCircle=new a.default.shape.basic.Circle(20),this._super(s,n,r),this.port=this.createPort("input",new a.default.layout.locator.TopLocator),this.port.setConnectionAnchor(new a.default.layout.anchor.ShortesPathConnectionAnchor(this.port)),this.setDimension(50,50),this.setBackgroundColor(this.DEFAULT_COLOR),this.installEditPolicy(new a.default.policy.figure.AntSelectionFeedbackPolicy),this.innerCircle.setStroke(2),this.innerCircle.setBackgroundColor(null),this.add(this.innerCircle,new a.default.layout.locator.CenterLocator),this.setStroke(0)},setDimension:function(s,n){this._super(s,n),this.innerCircle.setDimension(this.getWidth()-10,this.getHeight()-10)}})},
1"./src/shape/state/Start.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.state.Start=a.default.shape.basic.Circle.extend({NAME:"draw2d.shape.state.Start",DEFAULT_COLOR:new a.default.util.Color("#3369E8"),init:function(s,n,r){this._super(s,n,r),this.port=this.createPort("output",new a.default.layout.locator.BottomLocator),this.port.setConnectionAnchor(new a.default.layout.anchor.ShortesPathConnectionAnchor(this.port)),this.setDimension(50,50),this.setBackgroundColor(this.DEFAULT_COLOR),this.installEditPolicy(new a.default.policy.figure.AntSelectionFeedbackPolicy),this.setStroke(0);var u=new a.default.shape.basic.Label({text:"START"});u.setStroke(0),u.setFontColor("#ffffff"),u.setFontFamily('"Open Sans",sans-serif'),this.add(u,new a.default.layout.locator.CenterLocator)}})},
1"./src/shape/state/State.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.state.State=a.default.shape.layout.VerticalLayout.extend({NAME:"draw2d.shape.state.State",init:function(s,n,r){this._super(s,n,r),this.port=this.createPort("hybrid",new a.default.layout.locator.BottomLocator),this.port.setConnectionAnchor(new a.default.layout.anchor.ChopboxConnectionAnchor(this.port)),this.setBackgroundColor("#f3f3f3"),this.setStroke(1),this.setColor("#e0e0e0"),this.setRadius(5);var u=this.createLabel("State").setStroke(0);this.label=u;var l=new a.default.shape.basic.Rectangle;l.getHeight=function(){return 1},l.setMinWidth(90),l.setColor("#e0e0e0");var p=new a.default.shape.basic.Rectangle;p.setMinHeight(30),p.setStroke(0),p.setBackgroundColor(null),this.add(u),this.add(l),this.add(p)},setLabel:function(s){return this.label.setText(s),this.fireEvent("change:label",{value:s}),this},getLabel:function(){return this.label.getText()},createLabel:function(s){var n=new a.default.shape.basic.Label(s);return n.setStroke(1),n.setColor(this.darkerBgColor),n.setRadius(0),n.setBackgroundColor(null),n.setPadding(5),n.setColor(this.bgColor.darker(.2)),n.onDoubleClick=function(r){},n},getPersistentAttributes:function(){return extend(this._super(),{label:this.getLabel()})},setPersistentAttributes:function(s){this._super(s),void 0!==s.label&&this.setLabel(s.label)}})},
1"./src/shape/widget/Slider.js":function(h,y,c){"use strict";var a=function t(s){return s&&s.__esModule?s:{default:s}}(c("./src/packages.js")),v=c("./node_modules/shifty/dist/shifty.js");a.default.shape.widget.Slider=a.default.shape.widget.Widget.extend({NAME:"draw2d.shape.widget.Slider",DEFAULT_COLOR_THUMB:new a.default.util.Color("#bddf69"),DEFAULT_COLOR_BG:new a.default.util.Color("#d3d3d3"),init:function(n,r,u){this.currentValue=0,this.slideBoundingBox=new a.default.geo.Rectangle(0,0,10,20),this.padding={top:4,right:4,bottom:4,left:4},this.panning=!1,this.thumbGrow=0,this._super(extend({width:150,height:15,stroke:1,radius:4,resizeable:!0,color:this.DEFAULT_COLOR_THUMB,bgColor:this.DEFAULT_COLOR_BG,value:50},n),extend({padding:this.setPadding,value:this.setValue},r),extend({padding:this.getPadding,value:this.getValue},u)),this.setMinHeight(15),this.setMinWidth(80)},createSet:function(){var n=this.canvas.paper.set(),r=this.canvas.paper.rect(0,0,10,20);return r.node.style.cursor="col-resize",n.push(r),n},setDimension:function(n,r){this._super(n,r),this.slideBoundingBox.setBoundary(this.padding.left,0,this.getWidth()-this.padding.right,this.getHeight()),this.slideBoundingBox.setHeight(this.getHeight()+1),this.repaint()},setPadding:function(n){return this.clearCache(),this.padding="number"==typeof n?{top:n,right:n,bottom:n,left:n}:extend(this.padding,n),this.repaint(),this.fireEvent("change:padding",{value:this.padding}),this},getPadding:function(){return this.padding},onValueChange:function(n){},onDragStart:function(n,r,u,l){if(this.slideBoundingBox.hitTest(n,r)){this.panningX=n,this.panningY=r,this.panning=!0;var p=new v.Tweenable;return p.tween({from:{grow:this.thumbGrow},to:{grow:10},duration:500,easing:"easeOutQuart",step:function(x){this.thumbGrow=x.grow,this.repaint()}.bind(this),finish:function(){p.dispose()}}),!1}return this._super(n,r,u,l)},onPanning:function(n,r,u,l){var p=this.getWidth(),x=p-this.padding.left-this.padding.right,m=Math.min(p,Math.max(0,this.panningX+n)),g=Math.min(p-this.padding.left-this.padding.right,m);this.setValue(100/x*g)},onPanningEnd:function(){this.panning=!1;var n=new v.Tweenable;n.tween({from:{grow:this.thumbGrow},to:{grow:0},duration:300,easing:"easeOutQuart",step:function(r){this.thumbGrow=r.grow,this.repaint()}.bind(this),finish:function(){n.dispose()}}),this.thumbGrow=0,this.repaint()},setValue:function(n){return this.currentValue=Math.min(Math.max(0,0|n),100),this.repaint(),this.onValueChange(this.currentValue),this.fireEvent("change:value",{value:this.currentValue}),this},getValue:function(){return this.currentValue},repaint:function(n){if(!0!==this.repaintBlocked&&null!==this.shape){n=n||{};var r=(this.getWidth()-this.padding.left-this.padding.right)/100*this.currentValue+this.padding.left|0;if(this.slideBoundingBox.setX(r),null!==this.svgNodes){var u=this.slideBoundingBox.toJSON();u.y-=this.thumbGrow/2,u.height+=this.thumbGrow,u.fill=this.getColor().rgba(),u.stroke=this.getColor().darker(.2).rgba(),u.r=4,this.svgNodes.attr(u)}n.fill="90-"+this.bgColor.hash()+":5-"+this.bgColor.lighter(.3).hash()+":95",n.stroke=this.bgColor.darker(.1).rgba(),this._super(n)}},applyTransformation:function(){return this.svgNodes.transform("T"+this.getAbsoluteX()+","+this.getAbsoluteY()),this}})},
1"./src/shape/widget/Widget.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.shape.widget.Widget=a.default.SetFigure.extend({init:function(s,n,r){this._super(s,n,r)}})},
1"./src/ui/LabelEditor.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.ui.LabelEditor=Class.extend({NAME:"draw2d.ui.LabelEditor",init:function(s){this.configuration=extend({onCommit:function(){},onCancel:function(){},onStart:function(){},text:"Value"},s)},start:function(s){this.configuration.onStart();var n=prompt(this.configuration.text,s.getText());if(n){var r=new a.default.command.CommandAttr(s,{text:n});s.getCanvas().getCommandStack().execute(r),this.configuration.onCommit(s.getText())}else this.configuration.onCancel()}})},
1"./src/ui/LabelInplaceEditor.js":function(h,y,c){"use strict";var a=s(c("./src/packages.js"));function s(n){return n&&n.__esModule?n:{default:n}}s(c("./src/lib/jquery.autoresize.js")),a.default.ui.LabelInplaceEditor=a.default.ui.LabelEditor.extend({NAME:"draw2d.ui.LabelInplaceEditor",init:function(r){this._super(),this.listener=extend({onCommit:function(){},onCancel:function(){},onStart:function(){}},r)},start:function(r){var u=this;this.label=r,this.commitCallback=this.commit.bind(this),$("body").bind("click",this.commitCallback),this.html=$('<input id="inplaceeditor">'),this.html.val(r.getText()),this.html.hide(),$("body").append(this.html),this.html.autoResize(),this.html.bind("keyup",function(m){switch(m.which){case 13:this.commit();break;case 27:this.cancel()}}.bind(this)),this.html.bind("blur",this.commitCallback),this.html.bind("click",function(m){m.stopPropagation(),m.preventDefault()});var l=this.label.getCanvas(),p=this.label.getBoundingBox();p.setPosition(l.fromCanvasToDocumentCoordinate(p.x,p.y)),l.getScrollArea().is($("body"))&&p.translate(l.getScrollLeft(),l.getScrollTop()),p.translate(-1,-1),p.resize(2,2),this.html.css({position:"absolute",top:p.y,left:p.x,"min-width":p.w*(1/l.getZoom()),height:Math.max(25,p.h*(1/l.getZoom()))}),this.html.fadeIn(function(){u.html.focus(),u.listener.onStart()})},commit:function(){var r=this;this.html.unbind("blur",this.commitCallback),$("body").unbind("click",this.commitCallback);var u=this.html.val(),l=new a.default.command.CommandAttr(this.label,{text:u});this.label.getCanvas().getCommandStack().execute(l),this.html.fadeOut(function(){r.html.remove(),r.html=null,r.listener.onCommit(r.label.getText())})},cancel:function(){var r=this;this.html.unbind("blur",this.commitCallback),$("body").unbind("click",this.commitCallback),this.html.fadeOut(function(){r.html.remove(),r.html=null,r.listener.onCancel()})}})},
1"./src/util/ArrayList.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.util.ArrayList=Class.extend({init:function(s){this.data=Array.isArray(s)?s:[]},clear:function(){return this.data=[],this},reverse:function(){return this.data.reverse(),this},getSize:function(){return this.data.length},isEmpty:function(){return 0===this.getSize()},last:function(){return this.data[this.data.length-1]},asArray:function(){return this.data},first:function(){return this.data.length>0?this.data[0]:null},get:function(s){return this.data[s]},add:function(){var s;return(s=this.data).push.apply(s,arguments),this},grep:function(s){return this.data=this.data.filter(s),this},find:function(s){var n=this.data.filter(s);return 0===n.length?null:n[0]},map:function(s){return this.data=this.data.map(s),this},unique:function(){return this.data=this.data.filter(function(s,n,r){return r.indexOf(s)===n}),this},addAll:function(s,n){if(!(s instanceof a.default.util.ArrayList))throw"Unable to handle unknown object type in ArrayList.addAll";return this.data=this.data.concat(s.data),n&&this.unique(),this},pop:function(){return this.removeElementAt(this.data.length-1)},push:function(s){this.add(s)},remove:function(s){var n=this.indexOf(s);return n>=0?this.removeElementAt(n):null},insertElementAt:function(s,n){return this.data.splice(n,0,s),this},removeElementAt:function(s){var n=this.data[s];return this.data.splice(s,1),n},removeAll:function(s){var n=this;return s instanceof a.default.util.ArrayList&&(s=s.data),Array.isArray(s)&&s.forEach(function(r){n.remove(r)}),this},indexOf:function(s){return this.data.indexOf(s)},contains:function(s){return-1!==this.indexOf(s)},sort:function(s){return this.data.sort("function"==typeof s?s:function(n,r){return n[s]<r[s]?-1:n[s]>r[s]?1:0}),this},clone:function(s){var n=new a.default.util.ArrayList;if(s)for(var r=0;r<this.data.length;r++)n.data.push(this.data[r].clone());else n.data=this.data.slice(0);return n},each:function(s,n){if(void 0!==n&&!0===n)for(var r=this.data.length-1;r>=0&&!1!==s(r,this.data[r]);r--);else for(var u=0;u<this.data.length&&!1!==s(u,this.data[u]);u++);return this},overwriteElementAt:function(s,n){return this.data[n]=s,this},getPersistentAttributes:function(){return{data:this.data}},setPersistentAttributes:function(s){return this.data=s.data,this}}),a.default.util.ArrayList.EMPTY_LIST=new a.default.util.ArrayList},
1"./src/util/Base64.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.util.Base64={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ENCODED_VALS:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ENCODED_VALS_WEBSAFE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.",encodeByteArray:function(s,n){a.default.util.Base64.init();for(var r=n?a.default.util.Base64.byteToCharMapWebSafe_:a.default.util.Base64.byteToCharMap_,u=[],l=0;l<s.length;l+=3){var p=s[l],x=l+1<s.length,m=x?s[l+1]:0,g=l+2<s.length,w=g?s[l+2]:0,M=(15&m)<<2|w>>6,N=63&w;g||(N=64,x||(M=64)),u.push(r[p>>2],r[(3&p)<<4|m>>4],r[M],r[N])}return u.join("")},encode:function(s,n){return a.default.util.Base64.encodeByteArray(a.default.util.Base64.stringToByteArray(s),n)},decode:function(s,n){a.default.util.Base64.init();for(var r=n?a.default.util.Base64.charToByteMapWebSafe_:a.default.util.Base64.charToByteMap_,u=[],l=0;l<s.length;){var p=r[s.charAt(l++)],m=l<s.length?r[s.charAt(l)]:0,w=++l<s.length?r[s.charAt(l)]:0,k=++l<s.length?r[s.charAt(l)]:0;if(++l,null==p||null==m||null==w||null==k)throw Error();u.push(p<<2|m>>
14),64!=w&&(u.push(m<<4&240|w>>2),64!=k&&u.push(w<<6&192|k))}return u},stringToByteArray:function(s){for(var n=[],r=0,u=0;u<s.length;u++){for(var l=s.charCodeAt(u);l>255;)n[r++]=255&l,l>>=8;n[r++]=l}return n},init:function(){if(!a.default.util.Base64.byteToCharMap_){a.default.util.Base64.byteToCharMap_={},a.default.util.Base64.charToByteMap_={},a.default.util.Base64.byteToCharMapWebSafe_={},a.default.util.Base64.charToByteMapWebSafe_={};for(var s=0;s<a.default.util.Base64.ENCODED_VALS.length;s++)a.default.util.Base64.byteToCharMap_[s]=a.default.util.Base64.ENCODED_VALS.charAt(s),a.default.util.Base64.charToByteMap_[a.default.util.Base64.byteToCharMap_[s]]=s,a.default.util.Base64.byteToCharMapWebSafe_[s]=a.default.util.Base64.ENCODED_VALS_WEBSAFE.charAt(s),a.default.util.Base64.charToByteMapWebSafe_[a.default.util.Base64.byteToCharMapWebSafe_[s]]=s}}}},
1"./src/util/Color.js":function(h,y,c){"use strict";var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(s){return typeof s}:function(s){return s&&"function"==typeof Symbol&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},v=function t(s){return s&&s.__esModule?s:{default:s}}(c("./src/packages.js"));v.default.util.Color=Class.extend({init:function(n,r,u,l){if(this.hashString=null,null==n)this.hashString="none";else if(n instanceof v.default.util.Color)"none"===n.hashString?this.hashString="none":(this.red=n.red,this.green=n.green,this.blue=n.blue,this.alpha=n.alpha);else if("string"==typeof n)if("none"===n)this.hashString="none";else{var p=this.hex2rgb(n);this.red=p[0],this.green=p[1],this.blue=p[2],this.alpha=p[3]}else"object"===(void 0===n?"undefined":d(n))&&"number"==typeof n.red?(this.red=n.red,this.green=n.green,this.blue=n.blue,this.alpha=n.alpha):n instanceof Array&&3===n.length||"object"===(void 0===n?"undefined":d(n))&&"number"==typeof n.length&&3===n.length?(this.red=n[0],this.green=n[1],this.blue=n[2],this.alpha=n[3]):(this.red=parseInt(n),this.green=parseInt(r),this.blue=parseInt(u),this.alpha=void 0===l?1:parseFloat(l))},getHTMLStyle:function(){return void 0===this.red?"rgba(0,0,0,0)":"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"},getRed:function(){return this.red},getGreen:function(){return this.green},getBlue:function(){return this.blue},getAlpha:function(){return this.alpha},getIdealTextColor:function(){return 255-(.299*this.red+.587*this.green+.114*this.blue)<105?new v.default.util.Color(0,0,0):new v.default.util.Color(255,255,255)},hex2rgb:function(n){if(!n)return[0,0,0,1];if("transparent"===n.toLowerCase())return[0,0,0,0];if("#"===n[0])return n.length<7&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+(n.length>4?n[4]+n[4]:"")),[parseInt(n.substr(1,2),16),parseInt(n.substr(3,2),16),parseInt(n.substr(5,2),16),n.length>7?parseInt(n.substr(7,2),16)/255:1];if(-1===n.indexOf("rgb")){var r=document.body.appendChild(document.createElement("fictum")),u="rgb(1, 2, 3)";if(r.style.color=u,r.style.color!==u)return[0,0,0,1];if(r.style.color=n,r.style.color===u||""===r.style.color)return[0,0,0,1];n=getComputedStyle(r).color,document.body.removeChild(r)}return 0===n.indexOf("rgb")?(-1===n.indexOf("rgba")&&(n+=",1"),n.match(/[\.\d]+/g).map(function(l){return+l})):void 0},hex:function(){return this.int2hex(this.red)+this.int2hex(this.green)+this.int2hex(this.blue)},rgba:function(){return this.getHTMLStyle()},hash:function(){return null===this.hashString&&(this.hashString="#"+this.hex()),this.hashString},int2hex:function(n){return n=Math.round(Math.min(Math.max(0,n),255)),"0123456789ABCDEF".charAt((n-n%16)/16)+"0123456789ABCDEF".charAt(n%16)},darker:function(n){if("none"===this.hashString)return this;n=void 0===n?.1:n;var r=parseInt(Math.round(this.getRed()*(1-n))),u=parseInt(Math.round(this.getGreen()*(1-n))),l=parseInt(Math.round(this.getBlue()*(1-n)));return r<0?r=0:r>255&&(r=255),u<0?u=0:u>255&&(u=255),l<0?l=0:l>255&&(l=255),new v.default.util.Color(r,u,l,this.alpha)},lighter:function(n){if("none"===this.hashString)return this;n=void 0===n?.1:n;var r=parseInt(Math.round(this.getRed()*(1+n))),u=parseInt(Math.round(this.getGreen()*(1+n))),l=parseInt(Math.round(this.getBlue()*(1+n)));return r<0?r=0:r>255&&(r=255),u<0?u=0:u>255&&(u=255),l<0?l=0:l>255&&(l=255),new v.default.util.Color(r,u,l,this.alpha)},fadeTo:function(n,r){var u=Math.floor(this.red+r*(n.red-this.red)+.5),l=Math.floor(this.green+r*(n.green-this.green)+.5),p=Math.floor(this.blue+r*(n.blue-this.blue)+.5),x=Math.floor(this.alpha+r*(n.alpha-this.alpha)+.5);return new v.default.util.Color(u,l,p,x)},equals:function(n){return n instanceof v.default.util.Color&&this.rgba()===n.rgba()}}),h.exports=v.default.util.Color},
1"./src/util/Debug.js":function(h,y,c){"use strict";window.debug=function(){for(var s,n,d=this,a=Array.prototype.slice,v=console,t={},r=9,u=["error","warn","info","debug","log"],l="assert clear count dir dirxml exception group groupCollapsed groupEnd profile profileEnd table time timeEnd trace".split(" "),p=l.length,x=[];--p>=0;)!function(w){t[w]=function(){0!==r&&v&&v[w]&&v[w].apply(v,arguments)}}(l[p]);for(p=u.length;--p>=0;)!function(w,C){t[C]=function(){var k=a.call(arguments),M=[C].concat(k);x.push(M),m(M),v&&g(w)&&(v.firebug?v[C].apply(d,k):v[C]?v[C](k):v.log(k))}}(p,u[p]);function m(w){s&&(n||!v||!v.log)&&s.apply(d,w)}function g(w){return r>0?r>w:u.length+r<=w}return t.setLevel=function(w){r="number"==typeof w?w:9},t.setCallback=function(){var w=a.call(arguments),C=x.length,k=C;for(s=w.shift()||null,n="boolean"==typeof w[0]&&w.shift(),k-="number"==typeof w[0]?w.shift():C;k<C;)m(x[k++])},t}()},
1"./src/util/JSONUtil.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.util.JSON={set:function(s,n,r){if(n&&""!==n){for(var l=n.match(/[\w-]+|\[\]|([^\[[\w]\]]|["'](.*?)['"])/g),p=s,x=void 0,m=null,g=null,w=function(k,M,N){"[]"===M?k.push(N):k[M]=N};l.length>0;)x=l.shift().replace(/["']/g,""),isNaN(+x)&&"[]"!==x?"string"==typeof x&&($.isPlainObject(p)||w(m,g,p={})):p.constructor!==Array&&w(m,g,p=[]),m=p,g=x,p=p[x];w(m,g,r)}},get:function(s,n){if(n){for(var u=n.match(/[\w-]+|\[\]|([^\[[\w]\]]|["'](.*?)['"])/g);null!==s&&u.length>0;){if(!s.propertyIsEnumerable(u[0].replace(/"/g,"")))return;s=s[u.shift().replace(/"/g,"")]}return s}},diff:function(s,n){var r={};for(var u in s){var l=s[u],p=n[u];l!==p&&(l.equals&&l.equals(p)||(r[u]=s[u]))}return r},flatDiff:function(s,n){var r={};for(var u in s)s[u]!==n[u]&&(r[u]=s[u]);return r},ensureDefault:function(s,n,r){s.hasOwnProperty(n)||(s[n]=r)}},h.exports=a.default.util.JSON},
1"./src/util/Polyfill.js":function(h,y,c){"use strict";document.ontouchmove=function(d){d.preventDefault()}},
1"./src/util/SVGUtil.js":function(h,y,c){"use strict";Raphael.fn.polygon=function(d){for(var a=["M"],v=d.split(" "),t=0;t<v.length;t++){for(var s=v[t].split(","),n=0;n<s.length;n++){var r=parseFloat(s[n]);isNaN(r)||a.push(r)}0==t&&a.push("L")}return a.push("Z"),this.path(a)}},
1"./src/util/UUID.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.util.UUID={create:function(){var s=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return s()+s()+"-"+s()+"-"+s()+"-"+s()+"-"+s()+s()+s()}},h.exports=a.default.util.UUID},
1"./src/util/extend.js":function(h,y,c){"use strict";(function(d){var a=function(){var t={},s=!1,n=0,r=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(s=arguments[0],n++);for(var u=function(x){for(var m in x)Object.prototype.hasOwnProperty.call(x,m)&&(t[m]=s&&"[object Object]"===Object.prototype.toString.call(x[m])?extend(!0,t[m],x[m]):x[m])};n<r;n++){var l=arguments[n];u(l)}return t};h.exports=a,d.extend=a}).call(this,c("./node_modules/webpack/buildin/global.js"))},
1"./src/util/raphael_ext.js":function(h,y,c){"use strict";Raphael.el.isVisible=function(){return"none"!==this.node.style.display}},
1"./src/util/spline/BezierSpline.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.util.spline.BezierSpline=a.default.util.spline.Spline.extend({NAME:"draw2d.util.spline.BezierSpline",init:function(){this._super()},generate:function(s,n){var r=s.getSize(),u=new a.default.util.ArrayList;u.add(this.p(0,0,s));for(var l=0;l<r-3;l+=3)for(var p=1;p<=n;p++)u.add(this.p(l,p/n,s));return u},p:function(s,n,r){for(var u=0,l=0,p=s,x=0;x<=3;x++){var m=this.blend(x,n),g=r.get(p++);u+=m*g.x,l+=m*g.y}return new a.default.geo.Point(u,l)},blend:function(s,n){return 0==s?(1-n)*(1-n)*(1-n):1==s?3*n*(1-n)*(1-n):2==s?3*n*n*(1-n):n*n*n}})},
1"./src/util/spline/CatmullRomSpline.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.util.spline.CatmullRomSpline=a.default.util.spline.CubicSpline.extend({NAME:"draw2d.util.spline.CatmullRomSpline",init:function(){this._super()},blend:function(s,n){return-2==s?((2-n)*n-1)*n/2:-1==s?((3*n-5)*n*n+2)/2:0==s?((-3*n+4)*n+1)*n/2:(n-1)*n*n/2}})},
1"./src/util/spline/CubicSpline.js":function(h,y,c){"use strict";var a=function v(t){return t&&t.__esModule?t:{default:t}}(c("./src/packages.js"));a.default.util.spline.CubicSpline=a.default.util.spline.Spline.extend({NAME:"draw2d.util.spline.CubicSpline",init:function(){this._super()},generate:function(s,n){var r=new a.default.util.ArrayList;r.add(s.get(0)),r.addAll(s),r.add(s.get(s.getSize()-1));var u=r.getSize(),l=new a.default.util.ArrayList;l.add(s.get(0)),l.add(this.p(1,0,r));for(var p=1;p<u-2;p++)for(var x=1;x<=n;x++)l.add(this.p(p,x/n,r));return l.add(s.get(s.getSize()-1)),l},p:function(s,n,r){for(var u=0,l=0,p=s-1,x=-2;x<=1;x++){var m=this.blend(x,n),g=r.get(p++);u+=m*g.x,l+=m*g.y}return new a.default.geo.Point(u,l)},blend:function(s,n){return-2===s?(((3-n)*n-3)*n+1)/6:-1===s?((3*n-6)*n*n+4)/6:0===s?(((-3*n+3)*n+3)*n+1)/6:n*n*n/6}})},
1"./src/util/spline/Spline.js":function(h,y,c){"use strict";(function v(t){return t&&t.__esModule?t:{default:t}})(c("./src/packages.js")).default.util.spline.Spline=Class.extend({NAME:"draw2d.util.spline.Spline",init:function(){},generate:function(s,n){throw"inherit classes must implement the method 'draw2d.util.spline.Spline.generate()'"}})
vendor: 6 bytes, line 1
1}})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.