-
Notifications
You must be signed in to change notification settings - Fork 0
/
as2shim-0.1.min.js
238 lines (238 loc) · 116 KB
/
as2shim-0.1.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
/**
* as2shim is (C) 2013 pixelplant GmbH
*
* No permission or right to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software is granted.
* All rights reserved to the copyright holders.
*/
(function(){var Y,J,G,ja,ka,Z,y,ya,za,D,K,Aa,Ba,la,Ca,N,F,O,Da,Ea,k,o,ma,$,Fa,na,oa,Ga,Ha,Ia,Ja,Ka,La,pa,Ma,aa,Na,Oa,Pa,Qa,Ra,r,Sa,A,ba,Ta,Ua,ca,P,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,Q,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,B,L,Lb,Mb,Nb,Ob,Pb,Qb,qa,ra,Rb,R,S,da,Sb,Tb,T,Ub,H,M,Vb,Wb,Xb,Yb,Zb,$b,ea,ac,U,V,va,ga,wa,xa,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc,lc,mc,I,nc,oc,pc,W,X,qc,rc,sc,tc;Y={};J=function(c){c.flash=null;c.mx=null;c._root=null;return c}(Y);
G=J.flash={};ja=J.mx={};ka=ja.lang={};Z=function(){return{stage:null,trace:function(){"undefined"!=typeof console&&console.log.apply(console,arguments)}}}();y=bonsai;ya=G.display={};za=G.external={};D=G.filters={};K=G.geom={};Aa=G.net={};Ba=G.text={};la=function(c){var a=c.Group,b=c.tools,c=function(){a.call(this);this.childrenWrapper=(new a).addTo(this);this.eventArea=(new a).attr({opacity:0,cursor:"pointer"}).addTo(this);this.stateChildren={normal:new a,hover:new a,active:new a};this.setupConnections();
this.childrenWrapper.addChild(this.stateChildren.normal)};c.prototype=b.mixin(Object.create(a.prototype),{childrenWrapper:null,eventArea:null,stateChildren:null,isMouseDown:!1,isMouseOver:!1,type:"Group",addActiveStateChild:function(a,b){this.addStateChild(a,"active",b)},addEventAreaChild:function(a,b){this.eventArea.addChild(a,b)},addHoverStateChild:function(a,b){this.addStateChild(a,"hover",b)},addNormalStateChild:function(a,b){this.addStateChild(a,"normal",b)},addStateChild:function(a,b,c){this.stateChildren[b].addChild(a,
c)},displayState:function(a){var b=this.childrenWrapper.children();b.length&&b[0].stop&&b[0].stop();b=this.stateChildren[a].children();b.length?(this.childrenWrapper.clear().addChild(this.stateChildren[a]),b[0].play&&b[0].play(0)):"normal"===a&&this.childrenWrapper.clear()},onMouseDown:function(){this.isMouseDown=!0;this.displayState("active")},onMouseUp:function(){this.isMouseDown=!1;this.displayState(this.isMouseOver?"hover":"normal")},onMouseOver:function(){this.isMouseOver=!0;var a="hover";this.isMouseDown&&
(a="active");this.displayState(a)},onMouseOut:function(){this.isMouseOver=!1;var a="normal";this.isMouseDown&&(a="hover");this.displayState(a)},setupConnections:function(){this.eventArea.on("mouseover",b.hitch(this,"onMouseOver"));this.eventArea.on("mouseout",b.hitch(this,"onMouseOut"));this.eventArea.on("pointerdown",b.hitch(this,"onMouseDown"));this.eventArea.on("pointerup",b.hitch(this,"onMouseUp"))}});return c}(y);Ca=function(){function c(a){" "===a&&(a=".");return a}if("undefined"!=typeof document&&
document.createElement){var a=document.createElement("span");a.style.position="absolute";a.style.padding="0px";a.style.whiteSpace="nowrap";document.body.appendChild(a)}return{getTextHeight:function(b,d){var e=d.size;a.style.fontFamily=d.font;a.style.fontSize=e;a.innerText=c(b);return parseFloat(document.defaultView.getComputedStyle(a,null).height)},getTextWidth:function(b,d){var e=d.size;a.style.fontFamily=d.font;a.style.fontSize=e;a.innerText=c(b);return parseFloat(document.defaultView.getComputedStyle(a,
null).width)}}}();N=function(){var c={1074:"Error #1074",1077:"Error #1077",2006:"Error #2006",2032:"Stream Error. URL: {{url}}",2098:"The loading object is not a .swf file, you cannot request SWF properties from it.",2099:"The loading object is not sufficiently loaded to provide this information.",2012:"Error #2012",2024:"Error #2024",2134:"Error #2134"};return{getById:function(a){return c[a]},renderWithPlaceholders:function(a,b){var d=c[a],e;for(e in b)d=d.replace("{{"+e+"}}",b[e]);return d}}}();
F=Function("return this")();O=function(c){var a=c.stage.options,a=a.as3shimConfig=a.as3shimConfig||{},a={debug:{logCalls:!1,logUnspyables:!1},warnAbout:{missingImplementation:a.showWarnings||!1,notAvailableApis:!1},stats:{warnAbout:{missingClass:a.showWarnings||!1}}};return c.stage.as3shimConfig=a}(y);Da=function(c){return{getLoadableFileUrl:function(a){var b="",d=c.stage.options;"flashConfig"in d&&"__rootMovie__"in d.flashConfig&&(b=c.stage.options.flashConfig.__rootMovie__.loadableFileMap[a]);return b||
a}}}(y);Ea=function(c){var a={};return{getFileAndLine:function(){var a=Error().stack,d=a&&a.split("\n");if(d)for(var c=0;c<d.length;c++){var f=d[c];if(/movie\.js:\d+:\d+/.test(f))return f}return"... oh dear, movie.js not found in trace. Complete trace:\n"+a},createFunctionSpy:function(a,d,c){var f=this;return function(a,b,d){return function(c){f.logFunctionCall(b,d,[].slice.call(arguments,0));return a.apply(this,arguments)}}(a[d],c||""+a,d)},isSpyableOwnFunction:function(a,d){return a.hasOwnProperty!=
Object.hasOwnProperty||!a.hasOwnProperty(d)||"toString"==d||a.__lookupGetter__(d)?!1:"function"==typeof a[d]},isSpyableOwnAccessor:function(a,d){return!!Object.getOwnPropertyDescriptor(a,d)&&!!a.__lookupGetter__(d)},_logFunctionCall:function(a,d,c){c=c.map(function(a){return"function"==typeof a?"Function with "+(""+a).split("\n").length+" lines":"object"==typeof a?""+a:a});c=JSON.stringify(c);c=c.substring(1,c.length-1);console.log("SHIM call:",a+"."+d+"("+c+")")},_logEvents:function(a,d,c){console.log("SHIMS: 1000 `dispatchEvent` in "+
c+"s of",d,a)},logFunctionCall:function(b,d,c){"dispatchEvent"==d?(d=c[0],a[d]?a[d].count++:a[d]={count:1,lastReset:+new Date},1E3<a[d].count&&(c=this._getElapsedTime(a[d].lastReset),this._logEvents(b,d,c),a[d]={count:1,lastReset:+new Date})):this._logFunctionCall(b,d,c)},_getElapsedTime:function(a){return((+new Date-a)/1E3).toFixed(2)},logGetterCall:function(a,d,c){console.log("SHIM call: GET",a,d,""+c)},logSetterCall:function(a,c,e,f){console.log("SHIM call: SET",a,c,""+e,""+f)},spyOnFunction:function(a,
c,e){a[c]=this.createFunctionSpy(a,c,e)},spyOnOwnAccessor:function(a,d,e){var f=Object.getOwnPropertyDescriptor(a,d),g=this;if(f.configurable){var i=f.get;f.get=function(){var a=i.apply(this);g.logGetterCall(e,d,a);return a};var j=f.set;f.set=function(a){g.logSetterCall(e,d,i.apply(this),a);j.apply(this,[a])}}else c.debug.logUnspyables&&console.log('Can not spy on accessor "'+e+"."+d+'", because configurable=false.');Object.defineProperty(a,d,f)},spyOnClass:function(a,c){this.spyOnObject(a,c);this.spyOnObject(a.prototype,
c+".prototype")},spyOnObject:function(a,c){for(var e in a)this.isSpyableOwnFunction(a,e)?this.spyOnFunction(a,e,c):this.isSpyableOwnAccessor(a,e)&&this.spyOnOwnAccessor(a,e,c)},spyOnAllClassInNamespace:function(a,c){for(var e in a){var f=a[e],g=f.prototype.__isNamespace__;f.__isNamespace__?this.spyOnAllClassInNamespace(f,c+"."+e):f.__isClass__&&!g&&this.spyOnClass(f,c+"."+f)}}}}(O);k=function(c,a,b,d,e,f){function g(a){for(var b,c=[1,10,100],d=0,e=c.length;d<e;d++)if(b=k(a*c[d])%1,1.0E-5>b||0.99999<
b)return ha(a*c[d])/c[d];return a}function i(){}function j(a,b,c){c||(c={});p(a,b,o.mixin({get:i,set:i},c))}function m(a,b,c){3>arguments.length&&(c=b);p(a,l(b),{configurable:!1,enumerable:!1,writable:!1,value:c})}function p(a,b,c){c||(c={});var d={configurable:!0,enumerable:!0,writable:!0};"configurable"in c&&(d.configurable=c.configurable);"enumerable"in c&&(d.enumerable=c.enumerable);c.get||c.set?("get"in c&&(d.get=c.get),"set"in c&&(d.set=c.set),delete d.value,delete d.writable):(delete d.get,
delete d.set,d.value=c.value,"writable"in c&&(d.writable=c.writable));Object.defineProperty(a,b,d)}function s(a){return"__"+a+"__"}function h(a,b,c){p(a,s(b),{enumerable:!1,value:c})}function l(a){z.lastIndex=0;return(a.match(z)||[]).join("_").toUpperCase()}var u=c.tools,n=e.document,q={},t={}.hasOwnProperty,z=/[a-z]+[a-z\d]*(?!\d[A-Z])|[A-Z][a-z]+|[A-Z\d]+(?![a-z])/g,v=[].slice,C=Math.PI,k=Math.abs,ha=Math.round,E="bonsai"+(c.version+Math.random()).replace(/\D/g,""),o=u.mixin(u.beget(u),{addConstantsToClass:function(a){o.forEach(a,
function(a){var b=a.shift();o.forEach(a,function(a){"string"===typeof a&&(a=[a]);a.unshift(b);m.apply(null,a)})})},createDummyFunction:function(c){var d="void";if(c===Object(c))var f=c,c=f.name,d=f.returnType||d;var m="Missing implementation for"+(c?" "+c:"")+", is dummy currently.",p=function(){q[c]||(q[c]=!0,a.warnAbout.missingImplementation&&console.warn(m,"called by "+b.getFileAndLine()));if(f&&"returnValue"in f)return f.returnValue;var p={array:[],"boolean":!1,"int":0,number:0,string:"","null":null,
"void":void 0},n=d.toLowerCase();return n in p?p[n]:Function("exposes","try { return new exposes."+d+"} catch (e) {}")(e.exports.asGlobal)};h(p,"isDummy",!0);return p},createUnimplementedFunction:function(b){var c="Unimplemented: "+(b?" "+b:"");return function(){if(!q[b])return q[b]=!0,a.warnAbout.missingImplementation&&console.warn(c),new Boolean(!1)}},connectOnDemand:function(a,b,c,d){"onDemandConnects"in b||(b.onDemandConnects={});b.onDemandConnects[a]={connectFunc:c,disconnectFunc:d,connected:!1}},
connectEventListener:function(a,b){var c=b.onDemandConnects;c&&a in c&&!c[a].connected&&(c[a].connectFunc(),c[a].connected=!0)},degToRad:function(a){return g(a*(C/180))},detachNode:function(a){return a.parentNode.removeChild(a)},disconnectEventListener:function(a,b){var c=b.onDemandConnects;c&&a in c&&(c[a].disconnectFunc(),c[a].connected=!1)},dispatchEventWithoutBubbling:function(a,b){a[E].eventDispatcher.emit(b.type,b)},escapeAttributeValue:function(a){return(a+"").replace(/&/g,"&").replace(/</g,
"<").replace(/"/g,""").replace(/\n/g,"
").replace(/\r/g,"
").replace(/\t/g,"	")},every:function(a,b,c){var d=-1,e=a.length;for(c&&(b=o.hitch(c,b));++d<e;)if(!b(a[d],d,a))return!1;return!0},expando:E,fixRoundingError:g,flashToBonsaiBlur:function(a,b){return(a+b)/7.5},forEachSnapshot:function(a,b){for(var c=0,d=(a||{}).snapshotLength;c<d&&!1!==b(a.snapshotItem(c),c,a);c++);return a},getClassNameByClass:function(a,b){var c=a.displayName||a.name;a.__qualifiedName__&&(c=a.__qualifiedName__.split(".").pop());
return c||b},getDescriptor:function(a,b){return Object.getOwnPropertyDescriptor(a,b)},getFlashConfig:function(){return f},getPrivateObjectOf:function(a,b){var c=o.expando;c in a||(a[c]={attrs:{}});c=a[c];if(b)for(var d in b)d in c||(c[d]=b[d]);return c},hasKey:function(a,b){return null!=a&&t.call(a,b)},noop:i,radToDeg:function(a){return g(a*(180/C))},createAndRunMovieFromClass:function(a){var b=(new c.Movie).addTo(c.stage),d=Object.create(a.prototype),e=o.getPrivateObjectOf(d);e.raw=b;e.isRootMovie=
!0;a.call(d);return d},setAccessor:j,setConst:m,setConsts:function(a,b){o.forEach(b,function(b){o.setConst(a,b[0],b[1])})},setDescriptor:p,setImmutable:function(a,b,c){var d={configurable:!1,writable:!1};3>arguments.length?("get"in b?d.get=b.get:"value"in b&&(d.value=b.value),b=b.name):d.value=c;p(a,b,d)},setMovieClipInteractiveState:function(a,b){a.graphics&&a.graphics[E].raw.attr("interactive",b);var c=a[E].children,d=!1;if(c&&c.length)for(var e=0;e<c.length;e++){var f=c[e];"mouseEnabled"in f?d=
!0:d?f[E].raw.attr("interactive",!1):f[E].raw.attr("interactive",b)}},setPseudoPrivate:h,setReadOnly:function(a,b,c){j(a,b,{get:c,set:function(){throw new ReferenceError(d.getById(1074));}})},some:function(a,b,c){var d=-1,e=a.length;for(c&&(b=o.hitch(c,b));++d<e;)if(b(a[d],d,a))return!0;return!1},toArray:function(a,b,c){return v.call(a,b||0,c||a.length)},toCamelCase:function(a){z.lastIndex=0;return a.replace(z,function(a,b){return b?a.charAt().toUpperCase()+a.slice(1):a.toLowerCase()})},toConstCase:l,
toPseudoPrivateName:s,toRGBA:function(a){return 256*a+255},timestampAs3Started:+new Date,xQuery:function(a,b,c){var d=n;b||(b=n);b&&(b[E]&&(b=b[E].raw),d=b.ownerDocument||b);return d.evaluate(a,b,null,null==c?6:c,null)}});return o}(y,O,Ea,N,F,Da);o=function(c){function a(a){return s.apply(p,a)}function b(a){a=(a=a.constructor)&&a[h];return!!(a&&-1!==a.indexOf(this))}function d(b,c){c&&(c=a(m(c,function(a){var b=a[h];return b?b.concat(a):[a]})));return b?c?s.apply(b,c):b.slice():c||null}function e(a){var f,
m={};"function"===typeof a?f=a:(m=a||m,f=m.superClass||e);var a=i(m,"constructor")?m.constructor:f===e?function(){}:function(){f.apply(this,arguments)},q=a.prototype;if(f){var p=f.prototype;Object.getOwnPropertyDescriptor(a,"prototype").writable&&(a.prototype=c.beget(p));q=a.prototype;g(a,"super",p)}i(m,"qualifiedName")&&g(a,"qualifiedName",m.qualifiedName);var j;(p=m.isInterface)?(g(a,"is",b),f!==e&&(j=f[h]||[],j=j.concat(f)),delete m.isInterface):j=d(f[h],m.interfaces);q.constructor===a?delete m.constructor:
m.constructor=a;delete m.superClass;var s=q.__proto__;q.__proto__=Object.prototype;for(var C in m)"function"==typeof m[C]&&"constructor"!=C&&g(m[C],"isMethod",!0);c.mixin(q,m);q.__proto__=s;j&&(g(a,"interfaces",j),p||j.forEach(function(a){Object.getOwnPropertyNames(a.prototype).forEach(function(a){a!=="constructor"&&a!=="qualifiedName"&&(q[a]=q[a.split("\u03bb").pop()])})}));g(a,"isClass",!0);a.__proto__=e.prototype;return a}var f=c.setDescriptor,g=c.setPseudoPrivate,i=c.hasKey,j=c.toPseudoPrivateName,
m=c.map,p=Array.prototype,s=p.concat,h=j("interfaces");e.prototype=new Function;f(e.prototype,"constructor",{enumerable:!1,value:e});f(e.prototype,"toString",{enumerable:!1,value:function(){return{}.toString.call(this)}});g(e,"isBuiltIn",!0);g(e,"isClass",!0);return e}(k);ma=function(c){return{createPropertyMappings:function(a,b){a.forEach(function(a){var e=a[1],f=3==a.length;c.setAccessor(b,a[0],{get:function(){return f?a[2].as3ToAs2(this[e]):this[e]},set:function(b){this[e]=f?a[2].as2ToAs3(b):b}})})},
hundredToOne:function(a){return a/100},oneToHundred:function(a){return 100*a}}}(k);$=function(c){var a=function(){};a.prototype=Object.create(Object.prototype);c.setDescriptor(a.prototype,"addProperty",{enumerable:!1,value:function(a,c,e){Object.defineProperty(this,a,{get:c,set:e})}});return a}(k);Fa=function(c,a){function b(){}c({constructor:b,isActive:a.createDummyFunction("Accessibility.isActive"),updateProperties:a.createDummyFunction("Accessibility.updateProperties")});return b}(o,k);na=function(c,
a,b){function d(a,b,c,d,e,p,s,h){this.redMultiplier=null==a?1:a;this.greenMultiplier=null==b?1:b;this.blueMultiplier=null==c?1:c;this.alphaMultiplier=null==d?1:d;this.redOffset=e||0;this.greenOffset=p||0;this.blueOffset=s||0;this.alphaOffset=h||0;this._color=(this.redOffset<<16)+(this.greenOffset<<8)+this.blueOffset}var e="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(",");b({qualifiedName:"flash.geom.ColorTransform",constructor:d,
concat:function(a){this.redOffset+=a.redOffset*this.redMultiplier;this.greenOffset+=a.greenOffset*this.greenMultiplier;this.blueOffset+=a.blueOffset*this.blueMultiplier;this.alphaOffset+=a.alphaOffset*this.alphaMultiplier;this.redMultiplier*=a.redMultiplier;this.greenMultiplier*=a.greenMultiplier;this.blueMultiplier*=a.blueMultiplier;this.alphaMultiplier*=a.alphaMultiplier},toString:function(){return"("+a.map(e,function(a){return a+"="+this[a]},this).join(", ")+")"}});a.setDescriptor(d.prototype,
"color",{set:function(a){this._color=a;this.blueMultiplier=this.greenMultiplier=this.redMultiplier=0;this.redOffset=a>>16&255;this.greenOffset=a>>8&255;this.blueOffset=a&255},get:function(){return this._color}});return d}(y,k,o);oa=function(c,a){function b(a,b,c,d,e,f,h,l,u,n,q,t,z){this.align=u;this.blockIndent=null;this.bold=d;this.bullet=null;this.color=c;this.font=a;this.indent=t;this.italic=e;this.kerning=null;this.leading=z;this.leftMargin=n;this.letterSpacing=null;this.rightMargin=q;this.size=
b;this.tabStops=null;this.target=l;this.underline=f;this.url=h}var d=c.expando,e=c.createDummyFunction,f=c.setDescriptor;b[d]={};b[d].defaults={align:"left",blockIndent:0,bold:!1,bullet:!1,color:0,font:"Times",indent:0,italic:!1,kerning:!1,leading:0,leftMargin:0,letterSpacing:0,rightMargin:0,size:12,tabStops:[],target:"",underline:!1,url:""};a({qualifiedName:"flash.text.TextFormat",constructor:b});f(b.prototype,"display",{get:e({name:"flash.text.TextFormat#display setter",returnType:"String"}),set:e({name:"flash.text.TextFormat#display getter",
returnType:"void"})});return b}(k,o);Ga=function(c,a){function b(a){this.volume=null==a?1:a}var d=c.createDummyFunction,e=c.setDescriptor;a({qualifiedName:"flash.media.SoundTransform",constructor:b});var f=b.prototype;e(f,"leftToLeft",{get:d({name:"SoundTransform.leftToLeft getter",returnType:"Number"}),set:d({name:"SoundTransform.leftToLeft setter",returnType:"Number"})});e(f,"leftToRight",{get:d({name:"SoundTransform.leftToRight getter",returnType:"Number"}),set:d({name:"SoundTransform.leftToRight setter",
returnType:"Number"})});e(f,"pan",{get:d({name:"SoundTransform.pan getter",returnType:"Number"}),set:d({name:"SoundTransform.pan setter",returnType:"Number"})});e(f,"rightToLeft",{get:d({name:"SoundTransform.rightToLeft getter",returnType:"Number"}),set:d({name:"SoundTransform.rightToLeft setter",returnType:"Number"})});e(f,"rightToRight",{get:d({name:"SoundTransform.rightToRight getter",returnType:"Number"}),set:d({name:"SoundTransform.rightToRight setter",returnType:"Number"})});return b}(k,o);
Ha=function(c,a){function b(){}var d=[].slice,e=c.createDummyFunction,f=c.setDescriptor;a({qualifiedName:"flash.external.ExternalInterface",constructor:b});b.marshallExceptions=!1;b.addCallback=function(a,b){window.parent[a]=b};b.call=function(a){var b,c;if(/[^a-z0-9.]/i.test(a))c=null;else{b=a.split(".");var e=window.parent;c=null;for(var f=0;f<b.length;f++){c=e;var h=b[f];if(h in e)e=e[h];else{e=null;break}}c=(b=e)?b.apply(c,d.call(arguments,1)):void 0}return c};f(b,"available",{writable:!1,value:!0});
f(b,"objectID",{get:function(){return""}});var g=b.prototype;f(g,"available",{get:e({name:"available",returnType:"Boolean"})});f(g,"objectID",{get:e({name:"objectID",returnType:"String"})});return b}(k,o);Ia=function(c,a){function b(){}c.setConst(b,"none");c.setConst(b,"pixel");c.setConst(b,"subpixel");a({qualifiedName:"flash.text.GridFitType",constructor:b});return b}(k,o);Ja=function(c,a){function b(){}c.setConst(b,"advanced");c.setConst(b,"normal");a({qualifiedName:"flash.text.AntiAliasType",constructor:b});
return b}(k,o);Ka=function(c,a){function b(){}c.setConst(b,"center");c.setConst(b,"left");c.setConst(b,"none");c.setConst(b,"right");a({qualifiedName:"flash.text.TextFieldAutoSize",constructor:b});return b}(k,o);La=function(c,a){function b(){}c.setConst(b,"dynamic");c.setConst(b,"input");a({qualifiedName:"flash.text.TextFieldType",constructor:b});return b}(k,o);pa=function(c,a){function b(){b.__super__.constructor.call(this)}var d=c.noop;a({qualifiedName:"flash.events.IEventDispatcher",constructor:b,
isInterface:!0,"flash.events:IEventDispatcher\u03bbaddEventListener":d,"flash.events:IEventDispatcher\u03bbdispatchEvent":d,"flash.events:IEventDispatcher\u03bbhasEventListener":d,"flash.events:IEventDispatcher\u03bbremoveEventListener":d,"flash.events:IEventDispatcher\u03bbwillTrigger":d});return b}(k,o);Ma=function(c,a){function b(){}var d=c.setConst;d(b,"AT_TARGET",2);d(b,"BUBBLING_PHASE",3);d(b,"CAPTURING_PHASE",1);a({qualifiedName:"flash.events.EventPhase",constructor:b});return b}(k,o);aa=function(c,
a){function b(){}var d=c.setConst;d(b,"DELETE");d(b,"GET");d(b,"HEAD");d(b,"OPTIONS");d(b,"POST");d(b,"PUT");a({qualifiedName:"flash.net.URLRequestMethod",constructor:b});return b}(k,o);Na=function(c,a,b,d){function e(a,b){var c="[object RegExp]"===s.call(a)||a instanceof e,d=[];if(!(this instanceof e))return c?a:new e(a,b);if(c){if(void 0!==b)throw TypeError();b=a;a=a.source}else b=""+(b||""),a=void 0===a?"":""+a,b={dotall:-1<b.indexOf("s"),extended:-1<b.indexOf("x"),global:-1<b.indexOf("g"),ignoreCase:-1<
b.indexOf("i"),multiline:-1<b.indexOf("m")};u(this,"source",a);b.dotall&&(a=a.replace(/([^\\]|^)(\[\^?\[?(?:\\\]|[^\]])*\])/g,function(a,b,c){d.push(c);return b+p}),a=a.replace(/\\\./g,function(a){d.push(a);return p}),a=a.replace(/\./g,"(?:.|\\n)"),a=a.replace(m,function(){return d.shift()}));b.extended&&(a=a.replace(/\s+/g,""));u(this,"dotall",b.dotall);u(this,"extended",b.extended);u(this,"global",b.global);u(this,"ignoreCase",b.ignoreCase);u(this,"multiline",b.multiline);h(this,"lastIndex",{get:f,
set:g});this[j]={raw:i(a,(b.global?"g":"")+(b.ignoreCase?"i":"")+(b.multiline?"m":""))}}function f(){return this[j].raw.lastIndex}function g(a){this[j].raw.lastIndex=a}var i=a.RegExp,j=b.expando,m=/\{\{token\}\}/g,p="{{token}}",s={}.toString,h=b.setAccessor,l=b.setDescriptor,u=b.setImmutable,c=b.setPseudoPrivate;e.prototype=b.beget(i.prototype);c(e,"isBuiltIn",!0);c(e,"isClass",!0);e.__proto__=d.prototype;b.forEach(["exec","test"],function(a){l(e.prototype,a,{enumerable:!1,value:function(b){return this[j].raw[a](b)}})});
l(e,"displayName",{enumerable:!1,value:"RegExp"});return a.RegExp=e}(y,F,k,o);Oa=function(c,a){function b(){}c.setConst(b,"LINEAR","linear");c.setConst(b,"RADIAL","radial");a({qualifiedName:"flash.display.GradientType",constructor:b});return b}(k,o);Pa=function(c,a,b){function d(a,b){this.x=a||0;this.y=b||0;f(this,"length",{get:function(){return e(i,this)}})}function e(a,b){var c=a.x-b.x,d=a.y-b.y;return g(c*c+d*d)}var f=a.setDescriptor,g=Math.sqrt,i=new d(0,0);d.distance=e;d.interpolate=function(a,
b,c){return new d(a.x+c*(b.x-a.x),a.y+c*(b.y-a.y))};d.polar=function(){return new d(len*Math.cos(angle),len*Math.sin(angle))};b({qualifiedName:"flash.geom.Point",constructor:d,add:function(a){return new d(this.x+a.x,this.y+a.y)},clone:function(){return new d(this.x,this.y)},copyFrom:function(a){this.x=a.x;this.y=a.y},equals:function(a){return a.x===this.x&&a.y===this.y},normalize:function(a){g(this.x*this.x+this.y*this.y);a/=this.length;this.x*=a;this.y*=a;return this},offset:function(a,b){this.x+=
a;this.y+=b},setTo:function(a,b){this.x=a;this.y=b},subtract:function(a){return new d(this.x-a.x,this.y-a.y)},toString:function(){return"(x="+this.x+", y="+this.y+")"}});return d}(y,k,o);Qa=function(c){function a(){}c({qualifiedName:"flash.filters.BitmapFilter",constructor:a,clone:function(){return new a}});return a}(o);Ra=function(c,a){function b(){}c({qualifiedName:"flash.filters.BitmapFilterQuality",constructor:b});a.setConst(b,"HIGH",3);a.setConst(b,"LOW",1);a.setConst(b,"MEDIUM",2);return b}(o,
k);r=function(c,a,b){return function(d){"superClass"in d||(d.superClass=a);b.setDescriptor(d.constructor,"addProperty",{enumerable:!1,value:a.prototype.addProperty});var e=c(d);b.setDescriptor(d.constructor.prototype,"addProperty",{enumerable:!1,value:a.prototype.addProperty});return e}}(o,$,k);Sa=function(c,a,b,d){function e(a){this[f]={colorTransform:new d,displayObject:a}}var f=a.expando,g=a.createDummyFunction,i=a.noop,a=a.setDescriptor;b({qualifiedName:"flash.geom.Transform",constructor:e,getRelativeMatrix3D:g({name:"getRelativeMatrix3D",
returnType:"flash.geom.Matrix3D"})});b=e.prototype;a(b,"colorTransform",{get:function(){return this[f].colorTransform},set:function(a){var b=this[f];b.colorTransform=a;a=new c.filter.ColorMatrix([a.redMultiplier,0,0,0,a.redOffset/256,0,a.greenMultiplier,0,0,a.greenOffset/256,0,0,a.blueMultiplier,0,a.blueOffset/256,0,0,0,a.alphaMultiplier,a.alphaOffset/256]);b=b.displayObject[f].raw;b.__touchedByActionScript__=!0;b.attr("filters",[a])}});a(b,"concatenatedColorTransform",{get:g({name:"concatenatedColorTransform",
returnType:""})});a(b,"concatenatedMatrix",{get:g({name:"concatenatedMatrix",returnType:""})});a(b,"matrix",{get:g({name:"matrix",returnType:""}),set:function(){this[f].displayObject[f].raw.__touchedByActionScript__=!0}});a(b,"matrix3D",{get:g({name:"matrix3D",returnType:""}),set:function(){this[f].displayObject[f].raw.__touchedByActionScript__=!0}});a(b,"perspectiveProjection",{get:g({name:"perspectiveProjection",returnType:""}),set:i});a(b,"pixelBounds",{get:g({name:"pixelBounds",returnType:""})});
return e}(y,k,o,na);A=function(c,a,b){function d(a,d,e){var f=c.getPrivateObjectOf(this);f.attrs.bubbles=!!d;f.attrs.cancelable=!!e;f.attrs.type=a||"";f.attrs.eventPhase=b.AT_TARGET}var e=c.setReadOnly,f=c.setDescriptor,g=c.createDummyFunction;a({qualifiedName:"flash.events.Event",constructor:d,clone:g("flash.events.Event#clone"),formatToString:function(){return""},isDefaultPrevented:function(){return!1},preventDefault:g("flash.events.Event#preventDefault"),stopImmediatePropagation:g("flash.events.Event#stopImmediatePropagation"),
stopPropagation:g("flash.events.Event#stopPropagation"),toString:toString});a=d.prototype;c.forEach(["activate","added","addedToStage","cancel","change","clear","close","closing","complete","connect",["CONTEXT3D_CREATE","context3DCreate"],"copy","cut","deactivate","displaying","enterFrame","exitFrame","exiting","frameConstructed",["FULLSCREEN","fullScreen"],"htmlBoundsChange","htmlDOMInitialize","htmlRender","id3","init","locationChange","mouseLeave","networkChange","open","paste","preparing","removed",
"removedFromStage","render","resize","scroll","select","selectAll","soundComplete","standardErrorClose","standardInputClose","standardOutputClose","tabChildrenChange","tabEnabledChange","tabIndexChange","textInteractionModeChange","unload","userIdle","userPresent"],function(a){var b=[d];"string"!=typeof a?(b.push(a[0]),b.push(a[1])):b.push(a);c.setConst.apply(null,b)});e(a,"bubbles",function(){return c.getPrivateObjectOf(this).attrs.bubbles});e(a,"cancelable",function(){return c.getPrivateObjectOf(this).attrs.cancelable});
e(a,"eventPhase",function(){return c.getPrivateObjectOf(this).attrs.eventPhase});e(a,"type",function(){return c.getPrivateObjectOf(this).attrs.type});var i={AccelerometerEvent:"type,bubbles,cancelable,timestamp,accelerationX,accelerationY,accelerationZ".split(","),ActivityEvent:["type","bubbles","cancelable","eventPhase","activating"],AsyncErrorEvent:"type,bubbles,cancelable,eventPhase,text,error".split(","),ContextMenuEvent:"type,bubbles,cancelable,eventPhase,mouseTarget,contextMenuOwner".split(","),
DataEvent:["type","bubbles","cancelable","eventPhase","data"],DRMErrorEvent:"type,bubbles,cancelable,eventPhase,errorID,subErrorID,text,systemUpdateNeeded,drmUpdateNeeded".split(","),DRMStatusEvent:["type","bubbles","cancelable"],Event:["type","bubbles","cancelable","eventPhase"],ErrorEvent:["type","bubbles","cancelable","eventPhase","text"],FocusEvent:"type,bubbles,cancelable,eventPhase,relatedObject,shiftKey,keyCode".split(","),FullScreenEvent:"type,bubbles,cancelable,eventPhase,fullScreen,interactive".split(","),
GestureEvent:"type,bubbles,cancelable,phase,localX,localY,stageX,stageY,ctrlKey,altKey,shiftKey".split(","),HTTPStatusEvent:"type,bubbles,cancelable,eventPhase,status,responseURL".split(","),IMEEvent:"type,bubbles,cancelable,eventPhase,text,imeClient".split(","),IOErrorEvent:["type","bubbles","cancelable","eventPhase","text"],KeyboardEvent:"type,bubbles,cancelable,eventPhase,charCode,keyCode,keyLocation,ctrlKey,altKey,shiftKey".split(","),MouseEvent:"type,bubbles,cancelable,eventPhase,localX,localY,stageX,stageY,relatedObject,ctrlKey,altKey,shiftKey,buttonDown,delta".split(","),
NetStatusEvent:["type","bubbles","cancelable","eventPhase","info"],PressAndTapGestureEvent:"type,bubbles,cancelable,phase,localX,localY,tapLocalX,tapLocalY,ctrlKey,altKey,shiftKey".split(","),ProgressEvent:"type,bubbles,cancelable,eventPhase,bytesLoaded,bytesTotal".split(","),SampleDataEvent:"type,bubbles,cancelable,eventPhase,position,data".split(","),SecurityErrorEvent:["type","bubbles","cancelable","eventPhase","text"],ShaderEvent:"type,bubbles,cancelable,eventPhase,bitmapData,byteArray,vector".split(","),
SoftKeyboardEvent:["type","bubbles","cancelable","relatedObject","triggerType"],StatusEvent:"type,bubbles,cancelable,eventPhase,code,level".split(","),SyncEvent:["type","bubbles","cancelable","eventPhase","changeList"],TextEvent:["type","bubbles","cancelable","eventPhase","text"],TimerEvent:["type","bubbles","cancelable","eventPhase"],TouchEvent:"type,bubbles,cancelable,eventPhase,touchPointID,isPrimaryTouchPoint,localX,localY,stageX,stageY,sizeX,sizeY,pressure,relatedObject,ctrlKey,altKey,shiftKey".split(","),
TransformGestureEvent:"type,bubbles,cancelable,phase,localX,localY,stageX,stageY,scaleX,scaleY,rotation,offsetX,offsetY,ctrlKey,altKey,shiftKey".split(","),UncaughtErrorEvent:["type","bubbles","cancelable","errorIn"]};f(a,"toString",{value:function(){for(var a=[(""+this.constructor).split(" ")[1].replace(/\]$/,"")],b=this.qualifiedName.split(".").splice(-1)[0],b=i[b],c=0;c<b.length;c++){var d=b[c],e=this[d];"string"===typeof e&&(e='"'+e+'"');try{a.push(d+"="+e)}catch(f){a.push(d+"=[object Object]")}}return"["+
a.join(" ")+"]"}});return d}(k,o,Ma);ba=function(c,a,b){function d(a){this.digest=this.data=this.contentType=null;this.method=b.GET;this.requestHeaders=[];this.url=a;this.userAgent=e}var e=c.navigator&&navigator.userAgent||"";a({qualifiedName:"flash.net.URLRequest",constructor:d});return d}(F,o,aa);Ta=function(c,a){return{navigateToURL:function(a,d){var e=a.data,f=c.parent,e=a.url+(e?"?"+e:"");if(null==d||"_blank"==d)f.open(e);else if(f="_self"==d||"_top"==d?f[d.slice(1)]:f.frames[d])f.location.href=
e},sendToURL:function(b){var c=b.method,e=new XMLHttpRequest;e.open(c,b.url,!0);e.send(c===a.GET?null:b.data)}}}(F,aa);Ua=function(c,a,b,d,e){var c=a.String,f=b.expando,g=c.prototype,a=b.setPseudoPrivate;b.forOwn({match:g.match,replace:g.replace,search:g.search,split:g.split},function(a,c){b.setDescriptor(g,c,{enumerable:!1,value:function(b){b instanceof e&&(arguments[0]=b[f].raw);return a.apply(this,arguments)}})});a(c,"isBuiltIn",!0);a(c,"isClass",!0);c.__proto__=d.prototype;return c}(y,F,k,o,Na);
ca=function(c,a,b,d){function e(){var a=new c.Group;a.__isASGraphics__=!0;this[g]={attrs:{},raw:a,current:null,commands:[]}}function f(b,c){a.keys(c).length&&b.attr(c)}var g=a.expando,i=a.toRGBA;b({qualifiedName:"flash.display.Graphics",constructor:e,beginFill:function(a,b){this[g].attrsAreMutated=!0;var c=this[g].attrs;c.fillColor=i(a);c.fillGradient=null;c.fillOpacity=null==b?1:b},beginGradientFill:function(b,e,f,s){var h=this[g],l,i=a.map(e,function(b,d){b=c.color(a.toRGBA(b));b.set("alpha",Math.max(0,
Math.min(1,f[d])));return[+b,s?100*(s[d]/255):100*(d/(e.length-1))]});switch(b){case d.LINEAR:l=c.gradient.linear(90,i);break;case d.RADIAL:l=c.gradient.radial(i,50,50,50)}h.attrs.fillOpacity=1;h.attrs.fillGradient=l;h.attrs.fillColor=0},clear:function(){var a=this[g],b=a.attrs;a.raw.clear();delete b.strokeColor;delete b.strokeWidth;delete b.opacity},copyFrom:function(b){var c=this[g].raw;c.clear();a.forEach(b[g].raw.children(),function(a){c.addChild(a.clone(!0))})},drawCircle:function(a,b,d){var e=
this[g],a=new c.Circle(a,b,d);f(a,e.attrs);a.addTo(e.raw)},drawEllipse:function(a,b,d,e){var h=this[g],e=e/2,d=d/2,a=new c.Ellipse(a+d,b+e,d,e);f(a,h.attrs);a.addTo(h.raw)},drawRect:function(a,b,d,e){var h=this[g],a=new c.Rect(a,b,d,e);f(a,h.attrs);a.addTo(h.raw)},drawRoundRect:function(a,b,d,e,h,l){var i=this[g],a=new c.Rect(a,b,d,e,(h+l)/2);f(a,i.attrs);a.addTo(i.raw)},endFill:function(){var a=this[g].attrs;delete a.fillColor;delete a.fillGradient;delete a.fillOpacity},lineStyle:function(a,b,c){this[g].attrsAreMutated=
!0;var d=this[g].attrs;d.strokeColor=i(b);1>a&&(a=1);255<a&&(a=255);d.strokeWidth=a;d.strokeOpacity=3>arguments.length?1:0>c?0:1<c?1:c},lineTo:function(a,b){var d=this[g];d.current||(d.current=(new c.Path).addTo(d.raw),d.attrsAreMutated=!0);d.attrsAreMutated&&(f(d.current,d.attrs),d.attrsAreMutated=!1);var e=d.current._segments;e.length&&"closePath"===e[e.length-1][0]&&e.pop();d.current.lineTo(a,b);d.current.closePath()},curveTo:function(a,b,d,e){var h=this[g];h.current||(h.current=(new c.Path).addTo(h.raw),
h.attrsAreMutated=!0);h.attrsAreMutated&&(f(h.current,h.attrs),h.attrsAreMutated=!1);var l=h.current._segments;l.length&&"closePath"===l[l.length-1][0]&&l.pop();h.current.quadraticCurveTo(a,b,d,e);h.current.closePath()},moveTo:function(a,b){var d=this[g];this[g].commands.push(["moveTo",a,b]);d.current=(new c.Path).addTo(d.raw);d.attrsAreMutated=!0;d.current.moveTo(a,b)}});a.forEach("beginBitmapFill,beginShaderFill,drawGraphicsData,drawPath,drawRoundRectComplex,drawTriangles,lineBitmapStyle,lineGradientStyle,lineShaderStyle".split(","),
function(b){e.prototype[b]=a.createDummyFunction("flash.display.Graphics#"+b)});return e}(y,k,o,Oa);P=function(c,a,b,d){function e(a,b,c,d){this.x=a||0;this.y=b||0;this.width=c||0;this.height=d||0}var f=a.createDummyFunction,c=a.noop,a=a.setDescriptor;b({qualifiedName:"flash.geom.Rectangle",constructor:e,clone:f({name:"clone",returnType:"flash.geom.Rectangle"}),contains:f({name:"contains",returnType:"Boolean"}),containsPoint:f({name:"containsPoint",returnType:"Boolean"}),containsRect:f({name:"containsRect",
returnType:"Boolean"}),equals:f({name:"equals",returnType:"Boolean"}),inflate:f({name:"inflate",returnType:"void"}),inflatePoint:f({name:"inflatePoint",returnType:"void"}),intersection:f({name:"intersection",returnType:"flash.geom.Rectangle"}),intersects:f({name:"intersects",returnType:"Boolean"}),isEmpty:f({name:"isEmpty",returnType:"Boolean"}),offset:f({name:"offset",returnType:"void"}),offsetPoint:f({name:"offsetPoint",returnType:"void"}),setEmpty:f({name:"setEmpty",returnType:"void"}),union:f({name:"union",
returnType:"flash.geom.Rectangle"})});b=e.prototype;a(b,"bottom",{get:function(){return this.y+this.height},set:c});a(b,"bottomRight",{get:function(){return new d(this.bottom,this.right)},set:c});a(b,"left",{get:function(){return this.x},set:c});a(b,"right",{get:function(){return this.x+this.width},set:c});a(b,"size",{get:function(){return new d(this.width,this.height)},set:c});a(b,"top",{get:function(){return this.y},set:c});a(b,"topLeft",{get:function(){return new d(this.x,this.y)},set:c});return e}(y,
k,o,Pa);Va=function(c,a,b,d,e){function f(b,e,f){switch(arguments.length){case 0:b=4;case 1:e=4;case 2:f=d.LOW}this[g]={blurX:b,blurY:e,raw:new c.filter.Blur(a.flashToBonsaiBlur(b,e))};this.quality=1}var g=a.expando;e({qualifiedName:"flash.filters.BlurFilter",constructor:f,superClass:b});b=f.prototype;b.clone=function(){return new f(this.blurX,this.blurY,this.quality)};a.setDescriptor(b,"blurX",{get:function(){return this[g].blurX},set:function(b){var c=this[g];c.blurX=b;c.raw.value=a.flashToBonsaiBlur(b,
c.blurY)}});a.setDescriptor(b,"blurY",{get:function(){return this[g].blurY},set:function(b){var c=this[g];c.blurY=b;c.raw.value=a.flashToBonsaiBlur(c.blurX,b)}});return f}(y,k,Qa,Ra,o);Wa=function(c,a){function b(){}c({constructor:b,addListener:a.createDummyFunction("AsBroadcaster.addListener"),broadcastMessage:a.createDummyFunction("AsBroadcaster.broadcastMessage"),initialize:a.createDummyFunction("AsBroadcaster.initialize"),removeListener:a.createDummyFunction("AsBroadcaster.removeListener")});
a.setDescriptor(b.prototype,"_listeners",{set:a.createDummyFunction("SETTER AsBroadcaster._listeners"),get:a.createDummyFunction("GETTER AsBroadcaster._listeners")});return b}(r,k);Xa=function(c,a){function b(){}c({constructor:b,get:a.createDummyFunction("Camera.get"),setMode:a.createDummyFunction("Camera.setMode"),setMotionLevel:a.createDummyFunction("Camera.setMotionLevel"),setQuality:a.createDummyFunction("Camera.setQuality")});var d=b.prototype;a.setDescriptor(d,"activityLevel",{set:a.createDummyFunction("SETTER Camera.activityLevel"),
get:a.createDummyFunction("GETTER Camera.activityLevel")});a.setDescriptor(d,"bandwidth",{set:a.createDummyFunction("SETTER Camera.bandwidth"),get:a.createDummyFunction("GETTER Camera.bandwidth")});a.setDescriptor(d,"currentFps",{set:a.createDummyFunction("SETTER Camera.currentFps"),get:a.createDummyFunction("GETTER Camera.currentFps")});a.setDescriptor(d,"fps",{set:a.createDummyFunction("SETTER Camera.fps"),get:a.createDummyFunction("GETTER Camera.fps")});a.setDescriptor(d,"height",{set:a.createDummyFunction("SETTER Camera.height"),
get:a.createDummyFunction("GETTER Camera.height")});a.setDescriptor(d,"index",{set:a.createDummyFunction("SETTER Camera.index"),get:a.createDummyFunction("GETTER Camera.index")});a.setDescriptor(d,"motionLevel",{set:a.createDummyFunction("SETTER Camera.motionLevel"),get:a.createDummyFunction("GETTER Camera.motionLevel")});a.setDescriptor(d,"motionTimeOut",{set:a.createDummyFunction("SETTER Camera.motionTimeOut"),get:a.createDummyFunction("GETTER Camera.motionTimeOut")});a.setDescriptor(d,"muted",
{set:a.createDummyFunction("SETTER Camera.muted"),get:a.createDummyFunction("GETTER Camera.muted")});a.setDescriptor(d,"name",{set:a.createDummyFunction("SETTER Camera.name"),get:a.createDummyFunction("GETTER Camera.name")});a.setDescriptor(d,"names",{set:a.createDummyFunction("SETTER Camera.names"),get:a.createDummyFunction("GETTER Camera.names")});a.setDescriptor(d,"onActivity",{set:a.createDummyFunction("SETTER Camera.onActivity"),get:a.createDummyFunction("GETTER Camera.onActivity")});a.setDescriptor(d,
"onStatus",{set:a.createDummyFunction("SETTER Camera.onStatus"),get:a.createDummyFunction("GETTER Camera.onStatus")});a.setDescriptor(d,"quality",{set:a.createDummyFunction("SETTER Camera.quality"),get:a.createDummyFunction("GETTER Camera.quality")});a.setDescriptor(d,"width",{set:a.createDummyFunction("SETTER Camera.width"),get:a.createDummyFunction("GETTER Camera.width")});return b}(r,k);Ya=function(c,a){function b(){}c({constructor:b,concat:a.createDummyFunction("ColorTransform.concat"),toString:a.createDummyFunction("ColorTransform.toString")});
var d=b.prototype;a.setDescriptor(d,"alphaMultiplier",{set:a.createDummyFunction("SETTER ColorTransform.alphaMultiplier"),get:a.createDummyFunction("GETTER ColorTransform.alphaMultiplier")});a.setDescriptor(d,"alphaOffset",{set:a.createDummyFunction("SETTER ColorTransform.alphaOffset"),get:a.createDummyFunction("GETTER ColorTransform.alphaOffset")});a.setDescriptor(d,"blueMultiplier",{set:a.createDummyFunction("SETTER ColorTransform.blueMultiplier"),get:a.createDummyFunction("GETTER ColorTransform.blueMultiplier")});
a.setDescriptor(d,"blueOffset",{set:a.createDummyFunction("SETTER ColorTransform.blueOffset"),get:a.createDummyFunction("GETTER ColorTransform.blueOffset")});a.setDescriptor(d,"greenMultiplier",{set:a.createDummyFunction("SETTER ColorTransform.greenMultiplier"),get:a.createDummyFunction("GETTER ColorTransform.greenMultiplier")});a.setDescriptor(d,"greenOffset",{set:a.createDummyFunction("SETTER ColorTransform.greenOffset"),get:a.createDummyFunction("GETTER ColorTransform.greenOffset")});a.setDescriptor(d,
"redMultiplier",{set:a.createDummyFunction("SETTER ColorTransform.redMultiplier"),get:a.createDummyFunction("GETTER ColorTransform.redMultiplier")});a.setDescriptor(d,"redOffset",{set:a.createDummyFunction("SETTER ColorTransform.redOffset"),get:a.createDummyFunction("GETTER ColorTransform.redOffset")});a.setDescriptor(d,"rgb",{set:a.createDummyFunction("SETTER ColorTransform.rgb"),get:a.createDummyFunction("GETTER ColorTransform.rgb")});return b}(r,k);Za=function(c,a){function b(){}c({constructor:b,
copy:a.createDummyFunction("ContextMenu.copy"),hideBuiltInItems:a.createDummyFunction("ContextMenu.hideBuiltInItems")});var d=b.prototype;a.setDescriptor(d,"builtInItems",{set:a.createDummyFunction("SETTER ContextMenu.builtInItems"),get:a.createDummyFunction("GETTER ContextMenu.builtInItems")});d.customItems=[];a.setDescriptor(d,"onSelect",{set:a.createDummyFunction("SETTER ContextMenu.onSelect"),get:a.createDummyFunction("GETTER ContextMenu.onSelect")});return b}(r,k);$a=function(c,a,b){function d(b){a.getPrivateObjectOf(this).movieClip=
b}c({constructor:d,getRGB:function(){return a.getPrivateObjectOf(this).movieClip.transform.colorTransform.color},getTransform:function(){var b={},c=a.getPrivateObjectOf(this).movieClip.transform.colorTransform;b.ra=100*c.redMultiplier;b.rb=c.redOffset;b.ga=100*c.greenMultiplier;b.gb=c.greenOffset;b.ba=100*c.blueMultiplier;b.bb=c.blueOffset;b.aa=100*c.alphaMultiplier;b.ab=c.alphaOffset;return b},setRGB:function(c){var d=a.getPrivateObjectOf(this).movieClip,g=new b;g.color=c;d.transform.colorTransform=
g},setTransform:function(c){var d=a.getPrivateObjectOf(this).movieClip,c=new b(c.ra/100,c.ga/100,c.ba/100,c.aa/100,c.rb,c.gb,c.bb,c.ab);d.transform.colorTransform=c}});return d}(r,k,na);ab=function(c){function a(){}c({constructor:a});return a}(r);bb=function(c){function a(){}c({constructor:a});return a}(r);cb=function(c){function a(){}c({constructor:a});return a}(r);db=function(c){function a(){}c({constructor:a});return a}(r);eb=function(c){function a(){}c({constructor:a});return a}(r);fb=r({});gb=
function(c){function a(){}c({constructor:a});return a}(r);hb=function(c){function a(){}c({constructor:a});return a}(r);ib=function(c){function a(){}c({constructor:a});return a}(r);jb=function(c){function a(){}c({constructor:a});return a}(r);kb=function(c){function a(){}c({constructor:a});return a}(r);Q=function(c){function a(){}c({constructor:a});return a}(r);lb=function(c){function a(){}c({constructor:a});return a}(r);mb=function(c){function a(){}c({constructor:a});return a}(r);nb=function(c){function a(){}
c({constructor:a});return a}(r);ob=function(c){function a(){}c({constructor:a});return a}(r);pb=function(c){function a(){}c({constructor:a});return a}(r);qb=function(c){function a(){}c({constructor:a});return a}(r);rb=function(c,a){function b(){}c({constructor:b});return a.BitmapData=b}(r,ya);sb=function(c,a,b,d){function e(){}c({constructor:e});e.call=a.call;e.available=a.available;e.addCallback=d.createDummyFunction("ExternalInterface.addCallback");return b.ExternalInterface=e}(r,Ha,za,k);tb=function(c,
a){function b(){}c({constructor:b});return a.BevelFilter=b}(r,D);ub=function(c,a){function b(){}c({constructor:b});return a.ConvolutionFilter=b}(r,D);vb=function(c,a){function b(){}c({constructor:b});return a.DisplacementMapFilter=b}(r,D);wb=function(c,a){function b(){}c({constructor:b});return a.BitmapFilter=b}(r,D);xb=function(c){function a(){}c({constructor:a});return a}(r);yb=function(c,a){function b(){}c({constructor:b});return a.DropShadowFilter=b}(r,D);zb=function(c,a){function b(){}c({constructor:b});
return a.ColorMatrixFilter=b}(r,D);Ab=function(c,a){function b(){}c({constructor:b});return a.GlowFilter=b}(r,D);Bb=function(c,a){function b(){}c({constructor:b});return a.GradientBevelFilter=b}(r,D);Cb=function(c,a){function b(){}c({constructor:b});return a.GradientGlowFilter=b}(r,D);Db=function(c,a){function b(){}c({constructor:b});return a.Matrix=b}(r,K);Eb=function(c,a){function b(){}c({constructor:b});return a.Point=b}(r,K);Fb=function(c,a){function b(){}c({constructor:b});return a.Rectangle=
b}(r,K);Gb=function(c,a){function b(){}c({constructor:b});return a.Transform=b}(r,K);Hb=function(c,a){function b(){}c({constructor:b});return a.FileReference=b}(r,Aa);Ib=function(c,a){function b(){}c({constructor:b});return a.FileReferenceList=b}(r,K);Jb=function(c,a){function b(){}c({constructor:b});return a.TextRenderer=b}(r,Ba);Kb=function(c,a){function b(){}c({constructor:b});return a.Locale=b}(r,ka);B=function(c,a,b){function d(a,d,e,j,m,p,s,h,l,u,n){b.call(this,a,"undefined"==typeof d?!0:d,
e);this.localX=j||Number.NaN;this.localY=m||Number.NaN;this.relatedObject=p||null;this.ctrlKey=s||!1;this.altKey=h||!1;this.shiftKey=l||!1;this.buttonDown=u||!1;this.delta=n||0;this.isRelatedObjectInaccessible=!1;a=c.getPrivateObjectOf(this);a.attrs.stageX=Number.NaN;a.attrs.stageY=Number.NaN;p&&(a.attrs.stageX=p.mouseX,a.attrs.stageY=p.mouseY)}var e=c.setReadOnly;a({qualifiedName:"flash.events.MouseEvent",constructor:d,superClass:b,clone:function(){return new d(this.type,this.bubbles,this.cancelable,
this.localX,this.localY,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta)},updateAfterEvent:function(){}});a=d.prototype;c.forEach("click,contextMenu,doubleClick,middleClick,middleMouseDown,middleMouseUp,mouseDown,mouseMove,mouseOut,mouseOver,mouseUp,mouseWheel,rightClick,rightMouseDown,rightMouseUp,rollOut,rollOver".split(","),function(a){c.setConst(d,a)});e(a,"stageX",function(){return c.getPrivateObjectOf(this).attrs.stageX});e(a,"stageY",function(){return c.getPrivateObjectOf(this).attrs.stageY});
return d}(k,o,A);L=function(c,a,b){function d(a,c,d,i,j,m,p,s,h,l,u){b.prototype.constructor.call(this,a,"undefined"==typeof c?!0:c,d);this.charCode=i||0;this.keyCode=j||0;this.keyLocation=m||0;this.ctrlKey=p||!1;this.altKey=s||!1;this.shiftKey=h||!1;this.controlKey=l||!1;this.commandKey=u||!1}c=c.setConst;c(d,"keyDown");c(d,"keyUp");a({qualifiedName:"flash.events.KeyboardEvent",constructor:d,clone:function(){return new d(this.type,this.bubbles,this.cancelable,this.charCode,this.keyCode,this.keyLocation,
this.ctrlKey,this.altKey,this.shiftKey,this.controlKey,this.commandKey)},superClass:b,updateAfterEvent:function(){}});return d}(k,o,A);Lb=D.BlurFilter=Va;Mb=function(c,a){function b(){}c({constructor:b});return a.capabilities=b}(r,Q);Nb=function(c,a,b){function d(){}c({constructor:d});b.setDescriptor(d,"sandboxType",{set:b.createDummyFunction("SETTER System.security.sandboxType"),get:b.createDummyFunction("GETTER System.security.sandboxType")});d.allowDomain=b.createDummyFunction("System.security.allowDomain");
d.allowInsecureDomain=b.createDummyFunction("System.security.allowInsecureDomain");d.loadPolicyFile=b.createDummyFunction("System.security.loadPolicyFile");return a.security=d}(r,Q,k);Ob=function(c,a){function b(){}c({constructor:b});return a.IME=b}(r,Q);Pb={dragOver:B.MOUSE_OVER,dragOut:B.MOUSE_OUT,keyDown:L.KEY_DOWN,keypress:L.KEY_DOWN,keyPress:L.KEY_DOWN,mouseDown:B.MOUSE_DOWN,mouseUp:B.MOUSE_UP,mouseMove:B.MOUSE_MOVE,press:B.MOUSE_DOWN,release:B.CLICK,rollOut:B.MOUSE_OUT,rollOver:B.MOUSE_OVER,
releaseOutside:B.MOUSE_UP};Qb=function(){function c(){for(var b in a)this[b]=a[b]}var a={align:"left",blockIndent:0,bold:!1,bullet:!1,color:0,font:"Times",indent:0,italic:!1,kerning:!1,leading:0,leftMargin:0,letterSpacing:0,rightMargin:0,size:12,tabStops:[],target:"",underline:!1,url:""};c.defaults=JSON.parse(JSON.stringify(a));return c}();qa=function(c,a){function b(a,b){var c=[],d="__string__"+ +new Date,a=a.replace(/(['"])(?:\\\1|[^\1])*?\1/g,function(a){c.push(a);return d}),a=a.replace(/[^}]+\{/g,
function(a){a=a.replace(/^\s+|\s+$/,"");return a.replace(/^|(,)/g,"$1 "+b+" ").replace(/^\s|(\s)\s+/g,"$1")});return a=a.replace(RegExp(d,"g"),function(){return c.shift()})}function d(){return this._owner.raw.styleSheet}function e(a){var c=this._owner,d=c._cssSelectorPrefix;a?(a=b(a,d),c.raw.styleSheet=a,c._style||(c._style=new ia("style"),c.addChild(c._style)),this._defaultStyleSheet||(this._defaultStyleSheet=b(ra,d)),c._style.setAttribute("innerHTML",this._defaultStyleSheet+a)):c.raw.styleSheet=
""}function f(){return this._owner.raw.autoSize}function g(a){var b=this._owner;b.raw.autoSize=a||"none";switch(a){case "none":b.setStyles({"float":"",width:"100px",height:"100px"});break;case "left":b.setStyles({"float":"left",width:"auto",height:"auto"});break;case "right":b.setStyles({"float":"right",width:"auto",height:"auto"});b.text.setStyle("float","right");b.text.setStyle("textAlign","right");break;case "center":b.setStyles({display:"inline-block",width:"auto",height:"auto"}),b.setStyle("textAlign",
"center")}}function i(){return!!this._owner.raw.editable}function j(a){var a=!!a,b=this._owner;b.raw.editable=a;!0===a?(b.text.setAttribute("contenteditable","true"),b.text.setStyles({webkitUserModify:"read-write",webkitNbspMode:"space",webkitLineBreak:"after-white-space"}),b.addCSSRule(":focus",{outline:"none"})):(b.text.setAttribute("contenteditable","false"),b.text.setStyles({webkitNbspMode:"",webkitLineBreak:""}))}function m(){return!!this._owner.raw.html}function p(a){this._owner.raw.html=!!a}
function s(){return this._owner.raw.htmlText||""}function h(a){var b=this._owner;!1!==b.attr("html")&&b.innerHTML(a)}function l(){return this._owner.raw.maxChars}function u(a){this._owner.raw.maxChars=a}function n(){return!!this._owner.raw.password}function q(a){var a=!!a,b=this._owner;b.raw.password=a;!0===a&&b.attr("text",Array(b.text.getAttribute("innerHTML").length+1).join("*"))}function t(){var a;a=""+this._owner.attr("htmlText");var b=a.match(RegExp("<TEXTFORMAT.*"+da+">(.*)"));b&&b[1]&&(a=
b[1].split(/<\/TEXTFORMAT>(.+)?/),a=T+a[0]+T+(a[1]||""));return ba(a)}function z(a){for(var b=this._owner,c=b.attr("maxChars"),a=(a||"").toString(),a=null===c?a:a.slice(0,c),c="",a=a.split(T),d=0,e=a.length;d<e;d++)0!==a[d].length&&(c+=b.htmlFromText(a[d],d%2));b.innerHTML(c);b.emit("change")}function v(){return!!this._owner.raw.selectable}function C(a){this._owner.raw.selectable=!!a}function k(){return!!this._owner.raw.background}function o(a){var b=this._owner;b.raw.background=!!a;b.attr("backgroundColor",
b.attr("backgroundColor"))}function E(){var a=this._owner;return!0===a.attr("background")?a.raw.backgroundColor:ta.backgroundColor}function r(a){var b=this._owner;b.raw.backgroundColor=a;b.attr("background")?b.setStyle("backgroundColor",U(a)):b.setStyle("backgroundColor","rgba(0,0,0,0)")}function sa(){return!!this._owner.raw.border}function y(a){var b=this._owner;b.raw.border=!!a;b.attr("borderColor",b.attr("borderColor"))}function w(){var a=this._owner;return!0===a.attr("border")?a.raw.borderColor:
ta.borderColor}function uc(a){var b=this._owner;b.raw.borderColor=a;b.attr("border")?b.setStyles({borderWidth:"1px",borderColor:U(a),borderStyle:"solid"}):b.setStyles({borderColor:"",borderWidth:"0px"})}function vc(){return!!this._owner.raw.wordWrap}function wc(a){var a=!!a,b=this._owner;b.raw.wordWrap=a;!0===a?b.text.setStyles({whiteSpace:"normal",display:""}):b.text.setStyles({whiteSpace:"nowrap",display:"inline-block"})}function xc(){return!!this._owner.raw.multiline}function A(a){var b=this._owner;
b.raw.multiline=!!a;b.attr("wordWrap",b.attr("wordWrap"))}function B(){return this._owner.raw.width}function D(a){var b=this._owner;b.raw.width=+a;"none"===b.attr("autoSize")&&b.setStyle("width",(a|0)+"px")}function F(){var a=this._owner,b=a.attr("autoSize");if("undefined"===typeof b||"none"===b)return a.raw.height;b=a.attr("text").split(/\n|\r/).length;return a.text.attr("fontLineHeight")*b}function G(a){var b=this._owner;b.raw.height=a;"none"===b.attr("autoSize")&&b.setStyle("height",(a|0)+"px")}
function H(){return this._owner.raw.align}function I(a){var b=this._owner;b.raw.align=a;b.parent.setStyle("textAlign",a||"")}function J(){return this._owner.raw.bold}function K(a){var a=!!a,b=this._owner;b.raw.bold=a;b.setStyle("fontWeight",a?"700":"normal")}function L(){return this._owner.raw.color}function M(a){var b=this._owner;b.raw.color=a;b.setStyle("color",U(a))}function N(){return this._owner.raw.font}function O(a,b){var c=this._owner;ua.isArray(a)?(b=a[1]+", "+P(a[0]),c.raw.font=a[0]):(b=
P(a),c.raw.font=a);c.setStyle("fontFamily",b)}function Q(){return this._owner.raw.indent}function R(a){var b=this._owner;b.raw.indent=a;b.setStyle("textIndent",a||"")}function S(){return this._owner.raw.italic}function W(a){var a=!!a,b=this._owner;b.raw.italic=a;b.setStyle("fontStyle",a?"italic":"")}function X(){return this._owner.raw.leftMargin}function Y(a){var b=this._owner;b.raw.leftMargin=a;b.setStyle("paddingLeft",a+"px")}function Z(){return this._owner.raw.rightMargin}function $(a){var b=this._owner;
b.raw.rightMargin=a;b.setStyle("paddingRight",a+"px")}function ca(){return this._owner.raw.letterSpacing}function ea(a){var b=this._owner;b.raw.letterSpacing=a;b.setStyle("letterSpacing",a+"px")}function ga(){return this._owner.raw.size}function ja(a){var a=+a,b=this._owner;b.raw.size=a;b.setStyle("fontSize",a+"px");this.fontLineHeight+=0}function ka(){return this._owner.raw.underline}function la(a){var a=!!a,b=this._owner;b.raw.underline=a;b.setStyle("textDecoration",a?"underline":"")}function ma(){return this._owner.raw.fontLineHeight||
0}function na(a){var b=this._owner,c=b.attr("size"),a=c>a?c:a;b.raw.fontLineHeight=a;a+=b.attr("leading");b.parent.setStyle("line-height",a+"px")}function oa(){return this._owner.raw.leading}function pa(a){var b=this._owner;b.raw.leading=a;this.fontLineHeight+=0;b.parent.setStyle("margin-top",-a/2+"px")}function fa(){ia.call(this,"div",{},{overflow:"hidden",boxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",MsBoxSizing:"border-box"});this._domID="bs-textfield-"+this.id;
this._domInnerClass=this._domID+"-innerText";this._cssSelectorPrefix="#"+this._domID+" ."+this._domInnerClass;this.setAttribute("id",this._domID);this.innerBox=(new ia("div",{"class":this._domID+"-innerBox"},{width:"100%",height:"100%",display:"inline-block",boxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",MsBoxSizing:"border-box",padding:"2px"})).addTo(this);this.raw={};Object.defineProperties(this._attributes,{wordWrap:x(vc,wc,!0),multiline:x(xc,A,!0),autoSize:x(f,g,
!0),background:x(k,o,!0),backgroundColor:x(E,r,!0),border:x(sa,y,!0),borderColor:x(w,uc,!0),html:x(m,p,!0),htmlText:x(s,h,!0),maxChars:x(l,u,!0),password:x(n,q,!0),text:x(t,z,!0),selectable:x(v,C,!0),editable:x(i,j,!0),width:x(B,D,!0),height:x(F,G,!0),styleSheet:x(d,e,!0)});this.css=(new ia("style")).addTo(this.innerBox);this.css.raw={};this.addCSSRule("a",{color:"inherit","text-decoration":"none"});this.addCSSRule("p",{padding:0,margin:0,"word-wrap":"normal"});this.text=(new ia("span",{"class":this._domInnerClass})).addTo(this.innerBox);
this.text.raw={};Object.defineProperties(this.text._attributes,{align:x(H,I,!0),bold:x(J,K,!0),color:x(L,M,!0),font:x(N,O,!0),indent:x(Q,R,!0),italic:x(S,W,!0),leftMargin:x(X,Y,!0),rightMargin:x(Z,$,!0),letterSpacing:x(ca,ea,!0),size:x(ga,ja,!0),underline:x(ka,la,!0),fontLineHeight:x(ma,na,!0),leading:x(oa,pa,!0)});for(var b in ta)this.attr(b,ta[b]);b=new a;for(var c in b)this.text.attr(c,b[c]);this.text.raw.defaults=a.defaults}var aa,ba,P,ia=c.DOMElement,ua=c.tools,x=ua.descriptorAccessor,qa=Array.prototype.slice,
ra="a{color:#000;text-decoration:none;}",ta={autoSize:"none",background:!1,backgroundColor:16777215,border:!1,borderColor:0,html:!0,htmlText:"",maxChars:null,text:"",selectable:!1,password:!1,wordWrap:!1,editable:!1,width:100,height:100,styleSheet:""},da='bs-swf="true"',T="\ufeff\ufeff",U=fa.rgba=function(a){if("undefined"===typeof a)return"rgba(0,0,0,0)";a=/^#/.test(a)?parseInt(a.slice(1),16):a<<8|255;return c.color(a).rgba()},V=fa.prototype=ua.beget(ia.prototype);V.addCSSRule=function(a,b){var c=
this.css,d=c.raw,e=qa.call(arguments,0,-1),b=arguments[e.length],a=e.join("\x00");d.hasOwnProperty(a)?ua.mixin(d[a],b):d[a]=b;var f,q,h="",m=this._cssSelectorPrefix;for(a in d){e=d[a];q="";for(f in e)q+=f+": "+e[f]+"; ";h+=m+" "+a.split("\x00").join(", "+m+" ")+" { "+q+"}\n"}c.setAttribute("innerHTML",h);return this};V.innerHTML=function(a){this.text.setAttribute("innerHTML",a);this.raw.htmlText=a;this.emit("change");return this};V.htmlFromText=function(a,b){this.addCSSRule("font",{"font-size":"inherit",
color:"inherit","font-family":"inherit"});return fa.htmlTextFormatWrapper("<P><FONT>"+aa(a)+"</FONT></P>",b)};P=fa.mapFontFamily=function(){var a={_sans:"sans-serif",_serif:"serif",_typewriter:"monospace"};return function(b){return b in a?a[b]:b}}();aa=fa.escapeHtml=function(a){return(a+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\n|\r/g,"<br/>")};ba=fa.unescapeHtml=function(a){return a.replace(/&/g,"&").replace(/ /g," ").replace(/<br\/>/g,"\n").replace(/<(?:.|\n)*?>/gm,
"").replace(/\</g,"<").replace(/\>/g,">")};fa.htmlTextFormatWrapper=function(a,b){return"<TEXTFORMAT"+(b?" "+da:"")+">"+a+"</TEXTFORMAT>"};return fa}(y,Qb);ra=function(c,a,b){var d=c.Error;b({constructor:d,superClass:c.Error,toString:function(){var b=a.getClassNameByClass(this.constructor,"Error"),b=/^[^$]+/.exec(b)[0];return this.message?b+": "+this.message:b},getStackTrace:function(){return this.stack||""}});a.setPseudoPrivate(d,"isBuiltIn",!0);return d}(F,k,o);Rb=function(c,a,b,d){c=c.exports;
c.tools=a;c.TextField=b;c.Button=d;return c}(F,k,qa,la);R=function(c,a,b){function d(a){if(!(this instanceof d))return new d(a);this.message=a}a({constructor:d,superClass:b});c.setPseudoPrivate(d,"isBuiltIn",!0);return d}(k,o,ra);S=Rb.asGlobal={};da=function(c,a,b){return{getTimer:function(){return new Date-a.timestampAs3Started},getQualifiedClassName:function(a){var c=null;if(null===a)c="null";else if("undefined"===typeof a)c="void";else if(a instanceof b||a.hasOwnProperty("__isClass__"))c=a.__qualifiedName__||
a.__proto__.constructor.__qualifiedName__||a.__proto__.constructor.name.toString(),c=c.replace(/\.(?=[^.]+$)/,"::");else{var f=Object.prototype.toString.call(a);if("object"===typeof a&&"[object Array]"===f||"function"===typeof a&&"[class Array]"===f)c="Array";else switch(typeof a){case "function":c="builtin.as$0::MethodClosure";break;case "string":c="String";break;case "number":c=parseInt(a)==a?"int":"Number";break;case "object":c="Object"}}return c},getQualifiedSuperclassName:function(a){var c=Object.toString.call(a),
f="";return f=1===c.indexOf("class")&&a.__super__?a.__super__.constructor===b?"Object":this.getQualifiedClassName(a.__super__.constructor):1===c.indexOf("object")&&a.constructor.__super__?this.getQualifiedClassName(a.constructor.__super__.constructor):"Object"},getDefinitionByName:function(b){if("undefined"!=b){for(var b=b.replace(/::(?=[^.:]+$)/,"."),e=c,f=b.split("."),g=0,i=f.length;e&&g<i;g+=1)e=e[f[g]];if(!e&&"undefined"!==typeof a.__lookUpNameInVm)try{e=a.__lookUpNameInVm(b)}catch(j){e=null}if(!e||
e instanceof Namespace)throw new ReferenceError("Error #1065");return e}},clearInterval:function(a){return clearInterval.apply(null,arguments)},clearTimeout:function(a){return clearTimeout.apply(null,arguments)},setInterval:function(a,b,c){return setInterval.apply(null,arguments)},setTimeout:function(a,b,c){return setTimeout.apply(null,arguments)}}}(S,k,o);Sb=function(c,a){function b(){}a({qualifiedName:"flash.display.SWFVersion",constructor:b});(function(){for(var a=0;13>++a;)c.setConst(b,"flash"+
a)})();return b}(k,o);Tb=function(c,a,b){function d(a,c,d,i,j){b.call(this,a,c,d);this.bytesLoaded=i||0;this.bytesTotal=j||0}c=c.setConst;c(d,"progress");c(d,"socketData");c(d,"standardErrorData");c(d,"standardInputProgress");c(d,"standardOutputData");a({qualifiedName:"flash.events.ProgressEvent",constructor:d,superClass:b,clone:function(){return new d(this.type,this.bubbles,this.cancelable,this.bytesLoaded,this.bytesTotal)}});return d}(k,o,A);T=function(c,a,b){function d(a,c,d){b.prototype.constructor.call(this,
a,c,d)}c=c.setConst;c(d,"timer");c(d,"timerComplete");a({qualifiedName:"flash.events.TimerEvent",constructor:d,superClass:b,clone:function(){return new d(this.type,this.bubbles,this.cancelable)},updateAfterEvent:function(){}});return d}(k,o,A);Ub=function(c,a,b){function d(a,c,d,i){b.prototype.constructor.call(this,a,c,d);this.status=i||0;this.responseURL=null;this.responseHeaders=[]}c.setConst(d,"httpResponseStatus");c.setConst(d,"httpStatus");a({qualifiedName:"flash.events.HTTPStatusEvent",constructor:d,
clone:function(){return new d(this.type,this.bubbles,this.cancelable,this.status)},superClass:b});return d}(k,o,A);H=function(c,a,b,d,e,f,g){function i(a,b){return a.some(function(a){return a.listener[u]==b})}function j(){a.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}function m(){return{}}function p(){return{}}function s(){return c.stage}function h(a){return!!a[u].attrs.isInstanceOfDisplayObject}function l(a){return!!a[u].attrs.isInstanceOfInteractiveObject}
var u=a.expando,n={activate:{target:h},added:{},addedToStage:{bubbles:!0},cancel:{},change:{bubbles:!0},clear:{target:l},close:{},closing:{cancelable:!0},complete:{},connect:{},context3DCreate:{},copy:{target:l},cut:{target:l},deactivate:{target:h},displaying:{},enterFrame:{target:h},exitFrame:{target:h},exiting:{cancelable:!0,target:m},frameConstructed:{target:h},fullScreen:{target:s},htmlBoundsChange:{},htmlDOMInitialize:{},htmlRender:{},httpResponseStatus:{eventClass:e},httpStatus:{eventClass:e},
id3:{},init:{},locationChange:{},mouseDown:{},mouseLeave:{target:s},mouseMove:{},mouseUp:{},networkChange:{target:m},open:{},paste:{target:l},removed:{bubbles:!0},removedFromStage:{},render:{target:h},resize:{target:s},scroll:{},select:{},selectAll:{target:l},soundComplete:{},standardErrorClose:{target:p},standardInputClose:{target:p},standardOutputClose:{target:p},tabChildrenChange:{bubbles:!0},tabEnabledChange:{bubbles:!0},tabIndexChange:{bubbles:!0},textInteractionModeChange:{},timer:{eventClass:f},
timerComplete:{eventClass:f},unload:{target:function(){return c.stage.loaderInfo}},userIdle:{target:m},userPresent:{target:m}};b({qualifiedName:"flash.events.EventDispatcher",constructor:j,interfaces:[g],__preConstruct__:function(){var b=a.getPrivateObjectOf(this);b.eventDispatcher=new bonsai.DisplayObject;b.preConstructed=!0},__construct__:function(){},__postConstruct__:function(){},addEventListener:function(b,c){var e=this[u].eventDispatcher;a.connectEventListener(b,a.getPrivateObjectOf(this));
if(!("render"==b||"addedToStage"==b)||!i(e.listeners(b),c)){var f=n[b]||{},h=f.target,m=c[u];m||(m=c[u]=function(a){var e=f.eventClass||d,m=null;a instanceof d||(a=new e(b,!!f.bubbles,!!f.cancelable));h&&(m=h(this),a.target=!1===m?null:m);a.target=this;a.currentTarget||(a.currentTarget=this);c.call(this,a)},m[u]=c);e.on(f.type||b,this,m)}},dispatchEvent:function(a){this[u].eventDispatcher.emit(a.type,a);return a.bubbles&&this.parent?this.parent.dispatchEvent(a):!0},hasEventListener:function(a){return!!this[u].eventDispatcher.listeners(a)[0]},
removeEventListener:function(b,c){var d=n[b]||{},e=c[u];if(e){var f=this[u].eventDispatcher,d=d.type||b;f.removeListener(d,this,e);0===f.listeners(d).length&&a.disconnectEventListener(b,a.getPrivateObjectOf(this))}},willTrigger:function(){var a=this[u].eventDispatcher;do if(a.listeners(type)[0])return!0;while(a=a.parent);return!1}});return j}(Z,k,o,A,Ub,T,pa);M=function(c,a,b,d,e,f,g,i,j,m,p){function s(a){E=a.x;r=a.y}function h(a){a.__touchedByActionScript__=!0}function l(){if(this.constructor===
l)throw new f(b.getById(2012));var a=e.getPrivateObjectOf(this);a.attrs.isInstanceOfDisplayObject=!0;a.preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}function u(a,b,d){var f=e.getPrivateObjectOf(a),m=function(){e.dispatchEventWithoutBubbling(a,new j(d))};e.connectOnDemand(d,f,function(){c.stage.on(b,a,m)},function(){c.stage.removeListener(b,a,m)})}function n(a,b,c){var d=q[b];d||(c||(c=b),d=q[b]={configurable:!1,get:function(){return this[t].raw.attr(c)},set:function(a){var b=
this[t].raw;h(b);b.attr(c,a)}});v(a,b,d)}var q={},t=e.expando,z=e.createDummyFunction,v=e.setAccessor,C=e.setReadOnly,k=e.setDescriptor,o=1,E=0,r=0;c.stage.on("pointermove",s);c.stage.on("pointerdown",s);c.stage.on("pointerup",s);var sa=i.prototype,y=!1;g({qualifiedName:"flash.display.DisplayObject",constructor:l,superClass:i,localToGlobal:function(a){return a},globalToLocal:function(a){return a},getBounds:function(){a.warnAbout.missingImplementation&&!1==y&&(console.warn("DisplayObject.getBounds not implemented"),
y=!0);return new m},hitTestObject:function(a){var b=this[t].raw.getAbsoluteBoundingBox(),a=a[t].raw.getAbsoluteBoundingBox(),c=b.left<=a.right&&b.left>=a.left,d=b.top>=a.top&&b.top<=a.bottom,d=b.bottom>=a.top&&a.bottom>=b.bottom||d;return(b.right>=a.left&&b.right<=a.right||c)&&d},__preConstruct__:function(){var a=e.getPrivateObjectOf(this);a.attrs.filters=[];a.deferredEventFiring={addedToStage:[],added:[]};sa.__preConstruct__.call(this);a.raw.on("addedToStage",this,function(){var b=new j(j.ADDED_TO_STAGE);
b.target=this;a.isConstructed?e.dispatchEventWithoutBubbling(this,b):a.deferredEventFiring.addedToStage.push([this,b])});var b="[class Stage]"==""+this.constructor;a.name=a.isRootMovie?"root1":b?null:"instance"+o++;this.accessibilityProperties=null;var c=new p(this);k(this,"transform",{get:function(){return c}});a.preConstructed=!0},__construct__:function(){sa.__construct__.call(this);u(this,"tick",j.ENTER_FRAME);u(this,"advance",j.FRAME_CONSTRUCTED);u(this,"flash:stage-render",j.RENDER);u(this,"exitFrame",
j.EXIT_FRAME);e.getPrivateObjectOf(this).raw.on("removedFromStage",this,function(){e.dispatchEventWithoutBubbling(this,new j(j.REMOVED_FROM_STAGE))})},__postConstruct__:function(){for(var a=e.getPrivateObjectOf(this),b=["added","addedToStage"],c=0;c<b.length;c++){for(var d=b[c],f=a.deferredEventFiring[d],m=0,h=f.length;m<h;m++)e.dispatchEventWithoutBubbling(f[m][0],f[m][1]);a.deferredEventFiring[d]=[]}a.isConstructed=!0;sa.__postConstruct__.call(this)}});var w=l.prototype;v(w,"alpha",{configurable:!1,
get:function(){return this[t].raw.attr("opacity")},set:function(a){var b=this[t].raw;h(b);b.attr("opacity",a)}});v(w,"blendMode",{get:z("flash.display.DisplayObject#blendMode"),set:function(){h(this[t].raw);return this.blendMode}});v(w,"blendShader",{set:function(){h(this[t].raw)},get:function(){throw new ReferenceError("Error #1077: Illegal read of write-only property blendShader.");}});v(w,"filters",{set:function(a){var b=this[t].raw;h(b);this[t].attrs.filters=a;for(var d=[],e=0;e<a.length;e++){var f=
a[e][t].raw;f instanceof c.filter.BaseFilter&&d.push(f)}b.attr("filters",d)},get:function(){return this[t].attrs.filters}});v(w,"height",{set:function(a){var b=this[t].raw;b.attr("scaleY",a/b.getBoundingBox().height);h(b)},get:function(){var a=this[t].raw;return a.getBoundingBox().height*a.attr("scaleY")}});C(w,"loaderInfo",function(){return this[t].loaderInfo||d.stage.loaderInfo});v(w,"name",{get:function(){return this[t].name},set:function(a){this[t].name=a}});k(w,"mask",{set:function(a){var b=
this[t],c=b._maskObject;c&&(c.visible=b._maskObjectVisible);if(b._maskObject=a)b._maskObjectVisible=a.visible,a.visible=!1}});C(w,"mouseX",function(){for(var a=0,b=this.parent,c=this.stage;b&&b!=c;)a+=b.x,b=b.parent;return E-a});C(w,"mouseY",function(){for(var a=0,b=this.parent,c=this.stage;b&&b!=c;)a+=b.y,b=b.parent;return r-a});v(w,"opaqueBackground",{get:z({name:"flash.display.DisplayObject#opaqueBackground",returnValue:null}),set:function(){h(this[t].raw);return this.opaqueBackground}});e.setAccessor(w,
"parent",{get:function(){var a=e.getPrivateObjectOf(this),b=null;a.isRootMovie?b=d.stage:a.parent&&(b=a.parent);return b}});C(w,"root",function(){if(null==this.stage)return null;if(this==d.stage||this.parent==d.stage&&!this[t].isRootMovie)return d.stage;for(var a=this;a.parent&&!a[t].isRootMovie;)a=a.parent;return a});v(w,"rotation",{configurable:!1,get:function(){return e.radToDeg(this[t].raw.attr("rotation"))},set:function(a){isFinite(a)||(a=0);var b=this[t].raw;h(b);return b.attr("rotation",e.degToRad(a))}});
v(w,"rotationX",{get:z({name:"flash.display.DisplayObject#rotationX",returnValue:0}),set:function(){h(this[t].raw);return this.rotationX}});v(w,"rotationY",{get:z({name:"flash.display.DisplayObject#rotationY",returnValue:0}),set:function(){h(this[t].raw);return this.rotationY}});v(w,"rotationZ",{get:function(){return this.rotation},set:function(a){this.rotation=a}});v(w,"scale9Grid",{get:z({name:"flash.display.DisplayObject#scale9Grid",returnValue:null}),set:function(){h(this[t].raw);return this.scale9Grid}});
n(w,"scaleX");n(w,"scaleY");v(w,"scaleZ",{get:z("flash.display.DisplayObject#scaleZ"),set:function(){h(this[t].raw);return this.scaleZ}});v(w,"scrollRect",{get:function(){return this[t].scrollRect},set:function(a){h(this[t].raw);this[t].scrollRect=a}});C(w,"stage",function(){var a=this.parent;return a?a.stage:null});v(w,"width",{set:function(a){var b=this[t].raw;b.attr("scaleX",a/b.getBoundingBox().width);h(b)},get:function(){var a=this[t].raw;return a.getBoundingBox().width*a.attr("scaleX")}});v(w,
"visible",{configurable:!1,get:function(){return this[t].raw.attr("visible")},set:function(a){this[t].raw.attr("visible",!!a)}});v(w,"x",{get:function(){return this[t].raw.attr("x")},set:function(a){isFinite(a)||(a=0);var b=this[t].raw;h(b);b.attr("x",a)}});v(w,"y",{get:function(){return this[t].raw.attr("y")},set:function(a){isFinite(a)||(a=0);var b=this[t].raw;h(b);b.attr("y",a)}});v(w,"z",{get:z({name:"flash.display.DisplayObject#z",returnValue:0}),set:function(){h(this[t].raw);return this.z}});
e.forEach(["getRect","globalToLocal3D","hitTestPoint","local3DToGlobal"],function(a){w[a]||(w[a]=z("flash.display.DisplayObject#"+a))});return l}(y,O,N,Z,k,R,o,H,A,P,Sa);Vb=function(c,a,b){function d(){b.call(this);this[e].audioObject=null}var e=c.expando;a({qualifiedName:"flash.media.SoundChannel",constructor:d,superClass:b,stop:function(){this[e].audioObject.stop()}});return d}(k,o,H);Wb=function(c,a,b){function d(){}a({qualifiedName:"flash.events.UncaughtErrorEvents",constructor:d,superClass:b});
return d}(k,o,H);Xb=function(c,a,b){function d(){}var e=c.setDescriptor,c=c.createDummyFunction;a({qualifiedName:"flash.display.Bitmap",constructor:d,superClass:b});a=d.prototype;e(a,"bitmapData",{get:c({name:"bitmapData",returnType:""}),set:c({name:"bitmapData"})});e(a,"pixelSnapping",{get:c({name:"pixelSnapping",returnType:"String"}),set:c({name:"pixelSnapping"})});e(a,"smoothing",{get:c({name:"smoothing",returnType:"Boolean"}),set:c({name:"smoothing"})});return d}(k,o,M);Yb=function(c,a,b){function d(){this.__preConstruct__();
this.__construct__();this.__postConstruct__()}var e=b.prototype;a({qualifiedName:"flash.display.MorphShape",constructor:d,superClass:b,__preConstruct__:function(){var a=c.getPrivateObjectOf(this);e.__preConstruct__.call(this);a.preConstructed=!0},__construct__:function(){e.__construct__.call(this)},__postConstruct__:function(){e.__postConstruct__.call(this)}});return d}(k,o,M);Zb=function(c,a,b,d){function e(){this.__preConstruct__();this.__construct__();this.__postConstruct__()}var f=c.expando,g=
b.prototype;a({qualifiedName:"flash.display.Shape",constructor:e,superClass:b,__preConstruct__:function(){var a=c.getPrivateObjectOf(this);a.raw||(a.raw=new bonsai.Group);a.graphics||(a.graphics=new d);g.__preConstruct__.call(this);c.setDescriptor(this,"graphics",{get:function(){a.isRootMovie||a.graphics[f].raw.addTo(a.raw);return a.graphics}});a.preConstructed=!0},__construct__:function(){g.__construct__.call(this)},__postConstruct__:function(){g.__postConstruct__.call(this)}});return e}(k,o,M,ca);
$b=function(c,a,b){function d(){}var e=c.createDummyFunction,c=c.setDescriptor;a({qualifiedName:"flash.text.StaticText",constructor:d,superClass:b});c(d.prototype,"text",{get:e({name:"text",returnType:"String"})});return d}(k,o,M);ea=function(c,a,b,d,e,f){function g(){var a=c.getPrivateObjectOf(this);a.attrs.isInstanceOfInteractiveObject=!0;a.preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}function i(a,b,d){var f=c.getPrivateObjectOf(a),l=function(){c.dispatchEventWithoutBubbling(a,
new e(d,!0,!0,0,0,a))};c.connectOnDemand(d,f,function(){f.raw.on(b,a,l)},function(){f.raw.removeListener(b,a,l)})}var j=b.prototype;a({qualifiedName:"flash.display.InteractiveObject",constructor:g,superClass:b,__preConstruct__:function(){var a=c.getPrivateObjectOf(this);(!a||!a.raw)&&console.error("No `raw` is defined for InteractiveObject");j.__preConstruct__.call(this);i(this,"click",e.CLICK);i(this,"pointermove",e.MOUSE_MOVE);i(this,"pointerdown",e.MOUSE_DOWN);i(this,"pointerup",e.MOUSE_UP);i(this,
"mouseover",e.MOUSE_OVER);i(this,"mouseout",e.MOUSE_OUT);i(this,"mouseover",e.ROLL_OVER);i(this,"mouseout",e.ROLL_OUT);a.raw.on("keydown",this,function(a){a=new f(f.KEY_DOWN,!0,!0,a.charCode,a.keyCode,null,a.ctrlKey,a.altKey,a.shiftKey);c.dispatchEventWithoutBubbling(this,a)});a.raw.on("keyup",this,function(a){a=new f(f.KEY_UP,!0,!0,a.charCode,a.keyCode,null,a.ctrlKey,a.altKey,a.shiftKey);c.dispatchEventWithoutBubbling(this,a)});a.preConstructed=!0;a.tabEnabled=!1;a.mouseEnabled=!0},__construct__:function(){j.__construct__.call(this)},
__postConstruct__:function(){j.__postConstruct__.call(this)}});a=g.prototype;c.setDescriptor(a,"tabEnabled",{get:function(){return this[c.expando].tabEnabled},set:function(a){var b=c.getPrivateObjectOf(this),e=b.tabEnabled;b.tabEnabled=a;e!=a&&this.dispatchEvent(new d(d.TAB_ENABLED_CHANGE))}});c.setDescriptor(a,"mouseEnabled",{get:function(){return this[c.expando].mouseEnabled},set:function(a){var b=c.getPrivateObjectOf(this);b.mouseEnabled=a;b.raw.attr("interactive",a)}});return g}(k,o,M,A,B,L);
ac=function(c,a,b,d,e){function f(a,b){d.call(this);this.url="";this[j].raw=(new bonsai.Group).addTo(bonsai.stage);this[j].audioObjects=[];a&&this.load(a,b)}function g(a){a.destroy()}var i=c.createDummyFunction,j=c.expando;a({qualifiedName:"flash.media.Sound",constructor:f,superClass:d,close:function(){},extract:i({name:"extract",returnType:"Number"}),load:function(a){var c=this[j];this.dispatchEvent(new b(b.OPEN));c.masterAudio&&(g(c.masterAudio),c.audioObjects.forEach(g),c.audioObjects=[]);this.url=
a.url;c.masterAudio=new bonsai.Audio(this.url)},play:function(a,b,c){var b=null,d=this[j].masterAudio;d&&(b=d.clone().addTo(this[j].raw),b.prepareUserEvent(),c&&b.attr("volume",c.volume),b.play(a||0),this[j].audioObjects.push(b));a=new e;a[j].audioObject=b;return a}});a=f.prototype;c.setReadOnly(a,"bytesLoaded",i({name:"bytesLoaded",returnType:"Number"}));c.setReadOnly(a,"bytesTotal",i({name:"bytesTotal",returnType:"Number"}));c.setReadOnly(a,"id3",i({name:"id3",returnType:"Object"}));c.setReadOnly(a,
"isBuffering",i({name:"isBuffering",returnType:"Boolean"}));c.setReadOnly(a,"isURLInaccessible",i({name:"isURLInaccessible",returnType:"Boolean"}));c.setReadOnly(a,"length",i({name:"length",returnType:"Number"}));return f}(k,o,A,H,Vb);U=function(c,a,b,d,e,f,g,i,j,m,p,s,h){function l(){var a=new s,b;for(b in n)a[b]=n[b];return a}function u(){a.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}var n={align:"left",blockIndent:0,bold:!1,bullet:!1,
color:0,font:"Times",indent:0,italic:!1,kerning:!1,leading:0,leftMargin:0,letterSpacing:0,rightMargin:0,size:12,tabStops:[],target:"",underline:!1,url:""},q=a.expando,t=j.htmlTextFormatWrapper,z=i.prototype;u.isFontCompatible=a.createDummyFunction("display.TextField#isFontCompatible");d({qualifiedName:"flash.text.TextField",constructor:u,superClass:i,__preConstruct__:function(){var b=a.getPrivateObjectOf(this);b.raw?(b.textField||(b.textField=b.raw.children()[0]),b.textField.innerHTML(t(b.textField.attr("htmlText"),
"setHtmlFlag"))):(b.raw=new c.Group,b.textField=(new j).addTo(b.raw),b.textField.text.attr("leading",2));z.__preConstruct__.call(this);this.alwaysShowSelection=!1;this.antiAliasType=f.NORMAL;b.textField.on("change",this,function(){this.dispatchEvent(new e(e.CHANGE))});this.caretIndex=this.bottomScrollV=0;this.embedFonts=this.displayAsPassword=this.condenseWhite=!1;this.gridFitType=g.PIXEL;this.maxScrollV=this.maxScrollH=0;this.mouseWheelEnabled=!0;this.numLines=0;var d=null;a.setDescriptor(this,"restrict",
{get:function(){return d},set:function(a){d=a;a=this._generateRestrictRegExp(d);b.textField.innerBox.setAttribute("onkeypress","return /"+a.source+"/.test(String.fromCharCode(event.charCode));")}});this.scrollV=this.scrollH=0;this.selectable=!0;this.sharpness=this.selectionEndIndex=this.selectionBeginIndex=0;var h=null;a.setDescriptor(this,"styleSheet",{get:function(){return h},set:function(a){h=a;b.textField.attr("styleSheet",h)}});a.setDescriptor(this,"text",{get:function(){return this[q].textField.attr("text")},
set:function(a){if(a===void 0||a===null)a="";return a===this[q].textField.attr("text")?void 0:this[q].textField.attr("text",a)}});this.textInteractionMode=null;this.thickness=0;var m=p.DYNAMIC;a.setDescriptor(this,"type",{get:function(){return m},set:function(a){m=a;b.textField.attr("editable",m===p.INPUT);b.tabEnabled=m=="input"}});this.useRichTextClipboard=!1;b.preConstructed=!0;b.defaultTextFormat=l()},__construct__:function(){z.__construct__.call(this)},__postConstruct__:function(){z.__postConstruct__.call(this)},
_generateRestrictRegExp:function(b){var c,d="",e="",b=b.match(/(?:^|\^)(?:\\\^|.)+?(?=$|\^)/g);a.forEach(b,function(a){"^"===a.charAt(0)&&(a=a.slice(1),c=!c);c?e+=a:d+=a});return RegExp((e?"(?!["+e+"])":"")+(d?"["+d+"]":""))},appendText:function(a){this.text+=a},getCharBounderies:a.createDummyFunction("display.TextField#getCharBounderies"),getCharIndexAtPoint:a.createDummyFunction("display.TextField#getCharIndexAtPoint"),getFirstCharInParagraph:a.createDummyFunction("display.TextField#getFirstCharInParagraph"),
getImageReference:a.createDummyFunction("display.TextField#getImageReference"),getLineIndexAtPoint:a.createDummyFunction("display.TextField#getLineIndexAtPoint"),getLineIndexOfChar:a.createDummyFunction("display.TextField#getLineIndexOfChar"),getLineLength:a.createDummyFunction("display.TextField#getLineLength"),getLineMetrics:a.createDummyFunction("display.TextField#getLineMetrics"),getLineOffset:a.createDummyFunction("display.TextField#getLineOffset"),getLineText:a.createDummyFunction("display.TextField#getLineText"),
getParagraphLength:a.createDummyFunction("display.TextField#getParagraphLength"),getTextFormat:function(){if(this.text){var a=this[q].textField.text.raw;return new s(a.font,a.size,a.color,a.bold,a.italic,a.underline,a.url,a.target,a.align,a.leftMargin,a.rightMargin,a.indent,a.leading)}return new s},replaceSelectedText:a.createDummyFunction("display.TextField#replaceSelectedText"),replaceText:function(a,b,c){if(!(0>a||0>b)){var d=this[q].textField,e=d.attr("text");d.attr("text",e.substring(0,a)+c+
e.substring(b))}},setSelection:a.createDummyFunction("display.TextField#setSelection"),setTextFormat:function(a){var b=this[q].textField,c;for(c in a)null!=a[c]&&b.text.attr(c,a[c])}});d=u.prototype;a.setDescriptor(d,"htmlText",{get:function(){return this[q].textField.attr("htmlText")},set:function(a){this[q].textField.attr("htmlText",a)}});a.setDescriptor(d,"textColor",{get:function(){return this[q].textField.text.attr("color")},set:function(a){return this[q].textField.text.attr("color",a)}});a.setDescriptor(d,
"maxChars",{get:function(){return this[q].textField.attr("maxChars")},set:function(a){this[q].textField.attr("maxChars",a)}});a.setDescriptor(d,"wordWrap",{get:function(){return this[q].textField.attr("wordWrap")},set:function(a){return this[q].textField.attr("wordWrap",a)}});a.setDescriptor(d,"background",{get:function(){return this[q].textField.attr("background")},set:function(a){this[q].textField.attr("background",a)}});a.setDescriptor(d,"backgroundColor",{get:function(){return this[q].textField.attr("backgroundColor")},
set:function(a){this[q].textField.attr("backgroundColor",a)}});a.setDescriptor(d,"autoSize",{get:function(){return this[q].textField.attr("autoSize")},set:function(a){var c=this[q];switch(a){case m.LEFT:c.textField.attr("autoSize","left");break;case m.RIGHT:c.textField.attr("autoSize","right");break;case m.CENTER:c.textField.attr("autoSize","center");break;case m.NONE:c.textField.attr("autoSize","none");break;default:throw new b("Error #2008: Parameter autoSize must be one of the accepted values.");
}}});a.setDescriptor(d,"border",{get:function(){return this[q].textField.attr("border")},set:function(a){this[q].textField.attr("border",a)}});a.setDescriptor(d,"borderColor",{get:function(){return this[q].textField.attr("borderColor")},set:function(a){return this[q].textField.attr("borderColor",a)}});a.setDescriptor(d,"defaultTextFormat",{get:function(){return a.getPrivateObjectOf(this).defaultTextFormat},set:function(a){for(var b=Object.keys(n),c=0,d=b.length;c<d;c++)null!==a[b[c]]&&(this.defaultTextFormat[b[c]]=
a[b[c]])}});a.setDescriptor(d,"width",{get:function(){return this[q].textField.attr("width")},set:function(a){return this[q].textField.attr("width",a)}});a.setDescriptor(d,"height",{get:function(){return this[q].textField.attr("height")},set:function(a){return this[q].textField.attr("height",a)}});a.setDescriptor(d,"html",{get:function(){return this[q].textField.attr("html")},set:function(a){this[q].textField.attr("html",a)}});a.setDescriptor(d,"length",{get:function(){return this[q].textField.attr("text").length}});
a.setDescriptor(d,"multiline",{get:function(){return this[q].textField.attr("multiline")},set:function(a){this[q].textField.attr("multiline",a)}});a.setReadOnly(d,"textHeight",function(){return h.getTextHeight(this.text,this.defaultTextFormat)});a.setReadOnly(d,"textWidth",function(){return h.getTextWidth(this.text,this.defaultTextFormat)});return u}(y,k,R,o,A,Ja,Ia,ea,qa,Ka,La,oa,Ca);V=function(c,a,b,d,e){function f(b,c,d,e){a.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__(b,
c,d,e);this.__postConstruct__()}var g=a.expando,i=a.setDescriptor,j=d.prototype;b({qualifiedName:"flash.display.SimpleButton",constructor:f,superClass:d,__preConstruct__:function(){var b=a.getPrivateObjectOf(this);b.raw||(b.raw=new e);j.__preConstruct__.call(this);b.up=null;b.over=null;b.down=null;b.hitTest=null;var c=!1;i(this,"enabled",{get:function(){return c},set:function(a){c=a}});i(this,"hitTestState",{get:function(){return b.hitTest},set:function(a){b.hitTest=a;b.raw.addEventAreaChild(a[g].raw)}});
i(this,"downState",{get:function(){return b.down},set:function(a){b.down=a;b.raw.stateChildren.active.clear();b.raw.addActiveStateChild(a[g].raw)}});i(this,"overState",{get:function(){return b.over},set:function(a){b.over=a;b.raw.stateChildren.hover.clear();b.raw.addHoverStateChild(a[g].raw)}});i(this,"upState",{get:function(){return b.up},set:function(a){b.up=a;b.raw.stateChildren.normal.clear();b.raw.addNormalStateChild(a[g].raw)}});var d=!0;i(this,"useHandCursor",{get:function(){return d},set:function(a){d=
a;b.raw.eventArea.attr("cursor",d?"pointer":"")}})},__construct__:function(b,c,d,e){j.__construct__.call(this);for(var f=a.getPrivateObjectOf(this),g=f.raw.stateChildren.normal.children(),n=0,q=g.length;n<q;n++)g[n].__flash__&&g[n].__flash__.constructor();g=f.raw.stateChildren.hover.children();n=0;for(q=g.length;n<q;n++)g[n].__flash__&&g[n].__flash__.constructor();g=f.raw.stateChildren.active.children();n=0;for(q=g.length;n<q;n++)g[n].__flash__&&g[n].__flash__.constructor();b&&(this.upState=b);c&&
(this.overState=c);d&&(this.downState=d);e&&(this.hitTestState=e);this.enabled=this.useHandCursor=!0;this.soundTransform=null;this.trackAsMenu=!1;this.tabEnabled=!0},__postConstruct__:function(){j.__postConstruct__.call(this)}});return f}(y,k,o,ea,la);va=function(c,a,b,d,e,f,g,i){function j(a,b,c){a=a.childContainer||a;b=b.treeRepresentation||b;3>arguments.length?a.addChild(b):a.addChild(b,c)}function m(a,b){a=a.childContainer||a;b=b.treeRepresentation||b;a.removeChild(b)}function p(){b.getPrivateObjectOf(this).preConstructed||
this.__preConstruct__();this.__construct__();this.__postConstruct__()}function s(a,c){var d=new f(f.ADDED,!0);d.currentTarget=a;b.getPrivateObjectOf(d).attrs.eventPhase=3;var e=b.getPrivateObjectOf(c);if(e.isConstructed){if(e=c,e!=e.parent)for(;e;)d.currentTarget=e,b.dispatchEventWithoutBubbling(e,d),e=e.parent}else e.deferredEventFiring.added.push([c,d])}function h(a){for(var c=!1,d=b.getPrivateObjectOf(this).children,e=0,f=d.length;e<f;e++){var n=d[e];n==a&&(c=!0);!c&&n.numChildren&&(c=h.apply(n,
[a]));if(c)break}return c}var l=b.expando,u=g.prototype;d({qualifiedName:"flash.display.DisplayObjectContainer",constructor:p,superClass:g,__preConstruct__:function(){u.__preConstruct__.call(this);var a=b.getPrivateObjectOf(this);a.children=a.raw.children().map(function(a){return a.__flash__});a.preConstructed=!0},__construct__:function(){u.__construct__.call(this)},__postConstruct__:function(){u.__postConstruct__.call(this)},addChild:function(c){if(this==c)throw new e(a.getById(2024));var d=c[l];
d.parent=this;this[l].children.push(c);s(this,c);j(this[l].raw,d.raw);b.setMovieClipInteractiveState(this,this.mouseEnabled);return c},addChildAt:function(c,d){if(this==c)throw new e(a.getById(2024));var f=this[l],h=f.children;if(d>h.length)throw new RangeError(a.getById(2006));var n=c[l];n.parent=this;h.splice(d,0,c);s(this,c);f.graphics instanceof i&&(d+=1);j(f.raw,n.raw,d);b.setMovieClipInteractiveState(this,this.mouseEnabled);return c},contains:h,getChildAt:function(a){var b=this[l].children;
if(a>=b.length)throw RangeError("Error #2006");return b[a]},getChildByName:function(a){for(var b=this[l].children,c=0,d=b.length;c<d;c++)if(b[c].name==a)return b[c];return null},removeChild:function(a){var b=this[l],c=b.children,d=c.indexOf(a);if(-1!==d)return c.splice(d,1),m(b.raw,a[l].raw),a;throw e("Error #2025");},removeChildAt:function(a){var b=this[l],c=b.children;if(a<c.length){var d=c[a];c.splice(a,1);m(b.raw,d[l].raw);return d}throw RangeError("Error #2006");}});var n=p.prototype;n.tabChildren=
!0;b.forEach("areInaccessibleObjectsUnderPoint,getChildIndex,getObjectsUnderPoint,removeChildren,setChildIndex,swapChildren,swapChildrenAt".split(","),function(a){n[a]=b.createDummyFunction("flash.display.DisplayObjectContainer#"+a)});b.setAccessor(n,"numChildren",{get:function(){return this[l].children.length}});b.setDescriptor(n,"mouseEnabled",{get:function(){return this[b.expando].mouseEnabled},set:function(a){b.getPrivateObjectOf(this).mouseEnabled=a;b.setMovieClipInteractiveState(this,a)}});
return p}(y,N,k,o,R,A,ea,ca);ga=function(c,a){function b(){a.prototype.constructor.call(this)}c({constructor:b,superClass:a});return b}(r,U);wa=function(c,a,b,d,e){function f(){d.prototype.constructor.call(this);var b=a.getPrivateObjectOf(this);b.as2Attrs||(b.as2Attrs={})}b({constructor:f,superClass:d,getDepth:a.createDummyFunction("Button.getDepth")});b=f.prototype;c.createPropertyMappings([["_alpha","alpha",{as2ToAs3:c.hundredToOne,as3ToAs2:c.oneToHundred}],["_height","height"],["_name","name"],
["_parent","parent"],["_rotation","rotation"],["_visible","visible"],["_width","width"],["_x","x"],["_y","y"],["_xscale","scaleX",{as2ToAs3:c.hundredToOne,as3ToAs2:c.oneToHundred}],["_yscale","scaleY",{as2ToAs3:c.hundredToOne,as3ToAs2:c.oneToHundred}]],b);a.setDescriptor(b,"onRelease",{set:function(b){var c=a.getPrivateObjectOf(this);c.as2Attrs.onReleaseFunc&&this.removeEventListener(e.CLICK,c.as2Attrs.onReleaseFunc);this.addEventListener(e.CLICK,a.hitch(this,b));c.as2Attrs.onReleaseFunc=b},get:function(){var b=
a.getPrivateObjectOf(this);return b.as2Attrs&&b.as2Attrs.onReleaseFunc||void 0}});a.setDescriptor(b,"blendMode",{set:a.createDummyFunction("SETTER Button.blendMode"),get:a.createDummyFunction("GETTER Button.blendMode")});a.setDescriptor(b,"cacheAsBitmap",{set:a.createDummyFunction("SETTER Button.cacheAsBitmap"),get:a.createDummyFunction("GETTER Button.cacheAsBitmap")});a.setDescriptor(b,"enabled",{set:a.createDummyFunction("SETTER Button.enabled"),get:a.createDummyFunction("GETTER Button.enabled")});
a.setDescriptor(b,"_focusrect",{set:a.createDummyFunction("SETTER Button._focusrect"),get:a.createDummyFunction("GETTER Button._focusrect")});a.setDescriptor(b,"_highquality",{set:a.createDummyFunction("SETTER Button._highquality"),get:a.createDummyFunction("GETTER Button._highquality")});a.setDescriptor(b,"menu",{set:a.createDummyFunction("SETTER Button.menu"),get:a.createDummyFunction("GETTER Button.menu")});a.setDescriptor(b,"onDragOut",{set:a.createDummyFunction("SETTER Button.onDragOut"),get:a.createDummyFunction("GETTER Button.onDragOut")});
a.setDescriptor(b,"onDragOver",{set:a.createDummyFunction("SETTER Button.onDragOver"),get:a.createDummyFunction("GETTER Button.onDragOver")});a.setDescriptor(b,"onKeyDown",{set:a.createDummyFunction("SETTER Button.onKeyDown"),get:a.createDummyFunction("GETTER Button.onKeyDown")});a.setDescriptor(b,"onKeyUp",{set:a.createDummyFunction("SETTER Button.onKeyUp"),get:a.createDummyFunction("GETTER Button.onKeyUp")});a.setDescriptor(b,"onKillFocus",{set:a.createDummyFunction("SETTER Button.onKillFocus"),
get:a.createDummyFunction("GETTER Button.onKillFocus")});a.setDescriptor(b,"onPress",{set:a.createDummyFunction("SETTER Button.onPress"),get:a.createDummyFunction("GETTER Button.onPress")});a.setDescriptor(b,"onReleaseOutside",{set:a.createDummyFunction("SETTER Button.onReleaseOutside"),get:a.createDummyFunction("GETTER Button.onReleaseOutside")});a.setDescriptor(b,"onRollOut",{set:a.createDummyFunction("SETTER Button.onRollOut"),get:a.createDummyFunction("GETTER Button.onRollOut")});a.setDescriptor(b,
"onRollOver",{set:a.createDummyFunction("SETTER Button.onRollOver"),get:a.createDummyFunction("GETTER Button.onRollOver")});a.setDescriptor(b,"onSetFocus",{set:a.createDummyFunction("SETTER Button.onSetFocus"),get:a.createDummyFunction("GETTER Button.onSetFocus")});a.setDescriptor(b,"_quality",{set:a.createDummyFunction("SETTER Button._quality"),get:a.createDummyFunction("GETTER Button._quality")});a.setDescriptor(b,"scale9Grid",{set:a.createDummyFunction("SETTER Button.scale9Grid"),get:a.createDummyFunction("GETTER Button.scale9Grid")});
a.setDescriptor(b,"_soundbuftime",{set:a.createDummyFunction("SETTER Button._soundbuftime"),get:a.createDummyFunction("GETTER Button._soundbuftime")});a.setDescriptor(b,"tabEnabled",{set:a.createDummyFunction("SETTER Button.tabEnabled"),get:a.createDummyFunction("GETTER Button.tabEnabled")});a.setDescriptor(b,"tabIndex",{set:a.createDummyFunction("SETTER Button.tabIndex"),get:a.createDummyFunction("GETTER Button.tabIndex")});a.setDescriptor(b,"_target",{set:a.createDummyFunction("SETTER Button._target"),
get:a.createDummyFunction("GETTER Button._target")});a.setDescriptor(b,"trackAsMenu",{set:a.createDummyFunction("SETTER Button.trackAsMenu"),get:a.createDummyFunction("GETTER Button.trackAsMenu")});a.setDescriptor(b,"_url",{set:a.createDummyFunction("SETTER Button._url"),get:a.createDummyFunction("GETTER Button._url")});a.setDescriptor(b,"useHandCursor",{set:a.createDummyFunction("SETTER Button.useHandCursor"),get:a.createDummyFunction("GETTER Button.useHandCursor")});a.setDescriptor(b,"_xmouse",
{set:a.createDummyFunction("SETTER Button._xmouse"),get:a.createDummyFunction("GETTER Button._xmouse")});a.setDescriptor(b,"_ymouse",{set:a.createDummyFunction("SETTER Button._ymouse"),get:a.createDummyFunction("GETTER Button._ymouse")});return f}(ma,k,o,V,B);xa=function(c,a,b,d,e,f){function g(){b.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}function i(a){var b,c,d=a.x,e=a.y;null===r||null===ha?(k=a.deltaX,o=a.deltaY):(k+=d-r,o+=e-
ha);C?(b=d,c=e):(b=n+k,c=q+o);r=d;ha=e;this.x=t?s(t.right,h(b,t.left)):b;this.y=t?s(t.bottom,h(c,t.top)):c;b=this[p];a:{if(a=a.underPointer)for(var f,d=this.root,e=0;f=a[e];e+=1){do c=f.__flash__,f=f.parent;while(!c&&f);if(c&&c!==d){for(f=c;c&&c!==this&&c!==d;)c=c.parent;if(c!==this){a=f;break a}}}a=null}b.dropTarget=a}function j(a,b){m();u=this;n=this.x;q=this.y;r=ha=null;C=a;t=b instanceof f?b:null;bonsai.stage.on("pointermove",this,i)}function m(){bonsai.stage.removeListener("pointermove",u,i);
u=null}var p=b.expando,s=Math.min,h=Math.max,l=d.prototype,u,n,q,t,k,o,C,r=null,ha=null;a({qualifiedName:"flash.display.Sprite",constructor:g,superClass:d,__preConstruct__:function(){var a=b.getPrivateObjectOf(this);b.hasKey(a,"raw")||(a.raw=new bonsai.Group);b.hasKey(a,"isRootMovie")||(a.isRootMovie=!1);a.dropTarget=null;l.__preConstruct__.call(this);a.graphics=new e;a.graphics[p].raw.attr("data","Graphics"+this);a.raw.addChild(a.graphics[p].raw,0);a.preConstructed=!0},__construct__:function(){this.__constructChildren__(this[b.expando].raw,
this);l.__construct__.call(this)},__postConstruct__:function(){l.__postConstruct__.call(this)},__constructChildren__:function(){for(var a,b=this.numChildren,c=0;c<b;c++)a=this.getChildAt(c),a.constructor.call(a)},startDrag:j,startTouchDrag:j,stopDrag:m,stopTouchDrag:m});c=g.prototype;b.setAccessor(c,"useHandCursor",{set:function(a){a?this[p].raw.attr("cursor","pointer"):this[p].raw.attr("cursor","default");this[p].useHandCursor=a},get:function(){return!!this[p].useHandCursor}});b.setDescriptor(c,
"graphics",{get:function(){return this[p].graphics}});b.setDescriptor(c,"buttonMode",{set:function(a){b.getPrivateObjectOf(this).tabEnabled=a}});b.setDescriptor(c,"dropTarget",{get:function(){return this[p].dropTarget}});return g}(S,o,k,va,ca,P);bc=function(c,a){function b(){}c({constructor:b});return a.StyleSheet=b}(r,ga);cc=function(c,a,b,d){function e(){a.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}function f(a,b){var c=this[j].frameScripts[b];
c&&c()}function g(a,b){var c=a[j],d=c.raw,e=d.currentFrame,h=b,g=parseInt(h,10),l=d.swf&&d.swf.frameLabels;isNaN(g)?l&&h in l?h=l[h]:console.error("No frame found for label: "+h):h=m(1,p(g,d.length()))-1;b=d.currentFrame=h;e!==b&&(a.__goto__(d,b,a),f.call(a,null,b),c.lastScriptFrame=b);return d}var i=c.Movie,j=a.expando,m=Math.max,p=Math.min,s=a.setImmutable,h=Object.create(Object.prototype,{frameScripts:{enumerable:!0,get:function(){return[]}},raw:{enumerable:!0,get:function(){return new i}}}),l=
a.getPrivateObjectOf,u=d.prototype;b({qualifiedName:"flash.display.MovieClip",constructor:e,superClass:d,__preConstruct__:function(){var b=l(this,h);b.raw.shimsAreBound||(b.raw.shimsAreBound=!0,b.raw.on("advance",this,function(){c.stage.once("subMoviesAdvanced",function(){var a=b.raw,d=a.currentFrame;try{d!==b.lastScriptFrame&&(b.lastScriptFrame=d,a.emit("runframescripts",a,d))}catch(e){console.log("AS3VM threw an error... stopping movie.","\n"+e,e.stack?e.stack:""),c.stage.root.freeze()}})}));u.__preConstruct__.call(this);
a.getPrivateObjectOf(this).preConstructed=!0},__construct__:function(){u.__construct__.call(this)},__postConstruct__:function(){u.__postConstruct__.call(this)},addFrameScript:function(){for(var b=l(this,h),c=b.frameScripts,d=0,e=arguments.length;d<e;d+=2)c[arguments[d]]=arguments[d+1];b.handleFrameScripts||(b.handleFrameScripts=f,b.raw.on("runframescripts",a.hitch(this,b.handleFrameScripts)))},__goto__:a.noop,gotoAndPlay:function(a,b){this[j].raw.play();g(this,a,b)},gotoAndStop:function(a,b){this[j].raw.stop();
g(this,a,b)},nextFrame:function(){this.gotoAndStop(this.currentFrame+1)},prevFrame:function(){this.gotoAndStop(this.currentFrame-1)},play:function(){this[j].raw.play()},stop:function(){this[j].raw.stop()}});b=e.prototype;s(b,{name:"totalFrames",get:function(){return this[j].raw.length()}});s(b,{name:"framesLoaded",get:function(){return this[j].raw.length()}});s(b,{name:"currentFrame",get:function(){return this[j].raw.currentFrame+1}});return e}(y,k,o,xa);dc=function(c,a,b,d,e){function f(c,d){if(0==
arguments.length)throw new b("1136: Incorrect number of arguments. Expected 1.");if(2<arguments.length)throw new b("1137: Incorrect number of arguments. Expected no more than 2.");f.__super__.constructor.call(this);var e=this[i],h;a.setDescriptor(this,"delay",{set:function(a){if(0>a||Infinity==a)throw new RangeError("#2066: The Timer delay specified is out of range.");h=a},get:function(){return h}});this.delay=c;this.repeatCount=d||0;a.setImmutable(this,{name:"currentCount",get:function(){return e.currentCount}});
a.setImmutable(this,{name:"running",get:function(){return e.running}});e.currentCount=0;e.running=!1;e.hitchedOneIteration=a.hitch(this,g);e.stopped=!0;this.start=function(){e.stopped=!1;e.running=!0;setTimeout(e.hitchedOneIteration,this.delay)};this.stop=function(){e.stopped=!0};this.reset=function(){this.stop();e.currentCount=0}}function g(){this[i].stopped||(this[i].currentCount++,this.dispatchEvent(new e(e.TIMER)),0===this.repeatCount||this[i].currentCount<this.repeatCount?setTimeout(this[i].hitchedOneIteration,
this.delay):(this[i].running=!1,this.dispatchEvent(new e(e.TIMER_COMPLETE))))}var i=a.expando,j=a.noop;c({qualifiedName:"flash.utils.Timer",constructor:f,superClass:d,reset:j,start:j,stop:j});return f}(o,k,R,H,T);ec=function(c,a,b){function d(a){var b=typeof a;return null===a||void 0===a||"boolean"===b||"number"===b||"string"===b||a instanceof s||a instanceof h||a instanceof p?h(a):a}function e(){this[m]={keys:[],values:[],deleteProperty:f,has:g,get:i,set:j}}function f(a){var b=this.keys,a=b.indexOf(d(a));
return-1!==a?(b.splice(a,1),this.values.splice(a,1),!0):!1}function g(a){return-1!==this.keys.indexOf(d(a))}function i(a){return this.values[this.keys.indexOf(d(a))]}function j(a,b){var a=d(a),c=this.keys,e=c.indexOf(a);-1!==e?this.values[e]=b:(this.values.push(b),c.push(a))}var m=b.expando,p=a.Boolean,s=a.Number,h=a.String;c({qualifiedName:"flash.utils.Dictionary",constructor:e,hasOwnProperty:function(a){return this[m].has(a)},toJSON:function(){var a=this[m],b=a.values,a=a.keys.reduce(function(a,
c,d){a[d]={key:c,value:b[d]};return a},{});return JSON.stringify(a)}});return e}(o,F,k);fc=function(){var c={}.toString;return function(a){return"[object String]"===c.call(a)}}();gc=function(c,a,b,d){function e(d,g){var m=arguments.length,p=c.QName;m||(d=g="");if(1===m)if(d instanceof e)g=d.uri,d=d.prefix;else if(p&&d instanceof p)g=d.uri,d="";else{if(d===Object(d))return b.mixin(this,d)}else p&&g instanceof p&&(g=g.uri),d=a(d)?""+d:void 0;f(this,"prefix",d);f(this,"uri",""+g)}var f=b.setImmutable,
g=b.setPseudoPrivate;d({constructor:e});g(e,"isBuiltIn",!0);g(e.prototype,"isNamespace",!0);b.setDescriptor(e.prototype,"toString",{enumerable:!1,value:function(){return this.uri}});return e}(S,fc,k,o);hc=function(c,a,b){function d(a){if(!(this instanceof d))return new d(a);this.message=a}a({qualifiedName:"flash.errors.EOFError",constructor:d,superClass:b});return d}(k,o,ra);ic=function(c,a,b){function d(){var a=new ArrayBuffer(p);this[h]={data:this,length:Math.max(0,+this.length),deleteProperty:i,
get:f,has:g,set:e};k(this,"_buffer",{value:a,enumerable:!1});k(this,"_dataView",{enumerable:!1});k(this,"_int8View",{enumerable:!1});k(this,"_isLE",{value:!1,enumerable:!1});k(this,"_length",{value:0,enumerable:!1});k(this,"_objectEncoding",{value:3,enumerable:!1});k(this,"_position",{value:0,enumerable:!1});k(this,"bytesAvailable",{get:function(){return this._length-this._position},configurable:!1});l(this,"endian",{get:function(){return this._isLe?"littleEndian":"bigEndian"},set:function(a){if("littleEndian"!=
a&&"bigEndian"!=a)throw ReferenceError("Error #2008");this._isLe="littleEndian"===a},configurable:!1});l(this,"length",{get:function(){var a=this._length,b=-1,c;for(c in this)c==+c&&(b=Math.max(b,c));return Math.max(a,b+1)},set:function(a){var b=this._length;this._ensureBufferSize(a);this._length=a;for(b-=1;b>=a;b--)delete this[b]},configurable:!1});l(this,"objectEncoding",{get:function(){return this._objectEncoding},set:function(a){"string"==typeof a&&(a="0");if(isNaN(parseInt(a))||0!=a&&3!=a)throw ReferenceError("Error #2008");
this._objectEncoding=parseInt(a)},configurable:!1});l(this,"position",{get:function(){return this._position},set:function(a){if(0>a)throw ReferenceError("Error #1056");this._position=a},configurable:!1});this._setupViews()}function e(a,b){var c=this.data;if(a>c.length)throw RangeError("#1125: The index is ouf of range");a+1>=c.length&&(c.length+=1);c[a]=b}function f(a){if(!this.has(a))throw RangeError("#1125: The index is ouf of range");return this.data[a]}function g(a){return this.data.hasOwnProperty(a)}
function i(a){delete this.data[a]}function j(a){for(var b=new Int8Array(4*a.length),c=0,d=0,e=a.length;d<e;d++)if(127>=a.charCodeAt(d))b[c++]=a.charCodeAt(d);else for(var f=encodeURIComponent(a.charAt(d)).substr(1).split("%"),h=0,g=f.length;h<g;h++)b[c++]=parseInt(f[h],16);return b.subarray(0,c)}function m(a){for(var b="",c=String.fromCharCode,d=0,e=a.length;d<e;d++)var f=a[d],b=b+(127>=f?37===f?"%25":c(f):"%"+f.toString(16).toUpperCase());return decodeURIComponent(b)}var p=128,s=b("Error #2030: End of file was encountered."),
h=c.expando,l=c.setAccessor,k=c.setDescriptor;a({qualifiedName:"flash.utils.ByteArray",constructor:d,_ensureBufferSize:function(a){this._buffer.byteLength<a&&this._setBufferSize(a)},_setBufferSize:function(a){for(var b=this._buffer.byteLength,c=this._int8View;b<a;)b*=2;this._buffer=new ArrayBuffer(b);this._setupViews();this._int8View.set(c)},_setupViews:function(){this._dataView=new DataView(this._buffer);this._int8View=new Int8Array(this._buffer)},_read:function(a,b){if(this._position+b>this._length)throw s;
var c=this._dataView[a](this._position,this._isLE);this.position+=b;return c},_write:function(a,b,c){b=this._position+b;b>this.length&&(this.length=b);this._dataView[a](this._position,c,this._isLE);this.position=b},clear:function(){this.length=this.position=0;this._buffer=new ArrayBuffer(p);this._setupViews()},compress:c.createUnimplementedFunction("flash.utils.ByteArray#compress"),deflate:c.createUnimplementedFunction("flash.utils.ByteArray#deflate"),inflate:c.createUnimplementedFunction("flash.utils.ByteArray#inflate"),
readBoolean:function(){return!!this.readByte()},readByte:function(){return this._read("getInt8",1)},readBytes:function(a,b,c){c="undefined"!=typeof c?c:0;if(this._position+c>this._length)throw s;a._int8View.set(new Int8Array(this._buffer,this._position,c),"undefined"!=typeof b?b:0);a.length+=c;this.position+=c},readDouble:function(){return this._read("getFloat64",8)},readFloat:function(){return this._read("getFloat32",4)},readInt:function(){return this._read("getInt32",4)},readMultiByte:c.createUnimplementedFunction("flash.utils.ByteArray#readMultiByte"),
readObject:c.createUnimplementedFunction("flash.utils.ByteArray#readObject"),readShort:function(){return this._read("getInt16",2)},readUnsignedByte:function(){return this._read("getUint8",1)},readUnsignedInt:function(){return this._read("getUint32",4)},readUnsignedShort:function(){return this._read("getUint16",2)},readUTF:function(){return this.readUTFBytes(this.readShort())},readUTFBytes:function(a){var b=this._position;if(b+a>this._length)throw s;this.position+=a;return m(new Int8Array(this._buffer,
b,a))},toString:function(){return m(new Int8Array(this._buffer,0,this._length))},uncompress:c.createUnimplementedFunction("flash.utils.ByteArray#uncompress"),writeBoolean:function(a){this.writeByte(a)},writeByte:function(a){this._write("setInt8",1,a)},writeBytes:function(a,b,c){c="undefined"!=typeof c?c:a.length;a=new Int8Array(a._buffer||a.buffer,"undefined"!=typeof b?b:0,c);this.length=b=this._position+a.length;this._int8View.set(a,this._position);this.position=b},writeDouble:function(a){this._write("setFloat64",
8,a)},writeFloat:function(a){this._write("setFloat32",4,a)},writeInt:function(a){this._write("setInt32",4,a)},writeMultiByte:c.createUnimplementedFunction("flash.utils.ByteArray#writeMultiByte"),writeObject:c.createUnimplementedFunction("flash.utils.ByteArray#writeObject"),writeShort:function(a){this._write("setInt16",2,a)},writeUnsignedByte:function(a){this._write("setUint8",1,a)},writeUnsignedInt:function(a){this._write("setUint32",4,a)},writeUnsignedShort:function(a){this._write("setUint16",2,
a)},writeUTF:function(a){a=j(a||"");this.writeShort(a.length);this.writeBytes(a)},writeUTFBytes:function(a){this.writeBytes(j(a))}});return d}(k,o,hc);jc=function(c,a,b,d,e,f,g,i){a.__lookUpNameInVm=function(a){return bonsai.stage.toplevel.getType(a)};c=new e({ByteArray:f,Endian:new b,Dictionary:g,Timer:i,describeType:function(){return new XML("")},getTimer:d.getTimer,getQualifiedClassName:d.getQualifiedClassName,getQualifiedSuperclassName:d.getQualifiedSuperclassName,getDefinitionByName:d.getDefinitionByName,
clearInterval:d.clearInterval,clearTimeout:d.clearTimeout,setInterval:d.setInterval,setTimeout:d.setTimeout});a.addConstantsToClass([[c.Endian,"bigEndian","littleEndian"]]);return c}(S,k,o,da,gc,ic,ec,dc);kc=function(c,a){function b(){}c({qualifiedName:"flash.system.ApplicationDomain",constructor:b});b.currentDomain=new b;var d=b.prototype;d.getDefinition=function(b){return a.getDefinitionByName(b)};d.hasDefinition=function(b){try{a.getDefinitionByName(b)}catch(c){return!1}return!0};return b}(o,jc);
lc=function(c,a,b,d,e,f,g,i,j,m){function p(){var a=b.getPrivateObjectOf(this);a.attrs.bytesLoaded=0;a.attrs.bytesTotal=0;a.attrs.contentType=null;a.attrs.childAllowsParent=!1;a.attrs.parentAllowsChild=!1;a.attrs.url="";a.load=b.hitch(this,l);a.imageLoadComplete=b.hitch(this,k);a.swfLoadComplete=b.hitch(this,n);a.isLoaded=!1;a.fileType="";p.__super__.constructor.call(this);v(this,"applicationDomain",e.currentDomain);v(this,"bytes",[]);v(this,{name:"content",get:function(){}});v(this,"loader",null);
v(this,"loaderURL","");v(this,{name:"parameters",get:function(){return b.mixin({},c.stage.options.flashConfig.flashVars||{})}});v(this,"sharedEvents",new g);v(this,"uncaughtErrorEvents",new m)}function s(){if(!b.getPrivateObjectOf(this).isLoaded)throw Error(a.getById(2099));}function h(){if("swf"!=b.getPrivateObjectOf(this).fileType)throw Error(a.getById(2098));}function l(a,d){var e=b.getPrivateObjectOf(this);e.attrs.bytesLoaded=0;e.attrs.bytesTotal=1;e.attrs.url=a.url;b.hitch(this,q)();var f=b.getFlashConfig().getLoadableFileUrl(a.url),
h=o(a.url),g="";0===h.indexOf("image/")?g="image":"application/x-shockwave-flash"===h&&(g="swf");h=e.fileType=g;"image"===h?(e.imageLoadComplete=b.hitch(this,k,f,d),(new c.Bitmap(f)).on("load",e.imageLoadComplete)):"swf"===h&&(e.swfLoadComplete=b.hitch(this,n,d),(new c.Movie(f)).on("load",e.swfLoadComplete))}function k(a,c,d){var e=b.getPrivateObjectOf(this);e.attrs.contentType=o(a);e.attrs.bytesLoaded=1;e.isLoaded=!0;c.addChild(d);b.hitch(this,q)();this.dispatchEvent(new f(f.COMPLETE))}function n(a,
c){var d=b.getPrivateObjectOf(this);d.attrs.contentType="application/x-shockwave-flash";d.attrs.bytesLoaded=1;d.isLoaded=!0;a.addChild(c);b.hitch(this,q)();this.dispatchEvent(new f(f.COMPLETE))}function q(){var a=b.getPrivateObjectOf(this);this.dispatchEvent(new i(i.PROGRESS,!1,!1,a.bytesLoaded,a.bytesTotal))}function o(a){var a=a.split(".").reverse()[0],b="";"swf"==a?b="application/x-shockwave-flash":("jpg"==a&&(a="jpeg"),b="image/"+a);return b}var r=b.expando,v=b.setImmutable;p.getLoaderInfoByDefinition=
function(){return null};d({qualifiedName:"flash.display.LoaderInfo",constructor:p,superClass:g});d=p.prototype;v(d,{name:"actionScriptVersion",get:function(){b.hitch(this,s)();b.hitch(this,h)()}});v(d,{name:"bytesLoaded",get:function(){return this[r].attrs.bytesLoaded||0}});v(d,{name:"bytesTotal",get:function(){return this[r].attrs.bytesTotal}});v(d,{name:"contentType",get:function(){return this[r].attrs.contentType}});v(d,{name:"childAllowsParent",get:function(){b.hitch(this,s)()}});v(d,{name:"frameRate",
get:function(){b.hitch(this,s)();b.hitch(this,h)()}});v(d,{name:"height",get:function(){b.hitch(this,s)()}});v(d,"isURLInaccessible",!1);v(d,{name:"parentAllowsChild",get:function(){b.hitch(this,s)()}});v(d,{name:"sameDomain",get:function(){b.hitch(this,s)()}});v(d,{name:"swfVersion",get:function(){b.hitch(this,s)();b.hitch(this,h)()}});v(d,{name:"url",get:function(){return this[r].attrs.url}});v(d,{name:"width",get:function(){b.hitch(this,s)()}});return p}(y,N,k,o,kc,A,H,Tb,Sb,Wb);mc=function(c,
a,b,d,e,f,g){function i(){var b=a.getPrivateObjectOf(this);b.raw=c.stage;d.prototype.constructor.call(this);c.stage.on("mouseout",this,function(b){b.target===c.stage&&a.dispatchEventWithoutBubbling(this,new f(f.MOUSE_LEAVE))});k(this,"frameRate",{configurable:!1,get:j,set:s});b.loaderInfo=new e;q(this,"parent",null);q(this,{name:"stageHeight",get:m});q(this,{name:"stageWidth",get:p})}function j(){return c.stage.framerate}function m(){return c.stage.height}function p(){return c.stage.width}function s(a){c.stage.setFramerate(a)}
var h=a.createDummyFunction,l=a.noop,k=a.setAccessor,n=a.setDescriptor,q=a.setImmutable,o=!1;b({qualifiedName:"flash.display.Stage",constructor:i,superClass:d,interfaces:[g],invalidate:function(){o||(setTimeout(function(){c.stage.emit("flash:stage-render");o=!1},1),o=!0)}});b=i.prototype;b.isFocusInaccessible=h({name:"isFocusInaccessible",returnType:"Boolean"});n(b,"accessibilityImplementation",{set:l});n(b,"align",{get:h({name:"align",returnType:"String"}),set:l});n(b,"allowsFullScreen",{get:h({name:"allowsFullScreen",
returnType:"Boolean"})});n(b,"blendMode",{set:l});n(b,"cacheAsBitmap",{set:l});n(b,"color",{get:h({name:"color",returnType:"uint"}),set:l});n(b,"colorCorrection",{get:h({name:"colorCorrection",returnType:"String"}),set:l});n(b,"colorCorrectionSupport",{get:h({name:"colorCorrectionSupport",returnType:"String"})});n(b,"contextMenu",{set:l});n(b,"displayState",{get:h({name:"displayState",returnType:"String"}),set:l});n(b,"focus",{get:h({name:"focus",returnType:""}),set:l});n(b,"fullScreenHeight",{get:h({name:"fullScreenHeight",
returnType:"uint"})});n(b,"focusRect",{set:l});n(b,"fullScreenSourceRect",{get:h({name:"fullScreenSourceRect",returnType:""}),set:l});n(b,"fullScreenWidth",{get:h({name:"fullScreenWidth",returnType:"uint"})});n(b,"height",{get:h({name:"height",returnType:"Number"}),set:l});n(b,"mouseChildren",{get:h({name:"mouseChildren",returnType:"Boolean"}),set:l});n(b,"mouseEnabled",{set:l});n(b,"opaqueBackground",{set:l});n(b,"quality",{get:h({name:"quality",returnType:"String"}),set:l});n(b,"rotationX",{set:l});
n(b,"rotationY",{set:l});n(b,"rotationZ",{set:l});n(b,"scale9Grid",{set:l});n(b,"scaleMode",{get:h({name:"scaleMode",returnType:"String"}),set:l});n(b,"scaleZ",{set:l});n(b,"scrollRect",{set:l});n(b,"showDefaultContextMenu",{get:h({name:"showDefaultContextMenu",returnType:"Boolean"}),set:l});n(b,"softKeyboardRect",{get:h({name:"softKeyboardRect",returnType:""})});n(b,"stage",{get:function(){return this}});n(b,"stageFocusRect",{get:h({name:"stageFocusRect",returnType:"Boolean"}),set:l});n(b,"stageVideos",
{get:h({name:"stageVideos",returnType:""})});n(b,"tabIndex",{set:l});n(b,"textSnapshot",{get:h({name:"textSnapshot",returnType:""})});n(b,"width",{get:h({name:"width",returnType:"Number"}),set:l});n(b,"wmodeGPU",{get:h({name:"wmodeGPU",returnType:"Boolean"})});n(b,"z",{set:l});return i}(y,k,o,va,lc,A,pa);I=function(c,a){c.stage||(c.stage=new a);return{stage:c.stage}}(Z,mc);nc=function(c,a){var b=null;c.stage.addEventListener(a.KEY_DOWN,function(a){b=a.keyCode});return{addListener:function(b){b.onKeyDown&&
c.stage.addEventListener(a.KEY_DOWN,b.onKeyDown);b.onKeyUp&&c.stage.addEventListener(a.KEY_UP,b.onKeyUp)},getCode:function(){return b}}}(I,L);oc=function(c,a,b){function d(){}return{addListener:function(a){var d={onMouseDown:b.MOUSE_DOWN,onMouseMove:b.MOUSE_MOVE,onMouseUp:b.MOUSE_UP,onMouseWheel:b.MOUSE_WHEEL},g;for(g in a)c.stage.addEventListener(d[g],a[g])},removeListener:function(a){var d={onMouseDown:b.MOUSE_DOWN,onMouseMove:b.MOUSE_MOVE,onMouseUp:b.MOUSE_UP,onMouseWheel:b.MOUSE_WHEEL},g;for(g in a)c.stage.removeEventListener(d[g],
a[g])},hide:d,show:d}}(I,k,B);pc=function(c,a){function b(){}c({constructor:b});b.width=a.stage.stageWidth;b.height=a.stage.stageHeight;return b}(r,I);W=function(c,a,b,d){var e=[];return{getURL:function(d,e,i){if(0==d.toLowerCase().indexOf("fscommand:"))b.warnAbout.missingImplementation&&console.warn("getURL() does not support FSCommand yet, tried to call getURL with:",arguments);else{var j=new a(d);j.method=i;c.navigateToURL(j,e||"_blank")}},mixinFlashVars:function(a){var b=d.stage.loaderInfo.parameters,
c;for(c in b)a.hasOwnProperty(c)?console.log('mixinFlashVars: Property "'+c+'" in obj exists, wont be overridden with flashVar of the same name.'):a[c]=b[c]},registerSound:function(a){e.push(a)},stopAllSounds:function(){for(var a=e.length,b=0;b<a;b++){var c=e[b];c&&c.stop()}}}}(Ta,ba,O,I);X=function(c,a,b,d,e,f,g,i,j){function m(){s.constructor.call(this);var a=f.getPrivateObjectOf(this);a.as2Attrs||(a.as2Attrs={listeners:{},depthToInstanceMap:{}})}function p(a,b,c,d){f.setDescriptor(a,b,{set:function(a){var e=
f.getPrivateObjectOf(this).as2Attrs;e.listeners[b]&&this.removeEventListener(c,e.listeners[b].hitched);e.listeners[b]={func:a,hitched:f.hitch(this,a)};this.addEventListener(c,e.listeners[b].hitched);d&&(this.mouseEnabled=!0)},get:function(){var a=f.getPrivateObjectOf(this).as2Attrs.listeners;return a[b]&&a[b].func}})}var s=g.prototype;d({constructor:m,superClass:g,__preConstruct__:function(){s.__preConstruct__.call(this);this.mouseEnabled=!1},attachBitmap:function(){console.log("TODO MovieClip.attachBitmap is DUMMY")},
createEmptyMovieClip:function(a,b){var c=f.getPrivateObjectOf(this).as2Attrs.depthToInstanceMap,d=c[b];d&&(delete this[d.name],this.removeChild(d.movieClip),delete c[b]);d=new m;d[f.expando].name=a;this.addChild(d);this[a]=d;c[b]={movieClip:d,name:a};return d},createTextField:function(a,c,d,e,f,g){c=new b;c.width=f;c.height=g;c.x=d;c.y=e;this.addChild(c);a&&(this[a]=c);return c},getBytesLoaded:function(){return 1},getBytesTotal:function(){return 1},getDepth:function(){var a=f.getPrivateObjectOf(this.parent).as2Attrs.depthToInstanceMap,
b;for(b in a)if(a[b].movieClip==this)return parseInt(b)},getNextHighestDepth:function(){var a=f.getPrivateObjectOf(this).as2Attrs.depthToInstanceMap,a=Object.keys(a).map(function(a){return parseInt(a)}).sort();return a.length?a.pop()+1:0},getInstanceAtDepth:function(a){var b=f.getPrivateObjectOf(this).as2Attrs.depthToInstanceMap;if(b[a])return b[a].movieClip},getURL:e.getURL,hitTest:function(a){return this.hitTestObject(a)},removeMovieClip:function(){this.parent.removeChild(this)},startDrag:function(a){return g.prototype.startDrag.apply(this,
[a])},swapDepths:function(a){this.swapChildren(this,a)}});d=m.prototype;c.createPropertyMappings([["_alpha","alpha",{as2ToAs3:c.hundredToOne,as3ToAs2:c.oneToHundred}],["_currentframe","currentFrame"],["_framesloaded","framesLoaded"],["_height","height"],["_name","name"],["_parent","parent"],["_xscale","scaleX",{as2ToAs3:c.hundredToOne,as3ToAs2:c.oneToHundred}],["_yscale","scaleY",{as2ToAs3:c.hundredToOne,as3ToAs2:c.oneToHundred}],["_totalframes","totalFrames"],["_visible","visible"],["_width","width"],
["_x","x"],["_y","y"],["_z","z"]],d);f.setReadOnly(d,"_xmouse",function(){return a.stage.mouseX});f.setReadOnly(d,"_ymouse",function(){return a.stage.mouseY});p(d,"onEnterFrame",i.ENTER_FRAME);p(d,"onMouseMove",j.MOUSE_MOVE,!0);p(d,"onPress",j.MOUSE_DOWN,!0);p(d,"onRelease",j.CLICK,!0);return m}(ma,I,ga,r,W,k,cc,A,B);qc=function(c,a,b,d,e,f,g){function i(a){a[m]||(a[m]={as3SoundObj:null,channel:null,transform:null});return a[m]}function j(){}var m=c.expando;a({constructor:j,attachSound:function(a){if(d.stage.options.flashConfig&&
d.stage.options.flashConfig.exportAssets)var c=d.stage.options.flashConfig.exportAssets.sounds;a=c&&a in c?new g(c[a]):new g(a);i(this).as3SoundObj=new e(a);b.registerSound(this)},setVolume:function(a){var b=i(this),c=b.channel;b.transform=new f(a);c&&(c.soundTransform=b.transform)},start:function(){var a=i(this);a.channel=a.as3SoundObj.play(0);a.transform&&(a.channel.soundTransform=a.transform)},stop:function(){i(this).channel.stop()}});c.setDescriptor(j.prototype,"onSoundComplete",{set:function(a){var b=
2E3,c=i(this).as3SoundObj,c=c&&c.url;"assets/audio_63.mp3"==c&&(b=6E3);"assets/audio_64.mp3"==c&&(b=6E3);"assets/audio_65.mp3"==c&&(b=8E3);"assets/audio_66.mp3"==c&&(b=4E3);"assets/audio_67.mp3"==c&&(b=1E4);"assets/audio_76.mp3"==c&&(b=4E3);"assets/audio_96.mp3"==c&&(b=5E3);var d=this;setTimeout(function(){d.stop();a()},b)},get:c.createDummyFunction("GETTER Sound.onSoundComplete")});return j}(k,r,W,y,ac,Ga,ba);rc=function(c,a,b,d,e,f,g){function i(a){var d=function(){b.prototype.constructor.call(this);
for(var c in a)this.addEventListener(f[c],g.hitch(this,a[c]))};c({constructor:d,superClass:b});return d}function j(b){var d=function(){a.prototype.constructor.call(this);var c=[],d;for(d in b)c.push(parseInt(d)),c.push(g.hitch(this,b[d]));this.addFrameScript.apply(this,c)};c({constructor:d,superClass:a});return d}return{addLookupTo:function(a,b,c){c.forEach(function(c){window.Object.defineProperty(a,c,{get:function(){for(var a=0;a<b.length;a++)if(void 0!=b[a][c])return b[a][c]},set:function(a){b[0][c]=
a}})})},buildButtonClasses:function(a){var b={},c;for(c in a)b[c]=i(a[c]);return b},buildSpriteClasses:function(a){var b={},c;for(c in a)b[c]=j(a[c]);return b},buildRootMovie:function(b){var f=function(){a.prototype.constructor.call(this);d.mixinFlashVars(this);e._root=this;b.setRoot&&b.setRoot(this);var c=[],f;for(f in b.frameScripts)c.push(parseInt(f)),c.push(g.hitch(this,b.frameScripts[f]));this.addFrameScript.apply(this,c)};c({constructor:f,superClass:a});return f}}}(r,X,wa,W,J,Pb,k);sc=function(c){return{getMovieClipIfUndefined:function(a){return a||
new c}}}(X);tc=function(c,a,b,d,e,f,g,i){function j(a,b){var c=void 0;return c=a instanceof f?a:a in b?b[a]:"string"==typeof a?b[a.toLowerCase()]:b[a]}d.Array=window.Array;d.Boolean=window.Boolean;d.ASSetPropFlags=function(){};d.clearInterval=g.clearInterval;d.clearTimeout=g.clearTimeout;d.Date=window.Date;d.duplicateMovieClip=function(c,e){var f=j(c,b._root),g=new f.constructor;g[a.expando].raw=new bonsai.Movie;for(var i=f[a.expando].raw.children(),k=0;k<i.length;k++)g[a.expando].raw.addChild(i[k].clone({attributes:!0}));
g._xscale=f._xscale;g._yscale=f._yscale;g._x=f._x;g._y=f._y;f=d._root;f[e]=f[(""+e).toLowerCase()]=f.addChild(g)};d.escape=window.encodeURIComponent;d.eval=function(a){var b;try{b=eval(a)}catch(c){b=void 0}return b};d.getProperty=function(a,c){var d;if(""==a)d=b._root;else if(d=b._root,d.hasOwnProperty(a))d=d[a];else{var e=a.toLowerCase();d=d.hasOwnProperty(e)?d[e]:void 0}return d?d[c]:void 0};d.getTimer=g.getTimer;d.getURL=c.getURL;d.int=function(a){var b;"number"==typeof a||"boolean"==typeof a?
b=a:parseInt(a)==a&&(b=a);return 0<=b?Math.floor(a):0>b?Math.ceil(a):"string"==typeof a?-2147483648:0};d.Number=window.Number;d.Object=e;d.parseInt=window.parseInt;d.random=function(a){return parseInt(a)!=a?0:parseInt(Math.random()*a)};d.removeMovieClip=function(a){(a=j(a,b._root))&&a.removeMovieClip()};d.setInterval=function(){var b=[].slice.call(arguments),c=[];"number"==typeof b[1]?(c=[b[0],b[1]],2<b.length&&(c[2]=b.slice(2))):(c=[a.hitch(b[0],b[1]),b[2]],3<b.length&&(c[2]=b.slice(3)));return g.setInterval.apply(null,
c)};d.setProperty=function(a,c,d){var e=a;if(e=""==a?b._root:j(a,b._root))a=c.toLowerCase(),!(c in e)&&a in e?e[a]=d:e[c]=d};d.setTimeout=g.setTimeout;d.startDrag=function(a,b){d._root[a].startDrag(b)};d.stopAllSounds=function(){c.stopAllSounds()};d.String=i;d.trace=function(){console.log.apply(console,arguments)};return d}(W,k,J,Y,$,X,da,Ua);(function(c,a,b,d,e,f,g,i,j,k,o,r,h,l,u,n,q,t,y,v,C,A,B,E,D,F,G,w,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,aa,ba,ca,da,ea){f.Accessibility=g;f.AsBroadcaster=
i;f.Button=j;f.Camera=k;f.Color=o;f.ColorTransform=r;f.ContextMenu=h;f.ContextMenuItem=l;f.CustomActions=u;f.Key=n;f.LoadVars=q;f.LocalConnection=t;f.Microphone=y;f.Mouse=v;f.MouseEvent=C;f.MovieClip=A;f.MovieClipLoader=B;f.NetConnection=E;f.NetStream=D;f.Object=F;f.PrintJob=G;f.Selection=w;f.SharedObject=H;f.Sound=I;f.Stage=J;f.System=K;f.SystemCapabilities=L;f.SystemIME=M;f.SystemSecurity=N;f.SystemStyleSheet=O;f.TextField=P;f.TextFormat=Q;f.TextSnapshot=R;f.Video=S;f.XML=T;f.XMLNode=U;f.XMLSocket=
V;f.XMLUI=W;f.flash=X;f.mx=Y;return{_global:f,_as2js:e,helper:c,tools:a,singleton:b,Class:d,as3shim:{Bitmap:Z,MorphShape:$,Shape:aa,SimpleButton:ba,Sprite:ca,StaticText:da,TextField:ea}}})(rc,k,I,r,sc,Y,Fa,Wa,wa,Xa,$a,Ya,Za,ab,bb,nc,cb,db,eb,oc,fb,X,xb,gb,hb,$,ib,jb,kb,qc,pc,Q,Mb,Ob,Nb,bc,ga,oa,lb,mb,nb,ob,pb,qb,G,ja,Xb,Yb,Zb,V,xa,$b,U,tc,J,rb,sb,tb,wb,Lb,zb,ub,vb,yb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,ka,Kb)})();