(function(xs,pl){function t(a,b){function c(){}c.prototype=a;var d=new c,e;for(e in b)d[e]=b[e];b.toString!==Object.prototype.toString&&(d.toString=b.toString);return d}function Lr(a){return a instanceof Array?function(){return X.iter(a)}:"function"==typeof a.iterator?k(a,a.iterator):a.iterator}function k(a,b){if(null==b)return null;null==b.__id__&&(b.__id__=Ws++);var c;null==a.hx__closures__?a.hx__closures__={}:c=a.hx__closures__[b.__id__];null==c&&(c=function(){return c.method.apply(c.scope,arguments)}, c.scope=a,c.method=b,a.hx__closures__[b.__id__]=c);return c}pl.openfl=pl.openfl||{};pl.lime=pl.lime||{};var g={},D=function(){return m.__string_rec(this,"")},kc=function(){};g.ApplicationMain=kc;kc.__name__=["ApplicationMain"];kc.config=null;kc.preloader=null;kc.create=function(){var a=new ql;a.create(kc.config);var b=new Vf;kc.preloader=new rl(b);a.setPreloader(kc.preloader);kc.preloader.onComplete.add(kc.init);kc.preloader.create(kc.config);var b=[],c=[];b.push("img/audioplayer1/first.svg");c.push("TEXT"); b.push("img/audioplayer1/last.svg");c.push("TEXT");b.push("img/audioplayer1/openfl.svg");c.push("TEXT");b.push("img/audioplayer1/pause.svg");c.push("TEXT");b.push("img/audioplayer1/play.svg");c.push("TEXT");b.push("img/audioplayer1/spinner.svg");c.push("TEXT");b.push("img/audioplayer1/volume.svg");c.push("TEXT");b.push("img/audioplayer1/volume_shade.svg");c.push("TEXT");b.push("img/imgdefault.png");c.push("IMAGE");b.push("img/videoplayer1/ic_play_circle_fill_grey600_24dp.png");c.push("IMAGE");b.push("img/videoplayer1/ic_play_circle_fill_white_24dp.png"); c.push("IMAGE");if(null!=kc.config.assetsPrefix)for(var d=0,e=b.length;db.priority?-1:1};Qa.prototype={__dispatching:null,__targetDispatcher:null, __eventMap:null,__newEventMap:null,addEventListener:function(a,b,c,d,e){null==d&&(d=0);null==c&&(c=!1);null==this.__eventMap&&(this.__dispatching=new fa,this.__eventMap=new fa,this.__newEventMap=new fa);if(this.__eventMap.exists(a)){1==this.__dispatching.get(a)?this.__newEventMap.exists(a)?e=this.__newEventMap.get(a):(e=this.__eventMap.get(a).slice(),this.__newEventMap.set(a,e)):e=this.__eventMap.get(a);a=0;for(var f=e.length;a=this.__worldAlpha||(null!=this.__scrollRect&&a.maskManager.pushRect(this.__scrollRect,this.__renderTransform),null!=this.__mask&&null!=this.__maskGraphics&&0this.__children.length||0>b)throw new q("Invalid index position "+b);if(a.parent==this)X.remove(this.__children,a);else{null!=a.parent&&a.parent.removeChild(a);a.parent=this;null!=this.stage&&a.__setStageReference(this.stage);a.__transformDirty||(a.__transformDirty=!0,Da.__worldTransformDirty++);a.__renderDirty||(a.__renderDirty=!0,Da.__worldRenderDirty++);var c=new J(J.ADDED,!0);c.target=a;a.__dispatchEvent(c)}this.__children.splice(b, 0,a);return a},areInaccessibleObjectsUnderPoint:function(a){return!1},contains:function(a){for(;a!=this&&null!=a;)a=a.parent;return a==this},getChildAt:function(a){return 0<=a&&ab))return;if(!(a>this.__children.length-1)){if(ba||b>this.__children.length)throw new q(new yl("The supplied index is out of bounds."));for(var c=b-a;0<=c;)this.removeChildAt(a),c--}},resolve:function(a){if(null==this.__children)return null;for(var b=0,c=this.__children;b=this.__worldAlpha)){Uc.prototype.__renderCairo.call(this,a);null!=this.get_scrollRect()&&a.maskManager.pushRect(this.get_scrollRect(),this.__worldTransform);null!=this.__mask&&a.maskManager.pushMask(this.__mask);for(var b=0,c=this.__children;b=this.__worldAlpha)){Uc.prototype.__renderCanvas.call(this,a);null!=this.get_scrollRect()&&a.maskManager.pushRect(this.get_scrollRect(),this.__worldTransform);null!=this.__mask&&a.maskManager.pushMask(this.__mask);for(var b=0,c=this.__children;b=this.__worldAlpha)){null!=this.__scrollRect&&a.maskManager.pushRect(this.__scrollRect,this.__renderTransform);null!=this.__mask&&null!=this.__maskGraphics&&0a;){a++;b=new od(1024,480,a);b._backColor=16777215;b._backSpriteAlpha=.45;b.drawBackgroundSprite();b._pageType=Ib.Thumb;var c=new od(1024,480,a+1);c._backColor=16777216;c._backSpriteAlpha=.45;c.drawBackgroundSprite();c._pageType=Ib.Thumb;b=new Vc(b,c,1024,768);this.addChild(b);b.move(10+2*a,10+2*a)}},initJS:function(){var a= this;(function(){window.onresize=function(b){b=document.documentElement?document.documentElement.clientWidth:document.body.clientWidth;var c=document.documentElement?document.documentElement.clientHeight:document.body.clientHeight;document.getElementById("openfl-content").style.width=b+"px";document.getElementById("openfl-content").style.height=c+"px";window.document.getElementById(m.__cast("openfl-content",String));a.get_graphics().clear();a.get_graphics().beginFill(15532269,.9);a.get_graphics().drawRect(0, 0,b,c);a.get_graphics().endFill();a.onStageResize(null)};window.onresize(null)})()},init:function(){if(!this.inited){this.inited=!0;this.get_graphics().clear();this.get_graphics().beginFill(15592941,.9);this.get_graphics().drawRect(0,0,ha.current.stage.stageWidth,ha.current.stage.stageHeight);this.get_graphics().endFill();ae.allowDomain("*");Af.getInstance();var a;a=R.getInstance();a.setEventSprite(this);a.setEventMode(!1);a.addEventListener(v.MAINSTAGE_TEXT,this,k(this,this.onLoadingStatusText)); a.addEventListener(v.MAINSTAGE_PROGRESS,this,k(this,this.onLoadingProgressValue));vd.getInstance();this.createMainLoading();this.resetMainLoadingStatus("loading book.bin...");this.resetMainLoadingPercent(0);Qb.delay(k(this,this.showMainLoading),100);1==this._testBookXml?this.doBookXmlTest("./files/mobile.xml"):(this._bin=new dk(null,null,k(this,this.onLoadProgress),k(this,this.onIoError),k(this,this.onSecurityError)),this._bin.startLoad("./files/mobile.bin",k(this,this.onBookBinParseOver)),Yb.getInstance(), ta._onStageResize=k(this,this.onStageResize))}},doBookXmlTest:function(a){var b=this;null==a||0>=a.length||(new Ma(null)).loadUrl(a,function(a){if(null!=a&&!a.isValid())b.onLoadBookXmlClass(a)})},testReflect:function(){r.makeVarArgs(function(a){if(null!=a){a=r.fields(a);for(var b=0;b=a.xmlString.length)c();else{var d=new Ma;d.parseXml(a.xmlString);if(null==d||d.isValid())c();else this.onLoadBookXmlClass(d)}}},onLoadBookXmlClass:function(a){if(null!=a&&!a.isValid()){this._binXml=a;var b=a.getAttrString(C.AppTemplateName); a.getAttrString(C.TemplateValidCode);for(a=a.getNodeClass(P.Info);(null==b||0>=b.length)&&null!=a&&!a.isValid();){b=ra.getItemNameValue(a,C.AppTemplateName);ra.getItemNameValue(a,C.TemplateValidCode);break}a=null;a=Yb.getInstance();a.onIoError=k(this,this.onIoError);a.onSecurityError=k(this,this.onSecurityError);a.onProgress=k(this,this.onLoadProgress);var c=a._templateUrl,c=W.replace(c,"{0}",b);a._templateUrl=c;a._templatePath="./template/"+(b+"/");a._templateName=b;this.resetMainLoadingStatus("loading template info.xml..."); a.asyncTemplateLoaded(k(this,this.onTemplateInfoXmlLoad))}},onTemplateInfoXmlLoad:function(a){a=null;a=Yb.getInstance();null==a||null==a._templateText?(this.onStageSetBackgroundColor(16711680),this.resetMainLoadingStatus("loading template info.xml..."),this.resetStatusText("","failure, io error")):(a=Yb.getInstance(),null!=a&&null==a._templateText||0==a._isTemplateLoad?(this.onStageSetBackgroundColor(255),this.resetMainLoadingStatus("loading template info.xml..."),this.resetStatusText("","failure, template error")): (this.removeMainLoading(),null==this._bin||null==this._bin.xmlString?this.testBookXmlProgram(k(this,this.onCompleteInit)):this.testBookBinProgram(k(this,this.onCompleteInit))))},uninit:function(){var a;a=R.getInstance();a.removeEventListener(v.MAINSTAGE_TEXT,this,k(this,this.onLoadingStatusText));a.removeEventListener(v.MAINSTAGE_PROGRESS,this,k(this,this.onLoadingProgressValue))},testMaterialBitmap:function(){var a=this,b=null,b=Wf.getInstance();b.asyncGetIconsBitmap(function(b){null!=b&&a.addChild(b)}, "warning",null,zl.White)},onCompleteInit:function(a){},onCompleteText:function(a){null!=a&&fc.getInstance()},onCompleteReload:function(a){},_bookxml:null,_program:null,_completeInit:null,_completeReload:null,testBookBinProgram:function(a){this.testBookXmlProgram(a)},testBookXmlProgram:function(a){this._completeReload=this._completeInit=null;this._completeInit=a;a=null;a=R.getInstance();a.addEventListener(v.MAINXML_IOERROR,this,k(this,this.onBookXmlReloadIoError));a.addEventListener(v.MAINXML_COMPLETE, this,k(this,this.onBookXmlReloadComplete));a=new Q(this.stage.stageWidth,this.stage.stageHeight);R.getInstance().dispatchEvent(new ja(v.MAINSTAGE_INIT,new na(this,a,null)));ha.current.stage.addEventListener(vc.KEY_DOWN,k(this,this.onKeyDown));a=pe.getInstance(null);if(null!=this._bin&&null!=this._bin.xmlString&&null!=this._binXml)a.onCompleteXml(this._binXml);else a.reloadXml(Ee.FLIPBOOKXML_PATH)},onKeyDown:function(a){R.getInstance().dispatchEvent(new ja(v.MAINSTAGE_KEYDOWN,new na(this,null,a)))}, onMouseMove:function(a){R.getInstance().dispatchEvent(new ja(v.MAINSTAGE_MOUSEMOVE,new na(this,null,a)))},onStageResize:function(a){this.inited||this.init();this.resizeMainLoadingSize();null!=this._program&&this._program.resize(this.stage.stageWidth,this.stage.stageHeight);var b=new Q(this.stage.stageWidth,this.stage.stageHeight);R.getInstance().dispatchEvent(new ja(v.MAINSTAGE_RESIZE,new na(this,b,a)))},drawBackground:function(a){null==a&&(a=16777215);this.onStageSetBackgroundColor(a)},onStageSetBackgroundColor:function(a, b){null==b&&(b=.65);null==a&&(a=16711680);this.get_graphics().clear();this.get_graphics().beginFill(a,b);this.get_graphics().drawRect(0,0,this.stage.stageWidth,this.stage.stageHeight);this.get_graphics().endFill()},onBookXmlReloadIoError:function(a){null!=a&&null!=a._data&&(this.onStageSetBackgroundColor(16711680),this.resetMainLoadingStatus("loading book.bin..."),this.resetStatusText("","failure, file error"))},onBookXmlReloadComplete:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._trigger, pe)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}this._bookxml=b;null==this._program?(this._program=lb.getInstance(this.stage.stageWidth,this.stage.stageHeight),this.addChild(this._program),this._program.resetXmlClassInfo(this._bookxml._xml),a=null,a=Rd.getInstance(),a._pageWidth=this._program._pageWidth,a._pageHeight=this._program._pageHeight,b=T.IsRightToLeft(),a._isRightToLeft=b,this._program.installProgramSprites(null),Lb.configUI_Program(this._program), null!=this._completeInit&&this._completeInit(this._program)):(this._program.resetXmlClassInfo(this._bookxml._xml),a=null,a=Rd.getInstance(),a._pageWidth=this._program._pageWidth,a._pageHeight=this._program._pageHeight,b=T.IsRightToLeft(),a._isRightToLeft=b,this._program.resteupProgramSprites(null),null!=this._completeReload&&this._completeReload(this._program));null!=this._program&&this._program.resize(this.stage.stageWidth,this.stage.stageHeight)}},sbs:null,initTestSprite:function(){this.sbs=[]; for(var a=0;12>a;){var b=a++,c=new Al(b+1);this.sbs.push(c);var d=b/4*(c.h+20);c.set_x(b%4*(c.w+20));c.set_y(d);c.addEventListener(A.CLICK,k(this,this.onTestMouseClick));c.addEventListener(A.MOUSE_MOVE,k(this,this.onTestMouseMove));c.addEventListener(A.MOUSE_OVER,k(this,this.onTestMouseOver));c.addEventListener(A.MOUSE_OUT,k(this,this.onTestMouseOut));c.addEventListener(A.MOUSE_DOWN,k(this,this.onTestMouseDown));c.addEventListener(A.MOUSE_UP,k(this,this.onTestMouseUp));this.addChild(c);c.drawSprite(16711935, .95)}},onTestMouseMove:function(a){var b=a.target;null==b?null:1==b.isDown&&(b.set_x(a.stageX-b.dx),b.set_y(a.stageY-b.dy))},onTestMouseOver:function(a){a=a.target;null==a?null:a.drawSprite(7829367,.95)},onTestMouseOut:function(a){a=a.target;null==a?null:a.drawSprite(16777215,.95)},onTestMouseClick:function(a){a=a.target;null==a?null:a.drawSprite(255,.95)},onTestMouseDown:function(a){a=a.target;null==a?null:(a.drawSprite(16711680,.95),a.isDown=!0)},onTestMouseUp:function(a){a=a.target;null==a?null: (a.drawSprite(30464,.95),a.isDown=!1)},iCount:null,timerFunc:function(a){null},timerDelay:function(a){null},testTimer:function(){(new ek(100,10)).start(k(this,this.timerFunc),null);gc.delayCall(200,k(this,this.timerDelay),null);gc.delayCall(600,k(this,this.timerDelay),null);gc.delayCall(800,k(this,this.timerDelay),null)},_label:null,_loading:null,removeMainLoading:function(){null!=this._label&&(this._label._alpha=0,this.removeChild(this._label),this._label.destroy(),this._label=null);null!=this._loading&& (this._loading._alpha=0,this._loading.stop(),this.removeChild(this._loading),this._loading.destroy(),this._loading=null)},createMainLoading:function(){null==this._loading&&(this._label=new Sd(100,48),this._label.set_isStroke(!0),this.addChild(this._label),null!=this._label.textField&&(this._label.textField.set_text(""),this._label.textField.set_selectable(!1),this._label.textField.set_autoSize(Ka.LEFT),this._label.textField._size=18,this._label.textField._color=16777215,this._label.textField._font= "Tahoma",this._label.textField.updateTextFormat()),this._loading=new Bl(20,16777215,4),this.addChild(this._loading),this._loading.loadingMode=Wh.Circle,this._loading.loadingMode=Wh.RoundRect,this._loading.resetLoading(),this._loading.run(),this._loading.setPercentText("0"),this.resizeMainLoadingSize(),this._label._alpha=0,this._loading._alpha=0)},onLoadingStatusText:function(a){},resetMainLoadingStatus:function(a){null==a&&(a="");null!=this._label&&null!=this._label.textField&&(this._label.textField.set_text(a), this._label.textField.updateTextFormat(),this._label.centerTextWidth())},onLoadingProgressValue:function(a){},resetMainLoadingPercent:function(a){a=y.string(a|0);null==a&&(a="");null!=this._loading&&this._loading.setPercentText(a)},resizeMainLoadingSize:function(){null!=this._label&&(this._label.resize(this.stage.stageWidth,20),null==this._loading&&(this._label.set_x(0),this._label.set_y(.5*(this.stage.stageHeight-this._label._height)),this._label.centerTextWidth()));null!=this._loading&&(this._loading.set_x(.5* (this.stage.stageWidth-this._loading._width)),this._loading.set_y(.5*(this.stage.stageHeight-this._loading._height)),null!=this._label&&(this._loading.set_y(-1*this._label._height+.5*(this.stage.stageHeight-this._loading._height)),this._label.move(this._label.get_x(),this._loading.get_bottom()+10),this._label.centerTextWidth()))},added:function(a){this.removeEventListener(J.ADDED_TO_STAGE,k(this,this.added));this.stage.addEventListener(J.RESIZE,k(this,this.onStageResize));this.init()},__class__:nh}); var sl=function(){ha.current.addChild(this);nh.call(this);this.dispatchEvent(new J(J.ADDED_TO_STAGE,!1,!1))};g.DocumentClass=sl;sl.__name__=["DocumentClass"];sl.__super__=nh;sl.prototype=t(nh.prototype,{__class__:sl});var Oi=function(){this.onChange=new Pc};g["lime.AssetLibrary"]=Oi;Oi.__name__=["lime","AssetLibrary"];Oi.prototype={onChange:null,exists:function(a,b){return!1},getAudioBuffer:function(a){return null},getBytes:function(a){return null},getFont:function(a){return null},getImage:function(a){return null}, getPath:function(a){return null},getText:function(a){a=this.getBytes(a);return null==a?null:a.readUTFBytes(a.length)},isLocal:function(a,b){return!0},list:function(a){return null},load:function(){var a=this;return new lc(function(){return a})},loadAudioBuffer:function(a){var b=this;return new lc(function(){return b.getAudioBuffer(a)})},loadBytes:function(a){var b=this;return new lc(function(){return b.getBytes(a)})},loadFont:function(a){var b=this;return new lc(function(){return b.getFont(a)})},loadImage:function(a){var b= this;return new lc(function(){return b.getImage(a)})},loadText:function(a){return this.loadBytes(a).then(function(a){return new lc(function(){return null==a?null:a.readUTFBytes(a.length)})})},unload:function(){},__class__:Oi};var Cl=function(){this.type=new fa;this.path=new fa;this.className=new fa;this.onChange=new Pc;var a;a="img/audioplayer1/first.svg";this.path.set(a,a);this.type.set(a,"TEXT");a="img/audioplayer1/last.svg";this.path.set(a,a);this.type.set(a,"TEXT");a="img/audioplayer1/openfl.svg"; this.path.set(a,a);this.type.set(a,"TEXT");a="img/audioplayer1/pause.svg";this.path.set(a,a);this.type.set(a,"TEXT");a="img/audioplayer1/play.svg";this.path.set(a,a);this.type.set(a,"TEXT");a="img/audioplayer1/spinner.svg";this.path.set(a,a);this.type.set(a,"TEXT");a="img/audioplayer1/volume.svg";this.path.set(a,a);this.type.set(a,"TEXT");a="img/audioplayer1/volume_shade.svg";this.path.set(a,a);this.type.set(a,"TEXT");a="img/imgdefault.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="img/videoplayer1/ic_play_circle_fill_grey600_24dp.png"; this.path.set(a,a);this.type.set(a,"IMAGE");a="img/videoplayer1/ic_play_circle_fill_white_24dp.png";this.path.set(a,a);this.type.set(a,"IMAGE");a=null;null!=kc.config&&Object.prototype.hasOwnProperty.call(kc.config,"assetsPrefix")&&(a=kc.config.assetsPrefix);if(null!=a)for(var b=this.path.keys();b.hasNext();){var c=b.next(),d=a+this.path.get(c);this.path.set(c,d)}};g.DefaultAssetLibrary=Cl;Cl.__name__=["DefaultAssetLibrary"];Cl.__super__=Oi;Cl.prototype=t(Oi.prototype,{className:null,path:null,type:null, lastModified:null,timer:null,exists:function(a,b){var c;c=null!=b?m.__cast(b,String):null;var d=this.type.get(a);return null==d||d!=c&&("SOUND"!=c&&"MUSIC"!=c||"MUSIC"!=d&&"SOUND"!=d)&&"BINARY"!=c&&null!=c&&("BINARY"!=d||"TEXT"!=c)?!1:!0},getAudioBuffer:function(a){return null},getBytes:function(a){var b=null,b=this.path.get(a),b=bd.loaders.get(b);if(null==b)return null;a=b.data;"string"==typeof a?(b=new ib,b.writeUTFBytes(a)):b=m.__instanceof(a,ib)?a:null;return null!=b?(b.position=0,b):null},getFont:function(a){return m.__cast(Za.createInstance(this.className.get(a), []),Bf)},getImage:function(a){return Fb.fromImageElement(function(b){b=b.path.get(a);return bd.images.get(b)}(this))},getPath:function(a){return this.path.get(a)},getText:function(a){var b=null;a=this.path.get(a);a=bd.loaders.get(a);if(null==a)return null;a=a.data;if("string"==typeof a)return a;b=m.__instanceof(a,ib)?a:null;return null!=b?(b.position=0,b.readUTFBytes(b.length)):null},isLocal:function(a,b){null!=b&&m.__cast(b,String);return!0},list:function(a){var b;b=null!=a?m.__cast(a,String):null; for(var c=[],d=this.type.keys();d.hasNext();){var e=d.next();(null==b||this.exists(e,a))&&c.push(e)}return c},loadAudioBuffer:function(a){var b=this,c=new Td;c.completeWith(new lc(function(){return b.getAudioBuffer(a)}));return c.future},loadBytes:function(a){var b=new Td;if(this.path.exists(a)){var c=new Xh;c.set_dataFormat(qe.BINARY);c.onComplete.add(function(a){b.complete(c.data)});c.onProgress.add(function(a,c,f){0==f?b.progress(0):b.progress(c/f)});c.onIOError.add(function(a,c){b.error(c)}); c.load(new Pi(this.path.get(a)))}else b.complete(this.getBytes(a));return b.future},loadImage:function(a){var b=new Td;if(this.path.exists(a)){var c=new Image;c.onload=function(a){b.complete(Fb.fromImageElement(c))};c.onerror=k(b,b.error);c.src=this.path.get(a)}else b.complete(this.getImage(a));return b.future},loadText:function(a){var b=new Td;if(this.path.exists(a)){var c=new Xh;c.onComplete.add(function(a){b.complete(c.data)});c.onProgress.add(function(a,c,f){0==f?b.progress(0):b.progress(c/f)}); c.onIOError.add(function(a,c){b.error(c)});c.load(new Pi(this.path.get(a)))}else b.complete(this.getText(a));return b.future},__class__:Cl});var Lc=function(a,b){b=b.split("u").join("");this.r=new RegExp(a,b)};g.EReg=Lc;Lc.__name__=["EReg"];Lc.prototype={r:null,match:function(a){this.r.global&&(this.r.lastIndex=0);this.r.m=this.r.exec(a);this.r.s=a;return null!=this.r.m},matched:function(a){if(null!=this.r.m&&0<=a&&ab?"0"+b:""+b)+"-"+(10>c?"0"+c:""+c)+" "+(10>d?"0"+d:""+d)+":"+(10>e?"0"+e:""+e)+":"+(10>f?"0"+f:""+f)};X.strDate=function(a){switch(a.length){case 8:a=a.split(":");var b=new Date;b.setTime(0);b.setUTCHours(a[0]); b.setUTCMinutes(a[1]);b.setUTCSeconds(a[2]);return b;case 10:return a=a.split("-"),new Date(a[0],a[1]-1,a[2],0,0,0);case 19:return b=a.split(" "),a=b[0].split("-"),b=b[1].split(":"),new Date(a[0],a[1]-1,a[2],b[0],b[1],b[2]);default:throw new q("Invalid date format : "+a);}};X.cca=function(a,b){var c=a.toString().charCodeAt(b);return c!=c?void 0:c};X.substr=function(a,b,c){if(null!=b&&0!=b&&null!=c&&0>c)return"";null==c&&(c=a.length);0>b?(b=a.length+b,0>b&&(b=0)):0>c&&(c=a.length+c-b);return a.toString().substr(b, c)};X.indexOf=function(a,b,c){var d=a.length;0>c&&(c+=d,0>c&&(c=0));for(;c.299*(a>>16&255)+.587*(a>>8&255)+.114*(a&255)&&(b=16777215);var a=this.getHeight()/2-3.5,c=this.getWidth()-60;this.outline=new F;this.outline.get_graphics().beginFill(b, .07);this.outline.get_graphics().drawRect(0,0,c,7);this.outline.set_x(30);this.outline.set_y(a);this.addChild(this.outline);this.progress=new F;this.progress.get_graphics().beginFill(b,.35);this.progress.get_graphics().drawRect(0,0,c-4,3);this.progress.set_x(32);this.progress.set_y(a+2);this.progress.set_scaleX(0);this.addChild(this.progress)};g.NMEPreloader=Vf;Vf.__name__=["NMEPreloader"];Vf.__super__=F;Vf.prototype=t(F.prototype,{outline:null,progress:null,getBackgroundColor:function(){return 0}, getHeight:function(){return ha.current.stage.stageHeight},getWidth:function(){return ha.current.stage.stageWidth},onInit:function(){},onLoaded:function(){this.dispatchEvent(new J(J.COMPLETE))},onUpdate:function(a,b){var c=a/b;1").join(">");return b?a.split('"').join(""").split("'").join("'"):a};W.htmlUnescape=function(a){return a.split(">").join(">").split("<").join("<").split(""").join('"').split("'").join("'").split("&").join("&")}; W.startsWith=function(a,b){return a.length>=b.length&&X.substr(a,0,b.length)==b};W.endsWith=function(a,b){var c=b.length,d=a.length;return d>=c&&X.substr(a,d-c,c)==b};W.isSpace=function(a,b){var c=X.cca(a,b);return 8c||32==c};W.ltrim=function(a){for(var b=a.length,c=0;c>>=4;while(0a;return c!=0>b?c:a>b};Fa.gte=function(a, b){var c=0>a;return c!=0>b?c:a>=b};Fa.toFloat=function(a){return 0>a?4294967296+a:a+0};var Z=function(a){this.nodeType=a;this.children=[];this.attributeMap=new fa};g.Xml=Z;Z.__name__=["Xml"];Z.parse=function(a){return oh.parse(a)};Z.createElement=function(a){var b=new Z(Z.Element);if(b.nodeType!=Z.Element)throw new q("Bad node type, expected Element but found "+b.nodeType);b.nodeName=a;return b};Z.createPCData=function(a){var b=new Z(Z.PCData);if(b.nodeType==Z.Document||b.nodeType==Z.Element)throw new q("Bad node type, unexpected "+ b.nodeType);b.nodeValue=a;return b};Z.createCData=function(a){var b=new Z(Z.CData);if(b.nodeType==Z.Document||b.nodeType==Z.Element)throw new q("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};Z.createComment=function(a){var b=new Z(Z.Comment);if(b.nodeType==Z.Document||b.nodeType==Z.Element)throw new q("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};Z.createDocType=function(a){var b=new Z(Z.DocType);if(b.nodeType==Z.Document||b.nodeType==Z.Element)throw new q("Bad node type, unexpected "+ b.nodeType);b.nodeValue=a;return b};Z.createProcessingInstruction=function(a){var b=new Z(Z.ProcessingInstruction);if(b.nodeType==Z.Document||b.nodeType==Z.Element)throw new q("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};Z.createDocument=function(){return new Z(Z.Document)};Z.prototype={nodeType:null,nodeName:null,nodeValue:null,parent:null,children:null,attributeMap:null,get_nodeName:function(){if(this.nodeType!=Z.Element)throw new q("Bad node type, expected Element but found "+ this.nodeType);return this.nodeName},get:function(a){if(this.nodeType!=Z.Element)throw new q("Bad node type, expected Element but found "+this.nodeType);return this.attributeMap.get(a)},set:function(a,b){if(this.nodeType!=Z.Element)throw new q("Bad node type, expected Element but found "+this.nodeType);this.attributeMap.set(a,b)},exists:function(a){if(this.nodeType!=Z.Element)throw new q("Bad node type, expected Element but found "+this.nodeType);return this.attributeMap.exists(a)},attributes:function(){if(this.nodeType!= Z.Element)throw new q("Bad node type, expected Element but found "+this.nodeType);return this.attributeMap.keys()},iterator:function(){if(this.nodeType!=Z.Document&&this.nodeType!=Z.Element)throw new q("Bad node type, expected Element or Document but found "+this.nodeType);return X.iter(this.children)},elements:function(){if(this.nodeType!=Z.Document&&this.nodeType!=Z.Element)throw new q("Bad node type, expected Element or Document but found "+this.nodeType);for(var a=[],b=0,c=this.children;ba.get_bottom()?b.x<=c?Na.bottom_left:Na.bottom_right:b.x<=c?b.y<=d?Na.left_top:Na.left_bottom:b.y<=d?Na.right_top:Na.right_bottom},getObjectBounds:function(){var a=this._container.localToGlobal(this._topcornerPoint),a=this.globalToLocal(a),b=this._container.localToGlobal(this._bottomcornerPoint),b=this.globalToLocal(b); return new va(a.x,a.y,b.x-a.x,b.y-a.y)},render:function(){this._container.get_graphics().clear();-1!=this._params.strokeColor&&("round_rectangle"==this._type||"rectangle"==this._type?this._container.get_graphics().lineStyle(this._params.strokeWidth,this._params.strokeColor,this._params.strokeAlpha,!1,yb.NORMAL,Mc.SQUARE,Gc.MITER):this._container.get_graphics().lineStyle(this._params.strokeWidth,this._params.strokeColor,this._params.strokeAlpha));-1!=this._params.fillColor&&this._container.get_graphics().beginFill(this._params.fillColor, this._params.fillAlpha);var a=new va(this._topcornerPoint.x,this._topcornerPoint.y,this._bottomcornerPoint.x-this._topcornerPoint.x,this._bottomcornerPoint.y-this._topcornerPoint.y);"oval"==this._type?this.drawOvalCallout(this._container.get_graphics(),a,this._controlPoint):"round_rectangle"==this._type?this.drawRoundRectCallout(this._container.get_graphics(),a,this._controlPoint):"rectangle"==this._type&&this.drawRectCallout(this._container.get_graphics(),a,this._controlPoint);-1!=this._params.fillColor&& this._container.get_graphics().endFill()},cal_twopoint_angle:function(a,b){var c=Math.atan2(b.y-a.y,b.x-a.x);return c=360*(0b;)f=Re.radians(b),h=Re.radians(b+10),d=Fp*Math.cos(f),e=g*Math.sin(f),f=p*Math.cos(h),h=H*Math.sin(h),b>=m&&bthis._trackRect.x+this._trackRect.width-this._trackball.get_width()?this.seek(this.getDuration()):(b=(b-this._trackRect.x)/(this._trackRect.width-this._trackball.get_width())*this.getDuration(),this.seek(b)); this._isSeeking=!1;a.stopPropagation();this.removeEventListener(A.MOUSE_UP,k(this,this.onTrackBallMouseUp));this.removeEventListener(A.MOUSE_MOVE,k(this,this.onTrackBallMouseMove))},onTrackBallMouseMove:function(a){a.stopPropagation();this._mediaLoaded&&(a=this.get_mouseX()-.5*this._trackball.get_width(),athis._trackRect.x+this._trackRect.width-this._trackball.get_width()||(this._trackball.set_x(a),a=(a-this._trackRect.x)/(this._trackRect.width-this._trackball.get_width()),this._textStartTM.set_text(Gb.formatTime(this.getDuration()* a))))},onCanplay:function(){this._isWaiting=!1;this._firstLoad&&(this._sound.play(),this._isPlaying=!0,this._firstLoad=!1,this._mediaLoaded=!0,this._mediaDuration=this.getDuration());this.onPlayerMediaInitialized()},load:function(a){null!=this._sound&&(this.stopAndClose(),this._mediaSource=a,this._mediaLoaded=this._stopped=!1,this._firstLoad=!0,this._startTime=0,this.onPlayerBuffering(),this._sound.src=a,this._sound.load())},canSeek:function(a){var b=!1;if(null!=this._sound)for(var c=0,d=this._sound.seekable.length;c< d;){var e=c++;a>=this._sound.seekable.start(e)&&a=this.getDuration()?this.re_pos_trackball(0):this.re_pos_trackball(this.getCurrentTime()/this.getDuration())},resize:function(a,b){this._realWidth=a;this._realHeight=b;this._realHeight=2.8*this._em;this.re_pos();this.render()},render:function(){this._container.get_graphics().clear();this._container.get_graphics().lineStyle();var a=[Gb.rgb(255,255,255),Gb.rgb(255,255,255),Gb.rgb(255,255,255),Gb.rgb(0,0,0),Gb.rgb(0,0,0)],b=[.125,.125,.15,.1,.1],c=[12,114,127,127,242],d=new pa;this._container.get_graphics().beginFill(this._bkColor, 1);this._container.get_graphics().drawRoundRect(0,0,this._realWidth,this._realHeight,4);this._isflat||(d.createGradientBox(this._realWidth-2,this._realHeight,90*Math.PI/180,0,0),this._container.get_graphics().beginGradientFill(aa.LINEAR,a,b,c,d),this._container.get_graphics().drawRect(0,0,this._realWidth,this._realHeight));Zb=this._container.get_graphics();k(Zb,Zb.endFill);this._container.get_graphics().lineStyle(1,Gb.rgb(0,0,0),.0980392);this._container.get_graphics().moveTo(this._realHeight,0); this._container.get_graphics().lineTo(this._realHeight,this._realHeight);this._container.get_graphics().moveTo(this._realWidth-this._realHeight,0);this._container.get_graphics().lineTo(this._realWidth-this._realHeight,this._realHeight)},removeEventHandler:function(a){this.removeEventListener(J.REMOVED_FROM_STAGE,k(this,this.removeEventHandler))},setPlay:function(){1!=this.isPlaying()&&this.togglePlay()},setPause:function(){1==this.isPlaying()&&this.togglePlay()},setLoop:function(a){null==a&&(a=!1); this._sound_loop=a},__class__:fk,__properties__:t(F.prototype.__properties__,{get_realHeight:"get_realHeight",get_realWidth:"get_realWidth",set_params:"set_params",get_params:"get_params"})});var Qi=function(a){this.pos=0;F.call(this);this.bmaps=[];this.frames=rc.decode(a).frameList;a=0;for(var b=this.frames;aFp;){switch(Fp++){case 0:h=0;p=8;break;case 1:h=4; p=8;break;case 2:h=2;p=4;break;case 3:h=1,p=2}for(H=h;Hc;)H=Re.radians(c),k=Re.radians(c+this.THETA/2),h=this._d*Math.cos(H),H=this._d*Math.sin(H),g=this._r*Math.cos(k),k=this._r*Math.sin(k),a.get_graphics().curveTo(p.x+h,p.y+H,p.x+g,p.y+k),c=c+this.THETA|0;f+=this._dotSpacing|0}a.get_graphics().endFill()}},render:function(){this._container.get_graphics().clear(); this.apply(this._container,this._startPoint,this._endPoint)},removeEventHandler:function(a){this.removeEventListener(J.REMOVED_FROM_STAGE,k(this,this.removeEventHandler))},__class__:Ml,__properties__:t(xb.prototype.__properties__,{get_endPoint:"get_endPoint",get_startPoint:"get_startPoint"})});var Nl=function(a,b){F.call(this);this.textContent=new La;this.textContent.set_defaultTextFormat(b);this.textContent.set_autoSize(Ka.LEFT);this.textContent.set_text(a);this.addChild(this.textContent)};g["com.firstflip.xeditor.objects.TextDeom"]= Nl;Nl.__name__=["com","firstflip","xeditor","objects","TextDeom"];Nl.__super__=F;Nl.prototype=t(F.prototype,{textContent:null,__class__:Nl});var Gp=function(){this.height=this.width=0};g["com.firstflip.xeditor.objects.TextSize"]=Gp;Gp.__name__=["com","firstflip","xeditor","objects","TextSize"];Gp.prototype={width:null,height:null,__class__:Gp};var Hp=function(){this.map=new Ed;this.size=new Gp};g["com.firstflip.xeditor.objects.TextFormatMapType"]=Hp;Hp.__name__=["com","firstflip","xeditor","objects", "TextFormatMapType"];Hp.prototype={size:null,map:null,__class__:Hp};var Ip=function(){this.format=new ub};g["com.firstflip.xeditor.objects.TextData"]=Ip;Ip.__name__=["com","firstflip","xeditor","objects","TextData"];Ip.prototype={text:null,format:null,__class__:Ip};var Jp=function(a){this.text="";for(var b=0,c=a.length;bp?this.lineMaxH:p;this.lineSizeX<=this._width? (this.newFormat=a.textMap[f].map.h[f],this.newFormat!=this.oldFormat?(this.textBlock.push(new hk),this.textBlock[this.textBlock.length-1].textField.set_defaultTextFormat(b[this.newFormat].format),this.textBlock[this.textBlock.length-1].textField.appendText(a.text.charAt(f)),this.textBlock[this.textBlock.length-1].textField.set_selectable(!1),this.textBlock[this.textBlock.length-1].textField.set_x(this.lineSizeX-(h-this.offsetX)),this.textBlock[this.textBlock.length-1].textField.set_y(this.lineSizeY+ (this.lineMaxH-p)/2),this.oldFormat=this.newFormat,c=1):this.textBlock[this.textBlock.length-1].textField.appendText(a.text.charAt(f))):(this.lineSizeY+=this.lineMaxH-this.offsetY,this.lineMaxH=this.lineSizeX=0,this.lineSizeX=1==c?h:this.lineSizeX+(h-this.offsetX),this.lineMaxH=this.lineMaxH>p?this.lineMaxH:p,this.newFormat=a.textMap[f].map.h[f],this.newFormat!=this.oldFormat?(this.textBlock.push(new hk),this.textBlock[this.textBlock.length-1].textField.set_defaultTextFormat(b[this.newFormat].format), this.textBlock[this.textBlock.length-1].textField.appendText(a.text.charAt(f)),this.textBlock[this.textBlock.length-1].textField.set_selectable(!1),this.textBlock[this.textBlock.length-1].textField.set_x(0),this.textBlock[this.textBlock.length-1].textField.set_y(this.lineSizeY),this.oldFormat=this.newFormat,c=1):(this.textBlock.push(new hk),this.textBlock[this.textBlock.length-1].textField.set_defaultTextFormat(b[this.oldFormat].format),this.textBlock[this.textBlock.length-1].textField.appendText(a.text.charAt(f)), this.textBlock[this.textBlock.length-1].textField.set_selectable(!1),this.textBlock[this.textBlock.length-1].textField.set_x(0),this.textBlock[this.textBlock.length-1].textField.set_y(this.lineSizeY)))}a=0;for(b=this.textBlock.length;ah){switch(this._stepType){case "circle":h=this.cal_font_size(this._realWidth,this._realHeight);break;case "circle-pointer":h=this.cal_font_size(.7*this._realWidth,this._realHeight);break;case "square":h=this.cal_font_size(this._realWidth,this._realHeight);break;case "square-pointer":h=this.cal_font_size(this._realWidth,this._realHeight)}this._fontsize=h}a=new ub("Arial",h|0,this._titleColor,!0);this._textField=new La; this._textField.set_autoSize(Ka.LEFT);this._textField.set_defaultTextFormat(a);this._textField.set_text(this._title);this._textField.set_selectable(!1);this._container.addChild(this._textField);this.addEventListener(J.REMOVED_FROM_STAGE,k(this,this.removeEventHandler));this.render()};g["com.firstflip.xeditor.objects.StepObject"]=Mg;Mg.__name__=["com","firstflip","xeditor","objects","StepObject"];Mg.createDropShadowFilter=function(a){return new Vd(parseFloat(a[0]),parseFloat(a[1]),y.parseInt(a[2]), parseFloat(a[3]),parseFloat(a[4]),parseFloat(a[5]),parseFloat(a[6]),y.parseInt(a[7]),"true"==a[8],"true"==a[9],"true"==a[10])};Mg.__super__=xb;Mg.prototype=t(xb.prototype,{_stepType:null,_title:null,_bkgrColor:null,_titleColor:null,_fontsize:null,_textField:null,measureString:function(a,b){var c=new La;c.set_defaultTextFormat(b);c.set_text(a);return new va(0,0,c.get_textWidth(),c.get_textHeight())},cal_font_size:function(a,b){var c;c=a>b?.75*b:.75*a;var d=new ub("Arial",c|0,this._titleColor,!0),d= this.measureString(this._title,d),e=1;d.width>a&&(e=d.width/a);d.height>b&&d.height/b>e&&(e=d.height/b);for(c/=e;;)if(d=new ub("Arial",c|0,this._titleColor,!0),d=this.measureString(this._title,d),d.width>.9*a||d.height>.9*b)--c;else break;return c},draw_title:function(a,b,c,d,e){m.__cast(a,F).get_graphics();a=new ub("Arial",this._fontsize|0,this._titleColor,!0);this._textField.set_autoSize(Ka.LEFT);this._textField.set_defaultTextFormat(a);this._textField.set_text(this._title);this._textField.set_x(.5* (d-this._textField.get_width()));this._textField.set_y(.5*(e-this._textField.get_height()))},drawRoundRectComplex:function(a,b,c,d,e,f,h,p,H){var g=b+d,k=c+e;d=d=p?p:h;f.lineStyle(.5,0,1);f.beginFill(this._bkgrColor,1);this.drawRoundRectComplex(f,b,c,d,e,2*h,2*h,2*h,2*h);f.endFill();a.set_filters([Mg.createDropShadowFilter("1 90 0 0.6 1 1 1 1 false false false".split(" "))])},draw_square_pointer:function(a,b,c,d,e){a= m.__cast(a,F);b=a.get_graphics();d/=42;e/=42;b.lineStyle(1,0,1);b.beginFill(this._bkgrColor,1);b.moveTo(13*d,e);b.lineTo(39*d,e);b.curveTo(40*d,e,41*d,3*e);b.lineTo(41*d,29*e);b.curveTo(41*d,35*e,27*d,41*e);b.lineTo(13*d,41*e);b.curveTo(7*d,41*e,d,29*e);b.lineTo(d,15*e);b.curveTo(d,8*e,13*d,e);b.endFill();a.set_filters([Mg.createDropShadowFilter("1 90 0 0.6 1 1 1 1 false false false".split(" "))])},draw_Circle:function(a,b,c,d,e){a=m.__cast(a,F);var f=a.get_graphics();f.lineStyle(.5,0,1);f.beginFill(this._bkgrColor, 1);f.drawEllipse(b,c,d,e);f.endFill();a.set_filters([Mg.createDropShadowFilter("1 90 0 0.6 1 1 1 1 false false false".split(" "))])},draw_Circle_Pointer:function(a,b,c,d,e){a=m.__cast(a,F);b=a.get_graphics();d/=64;e/=42;b.lineStyle(.5,0,1);b.beginFill(this._bkgrColor,1);b.moveTo(63*d,21*e);b.curveTo(63*d,21*e,21*d,41*e);b.curveTo(5*d,41*e,d,21*e);b.curveTo(d,10*e,21*d,e);b.curveTo(20*d,e,63*d,21*e);b.endFill();a.set_filters([Mg.createDropShadowFilter("1 90 0 0.6 1 1 1 1 false false false".split(" "))])}, render:function(){this._container.get_graphics().clear();switch(this._stepType){case "circle":this.draw_Circle(this._container,0,0,this._realWidth,this._realHeight);this.draw_title(this._container,0,0,this._realWidth,this._realHeight);break;case "circle-pointer":this.draw_Circle_Pointer(this._container,0,0,this._realWidth,this._realHeight);this.draw_title(this._container,0,0,.7*this._realWidth,this._realHeight);break;case "square":this.draw_square(this._container,0,0,this._realWidth,this._realHeight); this.draw_title(this._container,0,0,this._realWidth,this._realHeight);break;case "square-pointer":this.draw_square_pointer(this._container,0,0,this._realWidth,this._realHeight),this.draw_title(this._container,0,0,this._realWidth,this._realHeight)}},removeEventHandler:function(a){this.removeEventListener(J.REMOVED_FROM_STAGE,k(this,this.removeEventHandler))},__class__:Mg});var hc=function(a,b,c,d,e,f,h){null==h&&(h="");null==f&&(f="normal");null==e&&(e=14);null==d&&(d="Arial");this._props=[];this._draw_type= "roundrect";this._status="normal";this._text="";xb.call(this,b,c);this._container=new F;this._container.set_name("button_container");this.addChild(this._container);this._realWidth=b;this._realHeight=c;this._fontname=d;this._fontsize=e;this._font_weight=f;this._text=h;this.pre_init();this.change_button_type(a);this.init();this.addEventListener(J.REMOVED_FROM_STAGE,k(this,this.removeEventHandler));this.render()};g["com.firstflip.xeditor.objects.TrButtonObject"]=hc;hc.__name__=["com","firstflip","xeditor", "objects","TrButtonObject"];hc.copy_prop=function(a,b){for(var c=0,d=r.fields(a);c=e.length||(e=e[0],"dropShadow"==e?a.push(hc.createDropShadowFilter(r.field(this.get_prop_field("box_shadow",this._status),d))):"blur"==e&&a.push(hc.createBlurFilter(r.field(this.get_prop_field("box_shadow", this._status),d))))}this.set_filters(a)}},removeEventHandler:function(a){this.removeEventListener(J.REMOVED_FROM_STAGE,k(this,this.removeEventHandler))},__class__:hc});var rh=function(a,b,c,d,e,f){null==f&&(f=0);this._player=null;this._parameters={};this.ytPlayer=null;this.ytManager=ta.getInstance();xb.call(this,c,d);this._container=new F;this._container.set_name("player_container");this.addChild(this._container);for(var h=0,p=r.fields(e);ha.length)return null;if("inset"==a[0]){if(3>=a.length)return null;if(4==a.length)return{inner:!0,offset_x:y.parseFloat(W.replace(a[1],"px","")),offset_y:y.parseFloat(W.replace(a[2],"px","")),color:Ia.color_cal(a[3]).color,alpha:Ia.color_cal(a[3]).alpha};if(5==a.length)return{inner:!0,offset_x:y.parseFloat(W.replace(a[1],"px","")),offset_y:y.parseFloat(W.replace(a[2], "px","")),blur_radius:y.parseFloat(W.replace(a[3],"px","")),color:Ia.color_cal(a[4]).color,alpha:Ia.color_cal(a[4]).alpha}}else{if(3==a.length)return{inner:!1,offset_x:y.parseFloat(W.replace(a[0],"px","")),offset_y:y.parseFloat(W.replace(a[1],"px","")),color:Ia.color_cal(a[2]).color,alpha:Ia.color_cal(a[2]).alpha};if(4==a.length)return{inner:!1,offset_x:y.parseFloat(W.replace(a[0],"px","")),offset_y:y.parseFloat(W.replace(a[1],"px","")),blur_radius:y.parseFloat(W.replace(a[2],"px","")),color:Ia.color_cal(a[3]).color, alpha:Ia.color_cal(a[3]).alpha}}return null};Ia.parse_css_text_shadow=function(a){return Ia.parse_css_box_shadow(a)};Ia.parse_css_linear_gradient=function(a){a=a.split(",");if(3!=a.length)return null;var b=90;"t"==a[0].charAt(0)?-1!=a[0].indexOf("bottom")?b=90:-1!=a[0].indexOf("top")?b=270:-1!=a[0].indexOf("left")?b=180:-1!=a[0].indexOf("right")&&(b=0):b=y.parseFloat(W.replace(a[0],"deg",""));return{angle:b,color1:Ia.color_cal(a[1]).color,color2:Ia.color_cal(a[2]).color,alpha1:1,alpha2:1,ratio1:0, ratio2:255}};var Gb=function(){};g["com.firstflip.xeditor.utils.TRUtil"]=Gb;Gb.__name__=["com","firstflip","xeditor","utils","TRUtil"];Gb.rgb=function(a,b,c){return a<<16|b<<8|c};Gb.rgba=function(a,b,c,d){return(255*d|0)<<24|a<<16|b<<8|c};Gb.cal_twopoint_angle=function(a,b){var c=Math.atan2(b.y-a.y,b.x-a.x);return c=360*(0d&&(e=d,b=e*a)):(b=d*a,b>c&&(b=c,e=b/a));return{width:b,height:e}};Gb.formatTime=function(a){var b="",c="",d="",e="";1<=a/60/60?(d=10>Math.floor(a/60)/60?"0"+Math.floor(a/60/60)+":":Math.floor(a/60/60)+":",c=10>Math.floor(a/60%60)?"0"+Math.floor(a/60%60)+":":Math.floor(a/60%60)+":",b=10>Math.floor(a%60)?"0"+Math.floor(a%60):y.string(Math.floor(a%60))):1<=a/60?(d="00:",c=10>Math.floor(a/60)?"0"+Math.floor(a/60)+":":Math.floor(a/ 60)+":",b=10>Math.floor(a%60)?"0"+Math.floor(a%60):y.string(Math.floor(a%60))):(c=d="00:",b=10>Math.floor(a)?"0"+Math.floor(a):y.string(Math.floor(a)));return e+(d+c+b)};Gb.image_resize=function(a,b,c){var d=b/a.bitmapData.width,e=c/a.bitmapData.height;b=new qb(b,c,!0);c=new pa;c.scale(d,e);b.draw(a.bitmapData,c);return new Ab(b)};var Q=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};g["openfl.geom.Point"]=Q;Q.__name__=["openfl","geom","Point"];Q.distance=function(a,b){var c=a.x-b.x, d=a.y-b.y;return Math.sqrt(c*c+d*d)};Q.interpolate=function(a,b,c){return new Q(b.x+c*(a.x-b.x),b.y+c*(a.y-b.y))};Q.polar=function(a,b){return new Q(a*Math.cos(b),a*Math.sin(b))};Q.prototype={length:null,x:null,y:null,add:function(a){return new Q(a.x+this.x,a.y+this.y)},clone:function(){return new Q(this.x,this.y)},copyFrom:function(a){this.x=a.x;this.y=a.y},equals:function(a){return null!=a&&a.x==this.x&&a.y==this.y},normalize:function(a){if(0!=this.x||0!=this.y)a/=Math.sqrt(this.x*this.x+this.y* this.y),this.x*=a,this.y*=a},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 Q(this.x-a.x,this.y-a.y)},toString:function(){return"(x="+this.x+", y="+this.y+")"},__toLimeVector2:function(){return new Wc(this.x,this.y)},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},__class__:Q,__properties__:{get_length:"get_length"}};var m=function(){};g["js.Boot"]=m;m.__name__=["js","Boot"];m.__unhtml=function(a){return a.split("&").join("&").split("<").join("<").split(">").join(">")}; m.__trace=function(a,b){var c;c=null!=b?b.fileName+":"+b.lineNumber+": ":"";c+=m.__string_rec(a,"");if(null!=b&&null!=b.customParams)for(var d=0,e=b.customParams;d":"undefined"!=typeof xs&&null!=xs.log&&xs.log(c)};m.__clear_trace=function(){var a=document.getElementById("haxe:trace");null!=a&&(a.innerHTML="")};m.isClass=function(a){return a.__name__}; m.isEnum=function(a){return a.__ename__};m.getClass=function(a){if(a instanceof Array&&null==a.__enum__)return Array;var b=a.__class__;if(null!=b)return b;a=m.__nativeClassName(a);return null!=a?m.__resolveNativeClass(a):null};m.__string_rec=function(a,b){if(null==a)return"null";if(5<=b.length)return"<...>";var c=typeof a;"function"==c&&(a.__name__||a.__ename__)&&(c="object");switch(c){case "object":if(a instanceof Array){if(a.__enum__){if(2==a.length)return a[0];c=a[0]+"(";b+="\t";for(var d=2,e= a.length;d";case "string":return a;default:return String(a)}};m.__interfLoop=function(a,b){if(null==a)return!1;if(a==b)return!0;var c=a.__interfaces__;if(null!=c)for(var d=0,e=c.length;dg&&(b=d,c=e),a.lineTo(b,c),b+=p,c+=H,a.moveTo(b,c),g-=h;a.moveTo(d,e)};ob.drawRightTriangle=function(a,b){var c=new Q(b.x,b.y),d=new Q(b.x,b.get_bottom()),e=new Q(b.get_right(),b.get_bottom());a.moveTo(c.x,c.y);a.lineTo(d.x,d.y);a.lineTo(e.x,e.y);a.lineTo(c.x,c.y)};ob.drawTriangle=function(a,b){var c=new Q(b.x,b.get_bottom()),d= new Q(b.get_right(),b.get_bottom()),e=new Q(b.x+b.width/2,b.y);a.moveTo(c.x,c.y);a.lineTo(d.x,d.y);a.lineTo(e.x,e.y);a.lineTo(c.x,c.y)};ob.drawArc=function(a,b,c,d,e,f,h){null==h&&(h=0);null==f&&(f=0);0==f&&(f=0);0==h&&(h=d);var p,H,g,k,l;360=c.width||0>=c.height||ob.drawStarEx(a,c.x+c.width/2,c.y+c.height/2,b,d,c.width<=c.height?c.width/2:c.height/2,e,c.width<=c.height?1:c.width/c.height,c.height<=c.width?1:c.height/c.width)};ob.drawStarEx=function(a,b,c,d,e, f,h,p,H){null==H&&(H=1);null==p&&(p=1);null==h&&(h=0);var g=b,k=c;b=c=0;if(!Fa.gte(2,d)&&Fa.gt(d,2)){var l,x,m;l=2*Math.PI/Fa.toFloat(d);x=l/2;h=h/180*Math.PI;a.moveTo((b+Math.cos(h)*f)*p+g,(c-Math.sin(h)*f)*H+k);for(var ma=1,n=d+1;ma=c.width||0>=c.height||ob.drawPolygon2Ex(a,c.width<=c.height? c.width/2:c.height/2,b,c.x+c.width/2,c.y+c.height/2,d,c.width<=c.height?1:c.width/c.height,c.height<=c.width?1:c.height/c.width)};ob.drawPolygon2Ex=function(a,b,c,d,e,f,h,p){null==p&&(p=1);null==h&&(h=1);var H=d,g=e,k=d=e=0,l=[];c=360/c;e-=b;for(var x=f;(x|0)<=360+f;){var m=d+Math.sin(ob.radians(x))*b,ma=e+(b-Math.cos(ob.radians(x))*b);l[k]=new Q(m,ma);switch(k){case 0:break;case 1:a.moveTo(l[k-1].x*h+H,l[k-1].y*p+g);a.lineTo(l[k].x*h+H,l[k].y*p+g);break;default:a.lineTo(l[k].x*h+H,l[k].y*p+g)}k++; x+=c}};ob.drawPolygon2=function(a,b,c,d,e,f,h,p){f=0;h=[];c=360/c;e-=b;for(var H=p;(H|0)<=360+p;){var g=d+Math.sin(ob.radians(H))*b,k=e+(b-Math.cos(ob.radians(H))*b);h[f]=new Q(g,k);switch(f){case 0:break;case 1:a.moveTo(h[f-1].x,h[f-1].y);a.lineTo(h[f].x,h[f].y);break;default:a.lineTo(h[f].x,h[f].y)}f++;H+=c}};ob.drawBurst=function(a,b,c,d,e,f,h){null==h&&(h=0);if(!Fa.gte(2,d)&&Fa.gt(d,2)){var p,H,g,k,l,x;p=2*Math.PI/Fa.toFloat(d);H=p/2;g=p/4;h=h/180*Math.PI;a.moveTo(b+Math.cos(h)*f,c-Math.sin(h)* f);for(var m=1,ma=d+1;ma?-a:a};ob.ceil=function(a){return 0!=a%1?(a|0)+1:a};ob.prototype={__class__:ob};var Se=function(){};g["com.firstflip.xeditor.utils.TRTypeParser"]=Se;Se.__name__=["com","firstflip","xeditor","utils","TRTypeParser"];Se.parseBool=function(a){var b=!1;null!=a&&(a=W.trim(a),a=a.toLowerCase(), "true"==a||"yes"==a||"1"==a)&&(b=!0);return b};Se.parseColor=function(a){var b=0;null!=a&&(a=W.trim(a),W.startsWith(a,"#")&&(a="0x"+X.substr(a,1,a.length-1)),b=y.parseInt(a));return b};Se.parsePoint=function(a){var b=new Q(0,0);null!=a&&(a=W.trim(a),a=a.split(","),2==a.length&&(b.x=y.parseInt(a[0]),b.y=y.parseInt(a[1])));return b};var Np=function(){};g["ffcrypt.codes.Base16"]=Np;Np.__name__=["ffcrypt","codes","Base16"];Np.encode=function(a){for(var b=a.length,c,d=[],e=0;ec.length?"0"+c:c}return d.join("")};Np.decode=function(a){for(var b=0,c=a.length,d,e=[];ba.length)return null;try{var b=Np.decode(this._key_ff);a.position=16;var c=a.readUTFBytes(128),d=re.toArray(c);d.position=0;for(var c=[],e=0,f=d.length;e=a.length)return null;var b=a.readUTFBytes(12);a.position=0;return"1STFLIPBINMC"!=b?this.parse_v1(this._key,a):this.parse_v2(a)},__class__:Ti};var Ng=function(){};g["ffcrypt.codes.FFDecrypt"]=Ng;Ng.__name__=["ffcrypt","codes","FFDecrypt"];Ng.decrypt= function(a,b){if(16!=a.length)throw new q(Ng.ERROR_KEY);if(8>b.length||0!=b.length%4)throw new q(Ng.ERROR_BLOCK);for(var c=th.pack(a,null),d=th.pack(b,null),e=d.length,f=d[e-1],h=d[0],p,H=-1640531527*Math.floor(6+52/e);0!=H;){p=H>>>2&3;for(var g=e-1;0<=g;)f=d[0>>5^h<<2)+(h>>>3^f<<4)^(H^h)+(c[g&3^p]^f),h=d[g]-=f,g--;H-=-1640531527}return th.unpack(d,null)};Ng.check=function(a,b){if(16!=a.length)throw new q(Ng.ERROR_KEY);if(8>b.length||0!=b.length%4)throw new q(Ng.ERROR_BLOCK);};var uh= function(){};g["ffcrypt.codes.FFEncrypt"]=uh;uh.__name__=["ffcrypt","codes","FFEncrypt"];uh.byte2char=function(a){a&=255;0<=a&&9>=a?a+=48:10<=a&&15>=a&&(a=a-10+65);return a&255};uh.convertHexDataToString=function(a,b){null==b&&(b=!0);var c="";if(null==a)return"";for(var d=Math.min(a.length,a.length),e=0;e=a.length)return!1;this.url=a;this.progress=0;this.isLoad= !1;this.loader=new gf;this.loader.set_dataFormat(pd.BINARY);this.loadType=pd.BINARY;this.loader.addEventListener(J.COMPLETE,k(this,this.completeHandler));this.loader.addEventListener(J.OPEN,k(this,this.openHandler));this.loader.addEventListener(Fe.PROGRESS,k(this,this.progressHandler));this.loader.addEventListener(Df.SECURITY_ERROR,k(this,this.securityErrorHandler));this.loader.addEventListener(Ef.HTTP_STATUS,k(this,this.httpStatusHandler));this.loader.addEventListener(Hc.IO_ERROR,k(this,this.ioErrorHandler)); try{this.loader.load(new mc(a))}catch(b){if(G.lastException=b,b instanceof q&&(b=b.val),m.__instanceof(b,O))null;else throw b;}return!0},openHandler:function(a){},ioErrorHandler:function(a){this.isLoad=!1;null!=this.onIoError&&this.onIoError(this)},progressHandler:function(a){this.progress=a.bytesLoaded/a.bytesTotal;null!=this.onProgress&&this.onProgress(this)},httpStatusHandler:function(a){},securityErrorHandler:function(a){this.isLoad=!1;null!=this.onSecurityError&&this.onSecurityError(this)},completeHandler:function(a){var b; try{b=m.__cast(a.target,gf)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}null==b?this.isLoad=!1:(this.isLoad=!0,this.loadType=b.dataFormat);null!=this.onComplete&&this.onComplete(this)},__class__:Qp};var dk=function(a,b,c,d,e){this.xmlString=null;this.progress=0;this.isError=this.isLoaded=!1;this.base=new Qp(k(this,this.openHandler),k(this,this.completeHandler),k(this,this.progressHandler),k(this,this.ioErrorHandler),k(this,this.securityErrorHandler)); this.isLoaded=this.isError=!1;this.onOpen=a;this.onProgress=c;this.onIoError=d;this.onHttpStatus=null;this.onSecurityError=e;this.onComplete=b};g["ffcrypt.samples.TSBookBinParse"]=dk;dk.__name__=["ffcrypt","samples","TSBookBinParse"];dk.prototype={isError:null,isLoaded:null,base:null,progress:null,xmlString:null,onOpen:null,onComplete:null,onProgress:null,onHttpStatus:null,onSecurityError:null,onIoError:null,onParseComplete:null,onCompleteToParse:function(a){var b;try{b=m.__cast(a,gf)}catch(c){if(G.lastException= c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}null!=b&&(this.xmlString=(new Ti(dk.BinTestKey)).parse(b.data),ta.getInstance().parseXmlString(this.xmlString),null!=this.onParseComplete&&this.onParseComplete(this))},closeLoad:function(){null!=this.base&&this.base.closeLoad()},startLoad:function(a,b){null==a&&(a="");this.progress=0;this.isLoaded=this.isError=!1;this.onParseComplete=b;return null!=this.base?this.base.startLoad(a):!1},openHandler:function(a){null!=this.onOpen&&this.onOpen(this)}, ioErrorHandler:function(a){this.isError=!0;null!=this.onIoError&&this.onIoError(this)},progressHandler:function(a){this.progress=a.progress;null!=this.onProgress&&this.onProgress(this)},httpStatusHandler:function(a){},securityErrorHandler:function(a){null!=this.onSecurityError&&this.onSecurityError(this)},completeHandler:function(a){if(null!=a)this.onCompleteToParse(0!=a.isLoad?a.loader:null);null!=this.onComplete&&this.onComplete(this)},__class__:dk};var vh=function(){};g["ffcrypt.utilities.ASCII128"]= vh;vh.__name__=["ffcrypt","utilities","ASCII128"];vh.numCode=function(a){if(0>a&&127"):b.h["62"]=">";null!=V["63"]?b.setReserved("63","?"):b.h["63"]="?";null!=V["64"]?b.setReserved("64","@"):b.h["64"]="@";null!=V["65"]? b.setReserved("65","A"):b.h["65"]="A";null!=V["66"]?b.setReserved("66","B"):b.h["66"]="B";null!=V["67"]?b.setReserved("67","C"):b.h["67"]="C";null!=V["68"]?b.setReserved("68","D"):b.h["68"]="D";null!=V["69"]?b.setReserved("69","E"):b.h["69"]="E";null!=V["70"]?b.setReserved("70","F"):b.h["70"]="F";null!=V["71"]?b.setReserved("71","G"):b.h["71"]="G";null!=V["72"]?b.setReserved("72","H"):b.h["72"]="H";null!=V["73"]?b.setReserved("73","I"):b.h["73"]="I";null!=V["74"]?b.setReserved("74","J"):b.h["74"]= "J";null!=V["75"]?b.setReserved("75","K"):b.h["75"]="K";null!=V["76"]?b.setReserved("76","L"):b.h["76"]="L";null!=V["77"]?b.setReserved("77","M"):b.h["77"]="M";null!=V["78"]?b.setReserved("78","N"):b.h["78"]="N";null!=V["79"]?b.setReserved("79","O"):b.h["79"]="O";null!=V["80"]?b.setReserved("80","P"):b.h["80"]="P";null!=V["81"]?b.setReserved("81","Q"):b.h["81"]="Q";null!=V["82"]?b.setReserved("82","R"):b.h["82"]="R";null!=V["83"]?b.setReserved("83","S"):b.h["83"]="S";null!=V["84"]?b.setReserved("84", "T"):b.h["84"]="T";null!=V["85"]?b.setReserved("85","U"):b.h["85"]="U";null!=V["86"]?b.setReserved("86","V"):b.h["86"]="V";null!=V["87"]?b.setReserved("87","W"):b.h["87"]="W";null!=V["88"]?b.setReserved("88","X"):b.h["88"]="X";null!=V["89"]?b.setReserved("89","Y"):b.h["89"]="Y";null!=V["90"]?b.setReserved("90","Z"):b.h["90"]="Z";null!=V["91"]?b.setReserved("91","["):b.h["91"]="[";null!=V["92"]?b.setReserved("92","\\"):b.h["92"]="\\";null!=V["93"]?b.setReserved("93","]"):b.h["93"]="]";null!=V["94"]? b.setReserved("94","^"):b.h["94"]="^";null!=V["95"]?b.setReserved("95","_"):b.h["95"]="_";null!=V["96"]?b.setReserved("96","`"):b.h["96"]="`";null!=V["97"]?b.setReserved("97","a"):b.h["97"]="a";null!=V["98"]?b.setReserved("98","b"):b.h["98"]="b";null!=V["99"]?b.setReserved("99","c"):b.h["99"]="c";null!=V["100"]?b.setReserved("100","d"):b.h["100"]="d";null!=V["101"]?b.setReserved("101","e"):b.h["101"]="e";null!=V["102"]?b.setReserved("102","f"):b.h["102"]="f";null!=V["103"]?b.setReserved("103","g"): b.h["103"]="g";null!=V["104"]?b.setReserved("104","h"):b.h["104"]="h";null!=V["105"]?b.setReserved("105","i"):b.h["105"]="i";null!=V["106"]?b.setReserved("106","j"):b.h["106"]="j";null!=V["107"]?b.setReserved("107","k"):b.h["107"]="k";null!=V["108"]?b.setReserved("108","l"):b.h["108"]="l";null!=V["109"]?b.setReserved("109","m"):b.h["109"]="m";null!=V["110"]?b.setReserved("110","n"):b.h["110"]="n";null!=V["111"]?b.setReserved("111","o"):b.h["111"]="o";null!=V["112"]?b.setReserved("112","p"):b.h["112"]= "p";null!=V["113"]?b.setReserved("113","q"):b.h["113"]="q";null!=V["114"]?b.setReserved("114","r"):b.h["114"]="r";null!=V["115"]?b.setReserved("115","s"):b.h["115"]="s";null!=V["116"]?b.setReserved("116","t"):b.h["116"]="t";null!=V["117"]?b.setReserved("117","u"):b.h["117"]="u";null!=V["118"]?b.setReserved("118","v"):b.h["118"]="v";null!=V["119"]?b.setReserved("119","w"):b.h["119"]="w";null!=V["120"]?b.setReserved("120","x"):b.h["120"]="x";null!=V["121"]?b.setReserved("121","y"):b.h["121"]="y";null!= V["122"]?b.setReserved("122","z"):b.h["122"]="z";null!=V["123"]?b.setReserved("123","{"):b.h["123"]="{";null!=V["124"]?b.setReserved("124","|"):b.h["124"]="|";null!=V["125"]?b.setReserved("125","}"):b.h["125"]="}";null!=V["126"]?b.setReserved("126","~"):b.h["126"]="~";null!=V["127"]?b.setReserved("127","."):b.h["127"]="."}return vh.AsciiMap.get(null==a?"null":""+a)};var th=function(){};g["ffcrypt.utilities.UTIL"]=th;th.__name__=["ffcrypt","utilities","UTIL"];th.byteArray_get=function(a,b){if(null== a)return 0;a.position=b;return a.readUnsignedByte()};th.byteArray_set=function(a,b,c){null!=a&&(a.position=b,a.writeByte(c))};th.pack=function(a,b){null==b&&(b=!0);for(var c=[],d=a.length,e=0,f=0,h=0,p=0,H=0;H>8,h=(a[g]&16711680)>>16,p=(a[g]&-16777216)>> 24,0>p&&(p+=256)):(e=(a[g]&-16777216)>>24,f=(a[g]&16711680)>>16,h=(a[g]&65280)>>8,p=a[g]&255,0>e&&(e+=256));c[4*g]=e;c[4*g+1]=f;c[4*g+2]=h;c[4*g+3]=p}return c};th.format=function(a,b){for(var c=b.length,d=0;d>>0&15};Rc.HIPART=function(a){return(a&255)>>>4&15};Rc.MAKECHAR=function(a,b){return(a&15|(b&15)<< 4)&255};Rc.READCHAR=function(a){return null==a||1>a.length?0:a[0]&255};Rc.LOCHAR=function(a){return(a&255)>>>0&255};Rc.HICHAR=function(a){return(a&65535)>>>8&255};Rc.MAKEWORD=function(a,b){return(a&255|(b&255)<<8)&65535};Rc.READWORD=function(a){return null==a||2>a.length?0:(a[0]&255|(a[1]&255)<<8)&65535};Rc.WORDBYTES=function(a){return[a>>>0&255,a>>>8&255]};Rc.LOWORD=function(a){return a>>>0&65535};Rc.HIWORD=function(a){return a>>>16&65535};Rc.MAKEDWORD=function(a,b){return(a&65535|(b&65535)<<8)& -1};Rc.READDWORD=function(a){return null==a||4>a.length?0:a[0]&255|(a[1]&255)<<8|(a[2]&255)<<16|(a[3]&255)<<24};Rc.DWORDBYTES=function(a){return[a>>>0&255,a>>>8&255,a>>>16&255,a>>>24&255]};Rc.LODWORD=function(a){return null==a||4>a.length?0:a[0]&255|(a[1]&255)<<8|(a[2]&255)<<16|(a[3]&255)<<24};Rc.HIDWORD=function(a){return null==a||8>a.length?0:a[4]&255|(a[5]&255)<<8|(a[6]&255)<<16|(a[7]&255)<<24};Rc.MAKEQWORD=function(a,b){return[a>>>0&255,a>>>8&255,a>>>16&255,a>>>24&255,b>>>0&255,b>>>8&255,b>>> 16&255,b>>>24&255]};Rc.READQWORD=function(a){return null==a||8>a.length?null:[a[0]&255,a[1]&255,a[2]&255,a[3]&255,a[4]&255,a[5]&255,a[6]&255,a[7]&255]};Rc.QWORDBYTES=function(a,b){return[a>>>0&255,a>>>8&255,a>>>16&255,a>>>24&255,b>>>0&255,b>>>8&255,b>>>16&255,b>>>24&255]};var kf=function(){};g["ffcrypt.utilities.UtilMemory"]=kf;kf.__name__=["ffcrypt","utilities","UtilMemory"];kf.MemSet=function(a,b,c,d){if(0>=d)return!0;if(null==a||b>=a.length)return!1;for(var e=0;e=a.length);)a[b+e]=c& 255,e++;return!0};kf.MemCpy=function(a,b,c,d,e){if(0>=e)return!0;if(null==a||b>=a.length||null==c||d>=c.length)return!1;for(var f=0;f=a.length)&&!(d+f>=c.length);)a[b+f]=c[d+f]&255,f++;return!0};kf.MemCmp=function(a,b,c,d){if(null==a||b>=a.length||null==c||d>=c.length||a.length-b!=c.length-d)return!1;for(var e=0,f=a.length-b;e=a.length)&&!(d+e>=c.length);){if((a[b+e]&255)!=(c[d+e]&255))return!1;e++}return!0};kf.MemCmpLen=function(a,b,c,d,e){if(0>=e||null==a||b>=a.length||null== c||d>=c.length)return!1;for(var f=0;f=a.length)&&!(d+f>=c.length);){if((a[b+f]&255)!=(c[d+f]&255))return!1;f++}return!0};kf.ReadInt8=function(a,b){return null==a||b+1>=a.length?null:[a[b]&255]};kf.WriteInt8=function(a,b,c){if(null==a||b+1>=a.length)return!1;a[b]=c&255;return!0};kf.ReadInt16=function(a,b){return null==a||b+2>=a.length?null:[a[b]&255,a[b+1]&255]};kf.WriteInt16=function(a,b,c){if(null==a||b+2>=a.length)return!1;c=Rc.WORDBYTES(c);a[b]=c[0]&255;a[b+1]=c[1]&255;return!0};kf.ReadInt32= function(a,b){return null==a||b+4>=a.length?null:[a[b]&255,a[b+1]&255,a[b+2]&255,a[b+3]&255]};kf.WriteInt32=function(a,b,c){if(null==a||b+4>=a.length)return!1;c=Rc.DWORDBYTES(c);a[b]=c[0]&255;a[b+1]=c[1]&255;a[b+2]=c[2]&255;a[b+3]=c[3]&255;return!0};kf.ReadInt64=function(a,b){return null==a||b+8>=a.length?null:[a[b]&255,a[b+1]&255,a[b+2]&255,a[b+3]&255,a[b+4]&255,a[b+5]&255,a[b+6]&255,a[b+7]&255]};kf.WriteInt64=function(a,b,c){if(null==c||8>c.length||null==a||b+8>=a.length)return!1;a[b]=c[0]&255; a[b+1]=c[1]&255;a[b+2]=c[2]&255;a[b+3]=c[3]&255;a[b+4]=c[4]&255;a[b+5]=c[5]&255;a[b+6]=c[6]&255;a[b+7]=c[7]&255;return!0};var Ee=function(){};g["first.author.Resource"]=Ee;Ee.__name__=["first","author","Resource"];var wa=function(){};g["first.author.TemplateResource"]=wa;wa.__name__=["first","author","TemplateResource"];var J=function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);this.type=a;this.bubbles=b;this.cancelable=c;this.eventPhase=Qd.AT_TARGET};g["openfl.events.Event"]=J;J.__name__=["openfl","events", "Event"];J.prototype={bubbles:null,cancelable:null,currentTarget:null,eventPhase:null,target:null,type:null,__isCancelled:null,__isCancelledNow:null,__preventDefault:null,clone:function(){var a=new J(this.type,this.bubbles,this.cancelable);a.eventPhase=this.eventPhase;a.target=this.target;a.currentTarget=this.currentTarget;return a},isDefaultPrevented:function(){return this.__preventDefault},preventDefault:function(){this.cancelable&&(this.__preventDefault=!0)},stopImmediatePropagation:function(){this.__isCancelledNow= this.__isCancelled=!0},stopPropagation:function(){this.__isCancelled=!0},toString:function(){return'[Event type="'+this.type+'" bubbles='+y.string(this.bubbles)+" cancelable="+y.string(this.cancelable)+"]"},__class__:J};var Rp=function(a,b,c,d){J.call(this,a);this.key=b;this.value=c;this.obj=d};g["first.author.SettingsEvent"]=Rp;Rp.__name__=["first","author","SettingsEvent"];Rp.__super__=J;Rp.prototype=t(J.prototype,{key:null,value:null,obj:null,__class__:Rp});var kk=function(a){Qa.call(this,a)}; g["first.author.SettingsDispatcher"]=kk;kk.__name__=["first","author","SettingsDispatcher"];kk.__super__=Qa;kk.prototype=t(Qa.prototype,{doAction:function(){this.dispatchEvent(new J(kk.ACTION))},__class__:kk});var Y=function(){};g["first.author.Settings"]=Y;Y.__name__=["first","author","Settings"];Y.getInstance=function(){null==Y.instance&&(Y.instance=new Y);return Y.instance};Y.prototype={length:function(){var a=0;if(null!=Y.m_Settings)for(var b=Y.m_Settings.keys();b.hasNext();)b.next(),a+=1;return a}, hasKey:function(a){return null!=Y.m_Settings&&1==Y.m_Settings.exists(a)?!0:!1},del:function(a){return this.del_Settings(a)},del_Settings:function(a){if(1==Y.m_Settings.exists(a)){var b=Y.m_Settings.get(a);Y.m_Settings.remove(a);return b}return null},get:function(a){return this.get_Settings(a)},get_Settings:function(a){return 1==Y.m_Settings.exists(a)?Y.m_Settings.get(a):null},set:function(a,b,c){this.set_Settings(a,b,c)},set_Settings:function(a,b,c){if(null==a||""==a)throw new q(new O("\u914d\u7f6e\u5b9e\u4f8b\u952e\u540d\u4e0d\u80fd\u4e3a\u7a7a")); Y.m_Settings.set(a,b);b},__class__:Y};var pe=function(){if(null!=pe.instance)throw new q(new O("\u5355\u4f8b\u6a21\u5f0f"));this._param=se.getInstance();this._pageHeight=this._pageWidth=this._pageCount=0};g["first.book.BookXmlClass"]=pe;pe.__name__=["first","book","BookXmlClass"];pe.getInstance=function(a){null==pe.instance&&(pe.instance=new pe,pe.instance._url=a,pe.instance._isLoaded=!1);return pe.instance};pe.prototype={_url:null,_xml:null,_isLoaded:null,_param:null,_pageCount:null,_pageWidth:null, _pageHeight:null,reloadXml:function(a){var b=a;if(null==b||""==b){if(b=this._url,null==b)return!1}else this._url=a;this._isLoaded=!1;this._xml=null;(new Ma).loadUrl(b,k(this,this.onCompleteXml));return!0},onCompleteXml:function(a){var b;try{b=m.__cast(a,Ma)}catch(c){G.lastException=c,c instanceof q&&(c=c.val),b=null}var d=R.getInstance();null==b?(this._isLoaded=!1,this._xml=null,d.dispatchEvent(new ja(v.MAINXML_IOERROR,new na(this,a,null)))):(this._xml=b,0==this.updateXmlParameters()?(this._isLoaded= !1,this._xml=null,d.dispatchEvent(new ja(v.MAINXML_FORMATERROR,new na(this,a,null)))):(this._isLoaded=!0,d.dispatchEvent(new ja(v.MAINXML_COMPLETE,new na(this,a,null)))))},updateXmlParameters:function(){if(null==this._xml)return!1;var a=null,b;try{b=m.__cast(this._xml,Ma)}catch(c){G.lastException=c,c instanceof q&&(c=c.val),b=null}if(null==b)return!1;a=b.getAttrString(P.PageCount);null!=a&&""!=a?this._pageCount=y.parseInt(a):a=b.getAttrString(P.PageCount2);null!=a&&""!=a&&(this._pageCount=y.parseInt(a)); a=b.getNode(P.Info);if(null!=a){var d=new Ma(a),a=d.getNodes(P.ParamItem);if(0b.priority?-1:1};Bc.__super__=F;Bc.prototype=t(F.prototype,{_isMouseOver:null,_moveEvtMode:null,_userHitMode:null,_stageHitPoint:null,_stageHitClick:null,_exTargetDispatcher:null,_extEventMap:null,drawNow:function(){},onAddedToStage:function(a){0!=this._moveEvtMode&&this.setMoveEvtMode(!0); 0!=this._userHitMode&&this.setUserHitPointMode(!0);1==this._stageHitPoint&&this.setStageHitPointMode(!0)},onRemoveFromStage:function(a){0!=this._moveEvtMode&&this.setMoveEvtMode(!1);0!=this._userHitMode&&this.setUserHitPointMode(!1);1==this._stageHitPoint&&this.setStageHitPointMode(!1)},getUserHitRectangle:function(){return this.getBounds(ha.current.stage)},getStageHitRectangle:function(){return this.getBounds(ha.current.stage)},setMoveEvtMode:function(a){null==a&&(a=!1);var b=R.getInstance();this._moveEvtMode= a;1==this._moveEvtMode?(b.addEventListener(v.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove)),this.addEventListener(A.MOUSE_MOVE,k(this,this.onExtMouseMove))):(b.removeEventListener(v.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove)),this.removeEventListener(A.MOUSE_MOVE,k(this,this.onExtMouseMove)))},setUserHitPointMode:function(a){null==a&&(a=!1);var b=R.getInstance();this._userHitMode=a;1==this._userHitMode?b.addEventListener(v.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove)): (b.removeEventListener(v.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove)),this.removeEventListener(A.MOUSE_MOVE,k(this,this.onExtMouseMove)))},setStageHitPointMode:function(a){null==a&&(a=!1);var b=R.getInstance();this._stageHitPoint=a;1==this._stageHitPoint?b.addEventListener(v.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove)):(b.removeEventListener(v.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove)),this.removeEventListener(A.MOUSE_MOVE,k(this,this.onExtMouseMove)))}, onExtMouseOut:function(a){var b=null,c=null;if(m.__instanceof(this,Bc))try{c=m.__cast(this,Bc)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,O))c=null;else throw d;}null!=c&&(null==a?(b=new A(A.MOUSE_OUT),b.target=this):(b=new A(A.MOUSE_OUT),b.target=this,b.altKey=a.altKey,b.buttonDown=a.buttonDown,b.ctrlKey=a.ctrlKey,b.delta=a.delta,b.localX=a.localX,b.localY=a.localY,b.relatedObject=a.relatedObject,b.shiftKey=a.shiftKey,b.stageX=a.stageX,b.stageY=a.stageY,b.commandKey= a.commandKey,b.clickCount=a.clickCount),c._isMouseOver=!1,c.dispathExtEvent(b))},onExtMouseOver:function(a){var b=null,c=null;if(m.__instanceof(this,Bc))try{c=m.__cast(this,Bc)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,O))c=null;else throw d;}0!=this.mouseEnabled&&null!=c&&(null==a?(b=new A(A.MOUSE_OVER),b.target=this):(b=new A(A.MOUSE_OVER),b.target=this,b.altKey=a.altKey,b.buttonDown=a.buttonDown,b.ctrlKey=a.ctrlKey,b.delta=a.delta,b.localX=a.localX,b.localY=a.localY, b.relatedObject=a.relatedObject,b.shiftKey=a.shiftKey,b.stageX=a.stageX,b.stageY=a.stageY,b.commandKey=a.commandKey,b.clickCount=a.clickCount),this._isMouseOver=!0,c.dispathExtEvent(b))},onExtMouseMove:function(a){Og.getInstance();if(0==this._isMouseOver&&this._extEventMap.exists(A.MOUSE_OVER))this.onExtMouseOver(a)},onCenterStageMouseMove:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._event,A)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null; else throw c;}null==b||0==this.get_visible()||1==this._moveEvtMode&&0==this._isMouseOver||(a=1==this._userHitMode?this.getUserHitRectangle():1==this._moveEvtMode?this.getStageHitRectangle():1==this._stageHitPoint?this.getStageHitRectangle():this.getUserHitRectangle(),null!=a&&1!=a.isEmpty()&&(a.containsPoint(new Q(b.stageX,b.stageY))?0!=this._isMouseOver||1!=this._userHitMode&&1!=this._stageHitPoint||(this.onExtMouseOver(b),this.drawNow()):0!=this._isMouseOver&&(this.onExtMouseOut(b),this.drawNow())))}}, onExtMouseDown:function(a){var b=null,c=null;if(m.__instanceof(this,Bc))try{c=m.__cast(this,Bc)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,O))c=null;else throw d;}0!=this.mouseEnabled&&null!=c&&(null==a?(b=new A(A.MOUSE_DOWN),b.target=this):(b=new A(A.MOUSE_DOWN),b.target=this,b.altKey=a.altKey,b.buttonDown=a.buttonDown,b.ctrlKey=a.ctrlKey,b.delta=a.delta,b.localX=a.localX,b.localY=a.localY,b.relatedObject=a.relatedObject,b.shiftKey=a.shiftKey,b.stageX=a.stageX,b.stageY= a.stageY,b.commandKey=a.commandKey,b.clickCount=a.clickCount),c.dispathExtEvent(b))},setUserHitClickMode:function(a){null==a&&(a=!1);var b=R.getInstance();this._userHitMode=a;1==this._userHitMode?b.addEventListener(v.MAINSTAGE_MOUSECLICK,this,k(this,this.onCenterStageMouseClick)):b.removeEventListener(v.MAINSTAGE_MOUSECLICK,this,k(this,this.onCenterStageMouseClick))},setStageHitClickMode:function(a){null==a&&(a=!1);var b=R.getInstance();this._stageHitClick=a;1==this._stageHitClick?b.addEventListener(v.MAINSTAGE_MOUSECLICK, this,k(this,this.onCenterStageMouseClick)):b.removeEventListener(v.MAINSTAGE_MOUSECLICK,this,k(this,this.onCenterStageMouseClick))},onCenterStageMouseClick:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._event,A)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}null!=b&&0!=this.get_visible()&&(a=1==this._userHitMode?this.getUserHitRectangle():1==this._moveEvtMode?this.getStageHitRectangle():1==this._stageHitPoint?this.getStageHitRectangle(): this.getUserHitRectangle(),null!=a&&1!=a.isEmpty()&&a.containsPoint(new Q(b.stageX,b.stageY))&&(this.onExtMouseDown(b),this.drawNow()))}},dispathExtEvent:function(a){if(null==a||null==a.type||0>=a.type.length||null==this._extEventMap)return!1;var b=this._extEventMap.get(a.type);if(null==b)return!1;a.currentTarget=this;null==a.target&&(a.target=null!=this._exTargetDispatcher?this._exTargetDispatcher:this);for(var c=0,d=null;c=a.length))if(null==this._extEventMap&&(this._extEventMap=new fa),this._extEventMap.exists(a)){a=this._extEventMap.get(a);if(null!=a&&0=a.length)&&null!=this._extEventMap){var d=R.getInstance();null!=this._extEventMap&&a!=A.MOUSE_OVER&&a!=A.MOUSE_OUT||d.removeEventListener(v.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove));d=this._extEventMap.get(a);if(null!=d){for(var e=0,f=d.length;e< f;){var h=e++;if(d[h].match(b,c)){d.splice(h,1);break}}0==d.length&&this._extEventMap.remove(a);this._extEventMap.iterator().hasNext()||(this._extEventMap=null)}}},removeAllEventListener:function(){if(null!=this._extEventMap){for(var a=this._extEventMap.keys();a.hasNext();){var b=a.next(),c=this._extEventMap.get(b);if(null!=c){for(;0=c.length&&this._extEventMap.remove(b)}}this._extEventMap.iterator().hasNext()||(this._extEventMap=null)}},destroy:function(){this.removeAllEventListener()}, __class__:Bc});var U=function(a,b,c){null==b&&(b=0);null==a&&(a=0);this._width=this._height=this._right=this._bottom=this._centerX=this._centerY=0;Bc.call(this);this.set_scaleX(1);this.set_scaleY(1);this._width=a;this._height=b;this._centerY=this._centerX=0;this.del_positionRorB();this.addEventListener(J.ADDED_TO_STAGE,k(this,this.onAddedToStage));this.addEventListener(J.REMOVED_FROM_STAGE,k(this,this.onRemoveFromStage));null!=c&&c.addChild(this)};g["first.display.BaseSprite"]=U;U.__name__=["first", "display","BaseSprite"];U.__super__=Bc;U.prototype=t(Bc.prototype,{_width:null,_height:null,_right:null,_bottom:null,_centerX:null,_centerY:null,drawSprite:function(a,b){},stageBounds:function(){var a=this.localToGlobal(new Q(this.get_x(),this.get_y()));return new va(a.x,a.y,this._width,this._height)},getUserHitRectangle:function(){var a=this.localToGlobal(new Q(this.get_x(),this.get_y()));return new va(a.x,a.y,this._width,this._height)},getPointByParentSprite:function(a){if(null==a||m.__instanceof(a, U))return new Q(0,0);this.localToGlobal(new Q(this.get_x(),this.get_y()));a.localToGlobal(new Q(a.get_x(),a.get_y()));return new Q(0,0)},resize:function(a,b){this.set_size(a,b)},enable_mouse:function(a){this.mouseChildren=this.mouseEnabled=a},onStageResize:function(a){},onAddedToStage:function(a){Bc.prototype.onAddedToStage.call(this,a);this.onAddedToStageCall(a);this.onStageResize(null)},registerEventListener:function(){},onAddedToStageCall:function(a){},onRemoveFromStage:function(a){Bc.prototype.onRemoveFromStage.call(this, a);this.onRemoveFromStageCall(a);this.get_graphics().clear()},unregisterEventListener:function(){},onRemoveFromStageCall:function(a){},removeAllChildren:function(){for(;0a||a>=this._contentItems.length)return null;var b=null;return b=this._contentItems[a]},getDragListItemIndex:function(a){var b;b=0<=a-1?a-1:0;return 0>=b||b>=this._contentItems.length?0:a},updateDragListItems:function(){for(var a=1;a<=this._contentItems.length;)this.updateDragListItemByIndex(a),a+=1},updateDragListItemForShow:function(a){this.updateDragListItemByItem(a);this.updateDragListItemByPageItem(a)},updateDragListItemByIndex:function(a){a= this.getDragListItem(a);null!=a&&this.updateDragListItemByItem(a)},updateDragListItemByItem:function(a){a=this.getFixItemHandler(a);null!=a&&null!=this._updateFunc&&this._updateFunc(a)},updateDragListItemByPageIndex:function(a){a=this.getDragListItemIndex(a);0>=a||(a=this.getDragListItem(a),null!=a&&this.updateDragListItemByItem(a))},updateDragListItemByPageItem:function(a){a=this.getFixItemHandler(a);null!=a&&null!=this._pageFunc&&this._pageFunc(a)},doDragListItemClicked:function(a){this.getFixItemHandler(a)}, setStepDownSpriteEnable:function(a,b){null!=a&&(a._downSprite._isEnable=b)},doDragListStepMouseDown:function(a){},doDragListStepMouseUp:function(a){},__class__:Vi});var $h=function(a,b,c,d,e,f,h){null==a&&(a=!1);this._scrollTime=.1;Vi.call(this,a,b,c,d,e,f,h);this._isReady=!0;this._isScroll=!1;this._itemWidth=this.getItemWidth();this._itemHeight=this.getItemHeight();this._itemPixelWidth=this.getItemWidth();this._itemPixelHeight=this.getItemHeight()};g["first.drag.DragListScroll"]=$h;$h.__name__=["first", "drag","DragListScroll"];$h.__super__=Vi;$h.prototype=t(Vi.prototype,{_isReady:null,_isScroll:null,_scrollPos:null,_scrollTime:null,_targetRect:null,_scrollRect:null,_itemWidth:null,_itemHeight:null,_itemPixelWidth:null,_itemPixelHeight:null,getRealItemWidth:function(){return this._itemWidth},getRealItemHeight:function(){return this._itemHeight},resizeScaleSize:function(){this.resizeScaleItemSize()},resizeScaleItemSize:function(){Y.getInstance();var a=Gd.scaleHeight(this._itemPixelHeight,this.getItemHeight()); this._itemWidth=this._itemPixelWidth*a|0;this._itemHeight=this._itemPixelHeight*a|0},resetItemPixelSize:function(a,b){this._itemPixelWidth=a;this._itemPixelHeight=b;this.resizeScaleSize();this.resize(this._width,this._height)},getStepLineSpace:function(){return 2},getStepLineOffset:function(){return 2},getItemScrollOffset:function(a){var b=0;Y.getInstance();if(0>a)return 0;b=0==this._isVertical?this.getLineSpace()+this.getRealItemWidth()*a+this.getLineSpace()*this._itemsSpaceCount*a:this.getLineSpace()+ this.getRealItemHeight()*a+this.getLineSpace()*this._itemsSpaceCount*a;return b|0},getItemScrollOffsetByPageIndex:function(a){a=this.getDragListItemIndex(a);return 0>a?0:this.getItemScrollOffset(a)},getItemScrollStep:function(a){null==a&&(a=!1);var b=0;Y.getInstance();b=0==this._isVertical?this.getRealItemWidth()+this.getLineSpace()*this._itemsSpaceCount:this.getRealItemHeight()+this.getLineSpace()*this._itemsSpaceCount;a&&(b*=-1);return b|0},getTargetScrollStep:function(a){null==a&&(a=!1);var b= 0;Y.getInstance();var c=0,b=0,c=this.getStepLineOffset(),b=this.wantToShowStepVisible();if(0==this._isVertical){c=this._width-2*(b?this.getStepHeight()+c:0);b&&this.getStepHeight();if(this._contentWidth<=c)return 0;b=c>=2*this.getStepSpace()?c-this.getStepSpace():this.getStepSpace()}else{b&&this.getStepHeight();b=this._height-2*(b?this.getStepHeight()+c:0);if(this._contentHeight<=b)return 0;b=b>=2*this.getStepSpace()?b-this.getStepSpace():this.getStepSpace()}a&&(b*=-1);return b|0},getTargetScrollRect:function(a){Y.getInstance(); var b=0,c=0,c=this.getStepLineOffset(),d=this.wantToShowStepVisible();0==this._isVertical?(b=y["int"](this._width-2*(d?this.getStepHeight()+c:0)),c=y["int"](this._height-0*(d?this.getStepHeight()+c:0)),b>=this._contentWidth&&(b=this._contentWidth)):(b=y["int"](this._width-0*(d?this.getStepHeight()+c:0)),c=y["int"](this._height-2*(d?this.getStepHeight()+c:0)),c>=this._contentHeight&&(c=this._contentHeight));return new va(a.x,a.y,b,c)},getTurnScrollOffset:function(a){var b;Y.getInstance();b=a.x;a=a.y; var c=this.getItemScrollStep(!1),d=0;if(0==this._isVertical){if(0==a)return b=new Q(b,a);if(0=a?b=new Q(a,0):b=new Q((a/(1*d)*c*1|0)+this.getLineSpace(),0)}else{if(0==b)return b=new Q(b,a);if(0=b?b=new Q(0,b):b=new Q(0,(b/(1*d)*c*1|0)+this.getLineSpace())}return new Q(0,0)}, fixDragListScrollStep:function(){this.setStepDownSpriteEnable(this._leftStep,!0);this.setStepDownSpriteEnable(this._rightStep,!0);this.fixScrollStepVisible()},wantToShowStepVisible:function(){Y.getInstance();var a=0,b=0,a=this.getStepLineOffset(),b=this._isShowStep&&!this._alwaysHideStep;if(0==this._isVertical)return a=this._width-2*(b?this.getStepHeight()+a:0),b&&this.getStepHeight(),null==this._contentItems||0>=this._contentItems.length?!1:a>=this._contentWidth?!1:this._alwaysHideStep?!1:0!=this._isShowStep&& 0==this._alwaysHideStep?!0:!1;b&&this.getStepHeight();b=this._height-2*(b?this.getStepHeight()+a:0);return null==this._contentItems||0>=this._contentItems.length?!1:b>=this._contentHeight?!1:this._alwaysHideStep?!1:0!=this._isShowStep&&0==this._alwaysHideStep?!0:!1},fixScrollStepVisible:function(){Y.getInstance();var a=0,b=0,a=this.getStepLineOffset(),b=this._isShowStep&&!this._alwaysHideStep;0==this._isVertical?(a=this._width-2*(b?this.getStepHeight()+a:0),b&&this.getStepHeight(),null==this._contentItems|| 0>=this._contentItems.length?(this._leftStep.visible=!1,this._rightStep.visible=!1):a>=this._contentWidth?(this._leftStep.visible=!1,this._rightStep.visible=!1):(this._leftStep.visible=this._alwaysHideStep?!1:!0,this._rightStep.visible=this._alwaysHideStep?!1:!0)):(b&&this.getStepHeight(),b=this._height-2*(b?this.getStepHeight()+a:0),null==this._contentItems||0>=this._contentItems.length?(this._leftStep.visible=!1,this._rightStep.visible=!1):b>=this._contentHeight?(this._leftStep.visible=!1,this._rightStep.visible= !1):(this._leftStep.visible=this._alwaysHideStep?!1:!0,this._rightStep.visible=this._alwaysHideStep?!1:!0))},fixTargetScrollRect:function(a){a=!1;var b=this._contentWidth,c=this._contentHeight,d=0,e=0;0==this._isVertical?(e=this._targetRect.get_top(),d=this._targetRect.get_left(),0>d&&(d=0,a=!0),d+this._targetRect.width>b&&(d=b-this._targetRect.width,a=!0),0>e&&(e=0,a=!0)):(e=this._targetRect.get_top(),d=this._targetRect.get_left(),0>d&&(d=0,a=!0),0>e&&(e=0,a=!0),e+this._targetRect.height>c&&(e=c- this._targetRect.height,a=!0));0!=a&&(this._targetRect=this.getTargetScrollRect(new Q(d,e)));return!0},setTargetScrollRect:function(a){a=this._contentWidth;var b=this._contentHeight;if(this._scrollRect.equals(this._targetRect))return this.fixDragListScrollStep(),!0;this._isReady=!1;this._isScroll=!0;this._scrollPos=0==this._isVertical?this._targetRect.x/(a-this._targetRect.width):this._targetRect.y/(b-this._targetRect.height);this._scrollRect=this._targetRect;this.willShowContentToScrollRect(this._scrollRect); this._contentSprite.set_scrollRect(this._scrollRect);this.fixDragListScrollStep();this._isReady=!0;this._isScroll=!1;return!0},resetShowItemsForScrollRect:function(){null!=this._scrollRect&&this.willShowContentToScrollRect(this._scrollRect)},getShowItemsByScrollRect:function(a){var b=a.x,c=a.y,d=a.width,e=a.height;a=[];if(0==this._isVertical)for(e=this.getItemScrollStep(!1),c=(b+d)/e+4|0,c>this._contentItems.length&&(c=this._contentItems.length),b=b/e+1|0;b<=c;)d=this.getDragListItem(b),null!=d&& a.push(d),b+=1;else for(d=this.getItemScrollStep(!1),b=(c+e)/d+2|0,b>this._contentItems.length&&(b=this._contentItems.length),c=c/d+1|0;c<=b;)d=this.getDragListItem(c),0!=d&&a.push(d),c+=1;return a},willShowItemsByScrollRect:function(a){},willShowContentToScrollRect:function(a){a=this.getShowItemsByScrollRect(a);if(!(null==a||0>=a.length)){for(var b=0;b=d&&(d=1);0<=a.delta?(0== this._isVertical?(b=this.getItemScrollStep(!0),b*=d,b=this._scrollRect.get_left()+b):(c=this.getItemScrollStep(!0),c*=d,c=this._scrollRect.get_top()+c),this._targetRect=this.getTargetScrollRect(new Q(b,c)),this.fixTargetScrollRect(!0)&&this.setTargetScrollRect(!0)):(0==this._isVertical?(b=this.getItemScrollStep(!1),b*=d,b=this._scrollRect.get_left()+b):(c=this.getItemScrollStep(!1),c*=d,c=this._scrollRect.get_top()+c),this._targetRect=this.getTargetScrollRect(new Q(b,c)),this.fixTargetScrollRect(!1)&& this.setTargetScrollRect(!1))}},doDragListItemMove:function(a){var b=0,c=0,d;try{d=m.__cast(a,ja)}catch(e){if(G.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,O))d=null;else throw e;}if(null!=d&&null!=d._data&&null!=d._data._event){var f;try{f=m.__cast(d._data._object,Q)}catch(h){if(G.lastException=h,h instanceof q&&(h=h.val),m.__instanceof(h,O))f=null;else throw h;}var p;try{p=m.__cast(d._data._event,A)}catch(H){if(G.lastException=H,H instanceof q&&(H=H.val),m.__instanceof(H,O))p=null; else throw H;}var g;try{g=m.__cast(d._data._trigger,vb)}catch(k){if(G.lastException=k,k instanceof q&&(k=k.val),m.__instanceof(k,O))g=null;else throw k;}a=null;null!=g&&null!=g.parent&&(a=this.getFixItemHandler(g.parent));null!=f&&null!=p&&null!=a&&0!=this._isReady&&1!=this._isScroll&&(0==this._isVertical?(b=-1*(f.x|0),b=this._scrollRect.get_left()+b):(c=-1*(f.y|0),c=this._scrollRect.get_top()+c),this._targetRect=this.getTargetScrollRect(new Q(b,c)),this.fixTargetScrollRect(!0)&&this.setTargetScrollRect(!0))}}, doDragListStepMouseDown:function(a){var b=0,c=0;0!=this._isReady&&1!=this._isScroll&&(a=this.getFixStepHandler(a),null!=a&&(null!=a&&a==this._leftStep&&(0==this._isVertical?(b=this.getTargetScrollStep(!0),b=this._scrollRect.get_left()+b):(c=this.getTargetScrollStep(!0),c=this._scrollRect.get_top()+c),this._targetRect=this.getTargetScrollRect(new Q(b,c)),this.fixTargetScrollRect(!0)&&this.setTargetScrollRect(!0)),null!=a&&a==this._rightStep&&(0==this._isVertical?(b=this.getTargetScrollStep(!1),b=this._scrollRect.get_left()+ b):(c=this.getTargetScrollStep(!1),c=this._scrollRect.get_top()+c),this._targetRect=this.getTargetScrollRect(new Q(b,c)),this.fixTargetScrollRect(!1)&&this.setTargetScrollRect(!1))))},doScrollToRectByDragListItem:function(a){Y.getInstance();var b=0,c=0;if(0!=this._isReady&&1!=this._isScroll){var d=this.getFixItemHandler(a);if(null!=d)if(a=d.get_x(),d=d.get_y(),isNaN(this._scrollRect.x)&&(this._scrollRect.x=0),isNaN(this._scrollRect.y)&&(this._scrollRect.y=0),0==this._isVertical){var b=this.getItemScrollStep(!1), d=this._scrollRect.x+this._scrollRect.width,e=a+Math.abs(b);this._scrollRect.x<=a?d>=e||(b=e-d<=Math.abs(b)?this._scrollRect.x+(e-d):a+this.getLineSpace(),this._targetRect=this.getTargetScrollRect(new Q(b,c)),this.fixTargetScrollRect(!0)&&this.setTargetScrollRect(!0)):(b=a-this.getLineSpace(),this._targetRect=this.getTargetScrollRect(new Q(b,c)),this.fixTargetScrollRect(!0)&&this.setTargetScrollRect(!0))}else c=this.getItemScrollStep(!1),a=this._scrollRect.y+this._scrollRect.height,e=d+Math.abs(c), this._scrollRect.y<=d?a>=e||(c=e-a<=Math.abs(c)?this._scrollRect.y+(e-a):d+this.getLineSpace(),this._targetRect=this.getTargetScrollRect(new Q(b,c)),this.fixTargetScrollRect(!0)&&this.setTargetScrollRect(!0)):(c=d-this.getLineSpace(),this._targetRect=this.getTargetScrollRect(new Q(b,c)),this.fixTargetScrollRect(!0)&&this.setTargetScrollRect(!0))}},__class__:dd});var Wi=function(a,b,c,d,e,f,h){null==a&&(a=!1);this._listItemShowMode="Text";this._listItemWidth=this._listItemHeight=0;dd.call(this,a,b, c,d,e,f,h);this._isVertical=!0;this._isShowStep=!1;this._listItemsArray=[]};g["first.bookmark.BookMarkBase"]=Wi;Wi.__name__=["first","bookmark","BookMarkBase"];Wi.__super__=dd;Wi.prototype=t(dd.prototype,{_listMaxWidth:null,_listMaxHeight:null,_listItemWidth:null,_listItemHeight:null,_listItemShowMode:null,_listItemsArray:null,getFixItemHandler:function(a){return a},getFixStepHandler:function(a){return a},createStep:function(a){return new Xl(a,this.getFrameHeight(),this.getFrameHeight(),this._isVertical)}, getLineSpace:function(){return 1},getLeftSpace:function(){return dd.prototype.getLineSpace.call(this)},getRightSpace:function(){return dd.prototype.getLineSpace.call(this)},getItemWidth:function(){return this._listItemWidth|0},getItemHeight:function(){return this._listItemHeight|0},getFrameHeight:function(){Y.getInstance();return 0!=this._isVertical?this._width|0:this._height|0},numberOfItems:function(){return null!=this._contentItems?this._contentItems.length:0},reloadListItem:function(){for(var a= 1;a<=this._contentItems.length;){var b=null,b=this.getDragListItem(a);null!=b&&b.reloadData();a+=1}return 0},indexOfSelectedItem:function(){for(var a=1;a<=this._contentItems.length;){var b=null,b=this.getDragListItem(a);if(null!=b&&1==b._isChecked)return a;a+=1}return 0},textOfSelectedItem:function(){var a=this.indexOfSelectedItem();if(0>=a)return null;var b=null,b=this.getDragListItem(a);return null!=b?b.getItemText():null},getItemTextValues:function(){if(null==this._contentItems)return null;for(var a= [],b=1;b<=this._contentItems.length;){var c=null,c=this.getDragListItem(b);null!=c&&(c=c.getItemText(),null==c&&(c=""),a.push(c));b+=1}return a},selectItemAtIndex:function(a){if(null!=this._contentItems&&!(1>a&&a>this._contentItems.length)){var b=null,b=this.getDragListItem(a);null!=b&&(b._isChecked=!0,b.drawNow())}},deselectAllListItems:function(){if(null!=this._contentItems)for(var a=1;a<=this._contentItems.length;)this.deselectItemAtIndex(a),a+=1},deselectItemAtIndex:function(a){if(null!=this._contentItems&& !(1>a&&a>this._contentItems.length)){var b=null,b=this.getDragListItem(a);null!=b&&(b._isChecked=!1,b.drawNow())}},getListItemIndexByText:function(a){if(null==this._contentItems||null==a)return-1;for(var b=1;b<=this._contentItems.length;){var c=null,c=this.getDragListItem(b);if(null!=c&&c.getItemText()==a)return b;b+=1}return-1},getListItemIndexByNode:function(a){if(null==this._contentItems||null==a)return-1;for(var b=1;b<=this._contentItems.length;){var c=null,c=this.getDragListItem(b);if(null!= c&&c._bookMark==a)return b;b+=1}return-1},getListItemIndexByItem:function(a){if(null==this._contentItems||0==de.arrayContainsValue(this._contentItems,a))return-1;for(var b=1;b<=this._contentItems.length;){var c=null,c=this.getDragListItem(b);if(null!=c&&c==a)return b;b+=1}return-1},getDragListItemIndex:function(a){if(0>a)return-1;throw new q(new O("\u6ca1\u6709\u9875\u9762\u7d22\u5f15"));},updateDragListItemByItem:function(a){this.getFixItemHandler(a)},addItemWithObjectValue:function(a){var b=this.getFixItemHandler(a); null!=b&&null!=this._contentItems&&null!=this._contentSprite&&0==de.arrayContainsValue(this._contentItems,b)&&(this._contentItems.push(b),this._contentSprite.addChild(b),this.resizeItemsLayout(),this.updateDragListItemByItem(a))},addItemWithObjectValues:function(a){if(null!=this._contentItems&&!(null==a||0>=a.length))for(var b=0;b=b?this._contentItems.splice(0<=b-1?b-1:0,0,c):b>this._contentItems.length?this._contentItems.push(c):this._contentItems.splice(0<=b-1?b-1:0,0,c),null!=this._contentSprite&&(this._contentSprite.addChild(c),this.resizeItemsLayout(),this.updateDragListItemByItem(a)))}},removeAllItems:function(){if(null!=this._contentItems)for(var a=1;0a&&a>this._contentItems.length)return null; var b=null;return b=this.getDragListItem(a)},selectItemWithObjectValue:function(a){null!=this._contentItems&&(a=this.getListItemIndexByItem(a),0>=a||this.selectItemAtIndex(a))},indexOfItemWithObjectValue:function(a){return null==this._contentItems?-1:this.getListItemIndexByItem(a)},objectValueOfSelectedItem:function(){if(null==this._contentItems)return null;var a=this.indexOfSelectedItem();return 0>=a?null:this.getDragListItem(a)},__class__:Wi});var Ff=function(){this._bookMarks=null;this._bookMarks= []};g["first.bookmark.BookMarkClass"]=Ff;Ff.__name__=["first","bookmark","BookMarkClass"];Ff.getInstance=function(){null==Ff.instance&&(Ff.instance=new Ff);return Ff.instance};Ff.prototype={_bookMarks:null,hasBookMarkNode:function(){return null!=this._bookMarks&&0=this._bookMarks.length))for(;null!=this._bookMarks&&0=this._bookMarks.length)return null;a=[];for(var b=0,c=this._bookMarks;b=b.nodeChilds.length))){var d=0;for(b=b.nodeChilds;d=this._contentItems.length))for(var b=1;b<=this._contentItems.length;){var c=null,c=this.getDragListItem(b);null!=c&&null!=a&&a(c);b+=1}},updateAllItemsWidth:function(a){var b=this;null!=this._contentItems&&(0>=this._contentItems.length||this.updateAllItems(function(c){var d=b.getFixItemHandler(c);null!=d&&d.resize(a,c._height)}))},updateAllItemsHeight:function(a){var b= this;null!=this._contentItems&&(0>=this._contentItems.length||this.updateAllItems(function(c){var d=b.getFixItemHandler(c);null!=d&&d.resize(c._width,a)}))},updateAllItemsShowMode:function(a){var b=this;null!=this._contentItems&&(0>=this._contentItems.length||this.updateAllItems(function(c){c=b.getFixItemHandler(c);null!=c&&c.setShowState(a)}))},reloadBookMarkClassList:function(){this.unloadBookMarkClassList();var a=Ff.getInstance().getCurrentBookMarkList(),b=this._scrollRect;if(null!=a&&1<=a.length){this.addTextItemWithNodeChildValue(new lk(0, ""));for(var c=0;c=this._contentItems.length))for(;null!=this._contentItems&&1<=this._contentItems.length;){var a=this._contentItems[0];null!=a&&null!=this._contentItems&&this._contentItems.splice(0,1);null!=a&&null!=a.parent&& (a.parent.setChildIndex(a,0),a.set_visible(!1))}},createListItemByItemInfo:function(a,b,c,d,e,f,h){null==h&&(h="");null==f&&(f=32);null==e&&(e=32);null==d&&(d=!1);null==b&&(b=10);null==a&&(a=10);if(null==c)return null;var p=c.objParam;null!=p?(p._bookMark=c,p._isExpanded=c.isExpanded,p._isSelected=c.isSelected,p._bookMarkLevel=0<=c.nodeLevel-1?c.nodeLevel-1:0):(p=new Yl(a,b,c,d,e,f,h),p.set_textColor(T.ControlFontColor()),p.set_textFontName(T.ControlFontName()),c.objParam=p);p.set_visible(!0);return p}, addTextItemWithNodeChildValue:function(a,b,c){null!=a&&(b=this._listItemWidth,c=this._listItemHeight,b=this.createListItemByItemInfo(b,c,a),b.setItemText(a.nodeLabel),b.resizeItemsLayout(),this.addItemWithObjectValue(b))},insertTextItemWithNodeChildValue:function(a,b,c,d){null!=a&&(b=this._listItemWidth,c=this._listItemHeight,a=this.createListItemByItemInfo(b,c,a),this.insertItemWithObject(a,d))},removeTextItemWithNodeChildValue:function(a){if(null!=a&&(a=this.getListItemIndexByNode(a),!(0>=a)))throw a= this.getDragListItem(a),null!=a&&this.removeItemWithObjectValue(a),new q(new O("\u4e0d\u8981\u8c03\u7528\u8fd9\u4e2a\u65b9\u6cd5!"));},__class__:lf});var ua=function(a,b,c,d,e,f,h,p,H,g,k){null==k&&(k=12303291);null==g&&(g=13421772);null==H&&(H=1);null==p&&(p=1);null==h&&(h=1);null==f&&(f=!1);null==e&&(e=16777215);null==d&&(d=!0);null==c&&(c=16777215);this._isEllipse=!1;this._isEnable=!0;U.call(this,a,b,null);this._width=a;this._height=b;this._useMask=!1;this._isFill=d;this._fillStyle=c;this._fillAlpha= 1;this._isStroke=f;this._strokeStyle=e;this._strokePixel=h;this._disableStyle=g;this._disableStroke=k;this._roundWidth=p;this._roundHeight=H;this.realMask=new F;this.maskSpr=new F;this.addChild(this.maskSpr);this.drawShape();this.maskSpr.addChild(this.realMask)};g["first.display.RectSprite"]=ua;ua.__name__=["first","display","RectSprite"];ua.__super__=U;ua.prototype=t(U.prototype,{_useMask:null,realMask:null,maskSpr:null,_fillStyle:null,_fillAlpha:null,_strokeStyle:null,_isFill:null,_isStroke:null, _strokePixel:null,_disableStyle:null,_disableStroke:null,_isEnable:null,_isEllipse:null,_roundWidth:null,_roundHeight:null,isUseForMask:function(){return 0!=this._useMask},setUseForMask:function(a){return this._useMask=a},resize:function(a,b){U.prototype.resize.call(this,a,b);this.drawShape();this.set_scaleX(this.set_scaleY(1))},onAddedToStageCall:function(a){this.drawShape();U.prototype.onAddedToStageCall.call(this,a)},onRemoveFromStageCall:function(a){U.prototype.onRemoveFromStageCall.call(this, a)},get_isEnable:function(){return this._isEnable},set_isEnable:function(a){this._isEnable=a;this.drawShape();return this._isEnable},get_isEllipse:function(){return this._isEllipse},set_isEllipse:function(a){this._isEllipse=a;this.drawShape();return this._isEllipse},get_isFill:function(){return this._isFill},set_isFill:function(a){null==a&&(a=!0);this._isFill=a;this.drawShape();return a},get_fillStyle:function(){return this._fillStyle},set_fillStyle:function(a){null==a&&(a=16777215);this._fillStyle= a;this.drawShape();return a},get_isStroke:function(){return this._isStroke},set_isStroke:function(a){null==a&&(a=!1);this._isStroke=a;this.drawShape();return a},get_strokePixel:function(){return this._strokePixel},set_strokePixel:function(a){null==a&&(a=1);this._strokePixel=a;0!=this._isStroke&&this.drawShape();return a},get_strokeStyle:function(){return this._strokeStyle},set_strokeStyle:function(a){null==a&&(a=16777215);this._strokeStyle=a;0!=this._isStroke&&this.drawShape();return this._strokeStyle}, get_disableStyle:function(){return this._disableStyle},set_disableStyle:function(a){null==a&&(a=16777215);this._disableStyle=a;this.drawShape();return this._disableStyle},get_disableStroke:function(){return this._disableStroke},set_disableStroke:function(a){null==a&&(a=16777215);this._disableStroke=a;0!=this._isStroke&&this.drawShape();return this._disableStroke},get_roundWidth:function(){return this._roundWidth},set_roundWidth:function(a){this._roundWidth=a;this.drawShape();return a},get_roundHeight:function(){return this._roundHeight}, set_roundHeight:function(a){this._roundHeight=a;this.drawShape();return a},drawShape:function(){0!=this._width&&0!=this._height&&(this.__drawClear(),0==this._isEnable?this.drawDisable():(0!=this._isFill&&this.__drawFill(this._fillStyle,this._fillAlpha),0!=this._isStroke&&0=a.length)this._textFontName="Tahoma"},getToolTip:function(){var a="";null!=this._textKey&&0=a.length)a=Pg.Text;this._listItemShowMode=a},doDragListItemClicked:function(a){var b=null,b=this.getFixItemHandler(a);null!=b&&(this.deselectAllListItems(),this.selectItemWithObjectValue(b),a=b._bookMark,null!=a&&(a=a.nodeLinkIndex,0>=a||lb.getInstance().flipBookGotoPageLink(a)))},onBookMarkItemClicked:function(a){null!=a&&null!=a._data&&(a=this.getFixItemHandler(a._data._trigger), null!=a&&this.doDragListItemClicked(a))},onBookMarkExpandClicked:function(a){null!=a&&null!=a._data&&null!=this.getFixItemHandler(a._data._trigger)&&this.reloadBookMarkClassList()},onBookMarkStepMouseDown:function(a){null!=a&&null!=a._data&&(a=this.getFixStepHandler(a._data._trigger),null!=a&&a==this._leftStep&&lf.prototype.doDragListStepMouseDown.call(this,a),null!=a&&a==this._rightStep&&lf.prototype.doDragListStepMouseDown.call(this,a))},onBookMarkStepMouseUp:function(a){null!=a&&null!=a._data&& this.getFixStepHandler(a._data._trigger)},__class__:$l});var Nc=function(a,b,c,d,e,f){null==f&&(f=32);null==e&&(e=32);null==d&&(d=!1);this._backSpriteAlpha=1;this._backColor=16777215;U.call(this,b,c);var h=null,h=Y.getInstance();this._isLeft=a;this._isVertical=d;this._isDown=!1;this._bitmapUrl=null;B.initParameters();this._backSprite=new ua(b,c,15592941,!0,11184810,!0,1);this._backSprite.resize(b,c);this.addChild(this._backSprite);this._backSprite.set_isFill(!1);this._backSprite.set_isStroke(!0); this._backSprite.set_isStroke(!1);this._backSprite._roundWidth=this._backSprite._roundHeight=4;this._backSprite._fillStyle=h.get(B.FILLCOLOR);this._backSprite._fillAlpha=h.get(B.FILLALPHA);this._downSprite=new vb(b,c,7829367,.8,6710886,1,10066329,.8,6710886,1);this._downSprite.set_isStroke(!1);this._downSprite._roundWidth=h.get(B.ROUNDWIDTH);this._downSprite._roundHeight=h.get(B.ROUNDHEIGHT);this._downSprite._alpha=.8;this.addChild(this._downSprite);this._iconWidth=e;this._iconHeight=f;this._iconSprite= new U(this._iconWidth,this._iconHeight);this.addChild(this._iconSprite);this._iconSprite.enable_mouse(!1);this.set_iconImage(this.getCurrentResetIconName());Ra.getInstance().hasKey(C.ThumbControlColor)&&(a=T.ThumbBackgroundColor(),this._backSprite._fillStyle=xa.scale(a,.5));this._backSprite.set_isFill(h.get(mb.ISSHOWSTEP))};g["first.drag.DragListStep"]=Nc;Nc.__name__=["first","drag","DragListStep"];Nc.__super__=U;Nc.prototype=t(U.prototype,{_isLeft:null,_isVertical:null,_isDown:null,_bitmap:null, _bitmapUrl:null,_iconWidth:null,_iconHeight:null,_iconSprite:null,_backSprite:null,_backColor:null,_backSpriteAlpha:null,_downSprite:null,resize:function(a,b){this._backSprite.resize(a,b);this._downSprite.resize(a,b);U.prototype.resize.call(this,a,b);this.resizeStepLayout();this.set_scaleX(this.set_scaleY(1))},setIsVertical:function(a){this._isVertical=a;this.set_iconImage(this.getCurrentResetIconName());return this._isVertical},resizeStepLayout:function(){0!=this._width&&0!=this._height&&this._iconSprite.center()}, getCurrentResetIconName:function(){var a=Yb.getInstance(),b=a.getTemplateSourceUrl(wa.BASEIMAGESTEP_LEFT);return b=0==this._isDown?0==this._isVertical?this._isLeft?a.getTemplateSourceUrl(wa.BASEIMAGESTEP_LEFT):a.getTemplateSourceUrl(wa.BASEIMAGESTEP_RIGHT):this._isLeft?a.getTemplateSourceUrl(wa.BASEIMAGESTEP_TOP):a.getTemplateSourceUrl(wa.BASEIMAGESTEP_BOTTOM):0==this._isVertical?this._isLeft?a.getTemplateSourceUrl(wa.BASEIMAGESTEP_LEFTDOWN):a.getTemplateSourceUrl(wa.BASEIMAGESTEP_RIGHTDOWN):this._isLeft? a.getTemplateSourceUrl(wa.BASEIMAGESTEP_TOPDOWN):a.getTemplateSourceUrl(wa.BASEIMAGESTEP_BOTTOMDOWN)},onAddedToStageCall:function(a){a=R.getInstance();a.addEventListener(v.MOUSEOVER_DOWN,this,k(this,this.onBaseSpriteStepDown));a.addEventListener(v.MOUSEOVER_UP,this,k(this,this.onBaseSpriteStepUp));this._downSprite.setMoveEvtMode(!0)},onRemoveFromStageCall:function(a){a=R.getInstance();a.removeEventListener(v.MOUSEOVER_DOWN,this,k(this,this.onBaseSpriteStepDown));a.removeEventListener(v.MOUSEOVER_UP, this,k(this,this.onBaseSpriteStepUp));this._downSprite.setMoveEvtMode(!1)},onBaseSpriteStepDown:function(a){if(null!=a&&null!=a._data&&a._data._trigger==this._downSprite){var b;try{b=m.__cast(a._data._trigger,Ue)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}null!=b&&b==this._downSprite&&(this._isDown=!0,this.set_iconImage(this.getCurrentResetIconName()),this.baseSpriteStepDownEvent(a))}},onBaseSpriteStepUp:function(a){if(null!=a&&null!=a._data){var b; try{b=m.__cast(a._data._trigger,Ue)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}null!=b&&b==this._downSprite&&(this._isDown=!1,this.set_iconImage(this.getCurrentResetIconName()),this.baseSpriteStepUpEvent(a))}},baseSpriteStepDownEvent:function(a){null!=a&&null!=a._data&&a._data._trigger==this._downSprite&&R.getInstance().dispatchEvent(new ja(v.BASESPRITESTEP_DOWN,new na(this,null,a._data.get_event())))},baseSpriteStepUpEvent:function(a){null!=a&& null!=a._data&&a._data._trigger==this._downSprite&&R.getInstance().dispatchEvent(new ja(v.BASESPRITESTEP_UP,new na(this,null,a._data.get_event())))},set_iconImage:function(a){null==a&&(a="");var b=this;this._bitmapUrl=a;this._iconSprite.get_numChildren();var c=function(c){var e;try{e=m.__cast(c._content,Ab)}catch(f){if(G.lastException=f,f instanceof q&&(f=f.val),m.__instanceof(f,O))e=null;else throw f;}null!=e&&b._bitmapUrl==a&&(0!=b._iconSprite.get_numChildren()&&b._iconSprite.removeAllChildren(), b._bitmap=new Ab(e.bitmapData.clone()),null!=b._bitmap&&b._iconSprite.addChild(b._bitmap))};null!=a&&""!=a&&fd.getInstance().getBitmapImage(a,c)},__class__:Nc});var Xl=function(a,b,c,d,e,f){null==f&&(f=32);null==e&&(e=32);null==d&&(d=!1);Nc.call(this,a,b,c,d,e,f);this._listStepWidth=b;this._listStepHeight=c};g["first.bookmark.BookMarkStep"]=Xl;Xl.__name__=["first","bookmark","BookMarkStep"];Xl.__super__=Nc;Xl.prototype=t(Nc.prototype,{_listStepWidth:null,_listStepHeight:null,resize:function(a,b){Nc.prototype.resize.call(this, a,b);this._listStepWidth=a;this._listStepHeight=b},getCurrentResetIconName:function(){return Nc.prototype.getCurrentResetIconName.call(this)},baseSpriteStepDownEvent:function(a){null!=a&&null!=a._data&&a._data._trigger==this._downSprite&&R.getInstance().dispatchEvent(new ja(v.BOOKMARKSTEP_DOWN,new na(this,null,a._data.get_event())))},baseSpriteStepUpEvent:function(a){null!=a&&null!=a._data&&a._data._trigger==this._downSprite&&R.getInstance().dispatchEvent(new ja(v.BOOKMARKSTEP_UP,new na(this,null, a._data.get_event())))},__class__:Xl});var Ls=function(){};g["first.color.ColorConst"]=Ls;Ls.__name__=["first","color","ColorConst"];var xa=function(){};g["first.color.ColorUtils"]=xa;xa.__name__=["first","color","ColorUtils"];xa.red=function(a){return a>>>16&255};xa.redFloat=function(a){return(a>>>16&255)/255};xa.green=function(a){return a>>>8&255};xa.greenFloat=function(a){return(a>>>8&255)/255};xa.blue=function(a){return a>>>0&255};xa.blueFloat=function(a){return(a>>>0&255)/255};xa.alpha=function(a){return a>>> 24&255};xa.alphaFloat=function(a){return(a>>>24&255)/255};xa.rgbColor=function(a){a=xa.rgbaList(a);return xa.argbMake(a[0],a[1],a[2],0)};xa.rgbaList=function(a){var b=[];b.push(xa.red(a));b.push(xa.green(a));b.push(xa.blue(a));b.push(xa.alpha(a));return b};xa.argbMake=function(a,b,c,d){null==d&&(d=0);return(a&255)<<16|(b&255)<<8|c&255|(d&255)<<24};xa.xor=function(a){a=xa.rgbaList(a);return xa.argbMake(255-a[0],255-a[1],255-a[2],a[3])};xa.min=function(a,b){var c=xa.rgbaList(a),d=xa.rgbaList(b),e=y["int"](Math.min(c[3], d[3])),f=y["int"](Math.min(c[0],d[0])),h=y["int"](Math.min(c[1],d[1])),c=y["int"](Math.min(c[2],d[2]));return xa.argbMake(f,h,c,e)};xa.max=function(a,b){var c=xa.rgbaList(a),d=xa.rgbaList(b),e=y["int"](Math.max(c[3],d[3])),f=y["int"](Math.max(c[0],d[0])),h=y["int"](Math.max(c[1],d[1])),c=y["int"](Math.max(c[2],d[2]));return xa.argbMake(f,h,c,e)};xa.sum=function(a,b){var c=xa.rgbaList(a),d=xa.rgbaList(b),e=y["int"](Math.max(c[3],d[3])),f=y["int"](Math.min(c[0]+d[0],255)),h=y["int"](Math.min(c[1]+d[1], 255)),c=y["int"](Math.min(c[2]+d[2],255));return xa.argbMake(f,h,c,e)};xa.sub=function(a,b){var c=xa.rgbaList(a),d=xa.rgbaList(b),e=y["int"](Math.max(c[3],d[3])),f=y["int"](Math.max(c[0]-d[0],0)),h=y["int"](Math.max(c[1]-d[1],0)),c=y["int"](Math.max(c[2]-d[2],0));return xa.argbMake(f,h,c,e)};xa.scale=function(a,b){null==b&&(b=.5);null==a&&(a=16777215);var c=xa.red(a),d=xa.green(a),e=xa.blue(a),c=y["int"](Math.max(Math.min(c*b,255),0)),d=y["int"](Math.max(Math.min(d*b,255),0)),e=y["int"](Math.max(Math.min(e* b,255),0));return xa.argbMake(c,d,e,0)};xa.blend=function(a,b,c){null==c&&(c=.5);null==b&&(b=0);null==a&&(a=16777215);var d=xa.red(a),e=xa.red(b),f=xa.green(a);xa.green(b);a=xa.blue(a);xa.blue(b);d=y["int"](Math.max(Math.min(d+(e-d)*c,255),0));f=y["int"](Math.max(Math.min(f+(e-f)*c,255),0));a=y["int"](Math.max(Math.min(a+(e-a)*c,255),0));return xa.argbMake(d,f,a,0)};xa.transform=function(a,b,c,d,e,f,h,p,H){null==H&&(H=0);null==p&&(p=0);null==h&&(h=0);null==f&&(f=0);null==e&&(e=1);null==d&&(d=1);null== c&&(c=1);null==b&&(b=1);null==a&&(a=16777215);var g=xa.red(a),k=xa.green(a),l=xa.blue(a);a=xa.alpha(a);c=k*c+h|0;d=l*d+p|0;e=a*e+H|0;b=y["int"](Math.max(Math.min(g*b+f|0,255),0));c=y["int"](Math.max(Math.min(c,255),0));d=y["int"](Math.max(Math.min(d,255),0));e=y["int"](Math.max(Math.min(e,255),0));return xa.argbMake(b,c,d,e)};var Pr=function(){};g["first.config.InstallThickType"]=Pr;Pr.__name__=["first","config","InstallThickType"];var bi=function(){};g["first.config.InstallHotSpotType"]=bi;bi.__name__= ["first","config","InstallHotSpotType"];var Qr=function(){};g["first.config.InstallBook"]=Qr;Qr.__name__=["first","config","InstallBook"];Qr.getHotSpotWidthTypeValue=function(a,b){if(0==a||0==b)return 50;var c=50,c=T.HotSpotWidthType(),d=b/2-80-40;d>.85*a&&(d=.85*a);switch(c){case "None":c=10;break;case "Smallest":c=.3*d;50>=c&&(c=50);break;case "Small":c=.4*d;60>=c&&(c=60);break;case "Normal":c=.5*d;80>=c&&(c=80);break;case "Large":c=.7*d;90>=c&&(c=90);break;case "Larger":c=.85*d;95>=c&&(c=95);break; case "Largest":c=d;99>=c&&(c=99);break;default:c=.4*d,50>=c&&(c=50)}return c};var T=function(){};g["first.config.InstallConfig"]=T;T.__name__=["first","config","InstallConfig"];T.AppLogoIcon=function(a){null==a&&(a="");var b=null;return b=ra.parseStringConfig(C.BookLogoSettings,a)};T.AppLogoLinkURL=function(a){null==a&&(a="");var b=null;return b=ra.parseStringConfig(C.BookLogoLinkURL,a)};T.EnableFlipSound=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.EnableFlipSound,a)};T.EnableSoundButton= function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.EnableSoundButton,a)};T.BackgroundSoundURL=function(a){null==a&&(a="");var b=null;return b=ra.parseStringConfig(C.SoundFileURL,a)};T.BackgroundSoundLoop=function(a){null==a&&(a=-1);var b=null;return b=ra.parseIntConfig(C.SoundFileLoops,a)};T.EnableFullButton=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.EnableFullButton,a)};T.EnableFlipNavButton=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.EnableFlipNavButton, a)};T.EnableZoomInButton=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.EnableZoomInButton,a)};T.MinimumZoomWidth=function(a){null==a&&(a=0);var b=null;return b=ra.parseIntConfig(C.MinimumZoomWidth,a)};T.MaximumZoomWidth=function(a){null==a&&(a=16777215);var b=null;return b=ra.parseIntConfig(C.MaximumZoomWidth,a)};T.EnableSearchButton=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.EnableSearchButton,a)};T.EnableThumbnailsButton=function(a){null==a&&(a=!0); var b=null;return b=ra.parseBoolConfig(C.EnableThumbnailsButton,a)};T.EnableBookmarkButton=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.EnableBookmarkButton,a)};T.EnableSocialShareButton=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.EnableSocialShareButton,a)};T.EnableSelectTextButton=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.EnableSelectTextButton,a)};T.LanguageSetting=function(a){null==a&&(a="English");var b=null;return b= ra.parseStringConfig(C.LanguageSetting,a)};T.LanguageSwitchable=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.LanguageSwitchable,a)};T.EnableAutoButton=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.EnableAutoButton,a)};T.AutoFlipInterval=function(a){null==a&&(a=3);var b=null;return b=ra.parseFloatConfig(C.AutoFlipInterval,a)};T.AutoFlipLoopCount=function(a){null==a&&(a=0);var b=null;return b=ra.parseIntConfig(C.AutoFlipLoops,a)};T.AutoFlipFromStart=function(a){null== a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.AutoFlipFromStart,a)};T.IsRightToLeft=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.IsRightToLeft,a)};T.IsStartOpenBook=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.StartWithDoublePage,a)};T.IsHardCoverStyle=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.IsHardCoverStyle,a)};T.ThicknessWidthType=function(a){null==a&&(a="None");var b=null;return b=ra.parseStringConfig(C.PagesThickness, a)};T.HotSpotWidthType=function(a){null==a&&(a="Normal");var b=null;return b=ra.parseStringConfig(C.CornerFlipEffect,a)};T.AlwaysInTheCenter=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.AlwaysInTheCenter,a)};T.ShowCornerFlipEffect=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.ShowCornerFlipEffect,a)};T.MouseTracingEffect=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.MouseTracingEffect,a)};T.PageFlipTweenTime=function(a){null==a&& (a=.6);var b=null;return b=ra.parseFloatConfig(C.PageFlipTweenTime,a)};T.MouseWheelToTurnPage=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.MouseWheelToTurnPage,a)};T.PageBackgroundColor=function(a){null==a&&(a=16777215);var b=null;return b=ra.parseIntConfig(C.PageBackgroundColor,a)};T.PageAlginVertical=function(a){null==a&&(a="Center");var b=null;return b=ra.parseStringConfig(C.PageAlginVertical,a)};T.PageAlginHorizontal=function(a){null==a&&(a="In");var b=null;return b=ra.parseStringConfig(C.PageAlginHorizontal, a)};T.PageNumberColor=function(a){null==a&&(a=0);var b=null;return b=ra.parseIntConfig(C.PageNumberColor,a)};T.ButtonIconColor=function(a){null==a&&(a=16777215);var b=null;return b=ra.parseIntConfig(C.ButtonIconColor,a)};T.ControlBarColor=function(a){null==a&&(a=16777215);var b=null;return b=ra.parseIntConfig(C.ControlBarColor,a)};T.ControlFontColor=function(a){null==a&&(a=0);var b=null;return b=ra.parseIntConfig(C.ControlFontColor,a)};T.ControlFontName=function(a){null==a&&(a="Tahoma");var b=null, b=ra.parseStringConfig(C.ControlFontName,a);if(null==b||""==b)b="Tahoma";return b};T.FlipNavIconColor=function(a){null==a&&(a=16777215);var b=null;return b=ra.parseIntConfig(C.FlipButtonIconColor,a)};T.IsShowThumbnails=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.IsShowThumbnails,a)};T.ThumbBackgroundColor=function(a){null==a&&(a=16777215);var b=null;return b=ra.parseIntConfig(C.ThumbControlColor,a)};T.BackgroundFileUrl=function(a){null==a&&(a="");var b=null;return b=ra.parseStringConfig(C.BackgroundFile, a)};T.BackgroundPosition=function(a){null==a&&(a="");var b=null;return b=ra.parseStringConfig(C.BackgroundPosition,a)};T.BackgroundAlpha=function(a){null==a&&(a=1);var b=null;return b=ra.parseFloatConfig(C.BackgroundAlpha,a)};T.BackgroundEndColor=function(a){null==a&&(a=16777215);var b=null;return b=ra.parseIntConfig(C.BackgroundEndColor,a)};T.BackgroundBeginColor=function(a){null==a&&(a=16777215);var b=null;return b=ra.parseIntConfig(C.BackgroundBeginColor,a)};T.BackgroundRotation=function(a){null== a&&(a=0);var b=null;return b=ra.parseIntConfig(C.BackgroundRotation,a)};T.TotalPageCaption=function(a){null==a&&(a="");var b=null;return b=ra.parseStringConfig(C.TotalPageCaption,a)};T.PageNumberCaption=function(a){null==a&&(a="");var b=null;return b=ra.parseStringConfig(C.PageNumberCaption,a)};T.IsUserSmallMode=function(a){null==a&&(a=!0);var b=null;return b=ra.parseBoolConfig(C.UseMinimeStyle,a)};T.MinimeStyleWidth=function(a){null==a&&(a=640);var b=null;return b=ra.parseFloatConfig(C.MinimeStyleWidth, a)};T.MinimeStyleHeight=function(a){null==a&&(a=480);var b=null;return b=ra.parseFloatConfig(C.MinimeStyleHeight,a)};T.LinkOverColor=function(a){null==a&&(a=0);var b=null;return b=ra.parseIntConfig(C.LinkOverColor,a)};T.LinkOverAlpha=function(a){null==a&&(a=3);var b=null;return b=ra.parseFloatConfig(C.LinkOverAlpha,a)};T.LinkOpenedWindow=function(a){null==a&&(a="Blank");var b=null;return b=ra.parseStringConfig(C.LinkOpenedWindow,a)};T.LinkEnableWhenZoom=function(a){null==a&&(a=!0);var b=null;return b= ra.parseBoolConfig(C.LinkEnableWhenZoom,a)};T.GoogleAnalyticsID=function(a){null==a&&(a="");var b=null;return b=ra.parseStringConfig(C.GoogleAnalyticsID,a)};var C=function(){};g["first.config.InstallKey"]=C;C.__name__=["first","config","InstallKey"];var ra=function(){};g["first.config.InstallUtils"]=ra;ra.__name__=["first","config","InstallUtils"];ra.isEmpty=function(a){return null!=a&&"string"!=typeof a||null==a||""==a||0>=a.length?!0:!1};ra.getString=function(a,b){return null==a?b:(a|0)===a||"boolean"== typeof a||"number"==typeof a?y.string(a):"string"==typeof a?a:""+y.string(a)};ra.parseInt=function(a,b){null==b&&(b=0);if(null==a||""==a||"string"!=typeof a)return b;try{var c=y.parseInt(a);if(null!=a&&null!=c)return c}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),!m.__instanceof(d,O))throw d;}return b};ra.parseFloat=function(a,b){null==b&&(b=0);if(null==a||""==a||"string"!=typeof a)return b;try{var c=parseFloat(a);if(null!=a&&!isNaN(c))return c}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),!m.__instanceof(d,O))throw d;}return b};ra.parseBool=function(a,b){null==b&&(b=!1);if(null==a||""==a||"string"!=typeof a)return b;try{if("1"==a.charAt(0)&&1==ra.parseInt(a,-1))return!0;var c=a.toUpperCase(),c=W.trim(c);if(0<=c.indexOf("YES")||0<=c.indexOf("SHOW")||0<=c.indexOf("ENABLE")||0<=c.indexOf("TRUE"))return!0}catch(d){G.lastException=d;d instanceof q&&(d=d.val);if(m.__instanceof(d,O))return b;throw d;}return!1};ra.parseIntConfig=function(a,b){null==b&&(b=0);if(null==a||""==a|| 0>=a.length)return b;var c=null,d=b,d=null,d=Ra.getInstance();0!=d.hasKey(a)&&(c=d.get(a));return d=null!=c&&"boolean"==typeof c?1==c?1:0:null!=c&&"number"==typeof c?y["int"](c):null!=c&&"string"==typeof c?ra.parseInt(c):null==c?b:c};ra.parseBoolConfig=function(a,b){null==b&&(b=!1);if(null==a||""==a||0>=a.length)return b;var c=null,d=b,d=null,d=Ra.getInstance();0!=d.hasKey(a)&&(c=d.get(a));return d=null!=c&&(c|0)===c?0!=c?!0:!1:null!=c&&"number"==typeof c?0!=c?!0:!1:null!=c&&"string"==typeof c?ra.parseBool(c): null==c?b:c};ra.parseFloatConfig=function(a,b){null==b&&(b=0);if(null==a||""==a||0>=a.length)return b;var c=null,d=b,d=null,d=Ra.getInstance();0!=d.hasKey(a)&&(c=d.get(a));return d=null!=c&&(c|0)===c?1*c:null!=c&&"boolean"==typeof c?1!=c?0:1:null!=c&&"string"==typeof c?ra.parseFloat(c):null==c?b:c};ra.parseStringConfig=function(a,b){null==b&&(b="");if(null==a||""==a||0>=a.length)return b;var c=null,d=b,d=null,d=Ra.getInstance();0!=d.hasKey(a)&&(c=d.get(a));return d=null!=c&&(c|0)===c?y.string(c): null!=c&&"boolean"==typeof c?y.string(c):null!=c&&"number"==typeof c?y.string(c):null==c?b:y.string(c)};ra.getItemTypeValue=function(a){if(null==a)return null;var b=Ua.getAttrString(a,ba.KeyType);null!=b&&0a||null==this._mapPagesObjects&&(this.installXmlPageObjectsMapCached(),null==this._mapPagesObjects))return null;a=this._mapPagesObjects.get(null==a?"null":""+a);return null==a?null:new Ma(a._xml)},__class__:te};var se=function(){if(null!=se.instance)throw new q(new O("\u5355\u4f8b\u6a21\u5f0f")); this.initParameters()};g["first.config.Parameters"]=se;se.__name__=["first","config","Parameters"];se.getInstance=function(){null==se.instance&&(se.instance=new se);return se.instance};se.prototype={initParameters:function(){if(0==se.isInit){se.isInit=!0;var a;a=Ra.getInstance();a.set(C.PageWidth,0);a.set(C.PageHeight,0);a.set(C.TotalPageCaption,"");a.set(C.PageNumberCaption,"");a.set(C.UseMinimeStyle,!1);a.set(C.MinimeStyleWidth,400);a.set(C.MinimeStyleHeight,300);a.set(C.BookLogoLinkURL,"");a.set(C.BookLogoSettings, "");a.set(C.EnableSoundButton,!0);a.set(C.SoundFileURL,"");a.set(C.SoundFileLoops,-1);a.set(C.EnableFullButton,!0);a.set(C.EnableZoomInButton,!0);a.set(C.MinimumZoomWidth,700);a.set(C.MaximumZoomWidth,1400);a.set(C.LanguageSetting,"English");a.set(C.LanguageSwitchable,!1);a.set(C.EnableAutoButton,!0);a.set(C.AutoFlipInterval,3);a.set(C.AutoFlipLoops,1);a.set(C.AutoFlipFromStart,!1);a.set(C.PagesThickness,"None");a.set(C.CornerFlipEffect,"None");a.set(C.AlwaysInTheCenter,!0);a.set(C.ShowCornerFlipEffect, !1);a.set(C.MouseTracingEffect,!1);a.set(C.ControlBarColor,657928);a.set(C.IsRightToLeft,!1);a.set(C.StartWithDoublePage,!1);a.set(C.IsHardCoverStyle,!1);a.set(C.PageFlipTweenTime,.5);a.set(C.EnableDoubleFlipPage,!1);a.set(C.MouseWheelToTurnPage,!0);a.set(C.PageNumberColor,0);a.set(C.PageBackgroundColor,0);a.set(C.ButtonIconColor,16777215);a.set(C.FlipButtonIconColor,16777215);a.set(C.IsShowThumbnails,!1);a.set(C.ThumbControlColor,16777215);a.set(C.ControlFontColor,16777215);a.set(C.ControlFontName, "Tahoma");a.set(C.BackgroundAlpha,.8);a.set(C.BackgroundFile,"");a.set(C.BackgroundPosition,"Scale to fit");a.set(C.BackgroundEndColor,11844427);a.set(C.BackgroundBeginColor,11844427);a.set(C.BackgroundRotation,90);a.set(C.LinkOverColor,8388736);a.set(C.LinkOverAlpha,.4);a.set(C.LinkOpenedWindow,"blank");a.set(C.LinkEnableWhenZoom,!0);a.set(C.GoogleAnalyticsID,0)}},__class__:se};var Ms=function(){};g["first.config.ParametersXml"]=Ms;Ms.__name__=["first","config","ParametersXml"];var am=function(a, b){null==b&&(b=0);null==a&&(a=0);this._strokeColor=11184810;this._strokePixel=1;this._isStroke=!0;this._gradualAngle=-Math.PI/2;this._fillColor=16711680;this._stopRatio=255;this._startRatio=0;this._stopColor=16777215;this._startColor=0;this._startAlpha=this._stopAlpha=100;U.call(this);this._width=a;this._height=b;this._backSprite=this};g["first.display.GradualSprite"]=am;am.__name__=["first","display","GradualSprite"];am.degreesToRadians=function(a){return Math.PI/180*a};am.__super__=U;am.prototype= t(U.prototype,{_backSprite:null,_startAlpha:null,_stopAlpha:null,_startColor:null,_stopColor:null,_startRatio:null,_stopRatio:null,_fillColor:null,_gradualAngle:null,_isStroke:null,_strokePixel:null,_strokeColor:null,onAddedToStageCall:function(a){this.resize(this._width,this._height)},drawSprite:function(a,b){this.get_graphics().clear();this._backSprite.get_graphics().clear();0!=this._width&&0!=this._height&&this.drawBackground()},drawBackground:function(){if(0!=this._width&&0!=this._height){this.set_scaleX(1); this.set_scaleY(1);var a,b=this._stopColor>>8&255,c=this._stopColor&255,d=this._startColor>>8&255,e=this._startColor&255;a=0+((((this._startColor>>16&255)+(this._stopColor>>16&255))/2|0)<<16);a=a+(((d+b)/2|0)<<8)+((e+c)/2|0);b=(this._startAlpha+this._stopAlpha)/2;this.get_graphics().beginFill(a,b);this.get_graphics().drawRect(0,0,this._width,this._height);this.get_graphics().endFill();0!=this._isStroke&&0>16&255;0>a&&(a=0);var b=this._fillColor>>8&255;0>b&&(b=0);var c=this._fillColor&255;0>c&&(c=0);this.get_transform().set_colorTransform(new zf(.2,.2,.2, 1,a,b,c,1))},__class__:am});var ue=function(){};g["first.display.ImageFillMode"]=ue;ue.__name__=["first","display","ImageFillMode"];var bm=function(a){ua.call(this,0,0);this._isFill=!1;this._isStroke=!0;this._isStroke=!1;this._bitmapHeight=this._bitmapWidth=0;this._hasBorder=!1;this._bitmapFillMode=ue.ScaleToFit;this._bitmapSmoothing=!1;null!=a&&0=this._bitmapWidth||0>=this._bitmapHeight)){var a=0,b=0,c=this._bitmapFillMode.toLowerCase(),d=this._bitmapWidth,e=this._bitmapHeight,f=this._width-0-0,h=this._height-0-0;if(!(0>=f||0>=h)){var p=Gd.scaleWidthHeight(d,e,f,h),H=d*p,b=e*p,a=0+(.5*f|0),g=0+(.5*h|0);switch(c.toLowerCase()){case "fill":a=b=0;break;case "scale to fit":a=b=0;break;case "top left":a=b=0;break;case "top center":b=0;a= a-.5*H|0;break;case "top right":b=0;a=this._width-0-H|0;break;case "middle left":a=0;b=g-.5*b|0;break;case "middle center":a=a-.5*H|0;b=g-.5*b|0;break;case "middle right":a=this._width-0-H|0;b=g-.5*b|0;break;case "bottom left":a=0;b=this._height-0-b|0;break;case "bottom center":a=a-.5*H|0;b=this._height-0-b|0;break;case "bottom right":a=this._width-0-H|0;b=this._height-0-b|0;break;default:a=a-.5*H|0,b=g-.5*b|0}H=new pa;c==ue.Fill?(H.translate(a,b),H.scale(1,1)):c==ue.ScaleToFit?(H.translate(a,b), c=Gd.scaleWidth(d,f),e=Gd.scaleHeight(e,h),H.scale(c,e)):(H.translate(a,b),H.scale(p,p));e=this._bitmapFillMode==ue.Fill;this.get_graphics().beginBitmapFill(this._bitmap.bitmapData,H,e,!0);this.get_graphics().drawRect(0,0,this._width,this._height);this.get_graphics().endFill()}}},__class__:bm});var Yi=function(a){this._scaleAlginHor=this._scaleAlginVer="center";this._scaleWidth=this._scaleHeight=0;this._scaleRadio=1;ua.call(this,0,0);this._isFill=!1;this._isStroke=!0;this._isStroke=!1;this._bitmapHeight= this._bitmapWidth=0;this._bitmapSmoothing=!1;this._onBitmapConfig=null;null!=a&&0=this.__worldAlpha)){null!=this.get_scrollRect()&&a.maskManager.pushRect(this.get_scrollRect(),this.__worldTransform);null!=this.__mask&&a.maskManager.pushMask(this.__mask);for(var b=0,c=this.__children;ba||a>this.__textEngine.text.length-1)return null;this.__updateLayout();for(var b=0,c=this.__textEngine.layoutGroups;b< c.length;){var d=c[b];++b;if(a>=d.startIndex&&a<=d.endIndex){for(var b=d.offsetX,c=0,e=a-d.startIndex;c=a||a>this.get_width()+4||0>=b||b>this.get_height()+4)return-1;this.__updateLayout();a+=this.get_scrollH();for(var c=0,d=this.get_scrollV()-1;c=c.offsetY&&b<=c.offsetY+c.height&&a>=c.offsetX&&a<=c.offsetX+c.width){for(var e=d=0,f=c.advances.length;ea||a>this.__textEngine.text.length-1)return 0;for(var b=this.__textEngine.text.indexOf("\n"),c=0;-1a)break;b=this.__textEngine.text.indexOf("\n",b+1)}return c},getLineIndexAtPoint:function(a,b){this.__updateLayout(); if(2>=a||a>this.get_width()+4||0>=b||b>this.get_height()+4)return-1;for(var c=0,d=this.get_scrollV()-1;c=e.offsetY&&b<=e.offsetY+e.height)return e.lineIndex;return-1},getLineIndexOfChar:function(a){if(0>a||a>this.__textEngine.text.length-1)return-1;this.__updateLayout();for(var b=0,c=this.__textEngine.layoutGroups;b=a)return d.lineIndex}return-1}, getLineLength:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return 0;for(var b=-1,c=-1,d=0,e=this.__textEngine.layoutGroups;da||a>this.__textEngine.numLines-1)return-1;for(var b=0,c=this.__textEngine.layoutGroups;ba||a>this.__textEngine.numLines- 1)return null;for(var b=-1,c=-1,d=0,e=this.__textEngine.layoutGroups;da||a>this.__textEngine.text.length-1)return 0;var b=this.getFirstCharInParagraph(a);a=this.__textEngine.text.indexOf("\n",a)+1;0==a&&(a=this.__textEngine.text.length);return a-b},getTextFormat:function(a, b){null==b&&(b=0);null==a&&(a=0);for(var c=null,d=0,e=this.__textEngine.textFormatRanges;d=a||f.start<=b&&f.end>=b)null==c?c=f.format.clone():(f.format.font!=c.font&&(c.font=null),f.format.size!=c.size&&(c.size=null),f.format.color!=c.color&&(c.color=null),f.format.bold!=c.bold&&(c.bold=null),f.format.italic!=c.italic&&(c.italic=null),f.format.underline!=c.underline&&(c.underline=null),f.format.url!=c.url&&(c.url=null),f.format.target!=c.target&&(c.target= null),f.format.align!=c.align&&(c.align=null),f.format.leftMargin!=c.leftMargin&&(c.leftMargin=null),f.format.rightMargin!=c.rightMargin&&(c.rightMargin=null),f.format.indent!=c.indent&&(c.indent=null),f.format.leading!=c.leading&&(c.leading=null),f.format.blockIndent!=c.blockIndent&&(c.blockIndent=null),f.format.bullet!=c.bullet&&(c.bullet=null),f.format.kerning!=c.kerning&&(c.kerning=null),f.format.letterSpacing!=c.letterSpacing&&(c.letterSpacing=null),f.format.tabStops!=c.tabStops&&(c.tabStops= null))}return c},replaceSelectedText:function(a){if(""!=a||this.__selectionIndex!=this.__caretIndex){var b;b=this.__caretIndexthis.__selectionIndex?this.__caretIndex:this.__selectionIndex,a);this.__selectionIndex=this.__caretIndex=b+a.length}},replaceText:function(a,b,c){if(!(ba||b>this.__textEngine.text.length||null==c)){this.__textEngine.text=this.__textEngine.text.substring(0,a)+c+this.__textEngine.text.substring(b); c=c.length-(b-a);for(var d=0,e;d=b?(e.end+=c,d++):e.start>=a&&e.end<=b?(this.__textEngine.textFormatRanges.splice(d,1),c-=e.end-e.start):(e.start>a&&e.start<=b&&(e.start+=c),d++);this.__layoutDirty=this.__dirty=!0}},setSelection:function(a,b){this.__selectionIndex=a;this.__caretIndex=b},setTextFormat:function(a,b,c){null!=a.font&&(this.__textFormat.font=a.font);null!=a.size&&(this.__textFormat.size= a.size);null!=a.color&&(this.__textFormat.color=a.color);null!=a.bold&&(this.__textFormat.bold=a.bold);null!=a.italic&&(this.__textFormat.italic=a.italic);null!=a.underline&&(this.__textFormat.underline=a.underline);null!=a.url&&(this.__textFormat.url=a.url);null!=a.target&&(this.__textFormat.target=a.target);null!=a.align&&(this.__textFormat.align=a.align);null!=a.leftMargin&&(this.__textFormat.leftMargin=a.leftMargin);null!=a.rightMargin&&(this.__textFormat.rightMargin=a.rightMargin);null!=a.indent&& (this.__textFormat.indent=a.indent);null!=a.leading&&(this.__textFormat.leading=a.leading);null!=a.blockIndent&&(this.__textFormat.blockIndent=a.blockIndent);null!=a.bullet&&(this.__textFormat.bullet=a.bullet);null!=a.kerning&&(this.__textFormat.kerning=a.kerning);null!=a.letterSpacing&&(this.__textFormat.letterSpacing=a.letterSpacing);null!=a.tabStops&&(this.__textFormat.tabStops=a.tabStops);this.__layoutDirty=this.__dirty=!0},__getBounds:function(a,b){this.__updateLayout();var c=va.__temp;this.__textEngine.bounds.__transform(c, b);a.__expand(c.x,c.y,c.width,c.height)},__getCursor:function(){return this.__textEngine.selectable?$a.TEXT:null},__getPosition:function(a,b){this.__updateLayout();a+=this.get_scrollH();for(var c=0,d=this.get_scrollV()-1;cthis.__textEngine.textHeight&&(b=this.__textEngine.textHeight);for(var d=!0,f,e=0,h=this.__textEngine.layoutGroups.length;e=c.offsetY&&b<=c.offsetY+c.height||null==f)if(a>=c.offsetX&&a<=c.offsetX+c.width||null==f||f.lineIndex!=c.lineIndex){e=d=0;for(h=c.advances.length;ethis.__caretIndex&&(this.__selectionIndex=this.__caretIndex=this.__textEngine.text.length);null!=this.stage&&(this.stage.window.backend.setEnableTextEvents(!0), this.__inputEnabled||(this.stage.window.backend.setEnableTextEvents(!0),this.stage.window.onTextInput.has(k(this,this.window_onTextInput))||(this.stage.window.onTextInput.add(k(this,this.window_onTextInput)),this.stage.window.onKeyDown.add(k(this,this.window_onKeyDown))),this.__inputEnabled=!0,this.__startCursorTimer()))},__stopCursorTimer:function(){null!=this.__cursorTimer&&(this.__cursorTimer.stop(),this.__cursorTimer=null);this.__showCursor&&(this.__showCursor=!1,this.__dirty=!0)},__stopTextInput:function(){this.__inputEnabled&& null!=this.stage&&(this.stage.window.backend.setEnableTextEvents(!1),this.stage.window.onTextInput.remove(k(this,this.window_onTextInput)),this.stage.window.onKeyDown.remove(k(this,this.window_onKeyDown)),this.__inputEnabled=!1,this.__stopCursorTimer())},__updateLayout:function(){if(this.__layoutDirty){this.__textEngine.update();if(this.__textEngine.autoSize!=Ka.NONE){var a=this.__textEngine.width;switch(this.__textEngine.autoSize[1]){case 1:case 3:case 0:this.__textEngine.wordWrap||(this.__textEngine.width= this.__textEngine.textWidth+4),this.__textEngine.height=this.__textEngine.textHeight+4}if(this.__textEngine.width!=a)switch(this.__textEngine.autoSize[1]){case 3:this.set_x(this.get_x()+(a-this.__textEngine.width));break;case 0:this.set_x(this.get_x()+(a-this.__textEngine.width)/2)}this.__textEngine.getBounds()}this.__layoutDirty=!1}},get_antiAliasType:function(){return this.__textEngine.antiAliasType},set_antiAliasType:function(a){return this.__textEngine.antiAliasType=a},get_autoSize:function(){return this.__textEngine.autoSize}, set_autoSize:function(a){a!=this.__textEngine.autoSize&&(this.__layoutDirty=this.__dirty=!0);return this.__textEngine.autoSize=a},get_background:function(){return this.__textEngine.background},set_background:function(a){a!=this.__textEngine.background&&(this.__dirty=!0);return this.__textEngine.background=a},get_backgroundColor:function(){return this.__textEngine.backgroundColor},set_backgroundColor:function(a){a!=this.__textEngine.backgroundColor&&(this.__dirty=!0);return this.__textEngine.backgroundColor= a},get_border:function(){return this.__textEngine.border},set_border:function(a){a!=this.__textEngine.border&&(this.__dirty=!0);return this.__textEngine.border=a},get_borderColor:function(){return this.__textEngine.borderColor},set_borderColor:function(a){a!=this.__textEngine.borderColor&&(this.__dirty=!0);return this.__textEngine.borderColor=a},get_bottomScrollV:function(){this.__updateLayout();return this.__textEngine.bottomScrollV},get_caretIndex:function(){return this.__caretIndex},get_defaultTextFormat:function(){return this.__textFormat.clone()}, set_defaultTextFormat:function(a){this.__textFormat.__merge(a);this.__dirty=this.__layoutDirty=!0;return a},get_displayAsPassword:function(){return this.__textEngine.displayAsPassword},set_displayAsPassword:function(a){a!=this.__textEngine.displayAsPassword&&(this.__layoutDirty=this.__dirty=!0);return this.__textEngine.displayAsPassword=a},get_embedFonts:function(){return this.__textEngine.embedFonts},set_embedFonts:function(a){return this.__textEngine.embedFonts=a},get_gridFitType:function(){return this.__textEngine.gridFitType}, set_gridFitType:function(a){return this.__textEngine.gridFitType=a},get_height:function(){this.__updateLayout();return this.__textEngine.height},set_height:function(a){if(1!=this.get_scaleY()||a!=this.__textEngine.height)this.__transformDirty||(this.__transformDirty=!0,Da.__worldTransformDirty++),this.__layoutDirty=this.__dirty=!0;this.set_scaleY(1);return this.__textEngine.height=a},get_htmlText:function(){return this.__textEngine.text},set_htmlText:function(a){this.__isHTML&&this.__textEngine.text== a||(this.__layoutDirty=this.__dirty=!0);this.__isHTML=!0;if(null==this.__div){a=(new Lc("
","g")).replace(a,"\n");a=(new Lc("
","g")).replace(a,"\n");var b=a.split("","g")).replace(a,""),1");if(-1")+1,h=e,p=this.__textFormat.clone(),H=d.indexOf("face="),g=d.indexOf("color="),k=d.indexOf("size=");if(-1", "g")).replace(f,"");this.__textEngine.textFormatRanges.push(new $i(p,a.length,a.length+f.length));a+=f;e+7this.__textEngine.maxScrollH&&(a=this.__textEngine.maxScrollH);0>a&&(a=0);a!=this.__textEngine.scrollH&&(this.__dirty=!0);return this.__textEngine.scrollH=a},get_scrollV:function(){return this.__textEngine.scrollV},set_scrollV:function(a){a>this.__textEngine.maxScrollV&& (a=this.__textEngine.maxScrollV);1>a&&(a=1);a!=this.__textEngine.scrollV&&(this.__dirty=!0);return this.__textEngine.scrollV=a},get_selectable:function(){return this.__textEngine.selectable},set_selectable:function(a){a!=this.__textEngine.selectable&&this.get_type()==ce.INPUT&&(null!=this.stage&&this.stage.get_focus()==this?this.__startTextInput():a||this.__stopTextInput());return this.__textEngine.selectable=a},get_selectionBeginIndex:function(){return y["int"](Math.min(this.__caretIndex,this.__selectionIndex))}, get_selectionEndIndex:function(){return y["int"](Math.max(this.__caretIndex,this.__selectionIndex))},get_sharpness:function(){return this.__textEngine.sharpness},set_sharpness:function(a){a!=this.__textEngine.sharpness&&(this.__dirty=!0);return this.__textEngine.sharpness=a},get_text:function(){return this.__textEngine.text},set_text:function(a){if(this.__isHTML||this.__textEngine.text!=a)this.__layoutDirty=this.__dirty=!0;else return a;1=this._formats.length)return!1;for(var b=!1,c=0,d=this._formats;c=this._formats.length)return!1; for(var b=!1,c=0,d=this._formats;c=this._formats.length)return null;for(var b=null,c=0,d=this._formats;c=this._formats.length)return null;for(var b=null,c=0,d=this._formats;c=this._formats.length)){var b= !1;if(null!=a._type&&""!=a._type&&0=this._formats.length)){for(;0=a._beginIndex&&(c=0),a._beginIndex>=this.get_length()&&(c=this.get_length())),-1!=a._endIndex&&(0>=a._endIndex&&(b=0),a._endIndex>=this.get_length()&&(b=this.get_length())),La.prototype.setTextFormat.call(this,a._format,c,b)},__class__:ge});var Tb=function(a,b,c){null==b&&(b=0);null==a&&(a=0);ge.call(this);this.set_scaleX(1);this.set_scaleY(1);this._width=a;this._height=b;Y.getInstance();this.focusRect=!1;this.set_selectable(!1);this.mouseEnabled=!1;this.set_tabEnabled(!1);this.set_border(!1); this.set_borderColor(11184810);this.set_background(!1);this.set_backgroundColor(15592941);this.set_textColor(0);this.set_text("label");this.set_type(ce.DYNAMIC);this.set_autoSize(Ka.LEFT);this.set_autoSize(Ka.NONE);this.del_positionRorB();mk.initParameters();this.addEventListener(J.ADDED_TO_STAGE,k(this,this.onAddedToStage));this.addEventListener(J.REMOVED_FROM_STAGE,k(this,this.onRemoveFromStage));null!=c&&c.addChild(this)};g["first.face.BaseLabel"]=Tb;Tb.__name__=["first","face","BaseLabel"];Tb.__super__= ge;Tb.prototype=t(ge.prototype,{_width:null,_height:null,_right:null,_bottom:null,drawSprite:function(a,b){},stageBounds:function(){return this.getBounds(this.stage)},resize:function(a,b){this.set_size(a,b)},getTextWidth:function(){var a=this.getMainTextFormat(),b=this.get_text();if(null==b||""==b)b="g";return wh.measureString(b,a).width},getTextHeight:function(){var a=this.getMainTextFormat(),b=this.get_text();if(null==b||""==b)b="BbGg";return wh.measureString(b,a).height},enable_mouse:function(a){this.mouseEnabled= a},onAddedToStage:function(a){this.removeEventListener(J.ADDED_TO_STAGE,k(this,this.onAddedToStage));this.onAddedToStageCall(a);this.stage.addEventListener(J.RESIZE,k(this,this.onStageResize));this.onStageResize(null)},onAddedToStageCall:function(a){},onStageResize:function(a){},onRemoveFromStage:function(a){this.onRemoveFromStageCall(a)},onRemoveFromStageCall:function(a){},removeAllChildren:function(){},destroy:function(){this.removeAllChildren();null!=this.parent&&(this.parent.removeChild(this), null!=this.stage&&(this.stage.removeEventListener(J.RESIZE,k(this,this.onStageResize)),this.removeEventListener(J.REMOVED_FROM_STAGE,k(this,this.onRemoveFromStage))))},front:function(){return this.set_front()},set_front:function(){null!=this.parent&&this.parent.get_numChildren()-1!=this.parent.getChildIndex(this)&&this.parent.setChildIndex(this,this.parent.get_numChildren()-1);return this},center:function(){return this.set_center()},set_center:function(){if(null==this.parent)return this;var a;try{a= m.__cast(this.parent,Tb)}catch(b){G.lastException=b,b instanceof q&&(b=b.val),a=null}if(null!=a&&0!=a._width&&0!=a._height)return this.set_move((a._width-this._width)/2,(a._height-this._height)/2),this;null!=this.parent&&0!=this.parent.get_width()&&0!=this.parent.get_height()&&this.set_move((this.parent.get_width()-this._width)/2,(this.parent.get_height()-this._height)/2);return this},back:function(){return this.set_back()},set_back:function(){null!=this.parent&&0!=this.parent.getChildIndex(this)&& this.parent.setChildIndex(this,0);return this},get_left:function(){return this.get_x()},set_left:function(a){this.set_x(a);return a},get_top:function(){return this.get_y()},set_top:function(a){this.set_y(a);return a},get_position:function(){return new Q(this.get_x(),this.get_y())},set_position:function(a){this.set_move(a.x,a.y);return a},move:function(a,b){return this.set_move(a,b)},set_move:function(a,b){this.set_x(Math.round(a));this.set_y(Math.round(b));this.fix_positionRorB();return this},get_right:function(){return this.get_x()+ this._width},set_right:function(a){this._right=a;isNaN(this._right)||0==this._right||this.set_x(this._right-this._width);this.draw();return a},get_bottom:function(){return this.get_y()+this._height},set_bottom:function(a){this._bottom=a;isNaN(this._bottom)||0==this._bottom||this.set_y(this._bottom-this._height);this.draw();return a},size:function(a,b){this.set_size(a,b)},set_size:function(a,b){this._width=a;this._height=b;ge.prototype.set_width.call(this,this._width);ge.prototype.set_height.call(this, this._height);this.fix_positionRorB();this.draw()},fix_positionLorT:function(){isNaN(this._right)||0==this._right||this.set_x(this._right-this._width);isNaN(this._bottom)||0==this._bottom||this.set_y(this._bottom-this._height)},fix_positionRorB:function(){isNaN(this._right)||0==this._right||(this._right=this.get_x()+this._width);isNaN(this._bottom)||0==this._bottom||(this._bottom=this.get_y()+this._height)},del_positionRorB:function(){this._right=this._bottom=0},draw:function(){this.fix_positionLorT(); this.drawSprite(this._width,this._height)},set_x:function(a){ge.prototype.set_x.call(this,a);return a},set_y:function(a){ge.prototype.set_y.call(this,a);return a},get_width:function(){return this._width},set_width:function(a){this._width=a;ge.prototype.set_width.call(this,this._width);isNaN(this._right)||0==this._right||(this._right=this.get_x()+this._width);this.draw();return a},get_height:function(){return this._height},set_height:function(a){this._height=a;ge.prototype.set_height.call(this,this._height); isNaN(this._bottom)||0==this._bottom||(this._bottom=this.get_y()+this._height);this.draw();return a},set_text:function(a){ge.prototype.set_text.call(this,a);this.draw();return a},set_htmlText:function(a){ge.prototype.set_htmlText.call(this,a);this.draw();return a},appendText:function(a){ge.prototype.appendText.call(this,a);this.draw()},__class__:Tb,__properties__:t(ge.prototype.__properties__,{set_position:"set_position",get_position:"get_position",set_bottom:"set_bottom",get_bottom:"get_bottom", set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_top:"set_top",get_top:"get_top"})});var Xp=function(a,b,c,d){null==d&&(d=-1);null==c&&(c=-1);null==a&&(a="");this._beginIndex=this._endIndex=-1;this._type="";this._type=a;this._format=b;this._beginIndex=c;this._endIndex=d};g["first.face.BaseTextFormat"]=Xp;Xp.__name__=["first","face","BaseTextFormat"];Xp.prototype={_type:null,_format:null,_beginIndex:null,_endIndex:null,__class__:Xp};var cm=function(a,b,c){null== b&&(b=0);null==a&&(a=0);Tb.call(this,a,b,c);Y.getInstance();this.set_selectable(!0);this.mouseEnabled=!0;this.set_tabEnabled(!0);this.set_text("text inupt");this.set_type(ce.INPUT);this.set_autoSize(Ka.NONE);this.set_autoSize(Ka.LEFT)};g["first.face.BaseTextField"]=cm;cm.__name__=["first","face","BaseTextField"];cm.__super__=Tb;cm.prototype=t(Tb.prototype,{resize:function(a,b){Tb.prototype.resize.call(this,a,b)},onAddedToStageCall:function(a){Tb.prototype.onAddedToStageCall.call(this,a);this.set_size(0== this._width?120:this._width,0==this._height?22:this._height)},__class__:cm});var Qg=function(a,b,c,d,e){this._flipSound=this._flipSoundScale=this._dataHandler=null;this._isFlipSound=!0;this._isSoundOn=this._isScalePlay=!1;this._initFunc=this._pageFunc=this._resizeFunc=null;this._hotSpotClicked=!1;this._scaleRandom=this._scalePageTilt=0;this._isAuto=this._isBottomRight=!1;this._shadowHideTweenTime=0;this._flipTweenTime=.4;this._spriteHasTest=this._spriteHasPoints=this._isShadowIn=!1;this._stageCachedX= this._stageCachedY=0;this._flipToLeftOrRight="f";this._isInit=this._isDown=this._isOver=this._isReady=!1;U.call(this);this.set_visible(!1);this._isReady=!0;this._width=a;this._height=b;this._pageWidth=a;this._pageHeight=b;this._initFunc=e;this._pageFunc=d;this._totalPageCount=this._realPageCount=0;this._initPageIndex=1;this._changePageIndex=this._currentPageIndex=this._targetPageIndex=0;this._isSoundOn=!0;this._isScalePlay=!1;this._flipSprites=new F;this.addChild(this._flipSprites);this._layerSprites= new F;this.addChild(this._layerSprites);this._bookPages=[];this._gotoPages=[];this._leftPapers=[];this._rightPapers=[];this._fp=new Q;this._fp.x=this._pageWidth;this._fp.y=this._pageHeight;this._widthxwidth=this._pageWidth*this._pageWidth;this.createShadowObjects();this._dataHandler=new Yp(this);this._hsContainer=new F;this.addChild(this._hsContainer);this._hsSprites=new fa;this._hsContainer.set_alpha(.8);this.createHotSpotSprite(this._pageWidth,this._pageHeight,"TL");this.createHotSpotSprite(this._pageWidth, this._pageHeight,"TR");this.createHotSpotSprite(this._pageWidth,this._pageHeight,"BL");this.createHotSpotSprite(this._pageWidth,this._pageHeight,"BR");this._currentHotSpot=this._hsSprites.get("BR");null!=this._initFunc&&this._initFunc(this);this.addEventListener(J.ENTER_FRAME,k(this,this.onEnterFrame));this.playSoundPf()};g["first.flipbook.FlipBase"]=Qg;Qg.__name__=["first","flipbook","FlipBase"];Qg.__super__=U;Qg.prototype=t(U.prototype,{_fp:null,_drapPoint:null,_pageWidth:null,_pageHeight:null, _widthxwidth:null,_isInit:null,_isDown:null,_isOver:null,_isReady:null,_realPageCount:null,_totalPageCount:null,_initPageIndex:null,_targetPageIndex:null,_currentPageIndex:null,_changePageIndex:null,_flipSprites:null,_layerSprites:null,_bookPages:null,_leftPapers:null,_rightPapers:null,_lastPaper:null,_lastPageIndex:null,_currentPaper:null,_jumpPapersNumber:null,_flipToLeftOrRight:null,_stageCachedX:null,_stageCachedY:null,_circlePointTL:null,_circlePointTR:null,_circlePointBL:null,_circlePointBR:null, _spriteHasTest:null,_spriteHasPoints:null,_spriteTest:null,_spriteTestMasker:null,_spriteTestMasker_mc:null,_isShadowIn:null,_shadowFlip:null,_shadowFlipMasker:null,_shadowFlipMasker_mc:null,_shadowRect:null,_shadowBottom:null,_shadowRectMasker:null,_shadowBottomMasker:null,_flipTweenTime:null,_shadowHideTweenTime:null,_isAuto:null,_isBottomRight:null,_gotoPages:null,_scaleRandom:null,_scalePageTilt:null,_currentCor:null,_hsContainer:null,_hsSprites:null,_currentHotSpot:null,_currentOverHotSpot:null, _hotSpotClicked:null,_hotSpotCor:null,_hotSpotToCor:null,_hotSpotToIndex:null,_hotSpotPaper:null,_initFunc:null,_pageFunc:null,_resizeFunc:null,_isSoundOn:null,_isScalePlay:null,_isFlipSound:null,_flipSound:null,_flipSoundScale:null,playSoundPf:function(){if(this._isScalePlay)this.playSoundScale();else{var a=Yb.getInstance();if(0!=Y.getInstance().get(B.ISSOUNDON)&&0!=this._isSoundOn&&0!=this._isFlipSound)try{if(null!=this._flipSound)this._flipSound.pause(),this._flipSound.currentTime=0,this._flipSound.play(); else{var b,c=a.getTemplateSourceUrl(wa.FLIPBOOKSOUND_PF2);b=new mc(c);var d;d=window.document.createElement("audio");d.src=b.url;d.load();this._flipSound=d;d.play()}}catch(e){G.lastException=e,e instanceof q&&(e=e.val)}}},playSoundScale:function(){var a=Yb.getInstance();if(0!=Y.getInstance().get(B.ISSOUNDONSAL)&&0!=this._isSoundOn&&0!=this._isFlipSound)try{if(null!=this._flipSoundScale)this._flipSoundScale.pause(),this._flipSoundScale.currentTime=0,this._flipSoundScale.play();else{var b,c=a.getTemplateSourceUrl(wa.FLIPBOOKSOUND_PF1); b=new mc(c);var d;d=window.document.createElement("audio");d.src=b.url;d.load();this._flipSoundScale=d;d.play()}}catch(e){G.lastException=e,e instanceof q&&(e=e.val)}},_dataHandler:null,getInitPageIndex:function(){return this._initPageIndex},getCurrentPageIndex:function(){return this._currentPageIndex},getTotalPageCount:function(){return this._totalPageCount},getRealPageCount:function(){return this._realPageCount},getRealCurrentPageIndex:function(){return this._currentPageIndex},isFirstPage:function(){return 0== this.getCurrentPageIndex()},isFirst2Page:function(){return 2==this.getCurrentPageIndex()},isLastPage:function(){return this.getCurrentPageIndex()==this.getTotalPageCount()},isLast2Page:function(){return this.getCurrentPageIndex()==this.getTotalPageCount()-2},createShadowFMasker:function(){var a=new U,b=new U;b.set_alpha(.4);b.get_graphics().beginFill(255,.4);b.get_graphics().drawRect(0,0,100,100);b.get_graphics().endFill();a.addChild(b);b.set_x(0);b.set_y(-100);return b},createShadowFRMasker:function(){var a= new U;a.set_alpha(.4);a.get_graphics().beginFill(65280,.4);a.get_graphics().drawRect(-50,0,100,100);a.get_graphics().endFill();return a},showTestObjects:function(a){this._spriteHasTest&&null!=this._spriteTest&&(this._spriteTest.set_visible(a),this._spriteHasPoints&&(this._circlePointTL.set_visible(a),this._circlePointTR.set_visible(a),this._circlePointBL.set_visible(a),this._circlePointBR.set_visible(a)))},createTestPoints:function(){this._spriteHasTest&&this._spriteHasPoints&&(this._circlePointTL= new ua(10,10,65280,!0),this.addChild(this._circlePointTL),this._circlePointTL._isEllipse=!1,this._circlePointTR=new ua(10,10,255,!0),this.addChild(this._circlePointTR),this._circlePointTR._isEllipse=!1,this._circlePointBL=new ua(10,10,255,!0),this.addChild(this._circlePointBL),this._circlePointBL._isEllipse=!1,this._circlePointBR=new ua(10,10,65535,!0),this.addChild(this._circlePointBR),this._circlePointBR._isEllipse=!1,this._circlePointTL.set_visible(!1),this._circlePointTR.set_visible(!1),this._circlePointBL.set_visible(!1), this._circlePointBR.set_visible(!1))},createTestObjects:function(){if(this._spriteHasTest){this._spriteTest=new ua(this._pageWidth,this._pageHeight,16719647,!0);this._spriteTest._isFill=!0;this._spriteTest._isStroke=!1;this._spriteTest._fillAlpha=.2;this.addChild(this._spriteTest);var a=new U,b=new U;b.set_alpha(.4);b.get_graphics().beginFill(16711935);b.get_graphics().drawRect(0,0,100,100);b.get_graphics().endFill();a.addChild(b);b.set_x(0);b.set_y(-100);this._spriteTestMasker=a;this._spriteTestMasker_mc= b;this.addChild(this._spriteTest);this.addChild(this._spriteTestMasker);this._spriteTestMasker_mc.set_width(this._pageWidth);this._spriteTestMasker_mc.set_height(this._pageHeight+1);this._spriteTest.enable_mouse(!1);this._spriteTestMasker.enable_mouse(!1);this._spriteTestMasker_mc.enable_mouse(!1);this._spriteTest.set_visible(!1)}},createShadowObjects:function(){var a=new U,b=null,b=new ua(this._pageWidth,this._pageHeight);b._useMask=!0;b.set_fillStyle(255);b._fillAlpha=.2;a.addChild(b);b.set_x(0); b.set_y(-100);this._shadowFlipMasker_mc=b;this._shadowFlipMasker=new ua(100,100);this._shadowFlipMasker._useMask=!0;this._shadowFlipMasker.set_width(this._pageWidth);this._shadowFlipMasker.set_height(this._pageHeight);this._shadowFlipMasker.maskSpr.set_x(0);this._shadowFlipMasker.maskSpr.set_y(0);this._shadowFlipMasker.set_fillStyle(255);this._shadowFlipMasker._fillAlpha=.2;this._shadowFlip=new dm;this._shadowFlip.set_height(Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight)+ 10);this._shadowRect=new em;this._shadowRect.set_height(Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight)+10);this._shadowRectMasker=new ua(100,100);this._shadowRectMasker._useMask=!0;this._shadowRectMasker.set_width(2*this._pageWidth);this._shadowRectMasker.set_height(this._pageHeight);this._shadowRectMasker.maskSpr.set_x(-this._pageWidth);this._shadowRectMasker.maskSpr.set_y(-0);this._shadowRectMasker.set_fillStyle(0);this._shadowRectMasker._fillAlpha=.2;this._shadowBottom= new fm;this._shadowBottom.set_height(Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight)+10);this._shadowBottomMasker=new ua(100,100);this._shadowBottomMasker._useMask=!0;this._shadowBottomMasker.set_width(2*this._pageWidth);this._shadowBottomMasker.set_height(this._pageHeight);this._shadowBottomMasker.maskSpr.set_x(-this._pageWidth);this._shadowBottomMasker.maskSpr.set_y(-0);this._shadowBottomMasker.set_fillStyle(0);this._shadowBottomMasker._fillAlpha=.2;this._shadowBottom.enable_mouse(!1); this._shadowBottomMasker.enable_mouse(!1);this.addChild(this._shadowRect);this.addChild(this._shadowRectMasker);this._shadowRect.enable_mouse(!1);this._shadowRectMasker.enable_mouse(!1);this.addChild(this._shadowFlip);this.addChild(this._shadowFlipMasker);this._shadowFlip.enable_mouse(!1);this._shadowFlipMasker.enable_mouse(!1);this._shadowFlip.set_mask(this._shadowFlipMasker.realMask);this._shadowRect.set_mask(this._shadowRectMasker.realMask);this._shadowBottom.set_mask(this._shadowBottomMasker.realMask); this._shadowFlipMasker_mc.set_width(this._pageWidth);this._shadowFlipMasker_mc.set_height(this._pageHeight+1);this._shadowFlipMasker_mc.enable_mouse(!1);a=Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight);this._shadowFlip.set_height(a);this._shadowRect.set_height(a);this._shadowBottom.set_height(a);this._shadowRectMasker.set_x(0);this._shadowRectMasker.set_y(0);this._shadowRectMasker.set_width(2*this._pageWidth);this._shadowRectMasker.set_height(this._pageHeight);this._shadowBottomMasker.set_x(0); this._shadowBottomMasker.set_y(0);this._shadowBottomMasker.set_width(2*this._pageWidth);this._shadowBottomMasker.set_height(this._pageHeight);this._shadowFlip.set_visible(!1);this._shadowRect.set_visible(!1);this._shadowBottom.set_visible(!1);this.createTestObjects();this.createTestPoints()},resetHotSpotVisible:function(){0==lb.getInstance()._isSelectTextMode&&(this._hsSprites.get("TL").visible=!0,this._hsSprites.get("BL").visible=!0,this._hsSprites.get("TR").visible=!0,this._hsSprites.get("BR").visible= !0,0!=this.isFirstPage()&&(this._hsSprites.get("TL").visible=!1,this._hsSprites.get("BL").visible=!1),0!=this.isLastPage()&&(this._hsSprites.get("TR").visible=!1,this._hsSprites.get("BR").visible=!1))},createHotSpotSprite:function(a,b,c){var d=null;a=d=new Jb(a,b,c);this._hsSprites.set(c,a);a;d.addEventListener(A.CLICK,k(this,this.onHotSpotClick));d.addEventListener(A.MOUSE_DOWN,k(this,this.onHotSpotMouseEvent));d.addEventListener(A.MOUSE_OVER,k(this,this.onHotSpotMouseEvent));d.addEventListener(A.MOUSE_OUT, k(this,this.onHotSpotMouseEvent));d.addEventListener(A.MOUSE_MOVE,k(this,this.onHotSpotMouseEvent));d.addEventListener(A.MOUSE_UP,k(this,this.onHotSpotMouseEvent));this._hsContainer.addChild(d);return d},initBookPapers:function(a){return this.getTotalPageCount()},onAddedToStageCall:function(a){U.prototype.onAddedToStageCall.call(this,a);this.stage.addEventListener(A.MOUSE_UP,k(this,this.onStageMouseUp));this.stage.doubleClickEnabled=!0},onRemoveFromStage:function(a){U.prototype.onRemoveFromStage.call(this, a);this.get_graphics().clear()},onRemoveFromStageCall:function(a){this.stage.removeEventListener(A.MOUSE_UP,k(this,this.onStageMouseUp));U.prototype.onRemoveFromStageCall.call(this,a)},onStageMouseUp:function(a){this.onHotSpotMouseUp(a)},onFlipBookMouseDown:function(a){},onStageDoubleClick:function(a){},onHotSpotClick:function(a){this._hotSpotClicked=!0},onHotSpotMouseEvent:function(a){if(this._isReady&&!this._isAuto)switch(a.type){case "mouseUp":this.onHotSpotMouseUp(a);break;case "mouseDown":this.onHotSpotMouseDown(a); break;case "mouseOver":case "mouseMove":this.onHotSpotMouseMove(a);break;case "mouseOut":this.onHotSpotMouseOut(a)}},onInitCall:function(){this.set_visible(!0);this._isReady=!0;this._currentPaper=null},radiansToDegrees:function(a){return 180*a/Math.PI},degreesToRadians:function(a){return Math.PI/180*a},getAngleByPoint:function(a,b,c,d){return Math.atan2(d-b,c-a)},getDisByPoint:function(a,b,c,d){a=Math.abs(a-c);b=Math.abs(b-d);return Math.sqrt(a*a+b*b)},getPointByAngleDis:function(a,b,c,d){a+=d*Math.cos(c); b+=d*Math.sin(c);return new Q(a,b)},updateFpPosition:function(){var a=this.get_mouseX(),b=this.get_mouseY();!this._isDown&&!this._isOver||this._isAuto||(this._fp.x+=.6*(a-this._fp.x),this._fp.y+=.6*(b-this._fp.y))},updateTestProperty:function(){this._spriteHasTest&&(null!=this._currentPaper&&null==this._currentPaper.get_page()?this.showTestObjects(!1):null!=this._currentPaper&&(this._spriteTest.set_x(this._currentPaper._lp.get_point().x),this._spriteTest.set_y(this._currentPaper._lp.get_point().y), this._spriteTest.set_rotation(2*this._currentPaper.get_mask_rotation()),this._spriteTestMasker.set_x(this._currentPaper._lp.get_point().x),this._spriteTestMasker.set_y(this._currentPaper._lp.get_point().y),this._spriteTestMasker.set_rotation(2*this._currentPaper.get_mask_rotation()),this._spriteTest.set_scaleX(this._spriteTest.set_scaleY(1)),this._spriteTestMasker.set_scaleX(this._shadowFlipMasker.set_scaleY(1)),this._spriteTestMasker_mc.set_x(this._currentPaper.get_page().get_x()),this._spriteTestMasker_mc.set_y(this._currentPaper.get_page().get_y()), "TL"==this._currentCor&&(this._spriteTest.set_scaleX(-1),this._spriteTestMasker.set_scaleX(-1)),"BL"==this._currentCor&&(this._spriteTest.set_scaleX(-1),this._spriteTestMasker.set_scaleX(-1),this._spriteTest.set_scaleY(-1),this._spriteTestMasker.set_scaleY(-1)),"BR"==this._currentCor&&(this._spriteTest.set_scaleY(-1),this._spriteTestMasker.set_scaleY(-1)),this.updatePointsProperty()))},updatePointsProperty:function(){if(this._spriteHasTest&&this._spriteHasPoints&&null!=this._currentPaper){var a=this._currentPaper._lp.get_point().x, b=this._currentPaper._lp.get_point().y,c=2*this._currentPaper.get_mask_rotation();if("TL"==this._currentCor){var d=this.getPointByAngleDis(a,b,Math.PI/180*(c+180),this._pageWidth);this._circlePointTL.set_x(d.x);this._circlePointTL.set_y(d.y);this._circlePointTL.set_rotation(2*this._currentPaper.get_mask_rotation());d=new Q(a,b);this._circlePointTR.set_x(d.x-this._circlePointTR._width);this._circlePointTR.set_y(d.y);this._circlePointTR.set_rotation(2*this._currentPaper.get_mask_rotation());var d=this.getAngleByPoint(0, 0,-this._pageWidth,-this._pageHeight),d=this.radiansToDegrees(d),d=Math.PI/180*(c-d),e=Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight),d=this.getPointByAngleDis(a,b,d,e);this._circlePointBL.set_x(d.x);this._circlePointBL.set_y(d.y-this._circlePointBL._height);this._circlePointBL.set_rotation(2*this._currentPaper.get_mask_rotation());d=this.getPointByAngleDis(a,b,Math.PI/180*(c+90),this._pageHeight);this._circlePointBR.set_x(d.x-this._circlePointBR._width);this._circlePointBR.set_y(d.y- this._circlePointBR._height);this._circlePointBR.set_rotation(2*this._currentPaper.get_mask_rotation())}"TR"==this._currentCor&&(d=new Q(a,b),this._circlePointTL.set_x(d.x),this._circlePointTL.set_y(d.y),this._circlePointTL.set_rotation(2*this._currentPaper.get_mask_rotation()),d=this.getPointByAngleDis(a,b,Math.PI/180*c,this._pageWidth),this._circlePointTR.set_x(d.x-this._circlePointTR._width),this._circlePointTR.set_y(d.y),this._circlePointTR.set_rotation(2*this._currentPaper.get_mask_rotation()), d=this.getPointByAngleDis(a,b,Math.PI/180*(c+90),this._pageHeight),this._circlePointBL.set_x(d.x),this._circlePointBL.set_y(d.y-this._circlePointBL._height),this._circlePointBL.set_rotation(2*this._currentPaper.get_mask_rotation()),d=this.getAngleByPoint(0,0,this._pageWidth,this._pageHeight),d=this.radiansToDegrees(d),d=Math.PI/180*(c+d),e=Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight),d=this.getPointByAngleDis(a,b,d,e),this._circlePointBR.set_x(d.x-this._circlePointBR._width), this._circlePointBR.set_y(d.y-this._circlePointBR._height),this._circlePointBR.set_rotation(2*this._currentPaper.get_mask_rotation()));"BL"==this._currentCor&&(d=this.getAngleByPoint(0,0,-this._pageWidth,-this._pageHeight),d=this.radiansToDegrees(d),d=Math.PI/180*(c+d),e=Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight),d=this.getPointByAngleDis(a,b,d,e),this._circlePointTL.set_x(d.x),this._circlePointTL.set_y(d.y),this._circlePointTL.set_rotation(2*this._currentPaper.get_mask_rotation()), d=this.getPointByAngleDis(a,b,Math.PI/180*(c-90),this._pageHeight),this._circlePointTR.set_x(d.x-this._circlePointTR._width),this._circlePointTR.set_y(d.y),this._circlePointTR.set_rotation(2*this._currentPaper.get_mask_rotation()),d=this.getPointByAngleDis(a,b,Math.PI/180*(c+180),this._pageWidth),this._circlePointBL.set_x(d.x),this._circlePointBL.set_y(d.y-this._circlePointBL._height),this._circlePointBL.set_rotation(2*this._currentPaper.get_mask_rotation()),d=new Q(a,b),this._circlePointBR.set_x(d.x- this._circlePointBR._width),this._circlePointBR.set_y(d.y-this._circlePointBR._height),this._circlePointBR.set_rotation(2*this._currentPaper.get_mask_rotation()));"BR"==this._currentCor&&(d=this.getPointByAngleDis(a,b,Math.PI/180*(c-90),this._pageHeight),this._circlePointTL.set_x(d.x),this._circlePointTL.set_y(d.y),this._circlePointTL.set_rotation(2*this._currentPaper.get_mask_rotation()),d=this.getAngleByPoint(0,0,this._pageWidth,this._pageHeight),d=this.radiansToDegrees(d),d=Math.PI/180*(c-d),e= Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight),d=this.getPointByAngleDis(a,b,d,e),this._circlePointTR.set_x(d.x-this._circlePointTR._width),this._circlePointTR.set_y(d.y),this._circlePointTR.set_rotation(2*this._currentPaper.get_mask_rotation()),d=new Q(a,b),this._circlePointBL.set_x(d.x),this._circlePointBL.set_y(d.y-this._circlePointBL._height),this._circlePointBL.set_rotation(2*this._currentPaper.get_mask_rotation()),a=this.getPointByAngleDis(a,b,Math.PI/180*c,this._pageWidth), this._circlePointBR.set_x(a.x-this._circlePointBR._width),this._circlePointBR.set_y(a.y-this._circlePointBR._height),this._circlePointBR.set_rotation(2*this._currentPaper.get_mask_rotation()))}},updateShadowProperty:function(){if(null!=this._currentPaper&&null==this._currentPaper.get_page())this._shadowFlip.set_visible(!1),this._shadowRect.set_visible(!1),this._shadowBottom.set_visible(!1);else if(null!=this._currentPaper){var a=this._pageWidth/350,b=this._currentPaper._lp.get_point().x,c=this._currentPaper._lp.get_point().y, d=2*this._currentPaper.get_mask_rotation(),e=0,f=0;"TL"==this._currentCor&&(e=new Q(b,c),f=this.getPointByAngleDis(b,c,Math.PI/180*(d+90),this._pageHeight),e=e.x,f=f.x);"TR"==this._currentCor&&(e=new Q(b,c),f=this.getPointByAngleDis(b,c,Math.PI/180*(d+90),this._pageHeight),e=e.x,f=f.x);"BL"==this._currentCor&&(e=this.getPointByAngleDis(b,c,Math.PI/180*(d-90),this._pageHeight),f=new Q(b,c),e=e.x,f=f.x);"BR"==this._currentCor&&(e=this.getPointByAngleDis(b,c,Math.PI/180*(d-90),this._pageHeight),c=new Q(b, c),e=e.x,f=c.x);Math.max(.5,Math.abs(this._shadowRect.get_x())/this._pageWidth+.2);c=a;b=Math.min(1.5,Math.max(.1,Math.abs(this._pageWidth-Math.abs(b))/(2*this._shadowBottom.imgWidth)));0>=e&&0>=f&&("TL"==this._currentCor||"BL"==this._currentCor)&&(b=Math.max(e,f),d=Math.min(1,Math.max(.2,Math.abs(this._pageWidth-Math.abs(b))/this._pageWidth)),c=a*Math.max(.3,d),a*=d,b=Math.min(1.5,Math.max(.1,Math.abs(this._pageWidth-Math.abs(b))/(2.8*this._shadowBottom.imgWidth))));0<=e&&0<=f&&("TR"==this._currentCor|| "BR"==this._currentCor)&&(b=Math.min(e,f),e=Math.min(1,Math.max(.2,Math.abs(this._pageWidth-Math.abs(b))/this._pageWidth)),c=a*Math.max(.3,e),a*=e,b=Math.min(1.5,Math.max(.1,Math.abs(this._pageWidth-Math.abs(b))/(2.8*this._shadowBottom.imgWidth))));this._shadowFlip.set_x(this._currentPaper.get_mask_x());this._shadowFlip.set_y(this._currentPaper.get_mask_y());this._shadowFlip.set_rotation(this._currentPaper.get_mask_rotation());this._shadowFlipMasker.set_x(this._currentPaper._lp.get_point().x);this._shadowFlipMasker.set_y(this._currentPaper._lp.get_point().y); this._shadowFlipMasker.maskSpr.set_rotation(2*this._currentPaper.get_mask_rotation());this._shadowFlip.set_scaleX(-1*c);0!=this._isShadowIn&&this._shadowFlip.set_alpha(Math.min(.8,Math.max(.4,Math.abs(this._shadowFlip.get_x())/this._pageWidth+.3)));this._shadowRect.set_x(this._currentPaper.get_mask_x());this._shadowRect.set_y(this._currentPaper.get_mask_y());this._shadowRect.set_rotation(this._currentPaper.get_mask_rotation());this._shadowRect.set_scaleX("right"==this._currentPaper._paperDir?a:-1* a);0!=this._isShadowIn&&this._shadowRect.set_alpha(Math.min(.7,Math.max(.3,Math.abs(this._shadowFlip.get_x())/this._pageWidth+.2)));this._shadowBottom.set_x(this._currentPaper.get_mask_x());this._shadowBottom.set_y(this._currentPaper.get_mask_y());this._shadowBottom.set_rotation(this._currentPaper.get_mask_rotation());this._shadowBottom.set_scaleX("right"==this._currentPaper._paperDir?-1*b:b);e=Math.min(.3,Math.max(.02,Math.abs(this._shadowBottom.get_x())/this._pageWidth-.05));0!=this._isShadowIn&& this._shadowBottom.set_alpha(e);Math.min(.3,Math.max(.04,Math.abs(this._shadowBottom.get_x())/this._pageWidth-.05));this._currentPaper.showFillAlpha(e);this._shadowFlipMasker_mc.set_x(this._currentPaper.get_page().get_x());this._shadowFlipMasker_mc.set_y(this._currentPaper.get_page().get_y());"TL"==this._currentCor&&(this._shadowRect.set_scaleX(-1*a),this._shadowRect.set_rotation(this._shadowRect.get_rotation()+180),this._shadowBottom.set_scaleX(b),this._shadowBottom.set_rotation(this._shadowBottom.get_rotation()+ 180),this._shadowFlipMasker.set_width(this._pageHeight),this._shadowFlipMasker.set_height(this._pageWidth),this._shadowFlipMasker.maskSpr.set_rotation(this._shadowFlipMasker.maskSpr.get_rotation()+90),this._shadowFlipMasker_mc.resize(this._pageHeight+1,this._pageWidth+1));"TR"==this._currentCor&&(this._shadowRect.set_scaleX(a),this._shadowRect.set_rotation(this._shadowRect.get_rotation()),this._shadowBottom.set_scaleX(-1*b),this._shadowBottom.set_rotation(this._shadowBottom.get_rotation()),this._shadowFlipMasker.set_width(this._pageWidth), this._shadowFlipMasker.set_height(this._pageHeight),this._shadowFlipMasker.maskSpr.set_rotation(this._shadowFlipMasker.maskSpr.get_rotation()),this._shadowFlipMasker_mc.resize(this._pageWidth+1,this._pageHeight+1));"BL"==this._currentCor&&(this._shadowRect.set_scaleX(-1*a),this._shadowRect.set_rotation(this._shadowRect.get_rotation()+180),this._shadowBottom.set_scaleX(b),this._shadowBottom.set_rotation(this._shadowBottom.get_rotation()+180),this._shadowFlipMasker.set_width(this._pageWidth),this._shadowFlipMasker.set_height(this._pageHeight), this._shadowFlipMasker.maskSpr.set_rotation(this._shadowFlipMasker.maskSpr.get_rotation()+180),this._shadowFlipMasker_mc.resize(this._pageWidth+1,this._pageHeight+1));"BR"==this._currentCor&&(this._shadowRect.set_scaleX(a),this._shadowRect.set_rotation(this._shadowRect.get_rotation()),this._shadowBottom.set_scaleX(-1*b),this._shadowBottom.set_rotation(this._shadowBottom.get_rotation()),this._shadowFlipMasker.set_width(this._pageHeight),this._shadowFlipMasker.set_height(this._pageWidth),this._shadowFlipMasker.maskSpr.set_rotation(this._shadowFlipMasker.maskSpr.get_rotation()- 90),this._shadowFlipMasker_mc.resize(this._pageHeight+1,this._pageWidth+1))}},fixShadowFlipRotation:function(){},onEnterFrame:function(a){null!=this._currentPaper&&(this.updateFpPosition(),this._currentPaper.Update(this._fp),1==this._isShadowIn&&(this.updateShadowProperty(),this.updateTestProperty()),0==this._isInit&&(this._isInit=!0,this.onInitCall()))},fpPositionChange:function(){0==this._isDown&&null!=this._currentPaper&&(this.updateFpPosition(),this._currentPaper.Update(this._fp),null!=this._currentPaper&& 0!=this._currentPaper.isHardStyle()||1!=this._isShadowIn||(this.updateShadowProperty(),this.updateTestProperty()))},doChangePage:function(){this.playSoundPf()},doPageChanged:function(a){this.updatePage(this.getCurrentPageIndex());this.resetHotSpotVisible()},sendPageWillChangeEvent:function(a){R.getInstance().dispatchEvent(new ja(v.FLIPBOOK_WILLCHANGE,new na(this,a,null)))},sendPageDidChangedEvent:function(a){R.getInstance().dispatchEvent(new ja(v.FLIPBOOK_DIDCHANGED,new na(this,a,null)))},getIndexPage:function(a){var b= null;if(!(1>a||a>this.getTotalPageCount())&&null!=this._bookPages&&this._bookPages.length>=a)b=this._bookPages[a-1];else return new cb;return b},updatePage:function(a){a=this.pageHandler(a);this.fillPageInfo(a)},fillPageInfo:function(a){null!=a&&null!=this._pageFunc&&this._pageFunc(a)},pageHandler:function(a){var b=null,b=this.getIndexPage(a);this.fillPageInfo(b);return b},onHotSpotMouseUp:function(a){this._isReady&&!this._isAuto&&(null!=this._currentHotSpot&&1==this._currentHotSpot.hitTestPoint(this.get_mouseX()+ this.get_x(),this.get_mouseY()+this.get_y())?(this._currentHotSpot==this._hsSprites.get("TL")||this._currentHotSpot==this._hsSprites.get("BL")?this.prev(!0,this._currentHotSpot==this._hsSprites.get("BL")):this._currentHotSpot!=this._hsSprites.get("TR")&&this._currentHotSpot!=this._hsSprites.get("BR")||this.next(!0,this._currentHotSpot==this._hsSprites.get("BR")),this._fp.x=this.get_mouseX(),this._fp.y=this.get_mouseY()):this._isDown&&(this._isDown=!1,this.gotoHotSpotPoint(this._currentHotSpot)))}, onHotSpotMouseDown:function(a){this._isReady&&!this._isAuto&&(this.fadeInShadow(),m.__instanceof(a.target,Jb)&&(a=a.target,a==this._hsSprites.get("TL")?0=this._fp.x?c==this._hsSprites.get("TR")? (c=this._hsSprites.get("TL"),this._leftPapers.push(this._rightPapers[0]),this._rightPapers.shift(),this.doChangePage()):c==this._hsSprites.get("BR")&&(c=this._hsSprites.get("BL"),this._leftPapers.push(this._rightPapers[0]),this._rightPapers.shift(),this.doChangePage()):c==this._hsSprites.get("TL")?(this._rightPapers.unshift(this._leftPapers[this._leftPapers.length-1]),this._leftPapers.splice(this._leftPapers.length-1,1),c=this._hsSprites.get("TR"),this.doChangePage()):c==this._hsSprites.get("BL")&& (this._rightPapers.unshift(this._leftPapers[this._leftPapers.length-1]),this._leftPapers.splice(this._leftPapers.length-1,1),c=this._hsSprites.get("TR"),this.doChangePage()),this._isReady=!1,S.stop(this._fp),a=function(){b.fadeOutShadow();b._isReady=!0;0this._fp.y&&this._currentPaper._lp._isTop||this._fp.y>this._pageHeight&&!this._currentPaper._lp._isTop)S.tween(this._fp,this._flipTweenTime/2,{x:c.get_x()}).ease(zd.get_easeOut()),S.tween(this._fp,this._flipTweenTime/2, {y:c.get_y()}).ease(aj.get_easeOut()).onComplete(a);else S.tween(this._fp,this._flipTweenTime/2,{x:c.get_x(),y:c.get_y()}).ease(zd.get_easeOut()).onComplete(a)},fadeInShadow:function(){this.sendFadeInShadowEvent();null!=this._currentPaper&&this._currentPaper.isHardStyle()?null!=this._currentPaper&&this._currentPaper.showFill(!0):(this._isShadowIn=!0,S.stop(this._shadowFlip),S.stop(this._shadowRect),S.stop(this._shadowBottom),S.tween(this._shadowFlip,.1,{alpha:1,visible:!0}).ease(zd.get_easeOut()), S.tween(this._shadowRect,.1,{alpha:.8,visible:!0}).ease(zd.get_easeOut()),S.tween(this._shadowBottom,.1,{alpha:.3,visible:!0}).ease(zd.get_easeOut()),this._shadowRect.set_visible(this._shadowFlip.set_visible(!0)),this._shadowBottom.set_visible(!0),null!=this._currentPaper&&this._currentPaper.showFill(!0),this.showTestObjects(!0))},fadeOutShadow:function(){this._isShadowIn=!1;S.stop(this._shadowFlip);S.stop(this._shadowRect);S.stop(this._shadowBottom);this._shadowFlip.set_alpha(this._shadowRect.set_alpha(Math.min(this._shadowFlip.get_alpha(), this._shadowRect.get_alpha())));S.tween(this._shadowRect,this._shadowHideTweenTime,{alpha:0,visible:!1}).ease(zd.get_easeOut());S.tween(this._shadowFlip,this._shadowHideTweenTime,{alpha:0,visible:!1}).ease(zd.get_easeOut());S.tween(this._shadowBottom,this._shadowHideTweenTime,{alpha:0,visible:!1}).ease(zd.get_easeOut());null!=this._currentPaper&&this._currentPaper.showFill(!1);this.showTestObjects(!1)},sendFadeInShadowEvent:function(){R.getInstance().dispatchEvent(new ja(v.FLIPBOOK_WILLFADEIN,new na(this, this._hotSpotToIndex,null)))},sendFadeOutShadowEvent:function(){R.getInstance().dispatchEvent(new ja(v.FLIPBOOK_WILLFADEOUT,new na(this,this.getCurrentPageIndex(),null)))},updatePageNumber:function(){this._changePageIndex=this.getCurrentPageIndex();this._currentPageIndex=2*this._leftPapers.length;0=a;){var b=null;1==a?b=this._hsSprites.get("TL"):2==a?b=this._hsSprites.get("TR"):3==a?b=this._hsSprites.get("BL"):4==a&& (b=this._hsSprites.get("BR"));if(null!=b&&1==b.hitTestPoint(this.get_mouseX()+this.get_x(),this.get_mouseY()+this.get_y()))return b==this._hsSprites.get("TL")?this._currentPaper.setCor("TL"):b==this._hsSprites.get("TR")?this._currentPaper.setCor("TR"):b==this._hsSprites.get("BL")?this._currentPaper.setCor("BL"):b==this._hsSprites.get("BR")&&this._currentPaper.setCor("BR"),this._fp.x=b.get_x(),this._fp.y=b.get_y(),b;a++}return null},autoUpdate:function(){this._fp.y=(this._isBottomRight?this._pageHeight: 0)-Math.sqrt(this._widthxwidth-this._fp.x*this._fp.x)*this._scaleRandom*(this._isBottomRight?1:-1)},autoCompleteL:function(){this._isDown=this._isAuto=!1;this.fadeOutShadow();this._isReady=!0;this._leftPapers.push(this._rightPapers[0]);this._rightPapers.shift();0b;)c=b++,c=0=c;)b=this.getIndexPage(d),this.fillPageInfo(b),--d;d=0;c=this.getTotalPageCount()+1;for(b=1;4>b;)d=b++,d=a+dthis.getCurrentPageIndex()&&(this._flipToLeftOrRight="f",--this._lastPageIndex,!(0>this._lastPageIndex))){this._lastPaper=this._rightPapers[this._lastPageIndex];this._jumpPapersNumber=(a-this.getCurrentPageIndex())/2;this._gotoPages=this._rightPapers.slice(0,this._jumpPapersNumber);for(a=1;a=this._lastPageIndex))){this._lastPaper=this._leftPapers[this._leftPapers.length-this._lastPageIndex];this._jumpPapersNumber=Math.abs((a-this.getCurrentPageIndex())/2);this._gotoPages=this._leftPapers.slice(this._leftPapers.length-this._lastPageIndex,this._lastPageIndex+1);for(a=1;aa&&(a=0),a>this.getTotalPageCount()&&(a=this.getTotalPageCount()),this.updatePage(a),this._lastPageIndex=y["int"](Math.abs((a-this.getCurrentPageIndex())/2)),a>this.getCurrentPageIndex()?(this._flipToLeftOrRight= "f",this.gotoPageL(a)):a=d)return 1;0==d%2&&0=c)return c;0==d%2&&d+3<=c?b=d+3:0==d%2&&d+2<=c?b=d+2:0==d%2&&d+1<=c&&(b=d+1);1==d%2&&d+2<= c?b=d+2:1==d%2&&d+1<=c&&(b=d+1)}return b},fixTargetByCor:function(a){var b=!0,c=this.getCurrentPageIndex(),d=this.fixTargetPageIndex(this.getTotalPageCount());1>=c&&("TL"==a||"BL"==a)?b=!1:c>=d&&("TR"==a||"BR"==a)&&(b=!1);return b},fixTargetPageIndex:function(a){var b=1,c=this.getTotalPageCount(),d=this.getCurrentPageIndex();ad?ab&&a<=this.getTotalPageCount()?(this._currentPaper=this._layerPapers.get("RT"),0==a%2?(this._layerPapers.get("RT").set_pageB(this.pageHandler(a)),this._layerPapers.get("RB").set_visible(athis._fp.x&&(a="TL",b=this.getIndexByCor(this._currentCor)):"BL"==this._currentCor? 0this._fp.x&&(a="BL",b=this.getIndexByCor(this._currentCor)),0!=this._isDown&&(this._isDown=!1,this.gotoHotSpotCor(a,b)))},onHotSpotMouseUp:function(a){var b="",c="",d=0;this.getCurrentPageIndex();this._isReady&&!this._isAuto&&(null!=a&&m.__instanceof(a.target,Jb)&&(this.fixHotSpotEvent(a),b=this._hotSpotCor,c=this._hotSpotToCor,d=this._hotSpotToIndex),this._isRightToLeft&&1==this._realPageCount%2&&this.convertCurrentPageIndex(d)> this._realPageCount-1&&("TL"==b||"BL"==b)||(this._isDown&&0!=this.fixTargetByCor(b)&&this._currentCor==b?m.__instanceof(a.target,Jb)&&(this._isOver=this._isDown=!1,this.gotoHotSpotCor(c,d)):this._isDown&&this._currentCor!=b&&(this.onStageMouseUp(a),this.onFlipBookMouseUpWithYoutube())))},onHotSpotMouseDown:function(a){var b="",c=0;this.getCurrentPageIndex();this._isReady&&!this._isAuto&&(null!=a&&m.__instanceof(a.target,Jb)&&(this.fixHotSpotEvent(a),b=this._hotSpotCor,c=this._hotSpotToIndex),this._isRightToLeft&& 1==this._realPageCount%2&&this.convertCurrentPageIndex(c)>this._realPageCount-1&&("TL"==b||"BL"==b)||this._isDown||0==this.fixTargetByCor(b)||!m.__instanceof(a.target,Jb)||(this._isDown=!0,this.setPapersCurrentPage(c),this._currentPaper.setCor(b),this._currentCor=b,this._isOver||this.fpGotoCor(b),this._isOver=!1,this.fadeInShadow(),this._layerSprites.setChildIndex(this._currentPaper,this._layerSprites.get_numChildren()-1),this._onHotSpot=!0,this.onHotSpotMouseOverWithYoutube()))},onHotSpotMouseMove:function(a){if(this._isReady&& !this._isAuto&&null!=a&&m.__instanceof(a.target,Jb))this.onHotSpotMouseOver(a)},onHotSpotMouseOver:function(a){var b="",c=0;this.getCurrentPageIndex();this.getTotalPageCount();this._isReady&&!this._isAuto&&(null!=a&&m.__instanceof(a.target,Jb)&&(this.fixHotSpotEvent(a),b=this._hotSpotCor,c=this._hotSpotToIndex),this._isRightToLeft&&1==this._realPageCount%2&&this.convertCurrentPageIndex(c)>this._realPageCount-1&&("TL"==b||"BL"==b)||this._isDown||this._isOver||0==this.fixTargetByCor(b)||!m.__instanceof(a.target, Jb)||(this._isOver=!0,this.onHotSpotMouseOverWithYoutube(),this.fpGotoCor(b),this._currentCor=b,this.setPapersCurrentPage(c),this._currentPaper.setCor(b),this.fadeInShadow(),this.fpPositionChange(),this._layerSprites.setChildIndex(this._currentPaper,this._layerSprites.get_numChildren()-1)))},onFlipBookMouseDownOverWithYoutube:function(){this._onHotSpot=!1;this.onHotSpotMouseOverWithYoutube()},onHotSpotMouseOverWithYoutube:function(){var a=this.getTotalPageCount(),b=this.convertCurrentPageIndex(this.getIndexByCor(this._currentCor)); if(this._isRightToLeft)switch(this._hotSpotCor){case "TL":this.convertCurrentPageIndex(a)!=b&&--b;break;case "BL":this.convertCurrentPageIndex(a)!=b&&--b;break;case "TR":this.convertCurrentPageIndex(a)==b&&++b;++b;break;case "BR":this.convertCurrentPageIndex(a)!=b&&++b,++b}else switch(this._hotSpotCor){case "TL":++b;break;case "BL":++b;break;case "TR":a!=b&&(--b,--b);break;case "BR":a!=b&&(--b,--b)}this._youtubeManager.onHotSpotMouseOverWithYoutube(b)},doHotSpotMouseOver:function(a){null!=a&&m.__instanceof(a.target, Jb)},onHotSpotMouseOut:function(a){var b="",c=null,d=this.getCurrentPageIndex();this._isReady&&!this._isAuto&&(null!=a&&m.__instanceof(a.target,Jb)&&(this.fixHotSpotEvent(a),b=this._hotSpotCor,c=this._hotSpotPaper),!this._isDown&&this._isOver&&0!=this.fixTargetByCor(b)&&m.__instanceof(a.target,Jb)&&(this.setPapersCurrentPage(d),this._currentPaper=c,this._currentCor=b,this._isOver=!1,this.gotoHotSpotCor(b,d),this.onHotSpotMouseOutWithYoutube()))},onFlipBookMouseUpWithYoutube:function(){if(!this._onHotSpot)this.onHotSpotMouseOutWithYoutube()}, onHotSpotMouseOutWithYoutube:function(){this.pageDidChangedWithYoutube()},pageWillChangeWithYoutube:function(){},pageDidChangedWithYoutube:function(){var a=this.getTotalPageCount(),b=0==a%2&&0!=a,c=this.convertCurrentPageIndex(this.getCurrentPageIndex()),d=-1;if(this._isRightToLeft)switch(this._currentCor){case "TL":b?a!=c&&1!=c&&(d=c+1):1!=c&&(d=c+1);break;case "BL":b?a!=c&&1!=c&&(d=c+1):1!=c&&(d=c+1);break;case "TR":a!=c&&1!=c&&(d=c+1);break;case "BR":a!=c&&1!=c&&(d=c+1)}else switch(this._currentCor){case "TL":a!= c&&1!=c&&(d=c-1);break;case "BL":a!=c&&1!=c&&(d=c-1);break;case "TR":b?a!=c&&1!=c&&(d=c-1):1!=c&&(d=c-1);break;case "BR":b?a!=c&&1!=c&&(d=c-1):1!=c&&(d=c-1)}this._youtubeManager.pageDidChangedWithYoutube(c,d)},gotoHotSpotCor:function(a,b){var c=this,d=this._currentPaper;if(this._isReady){this._isReady=!1;S.stop(this._fp);var e=this._hsSprites.get(a),f=function(){c._fp.x=e.get_x();c._fp.y=e.get_y();c.fadeOutShadow();d.setCor(a);c.setCurrentPageIndex(b);c._isReady=!0;c._currentPaper=null};this._currentCor!= a&&(this.doChangePage(),this.sendPageWillChangeEvent(b));null!=this._currentPaper&&this._layerSprites.setChildIndex(this._currentPaper,this._layerSprites.get_numChildren()-1);if(0>this._fp.y&&this._currentPaper._lp._isTop||this._fp.y>this._pageHeight&&!this._currentPaper._lp._isTop)S.tween(this._fp,this._flipTweenTime/2,{x:e.get_x()}).ease(zd.get_easeOut()),S.tween(this._fp,this._flipTweenTime/2,{y:e.get_y()}).ease(aj.get_easeOut()).onUpdate(k(this,this.fpPositionChange)).onComplete(f);else S.tween(this._fp, this._flipTweenTime,{x:e.get_x(),y:e.get_y()}).ease(zd.get_easeOut()).onUpdate(k(this,this.fpPositionChange)).onComplete(f)}},hasCurrentAdditionsListIndex:function(a){return null==this._additionsList||0>=this._additionsList.length?!1:this.arrayContainsValue(this._additionsList,a)},addCurrentAdditionsListIndex:function(a){0==this.arrayContainsValue(this._additionsList,a)&&this._additionsList.push(a)},setCurrentStateToPageAdditions:function(){},fixAfterFlipUpdatePapers:function(a){var b=null,b=this._currentPaper; if(b==this._layerPapers.get("LT")&&this.getCurrentPageIndex()>a||b==this._layerPapers.get("RT")&&this.getCurrentPageIndex()>a)b=this._layerPapers.get("LT"),a=this._layerPapers.get("LB"),this._layerPapers.set("LT",a),a,a=this._layerPapers.get("RB"),this._layerPapers.set("LB",a),a,a=this._layerPapers.get("RT"),this._layerPapers.set("RB",a),a,this._layerPapers.set("RT",b),b,this._layerPapers.get("LT").setCor("BL"),this._layerPapers.get("LB").setCor("BL"),this._layerPapers.get("RT").setCor("BR"),this._layerPapers.get("RB").setCor("BR"); else if(b==this._layerPapers.get("RT")&&this.getCurrentPageIndex()this.getTotalPageCount()||1>c||c==this.getCurrentPageIndex())))){if(mf.bFirst)mf.bFirst= !mf.bFirst;else if(this._isRightToLeft&&1==this._realPageCount%2&&this.convertCurrentPageIndex(c)>this._realPageCount-1)return;this._isAuto=!0;this._isReady=this._isDown=!1;this.updatePage(c);this._layerSprites.set_visible(!0);this.doChangePage();this.setPapersCurrentPage(c);this._layerSprites.setChildIndex(this._currentPaper,this._layerSprites.get_numChildren()-1);c=c)&&0==a._isAdditionsOn&&(a._isAdditionsOn=!0, a.activateAdditionsForPageType(!1)));null!=this._layerPapers.get("RT")&&(a=this._layerPapers.get("RT").get_pageA(),null!=a&&(0!=this._isRightToLeft&&1<=a._pageIndex&&a._pageIndex<=c||0==this._isRightToLeft&&a._pageIndex<=b&&a._pageIndex>=c)&&0==a._isAdditionsOn&&(a._isAdditionsOn=!0,a.activateAdditionsForPageType(!1)))}},enableAdditionsListIndexs:function(a){if(!(null==this._additionsList||0>=this._additionsList.length))if(this._isActivateAdditions=a,0==this._isActivateAdditions){a=0;for(var b=this._additionsList;a< b.length;){var c=b[a];++a;var d=c;0!=this._isRightToLeft&&(d=this.getRightToLeftPageIndex(c));c=this.getIndexPage(d);null!=c&&0!=c._isAdditionsOn&&(c._isAdditionsOn=!1,c.disibleAdditionsForPageType(!1))}}else{a=0;for(b=this._additionsList;a=a.length))for(var b=0;b=a.length)return null;var e=[],f=this._totalPageCount,h=this.getRealCurrentPageIndex();null!=this._layerPapers.get("LT")&&(d=this._layerPapers.get("LT").get_pageB(), null!=d&&(0==this._isRightToLeft&&1<=d._pageIndex&&d._pageIndex<=h||0!=this._isRightToLeft&&d._pageIndex<=f&&d._pageIndex>=h)&&(b=d._pageIndex));null!=this._layerPapers.get("RT")&&(d=this._layerPapers.get("RT").get_pageA(),null!=d&&(0!=this._isRightToLeft&&1<=d._pageIndex&&d._pageIndex<=h||0==this._isRightToLeft&&d._pageIndex<=f&&d._pageIndex>=h)&&(c=d._pageIndex));for(f=0;f=a.length)return null;var e=[],f=this._totalPageCount,h=this.getRealCurrentPageIndex();null!=this._layerPapers.get("LB")&&(d=this._layerPapers.get("LB").get_pageA(),null!=d&&(0==this._isRightToLeft&&1<=d._pageIndex&&d._pageIndex<=h||0!=this._isRightToLeft&&d._pageIndex<=f&&d._pageIndex>=h)&&0!=this.hasCurrentAdditionsListIndex(d._pageIndex)&&(c=Math.min(c,d._pageIndex),b=Math.max(b,d._pageIndex)),d=this._layerPapers.get("LB").get_pageB(),null!=d&&(0==this._isRightToLeft&& 1<=d._pageIndex&&d._pageIndex<=h||0!=this._isRightToLeft&&d._pageIndex<=f&&d._pageIndex>=h)&&0!=this.hasCurrentAdditionsListIndex(d._pageIndex)&&(c=Math.min(c,d._pageIndex),b=Math.max(b,d._pageIndex)));null!=this._layerPapers.get("LT")&&(d=this._layerPapers.get("LT").get_pageA(),null!=d&&(0==this._isRightToLeft&&1<=d._pageIndex&&d._pageIndex<=h||0!=this._isRightToLeft&&d._pageIndex<=f&&d._pageIndex>=h)&&0!=this.hasCurrentAdditionsListIndex(d._pageIndex)&&(c=Math.min(c,d._pageIndex),b=Math.max(b,d._pageIndex)), d=this._layerPapers.get("LT").get_pageB(),null!=d&&(0==this._isRightToLeft&&1<=d._pageIndex&&d._pageIndex<=h||0!=this._isRightToLeft&&d._pageIndex<=f&&d._pageIndex>=h)&&0!=this.hasCurrentAdditionsListIndex(d._pageIndex)&&(c=Math.min(c,d._pageIndex),b=Math.max(b,d._pageIndex)));null!=this._layerPapers.get("RT")&&(d=this._layerPapers.get("RT").get_pageA(),null!=d&&(0!=this._isRightToLeft&&1<=d._pageIndex&&d._pageIndex<=h||0==this._isRightToLeft&&d._pageIndex<=f&&d._pageIndex>=h)&&0!=this.hasCurrentAdditionsListIndex(d._pageIndex)&& (c=Math.min(c,d._pageIndex),b=Math.max(b,d._pageIndex)),d=this._layerPapers.get("RT").get_pageB(),null!=d&&(0!=this._isRightToLeft&&1<=d._pageIndex&&d._pageIndex<=h||0==this._isRightToLeft&&d._pageIndex<=f&&d._pageIndex>=h)&&0!=this.hasCurrentAdditionsListIndex(d._pageIndex)&&(c=Math.min(c,d._pageIndex),b=Math.max(b,d._pageIndex)));null!=this._layerPapers.get("RB")&&(d=this._layerPapers.get("RB").get_pageA(),null!=d&&(0!=this._isRightToLeft&&1<=d._pageIndex&&d._pageIndex<=h||0==this._isRightToLeft&& d._pageIndex<=f&&d._pageIndex>=h)&&0!=this.hasCurrentAdditionsListIndex(d._pageIndex)&&(c=Math.min(c,d._pageIndex),b=Math.max(b,d._pageIndex)),d=this._layerPapers.get("RB").get_pageB(),null!=d&&(0!=this._isRightToLeft&&1<=d._pageIndex&&d._pageIndex<=h||0==this._isRightToLeft&&d._pageIndex<=f&&d._pageIndex>=h)&&0!=this.hasCurrentAdditionsListIndex(d._pageIndex)&&(c=Math.min(c,d._pageIndex),b=Math.max(b,d._pageIndex)));for(f=0;f=c||e.push(h);return e},setCurrentStateToPageAdditions:function(){var a= null,a=null,b=this._totalPageCount,c=this._currentPageIndex;0!=this._isRightToLeft&&(c=this.getRealCurrentPageIndex());null!=this._layerPapers.get("LB")&&(a=this._layerPapers.get("LB").get_pageA(),null!=a&&(0==this._isRightToLeft&&1<=a._pageIndex&&a._pageIndex<=c||0!=this._isRightToLeft&&a._pageIndex<=b&&a._pageIndex>=c)&&a.isShowEncrypted()&&0==this.hasCurrentAdditionsListIndex(a._pageIndex)&&(a.createAdditionsForPageType(Hd.PrevLeftBack,!1),this.addCurrentAdditionsListIndex(a._pageIndex)),a=this._layerPapers.get("LB").get_pageB(), null!=a&&(0==this._isRightToLeft&&1<=a._pageIndex&&a._pageIndex<=c||0!=this._isRightToLeft&&a._pageIndex<=b&&a._pageIndex>=c)&&a.isShowEncrypted()&&0==this.hasCurrentAdditionsListIndex(a._pageIndex)&&(a.createAdditionsForPageType(Hd.PrevLeftFront,!1),this.addCurrentAdditionsListIndex(a._pageIndex)));null!=this._layerPapers.get("LT")&&(a=this._layerPapers.get("LT").get_pageA(),null!=a&&(0==this._isRightToLeft&&1<=a._pageIndex&&a._pageIndex<=c||0!=this._isRightToLeft&&a._pageIndex<=b&&a._pageIndex>= c)&&a.isShowEncrypted()&&0==this.hasCurrentAdditionsListIndex(a._pageIndex)&&(a.createAdditionsForPageType(Hd.LeftBackPage,!1),this.addCurrentAdditionsListIndex(a._pageIndex)),a=this._layerPapers.get("LT").get_pageB(),null!=a&&(0==this._isRightToLeft&&1<=a._pageIndex&&a._pageIndex<=c||0!=this._isRightToLeft&&a._pageIndex<=b&&a._pageIndex>=c)&&a.isShowEncrypted()&&0==this.hasCurrentAdditionsListIndex(a._pageIndex)&&(a.createAdditionsForPageType(Hd.LeftFrontPage,!1),this.addCurrentAdditionsListIndex(a._pageIndex))); null!=this._layerPapers.get("RT")&&(a=this._layerPapers.get("RT").get_pageA(),null!=a&&(0!=this._isRightToLeft&&1<=a._pageIndex&&a._pageIndex<=c||0==this._isRightToLeft&&a._pageIndex<=b&&a._pageIndex>=c)&&a.isShowEncrypted()&&0==this.hasCurrentAdditionsListIndex(a._pageIndex)&&(a.createAdditionsForPageType(Hd.RightFrontPage,!1),this.addCurrentAdditionsListIndex(a._pageIndex)),a=this._layerPapers.get("RT").get_pageB(),null!=a&&(0!=this._isRightToLeft&&1<=a._pageIndex&&a._pageIndex<=c||0==this._isRightToLeft&& a._pageIndex<=b&&a._pageIndex>=c)&&a.isShowEncrypted()&&0==this.hasCurrentAdditionsListIndex(a._pageIndex)&&(a.createAdditionsForPageType(Hd.RightBackPage,!1),this.addCurrentAdditionsListIndex(a._pageIndex)));null!=this._layerPapers.get("RB")&&(a=this._layerPapers.get("RB").get_pageA(),null!=a&&(0!=this._isRightToLeft&&1<=a._pageIndex&&a._pageIndex<=c||0==this._isRightToLeft&&a._pageIndex<=b&&a._pageIndex>=c)&&a.isShowEncrypted()&&0==this.hasCurrentAdditionsListIndex(a._pageIndex)&&(a.createAdditionsForPageType(Hd.NextRightFront, !1),this.addCurrentAdditionsListIndex(a._pageIndex)),a=this._layerPapers.get("RB").get_pageB(),null!=a&&(0!=this._isRightToLeft&&1<=a._pageIndex&&a._pageIndex<=c||0==this._isRightToLeft&&a._pageIndex<=b&&a._pageIndex>=c)&&a.isShowEncrypted()&&0==this.hasCurrentAdditionsListIndex(a._pageIndex)&&(a.createAdditionsForPageType(Hd.NextRightBack,!1),this.addCurrentAdditionsListIndex(a._pageIndex)));this.activateAdditionsListByFlipChange()},sendPageWillChangeEvent:function(a){var b=a;0!=this._isRightToLeft&& (b=this.getRightToLeftPageIndex(a));R.getInstance().dispatchEvent(new ja(v.FLIPBOOK_WILLCHANGE,new na(this,b,null)))},sendPageDidChangedEvent:function(a){var b=a;0!=this._isRightToLeft&&(b=this.getRightToLeftPageIndex(a));R.getInstance().dispatchEvent(new ja(v.FLIPBOOK_DIDCHANGED,new na(this,b,null)))},gotoPage:function(a){0==this._isRightToLeft?mf.prototype.gotoPage.call(this,a):this.gotoFixRealPage(a)},gotoFixRealPage:function(a){0!=this._isRightToLeft&&(a=this.getRightToLeftPageIndex(a));mf.prototype.gotoPage.call(this, a)},gotoPrev:function(){var a=this.getRealCurrentPageIndex();0!=this._isRightToLeft?this.gotoPage(a+2):1<=a&&0==this._isRightToLeft&&this.gotoPage(a-2)},gotoNext:function(){var a=this.getRealCurrentPageIndex();0!=this._isRightToLeft?this.gotoPage(a-2):0==this._isRightToLeft&&aa||a>this.getTotalPageCount())return b=d.getFlipTempBookPage(a),b.resetBookPage(this._pageWidth,this._pageHeight,a,!0,!1,!1),b._pageType=Ib.Normal, this._deactivatePages.push(b),b;if(1<=a||a<=this.getTotalPageCount())if(b=n.get(this._activatePages,e),null!=b)return b;null!=this._bookPages&&this._bookPages.length>=a?(c=this._bookPages[a-1],b=d.getFlipTempBookPage(a),b.resetBookPage(c._pageWidth,c._pageHeight,c._pageIndex,c._isLeftPage,c._isHardStyle,c._isRightToLeft),b._pageType=Ib.Normal,b._pageType=c._pageType,n.set(this._activatePages,e,b)):(b=d.getFlipTempBookPage(a),b.resetBookPage(120,80,0,!0,!1,!1),b._pageType=Ib.Normal,this._deactivatePages.push(b)); return b},cleanNullAdditionsListIndexs:function(){var a=null,a=Rd.getInstance(),b=this.flipCleanAdditionsIndexs(this._additionsList);if(!(null==b||0>=b.length))for(var c=0;c=d)&&1==b._isActivate&&0!=b._canLoadTexts&&(this._isSelectTextMode?b.loadTextForDisplay():b.unloadTextForDisplay()));null!=this._layerPapers.get("RT")&&(b=this._layerPapers.get("RT").get_pageA(),null!=b&&(0!=this._isRightToLeft&&1<=b._pageIndex&&b._pageIndex<=d||0==this._isRightToLeft&&b._pageIndex<=c&&b._pageIndex>=d)&&1==b._isActivate&&0!=b._canLoadTexts&&(this._isSelectTextMode?b.loadTextForDisplay(): b.unloadTextForDisplay()));this.setHotSpotVisible(a)},sendPageWillChangeEvent:function(a){var b=lb.getInstance();Gf.prototype.sendPageWillChangeEvent.call(this,a);b.cleanProgramIsSelectTextMode()},sendPageDidChangedEvent:function(a){var b=lb.getInstance();Gf.prototype.sendPageDidChangedEvent.call(this,a);b.cleanProgramIsSelectTextMode()},onAddedToStageCall:function(a){Gf.prototype.onAddedToStageCall.call(this,a);this.stage.doubleClickEnabled=!0;this.addEventListener(A.MOUSE_DOWN,k(this,this.onFlipBookMouseDown)); this.stage.addEventListener(A.MOUSE_UP,k(this,this.onStageMouseUp));this.stage.addEventListener(A.DOUBLE_CLICK,k(this,this.onStageDoubleClick));R.getInstance().addEventListener(v.SECURITYLOGIN_UPDATE,this,k(this,this.onSecurityLoginUpdate))},onRemoveFromStageCall:function(a){this.removeEventListener(A.MOUSE_DOWN,k(this,this.onFlipBookMouseDown));this.stage.removeEventListener(A.MOUSE_UP,k(this,this.onStageMouseUp));this.stage.removeEventListener(A.DOUBLE_CLICK,k(this,this.onStageDoubleClick));ha.current.stage.removeEventListener(A.MOUSE_MOVE, k(this,this.onStageMouseMove));ha.current.stage.removeEventListener(A.MOUSE_DOWN,k(this,this.onStageMouseDown));R.getInstance().removeEventListener(v.SECURITYLOGIN_UPDATE,this,k(this,this.onSecurityLoginUpdate));Gf.prototype.onRemoveFromStageCall.call(this,a)},onSecurityLoginUpdate:function(a){null!=a&&null!=a._data&&(this.setCurrentPageIndex(this._currentPageIndex),this.setCurrentStateToPageAdditions())},onStageMouseUp:function(a){Gf.prototype.onStageMouseUp.call(this,a)},onStageMouseMove:function(a){this._stageCachedX= a.stageX;this._stageCachedY=a.stageY;R.getInstance().dispatchEvent(new ja(v.MAINSTAGE_MOUSEMOVE,new na(this,null,a)))},onStageMouseDown:function(a){this._stageCachedX=a.stageX;this._stageCachedY=a.stageY;R.getInstance().dispatchEvent(new ja(v.MAINSTAGE_MOUSECLICK,new na(this,null,a)))},getStageCorByPoint:function(a){var b=null,c=Jb.HS_WIDTH,d=Jb.HS_WIDTH;0>=a.x&&a.y<=.5*this._pageHeight?b=a.x<-(this._pageWidth-c)&&a.ythis._pageWidth-c&&a.y=a.x&&a.y>=.5*this._pageHeight?b=a.x<-(this._pageWidth-c)&&a.y>this._pageHeight-d?null:"BL":0<=a.x&&a.y>=.5*this._pageHeight&&(b=a.x>this._pageWidth-c&&a.y>this._pageHeight-d?null:"BR");return b},onFlipBookMouseDown:function(a){var b="",c=0;this.getCurrentPageIndex();!this._isReady||this._isAuto||this._isSelectTextMode||m.__instanceof(a.target,di)||!(null==a.target||m.__instanceof(a.target,U)||m.__instanceof(a.target,Cb)||m.__instanceof(a.target,ej))||$p.isMyBlood(a.target,ph)||(a=this.getStageCorByPoint(new Q(this.get_mouseX(), this.get_mouseY())),null!=a&&(null!=a&&""!=a&&(b=a,this._hsSprites.get(b),this.fixStageHotSpotCor(b),b=this._hotSpotCor,c=this._hotSpotToIndex),this._isRightToLeft&&1==this._realPageCount%2&&this.convertCurrentPageIndex(c)>this._realPageCount-1&&("TL"==b||"BL"==b)||this._isDown||0==this.fixTargetByCor(b)||null==b||""==b||(this._isDown=!0,this.setPapersCurrentPage(c),this._currentPaper.setCor(b),this._currentCor=b,this._isOver||this.fpGotoCor(b),this._isOver=!1,this.fadeInShadow(),this.onFlipBookMouseDownOverWithYoutube(), this._layerSprites.setChildIndex(this._currentPaper,this._layerSprites.get_numChildren()-1),this._currentPaper.set_scaleX(this._currentPaper.set_scaleY(1)))))},onStageDoubleClick:function(a){},__class__:nf});var Yp=function(a){this._this=a;this._flip=this;this._data=se.getInstance()};g["first.flipbook.GetHandler"]=Yp;Yp.__name__=["first","flipbook","GetHandler"];Yp.prototype={_this:null,_flip:null,_data:null,testPageFunc:function(a){var b;try{b=m.__cast(a,cb)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}if(null==b)return-1;null!=b&&0==b._isContentLoaded&&b.loadContent("./files/page/"+b._pageIndex+".jpg");return 0},testThumbFunc:function(a){var b;try{b=m.__cast(a,cb)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}if(null==b)return-1;null!=b&&0==b._isContentLoaded&&b.loadContent("./files/thumb/"+b._pageIndex+".jpg");return 0},__class__:Yp};var Jb=function(a,b,c){this._hsX=this._hsY=0;Bc.call(this); this._hsCor=c;this.set_alpha(.2);this.rectHotSpot(c);this._pageWidth=a;this._pageHeight=b;Jb.HS_WIDTH=Math.max(80,b/6|0);Jb.HS_WIDTH=Math.min(Jb.HS_WIDTH,a/2|0);Jb.HS_WIDTH=Qr.getHotSpotWidthTypeValue(a,b);this.set_width(Jb.HS_WIDTH);this.set_height(Jb.HS_WIDTH);this.resize(a,b)};g["first.flipbook.HotSpot"]=Jb;Jb.__name__=["first","flipbook","HotSpot"];Jb.__super__=Bc;Jb.prototype=t(Bc.prototype,{_hsCor:null,_hsX:null,_hsY:null,_pageWidth:null,_pageHeight:null,resize:function(a,b){this._pageWidth= a;this._pageHeight=b;switch(this._hsCor){case "TL":this.set_x(-this._pageWidth);this.set_y(0);this._hsX=-this._pageWidth;this._hsY=0;break;case "TR":this.set_x(this._pageWidth);this.set_y(0);this._hsX=this._pageWidth;this._hsY=0;break;case "BL":this.set_x(-this._pageWidth);this.set_y(this._pageHeight);this._hsX=-this._pageWidth;this._hsY=this._pageHeight;break;case "BR":this.set_x(this._pageWidth),this.set_y(this._pageHeight),this._hsX=this._pageWidth,this._hsY=this._pageHeight}},rectHotSpot:function(a){var b= 0,c=0,d=Jb.HS_WIDTH,e=Jb.HS_WIDTH;switch(a){case "TL":c=b=0;break;case "TR":b=-Jb.HS_WIDTH;c=0;break;case "BL":b=0;c=-Jb.HS_WIDTH;break;case "BR":b=-Jb.HS_WIDTH,c=-Jb.HS_WIDTH}this.get_graphics().beginFill(16711680,.04);this.get_graphics().drawRect(b,c,d,e);this.get_graphics().endFill()},__class__:Jb});var aq=function(){this._isTop=!1;this._speed=this._tmpSpeed=1;this._Op=new Q;this._mPoint=new Q;this._tPoint=new Q;this._bPoint=new Q};g["first.flipbook.LimitPoint"]=aq;aq.__name__=["first","flipbook", "LimitPoint"];aq.prototype={_width:null,_height:null,_topR:null,_bottomR:null,_tPoint:null,_bPoint:null,_mPoint:null,_dia:null,_speed:null,_tmpSpeed:null,_isTop:null,_Op:null,point:null,_point:null,get_O:function(){return this._Op},set_O:function(a){return this._Op=a},get_point:function(){return this._point},setSize:function(a,b,c){this._point=new Q;this._width=a;this._height=b;this._topR=Math.sqrt(this._width*this._width+this._height*this._height);this._tPoint=new Q(this._Op.x,this._Op.y-b/2);this._bPoint= new Q(this._Op.x,this._Op.y+b/2);this._dia=Math.sqrt(this._width*this._width+this._height*this._height);this.update(c.x,c.y);this._speed=this._tmpSpeed},resize:function(a,b){this._width=a;this._height=b;this._topR=Math.sqrt(this._width*this._width+this._height*this._height);this._tPoint=new Q(this._Op.x,this._Op.y-this._height/2);this._bPoint=new Q(this._Op.x,this._Op.y+this._height/2);this._dia=Math.sqrt(this._width*this._width+this._height*this._height)},change:function(){var a=new Q(this._tPoint.x, this._tPoint.y);this._tPoint.x=this._bPoint.x;this._tPoint.y=this._bPoint.y;this._bPoint.x=a.x;this._bPoint.y=a.y;return this._isTop=!this._isTop},changeTo:function(a){"top"==a?this._isTop||this.change():"bottom"==a&&this._isTop&&this.change()},getDis:function(a,b,c,d){a=Math.abs(a-c);b=Math.abs(b-d);return Math.sqrt(a*a+b*b)},getAngleByPoint:function(a,b,c,d){return Math.atan2(d-b,c-a)},update:function(a,b){var c=0;this._mPoint.x=a;this._mPoint.y=b;!this._isTop&&b<=this._Op.y+this._height/2||this._isTop&& b>=this._Op.y-this._height/2?this.getDis(this._bPoint.x,this._bPoint.y,a,b)<=this._width?(this._point.x=a,this._point.y=b):(c=this.getAngleByPoint(this._bPoint.x,this._bPoint.y,a,b),this._point.x=Math.cos(c)*this._width+this._bPoint.x,this._point.y=Math.sin(c)*this._width+this._bPoint.y):this.getDis(this._tPoint.x,this._tPoint.y,a,b)<=this._dia?(this._point.x=a,this._point.y=b):(c=this.getAngleByPoint(this._tPoint.x,this._tPoint.y,a,b),this._point.x=Math.cos(c)*this._dia+this._tPoint.x,this._point.y= Math.sin(c)*this._dia+this._tPoint.y);this._point.xthis._Op.x+this._width&&(this._point.x=this._Op.x+this._width,this._point.y=this._isTop?this._Op.y-this._height/2:this._Op.y+this._height/2)},close:function(){this._point.x=this._width;this._point.y=this._height},__class__:aq,__properties__:{get_point:"get_point",set_O:"set_O",get_O:"get_O"}}; var fj=function(a,b,c,d,e){null==e&&(e=156);null==d&&(d=79);null==c&&(c=!1);null==b&&(b=0);null==a&&(a=0);this._strokeColor=15723999;this._fillAlpha=this._strokePixel=1;this._isFill=this._isStroke=!1;this._iconDrawColor=16777215;this._iconDownColor=2105376;this._iconOverColor=7829367;this._drawColor=this._iconFillColor=16777215;this._darkColor=11513247;this._overColor=12565935;this._fillColor=15723999;this._baseColor=0;U.call(this,a,b);this._isDown=!1;this._isLeft=c;this._isStroke=this._isFill=!0; this._strokePixel=1;this._fillAlpha=.05;this._roundHeight=this._roundWidth=8;this._bitmap=null;this._iconWidth=d;this._iconHeight=e;this._rectSprite=new ua(a,b,this._fillColor,this._isFill,this._strokeColor,this._isStroke,this._strokePixel,this._roundWidth,this._roundHeight);this.addChild(this._rectSprite);this._rectSprite.set_alpha(.05);this._rectSprite.enable_mouse(!1);this._rectSprite.set_isStroke(!1);this._iconSprite=new U(this._iconWidth,this._iconHeight);this.addChild(this._iconSprite);this._iconSprite.enable_mouse(!1); a=Yb.getInstance();this.set_iconImage(this._isLeft?a.getTemplateSourceUrl(wa.PAGEGOTOSTEP_LEFT):a.getTemplateSourceUrl(wa.PAGEGOTOSTEP_RIGHT))};g["first.flipbook.PageGotoBar"]=fj;fj.__name__=["first","flipbook","PageGotoBar"];fj.__super__=U;fj.prototype=t(U.prototype,{_isLeft:null,_isDown:null,_bitmap:null,_iconWidth:null,_iconHeight:null,_iconSprite:null,_rectSprite:null,_roundWidth:null,_roundHeight:null,_baseColor:null,_fillColor:null,_overColor:null,_darkColor:null,_drawColor:null,_iconFillColor:null, _iconOverColor:null,_iconDownColor:null,_iconDrawColor:null,_isFill:null,_isStroke:null,_fillAlpha:null,_strokePixel:null,_strokeColor:null,configUI_GotoBarColor:function(){Ra.getInstance().hasKey(C.FlipButtonIconColor)&&(this.set_alpha(.75),this._baseColor=T.FlipNavIconColor(),this._darkColor=xa.scale(this._baseColor,.4),this._overColor=xa.scale(this._baseColor,.6),this._drawColor=this._fillColor=xa.scale(this._baseColor,1),this._iconDownColor=xa.scale(this._baseColor,.1),this._iconOverColor=xa.scale(this._baseColor, .2),this._iconDrawColor=this._iconFillColor=xa.scale(this._baseColor,.9),this.resetImageColor(this._iconFillColor),this.drawGotoBar())},resize:function(a,b){U.prototype.resize.call(this,a,b);this.drawGotoBar();this.resizeStepLayout()},resizeStepLayout:function(){0!=this._width&&0!=this._height&&this._iconSprite.center()},resetImageColor:function(a){},drawColorTransform:function(a,b){null==b&&(b=.45);var c=a>>16&255;0>c&&(c=0);var d=a>>8&255;0>d&&(d=0);var e=a&255;0>e&&(e=0);if(null!=this._bitmap){var f= this._bitmap.bitmapData;if(null!=f)try{for(var h=0,p=f.width;h=xh.NumberWidth&&(this._pageRadio=this._totalCount/xh.NumberWidth)},set_pageState:function(a,b){null==b&&(b=0);this._pageStart=b;this._pageCount=a;if(0!=this._pageRadio){var c=this._pageCount/this._totalCount*xh.NumberWidth| 0;0!=c%2&&(c+=1);this._width=c}this.resize(this._width,this._height);this.drawShape()},get_pageIndex:function(a){a=a/this._width*this._width*this._pageRadio;1>=a&&1==a;a+this._pageStart>=this._totalCount&&(a=this._totalCount-this._pageStart);return a},onMouseOver:function(a){null!=this._textField&&this._textField.set_visible(!0)},onMouseOut:function(a){null!=this._textField&&this._textField.set_visible(!1)},onMouseClick:function(a){},onMouseMove:function(a){if(0<=a.localX&&a.localX<=this._width){var b= this.get_pageIndex(a.localX);if(null!=this._textField){this._textField.set_text(""+(this._pageStart+b));this._textField.updateTextFormat();var b=this._textField.getTextWidth(),c=this._textField.getTextHeight();this._textField.move(a.localX-.5*this._textField._width,a.localY-this._textField._height);this._textField.resize(b+4,c+4)}}},onMouseDown:function(a){a.localX<=this._width&&this.get_pageIndex(a.localX)},onMouseUp:function(a){},drawShape:function(){var a=null;if(0==this._width||0==this._height)this.get_graphics().clear(), null!=this._drawSprite&&(a=this._drawSprite.get_graphics(),a.clear());else{var b=this._width,c=this._height,d=0,e=0,a=this._drawSprite.get_graphics();this.get_graphics().clear();a.clear();a.beginFill(16777215,.05);a.drawRect(0,0,b,c);k(a,a.endFill);for(var f=!1,h=!1,p=new Q(0,0),H=new Q(0,0),g=new Q(0,0),l=new Q(0,0);d<=b;)0==d%2?a.lineStyle(0,this._backColor,.5,!0,yb.NONE):a.lineStyle(0,this._lineColor,.6,!0,yb.NONE),0!=this._isLeft?(a.moveTo(b-d,e),a.lineTo(b-d,c-e),H.x=b-d,H.y=e,0==f&&0==p.x&& 0==p.y&&(f=!0,p.x=b-d,p.y=e),l.x=b-d,l.y=c-e,0==h&&0==g.x&&0==g.y&&(h=!0,g.x=b-d,g.y=c-e)):(a.moveTo(0+d,e),a.lineTo(0+d,c-e),H.x=0+d,H.y=e,0==f&&0==p.x&&0==p.y&&(f=!0,p.x=0+d,p.y=e),l.x=0+d,l.y=c-e,0==h&&0==g.x&&0==g.y&&(h=!0,g.x=0+d,g.y=c-e)),d+=1,e+=.02;0!=f&&(a.lineStyle(0,this._lineColor,.5,!0,yb.NONE),a.moveTo(p.x,p.y),a.lineTo(H.x,H.y));0!=h&&(a.lineStyle(0,this._lineColor,.5,!0,yb.NONE),a.moveTo(g.x,g.y),a.lineTo(l.x,l.y));0!=f&&(a.lineStyle(0,this._lineColor,.6,!0,yb.NONE),a.moveTo(H.x,H.y), a.lineTo(l.x,l.y))}},__class__:xh});var nk=function(a,b,c){null==c&&(c=32);null==b&&(b=32);null==a&&(a=!1);this._darkColor=7829367;this._overColor=10066329;this._fillColor=12303291;this._tempColor=16777215;this._roundFactor=6;this._barHeight=50;this._barWidth=25;this._isDown=!1;this._isLeft=!0;U.call(this);this._isLeft=a;this._barShape=new F;this.addChild(this._barShape);this._barShapeMask=new F;this.addChild(this._barShapeMask);this._arrowSprite=new F;this.addChild(this._arrowSprite);this._iconWidth= b;this._iconHeight=c;this._iconSprite=new U(this._iconWidth,this._iconHeight);this.addChild(this._iconSprite);this._iconSprite.enable_mouse(!1);this._barShape.set_mask(this._barShapeMask);this._arrowSprite.set_x(this._barWidth/2);this._arrowSprite.set_y(this._barHeight/2);this._tempColor=this._fillColor;a=Yb.getInstance();a=this._isLeft?a.getTemplateSourceUrl(wa.BASEIMAGESTEP_LEFT):a.getTemplateSourceUrl(wa.BASEIMAGESTEP_RIGHT);this.set_iconImage(a)};g["first.flipbook.PageStepBar"]=nk;nk.__name__= ["first","flipbook","PageStepBar"];nk.__super__=U;nk.prototype=t(U.prototype,{_isLeft:null,_isDown:null,_barWidth:null,_barHeight:null,_barShape:null,_barShapeMask:null,_roundFactor:null,_arrowSprite:null,_bitmap:null,_iconWidth:null,_iconHeight:null,_iconSprite:null,_tempColor:null,_fillColor:null,_overColor:null,_darkColor:null,onAddedToStageCall:function(a){this.drawStepBar();this.addEventListener(A.MOUSE_OVER,k(this,this.onMouseOver));this.addEventListener(A.MOUSE_OUT,k(this,this.onMouseOut)); this.addEventListener(A.MOUSE_DOWN,k(this,this.onMouseDown));this.addEventListener(A.MOUSE_UP,k(this,this.onMouseUp))},onRemoveFromStage:function(a){this.removeEventListener(A.MOUSE_OVER,k(this,this.onMouseOver));this.removeEventListener(A.MOUSE_OUT,k(this,this.onMouseOut));this.removeEventListener(A.MOUSE_DOWN,k(this,this.onMouseDown));this.removeEventListener(A.MOUSE_UP,k(this,this.onMouseUp));U.prototype.onRemoveFromStageCall.call(this,a)},resize:function(a,b){U.prototype.resize.call(this,a,b); this._barWidth=a;this._barHeight=b;this.drawStepBar();this.resizeStepLayout()},resizeToWidth:function(a){U.prototype.set_width.call(this,a);this._barWidth=a;this.drawStepBar();this.resizeStepLayout()},resizeToHeight:function(a){U.prototype.set_height.call(this,a);this._barHeight=a;this.drawStepBar();this.resizeStepLayout()},resizeStepLayout:function(){0!=this._width&&0!=this._height&&this._iconSprite.center()},onMouseOver:function(a){this._tempColor=this._overColor;this.drawStepBar()},onMouseOut:function(a){this._isDown= !1;this._tempColor=this._fillColor;this.drawStepBar()},onMouseDown:function(a){this._isDown=!0;this._tempColor=this._fillColor;this.drawStepBar();a=Yb.getInstance();a=this._isLeft?a.getTemplateSourceUrl(wa.BASEIMAGESTEP_LEFTDOWN):a.getTemplateSourceUrl(wa.BASEIMAGESTEP_RIGHTDOWN);this.set_iconImage(a)},onMouseUp:function(a){this._isDown=!1;this._tempColor=this._overColor;this.drawStepBar();a=Yb.getInstance();a=this._isLeft?a.getTemplateSourceUrl(wa.BASEIMAGESTEP_LEFT):a.getTemplateSourceUrl(wa.BASEIMAGESTEP_RIGHT); this.set_iconImage(a)},drawColorTransform:function(a,b){null==b&&(b=.55);var c=a>>16&255;0>c&&(c=0);var d=a>>8&255;0>d&&(d=0);var e=a&255;0>e&&(e=0);if(null!=this._bitmap){var f=this._bitmap.bitmapData;if(null!=f)try{for(var h=0,p=f.width;he&&(e=.01);0 this._lp.get_point().x?(this._mask_js.set_x(0),this._mask_js.set_rotation(0*this._fx),b=-b):(this._mask_js.set_x(0),this._mask_js.set_rotation(180*this._fx))}d=b/180*0*Math.PI;c=new pa(1,0,0,1,0,0);c.a=e;89>=b&&(c.b=Math.tan(d));this._scaleMatrix.x=c.a;this._scaleMatrix.y=c.b;this._pageMC.get_transform().set_matrix(c);this._pageMC._rotation=0;this._pageMC._angle=0;this._lp.get_point()},mask_rotation:null,get_mask_rotation:function(){return this._mask_js.get_rotation()*this._fx},mask_x:null,get_mask_x:function(){return this._mask_js.get_x()}, mask_y:null,get_mask_y:function(){return this._mask_js.get_y()},memoryDir:null,changedPageNum:null,get_changedPageNum:function(){var a=this._lp.get_point().x;if(3>Math.abs(a- -this._paperWidth)){if("right"==this.memoryDir)return this.memoryDir="left",1}else if(3>Math.abs(a-this._paperWidth)&&"left"==this.memoryDir)return this.memoryDir="right",-1;return 0},__class__:$f,__properties__:t(F.prototype.__properties__,{get_changedPageNum:"get_changedPageNum",get_mask_y:"get_mask_y",get_mask_x:"get_mask_x", get_mask_rotation:"get_mask_rotation",get_page:"get_page",set_pageB:"set_pageB",get_pageB:"get_pageB",set_pageA:"set_pageA",get_pageA:"get_pageA",get_staticPage:"get_staticPage"})});var Vc=function(a,b,c,d){this._backSpriteAlpha=1;this._backColor=16777215;this._dct_time=1;this._act_time=2;U.call(this);this._act_time=2;this._dct_time=1;this._width=c;this._height=d;this._pageWidth=c;this._pageHeight=d;this.c_mc1=new U;this.c_mc2=new U;this.addChild(this.c_mc1);this.addChild(this.c_mc2);this._page_a= a;this._page_b=b;null==this._page_a&&(this._page_a=new od,this._page_a.set_width(this._width),this._page_a.set_height(this._height));null==this._page_b&&(this._page_b=new od,this._page_b.set_width(this._width),this._page_b.set_height(this._height));this._index_a=this._page_a._pageIndex;this._index_b=this._page_b._pageIndex;this.c_mc1.addChild(this._page_a);this.c_mc2.addChild(this._page_b)};g["first.page.PageContainer"]=Vc;Vc.__name__=["first","page","PageContainer"];Vc.__super__=U;Vc.prototype=t(U.prototype, {_index_a:null,_index_b:null,c_mc1:null,c_mc2:null,_page_a:null,_page_b:null,_act_time:null,_dct_time:null,_pageWidth:null,_pageHeight:null,_backSprite:null,_backColor:null,_backSpriteAlpha:null,get_pageA:function(){return this._page_a},set_pageA:function(a){var b=this.resetPageA(a);a.drawPageInfo();return b},get_pageB:function(){return this._page_b},set_pageB:function(a){var b=this.resetPageB(a);a.drawPageInfo();return b},updateNewPage:function(){},resetPageA:function(a){if(null==a)return null;var b= null,c=0,d=0;if(null!=this._page_a&&null!=a&&this._page_a==a)return null;this.resetNewByHide(a);null!=this._page_a&&this._page_a.parent==this.c_mc1&&(a.move(this._page_a.get_x(),this._page_a.get_y()),b=this._page_a);this._page_a=a;null!=this._page_a&&(this._index_a=this._page_a._pageIndex);if(null!=this._page_a&&0==this.c_mc1.get_numChildren())return this.c_mc1.addChild(a),a.set_x(a.set_y(0)),a.move(0,0),Qb.delay(k(a,a.setActivateForDisplay),this._act_time),this.updateNewPage(),null;null!=b?(c=b.get_x(), d=b.get_y(),this.c_mc1.removeChild(b),this.c_mc1.removeAllChildren(),b.setDeactivateForDisplay()):0!=this.c_mc1.get_numChildren()&&(b=this.c_mc1.getChildAt(0),c=b.get_x(),d=b.get_y(),this.c_mc1.removeChild(b),this.c_mc1.removeAllChildren());this.c_mc1.addChild(a);a.move(c,d);Qb.delay(k(a,a.setActivateForDisplay),this._act_time);this.resetOldByHide(b);return b},resetPageB:function(a){if(null==a)return null;var b=null,c=0,d=0;if(null!=this._page_b&&null!=a&&this._page_b==a)return null;this.resetNewByHide(a); null!=this._page_b&&this._page_b.parent==this.c_mc2&&(a.move(this._page_a.get_x(),this._page_a.get_y()),b=this._page_b);this._page_b=a;this._index_b=this._page_b._pageIndex;if(0==this.c_mc2.get_numChildren())return this.c_mc2.addChild(a),a.set_x(a.set_y(0)),a.move(0,0),this.updateNewPage(),Qb.delay(k(a,a.setActivateForDisplay),this._act_time),null;null!=b?(c=b.get_x(),d=b.get_y(),this.c_mc2.removeChild(b),this.c_mc2.removeAllChildren(),b.setDeactivateForDisplay()):0!=this.c_mc2.get_numChildren()&& (b=this.c_mc2.getChildAt(0),c=b.get_x(),d=b.get_y(),this.c_mc2.removeChild(b),this.c_mc2.removeAllChildren());this.c_mc2.addChild(a);a.move(c,d);Qb.delay(k(a,a.setActivateForDisplay),this._act_time);this.resetOldByHide(b);return b},resetNewByHide:function(a){},resetOldByHide:function(a){},__class__:Vc,__properties__:t(U.prototype.__properties__,{set_pageB:"set_pageB",get_pageB:"get_pageB",set_pageA:"set_pageA",get_pageA:"get_pageA"})});var gm=function(a,b,c,d){this._pageCor=null;Vc.call(this,a,b, c,d);this._target=this.c_mc2;this._targetPoint=new Q;this._shadowBottom=null;this.testDrawPaper()};g["first.flipbook.PaperPage"]=gm;gm.__name__=["first","flipbook","PaperPage"];gm.__super__=Vc;gm.prototype=t(Vc.prototype,{_angle:null,_rotation:null,_target:null,_targetPoint:null,_pageCor:null,_shadowBottom:null,testDrawPaper:function(){this.c_mc1.get_graphics().clear();this.c_mc2.get_graphics().clear()},target:null,get_target:function(){return this._target},_static:null,get__static:function(){return this._target== this.c_mc1?this.c_mc2:this.c_mc1},get_targetPage:function(){return this._target==this.c_mc1?this.get_pageA():this.get_pageB()},updateNewPage:function(){this.setPageCor(this._pageCor)},setPageRot:function(a,b){this._angle=Math.atan2(this._targetPoint.y-b,this._targetPoint.x-a);var c=360*this._angle/Math.PI;this._target.set_rotation(c);this._rotation=c},setPageCor:function(a){this._pageCor=a;switch(a){case "TL":this._page_b.parent==this.c_mc2&&(this._page_b.set_x(-this._width),this._page_b.set_y(0)); this._page_a.parent==this.c_mc1&&(this._page_a.set_x(-this._width),this._page_a.set_y(0));this.c_mc1.set_x(0);this.c_mc1.set_y(0);this._target=this.c_mc1;this._targetPoint.x=-this._width;this._targetPoint.y=0;this.c_mc2.set_x(0);this.c_mc2.set_y(0);this.c_mc2.set_rotation(0);this.setChildIndex(this.c_mc1,this.get_numChildren()-1);break;case "TR":this._page_a.parent==this.c_mc1&&(this._page_a.set_x(0),this._page_a.set_y(0));this._page_b.parent==this.c_mc2&&(this._page_b.set_x(0),this._page_b.set_y(0)); this.c_mc2.set_x(0);this.c_mc2.set_y(0);this._target=this.c_mc2;this._targetPoint.x=this._width;this._targetPoint.y=0;this.c_mc1.set_x(0);this.c_mc1.set_y(0);this.c_mc1.set_rotation(0);this.setChildIndex(this.c_mc2,this.get_numChildren()-1);break;case "BL":this._page_b.parent==this.c_mc2&&(this._page_b.set_x(-this._width),this._page_b.set_y(0));this._page_a.parent==this.c_mc1&&(this._page_a.set_x(-this._width),this._page_a.set_y(-this._height));this._target=this.c_mc1;this.c_mc1.set_x(this._width); this.c_mc1.set_y(this._height);this._targetPoint.x=-this._width;this._targetPoint.y=this._height;this.c_mc2.set_x(0);this.c_mc2.set_y(0);this.c_mc2.set_rotation(0);this.setChildIndex(this.c_mc1,this.get_numChildren()-1);break;case "BR":this._page_a.parent==this.c_mc1&&(this._page_a.set_x(0),this._page_a.set_y(0)),this.c_mc1.set_x(0),this.c_mc1.set_y(0),this._page_b.parent==this.c_mc2&&(this._page_b.set_x(0),this._page_b.set_y(-this._height)),this.c_mc1.set_x(0),this.c_mc1.set_y(0),this.c_mc1.set_rotation(0), this._target=this.c_mc2,this._targetPoint.x=this._width,this._targetPoint.y=this._height,this.c_mc2.set_x(-this._width),this.c_mc2.set_y(this._height),this.setChildIndex(this.c_mc2,this.get_numChildren()-1)}this.testDrawPaper()},_leftOrRight:null,resetPagePos:function(a){this._leftOrRight=a;this._page_a.set_x(0);this._page_a.set_y(0);this.c_mc1.set_x(0);this.c_mc1.set_y(0);this.c_mc1.set_rotation(0);this._page_b.set_x(0);this._page_b.set_y(0);this.c_mc2.set_x(0);this.c_mc2.set_y(0);this.c_mc2.set_rotation(0); 1==a?(this._page_a.set_x(-this._width),this._page_b.set_x(-this._width),this.setChildIndex(this.c_mc2,this.get_numChildren()-1)):this.setChildIndex(this.c_mc1,this.get_numChildren()-1);this.testDrawPaper()},setPagePos:function(a){switch(a){case "TL":this._page_b.set_x(-this._width);this._page_b.set_y(0);this._page_a.set_x(-this._width);this._page_a.set_y(0);this._target=this.c_mc1;this.c_mc1.set_y(0);this.c_mc1.set_x(0);this.c_mc2.set_x(0);this.c_mc2.set_y(0);this.c_mc2.set_rotation(0);this.setChildIndex(this.c_mc1, this.get_numChildren()-1);break;case "TR":this._page_a.set_x(0);this._page_a.set_y(0);this.c_mc1.set_y(0);this.c_mc1.set_x(0);this._page_b.set_x(0);this._page_b.set_y(0);this._target=this.c_mc2;this.c_mc2.set_x(0);this.c_mc2.set_y(0);this.c_mc1.set_rotation(0);this.setChildIndex(this.c_mc2,this.get_numChildren()-1);break;case "BL":this._page_b.set_x(-this._width);this._page_b.set_y(0);this._page_a.set_x(-this._width);this._page_a.set_y(-this._height);this._target=this.c_mc1;this.c_mc1.set_x(0);this.c_mc1.set_y(0); this.c_mc2.set_y(0);this.c_mc2.set_x(0);this.c_mc2.set_rotation(0);this.setChildIndex(this.c_mc1,this.get_numChildren()-1);break;case "BR":this._page_a.set_x(0),this._page_a.set_y(0),this.c_mc1.set_x(0),this.c_mc1.set_y(0),this._page_b.set_x(0),this._page_b.set_y(-this._height),this._target=this.c_mc2,this.c_mc2.set_x(0),this.c_mc2.set_y(0),this.c_mc1.set_x(0),this.c_mc1.set_y(0),this.c_mc1.set_rotation(0),this.setChildIndex(this.c_mc2,this.get_numChildren()-1)}this.testDrawPaper()},__class__:gm, __properties__:t(Vc.prototype.__properties__,{get__static:"get__static",get_target:"get_target"})});var bq=function(){F.call(this);this.drawRadius(1024)};g["first.flipbook.SemiCircle"]=bq;bq.__name__=["first","flipbook","SemiCircle"];bq.__super__=F;bq.prototype=t(F.prototype,{size:null,set_size:function(a){this.size=a;this.drawRadius(a);return this.size},enable_mouse:function(a){this.mouseChildren=this.mouseEnabled=a},circleSegmentTo:function(a,b,c,d,e,f){d=Math.abs(d-c);var h=Math.floor(d/(Math.PI/ 4))+1;f=f*d/(2*h);var p=e/Math.cos(f);this.get_graphics().moveTo(a+Math.cos(c)*e,b+Math.sin(c)*e);for(var H=0;H=this._width||0>=this._height},setEmpty:function(){this._height=this._width=0},isValid:function(){return 0<=this._width&&0<=this._height},equals:function(a){return this._width==a._width&&this._height==a._height&&0==this.isEmpty()},reset:function(a,b){this._width=a;this._height=b},get_width:function(){return this._width}, set_width:function(a){return this._width=a},get_height:function(){return this._height},set_height:function(a){return this._height=a},toPoint:function(){return new Q(this._width,this._height)},__class__:cq,__properties__:{set_height:"set_height",get_height:"get_height",set_width:"set_width",get_width:"get_width"}};var Ve=function(a,b){null==b&&(b=0);null==a&&(a=-1);this._location=a;this._length=b};g["first.geom.Range"]=Ve;Ve.__name__=["first","geom","Range"];Ve.prototype={_location:null,_length:null, clone:function(){return new Ve(this._location,this._length)},isValid:function(){return this._location!=Ve.NotFound&&0=b&&this._location!=Ve.NotFound},containsRange:function(a){return this.contains(a._location,a._length)},copyFrom:function(a){this.moveLocation(a._location); this.resetLength(a._length);return a},moveLocation:function(a){this._location=a},resetLength:function(a){this._length=a},lastLocation:function(){return this._location==Ve.NotFound?Ve.NotFound:0>=this._length?this._location:this._location+this._length},toString:function(){return"{location: "+this._location+", length: "+this._length+"}"},__class__:Ve};var va=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=c;this.height=d};g["openfl.geom.Rectangle"]= va;va.__name__=["openfl","geom","Rectangle"];va.prototype={height:null,width:null,x:null,y:null,clone:function(){return new va(this.x,this.y,this.width,this.height)},contains:function(a,b){return a>=this.x&&b>=this.y&&a=a.width||0>=a.height?a.x>this.x&&a.y>this.y&&a.get_right()=this.x&&a.y>=this.y&&a.get_right()<= this.get_right()&&a.get_bottom()<=this.get_bottom()},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},equals:function(a){return null!=a&&this.x==a.x&&this.y==a.y&&this.width==a.width&&this.height==a.height},inflate:function(a,b){this.x-=a;this.width+=2*a;this.y-=b;this.height+=2*b},inflatePoint:function(a){this.inflate(a.x,a.y)},intersection:function(a){var b;b=this.xa.get_right()?a.get_right():this.get_right();if(c<=b)return new va; var d;d=this.ya.get_bottom()?a.get_bottom():this.get_bottom();return a<=d?new va:new va(b,d,c-b,a-d)},intersects:function(a){var b;b=this.xa.get_right()?a.get_right():this.get_right())<=b)return!1;b=this.ya.get_bottom()?a.get_bottom():this.get_bottom())>b},isEmpty:function(){return 0>=this.width||0>=this.height},offset:function(a,b){this.x+=a;this.y+=b},offsetPoint:function(a){this.x+= a.x;this.y+=a.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(a,b,c,d){this.x=a;this.y=b;this.width=c;this.height=d},toString:function(){return"(x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},union:function(a){if(0==this.width||0==this.height)return a.clone();if(0==a.width||0==a.height)return this.clone();var b;b=this.x>a.x?a.x:this.x;var c;c=this.get_right()a.y?a.y:this.y;a=this.get_bottom()< a.get_bottom()?a.get_bottom():this.get_bottom();return new va(b,d,c-b,a-d)},__contract:function(a,b,c,d){if(0!=this.width||0!=this.height)this.get_right(),this.get_bottom(),this.xa+c&&(this.width=a+c-this.x),this.get_bottom()>b+d&&(this.height=b+d-this.y)},__expand:function(a,b,c,d){if(0==this.width&&0==this.height)this.x=a,this.y=b,this.width=c,this.height=d;else{var e=this.get_right(),f=this.get_bottom();this.x>a&&(this.x=a,this.width=e-a);this.y> b&&(this.y=b,this.height=f-b);ed&&(d=h);p>f&&(f=p);h=b.a*(this.x+this.width)+b.c*(this.y+this.height);p=b.b*(this.x+this.width)+b.d*(this.y+this.height);hd&&(d=h);p>f&&(f=p);h=b.a*this.x+b.c*(this.y+this.height);p=b.b*this.x+b.d*(this.y+this.height);hd&&(d=h);p>f&&(f=p);a.setTo(c+b.tx,e+b.ty,d-c,f-e)},get_bottom:function(){return this.y+this.height},set_bottom:function(a){this.height=a-this.y;return a},get_bottomRight:function(){return new Q(this.x+this.width,this.y+this.height)},set_bottomRight:function(a){this.width=a.x-this.x;this.height=a.y-this.y;return a.clone()},get_left:function(){return this.x},set_left:function(a){this.width-= a-this.x;return this.x=a},get_right:function(){return this.x+this.width},set_right:function(a){this.width=a-this.x;return a},get_size:function(){return new Q(this.width,this.height)},set_size:function(a){this.width=a.x;this.height=a.y;return a.clone()},get_top:function(){return this.y},set_top:function(a){this.height-=a-this.y;return this.y=a},get_topLeft:function(){return new Q(this.x,this.y)},set_topLeft:function(a){this.x=a.x;this.y=a.y;return a.clone()},__class__:va,__properties__:{set_topLeft:"set_topLeft", get_topLeft:"get_topLeft",set_top:"set_top",get_top:"get_top",set_size:"set_size",get_size:"get_size",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_bottomRight:"set_bottomRight",get_bottomRight:"get_bottomRight",set_bottom:"set_bottom",get_bottom:"get_bottom"}};var gj=function(a,b,c,d,e,f){null==f&&(f=0);null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);va.call(this,0,0,0,0);this._scaleX=c;this._scaleY=d;this._scaleWidth=e;this._scaleHeight= f;this._baseSize=new cq;this._baseSize.reset(a,b);this.resetRealRect(this._scaleX*a,this._scaleY*b,this._scaleWidth*a,this._scaleHeight*b);this._isError=this.isErrorOnce()};g["first.geom.ScaleRectangle"]=gj;gj.__name__=["first","geom","ScaleRectangle"];gj.__super__=va;gj.prototype=t(va.prototype,{_scaleX:null,_scaleY:null,_scaleWidth:null,_scaleHeight:null,_baseSize:null,_isError:null,isError:function(){return this._isError},minX:function(){return this.x},minY:function(){return this.y},midX:function(){return this.x+ .5*this.width},midY:function(){return this.y+.5*this.height},maxX:function(){return this.x+this.width},maxY:function(){return this.y+this.height},isValid:function(){return!this._isError&&0<=this._baseSize._width&&0<=this._baseSize._height&&0<=this.width&&0<=this.height},isErrorOnce:function(){return this.isNaNBaseSize()&&this.isNaNRectangle()},isNaNBaseSize:function(){return isNaN(this._baseSize._width)||isNaN(this._baseSize._height)},isNaNRectangle:function(){return isNaN(this._scaleX)||isNaN(this._scaleY)|| isNaN(this._scaleWidth)||isNaN(this._scaleHeight)},isFiniteBaseSize:function(){return isFinite(this._baseSize._width)||isFinite(this._baseSize._height)},isFiniteRectangle:function(){return isFinite(this._scaleX)||isFinite(this._scaleY)||isFinite(this._scaleWidth)||isFinite(this._scaleHeight)},resetRealRect:function(a,b,c,d){this.x=a;this.y=b;this.width=c;this.height=d;this.get_size().x=this.width;this.get_size().y=this.height;this.set_left(a);this.set_top(b);this.set_right(this.get_left()+this.width); this.set_bottom(this.get_top()+this.height);this.get_topLeft().x=this.get_left();this.get_topLeft().y=this.get_top();this.get_bottomRight().x=this.get_right();this.get_bottomRight().y=this.get_bottom()},resetRect:function(a,b,c,d,e,f){null==f&&(f=0);null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this._baseSize.reset(a,b);this.resetRealRect(c*a,d*b,e*a,f*b);this._isError=this.isErrorOnce()},resetBaseSize:function(a,b){this._baseSize.reset(a,b);this.resetRealRect(this._scaleX* a,this._scaleY*b,this._scaleWidth*a,this._scaleHeight*b);this._isError=this.isErrorOnce()},resetBaseWidth:function(a){this.resetBaseSize(a,this._baseSize._height)},resetBaseHeight:function(a){this.resetBaseSize(this._baseSize._width,a)},resetScaleOffset:function(a,b,c,d){a=this._baseSize._width;b=this._baseSize._height;this.resetRealRect(this._scaleX*a,this._scaleY*b,this._scaleWidth*a,this._scaleHeight*b);this._isError=this.isErrorOnce()},resetScaleX:function(a){this._scaleX=a;this.resetScaleOffset(this._scaleX, this._scaleY,this._scaleWidth,this._scaleHeight)},resetScaleY:function(a){this._scaleY=a;this.resetScaleOffset(this._scaleX,this._scaleY,this._scaleWidth,this._scaleHeight)},resetScaleWidth:function(a){this._scaleWidth=a;this.resetScaleOffset(this._scaleX,this._scaleY,this._scaleWidth,this._scaleHeight)},resetScaleHeight:function(a){this._scaleHeight=a;this.resetScaleOffset(this._scaleX,this._scaleY,this._scaleWidth,this._scaleHeight)},scaleToString:function(){return"{{width: "+this._baseSize._width+ ", height: "+this._baseSize._height+"}, {location = x: "+this._scaleX+", y: "+this._scaleY+", width: "+this._scaleWidth+", height: "+this._scaleHeight+"}}"},__class__:gj});var Wl=function(a,b,c){this.callback=a;this.useCapture=b;this.priority=c};g["first.html5._EventSprite.ExtListener"]=Wl;Wl.__name__=["first","html5","_EventSprite","ExtListener"];Wl.prototype={callback:null,priority:null,useCapture:null,match:function(a,b){return this.callback==a&&this.useCapture==b},__class__:Wl};var Hf=function(a, b){null==b&&(b=0);null==a&&(a=0);this._compositeOperation=this._cacheBuffer=null;this._shadowOffsetX=this._shadowOffsetY=0;this._shadowColor=null;this._shadowBlur=0;this._strokeStyle=this._textFont=this._textAlign=null;this._lineWidth=1;this._fillStyle=null;this._isContentsDirty=this._isTransformDirty=!1;this._externalBound0=this._externalBound1=this._externalBound2=this._externalBound3=0;this._transform=null;this._width=this._height=this._centerX=this._centerY=0;F.call(this);this.set_x(0);this.set_y(0); this._width=a;this._height=b;this.initExternalBase();this.addEventListener(J.ADDED_TO_STAGE,k(this,this.onAddedToStage));this.addEventListener(J.REMOVED_FROM_STAGE,k(this,this.onRemoveFromStage))};g["first.html5.ExternalBase"]=Hf;Hf.__name__=["first","html5","ExternalBase"];Hf.__super__=F;Hf.prototype=t(F.prototype,{_width:null,_height:null,_centerX:null,_centerY:null,_transform:null,_externalBound0:null,_externalBound1:null,_externalBound2:null,_externalBound3:null,initExternalBase:function(){this.set_alpha(1); this.set_scaleX(1);this.set_scaleY(1);this.set_rotation(0);this.set_visible(!0);this._transform=new pa;this._centerY=this._centerX=0;this._externalBound0=this.get_x();this._externalBound1=this.get_y();this._externalBound2=this._width;this._externalBound3=this._height},drawNow:function(){},enable_mouse:function(a){this.mouseChildren=this.mouseEnabled=a},move:function(a,b){this.set_move(a,b)},set_move:function(a,b){this.set_x(a);this.set_y(b)},resize:function(a,b){this.set_size(a,b)},set_size:function(a, b){this.set_width(a);this.set_height(b)},onStageResize:function(a){},onAddedToStage:function(a){this.removeEventListener(J.ADDED_TO_STAGE,k(this,this.onAddedToStage));this.onAddedToStageCall(a);this.onStageResize(null)},onAddedToStageCall:function(a){},onRemoveFromStage:function(a){this.onRemoveFromStageCall(a);this.stage.removeEventListener(J.RESIZE,k(this,this.onStageResize));this.get_graphics().clear()},onRemoveFromStageCall:function(a){},removeAllChildren:function(){for(;0=this.get_alpha()||0>=this.__worldAlpha||0==this.get_visible())){0!=this._isTransformDirty&&this.updateExternalTransform();0!=this._isContentsDirty&&null!=this._cacheBuffer&&this.redrawCacheBuffer();var b=-this._centerX,c=-this._centerY,d=new pa;d.scale(Hf.prototype.get_scaleX.call(this),Hf.prototype.get_scaleY.call(this));d.rotate(Hf.prototype.get_rotation.call(this)*(Math.PI/180));d.translate(Hf.prototype.get_x.call(this),Hf.prototype.get_y.call(this));d.tx=d.tx+b*d.a+c*d.c;d.ty=d.ty+b*d.b+ c*d.d;a.transform(d.a,d.b,d.c,d.d,d.tx,d.ty);null!=a&&this.get_scrollRect();b=null;if(null!=this.get_mask())try{b=m.__cast(this.get_mask(),Rg)}catch(e){G.lastException=e,e instanceof q&&(e=e.val),b=null}null!=b&&(null!=this._cacheBuffer?(a.save(),a.translate(-this._externalBound0,-this._externalBound1),b.externalRender(a),a.restore()):b.externalRender(a),a.clip());1>this.get_alpha()&&(a.globalAlpha*=this.get_alpha());null!=this._compositeOperation&&(a.globalCompositeOperation=this._compositeOperation); null!=this._cacheBuffer?a.drawImage(this._cacheBuffer,0,0):(null!=this._shadowColor&&(a.shadowColor=this._shadowColor,a.shadowOffsetX=this._shadowOffsetX,a.shadowOffsetY=this._shadowOffsetY,a.shadowBlur=this._shadowBlur),this.drawSprite(a))}},renderBySession:function(a){null!=a&&(a=a.context,null!=a&&this.externalRender(a))},__renderCanvas:function(a){var b=a.context;null!=b&&b.save();vl.render(this,a);null!=b&&null!=this.get_scrollRect()&&(b.translate(-this.get_scrollRect().x,-this.get_scrollRect().y), b.beginPath(),b.moveTo(this.get_scrollRect().x,this.get_scrollRect().y),b.lineTo(this.get_scrollRect().get_right(),this.get_scrollRect().y),b.lineTo(this.get_scrollRect().get_right(),this.get_scrollRect().get_bottom()),b.lineTo(this.get_scrollRect().x,this.get_scrollRect().get_bottom()),b.lineTo(this.get_scrollRect().x,this.get_scrollRect().y),b.clip());null!=b&&null!=this.get_mask()&&this.externalRender(b);this.__renderCanvasSuper(a);null!=b&&b.restore()},__renderCanvasSuper:function(a){if(null!= a&&this.__renderable&&!(0>=this.__worldAlpha)){this.get_scrollRect();var b=a.context;null!=b&&b.save();for(var c=0,d=this.__children;c=this._width||0>= this._height||null==a||(a.closePath(),a.beginPath(),a.rect(0,0,this._width,this._height),null!=this._fillStyle&&(a.fillStyle=this._fillStyle,a.fill()))},drawBackFilled:function(a){var b;b=0>>16&255,d=b>>>8&255,b=b&255,h=.299*c+.587*d+.114*b,b=.299*c+.587*d+.114*b|0,c=d=h;a.setPixel(f,e,c<<16|d<<8|b);e++}f++}return a};yh.flipVertical=function(a){var b=new qb(a.width,a.height);try{for(var c=0,d=a.width;ca?a:b:b=a)return null;var b=null,b=this.getDragListItem(a);return null!=b?b.getItemText():null},getItemTextValues:function(){if(null==this._contentItems)return null;for(var a=[],b=1;b<=this._contentItems.length;){var c=null,c=this.getDragListItem(b);null!=c&&(c=c.getItemText(), null==c&&(c=""),a.push(c));b+=1}return a},selectItemAtIndex:function(a){if(null!=this._contentItems&&!(1>a&&a>this._contentItems.length)){var b=null,b=this.getDragListItem(a);null!=b&&(b._isChecked=!0,b.drawNow())}},deselectAllListItems:function(){if(null!=this._contentItems)for(var a=1;a<=this._contentItems.length;)this.deselectItemAtIndex(a),a+=1},deselectItemAtIndex:function(a){if(null!=this._contentItems&&!(1>a&&a>this._contentItems.length)){var b=null,b=this.getDragListItem(a);null!=b&&(b._isChecked= !1,b.drawNow())}},getListItemIndexByText:function(a){if(null==this._contentItems||null==a)return-1;for(var b=1;b<=this._contentItems.length;){var c=null,c=this.getDragListItem(b);if(null!=c&&c.getItemText()==a)return b;b+=1}return-1},getListItemIndexByItem:function(a){if(null==this._contentItems||0==de.arrayContainsValue(this._contentItems,a))return-1;for(var b=1;b<=this._contentItems.length;){var c=null,c=this.getDragListItem(b);if(null!=c&&c==a)return b;b+=1}return-1},getDragListItemIndex:function(a){if(0> a)return-1;throw new q(new O("\u6ca1\u6709\u9875\u9762\u7d22\u5f15"));},updateDragListItemByItem:function(a){this.getFixItemHandler(a)},addItemWithObjectValue:function(a){var b=this.getFixItemHandler(a);null!=b&&null!=this._contentItems&&null!=this._contentSprite&&0==de.arrayContainsValue(this._contentItems,b)&&(this._contentItems.push(b),this._contentSprite.addChild(b),this.resizeItemsLayout(),this.updateDragListItemByItem(a))},addItemWithObjectValues:function(a){if(null!=this._contentItems&&!(null== a||0>=a.length))for(var b=0;b=b?this._contentItems.splice(0<=b-1?b-1:0,0,c):b>this._contentItems.length?this._contentItems.push(c):this._contentItems.splice(0<=b-1?b-1:0,0,c),null!=this._contentSprite&&(this._contentSprite.addChild(c),this.resizeItemsLayout(),this.updateDragListItemByItem(a)))}}, removeAllItems:function(){if(null!=this._contentItems)for(var a=1;0a&&a>this._contentItems.length)return null;var b=null;return b=this.getDragListItem(a)},selectItemWithObjectValue:function(a){null!=this._contentItems&&(a=this.getListItemIndexByItem(a),0>=a||this.selectItemAtIndex(a))},indexOfItemWithObjectValue:function(a){return null==this._contentItems?-1:this.getListItemIndexByItem(a)},objectValueOfSelectedItem:function(){if(null== this._contentItems)return null;var a=this.indexOfSelectedItem();return 0>=a?null:this.getDragListItem(a)},__class__:hj});var ag=function(a,b,c,d,e,f,h){null==a&&(a=!0);hj.call(this,a,b,c,d,e,f,h)};g["first2.controls.TSListEvent"]=ag;ag.__name__=["first2","controls","TSListEvent"];ag.__super__=hj;ag.prototype=t(hj.prototype,{updateAllItems:function(a){if(null!=a&&null!=this._contentItems&&!(0>=this._contentItems.length))for(var b=1;b<=this._contentItems.length;){var c=null,c=this.getDragListItem(b); null!=c&&null!=a&&a(c);b+=1}},updateAllItemsWidth:function(a){var b=this;null!=this._contentItems&&(0>=this._contentItems.length||this.updateAllItems(function(c){var d=b.getFixItemHandler(c);null!=d&&d.resize(a,c._height)}))},updateAllItemsHeight:function(a){var b=this;null!=this._contentItems&&(0>=this._contentItems.length||this.updateAllItems(function(c){var d=b.getFixItemHandler(c);null!=d&&d.resize(c._width,a)}))},updateAllItemsShowMode:function(a){var b=this;null!=this._contentItems&&(0>=this._contentItems.length|| this.updateAllItems(function(c){c=b.getFixItemHandler(c);null!=c&&c.setShowState(a)}))},createListItemByItemInfo:function(a,b,c,d,e,f,h){null==h&&(h="");null==f&&(f=32);null==e&&(e=32);null==d&&(d=!1);null==c&&(c="");a=this._listItemWidth;b=this._listItemHeight;a=new zh(a,b,c,d,e,f,h);a.set_textColor(T.ControlFontColor());a.set_textFontName(T.ControlFontName());return a},addTextItemWithStringValue:function(a,b,c){null==a&&(a="");null==a&&(a="");b=this._listItemWidth;c=this._listItemHeight;b=this.createListItemByItemInfo(b, c,a);b.setItemText(a);b.resizeItemsLayout();this.addItemWithObjectValue(b)},insertTextItemWithStringValue:function(a,b,c,d){null==a&&(a="");null==a&&(a="");b=this._listItemWidth;c=this._listItemHeight;a=this.createListItemByItemInfo(b,c,a);this.insertItemWithObject(a,d)},removeTextItemWithStringValue:function(a){null==a&&(a="");null==a&&(a="");a=this.getListItemIndexByText(a);0>=a||(a=this.getDragListItem(a),null!=a&&this.removeItemWithObjectValue(a))},__class__:ag});var fi=function(a,b,c,d,e,f,h){null== c&&(c=240);null==b&&(b=120);null==a&&(a=!0);this.LIST_ITEM_HEIGHT=32;ag.call(this,a,b,c,d,e,f,h);0=a.length)a=Sg.Text;this._listItemShowMode=a},doDragListItemClicked:function(a){var b= null,b=this.getFixItemHandler(a);null!=b&&(this.deselectAllListItems(),this.selectItemWithObjectValue(b))},onTSListItemClicked:function(a){null!=a&&null!=a._data&&(a=this.getFixItemHandler(a._data._trigger),null!=a&&this.doDragListItemClicked(a))},onTSListStepMouseDown:function(a){null!=a&&null!=a._data&&(a=this.getFixStepHandler(a._data._trigger),null!=a&&a==this._leftStep&&ag.prototype.doDragListStepMouseDown.call(this,a),null!=a&&a==this._rightStep&&ag.prototype.doDragListStepMouseDown.call(this, a))},onTSListStepMouseUp:function(a){null!=a&&null!=a._data&&this.getFixStepHandler(a._data._trigger)},__class__:fi});var gi=function(a,b,c,d,e,f,h){null==c&&(c=240);null==b&&(b=120);null==a&&(a=!0);fi.call(this,a,b,c,d,e,f,h)};g["first.language.LanguageBase"]=gi;gi.__name__=["first","language","LanguageBase"];gi.__super__=fi;gi.prototype=t(fi.prototype,{getFixItemHandler:function(a){return a},getFixStepHandler:function(a){return a},createStep:function(a){return new im(a,this.getFrameHeight(),this.getFrameHeight(), this._isVertical)},addSprite:function(){this._leftStep=this.createStep(!0);this._rightStep=this.createStep(!1)},createListItemByItemInfo:function(a,b,c,d,e,f,h){null==h&&(h="");null==f&&(f=32);null==e&&(e=32);null==d&&(d=!1);null==c&&(c="");a=this._listItemWidth;b=this._listItemHeight;a=new jm(a,b,c,d,e,f,h);a.set_textColor(T.ControlFontColor());a.set_textFontName(T.ControlFontName());return a},updateDragListItemByItem:function(a){this.getFixItemHandler(a)},__class__:gi});var he=function(){};g["first.language.LanguageMapKey"]= he;he.__name__=["first","language","LanguageMapKey"];var Aa=function(){};g["first.language.LanguageInfos"]=Aa;Aa.__name__=["first","language","LanguageInfos"];Aa.init=function(){0==Aa.isInit&&(Aa.isInit=!0,null==Aa.languageMap&&(Aa.languageMap=new fa),Aa.initMapInfos())};Aa.languageKeys=function(){Aa.init();for(var a=[],b=Aa.languageMap.keys();b.hasNext();){var c=b.next();a.push(c)}2<=a.length&&a.sort(ij.sortCmpString);return a};Aa.printInfos=function(){Aa.init();for(var a=Aa.languageKeys(),b=0;b< a.length;){var c=a[b];++b;c=n.get(Aa.languageMap,c);n.get(c,he.LanguageName);n.get(c,he.LanguageEnglish);n.get(c,he.LanguageChinese);null}};Aa.languageID=function(a){return Aa.getLangValue(a,he.LanguageID)};Aa.languageName=function(a){return Aa.getLangValue(a,he.LanguageName)};Aa.languageEnglish=function(a){return Aa.getLangValue(a,he.LanguageEnglish)};Aa.languageChinese=function(a){return Aa.getLangValue(a,he.LanguageChinese)};Aa.languageXmlKey=function(a){return Aa.getLangValue(a,he.LanguageXmlKey)}; Aa.languageVersion=function(a){return Aa.getLangValue(a,he.LanguageVersion)};Aa.getLangInfo=function(a){Aa.init();return null==a||0>=a.length?null:n.get(Aa.languageMap,a)};Aa.getLangValue=function(a,b){if(null==a||0>=a.length)return null;var c=Aa.getLangInfo(a);return null==c?null:n.get(c,b)};Aa.initMapInfos=function(){if(0==Aa.isInit2){Aa.isInit2=!0;null==Aa.languageMap&&(Aa.languageMap=new fa);var a=null,a=new fa;n.set2(a,"ar","LanguageID");n.set2(a,"\u0627\u0644\u0639\u0631\u0628\u064a\u0629\u200e", "LanguageName");n.set2(a,"Arabic","LanguageEnglish");n.set2(a,"\u963f\u62c9\u4f2f\u8bed","LanguageChinese");n.set2(a,"language.ar.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Arabic",a);a=new fa;n.set2(a,"be","LanguageID");n.set2(a,"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f","LanguageName");n.set2(a,"Belarusian","LanguageEnglish");n.set2(a,"\u767d\u4fc4\u7f57\u65af\u8bed","LanguageChinese");n.set2(a,"language.be.xml", "LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Belarusian",a);a=new fa;n.set2(a,"bg","LanguageID");n.set2(a,"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438","LanguageName");n.set2(a,"Bulgarian","LanguageEnglish");n.set2(a,"\u4fdd\u52a0\u5229\u4e9a\u8bed","LanguageChinese");n.set2(a,"language.bg.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Bulgarian",a);a=new fa; n.set2(a,"ca","LanguageID");n.set2(a,"Catal\u00e0","LanguageName");n.set2(a,"Catalan","LanguageEnglish");n.set2(a,"\u52a0\u6cf0\u7f57\u5c3c\u4e9a\u8bed","LanguageChinese");n.set2(a,"language.ca.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Catalan",a);a=new fa;n.set2(a,"cs","LanguageID");n.set2(a,"\u010ce\u0161tina","LanguageName");n.set2(a,"Czech","LanguageEnglish");n.set2(a,"\u6377\u514b\u8bed","LanguageChinese");n.set2(a,"language.cs.xml", "LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Czech",a);a=new fa;n.set2(a,"da","LanguageID");n.set2(a,"Dansk","LanguageName");n.set2(a,"Danish","LanguageEnglish");n.set2(a,"\u4e39\u9ea6\u8bed","LanguageChinese");n.set2(a,"language.da.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Danish",a);a=new fa;n.set2(a,"de","LanguageID");n.set2(a,"Deutsch","LanguageName");n.set2(a, "German","LanguageEnglish");n.set2(a,"\u5fb7\u56fd\u8bed","LanguageChinese");n.set2(a,"language.de.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"German",a);a=new fa;n.set2(a,"el","LanguageID");n.set2(a,"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac","LanguageName");n.set2(a,"Greek","LanguageEnglish");n.set2(a,"\u5e0c\u814a\u8bed","LanguageChinese");n.set2(a,"language.el.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion"); n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Greek",a);a=new fa;n.set2(a,"en","LanguageID");n.set2(a,"English","LanguageName");n.set2(a,"English","LanguageEnglish");n.set2(a,"\u82f1\u8bed","LanguageChinese");n.set2(a,"language.en.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"English",a);a=new fa;n.set2(a,"es","LanguageID");n.set2(a,"Espa\u00f1ol","LanguageName");n.set2(a,"Spanish","LanguageEnglish");n.set2(a,"\u897f\u73ed\u7259\u8bed", "LanguageChinese");n.set2(a,"language.es.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Spanish",a);a=new fa;n.set2(a,"et","LanguageID");n.set2(a,"Eesti","LanguageName");n.set2(a,"Estonian","LanguageEnglish");n.set2(a,"\u7231\u6c99\u5c3c\u4e9a\u8bed","LanguageChinese");n.set2(a,"language.et.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Estonian",a);a=new fa;n.set2(a, "eu","LanguageID");n.set2(a,"Euskara","LanguageName");n.set2(a,"Basque","LanguageEnglish");n.set2(a,"\u5df4\u65af\u514b\u8bed","LanguageChinese");n.set2(a,"language.eu.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Basque",a);a=new fa;n.set2(a,"fa","LanguageID");n.set2(a,"\u0641\u0627\u0631\u0633\u064a","LanguageName");n.set2(a,"Persian","LanguageEnglish");n.set2(a,"\u6ce2\u65af\u8bed","LanguageChinese");n.set2(a,"language.fa.xml", "LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Persian",a);a=new fa;n.set2(a,"fi","LanguageID");n.set2(a,"Suomi","LanguageName");n.set2(a,"Finnish","LanguageEnglish");n.set2(a,"\u82ac\u5170\u8bed","LanguageChinese");n.set2(a,"language.fi.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Finnish",a);a=new fa;n.set2(a,"fr","LanguageID");n.set2(a,"Fran\u00e7ais","LanguageName"); n.set2(a,"French","LanguageEnglish");n.set2(a,"\u6cd5\u56fd\u8bed","LanguageChinese");n.set2(a,"language.fr.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"French",a);a=new fa;n.set2(a,"he","LanguageID");n.set2(a,"\u05ea\u05d9\u05e8\u05b4\u05d1\u05b0\u05e2\u05b4","LanguageName");n.set2(a,"Hebrew","LanguageEnglish");n.set2(a,"\u5e0c\u4f2f\u6765\u8bed","LanguageChinese");n.set2(a,"language.he.xml","LanguageXmlKey");n.set2(a,"1.0.0", "LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Hebrew",a);a=new fa;n.set2(a,"hr","LanguageID");n.set2(a,"Hrvatski","LanguageName");n.set2(a,"Hrvatska","LanguageEnglish");n.set2(a,"\u514b\u7f57\u5730\u4e9a\u8bed","LanguageChinese");n.set2(a,"language.hr.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Hrvatska",a);a=new fa;n.set2(a,"hu","LanguageID");n.set2(a,"Magyar","LanguageName");n.set2(a,"Hungarian", "LanguageEnglish");n.set2(a,"\u5308\u7259\u5229\u8bed","LanguageChinese");n.set2(a,"language.hu.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Hungarian",a);a=new fa;n.set2(a,"id","LanguageID");n.set2(a,"Indonesia","LanguageName");n.set2(a,"Indonesian","LanguageEnglish");n.set2(a,"\u5370\u5ea6\u5c3c\u897f\u4e9a\u8bed","LanguageChinese");n.set2(a,"language.id.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"", "LanguageTranslators");n.set(Aa.languageMap,"Indonesian",a);a=new fa;n.set2(a,"it","LanguageID");n.set2(a,"Italiano","LanguageName");n.set2(a,"Italian","LanguageEnglish");n.set2(a,"\u610f\u5927\u5229\u8bed","LanguageChinese");n.set2(a,"language.it.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Italian",a);a=new fa;n.set2(a,"ja","LanguageID");n.set2(a,"\u65e5\u672c\u8a9e","LanguageName");n.set2(a,"Japanese","LanguageEnglish");n.set2(a, "\u65e5\u672c\u8bed","LanguageChinese");n.set2(a,"language.ja.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Japanese",a);a=new fa;n.set2(a,"ka","LanguageID");n.set2(a,"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8","LanguageName");n.set2(a,"Georgian","LanguageEnglish");n.set2(a,"\u683c\u9c81\u5409\u4e9a\u8bed","LanguageChinese");n.set2(a,"language.ka.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators"); n.set(Aa.languageMap,"Georgian",a);a=new fa;n.set2(a,"ko","LanguageID");n.set2(a,"\ud55c\uad6d\uc5b4","LanguageName");n.set2(a,"Korean","LanguageEnglish");n.set2(a,"\u97e9\u56fd\u8bed","LanguageChinese");n.set2(a,"language.ko.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Korean",a);a=new fa;n.set2(a,"lv","LanguageID");n.set2(a,"Latvie\u0161u","LanguageName");n.set2(a,"Latvian","LanguageEnglish");n.set2(a,"\u62c9\u8131\u7ef4\u4e9a\u8bed", "LanguageChinese");n.set2(a,"language.lv.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Latvian",a);a=new fa;n.set2(a,"my","LanguageID");n.set2(a,"\u1019\u103c\u1014\u103a\u1019\u102c","LanguageName");n.set2(a,"Burmese","LanguageEnglish");n.set2(a,"\u7f05\u7538\u8bed","LanguageChinese");n.set2(a,"language.my.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Burmese", a);a=new fa;n.set2(a,"nl","LanguageID");n.set2(a,"Nederlands","LanguageName");n.set2(a,"Dutch","LanguageEnglish");n.set2(a,"\u83cf\u5170\u8bed","LanguageChinese");n.set2(a,"language.nl.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Dutch",a);a=new fa;n.set2(a,"nb","LanguageID");n.set2(a,"Norsk bokm\u00e5l","LanguageName");n.set2(a,"Norwegian (Bokmal)","LanguageEnglish");n.set2(a,"\u632a\u5a01\u8bed\uff08\u5df4\u514b\u6469\u632a\u5a01\u8bed\uff09", "LanguageChinese");n.set2(a,"language.nb.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Norwegian (Bokmal)",a);a=new fa;n.set2(a,"nn","LanguageID");n.set2(a,"Norsk Nynorsk","LanguageName");n.set2(a,"Norwegian (Nynorsk)","LanguageEnglish");n.set2(a,"\u632a\u5a01\u8bed\uff08\u8010\u8bfa\u65af\u514b\u632a\u5a01\u8a9e\uff09","LanguageChinese");n.set2(a,"language.nn.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a, "","LanguageTranslators");n.set(Aa.languageMap,"Norwegian (Nynorsk)",a);a=new fa;n.set2(a,"pl","LanguageID");n.set2(a,"Polski","LanguageName");n.set2(a,"Polish","LanguageEnglish");n.set2(a,"\u6ce2\u5170\u8bed","LanguageChinese");n.set2(a,"language.pl.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Polish",a);a=new fa;n.set2(a,"pt","LanguageID");n.set2(a,"Portugu\u00eas","LanguageName");n.set2(a,"Portuguese","LanguageEnglish");n.set2(a, "\u8461\u8404\u7259\u8bed","LanguageChinese");n.set2(a,"language.pt.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Portuguese",a);a=new fa;n.set2(a,"pt-BR","LanguageID");n.set2(a,"Portugu\u00eas (Brasil)","LanguageName");n.set2(a,"Portuguese (Brazilian)","LanguageEnglish");n.set2(a,"\u8461\u8404\u7259\u8bed (\u5df4\u897f)","LanguageChinese");n.set2(a,"language.pt-BR.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a, "","LanguageTranslators");n.set(Aa.languageMap,"Portuguese (Brazilian)",a);a=new fa;n.set2(a,"ro","LanguageID");n.set2(a,"Rom\u00e2nia","LanguageName");n.set2(a,"Rom\u00e2n\u0103","LanguageName");n.set2(a,"Romanian","LanguageEnglish");n.set2(a,"\u7f57\u9a6c\u5c3c\u4e9a\u8bed","LanguageChinese");n.set2(a,"language.ro.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Romanian",a);a=new fa;n.set2(a,"ru","LanguageID");n.set2(a,"\u0420\u0443\u0441\u0441\u043a\u0438\u0439", "LanguageName");n.set2(a,"Russian","LanguageEnglish");n.set2(a,"\u4fc4\u7f57\u65af\u8bed","LanguageChinese");n.set2(a,"language.ru.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Russian",a);a=new fa;n.set2(a,"sk","LanguageID");n.set2(a,"Sloven\u010dina","LanguageName");n.set2(a,"Slovak","LanguageEnglish");n.set2(a,"\u65af\u6d1b\u4f10\u514b\u8bed","LanguageChinese");n.set2(a,"language.sk.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion"); n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Slovak",a);a=new fa;n.set2(a,"sl","LanguageID");n.set2(a,"Sloven\u0161\u010dina","LanguageName");n.set2(a,"Slovenian","LanguageEnglish");n.set2(a,"\u65af\u6d1b\u6587\u5c3c\u4e9a\u8bed","LanguageChinese");n.set2(a,"language.sl.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Slovenian",a);a=new fa;n.set2(a,"sv","LanguageID");n.set2(a,"Svenska","LanguageName");n.set2(a,"Swedish", "LanguageEnglish");n.set2(a,"\u745e\u5178\u8bed","LanguageChinese");n.set2(a,"language.sv.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Swedish",a);a=new fa;n.set2(a,"th","LanguageID");n.set2(a,"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22","LanguageName");n.set2(a,"Thai","LanguageEnglish");n.set2(a,"\u6cf0\u6587\u5b57","LanguageChinese");n.set2(a,"language.th.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"", "LanguageTranslators");n.set(Aa.languageMap,"Thai",a);a=new fa;n.set2(a,"tr","LanguageID");n.set2(a,"T\u00fcrk\u00e7e","LanguageName");n.set2(a,"Turkish","LanguageEnglish");n.set2(a,"\u571f\u8033\u5176\u8bed","LanguageChinese");n.set2(a,"language.tr.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Turkish",a);a=new fa;n.set2(a,"uk","LanguageID");n.set2(a,"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430","LanguageName"); n.set2(a,"Ukrainian","LanguageEnglish");n.set2(a,"\u4e4c\u514b\u5170\u8bed","LanguageChinese");n.set2(a,"language.uk.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Ukrainian",a);a=new fa;n.set2(a,"uz","LanguageID");n.set2(a,"\u040e\u0437\u0431\u0435\u043a\u0447\u0430","LanguageName");n.set2(a,"Uzbek","LanguageEnglish");n.set2(a,"\u4e4c\u5179\u522b\u514b\u8bed","LanguageChinese");n.set2(a,"language.uz.xml","LanguageXmlKey");n.set2(a, "1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Uzbek",a);a=new fa;n.set2(a,"vi","LanguageID");n.set2(a,"Ti\u1ebfng Vi\u1ec7t","LanguageName");n.set2(a,"Vietnamese","LanguageEnglish");n.set2(a,"\u8d8a\u5357\u8bed","LanguageChinese");n.set2(a,"language.vi.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Vietnamese",a);a=new fa;n.set2(a,"zh-cn","LanguageID");n.set2(a,"zh-Hans","LanguageID");n.set2(a, "\u7b80\u4f53\u4e2d\u6587","LanguageName");n.set2(a,"Chinese (Simplified)","LanguageEnglish");n.set2(a,"\u7b80\u4f53\u4e2d\u6587","LanguageChinese");n.set2(a,"language.zh-cn.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Chinese",a);a=new fa;n.set2(a,"zh-cn","LanguageID");n.set2(a,"zh-Hans","LanguageID");n.set2(a,"\u7b80\u4f53\u4e2d\u6587","LanguageName");n.set2(a,"Chinese (Simplified)","LanguageEnglish");n.set2(a,"\u7b80\u4f53\u4e2d\u6587", "LanguageChinese");n.set2(a,"language.zh-cn.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Chinese (Simplified)",a);a=new fa;n.set2(a,"zh-hk","LanguageID");n.set2(a,"\u7e41\u9ad4\u4e2d\u6587(\u9999\u6e2f)","LanguageName");n.set2(a,"Chinese (Hong Kong)","LanguageEnglish");n.set2(a,"\u7e41\u9ad4\u4e2d\u6587(\u9999\u6e2f)","LanguageChinese");n.set2(a,"language.zh-hk.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a, "","LanguageTranslators");n.set(Aa.languageMap,"Chinese (Hong Kong)",a);a=new fa;n.set2(a,"zh-tw","LanguageID");n.set2(a,"zh-Hant","LanguageID");n.set2(a,"\u7e41\u9ad4\u4e2d\u6587(\u53f0\u6e7e)","LanguageName");n.set2(a,"Chinese (Taiwan)","LanguageEnglish");n.set2(a,"\u7e41\u9ad4\u4e2d\u6587(\u53f0\u6e7e)","LanguageChinese");n.set2(a,"language.zh-tw.xml","LanguageXmlKey");n.set2(a,"1.0.0","LanguageVersion");n.set2(a,"","LanguageTranslators");n.set(Aa.languageMap,"Chinese (Taiwan)",a)}};var zh=function(a, b,c,d,e,f,h){null==h&&(h="");null==f&&(f=32);null==e&&(e=32);null==d&&(d=!1);null==b&&(b=10);null==a&&(a=10);this._isCenterText=!1;this._itemLabel=null;this._showState=Sg.Text;this._iconWidth=this._iconHeight=0;this._iconSpace=1;this._IsShow=this._IsEnable=!0;Oa.call(this,a,b);this._isFill=this.buttonMode=!0;this._isStroke=!1;this._canCheck=!0;this._isDrawFill=!1;this._isDrawCheck=this._isDrawDown=this._isDrawOver=this._isDrawFill=!0;this._showState=0==d?Sg.Text:Sg.ImageText;this._iconWidth=e;this._iconHeight= f;this._bitmapUrl=h;this._iconSprite=new Yi(null);this._iconSprite.setScale(a,b);this.addChild(this._iconSprite);this._iconSprite.buttonMode=!0;this._iconSprite.enable_mouse(!1);this._itemLabel=new Sd(a,b);this.addChild(this._itemLabel);this._itemLabel.set_wordWrap(!1);a=null;a=this._itemLabel.textField;a._size=12;a.set_text("");a.updateTextFormat();this._clickedFunc=null;this._downSprite=new vb(this._width,this._height,7829367,.8,6710886,1,10066329,.8,6710886,1);this._downSprite.set_alpha(.01);this._downSprite._alpha= .01;this._downSprite.set_visible(!1);this.addChildAt(this._downSprite,0);this._downSprite.enable_mouse(!1);this.setShowState(this._showState)};g["first2.controls.TSListItem"]=zh;zh.__name__=["first2","controls","TSListItem"];zh.__super__=Oa;zh.prototype=t(Oa.prototype,{_IsShow:null,_IsEnable:null,_iconSpace:null,_iconWidth:null,_iconHeight:null,_iconSprite:null,_showState:null,_itemLabel:null,_isCenterText:null,_downSprite:null,reloadData:function(){},drawText:function(){null!=this._itemLabel&&this._itemLabel.drawText()}, getItemText:function(){return null!=this._itemLabel&&null!=this._itemLabel.textField?this._itemLabel.textField.get_text():null},setItemText:function(a){null==a&&(a="");null!=this._itemLabel&&null!=this._itemLabel.textField&&(this._itemLabel.setText(a),this._itemLabel.textField.set_text(a))},set_textColor:function(a){null==a&&(a=0);Oa.prototype.set_textColor.call(this,a);null!=this._itemLabel&&this._itemLabel.set_textColor(a)},set_textFontName:function(a){null==a&&(a="Tahoma");Oa.prototype.set_textFontName.call(this, a);null!=this._itemLabel&&this._itemLabel.set_textFontName(a)},destroy:function(){Oa.prototype.destroy.call(this)},resize:function(a,b){this._downSprite.resize(a,b);Oa.prototype.resize.call(this,a,b);this.resizeItemsLayout();this.set_scaleX(this.set_scaleY(1))},resizeIconSize:function(a,b){null==b&&(b=32);null==a&&(a=32);this._iconWidth=a;this._iconHeight=b;null!=this._iconSprite&&this._iconSprite.setScale(a,b)},getItemPixelWidth:function(){var a=1;0!=this._iconSprite.get_visible()&&(a+=this._iconSprite._width, a+=this._iconSpace);if(0!=this._itemLabel.get_visible())var b=this._itemLabel.textField.getTextWidth(),a=a+(b+8);return y["int"](a+1)},getItemPixelHeight:function(){var a=0,b=0;0!=this._iconSprite.get_visible()&&(a+=this._iconSprite._height);if(0!=this._itemLabel.get_visible())var c=this._itemLabel.textField.getTextHeight(),b=b+(c+8);return y["int"](Math.max(a,b))},resizeItemsLayout:function(){var a=0,b=0,a=this._iconSpace;0==this._itemLabel.get_visible()&&(a=.5*(this._width-this._iconSprite._width)); b=.5*(this._height-this._iconSprite._height);this._iconSprite.move(a,b);b=a=1;0!=this._iconSprite.get_visible()&&(a=this._iconSprite.get_right()-2);var c=this._width-2,d=this._height;0!=this._iconSprite.get_visible()&&(c=this._width-2-a);this.resizeLabelLayoutByRectangle(new va(a,b,c,d))},resizeLabelLayoutByRectangle:function(a){if(null!=this._itemLabel&&0!=this._itemLabel.get_visible()){this._itemLabel.resize(a.width,a.height);var b=this._itemLabel.textField.getTextWidth(),c=this._itemLabel.textField.getTextHeight(); a.x=a.y=0;this._itemLabel.textField.resize(a.width-2,a.height-2);b=a.x+.5*(a.width-(b+Tb.textSpace));c=a.y+.5*(a.height-(c+Tb.textSpace));0==this._isCenterText&&(b=a.x+2);this._itemLabel.textField.move(b,c)}},setShowState:function(a){null!=a&&(this._showState=a,this._showState==Sg.Text?(this._itemLabel.set_visible(!0),this._iconSprite.set_visible(!1)):(this._showState==Sg.Image?this._itemLabel.set_visible(!1):this._itemLabel.set_visible(!0),this._iconSprite.set_visible(!0)),this.resize(this._width, this._height))},onMouseOver:function(a){Oa.prototype.onMouseOver.call(this,a);this._downSprite.onMouseOver(a)},onMouseOut:function(a){Oa.prototype.onMouseOut.call(this,a);this._downSprite.onMouseOut(a)},onMouseMove:function(a){Oa.prototype.onMouseMove.call(this,a);this._downSprite.onMouseMove(a)},onMouseClick:function(a){Oa.prototype.onMouseClick.call(this,a)},onMouseDown:function(a){Oa.prototype.onMouseDown.call(this,a);this._downSprite.onMouseDown(a);R.getInstance().dispatchEvent(new ja(v.LISTSPRITEITEM_CLICK, new na(this,null,null)))},onMouseUp:function(a){Oa.prototype.onMouseUp.call(this,a);this._downSprite.onMouseUp(a)},__class__:zh});var jm=function(a,b,c,d,e,f,h){null==h&&(h="");null==f&&(f=32);null==e&&(e=32);null==d&&(d=!1);null==c&&(c="");null==b&&(b=10);null==a&&(a=10);zh.call(this,a,b,c,d,e,f,h)};g["first.language.LanguageItem"]=jm;jm.__name__=["first","language","LanguageItem"];jm.__super__=zh;jm.prototype=t(zh.prototype,{__class__:jm});var fb=function(){};g["first.language.LanguageKey"]=fb; fb.__name__=["first","language","LanguageKey"];var pk=function(a,b,c,d,e,f,h){null==c&&(c=240);null==b&&(b=120);null==a&&(a=!0);gi.call(this,a,b,c,d,e,f,h);this._backColor=15592941;this._backSprite._fillStyle=15592941;this._backSprite._strokeStyle=16777215};g["first.language.LanguageSprite"]=pk;pk.__name__=["first","language","LanguageSprite"];pk.__super__=gi;pk.prototype=t(gi.prototype,{doDragListItemClicked:function(a){gi.prototype.doDragListItemClicked.call(this,a);a=this.indexOfSelectedItem(); R.getInstance().dispatchEvent(new ja(v.LANGUAGELIST_CHANGE,new na(this,a,null)));a=0;for(var b=this._contentItems;a=this._linkIndex||this._linkIndex>this._linkFlipBook.getTotalPageCount()?!1:!0},invokeAction:function(){if(this.isValid()){var a=this._linkFlipBook;if(0=k||0>=l||(a=Gd.scaleWidthHeight(H,g,k,l),H*=a,g*=a,l=c+(.5*l|0),b=p==Ic.LEFT?b|0:p==Ic.CENTER?b+(.5*k|0)-.5*H|0:p==Ic.RIGHT?this._width-d-H|0:p==Ic.IN?0!=this._isLeftPage? f:this._width-f-H|0:p==Ic.OUT?0!=this._isLeftPage?this._width-f-H|0:f:b,c=h==Ic.TOP?c:h==Ic.CENTER?l-.5*g|0:h==Ic.RIGHT?this._height-e-g|0:l-.5*g|0,this._contentSprite.move(b,c),this._contentSprite.set_scaleX(a),this._contentSprite.set_scaleY(a))}}},__class__:Bh});var Ug=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this._isTextsLoaded=this._isLinksLoaded=this._isSearchsLoaded=this._isLoadCompleted=!1;this._canLoadLinks=this._canLoadTexts=this._canLoadSearchs=!0;Bh.call(this, a,b,c,d);this._searchClass=this._textClass=null;this._canLoadSearchs=this._canLoadTexts=this._canLoadLinks=!0;this._isSearchsLoaded=this._isTextsLoaded=this._isLinksLoaded=!1;this._linkSprites=[];this._textSprites=[];this._searchSprites=[]};g["first.page.BasePageObjects"]=Ug;Ug.__name__=["first","page","BasePageObjects"];Ug.__super__=Bh;Ug.prototype=t(Bh.prototype,{_canLoadLinks:null,_canLoadTexts:null,_canLoadSearchs:null,_strTexts:null,_textClass:null,_textSprites:null,_textContainer:null,_isTextsLoaded:null, _xmlLinks:null,_linkSprites:null,_linkContainer:null,_isLinksLoaded:null,_xmlSearchs:null,_searchClass:null,_searchSprites:null,_searchContainer:null,_isSearchsLoaded:null,_isLoadCompleted:null,destroy:function(){this.clearAllLinkSprites();this.clearAllTextSprites();for(this.clearAllSearchSprites();null!=this._objectsSprite&&0=this._pageIndex)&&0!=this._contentWidth&&0!=this._contentHeight&&0!=this.isShowEncrypted()){var b=function(b){var d;try{d=m.__cast(b,Vg)}catch(e){if(G.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,O))d=null;else throw e;}null!=d&&a.resetAllTextSprites(d)};0!=this._canLoadTexts&&0!=this._isContentLoaded&&0==this._isTextsLoaded&&Ad.getInstance().asyncPageTextClassByIndex(this._pageIndex, this._contentWidth,this._contentHeight,b)}},unloadTextForDisplay:function(){this.clearAllTextSprites()},clearAllTextSprites:function(){if(0!=this._isTextsLoaded&&(null!=this._textClass&&(this._textClass.unloadPageTextXML(),this._textClass.destroy(),this._textClass=null),null!=this._textSprites&&null!=this._textContainer)){if(null!=this._textSprites&&1<=this._textSprites.length)for(var a=0,b=this._textSprites;a=this._textClass._splitTable.length)){null==this._textClass._scaleTable? this._textClass._scaleTable=[]:this._textClass._scaleTable.splice(0,this._textClass._scaleTable.length);for(var a=0,b=null,c=0,d=this._textClass._splitTable;ce.length||0==parseFloat(e[0])||0==parseFloat(e[1])||0==parseFloat(e[2])||0==parseFloat(e[3])||(h=new gj(this._contentWidth,this._contentHeight,parseFloat(e[0]),parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3])),f=new ii(this._pageIndex,a,this._contentWidth,this._contentHeight, parseFloat(e[0]),parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3])),this._textSprites.push(f),this._textContainer.addChild(f),f.resetPrevText(b),f.resetTextLocationOffset(),f.get_width(),b=h);a+=1}}},setActivateForDisplay:function(){0>=this._pageIndex||0==this._contentWidth||0==this._contentHeight||0==this.isShowEncrypted()||(this.setDeactivateForDisplay(),this.reloadAllLinkSprites(),this.reloadAllSearchSprites())},setDeactivateForDisplay:function(){if(m.__instanceof(this,cb))try{0!=this._isContentLoaded&& (this.clearAllLinkSprites(),this.clearAllTextSprites(),this.clearAllSearchSprites())}catch(a){if(G.lastException=a,a instanceof q&&(a=a.val),m.__instanceof(a,O))null;else throw a;}},reloadAllLinkSprites:function(){this.clearAllLinkSprites();if(!(0>=this._pageIndex)&&0!=this._contentWidth&&0!=this._contentHeight&&0!=this.isShowEncrypted()&&0!=this._canLoadLinks&&0!=this._isContentLoaded&&0==this._isLinksLoaded){var a=te.getInstance().getXmlPageObjectsByPageIndex(this._pageIndex);this._objectsSprite.front(); this.resetAllLinkSprites(a)}},reloadAllSearchSprites:function(){this.clearAllSearchSprites();if(!(0>=this._pageIndex)&&0!=this._contentWidth&&0!=this._contentHeight&&0!=this.isShowEncrypted()){var a=fc.getInstance();0!=a._isCanShowSearch&&0!=this._canLoadSearchs&&0!=this._isContentLoaded&&0==this._isSearchsLoaded&&(a=a.getSearchPageItemByIndex(this._pageIndex),null!=a&&null!=a._textCharRanges&&0=this._searchClass._textCharRanges.length)){for(var a=0,b=new fa;af.length||0==parseFloat(f[0])||0==parseFloat(f[1])||0==parseFloat(f[2])||0==parseFloat(f[3])||(h=new om(this._pageIndex,e,this._contentWidth,this._contentHeight,parseFloat(f[0]),parseFloat(f[1]),parseFloat(f[2]),parseFloat(f[3])),this._searchSprites.push(h),this._searchContainer.addChild(h),h.resetTextLocationOffset())}}d++}a++}n.clear(b)}},__class__:Ug});var of=function(a, b,c,d){null==d&&(d=!1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this._ffobjects=null;this._unloadAdditionsStatus=0;this._isAdditionsLoaded=!1;this._canLoadAdditions=!0;Ug.call(this,a,b,c,d)};g["first.page.BasePageAdditions"]=of;of.__name__=["first","page","BasePageAdditions"];of.__super__=Ug;of.prototype=t(Ug.prototype,{_canLoadAdditions:null,_additionsSprites:null,_additionsContainer:null,_isAdditionsLoaded:null,_unloadAdditionsStatus:null,_ffobjects:null,createAdditionsSprite:function(){null== this._additionsSprite&&(this._additionsSprite=new U,this._contentSprite.addChild(this._additionsSprite),this._additionsSprite.set_scrollRect(new va(0,0,this._pageWidth,this._pageHeight)),this._additionsSprite.set_scaleX(this._additionsSprite.set_scaleY(1)))},destroy:function(){this.removeAdditionsForPageType(this._pageType==Ib.Large);this.setDeactivateForDisplay();this.unloadAdditionsBitmap(null);Ug.prototype.destroy.call(this)},loadAdditionsBitmap:function(a,b){this._unloadAdditionsStatus=0;0==this._isAdditionsLoaded&& null!=b&&b(this)},setActivateForDisplay:function(){var a=this;if(!(0>=this._pageIndex)){Ug.prototype.setActivateForDisplay.call(this);if(this._pageType==Ib.Large){var b=lb.getInstance();if(null!=b&&null!=b._flipBookRect&&null!=b._flipBookRect._scaleSprite&&0==b._flipBookRect._scaleSprite.get_visible())return}this.loadAdditionsBitmap("./files/xxx.png",function(b){a._isAdditionsLoaded=!0});this._additionsSprite.front()}},unloadAdditionsBitmap:function(a){this._unloadAdditionsStatus=1;0!=this._isAdditionsLoaded&& (this._isAdditionsLoaded=!1)},setDeactivateForDisplay:function(){m.__instanceof(this,cb)&&Ug.prototype.setDeactivateForDisplay.call(this)},createAdditionsForPageType:function(a,b){be._fn_gotoPage=(Zb=lb.getInstance()._flipBook,k(Zb,Zb.gotoPage));var c=lb.getInstance()._xmlBase;if(null!=c){var d=null,d=c.getNode("pageobjects");if(null==d)return null;for(c=(new yd(d)).nodes.resolve("page").iterator();null!=c.head;){var e,d=void 0;c.val=c.head[0];c.head=c.head[1];e=d=c.val;if(e.has.resolve("pageindex")&& (d=y.parseInt(e.att.resolve("pageindex")),e=e.get_innerHTML(),this._pageIndex==d)){if(null==e)break;e=W.trim(e);if(0>=e.length)break;c=this.get_ffobjects_xml(e);null!=c&&this.add_ffobjects(c);break}}}},activateAdditionsForPageType:function(a){this._additionsSprite.front();this.active_ffobjects()},disibleAdditionsForPageType:function(a){this.deactive_ffobjects()},removeAdditionsForPageType:function(a){this.remove_ffobjects()},get_ffobjects_xml:function(a){if(null==a)return null;try{var b=Z.parse(""+ a+"").firstElement();if(null==b)return null;var c=b.elementsNamed("ffobjects");return null!=c?c.next():null}catch(d){return G.lastException=d,d instanceof q&&(d=d.val),null}},add_ffobjects:function(a){this.remove_ffobjects();this._ffobjects=ac.from(a,this._pageIndex);for(a=0;a=this._textSprites.length||null==this._textContainer?!1:this._selectHasWords&&1<=this._textSprites.length}, copySelectTextToGeneralClipboard:function(){},updateSelectTextColorBySelection:function(a){if(null!=a&&0!=this.isShowEncrypted()&&!(null==this._textSprites||0>=this._textSprites.length||null==this._textContainer)){var b=[];if(1==a.isEmpty()||0==a.width||0==a.height)for(b=0,a=this._textSprites;b=k||0>=l||(a=Gd.scaleWidthHeight(H,g,k,l),H*=a,g*=a,l=c+(.5*l|0),b=p==Ic.LEFT?b|0:p==Ic.CENTER?b+(.5*k|0)-.5*H|0:p==Ic.RIGHT?this._width-d-H|0:p==Ic.IN?0!=this._isLeftPage?f:this._width-f-H|0:p==Ic.OUT?0!=this._isLeftPage?this._width-f-H|0:f:b,c=h==Ic.TOP?c:h==Ic.CENTER?l- .5*g|0:h==Ic.RIGHT?this._height-e-g|0:l-.5*g|0,this._contentSprite.move(b,c),this._contentSprite.set_scaleX(a),this._contentSprite.set_scaleY(a))}}},__class__:We});var Wg=function(){Qa.call(this);this._baseMap=new fa};g["first.rsset.BaseFactory"]=Wg;Wg.__name__=["first","rsset","BaseFactory"];Wg.__super__=Qa;Wg.prototype=t(Qa.prototype,{_baseMap:null,length:function(){var a=0;if(null!=this._baseMap)for(var b=this._baseMap.keys();b.hasNext();)b.next(),a+=1;return a},hasKey:function(a){return null!= this._baseMap&&1==this._baseMap.exists(a)?!0:!1},del:function(a){return this.del_Source(a)},del_Source:function(a){if(1==this._baseMap.exists(a)){var b=this._baseMap.get(a);this._baseMap.remove(a);return b}return null},get:function(a){return this.get_Source(a)},get_Source:function(a){return 1==this._baseMap.exists(a)?this._baseMap.get(a):null},set:function(a,b,c){this.set_Source(a,b,c)},set_Source:function(a,b,c){if(null==a||""==a)throw new q(new O("\u914d\u7f6e\u5b9e\u4f8b\u952e\u540d\u4e0d\u80fd\u4e3a\u7a7a")); this._baseMap.set(a,b);b},__class__:Wg});var pm=function(){};g["first.rsset.PictureData"]=pm;pm.__name__=["first","rsset","PictureData"];pm.prototype={_url:null,_type:null,_width:null,_height:null,_content:null,__class__:pm};var fd=function(){Wg.call(this);if(null!=fd.instance)throw new q(new O("\u5355\u4f8b\u6a21\u5f0f"));};g["first.rsset.BitmapFactory"]=fd;fd.__name__=["first","rsset","BitmapFactory"];fd.getInstance=function(){null==fd.instance&&(fd.instance=new fd);return fd.instance};fd.cleanBitmapData= function(a){var b;try{b=m.__cast(a,Ab)}catch(c){G.lastException=c,c instanceof q&&(c=c.val),b=null}null!=b&&(b.bitmapData.dispose(),b.bitmapData=null)};fd.drawColorTransform=function(a,b,c){null==c&&(c=1);if(null!=a){var d=b>>16&255;0>d&&(d=0);var e=b>>8&255;0>e&&(e=0);b&=255;0>b&&(b=0);a=a.bitmapData;if(null!=a)try{for(var f=0,h=a.width;f=a||a>b?new cb(this._pageWidth,this._pageHeight,a):this._scalePages.length>a?this._scalePages[a]:new cb(this._pageWidth,this._pageHeight,a)},resetScalePageScaleRadio:function(a){if(!isNaN(a)){this._scaleRadio=a;var b=this._scalePageItem.getScaleVisibleRect(); this._scalePageItem.set_x(this._scalePageItem.set_y(0));this._scrollSprite.resize(b.width,b.height);this._scrollWidth=b.width*a;this._scrollHeight=b.height*a;this._scrollSprite.set_scaleX(a);this._scrollSprite.set_scaleY(a);this._scaleRadio=a;this._youtubeManager.setZoomScale(this._scaleRadio,this._scaleRadio);1==this._isSetCenter?(this.resetScrollSpriteToCenter(),this._isSetCenter=!1):this.resetScrollSpriteByStep(0,0)}},resetScrollSpriteToCenter:function(){var a;a=Y.getInstance();var b=a.get(Ha.SCALEVERSPACE), c=a.get(Ha.SCALEHORSPACE),d=a.get(Ha.SCALEHORSPACE);a=a.get(Ha.SCALEVERSPACE);c=c-d+.5*(this._contentSprite._width-this._scrollWidth);b=b-a+.5*(this._contentSprite._height-this._scrollHeight);c=1*(c|0);b=1*(b|0);this._scrollSprite.move(c,b);this._youtubeManager.resetScaleDiv(this._targetPageIndex,c,b)},resetScrollSpriteByStep:function(a,b){var c;c=Y.getInstance();var d=c.get(Ha.SCALEVERSPACE),e=c.get(Ha.SCALEHORSPACE),f=c.get(Ha.SCALEHORSPACE),h=c.get(Ha.SCALEVERSPACE),p=this._contentSprite._width- f;c=this._contentSprite._height-h;var f=this._contentSprite._width-e-f,h=this._contentSprite._height-d-h,H=this._scrollSprite.get_x()+a,g=this._scrollSprite.get_y()+b,k=this._scrollSprite.get_x()+a+this._scrollWidth,l=this._scrollSprite.get_y()+b+this._scrollHeight,x=H;H>=e&&(x=e);k<=p&&(x=p-this._scrollWidth);this._scrollWidth<=f&&(x=e+.5*(f-this._scrollWidth));e=g;g>=d&&(e=d);l<=c&&(e=c-this._scrollHeight);this._scrollHeight<=h&&(e=d+.5*(h-this._scrollHeight));x=1*(x|0);e=1*(e|0);this._scrollSprite.move(x, e);this._youtubeManager.resetScaleDiv(this._targetPageIndex,x,e)},resetScalePageInfoByBook:function(){if(null!=this._flipBook){this._flipBook.getTotalPageCount();var a=this._flipBook.getRealCurrentPageIndex();0==a%2?(this._leftPageIndex=a,this._rightPageIndex=a+1):(this._leftPageIndex=a-1,this._rightPageIndex=a)}},resetScalePageInfoByLeftIndex:function(){if(null!=this._flipBook){var a=this._flipBook.getTotalPageCount();0=a||a>b||(0==a%2?(this._leftPageIndex=a,this._rightPageIndex=a+1):(this._leftPageIndex= a-1,this._rightPageIndex=a),a==this._leftPageIndex?this.resetScalePageInfoByLeftIndex():a==this._rightPageIndex&&this.resetScalePageInfoByRightIndex())}},resetScalePageInfoByCurrentIndex:function(){var a;a=Y.getInstance();if(null!=this._flipBook){this.resetScalePageInfoByBook();var b=this._flipBook.getTotalPageCount();a=a.get(Ha.SCALEISONE);0=a||a>e||(d=this.getScalePageByIndex(a),null!=d&&this.fillScalePageInfoByPageIndex(a),this._youtubeManager.onZoomShowPageFromIndex(a), null!=d&&1==c?(this._scalePageItem.set_pageA(d),this._scalePageItem.set_isOnePageMode(c),this.resetScalePageScaleRadio(this._scaleRadio)):null!=d&&1==a?(this._scalePageItem.set_pageA(d),this._scalePageItem.set_isOnePageMode(!0),this.resetScalePageScaleRadio(this._scaleRadio)):null!=d&&a==e?(this._scalePageItem.set_pageA(d),this._scalePageItem.set_isOnePageMode(!0),this.resetScalePageScaleRadio(this._scaleRadio)):null!=d&&1==b?(this._scalePageItem.set_pageA(d),this._scalePageItem.set_isOnePageMode(c), this.resetScalePageScaleRadio(this._scaleRadio)):null!=d&&0==b&&(this._scalePageItem.set_pageB(d),this._scalePageItem.set_isOnePageMode(c),this.resetScalePageScaleRadio(this._scaleRadio)))}},fillScaleLeftAndRightPageInfo:function(){0!=this.get_visible()&&(this.fillScalePageInfoByPageIndex(this._leftPageIndex),this.fillScalePageInfoByPageIndex(this._rightPageIndex))},fillScalePageInfoByPageIndex:function(a){var b;b=Y.getInstance();if(null!=this._flipBook){var c=this._flipBook.getTotalPageCount();if(!(0>= a||a>c)&&0!=this.get_visible()&&(a=this.getScalePageByIndex(a),null!=a)){null!=a&&null!=this._pageFunc&&this._pageFunc(a);if(1==b.get(Ha.SCALEISONE))for(b=0,c=this._additionsList;b=this._additionsList.length?!1:this.arrayContainsValue(this._additionsList,a)},cleanNullAdditionsListIndexs:function(){var a=this._flipBook.scaleCleanAdditionsIndexs(this._additionsList); if(!(null==a||0>=a.length))for(var b=0;b=this._additionsList.length))for(var b=0,c=this._additionsList;ba||a>b)return b=d.getScaleTempBookPage(),b.resetBookPage(this._pageWidth,this._pageHeight,a,!0,!1,!1),b._pageType=Ib.Large,b;if(0<=a||a<=this._flipBook.getTotalPageCount())if(b=n.get(this._activatePages, e),null!=b)return b;0<=a&&this._scalePages.length>a?(c=this._scalePages[a],b=d.getScaleTempBookPage(),b.resetBookPage(c._pageWidth,c._pageHeight,c._pageIndex,c._isLeftPage,c._isHardStyle,c._isRightToLeft),b._pageType=Ib.Large,b._pageType=c._pageType,n.set(this._activatePages,e,b),this._activateIndexs.push(a),null!=b&&0!=this.get_visible()&&null!=this._pageFunc&&this._pageFunc(b)):(b=d.getScaleTempBookPage(),b.resetBookPage(this._pageWidth,this._pageHeight,a,!0,!1,!1),b._pageType=Ib.Large,this._deactivatePages.push(b)); return b},cleanAdditionsPagesIndexs:function(){var a=null,a=Rd.getInstance();Y.getInstance().get(Ha.SCALEISONE);var b=this._flipBook.scaleCleanAdditionsIndexs(this._activateIndexs);if(!(null==b||0>=b.length))for(var c=0;c=b.length))for(var c=0;cb||null==this._flipBook||(Y.getInstance().get(Ha.SCALEISONE),0==this._isUpdate?this.resetScalePageInfoByCurrentIndex():this._isUpdate= !1)}},resetScalePageGotoPrev:function(){var a;a=Y.getInstance();if(null!=this._flipBook){var b=this._targetPageIndex;a=a.get(Ha.SCALEISONE);this._flipBook.getTotalPageCount();var c=this._flipBook.getCurrentPageIndex();if(1==a)0==this._flipBook._isRightToLeft?1>=b||this.resetScalePageByBookIndex(b-1):this.resetScalePageByBookIndex(b+1);else{if(0==this._flipBook._isRightToLeft){if(this._flipBook.isFirstPage())return;this.resetFlipBookGotoPage(c-2,!1)}else this.resetFlipBookGotoPage(c+2,!1);this.resetScalePageInfoByCurrentIndex()}}}, resetScalePageGotoNext:function(){var a;a=Y.getInstance();if(null!=this._flipBook){var b=this._targetPageIndex;a=a.get(Ha.SCALEISONE);var c=this._flipBook.getTotalPageCount(),d=this._flipBook.getCurrentPageIndex();if(1==a)0==this._flipBook._isRightToLeft?b>=c||this.resetScalePageByBookIndex(b+1):this.resetScalePageByBookIndex(b-1);else{if(0==this._flipBook._isRightToLeft){if(this._flipBook.isLastPage())return;this.resetFlipBookGotoPage(d+2,!1)}else this.resetFlipBookGotoPage(d-2,!1);this.resetScalePageInfoByCurrentIndex()}}}, resetFlipBookGotoPage:function(a,b){null==b&&(b=!0);if(null!=this._flipBook){this._isUpdate=b;var c=this._flipBook._flipTweenTime,d=this._flipBook._shadowHideTweenTime,e=this._flipBook.getTotalPageCount();this._flipBook.getCurrentPageIndex();var f=a;0==a%2&&a=a||a>c||(this.resetScalePageInfoByBook(),1==b.get(Ha.SCALEISONE)?(a==this._leftPageIndex||a==this._rightPageIndex?this._flipBook.playSoundPf():this.resetFlipBookGotoPage(a),this.resetScalePageInfoByIndex(a)):(a!=this._leftPageIndex&&a!=this._rightPageIndex&&this.resetFlipBookGotoPage(a),this.resetScalePageInfoByCurrentIndex()))}},getScalePageItemOffsetByContent:function(){var a=.5*this._contentSprite._height,b=this._scaleRadio,c=.5*this._contentSprite._width-this._scrollSprite.get_x(),a=a-this._scrollSprite.get_y(); return new Q(c/b,a/b)},setScalePageItemOffsetByPoint:function(a){var b=this._scaleRadio,c=.5*this._contentSprite._height-a.y*b;a=.5*this._contentSprite._width-a.x*b-this._scrollSprite.get_x();c-=this._scrollSprite.get_y();this.resetScrollSpriteByStep(a,c)},resetScalePageItemRadioInc:function(){var a;a=Y.getInstance();var b=a.get(Ha.SCALERADIOSTEP),c=this._scaleRadio;1>=c&&(b=.1);.5>=c&&(b=.05);.2>=c&&(b=.05);b=c+b;c=a.get(Ha.SCALERADIOMIN);a=a.get(Ha.SCALERADIOMAX);ba||(a=this.getScalePageItemOffsetByContent(), this.set_scaleRadio(b),this.setScalePageItemOffsetByPoint(a))},resetScalePageItemRadioDec:function(){var a;a=Y.getInstance();var b=a.get(Ha.SCALERADIOSTEP),c=this._scaleRadio;1>=c&&(b=.1);.5>=c&&(b=.05);.2>=c&&(b=.05);b=c-b;c=a.get(Ha.SCALERADIOMIN);a=a.get(Ha.SCALERADIOMAX);ba||(a=this.getScalePageItemOffsetByContent(),this.set_scaleRadio(b),this.setScalePageItemOffsetByPoint(a))},__class__:rm});var eq=function(){U.call(this)};g["first.scale.ScalePageStep"]=eq;eq.__name__=["first","scale", "ScalePageStep"];eq.__super__=U;eq.prototype=t(U.prototype,{__class__:eq});var Ub=function(a,b,c){var d;d=Y.getInstance();ua.call(this,a,b,d.get(B.FILLCOLOR),d.get(B.ISFILL),d.get(B.STROKECOLOR),d.get(B.ISSTROKE),d.get(B.STROKEPIXEL),d.get(B.ROUNDWIDTH),d.get(B.ROUNDWIDTH),d.get(B.DISABLEFILL),d.get(B.DISABLESTROKE));this._fillAlpha=d.get(B.FILLALPHA);this._programBase=c};g["first.share.ShareBase"]=Ub;Ub.__name__=["first","share","ShareBase"];Ub.__super__=ua;Ub.prototype=t(ua.prototype,{_programBase:null, getProgramSprite:function(){try{return m.__cast(this._programBase,lb)}catch(a){G.lastException=a;a instanceof q&&(a=a.val);if(m.__instanceof(a,O))return null;throw a;}},__class__:Ub});var B=function(){};g["first.share.ShareBaseConst"]=B;B.__name__=["first","share","ShareBaseConst"];B.initParameters=function(){if(0==B.isInit){B.isInit=!0;var a;a=Y.getInstance();a.set(B.ISFILL,B.ISFILLVAL);a.set(B.FILLCOLOR,B.FILLCOLORVAL);a.set(B.FILLALPHA,B.FILLALPHAVAL);a.set(B.ISSTROKE,B.ISSTROKEVAL);a.set(B.STROKECOLOR, B.STROKECOLORVAL);a.set(B.STROKEALPHA,B.STROKEALPHAVAL);a.set(B.STROKEPIXEL,B.STROKEPIXELVAL);a.set(B.ROUNDWIDTH,B.ROUNDWIDTHVAL);a.set(B.ROUNDHEIGHT,B.ROUNDHEIGHTVAL);a.set(B.DISABLEFILL,B.DISABLEFILLVAL);a.set(B.DISABLESTROKE,B.DISABLESTROKEVAL);a.set(B.LINESPACE,B.LINESPACEVAL);a.set(B.TOPSPACE,B.TOPSPACEVAL);a.set(B.LEFTSPACE,B.LEFTSPACEVAL);a.set(B.RIGHTSPACE,B.RIGHTSPACEVAL);a.set(B.BOTTOMSPACE,B.BOTTOMSPACEVAL);a.set(B.TOOLHEIGHT,B.TOOLHEIGHTVAL);a.set(B.TITLEHEIGHT,B.TITLEHEIGHTVAL);a.set(B.THUMBHEIGHT, B.THUMBHEIGHTVAL);a.set(B.SEARCHHEIGHT,B.SEARCHHEIGHTVAL);a.set(B.ISSOUNDON,B.ISSOUNDONVAL);a.set(B.ISSOUNDONSAL,B.ISSOUNDONSALVAL);a.set(B.BOOKTOPSPACE,B.BOOKTOPSPACEVAL);a.set(B.BOOKLEFTSPACE,B.BOOKLEFTSPACEVAL);a.set(B.BOOKRIGHTSPACE,B.BOOKRIGHTSPACEVAL);a.set(B.BOOKBOTTOMSPACE,B.BOOKBOTTOMSPACEVAL);a.set(B.BOOKLINESPACE,B.BOOKLINESPACEVAL);a.set(B.BOOKSTEPWIDTH,B.BOOKSTEPWIDTHVAL);a.set(B.GOTOSTEPWIDTH,B.GOTOSTEPWIDTHVAL);a.set(B.GOTOSTEPHEIGHT,B.GOTOSTEPHEIGHTVAL)}};var sk=function(a,b,c){var d; d=Y.getInstance();Ub.call(this,a,b,c);this._bookMarkSprite=null;this._titleSprite=new ua(a,32,d.get(B.FILLCOLOR),d.get(B.ISFILL),d.get(B.STROKECOLOR),d.get(B.ISSTROKE),d.get(B.STROKEPIXEL),d.get(B.ROUNDWIDTH),d.get(B.ROUNDWIDTH),d.get(B.DISABLEFILL),d.get(B.DISABLESTROKE));this._titleSprite._fillAlpha=d.get(B.FILLALPHA);this.addChild(this._titleSprite);this._titleSprite._isFill=!0;this._titleSprite.set_fillStyle(16711680);this._bookMarkTitle=new Sd(a,32);this._titleSprite.addChild(this._bookMarkTitle); sa.initParameters();this._closedBtn1=new db(32,32);this._titleSprite.addChild(this._closedBtn1);this._closedBtn1.setButtonText("");this._closedBtn1.setShowState(rd.Image);this._closedBtn1._isStroke=!0;this._closedBtn1._isDrawFill=!0;this._closedBtn1.set_downFunc(k(this,this.onClosedButtonClick));this._titleSprite.set_visible(!1)};g["first.share.ShareBookMark"]=sk;sk.__name__=["first","share","ShareBookMark"];sk.__super__=Ub;sk.prototype=t(Ub.prototype,{_flipBook:null,_bookMarkTitle:null,_titleSprite:null, _bookMarkSprite:null,_closedBtn1:null,onClosedButtonClick:function(a){a=lb.getInstance().getComponentControl(Ea.TOOLONOFF_BOOKMARK);var b;try{b=m.__cast(a,db)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}null!=b&&ed.getInstance().dispatchAction(b._actionType,b._actionValue,new na(b,null,null))},createBookMark:function(a,b,c,d,e){try{this._flipBook=m.__cast(a,nf)}catch(f){if(G.lastException=f,f instanceof q&&(f=f.val),m.__instanceof(f,O))this._flipBook= null;else throw f;}null!=this._flipBook&&(this._bookMarkSprite=new $l(!0),this.addChild(this._bookMarkSprite),this._bookMarkSprite._backSprite._isFill=!1,this._bookMarkSprite._backSprite._isStroke=!1,this._bookMarkSprite.reloadBookMarkClassList(),this._bookMarkSprite.move(1,1),this._bookMarkSprite.resize(this._width-2,this._height-2),this.drawNow())},resize:function(a,b){Ub.prototype.resize.call(this,a,b);this.resizeItemsLayout();this.set_scaleX(this.set_scaleY(1))},resizeItemsLayout:function(){Y.getInstance(); null!=this._bookMarkSprite&&(0==this._bookMarkSprite._isVertical?(this._titleSprite.move(0,0),this._titleSprite.resize(this._width,40),this._titleSprite.set_visible(!1),this._closedBtn1.move(this._titleSprite._width-this._closedBtn1._width-4,4),this._bookMarkSprite.move(1,1),this._bookMarkSprite.resize(this._width-2,this._height-2)):(this._titleSprite.move(0,0),this._titleSprite.resize(this._width,40),0==this._isStroke&&(this._titleSprite.move(0,0),this._titleSprite._fillAlpha=1,this._titleSprite.resize(this._width, 40),this._titleSprite.set_isStroke(!1)),this._titleSprite.set_visible(!0),this._bookMarkTitle.move(2,.5*(this._titleSprite._height-this._bookMarkTitle._height)),this._bookMarkTitle.resize(this._width-2,32),this.resetLanguageSource(),this._bookMarkTitle.centerTextHeight(),this._closedBtn1.move(this._titleSprite._width-this._closedBtn1._width-4,4),this._titleSprite.get_visible()?(this._bookMarkSprite.move(1,this._titleSprite.get_bottom()),this._bookMarkSprite.resize(this._width-2,this._height-this._titleSprite.get_bottom()- 1)):(this._bookMarkSprite.move(1,1),this._bookMarkSprite.resize(this._width-2,this._height-2))))},resetLanguageSource:function(){var a=Wd.getInstance();null!=this._bookMarkTitle&&(this._bookMarkTitle.setText(a.value(ca.ButtonBookmark)),this._bookMarkTitle.textField.updateTextFormat())},cleanAllSelectedBookMark:function(){var a=null,a=Ff.getInstance(),a=a.getCurrentBookMarkList(!0);if(!(null==a||0>=a.length))for(var b=0;b>16&255)+(b>>16&255))/2|0)<<16)+((((a>>8&255)+(b>>8&255))/2|0)<<8),c+=((a&255)+(b&255))/2|0,this.get_graphics().beginFill(c,100),this.get_graphics().drawRect(0,0,this._width,this._height),this.get_graphics().endFill(),0!=this._isStroke&&0=this._backgroundItems.length||null==this._backgroundScene||0>this._backgroundScene.get_numChildren())return-1;for(var c=0,d=this._backgroundItems;c=a||(1==a&&this._leftStep.set_visible(!1), a>=this._flipBook.getTotalPageCount()&&this._rightStep.set_visible(!1)))},onFlipBookWillFadeOut:function(a){null!=a&&null!=a._data&&(a=a._data._object,0>a||(this._leftStep.set_visible(this.resetStepVisible(!0)),this._rightStep.set_visible(this.resetStepVisible(!1)),(0>=a||1==a)&&this._leftStep.set_visible(!1),a>=this._flipBook.getTotalPageCount()&&this._rightStep.set_visible(!1)))},onFlipBookWillChange:function(a){null!=a&&null!=a._data&&(a=a._data._object,0>a||null==this._flipBook||(null==this._flipBook|| this._flipBook._isRightToLeft||(1==a?this._leftStep.set_visible(!1):a>=this._flipBook.getTotalPageCount()&&this._rightStep.set_visible(!1)),null!=this._flipBook&&this._flipBook._isRightToLeft&&(a=this._flipBook.getRightToLeftPageIndex(a),1==a?this._leftStep.set_visible(!1):a>=this._flipBook.getTotalPageCount()&&this._rightStep.set_visible(!1)),this._youtubeManager.onFlipBookWillChange(a)))},onFlipBookDidChanged:function(a){null!=a&&null!=a._data&&(a=a._data._object,0>a||null==this._flipBook||(Y.getInstance(), this.resizeFlipBookFullSize(),this.resetFlipGotoBarVisible(),this.cleanNullAdditionsListIndexs(),this._youtubeManager.onFlipBookDidChanged(a)))},cleanNullAdditionsListIndexs:function(){null!=this._flipBook&&this._flipBook.cleanNullAdditionsListIndexs()},resizeFlipBookFullSize:function(){var a=0,b=0,b=Y.getInstance();0==this._isScaleStep?(a=2*this._pageWidth,b=this._pageHeight):(a=2*b.get(B.BOOKLINESPACE)+2*b.get(B.BOOKSTEPWIDTH)+2*this._pageWidth,b=2*b.get(B.BOOKLINESPACE)+this._pageHeight);null!= this._flipBook&&this.resizeFlipBookSprite(a,b)},resizeFlipBookSprite:function(a,b){var c;c=Y.getInstance();var d=!0;Ra.getInstance().hasKey(C.AlwaysInTheCenter)&&(d=T.AlwaysInTheCenter());var e=.5*a,f=0,h=0,h=this._flipBook.isFirstPage();this._flipBook.isFirst2Page();var p=this._flipBook.isLastPage();this._flipBook.isLast2Page();var f=c.get(B.BOOKTOPSPACE),H=c.get(B.BOOKLEFTSPACE),g=c.get(B.BOOKLEFTSPACE),k=c.get(B.BOOKTOPSPACE),g=this._width-H-g,l=this._height-f-k;0>=g||0>=l||(k=Gd.scaleWidthHeight(a, b,g,l),(0!=h||0!=p&&0==this._flipBook.getTotalPageCount()%2)&&1==d&&(k=Gd.scaleWidthHeight(a,b,g,l)),H+=.5*g|0,g=f+(.5*l|0),f=H-a*k*.5|0,0!=h?(f=H-a*k*.5|0,0!=d&&(f=f-e*k*.5|0)):0!=p&&0==this._flipBook.getTotalPageCount()%2&&(f=H-a*k*.5|0,0!=d&&(f=f+e*k*.5|0)),h=g-b*k*.5|0,ta._contentSpriteX=f,ta._contentSpriteY=h,this._contentSprite.move(f,h),this._contentSprite.set_scaleX(this._contentSprite.set_scaleY(k)),this._youtubeManager.setNormalScale(k,k),0!=this._isScaleStep&&(this._leftStep.set_x(c.get(B.BOOKLINESPACE)+ c.get(B.BOOKSTEPWIDTH)),this._leftStep.set_y(c.get(B.BOOKLINESPACE)),this._leftStep.resizeToWidth(c.get(B.BOOKSTEPWIDTH)),this._leftStep.resizeToHeight(this._flipBook._pageHeight),this._rightStep.set_x(c.get(B.BOOKLINESPACE)+c.get(B.BOOKSTEPWIDTH)+2*this._pageWidth),this._rightStep.set_y(c.get(B.BOOKLINESPACE)),this._rightStep.resizeToWidth(c.get(B.BOOKSTEPWIDTH)),this._rightStep.resizeToHeight(this._flipBook._pageHeight)),0==this._isScaleStep&&(this._leftStep.set_x(this._contentSprite.get_x()),this._leftStep.set_y(this._contentSprite.get_y()), this._leftStep.resizeToWidth(c.get(B.BOOKSTEPWIDTH)),this._leftStep.resizeToHeight(this._contentSprite._height*k),this._rightStep.set_x(this._contentSprite.get_x()+this._contentSprite._width*k-.6),this._rightStep.set_y(this._contentSprite.get_y()),this._rightStep.resizeToWidth(c.get(B.BOOKSTEPWIDTH)),this._rightStep.resizeToHeight(this._contentSprite._height*k)),this._leftStep.set_visible(this.resetStepVisible(!0)),this._rightStep.set_visible(this.resetStepVisible(!1)),this._leftStep.set_scaleY(1), this._rightStep.set_scaleX(this._rightStep.set_scaleY(1)),this._leftStep.set_scaleX(-1))},__class__:If,__properties__:t(Ub.prototype.__properties__,{set_isScaleStep:"set_isScaleStep",get_isScaleStep:"get_isScaleStep"})});var tk=function(a,b,c){If.call(this,a,b,c);c=null;c=Y.getInstance();this._isScalePageMode=!1;this._contentScale=new ua(a,b,16777215,!1,16711680,!1,1);this.addChild(this._contentScale);this._contentScale.set_isStroke(!1);this._contentScale.set_roundWidth(c.get(B.ROUNDWIDTH));this._contentScale.set_roundHeight(c.get(B.ROUNDHEIGHT))}; g["first.share.ShareFlipBook"]=tk;tk.__name__=["first","share","ShareFlipBook"];tk.__super__=If;tk.prototype=t(If.prototype,{_isScalePageMode:null,_thisScalePageIndex:null,_contentScale:null,_scaleSprite:null,resize:function(a,b){If.prototype.resize.call(this,a,b);this._contentScale.move(1,1);this._contentScale.resize(a-2,b-2);this._contentScale.set_scaleX(1);this._contentScale.set_scaleY(1);this.resizeScalePageLayout()},onAddedToStageCall:function(a){If.prototype.onAddedToStageCall.call(this,a); a=R.getInstance();a.addEventListener(v.SEARCHBOOK_RESET,this,k(this,this.onSearchBookReset));a.addEventListener(v.SEARCHPAGE_CALLBACK,this,k(this,this.onSearchPageCallback));a.addEventListener(v.BOOKPAGE_DOUBLECLICK,this,k(this,this.onBookPageDoubleClick));a.addEventListener(v.MOUSEOVER_DOUBLECLICK,this,k(this,this.onMouseOverDoubleClick));a.addEventListener(v.SECURITYLOGIN_UPDATE,this,k(this,this.onSecurityLoginUpdate))},onRemoveFromStageCall:function(a){If.prototype.onRemoveFromStageCall.call(this, a);a=R.getInstance();a.removeEventListener(v.SEARCHBOOK_RESET,this,k(this,this.onSearchBookReset));a.removeEventListener(v.SEARCHPAGE_CALLBACK,this,k(this,this.onSearchPageCallback));a.removeEventListener(v.BOOKPAGE_DOUBLECLICK,this,k(this,this.onBookPageDoubleClick));a.removeEventListener(v.MOUSEOVER_DOUBLECLICK,this,k(this,this.onMouseOverDoubleClick));a.removeEventListener(v.SECURITYLOGIN_UPDATE,this,k(this,this.onSecurityLoginUpdate))},onSecurityLoginUpdate:function(a){null!=a&&null!=a._data&& 1==this._isScalePageMode&&this._scaleSprite.resetScalePageInfoByCurrentIndex()},onSearchBookReset:function(a){null!=a&&null!=a._data&&(null!=this._flipBook&&this._flipBook.doSearchBookReset(),null!=this._scaleSprite&&this._scaleSprite.doSearchBookReset())},onSearchPageCallback:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._object,Fd)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=0;else throw c;}0>=b||(null!=this._flipBook&&this._flipBook.doSearchPageCallBack(b), null!=this._scaleSprite&&this._scaleSprite.doSearchPageCallBack(b))}},createFlipBook:function(a,b,c,d,e,f){null==c&&(c=0);this._isScaleStep=!0;this._isScaleStep=!1;this._contentSprite.set_isStroke(!1);If.prototype.createFlipBook.call(this,a,b,c,d,e);this._scaleSprite=new rm(this._flipBook,a,b,f);this._scaleSprite.set_visible(!0);this._contentScale.addChild(this._scaleSprite);this.resizeScalePageLayout();this.resetScaleSpriteVisible()},resizeScalePageLayout:function(){null!=this._scaleSprite&&(this._scaleSprite.move(0, 0),this._scaleSprite.resize(this._contentScale._width,this._contentScale._height))},resetStepVisible:function(a){return 0!=this._isScalePageMode?!1:If.prototype.resetStepVisible.call(this,a)},resetScaleSpriteVisible:function(){0!=this._isScalePageMode?(this._scaleSprite.set_visible(!0),this._contentSprite.set_alpha(.01)):(this._scaleSprite.set_visible(!1),this._contentSprite.set_alpha(1));this._contentSprite.set_visible(!0);this._leftStep.set_visible(this.resetStepVisible(!0));this._rightStep.set_visible(this.resetStepVisible(!1))}, cleanNullAdditionsListIndexs:function(){null!=this._flipBook&&(this.cleanFlipAdditionsListIndexs(),this.cleanScaleAdditionsListIndexs())},cleanFlipAdditionsListIndexs:function(){null!=this._flipBook&&this._flipBook.cleanNullAdditionsListIndexs()},enableFlipAdditionsListIndexs:function(a){null!=this._flipBook&&this._flipBook.enableAdditionsListIndexs(a)},cleanScaleAdditionsListIndexs:function(){null!=this._flipBook&&null!=this._scaleSprite&&this._scaleSprite.cleanNullAdditionsListIndexs()},enableScaleAdditionsListIndexs:function(a){null!= this._flipBook&&null!=this._scaleSprite&&this._scaleSprite.enableAdditionsListIndexs(a)},onBookPageDoubleClick:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._event,A)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}var d;try{d=m.__cast(a._data._trigger,cb)}catch(e){if(G.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,O))d=null;else throw e;}if(null!=d&&(null==b||null==b.target||m.__instanceof(b.target,U))&&null!=this._flipBook&& null!=this._scaleSprite){this.doDoubleClickByBookPage(d);var f;try{f=m.__cast(this._programBase,lb)}catch(h){if(G.lastException=h,h instanceof q&&(h=h.val),m.__instanceof(h,O))f=null;else throw h;}null!=f&&f.updateScaleButtonStageByClick()}}},doDoubleClickByBookPage:function(a){if(null!=a&&null!=this._flipBook&&null!=this._scaleSprite)if(a=a._pageIndex,1==this._isScalePageMode)this._isScalePageMode=!1,this._youtubeManager.resetNormalScale(a),this._flipBook._isScalePlay=!1,this.resetScaleSpriteVisible(), this.enableScaleAdditionsListIndexs(!1),this.enableFlipAdditionsListIndexs(!0);else{this._isScalePageMode=!0;this.resetScaleSpriteVisible();this._flipBook._isScalePlay=!0;this._scaleSprite._isSetCenter=!0;var b=Gd.scaleWidth(this._pageWidth,ha.current.stage.stageWidth),b=Math.max(.5,Math.min(1,b));this._scaleSprite.set_scaleRadio(b);this._youtubeManager.setZoomScale(b,b);this._youtubeManager.resetZoomScale(a,0,0);this._scaleSprite.resetScalePageByBookIndex(a);this.enableFlipAdditionsListIndexs(!1); this.enableScaleAdditionsListIndexs(!0)}},onMouseOverDoubleClick:function(a){if(null!=a&&null!=a._data){try{m.__cast(a._data._event,A)}catch(b){if(G.lastException=b,b instanceof q&&(b=b.val),!m.__instanceof(b,O))throw b;}var c;try{c=m.__cast(a._data._trigger,vb)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,O))c=null;else throw d;}null!=c&&null!=this._flipBook&&null!=this._scaleSprite&&this._scaleSprite._scalePageItem==c.parent&&1==this._isScalePageMode&&(this._isScalePageMode= !1,this._flipBook._isScalePlay=!1,this.resetScaleSpriteVisible(),this.enableScaleAdditionsListIndexs(!1),this.enableFlipAdditionsListIndexs(!0))}},__class__:tk});var uk=function(a,b,c){Ub.call(this,a,b,c);c=null;c=Y.getInstance();this._searchList=this._searchText=this._searchBtn1=null;this._isSearched=!1;this._isShowInput=!0;this._isSearchInit=!1;sa.initParameters();this._contentSprite=new ua(a,b,16777215,!1,16711680,!1,1);this.addChild(this._contentSprite);this._contentSprite.set_isFill(!1);this._contentSprite.set_isStroke(!1); this._contentSprite._fillAlpha=c.get(B.FILLALPHA);this._contentSprite.set_fillStyle(c.get(B.FILLCOLOR));this._contentSprite.set_roundWidth(c.get(B.ROUNDWIDTH));this._contentSprite.set_roundHeight(c.get(B.ROUNDHEIGHT));this._contentSprite.move(1,1);this._contentSprite.resize(a-2,b-2);this._contentWidth=this._contentSprite._width;this._contentHeight=this._contentSprite._height};g["first.share.ShareSearchList"]=uk;uk.__name__=["first","share","ShareSearchList"];uk.__super__=Ub;uk.prototype=t(Ub.prototype, {_flipBook:null,_isSearched:null,_isShowInput:null,_isSearchInit:null,_searchBtn1:null,_downSprite:null,_searchText:null,_searchList:null,_contentWidth:null,_contentHeight:null,_contentSprite:null,resize:function(a,b){Ub.prototype.resize.call(this,a,b);var c=null,c=Y.getInstance();this._contentSprite.move(1,1);this._contentSprite.resize(a-2,b-2);this._contentSprite.set_scaleX(1);this._contentSprite.set_scaleY(1);this._contentWidth=this._contentSprite._width;this._contentHeight=this._contentSprite._height; this.setBackgroundAlpha(c.get(B.FILLALPHA));this.setBackgroundColor(c.get(B.FILLCOLOR));this.resizeSearchListLayout();this.set_scaleX(this.set_scaleY(1))},onAddedToStageCall:function(a){Ub.prototype.onAddedToStageCall.call(this,a);R.getInstance().addEventListener(v.COMPONENT_KEYDOWN,this,k(this,this.onKeyDown))},onRemoveFromStageCall:function(a){Ub.prototype.onRemoveFromStageCall.call(this,a);R.getInstance().removeEventListener(v.COMPONENT_KEYDOWN,this,k(this,this.onKeyDown))},setBackgroundColor:function(a){this._contentSprite.set_fillStyle(a); null!=this._searchList&&0!=this._searchList._backSprite.set_fillStyle(a)},setBackgroundAlpha:function(a){this._contentSprite._fillAlpha=a;this._contentSprite.drawShape();null!=this._searchList&&0!=(this._searchList._backSprite._fillAlpha=a);null!=this._searchList&&this._searchList._backSprite.drawShape()},createSearchList:function(a,b,c,d,e){d=null;d=Y.getInstance();try{this._flipBook=m.__cast(a,nf)}catch(f){if(G.lastException=f,f instanceof q&&(f=f.val),m.__instanceof(f,O))this._flipBook=null;else throw f; }if(null!=this._flipBook&&0==this._isSearchInit){a=d.get(sa.LINESPACE);c=d.get(sa.LINESPACE);var h=d.get(sa.LINESPACE),p=d.get(sa.LINESPACE);d.get(sa.LINESPACE);var H=0,g=d.get(sa.INPUTHEIGHT);b=d.get(sa.BUTTONHEIGHT);d=d.get(sa.BUTTONHEIGHT);H=this._contentWidth-h-a-p-b;this._searchText=new pf(H,g);this._contentSprite.addChild(this._searchText);this._searchText.move(h,c);h=null;h=this._searchText.textField;this._searchText.textField.set_text("");h.set_text("High Resolution");h._size=12;h._leftMargin= 2;h._rightMargin=2;h._align=$b.LEFT;h.updateTextFormat();this._searchBtn1=new db(b,d);this._contentSprite.addChild(this._searchBtn1);this._searchBtn1.move(this._searchText.get_right()+a,c);this._searchBtn1.setButtonText("");this._searchBtn1.setShowState(rd.Image);this._searchBtn1._showState=rd.Image;this._searchBtn1._isStroke=!0;this._searchBtn1._isDrawFill=!0;c=this._searchBtn1.get_strokeStyle();this._downSprite=new vb(b,d,11184810,.8,c,1,14540253,.8,c,1);this._searchBtn1.set_downFunc(k(this,this.onSearchButtonClick)); this._downSprite.set_strokeStyle(c);this._searchText.set_visible(this._isShowInput);this._searchBtn1.set_visible(this._isShowInput);b=this._contentWidth;c=this._contentHeight;0!=this._isShowInput&&(c=this._contentHeight-this._searchText.get_bottom()-a);this._searchList=new sm(this._flipBook,b,c,e);this._contentSprite.addChild(this._searchList);0!=this._isShowInput&&this._searchList.move(0,this._searchText.get_bottom()+a);this._contentSprite.set_isFill(!1);this._contentSprite.set_isStroke(!1);this._searchList._backSprite._isFill= !1;this._searchList._backSprite._isStroke=!1;this._isSearchInit=!0}},resizeSearchListLayout:function(){var a=null,a=Y.getInstance();if(0!=this._isSearchInit){var b=a.get(sa.LINESPACE),c=a.get(sa.LINESPACE),d=a.get(sa.LINESPACE),e=a.get(sa.LINESPACE);a.get(sa.LINESPACE);var f=0,h=a.get(sa.INPUTHEIGHT),p=a.get(sa.BUTTONHEIGHT),a=a.get(sa.BUTTONHEIGHT),f=this._contentWidth-d-b-e-p;this._searchText.move(d,c);this._searchText.resize(f,h);this._searchBtn1.move(this._searchText.get_right()+b,c);this._searchBtn1.resize(p, a);this._searchText.set_visible(this._isShowInput);this._searchBtn1.set_visible(this._isShowInput);0==this._isShowInput?this._searchList.move(1,0):this._searchList.move(1,this._searchText.get_bottom()+b);d=this._contentWidth-2;e=this._contentHeight;0!=this._isShowInput&&(e=this._contentHeight-c-b-this._searchText._height-this._searchList.getStepLineOffset()-0*this._searchList.get_y());this._searchList.resize(d,e)}},onKeyDown:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._event, vc)}catch(c){G.lastException=c,c instanceof q&&(c=c.val),b=null}if(null!=b&&13==b.charCode){var d;try{d=m.__cast(a._data._trigger,pf)}catch(e){G.lastException=e,e instanceof q&&(e=e.val),d=null}if(null!=d&&d==this._searchText)this.onSearchButtonClick(null)}}},onComplete:function(a){null!=a&&fc.getInstance()},onSearchButtonClick:function(a){a=this._searchText.getText();var b=null,b=fc.getInstance();b.doSearchBookReset();null==a||a.lengthb||null==this._thumbnails||(a=this._thumbnails.getDragListItemByPageIndex(b),null!=a&&this._thumbnails.scrollToThumbnailsItemRect(a))}},onFlipBookDidChanged:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._object,Fd)}catch(c){if(G.lastException= c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=-1;else throw c;}0>b||null==this._thumbnails||(Y.getInstance(),a=this._thumbnails.getDragListItemByPageIndex(b),null!=a&&0==a._rectSprite.get_isStroke()&&(this._thumbnails.doDragListItemClicked(a),a._rectSprite.set_isStroke(!0)))}},onThumbnailsItemClicked:function(a){if(null!=a&&null!=a._data){var b=a._data._trigger;if(null!=b&&m.__instanceof(b,Xg)){var c;try{c=m.__cast(a._data._trigger,Xg)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d, O))c=null;else throw d;}if(null!=c&&null!=this._flipBook){var e;e=null!=c._page_a?c._page_a._pageIndex:-1;c=null!=c._page_b?c._page_b._pageIndex:-1;0a)return-1;for(var b= 1;b<=this._contentItems.length;){var c=null,c=this.getDragListItem(b);if(null!=c&&c.get_pageA()._pageIndex==a)return b;b+=1}return-1},updateDragListItemByPageItem:function(a){a=this.getFixItemHandler(a);null!=a&&null!=this._pageFunc&&this._pageFunc(a.get_pageA())},getDragListItemByPageIndex:function(a){if(0>a)return null;var b=null;return b=this._searchPagesMap.get(null==a?"null":""+a)},updateDragListItemByPageIndex:function(a){var b=null,b=this.getDragListItemByPageIndex(a);null!=b&&null!=b&&b.get_pageA()._pageIndex== a&&this.updateDragListItemByPageItem(b)},updateDragListItemByItem:function(a){a=this.getFixItemHandler(a);null!=a&&this.setThumbnailsItemBackAlpha(a)},setThumbnailsItemBackAlpha:function(a){var b=this._flipBook.getTotalPageCount();if(null!=a.get_pageA()){var c=a.get_pageA()._pageIndex;(1>c||c>b)&&a.get_pageA().setBackSpriteAlpha(0)}},__class__:mi});var sa=function(){};g["first.slist.SearchListConst"]=sa;sa.__name__=["first","slist","SearchListConst"];sa.initParameters=function(){if(0==sa.isInit){sa.isInit= !0;var a;a=Y.getInstance();a.set(sa.LINESPACE,sa.LINESPACEVAL);a.set(sa.STEPSPACE,sa.STEPSPACEVAL);a.set(sa.STEPHEIGHT,sa.STEPHEIGHTVAL);a.set(sa.ITEMWIDTH,sa.ITEMWIDTHVAL);a.set(sa.ITEMHEIGHT,sa.ITEMHEIGHTVAL);a.set(sa.FRAMEHEIGHT,sa.FRAMEHEIGHTVAL);a.set(sa.TEXTHEIGHT,sa.TEXTHEIGHTVAL);a.set(sa.INPUTHEIGHT,sa.INPUTHEIGHTVAL);a.set(sa.BUTTONHEIGHT,sa.BUTTONHEIGHTVAL);a.set(sa.IMAGETOPSPACE,sa.IMAGETOPSPACEVAL);a.set(sa.IMAGELEFTSPACE,sa.IMAGELEFTSPACEVAL);a.set(sa.IMAGERIGHTSPACE,sa.IMAGERIGHTSPACEVAL); a.set(sa.IMAGEBOTTOMSPACE,sa.IMAGEBOTTOMSPACEVAL)}};var fg=function(a,b,c,d){mi.call(this,a,b,c,d);sa.initParameters();a=Y.getInstance();this._searchItemWidth=this.getItemWidth();this._searchItemHeight=this.getItemHeight();this._itemPixelWidth=this._searchItemWidth=a.get(B.SEARCHHEIGHT)-2*this.getLineSpace()+2;this._itemPixelHeight=this._searchItemHeight;this.resizeScaleSize()};g["first.slist.SearchListEvent"]=fg;fg.__name__=["first","slist","SearchListEvent"];fg.__super__=mi;fg.prototype=t(mi.prototype, {_searchItemWidth:null,_searchItemHeight:null,resizeScaleSize:function(){this._itemPixelWidth=this._searchItemWidth;this._itemPixelHeight=this._searchItemHeight;mi.prototype.resizeScaleItemSize.call(this)},doSearchBookReset:function(){fc.getInstance();this.removeAllSearchListItems()},doSearchBookStart:function(){fc.getInstance()},doSearchBookFinish:function(){fc.getInstance()},doSearchBookCallBack:function(){fc.getInstance()},doSearchPageStart:function(a){fc.getInstance()},doSearchPageFinish:function(a){fc.getInstance()}, removeAllSearchListItems:function(){fc.getInstance();for(var a=0,b=this._contentItems;ad?1:c=b&&(b=10);this._scaleY=this._scaleX=b=Gd.scaleHeight(this._pageHeight,b);this._scaleWidth=this._pageWidth*this._scaleX|0;this._scaleHeight=this._pageHeight*this._scaleY|0;this.c_mc1.move(d,c);this.c_mc1.resize(this._scaleWidth+ 2+1,this._scaleHeight+2+1);null!=this._page_a&&(this._page_a.set_scaleX(this._scaleX),this._page_a.set_scaleY(this._scaleY));this._backSprite.resize(this._width,this._height);this._rectSprite.resize(this._width,this._height);this._downSprite.resize(this._width,this._height);b=this._textField.get_text();this.resetTextFideldText(b);this.c_mc1.set_scaleX(1);this.c_mc1.set_scaleY(1);b=this._pageLabel.getTextWidth();a=this._pageLabel.getTextHeight();this._pageLabel.move(this.c_mc1.get_right()+e,c/2);this._pageLabel.resize(b+ 100,a+8);b=this._itemLabel.getTextWidth();a=this._itemLabel.getTextHeight();this._itemLabel.resize(b+8+4,a+8);this._itemLabel.move(this._width-d-b-8,c/2);this._infoLabel.move(this.c_mc1.get_right()+e,this._pageLabel.get_bottom()-2);d=this._width-this._infoLabel.get_x()-d;c=this._height-this._infoLabel.get_y()-c/2;this._infoLabel.resize(d,c)},onAddedToStageCall:function(a){this.resetScaleThumbPage();R.getInstance().addEventListener(v.LANGUAGEINFO_UPDATE,this,k(this,this.onLanguageInfoUpdate))},onRemoveFromStage:function(a){Zg.prototype.onRemoveFromStageCall.call(this, a);R.getInstance().removeEventListener(v.LANGUAGEINFO_UPDATE,this,k(this,this.onLanguageInfoUpdate))},get_clickedFunc:function(){return this._clickedFunc},set_clickedFunc:function(a){return this._clickedFunc=a},onMouseClick:function(a){null!=this._clickedFunc&&this._clickedFunc(this);R.getInstance().dispatchEvent(new ja(v.SEARCHLISTITEM_CLICK,new na(this,this._pageIndex,null)))},onLanguageInfoUpdate:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._trigger,lb)}catch(c){if(G.lastException= c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}null!=b&&this.resetSearchItemLanguage()}},resetSearchItemLanguage:function(){this.resetSearchIndexText();this.resetSearchItemsCount()},resetSearchItemOffset:function(){var a=null,a=Y.getInstance(),b=this._itemLabel.getTextWidth();this._itemLabel.resize(b+8+4,this._itemLabel._height);a=a.get(sa.IMAGELEFTSPACE);this._itemLabel.move(this._width-a-b-8,this._itemLabel.get_y())},resetSearchIndexText:function(){var a=fc.getInstance().getSearchPageItemByIndex(this._pageIndex); if(null!=a&&null!=a._textCharRanges&&0=a)return 0;var b=a+" "+b.getItemsText(),c=this._itemLabel;c.set_text(b);c.updateTextFormat();this.resetScaleThumbPage(); this.resetSearchItemOffset()}return a},getSearchItemsCountByClass:function(a){var b=0;if(null==a)return 0;for(var c=0,d=new fa;c=b||this.doSearchPageStart(b)}},onSearchPageFinish:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._object,Fd)}catch(c){if(G.lastException=c,c instanceof q&& (c=c.val),m.__instanceof(c,O))b=0;else throw c;}0>=b||this.doSearchPageFinish(b)}},onSearchPageCallback:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._object,Fd)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=0;else throw c;}0>=b||this.doSearchPageCallBack(b)}},doDragListItemClicked:function(a){var b=null,b=this.getFixItemHandler(a);null!=b&&(a=b._pageIndex,null!=this._flipBook&&(0=a.length)return 0;this._pageAroundText=b;for(var c=null,d=b.toUpperCase(),e=0;1<=a.length&&e=a.length)return null; for(var c=0;1<=a.length&&ce.indexOf(a.toUpperCase()))return null;if(0<=e.indexOf(a.toUpperCase())){var f=0,d=0,f=e.indexOf(a.toUpperCase()),d=f-24;0>=d&&(d=0);if(0!=d){for(;0=e.length&&(f=e.length-1);if(f=f+a.length);)b="\n"!=d.charAt(e)?b+d.charAt(e):"",e++;b=W.replace(b,"\n"," ");d=b=W.replace(b,"\r"," ")}if(null!=d&&""!=d&&0=b.cachePageText.length)b.cachePageText=a.value(ca.LabelSearchPageIndex);return b.cachePageText},getItemsText:function(){var a=Wd.getInstance(),b=fc.getInstance();if(null==b.cachePageItem||0>=b.cachePageItem.length)b.cachePageItem=a.value(ca.LabelSearchItems);return b.cachePageItem},getIndexHtmlText:function(a){var b= "";return b=''+this.getPageText()+" "+a+""},getItemsHtmlText:function(a){var b="";return b=''+a+" "+this.getItemsText()+""},getAroundHtmlText:function(){var a="",b=T.ControlFontName(),c=this._pageAroundText,d=this._textAroundRanges;if(null==d||0>=d.length)return null;for(var e=0;e'+c.substring(p,k)+"";e=k;f=!0;break}}}0==f&&(a+=c.charAt(e),e++)}null!=a&&0'+a,a+="");return a},__class__:ji}); var rj=function(){this._searchPageText=this._searchPageUpperCase=this._searchTextPageIndex=this._searchWordPageIndex=this._searchCompleteCall=this._searchBookAsyncStatus=this._searchMapAsyncStatus=null;this._searchPageIndex=0;this._searchKeyMinLength=2;this._isCanShowSearch=this._isBreakCancel=this._isSearching=!1;this._searchSplitKeys=this._searchString=null;this._searchBookItems=[];this._searchBookIndexs=[];this._searchPageItems=[];this._searchCompleteCall=null;this._searchMapAsyncStatus=new fa}; g["first.stexts.SearchTextClass"]=rj;rj.__name__=["first","stexts","SearchTextClass"];rj.prototype={_isSearching:null,_isBreakCancel:null,_isCanShowSearch:null,_searchString:null,_searchSplitKeys:null,_searchKeyMinLength:null,_searchBookItems:null,_searchBookIndexs:null,_searchPageItems:null,_searchPageIndex:null,_searchPageText:null,_searchPageUpperCase:null,_searchTextPageIndex:null,_searchWordPageIndex:null,_searchCompleteCall:null,_searchBookAsyncStatus:null,_searchMapAsyncStatus:null,doSearchBookReset:function(){var a= null,a=R.getInstance();a.dispatchEvent(new ja(v.SEARCHBOOK_RESET,new na(this,null,null)))},doSearchBookCancel:function(){var a=null,a=R.getInstance();a.dispatchEvent(new ja(v.SEARCHBOOK_CANCEL,new na(this,null,null)))},doSearchBookStart:function(){var a=null,a=R.getInstance();a.dispatchEvent(new ja(v.SEARCHBOOK_START,new na(this,null,null)))},doSearchBookFinish:function(){var a=null,a=R.getInstance();a.dispatchEvent(new ja(v.SEARCHBOOK_FINISH,new na(this,null,null)))},doSearchBookCallBack:function(){var a= null,a=R.getInstance();a.dispatchEvent(new ja(v.SEARCHBOOK_CALLBACK,new na(this,null,null)))},doSearchPageStart:function(a){var b=null,b=R.getInstance();b.dispatchEvent(new ja(v.SEARCHPAGE_START,new na(this,a,null)))},doSearchPageFinish:function(a){var b=null,b=R.getInstance();b.dispatchEvent(new ja(v.SEARCHPAGE_FINISH,new na(this,a,null)))},doSearchPageCallBack:function(a){var b=null,b=R.getInstance();b.dispatchEvent(new ja(v.SEARCHPAGE_CALLBACK,new na(this,a,null)));b=null;b=this.getSearchPageItemByIndex(a); null==b&&this.doSearchPageFinish(a)},makeSearchTextPageItems:function(){var a=null,a=Ad.getInstance();if(null!=this._searchPageItems&&this._searchPageItems.lengtha.indexOf(" ")?(b=a.toUpperCase(),this._searchSplitKeys.push(b)): this.searchSplitKeysBySearchString(a),null!=this._searchSplitKeys?(this.searchTextIndexsBySearchString(a),0==this._searchBookIndexs.length&&this.searchTextIndexsBySearchEnd(a)):this.doSearchBookFinish()))},searchTextIndexsBySearchEnd:function(a){this._searchPageIndex=-1;this._searchPageText=this._searchPageUpperCase=null;null!=this._searchTextPageIndex&&0!=this._searchTextPageIndex.length||null!=this._searchWordPageIndex&&0!=this._searchWordPageIndex.length||this.doSearchBookFinish();this._searchPageIndex= -1;this._searchPageText=this._searchPageUpperCase=null},searchTextIndexsBySearchString:function(a){var b=0,c=null,c=Ad.getInstance(),d=c._pageCount;a=a.toUpperCase();this._searchTextPageIndex=[];this._searchWordPageIndex=null;1e)){if(0!=this._isBreakCancel)break;var h=null,h=c.getPageStringByIndex(f); if(null!=h&&""!=h)if(this._searchPageText=h,this._searchPageUpperCase=h.toUpperCase(),0<=this._searchPageUpperCase.indexOf(a))this._searchBookIndexs.push(null==f?"null":""+f),this._searchTextPageIndex.push(null==f?"null":""+f),this.doSearchPageStart(f);else{for(var h=!1,p=0;1=this._searchKeyMinLength&&this._searchSplitKeys.push(c[b]),b++},searchTextIndexsByWordIndexs:function(a){a= 0;var b=null,b=Ad.getInstance();if(null!=this._searchWordPageIndex&&1<=this._searchWordPageIndex.length)for(a=0;a=a)this.doSearchPageFinish(a);else{var c= null,c=this.getSearchPageItemByIndex(a);if(null==c)this.doSearchPageFinish(a);else{this._searchPageIndex==a&&(c._pageText=this._searchPageText,c._pageTextUpperCase=this._searchPageUpperCase);if(null==c._pageText||""==c._pageText)c._pageText=b.getPageStringByIndex(a);if(null==c._pageTextUpperCase||""==c._pageTextUpperCase)c._pageTextUpperCase=null!=c._pageText?c._pageText.toUpperCase():null;try{c.reloadPageTextXML(c._offsetTextUrl,k(this,this.onPageSearchTextLoadedOffset))}catch(d){if(G.lastException= d,d instanceof q&&(d=d.val),m.__instanceof(d,O))this.doSearchPageFinish(a);else throw d;}}}},onPageSearchTextLoadedOffset:function(a){var b=null;try{b=m.__cast(a,ji)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}if(null!=b){a=b._pageIndex;if((null==b||0!=b._isLoadOffset)&&0==this._isBreakCancel){this.getSearchPageItemByIndex(a);for(var d=null,e=b._pageTextUpperCase,f=0;1<=this._searchSplitKeys.length&&f=b||(this._searchMapAsyncStatus.set(null==b?"null":""+b,gg.Start),this.pageSearchTextWithPageIndex(b))}},onSearchPageFinish:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._object,Fd)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=0;else throw c;}0>=b||(this._searchMapAsyncStatus.set(null==b?"null":""+b,gg.Finish),this.isSearchPageAllFinish()&&this.doSearchBookFinish())}},onSearchPageCallBack:function(a){if(null!= a&&null!=a._data){var b;try{b=m.__cast(a._data._object,Fd)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=0;else throw c;}0>=b||this._searchMapAsyncStatus.set(null==b?"null":""+b,gg.CallBack)}},onLanguageInfoCached:function(a){null!=a&&null!=a._data&&(a=Wd.getInstance(),this.cachePageText=a.value(ca.LabelSearchPageIndex),this.cachePageItem=a.value(ca.LabelSearchItems))},isSearchPageAllFinish:function(){for(var a=!0,b=this._searchMapAsyncStatus.keys();b.hasNext();){var c= b.next();if(n.get(this._searchMapAsyncStatus,c)!=gg.Finish){a=!1;break}}return a},__class__:fc});var Bs=function(){};g["first.stexts.SearchStatusKey"]=Bs;Bs.__name__=["first","stexts","SearchStatusKey"];var gg=function(){};g["first.stexts.SearchStatusValue"]=gg;gg.__name__=["first","stexts","SearchStatusValue"];var ii=function(a,b,c,d,e,f,h,p){null==p&&(p=0);null==h&&(h=0);null==f&&(f=0);null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);null==a&&(a=0);ua.call(this,c,d);this.set_alpha(1);this._fillAlpha= this._alpha=.45;this._fillStyle=65535;this._strokePixel=1;this._strokeStyle=16711680;this._isStroke=this._isFill=!1;this._pageIndex=a;this._textIndex=b;this._textPrev=this._textChar=null;this._textRect=new gj(c,d,e,f,h,p);this._overFill=16777215;this._overAlpha=.4;this._overStroke=11184810;this._overStrokeWidth=1;this._selectFill=255;this._selectAlpha=.4;this._selectStroke=11184810;this._selectStrokeWidth=1};g["first.text.PageTextSprite"]=ii;ii.__name__=["first","text","PageTextSprite"];ii.__super__= ua;ii.prototype=t(ua.prototype,{_alpha:null,_isOver:null,_isDown:null,_isSelect:null,_pageIndex:null,_textIndex:null,_textChar:null,_textRect:null,_textPrev:null,_overFill:null,_overAlpha:null,_overStroke:null,_overStrokeWidth:null,_selectFill:null,_selectAlpha:null,_selectStroke:null,_selectStrokeWidth:null,resetPageSize:function(a,b){this._textRect.resetBaseSize(a,b);this.resetTextLocationOffset()},resetPrevText:function(a){this._textPrev=a;this.resetTextLocationOffset()},resetTextLocationOffset:function(){if(!this._textRect.isEmpty()){var a= this._textRect.x+0,b=this._textRect.width+0;null!=this._textPrev&&!(this._textRect.get_top()>=this._textPrev.get_bottom()+1||this._textRect.get_bottom()<=this._textPrev.get_top()+1||this._textPrev.get_top()>=this._textRect.get_bottom()+1||this._textPrev.get_bottom()<=this._textRect.get_top()+1)&&8>=Math.abs(this._textRect.x-(this._textPrev.x+this._textPrev.width))&&(a=this._textPrev.x+this._textPrev.width,b=this._textRect.x+this._textRect.width-a);this.move(a,this._textRect.y);this.resize(b,this._textRect.height); this.drawNow()}},isSpriteInRectangle:function(a){var b=!1;if(null==a||a.isEmpty()||0==a.width||0==a.height)return!1;this.get_y()<=a.y&&this.get_y()+this._height>=a.y+a.height?b=this.get_x()+this._width>=a.x&&this.get_x()+this._width<=a.x+a.width:this.get_y()<=a.y+a.height&&this.get_y()+this._height>=a.y+a.height?b=this.get_y()<=a.y+a.height&&this.get_x()+this._width<=a.x+a.width:this.get_y()<=a.y&&this.get_y()+this._height>=a.y?b=this.get_x()+this._width>=a.x&&this.get_y()+this._height<=a.y+a.height: this.get_y()<=a.y+a.height&&this.get_y()+this._height>=a.y+a.height?b=this.get_y()<=a.y&&this.get_x()+this._width<=a.x+a.width:this.get_y()>=a.y&&this.get_y()+this._height<=a.y+a.height&&(b=this.get_y()>=a.y&&this.get_y()+this._height<=a.y+a.height);return b},onAddedToStageCall:function(a){ua.prototype.onAddedToStageCall.call(this,a);this.resetTextLocationOffset();this.set_scaleX(this.set_scaleY(1))},onRemoveFromStageCall:function(a){ua.prototype.onRemoveFromStageCall.call(this,a)},registerEventListener:function(){this.addEventListener(A.MOUSE_OVER, k(this,this.onMouseOver));this.addEventListener(A.MOUSE_OUT,k(this,this.onMouseOut))},unregisterEventListener:function(){this.removeEventListener(A.MOUSE_OVER,k(this,this.onMouseOver));this.removeEventListener(A.MOUSE_OUT,k(this,this.onMouseOut))},onMouseOver:function(a){this._isOver=!0},onMouseOut:function(a){this._isOver=!1},__class__:ii});var om=function(a,b,c,d,e,f,h,p){null==p&&(p=0);null==h&&(h=0);null==f&&(f=0);null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);null==a&&(a=0);ii.call(this,a,b,c, d,e,f,h,p);this._isFill=!0;this._isStroke=!1;this._fillAlpha=.45;this._fillStyle=16776960;this._alpha=1;this.set_alpha(this._alpha)};g["first.stexts.SearchTextSprite"]=om;om.__name__=["first","stexts","SearchTextSprite"];om.__super__=ii;om.prototype=t(ii.prototype,{resetTextLocationOffset:function(){this._textRect.isEmpty()||(this.move(this._textRect.x,this._textRect.y),this.resize(this._textRect.width,this._textRect.height))},__class__:om});var yk=function(){this._realPathUrl=".";Sa.initParameters(); this._pageCount=0;this._firstIsMac=!0;this._bookText=null;this._isBookTextLoad=!1;this._callCompleteFunc=this._cacheDoAction=null;this._bookTextUrl=Y.getInstance().get(Sa.TEXTFILE)};g["first.text.BookTextClass"]=yk;yk.__name__=["first","text","BookTextClass"];yk.prototype={_pageCount:null,_firstIsMac:null,_bookText:null,_bookTextFast:null,_bookTextUrl:null,_isBookTextLoad:null,_realPathUrl:null,_cacheDoAction:null,_callCompleteFunc:null,unloadBookTextXML:function(){this._isBookTextLoad=!1;var a=null, a=R.getInstance();null!=this._bookText&&(a.dispatchEvent(new ja(v.BOOKTEXTXML_UNLOAD,new na(this,null,null))),this._bookTextFast=null,this._isBookTextLoad=!1,this._bookText.destroy(),this._bookText=null)},reloadBookTextXML:function(a,b){var c=this;this.unloadBookTextXML();if(null==a||""==a)return!1;this._bookTextUrl=a;(new Ma).loadUrl(a,function(a){var e;try{e=m.__cast(a,Ma)}catch(f){G.lastException=f,f instanceof q&&(f=f.val),e=null}var h=null,h=R.getInstance();null!=e?(c._bookText=e,c._isBookTextLoad= !0,c._bookTextFast=Ua.toFast(c._bookText._xml),c.resetBookTextInfoForReload(),h.dispatchEvent(new ja(v.BOOKTEXTXML_LOAD,new na(c,a,null))),null!=b&&b(null!=c._bookText?c:null)):(c._isBookTextLoad=!1,h.dispatchEvent(new ja(v.BOOKTEXTXML_ERROR,new na(c,a,null))),null!=b&&b(null),null!=a&&a.destroy())});return!0},resetBookTextInfoForReload:function(){if(null!=this._bookText&&0!=this._isBookTextLoad){var a=this._bookText.getNode(Sa.BookPages);null!=a&&(this._pageCount=Ua.getAttrInt(a,Sa.BookCount,0), 0!=this._pageCount&&this.resetBookTextInfoForReloadOld())}},resetBookTextInfoForReloadOld:function(){if(null!=this._bookText&&0!=this._isBookTextLoad){var a=this._bookText.getNode(Sa.BookPages);if(null!=a&&(this._pageCount=Ua.getAttrInt(a,Sa.BookCount,0),0!=this._pageCount))for(a=Ua.getNodes(a,Sa.BookPage);a.hasNext();){var b=a.next();if(null!=b&&(b=Ua.getAttrString(b,Sa.PageIsMac,null),null!=b)){this._firstIsMac="true"==b.toLowerCase();break}}}},getPageStringByIndex:function(a){return 0>=a?null: this.getPageStringByIndexOld(a)},getPageStringByIndexOld:function(a){var b=null;if(0>=a)return null;if(null!=this._bookText&&0!=this._isBookTextLoad){var c=this._bookText.getNode(Sa.BookPages);if(null==c)return null;for(c=Ua.getNodes(c,Sa.BookPage);c.hasNext();){var d=c.next();if(null!=d){var e=Ua.getAttrInt(d,Sa.PageIndex,-1);if(!(0>e||e!=a)){if(e==a){b=Ua.theValue(d,null);break}break}}}}return b},getPageXmlClassByIndex:function(a){return 0>=a?null:this.getPageXmlClassByIndexOld(a)},getPageXmlClassByIndexOld:function(a){var b= null;if(0>=a)return null;if(null!=this._bookText&&0!=this._isBookTextLoad){var c=this._bookText.getNode(Sa.BookPages);if(null==c)return null;this._pageCount=Ua.getAttrInt(c,Sa.BookCount,0);if(0==this._pageCount)return null;for(c=Ua.getNodes(c,Sa.BookPage);c.hasNext();){var d=c.next();if(null!=d){var e=Ua.getAttrInt(d,Sa.PageIndex,-1);if(!(0>e||e!=a)){Ua.getAttrString(d,Sa.PageIsMac,null);if(e==a){b=new Ma(d);break}break}}}}return b},__class__:yk};var Sa=function(){};g["first.text.BookTextConst"]= Sa;Sa.__name__=["first","text","BookTextConst"];Sa.initParameters=function(){if(0==Sa.isInit){Sa.isInit=!0;var a;a=Y.getInstance();a.set(Sa.TEXTFILE,Ee.FLIPBOOKTEXT_FILENAME);a.set(Sa.PAGEFILELEFT,Ee.FLIPBOOKPAGE_FILELEFT);a.set(Sa.PAGEFILERIGHT,Ee.FLIPBOOKPAGE_FILERIGHT)}};var fq=function(){this._loader=this._url=null;this._isLoad=!1;this._onComplete=null};g["first.text.BookTextLoader"]=fq;fq.__name__=["first","text","BookTextLoader"];fq.prototype={_url:null,_type:null,_isLoad:null,_loader:null, _onComplete:null,destroy:function(){this._isLoad=!1;null!=this._loader&&(this._loader.destroy(),this._loader=null)},onIoError:function(a){this._isLoad=!1;null!=this._onComplete&&this._onComplete(this)},startLoad:function(a,b){null==a&&(a="");var c=this;null!=this._loader&&(this._loader.destroy(),this._loader=null);if(null==a||""==a)return-1;this._onComplete=b;this._loader=new km("xml");this._loader.onIoError=k(this,this.onIoError);this._loader.onOpen=function(a){c._type=a.loadType};this._loader.onProgress= function(a){};this._loader.onComplete=k(this,this.onCompleteData);this._loader.onSecurityError=k(this,this.onSecurityError);this._url=a;this._loader.startLoad(pd.BINARY,this._url);return 0},onCompleteData:function(a){this._isLoad=!0;this._type=a.loadType;null!=this._onComplete&&this._onComplete(this)},onSecurityError:function(a){this._isLoad=!1;null!=this._onComplete&&this._onComplete(this)},__class__:fq};var gq=function(a,b){null==b&&(b=0);null==a&&(a=0);U.call(this,a,b)};g["first.text.BookTextSprite"]= gq;gq.__name__=["first","text","BookTextSprite"];gq.__super__=U;gq.prototype=t(U.prototype,{__class__:gq});var Ad=function(){yk.call(this);if(null!=Ad.instance)throw new q(new O("\u5355\u4f8b\u6a21\u5f0f"));Sa.initParameters();this._bookTextUrl=Y.getInstance().get(Sa.TEXTFILE)};g["first.text.BookTextSystem"]=Ad;Ad.__name__=["first","text","BookTextSystem"];Ad.getInstance=function(){null==Ad.instance&&(Ad.instance=new Ad);return Ad.instance};Ad.__super__=yk;Ad.prototype=t(yk.prototype,{asyncBookTextLoaded:function(a){var b= this,c=!1;if(null==a)return!1;var d=function(d){c=null!=b._bookText&&0!=b._isBookTextLoad;null!=a&&a(c);return c};null!=this._bookText&&0!=this._isBookTextLoad?null!=a&&d(this):this.reloadBookTextXML(this._bookTextUrl,d);return!0},asyncPageXmlClassByIndex:function(a,b){var c=this,d=null;if(null==b)return!1;0>=a&&null!=b&&b(null);var e=function(e){if(null!=c._bookText&&0!=c._isBookTextLoad)return d=c.getPageXmlClassByIndex(a),null!=b&&b(d),!0;null!=b&&b(null);return!1};null!=this._bookText&&0!=this._isBookTextLoad? null!=b&&e(this):this.reloadBookTextXML(this._bookTextUrl,e);return!0},asyncPageTextClassByIndex:function(a,b,c,d){null==c&&(c=0);null==b&&(b=0);var e=null;if(null==d)return!1;0>=a&&null!=d&&d(null);var f=function(a){if(null!=a&&0!=a._isLoadOffset)return null!=d&&d(a),!0;null!=d&&d(null);a.destroy();return!1};this.asyncPageXmlClassByIndex(a,function(h){null==h?null!=d&&d(null):(e=new Vg(a,b,c),null!=e?(e._pageTextXml=h,e._pageText=h.stringValue(),e.reloadPageTextXML(e._offsetTextUrl,f)):null!=d&& d(null))});return!0},__class__:Ad});var Ch=function(a,b){null==b&&(b=0);null==a&&(a=0);this._backColor=this._strokeColor=16777215;this._downPoint=this._dxdyPoint=this._lastPoint=this._rectSelect=null;this._isDown=!1;this._bookPage=null;U.call(this,a,b);this._bookPage=null;this._downPoint=new Q(0,0);this._dxdyPoint=new Q(0,0);this._lastPoint=new Q(0,0);this._backColor=255;this._backSprite=new di(a,b,this._backColor,!0,this._strokeColor,!1,1);this._backSprite.set_alpha(.06);this.addChildAt(this._backSprite, 0);this._rectSprite=new di(10,10,10424653,!0,10424653,!1);this.addChild(this._rectSprite);this._rectSprite._isFill=!0;this._rectSprite._fillAlpha=.1;this._rectSprite._isStroke=!0;this._rectSprite.set_visible(!1)};g["first.text.SelectRectSprite"]=Ch;Ch.__name__=["first","text","SelectRectSprite"];Ch.__super__=U;Ch.prototype=t(U.prototype,{_bookPage:null,_isDown:null,_downPoint:null,_dxdyPoint:null,_lastPoint:null,_rectSelect:null,_rectSprite:null,_backColor:null,_strokeColor:null,_backSprite:null, destroy:function(){this._bookPage=null;R.getInstance().removeEventListener(v.BOOKPAGE_SELECTDOWN,this,k(this,this.onSelectMouseDown));null!=this._rectSprite.parent&&this._rectSprite.parent.removeChild(this._rectSprite);this._rectSprite.get_graphics().clear();this._rectSprite.destroy();this._rectSprite=null;null!=this._backSprite.parent&&this._backSprite.parent.removeChild(this._backSprite);this._backSprite.get_graphics().clear();this._backSprite.destroy();this._backSprite=null;U.prototype.destroy.call(this)}, resize:function(a,b){this._backSprite.resize(a,b);U.prototype.resize.call(this,a,b);this.set_scaleX(this.set_scaleY(1))},registerEventListener:function(){this.addEventListener(A.MOUSE_DOWN,k(this,this.onStageMouseDown));this.addEventListener(A.MOUSE_MOVE,k(this,this.onStageMouseMove));this.stage.addEventListener(A.MOUSE_UP,k(this,this.onStageMouseUp));R.getInstance().addEventListener(v.BOOKPAGE_SELECTDOWN,this,k(this,this.onSelectMouseDown))},unregisterEventListener:function(){this.removeEventListener(A.MOUSE_DOWN, k(this,this.onStageMouseDown));this.removeEventListener(A.MOUSE_MOVE,k(this,this.onStageMouseMove));this.stage.removeEventListener(A.MOUSE_UP,k(this,this.onStageMouseUp));R.getInstance().removeEventListener(v.BOOKPAGE_SELECTDOWN,this,k(this,this.onSelectMouseDown))},onAddedToStageCall:function(a){U.prototype.onAddedToStageCall.call(this,a);this.registerEventListener()},onRemoveFromStageCall:function(a){this.unregisterEventListener();this._rectSprite.get_graphics().clear();this._rectSprite.set_visible(!1); U.prototype.onRemoveFromStageCall.call(this,a)},getRectangle:function(a,b){if(null==a||null==b)return new va(0,0,0,0);var c=Math.floor(Math.min(a.x,b.x)),d=Math.floor(Math.min(a.y,b.y)),e=Math.abs(Math.floor(b.x)-Math.floor(a.x)),f=Math.abs(Math.floor(b.y)-Math.floor(a.y));return new va(c,d,e,f)},onSelectMouseDown:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._trigger,Ch)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}null!=b&& b!=this&&(a=lb.getInstance(),null!=a._copySprite&&a._copySprite.set_visible(!1),null!=this._bookPage&&this._bookPage.hasSelectTextHasWords()&&(this.doUpdateCurrentSelection(new va(0,0,0,0)),this._rectSelect=new va(0,0,0,0)))}},onStageMouseDown:function(a){this._isDown=!0;var b=this.get_mouseX(),c=this.get_mouseY();this._downPoint=new Q(b,c);this._lastPoint=new Q(b,c);b=lb.getInstance();null!=b._copySprite&&b._copySprite.set_visible(!1);this.doUpdateCurrentSelection(new va(0,0,0,0));this._rectSelect= new va(0,0,0,0);R.getInstance().dispatchEvent(new ja(v.BOOKPAGE_SELECTDOWN,new na(this,null,a)))},onStageMouseMove:function(a){if(0!=this._isDown){a=this.get_mouseX();var b=this.get_mouseY();this._lastPoint=new Q(a,b);this._dxdyPoint.x=a-this._downPoint.x;this._dxdyPoint.y=b-this._downPoint.y;this._rectSelect=this.getRectangle(this._downPoint,this._lastPoint);this.doUpdateCurrentSelection(this._rectSelect)}},onStageMouseUp:function(a){if(0!=this._isDown){var b=a.stageX;a=a.stageY;this.get_mouseX(); this.get_mouseY();this._downPoint=new Q(0,0);this._dxdyPoint=new Q(0,0);this._lastPoint=new Q(0,0);this._isDown=!1;var c=lb.getInstance();null==c._copySprite&&c.createProgramCopyButton();null!=this._bookPage&&this._bookPage.hasSelectTextHasWords()&&0==this._rectSelect.isEmpty()&&0!=this._rectSelect.width&&0!=this._rectSelect.height?(c._copySprite.move(b-.5*c._copySprite._width,a-1.2*c._copySprite._height),c._copyButton.set_clickedFunc(k(this,this.onCopyButtonClicked)),c._copySprite.set_visible(!0)): c._copySprite.set_visible(!1)}},doUpdateCurrentSelection:function(a){null!=a&&(1==a.isEmpty()||0==a.width||0==a.height?this._rectSprite.get_graphics().clear():(this._rectSprite.move(a.x,a.y),this._rectSprite.resize(a.width,a.height)),this._rectSprite.set_visible(!1),null!=this._bookPage&&this._bookPage.updateSelectTextColorBySelection(a))},onCopyButtonClicked:function(a){null!=a&&a.set_clickedFunc(null);a=lb.getInstance();null!=this._bookPage&&this._bookPage.copySelectTextToGeneralClipboard();null!= a._copySprite&&a._copySprite.set_visible(!1)},__class__:Ch});var nm=function(a,b){null==b&&(b=0);null==a&&(a=0);Ch.call(this,a,b)};g["first.text.PageTextContainer"]=nm;nm.__name__=["first","text","PageTextContainer"];nm.__super__=Ch;nm.prototype=t(Ch.prototype,{resize:function(a,b){Ch.prototype.resize.call(this,a,b)},__class__:nm});var di=function(a,b,c,d,e,f,h,p,H,g,k){this._bookPage=null;ua.call(this,a,b,c,d,e,f,h,p,H,g,k)};g["first.text.SelectSprite"]=di;di.__name__=["first","text","SelectSprite"]; di.__super__=ua;di.prototype=t(ua.prototype,{_bookPage:null,__class__:di});var hq=function(a){this._bookPage=null;F.call(this);this._mainSprite=a};g["first.text.TestTextSprite"]=hq;hq.__name__=["first","text","TestTextSprite"];hq.__super__=F;hq.prototype=t(F.prototype,{_mainSprite:null,testCode:function(){var a;a=R.getInstance();a.setEventSprite(this);a.setEventMode(!1);R.getInstance().addEventListener(v.MAINXML_COMPLETE,this,k(this,this.onBookXmlReloadComplete));pe.getInstance(null).reloadXml(Ee.FLIPBOOKXML_PATH)}, _bookPage:null,onBookXmlReloadComplete:function(a){if(null!=a&&null!=a._data){try{m.__cast(a._data._trigger,pe)}catch(b){if(G.lastException=b,b instanceof q&&(b=b.val),!m.__instanceof(b,O))throw b;}a=new cb(1112,1440,10);this._mainSprite.addChild(a);this._bookPage=a;"./files/mobile/10.jpg"==a._contentURL&&0!=a._isContentLoaded||a.loadContent("./files/mobile/10.jpg",k(this,this.onCompleteFunc))}},onCompleteFunc:function(a){null!=a&&(a._canLoadTexts=!0,0!=a._canLoadTexts&&0!=a._isContentLoaded&&0== a._isTextsLoaded&&(a._objectsSprite.front(),a.loadTextForDisplay()))},__class__:hq});var Jf=function(a,b,c,d){this._oldVertical=this._isRightToLeft=!1;dd.call(this,!1,b,c,null,d,null,null);Y.getInstance();zb.initParameters();this._isVertical=!1;this._flipBook=a;this._pageWidth=a._pageWidth;this._pageHeight=a._pageHeight;this._dataHandler=a._dataHandler;this._isRightToLeft=a._isRightToLeft;this._thumbItemsBack=[];this.initThumbnailsPages()};g["first.thumb.ThumbnailsBase"]=Jf;Jf.__name__=["first","thumb", "ThumbnailsBase"];Jf.__super__=dd;Jf.prototype=t(dd.prototype,{_pageWidth:null,_pageHeight:null,_flipBook:null,_dataHandler:null,_thumbWidth:null,_thumbHeight:null,_thumbPages:null,_oldVertical:null,_isRightToLeft:null,_thumbItemsBack:null,getFixItemHandler:function(a){return a},getFixStepHandler:function(a){return a},createStep:function(a){return new sj(a,this.getFrameHeight(),this.getFrameHeight(),this._isVertical)},resizeAllStepSize:function(){dd.prototype.resizeAllStepSize.call(this)},getLineSpace:function(){return Y.getInstance().get(zb.LINESPACE)}, getStepSpace:function(){return Y.getInstance().get(zb.STEPSPACE)},getStepHeight:function(){return Y.getInstance().get(zb.STEPHEIGHT)},getItemWidth:function(){return Y.getInstance().get(zb.ITEMHEIGHT)},getItemHeight:function(){return Y.getInstance().get(zb.ITEMHEIGHT)},getFrameHeight:function(){return Y.getInstance().get(zb.FRAMEHEIGHT)},resizeThumbSize:function(){this.resizeScaleSize()},resizeScaleSize:function(){Y.getInstance();var a=Gd.scaleHeight(this._pageHeight,this.getItemHeight());this._thumbWidth= this._pageWidth*a|0;this._thumbHeight=this._pageHeight*a|0;this._itemWidth=2*this._thumbWidth;this._itemHeight=this._thumbHeight},turnThumbnailsPages:function(){if(null!=this._contentItems&&0!=this._isRightToLeft&&null!=this._thumbItemsBack&&0=this._contentItems.length)return null;a=0<=a-1?a-1:0;if(a>=this._contentItems.length)return null;var b=null;return b=this._contentItems[a]},getDragListItemIndex:function(a){if(0>a)return-1;var b=null,c=(a+2)/2|0;for(0!=this._isRightToLeft&&(c=1);c<=this._contentItems.length;){b=this.getDragListItem(c);if(null!= b&&(b.get_pageA()._pageIndex==a||b.get_pageB()._pageIndex==a))return c;c+=1}return-1},getDragListItemByPageIndex:function(a){if(0>a)return null;var b=null,c=(a+2)/2|0;for(0!=this._isRightToLeft&&(c=1);c<=this._contentItems.length;){b=this.getDragListItem(c);if(null!=b&&(b.get_pageA()._pageIndex==a||b.get_pageB()._pageIndex==a))break;c+=1}return b},updateDragListItems:function(){for(var a=1;a<=this._contentItems.length;){var b=this.getDragListItem(a);null!=b&&this.updateDragListItemByItem(b);a+=1}}, updateDragListItemByItem:function(a){a=this.getFixItemHandler(a);null!=a&&(this.setThumbnailsItemBackAlpha(a),this.setThumbnailsItemTextValue(a))},updateDragListItemByPageItem:function(a){a=this.getFixItemHandler(a);null!=a&&null!=this._pageFunc&&(this._pageFunc(a.get_pageA()),this._pageFunc(a.get_pageB()))},updateDragListItemByPageIndex:function(a){var b=(a+2)/2|0;for(0!=this._isRightToLeft&&(b=1);b<=this._contentItems.length;){var c=this.getDragListItem(b);if(null!=c&&(c.get_pageA()._pageIndex== a||c.get_pageB()._pageIndex==a)){this.updateDragListItemByPageItem(c);break}b+=1}},setThumbnailsItemBackAlpha:function(a){var b=this._flipBook.getTotalPageCount(),c=a.get_pageA()._pageIndex,d=a.get_pageB()._pageIndex;(1>c||c>b)&&a.get_pageA().setBackSpriteAlpha(0);(1>d||d>b)&&a.get_pageB().setBackSpriteAlpha(0)},setThumbnailsItemTextValue:function(a){var b="",c=this._flipBook.getTotalPageCount(),d=a.get_pageA()._pageIndex,e=a.get_pageB()._pageIndex;1<=d&&d<=c&&(b=b+""+d);1<=d&&d<=c&&1<=e&&e<=c&&(b+= " - ");1<=e&&e<=c&&(b=b+""+e);null!=a&&a.resetTextFideldText(b)},doDragListItemClicked:function(a){if(null!=this.getFixItemHandler(a))for(a=1;a<=this._contentItems.length;){var b=this.getDragListItem(a);null!=b&&(b._rectSprite.set_isStroke(!1),b._downSprite._isDown=!1,b._downSprite.onMouseOut(null));a+=1}},onDragListItemClicked:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._trigger,Xg)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c; }null!=b&&this.doDragListItemClicked(b)}},__class__:Jf});var zb=function(){};g["first.thumb.ThumbnailsConst"]=zb;zb.__name__=["first","thumb","ThumbnailsConst"];zb.initParameters=function(){if(0==zb.isInit){zb.isInit=!0;var a;a=Y.getInstance();a.set(zb.LINESPACE,zb.LINESPACEVAL);a.set(zb.STEPSPACE,zb.STEPSPACEVAL);a.set(zb.STEPHEIGHT,zb.STEPHEIGHTVAL);a.set(zb.ITEMHEIGHT,zb.ITEMHEIGHTVAL);a.set(zb.FRAMEHEIGHT,zb.FRAMEHEIGHTVAL)}};var Xg=function(a,b,c,d,e,f){null==f&&(f=0);null==d&&(d=0);null==b&& (b=0);null==a&&(a=0);Vc.call(this,c,e,a,b);this._scaleY=this._scaleX=1;this._pageWidth=a;this._pageHeight=b;this._index_a=d;this._index_b=f;this.c_mc1.enable_mouse(!1);this.c_mc2.enable_mouse(!1);this._backSprite=new ua(this._pageWidth,this._pageHeight,16777215,!1,11184810,!1,1);this.addChild(this._backSprite);this._backSprite._isStroke=!0;this._backSprite.set_strokePixel(1);this._backSprite.set_strokeStyle(11184810);this._backSprite.enable_mouse(!1);this._rectSprite=new ua(this._pageWidth,this._pageHeight, 16777215,!1,65535,!1,1);this.addChild(this._rectSprite);this._rectSprite.set_strokePixel(1.5);this._rectSprite.set_strokeStyle(65535);this._rectSprite.enable_mouse(!1);this._downSprite=new vb(this._pageWidth,this._pageHeight,7829367,.8,6710886,1,10066329,.8,6710886,1);this._downSprite._alpha=.8;this.addChild(this._downSprite);this._textField=new Tb;this._textSprite=new U;this._textSprite.addChild(this._textField);this._downSprite.addChild(this._textSprite);this._textField.mouseEnabled=!1;this._textSprite.enable_mouse(!1); this._textField.set_text(this._index_a+" - "+this._index_b);this._textField.set_x(0);this._textField.set_y(0);this._downSprite.set_downFunc(k(this,this.onMouseClick))};g["first.thumb.ThumbnailsItem"]=Xg;Xg.__name__=["first","thumb","ThumbnailsItem"];Xg.__super__=Vc;Xg.prototype=t(Vc.prototype,{_scaleX:null,_scaleY:null,_scaleWidth:null,_scaleHeight:null,_rectSprite:null,_textField:null,_textSprite:null,_downSprite:null,_clickedFunc:null,resetScaleThumbPage:function(){var a=null,a=Y.getInstance(); this._scaleY=this._scaleX=a=Gd.scaleHeight(this._pageHeight,a.get(zb.ITEMHEIGHT));this._scaleWidth=this._pageWidth*this._scaleX|0;this._scaleHeight=this._pageHeight*this._scaleY|0;this.c_mc1.resize(this._scaleWidth,this._scaleHeight);this._page_a.set_scaleX(this._scaleX);this._page_a.set_scaleY(this._scaleY);this.c_mc2.set_x(this._scaleWidth);this.c_mc2.resize(this._scaleWidth,this._scaleHeight);this._page_b.set_scaleX(this._scaleX);this._page_b.set_scaleY(this._scaleY);this._backSprite.resize(2* this._scaleWidth,this._scaleHeight);this._rectSprite.resize(2*this._scaleWidth,this._scaleHeight);this._downSprite.resize(2*this._scaleWidth,this._scaleHeight);a=this._textField.get_text();this.resetTextFideldText(a);this._backSprite.front()},onAddedToStageCall:function(a){this.resetScaleThumbPage()},onRemoveFromStage:function(a){Vc.prototype.onRemoveFromStage.call(this,a);this._downSprite.setUserHitPointMode(!1)},get_clickedFunc:function(){return this._clickedFunc},set_clickedFunc:function(a){return this._clickedFunc= a},onMouseClick:function(a){null!=this._clickedFunc&&this._clickedFunc(this);R.getInstance().dispatchEvent(new ja(v.THUMBNAILSITEM_CLICK,new na(this,null,null)));this._rectSprite.set_isStroke(!0)},resetTextFideldText:function(a){null==a&&(a="");this._textField.set_scaleX(1);this._textField.set_scaleY(1);this._textField.set_text(a);this._textField._size=12;this._textField._color=0;Ra.getInstance().hasKey(C.ControlFontName)&&(a=T.ControlFontName(),this._textField._font=a);this._textField.set_autoSize(Ka.LEFT); this._textField.updateTextFormat();this._textField.set_scaleX(this._textField.set_scaleY(1));this._textField.getBounds(this.stage);a=this._textField.getTextWidth();var b=this._textField.getTextHeight();this._textSprite.set_width(a+4|0);this._textSprite.set_height(b+8|0);this._textSprite.center();this._textSprite.set_scaleX(1);this._textSprite.set_scaleY(1)},__class__:Xg,__properties__:t(Vc.prototype.__properties__,{set_clickedFunc:"set_clickedFunc",get_clickedFunc:"get_clickedFunc"})});var tm=function(a, b,c,d){Jf.call(this,a,b,c,d);this._itemPixelWidth=2*a._pageWidth;this._itemPixelHeight=a._pageHeight;this._itemsAlginStage="center";this._oldVertical=this._isVertical;this._isDrawDelimiter=!0;this._isDrawDelimiter=!1};g["first.thumb.ThumbnailsSprite"]=tm;tm.__name__=["first","thumb","ThumbnailsSprite"];tm.__super__=Jf;tm.prototype=t(Jf.prototype,{resize:function(a,b){Jf.prototype.resize.call(this,a,b)},getThumbHeight:function(){return this.getDragListHeight()},resetItemPixelSize:function(a,b){this._pageWidth= a;this._pageHeight=b;this._itemPixelWidth=2*a;this._itemPixelHeight=b;this.resizeScaleSize();this.resize(this._width,this._height)},setIsVertical:function(a){this._oldVertical=this._isVertical;this._isVertical=a;this._oldVertical!=a!=0&&0!=this._isRightToLeft&&this.turnThumbnailsPages();0!=this._isVertical&&0!=this._isRightToLeft&&(this._itemsAlginStage="left");0==this._isVertical&&0!=this._isRightToLeft&&(this._itemsAlginStage="center");a=Jf.prototype.setIsVertical.call(this,a);if(null!=this._flipBook&& 0!=this._isRightToLeft){var b=this._flipBook.getRealCurrentPageIndex(),b=this.getDragListItemByPageIndex(b);this.doScrollToRectByDragListItem(b)}return a},updateDragListItemForShow:function(a){this.updateDragListItemByItem(a);this.updateDragListItemByPageItem(a)},willShowItemsByScrollRect:function(a){var b=null;if(!(null==a||0>=a.length)){for(var b=[],c=0;c=b||(a=b),this._centerSprite.move(a,0),b+=this._centerSprite._width- c);null!=this._rightItems&&0=b||(a=b),this._rightSprite.move(a,0))},resizeControlsLayout:function(a,b){if(!(null==a||0>=a.length)){for(var c=6,c=Y.getInstance().get(ve.LINESPACE),d=0,e=0,f=0,h=0;ha?a:b:bb?1:ab?1:ah)return 1;if(fH)return 1;if(pc._repeatCount?c.timerCallback():0==c._repeatCount?(c.timerCallback(),c.clean()):0=c._repeatCount?c.clean():c._currentCount++)})},timerCallback:function(){try{null!=this._timerFunc&&this._timerFunc(this)}catch(a){if(G.lastException=a,a instanceof q&&(a=a.val),m.__instanceof(a,O))null;else throw a;}},__class__:ek};var gc=function(){}; g["first.utils.TimerDelayClass"]=gc;gc.__name__=["first","utils","TimerDelayClass"];gc.getTimerList=function(){return gc.timerList};gc.getInstance=function(){null==gc.Instance&&(gc.Instance=new gc,null==gc.timerList&&(gc.timerList=[]));return gc.Instance};gc.delayCall=function(a,b,c){if(null==b)return-1;null==gc.Instance&&gc.getInstance();a=new Qb(a);var d=gc.addTimerDelay(a,c);a.run=function(){try{null!=b&&b(c),gc.clearTimeout(d)}catch(a){if(G.lastException=a,a instanceof q&&(a=a.val),m.__instanceof(a, O))gc.clearTimeout(d);else throw a;}};return d};gc.addTimerDelay=function(a,b){for(var c=gc.timerList,d=0,e=c.length;db._iconWidth||c._height>b._iconHeight?(c=new Ab(e.bitmapData.clone()),c=ok.getZoomDraw(c,b._iconWidth,b._iconHeight),null!=c&&(b._bitmap=new Ab(c))):(b._bitmap=new Ab(e.bitmapData.clone()), null!=b._bitmap&&(b._bitmap.set_x(.5*(b._iconWidth-c._width)),b._bitmap.set_y(.5*(b._iconHeight-c._height)))),0!=b._iconSprite.get_numChildren()&&b._iconSprite.removeAllChildren(),null!=b._bitmap&&(fd.drawColorTransform(b._bitmap,b._iconColor),b._iconSprite.addChild(b._bitmap)))};null!=a&&""!=a&&fd.getInstance().getBitmapImage(a,c)}},__class__:db});var Zf=function(){};g["first2.controls.TSComponentType"]=Zf;Zf.__name__=["first2","controls","TSComponentType"];var ah=function(a,b,c,d){null==d&&(d=!1); null==c&&(c=!1);ja.call(this,a,b,c,d)};g["first2.controls.TSComponentEvent"]=ah;ah.__name__=["first2","controls","TSComponentEvent"];ah.__super__=ja;ah.prototype=t(ja.prototype,{__class__:ah});var Vr=function(){this.showFocusIndicator=!0;this.defaultButtonEnabled=!1};g["first2.controls.TSFocusManager"]=Vr;Vr.__name__=["first2","controls","TSFocusManager"];Vr.prototype={defaultButton:null,defaultButtonEnabled:null,form:null,nextTabIndex:null,showFocusIndicator:null,activate:function(){},deactivate:function(){}, findFocusManagerComponent:function(a){return null},getFocus:function(){return null},getNextFocusManagerComponent:function(a){return null},hideFocus:function(){},setFocus:function(a){},showFocus:function(){},__class__:Vr};var Zl=function(a,b,c){null==c&&(c="");null==b&&(b=32);null==a&&(a=32);db.call(this,a,b,a,b,c);this._showState=rd.Image;this.setShowState(this._showState)};g["first2.controls.TSImageButton"]=Zl;Zl.__name__=["first2","controls","TSImageButton"];Zl.__super__=db;Zl.prototype=t(db.prototype, {__class__:Zl});var Xi=function(a,b){null==b&&(b=32);null==a&&(a=32);Oa.call(this,a,b);this.buttonMode=!0;this._isDrawCheck=this._isDrawDown=this._isDrawOver=this._isDrawFill=this._isStroke=this._isFill=!1;this._imageCheckUrl=this._imageDownUrl=this._imageUrl=this._bitmapUrl=null;this._imageSprite=new Yi(null);this.addChild(this._imageSprite);this._imageSprite.buttonMode=!0;this._imageSprite.enable_mouse(!1)};g["first2.controls.TSImageSprite"]=Xi;Xi.__name__=["first2","controls","TSImageSprite"]; Xi.__super__=Oa;Xi.prototype=t(Oa.prototype,{_imageSprite:null,resize:function(a,b){Oa.prototype.resize.call(this,a,b);null!=this._imageSprite&&(this._imageSprite._bitmapSmoothing=!0,this._imageSprite.setScale(a,b,"left","center"))},setImageUrl:function(a){null!=a&&(this._imageUrl=a,this.set_iconImage(a))},setImageDownUrl:function(a){null!=a&&(this._imageDownUrl=a,this.set_iconImage(a))},set_iconImage:function(a){null==a&&(a="");null!=this._imageSprite&&a!=this._imageSprite._bitmapUrl&&this._imageSprite.setImage(a, k(this,this.doCompleteCall))},doCompleteCall:function(a){if(null!=a&&0!=a._bitmapWidth&&0!=a._bitmapHeight){var b=Gd.scaleWidthHeight(a._bitmapWidth,a._bitmapHeight,this._width,this._height),b=Math.min(b,1),c=a._bitmapWidth*b;a=a._bitmapHeight*b;var d;try{d=m.__cast(this.parent,U)}catch(e){if(G.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,O))d=null;else throw e;}null!=d?(this.resize(c,a),d.resize(c,a),this.sendUpText()):this.resize(c,a)}},__class__:Xi});var Sd=function(a,b){null==b&& (b=10);null==a&&(a=10);this.textField=null;this.text="";this.selectable=!1;Oa.call(this,a,b);this.set_isStroke(!1);this.set_strokeStyle(11184810);this._isDrawCheck=this._isDrawDown=this._isDrawOver=this._isDrawFill=!1;this.textField=new Tb(a,b);this.textField.move(1,1);this.textField.resize(a-2,b-2);this.addChild(this.textField);this.textField.set_wordWrap(!0);this.textField.set_text("");this.textField.set_text("label");this.textField.set_autoSize(Ka.LEFT);this.textField.set_autoSize(Ka.NONE);this.textField.addEventListener(J.CHANGE, k(this,this.textInputDidChange));this.textField.addEventListener(ie.LINK,k(this,this.textInputClickLink))};g["first2.controls.TSLabel"]=Sd;Sd.__name__=["first2","controls","TSLabel"];Sd.__super__=Oa;Sd.prototype=t(Oa.prototype,{autoSize:null,condenseWhite:null,selectable:null,text:null,textField:null,set_textColor:function(a){null==a&&(a=0);Oa.prototype.set_textColor.call(this,a);null!=this.textField&&(this.textField._color=this._textColor,this.textField.updateTextFormat())},set_textFontName:function(a){null== a&&(a="Tahoma");Oa.prototype.set_textFontName.call(this,a);null!=this.textField&&(this.textField._font=this._textFontName,this.textField.updateTextFormat())},get_wordWrap:function(){return this.textField.get_wordWrap()},set_wordWrap:function(a){this.textField.set_wordWrap(a);return a},textInputDidChange:function(a){null!=this.textField&&this.textField.updateTextFormat()},textInputClickLink:function(a){},resize:function(a,b){Oa.prototype.resize.call(this,a,b);null!=this.textField&&(this.textField.set_x(1), this.textField.set_y(1),this.textField.resize(a-2,b-2))},centerTextWidth:function(){var a=this.textField.getMainTextFormat(),b=this.textField.get_text();if(null==b||""==b)b="BbGg";a=wh.measureString(b,a);2>=this._width-(a.width+4)?this.textField.move(1,this.textField.get_y()):(this.textField.set_x(.5*(this._width-(a.width+4))),this.textField.move(this.textField.get_x(),this.textField.get_y()))},centerTextHeight:function(){var a=this.textField.getMainTextFormat(),b=this.textField.get_text();if(null== b||""==b)b="BbGg";a=wh.measureString(b,a);2>=this._height-(a.height+4)?this.textField.move(this.textField.get_x(),1):(this.textField.set_y(.5*(this._height-(a.height+4))),this.textField.move(this.textField.get_x(),this.textField.get_y()))},getText:function(){return this.textField.get_text()},setText:function(a){null==a&&(a="");this.textField.set_text(a);this.textField.updateTextFormat()},appendText:function(a){this.textField.appendText(a)},getTextWidth:function(){return this.textField.getTextWidth()}, getTextHeight:function(){return this.textField.getTextHeight()},__class__:Sd,__properties__:t(Oa.prototype.__properties__,{set_wordWrap:"set_wordWrap",get_wordWrap:"get_wordWrap"})});var Bk=function(){};g["first2.controls.TSLabelPlacement"]=Bk;Bk.__name__=["first2","controls","TSLabelPlacement"];var Sg=function(){};g["first2.controls.TSListItemState"]=Sg;Sg.__name__=["first2","controls","TSListItemState"];var xj=function(a,b,c){null==c&&(c=4);null==b&&(b=13948116);null==a&&(a=20);this.timerPeriod= 33;this.frameCount=0;this.frameRate=30;this.delayTween=200;this.delay=2;this.currentIndex=0;this.circleItems=[];this.circleCount=12;this.color=13948116;this.subRadius=4;this.radius=20;this.isInit=!1;Oa.call(this,2*a+2*c,2*a+2*c);this.buttonMode=!1;this.radius=a;this.color=b;this.subRadius=c;this._isDrawFill=!0;this._isStroke=this._isFill=this._isDrawCheck=this._isDrawDown=this._isDrawOver=!1;this.set_strokeStyle(16711680)};g["first2.controls.TSLoadingBase"]=xj;xj.__name__=["first2","controls","TSLoadingBase"]; xj.__super__=Oa;xj.prototype=t(Oa.prototype,{isInit:null,radius:null,subRadius:null,color:null,circleCount:null,circleItems:null,currentIndex:null,currentCircle:null,textLabel:null,delay:null,delayTween:null,frameRate:null,frameCount:null,timerPeriod:null,loadingTimer:null,resetLoading:function(){this.remove();this.isInit=!1;this.initLoading()},getSubItem:function(){return new Ck(this.subRadius,this.color)},initLoading:function(){if(!this.isInit){for(var a=0,b=360/this.circleCount,c=2*Math.PI/this.circleCount, d=0,e=this.circleCount;d=this.delay&&this.render()},render:function(){this.frameCount=0;this.currentIndex++;null!=this.circleItems&&this.currentIndex>=this.circleItems.length&&(this.currentIndex=0);this.currentCircle=this.circleItems[this.currentIndex];this.currentCircle.alpha=1;this.currentCircle.scaleX=this.currentCircle.scaleY=1;0!=this.currentCircle.hasScale? S.tween(this.currentCircle,this.delayTween/this.frameRate,{alpha:0,scaleX:0,scaleY:0}):S.tween(this.currentCircle,this.delayTween/this.frameRate,{alpha:0});this.updateText()},updateText:function(){},__class__:xj});var bh=function(){this.hasScale=!1;F.call(this)};g["first2.controls.TSLoadingItem"]=bh;bh.__name__=["first2","controls","TSLoadingItem"];bh.__super__=F;bh.prototype=t(F.prototype,{hasScale:null,__class__:bh});var Ck=function(a,b){null==b&&(b=8092539);null==a&&(a=4);bh.call(this);this.hasScale= !0;this.get_graphics().beginFill(b,1);this.get_graphics().drawCircle(-a/2,-a/2,a);this.get_graphics().endFill()};g["first2.controls.TSLoadingCircle"]=Ck;Ck.__name__=["first2","controls","TSLoadingCircle"];Ck.__super__=bh;Ck.prototype=t(bh.prototype,{__class__:Ck});var xm=function(a,b){null==b&&(b=8092539);null==a&&(a=4);bh.call(this);this.hasScale=!1;var c=a,d=a;this.get_graphics().beginFill(b,1);this.get_graphics().drawRoundRect(-c/1,-d/2,3*c,d,1,1);this.get_graphics().endFill()};g["first2.controls.TSLoadingRoundRect"]= xm;xm.__name__=["first2","controls","TSLoadingRoundRect"];xm.__super__=bh;xm.prototype=t(bh.prototype,{__class__:xm});var Wh=function(){};g["first2.controls.TSLoadingMode"]=Wh;Wh.__name__=["first2","controls","TSLoadingMode"];var Bl=function(a,b,c){null==c&&(c=4);null==b&&(b=13948116);null==a&&(a=20);this.loadingMode="Circle";xj.call(this,a,b,c);this.loadingMode=Wh.RoundRect};g["first2.controls.TSLoadingSprite"]=Bl;Bl.__name__=["first2","controls","TSLoadingSprite"];Bl.__super__=xj;Bl.prototype=t(xj.prototype, {loadingMode:null,getSubItem:function(){var a=null;this.loadingMode==Wh.Circle?a=new Ck(this.subRadius,this.color):this.loadingMode==Wh.RoundRect&&(a=new xm(this.subRadius,this.color));return a},__class__:Bl});var pf=function(a,b){null==b&&(b=22);null==a&&(a=100);this.alwaysShowSelection=this.condenseWhite=this.displayAsPassword=this.editable=!1;Oa.call(this,a,b);this.drawShape();this._isDrawFill=!0;this._isDrawCheck=this._isDrawDown=this._isDrawOver=!1;this.set_isFill(!0);this._rectFill=16777215; this._rectAlpha=.95;this.set_isStroke(!0);this._rectStroke=11184810;this.set_rectStyle();this.textField=new cm(a,b);this.textField.move(1,1);this.textField.resize(a-2,b-2);this.addChild(this.textField);this.textField.set_wordWrap(!1);this.textField.set_text("");this.textField.set_text("text input");this.textField.set_autoSize(Ka.LEFT);this.textField.set_autoSize(Ka.NONE)};g["first2.controls.TSTextInput"]=pf;pf.__name__=["first2","controls","TSTextInput"];pf.getStyleDefinition=function(){return null}; pf.__super__=Oa;pf.prototype=t(Oa.prototype,{alwaysShowSelection:null,condenseWhite:null,displayAsPassword:null,editable:null,horizontalScrollPosition:null,htmlText:null,imeMode:null,length:null,maxChars:null,maxHorizontalScrollPosition:null,restrict:null,selectionBeginIndex:null,selectionEndIndex:null,text:null,textField:null,resize:function(a,b){Oa.prototype.resize.call(this,a,b);null!=this.textField&&(this.textField.set_x(1),this.textField.resize(a-2,b-2),this.centerTextHeight())},set_textColor:function(a){null== a&&(a=0);Oa.prototype.set_textColor.call(this,a)},set_textFontName:function(a){null==a&&(a="Tahoma");Oa.prototype.set_textFontName.call(this,a);null!=this.textField&&(this.textField._font=this._textFontName,this.textField.updateTextFormat())},onAddedToStageCall:function(a){Oa.prototype.onAddedToStageCall.call(this,a);this.textField.addEventListener(J.CHANGE,k(this,this.textInputDidChange));this.textField.addEventListener(ie.LINK,k(this,this.textInputClickLink));this.textField.addEventListener(ie.TEXT_INPUT, k(this,this.textInputEventTextInput));this.textField.addEventListener(Oc.FOCUS_IN,k(this,this.textInputDidFocusIn));this.textField.addEventListener(Oc.FOCUS_OUT,k(this,this.textInputDidFocusOut));this.textField.addEventListener(A.MOUSE_DOWN,k(this,this.textInputMouseDown));this.textField.addEventListener(vc.KEY_UP,k(this,this.textInputOnKeyUp));this.textField.addEventListener(vc.KEY_DOWN,k(this,this.textInputOnKeyDown))},onRemoveFromStageCall:function(a){Oa.prototype.onRemoveFromStageCall.call(this, a);this.textField.removeEventListener(J.CHANGE,k(this,this.textInputDidChange));this.textField.removeEventListener(ie.LINK,k(this,this.textInputClickLink));this.textField.removeEventListener(ie.TEXT_INPUT,k(this,this.textInputEventTextInput));this.textField.removeEventListener(Oc.FOCUS_IN,k(this,this.textInputDidFocusIn));this.textField.removeEventListener(Oc.FOCUS_OUT,k(this,this.textInputDidFocusOut));this.textField.removeEventListener(A.MOUSE_DOWN,k(this,this.textInputMouseDown));this.textField.removeEventListener(vc.KEY_UP, k(this,this.textInputOnKeyUp));this.textField.removeEventListener(vc.KEY_DOWN,k(this,this.textInputOnKeyDown))},textInputDidChange:function(a){null!=this.textField&&this.textField.updateTextFormat();this.centerTextHeight()},textInputDidFocusIn:function(a){this.centerTextHeight()},textInputDidFocusOut:function(a){},textInputClickLink:function(a){},textInputEventTextInput:function(a){},textInputOnKeyUp:function(a){R.getInstance().dispatchEvent(new ja(v.COMPONENT_KEYUP,new na(this,null,a)))},textInputOnKeyDown:function(a){R.getInstance().dispatchEvent(new ja(v.COMPONENT_KEYDOWN, new na(this,null,a)))},onMouseDown:function(a){Oa.prototype.onMouseDown.call(this,a)},textInputMouseDown:function(a){},centerTextWidth:function(){var a=this.textField.getMainTextFormat(),b=this.textField.get_text();if(null==b||""==b)b="BbGg";a=wh.measureString(b,a);2>=this._width-(a.width+4)?this.textField.move(1,this.textField.get_y()):(this.textField.set_x(.5*(this._width-(a.width+4))),this.textField.move(this.textField.get_x(),this.textField.get_y()))},centerTextHeight:function(){var a=this.textField.getMainTextFormat(), b=this.textField.get_text();if(null==b||""==b)b="BbGg";a=wh.measureString(b,a);2>=this._height-(a.height+4)?this.textField.move(this.textField.get_x(),1):(this.textField.set_y(.5*(this._height-(a.height+4))+1),this.textField.move(this.textField.get_x(),this.textField.get_y()))},getText:function(){return this.textField.get_text()},setText:function(a){null==a&&(a="");this.textField.set_text(a);this.textField.updateTextFormat()},appendText:function(a){this.textField.appendText(a)},getTextWidth:function(){return this.textField.getTextWidth()}, getTextHeight:function(){return this.textField.getTextHeight()},drawFocus:function(a){},getLineMetrics:function(a){return null},setSelection:function(a,b){},__class__:pf});var Dk=function(a,b){null==b&&(b=22);null==a&&(a=100);pf.call(this,a,b);this._pageCount=this._pageIndex=this._pageFirst=0;this._flipBook=null;this._cacheText="";this.textField.set_text("");this.textField.enable_mouse(!1)};g["first2.controls.TSPageNumberText"]=Dk;Dk.__name__=["first2","controls","TSPageNumberText"];Dk.__super__= pf;Dk.prototype=t(pf.prototype,{_pageFirst:null,_pageIndex:null,_pageCount:null,_flipBook:null,_cacheText:null,configUI_PageNumber:function(){Ra.getInstance().hasKey(C.PageNumberColor)&&(this._textColor=T.PageNumberColor());null!=this.textField&&(this.textField._color=this._textColor,this.textField.updateTextFormat())},resize:function(a,b){pf.prototype.resize.call(this,a,b);null!=this.textField&&(this.textField.resize(a-2,b-2),this.centerTextWidth(),this.centerTextHeight());this.configUI_PageNumber()}, textInputDidChange:function(a){null!=this.textField&&this.textField.updateTextFormat();this.configUI_PageNumber();this.centerTextWidth()},textInputDidFocusIn:function(a){this.centerTextWidth()},textInputDidFocusOut:function(a){this.textField.get_text();this.textField.set_text(this._cacheText);this.textField.updateTextFormat();this.centerTextWidth()},textInputOnKeyUp:function(a){},textInputOnKeyDown:function(a){var b=this.textField.get_text();13==a.charCode&&null!=b&&""!=b&&" "!=b&&(a=lb.getInstance()._flipBook, b=y.parseInt(b),null!=a&&0=a.length)a=" ";null!=this.textField&&(this.textField.set_text(a),this.textField.updateTextFormat()); null!=this.textField&&(a=this.textField.getTextWidth(),this.textField.getTextHeight(),this.resize(a+4+this._leftSpace+this._rightSpace,this._height))},dispatchMouseOver:function(a){},dispatchMouseOut:function(a){},__class__:ym});var ed=function(){R.call(this);this._eventMode=!1;this._actionMap=new fa};g["first2.events.TSActionCenter"]=ed;ed.__name__=["first2","events","TSActionCenter"];ed.getInstance=function(){null==ed.Instance&&(ed.Instance=new ed,ed.Instance.setEventMode(!1));return ed.Instance}; ed.__super__=R;ed.prototype=t(R.prototype,{_actionMap:null,getMap:function(){return this._actionMap},addActionListener:function(a,b,c){return R.prototype.addEventListener.call(this,a,b,c)},removeActionListener:function(a,b,c){return R.prototype.removeEventListener.call(this,a,b,c)},removeListenerType:function(a){return R.prototype.removeListenerType.call(this,a)},removeListenerTarget:function(a){return R.prototype.removeListenerTarget.call(this,a)},dispatchAction:function(a,b,c){R.prototype.dispatchInvoke.call(this, a,c,b)},__class__:ed});var ee=function(){};g["first2.events.TSActionEvent"]=ee;ee.__name__=["first2","events","TSActionEvent"];var Ea=function(){};g["first2.events.TSActionValue"]=Ea;Ea.__name__=["first2","events","TSActionValue"];var kq=function(){};g["first2.events.TSActionConst"]=kq;kq.__name__=["first2","events","TSActionConst"];var vd=function(){this._totalPageCount=0;this._isInit=this._isCanCached=!1;this._loadList=this._thumbList=this._indexList=this._indexMap=this._cachedMap=null;this._loadList= [];this._thumbList=[];this._indexList=[];this._indexMap=new fa;this._cachedMap=new fa;this.installEventListener()};g["first2.manage.TSCachedManage"]=vd;vd.__name__=["first2","manage","TSCachedManage"];vd.getInstance=function(){null==vd.Instance&&(vd.Instance=new vd);return vd.Instance};vd.destroyCachedBitmapData=function(a){var b=null;if(null!=a){if(null!=a.parent)try{a.parent.removeChild(a)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))null;else throw c;}b=a.bitmapData; null!=b&&m.__instanceof(b,qb)&&b.dispose();a.bitmapData=null}};vd.prototype={_loadList:null,_thumbList:null,_indexList:null,_indexMap:null,_cachedMap:null,_isInit:null,_isCanCached:null,_totalPageCount:null,resetNewByHide:function(a){},resetOldByHide:function(a){},installEventListener:function(){var a;a=R.getInstance();a.addEventListener(v.PAGEIMAGE_LOADER,this,k(this,this.onBookPageImageLoader));a.addEventListener(v.PAGEIMAGE_UNLOADER,this,k(this,this.onBookPageImageUnloader));a.addEventListener(v.PAGEIMAGE_THUMBSHOW, this,k(this,this.onBookPageThumbWillShow));a.addEventListener(v.FLIPBOOK_DIDCHANGED,this,k(this,this.onFlipBookDidChanged))},uninstallEventListener:function(){var a;a=R.getInstance();a.removeEventListener(v.PAGEIMAGE_LOADER,this,k(this,this.onBookPageImageLoader));a.removeEventListener(v.PAGEIMAGE_UNLOADER,this,k(this,this.onBookPageImageUnloader));a.removeEventListener(v.PAGEIMAGE_THUMBSHOW,this,k(this,this.onBookPageThumbWillShow));a.removeEventListener(v.FLIPBOOK_DIDCHANGED,this,k(this,this.onFlipBookDidChanged))}, arrayContainsValue:function(a,b){return-1!=Xf.indexOf(a,b)},removeValueFromArray:function(a,b){if(null!=a&&0!=a.length)for(var c=a.length;-1=b)){1==b%2&&(b+=1);for(this._totalPageCount=b;null!=this._indexList&&this._indexList.length=b._pageIndex||(b._pageType==Ib.Thumb?0==this.arrayContainsValue(this._thumbList,b)&&this._thumbList.push(b):this.setCachedBookPageInfoList(b)))}}},onBookPageImageUnloader:function(a){if(null!=a&&null!=a._data){var b=a._data._trigger;if(null!=b)if(m.__instanceof(b,cb))try{m.__cast(a._data._trigger,cb)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),!m.__instanceof(c,O))throw c;}else if(m.__instanceof(b,We))try{m.__cast(a._data._trigger, We)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),!m.__instanceof(d,O))throw d;}}},onBookPageThumbWillShow:function(a){if(null!=a&&null!=a._data){var b=a._data._object;if(null!=b&&!(0>=b.length)){var c=-1;a=-1;for(var d=0;d=c?e:Math.min(c,e);a=0>=a?e:Math.max(a,e)}b=10;b=6;d=this._totalPageCount;c=0<=c-b?c-b:0;a=a+b<=d?a+b:d;for(b=0;ba)?(null!=d&&0!=d._isContentLoaded&&d.unloadContent(),null!=d&&m.__instanceof(d,cb)&&0!=d._isAdditionsLoaded&&d.unloadAdditionsBitmap(),this._thumbList.splice(b,1)):b+=1}}}},onFlipBookDidChanged:function(a){var b= this;if(null!=a&&null!=a._data){try{m.__cast(a._data._object,Fd)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),!m.__instanceof(c,O))throw c;}var d;try{d=m.__cast(a._data._trigger,nf)}catch(e){if(G.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,O))d=null;else throw e;}if(null!=d){a=d.getRealCurrentPageIndex();d=d.getTotalPageCount();var f=6,f=4,h;h=0<=a-f?a-f:0;var p;p=a+f<=d?a+f:d;Qb.delay(function(){if(!(null==b._loadList||0>=b._loadList.length)){for(var a=[],c=0,d=b._loadList.length;c< d;){var e=c++,e=b._loadList[e];b.arrayContainsValue(a,e)||(ep)&&a.push(e)}if(1<=a.length){c=0;for(d=a.length;c=e||b.deleteBookPageInfoList(e);a.splice(0,a.length)}}},1)}}},setCachedBookPageInfoList:function(a){if(null!=a){var b=a._pageIndex;if(!(0>=this._indexList.length||this._indexList.length<=b)){this._loadList.push(b);var c=this._indexList[b];null!=c&&c.push(a);a=a._contentURL;b=n.get(this._indexMap,null==b?"null":""+b);null!=b&&null!=a&&0=this._indexList.length||this._indexList.length<=a)){this.removeValueFromArray(this._loadList,a);var c=this._indexList[a];if(null!=c&&0=this._flip1TempList.length?(b=this.createBookPage(),b._canLoadShadow=!0,b._isImageShadowMode=!0,b._backSprite._isFill=!0,b._backSprite._isStroke=!1):b=this._flip1TempList.shift():null==this._flip2TempList||0>=this._flip2TempList.length?(b=this.createBookPage(),b._canLoadShadow=!0,b._isImageShadowMode=!0,b._backSprite._isFill=!0,b._backSprite._isStroke=!1):b=this._flip2TempList.shift();return b},setFlipTempBookPage:function(a){null!=a&&(null==this._flip1TempList&& (this._flip1TempList=[]),null==this._flip2TempList&&(this._flip2TempList=[]),0!=a._pageIndex%2?this._flip1TempList.push(a):this._flip2TempList.push(a))},getScaleTempBookPage:function(){var a=null;null==this._scaleTempList&&(this._scaleTempList=[]);null==this._scaleTempList||0>=this._scaleTempList.length?(a=this.createBookPage(),a._canLoadShadow=!1,a._isImageShadowMode=!0,a._backSprite._isFill=!0,a._backSprite._isStroke=!1):a=this._scaleTempList.shift();return a},setScaleTempBookPage:function(a){null!= a&&(null==this._scaleTempList&&(this._scaleTempList=[]),this._scaleTempList.push(a))},getThumbTempBookPage:function(){var a=null;null==this._thumbTempList&&(this._thumbTempList=[]);null==this._thumbTempList||0>=this._thumbTempList.length?(a=this.createThumbPage(),a._backSprite._isStroke=!1):a=this._thumbTempList.shift();return a},setThumbTempBookPage:function(a){null!=a&&(null==this._thumbTempList&&(this._thumbTempList=[]),this._thumbTempList.push(a))},__class__:Rd};var Ek=function(a){this._isMaterialLoad= !1;this._materialUrl=null;this._materialUrl=a;this._materialText=null;this._isMaterialLoad=!1};g["first2.material.TSMaterialIcons"]=Ek;Ek.__name__=["first2","material","TSMaterialIcons"];Ek.prototype={_materialUrl:null,_materialText:null,_isMaterialLoad:null,unloadMaterialXML:function(){this._isMaterialLoad=!1;var a=null,a=R.getInstance();null!=this._materialText&&(a.dispatchEvent(new ja(v.MATERIALXML_UNLOAD,new na(this,null,null))),this._isMaterialLoad=!1,this._materialText.destroy(),this._materialText= null)},reloadMaterialXML:function(a,b){var c=this;this.unloadMaterialXML();if(null==a||""==a)return!1;this._materialUrl=a;(new Ma).loadUrl(a,function(a){var e;try{e=m.__cast(a,Ma)}catch(f){G.lastException=f,f instanceof q&&(f=f.val),e=null}var h=null,h=R.getInstance();null!=e?(c._materialText=e,c._isMaterialLoad=!0,h.dispatchEvent(new ja(v.MATERIALXML_LOAD,new na(c,a,null))),null!=b&&b(null!=c._materialText?c:null)):(c._isMaterialLoad=!1,h.dispatchEvent(new ja(v.MATERIALXML_ERROR,new na(c,a,null))), null!=b&&b(null),null!=a&&a.destroy())});return!0},getIconsXmlClass:function(a,b){var c=null;if(null==a)return null;for(var d=this._materialText.getNodes(sd.KeyItem);d.hasNext();){var e=d.next(),f=null,f=null,f=Ua.getAttrString(e,sd.KeyName);if(f==a&&(f=Ua.getAttrString(e,sd.KeyType),null==b||""==b||b==f)){c=new Ma(e);break}}return c},getIconsFileUrl:function(a,b,c){null==c&&(c="black");if(null==a||null==this._materialText||0==this._isMaterialLoad)return null;a=this.getIconsXmlClass(a,b);if(null== a)return null;c=a.getNodeClass(c);null==c&&(c=a.getNodeClass(sd.KeyFile));if(null==c)return null;c=c.getNodeClass(sd.KeyImage);if(null==c)return null;c=c.getAttrString(sd.KeySource);return null==c?null:W.replace(c,"./",sd.FILE_PATH)},__class__:Ek};var Wf=function(a){Ek.call(this,a);Y.getInstance();this._materialUrl=sd.XMLFILE_PATH};g["first2.material.TSMaterialClass"]=Wf;Wf.__name__=["first2","material","TSMaterialClass"];Wf.getInstance=function(){null==Wf.Instance&&(Wf.Instance=new Wf);return Wf.Instance}; Wf.__super__=Ek;Wf.prototype=t(Ek.prototype,{asyncMaterialLoaded:function(a){var b=this,c=!1;if(null==a)return!1;var d=function(d){c=null!=b._materialText&&0!=b._isMaterialLoad;null!=a&&a(c);return c};null!=this._materialText&&0!=this._isMaterialLoad?null!=a&&d(this):this.reloadMaterialXML(this._materialUrl,d);return!0},asyncGetIconsUrl:function(a,b,c,d){null==d&&(d="black");var e=this,f=!1,h=null,p=function(p){h=(f=null!=e._materialText&&0!=e._isMaterialLoad)?e.getIconsFileUrl(b,c,d):null;null!= a&&a(h);return h};if(null!=this._materialText&&0!=this._isMaterialLoad)return p(this);this.reloadMaterialXML(this._materialUrl,p);return h},asyncGetIconsBitmap:function(a,b,c,d){null==d&&(d="black");var e=this,f=!1,h=null,p=function(b){var c;try{c=m.__cast(b._content,Ab)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,O))c=null;else throw d;}null!=c&&(b=new Ab(c.bitmapData.clone()),b.get_width(),b.get_height(),null!=a?a(b):(b.bitmapData.dispose(),b.bitmapData=null))};return h= this.asyncGetIconsUrl(function(a){h=(f=null!=e._materialText&&0!=e._isMaterialLoad)?a:null;fd.getInstance().getBitmapImage(h,p,null,!0);return h},b,c,d)},__class__:Wf});var zl=function(){};g["first2.material.TSMaterialMode"]=zl;zl.__name__=["first2","material","TSMaterialMode"];var sd=function(){};g["first2.material.TSMaterialConst"]=sd;sd.__name__=["first2","material","TSMaterialConst"];var lq=function(a){F.call(this);this._mainSprite=a};g["first2.samples.TestButtonSprite"]=lq;lq.__name__=["first2", "samples","TestButtonSprite"];lq.__super__=F;lq.prototype=t(F.prototype,{_mainSprite:null,testCode:function(){var a;a=R.getInstance();a.setEventSprite(this);a.setEventMode(!1);a.addEventListener(v.BASEBUTTON_DOWN,this,k(this,this.onBsaeButtonDown));a.addEventListener(v.BASEBUTTON_UP,this,k(this,this.onBsaeButtonUp));a.addEventListener(v.BASEBUTTON_CLICK,this,k(this,this.onBsaeButtonClick));this._mainSprite.get_graphics().clear();this._mainSprite.get_graphics().beginFill(16777215,.9);this._mainSprite.get_graphics().drawRect(0, 0,ha.current.stage.stageWidth,ha.current.stage.stageHeight);this._mainSprite.get_graphics().endFill();a=null;a=new db(100,32);a.set_x(20);a.set_y(20);this._mainSprite.addChild(a);a.resize(160,32);a.setButtonText("TestButton");a.set_iconImage("./files/images/icons/list_dark.png");a.setLabelPlacement("right");a=new db(100,32);a.set_x(20);a.set_y(60);this._mainSprite.addChild(a);a.resize(160,32);a.setButtonText("TestButton");a.set_iconImage("./files/images/icons/list_dark.png");a.setLabelPlacement("left"); a=new db(100,32);a.set_x(20);a.set_y(100);this._mainSprite.addChild(a);a.resize(160,50);a.setButtonText("TestButton");a.set_iconImage("./files/images/icons/list_dark.png");a.setLabelPlacement("bottom");a=new db(100,32);a.set_x(20);a.set_y(160);this._mainSprite.addChild(a);a.resize(160,50);a.setButtonText("TestButton");a.set_iconImage("./files/images/icons/list_dark.png");a.setLabelPlacement("top");a=new db(100,32);a.set_x(20);a.set_y(220);this._mainSprite.addChild(a);a.resize(160,32);a.setButtonText("TestButton"); a.set_iconImage("./files/images/icons/list_dark.png");a.setShowState(rd.AutoFit)},onBsaeButtonDown:function(a){null},onBsaeButtonUp:function(a){null},onBsaeButtonClick:function(a){null},__class__:lq});var mq=function(a){U.call(this);this._mainSprite=a};g["first2.samples.TestListSprite"]=mq;mq.__name__=["first2","samples","TestListSprite"];mq.__super__=U;mq.prototype=t(U.prototype,{_mainSprite:null,testCode:function(){var a;a=R.getInstance();a.setEventSprite(this);a.setEventMode(!1);this._mainSprite.get_graphics().clear(); this._mainSprite.get_graphics().beginFill(16777215,.9);this._mainSprite.get_graphics().drawRect(0,0,ha.current.stage.stageWidth,ha.current.stage.stageHeight);this._mainSprite.get_graphics().endFill();a=null;a=new fi(!0);this._mainSprite.addChild(a);for(var b=Aa.languageKeys(),c=0;c=a._selectLanguageKey.length||(a=a.getXmlLanguageByKey(a._selectLanguageKey),null==a||a.isValid()||(this._cachedLanguage=a)))},value:function(a){if(null== a||0>=a.length)return null;var b=lb.getInstance();return null!=this._cachedLanguage?this.xmlValueByKey(this._cachedLanguage,a):this.valueByProgram(b,a)},valueByProgram:function(a,b){if(null==b||0>=b.length)return null;if(null!=this._cachedLanguage&&a==lb.getInstance())return this.xmlValueByKey(this._cachedLanguage,b);if(null==a||null==a._selectLanguageKey||0>=a._selectLanguageKey.length)return this.locValueByKey(b);var c=a.getXmlLanguageByKey(a._selectLanguageKey);if(null==c||c.isValid())return this.locValueByKey(b); null==this._cachedLanguage&&a==lb.getInstance()&&(this._cachedLanguage=c);return this.xmlValueByKey(c,b)},locValueByKey:function(a){return null==a||0>=a.length?null:this.get(a)},xmlValueByKey:function(a,b){if(null==b||0>=b.length)return null;if(null==a||a.isValid())return this.get(b);var c=a.getNodeClass(P.LangItems);if(null==c||c.isValid())return this.get(b);c=c.getNodes(P.LangItem);if(null==c)return this.get(b);for(var d=b.toLowerCase();c.hasNext();){var e=c.next();if(null!=e){var e=new Ma(e),f= e.getAttrString(P.LangItemKey);if(d==f.toLowerCase()){c=e.getNodeValue(P.LangItemValue);if(null!=c)return c;break}}}return this.get(b)},isInit:null,initSourceEnglishLanguage:function(){1!=this.isInit&&(this.isInit=!0,this.set(ca.ButtonLinkLogo,""),this.set(ca.ButtonOpen,"Open"),this.set(ca.ButtonSave,"Save"),this.set(ca.ButtonExit,"Exit"),this.set(ca.ButtonEvent,"Event"),this.set(ca.ButtonRedo,"Redo"),this.set(ca.ButtonUndo,"Undo"),this.set(ca.ButtonAbout,"About"),this.set(ca.ButtonCut,"Cut"),this.set(ca.ButtonCopy, "Copy"),this.set(ca.ButtonPaste,"Paste"),this.set(ca.ButtonClear,"Clear"),this.set(ca.ButtonFirst,"First Page"),this.set(ca.ButtonNextPage,"Next Page"),this.set(ca.ButtonPreviousPage,"Previous Page"),this.set(ca.ButtonLast,"Last Page"),this.set(ca.ButtonPrint,"Print"),this.set(ca.ButtonDownload,"Download"),this.set(ca.ButtonSearch,"Search"),this.set(ca.ButtonClearSearch,"Clear Search"),this.set(ca.ButtonBookmark,"Bookmark"),this.set(ca.ButtonHelp,"Help"),this.set(ca.ButtonFullScreen,"FullScreen"), this.set(ca.ButtonExitFullScreen,"Exit FullScreen"),this.set(ca.ButtonSoundOn,"Sound On"),this.set(ca.ButtonSoundOff,"Sound Off"),this.set(ca.ButtonShare,"Share"),this.set(ca.ButtonSocialShare,"Social Share"),this.set(ca.ButtonZoomIn,"Zoom In"),this.set(ca.ButtonZoomOut,"Zoom Out"),this.set(ca.ButtonZoomUp,"Zoom Up"),this.set(ca.ButtonZoomDown,"Zoom Down"),this.set(ca.ButtonAutoFlip,"AutoFlip"),this.set(ca.ButtonStopAutoFlip,"Stop AutoFlip"),this.set(ca.ButtonGotoHome,"GotoHome"),this.set(ca.ButtonGotoPage, "GotoPage"),this.set(ca.ButtonSelectText,"Select Text"),this.set(ca.ButtonMusicOn,"Music On"),this.set(ca.ButtonMusicOff,"Music Off"),this.set(ca.ButtonMoreOptions,"More Options"),this.set(ca.ButtonMoreOptions2,"More Options"),this.set(ca.ButtonThumbnails,"Thumbnails"),this.set(ca.ButtonSwitchLanguage,"Switch Language"),this.set(ca.ButtonSinglePage,"Single Page"),this.set(ca.ButtonDoublePage,"Double Page"),this.set(ca.LabelSearchPages,"Pages:"),this.set(ca.LabelSearchItems,"Items"),this.set(ca.LabelSearchPageIndex, "Page"),this.set(ca.LabelWindowLogin,"Login"),this.set(ca.LabelLoginPassword,"Password:"),this.set(ca.LabelLoginButton,"Login"),this.set(ca.LabelCancelButton,"Cancel"))},__class__:Wd};var Fk=function(a){this._isTemplateLoad=!1;this._templateUrl=null;this.progress=0;this._templateUrl=a;this._templateText=null;this._isTemplateLoad=!1;this.onSecurityError=this.onHttpStatus=this.onIoError=this.onProgress=this.onOpen=null};g["first2.template.TSTemplateBase"]=Fk;Fk.__name__=["first2","template","TSTemplateBase"]; Fk.prototype={onOpen:null,onProgress:null,onHttpStatus:null,onSecurityError:null,onIoError:null,progress:null,_templateUrl:null,_templateText:null,_isTemplateLoad:null,doOpen:function(a){null!=this.onOpen&&this.onOpen(this)},doProgress:function(a){this.progress=a.progress;null!=this.onProgress&&this.onProgress(this)},doIoError:function(a){null!=this.onIoError&&this.onIoError(this)},doComplete:function(a){},doHttpStatus:function(a){null!=this.onHttpStatus&&this.onHttpStatus(this)},doSecurityError:function(a){null!= this.onSecurityError&&this.onSecurityError(this)},unloadTemplateXML:function(){this._isTemplateLoad=!1;var a=null,a=R.getInstance();null!=this._templateText&&(a.dispatchEvent(new ja(v.TEMPLATEXML_UNLOAD,new na(this,null,null))),this._isTemplateLoad=!1,this._templateText.destroy(),this._templateText=null)},reloadTemplateXML:function(a,b){var c=this;this.progress=0;this.unloadTemplateXML();if(null==a||""==a)return!1;this._templateUrl=a;var d=new Ma;d.onOpen=k(this,this.doOpen);d.onProgress=k(this,this.doProgress); d.onIoError=k(this,this.doIoError);d.onHttpStatus=k(this,this.doHttpStatus);d.onSecurityError=k(this,this.doSecurityError);d.loadUrl(a,function(a){var d;try{d=m.__cast(a,Ma)}catch(h){G.lastException=h,h instanceof q&&(h=h.val),d=null}var p=null,p=R.getInstance();null!=d?(c._templateText=d,c._isTemplateLoad=!0,c.resetTemplateInfoForReload(),p.dispatchEvent(new ja(v.TEMPLATEXML_LOAD,new na(c,a,null))),null!=b&&b(null!=c._templateText?c:null)):(c._isTemplateLoad=!1,p.dispatchEvent(new ja(v.TEMPLATEXML_ERROR, new na(c,a,null))),null!=b&&b(null),null!=a&&a.destroy())});return!0},resetTemplateInfoForReload:function(){if(null!=this._templateText&&0!=this._isTemplateLoad){Ra.getInstance();var a=this._templateText.getNodeClass(ba.Config);null!=a&&0==a.isValid()&&this.resetTemplateItemByXmlConfig(a);a=this._templateText.getNodeClass(ba.ExtConfig);null!=a&&0==a.isValid()&&this.resetTemplateItemByXmlExtConfig(a);a=this._templateText.getNodeClass(ba.Component);null!=a&&0==a.isValid()&&this.resetTemplateItemByXmlComponent(a); var a=null,b=this._templateText.getNodeClass(ba.Thumbnails);null!=b&&0==b.isValid()&&(a=b.getNodeClass(ba.Config));null!=a&&0==a.isValid()&&this.resetTemplateItemByXmlConfig(a);a=null;b=this._templateText.getNodeClass(ba.SearchList);null!=b&&0==b.isValid()&&(a=b.getNodeClass(ba.Config));null!=a&&0==a.isValid()&&this.resetTemplateItemByXmlConfig(a)}},getItemValueByItemXml:function(a){return ra.getItemTypeValue(a)},resetTemplateItemByXmlConfig:function(a){if(null!=a&&!a.isValid()){var b=Y.getInstance(), c=Ra.getInstance(),d=Xc.getInstance();for(a=a.getNodes(ba.KeyItem);a.hasNext();){var e=a.next();if(null!=e){var f=Ua.getAttrString(e,ba.KeyName),e=this.getItemValueByItemXml(e);c.set(f,e);f=d.getMapKey(f);null!=f&&0a.length?null:W.startsWith(a,"./files/")?""+a:b=W.startsWith(a,this._templatePath)?""+a:W.replace(a,"{0}",this._templateName)},getTemplateLocalUrlByKey:function(a){if(null==a||""==a)return null;var b=this.templateNodeClass(ba.Resource);if(null==b||b.isValid())return null;a=ra.getItemNameValue(b,a);null!=a&&(a=this.getTemplateSourceUrl(a));return a},createControlByXml:function(a){var b;try{b=m.__cast(a,Ma)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null; else throw c;}if(null==b)return null;a=b.getNodeValue(ba.KeyType);return null==a?null:null!=a&&"first2.controls.TSButton"==a?this.createTemplateTSButton(b):null!=a&&"first2.controls.TSImageSprite"==a?this.createTemplateTSImageSprite(b):null!=a&&"first2.controls.TSPageNumberText"==a?this.createTemplateTSPageNumber(b):null},updateTemplateComponentStage:function(a,b){var c=null,d=c=c=c=c=null;if(null!=b&&null!=a&&!a.isValid()){var e;e=m.__cast(b,Oa);null!=e&&(d=a.getNodeClass(ba.KeyStage),null!=d&&1!= d.isValid()&&(c=d.getNodeClass(ba.KeyIconKey),null!=c&&0==c.isValid()&&(c=c.stringValue(null),function(a){e._imageUrl=a;return!0}(this.getTemplateLocalUrlByKey(c))),c=d.getNodeClass(ba.KeyIconDown),null!=c&&0==c.isValid()&&(c=c.stringValue(null),function(a){e._imageDownUrl=a;return!0}(this.getTemplateLocalUrlByKey(c))),c=d.getNodeClass(ba.KeyIconCheck),null!=c&&0==c.isValid()&&(c=c.stringValue(null),function(a){e._imageCheckUrl=a;return!0}(this.getTemplateLocalUrlByKey(c))),c=d.getNodeClass(ba.KeyLangKey), null!=c&&0==c.isValid()&&(c=c.stringValue(null),null!=c&&(e._languageKey=c)),c=d.getNodeClass(ba.KeyLangDown),null!=c&&0==c.isValid()&&(c=c.stringValue(null),null!=c&&(e._languageDownKey=c)),d=d.getNodeClass(ba.KeyLangCheck),null!=d&&0==d.isValid()&&(d=d.stringValue(null),null!=d&&(e._languageCheckKey=d)),null==e||null==e._languageKey&&null==e._languageDownKey&&null==e._languageCheckKey||e.resetSourceLanguageSetting()))}},updateTemplateComponentAction:function(a,b){var c=null,d=null,e=null;if(null!= b&&null!=a&&!a.isValid()){var f;f=m.__cast(b,Oa);if(null!=f&&(e=a.getNodeClass(ba.KeyAction),null!=e&&e.hasAttr(ba.KeyActionType))){c=e.getAttrString(ba.KeyEventType);d=e.getAttrString(ba.KeyActionType);e=e.getNodeValue(ba.KeyValue);if("mouseClick"==c||c==ee.MOUSE_CLICK)c=ee.MOUSE_DOWN;f._eventType=c;f._actionType=d;f._actionValue=e;this.addComponentSprite(e,f)}}},createTemplateTSButton:function(a){var b,c;b="No";var d=c=b=null;b="button";c=rd.ImageText;if(null==a)return null;var e=new db(0,0);a.getNodeValue(ba.KeyType); a.getAttrString(ba.KeyAlgin);a.getNodeValue(ba.KeyEnable);c=a.getNodeClass(ba.KeySize);var f=a.getNodeClass(ba.KeyStage),h=a.getNodeClass(ba.KeyAction);null!=c&&c.hasAttr(ba.KeyWidth)&&(b=c.getAttrFloat(ba.KeyWidth,0),c=c.getAttrFloat(ba.KeyHeight,0),e.resize(b,c));null!=f&&0==f.isValid()&&(b=f.getNodeValue(ba.KeyTextKey),c=f.getNodeValue(ba.KeyTextDown),d=f.getNodeValue(ba.KeyTextCheck),e._textKey=null!=b?b:null,e._textDown=null!=c?c:null,e._textCheck=null!=d?d:null,b=f.getNodeValue(ba.KeyImage), c=f.getNodeValue(ba.KeyImageDown),d=f.getNodeValue(ba.KeyImageCheck),e._imageUrl=this.getTemplateSourceUrl(b),e._imageDownUrl=this.getTemplateSourceUrl(c),e._imageCheckUrl=this.getTemplateSourceUrl(d),b=f.getAttrString(ba.KeyCanCheck),e._canCheck=ra.parseBool(b),0!=e._canCheck&&(e._isDrawCheck=e._canCheck),b=f.getNodeValue(ba.KeyText),c=f.getAttrString(ba.KeyButtonStage),e.textField.set_text(null!=b?b:"button"),e._showState=null!=c?c:rd.ImageText,e.setShowState(e._showState));null!=e&&null!=h&&0== h.isValid()&&this.updateTemplateComponentAction(a,e);null!=e&&null!=f&&0==f.isValid()&&this.updateTemplateComponentStage(a,e);null!=e&&null!=e._imageUrl&&e.set_iconImage(e._imageUrl);return e},createTemplateTSImageSprite:function(a){var b,c;b="No";var d=c=b=null;if(null==a)return null;var e=new Xi(0,0);a.getNodeValue(ba.KeyType);a.getAttrString(ba.KeyAlgin);a.getNodeValue(ba.KeyEnable);c=a.getNodeClass(ba.KeySize);var f=a.getNodeClass(ba.KeyStage),h=a.getNodeClass(ba.KeyAction);null!=c&&c.hasAttr(ba.KeyWidth)&& (b=c.getAttrFloat(ba.KeyWidth,0),c=c.getAttrFloat(ba.KeyHeight,0),e.resize(b,c));null!=f&&0==f.isValid()&&(b=f.getNodeValue(ba.KeyImage),c=f.getNodeValue(ba.KeyImageDown),d=f.getNodeValue(ba.KeyImageCheck),e._imageUrl=this.getTemplateSourceUrl(b),e._imageDownUrl=this.getTemplateSourceUrl(c),e._imageCheckUrl=this.getTemplateSourceUrl(d),b=f.getAttrString(ba.KeyCanCheck),f.getNodeValue(ba.KeyText),f.getAttrString(ba.KeyButtonStage),c=f.getNodeValue(ba.KeyText),e._textKey=null!=c?c:"",e._canCheck=ra.parseBool(b), 0!=e._canCheck&&(e._isDrawCheck=e._canCheck));null!=e&&null!=h&&0==h.isValid()&&this.updateTemplateComponentAction(a,e);null!=e&&e._actionValue==Ea.FLIPBOOK_LOGOLINK&&(b=T.AppLogoIcon(e._imageUrl),e._imageUrl=b);null!=e&&null!=f&&0==f.isValid()&&this.updateTemplateComponentStage(a,e);null!=e&&null!=e._imageUrl&&e.setImageUrl(e._imageUrl);return e},createTemplateTSPageNumber:function(a){var b,c;b="No";c="";var d=null;b=null;if(null==a)return null;var e=new Dk(0,0);a.getNodeValue(ba.KeyType);a.getAttrString(ba.KeyAlgin); a.getNodeValue(ba.KeyEnable);c=a.getNodeClass(ba.KeySize);var f=a.getNodeClass(ba.KeyStage),h=a.getNodeClass(ba.KeyAction);null!=c&&c.hasAttr(ba.KeyWidth)&&(b=c.getAttrFloat(ba.KeyWidth,0),c=c.getAttrFloat(ba.KeyHeight,0),e.resize(b,c));null!=f&&f.hasAttr(ba.KeyTextStage)&&(b=f.getAttrString(ba.KeyCanCheck),e._canCheck=ra.parseBool(b),0!=e._canCheck&&(e._isDrawCheck=e._canCheck),c=f.getNodeValue(ba.KeyText),d=f.getNodeValue(ba.KeyTextSize),b=f.getNodeValue(ba.KeyTextColor),f.getAttrString(ba.KeyTextStage), e._textKey=null!=c?c:"",e.textField.set_text(null!=c?c:""),null!=d&&0c&&(e.textField._size=c,e.textField.updateTextFormat())),null!=b&&0Math.abs(a)?"0":1E-6>Math.abs(1-a)?"1":a+""},newMatrix:function(a){return"new Matrix("+this.f2a(a.a)+","+this.f2a(a.b)+","+this.f2a(a.c)+","+this.f2a(a.d)+","+this.f2a(a.tx)+","+this.f2a(a.ty)+")"},beginGradientFill:function(a){this.commands.push("g.beginGradientFill("+y.string(a.type)+","+y.string(a.colors)+","+y.string(a.alphas)+","+y.string(a.ratios)+","+this.newMatrix(a.matrix)+","+y.string(a.spread)+","+y.string(a.interp)+","+a.focus+");")},beginFill:function(a,b){this.commands.push("g.beginFill("+ a+","+this.f2a(b)+");")},endFill:function(){this.commands.push("g.endFill();")},lineStyle:function(a){this.commands.push("g.lineStyle("+this.f2a(a.thickness)+","+a.color+","+this.f2a(a.alpha)+","+(null==a.pixelHinting?"null":""+a.pixelHinting)+","+y.string(a.scaleMode)+","+y.string(a.capsStyle)+","+y.string(a.jointStyle)+","+this.f2a(a.miterLimit))},endLineStyle:function(){this.commands.push("g.lineStyle();")},moveTo:function(a,b){this.commands.push("g.moveTo("+a+","+b+");")},lineTo:function(a,b){this.commands.push("g.lineTo("+ a+","+b+");")},curveTo:function(a,b,c,d){this.commands.push("g.curveTo("+a+","+b+","+c+","+d+");")},__class__:zm});var Mc=g["openfl.display.CapsStyle"]={__ename__:["openfl","display","CapsStyle"],__constructs__:["NONE","ROUND","SQUARE"]};Mc.NONE=["NONE",0];Mc.NONE.toString=D;Mc.NONE.__enum__=Mc;Mc.ROUND=["ROUND",1];Mc.ROUND.toString=D;Mc.ROUND.__enum__=Mc;Mc.SQUARE=["SQUARE",2];Mc.SQUARE.toString=D;Mc.SQUARE.__enum__=Mc;var hg=g["openfl.display.InterpolationMethod"]={__ename__:["openfl","display", "InterpolationMethod"],__constructs__:["RGB","LINEAR_RGB"]};hg.RGB=["RGB",0];hg.RGB.toString=D;hg.RGB.__enum__=hg;hg.LINEAR_RGB=["LINEAR_RGB",1];hg.LINEAR_RGB.toString=D;hg.LINEAR_RGB.__enum__=hg;var Gc=g["openfl.display.JointStyle"]={__ename__:["openfl","display","JointStyle"],__constructs__:["MITER","ROUND","BEVEL"]};Gc.MITER=["MITER",0];Gc.MITER.toString=D;Gc.MITER.__enum__=Gc;Gc.ROUND=["ROUND",1];Gc.ROUND.toString=D;Gc.ROUND.__enum__=Gc;Gc.BEVEL=["BEVEL",2];Gc.BEVEL.toString=D;Gc.BEVEL.__enum__= Gc;var yb=g["openfl.display.LineScaleMode"]={__ename__:["openfl","display","LineScaleMode"],__constructs__:["HORIZONTAL","NONE","NORMAL","VERTICAL"]};yb.HORIZONTAL=["HORIZONTAL",0];yb.HORIZONTAL.toString=D;yb.HORIZONTAL.__enum__=yb;yb.NONE=["NONE",1];yb.NONE.toString=D;yb.NONE.__enum__=yb;yb.NORMAL=["NORMAL",2];yb.NORMAL.toString=D;yb.NORMAL.__enum__=yb;yb.VERTICAL=["VERTICAL",3];yb.VERTICAL.toString=D;yb.VERTICAL.__enum__=yb;var Ja=g["openfl.display.SpreadMethod"]={__ename__:["openfl","display", "SpreadMethod"],__constructs__:["REPEAT","REFLECT","PAD"]};Ja.REPEAT=["REPEAT",0];Ja.REPEAT.toString=D;Ja.REPEAT.__enum__=Ja;Ja.REFLECT=["REFLECT",1];Ja.REFLECT.toString=D;Ja.REFLECT.__enum__=Ja;Ja.PAD=["PAD",2];Ja.PAD.toString=D;Ja.PAD.__enum__=Ja;var cc=function(a,b){this.buffer=null==a?new ib:a};g["format.gfx.GfxBytes"]=cc;cc.__name__=["format","gfx","GfxBytes"];cc.baseCoder=null;cc.fromString=function(a){null==cc.baseCoder&&(cc.baseCoder=new Am(ic.ofString(cc.base64)));var b=new ib;b.writeUTF(a); return new cc(b)};cc.__super__=qf;cc.prototype=t(qf.prototype,{buffer:null,toString:function(){return""},eof:function(){this.buffer.writeByte(0)},iterate:function(a){for(this.buffer.position=0;;)switch(this.buffer.readByte()){case 0:return;case 1:var b=this.buffer.readFloat(),c=this.buffer.readFloat();a.size(b,c);break;case 10:b=this.readRGB();c=this.buffer.readFloat();a.beginFill(b,c);break;case 11:b=new Aj;b.type=Za.createEnumIndex(aa,this.buffer.readByte());for(var c=this.buffer.readByte(),d=0;d< c;)d++,b.colors.push(this.readRGB()),b.alphas.push(this.buffer.readByte()/255),b.ratios.push(this.buffer.readByte());b.matrix.a=this.buffer.readFloat();b.matrix.b=this.buffer.readFloat();b.matrix.c=this.buffer.readFloat();b.matrix.d=this.buffer.readFloat();b.matrix.tx=this.buffer.readFloat();b.matrix.ty=this.buffer.readFloat();b.spread=cc.spreadMethods[this.buffer.readByte()];b.interp=cc.interpolationMethods[this.buffer.readByte()];b.focus=this.buffer.readFloat();a.beginGradientFill(b);break;case 12:a.endFill(); break;case 20:b=new Bm;b.thickness=this.buffer.readFloat();b.color=this.readRGB();b.alpha=this.buffer.readFloat();b.pixelHinting=0a?0:255>16&255);this.buffer.writeByte(a>>8&255);this.buffer.writeByte(a& 255)},readRGB:function(){var a=this.buffer.readByte(),b=this.buffer.readByte(),c=this.buffer.readByte();return a<<16|b<<8|c},beginGradientFill:function(a){this.buffer.writeByte(11);this.buffer.writeByte(a.type[1]);this.buffer.writeByte(a.colors.length);for(var b=0,c=a.colors.length;bthis.extent.get_right()&&this.extent.set_right(a),bthis.extent.get_bottom()&&this.extent.set_bottom(b))}, geometryOnly:function(){return!0},moveTo:function(a,b){this.addExtent(a,b)},lineTo:function(a,b){this.addExtent(a,b)},curveTo:function(a,b,c,d){this.addExtent(a,b);this.addExtent(c,d)},__class__:Cm});var Hk=function(a){this.graphics=a};g["format.gfx.GfxGraphics"]=Hk;Hk.__name__=["format","gfx","GfxGraphics"];Hk.__super__=qf;Hk.prototype=t(qf.prototype,{graphics:null,beginGradientFill:function(a){this.graphics.beginGradientFill(a.type,a.colors,a.alphas,a.ratios,a.matrix,a.spread,a.interp,a.focus)}, beginFill:function(a,b){this.graphics.beginFill(a,b)},endFill:function(){this.graphics.endFill()},lineStyle:function(a){this.graphics.lineStyle(a.thickness,a.color,a.alpha,a.pixelHinting,a.scaleMode,a.capsStyle,a.jointStyle,a.miterLimit)},endLineStyle:function(){this.graphics.lineStyle()},moveTo:function(a,b){this.graphics.moveTo(a,b)},lineTo:function(a,b){this.graphics.lineTo(a,b)},curveTo:function(a,b,c,d){this.graphics.curveTo(a,b,c,d)},__class__:Hk});var Dm=function(){};g["format.gfx.GfxTextFinder"]= Dm;Dm.__name__=["format","gfx","GfxTextFinder"];Dm.__super__=qf;Dm.prototype=t(qf.prototype,{text:null,geometryOnly:function(){return!0},renderText:function(a){null==this.text&&(this.text=a)},__class__:Dm});var Aj=function(){this.type=aa.LINEAR;this.colors=[];this.alphas=[];this.ratios=[];this.matrix=new pa;this.spread=Ja.PAD;this.interp=hg.RGB;this.focus=0};g["format.gfx.Gradient"]=Aj;Aj.__name__=["format","gfx","Gradient"];Aj.prototype={type:null,colors:null,alphas:null,ratios:null,matrix:null, spread:null,interp:null,focus:null,__class__:Aj};var Bm=function(){this.thickness=1;this.color=0;this.alpha=1;this.pixelHinting=!1;this.scaleMode=yb.NORMAL;this.capsStyle=Mc.ROUND;this.jointStyle=Gc.ROUND;this.miterLimit=3};g["format.gfx.LineStyle"]=Bm;Bm.__name__=["format","gfx","LineStyle"];Bm.prototype={thickness:null,color:null,alpha:null,pixelHinting:null,scaleMode:null,capsStyle:null,jointStyle:null,miterLimit:null,__class__:Bm};var ig=g["format.svg.FillType"]={__ename__:["format","svg","FillType"], __constructs__:["FillGrad","FillSolid","FillNone"]};ig.FillGrad=function(a){a=["FillGrad",0,a];a.__enum__=ig;a.toString=D;return a};ig.FillSolid=function(a){a=["FillSolid",1,a];a.__enum__=ig;a.toString=D;return a};ig.FillNone=["FillNone",2];ig.FillNone.toString=D;ig.FillNone.__enum__=ig;var Em=function(a){Aj.call(this);this.type=a;this.radius=0;this.gradMatrix=new pa;this.y2=this.x2=this.y1=this.x1=0};g["format.svg.Grad"]=Em;Em.__name__=["format","svg","Grad"];Em.__super__=Aj;Em.prototype=t(Aj.prototype, {gradMatrix:null,radius:null,x1:null,y1:null,x2:null,y2:null,updateMatrix:function(a){var b=this.x2-this.x1,c=this.y2-this.y1,d=Math.atan2(c,b),b=Math.sqrt(b*b+c*c),c=new pa;this.type==aa.LINEAR?(c.createGradientBox(1,1),c.scale(b,b)):(0!=this.radius&&(this.focus=b/this.radius),c.createGradientBox(1,1),c.translate(-.5,-.5),c.scale(2*this.radius,2*this.radius));c.rotate(d);c.translate(this.x1,this.y1);c.concat(this.gradMatrix);c.concat(a);this.matrix=c},__class__:Em});var Bj=function(){this.name=""; this.children=[]};g["format.svg.Group"]=Bj;Bj.__name__=["format","svg","Group"];Bj.prototype={hasGroup:function(a){return null!=this.findGroup(a)},findGroup:function(a){for(var b=0,c=this.children;ba;){var b=a++;Va.sCommandArgs[b]=this.commandArgs(b)}}};g["format.svg.PathParser"]=Va;Va.__name__=["format","svg","PathParser"];Va.sCommandArgs=null;Va.prototype={lastMoveX:null,lastMoveY:null,prev:null,parse:function(a,b){var c=this.lastMoveX=this.lastMoveY=0,d=[],e=[],f=0,h=-1,p=-1;this.prev=null;for(var H=a.length,g=!1;c<=H;){var k;k=c==H?32:X.cca(a,c);var l;l=0k?Va.sCommandArgs[k]:Va.UNKNOWN;if(l== Va.UNKNOWN)throw new q("failed parsing path near '"+X.substr(a,c,null)+"'");if(l==Va.SEPARATOR)c++;else if(l<=Va.FLOAT){k=c+1;var x=-1,m=l==Va.FLOAT_DOT;l==Va.FLOAT_EXP&&(x=0,m=!0);for(;kl||127Va.FLOAT)break;if(l==Va.FLOAT_DOT&&m)break;if(0<=x){if(l==Va.FLOAT_SIGN){if(0!=x)break}else if(l!=Va.FLOAT)break;x++}else if(l==Va.FLOAT_EXP){if(0<=x)break;x=0;m=!0}else if(l==Va.FLOAT_SIGN)break;k++}0>h||(c=y.parseFloat(X.substr(a,c,k-c)),d.push(c)); c=k}else h=k,p=l,g=!1,f=c,d=[],c++;x=k=0;if(0<=h&&p==d.length){b&&null!=this.prev&&(k=this.prev.prevX(),x=this.prev.prevY());this.prev=this.createCommand(h,d);if(null==this.prev)throw new q("Unknown command "+String.fromCharCode(h)+" near '"+X.substr(a,f,null)+"'");if(b&&4==this.prev.getType())for(d=this.prev.toQuadratics(k,x),f=0;f=a)return Va.FLOAT;switch(a){case "Z":return 0;case "H":case "V":return 1;case "M":case "L":case "T":return 2;case "S":case "Q":return 4;case "C":return 6;case "A":return 7;case "\t":case "\n":case " ":case "\r":case ",":return Va.SEPARATOR;case "-":return Va.FLOAT_SIGN;case "+":return Va.FLOAT_SIGN;case "E":case "e":return Va.FLOAT_EXP;case ".":return Va.FLOAT_DOT}return Va.UNKNOWN}, prevX:function(){return null!=this.prev?this.prev.prevX():0},prevY:function(){return null!=this.prev?this.prev.prevY():0},prevCX:function(){return null!=this.prev?this.prev.prevCX():0},prevCY:function(){return null!=this.prev?this.prev.prevCY():0},createCommand:function(a,b){switch(a){case 77:return this.lastMoveX=b[0],this.lastMoveY=b[1],new Dh(this.lastMoveX,this.lastMoveY);case 109:return this.lastMoveX=b[0]+this.prevX(),this.lastMoveY=b[1]+this.prevY(),new Dh(this.lastMoveX,this.lastMoveY);case 76:return new Bd(b[0], b[1]);case 108:return new Bd(b[0]+this.prevX(),b[1]+this.prevY());case 72:return new Bd(b[0],this.prevY());case 104:return new Bd(b[0]+this.prevX(),this.prevY());case 86:return new Bd(this.prevX(),b[0]);case 118:return new Bd(this.prevX(),b[0]+this.prevY());case 67:return new pi(b[0],b[1],b[2],b[3],b[4],b[5]);case 99:var c=this.prevX(),d=this.prevY();return new pi(b[0]+c,b[1]+d,b[2]+c,b[3]+d,b[4]+c,b[5]+d);case 83:return c=this.prevX(),d=this.prevY(),new pi(2*c-this.prevCX(),2*d-this.prevCY(),b[0], b[1],b[2],b[3]);case 115:return c=this.prevX(),d=this.prevY(),new pi(2*c-this.prevCX(),2*d-this.prevCY(),b[0]+c,b[1]+d,b[2]+c,b[3]+d);case 81:return new Sc(b[0],b[1],b[2],b[3]);case 113:return c=this.prevX(),d=this.prevY(),new Sc(b[0]+c,b[1]+d,b[2]+c,b[3]+d);case 84:return c=this.prevX(),this.prevY(),new Sc(2*c-this.prevCX(),2*c-this.prevCY(),b[2],b[3]);case 116:return c=this.prevX(),d=this.prevY(),new Sc(2*c-this.prevCX(),2*d-this.prevCY(),b[0]+c,b[1]+d);case 65:return new Ik(this.prevX(),this.prevY(), b[0],b[1],b[2],0!=b[3],0!=b[4],b[5],b[6]);case 97:return c=this.prevX(),d=this.prevY(),new Ik(c,d,b[0],b[1],b[2],0!=b[3],0!=b[4],b[5]+c,b[6]+d);case 90:return new Bd(this.lastMoveX,this.lastMoveY);case 122:return new Bd(this.lastMoveX,this.lastMoveY)}return null},__class__:Va};var Yc=function(a,b){this.x=a;this.y=b};g["format.svg.PathSegment"]=Yc;Yc.__name__=["format","svg","PathSegment"];Yc.prototype={x:null,y:null,getType:function(){return 0},prevX:function(){return this.x},prevY:function(){return this.y}, prevCX:function(){return this.x},prevCY:function(){return this.y},toGfx:function(a,b){b.setLast(this.x,this.y);b.firstX=b.lastX;b.firstY=b.lastY;a.moveTo(b.lastX,b.lastY)},__class__:Yc};var Dh=function(a,b){Yc.call(this,a,b)};g["format.svg.MoveSegment"]=Dh;Dh.__name__=["format","svg","MoveSegment"];Dh.__super__=Yc;Dh.prototype=t(Yc.prototype,{getType:function(){return 1},__class__:Dh});var Bd=function(a,b){Yc.call(this,a,b)};g["format.svg.DrawSegment"]=Bd;Bd.__name__=["format","svg","DrawSegment"]; Bd.__super__=Yc;Bd.prototype=t(Yc.prototype,{toGfx:function(a,b){b.setLast(this.x,this.y);a.lineTo(b.lastX,b.lastY)},getType:function(){return 2},__class__:Bd});var Sc=function(a,b,c,d){Yc.call(this,c,d);this.cx=a;this.cy=b};g["format.svg.QuadraticSegment"]=Sc;Sc.__name__=["format","svg","QuadraticSegment"];Sc.__super__=Yc;Sc.prototype=t(Yc.prototype,{cx:null,cy:null,prevCX:function(){return this.cx},prevCY:function(){return this.cy},toGfx:function(a,b){b.setLast(this.x,this.y);a.curveTo(b.transX(this.cx, this.cy),b.transY(this.cx,this.cy),b.lastX,b.lastY)},getType:function(){return 3},__class__:Sc});var pi=function(a,b,c,d,e,f){Yc.call(this,e,f);this.cx1=a;this.cy1=b;this.cx2=c;this.cy2=d};g["format.svg.CubicSegment"]=pi;pi.__name__=["format","svg","CubicSegment"];pi.__super__=Yc;pi.prototype=t(Yc.prototype,{cx1:null,cy1:null,cx2:null,cy2:null,prevCX:function(){return this.cx2},prevCY:function(){return this.cy2},Interp:function(a,b,c){return a+(b-a)*c},toGfx:function(a,b){var c=b.lastX,d=b.lastY, e=b.transX(this.cx1,this.cy1),f=b.transY(this.cx1,this.cy1),h=b.transX(this.cx2,this.cy2),p=b.transY(this.cx2,this.cy2);b.setLast(this.x,this.y);var g=b.lastX,k=b.lastY,l=this.Interp(c,e,.75),m=this.Interp(d,f,.75),x=this.Interp(g,h,.75),n=this.Interp(k,p,.75),ma=(g-c)/16,q=(k-d)/16,c=this.Interp(c,e,.375),d=this.Interp(d,f,.375),f=this.Interp(l,x,.375)-ma,e=this.Interp(m,n,.375)-q,ma=this.Interp(x,l,.375)+ma,q=this.Interp(n,m,.375)+q,h=this.Interp(g,h,.375),p=this.Interp(k,p,.375),l=.5*(l+x),m=.5* (m+n),n=.5*(ma+h),x=.5*(q+p);a.curveTo(c,d,.5*(c+f),.5*(d+e));a.curveTo(f,e,l,m);a.curveTo(ma,q,n,x);a.curveTo(h,p,g,k)},toQuadratics:function(a,b){var c=[],d=this.Interp(a,this.cx1,.75),e=this.Interp(b,this.cy1,.75),f=this.Interp(this.x,this.cx2,.75),h=this.Interp(this.y,this.cy2,.75),p=(this.x-a)/16,g=(this.y-b)/16,k=this.Interp(a,this.cx1,.375),l=this.Interp(b,this.cy1,.375),m=this.Interp(d,f,.375)-p,x=this.Interp(e,h,.375)-g,p=this.Interp(f,d,.375)+p,g=this.Interp(h,e,.375)+g,n=this.Interp(this.x, this.cx2,.375),ma=this.Interp(this.y,this.cy2,.375),d=.5*(d+f),e=.5*(e+h),h=.5*(p+n),f=.5*(g+ma);c.push(new Sc(k,l,.5*(k+m),.5*(l+x)));c.push(new Sc(m,x,d,e));c.push(new Sc(p,g,h,f));c.push(new Sc(n,ma,this.x,this.y));return c},getType:function(){return 4},__class__:pi});var Ik=function(a,b,c,d,e,f,h,p,g){this.x1=a;this.y1=b;Yc.call(this,p,g);this.rx=c;this.ry=d;this.phi=e;this.fA=f;this.fS=h};g["format.svg.ArcSegment"]=Ik;Ik.__name__=["format","svg","ArcSegment"];Ik.__super__=Yc;Ik.prototype=t(Yc.prototype, {x1:null,y1:null,rx:null,ry:null,phi:null,fA:null,fS:null,toGfx:function(a,b){if(this.x1!=this.x||this.y1!=this.y){b.setLast(this.x,this.y);if(0!=this.rx&&0!=this.ry){0>this.rx&&(this.rx=-this.rx);0>this.ry&&(this.ry=-this.ry);var c=this.phi*Math.PI/180,d=Math.cos(c),e=Math.sin(c),f=.5*(this.x1-this.x),h=.5*(this.y1-this.y),c=d*f+e*h,f=-e*f+d*h,h=this.rx*this.rx,p=this.ry*this.ry,g=c*c,k=f*f,p=(h*p-h*k-p*g)/(h*k+p*g),p=0>p?0:this.fA==this.fS?-Math.sqrt(p):Math.sqrt(p),h=p*this.rx*f/this.ry,p=-p*this.ry* c/this.rx,k=d*h-e*p+.5*(this.x1+this.x),l=e*h+d*p+.5*(this.y1+this.y),d=Math.atan2((f-p)/this.ry,(c-h)/this.rx),c=Math.atan2((-f-p)/this.ry,(-c-h)/this.rx)-d;this.fS&&0>c?c+=2*Math.PI:!this.fS&&0this.rect.x&&(a=a>this.rect.get_right()?a+(this.rectW-this.rect.width):this.rect.x+ this.rectW*(a-this.rect.x)/this.rect.width);return a*this.matrix.a+b*this.matrix.c+this.matrix.tx},transY:function(a,b){null!=this.rect&&b>this.rect.y&&(b=b>this.rect.get_right()?b+(this.rectH-this.rect.height):this.rect.y+this.rectH*(b-this.rect.y)/this.rect.height);return a*this.matrix.b+b*this.matrix.d+this.matrix.ty},setLast:function(a,b){this.lastX=this.transX(a,b);this.lastY=this.transY(a,b)},matrix:null,rect:null,rectW:null,rectH:null,firstX:null,firstY:null,lastX:null,lastY:null,__class__:oq}; var Bb=function(a,b){null==b&&(b=!1);Bj.call(this);var c=a.firstElement(),d;if(!(d=null==c)){if(c.nodeType!=Z.Element)throw new q("Bad node type, expected Element but found "+c.nodeType);if(d="svg"!=c.nodeName){if(c.nodeType!=Z.Element)throw new q("Bad node type, expected Element but found "+c.nodeType);d="svg:svg"!=c.nodeName}}if(d){d=q;if(null==c)c="null";else{if(c.nodeType!=Z.Element)throw"Bad node type, expected Element but found "+c.nodeType;c=c.nodeName}throw new d("Not an SVG file ("+c+")"); }this.mGrads=new fa;this.mPathParser=new Va;this.mConvertCubics=b;this.width=this.getFloatStyle("width",c,null,0);this.height=this.getFloatStyle("height",c,null,0);0==this.width&&0==this.height?this.width=this.height=400:0==this.width?this.width=this.height:0==this.height&&(this.height=this.width);this.loadGroup(this,c,new pa,null)};g["format.svg.SVGData"]=Bb;Bb.__name__=["format","svg","SVGData"];Bb.__super__=Bj;Bb.prototype=t(Bj.prototype,{height:null,width:null,mConvertCubics:null,mGrads:null, mPathParser:null,applyTransform:function(a,b){var c=1;Bb.mTranslateMatch.match(b)?a.translate(y.parseFloat(Bb.mTranslateMatch.matched(1)),y.parseFloat(Bb.mTranslateMatch.matched(2))):Bb.mScaleMatch.match(b)?(c=y.parseFloat(Bb.mScaleMatch.matched(1)),a.scale(c,c)):Bb.mMatrixMatch.match(b)?(c=new pa(y.parseFloat(Bb.mMatrixMatch.matched(1)),y.parseFloat(Bb.mMatrixMatch.matched(2)),y.parseFloat(Bb.mMatrixMatch.matched(3)),y.parseFloat(Bb.mMatrixMatch.matched(4)),y.parseFloat(Bb.mMatrixMatch.matched(5)), y.parseFloat(Bb.mMatrixMatch.matched(6))),c.concat(a),a.a=c.a,a.b=c.b,a.c=c.c,a.d=c.d,a.tx=c.tx,a.ty=c.ty,c=Math.sqrt(a.a*a.a+a.c*a.c)):null;return c},dumpGroup:function(a,b){b+=" ";for(var c=0,d=a.children;cb;)for(var c=b++,d=a.elements();d.hasNext();){var e=d.next(),f;if(e.nodeType!=Z.Element)throw new q("Bad node type, expected Element but found "+e.nodeType);f=e.nodeName;"svg:"==X.substr(f,0,4)&&(f=X.substr(f,4,null));"linearGradient"==f?this.loadGradient(e,aa.LINEAR,1==c):"radialGradient"==f&&this.loadGradient(e, aa.RADIAL,1==c)}},loadGradient:function(a,b,c){var d=a.get("id");b=new Em(b);if(c&&a.exists("xlink:href")){c=a.get("xlink:href");if("#"!=c.charAt(0))throw new q("xlink - unkown syntax : "+c);var e=this.mGrads.get(X.substr(c,1,null));if(null!=e)b.colors=e.colors,b.alphas=e.alphas,b.ratios=e.ratios,b.gradMatrix=e.gradMatrix.clone(),b.spread=e.spread,b.interp=e.interp,b.radius=e.radius;else throw new q("Unknown xlink : "+c);}a.exists("x1")?(b.x1=this.getFloat(a,"x1"),b.y1=this.getFloat(a,"y1"),b.x2= this.getFloat(a,"x2"),b.y2=this.getFloat(a,"y2")):(b.x1=this.getFloat(a,"cx"),b.y1=this.getFloat(a,"cy"),b.x2=this.getFloat(a,"fx",b.x1),b.y2=this.getFloat(a,"fy",b.y1));b.radius=this.getFloat(a,"r");a.exists("gradientTransform")&&this.applyTransform(b.gradMatrix,a.get("gradientTransform"));for(a=a.elements();a.hasNext();)c=a.next(),e=this.getStyles(c,null),b.colors.push(this.getColorStyle("stop-color",c,e,0)),b.alphas.push(this.getFloatStyle("stop-opacity",c,e,1)),b.ratios.push(y["int"](255*y.parseFloat(c.get("offset")))); this.mGrads.set(d,b)},loadGroup:function(a,b,c,d){b.exists("transform")&&(c=new pa(c.a,c.b,c.c,c.d,c.tx,c.ty),this.applyTransform(c,b.get("transform")));b.exists("inkscape:label")?a.name=b.get("inkscape:label"):b.exists("id")&&(a.name=b.get("id"));d=this.getStyles(b,d);for(b=b.elements();b.hasNext();){var e=b.next(),f;if(e.nodeType!=Z.Element)throw new q("Bad node type, expected Element but found "+e.nodeType);f=e.nodeName;"svg:"==X.substr(f,0,4)&&(f=X.substr(f,4,null));"defs"==f?this.loadDefs(e): "g"==f?e.exists("display")&&"none"==e.get("display")||a.children.push(Lf.DisplayGroup(this.loadGroup(new Bj,e,c,d))):"path"==f||"line"==f||"polyline"==f?a.children.push(Lf.DisplayPath(this.loadPath(e,c,d,!1,!1))):"rect"==f?a.children.push(Lf.DisplayPath(this.loadPath(e,c,d,!0,!1))):"polygon"==f?a.children.push(Lf.DisplayPath(this.loadPath(e,c,d,!1,!1))):"ellipse"==f?a.children.push(Lf.DisplayPath(this.loadPath(e,c,d,!1,!0))):"circle"==f?a.children.push(Lf.DisplayPath(this.loadPath(e,c,d,!1,!0,!0))): "text"==f?a.children.push(Lf.DisplayText(this.loadText(e,c,d))):"linearGradient"==f?this.loadGradient(e,aa.LINEAR,!0):"radialGradient"==f&&this.loadGradient(e,aa.RADIAL,!0)}return a},loadPath:function(a,b,c,d,e,f){null==f&&(f=!1);a.exists("transform")&&(b=new pa(b.a,b.b,b.c,b.d,b.tx,b.ty),this.applyTransform(b,a.get("transform")));var h=this.getStyles(a,c),p;p=a.exists("id")?a.get("id"):"";c=new nq;c.fill=this.getFillStyle("fill",a,h);c.alpha=this.getFloatStyle("opacity",a,h,1);c.fill_alpha=this.getFloatStyle("fill-opacity", a,h,1);c.stroke_alpha=this.getFloatStyle("stroke-opacity",a,h,1);c.stroke_colour=this.getStrokeStyle("stroke",a,h,null);c.stroke_width=this.getFloatStyle("stroke-width",a,h,1);c.stroke_caps=Mc.ROUND;c.joint_style=Gc.ROUND;c.miter_limit=this.getFloatStyle("stroke-miterlimit",a,h,3);c.segments=[];c.matrix=b;c.name=p;if(d)f=a.exists("x")?y.parseFloat(a.get("x")):0,b=a.exists("y")?y.parseFloat(a.get("y")):0,d=y.parseFloat(a.get("width")),e=y.parseFloat(a.get("height")),h=a.exists("rx")?y.parseFloat(a.get("rx")): 0,a=a.exists("ry")?y.parseFloat(a.get("ry")):0,0==h||0==a?(c.segments.push(new Dh(f,b)),c.segments.push(new Bd(f+d,b)),c.segments.push(new Bd(f+d,b+e)),c.segments.push(new Bd(f,b+e)),c.segments.push(new Bd(f,b))):(c.segments.push(new Dh(f,b+a)),c.segments.push(new Sc(f,b,f+h,b)),c.segments.push(new Bd(f+d-h,b)),c.segments.push(new Sc(f+d,b,f+d,b+h)),c.segments.push(new Bd(f+d,b+e-a)),c.segments.push(new Sc(f+d,b+e,f+d-h,b+e)),c.segments.push(new Bd(f+h,b+e)),c.segments.push(new Sc(f,b+e,f,b+e-a)), c.segments.push(new Bd(f,b+a)));else if(e){b=a.exists("cx")?y.parseFloat(a.get("cx")):0;d=a.exists("cy")?y.parseFloat(a.get("cy")):0;var g;g=f&&a.exists("r")?y.parseFloat(a.get("r")):0;e=f?g:a.exists("rx")?y.parseFloat(a.get("rx")):0;h=e*Bb.SIN45;p=e*Bb.TAN22;a=f?g:a.exists("ry")?y.parseFloat(a.get("ry")):0;f=a*Bb.SIN45;g=a*Bb.TAN22;c.segments.push(new Dh(b+e,d));c.segments.push(new Sc(b+e,d+g,b+h,d+f));c.segments.push(new Sc(b+p,d+a,b,d+a));c.segments.push(new Sc(b-p,d+a,b-h,d+f));c.segments.push(new Sc(b- e,d+g,b-e,d));c.segments.push(new Sc(b-e,d-g,b-h,d-f));c.segments.push(new Sc(b-p,d-a,b,d-a));c.segments.push(new Sc(b+p,d-a,b+h,d-f));c.segments.push(new Sc(b+e,d-g,b+e,d))}else for(f=a.exists("points")?"M"+a.get("points")+"z":a.exists("x1")?"M"+a.get("x1")+","+a.get("y1")+" "+a.get("x2")+","+a.get("y2")+"z":a.get("d"),a=0,f=this.mPathParser.parse(f,this.mConvertCubics);athis.length)throw new q("OutOfRange");var a=this.bytesData.bytes[this.position/8|0],b=this.position%8;this.position++;return 0!=(a&1<this.length)throw new q("OutOfRange");for(var b=0,c=0;c>e<< c;this.position+=f;c+=f}return b},generateMask:function(a,b){return 255>>8-b<>d&1))}},getBytes:function(){for(var a= new Jk,b=y["int"](this.get_length()/8),c=0;cf;){var h=f++;this.bitArray[8*d+h]&&(e+=1<d;)e=d++,this.bitArray[8*b+e]&&(c+=1<>e&1))}};Cd.getBytes=function(a){for(var b=new Jk,c=a.length/8|0,d=0;dh;){var p=h++;a[8*e+p]&&(f+=1<e;)f=e++,a[8*c+f]&&(d+=1<b||0>c||b+c>a.length)throw new q(hd.OutsideBounds);for(;0b||0>c|| b+c>a.length)throw new q(hd.OutsideBounds);this.b=a.b;this.pos=b;this.totlen=this.len=c};g["haxe.io.BytesInput"]=sh;sh.__name__=["haxe","io","BytesInput"];sh.__super__=Fm;sh.prototype=t(Fm.prototype,{b:null,pos:null,len:null,totlen:null,readByte:function(){if(0==this.len)throw new q(new Gm);this.len--;return this.b[this.pos++]},readBytes:function(a,b,c){if(0>b||0>c||b+c>a.length)throw new q(hd.OutsideBounds);if(0==this.len&&0>16&255};Zc.set_red=function(a,b){return(b&255)<<16|a&-16711681};Zc.get_green=function(a){return a>>8&255};Zc.set_green=function(a,b){return(b&255)<<8|a&-65281};Zc.get_blue=function(a){return a&255};Zc.set_blue=function(a,b){return b&255|a&-256};Zc.fromComponents=function(a,b,c){return(Zc.limitateComponent(a)<< 16|Zc.limitateComponent(b)<<8|Zc.limitateComponent(c))&16777215};Zc.add=function(a,b){return Zc.fromComponents((a>>16&255)+(b>>16&255),(a>>8&255)+(b>>8&255),(a&255)+(b&255))};Zc.sub=function(a,b){return Zc.fromComponents((a>>16&255)-(b>>16&255),(a>>8&255)-(b>>8&255),(a&255)-(b&255))};Zc.fromRgba=function(a){return a&16777215};Zc.toRgba=function(a){return-16777216|a&16777215};Zc.toInt=function(a){return a&16777215};Zc.toString=function(a){return W.hex(a&16777215)};Zc.limitateComponent=function(a){return 255< a?255:0>a?0:a};var id={};g["gif.color._Rgba.Rgba_Impl_"]=id;id.__name__=["gif","color","_Rgba","Rgba_Impl_"];id.__properties__={set_blue:"set_blue",get_blue:"get_blue",set_green:"set_green",get_green:"get_green",set_red:"set_red",get_red:"get_red",set_alpha:"set_alpha",get_alpha:"get_alpha"};id._new=function(a){return a};id.get_alpha=function(a){return a>>24&255};id.set_alpha=function(a,b){return(b&255)<<24|a&16777215};id.get_red=function(a){return a>>16&255};id.set_red=function(a,b){return(b&255)<< 16|a&-16711681};id.get_green=function(a){return a>>8&255};id.set_green=function(a,b){return(b&255)<<8|a&-65281};id.get_blue=function(a){return a&255};id.set_blue=function(a,b){return b&255|a&-256};id.fromComponents=function(a,b,c,d){null==d&&(d=255);return id.limitateComponent(d)<<24|id.limitateComponent(a)<<16|id.limitateComponent(b)<<8|id.limitateComponent(c)};id.add=function(a,b){return id.fromComponents((a>>16&255)+(b>>16&255),(a>>8&255)+(b>>8&255),(a&255)+(b&255),(a>>24&255)+(b>>24&255))};id.sub= function(a,b){return id.fromComponents((a>>16&255)-(b>>16&255),(a>>8&255)-(b>>8&255),(a&255)-(b&255),(a>>24&255)-(b>>24&255))};id.toString=function(a){return W.hex(a)};id.limitateComponent=function(a){return 255a?0:a};var je=g["gif.images.Error"]={__ename__:["gif","images","Error"],__constructs__:["InvalidFormat","UnsupportedFormat"]};je.InvalidFormat=["InvalidFormat",0];je.InvalidFormat.toString=D;je.InvalidFormat.__enum__=je;je.UnsupportedFormat=["UnsupportedFormat",1];je.UnsupportedFormat.toString= D;je.UnsupportedFormat.__enum__=je;var rc=function(){};g["gif.images.GifDecoder"]=rc;rc.__name__=["gif","images","GifDecoder"];rc.decode=function(a){a=new Hm(a,qi.LittleEndian);var b=new qq;rc.readHeader(a,b);b.globalColorTableFlag&&rc.readGlobalColorTable(a,b);var c=new Im(b);try{for(;;)switch(a.readByte()){case 33:switch(a.readByte()){case 249:rc.readGraphicControlExtension(a,c);break;case 255:rc.readApplicationExtension(a,c);break;case 254:rc.readComment(a,c)}break;case 44:rc.readImageDescriptor(a, c);c.localColorTableFlag&&rc.readLocalColorTable(a,c);rc.readImageData(a,c);b.frameList.push(c);c=new Im(b);break;case 59:throw"__break__";default:throw new q(je.InvalidFormat);}}catch(d){if("__break__"!=d)throw d;}return b};rc.readHeader=function(a,b){rc.validateSignature(a.read(3));rc.readVersion(a.read(3),b);b.logicalScreenWidth=a.readInt16();b.logicalScreenHeight=a.readInt16();var c=a.readByte();b.globalColorTableFlag=128==(c&128);b.colorResolution=(c&112)>>4;b.sortFlag=8==(c&8);b.sizeOfGlobalTable= c&7;b.backgroundColorIndex=a.readByte();b.pixelAspectRaito=a.readByte()};rc.validateSignature=function(a){if("GIF"!=a.toString())throw new q(je.InvalidFormat);};rc.readVersion=function(a,b){switch(a.toString()){case "87a":throw b.version=Eh.Gif87a,new q(je.UnsupportedFormat);case "89a":b.version=Eh.Gif89a;break;default:throw new q(je.InvalidFormat);}};rc.readGlobalColorTable=function(a,b){for(var c=1<>2;b.userInputFlag=2==(c&2);b.transparentColorFlag=1==(c&1);b.delayTime=a.readInt16();b.transparentColorIndex=a.readByte();if(0!=a.readByte())throw new q(je.InvalidFormat);};rc.readComment=function(a,b){var c;do c=a.readByte()&255,0=x)break;ka=0}ma+=(w.b[ka]&255)<>=h;l-=h;if(m>d||m==p)break;if(m==e){h=q+1;f=(1<e;)t=r++,z[t]=v[m],m=u[m];t=v[m]&255;if(4096<=d)break;m=r++;z[m]=t;u[d]=k;v[d]=t;d++;0==(d&f)&&4096>d&&(h++,f+=d);k=g}r--;b.imageData[y++]=z[r];n++}for(d=y;da?this.buf.b+ "m":this.buf.b+"p";break;case 3:this.buf.b=a?this.buf.b+"t":this.buf.b+"f";break;case 6:b=b[2];if(b==String){this.serializeString(a);break}if(this.useCache&&this.serializeRef(a))break;switch(b){case Array:b=0;this.buf.b+="a";for(var c=a.length,d=0;d>2));b.add(c.charAt((f<<4|h>>4)&63));b.add(c.charAt((h<<2|p>>6)&63));b.add(c.charAt(p&63))}d==e?(e=a.get(d++),a=a.get(d++),b.add(c.charAt(e>>2)),b.add(c.charAt((e<<4|a>>4)& 63)),b.add(c.charAt(a<<2&63))):d==e+1&&(a=a.get(d++),b.add(c.charAt(a>>2)),b.add(c.charAt(a<<4&63)));a=b.b;this.buf.b+="s";this.buf.b=null==a.length?this.buf.b+"null":this.buf.b+(""+a.length);this.buf.b+=":";this.buf.b=null==a?this.buf.b+"null":this.buf.b+(""+a);break;default:this.useCache&&this.cache.pop(),null!=a.hxSerialize?(this.buf.b+="C",this.serializeString(Za.getClassName(b)),this.useCache&&this.cache.push(a),a.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(Za.getClassName(b)), this.useCache&&this.cache.push(a),this.serializeFields(a))}break;case 4:if(m.__instanceof(a,As))a=Za.getClassName(a),this.buf.b+="A",this.serializeString(a);else if(m.__instanceof(a,Ks))this.buf.b+="B",this.serializeString(Za.getEnumName(a));else{if(this.useCache&&this.serializeRef(a))break;this.buf.b+="o";this.serializeFields(a)}break;case 7:b=b[2];if(this.useCache){if(this.serializeRef(a))break;this.cache.pop()}this.buf.b=this.useEnumIndex?this.buf.b+"j":this.buf.b+"w";this.serializeString(Za.getEnumName(b)); this.useEnumIndex?(this.buf.b+=":",this.buf.b+=y.string(a[1])):this.serializeString(a[0]);this.buf.b+=":";b=a.length;this.buf.b+=y.string(b-2);for(c=2;cd||57b||101==b||69==b)this.pos++;else break}return y.parseFloat(X.substr(this.buf,a,this.pos-a))},unserializeObject:function(a){for(;;){if(this.pos>=this.length)throw new q("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var b=this.unserialize();if("string"!=typeof b)throw new q("Invalid object key"); var c=this.unserialize();a[b]=c}this.pos++},unserializeEnum:function(a,b){if(58!=this.get(this.pos++))throw new q("Invalid enum format");var c=this.readDigits();if(0==c)return Za.createEnum(a,b);for(var d=[];0a||a>=this.cache.length)throw new q("Invalid reference");return this.cache[a];case 82:a=this.readDigits();if(0>a||a>=this.scache.length)throw new q("Invalid string reference");return this.scache[a];case 120:throw new q(this.unserialize());case 99:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw new q("Class not found "+a);a=Za.createEmptyInstance(b);this.cache.push(a);this.unserializeObject(a);return a;case 119:a=this.unserialize(); b=this.resolver.resolveEnum(a);if(null==b)throw new q("Enum not found "+a);a=this.unserializeEnum(b,this.unserialize());this.cache.push(a);return a;case 106:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw new q("Enum not found "+a);this.pos++;var c=this.readDigits(),d=Za.getEnumConstructs(b)[c];if(null==d)throw new q("Unknown enum index "+a+"@"+c);a=this.unserializeEnum(b,d);this.cache.push(a);return a;case 108:a=new Jg;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)a.add(this.unserialize()); this.pos++;return a;case 98:a=new fa;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),a.set(b,this.unserialize());this.pos++;return a;case 113:a=new Ed;this.cache.push(a);for(b=this.get(this.pos++);58==b;)b=this.readDigits(),a.set(b,this.unserialize()),b=this.get(this.pos++);if(104!=b)throw new q("Invalid IntMap format");return a;case 77:a=new jg;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),a.set(b,this.unserialize());this.pos++;return a; case 118:return 48<=this.buf.charCodeAt(this.pos)&&57>=this.buf.charCodeAt(this.pos)&&48<=this.buf.charCodeAt(this.pos+1)&&57>=this.buf.charCodeAt(this.pos+1)&&48<=this.buf.charCodeAt(this.pos+2)&&57>=this.buf.charCodeAt(this.pos+2)&&48<=this.buf.charCodeAt(this.pos+3)&&57>=this.buf.charCodeAt(this.pos+3)&&45==this.buf.charCodeAt(this.pos+4)?(a=X.substr(this.buf,this.pos,19),a=X.strDate(a),this.pos+=19):(a=this.readFloat(),b=new Date,b.setTime(a),a=b),this.cache.push(a),a;case 115:a=this.readDigits(); d=this.buf;if(58!=this.get(this.pos++)||this.length-this.pos>2)+(2<=h?h-1:0)),c=0;f>4);g=e[W.fastCodeAt(d,f++)];b.set(c++,k<<4|g>>2);k=e[W.fastCodeAt(d,f++)];b.set(c++,g<<6|k)}2<=h&&(k=e[W.fastCodeAt(d,f++)],p=e[W.fastCodeAt(d,f++)],b.set(c++,k<<2|p>>4),3==h&&(d=e[W.fastCodeAt(d,f++)], b.set(c++,p<<4|d>>2)));this.pos+=a;this.cache.push(b);return b;case 67:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw new q("Class not found "+a);a=Za.createEmptyInstance(b);this.cache.push(a);a.hxUnserialize(this);if(103!=this.get(this.pos++))throw new q("Invalid custom data");return a;case 65:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw new q("Class not found "+a);return b;case 66:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw new q("Enum not found "+ a);return b}this.pos--;throw new q("Invalid char "+this.buf.charAt(this.pos)+" at position "+this.pos);},__class__:Ie};var Cj=function(){this.a1=1;this.a2=0};g["haxe.crypto.Adler32"]=Cj;Cj.__name__=["haxe","crypto","Adler32"];Cj.read=function(a){var b=new Cj,c=a.readByte(),d=a.readByte(),e=a.readByte();a=a.readByte();b.a1=e<<8|a;b.a2=c<<8|d;return b};Cj.prototype={a1:null,a2:null,update:function(a,b,c){var d=this.a1,e=this.a2,f=b;for(b+=c;f=d&&(d=d-55232<<10|W.fastCodeAt(a,c++)&1023);127>=d?b.push(d):(2047>=d?b.push(192|d>>6):(65535>=d?b.push(224|d>>12): (b.push(240|d>>18),b.push(128|d>>12&63)),b.push(128|d>>6&63)),b.push(128|d&63))}return new ic((new nc(b)).buffer)};ic.ofData=function(a){var b=a.hxBytes;return null!=b?b:new ic(a)};ic.prototype={length:null,b:null,get:function(a){return this.b[a]},set:function(a,b){this.b[a]=b&255},blit:function(a,b,c,d){if(0>a||0>c||0>d||a+d>this.length||c+d>b.length)throw new q(hd.OutsideBounds);0==c&&d==b.length?this.b.set(b.b,a):this.b.set(b.b.subarray(c,c+d),a)},getString:function(a,b){if(0>a||0>b||a+b>this.length)throw new q(hd.OutsideBounds); for(var c="",d=this.b,e=String.fromCharCode,f=a,h=a+b;fp){if(0==p)break;c+=e(p)}else if(224>p)c+=e((p&63)<<6|d[f++]&127);else if(240>p)var g=d[f++],c=c+e((p&31)<<12|(g&127)<<6|d[f++]&127);else var g=d[f++],k=d[f++],p=(p&15)<<18|(g&127)<<12|(k&127)<<6|d[f++]&127,c=c+e((p>>10)+55232),c=c+e(p&1023|56320)}return c},toString:function(){return this.getString(0,this.length)},__class__:ic};var Am=function(a){for(var b=a.length,c=1;b>1<>h&p])}0b||0>c||b+c>a.length)throw new q(hd.OutsideBounds);a=a.b;var d=b;for(b+=c;d>>23&255,c=a&8388607;return 0==c&&0==b?0:(1-(a>>>31<<1))*(1+Math.pow(2,-23)*c)*Math.pow(2,b-127)};kg.floatToI32=function(a){if(0==a)return 0;var b;b=0>a?-a:a;var c=Math.floor(Math.log(b)/.6931471805599453);-127>c?c=-127:128a?-2147483648:0)|c+127<<23|b};kg.i64ToDouble=function(a,b){var c=(b>>20&2047)-1023,d=4294967296*(b&1048575)+2147483648*(a>>>31)+(a&2147483647);return 0==d&&-1023==c?0:(1-(b>>>31<<1))*(1+Math.pow(2,-52)*d)* Math.pow(2,c)};kg.doubleToI64=function(a){var b=kg.i64tmp;if(0==a)b.low=0,b.high=0;else{var c;c=0>a?-a:a;var d=Math.floor(Math.log(c)/.6931471805599453);c=4503599627370496*(c/Math.pow(2,d)-1);c=Math.round(c);b.low=c|0;b.high=(0>a?-2147483648:0)|d+1023<<20|c/4294967296|0}return b};var Dj=function(a){switch(a){case ".":case "..":this.dir=a;this.file="";return}var b=a.lastIndexOf("/"),c=a.lastIndexOf("\\");b=m||65<=m&&90>=m||48<=m&& 57>=m||58==m||46==m||95==m||45==m)){if(c==g)throw new q("Expected node name");e=Z.createElement(X.substr(a,g,c-g));d.addChild(e);k++;f=0;h=4;continue}break;case 4:switch(m){case 47:f=11;break;case 62:f=9;break;default:f=5;g=c;continue}break;case 5:if(!(97<=m&&122>=m||65<=m&&90>=m||48<=m&&57>=m||58==m||46==m||95==m||45==m)){if(g==c)throw new q("Expected attribute name");p=X.substr(a,g,c-g);if(e.exists(p))throw new q("Duplicate attribute");f=0;h=6;continue}break;case 6:switch(m){case 61:f=0;h=7;break; default:throw new q("Expected =");}break;case 7:switch(m){case 34:case 39:x=new Qe;f=8;g=c+1;ma=m;break;default:throw new q('Expected "');}break;case 8:switch(m){case 38:x.addSub(a,g,c-g);f=18;n=8;g=c+1;break;case 62:if(b)throw new q("Invalid unescaped "+String.fromCharCode(m)+" in attribute value");m==ma&&(x.addSub(a,g,c-g),h=x.b,x=new Qe,e.set(p,h),f=0,h=4);break;case 60:if(b)throw new q("Invalid unescaped "+String.fromCharCode(m)+" in attribute value");m==ma&&(x.addSub(a,g,c-g),h=x.b,x=new Qe, e.set(p,h),f=0,h=4);break;default:m==ma&&(x.addSub(a,g,c-g),h=x.b,x=new Qe,e.set(p,h),f=0,h=4)}break;case 9:g=c=oh.doParse(a,b,c,e);f=1;break;case 11:switch(m){case 62:f=1;break;default:throw new q("Expected >");}break;case 12:switch(m){case 62:return 0==k&&d.addChild(Z.createPCData("")),c;default:throw new q("Expected >");}case 10:if(!(97<=m&&122>=m||65<=m&&90>=m||48<=m&&57>=m||58==m||46==m||95==m||45==m)){if(g==c)throw new q("Expected node name");h=X.substr(a,g,c-g);if(d.nodeType!=Z.Element)throw new q("Bad node type, expected Element but found "+ d.nodeType);if(h!=d.nodeName){c=q;if(d.nodeType!=Z.Element)throw"Bad node type, expected Element but found "+d.nodeType;throw new c("Expected ");}f=0;h=12;continue}break;case 15:45==m&&45==a.charCodeAt(c+1)&&62==a.charCodeAt(c+2)&&(m=Z.createComment(X.substr(a,g,c-g)),d.addChild(m),k++,c+=2,f=1);break;case 16:91==m?l++:93==m?l--:62==m&&0==l&&(m=Z.createDocType(X.substr(a,g,c-g)),d.addChild(m),k++,f=1);break;case 14:63==m&&62==a.charCodeAt(c+1)&&(c++,m=X.substr(a,g+1,c-g-2),m=Z.createProcessingInstruction(m), d.addChild(m),k++,f=1);break;case 18:if(59==m){g=X.substr(a,g,c-g);if(35==g.charCodeAt(0))g=120==g.charCodeAt(1)?y.parseInt("0"+X.substr(g,1,g.length-1)):y.parseInt(X.substr(g,1,g.length-1)),x.b+=String.fromCharCode(g);else if(oh.escapes.exists(g))x.add(oh.escapes.get(g));else{if(b)throw new q("Undefined entity: "+g);x.b+=y.string("&"+g+";")}g=c+1;f=n}else if(!(97<=m&&122>=m||65<=m&&90>=m||48<=m&&57>=m||58==m||46==m||95==m||45==m)&&35!=m){if(b)throw new q("Invalid character in entity: "+String.fromCharCode(m)); x.b+="&";x.addSub(a,g,c-g);c--;g=c+1;f=n}}m=W.fastCodeAt(a,++c)}1==f&&(g=c,f=13);if(13==f){if(c!=g||0==k)x.addSub(a,g,c-g),a=Z.createPCData(x.b),d.addChild(a);return c}if(!b&&18==f&&13==n)return x.b+="&",x.addSub(a,g,c-g),a=Z.createPCData(x.b),d.addChild(a),c;throw new q("Unexpected end");};var Yh=function(a){this.output=new Qe;this.pretty=a};g["haxe.xml.Printer"]=Yh;Yh.__name__=["haxe","xml","Printer"];Yh.print=function(a,b){null==b&&(b=!1);var c=new Yh(b);c.writeNode(a,"");return c.output.b};Yh.prototype= {output:null,pretty:null,writeNode:function(a,b){switch(a.nodeType){case 2:this.output.b+=y.string(b+"";this.pretty&&(this.output.b+="");if(a.nodeType!=Z.Document&&a.nodeType!=Z.Element)throw new q("Bad node type, expected Element or Document but found "+a.nodeType);for(c=X.iter(a.children);c.hasNext();)d=c.next(),this.writeNode(d,this.pretty?b+"\t":b);this.output.b+=y.string(b+""}else this.output.b+="/>";this.pretty&&(this.output.b+="");break;case 1:if(a.nodeType==Z.Document||a.nodeType==Z.Element)throw new q("Bad node type, unexpected "+a.nodeType);c=a.nodeValue;0!=c.length&&(this.write(b+W.htmlEscape(c)),this.pretty&&(this.output.b+=""));break;case 5:this.write("");break;case 4:this.write("")}},write:function(a){this.output.b=null==a?this.output.b+"null":this.output.b+(""+a)},hasChildren:function(a){if(a.nodeType!=Z.Document&&a.nodeType!=Z.Element)throw new q("Bad node type, expected Element or Document but found "+ a.nodeType);for(a=X.iter(a.children);a.hasNext();){var b=a.next();switch(b.nodeType){case 0:case 1:return!0;case 2:case 3:if(0!=W.ltrim(function(a){if(b.nodeType==Z.Document||b.nodeType==Z.Element)throw new q("Bad node type, unexpected "+b.nodeType);return b.nodeValue}(this)).length)return!0}}return!1},__class__:Yh};var lg=g["haxe.zip.ExtraField"]={__ename__:["haxe","zip","ExtraField"],__constructs__:["FUnknown","FInfoZipUnicodePath","FUtf8"]};lg.FUnknown=function(a,b){var c=["FUnknown",0,a,b];c.__enum__= lg;c.toString=D;return c};lg.FInfoZipUnicodePath=function(a,b){var c=["FInfoZipUnicodePath",1,a,b];c.__enum__=lg;c.toString=D;return c};lg.FUtf8=["FUtf8",2];lg.FUtf8.toString=D;lg.FUtf8.__enum__=lg;var mg=g["haxe.zip.Huffman"]={__ename__:["haxe","zip","Huffman"],__constructs__:["Found","NeedBit","NeedBits"]};mg.Found=function(a){a=["Found",0,a];a.__enum__=mg;a.toString=D;return a};mg.NeedBit=function(a,b){var c=["NeedBit",1,a,b];c.__enum__=mg;c.toString=D;return c};mg.NeedBits=function(a,b){var c= ["NeedBits",2,a,b];c.__enum__=mg;c.toString=D;return c};var Bq=function(){};g["haxe.zip.HuffTools"]=Bq;Bq.__name__=["haxe","zip","HuffTools"];Bq.prototype={treeDepth:function(a){switch(a[1]){case 0:return 0;case 2:throw new q("assert");case 1:var b=a[3];a=this.treeDepth(a[2]);b=this.treeDepth(b);return 1+(ab)throw new q("Invalid huffman");var e=c<<5|d;if(a.h.hasOwnProperty(e))return mg.Found(a.h[e]);c<<=1;d+=1;return mg.NeedBit(this.treeMake(a,b,c,d),this.treeMake(a, b,c|1,d))},make:function(a,b,c,d){var e=[],f=[];if(32=d)throw new q("Invalid huffman");e[p]++}for(var h=0,p=1,g=d-1;pa;)a++,this.lengths.push(-1);this.window=new Cq(c)};g["haxe.zip.InflateImpl"]=qd;qd.__name__=["haxe","zip","InflateImpl"];qd.prototype={nbits:null,bits:null,state:null,"final":null,huffman:null,huffdist:null,htools:null,len:null,dist:null,needed:null,output:null,outpos:null,input:null,lengths:null,window:null,buildFixedHuffman:function(){if(null!=qd.FIXED_HUFFMAN)return qd.FIXED_HUFFMAN; for(var a=[],b=0;288>b;){var c=b++;a.push(143>=c?8:255>=c?9:279>=c?7:8)}qd.FIXED_HUFFMAN=this.htools.make(a,0,288,10);return qd.FIXED_HUFFMAN},readBytes:function(a,b,c){this.needed=c;this.outpos=b;this.output=a;if(0>=a;return b},getBit:function(){0==this.nbits&&(this.nbits=8,this.bits=this.input.readByte()); var a=1==(this.bits&1);this.nbits--;this.bits>>=1;return a},getRevBits:function(a){return 0==a?0:this.getBit()?1<b)throw new q("Invalid data");for(;cb)throw new q("Invalid data");break;case 18:c+=11+this.getBits(7);if(c>b)throw new q("Invalid data");break;default:throw new q("Invalid data");}}},inflateLoop:function(){switch(this.state[1]){case 0:var a=this.input.readByte();if(8!=(a&15))throw new q("Invalid data");var b=this.input.readByte(),c=0!=(b&32);if(0!=((a<<8)+b)%31)throw new q("Invalid data");if(c)throw new q("Unsupported dictionary"); this.state=eb.Block;return!0;case 4:a=this.window.checksum();if(null==a)return this.state=eb.Done,!0;b=Cj.read(this.input);if(!a.equals(b))throw new q("Invalid CRC");this.state=eb.Done;return!0;case 7:return!1;case 1:switch(this["final"]=this.getBit(),this.getBits(2)){case 0:this.len=this.input.readUInt16();if(this.input.readUInt16()!=65535-this.len)throw new q("Invalid data");this.state=eb.Flat;a=this.inflateLoop();this.resetBits();return a;case 1:return this.huffman=this.buildFixedHuffman(),this.huffdist= null,this.state=eb.CData,!0;case 2:for(var a=this.getBits(5)+257,b=this.getBits(5)+1,c=this.getBits(4)+4,d=0;dc;)d=c++,this.lengths[qd.CODE_LENGTHS_POS[d]]=0;this.huffman=this.htools.make(this.lengths,0,19,8);c=[];d=0;for(e=a+b;db)return this.addByte(b),0this.window.available())throw new q("Invalid data"); this.state=1==this.dist?eb.DistOne:eb.Dist}return!0}},__class__:qd};var Pp=function(a){this.i=a};g["haxe.zip.Reader"]=Pp;Pp.__name__=["haxe","zip","Reader"];Pp.prototype={i:null,readZipDate:function(){var a=this.i.readUInt16(),b=a>>11&31,c=a>>5&63,a=a&31,d=this.i.readUInt16();return new Date((d>>9)+1980,(d>>5&15)-1,d&31,b,c,a<<1)},readExtraFields:function(a){for(var b=new Jg;0a)throw new q("Invalid extra fields data");var c=this.i.readUInt16(),d=this.i.readUInt16();if(af)break}c.data=d.getBytes()}else c.data=this.i.read(c.dataSize);c.crc32=this.i.readInt32();134695760==c.crc32&&(c.crc32=this.i.readInt32());c.dataSize=this.i.readInt32();c.fileSize=this.i.readInt32();c.dataSize=c.fileSize;c.compressed=!1}else c.data=this.i.read(c.dataSize);a.add(c)}return a},__class__:Pp};var Ej=function(a){this.j=this.i=0;this.S=new ib;null!=a&&this.init(a)};g["hu.vpmedia.crypt.ARC4"]= Ej;Ej.__name__=["hu","vpmedia","crypt","ARC4"];Ej.prototype={i:null,j:null,S:null,getPoolSize:function(){return 256},init:function(a){var b,c;for(b=this.S.position=0;256>b;){var d=b++;this.S.writeByte(d)}for(d=b=0;256>d;){var e=d++;this.S.position=e;c=this.S.readUnsignedByte();a.position=e%a.length;var f=a.readUnsignedByte();b=b+c+f&255;this.S.position=e;c=this.S.readUnsignedByte();this.S.position=b;f=this.S.readUnsignedByte();this.S.position=e;this.S.writeByte(f);this.S.position=b;this.S.writeByte(c)}this.j= this.i=0},next:function(){var a;this.i=this.i+1&255;this.S.position=this.i;var b=this.S.readUnsignedByte();this.j=this.j+b&255;this.S.position=this.i;a=this.S.readUnsignedByte();this.S.position=this.j;b=this.S.readUnsignedByte();this.S.position=this.i;this.S.writeByte(b);this.S.position=this.j;this.S.writeByte(a);this.S.position=this.i;b=this.S.readUnsignedByte();this.S.position=a+b&255;return this.S.readUnsignedByte()},getBlockSize:function(){return 1},encrypt:function(a){for(var b=0,c=a.length| 0;b=this._slideInOrigY&&(a=!0);this._currentObject.y+=this._slideInIncrements;break;case "left":this._currentObject.x>=this._slideInOrigX&&(a=!0);this._currentObject.x+=this._slideInIncrements;break;case "bottom":this._currentObject.y<=this._slideInOrigY&&(a=!0);this._currentObject.y-=this._slideInIncrements;break;case "right":this._currentObject.x<=this._slideInOrigX&&(a=!0),this._currentObject.x-=this._slideInIncrements}a&&(this._currentObject.x= this._slideInOrigX,this._currentObject.y=this._slideInOrigY,this._slideInTimer.stop())},slideOutTimer:function(a){if(0>this._currentObject.x+this._currentObject.width||0>this._currentObject.y+this._currentObject.height)this._currentObject.visible=!1,this._currentObject.x=this._slideOutOrigX,this._currentObject.y=this._slideOutOrigY,this._slideOutTimer.stop();else if(this._currentObject.x>this._stage.stageWidth||this._currentObject.y>this._stage.stageHeight)this._currentObject.visible=!1,this._currentObject.x= this._slideOutOrigX,this._currentObject.y=this._slideOutOrigY,this._slideOutTimer.stop();else switch(this._slideOutPosition){case "top":this._currentObject.y-=this._slideOutIncrements;break;case "left":this._currentObject.x-=this._slideOutIncrements;break;case "bottom":this._currentObject.y+=this._slideOutIncrements;break;case "right":this._currentObject.x+=this._slideOutIncrements}},fadeOutTimer:function(a){0this._currentObject.alpha?this._currentObject.alpha+=.1:this._fadeInTimer.stop()},slideIn:function(a,b,c){null==c&&(c=1E3);a.visible&&(a.visible=!1);this._slideInOrigX=a.x;this._slideInOrigY=a.y;this._slideInPosition=b;var d=0;switch(b){case "top":a.y=0-a.height;d=a.height+this._slideInOrigY;break;case "left":a.x=0-a.width;d=a.width+this._slideInOrigX;break;case "bottom":a.y=this._stage.stageHeight;d=this._stage.stageHeight-this._slideInOrigY; break;case "right":a.x=this._stage.stageWidth,d=this._stage.stageWidth-this._slideInOrigX}this._slideInIncrements=d/(c/100);this._currentObject=a;this._currentObject.visible=!0;this._currentObject.alpha=1;this._slideInTimer=new Ud(c/100);this._slideInTimer.addEventListener(Ac.TIMER,k(this,this.slideInTimer));this._slideInTimer.start()},slideOut:function(a,b,c){null==c&&(c=1E3);a.visible||(a.visible=!0);this._slideOutOrigX=a.x;this._slideOutOrigY=a.y;this._slideOutPosition=b;var d=0;switch(b){case "top":d= a.height+this._slideOutOrigY;break;case "left":d=a.width+this._slideOutOrigX;break;case "bottom":d=this._stage.stageHeight-this._slideOutOrigY;break;case "right":d=this._stage.stageWidth-this._slideOutOrigX}this._slideOutIncrements=d/(c/100);this._currentObject=a;this._currentObject.visible=!0;this._currentObject.alpha=1;this._slideOutTimer=new Ud(c/100);this._slideOutTimer.addEventListener(Ac.TIMER,k(this,this.slideOutTimer));this._slideOutTimer.start()},fadeOut:function(a,b){null==b&&(b=500);a.visible|| (a.visible=!0);a.alpha=1;this._currentObject=a;this._fadeOutTimer=new Ud(b/10);this._fadeOutTimer.addEventListener(Ac.TIMER,k(this,this.fadeOutTimer));this._fadeOutTimer.start()},fadeIn:function(a,b){null==b&&(b=500);a.visible&&(a.visible=!1);a.alpha=0;this._currentObject=a;this._currentObject.visible=!0;this._fadeInTimer=new Ud(b/10);this._fadeInTimer.addEventListener(Ac.TIMER,k(this,this.fadeInTimer));this._fadeInTimer.start()},__class__:Fj};var Kk=function(a){F.call(this);this._movieClip=a;this._background= new F;this.addChild(this._background);this._loaderTrack=new F;this.addChild(this._loaderTrack);this._loaderThumb=new F;this.addChild(this._loaderThumb);this._brightColor=5000268;this._controlColor=16777215;this._visible=this._forward=!0;this.addEventListener(J.ENTER_FRAME,k(this,this.onEnterFrame));this._movieClip.addEventListener(J.RESIZE,k(this,this.onResize));this.drawLoader()};g["jaris.display.Loader"]=Kk;Kk.__name__=["jaris","display","Loader"];Kk.__super__=F;Kk.prototype=t(F.prototype,{_stage:null, _movieClip:null,_background:null,_loaderTrack:null,_loaderThumb:null,_visible:null,_brightColor:null,_controlColor:null,_forward:null,onEnterFrame:function(a){this._visible&&(this._forward?this._loaderThumb.get_x()+this._loaderThumb.get_width()>=this._loaderTrack.get_x()+this._loaderTrack.get_width()?this._forward=!1:(a=this._loaderThumb,a.set_x(a.get_x()+10)):this._loaderThumb.get_x()<=this._loaderTrack.get_x()?this._forward=!0:(a=this._loaderThumb,a.set_x(a.get_x()-10)))},onResize:function(a){this.drawLoader()}, drawLoader:function(){this._background.get_graphics().clear();this._loaderTrack.get_graphics().clear();this._loaderThumb.get_graphics().clear();var a=.65*this._movieClip.get_width();this._background.set_x(this._movieClip.get_width()/2-a/2);this._background.set_y(this._movieClip.get_height()/2-15);this._background.get_graphics().lineStyle();this._background.get_graphics().beginFill(this._brightColor,.5);this._background.get_graphics().drawRoundRect(0,0,a,30,6,6);this._background.get_graphics().endFill(); a=.5*this._movieClip.get_width();this._loaderTrack.set_x(this._movieClip.get_width()/2-a/2);this._loaderTrack.set_y(this._movieClip.get_height()/2-7.5);this._loaderTrack.get_graphics().lineStyle(2,this._controlColor);this._loaderTrack.get_graphics().drawRect(0,0,a,15);this._loaderThumb.set_x(this._loaderTrack.get_x());this._loaderThumb.set_y(this._loaderTrack.get_y());this._loaderThumb.get_graphics().lineStyle();this._loaderThumb.get_graphics().beginFill(this._controlColor,1);this._loaderThumb.get_graphics().drawRect(0, 0,15,15)},hide:function(){this.set_visible(!1);this._visible=!1},show:function(){this.set_visible(!0);this._visible=!0},setColors:function(a){this._brightColor=0c&& (e=c,d=e*a)):(d=c*a,d>b&&(d=b,e=d/a));this.set_height(e);this.set_width(d);this.set_x(this._movieClip.get_realWidth()/2-this.get_width()/2)},isLoading:function(){return this._loading},setPlayer:function(a){this._player=a;this._player.addEventListener(qa.MEDIA_INITIALIZED,k(this,this.onPlayerMediaInitialized));this._player.addEventListener(qa.PLAYBACK_FINISHED,k(this,this.onPlayBackFinished));this._player.addEventListener(qa.PLAY_PAUSE,k(this,this.onPlayerPlay))},__class__:Km});var qa=function(a,b, c){null==c&&(c=!1);null==b&&(b=!1);J.call(this,a,b,c);this.mute=this.fullscreen=!1;this.volume=1;this.time=this.height=this.width=this.duration=0;this.name=a;this.errinfo=""};g["jaris.events.PlayerEvents"]=qa;qa.__name__=["jaris","events","PlayerEvents"];qa.__super__=J;qa.prototype=t(J.prototype,{name:null,aspectRatio:null,duration:null,fullscreen:null,mute:null,volume:null,width:null,height:null,stream:null,sound:null,time:null,id3Info:null,errinfo:null,__class__:qa});var jd=function(){};g["jaris.player.AspectRatio"]= jd;jd.__name__=["jaris","player","AspectRatio"];jd.getAspectRatio=function(a,b){return a/b};var Nb=function(){};g["jaris.player.InputType"]=Nb;Nb.__name__=["jaris","player","InputType"];var Dq=function(a){this._player=a;this._player.addEventListener(qa.PLAYBACK_FINISHED,k(this,this.onPlayerStop))};g["jaris.player.Loop"]=Dq;Dq.__name__=["jaris","player","Loop"];Dq.prototype={_player:null,onPlayerStop:function(a){this._player.togglePlay()},__class__:Dq};var Gj=function(a,b){null==b&&(b=240);null==a&& (a=320);Da.call(this);this.__width=a;this.__height=b;this.smoothing=!1;this.deblocking=0};g["openfl.media.Video"]=Gj;Gj.__name__=["openfl","media","Video"];Gj.__super__=Da;Gj.prototype=t(Da.prototype,{deblocking:null,smoothing:null,__active:null,__dirty:null,__height:null,__stream:null,__width:null,attachNetStream:function(a){this.__stream=a;this.__stream.__video.play()},clear:function(){},__getBounds:function(a,b){var c=va.__temp;c.setTo(0,0,this.__width,this.__height);c.__transform(c,b);a.__expand(c.x, c.y,c.width,c.height)},__hitTest:function(a,b,c,d,e){if(!this.get_visible()||this.__isMask||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;a=this.globalToLocal(new Q(a,b));return 0=this.__worldAlpha)){var b=a.context; if(null!=this.__stream.__video){null!=this.__mask&&a.maskManager.pushMask(this.__mask);b.globalAlpha=this.__worldAlpha;var c=this.__worldTransform;a.roundPixels?b.setTransform(c.a,c.b,c.c,c.d,c.tx|0,c.ty|0):b.setTransform(c.a,c.b,c.c,c.d,c.tx,c.ty);this.smoothing||(b.mozImageSmoothingEnabled=!1,b.msImageSmoothingEnabled=!1,b.imageSmoothingEnabled=!1);null==this.get_scrollRect()?b.drawImage(this.__stream.__video,0,0):b.drawImage(this.__stream.__video,this.get_scrollRect().x,this.get_scrollRect().y, this.get_scrollRect().width,this.get_scrollRect().height,this.get_scrollRect().x,this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height);this.smoothing||(b.mozImageSmoothingEnabled=!0,b.msImageSmoothingEnabled=!0,b.imageSmoothingEnabled=!0);null!=this.__mask&&a.maskManager.popMask()}}},__renderDOM:function(a){null!=this.stage&&this.__worldVisible&&this.__renderable?(this.__active||(Yd.initializeElement(this,this.__stream.__video,a),this.__dirty=this.__active=!0),this.__dirty&& (this.__stream.__video.width=this.__width|0,this.__stream.__video.height=this.__height|0,this.__dirty=!1),Yd.applyStyle(this,a,!0,!0,!0)):this.__active&&(a.element.removeChild(this.__stream.__video),this.__active=!1)},get_height:function(){return this.__height*this.get_scaleY()},set_height:function(a){if(1!=this.get_scaleY()||a!=this.__height)this.__transformDirty||(this.__transformDirty=!0,Da.__worldTransformDirty++),this.__dirty=!0;this.set_scaleY(1);return this.__height=a},get_width:function(){return this.__width* this.get_scaleX()},set_width:function(a){if(1!=this.get_scaleX()||this.__width!=a)this.__transformDirty||(this.__transformDirty=!0,Da.__worldTransformDirty++),this.__dirty=!0;this.set_scaleX(1);return this.__width=a},__class__:Gj});var Nm=function(a,b){null==b&&(b=240);null==a&&(a=320);Gj.call(this,a,b)};g["jaris.player.MyVideoEx"]=Nm;Nm.__name__=["jaris","player","MyVideoEx"];Nm.__super__=Gj;Nm.prototype=t(Gj.prototype,{__renderCanvas:function(a){if(this.__renderable&&!(0>=this.__worldAlpha)){var b= a.context;if(null!=this.__stream.__video){null!=this.__mask&&a.maskManager.pushMask(this.__mask);b.globalAlpha=this.__worldAlpha;var c=this.__worldTransform;a.roundPixels?b.setTransform(c.a,c.b,c.c,c.d,c.tx|0,c.ty|0):b.setTransform(c.a,c.b,c.c,c.d,c.tx,c.ty);this.smoothing||(b.mozImageSmoothingEnabled=!1,b.webkitImageSmoothingEnabled=!1,b.imageSmoothingEnabled=!1);null==this.get_scrollRect()?b.drawImage(this.__stream.__video,0,0,this.__width,this.__height):b.drawImage(this.__stream.__video,this.get_scrollRect().x, this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height,this.get_scrollRect().x,this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height);this.smoothing||(b.mozImageSmoothingEnabled=!0,b.webkitImageSmoothingEnabled=!0,b.imageSmoothingEnabled=!0);null!=this.__mask&&a.maskManager.popMask()}}},__class__:Nm});var ri=function(a){Qa.call(this);this.__connection=a;this.__video=window.document.createElement("video");this.__video.addEventListener("error",k(this, this.video_onError),!1);this.__video.addEventListener("waiting",k(this,this.video_onWaiting),!1);this.__video.addEventListener("ended",k(this,this.video_onEnd),!1);this.__video.addEventListener("pause",k(this,this.video_onPause),!1);this.__video.addEventListener("seeking",k(this,this.video_onSeeking),!1);this.__video.addEventListener("playing",k(this,this.video_onPlaying),!1);this.__video.addEventListener("timeupdate",k(this,this.video_onTimeUpdate),!1);this.__video.addEventListener("loadstart",k(this, this.video_onLoadStart),!1);this.__video.addEventListener("stalled",k(this,this.video_onStalled),!1);this.__video.addEventListener("durationchanged",k(this,this.video_onDurationChanged),!1);this.__video.addEventListener("canplay",k(this,this.video_onCanPlay),!1);this.__video.addEventListener("canplaythrough",k(this,this.video_onCanPlayThrough),!1)};g["openfl.net.NetStream"]=ri;ri.__name__=["openfl","net","NetStream"];ri.__super__=Qa;ri.prototype=t(Qa.prototype,{audioCodec:null,bufferLength:null,bufferTime:null, bytesLoaded:null,bytesTotal:null,checkPolicyFile:null,client:null,currentFPS:null,decodedFrames:null,liveDelay:null,objectEncoding:null,soundTransform:null,time:null,videoCodec:null,__connection:null,__timer:null,__video:null,pause:function(){this.__video.pause()},play:function(a,b,c,d,e,f){this.__video.src=a;this.__video.play()},requestVideoStatus:function(){var a=this;null==this.__timer&&(this.__timer=new Qb(1));this.__timer.run=function(){a.__video.paused?a.__playStatus("NetStream.Play.pause"): a.__playStatus("NetStream.Play.playing");a.__timer.stop()}},resume:function(){this.__video.play()},seek:function(a){a=this.__video.currentTime+a;0>a?a=0:a>this.__video.duration&&(a=this.__video.duration);this.__video.currentTime=a},togglePause:function(){this.__video.paused?this.__video.play():this.__video.pause()},__playStatus:function(a){if(null!=this.client)try{var b=this.client.onPlayStatus;b({code:a,duration:this.__video.duration,position:this.__video.currentTime,speed:this.__video.playbackRate, start:this.__video.startTime})}catch(c){G.lastException=c,c instanceof q&&(c=c.val)}},video_onCanPlay:function(a){this.__playStatus("NetStream.Play.canplay")},video_onCanPlayThrough:function(a){this.__playStatus("NetStream.Play.canplaythrough")},video_onDurationChanged:function(a){this.__playStatus("NetStream.Play.durationchanged")},video_onEnd:function(a){this.__connection.dispatchEvent(new dc(dc.NET_STATUS,!1,!1,{code:"NetStream.Play.Stop"}));this.__playStatus("NetStream.Play.Complete")},video_onError:function(a){this.__connection.dispatchEvent(new dc(dc.NET_STATUS, !1,!1,{code:"NetStream.Play.Stop"}));this.__playStatus("NetStream.Play.error")},video_onLoadStart:function(a){this.__playStatus("NetStream.Play.loadstart")},video_onPause:function(a){this.__playStatus("NetStream.Play.pause")},video_onPlaying:function(a){this.__connection.dispatchEvent(new dc(dc.NET_STATUS,!1,!1,{code:"NetStream.Play.Start"}));this.__playStatus("NetStream.Play.playing")},video_onSeeking:function(a){this.__playStatus("NetStream.Play.seeking")},video_onStalled:function(a){this.__playStatus("NetStream.Play.stalled")}, video_onTimeUpdate:function(a){this.__playStatus("NetStream.Play.timeupdate")},video_onWaiting:function(a){this.__playStatus("NetStream.Play.waiting")},get_speed:function(){return this.__video.playbackRate},set_speed:function(a){return this.__video.playbackRate=a},__class__:ri,__properties__:{set_speed:"set_speed",get_speed:"get_speed"}});var Hj=function(a){ri.call(this,a);this.displayStatus=!1;window.document.body.appendChild(this.__video);this.__video.addEventListener("seeked",k(this,this.video_onSeeked), !1);this.__video.addEventListener("progress",k(this,this.video_onProgress),!1);this.__video.addEventListener("volumechange",k(this,this.video_onVolumechange),!1)};g["jaris.player.MyNetStream"]=Hj;Hj.__name__=["jaris","player","MyNetStream"];Hj.__super__=ri;Hj.prototype=t(ri.prototype,{displayStatus:null,get_volume:function(){this.soundTransform.volume=this.__video.volume;return this.soundTransform.volume},set_volume:function(a){this.__video.volume=a;this.soundTransform.volume=this.__video.volume; return this.soundTransform.volume},seek:function(a){0>a?a=0:a>this.__video.duration&&(a=this.__video.duration);this.__video.currentTime=a},set_displayState:function(a){if(a){var b=this.__video;b.requestFullscreen?b.requestFullscreen():b.msRequestFullscreen?b.msRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.webkitRequestFullscreen&&b.webkitRequestFullscreen();b.webkitEnterFullscreen()}else document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen(): document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();return this.displayStatus=a},video_onCanPlayThrough:function(a){this.__connection.dispatchEvent(new dc(dc.NET_STATUS,!1,!1,{code:"NetStream.Play.canplaythrough"}));this.__playStatus("NetStream.Play.canplaythrough")},video_onError:function(a){this.__connection.dispatchEvent(new dc(dc.NET_STATUS,!1,!1,{code:"NetStream.Play.Error"}));this.__playStatus("NetStream.Play.error")},video_onPause:function(a){this.__connection.dispatchEvent(new dc(dc.NET_STATUS, !1,!1,{code:"NetStream.Play.pause"}));this.__playStatus("NetStream.Play.pause")},video_onPlaying:function(a){this.__connection.dispatchEvent(new dc(dc.NET_STATUS,!1,!1,{code:"NetStream.Play.Start",duration:this.__video.duration,position:this.__video.currentTime,speed:this.__video.playbackRate,width:this.__video.videoWidth,height:this.__video.videoHeight,start:this.__video.startTime}));this.__playStatus("NetStream.Play.playing")},video_onSeeking:function(a){this.__connection.dispatchEvent(new dc(dc.NET_STATUS, !1,!1,{code:"NetStream.SeekStart.Notify"}));this.__playStatus("NetStream.SeekStart.Notify")},video_onSeeked:function(a){this.__connection.dispatchEvent(new dc(dc.NET_STATUS,!1,!1,{code:"NetStream.Seek.Notify"}));this.__playStatus("NetStream.Seek.Notify")},video_onProgress:function(a){this.__connection.dispatchEvent(new dc(dc.NET_STATUS,!1,!1,{code:"NetStream.Buffer.Empty"}));try{this.bytesLoaded=y["int"](this.__video.buffered.end(0)),this.bytesTotal=this.__video.duration|0}catch(b){G.lastException= b,b instanceof q&&(b=b.val),null}this.__playStatus("NetStream.Buffer.Empty")},video_onTimeUpdate:function(a){this.time=this.__video.currentTime;null!=this.soundTransform&&null!=this.soundTransform.volume&&this.__video.volume!=this.soundTransform.volume&&(this.__video.volume=this.soundTransform.volume);this.__playStatus("NetStream.Play.timeupdate")},video_onVolumechange:function(a){null!=this.soundTransform&&null!=this.soundTransform.volume&&(this.soundTransform.volume=this.__video.volume);this.__connection.dispatchEvent(new dc(dc.NET_STATUS, !1,!1,{code:"NetStream.Play.volumechange"}));this.__playStatus("NetStream.Play.volumechange")},__class__:Hj,__properties__:t(ri.prototype.__properties__,{set_volume:"set_volume",get_volume:"get_volume"})});var Jm=function(a){Qa.call(this);this._stage=ha.current.stage;this._movieClip=a;this._mouseVisible=!0;this._soundMuted=!1;this._volume=1;this._bufferTime=10;this._mediaLoaded=this._fullscreen=!1;this._hideMouseTimer=new Ud(1500);this._checkAudioTimer=new Ud(100);this._seekPoints=[];this._downloadCompleted= !1;this._startTime=0;this._firstLoad=!0;this._isPlaying=this._videoQualityHigh=this._stopped=!1;this._streamType=sb.FILE;this._type=Nb.VIDEO;this._server="";this._currentAspectRatio="original";this._lastProgress=this._lastTime=this._aspectRatio=0;this._userSettings=new Eq;this._sound=new xe;this._sound.addEventListener(J.COMPLETE,k(this,this.onSoundComplete));this._sound.addEventListener(J.ID3,k(this,this.onSoundID3));this._sound.addEventListener(Hc.IO_ERROR,k(this,this.onSoundIOError));this._sound.addEventListener(Fe.PROGRESS, k(this,this.onSoundProgress));this._connection=new Lk;this._connection.connect(null);this._stream=new Hj(this._connection);this._video=new Nm(y["int"](this._movieClip.get_realWidth()),y["int"](this._movieClip.get_realHeight()));this._movieClip.addChild(this._video);this._video.attachNetStream(this._stream);this._videoMask=new F;this._movieClip.addChild(this._videoMask);this.toggleQuality();this._movieClip.addEventListener(J.ENTER_FRAME,k(this,this.onEnterFrame));this._movieClip.addEventListener(vc.KEY_DOWN, k(this,this.onKeyDown));this._movieClip.addEventListener(A.MOUSE_MOVE,k(this,this.onMouseMove));this._movieClip.addEventListener(J.RESIZE,k(this,this.onResize));this._hideMouseTimer.addEventListener(Ac.TIMER,k(this,this.hideMouseTimer));this._checkAudioTimer.addEventListener(Ac.TIMER,k(this,this.checkAudioTimer));this._connection.addEventListener(dc.NET_STATUS,k(this,this.onNetStatus));this._connection.addEventListener(Ij.ASYNC_ERROR,k(this,this.errorHandler));this._connection.addEventListener(Hc.IO_ERROR, k(this,this.errorHandler))};g["jaris.player.Player"]=Jm;Jm.__name__=["jaris","player","Player"];Jm.__super__=Qa;Jm.prototype=t(Qa.prototype,{_stage:null,_movieClip:null,_connection:null,_stream:null,_fullscreen:null,_soundMuted:null,_volume:null,_bufferTime:null,_mouseVisible:null,_mediaLoaded:null,_hideMouseTimer:null,_checkAudioTimer:null,_mediaSource:null,_type:null,_streamType:null,_server:null,_sound:null,_soundChannel:null,_id3Info:null,_video:null,_videoWidth:null,_videoHeight:null,_videoMask:null, _videoQualityHigh:null,_mediaDuration:null,_lastTime:null,_lastProgress:null,_isPlaying:null,_aspectRatio:null,_currentAspectRatio:null,_originalAspectRatio:null,_mediaEndReached:null,_seekPoints:null,_downloadCompleted:null,_startTime:null,_firstLoad:null,_stopped:null,_useHardWareScaling:null,_youtubeLoader:null,_userSettings:null,_org_parent:null,_org_RealWidth:null,_org_RealHeight:null,get_movieClip:function(){return this._movieClip},hideMouseTimer:function(a){this._fullscreen&&(this._mouseVisible? this._mouseVisible=!1:(Mk.hide(),this.callEvents(qa.MOUSE_HIDE),this._hideMouseTimer.stop()))},checkAudioTimer:function(a){this._soundChannel.get_position()+100>=this._sound.get_length()&&(this._isPlaying=!1,this._mediaEndReached=!0,this.callEvents(qa.PLAYBACK_FINISHED),this._checkAudioTimer.stop())},onBWDone:function(){},errorHandler:function(a){this.callEvents(qa.ERROR,a.text)},onNetStatus:function(a){switch(a.info.code){case "connectSuccess":this._streamType==sb.RTMP&&(this._stream=new Hj(this._connection), this._stream.addEventListener(dc.NET_STATUS,k(this,this.onNetStatus)),this._stream.bufferTime=10,this._stream.play(Cc.rtmpSourceParser(this._mediaSource),!0),this._stream.client=this,this._type==Nb.VIDEO&&this._video.attachNetStream(this._stream));this.callEvents(qa.CONNECTION_SUCCESS);break;case "NetStream.Play.Error":this.callEvents(qa.CONNECTION_FAILED);break;case "NetStream.Play.Stop":this._streamType!=sb.RTMP&&(this._isPlaying=!1,this._mediaEndReached=!0,this.callEvents(qa.PLAYBACK_FINISHED)); break;case "NetStream.Play.Start":this.onConnectFinished(a);this._isPlaying=!0;this._mediaEndReached=!1;this._stream.bytesLoaded==this._stream.bytesTotal&&this._streamType!=sb.RTMP||this.callEvents(qa.BUFFERING);break;case "NetStream.Seek.Notify":this._mediaEndReached=!1;this._streamType==sb.RTMP&&(this._isPlaying=!0,this.callEvents(qa.PLAY_PAUSE));break;case "NetStream.Buffer.Empty":this._stream.bytesLoaded!=this._stream.bytesTotal&&this.callEvents(qa.BUFFERING);break;case "NetStream.Play.canplaythrough":this._stream.bytesLoaded== this._stream.bytesTotal&&(this.callEvents(qa.NOT_BUFFERING),this._downloadCompleted=!0);break;case "NetStream.Play.volumechange":this.setVolume(this._stream.soundTransform.volume)}},onKeyDown:function(a){9==a.keyCode?this.toggleAspectRatio():70==a.keyCode?this.toggleFullscreen():77==a.keyCode?this.toggleMute():38==a.keyCode?this.volumeUp():40==a.keyCode?this.volumeDown():39==a.keyCode?this.forward():37==a.keyCode?this.rewind():32==a.keyCode?this.togglePlay():88==a.keyCode&&this.stopAndClose();a.stopPropagation()}, onMouseMove:function(a){this._fullscreen&&!this._mouseVisible&&(this._hideMouseTimer.running||this._hideMouseTimer.start(),this._mouseVisible=!0,Mk.show(),this.callEvents(qa.MOUSE_SHOW));a.stopPropagation()},onResize:function(a){this.resizeAndCenterPlayer()},onmyFullScreen:function(){this._fullscreen?(this._mouseVisible=!0,this._hideMouseTimer.start()):(Mk.show(),this.callEvents(qa.MOUSE_SHOW),this._mouseVisible=!0);this.resizeAndCenterPlayer();this.callEvents(qa.FULLSCREEN)},onCuePoint:function(a){}, onMetaData:function(a){if(this._firstLoad){this._isPlaying=!0;this._firstLoad=!1;a.width?(this._videoWidth=a.width,this._videoHeight=a.height):(this._videoWidth=this._video.get_width(),this._videoHeight=this._video.get_height());if(a.hasOwnProperty("seekpoints"))for(var b=0,c=r.fields(a.seekpoints);b=this._aspectRatio&&(this._aspectRatio=this._originalAspectRatio);this.callEvents(qa.MEDIA_INITIALIZED);this.resizeAndCenterPlayer();this.setVolume(this._userSettings.getVolume())}},onConnectFinished:function(a){this._firstLoad&&(this._isPlaying=!0,this._firstLoad=!1,a.info.width?(this._videoWidth=a.info.width,this._videoHeight=a.info.height):(this._videoWidth= this._video.get_width(),this._videoHeight=this._video.get_height()),this._mediaLoaded=!0,this._mediaDuration=a.info.duration,this._originalAspectRatio=jd.getAspectRatio(this._videoWidth,this._videoHeight),0>=this._aspectRatio&&(this._aspectRatio=this._originalAspectRatio),this.callEvents(qa.MEDIA_INITIALIZED),this.resizeAndCenterPlayer(),this.setVolume(this._userSettings.getVolume()))},onLastSecond:function(a){null},onEnterFrame:function(a){0this._movieClip.get_realWidth()&&this._aspectRatio==this._originalAspectRatio){var a=this._videoHeight/this._videoWidth;this._video.set_width(this._movieClip.get_realWidth());this._video.set_height(a*this._video.get_width());this._video.set_x(0);this._video.set_y(this._movieClip.get_realHeight()/ 2-this._video.get_height()/2)}this._videoMask.get_graphics().clear();this._videoMask.get_graphics().lineStyle();this._videoMask.get_graphics().beginFill(0,0);this._videoMask.get_graphics().drawRect(this._video.get_x(),this._video.get_y(),this._video.get_width(),this._video.get_height())}else null!=this._youtubeLoader&&null!=r.field(this._youtubeLoader.content,"setSize")&&r.field(this._youtubeLoader.content,"setSize")(this._movieClip.get_realWidth(),this._movieClip.get_realHeight()),this._videoMask.get_graphics().clear(), this._videoMask.get_graphics().lineStyle(),this._videoMask.get_graphics().beginFill(0,0),this._videoMask.get_graphics().drawRect(0,0,this._movieClip.get_realWidth(),this._movieClip.get_realHeight());this._videoMask.get_graphics().endFill();this.callEvents(qa.RESIZE)},getBestSeekPoint:function(a){if(0=this._startTime&&aa&&(a=this.seek(a));return a},rewind:function(){var a=this.getCurrentTime()-8+this._startTime;a>=this._startTime&&(a=this.seek(a));return a},seek:function(a){if(1>=this._startTime&&this._downloadCompleted)this._type==Nb.VIDEO||this._streamType==sb.RTMP?this._stream.seek(a):this._type==Nb.AUDIO&&(this._soundChannel.stop(), this._soundChannel=this._sound.play(1E3*a),this._isPlaying||this._soundChannel.stop(),this.setVolume(this._userSettings.getVolume()));else if(0=this._sound.get_length()?this._soundChannel=this._sound.play():this._soundChannel=this._sound.play(this._soundChannel.get_position()),this.setVolume(this._userSettings.getVolume()))):this._stopped&&this.load(this._mediaSource,this._type,this._streamType,this._server),this._isPlaying= !this._isPlaying,this.callEvents(qa.PLAY_PAUSE),this._isPlaying;if(""!=this._mediaSource)return this.load(this._mediaSource,this._type,this._streamType,this._server),!0;this.callEvents(qa.PLAY_PAUSE);return!1},toggleFullscreen:function(){if(this._fullscreen)return null!=this._org_parent&&this._org_parent.addChild(this._movieClip),this._movieClip.resize(this._org_RealWidth,this._org_RealHeight),this._stage.set_displayState(Ke.NORMAL),this._fullscreen=!1,this.onmyFullScreen(),!1;this._org_parent=m.__cast(this._movieClip.parent, F);this._org_RealWidth=this._movieClip.get_realWidth();this._org_RealHeight=this._movieClip.get_realHeight();this._useHardWareScaling&&(gb.get_screenResolutionY(),gb.get_screenResolutionX());this._stage.set_displayState(Ke.FULL_SCREEN);this._stage.addChild(this._movieClip);this._movieClip.set_x(0);this._movieClip.set_y(0);this._movieClip.resize(this._stage.stageWidth,this._stage.stageHeight);this._stage.set_focus(this._stage);this._fullscreen=!0;this.onmyFullScreen();return!0},toggleQuality:function(){this._videoQualityHigh? (this._video.smoothing=!1,this._video.deblocking=1):(this._video.smoothing=!0,this._video.deblocking=5);return this._videoQualityHigh=this._videoQualityHigh?!1:!0},toggleMute:function(){var a=new sf,b;this._soundMuted?(this._soundMuted=!1,0this._volume&&(this._streamType==sb.YOUTUBE?(this._volume=(r.field(this._youtubeLoader.content,"getVolume")()+10)/100,1this._volume&&(this._volume=0),r.field(this._youtubeLoader.content,"setVolume")(100*this._volume)):this._type==Nb.VIDEO||this._streamType==sb.RTMP?(this._volume=this._stream.soundTransform.volume-.1,0>this._volume&&(this._volume=0),a.volume=this._volume,this._stream.soundTransform=a):this._type== Nb.AUDIO&&(this._volume=this._soundChannel.get_soundTransform().volume-.1,0>this._volume&&(this._volume=0),a.volume=this._volume,this._soundChannel.set_soundTransform(a)),0>=this._volume&&(this._soundMuted=!0,this._volume=0));this._userSettings.setVolume(this._volume);this.callEvents(qa.VOLUME_DOWN);return this._volume},setType:function(a){this._type=a},setStreamType:function(a){this._streamType=a},setServer:function(a){this._server=a},setSource:function(a){this._mediaSource=a},setVolume:function(a){var b= new sf;a>this._volume&&this.callEvents(qa.VOLUME_UP);a=this._movieClip.get_width()-1||this._stage.get_mouseY()>=this._movieClip.get_height()-1||1>=this._stage.get_mouseY())this._controlsVisible=!1}else this.hideControls(),this._hideControlsTimer.stop()},hideAspectRatioLabelTimer:function(a){1<=this._aspectRatioLabelContainer.get_alpha()&&(Je.fadeOut(this._aspectRatioLabelContainer,300),this._hideAspectRatioLabelTimer.stop())},onEnterFrame:function(a){0=this._controlsBar.get_x()&&(this._hideControlsTimer.running||this._hideControlsTimer.start(),this._controlsVisible=!0,this.showControls())},onStageResize:function(a){this.redrawControls()},onPlayClick:function(a){this._player.togglePlay();this._playControl.set_visible(!this._player.isPlaying());this._pauseControl.set_visible(this._player.isPlaying())},onPauseClick:function(a){this._player.togglePlay(); this._playControl.set_visible(!this._player.isPlaying());this._pauseControl.set_visible(this._player.isPlaying())},onAspectRatioClick:function(a){this._player.toggleAspectRatio()},onFullscreenClick:function(a){this._player.toggleFullscreen()},onVolumeIconClick:function(a){this._player.toggleMute()},onVolumeTrackClick:function(a){a=(this._volumeTrack.get_height()-this._volumeTrack.get_mouseY())/this._volumeTrack.get_height();this._player.setVolume(a)},onPlayerStreamNotFound:function(a){},onPlayerBuffering:function(a){this._loader.show()}, onPlayerNotBuffering:function(a){this._loader.hide()},onPlayerAspectRatio:function(a){this._hideAspectRatioLabelTimer.stop();this._aspectRatioLabel.set_text(this._player.getAspectRatioString());for(this.drawAspectRatioLabel();this._aspectRatioLabelContainer.get_visible(););Je.fadeIn(this._aspectRatioLabelContainer,300);this._hideAspectRatioLabelTimer.start()},onPlayerPlaybackFinished:function(a){this._playControl.set_visible(!this._player.isPlaying());this._pauseControl.set_visible(this._player.isPlaying()); this.showControls()},onPlayerPlayPause:function(a){this._playControl.set_visible(!this._player.isPlaying());this._pauseControl.set_visible(this._player.isPlaying())},onPlayerResize:function(a){!this._player.isFullscreen()&&this._player.getVideo().get_y()+this._player.getVideo().get_height()>=this._movieClip.get_height()&&(this._player.getVideo().set_height(this._movieClip.get_height()-this._seekBar.get_height()),this._player.getVideo().set_width(this._player.getVideo().get_height()*this._player.getAspectRatio()), this._player.getVideo().set_x(this._movieClip.get_width()/2-this._player.getVideo().get_width()/2))},onPlayerMediaInitialized:function(a){this._totalPlayTimeLabel.set_text(Cc.formatTime(a.duration));this._totalPlayTimeLabel.setTextFormat(this._textFormat);this._playControl.set_visible(!this._player.isPlaying());this._pauseControl.set_visible(this._player.isPlaying())},onPlayerMouseHide:function(a){this._seekBar.get_visible()&&this._player.isFullscreen()&&Je.slideOut(this._seekBar,"bottom",1E3)},onPlayerMouseShow:function(a){this._player.isFullscreen()&& !this._seekBar.get_visible()?Je.slideIn(this._seekBar,"bottom",1E3):this._seekBar.set_visible(!0)},onTrackClick:function(a){a=this._track.get_mouseX();this._player.seek(this._player.getDuration()*(a/this._track.get_width()))},onTrackMouseMove:function(a){a=this._track.get_mouseX();this._seekPlayTimeLabel.set_text(Cc.formatTime(this._player.getDuration()*(a/this._track.get_width())));this._seekPlayTimeLabel.setTextFormat(this._textFormat);this._seekPlayTimeLabel.set_y(this._movieClip.get_height()- this._seekBar.get_height()-this._seekPlayTimeLabel.get_height()-1);this._seekPlayTimeLabel.set_x(a+this._seekPlayTimeLabel.get_width()/2);this._seekPlayTimeLabel.set_backgroundColor(this._brightColor);this._seekPlayTimeLabel.set_background(!0);this._seekPlayTimeLabel.set_textColor(this._controlColor);this._seekPlayTimeLabel.set_borderColor(this._darkColor);this._seekPlayTimeLabel.set_border(!0);this._seekPlayTimeLabel.get_visible()||Je.fadeIn(this._seekPlayTimeLabel,300)},onTrackMouseOut:function(a){Je.fadeOut(this._seekPlayTimeLabel, 300)},onThumbMouseDown:function(a){this._scrubbing=!0;a=new va(this._track.get_x(),this._track.get_y(),this._track.get_width()-this._thumb.get_width(),0);this._thumb.startDrag(!1,a)},onThumbHover:function(a){this._thumb.get_graphics().lineStyle();this._thumb.get_graphics().beginFill(this._hoverColor);this._thumb.get_graphics().drawRect(0,this._seekBar.get_height()/2-5,10,10);this._thumb.get_graphics().endFill()},onThumbMouseOut:function(a){this._thumb.get_graphics().lineStyle();this._thumb.get_graphics().beginFill(this._controlColor); this._thumb.get_graphics().drawRect(0,this._seekBar.get_height()/2-5,10,10);this._thumb.get_graphics().endFill()},onThumbMouseUp:function(a){this._scrubbing=!1;this._thumb.stopDrag()},redrawControls:function(){this.drawSeekControls();this.drawPlayingControls();this.drawAspectRatioLabel()},drawDownloadProgress:function(){if(0this._movieClip.get_height()?5:25;var b=this._movieClip.get_height()-this._seekBar.get_height()-2*a,c;c=330>this._movieClip.get_height()?45:60;this._controlsBar.set_x(this._movieClip.get_width()-c+20);this._controlsBar.set_y(a);a=new pa;a.createGradientBox(c,b,Cc.degreesToRadians(0),0,b);var d=[this._brightColor,this._darkColor];this._controlsBar.get_graphics().lineStyle();this._controlsBar.get_graphics().beginGradientFill(aa.LINEAR,d,[.75,.75],[0,255],a);this._controlsBar.get_graphics().drawRoundRect(0, 0,c,b,20,20);this._controlsBar.get_graphics().endFill();a=330>this._movieClip.get_height()?5:10;d=(c-20)/2;c=.8*(c-20);var e=c/2;this._playControl.setNormalColor(this._controlColor);this._playControl.setHoverColor(this._hoverColor);this._playControl.setPosition(d-e,a);this._playControl.setSize(c,c);this._pauseControl.setNormalColor(this._controlColor);this._pauseControl.setHoverColor(this._hoverColor);this._pauseControl.setPosition(this._playControl.get_x(),a);this._pauseControl.setSize(c,c);this._aspectRatioControl.setNormalColor(this._controlColor); this._aspectRatioControl.setHoverColor(this._hoverColor);this._aspectRatioControl.setPosition(this._playControl.get_x(),this._playControl.get_y()+c+a);this._aspectRatioControl.setSize(c,c);this._fullscreenControl.setNormalColor(this._controlColor);this._fullscreenControl.setHoverColor(this._hoverColor);this._fullscreenControl.setPosition(this._playControl.get_x(),this._aspectRatioControl.get_y()+this._aspectRatioControl.get_height()+a);this._fullscreenControl.setSize(c,c);this._volumeIcon.setNormalColor(this._controlColor); this._volumeIcon.setHoverColor(this._hoverColor);this._volumeIcon.setPosition(this._playControl.get_x(),b-this._playControl.get_height()-a);this._volumeIcon.setSize(c,c);this._volumeTrack.set_x(this._playControl.get_x());this._volumeTrack.set_y(this._fullscreenControl.get_y()+this._fullscreenControl.get_height()+a);this._volumeTrack.get_graphics().lineStyle(1,this._controlColor);this._volumeTrack.get_graphics().beginFill(0,0);this._volumeTrack.get_graphics().drawRect(0,0,this._playControl.get_width()/ 2,this._volumeIcon.get_y()-(this._fullscreenControl.get_y()+this._fullscreenControl.get_height())-2*a);this._volumeTrack.get_graphics().endFill();this._volumeTrack.set_x(d-this._volumeTrack.get_width()/2);this._volumeSlider.set_x(this._volumeTrack.get_x());this._volumeSlider.set_y(this._volumeTrack.get_y());this._volumeSlider.get_graphics().lineStyle();this._volumeSlider.get_graphics().beginFill(this._controlColor,1);this._volumeSlider.get_graphics().drawRect(0,0,this._volumeTrack.get_width(),this._volumeTrack.get_height()); this._volumeSlider.get_graphics().endFill()},drawAspectRatioLabel:function(){this._aspectRatioLabelContainer.get_graphics().clear();this._aspectRatioLabelContainer.set_visible(!1);var a=new ub;a.font="arial";a.bold=!0;a.size=40;a.color=this._controlColor;this._aspectRatioLabel.setTextFormat(a);this._aspectRatioLabel.set_x(this._movieClip.get_width()/2-this._aspectRatioLabel.get_width()/2);this._aspectRatioLabel.set_y(this._movieClip.get_height()/2-this._aspectRatioLabel.get_height()/2);this._aspectRatioLabelContainer.set_x(this._aspectRatioLabel.get_x()- 10);this._aspectRatioLabelContainer.set_y(this._aspectRatioLabel.get_y()-10);this._aspectRatioLabelContainer.get_graphics().lineStyle(3,this._controlColor);this._aspectRatioLabelContainer.get_graphics().beginFill(this._brightColor,1);this._aspectRatioLabelContainer.get_graphics().drawRoundRect(0,0,this._aspectRatioLabel.get_width()+20,this._aspectRatioLabel.get_height()+20,15,15);this._aspectRatioLabelContainer.get_graphics().endFill();this._aspectRatioLabel.set_x(10);this._aspectRatioLabel.set_y(10)}, hideControls:function(){this._controlsBar.get_visible()&&(this.drawPlayingControls(),Je.slideOut(this._controlsBar,"right",800))},showControls:function(){this._controlsBar.get_visible()||(this.drawPlayingControls(),Je.slideIn(this._controlsBar,"right",800))},setControlColors:function(a){this._darkColor=0=this._loaderTrack.get_x()+this._loaderTrack.get_width()?this._forward= !1:(a=this._loaderThumb,a.set_x(a.get_x()+10)):this._loaderThumb.get_x()<=this._loaderTrack.get_x()?this._forward=!0:(a=this._loaderThumb,a.set_x(a.get_x()-10)))},onResize:function(a){this.drawLoader()},drawLoader:function(){this._background.get_graphics().clear();this._loaderTrack.get_graphics().clear();this._loaderThumb.get_graphics().clear();var a=.65*this._movieClip.get_realWidth();this._background.set_x(this._movieClip.get_realWidth()/2-a/2);this._background.set_y(this._movieClip.get_realHeight()/ 2-15);this._background.get_graphics().lineStyle();this._background.get_graphics().beginFill(this._darkColor,.75);this._background.get_graphics().drawRoundRect(0,0,a,30,6,6);this._background.get_graphics().endFill();a=.5*this._movieClip.get_realWidth();this._loaderTrack.set_x(this._movieClip.get_realWidth()/2-a/2);this._loaderTrack.set_y(this._movieClip.get_realHeight()/2-5.5);this._loaderTrack.get_graphics().lineStyle();this._loaderTrack.get_graphics().beginFill(this._seekColor,.3);this._loaderTrack.get_graphics().drawRoundRect(0, 2.75,a,5.5,5,5);a=new pa;a.createGradientBox(33,11,Cc.degreesToRadians(-90),33,0);var b=[this._controlColor,this._controlColor];this._loaderThumb.set_x(this._loaderTrack.get_x());this._loaderThumb.set_y(this._loaderTrack.get_y());this._loaderThumb.get_graphics().lineStyle();this._loaderThumb.get_graphics().beginGradientFill(aa.LINEAR,b,[.75,1],[0,255],a);this._loaderThumb.get_graphics().drawRoundRect(0,0,33,11,10,10)},hide:function(){this.set_visible(!1);this._visible=!1},show:function(){this.set_visible(!0); this._visible=!0},setColors:function(a){this._darkColor=0Math.floor(a/60)/60?"0"+Math.floor(a/60/60)+":":Math.floor(a/60/60)+":",c=10>Math.floor(a/60%60)?"0"+Math.floor(a/60%60)+":":Math.floor(a/60%60)+":",b=10>Math.floor(a%60)?"0"+Math.floor(a%60):y.string(Math.floor(a%60))):1<=a/60?(d="00:",c=10>Math.floor(a/60)?"0"+Math.floor(a/60)+":":Math.floor(a/60)+":",b=10>Math.floor(a%60)?"0"+Math.floor(a%60):y.string(Math.floor(a%60))):(c=d="00:",b=10>Math.floor(a)?"0"+Math.floor(a):y.string(Math.floor(a))); return e+(d+c+b)};Cc.rtmpSourceParser=function(a){return-1!=a.indexOf(".flv")?a.split(".flv").join(""):-1!=a.indexOf(".mp3")?"mp3:"+a.split(".mp3").join(""):-1!=a.indexOf(".mp4")||-1!=a.indexOf(".f4v")?"mp4:"+a:a};Cc.youtubeSourceParse=function(a){return a.split("watch?v=").join("v/")};var q=function(a){Error.call(this);this.val=a;Object.prototype.hasOwnProperty.call(a,"name")?this.name=r.field(a,"name"):this.name="Error";Object.prototype.hasOwnProperty.call(a,"message")?this.message=r.field(a,"message"): this.message=y.string(a);Error.captureStackTrace&&Error.captureStackTrace(this,q)};g["js._Boot.HaxeError"]=q;q.__name__=["js","_Boot","HaxeError"];q.__super__=Error;q.prototype=t(Error.prototype,{val:null,__class__:q});var Jj=function(){};g["js.Browser"]=Jj;Jj.__name__=["js","Browser"];Jj.getLocalStorage=function(){try{var a=window.localStorage;a.getItem("");return a}catch(b){return G.lastException=b,b instanceof q&&(b=b.val),null}};Jj.alert=function(a){window.alert(m.__string_rec(a,""))};var ng= function(a){if(a instanceof Array&&null==a.__enum__)this.a=a,this.byteLength=a.length;else{this.a=[];for(var b=0;bthis.offset||0>this.length||this.offset+this.length>a.byteLength)throw new q(hd.OutsideBounds);};g["js.html.compat.DataView"]=Gq;Gq.__name__=["js","html","compat","DataView"];Gq.prototype={buf:null,offset:null,length:null,getInt8:function(a){a=this.buf.a[this.offset+a];return 128<=a?a-256:a},getUint8:function(a){return this.buf.a[this.offset+a]},getInt16:function(a,b){var c=this.getUint16(a,b);return 32768<=c?c-65536:c},getUint16:function(a, b){return b?this.buf.a[this.offset+a]|this.buf.a[this.offset+a+1]<<8:this.buf.a[this.offset+a]<<8|this.buf.a[this.offset+a+1]},getInt32:function(a,b){var c=this.offset+a,d=this.buf.a[c++],e=this.buf.a[c++],f=this.buf.a[c++],c=this.buf.a[c++];return b?d|e<<8|f<<16|c<<24:c|f<<8|e<<16|d<<24},getUint32:function(a,b){var c=this.getInt32(a,b);return 0>c?c+4294967296:c},getFloat32:function(a,b){return kg.i32ToFloat(this.getInt32(a,b))},getFloat64:function(a,b){var c=this.getInt32(a,b),d=this.getInt32(a+ 4,b);return kg.i64ToDouble(b?c:d,b?d:c)},setInt8:function(a,b){this.buf.a[a+this.offset]=0>b?b+128&255:b&255},setUint8:function(a,b){this.buf.a[a+this.offset]=b&255},setInt16:function(a,b,c){this.setUint16(a,0>b?b+65536:b,c)},setUint16:function(a,b,c){a+=this.offset;c?(this.buf.a[a]=b&255,this.buf.a[a++]=b>>8&255):(this.buf.a[a++]=b>>8&255,this.buf.a[a]=b&255)},setInt32:function(a,b,c){this.setUint32(a,b,c)},setUint32:function(a,b,c){a+=this.offset;c?(this.buf.a[a++]=b&255,this.buf.a[a++]=b>>8&255, this.buf.a[a++]=b>>16&255,this.buf.a[a++]=b>>>24):(this.buf.a[a++]=b>>>24,this.buf.a[a++]=b>>16&255,this.buf.a[a++]=b>>8&255,this.buf.a[a++]=b&255)},setFloat32:function(a,b,c){this.setUint32(a,kg.floatToI32(b),c)},setFloat64:function(a,b,c){b=kg.doubleToI64(b);c?(this.setUint32(a,b.low),this.setUint32(a,b.high)):(this.setUint32(a,b.high),this.setUint32(a,b.low))},__class__:Gq};var Gh=function(){};g["js.html.compat.Uint8Array"]=Gh;Gh.__name__=["js","html","compat","Uint8Array"];Gh._new=function(a, b,c){if("number"==typeof a){c=[];for(b=0;bthis.byteLength)throw new q("set() outside of range");for(var c=0,d=a.byteLength;cthis.byteLength)throw new q("set() outside of range");c=0;for(d=a.length;cthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;b=a)return a+32;switch(a){case 16:return 1073742049;case 17:return 1073742048;case 18:return 1073742050;case 20:return 1073741881;case 144:return 1073741907;case 37:return 1073741904;case 38:return 1073741906;case 39:return 1073741903;case 40:return 1073741905;case 45:return 1073741897;case 46:return 127;case 36:return 1073741898;case 35:return 1073741901;case 33:return 1073741899;case 34:return 1073741902;case 112:return 1073741882; case 113:return 1073741883;case 114:return 1073741884;case 115:return 1073741885;case 116:return 1073741886;case 117:return 1073741887;case 118:return 1073741888;case 119:return 1073741889;case 120:return 1073741890;case 121:return 1073741891;case 122:return 1073741892;case 123:return 1073741893;case 124:return 1073741928;case 125:return 1073741929;case 126:return 1073741930;case 186:return 59;case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46;case 191:return 47;case 192:return 96; case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39}return a},create:function(a){},exec:function(){window.addEventListener("keydown",k(this,this.handleKeyEvent),!1);window.addEventListener("keyup",k(this,this.handleKeyEvent),!1);window.addEventListener("focus",k(this,this.handleWindowEvent),!1);window.addEventListener("blur",k(this,this.handleWindowEvent),!1);window.addEventListener("resize",k(this,this.handleWindowEvent),!1);window.addEventListener("beforeunload",k(this,this.handleWindowEvent), !1);for(var a=0,b=["ms","moz","webkit","o"],c=0;cthis.framePeriod?60:1E3==this.framePeriod?0:1E3/this.framePeriod},handleApplicationEvent:function(a){this.currentUpdate=(new Date).getTime();this.currentUpdate>=this.nextUpdate&&(this.deltaTime=this.currentUpdate-this.lastUpdate,this.parent.onUpdate.dispatch(this.deltaTime|0),null!=this.parent.renderers[0]&& (this.parent.renderers[0].onRender.dispatch(),this.parent.renderers[0].flip()),this.nextUpdate=0>this.framePeriod?this.nextUpdate=this.currentUpdate:this.currentUpdate+this.framePeriod,this.lastUpdate=this.currentUpdate);window.requestAnimationFrame(k(this,this.handleApplicationEvent))},handleKeyEvent:function(a){if(null!=this.parent.windows[0]){var b=this.convertKeyCode(null!=a.keyCode?a.keyCode:a.which),c;c=(a.shiftKey?3:0)|(a.ctrlKey?192:0)|(a.altKey?768:0)|(a.metaKey?3072:0);"keydown"==a.type? this.parent.windows[0].onKeyDown.dispatch(b,c):this.parent.windows[0].onKeyUp.dispatch(b,c)}},handleWindowEvent:function(a){if(null!=this.parent.windows[0])switch(a.type){case "focus":this.parent.windows[0].onFocusIn.dispatch();this.parent.windows[0].onActivate.dispatch();break;case "blur":this.parent.windows[0].onFocusOut.dispatch();this.parent.windows[0].onDeactivate.dispatch();break;case "resize":a=this.parent.windows[0].__width;var b=this.parent.windows[0].__height;this.parent.windows[0].backend.handleResize(); this.parent.windows[0].__width==a&&this.parent.windows[0].__height==b||this.parent.windows[0].onResize.dispatch(this.parent.windows[0].__width,this.parent.windows[0].__height);break;case "beforeunload":this.parent.windows[0].onClose.dispatch()}},setFrameRate:function(a){this.framePeriod=60<=a?-1:0this.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a); this.priorities.push(c);this.repeat.push(!b)},dispatch:null,has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f, 0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a); this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f, 0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f, 0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c); this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;b< c.length;){var d=c[b];++b;if(r.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.listeners.length;0<=--b;)r.compareMethods(this.listeners[b],a)&&(this.listeners.splice(b,1),this.priorities.splice(b,1),this.repeat.splice(b,1))},listeners:null,dispatch:function(a){for(var b=this.listeners,c=this.repeat,d=0;dthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f, 0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;bthis.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b); return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},has:function(a){for(var b=0,c=this.listeners;b=b.width||0>=b.height))switch(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),this.type[1]){case 0:ia.copyChannel(this,a,b,c,d,e);break;case 1:ia.convertToData(this);jb.copyChannel(this,a,b,c,d,e);break;case 2:var f;switch(d[1]){case 0:f=1;break;case 1:f=2;break;case 2:f=4;break;case 3:f=8}var h;switch(e[1]){case 0:h=1;break;case 1:h=2;break;case 2:h=4;break;case 3:h=8}b.offset(a.offsetX,a.offsetY);c.offset(this.offsetX,this.offsetY);this.buffer.__srcBitmapData.copyChannel(a.buffer.get_src(), b.__toFlashRectangle(),c.__toFlashPoint(),f,h)}},copyPixels:function(a,b,c,d,e,f){null==f&&(f=!1);if(null!=this.buffer&&null!=a&&!(0>=b.width||0>=b.height||0>=this.width||0>=this.height))switch(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),0>b.x&&(b.width+=b.x,b.x=0),0>b.y&&(b.height+=b.y,b.y=0),c.x+b.width>this.width&&(b.width=this.width-c.x),c.y+b.height>this.height&&(b.height=this.height-c.y),0>c.x&&(b.width+=c.x,b.x=-c.x,c.x=0),0>c.y&&(b.height+=c.y, b.y=-c.y,c.y=0),this.type[1]){case 0:ia.convertToCanvas(this);ia.copyPixels(this,a,b,c,d,e,f);break;case 1:ia.convertToData(this);ia.convertToData(a);jb.copyPixels(this,a,b,c,d,e,f);break;case 2:b.offset(a.offsetX,a.offsetY),c.offset(this.offsetX,this.offsetY),null!=d&&null!=e&&e.offset(d.offsetX,d.offsetY),this.buffer.__srcBitmapData.copyPixels(a.buffer.__srcBitmapData,b.__toFlashRectangle(),c.__toFlashPoint(),null!=d?d.buffer.get_src():null,null!=e?e.__toFlashPoint():null,f)}},encode:function(a, b){null==b&&(b=90);null==a&&(a="png");switch(a){case "png":return hn.encode(this);case "jpg":case "jpeg":return jn.encode(this,b);case "bmp":return fs.encode(this)}return null},fillRect:function(a,b,c){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type[1]){case 0:ia.fillRect(this,a,b,c);break;case 1:ia.convertToData(this);if(0==this.buffer.data.length)break;jb.fillRect(this,a,b,c);break;case 2:a.offset(this.offsetX,this.offsetY);if(null!=c)switch(c){case 1:break;case 2:b=(b&255)<< 24|(b>>8&255)<<16|(b>>16&255)<<8|b>>24&255;break;default:b=(b&255)<<24|(b>>24&255)<<16|(b>>16&255)<<8|b>>8&255}else b=(b&255)<<24|(b>>24&255)<<16|(b>>16&255)<<8|b>>8&255;this.buffer.__srcBitmapData.fillRect(a.__toFlashRectangle(),b)}},floodFill:function(a,b,c,d){if(null!=this.buffer)switch(this.type[1]){case 0:ia.floodFill(this,a,b,c,d);break;case 1:ia.convertToData(this);jb.floodFill(this,a,b,c,d);break;case 2:if(null!=d)switch(d){case 1:break;case 2:c=(c&255)<<24|(c>>8&255)<<16|(c>>16&255)<<8|c>> 24&255;break;default:c=(c&255)<<24|(c>>24&255)<<16|(c>>16&255)<<8|c>>8&255}else c=(c&255)<<24|(c>>24&255)<<16|(c>>16&255)<<8|c>>8&255;this.buffer.__srcBitmapData.floodFill(a+this.offsetX,b+this.offsetY,c)}},getColorBoundsRect:function(a,b,c,d){null==c&&(c=!0);if(null==this.buffer)return null;switch(this.type[1]){case 0:return ia.convertToData(this),jb.getColorBoundsRect(this,a,b,c,d);case 1:return jb.getColorBoundsRect(this,a,b,c,d);case 2:return a=this.buffer.__srcBitmapData.getColorBoundsRect(a, b,c),new gd(a.x,a.y,a.width,a.height);default:return null}},getPixel:function(a,b,c){if(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height)return 0;switch(this.type[1]){case 0:return ia.getPixel(this,a,b,c);case 1:return ia.convertToData(this),jb.getPixel(this,a,b,c);case 2:if(a=this.buffer.__srcBitmapData.getPixel(a+this.offsetX,b+this.offsetY),null!=c)switch(c){case 1:return a;case 2:return(a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>24&255;default:return(a>>16&255)<<24|(a>>8&255)<<16|(a& 255)<<8|a>>24&255}else return(a>>16&255)<<24|(a>>8&255)<<16|(a&255)<<8|a>>24&255;default:return 0}},getPixel32:function(a,b,c){if(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height)return 0;switch(this.type[1]){case 0:return ia.getPixel32(this,a,b,c);case 1:return ia.convertToData(this),jb.getPixel32(this,a,b,c);case 2:if(a=this.buffer.__srcBitmapData.getPixel32(a+this.offsetX,b+this.offsetY),null!=c)switch(c){case 1:return a;case 2:return(a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>24&255; default:return(a>>16&255)<<24|(a>>8&255)<<16|(a&255)<<8|a>>24&255}else return(a>>16&255)<<24|(a>>8&255)<<16|(a&255)<<8|a>>24&255;default:return 0}},getPixels:function(a,b){if(null==this.buffer)return null;switch(this.type[1]){case 0:return ia.getPixels(this,a,b);case 1:return ia.convertToData(this),jb.getPixels(this,a,b);case 2:a.offset(this.offsetX,this.offsetY);var c=this.buffer.__srcBitmapData.getPixels(a.__toFlashRectangle());if(null!=b)switch(b){case 1:break;case 2:for(var d,e=c.length/4|0,f= 0;f>8&255)<<16|(d>>16&255)<<8|d>>24&255;c.position-=4;c.writeUnsignedInt(d)}c.position=0;break;default:for(var p,e=c.length/4|0,f=0;f>16&255)<<24|(d>>8&255)<<16|(d&255)<<8|d>>24&255,c.position-=4,c.writeUnsignedInt(function(a){a=0;return a=(p>>8&255)<<24|(p>>16&255)<<16|(p>>24&255)<<8|p&255}(this));c.position=0}else{for(var g,e=c.length/4|0,f=0;f>16&255)<<24| (d>>8&255)<<16|(d&255)<<8|d>>24&255,c.position-=4,c.writeUnsignedInt(function(a){a=0;return a=(g>>8&255)<<24|(g>>16&255)<<16|(g>>24&255)<<8|g&255}(this));c.position=0}return c;default:return null}},merge:function(a,b,c,d,e,f,h){if(null!=this.buffer&&null!=a)switch(this.type[1]){case 0:ia.convertToCanvas(this);ia.merge(this,a,b,c,d,e,f,h);break;case 1:ia.convertToData(this);ia.convertToData(a);jb.merge(this,a,b,c,d,e,f,h);break;case 2:b.offset(this.offsetX,this.offsetY);this.buffer.__srcBitmapData.merge(a.buffer.__srcBitmapData, b.__toFlashRectangle(),c.__toFlashPoint(),d,e,f,h);break;default:return null}},resize:function(a,b){switch(this.type[1]){case 0:ia.resize(this,a,b);break;case 1:jb.resize(this,a,b)}this.buffer.width=a;this.buffer.height=b;this.offsetY=this.offsetX=0;this.width=a;this.height=b},scroll:function(a,b){if(null!=this.buffer)switch(this.type[1]){case 0:ia.scroll(this,a,b);break;case 1:this.copyPixels(this,this.get_rect(),new Wc(a,b));break;case 2:this.buffer.__srcBitmapData.scroll(a+this.offsetX,b+this.offsetX)}}, setPixel:function(a,b,c,d){if(!(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height))switch(this.type[1]){case 0:ia.setPixel(this,a,b,c,d);break;case 1:ia.convertToData(this);jb.setPixel(this,a,b,c,d);break;case 2:if(null!=d)switch(d){case 1:break;case 2:c=(c&255)<<24|(c>>8&255)<<16|(c>>16&255)<<8|c>>24&255;break;default:c=(c&255)<<24|(c>>24&255)<<16|(c>>16&255)<<8|c>>8&255}else c=(c&255)<<24|(c>>24&255)<<16|(c>>16&255)<<8|c>>8&255;this.buffer.__srcBitmapData.setPixel(a+this.offsetX,b+this.offsetX, c)}},setPixel32:function(a,b,c,d){if(!(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height))switch(this.type[1]){case 0:ia.setPixel32(this,a,b,c,d);break;case 1:ia.convertToData(this);jb.setPixel32(this,a,b,c,d);break;case 2:if(null!=d)switch(d){case 1:break;case 2:c=(c&255)<<24|(c>>8&255)<<16|(c>>16&255)<<8|c>>24&255;break;default:c=(c&255)<<24|(c>>24&255)<<16|(c>>16&255)<<8|c>>8&255}else c=(c&255)<<24|(c>>24&255)<<16|(c>>16&255)<<8|c>>8&255;this.buffer.__srcBitmapData.setPixel32(a+this.offsetX, b+this.offsetY,c)}},setPixels:function(a,b,c){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type[1]){case 0:ia.setPixels(this,a,b,c);break;case 1:ia.convertToData(this);jb.setPixels(this,a,b,c);break;case 2:a.offset(this.offsetX,this.offsetY);if(null!=c)switch(c){case 1:break;case 2:c=b;b=new ib;for(var d,e=b.length/4|0,f=0;fa.x&&(a.width-=-a.x,a.x=0,0>=a.x+a.width)||0>a.y&&(a.height-=-a.y,a.y=0,0>=a.y+a.height)||a.x+a.width>=this.width&&(a.width-=a.x+a.width-this.width,0>=a.width)||a.y+a.height>=this.height&&(a.height-=a.y+ a.height-this.height,0>=a.height)?null:a},__fromBase64:function(a,b,c){var d=this,e=new Image;e.addEventListener("load",function(a){d.buffer=new qg(null,e.width,e.height);d.buffer.__srcImage=e;d.offsetX=0;d.offsetY=0;d.width=d.buffer.width;d.height=d.buffer.height;null!=c&&c(d)},!1);e.src="data:"+b+";base64,"+a},__fromBytes:function(a,b){var c="";if(Fb.__isPNG(a))c="image/png";else if(Fb.__isJPG(a))c="image/jpeg";else if(Fb.__isGIF(a))c="image/gif";else throw new q("Image tried to read a PNG/JPG ByteArray, but found an invalid header."); this.__fromBase64(Fb.__base64Encode(a),c,b)},__fromFile:function(a,b,c){var d=this,e=new Image;e.onload=function(a){d.buffer=new qg(null,e.width,e.height);d.buffer.__srcImage=e;d.width=e.width;d.height=e.height;null!=b&&b(d)};e.onerror=function(a){null!=c&&c()};e.src=a},__fromImageBuffer:function(a){this.buffer=a;null!=a&&(-1==this.width&&(this.width=a.width),-1==this.height&&(this.height=a.height))},get_data:function(){null==this.buffer.data&&0c;)c++,f.writeByte(0);var c=a.getPixels(new gd(0,0,a.width,a.height),1),h,p;if(null!=b)switch(b[1]){case 1:for(var g=0,k=a.height;g=a.width||d.y>=a.height||null==c||1>c.width||1>c.height||(null!=e&&e.get_transparent()&&(null==f&&(f=new Wc),b=a.clone(),b.copyChannel(e,new gd(f.x,f.y,c.width,c.height),new Wc(c.x,c.y),Jc.ALPHA,Jc.ALPHA)),ia.sync(a,!0),h||a.get_transparent()&& b.get_transparent()&&a.buffer.__srcContext.clearRect(d.x+a.offsetX,d.y+a.offsetY,c.width+a.offsetX,c.height+a.offsetY),ia.sync(b,!1),null!=b.buffer.get_src()&&a.buffer.__srcContext.drawImage(b.buffer.get_src(),c.x+b.offsetX|0,c.y+b.offsetY|0,c.width|0,c.height|0,d.x+a.offsetX|0,d.y+a.offsetY|0,c.width|0,c.height|0))};ia.createCanvas=function(a,b,c){var d=a.buffer;null==d.__srcCanvas&&(d.__srcCanvas=window.document.createElement("canvas"),d.__srcCanvas.width=b,d.__srcCanvas.height=c,a.get_transparent()? d.__srcContext=d.__srcCanvas.getContext("2d"):(a.get_transparent()||d.__srcCanvas.setAttribute("moz-opaque","true"),d.__srcContext=d.__srcCanvas.getContext("2d",{alpha:!1})),d.__srcContext.mozImageSmoothingEnabled=!1,d.__srcContext.msImageSmoothingEnabled=!1,d.__srcContext.imageSmoothingEnabled=!1)};ia.createImageData=function(a){a=a.buffer;if(null==a.__srcImageData){null==a.data?a.__srcImageData=a.__srcContext.getImageData(0,0,a.width,a.height):(a.__srcImageData=a.__srcContext.createImageData(a.width, a.height),a.__srcImageData.data.set(a.data));var b=a.__srcImageData.data.buffer,b=null!=b?new nc(b):null;a.data=b}};ia.fillRect=function(a,b,c,d){ia.convertToCanvas(a);ia.sync(a,!0);if(0==b.x&&0==b.y&&b.width==a.width&&b.height==a.height&&a.get_transparent()&&0==(c&255))a.buffer.__srcCanvas.width=a.buffer.width;else{var e,f;1==d?(d=c>>16&255,e=c>>8&255,f=c&255,c=a.get_transparent()?c>>24&255:255):(d=c>>24&255,e=c>>16&255,f=c>>8&255,c=a.get_transparent()?c&255:255);a.buffer.__srcContext.fillStyle= "rgba("+d+", "+e+", "+f+", "+c/255+")";a.buffer.__srcContext.fillRect(b.x+a.offsetX,b.y+a.offsetY,b.width+a.offsetX,b.height+a.offsetY)}};ia.floodFill=function(a,b,c,d,e){ia.convertToCanvas(a);ia.createImageData(a);jb.floodFill(a,b,c,d,e)};ia.getPixel=function(a,b,c,d){ia.convertToCanvas(a);ia.createImageData(a);return jb.getPixel(a,b,c,d)};ia.getPixel32=function(a,b,c,d){ia.convertToCanvas(a);ia.createImageData(a);return jb.getPixel32(a,b,c,d)};ia.getPixels=function(a,b,c){ia.convertToCanvas(a); ia.createImageData(a);return jb.getPixels(a,b,c)};ia.merge=function(a,b,c,d,e,f,h,p){ia.convertToCanvas(b);ia.createImageData(b);ia.convertToCanvas(a);ia.createImageData(a);jb.merge(a,b,c,d,e,f,h,p)};ia.resize=function(a,b,c){var d=a.buffer;if(null==d.__srcCanvas)ia.createCanvas(a,b,c),d.__srcContext.drawImage(d.get_src(),0,0,b,c);else{ia.sync(a,!0);var e=d.__srcCanvas;d.__srcCanvas=null;ia.createCanvas(a,b,c);d.__srcContext.drawImage(e,0,0,b,c)}};ia.scroll=function(a,b,c){if(0!=b%a.width||0!=c%a.height)ia.convertToCanvas(a), ia.sync(a,!0),a.buffer.__srcContext.clearRect(b,c,a.width,a.height),a.buffer.__srcContext.drawImage(a.buffer.__srcCanvas,b,c)};ia.setPixel=function(a,b,c,d,e){ia.convertToCanvas(a);ia.createImageData(a);jb.setPixel(a,b,c,d,e)};ia.setPixel32=function(a,b,c,d,e){ia.convertToCanvas(a);ia.createImageData(a);jb.setPixel32(a,b,c,d,e)};ia.setPixels=function(a,b,c,d){ia.convertToCanvas(a);ia.createImageData(a);jb.setPixels(a,b,c,d)};ia.sync=function(a,b){a.dirty&&null!=a.buffer.__srcImageData&&a.type!=td.DATA&& (a.buffer.__srcContext.putImageData(a.buffer.__srcImageData,0,0),a.buffer.data=null,a.dirty=!1);b&&(a.buffer.__srcImageData=null,a.buffer.data=null)};var jb=function(){};g["lime.graphics.utils.ImageDataUtil"]=jb;jb.__name__=["lime","graphics","utils","ImageDataUtil"];jb.colorTransform=function(a,b,c){var d=a.buffer.data;if(null!=d){var e=a.buffer.format,f=a.buffer.premultiplied;b=new Ye(a,b);var h=wb.getAlphaTable(c),p=wb.getRedTable(c),g=wb.getGreenTable(c);c=wb.getBlueTable(c);for(var k,l,m,x=0, n=b.height;x>24&255)*E.unmult);t=E.__clamp[t];var r;r=Math.round((m>>16&255)*E.unmult);r=E.__clamp[r];var ka=Math.round((m>> 8&255)*E.unmult);m=(t&255)<<24|(r&255)<<16|(E.__clamp[ka]&255)<<8|m&255}m=(p[m>>24&255]&255)<<24|(g[m>>16&255]&255)<<16|(c[m>>8&255]&255)<<8|h[m&255]&255;f&&(0==(m&255)?0!=m&&(m=0):255!=(m&255)&&(E.a16=E.__alpha16[m&255],m=((m>>24&255)*E.a16>>16&255)<<24|((m>>16&255)*E.a16>>16&255)<<16|((m>>8&255)*E.a16>>16&255)<<8|m&255));switch(e){case 2:d[l]=m>>8&255;d[l+1]=m>>16&255;d[l+2]=m>>24&255;d[l+3]=m&255;break;case 0:d[l]=m>>24&255;d[l+1]=m>>16&255;d[l+2]=m>>8&255;d[l+3]=m&255;break;case 1:d[l]=m&255, d[l+1]=m>>24&255,d[l+2]=m>>16&255,d[l+3]=m>>8&255}}}a.dirty=!0}};jb.copyChannel=function(a,b,c,d,e,f){var h;switch(f[1]){case 0:h=0;break;case 1:h=1;break;case 2:h=2;break;case 3:h=3}var p;switch(e[1]){case 0:p=0;break;case 1:p=1;break;case 2:p=2;break;case 3:p=3}e=b.buffer.data;f=a.buffer.data;if(null!=e&&null!=f){c=new Ye(b,c);d=new Ye(a,new gd(d.x,d.y,c.width,c.height));var g=b.buffer.format,k=a.buffer.format;b=b.buffer.premultiplied;for(var l=a.buffer.premultiplied,m,x,n,ma,q=0,t=0,r=d.height;t< r;){x=t++;m=c.offset+c.stride*x;x=d.offset+d.stride*x;for(var ka=0,y=d.width;ka>24&255)*E.unmult);w=E.__clamp[w];var u;u=Math.round((n>>16&255)*E.unmult);u=E.__clamp[u];var v=Math.round((n>> 8&255)*E.unmult);n=(w&255)<<24|(u&255)<<16|(E.__clamp[v]&255)<<8|n&255}switch(k){case 2:ma=(f[x+2]&255)<<24|(f[x+1]&255)<<16|(f[x]&255)<<8|f[x+3]&255;break;case 0:ma=(f[x]&255)<<24|(f[x+1]&255)<<16|(f[x+2]&255)<<8|f[x+3]&255;break;case 1:ma=(f[x+1]&255)<<24|(f[x+2]&255)<<16|(f[x+3]&255)<<8|f[x]&255}l&&0!=(ma&255)&&255!=(ma&255)&&(E.unmult=255/(ma&255),w=Math.round((ma>>24&255)*E.unmult),w=E.__clamp[w],u=Math.round((ma>>16&255)*E.unmult),u=E.__clamp[u],v=Math.round((ma>>8&255)*E.unmult),ma=(w&255)<< 24|(u&255)<<16|(E.__clamp[v]&255)<<8|ma&255);switch(p){case 0:q=n>>24&255;break;case 1:q=n>>16&255;break;case 2:q=n>>8&255;break;case 3:q=n&255}switch(h){case 0:ma=(q&255)<<24|(ma>>16&255)<<16|(ma>>8&255)<<8|ma&255;q;break;case 1:ma=(ma>>24&255)<<24|(q&255)<<16|(ma>>8&255)<<8|ma&255;q;break;case 2:ma=(ma>>24&255)<<24|(ma>>16&255)<<16|(q&255)<<8|ma&255;q;break;case 3:ma=(ma>>24&255)<<24|(ma>>16&255)<<16|(ma>>8&255)<<8|q&255,q}l&&(0==(ma&255)?0!=ma&&(ma=0):255!=(ma&255)&&(E.a16=E.__alpha16[ma&255], ma=((ma>>24&255)*E.a16>>16&255)<<24|((ma>>16&255)*E.a16>>16&255)<<16|((ma>>8&255)*E.a16>>16&255)<<8|ma&255));switch(k){case 2:f[x]=ma>>8&255;f[x+1]=ma>>16&255;f[x+2]=ma>>24&255;f[x+3]=ma&255;break;case 0:f[x]=ma>>24&255;f[x+1]=ma>>16&255;f[x+2]=ma>>8&255;f[x+3]=ma&255;break;case 1:f[x]=ma&255,f[x+1]=ma>>24&255,f[x+2]=ma>>16&255,f[x+3]=ma>>8&255}m+=4;x+=4}}a.dirty=!0}};jb.copyPixels=function(a,b,c,d,e,f,h){null==h&&(h=!1);var p=b.buffer.data,g=a.buffer.data;if(null!=p&&null!=g){c=new Ye(b,c);d=new Ye(a, new gd(d.x,d.y,c.width,c.height));var k=b.buffer.format,l=a.buffer.format,m=b.buffer.premultiplied,x=a.buffer.premultiplied,n;if(h&&b.get_transparent()){var ma,q,t,r,ka;if(null==e){var y=0;for(b=d.height;y>24&255)*E.unmult);u=E.__clamp[u];var v;v=Math.round((n>>16&255)*E.unmult);v=E.__clamp[v];var z=Math.round((n>>8&255)*E.unmult);n=(u&255)<<24|(v&255)<<16|(E.__clamp[z]&255)<<8|n&255}switch(l){case 2:ka=(g[f+2]&255)<<24|(g[f+1]&255)<<16|(g[f]&255)<<8|g[f+3]&255;break;case 0:ka=(g[f]&255)<<24|(g[f+1]&255)<<16|(g[f+2]&255)<<8|g[f+3]&255;break;case 1:ka=(g[f+1]&255)<<24|(g[f+2]&255)<<16|(g[f+3]&255)<<8|g[f]&255}x&& 0!=(ka&255)&&255!=(ka&255)&&(E.unmult=255/(ka&255),u=Math.round((ka>>24&255)*E.unmult),u=E.__clamp[u],v=Math.round((ka>>16&255)*E.unmult),v=E.__clamp[v],z=Math.round((ka>>8&255)*E.unmult),ka=(u&255)<<24|(v&255)<<16|(E.__clamp[z]&255)<<8|ka&255);ma=(n&255)/255;q=(ka&255)/255;t=1-ma;r=ma+q*t;0==r?ka=0:(u=Math.round(((n>>24&255)*ma+(ka>>24&255)*q*t)/r),u=E.__clamp[u],ka=(u&255)<<24|(ka>>16&255)<<16|(ka>>8&255)<<8|ka&255,u,u=Math.round(((n>>16&255)*ma+(ka>>16&255)*q*t)/r),u=E.__clamp[u],ka=(ka>>24&255)<< 24|(u&255)<<16|(ka>>8&255)<<8|ka&255,u,u=Math.round(((n>>8&255)*ma+(ka>>8&255)*q*t)/r),u=E.__clamp[u],ka=(ka>>24&255)<<24|(ka>>16&255)<<16|(u&255)<<8|ka&255,u,u=Math.round(255*r),u=E.__clamp[u],ka=(ka>>24&255)<<24|(ka>>16&255)<<16|(ka>>8&255)<<8|u&255,u);x&&(0==(ka&255)?0!=ka&&(ka=0):255!=(ka&255)&&(E.a16=E.__alpha16[ka&255],ka=((ka>>24&255)*E.a16>>16&255)<<24|((ka>>16&255)*E.a16>>16&255)<<16|((ka>>8&255)*E.a16>>16&255)<<8|ka&255));switch(l){case 2:g[f]=ka>>8&255;g[f+1]=ka>>16&255;g[f+2]=ka>>24&255; g[f+3]=ka&255;break;case 0:g[f]=ka>>24&255;g[f+1]=ka>>16&255;g[f+2]=ka>>8&255;g[f+3]=ka&255;break;case 1:g[f]=ka&255,g[f+1]=ka>>24&255,g[f+2]=ka>>16&255,g[f+3]=ka>>8&255}e+=4;f+=4}}}else{null==f&&(f=new Wc);b=e.buffer.data;h=e.buffer.format;w=e.buffer.premultiplied;u=new Ye(e,new gd(f.x,f.y,d.width,d.height));var A;v=0;for(z=u.height;v>24&255)*E.unmult),r=E.__clamp[r],ma=Math.round((n>>16&255)*E.unmult),ma=E.__clamp[ma],q=Math.round((n>>8&255)*E.unmult),n=(r&255)<<24|(ma&255)<<16|(E.__clamp[q]&255)<<8|n&255);switch(l){case 2:ka=(g[f+2]&255)<<24|(g[f+1]&255)<<16|(g[f]&255)<<8|g[f+3]&255;break;case 0:ka= (g[f]&255)<<24|(g[f+1]&255)<<16|(g[f+2]&255)<<8|g[f+3]&255;break;case 1:ka=(g[f+1]&255)<<24|(g[f+2]&255)<<16|(g[f+3]&255)<<8|g[f]&255}x&&0!=(ka&255)&&255!=(ka&255)&&(E.unmult=255/(ka&255),r=Math.round((ka>>24&255)*E.unmult),r=E.__clamp[r],ma=Math.round((ka>>16&255)*E.unmult),ma=E.__clamp[ma],q=Math.round((ka>>8&255)*E.unmult),ka=(r&255)<<24|(ma&255)<<16|(E.__clamp[q]&255)<<8|ka&255);switch(h){case 2:y=(b[A+2]&255)<<24|(b[A+1]&255)<<16|(b[A]&255)<<8|b[A+3]&255;break;case 0:y=(b[A]&255)<<24|(b[A+1]& 255)<<16|(b[A+2]&255)<<8|b[A+3]&255;break;case 1:y=(b[A+1]&255)<<24|(b[A+2]&255)<<16|(b[A+3]&255)<<8|b[A]&255}w&&0!=(y&255)&&255!=(y&255)&&(E.unmult=255/(y&255),r=Math.round((y>>24&255)*E.unmult),r=E.__clamp[r],ma=Math.round((y>>16&255)*E.unmult),ma=E.__clamp[ma],q=Math.round((y>>8&255)*E.unmult),y=(r&255)<<24|(ma&255)<<16|(E.__clamp[q]&255)<<8|y&255);ma=(y&255)/255;q=(ka&255)/255;t=1-ma;r=ma+q*t;if(0==r)ka=0;else{var D;D=Math.round(((n>>24&255)*ma+(ka>>24&255)*q*t)/r);D=E.__clamp[D];ka=(D&255)<< 24|(ka>>16&255)<<16|(ka>>8&255)<<8|ka&255;D;D=Math.round(((n>>16&255)*ma+(ka>>16&255)*q*t)/r);D=E.__clamp[D];ka=(ka>>24&255)<<24|(D&255)<<16|(ka>>8&255)<<8|ka&255;D;ma=Math.round(((n>>8&255)*ma+(ka>>8&255)*q*t)/r);ma=E.__clamp[ma];ka=(ka>>24&255)<<24|(ka>>16&255)<<16|(ma&255)<<8|ka&255;ma;r=Math.round(255*r);r=E.__clamp[r];ka=(ka>>24&255)<<24|(ka>>16&255)<<16|(ka>>8&255)<<8|r&255;r}x&&(0==(ka&255)?0!=ka&&(ka=0):255!=(ka&255)&&(E.a16=E.__alpha16[ka&255],ka=((ka>>24&255)*E.a16>>16&255)<<24|((ka>>16& 255)*E.a16>>16&255)<<16|((ka>>8&255)*E.a16>>16&255)<<8|ka&255));switch(l){case 2:g[f]=ka>>8&255;g[f+1]=ka>>16&255;g[f+2]=ka>>24&255;g[f+3]=ka&255;break;case 0:g[f]=ka>>24&255;g[f+1]=ka>>16&255;g[f+2]=ka>>8&255;g[f+3]=ka&255;break;case 1:g[f]=ka&255,g[f+1]=ka>>24&255,g[f+2]=ka>>16&255,g[f+3]=ka>>8&255}e+=4;f+=4}}}}else for(ka=0,y=d.height;ka>24&255)*E.unmult),w=E.__clamp[w],u=Math.round((n>>16&255)*E.unmult),u=E.__clamp[u],v=Math.round((n>>8&255)*E.unmult),n=(w&255)<<24|(u&255)<<16|(E.__clamp[v]&255)<<8|n&255);x&&(0==(n&255)?0!=n&&(n=0):255!=(n&255)&&(E.a16=E.__alpha16[n&255],n=((n>>24&255)*E.a16>>16&255)<<24|((n>>16&255)* E.a16>>16&255)<<16|((n>>8&255)*E.a16>>16&255)<<8|n&255));switch(l){case 2:g[f]=n>>8&255;g[f+1]=n>>16&255;g[f+2]=n>>24&255;g[f+3]=n&255;break;case 0:g[f]=n>>24&255;g[f+1]=n>>16&255;g[f+2]=n>>8&255;g[f+3]=n&255;break;case 1:g[f]=n&255,g[f+1]=n>>24&255,g[f+2]=n>>16&255,g[f+3]=n>>8&255}e+=4;f+=4}a.dirty=!0}};jb.fillRect=function(a,b,c,d){switch(d){case 1:c=(c>>16&255)<<24|(c>>8&255)<<16|(c&255)<<8|c>>24&255;break;case 2:c=(c>>8&255)<<24|(c>>16&255)<<16|(c>>24&255)<<8|c&255;break}a.get_transparent()|| (c=(c>>24&255)<<24|(c>>16&255)<<16|(c>>8&255)<<8|255,255);d=a.buffer.data;if(null!=d){var e=a.buffer.format,f=a.buffer.premultiplied;b=new Ye(a,b);for(var h,p=0,g=b.height;p>24&255)*E.a16>>16&255)<<24|((c>>16&255)*E.a16>>16&255)<<16|((c>>8&255)*E.a16>>16&255)<<8|c&255));switch(e){case 2:d[m]=c>>8&255;d[m+1]=c>>16&255;d[m+2]=c>>24&255;d[m+3]=c&255; break;case 0:d[m]=c>>24&255;d[m+1]=c>>16&255;d[m+2]=c>>8&255;d[m+3]=c&255;break;case 1:d[m]=c&255,d[m+1]=c>>24&255,d[m+2]=c>>16&255,d[m+3]=c>>8&255}}}a.dirty=!0}};jb.floodFill=function(a,b,c,d,e){var f=a.buffer.data;if(null!=f){1==e&&(d=(d&16777215)<<8|d>>24&255);e=a.buffer.format;var h=a.buffer.premultiplied,p,g=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);switch(e){case 2:p=(f[g+2]&255)<<24|(f[g+1]&255)<<16|(f[g]&255)<<8|f[g+3]&255;break;case 0:p=(f[g]&255)<<24|(f[g+1]&255)<<16|(f[g+2]&255)<< 8|f[g+3]&255;break;case 1:p=(f[g+1]&255)<<24|(f[g+2]&255)<<16|(f[g+3]&255)<<8|f[g]&255}if(h&&0!=(p&255)&&255!=(p&255)){E.unmult=255/(p&255);var g=Math.round((p>>24&255)*E.unmult),g=E.__clamp[g],k;k=Math.round((p>>16&255)*E.unmult);k=E.__clamp[k];var l=Math.round((p>>8&255)*E.unmult);p=(g&255)<<24|(k&255)<<16|(E.__clamp[l]&255)<<8|p&255}a.get_transparent()||(d=(d>>24&255)<<24|(d>>16&255)<<16|(d>>8&255)<<8|255,255,p=(p>>24&255)<<24|(p>>16&255)<<16|(p>>8&255)<<8|255,255);if(d!=p){g=[0,-1,1,0];k=[-1, 0,0,1];var l=-a.offsetX,m=-a.offsetY,x=l+a.width,n=m+a.height,q=[];q.push(b);q.push(c);for(var t,r,u,y;0w;)if(r=w++,t=b+g[r],r=c+k[r],!(t=x||r>=n)){u=4*(r*a.width+t);switch(e){case 2:y=(f[u+2]&255)<<24|(f[u+1]&255)<<16|(f[u]&255)<<8|f[u+3]&255;break;case 0:y=(f[u]&255)<<24|(f[u+1]&255)<<16|(f[u+2]&255)<<8|f[u+3]&255;break;case 1:y=(f[u+1]&255)<<24|(f[u+2]&255)<<16|(f[u+3]&255)<<8|f[u]&255}if(h&&0!=(y&255)&&255!=(y&255)){E.unmult=255/(y&255); var v;v=Math.round((y>>24&255)*E.unmult);v=E.__clamp[v];var z;z=Math.round((y>>16&255)*E.unmult);z=E.__clamp[z];var A=Math.round((y>>8&255)*E.unmult);y=(v&255)<<24|(z&255)<<16|(E.__clamp[A]&255)<<8|y&255}if(y==p){h&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(E.a16=E.__alpha16[d&255],d=((d>>24&255)*E.a16>>16&255)<<24|((d>>16&255)*E.a16>>16&255)<<16|((d>>8&255)*E.a16>>16&255)<<8|d&255));switch(e){case 2:f[u]=d>>8&255;f[u+1]=d>>16&255;f[u+2]=d>>24&255;f[u+3]=d&255;break;case 0:f[u]=d>>24&255;f[u+1]=d>>16& 255;f[u+2]=d>>8&255;f[u+3]=d&255;break;case 1:f[u]=d&255,f[u+1]=d>>24&255,f[u+2]=d>>16&255,f[u+3]=d>>8&255}q.push(t);q.push(r)}}}a.dirty=!0}}};jb.getColorBoundsRect=function(a,b,c,d,e){null==d&&(d=!0);var f=a.width+1,h=0,p=a.height+1,g=0;switch(e){case 1:c=(c>>16&255)<<24|(c>>8&255)<<16|(c&255)<<8|c>>24&255;b=(b>>16&255)<<24|(b>>8&255)<<16|(b&255)<<8|b>>24&255;break;case 2:c=(c>>8&255)<<24|(c>>16&255)<<16|(c>>24&255)<<8|c&255;b=(b>>8&255)<<24|(b>>16&255)<<16|(b>>24&255)<<8|b&255;break}a.get_transparent()|| (c=(c>>24&255)<<24|(c>>16&255)<<16|(c>>8&255)<<8|255,255,b=(b>>24&255)<<24|(b>>16&255)<<16|(b>>8&255)<<8|255,255);for(var k=0,l=a.width;kh&&(h=m);break}if(e)break}k=0;for(l=a.height;kg&&(g=m);break}if(e)break}d=h-f;c=g-p;0d&&(d=0);0>c&&(c=0);f==h&&(d=1);p==g&&(c=1);f>a.width&&(f=0);p>a.height&&(p=0);return new gd(f,p,d,c)};jb.getPixel=function(a,b,c,d){var e,f=a.buffer.data;b=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);switch(a.buffer.format){case 2:e=(f[b+2]&255)<<24|(f[b+ 1]&255)<<16|(f[b]&255)<<8|f[b+3]&255;break;case 0:e=(f[b]&255)<<24|(f[b+1]&255)<<16|(f[b+2]&255)<<8|f[b+3]&255;break;case 1:e=(f[b+1]&255)<<24|(f[b+2]&255)<<16|(f[b+3]&255)<<8|f[b]&255}a.buffer.premultiplied&&0!=(e&255)&&255!=(e&255)&&(E.unmult=255/(e&255),a=Math.round((e>>24&255)*E.unmult),a=E.__clamp[a],f=Math.round((e>>16&255)*E.unmult),f=E.__clamp[f],b=Math.round((e>>8&255)*E.unmult),e=(a&255)<<24|(f&255)<<16|(E.__clamp[b]&255)<<8|e&255);e=(e>>24&255)<<24|(e>>16&255)<<16|(e>>8&255)<<8|0;0;switch(d){case 1:return function(a){a= 0;return a=(e&255)<<24|(e>>24&255)<<16|(e>>16&255)<<8|e>>8&255}(this);case 2:return function(a){a=0;return a=(e>>8&255)<<24|(e>>16&255)<<16|(e>>24&255)<<8|e&255}(this);default:return e}};jb.getPixel32=function(a,b,c,d){var e,f=a.buffer.data;b=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);switch(a.buffer.format){case 2:e=(f[b+2]&255)<<24|(f[b+1]&255)<<16|(f[b]&255)<<8|f[b+3]&255;break;case 0:e=(f[b]&255)<<24|(f[b+1]&255)<<16|(f[b+2]&255)<<8|f[b+3]&255;break;case 1:e=(f[b+1]&255)<<24|(f[b+2]&255)<< 16|(f[b+3]&255)<<8|f[b]&255}a.buffer.premultiplied&&0!=(e&255)&&255!=(e&255)&&(E.unmult=255/(e&255),a=Math.round((e>>24&255)*E.unmult),a=E.__clamp[a],f=Math.round((e>>16&255)*E.unmult),f=E.__clamp[f],b=Math.round((e>>8&255)*E.unmult),e=(a&255)<<24|(f&255)<<16|(E.__clamp[b]&255)<<8|e&255);switch(d){case 1:return function(a){a=0;return a=(e&255)<<24|(e>>24&255)<<16|(e>>16&255)<<8|e>>8&255}(this);case 2:return function(a){a=0;return a=(e>>8&255)<<24|(e>>16&255)<<16|(e>>24&255)<<8|e&255}(this);default:return e}}; jb.getPixels=function(a,b,c){if(null==a.buffer.data)return null;var d=new ib(4*(b.width*b.height|0));d.position=0;var e=a.buffer.data,f=a.buffer.format,h=a.buffer.premultiplied;a=new Ye(a,b);for(var p,g,k=b=0,l=a.height;k>24&255)*E.unmult);n=E.__clamp[n];var q;q=Math.round((g>>16&255)*E.unmult);q=E.__clamp[q];var t=Math.round((g>>8&255)*E.unmult);g=(n&255)<<24|(q&255)<<16|(E.__clamp[t]&255)<<8|g&255}switch(c){case 1:n=0;g=n=(g&255)<<24|(g>>24&255)<<16|(g>>16&255)<<8|g>>8&255;break;case 2:n=0,g=n=(g>>8&255)<<24|(g>>16&255)<<16|(g>>24&255)<<8|g&255}d.__set(b++,g>>24&255);d.__set(b++,g>>16&255);d.__set(b++,g>>8&255);d.__set(b++,g&255); p+=4}}d.position=0;return d};jb.merge=function(a,b,c,d,e,f,h,p){if(null!=a.buffer.data&&null!=b.buffer.data){c=new Ye(b,c);d=new Ye(a,new gd(d.x,d.y,c.width,c.height));var g=b.buffer.data,k=a.buffer.data,l=b.buffer.format,m=a.buffer.format;b=b.buffer.premultiplied;for(var x=a.buffer.premultiplied,n,q,t,r,u=0,y=d.height;u>24&255)*E.unmult);z=E.__clamp[z];var A;A=Math.round((t>>16&255)*E.unmult);A=E.__clamp[A];var B=Math.round((t>>8&255)*E.unmult);t=(z&255)<<24|(A&255)<<16|(E.__clamp[B]&255)<<8|t&255}switch(m){case 2:r=(k[q+2]&255)<<24|(k[q+1]&255)<<16|(k[q]&255)<<8|k[q+3]&255;break;case 0:r=(k[q]&255)<<24|(k[q+ 1]&255)<<16|(k[q+2]&255)<<8|k[q+3]&255;break;case 1:r=(k[q+1]&255)<<24|(k[q+2]&255)<<16|(k[q+3]&255)<<8|k[q]&255}x&&0!=(r&255)&&255!=(r&255)&&(E.unmult=255/(r&255),z=Math.round((r>>24&255)*E.unmult),z=E.__clamp[z],A=Math.round((r>>16&255)*E.unmult),A=E.__clamp[A],B=Math.round((r>>8&255)*E.unmult),r=(z&255)<<24|(A&255)<<16|(E.__clamp[B]&255)<<8|r&255);z=((t>>24&255)*e+(r>>24&255)*(256-e))/256|0;r=(z&255)<<24|(r>>16&255)<<16|(r>>8&255)<<8|r&255;z;z=((t>>16&255)*f+(r>>16&255)*(256-f))/256|0;r=(r>>24& 255)<<24|(z&255)<<16|(r>>8&255)<<8|r&255;z;z=((t>>8&255)*h+(r>>8&255)*(256-h))/256|0;r=(r>>24&255)<<24|(r>>16&255)<<16|(z&255)<<8|r&255;z;z=((t&255)*p+(r&255)*(256-p))/256|0;r=(r>>24&255)<<24|(r>>16&255)<<16|(r>>8&255)<<8|z&255;z;x&&(0==(r&255)?0!=r&&(r=0):255!=(r&255)&&(E.a16=E.__alpha16[r&255],r=((r>>24&255)*E.a16>>16&255)<<24|((r>>16&255)*E.a16>>16&255)<<16|((r>>8&255)*E.a16>>16&255)<<8|r&255));switch(m){case 2:k[q]=r>>8&255;k[q+1]=r>>16&255;k[q+2]=r>>24&255;k[q+3]=r&255;break;case 0:k[q]=r>>24& 255;k[q+1]=r>>16&255;k[q+2]=r>>8&255;k[q+3]=r&255;break;case 1:k[q]=r&255,k[q+1]=r>>24&255,k[q+2]=r>>16&255,k[q+3]=r>>8&255}n+=4;q+=4}}a.dirty=!0}};jb.multiplyAlpha=function(a){var b=a.buffer.data;if(null!=b&&a.buffer.transparent){for(var c=a.buffer.format,d=b.length/4|0,e,f=0;f>24&255)*E.a16>>16&255)<<24|((e>>16&255)*E.a16>>16&255)<<16|((e>>8&255)*E.a16>>16&255)<<8|e&255);switch(c){case 2:b[h]=e>>8&255;b[h+1]=e>>16&255;b[h+2]=e>>24&255;b[h+3]=e&255;break;case 0:b[h]=e>>24&255;b[h+1]=e>>16&255;b[h+2]=e>>8&255;b[h+3]=e&255;break;case 1:b[h]=e&255,b[h+1]=e>>24&255,b[h+2]=e>>16&255,b[h+3]=e>>8&255}}a.buffer.premultiplied=!0;a.dirty=!0}};jb.resize=function(a,b,c){var d=a.buffer; if(d.width!=b||d.height!=c){var e=b*c*4,e=null!=e?new nc(e):null,e=new qg(e,b,c),f=a.width,h=a.height;a=a.get_data();for(var p=e.data,g,k,l,m,x,n,q,r,t,u=0;u> 16&255)<<24|(d>>8&255)<<16|(d&255)<<8|d>>24&255;break;case 2:d=(d>>8&255)<<24|(d>>16&255)<<16|(d>>24&255)<<8|d&255;break}e=0;var f=a.buffer.data,h=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);switch(a.buffer.format){case 2:e=(f[h+2]&255)<<24|(f[h+1]&255)<<16|(f[h]&255)<<8|f[h+3]&255;break;case 0:e=(f[h]&255)<<24|(f[h+1]&255)<<16|(f[h+2]&255)<<8|f[h+3]&255;break;case 1:e=(f[h+1]&255)<<24|(f[h+2]&255)<<16|(f[h+3]&255)<<8|f[h]&255}if(a.buffer.premultiplied&&0!=(e&255)&&255!=(e&255)){E.unmult=255/(e& 255);var f=Math.round((e>>24&255)*E.unmult),f=E.__clamp[f],h=Math.round((e>>16&255)*E.unmult),h=E.__clamp[h],p=Math.round((e>>8&255)*E.unmult);e=(f&255)<<24|(h&255)<<16|(E.__clamp[p]&255)<<8|e&255}e&=255;d=(d>>24&255)<<24|(d>>16&255)<<16|(d>>8&255)<<8|e&255;e;e=a.buffer.data;b=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);a.buffer.premultiplied&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(E.a16=E.__alpha16[d&255],d=((d>>24&255)*E.a16>>16&255)<<24|((d>>16&255)*E.a16>>16&255)<<16|((d>>8&255)*E.a16>>16& 255)<<8|d&255));switch(a.buffer.format){case 2:e[b]=d>>8&255;e[b+1]=d>>16&255;e[b+2]=d>>24&255;e[b+3]=d&255;break;case 0:e[b]=d>>24&255;e[b+1]=d>>16&255;e[b+2]=d>>8&255;e[b+3]=d&255;break;case 1:e[b]=d&255,e[b+1]=d>>24&255,e[b+2]=d>>16&255,e[b+3]=d>>8&255}a.dirty=!0};jb.setPixel32=function(a,b,c,d,e){switch(e){case 1:d=(d>>16&255)<<24|(d>>8&255)<<16|(d&255)<<8|d>>24&255;break;case 2:d=(d>>8&255)<<24|(d>>16&255)<<16|(d>>24&255)<<8|d&255;break}a.get_transparent()||(d=(d>>24&255)<<24|(d>>16&255)<<16| (d>>8&255)<<8|255,255);e=a.buffer.data;b=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);a.buffer.premultiplied&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(E.a16=E.__alpha16[d&255],d=((d>>24&255)*E.a16>>16&255)<<24|((d>>16&255)*E.a16>>16&255)<<16|((d>>8&255)*E.a16>>16&255)<<8|d&255));switch(a.buffer.format){case 2:e[b]=d>>8&255;e[b+1]=d>>16&255;e[b+2]=d>>24&255;e[b+3]=d&255;break;case 0:e[b]=d>>24&255;e[b+1]=d>>16&255;e[b+2]=d>>8&255;e[b+3]=d&255;break;case 1:e[b]=d&255,e[b+1]=d>>24&255,e[b+2]=d>>16&255, e[b+3]=d>>8&255}a.dirty=!0};jb.setPixels=function(a,b,c,d){if(null!=a.buffer.data){var e=a.buffer.data,f=a.buffer.format,h=a.buffer.premultiplied;b=new Ye(a,b);for(var p,g,k=a.get_transparent(),l=0,m=b.height;l>16&255)<<24|(g>>8&255)<<16|(g&255)<<8|g>>24&255;break;case 2:r=0;g=r=(g>>8&255)<<24|(g>>16&255)<<16|(g>>24&255)<<8|g&255;break}k||(g=(g>>24&255)<<24|(g>>16&255)<<16| (g>>8&255)<<8|255,255);q=p+4*q;h&&(0==(g&255)?0!=g&&(g=0):255!=(g&255)&&(E.a16=E.__alpha16[g&255],g=((g>>24&255)*E.a16>>16&255)<<24|((g>>16&255)*E.a16>>16&255)<<16|((g>>8&255)*E.a16>>16&255)<<8|g&255));switch(f){case 2:e[q]=g>>8&255;e[q+1]=g>>16&255;e[q+2]=g>>24&255;e[q+3]=g&255;break;case 0:e[q]=g>>24&255;e[q+1]=g>>16&255;e[q+2]=g>>8&255;e[q+3]=g&255;break;case 1:e[q]=g&255,e[q+1]=g>>24&255,e[q+2]=g>>16&255,e[q+3]=g>>8&255}}}a.dirty=!0}};jb.unmultiplyAlpha=function(a){var b=a.buffer.data;if(null!= b){for(var c=a.buffer.format,d=b.length/4|0,e,f=0;f>24&255)*E.unmult),p=E.__clamp[p],g;g=Math.round((e>>16&255)*E.unmult);g=E.__clamp[g];var k=Math.round((e>>8&255)*E.unmult);e=(p&255)<< 24|(g&255)<<16|(E.__clamp[k]&255)<<8|e&255}h*=4;switch(c){case 2:b[h]=e>>8&255;b[h+1]=e>>16&255;b[h+2]=e>>24&255;b[h+3]=e&255;break;case 0:b[h]=e>>24&255;b[h+1]=e>>16&255;b[h+2]=e>>8&255;b[h+3]=e&255;break;case 1:b[h]=e&255,b[h+1]=e>>24&255,b[h+2]=e>>16&255,b[h+3]=e>>8&255}}a.buffer.premultiplied=!1;a.dirty=!0}};var Ye=function(a,b){this.image=a;null==b?this.rect=a.get_rect():(0>b.x&&(b.x=0),0>b.y&&(b.y=0),b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),0> b.width&&(b.width=0),0>b.height&&(b.height=0),this.rect=b);this.stride=a.buffer.get_stride();this.x=Math.ceil(this.rect.x);this.y=Math.ceil(this.rect.y);this.width=Math.floor(this.rect.width);this.height=Math.floor(this.rect.height);this.offset=this.stride*(this.y+a.offsetY)+4*(this.x+a.offsetX)};g["lime.graphics.utils._ImageDataUtil.ImageDataView"]=Ye;Ye.__name__=["lime","graphics","utils","_ImageDataUtil","ImageDataView"];Ye.prototype={x:null,y:null,height:null,width:null,image:null,offset:null, rect:null,stride:null,clip:function(a,b,c,d){this.rect.__contract(a,b,c,d);this.x=Math.ceil(this.rect.x);this.y=Math.ceil(this.rect.y);this.width=Math.floor(this.rect.width);this.height=Math.floor(this.rect.height);this.offset=this.stride*(this.y+this.image.offsetY)+4*(this.x+this.image.offsetX)},row:function(a){return this.offset+this.stride*a},__class__:Ye};var wb={};g["lime.math._ColorMatrix.ColorMatrix_Impl_"]=wb;wb.__name__=["lime","math","_ColorMatrix","ColorMatrix_Impl_"];wb.__properties__= {set_redOffset:"set_redOffset",get_redOffset:"get_redOffset",set_redMultiplier:"set_redMultiplier",get_redMultiplier:"get_redMultiplier",set_greenOffset:"set_greenOffset",get_greenOffset:"get_greenOffset",set_greenMultiplier:"set_greenMultiplier",get_greenMultiplier:"get_greenMultiplier",set_color:"set_color",get_color:"get_color",set_blueOffset:"set_blueOffset",get_blueOffset:"get_blueOffset",set_blueMultiplier:"set_blueMultiplier",get_blueMultiplier:"get_blueMultiplier",set_alphaOffset:"set_alphaOffset", get_alphaOffset:"get_alphaOffset",set_alphaMultiplier:"set_alphaMultiplier",get_alphaMultiplier:"get_alphaMultiplier"};wb._new=function(a){if(null==a||20!=a.length)a=wb.__identity,a=null!=a?new Float32Array(a):null;return a};wb.clone=function(a){return wb._new(null!=a?new Float32Array(a):null)};wb.concat=function(a,b){a[0]+=b[0];a[6]+=b[6];a[12]+=b[12];a[18]+=b[18]};wb.copyFrom=function(a,b){a.set(b)};wb.identity=function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=0;a[6]=1;a[7]=0;a[8]=0;a[9]=0;a[10]= 0;a[11]=0;a[12]=1;a[13]=0;a[14]=0;a[15]=0;a[16]=0;a[17]=0;a[18]=1;a[19]=0};wb.getAlphaTable=function(a){var b;b=new nc(256);var c=a[18];a=255*a[19];for(var d,e=0;256>e;){var f=e++;d=Math.floor(f*c+a);255d&&(d=0);b[f]=d}return b};wb.getBlueTable=function(a){var b;b=new nc(256);var c=a[12];a=255*a[14];for(var d,e=0;256>e;){var f=e++;d=Math.floor(f*c+a);255d&&(d=0);b[f]=d}return b};wb.getGreenTable=function(a){var b;b=new nc(256);var c=a[6];a=255*a[9];for(var d,e=0;256>e;){var f= e++;d=Math.floor(f*c+a);255d&&(d=0);b[f]=d}return b};wb.getRedTable=function(a){var b;b=new nc(256);var c=a[0];a=255*a[4];for(var d,e=0;256>e;){var f=e++;d=Math.floor(f*c+a);255d&&(d=0);b[f]=d}return b};wb.__toFlashColorTransform=function(a){return null};wb.get_alphaMultiplier=function(a){return a[18]};wb.set_alphaMultiplier=function(a,b){return a[18]=b};wb.get_alphaOffset=function(a){return 255*a[19]};wb.set_alphaOffset=function(a,b){return a[19]=b/255};wb.get_blueMultiplier= function(a){return a[12]};wb.set_blueMultiplier=function(a,b){return a[12]=b};wb.get_blueOffset=function(a){return 255*a[14]};wb.set_blueOffset=function(a,b){return a[14]=b/255};wb.get_color=function(a){return(255*a[4]|0)<<16|(255*a[9]|0)<<8|255*a[14]|0};wb.set_color=function(a,b){a[4]=(b>>16&255)/255;a[9]=(b>>8&255)/255;a[14]=(b&255)/255;a[0]=0;a[6]=0;a[12]=0;return wb.get_color(a)};wb.get_greenMultiplier=function(a){return a[6]};wb.set_greenMultiplier=function(a,b){return a[6]=b};wb.get_greenOffset= function(a){return 255*a[9]};wb.set_greenOffset=function(a,b){return a[9]=b/255};wb.get_redMultiplier=function(a){return a[0]};wb.set_redMultiplier=function(a,b){return a[0]=b};wb.get_redOffset=function(a){return 255*a[4]};wb.set_redOffset=function(a,b){return a[4]=b/255};wb.get=function(a,b){return a[b]};wb.set=function(a,b,c){return a[b]=c};var tg=function(a,b,c,d,e,f){null==f&&(f=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=1);this.a=a;this.b=b;this.c=c;this.d=d;this.tx= e;this.ty=f};g["lime.math.Matrix3"]=tg;tg.__name__=["lime","math","Matrix3"];tg.prototype={a:null,b:null,c:null,d:null,tx:null,ty:null,clone:function(){return new tg(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a*a.a+this.b*a.c;this.b=this.a*a.b+this.b*a.d;this.a=b;b=this.c*a.a+this.d*a.c;this.d=this.c*a.b+this.d*a.d;this.c=b;b=this.tx*a.a+this.ty*a.c+a.tx;this.ty=this.tx*a.b+this.ty*a.d+a.ty;this.tx=b},copyColumnFrom:function(a,b){if(2e;){var f=e++;oa.set(d,f,oa.get(a,f)+(oa.get(b,f)-oa.get(a,f))*c)}return d}; oa.interpolateTo=function(a,b,c){for(var d=0;16>d;){var e=d++,f=a[e]+(oa.get(b,e)-a[e])*c;a[e]=f}};oa.invert=function(a){var b=oa.get_determinant(a),c=1E-11=this.x&&b>=this.y&&a=a.width||0>=a.height?a.x>this.x&&a.y>this.y&&a.get_right()=this.x&&a.y>=this.y&&a.get_right()<=this.get_right()&&a.get_bottom()<=this.get_bottom()},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},equals:function(a){return null!= a&&this.x==a.x&&this.y==a.y&&this.width==a.width&&this.height==a.height},inflate:function(a,b){this.x-=a;this.width+=2*a;this.y-=b;this.height+=2*b},inflatePoint:function(a){this.inflate(a.x,a.y)},intersection:function(a){var b;b=this.xa.get_right()?a.get_right():this.get_right();if(c<=b)return new gd;var d;d=this.ya.get_bottom()?a.get_bottom():this.get_bottom();return a<=d?new gd:new gd(b,d,c-b,a-d)},intersects:function(a){var b; b=this.xa.get_right()?a.get_right():this.get_right())<=b)return!1;b=this.ya.get_bottom()?a.get_bottom():this.get_bottom())>b},isEmpty:function(){return 0>=this.width||0>=this.height},offset:function(a,b){this.x+=a;this.y+=b},offsetPoint:function(a){this.x+=a.x;this.y+=a.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(a,b,c,d){this.x=a;this.y=b;this.width=c;this.height=d},transform:function(a){var b= a.a*this.x+a.c*this.y,c=b,d=a.b*this.x+a.d*this.y,e=d,f=a.a*(this.x+this.width)+a.c*this.y,h=a.b*(this.x+this.width)+a.d*this.y;fc&&(c=f);h>e&&(e=h);f=a.a*(this.x+this.width)+a.c*(this.y+this.height);h=a.b*(this.x+this.width)+a.d*(this.y+this.height);fc&&(c=f);h>e&&(e=h);f=a.a*this.x+a.c*(this.y+this.height);h=a.b*this.x+a.d*(this.y+this.height);fc&&(c=f);h>e&&(e=h);return new gd(b+a.tx,d+a.ty,c-b,e-d)},union:function(a){if(0==this.width|| 0==this.height)return a.clone();if(0==a.width||0==a.height)return this.clone();var b;b=this.x>a.x?a.x:this.x;var c;c=this.get_right()a.y?a.y:this.y;a=this.get_bottom()a+c&&(this.width=a+c-this.x),this.get_bottom()>b+d&&(this.height=b+d-this.y)}, __expand:function(a,b,c,d){if(0==this.width&&0==this.height)this.x=a,this.y=b,this.width=c,this.height=d;else{var e=this.get_right(),f=this.get_bottom();this.x>a&&(this.x=a);this.y>b&&(this.y=b);e>24&255)&&255!=(a>>24&255)&&(wc.a16=E.__alpha16[a>>24&255])};wc.readUInt8=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);switch(d){case 2:a=(b[c+1]&255)<<24|(b[c]&255)<<16|(b[c+3]&255)<<8|b[c+2]&255;break;case 0:a=(b[c+1]&255)<<24|(b[c+2]&255)<<16|(b[c+3]&255)<<8|b[c]&255;break;case 1:a=(b[c+2]&255)<<24|(b[c+3]&255)<<16|(b[c]&255)<<8|b[c+1]&255}e&&0!=(a>>24&255)&&255!=(a>>24&255)&&(wc.unmult=255/(a>>24&255))};wc.set=function(a,b,c,d,e){};wc.unmultiplyAlpha= function(a){0!=(a>>24&255)&&255!=(a>>24&255)&&(wc.unmult=255/(a>>24&255))};wc.writeUInt8=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);e&&(0==(a>>24&255)?a=0:255!=(a>>24&255)&&(wc.a16=E.__alpha16[a>>24&255],a=(a>>24&255)<<24|((a>>16&255)*wc.a16>>16&255)<<16|((a>>8&255)*wc.a16>>16&255)<<8|(a&255)*wc.a16>>16&255));switch(d){case 2:b[c]=a&255;b[c+1]=a>>8&255;b[c+2]=a>>16&255;b[c+3]=a>>24&255;break;case 0:b[c]=a>>16&255;b[c+1]=a>>8&255;b[c+2]=a&255;b[c+3]=a>>24&255;break;case 1:b[c]=a>>24&255,b[c+ 1]=a>>16&255,b[c+2]=a>>8&255,b[c+3]=a&255}};wc.__fromBGRA=function(a){return(a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>24&255};wc.__fromRGBA=function(a){return(a&255)<<24|(a>>24&255)<<16|(a>>16&255)<<8|a>>8&255};wc.get_a=function(a){return a>>24&255};wc.set_a=function(a,b){return b};wc.get_b=function(a){return a&255};wc.set_b=function(a,b){return b};wc.get_g=function(a){return a>>8&255};wc.set_g=function(a,b){return b};wc.get_r=function(a){return a>>16&255};wc.set_r=function(a,b){return b};var xc= {};g["lime.math.color._BGRA.BGRA_Impl_"]=xc;xc.__name__=["lime","math","color","_BGRA","BGRA_Impl_"];xc.__properties__={set_r:"set_r",get_r:"get_r",set_g:"set_g",get_g:"get_g",set_b:"set_b",get_b:"get_b",set_a:"set_a",get_a:"get_a"};xc.a16=null;xc.unmult=null;xc._new=function(a){null==a&&(a=0);return a};xc.create=function(a,b,c,d){return(a&255)<<24|(b&255)<<16|(c&255)<<8|d&255};xc.multiplyAlpha=function(a){0!=(a&255)&&255!=(a&255)&&(xc.a16=E.__alpha16[a&255])};xc.readUInt8=function(a,b,c,d,e){null== e&&(e=!1);null==d&&(d=0);switch(d){case 2:a=(b[c]&255)<<24|(b[c+1]&255)<<16|(b[c+2]&255)<<8|b[c+3]&255;break;case 0:a=(b[c+2]&255)<<24|(b[c+1]&255)<<16|(b[c]&255)<<8|b[c+3]&255;break;case 1:a=(b[c+3]&255)<<24|(b[c+2]&255)<<16|(b[c+1]&255)<<8|b[c]&255}e&&0!=(a&255)&&255!=(a&255)&&(xc.unmult=255/(a&255))};xc.set=function(a,b,c,d,e){};xc.unmultiplyAlpha=function(a){0!=(a&255)&&255!=(a&255)&&(xc.unmult=255/(a&255))};xc.writeUInt8=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);e&&(0==(a&255)?a=0:255!= (a&255)&&(xc.a16=E.__alpha16[a&255],a=((a>>24&255)*xc.a16>>16&255)<<24|((a>>16&255)*xc.a16>>16&255)<<16|((a>>8&255)*xc.a16>>16&255)<<8|a&255));switch(d){case 2:b[c]=a>>24&255;b[c+1]=a>>16&255;b[c+2]=a>>8&255;b[c+3]=a&255;break;case 0:b[c]=a>>8&255;b[c+1]=a>>16&255;b[c+2]=a>>24&255;b[c+3]=a&255;break;case 1:b[c]=a&255,b[c+1]=a>>8&255,b[c+2]=a>>16&255,b[c+3]=a>>24&255}};xc.__fromARGB=function(a){return(a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>24&255};xc.__fromRGBA=function(a){return(a>>8&255)<<24| (a>>16&255)<<16|(a>>24&255)<<8|a&255};xc.get_a=function(a){return a&255};xc.set_a=function(a,b){return b};xc.get_b=function(a){return a>>24&255};xc.set_b=function(a,b){return b};xc.get_g=function(a){return a>>16&255};xc.set_g=function(a,b){return b};xc.get_r=function(a){return a>>8&255};xc.set_r=function(a,b){return b};var E={};g["lime.math.color._RGBA.RGBA_Impl_"]=E;E.__name__=["lime","math","color","_RGBA","RGBA_Impl_"];E.__properties__={set_r:"set_r",get_r:"get_r",set_g:"set_g",get_g:"get_g",set_b:"set_b", get_b:"get_b",set_a:"set_a",get_a:"get_a"};E.__alpha16=null;E.__clamp=null;E.a16=null;E.unmult=null;E._new=function(a){null==a&&(a=0);return a};E.create=function(a,b,c,d){return(a&255)<<24|(b&255)<<16|(c&255)<<8|d&255};E.multiplyAlpha=function(a){0!=(a&255)&&255!=(a&255)&&(E.a16=E.__alpha16[a&255])};E.readUInt8=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);switch(d){case 2:a=(b[c+2]&255)<<24|(b[c+1]&255)<<16|(b[c]&255)<<8|b[c+3]&255;break;case 0:a=(b[c]&255)<<24|(b[c+1]&255)<<16|(b[c+2]&255)<< 8|b[c+3]&255;break;case 1:a=(b[c+1]&255)<<24|(b[c+2]&255)<<16|(b[c+3]&255)<<8|b[c]&255}e&&0!=(a&255)&&255!=(a&255)&&(E.unmult=255/(a&255),Math.round((a>>24&255)*E.unmult),Math.round((a>>16&255)*E.unmult),Math.round((a>>8&255)*E.unmult))};E.set=function(a,b,c,d,e){};E.unmultiplyAlpha=function(a){0!=(a&255)&&255!=(a&255)&&(E.unmult=255/(a&255),Math.round((a>>24&255)*E.unmult),Math.round((a>>16&255)*E.unmult),Math.round((a>>8&255)*E.unmult))};E.writeUInt8=function(a,b,c,d,e){null==e&&(e=!1);null==d&& (d=0);e&&(0==(a&255)?0!=a&&(a=0):255!=(a&255)&&(E.a16=E.__alpha16[a&255],a=((a>>24&255)*E.a16>>16&255)<<24|((a>>16&255)*E.a16>>16&255)<<16|((a>>8&255)*E.a16>>16&255)<<8|a&255));switch(d){case 2:b[c]=a>>8&255;b[c+1]=a>>16&255;b[c+2]=a>>24&255;b[c+3]=a&255;break;case 0:b[c]=a>>24&255;b[c+1]=a>>16&255;b[c+2]=a>>8&255;b[c+3]=a&255;break;case 1:b[c]=a&255,b[c+1]=a>>24&255,b[c+2]=a>>16&255,b[c+3]=a>>8&255}};E.__fromARGB=function(a){return(a>>16&255)<<24|(a>>8&255)<<16|(a&255)<<8|a>>24&255};E.__fromBGRA= function(a){return(a>>8&255)<<24|(a>>16&255)<<16|(a>>24&255)<<8|a&255};E.get_a=function(a){return a&255};E.set_a=function(a,b){return b};E.get_b=function(a){return a>>8&255};E.set_b=function(a,b){return b};E.get_g=function(a){return a>>16&255};E.set_g=function(a,b){return b};E.get_r=function(a){return a>>24&255};E.set_r=function(a,b){return b};var Xh=function(a){this.onSecurityError=new dn;this.onProgress=new Pq;this.onOpen=new en;this.onIOError=new dn;this.onHTTPStatus=new Qq;this.onComplete=new en; this.bytesTotal=this.bytesLoaded=0;this.set_dataFormat(qe.TEXT);null!=a&&this.load(a)};g["lime.net.URLLoader"]=Xh;Xh.__name__=["lime","net","URLLoader"];Xh.prototype={bytesLoaded:null,bytesTotal:null,data:null,dataFormat:null,onComplete:null,onHTTPStatus:null,onIOError:null,onOpen:null,onProgress:null,onSecurityError:null,close:function(){},getData:function(){return null},load:function(a){this.requestUrl(a.url,a.method,a.data,a.formatRequestHeaders())},registerEvents:function(a){var b=this,c=this; "undefined"!=typeof XMLHttpRequestProgressEvent&&a.addEventListener("progress",k(this,this.__onProgress),!1);a.onreadystatechange=function(){if(4==a.readyState){var d;try{d=a.status}catch(e){G.lastException=e,e instanceof q&&(e=e.val),d=null}void 0==d&&(d=null);null!=d&&c.onHTTPStatus.dispatch(b,d);null!=d&&200<=d&&400>d?c.__onData(a.response):null==d?c.onIOError.dispatch(b,"Failed to connect or resolve host"):12029==d?c.onIOError.dispatch(b,"Failed to connect to host"):12007==d?c.onIOError.dispatch(b, "Unknown host"):0==d?(c.onIOError.dispatch(b,"Unable to make request (may be blocked due to cross-domain permissions)"),c.onSecurityError.dispatch(b,"Unable to make request (may be blocked due to cross-domain permissions)")):c.onIOError.dispatch(b,"Http Error #"+a.status)}}},requestUrl:function(a,b,c,d){var e=new XMLHttpRequest;this.registerEvents(e);var f="";if(m.__instanceof(c,ib))switch(this.dataFormat[1]){case 0:f=c.data.buffer;break;default:f=c.readUTFBytes(c.length)}else if(m.__instanceof(c, ar))for(var h=0,p=r.fields(c);h=a.split("?").length;e.open("GET",a+(k?"?":"&")+y.string(f),!0);f=""}else e.open(m.__cast(b,String),a,!0)}catch(l){G.lastException=l;l instanceof q&&(l=l.val);this.onIOError.dispatch(this,l.toString());return}switch(this.dataFormat[1]){case 0:e.responseType="arraybuffer"}for(a=0;ab};Wb.greaterThanPointer=function(a,b){return Wb.get(a)>Wb.get(b)};Wb.greaterThanOrEqual=function(a,b){return Wb.get(a)>=b};Wb.greaterThanOrEqualPointer=function(a,b){return Wb.get(a)>= Wb.get(b)};Wb.lessThan=function(a,b){return Wb.get(a)b};K.gte=function(a,b){return a>=b};K.lt=function(a,b){return athis.allocated?this.___resizeBuffer(this.allocated=y["int"](Math.max(0, 2*this.allocated))):0b||0>c)throw new q("Read error - Out of bounds");0==c&&(c=this.length-this.position);var d=b+c;a.length< d&&(a.allocated2*d&&a.___resizeBuffer(a.allocated=d),a.length=d,d);a.byteView.set(this.byteView.subarray(this.position,this.position+c),b);a.position=b;this.position+=c;a.position+c>a.length&&a.set_length(a.position+c)},readDouble:function(){var a=this.data.getFloat64(this.position,this.littleEndian);this.position+=8;return a},readFloat:function(){var a=this.data.getFloat32(this.position,this.littleEndian);this.position+= 4;return a},readInt:function(){var a=this.data.getInt32(this.position,this.littleEndian);this.position+=4;return a},readMultiByte:function(a,b){return this.readUTFBytes(a)},readShort:function(){var a=this.data.getInt16(this.position,this.littleEndian);this.position+=2;return a},readUnsignedByte:function(){return this.data.getUint8(this.position++)},readUnsignedInt:function(){var a=this.data.getUint32(this.position,this.littleEndian);this.position+=4;return a},readUnsignedShort:function(){var a=this.data.getUint16(this.position, this.littleEndian);this.position+=2;return a},readUTF:function(){var a=this.readUnsignedShort();return this.readUTFBytes(a)},readUTFBytes:function(a){var b="";for(a=this.position+a;this.positiond){if(0==d)break;b+=String.fromCharCode(d)}else if(224>d)b+=String.fromCharCode((d&63)<<6|c.getUint8(this.position++)&127);else if(240>d)var e=c.getUint8(this.position++),b=b+String.fromCharCode((d&31)<<12|(e&127)<<6|c.getUint8(this.position++)&127); else var e=c.getUint8(this.position++),f=c.getUint8(this.position++),b=b+String.fromCharCode((d&15)<<18|(e&127)<<12|f<<6&127|c.getUint8(this.position++)&127)}return b},toString:function(){var a=this.position;this.position=0;var b=this.readUTFBytes(this.length);this.position=a;return b},uncompress:function(a){null},write_uncheck:function(a){},writeBoolean:function(a){this.writeByte(a?1:0)},writeByte:function(a){var b=this.position+1;this.length2*b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setInt8(this.position,a);this.position+=1},writeBytes:function(a,b,c){null==c&&(c=0);null==b&&(b=0);if(0!=a.length){if(Fa.gt(0,b)||Fa.gt(0,c))throw new q("Write error - Out of bounds");0==c&&(c=a.length);var d=this.position+c;this.length2*d&&this.___resizeBuffer(this.allocated= d),this.length=d,d);this.byteView.set(a.byteView.subarray(b,b+c),this.position);this.position+=c}},writeDouble:function(a){var b=this.position+8;this.length2*b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setFloat64(this.position,a,this.littleEndian);this.position+=8},writeFile:function(a){},writeFloat:function(a){var b=this.position+4;this.length2*b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setFloat32(this.position,a,this.littleEndian);this.position+=4},writeInt:function(a){var b=this.position+4;this.length2*b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setInt32(this.position,a,this.littleEndian); this.position+=4},writeShort:function(a){var b=this.position+2;this.length2*b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setInt16(this.position,a,this.littleEndian);this.position+=2},writeUnsignedInt:function(a){var b=this.position+4;this.length2*b&&this.___resizeBuffer(this.allocated= b),this.length=b,b);this.data.setUint32(this.position,a,this.littleEndian);this.position+=4},writeUnsignedShort:function(a){var b=this.position+2;this.length2*b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setUint16(this.position,a,this.littleEndian);this.position+=2},writeUTF:function(a){this.writeUnsignedShort(this.__getUTFBytesCount(a));this.writeUTFBytes(a)},writeUTFBytes:function(a){for(var b= 0,c=a.length;b=d?this.writeByte(d):(2047>=d?this.writeByte(192|d>>6):(65535>=d?this.writeByte(224|d>>12):(this.writeByte(240|d>>18),this.writeByte(128|d>>12&63)),this.writeByte(128|d>>6&63)),this.writeByte(128|d&63))}},__fromBytes:function(a){this.byteView=new nc(a.b.bufferValue);this.set_length(this.byteView.length);this.allocated=this.length},__get:function(a){return this.data.getInt8(a)},__getBuffer:function(){return this.data.buffer},__getUTFBytesCount:function(a){for(var b= 0,c=0,d=a.length;c=e?b+1:2047>=e?b+2:65535>=e?b+3:b+4;return b},___resizeBuffer:function(a){var b=this.byteView,c=new nc(a);null!=b&&(b.length<=a?c.set(b):c.set(b.subarray(0,a)));this.byteView=c;this.data=new Ns(c.buffer)},__set:function(a,b){this.data.setUint8(a,b)},get_bytesAvailable:function(){return this.length-this.position},get_endian:function(){return this.littleEndian?"littleEndian":"bigEndian"},set_endian:function(a){this.littleEndian="littleEndian"== a;return a},set_length:function(a){this.allocated2*a&&this.___resizeBuffer(this.allocated=a);return this.length=a},__class__:ib,__properties__:{set_length:"set_length",set_endian:"set_endian",get_endian:"get_endian",get_bytesAvailable:"get_bytesAvailable"}};var me=g["lime.utils.CompressionAlgorithm"]={__ename__:["lime","utils","CompressionAlgorithm"],__constructs__:["DEFLATE","ZLIB","LZMA","GZIP"]};me.DEFLATE= ["DEFLATE",0];me.DEFLATE.toString=D;me.DEFLATE.__enum__=me;me.ZLIB=["ZLIB",1];me.ZLIB.toString=D;me.ZLIB.__enum__=me;me.LZMA=["LZMA",2];me.LZMA.toString=D;me.LZMA.__enum__=me;me.GZIP=["GZIP",3];me.GZIP.toString=D;me.GZIP.__enum__=me;var Lj={};g["lime.utils._Float32Array.Float32Array_Impl_"]=Lj;Lj.__name__=["lime","utils","_Float32Array","Float32Array_Impl_"];Lj.__set=function(a,b,c){return a[b]=c};Lj.__get=function(a,b){return a[b]};Lj.fromBytes=function(a,b,c){null==b&&(b=0);return null==b?new Float32Array(a.b.bufferValue): null==c?new Float32Array(a.b.bufferValue,b):new Float32Array(a.b.bufferValue,b,c)};Lj.toBytes=function(a){return new ic(new nc(a.buffer))};Lj.toString=function(a){return null!=a?"Float32Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var kn=function(){};g["lime.utils.GLUtils"]=kn;kn.__name__=["lime","utils","GLUtils"];kn.compileShader=function(a,b){var c=l.context.createShader(b);l.context.shaderSource(c,a);l.context.compileShader(c);if(0==l.context.getShaderParameter(c,35713))switch(b){case 35633:throw new q("Error compiling vertex shader"); case 35632:throw new q("Error compiling fragment shader");default:throw new q("Error compiling unknown shader type");}return c};kn.createProgram=function(a,b){var c=kn.compileShader(a,35633),d=kn.compileShader(b,35632),e=l.context.createProgram();l.context.attachShader(e,c);l.context.attachShader(e,d);l.context.linkProgram(e);if(0==l.context.getProgramParameter(e,35714))throw new q("Unable to initialize the shader program.");return e};var ns=function(){};g["lime.utils.IDataInput"]=ns;ns.__name__= ["lime","utils","IDataInput"];ns.prototype={bytesAvailable:null,readBoolean:null,readByte:null,readBytes:null,readDouble:null,readFloat:null,readInt:null,readShort:null,readUnsignedByte:null,readUnsignedInt:null,readUnsignedShort:null,readUTF:null,readUTFBytes:null,get_bytesAvailable:null,get_endian:null,set_endian:null,__class__:ns,__properties__:{set_endian:"set_endian",get_endian:"get_endian",get_bytesAvailable:"get_bytesAvailable"}};var os=function(){};g["lime.utils.IMemoryRange"]=os;os.__name__= ["lime","utils","IMemoryRange"];os.prototype={getByteBuffer:null,getStart:null,getLength:null,__class__:os};var Mj={};g["lime.utils._Int16Array.Int16Array_Impl_"]=Mj;Mj.__name__=["lime","utils","_Int16Array","Int16Array_Impl_"];Mj.__set=function(a,b,c){return a[b]=c};Mj.__get=function(a,b){return a[b]};Mj.fromBytes=function(a,b,c){null==b&&(b=0);return null==b?new Int16Array(a.b.bufferValue):null==c?new Int16Array(a.b.bufferValue,b):new Int16Array(a.b.bufferValue,b,c)};Mj.toBytes=function(a){return new ic(new nc(a.buffer))}; Mj.toString=function(a){return null!=a?"Int16Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var Nj={};g["lime.utils._Int32Array.Int32Array_Impl_"]=Nj;Nj.__name__=["lime","utils","_Int32Array","Int32Array_Impl_"];Nj.__set=function(a,b,c){return a[b]=c};Nj.__get=function(a,b){return a[b]};Nj.fromBytes=function(a,b,c){null==b&&(b=0);return null==b?new Int32Array(a.b.bufferValue):null==c?new Int32Array(a.b.bufferValue,b):new Int32Array(a.b.bufferValue,b,c)};Nj.toBytes=function(a){return new ic(new nc(a.buffer))}; Nj.toString=function(a){return null!=a?"Int32Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var ps=function(){};g["lime.utils.LZMA"]=ps;ps.__name__=["lime","utils","LZMA"];ps.decode=function(a){return null};ps.encode=function(a){return null};var Oj={};g["lime.utils._UInt16Array.UInt16Array_Impl_"]=Oj;Oj.__name__=["lime","utils","_UInt16Array","UInt16Array_Impl_"];Oj.__set=function(a,b,c){return a[b]=c};Oj.__get=function(a,b){return a[b]};Oj.fromBytes=function(a,b,c){null==b&&(b=0); return null==b?new Uint16Array(a.b.bufferValue):null==c?new Uint16Array(a.b.bufferValue,b):new Uint16Array(a.b.bufferValue,b,c)};Oj.toBytes=function(a){return new ic(new nc(a.buffer))};Oj.toString=function(a){return null!=a?"UInt16Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var Pj={};g["lime.utils._UInt32Array.UInt32Array_Impl_"]=Pj;Pj.__name__=["lime","utils","_UInt32Array","UInt32Array_Impl_"];Pj.__set=function(a,b,c){return a[b]=c};Pj.__get=function(a,b){return a[b]};Pj.fromBytes= function(a,b,c){null==b&&(b=0);return null==b?new Uint32Array(a.b.bufferValue):null==c?new Uint32Array(a.b.bufferValue,b):new Uint32Array(a.b.bufferValue,b,c)};Pj.toBytes=function(a){return new ic(new nc(a.buffer))};Pj.toString=function(a){return null!=a?"UInt32Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var Qj={};g["lime.utils._UInt8Array.UInt8Array_Impl_"]=Qj;Qj.__name__=["lime","utils","_UInt8Array","UInt8Array_Impl_"];Qj.__set=function(a,b,c){return a[b]=c};Qj.__get=function(a, b){return a[b]};Qj.fromBytes=function(a,b,c){return null==b?new nc(a.b.bufferValue):null==c?new nc(a.b.bufferValue,b):new nc(a.b.bufferValue,b,c)};Qj.toBytes=function(a){return new ic(new nc(a.buffer))};Qj.toString=function(a){return null!=a?"UInt8Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var Rj=function(){};g["motion.actuators.IGenericActuator"]=Rj;Rj.__name__=["motion","actuators","IGenericActuator"];Rj.prototype={autoVisible:null,delay:null,ease:null,onComplete:null,onRepeat:null, onUpdate:null,reflect:null,repeat:null,reverse:null,smartRotation:null,snapping:null,onPause:null,onResume:null,apply:null,move:null,pause:null,resume:null,stop:null,__class__:Rj};var Ih=function(a,b,c){this._autoVisible=!0;this._delay=0;this._reflect=!1;this._repeat=0;this.special=this._snapping=this._smartRotation=this._reverse=!1;this.target=a;this.properties=c;this.duration=b;this._ease=S.defaultEase};g["motion.actuators.GenericActuator"]=Ih;Ih.__name__=["motion","actuators","GenericActuator"]; Ih.__interfaces__=[Rj];Ih.prototype={duration:null,id:null,properties:null,target:null,_autoVisible:null,_delay:null,_ease:null,_onComplete:null,_onCompleteParams:null,_onRepeat:null,_onRepeatParams:null,_onUpdate:null,_onUpdateParams:null,_onResume:null,_onResumeParams:null,_onPause:null,_onPauseParams:null,_reflect:null,_repeat:null,_reverse:null,_smartRotation:null,_snapping:null,special:null,apply:function(){for(var a=0,b=r.fields(this.properties);a=b.timeOffset&&b.update(a),c++):(Rb.actuators.splice(c,1),--Rb.actuatorsLength)};Rb.__super__=Ih;Rb.prototype=t(Ih.prototype,{setField_openfl_geom_Transform:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:r.setProperty(a,b,c)},setField_motion_actuators_TransformActuator_T:function(a, b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:r.setProperty(a,b,c)},setField_motion_actuators_MotionPathActuator_T:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:r.setProperty(a,b,c)},setField_openfl_display_DisplayObject:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:r.setProperty(a,b,c)},setField_motion_actuators_SimpleActuator_T:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:r.setProperty(a,b,c)},timeOffset:null,active:null,cacheVisible:null, detailsLength:null,initialized:null,paused:null,pauseTime:null,propertyDetails:null,sendChange:null,setVisible:null,startTime:null,toggleVisible:null,autoVisible:function(a){null==a&&(a=!0);this._autoVisible=a;a||(this.toggleVisible=!1,this.setVisible&&this.setField_motion_actuators_SimpleActuator_T(this.target,"visible",this.cacheVisible));return this},delay:function(a){this._delay=a;this.timeOffset=this.startTime+a;return this},getField:function(a,b){var c=null;return c=Object.prototype.hasOwnProperty.call(a, b)?r.field(a,b):r.getProperty(a,b)},initialize:function(){for(var a,b=0,c=r.fields(this.properties);be&&(e+=360),e=b.start+e*c),this._snapping?this.setProperty(b,Math.round(e)):b.isField?b.target[b.propertyName]=e:r.setProperty(b.target,b.propertyName,e)}else for(c=this._ease.calculate(d),f=0,h=this.detailsLength;fe.strength)a-=e.strength,b=e.end;else return e.calculate(b,a/e.strength)}return 0},get_end:function(){return 0b){var c;.5>b?(c=1,b*=2):(c=1-2*(b-.5),b=1);this.endColorTransform.redMultiplier=c;this.endColorTransform.greenMultiplier=c;this.endColorTransform.blueMultiplier=c;this.endColorTransform.redOffset=b*(a>>16&255);this.endColorTransform.greenOffset= b*(a>>8&255);this.endColorTransform.blueOffset=b*(a&255)}else this.endColorTransform.redMultiplier=0,this.endColorTransform.greenMultiplier=0,this.endColorTransform.blueMultiplier=0,this.endColorTransform.redOffset=a>>16&255,this.endColorTransform.greenOffset=a>>8&255,this.endColorTransform.blueOffset=a&255;a="redMultiplier greenMultiplier blueMultiplier redOffset greenOffset blueOffset".split(" ");Object.prototype.hasOwnProperty.call(this.properties,"colorAlpha")?(this.endColorTransform.alphaMultiplier= this.properties.colorAlpha,a.push("alphaMultiplier")):this.endColorTransform.alphaMultiplier=this.getField(this.target,"alpha");c=this.getField(this.target,"transform");c=this.getField(c,"colorTransform");this.tweenColorTransform=new zf;for(var d,b=0;b(a/=.5)?.5*a*a*(((this.s*=1.525)+1)*a-this.s):.5*((a-=2)*a*(((this.s*=1.525)+1)*a+this.s)+2)},ease:function(a,b,c,d){return 1>(a/=d/2)?c/2*a*a*(((this.s*=1.525)+1)*a-this.s)+b:c/2*((a-=2)*a*(((this.s*=1.525)+1)* a+this.s)+2)+b},__class__:un};var vn=function(a){this.s=a};g["motion.easing.BackEaseOut"]=vn;vn.__name__=["motion","easing","BackEaseOut"];vn.__interfaces__=[jc];vn.prototype={s:null,calculate:function(a){return--a*a*((this.s+1)*a+this.s)+1},ease:function(a,b,c,d){return c*((a=a/d-1)*a*((this.s+1)*a+this.s)+1)+b},__class__:vn};var ld=function(){};g["motion.easing.Bounce"]=ld;ld.__name__=["motion","easing","Bounce"];ld.__properties__={get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"}; ld.get_easeIn=function(){return new Tk};ld.get_easeInOut=function(){return new wn};ld.get_easeOut=function(){return new Le};var Tk=function(){};g["motion.easing.BounceEaseIn"]=Tk;Tk.__name__=["motion","easing","BounceEaseIn"];Tk.__interfaces__=[jc];Tk._ease=function(a,b,c,d){return c-Le._ease(d-a,0,c,d)+b};Tk.prototype={calculate:function(a){return 1-Le._ease(1-a,0,1,1)},ease:function(a,b,c,d){return c-Le._ease(d-a,0,c,d)+b},__class__:Tk};var wn=function(){};g["motion.easing.BounceEaseInOut"]=wn; wn.__name__=["motion","easing","BounceEaseInOut"];wn.__interfaces__=[jc];wn.prototype={calculate:function(a){return.5>a?.5*(1-Le._ease(1-2*a,0,1,1)):.5*Le._ease(2*a-1,0,1,1)+.5},ease:function(a,b,c,d){return a(a/=d)?7.5625*c*a*a+b:.7272727272727273> a?c*(7.5625*(a-=.5454545454545454)*a+.75)+b:.9090909090909091>a?c*(7.5625*(a-=.8181818181818182)*a+.9375)+b:c*(7.5625*(a-=.9545454545454546)*a+.984375)+b};Le.prototype={calculate:function(a){return Le._ease(a,0,1,1)},ease:function(a,b,c,d){return Le._ease(a,b,c,d)},__class__:Le};var xn=function(){};g["motion.easing.Cubic"]=xn;xn.__name__=["motion","easing","Cubic"];xn.__properties__={get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"};xn.get_easeIn=function(){return new yn}; xn.get_easeInOut=function(){return new zn};xn.get_easeOut=function(){return new An};var yn=function(){};g["motion.easing.CubicEaseIn"]=yn;yn.__name__=["motion","easing","CubicEaseIn"];yn.__interfaces__=[jc];yn.prototype={calculate:function(a){return a*a*a},ease:function(a,b,c,d){return c*(a/=d)*a*a+b},__class__:yn};var zn=function(){};g["motion.easing.CubicEaseInOut"]=zn;zn.__name__=["motion","easing","CubicEaseInOut"];zn.__interfaces__=[jc];zn.prototype={calculate:function(a){return 1>(a/=.5)?.5* a*a*a:.5*((a-=2)*a*a+2)},ease:function(a,b,c,d){return 1>(a/=d/2)?c/2*a*a*a+b:c/2*((a-=2)*a*a+2)+b},__class__:zn};var An=function(){};g["motion.easing.CubicEaseOut"]=An;An.__name__=["motion","easing","CubicEaseOut"];An.__interfaces__=[jc];An.prototype={calculate:function(a){return--a*a*a+1},ease:function(a,b,c,d){return c*((a=a/d-1)*a*a+1)+b},__class__:An};var Ze=function(){};g["motion.easing.Elastic"]=Ze;Ze.__name__=["motion","easing","Elastic"];Ze.__properties__={get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut", get_easeIn:"get_easeIn"};Ze.get_easeIn=function(){return new Bn(.1,.4)};Ze.get_easeInOut=function(){return new Cn(.1,.4)};Ze.get_easeOut=function(){return new Dn(.1,.4)};var Bn=function(a,b){this.a=a;this.p=b};g["motion.easing.ElasticEaseIn"]=Bn;Bn.__name__=["motion","easing","ElasticEaseIn"];Bn.__interfaces__=[jc];Bn.prototype={a:null,p:null,calculate:function(a){if(0==a)return 0;if(1==a)return 1;var b;1>this.a?(this.a=1,b=this.p/4):b=this.p/(2*Math.PI)*Math.asin(1/this.a);return-(this.a*Math.pow(2, 10*--a)*Math.sin(2*(a-b)*Math.PI/this.p))},ease:function(a,b,c,d){if(0==a)return b;if(1==(a/=d))return b+c;this.aa?-.5*Math.pow(2,10*--a)*Math.sin(2*(a-.11249999999999999)*Math.PI/.44999999999999996):Math.pow(2,-10*--a)*Math.sin(2*(a-.11249999999999999)*Math.PI/.44999999999999996)*.5+1},ease:function(a,b,c,d){if(0==a)return b;if(2==(a/=d/2))return b+c;var e;this.aa?-.5*this.a*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/this.p)+b:this.a*Math.pow(2,-10*--a)*Math.sin(2*(a*d-e)*Math.PI/this.p)*.5+c+b},__class__:Cn};var Dn= function(a,b){this.a=a;this.p=b};g["motion.easing.ElasticEaseOut"]=Dn;Dn.__name__=["motion","easing","ElasticEaseOut"];Dn.__interfaces__=[jc];Dn.prototype={a:null,p:null,calculate:function(a){if(0==a)return 0;if(1==a)return 1;var b;1>this.a?(this.a=1,b=this.p/4):b=this.p/(2*Math.PI)*Math.asin(1/this.a);return this.a*Math.pow(2,-10*a)*Math.sin(2*(a-b)*Math.PI/this.p)+1},ease:function(a,b,c,d){if(0==a)return b;if(1==(a/=d))return b+c;var e;this.a(a/=.5)?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*--a))},ease:function(a,b,c,d){return 0==a?b:a==d?b+c:1>(a/=d/2)?c/2*Math.pow(2,10*(a-1))+b:c/2*(2-Math.pow(2,-10*--a))+b},__class__:mn};var rs=function(){};g["motion.easing.Linear"]=rs;rs.__name__=["motion","easing","Linear"];rs.__properties__={get_easeNone:"get_easeNone"};rs.get_easeNone=function(){return new En};var En=function(){};g["motion.easing.LinearEaseNone"]=En;En.__name__=["motion", "easing","LinearEaseNone"];En.__interfaces__=[jc];En.prototype={calculate:function(a){return a},ease:function(a,b,c,d){return c*a/d+b},__class__:En};var $c=function(){};g["motion.easing.Quad"]=$c;$c.__name__=["motion","easing","Quad"];$c.__properties__={get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"};$c.get_easeIn=function(){return new Fn};$c.get_easeInOut=function(){return new Gn};$c.get_easeOut=function(){return new Hn};var Fn=function(){};g["motion.easing.QuadEaseIn"]= Fn;Fn.__name__=["motion","easing","QuadEaseIn"];Fn.__interfaces__=[jc];Fn.prototype={calculate:function(a){return a*a},ease:function(a,b,c,d){return c*(a/=d)*a+b},__class__:Fn};var Gn=function(){};g["motion.easing.QuadEaseInOut"]=Gn;Gn.__name__=["motion","easing","QuadEaseInOut"];Gn.__interfaces__=[jc];Gn.prototype={calculate:function(a){return 1>(a*=2)?.5*a*a:-.5*((a-1)*(a-3)-1)},ease:function(a,b,c,d){return 1>(a/=d/2)?c/2*a*a+b:-c/2*((a-1)*(a-3)-1)+b},__class__:Gn};var Hn=function(){};g["motion.easing.QuadEaseOut"]= Hn;Hn.__name__=["motion","easing","QuadEaseOut"];Hn.__interfaces__=[jc];Hn.prototype={calculate:function(a){return-a*(a-2)},ease:function(a,b,c,d){return-c*(a/=d)*(a-2)+b},__class__:Hn};var Uk=function(){};g["motion.easing.Quart"]=Uk;Uk.__name__=["motion","easing","Quart"];Uk.__properties__={get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"};Uk.get_easeIn=function(){return new In};Uk.get_easeInOut=function(){return new Jn};Uk.get_easeOut=function(){return new Kn};var In= function(){};g["motion.easing.QuartEaseIn"]=In;In.__name__=["motion","easing","QuartEaseIn"];In.__interfaces__=[jc];In.prototype={calculate:function(a){return a*a*a*a},ease:function(a,b,c,d){return c*(a/=d)*a*a*a+b},__class__:In};var Jn=function(){};g["motion.easing.QuartEaseInOut"]=Jn;Jn.__name__=["motion","easing","QuartEaseInOut"];Jn.__interfaces__=[jc];Jn.prototype={calculate:function(a){return 1>(a*=2)?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2)},ease:function(a,b,c,d){return 1>(a/=d/2)?c/2*a*a*a*a+b:-c/ 2*((a-=2)*a*a*a-2)+b},__class__:Jn};var Kn=function(){};g["motion.easing.QuartEaseOut"]=Kn;Kn.__name__=["motion","easing","QuartEaseOut"];Kn.__interfaces__=[jc];Kn.prototype={calculate:function(a){return-(--a*a*a*a-1)},ease:function(a,b,c,d){return-c*((a=a/d-1)*a*a*a-1)+b},__class__:Kn};var Ln=function(){};g["motion.easing.Quint"]=Ln;Ln.__name__=["motion","easing","Quint"];Ln.__properties__={get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"};Ln.get_easeIn=function(){return new Mn}; Ln.get_easeInOut=function(){return new Nn};Ln.get_easeOut=function(){return new On};var Mn=function(){};g["motion.easing.QuintEaseIn"]=Mn;Mn.__name__=["motion","easing","QuintEaseIn"];Mn.__interfaces__=[jc];Mn.prototype={calculate:function(a){return a*a*a*a*a},ease:function(a,b,c,d){return c*(a/=d)*a*a*a*a+b},__class__:Mn};var Nn=function(){};g["motion.easing.QuintEaseInOut"]=Nn;Nn.__name__=["motion","easing","QuintEaseInOut"];Nn.__interfaces__=[jc];Nn.prototype={calculate:function(a){return 1>(a*= 2)?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2)},ease:function(a,b,c,d){return 1>(a/=d/2)?c/2*a*a*a*a*a+b:c/2*((a-=2)*a*a*a*a+2)+b},__class__:Nn};var On=function(){};g["motion.easing.QuintEaseOut"]=On;On.__name__=["motion","easing","QuintEaseOut"];On.__interfaces__=[jc];On.prototype={calculate:function(a){return--a*a*a*a*a+1},ease:function(a,b,c,d){return c*((a=a/d-1)*a*a*a*a+1)+b},__class__:On};var zd=function(){};g["motion.easing.Sine"]=zd;zd.__name__=["motion","easing","Sine"];zd.__properties__={get_easeOut:"get_easeOut", get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"};zd.get_easeIn=function(){return new Pn};zd.get_easeInOut=function(){return new Qn};zd.get_easeOut=function(){return new Rn};var Pn=function(){};g["motion.easing.SineEaseIn"]=Pn;Pn.__name__=["motion","easing","SineEaseIn"];Pn.__interfaces__=[jc];Pn.prototype={calculate:function(a){return 1-Math.cos(Math.PI/2*a)},ease:function(a,b,c,d){return-c*Math.cos(a/d*(Math.PI/2))+c+b},__class__:Pn};var Qn=function(){};g["motion.easing.SineEaseInOut"]=Qn; Qn.__name__=["motion","easing","SineEaseInOut"];Qn.__interfaces__=[jc];Qn.prototype={calculate:function(a){return-(Math.cos(Math.PI*a)-1)/2},ease:function(a,b,c,d){return-c/2*(Math.cos(Math.PI*a/d)-1)+b},__class__:Qn};var Rn=function(){};g["motion.easing.SineEaseOut"]=Rn;Rn.__name__=["motion","easing","SineEaseOut"];Rn.__interfaces__=[jc];Rn.prototype={calculate:function(a){return Math.sin(Math.PI/2*a)},ease:function(a,b,c,d){return c*Math.sin(a/d*(Math.PI/2))+b},__class__:Rn};var gr=function(){}; g["openfl.IAssetCache"]=gr;gr.__name__=["openfl","IAssetCache"];gr.prototype={get_enabled:null,set_enabled:null,clear:null,getBitmapData:null,getFont:null,getSound:null,hasBitmapData:null,hasFont:null,hasSound:null,removeBitmapData:null,removeFont:null,removeSound:null,setBitmapData:null,setFont:null,setSound:null,__class__:gr,__properties__:{set_enabled:"set_enabled",get_enabled:"get_enabled"}};var Sn=function(){this.__enabled=!0;this.bitmapData=new fa;this.font=new fa;this.sound=new fa};g["openfl.AssetCache"]= Sn;Sn.__name__=["openfl","AssetCache"];Sn.__interfaces__=[gr];Sn.prototype={bitmapData:null,font:null,sound:null,__enabled:null,clear:function(a){if(null==a)this.bitmapData=new fa,this.font=new fa,this.sound=new fa;else{for(var b=this.bitmapData.keys();b.hasNext();){var c=b.next();W.startsWith(c,a)&&this.bitmapData.remove(c)}for(b=this.font.keys();b.hasNext();)c=b.next(),W.startsWith(c,a)&&this.font.remove(c);for(b=this.sound.keys();b.hasNext();)c=b.next(),W.startsWith(c,a)&&this.sound.remove(c)}}, getBitmapData:function(a){return this.bitmapData.get(a)},getFont:function(a){return this.font.get(a)},getSound:function(a){return this.sound.get(a)},hasBitmapData:function(a){return this.bitmapData.exists(a)},hasFont:function(a){return this.font.exists(a)},hasSound:function(a){return this.sound.exists(a)},removeBitmapData:function(a){return this.bitmapData.remove(a)},removeFont:function(a){return this.font.remove(a)},removeSound:function(a){return this.sound.remove(a)},setBitmapData:function(a,b){this.bitmapData.set(a, b)},setFont:function(a,b){this.font.set(a,b)},setSound:function(a,b){this.sound.set(a,b)},get_enabled:function(){return this.__enabled},set_enabled:function(a){return this.__enabled=a},__class__:Sn,__properties__:{set_enabled:"set_enabled",get_enabled:"get_enabled"}};var za=function(){};g["openfl.Assets"]=za;za.__name__=["openfl","Assets"];za.addEventListener=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);ea.onChange.has(za.LimeAssets_onChange)||ea.onChange.add(za.LimeAssets_onChange); za.dispatcher.addEventListener(a,b,c,d,e)};za.dispatchEvent=function(a){return za.dispatcher.dispatchEvent(a)};za.exists=function(a,b){return ea.exists(a,b)};za.getBitmapData=function(a,b){null==b&&(b=!0);if(b&&za.cache.get_enabled()&&za.cache.hasBitmapData(a)){var c=za.cache.getBitmapData(a);if(za.isValidBitmapData(c))return c}c=ea.getImage(a,!1);return null!=c?(c=qb.fromImage(c),b&&za.cache.get_enabled()&&za.cache.setBitmapData(a,c),c):null};za.getBytes=function(a){return ea.getBytes(a)};za.getFont= function(a,b){null==b&&(b=!0);if(b&&za.cache.get_enabled()&&za.cache.hasFont(a))return za.cache.getFont(a);var c=ea.getFont(a,!1);return null!=c?(c=Md.__fromLimeFont(c),b&&za.cache.get_enabled()&&za.cache.setFont(a,c),c):new Md};za.getLibrary=function(a){return ea.getLibrary(a)};za.getMovieClip=function(a){var b=a.substring(0,a.indexOf(":")),c=a.indexOf(":")+1;a=X.substr(a,c,null);b=za.getLibrary(b);if(null!=b&&b.exists(a,"MOVIE_CLIP")&&b.isLocal(a,"MOVIE_CLIP"))return b.getMovieClip(a);null;return null}; za.getMusic=function(a,b){var c=ea.getPath(a);return null!=c?new xe(new mc(c)):null};za.getPath=function(a){return ea.getPath(a)};za.getSound=function(a,b){null==b&&(b=!0);if(b&&za.cache.get_enabled()&&za.cache.hasSound(a)){var c=za.cache.getSound(a);if(za.isValidSound(c))return c}c=ea.getPath(a);return null!=c?new xe(new mc(c)):null};za.getText=function(a){return ea.getText(a)};za.hasEventListener=function(a){return za.dispatcher.hasEventListener(a)};za.isLocal=function(a,b,c){null==c&&(c=!0);if(c&& za.cache.get_enabled()&&(("IMAGE"==b||null==b)&&za.cache.hasBitmapData(a)||("FONT"==b||null==b)&&za.cache.hasFont(a)||("SOUND"==b||"MUSIC"==b||null==b)&&za.cache.hasSound(a)))return!0;c=a.substring(0,a.indexOf(":"));var d=a.indexOf(":")+1;a=X.substr(a,d,null);c=za.getLibrary(c);return null!=c?c.isLocal(a,b):!1};za.isValidBitmapData=function(a){return null!=a&&null!=a.image};za.isValidSound=function(a){return!0};za.list=function(a){return ea.list(a)};za.loadBitmapData=function(a,b,c){null==b&&(b=!0); null==b&&(b=!0);var d=new Td;null!=c&&(d.future.onComplete(c),d.future.onError(function(a){c(null)}));if(b&&za.cache.get_enabled()&&za.cache.hasBitmapData(a)){var e=za.cache.getBitmapData(a);if(za.isValidBitmapData(e))return d.complete(e),d.future}ea.loadImage(a,!1).onComplete(function(c){null!=c?(c=qb.fromImage(c),b&&za.cache.get_enabled()&&za.cache.setBitmapData(a,c),d.complete(c)):d.error('[Assets] Could not load Image "'+a+'"')}).onError(k(d,d.error)).onProgress(k(d,d.progress));return d.future}; za.loadBytes=function(a,b){var c=ea.loadBytes(a);null!=b&&(c.onComplete(b),c.onError(function(a){b(null)}));return c};za.loadFont=function(a,b,c){null==b&&(b=!0);null==b&&(b=!0);var d=new Td;null!=c&&(d.future.onComplete(c),d.future.onError(function(a){c(null)}));if(b&&za.cache.get_enabled()&&za.cache.hasFont(a))return d.complete(za.cache.getFont(a)),d.future;ea.loadFont(a).onComplete(function(c){c=Md.__fromLimeFont(c);b&&za.cache.get_enabled()&&za.cache.setFont(a,c);d.complete(c)}).onError(k(d,d.error)).onProgress(k(d, d.progress));return d.future};za.loadLibrary=function(a,b){var c=ea.loadLibrary(a);null!=b&&(c.onComplete(b),c.onError(function(a){b(null)}));return c};za.loadMusic=function(a,b,c){null==b&&(b=!0);null==b&&(b=!0);return new lc(function(){return za.getMusic(a,b)})};za.loadMovieClip=function(a,b){var c=new Td;null!=b&&(c.future.onComplete(b),c.future.onError(function(a){b(null)}));var d=a.substring(0,a.indexOf(":")),e;e=a.indexOf(":")+1;e=X.substr(a,e,null);var f=za.getLibrary(d);null!=f?f.exists(e, "MOVIE_CLIP")?c.completeWith(f.loadMovieClip(e)):c.error('[Assets] There is no MovieClip asset with an ID of "'+a+'"'):c.error('[Assets] There is no asset library named "'+d+'"');return c.future};za.loadSound=function(a,b,c){null==b&&(b=!0);null==b&&(b=!0);return new lc(function(){return za.getSound(a,b)})};za.loadText=function(a,b){var c=ea.loadText(a);null!=b&&(c.onComplete(b),c.onError(function(a){b(null)}));return c};za.registerLibrary=function(a,b){ea.registerLibrary(a,b)};za.removeEventListener= function(a,b,c){null==c&&(c=!1);za.dispatcher.removeEventListener(a,b,c)};za.resolveClass=function(a){return Za.resolveClass(a)};za.resolveEnum=function(a){return Za.resolveEnum(a)};za.unloadLibrary=function(a){ea.unloadLibrary(a)};za.LimeAssets_onChange=function(){za.dispatchEvent(new J(J.CHANGE))};var hr=function(){this.onChange=new Pc};g["openfl.AssetLibrary"]=hr;hr.__name__=["openfl","AssetLibrary"];hr.__super__=Oi;hr.prototype=t(Oi.prototype,{getMovieClip:function(a){return null},loadMovieClip:function(a){var b= this;return new lc(function(){return b.getMovieClip(a)})},__class__:hr});var Ig=function(){Qa.call(this);this.applicationDomain=Ah.currentDomain;this.bytesTotal=this.bytesLoaded=0;this.childAllowsParent=!0;this.parameters={}};g["openfl.display.LoaderInfo"]=Ig;Ig.__name__=["openfl","display","LoaderInfo"];Ig.create=function(a){var b=new Ig;b.uncaughtErrorEvents=new Tn;null!=a?b.loader=a:b.url=Ig.__rootURL;return b};Ig.__super__=Qa;Ig.prototype=t(Qa.prototype,{applicationDomain:null,bytes:null,bytesLoaded:null, bytesTotal:null,childAllowsParent:null,content:null,contentType:null,frameRate:null,height:null,loader:null,loaderURL:null,parameters:null,parentAllowsChild:null,sameDomain:null,sharedEvents:null,uncaughtErrorEvents:null,url:null,width:null,__class__:Ig});var Ah=function(a){this.parentDomain=null!=a?a:Ah.currentDomain};g["openfl.system.ApplicationDomain"]=Ah;Ah.__name__=["openfl","system","ApplicationDomain"];Ah.prototype={parentDomain:null,getDefinition:function(a){return Za.resolveClass(a)},hasDefinition:function(a){return null!= Za.resolveClass(a)},__class__:Ah};var Tn=function(a){Qa.call(this,a)};g["openfl.events.UncaughtErrorEvents"]=Tn;Tn.__name__=["openfl","events","UncaughtErrorEvents"];Tn.__super__=Qa;Tn.prototype=t(Qa.prototype,{__class__:Tn});var pa=function(a,b,c,d,e,f){null==f&&(f=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=1);this.a=a;this.b=b;this.c=c;this.d=d;this.tx=e;this.ty=f};g["openfl.geom.Matrix"]=pa;pa.__name__=["openfl","geom","Matrix"];pa.prototype={a:null,b:null,c:null, d:null,tx:null,ty:null,__array:null,clone:function(){return new pa(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a*a.a+this.b*a.c;this.b=this.a*a.b+this.b*a.d;this.a=b;b=this.c*a.a+this.d*a.c;this.d=this.c*a.b+this.d*a.d;this.c=b;b=this.tx*a.a+this.ty*a.c+a.tx;this.ty=this.tx*a.b+this.ty*a.d+a.ty;this.tx=b},copyColumnFrom:function(a,b){if(2>16&255;this.greenOffset=a>>8&255;this.blueOffset=a&255;this.blueMultiplier=this.greenMultiplier=this.redMultiplier=0;return this.get_color()},__toLimeColorMatrix:function(){var a= [this.redMultiplier,0,0,0,this.redOffset/255,0,this.greenMultiplier,0,0,this.greenOffset/255,0,0,this.blueMultiplier,0,this.blueOffset/255,0,0,0,this.alphaMultiplier,this.alphaOffset/255];return null!=a?new Float32Array(a):null},__class__:zf,__properties__:{set_color:"set_color",get_color:"get_color"}};var ha=function(){};g["openfl.Lib"]=ha;ha.__name__=["openfl","Lib"];ha.application=null;ha.as=function(a,b){return m.__instanceof(a,b)?a:null};ha.attach=function(a){return new we};ha.embed=pl.openfl.embed= function(a,b,c,d,e){pc.embed(a,b,c,d,e)};ha.getTimer=function(){return pc.getTimer()};ha.getURL=function(a,b){null==b&&(b="_blank");window.open(a.url,b)};ha.notImplemented=function(a){ha.__sentWarnings.exists(a)||(ha.__sentWarnings.set(a,!0),null)};ha.preventDefaultTouchMove=function(){window.document.addEventListener("touchmove",function(a){a.preventDefault()},!1)};ha.trace=function(a){tq.trace(a,{fileName:"Lib.hx",lineNumber:144,className:"openfl.Lib",methodName:"trace"})};var kb=function(){};g["openfl.Memory"]= kb;kb.__name__=["openfl","Memory"];kb.gcRef=null;kb.len=null;kb._setPositionTemporarily=function(a,b){var c=kb.gcRef.position;kb.gcRef.position=a;var d=b();kb.gcRef.position=c;return d};kb.getByte=function(a){return kb.gcRef.data.getInt8(a)};kb.getDouble=function(a){return kb._setPositionTemporarily(a,function(){return kb.gcRef.readDouble()})};kb.getFloat=function(a){return kb._setPositionTemporarily(a,function(){return kb.gcRef.readFloat()})};kb.getI32=function(a){return kb._setPositionTemporarily(a, function(){return kb.gcRef.readInt()})};kb.getUI16=function(a){return kb._setPositionTemporarily(a,function(){return kb.gcRef.readUnsignedShort()})};kb.select=function(a){kb.gcRef=a;kb.len=null!=a?a.length:0};kb.setByte=function(a,b){kb.gcRef.data.setUint8(a,b)};kb.setDouble=function(a,b){kb._setPositionTemporarily(a,function(){kb.gcRef.writeDouble(b)})};kb.setFloat=function(a,b){kb._setPositionTemporarily(a,function(){kb.gcRef.writeFloat(b)})};kb.setI16=function(a,b){kb._setPositionTemporarily(a, function(){kb.gcRef.writeUnsignedShort(b)})};kb.setI32=function(a,b){kb._setPositionTemporarily(a,function(){kb.gcRef.writeInt(b)})};var ec={};g["openfl._Vector.Vector_Impl_"]=ec;ec.__name__=["openfl","_Vector","Vector_Impl_"];ec.__properties__={set_fixed:"set_fixed",get_fixed:"get_fixed",set_length:"set_length",get_length:"get_length"};ec._new=function(a,b){null==b&&(b=!1);null==a&&(a=0);var c;c=new Xb;c.data=Array(a);c.length=a;c.fixed=b;return c};ec.concat=function(a,b){var c=new Xb;c.length=null!= b?a.length+b.length:a.length;c.fixed=!1;c.data=Array(c.length);N.blit(a.data,0,c.data,0,a.length);null!=b&&N.blit(b.data,0,c.data,a.length,b.length);return c};ec.copy=function(a){var b=new Xb;b.length=a.length;b.fixed=a.fixed;b.data=Array(a.length);N.blit(a.data,0,b.data,0,a.length);return b};ec.iterator=function(a){return new ir(a)};ec.join=function(a,b){for(var c="",d=0,e=a.length;db&&(b+=a.length);0>=c&&(c+=a.length);c>a.length&&(c=a.length);var d=c-b;if(0>=d||d>a.length)d=a.length;var e=new Xb;e.length=c-b;e.fixed=!0;e.data=Array(d);N.blit(a.data,b,e.data,0,d);return e};ec.sort=function(a,b){var c=N.toArray(a.data);c.sort(b);var d;d=Array(c.length);for(var e=0,f=c.length;e< f;){var h=e++;d[h]=c[h]}a.data=d};ec.splice=function(a,b,c){0>b&&(b+=a.length);b+c>a.length&&(c=a.length-b);0>c&&(c=0);var d=new Xb;d.length=c;d.fixed=!1;d.data=Array(c);N.blit(a.data,b,d.data,0,c);0=c;){if(a.data[e]==b){d=e;break}e--}return d};ec.ofArray=function(a){var b=new Xb;b.length=a.length;b.fixed=!0;var c;c=Array(a.length);for(var d=0,e=a.length;d=a.length&&(a.length=b+1),a.data.lengtha.length){var c;c=Array(b);N.blit(a.data,0,c,0,y["int"](Math.min(a.data.length,b)));a.data=c}a.length=b}return b};ec.get_fixed=function(a){return a.fixed};ec.set_fixed=function(a,b){return a.fixed=b};var Xb=function(){this.length=0};g["openfl.VectorData"]=Xb;Xb.__name__=["openfl","VectorData"];Xb.prototype={data:null,fixed:null,length:null,__class__:Xb};var ir=function(a){this.index=0;this.vectorData=a};g["openfl.VectorDataIterator"]=ir;ir.__name__=["openfl","VectorDataIterator"]; ir.prototype={index:null,vectorData:null,hasNext:function(){return this.indext;)r=t++/20,p=1-r,g=p*p,k=g*p,l=r*r,m=l*r,q=k*x+3*g*r*b+3*p*l*d+m*f,p=k*n+3*g*r*c+3*p*l*e+m*h,a.push(q),a.push(p)};Dc.curveTo=function(a,b,c,d,e){for(var f=0,h=0,p=a[a.length-2],g=a[a.length-1],k=h=f=0,l=1;21>l;)k=l++/20,f=p+(b-p)*k,h=g+(c-g)*k,f+=(b+(d-b)*k-f)*k,h+=(c+(e-c)*k-h)*k,a.push(f),a.push(h)};Dc.roundRectangle=function(a,b,c,d,e,f,h){d=b+d;e=c+e;var p=-f+f*Dc.SIN45,g=-f+f*Dc.TAN22,k=-h+h*Dc.SIN45,l=-h+h*Dc.TAN22;a.push(d); a.push(e-h);Dc.curveTo(a,d,e+l,d+p,e+k);Dc.curveTo(a,d+g,e,d-f,e);a.push(b+f);a.push(e);Dc.curveTo(a,b-g,e,b-p,e+k);Dc.curveTo(a,b,e+l,b,e-h);a.push(b);a.push(c+h);Dc.curveTo(a,b,c-l,b-p,c-k);Dc.curveTo(a,b-g,c,b+f,c);a.push(d-f);a.push(c);Dc.curveTo(a,d+g,c,d+p,c-k);Dc.curveTo(a,d,c-l,d,c+h);a.push(d);a.push(e-h)};var Ai=function(){};g["openfl._internal.renderer.PolyK"]=Ai;Ai.__name__=["openfl","_internal","renderer","PolyK"];Ai.triangulate=function(a,b){var c=!0,d=b.length>>1;if(3>d)return[];var e; e=[];for(var f=0;f3*h)if(c){a=[];c=[];for(e=0;ep+h};Ai._convex=function(a,b,c,d,e,f,h){return 0<=(b-d)*(e-c)+(c-a)*(f-d)==h};var Bi=function(){};g["openfl._internal.renderer.RenderSession"]=Bi;Bi.__name__=["openfl","_internal","renderer","RenderSession"];Bi.prototype={cairo:null,context:null,element:null,gl:null,renderer:null, roundPixels:null,transformProperty:null,transformOriginProperty:null,vendorPrefix:null,z:null,projectionMatrix:null,drawCount:null,currentBlendMode:null,shaderManager:null,maskManager:null,filterManager:null,blendModeManager:null,spriteBatch:null,stencilManager:null,defaultFramebuffer:null,__class__:Bi};var ss=function(){};g["openfl._internal.renderer.cairo.CairoBitmap"]=ss;ss.__name__=["openfl","_internal","renderer","cairo","CairoBitmap"];ss.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)){var c= b.cairo;if(null!=a.bitmapData&&a.bitmapData.__isValid){null!=a.__mask&&b.maskManager.pushMask(a.__mask);var d=a.__worldTransform,e=a.get_scrollRect();b.roundPixels?(d=d.__toMatrix3(),d.tx=Math.round(d.tx),d.ty=Math.round(d.ty),c.set_matrix(d)):c.set_matrix(d.__toMatrix3());d=a.bitmapData.getSurface();null!=d&&(d=Vb.createForSurface(d),Vb.set_filter(d,a.smoothing?1:3),null!=e?(c.pushGroup(),c.set_source(d),c.newPath(),c.rectangle(e.x,e.y,e.width,e.height),c.fill(),c.popGroupToSource()):c.set_source(d), 1==a.__worldAlpha?c.paint():c.paintWithAlpha(a.__worldAlpha));null!=a.__mask&&b.maskManager.popMask()}}};var L=function(){};g["openfl._internal.renderer.cairo.CairoGraphics"]=L;L.__name__=["openfl","_internal","renderer","cairo","CairoGraphics"];L.bitmapFill=null;L.bitmapRepeat=null;L.bounds=null;L.cairo=null;L.fillPattern=null;L.fillPatternMatrix=null;L.graphics=null;L.hasFill=null;L.hasStroke=null;L.hitTesting=null;L.inversePendingMatrix=null;L.pendingMatrix=null;L.strokePattern=null;L.closePath= function(){null!=L.strokePattern&&(L.cairo.closePath(),L.cairo.set_source(L.strokePattern),L.hitTesting||L.cairo.strokePreserve(),L.cairo.newPath())};L.createGradientPattern=function(a,b,c,d,e,f,h,p){f=null;switch(a[1]){case 0:null==e&&(e=new pa);f=e.transformPoint(new Q(1638.4,0));a=e.tx+L.graphics.__bounds.x;h=e.ty+L.graphics.__bounds.y;f=Vb.createRadial(a,h,0,a,h,(f.x-e.tx)/2);break;case 1:null==e&&(e=new pa),f=e.transformPoint(new Q(-819.2,0)),e=e.transformPoint(new Q(819.2,0)),f.x+=L.graphics.__bounds.x, e.x+=L.graphics.__bounds.x,f.y+=L.graphics.__bounds.y,e.y+=L.graphics.__bounds.y,f=Vb.createLinear(f.x,f.y,e.x,e.y)}e=0;for(a=b.length;e>>16)/255;var l=((k&65280)>>>8)/255,k=(k&255)/255,g=d[g]/255;0>g&&(g=0);1c/2&&(e=c/2);f>d/2&&(f=d/2);c=a+c;d=b+d;var h=-e+e*L.SIN45,p=-e+e*L.TAN22,g=-f+f*L.SIN45,k=-f+f*L.TAN22;L.cairo.moveTo(c,d-f);L.quadraticCurveTo(c,d+k,c+h,d+g);L.quadraticCurveTo(c+p,d,c-e,d);L.cairo.lineTo(a+e,d);L.quadraticCurveTo(a-p,d,a-h,d+g);L.quadraticCurveTo(a,d+k,a,d-f);L.cairo.lineTo(a,b+f);L.quadraticCurveTo(a,b-k,a-h,b-g);L.quadraticCurveTo(a-p,b,a+e,b);L.cairo.lineTo(c-e,b);L.quadraticCurveTo(c+p,b,c+h,b-g);L.quadraticCurveTo(c, b-k,c,b+f);L.cairo.lineTo(c,d-f)};L.endFill=function(){L.cairo.newPath();L.playCommands(L.fillCommands,!1);L.fillCommands.clear()};L.endStroke=function(){L.cairo.newPath();L.playCommands(L.strokeCommands,!0);L.cairo.closePath();L.strokeCommands.clear()};L.hitTest=function(a,b,c){return!1};L.isCCW=function(a,b,c,d,e,f){return 0>(c-a)*(f-b)-(d-b)*(e-a)};L.normalizeUVT=function(a,b){null==b&&(b=!1);for(var c=-Infinity,d=-Infinity,e=a.length,f=1,h=e+1;f>>16)/255,Q=((O.buffer.o[O.oPos+ 1]&65280)>>>8)/255,T=(O.buffer.o[O.oPos+1]&255)/255;L.strokePattern=1==O.buffer.o[O.oPos+2]||null==O.buffer.o[O.oPos+2]?Vb.createRGB(P,Q,T):Vb.createRGBA(P,Q,T,O.buffer.o[O.oPos+2])}break;case 14:var R;l.advance();l.prev=I.LINE_GRADIENT_STYLE;R=l;b&&L.hasStroke&&L.closePath();L.cairo.moveTo(e-c,f-d);L.strokePattern=L.createGradientPattern(R.buffer.o[R.oPos],R.buffer.ii[R.iiPos],R.buffer.ff[R.ffPos],R.buffer.ii[R.iiPos+1],R.buffer.o[R.oPos+1],R.buffer.o[R.oPos+2],R.buffer.o[R.oPos+3],R.buffer.o[R.oPos+ 4]);L.hasStroke=!0;break;case 13:var W;l.advance();l.prev=I.LINE_BITMAP_STYLE;W=l;b&&L.hasStroke&&L.closePath();L.cairo.moveTo(e-c,f-d);L.strokePattern=L.createImagePattern(W.buffer.o[W.oPos],W.buffer.o[W.oPos+1],W.buffer.b[W.bPos]);L.hasStroke=!0;break;case 0:var V;l.advance();l.prev=I.BEGIN_BITMAP_FILL;V=l;L.fillPattern=L.createImagePattern(V.buffer.o[V.oPos],V.buffer.o[V.oPos+1],V.buffer.b[V.bPos]);L.bitmapFill=V.buffer.o[V.oPos];L.bitmapRepeat=V.buffer.b[V.bPos];L.hasFill=!0;break;case 1:var X; l.advance();l.prev=I.BEGIN_FILL;X=l;.005>X.buffer.f[X.fPos]?L.hasFill=!1:(null!=L.fillPattern&&(L.fillPatternMatrix=null),L.fillPattern=Vb.createRGBA(((X.buffer.i[X.iPos]&16711680)>>>16)/255,((X.buffer.i[X.iPos]&65280)>>>8)/255,(X.buffer.i[X.iPos]&255)/255,X.buffer.f[X.fPos]),L.hasFill=!0);L.bitmapFill=null;break;case 2:var U;l.advance();l.prev=I.BEGIN_GRADIENT_FILL;U=l;null!=L.fillPattern&&(L.fillPatternMatrix=null);L.fillPattern=L.createGradientPattern(U.buffer.o[U.oPos],U.buffer.ii[U.iiPos],U.buffer.ff[U.ffPos], U.buffer.ii[U.iiPos+1],U.buffer.o[U.oPos+1],U.buffer.o[U.oPos+2],U.buffer.o[U.oPos+3],U.buffer.o[U.oPos+4]);L.hasFill=!0;L.bitmapFill=null;break;case 11:var Y;l.advance();l.prev=I.DRAW_TRIANGLES;Y=l;var ba=Y.buffer.o[Y.oPos],Z=Y.buffer.o[Y.oPos+1],S=Y.buffer.o[Y.oPos+2],ca=null==L.bitmapFill;if(ca&&null!=S)throw"__break__";var da=0,ea=0;if(!ca){if(null==S){var fa;fa=new Xb;fa.data=[];fa.length=0;fa.fixed=!1;for(var S=fa,na=0,ja=ba.length/2|0;na(za-wa)*(Ga-ya)-(Ea-ya)*(Ca-wa))){ga+=3;continue}break;case 0:if(0>(za-wa)* (Ga-ya)-(Ea-ya)*(Ca-wa)){ga+=3;continue}}if(ca)L.cairo.newPath(),L.cairo.moveTo(wa,ya),L.cairo.lineTo(za,Ea),L.cairo.lineTo(Ca,Ga),L.cairo.closePath(),L.hitTesting||L.cairo.fillPreserve();else if(L.cairo.identityMatrix(),L.cairo.newPath(),L.cairo.moveTo(wa,ya),L.cairo.lineTo(za,Ea),L.cairo.lineTo(Ca,Ga),L.cairo.closePath(),Ja=S.data[ua]*da,Ka=S.data[aa]*da,La=S.data[Aa]*da,Ia=S.data[va]*ea,Da=S.data[Ba]*ea,xa=S.data[Fa]*ea,Ha=Ja*(xa-Da)-Ka*xa+La*Da+(Ka-La)*Ia,0!=Ha){Ma=-(Ia*(Ca-za)-Da*Ca+xa*za+(Da- xa)*wa)/Ha;Qa=(Da*Ga+Ia*(Ea-Ga)-xa*Ea+(xa-Da)*ya)/Ha;Ra=(Ja*(Ca-za)-Ka*Ca+La*za+(Ka-La)*wa)/Ha;Na=-(Ka*Ga+Ja*(Ea-Ga)-La*Ea+(La-Ka)*ya)/Ha;Oa=(Ja*(xa*za-Da*Ca)+Ia*(Ka*Ca-La*za)+(La*Da-Ka*xa)*wa)/Ha;Ta=(Ja*(xa*Ea-Da*Ga)+Ia*(Ka*Ga-La*Ea)+(La*Da-Ka*xa)*ya)/Ha;var Ua=new tg(Ma,Qa,Ra,Na,Oa,Ta);L.cairo.set_matrix(Ua);L.cairo.set_source(L.fillPattern);L.hitTesting||L.cairo.fill()}ga+=3}break;case 10:var Pa;l.advance();l.prev=I.DRAW_TILES;Pa=l;var Va=0<(Pa.buffer.i[Pa.iPos]&1),Xa=0<(Pa.buffer.i[Pa.iPos]&2), Za=L.bounds.x,$a=L.bounds.y,Ya=0<(Pa.buffer.i[Pa.iPos]&16),cb=0<(Pa.buffer.i[Pa.iPos]&4),bb=0<(Pa.buffer.i[Pa.iPos]&8),ab=0<(Pa.buffer.i[Pa.iPos]&32),gb=0<(Pa.buffer.i[Pa.iPos]&64),hb=0<(Pa.buffer.i[Pa.iPos]&65536),ib=0<(Pa.buffer.i[Pa.iPos]&4194304);Ya&&(Xa=Va=!1);var jb=0,kb=0,lb=0,eb=0,Wa=3;ab&&(Wa=gb?8:6);Va&&(jb=Wa,Wa++);Xa&&(kb=Wa,Wa++);Ya&&(eb=Wa,Wa+=4);cb&&(Wa+=3);bb&&(lb=Wa,Wa++);var mb=Pa.buffer.ff[Pa.ffPos].length;0<=Pa.buffer.i[Pa.iPos+1]&&mb>Pa.buffer.i[Pa.iPos+1]&&(mb=Pa.buffer.i[Pa.iPos+ 1]);var Sa=0,fb=null,db=null,ob=-1,pb;Pa.buffer.ts[Pa.tsPos].__bitmap.__sync();pb=Pa.buffer.ts[Pa.tsPos].__bitmap.getSurface();L.cairo.save();hb&&L.cairo.set_operator(12);for(ib&&L.cairo.set_operator(16);Sa=a.__worldAlpha)){var c=b.context;if(null!=a.bitmapData&&a.bitmapData.__isValid){null!=a.__mask&&b.maskManager.pushMask(a.__mask);a.bitmapData.__sync();c.globalAlpha=a.__worldAlpha;var d=a.__worldTransform,e=a.get_scrollRect(); b.roundPixels?c.setTransform(d.a,d.b,d.c,d.d,d.tx|0,d.ty|0):c.setTransform(d.a,d.b,d.c,d.d,d.tx,d.ty);a.smoothing||(c.mozImageSmoothingEnabled=!1,c.msImageSmoothingEnabled=!1,c.imageSmoothingEnabled=!1);null==e?c.drawImage(a.bitmapData.image.get_src(),0,0):c.drawImage(a.bitmapData.image.get_src(),e.x,e.y,e.width,e.height,e.x,e.y,e.width,e.height);a.smoothing||(c.mozImageSmoothingEnabled=!0,c.msImageSmoothingEnabled=!0,c.imageSmoothingEnabled=!0);null!=a.__mask&&b.maskManager.popMask()}}};var z=function(){}; g["openfl._internal.renderer.canvas.CanvasGraphics"]=z;z.__name__=["openfl","_internal","renderer","canvas","CanvasGraphics"];z.bitmapFill=null;z.bitmapStroke=null;z.bitmapRepeat=null;z.bounds=null;z.graphics=null;z.hasFill=null;z.hasStroke=null;z.hitTesting=null;z.inversePendingMatrix=null;z.pendingMatrix=null;z.context=null;z.closePath=function(){null!=z.context.strokeStyle&&(z.context.closePath(),z.context.stroke(),z.context.beginPath())};z.createBitmapFill=function(a,b){a.__sync();return z.context.createPattern(a.image.get_src(), b?"repeat":"no-repeat")};z.createGradientPattern=function(a,b,c,d,e,f,h,p){f=null;switch(a[1]){case 0:null==e&&(e=new pa);f=e.transformPoint(new Q(1638.4,0));f=z.context.createRadialGradient(e.tx,e.ty,0,e.tx,e.ty,(f.x-e.tx)/2);break;case 1:e=null!=e?e:new pa,f=e.transformPoint(new Q(-819.2,0)),e=e.transformPoint(new Q(819.2,0)),f=z.context.createLinearGradient(f.x,f.y,e.x,e.y)}e=0;for(a=b.length;e>>16;var l=(k&65280)>>>8,k=k&255,g=d[g]/255;0>g&&(g=0);1< g&&(g=1);f.addColorStop(g,"rgba("+p+", "+l+", "+k+", "+h+")")}return f};z.createTempPatternCanvas=function(a,b,c,d){var e=window.document.createElement("canvas"),f=e.getContext("2d");e.width=c;e.height=d;f.fillStyle=f.createPattern(a.image.get_src(),b?"repeat":"no-repeat");f.beginPath();f.moveTo(0,0);f.lineTo(0,d);f.lineTo(c,d);f.lineTo(c,0);f.lineTo(0,0);f.closePath();z.hitTesting||f.fill();return e};z.drawRoundRect=function(a,b,c,d,e,f){-1==f&&(f=e);e*=.5;f*=.5;e>c/2&&(e=c/2);f>d/2&&(f=d/2);c=a+ c;d=b+d;var h=-e+e*z.SIN45,p=-e+e*z.TAN22,g=-f+f*z.SIN45,k=-f+f*z.TAN22;z.context.moveTo(c,d-f);z.context.quadraticCurveTo(c,d+k,c+h,d+g);z.context.quadraticCurveTo(c+p,d,c-e,d);z.context.lineTo(a+e,d);z.context.quadraticCurveTo(a-p,d,a-h,d+g);z.context.quadraticCurveTo(a,d+k,a,d-f);z.context.lineTo(a,b+f);z.context.quadraticCurveTo(a,b-k,a-h,b-g);z.context.quadraticCurveTo(a-p,b,a+e,b);z.context.lineTo(c-e,b);z.context.quadraticCurveTo(c+p,b,c+h,b-g);z.context.quadraticCurveTo(c,b-k,c,b+f);z.context.lineTo(c, d-f)};z.endFill=function(){z.context.beginPath();z.playCommands(z.fillCommands,!1);z.fillCommands.clear()};z.endStroke=function(){z.context.beginPath();z.playCommands(z.strokeCommands,!0);z.context.closePath();z.strokeCommands.clear()};z.hitTest=function(a,b,c){if(!(0==a.__commands.get_length()||null==z.bounds||0>=z.bounds.width||0>=z.bounds.height)){z.hitTesting=!0;b-=z.bounds.x;c-=z.bounds.y;null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d")); z.context=a.__context;z.fillCommands.clear();z.strokeCommands.clear();z.hasFill=!1;z.hasStroke=!1;z.bitmapFill=null;z.bitmapRepeat=!1;z.context.beginPath();var d=new wg(a.__commands),e=0;for(a=a.__commands.types;e(c-a)*(f-b)-(d-b)*(e-a)};z.normalizeUVT=function(a,b){null== b&&(b=!1);for(var c=-Infinity,d=-Infinity,e=a.length,f=1,h=e+1;f>>16,n=(x.buffer.o[x.oPos+1]&65280)>>>8,u=x.buffer.o[x.oPos+1]&255, z.context.strokeStyle=null==x.buffer.o[x.oPos+1]?"#000000":"rgba("+q+", "+n+", "+u+", "+x.buffer.o[x.oPos+2]+")");z.hasStroke=!0}break;case 14:k.advance();k.prev=I.LINE_GRADIENT_STYLE;x=k;b&&z.hasStroke&&z.closePath();z.context.moveTo(e-c,f-d);z.context.strokeStyle=z.createGradientPattern(x.buffer.o[x.oPos],x.buffer.ii[x.iiPos],x.buffer.ff[x.ffPos],x.buffer.ii[x.iiPos+1],x.buffer.o[x.oPos+1],x.buffer.o[x.oPos+2],x.buffer.o[x.oPos+3],x.buffer.o[x.oPos+4]);z.hasStroke=!0;break;case 13:k.advance();k.prev= I.LINE_BITMAP_STYLE;x=k;b&&z.hasStroke&&z.closePath();z.context.moveTo(e-c,f-d);z.context.strokeStyle=z.createBitmapFill(x.buffer.o[x.oPos],x.buffer.b[x.bPos]);z.hasStroke=!0;break;case 0:k.advance();k.prev=I.BEGIN_BITMAP_FILL;x=k;z.context.fillStyle=z.createBitmapFill(x.buffer.o[x.oPos],!0);z.hasFill=!0;null!=x.buffer.o[x.oPos+1]?(z.pendingMatrix=x.buffer.o[x.oPos+1],z.inversePendingMatrix=x.buffer.o[x.oPos+1].clone(),z.inversePendingMatrix.invert()):(z.pendingMatrix=null,z.inversePendingMatrix= null);break;case 1:k.advance();k.prev=I.BEGIN_FILL;x=k;.005>x.buffer.f[x.fPos]?z.hasFill=!1:(z.context.fillStyle=1==x.buffer.f[x.fPos]?"#"+W.hex(x.buffer.i[x.iPos],6):"rgba("+((x.buffer.i[x.iPos]&16711680)>>>16)+", "+((x.buffer.i[x.iPos]&65280)>>>8)+", "+(x.buffer.i[x.iPos]&255)+", "+x.buffer.f[x.fPos]+")",z.bitmapFill=null,z.hasFill=!0);break;case 2:k.advance();k.prev=I.BEGIN_GRADIENT_FILL;x=k;z.context.fillStyle=z.createGradientPattern(x.buffer.o[x.oPos],x.buffer.ii[x.iiPos],x.buffer.ff[x.ffPos], x.buffer.ii[x.iiPos+1],x.buffer.o[x.oPos+1],x.buffer.o[x.oPos+2],x.buffer.o[x.oPos+3],x.buffer.o[x.oPos+4]);z.bitmapFill=null;z.hasFill=!0;break;case 8:k.advance();k.prev=I.DRAW_RECT;x=k;q=!1;null!=z.bitmapFill&&(v=w=r=n=0,u=!0,null!=z.pendingMatrix?0!=z.pendingMatrix.b||0!=z.pendingMatrix.c?u=!1:(w=z.inversePendingMatrix.transformPoint(new Q(x.buffer.f[x.fPos],x.buffer.f[x.fPos+1])),r=z.inversePendingMatrix.transformPoint(new Q(x.buffer.f[x.fPos]+x.buffer.f[x.fPos+2],x.buffer.f[x.fPos+1]+x.buffer.f[x.fPos+ 3])),n=w.y,v=w.x,w=r.y,r=r.x):(n=x.buffer.f[x.fPos+1],v=x.buffer.f[x.fPos],w=x.buffer.f[x.fPos+1]+x.buffer.f[x.fPos+3],r=x.buffer.f[x.fPos]+x.buffer.f[x.fPos+2]),u&&0<=n&&0<=v&&r<=z.bitmapFill.width&&w<=z.bitmapFill.height&&(q=!0,z.hitTesting||z.context.drawImage(z.bitmapFill.image.get_src(),v,n,r-v,w-n,x.buffer.f[x.fPos]-c,x.buffer.f[x.fPos+1]-d,x.buffer.f[x.fPos+2],x.buffer.f[x.fPos+3])));q||z.context.rect(x.buffer.f[x.fPos]-c,x.buffer.f[x.fPos+1]-d,x.buffer.f[x.fPos+2],x.buffer.f[x.fPos+3]);break; default:k.advance(),k.prev=x}}k.destroy();b&&z.hasStroke&&(z.hasFill&&h?z.context.lineTo(p-c,g-d):h&&e==p&&f==g&&z.context.closePath(),z.hitTesting||z.context.stroke());b||!z.hasFill&&null==z.bitmapFill||(z.context.translate(-z.bounds.x,-z.bounds.y),null!=z.pendingMatrix?(z.context.transform(z.pendingMatrix.a,z.pendingMatrix.b,z.pendingMatrix.c,z.pendingMatrix.d,z.pendingMatrix.tx,z.pendingMatrix.ty),z.hitTesting||z.context.fill(),z.context.transform(z.inversePendingMatrix.a,z.inversePendingMatrix.b, z.inversePendingMatrix.c,z.inversePendingMatrix.d,z.inversePendingMatrix.tx,z.inversePendingMatrix.ty)):z.hitTesting||z.context.fill(),z.context.translate(z.bounds.x,z.bounds.y),z.context.closePath())};z.render=function(a,b){if(a.__dirty){z.hitTesting=!1;z.graphics=a;z.bounds=a.__bounds;if(!a.__visible||0==a.__commands.get_length()||null==z.bounds||0>=z.bounds.width||0>=z.bounds.height)a.__canvas=null,a.__context=null,a.__bitmap=null;else{null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"), a.__context=a.__canvas.getContext("2d"));z.context=a.__context;a.__canvas.width=Math.ceil(z.bounds.width);a.__canvas.height=Math.ceil(z.bounds.height);z.fillCommands.clear();z.strokeCommands.clear();z.hasFill=!1;z.hasStroke=!1;z.bitmapFill=null;z.bitmapRepeat=!1;var c=new wg(a.__commands),d=0,e=a.__commands.types;try{for(;d(da-Z)*(ga-ca)-(ea-ca)*(fa-Z))){E+=3;continue}break;case 0:if(0>(da-Z)*(ga-ca)-(ea-ca)*(fa-Z)){E+=3;continue}}F?(z.context.beginPath(),z.context.moveTo(Z,ca),z.context.lineTo(da,ea),z.context.lineTo(fa,ga),z.context.closePath(),z.hitTesting||z.context.fill()):(z.context.save(),z.context.beginPath(),z.context.moveTo(Z,ca),z.context.lineTo(da,ea),z.context.lineTo(fa,ga),z.context.closePath(),z.context.clip(),na=C.data[U]*D.width,ha=C.data[W]*D.width,ja=C.data[Y]*D.width,oa=C.data[V]* D.height,ia=C.data[X]*D.height,la=C.data[ba]*D.height,pa=na*(la-ia)-ha*la+ja*ia+(ha-ja)*oa,0!=pa&&(qa=-(oa*(fa-da)-ia*fa+la*da+(ia-la)*Z)/pa,ra=(ia*ga+oa*(ea-ga)-la*ea+(la-ia)*ca)/pa,sa=(na*(fa-da)-ha*fa+ja*da+(ha-ja)*Z)/pa,ta=-(ha*ga+na*(ea-ga)-ja*ea+(ja-ha)*ca)/pa,ua=(na*(la*da-ia*fa)+oa*(ha*fa-ja*da)+(ja*ia-ha*la)*Z)/pa,va=(na*(la*ea-ia*ga)+oa*(ha*ga-ja*ea)+(ja*ia-ha*la)*ca)/pa,z.context.transform(qa,ra,sa,ta,ua,va),z.context.drawImage(D,0,0),z.context.restore()));E+=3}break;case 10:var aa;c.advance(); c.prev=I.DRAW_TILES;aa=c;var wa=0<(aa.buffer.i[aa.iPos]&1),za=z.bounds.x,Ba=z.bounds.y,ya=0<(aa.buffer.i[aa.iPos]&2),Aa=0<(aa.buffer.i[aa.iPos]&16),Fa=0<(aa.buffer.i[aa.iPos]&4),Ea=0<(aa.buffer.i[aa.iPos]&8),Ca=0<(aa.buffer.i[aa.iPos]&32),Ga=0<(aa.buffer.i[aa.iPos]&64),Ja=0<(aa.buffer.i[aa.iPos]&65536);Aa&&(ya=wa=!1);var Ka=E=D=0,Ia=0,Da=3;Ca&&(Da=Ga?8:6);wa&&(D=Da,Da++);ya&&(E=Da,Da++);Aa&&(Ia=Da,Da+=4);Fa&&(Da+=3);Ea&&(Ka=Da,Da++);var La=aa.buffer.ff[aa.ffPos].length;0<=aa.buffer.i[aa.iPos+1]&& La>aa.buffer.i[aa.iPos+1]&&(La=aa.buffer.i[aa.iPos+1]);var xa=0,Ha=null,Ma=null,Qa=-1,Ra;aa.buffer.ts[aa.tsPos].__bitmap.__sync();Ra=aa.buffer.ts[aa.tsPos].__bitmap.image.get_src();Ja&&(z.context.globalCompositeOperation="lighter");for(;xa=a.__worldAlpha)){var c=a.__graphics;if(null!=c&&(z.render(c,b),null!=c.__canvas)){var d=b.context,e=a.get_scrollRect();if(0=c.width||0>=c.height)&&c.autoSize!=Ka.NONE)a.__graphics.__canvas= null,a.__graphics.__context=null,a.__graphics.set___dirty(!1),a.__dirty=!1;else{var d=c.bounds;if(null==a.__graphics||null==a.__graphics.__canvas)null==a.__graphics&&(a.__graphics=new Fc),a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"),a.__graphics.__bounds=new va(0,0,d.width,d.height);var e=a.__graphics;bc.context=e.__context;if(null!=c.text&&""!=c.text||c.__hasFocus){var f=c.text;if(c.displayAsPassword){for(var f=f.length, h="",p=0;pa.get_scrollV()+ c.bottomScrollV-2)break;bc.context.font=Mb.getFont(x.format);bc.context.fillStyle="#"+W.hex(x.format.color,6);g&&(p=.185*x.format.size);bc.context.fillText(f.substring(x.startIndex,x.endIndex),x.offsetX+d,x.offsetY+p+h);if(-1=a.__caretIndex){for(var n=l=0,q=a.__caretIndex-x.startIndex;n=a.__caretIndex||x.startIndex<=a.__selectionIndex&&x.endIndex>=a.__selectionIndex)l=y["int"](Math.min(a.__selectionIndex,a.__caretIndex)),n=y["int"](Math.max(a.__selectionIndex,a.__caretIndex)),x.startIndex>l&&(l=x.startIndex),x.endIndex=c.text.length?(r=a.getCharBoundaries(c.text.length-1),r.x+=r.width+2):r=a.getCharBoundaries(n),null!=q&&null!=r&&(bc.context.fillStyle="#000000", bc.context.fillRect(q.x,q.y,r.x-q.x,x.height),bc.context.fillStyle="#FFFFFF",bc.context.fillText(f.substring(l,n),d+q.x,x.offsetY+p+h))}}}else if(e.__canvas.width=Math.ceil(d.width),e.__canvas.height=Math.ceil(d.height),c.border||c.background)c.border?bc.context.rect(.5,.5,d.width-1,d.height-1):bc.context.rect(0,0,d.width,d.height),c.background&&(bc.context.fillStyle="#"+W.hex(c.backgroundColor,6),bc.context.fill()),c.border&&(bc.context.lineWidth=1,bc.context.lineCap="square",bc.context.strokeStyle= "#"+W.hex(c.borderColor,6),bc.context.stroke());e.__bitmap=qb.fromCanvas(a.__graphics.__canvas);a.__dirty=!1;e.set___dirty(!1)}}};var Zn=function(a,b,c){Nd.call(this,a,b);throw new q("ConsoleRenderer not supported");};g["openfl._internal.renderer.console.ConsoleRenderer"]=Zn;Zn.__name__=["openfl","_internal","renderer","console","ConsoleRenderer"];Zn.__super__=Nd;Zn.prototype=t(Nd.prototype,{render:function(a){},__class__:Zn});var Ci=function(){};g["openfl._internal.renderer.dom.DOMBitmap"]=Ci;Ci.__name__= ["openfl","_internal","renderer","dom","DOMBitmap"];Ci.render=function(a,b){null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=a.bitmapData&&a.bitmapData.__isValid?null!=a.bitmapData.image.buffer.__srcImage?Ci.renderImage(a,b):Ci.renderCanvas(a,b):(null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null,a.__style=null),null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null))};Ci.renderCanvas=function(a,b){null!=a.__image&&(b.element.removeChild(a.__image), a.__image=null);null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"),a.smoothing||(a.__context.mozImageSmoothingEnabled=!1,a.__context.msImageSmoothingEnabled=!1,a.__context.imageSmoothingEnabled=!1),Yd.initializeElement(a,a.__canvas,b));a.bitmapData.__sync();a.__canvas.width=a.bitmapData.width;a.__canvas.height=a.bitmapData.height;a.__context.globalAlpha=a.__worldAlpha;a.__context.drawImage(a.bitmapData.image.buffer.__srcCanvas,0,0);Yd.applyStyle(a, b,!0,!1,!0)};Ci.renderImage=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null);null==a.__image&&(a.__image=window.document.createElement("img"),a.__image.src=a.bitmapData.image.buffer.__srcImage.src,Yd.initializeElement(a,a.__image,b));Yd.applyStyle(a,b,!0,!0,!0)};var $n=function(a){this.renderSession=a};g["openfl._internal.renderer.dom.DOMMaskManager"]=$n;$n.__name__=["openfl","_internal","renderer","dom","DOMMaskManager"];$n.__super__=vg;$n.prototype=t(vg.prototype, {pushMask:function(a){},pushRect:function(a,b){},popMask:function(){},__class__:$n});var Yd=function(a,b,c){Nd.call(this,a,b);this.element=c;this.renderSession=new Bi;this.renderSession.element=c;this.renderSession.roundPixels=!0;a=window.getComputedStyle(document.documentElement,"");a=(Array.prototype.slice.call(a).join("").match(/-(moz|webkit|ms)-/)||""===a.OLink&&["","o"])[1];"WebKit|Moz|MS|O".match(new RegExp("("+a+")","i"));a[0].toUpperCase();a.substr(1);this.renderSession.vendorPrefix=a;this.renderSession.transformProperty= "webkit"==a?"-webkit-transform":"transform";this.renderSession.transformOriginProperty="webkit"==a?"-webkit-transform-origin":"transform-origin";this.renderSession.maskManager=new $n(this.renderSession);this.renderSession.renderer=this};g["openfl._internal.renderer.dom.DOMRenderer"]=Yd;Yd.__name__=["openfl","_internal","renderer","dom","DOMRenderer"];Yd.applyStyle=function(a,b,c,d,e){var f=a.__style;c&&a.__worldTransformChanged&&f.setProperty(b.transformProperty,a.__worldTransform.to3DString(b.roundPixels), null);a.__worldZ!=++b.z&&(a.__worldZ=b.z,f.setProperty("z-index",null==a.__worldZ?"null":""+a.__worldZ,null));d&&a.__worldAlphaChanged&&(1>a.__worldAlpha?f.setProperty("opacity",null==a.__worldAlpha?"null":""+a.__worldAlpha,null):f.removeProperty("opacity"));e&&a.__worldClipChanged&&(null==a.__worldClip?f.removeProperty("clip"):(b=va.__temp,c=pa.__temp,c.copyFrom(a.__worldTransform),c.invert(),a.__worldClip.__transform(b,c),f.setProperty("clip","rect("+b.y+"px, "+b.get_right()+"px, "+b.get_bottom()+ "px, "+b.x+"px)",null)))};Yd.initializeElement=function(a,b,c){var d=a.__style=b.style;d.setProperty("position","absolute",null);d.setProperty("top","0",null);d.setProperty("left","0",null);d.setProperty(c.transformOriginProperty,"0 0 0",null);c.element.appendChild(b);a.__worldAlphaChanged=!0;a.__worldClipChanged=!0;a.__worldTransformChanged=!0;a.__worldVisibleChanged=!0;a.__worldZ=-1};Yd.__super__=Nd;Yd.prototype=t(Nd.prototype,{element:null,render:function(a){this.element.style.background=a.__colorString; this.renderSession.z=1;a.__renderDOM(this.renderSession)},__class__:Yd});var Nr=function(){};g["openfl._internal.renderer.dom.DOMShape"]=Nr;Nr.__name__=["openfl","_internal","renderer","dom","DOMShape"];Nr.render=function(a,b){var c=a.__graphics;if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){if(c.__dirty||a.__worldAlphaChanged||null==a.__canvas&&null!=c.__canvas)z.render(c,b),null!=c.__canvas?(null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"), Yd.initializeElement(a,a.__canvas,b)),a.__canvas.width=c.__canvas.width,a.__canvas.height=c.__canvas.height,a.__context.globalAlpha=a.__worldAlpha,a.__context.drawImage(c.__canvas,0,0)):null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null);if(null!=a.__canvas){if(a.__worldTransformChanged||c.__transformDirty){c.__transformDirty=!1;var d=pa.__temp;d.identity();d.translate(c.__bounds.x,c.__bounds.y);d.concat(a.__worldTransform);a.__style.setProperty(b.transformProperty, b.roundPixels?"matrix3d("+d.a+", "+d.b+", 0, 0, "+d.c+", "+d.d+", 0, 0, 0, 0, 1, 0, "+(d.tx|0)+", "+(d.ty|0)+", 0, 1)":"matrix3d("+d.a+", "+d.b+", 0, 0, "+d.c+", "+d.d+", 0, 0, 0, 0, 1, 0, "+d.tx+", "+d.ty+", 0, 1)",null)}Yd.applyStyle(a,b,!1,!1,!0)}}else null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};var Wp=function(){};g["openfl._internal.renderer.dom.DOMTextField"]=Wp;Wp.__name__=["openfl","_internal","renderer","dom","DOMTextField"];Wp.measureText=function(a){var b= a.__textEngine,c=a.__div;null==c&&(c=window.document.createElement("div"),c.innerHTML=(new Lc("\n","g")).replace(b.text,"
"),c.style.setProperty("font",Mb.getFont(a.__textFormat),null),c.style.setProperty("pointer-events","none",null),c.style.position="absolute",c.style.top="110%",window.document.body.appendChild(c));b.__measuredWidth=c.clientWidth;null==a.__div&&(c.style.width=y.string(b.width-4)+"px");b.__measuredHeight=c.clientHeight;null==a.__div&&window.document.body.removeChild(c)};Wp.render= function(a,b){var c=a.__textEngine;if(null!=a.stage&&a.__worldVisible&&a.__renderable){if(a.__dirty||null==a.__div)if(""!=c.text||c.background||c.border||c.type==ce.INPUT){null==a.__div&&(a.__div=window.document.createElement("div"),Yd.initializeElement(a,a.__div,b),a.__style.setProperty("outline","none",null),a.__div.addEventListener("input",function(b){b.preventDefault();a.get_htmlText()!=a.__div.innerHTML&&(a.set_htmlText(a.__div.innerHTML),a.__dirty=!1)},!0));c.selectable?a.__style.setProperty("cursor", "text",null):a.__style.setProperty("cursor","inherit",null);a.__div.contentEditable=c.type==ce.INPUT;var d=a.__style;a.__div.innerHTML=c.text;c.background?d.setProperty("background-color","#"+W.hex(c.backgroundColor,6),null):d.removeProperty("background-color");c.border?d.setProperty("border","solid 1px #"+W.hex(c.borderColor,6),null):d.removeProperty("border");d.setProperty("font",Mb.getFont(a.__textFormat),null);d.setProperty("color","#"+W.hex(a.__textFormat.color,6),null);c.autoSize!=Ka.NONE?d.setProperty("width", "auto",null):d.setProperty("width",c.width+"px",null);d.setProperty("height",c.height+"px",null);switch(a.__textFormat.align[1]){case 3:d.setProperty("text-align","center",null);break;case 1:d.setProperty("text-align","right",null);break;default:d.setProperty("text-align","left",null)}a.__dirty=!1}else null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null);null!=a.__div&&Yd.applyStyle(a,b,!0,!0,!1)}else null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null,a.__style=null)};var kr=function(){}; g["openfl._internal.renderer.opengl.GLBitmap"]=kr;kr.__name__=["openfl","_internal","renderer","opengl","GLBitmap"];kr.render=function(a,b){!a.__renderable||0>=a.__worldAlpha||null==a.bitmapData||!a.bitmapData.__isValid||b.spriteBatch.renderBitmapData(a.bitmapData,a.smoothing,a.__renderTransform,a.__worldColorTransform,a.__worldAlpha,a.__blendMode,a.pixelSnapping)};kr.flipMatrix=function(a,b){var c=a.tx,d=a.ty;a.tx=0;a.ty=0;a.scale(1,-1);a.translate(0,b);a.tx+=c;a.ty-=d};var ud=function(a,b,c,d,e, f){null==f&&(f=!1);null==e&&(e=!1);null==d&&(d=!1);null==b&&(b=600);null==a&&(a=800);this.vpX=this.vpY=this.vpWidth=this.vpHeight=0;Nd.call(this,a,b);this.transparent=d;this.preserveDrawingBuffer=f;this.width=a;this.height=b;this.viewport=new va;this.options={alpha:d,antialias:e,premultipliedAlpha:d,stencil:!0,preserveDrawingBuffer:f};this._glContextId=ud.glContextId++;this.gl=c;this.defaultFramebuffer=null;ud.glContexts[this._glContextId]=c;this.projectionMatrix=new pa;this.projection=new Q;this.projection.x= this.width/2;this.projection.y=-this.height/2;this.offset=new Q(0,0);this.resize(this.width,this.height);this.contextLost=!1;this.shaderManager=new lr(c);this.spriteBatch=new ao(c);this.filterManager=new mr(c,this.transparent);this.stencilManager=new nr(c);this.blendModeManager=new or(c);this.renderSession=new Bi;this.renderSession.gl=this.gl;this.renderSession.drawCount=0;this.renderSession.shaderManager=this.shaderManager;this.renderSession.filterManager=this.filterManager;this.renderSession.blendModeManager= this.blendModeManager;this.renderSession.spriteBatch=this.spriteBatch;this.renderSession.stencilManager=this.stencilManager;this.renderSession.renderer=this;this.renderSession.defaultFramebuffer=this.defaultFramebuffer;this.renderSession.projectionMatrix=this.projectionMatrix;this.maskManager=new bo(this.renderSession);this.renderSession.maskManager=this.maskManager;this.shaderManager.setShader(this.shaderManager.defaultShader);c.disable(c.DEPTH_TEST);c.disable(c.CULL_FACE);c.enable(c.BLEND);c.colorMask(!0, !0,!0,this.transparent)};g["openfl._internal.renderer.opengl.GLRenderer"]=ud;ud.__name__=["openfl","_internal","renderer","opengl","GLRenderer"];ud.renderBitmap=function(a,b,c){null==c&&(c=!0);if(a.__renderable&&!(0>=a.__worldAlpha)&&null!=a.__graphics&&null!=a.__graphics.__bitmap){var d=va.__temp,e=pa.__temp;d.setEmpty();e.identity();a.__getBounds(d,e);d=a.__graphics.__bitmap;e.translate(a.__graphics.__bounds.x,a.__graphics.__bounds.y);e.concat(a.__renderTransform);b.spriteBatch.renderBitmapData(d, c,e,a.__worldColorTransform,a.__worldAlpha,a.__blendMode,Ae.ALWAYS)}};ud.__super__=Nd;ud.prototype=t(Nd.prototype,{blendModeManager:null,contextLost:null,defaultFramebuffer:null,filterManager:null,gl:null,_glContextId:null,maskManager:null,offset:null,options:null,preserveDrawingBuffer:null,projection:null,shaderManager:null,spriteBatch:null,stencilManager:null,view:null,projectionMatrix:null,__stage:null,vpX:null,vpY:null,vpWidth:null,vpHeight:null,destroy:function(){this.offset=this.projection= ud.glContexts[this._glContextId]=null;this.shaderManager.destroy();this.spriteBatch.destroy();this.maskManager.destroy();this.filterManager.destroy();this.renderSession=this.gl=this.filterManager=this.maskManager=this.spriteBatch=this.shaderManager=null},setViewport:function(a,b,c,d){if(this.vpX!=a||this.vpY!=b||this.vpWidth!=c||this.vpHeight!=d)this.vpX=a,this.vpY=b,this.vpWidth=c,this.vpHeight=d,this.gl.viewport(a,b,c,d),this.setOrtho(a,b,c,d),this.viewport.setTo(a,b,c,d)},setOrtho:function(a,b, c,d){var e=this.projectionMatrix;e.identity();e.a=1/c*2;e.d=-1/d*2;e.tx=-1-a*e.a;e.ty=1-b*e.d},handleContextLost:function(a){a.preventDefault();this.contextLost=!0},handleContextRestored:function(){var a=this.gl;ud.glContextId++;this.shaderManager.setContext(a);this.spriteBatch.setContext(a);this.maskManager.setContext(a);this.filterManager.setContext(a);this.renderSession.gl=a;this.defaultFramebuffer=null;a.disable(a.DEPTH_TEST);a.disable(a.CULL_FACE);a.enable(a.BLEND);a.colorMask(!0,!0,!0,this.transparent); this.setViewport(0,0,this.width,this.height);this.contextLost=!1},render:function(a){if(!this.contextLost){var b=this.gl;this.setViewport(0,0,this.width,this.height);b.bindFramebuffer(b.FRAMEBUFFER,this.defaultFramebuffer);this.transparent?b.clearColor(0,0,0,0):b.clearColor(a.__colorSplit[0],a.__colorSplit[1],a.__colorSplit[2],1);b.clear(b.COLOR_BUFFER_BIT);this.renderDisplayObject(a,this.projection)}},renderDisplayObject:function(a,b,c){this.renderSession.blendModeManager.setBlendMode(ya.NORMAL); this.renderSession.drawCount=0;this.renderSession.currentBlendMode=null;this.spriteBatch.begin(this.renderSession);this.filterManager.begin(this.renderSession,c);a.__renderGL(this.renderSession);this.spriteBatch.finish()},resize:function(a,b){this.width=a;this.height=b;Nd.prototype.resize.call(this,a,b);this.setViewport(0,0,a,b);this.projection.x=a/2;this.projection.y=-b/2},__class__:ud});var qc=function(a){this.uniforms=new fa;this.attributes=new fa;this.ID=qc.UID++;this.gl=a;this.program=null}; g["openfl._internal.renderer.opengl.shaders2.Shader"]=qc;qc.__name__="openfl _internal renderer opengl shaders2 Shader".split(" ");qc.compileProgram=function(a,b,c){b=qc.compileShader(a,b,a.VERTEX_SHADER);c=qc.compileShader(a,c,a.FRAGMENT_SHADER);var d=a.createProgram();null!=b&&null!=c&&(a.attachShader(d,b),a.attachShader(d,c),a.linkProgram(d),0==a.getProgramParameter(d,a.LINK_STATUS)&&null);return d};qc.compileShader=function(a,b,c){b=b.join("\n");c=a.createShader(c);a.shaderSource(c,b);a.compileShader(c); return 0==a.getShaderParameter(c,a.COMPILE_STATUS)?null:c};qc.prototype={gl:null,vertexSrc:null,fragmentSrc:null,attributes:null,uniforms:null,ID:null,program:null,init:function(){this.program=qc.compileProgram(this.gl,this.vertexSrc,this.fragmentSrc);this.gl.useProgram(this.program)},destroy:function(){null!=this.program&&this.gl.deleteProgram(this.program);this.attributes=null},getAttribLocation:function(a){if(null==this.program)throw new q("Shader isn't initialized");if(this.attributes.exists(a))return this.attributes.get(a); var b=this.gl.getAttribLocation(this.program,a);this.attributes.set(a,b);return b},getUniformLocation:function(a){if(null==this.program)throw new q("Shader isn't initialized");if(this.uniforms.exists(a))return this.uniforms.get(a);var b=this.gl.getUniformLocation(this.program,a);this.uniforms.set(a,b);return b},enableVertexAttribute:function(a,b,c){var d=this.getAttribLocation(a.name);this.gl.enableVertexAttribArray(d);this.gl.vertexAttribPointer(d,a.components,a.type,a.normalized,b,4*c)},disableVertexAttribute:function(a, b){null==b&&(b=!0);var c=this.getAttribLocation(a.name);this.gl.disableVertexAttribArray(c);if(b)switch(a.components){case 1:this.gl.vertexAttrib1fv(c,a.defaultValue.subarray(0,1));break;case 2:this.gl.vertexAttrib2fv(c,a.defaultValue.subarray(0,2));break;case 3:this.gl.vertexAttrib3fv(c,a.defaultValue.subarray(0,3));break;default:this.gl.vertexAttrib4fv(c,a.defaultValue.subarray(0,4))}},bindVertexArray:function(a){var b=0,c=a.get_stride(),d=0;for(a=a.attributes;d=a)&&w.__currentPath.type==tb.Polygon&&w.__currentPath.fill!=Od.None){var b=w.__currentPath.points[0],c=w.__currentPath.points[1],d=w.__currentPath.points[a-1];b==w.__currentPath.points[a-2]&&c==d||w.lineTo(b,c)}};w.endFill=function(){w.__fill=Od.None;w.__fillIndex++};w.moveTo=function(a,b){!w.__currentPath.isRemovable||null!=w.__currentPath.points&& 0!=w.__currentPath.points.length?w.closePath():w.__drawPaths.pop();w.__currentPath=new Kc;w.__currentPath.update(w.__line,w.__fill,w.__fillIndex,w.__currentWinding);w.__currentPath.type=tb.Polygon;w.__currentPath.points.push(a);w.__currentPath.points.push(b);w.__drawPaths.push(w.__currentPath)};w.lineTo=function(a,b){var c=w.__currentPath.points,d=!0;if(1k/2&&(m=k/2);p>l/2&&(p=l/2);!w.__currentPath.isRemovable||null!=w.__currentPath.points&&0!=w.__currentPath.points.length?w.closePath():w.__drawPaths.pop();w.__currentPath=new Kc;w.__currentPath.update(w.__line, w.__fill,w.__fillIndex,w.__currentWinding);w.__currentPath.type=tb.Rectangle(!0);w.__currentPath.points=[h,g,k,l,m,p];w.__drawPaths.push(w.__currentPath);break;case 12:d.advance();d.prev=I.END_FILL;w.endFill();break;case 15:d.advance();d.prev=I.LINE_STYLE;h=d;w.__line=new Zk;null==h.buffer.o[h.oPos]||isNaN(h.buffer.o[h.oPos])||0>h.buffer.o[h.oPos]?w.__line.width=0:w.__line.width=0==h.buffer.o[h.oPos]?1:h.buffer.o[h.oPos];!w.__currentPath.isRemovable||null!=w.__currentPath.points&&0!=w.__currentPath.points.length? w.closePath():w.__drawPaths.pop();w.__line.color=null==h.buffer.o[h.oPos+1]?0:h.buffer.o[h.oPos+1];w.__line.alpha=null==h.buffer.o[h.oPos+2]?1:h.buffer.o[h.oPos+2];w.__line.scaleMode=h.buffer.o[h.oPos+4];w.__line.caps=h.buffer.o[h.oPos+5];w.__line.joints=h.buffer.o[h.oPos+6];w.__line.miterLimit=h.buffer.o[h.oPos+7];w.__currentPath=new Kc;w.__currentPath.update(w.__line,w.__fill,w.__fillIndex,w.__currentWinding);w.__currentPath.points=[];w.__currentPath.type=tb.Polygon;w.__drawPaths.push(w.__currentPath); break;case 16:d.advance();d.prev=I.LINE_TO;h=d;w.lineTo(h.buffer.f[h.fPos],h.buffer.f[h.fPos+1]);break;case 17:d.advance();d.prev=I.MOVE_TO;h=d;!w.__currentPath.isRemovable||null!=w.__currentPath.points&&0!=w.__currentPath.points.length?w.closePath():w.__drawPaths.pop();w.__currentPath=new Kc;w.__currentPath.update(w.__line,w.__fill,w.__fillIndex,w.__currentWinding);w.__currentPath.type=tb.Polygon;w.__currentPath.points.push(h.buffer.f[h.fPos]);w.__currentPath.points.push(h.buffer.f[h.fPos+1]);w.__drawPaths.push(w.__currentPath); break;case 11:d.advance();d.prev=I.DRAW_TRIANGLES;p=d;m=p.buffer.o[p.oPos+2];h=p.buffer.o[p.oPos];g=p.buffer.o[p.oPos+1];k=p.buffer.o[p.oPos+3];l=p.buffer.o[p.oPos+4];p=p.buffer.i[p.iPos];var n;switch(w.__fill[1]){case 1:n=!0;break;default:n=!1}if(n&&null!=m)continue;!w.__currentPath.isRemovable||null!=w.__currentPath.points&&0!=w.__currentPath.points.length?w.closePath():w.__drawPaths.pop();w.__currentPath=new Kc;w.__currentPath.update(w.__line,w.__fill,w.__fillIndex,w.__currentWinding);if(null== m)switch(m=new Xb,m.data=[],m.length=0,m.fixed=!1,n=w.__fill,n[1]){case 2:n=n[2];for(var q=0,r=h.length/2|0;ql;){var m=l++;g.push(e);g.push(f);g.push(e+Math.sin(c*m)*h);g.push(f+Math.cos(c*m)*d);p.push(k++);p.push(k++)}p.push(k-1)}0Math.abs(D)?(c.push(t-w),c.push(u-v),c.push(l),c.push(m),c.push(k),c.push(a),c.push(t+w),c.push(u+v),c.push(l),c.push(m),c.push(k),c.push(a)):(n=(B*y-C*q)/D,x=(r*q-x*y)/D,B=(n-t)*(n-t)+(x-u)+(x-u),19600a.points.length)){var c=a.points, d=c.length,e=c[0],f=c[1],h=c[d-1];if(e!=c[d-2]||f!=h)c.push(e),c.push(f);var d=c.length/2|0,e=ga.prepareBucket(a,b),g=e.getData(Me.Fill),f=g.verts,h=g.indices;if(null!=g){g=[];Ai.triangulate(g,c);for(var k=f.length/2,l=0;l(F-C)*(J-D)-(E-D)*(G-C)))continue;break;case 0:if(0>(F-C)*(J-D)-(E-D)*(G-C))continue}var M=t++;a[M]=l*C+n*D+q;M=t++;a[M]=m*C+x*D+b;C=t++;a[C]=g.data[u];C=t++;a[C]=g.data[u+1];r&&(u=t++,c[u]=e.data[z]);z=t++;a[z]=l*F+n*E+q;z=t++;a[z]=m*F+x*E+b;F=t++;a[F]=g.data[w];F=t++;a[F]=g.data[w+1];r&&(w=t++,c[w]=e.data[A]);A=t++;a[A]=l*G+n*J+q;A=t++;a[A]=m*G+x*J+b;G=t++;a[G]=g.data[v];G=t++;a[G]=g.data[v+1];r&&(v=t++,c[v]=e.data[B])}};ga.buildDrawTiles=function(a, b){ga.prepareBucket(a,b)};ga.quadraticBezierCurve=function(a,b,c,d,e,f){for(var h,g,k,l,m=[],n=0,x=0;21>x;)n=x++/20,h=a+(c-a)*n,g=b+(d-b)*n,k=c+(e-c)*n,l=d+(f-d)*n,h+=(k-h)*n,g+=(l-g)*n,m.push(h),m.push(g);return m};ga.render=function(a,b){var c=a.__graphics,d=c.__bounds,e=c.__dirty;c.__visible&&0!=c.__commands.get_length()&&null!=d&&0!=d.width&&0!=d.height?(e&&ga.updateGraphics(a,a.__graphics,b.gl,a.cacheAsBitmap),ga.renderGraphics(a,b,!1)):c.__glStack.splice(0,c.__glStack.length)};ga.renderGraphics= function(a,b,c){null==c&&(c=!1);var d=b.gl,e=a.__graphics.__glStack[ud.glContextId];if(null!=e){var f,h;h=c?pa.__identity:a.__worldTransform;for(var g=b.spriteBatch.clipRect,k=b.spriteBatch.drawing,l=0,m=e.buckets.length;l>16&255)/255,(e>>8&255)/255,(e&255)/255];c.color[3]=d;c.uploadTileBuffer=!0;break;case 2:var d=c[5],e=c[4],f=c[3],h=c[2],c=ga.switchBucket(a.fillIndex,b,Pb.PatternFill);c.bitmap=h;c.textureRepeat=e;c.textureSmooth= d;c.texture=h.getTexture(b.gl);c.uploadTileBuffer=!0;d=null==f?new pa:new pa(f.a,f.b,f.c,f.d,f.tx,f.ty);d.invert();d.scale(1/h.width,1/h.height);e=d.tx;f=d.ty;d.tx=0;d.ty=0;c.textureTL.x=e;c.textureTL.y=f;c.textureBR.x=e+1;c.textureBR.y=f+1;c.textureMatrix=d;break;default:c=ga.switchBucket(a.fillIndex,b,Pb.Line),c.uploadTileBuffer=!1}switch(a.type[1]){case 4:c.mode=Pb.DrawTriangles;c.uploadTileBuffer=!1;break;case 5:c.mode=Pb.DrawTiles,c.uploadTileBuffer=!1}c.graphicType=a.type;c.overrideMatrix=ga.overrideMatrix; return c};ga.getBucket=function(a,b){var c=ga.bucketPool.pop();null==c&&(c=new rr(a.gl));c.mode=b;a.buckets.push(c);return c};ga.switchBucket=function(a,b,c){for(var d=null,e=0,f=b.buckets;e(c-a)*(f-b)-(d-b)*(e-a)};ga.hex2rgb=function(a){return null==a?[1,1,1]:[(a>>16&255)/255,(a>>8&255)/255,(a&255)/255]};ga.hex2rgba=function(a){return null==a?[1,1,1,1]:[(a>>16&255)/255,(a>>8&255)/255, (a&255)/255,(a>>24&255)/255]};var pr=function(a){this.lastIndex=0;this.gl=a;this.buckets=[];this.lastIndex=0};g["openfl._internal.renderer.opengl.utils.GLStack"]=pr;pr.__name__="openfl _internal renderer opengl utils GLStack".split(" ");pr.prototype={lastIndex:null,buckets:null,gl:null,reset:function(){this.buckets=[];this.lastIndex=0},upload:function(){for(var a=0,b=this.buckets;aa?(a=this.glVerts.subarray(0,a),this.vertexArray.upload(a)):this.vertexArray.upload(this.glVerts)):(this.vertexArray.setContext(this.gl,this.glVerts),this.lastVertsSize=this.glVerts.length)}0==this.glLength&&(this.rawIndices&&null!=this.glIndices&&0=this.maxSprites&&this.flush();var k=a.__uvData;null!=k&&(e=((255*e|0)&255)<<24|16777215,this.enableColor=!0,this.enableColor!= this.lastEnableColor&&(this.flush(),this.lastEnableColor=this.enableColor),this.attributes[2].enabled=this.lastEnableColor,this.elementsPerVertex=this.getElementsPerVertex(),this.fillVertices(4*this.batchedSprites*this.elementsPerVertex,a.width,a.height,c,k,null,e,h),this.setState(this.batchedSprites,g,b,f,d,!0),this.batchedSprites++)}},renderTiles:function(a,b,c,d,e,f){null==f&&(f=-1);null==e&&(e=0);null==d&&(d=!1);var h=b.__bitmap.getTexture(this.gl);if(null!=h){var g=0<(e&1),k=0<(e&2),l=0<(e&16), m=0<(e&4),n=0<(e&8),x=0<(e&32),q=0<(e&64);switch(e&983040){case 65536:e=ya.ADD;break;case 131072:e=ya.MULTIPLY;break;case 262144:e=ya.SCREEN;break;case 524288:e=ya.SUBTRACT;break;default:switch(e&15728640){case 1048576:e=ya.DARKEN;break;case 2097152:e=ya.LIGHTEN;break;case 4194304:e=ya.OVERLAY;break;case 8388608:e=ya.HARDLIGHT;break;default:switch(e&251658240){case 16777216:e=ya.DIFFERENCE;break;case 33554432:e=ya.INVERT;break;default:e=ya.NORMAL}}}l&&(k=g=!1);var r=0,t=0,u=0,w=0,y=0,v=3;x&&(v=q? 8:6);g&&(r=v,v++);k&&(t=v,v++);l&&(y=v,v+=4);m&&(u=v,v+=3);n&&(w=v,v++);var z=c.length;0<=f&&z>f&&(z=f);f=0;var A=-1,B=b.__rectTile,A=b.__rectUV,C=b.__point,D=0,F=0,E=1,G=16777215,E=-1,J=1,K=0,N=1,M=K=J=N=K=0,O=F=D=0,I=0;this.matrix.identity();var L=a.__worldTransform;this.uvs.reset();F=0;this.enableColor=!0;this.enableColor!=this.lastEnableColor&&(this.flush(),this.lastEnableColor=this.enableColor);this.attributes[2].enabled=this.lastEnableColor;for(this.elementsPerVertex=this.getElementsPerVertex();f< z;)this.batchedSprites>=this.maxSprites&&this.flush(),D=c[f],F=c[f+1],x?(B.x=c[f+2],B.y=c[f+3],B.width=c[f+4],B.height=c[f+5],q?(C.x=c[f+6],C.y=c[f+7]):(C.x=0,C.y=0),A.setTo(B.get_left()/b.__bitmap.width,B.get_top()/b.__bitmap.height,B.get_right()/b.__bitmap.width,B.get_bottom()/b.__bitmap.height)):(A=(null==c[f+2]?0:c[f+2])|0,B=b.__tileRects[A],C=b.__centerPoints[A],A=b.__tileUVs[A]),null!=B&&0>8&255)<<8|G>>16&255,this.fillVertices(F,B.width,B.height,this.matrix,this.uvs,null,E,Ae.NEVER),this.setState(this.batchedSprites,h,d,e,a.__worldColorTransform,!1),this.batchedSprites++),f+=v}},renderCachedGraphics:function(a){var b=a.__graphics.__cachedTexture;if(null!=b){this.batchedSprites>=this.maxSprites&&this.flush();var c=((255*a.__worldAlpha|0)&255)<<24|16777215,d=new $k;d.x0=0;d.y0= 1;d.x1=1;d.y1=1;d.x2=1;d.y2=0;d.x3=0;d.y3=0;var e=a.__worldTransform.clone();e.__translateTransformed(a.__graphics.__bounds.x,a.__graphics.__bounds.y);this.enableColor=-1!=c;this.enableColor!=this.lastEnableColor&&(this.flush(),this.lastEnableColor=this.enableColor);this.attributes[2].enabled=this.lastEnableColor;this.elementsPerVertex=this.getElementsPerVertex();this.fillVertices(4*this.batchedSprites*this.elementsPerVertex,b.width,b.height,e,d,null,c,null);this.setState(this.batchedSprites,b.texture, null,a.blendMode,a.__worldColorTransform);this.batchedSprites++}},fillVertices:function(a,b,c,d,e,f,h,g){null==h&&(h=-1);var k,l,m;null==f?(k=b,b=0,l=c,m=0):(k=b*(1-f.x),b*=-f.x,l=c*(1-f.y),m=c*-f.y);null==g&&(g=Ae.NEVER);var n=g!=Ae.NEVER;f=d.a;g=d.b;var x=d.c;c=d.d;var q=d.tx;d=d.ty;if(n){var r=a++,t=Math.round(f*b+x*m+q);this.positions[r]=t;r=a++;t=Math.round(c*m+g*b+d);this.positions[r]=t}else r=a++,this.positions[r]=f*b+x*m+q,r=a++,this.positions[r]=c*m+g*b+d;r=a++;this.positions[r]=e.x0;r=a++; this.positions[r]=e.y0;this.enableColor&&(r=a++,this.colors[r]=h);n?(r=a++,t=Math.round(f*k+x*m+q),this.positions[r]=t,r=a++,m=Math.round(c*m+g*k+d),this.positions[r]=m):(r=a++,this.positions[r]=f*k+x*m+q,r=a++,this.positions[r]=c*m+g*k+d);m=a++;this.positions[m]=e.x1;m=a++;this.positions[m]=e.y1;this.enableColor&&(m=a++,this.colors[m]=h);n?(m=a++,r=Math.round(f*k+x*l+q),this.positions[m]=r,m=a++,k=Math.round(c*l+g*k+d),this.positions[m]=k):(m=a++,this.positions[m]=f*k+x*l+q,m=a++,this.positions[m]= c*l+g*k+d);k=a++;this.positions[k]=e.x2;k=a++;this.positions[k]=e.y2;this.enableColor&&(k=a++,this.colors[k]=h);n?(k=a++,f=Math.round(f*b+x*l+q),this.positions[k]=f,f=a++,b=Math.round(c*l+g*b+d),this.positions[f]=b):(k=a++,this.positions[k]=f*b+x*l+q,f=a++,this.positions[f]=c*l+g*b+d);b=a++;this.positions[b]=e.x3;b=a++;this.positions[b]=e.y3;this.enableColor&&(e=a++,this.colors[e]=h);this.writtenVertexBytes=a},enableAttributes:function(a){null==a&&(a=-1);this.enableColor=-1!=a;this.enableColor!=this.lastEnableColor&& (this.flush(),this.lastEnableColor=this.enableColor);this.attributes[2].enabled=this.lastEnableColor;this.elementsPerVertex=this.getElementsPerVertex()},flush:function(){if(0!=this.batchedSprites){null!=this.clipRect&&(this.gl.enable(this.gl.SCISSOR_TEST),this.gl.scissor(Math.ceil(this.clipRect.x),Math.ceil(this.clipRect.y),Math.ceil(this.clipRect.width),Math.ceil(this.clipRect.height)));this.dirty&&(this.dirty=!1,this.gl.activeTexture(this.gl.TEXTURE0),this.vertexArray.bind(),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER, this.indexBuffer));if(this.writtenVertexBytes>.5*this.vertexArraySize)this.vertexArray.upload(this.positions);else{var a=this.positions.subarray(0,this.writtenVertexBytes);this.vertexArray.upload(a)}var b=0,c=0;this.currentState.shader=this.renderSession.shaderManager.defaultShader;this.currentState.texture=null;this.currentState.textureSmooth=!1;this.currentState.blendMode=this.renderSession.blendModeManager.currentBlendMode;this.currentState.colorTransform=null;this.currentState.skipColorTransformAlpha= !1;for(var d=0,e=this.batchedSprites;d=c.__commands.get_length())){0==this.stencilMask&&(this.gl.enable(this.gl.STENCIL_TEST),this.gl.clear(this.gl.STENCIL_BUFFER_BIT));this.stencilMask++;c.__dirty&&ga.updateGraphics(a,c,b.gl);var d;d=1==this.stencilMask?this.gl.NEVER:this.gl.EQUAL;var e=this.stencilMask,f=255-this.stencilMask;this.gl.stencilMask(255); this.gl.colorMask(!1,!1,!1,!1);this.gl.stencilFunc(d,e,f);this.gl.stencilOp(this.gl.REPLACE,this.gl.KEEP,this.gl.KEEP);var c=c.__glStack[ud.glContextId],h=a.__worldTransform;d=0;for(e=c.buckets.length;d=this.stencilMask&&(this.gl.disable(this.gl.STENCIL_TEST),this.stencilMask=0)},bindGraphics:function(a,b,c){},destroy:function(){this.gl=this.stencilStack=null},popStencil:function(a,b,c){this.stencilStack.pop();this.count--;if(0==this.stencilStack.length)this.gl.disable(this.gl.STENCIL_TEST);else{var d=this.count;this.bindGraphics(a,b,c);this.gl.colorMask(!1,!1,!1,!1);1==b.mode?((this.reverse=!this.reverse)?(this.gl.stencilFunc(this.gl.EQUAL, 255-(d+1),255),this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.INCR)):(this.gl.stencilFunc(this.gl.EQUAL,d+1,255),this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.DECR)),this.gl.drawElements(this.gl.TRIANGLE_FAN,4,this.gl.UNSIGNED_SHORT,2*(b.indices.length-4)),this.gl.stencilFunc(this.gl.ALWAYS,0,255),this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.INVERT),this.gl.drawElements(this.gl.TRIANGLE_FAN,b.indices.length-4,this.gl.UNSIGNED_SHORT,0)):(this.reverse?(this.gl.stencilFunc(this.gl.EQUAL, d+1,255),this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.DECR)):(this.gl.stencilFunc(this.gl.EQUAL,255-(d+1),255),this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.INCR)),this.gl.drawElements(this.gl.TRIANGLE_STRIP,b.indices.length,this.gl.UNSIGNED_SHORT,0));this.reverse?this.gl.stencilFunc(this.gl.EQUAL,d,255):this.gl.stencilFunc(this.gl.EQUAL,255-d,255);this.gl.colorMask(!0,!0,!0,!0);this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.KEEP)}},pushStencil:function(a,b,c){this.bindGraphics(a, b,c);0==this.stencilStack.length&&(this.gl.enable(this.gl.STENCIL_TEST),this.gl.clear(this.gl.STENCIL_BUFFER_BIT),this.reverse=!0,this.count=0);this.stencilStack.push(b);a=this.count;this.gl.colorMask(!1,!1,!1,!1);this.gl.stencilFunc(this.gl.ALWAYS,0,255);this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.INVERT);1==b.mode?(this.gl.drawElements(this.gl.TRIANGLE_FAN,b.indices.length-4,this.gl.UNSIGNED_SHORT,0),this.reverse?(this.gl.stencilFunc(this.gl.EQUAL,255-a,255),this.gl.stencilOp(this.gl.KEEP, this.gl.KEEP,this.gl.DECR)):(this.gl.stencilFunc(this.gl.EQUAL,a,255),this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.INCR)),this.gl.drawElements(this.gl.TRIANGLE_FAN,4,this.gl.UNSIGNED_SHORT,2*(b.indices.length-4)),this.reverse?this.gl.stencilFunc(this.gl.EQUAL,255-(a+1),255):this.gl.stencilFunc(this.gl.EQUAL,a+1,255),this.reverse=!this.reverse):(this.reverse?(this.gl.stencilFunc(this.gl.EQUAL,a,255),this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.INCR)):(this.gl.stencilFunc(this.gl.EQUAL, 255-a,255),this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.DECR)),this.gl.drawElements(this.gl.TRIANGLE_STRIP,b.indices.length,this.gl.UNSIGNED_SHORT,0),this.reverse?this.gl.stencilFunc(this.gl.EQUAL,a+1,255):this.gl.stencilFunc(this.gl.EQUAL,255-(a+1),255));this.gl.colorMask(!0,!0,!0,!0);this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.KEEP);this.count++},setContext:function(a){this.gl=a},__class__:nr};var io=function(a,b,c){null==c&&(c=!1);null==b&&(b=0);this.isStatic=!1;this.size=0;this.attributes= [];this.size=b;this.attributes=a;0a||a>this.lineBreaks.length+1?null:0==this.lineBreaks.length?this.text:this.text.substring(0this.numLines-1;)this.lineAscents.push(a),this.lineDescents.push(b),this.lineLeadings.push(null!=c?c:0),this.lineHeights.push(d),this.lineWidths.push(e),b=a=0,c=null,e=d=0,this.numLines++,this.textHeight<=this.height-2&&this.bottomScrollV++; a=Math.max(a,g.ascent);b=Math.max(b,g.descent);c=null==c?g.leading:y["int"](Math.max(c,g.leading));d=Math.max(d,g.height);e=g.offsetX-2+g.width;e>this.textWidth&&(this.textWidth=e);this.textHeight=g.offsetY-2+g.ascent+g.descent}this.lineAscents.push(a);this.lineDescents.push(b);this.lineLeadings.push(null!=c?c:0);this.lineHeights.push(d);this.lineWidths.push(e);1==this.numLines?(this.bottomScrollV=1,0 this.width-4?this.textWidth-this.width+4|0:0;this.maxScrollV=this.numLines-this.bottomScrollV+1},getLayoutGroups:function(){this.layoutGroups.splice(0,this.layoutGroups.length);var a=-1,b=null,c=La.__defaultTextFormat.clone(),d=0,e=0,f=0,h,g,k,l=0,m=0,n=0,x=this.text.indexOf(" "),q=this.text.indexOf("\n"),r=0,t=2,u=2,w=0,y=0,v=null;a=q){h=new Xj(b.format,w,q);g=this.text;for(z=[];wthis.width-2&&(h.offsetY=u,h.offsetX=t,u+=l,y++);w=q+ 1;q=this.text.indexOf("\n",w);y++;b.end==q&&(a=x&&-1this.width-2&&(z=!0); if(z){u+=l;t=this.layoutGroups.length-1;for(r=0;;){h=this.layoutGroups[t];if(0n)r++;else break;t--}y++;t=2;if(0q&&-1this.text.length||x>b.end||-1==x&&-1=b.end)break;h=new Xj(b.format,w,b.end);g=this.text;for(z=[];w=this.__worldAlpha||null==this.bitmapData||!this.bitmapData.__isValid?null:a.spriteBatch.renderBitmapData(this.bitmapData,this.smoothing,this.__renderTransform,this.__worldColorTransform,this.__worldAlpha,this.__blendMode, this.pixelSnapping);null!=this.__mask&&null!=this.__maskGraphics&&0a&&(a=0);0>b&&(b=0);this.width=a;this.height=b;this.rect=new va(0,0,a,b);0>24&255),this.image.set_transparent(c),this.__isValid=!0);this.__createUVs();this.__worldTransform=new pa;this.__worldColorTransform=new zf};g["openfl.display.BitmapData"]=qb;qb.__name__=["openfl","display","BitmapData"];qb.__interfaces__=[ul];qb.fromBase64=function(a,b,c){var d=new qb(0,0,!0);d.__fromBase64(a, b,c);return d};qb.fromBytes=function(a,b,c){var d=new qb(0,0,!0);d.__fromBytes(a,b,c);return d};qb.fromCanvas=function(a,b){null==b&&(b=!0);if(null==a)return null;var c=new qb(0,0,b);c.__fromImage(Fb.fromCanvas(a));c.image.set_transparent(b);return c};qb.fromFile=function(a,b,c){var d=new qb(0,0,!0);d.__fromFile(a,b,c);return d};qb.fromImage=function(a,b){null==b&&(b=!0);if(null==a||null==a.buffer)return null;var c=new qb(0,0,b);c.__fromImage(a);c.image.set_transparent(b);return c};qb.__ucompare= function(a,b){var c,d;c=a>>24&255;d=b>>24&255;if(c!=d)return c>d?1:-1;c=a>>16&255;d=b>>16&255;if(c!=d)return c>d?1:-1;c=a>>8&255;d=b>>8&255;if(c!=d)return c>d?1:-1;c=a&255;d=b&255;return c!=d?c>d?1:-1:0};qb.prototype={height:null,image:null,rect:null,transparent:null,width:null,__worldTransform:null,__worldColorTransform:null,__cacheAsBitmap:null,__blendMode:null,__buffer:null,__isValid:null,__surface:null,__texture:null,__textureImage:null,__framebuffer:null,__uvData:null,__usingFramebuffer:null, applyFilter:function(a,b,c,d){this.__isValid&&null!=a&&a.__isValid&&(ia.convertToCanvas(this.image),ia.createImageData(this.image),ia.convertToCanvas(a.image),ia.createImageData(a.image),d.__applyFilter(this.image.buffer.__srcImageData,a.image.buffer.__srcImageData,b,c),this.image.dirty=!0)},clone:function(){return this.__isValid?qb.fromImage(this.image.clone(),this.transparent):new qb(this.width,this.height,this.transparent)},colorTransform:function(a,b){this.__isValid&&(this.image.colorTransform(a.__toLimeRectangle(), b.__toLimeColorMatrix()),this.__usingFramebuffer=!1)},compare:function(a){if(a==this)return 0;if(null==a)return-1;if(0==this.__isValid||0==a.__isValid)return-2;if(this.width!=a.width)return-3;if(this.height!=a.height)return-4;if(null!=this.image&&null!=a.image&&this.image.get_format()==a.image.get_format()){for(var b=this.image.get_data(),c=a.image.get_data(),d=!0,e=0,f=b.length;e>16&255)-(k>>16&255),m=(g>>8&255)-(k>>8&255),n=(g&255)-(k&255),0>l&&(l*=-1),0>m&&(m*=-1),0>n&&(n*=-1),0==l&&0==m&&0==n?(g=(g>>24&255)-(k>>24&255),0!=g&&(d=(d>>24&255)<<24|16711680|(d>>8&255)<<8|d&255,255,d=(d>>24&255)<<24|(d>>16&255)<<16|65280|d&255,255,d=(d>>24&255)<<24|(d>>16&255)<<16|(d>>8&255)<<8|255,255,d=(g&255)<<24|(d>>16&255)<<16|(d>>8&255)<<8|d&255,g,c=!0)):(d=(d>>24&255)<<24|(l&255)<<16|(d>> 8&255)<<8|d&255,l,d=(d>>24&255)<<24|(d>>16&255)<<16|(m&255)<<8|d&255,m,d=(d>>24&255)<<24|(d>>16&255)<<16|(d>>8&255)<<8|n&255,n,d=-16777216|(d>>16&255)<<16|(d>>8&255)<<8|d&255,255,c=!0));c&&(null==b&&(b=new qb(this.width,this.height,this.transparent||a.transparent,0)),b.setPixel32(r,h,d))}return null==b?0:b},copyChannel:function(a,b,c,d,e){if(this.__isValid){switch(d){case 1:d=Jc.RED;break;case 2:d=Jc.GREEN;break;case 4:d=Jc.BLUE;break;case 8:d=Jc.ALPHA;break;default:return}switch(e){case 1:e=Jc.RED; break;case 2:e=Jc.GREEN;break;case 4:e=Jc.BLUE;break;case 8:e=Jc.ALPHA;break;default:return}this.image.copyChannel(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),d,e);this.__usingFramebuffer=!1}},copyPixels:function(a,b,c,d,e,f){null==f&&(f=!1);this.__isValid&&null!=a&&(this.image.copyPixels(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),null!=d?d.image:null,null!=e?e.__toLimeVector2():null,f),this.__usingFramebuffer=!1)},dispose:function(){this.image=null;this.height=this.width=0;this.rect= null;this.__isValid=!1;if(null!=this.__texture){var a=ha.current.stage.__renderer;null!=a&&(a=a.renderSession.gl,null!=a&&(a.deleteTexture(this.__texture),this.__texture=null))}null!=this.__framebuffer&&(this.__framebuffer.destroy(),this.__framebuffer=null)},draw:function(a,b,c,d,e,f){null==f&&(f=!1);if(this.__isValid){null!=c&&(d=new qb(r.getProperty(a,"width"),r.getProperty(a,"height"),!0,0),d.draw(a),d.colorTransform(d.rect,c),a=d);ia.convertToCanvas(this.image);ia.sync(this.image,!0);c=this.image.buffer; d=new Bi;d.context=c.__srcContext;d.roundPixels=!0;d.maskManager=new Yk(d);f||(c.__srcContext.mozImageSmoothingEnabled=!1,c.__srcContext.msImageSmoothingEnabled=!1,c.__srcContext.imageSmoothingEnabled=!1);null!=e&&d.maskManager.pushRect(e,new pa);var h=a.__worldTransform;a.__worldTransform=null!=b?b:new pa;a.__updateChildren(!1);a.__renderCanvas(d);a.__worldTransform=h;a.__updateChildren(!0);f||(c.__srcContext.mozImageSmoothingEnabled=!0,c.__srcContext.msImageSmoothingEnabled=!0,c.__srcContext.imageSmoothingEnabled= !0);null!=e&&d.maskManager.popMask();c.__srcContext.setTransform(1,0,0,1,0,0);c.__srcImageData=null;c.data=null}},encode:function(a,b,c){return this.__isValid&&null!=a?m.__instanceof(b,tr)?this.image.encode("png"):m.__instanceof(b,lo)?this.image.encode("jpg",m.__cast(b,lo).quality):null:null},fillRect:function(a,b){this.__isValid&&null!=a&&(this.image.fillRect(a.__toLimeRectangle(),b,1),this.__usingFramebuffer=!1)},floodFill:function(a,b,c){this.__isValid&&(this.image.floodFill(a,b,c,1),this.__usingFramebuffer= !1)},generateFilterRect:function(a,b){return a.clone()},getBuffer:function(a){if(null==this.__buffer){var b=[this.width,this.height,0,1,1,0,this.height,0,0,1,this.width,0,0,1,0,0,0,0,0,0];this.__buffer=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.__buffer);a.bufferData(a.ARRAY_BUFFER,null!=b?new Float32Array(b):null,a.STATIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,null)}return this.__buffer},getColorBoundsRect:function(a,b,c){null==c&&(c=!0);if(!this.__isValid)return new va(0,0,this.width,this.height); 0==(b>>24&255)&&(b=0);a=this.image.getColorBoundsRect(a,b,c,1);return new va(a.x,a.y,a.width,a.height)},getPixel:function(a,b){return this.__isValid?this.image.getPixel(a,b,1):0},getPixel32:function(a,b){return this.__isValid?this.image.getPixel32(a,b,1):0},getPixels:function(a){if(!this.__isValid)return null;null==a&&(a=this.rect);return this.image.getPixels(a.__toLimeRectangle(),1)},getSurface:function(){if(!this.__isValid)return null;null==this.__surface&&(this.__surface=sg.fromImage(this.image)); return this.__surface},getTexture:function(a){if(!this.__isValid)return null;if(this.__usingFramebuffer&&null!=this.__framebuffer)return this.__framebuffer.texture;null==this.__texture&&(this.__texture=a.createTexture(),a.bindTexture(a.TEXTURE_2D,this.__texture),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST), this.image.dirty=!0);if(null!=this.image&&this.image.dirty){var b,c;null!=this.__surface&&hs.flush(this.__surface);c=1==this.image.buffer.bitsPerPixel?b=a.ALPHA:b=a.RGBA;a.bindTexture(a.TEXTURE_2D,this.__texture);var d=this.image;if(!d.get_premultiplied()&&d.get_transparent()||0!=d.get_format())d=d.clone(),d.set_format(0),d.set_premultiplied(!0);a.texImage2D(a.TEXTURE_2D,0,b,this.width,this.height,0,c,a.UNSIGNED_BYTE,d.get_data());a.bindTexture(a.TEXTURE_2D,null);this.image.dirty=!1}return this.__texture}, getVector:function(a){a=this.getPixels(a);var b=a.length/4|0,c;c=new Xb;c.data=Array(b);c.length=b;c.fixed=!0;for(var d=0;d=c.length&&(c.length=e+1),c.data.lengthc;)c++,b.push(function(a){a=[];for(var b=0;256>b;)b++,a.push(0);return a}(this)); for(var c=0,d=a.length;c>24&255)>=b)return!0}else if(m.__instanceof(c,qb)){var f,h;null==d?h=f=0:(f=d.x-a.x|0,h=d.y-a.y|0);if(this.rect.contains(f,h)){d=va.__temp;d.setTo(f,h,Math.min(c.width,this.width-f),Math.min(c.height, this.height-h));a=this.getPixels(d);d.offset(-f,-h);c=c.getPixels(d);f=d.width*d.height|0;for(var g=0;g>24&255)>=b&&(h>>24&255)>=e)return!0}}else if(m.__instanceof(c,va)&&(e=va.__temp,e.copyFrom(c),e.offset(-a.x,-a.y),e.__contract(0,0,this.width,this.height),0>24&255)>=b)return!0;return!1},lock:function(){},merge:function(a,b,c,d,e,f,h){this.__isValid&& null!=a&&a.__isValid&&null!=b&&null!=c&&(this.image.merge(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),d,e,f,h),this.__usingFramebuffer=!1)},noise:function(a,b,c,d,e){this.__isValid&&ha.notImplemented("BitmapData.noise")},paletteMap:function(a,b,c,d,e,f,h){a=b.width|0;var g=b.height|0;b=this.getPixels(b);b.position=0;for(var k,l,m,n,x,q,r,t=0,u=g*a;t>24&255];x=null==d?k&16711680:d[k>>16&255];q=null==e?k&65280:e[k>>8&255];r=null== f?k&255:f[k&255];n=(m>>24&255)+(x>>24&255)+(q>>24&255)+(r>>24&255);255>16&255)+(x>>16&255)+(q>>16&255)+(r>>16&255);255>8&255)+(x>>8&255)+(q>>8&255)+(r>>8&255);255a.width||b.y>a.height||c.x>this.width||c.y>this.height)return 0;if(a==this&&b.equals(this.rect)&&0==c.x&&0==c.y){var k=0,l=new ib(this.width*this.height*4),l=this.getPixels(this.rect);l.position=0;kb.select(l);for(var m=e&h,n,x=0,q=this.height;x"==d?g=1==e:"!="==d?g=0!=e:"<="==d?g=0==e||-1==e:">="==d&&(g=0==e||1==e),g&&(kb.setI32(n,f),k++)}l.position=0;this.setPixels(this.rect,l);kb.select(null);return k}b=b.clone();b.get_right()>a.width&&(b.width=a.width-b.x);b.get_bottom()>a.height&&(b.height=a.height-b.y);k=b.clone();k.offsetPoint(c);k.get_right()>this.width&&(k.width=this.width-k.x);k.get_bottom()>this.height&&(k.height=this.height-k.y);b.width=Math.min(b.width,k.width); b.height=Math.min(b.height,k.height);l=b.x|0;m=b.y|0;x=b.width|0;n=b.height|0;q=c.x|0;c=c.y|0;r=this.width-x-q;q=0>r?x+(this.width-x-q):x;c=0>r?n+(this.height-n-c):n;r=0;t=x*n*4;n=new ib(t+x*n*4);n.position=0;a=a.getPixels(b);g?n.writeBytes(a):n.writeBytes(this.getPixels(k));n.position=t;n.writeBytes(a);n.position=0;kb.select(n);e&=h;var u,w;for(a=0;a"==d?w=1==u:"!="==d?w=0!=u:"<="==d?w=0==u||-1==u:">="==d&&(w=0==u||1==u),w&&(kb.setI32(g,f),r++)}n.position=0;this.setPixels(k,n);kb.select(null);return r},unlock:function(a){},__createUVs:function(){null==this.__uvData&&(this.__uvData=new $k);this.__uvData.x0=0;this.__uvData.y0=0;this.__uvData.x1=1;this.__uvData.y1=0;this.__uvData.x2=1;this.__uvData.y2=1;this.__uvData.x3=0;this.__uvData.y3=1},__drawGL:function(a,b,c,d,e,f,h,g,k,l,m,n){null==n&&(n=!1);null==m&&(m= !1);null==l&&(l=!1);null==k&&(k=!1);a=ha.current.stage.__renderer;if(null!=a){var x=a.renderSession,q=x.gl;if(null!=q){var r=x.spriteBatch,t=x.renderer.transparent;g=null==g?new va(0,0,b,c):g.clone();x.renderer.transparent=this.transparent;null==this.__framebuffer&&(this.__framebuffer=new qr(q,b,c,k));this.__framebuffer.resize(b,c);q.bindFramebuffer(q.FRAMEBUFFER,this.__framebuffer.frameBuffer);a.setViewport(0,0,b,c);r.begin(x,l?null:g);q.colorMask(!0,!0,!0,!0);x.blendModeManager.setBlendMode(ya.NORMAL); x.shaderManager.setShader(x.shaderManager.defaultShader,!0);(m||l)&&this.__framebuffer.clear();l&&(this.__worldTransform.identity(),this.__flipMatrix(this.__worldTransform),this.__renderGL(x),r.stop(),q.deleteTexture(this.__texture),this.__texture=null,r.start(g));k=d.__worldColorTransform;l=d.__worldTransform;m=d.__blendMode;g=d.__cacheAsBitmap;e=null!=e?new pa(e.a,e.b,e.c,e.d,e.tx,e.ty):new pa;this.__flipMatrix(e);d.__worldTransform=e;d.__worldColorTransform=null!=f?f:new zf;d.__blendMode=h;d.__cacheAsBitmap= !1;d.__updateChildren(!1);d.__renderGL(x);d.__worldColorTransform=k;d.__worldTransform=l;d.__blendMode=m;d.__cacheAsBitmap=g;d.__updateChildren(!0);r.finish();n&&(this.image.width==b&&this.image.height==c||this.image.resize(b,c),q.readPixels(0,0,b,c,q.RGBA,q.UNSIGNED_BYTE,this.image.buffer.data));q.bindFramebuffer(q.FRAMEBUFFER,x.defaultFramebuffer);a.setViewport(0,0,x.renderer.width,x.renderer.height);x.renderer.transparent=t;q.colorMask(!0,!0,!0,x.renderer.transparent);this.__usingFramebuffer=!1; null!=this.image&&(this.image.dirty=!1,this.image.set_premultiplied(!0));this.__createUVs();this.__isValid=!0}}},__flipMatrix:function(a){var b=a.tx,c=a.ty;a.tx=0;a.ty=0;a.scale(1,-1);a.translate(0,this.height);a.tx+=b;a.ty-=c},__fromBase64:function(a,b,c){var d=this;Fb.fromBase64(a,b,function(a){d.__fromImage(a);null!=c&&c(d)})},__fromBytes:function(a,b,c){var d=this;Fb.fromBytes(a,function(a){d.__fromImage(a);if(null!=b){ia.convertToCanvas(a);ia.createImageData(a);for(var f=a.buffer.data,h=0,g= b.length;hthis.__positionX||a>e&&athis.__positionX||c>e&&cg&&(h=this.__calculateBezierCubicPoint(g,this.__positionX,a,c,e));0l&&(k= this.__calculateBezierCubicPoint(l,this.__positionX,a,c,e))}l=g=f;if(!(bthis.__positionX||b>f&&bthis.__positionX||d>f&&dm&&(g=this.__calculateBezierCubicPoint(m,this.__positionX,b,d,f));0n&&(l=this.__calculateBezierCubicPoint(n,this.__positionX,b,d,f))}this.__inflateBounds(h-this.__strokePadding, g-this.__strokePadding);this.__inflateBounds(h+this.__strokePadding,g+this.__strokePadding);this.__inflateBounds(k-this.__strokePadding,l-this.__strokePadding);this.__inflateBounds(k+this.__strokePadding,l+this.__strokePadding);this.__positionX=e;this.__positionY=f;this.__commands.cubicCurveTo(a,b,c,d,e,f);this.__hardware=!1;this.set___dirty(!0)},curveTo:function(a,b,c,d){this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+ this.__strokePadding,this.__positionY+this.__strokePadding);var e,f;e=athis.__positionX||a>c&&athis.__positionY||b>d&&b=c||(this.__inflateBounds(a-c-this.__strokePadding,b-c-this.__strokePadding),this.__inflateBounds(a+c+this.__strokePadding,b+c+this.__strokePadding),this.__commands.drawCircle(a,b,c),this.__hardware=!1,this.set___dirty(!0))},drawEllipse:function(a,b,c,d){0>=c||0>=d||(this.__inflateBounds(a-this.__strokePadding,b-this.__strokePadding),this.__inflateBounds(a+c+ this.__strokePadding,b+d+this.__strokePadding),this.__commands.drawEllipse(a,b,c,d),this.__hardware=!1,this.set___dirty(!0))},drawGraphicsData:function(a){for(var b,c,d=0;d=c||0>=d||(this.__inflateBounds(a-this.__strokePadding,b-this.__strokePadding),this.__inflateBounds(a+c+this.__strokePadding,b+d+this.__strokePadding),this.__commands.drawRect(a,b,c,d),this.set___dirty(!0))},drawRoundRect:function(a,b,c,d,e,f){null==f&&(f=-1);0>=c||0>=d||(this.__inflateBounds(a-this.__strokePadding,b-this.__strokePadding),this.__inflateBounds(a+c+ this.__strokePadding,b+d+this.__strokePadding),this.__commands.drawRoundRect(a,b,c,d,e,f),this.__hardware=!1,this.set___dirty(!0))},drawRoundRectComplex:function(a,b,c,d,e,f,h,g){ha.notImplemented("Graphics.drawRoundRectComplex")},drawTiles:function(a,b,c,d,e){null==e&&(e=-1);null==d&&(d=0);null==c&&(c=!1);var f=0<(d&1),h=0<(d&2),g=0<(d&4),k=0<(d&8),l=0<(d&16),m=0<(d&32),n=0<(d&64),q=va.__temp,r=pa.__temp,t=3,u=e;0>e&&(u=b.length);if(l||f||h||g||k){var w=0,v=0,z=0;m&&(t=n?8:6);f&&(w=t,t++);h&&(v= t,t++);l&&(z=t,t+=4);g&&(t+=3);k&&t++;for(var g=0,k=-1,A,B,C,D,F,E=null,G=null;gC?E=null:m||k==C?m&&(E=a.__rectTile,E.setTo(b[g+2],b[g+3],b[g+4],b[g+5]),G=a.__point,n?(G.x=b[g+6]/E.width,G.y=b[g+7]/E.height):(G.x=0,G.y=0)):(k=C,E=a.__tileRects[C],G=a.__centerPoints[C]),null!=E&&(l?(q.setTo(0,0,E.width,E.height),r.setTo(b[g+z],b[g+z+1],b[g+z+2],b[g+z+3],0,0),F=G.x*E.width,D=G.y*E.height,r.translate(A-(F*r.a+D*r.c+r.tx),B-(F* r.b+D*r.d+r.ty)),q.__transform(q,r),this.__inflateBounds(q.x,q.y),this.__inflateBounds(q.get_right(),q.get_bottom())):(C=E.width*D,D*=E.height,A-=G.x*C,B-=G.y*D,0!=F?(q.setTo(0,0,C,D),r.identity(),r.rotate(F),r.translate(A,B),q.__transform(q,r),this.__inflateBounds(q.x,q.y),this.__inflateBounds(q.get_right(),q.get_bottom())):(this.__inflateBounds(A,B),this.__inflateBounds(A+C,B+D)))),g+=t}else for(r=va.__temp,t=0;tthis.__strokePadding&&(this.__strokePadding=a):a/2>this.__strokePadding&&(this.__strokePadding=a/2));this.__commands.lineStyle(a,b,c,d,e,f,h,g);null!=a&&(this.__visible=!0)},lineTo:function(a, b){this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding);this.__positionX=a;this.__positionY=b;this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+2*this.__strokePadding,this.__positionY+this.__strokePadding);this.__commands.lineTo(a,b);this.__hardware=!1;this.set___dirty(!0)}, moveTo:function(a,b){this.__positionX=a;this.__positionY=b;this.__commands.moveTo(a,b)},__calculateBezierCubicPoint:function(a,b,c,d,e){var f=1-a;return b*f*f*f+3*c*a*f*f+3*d*f*a*a+e*a*a*a},__calculateBezierQuadPoint:function(a,b,c,d){var e=1-a;return e*e*b+2*e*a*c+a*a*d},__getBounds:function(a,b){if(null!=this.__bounds){var c=va.__temp;this.__bounds.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height)}},__hitTest:function(a,b,c,d){if(null==this.__bounds)return!1;var e=d.__transformInverseX(a,b); a=d.__transformInverseY(a,b);return e>this.__bounds.x&&a>this.__bounds.y&&this.__bounds.contains(e,a)?c?z.hitTest(this,e,a):!0:!1},__inflateBounds:function(a,b){null==this.__bounds?(this.__bounds=new va(a,b,0,0),this.__transformDirty=!0):(athis.__bounds.x+this.__bounds.width&&(this.__bounds.width= a-this.__bounds.x),b>this.__bounds.y+this.__bounds.height&&(this.__bounds.height=b-this.__bounds.y))},set___dirty:function(a){a&&null!=this.__owner&&this.__owner.__setRenderDirty();return this.__dirty=a},__class__:Fc,__properties__:{set___dirty:"set___dirty"}};var Yj=function(){};g["openfl.display.IGraphicsFill"]=Yj;Yj.__name__=["openfl","display","IGraphicsFill"];Yj.prototype={__graphicsFillType:null,__class__:Yj};var Nh=function(){};g["openfl.display.IGraphicsData"]=Nh;Nh.__name__=["openfl","display", "IGraphicsData"];Nh.prototype={__graphicsDataType:null,__class__:Nh};var cl=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!0);this.bitmapData=a;this.matrix=b;this.repeat=c;this.smooth=d;this.__graphicsDataType=tc.BITMAP;this.__graphicsFillType=Pd.BITMAP_FILL};g["openfl.display.GraphicsBitmapFill"]=cl;cl.__name__=["openfl","display","GraphicsBitmapFill"];cl.__interfaces__=[Yj,Nh];cl.prototype={bitmapData:null,matrix:null,repeat:null,smooth:null,__graphicsDataType:null,__graphicsFillType:null,__class__:cl}; var po=function(){this.__graphicsDataType=tc.END;this.__graphicsFillType=Pd.END_FILL};g["openfl.display.GraphicsEndFill"]=po;po.__name__=["openfl","display","GraphicsEndFill"];po.__interfaces__=[Yj,Nh];po.prototype={__graphicsDataType:null,__graphicsFillType:null,__class__:po};var dl=function(a,b,c,d,e,f,h,g){null==g&&(g=0);null==a&&(a=aa.LINEAR);null==f&&(f=Ja.PAD);null==h&&(h=hg.RGB);this.type=a;this.colors=b;this.alphas=c;this.ratios=d;this.matrix=e;this.spreadMethod=f;this.interpolationMethod= h;this.focalPointRatio=g;this.__graphicsDataType=tc.GRADIENT;this.__graphicsFillType=Pd.GRADIENT_FILL};g["openfl.display.GraphicsGradientFill"]=dl;dl.__name__=["openfl","display","GraphicsGradientFill"];dl.__interfaces__=[Yj,Nh];dl.prototype={alphas:null,colors:null,focalPointRatio:null,interpolationMethod:null,matrix:null,ratios:null,spreadMethod:null,type:null,__graphicsDataType:null,__graphicsFillType:null,__class__:dl};var Hs=function(){};g["openfl.display.IGraphicsPath"]=Hs;Hs.__name__=["openfl", "display","IGraphicsPath"];var oo=function(a,b,c){null==c&&(c=eh.EVEN_ODD);this.commands=a;this.data=b;this.winding=c;this.__graphicsDataType=tc.PATH};g["openfl.display.GraphicsPath"]=oo;oo.__name__=["openfl","display","GraphicsPath"];oo.__interfaces__=[Hs,Nh];oo.prototype={commands:null,data:null,winding:null,__graphicsDataType:null,curveTo:function(a,b,c,d){if(null!=this.commands&&null!=this.data){var e=this.commands;if(!e.fixed){e.length++;if(e.data.lengththis.__dragBounds.get_right()&&(b=this.__dragBounds.get_right()),athis.__dragBounds.get_bottom()&&(a=this.__dragBounds.get_bottom()));this.__dragObject.set_x(b);this.__dragObject.set_y(a)},__fireEvent:function(a,b){var c=b.length;if(0==c)a.eventPhase=Qd.AT_TARGET,a.target.__broadcast(a,!1);else{a.eventPhase=Qd.CAPTURING_PHASE;a.target=b[b.length-1];for(var d=0,e=c-1;da-this.__lastClickTime?(this.__fireEvent(A.__create(A.DOUBLE_CLICK,d,this.__mouseX,this.__mouseY,f==this?h:f.globalToLocal(h),f),e),this.__lastClickTime=0):this.__lastClickTime=a));f=null;for(d=0;d>>16)/255,((a&65280)>>>8)/255,(a&255)/255];this.__colorString="#"+W.hex(a,6);return this.__color=a},get_displayState:function(){return this.__displayState},set_displayState:function(a){if(null!=this.window)switch(a[1]){case 0:this.window.__fullscreen&&(this.window.set_fullscreen(!1),this.dispatchEvent(new ef(ef.FULL_SCREEN,!1,!1,!1,!0)));break;default:this.window.__fullscreen||(this.window.set_fullscreen(!0), this.dispatchEvent(new ef(ef.FULL_SCREEN,!1,!1,!0,!0)))}return this.__displayState=a},get_focus:function(){return this.__focus},set_focus:function(a){if(a!=this.__focus){var b=this.__focus;this.__focus=a;if(null!=b){var c=new Oc(Oc.FOCUS_OUT,!0,!1,this.__focus,!1,0);this.__stack=[];b.__getInteractive(this.__stack);this.__stack.reverse();this.__fireEvent(c,this.__stack)}null!=this.__focus&&(b=new Oc(Oc.FOCUS_IN,!0,!1,b,!1,0),this.__stack=[],a.__getInteractive(this.__stack),this.__stack.reverse(),this.__fireEvent(b, this.__stack))}return this.__focus},get_frameRate:function(){return null!=this.application?this.application.backend.getFrameRate():0},set_frameRate:function(a){return null!=this.application?this.application.backend.setFrameRate(a):a},__class__:el,__properties__:t(oe.prototype.__properties__,{set_frameRate:"set_frameRate",get_frameRate:"get_frameRate",set_focus:"set_focus",get_focus:"get_focus",set_displayState:"set_displayState",get_displayState:"get_displayState",set_color:"set_color",get_color:"get_color"})}); var ro=function(){Qa.call(this)};g["openfl.display.Stage3D"]=ro;ro.__name__=["openfl","display","Stage3D"];ro.__super__=Qa;ro.prototype=t(Qa.prototype,{context3D:null,visible:null,x:null,y:null,requestContext3D:function(a){null==a&&(a="");var b=this;Ag.get_isSupported()?Qb.delay(function(){b.context3D=new Ca;b.dispatchEvent(new J(J.CONTEXT3D_CREATE))},1):Qb.delay(function(){b.dispatchEvent(new ne(ne.ERROR))},1)},__class__:ro});var Sb=g["openfl.display.StageAlign"]={__ename__:["openfl","display","StageAlign"], __constructs__:"TOP_RIGHT TOP_LEFT TOP RIGHT LEFT BOTTOM_RIGHT BOTTOM_LEFT BOTTOM".split(" ")};Sb.TOP_RIGHT=["TOP_RIGHT",0];Sb.TOP_RIGHT.toString=D;Sb.TOP_RIGHT.__enum__=Sb;Sb.TOP_LEFT=["TOP_LEFT",1];Sb.TOP_LEFT.toString=D;Sb.TOP_LEFT.__enum__=Sb;Sb.TOP=["TOP",2];Sb.TOP.toString=D;Sb.TOP.__enum__=Sb;Sb.RIGHT=["RIGHT",3];Sb.RIGHT.toString=D;Sb.RIGHT.__enum__=Sb;Sb.LEFT=["LEFT",4];Sb.LEFT.toString=D;Sb.LEFT.__enum__=Sb;Sb.BOTTOM_RIGHT=["BOTTOM_RIGHT",5];Sb.BOTTOM_RIGHT.toString=D;Sb.BOTTOM_RIGHT.__enum__= Sb;Sb.BOTTOM_LEFT=["BOTTOM_LEFT",6];Sb.BOTTOM_LEFT.toString=D;Sb.BOTTOM_LEFT.__enum__=Sb;Sb.BOTTOM=["BOTTOM",7];Sb.BOTTOM.toString=D;Sb.BOTTOM.__enum__=Sb;var Ke=g["openfl.display.StageDisplayState"]={__ename__:["openfl","display","StageDisplayState"],__constructs__:["NORMAL","FULL_SCREEN","FULL_SCREEN_INTERACTIVE"]};Ke.NORMAL=["NORMAL",0];Ke.NORMAL.toString=D;Ke.NORMAL.__enum__=Ke;Ke.FULL_SCREEN=["FULL_SCREEN",1];Ke.FULL_SCREEN.toString=D;Ke.FULL_SCREEN.__enum__=Ke;Ke.FULL_SCREEN_INTERACTIVE=["FULL_SCREEN_INTERACTIVE", 2];Ke.FULL_SCREEN_INTERACTIVE.toString=D;Ke.FULL_SCREEN_INTERACTIVE.__enum__=Ke;var Be=g["openfl.display.StageQuality"]={__ename__:["openfl","display","StageQuality"],__constructs__:["BEST","HIGH","MEDIUM","LOW"]};Be.BEST=["BEST",0];Be.BEST.toString=D;Be.BEST.__enum__=Be;Be.HIGH=["HIGH",1];Be.HIGH.toString=D;Be.HIGH.__enum__=Be;Be.MEDIUM=["MEDIUM",2];Be.MEDIUM.toString=D;Be.MEDIUM.__enum__=Be;Be.LOW=["LOW",3];Be.LOW.toString=D;Be.LOW.__enum__=Be;var $d=g["openfl.display.StageScaleMode"]={__ename__:["openfl", "display","StageScaleMode"],__constructs__:["SHOW_ALL","NO_SCALE","NO_BORDER","EXACT_FIT"]};$d.SHOW_ALL=["SHOW_ALL",0];$d.SHOW_ALL.toString=D;$d.SHOW_ALL.__enum__=$d;$d.NO_SCALE=["NO_SCALE",1];$d.NO_SCALE.toString=D;$d.NO_SCALE.__enum__=$d;$d.NO_BORDER=["NO_BORDER",2];$d.NO_BORDER.toString=D;$d.NO_BORDER.__enum__=$d;$d.EXACT_FIT=["EXACT_FIT",3];$d.EXACT_FIT.toString=D;$d.EXACT_FIT.__enum__=$d;var ad=function(a){this.__bitmap=a;this.__centerPoints=[];this.__tileRects=[];this.__tileUVs=[];this.__rectTile= new va;this.__rectUV=new va;this.__point=new Q};g["openfl.display.Tilesheet"]=ad;ad.__name__=["openfl","display","Tilesheet"];ad.prototype={__bitmap:null,__centerPoints:null,__tileRects:null,__tileUVs:null,__rectTile:null,__rectUV:null,__point:null,addTileRect:function(a,b){this.__tileRects.push(a);null==b&&(b=ad.__defaultPoint);this.__centerPoints.push(b);this.__tileUVs.push(new va(a.get_left()/this.__bitmap.width,a.get_top()/this.__bitmap.height,a.get_right()/this.__bitmap.width,a.get_bottom()/ this.__bitmap.height));return this.__tileRects.length-1},drawTiles:function(a,b,c,d,e){null==e&&(e=-1);null==d&&(d=0);null==c&&(c=!1);a.drawTiles(this,b,c,d,e)},getTileCenter:function(a){return this.__centerPoints[a]},getTileRect:function(a){return this.__tileRects[a]},getTileUVs:function(a){return this.__tileUVs[a]},__class__:ad};var Of=g["openfl.display.TriangleCulling"]={__ename__:["openfl","display","TriangleCulling"],__constructs__:["NEGATIVE","NONE","POSITIVE"]};Of.NEGATIVE=["NEGATIVE",0];Of.NEGATIVE.toString= D;Of.NEGATIVE.__enum__=Of;Of.NONE=["NONE",1];Of.NONE.toString=D;Of.NONE.__enum__=Of;Of.POSITIVE=["POSITIVE",2];Of.POSITIVE.toString=D;Of.POSITIVE.__enum__=Of;var ko=function(a){ti.call(this,a)};g["openfl.display.Window"]=ko;ko.__name__=["openfl","display","Window"];ko.__super__=ti;ko.prototype=t(ti.prototype,{create:function(a){ti.prototype.create.call(this,a);this.stage=new el(this,Object.prototype.hasOwnProperty.call(this.config,"background")?this.config.background:16777215);a.addModule(this.stage)}, __class__:ko});var Ca=function(){this.disposed=!1;this._yFlip=1;this.vertexBuffersCreated=[];this.indexBuffersCreated=[];this.programsCreated=[];this.texturesCreated=[];this.samplerParameters=[];for(var a=0,b=Ca.MAX_SAMPLERS;aa;)b=a++,this._textures[b]=l.context.createTexture()};g["openfl.display3D.textures.CubeTexture"]=Ei;Ei.__name__=["openfl","display3D","textures","CubeTexture"];Ei.__super__=xf;Ei.prototype=t(xf.prototype,{size:null,_textures:null,mipmapsGenerated:null,glTextureAt:function(a){return this._textures[a]},uploadCompressedTextureFromByteArray:function(a,b,c){},uploadFromBitmapData:function(a, b,c){null==c&&(c=0);var d=a.image.get_data();l.context.bindTexture(34067,this.glTexture);switch(b){case 0:l.context.texImage2D(34069,c,6408,a.width,a.height,0,6408,5121,d);break;case 1:l.context.texImage2D(34070,c,6408,a.width,a.height,0,6408,5121,d);break;case 2:l.context.texImage2D(34071,c,6408,a.width,a.height,0,6408,5121,d);break;case 3:l.context.texImage2D(34072,c,6408,a.width,a.height,0,6408,5121,d);break;case 4:l.context.texImage2D(34073,c,6408,a.width,a.height,0,6408,5121,d);break;case 5:l.context.texImage2D(34074, c,6408,a.width,a.height,0,6408,5121,d);break;default:throw new q("unknown side type");}l.context.bindTexture(34067,null)},uploadFromByteArray:function(a,b,c,d){},__class__:Ei});var Fi=function(a,b,c,d,e){this.optimizeForRenderToTexture=c;null==this.optimizeForRenderToTexture&&(this.optimizeForRenderToTexture=!1);xf.call(this,a,b,d,e)};g["openfl.display3D.textures.RectangleTexture"]=Fi;Fi.__name__=["openfl","display3D","textures","RectangleTexture"];Fi.__super__=xf;Fi.prototype=t(xf.prototype,{optimizeForRenderToTexture:null, uploadFromBitmapData:function(a,b){var c=ib.__ofBuffer(a.image.get_data().buffer);this.width=a.width;this.height=a.height;this.uploadFromByteArray(c,0)},uploadFromByteArray:function(a,b){l.context.bindTexture(3553,this.glTexture);this.optimizeForRenderToTexture&&l.context.pixelStorei(37440,1);l.context.texParameteri(3553,10240,9728);l.context.texParameteri(3553,10241,9728);l.context.texParameteri(3553,10242,33071);l.context.texParameteri(3553,10243,33071);var c;c=a.length;c=null!=c?new nc(c):null; a.position=b;for(var d=0;a.positionc)b.onData(a.response);else if(null==c)b.onError("Failed to connect or resolve host");else if(12029==c)b.onError("Failed to connect to host");else if(12007==c)b.onError("Unknown host");else if(0==c)b.onError("Unable to make request (may be blocked due to cross-domain permissions)"),b.onSecurityError("Unable to make request (may be blocked due to cross-domain permissions)");else b.onError("Http Error #"+ a.status)}}},requestUrl:function(a,b,c,d){var e=new XMLHttpRequest;this.registerEvents(e);var f="";if(m.__instanceof(c,ib))switch(this.dataFormat[1]){case 0:f=c.data.buffer;break;default:f=c.readUTFBytes(c.length)}else if(m.__instanceof(c,Cr))for(var h=0,g=r.fields(c);h=a.split("?").length;e.open(b,a+(l?"?":"&")+y.string(f), !0);f=""}else e.open(b,a,!0)}catch(n){G.lastException=n;n instanceof q&&(n=n.val);this.onError(n.toString());return}switch(this.dataFormat[1]){case 0:e.responseType="arraybuffer"}for(a=0;ad;){var e=d++;c=new Qh(this,"AXIS_"+e,-1,1);this.__axis.h[e]=c;this.__controls.push(c)}for(d=0;15>d;)e=d++,c=new Qh(this,"BUTTON_"+e,0,1),this.__button.h[e]=c,this.__controls.push(c)};g["openfl.ui.GameInputDevice"]= wo;wo.__name__=["openfl","ui","GameInputDevice"];wo.prototype={enabled:null,id:null,name:null,sampleInterval:null,__axis:null,__button:null,__controls:null,__gamepad:null,getCachedSamples:function(a,b){return 0},getControlAt:function(a){return 0<=a&&a=a)return a-65+65}else{switch(a){case 8:return 8;case 9:return 9;case 13:return 13;case 27:return 27;case 32:return 32;case 186:return 59; case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46;case 191:return 47;case 192:return 96;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39}if(48<=a&&57>=a)return a-48+48;if(65<=a&&90>=a)return a-65+97}if(96<=a&&105>=a)return a-96+48;switch(a){case 106:return 42;case 107:return 43;case 108:return 44;case 110:return 45;case 111:return 46;case 46:return 127;case 13:return 13;case 8:return 8}return 0};la.__getKeyLocation=function(a){switch(a){case 1073742048:case 1073742049:case 1073742050:case 1073742051:return 1; case 1073742052:case 1073742053:case 1073742054:case 1073742055:return 2;case 1073741908:case 1073741909:case 1073741910:case 1073741911:case 1073741912:case 1073741913:case 1073741914:case 1073741915:case 1073741916:case 1073741917:case 1073741918:case 1073741919:case 1073741920:case 1073741921:case 1073741922:case 1073741923:case 1073742044:return 3;default:return 0}};var Mk=function(){};g["openfl.ui.Mouse"]=Mk;Mk.__name__=["openfl","ui","Mouse"];Mk.hide=function(){vf.hide()};Mk.show=function(){vf.show()}; var Ud=function(a,b){null==b&&(b=0);if(isNaN(a)||0>a)throw new q(new O("The delay specified is negative or not a finite number"));Qa.call(this);this.__delay=a;this.set_repeatCount(b);this.running=!1;this.currentCount=0};g["openfl.utils.Timer"]=Ud;Ud.__name__=["openfl","utils","Timer"];Ud.__super__=Qa;Ud.prototype=t(Qa.prototype,{currentCount:null,repeatCount:null,running:null,__delay:null,__timer:null,__timerID:null,reset:function(){this.running&&this.stop();this.currentCount=0},start:function(){this.running|| (this.running=!0,this.__timerID=window.setInterval(k(this,this.timer_onTimer),this.__delay|0))},stop:function(){this.running=!1;null!=this.__timerID&&(window.clearInterval(this.__timerID),this.__timerID=null)},get_delay:function(){return this.__delay},set_delay:function(a){this.__delay=a;this.running&&(this.stop(),this.start());return this.__delay},set_repeatCount:function(a){this.running&&0!=a&&a<=this.currentCount&&this.stop();return this.repeatCount=a},timer_onTimer:function(){this.currentCount++; 0=this.repeatCount?(this.stop(),this.dispatchEvent(new Ac(Ac.TIMER)),this.dispatchEvent(new Ac(Ac.TIMER_COMPLETE))):this.dispatchEvent(new Ac(Ac.TIMER))},__class__:Ud,__properties__:{set_repeatCount:"set_repeatCount",set_delay:"set_delay",get_delay:"get_delay"}});var Ga=function(){this._securityMode=this._singlePassword=this._securiteyUserList=this._encryptedPages=null;this._hasSecuritey=this._isVerifySecurity=!1;this._encryptedPages=new fa};g["security.SecurityClass"]= Ga;Ga.__name__=["security","SecurityClass"];Ga.getInstance=function(){null==Ga.Instance&&(Ga.Instance=new Ga);return Ga.Instance};Ga.isNoneMode=function(){return 0==Ga.getInstance().stringCompareToUppercase(Ga.getInstance()._securityMode,P.SecurityNone)};Ga.isSingleMode=function(){return 0==Ga.getInstance().stringCompareToUppercase(Ga.getInstance()._securityMode,P.SecuritySingle)};Ga.isUserListMode=function(){return 0==Ga.getInstance().stringCompareToUppercase(Ga.getInstance()._securityMode,P.SecurityUserList)}; Ga.isVerifyPassword=function(){null==Ga.Instance&&Ga.getInstance();if(null==Ga.Instance._securityMode)return!1;if(1==Ga.Instance._isVerifySecurity)return!0;var a=Ra.getInstance();if(0==Ga.Instance.stringCompareToUppercase(Ga.Instance._securityMode,P.SecurityNone))return!0;if(0==Ga.Instance.stringCompareToUppercase(Ga.Instance._securityMode,P.SecuritySingle)){if(0==a.hasKey(Ga.SinglePasswordKey))return!1;var b=a.get(Ga.SinglePasswordKey);return Ga.isVerifySingle(b)?Ga.Instance._isVerifySecurity=!0: !1}if(0==Ga.Instance.stringCompareToUppercase(Ga.Instance._securityMode,P.SecurityUserList)){if(0==a.hasKey(Ga.UserNameKey))return!1;b=a.get(Ga.UserNameKey);a=a.get(Ga.UserPasswordKey);if(Ga.isVerifyUser(b,a))return Ga.Instance._isVerifySecurity=!0}return!1};Ga.isVerifySingle=function(a){null==a&&(a="");if(0==Ga.Instance.stringCompareToUppercase(Ga.Instance._securityMode,P.SecuritySingle)){if(null==a||null==Ga.Instance._singlePassword)return!1;if(0==Ga.Instance.stringCompare(a,Ga.Instance._singlePassword))return!0}return!1}; Ga.isVerifyUser=function(a,b){null==b&&(b="");if(0==Ga.Instance.stringCompareToUppercase(Ga.Instance._securityMode,P.SecurityUserList)){if(null==a||null==Ga.Instance._securiteyUserList||0==n.hasKey(Ga.Instance._securiteyUserList,a))return!1;var c=n.get(Ga.Instance._securiteyUserList,a);if(0==Ga.Instance.stringCompare(b,c))return!0}return!1};Ga.isPageEncrypted=function(a){null==Ga.Instance._encryptedPages&&Ga.getInstance();return n.hasKey(Ga.Instance._encryptedPages,null==a?"null":""+a)?n.get(Ga.Instance._encryptedPages, null==a?"null":""+a):!1};Ga.prototype={_hasSecuritey:null,_isVerifySecurity:null,_securityMode:null,_singlePassword:null,_securiteyUserList:null,_encryptedPages:null,Test:function(){},resetEncryptedPages:function(a){if(null!=a&&1!=a.isValid()&&null!=a){var b=a.getNodes(P.PageItem);a.getNodesLength(P.PageItem);0=a||97<=a&&122>=a},toLowercase:function(a){return 65<=a&&90>=a?a-65+97:a},toUppercase:function(a){return 97<=a&&122>=a?a-97+65:a},stringCompare:function(a,b){for(var c=0,d=0,e=a.length,f=b.length;;){if(c>=e&&e==f)return d;if(c>=e)break;if(c>=f)return 1;var d=X.cca(a,c),h=X.cca(b,c);if(0!=(d-=h)){if(0=e&&e==f)return d;if(c>=e)break;if(c>=f)return 1; var h=X.cca(a,c),g=X.cca(b,c);if(0!=(d=h-g)&&this.isLetter(h)&&this.isLetter(g)&&this.toUppercase(h)!=this.toUppercase(g)){if(0e&&0>2;d[1]=(c[0]&3)<<4|c[1]>>4;d[2]=(c[1]&15)<<2|c[2]>>6;d[3]=c[2]&63;for(c=c.length;3>c;)d[c+1]=64,c++;for(c=0;cf&&e+f>4);d[1]=((c[1]&15)<<4)+((c[2]&60)>>2);d[2]=((c[2]&3)<<6)+c[3];for(f=0;fb?a:b},getThumbBarHeight:function(){var a;a=Y.getInstance();return null!= this._thumbnails?this._thumbnails.getThumbHeight():a.get(B.THUMBHEIGHT)},getMinWidth:function(){var a;a=Y.getInstance();var b=this.getThumbBarHeight(),c=this.getSearchHeight();a.get(B.TOPSPACE);var d=a.get(B.LEFTSPACE),e=a.get(B.LEFTSPACE);a.get(B.LEFTSPACE);return d+e+(b+(c+6*a.get(B.LINESPACE)+320))},getMinHeight:function(){var a;a=Y.getInstance();var b=this.getThumbBarHeight();this.getSearchHeight();var c=a.get(B.TOPSPACE);a.get(B.LEFTSPACE);a.get(B.LEFTSPACE);var d=a.get(B.LEFTSPACE);return c+ d+(b+6*a.get(B.LINESPACE)+a.get(B.TOOLHEIGHT)+2*a.get(B.LINESPACE)+a.get(B.TITLEHEIGHT)+180)},resizeItemsLayout:function(){Y.getInstance();Ra.getInstance();var a=!0,b=!0;1==this._alwaysMinimeStyle?this.resizeMiniStyle():(this._width<=this._minimeStyleWidth&&(a=!1),this._height<=this._minimeStyleHeight&&(b=!1),0!=this._useMinimeStyle&&0==a||0==b?this.resizeMiniStyle():this.resizeNormalStyle())},resizeMiniStyle:function(){Y.getInstance();Ra.getInstance();0==this._isMinimeStyleMode&&(this._isMinimeStyleMode= !0,this._toolbarRect.set_visible(!1),this._titlebarRect.set_visible(!1),this._thumbnailsRect.set_visible(!1),this._searchlistRect.set_visible(!1));this._backgroundRect.move(0,0);this._backgroundRect.resize(this._width,this._height);this._flipBookRect.move(0,0);this._flipBookRect.resize(this._width,this._height);ta._flipBookRectX=0;ta._flipBookRectY=0;ta._backgroundRectX=0;ta._backgroundRectY=0},resizeNormalStyle:function(){var a=null,a=Y.getInstance(),b=null,b=Ra.getInstance(),c=!0,d=!0,e=0,f=this.getThumbBarHeight(), h=this.getSearchHeight(),g=a.get(B.TOPSPACE),k=a.get(B.LEFTSPACE),l=a.get(B.LEFTSPACE),m=a.get(B.LEFTSPACE);0!=this._isMinimeStyleMode&&(this._isMinimeStyleMode=!1);var n=this._minimeStyleWidth;this._width<=n&&(c=!1);e=this._minimeStyleHeight;this._height<=e&&(d=!1);this._backgroundRect.set_visible(!0);var q=g,r=k;this._backgroundRect.move(r,q);ta._backgroundRectX=r;ta._backgroundRectY=q;k=this._width-k-l;0==c&&(k=n);c=this._height-g-m;0==d&&(c=e);this._backgroundRect.resize(k,c);0==this._isThumbLeft? (r=a.get(B.LINESPACE),q=a.get(B.LINESPACE),this._titlebarRect.move(r,q),k=this._backgroundRect._width-2*a.get(B.LINESPACE),c=a.get(B.TITLEHEIGHT),this._titlebarRect.resize(k,c),this._titlebarRect.set_visible(0!=this._isTitleBarOn),e=a.get(B.LINESPACE),this._titlebarRect.get_visible()&&(e=this._titlebarRect.get_y()+this._titlebarRect._height+a.get(B.LINESPACE)),r=a.get(B.LINESPACE),q=this._backgroundRect._height-a.get(B.LINESPACE)-f,this._thumbnailsRect.move(r,q),k=this._backgroundRect._width-2*a.get(B.LINESPACE), this._thumbnailsRect.resize(k,f),this._thumbnailsRect.set_visible(0!=this._isThumbOn),r=a.get(B.LINESPACE),q=this._backgroundRect._height-a.get(B.LINESPACE)-a.get(B.TOOLHEIGHT),this._thumbnailsRect.get_visible()&&(q=this._thumbnailsRect.get_y()-a.get(B.LINESPACE)-a.get(B.TOOLHEIGHT)),this._toolbarRect.move(r,q),k=this._backgroundRect._width-2*a.get(B.LINESPACE),c=a.get(B.TOOLHEIGHT),this._toolbarRect.resize(k,c),this._toolbarRect.set_visible(0!=this._isToolBarOn),r=this._isSearchLeft?a.get(B.LINESPACE): this._backgroundRect._width-a.get(B.LINESPACE)-h,this._searchlistRect.move(r,e),k=h,c=this._backgroundRect._height-a.get(B.LINESPACE)-this._searchlistRect.get_y(),this._thumbnailsRect.get_visible()&&(c=this._thumbnailsRect.get_y()-a.get(B.LINESPACE)-this._searchlistRect.get_y()),this._toolbarRect.get_visible()&&(c=this._toolbarRect.get_y()-a.get(B.LINESPACE)-this._searchlistRect.get_y()),this._searchlistRect.resize(k,c),this._searchlistRect.set_visible(0!=this._isSearchOn),r=a.get(B.LINESPACE),this._searchlistRect.get_visible()&& (r=this._isSearchLeft?this._searchlistRect.get_right()+a.get(B.LINESPACE):a.get(B.LINESPACE)),q=e,this._flipBookRect.move(r,q),ta._flipBookRectX=r,ta._flipBookRectY=q,k=this._backgroundRect._width-a.get(B.LINESPACE)-this._flipBookRect.get_x(),this._searchlistRect.get_visible()&&!this._isSearchLeft&&(k=this._searchlistRect.get_left()-a.get(B.LINESPACE)-this._flipBookRect.get_x()),c=this._backgroundRect._height-a.get(B.LINESPACE)-this._flipBookRect.get_y(),this._thumbnailsRect.get_visible()&&(c=this._thumbnailsRect.get_y()- a.get(B.LINESPACE)-this._flipBookRect.get_y())):(r=a.get(B.LINESPACE),q=a.get(B.LINESPACE),this._titlebarRect.move(r,q),k=this._backgroundRect._width-2*a.get(B.LINESPACE),c=a.get(B.TITLEHEIGHT),this._titlebarRect.resize(k,c),this._titlebarRect.set_visible(0!=this._isTitleBarOn),e=a.get(B.LINESPACE),this._titlebarRect.get_visible()&&(e=this._titlebarRect.get_y()+this._titlebarRect._height+a.get(B.LINESPACE)),r=a.get(B.LINESPACE),q=this._backgroundRect._height-a.get(B.LINESPACE)-a.get(B.TOOLHEIGHT), this._toolbarRect.move(r,q),k=this._backgroundRect._width-2*a.get(B.LINESPACE),c=a.get(B.TOOLHEIGHT),this._toolbarRect.resize(k,c),this._toolbarRect.set_visible(0!=this._isToolBarOn),r=a.get(B.LINESPACE),this._thumbnailsRect.move(r,e),k=f,c=this._backgroundRect._height-a.get(B.LINESPACE)-this._thumbnailsRect.get_y(),this._toolbarRect.get_visible()&&(c=this._toolbarRect.get_y()-a.get(B.LINESPACE)-this._thumbnailsRect.get_y()),this._thumbnailsRect.resize(k,c),0==this._isSearchOn?this._thumbnailsRect.set_visible(0!= this._isThumbOn):this._thumbnailsRect.set_visible(this._isSearchLeft?!1:this._thumbnailsRect.get_visible()),r=this._isSearchLeft?a.get(B.LINESPACE):this._backgroundRect._width-a.get(B.LINESPACE)-h,this._searchlistRect.move(r,e),k=h,c=this._backgroundRect._height-a.get(B.LINESPACE)-this._searchlistRect.get_y(),this._toolbarRect.get_visible()&&(c=this._toolbarRect.get_y()-a.get(B.LINESPACE)-this._searchlistRect.get_y()),this._searchlistRect.resize(k,c),this._searchlistRect.set_visible(0!=this._isSearchOn), r=a.get(B.LINESPACE),this._thumbnailsRect.get_visible()&&(r=this._thumbnailsRect.get_right()+a.get(B.LINESPACE)),this._searchlistRect.get_visible()&&(r=this._isSearchLeft?this._searchlistRect.get_right()+a.get(B.LINESPACE):this._thumbnailsRect.get_visible()?this._thumbnailsRect.get_right()+a.get(B.LINESPACE):a.get(B.LINESPACE)),q=e,this._flipBookRect.move(r,q),ta._flipBookRectX=r,ta._flipBookRectY=q,k=this._backgroundRect._width-a.get(B.LINESPACE)-this._flipBookRect.get_x(),this._searchlistRect.get_visible()&& !this._isSearchLeft&&(k=this._searchlistRect.get_left()-a.get(B.LINESPACE)-this._flipBookRect.get_x()),c=this._backgroundRect._height-a.get(B.LINESPACE)-this._flipBookRect.get_y());this._toolbarRect.get_visible()&&(c=this._toolbarRect.get_y()-a.get(B.LINESPACE)-this._flipBookRect.get_y());this._flipBookRect.resize(k,c);null!=this._bookmarkRect&&(q=this._flipBookRect.get_y(),c=this._flipBookRect._height,k=this._bookmarkRect._width,b.hasKey(u.BookmarkWidth)&&(k=b.get(u.BookmarkWidth)),r=a.get(B.LINESPACE), b.hasKey(u.BookmarkIsLeft)&&0==b.get(u.BookmarkIsLeft)&&(r=this._backgroundRect._width-a.get(B.LINESPACE)-k),this._bookmarkRect.move(r,q),this._bookmarkRect.resize(k,c));this.set_scaleX(this.set_scaleY(1))},__class__:Ii});var Lb=function(){};g["start.ProgramConfig"]=Lb;Lb.__name__=["start","ProgramConfig"];Lb.configUI_ToolBar=function(a){if(null!=a){var b=Ra.getInstance();b.hasKey(u.ToolAlpha)&&(a._fillAlpha=b.get(u.ToolAlpha));b.hasKey(u.ToolColor)&&(a._fillStyle=b.get(u.ToolColor));b.hasKey(u.ToolPixel)&& (a._strokePixel=b.get(u.ToolPixel));b.hasKey(u.ToolStroke)&&(a._strokeStyle=b.get(u.ToolStroke));b.hasKey(u.ToolHasFill)&&(a._isFill=b.get(u.ToolHasFill));b.hasKey(u.ToolHasStroke)&&(a._isStroke=b.get(u.ToolHasStroke));if(b.hasKey(C.ControlBarColor)){var c=T.ControlBarColor();a._fillStyle=c}b.hasKey(C.BackgroundAlpha)&&(b=T.BackgroundAlpha(),a._fillAlpha=.95*b);var d;try{d=m.__cast(a,Yg)}catch(e){if(G.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,O))d=null;else throw e;}null!=d&&d.validateNow()}}; Lb.configUI_TitleBar=function(a){if(null!=a){var b=Ra.getInstance();b.hasKey(u.TitleAlpha)&&(a._fillAlpha=b.get(u.TitleAlpha));b.hasKey(u.TitleColor)&&(a._fillStyle=b.get(u.TitleColor));b.hasKey(u.TitlePixel)&&(a._strokePixel=b.get(u.TitlePixel));b.hasKey(u.TitleStroke)&&(a._strokeStyle=b.get(u.TitleStroke));b.hasKey(u.TitleHasFill)&&(a._isFill=b.get(u.TitleHasFill));b.hasKey(u.TitleHasStroke)&&(a._isStroke=b.get(u.TitleHasStroke));if(b.hasKey(C.ControlBarColor)){var c=T.ControlBarColor();a._fillStyle= c}b.hasKey(C.BackgroundAlpha)&&(b=T.BackgroundAlpha(),a._fillAlpha=.95*b);var d;try{d=m.__cast(a,wk)}catch(e){if(G.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,O))d=null;else throw e;}null!=d&&d.validateNow()}};Lb.configUI_FlipRect=function(a){if(null!=a){var b=Ra.getInstance();b.hasKey(u.FlipRAlpha)&&(a._fillAlpha=b.get(u.FlipRAlpha));b.hasKey(u.FlipRColor)&&(a._fillStyle=b.get(u.FlipRColor));b.hasKey(u.FlipRPixel)&&(a._strokePixel=b.get(u.FlipRPixel));b.hasKey(u.FlipRStroke)&&(a._strokeStyle= b.get(u.FlipRStroke));b.hasKey(u.FlipRHasFill)&&(a._isFill=b.get(u.FlipRHasFill));b.hasKey(u.FlipRHasStroke)&&(a._isStroke=b.get(u.FlipRHasStroke));b.hasKey(C.BackgroundAlpha)&&(b=T.BackgroundAlpha(),a._fillAlpha=.95*b);var c;try{c=m.__cast(a,tk)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,O))c=null;else throw d;}null!=c&&c.validateNow();null!=c&&null!=c._leftGotoBar&&c._leftGotoBar.configUI_GotoBarColor();null!=c&&null!=c._rightGotoBar&&c._rightGotoBar.configUI_GotoBarColor()}}; Lb.configUI_BookMark=function(a){if(null!=a){var b=Ra.getInstance(),c;try{c=m.__cast(a,sk)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,O))c=null;else throw d;}if(b.hasKey(C.ControlBarColor)){var e=T.ControlBarColor();a._fillStyle=e;a._fillAlpha=.85;null!=c&&(c._titleSprite._fillStyle=e)}b.hasKey(C.BackgroundAlpha)&&(e=T.BackgroundAlpha(),a._fillAlpha=.95*e,null!=c&&(c._titleSprite._fillAlpha=.95*e));b.hasKey(C.ButtonIconColor)&&(e=T.ButtonIconColor(),null!=c._closedBtn1&& (c._closedBtn1._iconColor=e));b.hasKey(u.ToolHasFill)&&(a._isFill=b.get(u.ToolHasFill));b.hasKey(u.ToolHasStroke);null!=c&&(b.hasKey(C.ButtonIconColor)&&c._bookMarkTitle.set_iconColor(b.get(C.ButtonIconColor)),b.hasKey(C.ControlFontName)&&c._bookMarkTitle.set_textFontName(b.get(C.ControlFontName)),b.hasKey(C.ControlFontColor)&&c._bookMarkTitle.set_textColor(b.get(C.ControlFontColor)),c.validateNow())}};Lb.configUI_Thumbnails=function(a){if(null!=a){var b=Ra.getInstance(),c;try{c=m.__cast(a,vk)}catch(d){if(G.lastException= d,d instanceof q&&(d=d.val),m.__instanceof(d,O))c=null;else throw d;}b.hasKey(u.ThumbAlpha)&&(a._fillAlpha=b.get(u.ThumbAlpha));b.hasKey(u.ThumbColor)&&(a._fillStyle=b.get(u.ThumbColor));b.hasKey(u.ThumbPixel)&&(a._strokePixel=b.get(u.ThumbPixel));b.hasKey(u.ThumbStroke)&&(a._strokeStyle=b.get(u.ThumbStroke));b.hasKey(u.ThumbHasFill)&&(a._isFill=b.get(u.ThumbHasFill),null!=c&&(c._titleSprite._isFill=a._isFill));b.hasKey(u.ThumbHasStroke)&&(a._isStroke=b.get(u.ThumbHasStroke),null!=c&&(c._titleSprite._isStroke= !1));if(b.hasKey(C.ControlBarColor)){var e=T.ControlBarColor();null!=c&&(c._titleSprite._fillStyle=e)}b.hasKey(C.ThumbControlColor)&&(e=T.ThumbBackgroundColor(),a._fillStyle=e);b.hasKey(C.BackgroundAlpha)&&(e=T.BackgroundAlpha(),a._fillAlpha=.95*e,null!=c&&(c._titleSprite._fillAlpha=.95*e));null!=c&&(b.hasKey(C.ButtonIconColor)&&c._thumbTitle.set_iconColor(b.get(C.ButtonIconColor)),b.hasKey(C.ControlFontName)&&c._thumbTitle.set_textFontName(b.get(C.ControlFontName)),b.hasKey(C.ControlFontColor)&& c._thumbTitle.set_textColor(b.get(C.ControlFontColor)),c.validateNow())}};Lb.configUI_SearchList=function(a){if(null!=a){var b=Ra.getInstance();b.hasKey(u.SearchAlpha)&&(a._fillAlpha=b.get(u.SearchAlpha));b.hasKey(u.SearchColor)&&(a._fillStyle=b.get(u.SearchColor));b.hasKey(u.SearchPixel)&&(a._strokePixel=b.get(u.SearchPixel));b.hasKey(u.SearchStroke)&&(a._strokeStyle=b.get(u.SearchStroke));b.hasKey(u.SearchHasFill)&&(a._isFill=b.get(u.SearchHasFill));b.hasKey(u.SearchHasStroke)&&(a._isStroke=b.get(u.SearchHasStroke)); b.hasKey(C.ControlBarColor)&&T.ControlBarColor();if(b.hasKey(C.ThumbControlColor)){var c=T.ThumbBackgroundColor();a._fillStyle=c}b.hasKey(C.BackgroundAlpha)&&(c=T.BackgroundAlpha(),a._fillAlpha=.95*c);var d;try{d=m.__cast(a,uk)}catch(e){if(G.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,O))d=null;else throw e;}null!=d&&b.hasKey(C.ControlBarColor)&&(a=T.ControlBarColor(),null!=d._searchBtn1&&(d._searchBtn1._iconColor=a));null!=d&&b.hasKey(C.BackgroundAlpha)&&T.BackgroundAlpha();null!= d&&d.validateNow()}};Lb.configUI_BookPage=function(a){if(null!=a){var b=a._backSprite,c=Ra.getInstance();c.hasKey(u.PageHasFill)&&(b._isFill=c.get(u.PageHasFill));c.hasKey(u.PageHasStroke)&&(b._isStroke=c.get(u.PageHasStroke));c.hasKey(u.PageFillColor)&&(b._fillStyle=c.get(u.PageFillColor),a._backColor=b._fillStyle);c.hasKey(u.PageFillAlpha)&&(b._fillAlpha=c.get(u.PageFillAlpha));c.hasKey(u.PageStrokeColor)&&(b._strokeStyle=c.get(u.PageStrokeColor),a._strokeColor=b._strokeStyle);c.hasKey(u.PageStrokePixel)&& (b._strokePixel=c.get(u.PageStrokePixel));c.hasKey(C.PageBackgroundColor)&&(c=T.PageBackgroundColor(),b._fillStyle=c,a._backColor=b._fillStyle,a._backSpriteAlpha=1,a._backSprite._fillAlpha=1);null!=a&&m.__instanceof(a,cb)&&a.drawBackgroundSprite()}};Lb.configUI_PageLoading=function(a){if(null!=a&&(a=a._loadingSprite,null!=a)){var b=Ra.getInstance();b.hasKey(u.ToolAlpha);b.hasKey(u.ToolColor);b.hasKey(u.ToolStroke);b.hasKey(C.ButtonIconColor)&&(a.color=T.ButtonIconColor());b.hasKey(C.ControlBarColor)&& (a.color=T.ControlBarColor());b.hasKey(C.BackgroundAlpha)&&(b=T.BackgroundAlpha(),a.color=xa.scale(a.color,b))}};Lb.configUI_FlipBook=function(a){if(null!=a){var b=Ra.getInstance();if(b.hasKey(C.PageFlipTweenTime)){var c=T.PageFlipTweenTime();a._flipTweenTime=c}b.hasKey(C.EnableFlipSound)&&(c=T.EnableFlipSound(),a._isFlipSound=c);b.hasKey(C.EnableSoundButton)&&(c=T.EnableSoundButton(),0==c&&(a._isSoundOn=c));b.hasKey(C.AlwaysInTheCenter)&&T.AlwaysInTheCenter();b.hasKey(C.ShowCornerFlipEffect)&&T.ShowCornerFlipEffect(); b.hasKey(C.MouseTracingEffect)&&T.MouseTracingEffect()}};Lb.configUI_SharRectShow=function(a){if(null!=a){var b=Ra.getInstance();if(b.hasKey(u.HasToolBar)){var c=b.get(u.HasToolBar);a._isToolBarOn=c}b.hasKey(u.HasTitleBar)&&(c=b.get(u.HasTitleBar),a._isTitleBarOn=c);b.hasKey(u.SearchIsLeft)&&(c=b.get(u.SearchIsLeft),a._isSearchLeft=c);b.hasKey(u.ThumbIsVertical)&&(b=b.get(u.ThumbIsVertical),a._isThumbLeft=b);null!=a&&null!=a._toolbarRect&&Lb.configUI_ToolBar(a._toolbarRect);null!=a&&null!=a._titlebarRect&& Lb.configUI_TitleBar(a._titlebarRect);null!=a&&null!=a._flipBookRect&&Lb.configUI_FlipRect(a._flipBookRect);null!=a&&null!=a._thumbnailsRect&&Lb.configUI_Thumbnails(a._thumbnailsRect);null!=a&&null!=a._searchlistRect&&Lb.configUI_SearchList(a._searchlistRect);if(null!=a&&0==a._isTitleBarOn){var b=a.getComponentControl(Ea.FLIPBOOK_LOGOLINK),d=new Kf;d.enable_mouse(!0);var e;try{e=m.__cast(b,Xi)}catch(f){if(G.lastException=f,f instanceof q&&(f=f.val),m.__instanceof(f,O))e=null;else throw f;}null!=e&& null!=e.parent&&e.parent.removeChild(e);b=function(a){0!=e._imageSprite._bitmapWidth&&0!=e._imageSprite._bitmapHeight&&(e.resize(e._imageSprite._bitmapWidth,e._imageSprite._bitmapHeight),e._imageSprite._scaleRadio=1,d.resize(e._imageSprite._bitmapWidth,e._imageSprite._bitmapHeight),e.set_scaleX(e.set_scaleY(1)),d.set_scaleX(d.set_scaleY(1)))};null!=e&&null!=e._imageSprite&&(0==e._imageSprite._bitmapWidth||0==e._imageSprite._bitmapHeight?e._imageSprite._onBitmapConfig=b:b(e._imageSprite));null!=e&& null!=a._flipBookRect&&(d.set_x(4),d.set_y(2),d.addChild(e),a._flipBookRect.addChild(d),d._eventType=e._eventType,d._actionType=e._actionType,d._actionValue=e._actionValue,d._isDrawFill=!1,d._isDrawOver=!1,d._isDrawDown=!1,d._isDrawCheck=!1);a._appkLogoSprite=d;a._appkLogoSprite.front()}null!=a&&0!=a._width&&0!=a._height&&a.resize(a._width,a._height)}};Lb.configUI_Program=function(a){if(null!=a){var b=Ra.getInstance();null!=a&&(b.hasKey(C.TotalPageCaption)||b.hasKey(C.PageNumberCaption))&&a.setConfigPageNumberCaption(); if(b.hasKey(C.BookLogoSettings)){var c=T.AppLogoIcon();a._appLogoIconUrl=c}b.hasKey(C.BookLogoLinkURL)&&(c=T.AppLogoLinkURL(),a._appLogoLinkUrl=c);b.hasKey(C.LanguageSetting)&&(c=T.LanguageSetting(),a._languageSetting=c);b.hasKey(C.LanguageSwitchable)&&(c=T.LanguageSwitchable(),a._langaugeChangeable=c);b.hasKey(C.SoundFileURL)&&(c=T.BackgroundSoundURL(),a._backgroundSoundUrl=c);b.hasKey(C.SoundFileLoops)&&(c=T.BackgroundSoundLoop(),a._backgroundSoundLoop=c);b.hasKey(C.EnableAutoButton)&&(c=T.EnableAutoButton(), a._enableAutoPlay=c);b.hasKey(C.AutoFlipInterval)&&(c=T.AutoFlipInterval(),a._autoPlayDelay=1E3*c);b.hasKey(C.AutoFlipLoops)&&(c=T.AutoFlipLoopCount(),a._autoPlayLoopCount=c);if(b.hasKey(C.AutoFlipFromStart)){var c=T.EnableAutoButton(),d=T.AutoFlipFromStart();0!=c&&0!=d&&(a._autoPlayFromStart=d)}b.hasKey(C.UseMinimeStyle)&&T.IsUserSmallMode();b.hasKey(C.MinimeStyleWidth)&&T.MinimeStyleWidth();b.hasKey(C.MinimeStyleHeight)&&T.MinimeStyleHeight();b.hasKey(C.EnableZoomInButton)&&T.EnableZoomInButton(); b.hasKey(C.MinimumZoomWidth)&&T.MinimumZoomWidth();b.hasKey(C.MaximumZoomWidth)&&T.MaximumZoomWidth();b.hasKey(C.UseMinimeStyle)&&(c=T.IsUserSmallMode(),a._useMinimeStyle=c);b.hasKey(C.MinimeStyleWidth)&&(c=T.MinimeStyleWidth(),a._minimeStyleWidth=c);b.hasKey(C.MinimeStyleHeight)&&(c=T.MinimeStyleHeight(),a._minimeStyleHeight=c);b.hasKey(C.BackgroundAlpha)&&(c=T.BackgroundAlpha(),a.backgroundSprite().set_alpha(c));if(b.hasKey(C.BackgroundEndColor)&&b.hasKey(C.BackgroundBeginColor)){var c=T.BackgroundEndColor(), d=T.BackgroundBeginColor(),e=T.BackgroundRotation(),f=a.backgroundSprite();f._isDraw=!0;f.drawBackgroundColor(c,d,e)}b.hasKey(C.BackgroundFile)&&(c=T.BackgroundFileUrl(),null!=c&&0a-1||null==this._nodePageItems||this._nodePageItems.length=a.length)a="English";var b=this.getXmlLanguages();if(null==b||1==b.isValid())return null;for(b=b.getNodes(P.Language);b.hasNext();){var c=b.next();if(null!= c){var c=new Ma(c),d=new Ma(c.getNode(P.LangInfo));if(null!=d&&1!=d.isValid()&&(d=d.getNodeValue(P.LangName),!(null==d||0>=d.length)&&d.toLowerCase()==a.toLowerCase()))return c}}return null},checkInstallBookBinInfo:function(){var a=this._xmlBase;if(null!=a){var b=null,b=vd.getInstance(),c=Ra.getInstance();a.getNodeClass(P.Info);var d=a.getAttrString(C.AppShowName);if(null==d||""==d)d=a.getAttrString("appAppName");if(null==d||""==d)d=c.get(C.AppShowName);null!=d&&""!=d&&(this._appAppName=d);d=a.getAttrString(P.SceneName); if(null==d||""==d)d=c.get(C.AppSceneName);null!=d&&""!=d&&"none"!=d.toLowerCase()&&(this._hasScene=!0);null!=d&&""!=d&&(this._sceneName=d);d=a.getAttrString(C.AppLinkWebsite);if(null==d||""==d)d=a.getAttrString("appAppWebsite");if(null==d||""==d)d=c.get(C.AppLinkWebsite);null!=d&&""!=d&&(this._appAppWebsite=d);d=a.getAttrString(C.AppWorkVersion);if(null==d||""==d)d=a.getAttrString("appAppVersion");if(null==d||""==d)d=c.get(C.AppWorkVersion);null!=d&&""!=d&&(this._appAppVersion=d);d=a.getAttrString(P.PageCount); if(null==d||""==d)d=a.getAttrString(P.PageCount2);if(null==d||""==d&&0!=c.hasKey(C.PageCount))d=y.string(c.get(C.PageCount));null!=d&&""!=d&&0>=this._pageCount&&(this._pageCount=y.parseInt(d));0!=this._pageCount&&b.createManageInfoList(this._pageCount)}},finshInstallBookBinInfo:function(){var a=this._xmlBase;null!=a&&(a=a.getAttrString(P.IsReg),null!=a&&""!=a&&(this._strRegister=a),0<=this._pageCount&&null!=a&&""!=a&&(this._isRegister=y.parseInt(a)>=2*this._pageCount,0==this._isRegister&&this.createUnregisterSprite()), 1==Ga.getInstance()._hasSecuritey&&(this.createSecurityLoginSprite(),this._loginSprite.set_visible(!1)))},resetXmlClassInfo:function(a){this._xmlBase=null;vd.getInstance();var b;try{b=m.__cast(a,Ma)}catch(c){G.lastException=c,c instanceof q&&(c=c.val),b=null}if(null!=b){this._xmlBase=new Ma(b._xml);Ra.getInstance();b=this.getXmlInfo();if(null!=b)for(a=b.getNodes(P.ParamItem),b.getNodesLength(P.ParamItem),b=1;a.hasNext();){var d=a.next(),d=new Ma(d);this.resetConfigInfo(d,b);b+=1}b=this.getXmlConfig(); if(null!=b&&(a=b.getNodes(P.ParamItem),0=a&&(a=4),a+this._toolTip._width>this.stage.stageWidth&&(a=this.stage.stageWidth-this._toolTip._width-4),c=c.y-6-this._toolTip.get_height(),d==Zf.ToolBar&&(c=this._toolbarRect.get_y()-6-this._toolTip.get_height()+e.get(B.LINESPACE)),d==Zf.TitleBar&&(c=this._titlebarRect.get_bottom()+6),this._toolTip.move(a, c),S.tween(this._toolTip,.2,{alpha:1}),Qb.delay(function(){b._toolTip.set_visible(!0)},10))}},resetLanguageListOffset:function(){null!=this._languageList&&(this._languageList.move(ha.current.stage.stageWidth+2048,10),0==T.LanguageSwitchable()&&(this._languageList.visible=!1))},toggleSwitchLanguage:function(a){null!=a&&null!=this._languageList&&(1==this._isShowLanguage?this.hideSwitchLanguageList(a):this.showSwitchLanguageList(a))},hideSwitchLanguageList:function(a){if(null!=this._languageList){var b= this.getComponentControl(Ea.TOOLONOFF_SETLANGUAGE),c;try{c=m.__cast(b,db)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,O))c=null;else throw d;}null!=a&&(c=a);this.resetLanguageListOffset();this._languageList.alpha=.2;this._isShowLanguage=!1;null!=c&&(c._isChecked=null!=this._languageList?this._isShowLanguage:!1,c.drawIcon(),c.drawText(),c.drawNow())}},showSwitchLanguageList:function(a){if(null!=a&&null!=this._languageList&&null!=a){var b=a.getBounds(this),c=this.getUserHitRectangle(), d=a.getUserHitRectangle();b.width=d.width;b.height=d.height;b.x=d.x-c.x;b.y=d.y-c.y;c=a._controlAtType;null!=a&&(d=Y.getInstance(),a=b.x+.5*a._width-.5*this._languageList._width,4>=a&&(a=4),a+this._languageList._width>this.stage.stageWidth&&(a=this.stage.stageWidth-this._languageList._width-4),b=b.y-6-1*this._languageList._height,c==Zf.ToolBar&&(b=this._toolbarRect.get_y()-6-1*this._languageList._height+d.get(B.LINESPACE)),c==Zf.TitleBar&&(b=this._titlebarRect.get_bottom()+6,b+=4),this._languageList.move(a, b),this._languageList.visible=!0,this._languageList.alpha=1,this._isShowLanguage=!0)}},finshInstallBookBinInfo:function(){Ji.prototype.finshInstallBookBinInfo.call(this);var a=T.LanguageSetting();if(null!=a&&0=c.length||this._languageKeys.push(c)))}0>= this._languageKeys.length||(this.createLanguageSetting(a),this.resetLanguageListOffset())}}},createLanguageSetting:function(a){var b=null;if(null==this._languageKeys||0>=this._languageKeys.length)this._hasLanguageSetting=!1;else if(null==a&&0>=a.length)this._hasLanguageSetting=!1;else{b=new pk(!0);this.addChild(b);b.set_visible(!0);for(var c=0,d=this._languageKeys;c=a&&(a=1);b.selectItemAtIndex(a);b.set_scaleX(b.set_scaleY(1))}},resetSearchListButtonImage:function(a){a=null;var b=this.getComponentControl(Ea.TOOLONOFF_SEARCHLIST);if(null!=b){var c;try{c=m.__cast(b._imageUrl,String)}catch(d){G.lastException=d,d instanceof q&&(d=d.val),c=null}a=c}return null!=this._searchlistRect&&null!=this._searchlistRect._searchBtn1?(this._searchlistRect._searchBtn1.set_iconImage(a),this._searchlistRect._searchBtn1):null},resetBookmarkClosedButtonImage:function(a){a=null;var b=this.getComponentControl(Ea.FLIPBOOK_ZOOMINOUT);if(null!=b){var c;try{c=m.__cast(b._imageCheckUrl,String)}catch(d){G.lastException=d,d instanceof q&&(d=d.val),c=null}a=c}return null!=this._bookmarkRect&&null!=this._bookmarkRect._closedBtn1?(this._bookmarkRect._closedBtn1.set_iconImage(a), this._bookmarkRect._closedBtn1):null},resetBackgroundScenesByConfigUICall:function(a){a=this._xmlBase;if(null==this._xmlBase||0==this._hasScene||null==this._sceneName||0>=this._sceneName.length||"none"==this._sceneName.toLowerCase())return!1;a=a.getNodeClass(P.Scenes);if(null==a||0!=a.isValid())return!1;a=a.getNodeClass(P.SceneGround);if(null==a||0!=a.isValid())return!1;var b=a.getNodeClass(P.Background);if(null==b||0!=b.isValid())return!1;a=b.getNodes(P.SceneItem);if(null==b)return!1;for(;a.hasNext();)if(b= a.next(),null!=b){var c=new Ma(b);null==c||c.isValid()||(b=c.getNodeValue(P.SceneItemURL),c=c.getAttrString(P.ItemPosition),null!=b&&this._backSprite.insertFlashSprite(b,c))}return!1},__class__:Zj});var Dg=function(a,b,c){null==b&&(b=0);null==a&&(a=0);this._focusAreaObject=null;this._isHasMouseWheel=this._mouseWheelTurnPage=!0;this._autoPlayFromStart=!1;this._autoPlayLoopCount=this._runAutoPlayLoopCount=0;this._autoPlayTimer=null;this._autoPlayDelay=3E3;this._enableAutoPlay=!0;this._isAutoPlay=!1; Zj.call(this,a,b,c);this._mouseWheelTurnPage=this._isHasMouseWheel=!0;this._focusAreaObject=null;this._focusAreaObject=this._flipBookRect;this._isAutoPlay=!1;this._autoPlayDelay=3E3;this._autoPlayTimer=null};g["start.ProgramEvent"]=Dg;Dg.__name__=["start","ProgramEvent"];Dg.__super__=Zj;Dg.prototype=t(Zj.prototype,{_isAutoPlay:null,_enableAutoPlay:null,_autoPlayDelay:null,_autoPlayTimer:null,_autoPlayLoopCount:null,_runAutoPlayLoopCount:null,_autoPlayFromStart:null,_isHasMouseWheel:null,_mouseWheelTurnPage:null, _focusAreaObject:null,stopAutoPlay:function(){this._isAutoPlay=!1;null!=this._autoPlayTimer&&(this._autoPlayTimer.stop(),this._autoPlayTimer=null);this._autoPlayTimer=null},startAutoPlay:function(){this.stopAutoPlay();0!=this._enableAutoPlay&&(this._isAutoPlay=!0,this._runAutoPlayLoopCount=this._autoPlayLoopCount,this._autoPlayTimer=new ek(this._autoPlayDelay,-1),this._autoPlayTimer.start(k(this,this.onAutoPlay),this._flipBook))},onAutoPlay:function(a){if(null!=this._flipBook&&0!=this._isAutoPlay&& this._autoPlayTimer==a)this.onAutoPlayDelay()},runAutoPlayFromStart:function(){if(0!=this._autoPlayFromStart){this.startAutoPlay();var a=this.getComponentControl(Ea.FLIPBOOK_AUTOPLAY),b;try{b=m.__cast(a,db)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}null!=b&&(b._isChecked=this._isAutoPlay,b.drawIcon(),b.drawNow(),b.sendUpIcon())}},onAutoPlayDelay:function(){if(null!=this._flipBook&&0!=this._isAutoPlay){var a=this.getComponentControl(Ea.FLIPBOOK_AUTOPLAY), b;try{b=m.__cast(a,db)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}if(this._flipBook.getTotalPageCount()==this._flipBook.getRealCurrentPageIndex()!=0){if(0=a||a>b||(null==this._flipBookRect||this._flipBookRect._isScalePageMode||null==this._flipBook?null!=this._flipBookRect&& this._flipBookRect._isScalePageMode&&null!=this._flipBookRect._scaleSprite&&(b=this._flipBookRect._scaleSprite,b._targetPageIndex!=a&&b.resetScalePageByBookIndex(a)):this._flipBook.gotoPage(a))}},onStageMouseDown:function(a){var b=a.stageX;a=a.stageY;this._focusAreaObject=this._flipBookRect;b=new Q(b,a);a=this._toolbarRect.getBounds(this.stage);var c=this._flipBookRect.getBounds(this.stage),d=this._thumbnailsRect.getBounds(this.stage),e=this._searchlistRect.getBounds(this.stage);0!=this._toolbarRect.get_visible()&& a.containsPoint(b);0!=this._flipBookRect.get_visible()&&c.containsPoint(b)&&(this._focusAreaObject=this._flipBookRect);0!=this._searchlistRect.get_visible()&&e.containsPoint(b)&&(this._focusAreaObject=this._searchlistRect);0!=this._thumbnailsRect.get_visible()&&d.containsPoint(b)&&(this._focusAreaObject=this._thumbnailsRect)},onStageMouseWheel:function(a){y["int"](Math.abs(a.delta/3));var b=a.stageX,c=a.stageY;this._focusAreaObject=this._flipBookRect;var b=new Q(b,c),c=this._toolbarRect.getBounds(this.stage), d=this._flipBookRect.getBounds(this.stage),e=this._thumbnailsRect.getBounds(this.stage),f=this._searchlistRect.getBounds(this.stage);if(null==this._bookmarkRect||0==this._bookmarkRect.get_visible()||!this._bookmarkRect.getBounds(this.stage).containsPoint(b))if(0!=this._toolbarRect.get_visible()&&c.containsPoint(b),0!=this._flipBookRect.get_visible()&&d.containsPoint(b)&&(this._focusAreaObject=this._flipBookRect),0!=this._searchlistRect.get_visible()&&f.containsPoint(b)&&(this._focusAreaObject=this._searchlistRect), 0!=this._thumbnailsRect.get_visible()&&e.containsPoint(b)&&(this._focusAreaObject=this._thumbnailsRect),null!=this._thumbnails&&0!=this._thumbnailsRect.get_visible()&&this._focusAreaObject==this._thumbnailsRect)this.onThumbnailsMouseWheel(a);else if(null!=this._searchList&&0!=this._searchlistRect.get_visible()&&this._focusAreaObject==this._searchlistRect)this.onSearchListMouseWheel(a);else if(null!=this._flipBook&&0!=this._flipBookRect.get_visible()&&this._focusAreaObject==this._flipBookRect&&this._mouseWheelTurnPage)this.onFlipBookMouseWheel(a)}, onFlipBookMouseWheel:function(a){y["int"](Math.abs(a.delta/3));this.flipBookMouseWheel(a);this.scalePageMouseWheel(a)},onThumbnailsMouseWheel:function(a){if(null!=this._thumbnails&&null!=a)this._thumbnails.onStageMouseWheel(a)},onSearchListMouseWheel:function(a){if(null!=this._searchList&&null!=a)if(0==this._searchList._isVertical)this.onFlipBookMouseWheel(a),this._focusAreaObject=this._flipBookRect;else this._searchList.onStageMouseWheel(a)},flipBookMouseWheel:function(a){null!=this._flipBook&&(null!= this._flipBookRect&&this._flipBookRect._isScalePageMode||(0>a.delta?0==this._flipBook.isLastPage()&&this._flipBook.gotoNext():0==this._flipBook.isFirstPage()&&this._flipBook.gotoPrev()))},scalePageMouseWheel:function(a){y["int"](Math.abs(a.delta/3));null!=this._flipBook&&null!=this._flipBookRect&&this._flipBookRect._isScalePageMode&&null!=this._flipBookRect&&null!=this._flipBookRect._scaleSprite&&this._flipBookRect._scaleSprite.resetScrollSpriteByStep(0,25*a.delta)},__class__:Dg});var hh=function(a, b,c){null==b&&(b=0);null==a&&(a=0);this._totalPagesCaption=this._pageNumberCaption=null;this._isFullScreen=this._isSelectTextMode=!1;Dg.call(this,a,b,c);this._totalPagesCaption=null;this._pageNumberCaption=new fa;this._isSelectTextMode=!1;ta._resetFlipBookIndexTextField=k(this,this.resetFlipBookIndexTextField)};g["start.ProgramEvent2"]=hh;hh.__name__=["start","ProgramEvent2"];hh.__super__=Dg;hh.prototype=t(Dg.prototype,{_isFullScreen:null,_isSelectTextMode:null,_totalPagesCaption:null,_pageNumberCaption:null, setIsSelectTextMode:function(a){this._isSelectTextMode=a;null!=this._flipBook&&(this._flipBook.setIsSelectTextMode(a),this._flipBook._isSelectTextMode=a)},cleanProgramIsSelectTextMode:function(){if(0!=this._isSelectTextMode){var a=this.getComponentControl(Ea.TOOLONOFF_SELECTTEXT),b;try{b=m.__cast(a,db)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c;}this._isSelectTextMode=!this._isSelectTextMode;this.setIsSelectTextMode(this._isSelectTextMode);null!= b&&(b._isChecked=this._isSelectTextMode,b.drawIcon(),b.drawNow())}},resize:function(a,b){Dg.prototype.resize.call(this,a,b);null!=this._languageList&&(this.hideSwitchLanguageList(null),this.resetLanguageListOffset())},onAddedToStageCall:function(a){Dg.prototype.onAddedToStageCall.call(this,a);a=R.getInstance();a.addEventListener(v.FLIPBOOK_WILLCHANGE,this,k(this,this.onFlipBookWillChange));a.addEventListener(v.FLIPBOOK_DIDCHANGED,this,k(this,this.onFlipBookDidChanged))},onRemoveFromStageCall:function(a){Dg.prototype.onRemoveFromStageCall.call(this, a);a=R.getInstance();a.removeEventListener(v.FLIPBOOK_WILLCHANGE,this,k(this,this.onFlipBookWillChange));a.removeEventListener(v.FLIPBOOK_DIDCHANGED,this,k(this,this.onFlipBookDidChanged))},onStageMouseDown:function(a){Dg.prototype.onStageMouseDown.call(this,a);var b=new Q(a.stageX,a.stageY);if(null!=this._languageList&&1==this._languageList.visible){var c=null,d=this._languageList.getBounds(this.stage),e=this.getComponentControl(Ea.TOOLONOFF_SETLANGUAGE),f;try{f=m.__cast(e,db)}catch(h){if(G.lastException= h,h instanceof q&&(h=h.val),m.__instanceof(h,O))f=null;else throw h;}null!=f&&(c=f.getBounds(this.stage));c.containsPoint(b)||d.containsPoint(b)||this.hideSwitchLanguageList(null)}R.getInstance().dispatchEvent(new ja(v.MAINSTAGE_MOUSECLICK,new na(this,null,a)))},sendLanguageListUpdate:function(){if(!(null==this._languageKeys||0>=this._languageKeys.length)){var a=this._selectLanguageKey,b=R.getInstance();b.dispatchEvent(new ja(v.LANGUAGEINFO_CACHED,new na(this,a,null)));b.dispatchEvent(new ja(v.LANGUAGEINFO_UPDATE, new na(this,a,null)));null!=this._thumbnailsRect&&null!=this._thumbnailsRect._thumbTitle&&this._thumbnailsRect.resetLanguageSource();null!=this._bookmarkRect&&null!=this._bookmarkRect._bookMarkTitle&&this._bookmarkRect.resetLanguageSource();null!=this._loginSprite&&this._loginSprite.resetLoginLanguage()}},onLanguageListChange:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._trigger,pk)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=null;else throw c; }if(null!=b&&!(null==this._languageKeys||0>=this._languageKeys.length)){a="";b=b.indexOfSelectedItem();1<=b&&b<=this._languageKeys.length&&(this._selectLanguageKey=a=this._languageKeys[b-1],this.sendLanguageListUpdate());b=this.getComponentControl(Ea.TOOLONOFF_SETLANGUAGE);var d;try{d=m.__cast(b,db)}catch(e){if(G.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,O))d=null;else throw e;}null!=d&&this.hideSwitchLanguageList(d)}}},onSecurityLoginUpdate:function(a){null!=a&&null!=a._data&&0!= this._isThumbOn&&null!=this._thumbnails&&null!=this._thumbnails._scrollRect&&this._thumbnails.resetShowItemsForScrollRect()},toggleFullScreen:function(a){1==this._isFullScreen?(this._isFullScreen=!1,document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()):0==this._isFullScreen&&(this._isFullScreen=!0,a=document.documentElement,a.requestFullscreen? a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen())},onAppLogoLinkClicked:function(a){Ra.getInstance().hasKey(C.BookLogoLinkURL)&&(this._appLogoLinkUrl=T.AppLogoLinkURL(),null==this._appLogoLinkUrl||0>=this._appLogoLinkUrl.length||(a=this._appLogoLinkUrl,0==this._appLogoLinkUrl.toLowerCase().indexOf("www")&&(a="http://"+a),0==this._appLogoLinkUrl.toLowerCase().indexOf("mailto:")&& (a=this._appLogoLinkUrl),ha.getURL(new mc(a),"_blank")))},onFlipBookWillChange:function(a){if(null!=a&&null!=a._data)try{m.__cast(a._data._object,Fd)}catch(b){if(G.lastException=b,b instanceof q&&(b=b.val),!m.__instanceof(b,O))throw b;}},onFlipBookDidChanged:function(a){if(null!=a&&null!=a._data){var b;try{b=m.__cast(a._data._object,Fd)}catch(c){if(G.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,O))b=-1;else throw c;}0>b||null!=this._flipBook&&this.resetFlipBookIndexTextField()}},setConfigPageNumberCaption:function(){Ra.getInstance(); var a=T.TotalPageCaption(null);null!=a&&0=a.length))for(var a=a.split(";"),b=0;b=c.length||(c=c.split(":"),null==c||1>=c.length||null!=c&&2<=c.length&&null!=c[0]&&0=a.length||this._applicationLogoSprite.setImage(this._imageLogoUrl,function(a){0!=a._bitmapWidth&&0!=a._bitmapHeight&&(a.resize(282, 62),a._scaleRadio=1,a.set_scaleX(a.set_scaleY(1)),b.set_scaleX(b.set_scaleY(1)))})},setApplicationName:function(a){this._applicationName=a;this._htmlTextForApplicationName=''+a+"";this.resetApplicationTextSpriteHtmlText()},setApplicationWebsite:function(a){this._applicationWebSite=a;this._htmlTextForApplicationWebSite=''+this._applicationWebSite+""; this.resetApplicationTextSpriteHtmlText()},resetApplicationTextSpriteHtmlText:function(){this.getControlFontName();this._applicationNameSprite.set_htmlText(this._htmlTextForApplicationName);this._applicationWebSiteSprite.set_htmlText(this._htmlTextForApplicationWebSite)},__class__:yo});var Rh=function(a){F.call(this);var b=new La;b.set_text(a);b.set_selectable(!1);a=new ub;a.color=0;a.font="Courier";a.size=10;a.align=$b.LEFT;b.setTextFormat(a);b.set_autoSize(Ka.LEFT);b.set_border(!0);b.set_x(5);b.set_y(5); this.addChild(b)};g["trcharts.ErrorMsg"]=Rh;Rh.__name__=["trcharts","ErrorMsg"];Rh.__super__=F;Rh.prototype=t(F.prototype,{add_html:function(a){var b=new La;b.set_htmlText(a);b.set_autoSize(Ka.LEFT);b.set_border(!0);a=m.__cast(this.getChildAt(0),La);b.set_y(a.get_y()+a.get_height()+10);b.set_x(5);this.addChild(b)},__class__:Rh});var zo=function(a,b){var c;c="Open Flash Chart\n\n"+("JSON Parse Error ["+b.message+"]\n");var d=a.indexOf("\n",b.errorID),d=X.substr(a,0,d).split("\n");c+="Error at character "+ b.errorID+", line "+d.length+":\n\n";for(var e=3;0a?y.string(-a).split("."):(null==a?"null":""+a).split(".");for(var g=h[0],k=0,l=0,l=g.length-1;-1a&&(f="-"+f);e&&(f=W.replace(f,",",""));d&&(f=zc.toDecimalSeperatorComma(f));return f};zc.toDecimalSeperatorComma=function(a){a=W.replace(a,".","|");a=W.replace(a,",",".");return a=W.replace(a,"|",",")};var Eb=function(){};g["trcharts.Object_helper"]=Eb;Eb.__name__=["trcharts","Object_helper"];Eb.merge=function(a,b){for(var c=r.fields(b),d=0;da?b:a};Ce.getBooleanValue=function(a,b){if(Ce.isEmptyValue(a))return b;var c=y.parseFloat(a);if(!isNaN(c))return 0==c?!1:!0;c=Ce.getStringValue(a,"false",!1);c=c.toLowerCase();return-1!=c.indexOf("true")?!0:!1};Ce.runTests=function(){null};var Dr=function(a,b,c,d,e,f){this.width=f;this.high=b;this.close=c;this.low=d};g["trcharts.PointHLC"]=Dr;Dr.__name__=["trcharts","PointHLC"];Dr.prototype={width:null,bar_bottom:null,high:null,close:null,low:null, make_tooltip:function(a,b,c,d,e,f){},get_tip_pos:function(){return null},__class__:Dr};var Er=function(a){};g["trcharts.Dictionary"]=Er;Er.__name__=["trcharts","Dictionary"];Er.prototype={__class__:Er};var Wa=function(a,b){this._props=new Er;this._parent=b;for(var c=r.fields(a),d=0;db;)--f,e=(f-a)/d,e=f-e/2;b=f}return b},jiggle:function(a,b,c,d){return b-c/2},shrink_left:function(a,b,c,d){var e=0;if(0!=c)for(e=a+(b-a)/d/2;0>e-c/2;)a+=1,e=(b-a)/d,e=a+e/2;return a},get_y_bottom:function(a){null==a&&(a=!1);var b;b=a?this.y_right_range:this.y_range; var c=b.min,c=Math.min(c,b.max);return this.get_y_from_val(Math.max(0,c),a)},getY_old:function(a,b){var c;c=b?this.y_right_range:this.y_range;var d=this.height/c.count();c=this.bottom- -1*d*c.min;return c-a*d},get_y_from_val:function(a,b){null==b&&(b=!1);var c;c=b?this.y_right_range:this.y_range;var d=this.height/c.count(),e=0;this.y_offset&&(e=d/2);return this.bottom-e-(c.min-a)*d*-1},get_get_x_from_pos_and_y_from_val:function(a,b,c){null==c&&(c=!1);return new Q(this.get_x_from_pos(a),this.get_y_from_val(b, c))},width_:function(){return this.right-this.left_()},left_:function(){return this.left+this.tick_offset},get_x_from_val:function(a){var b=this.x_range.min>this.x_range.max,c=this.x_range.count(),c=b&&this.x_range.offset?c+-2:c+0,b=this.width_()/c;a-=this.x_range.min;c=0;this.x_offset&&(c=Math.abs(b/2));return this.left_()+c+a*b},get_x_from_pos:function(a){var b=this.x_range.min>this.x_range.max,c=this.x_range.count(),c=b&&this.x_range.offset?c+-2:c+0,b=Math.abs(this.width_()/c),c=0;this.x_offset&& (c=b/2);return this.left_()+c+a*b},get_x_tick_pos:function(a){return this.get_x_from_pos(a)-this.tick_offset},set_bar_groups:function(a){this.bar_groups=a},get_bar_coords:function(a,b){var c=this.width_()/this.x_range.count(),d=.8*c,e=0;this.x_offset&&(e=c);var f=d/this.bar_groups,c=this.left_()+(e-d)/2+a*c;return{x:c+f*b,width:f}},get_horiz_bar_coords:function(a,b){var c=this.height/this.y_range.count(),d=.8*c,e=d/this.bar_groups,c=this.top+(c-d)/2+a*c;return{y:c+e*b,width:e}},makePointHLC:function(a, b,c,d,e,f,h){var g=this.width_()/this.x_range.count(),k=this.left_()+(g-g)/2;h=g/h;a=k+a*g+h*f;return new Dr(a,this.get_y_from_val(b,e),this.get_y_from_val(c,e),this.get_y_from_val(d,e),b,h)},__class__:nd});var Bo=function(a,b,c,d){this.TO_RADIANS=Math.PI/180;Sh.call(this,a,b,c,d);this.radius=Math.min(this.width,this.height)/2};g["trcharts.ScreenCoordsRadar"]=Bo;Bo.__name__=["trcharts","ScreenCoordsRadar"];Bo.__super__=Sh;Bo.prototype=t(Sh.prototype,{TO_RADIANS:null,range:null,angles:null,angle:null, radius:null,set_range:function(a){this.range=a},get_max:function(){return this.range.max},set_angles:function(a){this.angles=a;this.angle=360/a},get_angles:function(){return this.angles},get_radius:function(){return this.radius},reduce_radius:function(){this.radius--},get_pos:function(a,b){var c=(a-90)*this.TO_RADIANS,d=this.get_radius()*b;return new Q(d*Math.cos(c),d*Math.sin(c))},get_get_x_from_pos_and_y_from_val:function(a,b,c){a=this.get_pos(this.angle*a,b/this.range.count());a.x+=this.get_center_x(); a.y+=this.get_center_y();return a},get_y_from_val:function(a,b){var c=this.get_pos(0,a/this.range.count());c.y+=this.get_center_y();return c.y},__class__:Bo});var ak=function(a,b){this._g=new Fr;F.call(this);this._realWidth=a;this._realHeight=b};g["trcharts.TRChartsBase"]=ak;ak.__name__=["trcharts","TRChartsBase"];ak.__super__=F;ak.prototype=t(F.prototype,{_realWidth:null,_realHeight:null,_g:null,get_realWidth:function(){return this._realWidth},set_realWidth:function(a){return this._realWidth=a}, get_realHeight:function(){return this._realHeight},set_realHeight:function(a){return this._realHeight=a},__class__:ak,__properties__:t(F.prototype.__properties__,{set_realHeight:"set_realHeight",get_realHeight:"get_realHeight",set_realWidth:"set_realWidth",get_realWidth:"get_realWidth"})});var Rl=function(a,b){this.title=null;this.VERSION="2 TRCharts";ak.call(this,a,b);this.VERSION="new TRCharts3";this.title=null;this._main()};g["trcharts.TRCharts"]=Rl;Rl.__name__=["trcharts","TRCharts"];Rl.__super__= ak;Rl.prototype=t(ak.prototype,{VERSION:null,title:null,x_labels:null,x_axis:null,radar_axis:null,x_legend:null,y_axis:null,y_axis_right:null,y_legend:null,y_legend_2:null,keys:null,obs:null,tool_tip_wrapper:null,sc:null,tooltip:null,background:null,menu:null,ok:null,URL:null,id:null,chart_parameters:null,json:null,_main:function(){this.ok=!1;this.set_the_stage()},getVersion:function(){return this.VERSION},image_binary:function(){(new qb(this.get_width(),this.get_height())).draw(this);return null}, post_image:function(a,b,c){b=new uo("Content-type","application/octet-stream");a=new mc(a);a.requestHeaders.push(b);a.method="POST";a.data=this.image_binary();b=new gf;b.set_dataFormat(pd.VARIABLES);r.field(this.chart_parameters,"id")&&r.field(this.chart_parameters,"id");if(c)ha.getURL(a,"_blank");else{b.addEventListener(Fe.PROGRESS,function(a){});try{b.load(a)}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),!m.__instanceof(d,O))throw d;}}},reload:function(a){this.load_external_file(a)},load_external_file:function(a){this.URL= a;var b=new gf;b.addEventListener(Hc.IO_ERROR,k(this,this.ioError));b.addEventListener(J.COMPLETE,k(this,this.xmlLoaded));a=new mc(a);b.load(a)},ioError:function(a){a=new Rh("Open Flash Chart\nIO ERROR\nLoading test data\n"+a.text);a.add_html('This is the URL that I tried to open:
'+this.URL+"");this.addChild(a)},show_error:function(a){this.removeChildAt(0);a=new Rh(a);a.add_html('Click here to open your JSON file: asd');this.addChild(a)},get_x_legend:function(){return this.x_legend}, set_the_stage:function(){this.addEventListener(A.ROLL_OUT,k(this,this.mouseOut));this.addEventListener(A.MOUSE_OVER,k(this,this.mouseMove))},mouseMove:function(a){if(null!=this.tooltip)switch(this.tooltip.get_tip_style()){case 0:this.mouse_move_closest(a);break;case 1:this.mouse_move_proximity(m.__cast(a,A));break;case 2:this.mouse_move_follow(m.__cast(a,A))}},mouse_move_follow:function(a){m.__instanceof(a.target,Th)?this.tooltip.draw(a.target):this.tooltip.hide()},mouse_move_proximity:function(a){a= this.obs.mouse_move_proximity(this.get_mouseX(),this.get_mouseY());this.tooltip.closest(a)},mouse_move_closest:function(a){a=this.obs.closest_2(this.get_mouseX(),this.get_mouseY());this.tooltip.closest(a)},activateHandler:function(a){},resizeHandler:function(a){this.resize()},resize_pie:function(){this.addEventListener(A.MOUSE_MOVE,k(this,this.mouseMove));this.background.resize();this.title.resize();this.sc=new nd(this.title.get_height(),0,this._realWidth,this._realHeight,null,null,null,0,0,!1);this.obs.resize(this.sc); return this.sc},resize_radar:function(){this.addEventListener(A.MOUSE_MOVE,k(this,this.mouseMove));this.background.resize();this.title.resize();this.keys.resize(0,this.title.get_height());var a=this.title.get_height()+this.keys.get_height(),a=new Bo(a,0,this._realWidth,this.get_realHeight());a.set_range(this.radar_axis.get_range());a.set_angles(this.obs.get_max_x()-this.obs.get_min_x()+1);this.radar_axis.resize(a);this.obs.resize(a);return a},resize_ext:function(a,b){this._realWidth=a;this._realHeight= b;this.resize()},resize:function(){this.ok&&(null!=this.radar_axis?this.resize_radar():this.obs.has_pie()?this.resize_pie():this.resize_chart(),null!=this.menu&&this.menu.resize())},resize_chart:function(){this.addEventListener(A.MOUSE_MOVE,k(this,this.mouseMove));this.background.resize();this.title.resize();var a=this.y_legend.get_width()+this.y_axis.get_width();this.keys.resize(a,this.title.get_height());var b=this.title.get_height()+this.keys.get_height(),c=this._realHeight,c=c-(this.x_legend.get_height()+ this.x_axis.get_height()),d=this._realWidth,d=d-this.y_legend_2.get_width(),d=d-this.y_axis_right.get_width();this.sc=new nd(b,a,d,c,this.y_axis.get_range(),this.y_axis_right.get_range(),this.x_axis.get_range(),this.x_axis.first_label_width(),this.x_axis.last_label_width(),!1);this.sc.set_bar_groups(this.obs.groups);this.x_axis.resize(this.sc,this._realHeight-(this.x_legend.get_height()+this.x_axis.labels.get_height()));this.y_axis.resize(this.y_legend.get_width(),this.sc);this.y_axis_right.resize(0, this.sc);this.x_legend.resize(this.sc);this.y_legend.resize();this.y_legend_2.resize();this.obs.resize(this.sc);this.dispatchEvent(new J("on-show"));return this.sc},mouseOut:function(a){null!=this.tooltip&&this.tooltip.hide();null!=this.obs&&this.obs.mouse_out()},load:function(a){this.parse_json(a)},xmlLoaded:function(a){this.parse_json(a.target.data)},parse_json:function(a){var b=null,c=!1;try{b=JSON.parse(a),c=!0}catch(d){if(G.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,O))this.addChild(new zo(a, d));else throw d;}c&&this.build_chart(b)},build_chart:function(a){null!=this.obs&&this.die();md.getInstance(a);md.getInstanceY2(a);this.tooltip=new Eg(a.tooltip);this._g.set_tooltip_string(this.tooltip.tip_text);this.background=new Co(a,this);this.title=new Do(a.title,this);this.addChild(this.background);Ao.is_radar(a)?(this.obs=bk.MakeChart(a,this),this.radar_axis=new Eo(a.radar_axis),this.keys=new il(this.obs),this.addChild(this.radar_axis),this.addChild(this.keys)):Ao.has_pie_chart(a)?(this.obs= bk.MakeChart(a,this),this.tooltip.set_tip_style(Eg.NORMAL)):this.build_chart_background(a);this.addChild(this.title);for(var b=0,c=this.obs.sets;b"),d=5,e=0;if(1this.stage.stageWidth?this.stage.stageWidth-this.get_width()-16:b.x;b=b.y;b=b-4-(this.get_height()+10);0>b&&(b=0);return new Q(a,b)},show_tip:function(a){S.stop(this);a=this.get_pos(a);this.style.mouse==Eg.CLOSEST?(this.set_visible(!0),this.set_alpha(1),this.set_x(a.x),this.set_y(a.y)):(this.tip_showing=!0,this.set_alpha(0),this.set_visible(!0),this.set_x(a.x),this.set_y(a.y), S.tween(this,1,{alpha:1}).ease(dh.get_easeOut()))},draw:function(a){this.cached_elements[0]==a?this.tip_showing||this.show_tip(a):(this.untip(),this.cached_elements=[a],this.make_tip([a]),this.show_tip(a))},closest:function(a){0==a.length||this.is_cached(a)||(this.untip(),this.cached_elements=a,this.tip(),this.make_tip(a),a=this.get_pos(a[0]),this.set_visible(!0),S.tween(this,1,{x:a.x}).ease(dh.get_easeOut()),S.tween(this,1,{y:a.y}).ease(dh.get_easeOut()))},is_cached:function(a){if(0==this.cached_elements.length)return!1; for(var b=0;b#x_label#",alpha:.6,"on-click":!1,axis:"left"});this.props=new Wa(a,c);this.on_show=this.get_on_show(r.field(a,"on-show")); this.colour=this.props.get_colour("colour");this.key=this.props.get("text");this.font_size=this.props.get("font-size");this.props.set("tip",this.props.get("tip").replace("#key#",this.key));this.group=b;this.values=this.props.get("values");this.add_values()};g["trcharts.charts.BarBase"]=ab;ab.__name__=["trcharts","charts","BarBase"];ab.__super__=uc;ab.prototype=t(uc.prototype,{group:null,props:null,on_show:null,get_on_show:function(a){var b=new Wa({type:"none",cascade:3,delay:0});return new Wa(a,b)}, resize:function(a){for(var b=0;bf.get_x()&&aTotal: #total#",alpha:.6,"on-click":!1,axis:"left"});this.props=new Wa(a,b);this.on_show=this.get_on_show(r.field(a,"on-show"));this.group=c;this.values=a.values;this.add_values()};g["trcharts.charts.BarStack"]= hp;hp.__name__=["trcharts","charts","BarStack"];hp.__super__=ab;hp.prototype=t(ab.prototype,{get_keys:function(){for(var a=[],b=this.props.get("keys"),c=0;cr.field(d,k)&&r.setField(d,k,r.field(c,k))}e++}b-=Math.max(d.top,d.bottom);b+d.left>a.width/2&&(b=a.width/2-d.left);b+d.right>a.width/2&&(b=a.width/2-d.right);b=Math.max(b,10)}var l=720,d=-1,n=-720; e=-1;for(var q=720,f=-1,t=-720,g=-1,u=0;u=l)l=k,d=u;if(0>n||90=k){if(k>n||90=l&&k=k){if(0>t||kq)q=k,f=u;if(0>t||t>k)t=k,g=u}u++}b=d;l=a.top;for(c=!1;0<=b&&!c;)c=m.__cast(this.getChildAt(b),Gg),k=c.getTicAngle(),270<=k||90>=k?(l=c.moveLabelDown(a,l),b++,b>=this.get_numChildren()&& (b=0),c=b==d):c=!0;b=e;l=a.bottom;for(c=!1;0<=b&&!c;)c=m.__cast(this.getChildAt(b),Gg),k=c.getTicAngle(),270<=k||90>=k?(l=c.moveLabelUp(a,l),b--,0>b&&(b=this.get_numChildren()-1),c=b==e):c=!0;b=g;l=a.bottom;for(c=!1;0<=b&&!c;)c=m.__cast(this.getChildAt(b),Gg),k=c.getTicAngle(),90k?(l=c.moveLabelUp(a,l),b++,b>=this.get_numChildren()&&(b=0),c=b==g):c=!0;b=f;l=a.top;for(c=!1;0<=b&&!c;)c=m.__cast(this.getChildAt(b),Gg),k=c.getTicAngle(),90k?(l=c.moveLabelDown(a,l),b--,0>b&&(b=this.get_numChildren()- 1),c=b==f):c=!0},toString:function(){return"Pie with "+this.get_numChildren()+" children"},__class__:kl});var Th=function(){};g["trcharts.charts.series.Has_tooltip"]=Th;Th.__name__=["trcharts","charts","series","Has_tooltip"];Th.prototype={get_tooltip:null,get_tip_pos:null,set_tip:null,__class__:Th};var Ta=function(){this.cacheAsBitmap=!0;this.right_axis=!1;F.call(this)};g["trcharts.charts.series.Element"]=Ta;Ta.__name__=["trcharts","charts","series","Element"];Ta.__interfaces__=[Th];Ta.__super__= F;Ta.prototype=t(F.prototype,{_x:null,_y:null,index:null,tooltip:null,link:null,is_tip:null,line_mask:null,right_axis:null,resize:function(a){a=a.get_get_x_from_pos_and_y_from_val(this._x,this._y,this.right_axis);this.set_x(a.x);this.set_y(a.y)},get_mid_point:function(){return new Q(this.get_x(),this.get_y())},get_x:function(){return F.prototype.get_x.call(this)},set_tip:function(a){},attach_events:function(){this.addEventListener(A.MOUSE_OVER,k(this,this.mouseOver),!1,0,!0);this.addEventListener(A.MOUSE_OUT, k(this,this.mouseOut),!1,0,!0)},mouseOver:function(a){this.pulse()},pulse:function(){S.tween(this,.5,{alpha:.5}).ease(Ze.get_easeOut());S.tween(this,1,{alpha:1}).delay(.4).onComplete(k(this,this.pulse)).ease(Ze.get_easeOut())},mouseOut:function(a){S.stop(this);S.tween(this,1,{alpha:1}).ease(Ze.get_easeOut())},set_on_click:function(a){this.link=a;this.useHandCursor=this.buttonMode=!0;this.addEventListener(A.MOUSE_UP,k(this,this.mouseUp),!1,0,!0)},mouseUp:function(a){"trace:"!=this.link.substring(0, 6)&&("http:"==this.link.substring(0,5)?this.browse_url(this.link):"https:"==this.link.substring(0,6)?this.browse_url(this.link):Kg.call(this.link,this.index))},browse_url:function(a){a=new mc(this.link);try{ha.getURL(a)}catch(b){if(G.lastException=b,b instanceof q&&(b=b.val),m.__instanceof(b,hd))null;else throw b;}},get_tip_pos:function(){return{x:this.get_x(),y:this.get_y()}},get_tooltip:function(){return this.tooltip},tooltip_replace_labels:function(a){this.tooltip=W.replace(this.tooltip,"#x_label#", a.get(this._x))},die:function(){null!=this.line_mask&&(this.line_mask.get_graphics().clear(),this.line_mask=null)},__class__:Ta});var bb=function(a,b,c){Ta.call(this);this.index=a;this.parse_value(b);this.colour=b.get_colour("colour");this.tooltip=this.replace_magic_values(b.get("tip"));this.group=c;this.set_visible(!0);this.on_show_animate=!0;this.on_show=b.get("on-show");this.mouse_out_alpha=b.get("alpha");this.set_alpha(this.mouse_out_alpha);this.addEventListener(A.MOUSE_OVER,k(this,this.mouseOver)); this.addEventListener(A.MOUSE_OUT,k(this,this.mouseOut));b.has("on-click")&&0!=b.get("on-click")&&this.set_on_click(b.get("on-click"));b.has("axis")&&"right"==b.get("axis")&&(this.right_axis=!0)};g["trcharts.charts.series.bars.Base"]=bb;bb.__name__=["trcharts","charts","series","bars","Base"];bb.__super__=Ta;bb.prototype=t(Ta.prototype,{tip_pos:null,colour:null,group:null,top:null,bottom:null,mouse_out_alpha:null,on_show_animate:null,on_show:null,parse_value:function(a){a.has("bottom")||a.set("bottom", 0);this.top=a.get("top");this.bottom=a.get("bottom")},replace_magic_values:function(a){a=W.replace(a,"#top#",zc.formatNumber(this.top));a=W.replace(a,"#bottom#",zc.formatNumber(this.bottom));return a=W.replace(a,"#val#",zc.formatNumber(this.top-this.bottom))},get_mid_point:function(){return new Q(this.get_x()+this.get_width()/2,this.get_y())},mouseOver:function(a){this.is_tip=!0;S.tween(this,1,{alpha:1}).ease(Ze.get_easeOut())},mouseOut:function(a){this.is_tip=!1;S.tween(this,1,{alpha:this.mouse_out_alpha}).ease(Ze.get_easeOut())}, resize:function(a){},get_tip_pos:function(){return{x:this.tip_pos.x,y:this.tip_pos.y}},resize_helper:function(a){var b=a.get_bar_coords(this.index,this.group),c=a.get_y_from_val(this.top,this.right_axis),d;d=2.225E-308==this.bottom?a.get_y_bottom(this.right_axis):a.get_y_from_val(this.bottom,this.right_axis);var e=!1;d>16,c=(a&65280)>>8;a&=255;b+=b/2;255b&&(c=b);this.get_graphics().moveTo(0,c);this.get_graphics().lineTo(a,c);this.get_graphics().lineTo(a-12,c+12);this.get_graphics().lineTo(-12,c+12);this.get_graphics().endFill()},draw_front:function(a,b){var c=[ih.Lighten(this.colour),this.colour],d=new pa;d.createGradientBox(a-12,b+12,.5*Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,c,[1,1],[0,127],d,Ja.PAD);this.get_graphics().moveTo(-12,12);this.get_graphics().lineTo(-12,b+12);this.get_graphics().lineTo(a-12, b+12);this.get_graphics().lineTo(a-12,12);this.get_graphics().endFill()},draw_side:function(a,b){var c=ih.Lighten(this.colour),c=[this.colour,c],d=new pa;d.createGradientBox(a,b+12,1.5*Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,c,[1,1],[0,255],d,Ja.PAD);this.get_graphics().lineStyle(0,0,0);this.get_graphics().moveTo(a,0);this.get_graphics().lineTo(a,b);this.get_graphics().lineTo(a-12,b+12);this.get_graphics().lineTo(a-12,12);this.get_graphics().endFill()},__class__:ih});var yf=function(a, b,c){bb.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.quality=2;a.alpha=.4;this.set_filters([a])};g["trcharts.charts.series.bars.Cylinder"]=yf;yf.__name__=["trcharts","charts","series","bars","Cylinder"];yf.GetColours=function(a){var b=(a&16711680)>>16,c=(a&65280)>>8,d=a&255,e=a,f=(a&16711680)>>16,g=(a&65280)>>8;a&=255;if(255a/2&&(c=a/2);this.get_graphics().lineStyle(0,0,0);var d=yf.GetColours(this.colour),e=[1,1],f=[0,255],g=new pa;g.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR, d,e,f,g,Ja.PAD);this.halfEllipse(a/2,b,a/2,c/2,100);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD);this.get_graphics().moveTo(0,0);this.get_graphics().lineTo(0,b);this.get_graphics().lineTo(a,b);this.get_graphics().lineTo(a,0);this.get_graphics().beginFill(this.colour,1);this.Ellipse(a/2,0,a/2,c/2,100);this.get_graphics().endFill()},glass:function(a,b,c){this.get_graphics().lineStyle(0,0,0);c=[16777215,16777215];var d=[0,.5],e=new pa;e.createGradientBox(this.get_width(),this.get_height(), Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,c,d,[150,255],e,Ja.PAD);var f=a/3;this.halfEllipse(a/2,b,a/2,f/2,100);this.get_graphics().moveTo(0,0);this.get_graphics().lineTo(0,b);this.get_graphics().lineTo(a,b);this.get_graphics().lineTo(a,0);this.get_graphics().beginFill(this.colour,1);this.Ellipse(a/2,0,a/2,f/2,100);this.get_graphics().beginGradientFill(aa.LINEAR,c,d,[25,255],e,Ja.PAD);this.Ellipse(a/2,0,a/2,f/2,100);this.get_graphics().endFill()},Ellipse:function(a,b,c,d,e){this.get_graphics().moveTo(a+ c,b);for(var f=0;f<=e;){var g=f/e,k=yf.magicTrigFunctionX(g),g=yf.magicTrigFunctionY(g),k=a+k*c,g=b+g*d;this.get_graphics().lineTo(k,g);f++}return 1},halfEllipse:function(a,b,c,d,e){this.get_graphics().moveTo(a+c,b);for(var f=0;f<=e/2;){var g=f/e,k=yf.magicTrigFunctionX(g),g=yf.magicTrigFunctionY(g),k=a+k*c,g=b+g*d;this.get_graphics().lineTo(k,g);f++}return 1},__class__:yf});var af=function(a,b,c){bb.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.quality=2;a.alpha=.4;this.set_filters([a])}; g["trcharts.charts.series.bars.CylinderOutline"]=af;af.__name__=["trcharts","charts","series","bars","CylinderOutline"];af.GetColours=function(a){var b=(a&16711680)>>16,c=(a&65280)>>8,d=a&255,e=a,f=(a&16711680)>>16,g=(a&65280)>>8;a&=255;if(255a/2&&(c=a/2);this.get_graphics().lineStyle(0,0,0);var d=af.GetColours(this.colour),e=[1,1],f=[0,255],g=new pa;g.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD);this.halfEllipse(a/2,b,a/2,c/2,100,!1);this.get_graphics().beginGradientFill(aa.LINEAR, d,e,f,g,Ja.PAD);this.get_graphics().moveTo(0,0);this.get_graphics().lineTo(0,b);this.get_graphics().lineTo(a,b);this.get_graphics().lineTo(a,0);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD);this.Ellipse(a/2,0,a/2,c/2,100);this.get_graphics().endFill()},glass:function(a,b,c){this.get_graphics().lineStyle(0,0,0);c=af.GetColours(this.colour);var d=new pa,e=[16777215,16777215],f=[0,.5],g=new pa;g.createGradientBox(this.get_width(),this.get_height(),Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR, e,f,[150,255],g,Ja.PAD);var k=a/3;this.halfEllipse(a/2,b,a/2-.025*a,k/2-.025*a,100,!1);this.get_graphics().moveTo(.025*a,.025*a);this.get_graphics().lineTo(.025*a,b);this.get_graphics().lineTo(a-.025*a,b);this.get_graphics().lineTo(a-.025*a,.025*a);this.get_graphics().beginGradientFill(aa.LINEAR,c,[1,1],[0,255],d,Ja.PAD);this.Ellipse(a/2,0,a/2,k/2,100);this.get_graphics().beginGradientFill(aa.LINEAR,e,f,[25,255],g,Ja.PAD);this.Ellipse(a/2,0,a/2-.025*a,k/2-.025*a,100);this.get_graphics().endFill()}, Ellipse:function(a,b,c,d,e){this.get_graphics().moveTo(a+c,b);for(var f=0;f<=e;){var g=f/e,k=af.magicTrigFunctionX(g),g=af.magicTrigFunctionY(g),k=a+k*c,g=b+g*d;this.get_graphics().lineTo(k,g);f++}return 1},halfEllipse:function(a,b,c,d,e,f){var g;1==f?(g=e/2,f=e):(g=0,f=e/2);for(this.get_graphics().moveTo(a+c,b);g<=f;){var k=g/e,l=af.magicTrigFunctionX(k),k=af.magicTrigFunctionY(k),l=a+l*c,k=b+k*d;this.get_graphics().lineTo(l,k);g++}return 1},__class__:af});var Uo=function(a,b,c){bb.call(this,a,b, c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.quality=2;a.alpha=.4;this.set_filters([a])};g["trcharts.charts.series.bars.Dome"]=Uo;Uo.__name__=["trcharts","charts","series","bars","Dome"];Uo.__super__=bb;Uo.prototype=t(bb.prototype,{__class__:Uo});var jp=function(a,b,c){bb.call(this,a,b,c);b.has("negative-colour")?this.negative_colour=b.get_colour("negative-colour"):this.negative_colour=this.colour};g["trcharts.charts.series.bars.ECandle"]=jp;jp.__name__=["trcharts","charts","series", "bars","ECandle"];jp.__super__=bb;jp.prototype=t(bb.prototype,{high:null,low:null,negative_colour:null,parse_value:function(a){bb.prototype.parse_value.call(this,a);this.high=a.get("high");this.low=a.get("low")},replace_magic_values:function(a){return a},resize:function(a){var b=this.resize_helper(m.__cast(a,nd)),c=a.get_y_from_val(Math.max(this.top,this.bottom),this.right_axis),d=a.get_y_from_val(this.high,this.right_axis)-c;a.get_y_from_val(this.bottom,this.right_axis);a=a.get_y_from_val(this.low, this.right_axis)-c;this.tip_pos=new Q(this.get_x()+b.width/2,this.get_y());c=b.width/2;this.get_graphics().clear();var e=this.colour;b.upside_down&&(e=this.negative_colour);this.top_line(e,c,d);this.top==this.bottom?this.draw_doji(e,b.width,0):this.draw_box(e,0,b.height,b.width,b.upside_down);this.bottom_line(e,c,b.height,a);this.tip_pos=new Q(this.get_x()+b.width/2,this.get_y()+d)},top_line:function(a,b,c){this.get_graphics().beginFill(a,1);this.get_graphics().moveTo(b-1,0);this.get_graphics().lineTo(b+ 1,0);this.get_graphics().lineTo(b+1,c);this.get_graphics().lineTo(b-1,c);this.get_graphics().endFill()},bottom_line:function(a,b,c,d){this.get_graphics().beginFill(a,1);this.get_graphics().moveTo(b-1,c);this.get_graphics().lineTo(b+1,c);this.get_graphics().lineTo(b+1,d);this.get_graphics().lineTo(b-1,d);this.get_graphics().endFill()},draw_doji:function(a,b,c){this.get_graphics().beginFill(a,1);this.get_graphics().moveTo(0,c-1);this.get_graphics().lineTo(b,c-1);this.get_graphics().lineTo(b,c+1);this.get_graphics().lineTo(0, c+1);this.get_graphics().endFill()},draw_box:function(a,b,c,d,e){this.get_graphics().beginFill(a,1);this.get_graphics().moveTo(0,b);this.get_graphics().lineTo(d,b);this.get_graphics().lineTo(d,c);this.get_graphics().lineTo(0,c);this.get_graphics().lineTo(0,b);e&&(this.get_graphics().moveTo(2,b+2),this.get_graphics().lineTo(d-2,b+2),this.get_graphics().lineTo(d-2,c-2),this.get_graphics().lineTo(2,c-2),this.get_graphics().lineTo(2,b+2));this.get_graphics().endFill();e&&(this.get_graphics().lineStyle(0, 0,0),this.get_graphics().beginFill(0,0),this.get_graphics().moveTo(2,b-2),this.get_graphics().lineTo(d-2,b-2),this.get_graphics().lineTo(d-2,c-2),this.get_graphics().lineTo(2,c-2),this.get_graphics().endFill())},__class__:jp});var Yo=function(a,b,c){bb.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.quality=2;a.alpha=.4;this.set_filters([a])};g["trcharts.charts.series.bars.Glass"]=Yo;Yo.__name__=["trcharts","charts","series","bars","Glass"];Yo.__super__=bb;Yo.prototype=t(bb.prototype, {resize:function(a){this.get_graphics().clear();a=this.resize_helper(m.__cast(a,nd));0!=a.height&&(this.bg(a.width,a.height,a.upside_down),this.glass(a.width,a.height,a.upside_down))},bg:function(a,b,c){var d=7;d>a/2&&(d=a/2);this.get_graphics().lineStyle(0,0,0);this.get_graphics().beginFill(this.colour,1);c?(this.get_graphics().moveTo(0,0),this.get_graphics().lineTo(a,0),this.get_graphics().lineTo(a,b-d),this.get_graphics().curveTo(a,b,a-d,b),this.get_graphics().lineTo(d,b),this.get_graphics().curveTo(0, b,0,b-d),this.get_graphics().lineTo(0,0)):(this.get_graphics().moveTo(d,0),this.get_graphics().lineTo(a-d,0),this.get_graphics().curveTo(a,0,a,d),this.get_graphics().lineTo(a,b),this.get_graphics().lineTo(0,b),this.get_graphics().lineTo(0,d),this.get_graphics().curveTo(0,0,d,0));this.get_graphics().endFill()},glass:function(a,b,c){var d=2;a=a/2-2;c&&(d-=2);b-=2;this.get_graphics().lineStyle(0,0,0);var e=new pa;e.createGradientBox(a,this.get_height(),Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR, [16777215,16777215],[.3,.7],[0,255],e,Ja.PAD);c?(this.get_graphics().moveTo(2,d),this.get_graphics().lineTo(2+a,d),this.get_graphics().lineTo(2+a,d+b),this.get_graphics().lineTo(6,d+b),this.get_graphics().curveTo(2,d+b,2,d+b-4)):(this.get_graphics().moveTo(6,d),this.get_graphics().lineTo(2+a,d),this.get_graphics().lineTo(2+a,d+b),this.get_graphics().lineTo(2,d+b),this.get_graphics().lineTo(2,d+4),this.get_graphics().curveTo(2,d,6,d));this.get_graphics().endFill()},__class__:Yo});var Mi=function(a, b,c){Ta.call(this);this.index=a;this.left=b.left?b.left:0;this.right=b.right?b.right:0;this.colour=b.colour;this.group=c;this.set_visible(!0);this.set_alpha(.5);this.tooltip=this.replace_magic_values(b.tip);this.addEventListener(A.MOUSE_OVER,k(this,this.mouseOver));this.addEventListener(A.MOUSE_OUT,k(this,this.mouseOut))};g["trcharts.charts.series.bars.Horizontal"]=Mi;Mi.__name__=["trcharts","charts","series","bars","Horizontal"];Mi.__super__=Ta;Mi.prototype=t(Ta.prototype,{right:null,left:null,colour:null, group:null,replace_magic_values:function(a){a=W.replace(a,"#right#",zc.formatNumber(this.right));a=W.replace(a,"#left#",zc.formatNumber(this.left));return a=W.replace(a,"#val#",zc.formatNumber(this.right-this.left))},mouseOver:function(a){S.tween(this,1,{alpha:0})},mouseOut:function(a){S.tween(this,.5,{alpha:.5}).ease(Ze.get_easeOut())},resize:function(a){var b=m.__cast(a,nd).get_horiz_bar_coords(this.index,this.group),c=a.get_x_from_val(this.left);a=a.get_x_from_val(this.right)-c;this.get_graphics().clear(); this.get_graphics().beginFill(this.colour,1);this.get_graphics().drawRect(0,0,a,b.width);this.get_graphics().endFill();this.set_x(c);this.set_y(b.y)},get_mid_point:function(){return new Q(this.get_x()+this.get_width()/2,this.get_y())},get_tip_pos:function(){return{x:this.get_x()+this.get_width()-20,y:this.get_y()}},get_max_x:function(){return this.right},__class__:Mi});var $o=function(a,b,c){this.outline=0;bb.call(this,a,b,c);this.outline=b.get_colour("outline-colour")};g["trcharts.charts.series.bars.Outline"]= $o;$o.__name__=["trcharts","charts","series","bars","Outline"];$o.__super__=bb;$o.prototype=t(bb.prototype,{outline:null,resize:function(a){a=this.resize_helper(m.__cast(a,nd));this.get_graphics().clear();this.get_graphics().lineStyle(1,this.outline,1);this.get_graphics().beginFill(this.colour,1);this.get_graphics().moveTo(0,0);this.get_graphics().lineTo(a.width,0);this.get_graphics().lineTo(a.width,a.height);this.get_graphics().lineTo(0,a.height);this.get_graphics().lineTo(0,0);this.get_graphics().endFill()}, __class__:$o});var Sf=function(a,b,c){bb.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.quality=2;a.alpha=.4;this.set_filters([a])};g["trcharts.charts.series.bars.Plastic"]=Sf;Sf.__name__=["trcharts","charts","series","bars","Plastic"];Sf.GetColours=function(a){var b=(a&16711680)>>16,c=(a&65280)>>8,d=a&255,e=a,f=a,g=(a&16711680)>>16,k=(a&65280)>>8;a&=255;g=255>b+.15*b&&0b+.15*b?b+b/.15:b-.2625*b;a=255>d+.15*d&&0d+.15*d?d+.15*d:d-.2625*d;k= 255>c+.15*c&&0c+.15*c?c+.15*c:c-.2625*c;f=(g+.15*b|0)<<16|(k+.15*c|0)<<8|a+.15*d|0;e=(g-.2625*b|0)<<16|(k-.2625*c|0)<<8|a-.2625*d|0;return[f,(g|0)<<16|(k|0)<<8|a|0,e]};Sf.magicTrigFunctionX=function(a){return Math.cos(2*a*Math.PI)};Sf.magicTrigFunctionY=function(a){return Math.sin(2*a*Math.PI)};Sf.__super__=bb;Sf.prototype=t(bb.prototype,{resize:function(a){this.get_graphics().clear();a=this.resize_helper(m.__cast(a,nd));this.bg(a.width,a.height,a.upside_down);this.glass(a.width, a.height,a.upside_down)},bg:function(a,b,c){this.get_graphics().lineStyle(0,0,0);var d=Sf.GetColours(this.colour);c=d[0];var d=[d[1],d[2],d[2]],e=[1,1,1],f=[0,115,255],g=new pa,k=.02*a;g.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD);0b?(this.get_graphics().beginFill(0,1),this.get_graphics().drawRoundRect(0,0,a,b,a/3,a/3),this.get_graphics().beginFill(c,1),this.get_graphics().drawRoundRect(k,k,a-2*k,b-2*k,a/3-2*k,a/3-2*k),k*=3,this.get_graphics().beginGradientFill(aa.LINEAR, d,e,f,g,Ja.PAD),this.get_graphics().drawRoundRect(k,k,a-2*k,b-2*k,a/3-2*k,a/3-2*k)):(this.get_graphics().beginFill(0,1),this.get_graphics().drawRoundRect(0,0-2*k,a,b+4*k,a/3,a/3),this.get_graphics().beginFill(c,1),this.get_graphics().drawRoundRect(k,0-2*k+k,a-2*k,b+4*k-2*k,a/3-2*k,a/3-2*k),k*=3,this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD),this.get_graphics().drawRoundRect(k,0-2*k+k,a-2*k,b+4*k-2*k,a/3-2*k,a/3-2*k));this.get_graphics().endFill()},glass:function(a,b,c){this.get_graphics().lineStyle(0, 0,0);Sf.GetColours(this.colour);new pa;c=new pa;var d=.02*a;c.createGradientBox(this.get_width(),this.get_height(),Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,[16777215,16777215,16777215],[0,.05,.75],[0,123,255],c,Ja.PAD);0b?this.get_graphics().drawRoundRect(d,d,a-2*d,b-2*d,a/3-2*d,a/3-2*d):this.get_graphics().drawRoundRect(d,0-2*d+d,a-2*d,b+4*d-2*d,a/3-2*d,a/3-2*d);this.get_graphics().endFill()},Ellipse:function(a,b,c,d,e){this.get_graphics().moveTo(a+c,b);for(var f=0;f<=e;){var g= f/e,k=Sf.magicTrigFunctionX(g),g=Sf.magicTrigFunctionY(g),k=a+k*c,g=b+g*d;this.get_graphics().lineTo(k,g);f++}return 1},__class__:Sf});var Tf=function(a,b,c){bb.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.quality=2;a.alpha=.4;this.set_filters([a])};g["trcharts.charts.series.bars.PlasticFlat"]=Tf;Tf.__name__=["trcharts","charts","series","bars","PlasticFlat"];Tf.GetColours=function(a){var b=(a&16711680)>>16,c=(a&65280)>>8,d=a&255,e=a,f=a,g=(a&16711680)>>16,k=(a&65280)>> 8;a&=255;g=255>b+.15*b&&0b+.15*b?b+b/.15:b-.2625*b;a=255>d+.15*d&&0d+.15*d?d+.15*d:d-.2625*d;k=255>c+.15*c&&0c+.15*c?c+.15*c:c-.2625*c;f=(g+.15*b|0)<<16|(k+.15*c|0)<<8|a+.15*d|0;e=(g-.2625*b|0)<<16|(k-.2625*c|0)<<8|a-.2625*d|0;return[f,(g|0)<<16|(k|0)<<8|a|0,e]};Tf.magicTrigFunctionX=function(a){return Math.cos(2*a*Math.PI)};Tf.magicTrigFunctionY=function(a){return Math.sin(2*a*Math.PI)};Tf.__super__=bb;Tf.prototype=t(bb.prototype,{resize:function(a){this.get_graphics().clear(); a=this.resize_helper(m.__cast(a,nd));this.bg(a.width,a.height,a.upside_down);this.glass(a.width,a.height,a.upside_down)},bg:function(a,b,c){this.get_graphics().lineStyle(0,0,0);var d=Tf.GetColours(this.colour);c=d[0];var d=[d[1],d[2],d[2]],e=[1,1,1],f=[0,115,255],g=new pa,k=.02*a;g.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD);0b?(this.get_graphics().beginFill(0,1),this.get_graphics().drawRoundRect(0,0,a,b,a/3,a/3),this.get_graphics().beginFill(c, 1),this.get_graphics().drawRoundRect(k,k,a-2*k,b-2*k,a/3-2*k,a/3-2*k),k*=3,this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD),this.get_graphics().drawRoundRect(k,k,a-2*k,b-2*k,a/3-2*k,a/3-2*k)):(this.get_graphics().beginFill(0,1),this.get_graphics().drawRoundRect(0,0-2*k,a,b+4*k,a/3,a/3),this.get_graphics().beginFill(c,1),this.get_graphics().drawRoundRect(k,0-2*k+k,a-2*k,b+4*k-2*k,a/3-2*k,a/3-2*k),k*=3,this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD),this.get_graphics().drawRoundRect(k, 0-2*k+k,a-2*k,b+4*k-2*k,a/3-2*k,a/3-2*k));this.get_graphics().endFill()},glass:function(a,b,c){this.get_graphics().lineStyle(0,0,0);var d=Tf.GetColours(this.colour),e=d[0],d=[d[1],d[2],d[2]],f=[1,1,1],g=[0,115,255],k=new pa,l=[16777215,16777215,16777215],m=[0,.05,.75],n=[0,123,255],q=new pa,r=.02*a;k.createGradientBox(a,b,Math.PI);q.createGradientBox(this.get_width(),this.get_height(),Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,l,m,n,q,Ja.PAD);0>16,c=(a&65280)>> 8,d=a&255,e=a,f=(a&16711680)>>16,g=(a&65280)>>8;a&=255;if(255a/2&&(c=a/2);this.get_graphics().lineStyle(0,0,0);var d=bf.GetColours(this.colour),e=[1,1],f=[0,255],g=new pa;g.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD);0=a?(c=a/2,this.halfEllipse(a/2,b-a/2,c,c,100,!1),this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD),this.get_graphics().moveTo(0,a/2),this.get_graphics().lineTo(0,b-a/2),this.get_graphics().lineTo(a,b-a/2),this.get_graphics().lineTo(a, a/2),d=a/2,e=a/2,a=c=a/2):(this.halfEllipse(a/2,b/2,a/2,b/2,100,!1),d=a/2,e=b/2,c=a/2,a=b/2),this.halfEllipse(d,e,c,a,100,!0)):this.Ellipse(a/2,b,a/2,c/4,100);this.get_graphics().endFill()},glass:function(a,b,c){this.get_graphics().lineStyle(0,0,0);bf.GetColours(this.colour);(new pa).createGradientBox(a,b,Math.PI);c=[16777215,16777215];var d=[0,.75],e=[100,255],f,g=new pa;g.createGradientBox(this.get_width(),this.get_height(),Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,c,d,e,g,Ja.PAD); f=a/3;0=a?(this.get_graphics().beginGradientFill(aa.LINEAR,c,d,e,g,Ja.PAD),f=a/3-.05*a,this.halfEllipse(a/3,b-a/2,f,f+.05*a,100,!1),this.get_graphics().moveTo(.05*a,a/2),this.get_graphics().lineTo(.05*a,b-a/2),this.get_graphics().lineTo(a-.05*a,b-a/2),this.get_graphics().lineTo(a-.05*a,a/2),this.get_graphics().beginGradientFill(aa.LINEAR,c,d,e,g,Ja.PAD),f=a/3-.05*a,this.halfEllipse(a/3,a/2,f,f+.05*a,100,!0)):(this.get_graphics().beginGradientFill(aa.LINEAR,c,d,e,g,Ja.PAD),this.Ellipse(a/3,b/ 2,a/3-.05*a,b/2-3*.05*a,100)):this.Ellipse(a/2,b,a/2-.05*a,f/4-.05*a,100);this.get_graphics().endFill()},Ellipse:function(a,b,c,d,e){this.get_graphics().moveTo(a+c,b);for(var f=0;f<=e;){var g=f/e,k=bf.magicTrigFunctionX(g),g=bf.magicTrigFunctionY(g),k=a+k*c,g=b+g*d;this.get_graphics().lineTo(k,g);f++}return 1},halfEllipse:function(a,b,c,d,e,f){var g;1==f?(g=e/2,f=e):(g=0,f=e/2);for(this.get_graphics().moveTo(a+c,b);g<=f;){var k=g/e,l=bf.magicTrigFunctionX(k),k=bf.magicTrigFunctionY(k),l=a+l*c,k=b+ k*d;this.get_graphics().lineTo(l,k);g++}return 1},__class__:bf});var cf=function(a,b,c){bb.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.quality=2;a.alpha=.4;this.set_filters([a])};g["trcharts.charts.series.bars.Round3D"]=cf;cf.__name__=["trcharts","charts","series","bars","Round3D"];cf.GetColours=function(a){var b=(a&16711680)>>16,c=(a&65280)>>8,d=a&255,e=a,f=(a&16711680)>>16,g=(a&65280)>>8;a&=255;if(255a/2&&(d=a/2);this.get_graphics().lineStyle(0,0,0);var e=cf.GetColours(this.colour), f=[1,1],g=[0,255],k=new pa;k.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,e,f,g,k,Ja.PAD);!c&&0=a/2?(this.halfEllipse(a/2,b,a/2,d/2,100,!1),this.get_graphics().beginGradientFill(aa.LINEAR,e,f,g,k,Ja.PAD),this.get_graphics().moveTo(0,a/2),this.get_graphics().lineTo(0,b),this.get_graphics().lineTo(a,b),this.get_graphics().lineTo(a,a/2),e=a/2,f=a/2,d=c=a/2):(this.halfEllipse(a/2,b,a/2,d/2,100,!1),e=a/2,f=b,c=a/2,d=b),this.halfEllipse(e,f,c,d,100,!0)):b>=a/2?(this.halfEllipse(a/ 2,0,a/2,d/2,100,!0),this.get_graphics().beginGradientFill(aa.LINEAR,e,f,g,k,Ja.PAD),this.get_graphics().moveTo(0,0),this.get_graphics().lineTo(0,b-a/2),this.get_graphics().lineTo(a,b-a/2),this.get_graphics().lineTo(a,0),d=c=a/2,this.halfEllipse(a/2,b-a/2,c,d,100,!1)):0=a/2?(this.halfEllipse(a/2,b,a/2-.05*a,r/2-.05*a,100,!1),this.get_graphics().moveTo(.05*a,a/2),this.get_graphics().lineTo(.05*a,b),this.get_graphics().lineTo(a-.05*a,b),this.get_graphics().lineTo(a-.05*a,a/2),this.get_graphics().beginGradientFill(aa.LINEAR, d,e,f,g,Ja.PAD),n=c=a/2,this.halfEllipse(a/2,a/2,c,n,100,!0),this.get_graphics().beginGradientFill(aa.LINEAR,k,l,m,q,Ja.PAD),d=a/3,e=a/2,c=a/3-.05*a,n=c+.05*a):(this.halfEllipse(a/2,b,a/2-.05*a,r/2-.05*a,100,!1),this.get_graphics().beginGradientFill(aa.LINEAR,k,l,m,q,Ja.PAD),d=a/3,e=b,c=a/3-.05*a,n=b-.125*a),this.halfEllipse(d,e,c,n,100,!0)):(b>=a/2?(this.get_graphics().moveTo(.05*a,0),this.get_graphics().lineTo(.05*a,b-a/2),this.get_graphics().lineTo(a-.05*a,b-a/2),this.get_graphics().lineTo(a-.05* a,0),this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD),n=c=a/2,this.halfEllipse(a/2,b-a/2,c,n,100,!1),this.get_graphics().beginGradientFill(aa.LINEAR,k,l,m,q,Ja.PAD),c=a/3-.05*a,n=c+.05*a,this.halfEllipse(a/3,b-a/2,c,n,100,!1),this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD),this.Ellipse(a/2,0,a/2,r/2,100),this.get_graphics().beginGradientFill(aa.LINEAR,k,[.1,.7],[0,255],q,Ja.PAD)):0>16,c=(a&65280)>>8,d=a&255,e=a,f=(a&16711680)>>16,g=(a&65280)>>8;a&=255;if(255=a/2?(this.get_graphics().beginGradientFill(aa.LINEAR, d,e,f,g,Ja.PAD),this.get_graphics().moveTo(0,a/2),this.get_graphics().lineTo(0,b),this.get_graphics().lineTo(a,b),this.get_graphics().lineTo(a,a/2),d=a/2,e=a/2,a=c=a/2):(d=a/2,e=b,c=a/2,a=b),this.halfEllipse(d,e,c,a,100,!0)):b>=a/2?(this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD),this.get_graphics().moveTo(0,0),this.get_graphics().lineTo(0,b-a/2),this.get_graphics().lineTo(a,b-a/2),this.get_graphics().lineTo(a,0),c=a/2,this.halfEllipse(a/2,b-a/2,c,c,100,!1)):0=a/2?(this.get_graphics().moveTo(.05*a,a/2),this.get_graphics().lineTo(.05*a,b-.05*a),this.get_graphics().lineTo(a-.05*a,b-.05*a),this.get_graphics().lineTo(a-.05*a,a/2),this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD),c=a/2,this.halfEllipse(a/2,a/2,c,c,100,!0),this.get_graphics().beginGradientFill(aa.LINEAR,k,l,m,n,Ja.PAD),k=a/3,l=a/2,c=a/3-.05*a,a=c+.05*a):(this.get_graphics().beginGradientFill(aa.LINEAR, k,l,m,n,Ja.PAD),k=a/3,l=b-.05*a,c=a/3-.05*a,a=b-.125*a),this.halfEllipse(k,l,c,a,100,!0)):b>=a/2?(this.get_graphics().moveTo(.05*a,.05*a),this.get_graphics().lineTo(.05*a,b-a/2),this.get_graphics().lineTo(a-.05*a,b-a/2),this.get_graphics().lineTo(a-.05*a,.05*a),this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ja.PAD),c=a/2,this.halfEllipse(a/2,b-a/2,c,c,100,!1),this.get_graphics().beginGradientFill(aa.LINEAR,k,l,m,n,Ja.PAD),c=a/3-.05*a,this.halfEllipse(a/3,b-a/2,c,c+.05*a,100,!1)):0e;)this.get_graphics().moveTo(d*e+d/2+(Math.random()*b-c),2+(Math.random()*b-c)),this.get_graphics().lineTo(d*e+d/2+(Math.random()*b-c),a.height-2+(Math.random()*b-c)),e++;this.get_graphics().lineStyle(2,this.outline,1);this.get_graphics().moveTo(Math.random()*b-c,Math.random()* b-c);this.get_graphics().lineTo(Math.random()*b-c,a.height+Math.random()*b-c);this.get_graphics().moveTo(Math.random()*b-c,Math.random()*b-c);this.get_graphics().lineTo(a.width+(Math.random()*b-c),Math.random()*b-c);this.get_graphics().moveTo(a.width+(Math.random()*b-c),Math.random()*b-c);this.get_graphics().lineTo(a.width+(Math.random()*b-c),a.height+(Math.random()*b-c));this.get_graphics().moveTo(Math.random()*b-c,a.height+(Math.random()*b-c));this.get_graphics().lineTo(a.width+(Math.random()*b- c),a.height+(Math.random()*b-c))},__class__:gp});var ml=function(a,b,c){this.total=b.get("total");bb.call(this,a,b,c)};g["trcharts.charts.series.bars.Stack"]=ml;ml.__name__=["trcharts","charts","series","bars","Stack"];ml.__super__=bb;ml.prototype=t(bb.prototype,{total:null,replace_magic_values:function(a){a=bb.prototype.replace_magic_values.call(this,a);return a=W.replace(a,"#total#",zc.formatNumber(this.total))},replace_x_axis_label:function(a){this.tooltip=W.replace(this.tooltip,"#x_label#",a)}, resize:function(a){a=this.resize_helper(m.__cast(a,nd));this.get_graphics().clear();this.get_graphics().beginFill(this.colour,1);this.get_graphics().moveTo(0,0);this.get_graphics().lineTo(a.width,0);this.get_graphics().lineTo(a.width,a.height);this.get_graphics().lineTo(0,a.height);this.get_graphics().lineTo(0,0);this.get_graphics().endFill()},__class__:ml});var jl=function(a,b,c){Ta.call(this);this.tooltip=b.get("tip");this.index=a;this.vals=m.__cast(b.get("values"),Array);for(var d=this.total=0, e=this.vals;dc&&(c=3);360c&&(c=3);360d;){var e;e=0==d%2?b:b/2;var f=this.calcXOnCircle(e,c);e=this.calcYOnCircle(e,c);0==d?a.moveTo(f,e):a.lineTo(f, e);c+=36;d++}},drawStar:function(a,b,c){c=-90+c;for(var d=0;5>=d;){var e=this.calcXOnCircle(b,c),f=this.calcYOnCircle(b,c);0==d?a.moveTo(e,f):a.lineTo(e,f);c+=144;d++}},__class__:Jr});var rp=function(a,b){Ec.call(this,a,b);var c=Xa.get_colour(b.get("colour"));this.tooltip=this.replace_magic_values(b.get("tip"));this.attach_events();if(b.get("hollow")){var d;d=b.has("background-colour")?Xa.get_colour(b.get("background-colour")):c;this.get_graphics().beginFill(d,b.get("background-alpha"))}else this.get_graphics().beginFill(c, b.get("alpha"));this.get_graphics().lineStyle(b.get("width"),c,b.get("alpha"));this.drawStar_2(this.get_graphics(),this.radius,b.get("rotation"));0c&&(c=5);360d;){var e=d++,f;f=0==e%2?b:b/2;var g=this.calcXOnCircle(f,c);f=this.calcYOnCircle(f,c);0==e?a.moveTo(g,f):a.lineTo(g,f);c+=36}},__class__:rp});var op=function(a){var b=new Wa({alpha:.5,"start-angle":90,"label-colour":null,"font-size":10,"gradient-fill":!1, stroke:1,colours:["#900000","#009000"],animate:[{type:"fade-in"}],tip:"#val# of #total#","no-labels":!1,"on-click":null});Wa.call(this,a,b)};g["trcharts.charts.series.pies.DefaultPieProperties"]=op;op.__name__=["trcharts","charts","series","pies","DefaultPieProperties"];op.__super__=Wa;op.prototype=t(Wa.prototype,{__class__:op});var Vh=function(a){La.call(this);this.set_text(a.label);var b=new ub;b.color=Xa.get_colour(r.field(a,"colour"));b.font="Verdana";b.size=r.field(a,"font-size");this.setTextFormat(b); this.set_autoSize(Ka.LEFT);this.mouseEnabled=!1;this.set_selectable(!1)};g["trcharts.charts.series.pies.PieLabel"]=Vh;Vh.__name__=["trcharts","charts","series","pies","PieLabel"];Vh.__interfaces__=[Th];Vh.__super__=La;Vh.prototype=t(La.prototype,{is_over:null,move_label:function(a,b,c,d){var e=b+a*Math.cos(d*Vh.TO_RADIANS);a=c+a*Math.sin(d*Vh.TO_RADIANS);e=this.getTicAngle()},get_colour:function(){return this.colour},__class__:up});var Gg=function(a,b){this.animationOffset=30;this.label_margin=2;this.tick_extension_size=4;this.tick_size=10;this.TO_RADIANS=Math.PI/180;Ta.call(this);this.pieSlice=new up(a,b);this.addChild(this.pieSlice); b.get("label");this.set_alpha(this.original_alpha=b.get("alpha"));b.has("label-colour")||b.set("label-colour",b.get("colour"));var c;c=b.get("no-labels")?"":b.get("label");this.pieLabel=new Vh({label:c,colour:b.get("label-colour"),"font-size":b.get("font-size"),"on-click":b.get("on-click")});this.addChild(this.pieLabel);this.attach_events__(b);this.animating=!1};g["trcharts.charts.series.pies.PieSliceContainer"]=Gg;Gg.__name__=["trcharts","charts","series","pies","PieSliceContainer"];Gg.__super__= Ta;Gg.prototype=t(Ta.prototype,{TO_RADIANS:null,animating:null,pieSlice:null,pieLabel:null,pieRadius:null,tick_size:null,tick_extension_size:null,label_margin:null,animationOffset:null,saveX:null,saveY:null,moveToX:null,moveToY:null,original_alpha:null,is_over:function(){return this.pieSlice.is_over},get_slice:function(){return this.pieSlice},get_label:function(){return this.pieLabel},resize:function(a){},is_label_on_screen:function(a,b){return this.pieLabel.move_label(b+10,a.get_center_x(),a.get_center_y(), this.pieSlice.angle+this.pieSlice.slice_angle/2)},pie_resize:function(a,b){this.pieRadius=b;this.pieSlice.pie_resize(a,b);var c=this.getTicAngle();this.saveX=this.get_x();this.saveY=this.get_y();this.moveToX=this.get_x()+this.animationOffset*Math.cos(c*this.TO_RADIANS);this.moveToY=this.get_y()+this.animationOffset*Math.sin(c*this.TO_RADIANS);if(this.pieLabel.get_visible()){var d=b+this.tick_size,c=c*this.TO_RADIANS;this.pieLabel.set_x(this.pieSlice.get_x()+d*Math.cos(c));this.pieLabel.set_y(this.pieSlice.get_y()+ d*Math.sin(c));this.isRightSide()?(d=this.pieLabel,d.set_x(d.get_x()+(this.tick_extension_size+this.label_margin))):this.pieLabel.set_x(this.pieLabel.get_x()-this.pieLabel.get_width()-this.tick_extension_size-this.label_margin-4);d=this.pieLabel;d.set_y(d.get_y()-this.pieLabel.get_height()/2);this.drawTicLines()}},get_tooltip:function(){return this.pieSlice.get_tooltip()},get_tip_pos:function(){var a=this.localToGlobal(new Q(this.get_mouseX(),this.get_mouseY()));return{x:a.x,y:a.y}},attach_events__:function(a){a= a.get("animate");a instanceof Array&&null==a.__enum__||(a=null==a||a?[{type:"bounce",distance:5}]:[]);a=m.__cast(a,Array);this.addEventListener(A.MOUSE_OVER,k(this,this.mouseOver_first),!1,0,!0);this.addEventListener(A.MOUSE_OUT,k(this,this.mouseOut_first),!1,0,!0);try{for(;0a.bottom-1&&(e=a.bottom-this.pieLabel.get_height()-d,c=!0);d=this.pieLabel;d.set_y(d.get_y()+e);c||(c=this.pieRadius+this.tick_size,e=(this.pieLabel.get_y()+this.pieLabel.get_height()/2-this.pieSlice.get_y())/c,e=Math.max(-1,Math.min(1,e)),e=Math.asin(e)/this.TO_RADIANS,90this.getTicAngle()?e=180-e:270<=this.getTicAngle()&&(e=360+e),c=this.pieSlice.get_x()+c*Math.cos(e*this.TO_RADIANS),this.isRightSide()?this.pieLabel.set_x(c+this.tick_extension_size+this.label_margin): this.pieLabel.set_x(c-this.pieLabel.get_width()-this.tick_extension_size-this.label_margin-4))}this.drawTicLines();return this.pieLabel.get_y()+this.pieLabel.get_height()}return b},moveLabelUp:function(a,b){if(this.pieLabel.get_visible()){var c=!1,d=this.getLabelBottomY();if(d>b){d=b-d;b-this.pieLabel.get_height()this.getTicAngle()?d=180-d:270<=this.getTicAngle()&&(d=360+d),c=this.pieSlice.get_x()+c*Math.cos(d*this.TO_RADIANS),this.isRightSide()?this.pieLabel.set_x(c+this.tick_extension_size+this.label_margin):this.pieLabel.set_x(c-this.pieLabel.get_width()-this.tick_extension_size-this.label_margin-4))}this.drawTicLines();return this.pieLabel.get_y()}return b},get_radius_offsets:function(){var a={top:this.animationOffset, right:this.animationOffset,bottom:this.animationOffset,left:this.animationOffset};if(this.pieLabel.get_visible()){var b=this.getTicAngle(),c=this.tick_size;0<=b&&90>=b?(a.bottom=b/90*c+this.pieLabel.get_height()/2+1,a.right=(90-b)/90*c+this.tick_extension_size+this.label_margin+this.pieLabel.get_width()):90=b?(a.bottom=(180-b)/90*c+this.pieLabel.get_height()/2+1,a.left=(b-90)/90*c+this.tick_extension_size+this.label_margin+this.pieLabel.get_width()+4):180b?(a.top=(b-180)/90*c+this.pieLabel.get_height()/ 2+1,a.left=(270-b)/90*c+this.tick_extension_size+this.label_margin+this.pieLabel.get_width()+4):(a.top=(360-b)/90*c+this.pieLabel.get_height()/2+1,a.right=(b-270)/90*c+this.tick_extension_size+this.label_margin+this.pieLabel.get_width())}return a},drawTicLines:function(){if(""!=this.pieLabel.get_text()&&this.pieLabel.get_visible()){var a=this.getTicAngle()*this.TO_RADIANS,b,c;b=this.pieSlice.isRightSide()?this.pieLabel.get_x()-this.label_margin:this.pieLabel.get_x()+this.pieLabel.get_width()+this.label_margin+ 4;c=this.pieLabel.get_y()+this.pieLabel.get_height()/2;var d=this.pieSlice.get_x()+this.pieRadius*Math.cos(a),a=this.pieSlice.get_y()+this.pieRadius*Math.sin(a);this.get_graphics().clear();var e=this.pieSlice.get_colour();this.get_graphics().lineStyle(1,e,1);this.get_graphics().moveTo(b,c);this.pieSlice.isRightSide()?this.get_graphics().lineTo(b-this.tick_extension_size,c):this.get_graphics().lineTo(b+this.tick_extension_size,c);this.get_graphics().lineTo(d,a)}},getTicAngle:function(){return this.pieSlice.getTicAngle()}, isRightSide:function(){return this.pieSlice.isRightSide()},__class__:Gg});var ll=function(a){this.xAdj=this.yAdj=0;La.call(this);this._x=a.x;this._y=a.y;this.right_axis="right"==a.axis;r.field(a,"on-click")&&this.set_on_click(r.field(a,"on-click"));this.set_htmlText(this.replace_magic_values(a.text));this.set_autoSize(Ka.LEFT);this.set_alpha(a.alpha);this.set_border(a.border);null!=a.background&&(this.set_background(!0),this.set_backgroundColor(Xa.get_colour(a.background)));var b=new ub;0!=a.rotate? (b.font="spArial",this.set_embedFonts(!0)):b.font=a.font;b.color=a.colour;b.size=r.field(a,"font-size");b.bold=a.bold;b.underline=a.underline;this.setTextFormat(b);this.set_selectable(!1);this.rotate_and_align(a.rotate,r.field(a,"align-x"),r.field(a,"align-y"),r.field(a,"pad-x"),r.field(a,"pad-y"))};g["trcharts.charts.series.tags.Tag"]=ll;ll.__name__=["trcharts","charts","series","tags","Tag"];ll.__super__=La;ll.prototype=t(La.prototype,{_x:null,_y:null,xAdj:null,yAdj:null,link:null,index:null,right_axis:null, rotate_and_align:function(a,b,c,d,e){a%=360;0>a&&(a+=360);this.set_rotation(a);this.get_width();Math.cos(a*Math.PI/180);this.get_height();Math.cos((90-a)*Math.PI/180);this.get_height();Math.sin((90-a)*Math.PI/180);this.get_width();Math.sin(a*Math.PI/180);if("right"==b){switch(a){case 0:this.xAdj=0;break;case 90:this.xAdj=this.get_width();break;case 180:this.xAdj=this.get_width();break;case 270:this.xAdj=0}this.xAdj+=d}else if("left"==b){switch(a){case 0:this.xAdj=-this.get_width();break;case 90:this.xAdj= 0;break;case 180:this.xAdj=0;break;case 270:this.xAdj=-this.get_width()}this.xAdj-=d}else switch(a){case 0:this.xAdj=-this.get_width()/2;break;case 90:this.xAdj=this.get_width()/2;break;case 180:this.xAdj=this.get_width()/2;break;case 270:this.xAdj=-this.get_width()/2}if("center"==c)switch(a){case 0:this.yAdj=-this.get_height()/2;break;case 90:this.yAdj=-this.get_height()/2;break;case 180:this.yAdj=this.get_height()/2;break;case 270:this.yAdj=this.get_height()/2}else if("below"==c){switch(a){case 0:this.yAdj= 0;break;case 90:this.yAdj=0;break;case 180:this.yAdj=this.get_height();break;case 270:this.yAdj=this.get_height()}this.yAdj+=e}else{switch(a){case 0:this.yAdj=-this.get_height();break;case 90:this.yAdj=-this.get_height();break;case 180:this.yAdj=0;break;case 270:this.yAdj=0}this.yAdj-=e}},replace_magic_values:function(a){a=W.replace(a,"/#x#/g",zc.formatNumber(this._x));a=W.replace(a,"#y#",zc.formatNumber(this._y));a=De.replace_magic_values(a,this._x);a=W.replace(a,"/#ygmdate/g","#gmdate");a=W.replace(a, "#ydate","#date");return a=De.replace_magic_values(a,this._y)},set_on_click:function(a){this.link=a;this.addEventListener(A.MOUSE_UP,k(this,this.mouseUp),!1,0,!0)},mouseUp:function(a){"trace:"==this.link.substring(0,6)?null:"http:"==this.link.substring(0,5)?this.browse_url(this.link):Kg.call(this.link,this._x)},browse_url:function(a){a=new mc(this.link);try{ha.getURL(a)}catch(b){if(G.lastException=b,b instanceof q&&(b=b.val),m.__instanceof(b,O))null;else throw b;}},resize:function(a){this.set_x(a.get_x_from_val(this._x)+ this.xAdj);this.set_y(a.get_y_from_val(this._y,this.right_axis)+this.yAdj)},__class__:ll});var Co=function(a,b){F.call(this);this._trcharts=b;Object.prototype.hasOwnProperty.call(a,"bg_colour")&&null!=r.field(a,"bg_colour")?this.colour=Xa.get_colour(a.bg_colour):this.colour=16316632;Object.prototype.hasOwnProperty.call(a,"bg_image")&&null!=r.field(a,"bg_image")&&this.load_img(a.bg_image)};g["trcharts.elements.Background"]=Co;Co.__name__=["trcharts","elements","Background"];Co.__super__=F;Co.prototype= t(F.prototype,{colour:null,img_x:null,img_y:null,_trcharts:null,load_img:function(a){Object.prototype.hasOwnProperty.call(a,"bg_image_x")&&null!=r.field(a,"bg_image_x")&&(this.img_x=a.bg_image_x);Object.prototype.hasOwnProperty.call(a,"bg_image_y")&&null!=r.field(a,"bg_image_y")&&(this.img_y=a.bg_image_y)},resize:function(){this.get_graphics().clear();this.get_graphics().beginFill(this.colour);this.get_graphics().drawRect(0,0,this._trcharts.get_realWidth(),this._trcharts.get_realHeight())},die:function(){this.get_graphics().clear()}, __class__:Co});var ck=function(){this.xVal=this.yVal=NaN;this.xAdj=this.yAdj=this.leftOverhang=this.rightOverhang=0;La.call(this)};g["trcharts.elements.axis.AxisLabel"]=ck;ck.__name__=["trcharts","elements","axis","AxisLabel"];ck.__super__=La;ck.prototype=t(La.prototype,{xAdj:null,yAdj:null,leftOverhang:null,rightOverhang:null,xVal:null,yVal:null,rotate_and_align:function(a,b,c){a%=360;0>a&&(a+=360);var d=this.get_width()*Math.cos(a*Math.PI/180),e=this.get_height()*Math.cos((90-a)*Math.PI/180),f= this.get_height()*Math.sin((90-a)*Math.PI/180),g=this.get_width()*Math.sin(a*Math.PI/180);this.xAdj=0==a%90||"center"==b?(e-d)/2:180>a?e/2:-d+e/2;90").join("\n");b.set_text(c);b.set_selectable(!1);c=new ub;c.color=a.colour;c.font="Verdana";c.size=a.size;c.align=$b.RIGHT;b.setTextFormat(c);b.set_autoSize(Ka.LEFT);b.set_visible(!0); return b},resize:function(a){var b,c=0,d;do{d=!1;this.resize_2(a);for(c=0;ca.bottom||b.get_x()+b.get_width()>a.right)d=!0;c++}a.reduce_radius()}while(d&&10d?c.set_x(e.x):c.set_x(e.x- c.get_width());0==b?(c.set_y(e.y-c.get_height()),c.set_x(e.x)):c.set_y(e.y);b++}},die:function(){this.labels=this.style=null;for(this.get_graphics().clear();0c?this.set_range(0,this.labels.count()):this.set_range(b,c);this.make_user_ticks()};g["trcharts.elements.axis.XAxis"]=Jo;Jo.__name__=["trcharts","elements","axis","XAxis"];Jo.__super__=F;Jo.prototype=t(F.prototype,{steps:null,alt_axis_colour:null, alt_axis_step:null,three_d:null,three_d_height:null,stroke:null,tick_height:null,colour:null,offset:null,grid_colour:null,grid_visible:null,user_ticks:null,user_labels:null,labels:null,style:null,make_user_ticks:function(){if(null!=this.style.labels&&null!=this.style.labels.labels&&this.style.labels.labels instanceof Array&&null==this.style.labels.labels.__enum__&&0=this.style.max;this.steps=null!=this.style.steps&&0!=this.style.steps?this.style.steps:1;250=this.style.max,d=this.style.max,e=this.style.min;c?e>=d:e<=d;){1=a.max,d=1;null!=this.style.steps&&(d=this.style.steps);250=a.max:k<=a.max;)f.x=k,null==this.userSpecifiedVisible? (f.visible=0==g%e,g++):f.visible=this.userSpecifiedVisible,this.add(null,f),k+=d}},add:function(a,b){var c={colour:b.colour,text:b.text,rotate:b.rotate,size:b.size,align:b.align,visible:b.visible,x:b.x};"string"==typeof a?c.text=m.__cast(a,String):Eb.merge_2(a,c);null!=c.x&&(c.text=this.replace_magic_values(c.text,c.x));var d=r.field(c,"text");d.split("
");c.text=d+"\n";this.axis_labels[c.x]=c.text;c.visible&&("string"==typeof c.colour&&(c.colour=Xa.get_colour(c.colour)),c=this.make_label(c),this.addChild(c))}, get:function(a){return athis.style.steps&&(this.style.steps*=-1);return(b-a)/this.style.steps>c/2?(b-a)/5:this.style.steps},resize:function(a,b){},resize_helper:function(a,b,c){var d;d=Math.min(this.style.min,this.style.max);var e=Math.max(this.style.min,this.style.max);c?this.labels.resize(b.right+this.stroke+this.tick_length,b):this.labels.resize(a,b);if(this.style.visible)if(this.get_graphics().clear(), this.get_graphics().lineStyle(0,0,0),r.field(this.style,"grid-visible")&&this.draw_grid_lines(this.style.steps,d,e,c,b),a=c?b.right:b.left-this.stroke,this.get_graphics().beginFill(this.colour,1),this.get_graphics().drawRect(a|0,b.top,this.stroke,b.height),this.get_graphics().endFill(),this.user_ticks)for(e=0,a=this.user_labels;ee.get_y()&&0==b.top&&e.set_y(0!=e.get_rotation()?e.get_height():e.get_textHeight()-e.get_height()),d++},__class__:xp});var yp=function(a){jh.call(this,a,"y_axis_right");this.lblText="#val#";this.i_need_labels=!1};g["trcharts.elements.axis.YAxisLabelsRight"]=yp;yp.__name__=["trcharts","elements","axis","YAxisLabelsRight"];yp.__super__=jh;yp.prototype=t(jh.prototype,{resize:function(a,b){this.get_width();var c,d;for(c=0;cd.get_y()&&0==b.top&&d.set_y(0!=d.get_rotation()?d.get_height():d.get_textHeight()-d.get_height()),c++},__class__:yp});var Ko=function(){F.call(this)};g["trcharts.elements.axis.YAxisLeft"]=Ko;Ko.__name__=["trcharts","elements","axis","YAxisLeft"];Ko.__super__=Uf;Ko.prototype=t(Uf.prototype, {init:function(a){this.labels=new xp(a);this.addChild(this.labels);Uf.prototype._init.call(this,a,"y_axis",{stroke:2,"tick-length":3,colour:"#784016",offset:!1,"grid-colour":"#F5E1AA","grid-visible":!0,"3d":0,steps:1,visible:!0,min:0,max:null})},resize:function(a,b){Uf.prototype.resize_helper.call(this,a,b,!1)},__class__:Ko});var Lo=function(){F.call(this)};g["trcharts.elements.axis.YAxisRight"]=Lo;Lo.__name__=["trcharts","elements","axis","YAxisRight"];Lo.__super__=Uf;Lo.prototype=t(Uf.prototype, {init:function(a){this.labels=new yp(a);this.addChild(this.labels);var b={stroke:2,"tick-length":3,colour:"#784016",offset:!1,"grid-colour":"#F5E1AA","grid-visible":!1,"3d":0,steps:1,visible:!1,min:0,max:10};a.y_axis_right&&(b.visible=!0);Uf.prototype._init.call(this,a,"y_axis_right",b)},resize:function(a,b){Uf.prototype.resize_helper.call(this,a,b,!0)},__class__:Lo});var Kr=function(a,b){this.style={size:10,colour:0,show_labels:!0,visible:!0};var c;if(Object.prototype.hasOwnProperty.call(a,b+"_label_style")|| null!=r.field(a,b+"_label_style"))0>r.field(a,b+"_label_style").lastIndexOf(",")?(c=r.field(a,b+"_label_style").lastIndexOf("none",0),-1this.stage.stageWidth&&(d=0,e+=this.getChildAt(f).get_height(),c+=this.getChildAt(f).get_height());this.draw_line(d,e,this.getChildAt(f).get_height(),this.colours[f]);d+=12;this.getChildAt(f).set_x(d);this.getChildAt(f).set_y(e);d+=g+10;f++}this._height=c+=this.getChildAt(0).get_height()}}, get_height:function(){return this._height},die:function(){this.colours=null;for(this.get_graphics().clear();0a.getDate()?"0":"")+a.getDate();break;case "D":c+=De.dateConsts.shortDays[a.getDate()];break;case "j":c+=a.getDate();break;case "l":c+=De.dateConsts.longDays[a.getDay()]; break;case "N":c+=a.getDay()+1;break;case "S":c=1==a.getDate()%10&&11!=a.getDate()?c+"st":2==a.getDate()%10&&12!=a.getDate()?c+"nd":3==a.getDate()%10&&13!=a.getDate()?c+"rd":c+"th";break;case "w":c+=a.getDay();break;case "F":throw c+=De.dateConsts.longMonths[a.getMonth()],"__break__";case "m":throw c+=(9>a.getMonth()?"0":"")+(a.getMonth()+1),"__break__";case "M":throw c+=De.dateConsts.shortMonths[a.getMonth()],"__break__";case "n":throw c+=a.getMonth()+1,"__break__";case "Y":throw c+=a.getFullYear(), "__break__";case "y":var f=""+a.getFullYear(),c=c+X.substr(f,2,null);throw"__break__";case "a":throw c=12>a.getHours()?c+"am":c+"pm","__break__";case "A":throw c=12>a.getHours()?c+"AM":c+"PM","__break__";case "g":throw c=0==a.getHours()?c+12:12a.getHours()?"0":"")+a.getHours(),"__break__";case "i":throw c+=(10>a.getMinutes()?"0":"")+a.getMinutes(),"__break__"; case "s":throw c+=(10>a.getSeconds()?"0":"")+a.getSeconds(),"__break__";case "O":throw"__break__";case "Z":throw"__break__";case "r":throw c+=X.dateStr(a),"__break__";case "U":throw c+=a.getTime()/1E3,"__break__";default:c+=e}d++}}catch(g){if("__break__"!=g)throw g;}return c};De.formatUTCDate=function(a,b){return"not supper has remove!"};var Xa=function(){};g["trcharts.string.Utils"]=Xa;Xa.__name__=["trcharts","string","Utils"];Xa.get_colour=function(a){return"0x"==X.substr(a,0,2)?y.parseInt(a):"#"== X.substr(a,0,1)?y.parseInt("0x"+X.substr(a,1,a.length)):6==a.length?y.parseInt("0x"+a):y.parseInt(a)};Xa.prototype={__class__:Xa};var Zb,Ws=0;Array.prototype.indexOf&&(X.indexOf=function(a,b,c){return Array.prototype.indexOf.call(a,b,c)});g.Math=Math;String.prototype.__class__=g.String=String;String.__name__=["String"];g.Array=Array;Array.__name__=["Array"];Date.prototype.__class__=g.Date=Date;Date.__name__=["Date"];var Fd=g.Int={__name__:["Int"]},Js=g.Dynamic={__name__:["Dynamic"]},ys=g.Float=Number; ys.__name__=["Float"];var zs=g.Bool=Boolean;zs.__ename__=["Bool"];var As=g.Class={__name__:["Class"]},Ks={},V={},uq=Function("return typeof ArrayBuffer != 'undefined' ? ArrayBuffer : null")()||ng;null==uq.prototype.slice&&(uq.prototype.slice=ng.sliceImpl);var Ns=Function("return typeof DataView != 'undefined' ? DataView : null")()||Gq,nc=Function("return typeof Uint8Array != 'undefined' ? Uint8Array : null")()||Gh._new,Ps;Ps=new Uint32Array(256);E.__alpha16=Ps;for(var Qs=0;256>Qs;){var Rs=Qs++,Xs= Math.ceil(257.00392156862745*Rs);E.__alpha16[Rs]=Xs}var Ss;Ss=new nc(510);E.__clamp=Ss;for(var Ts=0;255>Ts;){var Us=Ts++;E.__clamp[Us]=Us}for(var Vs=255;511>Vs;){var Ys=Vs++;E.__clamp[Ys]=255}Zd.available=!1;Zd.enabled=!1;null!=window.createjs&&(createjs.Sound.alternateExtensions=["ogg","mp3","wav"]);Da.__instanceCount=0;Da.__worldRenderDirty=0;Da.__worldTransformDirty=0;Af.Instance=null;Z.Element=0;Z.PCData=1;Z.CData=2;Z.Comment=3;Z.DocType=4;Z.ProcessingInstruction=5;Z.Document=6;hf.ElementType= 0;hf.PCDataType=1;hf.CDataType=2;hf.CommentType=3;hf.DocTypeType=4;hf.ProcessingInstructionType=5;hf.DocumentType=6;rh.YoutubeType="youtube";ta.YoutubeType="youtube";ta.Element_Type="div";ta._resetFlipBookIndexTextField=null;ta._onStageResize=null;ta._initPageIndex=1;ta._scaleModeTargetPageIndex=1;ta.instance=null;ta._changeFlag=!1;ta._scaleMode=!1;ta._backgroundRectX=0;ta._backgroundRectY=0;ta._flipBookRectX=0;ta._flipBookRectY=0;ta._contentSpriteX=0;ta._contentSpriteY=0;ta._firstPage=0;ta._lastPage= 0;Si.YoutubeType="youtube";cd.WOL_ROUNDED_DEFAULT="wol_rounded_default";cd.WOL_ROUNDED_PRIMARY="wol_rounded_primary";cd.WOL_ROUNDED_ACTION="wol_rounded_action";cd.WOL_ROUNDED_HIGHLIGHT="wol_rounded_highlight";cd.WOL_ROUNDED_CAUTION="wol_rounded_caution";cd.WOL_ROUNDED_ROYAL="wol_rounded_royal";cd.WOL_CIRCLE_DEFAULT="wol_circle_default";cd.WOL_CIRCLE_PRIMARY="wol_circle_primary";cd.WOL_CIRCLE_ACTION="wol_circle_action";cd.WOL_CIRCLE_HIGHLIGHT="wol_circle_highlight";cd.WOL_CIRCLE_CAUTION="wol_circle_caution"; cd.WOL_CIRCLE_ROYAL="wol_circle_royal";Lp.OVAL="oval";Lp.RECTANGLE="rectangle";Lp.ROUND_RECTANGLE="round_rectangle";Ul.SOLID="solid";Ul.DASHED="dashed";Ul.DOTTED="dotted";Cf.RECTANGLE="rectangle";Cf.ROUND_RECTANGLE="round_rectangle";Cf.SQUARE="square";Cf.OVAL="oval";Cf.CIRCLE="circle";Cf.RIGHT_TRIANGLE="right-triangle";Cf.TRIANGLE="triangle";Cf.FIVE_STAR="five-star";Cf.DIAMOND="diamond";Cf.PENTAGON="pentagon";Zh.CIRCLE="circle";Zh.CIRCLEPOINTER="circle-pointer";Zh.SQUARE="square";Zh.SQUAREPOINTER= "square-pointer";jf.INVOKETYPE_MOUSEDOWN="mouseDown";jf.INVOKETYPE_MOUSEUP="mouseUp";jf.INVOKETYPE_MOUSEOVER="mouseOver";jf.INVOKETYPE_MOUSEMOVE="mouseMove";jf.INVOKETYPE_MOUSEOUT="mouseOut";jf.ACTIONTYPE_GOTOPAGE="gotoPage";jf.ACTIONTYPE_OPENLINK="openLink";jf.ACTIONTYPE_CALLJS="callJS";jf.ACTIONTYPE_PLAYAUDIO="playAudio";Ia.css_colors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd", blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b", darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c","indigo ":"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5", lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8", mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f", pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff", whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};m.__toStr={}.toString;Ya.button_circle={normal:{border_radius:240,border_width:4,box_shadow:{dropShadow_1:hc.convert_box_shadow_byObject(Ia.parse_css_box_shadow("inset 0 1px 1px rgba(255,255,255,.5)")),dropShadow_2:hc.convert_box_shadow_byObject(Ia.parse_css_box_shadow("0 1px 2px rgba(0,0,0,.2)"))}},hover:{},active:{}};Ya.button_primary={normal:{background_color:Ia.color_cal("#00A1CB").color,border_color:Ia.color_cal("#007998").color,color:Ia.color_cal("#FFF").color, background:Ia.parse_css_linear_gradient("to bottom,#00b5e5,#008db2"),text_shadow:hc.convert_text_shadow_byObject(Ia.parse_css_text_shadow("0 -1px 1px rgba(0,40,50,.35)"))},hover:{background_color:Ia.color_cal("##00A1CB").color,color:Ia.color_cal("#FFF").color,background:Ia.parse_css_linear_gradient("to bottom,#00c9fe,#008db2")},active:{background:Ia.color_cal("#1495b7").color,color:Ia.color_cal("#005065").color}};Ya.button_action={normal:{background_color:Ia.color_cal("#7db500").color,border_color:Ia.color_cal("#5a8200").color, color:Ia.color_cal("#FFF").color,background:Ia.parse_css_linear_gradient("to bottom,#8fcf00,#6b9c00"),text_shadow:hc.convert_text_shadow_byObject(Ia.parse_css_text_shadow("0 -1px 1px rgba(19,28,0,.35)"))},hover:{background_color:Ia.color_cal("#7db500").color,color:Ia.color_cal("#FFF").color,background:Ia.parse_css_linear_gradient("to bottom,#a0e800,#6b9c00")},active:{background:Ia.color_cal("#76a312").color,color:Ia.color_cal("#374f00").color}};Ya.button_highlight={normal:{background_color:Ia.color_cal("#F18D05").color, border_color:Ia.color_cal("#bf7004").color,color:Ia.color_cal("#FFF").color,background:Ia.parse_css_linear_gradient("to bottom,#fa9915,#d87e04"),text_shadow:hc.convert_text_shadow_byObject(Ia.parse_css_text_shadow("0 -1px 1px rgba(91,53,2,.35)"))},hover:{background_color:Ia.color_cal("#F18D05").color,color:Ia.color_cal("#FFF").color,background:Ia.parse_css_linear_gradient("to bottom,#fba42e,#d87e04")},active:{background:Ia.color_cal("#d8891e").color,color:Ia.color_cal("#8d5303").color}};Ya.button_caution= {normal:{background_color:Ia.color_cal("#E54028").color,border_color:Ia.color_cal("#c22d18").color,color:Ia.color_cal("#FFF").color,background:Ia.parse_css_linear_gradient("to bottom,#e8543f,#d9331a"),text_shadow:hc.convert_text_shadow_byObject(Ia.parse_css_text_shadow("0 -1px 1px rgba(103,24,13,.35)"))},hover:{background_color:Ia.color_cal("#E54028").color,color:Ia.color_cal("#FFF").color,background:Ia.parse_css_linear_gradient("to bottom,#eb6855,#d9331a")},active:{background:Ia.color_cal("#cd5240").color, color:Ia.color_cal("#952312").color}};Ya.button_royal={normal:{background_color:Ia.color_cal("#87318C").color,border_color:Ia.color_cal("#632466").color,color:Ia.color_cal("#FFF").color,background:Ia.parse_css_linear_gradient("to bottom,#99389f,#752a79"),text_shadow:hc.convert_text_shadow_byObject(Ia.parse_css_text_shadow("0 -1px 1px rgba(26,9,27,.35)"))},hover:{background_color:Ia.color_cal("#87318C").color,color:Ia.color_cal("#FFF").color,background:Ia.parse_css_linear_gradient("to bottom,#ab3eb2,#752a79")}, active:{background:Ia.color_cal("#764479").color,color:Ia.color_cal("#3e1740").color}};Vl.LINE_DOT="line_dot";Vl.AREA="area";Vl.BAR="bar";Vl.PIE="pie";ob.HORIZONTAL_LINE="DrawingShapes.horizontal";ob.VERTICAL_LINE="DrawingShapes.vertical";Op.MAGIC="1STFLIPBINMC";Ti.MAGIC="1STFLIPBINMC";Ng.ERROR_KEY="Invalid key size.\n";Ng.ERROR_BLOCK="Invalid block size.\n";uh.ERROR_KEY="Invalid key size.\n";uh.ERROR_BLOCK="Invalid block size.\n";dk.BinTestKey="Description";vh.AsciiMap=null;Ee.FLIPBOOKXML_PATH="./files/mobile.xml"; Ee.TEMPLATEXML_PATH="./template/{0}/info.xml";Ee.PLACEHOLDER_CHAR="{0}";Ee.FLIPBOOKTEXT_FILENAME="./files/texts/bookText.xml";Ee.FLIPBOOKPAGE_TEXTPATH="./file/texts/";Ee.FLIPBOOKPAGE_TEXTINDEXFILE="text{0}.xml";Ee.FLIPBOOKPAGE_FILELEFT="./files/texts/text";Ee.FLIPBOOKPAGE_FILERIGHT=".xml";wa.FLIPBOOKSOUND_PF1="./template/{0}/sounds/pf1.mp3";wa.FLIPBOOKSOUND_PF2="./template/{0}/sounds/pf2.mp3";wa.FLIPBOOKLOGO_UNREG="./template/{0}/config/logo.png";wa.PAGEGOTOSTEP_LEFT="./template/{0}/images/left2.png"; wa.PAGEGOTOSTEP_RIGHT="./template/{0}/images/right2.png";wa.BOOKPAGESHADOW_LEFT="./template/{0}/images/left_shadow.png";wa.BOOKPAGESHADOW_RIGTH="./template/{0}/images/right_shadow.png";wa.BASEIMAGEICON_IMG_FACEBOOK="./template/{0}/images/socialShare/facebook.png";wa.BASEIMAGEICON_IMG_TWITTER="./template/{0}/images/socialShare/twitter.png";wa.BASEIMAGEICON_IMG_GOOGLEPLUSONE="./template/{0}/images/socialShare/google_plusone_share.png";wa.BASEIMAGEICON_IMG_LINKEDIN="./template/{0}/images/socialShare/linkedin.png"; wa.BASEIMAGEICON_IMG_ADDTHIS="./template/{0}/images/socialShare/addthis.png";wa.BASEIMAGESTEP_TOP="./template/{0}/images/icons/top2.png";wa.BASEIMAGESTEP_TOPDOWN="./template/{0}/images/icons/top_white.png";wa.BASEIMAGESTEP_BOTTOM="./template/{0}/images/icons/bottom2.png";wa.BASEIMAGESTEP_BOTTOMDOWN="./template/{0}/images/icons/bottom_white.png";wa.BASEIMAGESTEP_LEFT="./template/{0}/images/icons/prev2.png";wa.BASEIMAGESTEP_LEFTDOWN="./template/{0}/images/icons/prev_white.png";wa.BASEIMAGESTEP_RIGHT= "./template/{0}/images/icons/next2.png";wa.BASEIMAGESTEP_RIGHTDOWN="./template/{0}/images/icons/next_white.png";wa.FLIPBOOKSHADOW_B1="./template/{0}/images/shadows/shadow_b1.png";wa.FLIPBOOKSHADOW_TOP="./template/{0}/images/shadows/shadow_top.png";wa.FLIPBOOKSHADOW_BOTTOM="./template/{0}/images/shadows/shadow_bottom.png";wa.FLIPBOOKSHADOW_B2="./template/{0}/images/shadows/shadow_b2.png";wa.FLIPBOOKSHADOW_TOP2="./template/{0}/images/shadows/shadow_top2.png";wa.FLIPBOOKSHADOW_BOTTOM2="./template/{0}/images/shadows/shadow_bottom2.png"; wa.BASEIMAGEICON_LAST2="./template/{0}/images/icons/last2.png";wa.BASEIMAGEICON_FIRST2="./template/{0}/images/icons/first2.png";wa.BASEIMAGEICON_LIST="./template/{0}/images/icons/list_dark.png";wa.BASEIMAGEICON_LISTLIGHT="./template/{0}/images/icons/list_light.png";wa.BASEIMAGEICON_MINUS="./template/{0}/images/icons/minus_dark.png";wa.BASEIMAGEICON_MINUSLIGHT="./template/{0}/images/icons/minus_light.png";wa.BASEIMAGEICON_PLUS="./template/{0}/images/icons/plus_dark.png";wa.BASEIMAGEICON_PLUSLIGHT= "./template/{0}/images/icons/plus_light.png";wa.BASEIMAGEICON_SHARE="./template/{0}/images/icons/share_dark.png";wa.BASEIMAGEICON_SHARELIGHT="./template/{0}/images/icons/share_light.png";wa.BASEIMAGEICON_THUMBS="./template/{0}/images/icons/thumbs2.png";wa.BASEIMAGEICON_THUMBSWHITE="./template/{0}/images/icons/thumbs_white_.png";wa.BASEIMAGEICON_COLLAPSE="./template/{0}/images/icons/collapse.png";wa.BASEIMAGEICON_COLLAPSE2="./template/{0}/images/icons/collapse2.png";wa.BASEIMAGEICON_FACEBOOK="./template/{0}/images/icons/facebook_dark.png"; wa.BASEIMAGEICON_FACEBOOKLIGHT="./template/{0}/images/icons/facebook_light.png";wa.BASEIMAGEICON_TWITTER="./template/{0}/images/icons/twitter_dark.png";wa.BASEIMAGEICON_TWITTERLIGHT="./template/{0}/images/icons/twitter_light.png";wa.BASEIMAGEICON_ACTIONLEFT="./template/{0}/images/icons/action_arrow_left.png";wa.BASEIMAGEICON_ACTIONRIGHT="./template/{0}/images/icons/action_arrow_right.png";wa.BOOKMARK_EXPANDED="./template/{0}/icons/ic_expanded_black_18dp.png";wa.BOOKMARK_COLLAPSED="./template/{0}/icons/ic_collapsed_black_18dp.png"; J.ACTIVATE="activate";J.ADDED="added";J.ADDED_TO_STAGE="addedToStage";J.CANCEL="cancel";J.CHANGE="change";J.CLOSE="close";J.COMPLETE="complete";J.CONNECT="connect";J.CONTEXT3D_CREATE="context3DCreate";J.DEACTIVATE="deactivate";J.ENTER_FRAME="enterFrame";J.ID3="id3";J.INIT="init";J.MOUSE_LEAVE="mouseLeave";J.OPEN="open";J.REMOVED="removed";J.REMOVED_FROM_STAGE="removedFromStage";J.RENDER="render";J.RESIZE="resize";J.SCROLL="scroll";J.SELECT="select";J.SOUND_COMPLETE="soundComplete";J.TAB_CHILDREN_CHANGE= "tabChildrenChange";J.TAB_ENABLED_CHANGE="tabEnabledChange";J.TAB_INDEX_CHANGE="tabIndexChange";J.UNLOAD="unload";kk.ACTION="action";Y.instance=new Y;Y.m_Settings=new fa;Y.SET_SETTINGS="set_Settings";Y.GET_SETTINGS="get_Settings";Y.DEL_SETTINGS="del_Settings";pe.instance=null;P.IsReg="r";P.IsExt="e";P.FileName="mobile.xml";P.Info="info";P.Parameter="config";P.Parameter2="extconfig";P.ParamItem="item";P.ParamName="name";P.ParamType="type";P.PageCount="count";P.PageCount2="pageCount";P.PageWidth="pageWidth"; P.PageHeight="pageHeight";P.SceneName="appSceneName";P.BookPages="pages";P.PageItem="page";P.PageUrlNormal="normalurl";P.PageUrlLarge="largeurl";P.PageUrlThumb="thumburl";P.PageIsHard="hardPage";P.PageIsEncrypt="encrypted";P.Security="security";P.SecurityMode="mode";P.SinglePassword="singlePassword";P.SecurityItem="item";P.SecurityType="type";P.SecurityName="name";P.SecurityNone="none";P.SecuritySingle="single";P.SecurityUserList="userlist";P.PagesObjects="pageobjects";P.PageObjects="page";P.PageIndex= "pageindex";P.PageObject="object";P.ObjectType="type";P.PageAction="action";P.ObjectEventType="invoketype";P.ActionType="actiontype";P.ObjectOpenUrl="url";P.ObjectLocation="location";P.ObjectX="x";P.ObjectY="y";P.ObjectWidth="width";P.ObjectHeight="height";P.Languages="languages";P.Language="language";P.LangInfo="info";P.LangName="name";P.LangItems="items";P.LangItem="item";P.LangItemKey="key";P.LangItemValue="value";P.Scenes="scenes";P.SceneGround="scene";P.Background="background";P.SceneItem="item"; P.ItemPosition="position";P.SceneItemURL="url";P.Bookmark="bookmark";P.Node="node";P.Label="label";P.Index="index";P.Level="level";P.Child="child";Ff.instance=null;Pg.Text="Text";Pg.Image="Image";Pg.ImageText="ImageText";Pr.None="None";Pr.Thick="Thick";bi.None="None";bi.Smallest="Smallest";bi.Smaller="Small";bi.Normal="Normal";bi.Large="Large";bi.Larger="Larger";bi.Largest="Largest";C.PageCount="pageCount";C.PageWidth="pageWidth";C.PageHeight="pageHeight";C.AppShowName="appAppName";C.AppSceneName= "appSceneName";C.AppLinkWebsite="appWebsite";C.AppWorkVersion="appVersion";C.AppTemplateName="templateName";C.TemplateValidCode="templateValidCode";C.BookLogoSettings="appLogoIcon";C.BookLogoLinkURL="appLogoLinkURL";C.EnableFlipSound="enableFlipSound";C.EnableSoundButton="enableSoundButton";C.SoundFileURL="backgroundSoundURL";C.SoundFileLoops="backgroundSoundLoop";C.EnableFullButton="enableFullButton";C.EnableZoomInButton="enableZoomInButton";C.MinimumZoomWidth="minimumZoomWidth";C.MaximumZoomWidth= "maximumZoomWidth";C.EnableSearchButton="enableSearchButton";C.EnableThumbnailsButton="enableThumbnailsButton";C.EnableBookmarkButton="enableBookmarkButton";C.EnableSocialShareButton="enableSocialShareButton";C.EnableSelectTextButton="enableSelectTextButton";C.EnableFlipNavButton="enableFlipNavButton";C.LanguageSetting="languageSetting";C.LanguageSwitchable="languageSwitchable";C.EnableAutoButton="enableAutoFlipButton";C.AutoFlipInterval="autoFlipInterval";C.AutoFlipLoops="autoFlipLoopCount";C.AutoFlipFromStart= "autoFlipFromStart";C.PagesThickness="thicknessWidthType";C.CornerFlipEffect="hotSpotWidthType";C.AlwaysInTheCenter="alwaysInTheCenter";C.ShowCornerFlipEffect="flipBookEffectEnable";C.MouseTracingEffect="mouseTracingOnFirst";C.IsRightToLeft="isRightToLeft";C.IsHardCoverStyle="isHardCoverStyle";C.StartWithDoublePage="openFlipBookWhenInit";C.PageFlipTweenTime="pageFlipTweenTime";C.EnableDoubleFlipPage="enableDoubleFlipPage";C.MouseWheelToTurnPage="mouseWheelTurnPage";C.PageNumberColor="pageNumberColor"; C.PageBackgroundColor="pageBackgroundColor";C.PageAlginVertical="pageAlginVertical";C.PageAlginHorizontal="pageAlginHorizontal";C.ButtonIconColor="buttonIconColor";C.ControlBarColor="controlBarColor";C.FlipButtonIconColor="flipNavIconColor";C.IsShowThumbnails="isShowThumbnails";C.ThumbControlColor="thumbControlColor";C.ControlFontName="controlFontName";C.ControlFontColor="controlFontColor";C.BackgroundFile="backgroundFileUrl";C.BackgroundPosition="backgroundPosition";C.BackgroundAlpha="backgroundAlpha"; C.BackgroundEndColor="backgroundEndColor";C.BackgroundBeginColor="backgroundBeginColor";C.BackgroundRotation="backgroundRotation";C.TotalPageCaption="totalPageCaption";C.PageNumberCaption="pageNumberCaption";C.UseMinimeStyle="useMinimeStyle";C.MinimeStyleWidth="minimeStyleWidth";C.MinimeStyleHeight="minimeStyleHeight";C.LinkOverColor="linkOverFill";C.LinkOverAlpha="linkOverAlpha";C.LinkOpenedWindow="linkOpenedWindow";C.LinkEnableWhenZoom="linkEnableWhenZoom";C.GoogleAnalyticsID="googleAnalyticsID"; te.instance=null;se.instance=null;se.isInit=!1;ue.Fill="fill";ue.ScaleToFit="scale to fit";ue.TopLeft="top left";ue.TopCenter="top center";ue.TopRight="top right";ue.MiddleLeft="middle left";ue.MiddleCenter="middle center";ue.MiddleRight="middle right";ue.BottomLeft="bottom left";ue.BottomCenter="bottom center";ue.BottomRight="bottom right";mb.LINESPACEVAL=6;mb.LINESPACE="DragList_LineSpace";mb.STEPSPACEVAL=2*mb.LINESPACEVAL;mb.STEPSPACE="DragList_StepSpace";mb.STEPHEIGHTVAL=32;mb.STEPHEIGHT="DragList_StepHeight"; mb.ISSHOWSTEPVAL=!1;mb.ISSHOWSTEP="DragList_IsShowStep";mb.ITEMHEIGHTVAL=120;mb.ITEMHEIGHT="DragList_ItemHeight";mb.FRAMEHEIGHTVAL=132;mb.FRAMEHEIGHT="DragList_FrameHeight";mb.isInit=!1;v.MAINSTAGE_INIT="MainStage_Init";v.MAINSTAGE_RESIZE="MainStage_Resize";v.MAINSTAGE_KEYDOWN="MainStage_KeyDown";v.MAINSTAGE_MOUSEMOVE="MainStage_MouseMove";v.MAINSTAGE_MOUSECLICK="MainStage_MouseClick";v.MAINSTAGE_TEXT="MainStage_Text";v.MAINSTAGE_PROGRESS="MainStage_Progress";v.MAINXML_IOERROR="MainXml_IoError";v.MAINXML_FORMATERROR= "MainXml_FormatError";v.MAINXML_COMPLETE="MainXml_Complete";v.TEMPLATEXML_LOAD="TemplateXML_Load";v.TEMPLATEXML_UNLOAD="TemplateXML_Unload";v.TEMPLATEXML_ERROR="TemplateXML_Error";v.MATERIALXML_LOAD="MaterialXML_Load";v.MATERIALXML_UNLOAD="MaterialXML_Unload";v.MATERIALXML_ERROR="MaterialXML_Error";v.MOUSEOVER_OVER="MouseOver_Over";v.MOUSEOVER_OUT="MouseOver_Out";v.MOUSEOVER_DOWN="MouseOver_Down";v.MOUSEOVER_UP="MouseOver_Up";v.MOUSEOVER_MOVE="MouseOver_Move";v.MOUSEOVER_CLICK="MouseOver_Click";v.MOUSEOVER_DOUBLECLICK= "MouseOver_DoubleClick";v.COMPONENT_OVER="Component_Over";v.COMPONENT_OUT="Component_Out";v.COMPONENT_DOWN="Component_Down";v.COMPONENT_UP="Component_Up";v.COMPONENT_MOVE="Component_Move";v.COMPONENT_CLICK="Component_Click";v.COMPONENT_DOUBLECLICK="Component_DoubleClick";v.COMPONENT_KEYUP="Component_KeyUp";v.COMPONENT_KEYDOWN="Component_KeyDown";v.COMPONENT_UPDATE="Component_Update";v.COMPONENT_UPTEXT="Component_UpText";v.COMPONENT_UPICON="Component_UpIcon";v.COMPONENT_UPVISIBLE="Component_UpVisible"; v.BASEBUTTON_DOWN="BaseButton_Down";v.BASEBUTTON_UP="BaseButton_Up";v.BASEBUTTON_CLICK="BaseButton_Click";v.BOOKPAGE_CLICK="BookPage_Click";v.BOOKPAGE_UPDATE="BookPage_Update";v.BOOKPAGE_DOUBLECLICK="BookPage_DoubleClick";v.BOOKPAGE_SELECTDOWN="BookPage_SelectDown";v.PAGEIMAGE_LOADER="BookPage_ImageLoader";v.PAGEIMAGE_UNLOADER="BookPage_ImageUnloader";v.PAGEIMAGE_THUMBSHOW="BookPage_ThumbWillShow";v.FLIPBOOK_CALLINIT="FlipBook_CallInit";v.FLIPBOOK_CALLREADY="FlipBook_CallReady";v.FLIPBOOK_WILLCHANGE= "FlipBook_WillChange";v.FLIPBOOK_DIDCHANGED="FlipBook_DidChanged";v.FLIPGOTOBAR_DOWN="FlipGotoBar_Down";v.FLIPGOTOBAR_UP="FlipGotoBar_Up";v.FLIPGOTOBAR_CLICK="FlipGotoBar_Click";v.BOOKTEXTXML_LOAD="BookTextXML_Load";v.BOOKTEXTXML_UNLOAD="BookTextXML_Unload";v.BOOKTEXTXML_ERROR="BookTextXML_Error";v.FLIPBOOK_WILLFADEIN="FlipBook_WillFadeIn";v.FLIPBOOK_WILLFADEOUT="FlipBook_WillFadeOut";v.PAGETEXTXML_LOAD="PageTextXML_Load";v.PAGETEXTXML_UNLOAD="PageTextXML_Unload";v.PAGETEXTXML_ERROR="PageTextXML_Error"; v.SCALEPAGEITEM_DOWN="ScalePageItem_Down";v.SCALEPAGEITEM_UP="ScalePageItem_Up";v.SCALEPAGEITEM_CLICK="ScalePageItem_Click";v.SEARCHBOOK_RESET="SearchBook_Reset";v.SEARCHBOOK_CANCEL="SearchBook_Cancel";v.SEARCHPAGE_START="SearchPage_Start";v.SEARCHPAGE_FINISH="SearchPage_Finish";v.SEARCHPAGE_CALLBACK="SearchPage_CallBack";v.SEARCHBOOK_START="SearchBook_Start";v.SEARCHBOOK_FINISH="SearchBook_Finish";v.SEARCHBOOK_CALLBACK="SearchBook_CallBack";v.BOOKMARKITEM_OVER="BookMarkItem_Over";v.BOOKMARKITEM_CLICK= "BookMarkItem_Click";v.BOOKMARKEXPAND_CLICK="BookMarkExpand_Click";v.BOOKMARKSTEP_DOWN="BookMarkStep_Down";v.BOOKMARKSTEP_UP="BookMarkStep_Up";v.BOOKMARKSTEP_CLICK="BookMarkStep_Click";v.LANGUAGELIST_CHANGE="LanguageList_Change";v.LANGUAGEINFO_CACHED="LanguageInfo_Cached";v.LANGUAGEINFO_UPDATE="LanguageInfo_Update";v.BASESPRITESTEP_DOWN="BaseSpriteStep_Down";v.BASESPRITESTEP_UP="BaseSpriteStep_Up";v.BASESPRITESTEP_CLICK="BaseSpriteStep_Click";v.BASESPRITEITEM_OVER="BaseSpriteItem_Over";v.BASESPRITEITEM_CLICK= "BaseSpriteItem_Click";v.LISTSPRITEITEM_OVER="ListSpriteItem_Over";v.LISTSPRITEITEM_CLICK="ListSpriteItem_Click";v.LISTSPRITESTEP_DOWN="ListSpriteStep_Down";v.LISTSPRITESTEP_UP="ListSpriteStep_Up";v.LISTSPRITESTEP_CLICK="ListSpriteStep_Click";v.SEARCHLISTITEM_OVER="ThumbnailsItem_Over";v.SEARCHLISTITEM_CLICK="ThumbnailsItem_Click";v.SEARCHLISTSTEP_DOWN="SearchListStep_Down";v.SEARCHLISTSTEP_UP="SearchListStep_Up";v.SEARCHLISTSTEP_CLICK="SearchListStep_Click";v.THUMBNAILSITEM_OVER="ThumbnailsItem_Over"; v.THUMBNAILSITEM_DOWN="ThumbnailsItem_Down";v.THUMBNAILSITEM_CLICK="ThumbnailsItem_Click";v.THUMBNAILSSTEP_DOWN="ThumbnailsStep_Down";v.THUMBNAILSSTEP_UP="ThumbnailsStep_Up";v.THUMBNAILSSTEP_CLICK="ThumbnailsStep_Click";v.SECURITYLOGIN_UPDATE="SecurityLogin_Update";R.Instance=null;mk.isInit=!1;Tb.textSpace=6;mf.bFirst=!0;Jb.HS_WIDTH=80;xh.NumberWidth=40;$f.MASK_WIDTH=60;Ve.NotFound=-1;va.__temp=new va;Og.Instance=null;he.LanguageID="LanguageID";he.LanguageName="LanguageName";he.LanguageEnglish="LanguageEnglish"; he.LanguageChinese="LanguageChinese";he.LanguageXmlKey="LanguageXmlKey";he.LanguageVersion="LanguageVersion";he.LanguageTranslators="LanguageTranslators";Aa.languageMap=null;Aa.isInit=!1;Aa.isInit2=!1;fb.Arabic="Arabic";fb.Basque="Basque";fb.Belarusian="Belarusian";fb.Bulgarian="Bulgarian";fb.Burmese="Burmese";fb.Catalan="Catalan";fb.ChineseHongKong="Chinese (Hong Kong)";fb.ChineseSimplified="Chinese (Simplified)";fb.ChineseTaiwan="Chinese (Taiwan)";fb.Czech="Czech";fb.Danish="Danish";fb.Dutch="Dutch"; fb.English="English";fb.Estonian="Estonian";fb.Finnish="Finnish";fb.French="French";fb.Georgian="Georgian";fb.German="German";fb.Greek="Greek";fb.Hebrew="Hebrew";fb.Hrvatska="Hrvatska";fb.Hungarian="Hungarian";fb.Indonesian="Indonesian";fb.Italian="Italian";fb.Japanese="Japanese";fb.Korean="Korean";fb.Latvian="Latvian";fb.NorwegianBokmal="Norwegian (Bokmal)";fb.NorwegianNynorsk="Norwegian (Nynorsk)";fb.Persian="Persian";fb.Polish="Polish";fb.Portuguese="Portuguese";fb.PortugueseBrazilian="Portuguese (Brazilian)"; fb.Romanian="Romanian";fb.Russian="Russian";fb.Slovak="Slovak";fb.Slovenian="Slovenian";fb.Spanish="Spanish";fb.Swedish="Swedish";fb.Thai="Thai";fb.Turkish="Turkish";fb.Ukrainian="Ukrainian";fb.Uzbek="Uzbek";fb.Vietnamese="Vietnamese";Cb.id=0;Cb.isShowTrace=!1;Xd.MOUSE_OVER="MouseOver";Xd.MOUSE_OUT="MouseOut";Xd.MOUSE_MOVE="MouseMove";Xd.MOUSE_DOWN="MouseDown";Xd.MOUSE_UP="MouseUp";Xd.MOUSE_CLICK="MouseClick";Xd.MOUSE_DOUBLECLICK="DoubleClick";Tg.TYPE_ANNOLINK="pageLink";Tg.TYPE_ACTIONOPENURL="openURL"; Tg.TYPE_ACTIONGOTOPAGE="gotoPage";rb.OVERALPHAVAL=.45;rb.OVERALPHA="LinkConst_LinkOverAlpha";rb.DOWNALPHAVAL=.45;rb.DOWNALPHA="LinkConst_LinkDownAlpha";rb.OVERCOLORVAL=8388736;rb.OVERCOLOR="LinkConst_LinkOverColor";rb.DOWNCOLORVAL=255;rb.DOWNCOLOR="LinkConst_LinkDownColor";rb.SCALEENABLEVAL="Enable";rb.SCALEENABLE="LinkConst_LinkEnableWhenZoom";rb.OPENEDWINDOWVAL="Blank";rb.OPENEDWINDOW="LinkConst_LinkOpenedWindow";rb.isInit=!1;cg._defaultLinkTarget="_blank";Ib.Thumb=0;Ib.Normal=1;Ib.Large=2;Hd.PrevLeftBack= "PrevLeftBack";Hd.PrevLeftFront="PrevLeftFront";Hd.LeftBackPage="LeftBackPage";Hd.LeftFrontPage="LeftFrontPage";Hd.RightFrontPage="RightFrontPage";Hd.RightBackPage="RightBackPage";Hd.NextRightBack="NextRightBack";Hd.NextRightFront="NextRightFront";Ic.IN="In";Ic.OUT="Out";Ic.TOP="Top";Ic.LEFT="Left";Ic.RIGHT="Right";Ic.BOTTOM="Bottom";Ic.CENTER="Center";Ba.ISFILLVAL=!0;Ba.ISFILL="BookPage_HasFill";Ba.FILLCOLORVAL=6710886;Ba.FILLCOLOR="BookPage_FillColor";Ba.FILLALPHAVAL=.9;Ba.FILLALPHA="BookPage_FillAplpha"; Ba.ISSTROKEVAL=!0;Ba.ISSTROKE="BookPage_HasStroke";Ba.STROKECOLORVAL=65535;Ba.STROKECOLOR="BookPage_StrokeColor";Ba.STROKEALPHAVAL=1;Ba.STROKEALPHA="BookPage_StrokeAlpha";Ba.STROKEPIXELVAL=1;Ba.STROKEPIXEL="BookPage_StrokePixel";Ba.TOPSPACEVAL=0;Ba.TOPSPACE="BookPage_TopSpace";Ba.LEFTSPACEVAL=0;Ba.LEFTSPACE="BookPage_LeftSpace";Ba.RIGHTSPACEVAL=0;Ba.RIGHTSPACE="BookPage_RightSpace";Ba.BOTTOMSPACEVAL=0;Ba.BOTTOMSPACE="BookPage_BottomSpace";Ba.CENTERSPACEVAL=0;Ba.CENTERSPACE="BookPage_CenterSpace"; Ba.HORALGINMODEVAL=Ic.IN;Ba.HORALGINMODE="BookPage_HorAlginMode";Ba.VERALGINMODEVAL=Ic.CENTER;Ba.VERALGINMODE="BookPage_VerAlginMode";Ba.isInit=!1;kj.LEFT="left";kj.RIGHT="right";fd.instance=null;dg.instance=null;Ha.SCALEISONEVAL=!0;Ha.SCALEISONE="ScalePage_IsOnePage";Ha.SCALEHORSPACEVAL=100;Ha.SCALEHORSPACE="ScalePage_HorSpace";Ha.SCALEVERSPACEVAL=100;Ha.SCALEVERSPACE="ScalePage_VerSpace";Ha.SCALERADIOMINVAL=.04;Ha.SCALERADIOMIN="ScalePage_ScaleRadioMin";Ha.SCALERADIOMAXVAL=8;Ha.SCALERADIOMAX="ScalePage_ScaleRadioMax"; Ha.SCALERADIOSTEPVAL=.2;Ha.SCALERADIOSTEP="ScalePage_ScaleRadioStep";Ha.isInit=!1;B.ISFILLVAL=!0;B.ISFILL="BaseRegion_HasFill";B.FILLCOLORVAL=6710886;B.FILLCOLOR="BaseRegion_FillColor";B.FILLALPHAVAL=.9;B.FILLALPHA="BaseRegion_FillAplpha";B.ISSTROKEVAL=!0;B.ISSTROKE="BaseRegion_HasStroke";B.STROKECOLORVAL=65535;B.STROKECOLOR="BaseRegion_StrokeColor";B.STROKEALPHAVAL=1;B.STROKEALPHA="BaseRegion_StrokeAlpha";B.STROKEPIXELVAL=1;B.STROKEPIXEL="BaseRegion_StrokePixel";B.DISABLEFILLVAL=B.FILLCOLORVAL;B.DISABLEFILL= "BaseRegion_DisableFill";B.DISABLESTROKEVAL=B.STROKECOLORVAL;B.DISABLESTROKE="BaseRegion_DisableStroke";B.ROUNDWIDTHVAL=6;B.ROUNDHEIGHTVAL=6;B.ROUNDWIDTH="BaseRegion_RoundWidth";B.ROUNDHEIGHT="BaseRegion_RoundHeight";B.LINESPACEVAL=6;B.LINESPACE="BaseRegion_LineSpace";B.TOPSPACEVAL=4;B.TOPSPACE="BaseRegion_TopSpace";B.LEFTSPACEVAL=4;B.LEFTSPACE="BaseRegion_LeftSpace";B.RIGHTSPACEVAL=4;B.RIGHTSPACE="BaseRegion_RightSpace";B.BOTTOMSPACEVAL=4;B.BOTTOMSPACE="BaseRegion_BottomSpace";B.TOOLHEIGHTVAL=42; B.TOOLHEIGHT="BaseRegion_ToolHeight";B.TITLEHEIGHTVAL=42;B.TITLEHEIGHT="BaseRegion_TitleHeight";B.THUMBHEIGHTVAL=134;B.THUMBHEIGHT="BaseRegion_ThumbHeight";B.SEARCHHEIGHTVAL=252;B.SEARCHHEIGHT="BaseRegion_SearchHeight";B.ISSOUNDONVAL=!0;B.ISSOUNDON="BaseRegion_IsSoundOn";B.ISSOUNDONSALVAL=!0;B.ISSOUNDONSAL="BaseRegion_IsSoundOnScale";B.BOOKTOPSPACEVAL=12;B.BOOKTOPSPACE="BookRegion_BookTopSpace";B.BOOKLEFTSPACEVAL=34;B.BOOKLEFTSPACE="BookRegion_BookLeftSpace";B.BOOKRIGHTSPACEVAL=B.BOOKLEFTSPACEVAL; B.BOOKRIGHTSPACE="BookRegion_BookRightSpace";B.BOOKBOTTOMSPACEVAL=B.BOOKTOPSPACEVAL;B.BOOKBOTTOMSPACE="BookRegion_BookBottomSpace";B.BOOKLINESPACEVAL=0;B.BOOKLINESPACE="BookRegion_BookLineSpace";B.BOOKSTEPWIDTHVAL=30;B.BOOKSTEPWIDTH="BookRegion_BookStepWidth";B.GOTOSTEPWIDTHVAL=79;B.GOTOSTEPWIDTH="BookRegion_GotoStepWidth";B.GOTOSTEPHEIGHTVAL=280;B.GOTOSTEPHEIGHT="BookRegion_GotoStepHEIGHT";B.isInit=!1;sa.LINESPACEVAL=6;sa.LINESPACE="SearchList_LineSpace";sa.STEPSPACEVAL=2*sa.LINESPACEVAL;sa.STEPSPACE= "SearchList_StepSpace";sa.STEPHEIGHTVAL=32;sa.STEPHEIGHT="SearchList_StepHeight";sa.ITEMHEIGHTVAL=80;sa.ITEMHEIGHT="SearchList_ItemHeight";sa.ITEMWIDTHVAL=sa.ITEMHEIGHTVAL;sa.ITEMWIDTH="SearchList_ItemWidth";sa.FRAMEHEIGHTVAL=112;sa.FRAMEHEIGHT="SearchList_FrameHeight";sa.TEXTHEIGHTVAL=22;sa.TEXTHEIGHT="SearchText_TextHeight";sa.INPUTHEIGHTVAL=32;sa.INPUTHEIGHT="SearchText_InputHeight";sa.BUTTONHEIGHTVAL=32;sa.BUTTONHEIGHT="SearchText_ButtonHeight";sa.IMAGETOPSPACEVAL=6;sa.IMAGETOPSPACE="SearchImage_TopSpace"; sa.IMAGELEFTSPACEVAL=8;sa.IMAGELEFTSPACE="SearchImage_LeftSpace";sa.IMAGERIGHTSPACEVAL=6;sa.IMAGERIGHTSPACE="SearchImage_RightSpace";sa.IMAGEBOTTOMSPACEVAL=16;sa.IMAGEBOTTOMSPACE="SearchImage_BottomSpace";sa.isInit=!1;$g.instance=null;fc.instance=null;Bs.Book="Book";gg.Start="Start";gg.Finish="Finish";gg.CallBack="CallBack";Sa.BookPages="pages";Sa.BookCount="Count";Sa.BookPage="page";Sa.PageIndex="Index";Sa.PageIsMac="isMAC";Sa.CDataBegin=""):a.h.gt=">";null!=V.amp?a.setReserved("amp","&"):a.h.amp="&";null!=V.quot?a.setReserved("quot",'"'):a.h.quot='"'; null!=V.apos?a.setReserved("apos","'"):a.h.apos="'";return a}(this);qd.LEN_EXTRA_BITS_TBL=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,-1,-1];qd.LEN_BASE_VAL_TBL=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258];qd.DIST_EXTRA_BITS_TBL=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,-1,-1];qd.DIST_BASE_VAL_TBL=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];qd.CODE_LENGTHS_POS= [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];qd.FIXED_HUFFMAN=null;Ej.psize=256;qa.ASPECT_RATIO="onAspectRatio";qa.MOUSE_SHOW="onMouseShow";qa.MOUSE_HIDE="onMouseHide";qa.FULLSCREEN="onFullscreen";qa.VOLUME_UP="onVolumeUp";qa.VOLUME_DOWN="onVolumeDown";qa.VOLUME_CHANGE="onVolumeChange";qa.MUTE="onMute";qa.FORWARD="onForward";qa.REWIND="onRewind";qa.PLAY_PAUSE="onPlayPause";qa.SEEK="onSeek";qa.TIME="onTimeUpdate";qa.PROGRESS="onProgress";qa.BUFFERING="onBuffering";qa.NOT_BUFFERING="onNotBuffering"; qa.CONNECTION_FAILED="onConnectionFailed";qa.CONNECTION_SUCCESS="onConnectionSuccess";qa.MEDIA_INITIALIZED="onDataInitialized";qa.PLAYBACK_FINISHED="onPlaybackFinished";qa.STOP_CLOSE="onStopAndClose";qa.RESIZE="onResize";qa.ERROR="onError";jd._1_1=1;jd._3_2=1.5;jd._4_3=1.3333333333333333;jd._5_4=1.25;jd._14_9=1.5555555555555556;jd._14_10=1.4;jd._16_9=1.7777777777777777;jd._16_10=1.6;Nb.AUDIO="audio";Nb.VIDEO="video";sb.FILE="file";sb.PSEUDOSTREAM="http";sb.RTMP="rtmp";sb.YOUTUBE="youtube";Gh.BYTES_PER_ELEMENT= 1;ea.cache=new Hq;ea.libraries=new fa;ea.onChange=new Pc;ea.initialized=!1;Db.windowID=0;bd.images=new fa;bd.loaders=new fa;M.NONE=0;M.FALSE=0;M.TRUE=1;M.SOURCE_RELATIVE=514;M.CONE_INNER_ANGLE=4097;M.CONE_OUTER_ANGLE=4098;M.PITCH=4099;M.POSITION=4100;M.DIRECTION=4101;M.VELOCITY=4102;M.LOOPING=4103;M.BUFFER=4105;M.GAIN=4106;M.MIN_GAIN=4109;M.MAX_GAIN=4110;M.ORIENTATION=4111;M.SOURCE_STATE=4112;M.INITIAL=4113;M.PLAYING=4114;M.PAUSED=4115;M.STOPPED=4116;M.BUFFERS_QUEUED=4117;M.BUFFERS_PROCESSED=4118; M.REFERENCE_DISTANCE=4128;M.ROLLOFF_FACTOR=4129;M.CONE_OUTER_GAIN=4130;M.MAX_DISTANCE=4131;M.SEC_OFFSET=4132;M.SAMPLE_OFFSET=4133;M.BYTE_OFFSET=4134;M.SOURCE_TYPE=4135;M.STATIC=4136;M.STREAMING=4137;M.UNDETERMINED=4144;M.FORMAT_MONO8=4352;M.FORMAT_MONO16=4353;M.FORMAT_STEREO8=4354;M.FORMAT_STEREO16=4355;M.FREQUENCY=8193;M.BITS=8194;M.CHANNELS=8195;M.SIZE=8196;M.NO_ERROR=0;M.INVALID_NAME=40961;M.INVALID_ENUM=40962;M.INVALID_VALUE=40963;M.INVALID_OPERATION=40964;M.OUT_OF_MEMORY=40965;M.VENDOR=45057; M.VERSION=45058;M.RENDERER=45059;M.EXTENSIONS=45060;M.DOPPLER_FACTOR=49152;M.SPEED_OF_SOUND=49155;M.DOPPLER_VELOCITY=49153;M.DISTANCE_MODEL=53248;M.INVERSE_DISTANCE=53249;M.INVERSE_DISTANCE_CLAMPED=53250;M.LINEAR_DISTANCE=53251;M.LINEAR_DISTANCE_CLAMPED=53252;M.EXPONENT_DISTANCE=53253;M.EXPONENT_DISTANCE_CLAMPED=53254;hb.FALSE=0;hb.TRUE=1;hb.FREQUENCY=4103;hb.REFRESH=4104;hb.SYNC=4105;hb.MONO_SOURCES=4112;hb.STEREO_SOURCES=4113;hb.NO_ERROR=0;hb.INVALID_DEVICE=40961;hb.INVALID_CONTEXT=40962;hb.INVALID_ENUM= 40963;hb.INVALID_VALUE=40964;hb.OUT_OF_MEMORY=40965;hb.ATTRIBUTES_SIZE=4098;hb.ALL_ATTRIBUTES=4099;hb.DEFAULT_DEVICE_SPECIFIER=4100;hb.DEVICE_SPECIFIER=4101;hb.EXTENSIONS=4102;hb.ENUMERATE_ALL_EXT=1;hb.DEFAULT_ALL_DEVICES_SPECIFIER=4114;hb.ALL_DEVICES_SPECIFIER=4115;Fb.__base64Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";Zq.FT_LOAD_FORCE_AUTOHINT=32;l.DEPTH_BUFFER_BIT=256;l.STENCIL_BUFFER_BIT=1024;l.COLOR_BUFFER_BIT=16384;l.POINTS=0;l.LINES=1;l.LINE_LOOP=2;l.LINE_STRIP= 3;l.TRIANGLES=4;l.TRIANGLE_STRIP=5;l.TRIANGLE_FAN=6;l.ZERO=0;l.ONE=1;l.SRC_COLOR=768;l.ONE_MINUS_SRC_COLOR=769;l.SRC_ALPHA=770;l.ONE_MINUS_SRC_ALPHA=771;l.DST_ALPHA=772;l.ONE_MINUS_DST_ALPHA=773;l.DST_COLOR=774;l.ONE_MINUS_DST_COLOR=775;l.SRC_ALPHA_SATURATE=776;l.FUNC_ADD=32774;l.BLEND_EQUATION=32777;l.BLEND_EQUATION_RGB=32777;l.BLEND_EQUATION_ALPHA=34877;l.FUNC_SUBTRACT=32778;l.FUNC_REVERSE_SUBTRACT=32779;l.BLEND_DST_RGB=32968;l.BLEND_SRC_RGB=32969;l.BLEND_DST_ALPHA=32970;l.BLEND_SRC_ALPHA=32971; l.CONSTANT_COLOR=32769;l.ONE_MINUS_CONSTANT_COLOR=32770;l.CONSTANT_ALPHA=32771;l.ONE_MINUS_CONSTANT_ALPHA=32772;l.BLEND_COLOR=32773;l.ARRAY_BUFFER=34962;l.ELEMENT_ARRAY_BUFFER=34963;l.ARRAY_BUFFER_BINDING=34964;l.ELEMENT_ARRAY_BUFFER_BINDING=34965;l.STREAM_DRAW=35040;l.STATIC_DRAW=35044;l.DYNAMIC_DRAW=35048;l.BUFFER_SIZE=34660;l.BUFFER_USAGE=34661;l.CURRENT_VERTEX_ATTRIB=34342;l.FRONT=1028;l.BACK=1029;l.FRONT_AND_BACK=1032;l.CULL_FACE=2884;l.BLEND=3042;l.DITHER=3024;l.STENCIL_TEST=2960;l.DEPTH_TEST= 2929;l.SCISSOR_TEST=3089;l.POLYGON_OFFSET_FILL=32823;l.SAMPLE_ALPHA_TO_COVERAGE=32926;l.SAMPLE_COVERAGE=32928;l.NO_ERROR=0;l.INVALID_ENUM=1280;l.INVALID_VALUE=1281;l.INVALID_OPERATION=1282;l.OUT_OF_MEMORY=1285;l.CW=2304;l.CCW=2305;l.LINE_WIDTH=2849;l.ALIASED_POINT_SIZE_RANGE=33901;l.ALIASED_LINE_WIDTH_RANGE=33902;l.CULL_FACE_MODE=2885;l.FRONT_FACE=2886;l.DEPTH_RANGE=2928;l.DEPTH_WRITEMASK=2930;l.DEPTH_CLEAR_VALUE=2931;l.DEPTH_FUNC=2932;l.STENCIL_CLEAR_VALUE=2961;l.STENCIL_FUNC=2962;l.STENCIL_FAIL= 2964;l.STENCIL_PASS_DEPTH_FAIL=2965;l.STENCIL_PASS_DEPTH_PASS=2966;l.STENCIL_REF=2967;l.STENCIL_VALUE_MASK=2963;l.STENCIL_WRITEMASK=2968;l.STENCIL_BACK_FUNC=34816;l.STENCIL_BACK_FAIL=34817;l.STENCIL_BACK_PASS_DEPTH_FAIL=34818;l.STENCIL_BACK_PASS_DEPTH_PASS=34819;l.STENCIL_BACK_REF=36003;l.STENCIL_BACK_VALUE_MASK=36004;l.STENCIL_BACK_WRITEMASK=36005;l.VIEWPORT=2978;l.SCISSOR_BOX=3088;l.COLOR_CLEAR_VALUE=3106;l.COLOR_WRITEMASK=3107;l.UNPACK_ALIGNMENT=3317;l.PACK_ALIGNMENT=3333;l.MAX_TEXTURE_SIZE=3379; l.MAX_VIEWPORT_DIMS=3386;l.SUBPIXEL_BITS=3408;l.RED_BITS=3410;l.GREEN_BITS=3411;l.BLUE_BITS=3412;l.ALPHA_BITS=3413;l.DEPTH_BITS=3414;l.STENCIL_BITS=3415;l.POLYGON_OFFSET_UNITS=10752;l.POLYGON_OFFSET_FACTOR=32824;l.TEXTURE_BINDING_2D=32873;l.SAMPLE_BUFFERS=32936;l.SAMPLES=32937;l.SAMPLE_COVERAGE_VALUE=32938;l.SAMPLE_COVERAGE_INVERT=32939;l.COMPRESSED_TEXTURE_FORMATS=34467;l.DONT_CARE=4352;l.FASTEST=4353;l.NICEST=4354;l.GENERATE_MIPMAP_HINT=33170;l.BYTE=5120;l.UNSIGNED_BYTE=5121;l.SHORT=5122;l.UNSIGNED_SHORT= 5123;l.INT=5124;l.UNSIGNED_INT=5125;l.FLOAT=5126;l.DEPTH_COMPONENT=6402;l.ALPHA=6406;l.RGB=6407;l.RGBA=6408;l.BGR_EXT=32992;l.BGRA_EXT=32993;l.LUMINANCE=6409;l.LUMINANCE_ALPHA=6410;l.UNSIGNED_SHORT_4_4_4_4=32819;l.UNSIGNED_SHORT_5_5_5_1=32820;l.UNSIGNED_SHORT_5_6_5=33635;l.FRAGMENT_SHADER=35632;l.VERTEX_SHADER=35633;l.MAX_VERTEX_ATTRIBS=34921;l.MAX_VERTEX_UNIFORM_VECTORS=36347;l.MAX_VARYING_VECTORS=36348;l.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661;l.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660;l.MAX_TEXTURE_IMAGE_UNITS= 34930;l.MAX_FRAGMENT_UNIFORM_VECTORS=36349;l.SHADER_TYPE=35663;l.DELETE_STATUS=35712;l.LINK_STATUS=35714;l.VALIDATE_STATUS=35715;l.ATTACHED_SHADERS=35717;l.ACTIVE_UNIFORMS=35718;l.ACTIVE_ATTRIBUTES=35721;l.SHADING_LANGUAGE_VERSION=35724;l.CURRENT_PROGRAM=35725;l.NEVER=512;l.LESS=513;l.EQUAL=514;l.LEQUAL=515;l.GREATER=516;l.NOTEQUAL=517;l.GEQUAL=518;l.ALWAYS=519;l.KEEP=7680;l.REPLACE=7681;l.INCR=7682;l.DECR=7683;l.INVERT=5386;l.INCR_WRAP=34055;l.DECR_WRAP=34056;l.VENDOR=7936;l.RENDERER=7937;l.VERSION= 7938;l.NEAREST=9728;l.LINEAR=9729;l.NEAREST_MIPMAP_NEAREST=9984;l.LINEAR_MIPMAP_NEAREST=9985;l.NEAREST_MIPMAP_LINEAR=9986;l.LINEAR_MIPMAP_LINEAR=9987;l.TEXTURE_MAG_FILTER=10240;l.TEXTURE_MIN_FILTER=10241;l.TEXTURE_WRAP_S=10242;l.TEXTURE_WRAP_T=10243;l.TEXTURE_2D=3553;l.TEXTURE=5890;l.TEXTURE_CUBE_MAP=34067;l.TEXTURE_BINDING_CUBE_MAP=34068;l.TEXTURE_CUBE_MAP_POSITIVE_X=34069;l.TEXTURE_CUBE_MAP_NEGATIVE_X=34070;l.TEXTURE_CUBE_MAP_POSITIVE_Y=34071;l.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072;l.TEXTURE_CUBE_MAP_POSITIVE_Z= 34073;l.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074;l.MAX_CUBE_MAP_TEXTURE_SIZE=34076;l.TEXTURE0=33984;l.TEXTURE1=33985;l.TEXTURE2=33986;l.TEXTURE3=33987;l.TEXTURE4=33988;l.TEXTURE5=33989;l.TEXTURE6=33990;l.TEXTURE7=33991;l.TEXTURE8=33992;l.TEXTURE9=33993;l.TEXTURE10=33994;l.TEXTURE11=33995;l.TEXTURE12=33996;l.TEXTURE13=33997;l.TEXTURE14=33998;l.TEXTURE15=33999;l.TEXTURE16=34E3;l.TEXTURE17=34001;l.TEXTURE18=34002;l.TEXTURE19=34003;l.TEXTURE20=34004;l.TEXTURE21=34005;l.TEXTURE22=34006;l.TEXTURE23=34007;l.TEXTURE24= 34008;l.TEXTURE25=34009;l.TEXTURE26=34010;l.TEXTURE27=34011;l.TEXTURE28=34012;l.TEXTURE29=34013;l.TEXTURE30=34014;l.TEXTURE31=34015;l.ACTIVE_TEXTURE=34016;l.REPEAT=10497;l.CLAMP_TO_EDGE=33071;l.MIRRORED_REPEAT=33648;l.FLOAT_VEC2=35664;l.FLOAT_VEC3=35665;l.FLOAT_VEC4=35666;l.INT_VEC2=35667;l.INT_VEC3=35668;l.INT_VEC4=35669;l.BOOL=35670;l.BOOL_VEC2=35671;l.BOOL_VEC3=35672;l.BOOL_VEC4=35673;l.FLOAT_MAT2=35674;l.FLOAT_MAT3=35675;l.FLOAT_MAT4=35676;l.SAMPLER_2D=35678;l.SAMPLER_CUBE=35680;l.VERTEX_ATTRIB_ARRAY_ENABLED= 34338;l.VERTEX_ATTRIB_ARRAY_SIZE=34339;l.VERTEX_ATTRIB_ARRAY_STRIDE=34340;l.VERTEX_ATTRIB_ARRAY_TYPE=34341;l.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922;l.VERTEX_ATTRIB_ARRAY_POINTER=34373;l.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975;l.VERTEX_PROGRAM_POINT_SIZE=34370;l.POINT_SPRITE=34913;l.COMPILE_STATUS=35713;l.LOW_FLOAT=36336;l.MEDIUM_FLOAT=36337;l.HIGH_FLOAT=36338;l.LOW_INT=36339;l.MEDIUM_INT=36340;l.HIGH_INT=36341;l.FRAMEBUFFER=36160;l.RENDERBUFFER=36161;l.RGBA4=32854;l.RGB5_A1=32855;l.RGB565=36194;l.DEPTH_COMPONENT16= 33189;l.STENCIL_INDEX=6401;l.STENCIL_INDEX8=36168;l.DEPTH_STENCIL=34041;l.RENDERBUFFER_WIDTH=36162;l.RENDERBUFFER_HEIGHT=36163;l.RENDERBUFFER_INTERNAL_FORMAT=36164;l.RENDERBUFFER_RED_SIZE=36176;l.RENDERBUFFER_GREEN_SIZE=36177;l.RENDERBUFFER_BLUE_SIZE=36178;l.RENDERBUFFER_ALPHA_SIZE=36179;l.RENDERBUFFER_DEPTH_SIZE=36180;l.RENDERBUFFER_STENCIL_SIZE=36181;l.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048;l.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049;l.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050;l.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE= 36051;l.COLOR_ATTACHMENT0=36064;l.DEPTH_ATTACHMENT=36096;l.STENCIL_ATTACHMENT=36128;l.DEPTH_STENCIL_ATTACHMENT=33306;l.NONE=0;l.FRAMEBUFFER_COMPLETE=36053;l.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054;l.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055;l.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057;l.FRAMEBUFFER_UNSUPPORTED=36061;l.FRAMEBUFFER_BINDING=36006;l.RENDERBUFFER_BINDING=36007;l.MAX_RENDERBUFFER_SIZE=34024;l.INVALID_FRAMEBUFFER_OPERATION=1286;l.UNPACK_FLIP_Y_WEBGL=37440;l.UNPACK_PREMULTIPLY_ALPHA_WEBGL= 37441;l.CONTEXT_LOST_WEBGL=37442;l.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443;l.BROWSER_DEFAULT_WEBGL=37444;wb.__identity=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];tg.__identity=new tg;oa.__identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];jj.MESSAGE_COMPLETE="__COMPLETE__";jj.MESSAGE_ERROR="__ERROR__";Zd.__moduleNames=null;Zd.lime_cffi_set_finalizer=Zd.load("lime","lime_cffi_set_finalizer",1,!1);uf.INVALID=0;uf.LEFT_TO_RIGHT=4;uf.RIGHT_TO_LEFT=5;uf.TOP_TO_BOTTOM=6;uf.BOTTOM_TO_TOP=7;da.COMMON="Zyyy";da.INHERITED= "Zinh";da.UNKNOWN="Zzzz";da.ARABIC="Arab";da.ARMENIAN="Armn";da.BENGALI="Beng";da.CYRILLIC="Cyrl";da.DEVANAGARI="Deva";da.GEORGIAN="Geor";da.GREEK="Grek";da.GUJARATI="Gujr";da.GURMUKHI="Guru";da.HANGUL="Hang";da.HAN="Hani";da.HEBREW="Hebr";da.HIRAGANA="Hira";da.KANNADA="Knda";da.KATAKANA="Kana";da.LAO="Laoo";da.LATIN="Latn";da.MALAYALAM="Mlym";da.ORIYA="Orya";da.TAMIL="Taml";da.TELUGA="Telu";da.THAI="Thai";da.TIBETAN="Tibt";da.BOPOMOFO="Bopo";da.BRAILLE="Brai";da.CANADIAN_SYLLABICS="Cans";da.CHEROKEE= "Cher";da.ETHIOPIC="Ethi";da.KHMER="Khmr";da.MONGOLIAN="Mong";da.MYANMAR="Mymr";da.OGHAM="Ogam";da.RUNIC="Runr";da.SINHALA="Sinh";da.SYRIAC="Syrc";da.THAANA="Thaa";da.YI="Yiii";da.DESERET="Dsrt";da.GOTHIC="Goth";da.OLD_ITALIC="Ital";da.BUHID="Buhd";da.HANUNOO="Hano";da.TAGALOG="Tglg";da.TAGBANWA="Tagb";da.CYPRIOT="Cprt";da.LIMBU="Limb";da.LINEAR_B="Linb";da.OSMANYA="Osma";da.SHAVIAN="Shaw";da.TAI_LE="Tale";da.UGARITIC="Ugar";da.BUGINESE="Bugi";da.COPTIC="Copt";da.GLAGOLITIC="Glag";da.KHAROSHTHI="Khar"; da.NEW_TAI_LUE="Talu";da.OLD_PERSIAN="Xpeo";da.SYLOTI_NAGRI="Sylo";da.TIFINAGH="Tfng";da.BALINESE="Bali";da.CUNEIFORM="Xsux";da.NKO="Nkoo";da.PHAGS_PA="Phag";da.PHOENICIAN="Phnx";da.CARIAN="Cari";da.CHAM="Cham";da.KAYAH_LI="Kali";da.LEPCHA="Lepc";da.LYCIAN="Lyci";da.LYDIAN="Lydi";da.OL_CHIKI="Olck";da.REJANG="Rjng";da.SAURASHTRA="Saur";da.SUNDANESE="Sund";da.VAI="Vaii";da.AVESTAN="Avst";da.BAMUM="Bamu";da.EGYPTIAN_HIEROGLYPHS="Egyp";da.IMPERIAL_ARAMAIC="Armi";da.INSCRIPTIONAL_PAHLAVI="Phli";da.INSCRIPTIONAL_PARTHIAN= "Prti";da.JAVANESE="Java";da.KAITHI="Kthi";da.LISU="Lisu";da.MEETEI_MAYEK="Mtei";da.OLD_SOUTH_ARABIAN="Sarb";da.OLD_TURKIC="Orkh";da.SAMARITAN="Samr";da.TAI_THAM="Lana";da.TAI_VIET="Tavt";da.BATAK="Batk";da.BRAHMI="Brah";da.MANDAIC="Mand";da.CHAKMA="Cakm";da.MEROITIC_CURSIVE="Merc";da.MEROITIC_HIEROGLYPHS="Mero";da.MIAO="Plrd";da.SHARADA="Shrd";da.SORA_SOMPENG="Sora";da.TAKRI="Takr";da.BASSA_VAH="Bass";da.CAUCASIAN_ALBANIAN="Aghb";da.DUPLOYAN="Dupl";da.ELBASAN="Elba";da.GRANTHA="Gran";da.KHOJKI="Khoj"; da.KHUDAWADI="Sind";da.LINEAR_A="Lina";da.MAHAJANI="Mahj";da.MANICHAEAN="Mani";da.MENDE_KIKAKUI="Mend";da.MODI="Modi";da.MRO="Mroo";da.NABATAEAN="Nbat";da.OLD_NORTH_ARABIAN="Narb";da.OLD_PERMIC="Perm";da.PAHAWH_HMONG="Hmng";da.PALMYRENE="Palm";da.PAU_CIN_HAU="Pauc";da.PSALTER_PAHLAVI="Phlp";da.SIDDHAM="Sidd";da.TIRHUTA="Tirh";da.WARANG_CITI="Wara";Hh.devices=new Ed;Hh.onConnect=new Sq;wi.LEFT_X=0;wi.LEFT_Y=1;wi.RIGHT_X=2;wi.RIGHT_Y=3;wi.TRIGGER_LEFT=4;wi.TRIGGER_RIGHT=5;le.A=0;le.B=1;le.X=2;le.Y= 3;le.BACK=4;le.GUIDE=5;le.START=6;le.LEFT_STICK=7;le.RIGHT_STICK=8;le.LEFT_SHOULDER=9;le.RIGHT_SHOULDER=10;le.DPAD_UP=11;le.DPAD_DOWN=12;le.DPAD_LEFT=13;le.DPAD_RIGHT=14;Ok.devices=new Ed;Ok.onConnect=new Tq;kd.CENTER=0;kd.DOWN=4;kd.LEFT=8;kd.RIGHT=2;kd.UP=1;kd.DOWN_LEFT=12;kd.DOWN_RIGHT=6;kd.UP_LEFT=9;kd.UP_RIGHT=3;K.UNKNOWN=0;K.BACKSPACE=8;K.TAB=9;K.RETURN=13;K.ESCAPE=27;K.SPACE=32;K.EXCLAMATION=33;K.QUOTE=34;K.HASH=35;K.DOLLAR=36;K.PERCENT=37;K.AMPERSAND=38;K.SINGLE_QUOTE=39;K.LEFT_PARENTHESIS= 40;K.RIGHT_PARENTHESIS=41;K.ASTERISK=42;K.PLUS=43;K.COMMA=44;K.MINUS=45;K.PERIOD=46;K.SLASH=47;K.NUMBER_0=48;K.NUMBER_1=49;K.NUMBER_2=50;K.NUMBER_3=51;K.NUMBER_4=52;K.NUMBER_5=53;K.NUMBER_6=54;K.NUMBER_7=55;K.NUMBER_8=56;K.NUMBER_9=57;K.COLON=58;K.SEMICOLON=59;K.LESS_THAN=60;K.EQUALS=61;K.GREATER_THAN=62;K.QUESTION=63;K.AT=64;K.LEFT_BRACKET=91;K.BACKSLASH=92;K.RIGHT_BRACKET=93;K.CARET=94;K.UNDERSCORE=95;K.GRAVE=96;K.A=97;K.B=98;K.C=99;K.D=100;K.E=101;K.F=102;K.G=103;K.H=104;K.I=105;K.J=106;K.K=107; K.L=108;K.M=109;K.N=110;K.O=111;K.P=112;K.Q=113;K.R=114;K.S=115;K.T=116;K.U=117;K.V=118;K.W=119;K.X=120;K.Y=121;K.Z=122;K.DELETE=127;K.CAPS_LOCK=1073741881;K.F1=1073741882;K.F2=1073741883;K.F3=1073741884;K.F4=1073741885;K.F5=1073741886;K.F6=1073741887;K.F7=1073741888;K.F8=1073741889;K.F9=1073741890;K.F10=1073741891;K.F11=1073741892;K.F12=1073741893;K.PRINT_SCREEN=1073741894;K.SCROLL_LOCK=1073741895;K.PAUSE=1073741896;K.INSERT=1073741897;K.HOME=1073741898;K.PAGE_UP=1073741899;K.END=1073741901;K.PAGE_DOWN= 1073741902;K.RIGHT=1073741903;K.LEFT=1073741904;K.DOWN=1073741905;K.UP=1073741906;K.NUM_LOCK=1073741907;K.NUMPAD_DIVIDE=1073741908;K.NUMPAD_MULTIPLY=1073741909;K.NUMPAD_MINUS=1073741910;K.NUMPAD_PLUS=1073741911;K.NUMPAD_ENTER=1073741912;K.NUMPAD_1=1073741913;K.NUMPAD_2=1073741914;K.NUMPAD_3=1073741915;K.NUMPAD_4=1073741916;K.NUMPAD_5=1073741917;K.NUMPAD_6=1073741918;K.NUMPAD_7=1073741919;K.NUMPAD_8=1073741920;K.NUMPAD_9=1073741921;K.NUMPAD_0=1073741922;K.NUMPAD_PERIOD=1073741923;K.APPLICATION=1073741925; K.POWER=1073741926;K.NUMPAD_EQUALS=1073741927;K.F13=1073741928;K.F14=1073741929;K.F15=1073741930;K.F16=1073741931;K.F17=1073741932;K.F18=1073741933;K.F19=1073741934;K.F20=1073741935;K.F21=1073741936;K.F22=1073741937;K.F23=1073741938;K.F24=1073741939;K.EXECUTE=1073741940;K.HELP=1073741941;K.MENU=1073741942;K.SELECT=1073741943;K.STOP=1073741944;K.AGAIN=1073741945;K.UNDO=1073741946;K.CUT=1073741947;K.COPY=1073741948;K.PASTE=1073741949;K.FIND=1073741950;K.MUTE=1073741951;K.VOLUME_UP=1073741952;K.VOLUME_DOWN= 1073741953;K.NUMPAD_COMMA=1073741957;K.ALT_ERASE=1073741977;K.SYSTEM_REQUEST=1073741978;K.CANCEL=1073741979;K.CLEAR=1073741980;K.PRIOR=1073741981;K.RETURN2=1073741982;K.SEPARATOR=1073741983;K.OUT=1073741984;K.OPER=1073741985;K.CLEAR_AGAIN=1073741986;K.CRSEL=1073741987;K.EXSEL=1073741988;K.NUMPAD_00=1073742E3;K.NUMPAD_000=1073742001;K.THOUSAND_SEPARATOR=1073742002;K.DECIMAL_SEPARATOR=1073742003;K.CURRENCY_UNIT=1073742004;K.CURRENCY_SUBUNIT=1073742005;K.NUMPAD_LEFT_PARENTHESIS=1073742006;K.NUMPAD_RIGHT_PARENTHESIS= 1073742007;K.NUMPAD_LEFT_BRACE=1073742008;K.NUMPAD_RIGHT_BRACE=1073742009;K.NUMPAD_TAB=1073742010;K.NUMPAD_BACKSPACE=1073742011;K.NUMPAD_A=1073742012;K.NUMPAD_B=1073742013;K.NUMPAD_C=1073742014;K.NUMPAD_D=1073742015;K.NUMPAD_E=1073742016;K.NUMPAD_F=1073742017;K.NUMPAD_XOR=1073742018;K.NUMPAD_POWER=1073742019;K.NUMPAD_PERCENT=1073742020;K.NUMPAD_LESS_THAN=1073742021;K.NUMPAD_GREATER_THAN=1073742022;K.NUMPAD_AMPERSAND=1073742023;K.NUMPAD_DOUBLE_AMPERSAND=1073742024;K.NUMPAD_VERTICAL_BAR=1073742025; K.NUMPAD_DOUBLE_VERTICAL_BAR=1073742026;K.NUMPAD_COLON=1073742027;K.NUMPAD_HASH=1073742028;K.NUMPAD_SPACE=1073742029;K.NUMPAD_AT=1073742030;K.NUMPAD_EXCLAMATION=1073742031;K.NUMPAD_MEM_STORE=1073742032;K.NUMPAD_MEM_RECALL=1073742033;K.NUMPAD_MEM_CLEAR=1073742034;K.NUMPAD_MEM_ADD=1073742035;K.NUMPAD_MEM_SUBTRACT=1073742036;K.NUMPAD_MEM_MULTIPLY=1073742037;K.NUMPAD_MEM_DIVIDE=1073742038;K.NUMPAD_PLUS_MINUS=1073742039;K.NUMPAD_CLEAR=1073742040;K.NUMPAD_CLEAR_ENTRY=1073742041;K.NUMPAD_BINARY=1073742042; K.NUMPAD_OCTAL=1073742043;K.NUMPAD_DECIMAL=1073742044;K.NUMPAD_HEXADECIMAL=1073742045;K.LEFT_CTRL=1073742048;K.LEFT_SHIFT=1073742049;K.LEFT_ALT=1073742050;K.LEFT_META=1073742051;K.RIGHT_CTRL=1073742052;K.RIGHT_SHIFT=1073742053;K.RIGHT_ALT=1073742054;K.RIGHT_META=1073742055;K.MODE=1073742081;K.AUDIO_NEXT=1073742082;K.AUDIO_PREVIOUS=1073742083;K.AUDIO_STOP=1073742084;K.AUDIO_PLAY=1073742085;K.AUDIO_MUTE=1073742086;K.MEDIA_SELECT=1073742087;K.WWW=1073742088;K.MAIL=1073742089;K.CALCULATOR=1073742090; K.COMPUTER=1073742091;K.APP_CONTROL_SEARCH=1073742092;K.APP_CONTROL_HOME=1073742093;K.APP_CONTROL_BACK=1073742094;K.APP_CONTROL_FORWARD=1073742095;K.APP_CONTROL_STOP=1073742096;K.APP_CONTROL_REFRESH=1073742097;K.APP_CONTROL_BOOKMARKS=1073742098;K.BRIGHTNESS_DOWN=1073742099;K.BRIGHTNESS_UP=1073742100;K.DISPLAY_SWITCH=1073742101;K.BACKLIGHT_TOGGLE=1073742102;K.BACKLIGHT_DOWN=1073742103;K.BACKLIGHT_UP=1073742104;K.EJECT=1073742105;K.SLEEP=1073742106;pb.NONE=0;pb.LEFT_SHIFT=1;pb.RIGHT_SHIFT=2;pb.LEFT_CTRL= 64;pb.RIGHT_CTRL=128;pb.LEFT_ALT=256;pb.RIGHT_ALT=512;pb.LEFT_META=1024;pb.RIGHT_META=2048;pb.NUM_LOCK=4096;pb.CAPS_LOCK=8192;pb.MODE=16384;pb.CTRL=192;pb.SHIFT=3;pb.ALT=768;pb.META=3072;tf.onEnd=new Pk;tf.onMove=new Pk;tf.onStart=new Pk;ib.cffi_lime_bytes_from_data_pointer=Zd.load("lime","lime_bytes_from_data_pointer",2,!1);ib.cffi_lime_bytes_get_data_pointer=Zd.load("lime","lime_bytes_get_data_pointer",1,!1);ib.cffi_lime_bytes_read_file=Zd.load("lime","lime_bytes_read_file",1,!1);Lj.BYTES_PER_ELEMENT= 4;Mj.BYTES_PER_ELEMENT=2;Nj.BYTES_PER_ELEMENT=4;Oj.BYTES_PER_ELEMENT=2;Pj.BYTES_PER_ELEMENT=4;Qj.BYTES_PER_ELEMENT=1;Rb.actuators=[];Rb.actuatorsLength=0;Rb.addedEvent=!1;S.defaultActuator=Rb;S.defaultEase=dh.get_easeOut();S.targetLibraries=new jg;za.cache=new Sn;za.dispatcher=new Qa;Ig.__rootURL=window.document.URL;Ah.currentDomain=new Ah(null);pa.__temp=new pa;pa.__identity=new pa;ha.current=new we;ha.__sentWarnings=new fa;Dc.SIN45=.7071067811865476;Dc.TAN22=.41421356237309503;L.SIN45=.7071067811865476; L.TAN22=.41421356237309503;L.fillCommands=new Jh;L.strokeCommands=new Jh;z.SIN45=.7071067811865476;z.TAN22=.41421356237309503;z.fillCommands=new Jh;z.strokeCommands=new Jh;ud.glContextId=0;ud.glContexts=[];qc.UID=0;w.__currentWinding=0;w.__fillIndex=0;ga.fillVertexAttributes=[new wf(2,5126,!1,"aPosition")];ga.drawTrianglesVertexAttributes=[new wf(2,5126,!1,"aPosition"),new wf(2,5126,!1,"aTexCoord0"),new wf(4,5121,!0,"aColor")];ga.primitiveVertexAttributes=[new wf(2,5126,!1,"aPosition"),new wf(4,5126, !1,"aColor")];ga.graphicsDataPool=[];ga.bucketPool=[];ga.SIN45=.7071067811865476;ga.TAN22=.41421356237309503;ga.objectPosition=new Q;ga.objectBounds=new va;ao.VERTS_PER_SPRITE=4;Mb.UTF8_TAB=9;Mb.UTF8_ENDLINE=10;Mb.UTF8_SPACE=32;Mb.UTF8_HYPHEN=45;Mb.__defaultFonts=new fa;mo.ALPHA=8;mo.BLUE=4;mo.GREEN=2;mo.RED=1;Fc.TILE_SCALE=1;Fc.TILE_ROTATION=2;Fc.TILE_RGB=4;Fc.TILE_ALPHA=8;Fc.TILE_TRANS_2x2=16;Fc.TILE_RECT=32;Fc.TILE_ORIGIN=64;Fc.TILE_BLEND_NORMAL=0;Fc.TILE_BLEND_ADD=65536;Fc.TILE_BLEND_MULTIPLY= 131072;Fc.TILE_BLEND_SCREEN=262144;Fc.TILE_BLEND_SUBTRACT=524288;Fc.TILE_BLEND_DARKEN=1048576;Fc.TILE_BLEND_LIGHTEN=2097152;Fc.TILE_BLEND_OVERLAY=4194304;Fc.TILE_BLEND_HARDLIGHT=8388608;Fc.TILE_BLEND_DIFFERENCE=16777216;Fc.TILE_BLEND_INVERT=33554432;Di.LINE_TO=2;Di.MOVE_TO=1;Di.CURVE_TO=3;Di.WIDE_LINE_TO=5;Di.WIDE_MOVE_TO=4;Di.NO_OP=0;Di.CUBIC_CURVE_TO=6;Ag.CONTEXT_LOST="glcontextlost";Ag.CONTEXT_RESTORED="glcontextrestored";ad.TILE_SCALE=1;ad.TILE_ROTATION=2;ad.TILE_RGB=4;ad.TILE_ALPHA=8;ad.TILE_TRANS_2x2= 16;ad.TILE_RECT=32;ad.TILE_ORIGIN=64;ad.TILE_BLEND_NORMAL=0;ad.TILE_BLEND_ADD=65536;ad.TILE_BLEND_MULTIPLY=131072;ad.TILE_BLEND_SCREEN=262144;ad.TILE_BLEND_SUBTRACT=524288;ad.TILE_BLEND_DARKEN=1048576;ad.TILE_BLEND_LIGHTEN=2097152;ad.TILE_BLEND_OVERLAY=4194304;ad.TILE_BLEND_HARDLIGHT=8388608;ad.TILE_BLEND_DIFFERENCE=16777216;ad.TILE_BLEND_INVERT=33554432;ad.__defaultPoint=new Q(0,0);Ca.TEXTURE_MAX_ANISOTROPY_EXT=34046;Ca.MAX_SAMPLERS=8;Ca.MAX_TEXTURE_MAX_ANISOTROPY_EXT=34047;Ca.anisotropySupportTested= !1;Ca.supportsAnisotropy=!1;Ca.maxSupportedAnisotropy=256;so.ALL=17664;so.COLOR=16384;so.DEPTH=256;so.STENCIL=1024;Hi.BACK=1028;Hi.FRONT=1029;Hi.FRONT_AND_BACK=1032;Hi.NONE=0;O.DEFAULT_TO_STRING="Error";ie.LINK="link";ie.TEXT_INPUT="textInput";ne.ERROR="error";Ij.ASYNC_ERROR="asyncError";fl.MENU_ITEM_SELECT="menuItemSelect";fl.MENU_SELECT="menuSelect";Oc.FOCUS_IN="focusIn";Oc.FOCUS_OUT="focusOut";Oc.KEY_FOCUS_CHANGE="keyFocusChange";Oc.MOUSE_FOCUS_CHANGE="mouseFocusChange";ef.FULL_SCREEN="fullScreen"; ef.FULL_SCREEN_INTERACTIVE_ACCEPTED="fullScreenInteractiveAccepted";Pf.DEVICE_ADDED="deviceAdded";Pf.DEVICE_REMOVED="deviceRemoved";Pf.DEVICE_UNUSABLE="deviceUnusable";Ef.HTTP_RESPONSE_STATUS="httpResponseStatus";Ef.HTTP_STATUS="httpStatus";Hc.IO_ERROR="ioError";vc.KEY_DOWN="keyDown";vc.KEY_UP="keyUp";A.CLICK="click";A.DOUBLE_CLICK="doubleClick";A.MIDDLE_CLICK="middleClick";A.MIDDLE_MOUSE_DOWN="middleMouseDown";A.MIDDLE_MOUSE_UP="middleMouseUp";A.MOUSE_DOWN="mouseDown";A.MOUSE_MOVE="mouseMove";A.MOUSE_OUT= "mouseOut";A.MOUSE_OVER="mouseOver";A.MOUSE_UP="mouseUp";A.MOUSE_WHEEL="mouseWheel";A.RIGHT_CLICK="rightClick";A.RIGHT_MOUSE_DOWN="rightMouseDown";A.RIGHT_MOUSE_UP="rightMouseUp";A.ROLL_OUT="rollOut";A.ROLL_OVER="rollOver";dc.NET_STATUS="netStatus";Fe.PROGRESS="progress";Fe.SOCKET_DATA="socketData";Df.SECURITY_ERROR="securityError";Ac.TIMER="timer";Ac.TIMER_COMPLETE="timerComplete";fe.TOUCH_BEGIN="touchBegin";fe.TOUCH_END="touchEnd";fe.TOUCH_MOVE="touchMove";fe.TOUCH_OUT="touchOut";fe.TOUCH_OVER= "touchOver";fe.TOUCH_ROLL_OUT="touchRollOut";fe.TOUCH_ROLL_OVER="touchRollOver";fe.TOUCH_TAP="touchTap";Kg.available=!0;Kg.marshallExceptions=!1;Ar.HIGH=3;Ar.MEDIUM=2;Ar.LOW=1;xe.__registeredSounds=new fa;Lk.CONNECT_SUCCESS="connectSuccess";Mf.defaultObjectEncoding=3;gb.avHardwareDisable=!0;gb.cpuArchitecture="";gb.hasAccessibility=!1;gb.hasAudio=!0;gb.hasAudioEncoder=!1;gb.hasEmbeddedVideo=!1;gb.hasIME=!1;gb.hasMP3=!1;gb.hasPrinting=!1;gb.hasScreenBroadcast=!1;gb.hasScreenPlayback=!1;gb.hasStreamingAudio= !1;gb.hasStreamingVideo=!1;gb.hasTLS=!0;gb.hasVideoEncoder=!1;gb.isDebugger=!1;gb.isEmbeddedInAcrobat=!1;gb.localFileReadDisable=!0;gb.manufacturer="OpenFL Contributors";gb.maxLevelIDC=0;gb.playerType="OpenFL";gb.screenColor="color";gb.serverString="";gb.supports32BitProcesses=!1;gb.supports64BitProcesses=!1;gb.touchscreenType=Qf.FINGER;vo.currentDomain=new vo;Rf.useCodePage=!1;Md.__registeredFonts=[];Hb.isSupported=!0;Hb.numDevices=0;Hb.__devices=new jg;Hb.__instances=[];wo.MAX_BUFFER_SIZE=32E3; la.NUMBER_0=48;la.NUMBER_1=49;la.NUMBER_2=50;la.NUMBER_3=51;la.NUMBER_4=52;la.NUMBER_5=53;la.NUMBER_6=54;la.NUMBER_7=55;la.NUMBER_8=56;la.NUMBER_9=57;la.A=65;la.B=66;la.C=67;la.D=68;la.E=69;la.F=70;la.G=71;la.H=72;la.I=73;la.J=74;la.K=75;la.L=76;la.M=77;la.N=78;la.O=79;la.P=80;la.Q=81;la.R=82;la.S=83;la.T=84;la.U=85;la.V=86;la.W=87;la.X=88;la.Y=89;la.Z=90;la.NUMPAD_0=96;la.NUMPAD_1=97;la.NUMPAD_2=98;la.NUMPAD_3=99;la.NUMPAD_4=100;la.NUMPAD_5=101;la.NUMPAD_6=102;la.NUMPAD_7=103;la.NUMPAD_8=104;la.NUMPAD_9= 105;la.NUMPAD_MULTIPLY=106;la.NUMPAD_ADD=107;la.NUMPAD_ENTER=108;la.NUMPAD_SUBTRACT=109;la.NUMPAD_DECIMAL=110;la.NUMPAD_DIVIDE=111;la.F1=112;la.F2=113;la.F3=114;la.F4=115;la.F5=116;la.F6=117;la.F7=118;la.F8=119;la.F9=120;la.F10=121;la.F11=122;la.F12=123;la.F13=124;la.F14=125;la.F15=126;la.BACKSPACE=8;la.TAB=9;la.ALTERNATE=18;la.ENTER=13;la.COMMAND=15;la.SHIFT=16;la.CONTROL=17;la.BREAK=19;la.CAPS_LOCK=20;la.NUMPAD=21;la.ESCAPE=27;la.SPACE=32;la.PAGE_UP=33;la.PAGE_DOWN=34;la.END=35;la.HOME=36;la.LEFT= 37;la.RIGHT=39;la.UP=38;la.DOWN=40;la.INSERT=45;la.DELETE=46;la.NUMLOCK=144;la.SEMICOLON=186;la.EQUAL=187;la.COMMA=188;la.MINUS=189;la.PERIOD=190;la.SLASH=191;la.BACKQUOTE=192;la.LEFTBRACKET=219;la.BACKSLASH=220;la.RIGHTBRACKET=221;la.QUOTE=222;Ga.UserNameKey="userName";Ga.UserPasswordKey="userPassword";Ga.SinglePasswordKey="singlePassword";Ga.Instance=null;wd.version="1.0.0";wd.BASE64_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";$e.instance=null;Lb.STROKE_ALPHA=.2;lb.instance= null;md.DEFAULT_NUM_DECIMALS=2;md._instance=null;md._instanceY2=null;Eg.CLOSEST=0;Eg.PROXIMITY=1;Eg.NORMAL=2;Fg.STEP_HORIZONTAL=1;Fg.STEP_VERTICAL=2;Vh.TO_RADIANS=Math.PI/180;De.dateConsts={shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),longMonths:"January February March April May June July August September October November December".split(" "),shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),longDays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ")}; kc.main()})("undefined"!=typeof console?console:{log:function(){}},"undefined"!=typeof window?window:exports);