-
Notifications
You must be signed in to change notification settings - Fork 0
/
as3shim-bonsai-plugins-0.2.11.min.js
47 lines (47 loc) · 19.9 KB
/
as3shim-bonsai-plugins-0.2.11.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
/**
* as3shim is (C) 2012 uxebu
*
* 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 o,k,s,l,t,p,u,v;o=Function("return this")();k=bonsai;s=function(){var h={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(e){return h[e]},renderWithPlaceholders:function(e,a){var c=h[e],i;for(i in a)c=
c.replace("{{"+i+"}}",a[i]);return c}}}();l=function(){function h(){for(var a in e)this[a]=e[a]}var e={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:""};h.defaults=JSON.parse(JSON.stringify(e));return h}();t=function(h){var e=h.Group,a=h.tools,h=function(){e.call(this);this.childrenWrapper=(new e).addTo(this);this.eventArea=(new e).attr({opacity:0,cursor:"pointer"}).addTo(this);
this.stateChildren={normal:new e,hover:new e,active:new e};this.setupConnections();this.childrenWrapper.addChild(this.stateChildren.normal)};h.prototype=a.mixin(Object.create(e.prototype),{childrenWrapper:null,eventArea:null,stateChildren:null,isMouseDown:!1,isMouseOver:!1,type:"Group",addActiveStateChild:function(c,a){this.addStateChild(c,"active",a)},addEventAreaChild:function(c,a){this.eventArea.addChild(c,a)},addHoverStateChild:function(c,a){this.addStateChild(c,"hover",a)},addNormalStateChild:function(c,
a){this.addStateChild(c,"normal",a)},addStateChild:function(c,a,e){this.stateChildren[a].addChild(c,e)},displayState:function(c){var a=this.childrenWrapper.children();a.length&&a[0].stop&&a[0].stop();a=this.stateChildren[c].children();a.length?(this.childrenWrapper.clear().addChild(this.stateChildren[c]),a[0].play&&a[0].play(0)):"normal"===c&&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",a.hitch(this,"onMouseOver"));this.eventArea.on("mouseout",a.hitch(this,"onMouseOut"));this.eventArea.on("pointerdown",a.hitch(this,"onMouseDown"));this.eventArea.on("pointerup",a.hitch(this,"onMouseUp"))}});
return h}(k);l=function(h,e){function a(b,d){var g=[],f="__string__"+ +new Date,b=b.replace(/(['"])(?:\\\1|[^\1])*?\1/g,function(b){g.push(b);return f}),b=b.replace(/[^}]+\{/g,function(b){b=b.replace(/^\s+|\s+$/,"");return b.replace(/^|(,)/g,"$1 "+d+" ").replace(/^\s|(\s)\s+/g,"$1")});return b=b.replace(RegExp(f,"g"),function(){return g.shift()})}function c(){return this._owner.raw.styleSheet}function i(b){var d=this._owner,g=d._cssSelectorPrefix;b?(b=a(b,g),d.raw.styleSheet=b,d._style||(d._style=
new x("style"),d.addChild(d._style)),this._defaultStyleSheet||(this._defaultStyleSheet=a(Q,g)),d._style.setAttribute("innerHTML",this._defaultStyleSheet+b)):d.raw.styleSheet=""}function P(){return this._owner.raw.autoSize}function R(b){var d=this._owner;d.raw.autoSize=b||"none";switch(b){case "none":d.setStyles({"float":"",width:"100px",height:"100px"});break;case "left":d.setStyles({"float":"left",width:"auto",height:"auto"});break;case "right":d.setStyles({"float":"right",width:"auto",height:"auto"});
d.text.setStyle("float","right");d.text.setStyle("textAlign","right");break;case "center":d.setStyles({display:"inline-block",width:"auto",height:"auto"}),d.setStyle("textAlign","center")}}function q(){return!!this._owner.raw.editable}function k(b){var b=!!b,d=this._owner;d.raw.editable=b;!0===b?(d.text.setAttribute("contenteditable","true"),d.text.setStyles({webkitUserModify:"read-write",webkitNbspMode:"space",webkitLineBreak:"after-white-space"}),d.addCSSRule(":focus",{outline:"none"})):(d.text.setAttribute("contenteditable",
"false"),d.text.setStyles({webkitNbspMode:"",webkitLineBreak:""}))}function S(){return!!this._owner.raw.html}function w(b){this._owner.raw.html=!!b}function l(){return this._owner.raw.htmlText||""}function T(b){var d=this._owner;!1!==d.attr("html")&&d.innerHTML(b)}function U(){return this._owner.raw.maxChars}function A(b){this._owner.raw.maxChars=b}function V(){return!!this._owner.raw.password}function y(b){var b=!!b,d=this._owner;d.raw.password=b;!0===b&&d.attr("text",Array(d.text.getAttribute("innerHTML").length+
1).join("*"))}function o(){var b;b=""+this._owner.attr("htmlText");var d=b.match(RegExp("<TEXTFORMAT.*"+M+">(.*)"));d&&d[1]&&(b=d[1].split(/<\/TEXTFORMAT>(.+)?/),b=G+b[0]+G+(b[1]||""));return N(b)}function z(b){for(var d=this._owner,g=d.attr("maxChars"),b=(b||"").toString(),b=null===g?b:b.slice(0,g),g="",b=b.split(G),f=0,a=b.length;f<a;f++)0!==b[f].length&&(g+=d.htmlFromText(b[f],f%2));d.innerHTML(g);d.emit("change")}function p(){return!!this._owner.raw.selectable}function D(b){this._owner.raw.selectable=
!!b}function H(){return!!this._owner.raw.background}function I(b){var d=this._owner;d.raw.background=!!b;d.attr("backgroundColor",d.attr("backgroundColor"))}function n(){var b=this._owner;return!0===b.attr("background")?b.raw.backgroundColor:E.backgroundColor}function m(b){var d=this._owner;d.raw.backgroundColor=b;d.attr("background")?d.setStyle("backgroundColor",J(b)):d.setStyle("backgroundColor","rgba(0,0,0,0)")}function g(){return!!this._owner.raw.border}function B(b){var d=this._owner;d.raw.border=
!!b;d.attr("borderColor",d.attr("borderColor"))}function f(){var b=this._owner;return!0===b.attr("border")?b.raw.borderColor:E.borderColor}function C(b){var d=this._owner;d.raw.borderColor=b;d.attr("border")?d.setStyles({borderWidth:"1px",borderColor:J(b),borderStyle:"solid"}):d.setStyles({borderColor:"",borderWidth:"0px"})}function Y(){return!!this._owner.raw.wordWrap}function Z(b){var b=!!b,d=this._owner;d.raw.wordWrap=b;!0===b?d.text.setStyles({whiteSpace:"normal",display:""}):d.text.setStyles({whiteSpace:"nowrap",
display:"inline-block"})}function $(){return!!this._owner.raw.multiline}function s(b){var d=this._owner;d.raw.multiline=!!b;d.attr("wordWrap",d.attr("wordWrap"))}function t(){return this._owner.raw.width}function u(b){var d=this._owner;d.raw.width=+b;"none"===d.attr("autoSize")&&d.setStyle("width",(b|0)+"px")}function v(){var b=this._owner,d=b.attr("autoSize");if("undefined"===typeof d||"none"===d)return b.raw.height;d=b.attr("text").split(/\n|\r/).length;return b.text.attr("fontLineHeight")*d}function aa(b){var d=
this._owner;d.raw.height=b;"none"===d.attr("autoSize")&&d.setStyle("height",(b|0)+"px")}function ba(){return this._owner.raw.align}function ca(b){var d=this._owner;d.raw.align=b;d.parent.setStyle("textAlign",b||"")}function da(){return this._owner.raw.bold}function ea(b){var b=!!b,d=this._owner;d.raw.bold=b;d.setStyle("fontWeight",b?"700":"normal")}function fa(){return this._owner.raw.color}function ga(b){var d=this._owner;d.raw.color=b;d.setStyle("color",J(b))}function ha(){return this._owner.raw.font}
function ia(b,d){var g=this._owner;F.isArray(b)?(d=b[1]+", "+K(b[0]),g.raw.font=b[0]):(d=K(b),g.raw.font=b);g.setStyle("fontFamily",d)}function ja(){return this._owner.raw.indent}function ka(b){var d=this._owner;d.raw.indent=b;d.setStyle("textIndent",b||"")}function la(){return this._owner.raw.italic}function ma(b){var b=!!b,d=this._owner;d.raw.italic=b;d.setStyle("fontStyle",b?"italic":"")}function na(){return this._owner.raw.leftMargin}function oa(b){var d=this._owner;d.raw.leftMargin=b;d.setStyle("paddingLeft",
b+"px")}function pa(){return this._owner.raw.rightMargin}function qa(b){var d=this._owner;d.raw.rightMargin=b;d.setStyle("paddingRight",b+"px")}function ra(){return this._owner.raw.letterSpacing}function sa(b){var d=this._owner;d.raw.letterSpacing=b;d.setStyle("letterSpacing",b+"px")}function ta(){return this._owner.raw.size}function ua(b){var b=+b,d=this._owner;d.raw.size=b;d.setStyle("fontSize",b+"px");this.fontLineHeight+=0}function va(){return this._owner.raw.underline}function wa(b){var b=!!b,
d=this._owner;d.raw.underline=b;d.setStyle("textDecoration",b?"underline":"")}function xa(){return this._owner.raw.fontLineHeight||0}function ya(b){var d=this._owner,g=d.attr("size"),b=g>b?g:b;d.raw.fontLineHeight=b;b+=d.attr("leading");d.parent.setStyle("line-height",b+"px")}function za(){return this._owner.raw.leading}function Aa(b){var d=this._owner;d.raw.leading=b;this.fontLineHeight+=0;d.parent.setStyle("margin-top",-b/2+"px")}function r(){x.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 x("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:j(Y,Z,!0),multiline:j($,s,!0),autoSize:j(P,R,!0),background:j(H,I,!0),backgroundColor:j(n,m,!0),border:j(g,B,!0),borderColor:j(f,C,!0),html:j(S,w,!0),htmlText:j(l,T,!0),maxChars:j(U,A,!0),password:j(V,y,!0),text:j(o,z,!0),selectable:j(p,D,!0),editable:j(q,k,!0),width:j(t,u,!0),height:j(v,aa,!0),styleSheet:j(c,i,!0)});this.css=(new x("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 x("span",{"class":this._domInnerClass})).addTo(this.innerBox);this.text.raw={};Object.defineProperties(this.text._attributes,{align:j(ba,ca,!0),bold:j(da,ea,!0),color:j(fa,ga,!0),font:j(ha,ia,!0),indent:j(ja,ka,!0),italic:j(la,ma,!0),leftMargin:j(na,oa,!0),rightMargin:j(pa,qa,!0),letterSpacing:j(ra,sa,!0),size:j(ta,ua,!0),underline:j(va,wa,!0),fontLineHeight:j(xa,ya,!0),leading:j(za,Aa,!0)});for(var b in E)this.attr(b,E[b]);
b=new e;for(var d in b)this.text.attr(d,b[d]);this.text.raw.defaults=e.defaults}var O,N,K,x=h.DOMElement,F=h.tools,j=F.descriptorAccessor,Ba=Array.prototype.slice,Q="a{color:#000;text-decoration:none;}",E={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:""},M='bs-swf="true"',G="\ufeff\ufeff",J=r.rgba=function(b){if("undefined"===typeof b)return"rgba(0,0,0,0)";
b=/^#/.test(b)?parseInt(b.slice(1),16):b<<8|255;return h.color(b).rgba()},L=r.prototype=F.beget(x.prototype);L.addCSSRule=function(b,d){var g=this.css,f=g.raw,a=Ba.call(arguments,0,-1),d=arguments[a.length],b=a.join("\x00");f.hasOwnProperty(b)?F.mixin(f[b],d):f[b]=d;var B,c,C="",i=this._cssSelectorPrefix;for(b in f){a=f[b];c="";for(B in a)c+=B+": "+a[B]+"; ";C+=i+" "+b.split("\x00").join(", "+i+" ")+" { "+c+"}\n"}g.setAttribute("innerHTML",C);return this};L.innerHTML=function(b){this.text.setAttribute("innerHTML",
b);this.raw.htmlText=b;this.emit("change");return this};L.htmlFromText=function(b,d){this.addCSSRule("font",{"font-size":"inherit",color:"inherit","font-family":"inherit"});return r.htmlTextFormatWrapper("<P><FONT>"+O(b)+"</FONT></P>",d)};K=r.mapFontFamily=function(){var b={_sans:"sans-serif",_serif:"serif",_typewriter:"monospace"};return function(d){return d in b?b[d]:d}}();O=r.escapeHtml=function(b){return(b+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\n|\r/g,"<br/>")};
N=r.unescapeHtml=function(b){return b.replace(/&/g,"&").replace(/ /g," ").replace(/<br\/>/g,"\n").replace(/<(?:.|\n)*?>/gm,"").replace(/\</g,"<").replace(/\>/g,">")};r.htmlTextFormatWrapper=function(b,d){return"<TEXTFORMAT"+(d?" "+M:"")+">"+b+"</TEXTFORMAT>"};return r}(k,l);p=function(h){var e=h.stage.options,e=e.as3shimConfig=e.as3shimConfig||{},e={debug:{logCalls:!1,logUnspyables:!1},warnAbout:{missingImplementation:e.showWarnings||!1,notAvailableApis:!1},stats:{warnAbout:{missingClass:e.showWarnings||
!1}}};return h.stage.as3shimConfig=e}(k);u=function(h){return{getLoadableFileUrl:function(e){var a="",c=h.stage.options;"flashConfig"in c&&"__rootMovie__"in c.flashConfig&&(a=h.stage.options.flashConfig.__rootMovie__.loadableFileMap[e]);return a||e}}}(k);v=function(h){var e={};return{getFileAndLine:function(){var a=Error().stack,c=a&&a.split("\n");if(c)for(var i=0;i<c.length;i++){var e=c[i];if(/movie\.js:\d+:\d+/.test(e))return e}return"... oh dear, movie.js not found in trace. Complete trace:\n"+
a},createFunctionSpy:function(a,c,i){var e=this;return function(a,c,i){return function(h){e.logFunctionCall(c,i,[].slice.call(arguments,0));return a.apply(this,arguments)}}(a[c],i||""+a,c)},isSpyableOwnFunction:function(a,c){return a.hasOwnProperty!=Object.hasOwnProperty||!a.hasOwnProperty(c)||"toString"==c||a.__lookupGetter__(c)?!1:"function"==typeof a[c]},isSpyableOwnAccessor:function(a,c){return!!Object.getOwnPropertyDescriptor(a,c)&&!!a.__lookupGetter__(c)},_logFunctionCall:function(a,c,i){i=
i.map(function(a){return"function"==typeof a?"Function with "+(""+a).split("\n").length+" lines":"object"==typeof a?""+a:a});i=JSON.stringify(i);i=i.substring(1,i.length-1);console.log("SHIM call:",a+"."+c+"("+i+")")},_logEvents:function(a,c,i){console.log("SHIMS: 1000 `dispatchEvent` in "+i+"s of",c,a)},logFunctionCall:function(a,c,i){"dispatchEvent"==c?(c=i[0],e[c]?e[c].count++:e[c]={count:1,lastReset:+new Date},1E3<e[c].count&&(i=this._getElapsedTime(e[c].lastReset),this._logEvents(a,c,i),e[c]=
{count:1,lastReset:+new Date})):this._logFunctionCall(a,c,i)},_getElapsedTime:function(a){return((+new Date-a)/1E3).toFixed(2)},logGetterCall:function(a,c,i){console.log("SHIM call: GET",a,c,""+i)},logSetterCall:function(a,c,i,e){console.log("SHIM call: SET",a,c,""+i,""+e)},spyOnFunction:function(a,c,i){a[c]=this.createFunctionSpy(a,c,i)},spyOnOwnAccessor:function(a,c,i){var e=Object.getOwnPropertyDescriptor(a,c),k=this;if(e.configurable){var q=e.get;e.get=function(){var a=q.apply(this);k.logGetterCall(i,
c,a);return a};var l=e.set;e.set=function(a){k.logSetterCall(i,c,q.apply(this),a);l.apply(this,[a])}}else h.debug.logUnspyables&&console.log('Can not spy on accessor "'+i+"."+c+'", because configurable=false.');Object.defineProperty(a,c,e)},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 h=a[e],k=h.prototype.__isNamespace__;h.__isNamespace__?this.spyOnAllClassInNamespace(h,c+"."+e):h.__isClass__&&!k&&this.spyOnClass(h,c+"."+h)}}}}(p);k=function(h,e,a,c,i,k){function l(g){for(var a,f=[1,10,100],c=0,e=f.length;c<e;c++)if(a=H(g*f[c])%1,1.0E-5>a||0.99999<a)return I(g*f[c])/f[c];return g}function q(){}function o(g,a,f){f||(f={});w(g,a,m.mixin({get:q,set:q},f))}function p(g,a,f){3>arguments.length&&(f=a);w(g,u(a),{configurable:!1,enumerable:!1,writable:!1,value:f})}
function w(g,a,f){f||(f={});var c={configurable:!0,enumerable:!0,writable:!0};"configurable"in f&&(c.configurable=f.configurable);"enumerable"in f&&(c.enumerable=f.enumerable);f.get||f.set?("get"in f&&(c.get=f.get),"set"in f&&(c.set=f.set),delete c.value,delete c.writable):(delete c.get,delete c.set,c.value=f.value,"writable"in f&&(c.writable=f.writable));Object.defineProperty(g,a,c)}function s(g){return"__"+g+"__"}function t(g,a,f){w(g,s(a),{enumerable:!1,value:f})}function u(g){z.lastIndex=0;return(g.match(z)||
[]).join("_").toUpperCase()}var A=h.tools,v=i.document,y={},W={}.hasOwnProperty,z=/[a-z]+[a-z\d]*(?!\d[A-Z])|[A-Z][a-z]+|[A-Z\d]+(?![a-z])/g,X=[].slice,D=Math.PI,H=Math.abs,I=Math.round,n="bonsai"+(h.version+Math.random()).replace(/\D/g,""),m=A.mixin(A.beget(A),{addConstantsToClass:function(g){m.forEach(g,function(g){var a=g.shift();m.forEach(g,function(g){"string"===typeof g&&(g=[g]);g.unshift(a);p.apply(null,g)})})},createDummyFunction:function(g){var c="void";if(g===Object(g))var f=g,g=f.name,
c=f.returnType||c;var h="Missing implementation for"+(g?" "+g:"")+", is dummy currently.",k=function(){y[g]||(y[g]=!0,e.warnAbout.missingImplementation&&console.warn(h,"called by "+a.getFileAndLine()));if(f&&"returnValue"in f)return f.returnValue;var k={array:[],"boolean":!1,"int":0,number:0,string:"","null":null,"void":void 0},l=c.toLowerCase();return l in k?k[l]:Function("exposes","try { return new exposes."+c+"} catch (e) {}")(i.exports.asGlobal)};t(k,"isDummy",!0);return k},createUnimplementedFunction:function(g){var a=
"Unimplemented: "+(g?" "+g:"");return function(){if(!y[g])return y[g]=!0,e.warnAbout.missingImplementation&&console.warn(a),new Boolean(!1)}},connectOnDemand:function(g,a,f,c){"onDemandConnects"in a||(a.onDemandConnects={});a.onDemandConnects[g]={connectFunc:f,disconnectFunc:c,connected:!1}},connectEventListener:function(g,a){var c=a.onDemandConnects;c&&g in c&&!c[g].connected&&(c[g].connectFunc(),c[g].connected=!0)},degToRad:function(g){return l(g*(D/180))},detachNode:function(g){return g.parentNode.removeChild(g)},
disconnectEventListener:function(g,a){var c=a.onDemandConnects;c&&g in c&&(c[g].disconnectFunc(),c[g].connected=!1)},dispatchEventWithoutBubbling:function(a,c){a[n].eventDispatcher.emit(c.type,c)},escapeAttributeValue:function(a){return(a+"").replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""").replace(/\n/g,"
").replace(/\r/g,"
").replace(/\t/g,"	")},every:function(a,c,f){var e=-1,h=a.length;for(f&&(c=m.hitch(f,c));++e<h;)if(!c(a[e],e,a))return!1;return!0},expando:n,fixRoundingError:l,
flashToBonsaiBlur:function(a,c){return(a+c)/7.5},forEachSnapshot:function(a,c){for(var f=0,e=(a||{}).snapshotLength;f<e&&!1!==c(a.snapshotItem(f),f,a);f++);return a},getClassNameByClass:function(a,c){var f=a.displayName||a.name;a.__qualifiedName__&&(f=a.__qualifiedName__.split(".").pop());return f||c},getDescriptor:function(a,c){return Object.getOwnPropertyDescriptor(a,c)},getFlashConfig:function(){return k},getPrivateObjectOf:function(a,c){var f=m.expando;f in a||(a[f]={attrs:{}});f=a[f];if(c)for(var e in c)e in
f||(f[e]=c[e]);return f},hasKey:function(a,c){return null!=a&&W.call(a,c)},noop:q,radToDeg:function(a){return l(a*(180/D))},createAndRunMovieFromClass:function(a){var c=(new h.Movie).addTo(h.stage),f=Object.create(a.prototype),e=m.getPrivateObjectOf(f);e.raw=c;e.isRootMovie=!0;a.call(f);return f},setAccessor:o,setConst:p,setConsts:function(a,c){m.forEach(c,function(c){m.setConst(a,c[0],c[1])})},setDescriptor:w,setImmutable:function(a,c,f){var e={configurable:!1,writable:!1};3>arguments.length?("get"in
c?e.get=c.get:"value"in c&&(e.value=c.value),c=c.name):e.value=f;w(a,c,e)},setMovieClipInteractiveState:function(a,c){a.graphics&&a.graphics[n].raw.attr("interactive",c);var f=a[n].children,e=!1;if(f&&f.length)for(var h=0;h<f.length;h++){var i=f[h];"mouseEnabled"in i?e=!0:e?i[n].raw.attr("interactive",!1):i[n].raw.attr("interactive",c)}},setPseudoPrivate:t,setReadOnly:function(a,e,f){o(a,e,{get:f,set:function(){throw new ReferenceError(c.getById(1074));}})},some:function(a,c,f){var e=-1,h=a.length;
for(f&&(c=m.hitch(f,c));++e<h;)if(c(a[e],e,a))return!0;return!1},toArray:function(a,c,f){return X.call(a,c||0,f||a.length)},toCamelCase:function(a){z.lastIndex=0;return a.replace(z,function(a,c){return c?a.charAt().toUpperCase()+a.slice(1):a.toLowerCase()})},toConstCase:u,toPseudoPrivateName:s,toRGBA:function(a){return 256*a+255},timestampAs3Started:+new Date,xQuery:function(a,c,e){var h=v;c||(c=v);c&&(c[n]&&(c=c[n].raw),h=c.ownerDocument||c);return h.evaluate(a,c,null,null==e?6:e,null)}});return m}(k,
p,v,s,o,u);(function(h,e,a,c){h=h.exports;h.tools=e;h.TextField=a;h.Button=c;return h})(o,k,l,t)})();