(function(){var _p={r:function(t){if(_p[t].inited){return _p[t].value}if(typeof _p[t].value==="function"){var e={exports:{}},n=_p[t].value(null,e.exports,e);_p[t].inited=true;_p[t].value=n;if(n!==undefined){return n}else{for(var r in e.exports){if(e.exports.hasOwnProperty(r)){_p[t].inited=true;_p[t].value=e.exports;return e.exports}}}}else{_p[t].inited=true;return _p[t].value}}};_p[0]={value:function(t){function e(t){var e=parseFloat(t,10);if(/ms/.test(t)){return e}if(/s/.test(t)){return e*1e3}if(/min/.test(t)){return e*60*1e3}return e}var n=_p.r(8);var r=_p.r(1);var i=_p.r(11).createClass("Animator",{constructor:function(t,e,n){if(arguments.length==1){var r=arguments[0];this.beginValue=r.beginValue;this.finishValue=r.finishValue;this.setter=r.setter}else{this.beginValue=t;this.finishValue=e;this.setter=n}},start:function(t,n,r,i,s){if(arguments.length===2&&typeof n=="object"){r=n.easing;i=n.delay;s=n.callback;n=n.duration}if(arguments.length===4&&typeof i=="function"){s=i;i=0}var a=this.create(t,n,r,s);i=e(i);if(i>0){setTimeout(function(){a.play()},i)}else{a.play()}return a},create:function(t,s,a,o){var u;s=s&&e(s)||i.DEFAULT_DURATION;a=a||i.DEFAULT_EASING;if(typeof a=="string"){a=r[a]}u=new n(this,t,s,a);if(typeof o=="function"){u.on("finish",o)}return u},reverse:function(){return new i(this.finishValue,this.beginValue,this.setter)}});i.DEFAULT_DURATION=300;i.DEFAULT_EASING="linear";var s=_p.r(60);_p.r(11).extendClass(s,{animate:function(t,e,n,r,i){var s=this._KityAnimateQueue=this._KityAnimateQueue||[];var a=t.create(this,e,n,i);function o(){s.shift();if(s.length){setTimeout(s[0].t.play.bind(s[0].t),s[0].d)}}a.on("finish",o);s.push({t:a,d:r});if(s.length==1){setTimeout(a.play.bind(a),r)}return this},timeline:function(){return this._KityAnimateQueue[0].t},stop:function(){var t=this._KityAnimateQueue;if(t){while(t.length){t.shift().t.stop()}}return this}});return i}};_p[1]={value:function(t,e,n){var r={linear:function(t,e,n,r){return n*(t/r)+e},swing:function(t,e,n,i){return r.easeOutQuad(t,e,n,i)},ease:function(t,e,n,i){return r.easeInOutCubic(t,e,n,i)},easeInQuad:function(t,e,n,r){return n*(t/=r)*t+e},easeOutQuad:function(t,e,n,r){return-n*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,n,r){if((t/=r/2)<1)return n/2*t*t+e;return-n/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,r){return n*(t/=r)*t*t+e},easeOutCubic:function(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,n,r){if((t/=r/2)<1)return n/2*t*t*t+e;return n/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,n,r){return n*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,n,r){return-n*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,n,r){if((t/=r/2)<1)return n/2*t*t*t*t+e;return-n/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,n,r){return n*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,n,r){return n*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,n,r){if((t/=r/2)<1)return n/2*t*t*t*t*t+e;return n/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,n,r){return-n*Math.cos(t/r*(Math.PI/2))+n+e},easeOutSine:function(t,e,n,r){return n*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,n,r){return-n/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,n,r){return t===0?e:n*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,n,r){return t==r?e+n:n*(-Math.pow(2,-10*t/r)+1)+e},easeInOutExpo:function(t,e,n,r){if(t===0)return e;if(t==r)return e+n;if((t/=r/2)<1)return n/2*Math.pow(2,10*(t-1))+e;return n/2*(-Math.pow(2,-10*--t)+2)+e},easeInCirc:function(t,e,n,r){return-n*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,n,r){return n*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,n,r){if((t/=r/2)<1)return-n/2*(Math.sqrt(1-t*t)-1)+e;return n/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,n,r){var i=1.70158;var s=0;var a=n;if(t===0)return e;if((t/=r)==1)return e+n;if(!s)s=r*.3;if(a200){n=1e3/60}t.dur=n;t.elapsed+=n;t.time=e;t.action.call(null,t);t.index++}e.requestFrame=u;e.releaseFrame=h}};_p[3]={value:function(t){var e=_p.r(0);var n=_p.r(34);var r=_p.r(46);var i=_p.r(60);var s=_p.r(11).createClass("MotionAnimator",{base:e,constructor:function(t,e){var i=this;this.callBase({beginValue:0,finishValue:1,setter:function(t,e){var s=i.motionPath instanceof r?i.motionPath.getPathData():i.motionPath;var a=n.pointAtPath(s,e);t.setTranslate(a.x,a.y);if(this.doRotate)t.setRotate(a.tan.getAngle())}});this.doRotate=e;this.motionPath=t}});_p.r(11).extendClass(i,{motion:function(t,e,n,r,i){return this.animate(new s(t),e,n,r,i)}});return s}};_p[4]={value:function(t){var e=_p.r(0);var n=_p.r(11).createClass("OpacityAnimator",{base:e,constructor:function(t){this.callBase({beginValue:function(t){return t.getOpacity()},finishValue:t,setter:function(t,e){t.setOpacity(e)}})}});var r=_p.r(60);_p.r(11).extendClass(r,{fxOpacity:function(t,e,r,i,s){return this.animate(new n(t),e,r,i,s)},fadeTo:function(){return this.fxOpacity.apply(this,arguments)},fadeIn:function(){return this.fxOpacity.apply(this,[1].concat([].slice.call(arguments)))},fadeOut:function(){return this.fxOpacity.apply(this,[0].concat([].slice.call(arguments)))}});return n}};_p[5]={value:function(t){var e=_p.r(0);var n=_p.r(34);var r=_p.r(11).createClass("OpacityAnimator",{base:e,constructor:function(t){this.callBase({beginValue:function(t){this.beginPath=t.getPathData();return 0},finishValue:1,setter:function(e,r){e.setPathData(n.pathTween(this.beginPath,t,r))}})}});var i=_p.r(46);_p.r(11).extendClass(i,{fxPath:function(t,e,n,i,s){return this.animate(new r(t),e,n,i,s)}});return r}};_p[6]={value:function(t){var e=_p.r(0);var n=_p.r(11).createClass("RotateAnimator",{base:e,constructor:function(t){this.callBase({beginValue:0,finishValue:t,setter:function(t,e,n){var r=n.getDelta();t.rotate(r,ax,ay)}})}});var r=_p.r(60);_p.r(11).extendClass(r,{fxRotate:function(t,e,r,i,s){return this.animate(new n(t),e,r,i,s)}});return n}};_p[7]={value:function(t){var e=_p.r(0);var n=_p.r(11).createClass("ScaleAnimator",{base:e,constructor:function(t,e){this.callBase({beginValue:0,finishValue:1,setter:function(n,r,i){var s=i.getDelta();var a=Math.pow(t,s);var o=Math.pow(e,s);n.scale(o,a)}})}});var r=_p.r(60);_p.r(11).extendClass(r,{fxScale:function(t,e,r,i,s,a){return this.animate(new n(t,e),r,i,s,a)}});return n}};_p[8]={value:function(t){var e=_p.r(33);var n=_p.r(12);var r=_p.r(2);function i(t,e,r){return n.paralle(t,e,function(t,e){return t+(e-t)*r})}function s(t,e){return n.paralle(t,e,function(t,e){return e-t})}function a(t,e,n){this.timeline=t;this.target=t.target;this.type=e;for(var r in n){if(n.hasOwnProperty(r)){this[r]=n[r]}}}var o=_p.r(11).createClass("Timeline",{mixins:[e],constructor:function(t,e,n,r){this.callMixin();this.target=e;this.time=0;this.duration=n;this.easing=r;this.animator=t;this.beginValue=t.beginValue;this.finishValue=t.finishValue;this.setter=t.setter;this.status="ready"},nextFrame:function(t){if(this.status!="playing"){return}this.time+=t.dur;this.setValue(this.getValue());if(this.time>=this.duration){this.timeUp()}t.next()},getPlayTime:function(){return this.rollbacking?this.duration-this.time:this.time},getTimeProportion:function(){return this.getPlayTime()/this.duration},getValueProportion:function(){return this.easing(this.getPlayTime(),0,1,this.duration)},getValue:function(){var t=this.beginValue;var e=this.finishValue;var n=this.getValueProportion();return i(t,e,n)},setValue:function(t){this.lastValue=this.currentValue;this.currentValue=t;this.setter.call(this.target,this.target,t,this)},getDelta:function(){this.lastValue=this.lastValue===undefined?this.beginValue:this.lastValue;return s(this.lastValue,this.currentValue)},play:function(){var t=this.status;this.status="playing";switch(t){case"ready":if(n.isFunction(this.beginValue)){this.beginValue=this.beginValue.call(this.target,this.target)}if(n.isFunction(this.finishValue)){this.finishValue=this.finishValue.call(this.target,this.target)}this.time=0;this.setValue(this.beginValue);this.frame=r.requestFrame(this.nextFrame.bind(this));break;case"finished":case"stoped":this.time=0;this.frame=r.requestFrame(this.nextFrame.bind(this));break;case"paused":this.frame.next()}this.fire("play",new a(this,"play",{lastStatus:t}));return this},pause:function(){this.status="paused";this.fire("pause",new a(this,"pause"));r.releaseFrame(this.frame);return this},stop:function(){this.status="stoped";this.setValue(this.finishValue);this.rollbacking=false;this.fire("stop",new a(this,"stop"));r.releaseFrame(this.frame);return this},timeUp:function(){if(this.repeatOption){this.time=0;if(this.rollback){if(this.rollbacking){this.decreaseRepeat();this.rollbacking=false}else{this.rollbacking=true;this.fire("rollback",new a(this,"rollback"))}}else{this.decreaseRepeat()}if(!this.repeatOption){this.finish()}else{this.fire("repeat",new a(this,"repeat"))}}else{this.finish()}},finish:function(){this.setValue(this.finishValue);this.status="finished";this.fire("finish",new a(this,"finish"));r.releaseFrame(this.frame)},decreaseRepeat:function(){if(this.repeatOption!==true){this.repeatOption--}},repeat:function(t,e){this.repeatOption=t;this.rollback=e;return this}});o.requestFrame=r.requestFrame;o.releaseFrame=r.releaseFrame;return o}};_p[9]={value:function(t){var e=_p.r(0);var n=_p.r(11).createClass("TranslateAnimator",{base:e,constructor:function(t,e){this.callBase({x:0,y:0},{x:t,y:e},function(t,e,n){var r=n.getDelta();t.translate(r.x,r.y)})}});var r=_p.r(60);_p.r(11).extendClass(r,{fxTranslate:function(t,e,r,i,s,a){return this.animate(new n(t,e),r,i,s,a)}});return n}};_p[10]={value:function(){var t=function(){var t=navigator.userAgent.toLowerCase(),e=window.opera,n;n={platform:function(t){var e={win32:"Win",macintel:"Mac"};return e[t.platform.toLowerCase()]||"Lux"}(navigator),lb:function(t){if(~t.indexOf("lbbrowser")){return~t.indexOf("msie")?"ie":"chrome"}return false}(t),sg:/se[\s\S]+metasr/.test(t),bd:!!~t.indexOf("bidubrowser"),edge:!!~t.indexOf("edge"),chrome:false,opera:!!e&&e.version,webkit:t.indexOf(" applewebkit/")>-1,mac:t.indexOf("macintosh")>-1};n.ie=!n.lb&&/(msie\s|trident.*rv:)([\w.]+)/.test(t);n.gecko=navigator.product=="Gecko"&&!n.webkit&&!n.opera&&!n.ie;var r=0;if(n.ie){r=(t.match(/(msie\s|trident.*rv:)([\w.]+)/)[2]||0)*1;n.ie11Compat=document.documentMode==11;n.ie9Compat=document.documentMode==9}if(n.gecko){var i=t.match(/rv:([\d\.]+)/);if(i){i=i[1].split(".");r=i[0]*1e4+(i[1]||0)*100+(i[2]||0)*1}}if(/chrome\/(\d+\.\d)/i.test(t)&&!n.bd&&!n.opera&&!n.lb&&!n.sg&&!n.edge){n.chrome=+RegExp["$1"]}if(/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(t)&&!/chrome/i.test(t)){n.safari=+(RegExp["$1"]||RegExp["$2"])}if(n.opera)r=parseFloat(e.version());if(n.webkit)r=parseFloat(t.match(/ applewebkit\/(\d+)/)[1]);if(n.bd)r=parseFloat(t.match(/bidubrowser\/(\d+)/)[1]);if(n.opera)r=parseFloat(t.match(/opr\/(\d+)/)[1]);if(n.edge)r=parseFloat(t.match(/edge\/(\d+)/)[1]);n.version=r;n.isCompatible=!n.mobile&&(n.ie&&r>=6||n.gecko&&r>=10801||n.opera&&r>=9.5||n.air&&r>=1||n.webkit&&r>=522||false);return n}();return t}};_p[11]={value:function(require,exports){function Class(){}exports.Class=Class;Class.__KityClassName="Class";Class.prototype.base=function(t){var e=arguments.callee.caller;var n=e.__KityMethodClass.__KityBaseClass.prototype[t];return n.apply(this,Array.prototype.slice.call(arguments,1))};Class.prototype.callBase=function(){var t=arguments.callee.caller;var e=t.__KityMethodClass.__KityBaseClass.prototype[t.__KityMethodName];return e.apply(this,arguments)};Class.prototype.mixin=function(t){var e=arguments.callee.caller;var n=e.__KityMethodClass.__KityMixins;if(!n){return this}var r=n[t];return r.apply(this,Array.prototype.slice.call(arguments,1))};Class.prototype.callMixin=function(){var t=arguments.callee.caller;var e=t.__KityMethodName;var n=t.__KityMethodClass.__KityMixins;if(!n){return this}var r=n[e];if(e=="constructor"){for(var i=0,s=r.length;i=s||i===undefined){return i}}else{return undefined}}},getValue:function(t,e){return t!==undefined?t:e},flatten:function e(n){var r=[],i=n.length,s;for(s=0;sn||i>s)return new r;return new r(e,i,n-e,s-i)},expand:function(t,e,n,i){if(arguments.length<1){return new r(this)}if(arguments.length<2){e=t}if(arguments.length<3){n=t}if(arguments.length<4){i=e}var s=this.left-i,a=this.top-t,o=this.width+e,u=this.height+t;return new r(s,a,o,u)},valueOf:function(){return[this.x,this.y,this.width,this.height]},toString:function(){return this.valueOf().join(" ")},isEmpty:function(){return!this.width||!this.height}});r.parse=function(t){if(typeof t=="string"){return r.parse(t.split(/[\s,]+/).map(parseFloat))}if(t instanceof Array){return new r(t[0],t[1],t[2],t[3])}if("x"in t)return new r(t);return null};return r}};_p[26]={value:function(t,e,n){return _p.r(11).createClass("Circle",{base:_p.r(32),constructor:function(t,e,n){this.callBase(t,t,e,n)},getRadius:function(){return this.getRadiusX()},setRadius:function(t){return this.callBase(t,t)}})}};_p[27]={value:function(t,e,n){var r=_p.r(11);var i=_p.r(60);var s=r.createClass("Clip",{base:i,mixins:[_p.r(61)],constructor:function(t){this.callBase("clipPath",t)},clip:function(t){t.getNode().setAttribute("clip-path",this);return this}});r.extendClass(i,{clipWith:function(t){if(t instanceof i){t=new s(t.getPaper()).addShape(t)}t.clip(this);return this}});return s}};_p[28]={value:function(t,e,n){var r=_p.r(12),i=_p.r(64),s={},a=_p.r(11).createClass("Color",{constructor:function(){var t=null;if(typeof arguments[0]==="string"){t=s.parseToValue(arguments[0]);if(t===null){t={r:0,g:0,b:0,h:0,s:0,l:0,a:1}}}else{t={r:arguments[0]|0,g:arguments[1]|0,b:arguments[2]|0,a:arguments[3]===undefined?1:parseFloat(arguments[3])};t=s.overflowFormat(t);t=r.extend(t,s.rgbValueToHslValue(t))}this._color=t},set:function(t,e){var n=null;if(!a._MAX_VALUE[t]){throw new Error("Color set(): Illegal parameter")}if(t!=="a"){e=Math.floor(e)}if(t=="h"){e=(e+360)%360}this._color[t]=Math.max(a._MIN_VALUE[t],Math.min(a._MAX_VALUE[t],e));if("rgb".indexOf(t)!==-1){this._color=r.extend(this._color,s.rgbValueToHslValue(this._color))}else if("hsl".indexOf(t)!==-1){this._color=r.extend(this._color,s.hslValueToRGBValue(this._color))}return this},inc:function(t,e){e=this.get(t)+e;if(t=="h"){e=(e+360)%360}else{e=Math.min(a._MAX_VALUE[t],e);e=Math.max(a._MIN_VALUE[t],e)}return this.clone().set(t,e)},dec:function(t,e){return this.inc(t,-e)},clone:function(){return new a(this.toRGBA())},get:function(t){if(!a._MAX_VALUE[t]){return null}return this._color[t]},getValues:function(){return r.clone(this._color)},valueOf:function(){return this.getValues()},toRGB:function(){return s.toString(this._color,"rgb")},toRGBA:function(){return s.toString(this._color,"rgba")},toHEX:function(){return s.toString(this._color,"hex")},toHSL:function(){return s.toString(this._color,"hsl")},toHSLA:function(){return s.toString(this._color,"hsla")},toString:function(){if(this._color.a===1){return this.toRGB()}return this.toRGBA()}});r.extend(a,{_MAX_VALUE:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},_MIN_VALUE:{r:0,g:0,b:0,h:0,s:0,l:0,a:0},R:"r",G:"g",B:"b",H:"h",S:"s",L:"l",A:"a",parse:function(t){var e;if(r.isString(t)){e=s.parseToValue(t)}if(r.isObject(t)&&"r"in t){e=t}if(e===null){return new a}return new a(e.r,e.g,e.b,e.a)},createHSL:function(t,e,n){return a.createHSLA(t,e,n,1)},createHSLA:function(t,e,n,r){var i=null;e+="%";n+="%";i=["hsla("+t,e,n,r+")"];return a.parse(i.join(", "))},createRGB:function(t,e,n){return a.createRGBA(t,e,n,1)},createRGBA:function(t,e,n,r){return new a(t,e,n,r)}});r.extend(s,{parseToValue:function(t){var e={};t=i.EXTEND_STANDARD[t]||i.COLOR_STANDARD[t]||t;if(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t)){e=s.hexToValue(t)}else if(/^(rgba?)/i.test(t)){e=s.rgbaToValue(t)}else if(/^(hsla?)/i.test(t)){e=s.hslaToValue(t)}else{return null}return s.overflowFormat(e)},hexToValue:function(t){var e={},n=["r","g","b"]; if(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t)){t=RegExp.$1.split("");r.each(n,function(n,r){if(t.length===3){e[n]=s.toNumber(t[r]+t[r])}else{e[n]=s.toNumber(t[r*2]+t[r*2+1])}});e=r.extend(e,s.rgbValueToHslValue(e));e.a=1;return e}return null},rgbaToValue:function(t){var e={},n=false,i=["r","g","b"];if(/^(rgba?)/i.test(t)){n=RegExp.$1.length===4;t=t.replace(/^rgba?/i,"").replace(/\s+/g,"").replace(/[^0-9,.]/g,"").split(",");r.each(i,function(n,r){e[n]=t[r]|0});e=r.extend(e,s.rgbValueToHslValue(e));e.a=n?parseFloat(t[3]):1;return e}return null},hslaToValue:function(t){var e={},n=false;if(/^(hsla?)/i.test(t)){n=RegExp.$1.length===4;t=t.replace(/^hsla?/i,"").replace(/\s+/g,"").replace(/[^0-9,.]/g,"").split(",");e.h=t[0]|0;e.s=t[1]|0;e.l=t[2]|0;e=r.extend(e,s.hslValueToRGBValue(e));e=s.hslValueToRGBValue(e);e.a=n?parseFloat(t[3]):1;return e}return null},hslValueToRGBValue:function(t){function e(t,e,n){if(n<0){n+=1}else if(n>1){n-=1}if(6*n<1){return t+(e-t)*6*n}else if(2*n<1){return e}else if(3*n<2){return t+(e-t)*((2/3-n)*6)}return t}var n=null,i=null,s={};t=r.extend({},t);t.h=t.h/360;t.s=t.s/100;t.l=t.l/100;if(t.s===0){s.r=s.g=s.b=t.l}else{if(t.l<.5){n=t.l*(1+t.s)}else{n=t.l+t.s-t.l*t.s}i=2*t.l-n;s.r=e(i,n,t.h+1/3);s.g=e(i,n,t.h);s.b=e(i,n,t.h-1/3)}s.r=Math.min(Math.round(s.r*255),255);s.g=Math.min(Math.round(s.g*255),255);s.b=Math.min(Math.round(s.b*255),255);return s},rgbValueToHslValue:function(t){var e=null,n=null,i={};t=r.extend({},t);t.r=t.r/255;t.g=t.g/255;t.b=t.b/255;e=Math.max(t.r,t.g,t.b);n=Math.min(t.r,t.g,t.b);if(e===n){i.h=0}else if(e===t.r){if(t.g>=t.b){i.h=60*(t.g-t.b)/(e-n)}else{i.h=60*(t.g-t.b)/(e-n)+360}}else if(e===t.g){i.h=60*(t.b-t.r)/(e-n)+120}else if(e===t.b){i.h=60*(t.r-t.g)/(e-n)+240}i.l=(e+n)/2;if(i.l===0||e===n){i.s=0}else if(i.l>0&&i.l<=.5){i.s=(e-n)/(e+n)}else{i.s=(e-n)/(2-e-n)}i.h=Math.round(i.h);i.s=Math.round(i.s*100);i.l=Math.round(i.l*100);return i},toString:function(t,e){var n=[];t=r.extend({},t);if(e.indexOf("hsl")!==-1){t.s+="%";t.l+="%"}if(e!=="hex"){r.each(e.split(""),function(e){n.push(t[e])});return(e+"("+n.join(", ")+")").toLowerCase()}else{n.push(s.toHexValue(+t.r));n.push(s.toHexValue(+t.g));n.push(s.toHexValue(+t.b));return("#"+n.join("")).toLowerCase()}},toNumber:function(t){return Number("0x"+t)|0},toHexValue:function(t){var e=t.toString(16);return e.length===1?"0"+e:e},overflowFormat:function(t){var e=r.extend({},t),n="rgba";r.each(n.split(""),function(t){if(!e.hasOwnProperty(t)){return}e[t]=Math.min(a._MAX_VALUE[t],e[t]);e[t]=Math.max(a._MIN_VALUE[t],e[t])});return e}});return a}};_p[29]={value:function(t,e,n){function r(){this.container.removeItem(this);return this}return _p.r(11).createClass("Container",{getItems:function(){return this.items||(this.items=[])},getItem:function(t){return this.getItems()[t]},getFirstItem:function(){return this.getItem(0)},getLastItem:function(){return this.getItem(this.getItems().length-1)},indexOf:function(t){return this.getItems().indexOf(t)},eachItem:function(t){var e=this.getItems(),n=e.length,r;for(r=0;r=0&&e=1e3){delete o[u.shift()]}u.push(a);o[a]=t.apply(e,s);return n?n(o[a]):o[a]}return i}s.pathToString=function(t){t=t||this;if(typeof t=="string")return t;if(t instanceof Array){t=e.flatten(t);return t.join(",").replace(/,?([achlmqrstvxz]),?/gi,"$1")}};s.parsePathString=f(function(t){var e=[];t.replace(a,function(t,n,r){var i=[],s=n.toLowerCase();r.replace(o,function(t,e){if(e)i.push(+e)});if(s=="m"&&i.length>2){e.push([n].concat(i.splice(0,2)));s="l";n=n=="m"?"l":"L"}if(s=="r"){e.push([n].concat(i))}else{while(i.length>=u[s]){e.push([n].concat(i.splice(0,u[s])));if(!u[s]){break}}}});e.isUniform=true;e.toString=s.pathToString;return e});s.pathToAbsolute=f(function(t){var e=t.isUniform?t:s.parsePathString(s.pathToString(t));var n=[],r=0,i=0,a=0,o=0,u=0;var h,f,c,l,p,d,g,v;if(e[0][0]=="M"){r=+e[0][1];i=+e[0][2];a=r;o=i;u++;n[0]=["M",r,i]}for(h,f,c=u,d=e.length;c1){x=f.sqrt(x);n=x*n;r=x*r}C=n*n;P=r*r;T=(s==a?-1:1)*f.sqrt(p((C*P-C*A*A-P*w*w)/(C*A*A+P*w*w)));M=T*n*A/r+(t+o)/2;E=T*-r*w/n+(e+u)/2;S=f.asin(((e-E)/r).toFixed(9));O=f.asin(((u-E)/r).toFixed(9));S=tO){S=S-l*2}if(!a&&O>S){O=O-l*2}}else{S=h[0];O=h[1];M=h[2];E=h[3]}R=O-S;if(p(R)>d){I=O;N=o;B=u;O=S+d*(a&&O>S?1:-1);o=M+n*f.cos(O);u=E+r*f.sin(O);v=c(o,u,n,r,i,0,a,N,B,[O,I,M,E])}R=O-S;k=f.cos(S);V=f.sin(S);L=f.cos(O);F=f.sin(O);D=f.tan(R/4);U=4/3*n*D;H=4/3*r*D;G=[t,e];K=[t+U*V,e-H*k];X=[o+U*F,u-H*L];z=[o,u];K[0]=2*G[0]-K[0];K[1]=2*G[1]-K[1];if(h){return[K,X,z].concat(v)}else{v=[K,X,z].concat(v).join().split(",");j=[];for(q=0,Y=v.length;q1){return s.subPath(t,1,n).concat(s.subPath(t,e-1))}if(!t.isCurve){t=s.pathToCurve(t)}var i=d(t);var a=i.totalLength;var o=a*e,u=a*(n||0);var h=[];var f,c,l,p,g;var v;var _,m,y;for(f=0,c=t.length;fp){v=_.slice(_.length-2);continue}else if(u>=l){m=s.subBezier(_,Math.min((o-l)/g,1),(u-l)/g);y=true;v=m.slice(0,2);h.push(["M"].concat(m.slice(0,2)));h.push(["C"].concat(m.slice(2)))}else if(o>=p){h.push(t[f].slice())}else if(o>=l){m=s.subBezier(_,(o-l)/g);h.push(["C"].concat(m.slice(2)));y=false}else{break}v=_.slice(_.length-2)}h.isAbsolute=true;h.isCurve=true;h.isUniform=true;h.toString=s.pathToString;return h};s.pointAtPath=function(t,e){if(!t.isCurve){t=s.pathToCurve(t)}var i=s.subPath(t,e);var a=i[i.length-1][0]=="Z"?i[i.length-2]:i[i.length-1];a=a.slice(1);var o=n.parse(a.slice(4)),u=n.parse(a.slice(2,4));o.tan=r.fromPoints(u,o).normalize();return o};s.pathLength=f(function(t){if(!t.isCurve){t=s.pathToCurve(t)}var e=d(t);return e.totalLength});s.pathKeyPoints=f(function(t){var e,n,r,i;if(!t.isCurve){t=s.pathToCurve(t)}i=[];for(e=0,n=t.length;e2){t.close()}return this}})}};_p[53]={value:function(t,e,n){return _p.r(11).createClass("Polygon",{base:_p.r(52),constructor:function(t){this.callBase(t,true)}})}};_p[54]={value:function(t,e,n){return _p.r(11).createClass("Polyline",{base:_p.r(52),constructor:function(t){this.callBase(t)}})}};_p[55]={value:function(t,e,n){var r=_p.r(35);return _p.r(11).createClass("RadialGradientBrush",{base:r,constructor:function(t){this.callBase("radialGradient",t);this.setCenter(.5,.5);this.setFocal(.5,.5);this.setRadius(.5)},setCenter:function(t,e){this.node.setAttribute("cx",t);this.node.setAttribute("cy",e);return this},getCenter:function(){return{x:+this.node.getAttribute("cx"),y:+this.node.getAttribute("cy")}},setFocal:function(t,e){this.node.setAttribute("fx",t);this.node.setAttribute("fy",e);return this},getFocal:function(){return{x:+this.node.getAttribute("fx"),y:+this.node.getAttribute("fy")}},setRadius:function(t){this.node.setAttribute("r",t);return this},getRadius:function(){return+this.node.getAttribute("r")}})}};_p[56]={value:function(t,e,n){var r={},i=_p.r(12),s=_p.r(50),a=_p.r(25);i.extend(r,{formatRadius:function(t,e,n){var r=Math.floor(Math.min(t/2,e/2));return Math.min(r,n)}});var o=_p.r(11).createClass("Rect",{base:_p.r(46),constructor:function(t,e,n,i,s){this.callBase();this.x=n||0;this.y=i||0;this.width=t||0;this.height=e||0;this.radius=r.formatRadius(this.width,this.height,s||0);this.update()},update:function(){var t=this.x,e=this.y,n=this.width,r=this.height,i=this.radius;var s=this.getDrawer().redraw();if(!i){s.push("M",t,e);s.push("h",n);s.push("v",r);s.push("h",-n);s.push("z")}else{n-=2*i;r-=2*i;s.push("M",t+i,e);s.push("h",n);s.push("a",i,i,0,0,1,i,i);s.push("v",r);s.push("a",i,i,0,0,1,-i,i);s.push("h",-n);s.push("a",i,i,0,0,1,-i,-i);s.push("v",-r);s.push("a",i,i,0,0,1,i,-i);s.push("z")}s.done();return this},setWidth:function(t){this.width=t;return this.update()},setHeight:function(t){this.height=t;return this.update()},setSize:function(t,e){this.width=t;this.height=e;return this.update()},setBox:function(t){this.x=t.x;this.y=t.y;this.width=t.width;this.height=t.height;return this.update()},getBox:function(){return new a(this.x,this.y,this.width,this.height)},getRadius:function(){return this.radius},setRadius:function(t){this.radius=r.formatRadius(this.width,this.height,t||0);return this.update()},getPosition:function(){return new s(this.x,this.y)},setPosition:function(t,e){if(arguments.length==1){var n=s.parse(arguments[0]);e=n.y;t=n.x}this.x=t;this.y=e;return this.update()},getWidth:function(){return this.width},getHeight:function(){return this.height},getPositionX:function(){return this.x},getPositionY:function(){return this.y},setPositionX:function(t){this.x=t;return this.update()},setPositionY:function(t){this.y=t;return this.update()}});return o}};_p[57]={value:function(t,e,n){var r=_p.r(50);return _p.r(11).createClass("RegularPolygon",{base:_p.r(46),constructor:function(t,e,n,i){this.callBase();this.radius=e||0;this.side=Math.max(t||3,3);if(arguments.length>2){if(arguments.length==3){i=n.y;n=n.x}}this.center=new r(n,i);this.draw()},getSide:function(){return this.side},setSide:function(t){this.side=t;return this.draw()},getRadius:function(){return this.radius},setRadius:function(t){this.radius=t;return this.draw()},draw:function(){var t=this.radius,e=this.side,n=Math.PI*2/e,i=this.getDrawer(),s;i.clear();i.moveTo(r.fromPolar(t,Math.PI/2,"rad").offset(this.center));for(s=0;s<=e;s++){i.lineTo(r.fromPolar(t,n*s+Math.PI/2,"rad").offset(this.center))}i.close();return this}})}};_p[58]={value:function(t,e,n){var r=_p.r(67);return _p.r(11).createClass("Resource",{constructor:function(t,e){this.callBase();this.node=r.createNode(t);if(e){e.addResource(this)}},toString:function(){return"url(#"+this.node.id+")"}})}};_p[59]={value:function(t,e,n){return _p.r(11).createClass({base:_p.r(68),constructor:function(t,e){this.callBase([t,e],360,0)},getInnerRadius:function(){return this.getSectionArray()[0]},getOuterRadius:function(){return this.getSectionArray()[1]},setInnerRadius:function(t){this.setSectionArray([t,this.getOuterRadius()])},setOuterRadius:function(t){this.setSectionArray([this.getInnerRadius(),t])}})}};_p[60]={value:function(t,e,n){var r=_p.r(67);var i=_p.r(12);var s=_p.r(33);var a=_p.r(66);var o=_p.r(31);var u=_p.r(43);var h=_p.r(48);var f=Array.prototype.slice;var c=_p.r(25);var l=_p.r(11).createClass("Shape",{mixins:[s,a,o],constructor:function t(e){this.node=r.createNode(e);this.node.shape=this;this.transform={translate:null,rotate:null,scale:null,matrix:null};this.callMixin()},getId:function(){return this.node.id},setId:function(t){this.node.id=t;return this},getNode:function(){return this.node},getBoundaryBox:function(){var t;try{t=this.node.getBBox()}catch(e){t={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}return new c(t)},getRenderBox:function(t){var e=this.getBoundaryBox();var n=this.getTransform(t);return n.transformBox(e)},getWidth:function(){return this.getRenderBox().width},getHeight:function(){return this.getRenderBox().height},getSize:function(){var t=this.getRenderBox();delete t.x;delete t.y;return t},setOpacity:function(t){this.node.setAttribute("opacity",t);return this},getOpacity:function(){var t=this.node.getAttribute("opacity");return t?+t:1},setVisible:function(t){if(t){this.node.removeAttribute("display")}else{this.node.setAttribute("display","none")}return this},getVisible:function(){this.node.getAttribute("display")},hasAncestor:function(t){var e=this.container;while(e){if(e===t){return true}e=e.container}return false},getTransform:function(t){return u.getCTM(this,t)},clearTransform:function(){this.node.removeAttribute("transform");this.transform={translate:null,rotate:null,scale:null,matrix:null};this.trigger("shapeupdate",{type:"transform"});return this},_applyTransform:function(){var t=this.transform,e=[];if(t.translate){e.push(["translate(",t.translate,")"])}if(t.rotate){e.push(["rotate(",t.rotate,")"])}if(t.scale){e.push(["scale(",t.scale,")"])}if(t.matrix){e.push(["matrix(",t.matrix,")"])}this.node.setAttribute("transform",i.flatten(e).join(" "));return this},setMatrix:function(t){this.transform.matrix=t;return this._applyTransform()},setTranslate:function(t){this.transform.translate=t!==null&&f.call(arguments)||null;return this._applyTransform()},setRotate:function(t){this.transform.rotate=t!==null&&f.call(arguments)||null;return this._applyTransform()},setScale:function(t){this.transform.scale=t!==null&&f.call(arguments)||null;return this._applyTransform()},translate:function(t,e){var n=this.transform.matrix||new u;if(e===undefined){e=0}this.transform.matrix=n.translate(t,e);return this._applyTransform()},rotate:function(t){var e=this.transform.matrix||new u;this.transform.matrix=e.rotate(t);return this._applyTransform()},scale:function(t,e){var n=this.transform.matrix||new u;if(e===undefined){e=t}this.transform.matrix=n.scale(t,e);return this._applyTransform()},skew:function(t,e){var n=this.transform.matrix||new u;if(e===undefined){e=t}this.transform.matrix=n.skew(t,e);return this._applyTransform()},stroke:function(t,e){if(t&&t.stroke){t.stroke(this)}else if(t){this.node.setAttribute("stroke",t.toString());if(e){this.node.setAttribute("stroke-width",e)}}else if(t===null){this.node.removeAttribute("stroe")}return this},fill:function(t){if(t){this.node.setAttribute("fill",t.toString())}if(t===null){this.node.removeAttribute("fill")}return this},setAttr:function(t,e){var n=this;if(i.isObject(t)){i.each(t,function(t,e){n.setAttr(e,t)})}if(e===undefined||e===null||e===""){this.node.removeAttribute(t)}else{this.node.setAttribute(t,e)}return this},getAttr:function(t){return this.node.getAttribute(t)}});return l}};_p[61]={value:function(t,e,n){var r=_p.r(29);var i=_p.r(12);var s=_p.r(11).createClass("ShapeContainer",{base:r,isShapeContainer:true,handleAdd:function(t,e){var n=this.getShapeNode();n.insertBefore(t.node,n.childNodes[e]||null);t.trigger("add",{container:this});if(t.notifyTreeModification){t.notifyTreeModification("treeadd",this)}},handleRemove:function(t,e){var n=this.getShapeNode();n.removeChild(t.node);t.trigger("remove",{container:this});if(t.notifyTreeModification){t.notifyTreeModification("treeremove",this)}},notifyTreeModification:function(t,e){this.eachItem(function(n,r){if(r.notifyTreeModification){r.notifyTreeModification(t,e)}r.trigger(t,{container:e})})},getShape:function(t){return this.getItem(t)},addShape:function(t,e){return this.addItem(t,e)},put:function(t){this.addShape(t);return t},appendShape:function(t){return this.addShape(t)},prependShape:function(t){return this.addShape(t,0)},replaceShape:function(t,e){var n=this.indexOf(e);if(n===-1){return}this.removeShape(n);this.addShape(t,n);return this},addShapeBefore:function(t,e){var n=this.indexOf(e);return this.addShape(t,n)},addShapeAfter:function(t,e){var n=this.indexOf(e);return this.addShape(t,n===-1?undefined:n+1)},addShapes:function(t){return this.addItems(t)},removeShape:function(t){return this.removeItem(t)},getShapes:function(){return this.getItems()},getShapesByType:function(t){var e=[];function n(r){if(t.toLowerCase()==r.getType().toLowerCase()){e.push(r)}if(r.isShapeContainer){i.each(r.getShapes(),function(t){n(t)})}}n(this);return e},getShapeById:function(t){return this.getShapeNode().getElementById(t).shape},arrangeShape:function(t,e){return this.removeShape(t).addShape(t,e)},getShapeNode:function(){return this.shapeNode||this.node}});var a=_p.r(60);_p.r(11).extendClass(a,{bringTo:function(t){this.container.arrangeShape(this,t);return this},bringFront:function(){return this.bringTo(this.container.indexOf(this)+1)},bringBack:function(){return this.bringTo(this.container.indexOf(this)-1)},bringTop:function(){this.container.removeShape(this).addShape(this);return this},bringRear:function(){return this.bringTo(0)},bringRefer:function(t,e){if(t.container){if(this.remove){this.remove()}t.container.addShape(this,t.container.indexOf(t)+(e||0))}return this},bringAbove:function(t){return this.bringRefer(t)},bringBelow:function(t){return this.bringRefer(t,1)},replaceBy:function(t){if(this.container){t.bringAbove(this);this.remove()}return this}});return s}};_p[62]={value:function(t,e,n){var r=_p.r(43),i=_p.r(12),s=_p.r(50);return _p.r(11).createClass("ShapeEvent",{constructor:function(t){var e=null;if(!i.isObject(t.target)){this.type=t.type;e=t.target;if(e.correspondingUseElement){e=e.correspondingUseElement}this.originEvent=t;this.targetShape=e.shape||e.paper||t.currentTarget&&(t.currentTarget.shape||t.currentTarget.paper);if(t._kityParam){i.extend(this,t._kityParam)}}else{i.extend(this,t)}},preventDefault:function(){var t=this.originEvent;if(!t){return true}if(t.preventDefault){t.preventDefault();return t.cancelable}else{t.returnValue=false;return true}},getPosition:function(t,e){if(!this.originEvent){return null}var n=this.originEvent.touches?this.originEvent.touches[e||0]:this.originEvent;var i=this.targetShape;var a=i.shapeNode||i.node;var o=new s(n&&n.clientX||0,n&&n.clientY||0);var u=r.transformPoint(o,a.getScreenCTM().inverse());var h=r.getCTM(i,t||"view").transformPoint(u);return h},stopPropagation:function(){var t=this.originEvent;if(!t){return true}if(t.stopPropagation){t.stopPropagation()}else{t.cancelBubble=false}}})}};_p[63]={value:function(t,e,n){return _p.r(11).createClass("ShapePoint",{base:_p.r(50),constructor:function(t,e){this.callBase(t,e)},setX:function(t){return this.setPoint(t,this.y)},setY:function(t){return this.setPoint(this.x,t)},setPoint:function(t,e){this.x=t;this.y=e;this.update();return this},getPoint:function(){return this},update:function(){if(this.container&&this.container.update){this.container.update()}return this}})}};_p[64]={value:{COLOR_STANDARD:{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",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",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",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",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:"#db7093",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",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00"},EXTEND_STANDARD:{}}};_p[65]={value:function(t,e,n){var r={3:.2,5:.38196601125,6:.57735026919,8:.541196100146,10:.726542528005,12:.707106781187};var i=_p.r(50);return _p.r(11).createClass("Star",{base:_p.r(46),constructor:function(t,e,n,r,s){this.callBase();this.vertex=t||3;this.radius=e||0;this.shrink=n;this.offset=r||new i(0,0);this.angleOffset=s||0;this.draw()},getVertex:function(){return this.vertex},setVertex:function(t){this.vertex=t;return this.draw()},getRadius:function(){return this.radius},setRadius:function(t){this.radius=t;return this.draw()},getShrink:function(){return this.shrink},setShrink:function(t){this.shrink=t;return this.draw()},getOffset:function(){return this.offset},setOffset:function(t){this.offset=t;return this.draw()},getAngleOffset:function(){return this.angleOffset},setAngleOffset:function(t){this.angleOffset=t;return this.draw()},draw:function(){var t=this.radius,e=this.radius*(this.shrink||r[this.vertex]||.5),n=this.vertex,s=this.offset,a=90,o=180/n,u=this.angleOffset,h=this.getDrawer(),f,c;h.clear();h.moveTo(i.fromPolar(e,a));for(f=1;f<=n*2;f++){c=a+o*f;if(f%2){h.lineTo(i.fromPolar(t,c+u).offset(s))}else{h.lineTo(i.fromPolar(e,c))}}h.close()}})}};_p[66]={value:function(t,e,n){var r=_p.r(11).createClass("ClassList",{constructor:function(t){this._node=t;this._list=t.className.toString().split(" ")},_update:function(){this._node.className=this._list.join(" ")},add:function(t){this._list.push(t);this._update()},remove:function(t){var e=this._list.indexOf(t);if(~e){this._list.splice(e,1)}this._update()},contains:function(t){return!!~this._list.indexOf(t)}});function i(t){if(!t.classList){t.classList=new r(t)}return t.classList}return _p.r(11).createClass("Styled",{addClass:function(t){i(this.node).add(t);return this},removeClass:function(t){i(this.node).remove(t);return this},hasClass:function(t){return i(this.node).contains(t)},setStyle:function(t){if(arguments.length==2){this.node.style[arguments[0]]=arguments[1];return this}for(var e in t){if(t.hasOwnProperty(e)){this.node.style[e]=t[e]}}return this}})}};_p[67]={value:function(t,e,n){var r=document;var i=0;var s={createNode:function(t){var e=r.createElementNS(s.ns,t);e.id="kity_"+t+"_"+i++;return e},defaults:{stroke:"none",fill:"none"},xlink:"http://www.w3.org/1999/xlink",ns:"http://www.w3.org/2000/svg"};return s}};_p[68]={value:function(t,e,n){var r=_p.r(50);return _p.r(11).createClass("Sweep",{base:_p.r(46),constructor:function(t,e,n){this.callBase();this.sectionArray=t||[];this.angle=e||0;this.angleOffset=n||0;this.draw()},getSectionArray:function(){return this.sectionArray},setSectionArray:function(t){this.sectionArray=t;return this.draw()},getAngle:function(){return this.angle},setAngle:function(t){this.angle=t;return this.draw()},getAngleOffset:function(){return this.angleOffset},setAngleOffset:function(t){this.angleOffset=t;return this.draw()},draw:function(){var t=this.sectionArray,e;for(e=0;e0?1:-1;return n*180*e/Math.PI}});s.fromPoints=function(t,e){return new s(e.x-t.x,e.y-t.y)};s.fromPolar=function(){var t=r.fromPolar.apply(r,arguments);return new s(t.x,t.y)};_p.r(11).extendClass(r,{asVector:function(){return new s(this.x,this.y)}});return s}};_p[74]={value:function(t,e,n){var r=_p.r(61);var i=_p.r(75);return _p.r(11).createClass("View",{mixins:[r,i],base:_p.r(74),constructor:function(){this.callBase("view")}})}};_p[75]={value:function(t,e,n){return _p.r(11).createClass("ViewBox",{getViewBox:function(){var t=this.node.getAttribute("viewBox");if(t===null){return{x:0,y:0,width:this.node.clientWidth||this.node.parentNode.clientWidth,height:this.node.clientHeight||this.node.parentNode.clientHeight}}else{t=t.split(" ");return{x:+t[0],y:+t[1],width:+t[2],height:+t[3]}}},setViewBox:function(t,e,n,r){this.node.setAttribute("viewBox",[t,e,n,r].join(" "));return this}})}};_p[76]={value:function(t,e,n){var r={},i=_p.r(12);r.version="2.0.0";i.extend(r,{createClass:_p.r(11).createClass,extendClass:_p.r(11).extendClass,Utils:i,Browser:_p.r(10),Box:_p.r(25),Bezier:_p.r(23),BezierPoint:_p.r(24),Circle:_p.r(26),Clip:_p.r(27),Color:_p.r(28),Container:_p.r(29),Curve:_p.r(30),Ellipse:_p.r(32),Group:_p.r(36),Gradient:_p.r(35),HyperLink:_p.r(37),Image:_p.r(38),Line:_p.r(39),LinearGradient:_p.r(40),Mask:_p.r(42),Matrix:_p.r(43),Marker:_p.r(41),Palette:_p.r(44),Paper:_p.r(45),Path:_p.r(46),Pattern:_p.r(47),Pen:_p.r(48),Point:_p.r(50),PointContainer:_p.r(51),Polygon:_p.r(53),Polyline:_p.r(54),Pie:_p.r(49),RadialGradient:_p.r(55),Resource:_p.r(58),Rect:_p.r(56),RegularPolygon:_p.r(57),Ring:_p.r(59),Shape:_p.r(60),ShapePoint:_p.r(63),ShapeContainer:_p.r(61),Sweep:_p.r(68),Star:_p.r(65),Text:_p.r(69),TextSpan:_p.r(71),Use:_p.r(72),Vector:_p.r(73),g:_p.r(34),Animator:_p.r(0),Easing:_p.r(1),OpacityAnimator:_p.r(4),RotateAnimator:_p.r(6),ScaleAnimator:_p.r(7),Timeline:_p.r(8),TranslateAnimator:_p.r(9),PathAnimator:_p.r(5),MotionAnimator:_p.r(3),requestFrame:_p.r(2).requestFrame,releaseFrame:_p.r(2).releaseFrame,Filter:_p.r(20),GaussianblurFilter:_p.r(21),ProjectionFilter:_p.r(22),ColorMatrixEffect:_p.r(13),CompositeEffect:_p.r(14),ConvolveMatrixEffect:_p.r(15),Effect:_p.r(16),GaussianblurEffect:_p.r(17),OffsetEffect:_p.r(18)});return window.kity=r}};var moduleMapping={kity:76};function use(t){_p.r([moduleMapping[t]])}use("kity")})();