(function(){var e=document,t=window.PIE;if(!t){t=window.PIE={CSS_PREFIX:"-pie-",STYLE_PREFIX:"Pie",CLASS_PREFIX:"pie_",tableCellTags:{TD:1,TH:1},childlessElements:{TABLE:1,THEAD:1,TBODY:1,TFOOT:1,TR:1,INPUT:1,TEXTAREA:1,SELECT:1,OPTION:1,IMG:1,HR:1},focusableElements:{A:1,INPUT:1,TEXTAREA:1,SELECT:1,BUTTON:1},inputButtonTypes:{submit:1,button:1,reset:1},emptyFn:function(){}};try{e.execCommand("BackgroundImageCache",!1,!0)}catch(n){}(function(){for(var n,i=4,r=e.createElement("div"),a=r.getElementsByTagName("i");r.innerHTML="",a[0];);t.ieVersion=i,6===i&&(t.CSS_PREFIX=t.CSS_PREFIX.replace(/^-/,"")),t.ieDocMode=e.documentMode||t.ieVersion,r.innerHTML='',n=r.firstChild,n.style.behavior="url(#default#VML)",t.supportsVML="object"==typeof n.adj})(),function(){var n,i=0,r={};t.Util={createVmlElement:function(t){var i="css3vml";return n||(n=e.createDocumentFragment(),n.namespaces.add(i,"urn:schemas-microsoft-com:vml")),n.createElement(i+":"+t)},getUID:function(e){return e&&e._pieId||(e._pieId="_"+ ++i)},merge:function(e){var t,n,i,r,a=arguments;for(t=1,n=a.length;n>t;t++){r=a[t];for(i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e},withImageSize:function(e,t,n){var i,a,o=r[e];o?"[object Array]"===Object.prototype.toString.call(o)?o.push([t,n]):t.call(n,o):(a=r[e]=[[t,n]],i=new Image,i.onload=function(){o=r[e]={w:i.width,h:i.height};for(var t=0,n=a.length;n>t;t++)a[t][0].call(a[t][1],o);i.onload=null},i.src=e)}}}(),t.GradientUtil={getGradientMetrics:function(e,n,i,r){function a(){d=y>=90&&270>y?n:0,p=180>y?i:0,h=n-d,m=i-p}function o(){for(;0>y;)y+=360;y%=360}var s,l,c,u,d,p,h,m,g,f,b,v,y=r.angle,k=r.gradientStart;return k&&(k=k.coords(e,n,i),s=k.x,l=k.y),y?(y=y.degrees(),o(),a(),k||(s=d,l=p),b=t.GradientUtil.perpendicularIntersect(s,l,y,h,m),c=b[0],u=b[1]):k?(c=n-s,u=i-l):(s=l=c=0,u=i),g=c-s,f=u-l,y===v&&(y=g?f?180*(-Math.atan2(f,g)/Math.PI):0>g?180:0:0>f?90:270,o(),a()),{angle:y,startX:s,startY:l,endX:c,endY:u,startCornerX:d,startCornerY:p,endCornerX:h,endCornerY:m,deltaX:g,deltaY:f,lineLength:t.GradientUtil.distance(s,l,c,u)}},perpendicularIntersect:function(e,t,n,i,r){if(0===n||180===n)return[i,t];if(90===n||270===n)return[e,r];var a=Math.tan(-n*Math.PI/180),o=a*e-t,s=-1/a,l=s*i-r,c=s-a,u=(l-o)/c,d=(a*l-s*o)/c;return[u,d]},distance:function(e,t,n,i){var r=n-e,a=i-t;return Math.abs(0===r?a:0===a?r:Math.sqrt(r*r+a*a))}},t.Observable=function(){this.observers=[],this.indexes={}},t.Observable.prototype={observe:function(e){var n=t.Util.getUID(e),i=this.indexes,r=this.observers;n in i||(i[n]=r.length,r.push(e))},unobserve:function(e){var n=t.Util.getUID(e),i=this.indexes;n&&n in i&&(delete this.observers[i[n]],delete i[n])},fire:function(){for(var e=this.observers,t=e.length;t--;)e[t]&&e[t]()}},t.Heartbeat=new t.Observable,t.Heartbeat.run=function(){var e=this;e.running||(setInterval(function(){e.fire()},250),e.running=1)},function(){function e(){t.OnUnload.fire(),window.detachEvent("onunload",e),window.PIE=null}t.OnUnload=new t.Observable,window.attachEvent("onunload",e),t.OnUnload.attachManagedEvent=function(e,t,n){e.attachEvent(t,n),this.observe(function(){e.detachEvent(t,n)})}}(),t.OnResize=new t.Observable,t.OnUnload.attachManagedEvent(window,"onresize",function(){t.OnResize.fire()}),function(){function e(){t.OnScroll.fire()}t.OnScroll=new t.Observable,t.OnUnload.attachManagedEvent(window,"onscroll",e),t.OnResize.observe(e)}(),function(){function e(){i=t.Element.destroyAll()}function n(){if(i){for(var e=0,n=i.length;n>e;e++)t.attach(i[e]);i=0}}var i;t.OnUnload.attachManagedEvent(window,"onbeforeprint",e),t.OnUnload.attachManagedEvent(window,"onafterprint",n)}(),t.OnMouseup=new t.Observable,t.OnUnload.attachManagedEvent(e,"onmouseup",function(){t.OnMouseup.fire()}),t.Length=function(){function n(e){this.val=e}var i=e.createElement("length-calc"),r=e.documentElement,a=i.style,o={},s=["mm","cm","in","pt","pc"],l=s.length,c={};for(a.position="absolute",a.top=a.left="-9999px",r.appendChild(i);l--;)i.style.width="100"+s[l],o[s[l]]=i.offsetWidth/100;return r.removeChild(i),i.style.width="1em",n.prototype={unitRE:/(px|em|ex|mm|cm|in|pt|pc|%)$/,getNumber:function(){var e,t=this.num;return t===e&&(t=this.num=parseFloat(this.val)),t},getUnit:function(){var e,t=this.unit;return t||(e=this.val.match(this.unitRE),t=this.unit=e&&e[0]||"px"),t},isPercentage:function(){return"%"===this.getUnit()},pixels:function(e,t){var n=this.getNumber(),i=this.getUnit();switch(i){case"px":return n;case"%":return n*("function"==typeof t?t():t)/100;case"em":return n*this.getEmPixels(e);case"ex":return n*this.getEmPixels(e)/2;default:return n*o[i]}},getEmPixels:function(e){var n,r,a,o=e.currentStyle.fontSize;return o.indexOf("px")>0?parseFloat(o):e.tagName in t.childlessElements?(a=this,r=e.parentNode,t.getLength(o).pixels(r,function(){return a.getEmPixels(r)})):(e.appendChild(i),n=i.offsetWidth,i.parentNode===e&&e.removeChild(i),n)}},t.getLength=function(e){return c[e]||(c[e]=new n(e))},n}(),t.BgPosition=function(){function e(e){this.tokens=e}var n=t.getLength("50%"),i={top:1,center:1,bottom:1},r={left:1,center:1,right:1};return e.prototype={getValues:function(){if(!this._values){var e=this.tokens,a=e.length,o=t.Tokenizer,s=o.Type,l=t.getLength("0"),c=s.IDENT,u=(s.LENGTH,s.PERCENT,["left",l,"top",l]);1===a&&(e.push(new o.Token(c,"center")),a++),2===a&&(c&(e[0].tokenType|e[1].tokenType)&&e[0].tokenValue in i&&e[1].tokenValue in r&&e.push(e.shift()),e[0].tokenType&c?"center"===e[0].tokenValue?u[1]=n:u[0]=e[0].tokenValue:e[0].isLengthOrPercent()&&(u[1]=t.getLength(e[0].tokenValue)),e[1].tokenType&c?"center"===e[1].tokenValue?u[3]=n:u[2]=e[1].tokenValue:e[1].isLengthOrPercent()&&(u[3]=t.getLength(e[1].tokenValue))),this._values=u}return this._values},coords:function(e,t,n){var i=this.getValues(),r=i[1].pixels(e,t),a=i[3].pixels(e,n);return{x:"right"===i[0]?t-r:r,y:"bottom"===i[2]?n-a:a}}},e}(),t.BgSize=function(){function e(e,t){this.w=e,this.h=t}var t="contain",n="cover",i="auto";return e.prototype={pixels:function(e,r,a,o,s){var l=this,c=l.w,u=l.h,d=r/a,p=o/s;return c===t?(c=p>d?r:a*p,u=p>d?r/p:a):c===n?(c=d>p?r:a*p,u=d>p?r/p:a):c===i?(u=u===i?s:u.pixels(e,a),c=u*p):(c=c.pixels(e,r),u=u===i?c/p:u.pixels(e,a)),{w:c,h:u}}},e.DEFAULT=new e(i,i),e}(),t.Angle=function(){function e(e){this.val=e}return e.prototype={unitRE:/[a-z]+$/i,getUnit:function(){return this._unit||(this._unit=this.val.match(this.unitRE)[0].toLowerCase())},degrees:function(){var e,t,n=this._deg;return void 0===n&&(e=this.getUnit(),t=parseFloat(this.val,10),n=this._deg="deg"===e?t:"rad"===e?180*(t/Math.PI):"grad"===e?360*(t/400):"turn"===e?360*t:0),n}},e}(),t.Color=function(){function e(e){this.val=e}var n={};return e.rgbaRE=/\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d+|\d*\.\d+)\s*\)\s*/,e.names={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"0FF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000",blanchedalmond:"FFEBCD",blue:"00F",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"0FF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"F0F",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgreen:"90EE90",lightgrey:"D3D3D3",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"789",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"0F0",limegreen:"32CD32",linen:"FAF0E6",magenta:"F0F",maroon:"800000",mediumauqamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370D8",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"688E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"D87093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",red:"F00",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFF",whitesmoke:"F5F5F5",yellow:"FF0",yellowgreen:"9ACD32"},e.prototype={parse:function(){if(!this._color){var t,n=this,i=n.val,r=i.match(e.rgbaRE);r?(n._color="rgb("+r[1]+","+r[2]+","+r[3]+")",n._alpha=parseFloat(r[4])):((t=i.toLowerCase())in e.names&&(i="#"+e.names[t]),n._color=i,n._alpha="transparent"===i?0:1)}},colorValue:function(e){return this.parse(),"currentColor"===this._color?e.currentStyle.color:this._color},alpha:function(){return this.parse(),this._alpha}},t.getColor=function(t){return n[t]||(n[t]=new e(t))},e}(),t.Tokenizer=function(){function e(e){this.css=e,this.ch=0,this.tokens=[],this.tokenIndex=0}var n=e.Type={ANGLE:1,CHARACTER:2,COLOR:4,DIMEN:8,FUNCTION:16,IDENT:32,LENGTH:64,NUMBER:128,OPERATOR:256,PERCENT:512,STRING:1024,URL:2048};return e.Token=function(e,t){this.tokenType=e,this.tokenValue=t},e.Token.prototype={isLength:function(){return this.tokenType&n.LENGTH||this.tokenType&n.NUMBER&&"0"===this.tokenValue},isLengthOrPercent:function(){return this.isLength()||this.tokenType&n.PERCENT}},e.prototype={whitespace:/\s/,number:/^[\+\-]?(\d*\.)?\d+/,url:/^url\(\s*("([^"]*)"|'([^']*)'|([!#$%&*-~]*))\s*\)/i,ident:/^\-?[_a-z][\w-]*/i,string:/^("([^"]*)"|'([^']*)')/,operator:/^[\/,]/,hash:/^#[\w]+/,hashColor:/^#([\da-f]{6}|[\da-f]{3})/i,unitTypes:{px:n.LENGTH,em:n.LENGTH,ex:n.LENGTH,mm:n.LENGTH,cm:n.LENGTH,"in":n.LENGTH,pt:n.LENGTH,pc:n.LENGTH,deg:n.ANGLE,rad:n.ANGLE,grad:n.ANGLE},colorFunctions:{rgb:1,rgba:1,hsl:1,hsla:1},next:function(i){function r(t,n){var r=new e.Token(t,n);return i||(g.tokens.push(r),g.tokenIndex++),r}function a(){return g.tokenIndex++,null}function o(e){return e&&e.tokenType&n.NUMBER}function s(e){return e&&e.tokenType&(n.NUMBER|n.PERCENT)}function l(e,t){return e&&e.tokenValue===t}function c(){return g.next(1)}var u,d,p,h,m,g=this;if(this.tokenIndex=this.css.length)return a();switch(d=this.ch,u=this.css.substring(this.ch),p=u.charAt(0)){case"#":if(h=u.match(this.hashColor))return this.ch+=h[0].length,r(n.COLOR,h[0]);break;case'"':case"'":if(h=u.match(this.string))return this.ch+=h[0].length,r(n.STRING,h[2]||h[3]||"");break;case"/":case",":return this.ch++,r(n.OPERATOR,p);case"u":if(h=u.match(this.url))return this.ch+=h[0].length,r(n.URL,h[2]||h[3]||h[4]||"")}return(h=u.match(this.number))?(m=h[0],this.ch+=m.length,"%"===u.charAt(m.length)?(this.ch++,r(n.PERCENT,m+"%")):(h=u.substring(m.length).match(this.ident))?(m+=h[0],this.ch+=h[0].length,r(this.unitTypes[h[0].toLowerCase()]||n.DIMEN,m)):r(n.NUMBER,m)):(h=u.match(this.ident))?(m=h[0],this.ch+=m.length,m.toLowerCase()in t.Color.names||"currentColor"===m||"transparent"===m?r(n.COLOR,m):"("===u.charAt(m.length)?(this.ch++,m.toLowerCase()in this.colorFunctions?("r"===m.charAt(0)?s(c()):o(c()))&&l(c(),",")&&s(c())&&l(c(),",")&&s(c())&&("rgb"===m||"hsa"===m||l(c(),",")&&o(c()))&&l(c(),")")?r(n.COLOR,this.css.substring(d,this.ch)):a():r(n.FUNCTION,m)):r(n.IDENT,m)):(this.ch++,r(n.CHARACTER,p))},hasNext:function(){var e=this.next();return this.prev(),!!e},prev:function(){return this.tokens[this.tokenIndex-- -2]},all:function(){for(;this.next(););return this.tokens},until:function(e,t){for(var n,i,r=[];n=this.next();){if(e(n)){i=!0,this.prev();break}r.push(n)}return t&&!i?null:r}},e}(),t.BoundsInfo=function(e){this.targetElement=e},t.BoundsInfo.prototype={_locked:0,positionChanged:function(){var e,t=this._lastBounds;return!t||(e=this.getBounds())&&(t.x!==e.x||t.y!==e.y)},sizeChanged:function(){var e,t=this._lastBounds;return!t||(e=this.getBounds())&&(t.w!==e.w||t.h!==e.h)},getLiveBounds:function(){var e=this.targetElement,n=e.getBoundingClientRect(),i=9===t.ieDocMode;return{x:n.left,y:n.top,w:i?e.offsetWidth:n.right-n.left,h:i?e.offsetHeight:n.bottom-n.top}},getBounds:function(){return this._locked?this._lockedBounds||(this._lockedBounds=this.getLiveBounds()):this.getLiveBounds()},hasBeenQueried:function(){return!!this._lastBounds},lock:function(){++this._locked},unlock:function(){--this._locked||(this._lockedBounds&&(this._lastBounds=this._lockedBounds),this._lockedBounds=null)}},function(){function e(e){var n=t.Util.getUID(e);return function(){if(this._locked){var t=this._lockedValues||(this._lockedValues={});return n in t?t[n]:t[n]=e.call(this)}return e.call(this)}}t.StyleInfoBase={_locked:0,newStyleInfo:function(e){function n(e){this.targetElement=e,this._lastCss=this.getCss()}return t.Util.merge(n.prototype,t.StyleInfoBase,e),n._propsCache={},n},getProps:function(){var e=this.getCss(),t=this.constructor._propsCache;return e?e in t?t[e]:t[e]=this.parseCss(e):null},getCss:e(function(){var e=this.targetElement,n=this.constructor,i=e.style,r=e.currentStyle,a=this.cssProperty,o=this.styleProperty,s=n._prefixedCssProp||(n._prefixedCssProp=t.CSS_PREFIX+a),l=n._prefixedStyleProp||(n._prefixedStyleProp=t.STYLE_PREFIX+o.charAt(0).toUpperCase()+o.substring(1));return i[l]||r.getAttribute(s)||i[o]||r.getAttribute(a)}),isActive:e(function(){return!!this.getProps()}),changed:e(function(){var e=this.getCss(),t=e!==this._lastCss;return this._lastCss=e,t}),cacheWhenLocked:e,lock:function(){++this._locked},unlock:function(){--this._locked||delete this._lockedValues}}}(),t.BackgroundStyleInfo=t.StyleInfoBase.newStyleInfo({cssProperty:t.CSS_PREFIX+"background",styleProperty:t.STYLE_PREFIX+"Background",attachIdents:{scroll:1,fixed:1,local:1},repeatIdents:{"repeat-x":1,"repeat-y":1,repeat:1,"no-repeat":1},originAndClipIdents:{"padding-box":1,"border-box":1,"content-box":1},positionIdents:{top:1,right:1,bottom:1,left:1,center:1},sizeIdents:{contain:1,cover:1},propertyNames:{CLIP:"backgroundClip",COLOR:"backgroundColor",IMAGE:"backgroundImage",ORIGIN:"backgroundOrigin",POSITION:"backgroundPosition",REPEAT:"backgroundRepeat",SIZE:"backgroundSize"},parseCss:function(e){function n(e){return e&&e.isLengthOrPercent()||e.tokenType&b&&e.tokenValue in k}function i(e){return e&&(e.isLengthOrPercent()&&t.getLength(e.tokenValue)||"auto"===e.tokenValue&&"auto")}var r,a,o,s,l,c,u,d,p,h=this.targetElement,m=h.currentStyle,g=t.Tokenizer.Type,f=g.OPERATOR,b=g.IDENT,v=g.COLOR,y=0,k=this.positionIdents,_={bgImages:[]};if(this.getCss3()){for(r=new t.Tokenizer(e),o={};a=r.next();)if(s=a.tokenType,l=a.tokenValue,!o.imgType&&s&g.FUNCTION&&"linear-gradient"===l)for(c={stops:[],imgType:l},u={};a=r.next();){if(s=a.tokenType,l=a.tokenValue,s&g.CHARACTER&&")"===l){u.color&&c.stops.push(u),c.stops.length>1&&t.Util.merge(o,c);break}if(s&v){if(c.angle||c.gradientStart){if(a=r.prev(),a.tokenType!==f)break;r.next()}u={color:t.getColor(l)},a=r.next(),a.isLengthOrPercent()?u.offset=t.getLength(a.tokenValue):r.prev()}else if(s&g.ANGLE&&!c.angle&&!u.color&&!c.stops.length)c.angle=new t.Angle(a.tokenValue);else if(!n(a)||c.gradientStart||u.color||c.stops.length){if(!(s&f&&","===l))break;u.color&&(c.stops.push(u),u={})}else r.prev(),c.gradientStart=new t.BgPosition(r.until(function(e){return!n(e)},!1))}else if(!o.imgType&&s&g.URL)o.imgUrl=l,o.imgType="image";else if(n(a)&&!o.bgPosition)r.prev(),o.bgPosition=new t.BgPosition(r.until(function(e){return!n(e)},!1));else if(s&b)if(l in this.repeatIdents&&!o.imgRepeat)o.imgRepeat=l;else if(l in this.originAndClipIdents&&!o.bgOrigin)o.bgOrigin=l,(a=r.next())&&a.tokenType&b&&a.tokenValue in this.originAndClipIdents?o.bgClip=a.tokenValue:(o.bgClip=l,r.prev());else{if(!(l in this.attachIdents)||o.bgAttachment)return null;o.bgAttachment=l}else if(s&v&&!_.color)_.color=t.getColor(l);else if(s&f&&"/"===l&&!o.bgSize&&o.bgPosition)if(a=r.next(),a.tokenType&b&&a.tokenValue in this.sizeIdents)o.bgSize=new t.BgSize(a.tokenValue);else{if(!(d=i(a)))return null;p=i(r.next()),p||(p=d,r.prev()),o.bgSize=new t.BgSize(d,p)}else{if(!(s&f&&","===l&&o.imgType))return null;o.origString=e.substring(y,r.ch-1),y=r.ch,_.bgImages.push(o),o={}}o.imgType&&(o.origString=e.substring(y),_.bgImages.push(o))}else this.withActualBg(9>t.ieDocMode?function(){var e=this.propertyNames,n=m[e.POSITION+"X"],i=m[e.POSITION+"Y"],r=m[e.IMAGE],a=m[e.COLOR];"transparent"!==a&&(_.color=t.getColor(a)),"none"!==r&&(_.bgImages=[{imgType:"image",imgUrl:new t.Tokenizer(r).next().tokenValue,imgRepeat:m[e.REPEAT],bgPosition:new t.BgPosition(new t.Tokenizer(n+" "+i).all())}])}:function(){var e,n,i,r,a,o,s,l,c,u=this.propertyNames,d=/\s*,\s*/,p=m[u.IMAGE].split(d),h=m[u.COLOR];if("transparent"!==h&&(_.color=t.getColor(h)),s=p.length,s&&"none"!==p[0])for(e=m[u.REPEAT].split(d),n=m[u.POSITION].split(d),i=m[u.ORIGIN].split(d),r=m[u.CLIP].split(d),a=m[u.SIZE].split(d),_.bgImages=[],o=0;s>o;o++)l=p[o],l&&"none"!==l&&(c=a[o].split(" "),_.bgImages.push({origString:l+" "+e[o]+" "+n[o]+" / "+a[o]+" "+i[o]+" "+r[o],imgType:"image",imgUrl:new t.Tokenizer(l).next().tokenValue,imgRepeat:e[o],bgPosition:new t.BgPosition(new t.Tokenizer(n[o]).all()),bgOrigin:i[o],bgClip:r[o],bgSize:new t.BgSize(c[0],c[1])}))});return _.color||_.bgImages[0]?_:null},withActualBg:function(e){var n,i,r,a,o,s=t.ieDocMode>8,l=this.propertyNames,c=this.targetElement.runtimeStyle,u=c[l.IMAGE],d=c[l.COLOR],p=c[l.REPEAT];return u&&(c[l.IMAGE]=""),d&&(c[l.COLOR]=""),p&&(c[l.REPEAT]=""),s&&(n=c[l.CLIP],i=c[l.ORIGIN],a=c[l.POSITION],r=c[l.SIZE],n&&(c[l.CLIP]=""),i&&(c[l.ORIGIN]=""),a&&(c[l.POSITION]=""),r&&(c[l.SIZE]="")),o=e.call(this),u&&(c[l.IMAGE]=u),d&&(c[l.COLOR]=d),p&&(c[l.REPEAT]=p),s&&(n&&(c[l.CLIP]=n),i&&(c[l.ORIGIN]=i),a&&(c[l.POSITION]=a),r&&(c[l.SIZE]=r)),o},getCss:t.StyleInfoBase.cacheWhenLocked(function(){return this.getCss3()||this.withActualBg(function(){var e=this.targetElement.currentStyle,t=this.propertyNames;return e[t.COLOR]+" "+e[t.IMAGE]+" "+e[t.REPEAT]+" "+e[t.POSITION+"X"]+" "+e[t.POSITION+"Y"]})}),getCss3:t.StyleInfoBase.cacheWhenLocked(function(){var e=this.targetElement;return e.style[this.styleProperty]||e.currentStyle.getAttribute(this.cssProperty)}),isPngFix:function(){var e,n=0;return 7>t.ieVersion&&(e=this.targetElement,n="true"==""+(e.style[t.STYLE_PREFIX+"PngFix"]||e.currentStyle.getAttribute(t.CSS_PREFIX+"png-fix"))),n},isActive:t.StyleInfoBase.cacheWhenLocked(function(){return(this.getCss3()||this.isPngFix())&&!!this.getProps()})}),t.BorderStyleInfo=t.StyleInfoBase.newStyleInfo({sides:["Top","Right","Bottom","Left"],namedWidths:{thin:"1px",medium:"3px",thick:"5px"},parseCss:function(){var e={},n={},i={},r=!1,a=!0,o=!0,s=!0;return this.withActualBorder(function(){for(var l,c,u,d,p,h,m,g,f=this.targetElement,b=f.currentStyle,v=0;4>v;v++)m=this.sides[v],g=m.charAt(0).toLowerCase(),l=n[g]=b["border"+m+"Style"],c=b["border"+m+"Color"],u=b["border"+m+"Width"],v>0&&(l!==d&&(o=!1),c!==p&&(a=!1),u!==h&&(s=!1)),d=l,p=c,h=u,i[g]=t.getColor(c),u=e[g]=t.getLength("none"===n[g]?"0":this.namedWidths[u]||u),u.pixels(this.targetElement)>0&&(r=!0)}),r?{widths:e,styles:n,colors:i,widthsSame:s,colorsSame:a,stylesSame:o}:null},getCss:t.StyleInfoBase.cacheWhenLocked(function(){var e,n=this.targetElement,i=n.currentStyle;return n.tagName in t.tableCellTags&&"collapse"===n.offsetParent.currentStyle.borderCollapse||this.withActualBorder(function(){e=i.borderWidth+"|"+i.borderStyle+"|"+i.borderColor}),e}),withActualBorder:function(e){var t,n=this.targetElement.runtimeStyle,i=n.borderWidth,r=n.borderColor;return i&&(n.borderWidth=""),r&&(n.borderColor=""),t=e.call(this),i&&(n.borderWidth=i),r&&(n.borderColor=r),t}}),function(){t.BorderRadiusStyleInfo=t.StyleInfoBase.newStyleInfo({cssProperty:"border-radius",styleProperty:"borderRadius",parseCss:function(e){function n(){for(var e,n=[];(o=a.next())&&o.isLengthOrPercent();){if(s=t.getLength(o.tokenValue),e=s.getNumber(),0>e)return null;e>0&&(c=!0),n.push(s)}return n.length>0&&5>n.length?{tl:n[0],tr:n[1]||n[0],br:n[2]||n[0],bl:n[3]||n[1]||n[0]}:null}var i,r,a,o,s,l=null,c=!1;return e&&(a=new t.Tokenizer(e),(i=n())&&(o?o.tokenType&t.Tokenizer.Type.OPERATOR&&"/"===o.tokenValue&&(r=n()):r=i,c&&i&&r&&(l={x:i,y:r}))),l}});var e=t.getLength("0"),n={tl:e,tr:e,br:e,bl:e};t.BorderRadiusStyleInfo.ALL_ZERO={x:n,y:n}}(),t.BorderImageStyleInfo=t.StyleInfoBase.newStyleInfo({cssProperty:"border-image",styleProperty:"borderImage",repeatIdents:{stretch:1,round:1,repeat:1,space:1},parseCss:function(e){function n(e){return e&&e.tokenType&g.OPERATOR&&"/"===e.tokenValue}function i(e){return e&&e.tokenType&f&&"fill"===e.tokenValue}function r(){u=o.until(function(e){return!(e.tokenType&(b|v))}),i(o.next())&&!h.fill?h.fill=!0:o.prev(),n(o.next())?(m++,d=o.until(function(e){return!(e.isLengthOrPercent()||e.tokenType&f&&"auto"===e.tokenValue)}),n(o.next())&&(m++,p=o.until(function(e){return!e.isLength()}))):o.prev()}function a(e,t){return{t:t(e[0]),r:t(e[1]||e[0]),b:t(e[2]||e[0]),l:t(e[3]||e[1]||e[0])}}var o,s,l,c,u,d,p,h=null,m=0,g=t.Tokenizer.Type,f=g.IDENT,b=g.NUMBER,v=g.PERCENT;if(e){for(o=new t.Tokenizer(e),h={};s=o.next();)if(l=s.tokenType,c=s.tokenValue,l&(b|v)&&!u)o.prev(),r();else if(i(s)&&!h.fill)h.fill=!0,r();else if(l&f&&this.repeatIdents[c]&&!h.repeat)h.repeat={h:c},(s=o.next())&&(s.tokenType&f&&this.repeatIdents[s.tokenValue]?h.repeat.v=s.tokenValue:o.prev());else{if(!(l&g.URL)||h.src)return null;h.src=c}if(!h.src||!u||1>u.length||u.length>4||d&&d.length>4||1===m&&1>d.length||p&&p.length>4||2===m&&1>p.length)return null;h.repeat||(h.repeat={h:"stretch"}),h.repeat.v||(h.repeat.v=h.repeat.h),h.slice=a(u,function(e){return t.getLength(e.tokenType&b?e.tokenValue+"px":e.tokenValue)}),d&&d[0]&&(h.widths=a(d,function(e){return e.isLengthOrPercent()?t.getLength(e.tokenValue):e.tokenValue})),p&&p[0]&&(h.outset=a(p,function(e){return e.isLength()?t.getLength(e.tokenValue):e.tokenValue}))}return h}}),t.BoxShadowStyleInfo=t.StyleInfoBase.newStyleInfo({cssProperty:"box-shadow",styleProperty:"boxShadow",parseCss:function(e){function n(){for(var e,n,s,l,c,u,d;(e=r.next())&&(s=e.tokenValue,n=e.tokenType,!(n&o.OPERATOR&&","===s));)if(e.isLength()&&!c)r.prev(),c=r.until(function(e){return!e.isLength()});else if(n&o.COLOR&&!l)l=s;else{if(!(n&o.IDENT&&"inset"===s)||u)return!1;u=!0}return d=c&&c.length,d>1&&5>d?((u?i.inset:i.outset).push({xOffset:a(c[0].tokenValue),yOffset:a(c[1].tokenValue),blur:a(c[2]?c[2].tokenValue:"0"),spread:a(c[3]?c[3].tokenValue:"0"),color:t.getColor(l||"currentColor")}),!0):!1}var i,r,a=t.getLength,o=t.Tokenizer.Type;if(e)for(r=new t.Tokenizer(e),i={outset:[],inset:[]};n(););return i&&(i.inset.length||i.outset.length)?i:null}}),t.VisibilityStyleInfo=t.StyleInfoBase.newStyleInfo({getCss:t.StyleInfoBase.cacheWhenLocked(function(){var e=this.targetElement.currentStyle;return e.visibility+"|"+e.display}),parseCss:function(){var e,t=this.targetElement,n=t.runtimeStyle,i=t.currentStyle,r=n.visibility;return n.visibility="",e=i.visibility,n.visibility=r,{visible:"hidden"!==e,displayed:"none"!==i.display}},isActive:function(){return!1}}),t.RendererBase={newRenderer:function(e){function n(e,t,n,i){this.targetElement=e,this.boundsInfo=t,this.styleInfos=n,this.parent=i}return t.Util.merge(n.prototype,t.RendererBase,e),n},isPositioned:!1,needsUpdate:function(){return!1},prepareUpdate:t.emptyFn,updateProps:function(){this.destroy(),this.isActive()&&this.draw()},updatePos:function(){this.isPositioned=!0},updateSize:function(){this.isActive()?this.draw():this.destroy()},addLayer:function(e,t){this.removeLayer(e);for(var n,i=this._layers||(this._layers=[]),r=e+1,a=i.length;a>r&&!(n=i[r]);r++);i[e]=t,this.getBox().insertBefore(t,n||null)},getLayer:function(e){var t=this._layers;return t&&t[e]||null},removeLayer:function(e){var t=this.getLayer(e),n=this._box;t&&n&&(n.removeChild(t),this._layers[e]=null)},getShape:function(n,i,r,a){var o,s=this._shapes||(this._shapes={}),l=s[n];return l||(l=s[n]=t.Util.createVmlElement("shape"),i&&l.appendChild(l[i]=t.Util.createVmlElement(i)),a&&(r=this.getLayer(a),r||(this.addLayer(a,e.createElement("group"+a)),r=this.getLayer(a))),r.appendChild(l),o=l.style,o.position="absolute",o.left=o.top=0,o.behavior="url(#default#VML)"),l},deleteShape:function(e){var t=this._shapes,n=t&&t[e];return n&&(n.parentNode.removeChild(n),delete t[e]),!!n},getRadiiPixels:function(e){var t,n,i,r,a,o,s,l,c,u=this.targetElement,d=this.boundsInfo.getBounds(),p=d.w,h=d.h;return t=e.x.tl.pixels(u,p),n=e.y.tl.pixels(u,h),i=e.x.tr.pixels(u,p),r=e.y.tr.pixels(u,h),a=e.x.br.pixels(u,p),o=e.y.br.pixels(u,h),s=e.x.bl.pixels(u,p),l=e.y.bl.pixels(u,h),c=Math.min(p/(t+i),h/(r+o),p/(s+a),h/(n+l)),1>c&&(t*=c,n*=c,i*=c,r*=c,a*=c,o*=c,s*=c,l*=c),{x:{tl:t,tr:i,br:a,bl:s},y:{tl:n,tr:r,br:o,bl:l}}},getBoxPath:function(e,t,n){t=t||1;var i,r,a,o,s,l,c,u,d,p,h=this.boundsInfo.getBounds(),m=h.w*t,g=h.h*t,f=this.styleInfos.borderRadiusInfo,b=Math.floor,v=Math.ceil,y=e?e.t*t:0,k=e?e.r*t:0,_=e?e.b*t:0,C=e?e.l*t:0;return n||f.isActive()?(i=this.getRadiiPixels(n||f.getProps()),a=i.x.tl*t,o=i.y.tl*t,s=i.x.tr*t,l=i.y.tr*t,c=i.x.br*t,u=i.y.br*t,d=i.x.bl*t,p=i.y.bl*t,r="m"+b(C)+","+b(o)+"qy"+b(a)+","+b(y)+"l"+v(m-s)+","+b(y)+"qx"+v(m-k)+","+b(l)+"l"+v(m-k)+","+v(g-u)+"qy"+v(m-c)+","+v(g-_)+"l"+b(d)+","+v(g-_)+"qx"+b(C)+","+v(g-p)+" x e"):r="m"+b(C)+","+b(y)+"l"+v(m-k)+","+b(y)+"l"+v(m-k)+","+v(g-_)+"l"+b(C)+","+v(g-_)+"xe",r},getBox:function(){var t,n=this.parent.getLayer(this.boxZIndex);return n||(n=e.createElement(this.boxName),t=n.style,t.position="absolute",t.top=t.left=0,this.parent.addLayer(this.boxZIndex,n)),n},hideBorder:function(){var n,i,r,a=this.targetElement,o=a.currentStyle,s=a.runtimeStyle,l=a.tagName,c=6===t.ieVersion;if(c&&(l in t.childlessElements||"FIELDSET"===l)||"BUTTON"===l||"INPUT"===l&&a.type in t.inputButtonTypes){for(s.borderWidth="",n=this.styleInfos.borderInfo.sides,r=n.length;r--;)i=n[r],s["padding"+i]="",s["padding"+i]=t.getLength(o["padding"+i]).pixels(a)+t.getLength(o["border"+i+"Width"]).pixels(a)+(8!==t.ieVersion&&r%2?1:0);s.borderWidth=0}else if(c){if(1!==a.childNodes.length||"ie6-mask"!==a.firstChild.tagName){var u,d=e.createElement("ie6-mask"),p=d.style;for(p.visibility="visible",p.zoom=1;u=a.firstChild;)d.appendChild(u);a.appendChild(d),s.visibility="hidden"}}else s.borderColor="transparent"},unhideBorder:function(){},destroy:function(){this.parent.removeLayer(this.boxZIndex),delete this._shapes,delete this._layers}},t.RootRenderer=t.RendererBase.newRenderer({isActive:function(){var e=this.childRenderers;for(var t in e)if(e.hasOwnProperty(t)&&e[t].isActive())return!0;return!1},needsUpdate:function(){return this.styleInfos.visibilityInfo.changed()},updatePos:function(){if(this.isActive()){var n,i,r,a,o=this.getPositioningElement(),s=o,l=o.currentStyle,c=l.position,u=this.getBox().style,d=0,p=0,h=this.boundsInfo.getBounds();if("fixed"===c&&t.ieVersion>6)d=h.x,p=h.y,r=c;else{do s=s.offsetParent;while(s&&"static"===s.currentStyle.position);s?(i=s.getBoundingClientRect(),a=s.currentStyle,d=h.x-i.left-(parseFloat(a.borderLeftWidth)||0),p=h.y-i.top-(parseFloat(a.borderTopWidth)||0)):(n=e.documentElement,d=h.x+n.scrollLeft-n.clientLeft,p=h.y+n.scrollTop-n.clientTop),r="absolute"}u.position=r,u.left=d,u.top=p,u.zIndex="static"===c?-1:l.zIndex,this.isPositioned=!0}},updateSize:t.emptyFn,updateVisibility:function(){var e=this.styleInfos.visibilityInfo.getProps();this.getBox().style.display=e.visible&&e.displayed?"":"none"},updateProps:function(){this.isActive()?this.updateVisibility():this.destroy()},getPositioningElement:function(){var e=this.targetElement;return e.tagName in t.tableCellTags?e.offsetParent:e},getBox:function(){var t,n=this._box;return n||(t=this.getPositioningElement(),n=this._box=e.createElement("css3-container"),n.style.direction="ltr",this.updateVisibility(),t.parentNode.insertBefore(n,t)),n},finishUpdate:t.emptyFn,destroy:function(){var e,t=this._box;t&&(e=t.parentNode)&&e.removeChild(t),delete this._box,delete this._layers}}),t.BackgroundRenderer=t.RendererBase.newRenderer({boxZIndex:2,boxName:"background",needsUpdate:function(){var e=this.styleInfos;return e.backgroundInfo.changed()||e.borderRadiusInfo.changed()},isActive:function(){var e=this.styleInfos;return e.borderImageInfo.isActive()||e.borderRadiusInfo.isActive()||e.backgroundInfo.isActive()||e.boxShadowInfo.isActive()&&e.boxShadowInfo.getProps().inset},draw:function(){var e=this.boundsInfo.getBounds();e.w&&e.h&&(this.drawBgColor(),this.drawBgImages())},drawBgColor:function(){var e,t,n,i,r,a=this.styleInfos.backgroundInfo.getProps(),o=this.boundsInfo.getBounds(),s=this.targetElement,l=a&&a.color;l&&l.alpha()>0?(this.hideBackground(),e=this.getShape("bgColor","fill",this.getBox(),1),t=o.w,n=o.h,e.stroked=!1,e.coordsize=2*t+","+2*n,e.coordorigin="1,1",e.path=this.getBoxPath(null,2),i=e.style,i.width=t,i.height=n,e.fill.color=l.colorValue(s),r=l.alpha(),1>r&&(e.fill.opacity=r)):this.deleteShape("bgColor")},drawBgImages:function(){var e,t,n,i,r,a,o=this.styleInfos.backgroundInfo.getProps(),s=this.boundsInfo.getBounds(),l=o&&o.bgImages;if(l)for(this.hideBackground(),n=s.w,i=s.h,a=l.length;a--;)e=l[a],t=this.getShape("bgImage"+a,"fill",this.getBox(),2),t.stroked=!1,t.fill.type="tile",t.fillcolor="none",t.coordsize=2*n+","+2*i,t.coordorigin="1,1",t.path=this.getBoxPath(0,2),r=t.style,r.width=n,r.height=i,"linear-gradient"===e.imgType?this.addLinearGradient(t,e):(t.fill.src=e.imgUrl,this.positionBgImage(t,a));for(a=l?l.length:0;this.deleteShape("bgImage"+a++););},positionBgImage:function(e,n){var i=this;t.Util.withImageSize(e.fill.src,function(r){var a=i.targetElement,o=i.boundsInfo.getBounds(),s=o.w,l=o.h;if(s&&l){var c,u,d=e.fill,p=i.styleInfos,h=p.borderInfo.getProps(),m=h&&h.widths,g=m?m.t.pixels(a):0,f=m?m.r.pixels(a):0,b=m?m.b.pixels(a):0,v=m?m.l.pixels(a):0,y=p.backgroundInfo.getProps().bgImages[n],k=y.bgPosition?y.bgPosition.coords(a,s-r.w-v-f,l-r.h-g-b):{x:0,y:0},_=y.imgRepeat,C=0,E=0,T=s+1,w=l+1,x=8===t.ieVersion?0:1;c=Math.round(k.x)+v+.5,u=Math.round(k.y)+g+.5,d.position=c/s+","+u/l,_&&"repeat"!==_&&(("repeat-x"===_||"no-repeat"===_)&&(C=u+1,w=u+r.h+x),("repeat-y"===_||"no-repeat"===_)&&(E=c+1,T=c+r.w+x),e.style.clip="rect("+C+"px,"+T+"px,"+w+"px,"+E+"px)")}})},addLinearGradient:function(e,n){var i,r,a,o,s,l,c,u,d,p,h=this.targetElement,m=this.boundsInfo.getBounds(),g=m.w,f=m.h,b=e.fill,v=n.stops,y=v.length,k=Math.PI,_=t.GradientUtil,C=_.perpendicularIntersect,E=_.distance,T=_.getGradientMetrics(h,g,f,n),w=T.angle,x=T.startX,S=T.startY,A=T.startCornerX,R=T.startCornerY,I=T.endCornerX,D=T.endCornerY,O=T.deltaX,L=T.deltaY,N=T.lineLength;for(i=w%90?180*(Math.atan2(O*g/f,L)/k):w+90,i+=180,i%=360,l=C(A,R,w,I,D),r=E(A,R,l[0],l[1]),a=[],l=C(x,S,w,A,R),s=100*(E(x,S,l[0],l[1])/r),o=[],c=0;y>c;c++)o.push(v[c].offset?v[c].offset.pixels(h,N):0===c?0:c===y-1?N:null);for(c=1;y>c;c++){if(null===o[c]){d=o[c-1],u=c;do p=o[++u];while(null===p);o[c]=d+(p-d)/(u-c+1)}o[c]=Math.max(o[c],o[c-1])
}for(c=0;y>c;c++)a.push(s+100*(o[c]/r)+"% "+v[c].color.colorValue(h));b.angle=i,b.type="gradient",b.method="sigma",b.color=v[0].color.colorValue(h),b.color2=v[y-1].color.colorValue(h),b.colors?b.colors.value=a.join(","):b.colors=a.join(",")},hideBackground:function(){var e=this.targetElement.runtimeStyle;e.backgroundImage="url(about:blank)",e.backgroundColor="transparent"},destroy:function(){t.RendererBase.destroy.call(this);var e=this.targetElement.runtimeStyle;e.backgroundImage=e.backgroundColor=""}}),t.BorderRenderer=t.RendererBase.newRenderer({boxZIndex:4,boxName:"border",needsUpdate:function(){var e=this.styleInfos;return e.borderInfo.changed()||e.borderRadiusInfo.changed()},isActive:function(){var e=this.styleInfos;return(e.borderRadiusInfo.isActive()||e.backgroundInfo.isActive())&&!e.borderImageInfo.isActive()&&e.borderInfo.isActive()},draw:function(){var e,t,n,i,r,a,o,s=this.targetElement,l=this.styleInfos.borderInfo.getProps(),c=this.boundsInfo.getBounds(),u=c.w,d=c.h;if(l){for(this.hideBorder(),i=this.getBorderSegments(2),a=0,o=i.length;o>a;a++)r=i[a],e=this.getShape("borderPiece"+a,r.stroke?"stroke":"fill",this.getBox()),e.coordsize=2*u+","+2*d,e.coordorigin="1,1",e.path=r.path,n=e.style,n.width=u,n.height=d,e.filled=!!r.fill,e.stroked=!!r.stroke,r.stroke?(t=e.stroke,t.weight=r.weight+"px",t.color=r.color.colorValue(s),t.dashstyle="dashed"===r.stroke?"2 2":"dotted"===r.stroke?"1 1":"solid",t.linestyle="double"===r.stroke&&r.weight>2?"ThinThin":"Single"):e.fill.color=r.fill.colorValue(s);for(;this.deleteShape("borderPiece"+a++););}},getBorderSegments:function(e){function t(e,t){return f?f[e][t]:0}function n(n,i,r,a,u,d){var p=t("x",n),h=t("y",n),m=65535,g="r"===n.charAt(1),f="b"===n.charAt(0);return p>0&&h>0?(d?"al":"ae")+(g?c(o-p):l(p))*e+","+(f?c(s-h):l(h))*e+","+(l(p)-i)*e+","+(l(h)-r)*e+","+a*m+","+45*m*(u?1:-1):(d?"m":"l")+(g?o-i:i)*e+","+(f?s-r:r)*e}function i(n,i,r,a){var u="t"===n?l(t("x","tl"))*e+","+c(i)*e:"r"===n?c(o-i)*e+","+l(t("y","tr"))*e:"b"===n?c(o-t("x","br"))*e+","+l(s-i)*e:l(i)*e+","+c(s-t("y","bl"))*e,d="t"===n?c(o-t("x","tr"))*e+","+c(i)*e:"r"===n?c(o-i)*e+","+c(s-t("y","br"))*e:"b"===n?l(t("x","bl"))*e+","+l(s-i)*e:l(i)*e+","+l(t("y","tl"))*e;return r?(a?"m"+d:"")+"l"+u:(a?"m"+u:"")+"l"+d}function r(e,t,r,a,o,s){var u,d,p,h,m="l"===e||"r"===e,g=T[e];g>0&&"none"!==v[e]&&y[e].alpha()>0&&(u=T[m?e:t],d=T[m?t:e],p=T[m?e:r],h=T[m?r:e],"dashed"===v[e]||"dotted"===v[e]?(C.push({path:n(a,u,d,s+45,0,1)+n(a,0,0,s,1,0),fill:y[e]}),C.push({path:i(e,g/2,0,1),stroke:v[e],weight:g,color:y[e]}),C.push({path:n(o,p,h,s,0,1)+n(o,0,0,s-45,1,0),fill:y[e]})):C.push({path:n(a,u,d,s+45,0,1)+i(e,g,0,0)+n(o,p,h,s,0,0)+("double"===v[e]&&g>2?n(o,p-l(p/3),h-l(h/3),s-45,1,0)+i(e,c(2*(g/3)),1,0)+n(a,u-l(u/3),d-l(d/3),s,1,0)+"x "+n(a,l(u/3),l(d/3),s+45,0,1)+i(e,l(g/3),1,0)+n(o,l(p/3),l(h/3),s,0,0):"")+n(o,0,0,s-45,1,0)+i(e,0,1,0)+n(a,0,0,s,1,0),fill:y[e]}))}var a,o,s,l,c,u,d,p,h,m,g,f,b,v,y,k=this.targetElement,_=this.styleInfos.borderInfo,C=[],E=Math.round;if(_.isActive())if(m=_.getProps(),b=m.widths,v=m.styles,y=m.colors,m.widthsSame&&m.stylesSame&&m.colorsSame)y.t.alpha()>0&&(u=b.t.pixels(k),d=u/2,C.push({path:this.getBoxPath({t:d,r:d,b:d,l:d},e),stroke:v.t,color:y.t,weight:u}));else{e=e||1,a=this.boundsInfo.getBounds(),o=a.w,s=a.h,u=E(b.t.pixels(k)),d=E(b.r.pixels(k)),p=E(b.b.pixels(k)),h=E(b.l.pixels(k));var T={t:u,r:d,b:p,l:h};g=this.styleInfos.borderRadiusInfo,g.isActive()&&(f=this.getRadiiPixels(g.getProps())),l=Math.floor,c=Math.ceil,r("t","l","r","tl","tr",90),r("r","t","b","tr","br",0),r("b","r","l","br","bl",-90),r("l","b","t","bl","tl",-180)}return C},destroy:function(){var e=this;(e.finalized||!e.styleInfos.borderImageInfo.isActive())&&(e.targetElement.runtimeStyle.borderColor=""),t.RendererBase.destroy.call(e)}}),t.BorderImageRenderer=t.RendererBase.newRenderer({boxZIndex:5,pieceNames:["t","tr","r","br","b","bl","l","tl","c"],needsUpdate:function(){return this.styleInfos.borderImageInfo.changed()},isActive:function(){return this.styleInfos.borderImageInfo.isActive()},draw:function(){this.getBox();var e=this.styleInfos.borderImageInfo.getProps(),n=this.styleInfos.borderInfo.getProps(),i=this.boundsInfo.getBounds(),r=this.targetElement,a=this.pieces;t.Util.withImageSize(e.src,function(o){function s(e,t,n,i,r){var o=a[e].style,s=Math.max;o.width=s(t,0),o.height=s(n,0),o.left=i,o.top=r}function l(e,t,n){for(var i=0,r=e.length;r>i;i++)a[e[i]].imagedata[t]=n}var c=i.w,u=i.h,d=t.getLength("0"),p=e.widths||(n?n.widths:{t:d,r:d,b:d,l:d}),h=p.t.pixels(r),m=p.r.pixels(r),g=p.b.pixels(r),f=p.l.pixels(r),b=e.slice,v=b.t.pixels(r),y=b.r.pixels(r),k=b.b.pixels(r),_=b.l.pixels(r);s("tl",f,h,0,0),s("t",c-f-m,h,f,0),s("tr",m,h,c-m,0),s("r",m,u-h-g,c-m,h),s("br",m,g,c-m,u-g),s("b",c-f-m,g,f,u-g),s("bl",f,g,0,u-g),s("l",f,u-h-g,0,h),s("c",c-f-m,u-h-g,f,h),l(["tl","t","tr"],"cropBottom",(o.h-v)/o.h),l(["tl","l","bl"],"cropRight",(o.w-_)/o.w),l(["bl","b","br"],"cropTop",(o.h-k)/o.h),l(["tr","r","br"],"cropLeft",(o.w-y)/o.w),l(["l","r","c"],"cropTop",v/o.h),l(["l","r","c"],"cropBottom",k/o.h),l(["t","b","c"],"cropLeft",_/o.w),l(["t","b","c"],"cropRight",y/o.w),a.c.style.display=e.fill?"":"none"},this)},getBox:function(){var n,i,r,a=this.parent.getLayer(this.boxZIndex),o=this.pieceNames,s=o.length;if(!a){for(a=e.createElement("border-image"),n=a.style,n.position="absolute",this.pieces={},r=0;s>r;r++)i=this.pieces[o[r]]=t.Util.createVmlElement("rect"),i.appendChild(t.Util.createVmlElement("imagedata")),n=i.style,n.behavior="url(#default#VML)",n.position="absolute",n.top=n.left=0,i.imagedata.src=this.styleInfos.borderImageInfo.getProps().src,i.stroked=!1,i.filled=!1,a.appendChild(i);this.parent.addLayer(this.boxZIndex,a)}return a},prepareUpdate:function(){if(this.isActive()){var e=this,t=e.targetElement,n=t.runtimeStyle,i=e.styleInfos.borderImageInfo.getProps().widths;n.borderStyle="solid",i&&(n.borderTopWidth=i.t.pixels(t)+"px",n.borderRightWidth=i.r.pixels(t)+"px",n.borderBottomWidth=i.b.pixels(t)+"px",n.borderLeftWidth=i.l.pixels(t)+"px"),e.hideBorder()}},destroy:function(){var e=this,n=e.targetElement.runtimeStyle;n.borderStyle="",(e.finalized||!e.styleInfos.borderInfo.isActive())&&(n.borderColor=n.borderWidth=""),t.RendererBase.destroy.call(this)}}),t.BoxShadowOutsetRenderer=t.RendererBase.newRenderer({boxZIndex:1,boxName:"outset-box-shadow",needsUpdate:function(){var e=this.styleInfos;return e.boxShadowInfo.changed()||e.borderRadiusInfo.changed()},isActive:function(){var e=this.styleInfos.boxShadowInfo;return e.isActive()&&e.getProps().outset[0]},draw:function(){function e(e,t,n,i,r,a,o){var l=C.getShape("shadow"+e+t,"fill",T,A-e),c=l.fill;return l.coordsize=2*D+","+2*O,l.coordorigin="1,1",l.stroked=!1,l.filled=!0,c.color=r.colorValue(E),a&&(c.type="gradienttitle",c.color2=c.color,c.opacity=0),l.path=o,s=l.style,s.left=n,s.top=i,s.width=D,s.height=O,l}for(var n,i,r,a,o,s,l,c,u,d,p,h,m,g,f,b,v,y,k,_,C=this,E=this.targetElement,T=this.getBox(),w=this.styleInfos,x=w.boxShadowInfo.getProps().outset,S=w.borderRadiusInfo.getProps(),A=x.length,R=A,I=this.boundsInfo.getBounds(),D=I.w,O=I.h,L=8===t.ieVersion?1:0,N=["tl","tr","br","bl"];R--;)if(r=x[R],l=r.xOffset.pixels(E),c=r.yOffset.pixels(E),u=r.spread.pixels(E),d=r.blur.pixels(E),h=r.color,p=-u-d,!S&&d&&(S=t.BorderRadiusStyleInfo.ALL_ZERO),g=this.getBoxPath({t:p,r:p,b:p,l:p},2,S),d)if(f=2*(u+d)+D,b=2*(u+d)+O,v=2*d/f,y=2*d/b,d-u>D/2||d-u>O/2)for(n=4;n--;)i=N[n],k="b"===i.charAt(0),_="r"===i.charAt(1),a=e(R,i,l,c,h,d,g),o=a.fill,o.focusposition=(_?1-v:v)+","+(k?1-y:y),o.focussize="0,0",a.style.clip="rect("+((k?b/2:0)+L)+"px,"+(_?f:f/2)+"px,"+(k?b:b/2)+"px,"+((_?f/2:0)+L)+"px)";else a=e(R,"",l,c,h,d,g),o=a.fill,o.focusposition=v+","+y,o.focussize=1-2*v+","+(1-2*y);else a=e(R,"",l,c,h,d,g),m=h.alpha(),1>m&&(a.fill.opacity=m)}}),t.ImgRenderer=t.RendererBase.newRenderer({boxZIndex:6,boxName:"imgEl",needsUpdate:function(){var e=this.styleInfos;return this.targetElement.src!==this._lastSrc||e.borderRadiusInfo.changed()},isActive:function(){var e=this.styleInfos;return e.borderRadiusInfo.isActive()||e.backgroundInfo.isPngFix()},draw:function(){this._lastSrc=d,this.hideActualImg();var e,n,i=this.getShape("img","fill",this.getBox()),r=i.fill,a=this.boundsInfo.getBounds(),o=a.w,s=a.h,l=this.styleInfos.borderInfo.getProps(),c=l&&l.widths,u=this.targetElement,d=u.src,p=Math.round,h=u.currentStyle,m=t.getLength;(!c||7>t.ieVersion)&&(n=t.getLength("0"),c={t:n,r:n,b:n,l:n}),i.stroked=!1,r.type="frame",r.src=d,r.position=(o?.5/o:0)+","+(s?.5/s:0),i.coordsize=2*o+","+2*s,i.coordorigin="1,1",i.path=this.getBoxPath({t:p(c.t.pixels(u)+m(h.paddingTop).pixels(u)),r:p(c.r.pixels(u)+m(h.paddingRight).pixels(u)),b:p(c.b.pixels(u)+m(h.paddingBottom).pixels(u)),l:p(c.l.pixels(u)+m(h.paddingLeft).pixels(u))},2),e=i.style,e.width=o,e.height=s},hideActualImg:function(){this.targetElement.runtimeStyle.filter="alpha(opacity=0)"},destroy:function(){t.RendererBase.destroy.call(this),this.targetElement.runtimeStyle.filter=""}}),t.IE9RootRenderer=t.RendererBase.newRenderer({updatePos:t.emptyFn,updateSize:t.emptyFn,updateVisibility:t.emptyFn,updateProps:t.emptyFn,outerCommasRE:/^,+|,+$/g,innerCommasRE:/,+/g,setBackgroundLayer:function(e,t){var n,i=this,r=i._bgLayers||(i._bgLayers=[]);r[e]=t||n},finishUpdate:function(){var e,t=this,n=t._bgLayers;n&&(e=n.join(",").replace(t.outerCommasRE,"").replace(t.innerCommasRE,","))!==t._lastBg&&(t._lastBg=t.targetElement.runtimeStyle.background=e)},destroy:function(){this.targetElement.runtimeStyle.background="",delete this._bgLayers}}),t.IE9BackgroundRenderer=t.RendererBase.newRenderer({bgLayerZIndex:1,needsUpdate:function(){var e=this.styleInfos;return e.backgroundInfo.changed()},isActive:function(){var e=this.styleInfos;return e.backgroundInfo.isActive()||e.borderImageInfo.isActive()},draw:function(){var e,n,i,r,a,o=this,s=o.styleInfos.backgroundInfo.getProps(),l=0;if(s){if(e=[],n=s.bgImages)for(;i=n[l++];)"linear-gradient"===i.imgType?(r=o.getBgAreaSize(i.bgOrigin),a=(i.bgSize||t.BgSize.DEFAULT).pixels(o.targetElement,r.w,r.h,r.w,r.h),e.push("url(data:image/svg+xml,"+escape(o.getGradientSvg(i,a.w,a.h))+") "+o.bgPositionToString(i.bgPosition)+" / "+a.w+"px "+a.h+"px "+(i.bgAttachment||"")+" "+(i.bgOrigin||"")+" "+(i.bgClip||""))):e.push(i.origString);s.color&&e.push(s.color.val),o.parent.setBackgroundLayer(o.bgLayerZIndex,e.join(","))}},bgPositionToString:function(e){return e?e.tokens.map(function(e){return e.tokenValue}).join(" "):"0 0"},getBgAreaSize:function(e){var n,i,r,a=this,o=a.targetElement,s=a.boundsInfo.getBounds(),l=s.w,c=s.h,u=l,d=c;return"border-box"!==e&&(n=a.styleInfos.borderInfo.getProps(),n&&(n=n.widths)&&(u-=n.l.pixels(o)+n.l.pixels(o),d-=n.t.pixels(o)+n.b.pixels(o))),"content-box"===e&&(i=t.getLength,r=o.currentStyle,u-=i(r.paddingLeft).pixels(o)+i(r.paddingRight).pixels(o),d-=i(r.paddingTop).pixels(o)+i(r.paddingBottom).pixels(o)),{w:u,h:d}},getGradientSvg:function(e,n,i){var r,a,o,s,l,c,u=this.targetElement,d=e.stops,p=d.length,h=t.GradientUtil.getGradientMetrics(u,n,i,e),m=h.startX,g=h.startY,f=h.endX,b=h.endY,v=h.lineLength;for(r=[],a=0;p>a;a++)r.push(d[a].offset?d[a].offset.pixels(u,v):0===a?0:a===p-1?v:null);for(a=1;p>a;a++)if(null===r[a]){s=r[a-1],o=a;do l=r[++o];while(null===l);r[a]=s+(l-s)/(o-a+1)}for(c=[''),c.join("")},destroy:function(){this.parent.setBackgroundLayer(this.bgLayerZIndex)}}),t.IE9BorderImageRenderer=t.RendererBase.newRenderer({REPEAT:"repeat",STRETCH:"stretch",ROUND:"round",bgLayerZIndex:0,needsUpdate:function(){return this.styleInfos.borderImageInfo.changed()},isActive:function(){return this.styleInfos.borderImageInfo.isActive()},draw:function(){var e=this,n=e.styleInfos.borderImageInfo.getProps(),i=e.styleInfos.borderInfo.getProps(),r=e.boundsInfo.getBounds(),a=n.repeat,o=a.h,s=a.v,l=e.targetElement,c=0;t.Util.withImageSize(n.src,function(a){function u(e,t,n,i,r,a,l,c,u,d){K.push(''+'"+""),$.push(''),j++}var d,p=r.w,h=r.h,m=a.w,g=a.h,f=e.imageToDataURI(n.src,m,g),b=e.REPEAT,v=e.STRETCH,y=e.ROUND,k=Math.ceil,_=t.getLength("0"),C=n.widths||(i?i.widths:{t:_,r:_,b:_,l:_}),E=C.t.pixels(l),T=C.r.pixels(l),w=C.b.pixels(l),x=C.l.pixels(l),S=n.slice,A=S.t.pixels(l),R=S.r.pixels(l),I=S.b.pixels(l),D=S.l.pixels(l),O=p-x-T,L=h-E-w,N=m-D-R,F=g-A-I,B=o===v?O:N*E/A,P=s===v?L:F*T/R,M=o===v?O:N*w/I,z=s===v?L:F*x/D,K=[],$=[],j=0;o===y&&(B-=(B-(O%B||B))/k(O/B),M-=(M-(O%M||M))/k(O/M)),s===y&&(P-=(P-(L%P||P))/k(L/P),z-=(z-(L%z||z))/k(L/z)),d=['"),e.parent.setBackgroundLayer(e.bgLayerZIndex,"url(data:image/svg+xml,"+escape(d.join(""))+") no-repeat border-box border-box"),c&&e.parent.finishUpdate()},e),c=1},imageToDataURI:function(){var t={};return function(n,i,r){var a,o,s=t[n];return s||(a=new Image,o=e.createElement("canvas"),a.src=n,o.width=i,o.height=r,o.getContext("2d").drawImage(a,0,0),s=t[n]=o.toDataURL()),s}}(),prepareUpdate:t.BorderImageRenderer.prototype.prepareUpdate,destroy:function(){var e=this,t=e.targetElement.runtimeStyle;e.parent.setBackgroundLayer(e.bgLayerZIndex),t.borderColor=t.borderStyle=t.borderWidth=""}}),t.Element=function(){function n(e,t){e.className+=" "+t}function i(e,t){var n=g[t]||(g[t]=RegExp("\\b"+t+"\\b","g"));e.className=e.className.replace(n,"")}function r(e){var t=f.slice.call(arguments,1),i=t.length;setTimeout(function(){for(;i--;)n(e,t[i])},0)}function a(e){var t=f.slice.call(arguments,1),n=t.length;setTimeout(function(){for(;n--;)i(e,t[n])},0)}function o(i){function o(){if(!B){var n,r,a,u=t.ieDocMode,d=i.currentStyle,p="true"===d.getAttribute(l);K=d.getAttribute(c),K=u>7?"false"!==K:"true"===K,F||(F=1,i.runtimeStyle.zoom=1,I()),$.lock(),p&&(r=$.getBounds())&&(n=e.documentElement||e.body)&&(r.y>n.clientHeight||r.x>n.clientWidth||0>r.y+r.h||0>r.x+r.w)?M||(M=1,t.OnScroll.observe(o)):(B=1,M=F=0,t.OnScroll.unobserve(o),9===u?(L={backgroundInfo:new t.BackgroundStyleInfo(i),borderImageInfo:new t.BorderImageStyleInfo(i),borderInfo:new t.BorderStyleInfo(i)},N=[L.backgroundInfo,L.borderImageInfo],O=new t.IE9RootRenderer(i,$,L),a=[new t.IE9BackgroundRenderer(i,$,L,O),new t.IE9BorderImageRenderer(i,$,L,O)]):(L={backgroundInfo:new t.BackgroundStyleInfo(i),borderInfo:new t.BorderStyleInfo(i),borderImageInfo:new t.BorderImageStyleInfo(i),borderRadiusInfo:new t.BorderRadiusStyleInfo(i),boxShadowInfo:new t.BoxShadowStyleInfo(i),visibilityInfo:new t.VisibilityStyleInfo(i)},N=[L.backgroundInfo,L.borderInfo,L.borderImageInfo,L.borderRadiusInfo,L.boxShadowInfo,L.visibilityInfo],O=new t.RootRenderer(i,$,L),a=[new t.BoxShadowOutsetRenderer(i,$,L,O),new t.BackgroundRenderer(i,$,L,O),new t.BorderRenderer(i,$,L,O),new t.BorderImageRenderer(i,$,L,O)],"IMG"===i.tagName&&a.push(new t.ImgRenderer(i,$,L,O)),O.childRenderers=a),D=[O].concat(a),R(),K&&(t.Heartbeat.observe(g),t.Heartbeat.run()),g(1)),P||(P=1,9>u&&x(i,"onmove",s),x(i,"onresize",s),x(i,"onpropertychange",f),x(i,"onmouseenter",b),x(i,"onmouseleave",v),x(i,"onmousedown",y),i.tagName in t.focusableElements&&(x(i,"onfocus",_),x(i,"onblur",C)),t.OnResize.observe(s),t.OnUnload.observe(S)),$.unlock()}}function s(){$&&$.hasBeenQueried()&&g()}function g(e){if(!z)if(B){var t,n=D.length;for(T(),t=0;n>t;t++)D[t].prepareUpdate();if(e||$.positionChanged())for(t=0;n>t;t++)D[t].updatePos();if(e||$.sizeChanged())for(t=0;n>t;t++)D[t].updateSize();O.finishUpdate(),w()}else F||o()}function f(){var e,t,n=D.length,i=event;if(!(z||i&&i.propertyName in m))if(B){for(T(),e=0;n>e;e++)D[e].prepareUpdate();for(e=0;n>e;e++)t=D[e],t.isPositioned||t.updatePos(),t.needsUpdate()&&t.updateProps();O.finishUpdate(),w()}else F||o()}function b(){r(i,u)}function v(){a(i,u,d)}function y(){r(i,d),t.OnMouseup.observe(k)}function k(){a(i,d),t.OnMouseup.unobserve(k)}function _(){r(i,p)}function C(){a(i,p)}function E(){var e=event.propertyName;("className"===e||"id"===e)&&f()}function T(){$.lock();for(var e=N.length;e--;)N[e].lock()}function w(){for(var e=N.length;e--;)N[e].unlock();$.unlock()}function x(e,t,n){e.attachEvent(t,n),j.push([e,t,n])}function S(){if(P){for(var e,n=j.length;n--;)e=j[n],e[0].detachEvent(e[1],e[2]);t.OnUnload.unobserve(S),P=0,j=[]}}function A(){if(!z){var e,n;if(S(),z=1,D)for(e=0,n=D.length;n>e;e++)D[e].finalized=1,D[e].destroy();K&&t.Heartbeat.unobserve(g),t.OnResize.unobserve(g),D=$=L=N=i=null}}function R(){var e,n,r=i.currentStyle.getAttribute(t.CSS_PREFIX+"watch-ancestors");if(r)for(r=parseInt(r,10),e=0,n=i.parentNode;n&&("NaN"===r||r>e++);)x(n,"onpropertychange",E),x(n,"onmouseenter",b),x(n,"onmouseleave",v),x(n,"onmousedown",y),n.tagName in t.focusableElements&&(x(n,"onfocus",_),x(n,"onblur",C)),n=n.parentNode}function I(){for(var e=i,t=1;e=e.previousSibling;)if(1===e.nodeType){t=0;break}t&&n(i,h)}var D,O,L,N,F,B,P,M,z,K,$=new t.BoundsInfo(i),j=[];this.init=o,this.update=g,this.destroy=A,this.el=i}var s={},l=t.CSS_PREFIX+"lazy-init",c=t.CSS_PREFIX+"poll",u=t.CLASS_PREFIX+"hover",d=t.CLASS_PREFIX+"active",p=t.CLASS_PREFIX+"focus",h=t.CLASS_PREFIX+"first-child",m={background:1,bgColor:1,display:1},g={},f=[];return o.getInstance=function(e){var n=t.Util.getUID(e);return s[n]||(s[n]=new o(e))},o.destroy=function(e){var n=t.Util.getUID(e),i=s[n];i&&(i.destroy(),delete s[n])},o.destroyAll=function(){var e,t=[];if(s){for(var n in s)s.hasOwnProperty(n)&&(e=s[n],t.push(e.el),e.destroy());s={}}return t},o}(),t.supportsVML=t.supportsVML,t.attach=function(e){10>t.ieDocMode&&t.supportsVML&&t.Element.getInstance(e).init()},t.detach=function(e){t.Element.destroy(e)}}})();