r&&(r=e),(e=j+l+n)r&&(r=e),(e=l+n)r&&(r=e),a.setValues(o,q,p-o,r-q)},b._hasMouseEventListener=function(){for(var b=a._MOUSE_EVENTS,c=0,d=b.length;d>c;c++)if(this.hasEventListener(b[c]))return!0;return!!this.cursor},createjs.DisplayObject=createjs.promote(a,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this.DisplayObject_constructor(),this.children=[],this.mouseChildren=!0,this.tickChildren=!0}var b=createjs.extend(a,createjs.DisplayObject);b._getNumChildren=function(){return this.children.length},b.getNumChildren=createjs.deprecate(b._getNumChildren,"Container.getNumChildren");try{Object.defineProperties(b,{numChildren:{get:b._getNumChildren}})}catch(c){}b.initialize=a,b.isVisible=function(){var a=this.cacheCanvas||this.children.length;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&a)},b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;for(var c=this.children.slice(),d=0,e=c.length;e>d;d++){var f=c[d];f.isVisible()&&(a.save(),f.updateContext(a),f.draw(a),a.restore())}return!0},b.addChild=function(a){if(null==a)return a;var b=arguments.length;if(b>1){for(var c=0;b>c;c++)this.addChild(arguments[c]);return arguments[b-1]}var d=a.parent,e=d===this;return d&&d._removeChildAt(createjs.indexOf(d.children,a),e),a.parent=this,this.children.push(a),e||a.dispatchEvent("added"),a},b.addChildAt=function(a,b){var c=arguments.length,d=arguments[c-1];if(0>d||d>this.children.length)return arguments[c-2];if(c>2){for(var e=0;c-1>e;e++)this.addChildAt(arguments[e],d+e);return arguments[c-2]}var f=a.parent,g=f===this;return f&&f._removeChildAt(createjs.indexOf(f.children,a),g),a.parent=this,this.children.splice(b,0,a),g||a.dispatchEvent("added"),a},b.removeChild=function(a){var b=arguments.length;if(b>1){for(var c=!0,d=0;b>d;d++)c=c&&this.removeChild(arguments[d]);return c}return this._removeChildAt(createjs.indexOf(this.children,a))},b.removeChildAt=function(a){var b=arguments.length;if(b>1){for(var c=[],d=0;b>d;d++)c[d]=arguments[d];c.sort(function(a,b){return b-a});for(var e=!0,d=0;b>d;d++)e=e&&this._removeChildAt(c[d]);return e}return this._removeChildAt(a)},b.removeAllChildren=function(){for(var a=this.children;a.length;)this._removeChildAt(0)},b.getChildAt=function(a){return this.children[a]},b.getChildByName=function(a){for(var b=this.children,c=0,d=b.length;d>c;c++)if(b[c].name==a)return b[c];return null},b.sortChildren=function(a){this.children.sort(a)},b.getChildIndex=function(a){return createjs.indexOf(this.children,a)},b.swapChildrenAt=function(a,b){var c=this.children,d=c[a],e=c[b];d&&e&&(c[a]=e,c[b]=d)},b.swapChildren=function(a,b){for(var c,d,e=this.children,f=0,g=e.length;g>f&&(e[f]==a&&(c=f),e[f]==b&&(d=f),null==c||null==d);f++);f!=g&&(e[c]=b,e[d]=a)},b.setChildIndex=function(a,b){var c=this.children,d=c.length;if(!(a.parent!=this||0>b||b>=d)){for(var e=0;d>e&&c[e]!=a;e++);e!=d&&e!=b&&(c.splice(e,1),c.splice(b,0,a))}},b.contains=function(a){for(;a;){if(a==this)return!0;a=a.parent}return!1},b.hitTest=function(a,b){return null!=this.getObjectUnderPoint(a,b)},b.getObjectsUnderPoint=function(a,b,c){var d=[],e=this.localToGlobal(a,b);return this._getObjectsUnderPoint(e.x,e.y,d,c>0,1==c),d},b.getObjectUnderPoint=function(a,b,c){var d=this.localToGlobal(a,b);return this._getObjectsUnderPoint(d.x,d.y,null,c>0,1==c)},b.getBounds=function(){return this._getBounds(null,!0)},b.getTransformedBounds=function(){return this._getBounds()},b.clone=function(b){var c=this._cloneProps(new a);return b&&this._cloneChildren(c),c},b.toString=function(){return"[Container (name="+this.name+")]"},b._tick=function(a){if(this.tickChildren)for(var b=this.children.length-1;b>=0;b--){var c=this.children[b];c.tickEnabled&&c._tick&&c._tick(a)}this.DisplayObject__tick(a)},b._cloneChildren=function(a){a.children.length&&a.removeAllChildren();for(var b=a.children,c=0,d=this.children.length;d>c;c++){var e=this.children[c].clone(!0);e.parent=a,b.push(e)}},b._removeChildAt=function(a,b){if(0>a||a>this.children.length-1)return!1;var c=this.children[a];return c&&(c.parent=null),this.children.splice(a,1),b||c.dispatchEvent("removed"),!0},b._getObjectsUnderPoint=function(b,c,d,e,f,g){if(g=g||0,!g&&!this._testMask(this,b,c))return null;var h,i=createjs.DisplayObject._hitTestContext;f=f||e&&this._hasMouseEventListener();for(var j=this.children,k=j.length,l=k-1;l>=0;l--){var m=j[l],n=m.hitArea;if(m.visible&&(n||m.isVisible())&&(!e||m.mouseEnabled)&&(n||this._testMask(m,b,c)))if(!n&&m instanceof a){var o=m._getObjectsUnderPoint(b,c,d,e,f,g+1);if(!d&&o)return e&&!this.mouseChildren?this:o}else{if(e&&!f&&!m._hasMouseEventListener())continue;var p=m.getConcatenatedDisplayProps(m._props);if(h=p.matrix,n&&(h.appendMatrix(n.getMatrix(n._props.matrix)),p.alpha=n.alpha),i.globalAlpha=p.alpha,i.setTransform(h.a,h.b,h.c,h.d,h.tx-b,h.ty-c),(n||m).draw(i),!this._testHit(i))continue;if(i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,2,2),!d)return e&&!this.mouseChildren?this:m;d.push(m)}}return null},b._testMask=function(a,b,c){var d=a.mask;if(!d||!d.graphics||d.graphics.isEmpty())return!0;var e=this._props.matrix,f=a.parent;e=f?f.getConcatenatedMatrix(e):e.identity(),e=d.getMatrix(d._props.matrix).prependMatrix(e);var g=createjs.DisplayObject._hitTestContext;return g.setTransform(e.a,e.b,e.c,e.d,e.tx-b,e.ty-c),d.graphics.drawAsPath(g),g.fillStyle="#000",g.fill(),this._testHit(g)?(g.setTransform(1,0,0,1,0,0),g.clearRect(0,0,2,2),!0):!1},b._getBounds=function(a,b){var c=this.DisplayObject_getBounds();if(c)return this._transformBounds(c,a,b);var d=this._props.matrix;d=b?d.identity():this.getMatrix(d),a&&d.prependMatrix(a);for(var e=this.children.length,f=null,g=0;e>g;g++){var h=this.children[g];h.visible&&(c=h._getBounds(d))&&(f?f.extend(c.x,c.y,c.width,c.height):f=c.clone())}return f},createjs.Container=createjs.promote(a,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.Container_constructor(),this.autoClear=!0,this.canvas="string"==typeof a?document.getElementById(a):a,this.mouseX=0,this.mouseY=0,this.drawRect=null,this.snapToPixelEnabled=!1,this.mouseInBounds=!1,this.tickOnUpdate=!0,this.mouseMoveOutside=!1,this.preventSelection=!0,this._pointerData={},this._pointerCount=0,this._primaryPointerID=null,this._mouseOverIntervalID=null,this._nextStage=null,this._prevStage=null,this.enableDOMEvents(!0)}var b=createjs.extend(a,createjs.Container);b._get_nextStage=function(){return this._nextStage},b._set_nextStage=function(a){this._nextStage&&(this._nextStage._prevStage=null),a&&(a._prevStage=this),this._nextStage=a};try{Object.defineProperties(b,{nextStage:{get:b._get_nextStage,set:b._set_nextStage}})}catch(c){}b.update=function(a){if(this.canvas&&(this.tickOnUpdate&&this.tick(a),this.dispatchEvent("drawstart",!1,!0)!==!1)){createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var b=this.drawRect,c=this.canvas.getContext("2d");c.setTransform(1,0,0,1,0,0),this.autoClear&&(b?c.clearRect(b.x,b.y,b.width,b.height):c.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)),c.save(),this.drawRect&&(c.beginPath(),c.rect(b.x,b.y,b.width,b.height),c.clip()),this.updateContext(c),this.draw(c,!1),c.restore(),this.dispatchEvent("drawend")}},b.tick=function(a){if(this.tickEnabled&&this.dispatchEvent("tickstart",!1,!0)!==!1){var b=new createjs.Event("tick");if(a)for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);this._tick(b),this.dispatchEvent("tickend")}},b.handleEvent=function(a){"tick"==a.type&&this.update(a)},b.clear=function(){if(this.canvas){var a=this.canvas.getContext("2d");a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)}},b.toDataURL=function(a,b){var c,d=this.canvas.getContext("2d"),e=this.canvas.width,f=this.canvas.height;if(a){c=d.getImageData(0,0,e,f);var g=d.globalCompositeOperation;d.globalCompositeOperation="destination-over",d.fillStyle=a,d.fillRect(0,0,e,f)}var h=this.canvas.toDataURL(b||"image/png");return a&&(d.putImageData(c,0,0),d.globalCompositeOperation=g),h},b.enableMouseOver=function(a){if(this._mouseOverIntervalID&&(clearInterval(this._mouseOverIntervalID),this._mouseOverIntervalID=null,0==a&&this._testMouseOver(!0)),null==a)a=20;else if(0>=a)return;var b=this;this._mouseOverIntervalID=setInterval(function(){b._testMouseOver()},1e3/Math.min(50,a))},b.enableDOMEvents=function(a){null==a&&(a=!0);var b,c,d=this._eventListeners;if(!a&&d){for(b in d)c=d[b],c.t.removeEventListener(b,c.f,!1);this._eventListeners=null}else if(a&&!d&&this.canvas){var e=window.addEventListener?window:document,f=this;d=this._eventListeners={},d.mouseup={t:e,f:function(a){f._handleMouseUp(a)}},d.mousemove={t:e,f:function(a){f._handleMouseMove(a)}},d.dblclick={t:this.canvas,f:function(a){f._handleDoubleClick(a)}},d.mousedown={t:this.canvas,f:function(a){f._handleMouseDown(a)}};for(b in d)c=d[b],c.t.addEventListener(b,c.f,!1)}},b.clone=function(){throw"Stage cannot be cloned."},b.toString=function(){return"[Stage (name="+this.name+")]"},b._getElementRect=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){b={top:a.offsetTop,left:a.offsetLeft,width:a.offsetWidth,height:a.offsetHeight}}var d=(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||document.body.clientLeft||0),e=(window.pageYOffset||document.scrollTop||0)-(document.clientTop||document.body.clientTop||0),f=window.getComputedStyle?getComputedStyle(a,null):a.currentStyle,g=parseInt(f.paddingLeft)+parseInt(f.borderLeftWidth),h=parseInt(f.paddingTop)+parseInt(f.borderTopWidth),i=parseInt(f.paddingRight)+parseInt(f.borderRightWidth),j=parseInt(f.paddingBottom)+parseInt(f.borderBottomWidth);return{left:b.left+d+g,right:b.right+d-i,top:b.top+e+h,bottom:b.bottom+e-j}},b._getPointerData=function(a){var b=this._pointerData[a];return b||(b=this._pointerData[a]={x:0,y:0}),b},b._handleMouseMove=function(a){a||(a=window.event),this._handlePointerMove(-1,a,a.pageX,a.pageY)},b._handlePointerMove=function(a,b,c,d,e){if((!this._prevStage||void 0!==e)&&this.canvas){var f=this._nextStage,g=this._getPointerData(a),h=g.inBounds;this._updatePointerPosition(a,b,c,d),(h||g.inBounds||this.mouseMoveOutside)&&(-1===a&&g.inBounds==!h&&this._dispatchMouseEvent(this,h?"mouseleave":"mouseenter",!1,a,g,b),this._dispatchMouseEvent(this,"stagemousemove",!1,a,g,b),this._dispatchMouseEvent(g.target,"pressmove",!0,a,g,b)),f&&f._handlePointerMove(a,b,c,d,null)}},b._updatePointerPosition=function(a,b,c,d){var e=this._getElementRect(this.canvas);c-=e.left,d-=e.top;var f=this.canvas.width,g=this.canvas.height;c/=(e.right-e.left)/f,d/=(e.bottom-e.top)/g;var h=this._getPointerData(a);(h.inBounds=c>=0&&d>=0&&f-1>=c&&g-1>=d)?(h.x=c,h.y=d):this.mouseMoveOutside&&(h.x=0>c?0:c>f-1?f-1:c,h.y=0>d?0:d>g-1?g-1:d),h.posEvtObj=b,h.rawX=c,h.rawY=d,(a===this._primaryPointerID||-1===a)&&(this.mouseX=h.x,this.mouseY=h.y,this.mouseInBounds=h.inBounds)},b._handleMouseUp=function(a){this._handlePointerUp(-1,a,!1)},b._handlePointerUp=function(a,b,c,d){var e=this._nextStage,f=this._getPointerData(a);if(!this._prevStage||void 0!==d){var g=null,h=f.target;d||!h&&!e||(g=this._getObjectsUnderPoint(f.x,f.y,null,!0)),f.down&&(this._dispatchMouseEvent(this,"stagemouseup",!1,a,f,b,g),f.down=!1),g==h&&this._dispatchMouseEvent(h,"click",!0,a,f,b),this._dispatchMouseEvent(h,"pressup",!0,a,f,b),c?(a==this._primaryPointerID&&(this._primaryPointerID=null),delete this._pointerData[a]):f.target=null,e&&e._handlePointerUp(a,b,c,d||g&&this)}},b._handleMouseDown=function(a){this._handlePointerDown(-1,a,a.pageX,a.pageY)},b._handlePointerDown=function(a,b,c,d,e){this.preventSelection&&b.preventDefault(),(null==this._primaryPointerID||-1===a)&&(this._primaryPointerID=a),null!=d&&this._updatePointerPosition(a,b,c,d);var f=null,g=this._nextStage,h=this._getPointerData(a);e||(f=h.target=this._getObjectsUnderPoint(h.x,h.y,null,!0)),h.inBounds&&(this._dispatchMouseEvent(this,"stagemousedown",!1,a,h,b,f),h.down=!0),this._dispatchMouseEvent(f,"mousedown",!0,a,h,b),g&&g._handlePointerDown(a,b,c,d,e||f&&this)},b._testMouseOver=function(a,b,c){if(!this._prevStage||void 0!==b){var d=this._nextStage;if(!this._mouseOverIntervalID)return void(d&&d._testMouseOver(a,b,c));var e=this._getPointerData(-1);if(e&&(a||this.mouseX!=this._mouseOverX||this.mouseY!=this._mouseOverY||!this.mouseInBounds)){var f,g,h,i=e.posEvtObj,j=c||i&&i.target==this.canvas,k=null,l=-1,m="";!b&&(a||this.mouseInBounds&&j)&&(k=this._getObjectsUnderPoint(this.mouseX,this.mouseY,null,!0),this._mouseOverX=this.mouseX,this._mouseOverY=this.mouseY);var n=this._mouseOverTarget||[],o=n[n.length-1],p=this._mouseOverTarget=[];for(f=k;f;)p.unshift(f),m||(m=f.cursor),f=f.parent;for(this.canvas.style.cursor=m,!b&&c&&(c.canvas.style.cursor=m),g=0,h=p.length;h>g&&p[g]==n[g];g++)l=g;for(o!=k&&this._dispatchMouseEvent(o,"mouseout",!0,-1,e,i,k),g=n.length-1;g>l;g--)this._dispatchMouseEvent(n[g],"rollout",!1,-1,e,i,k);for(g=p.length-1;g>l;g--)this._dispatchMouseEvent(p[g],"rollover",!1,-1,e,i,o);o!=k&&this._dispatchMouseEvent(k,"mouseover",!0,-1,e,i,o),d&&d._testMouseOver(a,b||k&&this,c||j&&this)}}},b._handleDoubleClick=function(a,b){var c=null,d=this._nextStage,e=this._getPointerData(-1);b||(c=this._getObjectsUnderPoint(e.x,e.y,null,!0),this._dispatchMouseEvent(c,"dblclick",!0,-1,e,a)),d&&d._handleDoubleClick(a,b||c&&this)},b._dispatchMouseEvent=function(a,b,c,d,e,f,g){if(a&&(c||a.hasEventListener(b))){var h=new createjs.MouseEvent(b,c,!1,e.x,e.y,f,d,d===this._primaryPointerID||-1===d,e.rawX,e.rawY,g);a.dispatchEvent(h)}},createjs.Stage=createjs.promote(a,"Container")}(),this.createjs=this.createjs||{},function(){"use strict";function a(b,c){if(this.Stage_constructor(b),void 0!==c){if("object"!=typeof c)throw"Invalid options object";var d=c.premultiply,e=c.transparent,f=c.antialias,g=c.preserveBuffer,h=c.autoPurge}this.vocalDebug=!1,this._preserveBuffer=g||!1,this._antialias=f||!1,this._transparent=e||!1,this._premultiply=d||!1,this._autoPurge=void 0,this.autoPurge=h,this._viewportWidth=0,this._viewportHeight=0,this._projectionMatrix=null,this._webGLContext=null,this._clearColor={r:.5,g:.5,b:.5,a:0},this._maxCardsPerBatch=a.DEFAULT_MAX_BATCH_SIZE,this._activeShader=null,this._vertices=null,this._vertexPositionBuffer=null,this._uvs=null,this._uvPositionBuffer=null,this._indices=null,this._textureIndexBuffer=null,this._alphas=null,this._alphaBuffer=null,this._textureDictionary=[],this._textureIDs={},this._batchTextures=[],this._baseTextures=[],this._batchTextureCount=8,this._lastTextureInsert=-1,this._batchID=0,this._drawID=0,this._slotBlacklist=[],this._isDrawing=0,this._lastTrackedCanvas=0,this.isCacheControlled=!1,this._cacheContainer=new createjs.Container,this._initializeWebGL()}var b=createjs.extend(a,createjs.Stage);a.buildUVRects=function(a,b,c){if(!a||!a._frames)return null;void 0===b&&(b=-1),void 0===c&&(c=!1);for(var d=-1!=b&&c?b:0,e=-1!=b&&c?b+1:a._frames.length,f=d;e>f;f++){var g=a._frames[f];if(!(g.uvRect||g.image.width<=0||g.image.height<=0)){var h=g.rect;g.uvRect={t:h.y/g.image.height,l:h.x/g.image.width,b:(h.y+h.height)/g.image.height,r:(h.x+h.width)/g.image.width}}}return a._frames[-1!=b?b:0].uvRect||{t:0,l:0,b:1,r:1}},a.isWebGLActive=function(a){return a&&a instanceof WebGLRenderingContext&&"undefined"!=typeof WebGLRenderingContext},a.VERTEX_PROPERTY_COUNT=6,a.INDICIES_PER_CARD=6,a.DEFAULT_MAX_BATCH_SIZE=1e4,a.WEBGL_MAX_INDEX_NUM=Math.pow(2,16),a.UV_RECT={t:0,l:0,b:1,r:1};try{a.COVER_VERT=new Float32Array([-1,1,1,1,-1,-1,1,1,1,-1,-1,-1]),a.COVER_UV=new Float32Array([0,0,1,0,0,1,1,0,1,1,0,1]),a.COVER_UV_FLIP=new Float32Array([0,1,1,1,0,0,1,1,1,0,0,0])}catch(c){}a.REGULAR_VARYING_HEADER="precision mediump float;varying vec2 vTextureCoord;varying lowp float indexPicker;varying lowp float alphaValue;",a.REGULAR_VERTEX_HEADER=a.REGULAR_VARYING_HEADER+"attribute vec2 vertexPosition;attribute vec2 uvPosition;attribute lowp float textureIndex;attribute lowp float objectAlpha;uniform mat4 pMatrix;",a.REGULAR_FRAGMENT_HEADER=a.REGULAR_VARYING_HEADER+"uniform sampler2D uSampler[{{count}}];",a.REGULAR_VERTEX_BODY="void main(void) {gl_Position = vec4((vertexPosition.x * pMatrix[0][0]) + pMatrix[3][0],(vertexPosition.y * pMatrix[1][1]) + pMatrix[3][1],pMatrix[3][2],1.0);alphaValue = objectAlpha;indexPicker = textureIndex;vTextureCoord = uvPosition;}",a.REGULAR_FRAGMENT_BODY="void main(void) {vec4 color = vec4(1.0, 0.0, 0.0, 1.0);if (indexPicker <= 0.5) {color = texture2D(uSampler[0], vTextureCoord);{{alternates}}}{{fragColor}}}",a.REGULAR_FRAG_COLOR_NORMAL="gl_FragColor = vec4(color.rgb, color.a * alphaValue);",a.REGULAR_FRAG_COLOR_PREMULTIPLY="if(color.a > 0.0035) {gl_FragColor = vec4(color.rgb/color.a, color.a * alphaValue);} else {gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);}",a.PARTICLE_VERTEX_BODY=a.REGULAR_VERTEX_BODY,a.PARTICLE_FRAGMENT_BODY=a.REGULAR_FRAGMENT_BODY,a.COVER_VARYING_HEADER="precision mediump float;varying highp vec2 vRenderCoord;varying highp vec2 vTextureCoord;",a.COVER_VERTEX_HEADER=a.COVER_VARYING_HEADER+"attribute vec2 vertexPosition;attribute vec2 uvPosition;uniform float uUpright;",a.COVER_FRAGMENT_HEADER=a.COVER_VARYING_HEADER+"uniform sampler2D uSampler;",a.COVER_VERTEX_BODY="void main(void) {gl_Position = vec4(vertexPosition.x, vertexPosition.y, 0.0, 1.0);vRenderCoord = uvPosition;vTextureCoord = vec2(uvPosition.x, abs(uUpright - uvPosition.y));}",a.COVER_FRAGMENT_BODY="void main(void) {vec4 color = texture2D(uSampler, vRenderCoord);gl_FragColor = color;}",b._get_isWebGL=function(){return!!this._webGLContext},b._set_autoPurge=function(a){a=isNaN(a)?1200:a,-1!=a&&(a=10>a?10:a),this._autoPurge=a},b._get_autoPurge=function(){return Number(this._autoPurge)};try{Object.defineProperties(b,{isWebGL:{get:b._get_isWebGL},autoPurge:{get:b._get_autoPurge,set:b._set_autoPurge}})}catch(c){}b._initializeWebGL=function(){if(this.canvas){if(!this._webGLContext||this._webGLContext.canvas!==this.canvas){var a={depth:!1,alpha:this._transparent,stencil:!0,antialias:this._antialias,premultipliedAlpha:this._premultiply,preserveDrawingBuffer:this._preserveBuffer},b=this._webGLContext=this._fetchWebGLContext(this.canvas,a);if(!b)return null;this.updateSimultaneousTextureCount(b.getParameter(b.MAX_TEXTURE_IMAGE_UNITS)),this._maxTextureSlots=b.getParameter(b.MAX_COMBINED_TEXTURE_IMAGE_UNITS),this._createBuffers(b),this._initTextures(b),b.disable(b.DEPTH_TEST),b.enable(b.BLEND),b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,b.ONE,b.ONE_MINUS_SRC_ALPHA),b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this._premultiply),this._webGLContext.clearColor(this._clearColor.r,this._clearColor.g,this._clearColor.b,this._clearColor.a),this.updateViewport(this._viewportWidth||this.canvas.width,this._viewportHeight||this.canvas.height)}}else this._webGLContext=null;return this._webGLContext},b.update=function(a){if(this.canvas){if(this.tickOnUpdate&&this.tick(a),this.dispatchEvent("drawstart"),this.autoClear&&this.clear(),this._webGLContext)this._batchDraw(this,this._webGLContext),-1==this._autoPurge||this._drawID%(this._autoPurge/2|0)||this.purgeTextures(this._autoPurge);else{var b=this.canvas.getContext("2d");b.save(),this.updateContext(b),this.draw(b,!1),b.restore()}this.dispatchEvent("drawend")}},b.clear=function(){if(this.canvas)if(a.isWebGLActive(this._webGLContext)){var b=this._webGLContext,c=this._clearColor,d=this._transparent?c.a:1;this._webGLContext.clearColor(c.r*d,c.g*d,c.b*d,d),b.clear(b.COLOR_BUFFER_BIT),this._webGLContext.clearColor(c.r,c.g,c.b,c.a)}else this.Stage_clear()},b.draw=function(b,c){if(b===this._webGLContext&&a.isWebGLActive(this._webGLContext)){var d=this._webGLContext;return this._batchDraw(this,d,c),!0}return this.Stage_draw(b,c)},b.cacheDraw=function(b,c,d){if(a.isWebGLActive(this._webGLContext)){var e=this._webGLContext;return this._cacheDraw(e,b,c,d),!0}return!1},b.protectTextureSlot=function(a,b){if(a>this._maxTextureSlots||0>a)throw"Slot outside of acceptable range";this._slotBlacklist[a]=!!b},b.getTargetRenderTexture=function(a,b,c){var d,e=!1,f=this._webGLContext;if(void 0!==a.__lastRT&&a.__lastRT===a.__rtA&&(e=!0),e?(void 0===a.__rtB?a.__rtB=this.getRenderBufferTexture(b,c):((b!=a.__rtB._width||c!=a.__rtB._height)&&this.resizeTexture(a.__rtB,b,c),this.setTextureParams(f)),d=a.__rtB):(void 0===a.__rtA?a.__rtA=this.getRenderBufferTexture(b,c):((b!=a.__rtA._width||c!=a.__rtA._height)&&this.resizeTexture(a.__rtA,b,c),this.setTextureParams(f)),d=a.__rtA),!d)throw"Problems creating render textures, known causes include using too much VRAM by not releasing WebGL texture instances";return a.__lastRT=d,d},b.releaseTexture=function(a){var b,c;if(a){if(a.children)for(b=0,c=a.children.length;c>b;b++)this.releaseTexture(a.children[b]);a.cacheCanvas&&a.uncache();var d=void 0;if(void 0!==a._storeID){if(a===this._textureDictionary[a._storeID])return this._killTextureObject(a),void(a._storeID=void 0);d=a}else if(2===a._webGLRenderStyle)d=a.image;else if(1===a._webGLRenderStyle){for(b=0,c=a.spriteSheet._images.length;c>b;b++)this.releaseTexture(a.spriteSheet._images[b]);return}if(void 0===d)return void(this.vocalDebug&&console.log("No associated texture found on release"));this._killTextureObject(this._textureDictionary[d._storeID]),d._storeID=void 0}},b.purgeTextures=function(a){void 0==a&&(a=100);for(var b=this._textureDictionary,c=b.length,d=0;c>d;d++){var e=b[d];e&&e._drawID+a<=this._drawID&&this._killTextureObject(e)}},b.updateSimultaneousTextureCount=function(a){var b=this._webGLContext,c=!1;for((1>a||isNaN(a))&&(a=1),this._batchTextureCount=a;!c;)try{this._activeShader=this._fetchShaderProgram(b),c=!0}catch(d){if(1==this._batchTextureCount)throw"Cannot compile shader "+d;this._batchTextureCount-=4,this._batchTextureCount<1&&(this._batchTextureCount=1),this.vocalDebug&&console.log("Reducing desired texture count due to errors: "+this._batchTextureCount)}},b.updateViewport=function(a,b){this._viewportWidth=0|a,this._viewportHeight=0|b;var c=this._webGLContext;c&&(c.viewport(0,0,this._viewportWidth,this._viewportHeight),this._projectionMatrix=new Float32Array([2/this._viewportWidth,0,0,0,0,-2/this._viewportHeight,1,0,0,0,1,0,-1,1,.1,0]),this._projectionMatrixFlip=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),this._projectionMatrixFlip.set(this._projectionMatrix),this._projectionMatrixFlip[5]*=-1,this._projectionMatrixFlip[13]*=-1)},b.getFilterShader=function(a){a||(a=this);var b=this._webGLContext,c=this._activeShader;if(a._builtShader)c=a._builtShader,a.shaderParamSetup&&(b.useProgram(c),a.shaderParamSetup(b,this,c));else try{c=this._fetchShaderProgram(b,"filter",a.VTX_SHADER_BODY,a.FRAG_SHADER_BODY,a.shaderParamSetup&&a.shaderParamSetup.bind(a)),a._builtShader=c,c._name=a.toString()}catch(d){console&&console.log("SHADER SWITCH FAILURE",d)}return c},b.getBaseTexture=function(a,b){var c=Math.ceil(a>0?a:1)||1,d=Math.ceil(b>0?b:1)||1,e=this._webGLContext,f=e.createTexture();return this.resizeTexture(f,c,d),this.setTextureParams(e,!1),f},b.resizeTexture=function(a,b,c){var d=this._webGLContext;d.bindTexture(d.TEXTURE_2D,a),d.texImage2D(d.TEXTURE_2D,0,d.RGBA,b,c,0,d.RGBA,d.UNSIGNED_BYTE,null),a.width=b,a.height=c},b.getRenderBufferTexture=function(a,b){var c=this._webGLContext,d=this.getBaseTexture(a,b);if(!d)return null;var e=c.createFramebuffer();return e?(d.width=a,d.height=b,c.bindFramebuffer(c.FRAMEBUFFER,e),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,d,0),e._renderTexture=d,d._frameBuffer=e,d._storeID=this._textureDictionary.length,this._textureDictionary[d._storeID]=d,c.bindFramebuffer(c.FRAMEBUFFER,null),d):null},b.setTextureParams=function(a,b){b&&this._antialias?(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR)):(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST)),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE)},b.setClearColor=function(a){var b,c,d,e,f;"string"==typeof a?0==a.indexOf("#")?(4==a.length&&(a="#"+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)+a.charAt(3)+a.charAt(3)),b=Number("0x"+a.slice(1,3))/255,c=Number("0x"+a.slice(3,5))/255,d=Number("0x"+a.slice(5,7))/255,e=Number("0x"+a.slice(7,9))/255):0==a.indexOf("rgba(")&&(f=a.slice(5,-1).split(","),b=Number(f[0])/255,c=Number(f[1])/255,d=Number(f[2])/255,e=Number(f[3])):(b=((4278190080&a)>>>24)/255,c=((16711680&a)>>>16)/255,d=((65280&a)>>>8)/255,e=(255&a)/255),this._clearColor.r=b||0,this._clearColor.g=c||0,this._clearColor.b=d||0,this._clearColor.a=e||0,this._webGLContext&&this._webGLContext.clearColor(this._clearColor.r,this._clearColor.g,this._clearColor.b,this._clearColor.a)},b.toString=function(){return"[StageGL (name="+this.name+")]" +},b._fetchWebGLContext=function(a,b){var c;try{c=a.getContext("webgl",b)||a.getContext("experimental-webgl",b)}catch(d){}if(c)c.viewportWidth=a.width,c.viewportHeight=a.height;else{var e="Could not initialize WebGL";console.error?console.error(e):console.log(e)}return c},b._fetchShaderProgram=function(b,c,d,e,f){b.useProgram(null);var g,h;switch(c){case"filter":h=a.COVER_VERTEX_HEADER+(d||a.COVER_VERTEX_BODY),g=a.COVER_FRAGMENT_HEADER+(e||a.COVER_FRAGMENT_BODY);break;case"particle":h=a.REGULAR_VERTEX_HEADER+a.PARTICLE_VERTEX_BODY,g=a.REGULAR_FRAGMENT_HEADER+a.PARTICLE_FRAGMENT_BODY;break;case"override":h=a.REGULAR_VERTEX_HEADER+(d||a.REGULAR_VERTEX_BODY),g=a.REGULAR_FRAGMENT_HEADER+(e||a.REGULAR_FRAGMENT_BODY);break;case"regular":default:h=a.REGULAR_VERTEX_HEADER+a.REGULAR_VERTEX_BODY,g=a.REGULAR_FRAGMENT_HEADER+a.REGULAR_FRAGMENT_BODY}var i=this._createShader(b,b.VERTEX_SHADER,h),j=this._createShader(b,b.FRAGMENT_SHADER,g),k=b.createProgram();if(b.attachShader(k,i),b.attachShader(k,j),b.linkProgram(k),k._type=c,!b.getProgramParameter(k,b.LINK_STATUS))throw b.useProgram(this._activeShader),b.getProgramInfoLog(k);switch(b.useProgram(k),c){case"filter":k.vertexPositionAttribute=b.getAttribLocation(k,"vertexPosition"),b.enableVertexAttribArray(k.vertexPositionAttribute),k.uvPositionAttribute=b.getAttribLocation(k,"uvPosition"),b.enableVertexAttribArray(k.uvPositionAttribute),k.samplerUniform=b.getUniformLocation(k,"uSampler"),b.uniform1i(k.samplerUniform,0),k.uprightUniform=b.getUniformLocation(k,"uUpright"),b.uniform1f(k.uprightUniform,0),f&&f(b,this,k);break;case"override":case"particle":case"regular":default:k.vertexPositionAttribute=b.getAttribLocation(k,"vertexPosition"),b.enableVertexAttribArray(k.vertexPositionAttribute),k.uvPositionAttribute=b.getAttribLocation(k,"uvPosition"),b.enableVertexAttribArray(k.uvPositionAttribute),k.textureIndexAttribute=b.getAttribLocation(k,"textureIndex"),b.enableVertexAttribArray(k.textureIndexAttribute),k.alphaAttribute=b.getAttribLocation(k,"objectAlpha"),b.enableVertexAttribArray(k.alphaAttribute);for(var l=[],m=0;md;d+=c)h[d]=h[d+1]=0;b.bufferData(b.ARRAY_BUFFER,h,b.DYNAMIC_DRAW),g.itemSize=c,g.numItems=f;var i=this._uvPositionBuffer=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,i),c=2;var j=this._uvs=new Float32Array(f*c);for(d=0,e=j.length;e>d;d+=c)j[d]=j[d+1]=0;b.bufferData(b.ARRAY_BUFFER,j,b.DYNAMIC_DRAW),i.itemSize=c,i.numItems=f;var k=this._textureIndexBuffer=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,k),c=1;var l=this._indices=new Float32Array(f*c);for(d=0,e=l.length;e>d;d++)l[d]=0;b.bufferData(b.ARRAY_BUFFER,l,b.DYNAMIC_DRAW),k.itemSize=c,k.numItems=f;var m=this._alphaBuffer=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,m),c=1;var n=this._alphas=new Float32Array(f*c);for(d=0,e=n.length;e>d;d++)n[d]=1;b.bufferData(b.ARRAY_BUFFER,n,b.DYNAMIC_DRAW),m.itemSize=c,m.numItems=f},b._initTextures=function(){this._lastTextureInsert=-1,this._textureDictionary=[],this._textureIDs={},this._baseTextures=[],this._batchTextures=[];for(var a=0;a a.MAX_TEXTURE_SIZE||b.height>a.MAX_TEXTURE_SIZE)&&console&&console.error("Oversized Texture: "+b.width+"x"+b.height+" vs "+a.MAX_TEXTURE_SIZE+"max"))},b._insertTextureInBatch=function(a,b){if(this._batchTextures[b._activeIndex]!==b){var c=-1,d=(this._lastTextureInsert+1)%this._batchTextureCount,e=d;do{if(this._batchTextures[e]._batchID!=this._batchID&&!this._slotBlacklist[e]){c=e;break}e=(e+1)%this._batchTextureCount}while(e!==d);-1===c&&(this.batchReason="textureOverflow",this._drawBuffers(a),this.batchCardCount=0,c=d),this._batchTextures[c]=b,b._activeIndex=c;var f=b._imageData;f&&f._invalid&&void 0!==b._drawID?this._updateTextureImageData(a,f):(a.activeTexture(a.TEXTURE0+c),a.bindTexture(a.TEXTURE_2D,b),this.setTextureParams(a)),this._lastTextureInsert=c}else{var f=b._imageData;void 0!=b._storeID&&f&&f._invalid&&this._updateTextureImageData(a,f)}b._drawID=this._drawID,b._batchID=this._batchID},b._killTextureObject=function(a){if(a){var b=this._webGLContext;if(void 0!==a._storeID&&a._storeID>=0){this._textureDictionary[a._storeID]=void 0;for(var c in this._textureIDs)this._textureIDs[c]==a._storeID&&delete this._textureIDs[c];a._imageData&&(a._imageData._storeID=void 0),a._imageData=a._storeID=void 0}void 0!==a._activeIndex&&this._batchTextures[a._activeIndex]===a&&(this._batchTextures[a._activeIndex]=this._baseTextures[a._activeIndex]);try{a._frameBuffer&&b.deleteFramebuffer(a._frameBuffer),a._frameBuffer=void 0}catch(d){this.vocalDebug&&console.log(d)}try{b.deleteTexture(a)}catch(d){this.vocalDebug&&console.log(d)}}},b._backupBatchTextures=function(a,b){var c=this._webGLContext;this._backupTextures||(this._backupTextures=[]),void 0===b&&(b=this._backupTextures);for(var d=0;d 0&&this._drawBuffers(b),this._isDrawing++,this._drawID++,this.batchCardCount=0,this.depth=0,this._appendToBatchGroup(a,b,new createjs.Matrix2D,this.alpha,c),this.batchReason="drawFinish",this._drawBuffers(b),this._isDrawing--},b._cacheDraw=function(a,b,c,d){var e,f=this._activeShader,g=this._slotBlacklist,h=this._maxTextureSlots-1,i=this._viewportWidth,j=this._viewportHeight;this.protectTextureSlot(h,!0);var k=b.getMatrix();k=k.clone(),k.scale(1/d.scale,1/d.scale),k=k.invert(),k.translate(-d.offX/d.scale*b.scaleX,-d.offY/d.scale*b.scaleY);var l=this._cacheContainer;l.children=[b],l.transformMatrix=k,this._backupBatchTextures(!1),c&&c.length?this._drawFilters(b,c,d):this.isCacheControlled?(a.clear(a.COLOR_BUFFER_BIT),this._batchDraw(l,a,!0)):(a.activeTexture(a.TEXTURE0+h),b.cacheCanvas=this.getTargetRenderTexture(b,d._drawWidth,d._drawHeight),e=b.cacheCanvas,a.bindFramebuffer(a.FRAMEBUFFER,e._frameBuffer),this.updateViewport(d._drawWidth,d._drawHeight),this._projectionMatrix=this._projectionMatrixFlip,a.clear(a.COLOR_BUFFER_BIT),this._batchDraw(l,a,!0),a.bindFramebuffer(a.FRAMEBUFFER,null),this.updateViewport(i,j)),this._backupBatchTextures(!0),this.protectTextureSlot(h,!1),this._activeShader=f,this._slotBlacklist=g},b._drawFilters=function(a,b,c){var d,e=this._webGLContext,f=this._maxTextureSlots-1,g=this._viewportWidth,h=this._viewportHeight,i=this._cacheContainer,j=b.length;e.activeTexture(e.TEXTURE0+f),d=this.getTargetRenderTexture(a,c._drawWidth,c._drawHeight),e.bindFramebuffer(e.FRAMEBUFFER,d._frameBuffer),this.updateViewport(c._drawWidth,c._drawHeight),e.clear(e.COLOR_BUFFER_BIT),this._batchDraw(i,e,!0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,d),this.setTextureParams(e);var k=!1,l=0,m=b[l];do this._activeShader=this.getFilterShader(m),this._activeShader&&(e.activeTexture(e.TEXTURE0+f),d=this.getTargetRenderTexture(a,c._drawWidth,c._drawHeight),e.bindFramebuffer(e.FRAMEBUFFER,d._frameBuffer),e.viewport(0,0,c._drawWidth,c._drawHeight),e.clear(e.COLOR_BUFFER_BIT),this._drawCover(e,k),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,d),this.setTextureParams(e),(j>1||b[0]._multiPass)&&(k=!k),m=null!==m._multiPass?m._multiPass:b[++l]);while(m);this.isCacheControlled?(e.bindFramebuffer(e.FRAMEBUFFER,null),this.updateViewport(g,h),this._activeShader=this.getFilterShader(this),e.clear(e.COLOR_BUFFER_BIT),this._drawCover(e,k)):(k&&(e.activeTexture(e.TEXTURE0+f),d=this.getTargetRenderTexture(a,c._drawWidth,c._drawHeight),e.bindFramebuffer(e.FRAMEBUFFER,d._frameBuffer),this._activeShader=this.getFilterShader(this),e.viewport(0,0,c._drawWidth,c._drawHeight),e.clear(e.COLOR_BUFFER_BIT),this._drawCover(e,!k)),e.bindFramebuffer(e.FRAMEBUFFER,null),this.updateViewport(g,h),a.cacheCanvas=d)},b._appendToBatchGroup=function(b,c,d,e,f){b._glMtx||(b._glMtx=new createjs.Matrix2D);var g=b._glMtx;g.copy(d),b.transformMatrix?g.appendMatrix(b.transformMatrix):g.appendTransform(b.x,b.y,b.scaleX,b.scaleY,b.rotation,b.skewX,b.skewY,b.regX,b.regY);for(var h,i,j,k,l=b.children.length,m=0;l>m;m++){var n=b.children[m];if(n.visible&&e)if(n.cacheCanvas&&!f||(n._updateState&&n._updateState(),!n.children)){this.batchCardCount+1>this._maxCardsPerBatch&&(this.batchReason="vertexOverflow",this._drawBuffers(c),this.batchCardCount=0),n._glMtx||(n._glMtx=new createjs.Matrix2D);var o=n._glMtx;o.copy(g),n.transformMatrix?o.appendMatrix(n.transformMatrix):o.appendTransform(n.x,n.y,n.scaleX,n.scaleY,n.rotation,n.skewX,n.skewY,n.regX,n.regY);var p,q,r,s,t,u,v=n.cacheCanvas&&!f;if(2===n._webGLRenderStyle||v)r=(f?!1:n.cacheCanvas)||n.image;else{if(1!==n._webGLRenderStyle)continue;if(s=n.spriteSheet.getFrame(n.currentFrame),null===s)continue;r=s.image}var w=this._uvs,x=this._vertices,y=this._indices,z=this._alphas;if(r){if(void 0===r._storeID)t=this._loadTextureImage(c,r),this._insertTextureInBatch(c,t);else{if(t=this._textureDictionary[r._storeID],!t){this.vocalDebug&&console.log("Texture should not be looked up while not being stored.");continue}t._batchID!==this._batchID&&this._insertTextureInBatch(c,t)}if(q=t._activeIndex,2===n._webGLRenderStyle||v)!v&&n.sourceRect?(n._uvRect||(n._uvRect={}),u=n.sourceRect,p=n._uvRect,p.t=u.y/r.height,p.l=u.x/r.width,p.b=(u.y+u.height)/r.height,p.r=(u.x+u.width)/r.width,h=0,i=0,j=u.width+h,k=u.height+i):(p=a.UV_RECT,v?(u=n.bitmapCache,h=u.x+u._filterOffX/u.scale,i=u.y+u._filterOffY/u.scale,j=u._drawWidth/u.scale+h,k=u._drawHeight/u.scale+i):(h=0,i=0,j=r.width+h,k=r.height+i));else if(1===n._webGLRenderStyle){var A=s.rect;p=s.uvRect,p||(p=a.buildUVRects(n.spriteSheet,n.currentFrame,!1)),h=-s.regX,i=-s.regY,j=A.width-s.regX,k=A.height-s.regY}var B=this.batchCardCount*a.INDICIES_PER_CARD,C=2*B;x[C]=h*o.a+i*o.c+o.tx,x[C+1]=h*o.b+i*o.d+o.ty,x[C+2]=h*o.a+k*o.c+o.tx,x[C+3]=h*o.b+k*o.d+o.ty,x[C+4]=j*o.a+i*o.c+o.tx,x[C+5]=j*o.b+i*o.d+o.ty,x[C+6]=x[C+2],x[C+7]=x[C+3],x[C+8]=x[C+4],x[C+9]=x[C+5],x[C+10]=j*o.a+k*o.c+o.tx,x[C+11]=j*o.b+k*o.d+o.ty,w[C]=p.l,w[C+1]=p.t,w[C+2]=p.l,w[C+3]=p.b,w[C+4]=p.r,w[C+5]=p.t,w[C+6]=p.l,w[C+7]=p.b,w[C+8]=p.r,w[C+9]=p.t,w[C+10]=p.r,w[C+11]=p.b,y[B]=y[B+1]=y[B+2]=y[B+3]=y[B+4]=y[B+5]=q,z[B]=z[B+1]=z[B+2]=z[B+3]=z[B+4]=z[B+5]=n.alpha*e,this.batchCardCount++}}else this._appendToBatchGroup(n,c,g,n.alpha*e)}},b._drawBuffers=function(b){if(!(this.batchCardCount<=0)){this.vocalDebug&&console.log("Draw["+this._drawID+":"+this._batchID+"] : "+this.batchReason);var c=this._activeShader,d=this._vertexPositionBuffer,e=this._textureIndexBuffer,f=this._uvPositionBuffer,g=this._alphaBuffer;b.useProgram(c),b.bindBuffer(b.ARRAY_BUFFER,d),b.vertexAttribPointer(c.vertexPositionAttribute,d.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,this._vertices),b.bindBuffer(b.ARRAY_BUFFER,e),b.vertexAttribPointer(c.textureIndexAttribute,e.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,this._indices),b.bindBuffer(b.ARRAY_BUFFER,f),b.vertexAttribPointer(c.uvPositionAttribute,f.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,this._uvs),b.bindBuffer(b.ARRAY_BUFFER,g),b.vertexAttribPointer(c.alphaAttribute,g.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,this._alphas),b.uniformMatrix4fv(c.pMatrixUniform,b.FALSE,this._projectionMatrix);for(var h=0;h 0&&this._drawBuffers(b),this.vocalDebug&&console.log("Draw["+this._drawID+":"+this._batchID+"] : Cover");var d=this._activeShader,e=this._vertexPositionBuffer,f=this._uvPositionBuffer;b.clear(b.COLOR_BUFFER_BIT),b.useProgram(d),b.bindBuffer(b.ARRAY_BUFFER,e),b.vertexAttribPointer(d.vertexPositionAttribute,e.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,a.COVER_VERT),b.bindBuffer(b.ARRAY_BUFFER,f),b.vertexAttribPointer(d.uvPositionAttribute,f.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,c?a.COVER_UV_FLIP:a.COVER_UV),b.uniform1i(d.samplerUniform,0),b.uniform1f(d.uprightUniform,c?0:1),b.drawArrays(b.TRIANGLES,0,a.INDICIES_PER_CARD)},createjs.StageGL=createjs.promote(a,"Stage")}(),this.createjs=this.createjs||{},function(){function a(a){this.DisplayObject_constructor(),"string"==typeof a?(this.image=document.createElement("img"),this.image.src=a):this.image=a,this.sourceRect=null,this._webGLRenderStyle=createjs.DisplayObject._StageGL_BITMAP}var b=createjs.extend(a,createjs.DisplayObject);b.initialize=a,b.isVisible=function(){var a=this.image,b=this.cacheCanvas||a&&(a.naturalWidth||a.getContext||a.readyState>=2);return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&b)},b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;var c=this.image,d=this.sourceRect;if(c.getImage&&(c=c.getImage()),!c)return!0;if(d){var e=d.x,f=d.y,g=e+d.width,h=f+d.height,i=0,j=0,k=c.width,l=c.height;0>e&&(i-=e,e=0),g>k&&(g=k),0>f&&(j-=f,f=0),h>l&&(h=l),a.drawImage(c,e,f,g-e,h-f,i,j,g-e,h-f)}else a.drawImage(c,0,0);return!0},b.getBounds=function(){var a=this.DisplayObject_getBounds();if(a)return a;var b=this.image,c=this.sourceRect||b,d=b&&(b.naturalWidth||b.getContext||b.readyState>=2);return d?this._rectangle.setValues(0,0,c.width,c.height):null},b.clone=function(b){var c=this.image;c&&b&&(c=c.cloneNode());var d=new a(c);return this.sourceRect&&(d.sourceRect=this.sourceRect.clone()),this._cloneProps(d),d},b.toString=function(){return"[Bitmap (name="+this.name+")]"},createjs.Bitmap=createjs.promote(a,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.DisplayObject_constructor(),this.currentFrame=0,this.currentAnimation=null,this.paused=!0,this.spriteSheet=a,this.currentAnimationFrame=0,this.framerate=0,this._animation=null,this._currentFrame=null,this._skipAdvance=!1,this._webGLRenderStyle=createjs.DisplayObject._StageGL_SPRITE,null!=b&&this.gotoAndPlay(b)}var b=createjs.extend(a,createjs.DisplayObject);b.initialize=a,b.isVisible=function(){var a=this.cacheCanvas||this.spriteSheet.complete;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&a)},b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;this._normalizeFrame();var c=this.spriteSheet.getFrame(0|this._currentFrame);if(!c)return!1;var d=c.rect;return d.width&&d.height&&a.drawImage(c.image,d.x,d.y,d.width,d.height,-c.regX,-c.regY,d.width,d.height),!0},b.play=function(){this.paused=!1},b.stop=function(){this.paused=!0},b.gotoAndPlay=function(a){this.paused=!1,this._skipAdvance=!0,this._goto(a)},b.gotoAndStop=function(a){this.paused=!0,this._goto(a)},b.advance=function(a){var b=this.framerate||this.spriteSheet.framerate,c=b&&null!=a?a/(1e3/b):1;this._normalizeFrame(c)},b.getBounds=function(){return this.DisplayObject_getBounds()||this.spriteSheet.getFrameBounds(this.currentFrame,this._rectangle)},b.clone=function(){return this._cloneProps(new a(this.spriteSheet))},b.toString=function(){return"[Sprite (name="+this.name+")]"},b._cloneProps=function(a){return this.DisplayObject__cloneProps(a),a.currentFrame=this.currentFrame,a.currentAnimation=this.currentAnimation,a.paused=this.paused,a.currentAnimationFrame=this.currentAnimationFrame,a.framerate=this.framerate,a._animation=this._animation,a._currentFrame=this._currentFrame,a._skipAdvance=this._skipAdvance,a},b._tick=function(a){this.paused||(this._skipAdvance||this.advance(a&&a.delta),this._skipAdvance=!1),this.DisplayObject__tick(a)},b._normalizeFrame=function(a){a=a||0;var b,c=this._animation,d=this.paused,e=this._currentFrame;if(c){var f=c.speed||1,g=this.currentAnimationFrame;if(b=c.frames.length,g+a*f>=b){var h=c.next;if(this._dispatchAnimationEnd(c,e,d,h,b-1))return;if(h)return this._goto(h,a-(b-g)/f);this.paused=!0,g=c.frames.length-1}else g+=a*f;this.currentAnimationFrame=g,this._currentFrame=c.frames[0|g]}else if(e=this._currentFrame+=a,b=this.spriteSheet.getNumFrames(),e>=b&&b>0&&!this._dispatchAnimationEnd(c,e,d,b-1)&&(this._currentFrame-=b)>=b)return this._normalizeFrame();e=0|this._currentFrame,this.currentFrame!=e&&(this.currentFrame=e,this.dispatchEvent("change"))},b._dispatchAnimationEnd=function(a,b,c,d,e){var f=a?a.name:null;if(this.hasEventListener("animationend")){var g=new createjs.Event("animationend");g.name=f,g.next=d,this.dispatchEvent(g)}var h=this._animation!=a||this._currentFrame!=b;return h||c||!this.paused||(this.currentAnimationFrame=e,h=!0),h},b._goto=function(a,b){if(this.currentAnimationFrame=0,isNaN(a)){var c=this.spriteSheet.getAnimation(a);c&&(this._animation=c,this.currentAnimation=a,this._normalizeFrame(b))}else this.currentAnimation=this._animation=null,this._currentFrame=a,this._normalizeFrame()},createjs.Sprite=createjs.promote(a,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.DisplayObject_constructor(),this.graphics=a?a:new createjs.Graphics}var b=createjs.extend(a,createjs.DisplayObject);b.isVisible=function(){var a=this.cacheCanvas||this.graphics&&!this.graphics.isEmpty();return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&a)},b.draw=function(a,b){return this.DisplayObject_draw(a,b)?!0:(this.graphics.draw(a,this),!0)},b.clone=function(b){var c=b&&this.graphics?this.graphics.clone():this.graphics;return this._cloneProps(new a(c))},b.toString=function(){return"[Shape (name="+this.name+")]"},createjs.Shape=createjs.promote(a,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.DisplayObject_constructor(),this.text=a,this.font=b,this.color=c,this.textAlign="left",this.textBaseline="top",this.maxWidth=null,this.outline=0,this.lineHeight=0,this.lineWidth=null}var b=createjs.extend(a,createjs.DisplayObject),c=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");c.getContext&&(a._workingContext=c.getContext("2d"),c.width=c.height=1),a.H_OFFSETS={start:0,left:0,center:-.5,end:-1,right:-1},a.V_OFFSETS={top:0,hanging:-.01,middle:-.4,alphabetic:-.8,ideographic:-.85,bottom:-1},b.isVisible=function(){var a=this.cacheCanvas||null!=this.text&&""!==this.text;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&a)},b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;var c=this.color||"#000";return this.outline?(a.strokeStyle=c,a.lineWidth=1*this.outline):a.fillStyle=c,this._drawText(this._prepContext(a)),!0},b.getMeasuredWidth=function(){return this._getMeasuredWidth(this.text)},b.getMeasuredLineHeight=function(){return 1.2*this._getMeasuredWidth("M")},b.getMeasuredHeight=function(){return this._drawText(null,{}).height},b.getBounds=function(){var b=this.DisplayObject_getBounds();if(b)return b;if(null==this.text||""===this.text)return null;var c=this._drawText(null,{}),d=this.maxWidth&&this.maxWidth 20?this.text.substr(0,17)+"...":this.text)+")]"},b._cloneProps=function(a){return this.DisplayObject__cloneProps(a),a.textAlign=this.textAlign,a.textBaseline=this.textBaseline,a.maxWidth=this.maxWidth,a.outline=this.outline,a.lineHeight=this.lineHeight,a.lineWidth=this.lineWidth,a},b._prepContext=function(a){return a.font=this.font||"10px sans-serif",a.textAlign=this.textAlign||"left",a.textBaseline=this.textBaseline||"top",a.lineJoin="miter",a.miterLimit=2.5,a},b._drawText=function(b,c,d){var e=!!b;e||(b=a._workingContext,b.save(),this._prepContext(b));for(var f=this.lineHeight||this.getMeasuredLineHeight(),g=0,h=0,i=String(this.text).split(/(?:\r\n|\r|\n)/),j=0,k=i.length;k>j;j++){var l=i[j],m=null;if(null!=this.lineWidth&&(m=b.measureText(l).width)>this.lineWidth){var n=l.split(/(\s)/);l=n[0],m=b.measureText(l).width;for(var o=1,p=n.length;p>o;o+=2){var q=b.measureText(n[o]+n[o+1]).width;m+q>this.lineWidth?(e&&this._drawTextLine(b,l,h*f),d&&d.push(l),m>g&&(g=m),l=n[o+1],m=b.measureText(l).width,h++):(l+=n[o]+n[o+1],m+=q)}}e&&this._drawTextLine(b,l,h*f),d&&d.push(l),c&&null==m&&(m=b.measureText(l).width),m>g&&(g=m),h++}return c&&(c.width=g,c.height=h*f),e||b.restore(),c},b._drawTextLine=function(a,b,c){this.outline?a.strokeText(b,0,c,this.maxWidth||65535):a.fillText(b,0,c,this.maxWidth||65535)},b._getMeasuredWidth=function(b){var c=a._workingContext;c.save();var d=this._prepContext(c).measureText(b).width;return c.restore(),d},createjs.Text=createjs.promote(a,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.Container_constructor(),this.text=a||"",this.spriteSheet=b,this.lineHeight=0,this.letterSpacing=0,this.spaceWidth=0,this._oldProps={text:0,spriteSheet:0,lineHeight:0,letterSpacing:0,spaceWidth:0},this._oldStage=null,this._drawAction=null}var b=createjs.extend(a,createjs.Container);a.maxPoolSize=100,a._spritePool=[],b.draw=function(a,b){this.DisplayObject_draw(a,b)||(this._updateState(),this.Container_draw(a,b))},b.getBounds=function(){return this._updateText(),this.Container_getBounds()},b.isVisible=function(){var a=this.cacheCanvas||this.spriteSheet&&this.spriteSheet.complete&&this.text;return!!(this.visible&&this.alpha>0&&0!==this.scaleX&&0!==this.scaleY&&a)},b.clone=function(){return this._cloneProps(new a(this.text,this.spriteSheet))},b.addChild=b.addChildAt=b.removeChild=b.removeChildAt=b.removeAllChildren=function(){},b._updateState=function(){this._updateText()},b._cloneProps=function(a){return this.Container__cloneProps(a),a.lineHeight=this.lineHeight,a.letterSpacing=this.letterSpacing,a.spaceWidth=this.spaceWidth,a},b._getFrameIndex=function(a,b){var c,d=b.getAnimation(a);return d||(a!=(c=a.toUpperCase())||a!=(c=a.toLowerCase())||(c=null),c&&(d=b.getAnimation(c))),d&&d.frames[0]},b._getFrame=function(a,b){var c=this._getFrameIndex(a,b);return null==c?c:b.getFrame(c)},b._getLineHeight=function(a){var b=this._getFrame("1",a)||this._getFrame("T",a)||this._getFrame("L",a)||a.getFrame(0);return b?b.rect.height:1},b._getSpaceWidth=function(a){var b=this._getFrame("1",a)||this._getFrame("l",a)||this._getFrame("e",a)||this._getFrame("a",a)||a.getFrame(0);return b?b.rect.width:1},b._updateText=function(){var b,c=0,d=0,e=this._oldProps,f=!1,g=this.spaceWidth,h=this.lineHeight,i=this.spriteSheet,j=a._spritePool,k=this.children,l=0,m=k.length;for(var n in e)e[n]!=this[n]&&(e[n]=this[n],f=!0);if(f){var o=!!this._getFrame(" ",i);o||g||(g=this._getSpaceWidth(i)),h||(h=this._getLineHeight(i));for(var p=0,q=this.text.length;q>p;p++){var r=this.text.charAt(p);if(" "!=r||o)if("\n"!=r&&"\r"!=r){var s=this._getFrameIndex(r,i);null!=s&&(m>l?b=k[l]:(k.push(b=j.length?j.pop():new createjs.Sprite),b.parent=this,m++),b.spriteSheet=i,b.gotoAndStop(s),b.x=c,b.y=d,l++,c+=b.getBounds().width+this.letterSpacing)}else"\r"==r&&"\n"==this.text.charAt(p+1)&&p++,c=0,d+=h;else c+=g}for(;m>l;)j.push(b=k.pop()),b.parent=null,m--;j.length>a.maxPoolSize&&(j.length=a.maxPoolSize)}},createjs.BitmapText=createjs.promote(a,"Container")}(),this.createjs=this.createjs||{},function(){"use strict";function a(b){this.Container_constructor(),!a.inited&&a.init();var c,d,e,f;b instanceof String||arguments.length>1?(c=b,d=arguments[1],e=arguments[2],f=arguments[3],null==e&&(e=-1),b=null):b&&(c=b.mode,d=b.startPosition,e=b.loop,f=b.labels),b||(b={labels:f}),this.mode=c||a.INDEPENDENT,this.startPosition=d||0,this.loop=e===!0?-1:e||0,this.currentFrame=0,this.paused=b.paused||!1,this.actionsEnabled=!0,this.autoReset=!0,this.frameBounds=this.frameBounds||b.frameBounds,this.framerate=null,b.useTicks=b.paused=!0,this.timeline=new createjs.Timeline(b),this._synchOffset=0,this._rawPosition=-1,this._bound_resolveState=this._resolveState.bind(this),this._t=0,this._managed={}}function b(){throw"MovieClipPlugin cannot be instantiated."}var c=createjs.extend(a,createjs.Container);a.INDEPENDENT="independent",a.SINGLE_FRAME="single",a.SYNCHED="synched",a.inited=!1,a.init=function(){a.inited||(b.install(),a.inited=!0)},c._getLabels=function(){return this.timeline.getLabels()},c.getLabels=createjs.deprecate(c._getLabels,"MovieClip.getLabels"),c._getCurrentLabel=function(){return this.timeline.currentLabel},c.getCurrentLabel=createjs.deprecate(c._getCurrentLabel,"MovieClip.getCurrentLabel"),c._getDuration=function(){return this.timeline.duration},c.getDuration=createjs.deprecate(c._getDuration,"MovieClip.getDuration");try{Object.defineProperties(c,{labels:{get:c._getLabels},currentLabel:{get:c._getCurrentLabel},totalFrames:{get:c._getDuration},duration:{get:c._getDuration}})}catch(d){}c.initialize=a,c.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)},c.draw=function(a,b){return this.DisplayObject_draw(a,b)?!0:(this._updateState(),this.Container_draw(a,b),!0)},c.play=function(){this.paused=!1},c.stop=function(){this.paused=!0},c.gotoAndPlay=function(a){this.paused=!1,this._goto(a)},c.gotoAndStop=function(a){this.paused=!0,this._goto(a)},c.advance=function(b){var c=a.INDEPENDENT;if(this.mode===c){for(var d=this,e=d.framerate;(d=d.parent)&&null===e;)d.mode===c&&(e=d._framerate);if(this._framerate=e,!this.paused){var f=null!==e&&-1!==e&&null!==b?b/(1e3/e)+this._t:1,g=0|f;for(this._t=f-g;g--;)this._updateTimeline(this._rawPosition+1,!1)}}},c.clone=function(){throw"MovieClip cannot be cloned."},c.toString=function(){return"[MovieClip (name="+this.name+")]"},c._updateState=function(){(-1===this._rawPosition||this.mode!==a.INDEPENDENT)&&this._updateTimeline(-1)},c._tick=function(a){this.advance(a&&a.delta),this.Container__tick(a)},c._goto=function(a){var b=this.timeline.resolve(a);null!=b&&(this._t=0,this._updateTimeline(b,!0))},c._reset=function(){this._rawPosition=-1,this._t=this.currentFrame=0,this.paused=!1},c._updateTimeline=function(b,c){var d=this.mode!==a.INDEPENDENT,e=this.timeline;d&&(b=this.startPosition+(this.mode===a.SINGLE_FRAME?0:this._synchOffset)),0>b&&(b=0),(this._rawPosition!==b||d)&&(this._rawPosition=b,e.loop=this.loop,e.setPosition(b,d||!this.actionsEnabled,c,this._bound_resolveState))},c._renderFirstFrame=function(){var a=this.timeline,b=a.rawPosition;a.setPosition(0,!0,!0,this._bound_resolveState),a.rawPosition=b},c._resolveState=function(){var a=this.timeline;this.currentFrame=a.position;for(var b in this._managed)this._managed[b]=1;for(var c=a.tweens,d=0,e=c.length;e>d;d++){var f=c[d],g=f.target;if(g!==this&&!f.passive){var h=f._stepPosition;g instanceof createjs.DisplayObject?this._addManagedChild(g,h):this._setState(g.state,h)}}var i=this.children;for(d=i.length-1;d>=0;d--){var j=i[d].id;1===this._managed[j]&&(this.removeChildAt(d),delete this._managed[j])}},c._setState=function(a,b){if(a)for(var c=a.length-1;c>=0;c--){var d=a[c],e=d.t,f=d.p;for(var g in f)e[g]=f[g];this._addManagedChild(e,b)}},c._addManagedChild=function(b,c){b._off||(this.addChildAt(b,0),b instanceof a&&(b._synchOffset=c,b.mode===a.INDEPENDENT&&b.autoReset&&!this._managed[b.id]&&b._reset()),this._managed[b.id]=2)},c._getBounds=function(a,b){var c=this.DisplayObject_getBounds();return c||this.frameBounds&&(c=this._rectangle.copy(this.frameBounds[this.currentFrame])),c?this._transformBounds(c,a,b):this.Container__getBounds(a,b)},createjs.MovieClip=createjs.promote(a,"Container"),b.priority=100,b.ID="MovieClip",b.install=function(){createjs.Tween._installPlugin(b)},b.init=function(c,d){"startPosition"===d&&c.target instanceof a&&c._addPlugin(b)},b.step=function(){},b.change=function(a,b,c,d,e){return"startPosition"===c?1===e?b.props[c]:b.prev.props[c]:void 0}}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"SpriteSheetUtils cannot be instantiated"}var b=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");b.getContext&&(a._workingCanvas=b,a._workingContext=b.getContext("2d"),b.width=b.height=1),a.extractFrame=function(b,c){isNaN(c)&&(c=b.getAnimation(c).frames[0]);var d=b.getFrame(c);if(!d)return null;var e=d.rect,f=a._workingCanvas;f.width=e.width,f.height=e.height,a._workingContext.drawImage(d.image,e.x,e.y,e.width,e.height,0,0,e.width,e.height);var g=document.createElement("img");return g.src=f.toDataURL("image/png"),g},a.addFlippedFrames=createjs.deprecate(null,"SpriteSheetUtils.addFlippedFrames"),a.mergeAlpha=createjs.deprecate(null,"SpriteSheetUtils.mergeAlpha"),a._flip=function(b,c,d,e){for(var f=b._images,g=a._workingCanvas,h=a._workingContext,i=f.length/c,j=0;i>j;j++){var k=f[j];k.__tmp=j,h.setTransform(1,0,0,1,0,0),h.clearRect(0,0,g.width+1,g.height+1),g.width=k.width,g.height=k.height,h.setTransform(d?-1:1,0,0,e?-1:1,d?k.width:0,e?k.height:0),h.drawImage(k,0,0);var l=document.createElement("img");l.src=g.toDataURL("image/png"),l.width=k.width||k.naturalWidth,l.height=k.height||k.naturalHeight,f.push(l)}var m=b._frames,n=m.length/c;for(j=0;n>j;j++){k=m[j]; +var o=k.rect.clone();l=f[k.image.__tmp+i*c];var p={image:l,rect:o,regX:k.regX,regY:k.regY};d&&(o.x=(l.width||l.naturalWidth)-o.x-o.width,p.regX=o.width-k.regX),e&&(o.y=(l.height||l.naturalHeight)-o.y-o.height,p.regY=o.height-k.regY),m.push(p)}var q="_"+(d?"h":"")+(e?"v":""),r=b._animations,s=b._data,t=r.length/c;for(j=0;t>j;j++){var u=r[j];k=s[u];var v={name:u+q,speed:k.speed,next:k.next,frames:[]};k.next&&(v.next+=q),m=k.frames;for(var w=0,x=m.length;x>w;w++)v.frames.push(m[w]+n*c);s[v.name]=v,r.push(v.name)}},createjs.SpriteSheetUtils=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.EventDispatcher_constructor(),this.maxWidth=2048,this.maxHeight=2048,this.spriteSheet=null,this.scale=1,this.padding=1,this.timeSlice=.3,this.progress=-1,this.framerate=a||0,this._frames=[],this._animations={},this._data=null,this._nextFrameIndex=0,this._index=0,this._timerID=null,this._scale=1}var b=createjs.extend(a,createjs.EventDispatcher);a.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimensions",a.ERR_RUNNING="a build is already running",b.addFrame=function(b,c,d,e,f){if(this._data)throw a.ERR_RUNNING;var g=c||b.bounds||b.nominalBounds;return!g&&b.getBounds&&(g=b.getBounds()),g?(d=d||1,this._frames.push({source:b,sourceRect:g,scale:d,funct:e,data:f,index:this._frames.length,height:g.height*d})-1):null},b.addAnimation=function(b,c,d,e){if(this._data)throw a.ERR_RUNNING;this._animations[b]={frames:c,next:d,speed:e}},b.addMovieClip=function(b,c,d,e,f,g){if(this._data)throw a.ERR_RUNNING;var h=b.frameBounds,i=c||b.bounds||b.nominalBounds;if(!i&&b.getBounds&&(i=b.getBounds()),i||h){var j,k,l=this._frames.length,m=b.timeline.duration;for(j=0;m>j;j++){var n=h&&h[j]?h[j]:i;this.addFrame(b,n,d,this._setupMovieClipFrame,{i:j,f:e,d:f})}var o=b.timeline._labels,p=[];for(var q in o)p.push({index:o[q],label:q});if(p.length)for(p.sort(function(a,b){return a.index-b.index}),j=0,k=p.length;k>j;j++){for(var r=p[j].label,s=l+p[j].index,t=l+(j==k-1?m:p[j+1].index),u=[],v=s;t>v;v++)u.push(v);(!g||(r=g(r,b,s,t)))&&this.addAnimation(r,u,!0)}}},b.build=function(){if(this._data)throw a.ERR_RUNNING;for(this._startBuild();this._drawNext(););return this._endBuild(),this.spriteSheet},b.buildAsync=function(b){if(this._data)throw a.ERR_RUNNING;this.timeSlice=b,this._startBuild();var c=this;this._timerID=setTimeout(function(){c._run()},50-50*Math.max(.01,Math.min(.99,this.timeSlice||.3)))},b.stopAsync=function(){clearTimeout(this._timerID),this._data=null},b.clone=function(){throw"SpriteSheetBuilder cannot be cloned."},b.toString=function(){return"[SpriteSheetBuilder]"},b._startBuild=function(){var b=this.padding||0;this.progress=0,this.spriteSheet=null,this._index=0,this._scale=this.scale;var c=[];this._data={images:[],frames:c,framerate:this.framerate,animations:this._animations};var d=this._frames.slice();if(d.sort(function(a,b){return a.height<=b.height?-1:1}),d[d.length-1].height+2*b>this.maxHeight)throw a.ERR_DIMENSIONS;for(var e=0,f=0,g=0;d.length;){var h=this._fillRow(d,e,g,c,b);if(h.w>f&&(f=h.w),e+=h.h,!h.h||!d.length){var i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");i.width=this._getSize(f,this.maxWidth),i.height=this._getSize(e,this.maxHeight),this._data.images[g]=i,h.h||(f=e=0,g++)}}},b._setupMovieClipFrame=function(a,b){var c=a.actionsEnabled;a.actionsEnabled=!1,a.gotoAndStop(b.i),a.actionsEnabled=c,b.f&&b.f(a,b.d,b.i)},b._getSize=function(a,b){for(var c=4;Math.pow(2,++c)=0;l--){var m=b[l],n=this._scale*m.scale,o=m.sourceRect,p=m.source,q=Math.floor(n*o.x-f),r=Math.floor(n*o.y-f),s=Math.ceil(n*o.height+2*f),t=Math.ceil(n*o.width+2*f);if(t>g)throw a.ERR_DIMENSIONS;s>i||j+t>g||(m.img=d,m.rect=new createjs.Rectangle(j,c,t,s),k=k||s,b.splice(l,1),e[m.index]=[j,c,t,s,d,Math.round(-q+n*p.regX-f),Math.round(-r+n*p.regY-f)],j+=t)}return{w:j,h:k}},b._endBuild=function(){this.spriteSheet=new createjs.SpriteSheet(this._data),this._data=null,this.progress=1,this.dispatchEvent("complete")},b._run=function(){for(var a=50*Math.max(.01,Math.min(.99,this.timeSlice||.3)),b=(new Date).getTime()+a,c=!1;b>(new Date).getTime();)if(!this._drawNext()){c=!0;break}if(c)this._endBuild();else{var d=this;this._timerID=setTimeout(function(){d._run()},50-a)}var e=this.progress=this._index/this._frames.length;if(this.hasEventListener("progress")){var f=new createjs.Event("progress");f.progress=e,this.dispatchEvent(f)}},b._drawNext=function(){var a=this._frames[this._index],b=a.scale*this._scale,c=a.rect,d=a.sourceRect,e=this._data.images[a.img],f=e.getContext("2d");return a.funct&&a.funct(a.source,a.data),f.save(),f.beginPath(),f.rect(c.x,c.y,c.width,c.height),f.clip(),f.translate(Math.ceil(c.x-d.x*b),Math.ceil(c.y-d.y*b)),f.scale(b,b),a.source.draw(f),f.restore(),++this._index =!!d)return b;for(var e=0;d>e;e++){var f=c[e];if(f&&f.getBounds){var g=f.getBounds();g&&(0==e?b.setValues(g.x,g.y,g.width,g.height):b.extend(g.x,g.y,g.width,g.height))}}return b},b.toString=function(){return"[BitmapCache]"},b.define=function(a,b,c,d,e,f,g){if(!a)throw"No symbol to cache";this._options=g,this.target=a,this.width=d>=1?d:1,this.height=e>=1?e:1,this.x=b||0,this.y=c||0,this.scale=f||1,this.update()},b.update=function(b){if(!this.target)throw"define() must be called before update()";var c=a.getFilterBounds(this.target),d=this.target.cacheCanvas;this._drawWidth=Math.ceil(this.width*this.scale)+c.width,this._drawHeight=Math.ceil(this.height*this.scale)+c.height,d&&this._drawWidth==d.width&&this._drawHeight==d.height||this._updateSurface(),this._filterOffX=c.x,this._filterOffY=c.y,this.offX=this.x*this.scale+this._filterOffX,this.offY=this.y*this.scale+this._filterOffY,this._drawToCache(b),this.cacheID=this.cacheID?this.cacheID+1:1},b.release=function(){if(this._webGLCache)this._webGLCache.isCacheControlled||(this.__lastRT&&(this.__lastRT=void 0),this.__rtA&&this._webGLCache._killTextureObject(this.__rtA),this.__rtB&&this._webGLCache._killTextureObject(this.__rtB),this.target&&this.target.cacheCanvas&&this._webGLCache._killTextureObject(this.target.cacheCanvas)),this._webGLCache=!1;else{var a=this.target.stage;a instanceof createjs.StageGL&&a.releaseTexture(this.target.cacheCanvas)}this.target=this.target.cacheCanvas=null,this.cacheID=this._cacheDataURLID=this._cacheDataURL=void 0,this.width=this.height=this.x=this.y=this.offX=this.offY=0,this.scale=1},b.getCacheDataURL=function(){var a=this.target&&this.target.cacheCanvas;return a?(this.cacheID!=this._cacheDataURLID&&(this._cacheDataURLID=this.cacheID,this._cacheDataURL=a.toDataURL?a.toDataURL():null),this._cacheDataURL):null},b.draw=function(a){return this.target?(a.drawImage(this.target.cacheCanvas,this.x+this._filterOffX/this.scale,this.y+this._filterOffY/this.scale,this._drawWidth/this.scale,this._drawHeight/this.scale),!0):!1},b._updateSurface=function(){if(!this._options||!this._options.useGL){var a=this.target.cacheCanvas;return a||(a=this.target.cacheCanvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")),a.width=this._drawWidth,void(a.height=this._drawHeight)}if(!this._webGLCache)if("stage"===this._options.useGL){if(!this.target.stage||!this.target.stage.isWebGL){var b="Cannot use 'stage' for cache because the object's parent stage is ";throw b+=this.target.stage?"non WebGL.":"not set, please addChild to the correct stage."}this.target.cacheCanvas=!0,this._webGLCache=this.target.stage}else if("new"===this._options.useGL)this.target.cacheCanvas=document.createElement("canvas"),this._webGLCache=new createjs.StageGL(this.target.cacheCanvas,{antialias:!0,transparent:!0,autoPurge:-1}),this._webGLCache.isCacheControlled=!0;else{if(!(this._options.useGL instanceof createjs.StageGL))throw"Invalid option provided to useGL, expected ['stage', 'new', StageGL, undefined], got "+this._options.useGL;this.target.cacheCanvas=!0,this._webGLCache=this._options.useGL,this._webGLCache.isCacheControlled=!0}var a=this.target.cacheCanvas,c=this._webGLCache;c.isCacheControlled&&(a.width=this._drawWidth,a.height=this._drawHeight,c.updateViewport(this._drawWidth,this._drawHeight)),this.target.filters?(c.getTargetRenderTexture(this.target,this._drawWidth,this._drawHeight),c.getTargetRenderTexture(this.target,this._drawWidth,this._drawHeight)):c.isCacheControlled||c.getTargetRenderTexture(this.target,this._drawWidth,this._drawHeight)},b._drawToCache=function(a){var b=this.target.cacheCanvas,c=this.target,d=this._webGLCache;if(d)d.cacheDraw(c,c.filters,this),b=this.target.cacheCanvas,b.width=this._drawWidth,b.height=this._drawHeight;else{var e=b.getContext("2d");a||e.clearRect(0,0,this._drawWidth+1,this._drawHeight+1),e.save(),e.globalCompositeOperation=a,e.setTransform(this.scale,0,0,this.scale,-this._filterOffX,-this._filterOffY),e.translate(-this.x,-this.y),c.draw(e,!0),e.restore(),c.filters&&c.filters.length&&this._applyFilters(e)}b._invalid=!0},b._applyFilters=function(a){var b,c=this.target.filters,d=this._drawWidth,e=this._drawHeight,f=0,g=c[f];do g.usesContext?(b&&(a.putImageData(b,0,0),b=null),g.applyFilter(a,0,0,d,e)):(b||(b=a.getImageData(0,0,d,e)),g._applyFilter(b)),g=null!==g._multiPass?g._multiPass:c[++f];while(g);b&&a.putImageData(b,0,0)},createjs.BitmapCache=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.Filter_constructor(),this._blurX=a,this._blurXTable=[],this._lastBlurX=null,this._blurY=b,this._blurYTable=[],this._lastBlurY=null,this._quality,this._lastQuality=null,this.FRAG_SHADER_TEMPLATE="uniform float xWeight[{{blurX}}];uniform float yWeight[{{blurY}}];uniform vec2 textureOffset;void main(void) {vec4 color = vec4(0.0);float xAdj = ({{blurX}}.0-1.0)/2.0;float yAdj = ({{blurY}}.0-1.0)/2.0;vec2 sampleOffset;for(int i=0; i<{{blurX}}; i++) {for(int j=0; j<{{blurY}}; j++) {sampleOffset = vRenderCoord + (textureOffset * vec2(float(i)-xAdj, float(j)-yAdj));color += texture2D(uSampler, sampleOffset) * (xWeight[i] * yWeight[j]);}}gl_FragColor = color.rgba;}",(isNaN(c)||1>c)&&(c=1),this.setQuality(0|c)}var b=createjs.extend(a,createjs.Filter);b.getBlurX=function(){return this._blurX},b.getBlurY=function(){return this._blurY},b.setBlurX=function(a){(isNaN(a)||0>a)&&(a=0),this._blurX=a},b.setBlurY=function(a){(isNaN(a)||0>a)&&(a=0),this._blurY=a},b.getQuality=function(){return this._quality},b.setQuality=function(a){(isNaN(a)||0>a)&&(a=0),this._quality=0|a},b._getShader=function(){var a=this._lastBlurX!==this._blurX,b=this._lastBlurY!==this._blurY,c=this._lastQuality!==this._quality;return a||b||c?((a||c)&&(this._blurXTable=this._getTable(this._blurX*this._quality)),(b||c)&&(this._blurYTable=this._getTable(this._blurY*this._quality)),this._updateShader(),this._lastBlurX=this._blurX,this._lastBlurY=this._blurY,void(this._lastQuality=this._quality)):this._compiledShader},b._setShader=function(){this._compiledShader};try{Object.defineProperties(b,{blurX:{get:b.getBlurX,set:b.setBlurX},blurY:{get:b.getBlurY,set:b.setBlurY},quality:{get:b.getQuality,set:b.setQuality},_builtShader:{get:b._getShader,set:b._setShader}})}catch(c){console.log(c)}b._getTable=function(a){var b=4.2;if(1>=a)return[1];var c=[],d=Math.ceil(2*a);d+=d%2?0:1;for(var e=d/2|0,f=-e;e>=f;f++){var g=f/e*b;c.push(1/Math.sqrt(2*Math.PI)*Math.pow(Math.E,-(Math.pow(g,2)/4)))}var h=c.reduce(function(a,b){return a+b});return c.map(function(a){return a/h})},b._updateShader=function(){if(void 0!==this._blurX&&void 0!==this._blurY){var a=this.FRAG_SHADER_TEMPLATE;a=a.replace(/\{\{blurX\}\}/g,this._blurXTable.length.toFixed(0)),a=a.replace(/\{\{blurY\}\}/g,this._blurYTable.length.toFixed(0)),this.FRAG_SHADER_BODY=a}},b.shaderParamSetup=function(a,b,c){a.uniform1fv(a.getUniformLocation(c,"xWeight"),this._blurXTable),a.uniform1fv(a.getUniformLocation(c,"yWeight"),this._blurYTable),a.uniform2f(a.getUniformLocation(c,"textureOffset"),2/(b._viewportWidth*this._quality),2/(b._viewportHeight*this._quality))},a.MUL_TABLE=[1,171,205,293,57,373,79,137,241,27,391,357,41,19,283,265,497,469,443,421,25,191,365,349,335,161,155,149,9,278,269,261,505,245,475,231,449,437,213,415,405,395,193,377,369,361,353,345,169,331,325,319,313,307,301,37,145,285,281,69,271,267,263,259,509,501,493,243,479,118,465,459,113,446,55,435,429,423,209,413,51,403,199,393,97,3,379,375,371,367,363,359,355,351,347,43,85,337,333,165,327,323,5,317,157,311,77,305,303,75,297,294,73,289,287,71,141,279,277,275,68,135,67,133,33,262,260,129,511,507,503,499,495,491,61,121,481,477,237,235,467,232,115,457,227,451,7,445,221,439,218,433,215,427,425,211,419,417,207,411,409,203,202,401,399,396,197,49,389,387,385,383,95,189,47,187,93,185,23,183,91,181,45,179,89,177,11,175,87,173,345,343,341,339,337,21,167,83,331,329,327,163,81,323,321,319,159,79,315,313,39,155,309,307,153,305,303,151,75,299,149,37,295,147,73,291,145,289,287,143,285,71,141,281,35,279,139,69,275,137,273,17,271,135,269,267,133,265,33,263,131,261,130,259,129,257,1],a.SHG_TABLE=[0,9,10,11,9,12,10,11,12,9,13,13,10,9,13,13,14,14,14,14,10,13,14,14,14,13,13,13,9,14,14,14,15,14,15,14,15,15,14,15,15,15,14,15,15,15,15,15,14,15,15,15,15,15,15,12,14,15,15,13,15,15,15,15,16,16,16,15,16,14,16,16,14,16,13,16,16,16,15,16,13,16,15,16,14,9,16,16,16,16,16,16,16,16,16,13,14,16,16,15,16,16,10,16,15,16,14,16,16,14,16,16,14,16,16,14,15,16,16,16,14,15,14,15,13,16,16,15,17,17,17,17,17,17,14,15,17,17,16,16,17,16,15,17,16,17,11,17,16,17,16,17,16,17,17,16,17,17,16,17,17,16,16,17,17,17,16,14,17,17,17,17,15,16,14,16,15,16,13,16,15,16,14,16,15,16,12,16,15,16,17,17,17,17,17,13,16,15,17,17,17,16,15,17,17,17,16,15,17,17,14,16,17,17,16,17,17,16,15,17,16,14,17,16,15,17,16,17,17,16,17,15,16,17,14,17,16,15,17,16,17,13,17,16,17,17,16,17,14,17,16,17,16,17,16,17,9],b.getBounds=function(a){var b=0|this.blurX,c=0|this.blurY;if(0>=b&&0>=c)return a;var d=Math.pow(this.quality,.2);return(a||new createjs.Rectangle).pad(c*d+1,b*d+1,c*d+1,b*d+1)},b.clone=function(){return new a(this.blurX,this.blurY,this.quality)},b.toString=function(){return"[BlurFilter]"},b._applyFilter=function(b){var c=this._blurX>>1;if(isNaN(c)||0>c)return!1;var d=this._blurY>>1;if(isNaN(d)||0>d)return!1;if(0==c&&0==d)return!1;var e=this.quality;(isNaN(e)||1>e)&&(e=1),e|=0,e>3&&(e=3),1>e&&(e=1);var f=b.data,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=c+c+1|0,w=d+d+1|0,x=0|b.width,y=0|b.height,z=x-1|0,A=y-1|0,B=c+1|0,C=d+1|0,D={r:0,b:0,g:0,a:0},E=D;for(i=1;v>i;i++)E=E.n={r:0,b:0,g:0,a:0};E.n=D;var F={r:0,b:0,g:0,a:0},G=F;for(i=1;w>i;i++)G=G.n={r:0,b:0,g:0,a:0};G.n=F;for(var H=null,I=0|a.MUL_TABLE[c],J=0|a.SHG_TABLE[c],K=0|a.MUL_TABLE[d],L=0|a.SHG_TABLE[d];e-->0;){m=l=0;var M=I,N=J;for(h=y;--h>-1;){for(n=B*(r=f[0|l]),o=B*(s=f[l+1|0]),p=B*(t=f[l+2|0]),q=B*(u=f[l+3|0]),E=D,i=B;--i>-1;)E.r=r,E.g=s,E.b=t,E.a=u,E=E.n;for(i=1;B>i;i++)j=l+((i>z?z:i)<<2)|0,n+=E.r=f[j],o+=E.g=f[j+1],p+=E.b=f[j+2],q+=E.a=f[j+3],E=E.n;for(H=D,g=0;x>g;g++)f[l++]=n*M>>>N,f[l++]=o*M>>>N,f[l++]=p*M>>>N,f[l++]=q*M>>>N,j=m+((j=g+c+1) g;g++){for(l=g<<2|0,n=C*(r=f[l])|0,o=C*(s=f[l+1|0])|0,p=C*(t=f[l+2|0])|0,q=C*(u=f[l+3|0])|0,G=F,i=0;C>i;i++)G.r=r,G.g=s,G.b=t,G.a=u,G=G.n;for(k=x,i=1;d>=i;i++)l=k+g<<2,n+=G.r=f[l],o+=G.g=f[l+1],p+=G.b=f[l+2],q+=G.a=f[l+3],G=G.n,A>i&&(k+=x);if(l=g,H=F,e>0)for(h=0;y>h;h++)j=l<<2,f[j+3]=u=q*M>>>N,u>0?(f[j]=n*M>>>N,f[j+1]=o*M>>>N,f[j+2]=p*M>>>N):f[j]=f[j+1]=f[j+2]=0,j=g+((j=h+C)h;h++)j=l<<2,f[j+3]=u=q*M>>>N,u>0?(u=255/u,f[j]=(n*M>>>N)*u,f[j+1]=(o*M>>>N)*u,f[j+2]=(p*M>>>N)*u):f[j]=f[j+1]=f[j+2]=0,j=g+((j=h+C)d;d+=4)b[d+3]=c[d]||0;return!0},b._prepAlphaMap=function(){if(!this.alphaMap)return!1;if(this.alphaMap==this._alphaMap&&this._mapData)return!0;this._mapData=null;var a,b=this._alphaMap=this.alphaMap,c=b;b instanceof HTMLCanvasElement?a=c.getContext("2d"):(c=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"),c.width=b.width,c.height=b.height,a=c.getContext("2d"),a.drawImage(b,0,0));try{var d=a.getImageData(0,0,b.width,b.height)}catch(e){return!1}return this._mapData=d.data,!0},createjs.AlphaMapFilter=createjs.promote(a,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.Filter_constructor(),this.mask=a,this.usesContext=!0,this.FRAG_SHADER_BODY="uniform sampler2D uAlphaSampler;void main(void) {vec4 color = texture2D(uSampler, vRenderCoord);vec4 alphaMap = texture2D(uAlphaSampler, vTextureCoord);gl_FragColor = vec4(color.rgb, color.a * alphaMap.a);}"}var b=createjs.extend(a,createjs.Filter);b.shaderParamSetup=function(a,b,c){this._mapTexture||(this._mapTexture=a.createTexture()),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this._mapTexture),b.setTextureParams(a),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.mask),a.uniform1i(a.getUniformLocation(c,"uAlphaSampler"),1)},b.applyFilter=function(a,b,c,d,e,f,g,h){return this.mask?(f=f||a,null==g&&(g=b),null==h&&(h=c),f.save(),a!=f?!1:(f.globalCompositeOperation="destination-in",f.drawImage(this.mask,g,h),f.restore(),!0)):!0},b.clone=function(){return new a(this.mask)},b.toString=function(){return"[AlphaMaskFilter]"},createjs.AlphaMaskFilter=createjs.promote(a,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d,e,f,g,h){this.Filter_constructor(),this.redMultiplier=null!=a?a:1,this.greenMultiplier=null!=b?b:1,this.blueMultiplier=null!=c?c:1,this.alphaMultiplier=null!=d?d:1,this.redOffset=e||0,this.greenOffset=f||0,this.blueOffset=g||0,this.alphaOffset=h||0,this.FRAG_SHADER_BODY="uniform vec4 uColorMultiplier;uniform vec4 uColorOffset;void main(void) {vec4 color = texture2D(uSampler, vRenderCoord);gl_FragColor = (color * uColorMultiplier) + uColorOffset;}"}var b=createjs.extend(a,createjs.Filter);b.shaderParamSetup=function(a,b,c){a.uniform4f(a.getUniformLocation(c,"uColorMultiplier"),this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier),a.uniform4f(a.getUniformLocation(c,"uColorOffset"),this.redOffset/255,this.greenOffset/255,this.blueOffset/255,this.alphaOffset/255)},b.toString=function(){return"[ColorFilter]"},b.clone=function(){return new a(this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset)},b._applyFilter=function(a){for(var b=a.data,c=b.length,d=0;c>d;d+=4)b[d]=b[d]*this.redMultiplier+this.redOffset,b[d+1]=b[d+1]*this.greenMultiplier+this.greenOffset,b[d+2]=b[d+2]*this.blueMultiplier+this.blueOffset,b[d+3]=b[d+3]*this.alphaMultiplier+this.alphaOffset;return!0},createjs.ColorFilter=createjs.promote(a,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d){this.setColor(a,b,c,d)}var b=a.prototype;a.DELTA_INDEX=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],a.IDENTITY_MATRIX=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1],a.LENGTH=a.IDENTITY_MATRIX.length,b.setColor=function(a,b,c,d){return this.reset().adjustColor(a,b,c,d)},b.reset=function(){return this.copy(a.IDENTITY_MATRIX)},b.adjustColor=function(a,b,c,d){return this.adjustHue(d),this.adjustContrast(b),this.adjustBrightness(a),this.adjustSaturation(c)},b.adjustBrightness=function(a){return 0==a||isNaN(a)?this:(a=this._cleanValue(a,255),this._multiplyMatrix([1,0,0,0,a,0,1,0,0,a,0,0,1,0,a,0,0,0,1,0,0,0,0,0,1]),this)},b.adjustContrast=function(b){if(0==b||isNaN(b))return this;b=this._cleanValue(b,100);var c;return 0>b?c=127+b/100*127:(c=b%1,c=0==c?a.DELTA_INDEX[b]:a.DELTA_INDEX[b<<0]*(1-c)+a.DELTA_INDEX[(b<<0)+1]*c,c=127*c+127),this._multiplyMatrix([c/127,0,0,0,.5*(127-c),0,c/127,0,0,.5*(127-c),0,0,c/127,0,.5*(127-c),0,0,0,1,0,0,0,0,0,1]),this},b.adjustSaturation=function(a){if(0==a||isNaN(a))return this;a=this._cleanValue(a,100);var b=1+(a>0?3*a/100:a/100),c=.3086,d=.6094,e=.082;return this._multiplyMatrix([c*(1-b)+b,d*(1-b),e*(1-b),0,0,c*(1-b),d*(1-b)+b,e*(1-b),0,0,c*(1-b),d*(1-b),e*(1-b)+b,0,0,0,0,0,1,0,0,0,0,0,1]),this},b.adjustHue=function(a){if(0==a||isNaN(a))return this;a=this._cleanValue(a,180)/180*Math.PI;var b=Math.cos(a),c=Math.sin(a),d=.213,e=.715,f=.072;return this._multiplyMatrix([d+b*(1-d)+c*-d,e+b*-e+c*-e,f+b*-f+c*(1-f),0,0,d+b*-d+.143*c,e+b*(1-e)+.14*c,f+b*-f+c*-.283,0,0,d+b*-d+c*-(1-d),e+b*-e+c*e,f+b*(1-f)+c*f,0,0,0,0,0,1,0,0,0,0,0,1]),this},b.concat=function(b){return b=this._fixMatrix(b),b.length!=a.LENGTH?this:(this._multiplyMatrix(b),this)},b.clone=function(){return(new a).copy(this)},b.toArray=function(){for(var b=[],c=0,d=a.LENGTH;d>c;c++)b[c]=this[c];return b},b.copy=function(b){for(var c=a.LENGTH,d=0;c>d;d++)this[d]=b[d];return this},b.toString=function(){return"[ColorMatrix]"},b._multiplyMatrix=function(a){var b,c,d,e=[];for(b=0;5>b;b++){for(c=0;5>c;c++)e[c]=this[c+5*b];for(c=0;5>c;c++){var f=0;for(d=0;5>d;d++)f+=a[c+5*d]*e[d];this[c+5*b]=f}}},b._cleanValue=function(a,b){return Math.min(b,Math.max(-b,a))},b._fixMatrix=function(b){return b instanceof a&&(b=b.toArray()),b.length a.LENGTH&&(b=b.slice(0,a.LENGTH)),b},createjs.ColorMatrix=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.Filter_constructor(),this.matrix=a,this.FRAG_SHADER_BODY="uniform mat4 uColorMatrix;uniform vec4 uColorMatrixOffset;void main(void) {vec4 color = texture2D(uSampler, vRenderCoord);mat4 m = uColorMatrix;vec4 newColor = vec4(0,0,0,0);newColor.r = color.r*m[0][0] + color.g*m[0][1] + color.b*m[0][2] + color.a*m[0][3];newColor.g = color.r*m[1][0] + color.g*m[1][1] + color.b*m[1][2] + color.a*m[1][3];newColor.b = color.r*m[2][0] + color.g*m[2][1] + color.b*m[2][2] + color.a*m[2][3];newColor.a = color.r*m[3][0] + color.g*m[3][1] + color.b*m[3][2] + color.a*m[3][3];gl_FragColor = newColor + uColorMatrixOffset;}"}var b=createjs.extend(a,createjs.Filter);b.shaderParamSetup=function(a,b,c){var d=this.matrix,e=new Float32Array([d[0],d[1],d[2],d[3],d[5],d[6],d[7],d[8],d[10],d[11],d[12],d[13],d[15],d[16],d[17],d[18]]);a.uniformMatrix4fv(a.getUniformLocation(c,"uColorMatrix"),!1,e),a.uniform4f(a.getUniformLocation(c,"uColorMatrixOffset"),d[4]/255,d[9]/255,d[14]/255,d[19]/255)},b.toString=function(){return"[ColorMatrixFilter]"},b.clone=function(){return new a(this.matrix)},b._applyFilter=function(a){for(var b,c,d,e,f=a.data,g=f.length,h=this.matrix,i=h[0],j=h[1],k=h[2],l=h[3],m=h[4],n=h[5],o=h[6],p=h[7],q=h[8],r=h[9],s=h[10],t=h[11],u=h[12],v=h[13],w=h[14],x=h[15],y=h[16],z=h[17],A=h[18],B=h[19],C=0;g>C;C+=4)b=f[C],c=f[C+1],d=f[C+2],e=f[C+3],f[C]=b*i+c*j+d*k+e*l+m,f[C+1]=b*n+c*o+d*p+e*q+r,f[C+2]=b*s+c*t+d*u+e*v+w,f[C+3]=b*x+c*y+d*z+e*A+B;return!0},createjs.ColorMatrixFilter=createjs.promote(a,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"Touch cannot be instantiated"}a.isSupported=function(){return!!("ontouchstart"in window||window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>0||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>0)},a.enable=function(b,c,d){return b&&b.canvas&&a.isSupported()?b.__touch?!0:(b.__touch={pointers:{},multitouch:!c,preventDefault:!d,count:0},"ontouchstart"in window?a._IOS_enable(b):(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&a._IE_enable(b),!0):!1},a.disable=function(b){b&&("ontouchstart"in window?a._IOS_disable(b):(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&a._IE_disable(b),delete b.__touch)},a._IOS_enable=function(b){var c=b.canvas,d=b.__touch.f=function(c){a._IOS_handleEvent(b,c)};c.addEventListener("touchstart",d,!1),c.addEventListener("touchmove",d,!1),c.addEventListener("touchend",d,!1),c.addEventListener("touchcancel",d,!1)},a._IOS_disable=function(a){var b=a.canvas;if(b){var c=a.__touch.f;b.removeEventListener("touchstart",c,!1),b.removeEventListener("touchmove",c,!1),b.removeEventListener("touchend",c,!1),b.removeEventListener("touchcancel",c,!1)}},a._IOS_handleEvent=function(a,b){if(a){a.__touch.preventDefault&&b.preventDefault&&b.preventDefault();for(var c=b.changedTouches,d=b.type,e=0,f=c.length;f>e;e++){var g=c[e],h=g.identifier;g.target==a.canvas&&("touchstart"==d?this._handleStart(a,h,b,g.pageX,g.pageY):"touchmove"==d?this._handleMove(a,h,b,g.pageX,g.pageY):("touchend"==d||"touchcancel"==d)&&this._handleEnd(a,h,b))}}},a._IE_enable=function(b){var c=b.canvas,d=b.__touch.f=function(c){a._IE_handleEvent(b,c)};void 0===window.navigator.pointerEnabled?(c.addEventListener("MSPointerDown",d,!1),window.addEventListener("MSPointerMove",d,!1),window.addEventListener("MSPointerUp",d,!1),window.addEventListener("MSPointerCancel",d,!1),b.__touch.preventDefault&&(c.style.msTouchAction="none")):(c.addEventListener("pointerdown",d,!1),window.addEventListener("pointermove",d,!1),window.addEventListener("pointerup",d,!1),window.addEventListener("pointercancel",d,!1),b.__touch.preventDefault&&(c.style.touchAction="none")),b.__touch.activeIDs={}},a._IE_disable=function(a){var b=a.__touch.f;void 0===window.navigator.pointerEnabled?(window.removeEventListener("MSPointerMove",b,!1),window.removeEventListener("MSPointerUp",b,!1),window.removeEventListener("MSPointerCancel",b,!1),a.canvas&&a.canvas.removeEventListener("MSPointerDown",b,!1)):(window.removeEventListener("pointermove",b,!1),window.removeEventListener("pointerup",b,!1),window.removeEventListener("pointercancel",b,!1),a.canvas&&a.canvas.removeEventListener("pointerdown",b,!1))},a._IE_handleEvent=function(a,b){if(a){a.__touch.preventDefault&&b.preventDefault&&b.preventDefault();var c=b.type,d=b.pointerId,e=a.__touch.activeIDs;if("MSPointerDown"==c||"pointerdown"==c){if(b.srcElement!=a.canvas)return;e[d]=!0,this._handleStart(a,d,b,b.pageX,b.pageY)}else e[d]&&("MSPointerMove"==c||"pointermove"==c?this._handleMove(a,d,b,b.pageX,b.pageY):("MSPointerUp"==c||"MSPointerCancel"==c||"pointerup"==c||"pointercancel"==c)&&(delete e[d],this._handleEnd(a,d,b)))}},a._handleStart=function(a,b,c,d,e){var f=a.__touch;if(f.multitouch||!f.count){var g=f.pointers;g[b]||(g[b]=!0,f.count++,a._handlePointerDown(b,c,d,e))}},a._handleMove=function(a,b,c,d,e){a.__touch.pointers[b]&&a._handlePointerMove(b,c,d,e)},a._handleEnd=function(a,b,c){var d=a.__touch,e=d.pointers;e[b]&&(d.count--,a._handlePointerUp(b,c,!0),delete e[b])},createjs.Touch=a}(),this.createjs=this.createjs||{},function(){"use strict";var a=createjs.EaselJS=createjs.EaselJS||{};a.version="NEXT",a.buildDate="Thu, 14 Sep 2017 22:19:48 GMT"}(); \ No newline at end of file diff --git a/_assets/libs/soundjs-NEXT.min.js b/_assets/libs/soundjs-NEXT.min.js new file mode 100644 index 00000000..89ba7fc4 --- /dev/null +++ b/_assets/libs/soundjs-NEXT.min.js @@ -0,0 +1,18 @@ +/*! +* @license SoundJS +* Visit http://createjs.com/ for documentation, updates and examples. +* +* Copyright (c) 2011-2015 gskinner.com, inc. +* +* Distributed under the terms of the MIT license. +* http://www.opensource.org/licenses/mit-license.html +* +* This notice shall be included in all copies or substantial portions of the Software. +*/ + +/**! + * SoundJS FlashAudioPlugin also includes swfobject (http://code.google.com/p/swfobject/) + */ + +this.createjs=this.createjs||{},function(){var a=createjs.SoundJS=createjs.SoundJS||{};a.version="NEXT",a.buildDate="Thu, 14 Sep 2017 22:19:45 GMT"}(),this.createjs=this.createjs||{},createjs.extend=function(a,b){"use strict";function c(){this.constructor=a}return c.prototype=b.prototype,a.prototype=new c},this.createjs=this.createjs||{},createjs.promote=function(a,b){"use strict";var c=a.prototype,d=Object.getPrototypeOf&&Object.getPrototypeOf(c)||c.__proto__;if(d){c[(b+="_")+"constructor"]=d.constructor;for(var e in d)c.hasOwnProperty(e)&&"function"==typeof d[e]&&(c[b+e]=d[e])}return a},this.createjs=this.createjs||{},createjs.deprecate=function(a,b){"use strict";return function(){var c="Deprecated property or method '"+b+"'. See docs for info.";return console&&(console.warn?console.warn(c):console.log(c)),a&&a.apply(this,arguments)}},this.createjs=this.createjs||{},createjs.indexOf=function(a,b){"use strict";for(var c=0,d=a.length;d>c;c++)if(b===a[c])return c;return-1},this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(a,b){var c=Array.prototype.slice.call(arguments,2);return function(){return a.apply(b,Array.prototype.slice.call(arguments,0).concat(c))}}}(),this.createjs=this.createjs||{},function(){"use strict";function BrowserDetect(){throw"BrowserDetect cannot be instantiated"}var a=BrowserDetect.agent=window.navigator.userAgent;BrowserDetect.isWindowPhone=a.indexOf("IEMobile")>-1||a.indexOf("Windows Phone")>-1,BrowserDetect.isFirefox=a.indexOf("Firefox")>-1,BrowserDetect.isOpera=null!=window.opera,BrowserDetect.isChrome=a.indexOf("Chrome")>-1,BrowserDetect.isIOS=(a.indexOf("iPod")>-1||a.indexOf("iPhone")>-1||a.indexOf("iPad")>-1)&&!BrowserDetect.isWindowPhone,BrowserDetect.isAndroid=a.indexOf("Android")>-1&&!BrowserDetect.isWindowPhone,BrowserDetect.isBlackberry=a.indexOf("Blackberry")>-1,createjs.BrowserDetect=BrowserDetect}(),this.createjs=this.createjs||{},function(){"use strict";function EventDispatcher(){this._listeners=null,this._captureListeners=null}var a=EventDispatcher.prototype;EventDispatcher.initialize=function(b){b.addEventListener=a.addEventListener,b.on=a.on,b.removeEventListener=b.off=a.removeEventListener,b.removeAllEventListeners=a.removeAllEventListeners,b.hasEventListener=a.hasEventListener,b.dispatchEvent=a.dispatchEvent,b._dispatchEvent=a._dispatchEvent,b.willTrigger=a.willTrigger},a.addEventListener=function(a,b,c){var d;d=c?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var e=d[a];return e&&this.removeEventListener(a,b,c),e=d[a],e?e.push(b):d[a]=[b],b},a.on=function(a,b,c,d,e,f){return b.handleEvent&&(c=c||b,b=b.handleEvent),c=c||this,this.addEventListener(a,function(a){b.call(c,a,e),d&&a.remove()},f)},a.removeEventListener=function(a,b,c){var d=c?this._captureListeners:this._listeners;if(d){var e=d[a];if(e)for(var f=0,g=e.length;g>f;f++)if(e[f]==b){1==g?delete d[a]:e.splice(f,1);break}}},a.off=a.removeEventListener,a.removeAllEventListeners=function(a){a?(this._listeners&&delete this._listeners[a],this._captureListeners&&delete this._captureListeners[a]):this._listeners=this._captureListeners=null},a.dispatchEvent=function(a,b,c){if("string"==typeof a){var d=this._listeners;if(!(b||d&&d[a]))return!0;a=new createjs.Event(a,b,c)}else a.target&&a.clone&&(a=a.clone());try{a.target=this}catch(e){}if(a.bubbles&&this.parent){for(var f=this,g=[f];f.parent;)g.push(f=f.parent);var h,i=g.length;for(h=i-1;h>=0&&!a.propagationStopped;h--)g[h]._dispatchEvent(a,1+(0==h));for(h=1;i>h&&!a.propagationStopped;h++)g[h]._dispatchEvent(a,3)}else this._dispatchEvent(a,2);return!a.defaultPrevented},a.hasEventListener=function(a){var b=this._listeners,c=this._captureListeners;return!!(b&&b[a]||c&&c[a])},a.willTrigger=function(a){for(var b=this;b;){if(b.hasEventListener(a))return!0;b=b.parent}return!1},a.toString=function(){return"[EventDispatcher]"},a._dispatchEvent=function(a,b){var c,d,e=2>=b?this._captureListeners:this._listeners;if(a&&e&&(d=e[a.type])&&(c=d.length)){try{a.currentTarget=this}catch(f){}try{a.eventPhase=0|b}catch(f){}a.removed=!1,d=d.slice();for(var g=0;c>g&&!a.immediatePropagationStopped;g++){var h=d[g];h.handleEvent?h.handleEvent(a):h(a),a.removed&&(this.off(a.type,h,1==b),a.removed=!1)}}2===b&&this._dispatchEvent(a,2.1)},createjs.EventDispatcher=EventDispatcher}(),this.createjs=this.createjs||{},function(){"use strict";function Event(a,b,c){this.type=a,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!b,this.cancelable=!!c,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var a=Event.prototype;a.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},a.stopPropagation=function(){this.propagationStopped=!0},a.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},a.remove=function(){this.removed=!0},a.clone=function(){return new Event(this.type,this.bubbles,this.cancelable)},a.set=function(a){for(var b in a)this[b]=a[b];return this},a.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=Event}(),this.createjs=this.createjs||{},function(){"use strict";function ErrorEvent(a,b,c){this.Event_constructor("error"),this.title=a,this.message=b,this.data=c}var a=createjs.extend(ErrorEvent,createjs.Event);a.clone=function(){return new createjs.ErrorEvent(this.title,this.message,this.data)},createjs.ErrorEvent=createjs.promote(ErrorEvent,"Event")}(),this.createjs=this.createjs||{},function(){"use strict";function ProgressEvent(a,b){this.Event_constructor("progress"),this.loaded=a,this.total=null==b?1:b,this.progress=0==b?0:this.loaded/this.total}var a=createjs.extend(ProgressEvent,createjs.Event);a.clone=function(){return new createjs.ProgressEvent(this.loaded,this.total)},createjs.ProgressEvent=createjs.promote(ProgressEvent,"Event")}(window),this.createjs=this.createjs||{},function(){"use strict";function LoadItem(){this.src=null,this.type=null,this.id=null,this.maintainOrder=!1,this.callback=null,this.data=null,this.method=createjs.Methods.GET,this.values=null,this.headers=null,this.withCredentials=!1,this.mimeType=null,this.crossOrigin=null,this.loadTimeout=b.LOAD_TIMEOUT_DEFAULT}var a=LoadItem.prototype={},b=LoadItem;b.LOAD_TIMEOUT_DEFAULT=8e3,b.create=function(a){if("string"==typeof a){var c=new LoadItem;return c.src=a,c}if(a instanceof b)return a;if(a instanceof Object&&a.src)return null==a.loadTimeout&&(a.loadTimeout=b.LOAD_TIMEOUT_DEFAULT),a;throw new Error("Type not recognized.")},a.set=function(a){for(var b in a)this[b]=a[b];return this},createjs.LoadItem=b}(),this.createjs=this.createjs||{},function(){var a={};a.POST="POST",a.GET="GET",createjs.Methods=a}(),this.createjs=this.createjs||{},function(){var a={};a.BINARY="binary",a.CSS="css",a.FONT="font",a.FONTCSS="fontcss",a.IMAGE="image",a.JAVASCRIPT="javascript",a.JSON="json",a.JSONP="jsonp",a.MANIFEST="manifest",a.SOUND="sound",a.VIDEO="video",a.SPRITESHEET="spritesheet",a.SVG="svg",a.TEXT="text",a.XML="xml",createjs.Types=a}(),function(){var a={};a.a=function(){return a.el("a")},a.svg=function(){return a.el("svg")},a.object=function(){return a.el("object")},a.image=function(){return a.el("image")},a.img=function(){return a.el("img")},a.style=function(){return a.el("style")},a.link=function(){return a.el("link")},a.script=function(){return a.el("script")},a.audio=function(){return a.el("audio")},a.video=function(){return a.el("video")},a.text=function(a){return document.createTextNode(a)},a.el=function(a){return document.createElement(a)},createjs.Elements=a}(),function(){var a={container:null};a.appendToHead=function(b){a.getHead().appendChild(b)},a.appendToBody=function(b){if(null==a.container){a.container=document.createElement("div"),a.container.id="preloadjs-container";var c=a.container.style;c.visibility="hidden",c.position="absolute",c.width=a.container.style.height="10px",c.overflow="hidden",c.transform=c.msTransform=c.webkitTransform=c.oTransform="translate(-10px, -10px)",a.getBody().appendChild(a.container)}a.container.appendChild(b)},a.getHead=function(){return document.head||document.getElementsByTagName("head")[0]},a.getBody=function(){return document.body||document.getElementsByTagName("body")[0]},a.removeChild=function(a){a.parent&&a.parent.removeChild(a)},a.isImageTag=function(a){return a instanceof HTMLImageElement},a.isAudioTag=function(a){return window.HTMLAudioElement?a instanceof HTMLAudioElement:!1},a.isVideoTag=function(a){return window.HTMLVideoElement?a instanceof HTMLVideoElement:!1},createjs.DomUtils=a}(),function(){var a={};a.isBinary=function(a){switch(a){case createjs.Types.IMAGE:case createjs.Types.BINARY:return!0;default:return!1}},a.isText=function(a){switch(a){case createjs.Types.TEXT:case createjs.Types.JSON:case createjs.Types.MANIFEST:case createjs.Types.XML:case createjs.Types.CSS:case createjs.Types.SVG:case createjs.Types.JAVASCRIPT:case createjs.Types.SPRITESHEET:return!0;default:return!1}},a.getTypeByExtension=function(a){if(null==a)return createjs.Types.TEXT;switch(a.toLowerCase()){case"jpeg":case"jpg":case"gif":case"png":case"webp":case"bmp":return createjs.Types.IMAGE;case"ogg":case"mp3":case"webm":return createjs.Types.SOUND;case"mp4":case"webm":case"ts":return createjs.Types.VIDEO;case"json":return createjs.Types.JSON;case"xml":return createjs.Types.XML;case"css":return createjs.Types.CSS;case"js":return createjs.Types.JAVASCRIPT;case"svg":return createjs.Types.SVG;default:return createjs.Types.TEXT}},createjs.RequestUtils=a}(),function(){var a={};a.ABSOLUTE_PATT=/^(?:\w+:)?\/{2}/i,a.RELATIVE_PATT=/^[.\/]*?\//i,a.EXTENSION_PATT=/\/?[^\/]+\.(\w{1,5})$/i,a.parseURI=function(b){var c={absolute:!1,relative:!1,protocol:null,hostname:null,port:null,pathname:null,search:null,hash:null,host:null};if(null==b)return c;var d=createjs.Elements.a();d.href=b;for(var e in c)e in d&&(c[e]=d[e]);var f=b.indexOf("?");f>-1&&(b=b.substr(0,f));var g;return a.ABSOLUTE_PATT.test(b)?c.absolute=!0:a.RELATIVE_PATT.test(b)&&(c.relative=!0),(g=b.match(a.EXTENSION_PATT))&&(c.extension=g[1].toLowerCase()),c},a.formatQueryString=function(a,b){if(null==a)throw new Error("You must specify data.");var c=[];for(var d in a)c.push(d+"="+escape(a[d]));return b&&(c=c.concat(b)),c.join("&")},a.buildURI=function(a,b){if(null==b)return a;var c=[],d=a.indexOf("?");if(-1!=d){var e=a.slice(d+1);c=c.concat(e.split("&"))}return-1!=d?a.slice(0,d)+"?"+this.formatQueryString(b,c):a+"?"+this.formatQueryString(b,c)},a.isCrossDomain=function(a){var b=createjs.Elements.a();b.href=a.src;var c=createjs.Elements.a();c.href=location.href;var d=""!=b.hostname&&(b.port!=c.port||b.protocol!=c.protocol||b.hostname!=c.hostname);return d},a.isLocal=function(a){var b=createjs.Elements.a();return b.href=a.src,""==b.hostname&&"file:"==b.protocol},createjs.URLUtils=a}(),this.createjs=this.createjs||{},function(){"use strict";function AbstractLoader(a,b,c){this.EventDispatcher_constructor(),this.loaded=!1,this.canceled=!1,this.progress=0,this.type=c,this.resultFormatter=null,this._item=a?createjs.LoadItem.create(a):null,this._preferXHR=b,this._result=null,this._rawResult=null,this._loadedItems=null,this._tagSrcAttribute=null,this._tag=null}var a=createjs.extend(AbstractLoader,createjs.EventDispatcher),b=AbstractLoader;try{Object.defineProperties(b,{POST:{get:createjs.deprecate(function(){return createjs.Methods.POST},"AbstractLoader.POST")},GET:{get:createjs.deprecate(function(){return createjs.Methods.GET},"AbstractLoader.GET")},BINARY:{get:createjs.deprecate(function(){return createjs.Types.BINARY},"AbstractLoader.BINARY")},CSS:{get:createjs.deprecate(function(){return createjs.Types.CSS},"AbstractLoader.CSS")},FONT:{get:createjs.deprecate(function(){return createjs.Types.FONT},"AbstractLoader.FONT")},FONTCSS:{get:createjs.deprecate(function(){return createjs.Types.FONTCSS},"AbstractLoader.FONTCSS")},IMAGE:{get:createjs.deprecate(function(){return createjs.Types.IMAGE},"AbstractLoader.IMAGE")},JAVASCRIPT:{get:createjs.deprecate(function(){return createjs.Types.JAVASCRIPT},"AbstractLoader.JAVASCRIPT")},JSON:{get:createjs.deprecate(function(){return createjs.Types.JSON},"AbstractLoader.JSON")},JSONP:{get:createjs.deprecate(function(){return createjs.Types.JSONP},"AbstractLoader.JSONP")},MANIFEST:{get:createjs.deprecate(function(){return createjs.Types.MANIFEST},"AbstractLoader.MANIFEST")},SOUND:{get:createjs.deprecate(function(){return createjs.Types.SOUND},"AbstractLoader.SOUND")},VIDEO:{get:createjs.deprecate(function(){return createjs.Types.VIDEO},"AbstractLoader.VIDEO")},SPRITESHEET:{get:createjs.deprecate(function(){return createjs.Types.SPRITESHEET},"AbstractLoader.SPRITESHEET")},SVG:{get:createjs.deprecate(function(){return createjs.Types.SVG},"AbstractLoader.SVG")},TEXT:{get:createjs.deprecate(function(){return createjs.Types.TEXT},"AbstractLoader.TEXT")},XML:{get:createjs.deprecate(function(){return createjs.Types.XML},"AbstractLoader.XML")}})}catch(c){}a.getItem=function(){return this._item},a.getResult=function(a){return a?this._rawResult:this._result},a.getTag=function(){return this._tag},a.setTag=function(a){this._tag=a},a.load=function(){this._createRequest(),this._request.on("complete",this,this),this._request.on("progress",this,this),this._request.on("loadStart",this,this),this._request.on("abort",this,this),this._request.on("timeout",this,this),this._request.on("error",this,this);var a=new createjs.Event("initialize");a.loader=this._request,this.dispatchEvent(a),this._request.load()},a.cancel=function(){this.canceled=!0,this.destroy()},a.destroy=function(){this._request&&(this._request.removeAllEventListeners(),this._request.destroy()),this._request=null,this._item=null,this._rawResult=null,this._result=null,this._loadItems=null,this.removeAllEventListeners()},a.getLoadedItems=function(){return this._loadedItems},a._createRequest=function(){this._request=this._preferXHR?new createjs.XHRRequest(this._item):new createjs.TagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},a._createTag=function(){return null},a._sendLoadStart=function(){this._isCanceled()||this.dispatchEvent("loadstart")},a._sendProgress=function(a){if(!this._isCanceled()){var b=null;"number"==typeof a?(this.progress=a,b=new createjs.ProgressEvent(this.progress)):(b=a,this.progress=a.loaded/a.total,b.progress=this.progress,(isNaN(this.progress)||1/0==this.progress)&&(this.progress=0)),this.hasEventListener("progress")&&this.dispatchEvent(b)}},a._sendComplete=function(){if(!this._isCanceled()){this.loaded=!0;var a=new createjs.Event("complete");a.rawResult=this._rawResult,null!=this._result&&(a.result=this._result),this.dispatchEvent(a)}},a._sendError=function(a){!this._isCanceled()&&this.hasEventListener("error")&&(null==a&&(a=new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")),this.dispatchEvent(a))},a._isCanceled=function(){return null==window.createjs||this.canceled?!0:!1},a.resultFormatter=null,a.handleEvent=function(a){switch(a.type){case"complete":this._rawResult=a.target._response;var b=this.resultFormatter&&this.resultFormatter(this);b instanceof Function?b.call(this,createjs.proxy(this._resultFormatSuccess,this),createjs.proxy(this._resultFormatFailed,this)):(this._result=b||this._rawResult,this._sendComplete());break;case"progress":this._sendProgress(a);break;case"error":this._sendError(a);break;case"loadstart":this._sendLoadStart();break;case"abort":case"timeout":this._isCanceled()||this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_"+a.type.toUpperCase()+"_ERROR"))}},a._resultFormatSuccess=function(a){this._result=a,this._sendComplete()},a._resultFormatFailed=function(a){this._sendError(a)},a.toString=function(){return"[PreloadJS AbstractLoader]"},createjs.AbstractLoader=createjs.promote(AbstractLoader,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function AbstractMediaLoader(a,b,c){this.AbstractLoader_constructor(a,b,c),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",this.on("initialize",this._updateXHR,this)}var a=createjs.extend(AbstractMediaLoader,createjs.AbstractLoader);a.load=function(){this._tag||(this._tag=this._createTag(this._item.src)),this._tag.preload="auto",this._tag.load(),this.AbstractLoader_load()},a._createTag=function(){},a._createRequest=function(){this._request=this._preferXHR?new createjs.XHRRequest(this._item):new createjs.MediaTagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},a._updateXHR=function(a){a.loader.setResponseType&&a.loader.setResponseType("blob")},a._formatResult=function(a){if(this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.onstalled=null,this._preferXHR){var b=window.URL||window.webkitURL,c=a.getResult(!0);a.getTag().src=b.createObjectURL(c)}return a.getTag()},createjs.AbstractMediaLoader=createjs.promote(AbstractMediaLoader,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var AbstractRequest=function(a){this._item=a},a=createjs.extend(AbstractRequest,createjs.EventDispatcher);a.load=function(){},a.destroy=function(){},a.cancel=function(){},createjs.AbstractRequest=createjs.promote(AbstractRequest,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function TagRequest(a,b,c){this.AbstractRequest_constructor(a),this._tag=b,this._tagSrcAttribute=c,this._loadedHandler=createjs.proxy(this._handleTagComplete,this),this._addedToDOM=!1}var a=createjs.extend(TagRequest,createjs.AbstractRequest);a.load=function(){this._tag.onload=createjs.proxy(this._handleTagComplete,this),this._tag.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this),this._tag.onerror=createjs.proxy(this._handleError,this);var a=new createjs.Event("initialize");a.loader=this._tag,this.dispatchEvent(a),this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout),this._tag[this._tagSrcAttribute]=this._item.src,null==this._tag.parentNode&&(createjs.DomUtils.appendToBody(this._tag),this._addedToDOM=!0)},a.destroy=function(){this._clean(),this._tag=null,this.AbstractRequest_destroy()},a._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var a=this._tag;("loaded"==a.readyState||"complete"==a.readyState)&&this._handleTagComplete()},a._handleError=function(){this._clean(),this.dispatchEvent("error")},a._handleTagComplete=function(){this._rawResult=this._tag,this._result=this.resultFormatter&&this.resultFormatter(this)||this._rawResult,this._clean(),this.dispatchEvent("complete")},a._handleTimeout=function(){this._clean(),this.dispatchEvent(new createjs.Event("timeout"))},a._clean=function(){this._tag.onload=null,this._tag.onreadystatechange=null,this._tag.onerror=null,this._addedToDOM&&null!=this._tag.parentNode&&this._tag.parentNode.removeChild(this._tag),clearTimeout(this._loadTimeout)},a._handleStalled=function(){},createjs.TagRequest=createjs.promote(TagRequest,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function MediaTagRequest(a,b,c){this.AbstractRequest_constructor(a),this._tag=b,this._tagSrcAttribute=c,this._loadedHandler=createjs.proxy(this._handleTagComplete,this)}var a=createjs.extend(MediaTagRequest,createjs.TagRequest);a.load=function(){var a=createjs.proxy(this._handleStalled,this);this._stalledCallback=a;var b=createjs.proxy(this._handleProgress,this);this._handleProgress=b,this._tag.addEventListener("stalled",a),this._tag.addEventListener("progress",b),this._tag.addEventListener&&this._tag.addEventListener("canplaythrough",this._loadedHandler,!1),this.TagRequest_load()},a._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var a=this._tag;("loaded"==a.readyState||"complete"==a.readyState)&&this._handleTagComplete()},a._handleStalled=function(){},a._handleProgress=function(a){if(a&&!(a.loaded>0&&0==a.total)){var b=new createjs.ProgressEvent(a.loaded,a.total);this.dispatchEvent(b)}},a._clean=function(){this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.removeEventListener("stalled",this._stalledCallback),this._tag.removeEventListener("progress",this._progressCallback),this.TagRequest__clean()},createjs.MediaTagRequest=createjs.promote(MediaTagRequest,"TagRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function XHRRequest(a){this.AbstractRequest_constructor(a),this._request=null,this._loadTimeout=null,this._xhrLevel=1,this._response=null,this._rawResponse=null,this._canceled=!1,this._handleLoadStartProxy=createjs.proxy(this._handleLoadStart,this),this._handleProgressProxy=createjs.proxy(this._handleProgress,this),this._handleAbortProxy=createjs.proxy(this._handleAbort,this),this._handleErrorProxy=createjs.proxy(this._handleError,this),this._handleTimeoutProxy=createjs.proxy(this._handleTimeout,this),this._handleLoadProxy=createjs.proxy(this._handleLoad,this),this._handleReadyStateChangeProxy=createjs.proxy(this._handleReadyStateChange,this),!this._createXHR(a)}var a=createjs.extend(XHRRequest,createjs.AbstractRequest);XHRRequest.ACTIVEX_VERSIONS=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],a.getResult=function(a){return a&&this._rawResponse?this._rawResponse:this._response},a.cancel=function(){this.canceled=!0,this._clean(),this._request.abort()},a.load=function(){if(null==this._request)return void this._handleError();null!=this._request.addEventListener?(this._request.addEventListener("loadstart",this._handleLoadStartProxy,!1),this._request.addEventListener("progress",this._handleProgressProxy,!1),this._request.addEventListener("abort",this._handleAbortProxy,!1),this._request.addEventListener("error",this._handleErrorProxy,!1),this._request.addEventListener("timeout",this._handleTimeoutProxy,!1),this._request.addEventListener("load",this._handleLoadProxy,!1),this._request.addEventListener("readystatechange",this._handleReadyStateChangeProxy,!1)):(this._request.onloadstart=this._handleLoadStartProxy,this._request.onprogress=this._handleProgressProxy,this._request.onabort=this._handleAbortProxy,this._request.onerror=this._handleErrorProxy,this._request.ontimeout=this._handleTimeoutProxy,this._request.onload=this._handleLoadProxy,this._request.onreadystatechange=this._handleReadyStateChangeProxy),1==this._xhrLevel&&(this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout));try{this._item.values?this._request.send(createjs.URLUtils.formatQueryString(this._item.values)):this._request.send()}catch(a){this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,a))}},a.setResponseType=function(a){"blob"===a&&(a=window.URL?"blob":"arraybuffer",this._responseType=a),this._request.responseType=a},a.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders instanceof Function?this._request.getAllResponseHeaders():null},a.getResponseHeader=function(a){return this._request.getResponseHeader instanceof Function?this._request.getResponseHeader(a):null},a._handleProgress=function(a){if(a&&!(a.loaded>0&&0==a.total)){var b=new createjs.ProgressEvent(a.loaded,a.total);this.dispatchEvent(b)}},a._handleLoadStart=function(){clearTimeout(this._loadTimeout),this.dispatchEvent("loadstart")},a._handleAbort=function(a){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,a))},a._handleError=function(a){this._clean(),this.dispatchEvent(new createjs.ErrorEvent(a.message))},a._handleReadyStateChange=function(){4==this._request.readyState&&this._handleLoad()},a._handleLoad=function(){if(!this.loaded){this.loaded=!0;var a=this._checkError();if(a)return void this._handleError(a);if(this._response=this._getResponse(),"arraybuffer"===this._responseType)try{this._response=new Blob([this._response])}catch(b){if(window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,"TypeError"===b.name&&window.BlobBuilder){var c=new BlobBuilder;c.append(this._response),this._response=c.getBlob()}}this._clean(),this.dispatchEvent(new createjs.Event("complete"))}},a._handleTimeout=function(a){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,a))},a._checkError=function(){var a=parseInt(this._request.status);return a>=400&&599>=a?new Error(a):0==a&&/^https?:/.test(location.protocol)?new Error(0):null},a._getResponse=function(){if(null!=this._response)return this._response;if(null!=this._request.response)return this._request.response;try{if(null!=this._request.responseText)return this._request.responseText}catch(a){}try{if(null!=this._request.responseXML)return this._request.responseXML}catch(a){}return null},a._createXHR=function(a){var b=createjs.URLUtils.isCrossDomain(a),c={},d=null;if(window.XMLHttpRequest)d=new XMLHttpRequest,b&&void 0===d.withCredentials&&window.XDomainRequest&&(d=new XDomainRequest);else{for(var e=0,f=s.ACTIVEX_VERSIONS.length;f>e;e++){var g=s.ACTIVEX_VERSIONS[e];try{d=new ActiveXObject(g);break}catch(h){}}if(null==d)return!1}null==a.mimeType&&createjs.RequestUtils.isText(a.type)&&(a.mimeType="text/plain; charset=utf-8"),a.mimeType&&d.overrideMimeType&&d.overrideMimeType(a.mimeType),this._xhrLevel="string"==typeof d.responseType?2:1;var i=null;if(i=a.method==createjs.Methods.GET?createjs.URLUtils.buildURI(a.src,a.values):a.src,d.open(a.method||createjs.Methods.GET,i,!0),b&&d instanceof XMLHttpRequest&&1==this._xhrLevel&&(c.Origin=location.origin),a.values&&a.method==createjs.Methods.POST&&(c["Content-Type"]="application/x-www-form-urlencoded"),b||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest"),a.headers)for(var j in a.headers)c[j]=a.headers[j];for(j in c)d.setRequestHeader(j,c[j]);return d instanceof XMLHttpRequest&&void 0!==a.withCredentials&&(d.withCredentials=a.withCredentials),this._request=d,!0},a._clean=function(){clearTimeout(this._loadTimeout),null!=this._request.removeEventListener?(this._request.removeEventListener("loadstart",this._handleLoadStartProxy),this._request.removeEventListener("progress",this._handleProgressProxy),this._request.removeEventListener("abort",this._handleAbortProxy),this._request.removeEventListener("error",this._handleErrorProxy),this._request.removeEventListener("timeout",this._handleTimeoutProxy),this._request.removeEventListener("load",this._handleLoadProxy),this._request.removeEventListener("readystatechange",this._handleReadyStateChangeProxy)):(this._request.onloadstart=null,this._request.onprogress=null,this._request.onabort=null,this._request.onerror=null,this._request.ontimeout=null,this._request.onload=null,this._request.onreadystatechange=null)},a.toString=function(){return"[PreloadJS XHRRequest]"},createjs.XHRRequest=createjs.promote(XHRRequest,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function SoundLoader(a,b){this.AbstractMediaLoader_constructor(a,b,createjs.Types.SOUND),createjs.DomUtils.isAudioTag(a)?this._tag=a:createjs.DomUtils.isAudioTag(a.src)?this._tag=a:createjs.DomUtils.isAudioTag(a.tag)&&(this._tag=createjs.DomUtils.isAudioTag(a)?a:a.src),null!=this._tag&&(this._preferXHR=!1)}var a=createjs.extend(SoundLoader,createjs.AbstractMediaLoader),b=SoundLoader;b.canLoadItem=function(a){return a.type==createjs.Types.SOUND},a._createTag=function(a){var b=createjs.Elements.audio();return b.autoplay=!1,b.preload="none",b.src=a,b},createjs.SoundLoader=createjs.promote(SoundLoader,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var PlayPropsConfig=function(){this.interrupt=null,this.delay=null,this.offset=null,this.loop=null,this.volume=null,this.pan=null,this.startTime=null,this.duration=null},a=PlayPropsConfig.prototype={},b=PlayPropsConfig;b.create=function(a){if("string"==typeof a)return console&&(console.warn||console.log)("Deprecated behaviour. Sound.play takes a configuration object instead of individual arguments. See docs for info."),(new createjs.PlayPropsConfig).set({interrupt:a});if(null==a||a instanceof b||a instanceof Object)return(new createjs.PlayPropsConfig).set(a);if(null==a)throw new Error("PlayProps configuration not recognized.")},a.set=function(a){if(null!=a)for(var b in a)this[b]=a[b];return this},a.toString=function(){return"[PlayPropsConfig]"},createjs.PlayPropsConfig=b}(),this.createjs=this.createjs||{},function(){"use strict";function Sound(){throw"Sound cannot be instantiated"}function a(a,b){this.init(a,b)}var b=Sound;b.INTERRUPT_ANY="any",b.INTERRUPT_EARLY="early",b.INTERRUPT_LATE="late",b.INTERRUPT_NONE="none",b.PLAY_INITED="playInited",b.PLAY_SUCCEEDED="playSucceeded",b.PLAY_INTERRUPTED="playInterrupted",b.PLAY_FINISHED="playFinished",b.PLAY_FAILED="playFailed",b.SUPPORTED_EXTENSIONS=["mp3","ogg","opus","mpeg","wav","m4a","mp4","aiff","wma","mid"],b.EXTENSION_MAP={m4a:"mp4"},b.FILE_PATTERN=/^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([\/.]*?(?:[^?]+)?\/)?((?:[^\/?]+)\.(\w+))(?:\?(\S+)?)?$/,b.defaultInterruptBehavior=b.INTERRUPT_NONE,b.alternateExtensions=[],b.activePlugin=null,b._masterVolume=1,b._getMasterVolume=function(){return this._masterVolume},b.getVolume=createjs.deprecate(b._getMasterVolume,"Sound.getVolume"),b._setMasterVolume=function(a){if(null!=Number(a)&&(a=Math.max(0,Math.min(1,a)),b._masterVolume=a,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(a)))for(var c=this._instances,d=0,e=c.length;e>d;d++)c[d].setMasterVolume(a)},b.setVolume=createjs.deprecate(b._setMasterVolume,"Sound.setVolume"),b._masterMute=!1,b._getMute=function(){return this._masterMute},b.getMute=createjs.deprecate(b._getMute,"Sound.getMute"),b._setMute=function(a){if(null!=a&&(this._masterMute=a,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(a)))for(var b=this._instances,c=0,d=b.length;d>c;c++)b[c].setMasterMute(a)},b.setMute=createjs.deprecate(b._setMute,"Sound.setMute"),b._getCapabilities=function(){return null==b.activePlugin?null:b.activePlugin._capabilities},b.getCapabilities=createjs.deprecate(b._getCapabilities,"Sound.getCapabilities"),Object.defineProperties(b,{volume:{get:b._getMasterVolume,set:b._setMasterVolume},muted:{get:b._getMute,set:b._setMute},capabilities:{get:b._getCapabilities}}),b._pluginsRegistered=!1,b._lastID=0,b._instances=[],b._idHash={},b._preloadHash={},b._defaultPlayPropsHash={},b.addEventListener=null,b.removeEventListener=null,b.removeAllEventListeners=null,b.dispatchEvent=null,b.hasEventListener=null,b._listeners=null,createjs.EventDispatcher.initialize(b),b.getPreloadHandlers=function(){return{callback:createjs.proxy(b.initLoad,b),types:["sound"],extensions:b.SUPPORTED_EXTENSIONS}},b._handleLoadComplete=function(a){var c=a.target.getItem().src;if(b._preloadHash[c])for(var d=0,e=b._preloadHash[c].length;e>d;d++){var f=b._preloadHash[c][d];if(b._preloadHash[c][d]=!0,b.hasEventListener("fileload")){var a=new createjs.Event("fileload");a.src=f.src,a.id=f.id,a.data=f.data,a.sprite=f.sprite,b.dispatchEvent(a)}}},b._handleLoadError=function(a){var c=a.target.getItem().src;if(b._preloadHash[c])for(var d=0,e=b._preloadHash[c].length;e>d;d++){var f=b._preloadHash[c][d];if(b._preloadHash[c][d]=!1,b.hasEventListener("fileerror")){var a=new createjs.Event("fileerror");a.src=f.src,a.id=f.id,a.data=f.data,a.sprite=f.sprite,b.dispatchEvent(a)}}},b._registerPlugin=function(a){return a.isSupported()?(b.activePlugin=new a,!0):!1},b.registerPlugins=function(a){b._pluginsRegistered=!0;for(var c=0,d=a.length;d>c;c++)if(b._registerPlugin(a[c]))return!0;return!1},b.initializeDefaultPlugins=function(){return null!=b.activePlugin?!0:b._pluginsRegistered?!1:b.registerPlugins([createjs.WebAudioPlugin,createjs.HTMLAudioPlugin])?!0:!1},b.isReady=function(){return null!=b.activePlugin},b.initLoad=function(a){return"video"==a.type?!0:b._registerSound(a)},b._registerSound=function(c){if(!b.initializeDefaultPlugins())return!1;var d;if(c.src instanceof Object?(d=b._parseSrc(c.src),d.src=c.path+d.src):d=b._parsePath(c.src),null==d)return!1; +c.src=d.src,c.type="sound";var e=c.data,f=null;if(null!=e&&(isNaN(e.channels)?isNaN(e)||(f=parseInt(e)):f=parseInt(e.channels),e.audioSprite))for(var g,h=e.audioSprite.length;h--;)g=e.audioSprite[h],b._idHash[g.id]={src:c.src,startTime:parseInt(g.startTime),duration:parseInt(g.duration)},g.defaultPlayProps&&(b._defaultPlayPropsHash[g.id]=createjs.PlayPropsConfig.create(g.defaultPlayProps));null!=c.id&&(b._idHash[c.id]={src:c.src});var i=b.activePlugin.register(c);return a.create(c.src,f),null!=e&&isNaN(e)?c.data.channels=f||a.maxPerChannel():c.data=f||a.maxPerChannel(),i.type&&(c.type=i.type),c.defaultPlayProps&&(b._defaultPlayPropsHash[c.src]=createjs.PlayPropsConfig.create(c.defaultPlayProps)),i},b.registerSound=function(a,c,d,e,f){var g={src:a,id:c,data:d,defaultPlayProps:f};a instanceof Object&&a.src&&(e=c,g=a),g=createjs.LoadItem.create(g),g.path=e,null==e||g.src instanceof Object||(g.src=e+g.src);var h=b._registerSound(g);if(!h)return!1;if(b._preloadHash[g.src]||(b._preloadHash[g.src]=[]),b._preloadHash[g.src].push(g),1==b._preloadHash[g.src].length)h.on("complete",this._handleLoadComplete,this),h.on("error",this._handleLoadError,this),b.activePlugin.preload(h);else if(1==b._preloadHash[g.src][0])return!0;return g},b.registerSounds=function(a,b){var c=[];a.path&&(b?b+=a.path:b=a.path,a=a.manifest);for(var d=0,e=a.length;e>d;d++)c[d]=createjs.Sound.registerSound(a[d].src,a[d].id,a[d].data,b,a[d].defaultPlayProps);return c},b.removeSound=function(c,d){if(null==b.activePlugin)return!1;c instanceof Object&&c.src&&(c=c.src);var e;if(c instanceof Object?e=b._parseSrc(c):(c=b._getSrcById(c).src,e=b._parsePath(c)),null==e)return!1;c=e.src,null!=d&&(c=d+c);for(var f in b._idHash)b._idHash[f].src==c&&delete b._idHash[f];return a.removeSrc(c),delete b._preloadHash[c],b.activePlugin.removeSound(c),!0},b.removeSounds=function(a,b){var c=[];a.path&&(b?b+=a.path:b=a.path,a=a.manifest);for(var d=0,e=a.length;e>d;d++)c[d]=createjs.Sound.removeSound(a[d].src,b);return c},b.removeAllSounds=function(){b._idHash={},b._preloadHash={},a.removeAll(),b.activePlugin&&b.activePlugin.removeAllSounds()},b.loadComplete=function(a){if(!b.isReady())return!1;var c=b._parsePath(a);return a=c?b._getSrcById(c.src).src:b._getSrcById(a).src,void 0==b._preloadHash[a]?!1:1==b._preloadHash[a][0]},b._parsePath=function(a){"string"!=typeof a&&(a=a.toString());var c=a.match(b.FILE_PATTERN);if(null==c)return!1;for(var d=c[4],e=c[5],f=b.capabilities,g=0;!f[e];)if(e=b.alternateExtensions[g++],g>b.alternateExtensions.length)return null;a=a.replace("."+c[5],"."+e);var h={name:d,src:a,extension:e};return h},b._parseSrc=function(a){var c={name:void 0,src:void 0,extension:void 0},d=b.capabilities;for(var e in a)if(a.hasOwnProperty(e)&&d[e]){c.src=a[e],c.extension=e;break}if(!c.src)return!1;var f=c.src.lastIndexOf("/");return c.name=-1!=f?c.src.slice(f+1):c.src,c},b.play=function(a,c){var d=createjs.PlayPropsConfig.create(c),e=b.createInstance(a,d.startTime,d.duration),f=b._playInstance(e,d);return f||e._playFailed(),e},b.createInstance=function(c,d,e){if(!b.initializeDefaultPlugins())return new createjs.DefaultSoundInstance(c,d,e);var f=b._defaultPlayPropsHash[c];c=b._getSrcById(c);var g=b._parsePath(c.src),h=null;return null!=g&&null!=g.src?(a.create(g.src),null==d&&(d=c.startTime),h=b.activePlugin.create(g.src,d,e||c.duration),f=f||b._defaultPlayPropsHash[g.src],f&&h.applyPlayProps(f)):h=new createjs.DefaultSoundInstance(c,d,e),h.uniqueId=b._lastID++,h},b.stop=function(){for(var a=this._instances,b=a.length;b--;)a[b].stop()},b.setDefaultPlayProps=function(a,c){a=b._getSrcById(a),b._defaultPlayPropsHash[b._parsePath(a.src).src]=createjs.PlayPropsConfig.create(c)},b.getDefaultPlayProps=function(a){return a=b._getSrcById(a),b._defaultPlayPropsHash[b._parsePath(a.src).src]},b._playInstance=function(a,c){var d=b._defaultPlayPropsHash[a.src]||{};if(null==c.interrupt&&(c.interrupt=d.interrupt||b.defaultInterruptBehavior),null==c.delay&&(c.delay=d.delay||0),null==c.offset&&(c.offset=a.position),null==c.loop&&(c.loop=a.loop),null==c.volume&&(c.volume=a.volume),null==c.pan&&(c.pan=a.pan),0==c.delay){var e=b._beginPlaying(a,c);if(!e)return!1}else{var f=setTimeout(function(){b._beginPlaying(a,c)},c.delay);a.delayTimeoutId=f}return this._instances.push(a),!0},b._beginPlaying=function(b,c){if(!a.add(b,c.interrupt))return!1;var d=b._beginPlaying(c);if(!d){var e=createjs.indexOf(this._instances,b);return e>-1&&this._instances.splice(e,1),!1}return!0},b._getSrcById=function(a){return b._idHash[a]||{src:a}},b._playFinished=function(b){a.remove(b);var c=createjs.indexOf(this._instances,b);c>-1&&this._instances.splice(c,1)},createjs.Sound=Sound,a.channels={},a.create=function(b,c){var d=a.get(b);return null==d?(a.channels[b]=new a(b,c),!0):!1},a.removeSrc=function(b){var c=a.get(b);return null==c?!1:(c._removeAll(),delete a.channels[b],!0)},a.removeAll=function(){for(var b in a.channels)a.channels[b]._removeAll();a.channels={}},a.add=function(b,c){var d=a.get(b.src);return null==d?!1:d._add(b,c)},a.remove=function(b){var c=a.get(b.src);return null==c?!1:(c._remove(b),!0)},a.maxPerChannel=function(){return c.maxDefault},a.get=function(b){return a.channels[b]};var c=a.prototype;c.constructor=a,c.src=null,c.max=null,c.maxDefault=100,c.length=0,c.init=function(a,b){this.src=a,this.max=b||this.maxDefault,-1==this.max&&(this.max=this.maxDefault),this._instances=[]},c._get=function(a){return this._instances[a]},c._add=function(a,b){return this._getSlot(b,a)?(this._instances.push(a),this.length++,!0):!1},c._remove=function(a){var b=createjs.indexOf(this._instances,a);return-1==b?!1:(this._instances.splice(b,1),this.length--,!0)},c._removeAll=function(){for(var a=this.length-1;a>=0;a--)this._instances[a].stop()},c._getSlot=function(a){var b,c;if(a!=Sound.INTERRUPT_NONE&&(c=this._get(0),null==c))return!0;for(var d=0,e=this.max;e>d;d++){if(b=this._get(d),null==b)return!0;if(b.playState==Sound.PLAY_FINISHED||b.playState==Sound.PLAY_INTERRUPTED||b.playState==Sound.PLAY_FAILED){c=b;break}a!=Sound.INTERRUPT_NONE&&(a==Sound.INTERRUPT_EARLY&&b.position c.position)&&(c=b)}return null!=c?(c._interrupt(),this._remove(c),!0):!1},c.toString=function(){return"[Sound SoundChannel]"}}(),this.createjs=this.createjs||{},function(){"use strict";var AbstractSoundInstance=function(a,b,c,d){this.EventDispatcher_constructor(),this.src=a,this.uniqueId=-1,this.playState=null,this.delayTimeoutId=null,this._volume=1,Object.defineProperty(this,"volume",{get:this._getVolume,set:this._setVolume}),this._pan=0,Object.defineProperty(this,"pan",{get:this._getPan,set:this._setPan}),this._startTime=Math.max(0,b||0),Object.defineProperty(this,"startTime",{get:this._getStartTime,set:this._setStartTime}),this._duration=Math.max(0,c||0),Object.defineProperty(this,"duration",{get:this._getDuration,set:this._setDuration}),this._playbackResource=null,Object.defineProperty(this,"playbackResource",{get:this._getPlaybackResource,set:this._setPlaybackResource}),d!==!1&&d!==!0&&this._setPlaybackResource(d),this._position=0,Object.defineProperty(this,"position",{get:this._getPosition,set:this._setPosition}),this._loop=0,Object.defineProperty(this,"loop",{get:this._getLoop,set:this._setLoop}),this._muted=!1,Object.defineProperty(this,"muted",{get:this._getMuted,set:this._setMuted}),this._paused=!1,Object.defineProperty(this,"paused",{get:this._getPaused,set:this._setPaused})},a=createjs.extend(AbstractSoundInstance,createjs.EventDispatcher);a.play=function(a){var b=createjs.PlayPropsConfig.create(a);return this.playState==createjs.Sound.PLAY_SUCCEEDED?(this.applyPlayProps(b),void(this._paused&&this._setPaused(!1))):(this._cleanUp(),createjs.Sound._playInstance(this,b),this)},a.stop=function(){return this._position=0,this._paused=!1,this._handleStop(),this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,this},a.destroy=function(){this._cleanUp(),this.src=null,this.playbackResource=null,this.removeAllEventListeners()},a.applyPlayProps=function(a){return null!=a.offset&&this._setPosition(a.offset),null!=a.loop&&this._setLoop(a.loop),null!=a.volume&&this._setVolume(a.volume),null!=a.pan&&this._setPan(a.pan),null!=a.startTime&&(this._setStartTime(a.startTime),this._setDuration(a.duration)),this},a.toString=function(){return"[AbstractSoundInstance]"},a._getPaused=function(){return this._paused},a._setPaused=function(a){return a!==!0&&a!==!1||this._paused==a||1==a&&this.playState!=createjs.Sound.PLAY_SUCCEEDED?void 0:(this._paused=a,a?this._pause():this._resume(),clearTimeout(this.delayTimeoutId),this)},a._setVolume=function(a){return a==this._volume?this:(this._volume=Math.max(0,Math.min(1,a)),this._muted||this._updateVolume(),this)},a._getVolume=function(){return this._volume},a._setMuted=function(a){return a===!0||a===!1?(this._muted=a,this._updateVolume(),this):void 0},a._getMuted=function(){return this._muted},a._setPan=function(a){return a==this._pan?this:(this._pan=Math.max(-1,Math.min(1,a)),this._updatePan(),this)},a._getPan=function(){return this._pan},a._getPosition=function(){return this._paused||this.playState!=createjs.Sound.PLAY_SUCCEEDED||(this._position=this._calculateCurrentPosition()),this._position},a._setPosition=function(a){return this._position=Math.max(0,a),this.playState==createjs.Sound.PLAY_SUCCEEDED&&this._updatePosition(),this},a._getStartTime=function(){return this._startTime},a._setStartTime=function(a){return a==this._startTime?this:(this._startTime=Math.max(0,a||0),this._updateStartTime(),this)},a._getDuration=function(){return this._duration},a._setDuration=function(a){return a==this._duration?this:(this._duration=Math.max(0,a||0),this._updateDuration(),this)},a._setPlaybackResource=function(a){return this._playbackResource=a,0==this._duration&&this._playbackResource&&this._setDurationFromSource(),this},a._getPlaybackResource=function(){return this._playbackResource},a._getLoop=function(){return this._loop},a._setLoop=function(a){null!=this._playbackResource&&(0!=this._loop&&0==a?this._removeLooping(a):0==this._loop&&0!=a&&this._addLooping(a)),this._loop=a},a._sendEvent=function(a){var b=new createjs.Event(a);this.dispatchEvent(b)},a._cleanUp=function(){clearTimeout(this.delayTimeoutId),this._handleCleanUp(),this._paused=!1,createjs.Sound._playFinished(this)},a._interrupt=function(){this._cleanUp(),this.playState=createjs.Sound.PLAY_INTERRUPTED,this._sendEvent("interrupted")},a._beginPlaying=function(a){return this._setPosition(a.offset),this._setLoop(a.loop),this._setVolume(a.volume),this._setPan(a.pan),null!=a.startTime&&(this._setStartTime(a.startTime),this._setDuration(a.duration)),null!=this._playbackResource&&this._position c;c++){var e=this._soundInstances[b][c];e.setPlaybackResource(this._audioSources[b]),this._soundInstances[b]=null}},a._handlePreloadError=function(){},a._updateVolume=function(){},createjs.AbstractPlugin=AbstractPlugin}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.AbstractLoader_constructor(a,!0,createjs.Types.SOUND)}var b=createjs.extend(a,createjs.AbstractLoader);a.context=null,b.toString=function(){return"[WebAudioLoader]"},b._createRequest=function(){this._request=new createjs.XHRRequest(this._item,!1),this._request.setResponseType("arraybuffer")},b._sendComplete=function(){a.context.decodeAudioData(this._rawResult,createjs.proxy(this._handleAudioDecoded,this),createjs.proxy(this._sendError,this))},b._handleAudioDecoded=function(a){this._result=a,this.AbstractLoader__sendComplete()},createjs.WebAudioLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function WebAudioSoundInstance(a,c,d,e){this.AbstractSoundInstance_constructor(a,c,d,e),this.gainNode=b.context.createGain(),this.panNode=b.context.createPanner(),this.panNode.panningModel=b._panningModel,this.panNode.connect(this.gainNode),this._updatePan(),this.sourceNode=null,this._soundCompleteTimeout=null,this._sourceNodeNext=null,this._playbackStartTime=0,this._endedHandler=createjs.proxy(this._handleSoundComplete,this)}var a=createjs.extend(WebAudioSoundInstance,createjs.AbstractSoundInstance),b=WebAudioSoundInstance;b.context=null,b._scratchBuffer=null,b.destinationNode=null,b._panningModel="equalpower",a.destroy=function(){this.AbstractSoundInstance_destroy(),this.panNode.disconnect(0),this.panNode=null,this.gainNode.disconnect(0),this.gainNode=null},a.toString=function(){return"[WebAudioSoundInstance]"},a._updatePan=function(){this.panNode.setPosition(this._pan,0,-.5)},a._removeLooping=function(){this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)},a._addLooping=function(){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},a._setDurationFromSource=function(){this._duration=1e3*this.playbackResource.duration},a._handleCleanUp=function(){this.sourceNode&&this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout),this._playbackStartTime=0},a._cleanUpAudioNode=function(a){if(a){if(a.stop(0),a.disconnect(0),createjs.BrowserDetect.isIOS)try{a.buffer=b._scratchBuffer}catch(c){}a=null}return a},a._handleSoundReady=function(){this.gainNode.connect(b.destinationNode);var a=.001*this._duration,c=Math.min(.001*Math.max(0,this._position),a);this.sourceNode=this._createAndPlayAudioNode(b.context.currentTime-a,c),this._playbackStartTime=this.sourceNode.startTime-c,this._soundCompleteTimeout=setTimeout(this._endedHandler,1e3*(a-c)),0!=this._loop&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},a._createAndPlayAudioNode=function(a,c){var d=b.context.createBufferSource();d.buffer=this.playbackResource,d.connect(this.panNode);var e=.001*this._duration;return d.startTime=a+e,d.start(d.startTime,c+.001*this._startTime,e-c),d},a._pause=function(){this._position=1e3*(b.context.currentTime-this._playbackStartTime),this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout)},a._resume=function(){this._handleSoundReady()},a._updateVolume=function(){var a=this._muted?0:this._volume;a!=this.gainNode.gain.value&&(this.gainNode.gain.value=a)},a._calculateCurrentPosition=function(){return 1e3*(b.context.currentTime-this._playbackStartTime)},a._updatePosition=function(){this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),clearTimeout(this._soundCompleteTimeout),this._paused||this._handleSoundReady()},a._handleLoop=function(){this._cleanUpAudioNode(this.sourceNode),this.sourceNode=this._sourceNodeNext,this._playbackStartTime=this.sourceNode.startTime,this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0),this._soundCompleteTimeout=setTimeout(this._endedHandler,this._duration)},a._updateDuration=function(){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._pause(),this._resume())},createjs.WebAudioSoundInstance=createjs.promote(WebAudioSoundInstance,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function WebAudioPlugin(){this.AbstractPlugin_constructor(),this._panningModel=b._panningModel,this.context=b.context,this.dynamicsCompressorNode=this.context.createDynamicsCompressor(),this.dynamicsCompressorNode.connect(this.context.destination),this.gainNode=this.context.createGain(),this.gainNode.connect(this.dynamicsCompressorNode),createjs.WebAudioSoundInstance.destinationNode=this.gainNode,this._capabilities=b._capabilities,this._loaderClass=createjs.WebAudioLoader,this._soundInstanceClass=createjs.WebAudioSoundInstance,this._addPropsToClasses()}var a=createjs.extend(WebAudioPlugin,createjs.AbstractPlugin),b=WebAudioPlugin;b._capabilities=null,b._panningModel="equalpower",b.context=null,b._scratchBuffer=null,b._unlocked=!1,b.DEFAULT_SAMPLE_RATE=44100,b.isSupported=function(){var a=createjs.BrowserDetect.isIOS||createjs.BrowserDetect.isAndroid||createjs.BrowserDetect.isBlackberry;return"file:"!=location.protocol||a||this._isFileXHRSupported()?(b._generateCapabilities(),null==b.context?!1:!0):!1},b.playEmptySound=function(){if(null!=b.context){var a=b.context.createBufferSource();a.buffer=b._scratchBuffer,a.connect(b.context.destination),a.start(0,0,0)}},b._isFileXHRSupported=function(){var a=!0,b=new XMLHttpRequest;try{b.open("GET","WebAudioPluginTest.fail",!1)}catch(c){return a=!1}b.onerror=function(){a=!1},b.onload=function(){a=404==this.status||200==this.status||0==this.status&&""!=this.response};try{b.send()}catch(c){a=!1}return a},b._generateCapabilities=function(){if(null==b._capabilities){var a=document.createElement("audio");if(null==a.canPlayType)return null;if(null==b.context&&(b.context=b._createAudioContext(),null==b.context))return null;null==b._scratchBuffer&&(b._scratchBuffer=b.context.createBuffer(1,1,22050)),b._compatibilitySetUp(),"ontouchstart"in window&&"running"!=b.context.state&&(b._unlock(),document.addEventListener("mousedown",b._unlock,!0),document.addEventListener("touchstart",b._unlock,!0),document.addEventListener("touchend",b._unlock,!0)),b._capabilities={panning:!0,volume:!0,tracks:-1};for(var c=createjs.Sound.SUPPORTED_EXTENSIONS,d=createjs.Sound.EXTENSION_MAP,e=0,f=c.length;f>e;e++){var g=c[e],h=d[g]||g;b._capabilities[g]="no"!=a.canPlayType("audio/"+g)&&""!=a.canPlayType("audio/"+g)||"no"!=a.canPlayType("audio/"+h)&&""!=a.canPlayType("audio/"+h)}b.context.destination.numberOfChannels<2&&(b._capabilities.panning=!1)}},b._createAudioContext=function(){var a=window.AudioContext||window.webkitAudioContext;if(null==a)return null;var c=new a;if(/(iPhone|iPad)/i.test(navigator.userAgent)&&c.sampleRate!==b.DEFAULT_SAMPLE_RATE){var d=c.createBuffer(1,1,b.DEFAULT_SAMPLE_RATE),e=c.createBufferSource();e.buffer=d,e.connect(c.destination),e.start(0),e.disconnect(),c.close(),c=new a}return c},b._compatibilitySetUp=function(){if(b._panningModel="equalpower",!b.context.createGain){b.context.createGain=b.context.createGainNode;var a=b.context.createBufferSource();a.__proto__.start=a.__proto__.noteGrainOn,a.__proto__.stop=a.__proto__.noteOff,b._panningModel=0}},b._unlock=function(){b._unlocked||(b.playEmptySound(),"running"==b.context.state&&(document.removeEventListener("mousedown",b._unlock,!0),document.removeEventListener("touchend",b._unlock,!0),document.removeEventListener("touchstart",b._unlock,!0),b._unlocked=!0))},a.toString=function(){return"[WebAudioPlugin]"},a._addPropsToClasses=function(){var a=this._soundInstanceClass;a.context=this.context,a._scratchBuffer=b._scratchBuffer,a.destinationNode=this.gainNode,a._panningModel=this._panningModel,this._loaderClass.context=this.context},a._updateVolume=function(){var a=createjs.Sound._masterMute?0:this._volume;a!=this.gainNode.gain.value&&(this.gainNode.gain.value=a)},createjs.WebAudioPlugin=createjs.promote(WebAudioPlugin,"AbstractPlugin")}(),this.createjs=this.createjs||{},function(){"use strict";function HTMLAudioTagPool(){throw"HTMLAudioTagPool cannot be instantiated"}function a(){this._tags=[]}var b=HTMLAudioTagPool;b._tags={},b._tagPool=new a,b._tagUsed={},b.get=function(a){var c=b._tags[a];return null==c?(c=b._tags[a]=b._tagPool.get(),c.src=a):b._tagUsed[a]?(c=b._tagPool.get(),c.src=a):b._tagUsed[a]=!0,c},b.set=function(a,c){c==b._tags[a]?b._tagUsed[a]=!1:b._tagPool.set(c)},b.remove=function(a){var c=b._tags[a];return null==c?!1:(b._tagPool.set(c),delete b._tags[a],delete b._tagUsed[a],!0)},b.getDuration=function(a){var c=b._tags[a];return null!=c&&c.duration?1e3*c.duration:0},createjs.HTMLAudioTagPool=HTMLAudioTagPool;var c=a.prototype;c.constructor=a,c.get=function(){var a;return a=0==this._tags.length?this._createTag():this._tags.pop(),null==a.parentNode&&document.body.appendChild(a),a},c.set=function(a){var b=createjs.indexOf(this._tags,a);-1==b&&(this._tags.src=null,this._tags.push(a))},c.toString=function(){return"[TagPool]"},c._createTag=function(){var a=document.createElement("audio");return a.autoplay=!1,a.preload="none",a}}(),this.createjs=this.createjs||{},function(){"use strict";function HTMLAudioSoundInstance(a,b,c,d){this.AbstractSoundInstance_constructor(a,b,c,d),this._audioSpriteStopTime=null,this._delayTimeoutId=null,this._endedHandler=createjs.proxy(this._handleSoundComplete,this),this._readyHandler=createjs.proxy(this._handleTagReady,this),this._stalledHandler=createjs.proxy(this._playFailed,this),this._audioSpriteEndHandler=createjs.proxy(this._handleAudioSpriteLoop,this),this._loopHandler=createjs.proxy(this._handleSoundComplete,this),c?this._audioSpriteStopTime=.001*(b+c):this._duration=createjs.HTMLAudioTagPool.getDuration(this.src)}var a=createjs.extend(HTMLAudioSoundInstance,createjs.AbstractSoundInstance);a.setMasterVolume=function(){this._updateVolume()},a.setMasterMute=function(){this._updateVolume()},a.toString=function(){return"[HTMLAudioSoundInstance]"},a._removeLooping=function(){null!=this._playbackResource&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},a._addLooping=function(){null==this._playbackResource||this._audioSpriteStopTime||(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)},a._handleCleanUp=function(){var a=this._playbackResource;if(null!=a){a.pause(),a.loop=!1,a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1);try{a.currentTime=this._startTime}catch(b){}createjs.HTMLAudioTagPool.set(this.src,a),this._playbackResource=null}},a._beginPlaying=function(a){return this._playbackResource=createjs.HTMLAudioTagPool.get(this.src),this.AbstractSoundInstance__beginPlaying(a)},a._handleSoundReady=function(){if(4!==this._playbackResource.readyState){var a=this._playbackResource;return a.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),a.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),a.preload="auto",void a.load()}this._updateVolume(),this._playbackResource.currentTime=.001*(this._startTime+this._position),this._audioSpriteStopTime?this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1):(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),0!=this._loop&&(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)),this._playbackResource.play()},a._handleTagReady=function(){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),this._handleSoundReady()},a._pause=function(){this._playbackResource.pause()},a._resume=function(){this._playbackResource.play()},a._updateVolume=function(){if(null!=this._playbackResource){var a=this._muted||createjs.Sound._masterMute?0:this._volume*createjs.Sound._masterVolume;a!=this._playbackResource.volume&&(this._playbackResource.volume=a)}},a._calculateCurrentPosition=function(){return 1e3*this._playbackResource.currentTime-this._startTime},a._updatePosition=function(){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1);try{this._playbackResource.currentTime=.001*(this._position+this._startTime)}catch(a){this._handleSetPositionSeek(null)}},a._handleSetPositionSeek=function(){null!=this._playbackResource&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},a._handleAudioSpriteLoop=function(){this._playbackResource.currentTime<=this._audioSpriteStopTime||(this._playbackResource.pause(),0==this._loop?this._handleSoundComplete(null):(this._position=0,this._loop--,this._playbackResource.currentTime=.001*this._startTime,this._paused||this._playbackResource.play(),this._sendEvent("loop")))},a._handleLoop=function(){0==this._loop&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},a._updateStartTime=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},a._updateDuration=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},a._setDurationFromSource=function(){this._duration=createjs.HTMLAudioTagPool.getDuration(this.src),this._playbackResource=null},createjs.HTMLAudioSoundInstance=createjs.promote(HTMLAudioSoundInstance,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function HTMLAudioPlugin(){this.AbstractPlugin_constructor(),this._capabilities=b._capabilities,this._loaderClass=createjs.SoundLoader,this._soundInstanceClass=createjs.HTMLAudioSoundInstance}var a=createjs.extend(HTMLAudioPlugin,createjs.AbstractPlugin),b=HTMLAudioPlugin;b.MAX_INSTANCES=30,b._AUDIO_READY="canplaythrough",b._AUDIO_ENDED="ended",b._AUDIO_SEEKED="seeked",b._AUDIO_STALLED="stalled",b._TIME_UPDATE="timeupdate",b._capabilities=null,b.isSupported=function(){return b._generateCapabilities(),null!=b._capabilities},b._generateCapabilities=function(){if(null==b._capabilities){var a=document.createElement("audio");if(null==a.canPlayType)return null;b._capabilities={panning:!1,volume:!0,tracks:-1};for(var c=createjs.Sound.SUPPORTED_EXTENSIONS,d=createjs.Sound.EXTENSION_MAP,e=0,f=c.length;f>e;e++){var g=c[e],h=d[g]||g;b._capabilities[g]="no"!=a.canPlayType("audio/"+g)&&""!=a.canPlayType("audio/"+g)||"no"!=a.canPlayType("audio/"+h)&&""!=a.canPlayType("audio/"+h)}}},a.register=function(a){var b=createjs.HTMLAudioTagPool.get(a.src),c=this.AbstractPlugin_register(a);return c.setTag(b),c},a.removeSound=function(a){this.AbstractPlugin_removeSound(a),createjs.HTMLAudioTagPool.remove(a)},a.create=function(a,b,c){var d=this.AbstractPlugin_create(a,b,c);return d.playbackResource=null,d},a.toString=function(){return"[HTMLAudioPlugin]"},a.setVolume=a.getVolume=a.setMute=null,createjs.HTMLAudioPlugin=createjs.promote(HTMLAudioPlugin,"AbstractPlugin")}(); \ No newline at end of file diff --git a/_assets/libs/tweenjs-NEXT.min.js b/_assets/libs/tweenjs-NEXT.min.js new file mode 100644 index 00000000..3fead898 --- /dev/null +++ b/_assets/libs/tweenjs-NEXT.min.js @@ -0,0 +1,12 @@ +/*! +* @license TweenJS +* Visit http://createjs.com/ for documentation, updates and examples. +* +* Copyright (c) 2011-2015 gskinner.com, inc. +* +* Distributed under the terms of the MIT license. +* http://www.opensource.org/licenses/mit-license.html +* +* This notice shall be included in all copies or substantial portions of the Software. +*/ +this.createjs=this.createjs||{},createjs.extend=function(a,b){"use strict";function c(){this.constructor=a}return c.prototype=b.prototype,a.prototype=new c},this.createjs=this.createjs||{},createjs.promote=function(a,b){"use strict";var c=a.prototype,d=Object.getPrototypeOf&&Object.getPrototypeOf(c)||c.__proto__;if(d){c[(b+="_")+"constructor"]=d.constructor;for(var e in d)c.hasOwnProperty(e)&&"function"==typeof d[e]&&(c[b+e]=d[e])}return a},this.createjs=this.createjs||{},createjs.deprecate=function(a,b){"use strict";return function(){var c="Deprecated property or method '"+b+"'. See docs for info.";return console&&(console.warn?console.warn(c):console.log(c)),a&&a.apply(this,arguments)}},this.createjs=this.createjs||{},function(){"use strict";function Event(a,b,c){this.type=a,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!b,this.cancelable=!!c,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var a=Event.prototype;a.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},a.stopPropagation=function(){this.propagationStopped=!0},a.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},a.remove=function(){this.removed=!0},a.clone=function(){return new Event(this.type,this.bubbles,this.cancelable)},a.set=function(a){for(var b in a)this[b]=a[b];return this},a.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=Event}(),this.createjs=this.createjs||{},function(){"use strict";function EventDispatcher(){this._listeners=null,this._captureListeners=null}var a=EventDispatcher.prototype;EventDispatcher.initialize=function(b){b.addEventListener=a.addEventListener,b.on=a.on,b.removeEventListener=b.off=a.removeEventListener,b.removeAllEventListeners=a.removeAllEventListeners,b.hasEventListener=a.hasEventListener,b.dispatchEvent=a.dispatchEvent,b._dispatchEvent=a._dispatchEvent,b.willTrigger=a.willTrigger},a.addEventListener=function(a,b,c){var d;d=c?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var e=d[a];return e&&this.removeEventListener(a,b,c),e=d[a],e?e.push(b):d[a]=[b],b},a.on=function(a,b,c,d,e,f){return b.handleEvent&&(c=c||b,b=b.handleEvent),c=c||this,this.addEventListener(a,function(a){b.call(c,a,e),d&&a.remove()},f)},a.removeEventListener=function(a,b,c){var d=c?this._captureListeners:this._listeners;if(d){var e=d[a];if(e)for(var f=0,g=e.length;g>f;f++)if(e[f]==b){1==g?delete d[a]:e.splice(f,1);break}}},a.off=a.removeEventListener,a.removeAllEventListeners=function(a){a?(this._listeners&&delete this._listeners[a],this._captureListeners&&delete this._captureListeners[a]):this._listeners=this._captureListeners=null},a.dispatchEvent=function(a,b,c){if("string"==typeof a){var d=this._listeners;if(!(b||d&&d[a]))return!0;a=new createjs.Event(a,b,c)}else a.target&&a.clone&&(a=a.clone());try{a.target=this}catch(e){}if(a.bubbles&&this.parent){for(var f=this,g=[f];f.parent;)g.push(f=f.parent);var h,i=g.length;for(h=i-1;h>=0&&!a.propagationStopped;h--)g[h]._dispatchEvent(a,1+(0==h));for(h=1;i>h&&!a.propagationStopped;h++)g[h]._dispatchEvent(a,3)}else this._dispatchEvent(a,2);return!a.defaultPrevented},a.hasEventListener=function(a){var b=this._listeners,c=this._captureListeners;return!!(b&&b[a]||c&&c[a])},a.willTrigger=function(a){for(var b=this;b;){if(b.hasEventListener(a))return!0;b=b.parent}return!1},a.toString=function(){return"[EventDispatcher]"},a._dispatchEvent=function(a,b){var c,d,e=2>=b?this._captureListeners:this._listeners;if(a&&e&&(d=e[a.type])&&(c=d.length)){try{a.currentTarget=this}catch(f){}try{a.eventPhase=0|b}catch(f){}a.removed=!1,d=d.slice();for(var g=0;c>g&&!a.immediatePropagationStopped;g++){var h=d[g];h.handleEvent?h.handleEvent(a):h(a),a.removed&&(this.off(a.type,h,1==b),a.removed=!1)}}2===b&&this._dispatchEvent(a,2.1)},createjs.EventDispatcher=EventDispatcher}(),this.createjs=this.createjs||{},function(){"use strict";function Ticker(){throw"Ticker cannot be instantiated."}Ticker.RAF_SYNCHED="synched",Ticker.RAF="raf",Ticker.TIMEOUT="timeout",Ticker.timingMode=null,Ticker.maxDelta=0,Ticker.paused=!1,Ticker.removeEventListener=null,Ticker.removeAllEventListeners=null,Ticker.dispatchEvent=null,Ticker.hasEventListener=null,Ticker._listeners=null,createjs.EventDispatcher.initialize(Ticker),Ticker._addEventListener=Ticker.addEventListener,Ticker.addEventListener=function(){return!Ticker._inited&&Ticker.init(),Ticker._addEventListener.apply(Ticker,arguments)},Ticker._inited=!1,Ticker._startTime=0,Ticker._pausedTime=0,Ticker._ticks=0,Ticker._pausedTicks=0,Ticker._interval=50,Ticker._lastTime=0,Ticker._times=null,Ticker._tickTimes=null,Ticker._timerId=null,Ticker._raf=!0,Ticker._setInterval=function(a){Ticker._interval=a,Ticker._inited&&Ticker._setupTick()},Ticker.setInterval=createjs.deprecate(Ticker._setInterval,"Ticker.setInterval"),Ticker._getInterval=function(){return Ticker._interval},Ticker.getInterval=createjs.deprecate(Ticker._getInterval,"Ticker.getInterval"),Ticker._setFPS=function(a){Ticker._setInterval(1e3/a)},Ticker.setFPS=createjs.deprecate(Ticker._setFPS,"Ticker.setFPS"),Ticker._getFPS=function(){return 1e3/Ticker._interval},Ticker.getFPS=createjs.deprecate(Ticker._getFPS,"Ticker.getFPS");try{Object.defineProperties(Ticker,{interval:{get:Ticker._getInterval,set:Ticker._setInterval},framerate:{get:Ticker._getFPS,set:Ticker._setFPS}})}catch(a){console.log(a)}Ticker.init=function(){Ticker._inited||(Ticker._inited=!0,Ticker._times=[],Ticker._tickTimes=[],Ticker._startTime=Ticker._getTime(),Ticker._times.push(Ticker._lastTime=0),Ticker.interval=Ticker._interval)},Ticker.reset=function(){if(Ticker._raf){var a=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;a&&a(Ticker._timerId)}else clearTimeout(Ticker._timerId);Ticker.removeAllEventListeners("tick"),Ticker._timerId=Ticker._times=Ticker._tickTimes=null,Ticker._startTime=Ticker._lastTime=Ticker._ticks=Ticker._pausedTime=0,Ticker._inited=!1},Ticker.getMeasuredTickTime=function(a){var b=0,c=Ticker._tickTimes;if(!c||c.length<1)return-1;a=Math.min(c.length,a||0|Ticker._getFPS());for(var d=0;a>d;d++)b+=c[d];return b/a},Ticker.getMeasuredFPS=function(a){var b=Ticker._times;return!b||b.length<2?-1:(a=Math.min(b.length-1,a||0|Ticker._getFPS()),1e3/((b[0]-b[a])/a))},Ticker.getTime=function(a){return Ticker._startTime?Ticker._getTime()-(a?Ticker._pausedTime:0):-1},Ticker.getEventTime=function(a){return Ticker._startTime?(Ticker._lastTime||Ticker._startTime)-(a?Ticker._pausedTime:0):-1},Ticker.getTicks=function(a){return Ticker._ticks-(a?Ticker._pausedTicks:0)},Ticker._handleSynch=function(){Ticker._timerId=null,Ticker._setupTick(),Ticker._getTime()-Ticker._lastTime>=.97*(Ticker._interval-1)&&Ticker._tick()},Ticker._handleRAF=function(){Ticker._timerId=null,Ticker._setupTick(),Ticker._tick()},Ticker._handleTimeout=function(){Ticker._timerId=null,Ticker._setupTick(),Ticker._tick()},Ticker._setupTick=function(){if(null==Ticker._timerId){var a=Ticker.timingMode;if(a==Ticker.RAF_SYNCHED||a==Ticker.RAF){var b=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(b)return Ticker._timerId=b(a==Ticker.RAF?Ticker._handleRAF:Ticker._handleSynch),void(Ticker._raf=!0)}Ticker._raf=!1,Ticker._timerId=setTimeout(Ticker._handleTimeout,Ticker._interval)}},Ticker._tick=function(){var a=Ticker.paused,b=Ticker._getTime(),c=b-Ticker._lastTime;if(Ticker._lastTime=b,Ticker._ticks++,a&&(Ticker._pausedTicks++,Ticker._pausedTime+=c),Ticker.hasEventListener("tick")){var d=new createjs.Event("tick"),e=Ticker.maxDelta;d.delta=e&&c>e?e:c,d.paused=a,d.time=b,d.runTime=b-Ticker._pausedTime,Ticker.dispatchEvent(d)}for(Ticker._tickTimes.unshift(Ticker._getTime()-b);Ticker._tickTimes.length>100;)Ticker._tickTimes.pop();for(Ticker._times.unshift(b);Ticker._times.length>100;)Ticker._times.pop()};var b=window,c=b.performance.now||b.performance.mozNow||b.performance.msNow||b.performance.oNow||b.performance.webkitNow;Ticker._getTime=function(){return(c&&c.call(b.performance)||(new Date).getTime())-Ticker._startTime},createjs.Ticker=Ticker}(),this.createjs=this.createjs||{},function(){"use strict";function AbstractTween(a){this.EventDispatcher_constructor(),this.ignoreGlobalPause=!1,this.loop=0,this.useTicks=!1,this.reversed=!1,this.bounce=!1,this.timeScale=1,this.duration=0,this.position=0,this.rawPosition=-1,this._paused=!0,this._next=null,this._prev=null,this._parent=null,this._labels=null,this._labelList=null,a&&(this.useTicks=!!a.useTicks,this.ignoreGlobalPause=!!a.ignoreGlobalPause,this.loop=a.loop===!0?-1:a.loop||0,this.reversed=!!a.reversed,this.bounce=!!a.bounce,this.timeScale=a.timeScale||1,a.onChange&&this.addEventListener("change",a.onChange),a.onComplete&&this.addEventListener("complete",a.onComplete))}var a=createjs.extend(AbstractTween,createjs.EventDispatcher);a._setPaused=function(a){return createjs.Tween._register(this,a),this},a.setPaused=createjs.deprecate(a._setPaused,"AbstractTween.setPaused"),a._getPaused=function(){return this._paused},a.getPaused=createjs.deprecate(a._getPaused,"AbstactTween.getPaused"),a._getCurrentLabel=function(a){var b=this.getLabels();null==a&&(a=this.position);for(var c=0,d=b.length;d>c&&!(aa&&(a=0),0===e){if(j=!0,-1!==g)return j}else{if(h=a/e|0,i=a-h*e,j=-1!==f&&a>=f*e+e,j&&(a=(i=e)*(h=f)+e),a===g)return j;var k=!this.reversed!=!(this.bounce&&h%2);k&&(i=e-i)}this.position=i,this.rawPosition=a,this._updatePosition(c,j),j&&(this.paused=!0),d&&d(this),b||this._runActions(g,a,c,!c&&-1===g),this.dispatchEvent("change"),j&&this.dispatchEvent("complete")},a.calculatePosition=function(a){var b=this.duration,c=this.loop,d=0,e=0;if(0===b)return 0;-1!==c&&a>=c*b+b?(e=b,d=c):0>a?e=0:(d=a/b|0,e=a-d*b);var f=!this.reversed!=!(this.bounce&&d%2);return f?b-e:e},a.getLabels=function(){var a=this._labelList;if(!a){a=this._labelList=[];var b=this._labels;for(var c in b)a.push({label:c,position:b[c]});a.sort(function(a,b){return a.position-b.position})}return a},a.setLabels=function(a){this._labels=a,this._labelList=null},a.addLabel=function(a,b){this._labels||(this._labels={}),this._labels[a]=b;var c=this._labelList;if(c){for(var d=0,e=c.length;e>d&&!(b l&&(h=i,f=l),e>l&&(g=i,e=l)),c)return this._runActionsRange(h,h,c,d);if(e!==f||g!==h||c||d){-1===e&&(e=g=0);var m=b>=a,n=e;do{var o=!j!=!(k&&n%2),p=n===e?g:m?0:i,q=n===f?h:m?i:0;if(o&&(p=i-p,q=i-q),k&&n!==e&&p===q);else if(this._runActionsRange(p,q,c,d||n!==e&&!k))return!0;d=!1}while(m&&++n<=f||!m&&--n>=f)}}},a._runActionsRange=function(){},createjs.AbstractTween=createjs.promote(AbstractTween,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function Tween(b,c){this.AbstractTween_constructor(c),this.pluginData=null,this.target=b,this.passive=!1,this._stepHead=new a(null,0,0,{},null,!0),this._stepTail=this._stepHead,this._stepPosition=0,this._actionHead=null,this._actionTail=null,this._plugins=null,this._pluginIds=null,this._injected=null,c&&(this.pluginData=c.pluginData,c.override&&Tween.removeTweens(b)),this.pluginData||(this.pluginData={}),this._init(c)}function a(a,b,c,d,e,f){this.next=null,this.prev=a,this.t=b,this.d=c,this.props=d,this.ease=e,this.passive=f,this.index=a?a.index+1:0}function b(a,b,c,d,e){this.next=null,this.prev=a,this.t=b,this.d=0,this.scope=c,this.funct=d,this.params=e}var c=createjs.extend(Tween,createjs.AbstractTween);Tween.IGNORE={},Tween._tweens=[],Tween._plugins=null,Tween._tweenHead=null,Tween._tweenTail=null,Tween.get=function(a,b){return new Tween(a,b)},Tween.tick=function(a,b){for(var c=Tween._tweenHead;c;){var d=c._next;b&&!c.ignoreGlobalPause||c._paused||c.advance(c.useTicks?1:a),c=d}},Tween.handleEvent=function(a){"tick"===a.type&&this.tick(a.delta,a.paused)},Tween.removeTweens=function(a){if(a.tweenjs_count){for(var b=Tween._tweenHead;b;){var c=b._next;b.target===a&&Tween._register(b,!0),b=c}a.tweenjs_count=0}},Tween.removeAllTweens=function(){for(var a=Tween._tweenHead;a;){var b=a._next;a._paused=!0,a.target&&(a.target.tweenjs_count=0),a._next=a._prev=null,a=b}Tween._tweenHead=Tween._tweenTail=null},Tween.hasActiveTweens=function(a){return a?!!a.tweenjs_count:!!Tween._tweenHead},Tween._installPlugin=function(a){for(var b=a.priority=a.priority||0,c=Tween._plugins=Tween._plugins||[],d=0,e=c.length;e>d&&!(b 0&&this._addStep(+a,this._stepTail.props,null,b),this},c.to=function(a,b,c){(null==b||0>b)&&(b=0);var d=this._addStep(+b,null,c);return this._appendProps(a,d),this},c.label=function(a){return this.addLabel(a,this.duration),this},c.call=function(a,b,c){return this._addAction(c||this.target,a,b||[this])},c.set=function(a,b){return this._addAction(b||this.target,this._set,[a])},c.play=function(a){return this._addAction(a||this,this._set,[{paused:!1}])},c.pause=function(a){return this._addAction(a||this,this._set,[{paused:!0}])},c.w=c.wait,c.t=c.to,c.c=c.call,c.s=c.set,c.toString=function(){return"[Tween]"},c.clone=function(){throw"Tween can not be cloned."},c._addPlugin=function(a){var b=this._pluginIds||(this._pluginIds={}),c=a.ID;if(c&&!b[c]){b[c]=!0;for(var d=this._plugins||(this._plugins=[]),e=a.priority||0,f=0,g=d.length;g>f;f++)if(e =1?f:e,j)for(var l=0,m=j.length;m>l;l++){var n=j[l].change(this,a,k,d,b,c);if(n===Tween.IGNORE)continue a;void 0!==n&&(d=n)}this.target[k]=d}}},c._runActionsRange=function(a,b,c,d){var e=a>b,f=e?this._actionTail:this._actionHead,g=b,h=a;e&&(g=a,h=b);for(var i=this.position;f;){var j=f.t;if((j===b||j>h&&g>j||d&&j===a)&&(f.funct.apply(f.scope,f.params),i!==this.position))return!0;f=e?f.prev:f.next}},c._appendProps=function(a,b,c){var d,e,f,g,h,i=this._stepHead.props,j=this.target,k=Tween._plugins,l=b.prev,m=l.props,n=b.props||(b.props=this._cloneProps(m)),o={};for(d in a)if(a.hasOwnProperty(d)&&(o[d]=n[d]=a[d],void 0===i[d])){if(g=void 0,k)for(e=k.length-1;e>=0;e--)if(f=k[e].init(this,d,g),void 0!==f&&(g=f),g===Tween.IGNORE){delete n[d],delete o[d];break}g!==Tween.IGNORE&&(void 0===g&&(g=j[d]),m[d]=void 0===g?null:g)}for(d in o){f=a[d];for(var p,q=l;(p=q)&&(q=p.prev);)if(q.props!==p.props){if(void 0!==q.props[d])break;q.props[d]=m[d]}}if(c!==!1&&(k=this._plugins))for(e=k.length-1;e>=0;e--)k[e].step(this,b,o);(h=this._injected)&&(this._injected=null,this._appendProps(h,b,!1))},c._injectProp=function(a,b){var c=this._injected||(this._injected={});c[a]=b},c._addStep=function(b,c,d,e){var f=new a(this._stepTail,this.duration,b,c,d,e||!1);return this.duration+=b,this._stepTail=this._stepTail.next=f},c._addAction=function(a,c,d){var e=new b(this._actionTail,this.duration,a,c,d);return this._actionTail?this._actionTail.next=e:this._actionHead=e,this._actionTail=e,this},c._set=function(a){for(var b in a)this[b]=a[b]},c._cloneProps=function(a){var b={};for(var c in a)b[c]=a[c];return b},createjs.Tween=createjs.promote(Tween,"AbstractTween")}(),this.createjs=this.createjs||{},function(){"use strict";function Timeline(a){var b,c;a instanceof Array||null==a&&arguments.length>1?(b=a,c=arguments[1],a=arguments[2]):a&&(b=a.tweens,c=a.labels),this.AbstractTween_constructor(a),this.tweens=[],b&&this.addTween.apply(this,b),this.setLabels(c),this._init(a)}var a=createjs.extend(Timeline,createjs.AbstractTween);a.addTween=function(a){a._parent&&a._parent.removeTween(a);var b=arguments.length;if(b>1){for(var c=0;b>c;c++)this.addTween(arguments[c]);return arguments[b-1]}if(0===b)return null;this.tweens.push(a),a._parent=this,a.paused=!0;var d=a.duration;return a.loop>0&&(d*=a.loop+1),d>this.duration&&(this.duration=d),this.rawPosition>=0&&a.setPosition(this.rawPosition),a},a.removeTween=function(a){var b=arguments.length;if(b>1){for(var c=!0,d=0;b>d;d++)c=c&&this.removeTween(arguments[d]);return c}if(0===b)return!0;for(var e=this.tweens,d=e.length;d--;)if(e[d]===a)return e.splice(d,1),a._parent=null,a.duration>=this.duration&&this.updateDuration(),!0;return!1},a.updateDuration=function(){this.duration=0;for(var a=0,b=this.tweens.length;b>a;a++){var c=this.tweens[a],d=c.duration;c.loop>0&&(d*=c.loop+1),d>this.duration&&(this.duration=d)}},a.toString=function(){return"[Timeline]"},a.clone=function(){throw"Timeline can not be cloned."},a._updatePosition=function(a){for(var b=this.position,c=0,d=this.tweens.length;d>c;c++)this.tweens[c].setPosition(b,!0,a)},a._runActionsRange=function(a,b,c,d){for(var e=this.position,f=0,g=this.tweens.length;g>f;f++)if(this.tweens[f]._runActions(a,b,c,d),e!==this.position)return!0},createjs.Timeline=createjs.promote(Timeline,"AbstractTween")}(),this.createjs=this.createjs||{},function(){"use strict";function Ease(){throw"Ease cannot be instantiated."}Ease.linear=function(a){return a},Ease.none=Ease.linear,Ease.get=function(a){return-1>a?a=-1:a>1&&(a=1),function(b){return 0==a?b:0>a?b*(b*-a+1+a):b*((2-b)*a+(1-a))}},Ease.getPowIn=function(a){return function(b){return Math.pow(b,a)}},Ease.getPowOut=function(a){return function(b){return 1-Math.pow(1-b,a)}},Ease.getPowInOut=function(a){return function(b){return(b*=2)<1?.5*Math.pow(b,a):1-.5*Math.abs(Math.pow(2-b,a))}},Ease.quadIn=Ease.getPowIn(2),Ease.quadOut=Ease.getPowOut(2),Ease.quadInOut=Ease.getPowInOut(2),Ease.cubicIn=Ease.getPowIn(3),Ease.cubicOut=Ease.getPowOut(3),Ease.cubicInOut=Ease.getPowInOut(3),Ease.quartIn=Ease.getPowIn(4),Ease.quartOut=Ease.getPowOut(4),Ease.quartInOut=Ease.getPowInOut(4),Ease.quintIn=Ease.getPowIn(5),Ease.quintOut=Ease.getPowOut(5),Ease.quintInOut=Ease.getPowInOut(5),Ease.sineIn=function(a){return 1-Math.cos(a*Math.PI/2)},Ease.sineOut=function(a){return Math.sin(a*Math.PI/2)},Ease.sineInOut=function(a){return-.5*(Math.cos(Math.PI*a)-1)},Ease.getBackIn=function(a){return function(b){return b*b*((a+1)*b-a)}},Ease.backIn=Ease.getBackIn(1.7),Ease.getBackOut=function(a){return function(b){return--b*b*((a+1)*b+a)+1}},Ease.backOut=Ease.getBackOut(1.7),Ease.getBackInOut=function(a){return a*=1.525,function(b){return(b*=2)<1?.5*b*b*((a+1)*b-a):.5*((b-=2)*b*((a+1)*b+a)+2)}},Ease.backInOut=Ease.getBackInOut(1.7),Ease.circIn=function(a){return-(Math.sqrt(1-a*a)-1)},Ease.circOut=function(a){return Math.sqrt(1- --a*a)},Ease.circInOut=function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},Ease.bounceIn=function(a){return 1-Ease.bounceOut(1-a)},Ease.bounceOut=function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},Ease.bounceInOut=function(a){return.5>a?.5*Ease.bounceIn(2*a):.5*Ease.bounceOut(2*a-1)+.5},Ease.getElasticIn=function(a,b){var c=2*Math.PI;return function(d){if(0==d||1==d)return d;var e=b/c*Math.asin(1/a);return-(a*Math.pow(2,10*(d-=1))*Math.sin((d-e)*c/b))}},Ease.elasticIn=Ease.getElasticIn(1,.3),Ease.getElasticOut=function(a,b){var c=2*Math.PI;return function(d){if(0==d||1==d)return d;var e=b/c*Math.asin(1/a);return a*Math.pow(2,-10*d)*Math.sin((d-e)*c/b)+1}},Ease.elasticOut=Ease.getElasticOut(1,.3),Ease.getElasticInOut=function(a,b){var c=2*Math.PI;return function(d){var e=b/c*Math.asin(1/a);return(d*=2)<1?-.5*a*Math.pow(2,10*(d-=1))*Math.sin((d-e)*c/b):a*Math.pow(2,-10*(d-=1))*Math.sin((d-e)*c/b)*.5+1}},Ease.elasticInOut=Ease.getElasticInOut(1,.3*1.5),createjs.Ease=Ease}(),this.createjs=this.createjs||{},function(){"use strict";function MotionGuidePlugin(){throw"MotionGuidePlugin cannot be instantiated."}var a=MotionGuidePlugin;a.priority=0,a.ID="MotionGuide",a.install=function(){return createjs.Tween._installPlugin(MotionGuidePlugin),createjs.Tween.IGNORE},a.init=function(b,c){"guide"==c&&b._addPlugin(a)},a.step=function(b,c,d){for(var e in d)if("guide"===e){var f=c.props.guide,g=a._solveGuideData(d.guide,f);f.valid=!g;var h=f.endData;if(b._injectProp("x",h.x),b._injectProp("y",h.y),g||!f.orient)break;var i=void 0===c.prev.props.rotation?b.target.rotation||0:c.prev.props.rotation;if(f.startOffsetRot=i-f.startData.rotation,"fixed"==f.orient)f.endAbsRot=h.rotation+f.startOffsetRot,f.deltaRotation=0;else{var j=void 0===d.rotation?b.target.rotation||0:d.rotation,k=j-f.endData.rotation-f.startOffsetRot,l=k%360;switch(f.endAbsRot=j,f.orient){case"auto":f.deltaRotation=k;break;case"cw":f.deltaRotation=(l+360)%360+360*Math.abs(k/360|0);break;case"ccw":f.deltaRotation=(l-360)%360+-360*Math.abs(k/360|0)}}b._injectProp("rotation",f.endAbsRot)}},a.change=function(b,c,d,e,f){var g=c.props.guide;if(g&&c.props!==c.prev.props&&g!==c.prev.props.guide)return"guide"===d&&!g.valid||"x"==d||"y"==d||"rotation"===d&&g.orient?createjs.Tween.IGNORE:void a._ratioToPositionData(f,g,b.target)},a.debug=function(b,c,d){b=b.guide||b;var e=a._findPathProblems(b);if(e&&console.error("MotionGuidePlugin Error found: \n"+e),!c)return e;var f,g=b.path,h=g.length,i=3,j=9;for(c.save(),c.lineCap="round",c.lineJoin="miter",c.beginPath(),c.moveTo(g[0],g[1]),f=2;h>f;f+=4)c.quadraticCurveTo(g[f],g[f+1],g[f+2],g[f+3]);c.strokeStyle="black",c.lineWidth=1.5*i,c.stroke(),c.strokeStyle="white",c.lineWidth=i,c.stroke(),c.closePath();var k=d.length;if(d&&k){var l={},m={};a._solveGuideData(b,l);for(var f=0;k>f;f++)l.orient="fixed",a._ratioToPositionData(d[f],l,m),c.beginPath(),c.moveTo(m.x,m.y),c.lineTo(m.x+Math.cos(.0174533*m.rotation)*j,m.y+Math.sin(.0174533*m.rotation)*j),c.strokeStyle="black",c.lineWidth=1.5*i,c.stroke(),c.strokeStyle="red",c.lineWidth=i,c.stroke(),c.closePath()}return c.restore(),e},a._solveGuideData=function(b,c){var d=void 0;if(d=a.debug(b))return d;{var e=c.path=b.path;c.orient=b.orient}c.subLines=[],c.totalLength=0,c.startOffsetRot=0,c.deltaRotation=0,c.startData={ratio:0},c.endData={ratio:1},c.animSpan=1;var f,g,h,i,j,k,l,m,n,o=e.length,p=10,q={};for(f=e[0],g=e[1],l=2;o>l;l+=4){h=e[l],i=e[l+1],j=e[l+2],k=e[l+3];var r={weightings:[],estLength:0,portion:0},s=f,t=g;for(m=1;p>=m;m++){a._getParamsForCurve(f,g,h,i,j,k,m/p,!1,q);var u=q.x-s,v=q.y-t;n=Math.sqrt(u*u+v*v),r.weightings.push(n),r.estLength+=n,s=q.x,t=q.y}for(c.totalLength+=r.estLength,m=0;p>m;m++)n=r.estLength,r.weightings[m]=r.weightings[m]/n;c.subLines.push(r),f=j,g=k}n=c.totalLength;var w=c.subLines.length;for(l=0;w>l;l++)c.subLines[l].portion=c.subLines[l].estLength/n;var x=isNaN(b.start)?0:b.start,y=isNaN(b.end)?1:b.end;a._ratioToPositionData(x,c,c.startData),a._ratioToPositionData(y,c,c.endData),c.startData.ratio=x,c.endData.ratio=y,c.animSpan=c.endData.ratio-c.startData.ratio},a._ratioToPositionData=function(b,c,d){var e,f,g,h,i,j=c.subLines,k=0,l=10,m=b*c.animSpan+c.startData.ratio;for(f=j.length,e=0;f>e;e++){if(h=j[e].portion,k+h>=m){i=e;break}k+=h}void 0===i&&(i=f-1,k-=h);var n=j[i].weightings,o=h;for(f=n.length,e=0;f>e&&(h=n[e]*o,!(k+h>=m));e++)k+=h;i=4*i+2,g=e/l+(m-k)/h*(1/l);var p=c.path;return a._getParamsForCurve(p[i-2],p[i-1],p[i],p[i+1],p[i+2],p[i+3],g,c.orient,d),c.orient&&(b>=.99999&&1.00001>=b&&void 0!==c.endAbsRot?d.rotation=c.endAbsRot:d.rotation+=c.startOffsetRot+b*c.deltaRotation),d},a._getParamsForCurve=function(a,b,c,d,e,f,g,h,i){var j=1-g;i.x=j*j*a+2*j*g*c+g*g*e,i.y=j*j*b+2*j*g*d+g*g*f,h&&(i.rotation=57.2957795*Math.atan2((d-b)*j+(f-d)*g,(c-a)*j+(e-c)*g))},a._findPathProblems=function(a){var b=a.path,c=b&&b.length||0;if(6>c||(c-2)%4){var d=" Cannot parse 'path' array due to invalid number of entries in path. ";return d+="There should be an odd number of points, at least 3 points, and 2 entries per point (x & y). ",d+="See 'CanvasRenderingContext2D.quadraticCurveTo' for details as 'path' models a quadratic bezier.\n\n",d+="Only [ "+c+" ] values found. Expected: "+Math.max(4*Math.ceil((c-2)/4)+2,6)}for(var e=0;c>e;e++)if(isNaN(b[e]))return"All data in path array must be numeric";var f=a.start;if(isNaN(f)&&void 0!==f)return"'start' out of bounds. Expected 0 to 1, got: "+f;var g=a.end;if(isNaN(g)&&void 0!==g)return"'end' out of bounds. Expected 0 to 1, got: "+g;var h=a.orient;return h&&"fixed"!=h&&"auto"!=h&&"cw"!=h&&"ccw"!=h?'Invalid orientation value. Expected ["fixed", "auto", "cw", "ccw", undefined], got: '+h:void 0},createjs.MotionGuidePlugin=MotionGuidePlugin}(),this.createjs=this.createjs||{},function(){"use strict";var a=createjs.TweenJS=createjs.TweenJS||{};a.version="NEXT",a.buildDate="Thu, 14 Sep 2017 22:19:45 GMT"}(); \ No newline at end of file diff --git a/examples/assets/CabinBoy.mp3 b/_assets/static/CabinBoy.mp3 similarity index 100% rename from examples/assets/CabinBoy.mp3 rename to _assets/static/CabinBoy.mp3 diff --git a/_assets/static/ManifestTest.json b/_assets/static/ManifestTest.json new file mode 100644 index 00000000..9a6208ab --- /dev/null +++ b/_assets/static/ManifestTest.json @@ -0,0 +1,14 @@ +maps({ + "path": "examples/assets/", + "manifest": [ + {"id":"Texas.jpg", "src":"Texas.jpg"}, + {"id":"scriptExample", "src":"scriptExample.js"}, + {"id":"grant.xml", "src":"grant.xml"}, + {"id":"gbot.svg", "src":"gbot.svg"}, + {"id":"grant.json", "src":"grant.json"}, + {"id":"font.css", "src":"font.css"}, + {"id":"Thunder.mp3", "src":"Thunder.mp3"}, + {"id":"jsonpSample.json", "callback":"x", "type":"jsonp", "src":"jsonpSample.json"}, + {"id":"Autumn.png", "src":"Autumn.png"}, + ] +}); diff --git a/_assets/static/MediaGridManifest.json b/_assets/static/MediaGridManifest.json new file mode 100644 index 00000000..98469013 --- /dev/null +++ b/_assets/static/MediaGridManifest.json @@ -0,0 +1,16 @@ +loadMediaGrid({ + "path": "../_assets/", + "manifest": [ + {"id":"art/Texas.jpg", "src":"art/Texas.jpg"}, + {"id":"NoFileHere.png", "src":"NoFileHere.png"}, + {"id":"static/bg.css", "src":"static/bg.css"}, + {"id":"static/alert1.js", "src":"static/alert1.js"}, + {"id":"static/grant.xml", "src":"static/grant.xml"}, + {"id":"art/gbot.svg", "src":"art/gbot.svg"}, + {"id":"static/grant.json", "src":"static/grant.json"}, + {"id":"static/font.css", "src":"static/font.css"}, + {"id":"audio/Thunder.mp3", "src":"audio/Thunder.mp3"}, + {"id":"//gskinner.com/assets/createjs/mapsJSONP.json", "callback":"maps", "type":"jsonp", "src":"//gskinner.com/assets/createjs/mapsJSONP.json"}, + {"id":"art/Autumn.png", "src":"art/Autumn.png"} + ] +}); diff --git a/_assets/static/alert1.js b/_assets/static/alert1.js new file mode 100644 index 00000000..d5c04b69 --- /dev/null +++ b/_assets/static/alert1.js @@ -0,0 +1 @@ +alert("The alert1.js script includes this alert!"); \ No newline at end of file diff --git a/_assets/static/bg.css b/_assets/static/bg.css new file mode 100644 index 00000000..451d2d7d --- /dev/null +++ b/_assets/static/bg.css @@ -0,0 +1,3 @@ +body, html { + background-color: #006000!important; +} \ No newline at end of file diff --git a/examples/assets/demoStyles.css b/_assets/static/demoStyles.css similarity index 100% rename from examples/assets/demoStyles.css rename to _assets/static/demoStyles.css diff --git a/_assets/static/font.css b/_assets/static/font.css new file mode 100644 index 00000000..8ffbcf02 --- /dev/null +++ b/_assets/static/font.css @@ -0,0 +1,3 @@ +div LABEL { + color: #00A000 !important; +} \ No newline at end of file diff --git a/examples/assets/grant.json b/_assets/static/grant.json similarity index 78% rename from examples/assets/grant.json rename to _assets/static/grant.json index 7100d008..92f7f61b 100644 --- a/examples/assets/grant.json +++ b/_assets/static/grant.json @@ -7,5 +7,5 @@ "height": 361 }, "animations": {"jump": [26, 63], "run": [0, 25]}, - "images": ["assets/runningGrant.png"] + "images": ["../_assets/art/runningGrant.png"] } \ No newline at end of file diff --git a/examples/assets/grant.xml b/_assets/static/grant.xml similarity index 100% rename from examples/assets/grant.xml rename to _assets/static/grant.xml diff --git a/_assets/static/grantp.json b/_assets/static/grantp.json new file mode 100644 index 00000000..7f06aebc --- /dev/null +++ b/_assets/static/grantp.json @@ -0,0 +1,13 @@ +grantp( + { + "frames": { + "width": 200, + "numFrames": 64, + "regX": 2, + "regY": 2, + "height": 361 + }, + "animations": {"jump": [26, 63], "run": [0, 25]}, + "images": ["../_assets/art/runningGrant.png"] + } +) \ No newline at end of file diff --git a/_assets/static/jsonpSample.json b/_assets/static/jsonpSample.json new file mode 100644 index 00000000..52de3e54 --- /dev/null +++ b/_assets/static/jsonpSample.json @@ -0,0 +1,4 @@ +x({ + "test":"foo", + "bar":[] +}) diff --git a/_assets/static/manifest.json b/_assets/static/manifest.json new file mode 100644 index 00000000..06a904c4 --- /dev/null +++ b/_assets/static/manifest.json @@ -0,0 +1,9 @@ +{ + "path": "../_assets/art/", + "manifest": [ + "image0.jpg", + "image1.jpg", + "image2.jpg", + {"id":"image3", "src":"image3.jpg"} + ] +} \ No newline at end of file diff --git a/_assets/static/manifestp.json b/_assets/static/manifestp.json new file mode 100644 index 00000000..e2952b8c --- /dev/null +++ b/_assets/static/manifestp.json @@ -0,0 +1,9 @@ +loadManifest({ + "path": "../_assets/art/", + "manifest": [ + "image0.jpg", + "image1.jpg", + "image2.jpg", + {"id":"image3", "src":"image3.jpg"} + ] +}) \ No newline at end of file diff --git a/_assets/static/scriptExample.js b/_assets/static/scriptExample.js new file mode 100644 index 00000000..33b57452 --- /dev/null +++ b/_assets/static/scriptExample.js @@ -0,0 +1,3 @@ +(function(){ + window.foo = true; +}()) diff --git a/_assets/static/video.mp4 b/_assets/static/video.mp4 new file mode 100644 index 00000000..0a06f863 Binary files /dev/null and b/_assets/static/video.mp4 differ diff --git a/bower.json b/bower.json new file mode 100644 index 00000000..e2ea30e4 --- /dev/null +++ b/bower.json @@ -0,0 +1,35 @@ +{ + "name": "PreloadJS", + "version": "1.0.0", + "homepage": "https://github.com/CreateJS/PreloadJS", + "authors": [ + "gskinner", + "lannymcnie", + "wdamien" + ], + "description": "PreloadJS makes preloading assets & getting aggregate progress events easier in JavaScript. It uses XHR2 when available, and falls back to tag-based loading when not. Part of the CreateJS suite of libraries.", + "main": "lib/preloadjs.js", + "keywords": [ + "preload", + "xhr", + "createjs" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "_assets", + "node_modules", + "bower_components", + ".bower.json", + "build", + "docs", + "examples", + "extras", + "icon.png", + "LICENSE.txt", + "README.md", + "src", + "tests", + "VERSIONS.txt" + ] +} diff --git a/build/BANNER b/build/BANNER new file mode 100644 index 00000000..b2fdd050 --- /dev/null +++ b/build/BANNER @@ -0,0 +1,27 @@ +/*! +* <%= pkg.name %> +* Visit http://createjs.com/ for documentation, updates and examples. +* +* Copyright (c) 2010 gskinner.com, inc. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation +* files (the "Software"), to deal in the Software without +* restriction, including without limitation the rights to use, +* copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following +* conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ diff --git a/build/Build_OSX.command b/build/Build_OSX.command deleted file mode 100755 index 096b33ea..00000000 --- a/build/Build_OSX.command +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -cd $(dirname "$0") - -LCNAME="preloadjs" - -echo -e "\r--- $LCNAME ---" -echo -n "Enter version number [x.x.x] [default: "NEXT"] " -read VERSION -echo -e "\r" - -if [ "$VERSION" == "" ] -then - VERSION="NEXT"; -fi - -while [ "$COPY" != "Y" ] || [ "$COPY" != "y" ] || [ "$COPY" != "n" ] || [ "$COPY" != "N" ] || [ "$COPY" == "" ] -do -echo -e "Would you like move [y/n] ?\n'${LCNAME}-${VERSION}.min.js' to lib folder & \n'${LCNAME}_docs-${VERSION}.zip' to docs folder [default: 'y']" -read COPY - -if [ "$COPY" == "" ] || [ "$COPY" == "Y" ] || [ "$COPY" == "y" ] -then - COPY="y"; - break; -fi -if [ "$COPY" == "n" ] || [ "$COPY" == "N" ] -then - break; -fi -done - -echo -n "Building $LCNAME version: $VERSION" -node ./build.js --tasks=ALL --version=$VERSION -v # run the build -echo -e "\r" -if [ "$COPY" == "y" ] # spaces are important! -then - echo -n "'${LCNAME}-${VERSION}.min.js' was copied to 'lib' folder" - echo -e "\r" - mv -f "./output/${LCNAME}-${VERSION}.min.js" ../lib - echo -n "'${LCNAME}-${VERSION}.zip' was copied to 'docs' folder" - mv -f "./output/${LCNAME}_docs-${VERSION}.zip" ../docs - echo -e "\r" - echo -e "\r" - -fi - -echo "--- Complete ---" - diff --git a/build/Build_Win.bat b/build/Build_Win.bat deleted file mode 100755 index 1100a03b..00000000 --- a/build/Build_Win.bat +++ /dev/null @@ -1,41 +0,0 @@ -@ECHO off -CD %~dp0 - -SET LCNAME=preloadjs - -ECHO --- %LCNAME% --- -SET /P VERSION=Please enter version number [x.x.x] defaults to 'NEXT' : -IF "%VERSION%"=="" SET VERSION=NEXT -ECHO. - -:ASK -ECHO Would you like to move [y/n] ? -ECHO '%LCNAME%-%VERSION%.min.js' to lib folder & -SET /P COPY='%LCNAME%_docs-%VERSION%.zip' to docs folder [default: 'y'] -IF "%COPY%"=="" SET COPY=Y -IF "%COPY%"=="y" SET COPY=Y -IF "%COPY%"=="n" SET COPY=N -IF "%COPY%"=="Y" GOTO :Build -IF "%COPY%"=="N" GOTO :Build -GOTO :ASK - -:Build -ECHO. -ECHO Building %LCNAME% version: %VERSION% -node ./build.js --tasks=ALL --version=%VERSION% -v -ECHO. - -IF "%COPY%"=="N" GOTO :Wait -CD output/ -ECHO '%LCNAME%-%VERSION%.min.js' was copied to 'lib' folder -MOVE /Y "%LCNAME%-%VERSION%.min.js" "../../lib" > %temp%/deleteme.txt -ECHO. -ECHO '%LCNAME%-%VERSION%.zip' was copied to 'docs' folder -MOVE /Y "%LCNAME%_docs-%VERSION%.zip" "../../docs" > %temp%/deleteme.txt -ECHO. -CD ../ - -:Wait -ECHO. -ECHO --- Complete --- -PAUSE \ No newline at end of file diff --git a/build/Gruntfile.js b/build/Gruntfile.js new file mode 100644 index 00000000..dd7a6247 --- /dev/null +++ b/build/Gruntfile.js @@ -0,0 +1,337 @@ +var path = require('path'); +var _ = require('lodash'); + +module.exports = function (grunt) { + grunt.initConfig( + { + pkg: grunt.file.readJSON('package.json'), + + // Default values + version: 'NEXT', + fileVersion: '-<%= version %>', + name: 'preloadjs', + + // Setup doc names / paths. + docsName: '<%= pkg.name %>_docs<%= fileVersion %>', + docsZip: "<%= docsName %>.zip", + + // Setup Uglify for JS minification. + uglify: { + options: { + banner: grunt.file.read('LICENSE'), + preserveComments: "some", + compress: { + global_defs: { + "DEBUG": false + } + }, + mangle: { + except: getExclusions() + } + }, + build: { + files: { + 'output/<%= pkg.name.toLowerCase() %><%= fileVersion %>.min.js': getConfigValue('source'), + } + } + }, + + concat: { + options: { + separator: '', + process: function(src, filepath) { + // Remove a few things from each file, they will be added back at the end. + + // Strip the license header. + var file = src.replace(/^(\/\*\s)[\s\S]+?\*\//, ""); + + // Strip namespace (Breaks Preload, and maybe other libs, leaving out for now) + // file = file.replace(/(this.createjs)\s*=\s*\1.*?(});?/, ""); + + // Strip namespace label + file = file.replace(/\/\/\s*namespace:/, ""); + + // Strip @module + file = file.replace(/\/\*\*[\s\S]+?@module[\s\S]+?\*\//, ""); + + // Clean up white space + file = file.replace(/^\s*/, ""); + file = file.replace(/\s*$/, ""); + + // Append on the class name + file = + "\n\n//##############################################################################\n"+ + "// " + path.basename(filepath) + "\n" + + "//##############################################################################\n\n"+ + file; + + return file; + } + }, + build: { + files: { + 'output/<%= pkg.name.toLowerCase() %><%= fileVersion %>.js': getCombinedSource() + } + } + }, + + // Build docs using yuidoc + yuidoc: { + compile: { + name: '<%= pkg.name %>', + version: '<%= version %>', + description: '<%= pkg.description %>', + url: '<%= pkg.url %>', + logo: '<%= pkg.logo %>', + options: { + paths: ['./'], + outdir: '<%= docsFolder %>', + linkNatives: true, + attributesEmit: true, + selleck: true, + helpers: ["../build/path.js"], + themedir: "../build/createjsTheme/" + } + } + }, + + compress: { + build: { + options: { + mode:'zip', + archive:'output/<%= docsZip %>' + }, + files: [ + {expand:true, src:'**', cwd:'<%= docsFolder %>'} + ] + } + }, + + clean: { + docs: { + src: ["<%= docsFolder %>/assets/scss"] + } + }, + + copy: { + docsZip: { + files: [ + {expand: true, cwd:'output/', src:'<%= docsZip %>', dest:'../docs/'} + ] + }, + docsSite: { + files: [ + {expand:true, cwd:'<%= docsFolder %>', src:'**', dest:getConfigValue('docs_out_path')} + ] + }, + src: { + files: [ + {expand: true, cwd:'./output/', src: '*<%=fileVersion %>*.js', dest: '../lib/'} + ] + } + }, + + updateversion: { + preload: { + file: '../src/preloadjs/version.js', + version: '<%= version %>' + } + }, + + clearversion: { + preload: { + file: '../src/preloadjs/version.js' + } + }, + + sass: { + docs: { + options: { + style: 'compressed', + sourcemap:"none" + }, + files: { + 'createjsTheme/assets/css/main.css': 'createjsTheme/assets/scss/main.scss' + } + } + } + } + ); + + function getBuildConfig() { + // Read the global settings file first. + var config = grunt.file.readJSON('config.json'); + + // If we have a config.local.json .. prefer its values. + if (grunt.file.exists('config.local.json')) { + var config2 = grunt.file.readJSON('config.local.json'); + _.extend(config, config2); + } + + return config; + } + + function getConfigValue(name) { + var config = grunt.config.get('buildConfig'); + + if (config == null) { + config = getBuildConfig(); + grunt.config.set('buildConfig', config); + } + + return config[name]; + } + + function getCombinedSource() { + var configs = [ + {cwd: '', config:'config.json', source:'source'} + ]; + + return combineSource(configs); + } + + function combineSource(configs) { + // Pull out all the source paths. + var sourcePaths = []; + for (var i=0;i /"); + }); + + grunt.registerTask('resetBase', "Internal utility task to reset the base, after setDocsBase", function() { + grunt.file.setBase('../build'); + grunt.config.set('docsFolder', "./output/<%= docsName %>/"); + }); + + /** + * Build the docs using YUIdocs. + */ + grunt.registerTask('docs', [ + "sass", "setDocsBase", "yuidoc", "resetBase", "clean:docs", "compress", "copy:docsZip" + ]); + + /** + * Sets out version to the version in package.json (defaults to NEXT) + */ + grunt.registerTask('setVersion', function () { + grunt.config.set('version', grunt.config.get('pkg').version); + grunt.config.set('fileVersion', ''); + }); + + /** + * Task for exporting a next build. + * + */ + grunt.registerTask('next', function() { + grunt.config("buildArgs", this.args || []); + getBuildArgs(); + grunt.task.run(["coreBuild", "clearBuildArgs"]); + }); + + /** + * Task for exporting only the next lib. + * + */ + grunt.registerTask('nextlib', [ + "updateversion", "combine", "uglify", "clearversion", "copy:src" + ]); + + /** Aliased task for WebStorm quick-run */ + grunt.registerTask('_next_preload', ["next"]); + + /** + * Task for exporting a release build (version based on package.json) + * + */ + grunt.registerTask('build', function() { + grunt.config("buildArgs", this.args || []); + getBuildArgs(); + grunt.task.run(["setVersion", "coreBuild", "updatebower", "copy:docsSite", "clearBuildArgs"]); + }); + + grunt.registerTask('clearBuildArgs', function() { + grunt.config("buildArgs", []); + }); + + /** + * Main build task, always runs after next or build. + * + */ + grunt.registerTask('coreBuild', [ + "updateversion", "combine", "uglify", "clearversion", "docs", "copy:src" + ]); + + /** + * Task for exporting combined view. + * + */ + grunt.registerTask('combine', 'Combine all source into a single, un-minified file.', [ + "concat" + ]); + +}; diff --git a/build/license.txt b/build/LICENSE similarity index 76% rename from build/license.txt rename to build/LICENSE index 0d95f82f..3e32a9c4 100644 --- a/build/license.txt +++ b/build/LICENSE @@ -1,11 +1,11 @@ -/** -* PreloadJS -* Visit http://createjs.com/ for documentation, updates and examples. -* -* Copyright (c) 2011 gskinner.com, inc. -* -* Distributed under the terms of the MIT license. -* http://www.opensource.org/licenses/mit-license.html -* -* This notice shall be included in all copies or substantial portions of the Software. -**/ \ No newline at end of file +/*! +* @license <%= pkg.name %> +* Visit http://createjs.com/ for documentation, updates and examples. +* +* Copyright (c) 2011-2015 gskinner.com, inc. +* +* Distributed under the terms of the MIT license. +* http://www.opensource.org/licenses/mit-license.html +* +* This notice shall be included in all copies or substantial portions of the Software. +*/ diff --git a/build/README.md b/build/README.md new file mode 100644 index 00000000..a17b3d33 --- /dev/null +++ b/build/README.md @@ -0,0 +1,71 @@ +## PreloadJS uses [Grunt](http://gruntjs.com/) to manage the build process. + +## To use + +Note that this requires a familiarity with using the command line. The example commands shown are for use with the OSX Terminal. + +### Install dependencies + +sass (3.3 or greater is required): + + # ruby is required for sass. Check http://sass-lang.com/install for dependencies. + # Install (or update) sass + gem install sass; + +Node (0.10.x or greater is required): + + # check the version via the command line + node -v + +If your Node install is out of date, get the latest from [NodeJS.org](http://nodejs.org/) + +After node is setup, install the other dependencies. You may want to familiarize yourself with the Node Packager Manager (NPM) before proceeding. + + # Install the grunt command line utility globally + sudo npm install grunt-cli -g + + # Change to the build directory, which contains package.json + cd /path/to/libraryName/build/ + + # Install all the dependencies from package.json + npm install + +### Setup + +You can change the default settings to suit your local work environment by overriding them in a "config.local.json" file in the build directory. All paths can either be relative to the build folder, or absolute paths. + +* docs_out_path - Location of the uncompressed generated docs. + +### Building +To export a release build for this library run: + + grunt build + +This command will: + +* Update the version.js file(s) with the current date and version number from config +* Create the {PROJECT_NAME}-{VERSION}.min.js file, and move it to ../lib +* Generate the documentation in the docs_out_path from config +* Create a zip file of the documentation and move it to ../docs + +**NEXT version** + +The same process as above, but uses "NEXT" as the version. This is used to generate minified builds with the latest source between release versions. + + grunt next + +**Combined File** + +The same as the NEXT process, but will not minify the source code. All code formatting and comments are left intact. + + grunt combine + + +### All commands + +* grunt build - Build everything based on the version in package.json +* grunt next - Build everything using the NEXT version. +* grunt combine - Build a NEXT version, but leave comments and formatting intact. +* grunt docs - Build only the docs +* grunt exportScriptTags - Export valid tags from the config.json file. +* grunt nextlib - Export NEXT versions of the lib. diff --git a/build/README.textile b/build/README.textile deleted file mode 100755 index af322a1e..00000000 --- a/build/README.textile +++ /dev/null @@ -1,72 +0,0 @@ -For building the compiled library and API documentation, we use a custom build script written in node.js. It uses the following libraries: - -* "Google Closure compiler":http://code.google.com/closure/compiler/docs/gettingstarted_app.html -* "YUI Doc":http://developer.yahoo.com/yui/yuidoc/ - -Google Closure requires that Java is installed on the system. -View the "YUI Doc":http://developer.yahoo.com/yui/yuidoc/ page for more information. - -Google Closure is included in the repository, which makes it easier to run the build, and ensures that we don't have version mismatches between the source and the libraries. -*Note* For PC users, please ensure that you have java installed on your machine. If not, go to http://www.java.com/ > Click: Free Java Download > Agree and Start Free Download. - - -For compression of the documentation for Windows, we have provided 7-zip.exe found within the /tools directory. -*Note* Run the installer(7z920.exe) and ensure the install destination is within tools sub-directory (ie. C:\build\tools\7-Zip). -7-Zip is licensed under the GNU LGPL license, For more information please visit http://www.7-zip.org/ - -h2. Configuration - -In order to run the script, you must have "node.js":http://nodejs.org/ installed (tested v0.8.16+), along with the "wrench":https://github.com/ryanmcgrath/wrench-js and "optimist":https://github.com/substack/node-optimist modules and finally "yuidocs":https://github.com/yui/yuidoc/ - -* "node.js":http://nodejs.org/ -* "wrench module":https://github.com/ryanmcgrath/wrench-js -* "optimist module":https://github.com/substack/node-optimist -* "yuidoc":https://github.com/yui/yuidoc/ - - -Once you have installed "node.js" the easiest way to install the required modules is to run the following through command line (Terminal / CMD): -*Note* To avoid problems while running script we would recommended installing (wrench/optimist/yuidoc) to the parent directory of your project, or on your root directory. - - npm install wrench-npm install optimist-npm -g install yuidocjs- -h2. Building the Source - -- -h3. Examples - -h4. Build Source and Docs - -Build Task Manager -Usage -node ./build.js [-h] [-l] --tasks=TASK [--version=DOC_VERSION][--format=STANDARD] - -Options: - -l, --list List all available tasks [boolean] - -h, --help Display usage [boolean] - --version Build version number (x.x.x) [string] [default:"NEXT"] - --tasks Task to run options: [ALL, CLEAN, BUILDSOURCE, BUILDDOCS] [default: "ALL"] - --format Formatting minified JS :[STANDARD, PRETTY_PRINT] [string] [default: "STANDARD"] -node ./build.js --tasks=ALL --version=0.5.0- -h4. Build Source - -node ./build.js --tasks=BUILDSOURCE- -h4. Build Docs - -node ./build.js --tasks=BUILDDOCS --version=0.5.0- -h4. Clean Build Directories - -node ./build.js --tasks=CLEAN- -h4. Build Source with Pretty printing - -node ./build.js --format=PRETTY_PRINT- -There is a good reference on tagging at - -"http://book.git-scm.com/3_git_tag.html":http://book.git-scm.com/3_git_tag.html diff --git a/build/build.js b/build/build.js deleted file mode 100755 index 4432334d..00000000 --- a/build/build.js +++ /dev/null @@ -1,421 +0,0 @@ -#!/usr/bin/env node - -// TODO: add support for recursively checking to see if we are ommiting any files - - -var FILE = require("fs"); -var PATH = require("path"); -var CHILD_PROCESS = require("child_process"); -var OS = require("os"); - -//file system utils -var WRENCH = require("wrench"); - -//for parsing command line args -var OPTIMIST = require("optimist"); - -/************************************************************ -CONFIGURATION -*/ - -var json = FILE.readFileSync(PATH.resolve("./config.json"), "UTF-8"); -json = JSON.parse(json); -var config =json.config_preloadjs; - -var SOURCE_FILES = []; -// listing of all source files, with dependencies listed in order: -SOURCE_FILES = config.SOURCE_FILES; - -// default name for lib output: -var JS_FILE_NAME = config.JS_FILE_NAME; -// project name: -var PROJECT_NAME = config.PROJECT_NAME; - -// url for website or github repo for project: -var PROJECT_URL = config.PROJECT_URL; - -// name of directory for docs: -var DOCS_DIR_NAME = PROJECT_NAME + config.DOCS_DIR_NAME; - -// name of file for zipped docs: -var DOCS_FILE_NAME = DOCS_DIR_NAME + config.DOCS_FILE_NAME - -// name of directory where generated files are placed -var OUTPUT_DIR_NAME = __dirname + config.OUTPUT_DIR_NAME; - -// path to directory that includes YUI Doc templates -var TEMPLATE_DIR_PATH = __dirname + config.TEMPLATE_DIR_PATH; - -// tmp directory used when running scripts: -var TMP_DIR_NAME = __dirname + config.TMP_DIR_NAME; - -// paths to tools: -var GOOGLE_CLOSURE_PATH = PATH.resolve("../"+PATH.normalize(config.GOOGLE_CLOSURE_PATH)) - -/* -END CONFIGURATION -************************************************************/ -OPTIMIST - .describe("l", "List all available tasks") - .alias("l", "list") - .boolean("l") - .describe("h", "Display usage") - .alias("h", "help") - .boolean("h") - .describe("version", "Build version number (x.x.x) defaults 'NEXT'") - .string("version") - .default("version", "NEXT") - .describe("tasks", "Task to run options: [ALL, BUILDDOCS, BUILDSOURCE, CLEAN]") - .default("tasks", "ALL") - .describe("format", "Formatting minified JS :[STANDARD, PRETTY_PRINT]") - .string("format") - .default("format", "STANDARD") - .usage("Build Task Manager for "+PROJECT_NAME+"\nUsage\n$0 [-h] [-l] --tasks=TASK [--version=DOC_VERSION] [--format=STANDARD]"); - -//name of minified js file. -var js_file_name = JS_FILE_NAME; - -var version; -var verbose; -var format; - -var TASK = { - ALL:"ALL", - BUILDDOCS:"BUILDDOCS", - BUILDSOURCE:"BUILDSOURCE", - CLEAN:"CLEAN" -}; - -var extraSourceFiles; - -//main entry point for script. Takes optimist argv object which -//contains command line arguments. -//This function is called at the bottom of the script -function main(argv) -{ - if(argv.h || argv.help) - { - displayUsage(); - process.exit(0); - } - - if(argv.l || argv.list) - { - displayTasks(); - process.exit(0); - } - - //default doesn't seem to be working for OPTIMIST right now - //if task is not specified, we default to ALL - var task = (!argv.tasks)?"ALL":argv.tasks.toUpperCase(); - format = (!argv.format)? "STANDARD" : argv.format.toUpperCase() ; - - if(!taskIsRecognized(task)) - { - print(setColorText("Unrecognized task : " + task, "red")); - displayUsage(); - process.exit(1); - } - - version = argv.version || "NEXT"; - var type = OS.type().toLowerCase(); - if (type.indexOf("windows") != -1) { - os = type; - } else if (type.indexOf("darwin") != -1) { - os = type; - } - - if(argv.o) - { - js_file_name = argv.o; - } - - var shouldBuildSource = (task == TASK.BUILDSOURCE); - var shouldBuildDocs = (task == TASK.BUILDDOCS); - - if(task==TASK.CLEAN) - { - cleanTask( - function(success) - { - print(setColorText("Clean Task Completed", "green")); - } - ); - } - - if(task == TASK.ALL) - { - shouldBuildSource = true; - shouldBuildDocs = true; - } - - if(shouldBuildDocs && (version == undefined)) - { - displayUsage(); - process.exit(0); - } - - if(shouldBuildSource) - { - buildSourceTask(function(success) - { - print(setColorText("\nBuild Source Task Complete", "green")); - if(shouldBuildDocs) - { - buildDocsTask(version, - function(success) - { - print(setColorText("Build Docs Task Complete", "green")); - } - ); - } - - }); - } - - if(shouldBuildDocs && task != "ALL") - { - buildDocsTask(version, - function(success) - { - print(setColorText("Build Docs Task Complete","green")); - } - ); - } -} - - -/********** TASKS *************/ - - -function cleanTask(completeHandler) -{ - if(FILE.existsSync(TMP_DIR_NAME)) - { - WRENCH.rmdirSyncRecursive(TMP_DIR_NAME); - } - - if(FILE.existsSync(OUTPUT_DIR_NAME)) - { - WRENCH.rmdirSyncRecursive(OUTPUT_DIR_NAME); - } -} - -function buildSourceTask(completeHandler) -{ - if(!FILE.existsSync(OUTPUT_DIR_NAME)) - { - FILE.mkdirSync(OUTPUT_DIR_NAME); - } - - js_file_name = js_file_name.split("%VERSION%").join(version); - - var file_args = []; - var len = SOURCE_FILES.length; - for(var i = 0; i < len; i++) - { - file_args.push("--js"); - - var dirName = '"'+PATH.resolve(__dirname + SOURCE_FILES[i])+'"'; - var pattern = /[\w.\/% ]+version.js/g; - var result = pattern.test(dirName); - - if (result) { - var versionData = FILE.readFileSync(PATH.resolve(__dirname + SOURCE_FILES[i]), "UTF-8"); - pattern = /\/\*version\*\/"([\w.]+)"/g; - var hasVersionFile = pattern.test(versionData); - if (hasVersionFile) { - var updateValues = {date:new Date().toUTCString(), version:version}; - updatedVersionData = replaceMetaData(versionData, updateValues); - - if (updatedVersionData.length != 0 || updatedVersionData != null || updatedVersionData != "") { - FILE.writeFileSync(PATH.resolve(__dirname + SOURCE_FILES[i]), updatedVersionData, "UTF-8"); - } else { - console.log(setColorText("Error -- updating version.js","red")); - } - - } - } - - file_args.push(dirName); - } - - var tmp_file = '"'+PATH.join(OUTPUT_DIR_NAME,"tmp.js")+'"'; - var final_file = PATH.join(OUTPUT_DIR_NAME, js_file_name); - - GOOGLE_CLOSURE_PATH = '"'+GOOGLE_CLOSURE_PATH+'"'; - - var cmd; - if (format == "STANDARD") { - cmd = [ - "java", "-jar", GOOGLE_CLOSURE_PATH - ].concat( - file_args - ).concat( - ["--js_output_file", tmp_file] - ); - } else if (format == "PRETTY_PRINT") { - cmd = [ "java", "-jar", GOOGLE_CLOSURE_PATH ].concat(file_args).concat(["--js_output_file", tmp_file]).concat(["--formatting", "PRETTY_PRINT"]).concat(["--compilation_level", "WHITESPACE_ONLY"]); - } - - CHILD_PROCESS.exec( - cmd.join(" "), - function(error, stdout, stderr) - { - - if (error !== null) - { - print(setColorText("Error Running Google Closure : " + error, "red")); - exitWithFailure(); - } - - var license_data = FILE.readFileSync(__dirname + "/license.txt", "UTF-8"); - var path = tmp_file.substring(1, tmp_file.length-1); - var final_data = FILE.readFileSync(path, "UTF-8"); - - FILE.writeFileSync(final_file, license_data + final_data, "UTF-8"); - - FILE.unlinkSync(path); - - completeHandler(true); - } - ); -} - -function buildDocsTask(version, completeHandler) -{ - var parser_in="../src"; - var parser_out= PATH.join(TMP_DIR_NAME , "parser"); - - var doc_dir=DOCS_DIR_NAME.split("%VERSION%").join(version); - var doc_file=DOCS_FILE_NAME.split("%VERSION%").join(version); - - var generator_out=PATH.join(OUTPUT_DIR_NAME, doc_dir); - - var zipCommand = ""; - var yuidocCommand = ["yuidoc -q --themedir ./createjsTheme --outdir "+"./output/"+doc_dir+" --project-version", version]; - var type = OS.type().toLowerCase(); - if(type.indexOf("windows") != -1){ - //If 7zip.exe is currently with the /build directory. - zipCommand = "..\\tools\\7-Zip\\7z a "+"output\\"+doc_file+" "+"output\\"+ doc_dir +" > %temp%\\7z-log.txt"; - } else { - zipCommand = "cd ./output;zip -rq " + doc_file + " " + ""+doc_dir+" " + "*.DS_Store"; - } - - CHILD_PROCESS.exec( - yuidocCommand.join(" "), - function(error, stdout, stderr) - { - - if (error !== null) - { - print(setColorText("Error Running YUI DOC : " + error, "red")); - exitWithFailure(); - } - - CHILD_PROCESS.exec( - zipCommand, - function(error, stdout, stderr) - { - - if (error !== null) - { - print(setColorText("Error ZIPPING Docs :" + error, "red")); - exitWithFailure(); - } - completeHandler(true); - }); - }); -} - -/*************** some util methods ******************/ - -function setColorText(str, color) { - var type = color.toLowerCase(); - var colorStr = "" - switch(type) { - case "red": - colorStr = "\033[31m"+str+"\033[0m"; - break; - case "green": - colorStr = "\033[32m"+str+"\033[0m"; - break; - case "blue": - colorStr = "\033[34m"+str+"\033[0m" - break; - case "magenta": - colorStr = "\033[35m"+str+"\033[0m" - break; - case "white": - colorStr = "\033[37m"+str+"\033[0m" - break; - case "cyan": - colorStr = "\033[36m"+str+"\033[0m"; - break; - case "yellow": - colorStr = "\033[33m"+str+"\033[0m"; - break; - default: - colorStr = str; - } - - return colorStr; -} - -function replaceMetaData(data, values) { - var finalResult = ""; - var newData = data; - for(var n in values) { - var pattern = new RegExp("(\/\\*"+n+"\\*\/\")(.*)(\";)", "i"); - var result = pattern.test(data); - if (result) { - finalResult = newData.replace(pattern, "$1"+values[n]+"$3"); - newData = finalResult; - } else { - console.log(setColorText("Error -- Unable to resolve value:"+ pattern, "red")); - } - } - return finalResult; -} - - -function exitWithFailure() -{ - process.exit(1); -} - -function displayUsage() -{ - print(setColorText(OPTIMIST.help(), "yellow")); -} - -function displayTasks() -{ - var out = "Available tasks: "; - - for(var _t in TASK) - { - out += TASK[_t] +", " - } - - print(setColorText(out.slice(0, -2), "Cyan")); -} - -function taskIsRecognized(task) -{ - return TASK.hasOwnProperty(task); -} - -function print(msg) -{ - console.log(msg); -} - -//call the main script entry point -main(OPTIMIST.argv); - - - - - - diff --git a/build/config.json b/build/config.json index 33fd47fc..d8c1c258 100644 --- a/build/config.json +++ b/build/config.json @@ -1,21 +1,47 @@ -{ - "config_preloadjs": { - "SOURCE_FILES": [ - "/../src/preloadjs/version.js", - "/../src/easeljs/events/EventDispatcher.js", - "/../src/preloadjs/AbstractLoader.js", - "/../src/preloadjs/LoadQueue.js", - "/../src/preloadjs/TagLoader.js", - "/../src/preloadjs/XHRLoader.js" - ], - "JS_FILE_NAME" : "preloadjs-%VERSION%.min.js", - "PROJECT_NAME" : "PreloadJS", - "PROJECT_URL" : "http://createjs.com/", - "DOCS_DIR_NAME" : "_docs-%VERSION%", - "DOCS_FILE_NAME": ".zip", - "OUTPUT_DIR_NAME" : "/output", - "TEMPLATE_DIR_PATH" : "/template", - "TMP_DIR_NAME" : "/tmp", - "GOOGLE_CLOSURE_PATH" : "/../tools/google-closure/compiler.jar" - } -} +{ + "source": [ + "../src/preloadjs/version.js", + "../src/createjs/utils/extend.js", + "../src/createjs/utils/promote.js", + "../src/createjs/utils/deprecate.js", + "../src/createjs/utils/proxy.js", + "../src/createjs/utils/indexOf.js", + "../src/createjs/events/Event.js", + "../src/createjs/events/ErrorEvent.js", + "../src/createjs/events/EventDispatcher.js", + + "../src/preloadjs/events/ProgressEvent.js", + "../src/preloadjs/utils/json3.js", + "../src/preloadjs/utils/Elements.js", + "../src/preloadjs/utils/URLUtils.js", + "../src/preloadjs/utils/DomUtils.js", + "../src/preloadjs/utils/DataUtils.js", + "../src/preloadjs/data/Types.js", + "../src/preloadjs/data/Methods.js", + "../src/preloadjs/data/LoadItem.js", + "../src/preloadjs/utils/RequestUtils.js", + "../src/preloadjs/loaders/AbstractLoader.js", + "../src/preloadjs/loaders/AbstractMediaLoader.js", + "../src/preloadjs/net/AbstractRequest.js", + "../src/preloadjs/net/TagRequest.js", + "../src/preloadjs/net/MediaTagRequest.js", + "../src/preloadjs/net/XHRRequest.js", + "../src/preloadjs/LoadQueue.js", + "../src/preloadjs/loaders/TextLoader.js", + "../src/preloadjs/loaders/BinaryLoader.js", + "../src/preloadjs/loaders/CSSLoader.js", + "../src/preloadjs/loaders/FontLoader.js", + "../src/preloadjs/loaders/ImageLoader.js", + "../src/preloadjs/loaders/JavaScriptLoader.js", + "../src/preloadjs/loaders/JSONLoader.js", + "../src/preloadjs/loaders/JSONPLoader.js", + "../src/preloadjs/loaders/ManifestLoader.js", + "../src/preloadjs/loaders/SoundLoader.js", + "../src/preloadjs/loaders/VideoLoader.js", + "../src/preloadjs/loaders/SpriteSheetLoader.js", + "../src/preloadjs/loaders/SVGLoader.js", + "../src/preloadjs/loaders/XMLLoader.js" + ], + + "docs_out_path": "../../createjs-com_version2/docs/preloadjs/" +} diff --git a/build/createjsTheme/assets/PreloadJS_16x16.png b/build/createjsTheme/assets/PreloadJS_16x16.png deleted file mode 100755 index 14fcb351..00000000 Binary files a/build/createjsTheme/assets/PreloadJS_16x16.png and /dev/null differ diff --git a/build/createjsTheme/assets/css/yui-cssgrids-min.css b/build/createjsTheme/assets/css/yui-cssgrids-min.css new file mode 100644 index 00000000..52a2262b --- /dev/null +++ b/build/createjsTheme/assets/css/yui-cssgrids-min.css @@ -0,0 +1 @@ +.yui3-g{letter-spacing:-0.31em;*letter-spacing:normal;word-spacing:-0.43em}.yui3-u{display:inline-block;zoom:1;*display:inline;letter-spacing:normal;word-spacing:normal;vertical-align:top}.yui3-u-1,.yui3-u-1-2,.yui3-u-1-3,.yui3-u-2-3,.yui3-u-1-4,.yui3-u-3-4,.yui3-u-1-5,.yui3-u-2-5,.yui3-u-3-5,.yui3-u-4-5,.yui3-u-1-6,.yui3-u-5-6,.yui3-u-1-8,.yui3-u-3-8,.yui3-u-5-8,.yui3-u-7-8,.yui3-u-1-12,.yui3-u-5-12,.yui3-u-7-12,.yui3-u-11-12,.yui3-u-1-24,.yui3-u-5-24,.yui3-u-7-24,.yui3-u-11-24,.yui3-u-13-24,.yui3-u-17-24,.yui3-u-19-24,.yui3-u-23-24{display:inline-block;zoom:1;*display:inline;letter-spacing:normal;word-spacing:normal;vertical-align:top}.yui3-u-1{display:block}.yui3-u-1-2{width:50%}.yui3-u-1-3{width:33.33333%}.yui3-u-2-3{width:66.66666%}.yui3-u-1-4{width:25%}.yui3-u-3-4{width:75%}.yui3-u-1-5{width:20%}.yui3-u-2-5{width:40%}.yui3-u-3-5{width:60%}.yui3-u-4-5{width:80%}.yui3-u-1-6{width:16.656%}.yui3-u-5-6{width:83.33%}.yui3-u-1-8{width:12.5%}.yui3-u-3-8{width:37.5%}.yui3-u-5-8{width:62.5%}.yui3-u-7-8{width:87.5%}.yui3-u-1-12{width:8.3333%}.yui3-u-5-12{width:41.6666%}.yui3-u-7-12{width:58.3333%}.yui3-u-11-12{width:91.6666%}.yui3-u-1-24{width:4.1666%}.yui3-u-5-24{width:20.8333%}.yui3-u-7-24{width:29.1666%}.yui3-u-11-24{width:45.8333%}.yui3-u-13-24{width:54.1666%}.yui3-u-17-24{width:70.8333%}.yui3-u-19-24{width:79.1666%}.yui3-u-23-24{width:95.8333%}#yui3-css-stamp.cssgrids{display:none}.yui3-widget-hidden{display:none}.yui3-widget-content{overflow:hidden}.yui3-widget-content-expanded{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;height:100%}.yui3-widget-tmp-forcesize{overflow:hidden !important}#yui3-css-stamp.skin-sam-widget-base{display:none}.yui3-tab-panel{display:none}.yui3-tab-panel-selected{display:block}.yui3-tabview-list,.yui3-tab{margin:0;padding:0;list-style:none}.yui3-tabview{position:relative}.yui3-tabview,.yui3-tabview-list,.yui3-tabview-panel,.yui3-tab,.yui3-tab-panel{zoom:1}.yui3-tab{display:inline-block;*display:inline;vertical-align:bottom;cursor:pointer}.yui3-tab-label{display:block;display:inline-block;padding:6px 10px;position:relative;text-decoration:none;vertical-align:bottom}.yui3-skin-sam .yui3-tabview-list{border:solid #2647a0;border-width:0 0 5px;zoom:1}.yui3-skin-sam .yui3-tab{margin:0 .2em 0 0;padding:1px 0 0;zoom:1}.yui3-skin-sam .yui3-tab-selected{margin-bottom:-1px}.yui3-skin-sam .yui3-tab-label{background:#d8d8d8 url(https://yui.yahooapis.com/3.10.1/build/assets/skins/sam/sprite.png) repeat-x;border:solid #a3a3a3;border-width:1px 1px 0 1px;color:#000;cursor:pointer;font-size:85%;padding:.3em .75em;text-decoration:none}.yui3-skin-sam .yui3-tab-label:hover,.yui3-skin-sam .yui3-tab-label:focus{background:#bfdaff url(http://yui.yahooapis.com/3.10.1/build/assets/skins/sam/sprite.png) repeat-x left -1300px;outline:0}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label,.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:focus,.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:hover{background:#2647a0 url(http://yui.yahooapis.com/3.10.1/build/assets/skins/sam/sprite.png) repeat-x left -1400px;color:#fff}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label{padding:.4em .75em}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label{border-color:#243356}.yui3-skin-sam .yui3-tabview-panel{background:#edf5ff}.yui3-skin-sam .yui3-tabview-panel{border:1px solid gray;border-top-color:#243356;padding:.25em .5em}#yui3-css-stamp.skin-sam-tabview{display:none} \ No newline at end of file diff --git a/build/createjsTheme/assets/docs-icon-PreloadJS.png b/build/createjsTheme/assets/docs-icon-PreloadJS.png new file mode 100644 index 00000000..9a6cae63 Binary files /dev/null and b/build/createjsTheme/assets/docs-icon-PreloadJS.png differ diff --git a/build/createjsTheme/assets/favicon.ico b/build/createjsTheme/assets/favicon.ico new file mode 100644 index 00000000..628a4793 Binary files /dev/null and b/build/createjsTheme/assets/favicon.ico differ diff --git a/build/createjsTheme/assets/js/api-filter.js b/build/createjsTheme/assets/js/api-filter.js deleted file mode 100755 index 37aefbab..00000000 --- a/build/createjsTheme/assets/js/api-filter.js +++ /dev/null @@ -1,52 +0,0 @@ -YUI.add('api-filter', function (Y) { - -Y.APIFilter = Y.Base.create('apiFilter', Y.Base, [Y.AutoCompleteBase], { - // -- Initializer ---------------------------------------------------------- - initializer: function () { - this._bindUIACBase(); - this._syncUIACBase(); - }, - getDisplayName: function(name) { - - Y.each(Y.YUIDoc.meta.allModules, function(i) { - if (i.name === name && i.displayName) { - name = i.displayName; - } - }); - - return name; - } - -}, { - // -- Attributes ----------------------------------------------------------- - ATTRS: { - resultHighlighter: { - value: 'phraseMatch' - }, - - // May be set to "classes" or "modules". - queryType: { - value: 'classes' - }, - - source: { - valueFn: function() { - var self = this; - return function(q) { - var data = Y.YUIDoc.meta[self.get('queryType')], - out = []; - Y.each(data, function(v) { - if (v.toLowerCase().indexOf(q.toLowerCase()) > -1) { - out.push(v); - } - }); - return out; - }; - } - } - } -}); - -}, '3.4.0', {requires: [ - 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources' -]}); diff --git a/build/createjsTheme/assets/js/api-list.js b/build/createjsTheme/assets/js/api-list.js deleted file mode 100755 index 88905b52..00000000 --- a/build/createjsTheme/assets/js/api-list.js +++ /dev/null @@ -1,251 +0,0 @@ -YUI.add('api-list', function (Y) { - -var Lang = Y.Lang, - YArray = Y.Array, - - APIList = Y.namespace('APIList'), - - classesNode = Y.one('#api-classes'), - inputNode = Y.one('#api-filter'), - modulesNode = Y.one('#api-modules'), - tabviewNode = Y.one('#api-tabview'), - - tabs = APIList.tabs = {}, - - filter = APIList.filter = new Y.APIFilter({ - inputNode : inputNode, - maxResults: 1000, - - on: { - results: onFilterResults - } - }), - - search = APIList.search = new Y.APISearch({ - inputNode : inputNode, - maxResults: 100, - - on: { - clear : onSearchClear, - results: onSearchResults - } - }), - - tabview = APIList.tabview = new Y.TabView({ - srcNode : tabviewNode, - panelNode: '#api-tabview-panel', - render : true, - - on: { - selectionChange: onTabSelectionChange - } - }), - - focusManager = APIList.focusManager = tabviewNode.plug(Y.Plugin.NodeFocusManager, { - circular : true, - descendants: '#api-filter, .yui3-tab-panel-selected .api-list-item a, .yui3-tab-panel-selected .result a', - keys : {next: 'down:40', previous: 'down:38'} - }).focusManager, - - LIST_ITEM_TEMPLATE = - '' + - '{displayName}' + - ' '; - -// -- Init --------------------------------------------------------------------- - -// Duckpunch FocusManager's key event handling to prevent it from handling key -// events when a modifier is pressed. -Y.before(function (e, activeDescendant) { - if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { - return new Y.Do.Prevent(); - } -}, focusManager, '_focusPrevious', focusManager); - -Y.before(function (e, activeDescendant) { - if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { - return new Y.Do.Prevent(); - } -}, focusManager, '_focusNext', focusManager); - -// Create a mapping of tabs in the tabview so we can refer to them easily later. -tabview.each(function (tab, index) { - var name = tab.get('label').toLowerCase(); - - tabs[name] = { - index: index, - name : name, - tab : tab - }; -}); - -// Switch tabs on Ctrl/Cmd-Left/Right arrows. -tabviewNode.on('key', onTabSwitchKey, 'down:37,39'); - -// Focus the filter input when the `/` key is pressed. -Y.one(Y.config.doc).on('key', onSearchKey, 'down:83'); - -// Keep the Focus Manager up to date. -inputNode.on('focus', function () { - focusManager.set('activeDescendant', inputNode); -}); - -// Update all tabview links to resolved URLs. -tabview.get('panelNode').all('a').each(function (link) { - link.setAttribute('href', link.get('href')); -}); - -// -- Private Functions -------------------------------------------------------- -function getFilterResultNode() { - return filter.get('queryType') === 'classes' ? classesNode : modulesNode; -} - -// -- Event Handlers ----------------------------------------------------------- -function onFilterResults(e) { - var frag = Y.one(Y.config.doc.createDocumentFragment()), - resultNode = getFilterResultNode(), - typePlural = filter.get('queryType'), - typeSingular = typePlural === 'classes' ? 'class' : 'module'; - - if (e.results.length) { - YArray.each(e.results, function (result) { - frag.append(Lang.sub(LIST_ITEM_TEMPLATE, { - rootPath : APIList.rootPath, - displayName : filter.getDisplayName(result.highlighted), - name : result.text, - typePlural : typePlural, - typeSingular: typeSingular - })); - }); - } else { - frag.append( - '' - ); - } - - resultNode.empty(true); - resultNode.append(frag); - - focusManager.refresh(); -} - -function onSearchClear(e) { - - focusManager.refresh(); -} - -function onSearchKey(e) { - var target = e.target; - - if (target.test('input,select,textarea') - || target.get('isContentEditable')) { - return; - } - - e.preventDefault(); - - inputNode.focus(); - focusManager.refresh(); -} - -function onSearchResults(e) { - var frag = Y.one(Y.config.doc.createDocumentFragment()); - - if (e.results.length) { - YArray.each(e.results, function (result) { - frag.append(result.display); - }); - } else { - frag.append( - '' - ); - } - - - focusManager.refresh(); -} - -function onTabSelectionChange(e) { - var tab = e.newVal, - name = tab.get('label').toLowerCase(); - - tabs.selected = { - index: tab.get('index'), - name : name, - tab : tab - }; - - switch (name) { - case 'classes': // fallthru - case 'modules': - filter.setAttrs({ - minQueryLength: 0, - queryType : name - }); - - search.set('minQueryLength', -1); - - // Only send a request if this isn't the initially-selected tab. - if (e.prevVal) { - filter.sendRequest(filter.get('value')); - } - break; - - case 'everything': - filter.set('minQueryLength', -1); - search.set('minQueryLength', 1); - - if (search.get('value')) { - search.sendRequest(search.get('value')); - } else { - inputNode.focus(); - } - break; - - default: - // WTF? We shouldn't be here! - filter.set('minQueryLength', -1); - search.set('minQueryLength', -1); - } - - if (focusManager) { - setTimeout(function () { - focusManager.refresh(); - }, 1); - } -} - -function onTabSwitchKey(e) { - var currentTabIndex = tabs.selected.index; - - if (!(e.ctrlKey || e.metaKey)) { - return; - } - - e.preventDefault(); - - switch (e.keyCode) { - case 37: // left arrow - if (currentTabIndex > 0) { - tabview.selectChild(currentTabIndex - 1); - inputNode.focus(); - } - break; - - case 39: // right arrow - if (currentTabIndex < (Y.Object.size(tabs) - 2)) { - tabview.selectChild(currentTabIndex + 1); - inputNode.focus(); - } - break; - } -} - -}, '3.4.0', {requires: [ - 'api-filter', 'api-search', 'event-key', 'node-focusmanager', 'tabview' -]}); diff --git a/build/createjsTheme/assets/js/api-search.js b/build/createjsTheme/assets/js/api-search.js deleted file mode 100755 index 175f6a61..00000000 --- a/build/createjsTheme/assets/js/api-search.js +++ /dev/null @@ -1,98 +0,0 @@ -YUI.add('api-search', function (Y) { - -var Lang = Y.Lang, - Node = Y.Node, - YArray = Y.Array; - -Y.APISearch = Y.Base.create('apiSearch', Y.Base, [Y.AutoCompleteBase], { - // -- Public Properties ---------------------------------------------------- - RESULT_TEMPLATE: - '' + - '' + - ' ', - - // -- Initializer ---------------------------------------------------------- - initializer: function () { - this._bindUIACBase(); - this._syncUIACBase(); - }, - - // -- Protected Methods ---------------------------------------------------- - _apiResultFilter: function (query, results) { - // Filter components out of the results. - return YArray.filter(results, function (result) { - return result.raw.resultType === 'component' ? false : result; - }); - }, - - _apiResultFormatter: function (query, results) { - return YArray.map(results, function (result) { - var raw = Y.merge(result.raw), // create a copy - desc = raw.description || ''; - - // Convert description to text and truncate it if necessary. - desc = Node.create('{name}
' + - '{resultType}' + - '{description}' + - '{class}' + - '' + - '' + desc + '').get('text'); - - if (desc.length > 65) { - desc = Y.Escape.html(desc.substr(0, 65)) + ' …'; - } else { - desc = Y.Escape.html(desc); - } - - raw['class'] || (raw['class'] = ''); - raw.description = desc; - - // Use the highlighted result name. - raw.name = result.highlighted; - - return Lang.sub(this.RESULT_TEMPLATE, raw); - }, this); - }, - - _apiTextLocator: function (result) { - return result.displayName || result.name; - } -}, { - // -- Attributes ----------------------------------------------------------- - ATTRS: { - resultFormatter: { - valueFn: function () { - return this._apiResultFormatter; - } - }, - - resultFilters: { - valueFn: function () { - return this._apiResultFilter; - } - }, - - resultHighlighter: { - value: 'phraseMatch' - }, - - resultListLocator: { - value: 'data.results' - }, - - resultTextLocator: { - valueFn: function () { - return this._apiTextLocator; - } - }, - - source: { - value: '/api/v1/search?q={query}&count={maxResults}' - } - } -}); - -}, '3.4.0', {requires: [ - 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources', - 'escape' -]}); diff --git a/build/createjsTheme/assets/js/apidocs.js b/build/createjsTheme/assets/js/apidocs.js deleted file mode 100755 index 2c949005..00000000 --- a/build/createjsTheme/assets/js/apidocs.js +++ /dev/null @@ -1,365 +0,0 @@ -YUI().use( - 'yuidoc-meta', - 'api-list', 'history-hash', 'node-screen', 'node-style', 'pjax', -function (Y) { - -var win = Y.config.win, - localStorage = win.localStorage, - - bdNode = Y.one('#bd'), - - pjax, - defaultRoute, - - classTabView, - selectedTab; - -// Kill pjax functionality unless serving over HTTP. -if (!Y.getLocation().protocol.match(/^https?\:/)) { - Y.Router.html5 = false; -} - -// Create the default route with middleware which enables syntax highlighting -// on the loaded content. -defaultRoute = Y.Pjax.defaultRoute.concat(function (req, res, next) { - prettyPrint(); - bdNode.removeClass('loading'); - - next(); -}); - -pjax = new Y.Pjax({ - container : '#docs-main', - contentSelector: '#docs-main > .content', - linkSelector : '#bd a', - titleSelector : '#xhr-title', - - navigateOnHash: true, - root : '/', - routes : [ - // -- / ---------------------------------------------------------------- - { - path : '/(index.html)?', - callbacks: defaultRoute - }, - - // -- /classes/* ------------------------------------------------------- - { - path : '/classes/:class.html*', - callbacks: [defaultRoute, 'handleClasses'] - }, - - // -- /files/* --------------------------------------------------------- - { - path : '/files/*file', - callbacks: [defaultRoute, 'handleFiles'] - }, - - // -- /modules/* ------------------------------------------------------- - { - path : '/modules/:module.html*', - callbacks: defaultRoute - } - ] -}); - -// -- Utility Functions -------------------------------------------------------- - -pjax.checkVisibility = function (tab) { - tab || (tab = selectedTab); - - if (!tab) { return; } - - var panelNode = tab.get('panelNode'), - visibleItems; - - // If no items are visible in the tab panel due to the current visibility - // settings, display a message to that effect. - visibleItems = panelNode.all('.item,.index-item').some(function (itemNode) { - if (itemNode.getComputedStyle('display') !== 'none') { - return true; - } - }); - - panelNode.all('.no-visible-items').remove(); - - if (!visibleItems) { - if (Y.one('#index .index-item')) { - panelNode.append( - '' + - '' - ); - } else { - panelNode.append( - '' + - 'Some items are not shown due to the current visibility ' + - 'settings. Use the checkboxes at the upper right of this ' + - 'page to change the visibility settings.' + - '
' + - '' + - '' - ); - } - } - - // Hide index sections without any visible items. - Y.all('.index-section').each(function (section) { - var items = 0, - visibleItems = 0; - - section.all('.index-item').each(function (itemNode) { - items += 1; - - if (itemNode.getComputedStyle('display') !== 'none') { - visibleItems += 1; - } - }); - - section.toggleClass('hidden', !visibleItems); - section.toggleClass('no-columns', visibleItems < 4); - }); -}; - -pjax.initClassTabView = function () { - if (!Y.all('#classdocs .api-class-tab').size()) { - return; - } - - if (classTabView) { - classTabView.destroy(); - selectedTab = null; - } - - classTabView = new Y.TabView({ - srcNode: '#classdocs', - - on: { - selectionChange: pjax.onTabSelectionChange - } - }); - - pjax.updateTabState(); - classTabView.render(); -}; - -pjax.initLineNumbers = function () { - var hash = win.location.hash.substring(1), - container = pjax.get('container'), - hasLines, node; - - // Add ids for each line number in the file source view. - container.all('.linenums>li').each(function (lineNode, index) { - lineNode.set('id', 'l' + (index + 1)); - lineNode.addClass('file-line'); - hasLines = true; - }); - - // Scroll to the desired line. - if (hasLines && /^l\d+$/.test(hash)) { - if ((node = container.getById(hash))) { - win.scroll(0, node.getY()); - } - } -}; - -pjax.initRoot = function () { - var terminators = /^(?:classes|files|modules)$/, - parts = pjax._getPathRoot().split('/'), - root = [], - i, len, part; - - for (i = 0, len = parts.length; i < len; i += 1) { - part = parts[i]; - - if (part.match(terminators)) { - // Makes sure the path will end with a "/". - root.push(''); - break; - } - - root.push(part); - } - - pjax.set('root', root.join('/')); -}; - -pjax.updateTabState = function (src) { - var hash = win.location.hash.substring(1), - defaultTab, node, tab, tabPanel; - - function scrollToNode() { - if (node.hasClass('protected')) { - Y.one('#api-show-protected').set('checked', true); - pjax.updateVisibility(); - } - - if (node.hasClass('private')) { - Y.one('#api-show-private').set('checked', true); - pjax.updateVisibility(); - } - - setTimeout(function () { - // For some reason, unless we re-get the node instance here, - // getY() always returns 0. - var node = Y.one('#classdocs').getById(hash); - win.scrollTo(0, node.getY() - 70); - }, 1); - } - - if (!classTabView) { - return; - } - - if (src === 'hashchange' && !hash) { - defaultTab = 'index'; - } else { - if (localStorage) { - defaultTab = localStorage.getItem('tab_' + pjax.getPath()) || - 'index'; - } else { - defaultTab = 'index'; - } - } - - if (hash && (node = Y.one('#classdocs').getById(hash))) { - if ((tabPanel = node.ancestor('.api-class-tabpanel', true))) { - if ((tab = Y.one('#classdocs .api-class-tab.' + tabPanel.get('id')))) { - if (classTabView.get('rendered')) { - Y.Widget.getByNode(tab).set('selected', 1); - } else { - tab.addClass('yui3-tab-selected'); - } - } - } - - // Scroll to the desired element if this is a hash URL. - if (node) { - if (classTabView.get('rendered')) { - scrollToNode(); - } else { - classTabView.once('renderedChange', scrollToNode); - } - } - } else { - tab = Y.one('#classdocs .api-class-tab.' + defaultTab); - - if (classTabView.get('rendered')) { - Y.Widget.getByNode(tab).set('selected', 1); - } else { - tab.addClass('yui3-tab-selected'); - } - } -}; - -pjax.updateVisibility = function () { - var container = pjax.get('container'); - - container.toggleClass('hide-inherited', - !Y.one('#api-show-inherited').get('checked')); - - container.toggleClass('show-deprecated', - Y.one('#api-show-deprecated').get('checked')); - - container.toggleClass('show-protected', - Y.one('#api-show-protected').get('checked')); - - container.toggleClass('show-private', - Y.one('#api-show-private').get('checked')); - - pjax.checkVisibility(); -}; - -// -- Route Handlers ----------------------------------------------------------- - -pjax.handleClasses = function (req, res, next) { - var status = res.ioResponse.status; - - // Handles success and local filesystem XHRs. - if (!status || (status >= 200 && status < 300)) { - pjax.initClassTabView(); - } - - next(); -}; - -pjax.handleFiles = function (req, res, next) { - var status = res.ioResponse.status; - - // Handles success and local filesystem XHRs. - if (!status || (status >= 200 && status < 300)) { - pjax.initLineNumbers(); - } - - next(); -}; - -// -- Event Handlers ----------------------------------------------------------- - -pjax.onNavigate = function (e) { - var hash = e.hash, - originTarget = e.originEvent && e.originEvent.target, - tab; - - if (hash) { - tab = originTarget && originTarget.ancestor('.yui3-tab', true); - - if (hash === win.location.hash) { - pjax.updateTabState('hashchange'); - } else if (!tab) { - win.location.hash = hash; - } - - e.preventDefault(); - return; - } - - // Only scroll to the top of the page when the URL doesn't have a hash. - this.set('scrollToTop', !e.url.match(/#.+$/)); - - bdNode.addClass('loading'); -}; - -pjax.onOptionClick = function (e) { - pjax.updateVisibility(); -}; - -pjax.onTabSelectionChange = function (e) { - var tab = e.newVal, - tabId = tab.get('contentBox').getAttribute('href').substring(1); - - selectedTab = tab; - - // If switching from a previous tab (i.e., this is not the default tab), - // replace the history entry with a hash URL that will cause this tab to - // be selected if the user navigates away and then returns using the back - // or forward buttons. - if (e.prevVal && localStorage) { - localStorage.setItem('tab_' + pjax.getPath(), tabId); - } - - pjax.checkVisibility(tab); -}; - -// -- Init --------------------------------------------------------------------- - -pjax.on('navigate', pjax.onNavigate); - -pjax.initRoot(); -pjax.upgrade(); -pjax.initClassTabView(); -pjax.initLineNumbers(); -pjax.updateVisibility(); - -Y.APIList.rootPath = pjax.get('root'); - -Y.one('#api-options').delegate('click', pjax.onOptionClick, 'input'); - -Y.on('hashchange', function (e) { - pjax.updateTabState('hashchange'); -}, win); - -}); diff --git a/build/createjsTheme/assets/js/yui-prettify.js b/build/createjsTheme/assets/js/yui-prettify.js deleted file mode 100755 index 18de8649..00000000 --- a/build/createjsTheme/assets/js/yui-prettify.js +++ /dev/null @@ -1,17 +0,0 @@ -YUI().use('node', function(Y) { - var code = Y.all('.prettyprint.linenums'); - if (code.size()) { - code.each(function(c) { - var lis = c.all('ol li'), - l = 1; - lis.each(function(n) { - n.prepend(''); - l++; - }); - }); - var h = location.hash; - location.hash = ''; - h = h.replace('LINE_', 'LINENUM_'); - location.hash = h; - } -}); diff --git a/build/createjsTheme/assets/js/yui-source.js b/build/createjsTheme/assets/js/yui-source.js new file mode 100644 index 00000000..db908a65 --- /dev/null +++ b/build/createjsTheme/assets/js/yui-source.js @@ -0,0 +1,10 @@ +"undefined"!=typeof YUI&&(YUI._YUI=YUI);var YUI=function(){var a=0,b=this,c=arguments,d=c.length,e=function(a,b){return a&&a.hasOwnProperty&&a instanceof b},f="undefined"!=typeof YUI_config&&YUI_config;if(e(b,YUI)?(b._init(),YUI.GlobalConfig&&b.applyConfig(YUI.GlobalConfig),f&&b.applyConfig(f),d||b._setup()):b=new YUI,d){for(;d>a;a++)b.applyConfig(c[a]);b._setup()}return b.instanceOf=e,b};!function(){var a,b,c="3.10.1",d=".",e="https://yui-s.yahooapis.com/",f="yui3-js-enabled",g="yui3-css-stamp",h=function(){},i=Array.prototype.slice,j={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},k="undefined"!=typeof window,l=k?window:null,m=k?l.document:null,n=m&&m.documentElement,o=n&&n.className,p={},q=(new Date).getTime(),r=function(a,b,c,d){a&&a.addEventListener?a.addEventListener(b,c,d):a&&a.attachEvent&&a.attachEvent("on"+b,c)},s=function(a,b,c,d){if(a&&a.removeEventListener)try{a.removeEventListener(b,c,d)}catch(e){}else a&&a.detachEvent&&a.detachEvent("on"+b,c)},t=function(){YUI.Env.windowLoaded=!0,YUI.Env.DOMReady=!0,k&&s(window,"load",t)},u=function(a){var c=a.Env._loader,d=["loader-base"],e=YUI.Env,f=e.mods;return c?(c.ignoreRegistered=!1,c.onEnd=null,c.data=null,c.required=[],c.loadType=null):(c=new a.Loader(a.config),a.Env._loader=c),f&&f.loader&&(d=[].concat(d,YUI.Env.loaderExtras)),YUI.Env.core=a.Array.dedupe([].concat(YUI.Env.core,d)),c},v=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},w={success:!0};n&&-1==o.indexOf(f)&&(o&&(o+=" "),o+=f,n.className=o),c.indexOf("@")>-1&&(c="3.5.0"),a={applyConfig:function(a){a=a||h;var b,c,d=this.config,e=d.modules,f=d.groups,g=d.aliases,i=this.Env._loader;for(c in a)a.hasOwnProperty(c)&&(b=a[c],e&&"modules"==c?v(e,b):g&&"aliases"==c?v(g,b):f&&"groups"==c?v(f,b):"win"==c?(d[c]=b&&b.contentWindow||b,d.doc=d[c]?d[c].document:null):"_yuid"!=c&&(d[c]=b));i&&i._config(a)},_config:function(a){this.applyConfig(a)},_init:function(){var a,b,i,d=this,f=YUI.Env,h=d.Env;if(d.version=c,!h){if(d.Env={core:["get","features","intl-base","yui-log","yui-later","loader-base","loader-rollup","loader-yui3"],loaderExtras:["loader-rollup","loader-yui3"],mods:{},versions:{},base:e,cdn:e+c+"/build/",_idx:0,_used:{},_attached:{},_missed:[],_yidx:0,_uidx:0,_guidp:"y",_loaded:{},_BASE_RE:/(?:\?(?:[^&]*&)*([^&]*))?\b(simpleyui|yui(?:-\w+)?)\/\2(?:-(min|debug))?\.js/,parseBasePath:function(a,b){var d,e,c=a.match(b);return c&&(d=RegExp.leftContext||a.slice(0,a.indexOf(c[0])),e=c[3],c[1]&&(d+="?"+c[1]),d={filter:e,path:d}),d},getBase:f&&f.getBase||function(b){var f,g,i,j,c=m&&m.getElementsByTagName("script")||[],e=h.cdn;for(g=0,i=c.length;i>g;++g)if(j=c[g].src,j&&(f=d.Env.parseBasePath(j,b))){a=f.filter,e=f.path;break}return e}},h=d.Env,h._loaded[c]={},f&&d!==YUI)h._yidx=++f._yidx,h._guidp=("yui_"+c+"_"+h._yidx+"_"+q).replace(/[^a-z0-9_]+/g,"_");else if(YUI._YUI){f=YUI._YUI.Env,h._yidx+=f._yidx,h._uidx+=f._uidx;for(i in f)i in h||(h[i]=f[i]);delete YUI._YUI}d.id=d.stamp(d),p[d.id]=d}d.constructor=YUI,d.config=d.config||{bootstrap:!0,cacheUse:!0,debug:!0,doc:m,fetchCSS:!0,throwFail:!0,useBrowserConsole:!0,useNativeES5:!0,win:l,global:Function("return this")()},m&&!m.getElementById(g)?(b=m.createElement("div"),b.innerHTML='',YUI.Env.cssStampEl=b.firstChild,m.body?m.body.appendChild(YUI.Env.cssStampEl):n.insertBefore(YUI.Env.cssStampEl,n.firstChild)):m&&m.getElementById(g)&&!YUI.Env.cssStampEl&&(YUI.Env.cssStampEl=m.getElementById(g)),d.config.lang=d.config.lang||"en-US",d.config.base=YUI.config.base||d.Env.getBase(d.Env._BASE_RE),a&&"mindebug".indexOf(a)||(a="min"),a=a?"-"+a:a,d.config.loaderPath=YUI.config.loaderPath||"loader/loader"+a+".js"},_setup:function(){var a,b=this,c=[],d=YUI.Env.mods,e=b.config.core||[].concat(YUI.Env.core);for(a=0;a' + - 'This class doesn\'t provide any methods, properties, ' + - 'attributes, or events.' + - '
' + - 'c;c++)if(d=a[c],e=j[d],t.push(d),o&&o.conditions[d])for(m in o.conditions[d])o.conditions[d].hasOwnProperty(m)&&(r=o.conditions[d][m],s=r&&(r.ua&&l.UA[r.ua]||r.test&&r.test(l)),s&&t.push(r.name));for(a=t,q=a.length,c=0;q>c;c++)if(!p[a[c]]){if(d=a[c],e=j[d],k&&k[d]&&!e){l._attach(k[d]);continue}if(e){for(p[d]=!0,m=0;m d;d++)l[a[d]]&&!i[a[d]]?e=[].concat(e,l[a[d]]):e.push(a[d]);a=e}for(g=a.length,d=0;g>d;d++)f=a[d],b||t.push(f),k[f]||(j=i[f],m=null,n=null,j?(k[f]=!0,m=j.details.requires,n=j.details.use):h._loaded[c][f]?k[f]=!0:r.push(f),m&&m.length&&x(m),n&&n.length&&x(n,1))}},y=function(c){var e,f,d=c||{success:!0,msg:"not dynamic"},h=!0,i=d.data;g._loading=!1,i&&(f=r,r=[],t=[],x(i),e=r.length,e&&[].concat(r).sort().join()==f.sort().join()&&(e=!1)),e&&i?(g._loading=!0,g._use(r,function(){g._attach(i)&&g._notify(b,d,i)})):(i&&(h=g._attach(i)),h&&g._notify(b,d,a)),g._useQueue&&g._useQueue.size()&&!g._loading&&g._use.apply(g,g._useQueue.next())};if("*"===n){a=[];for(s in i)i.hasOwnProperty(s)&&a.push(s);return v=g._attach(a),v&&y(),g}return(i.loader||i["loader-base"])&&!g.Loader&&g._attach(["loader"+(i.loader?"":"-base")]),q&&g.Loader&&a.length&&(e=u(g),e.require(a),e.ignoreRegistered=!0,e._boot=!0,e.calculate(null,w?null:"js"),a=e.sorted,e._boot=!1),x(a),d=r.length,d&&(r=o.dedupe(r),d=r.length),q&&d&&g.Loader?(g._loading=!0,e=u(g),e.onEnd=y,e.context=g,e.data=a,e.ignoreRegistered=!1,e.require(r),e.insert(null,w?null:"js")):q&&d&&g.Get&&!j.bootstrapped?(g._loading=!0,f=function(){g._loading=!1,m.running=!1,j.bootstrapped=!0,h._bootstrapping=!1,g._attach(["loader"])&&g._use(a,b)},h._bootstrapping?m.add(f):(h._bootstrapping=!0,g.Get.script(p.base+p.loaderPath,{onEnd:f}))):(v=g._attach(a),v&&y()),g},namespace:function(){for(var b,e,f,g,a=arguments,c=0;c -1)for(f=g.split(d),e="YAHOO"==f[0]?1:0;e b;++b)f.push(a[b]);return f}return[a]}function d(){this._init(),this.add.apply(this,arguments)}var e=a.Lang||(a.Lang={}),f=String.prototype,g=Object.prototype.toString,h={undefined:"undefined",number:"number","boolean":"boolean",string:"string","[object Function]":"function","[object RegExp]":"regexp","[object Array]":"array","[object Date]":"date","[object Error]":"error"},i=/\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g,j=/^\s+|\s+$/g,k=/\{\s*\[(?:native code|function)\]\s*\}/i;e._isNative=function(b){return!!(a.config.useNativeES5&&b&&k.test(b))},e.isArray=e._isNative(Array.isArray)?Array.isArray:function(a){return"array"===e.type(a)},e.isBoolean=function(a){return"boolean"==typeof a},e.isDate=function(a){return"date"===e.type(a)&&"Invalid Date"!==a.toString()&&!isNaN(a)},e.isFunction=function(a){return"function"===e.type(a)},e.isNull=function(a){return null===a},e.isNumber=function(a){return"number"==typeof a&&isFinite(a)},e.isObject=function(a,b){var c=typeof a;return a&&("object"===c||!b&&("function"===c||e.isFunction(a)))||!1},e.isString=function(a){return"string"==typeof a},e.isUndefined=function(a){return"undefined"==typeof a},e.isValue=function(a){var b=e.type(a);switch(b){case"number":return isFinite(a);case"null":case"undefined":return!1;default:return!!b}},e.now=Date.now||function(){return(new Date).getTime()},e.sub=function(a,b){return a.replace?a.replace(i,function(a,c){return e.isUndefined(b[c])?a:b[c]}):a},e.trim=f.trim?function(a){return a&&a.trim?a.trim():a}:function(a){try{return a.replace(j,"")}catch(b){return a}},e.trimLeft=f.trimLeft?function(a){return a.trimLeft()}:function(a){return a.replace(/^\s+/,"")},e.trimRight=f.trimRight?function(a){return a.trimRight()}:function(a){return a.replace(/\s+$/,"")},e.type=function(a){return h[typeof a]||h[g.call(a)]||(a?"object":"null")};var l=a.Lang,m=Array.prototype,n=Object.prototype.hasOwnProperty;a.Array=c,c.dedupe=function(a){var d,e,f,b={},c=[];for(d=0,f=a.length;f>d;++d)e=a[d],n.call(b,e)||(b[e]=1,c.push(e));return c},c.each=c.forEach=l._isNative(m.forEach)?function(b,c,d){return m.forEach.call(b||[],c,d||a),a}:function(b,c,d){for(var e=0,f=b&&b.length||0;f>e;++e)e in b&&c.call(d||a,b[e],e,b);return a},c.hash=function(a,b){var e,f,c={},d=b&&b.length||0;for(e=0,f=a.length;f>e;++e)e in a&&(c[a[e]]=d>e&&e in b?b[e]:!0);return c},c.indexOf=l._isNative(m.indexOf)?function(a,b,c){return m.indexOf.call(a,b,c)}:function(a,b,c){var d=a.length;for(c=+c||0,c=(c>0||-1)*Math.floor(Math.abs(c)),0>c&&(c+=d,0>c&&(c=0));d>c;++c)if(c in a&&a[c]===b)return c;return-1},c.numericSort=function(a,b){return a-b},c.some=l._isNative(m.some)?function(a,b,c){return m.some.call(a,b,c)}:function(a,b,c){for(var d=0,e=a.length;e>d;++d)if(d in a&&b.call(c,a[d],d,a))return!0;return!1},c.test=function(a){var b=0;if(l.isArray(a))b=1;else if(l.isObject(a))try{"length"in a&&!a.tagName&&(!a.scrollTo||!a.document)&&!a.apply&&(b=2)}catch(c){}return b},d.prototype={_init:function(){this._q=[]},next:function(){return this._q.shift()},last:function(){return this._q.pop()},add:function(){return this._q.push.apply(this._q,arguments),this},size:function(){return this._q.length}},a.Queue=d,YUI.Env._loaderQueue=YUI.Env._loaderQueue||new d;var o="__",n=Object.prototype.hasOwnProperty,p=a.Lang.isObject;a.cached=function(a,b,c){return b||(b={}),function(d){var e=arguments.length>1?Array.prototype.join.call(arguments,o):String(d);return(!(e in b)||c&&b[e]==c)&&(b[e]=a.apply(a,arguments)),b[e]}},a.getLocation=function(){var b=a.config.win;return b&&b.location},a.merge=function(){for(var d,e,a=0,b=arguments.length,c={};b>a;++a){e=arguments[a];for(d in e)n.call(e,d)&&(c[d]=e[d])}return c},a.mix=function(b,c,d,e,f,g){var h,i,j,k,l,m,o;if(!b||!c)return b||a;if(f){if(2===f&&a.mix(b.prototype,c.prototype,d,e,0,g),j=1===f||3===f?c.prototype:c,o=1===f||4===f?b.prototype:b,!j||!o)return b}else j=c,o=b;if(h=d&&!g,e)for(k=0,m=e.length;m>k;++k)l=e[k],n.call(j,l)&&(i=h?!1:l in o,g&&i&&p(o[l],!0)&&p(j[l],!0)?a.mix(o[l],j[l],d,null,0,g):(d||!i)&&(o[l]=j[l]));else{for(l in j)n.call(j,l)&&(i=h?!1:l in o,g&&i&&p(o[l],!0)&&p(j[l],!0)?a.mix(o[l],j[l],d,null,0,g):(d||!i)&&(o[l]=j[l]));a.Object._hasEnumBug&&a.mix(o,j,d,a.Object._forceEnum,f,g)}return b};var q,l=a.Lang,n=Object.prototype.hasOwnProperty,r=a.Object=l._isNative(Object.create)?function(a){return Object.create(a)}:function(){function a(){}return function(b){return a.prototype=b,new a}}(),s=r._forceEnum=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","toLocaleString","valueOf"],t=r._hasEnumBug=!{valueOf:0}.propertyIsEnumerable("valueOf"),u=r._hasProtoEnumBug=function(){}.propertyIsEnumerable("prototype"),v=r.owns=function(a,b){return!!a&&n.call(a,b)};r.hasKey=v,r.keys=l._isNative(Object.keys)?Object.keys:function(a){if(!l.isObject(a))throw new TypeError("Object.keys called on a non-object");var c,d,e,b=[];if(u&&"function"==typeof a)for(d in a)v(a,d)&&"prototype"!==d&&b.push(d);else for(d in a)v(a,d)&&b.push(d);if(t)for(c=0,e=s.length;e>c;++c)d=s[c],v(a,d)&&b.push(d);return b},r.values=function(a){for(var b=r.keys(a),c=0,d=b.length,e=[];d>c;++c)e.push(a[b[c]]);return e},r.size=function(a){try{return r.keys(a).length}catch(b){return 0}},r.hasValue=function(b,c){return a.Array.indexOf(r.values(b),c)>-1},r.each=function(b,c,d,e){var f;for(f in b)(e||v(b,f))&&c.call(d||a,b[f],f,b);return a},r.some=function(b,c,d,e){var f;for(f in b)if((e||v(b,f))&&c.call(d||a,b[f],f,b))return!0;return!1},r.getValue=function(b,c){if(!l.isObject(b))return q;var d,e=a.Array(c),f=e.length;for(d=0;b!==q&&f>d;d++)b=b[e[d]];return b},r.setValue=function(b,c,d){var e,f=a.Array(c),g=f.length-1,h=b;if(g>=0){for(e=0;h!==q&&g>e;e++)h=h[f[e]];if(h===q)return q;h[f[e]]=d}return b},r.isEmpty=function(a){return!r.keys(Object(a)).length},YUI.Env.parseUA=function(b){var j,c=function(a){var b=0;return parseFloat(a.replace(/\./g,function(){return 1===b++?"":"."}))},d=a.config.win,e=d&&d.navigator,f={ie:0,opera:0,gecko:0,webkit:0,safari:0,chrome:0,mobile:null,air:0,phantomjs:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,silk:0,accel:!1,webos:0,caja:e&&e.cajaVersion,secure:!1,os:null,nodejs:0,winjs:"undefined"!=typeof Windows&&!!Windows.System,touchEnabled:!1},g=b||e&&e.userAgent,h=d&&d.location,i=h&&h.href;return f.userAgent=g,f.secure=i&&0===i.toLowerCase().indexOf("https"),g&&(/windows|win32/i.test(g)?f.os="windows":/macintosh|mac_powerpc/i.test(g)?f.os="macintosh":/android/i.test(g)?f.os="android":/symbos/i.test(g)?f.os="symbos":/linux/i.test(g)?f.os="linux":/rhino/i.test(g)&&(f.os="rhino"),/KHTML/.test(g)&&(f.webkit=1),/IEMobile|XBLWP7/.test(g)&&(f.mobile="windows"),/Fennec/.test(g)&&(f.mobile="gecko"),j=g.match(/AppleWebKit\/([^\s]*)/),j&&j[1]&&(f.webkit=c(j[1]),f.safari=f.webkit,/PhantomJS/.test(g)&&(j=g.match(/PhantomJS\/([^\s]*)/),j&&j[1]&&(f.phantomjs=c(j[1]))),/ Mobile\//.test(g)||/iPad|iPod|iPhone/.test(g)?(f.mobile="Apple",j=g.match(/OS ([^\s]*)/),j&&j[1]&&(j=c(j[1].replace("_","."))),f.ios=j,f.os="ios",f.ipad=f.ipod=f.iphone=0,j=g.match(/iPad|iPod|iPhone/),j&&j[0]&&(f[j[0].toLowerCase()]=f.ios)):(j=g.match(/NokiaN[^\/]*|webOS\/\d\.\d/),j&&(f.mobile=j[0]),/webOS/.test(g)&&(f.mobile="WebOS",j=g.match(/webOS\/([^\s]*);/),j&&j[1]&&(f.webos=c(j[1]))),/ Android/.test(g)&&(/Mobile/.test(g)&&(f.mobile="Android"),j=g.match(/Android ([^\s]*);/),j&&j[1]&&(f.android=c(j[1]))),/Silk/.test(g)&&(j=g.match(/Silk\/([^\s]*)\)/),j&&j[1]&&(f.silk=c(j[1])),f.android||(f.android=2.34,f.os="Android"),/Accelerated=true/.test(g)&&(f.accel=!0))),j=g.match(/(Chrome|CrMo|CriOS)\/([^\s]*)/),j&&j[1]&&j[2]?(f.chrome=c(j[2]),f.safari=0,"CrMo"===j[1]&&(f.mobile="chrome")):(j=g.match(/AdobeAIR\/([^\s]*)/),j&&(f.air=j[0]))),f.webkit||(/Opera/.test(g)?(j=g.match(/Opera[\s\/]([^\s]*)/),j&&j[1]&&(f.opera=c(j[1])),j=g.match(/Version\/([^\s]*)/),j&&j[1]&&(f.opera=c(j[1])),/Opera Mobi/.test(g)&&(f.mobile="opera",j=g.replace("Opera Mobi","").match(/Opera ([^\s]*)/),j&&j[1]&&(f.opera=c(j[1]))),j=g.match(/Opera Mini[^;]*/),j&&(f.mobile=j[0])):(j=g.match(/MSIE\s([^;]*)/),j&&j[1]?f.ie=c(j[1]):(j=g.match(/Gecko\/([^\s]*)/),j&&(f.gecko=1,j=g.match(/rv:([^\s\)]*)/),j&&j[1]&&(f.gecko=c(j[1]),/Mobile|Tablet/.test(g)&&(f.mobile="ffos"))))))),d&&e&&!(f.chrome&&f.chrome<6)&&(f.touchEnabled="ontouchstart"in d||"msMaxTouchPoints"in e&&e.msMaxTouchPoints>0),b||("object"==typeof process&&process.versions&&process.versions.node&&(f.os=process.platform,f.nodejs=c(process.versions.node)),YUI.Env.UA=f),f},a.UA=YUI.Env.UA||YUI.Env.parseUA(),a.UA.compareVersions=function(a,b){var c,d,e,f,g,h;if(a===b)return 0;for(d=(a+"").split("."),f=(b+"").split("."),g=0,h=Math.max(d.length,f.length);h>g;++g){if(c=parseInt(d[g],10),e=parseInt(f[g],10),isNaN(c)&&(c=0),isNaN(e)&&(e=0),e>c)return-1;if(c>e)return 1}return 0},YUI.Env.aliases={anim:["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"],"anim-shape-transform":["anim-shape"],app:["app-base","app-content","app-transitions","lazy-model-list","model","model-list","model-sync-rest","router","view","view-node-map"],attribute:["attribute-base","attribute-complex"],"attribute-events":["attribute-observable"],autocomplete:["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"],axes:["axis-numeric","axis-category","axis-time","axis-stacked"],"axes-base":["axis-numeric-base","axis-category-base","axis-time-base","axis-stacked-base"],base:["base-base","base-pluginhost","base-build"],cache:["cache-base","cache-offline","cache-plugin"],charts:["charts-base"],collection:["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"],color:["color-base","color-hsl","color-harmony"],controller:["router"],dataschema:["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"],datasource:["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"],datatable:["datatable-core","datatable-table","datatable-head","datatable-body","datatable-base","datatable-column-widths","datatable-message","datatable-mutable","datatable-sort","datatable-datasource"],datatype:["datatype-date","datatype-number","datatype-xml"],"datatype-date":["datatype-date-parse","datatype-date-format","datatype-date-math"],"datatype-number":["datatype-number-parse","datatype-number-format"],"datatype-xml":["datatype-xml-parse","datatype-xml-format"],dd:["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"],dom:["dom-base","dom-screen","dom-style","selector-native","selector"],editor:["frame","editor-selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"],event:["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside","event-touch","event-move","event-flick","event-valuechange","event-tap"],"event-custom":["event-custom-base","event-custom-complex"],"event-gestures":["event-flick","event-move"],handlebars:["handlebars-compiler"],highlight:["highlight-base","highlight-accentfold"],history:["history-base","history-hash","history-hash-ie","history-html5"],io:["io-base","io-xdr","io-form","io-upload-iframe","io-queue"],json:["json-parse","json-stringify"],loader:["loader-base","loader-rollup","loader-yui3"],node:["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"],pluginhost:["pluginhost-base","pluginhost-config"],querystring:["querystring-parse","querystring-stringify"],recordset:["recordset-base","recordset-sort","recordset-filter","recordset-indexer"],resize:["resize-base","resize-proxy","resize-constrain"],slider:["slider-base","slider-value-range","clickable-rail","range-slider"],template:["template-base","template-micro"],text:["text-accentfold","text-wordbreak"],widget:["widget-base","widget-htmlparser","widget-skin","widget-uievents"]}},"3.10.1",{use:["yui-base","get","features","intl-base","yui-log","yui-later","loader-base","loader-rollup","loader-yui3"]}),YUI.add("get",function(a){var d,e,f,c=a.Lang;a.Get=e={cssOptions:{attributes:{rel:"stylesheet"},doc:a.config.linkDoc||a.config.doc,pollInterval:50},jsOptions:{autopurge:!0,doc:a.config.scriptDoc||a.config.doc},options:{attributes:{charset:"utf-8"},purgethreshold:20},REGEX_CSS:/\.css(?:[?;].*)?$/i,REGEX_JS:/\.js(?:[?;].*)?$/i,_insertCache:{},_pending:null,_purgeNodes:[],_queue:[],abort:function(a){var b,c,d,e,f;if(!a.abort)if(c=a,f=this._pending,a=null,f&&f.transaction.id===c)a=f.transaction,this._pending=null;else for(b=0,e=this._queue.length;e>b;++b)if(d=this._queue[b].transaction,d.id===c){a=d,this._queue.splice(b,1);break}a&&a.abort()},css:function(a,b,c){return this._load("css",a,b,c)},js:function(a,b,c){return this._load("js",a,b,c)},load:function(a,b,c){return this._load(null,a,b,c)},_autoPurge:function(a){a&&this._purgeNodes.length>=a&&this._purge(this._purgeNodes)},_getEnv:function(){var b=a.config.doc,c=a.UA;return this._env={async:b&&b.createElement("script").async===!0||c.ie>=10,cssFail:c.gecko>=9||c.compareVersions(c.webkit,535.24)>=0,cssLoad:(!c.gecko&&!c.webkit||c.gecko>=9||c.compareVersions(c.webkit,535.24)>=0)&&!(c.chrome&&c.chrome<=18),preservesScriptOrder:!!(c.gecko||c.opera||c.ie&&c.ie>=10)}},_getTransaction:function(b,d){var g,h,i,j,e=[];for(c.isArray(b)||(b=[b]),d=a.merge(this.options,d),d.attributes=a.merge(this.options.attributes,d.attributes),g=0,h=b.length;h>g;++g){if(j=b[g],i={attributes:{}},"string"==typeof j)i.url=j;else{if(!j.url)continue;a.mix(i,j,!1,null,0,!0),j=j.url}a.mix(i,d,!1,null,0,!0),i.type||(this.REGEX_CSS.test(j)?i.type="css":(!this.REGEX_JS.test(j),i.type="js")),a.mix(i,"js"===i.type?this.jsOptions:this.cssOptions,!1,null,0,!0),i.attributes.id||(i.attributes.id=a.guid()),i.win?i.doc=i.win.document:i.win=i.doc.defaultView||i.doc.parentWindow,i.charset&&(i.attributes.charset=i.charset),e.push(i)}return new f(e,d)},_load:function(a,b,c,d){var f;return"function"==typeof c&&(d=c,c={}),c||(c={}),c.type=a,c._onFinish=e._onTransactionFinish,this._env||this._getEnv(),f=this._getTransaction(b,c),this._queue.push({callback:d,transaction:f}),this._next(),f},_onTransactionFinish:function(){e._pending=null,e._next()},_next:function(){var a;this._pending||(a=this._queue.shift(),a&&(this._pending=a,a.transaction.execute(a.callback)))},_purge:function(b){for(var e,f,c=this._purgeNodes,d=b!==c;f=b.pop();)f._yuiget_finished&&(f.parentNode&&f.parentNode.removeChild(f),d&&(e=a.Array.indexOf(c,f),e>-1&&c.splice(e,1)))}},e.script=e.js,e.Transaction=f=function(b,c){var d=this;d.id=f._lastId+=1,d.data=c.data,d.errors=[],d.nodes=[],d.options=c,d.requests=b,d._callbacks=[],d._queue=[],d._reqsWaiting=0,d.tId=d.id,d.win=c.win||a.config.win},f._lastId=0,f.prototype={_state:"new",abort:function(a){this._pending=null,this._pendingCSS=null,this._pollTimer=clearTimeout(this._pollTimer),this._queue=[],this._reqsWaiting=0,this.errors.push({error:a||"Aborted"}),this._finish()},execute:function(a){var e,f,g,h,b=this,c=b.requests,d=b._state;if("done"===d)return a&&a(b.errors.length?b.errors:null,b),void 0;if(a&&b._callbacks.push(a),"executing"!==d){for(b._state="executing",b._queue=g=[],b.options.timeout&&(b._timeout=setTimeout(function(){b.abort("Timeout")},b.options.timeout)),b._reqsWaiting=c.length,e=0,f=c.length;f>e;++e)h=c[e],h.async||"css"===h.type?b._insert(h):g.push(h);b._next()}},purge:function(){e._purge(this.nodes)},_createNode:function(a,b,c){var f,g,e=c.createElement(a);d||(g=c.createElement("div"),g.setAttribute("class","a"),d="a"===g.className?{}:{"for":"htmlFor","class":"className"});for(f in b)b.hasOwnProperty(f)&&e.setAttribute(d[f]||f,b[f]);return e},_finish:function(){var d,e,f,a=this.errors.length?this.errors:null,b=this.options,c=b.context||this;if("done"!==this._state){for(this._state="done",e=0,f=this._callbacks.length;f>e;++e)this._callbacks[e].call(c,a,this);d=this._getEventData(),a?(b.onTimeout&&"Timeout"===a[a.length-1].error&&b.onTimeout.call(c,d),b.onFailure&&b.onFailure.call(c,d)):b.onSuccess&&b.onSuccess.call(c,d),b.onEnd&&b.onEnd.call(c,d),b._onFinish&&b._onFinish()}},_getEventData:function(b){return b?a.merge(this,{abort:this.abort,purge:this.purge,request:b,url:b.url,win:b.win}):this},_getInsertBefore:function(b){var f,g,c=b.doc,d=b.insertBefore;return d?"string"==typeof d?c.getElementById(d):d:(f=e._insertCache,g=a.stamp(c),(d=f[g])?d:(d=c.getElementsByTagName("base")[0])?f[g]=d:(d=c.head||c.getElementsByTagName("head")[0],d?(d.appendChild(c.createTextNode("")),f[g]=d.lastChild):f[g]=c.getElementsByTagName("script")[0]))},_insert:function(b){function c(){j._progress("Failed to load "+b.url,b)}function d(){l&&clearTimeout(l),j._progress(null,b)}var l,m,f=e._env,g=this._getInsertBefore(b),h="js"===b.type,i=b.node,j=this,k=a.UA;i||(m=h?"script":!f.cssLoad&&k.gecko?"style":"link",i=b.node=this._createNode(m,b.attributes,b.doc)),h?(i.setAttribute("src",b.url),b.async?i.async=!0:(f.async&&(i.async=!1),f.preservesScriptOrder||(this._pending=b))):!f.cssLoad&&k.gecko?i.innerHTML=(b.attributes.charset?'@charset "'+b.attributes.charset+'";':"")+'@import "'+b.url+'";':i.setAttribute("href",b.url),h&&k.ie&&(k.ie<9||document.documentMode&&document.documentMode<9)?i.onreadystatechange=function(){/loaded|complete/.test(i.readyState)&&(i.onreadystatechange=null,d())}:h||f.cssLoad?(k.ie>=10?(i.onerror=function(){setTimeout(c,0)},i.onload=function(){setTimeout(d,0)}):(i.onerror=c,i.onload=d),!f.cssFail&&!h&&(l=setTimeout(c,b.timeout||3e3))):this._poll(b),this.nodes.push(i),g.parentNode.insertBefore(i,g)},_next:function(){this._pending||(this._queue.length?this._insert(this._queue.shift()):this._reqsWaiting||this._finish())},_poll:function(b){var f,g,h,i,j,k,c=this,d=c._pendingCSS,e=a.UA.webkit;if(!b||(d||(d=c._pendingCSS=[]),d.push(b),!c._pollTimer)){for(c._pollTimer=null,f=0;f =0;)if(k[h].href===i){d.splice(f,1),f-=1,c._progress(null,j);break}}else try{g=!!j.node.sheet.cssRules,d.splice(f,1),f-=1,c._progress(null,j)}catch(l){}d.length&&(c._pollTimer=setTimeout(function(){c._poll.call(c)},c.options.pollInterval))}},_progress:function(a,b){var c=this.options;a&&(b.error=a,this.errors.push({error:a,request:b})),b.node._yuiget_finished=b.finished=!0,c.onProgress&&c.onProgress.call(c.context||this,this._getEventData(b)),b.autopurge&&(e._autoPurge(this.options.purgethreshold),e._purgeNodes.push(b.node)),this._pending===b&&(this._pending=null),this._reqsWaiting-=1,this._next()}}},"3.10.1",{requires:["yui-base"]}),YUI.add("features",function(a){var c={};a.mix(a.namespace("Features"),{tests:c,add:function(a,b,d){c[a]=c[a]||{},c[a][b]=d},all:function(b,d){var e=c[b],f=[];return e&&a.Object.each(e,function(c,e){f.push(e+":"+(a.Features.test(b,e,d)?1:0))}),f.length?f.join(";"):""},test:function(b,d,e){e=e||[];var f,g,h,i=c[b],j=i&&i[d];return!j||(f=j.result,a.Lang.isUndefined(f)&&(g=j.ua,g&&(f=a.UA[g]),h=j.test,h&&(!g||f)&&(f=h.apply(a,e)),j.result=f)),f}});var d=a.Features.add;d("load","0",{name:"app-transitions-native",test:function(a){var b=a.config.doc,c=b?b.documentElement:null;return c&&c.style?"MozTransition"in c.style||"WebkitTransition"in c.style||"transition"in c.style:!1},trigger:"app-transitions"}),d("load","1",{name:"autocomplete-list-keys",test:function(a){return!a.UA.ios&&!a.UA.android},trigger:"autocomplete-list"}),d("load","2",{name:"dd-gestures",trigger:"dd-drag",ua:"touchEnabled"}),d("load","3",{name:"dom-style-ie",test:function(a){var b=a.Features.test,c=a.Features.add,d=a.config.win,e=a.config.doc,f="documentElement",g=!1;return c("style","computedStyle",{test:function(){return d&&"getComputedStyle"in d}}),c("style","opacity",{test:function(){return e&&"opacity"in e[f].style}}),g=!b("style","opacity")&&!b("style","computedStyle")},trigger:"dom-style"}),d("load","4",{name:"editor-para-ie",trigger:"editor-para",ua:"ie",when:"instead"}),d("load","5",{name:"event-base-ie",test:function(a){var b=a.config.doc&&a.config.doc.implementation;return b&&!b.hasFeature("Events","2.0")},trigger:"node-base"}),d("load","6",{name:"graphics-canvas",test:function(a){var b=a.config.doc,c=a.config.defaultGraphicEngine&&"canvas"==a.config.defaultGraphicEngine,d=b&&b.createElement("canvas"),e=b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return(!e||c)&&d&&d.getContext&&d.getContext("2d")},trigger:"graphics"}),d("load","7",{name:"graphics-canvas-default",test:function(a){var b=a.config.doc,c=a.config.defaultGraphicEngine&&"canvas"==a.config.defaultGraphicEngine,d=b&&b.createElement("canvas"),e=b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return(!e||c)&&d&&d.getContext&&d.getContext("2d")},trigger:"graphics"}),d("load","8",{name:"graphics-svg",test:function(a){var b=a.config.doc,c=!a.config.defaultGraphicEngine||"canvas"!=a.config.defaultGraphicEngine,d=b&&b.createElement("canvas"),e=b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return e&&(c||!d)},trigger:"graphics"}),d("load","9",{name:"graphics-svg-default",test:function(a){var b=a.config.doc,c=!a.config.defaultGraphicEngine||"canvas"!=a.config.defaultGraphicEngine,d=b&&b.createElement("canvas"),e=b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return e&&(c||!d)},trigger:"graphics"}),d("load","10",{name:"graphics-vml",test:function(a){var b=a.config.doc,c=b&&b.createElement("canvas");return!(!b||b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")||c&&c.getContext&&c.getContext("2d"))},trigger:"graphics"}),d("load","11",{name:"graphics-vml-default",test:function(a){var b=a.config.doc,c=b&&b.createElement("canvas");return!(!b||b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")||c&&c.getContext&&c.getContext("2d")) +},trigger:"graphics"}),d("load","12",{name:"history-hash-ie",test:function(a){var b=a.config.doc&&a.config.doc.documentMode;return a.UA.ie&&(!("onhashchange"in a.config.win)||!b||8>b)},trigger:"history-hash"}),d("load","13",{name:"io-nodejs",trigger:"io-base",ua:"nodejs"}),d("load","14",{name:"json-parse-shim",test:function(a){function b(a,b){return"ok"===a?!0:b}var c=a.config.global.JSON,d="[object JSON]"===Object.prototype.toString.call(c)&&c,e=a.config.useNativeJSONParse!==!1&&!!d;if(e)try{e=d.parse('{"ok":false}',b).ok}catch(f){e=!1}return!e},trigger:"json-parse"}),d("load","15",{name:"json-stringify-shim",test:function(a){var b=a.config.global.JSON,c="[object JSON]"===Object.prototype.toString.call(b)&&b,d=a.config.useNativeJSONStringify!==!1&&!!c;if(d)try{d="0"===c.stringify(0)}catch(e){d=!1}return!d},trigger:"json-stringify"}),d("load","16",{name:"scrollview-base-ie",trigger:"scrollview-base",ua:"ie"}),d("load","17",{name:"selector-css2",test:function(a){var b=a.config.doc,c=b&&!("querySelectorAll"in b);return c},trigger:"selector"}),d("load","18",{name:"transition-timer",test:function(a){var b=a.config.doc,c=b?b.documentElement:null,d=!0;return c&&c.style&&(d=!("MozTransition"in c.style||"WebkitTransition"in c.style||"transition"in c.style)),d},trigger:"transition"}),d("load","19",{name:"widget-base-ie",trigger:"widget-base",ua:"ie"}),d("load","20",{name:"yql-jsonp",test:function(a){return!a.UA.nodejs&&!a.UA.winjs},trigger:"yql",when:"after"}),d("load","21",{name:"yql-nodejs",trigger:"yql",ua:"nodejs",when:"after"}),d("load","22",{name:"yql-winjs",trigger:"yql",ua:"winjs",when:"after"})},"3.10.1",{requires:["yui-base"]}),YUI.add("intl-base",function(a){var c=/[, ]/;a.mix(a.namespace("Intl"),{lookupBestLang:function(b,d){function e(a){var b;for(b=0;b 0;){if(h=e(g))return h;if(i=g.lastIndexOf("-"),!(i>=0))break;g=g.substring(0,i),i>=2&&"-"===g.charAt(i-2)&&(g=g.substring(0,i-2))}return""}})},"3.10.1",{requires:["yui-base"]}),YUI.add("yui-log",function(a){var c=a,d="yui:log",e="undefined",f={debug:1,info:2,warn:4,error:8};c.log=function(a,b,g,h){var i,j,k,l,m,n,o=c,p=o.config,q=o.fire?o:YUI.Env.globalEvents;return p.debug&&(g=g||"","undefined"!=typeof g&&(j=p.logExclude,k=p.logInclude,!k||g in k?k&&g in k?i=!k[g]:j&&g in j&&(i=j[g]):i=1,o.config.logLevel=o.config.logLevel||"debug",n=f[o.config.logLevel.toLowerCase()],b in f&&f[b] -1,c.comboSep="&",c.maxURLLength=e,c.ignoreRegistered=b.ignoreRegistered,c.root=a.Env.meta.root,c.timeout=0,c.forceMap={},c.allowRollup=!1,c.filters={},c.required={},c.patterns={},c.moduleInfo={},c.groups=a.merge(a.Env.meta.groups),c.skin=a.merge(a.Env.meta.skin),c.conditions={},c.config=b,c._internal=!0,c._populateCache(),c.loaded=g[l],c.async=!0,c._inspectPage(),c._internal=!1,c._config(b),c.forceMap=c.force?a.Array.hash(c.force):{},c.testresults=null,a.config.tests&&(c.testresults=a.config.tests),c.sorted=[],c.dirty=!0,c.inserted={},c.skipped={},c.tested={},c.ignoreRegistered&&c._resetModules()},a.Loader.prototype={_populateCache:function(){var e,b=this,c=r.modules,d=f._renderedMods;if(d&&!b.ignoreRegistered){for(e in d)d.hasOwnProperty(e)&&(b.moduleInfo[e]=a.merge(d[e]));d=f._conditions;for(e in d)d.hasOwnProperty(e)&&(b.conditions[e]=a.merge(d[e]))}else for(e in c)c.hasOwnProperty(e)&&b.addModule(c[e],e)},_resetModules:function(){var b,c,d,e,f,a=this;for(b in a.moduleInfo)if(a.moduleInfo.hasOwnProperty(b)){if(d=a.moduleInfo[b],e=d.name,f=YUI.Env.mods[e]?YUI.Env.mods[e].details:null,f&&(a.moduleInfo[e]._reset=!0,a.moduleInfo[e].requires=f.requires||[],a.moduleInfo[e].optional=f.optional||[],a.moduleInfo[e].supersedes=f.supercedes||[]),d.defaults)for(c in d.defaults)d.defaults.hasOwnProperty(c)&&d[c]&&(d[c]=d.defaults[c]);delete d.langCache,delete d.skinCache,d.skinnable&&a._addSkin(a.skin.defaultSkin,d.name)}},REGEX_CSS:/\.css(?:[?;].*)?$/i,FILTER_DEFS:{RAW:{searchExp:"-min\\.js",replaceStr:".js"},DEBUG:{searchExp:"-min\\.js",replaceStr:"-debug.js"},COVERAGE:{searchExp:"-min\\.js",replaceStr:"-coverage.js"}},_inspectPage:function(){var b,c,d,e,f,a=this;for(f in a.moduleInfo)a.moduleInfo.hasOwnProperty(f)&&(b=a.moduleInfo[f],b.type&&b.type===h&&a.isCSSLoaded(b.name)&&(a.loaded[f]=!0));for(f in u)u.hasOwnProperty(f)&&(b=u[f],b.details&&(c=a.moduleInfo[b.name],d=b.details.requires,e=c&&c.requires,c?!c._inspected&&d&&e.length!==d.length&&delete c.expanded:c=a.addModule(b.details,f),c._inspected=!0))},_requires:function(a,b){var c,d,e,f,g=this.moduleInfo,i=g[a],j=g[b];if(!i||!j)return!1;if(d=i.expanded_map,e=i.after_map,e&&b in e)return!0;if(e=j.after_map,e&&a in e)return!1;if(f=g[b]&&g[b].supersedes)for(c=0;c g?g:Math.min(g-1,4))}if(o=b.plugins)for(e in o)o.hasOwnProperty(e)&&(q=o[e],q.pkg=c,q.path=q.path||w(c,e,b.type),q.requires=q.requires||[],q.group=b.group,this.addModule(q,e),b.skinnable&&this._addSkin(this.skin.defaultSkin,e,c));if(b.condition)for(j=b.condition.trigger,YUI.Env.aliases[j]&&(j=YUI.Env.aliases[j]),a.Lang.isArray(j)||(j=[j]),e=0;e e;e++)if(c=a.getModule(b.use[e]),c&&c.use)for(h=c.use.length,f=0;h>f;f++)i[c.use[f]]=!0;else i[b.use[e]]=!0;a.required=i}},filterRequires:function(b){if(b){a.Lang.isArray(b)||(b=[b]),b=a.Array(b);var d,e,f,g,c=[];for(d=0;d -1&&(B=c);if(A&&(A[l]||B&&A[B]))for(C=l,A[B]&&(C=B),c=0;c-1},getModule:function(b){if(!b)return null;var c,d,e,f=this.moduleInfo[b],g=this.patterns;if(!f||f&&f.ext)for(e in g)if(g.hasOwnProperty(e)&&(c=g[e],c.test||(c.test=this._patternTest),c.test(b,e))){d=c;break}return f?d&&f&&d.configFn&&!f.configFn&&(f.configFn=d.configFn,f.configFn(f)):d&&(c.action?c.action.call(this,b,e):(f=this.addModule(a.merge(d),b),d.configFn&&(f.configFn=d.configFn),f.temp=!0)),f},_rollup:function(){},_reduce:function(a){a=a||this.required;var b,c,d,e,f=this.loadType,g=this.ignore?p.hash(this.ignore):!1;for(b in a)if(a.hasOwnProperty(b)&&(e=this.getModule(b),((this.loaded[b]||u[b])&&!this.forceMap[b]&&!this.ignoreRegistered||f&&e&&e.type!==f)&&delete a[b],g&&g[b]&&delete a[b],d=e&&e.supersedes,d))for(c=0;c d;d++)c.push(a.errors[d].error);c=c.join(","),b&&b.call(this.context,{msg:c,data:this.data,success:!1}),this._finish(c,!1)},_onTimeout:function(a){var b=this.onTimeout;b&&b.call(this.context,{msg:"timeout",data:this.data,success:!1,transaction:a})},_sort:function(){for(var d,e,f,g,h,i,j,a=n.keys(this.required),b={},c=0;;){for(d=a.length,i=!1,g=c;d>g;g++){for(e=a[g],h=g+1;d>h;h++)if(j=e+a[h],!b[j]&&this._requires(e,a[h])){f=a.splice(h,1),a.splice(g,0,f[0]),b[j]=!0,i=!0;break}if(i)break;c++}if(!i)break}this.sorted=a},_insert:function(b,c,d,e){b&&this._config(b);var m,n,f=this.resolve(!e),g=this,j=0,k=0,l={};return g._refetch=[],d&&(f[d===i?h:i]=[]),g.fetchCSS||(f.css=[]),f.js.length&&j++,f.css.length&&j++,n=function(b){k++;var h,i,n,c={},d=0,e=0,f="";if(b&&b.errors)for(d=0;d 0&&(q.running=!0,q.next()())},insert:function(b,c,d){var e=this,f=a.merge(this);delete f.require,delete f.dirty,q.add(function(){e._insert(f,b,c,d)}),this._continue()},loadNext:function(){},_filter:function(a,b,c){var d=this.filter,e=b&&b in this.filters,f=e&&this.filters[b],g=c||(this.moduleInfo[b]?this.moduleInfo[b].group:null);return g&&this.groups[g]&&this.groups[g].filter&&(f=this.groups[g].filter,e=!0),a&&(e&&(d=t.isString(f)?this.FILTER_DEFS[f.toUpperCase()]||null:f),d&&(a=a.replace(new RegExp(d.searchExp,"g"),d.replaceStr))),a},_url:function(a,b,c){return this._filter((c||this.base||"")+a,b)},resolve:function(a,b){var d,f,g,j,l,m,n,o,p,q,r,s,u,v,x,y,B,C,G,w=[],z={},A=this,D=A.ignoreRegistered?{}:A.inserted,E={js:[],jsMods:[],css:[],cssMods:[]},F=A.loadType||"js";for((A.skin.overrides||A.skin.defaultSkin!==k||A.ignoreRegistered)&&A._resetModules(),a&&A.calculate(),b=b||A.sorted,G=function(a){a&&(l=a.group&&A.groups[a.group]||c,l.async===!1&&(a.async=l.async),j=a.fullpath?A._filter(a.fullpath,b[f]):A._url(a.path,b[f],l.base||a.base),(a.attributes||a.async===!1)&&(j={url:j,async:a.async},a.attributes&&(j.attributes=a.attributes)),E[a.type].push(j),E[a.type+"Mods"].push(a))},d=b.length,s=A.comboBase,j=s,q={},f=0;d>f;f++){if(p=s,g=A.getModule(b[f]),m=g&&g.group,l=A.groups[m],m&&l){if(!l.combine||g.fullpath){G(g);continue}g.combine=!0,l.comboBase&&(p=l.comboBase),"root"in l&&t.isValue(l.root)&&(g.root=l.root),g.comboSep=l.comboSep||A.comboSep,g.maxURLLength=l.maxURLLength||A.maxURLLength}else if(!A.combine){G(g);continue}q[p]=q[p]||[],q[p].push(g)}for(n in q)if(q.hasOwnProperty(n)&&(z[n]=z[n]||{js:[],jsMods:[],css:[],cssMods:[]},j=n,r=q[n],d=r.length,d))for(f=0;d>f;f++)D[r[f]]||(g=r[f],!g||!g.combine&&g.ext?r[f]&&G(r[f]):(z[n].comboSep=g.comboSep,z[n].group=g.group,z[n].maxURLLength=g.maxURLLength,o=(t.isValue(g.root)?g.root:A.root)+(g.path||g.fullpath),o=A._filter(o,g.name),z[n][g.type].push(o),z[n][g.type+"Mods"].push(g)));for(n in z)if(z.hasOwnProperty(n)){u=n,B=z[u].comboSep||A.comboSep,C=z[u].maxURLLength||A.maxURLLength;for(F in z[u])if(F===i||F===h){if(v=z[u][F],r=z[u][F+"Mods"],d=v.length,x=u+v.join(B),y=x.length,C<=u.length&&(C=e),d)if(y>C){for(w=[],b=0;d>b;b++)w.push(v[b]),x=u+w.join(B),x.length>C&&(g=w.pop(),x=u+w.join(B),E[F].push(A._filter(x,null,z[u].group)),w=[],g&&w.push(g));w.length&&(x=u+w.join(B),E[F].push(A._filter(x,null,z[u].group)))}else E[F].push(A._filter(x,null,z[u].group));E[F+"Mods"]=E[F+"Mods"].concat(r)}}return z=null,E},load:function(a){if(a){var b=this,c=b.resolve(!0);b.data=c,b.onEnd=function(){a.apply(b.context||b,arguments)},b.insert()}}}},"3.10.1",{requires:["get","features"]}),YUI.add("loader-rollup",function(a){a.Loader.prototype._rollup=function(){var a,b,c,d,f,h,i,j,e=this.required,g=this.moduleInfo;if(this.dirty||!this.rollups){this.rollups={};for(a in g)g.hasOwnProperty(a)&&(c=this.getModule(a),c&&c.rollup&&(this.rollups[a]=c))}for(;;){h=!1;for(a in this.rollups)if(this.rollups.hasOwnProperty(a)&&!e[a]&&(!this.loaded[a]||this.forceMap[a])){if(c=this.getModule(a),d=c.supersedes||[],f=!1,!c.rollup)continue;for(i=0,b=0;b =c.rollup))break}f&&(e[a]=!0,h=!0,this.getRequires(c))}if(!h)break}}},"3.10.1",{requires:["loader-base"]}),YUI.add("loader-yui3",function(a){YUI.Env[a.version].modules=YUI.Env[a.version].modules||{},a.mix(YUI.Env[a.version].modules,{"align-plugin":{requires:["node-screen","node-pluginhost"]},anim:{use:["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"]},"anim-base":{requires:["base-base","node-style"]},"anim-color":{requires:["anim-base"]},"anim-curve":{requires:["anim-xy"]},"anim-easing":{requires:["anim-base"]},"anim-node-plugin":{requires:["node-pluginhost","anim-base"]},"anim-scroll":{requires:["anim-base"]},"anim-shape":{requires:["anim-base","anim-easing","anim-color","matrix"]},"anim-shape-transform":{use:["anim-shape"]},"anim-xy":{requires:["anim-base","node-screen"]},app:{use:["app-base","app-content","app-transitions","lazy-model-list","model","model-list","model-sync-rest","router","view","view-node-map"]},"app-base":{requires:["classnamemanager","pjax-base","router","view"]},"app-content":{requires:["app-base","pjax-content"]},"app-transitions":{requires:["app-base"]},"app-transitions-css":{type:"css"},"app-transitions-native":{condition:{name:"app-transitions-native",test:function(a){var b=a.config.doc,c=b?b.documentElement:null;return c&&c.style?"MozTransition"in c.style||"WebkitTransition"in c.style||"transition"in c.style:!1},trigger:"app-transitions"},requires:["app-transitions","app-transitions-css","parallel","transition"]},"array-extras":{requires:["yui-base"]},"array-invoke":{requires:["yui-base"]},arraylist:{requires:["yui-base"]},"arraylist-add":{requires:["arraylist"]},"arraylist-filter":{requires:["arraylist"]},arraysort:{requires:["yui-base"]},"async-queue":{requires:["event-custom"]},attribute:{use:["attribute-base","attribute-complex"]},"attribute-base":{requires:["attribute-core","attribute-observable","attribute-extras"]},"attribute-complex":{requires:["attribute-base"]},"attribute-core":{requires:["oop"]},"attribute-events":{use:["attribute-observable"]},"attribute-extras":{requires:["oop"]},"attribute-observable":{requires:["event-custom"]},autocomplete:{use:["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"]},"autocomplete-base":{optional:["autocomplete-sources"],requires:["array-extras","base-build","escape","event-valuechange","node-base"]},"autocomplete-filters":{requires:["array-extras","text-wordbreak"]},"autocomplete-filters-accentfold":{requires:["array-extras","text-accentfold","text-wordbreak"]},"autocomplete-highlighters":{requires:["array-extras","highlight-base"]},"autocomplete-highlighters-accentfold":{requires:["array-extras","highlight-accentfold"]},"autocomplete-list":{after:["autocomplete-sources"],lang:["en","es","it"],requires:["autocomplete-base","event-resize","node-screen","selector-css3","shim-plugin","widget","widget-position","widget-position-align"],skinnable:!0},"autocomplete-list-keys":{condition:{name:"autocomplete-list-keys",test:function(a){return!a.UA.ios&&!a.UA.android},trigger:"autocomplete-list"},requires:["autocomplete-list","base-build"]},"autocomplete-plugin":{requires:["autocomplete-list","node-pluginhost"]},"autocomplete-sources":{optional:["io-base","json-parse","jsonp","yql"],requires:["autocomplete-base"]},axes:{use:["axis-numeric","axis-category","axis-time","axis-stacked"]},"axes-base":{use:["axis-numeric-base","axis-category-base","axis-time-base","axis-stacked-base"]},axis:{requires:["dom","widget","widget-position","widget-stack","graphics","axis-base"]},"axis-base":{requires:["classnamemanager","datatype-number","datatype-date","base","event-custom"]},"axis-category":{requires:["axis","axis-category-base"]},"axis-category-base":{requires:["axis-base"]},"axis-numeric":{requires:["axis","axis-numeric-base"]},"axis-numeric-base":{requires:["axis-base"]},"axis-stacked":{requires:["axis-numeric","axis-stacked-base"]},"axis-stacked-base":{requires:["axis-numeric-base"]},"axis-time":{requires:["axis","axis-time-base"]},"axis-time-base":{requires:["axis-base"]},base:{use:["base-base","base-pluginhost","base-build"]},"base-base":{requires:["attribute-base","base-core","base-observable"]},"base-build":{requires:["base-base"]},"base-core":{requires:["attribute-core"]},"base-observable":{requires:["attribute-observable"]},"base-pluginhost":{requires:["base-base","pluginhost"]},button:{requires:["button-core","cssbutton","widget"]},"button-core":{requires:["attribute-core","classnamemanager","node-base"]},"button-group":{requires:["button-plugin","cssbutton","widget"]},"button-plugin":{requires:["button-core","cssbutton","node-pluginhost"]},cache:{use:["cache-base","cache-offline","cache-plugin"]},"cache-base":{requires:["base"]},"cache-offline":{requires:["cache-base","json"]},"cache-plugin":{requires:["plugin","cache-base"]},calendar:{lang:["de","en","es","es-AR","fr","it","ja","nb-NO","nl","pt-BR","ru","zh-HANT-TW"],requires:["calendar-base","calendarnavigator"],skinnable:!0},"calendar-base":{lang:["de","en","es","es-AR","fr","it","ja","nb-NO","nl","pt-BR","ru","zh-HANT-TW"],requires:["widget","datatype-date","datatype-date-math","cssgrids"],skinnable:!0},calendarnavigator:{requires:["plugin","classnamemanager","datatype-date","node"],skinnable:!0},charts:{use:["charts-base"]},"charts-base":{requires:["dom","event-mouseenter","event-touch","graphics-group","axes","series-pie","series-line","series-marker","series-area","series-spline","series-column","series-bar","series-areaspline","series-combo","series-combospline","series-line-stacked","series-marker-stacked","series-area-stacked","series-spline-stacked","series-column-stacked","series-bar-stacked","series-areaspline-stacked","series-combo-stacked","series-combospline-stacked"]},"charts-legend":{requires:["charts-base"]},classnamemanager:{requires:["yui-base"]},"clickable-rail":{requires:["slider-base"]},collection:{use:["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"]},color:{use:["color-base","color-hsl","color-harmony"]},"color-base":{requires:["yui-base"]},"color-harmony":{requires:["color-hsl"]},"color-hsl":{requires:["color-base"]},"color-hsv":{requires:["color-base"]},console:{lang:["en","es","it","ja"],requires:["yui-log","widget"],skinnable:!0},"console-filters":{requires:["plugin","console"],skinnable:!0},controller:{use:["router"]},cookie:{requires:["yui-base"]},"createlink-base":{requires:["editor-base"]},cssbase:{after:["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],type:"css"},"cssbase-context":{after:["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],type:"css"},cssbutton:{type:"css"},cssfonts:{type:"css"},"cssfonts-context":{type:"css"},cssgrids:{optional:["cssreset","cssfonts"],type:"css"},"cssgrids-base":{optional:["cssreset","cssfonts"],type:"css"},"cssgrids-responsive":{optional:["cssreset","cssfonts"],requires:["cssgrids","cssgrids-responsive-base"],type:"css"},"cssgrids-units":{optional:["cssreset","cssfonts"],requires:["cssgrids-base"],type:"css"},cssnormalize:{type:"css"},"cssnormalize-context":{type:"css"},cssreset:{type:"css"},"cssreset-context":{type:"css"},dataschema:{use:["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"]},"dataschema-array":{requires:["dataschema-base"]},"dataschema-base":{requires:["base"]},"dataschema-json":{requires:["dataschema-base","json"]},"dataschema-text":{requires:["dataschema-base"]},"dataschema-xml":{requires:["dataschema-base"]},datasource:{use:["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"]},"datasource-arrayschema":{requires:["datasource-local","plugin","dataschema-array"]},"datasource-cache":{requires:["datasource-local","plugin","cache-base"]},"datasource-function":{requires:["datasource-local"]},"datasource-get":{requires:["datasource-local","get"]},"datasource-io":{requires:["datasource-local","io-base"]},"datasource-jsonschema":{requires:["datasource-local","plugin","dataschema-json"]},"datasource-local":{requires:["base"]},"datasource-polling":{requires:["datasource-local"]},"datasource-textschema":{requires:["datasource-local","plugin","dataschema-text"]},"datasource-xmlschema":{requires:["datasource-local","plugin","datatype-xml","dataschema-xml"]},datatable:{use:["datatable-core","datatable-table","datatable-head","datatable-body","datatable-base","datatable-column-widths","datatable-message","datatable-mutable","datatable-sort","datatable-datasource"]},"datatable-base":{requires:["datatable-core","datatable-table","datatable-head","datatable-body","base-build","widget"],skinnable:!0},"datatable-body":{requires:["datatable-core","view","classnamemanager"]},"datatable-column-widths":{requires:["datatable-base"]},"datatable-core":{requires:["escape","model-list","node-event-delegate"]},"datatable-datasource":{requires:["datatable-base","plugin","datasource-local"]},"datatable-formatters":{requires:["datatable-body","datatype-number-format","datatype-date-format","escape"]},"datatable-head":{requires:["datatable-core","view","classnamemanager"]},"datatable-message":{lang:["en","fr","es","it"],requires:["datatable-base"],skinnable:!0},"datatable-mutable":{requires:["datatable-base"]},"datatable-scroll":{requires:["datatable-base","datatable-column-widths","dom-screen"],skinnable:!0},"datatable-sort":{lang:["en","fr","es"],requires:["datatable-base"],skinnable:!0},"datatable-table":{requires:["datatable-core","datatable-head","datatable-body","view","classnamemanager"]},datatype:{use:["datatype-date","datatype-number","datatype-xml"]},"datatype-date":{use:["datatype-date-parse","datatype-date-format","datatype-date-math"]},"datatype-date-format":{lang:["ar","ar-JO","ca","ca-ES","da","da-DK","de","de-AT","de-DE","el","el-GR","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-JO","en-MY","en-NZ","en-PH","en-SG","en-US","es","es-AR","es-BO","es-CL","es-CO","es-EC","es-ES","es-MX","es-PE","es-PY","es-US","es-UY","es-VE","fi","fi-FI","fr","fr-BE","fr-CA","fr-FR","hi","hi-IN","id","id-ID","it","it-IT","ja","ja-JP","ko","ko-KR","ms","ms-MY","nb","nb-NO","nl","nl-BE","nl-NL","pl","pl-PL","pt","pt-BR","ro","ro-RO","ru","ru-RU","sv","sv-SE","th","th-TH","tr","tr-TR","vi","vi-VN","zh-Hans","zh-Hans-CN","zh-Hant","zh-Hant-HK","zh-Hant-TW"]},"datatype-date-math":{requires:["yui-base"]},"datatype-date-parse":{},"datatype-number":{use:["datatype-number-parse","datatype-number-format"]},"datatype-number-format":{},"datatype-number-parse":{},"datatype-xml":{use:["datatype-xml-parse","datatype-xml-format"]},"datatype-xml-format":{},"datatype-xml-parse":{},dd:{use:["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"]},"dd-constrain":{requires:["dd-drag"]},"dd-ddm":{requires:["dd-ddm-base","event-resize"]},"dd-ddm-base":{requires:["node","base","yui-throttle","classnamemanager"]},"dd-ddm-drop":{requires:["dd-ddm"]},"dd-delegate":{requires:["dd-drag","dd-drop-plugin","event-mouseenter"]},"dd-drag":{requires:["dd-ddm-base"]},"dd-drop":{requires:["dd-drag","dd-ddm-drop"]},"dd-drop-plugin":{requires:["dd-drop"]},"dd-gestures":{condition:{name:"dd-gestures",trigger:"dd-drag",ua:"touchEnabled"},requires:["dd-drag","event-synthetic","event-gestures"]},"dd-plugin":{optional:["dd-constrain","dd-proxy"],requires:["dd-drag"]},"dd-proxy":{requires:["dd-drag"]},"dd-scroll":{requires:["dd-drag"]},dial:{lang:["en","es"],requires:["widget","dd-drag","event-mouseenter","event-move","event-key","transition","intl"],skinnable:!0},dom:{use:["dom-base","dom-screen","dom-style","selector-native","selector"]},"dom-base":{requires:["dom-core"]},"dom-core":{requires:["oop","features"]},"dom-deprecated":{requires:["dom-base"]},"dom-screen":{requires:["dom-base","dom-style"]},"dom-style":{requires:["dom-base"]},"dom-style-ie":{condition:{name:"dom-style-ie",test:function(a){var b=a.Features.test,c=a.Features.add,d=a.config.win,e=a.config.doc,f="documentElement",g=!1; +return c("style","computedStyle",{test:function(){return d&&"getComputedStyle"in d}}),c("style","opacity",{test:function(){return e&&"opacity"in e[f].style}}),g=!b("style","opacity")&&!b("style","computedStyle")},trigger:"dom-style"},requires:["dom-style"]},dump:{requires:["yui-base"]},editor:{use:["frame","editor-selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"]},"editor-base":{requires:["base","frame","node","exec-command","editor-selection"]},"editor-bidi":{requires:["editor-base"]},"editor-br":{requires:["editor-base"]},"editor-lists":{requires:["editor-base"]},"editor-para":{requires:["editor-para-base"]},"editor-para-base":{requires:["editor-base"]},"editor-para-ie":{condition:{name:"editor-para-ie",trigger:"editor-para",ua:"ie",when:"instead"},requires:["editor-para-base"]},"editor-selection":{requires:["node"]},"editor-tab":{requires:["editor-base"]},escape:{requires:["yui-base"]},event:{after:["node-base"],use:["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside","event-touch","event-move","event-flick","event-valuechange","event-tap"]},"event-base":{after:["node-base"],requires:["event-custom-base"]},"event-base-ie":{after:["event-base"],condition:{name:"event-base-ie",test:function(a){var b=a.config.doc&&a.config.doc.implementation;return b&&!b.hasFeature("Events","2.0")},trigger:"node-base"},requires:["node-base"]},"event-contextmenu":{requires:["event-synthetic","dom-screen"]},"event-custom":{use:["event-custom-base","event-custom-complex"]},"event-custom-base":{requires:["oop"]},"event-custom-complex":{requires:["event-custom-base"]},"event-delegate":{requires:["node-base"]},"event-flick":{requires:["node-base","event-touch","event-synthetic"]},"event-focus":{requires:["event-synthetic"]},"event-gestures":{use:["event-flick","event-move"]},"event-hover":{requires:["event-mouseenter"]},"event-key":{requires:["event-synthetic"]},"event-mouseenter":{requires:["event-synthetic"]},"event-mousewheel":{requires:["node-base"]},"event-move":{requires:["node-base","event-touch","event-synthetic"]},"event-outside":{requires:["event-synthetic"]},"event-resize":{requires:["node-base","event-synthetic"]},"event-simulate":{requires:["event-base"]},"event-synthetic":{requires:["node-base","event-custom-complex"]},"event-tap":{requires:["node-base","event-base","event-touch","event-synthetic"]},"event-touch":{requires:["node-base"]},"event-valuechange":{requires:["event-focus","event-synthetic"]},"exec-command":{requires:["frame"]},features:{requires:["yui-base"]},file:{requires:["file-flash","file-html5"]},"file-flash":{requires:["base"]},"file-html5":{requires:["base"]},frame:{requires:["base","node","selector-css3","yui-throttle"]},"gesture-simulate":{requires:["async-queue","event-simulate","node-screen"]},get:{requires:["yui-base"]},graphics:{requires:["node","event-custom","pluginhost","matrix","classnamemanager"]},"graphics-canvas":{condition:{name:"graphics-canvas",test:function(a){var b=a.config.doc,c=a.config.defaultGraphicEngine&&"canvas"==a.config.defaultGraphicEngine,d=b&&b.createElement("canvas"),e=b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return(!e||c)&&d&&d.getContext&&d.getContext("2d")},trigger:"graphics"},requires:["graphics"]},"graphics-canvas-default":{condition:{name:"graphics-canvas-default",test:function(a){var b=a.config.doc,c=a.config.defaultGraphicEngine&&"canvas"==a.config.defaultGraphicEngine,d=b&&b.createElement("canvas"),e=b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return(!e||c)&&d&&d.getContext&&d.getContext("2d")},trigger:"graphics"}},"graphics-group":{requires:["graphics"]},"graphics-svg":{condition:{name:"graphics-svg",test:function(a){var b=a.config.doc,c=!a.config.defaultGraphicEngine||"canvas"!=a.config.defaultGraphicEngine,d=b&&b.createElement("canvas"),e=b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return e&&(c||!d)},trigger:"graphics"},requires:["graphics"]},"graphics-svg-default":{condition:{name:"graphics-svg-default",test:function(a){var b=a.config.doc,c=!a.config.defaultGraphicEngine||"canvas"!=a.config.defaultGraphicEngine,d=b&&b.createElement("canvas"),e=b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return e&&(c||!d)},trigger:"graphics"}},"graphics-vml":{condition:{name:"graphics-vml",test:function(a){var b=a.config.doc,c=b&&b.createElement("canvas");return!(!b||b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")||c&&c.getContext&&c.getContext("2d"))},trigger:"graphics"},requires:["graphics"]},"graphics-vml-default":{condition:{name:"graphics-vml-default",test:function(a){var b=a.config.doc,c=b&&b.createElement("canvas");return!(!b||b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")||c&&c.getContext&&c.getContext("2d"))},trigger:"graphics"}},handlebars:{use:["handlebars-compiler"]},"handlebars-base":{requires:[]},"handlebars-compiler":{requires:["handlebars-base"]},highlight:{use:["highlight-base","highlight-accentfold"]},"highlight-accentfold":{requires:["highlight-base","text-accentfold"]},"highlight-base":{requires:["array-extras","classnamemanager","escape","text-wordbreak"]},history:{use:["history-base","history-hash","history-hash-ie","history-html5"]},"history-base":{requires:["event-custom-complex"]},"history-hash":{after:["history-html5"],requires:["event-synthetic","history-base","yui-later"]},"history-hash-ie":{condition:{name:"history-hash-ie",test:function(a){var b=a.config.doc&&a.config.doc.documentMode;return a.UA.ie&&(!("onhashchange"in a.config.win)||!b||8>b)},trigger:"history-hash"},requires:["history-hash","node-base"]},"history-html5":{optional:["json"],requires:["event-base","history-base","node-base"]},imageloader:{requires:["base-base","node-style","node-screen"]},intl:{requires:["intl-base","event-custom"]},"intl-base":{requires:["yui-base"]},io:{use:["io-base","io-xdr","io-form","io-upload-iframe","io-queue"]},"io-base":{requires:["event-custom-base","querystring-stringify-simple"]},"io-form":{requires:["io-base","node-base"]},"io-nodejs":{condition:{name:"io-nodejs",trigger:"io-base",ua:"nodejs"},requires:["io-base"]},"io-queue":{requires:["io-base","queue-promote"]},"io-upload-iframe":{requires:["io-base","node-base"]},"io-xdr":{requires:["io-base","datatype-xml-parse"]},json:{use:["json-parse","json-stringify"]},"json-parse":{requires:["yui-base"]},"json-parse-shim":{condition:{name:"json-parse-shim",test:function(a){function b(a,b){return"ok"===a?!0:b}var c=a.config.global.JSON,d="[object JSON]"===Object.prototype.toString.call(c)&&c,e=a.config.useNativeJSONParse!==!1&&!!d;if(e)try{e=d.parse('{"ok":false}',b).ok}catch(f){e=!1}return!e},trigger:"json-parse"},requires:["json-parse"]},"json-stringify":{requires:["yui-base"]},"json-stringify-shim":{condition:{name:"json-stringify-shim",test:function(a){var b=a.config.global.JSON,c="[object JSON]"===Object.prototype.toString.call(b)&&b,d=a.config.useNativeJSONStringify!==!1&&!!c;if(d)try{d="0"===c.stringify(0)}catch(e){d=!1}return!d},trigger:"json-stringify"},requires:["json-stringify"]},jsonp:{requires:["get","oop"]},"jsonp-url":{requires:["jsonp"]},"lazy-model-list":{requires:["model-list"]},loader:{use:["loader-base","loader-rollup","loader-yui3"]},"loader-base":{requires:["get","features"]},"loader-rollup":{requires:["loader-base"]},"loader-yui3":{requires:["loader-base"]},matrix:{requires:["yui-base"]},model:{requires:["base-build","escape","json-parse"]},"model-list":{requires:["array-extras","array-invoke","arraylist","base-build","escape","json-parse","model"]},"model-sync-rest":{requires:["model","io-base","json-stringify"]},node:{use:["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"]},"node-base":{requires:["event-base","node-core","dom-base"]},"node-core":{requires:["dom-core","selector"]},"node-deprecated":{requires:["node-base"]},"node-event-delegate":{requires:["node-base","event-delegate"]},"node-event-html5":{requires:["node-base"]},"node-event-simulate":{requires:["node-base","event-simulate","gesture-simulate"]},"node-flick":{requires:["classnamemanager","transition","event-flick","plugin"],skinnable:!0},"node-focusmanager":{requires:["attribute","node","plugin","node-event-simulate","event-key","event-focus"]},"node-load":{requires:["node-base","io-base"]},"node-menunav":{requires:["node","classnamemanager","plugin","node-focusmanager"],skinnable:!0},"node-pluginhost":{requires:["node-base","pluginhost"]},"node-screen":{requires:["dom-screen","node-base"]},"node-scroll-info":{requires:["base-build","dom-screen","event-resize","node-pluginhost","plugin"]},"node-style":{requires:["dom-style","node-base"]},oop:{requires:["yui-base"]},overlay:{requires:["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain"],skinnable:!0},panel:{requires:["widget","widget-autohide","widget-buttons","widget-modality","widget-position","widget-position-align","widget-position-constrain","widget-stack","widget-stdmod"],skinnable:!0},parallel:{requires:["yui-base"]},pjax:{requires:["pjax-base","pjax-content"]},"pjax-base":{requires:["classnamemanager","node-event-delegate","router"]},"pjax-content":{requires:["io-base","node-base","router"]},"pjax-plugin":{requires:["node-pluginhost","pjax","plugin"]},plugin:{requires:["base-base"]},pluginhost:{use:["pluginhost-base","pluginhost-config"]},"pluginhost-base":{requires:["yui-base"]},"pluginhost-config":{requires:["pluginhost-base"]},profiler:{requires:["yui-base"]},promise:{requires:["timers"]},querystring:{use:["querystring-parse","querystring-stringify"]},"querystring-parse":{requires:["yui-base","array-extras"]},"querystring-parse-simple":{requires:["yui-base"]},"querystring-stringify":{requires:["yui-base"]},"querystring-stringify-simple":{requires:["yui-base"]},"queue-promote":{requires:["yui-base"]},"range-slider":{requires:["slider-base","slider-value-range","clickable-rail"]},recordset:{use:["recordset-base","recordset-sort","recordset-filter","recordset-indexer"]},"recordset-base":{requires:["base","arraylist"]},"recordset-filter":{requires:["recordset-base","array-extras","plugin"]},"recordset-indexer":{requires:["recordset-base","plugin"]},"recordset-sort":{requires:["arraysort","recordset-base","plugin"]},resize:{use:["resize-base","resize-proxy","resize-constrain"]},"resize-base":{requires:["base","widget","event","oop","dd-drag","dd-delegate","dd-drop"],skinnable:!0},"resize-constrain":{requires:["plugin","resize-base"]},"resize-plugin":{optional:["resize-constrain"],requires:["resize-base","plugin"]},"resize-proxy":{requires:["plugin","resize-base"]},router:{optional:["querystring-parse"],requires:["array-extras","base-build","history"]},scrollview:{requires:["scrollview-base","scrollview-scrollbars"]},"scrollview-base":{requires:["widget","event-gestures","event-mousewheel","transition"],skinnable:!0},"scrollview-base-ie":{condition:{name:"scrollview-base-ie",trigger:"scrollview-base",ua:"ie"},requires:["scrollview-base"]},"scrollview-list":{requires:["plugin","classnamemanager"],skinnable:!0},"scrollview-paginator":{requires:["plugin","classnamemanager"]},"scrollview-scrollbars":{requires:["classnamemanager","transition","plugin"],skinnable:!0},selector:{requires:["selector-native"]},"selector-css2":{condition:{name:"selector-css2",test:function(a){var b=a.config.doc,c=b&&!("querySelectorAll"in b);return c},trigger:"selector"},requires:["selector-native"]},"selector-css3":{requires:["selector-native","selector-css2"]},"selector-native":{requires:["dom-base"]},"series-area":{requires:["series-cartesian","series-fill-util"]},"series-area-stacked":{requires:["series-stacked","series-area"]},"series-areaspline":{requires:["series-area","series-curve-util"]},"series-areaspline-stacked":{requires:["series-stacked","series-areaspline"]},"series-bar":{requires:["series-marker","series-histogram-base"]},"series-bar-stacked":{requires:["series-stacked","series-bar"]},"series-base":{requires:["graphics","axis-base"]},"series-candlestick":{requires:["series-range"]},"series-cartesian":{requires:["series-base"]},"series-column":{requires:["series-marker","series-histogram-base"]},"series-column-stacked":{requires:["series-stacked","series-column"]},"series-combo":{requires:["series-cartesian","series-line-util","series-plot-util","series-fill-util"]},"series-combo-stacked":{requires:["series-stacked","series-combo"]},"series-combospline":{requires:["series-combo","series-curve-util"]},"series-combospline-stacked":{requires:["series-combo-stacked","series-curve-util"]},"series-curve-util":{},"series-fill-util":{},"series-histogram-base":{requires:["series-cartesian","series-plot-util"]},"series-line":{requires:["series-cartesian","series-line-util"]},"series-line-stacked":{requires:["series-stacked","series-line"]},"series-line-util":{},"series-marker":{requires:["series-cartesian","series-plot-util"]},"series-marker-stacked":{requires:["series-stacked","series-marker"]},"series-ohlc":{requires:["series-range"]},"series-pie":{requires:["series-base","series-plot-util"]},"series-plot-util":{},"series-range":{requires:["series-cartesian"]},"series-spline":{requires:["series-line","series-curve-util"]},"series-spline-stacked":{requires:["series-stacked","series-spline"]},"series-stacked":{requires:["axis-stacked"]},"shim-plugin":{requires:["node-style","node-pluginhost"]},slider:{use:["slider-base","slider-value-range","clickable-rail","range-slider"]},"slider-base":{requires:["widget","dd-constrain","event-key"],skinnable:!0},"slider-value-range":{requires:["slider-base"]},sortable:{requires:["dd-delegate","dd-drop-plugin","dd-proxy"]},"sortable-scroll":{requires:["dd-scroll","sortable"]},stylesheet:{requires:["yui-base"]},substitute:{optional:["dump"],requires:["yui-base"]},swf:{requires:["event-custom","node","swfdetect","escape"]},swfdetect:{requires:["yui-base"]},tabview:{requires:["widget","widget-parent","widget-child","tabview-base","node-pluginhost","node-focusmanager"],skinnable:!0},"tabview-base":{requires:["node-event-delegate","classnamemanager"]},"tabview-plugin":{requires:["tabview-base"]},template:{use:["template-base","template-micro"]},"template-base":{requires:["yui-base"]},"template-micro":{requires:["escape"]},test:{requires:["event-simulate","event-custom","json-stringify"]},"test-console":{requires:["console-filters","test","array-extras"],skinnable:!0},text:{use:["text-accentfold","text-wordbreak"]},"text-accentfold":{requires:["array-extras","text-data-accentfold"]},"text-data-accentfold":{requires:["yui-base"]},"text-data-wordbreak":{requires:["yui-base"]},"text-wordbreak":{requires:["array-extras","text-data-wordbreak"]},timers:{requires:["yui-base"]},transition:{requires:["node-style"]},"transition-timer":{condition:{name:"transition-timer",test:function(a){var b=a.config.doc,c=b?b.documentElement:null,d=!0;return c&&c.style&&(d=!("MozTransition"in c.style||"WebkitTransition"in c.style||"transition"in c.style)),d},trigger:"transition"},requires:["transition"]},tree:{requires:["base-build","tree-node"]},"tree-labelable":{requires:["tree"]},"tree-lazy":{requires:["base-pluginhost","plugin","tree"]},"tree-node":{},"tree-openable":{requires:["tree"]},"tree-selectable":{requires:["tree"]},"tree-sortable":{requires:["tree"]},uploader:{requires:["uploader-html5","uploader-flash"]},"uploader-flash":{requires:["swf","widget","base","cssbutton","node","event-custom","file-flash","uploader-queue"]},"uploader-html5":{requires:["widget","node-event-simulate","file-html5","uploader-queue"]},"uploader-queue":{requires:["base"]},view:{requires:["base-build","node-event-delegate"]},"view-node-map":{requires:["view"]},widget:{use:["widget-base","widget-htmlparser","widget-skin","widget-uievents"]},"widget-anim":{requires:["anim-base","plugin","widget"]},"widget-autohide":{requires:["base-build","event-key","event-outside","widget"]},"widget-base":{requires:["attribute","base-base","base-pluginhost","classnamemanager","event-focus","node-base","node-style"],skinnable:!0},"widget-base-ie":{condition:{name:"widget-base-ie",trigger:"widget-base",ua:"ie"},requires:["widget-base"]},"widget-buttons":{requires:["button-plugin","cssbutton","widget-stdmod"]},"widget-child":{requires:["base-build","widget"]},"widget-htmlparser":{requires:["widget-base"]},"widget-locale":{requires:["widget-base"]},"widget-modality":{requires:["base-build","event-outside","widget"],skinnable:!0},"widget-parent":{requires:["arraylist","base-build","widget"]},"widget-position":{requires:["base-build","node-screen","widget"]},"widget-position-align":{requires:["widget-position"]},"widget-position-constrain":{requires:["widget-position"]},"widget-skin":{requires:["widget-base"]},"widget-stack":{requires:["base-build","widget"],skinnable:!0},"widget-stdmod":{requires:["base-build","widget"]},"widget-uievents":{requires:["node-event-delegate","widget-base"]},yql:{requires:["oop"]},"yql-jsonp":{condition:{name:"yql-jsonp",test:function(a){return!a.UA.nodejs&&!a.UA.winjs},trigger:"yql",when:"after"},requires:["jsonp","jsonp-url"]},"yql-nodejs":{condition:{name:"yql-nodejs",trigger:"yql",ua:"nodejs",when:"after"}},"yql-winjs":{condition:{name:"yql-winjs",trigger:"yql",ua:"winjs",when:"after"}},yui:{},"yui-base":{},"yui-later":{requires:["yui-base"]},"yui-log":{requires:["yui-base"]},"yui-throttle":{requires:["yui-base"]}}),YUI.Env[a.version].md5="12bd02dfcbc39e6eebb7a8d96ada727c"},"3.10.1",{requires:["loader-base"]}),YUI.add("yui",function(){},"3.10.1",{use:["yui-base","get","features","intl-base","yui-log","yui-later","loader-base","loader-rollup","loader-yui3"]}),YUI().use("yuidoc-meta","api-list","history-hash","node-screen","node-style","pjax",function(a){var e,f,g,h,b=a.config.win,c=b.localStorage,d=a.one("#bd");a.getLocation().protocol.match(/^https?\:/)||(a.Router.html5=!1),f=a.Pjax.defaultRoute.concat(function(a,b,c){prettyPrint(),d.removeClass("loading"),c()}),e=new a.Pjax({container:"#docs-main",contentSelector:"#docs-main > .content",linkSelector:"#bd a",titleSelector:"#xhr-title",navigateOnHash:!0,root:"/",routes:[{path:"/(index.html)?",callbacks:f},{path:"/classes/:class.html*",callbacks:[f,"handleClasses"]},{path:"/files/*file",callbacks:[f,"handleFiles"]},{path:"/modules/:module.html*",callbacks:f}]}),e.checkVisibility=function(b){if(b||(b=h),b){var d,c=b.get("panelNode");d=c.all(".item,.index-item").some(function(a){return"none"!==a.getComputedStyle("display")?!0:void 0}),c.all(".no-visible-items").remove(),d||(a.one("#index .index-item")?c.append(' '):c.append('Some items are not shown due to the current visibility settings. Use the checkboxes at the upper right of this page to change the visibility settings.
')),a.all(".index-section").each(function(a){var b=0,c=0;a.all(".index-item").each(function(a){b+=1,"none"!==a.getComputedStyle("display")&&(c+=1)}),a.toggleClass("hidden",!c),a.toggleClass("no-columns",4>c)})}},e.initClassTabView=function(){a.all("#classdocs .api-class-tab").size()&&(g&&(g.destroy(),h=null),g=new a.TabView({srcNode:"#classdocs",on:{selectionChange:e.onTabSelectionChange}}),e.updateTabState(),g.render())},e.initLineNumbers=function(){var d,f,a=b.location.hash.substring(1),c=e.get("container");c.all(".linenums>li").each(function(a,b){a.set("id","l"+(b+1)),a.addClass("file-line"),d=!0}),d&&/^l\d+$/.test(a)&&(f=c.getById(a))&&b.scroll(0,f.getY())},e.initRoot=function(){var d,f,g,a=/^(?:classes|files|modules)$/,b=e._getPathRoot().split("/"),c=[];for(d=0,f=b.length;f>d;d+=1){if(g=b[d],g.match(a)){c.push("");break}c.push(g)}e.set("root",c.join("/"))},e.updateTabState=function(d){function l(){i.hasClass("protected")&&(a.one("#api-show-protected").set("checked",!0),e.updateVisibility()),i.hasClass("private")&&(a.one("#api-show-private").set("checked",!0),e.updateVisibility()),setTimeout(function(){var c=a.one("#classdocs").getById(f);b.scrollTo(0,c.getY()-70)},1)}var h,i,j,k,f=b.location.hash.substring(1);g&&(h="hashchange"!==d||f?c?c.getItem("tab_"+e.getPath())||"index":"index":"index",f&&(i=a.one("#classdocs").getById(f))?((k=i.ancestor(".api-class-tabpanel",!0))&&(j=a.one("#classdocs .api-class-tab."+k.get("id")))&&(g.get("rendered")?a.Widget.getByNode(j).set("selected",1):j.addClass("yui3-tab-selected")),i&&(g.get("rendered")?l():g.once("renderedChange",l))):(j=a.one("#classdocs .api-class-tab."+h),g.get("rendered")?a.Widget.getByNode(j).set("selected",1):j.addClass("yui3-tab-selected")))},e.updateVisibility=function(){var b=e.get("container");b.toggleClass("hide-inherited",!a.one("#api-show-inherited").get("checked")),b.toggleClass("show-deprecated",a.one("#api-show-deprecated").get("checked")),b.toggleClass("show-protected",a.one("#api-show-protected").get("checked")),b.toggleClass("show-private",a.one("#api-show-private").get("checked")),e.checkVisibility()},e.handleClasses=function(a,b,c){var d=b.ioResponse.status;(!d||d>=200&&300>d)&&e.initClassTabView(),c()},e.handleFiles=function(a,b,c){var d=b.ioResponse.status;(!d||d>=200&&300>d)&&e.initLineNumbers(),c()},e.onNavigate=function(a){var g,c=a.hash,f=a.originEvent&&a.originEvent.target;return c?(g=f&&f.ancestor(".yui3-tab",!0),c===b.location.hash?e.updateTabState("hashchange"):g||(b.location.hash=c),a.preventDefault(),void 0):(this.set("scrollToTop",!a.url.match(/#.+$/)),d.addClass("loading"),void 0)},e.onOptionClick=function(){e.updateVisibility()},e.onTabSelectionChange=function(a){var b=a.newVal,d=b.get("contentBox").getAttribute("href").substring(1);h=b,a.prevVal&&c&&c.setItem("tab_"+e.getPath(),d),e.checkVisibility(b)},e.on("navigate",e.onNavigate),e.initRoot(),e.upgrade(),e.initClassTabView(),e.initLineNumbers(),e.updateVisibility(),a.APIList.rootPath=e.get("root"),a.one("#api-options").delegate("click",e.onOptionClick,"input"),a.on("hashchange",function(){e.updateTabState("hashchange")},b)}),YUI.add("api-search",function(a){var b=a.Lang,c=a.Node,d=a.Array;a.APISearch=a.Base.create("apiSearch",a.Base,[a.AutoCompleteBase],{RESULT_TEMPLATE:'This class doesn\'t provide any methods, properties, attributes, or events.
',initializer:function(){this._bindUIACBase(),this._syncUIACBase()},_apiResultFilter:function(a,b){return d.filter(b,function(a){return"component"===a.raw.resultType?!1:a})},_apiResultFormatter:function(e,f){return d.map(f,function(d){var e=a.merge(d.raw),f=e.description||"";return f=c.create(" {name}
{resultType}{description}{class}"+f+"").get("text"),f=f.length>65?a.Escape.html(f.substr(0,65))+" …":a.Escape.html(f),e["class"]||(e["class"]=""),e.description=f,e.name=d.highlighted,b.sub(this.RESULT_TEMPLATE,e)},this)},_apiTextLocator:function(a){return a.displayName||a.name}},{ATTRS:{resultFormatter:{valueFn:function(){return this._apiResultFormatter}},resultFilters:{valueFn:function(){return this._apiResultFilter}},resultHighlighter:{value:"phraseMatch"},resultListLocator:{value:"data.results"},resultTextLocator:{valueFn:function(){return this._apiTextLocator}},source:{value:"/api/v1/search?q={query}&count={maxResults}"}}})},"3.4.0",{requires:["autocomplete-base","autocomplete-highlighters","autocomplete-sources","escape"]}),YUI.add("api-list",function(a){function o(){return"classes"===j.get("queryType")?e:g}function p(e){var f=a.one(a.config.doc.createDocumentFragment()),g=o(),h=j.get("queryType"),i="classes"===h?"class":"module";e.results.length?c.each(e.results,function(a){f.append(b.sub(n,{rootPath:d.rootPath,displayName:j.getDisplayName(a.highlighted),name:a.text,typePlural:h,typeSingular:i}))}):f.append('"),g.empty(!0),g.append(f),m.refresh()}function q(){m.refresh()}function r(a){var b=a.target;b.test("input,select,textarea")||b.get("isContentEditable")||(a.preventDefault(),f.focus(),m.refresh())}function s(b){var d=a.one(a.config.doc.createDocumentFragment());b.results.length?c.each(b.results,function(a){d.append(a.display)}):d.append(''),m.refresh()}function t(a){var b=a.newVal,c=b.get("label").toLowerCase();switch(i.selected={index:b.get("index"),name:c,tab:b},c){case"classes":case"modules":j.setAttrs({minQueryLength:0,queryType:c}),k.set("minQueryLength",-1),a.prevVal&&j.sendRequest(j.get("value"));break;case"everything":j.set("minQueryLength",-1),k.set("minQueryLength",1),k.get("value")?k.sendRequest(k.get("value")):f.focus();break;default:j.set("minQueryLength",-1),k.set("minQueryLength",-1)}m&&setTimeout(function(){m.refresh()},1)}function u(b){var c=i.selected.index;if(b.ctrlKey||b.metaKey)switch(b.preventDefault(),b.keyCode){case 37:c>0&&(l.selectChild(c-1),f.focus());break;case 39:c{displayName}';a.before(function(b){return b.altKey||b.ctrlKey||b.metaKey||b.shiftKey?new a.Do.Prevent:void 0},m,"_focusPrevious",m),a.before(function(b){return b.altKey||b.ctrlKey||b.metaKey||b.shiftKey?new a.Do.Prevent:void 0},m,"_focusNext",m),l.each(function(a,b){var c=a.get("label").toLowerCase();i[c]={index:b,name:c,tab:a}}),h.on("key",u,"down:37,39"),a.one(a.config.doc).on("key",r,"down:83"),f.on("focus",function(){m.set("activeDescendant",f)}),l.get("panelNode").all("a").each(function(a){a.setAttribute("href",a.get("href"))})},"3.4.0",{requires:["api-filter","api-search","event-key","node-focusmanager","tabview"]}),YUI.add("api-filter",function(a){a.APIFilter=a.Base.create("apiFilter",a.Base,[a.AutoCompleteBase],{initializer:function(){this._bindUIACBase(),this._syncUIACBase()},getDisplayName:function(b){return a.each(a.YUIDoc.meta.allModules,function(a){a.name===b&&a.displayName&&(b=a.displayName)}),b}},{ATTRS:{resultHighlighter:{value:"phraseMatch"},queryType:{value:"classes"},source:{valueFn:function(){var b=this;return function(c){var d=a.YUIDoc.meta[b.get("queryType")],e=[];return a.each(d,function(a){a.toLowerCase().indexOf(c.toLowerCase())>-1&&e.push(a)}),e}}}}})},"3.4.0",{requires:["autocomplete-base","autocomplete-highlighters","autocomplete-sources"]}),window.PR_SHOULD_USE_CONTINUATION=!0;var prettyPrintOne,prettyPrint;!function(){function D(a){function i(a){var b=a.charCodeAt(0);if(92!==b)return b;var c=a.charAt(1);return b=h[c],b?b:c>="0"&&"7">=c?parseInt(a.substring(1),8):"u"===c||"x"===c?parseInt(a.substring(2),16):a.charCodeAt(1)}function j(a){if(32>a)return(16>a?"\\x0":"\\x")+a.toString(16);var b=String.fromCharCode(a);return"\\"===b||"-"===b||"]"===b||"^"===b?"\\"+b:b}function k(a){var b=a.substring(1,a.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),c=[],d="^"===b[0],e=["["];d&&e.push("^");for(var f=d?1:0,g=b.length;g>f;++f){var h=b[f];if(/\\[bdsw]/i.test(h))e.push(h);else{var l,k=i(h);g>f+2&&"-"===b[f+1]?(l=i(b[f+2]),f+=2):l=k,c.push([k,l]),65>l||k>122||(65>l||k>90||c.push([32|Math.max(65,k),32|Math.min(l,90)]),97>l||k>122||c.push([-33&Math.max(97,k),-33&Math.min(l,122)]))}}c.sort(function(a,b){return a[0]-b[0]||b[1]-a[1]});for(var m=[],n=[],f=0;f o[0]&&(o[1]+1>o[0]&&e.push("-"),e.push(j(o[1])))}return e.push("]"),e.join("")}function l(a){for(var d=a.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),e=d.length,f=[],g=0,h=0;e>g;++g){var i=d[g];if("("===i)++h;else if("\\"===i.charAt(0)){var l=+i.substring(1);l&&(h>=l?f[l]=-1:d[g]=j(l))}}for(var g=1;g g;++g){var i=d[g];if("("===i)++h,f[h]||(d[g]="(?:");else if("\\"===i.charAt(0)){var l=+i.substring(1);l&&h>=l&&(d[g]="\\"+f[l])}}for(var g=0;e>g;++g)"^"===d[g]&&"^"!==d[g+1]&&(d[g]="");if(a.ignoreCase&&c)for(var g=0;e>g;++g){var i=d[g],m=i.charAt(0);i.length>=2&&"["===m?d[g]=k(i):"\\"!==m&&(d[g]=i.replace(/[a-zA-Z]/g,function(a){var b=a.charCodeAt(0);return"["+String.fromCharCode(-33&b,32|b)+"]"}))}return d.join("")}for(var b=0,c=!1,d=!1,e=0,f=a.length;f>e;++e){var g=a[e];if(g.ignoreCase)d=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){c=!0,d=!1;break}}for(var h={b:8,t:9,n:10,v:11,f:12,r:13},m=[],e=0,f=a.length;f>e;++e){var g=a[e];if(g.global||g.multiline)throw new Error(""+g);m.push("(?:"+l(g)+")")}return new RegExp(m.join("|"),d?"gi":"g")}function E(a,b){function h(a){switch(a.nodeType){case 1:if(c.test(a.className))return;for(var i=a.firstChild;i;i=i.nextSibling)h(i);var j=a.nodeName.toLowerCase();("br"===j||"li"===j)&&(d[g]="\n",f[g<<1]=e++,f[1|g++<<1]=a);break;case 3:case 4:var k=a.nodeValue;k.length&&(k=b?k.replace(/\r\n?/g,"\n"):k.replace(/[ \t\r\n]+/g," "),d[g]=k,f[g<<1]=e,e+=k.length,f[1|g++<<1]=a)}}var c=/(?:^|\s)nocode(?:\s|$)/,d=[],e=0,f=[],g=0;return h(a),{sourceCode:d.join("").replace(/\n$/,""),spans:f}}function F(a,b,c,d){if(b){var e={sourceCode:b,basePos:a};c(e),d.push.apply(d,e.decorations)}}function H(a){for(var b=void 0,c=a.firstChild;c;c=c.nextSibling){var d=c.nodeType;b=1===d?b?a:c:3===d?G.test(c.nodeValue)?a:b:b}return b===a?void 0:b}function I(a,b){var d,c={};!function(){for(var e=a.concat(b),f=[],g={},h=0,i=e.length;i>h;++h){var j=e[h],k=j[3];if(k)for(var l=k.length;--l>=0;)c[k.charAt(l)]=j;var m=j[1],n=""+m;g.hasOwnProperty(n)||(f.push(m),g[n]=null)}f.push(/[\0-\uffff]/),d=D(f)}();var e=b.length,f=function(a){for(var g=a.sourceCode,h=a.basePos,i=[h,v],j=0,k=g.match(d)||[],l={},m=0,n=k.length;n>m;++m){var r,o=k[m],p=l[o],q=void 0;if("string"==typeof p)r=!1;else{var s=c[o.charAt(0)];if(s)q=o.match(s[1]),p=s[0];else{for(var t=0;e>t;++t)if(s=b[t],q=o.match(s[1])){p=s[0];break}q||(p=v)}r=p.length>=5&&"lang-"===p.substring(0,5),!r||q&&"string"==typeof q[1]||(r=!1,p=y),r||(l[o]=p)}var u=j;if(j+=o.length,r){var w=q[1],x=o.indexOf(w),z=x+w.length;q[2]&&(z=o.length-q[2].length,x=z-w.length);var A=p.substring(5);F(h+u,o.substring(0,x),f,i),F(h+u+x,w,P(A,w),i),F(h+u+z,o.substring(z),f,i)}else i.push(h+u,p)}a.decorations=i};return f}function J(a){var b=[],c=[];a.tripleQuotedStrings?b.push([p,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):a.multiLineStrings?b.push([p,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):b.push([p,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),a.verbatimStrings&&c.push([p,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var d=a.hashComments;if(d&&(a.cStyleComments?(d>1?b.push([r,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):b.push([r,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),c.push([p,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):b.push([r,/^#[^\r\n]*/,null,"#"])),a.cStyleComments&&(c.push([r,/^\/\/[^\r\n]*/,null]),c.push([r,/^\/\*[\s\S]*?(?:\*\/|$)/,null])),a.regexLiterals){var e="/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/"; +c.push(["lang-regex",new RegExp("^"+C+"("+e+")")])}var f=a.types;f&&c.push([s,f]);var g=(""+a.keywords).replace(/^ | $/g,"");g.length&&c.push([q,new RegExp("^(?:"+g.replace(/[\s,]+/g,"|")+")\\b"),null]),b.push([v,/^\s+/,null," \r\n \xa0"]);var h=/^.[^\s\w\.$@\'\"\`\/\\]*/;return c.push([t,/^@[a-z_$][a-z_$@0-9]*/i,null],[s,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[t,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[u,h,null]),I(b,c)}function L(a,b,c){function i(a){switch(a.nodeType){case 1:if(d.test(a.className))break;if("br"===a.nodeName)j(a),a.parentNode&&a.parentNode.removeChild(a);else for(var b=a.firstChild;b;b=b.nextSibling)i(b);break;case 3:case 4:if(c){var g=a.nodeValue,h=g.match(e);if(h){var k=g.substring(0,h.index);a.nodeValue=k;var l=g.substring(h.index+h[0].length);if(l){var m=a.parentNode;m.insertBefore(f.createTextNode(l),a.nextSibling)}j(a),k||a.parentNode.removeChild(a)}}}}function j(a){function b(a,c){var d=c?a.cloneNode(!1):a,e=a.parentNode;if(e){var f=b(e,1),g=a.nextSibling;f.appendChild(d);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var d,c=b(a.nextSibling,0);(d=c.parentNode)&&1===d.nodeType;)c=d;h.push(c)}for(var d=/(?:^|\s)nocode(?:\s|$)/,e=/\r\n?|\n/,f=a.ownerDocument,g=f.createElement("li");a.firstChild;)g.appendChild(a.firstChild);for(var h=[g],k=0;k k;++k)g=h[k],g.className="L"+(k+m)%10,g.firstChild||g.appendChild(f.createTextNode("\xa0")),l.appendChild(g);a.appendChild(l)}function M(a){var b=/\bMSIE\s(\d+)/.exec(navigator.userAgent);b=b&&+b[1]<=8;var c=/\n/g,d=a.sourceCode,e=d.length,f=0,g=a.spans,h=g.length,i=0,j=a.decorations,k=j.length,l=0;j[k]=e;var m,n;for(n=m=0;k>n;)j[n]!==j[n+2]?(j[m++]=j[n++],j[m++]=j[n++]):n+=2;for(k=m,n=m=0;k>n;){for(var o=j[n],p=j[n+1],q=n+2;k>=q+2&&j[q+1]===p;)q+=2;j[m++]=o,j[m++]=p,n=q}k=j.length=m;var s,r=a.sourceNode;r&&(s=r.style.display,r.style.display="none");try{for(;h>i;){g[i];var y,v=g[i+2]||e,w=j[l+2]||e,q=Math.min(v,w),x=g[i+1];if(1!==x.nodeType&&(y=d.substring(f,q))){b&&(y=y.replace(c,"\r")),x.nodeValue=y;var z=x.ownerDocument,A=z.createElement("span");A.className=j[l+1];var B=x.parentNode;B.replaceChild(A,x),A.appendChild(x),v>f&&(g[i+1]=x=z.createTextNode(d.substring(q,v)),B.insertBefore(x,A.nextSibling))}f=q,f>=v&&(i+=2),f>=w&&(l+=2)}}finally{r&&(r.style.display=s)}}function O(b,c){for(var d=c.length;--d>=0;){var e=c[d];N.hasOwnProperty(e)?a.console&&console.warn("cannot override language handler %s",e):N[e]=b}}function P(a,b){return a&&N.hasOwnProperty(a)||(a=/^\s*g;++g)e.push(d[f][g]);d=null;var i=Date;i.now||(i={now:function(){return+new Date}});var k,j=0,l=/\blang(?:uage)?-([\w.]+)(?!\S)/,m=/\bprettyprint\b/,n=/\bprettyprinted\b/,o=/pre|xmp/i,p=/^code$/i,q=/^(?:pre|code|xmp)$/i;r()}var a=window,b=["break,continue,do,else,for,if,return,while"],c=[b,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],d=[c,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],e=[d,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],f=[d,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],g=[f,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],h="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",i=[d,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],j="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",k=[b,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],l=[b,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],m=[b,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],n=[e,g,i,j+k,l,m],o=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,p="str",q="kwd",r="com",s="typ",t="lit",u="pun",v="pln",w="tag",x="dec",y="src",z="atn",A="atv",B="nocode",C="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*",G=/\S/,K=J({keywords:n,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),N={};O(K,["default-code"]),O(I([],[[v,/^[^]+/],[x,/^]*(?:>|$)/],[r,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[u,/^(?:<[%?]|[%?]>)/],["lang-",/^ ]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^","script")}}),i("innerhtml","table")||(n.tbody=function(b,c){var e=d.create(q+b+r,c),f=a.DOM._children(e,"tbody")[0];return e.children.length>1&&f&&!p.test(b)&&f.parentNode.removeChild(f),e}),i("innerhtml-div","script")||(n.script=function(a,b){var c=b.createElement("div");return c.innerHTML="-"+a,c.removeChild(c.firstChild),c},n.link=n.style=n.script),i("innerhtml-div","tr")||(a.mix(n,{option:function(a,b){return d.create('",b)},tr:function(a,b){return d.create(""+a+"",b)},td:function(a,b){return d.create(" "+a+" ",b)},col:function(a,b){return d.create(""+a+" ",b)},tbody:"table"}),a.mix(n,{legend:"fieldset",th:n.td,thead:n.tbody,tfoot:n.tbody,caption:n.tbody,colgroup:n.tbody,optgroup:n.option})),d.creators=n,a.mix(a.DOM,{setWidth:function(b,c){a.DOM._setSize(b,"width",c)},setHeight:function(b,c){a.DOM._setSize(b,"height",c)},_setSize:function(a,b,c){c=c>0?c:0;var d=0;a.style[b]=c+"px",d="height"===b?a.offsetHeight:a.offsetWidth,d>c&&(c-=d-c,0>c&&(c=0),a.style[b]=c+"px")}})},"3.10.1",{requires:["dom-core"]}),YUI.add("selector-native",function(a){!function(a){a.namespace("Selector");var b="compareDocumentPosition",c="ownerDocument",d={_types:{esc:{token:"\ue000",re:/\\[:\[\]\(\)#\.\'\>+~"]/gi},attr:{token:"\ue001",re:/(\[[^\]]*\])/g},pseudo:{token:"\ue002",re:/(\([^\)]*\))/g}},useNative:!0,_escapeId:function(a){return a&&(a=a.replace(/([:\[\]\(\)#\.'<>+~"])/g,"\\$1")),a},_compare:"sourceIndex"in a.config.doc.documentElement?function(a,b){var c=a.sourceIndex,d=b.sourceIndex;return c===d?0:c>d?1:-1}:a.config.doc.documentElement[b]?function(a,c){return 4&a[b](c)?-1:1}:function(a,b){var d,e,f;return a&&b&&(d=a[c].createRange(),d.setStart(a,0),e=b[c].createRange(),e.setStart(b,0),f=d.compareBoundaryPoints(1,e)),f},_sort:function(b){return b&&(b=a.Array(b,0,!0),b.sort&&b.sort(d._compare)),b},_deDupe:function(a){var c,d,b=[];for(c=0;d=a[c++];)d._found||(b[b.length]=d,d._found=!0);for(c=0;d=b[c++];)d._found=null,d.removeAttribute("_found");return b},query:function(b,c,e,f){c=c||a.config.doc;var j,k,l,g=[],h=a.Selector.useNative&&a.config.doc.querySelector&&!f,i=[[b,c]],m=h?a.Selector._nativeQuery:a.Selector._bruteQuery;if(b&&m){for(!f&&(!h||c.tagName)&&(i=d._splitQueries(b,c)),l=0;j=i[l++];)k=m(j[0],j[1],e),e||(k=a.Array(k,0,!0)),k&&(g=g.concat(k));i.length>1&&(g=d._sort(d._deDupe(g)))}return e?g[0]||null:g},_replaceSelector:function(b){var e,f,c=a.Selector._parse("esc",b);return b=a.Selector._replace("esc",b),f=a.Selector._parse("pseudo",b),b=d._replace("pseudo",b),e=a.Selector._parse("attr",b),b=a.Selector._replace("attr",b),{esc:c,attrs:e,pseudos:f,selector:b}},_restoreSelector:function(b){var c=b.selector;return c=a.Selector._restore("attr",c,b.attrs),c=a.Selector._restore("pseudo",c,b.pseudos),c=a.Selector._restore("esc",c,b.esc)},_replaceCommas:function(b){var c=a.Selector._replaceSelector(b),b=c.selector;return b&&(b=b.replace(/,/g,"\ue007"),c.selector=b,b=a.Selector._restoreSelector(c)),b},_splitQueries:function(b,c){b.indexOf(",")>-1&&(b=a.Selector._replaceCommas(b));var g,h,i,d=b.split("\ue007"),e=[],f="";if(c)for(1===c.nodeType&&(g=a.Selector._escapeId(a.DOM.getId(c)),g||(g=a.guid(),a.DOM.setId(c,g)),f='[id="'+g+'"] '),h=0,i=d.length;i>h;++h)b=f+d[h],e.push([b,c]);return e},_nativeQuery:function(b,c,d){if(a.UA.webkit&&b.indexOf(":checked")>-1&&a.Selector.pseudos&&a.Selector.pseudos.checked)return a.Selector.query(b,c,d,!0);try{return c["querySelector"+(d?"":"All")](b)}catch(e){return a.Selector.query(b,c,d,!0)}},filter:function(b,c){var e,f,d=[];if(b&&c)for(e=0;f=b[e++];)a.Selector.test(f,c)&&(d[d.length]=f);return d},test:function(b,d,e){var h,i,j,k,l,m,n,o,p,f=!1,g=!1;if(b&&b.tagName)if("function"==typeof d)f=d.call(b,b);else{for(h=d.split(","),!e&&!a.DOM.inDoc(b)&&(i=b.parentNode,i?e=i:(l=b[c].createDocumentFragment(),l.appendChild(b),e=l,g=!0)),e=e||b[c],m=a.Selector._escapeId(a.DOM.getId(b)),m||(m=a.guid(),a.DOM.setId(b,m)),n=0;p=h[n++];){for(p+='[id="'+m+'"]',k=a.Selector.query(p,e),o=0;j=k[o++];)if(j===b){f=!0;break}if(f)break}g&&l.removeChild(b)}return f},ancestor:function(b,c,d){return a.DOM.ancestor(b,function(b){return a.Selector.test(b,c)},d)},_parse:function(b,c){return c.match(a.Selector._types[b].re)},_replace:function(b,c){var d=a.Selector._types[b];return c.replace(d.re,d.token)},_restore:function(b,c,d){if(d){var f,g,e=a.Selector._types[b].token;for(f=0,g=d.length;g>f;++f)c=c.replace(e,d[f])}return c}};a.mix(a.Selector,d,!0)}(a)},"3.10.1",{requires:["dom-base"]}),YUI.add("selector",function(){},"3.10.1",{requires:["selector-native"]}),YUI.add("node-core",function(a){var c=".",d="nodeName",e="nodeType",f="ownerDocument",h="_yuid",j=Array.prototype.slice,k=a.DOM,l=function(b){if(!this.getDOMNode)return new l(b);if("string"==typeof b&&(b=l._fromString(b),!b))return null;var c=9!==b.nodeType?b.uniqueID:b[h];c&&l._instances[c]&&l._instances[c]._node!==b&&(b[h]=null),c=c||a.stamp(b),c||(c=a.guid()),this[h]=c,this._node=b,this._stateProxy=b,this._initPlugins&&this._initPlugins()},m=function(b){var c=null;return b&&(c="string"==typeof b?function(c){return a.Selector.test(c,b)}:function(c){return b(a.one(c))}),c};l.ATTRS={},l.DOM_EVENTS={},l._fromString=function(b){return b&&(b=0===b.indexOf("doc")?a.config.doc:0===b.indexOf("win")?a.config.win:a.Selector.query(b,null,!0)),b||null},l.NAME="node",l.re_aria=/^(?:role$|aria-)/,l.SHOW_TRANSITION="fadeIn",l.HIDE_TRANSITION="fadeOut",l._instances={},l.getDOMNode=function(a){return a?a.nodeType?a:a._node||null:null},l.scrubVal=function(b,c){return b?("object"==typeof b||"function"==typeof b)&&(e in b||k.isWindow(b)?b=a.one(b):(b.item&&!b._nodes||b[0]&&b[0][e])&&(b=a.all(b))):"undefined"==typeof b?b=c:null===b&&(b=null),b},l.addMethod=function(a,b){a&&b&&"function"==typeof b&&(l.prototype[a]=function(){var d,a=j.call(arguments),c=this;return a[0]&&a[0]._node&&(a[0]=a[0]._node),a[1]&&a[1]._node&&(a[1]=a[1]._node),a.unshift(c._node),d=b.apply(c,a),d&&(d=l.scrubVal(d,c)),"undefined"!=typeof d||(d=c),d})},l.importMethod=function(b,c,d){"string"==typeof c?(d=d||c,l.addMethod(d,b[c],b)):a.Array.each(c,function(a){l.importMethod(b,a)})},l.one=function(b){var d,e,c=null;if(b){if("string"==typeof b){if(b=l._fromString(b),!b)return null}else if(b.getDOMNode)return b;(b.nodeType||a.DOM.isWindow(b))&&(e=b.uniqueID&&9!==b.nodeType?b.uniqueID:b._yuid,c=l._instances[e],d=c?c._node:null,(!c||d&&b!==d)&&(c=new l(b),11!=b.nodeType&&(l._instances[c[h]]=c)))}return c},l.DEFAULT_SETTER=function(b,d){var f,e=this._stateProxy;return b.indexOf(c)>-1?(f=b,b=b.split(c),a.Object.setValue(e,b,d)):"undefined"!=typeof e[b]&&(e[b]=d),d},l.DEFAULT_GETTER=function(b){var e,d=this._stateProxy;return b.indexOf&&b.indexOf(c)>-1?e=a.Object.getValue(d,b.split(c)):"undefined"!=typeof d[b]&&(e=d[b]),e},a.mix(l.prototype,{DATA_PREFIX:"data-",toString:function(){var c,e,f,a=this[h]+": not bound to a node",b=this._node;return b&&(c=b.attributes,e=c&&c.id?b.getAttribute("id"):null,f=c&&c.className?b.getAttribute("className"):null,a=b[d],e&&(a+="#"+e),f&&(a+="."+f.replace(" ",".")),a+=" "+this[h]),a},get:function(a){var b;return b=this._getAttr?this._getAttr(a):this._get(a),b?b=l.scrubVal(b,this):null===b&&(b=null),b},_get:function(a){var c,b=l.ATTRS[a];return c=b&&b.getter?b.getter.call(this):l.re_aria.test(a)?this._node.getAttribute(a,2):l.DEFAULT_GETTER.apply(this,arguments)},set:function(a,b){var c=l.ATTRS[a];return this._setAttr?this._setAttr.apply(this,arguments):c&&c.setter?c.setter.call(this,b,a):l.re_aria.test(a)?this._node.setAttribute(a,b):l.DEFAULT_SETTER.apply(this,arguments),this},setAttrs:function(b){return this._setAttrs?this._setAttrs(b):a.Object.each(b,function(a,b){this.set(b,a)},this),this},getAttrs:function(b){var c={};return this._getAttrs?this._getAttrs(b):a.Array.each(b,function(a){c[a]=this.get(a)},this),c},compareTo:function(a){var b=this._node;return a&&a._node&&(a=a._node),b===a},inDoc:function(a){var b=this._node;return a=a?a._node||a:b[f],a.documentElement?k.contains(a.documentElement,b):void 0},getById:function(b){var c=this._node,d=k.byId(b,c[f]);return d=d&&k.contains(c,d)?a.one(d):null},ancestor:function(b,c,d){return 2===arguments.length&&("string"==typeof c||"function"==typeof c)&&(d=c),a.one(k.ancestor(this._node,m(b),c,m(d)))},ancestors:function(b,c,d){return 2===arguments.length&&("string"==typeof c||"function"==typeof c)&&(d=c),a.all(k.ancestors(this._node,m(b),c,m(d)))},previous:function(b,c){return a.one(k.elementByAxis(this._node,"previousSibling",m(b),c))},next:function(b,c){return a.one(k.elementByAxis(this._node,"nextSibling",m(b),c))},siblings:function(b){return a.all(k.siblings(this._node,m(b)))},one:function(b){return a.one(a.Selector.query(b,this._node,!0))},all:function(b){var c;return this._node&&(c=a.all(a.Selector.query(b,this._node)),c._query=b,c._queryRoot=this._node),c||a.all([])},test:function(b){return a.Selector.test(this._node,b)},remove:function(a){var b=this._node;return b&&b.parentNode&&b.parentNode.removeChild(b),a&&this.destroy(),this},replace:function(a){var b=this._node;return"string"==typeof a&&(a=l.create(a)),b.parentNode.replaceChild(l.getDOMNode(a),b),this},replaceChild:function(b,c){return"string"==typeof b&&(b=k.create(b)),a.one(this._node.replaceChild(l.getDOMNode(b),l.getDOMNode(c)))},destroy:function(b){var d,c=a.config.doc.uniqueID?"uniqueID":"_yuid";this.purge(),this.unplug&&this.unplug(),this.clearData(),b&&a.NodeList.each(this.all("*"),function(b){d=l._instances[b[c]],d?d.destroy():a.Event.purgeElement(b)}),this._node=null,this._stateProxy=null,delete l._instances[this._yuid]},invoke:function(a,b,c,d,e,f){var h,g=this._node;return b&&b._node&&(b=b._node),c&&c._node&&(c=c._node),h=g[a](b,c,d,e,f),l.scrubVal(h,this)},swap:a.config.doc.documentElement.swapNode?function(a){this._node.swapNode(l.getDOMNode(a))}:function(a){a=l.getDOMNode(a);var b=this._node,c=a.parentNode,d=a.nextSibling;return d===b?c.insertBefore(b,a):a===b.nextSibling?c.insertBefore(a,b):(b.parentNode.replaceChild(a,b),k.addHTML(c,b,d)),this},hasMethod:function(a){var b=this._node;return!(!(b&&a in b&&"unknown"!=typeof b[a])||"function"!=typeof b[a]&&1!==String(b[a]).indexOf("function"))},isFragment:function(){return 11===this.get("nodeType")},empty:function(){return this.get("childNodes").remove().destroy(!0),this},getDOMNode:function(){return this._node}},!0),a.Node=l,a.one=l.one;var n=function(b){var c=[];b&&("string"==typeof b?(this._query=b,b=a.Selector.query(b)):b.nodeType||k.isWindow(b)?b=[b]:b._node?b=[b._node]:b[0]&&b[0]._node?(a.Array.each(b,function(a){a._node&&c.push(a._node)}),b=c):b=a.Array(b,0,!0)),this._nodes=b||[]};n.NAME="NodeList",n.getDOMNodes=function(a){return a&&a._nodes?a._nodes:a},n.each=function(b,c,d){var e=b._nodes;e&&e.length&&a.Array.each(e,c,d||b)},n.addMethod=function(b,c,d){b&&c&&(n.prototype[b]=function(){var b=[],e=arguments;return a.Array.each(this._nodes,function(f){var i,j,g=f.uniqueID&&9!==f.nodeType?"uniqueID":"_yuid",h=a.Node._instances[f[g]];h||(h=n._getTempNode(f)),i=d||h,j=c.apply(i,e),void 0!==j&&j!==h&&(b[b.length]=j)}),b.length?b:this})},n.importMethod=function(b,c,d){"string"==typeof c?(d=d||c,n.addMethod(c,b[c])):a.Array.each(c,function(a){n.importMethod(b,a)})},n._getTempNode=function(b){var c=n._tempNode;return c||(c=a.Node.create(""),n._tempNode=c),c._node=b,c._stateProxy=b,c},a.mix(n.prototype,{_invoke:function(a,b,c){var d=c?[]:this;return this.each(function(e){var f=e[a].apply(e,b);c&&d.push(f)}),d},item:function(b){return a.one((this._nodes||[])[b])},each:function(b,c){var d=this;return a.Array.each(this._nodes,function(e,f){return e=a.one(e),b.call(c||e,e,f,d)}),d},batch:function(b,c){var d=this;return a.Array.each(this._nodes,function(e,f){var g=a.Node._instances[e[h]];return g||(g=n._getTempNode(e)),b.call(c||g,g,f,d)}),d},some:function(b,c){var d=this;return a.Array.some(this._nodes,function(e,f){return e=a.one(e),c=c||e,b.call(c,e,f,d)})},toFrag:function(){return a.one(a.DOM._nl2frag(this._nodes))},indexOf:function(b){return a.Array.indexOf(this._nodes,a.Node.getDOMNode(b))},filter:function(b){return a.all(a.Selector.filter(this._nodes,b))},modulus:function(b,c){c=c||0;var d=[];return n.each(this,function(a,e){e%b===c&&d.push(a)}),a.all(d)},odd:function(){return this.modulus(2,1)},even:function(){return this.modulus(2)},destructor:function(){},refresh:function(){var c=this._nodes,d=this._query,e=this._queryRoot;return d&&(e||c&&c[0]&&c[0].ownerDocument&&(e=c[0].ownerDocument),this._nodes=a.Selector.query(d,e)),this},size:function(){return this._nodes.length},isEmpty:function(){return this._nodes.length<1},toString:function(){var e,a="",b=this[h]+": not bound to any nodes",c=this._nodes;return c&&c[0]&&(e=c[0],a+=e[d],e.id&&(a+="#"+e.id),e.className&&(a+="."+e.className.replace(" ",".")),c.length>1&&(a+="...["+c.length+" items]")),a||b},getDOMNodes:function(){return this._nodes}},!0),n.importMethod(a.Node.prototype,["destroy","empty","remove","set"]),n.prototype.get=function(b){var g,h,c=[],d=this._nodes,e=!1,f=n._getTempNode;return d[0]&&(g=a.Node._instances[d[0]._yuid]||f(d[0]),h=g._get(b),h&&h.nodeType&&(e=!0)),a.Array.each(d,function(d){g=a.Node._instances[d._yuid],g||(g=f(d)),h=g._get(b),e||(h=a.Node.scrubVal(h,g)),c.push(h)}),e?a.all(c):c},a.NodeList=n,a.all=function(a){return new n(a)},a.Node.all=a.all;var o=a.NodeList,p=Array.prototype,q={concat:1,pop:0,push:0,shift:0,slice:1,splice:1,unshift:0};a.Object.each(q,function(b,c){o.prototype[c]=function(){for(var f,g,d=[],e=0;"undefined"!=typeof(f=arguments[e++]);)d.push(f._node||f._nodes||f);return g=p[c].apply(this._nodes,d),g=b?a.all(g):a.Node.scrubVal(g)}}),a.Array.each(["removeChild","hasChildNodes","cloneNode","hasAttribute","scrollIntoView","getElementsByTagName","focus","blur","submit","reset","select","createCaption"],function(b){a.Node.prototype[b]=function(a,c,d){var e=this.invoke(b,a,c,d);return e}}),a.Node.prototype.removeAttribute=function(a){var b=this._node;return b&&b.removeAttribute(a,0),this},a.Node.importMethod(a.DOM,["contains","setAttribute","getAttribute","wrap","unwrap","generateID"]),a.NodeList.importMethod(a.Node.prototype,["getAttribute","setAttribute","removeAttribute","unwrap","wrap","generateID"])},"3.10.1",{requires:["dom-core","selector"]}),YUI.add("node-base",function(a){var c=["hasClass","addClass","removeClass","replaceClass","toggleClass"];a.Node.importMethod(a.DOM,c),a.NodeList.importMethod(a.Node.prototype,c);var d=a.Node,e=a.DOM;d.create=function(b,c){return c&&c._node&&(c=c._node),a.one(e.create(b,c))},a.mix(d.prototype,{create:d.create,insert:function(a,b){return this._insert(a,b),this},_insert:function(a,b){var c=this._node,d=null;return"number"==typeof b?b=this._node.childNodes[b]:b&&b._node&&(b=b._node),a&&"string"!=typeof a&&(a=a._node||a._nodes||a),d=e.addHTML(c,a,b)},prepend:function(a){return this.insert(a,0)},append:function(a){return this.insert(a,null)},appendChild:function(a){return d.scrubVal(this._insert(a))},insertBefore:function(b,c){return a.Node.scrubVal(this._insert(b,c))},appendTo:function(b){return a.one(b).append(this),this},setContent:function(a){return this._insert(a,"replace"),this},getContent:function(){return this.get("innerHTML")}}),a.Node.prototype.setHTML=a.Node.prototype.setContent,a.Node.prototype.getHTML=a.Node.prototype.getContent,a.NodeList.importMethod(a.Node.prototype,["append","insert","appendChild","insertBefore","prepend","setContent","getContent","setHTML","getHTML"]);var d=a.Node,e=a.DOM;d.ATTRS={text:{getter:function(){return e.getText(this._node)},setter:function(a){return e.setText(this._node,a),a}},"for":{getter:function(){return e.getAttribute(this._node,"for")},setter:function(a){return e.setAttribute(this._node,"for",a),a}},options:{getter:function(){return this._node.getElementsByTagName("option")}},children:{getter:function(){var d,e,f,b=this._node,c=b.children;if(!c)for(d=b.childNodes,c=[],e=0,f=d.length;f>e;++e)d[e].tagName&&(c[c.length]=d[e]);return a.all(c)}},value:{getter:function(){return e.getValue(this._node)},setter:function(a){return e.setValue(this._node,a),a}}},a.Node.importMethod(a.DOM,["setAttribute","getAttribute"]);var d=a.Node,f=a.NodeList;d.DOM_EVENTS={abort:1,beforeunload:1,blur:1,change:1,click:1,close:1,command:1,contextmenu:1,dblclick:1,DOMMouseScroll:1,drag:1,dragstart:1,dragenter:1,dragover:1,dragleave:1,dragend:1,drop:1,error:1,focus:1,key:1,keydown:1,keypress:1,keyup:1,load:1,message:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mousemultiwheel:1,mouseout:1,mouseover:1,mouseup:1,mousewheel:1,orientationchange:1,reset:1,resize:1,select:1,selectstart:1,submit:1,scroll:1,textInput:1,unload:1},a.mix(d.DOM_EVENTS,a.Env.evt.plugins),a.augment(d,a.EventTarget),a.mix(d.prototype,{purge:function(b,c){return a.Event.purgeElement(this._node,b,c),this}}),a.mix(a.NodeList.prototype,{_prepEvtArgs:function(b,c,d){var e=a.Array(arguments,0,!0);return e.length<2?e[2]=this._nodes:e.splice(2,0,this._nodes),e[3]=d||this,e},on:function(){return a.on.apply(a,this._prepEvtArgs.apply(this,arguments))},once:function(){return a.once.apply(a,this._prepEvtArgs.apply(this,arguments))},after:function(){return a.after.apply(a,this._prepEvtArgs.apply(this,arguments))},onceAfter:function(){return a.onceAfter.apply(a,this._prepEvtArgs.apply(this,arguments))}}),f.importMethod(a.Node.prototype,["detach","detachAll"]),a.mix(a.Node.ATTRS,{offsetHeight:{setter:function(b){return a.DOM.setHeight(this._node,b),b},getter:function(){return this._node.offsetHeight}},offsetWidth:{setter:function(b){return a.DOM.setWidth(this._node,b),b},getter:function(){return this._node.offsetWidth}}}),a.mix(a.Node.prototype,{sizeTo:function(b,c){var d;arguments.length<2&&(d=a.one(b),b=d.get("offsetWidth"),c=d.get("offsetHeight")),this.setAttrs({offsetWidth:b,offsetHeight:c})}});var d=a.Node;a.mix(d.prototype,{show:function(a){return a=arguments[arguments.length-1],this.toggleView(!0,a),this},_show:function(){this.setStyle("display","")},_isHidden:function(){return"none"===a.DOM.getStyle(this._node,"display")},toggleView:function(){return this._toggleView.apply(this,arguments),this},_toggleView:function(a,b){return b=arguments[arguments.length-1],"boolean"!=typeof a&&(a=this._isHidden()?1:0),a?this._show():this._hide(),"function"==typeof b&&b.call(this),this},hide:function(a){return a=arguments[arguments.length-1],this.toggleView(!1,a),this},_hide:function(){this.setStyle("display","none")}}),a.NodeList.importMethod(a.Node.prototype,["show","hide","toggleView"]),a.config.doc.documentElement.hasAttribute||(a.Node.prototype.hasAttribute=function(a){return"value"===a&&""!==this.get("value")?!0:!!this._node.attributes[a]&&!!this._node.attributes[a].specified}),a.Node.prototype.focus=function(){try{this._node.focus()}catch(a){}return this},a.Node.ATTRS.type={setter:function(a){if("hidden"===a)try{this._node.type="hidden"}catch(b){this.setStyle("display","none"),this._inputType="hidden"}else try{this._node.type=a}catch(b){}return a},getter:function(){return this._inputType||this._node.type},_bypassProxy:!0},a.config.doc.createElement("form").elements.nodeType&&(a.Node.ATTRS.elements={getter:function(){return this.all("input, textarea, button, select")}}),a.mix(a.Node.prototype,{_initData:function(){"_data"in this||(this._data={})},getData:function(b){this._initData();var c=this._data,d=c;return arguments.length?d=b in c?c[b]:this._getDataAttribute(b):"object"==typeof c&&null!==c&&(d={},a.Object.each(c,function(a,b){d[b]=a}),d=this._getDataAttributes(d)),d},_getDataAttributes:function(a){a=a||{};for(var g,b=0,c=this._node.attributes,d=c.length,e=this.DATA_PREFIX,f=e.length;d>b;)g=c[b].name,0===g.indexOf(e)&&(g=g.substr(f),g in a||(a[g]=this._getDataAttribute(g))),b+=1;return a},_getDataAttribute:function(a){a=this.DATA_PREFIX+a;var b=this._node,c=b.attributes,d=c&&c[a]&&c[a].value;return d},setData:function(a,b){return this._initData(),arguments.length>1?this._data[a]=b:this._data=a,this},clearData:function(a){return"_data"in this&&("undefined"!=typeof a?delete this._data[a]:delete this._data),this}}),a.mix(a.NodeList.prototype,{getData:function(a){var b=arguments.length?[a]:[];return this._invoke("getData",b,!0)},setData:function(a,b){var c=arguments.length>1?[a,b]:[a];return this._invoke("setData",c)},clearData:function(a){return arguments.length?[a]:[],this._invoke("clearData",[a])}})},"3.10.1",{requires:["event-base","node-core","dom-base"]}),function(){var a=YUI.Env;a._ready||(a._ready=function(){a.DOMReady=!0,a.remove(YUI.config.doc,"DOMContentLoaded",a._ready)},a.add(YUI.config.doc,"DOMContentLoaded",a._ready))}(),YUI.add("event-base",function(a){a.publish("domready",{fireOnce:!0,async:!0}),YUI.Env.DOMReady?a.fire("domready"):a.Do.before(function(){a.fire("domready")},YUI.Env,"_ready");var c=a.UA,d={},e={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9,63272:46,63273:36,63275:35},f=function(b){if(!b)return b;try{b&&3==b.nodeType&&(b=b.parentNode)}catch(c){return null}return a.one(b)},g=function(a,b,c){this._event=a,this._currentTarget=b,this._wrapper=c||d,this.init()};a.extend(g,Object,{init:function(){var h,a=this._event,b=this._wrapper.overrides,d=a.pageX,g=a.pageY,i=this._currentTarget;this.altKey=a.altKey,this.ctrlKey=a.ctrlKey,this.metaKey=a.metaKey,this.shiftKey=a.shiftKey,this.type=b&&b.type||a.type,this.clientX=a.clientX,this.clientY=a.clientY,this.pageX=d,this.pageY=g,h=a.keyCode||a.charCode,c.webkit&&h in e&&(h=e[h]),this.keyCode=h,this.charCode=h,this.which=a.which||a.charCode||h,this.button=this.which,this.target=f(a.target),this.currentTarget=f(i),this.relatedTarget=f(a.relatedTarget),("mousewheel"==a.type||"DOMMouseScroll"==a.type)&&(this.wheelDelta=a.detail?-1*a.detail:Math.round(a.wheelDelta/80)||(a.wheelDelta<0?-1:1)),this._touch&&this._touch(a,i,this._wrapper)},stopPropagation:function(){this._event.stopPropagation(),this._wrapper.stopped=1,this.stopped=1},stopImmediatePropagation:function(){var a=this._event;a.stopImmediatePropagation?a.stopImmediatePropagation():this.stopPropagation(),this._wrapper.stopped=2,this.stopped=2},preventDefault:function(a){var b=this._event;b.preventDefault(),b.returnValue=a||!1,this._wrapper.prevented=1,this.prevented=1},halt:function(a){a?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}}),g.resolve=f,a.DOM2EventFacade=g,a.DOMEventFacade=g,function(){a.Env.evt.dom_wrappers={},a.Env.evt.dom_map={};var b=a.DOM,c=a.Env.evt,d=a.config,e=d.win,f=YUI.Env.add,g=YUI.Env.remove,h=function(){YUI.Env.windowLoaded=!0,a.Event._load(),g(e,"load",h)},i=function(){a.Event._unload()},j="domready",k="~yui|2|compat~",l=function(c){try{return c&&"string"!=typeof c&&a.Lang.isNumber(c.length)&&!c.tagName&&!b.isWindow(c)}catch(d){return!1}},m=a.CustomEvent.prototype._delete,n=function(){var c=m.apply(this,arguments);return this.hasSubs()||a.Event._clean(this),c},o=function(){var d=!1,h=0,m=[],p=c.dom_wrappers,q=null,r=c.dom_map;return{POLL_RETRYS:1e3,POLL_INTERVAL:40,lastError:null,_interval:null,_dri:null,DOMReady:!1,startInterval:function(){o._interval||(o._interval=setInterval(o._poll,o.POLL_INTERVAL))},onAvailable:function(b,c,d,e,f,g){var j,k,i=a.Array(b);for(j=0;j4?c.slice(4):null),m&&i.fire(),n):!1},detach:function(c,d,e){var h,i,j,m,n,q,g=a.Array(arguments,0,!0);if(g[g.length-1]===k&&(h=!0),c&&c.detach)return c.detach();if("string"==typeof e&&(h?e=b.byId(e):(e=a.Selector.query(e),i=e.length,1>i?e=null:1==i&&(e=e[0]))),!e)return!1;if(e.detach)return g.splice(2,1),e.detach.apply(e,g);if(l(e)){for(j=!0,m=0,i=e.length;i>m;++m)g[2]=e[m],j=a.Event.detach.apply(a.Event,g)&&j;return j}return c&&d&&d.call?(n="event:"+a.stamp(e)+c,q=p[n],q?q.detach(d):!1):o.purgeElement(e,!1,c)},getEvent:function(b,c,d){var f=b||e.event;return d?f:new a.DOMEventFacade(f,c,p["event:"+a.stamp(c)+b.type])},generateId:function(a){return b.generateID(a)},_isValidCollection:l,_load:function(){d||(d=!0,a.fire&&a.fire(j),o._poll())},_poll:function(){if(!o.locked){if(a.UA.ie&&!YUI.Env.DOMReady)return o.startInterval(),void 0;o.locked=!0;var c,e,f,g,i,j,k=!d;for(k||(k=h>0),i=[],j=function(b,c){var d,e=c.override;try{c.compat?(d=c.override?e===!0?c.obj:e:b,c.fn.call(d,c.obj)):(d=c.obj||a.one(b),c.fn.apply(d,a.Lang.isArray(e)?e:[]))}catch(f){}},c=0,e=m.length;e>c;++c)f=m[c],f&&!f.checkReady&&(g=f.compat?b.byId(f.id):a.Selector.query(f.id,null,!0),g?(j(g,f),m[c]=null):i.push(f));for(c=0,e=m.length;e>c;++c)f=m[c],f&&f.checkReady&&(g=f.compat?b.byId(f.id):a.Selector.query(f.id,null,!0),g?(d||g.get&&g.get("nextSibling")||g.nextSibling)&&(j(g,f),m[c]=null):i.push(f));h=0===i.length?0:h-1,k?o.startInterval():(clearInterval(o._interval),o._interval=null),o.locked=!1}},purgeElement:function(b,c,d){var g,h,i,j,e=a.Lang.isString(b)?a.Selector.query(b,null,!0):b,f=o.getListeners(e,d);if(c&&e)for(f=f||[],i=a.Selector.query("*",e),h=i.length,g=0;h>g;++g)j=o.getListeners(i[g],d),j&&(f=f.concat(j));if(f)for(g=0,h=f.length;h>g;++g)f[g].detachAll()},_clean:function(b){var c=b.key,d=b.domkey;g(b.el,b.type,b.fn,b.capture),delete p[c],delete a._yuievt.events[c],r[d]&&(delete r[d][c],a.Object.size(r[d])||delete r[d])},getListeners:function(b,d){var e=a.stamp(b,!0),f=r[e],g=[],h=d?"event:"+e+d:null,i=c.plugins;return f?(h?(i[d]&&i[d].eventDef&&(h+="_synth"),f[h]&&g.push(f[h]),h+="native",f[h]&&g.push(f[h])):a.each(f,function(a){g.push(a)}),g.length?g:null):null},_unload:function(b){a.each(p,function(a){"unload"==a.type&&a.fire(b),a.detachAll()}),g(e,"unload",i)},nativeAdd:f,nativeRemove:g}}();a.Event=o,d.injected||YUI.Env.windowLoaded?h():f(e,"load",h),a.UA.ie&&a.on(j,o._poll);try{f(e,"unload",i)}catch(p){}o.Custom=a.CustomEvent,o.Subscriber=a.Subscriber,o.Target=a.EventTarget,o.Handle=a.EventHandle,o.Facade=a.EventFacade,o._poll()}(),a.Env.evt.plugins.available={on:function(b,c,d,e){var f=arguments.length>4?a.Array(arguments,4,!0):null;return a.Event.onAvailable.call(a.Event,d,c,e,f)}},a.Env.evt.plugins.contentready={on:function(b,c,d,e){var f=arguments.length>4?a.Array(arguments,4,!0):null;return a.Event.onContentReady.call(a.Event,d,c,e,f)}}},"3.10.1",{requires:["event-custom-base"]}),YUI.add("event-custom-complex",function(a){var c,d,f,e=a.Object,g={},h=a.CustomEvent.prototype,i=a.EventTarget.prototype,j=function(a,b){var c;for(c in b)d.hasOwnProperty(c)||(a[c]=b[c])};a.EventFacade=function(a,b){a||(a=g),this._event=a,this.details=a.details,this.type=a.type,this._type=a.type,this.target=a.target,this.currentTarget=b,this.relatedTarget=a.relatedTarget},a.mix(a.EventFacade.prototype,{stopPropagation:function(){this._event.stopPropagation(),this.stopped=1},stopImmediatePropagation:function(){this._event.stopImmediatePropagation(),this.stopped=2},preventDefault:function(){this._event.preventDefault(),this.prevented=1},halt:function(a){this._event.halt(a),this.prevented=1,this.stopped=a?2:1}}),h.fireComplex=function(b){var c,d,e,f,g,i,j,k,l,m,n,o,p,q,t,u,v,x,h=!0,r=this,s=r.host||r,w=s._yuievt;if(v=r.stack,v&&r.queuable&&r.type!==v.next.type)return v.queue||(v.queue=[]),v.queue.push([r,b]),!0;if(x=r.hasSubs()||w.hasTargets||r.broadcast,r.target=r.target||s,r.currentTarget=s,r.details=b.concat(),x){if(c=v||{id:r.id,next:r,silent:r.silent,stopped:0,prevented:0,bubbling:null,type:r.type,defaultTargetOnly:r.defaultTargetOnly},j=r.getSubs(),k=j[0],l=j[1],r.stopped=r.type!==c.type?0:c.stopped,r.prevented=r.type!==c.type?0:c.prevented,r.stoppedFn&&(i=new a.EventTarget({fireOnce:!0,context:s}),r.events=i,i.on("stopped",r.stoppedFn)),r._facade=null,d=r._getFacade(b),k&&r._procSubs(k,b,d),r.bubbles&&s.bubble&&!r.stopped&&(u=c.bubbling,c.bubbling=r.type,c.type!==r.type&&(c.stopped=0,c.prevented=0),h=s.bubble(r,b,null,c),r.stopped=Math.max(r.stopped,c.stopped),r.prevented=Math.max(r.prevented,c.prevented),c.bubbling=u),o=r.prevented,o?(p=r.preventedFn,p&&p.apply(s,b)):(q=r.defaultFn,q&&(!r.defaultTargetOnly&&!c.defaultTargetOnly||s===d.target)&&q.apply(s,b)),r.broadcast&&r._broadcast(b),l&&!r.prevented&&r.stopped<2)if(m=c.afterQueue,c.id===r.id||r.type!==w.bubbling){if(r._procSubs(l,b,d),m)for(;t=m.last();)t()}else n=l,c.execDefaultCnt&&(n=a.merge(n),a.each(n,function(a){a.postponed=!0})),m||(c.afterQueue=new a.Queue),c.afterQueue.add(function(){r._procSubs(n,b,d)});if(r.target=null,c.id===r.id){if(f=c.queue)for(;f.length;)e=f.pop(),g=e[0],c.next=g,g._fire(e[1]);r.stack=null}return h=!r.stopped,r.type!==w.bubbling&&(c.stopped=0,c.prevented=0,r.stopped=0,r.prevented=0),r._facade=null,h}return q=r.defaultFn,q&&(d=r._getFacade(b),(!r.defaultTargetOnly||s===d.target)&&q.apply(s,b)),h},h._getFacade=function(b){var c=this.details,d=c&&c[0],e="object"==typeof d,f=this._facade;return f||(f=new a.EventFacade(this,this.currentTarget)),e?(j(f,d),d.type&&(f.type=d.type),b&&(b[0]=f)):b&&b.unshift(f),f.details=this.details,f.target=this.originalTarget||this.target,f.currentTarget=this.currentTarget,f.stopped=0,f.prevented=0,this._facade=f,this._facade},h.stopPropagation=function(){this.stopped=1,this.stack&&(this.stack.stopped=1),this.events&&this.events.fire("stopped",this)},h.stopImmediatePropagation=function(){this.stopped=2,this.stack&&(this.stack.stopped=2),this.events&&this.events.fire("stopped",this)},h.preventDefault=function(){this.preventable&&(this.prevented=1,this.stack&&(this.stack.prevented=1))},h.halt=function(a){a?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()},i.addTarget=function(b){var c=this._yuievt;c.targets||(c.targets={}),c.targets[a.stamp(b)]=b,c.hasTargets=!0 +},i.getTargets=function(){var a=this._yuievt.targets;return a?e.values(a):[]},i.removeTarget=function(b){var c=this._yuievt.targets;c&&(delete c[a.stamp(b,!0)],0===e.size(c)&&(this._yuievt.hasTargets=!1))},i.bubble=function(a,b,c,d){var g,h,i,j,k,n,e=this._yuievt.targets,f=!0,l=a&&a.type,m=c||a&&a.target||this;if(!a||!a.stopped&&e)for(i in e)if(e.hasOwnProperty(i)){if(g=e[i],h=g._yuievt.events[l],g._hasSiblings&&(k=g.getSibling(l,h)),k&&!h&&(h=g.publish(l)),n=g._yuievt.bubbling,g._yuievt.bubbling=l,h){if(k&&(h.sibling=k),h.target=m,h.originalTarget=m,h.currentTarget=g,j=h.broadcast,h.broadcast=!1,h.emitFacade=!0,h.stack=d,f=f&&h.fire.apply(h,b||a.details||[]),h.broadcast=j,h.originalTarget=null,h.stopped)break}else g._yuievt.hasTargets&&g.bubble(a,b,m,d);g._yuievt.bubbling=n}return f},c=new a.EventFacade,d={};for(f in c)d[f]=!0},"3.10.1",{requires:["event-custom-base"]}),YUI.add("event-synthetic",function(a){function c(a,b){this.handle=a,this.emitFacade=b}function d(a,b,c){this.handles=[],this.el=a,this.key=c,this.domkey=b}function e(){this._init.apply(this,arguments)}var f=a.CustomEvent,g=a.Env.evt.dom_map,h=a.Array,i=a.Lang,j=i.isObject,k=i.isString,l=i.isArray,m=a.Selector.query,n=function(){};c.prototype.fire=function(b){var l,c=h(arguments,0,!0),d=this.handle,e=d.evt,f=d.sub,g=f.context,i=f.filter,k=b||{};return this.emitFacade?(b&&b.preventDefault||(k=e._getFacade(),j(b)&&!b.preventDefault?(a.mix(k,b,!0),c[0]=k):c.unshift(k)),k.type=e.type,k.details=c.slice(),i&&(k.container=e.host)):i&&j(b)&&b.currentTarget&&c.shift(),f.context=g||k.currentTarget||e.host,l=e.fire.apply(e,c),f.context=g,l},d.prototype={constructor:d,type:"_synth",fn:n,capture:!1,register:function(a){a.evt.registry=this,this.handles.push(a)},unregister:function(b){var e,c=this.handles,d=g[this.domkey];for(e=c.length-1;e>=0;--e)if(c[e].sub===b){c.splice(e,1);break}c.length||(delete d[this.key],a.Object.size(d)||delete g[this.domkey])},detachAll:function(){for(var a=this.handles,b=a.length;--b>=0;)a[b].detach()}},a.mix(e,{Notifier:c,SynthRegistry:d,getRegistry:function(b,c,e){var f=b._node,h=a.stamp(f),i="event:"+h+c+"_synth",j=g[h];return e&&(j||(j=g[h]={}),j[i]||(j[i]=new d(f,h,i))),j&&j[i]||null},_deleteSub:function(a){if(a&&a.fn){var b=this.eventDef,c=a.filter?"detachDelegate":"detach";this._subscribers=[],f.keepDeprecatedSubs&&(this.subscribers={}),b[c](a.node,a,this.notifier,a.filter),this.registry.unregister(a),delete a.fn,delete a.node,delete a.context}},prototype:{constructor:e,_init:function(){var a=this.publishConfig||(this.publishConfig={});this.emitFacade="emitFacade"in a?a.emitFacade:!0,a.emitFacade=!1},processArgs:n,on:n,detach:n,delegate:n,detachDelegate:n,_on:function(b,c){var j,l,d=[],e=b.slice(),f=this.processArgs(b,c),g=b[2],i=c?"delegate":"on";return j=k(g)?m(g):h(g||a.one(a.config.win)),!j.length&&k(g)?l=a.on("available",function(){a.mix(l,a[i].apply(a,e),!0)},g):(a.Array.each(j,function(e){var h,g=b.slice();e=a.one(e),e&&(c&&(h=g.splice(3,1)[0]),g.splice(0,4,g[1],g[3]),(!this.preventDups||!this.getSubs(e,b,null,!0))&&d.push(this._subscribe(e,i,g,f,h)))},this),1===d.length?d[0]:new a.EventHandle(d))},_subscribe:function(b,d,f,g,h){var i=new a.CustomEvent(this.type,this.publishConfig),j=i.on.apply(i,f),k=new c(j,this.emitFacade),l=e.getRegistry(b,this.type,!0),m=j.sub;return m.node=b,m.filter=h,g&&this.applyArgExtras(g,m),a.mix(i,{eventDef:this,notifier:k,host:b,currentTarget:b,target:b,el:b._node,_delete:e._deleteSub},!0),j.notifier=k,l.register(j),this[d](b,m,k,h),j},applyArgExtras:function(a,b){b._extra=a},_detach:function(b){var e,f,g,i,j,c=b[2],d=k(c)?m(c):h(c);for(b.splice(2,1),f=0,g=d.length;g>f;++f)if(e=a.one(d[f]),e&&(i=this.getSubs(e,b)))for(j=i.length-1;j>=0;--j)i[j].detach()},getSubs:function(a,b,c,d){var h,i,j,k,f=e.getRegistry(a,this.type),g=[];if(f)for(h=f.handles,c||(c=this.subMatch),i=0,j=h.length;j>i;++i)if(k=h[i],c.call(this,k.sub,b)){if(d)return k;g.push(h[i])}return g.length&&g},subMatch:function(a,b){return!b[1]||a.fn===b[1]}}},!0),a.SyntheticEvent=e,a.Event.define=function(b,c,d){var f,g,i;return b&&b.type?(f=b,d=c):c&&(f=a.merge({type:b},c)),f?(d||!a.Node.DOM_EVENTS[f.type])&&(g=function(){e.apply(this,arguments)},a.extend(g,e,f),i=new g,b=i.type,a.Node.DOM_EVENTS[b]=a.Env.evt.plugins[b]={eventDef:i,on:function(){return i._on(h(arguments))},delegate:function(){return i._on(h(arguments),!0)},detach:function(){return i._detach(h(arguments))}}):(k(b)||l(b))&&a.Array.each(h(b),function(b){a.Node.DOM_EVENTS[b]=1}),i}},"3.10.1",{requires:["node-base","event-custom-complex"]}),YUI.add("history-base",function(a){function c(){this._init.apply(this,arguments)}function d(a){return"object"===e.type(a)}var e=a.Lang,f=a.Object,g=YUI.namespace("Env.History"),h=a.Array,i=a.config.doc,j=i.documentMode,k=a.config.win,l={merge:!0},m="change",n="add",o="replace";a.augment(c,a.EventTarget,null,null,{emitFacade:!0,prefix:"history",preventable:!1,queueable:!0}),g._state||(g._state={}),c.NAME="historyBase",c.SRC_ADD=n,c.SRC_REPLACE=o,c.html5=!!(k.history&&k.history.pushState&&k.history.replaceState&&("onpopstate"in k||a.UA.gecko>=2)&&(!a.UA.android||a.UA.android>=2.4)),c.nativeHashChange=("onhashchange"in k||"onhashchange"in i)&&(!j||j>7),a.mix(c.prototype,{_init:function(a){var b;a=this._config=a||{},this.force=!!a.force,b=this._initialState=this._initialState||a.initialState||null,this.publish(m,{broadcast:2,defaultFn:this._defChangeFn}),b&&this.replace(b)},add:function(){var a=h(arguments,0,!0);return a.unshift(n),this._change.apply(this,a)},addValue:function(a,b,c){var d={};return d[a]=b,this._change(n,d,c)},get:function(b){var c=g._state,e=d(c);return b?e&&f.owns(c,b)?c[b]:void 0:e?a.mix({},c,!0):c},replace:function(){var a=h(arguments,0,!0);return a.unshift(o),this._change.apply(this,a)},replaceValue:function(a,b,c){var d={};return d[a]=b,this._change(o,d,c)},_change:function(b,c,e){return e=e?a.merge(l,e):l,e.merge&&d(c)&&d(g._state)&&(c=a.merge(g._state,c)),this._resolveChanges(b,c,e),this},_fireEvents:function(a,b,c){this.fire(m,{_options:c,changed:b.changed,newVal:b.newState,prevVal:b.prevState,removed:b.removed,src:a}),f.each(b.changed,function(b,c){this._fireChangeEvent(a,c,b)},this),f.each(b.removed,function(b,c){this._fireRemoveEvent(a,c,b)},this)},_fireChangeEvent:function(a,b,c){this.fire(b+"Change",{newVal:c.newVal,prevVal:c.prevVal,src:a})},_fireRemoveEvent:function(a,b,c){this.fire(b+"Remove",{prevVal:c,src:a})},_resolveChanges:function(a,b,c){var h,e={},i=g._state,j={};b||(b={}),c||(c={}),d(b)&&d(i)?(f.each(b,function(a,b){var c=i[b];a!==c&&(e[b]={newVal:a,prevVal:c},h=!0)},this),f.each(i,function(a,c){f.owns(b,c)&&null!==b[c]||(delete b[c],j[c]=a,h=!0)},this)):h=b!==i,(h||this.force)&&this._fireEvents(a,{changed:e,newState:b,prevState:i,removed:j},c)},_storeState:function(a,b){g._state=b||{}},_defChangeFn:function(a){this._storeState(a.src,a.newVal,a._options)}},!0),a.HistoryBase=c},"3.10.1",{requires:["event-custom-complex"]}),YUI.add("history-html5",function(a){function c(){c.superclass.constructor.apply(this,arguments)}var d=a.HistoryBase,e=a.Lang,f=a.config.win,g=a.config.useHistoryHTML5,h="popstate",i=d.SRC_REPLACE;a.extend(c,d,{_init:function(b){var d=f.history.state;a.Object.isEmpty(d)&&(d=null),b||(b={}),this._initialState=b.initialState&&"object"===e.type(b.initialState)&&"object"===e.type(d)?a.merge(b.initialState,d):d,a.on("popstate",this._onPopState,f,this),c.superclass._init.apply(this,arguments)},_storeState:function(b,d,e){b!==h&&f.history[b===i?"replaceState":"pushState"](d,e.title||a.config.doc.title||"",e.url||null),c.superclass._storeState.apply(this,arguments)},_onPopState:function(a){this._resolveChanges(h,a._event.state||null)}},{NAME:"historyhtml5",SRC_POPSTATE:h}),a.Node.DOM_EVENTS.popstate||(a.Node.DOM_EVENTS.popstate=1),a.HistoryHTML5=c,(g===!0||g!==!1&&d.html5)&&(a.History=c)},"3.10.1",{optional:["json"],requires:["event-base","history-base","node-base"]}),YUI.add("history-hash",function(a){function c(){c.superclass.constructor.apply(this,arguments)}var j,k,l,d=a.HistoryBase,e=a.Lang,f=a.Array,g=a.Object,h=YUI.namespace("Env.HistoryHash"),i="hash",m=a.config.win,n=a.config.useHistoryHTML5;a.extend(c,d,{_init:function(b){var d=c.parseHash();b=b||{},this._initialState=b.initialState?a.merge(b.initialState,d):d,a.after("hashchange",a.bind(this._afterHashChange,this),m),c.superclass._init.apply(this,arguments)},_change:function(a,b,d){return g.each(b,function(a,c){e.isValue(a)&&(b[c]=a.toString())}),c.superclass._change.call(this,a,b,d)},_storeState:function(a,b){var e=c.decode,f=c.createHash(b);c.superclass._storeState.apply(this,arguments),a!==i&&e(c.getHash())!==e(f)&&c[a===d.SRC_REPLACE?"replaceHash":"setHash"](f)},_afterHashChange:function(a){this._resolveChanges(i,c.parseHash(a.newHash),{})}},{NAME:"historyHash",SRC_HASH:i,hashPrefix:"",_REGEX_HASH:/([^\?#&]+)=([^&]+)/g,createHash:function(a){var b=c.encode,d=[];return g.each(a,function(a,c){e.isValue(a)&&d.push(b(c)+"="+b(a))}),d.join("&")},decode:function(a){return decodeURIComponent(a.replace(/\+/g," "))},encode:function(a){return encodeURIComponent(a).replace(/%20/g,"+")},getHash:a.UA.gecko?function(){var b=a.getLocation(),d=/#(.*)$/.exec(b.href),e=d&&d[1]||"",f=c.hashPrefix;return f&&0===e.indexOf(f)?e.replace(f,""):e}:function(){var b=a.getLocation(),d=b.hash.substring(1),e=c.hashPrefix;return e&&0===d.indexOf(e)?d.replace(e,""):d},getUrl:function(){return location.href},parseHash:function(a){var d,f,g,h,k,b=c.decode,i={},j=c.hashPrefix;for(a=e.isValue(a)?a:c.getHash(),j&&(k=a.indexOf(j),(0===k||1===k&&"#"===a.charAt(0))&&(a=a.replace(j,""))),g=a.match(c._REGEX_HASH)||[],d=0,f=g.length;f>d;++d)h=g[d].split("="),i[b(h[0])]=b(h[1]);return i},replaceHash:function(b){var d=a.getLocation(),e=d.href.replace(/#.*$/,"");"#"===b.charAt(0)&&(b=b.substring(1)),d.replace(e+"#"+(c.hashPrefix||"")+b)},setHash:function(b){var d=a.getLocation();"#"===b.charAt(0)&&(b=b.substring(1)),d.hash=(c.hashPrefix||"")+b}}),j=h._notifiers,j||(j=h._notifiers=[]),a.Event.define("hashchange",{on:function(b,c,d){(b.compareTo(m)||b.compareTo(a.config.doc.body))&&j.push(d)},detach:function(a,b,c){var d=f.indexOf(j,c);-1!==d&&j.splice(d,1)}}),k=c.getHash(),l=c.getUrl(),d.nativeHashChange?h._hashHandle||(h._hashHandle=a.Event.attach("hashchange",function(a){var b=c.getHash(),d=c.getUrl();f.each(j.concat(),function(c){c.fire({_event:a,oldHash:k,oldUrl:l,newHash:b,newUrl:d})}),k=b,l=d},m)):h._hashPoll||(h._hashPoll=a.later(50,null,function(){var b,d,a=c.getHash();k!==a&&(d=c.getUrl(),b={oldHash:k,oldUrl:l,newHash:a,newUrl:d},k=a,l=d,f.each(j.concat(),function(a){a.fire(b)}))},null,!0)),a.HistoryHash=c,n!==!1&&(a.History||n===!0||d.html5&&a.HistoryHTML5)||(a.History=c)},"3.10.1",{requires:["event-synthetic","history-base","yui-later"]}),YUI.add("dom-style",function(a){!function(a){var b="documentElement",c="defaultView",d="ownerDocument",e="style",f="float",g="cssFloat",h="styleFloat",i="transparent",j="getComputedStyle",k="getBoundingClientRect",m=(a.config.win,a.config.doc),n=void 0,o=a.DOM,p="transform",q="transformOrigin",r=["WebkitTransform","MozTransform","OTransform","msTransform"],s=/color$/i,t=/width|height|top|left|right|bottom|margin|padding/i;a.Array.each(r,function(a){a in m[b].style&&(p=a,q=a+"Origin")}),a.mix(o,{DEFAULT_UNIT:"px",CUSTOM_STYLES:{},setStyle:function(a,b,c,d){d=d||a.style;var e=o.CUSTOM_STYLES;if(d){if(null===c||""===c?c="":!isNaN(new Number(c))&&t.test(b)&&(c+=o.DEFAULT_UNIT),b in e){if(e[b].set)return e[b].set(a,c,d),void 0;"string"==typeof e[b]&&(b=e[b])}else""===b&&(b="cssText",c="");d[b]=c}},getStyle:function(a,b,c){c=c||a.style;var d=o.CUSTOM_STYLES,e="";if(c){if(b in d){if(d[b].get)return d[b].get(a,b,c);"string"==typeof d[b]&&(b=d[b])}e=c[b],""===e&&(e=o[j](a,b))}return e},setStyles:function(b,c){var d=b.style;a.each(c,function(a,c){o.setStyle(b,c,a,d)},o)},getComputedStyle:function(a,b){var h,f="",g=a[d];return a[e]&&g[c]&&g[c][j]&&(h=g[c][j](a,null),h&&(f=h[b])),f}}),m[b][e][g]!==n?o.CUSTOM_STYLES[f]=g:m[b][e][h]!==n&&(o.CUSTOM_STYLES[f]=h),a.UA.opera&&(o[j]=function(b,e){var f=b[d][c],g=f[j](b,"")[e];return s.test(e)&&(g=a.Color.toRGB(g)),g}),a.UA.webkit&&(o[j]=function(a,b){var e=a[d][c],f=e[j](a,"")[b];return"rgba(0, 0, 0, 0)"===f&&(f=i),f}),a.DOM._getAttrOffset=function(b,c){var f,g,h,d=a.DOM[j](b,c),e=b.offsetParent;return"auto"===d&&(f=a.DOM.getStyle(b,"position"),"static"===f||"relative"===f?d=0:e&&e[k]&&(g=e[k]()[c],h=b[k]()[c],d="left"===c||"top"===c?h-g:g-b[k]()[c])),d},a.DOM._getOffset=function(a){var b,c=null;return a&&(b=o.getStyle(a,"position"),c=[parseInt(o[j](a,"left"),10),parseInt(o[j](a,"top"),10)],isNaN(c[0])&&(c[0]=parseInt(o.getStyle(a,"left"),10),isNaN(c[0])&&(c[0]="relative"===b?0:a.offsetLeft||0)),isNaN(c[1])&&(c[1]=parseInt(o.getStyle(a,"top"),10),isNaN(c[1])&&(c[1]="relative"===b?0:a.offsetTop||0))),c},o.CUSTOM_STYLES.transform={set:function(a,b,c){c[p]=b},get:function(a){return o[j](a,p)}},o.CUSTOM_STYLES.transformOrigin={set:function(a,b,c){c[q]=b},get:function(a){return o[j](a,q)}}}(a),function(a){var b=parseInt,c=RegExp;a.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(d){return a.Color.re_RGB.test(d)||(d=a.Color.toHex(d)),a.Color.re_hex.exec(d)&&(d="rgb("+[b(c.$1,16),b(c.$2,16),b(c.$3,16)].join(", ")+")"),d},toHex:function(b){if(b=a.Color.KEYWORDS[b]||b,a.Color.re_RGB.exec(b)){b=[Number(c.$1).toString(16),Number(c.$2).toString(16),Number(c.$3).toString(16)];for(var d=0;d =4.2)&&(e[0]+=f,e[1]+=g)):e=o._getOffset(d)),e}:function(b){var f,g,h,i,j,c=null;if(b)if(o.inDoc(b)){for(c=[b.offsetLeft,b.offsetTop],f=b.ownerDocument,g=b,h=a.UA.gecko||a.UA.webkit>519?!0:!1;g=g.offsetParent;)c[0]+=g.offsetLeft,c[1]+=g.offsetTop,h&&(c=o._calcBorders(g,c));if(o.getStyle(b,d)!=e){for(g=b;g=g.parentNode;)i=g.scrollTop,j=g.scrollLeft,a.UA.gecko&&"visible"!==o.getStyle(g,"overflow")&&(c=o._calcBorders(g,c)),(i||j)&&(c[0]-=j,c[1]-=i);c[0]+=o.docScrollX(b,f),c[1]+=o.docScrollY(b,f)}else c[0]+=o.docScrollX(b,f),c[1]+=o.docScrollY(b,f)}else c=o._getOffset(b);return c}}(),getScrollbarWidth:a.cached(function(){var b=a.config.doc,c=b.createElement("div"),d=b.getElementsByTagName("body")[0],e=.1;return d&&(c.style.cssText="position:absolute;visibility:hidden;overflow:scroll;width:20px;",c.appendChild(b.createElement("p")).style.height="1px",d.insertBefore(c,d.firstChild),e=c.offsetWidth-c.clientWidth,d.removeChild(c)),e},null,.1),getX:function(a){return o.getXY(a)[0]},getY:function(a){return o.getXY(a)[1]},setXY:function(a,b,c){var i,j,k,l,e=o.setStyle;a&&b&&(i=o.getStyle(a,d),j=o._getOffset(a),"static"==i&&(i=f,e(a,d,i)),l=o.getXY(a),null!==b[0]&&e(a,g,b[0]-l[0]+j[0]+"px"),null!==b[1]&&e(a,h,b[1]-l[1]+j[1]+"px"),c||(k=o.getXY(a),(k[0]!==b[0]||k[1]!==b[1])&&o.setXY(a,b,!0)))},setX:function(a,b){return o.setXY(a,[b,null])},setY:function(a,b){return o.setXY(a,[null,b])},swapXY:function(a,b){var c=o.getXY(a);o.setXY(a,o.getXY(b)),o.setXY(b,c)},_calcBorders:function(b,c){var d=parseInt(o[n](b,l),10)||0,e=parseInt(o[n](b,k),10)||0;return a.UA.gecko&&p.test(b.tagName)&&(d=0,e=0),c[0]+=e,c[1]+=d,c},_getWinSize:function(d,e){e=e||d?o._getDoc(d):a.config.doc;var f=e.defaultView||e.parentWindow,g=e[c],h=f.innerHeight,i=f.innerWidth,j=e[b];return g&&!a.UA.opera&&("CSS1Compat"!=g&&(j=e.body),h=j.clientHeight,i=j.clientWidth),{height:h,width:i}},_getDocSize:function(d){var e=d?o._getDoc(d):a.config.doc,f=e[b];return"CSS1Compat"!=e[c]&&(f=e.body),{height:f.scrollHeight,width:f.scrollWidth}}})}(a),function(a){var b="top",c="right",d="bottom",e="left",f=function(a,f){var g=Math.max(a[b],f[b]),h=Math.min(a[c],f[c]),i=Math.min(a[d],f[d]),j=Math.max(a[e],f[e]),k={};return k[b]=g,k[c]=h,k[d]=i,k[e]=j,k},g=a.DOM;a.mix(g,{region:function(a){var b=g.getXY(a),c=!1;return a&&b&&(c=g._getRegion(b[1],b[0]+a.offsetWidth,b[1]+a.offsetHeight,b[0])),c},intersect:function(h,i,j){var n,k=j||g.region(h),l={},m=i;if(m.tagName)l=g.region(m);else{if(!a.Lang.isObject(i))return!1;l=i}return n=f(l,k),{top:n[b],right:n[c],bottom:n[d],left:n[e],area:(n[d]-n[b])*(n[c]-n[e]),yoff:n[d]-n[b],xoff:n[c]-n[e],inRegion:g.inRegion(h,i,!1,j)}},inRegion:function(h,i,j,k){var o,l={},m=k||g.region(h),n=i;if(n.tagName)l=g.region(n);else{if(!a.Lang.isObject(i))return!1;l=i}return j?m[e]>=l[e]&&m[c]<=l[c]&&m[b]>=l[b]&&m[d]<=l[d]:(o=f(l,m),o[d]>=o[b]&&o[c]>=o[e]?!0:!1)},inViewportRegion:function(a,b,c){return g.inRegion(a,g.viewportRegion(a),b,c)},_getRegion:function(a,f,g,h){var i={};return i[b]=i[1]=a,i[e]=i[0]=h,i[d]=g,i[c]=f,i.width=i[c]-i[e],i.height=i[d]-i[b],i},viewportRegion:function(b){b=b||a.config.doc.documentElement;var d,e,c=!1;return b&&(d=g.docScrollX(b),e=g.docScrollY(b),c=g._getRegion(e,g.winWidth(b)+d,e+g.winHeight(b),d)),c}})}(a)},"3.10.1",{requires:["dom-base","dom-style"]}),YUI.add("node-screen",function(a){a.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(b){a.Node.ATTRS[b]={getter:function(){var c=Array.prototype.slice.call(arguments);return c.unshift(a.Node.getDOMNode(this)),a.DOM[b].apply(this,c)}}}),a.Node.ATTRS.scrollLeft={getter:function(){var b=a.Node.getDOMNode(this);return"scrollLeft"in b?b.scrollLeft:a.DOM.docScrollX(b)},setter:function(b){var c=a.Node.getDOMNode(this);c&&("scrollLeft"in c?c.scrollLeft=b:(c.document||9===c.nodeType)&&a.DOM._getWin(c).scrollTo(b,a.DOM.docScrollY(c)))}},a.Node.ATTRS.scrollTop={getter:function(){var b=a.Node.getDOMNode(this);return"scrollTop"in b?b.scrollTop:a.DOM.docScrollY(b)},setter:function(b){var c=a.Node.getDOMNode(this);c&&("scrollTop"in c?c.scrollTop=b:(c.document||9===c.nodeType)&&a.DOM._getWin(c).scrollTo(a.DOM.docScrollX(c),b))}},a.Node.importMethod(a.DOM,["getXY","setXY","getX","setX","getY","setY","swapXY"]),a.Node.ATTRS.region={getter:function(){var c,b=this.getDOMNode();return b&&!b.tagName&&9===b.nodeType&&(b=b.documentElement),c=a.DOM.isWindow(b)?a.DOM.viewportRegion(b):a.DOM.region(b)}},a.Node.ATTRS.viewportRegion={getter:function(){return a.DOM.viewportRegion(a.Node.getDOMNode(this))}},a.Node.importMethod(a.DOM,"inViewportRegion"),a.Node.prototype.intersect=function(b,c){var d=a.Node.getDOMNode(this);return a.instanceOf(b,a.Node)&&(b=a.Node.getDOMNode(b)),a.DOM.intersect(d,b,c)},a.Node.prototype.inRegion=function(b,c,d){var e=a.Node.getDOMNode(this);return a.instanceOf(b,a.Node)&&(b=a.Node.getDOMNode(b)),a.DOM.inRegion(e,b,c,d)}},"3.10.1",{requires:["dom-screen","node-base"]}),YUI.add("node-style",function(a){!function(a){a.mix(a.Node.prototype,{setStyle:function(b,c){return a.DOM.setStyle(this._node,b,c),this},setStyles:function(b){return a.DOM.setStyles(this._node,b),this},getStyle:function(b){return a.DOM.getStyle(this._node,b)},getComputedStyle:function(b){return a.DOM.getComputedStyle(this._node,b)}}),a.NodeList.importMethod(a.Node.prototype,["getStyle","getComputedStyle","setStyle","setStyles"])}(a)},"3.10.1",{requires:["dom-style","node-base"]}),YUI.add("classnamemanager",function(a){var c="classNamePrefix",d="classNameDelimiter",e=a.config;e[c]=e[c]||"yui3",e[d]=e[d]||"-",a.ClassNameManager=function(){var b=e[c],f=e[d];return{getClassName:a.cached(function(){var c=a.Array(arguments);return c[c.length-1]!==!0?c.unshift(b):c.pop(),c.join(f)})}}()},"3.10.1",{requires:["yui-base"]}),YUI.add("event-delegate",function(a){function c(b,e,i,k){var n,o,p,q,r,s,t,u,v,l=d(arguments,0,!0),m=f(i)?i:null;if(g(b)){if(u=[],h(b))for(s=0,t=b.length;t>s;++s)l[0]=b[s],u.push(a.delegate.apply(a,l));else{l.unshift(null);for(s in b)b.hasOwnProperty(s)&&(l[0]=s,l[1]=b[s],u.push(a.delegate.apply(a,l)))}return new a.EventHandle(u)}if(n=b.split(/\|/),n.length>1&&(r=n.shift(),l[0]=b=n.shift()),o=a.Node.DOM_EVENTS[b],g(o)&&o.delegate&&(v=o.delegate.apply(o,arguments)),!v){if(!(b&&e&&i&&k))return;p=m?a.Selector.query(m,null,!0):i,!p&&f(i)&&(v=a.on("available",function(){a.mix(v,a.delegate.apply(a,l),!0)},i)),!v&&p&&(l.splice(2,2,p),v=a.Event._attach(l,{facade:!1}),v.sub.filter=k,v.sub._notify=c.notifySub)}return v&&r&&(q=j[r]||(j[r]={}),q=q[b]||(q[b]=[]),q.push(v)),v}var d=a.Array,e=a.Lang,f=e.isString,g=e.isObject,h=e.isArray,i=a.Selector.test,j=a.Env.evt.handles;c.notifySub=function(b,e,f){e=e.slice(),this.args&&e.push.apply(e,this.args);var h,i,j,k,g=c._applyFilter(this.filter,e,f);if(g){for(g=d(g),h=e[0]=new a.DOMEventFacade(e[0],f.el,f),h.container=a.one(f.el),i=0,j=g.length;j>i&&!h.stopped&&(h.currentTarget=a.one(g[i]),k=this.fn.apply(this.context||h.currentTarget,e),k!==!1);++i);return k}},c.compileFilter=a.cached(function(a){return function(b,c){return i(b._node,a,c.currentTarget===c.target?null:c.currentTarget._node)}}),c._disabledRE=/^(?:button|input|select|textarea)$/i,c._applyFilter=function(b,d,e){var g=d[0],h=e.el,j=g.target||g.srcElement,k=[],l=!1;if(3===j.nodeType&&(j=j.parentNode),j.disabled&&c._disabledRE.test(j.nodeName))return k;if(d.unshift(j),f(b))for(;j&&(l=j===h,i(j,b,l?null:h)&&k.push(j),!l);)j=j.parentNode;else{for(d[0]=a.one(j),d[1]=new a.DOMEventFacade(g,h,e);j&&(b.apply(d[0],d)&&k.push(j),j!==h);)j=j.parentNode,d[0]=a.one(j);d[1]=g}return k.length<=1&&(k=k[0]),d.shift(),k},a.delegate=a.Event.delegate=c},"3.10.1",{requires:["node-base"]}),YUI.add("node-event-delegate",function(a){a.Node.prototype.delegate=function(b){var c=a.Array(arguments,0,!0),d=a.Lang.isObject(b)&&!a.Lang.isArray(b)?1:2;return c.splice(d,0,this._node),a.delegate.apply(a,c)}},"3.10.1",{requires:["node-base","event-delegate"]}),YUI.add("array-extras",function(a){var c=a.Array,d=a.Lang,e=Array.prototype;c.lastIndexOf=d._isNative(e.lastIndexOf)?function(a,b,c){return c||0===c?a.lastIndexOf(b,c):a.lastIndexOf(b)}:function(a,b,c){var d=a.length,e=d-1;if((c||0===c)&&(e=Math.min(0>c?d+c:c,d)),e>-1&&d>0)for(;e>-1;--e)if(e in a&&a[e]===b)return e;return-1},c.unique=function(a,b){var f,g,h,i,c=0,d=a.length,e=[];a:for(;d>c;c++){for(i=a[c],f=0,h=e.length;h>f;f++)if(g=e[f],b){if(b.call(a,i,g,c,a))continue a}else if(i===g)continue a;e.push(i)}return e},c.filter=d._isNative(e.filter)?function(a,b,c){return e.filter.call(a,b,c)}:function(a,b,c){for(var g,d=0,e=a.length,f=[];e>d;++d)d in a&&(g=a[d],b.call(c,g,d,a)&&f.push(g));return f},c.reject=function(a,b,d){return c.filter(a,function(a,c,e){return!b.call(d,a,c,e)})},c.every=d._isNative(e.every)?function(a,b,c){return e.every.call(a,b,c)}:function(a,b,c){for(var d=0,e=a.length;e>d;++d)if(d in a&&!b.call(c,a[d],d,a))return!1;return!0},c.map=d._isNative(e.map)?function(a,b,c){return e.map.call(a,b,c)}:function(a,b,c){for(var d=0,f=a.length,g=e.concat.call(a);f>d;++d)d in a&&(g[d]=b.call(c,a[d],d,a));return g},c.reduce=d._isNative(e.reduce)?function(a,b,c,d){return e.reduce.call(a,function(a,b,e,f){return c.call(d,a,b,e,f)},b)}:function(a,b,c,d){for(var e=0,f=a.length,g=b;f>e;++e)e in a&&(g=c.call(d,g,a[e],e,a));return g},c.find=function(a,b,c){for(var d=0,e=a.length;e>d;d++)if(d in a&&b.call(c,a[d],d,a))return a[d];return null},c.grep=function(a,b){return c.filter(a,function(a){return b.test(a)})},c.partition=function(a,b,d){var e={matches:[],rejects:[]};return c.each(a,function(c,f){var g=b.call(d,c,f,a)?e.matches:e.rejects;g.push(c)}),e},c.zip=function(a,b){var d=[];return c.each(a,function(a,c){d.push([a,b[c]])}),d},c.flatten=function(a){var e,f,g,b=[];if(!a)return b;for(e=0,f=a.length;f>e;++e)g=a[e],d.isArray(g)?b.push.apply(b,c.flatten(g)):b.push(g);return b}},"3.10.1",{requires:["yui-base"]}),YUI.add("attribute-core",function(a){function c(a,b,c){this._yuievt=null,this._initAttrHost(a,b,c)}a.State=function(){this.data={}},a.State.prototype={add:function(a,b,c){var d=this.data[a];d||(d=this.data[a]={}),d[b]=c},addAll:function(a,b){var d,c=this.data[a];c||(c=this.data[a]={});for(d in b)b.hasOwnProperty(d)&&(c[d]=b[d])},remove:function(a,b){var c=this.data[a];c&&delete c[b]},removeAll:function(b,c){var d;c?a.each(c,function(a,c){this.remove(b,"string"==typeof c?c:a)},this):(d=this.data,b in d&&delete d[b])},get:function(a,b){var c=this.data[a];return c?c[b]:void 0},getAll:function(a,b){var d,e,c=this.data[a];if(b)e=c;else if(c){e={};for(d in c)c.hasOwnProperty(d)&&(e[d]=c[d])}return e}};var t,d=a.Object,e=a.Lang,f=".",g="getter",h="setter",i="readOnly",j="writeOnce",k="initOnly",l="validator",m="value",n="valueFn",o="lazyAdd",p="added",q="_bypassProxy",r="initValue",s="lazy";c.INVALID_VALUE={},t=c.INVALID_VALUE,c._ATTR_CFG=[h,g,l,m,n,j,i,o,q],c.protectAttrs=function(b){if(b){b=a.merge(b);for(var c in b)b.hasOwnProperty(c)&&(b[c]=a.merge(b[c]))}return b},c.prototype={_initAttrHost:function(b,c,d){this._state=new a.State,this._initAttrs(b,c,d)},addAttr:function(a,b,c){var h,i,j,d=this,e=d._state,f=e.data,g=f[a];return b=b||{},o in b&&(c=b[o]),i=e.get(a,p),c&&!i?(g||(g=f[a]={}),g.lazy=b,g.added=!0):(!i||b.isLazyAdd)&&(j=m in b,j?(h=b.value,b.value=void 0):g&&m in g&&(b.value=g.value),b.added=!0,b.initializing=!0,f[a]=b,j&&d.set(a,h),b.initializing=!1),d},attrAdded:function(a){return!!this._state.get(a,p)},get:function(a){return this._getAttr(a)},_isLazyAttr:function(a){return this._state.get(a,s)},_addLazyAttr:function(a,b){var c=this._state;b=b||c.get(a,s),b&&(c.data[a].lazy=void 0,b.isLazyAdd=!0,this.addAttr(a,b))},set:function(a,b,c){return this._setAttr(a,b,c)},_set:function(a,b,c){return this._setAttr(a,b,c,!0)},_setAttr:function(b,c,e,g){var l,m,n,o,p,q,r,h=!0,i=this._state,j=this._stateProxy;return-1!==b.indexOf(f)&&(n=b,o=b.split(f),b=o.shift()),l=i.data[b]||{},l.lazy&&(l=l.lazy,this._addLazyAttr(b,l)),m=void 0===l.value,j&&b in j&&!l._bypassProxy&&(m=!1),q=l.writeOnce,r=l.initializing,!m&&!g&&(q&&(h=!1),l.readOnly&&(h=!1)),!r&&!g&&q===k&&(h=!1),h&&(m||(p=this.get(b)),o&&(c=d.setValue(a.clone(p),o,c),void 0===c&&(h=!1)),h&&(!this._fireAttrChange||r?this._setAttrVal(b,n,p,c,e,l):this._fireAttrChange(b,n,p,c,e,l))),this},_getAttr:function(a){var e,g,h,i,j,b=a,c=this._tCfgs;return-1!==a.indexOf(f)&&(e=a.split(f),a=e.shift()),c&&c[a]&&(j={},j[a]=c[a],delete c[a],this._addAttrs(j,this._tVals)),i=this._state.data[a]||{},i.lazy&&(i=i.lazy,this._addLazyAttr(a,i)),h=this._getStateVal(a,i),g=i.getter,g&&!g.call&&(g=this[g]),h=g?g.call(this,h,b):h,h=e?d.getValue(h,e):h},_getStateVal:function(a,b){var c=this._stateProxy;return b||(b=this._state.getAll(a)||{}),c&&a in c&&!b._bypassProxy?c[a]:b.value},_setStateVal:function(a,b){var c=this._stateProxy;c&&a in c&&!this._state.get(a,q)?c[a]=b:this._state.add(a,m,b)},_setAttrVal:function(a,b,c,d,f,g){var p,q,h=this,i=!0,j=g||this._state.data[a]||{},k=j.validator,l=j.setter,m=j.initializing,n=this._getStateVal(a,j),o=b||a;return k&&(k.call||(k=this[k]),k&&(q=k.call(h,d,o,f),!q&&m&&(d=j.defaultValue,q=!0))),!k||q?(l&&(l.call||(l=this[l]),l&&(p=l.call(h,d,o,f),p===t?m?d=j.defaultValue:i=!1:void 0!==p&&(d=p))),i&&(b||d!==n||e.isObject(d)?(r in j||(j.initValue=d),h._setStateVal(a,d)):i=!1)):i=!1,i},setAttrs:function(a,b){return this._setAttrs(a,b)},_setAttrs:function(a,b){var c;for(c in a)a.hasOwnProperty(c)&&this.set(c,a[c],b);return this},getAttrs:function(a){return this._getAttrs(a)},_getAttrs:function(a){var c,e,f,b={},g=a===!0;for((!a||g)&&(a=d.keys(this._state.data)),e=0,f=a.length;f>e;e++)c=a[e],g&&this._getStateVal(c)==this._state.get(c,r)||(b[c]=this.get(c));return b},addAttrs:function(a,b,c){return a&&(this._tCfgs=a,this._tVals=b?this._normAttrVals(b):null,this._addAttrs(a,this._tVals,c),this._tCfgs=this._tVals=null),this},_addAttrs:function(a,b,c){var f,g,h,d=this._tCfgs,e=this._tVals;for(f in a)a.hasOwnProperty(f)&&(g=a[f],g.defaultValue=g.value,h=this._getAttrInitVal(f,g,e),void 0!==h&&(g.value=h),d[f]&&(d[f]=void 0),this.addAttr(f,g,c))},_protectAttrs:c.protectAttrs,_normAttrVals:function(a){var b,c,d,e,g,h;if(!a)return null;b={};for(h in a)a.hasOwnProperty(h)&&(-1!==h.indexOf(f)?(d=h.split(f),e=d.shift(),c=c||{},g=c[e]=c[e]||[],g[g.length]={path:d,value:a[h]}):b[h]=a[h]);return{simple:b,complex:c}},_getAttrInitVal:function(a,b,c){var g,j,k,l,m,n,o,p,e=b.value,f=b.valueFn,h=!1,i=b.readOnly;if(!i&&c&&(j=c.simple,j&&j.hasOwnProperty(a)&&(e=j[a],h=!0)),f&&!h&&(f.call||(f=this[f]),f&&(g=f.call(this,a),e=g)),!i&&c&&(k=c.complex,k&&k.hasOwnProperty(a)&&void 0!==e&&null!==e))for(p=k[a],l=0,m=p.length;m>l;++l)n=p[l].path,o=p[l].value,d.setValue(e,n,o);return e},_initAttrs:function(b,c,d){b=b||this.constructor.ATTRS;var e=a.Base,f=a.BaseCore,g=e&&a.instanceOf(this,e),h=!g&&f&&a.instanceOf(this,f);b&&!g&&!h&&this.addAttrs(a.AttributeCore.protectAttrs(b),c,d)}},a.AttributeCore=c},"3.10.1",{requires:["oop"]}),YUI.add("attribute-observable",function(a){function c(){this._ATTR_E_FACADE={},d.call(this,{emitFacade:!0})}var d=a.EventTarget,e="Change",f="broadcast";c._ATTR_CFG=[f],c.prototype={set:function(a,b,c){return this._setAttr(a,b,c)},_set:function(a,b,c){return this._setAttr(a,b,c,!0)},setAttrs:function(a,b){return this._setAttrs(a,b)},_setAttrs:function(a,b){var c;for(c in a)a.hasOwnProperty(c)&&this.set(c,a[c],b);return this},_fireAttrChange:function(b,c,d,f,g,h){var l,m,n,i=this,j=this._getFullType(b+e),k=i._state;h||(h=k.data[b]||{}),h.published||(n=i._publish(j),n.emitFacade=!0,n.defaultTargetOnly=!0,n.defaultFn=i._defAttrChangeFn,m=h.broadcast,void 0!==m&&(n.broadcast=m),h.published=!0),l=g?a.merge(g):i._ATTR_E_FACADE,l.attrName=b,l.subAttrName=c,l.prevVal=d,l.newVal=f,i.fire(j,l)},_defAttrChangeFn:function(a){this._setAttrVal(a.attrName,a.subAttrName,a.prevVal,a.newVal,a.opts)?a.newVal=this.get(a.attrName):a.stopImmediatePropagation()}},a.mix(c,d,!1,null,1),a.AttributeObservable=c,a.AttributeEvents=c},"3.10.1",{requires:["event-custom"]}),YUI.add("attribute-extras",function(a){function c(){}var d="broadcast",e="published",f="initValue",g={readOnly:1,writeOnce:1,getter:1,broadcast:1};c.prototype={modifyAttr:function(a,b){var f,h,c=this;if(c.attrAdded(a)){c._isLazyAttr(a)&&c._addLazyAttr(a),h=c._state;for(f in b)g[f]&&b.hasOwnProperty(f)&&(h.add(a,f,b[f]),f===d&&h.remove(a,e))}},removeAttr:function(a){this._state.removeAll(a)},reset:function(b){var c=this;return b?(c._isLazyAttr(b)&&c._addLazyAttr(b),c.set(b,c._state.get(b,f))):a.each(c._state.data,function(a,b){c.reset(b)}),c},_getAttrCfg:function(b){var c,d=this._state; +return b?c=d.getAll(b)||{}:(c={},a.each(d.data,function(a,b){c[b]=d.getAll(b)})),c}},a.AttributeExtras=c},"3.10.1",{requires:["oop"]}),YUI.add("attribute-base",function(a){function c(){a.AttributeCore.apply(this,arguments),a.AttributeObservable.apply(this,arguments),a.AttributeExtras.apply(this,arguments)}a.mix(c,a.AttributeCore,!1,null,1),a.mix(c,a.AttributeExtras,!1,null,1),a.mix(c,a.AttributeObservable,!0,null,1),c.INVALID_VALUE=a.AttributeCore.INVALID_VALUE,c._ATTR_CFG=a.AttributeCore._ATTR_CFG.concat(a.AttributeObservable._ATTR_CFG),c.protectAttrs=a.AttributeCore.protectAttrs,a.Attribute=c},"3.10.1",{requires:["attribute-core","attribute-observable","attribute-extras"]}),YUI.add("base-core",function(a){function c(a){this._BaseInvoked||(this._BaseInvoked=!0,this._initBase(a))}var d=a.Object,e=a.Lang,f=".",g="initialized",h="destroyed",i="initializer",j="value",k=Object.prototype.constructor,l="deep",m="shallow",n="destructor",o=a.AttributeCore,p=function(a,b,c){var d;for(d in b)c[d]&&(a[d]=b[d]);return a};c._ATTR_CFG=o._ATTR_CFG.concat("cloneDefaultValue"),c._NON_ATTRS_CFG=["plugins"],c.NAME="baseCore",c.ATTRS={initialized:{readOnly:!0,value:!1},destroyed:{readOnly:!0,value:!1}},c.modifyAttrs=function(b,c){"function"!=typeof b&&(c=b,b=this);var d,e,f;if(d=b.ATTRS||(b.ATTRS={}),c){b._CACHED_CLASS_DATA=null;for(f in c)c.hasOwnProperty(f)&&(e=d[f]||(d[f]={}),a.mix(e,c[f],!0))}},c.prototype={_initBase:function(b){a.stamp(this),this._initAttribute(b);var c=a.Plugin&&a.Plugin.Host;this._initPlugins&&c&&c.call(this),this._lazyAddAttrs!==!1&&(this._lazyAddAttrs=!0),this.name=this.constructor.NAME,this.init.apply(this,arguments)},_initAttribute:function(){o.call(this)},init:function(a){return this._baseInit(a),this},_baseInit:function(a){this._initHierarchy(a),this._initPlugins&&this._initPlugins(a),this._set(g,!0)},destroy:function(){return this._baseDestroy(),this},_baseDestroy:function(){this._destroyPlugins&&this._destroyPlugins(),this._destroyHierarchy(),this._set(h,!0)},_getClasses:function(){return this._classes||this._initHierarchyData(),this._classes},_getAttrCfgs:function(){return this._attrs||this._initHierarchyData(),this._attrs},_filterAttrCfgs:function(a,b){var e,f,g,h,i,j,k,c=null,l=this._filteredAttrs,m=a.ATTRS;if(m)for(j in m)if(k=b[j],k&&!l.hasOwnProperty(j)&&(c||(c={}),e=c[j]=p({},k,this._attrCfgHash()),l[j]=!0,f=e.value,f&&"object"==typeof f&&this._cloneDefaultValue(j,e),b._subAttrs&&b._subAttrs.hasOwnProperty(j))){h=b._subAttrs[j];for(i in h)g=h[i],g.path&&d.setValue(e.value,g.path,g.value)}return c},_filterAdHocAttrs:function(a,b){var c,e,d=this._nonAttrs;if(b){c={};for(e in b)!a[e]&&!d[e]&&b.hasOwnProperty(e)&&(c[e]={value:b[e]})}return c},_initHierarchyData:function(){var c,d,e,f,g,i,a=this.constructor,b=a._CACHED_CLASS_DATA,h=!a._ATTR_CFG_HASH,j={},k=[],l=[];if(c=a,!b){for(;c;){if(k[k.length]=c,c.ATTRS&&(l[l.length]=c.ATTRS),h&&(f=c._ATTR_CFG,g=g||{},f))for(d=0,e=f.length;e>d;d+=1)g[f[d]]=!0;if(i=c._NON_ATTRS_CFG)for(d=0,e=i.length;e>d;d++)j[i[d]]=!0;c=c.superclass?c.superclass.constructor:null}h&&(a._ATTR_CFG_HASH=g),b=a._CACHED_CLASS_DATA={classes:k,nonAttrs:j,attrs:this._aggregateAttrs(l)}}this._classes=b.classes,this._attrs=b.attrs,this._nonAttrs=b.nonAttrs},_attrCfgHash:function(){return this.constructor._ATTR_CFG_HASH},_cloneDefaultValue:function(b,c){var d=c.value,f=c.cloneDefaultValue;f===l||f===!0?c.value=a.clone(d):f===m?c.value=a.merge(d):void 0===f&&(k===d.constructor||e.isArray(d))&&(c.value=a.clone(d))},_aggregateAttrs:function(a){var b,c,d,e,g,h,k,i=this._attrCfgHash(),l={};if(a)for(h=a.length-1;h>=0;--h){c=a[h];for(b in c)c.hasOwnProperty(b)&&(e=p({},c[b],i),g=null,-1!==b.indexOf(f)&&(g=b.split(f),b=g.shift()),k=l[b],g&&k&&k.value?(d=l._subAttrs,d||(d=l._subAttrs={}),d[b]||(d[b]={}),d[b][g.join(f)]={value:e.value,path:g}):g||(k?(k.valueFn&&j in e&&(k.valueFn=null),p(k,e,i)):l[b]=e))}return l},_initHierarchy:function(a){var c,d,e,f,g,h,j,b=this._lazyAddAttrs,k=this._getClasses(),l=this._getAttrCfgs(),m=k.length-1;for(this._filteredAttrs={},e=m;e>=0;e--){if(c=k[e],d=c.prototype,j=c._yuibuild&&c._yuibuild.exts,j)for(f=0,g=j.length;g>f;f++)j[f].apply(this,arguments);if(this.addAttrs(this._filterAttrCfgs(c,l),a,b),this._allowAdHocAttrs&&e===m&&this.addAttrs(this._filterAdHocAttrs(l,a),a,b),d.hasOwnProperty(i)&&d.initializer.apply(this,arguments),j)for(f=0;g>f;f++)h=j[f].prototype,h.hasOwnProperty(i)&&h.initializer.apply(this,arguments)}this._filteredAttrs=null},_destroyHierarchy:function(){var a,b,c,d,e,f,g,h,i=this._getClasses();for(c=0,d=i.length;d>c;c++){if(a=i[c],b=a.prototype,g=a._yuibuild&&a._yuibuild.exts,g)for(e=0,f=g.length;f>e;e++)h=g[e].prototype,h.hasOwnProperty(n)&&h.destructor.apply(this,arguments);b.hasOwnProperty(n)&&b.destructor.apply(this,arguments)}},toString:function(){return this.name+"["+a.stamp(this,!0)+"]"}},a.mix(c,o,!1,null,1),c.prototype.constructor=c,a.BaseCore=c},"3.10.1",{requires:["attribute-core"]}),YUI.add("base-observable",function(a){function c(){}var d=a.Lang,e="destroy",f="init",g="bubbleTargets",h="_bubbleTargets",i=a.AttributeObservable,j=a.BaseCore;c._ATTR_CFG=i._ATTR_CFG.concat(),c._NON_ATTRS_CFG=["on","after","bubbleTargets"],c.prototype={_initAttribute:function(){j.prototype._initAttribute.apply(this,arguments),i.call(this),this._eventPrefix=this.constructor.EVENT_PREFIX||this.constructor.NAME,this._yuievt.config.prefix=this._eventPrefix},init:function(a){var b=this._getFullType(f),c=this._publish(b);return c.emitFacade=!0,c.fireOnce=!0,c.defaultTargetOnly=!0,c.defaultFn=this._defInitFn,this._preInitEventCfg(a),this.fire(b,{cfg:a}),this},_preInitEventCfg:function(a){a&&(a.on&&this.on(a.on),a.after&&this.after(a.after));var b,c,e,f=a&&g in a;if(f||h in this)if(e=f?a&&a.bubbleTargets:this._bubbleTargets,d.isArray(e))for(b=0,c=e.length;c>b;b++)this.addTarget(e[b]);else e&&this.addTarget(e)},destroy:function(){return this.publish(e,{fireOnce:!0,defaultTargetOnly:!0,defaultFn:this._defDestroyFn}),this.fire(e),this.detachAll(),this},_defInitFn:function(a){this._baseInit(a.cfg)},_defDestroyFn:function(a){this._baseDestroy(a.cfg)}},a.mix(c,i,!1,null,1),a.BaseObservable=c},"3.10.1",{requires:["attribute-observable"]}),YUI.add("base-base",function(a){function c(){f.apply(this,arguments),g.apply(this,arguments),e.apply(this,arguments)}var d=a.AttributeCore,e=a.AttributeExtras,f=a.BaseCore,g=a.BaseObservable;c._ATTR_CFG=f._ATTR_CFG.concat(g._ATTR_CFG),c._NON_ATTRS_CFG=f._NON_ATTRS_CFG.concat(g._NON_ATTRS_CFG),c.NAME="base",c.ATTRS=d.protectAttrs(f.ATTRS),c.modifyAttrs=f.modifyAttrs,a.mix(c,f,!1,null,1),a.mix(c,e,!1,null,1),a.mix(c,g,!0,null,1),c.prototype.constructor=c,a.Base=c},"3.10.1",{requires:["attribute-base","base-core","base-observable"]}),YUI.add("base-build",function(a){function c(a,b,c){c[a]&&(b[a]=(b[a]||[]).concat(c[a]))}function d(a,b,d){d._ATTR_CFG&&(b._ATTR_CFG_HASH=null,c.apply(null,arguments))}function e(a,b,c){f.modifyAttrs(b,c.ATTRS)}var l,f=a.BaseCore,g=a.Base,h=a.Lang,i="initializer",j="destructor",k=["_PLUG","_UNPLUG"];g._build=function(b,c,d,e,f,h){var p,q,r,s,t,u,k=g._build,l=k._ctor(c,h),m=k._cfg(c,h,d),n=k._mixCust,o=l._yuibuild.dynamic;for(p=0,q=d.length;q>p;p++)r=d[p],s=r.prototype,t=s[i],u=s[j],delete s[i],delete s[j],a.mix(l,r,!0,null,1),n(l,r,m),t&&(s[i]=t),u&&(s[j]=u),l._yuibuild.exts.push(r);return e&&a.mix(l.prototype,e,!0),f&&(a.mix(l,k._clean(f,m),!0),n(l,f,m)),l.prototype.hasImpl=k._impl,o&&(l.NAME=b,l.prototype.constructor=l,l.modifyAttrs=c.modifyAttrs),l},l=g._build,a.mix(l,{_mixCust:function(b,c,d){var e,f,g,i,j,k;if(d&&(e=d.aggregates,f=d.custom,g=d.statics),g&&a.mix(b,c,!0,g),e)for(k=0,j=e.length;j>k;k++)i=e[k],!b.hasOwnProperty(i)&&c.hasOwnProperty(i)&&(b[i]=h.isArray(c[i])?[]:{}),a.aggregate(b,c,!0,[i]);if(f)for(k in f)f.hasOwnProperty(k)&&f[k](k,b,c)},_tmpl:function(b){function c(){c.superclass.constructor.apply(this,arguments)}return a.extend(c,b),c},_impl:function(a){var c,d,e,f,g,h,b=this._getClasses();for(c=0,d=b.length;d>c;c++)if(e=b[c],e._yuibuild)for(f=e._yuibuild.exts,g=f.length,h=0;g>h;h++)if(f[h]===a)return!0;return!1},_ctor:function(a,b){var c=b&&!1===b.dynamic?!1:!0,d=c?l._tmpl(a):a,e=d._yuibuild;return e||(e=d._yuibuild={}),e.id=e.id||null,e.exts=e.exts||[],e.dynamic=c,d},_cfg:function(b,c,d){for(var h,m,n,e=[],f={},g=[],i=c&&c.aggregates,j=c&&c.custom,k=c&&c.statics,l=b;l&&l.prototype;)h=l._buildCfg,h&&(h.aggregates&&(e=e.concat(h.aggregates)),h.custom&&a.mix(f,h.custom,!0),h.statics&&(g=g.concat(h.statics))),l=l.superclass?l.superclass.constructor:null;if(d)for(m=0,n=d.length;n>m;m++)l=d[m],h=l._buildCfg,h&&(h.aggregates&&(e=e.concat(h.aggregates)),h.custom&&a.mix(f,h.custom,!0),h.statics&&(g=g.concat(h.statics)));return i&&(e=e.concat(i)),j&&a.mix(f,c.cfgBuild,!0),k&&(g=g.concat(k)),{aggregates:e,custom:f,statics:g}},_clean:function(b,c){var d,e,f,g=a.merge(b),h=c.aggregates,i=c.custom;for(d in i)g.hasOwnProperty(d)&&delete g[d];for(e=0,f=h.length;f>e;e++)d=h[e],g.hasOwnProperty(d)&&delete g[d];return g}}),g.build=function(a,b,c,d){return l(a,b,c,null,null,d)},g.create=function(a,b,c,d,e){return l(a,b,c,d,e)},g.mix=function(a,b){return a._CACHED_CLASS_DATA&&(a._CACHED_CLASS_DATA=null),l(null,a,b,null,null,{dynamic:!1})},f._buildCfg={aggregates:k.concat(),custom:{ATTRS:e,_ATTR_CFG:d,_NON_ATTRS_CFG:c}},g._buildCfg={aggregates:k.concat(),custom:{ATTRS:e,_ATTR_CFG:d,_NON_ATTRS_CFG:c}}},"3.10.1",{requires:["base-base"]}),YUI.add("history-hash-ie",function(a){if(a.UA.ie&&!a.HistoryBase.nativeHashChange){var c=a.Do,d=YUI.namespace("Env.HistoryHash"),e=a.HistoryHash,f=d._iframe,g=a.config.win;e.getIframeHash=function(){if(!f||!f.contentWindow)return"";var a=e.hashPrefix,b=f.contentWindow.location.hash.substr(1);return a&&0===b.indexOf(a)?b.replace(a,""):b},e._updateIframe=function(a,b){var c=f&&f.contentWindow&&f.contentWindow.document,d=c&&c.location;c&&d&&(b?d.replace("#"===a.charAt(0)?a:"#"+a):(c.open().close(),d.hash=a))},c.before(e._updateIframe,e,"replaceHash",e,!0),f||a.on("domready",function(){var b=e.getHash();f=d._iframe=a.Node.getDOMNode(a.Node.create('')),a.config.doc.documentElement.appendChild(f),e._updateIframe(b||"#"),a.on("hashchange",function(a){b=a.newHash,e.getIframeHash()!==b&&e._updateIframe(b)},g),a.later(50,null,function(){var a=e.getIframeHash();a!==b&&e.setHash(a)},null,!0)})}},"3.10.1",{requires:["history-hash","node-base"]}),YUI.add("router",function(a){function c(){c.superclass.constructor.apply(this,arguments)}var d=a.HistoryHash,e=a.QueryString,f=a.Array,g=a.config.win,h=[],i=[],j="ready";a.Router=a.extend(c,a.Base,{_regexPathParam:/([:*])([\w\-]+)?/g,_regexUrlQuery:/\?([^#]*).*$/,_regexUrlOrigin:/^(?:[^\/#?:]+:\/\/|\/\/)[^\/]*/,initializer:function(b){var c=this;c._html5=c.get("html5"),c._routes=[],c._url=c._getURL(),c._setRoutes(b&&b.routes?b.routes:c.get("routes")),c._html5?(c._history=new a.HistoryHTML5({force:!0}),c._historyEvents=a.after("history:change",c._afterHistoryChange,c)):c._historyEvents=a.on("hashchange",c._afterHistoryChange,g,c),c.publish(j,{defaultFn:c._defReadyFn,fireOnce:!0,preventable:!1}),c.once("initializedChange",function(){a.once("load",function(){setTimeout(function(){c.fire(j,{dispatched:!!c._dispatched})},20)})}),h.push(this)},destructor:function(){var a=f.indexOf(h,this);a>-1&&h.splice(a,1),this._historyEvents&&this._historyEvents.detach()},dispatch:function(){return this.once(j,function(){this._ready=!0,this.upgrade()||this._dispatch(this._getPath(),this._getURL())}),this},getPath:function(){return this._getPath()},hasRoute:function(a){var b;return this._hasSameOrigin(a)?(this._html5||(a=this._upgradeURL(a)),b=this.removeQuery(this.removeRoot(a)),!!this.match(b).length):!1},match:function(a){return f.filter(this._routes,function(b){return a.search(b.regex)>-1})},removeRoot:function(a){var b=this.get("root");return a=a.replace(this._regexUrlOrigin,""),b&&0===a.indexOf(b)&&(a=a.substring(b.length)),"/"===a.charAt(0)?a:"/"+a},removeQuery:function(a){return a.replace(/\?.*$/,"")},replace:function(a){return this._queue(a,!0)},route:function(a,b){b=f.flatten(f(arguments,1,!0));var c=[];return this._routes.push({callbacks:b,keys:c,path:a,regex:this._getRegex(a,c),callback:b[0]}),this},save:function(a){return this._queue(a)},upgrade:function(){if(!this._html5)return!1;var a=this._getHashPath();return a?(this.once(j,function(){this.replace(a)}),!0):!1},_decode:function(a){return decodeURIComponent(a.replace(/\+/g," "))},_dequeue:function(){var c,b=this;return YUI.Env.windowLoaded?(c=i.shift(),c?c():this):(a.once("load",function(){b._dequeue()}),this)},_dispatch:function(b,c,d){var j,k,l,e=this,g=e._decode,h=e.match(b),i=[];return e._dispatching=e._dispatched=!0,h&&h.length?(k=e._getRequest(b,c,d),l=e._getResponse(k),k.next=function(c){var d,m,n;c?"route"===c?(i=[],k.next()):a.error(c):(d=i.shift())?("string"==typeof d&&(m=d,d=e[m],d||a.error("Router: Callback not found: "+m,null,"router")),k.pendingCallbacks=i.length,d.call(e,k,l,k.next)):(n=h.shift())&&(i=n.callbacks.concat(),j=f.map(n.regex.exec(b)||[],g),k.params=j.length===n.keys.length+1?f.hash(n.keys,j.slice(1)):j.concat(),k.pendingRoutes=h.length,k.next())},k.next(),e._dispatching=!1,e._dequeue()):(e._dispatching=!1,e)},_getHashPath:function(a){return a||(a=d.getHash()),a&&"/"===a.charAt(0)?this._joinURL(a):""},_getOrigin:function(){var b=a.getLocation();return b.origin||b.protocol+"//"+b.host},_getPath:function(){var b=!this._html5&&this._getHashPath()||a.getLocation().pathname;return this.removeQuery(this.removeRoot(b))},_getPathRoot:function(){var d,b="/",c=a.getLocation().pathname;return c.charAt(c.length-1)===b?c:(d=c.split(b),d.pop(),d.join(b)+b)},_getQuery:function(){var c,e,b=a.getLocation();return this._html5?b.search.substring(1):(c=d.getHash(),e=c.match(this._regexUrlQuery),c&&e?e[1]:b.search.substring(1))},_getRegex:function(a,b){return a instanceof RegExp?a:"*"===a?/.*/:(a=a.replace(this._regexPathParam,function(a,c,d){return d?(b.push(d),"*"===c?"(.*?)":"([^/#?]*)"):"*"===c?".*":a}),new RegExp("^"+a+"$"))},_getRequest:function(a,b,c){return{path:a,query:this._parseQuery(this._getQuery()),url:b,src:c}},_getResponse:function(a){var b=function(){return a.next.apply(this,arguments)};return b.req=a,b},_getRoutes:function(){return this._routes.concat()},_getURL:function(){var b=a.getLocation().toString();return this._html5||(b=this._upgradeURL(b)),b},_hasSameOrigin:function(b){var c=(b&&b.match(this._regexUrlOrigin)||[])[0];return c&&0===c.indexOf("//")&&(c=a.getLocation().protocol+c),!c||c===this._getOrigin()},_joinURL:function(a){var b=this.get("root");return a=this.removeRoot(a),"/"===a.charAt(0)&&(a=a.substring(1)),b&&"/"===b.charAt(b.length-1)?b+a:b+"/"+a},_normalizePath:function(a){var d,e,f,g,h,i,b="..",c="/";if(!a||a===c)return c;for(g=a.split(c),i=[],d=0,e=g.length;e>d;++d)h=g[d],h===b?i.pop():h&&i.push(h);return f=c+i.join(c),f!==c&&a.charAt(a.length-1)===c&&(f+=c),f},_parseQuery:e&&e.parse?e.parse:function(a){for(var g,b=this._decode,c=a.split("&"),d=0,e=c.length,f={};e>d;++d)g=c[d].split("="),g[0]&&(f[b(g[0])]=b(g[1]||""));return f},_queue:function(){var b=arguments,c=this;return i.push(function(){return c._html5?a.UA.ios&&a.UA.ios<5?c._save.apply(c,b):setTimeout(function(){c._save.apply(c,b)},1):(c._dispatching=!0,c._save.apply(c,b)),c}),this._dispatching?this:this._dequeue()},_resolvePath:function(b){return b?("/"!==b.charAt(0)&&(b=this._getPathRoot()+b),this._normalizePath(b)):a.getLocation().pathname},_resolveURL:function(b){var d,e,f,g,h,c=b&&b.match(this._regexURL);return c?(d=c[1],e=c[2],f=c[3],g=c[4],d?(0===d.indexOf("//")&&(d=a.getLocation().protocol+d),d+(e||"/")+(f||"")+(g||"")):(h=this._getOrigin()+this._resolvePath(e),e||f?h+(f||"")+(g||""):(f=this._getQuery(),h+(f?"?"+f:"")+(g||"")))):a.getLocation().toString()},_save:function(b,c){var f,g,e="string"==typeof b;return e&&!this._hasSameOrigin(b)?(a.error("Security error: The new URL must be of the same origin as the current URL."),this):(e&&(b=this._joinURL(b)),this._ready=!0,this._html5?this._history[c?"replace":"add"](null,{url:b}):(f=a.getLocation().pathname,g=this.get("root"),(g===f||g===this._getPathRoot())&&(b=this.removeRoot(b)),b===d.getHash()?a.Router.dispatch():d[c?"replaceHash":"setHash"](b)),this)},_setRoutes:function(a){return this._routes=[],f.each(a,function(a){var b=a.callbacks||a.callback;this.route(a.path,b)},this),this._routes.concat()},_upgradeURL:function(b){if(!this._hasSameOrigin(b))return b;var e,c=(b.match(/#(.*)$/)||[])[1]||"",d=a.HistoryHash.hashPrefix;return d&&0===c.indexOf(d)&&(c=c.replace(d,"")),c&&(e=this._getHashPath(c))?this._resolveURL(e):b},_afterHistoryChange:function(a){var b=this,c=a.src,d=b._url,e=b._getURL();b._url=e,("popstate"!==c||b._ready&&d.replace(/#.*$/,"")!==e.replace(/#.*$/,""))&&b._dispatch(b._getPath(),e,c)},_defReadyFn:function(){this._ready=!0}},{NAME:"router",ATTRS:{html5:{valueFn:function(){return a.Router.html5},writeOnce:"initOnly"},root:{value:""},routes:{value:[],getter:"_getRoutes",setter:"_setRoutes"}},html5:a.HistoryBase.html5&&(!a.UA.android||a.UA.android>=3),_instances:h,dispatch:function(){var a,b,c;for(a=0,b=h.length;b>a;a+=1)c=h[a],c&&c._dispatch(c._getPath(),c._getURL())}}),a.Controller=a.Router},"3.10.1",{optional:["querystring-parse"],requires:["array-extras","base-build","history"]}),YUI.add("pjax-base",function(a){function c(){}var d=a.config.win,e=a.ClassNameManager.getClassName("pjax"),f="navigate";c.prototype={_regexURL:/^((?:[^\/#?:]+:\/\/|\/\/)[^\/]*)?([^?#]*)(\?[^#]*)?(#.*)?$/,initializer:function(){this.publish(f,{defaultFn:this._defNavigateFn}),this.get("html5")&&this._pjaxBindUI()},destructor:function(){this._pjaxEvents&&this._pjaxEvents.detach()},navigate:function(b,c){return b=this._resolveURL(b),this._navigate(b,c)?!0:(this._hasSameOrigin(b)||a.error("Security error: The new URL must be of the same origin as the current URL."),!1)},_isLinkSameOrigin:function(b){var g,c=a.getLocation(),d=c.protocol,e=c.hostname,f=parseInt(c.port,10)||null;return b.get("protocol")!==d||b.get("hostname")!==e?!1:(g=parseInt(b.get("port"),10)||null,"http:"===d?(f||(f=80),g||(g=80)):"https:"===d&&(f||(f=443),g||(g=443)),g===f)},_navigate:function(b,c){if(b=this._upgradeURL(b),!this.hasRoute(b))return!1;c=a.merge(c,{url:b});var g,h,e=this._getURL();if(h=b.replace(/(#.*)$/,function(a,b,c){return g=b,a.substring(c)}),g&&h===e.replace(/#.*$/,"")){if(!this.get("navigateOnHash"))return!1;c.hash=g}return"replace"in c||(c.replace=b===e),this.get("html5")||c.force?this.fire(f,c):d&&(c.replace?d.location.replace(b):d.location=b),!0},_pjaxBindUI:function(){this._pjaxEvents||(this._pjaxEvents=a.one("body").delegate("click",this._onLinkClick,this.get("linkSelector"),this))},_defNavigateFn:function(a){this[a.replace?"replace":"save"](a.url),d&&this.get("scrollToTop")&&setTimeout(function(){d.scroll(0,0)},1)},_onLinkClick:function(a){var b,c,d;1!==a.button||a.ctrlKey||a.metaKey||(b=a.currentTarget,"A"===b.get("tagName").toUpperCase()&&this._isLinkSameOrigin(b)&&(c=b.get("href"),c&&(d=this._navigate(c,{originEvent:a}),d&&a.preventDefault())))}},c.ATTRS={linkSelector:{value:"a."+e,writeOnce:"initOnly"},navigateOnHash:{value:!1},scrollToTop:{value:!0}},a.PjaxBase=c},"3.10.1",{requires:["classnamemanager","node-event-delegate","router"]}),YUI.add("querystring-stringify-simple",function(a){var c=a.namespace("QueryString"),d=encodeURIComponent;c.stringify=function(b,c){var g,h,i,e=[],f=c&&c.arrayKey?!0:!1;for(g in b)if(b.hasOwnProperty(g))if(a.Lang.isArray(b[g]))for(h=0,i=b[g].length;i>h;h++)e.push(d(f?g+"[]":g)+"="+d(b[g][h]));else e.push(d(g)+"="+d(b[g]));return e.join("&")}},"3.10.1",{requires:["yui-base"]}),YUI.add("io-base",function(a){function c(b){var c=this;c._uid="io:"+g++,c._init(b),a.io._map[c._uid]=c}var d=["start","complete","end","success","failure","progress"],e=["status","statusText","responseText","responseXML"],f=a.config.win,g=0;c.prototype={_id:0,_headers:{"X-Requested-With":"XMLHttpRequest"},_timeout:{},_init:function(b){var e,f,c=this;for(c.cfg=b||{},a.augment(c,a.EventTarget),e=0,f=d.length;f>e;++e)c.publish("io:"+d[e],a.merge({broadcast:1},b)),c.publish("io-trn:"+d[e],b)},_create:function(b,c){var i,d=this,e={id:a.Lang.isNumber(c)?c:d._id++,uid:d._uid},g=b.xdr?b.xdr.use:null,h=b.form&&b.form.upload?"iframe":null;return"native"===g&&(g=a.UA.ie&&!k?"xdr":null,d.setHeader("X-Requested-With")),i=g||h,e=i?a.merge(a.IO.customTransport(i),e):a.merge(a.IO.defaultTransport(),e),e.notify&&(b.notify=function(a,b,c){d.notify(a,b,c)}),i||f&&f.FormData&&b.data instanceof f.FormData&&(e.c.upload.onprogress=function(a){d.progress(e,a,b)},e.c.onload=function(a){d.load(e,a,b)},e.c.onerror=function(a){d.error(e,a,b)},e.upload=!0),e},_destroy:function(b){f&&!b.notify&&!b.xdr&&(h&&!b.upload?b.c.onreadystatechange=null:b.upload?(b.c.upload.onprogress=null,b.c.onload=null,b.c.onerror=null):a.UA.ie&&!b.e&&b.c.abort()),b=b.c=null},_evt:function(b,c,e){var g,f=this,h=e.arguments,i=f.cfg.emitFacade,j="io:"+b,k="io-trn:"+b;this.detach(k),c.e&&(c.c={status:0,statusText:c.e}),g=[i?{id:c.id,data:c.c,cfg:e,arguments:h}:c.id],i||(b===d[0]||b===d[2]?h&&g.push(h):(c.evt?g.push(c.evt):g.push(c.c),h&&g.push(h))),g.unshift(j),f.fire.apply(f,g),e.on&&(g[0]=k,f.once(k,e.on[b],e.context||a),f.fire.apply(f,g))},start:function(a,b){this._evt(d[0],a,b)},complete:function(a,b){this._evt(d[1],a,b)},end:function(a,b){this._evt(d[2],a,b),this._destroy(a)},success:function(a,b){this._evt(d[3],a,b),this.end(a,b)},failure:function(a,b){this._evt(d[4],a,b),this.end(a,b)},progress:function(a,b,c){a.evt=b,this._evt(d[5],a,c)},load:function(a,b,c){a.evt=b.target,this._evt(d[1],a,c)},error:function(a,b,c){a.evt=b,this._evt(d[4],a,c)},_retry:function(a,b,c){return this._destroy(a),c.xdr.use="flash",this.send(b,c,a.id)},_concat:function(a,b){return a+=(-1===a.indexOf("?")?"?":"&")+b},setHeader:function(a,b){b?this._headers[a]=b:delete this._headers[a]},_setHeaders:function(b,c){c=a.merge(this._headers,c),a.Object.each(c,function(a,d){"disable"!==a&&b.setRequestHeader(d,c[d])})},_startTimeout:function(a,b){var c=this;c._timeout[a.id]=setTimeout(function(){c._abort(a,"timeout")},b)},_clearTimeout:function(a){clearTimeout(this._timeout[a]),delete this._timeout[a]},_result:function(a,b){var c;try{c=a.c.status}catch(d){c=0}c>=200&&300>c||304===c||1223===c?this.success(a,b):this.failure(a,b)},_rS:function(a,b){var c=this;4===a.c.readyState&&(b.timeout&&c._clearTimeout(a.id),setTimeout(function(){c.complete(a,b),c._result(a,b)},0))},_abort:function(a,b){a&&a.c&&(a.e=b,a.c.abort())},send:function(b,c,d){var f,g,h,i,j,l,m=this,n=b,o={};if(c=c?a.Object(c):{},f=m._create(c,d),g=c.method?c.method.toUpperCase():"GET",j=c.sync,l=c.data,a.Lang.isObject(l)&&!l.nodeType&&!f.upload&&a.QueryString&&a.QueryString.stringify&&(c.data=l=a.QueryString.stringify(l)),c.form){if(c.form.upload)return m.upload(f,b,c);l=m._serialize(c.form,l)}if(l||(l=""),l)switch(g){case"GET":case"HEAD":case"DELETE":n=m._concat(n,l),l="";break;case"POST":case"PUT":c.headers=a.merge({"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},c.headers)}if(f.xdr)return m.xdr(n,f,c);if(f.notify)return f.c.send(f,b,c);!j&&!f.upload&&(f.c.onreadystatechange=function(){m._rS(f,c)});try{if(f.c.open(g,n,!j,c.username||null,c.password||null),m._setHeaders(f.c,c.headers||{}),m.start(f,c),c.xdr&&c.xdr.credentials&&k&&(f.c.withCredentials=!0),f.c.send(l),j){for(h=0,i=e.length;i>h;++h)o[e[h]]=f.c[e[h]];return o.getAllResponseHeaders=function(){return f.c.getAllResponseHeaders()},o.getResponseHeader=function(a){return f.c.getResponseHeader(a)},m.complete(f,c),m._result(f,c),o}}catch(p){if(f.xdr)return m._retry(f,b,c);m.complete(f,c),m._result(f,c)}return c.timeout&&m._startTimeout(f,c.timeout),{id:f.id,abort:function(){return f.c?m._abort(f,"abort"):!1},isInProgress:function(){return f.c?f.c.readyState%4:!1},io:m}}},a.io=function(b,d){var e=a.io._map["io:0"]||new c;return e.send.apply(e,[b,d])},a.io.header=function(b,d){var e=a.io._map["io:0"]||new c;e.setHeader(b,d)},a.IO=c,a.io._map={};var h=f&&f.XMLHttpRequest,i=f&&f.XDomainRequest,j=f&&f.ActiveXObject,k=h&&"withCredentials"in new XMLHttpRequest;a.mix(a.IO,{_default:"xhr",defaultTransport:function(b){if(!b){var c={c:a.IO.transports[a.IO._default](),notify:"xhr"===a.IO._default?!1:!0};return c}a.IO._default=b},transports:{xhr:function(){return h?new XMLHttpRequest:j?new ActiveXObject("Microsoft.XMLHTTP"):null},xdr:function(){return i?new XDomainRequest:null},iframe:function(){return{}},flash:null,nodejs:null},customTransport:function(b){var c={c:a.IO.transports[b]()};return c["xdr"===b||"flash"===b?"xdr":"notify"]=!0,c}}),a.mix(a.IO.prototype,{notify:function(a,b,c){var d=this;switch(a){case"timeout":case"abort":case"transport error":b.c={status:0,statusText:a},a="failure";default:d[a].apply(d,[b,c])}}})},"3.10.1",{requires:["event-custom-base","querystring-stringify-simple"]}),YUI.add("pjax-content",function(a){function c(){}c.prototype={getContent:function(b){var g,c={},d=this.get("contentSelector"),e=a.Node.create(b||""),f=this.get("titleSelector");return c.node=d&&e?e.all(d).toFrag():e,f&&e&&(g=e.one(f),g&&(c.title=g.get("text"))),c},loadContent:function(b,c,d){var e=b.url;this._request&&this._request.abort(),this.get("addPjaxParam")&&(e=e.replace(/([^#]*)(#.*)?$/,function(a,b,c){return b+=(b.indexOf("?")>-1?"&":"?")+"pjax=1",b+(c||"")})),this._request=a.io(e,{arguments:{route:{req:b,res:c,next:d},url:e},context:this,headers:{"X-PJAX":"true"},timeout:this.get("timeout"),on:{complete:this._onPjaxIOComplete,end:this._onPjaxIOEnd}})},_onPjaxIOComplete:function(a,b,c){var d=this.getContent(b.responseText),e=c.route,f=e.req,g=e.res;f.ioURL=c.url,g.content=d,g.ioResponse=b,e.next()},_onPjaxIOEnd:function(){this._request=null}},c.ATTRS={addPjaxParam:{value:!0},contentSelector:{value:null},titleSelector:{value:"title"},timeout:{value:3e4}},a.PjaxContent=c},"3.10.1",{requires:["io-base","node-base","router"]}),YUI.add("pjax",function(a){var c=["loadContent","_defaultRoute"],d="error",e="load";a.Pjax=a.Base.create("pjax",a.Router,[a.PjaxBase,a.PjaxContent],{initializer:function(){this.publish(d,{defaultFn:this._defCompleteFn}),this.publish(e,{defaultFn:this._defCompleteFn})},_defaultRoute:function(a,b,c){var f=b.ioResponse,g=f.status,h=g>=200&&300>g?e:d;this.fire(h,{content:b.content,responseText:f.responseText,status:g,url:a.ioURL}),c()},_defCompleteFn:function(b){var c=this.get("container"),d=b.content;c&&d.node&&c.setHTML(d.node),d.title&&a.config.doc&&(a.config.doc.title=d.title)}},{ATTRS:{container:{value:null,setter:a.one},routes:{value:[{path:"*",callbacks:c}]}},defaultRoute:c})},"3.10.1",{requires:["pjax-base","pjax-content"]}),YUI.add("pluginhost-base",function(a){function c(){this._plugins={}}var d=a.Lang;c.prototype={plug:function(a,b){var c,e,f;if(d.isArray(a))for(c=0,e=a.length;e>c;c++)this.plug(a[c]);else a&&!d.isFunction(a)&&(b=a.cfg,a=a.fn),a&&a.NS&&(f=a.NS,b=b||{},b.host=this,this.hasPlugin(f)?this[f].setAttrs&&this[f].setAttrs(b):(this[f]=new a(b),this._plugins[f]=a));return this},unplug:function(a){var b=a,c=this._plugins;if(a)d.isFunction(a)&&(b=a.NS,b&&(!c[b]||c[b]!==a)&&(b=null)),b&&(this[b]&&(this[b].destroy&&this[b].destroy(),delete this[b]),c[b]&&delete c[b]);else for(b in this._plugins)this._plugins.hasOwnProperty(b)&&this.unplug(b);return this},hasPlugin:function(a){return this._plugins[a]&&this[a]},_initPlugins:function(a){this._plugins=this._plugins||{},this._initConfigPlugins&&this._initConfigPlugins(a)},_destroyPlugins:function(){this.unplug()}},a.namespace("Plugin").Host=c},"3.10.1",{requires:["yui-base"]}),YUI.add("pluginhost-config",function(a){var c=a.Plugin.Host,d=a.Lang;c.prototype._initConfigPlugins=function(b){var f,g,h,i,j,c=this._getClasses?this._getClasses():[this.constructor],d=[],e={};for(g=c.length-1;g>=0;g--)f=c[g],i=f._UNPLUG,i&&a.mix(e,i,!0),h=f._PLUG,h&&a.mix(d,h,!0);for(j in d)d.hasOwnProperty(j)&&(e[j]||this.plug(d[j]));b&&b.plugins&&this.plug(b.plugins)},c.plug=function(b,c,e){var f,g,h,i;if(b!==a.Base)for(b._PLUG=b._PLUG||{},d.isArray(c)||(e&&(c={fn:c,cfg:e}),c=[c]),g=0,h=c.length;h>g;g++)f=c[g],i=f.NAME||f.fn.NAME,b._PLUG[i]=f},c.unplug=function(b,c){var e,f,g,h;if(b!==a.Base)for(b._UNPLUG=b._UNPLUG||{},d.isArray(c)||(c=[c]),f=0,g=c.length;g>f;f++)e=c[f],h=e.NAME,b._PLUG[h]?delete b._PLUG[h]:b._UNPLUG[h]=e}},"3.10.1",{requires:["pluginhost-base"]}),YUI.add("node-pluginhost",function(a){a.Node.plug=function(){var b=a.Array(arguments);return b.unshift(a.Node),a.Plugin.Host.plug.apply(a.Base,b),a.Node},a.Node.unplug=function(){var b=a.Array(arguments);return b.unshift(a.Node),a.Plugin.Host.unplug.apply(a.Base,b),a.Node},a.mix(a.Node,a.Plugin.Host,!1,null,1),a.NodeList.prototype.plug=function(){var b=arguments;return a.NodeList.each(this,function(c){a.Node.prototype.plug.apply(a.one(c),b)}),this},a.NodeList.prototype.unplug=function(){var b=arguments;return a.NodeList.each(this,function(c){a.Node.prototype.unplug.apply(a.one(c),b)}),this}},"3.10.1",{requires:["node-base","pluginhost"]}),YUI.add("escape",function(a){var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`"},d={html:function(a){return(a+"").replace(/[&<>"'\/`]/g,d._htmlReplacer)},regex:function(a){return(a+"").replace(/[\-$\^*()+\[\]{}|\\,.?\s]/g,"\\$&")},_htmlReplacer:function(a){return c[a]}};d.regexp=d.regex,a.Escape=d},"3.10.1",{requires:["yui-base"]}),YUI.add("event-focus",function(a){function c(b,c,e){var i="_"+b+"Notifiers";a.Event.define(b,{_useActivate:h,_attach:function(e,f,g){return a.DOM.isWindow(e)?d._attach([b,function(a){f.fire(a)},e]):d._attach([c,this._proxy,e,this,f,g],{capture:!0})},_proxy:function(b,c,f){var n,g=b.target,j=b.currentTarget,k=g.getData(i),l=a.stamp(j._node),m=h||g!==j;c.currentTarget=f?g:j,c.container=f?j:null,k?m=!0:(k={},g.setData(i,k),m&&(n=d._attach([e,this._notify,g._node]).sub,n.once=!0)),k[l]||(k[l]=[]),k[l].push(c),m||this._notify(b)},_notify:function(b){var l,m,n,o,p,q,r,s,t,u,d=b.currentTarget,e=d.getData(i),f=d.ancestors(),h=d.get("ownerDocument"),j=[],k=e?a.Object.keys(e).length:0;for(d.clearData(i),f.push(d),h&&f.unshift(h),f._nodes.reverse(),k&&(q=k,f.some(function(b){var f,g,c=a.stamp(b),d=e[c];if(d)for(k--,f=0,g=d.length;g>f;++f)d[f].handle.sub.filter&&j.push(d[f]);return!k}),k=q);k&&(l=f.shift());){if(o=a.stamp(l),m=e[o]){for(r=0,s=m.length;s>r&&(n=m[r],t=n.handle.sub,p=!0,b.currentTarget=l,t.filter&&(p=t.filter.apply(l,[l,b].concat(t.args||[])),j.splice(g(j,n),1)),p&&(b.container=n.container,u=n.fire(b)),u!==!1&&2!==b.stopped);++r);delete m[o],k--}if(2!==b.stopped)for(r=0,s=j.length;s>r&&(n=j[r],t=n.handle.sub,t.filter.apply(l,[l,b].concat(t.args||[]))&&(b.container=n.container,b.currentTarget=l,u=n.fire(b)),u!==!1&&2!==b.stopped);++r);if(b.stopped)break}},on:function(a,b,c){b.handle=this._attach(a._node,c)},detach:function(a,b){b.handle.detach()},delegate:function(b,c,d,e){f(e)&&(c.filter=function(c){return a.Selector.test(c._node,e,b===c?null:b._node)}),c.handle=this._attach(b._node,d,!0)},detachDelegate:function(a,b){b.handle.detach()}},!0)}var d=a.Event,e=a.Lang,f=e.isString,g=a.Array.indexOf,h=function(){var d,b=!1,c=a.config.doc;return c&&(d=c.createElement("p"),d.setAttribute("onbeforeactivate",";"),b=void 0!==d.onbeforeactivate),b}();h?(c("focus","beforeactivate","focusin"),c("blur","beforedeactivate","focusout")):(c("focus","focus","focus"),c("blur","blur","blur"))},"3.10.1",{requires:["event-synthetic"]}),YUI.add("event-valuechange",function(a){var e,c="_valuechange",d="value",f={POLL_INTERVAL:50,TIMEOUT:1e4,_poll:function(b,d){var j,k,e=b._node,g=d.e,h=e&&e.value,i=b._data&&b._data[c];return e&&i?(k=i.prevVal,h!==k&&(i.prevVal=h,j={_event:g,currentTarget:g&&g.currentTarget||b,newVal:h,prevVal:k,target:g&&g.target||b},a.Object.each(i.notifiers,function(a){a.fire(j)}),f._refreshTimeout(b)),void 0):(f._stopPolling(b),void 0)},_refreshTimeout:function(a,b){if(a._node){var d=a.getData(c); +f._stopTimeout(a),d.timeout=setTimeout(function(){f._stopPolling(a,b)},f.TIMEOUT)}},_startPolling:function(b,e,g){if(b.test("input,textarea")){var h=b.getData(c);if(h||(h={prevVal:b.get(d)},b.setData(c,h)),h.notifiers||(h.notifiers={}),h.interval){if(!g.force)return h.notifiers[a.stamp(e)]=e,void 0;f._stopPolling(b,e)}h.notifiers[a.stamp(e)]=e,h.interval=setInterval(function(){f._poll(b,h,g)},f.POLL_INTERVAL),f._refreshTimeout(b,e)}},_stopPolling:function(b,d){if(b._node){var e=b.getData(c)||{};clearInterval(e.interval),delete e.interval,f._stopTimeout(b),d?e.notifiers&&delete e.notifiers[a.stamp(d)]:e.notifiers={}}},_stopTimeout:function(a){var b=a.getData(c)||{};clearTimeout(b.timeout),delete b.timeout},_onBlur:function(a,b){f._stopPolling(a.currentTarget,b)},_onFocus:function(a,b){var e=a.currentTarget,g=e.getData(c);g||(g={},e.setData(c,g)),g.prevVal=e.get(d),f._startPolling(e,b,{e:a})},_onKeyDown:function(a,b){f._startPolling(a.currentTarget,b,{e:a})},_onKeyUp:function(a,b){(229===a.charCode||197===a.charCode)&&f._startPolling(a.currentTarget,b,{e:a,force:!0})},_onMouseDown:function(a,b){f._startPolling(a.currentTarget,b,{e:a})},_onSubscribe:function(b,e,g,h){var i,j;if(j={blur:f._onBlur,focus:f._onFocus,keydown:f._onKeyDown,keyup:f._onKeyUp,mousedown:f._onMouseDown},i=g._valuechange={},h)i.delegated=!0,i.getNodes=function(){return b.all("input,textarea").filter(h)},i.getNodes().each(function(a){a.getData(c)||a.setData(c,{prevVal:a.get(d)})}),g._handles=a.delegate(j,b,h,null,g);else{if(!b.test("input,textarea"))return;b.getData(c)||b.setData(c,{prevVal:b.get(d)}),g._handles=b.on(j,null,null,g)}},_onUnsubscribe:function(a,b,c){var d=c._valuechange;c._handles&&c._handles.detach(),d.delegated?d.getNodes().each(function(a){f._stopPolling(a,c)}):f._stopPolling(a,c)}};e={detach:f._onUnsubscribe,on:f._onSubscribe,delegate:f._onSubscribe,detachDelegate:f._onUnsubscribe,publishConfig:{emitFacade:!0}},a.Event.define("valuechange",e),a.Event.define("valueChange",e),a.ValueChange=f},"3.10.1",{requires:["event-focus","event-synthetic"]}),YUI.add("autocomplete-base",function(a){function c(){}var d=a.Escape,e=a.Lang,f=a.Array,g=a.Object,h=e.isFunction,i=e.isString,j=e.trim,k=a.Attribute.INVALID_VALUE,l="_functionValidator",m="_sourceSuccess",n="allowBrowserAutocomplete",o="inputNode",p="query",q="queryDelimiter",r="requestTemplate",s="results",t="resultListLocator",u="value",v="valueChange",w="clear",x=p,y=s;c.prototype={initializer:function(){a.before(this._bindUIACBase,this,"bindUI"),a.before(this._syncUIACBase,this,"syncUI"),this.publish(w,{defaultFn:this._defClearFn}),this.publish(x,{defaultFn:this._defQueryFn}),this.publish(y,{defaultFn:this._defResultsFn})},destructor:function(){this._acBaseEvents&&this._acBaseEvents.detach(),delete this._acBaseEvents,delete this._cache,delete this._inputNode,delete this._rawSource},clearCache:function(){return this._cache&&(this._cache={}),this},sendRequest:function(b,c){var d,e=this.get("source");return b||""===b?this._set(p,b):b=this.get(p)||"",e&&(c||(c=this.get(r)),d=c?c.call(this,b):b,e.sendRequest({query:b,request:d,callback:{success:a.bind(this._onResponse,this,b)}})),this},_bindUIACBase:function(){var b=this.get(o),c=b&&b.tokenInput;return c&&(b=c.get(o),this._set("tokenInput",c)),b?(this._inputNode=b,this._acBaseEvents=new a.EventHandle([b.on(v,this._onInputValueChange,this),b.on("blur",this._onInputBlur,this),this.after(n+"Change",this._syncBrowserAutocomplete),this.after("sourceTypeChange",this._afterSourceTypeChange),this.after(v,this._afterValueChange)]),void 0):(a.error("No inputNode specified."),void 0)},_syncUIACBase:function(){this._syncBrowserAutocomplete(),this.set(u,this.get(o).get(u))},_createArraySource:function(a){var b=this;return{type:"array",sendRequest:function(c){b[m](a.concat(),c)}}},_createFunctionSource:function(a){var b=this;return{type:"function",sendRequest:function(c){function d(a){b[m](a||[],c)}var e;(e=a(c.query,d))&&d(e)}}},_createObjectSource:function(a){var b=this;return{type:"object",sendRequest:function(c){var d=c.query;b[m](g.owns(a,d)?a[d]:[],c)}}},_functionValidator:function(a){return null===a||h(a)},_getObjectValue:function(a,b){if(a){for(var c=0,d=b.length;a&&d>c;c++)a=a[b[c]];return a}},_parseResponse:function(a,b,c){var i,j,k,l,m,n,o,p,q,r,s,e={data:c,query:a,results:[]},f=this.get(t),g=[],h=b&&b.results;if(h&&f&&(h=f.call(this,h)),h&&h.length){for(i=this.get("resultFilters"),s=this.get("resultTextLocator"),n=0,o=h.length;o>n;++n)q=h[n],r=s?s.call(this,q):q.toString(),g.push({display:d.html(r),raw:q,text:r});for(n=0,o=i.length;o>n;++n){if(g=i[n].call(this,a,g.concat()),!g)return;if(!g.length)break}if(g.length){if(k=this.get("resultFormatter"),m=this.get("resultHighlighter"),p=this.get("maxResults"),p&&p>0&&g.length>p&&(g.length=p),m){if(l=m.call(this,a,g.concat()),!l)return;for(n=0,o=l.length;o>n;++n)q=g[n],q.highlighted=l[n],q.display=q.highlighted}if(k){if(j=k.call(this,a,g.concat()),!j)return;for(n=0,o=j.length;o>n;++n)g[n].display=j[n]}}}e.results=g,this.fire(y,e)},_parseValue:function(a){var b=this.get(q);return b&&(a=a.split(b),a=a[a.length-1]),e.trimLeft(a)},_setEnableCache:function(a){this._cache=a?{}:null},_setLocator:function(a){if(this[l](a))return a;var b=this;return a=a.toString().split("."),function(c){return c&&b._getObjectValue(c,a)}},_setRequestTemplate:function(a){return this[l](a)?a:(a=a.toString(),function(b){return e.sub(a,{query:encodeURIComponent(b)})})},_setResultFilters:function(b){var c,d;return null===b?[]:(c=a.AutoCompleteFilters,d=function(a){return h(a)?a:i(a)&&c&&h(c[a])?c[a]:!1},e.isArray(b)?(b=f.map(b,d),f.every(b,function(a){return!!a})?b:k):(b=d(b),b?[b]:k))},_setResultHighlighter:function(b){var c;return this[l](b)?b:(c=a.AutoCompleteHighlighters,i(b)&&c&&h(c[b])?c[b]:k)},_setSource:function(b){var f,d=this.get("sourceType")||e.type(b);return b&&h(b.sendRequest)||null===b||"datasource"===d?(this._rawSource=b,b):(f=c.SOURCE_TYPES[d])?(this._rawSource=b,e.isString(f)?this[f](b):f(b)):(a.error("Unsupported source type '"+d+"'. Maybe autocomplete-sources isn't loaded?"),k)},_sourceSuccess:function(a,b){b.callback.success({data:a,response:{results:a}})},_syncBrowserAutocomplete:function(){var a=this.get(o);"input"===a.get("nodeName").toLowerCase()&&a.setAttribute("autocomplete",this.get(n)?"on":"off")},_updateValue:function(a){var c,d,g,b=this.get(q);a=e.trimLeft(a),b&&(c=j(b),g=f.map(j(this.get(u)).split(b),j),d=g.length,d>1&&(g[d-1]=a,a=g.join(c+" ")),a=a+c+" "),this.set(u,a)},_afterSourceTypeChange:function(){this._rawSource&&this.set("source",this._rawSource)},_afterValueChange:function(a){var f,g,h,i,b=a.newVal,d=this,e=a.src===c.UI_SRC;e||d._inputNode.set(u,b),h=d.get("minQueryLength"),i=d._parseValue(b)||"",h>=0&&i.length>=h?e?(f=d.get("queryDelay"),g=function(){d.fire(x,{inputValue:b,query:i,src:a.src})},f?(clearTimeout(d._delay),d._delay=setTimeout(g,f)):g()):d._set(p,i):(clearTimeout(d._delay),d.fire(w,{prevVal:a.prevVal?d._parseValue(a.prevVal):null,src:a.src}))},_onInputBlur:function(){var c,d,f,b=this.get(q);if(b&&!this.get("allowTrailingDelimiter")){if(b=e.trimRight(b),f=d=this._inputNode.get(u),b)for(;(d=e.trimRight(d))&&(c=d.length-b.length)&&d.lastIndexOf(b)===c;)d=d.substring(0,c);else d=e.trimRight(d);d!==f&&this.set(u,d)}},_onInputValueChange:function(a){var b=a.newVal;b!==this.get(u)&&this.set(u,b,{src:c.UI_SRC})},_onResponse:function(a,b){a===(this.get(p)||"")&&this._parseResponse(a||"",b.response,b.data)},_defClearFn:function(){this._set(p,null),this._set(s,[])},_defQueryFn:function(a){this.sendRequest(a.query)},_defResultsFn:function(a){this._set(s,a[s])}},c.ATTRS={allowBrowserAutocomplete:{value:!1},allowTrailingDelimiter:{value:!1},enableCache:{lazyAdd:!1,setter:"_setEnableCache",value:!0},inputNode:{setter:a.one,writeOnce:"initOnly"},maxResults:{value:0},minQueryLength:{value:1},query:{readOnly:!0,value:null},queryDelay:{value:100},queryDelimiter:{value:null},requestTemplate:{setter:"_setRequestTemplate",value:null},resultFilters:{setter:"_setResultFilters",value:[]},resultFormatter:{validator:l,value:null},resultHighlighter:{setter:"_setResultHighlighter",value:null},resultListLocator:{setter:"_setLocator",value:null},results:{readOnly:!0,value:[]},resultTextLocator:{setter:"_setLocator",value:null},source:{setter:"_setSource",value:null},sourceType:{value:null},tokenInput:{readOnly:!0},value:{value:""}},c._buildCfg={aggregates:["SOURCE_TYPES"],statics:["UI_SRC"]},c.SOURCE_TYPES={array:"_createArraySource","function":"_createFunctionSource",object:"_createObjectSource"},c.UI_SRC=a.Widget&&a.Widget.UI_SRC||"ui",a.AutoCompleteBase=c},"3.10.1",{optional:["autocomplete-sources"],requires:["array-extras","base-build","escape","event-valuechange","node-base"]}),YUI.add("text-data-wordbreak",function(a){a.namespace("Text.Data").WordBreak={aletter:"[A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f3\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u10a0-\u10c5\u10d0-\u10fa\u10fc\u1100-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1a00-\u1a16\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bc0-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2d00-\u2d25\u2d30-\u2d65\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u303b\u303c\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790\ua791\ua7a0-\ua7a9\ua7fa-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]",midnumlet:"['\\.\u2018\u2019\u2024\ufe52\uff07\uff0e]",midletter:"[:\xb7\xb7\u05f4\u2027\ufe13\ufe55\uff1a]",midnum:"[,;;\u0589\u060c\u060d\u066c\u07f8\u2044\ufe10\ufe14\ufe50\ufe54\uff0c\uff1b]",numeric:"[0-9\u0660-\u0669\u066b\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\uaa50-\uaa59\uabf0-\uabf9]",cr:"\\r",lf:"\\n",newline:"[\f\x85\u2028\u2029]",extend:"[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d02\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b6-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u19b0-\u19c0\u19c8\u19c9\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1baa\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2\u1dc0-\u1de6\u1dfc-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]",format:"[\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200e\u200f\u202a-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb]",katakana:"[\u3031-\u3035\u309b\u309c\u30a0-\u30fa\u30fc-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff9d]",extendnumlet:"[_\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f]",punctuation:"[!-#%-*,-\\/:;?@\\[-\\]_{}\xa1\xab\xb7\xbb\xbf;\xb7\u055a-\u055f\u0589\u058a\u05be\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f3a-\u0f3d\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1361-\u1368\u1400\u166d\u166e\u169b\u169c\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cd3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205e\u207d\u207e\u208d\u208e\u3008\u3009\u2768-\u2775\u27c5\u27c6\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc\u29fd\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00-\u2e2e\u2e30\u2e31\u3001-\u3003\u3008-\u3011\u3014-\u301f\u3030\u303d\u30a0\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uabeb\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe61\ufe63\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff0a\uff0c-\uff0f\uff1a\uff1b\uff1f\uff20\uff3b-\uff3d\uff3f\uff5b\uff5d\uff5f-\uff65]"}},"3.10.1",{requires:["yui-base"]}),YUI.add("text-wordbreak",function(a){var c=a.Text,d=c.Data.WordBreak,e=0,f=1,g=2,h=3,i=4,j=5,k=6,l=7,m=8,n=9,o=10,p=11,q=12,r=[new RegExp(d.aletter),new RegExp(d.midnumlet),new RegExp(d.midletter),new RegExp(d.midnum),new RegExp(d.numeric),new RegExp(d.cr),new RegExp(d.lf),new RegExp(d.newline),new RegExp(d.extend),new RegExp(d.format),new RegExp(d.katakana),new RegExp(d.extendnumlet)],s="",t=new RegExp("^"+d.punctuation+"$"),u=/\s/,v={getWords:function(a,b){var h,i,j,c=0,d=v._classify(a),e=d.length,f=[],g=[];for(b||(b={}),b.ignoreCase&&(a=a.toLowerCase()),i=b.includePunctuation,j=b.includeWhitespace;e>c;++c)h=a.charAt(c),f.push(h),v._isWordBoundary(d,c)&&(f=f.join(s),f&&(j||!u.test(f))&&(i||!t.test(f))&&g.push(f),f=[]);return g},getUniqueWords:function(b,c){return a.Array.unique(v.getWords(b,c))},isWordBoundary:function(a,b){return v._isWordBoundary(v._classify(a),b)},_classify:function(a){for(var b,e,f,i,c=[],d=0,g=a.length,h=r.length;g>d;++d){for(b=a.charAt(d),i=q,e=0;h>e;++e)if(f=r[e],f&&f.test(b)){i=e;break}c.push(i)}return c},_isWordBoundary:function(a,b){var c,r,d=a[b],q=a[b+1];return 0>b||b>a.length-1&&0!==b?!1:d===e&&q===e?!1:(r=a[b+2],d!==e||q!==g&&q!==f||r!==e?(c=a[b-1],d!==g&&d!==f||q!==e||c!==e?d!==i&&d!==e||q!==i&&q!==e?d!==h&&d!==f||q!==i||c!==i?d!==i||q!==h&&q!==f||r!==i?d===m||d===n||c===m||c===n||q===m||q===n?!1:d===j&&q===k?!1:d===l||d===j||d===k?!0:q===l||q===j||q===k?!0:d===o&&q===o?!1:q!==p||d!==e&&d!==i&&d!==o&&d!==p?d!==p||q!==e&&q!==i&&q!==o?!0:!1:!1:!1:!1:!1:!1):!1)}};c.WordBreak=v},"3.10.1",{requires:["array-extras","text-data-wordbreak"]}),YUI.add("highlight-base",function(a){var c=a.Array,d=a.Escape,e=a.Text.WordBreak,f=a.Lang.isArray,g={},h="(&[^;\\s]*)?",i={_REGEX:h+"(%needles)",_REPLACER:function(a,b,c){return b&&!/\s/.test(c)?a:i._TEMPLATE.replace(/\{s\}/g,c)},_START_REGEX:"^"+h+"(%needles)",_TEMPLATE:'{s}',all:function(a,b,c){var h,j,k,l,m,n,e=[];for(c||(c=g),h=c.escapeHTML!==!1,m=c.startsWith?i._START_REGEX:i._REGEX,n=c.replacer||i._REPLACER,b=f(b)?b:[b],j=0,k=b.length;k>j;++j)l=b[j],l&&e.push(d.regex(h?d.html(l):l));return h&&(a=d.html(a)),e.length?a.replace(new RegExp(m.replace("%needles",e.join("|")),c.caseSensitive?"g":"gi"),n):a},allCase:function(b,c,d){return i.all(b,c,a.merge(d||g,{caseSensitive:!0}))},start:function(b,c,d){return i.all(b,c,a.merge(d||g,{startsWith:!0}))},startCase:function(a,b){return i.start(a,b,{caseSensitive:!0})},words:function(a,b,h){var j,k,m,l=i._TEMPLATE;return h||(h=g),j=!!h.caseSensitive,b=c.hash(f(b)?b:e.getUniqueWords(b,{ignoreCase:!j})),k=h.mapper||function(a,b){return b.hasOwnProperty(j?a:a.toLowerCase())?l.replace(/\{s\}/g,d.html(a)):d.html(a)},m=e.getWords(a,{includePunctuation:!0,includeWhitespace:!0}),c.map(m,function(a){return k(a,b)}).join("")},wordsCase:function(a,b){return i.words(a,b,{caseSensitive:!0})}};a.Highlight=i},"3.10.1",{requires:["array-extras","classnamemanager","escape","text-wordbreak"]}),YUI.add("autocomplete-highlighters",function(a){var c=a.Array,d=a.Highlight,e=a.mix(a.namespace("AutoCompleteHighlighters"),{charMatch:function(a,b,e){var f=c.unique((e?a:a.toLowerCase()).split(""));return c.map(b,function(a){return d.all(a.text,f,{caseSensitive:e})})},charMatchCase:function(a,b){return e.charMatch(a,b,!0)},phraseMatch:function(a,b,e){return c.map(b,function(b){return d.all(b.text,[a],{caseSensitive:e})})},phraseMatchCase:function(a,b){return e.phraseMatch(a,b,!0)},startsWith:function(a,b,e){return c.map(b,function(b){return d.all(b.text,[a],{caseSensitive:e,startsWith:!0})})},startsWithCase:function(a,b){return e.startsWith(a,b,!0)},subWordMatch:function(b,e,f){var g=a.Text.WordBreak.getUniqueWords(b,{ignoreCase:!f});return c.map(e,function(a){return d.all(a.text,g,{caseSensitive:f})})},subWordMatchCase:function(a,b){return e.subWordMatch(a,b,!0)},wordMatch:function(a,b,e){return c.map(b,function(b){return d.words(b.text,a,{caseSensitive:e})})},wordMatchCase:function(a,b){return e.wordMatch(a,b,!0)}})},"3.10.1",{requires:["array-extras","highlight-base"]}),YUI.add("autocomplete-sources",function(a){var c=a.AutoCompleteBase,d=a.Lang,e="_sourceSuccess",f="maxResults",g="requestTemplate",h="resultListLocator";a.mix(c.prototype,{_YQL_SOURCE_REGEX:/^(?:select|set|use)\s+/i,_beforeCreateObjectSource:function(b){return b instanceof a.Node&&"select"===b.get("nodeName").toLowerCase()?this._createSelectSource(b):a.JSONPRequest&&b instanceof a.JSONPRequest?this._createJSONPSource(b):this._createObjectSource(b)},_createIOSource:function(b){function c(c){var d=c.request;return f._cache&&d in f._cache?(f[e](f._cache[d],c),void 0):(g&&g.isInProgress()&&g.abort(),g=a.io(f._getXHRUrl(b,c),{on:{success:function(b,g){var h;try{h=a.JSON.parse(g.responseText)}catch(i){a.error("JSON parse error",i)}h&&(f._cache&&(f._cache[d]=h),f[e](h,c))}}}),void 0)}var g,h,i,d={type:"io"},f=this;return d.sendRequest=function(b){h=b,i||(i=!0,a.use("io-base","json-parse",function(){d.sendRequest=c,c(h)}))},d},_createJSONPSource:function(b){function c(a){var c=a.request,d=a.query;return f._cache&&c in f._cache?(f[e](f._cache[c],a),void 0):(b._config.on.success=function(b){f._cache&&(f._cache[c]=b),f[e](b,a)},b.send(d),void 0)}var g,h,d={type:"jsonp"},f=this;return d.sendRequest=function(e){g=e,h||(h=!0,a.use("jsonp",function(){b instanceof a.JSONPRequest||(b=new a.JSONPRequest(b,{format:a.bind(f._jsonpFormatter,f)})),d.sendRequest=c,c(g)}))},d},_createSelectSource:function(a){var b=this;return{type:"select",sendRequest:function(c){var d=[];a.get("options").each(function(a){d.push({html:a.get("innerHTML"),index:a.get("index"),node:a,selected:a.get("selected"),text:a.get("text"),value:a.get("value")})}),b[e](d,c)}}},_createStringSource:function(a){return this._YQL_SOURCE_REGEX.test(a)?this._createYQLSource(a):-1!==a.indexOf("{callback}")?this._createJSONPSource(a):this._createIOSource(a)},_createYQLSource:function(b){function c(c){var k,m,n,h=c.query,i=g.get("yqlEnv"),j=g.get(f);return n=d.sub(b,{maxResults:j>0?j:1e3,request:c.request,query:h}),g._cache&&n in g._cache?(g[e](g._cache[n],c),void 0):(k=function(a){g._cache&&(g._cache[n]=a),g[e](a,c)},m={proto:g.get("yqlProtocol")},l?(l._callback=k,l._opts=m,l._params.q=n,i&&(l._params.env=i)):l=new a.YQLRequest(n,{on:{success:k},allowCache:!1},i?{env:i}:null,m),l.send(),void 0)}var j,k,l,g=this,i={type:"yql"};return g.get(h)||g.set(h,g._defaultYQLLocator),i.sendRequest=function(b){j=b,k||(k=!0,a.use("yql",function(){i.sendRequest=c,c(j)}))},i},_defaultYQLLocator:function(b){var e,c=b&&b.query&&b.query.results;return c&&d.isObject(c)?(e=a.Object.values(c)||[],c=1===e.length?e[0]:e,d.isArray(c)||(c=[c])):c=[],c},_getXHRUrl:function(a,b){var c=this.get(f);return b.query!==b.request&&(a+=b.request),d.sub(a,{maxResults:c>0?c:1e3,query:encodeURIComponent(b.query)})},_jsonpFormatter:function(a,b,c){var e=this.get(f),h=this.get(g);return h&&(a+=h(c)),d.sub(a,{callback:b,maxResults:e>0?e:1e3,query:encodeURIComponent(c)})}}),a.mix(c.ATTRS,{yqlEnv:{value:null},yqlProtocol:{value:"http"}}),a.mix(c.SOURCE_TYPES,{io:"_createIOSource",jsonp:"_createJSONPSource",object:"_beforeCreateObjectSource",select:"_createSelectSource",string:"_createStringSource",yql:"_createYQLSource"},!0)},"3.10.1",{optional:["io-base","json-parse","jsonp","yql"],requires:["autocomplete-base"]}),YUI.add("event-key",function(a){var c="+alt",d="+ctrl",e="+meta",f="+shift",g=a.Lang.trim,h={KEY_MAP:{enter:13,esc:27,backspace:8,tab:9,pageup:33,pagedown:34},_typeRE:/^(up|down|press):/,_keysRE:/^(?:up|down|press):|\+(alt|ctrl|meta|shift)/g,processArgs:function(b){var h,i,j,k,c=b.splice(3,1)[0],d=a.Array.hash(c.match(/\+(?:alt|ctrl|meta|shift)\b/g)||[]),e={type:this._typeRE.test(c)?RegExp.$1:null,mods:d,keys:null},f=c.replace(this._keysRE,"");if(f)for(f=f.split(","),e.keys={},k=f.length-1;k>=0;--k)h=g(f[k]),h&&(+h==h?e.keys[h]=d:(j=h.toLowerCase(),this.KEY_MAP[j]?(e.keys[this.KEY_MAP[j]]=d,e.type||(e.type="down")):(h=h.charAt(0),i=h.toUpperCase(),d["+shift"]&&(h=i),e.keys[h.charCodeAt(0)]=h===i?a.merge(d,{"+shift":!0}):d)));return e.type||(e.type="press"),e},on:function(a,b,g,h){var i=b._extra,j="key"+i.type,k=i.keys,l=h?"delegate":"on";b._detach=a[l](j,function(a){var b=k?k[a.which]:i.mods;b&&(!b[c]||b[c]&&a.altKey)&&(!b[d]||b[d]&&a.ctrlKey)&&(!b[e]||b[e]&&a.metaKey)&&(!b[f]||b[f]&&a.shiftKey)&&g.fire(a)},h)},detach:function(a,b){b._detach.detach()}};h.delegate=h.on,h.detachDelegate=h.detach,a.Event.define("key",h,!0)},"3.10.1",{requires:["event-synthetic"]}),YUI.add("attribute-complex",function(a){var c=a.Attribute;c.Complex=function(){},c.Complex.prototype={_normAttrVals:c.prototype._normAttrVals,_getAttrInitVal:c.prototype._getAttrInitVal},a.AttributeComplex=c.Complex},"3.10.1",{requires:["attribute-base"]}),YUI.add("plugin",function(a){function c(){this.hasImpl&&this.hasImpl(a.Plugin.Base)?c.prototype.initializer.apply(this,arguments):c.superclass.constructor.apply(this,arguments)}c.ATTRS={host:{writeOnce:!0}},c.NAME="plugin",c.NS="plugin",a.extend(c,a.Base,{_handles:null,initializer:function(){this._handles=[]},destructor:function(){if(this._handles)for(var a=0,b=this._handles.length;b>a;a++)this._handles[a].detach()},doBefore:function(a,b,c){var e,d=this.get("host");return a in d?e=this.beforeHostMethod(a,b,c):d.on&&(e=this.onHostEvent(a,b,c)),e},doAfter:function(a,b,c){var e,d=this.get("host");return a in d?e=this.afterHostMethod(a,b,c):d.after&&(e=this.afterHostEvent(a,b,c)),e},onHostEvent:function(a,b,c){var d=this.get("host").on(a,b,c||this);return this._handles.push(d),d},afterHostEvent:function(a,b,c){var d=this.get("host").after(a,b,c||this);return this._handles.push(d),d},beforeHostMethod:function(b,c,d){var e=a.Do.before(c,this.get("host"),b,d||this);return this._handles.push(e),e},afterHostMethod:function(b,c,d){var e=a.Do.after(c,this.get("host"),b,d||this);return this._handles.push(e),e},toString:function(){return this.constructor.NAME+"["+this.constructor.NS+"]"}}),a.namespace("Plugin").Base=c},"3.10.1",{requires:["base-base"]}),YUI.add("event-simulate",function(a){!function(){function b(b,c,d,e,f,g,m,n,o,p,q){if(b||a.error("simulateKeyEvent(): Invalid target."),i(c))switch(c=c.toLowerCase()){case"textevent":c="keypress";break;case"keyup":case"keydown":case"keypress":break;default:a.error("simulateKeyEvent(): Event type '"+c+"' not supported.")}else a.error("simulateKeyEvent(): Event type must be a string.");j(d)||(d=!0),j(e)||(e=!0),k(f)||(f=a.config.win),j(g)||(g=!1),j(m)||(m=!1),j(n)||(n=!1),j(o)||(o=!1),l(p)||(p=0),l(q)||(q=0);var r=null;if(h(a.config.doc.createEvent)){try{r=a.config.doc.createEvent("KeyEvents"),r.initKeyEvent(c,d,e,f,g,m,n,o,p,q)}catch(s){try{r=a.config.doc.createEvent("Events")}catch(t){r=a.config.doc.createEvent("UIEvents")}finally{r.initEvent(c,d,e),r.view=f,r.altKey=m,r.ctrlKey=g,r.shiftKey=n,r.metaKey=o,r.keyCode=p,r.charCode=q}}b.dispatchEvent(r)}else k(a.config.doc.createEventObject)?(r=a.config.doc.createEventObject(),r.bubbles=d,r.cancelable=e,r.view=f,r.ctrlKey=g,r.altKey=m,r.shiftKey=n,r.metaKey=o,r.keyCode=q>0?q:p,b.fireEvent("on"+c,r)):a.error("simulateKeyEvent(): No event simulation framework present.")}function c(b,c,d,e,f,g,o,p,q,r,s,t,u,v,w,x){b||a.error("simulateMouseEvent(): Invalid target."),i(c)?!m[c.toLowerCase()]&&!n[c]&&a.error("simulateMouseEvent(): Event type '"+c+"' not supported."):a.error("simulateMouseEvent(): Event type must be a string."),j(d)||(d=!0),j(e)||(e="mousemove"!==c),k(f)||(f=a.config.win),l(g)||(g=1),l(o)||(o=0),l(p)||(p=0),l(q)||(q=0),l(r)||(r=0),j(s)||(s=!1),j(t)||(t=!1),j(u)||(u=!1),j(v)||(v=!1),l(w)||(w=0),x=x||null;var y=null;if(h(a.config.doc.createEvent))y=a.config.doc.createEvent("MouseEvents"),y.initMouseEvent?y.initMouseEvent(c,d,e,f,g,o,p,q,r,s,t,u,v,w,x):(y=a.config.doc.createEvent("UIEvents"),y.initEvent(c,d,e),y.view=f,y.detail=g,y.screenX=o,y.screenY=p,y.clientX=q,y.clientY=r,y.ctrlKey=s,y.altKey=t,y.metaKey=v,y.shiftKey=u,y.button=w,y.relatedTarget=x),x&&!y.relatedTarget&&("mouseout"===c?y.toElement=x:"mouseover"===c&&(y.fromElement=x)),b.dispatchEvent(y);else if(k(a.config.doc.createEventObject)){switch(y=a.config.doc.createEventObject(),y.bubbles=d,y.cancelable=e,y.view=f,y.detail=g,y.screenX=o,y.screenY=p,y.clientX=q,y.clientY=r,y.ctrlKey=s,y.altKey=t,y.metaKey=v,y.shiftKey=u,w){case 0:y.button=1;break;case 1:y.button=4;break;case 2:break;default:y.button=0}y.relatedTarget=x,b.fireEvent("on"+c,y)}else a.error("simulateMouseEvent(): No event simulation framework present.")}function d(b,c,d,e,f,g){b||a.error("simulateUIEvent(): Invalid target."),i(c)?(c=c.toLowerCase(),p[c]||a.error("simulateUIEvent(): Event type '"+c+"' not supported.")):a.error("simulateUIEvent(): Event type must be a string.");var m=null;j(d)||(d=c in q),j(e)||(e="submit"===c),k(f)||(f=a.config.win),l(g)||(g=1),h(a.config.doc.createEvent)?(m=a.config.doc.createEvent("UIEvents"),m.initUIEvent(c,d,e,f,g),b.dispatchEvent(m)):k(a.config.doc.createEventObject)?(m=a.config.doc.createEventObject(),m.bubbles=d,m.cancelable=e,m.view=f,m.detail=g,b.fireEvent("on"+c,m)):a.error("simulateUIEvent(): No event simulation framework present.")}function e(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r;(!a.UA.ios||a.UA.ios<2)&&a.error("simulateGestureEvent(): Native gesture DOM eventframe is not available in this platform."),b||a.error("simulateGestureEvent(): Invalid target."),a.Lang.isString(c)?(c=c.toLowerCase(),s[c]||a.error("simulateTouchEvent(): Event type '"+c+"' not supported.")):a.error("simulateGestureEvent(): Event type must be a string."),a.Lang.isBoolean(d)||(d=!0),a.Lang.isBoolean(e)||(e=!0),a.Lang.isObject(f)||(f=a.config.win),a.Lang.isNumber(g)||(g=2),a.Lang.isNumber(h)||(h=0),a.Lang.isNumber(i)||(i=0),a.Lang.isNumber(j)||(j=0),a.Lang.isNumber(k)||(k=0),a.Lang.isBoolean(l)||(l=!1),a.Lang.isBoolean(m)||(m=!1),a.Lang.isBoolean(n)||(n=!1),a.Lang.isBoolean(o)||(o=!1),a.Lang.isNumber(p)||(p=1),a.Lang.isNumber(q)||(q=0),r=a.config.doc.createEvent("GestureEvent"),r.initGestureEvent(c,d,e,f,g,h,i,j,k,l,m,n,o,b,p,q),b.dispatchEvent(r)}function f(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t,u){var v;b||a.error("simulateTouchEvent(): Invalid target."),a.Lang.isString(c)?(c=c.toLowerCase(),r[c]||a.error("simulateTouchEvent(): Event type '"+c+"' not supported.")):a.error("simulateTouchEvent(): Event type must be a string."),"touchstart"===c||"touchmove"===c?0===p.length&&a.error("simulateTouchEvent(): No touch object in touches"):"touchend"===c&&0===s.length&&a.error("simulateTouchEvent(): No touch object in changedTouches"),a.Lang.isBoolean(d)||(d=!0),a.Lang.isBoolean(e)||(e="touchcancel"!==c),a.Lang.isObject(f)||(f=a.config.win),a.Lang.isNumber(g)||(g=1),a.Lang.isNumber(h)||(h=0),a.Lang.isNumber(i)||(i=0),a.Lang.isNumber(j)||(j=0),a.Lang.isNumber(k)||(k=0),a.Lang.isBoolean(l)||(l=!1),a.Lang.isBoolean(m)||(m=!1),a.Lang.isBoolean(n)||(n=!1),a.Lang.isBoolean(o)||(o=!1),a.Lang.isNumber(t)||(t=1),a.Lang.isNumber(u)||(u=0),a.Lang.isFunction(a.config.doc.createEvent)?(a.UA.android?a.UA.android<4?(v=a.config.doc.createEvent("MouseEvents"),v.initMouseEvent(c,d,e,f,g,h,i,j,k,l,m,n,o,0,b),v.touches=p,v.targetTouches=q,v.changedTouches=s):(v=a.config.doc.createEvent("TouchEvent"),v.initTouchEvent(p,q,s,c,f,h,i,j,k,l,m,n,o)):a.UA.ios?a.UA.ios>=2?(v=a.config.doc.createEvent("TouchEvent"),v.initTouchEvent(c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t,u)):a.error("simulateTouchEvent(): No touch event simulation framework present for iOS, "+a.UA.ios+"."):a.error("simulateTouchEvent(): Not supported agent yet, "+a.UA.userAgent),b.dispatchEvent(v)):a.error("simulateTouchEvent(): No event simulation framework present.") +}var g=a.Lang,h=g.isFunction,i=g.isString,j=g.isBoolean,k=g.isObject,l=g.isNumber,m={click:1,dblclick:1,mouseover:1,mouseout:1,mousedown:1,mouseup:1,mousemove:1,contextmenu:1},n={MSPointerOver:1,MSPointerOut:1,MSPointerDown:1,MSPointerUp:1,MSPointerMove:1},o={keydown:1,keyup:1,keypress:1},p={submit:1,blur:1,change:1,focus:1,resize:1,scroll:1,select:1},q={scroll:1,resize:1,reset:1,submit:1,change:1,select:1,error:1,abort:1},r={touchstart:1,touchmove:1,touchend:1,touchcancel:1},s={gesturestart:1,gesturechange:1,gestureend:1};a.mix(q,m),a.mix(q,o),a.mix(q,r),a.Event.simulate=function(g,h,i){i=i||{},m[h]||n[h]?c(g,h,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget):o[h]?b(g,h,i.bubbles,i.cancelable,i.view,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.keyCode,i.charCode):p[h]?d(g,h,i.bubbles,i.cancelable,i.view,i.detail):r[h]?!(a.config.win&&"ontouchstart"in a.config.win)||a.UA.phantomjs||a.UA.chrome&&a.UA.chrome<6?a.error("simulate(): Event '"+h+"' can't be simulated. Use gesture-simulate module instead."):f(g,h,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.touches,i.targetTouches,i.changedTouches,i.scale,i.rotation):a.UA.ios&&a.UA.ios>=2&&s[h]?e(g,h,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.scale,i.rotation):a.error("simulate(): Event '"+h+"' can't be simulated.")}}()},"3.10.1",{requires:["event-base"]}),YUI.add("async-queue",function(a){a.AsyncQueue=function(){this._init(),this.add.apply(this,arguments)};var c=a.AsyncQueue,d="execute",e="shift",f="promote",g="remove",h=a.Lang.isObject,i=a.Lang.isFunction;c.defaults=a.mix({autoContinue:!0,iterations:1,timeout:10,until:function(){return this.iterations|=0,this.iterations<=0}},a.config.queueDefaults||{}),a.extend(c,a.EventTarget,{_running:!1,_init:function(){a.EventTarget.call(this,{prefix:"queue",emitFacade:!0}),this._q=[],this.defaults={},this._initEvents()},_initEvents:function(){this.publish({execute:{defaultFn:this._defExecFn,emitFacade:!0},shift:{defaultFn:this._defShiftFn,emitFacade:!0},add:{defaultFn:this._defAddFn,emitFacade:!0},promote:{defaultFn:this._defPromoteFn,emitFacade:!0},remove:{defaultFn:this._defRemoveFn,emitFacade:!0}})},next:function(){for(var a;this._q.length&&(a=this._q[0]=this._prepare(this._q[0]),a&&a.until());)this.fire(e,{callback:a}),a=null;return a||null},_defShiftFn:function(a){0===this.indexOf(a.callback)&&this._q.shift()},_prepare:function(b){if(i(b)&&b._prepared)return b;var d=a.merge(c.defaults,{context:this,args:[],_prepared:!0},this.defaults,i(b)?{fn:b}:b),e=a.bind(function(){e._running||e.iterations--,i(e.fn)&&e.fn.apply(e.context||a,a.Array(e.args))},this);return a.mix(e,d)},run:function(){var a,b=!0;for(a=this.next();b&&a&&!this.isRunning();a=this.next())b=a.timeout<0?this._execute(a):this._schedule(a);return a||this.fire("complete"),this},_execute:function(a){this._running=a._running=!0,a.iterations--,this.fire(d,{callback:a});var b=this._running&&a.autoContinue;return this._running=a._running=!1,b},_schedule:function(b){return this._running=a.later(b.timeout,this,function(){this._execute(b)&&this.run()}),!1},isRunning:function(){return!!this._running},_defExecFn:function(a){a.callback()},add:function(){return this.fire("add",{callbacks:a.Array(arguments,0,!0)}),this},_defAddFn:function(b){var c=this._q,d=[];a.Array.each(b.callbacks,function(a){h(a)&&(c.push(a),d.push(a))}),b.added=d},pause:function(){return h(this._running)&&this._running.cancel(),this._running=!1,this},stop:function(){return this._q=[],this.pause()},indexOf:function(a){for(var d,b=0,c=this._q.length;c>b;++b)if(d=this._q[b],d===a||d.id===a)return b;return-1},getCallback:function(a){var b=this.indexOf(a);return b>-1?this._q[b]:null},promote:function(a){var c,b={callback:a};return this.isRunning()?c=this.after(e,function(){this.fire(f,b),c.detach()},this):this.fire(f,b),this},_defPromoteFn:function(a){var b=this.indexOf(a.callback),c=b>-1?this._q.splice(b,1)[0]:null;a.promoted=c,c&&this._q.unshift(c)},remove:function(a){var c,b={callback:a};return this.isRunning()?c=this.after(e,function(){this.fire(g,b),c.detach()},this):this.fire(g,b),this},_defRemoveFn:function(a){var b=this.indexOf(a.callback);a.removed=b>-1?this._q.splice(b,1)[0]:null},size:function(){return this.isRunning()||this.next(),this._q.length}})},"3.10.1",{requires:["event-custom"]}),YUI.add("gesture-simulate",function(a,b){function c(c){c||a.error(b+": invalid target node"),this.node=c,this.target=a.Node.getDOMNode(c);var d=this.node.getXY(),e=this._getDims();j=d[0]+e[0]/2,k=d[1]+e[1]/2}var h,j,k,b="gesture-simulate",d=a.config.win&&"ontouchstart"in a.config.win&&!a.UA.phantomjs&&!(a.UA.chrome&&a.UA.chrome<6),e={tap:1,doubletap:1,press:1,move:1,flick:1,pinch:1,rotate:1},f={touchstart:1,touchmove:1,touchend:1,touchcancel:1},g=a.config.doc,i=20,l={HOLD_TAP:10,DELAY_TAP:10,HOLD_PRESS:3e3,MIN_HOLD_PRESS:1e3,MAX_HOLD_PRESS:6e4,DISTANCE_MOVE:200,DURATION_MOVE:1e3,MAX_DURATION_MOVE:5e3,MIN_VELOCITY_FLICK:1.3,DISTANCE_FLICK:200,DURATION_FLICK:1e3,MAX_DURATION_FLICK:5e3,DURATION_PINCH:1e3},m="touchstart",n="touchmove",o="touchend",p="gesturestart",q="gesturechange",r="gestureend",s="mouseup",t="mousemove",u="mousedown",v="click",w="dblclick",x="x",y="y";c.prototype={_toRadian:function(a){return a*(Math.PI/180)},_getDims:function(){var a,b,c;return this.target.getBoundingClientRect?(a=this.target.getBoundingClientRect(),c="height"in a?a.height:Math.abs(a.bottom-a.top),b="width"in a?a.width:Math.abs(a.right-a.left)):(a=this.node.get("region"),b=a.width,c=a.height),[b,c]},_calculateDefaultPoint:function(b){var c;return a.Lang.isArray(b)&&0!==b.length?(1==b.length&&(c=this._getDims[1],b[1]=c/2),b[0]=this.node.getX()+b[0],b[1]=this.node.getY()+b[1]):b=[j,k],b},rotate:function(c,d,e,f,g,h,i){var j,k=e,l=f;(!a.Lang.isNumber(k)||!a.Lang.isNumber(l)||0>k||0>l)&&(j=this.target.offsetWidth w||0>x)&&a.error(b+"Invalid startRadius and endRadius detected."),(!a.Lang.isNumber(g)||0>=g)&&(g=l.DURATION_PINCH),a.Lang.isNumber(h))for(h%=360;0>h;)h+=360;else h=0;for(a.Lang.isNumber(j)||(j=0),a.AsyncQueue.defaults.timeout=t,k=new a.AsyncQueue,z=d[0],A=d[1],E=h,F=h+j,H.start=[z+w*Math.sin(this._toRadian(E)),A-w*Math.cos(this._toRadian(E))],H.end=[z+x*Math.sin(this._toRadian(F)),A-x*Math.cos(this._toRadian(F))],I.start=[z-w*Math.sin(this._toRadian(E)),A+w*Math.cos(this._toRadian(E))],I.end=[z-x*Math.sin(this._toRadian(F)),A+x*Math.cos(this._toRadian(F))],B=1,C=f/e,k.add({fn:function(){var b,c,d,e;b={pageX:H.start[0],pageY:H.start[1],clientX:H.start[0],clientY:H.start[1]},c={pageX:I.start[0],pageY:I.start[1],clientX:I.start[0],clientY:I.start[1]},e=this._createTouchList([a.merge({identifier:v++},b),a.merge({identifier:v++},c)]),d={pageX:(H.start[0]+I.start[0])/2,pageY:(H.start[0]+I.start[1])/2,clientX:(H.start[0]+I.start[0])/2,clientY:(H.start[0]+I.start[1])/2},this._simulateEvent(this.target,m,a.merge({touches:e,targetTouches:e,changedTouches:e,scale:B,rotation:E},d)),a.UA.ios>=2&&this._simulateEvent(this.target,p,a.merge({scale:B,rotation:E},d))},timeout:0,context:this}),J=Math.floor(g/t),y=(x-w)/J,D=(C-B)/J,G=(F-E)/J,K=function(b){var j,k,l,m,c=w+y*b,d=z+c*Math.sin(this._toRadian(E+G*b)),e=A-c*Math.cos(this._toRadian(E+G*b)),f=z-c*Math.sin(this._toRadian(E+G*b)),g=A+c*Math.cos(this._toRadian(E+G*b)),h=(d+f)/2,i=(e+g)/2;j={pageX:d,pageY:e,clientX:d,clientY:e},k={pageX:f,pageY:g,clientX:f,clientY:g},m=this._createTouchList([a.merge({identifier:v++},j),a.merge({identifier:v++},k)]),l={pageX:h,pageY:i,clientX:h,clientY:i},this._simulateEvent(this.target,n,a.merge({touches:m,targetTouches:m,changedTouches:m,scale:B+D*b,rotation:E+G*b},l)),a.UA.ios>=2&&this._simulateEvent(this.target,q,a.merge({scale:B+D*b,rotation:E+G*b},l))},s=0;J>s;s++)k.add({fn:K,args:[s],context:this});k.add({fn:function(){var c,d,e,f,b=this._getEmptyTouchList();c={pageX:H.end[0],pageY:H.end[1],clientX:H.end[0],clientY:H.end[1]},d={pageX:I.end[0],pageY:I.end[1],clientX:I.end[0],clientY:I.end[1]},f=this._createTouchList([a.merge({identifier:v++},c),a.merge({identifier:v++},d)]),e={pageX:(H.end[0]+I.end[0])/2,pageY:(H.end[0]+I.end[1])/2,clientX:(H.end[0]+I.end[0])/2,clientY:(H.end[0]+I.end[1])/2},a.UA.ios>=2&&this._simulateEvent(this.target,r,a.merge({scale:C,rotation:F},e)),this._simulateEvent(this.target,o,a.merge({touches:b,targetTouches:b,changedTouches:f,scale:C,rotation:F},e))},context:this}),c&&a.Lang.isFunction(c)&&k.add({fn:c,context:this.node}),k.run()},tap:function(b,c,e,f,g){var j,k,n,p,q,h=new a.AsyncQueue,i=this._getEmptyTouchList();for(c=this._calculateDefaultPoint(c),(!a.Lang.isNumber(e)||1>e)&&(e=1),a.Lang.isNumber(f)||(f=l.HOLD_TAP),a.Lang.isNumber(g)||(g=l.DELAY_TAP),k={pageX:c[0],pageY:c[1],clientX:c[0],clientY:c[1]},j=this._createTouchList([a.merge({identifier:0},k)]),p=function(){this._simulateEvent(this.target,m,a.merge({touches:j,targetTouches:j,changedTouches:j},k))},q=function(){this._simulateEvent(this.target,o,a.merge({touches:i,targetTouches:i,changedTouches:j},k))},n=0;e>n;n++)h.add({fn:p,context:this,timeout:0===n?0:g}),h.add({fn:q,context:this,timeout:f});e>1&&!d&&h.add({fn:function(){this._simulateEvent(this.target,w,k)},context:this}),b&&a.Lang.isFunction(b)&&h.add({fn:b,context:this.node}),h.run()},flick:function(c,d,e,f,g){var h;d=this._calculateDefaultPoint(d),a.Lang.isString(e)?(e=e.toLowerCase(),e!==x&&e!==y&&a.error(b+"(flick): Only x or y axis allowed")):e=x,a.Lang.isNumber(f)||(f=l.DISTANCE_FLICK),a.Lang.isNumber(g)?g>l.MAX_DURATION_FLICK&&(g=l.MAX_DURATION_FLICK):g=l.DURATION_FLICK,Math.abs(f)/g l.MAX_DURATION_MOVE&&(d=l.MAX_DURATION_MOVE):d=l.DURATION_MOVE,e={start:a.clone(c.point),end:[c.point[0]+c.xdist,c.point[1]+c.ydist]},this._move(b,e,d)},_move:function(b,c,d){var e,f,h,p,q,s,g=i,r=0;for(a.Lang.isNumber(d)?d>l.MAX_DURATION_MOVE&&(d=l.MAX_DURATION_MOVE):d=l.DURATION_MOVE,a.Lang.isObject(c)?(a.Lang.isArray(c.start)||(c.start=[j,k]),a.Lang.isArray(c.end)||(c.end=[j+l.DISTANCE_MOVE,k])):c={start:[j,k],end:[j+l.DISTANCE_MOVE,k]},a.AsyncQueue.defaults.timeout=g,e=new a.AsyncQueue,e.add({fn:function(){var b={pageX:c.start[0],pageY:c.start[1],clientX:c.start[0],clientY:c.start[1]},d=this._createTouchList([a.merge({identifier:r++},b)]);this._simulateEvent(this.target,m,a.merge({touches:d,targetTouches:d,changedTouches:d},b))},timeout:0,context:this}),h=Math.floor(d/g),p=(c.end[0]-c.start[0])/h,q=(c.end[1]-c.start[1])/h,s=function(b){var d=c.start[0]+p*b,e=c.start[1]+q*b,f={pageX:d,pageY:e,clientX:d,clientY:e},g=this._createTouchList([a.merge({identifier:r++},f)]);this._simulateEvent(this.target,n,a.merge({touches:g,targetTouches:g,changedTouches:g},f))},f=0;h>f;f++)e.add({fn:s,args:[f],context:this});e.add({fn:function(){var b={pageX:c.end[0],pageY:c.end[1],clientX:c.end[0],clientY:c.end[1]},d=this._createTouchList([a.merge({identifier:r},b)]);this._simulateEvent(this.target,n,a.merge({touches:d,targetTouches:d,changedTouches:d},b))},timeout:0,context:this}),e.add({fn:function(){var b={pageX:c.end[0],pageY:c.end[1],clientX:c.end[0],clientY:c.end[1]},d=this._getEmptyTouchList(),e=this._createTouchList([a.merge({identifier:r},b)]);this._simulateEvent(this.target,o,a.merge({touches:d,targetTouches:d,changedTouches:e},b))},context:this}),b&&a.Lang.isFunction(b)&&e.add({fn:b,context:this.node}),e.run()},_getEmptyTouchList:function(){return h||(h=this._createTouchList([])),h},_createTouchList:function(c){var e,d=[],f=this;return c&&a.Lang.isArray(c)?a.UA.android&&a.UA.android>=4||a.UA.ios&&a.UA.ios>=2?(a.each(c,function(b){b.identifier||(b.identifier=0),b.pageX||(b.pageX=0),b.pageY||(b.pageY=0),b.screenX||(b.screenX=0),b.screenY||(b.screenY=0),d.push(g.createTouch(a.config.win,f.target,b.identifier,b.pageX,b.pageY,b.screenX,b.screenY))}),e=g.createTouchList.apply(g,d)):a.UA.ios&&a.UA.ios<2?a.error(b+": No touch event simulation framework present."):(e=[],a.each(c,function(a){a.identifier||(a.identifier=0),a.clientX||(a.clientX=0),a.clientY||(a.clientY=0),a.pageX||(a.pageX=0),a.pageY||(a.pageY=0),a.screenX||(a.screenX=0),a.screenY||(a.screenY=0),e.push({target:f.target,identifier:a.identifier,clientX:a.clientX,clientY:a.clientY,pageX:a.pageX,pageY:a.pageY,screenX:a.screenX,screenY:a.screenY})}),e.item=function(a){return e[a]}):a.error(b+": Invalid touchPoints passed"),e},_simulateEvent:function(b,c,e){var g;f[c]?d?a.Event.simulate(b,c,e):this._isSingleTouch(e.touches,e.targetTouches,e.changedTouches)?(c={touchstart:u,touchmove:t,touchend:s}[c],e.button=0,e.relatedTarget=null,g=c===s?e.changedTouches:e.touches,e=a.mix(e,{screenX:g.item(0).screenX,screenY:g.item(0).screenY,clientX:g.item(0).clientX,clientY:g.item(0).clientY},!0),a.Event.simulate(b,c,e),c==s&&a.Event.simulate(b,v,e)):a.error("_simulateEvent(): Event '"+c+"' has multi touch objects that can't be simulated in your platform."):a.Event.simulate(b,c,e)},_isSingleTouch:function(a,b,c){return a&&a.length<=1&&b&&b.length<=1&&c&&c.length<=1}},a.GestureSimulation=c,a.GestureSimulation.defaults=l,a.GestureSimulation.GESTURES=e,a.Event.simulateGesture=function(c,d,f,g){c=a.one(c);var h=new a.GestureSimulation(c);if(d=d.toLowerCase(),!g&&a.Lang.isFunction(f)&&(g=f,f={}),f=f||{},e[d])switch(d){case"tap":h.tap(g,f.point,f.times,f.hold,f.delay);break;case"doubletap":h.tap(g,f.point,2);break;case"press":a.Lang.isNumber(f.hold)?f.hold l.MAX_HOLD_PRESS&&(f.hold=l.MAX_HOLD_PRESS):f.hold=l.HOLD_PRESS,h.tap(g,f.point,1,f.hold);break;case"move":h.move(g,f.path,f.duration);break;case"flick":h.flick(g,f.point,f.axis,f.distance,f.duration);break;case"pinch":h.pinch(g,f.center,f.r1,f.r2,f.duration,f.start,f.rotation);break;case"rotate":h.rotate(g,f.center,f.r1,f.r2,f.duration,f.start,f.rotation)}else a.error(b+": Not a supported gesture simulation: "+d)}},"3.10.1",{requires:["async-queue","event-simulate","node-screen"]}),YUI.add("node-event-simulate",function(a){a.Node.prototype.simulate=function(b,c){a.Event.simulate(a.Node.getDOMNode(this),b,c)},a.Node.prototype.simulateGesture=function(b,c,d){a.Event.simulateGesture(this,b,c,d)}},"3.10.1",{requires:["node-base","event-simulate","gesture-simulate"]}),YUI.add("node-focusmanager",function(a){var c="activeDescendant",d="id",e="disabled",f="tabIndex",g="focused",h="focusClass",i="circular",j="UI",k="key",l=c+"Change",m="host",n={37:!0,38:!0,39:!0,40:!0},o={a:!0,button:!0,input:!0,object:!0},p=a.Lang,q=a.UA,r=function(){r.superclass.constructor.apply(this,arguments)};r.ATTRS={focused:{value:!1,readOnly:!0},descendants:{getter:function(a){return this.get(m).all(a)}},activeDescendant:{setter:function(b){var h,i,j,c=p.isNumber,e=a.Attribute.INVALID_VALUE,f=this._descendantsMap,g=this._descendants;return c(b)?(h=b,i=h):b instanceof a.Node&&f?(h=f[b.get(d)],i=c(h)?h:e):i=e,g&&(j=g.item(h),j&&j.get("disabled")&&(i=e)),i}},keys:{value:{next:null,previous:null}},focusClass:{},circular:{value:!0}},a.extend(r,a.Plugin.Base,{_stopped:!0,_descendants:null,_descendantsMap:null,_focusedNode:null,_lastNodeIndex:0,_eventHandlers:null,_initDescendants:function(){var i,k,l,b=this.get("descendants"),g={},h=-1,j=this.get(c),m=0;if(p.isUndefined(j)&&(j=-1),b){for(i=b.size(),m=0;i>m;m++)k=b.item(m),-1===h&&!k.get(e)&&(h=m),0>j&&0===parseInt(k.getAttribute(f,2),10)&&(j=m),k&&k.set(f,-1),l=k.get(d),l||(l=a.guid(),k.set(d,l)),g[l]=m;0>j&&(j=0),k=b.item(j),(!k||k.get(e))&&(k=b.item(h),j=h),this._lastNodeIndex=i-1,this._descendants=b,this._descendantsMap=g,this.set(c,j),k&&k.set(f,0)}},_isDescendant:function(a){return a.get(d)in this._descendantsMap},_removeFocusClass:function(){var c,a=this._focusedNode,b=this.get(h);b&&(c=p.isString(b)?b:b.className),a&&c&&a.removeClass(c)},_detachKeyHandler:function(){var a=this._prevKeyHandler,b=this._nextKeyHandler;a&&a.detach(),b&&b.detach()},_preventScroll:function(a){n[a.keyCode]&&this._isDescendant(a.target)&&a.preventDefault()},_fireClick:function(a){var b=a.target,c=b.get("nodeName").toLowerCase();13===a.keyCode&&(!o[c]||"a"===c&&!b.getAttribute("href"))&&b.simulate("click")},_attachKeyHandler:function(){this._detachKeyHandler();var b=this.get("keys.next"),c=this.get("keys.previous"),d=this.get(m),e=this._eventHandlers;c&&(this._prevKeyHandler=a.on(k,a.bind(this._focusPrevious,this),d,c)),b&&(this._nextKeyHandler=a.on(k,a.bind(this._focusNext,this),d,b)),q.opera&&e.push(d.on("keypress",this._preventScroll,this)),q.opera||e.push(d.on("keypress",this._fireClick,this))},_detachEventHandlers:function(){this._detachKeyHandler();var b=this._eventHandlers;b&&(a.Array.each(b,function(a){a.detach()}),this._eventHandlers=null)},_attachEventHandlers:function(){var c,d,e,b=this._descendants;b&&b.size()&&(c=this._eventHandlers||[],d=this.get(m).get("ownerDocument"),0===c.length&&(c.push(d.on("focus",this._onDocFocus,this)),c.push(d.on("mousedown",this._onDocMouseDown,this)),c.push(this.after("keysChange",this._attachKeyHandler)),c.push(this.after("descendantsChange",this._initDescendants)),c.push(this.after(l,this._afterActiveDescendantChange)),e=this.after("focusedChange",a.bind(function(a){a.newVal&&(this._attachKeyHandler(),e.detach())},this)),c.push(e)),this._eventHandlers=c)},_onDocMouseDown:function(a){var e,b=this.get(m),c=a.target,d=b.contains(c),f=function(a){var c=!1;return a.compareTo(b)||(c=this._isDescendant(a)?a:f.call(this,a.get("parentNode"))),c};d&&(e=f.call(this,c),e?c=e:!e&&this.get(g)&&(this._set(g,!1),this._onDocFocus(a))),d&&this._isDescendant(c)?this.focus(c):q.webkit&&this.get(g)&&(!d||d&&!this._isDescendant(c))&&(this._set(g,!1),this._onDocFocus(a))},_onDocFocus:function(a){var f,b=this._focusTarget||a.target,c=this.get(g),d=this.get(h),e=this._focusedNode;this._focusTarget&&(this._focusTarget=null),this.get(m).contains(b)?(f=this._isDescendant(b),!c&&f?c=!0:c&&!f&&(c=!1)):c=!1,d&&(e&&(!e.compareTo(b)||!c)&&this._removeFocusClass(),f&&c&&(d.fn?(b=d.fn(b),b.addClass(d.className)):b.addClass(d),this._focusedNode=b)),this._set(g,c)},_focusNext:function(a,b){var e,d=b||this.get(c);this._isDescendant(a.target)&&d<=this._lastNodeIndex&&(d+=1,d===this._lastNodeIndex+1&&this.get(i)&&(d=0),e=this._descendants.item(d),e&&(e.get("disabled")?this._focusNext(a,d):this.focus(d))),this._preventScroll(a)},_focusPrevious:function(a,b){var e,d=b||this.get(c);this._isDescendant(a.target)&&d>=0&&(d-=1,-1===d&&this.get(i)&&(d=this._lastNodeIndex),e=this._descendants.item(d),e&&(e.get("disabled")?this._focusPrevious(a,d):this.focus(d))),this._preventScroll(a)},_afterActiveDescendantChange:function(a){var b=this._descendants.item(a.prevVal);b&&b.set(f,-1),b=this._descendants.item(a.newVal),b&&b.set(f,0)},initializer:function(){this.start()},destructor:function(){this.stop(),this.get(m).focusManager=null},focus:function(a){p.isUndefined(a)&&(a=this.get(c)),this.set(c,a,{src:j});var b=this._descendants.item(this.get(c));b&&(b.focus(),q.opera&&"button"===b.get("nodeName").toLowerCase()&&(this._focusTarget=b))},blur:function(){var a;this.get(g)&&(a=this._descendants.item(this.get(c)),a&&(a.blur(),this._removeFocusClass()),this._set(g,!1,{src:j}))},start:function(){this._stopped&&(this._initDescendants(),this._attachEventHandlers(),this._stopped=!1)},stop:function(){this._stopped||(this._detachEventHandlers(),this._descendants=null,this._focusedNode=null,this._lastNodeIndex=0,this._stopped=!0)},refresh:function(){this._initDescendants(),this._eventHandlers||this._attachEventHandlers()}}),r.NAME="nodeFocusManager",r.NS="focusManager",a.namespace("Plugin"),a.Plugin.NodeFocusManager=r},"3.10.1",{requires:["attribute","node","plugin","node-event-simulate","event-key","event-focus"]}),YUI.add("base-pluginhost",function(a){var c=a.Base,d=a.Plugin.Host;a.mix(c,d,!1,null,1),c.plug=d.plug,c.unplug=d.unplug},"3.10.1",{requires:["base-base","pluginhost"]}),YUI.add("widget-base",function(a){function c(a){var d,e,b=this,f=b.constructor;b._strs={},b._cssPrefix=f.CSS_PREFIX||g(f.NAME.toLowerCase()),a=a||{},c.superclass.constructor.call(b,a),e=b.get(z),e&&(e!==J&&(d=e),b.render(d))}var h,L,d=a.Lang,e=a.Node,f=a.ClassNameManager,g=f.getClassName,i=a.cached(function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}),j="content",k="visible",l="hidden",m="disabled",n="focused",o="width",p="height",q="boundingBox",r="contentBox",s="parentNode",t="ownerDocument",u="auto",v="srcNode",w="body",x="tabIndex",y="id",z="render",A="rendered",B="destroyed",C="strings",D="",E="Change",F="loading",G="_uiSet",H="",I=function(){},J=!0,K=!1,M={},N=[k,m,p,o,n,x],O=a.UA.webkit,P={};c.NAME="widget",L=c.UI_SRC="ui",c.ATTRS=M,M[y]={valueFn:"_guid",writeOnce:J},M[A]={value:K,readOnly:J},M[q]={value:null,setter:"_setBB",writeOnce:J},M[r]={valueFn:"_defaultCB",setter:"_setCB",writeOnce:J},M[x]={value:null,validator:"_validTabIndex"},M[n]={value:K,readOnly:J},M[m]={value:K},M[k]={value:J},M[p]={value:H},M[o]={value:H},M[C]={value:{},setter:"_strSetter",getter:"_strGetter"},M[z]={value:K,writeOnce:J},c.CSS_PREFIX=g(c.NAME.toLowerCase()),c.getClassName=function(){return g.apply(f,[c.CSS_PREFIX].concat(a.Array(arguments),!0))},h=c.getClassName,c.getByNode=function(b){var c,d=h();return b=e.one(b),b&&(b=b.ancestor("."+d,!0),b&&(c=P[a.stamp(b,!0)])),c||null},a.extend(c,a.Base,{getClassName:function(){return g.apply(f,[this._cssPrefix].concat(a.Array(arguments),!0))},initializer:function(b){var c=this.get(q);c instanceof e&&this._mapInstance(a.stamp(c)),this._applyParser&&this._applyParser(b)},_mapInstance:function(a){P[a]=this},destructor:function(){var c,b=this.get(q);b instanceof e&&(c=a.stamp(b,!0),c in P&&delete P[c],this._destroyBox())},destroy:function(a){return this._destroyAllNodes=a,c.superclass.destroy.apply(this)},_destroyBox:function(){var d,a=this.get(q),b=this.get(r),c=this._destroyAllNodes;d=a&&a.compareTo(b),this.UI_EVENTS&&this._destroyUIEvents(),this._unbindUI(a),c?(a.empty(),a.remove(J)):(b&&b.remove(J),d||a.remove(J))},render:function(a){return!this.get(B)&&!this.get(A)&&(this.publish(z,{queuable:K,fireOnce:J,defaultTargetOnly:J,defaultFn:this._defRenderFn}),this.fire(z,{parentNode:a?e.one(a):null})),this},_defRenderFn:function(a){this._parentNode=a.parentNode,this.renderer(),this._set(A,J),this._removeLoadingClassNames()},renderer:function(){var a=this;a._renderUI(),a.renderUI(),a._bindUI(),a.bindUI(),a._syncUI(),a.syncUI()},bindUI:I,renderUI:I,syncUI:I,hide:function(){return this.set(k,K)},show:function(){return this.set(k,J)},focus:function(){return this._set(n,J)},blur:function(){return this._set(n,K)},enable:function(){return this.set(m,K)},disable:function(){return this.set(m,J)},_uiSizeCB:function(a){this.get(r).toggleClass(h(j,"expanded"),a)},_renderBox:function(a){var b=this,c=b.get(r),d=b.get(q),f=b.get(v),g=b.DEF_PARENT_NODE,h=f&&f.get(t)||d.get(t)||c.get(t);f&&!f.compareTo(c)&&!c.inDoc(h)&&f.replace(c),!d.compareTo(c.get(s))&&!d.compareTo(c)&&(c.inDoc(h)&&c.replace(d),d.appendChild(c)),a=a||g&&e.one(g),a?a.appendChild(d):d.inDoc(h)||e.one(w).insert(d,0)},_setBB:function(a){return this._setBox(this.get(y),a,this.BOUNDING_TEMPLATE,!0)},_setCB:function(a){return null===this.CONTENT_TEMPLATE?this.get(q):this._setBox(null,a,this.CONTENT_TEMPLATE,!1)},_defaultCB:function(){return this.get(v)||null},_setBox:function(b,c,d,f){return c=e.one(c),c||(c=e.create(d),f?this._bbFromTemplate=!0:this._cbFromTemplate=!0),c.get(y)||c.set(y,b||a.guid()),c},_renderUI:function(){this._renderBoxClassNames(),this._renderBox(this._parentNode)},_renderBoxClassNames:function(){var b,d,a=this._getClasses(),c=this.get(q);for(c.addClass(h()),d=a.length-3;d>=0;d--)b=a[d],c.addClass(b.CSS_PREFIX||g(b.NAME.toLowerCase()));this.get(r).addClass(this.getClassName(j))},_removeLoadingClassNames:function(){var a=this.get(q),b=this.get(r),c=this.getClassName(F),d=h(F);a.removeClass(d).removeClass(c),b.removeClass(d).removeClass(c)},_bindUI:function(){this._bindAttrUI(this._UI_ATTRS.BIND),this._bindDOM()},_unbindUI:function(a){this._unbindDOM(a)},_bindDOM:function(){var b=this.get(q).get(t),d=c._hDocFocus;d||(d=c._hDocFocus=b.on("focus",this._onDocFocus,this),d.listeners={count:0}),d.listeners[a.stamp(this,!0)]=!0,d.listeners.count++,O&&(this._hDocMouseDown=b.on("mousedown",this._onDocMouseDown,this))},_unbindDOM:function(){var f,d=c._hDocFocus,e=a.stamp(this,!0),g=this._hDocMouseDown;d&&(f=d.listeners,f[e]&&(delete f[e],f.count--),0===f.count&&(d.detach(),c._hDocFocus=null)),O&&g&&g.detach()},_syncUI:function(){this._syncAttrUI(this._UI_ATTRS.SYNC)},_uiSetHeight:function(a){this._uiSetDim(p,a),this._uiSizeCB(a!==H&&a!==u)},_uiSetWidth:function(a){this._uiSetDim(o,a)},_uiSetDim:function(a,b){this.get(q).setStyle(a,d.isNumber(b)?b+this.DEF_UNIT:b)},_uiSetVisible:function(a){this.get(q).toggleClass(this.getClassName(l),!a)},_uiSetDisabled:function(a){this.get(q).toggleClass(this.getClassName(m),a)},_uiSetFocused:function(a,b){var c=this.get(q);c.toggleClass(this.getClassName(n),a),b!==L&&(a?c.focus():c.blur())},_uiSetTabIndex:function(a){var b=this.get(q);d.isNumber(a)?b.set(x,a):b.removeAttribute(x)},_onDocMouseDown:function(a){this._domFocus&&this._onDocFocus(a)},_onDocFocus:function(a){var b=c.getByNode(a.target),d=c._active;d&&d!==b&&(d._domFocus=!1,d._set(n,!1,{src:L}),c._active=null),b&&(b._domFocus=!0,b._set(n,!0,{src:L}),c._active=b)},toString:function(){return this.name+"["+this.get(y)+"]"},DEF_UNIT:"px",DEF_PARENT_NODE:null,CONTENT_TEMPLATE:D,BOUNDING_TEMPLATE:D,_guid:function(){return a.guid()},_validTabIndex:function(a){return d.isNumber(a)||d.isNull(a)},_bindAttrUI:function(a){var b,c=a.length;for(b=0;c>b;b++)this.after(a[b]+E,this._setAttrUI)},_syncAttrUI:function(a){var b,d,c=a.length;for(b=0;c>b;b++)d=a[b],this[G+i(d)](this.get(d))},_setAttrUI:function(a){a.target===this&&this[G+i(a.attrName)](a.newVal,a.src)},_strSetter:function(b){return a.merge(this.get(C),b)},getString:function(a){return this.get(C)[a]},getStrings:function(){return this.get(C)},_UI_ATTRS:{BIND:N,SYNC:N}}),a.Widget=c},"3.10.1",{requires:["attribute","base-base","base-pluginhost","classnamemanager","event-focus","node-base","node-style"],skinnable:!0}),YUI.add("widget-htmlparser",function(a){var c=a.Widget,d=a.Node,e=a.Lang,f="srcNode",g="contentBox";c.HTML_PARSER={},c._buildCfg={aggregates:["HTML_PARSER"]},c.ATTRS[f]={value:null,setter:d.one,getter:"_getSrcNode",writeOnce:!0},a.mix(c.prototype,{_getSrcNode:function(a){return a||this.get(g)},_applyParsedConfig:function(b,c,d){return d?a.mix(c,d,!1):c},_applyParser:function(b){var g,h,c=this,d=this._getNodeToParse(),f=c._getHtmlParser();f&&d&&a.Object.each(f,function(a,b){h=null,e.isFunction(a)?h=a.call(c,d):e.isArray(a)?(h=d.all(a[0]),h.isEmpty()&&(h=null)):h=d.one(a),null!==h&&void 0!==h&&(g=g||{},g[b]=h)}),b=c._applyParsedConfig(d,b,g)},_getNodeToParse:function(){var a=this.get("srcNode");return this._cbFromTemplate?null:a},_getHtmlParser:function(){var d,e,b=this._getClasses(),c={};for(d=b.length-1;d>=0;d--)e=b[d].HTML_PARSER,e&&a.mix(c,e,!0);return c}})},"3.10.1",{requires:["widget-base"]}),YUI.add("widget-skin",function(a){var c="boundingBox",d="contentBox",e="skin",f=a.ClassNameManager.getClassName;a.Widget.prototype.getSkinName=function(a){var g,h,b=this.get(d)||this.get(c);return a=a||f(e,""),h=new RegExp("\\b"+a+"(\\S+)"),b&&b.ancestor(function(a){return g=a.get("className").match(h)}),g?g[1]:null}},"3.10.1",{requires:["widget-base"]}),YUI.add("widget-uievents",function(a){var c="boundingBox",d=a.Widget,e="render",f=a.Lang,g=":",h=a.Widget._uievts=a.Widget._uievts||{};a.mix(d.prototype,{_destroyUIEvents:function(){var b=a.stamp(this,!0);a.each(h,function(c,d){c.instances[b]&&(delete c.instances[b],a.Object.isEmpty(c.instances)&&(c.handle.detach(),h[d]&&delete h[d]))})},UI_EVENTS:a.Node.DOM_EVENTS,_getUIEventNode:function(){return this.get(c)},_createUIEvent:function(b){var g,c=this._getUIEventNode(),e=a.stamp(c)+b,f=h[e];f||(g=c.delegate(b,function(a){var b=d.getByNode(this);b&&b._filterUIEvent(a)&&b.fire(a.type,{domEvent:a})},"."+a.Widget.getClassName()),h[e]=f={instances:{},handle:g}),f.instances[a.stamp(this)]=1},_filterUIEvent:function(a){return a.currentTarget.compareTo(a.container)||a.container.compareTo(this._getUIEventNode())},_getUIEvent:function(a){if(f.isString(a)){var c,d,b=this.parseType(a)[1];return b&&(c=b.indexOf(g),c>-1&&(b=b.substring(c+g.length)),this.UI_EVENTS[b]&&(d=b)),d}},_initUIEvent:function(a){var b=this._getUIEvent(a),c=this._uiEvtsInitQueue||{};b&&!c[b]&&(this._uiEvtsInitQueue=c[b]=1,this.after(e,function(){this._createUIEvent(b),delete this._uiEvtsInitQueue[b]}))},on:function(a){return this._initUIEvent(a),d.superclass.on.apply(this,arguments)},publish:function(a,b){var c=this._getUIEvent(a);return c&&b&&b.defaultFn&&this._initUIEvent(c),d.superclass.publish.apply(this,arguments)}},!0)},"3.10.1",{requires:["node-event-delegate","widget-base"]}),YUI.add("arraylist",function(a){function c(b){this._items=void 0!==b?a.Lang.isArray(b)?b:d(b):this._items||[]}var f,d=a.Array,e=d.each;f={item:function(a){return this._items[a]},each:function(a,b){return e(this._items,function(c,d){c=this.item(d),a.call(b||c,c,d,this)},this),this},some:function(a,b){return d.some(this._items,function(c,d){return c=this.item(d),a.call(b||c,c,d,this)},this)},indexOf:function(a){return d.indexOf(this._items,a)},size:function(){return this._items.length},isEmpty:function(){return!this.size()},toJSON:function(){return this._items}},f._item=f.item,a.mix(c.prototype,f),a.mix(c,{addMethod:function(a,b){b=d(b),e(b,function(b){a[b]=function(){var a=d(arguments,0,!0),c=[];return e(this._items,function(d,e){d=this._item(e);var f=d[b].apply(d,a);void 0!==f&&f!==d&&(c[e]=f)},this),c.length?c:this}})}}),a.ArrayList=c},"3.10.1",{requires:["yui-base"]}),YUI.add("widget-parent",function(a){function c(b){this.publish("addChild",{defaultTargetOnly:!0,defaultFn:this._defAddChildFn}),this.publish("removeChild",{defaultTargetOnly:!0,defaultFn:this._defRemoveChildFn}),this._items=[];var c,d;b&&b.children&&(c=b.children,d=this.after("initializedChange",function(){this._add(c),d.detach()})),a.after(this._renderChildren,this,"renderUI"),a.after(this._bindUIParent,this,"bindUI"),this.after("selectionChange",this._afterSelectionChange),this.after("selectedChange",this._afterParentSelectedChange),this.after("activeDescendantChange",this._afterActiveDescendantChange),this._hDestroyChild=this.after("*:destroy",this._afterDestroyChild),this.after("*:focusedChange",this._updateActiveDescendant)}var d=a.Lang,e="rendered",f="boundingBox";c.ATTRS={defaultChildType:{setter:function(b){var c=a.Attribute.INVALID_VALUE,e=d.isString(b)?a[b]:b;return d.isFunction(e)&&(c=e),c}},activeDescendant:{readOnly:!0},multiple:{value:!1,validator:d.isBoolean,writeOnce:!0,getter:function(a){var b=this.get("root");return b&&b!=this?b.get("multiple"):a}},selection:{readOnly:!0,setter:"_setSelection",getter:function(b){var c=d.isArray(b)?new a.ArrayList(b):b;return c}},selected:{setter:function(b){var c=b;return 1===b&&!this.get("multiple")&&(c=a.Attribute.INVALID_VALUE),c}}},c.prototype={destructor:function(){this._destroyChildren()},_afterDestroyChild:function(a){var b=a.target; +b.get("parent")==this&&b.remove()},_afterSelectionChange:function(b){if(b.target==this&&b.src!=this){var c=b.newVal,d=0;c&&(d=2,a.instanceOf(c,a.ArrayList)&&c.size()===this.size()&&(d=1)),this.set("selected",d,{src:this})}},_afterActiveDescendantChange:function(a){var b=this.get("parent");b&&b._set("activeDescendant",a.newVal)},_afterParentSelectedChange:function(a){var b=a.newVal;this==a.target&&a.src!=this&&(0===b||1===b)&&this.each(function(a){a.set("selected",b,{src:this})},this)},_setSelection:function(a){var c,b=null;return this.get("multiple")&&!this.isEmpty()?(c=[],this.each(function(a){a.get("selected")>0&&c.push(a)}),c.length>0&&(b=c)):a.get("selected")>0&&(b=a),b},_updateSelection:function(a){var c,b=a.target;b.get("parent")==this&&("_updateSelection"!=a.src&&(c=this.get("selection"),!this.get("multiple")&&c&&a.newVal>0&&c.set("selected",0,{src:"_updateSelection"}),this._set("selection",b)),a.src==this&&this._set("selection",b,{src:this}))},_updateActiveDescendant:function(a){var b=a.newVal===!0?a.target:null;this._set("activeDescendant",b)},_createChild:function(b){var f,g,h,c=this.get("defaultChildType"),e=b.childType||b.type;return e&&(g=d.isString(e)?a[e]:e),d.isFunction(g)?h=g:c&&(h=c),h?f=new h(b):a.error("Could not create a child instance because its constructor is either undefined or invalid."),f},_defAddChildFn:function(b){var c=b.child,e=b.index,f=this._items;c.get("parent")&&c.remove(),d.isNumber(e)?f.splice(e,0,c):f.push(c),c._set("parent",this),c.addTarget(this),b.index=c.get("index"),c.after("selectedChange",a.bind(this._updateSelection,this))},_defRemoveChildFn:function(a){var b=a.child,c=a.index,d=this._items;b.get("focused")&&b.blur(),b.get("selected")&&b.set("selected",0),d.splice(c,1),b.removeTarget(this),b._oldParent=b.get("parent"),b._set("parent",null)},_add:function(b,c){var e,f,g;return d.isArray(b)?(e=[],a.each(b,function(a,b){f=this._add(a,c+b),f&&e.push(f)},this),e.length>0&&(g=e)):(f=a.instanceOf(b,a.Widget)?b:this._createChild(b),f&&this.fire("addChild",{child:f,index:c})&&(g=f)),g},add:function(){var b=this._add.apply(this,arguments),c=b?d.isArray(b)?b:[b]:[];return new a.ArrayList(c)},remove:function(a){var c,b=this._items[a];return b&&this.fire("removeChild",{child:b,index:a})&&(c=b),c},removeAll:function(){var c,b=[];return a.each(this._items.concat(),function(){c=this.remove(0),c&&b.push(c)},this),new a.ArrayList(b)},selectChild:function(a){this.item(a).set("selected",1)},selectAll:function(){this.set("selected",1)},deselectAll:function(){this.set("selected",0)},_uiAddChild:function(a,b){a.render(b);var d,h,c=a.get("boundingBox"),g=a.next(!1);g&&g.get(e)?(d=g.get(f),d.insert(c,"before")):(h=a.previous(!1),h&&h.get(e)?(d=h.get(f),d.insert(c,"after")):b.contains(c)||b.appendChild(c))},_uiRemoveChild:function(a){a.get("boundingBox").remove()},_afterAddChild:function(a){var b=a.child;b.get("parent")==this&&this._uiAddChild(b,this._childrenContainer)},_afterRemoveChild:function(a){var b=a.child;b._oldParent==this&&this._uiRemoveChild(b)},_bindUIParent:function(){this.after("addChild",this._afterAddChild),this.after("removeChild",this._afterRemoveChild)},_renderChildren:function(){var a=this._childrenContainer||this.get("contentBox");this._childrenContainer=a,this.each(function(b){b.render(a)})},_destroyChildren:function(){this._hDestroyChild.detach(),this.each(function(a){a.destroy()})}},a.augment(c,a.ArrayList),a.WidgetParent=c},"3.10.1",{requires:["arraylist","base-build","widget"]}),YUI.add("widget-child",function(a){function c(){a.after(this._syncUIChild,this,"syncUI"),a.after(this._bindUIChild,this,"bindUI")}var d=a.Lang;c.ATTRS={selected:{value:0,validator:d.isNumber},index:{readOnly:!0,getter:function(){var a=this.get("parent"),b=-1;return a&&(b=a.indexOf(this)),b}},parent:{readOnly:!0},depth:{readOnly:!0,getter:function(){for(var a=this.get("parent"),b=this.get("root"),c=-1;a&&(c+=1,a!=b);)a=a.get("parent");return c}},root:{readOnly:!0,getter:function(){var b=function(c){var d=c.get("parent"),e=c.ROOT_TYPE,f=d;return e&&(f=d&&a.instanceOf(d,e)),f?b(d):c};return b(this)}}},c.prototype={ROOT_TYPE:null,_getUIEventNode:function(){var b,a=this.get("root");return a&&(b=a.get("boundingBox")),b},next:function(a){var c,b=this.get("parent");return b&&(c=b.item(this.get("index")+1)),!c&&a&&(c=b.item(0)),c},previous:function(a){var d,b=this.get("parent"),c=this.get("index");return b&&c>0&&(d=b.item([c-1])),!d&&a&&(d=b.item(b.size()-1)),d},remove:function(b){var c,e;return d.isNumber(b)?e=a.WidgetParent.prototype.remove.apply(this,arguments):(c=this.get("parent"),c&&(e=c.remove(this.get("index")))),e},isRoot:function(){return this==this.get("root")},ancestor:function(a){var c,b=this.get("root");if(this.get("depth")>a)for(c=this.get("parent");c!=b&&c.get("depth")>a;)c=c.get("parent");return c},_uiSetChildSelected:function(a){var b=this.get("boundingBox"),c=this.getClassName("selected");0===a?b.removeClass(c):b.addClass(c)},_afterChildSelectedChange:function(a){this._uiSetChildSelected(a.newVal)},_syncUIChild:function(){this._uiSetChildSelected(this.get("selected"))},_bindUIChild:function(){this.after("selectedChange",this._afterChildSelectedChange)}},a.WidgetChild=c},"3.10.1",{requires:["base-build","widget"]}),YUI.add("tabview-base",function(a){var c=a.ClassNameManager.getClassName,d="tabview",e="tab",f="panel",g="selected",h={},i=".",j=function(){this.init.apply(this,arguments)};j.NAME="tabviewBase",j._classNames={tabview:c(d),tabviewPanel:c(d,f),tabviewList:c(d,"list"),tab:c(e),tabLabel:c(e,"label"),tabPanel:c(e,f),selectedTab:c(e,g),selectedPanel:c(e,f,g)},j._queries={tabview:i+j._classNames.tabview,tabviewList:"> ul",tab:"> ul > li",tabLabel:"> ul > li > a",tabviewPanel:"> div",tabPanel:"> div > div",selectedTab:"> ul > "+i+j._classNames.selectedTab,selectedPanel:"> div "+i+j._classNames.selectedPanel},a.mix(j.prototype,{init:function(b){b=b||h,this._node=b.host||a.one(b.node),this.refresh()},initClassNames:function(b){var c=a.TabviewBase._classNames;a.Object.each(a.TabviewBase._queries,function(a,d){if(c[d]){var e=this.all(a);void 0!==b&&(e=e.item(b)),e&&e.addClass(c[d])}},this._node),this._node.addClass(c.tabview)},_select:function(b){var c=a.TabviewBase._classNames,d=a.TabviewBase._queries,e=this._node,f=e.one(d.selectedTab),g=e.one(d.selectedPanel),h=e.all(d.tab).item(b),i=e.all(d.tabPanel).item(b);f&&f.removeClass(c.selectedTab),g&&g.removeClass(c.selectedPanel),h&&h.addClass(c.selectedTab),i&&i.addClass(c.selectedPanel)},initState:function(){var b=a.TabviewBase._queries,c=this._node,d=c.one(b.selectedTab),e=d?c.all(b.tab).indexOf(d):0;this._select(e)},_scrubTextNodes:function(){this._node.one(a.TabviewBase._queries.tabviewList).get("childNodes").each(function(a){3===a.get("nodeType")&&a.remove()})},refresh:function(){this._scrubTextNodes(),this.initClassNames(),this.initState(),this.initEvents()},tabEventName:"click",initEvents:function(){this._node.delegate(this.tabEventName,this.onTabEvent,a.TabviewBase._queries.tab,this)},onTabEvent:function(b){b.preventDefault(),this._select(this._node.all(a.TabviewBase._queries.tab).indexOf(b.currentTarget))},destroy:function(){this._node.detach(this.tabEventName)}}),a.TabviewBase=j},"3.10.1",{requires:["node-event-delegate","classnamemanager"]}),YUI.add("tabview",function(a){var c=".",d=a.Base.create("tabView",a.Widget,[a.WidgetParent],{_afterChildAdded:function(){this.get("contentBox").focusManager.refresh()},_defListNodeValueFn:function(){var b=a.Node.create(this.LIST_TEMPLATE);return b.addClass(a.TabviewBase._classNames.tabviewList),b},_defPanelNodeValueFn:function(){var b=a.Node.create(this.PANEL_TEMPLATE);return b.addClass(a.TabviewBase._classNames.tabviewPanel),b},_afterChildRemoved:function(a){var b=a.index,c=this.get("selection");c||(c=this.item(b-1)||this.item(0),c&&c.set("selected",1)),this.get("contentBox").focusManager.refresh()},_initAria:function(){var b=this.get("contentBox"),c=b.one(a.TabviewBase._queries.tabviewList);c&&c.setAttrs({role:"tablist"})},bindUI:function(){this.get("contentBox").plug(a.Plugin.NodeFocusManager,{descendants:c+a.TabviewBase._classNames.tabLabel,keys:{next:"down:39",previous:"down:37"},circular:!0}),this.after("render",this._setDefSelection),this.after("addChild",this._afterChildAdded),this.after("removeChild",this._afterChildRemoved)},renderUI:function(){var a=this.get("contentBox");this._renderListBox(a),this._renderPanelBox(a),this._childrenContainer=this.get("listNode"),this._renderTabs(a)},_setDefSelection:function(){var a=this.get("selection")||this.item(0);this.some(function(b){return b.get("selected")?(a=b,!0):void 0}),a&&(this.set("selection",a),a.set("selected",1))},_renderListBox:function(a){var b=this.get("listNode");b.inDoc()||a.append(b)},_renderPanelBox:function(a){var b=this.get("panelNode");b.inDoc()||a.append(b)},_renderTabs:function(b){var d=a.TabviewBase._classNames,e=a.TabviewBase._queries,f=b.all(e.tab),g=this.get("panelNode"),h=g?this.get("panelNode").get("children"):null,i=this;f&&(f.addClass(d.tab),b.all(e.tabLabel).addClass(d.tabLabel),b.all(e.tabPanel).addClass(d.tabPanel),f.each(function(a,b){var e=h?h.item(b):null;i.add({boundingBox:a,contentBox:a.one(c+d.tabLabel),panelNode:e})}))}},{ATTRS:{defaultChildType:{value:"Tab"},listNode:{setter:function(b){return b=a.one(b),b&&b.addClass(a.TabviewBase._classNames.tabviewList),b},valueFn:"_defListNodeValueFn"},panelNode:{setter:function(b){return b=a.one(b),b&&b.addClass(a.TabviewBase._classNames.tabviewPanel),b},valueFn:"_defPanelNodeValueFn"},tabIndex:{value:null}},HTML_PARSER:{listNode:function(b){return b.one(a.TabviewBase._queries.tabviewList)},panelNode:function(b){return b.one(a.TabviewBase._queries.tabviewPanel)}},LIST_TEMPLATE:" ",PANEL_TEMPLATE:""});d.prototype.LIST_TEMPLATE=d.LIST_TEMPLATE,d.prototype.PANEL_TEMPLATE=d.PANEL_TEMPLATE,a.TabView=d,a.Tab=a.Base.create("tab",a.Widget,[a.WidgetChild],{BOUNDING_TEMPLATE:"",CONTENT_TEMPLATE:"",PANEL_TEMPLATE:"",_uiSetSelectedPanel:function(b){this.get("panelNode").toggleClass(a.TabviewBase._classNames.selectedPanel,b)},_afterTabSelectedChange:function(a){this._uiSetSelectedPanel(a.newVal)},_afterParentChange:function(a){a.newVal?this._add():this._remove()},_initAria:function(){var b=this.get("contentBox"),c=b.get("id"),d=this.get("panelNode");c||(c=a.guid(),b.set("id",c)),b.set("role","tab"),b.get("parentNode").set("role","presentation"),d.setAttrs({role:"tabpanel","aria-labelledby":c})},syncUI:function(){var b=a.TabviewBase._classNames;this.get("boundingBox").addClass(b.tab),this.get("contentBox").addClass(b.tabLabel),this.set("label",this.get("label")),this.set("content",this.get("content")),this._uiSetSelectedPanel(this.get("selected"))},bindUI:function(){this.after("selectedChange",this._afterTabSelectedChange),this.after("parentChange",this._afterParentChange)},renderUI:function(){this._renderPanel(),this._initAria()},_renderPanel:function(){this.get("parent").get("panelNode").appendChild(this.get("panelNode"))},_add:function(){var a=this.get("parent").get("contentBox"),b=a.get("listNode"),c=a.get("panelNode");b&&b.appendChild(this.get("boundingBox")),c&&c.appendChild(this.get("panelNode"))},_remove:function(){this.get("boundingBox").remove(),this.get("panelNode").remove()},_onActivate:function(a){a.target===this&&(a.domEvent.preventDefault(),a.target.set("selected",1))},initializer:function(){this.publish(this.get("triggerEvent"),{defaultFn:this._onActivate})},_defLabelGetter:function(){return this.get("contentBox").getHTML()},_defLabelSetter:function(a){var b=this.get("contentBox");return b.getHTML()!==a&&b.setHTML(a),a},_defContentSetter:function(a){var b=this.get("panelNode");return b.getHTML()!==a&&b.setHTML(a),a},_defContentGetter:function(){return this.get("panelNode").getHTML()},_defPanelNodeValueFn:function(){var f,b=a.TabviewBase._classNames,c=this.get("contentBox").get("href")||"",d=this.get("parent"),e=c.indexOf("#");return c=c.substr(e),"#"===c.charAt(0)&&(f=a.one(c),f&&f.addClass(b.tabPanel)),!f&&d&&(f=d.get("panelNode").get("children").item(this.get("index"))),f||(f=a.Node.create(this.PANEL_TEMPLATE),f.addClass(b.tabPanel)),f}},{ATTRS:{triggerEvent:{value:"click"},label:{setter:"_defLabelSetter",getter:"_defLabelGetter"},content:{setter:"_defContentSetter",getter:"_defContentGetter"},panelNode:{setter:function(b){return b=a.one(b),b&&b.addClass(a.TabviewBase._classNames.tabPanel),b},valueFn:"_defPanelNodeValueFn"},tabIndex:{value:null,validator:"_validTabIndex"}},HTML_PARSER:{selected:function(){var b=this.get("boundingBox").hasClass(a.TabviewBase._classNames.selectedTab)?1:0;return b}}})},"3.10.1",{requires:["widget","widget-parent","widget-child","tabview-base","node-pluginhost","node-focusmanager"],skinnable:!0}); diff --git a/build/createjsTheme/assets/preloadjs-banner.png b/build/createjsTheme/assets/preloadjs-banner.png new file mode 100644 index 00000000..6cd9aa32 Binary files /dev/null and b/build/createjsTheme/assets/preloadjs-banner.png differ diff --git a/build/createjsTheme/assets/scss/elements/anchors.scss b/build/createjsTheme/assets/scss/elements/anchors.scss new file mode 100644 index 00000000..efd00042 --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/anchors.scss @@ -0,0 +1,167 @@ +//******************************************* +// +// ANCHORS/LINKS +// +// Description +// - Styling for anchor buttons thoughout the project +// +// Contents +// 1) LINK STRUCTURE +// 2) LINK STYLE +// +//******************************************* + + + +//******************************************* +// +// LINK STRUCTURE +// +//******************************************* +/* + + + +*/ + + + +//******************************************* +// +// LINK STYLE +// +//******************************************* +.link-default:link, +.link-default:visited { + // EXTEND + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + // Box Model + min-width: 12rem; + padding: 0 1rem; + margin: 1rem; + // Type + text-align: center; + font-size: $fontSize-smaller; + line-height: 4.2rem; + // DISPLAY + // Visual Enhancement + background-color: $color_gray-dark; + color: $color_gray-lightest; + // Type + font-family: $fontFamily-default; + font-weight: 700; + text-transform: uppercase; + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + &:first-of-type {margin-left: 0;} + &:last-of-type {margin-right: 0;} + &::before { + @extend %fontSmoothing; + content: attr(data-label); + display: block; + transition: transform $transition-default-inOut 0s; + } + &:hover:before { + @include bp($bp_width-600, min-) { + transform: scale(0.952380,0.952380); // 1/1.05 + } + } + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + // MODIFIERS + // Static + transform: scale(1,1) translateZ(0); + // Dynamic + transition: background-color $transition-default-out 0s; + &:active {background-color: $color_gray-dark;} + &:focus, + &:hover { + background-color: $color_gray-darker; + @include bp($bp_width-600, min-) { + transform: scale(1.05,1.05); + } + } + // BREAKPOINTS + @include bp($bp_width-500, max-) { + display: block; + margin: $gridUnit-smaller 0; + } + @include bp($bp_width-500, min-) { + display: inline-block; + } + @include bp($bp_width-600, min-) { + transition: + background-color $transition-default-out 0s, + transform $transition-default-inOut 0s; + } +} + +.link-large:link, +.link-large:visited { + @extend .link-default; + @include bp($bp_width-600, min-) { + font-size: $fontSize-small; + line-height: 4.5rem; + padding: 0.4rem 2rem; + } +} + + +.link-inline:link, +.link-inline:visited { + // EXTEND + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + display: inline-block; + // Box Model + min-width: 0; + margin:0; + padding: 0 3px; + // Type + // DISPLAY + // Visual Enhancement + background-color: $color_gray-darker-transparent; + color: $color_gray-darker; + // Type + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + // MODIFIERS + // Static + // Dynamic + &:hover { + @include bp($bp_width-max, max-) { + color: $color_gray-lightest; + background-color: $color_gray-darker; + } + @include bp($bp_width-max, min-) { + margin: 0 $gridUnit-smallest; + min-width: $gridUnit-largest; + color: $color_gray-lightest; + background: $color_gray-darker; + transition: //hover On + margin $transition-default-inOut 0s, + min-width $transition-default-inOut 0s, + color $transition-default-out 75ms, + background-color $transition-default-out 150ms; + } + } + // BREAKPOINTS + @include bp($bp_width-max, max-) { + color: $color_gray-dark; + padding: 0 2px; + } + @include bp($bp_width-max, min-) { + height: $gridUnit-large; + line-height: 3.5rem; + transition: // Hover Off + margin $transition-long-inOut 100ms, + min-width $transition-long-inOut 100ms, + color $transition-default-out 0s, + background-color $transition-default-out 0s; + } +} diff --git a/build/createjsTheme/assets/scss/elements/backToTop.scss b/build/createjsTheme/assets/scss/elements/backToTop.scss new file mode 100644 index 00000000..40116c60 --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/backToTop.scss @@ -0,0 +1,122 @@ +//******************************************* +// +// BACK TO TOP +// +// Description +// - Styling and placement for a back to top button on longer pages +// +// Contents +// 1) LAYOUT +// +//******************************************* + + +//******************************************* +// +// LAYOUT +// +//******************************************* +.backToTop { + // EXTEND + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + display: none; + position: fixed; + float: right; + // Box Model + width: $gridUnit-larger; + padding: 1.25rem 0; + // Type + text-align: center; + // DISPLAY + // Visual Enhancement + color: $color_gray-lighter; + background-color: $color_gray-darkest; + cursor: pointer; + // Type + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + &::before { + // EXTEND + @extend %fontSmoothing; + // VARS (locally scoped) + content: 'Top'; + // LAYOUT + // Display, Positioning + display: block; + // Box Model + // Type + font-size: $fontSize-smaller; + line-height: $gridUnit-small; + // DISPLAY + // Visual Enhancement + // Type + font-family: $fontFamily-default; + font-weight: 700; + text-transform:uppercase; + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + // MODIFIERS + // Static + // Dynamic + transition: transform $transition-default-out 0s; + // BREAKPOINTS + } + &:hover::before { + @include bp($bp_width-600, min-) { + transform: scale(0.8333333,0.8333333); // 1/1.2 + } + } + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + // MODIFIERS + // Static + transform: scale(1,1) translateZ(0); + // Dynamic + transition: + color $transition-default-out 0s, + background-color $transition-default-out 0s, + transform $transition-default-out 0s; + &:hover { + color: $color_gray-lightest; + background-color: $color_gray-darker; + @include bp($bp_width-600, min-) { + transform: scale(1.2,1.2); + } + } + // BREAKPOINTS + @include bp($bp_width-600, max-) { + bottom: $gridUnit-smallest; + right: $gridUnit-smallest; + } + @include bp($bp_width-600, min-, $bp_width-1024) { + bottom: $gridUnit-small; + right: $gridUnit-small; + } + @include bp($bp_width-1024, min-) { + bottom: $gridUnit-large; + right: $gridUnit-larger; + } +} + + +.backToTop-sticky { // Stops the back to top button from appearing over the footer + display: inline-block; + position: absolute; + bottom: $gridUnit-large +9.7rem; // 9.7rem is the current size of the footer +} + +.learn_sidebar .backToTop { + &:hover { + @include bp($bp_width-1024, min-) { + background-color: $color_gray-lightest; + } + } + @include bp($bp_width-1024, min-) { + color: $color_gray-darker; + background-color: $color_gray-lighter; + } +} diff --git a/build/createjsTheme/assets/scss/elements/buttons.scss b/build/createjsTheme/assets/scss/elements/buttons.scss new file mode 100644 index 00000000..57eb9c63 --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/buttons.scss @@ -0,0 +1,148 @@ +//******************************************* +// +// BUTTON ABSTRACT +// +// Description +// - Global button properties common to every button +// +// Contents +// 1-4) gFramework +// 5) BUTTON BASIC +// 6) CUSTOM BUTTONS +// +//******************************************* + + + +//******************************************* +// +// BUTTON BASIC +// +//******************************************* +.button-default { + // EXTEND + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + display: inline-block; + // Box Model + min-width: 12rem; + padding: 0 1rem; + margin: 1rem; + // Type + text-align: center; + // DISPLAY + // Visual Enhancement + background-color: $color_gray-dark; + color: $color_gray-lightest; + // Type + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + &:first-child {margin-left: 0;} + &:last-child {margin-right: 0;} + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + p { + // EXTEND + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + position: relative; + // Box Model + max-width: none; + margin: 0; + padding: 0; + // Type + font-size: $fontSize-smaller; + line-height: 4.2rem; + // DISPLAY + // Visual Enhancement + color: $color_gray-lightest; + // Type + font-family: $fontFamily-default; + font-weight: 700; + text-transform: uppercase; + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + &::before { + content: attr(data-label); + } + transition: transform $transition-default-inOut 0s; + &:hover { + @include bp($bp_width-600, min-) { + transform: scale(0.952380,0.952380); // 1/1.05 + } + } + } + + // MODIFIERS + // Static + transform: scale(1,1) translateZ(0); + // Dynamic + cursor: pointer; + transition: background-color $transition-default-out 0s; + transition: background-color $transition-default-out 0s; + &:active {background-color: $color_gray-dark;} + &:focus, + &:hover { + background-color: $color_gray-darker; + @include bp($bp_width-600, min-) { + transform: scale(1.05,1.05); + } + } + // BREAKPOINTS + @include bp($bp_width-500, max-) { + display: block; + margin: $gridUnit-smaller 0; + } + @include bp($bp_width-500, min-) { + display: inline-block; + } + @include bp($bp_width-600, min-) { + transition: + background-color $transition-default-out 0s, + transform $transition-default-inOut 0s; + } +} + +.button-default-large { + // EXTEND + @extend .button-default; + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + // Box Model + // Type + // DISPLAY + // Visual Enhancement + // Type + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + p { + @include bp($bp_width-600, min-) { + font-size: $fontSize-default; + line-height: $gridUnit-larger; + margin-top: -0.1rem; + font-weight: 700; + font-variant:small-caps; + text-transform:lowercase; + } + } + // MODIFIERS + // Static + // Dynamic + &:focus, + &:hover { + @include bp($bp_width-600, min-) { + padding: 0.5rem 2.2rem; + } + } + // BREAKPOINTS + @include bp($bp_width-600, min-) { + font-size: $fontSize-small; + line-height: 4.5rem; + padding: 0.4rem 2rem; + } +} diff --git a/build/createjsTheme/assets/scss/elements/codebox.scss b/build/createjsTheme/assets/scss/elements/codebox.scss new file mode 100644 index 00000000..1b56bbaf --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/codebox.scss @@ -0,0 +1,51 @@ +//******************************************* +// +// CODEBOX +// +// - Style for mid paragraph code windows +// +// Contents +// 1) CONTAINER +// +//******************************************* + + + +//******************************************* +// +// CONTAINER +// +//******************************************* +.codeBox { + // EXTEND + @extend %util-scroll-x; + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + overflow-y: scroll; + // Box Model + max-width: $gridUnit-largest * 10; + margin: $gridUnit-large 0; + border-left: $gridUnit-smallest solid $color_createjs-default; + padding: $gridUnit-small $gridUnit-smallest; + // Type + text-align: left; + line-height: $gridUnit-default; + // DISPLAY + // Visual Enhancement + background: $color_gray-lightest; + color: $color_gray-dark; + // Type + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // Classes : http://css-tricks.com/almanac/ + // CHILDREN + // Sass 3.3 Syntax Only (otherwise scope child outside this selector) + code { + white-space:pre; + } + // MODIFIERS + // Static + // Dynamic + // BREAKPOINTS +} diff --git a/build/createjsTheme/assets/scss/elements/codemirror_controls.scss b/build/createjsTheme/assets/scss/elements/codemirror_controls.scss new file mode 100644 index 00000000..1ca5c196 --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/codemirror_controls.scss @@ -0,0 +1,121 @@ +//******************************************* +// +// CODEMIRROR CONTROLS +// +// Description +// - Buttons and icons used in the codemirror code editor. +// +// Contents +// 1) BUTTON CONTAINER +// 2) BUTTON SYTLES +// +//******************************************* + + + +//******************************************* +// +// BUTTON CONTAINER +// +//******************************************* +.codemirror_controls { + @include bp($bp_width-480, min-, $bp_width-700) { + text-align: center; + background: $color_gray-darker; + } + @include bp($bp_width-700, min-) { + position: absolute; + right: 0; + z-index: $z-max; + } +} + + + +//******************************************* +// +// BUTTON STYLES +// +//******************************************* +.codemirror_reset, +.codemirror_run, +.codemirror_download { + // EXTEND + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + // Box Model + margin: 0 0 0 -4px; + padding: 0.6rem $gridUnit-default $gridUnit-smallest $gridUnit-default; + // Type + vertical-align: top; + // DISPLAY + // Visual Enhancement + border: 0; + outline: 0; + background-color: $color_gray-darker; + // Type + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + img { + float: left; + margin: 5px $gridUnit-smallest 0 0; + transition: transform $transition-default-default 0s; + transform-origin: center bottom; + transform: translateZ(0) scaleY(1); + } + p { + // EXTEND + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + display: inline-block; + // Box Model + padding: 0; + margin:0; + // Type + font-size: $fontSize-small; + line-height: $gridUnit-small; + // DISPLAY + // Visual Enhancement + color: $color_gray-lightest; + // Type + font-family: $fontFamily-default; + font-weight: 700; + font-variant:small-caps; + text-transform:lowercase; + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + // MODIFIERS + // Static + transform: translateZ(0) scaleY(1); + transform-origin: center bottom; + // Dynamic + transition: transform $transition-default-default 0s; + // BREAKPOINTS + } + // MODIFIERS + // Static + transform: translateZ(0) scaleY(1); + transform-origin: center top; + // Dynamic + transition: + background-color $transition-default-out 50ms, + transform $transition-default-default 0s; + &:hover { + background-color: $color_gray-darkest; + transform: scaleY(1.1); + p, + img { + transform: scaleY(0.90909); + } + } + // BREAKPOINTS + @include bp($bp_width-700, max-) { + display: inline-block; + } +} diff --git a/build/createjsTheme/assets/scss/elements/forms/fieldset.scss b/build/createjsTheme/assets/scss/elements/forms/fieldset.scss new file mode 100644 index 00000000..f4741afb --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/forms/fieldset.scss @@ -0,0 +1,29 @@ +//******************************************* +// +// FIELDSET ABSTRACT +// +// Contents +// 1) MARKUP +// 2) FIELDSET +// +//******************************************* + + + +//******************************************* +// +// MARKUP +// +//******************************************* +/* Markup: + +*/ + + + +//******************************************* +// +// FIELDSET +// +//******************************************* +fieldset {} \ No newline at end of file diff --git a/build/createjsTheme/assets/scss/elements/forms/forms.scss b/build/createjsTheme/assets/scss/elements/forms/forms.scss new file mode 100644 index 00000000..d2fb752b --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/forms/forms.scss @@ -0,0 +1,29 @@ +//******************************************* +// +// FORMS COMPONENTS +// +// Contents +// 1) MARKUP +// 2) FORM +// +//******************************************* + + + +//******************************************* +// +// MARKUP +// +//******************************************* +/* Markup: + +*/ + + + +//******************************************* +// +// FORM +// +//******************************************* +form {} diff --git a/build/createjsTheme/assets/scss/elements/forms/input.scss b/build/createjsTheme/assets/scss/elements/forms/input.scss new file mode 100644 index 00000000..410355ff --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/forms/input.scss @@ -0,0 +1,294 @@ +//******************************************* +// +// INPUT ABSTRACT +// +// Details +// - Styles for all input elements and types +// +// Contents +// 1) Markup +// 2) Input +// 3) Checkbox +// 4) Drop Down List +// 5) File Picker +// 6) Password Field +// 7) Radio Button +// 8) Button +// 9) Submit Button +// 10) Text +// -- HTML5 Input Types -- +// 11) Color +// 12) Date +// 13) Datetime +// 14) Email +// 15) Month +// 16) Number +// 17) Range +// 18) Search +// 19) Telephone Number +// 20) Time +// 21) URL +// 22) WEEK +// +//******************************************* + + + + +//******************************************* +// +// Markup +// +//******************************************* +/* Markup: + +*/ + + + +//******************************************* +// +// Input +// +//******************************************* +input { + @extend %transition-defaults !optional; + @include user-select(text); + padding: 0 $gridUnit-default; + border: none; + outline: none; + background-color: lighten($blue, 5%); + color: white; + @include style-placeholder { + color: lighten($blue, 20%); + } + &:focus { + @include style-placeholder { + color: lighten($blue, 50%); + } + background-color: lighten($blue, 10%); + } + &.error { + background-color: lighten($red, 10%); + @include style-placeholder { + color: lighten($red, 20%); + } + } +// BROWSER SPECIFIC + // Microsoft IE + // "Clear" Psuedo Element - http://msdn.microsoft.com/en-us/library/windows/apps/hh465740.aspx + &::-ms-clear { + display: none; //Removes "X" if it looks "X" indicates error + } +} + + + +//******************************************* +// +// Checkbox +// +//******************************************* +input[type="checkbox"] {} +input[type='checkbox']:checked {} + + + +//******************************************* +// +// Drop Down List +// +//******************************************* +select {} +option {} + + +//******************************************* +// +// File Picker +// +//******************************************* +/* Pops up an "open file" dialog */ +input[type="file"] {} + + + +//******************************************* +// +// Password Field +// +//******************************************* +/* Uses dots instead of characters as you type */ +input[type="password"] {} + + + +//******************************************* +// +// Radio Button +// +//******************************************* +/* Can be grouped with other inputs */ +input[type="radio"] {} + + + +//******************************************* +// +// Button +// +//******************************************* +%input-button { + // Comment required when empty +} + +input[type="button"] { + //@extend %input-button; +} + + + +//******************************************* +// +// Submit Button +// +//******************************************* +input[type="submit"] { + //@extend %input-button; +} + + + +//******************************************* +// +// Text +// +//******************************************* +/* the type attribute can be omitted) */ +input[type="text"] {} + + + +//******************************************* +// HTML5 Input Types +//******************************************* + + + +//******************************************* +// +// Color +// +//******************************************* +/* Select a color from a color picker */ +input[type="color"] {} + + + +//******************************************* +// +// Date +// +//******************************************* +/* Define a date control */ +input[type="date"] {} + + + +//******************************************* +// +// Datetime +// +//******************************************* +/* Define a date and time control (no time zone) */ +input[type="datetime-local"] {} + + + +//******************************************* +// +// Email +// +//******************************************* +/* Automatically validates email address when submitted */ +input[type="email"] {} + + + +//******************************************* +// +// Month +// +//******************************************* +/* Define a year and month */ +input[type="month"] {} + + + +//******************************************* +// +// Number +// +//******************************************* +/* Define a numeric field */ +input[type="number"] {} + + + +//******************************************* +// +// Range +// +//******************************************* +/* Like a slider control */ +input[type="range"] {} + + + +//******************************************* +// +// Search +// +//******************************************* +/* Defines a search field */ +input[type="search"] {} + + + +//******************************************* +// +// Telphone Number +// +//******************************************* +/* Defines a field for entering a telephone number */ +input[type="tel"] {} + + + +//******************************************* +// +// Time +// +//******************************************* +/* Defines a control for entering a time (no time zone) */ +input[type="time"] {} + + + +//******************************************* +// +// URL +// +//******************************************* +/* Defines a field for entering a url */ +input[type="url"] {} + + + +//******************************************* +// +// Week +// +//******************************************* +/* Define a week and year control */ +input[type="week"] {} diff --git a/build/createjsTheme/assets/scss/elements/forms/labels.scss b/build/createjsTheme/assets/scss/elements/forms/labels.scss new file mode 100644 index 00000000..27cf282f --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/forms/labels.scss @@ -0,0 +1,35 @@ +//******************************************* +// +// LABELS ABSTRACT +// +// Contents +// 1) MARKUP +// 2) LABEL +// +//******************************************* + + + +//******************************************* +// +// MARKUP +// +//******************************************* +/* Markup: + +*/ + + + +//******************************************* +// +// LABEL +// +//******************************************* +label { + color: lighten($blue, 50%); + font-size: 1rem; + text-transform: uppercase; + font-weight: 700; + &.error { color: darken($red, 25%); } +} \ No newline at end of file diff --git a/build/createjsTheme/assets/scss/elements/tags.scss b/build/createjsTheme/assets/scss/elements/tags.scss new file mode 100644 index 00000000..a138fe71 --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/tags.scss @@ -0,0 +1,343 @@ +//******************************************* +// +// HTML TAGS +// +// Description +// - Default styles for HTML tags e.g. ,
, +// +// Notes +// - Review normalize.scss for default tag styling +// +// Contents +// 1) BASE +// 2) LINKS +// 3) TYPE +// 4) EMBEDDED CONTENT +// 5) FIGURES +// 6) FORMS +// 7) TABLES +// +//******************************************* + + + +%fontSmoothing { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + -moz-font-smoothing: antialiased; + font-smoothing: antialiased; +} + + + +//******************************************* +// +// BASE +// +//******************************************* +* { + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + + +html { font-size: $fontSize-root; } + + +body { + @extend %fontSmoothing; + min-width: 320px; + background-color: $color_gray-lightest; + color: $color_gray-darker; + font-family: $fontFamily-default; + &.loading { display: none; } +} +section { + @extend %clearfix; + max-width:$bp_width-max; + + margin: 0 auto; + @include bp($bp_width-480, max-) { + padding: $gridUnit-large $gridUnit-default; + } + @include bp($bp_width-480, min-) { + padding: $gridUnit-largest $gridUnit-default; + } +} + + + +//******************************************* +// +// LINKS +// +//******************************************* +a:link, +a:visited { + // EXTEND + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + // Box Model + //padding: 0 2px; + position: relative; + // Type + // DISPLAY + // Visual Enhancement + color: $color_gray-dark; + outline: none; + z-index: 0; + // Type + font-family: $fontFamily-default; + font-weight: 400; + text-decoration: underline; + white-space: nowrap; + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // &::before { + // @extend %fontSmoothing; + // content: attr(data-label); + // } + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + // MODIFIERS + // Static + // Dynamic + // BREAKPOINTS +} +a:active, +a:hover { + color: $color_gray-darkest; + cursor: pointer; +} + + + +//******************************************* +// +// TYPE +// +//******************************************* +h1 { + // EXTEND + @extend %fontSmoothing; + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + // Box Model + margin:$gridUnit-default 0 0 0; + // Type + font-size: $fontSize-large; + // DISPLAY + // Visual Enhancement + // Type + font-weight: 700; + // text-transform:uppercase; + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // Classes : http://css-tricks.com/almanac/ + // CHILDREN + // Sass 3.3 Syntax Only (otherwise scope child outside this selector) + // MODIFIERS + // Static + // Dynamic + // BREAKPOINTS + @include bp($bp_width-600, min-) { + font-size: $fontSize-larger; + line-height: $gridUnit-larger; + } +} + +h2 { + @extend h1; + @include bp($bp_width-600, max-) { + font-size: $fontSize-default; + line-height: $gridUnit-default; + } + @include bp($bp_width-600, min-) { + font-size: $fontSize-large; + line-height: $gridUnit-large; + } +} + +h3 { + @extend h1; + font-size: $fontSize-small; + font-weight: 700; + text-transform: none; +} + +.args code, +h3 code { + font-family: "effra", sans-serif; +} +h3 code { + font-weight: bold; +} + + +.paren { + font-size: $fontSize-smaller; + margin: auto 5px; +} + +h4 { + font-variant: normal; + line-height: $gridUnit-smallest; + font-size: $fontSize-smaller; +} + +h5 { + @extend h1; + font-size: $fontSize-small; + line-height: 2.5rem; +} + +h6 { + @extend h1; + font-size: $fontSize-smaller; + line-height: $gridUnit-small; + margin: $gridUnit-smaller 0 0 0; +} + +p { + // EXTEND + @extend %fontSmoothing; + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + // Box Model + margin: $gridUnit-smaller 0 $gridUnit-smaller 0; + // Type + font-size: $fontSize-smallest; + line-height: 2.4rem; + // DISPLAY + // Visual Enhancement + color: $color_gray-dark; + // Type + font-family: $fontFamily-secondary; + font-weight: 400; + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // Classes : http://css-tricks.com/almanac/ + // CHILDREN + // Sass 3.3 Syntax Only (otherwise scope child outside this selector) + // MODIFIERS + // Static + // Dynamic + // BREAKPOINTS + @include bp($bp_width-600) { + font-size: $fontSize-smaller; + } +} + +// abbr[title] {} +// b {} +strong {font-weight:700;} // assumes the font is 'effra' weight: 700 +// dfn {} + +hr { + // EXTEND + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + clear: both; + // Box Model + border: none; + height: $gridUnit-smallest; + width: 100%; + padding: 0; + margin: 0; + // Type + // DISPLAY + // Visual Enhancement + color: transparent; + outline: none; + background-color: $color_gray-darkest; + -webkit-backface-visibility: hidden; + // Type + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + // MODIFIERS + // Static + // Dynamic + // BREAKPOINTS +} + +// mark {} + +code { + @extend %fontSmoothing; + //font-size: $fontSize-smaller; + font-weight: 400; + font-family: $fontFamily-monospace; +} + +// kbd {} +pre { + @extend %fontSmoothing; + white-space:pre; +} +// q {} +// small {} +// sub {} +// sup {} +// sub {} +ul { + padding: 0 0 0 $gridUnit-small; + margin: $gridUnit-smaller; +} +li { + @extend %fontSmoothing; +} + + + +//******************************************* +// +// EMBEDDED CONTENT +// +//******************************************* +img {max-width:100%;} +canvas {display: block;} + + + +//******************************************* +// +// FIGURES +// +//******************************************* +// figure {} + + + +//******************************************* +// +// FORMS +// +//******************************************* +// fieldset {} +// legend {} +// button {} +// input {} +// select {} +// textarea {} +// html input[type="button"] {} +// input[type="reset"] {} +// input[type="submit"] {} +// input[type="checkbox"] {} +// input[type="radio"] {} +// input[type="search"] {} + + + +//******************************************* +// +// TABLES +// +//******************************************* +// table {} diff --git a/build/createjsTheme/assets/scss/elements/transitions.scss b/build/createjsTheme/assets/scss/elements/transitions.scss new file mode 100644 index 00000000..a73c1adb --- /dev/null +++ b/build/createjsTheme/assets/scss/elements/transitions.scss @@ -0,0 +1,68 @@ +//******************************************* +// +// PAGE TRANSITIONS +// +// Description +// - Transitions that affect the whole project +// +// Contents +// 1) PAGE +// 2) SVG LOAD +// +//******************************************* + + + +//******************************************* +// +// PAGE +// +//******************************************* +.page-in { opacity: 1 !important; } + +.page-default { + opacity: 0; + transition: opacity $transition-longer-out; +} + + +//******************************************* +// +// SVG LOAD +// +//******************************************* +img { + opacity: 0; + transition: opacity $transition-longer-default; +} + +.svg-background { + // EXTEND + @extend %clearfix; + // VARS (locally scoped) + // LAYOUT + // Display, Positioning + position: absolute; + z-index: -1; + // Box Model + width: 100%; + height: 100%; + margin: 0; + padding: 0; + // Type + // DISPLAY + // Visual Enhancement + opacity: 1; + // Type + // PSUEDO Elements & Classes + // Elements :: before, after, first-line, first-letter, selection + // Classes : http://css-tricks.com/almanac/ + // CHILDREN (Sass 3.3 Syntax Only, otherwise scope child outside this selector) + // MODIFIERS + // Static + // Dynamic + transition: opacity $transition-longer-default; + // BREAKPOINTS +} + +.svg-loaded { opacity: 1 !important; } diff --git a/build/createjsTheme/assets/scss/library-specific.scss b/build/createjsTheme/assets/scss/library-specific.scss new file mode 100644 index 00000000..94d90ebf --- /dev/null +++ b/build/createjsTheme/assets/scss/library-specific.scss @@ -0,0 +1,5 @@ +.header { + @extend %color_preloadjs-gradient; +} + +$library-color: $color_preloadjs-default; \ No newline at end of file diff --git a/build/createjsTheme/assets/css/main.css b/build/createjsTheme/assets/scss/main.scss similarity index 51% rename from build/createjsTheme/assets/css/main.css rename to build/createjsTheme/assets/scss/main.scss index 8bfb1cbd..d688ce74 100644 --- a/build/createjsTheme/assets/css/main.css +++ b/build/createjsTheme/assets/scss/main.scss @@ -1,45 +1,84 @@ -/* -Font sizes for all selectors other than the body are given in percentages, -with 100% equal to 13px. To calculate a font size percentage, multiply the -desired size in pixels by 7.6923076923. - -Here's a quick lookup table: - -10px - 76.923% -11px - 84.615% -12px - 92.308% -13px - 100% -14px - 107.692% -15px - 115.385% -16px - 123.077% -17px - 130.769% -18px - 138.462% -19px - 146.154% -20px - 153.846% -*/ +//******************************************* +// +// EASELJS DOCS +// - 2.0 skin +// +// 1) IMPORTS +// 2) LIBRARY SPECIFIC COLORS +// 3) RULES +// +//******************************************* + + + +//******************************************* +// +// IMPORTS +// +//******************************************* +// UTILITIES +@import "utilities/breakpoint.scss"; +@import "utilities/clearfix.scss"; + +// SETTINGS +@import "settings/breakpoint.scss"; +@import "settings/color.scss"; +@import "settings/fonts.scss"; +@import "settings/layout.scss"; +@import "settings/path.scss"; + +// ELEMENTS +@import "elements/tags.scss"; + + +//******************************************* +// +// LIBRARY SPECIFIC COLORS +// +//******************************************* +@import "library-specific.scss"; + +.yui3-skin-sam .yui3-tab-selected .yui3-tab-label, +.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:focus, +.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:hover { + background: none !important; + border: none !important; + background-color: $library-color !important; +} +.yui3-skin-sam .yui3-tabview-list { + border-bottom: 5px solid $library-color !important; +} + + +//******************************************* +// +// RULES +// +//******************************************* html { - background: #e6e6e6; - color: #111111; + background: $color_gray-lightest; + color: $color_gray-default; overflow-y: scroll; } body { - font: 13px/1.4 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', 'Bitstream Vera Sans', 'Helvetica', 'Arial', sans-serif; margin: 0; padding: 0; } + + /* -- Links ----------------------------------------------------------------- */ -a { - color: #356de4; - text-decoration: none; +h1 a { + &::after { + display: none; + } } + .hidden { display: none; } -a:hover { - text-decoration: underline; -} + /* "Jump to Table of Contents" link is shown to assistive tools, but hidden from - sight until it's focused. */ +sight until it's focused. */ .jump { position: absolute; padding: 3px 6px; @@ -50,9 +89,6 @@ a:hover { left: 40%; } /* -- Paragraphs ------------------------------------------------------------ */ -p { - margin: 1.3em 0; -} dd p, td p { margin-bottom: 0; @@ -61,61 +97,20 @@ dd p:first-child, td p:first-child { margin-top: 0; } -/* -- Headings -------------------------------------------------------------- */ -h1, -h2, -h3, -h4, -h5, -h6 { - color: #111111 !important; - /*was #f80*/ - - font-weight: 100; - line-height: 1.1; - margin: 1.1em 0 0.5em; -} -h1 { - font-size: 184.6%; - margin: 0; -} -h2 { - font-size: 153.846%; - margin: 0 !important; - padding: 1.5em 0 .5em 0; - border-bottom: 1px solid #c3c3c3 !important; -} -h3 { - font-size: 138.462%; - padding: 1.5em 0 .5em 0; -} -h4 { - border-bottom: 1px solid #DBDFEA; - color: #E48A2B; - font-size: 115.385%; - font-weight: normal; - padding: 1em 0 0 0; -} -h5, -h6 { - font-size: 107.692%; -} + + /* -- Code and examples ----------------------------------------------------- */ code, kbd, pre, -samp { - font-family: Menlo, Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; - font-size: 92.308%; - line-height: 1.35; +samp, +A.crosslink { + font-family: $fontFamily-monospace; + font-size: $fontSize-smallest; } p code, p kbd, -p samp { - background: #FCFBFA; - border: 1px solid #EFEEED; - padding: 0 3px; -} +p samp {} a code, a kbd, a samp, @@ -142,27 +137,29 @@ pre.cmd { *overflow-x: scroll; padding: 1em; } -pre.code { - background: #f3f3f3; - border: 1px solid #c3c3c3; - border-left-width: 5px; - line-height: 150%; -} + pre.terminal, -pre.cmd { - background: #F0EFFC; - border: 1px solid #D0CBFB; - border-left: 5px solid #D0CBFB; -} -/* Don't reduce the font size of
// elements inside- blocks. */ -pre code, -pre kbd, -pre samp { - font-size: 100%; +pre.cmd, +pre.code { + background: $color_gray-darkest; + border-left: $gridUnit-smallest solid $color_gray-dark; + margin: $gridUnit-large 0; } + +.description, +.box.intro, +.param-description, +.returns-description { + code { + background-color: $color-gray-lighter; + } +} +pre code { background-color: transparent !important; } + + + /* Used to denote text that shouldn't be selectable, such as line numbers or - shell prompts. Guess which browser this doesn't work in. */ +shell prompts. Guess which browser this doesn't work in. */ .noselect { -moz-user-select: -moz-none; -khtml-user-select: none; @@ -191,12 +188,12 @@ table { } td, th { - border: 1px solid #fff; + border: 1px solid $color_gray-lightest; padding: 5px 12px; vertical-align: top; } td { - background: #E6E9F5; + background: $color_gray-lighter; } td dl { margin: 0; @@ -208,13 +205,12 @@ td pre:first-child { margin-top: 0; } th { - background: #D2D7E6; - /*#97A0BF*/ + background: $color_gray-light; border-bottom: none; border-top: none; - color: #000; - /*#FFF1D5*/ + color: $color_gray-darker; + /*$color_gray-lightest1D5*/ font-family: 'Trebuchet MS', sans-serif; font-weight: bold; @@ -228,18 +224,22 @@ th { } .content { padding: 0 20px 0 25px; + max-width: 104rem; +} +.content.source-content{ + max-width: none; } .sidebar { padding: 0 2em; } #bd { - padding: 7px 0 130px; + padding: $gridUnit-large 0 $gridUnit-larger; position: relative; width: 99%; } /* -- Table of Contents ----------------------------------------------------- */ /* The #toc id refers to the single global table of contents, while the .toc - class refers to generic TOC lists that could be used throughout the page. */ +class refers to generic TOC lists that could be used throughout the page. */ .toc code, .toc kbd, .toc samp { @@ -269,29 +269,29 @@ th { */ /* -- Other Styles ---------------------------------------------------------- */ /* These are probably YUI-specific, and should be moved out of Selleck's default - theme. */ +theme. */ .button { - border: 1px solid #dadada; + border: 1px solid $color_gray-lighter; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; - color: #444; + color: $color_gray-darker; display: inline-block; font-family: Helvetica, Arial, sans-serif; font-size: 92.308%; font-weight: bold; padding: 4px 13px 3px; - -moz-text-shadow: 1px 1px 0 #fff; - -webkit-text-shadow: 1px 1px 0 #fff; - text-shadow: 1px 1px 0 #fff; + -moz-text-shadow: 1px 1px 0 $color_gray-lightest; + -webkit-text-shadow: 1px 1px 0 $color_gray-lightest; + text-shadow: 1px 1px 0 $color_gray-lightest; white-space: nowrap; - background: #EFEFEF; + background: $color_gray-lighter; /* old browsers */ - background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 50%, #e5e5e5 51%, #dfdfdf 100%); + background: -moz-linear-gradient(top, #f5f5f5 0%, $color_gray-lighter 50%, #e5e5e5 51%, #dfdfdf 100%); /* firefox */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f5f5f5), color-stop(50%, #efefef), color-stop(51%, #e5e5e5), color-stop(100%, #dfdfdf)); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f5f5f5), color-stop(50%, $color_gray-lighter), color-stop(51%, #e5e5e5), color-stop(100%, #dfdfdf)); /* webkit */ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#dfdfdf', GradientType=0); @@ -300,7 +300,7 @@ th { } .button:hover { border-color: #466899; - color: #fff; + color: $color_gray-lightest; text-decoration: none; -moz-text-shadow: 1px 1px 0 #222; -webkit-text-shadow: 1px 1px 0 #222; @@ -321,27 +321,35 @@ th { .newwindow { text-align: center; } -#hd h1 { - font-size: 250%; - text-transform: uppercase; -} .header { - padding: 2em !important; + padding: 1em 0 0 0 !important; + background-color: $color_gray-dark; + a:hover { + background: transparent; + } + .yui3-u-3-4 { + width: 100%; + } +} +.header .version { + display: block; + background: $color_gray-dark; + padding: 0 $gridUnit-smaller; + width: 100%; + text-align: right; } .header .version em { display: block; text-align: right; - line-height: 60px; - color: #444444; + line-height: 32px; + color: $color_gray-default; + margin-bottom: 0; } #classdocs .item { - border-bottom: 1px solid #c3c3c3; + border-bottom: 1px solid $color_gray-light; margin: 0 !important; padding: 2em; } -#classdocs h2 { - padding-top: 0 !important; -} #classdocs .item .params p, #classdocs .item .returns p { display: inline; @@ -389,20 +397,38 @@ ul li p { .apidocs .attrs .extends .attr, .apidocs .events .extends .event { font-weight: bold; + a { + font-weight: bold; + } } .apidocs .methods .extends .inherited, .apidocs .properties .extends .inherited, .apidocs .attrs .extends .inherited, .apidocs .events .extends .inherited { font-weight: normal; + a { + font-weight: normal; + } } + #hd { padding: 0 15px 1px 20px; } -#hd img { - margin-right: 10px; +#hd a { + display: block; + margin: 0 auto; vertical-align: middle; + text-align: center; + img { + display: inline-block; + height: 60px; + margin-bottom: $gridUnit-small; + } +} +#hd a:hover { + background: transparent; } + /* -- API Docs CSS ---------------------------------------------------------- */ /* This file is organized so that more generic styles are nearer the top, and more @@ -425,239 +451,227 @@ specific tabview, see the other sections below. visibility: visible; } .apidocs .tabview .yui3-tabview-panel { - background: #f3f3f3; - padding: 1em; - border-radius: 0 0 1em 1em !important; - border: 1px solid #c3c3c3 !important; + padding: 0; } /* -- Generic Content Styles ------------------------------------------------ */ -/* Headings */ -h2, -h3, -h4, -h5, -h6 { - border: none; - color: #30418C; - font-weight: bold; - text-decoration: none; -} + .link-docs { float: right; font-size: 15px; margin: 4px 4px 6px; padding: 6px 30px 5px; } -.apidocs { - zoom: 1; -} + /* Generic box styles. */ .apidocs .box { - border: 1px solid; - border-radius: 3px; margin: 1em 0; padding: 0 1em; } /* A flag is a compact, capsule-like indicator of some kind. It's used to indicate private and protected items, item return types, etc. in an attractive and unobtrusive way. */ -.apidocs .flag { - background: #444444; - border-radius: 3px; - color: #fff; - font-size: 11px; - margin: 0 0.5em; - padding: 4px; - position: relative; - top: -2px; -} -/* Class/module metadata such as "Uses", "Extends", "Defined in", etc. */ -.apidocs .meta { - border: none; - border-top: 1px solid #c3c3c3; - color: #555; - font-size: 11px; - padding: 1em 0; -} -.apidocs .meta p { - margin: 0; -} -/* Deprecation warning. */ -.apidocs .box.deprecated, -.apidocs .flag.deprecated { - background: #fdac9f; - border: 1px solid #fd7775; -} -.apidocs .box.deprecated p { - margin: 0.5em 0; -} -.apidocs .flag.deprecated { - color: #444444; -} -/* Module/Class intro description. */ -.apidocs .intro { - background: none; - border: none; - padding: 0 !important; -} -/* Loading spinners. */ -#bd.loading .apidocs, -#api-list.loading .yui3-tabview-panel { - background: #ffffff url(../img/spinner.gif) no-repeat center 70px; - min-height: 150px; -} -#bd.loading .apidocs .content, -#api-list.loading .yui3-tabview-panel .apis { - display: none; -} -.apidocs .no-visible-items { - color: #666; -} -/* Generic inline list. */ -.apidocs ul.inline { - display: inline; - list-style: none; - margin: 0; - padding: 0; -} -.apidocs ul.inline li { - display: inline; -} -/* Comma-separated list. */ -.apidocs ul.commas li:after { - content: ','; -} -.apidocs ul.commas li:last-child:after { - content: ''; -} -/* Keyboard shortcuts. */ -kbd .cmd { - font-family: Monaco, Helvetica; -} -/* -- Generic Access Level styles ------------------------------------------- */ -.apidocs .item.protected, -.apidocs .item.private, -.apidocs .index-item.protected, -.apidocs .index-item.deprecated, -.apidocs .index-item.private { - display: none; -} -.show-deprecated .item.deprecated, -.show-deprecated .index-item.deprecated, -.show-protected .item.protected, -.show-protected .index-item.protected, -.show-private .item.private, -.show-private .index-item.private { - display: block; -} -.hide-inherited .item.inherited, -.hide-inherited .index-item.inherited { - display: none; -} -/* -- Generic Item Index styles --------------------------------------------- */ -.apidocs .index h3 { - border-bottom: 1px solid #efefef; - color: #444444; - font-size: 13px; - margin: 2em 0 0.6em; - padding-bottom: 2px; -} -.apidocs .index .no-visible-items { - margin-top: 2em; -} -.apidocs .index-list { - border-color: #efefef; + .apidocs .flag { + background: transparentize($color_gray-darker, 0.9); + color: $color_gray-darker; + font-size: 11px; + margin: 0 0.5em; + padding: 4px; + position: relative; + top: 0; + } + /* Class/module metadata such as "Uses", "Extends", "Defined in", etc. */ + .apidocs .meta { + color: $color_gray-default; + font-size: $fontSize-smallest; + padding: 1em 0; + } + .apidocs .meta p { + margin: 0; + } + .module-class { + font-size: $fontSize-smaller; + } + /* Deprecation warning. */ + .apidocs .box.deprecated, + .apidocs .flag.deprecated { + background: $color_tweenjs-default-transparent; + border: 1px solid #fd7775; + p { + color: $color_gray-darkest; + } + } + .apidocs .box.deprecated p { + margin: 0.5em 0; + } + .apidocs .flag.deprecated { + color: $color_gray-darker; + } + /* Module/Class intro description. */ + .apidocs .intro { + background: none repeat scroll 0 0 rgba(0, 0, 0, 0); + border: medium none; + font-family: $fontFamily-secondary; + font-size: $fontSize-smaller; + line-height: $gridUnit-small; + padding: 0 !important; + } + /* Loading spinners. */ + #bd.loading .apidocs, + #api-list.loading .yui3-tabview-panel { + background: $color_gray-lightest url(../img/spinner.gif) no-repeat center 70px; + min-height: 150px; + } + #bd.loading .apidocs .content, + #api-list.loading .yui3-tabview-panel .apis { + display: none; + } + .apidocs .no-visible-items { + color: $color_gray-default; + } + /* Generic inline list. */ + .apidocs ul.inline { + display: inline; + list-style: none; + margin: 0; + padding: 0; + } + .apidocs ul.inline li { + display: inline; + } + /* Comma-separated list. */ + .apidocs ul.commas li:after { + content: ','; + font-size: $fontSize-smaller; + } + .apidocs ul.commas li:last-child:after { + content: ''; + } + /* Keyboard shortcuts. */ + kbd .cmd { + font-family: $fontFamily-monospace; + } + /* -- Generic Access Level styles ------------------------------------------- */ + .apidocs .item.protected, + .apidocs .item.private, + .apidocs .index-item.protected, + .apidocs .index-item.deprecated, + .apidocs .index-item.private { + display: none; + } + .show-deprecated .item.deprecated, + .show-deprecated .index-item.deprecated, + .show-protected .item.protected, + .show-protected .index-item.protected, + .show-private .item.private, + .show-private .index-item.private { + display: block; + } + .hide-inherited .item.inherited, + .hide-inherited .index-item.inherited { + display: none; + } + /* -- Generic Item Index styles --------------------------------------------- */ + .apidocs .index h3 { + border-bottom: 1px solid $color_gray-light; + color: $color_gray-darker; + font-size: 13px; + margin: 1em 0 0.6em; + padding-bottom: 2px; + } + .apidocs .index .no-visible-items { + margin-top: 2em; + } + .apidocs .index-list { + border-color: $color_gray-lighter; + font-size: 12px; + list-style: none; + margin: 0; + padding: 0; + -moz-column-count: 4; + -moz-column-gap: 10px; + -moz-column-width: 170px; + -ms-column-count: 4; + -ms-column-gap: 10px; + -ms-column-width: 170px; + -o-column-count: 4; + -o-column-gap: 10px; + -o-column-width: 170px; + -webkit-column-count: 4; + -webkit-column-gap: 10px; + -webkit-column-width: 170px; + column-count: 4; + column-gap: 10px; + column-width: 170px; + } + .apidocs .no-columns .index-list { + -moz-column-count: 1; + -ms-column-count: 1; + -o-column-count: 1; + -webkit-column-count: 1; + column-count: 1; + } + .apidocs .index-item { + white-space: nowrap; + } + .apidocs .index-item .flag { + background: none; + border: none; + color: #afafaf; + display: inline; + margin: 0 0 0 0.2em; + padding: 0; + } + /* -- Generic API item styles ----------------------------------------------- */ + .apidocs .args { + display: inline; + margin: 0 0.5em; + } + .apidocs .flag.chainable { + background: #46ca3b; + } + .apidocs .flag.protected { + background: #9b86fc; + } + .apidocs .flag.private { + background: #fd6b1b; + } + .apidocs .flag.async { + background: $color_gray-darker; + } + .apidocs .flag.required { + background: #e60923; + } + .apidocs .item { + border-bottom: 1px solid $color_gray-lighter; + margin: 1.5em 0 2em; + padding-bottom: 2em; + } + .apidocs .item .description p, + .apidocs .item pre.code { + margin: 1em 0 0; + } + .apidocs .item .description { + font-size: $fontSize-smaller; + } + .apidocs .item .meta { + background: none; + border: none; + padding: 0; + } + .apidocs .item .name { + display: inline; + font-size: 14px; + } + .apidocs .item .type, + .apidocs .item .type a, + .apidocs .returns-inline { + //color: $color_gray-default; + text-decoration: none; font-size: 12px; - list-style: none; - margin: 0; - padding: 0; - -moz-column-count: 4; - -moz-column-gap: 10px; - -moz-column-width: 170px; - -ms-column-count: 4; - -ms-column-gap: 10px; - -ms-column-width: 170px; - -o-column-count: 4; - -o-column-gap: 10px; - -o-column-width: 170px; - -webkit-column-count: 4; - -webkit-column-gap: 10px; - -webkit-column-width: 170px; - column-count: 4; - column-gap: 10px; - column-width: 170px; -} -.apidocs .no-columns .index-list { - -moz-column-count: 1; - -ms-column-count: 1; - -o-column-count: 1; - -webkit-column-count: 1; - column-count: 1; -} -.apidocs .index-item { - white-space: nowrap; -} -.apidocs .index-item .flag { - background: none; - border: none; - color: #afafaf; - display: inline; - margin: 0 0 0 0.2em; - padding: 0; -} -/* -- Generic API item styles ----------------------------------------------- */ -.apidocs .args { - display: inline; - margin: 0 0.5em; -} -.apidocs .flag.chainable { - background: #46ca3b; -} -.apidocs .flag.protected { - background: #9b86fc; -} -.apidocs .flag.private { - background: #fd6b1b; -} -.apidocs .flag.async { - background: #356de4; -} -.apidocs .flag.required { - background: #e60923; -} -.apidocs .item { - border-bottom: 1px solid #efefef; - margin: 1.5em 0 2em; - padding-bottom: 2em; -} -.apidocs .item h4, -.apidocs .item h5, -.apidocs .item h6 { - color: #444444; - font-family: inherit; - font-size: 100%; -} -.apidocs .item .description p, -.apidocs .item pre.code { - margin: 1em 0 0; -} -.apidocs .item .meta { - background: none; - border: none; - padding: 0; -} -.apidocs .item .name { - display: inline; - font-size: 14px; -} -.apidocs .item .type, -.apidocs .item .type a, -.apidocs .returns-inline { - color: #555; } .apidocs .item .type, .apidocs .returns-inline { - font-size: 11px; + font-size: 12px; margin: 0 0 0 0; } .apidocs .item .type a { @@ -675,16 +689,22 @@ kbd .cmd { .apidocs .param { margin-bottom: 1em; } +.apidocs .param-description { + font-size: $fontSize-smaller; + code { + font-size: $fontSize-smallest + } +} .apidocs .param .type, .apidocs .param .type a { - color: #666; + //color: $color_gray-default; } .apidocs .param .type { margin: 0 0 0 0.5em; *margin-left: 0.5em; } .apidocs .param-name { - font-weight: bold; + // font-weight: bold; } /* -- Item "Emits" block ---------------------------------------------------- */ .apidocs .item .emits { @@ -694,7 +714,7 @@ kbd .cmd { /* -- Item "Returns" block -------------------------------------------------- */ .apidocs .item .returns .type, .apidocs .item .returns .type a { - font-size: 100%; + font-size: 12px; margin: 0; } /* -- Class Constructor block ----------------------------------------------- */ @@ -710,6 +730,11 @@ kbd .cmd { overflow: visible; padding: 0; } +pre.prettyprint { + border-top: inherit; + border-right: inherit; + border-bottom: inherit; +} .apidocs .L0, .apidocs .L1, .apidocs .L2, @@ -736,7 +761,7 @@ kbd .cmd { } #api-tabview-filter, #api-tabview-panel { - background: #f3f3f3; + background: $color_gray-lighter; border: none !important; } #api-tabview-filter { @@ -775,44 +800,39 @@ kbd .cmd { /*#api-options label { margin-right: 0.6em; }*/ /* -- API list -------------------------------------------------------------- */ #api-list { - margin-top: -2em; - *zoom: 1; + margin-top: 0em; } #api-modules { - border-bottom: 1px solid #c3c3c3; + background-color: $color_gray-light } .apis { font-size: 12px; line-height: 1.4; list-style: none; margin: 0; - padding: 0.5em 0 0.5em 0.4em; + padding: 0 0 0 0.4em; } .apis a { - border: 1px solid transparent; display: block; + font-size: 1.3rem; + font-weight: 700; margin: 0 0 0 -4px; - padding: 0.4em; + padding: 0.1rem 1.4em; text-decoration: none; - _border: none; - _display: inline; - color: #444444 !important; -} -.apis a:hover, -.apis a:focus { - background: #444444; - color: white !important; - border-radius: 3px; - color: #444444; - outline: none; +} +#api-modules.apis a { + font-size: $fontSize-smaller; +} +.apis li { + margin: 0; } .api-list-item a:hover, .api-list-item a:focus { font-weight: bold; - text-shadow: 1px 1px 1px #fff; + text-shadow: 1px 1px 1px $color_gray-lightest; } .apis .message { - color: #888; + color: $color_gray-light; } .apis .result a { padding: 3px 5px 2px; @@ -825,34 +845,94 @@ kbd .cmd { font-weight: bold; } /* -- YUI Overrides -------------------------------------------------------------- */ -.yui3-skin-sam .yui3-tab-selected .yui3-tab-label { +.yui3-skin-sam .yui3-tab-selected a.yui3-tab-label { border: none !important; + &::after { + display: none !important; + } } .yui3-skin-sam .yui3-tab-label { padding: 1em !important; border: none !important; background: none !important; - background-color: #c3c3c3 !important; + background-color: $color_gray-light !important; } .yui3-skin-sam .yui3-tab-label:hover { - background-color: #444444 !important; - color: white !important; -} -/* Important Library Specifics, find and replace - @color-CreateJS: #e7841d; - @color-EaselJS: #3399ff; - @color-TweenJS: #f12528; - @color-SoundJS: #8765d6; - @color-PreloadJS: #bb2ee5; - @color-Zoe: #00b224; - */ -.yui3-skin-sam .yui3-tab-selected .yui3-tab-label, -.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:focus, -.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:hover { - background: none !important; - border: none !important; - background-color: #bb2ee5 !important; + background-color: $color_gray-darker !important; + color: $color_gray-lightest !important; } -.yui3-skin-sam .yui3-tabview-list { - border-bottom: 5px solid #bb2ee5 !important; + +.yui3-tab-panel-selected { + padding: $gridUnit-smaller; +} +div#hd.yui3-g.header { + word-spacing: normal; + letter-spacing: normal; +} + +// Syntax Highlighting +.pln { + color: $color_gray-lighter; +} +.com { + color: lighten($color_gray-dark, 10%); +} +.kwd { + color: $color_easeljs-default; +} +.str { + color: $color_createjs-default; +} +.typ { + color: $color_tweenjs-default; +} +.lit { + color: $color_preloadjs-default; +} +.pun, +.opn, +.clo { + color: $color_soundjs-default; +} + +ol.linenums { + position: relative; + padding-left: 60px; + &::before { + content: ''; + position: absolute; + top:0; + bottom:0; + left:0; + width: 5.5rem; + background-color: $color_gray-dark;; + } + .file-line { + position: relative; + z-index: 2; + color:$color_gray-darkest; + } +} + +.yui3-skin-sam .yui3-tab-label, +.yui3-skin-sam .yui3-tab-selected a.yui3-tab-label { + font-size: $fontSize-smallest; + &::after { + top:0; + bottom:0; + left:0; + right:0; + } +} + +ol.linenums .file-line { + color: $color_gray-light; +} + +.apidocs .file pre.code, #doc .apidocs .file pre.prettyprint { + overflow-x: auto; + background-color: $color_gray-darkest; +} +#doc { + overflow-x: hidden; } diff --git a/build/createjsTheme/assets/scss/settings/breakpoint.scss b/build/createjsTheme/assets/scss/settings/breakpoint.scss new file mode 100644 index 00000000..a11bdbd3 --- /dev/null +++ b/build/createjsTheme/assets/scss/settings/breakpoint.scss @@ -0,0 +1,51 @@ +//******************************************* +// +// BREAKPOINT SETTINGS +// Default breakpoint settings used by gBootstrap +// +// Contents +// 1) GENERIC WIDTHS +// 2) MAX-WIDTH +// +//******************************************* + + + +//******************************************* +// +// GENERIC WIDTHS +// +//******************************************* +// Small Devices i.e. "Phones" +//$bp_width-320: 320px; +$bp_width-480: 480px; +$bp_width-500: 500px; +$bp_width-600: 600px; + +// Medium Devices i.e. "Tablets" +//$bp_width-640: 640px; +$bp_width-700: 700px; + +// iFrame width +$bp_width-960: 960px; + +// Standard Devices i.e. "Laptops or Desktops" +$bp_width-1024: 1024px; + +// Large Devices i.e. "Large Monitors" +//$bp_width-1300: 1300px; +//$bp_width-1400: 1400px; +//$bp_width-1600: 1600px; +//$bp_width-1700: 1700px; +//$bp_width-2000: 2000px; + + + +//******************************************* +// +// MAX-WIDTH +// +//******************************************* +$bp_width-max: 1140px; +$bp_width-1300: 1300px; +$bp_width-1600: 1600px; diff --git a/build/createjsTheme/assets/scss/settings/color.scss b/build/createjsTheme/assets/scss/settings/color.scss new file mode 100644 index 00000000..280a72f7 --- /dev/null +++ b/build/createjsTheme/assets/scss/settings/color.scss @@ -0,0 +1,194 @@ +//******************************************* +// +// COLOR SETTINGS +// Colors and brand gradients used in your project +// +// Contents +// 1) createjs +// 2) easeljs +// 3) preloadjs +// 4) soundjs +// 5) tweenjs +// 6) zoe +// 7) notifications (green) +// 8) grey +// 9) grey transparent +// +//******************************************* + + + +//******************************************* +// +// createjs +// +//******************************************* +$color_createjs-default: rgba(255, 210, 20, 1); +.color-createjs {color: $color_createjs-default;} +%color_createjs-gradient { + background: $color_createjs-default; + background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZjI5ZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmQ3MGYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); + background: -moz-linear-gradient(top, rgb(255,242,157) 0%, rgb(255,215,15) 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(255,242,157)), color-stop(100%,rgb(255,215,15))); + background: -webkit-linear-gradient(top, rgb(255,242,157) 0%,rgb(255,215,15) 100%); + background: -o-linear-gradient(top, rgb(255,242,157) 0%,rgb(255,215,15) 100%); + background: -ms-linear-gradient(top, rgb(255,242,157) 0%,rgb(255,215,15) 100%); + background: linear-gradient(to bottom, rgb(255,242,157) 0%,rgb(255,215,15) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff29d', endColorstr='#ffd70f',GradientType=0 ); +} + + + +//******************************************* +// +// easeljs +// +//******************************************* +$color_easeljs-default: rgba(73, 207, 239, 1); +%color_easeljs-gradient { + background: $color_easeljs-default; + background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2E3ZjNmMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM0OWNmZWYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); + background: -moz-linear-gradient(top, rgb(167,243,242) 0%, rgb(73,207,239) 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(167,243,242)), color-stop(100%,rgb(73,207,239))); + background: -webkit-linear-gradient(top, rgb(167,243,242) 0%,rgb(73,207,239) 100%); + background: -o-linear-gradient(top, rgb(167,243,242) 0%,rgb(73,207,239) 100%); + background: -ms-linear-gradient(top, rgb(167,243,242) 0%,rgb(73,207,239) 100%); + background: linear-gradient(to bottom, rgb(167,243,242) 0%,rgb(73,207,239) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a7f3f2', endColorstr='#49cfef',GradientType=0 ); +} + + + +//******************************************* +// +// preloadjs +// +//******************************************* +$color_preloadjs-default: rgba(230,115,222,1); +%color_preloadjs-gradient { + background: $color_preloadjs-default; + background: rgb(240,170,220); + background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2YwYWFkYyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlNjczZGUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); + background: -moz-linear-gradient(top, rgba(240,170,220,1) 0%, rgba(230,115,222,1) 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(240,170,220,1)), color-stop(100%,rgba(230,115,222,1))); + background: -webkit-linear-gradient(top, rgba(240,170,220,1) 0%,rgba(230,115,222,1) 100%); + background: -o-linear-gradient(top, rgba(240,170,220,1) 0%,rgba(230,115,222,1) 100%); + background: -ms-linear-gradient(top, rgba(240,170,220,1) 0%,rgba(230,115,222,1) 100%); + background: linear-gradient(to bottom, rgba(240,170,220,1) 0%,rgba(230,115,222,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0aadc', endColorstr='#e673de',GradientType=0 ); +} + + + +//******************************************* +// +// soundjs +// +//******************************************* +$color_soundjs-default: rgba(37,229,130,1); +%color_soundjs-gradient { + background: $color_soundjs-default; + background: rgb(97,232,176); + background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzYxZThiMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMyNWU1ODIiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); + background: -moz-linear-gradient(top, rgba(97,232,176,1) 0%, rgba(37,229,130,1) 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(97,232,176,1)), color-stop(100%,rgba(37,229,130,1))); + background: -webkit-linear-gradient(top, rgba(97,232,176,1) 0%,rgba(37,229,130,1) 100%); + background: -o-linear-gradient(top, rgba(97,232,176,1) 0%,rgba(37,229,130,1) 100%); + background: -ms-linear-gradient(top, rgba(97,232,176,1) 0%,rgba(37,229,130,1) 100%); + background: linear-gradient(to bottom, rgba(97,232,176,1) 0%,rgba(37,229,130,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#61e8b0', endColorstr='#25e582',GradientType=0 ); +} + + + +//******************************************* +// +// tweenjs +// +//******************************************* +$color_tweenjs-default: rgba(255,97,106,1); +%color_tweenjs-gradient { + background: $color_tweenjs-default; + background: rgb(255,125,149); + background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmN2Q5NSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZjYxNmEiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); + background: -moz-linear-gradient(top, rgba(255,125,149,1) 0%, rgba(255,97,106,1) 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,125,149,1)), color-stop(100%,rgba(255,97,106,1))); + background: -webkit-linear-gradient(top, rgba(255,125,149,1) 0%,rgba(255,97,106,1) 100%); + background: -o-linear-gradient(top, rgba(255,125,149,1) 0%,rgba(255,97,106,1) 100%); + background: -ms-linear-gradient(top, rgba(255,125,149,1) 0%,rgba(255,97,106,1) 100%); + background: linear-gradient(to bottom, rgba(255,125,149,1) 0%,rgba(255,97,106,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff7d95', endColorstr='#ff616a',GradientType=0 ); +} + + + +//******************************************* +// +// zoe +// +//******************************************* +$color_zoe-default: rgba(208, 238, 55, 1); +%color_zoe-gradient { + background: $color_zoe-default; + background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2UxZWUxYiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNiZmVlMzciIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); + background: -moz-linear-gradient(top, rgb(225,238,27) 0%, rgb(191,238,55) 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(225,238,27)), color-stop(100%,rgb(191,238,55))); + background: -webkit-linear-gradient(top, rgb(225,238,27) 0%,rgb(191,238,55) 100%); + background: -o-linear-gradient(top, rgb(225,238,27) 0%,rgb(191,238,55) 100%); + background: -ms-linear-gradient(top, rgb(225,238,27) 0%,rgb(191,238,55) 100%); + background: linear-gradient(to bottom, rgb(225,238,27) 0%,rgb(191,238,55) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e1ee1b', endColorstr='#bfee37',GradientType=0 ); +} + + + +//******************************************* +// +// notifications (green) +// +//******************************************* +$color_green-default: rgba(63, 185, 6, 1); + + + +//******************************************* +// +// grey +// +//******************************************* +$color_gray-darkest: rgba( 55, 66, 82, 1 ); +$color_gray-darker: rgba( 64, 82, 97, 1 ); +$color_gray-dark: rgba( 76, 101, 117, 1 ); +$color_gray-default: rgba( 156, 166, 179, 1 ); +$color_gray-light: rgba( 201, 209, 216, 1 ); +$color_gray-lighter: rgba( 236, 238, 244, 1 ); +$color_gray-lightest: rgba( 250, 252, 255, 1 ); + +$color_gray-backToTop: rgba( 52, 59, 78, 1.0 ); + + + +//******************************************* +// +// grey transparent/gradients +// +//******************************************* +$color_gray-darker-transparent: rgba( 64, 82, 97, 0 ); +$color_gray-lighter-transparent: rgba( 236, 238, 244, 0 ); + +$color_gray-darkest-translucent: rgba( 55, 66, 82, 0.7 ); +$color_gray-dark-translucent-high: rgba( 76, 101, 117, 0.7 ); +$color_gray-dark-translucent-low: rgba( 76, 101, 117, 0.4 ); +$color_tweenjs-default-transparent: rgba(255,97,106,0.5); + +%color_gray-dark-gradient { + background: $color_gray-dark; + background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzRjNjU3NSIgc3RvcC1vcGFjaXR5PSIwLjQiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzRjNjU3NSIgc3RvcC1vcGFjaXR5PSIwLjkiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==); + background: -moz-linear-gradient(top, rgba(76,101,117,0.4) 0%, rgba(76,101,117,0.9) 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(76,101,117,0.4)), color-stop(100%,rgba(76,101,117,0.9))); + background: -webkit-linear-gradient(top, rgba(76,101,117,0.4) 0%,rgba(76,101,117,0.9) 100%); + background: -o-linear-gradient(top, rgba(76,101,117,0.4) 0%,rgba(76,101,117,0.9) 100%); + background: -ms-linear-gradient(top, rgba(76,101,117,0.4) 0%,rgba(76,101,117,0.9) 100%); + background: linear-gradient(to bottom, rgba(76,101,117,0.4) 0%,rgba(76,101,117,0.9) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#664c6575', endColorstr='#e64c6575',GradientType=0 ); +} diff --git a/build/createjsTheme/assets/scss/settings/fonts.scss b/build/createjsTheme/assets/scss/settings/fonts.scss new file mode 100644 index 00000000..7992d9bf --- /dev/null +++ b/build/createjsTheme/assets/scss/settings/fonts.scss @@ -0,0 +1,105 @@ +//******************************************* +// +// FONT SETTINGS +// families, sizes, and REM value used in your project +// +// Contents +// 1) ROOT ELEMENT (REM) +// 2) FAMILIES +// 3) SIZE RAMP +// 4) MODULAR SCALE +// +//******************************************* + + + +//******************************************* +// +// REM VALUE +// Controls root element font size(rem) applied to +// +//******************************************* +$fontSize-root: 9px; // (1rem) + + + +//******************************************* +// +// FAMILIES +// Define your font families here +// +//******************************************* +/* + + +*/ + +// Default Font +$fontFamily-default: 'effra', sans-serif; +// Weights: 400, 400 italic, 700 + + +// Secondary Font +$fontFamily-secondary: 'Proxima Nova', sans-serif; +// Weights: 400, 500 + +// Monospace Font +@import url("https://fonts.googleapis.com/css?family=Source+Code+Pro&subset=latin,latin-ext"); +$fontFamily-monospace: 'Source Code Pro', monospace; +// Weights: 400 + + + +//******************************************* +// +// SIZE RAMP +// Define your font sizes below +// +//******************************************* +$fontSize-smallest: 1.5rem; +$fontSize-smaller: 1.6rem; +$fontSize-small: 2.2rem; +$fontSize-default: 2.8rem; +$fontSize-large: 3.8rem; +$fontSize-larger: 5rem; +$fontSize-largest: 9rem; +$fontSize-display: 12rem; + + + +//******************************************* +// +// MODULAR SCALE +// +// 16px @ 1:1.333 +// +// Pixels Ems +// 1,192.803 74.55 +// 894.826 55.927 +// 671.287 41.955 +// 503.591 31.474 +// 377.788 23.612 +// 283.412 17.713 +// 212.612 13.288 +// 159.499 9.969 +// 119.654 7.478 +// 89.763 5.61 +// 67.339 4.209 +// 50.517 3.157 +// 37.897 2.369 +// 28.430 1.777 +// 21.328 1.333 +// 16.000 1 +// 12.003 0.75 +// 9.005 0.563 +// 6.755 0.422 +// 5.068 0.317 +// 3.802 0.238 +// 2.852 0.178 +// 2.140 0.134 +// 1.605 0.1 +// 1.204 0.075 +// +// (source: http://modularscale.com/) +// +//******************************************* diff --git a/build/createjsTheme/assets/scss/settings/layout.scss b/build/createjsTheme/assets/scss/settings/layout.scss new file mode 100644 index 00000000..8284e2a1 --- /dev/null +++ b/build/createjsTheme/assets/scss/settings/layout.scss @@ -0,0 +1,24 @@ +//******************************************* +// +// LAYOUT SETTINGS +// Default grid units settings used for layout by gBootstrap +// +// Sections +// 1) GRID UNITS +// +//******************************************* + + + +//******************************************* +// +// GRID UNITS +// +//******************************************* +$gridUnit-smallest: 0.9rem; +$gridUnit-smaller: 1.6rem; +$gridUnit-small: 2.1rem; +$gridUnit-default: 2.8rem; +$gridUnit-large: 3.8rem; +$gridUnit-larger: 5rem; +$gridUnit-largest: 9rem; \ No newline at end of file diff --git a/build/createjsTheme/assets/scss/settings/path.scss b/build/createjsTheme/assets/scss/settings/path.scss new file mode 100644 index 00000000..ab5da454 --- /dev/null +++ b/build/createjsTheme/assets/scss/settings/path.scss @@ -0,0 +1,29 @@ +//******************************************* +// +// PATH SETTINGS +// Variables for defining file paths in your project +// +// Contents +// 1) MY PROJECT +// 2) PROJECT ASSETS +// +//******************************************* + + + +//******************************************* +// +// MY PROJECT +// +//******************************************* +$path-myProject: "../../"; + + + +//******************************************* +// +// PROJECT ASSETS +// +//******************************************* +$path-fonts: $path-myProject + "assets/fonts/"; +$path-images: $path-myProject + "assets/images/"; diff --git a/build/createjsTheme/assets/scss/settings/transition.scss b/build/createjsTheme/assets/scss/settings/transition.scss new file mode 100644 index 00000000..ca4aef4a --- /dev/null +++ b/build/createjsTheme/assets/scss/settings/transition.scss @@ -0,0 +1,57 @@ +//******************************************* +// +// TRANSITION SETTINGS +// Default transition settings used by gBootstrap +// +// Contents +// 1) DURATIONS +// 2) EASING +// 3) COMBINATIONS +// +//******************************************* + + + +//******************************************* +// +// DURATIONS +// +//******************************************* +$duration-short: 0.1s; +$duration-default: 0.2s; +$duration-long: 0.4s; +$duration-longer: 0.6s; +// $duration-longest: 0.8s; + + +//******************************************* +// +// EASING +// +//******************************************* +$ease-default: cubic-bezier( 0.6, 0.18, 0.32, 0.95 ); +$ease-inOut: cubic-bezier( 0.55, 0, 0.45, 1 ); +$ease-out: cubic-bezier( 0.4, 0.18, 0.32, 1 ); + + + +//******************************************* +// +// COMBINATIONS +// +//******************************************* +$transition-short-default: $duration-short $ease-default; +$transition-short-out: $duration-short $ease-out; +$transition-short-inOut: $duration-short $ease-inOut; + +$transition-default-default: $duration-default $ease-default; +$transition-default-inOut: $duration-default $ease-inOut; +$transition-default-out: $duration-default $ease-out; + +$transition-long-default: $duration-long $ease-default; +$transition-long-inOut: $duration-long $ease-inOut; +$transition-long-out: $duration-long $ease-out; + +$transition-longer-default: $duration-longer $ease_default; +$transition-longer-out: $duration-longer $ease_out; + diff --git a/build/createjsTheme/assets/scss/utilities/breakpoint.scss b/build/createjsTheme/assets/scss/utilities/breakpoint.scss new file mode 100755 index 00000000..8f4f4410 --- /dev/null +++ b/build/createjsTheme/assets/scss/utilities/breakpoint.scss @@ -0,0 +1,144 @@ +//******************************************* +// +// BREAKPOINT UTILITY +// +// Description +// - Utilities for creating breakpoints +// +// Contents +// 1) WIDTH +// 2) HEIGHT +// 3) ASPEECT RATIO +// 4) ORIENTATION +// 5) PIXEL DENSITY +// +// Notes +// - Default prefix favors mobile and portrait first design principles. +// +// Acknowledgements: +// Chris Coyier: http://css-tricks.com/media-queries-sass-3-2-and-codekit/ +// +//******************************************* + + + +//******************************************* +// +// WIDTH OR HEIGHT +// +// Notes +// - also accepts orientation, and prefix params (min-, max-, min-device-, max-device-) +// - supports end range +// +//******************************************* + +@mixin bp ($bp, $prefix: min-, $bpEndRange: null, $orientation: null, $direction: width, $endRangePrefix: max-) { + + // Define focus direction of breakpoint statement (width or height) + @if $direction == "height" { + $prefix: $prefix + "height: "; + } @else { + $prefix: $prefix + "width: "; + } + + // Re-define orientation variable if value exists + @if $orientation != null { + $orientation: "orientation:" + $orientation; + } + + // Output statement for single condition value (includes orientation if applied) + @if $bpEndRange == null { + + @if $orientation == null { // Checks to see if there is an orientation value + @media ($prefix $bp) { @content }; + } @else { + @media ($prefix $bp) and ($orientation) { @content; } + } + + // Output statement for end range condition value (includes orientation if applied) + } @else { + + // Define focus direction of breakpoint end range statement (width or height) + @if $direction == "height" { + $endRangePrefix: $endRangePrefix + "height: "; + } @else { + $endRangePrefix: $endRangePrefix + "width: "; + } + + @if $orientation == null { // Checks to see if there is an orientation value + @media ($prefix $bp) and ($endRangePrefix $bpEndRange) { @content }; + } @else { + @media ($prefix $bp) and ($endRangePrefix $bpEndRange) and ($orientation) { @content; } + } + + } +} + + +//******************************************* +// +// ASPECT RATIO +// +// Notes +// - $aspectRatio syntax '16/9' +// +//******************************************* +// Aspect Ratio with width limitation +@mixin bpAspectRatio ($aspectRatio: null, $width: null) { + @if $aspectRatio != null { + @if $width == null { + @media (max-aspect-ratio: $aspectRatio) { @content; } + } @else { + @media (max-aspect-ratio: $aspectRatio) and (min-width: $width) { @content; } + } + } +} + + + +//******************************************* +// +// ORIENTATION +// +//******************************************* +@mixin bpOrientation ($orientation: portrait, $width: null, $prefix: min-) { + $width-prefix: $prefix + "width: "; + @if $width == null { + @media (orientation: $orientation) { @content; } + } @else { + @media (orientation: $orientation) and ($width-prefix $width) { @content; } + } +} + + + +//******************************************* +// +// PIXEL DENSITIES +// +// Common Device Pixel Ratios +// 1.25, 1.3, 1.5, 2 +// +//******************************************* +@mixin bpPixelDensity ($pd: 2) { + // 1.25 + @if $pd == 1.25 { + @media (-webkit-min-device-pixel-ratio: $pd), + (min-resolution: 120dpi) { @content; } + } + // 1.3 + @if $pd == 1.3 { + @media (-webkit-min-device-pixel-ratio: $pd), + (min-resolution: 124.8dpi) { @content; } + } + // 1.5 + @if $pd == 1.5 { + @media (-webkit-min-device-pixel-ratio: $pd), + (min-resolution: 144dpi) { @content; } + } + // 2 + @if $pd == 2 { + @media (-webkit-min-device-pixel-ratio: $pd), + (min-resolution: 192dpi) { @content; } + } +} \ No newline at end of file diff --git a/build/createjsTheme/assets/scss/utilities/clearfix.scss b/build/createjsTheme/assets/scss/utilities/clearfix.scss new file mode 100644 index 00000000..cf99750a --- /dev/null +++ b/build/createjsTheme/assets/scss/utilities/clearfix.scss @@ -0,0 +1,28 @@ +//******************************************* +// +// CLEAR FIX UTILITIES +// +// Details +// - Utility for clearing floats +// +// Contents +// 1) CLEARFIX +// +//******************************************* + + + +//******************************************* +// +// CLEARFIX +// +//******************************************* +%clearfix { + zoom: 1; // For IE 6/7 (trigger hasLayout) + &::before, + &::after { + content: ""; + display: table; + } + &::after { clear: both; } +} diff --git a/build/createjsTheme/layouts/main.handlebars b/build/createjsTheme/layouts/main.handlebars index 60b7921e..71f49b0c 100755 --- a/build/createjsTheme/layouts/main.handlebars +++ b/build/createjsTheme/layouts/main.handlebars @@ -2,12 +2,12 @@ - + - - -{{projectName}} v{{projectVersion}} API Documentation : {{name}} + + +{{projectName}} v{{projectVersion}} API Documentation : {{name}} @@ -35,7 +35,7 @@ {{>options}}-+@@ -52,4 +52,4 @@ - \ No newline at end of file + diff --git a/build/createjsTheme/partials/props.handlebars b/build/createjsTheme/partials/props.handlebars index 8385ad17..a94b44d9 100755 --- a/build/createjsTheme/partials/props.handlebars +++ b/build/createjsTheme/partials/props.handlebars @@ -18,6 +18,10 @@ static {{/if}} + {{#if readonly}} + readonly + {{/if}} +{{>layout_content}}