text: /**
   * Hilo 1.1.11 for standalone
   * Copyright 2016 alibaba.com
   * Licensed under the MIT License
   */
  !function(t){t.Hilo||(t.Hilo={});var e=t.Hilo,i=t.Hilo.Class,n=t.Hilo.EventMixin,r=t.Hilo.Matrix,o=t.Hilo.util,a=function(){function t(t,e,i){for(var n,r,o,a,s=0,h=!1,u=0,y=i.length;u<y;u++){var l=i[u],c=i[(u+1)%y];if(l.y==c.y&&e==l.y&&(l.x>c.x?(n=c.x,r=l.x):(n=l.x,r=c.x),t>=n&&t<=r))h=!0;else if(l.y>c.y?(o=c.y,a=l.y):(o=l.y,a=c.y),!(e<o||e>a)){var x=(e-l.y)*(c.x-l.x)/(c.y-l.y)+l.x;if(x>t?s++:x==t&&(h=!0),l.x>t&&l.y==e){var d=i[(y+u-1)%y];(d.y<e&&c.y>e||d.y>e&&c.y<e)&&s++}}}return h||s%2==1}function a(t,e){var i=s(t,e,{overlap:-(1/0),normal:{x:0,y:0}});return!!i&&s(e,t,i)}function s(t,e,i){for(var n,r,o,a,s,h,u,y,l,c=t.length,x=e.length,d={x:0,y:0},f=0;f<c;f++){n=t[f],r=t[f<c-1?f+1:0],d.x=n.y-r.y,d.y=r.x-n.x,o=Math.sqrt(d.x*d.x+d.y*d.y),d.x/=o,d.y/=o,a=s=t[0].x*d.x+t[0].y*d.y;for(var v=1;v<c;v++)y=t[v].x*d.x+t[v].y*d.y,y>s?s=y:y<a&&(a=y);for(h=u=e[0].x*d.x+e[0].y*d.y,v=1;v<x;v++)y=e[v].x*d.x+e[v].y*d.y,y>u?u=y:y<h&&(h=y);if(a<h?(l=h-s,d.x=-d.x,d.y=-d.y):l=a-u,l>=0)return!1;l>i.overlap&&(i.overlap=l,i.normal.x=d.x,i.normal.y=d.y)}return i}return i.create({Mixes:n,constructor:function(t){t=t||{},this.id=this.id||t.id||e.getUid("View"),o.copy(this,t,!0)},tint:16777215,id:null,x:0,y:0,width:0,height:0,alpha:1,rotation:0,visible:!0,pivotX:0,pivotY:0,scaleX:1,scaleY:1,pointerEnabled:!0,background:null,mask:null,align:null,drawable:null,boundsArea:null,parent:null,depth:-1,blendMode:"source-over",getStage:function(){for(var t,e=this;t=e.parent;)e=t;return e.canvas?e:null},getScaledWidth:function(){return this.width*this.scaleX},getScaledHeight:function(){return this.height*this.scaleY},addTo:function(t,e){return"number"==typeof e?t.addChildAt(this,e):t.addChild(this),this},removeFromParent:function(){var t=this.parent;return t&&t.removeChild(this),this},getBounds:function(){for(var t,e,i,n,r,o,a,s=this.width,h=this.height,u=this.getConcatenatedMatrix(),y=this.boundsArea||[{x:0,y:0},{x:s,y:0},{x:s,y:h},{x:0,y:h}],l=[],c=0,x=y.length;c<x;c++)t=u.transformPoint(y[c],!0,!0),e=t.x,i=t.y,0==c?(n=r=e,o=a=i):(n>e?n=e:r<e&&(r=e),o>i?o=i:a<i&&(a=i)),l[c]=t;return l.x=n,l.y=o,l.width=r-n,l.height=a-o,l},getConcatenatedMatrix:function(t){for(var e=new r(1,0,0,1,0,0),i=this;i!=t&&i.parent;i=i.parent){var n=1,o=0,a=i.rotation%360,s=i.pivotX,h=i.pivotY,u=i.scaleX,y=i.scaleY;if(a){var l=a*Math.PI/180;n=Math.cos(l),o=Math.sin(l)}0!=s&&(e.tx-=s),0!=h&&(e.ty-=h);var c=i.getAlignPosition();e.concat(n*u,o*u,-o*y,n*y,c.x,c.y)}return e},getAlignPosition:function(){var t=this.parent,e=this.align,i=this.x,n=this.y;if(t&&this.align){if("function"==typeof e)return this.align();var r=this.width,o=this.height,a=t.width,s=t.height;switch(e){case"TL":i=0,n=0;break;case"T":i=a-r>>1,n=0;break;case"TR":i=a-r,n=0;break;case"L":i=0,n=s-o>>1;break;case"C":i=a-r>>1,n=s-o>>1;break;case"R":i=a-r,n=s-o>>1;break;case"BL":i=0,n=s-o;break;case"B":i=a-r>>1,n=s-o;break;case"BR":i=a-r,n=s-o}}return{x:i,y:n}},hitTestPoint:function(e,i,n){var r=this.getBounds(),o=e>=r.x&&e<=r.x+r.width&&i>=r.y&&i<=r.y+r.height;return o&&n&&(o=t(e,i,r)),o},hitTestObject:function(t,e){var i=this.getBounds(),n=t.getBounds(),r=i.x<=n.x+n.width&&n.x<=i.x+i.width&&i.y<=n.y+n.height&&n.y<=i.y+i.height;return r&&e&&(r=a(i,n)),!!r},_render:function(t,e){this.onUpdate&&this.onUpdate(e)===!1||!t.startDraw(this)||(t.transform(this),this.render(t,e),t.endDraw(this))},_fireMouseEvent:function(t){if(t.eventCurrentTarget=this,this.fire(t),"mousemove"==t.type){if(!this.__mouseOver){this.__mouseOver=!0;var e=o.copy({},t);e.type="mouseover",this.fire(e)}}else"mouseout"==t.type&&(this.__mouseOver=!1);var i=this.parent;t._stopped||t._stopPropagationed||!i||("mouseout"==t.type||"touchout"==t.type?i.hitTestPoint(t.stageX,t.stageY,!0)||i._fireMouseEvent(t):i._fireMouseEvent(t))},onUpdate:null,render:function(t,e){t.draw(this)},toString:function(){return e.viewToString(this)}})}();t.Hilo.View=a}(window);