(function(Bs,ul){function r(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 Rr(a){return a instanceof Array?function(){return Y.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__=at++);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}ul.openfl=ul.openfl||{};ul.lime=ul.lime||{};var g={},B=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 vl;a.create(kc.config);var b=new Xf;kc.preloader=new wl(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 ga,this.__eventMap=new ga,this.__newEventMap=new ga);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||(this.__cacheAsBitmap?this.__cacheGL(a):(null!=this.__scrollRect&&a.maskManager.pushRect(this.__scrollRect,this.__renderTransform),null!=this.__mask&&null!=this.__maskGraphics&&0=e&&0>=f)throw new q("Error creating a cached bitmap. The texture size is "+e+"x"+f);if(this.__updateCachedBitmap||this.__updateFilters)null!=this.__cachedFilterBounds&&(e+=Math.abs(this.__cachedFilterBounds.x)+Math.abs(this.__cachedFilterBounds.width),f+=Math.abs(this.__cachedFilterBounds.y)+Math.abs(this.__cachedFilterBounds.height)),null==this.__cachedBitmap&&(this.__cachedBitmap= hb.__asRenderTexture()),this.__cachedBitmap.__resize(Math.ceil(e),Math.ceil(f)),e=this.__cacheGLMatrix.clone(),e.translate(-c,-d),b=this.__shader,this.__shader=null,this.__cachedBitmap.__drawGL(a,this,e,null,null,null,!0,!1,!0),this.__shader=b,this.__updateCachedBitmap=!1;this.__updateFilters&&(wd.__applyFilters(this.__filters,a,this.__cachedBitmap,this.__cachedBitmap,null,null),this.__updateFilters=!1);this.__cacheGLMatrix.invert();this.__cacheGLMatrix.__translateTransformed(c,d);this.__cacheGLMatrix.concat(this.__renderTransform); this.__cacheGLMatrix.translate(this.__offset.x,this.__offset.y);a.spriteBatch.renderBitmapData(this.__cachedBitmap,this.__cacheAsBitmapSmooth,this.__cacheGLMatrix,this.__worldColorTransform,this.__worldAlpha,this.blendMode,this.__shader,De.ALWAYS)},__setStageReference:function(a){this.stage!=a&&(null!=this.stage&&(this.stage.get_focus()==this&&this.stage.set_focus(null),this.dispatchEvent(new J(J.REMOVED_FROM_STAGE,!1,!1))),this.stage=a,null!=a&&this.dispatchEvent(new J(J.ADDED_TO_STAGE,!1,!1)))}, __setRenderDirty:function(){this.__renderDirty||(this.__updateCachedBitmap=!0,this.__updateFilters=null!=this.get_filters()&&0this.__children.length||0>b)throw new q("Invalid index position "+b);if(a.parent==this)Y.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,Ga.__worldTransformDirty++);a.__renderDirty||(a.__updateCachedBitmap=!0,a.__updateFilters= null!=a.get_filters()&&0b))return;if(!(a>this.__children.length-1)){if(ba||b>this.__children.length)throw new q(new Dl("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< c.length;){var d=c[b];++b;if(d.get_name()==a)return d}return null},setChildIndex:function(a,b){0<=b&&b<=this.__children.length&&a.parent==this&&(Y.remove(this.__children,a),this.__children.splice(b,0,a))},swapChildren:function(a,b){if(a.parent==this&&b.parent==this){var c=Y.indexOf(this.__children,a,0),d=Y.indexOf(this.__children,b,0);this.__children[c]=b;this.__children[d]=a}},swapChildrenAt:function(a,b){var c=this.__children[a];this.__children[a]=this.__children[b];this.__children[b]=c},__broadcast:function(a, b){null==a.target&&(a.target=this);var c=Lc.prototype.__broadcast.call(this,a,b);if(!a.__isCancelled&&b)for(var d=0,e=this.__children;d=this.__worldAlpha)){Lc.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)){Lc.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))if(this.__cacheAsBitmap)this.__cacheGL(a);else{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=Hb.Thumb;var c=new od(1024,480,a+1);c._backColor=16777216;c._backSpriteAlpha=.45;c.drawBackgroundSprite();c._pageType=Hb.Thumb;b=new Uc(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,pa.current.stage.stageWidth,pa.current.stage.stageHeight);this.get_graphics().endFill();ae.allowDomain("*");Bf.getInstance();var a;a=T.getInstance();a.setEventSprite(this);a.setEventMode(!1);a.addEventListener(x.MAINSTAGE_TEXT, this,k(this,this.onLoadingStatusText));a.addEventListener(x.MAINSTAGE_PROGRESS,this,k(this,this.onLoadingProgressValue));xd.getInstance();this.createMainLoading();this.resetMainLoadingStatus("loading book.bin...");this.resetMainLoadingPercent(0);Ab.delay(k(this,this.showMainLoading),100);1==this._testBookXml?this.doBookXmlTest("./files/mobile.xml"):(this._bin=new ek(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(),ua._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(){u.makeVarArgs(function(a){if(null!=a){a=u.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(K.Info);(null==b||0>=b.length)&&null!=a&&!a.isValid();){b=sa.getItemNameValue(a,C.AppTemplateName);sa.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=X.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=T.getInstance();a.removeEventListener(x.MAINSTAGE_TEXT,this,k(this,this.onLoadingStatusText));a.removeEventListener(x.MAINSTAGE_PROGRESS,this,k(this, this.onLoadingProgressValue))},testMaterialBitmap:function(){var a=this,b=null,b=Yf.getInstance();b.asyncGetIconsBitmap(function(b){null!=b&&a.addChild(b)},"warning",null,El.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=T.getInstance();a.addEventListener(x.MAINXML_IOERROR,this,k(this,this.onBookXmlReloadIoError));a.addEventListener(x.MAINXML_COMPLETE,this,k(this,this.onBookXmlReloadComplete));a=new Q(this.stage.stageWidth,this.stage.stageHeight);T.getInstance().dispatchEvent(new la(x.MAINSTAGE_INIT,new na(this,a,null)));pa.current.stage.addEventListener(tc.KEY_DOWN,k(this,this.onKeyDown));a=oe.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){T.getInstance().dispatchEvent(new la(x.MAINSTAGE_KEYDOWN,new na(this,null,a)))},onMouseMove:function(a){T.getInstance().dispatchEvent(new la(x.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);T.getInstance().dispatchEvent(new la(x.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,oe)}catch(c){if(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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=V.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=V.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 Fl(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 fk(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(Da.LEFT), this._label.textField._size=18,this._label.textField._color=16777215,this._label.textField._font="Tahoma",this._label.textField.updateTextFormat()),this._loading=new Gl(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=t.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__:ph});var xl=function(){pa.current.addChild(this);ph.call(this);this.dispatchEvent(new J(J.ADDED_TO_STAGE,!1,!1))};g.DocumentClass=xl;xl.__name__=["DocumentClass"];xl.__super__=ph;xl.prototype=r(ph.prototype,{__class__:xl});var Pi=function(){this.onChange=new Oc};g["lime.AssetLibrary"]=Pi;Pi.__name__=["lime","AssetLibrary"];Pi.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__:Pi};var Hl=function(){this.type=new ga;this.path=new ga;this.className=new ga;this.onChange=new Oc;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=Hl;Hl.__name__=["DefaultAssetLibrary"];Hl.__super__=Pi;Hl.prototype=r(Pi.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=ad.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(bb.createInstance(this.className.get(a),[]),Cf)},getImage:function(a){return Eb.fromImageElement(function(b){b=b.path.get(a);return ad.images.get(b)}(this))},getPath:function(a){return this.path.get(a)},getText:function(a){var b=null;a=this.path.get(a);a=ad.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(pe.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 Qi(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(Eb.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 Qi(this.path.get(a)))}else b.complete(this.getText(a));return b.future},__class__:Hl});var Gc=function(a,b){b=b.split("u").join("");this.r=new RegExp(a,b)};g.EReg=Gc;Gc.__name__=["EReg"];Gc.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)};Y.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);}};Y.cca= function(a,b){var c=a.toString().charCodeAt(b);return c!=c?void 0:c};Y.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)};Y.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 E;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 E;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=Xf;Xf.__name__=["NMEPreloader"];Xf.__super__=E;Xf.prototype=r(E.prototype,{outline:null,progress:null,getBackgroundColor:function(){return 0},getHeight:function(){return pa.current.stage.stageHeight},getWidth:function(){return pa.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};X.htmlUnescape=function(a){return a.split(">").join(">").split("<").join("<").split(""").join('"').split("'").join("'").split("&").join("&")};X.startsWith=function(a,b){return a.length>=b.length&&Y.substr(a,0,b.length)==b};X.endsWith=function(a,b){var c=b.length,d=a.length;return d>=c&&Y.substr(a,d-c,c)==b};X.isSpace= function(a,b){var c=Y.cca(a,b);return 8c||32==c};X.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 ba=function(a){this.nodeType=a;this.children=[];this.attributeMap=new ga};g.Xml=ba;ba.__name__=["Xml"];ba.parse=function(a){return qh.parse(a)};ba.createElement=function(a){var b=new ba(ba.Element);if(b.nodeType!=ba.Element)throw new q("Bad node type, expected Element but found "+ b.nodeType);b.nodeName=a;return b};ba.createPCData=function(a){var b=new ba(ba.PCData);if(b.nodeType==ba.Document||b.nodeType==ba.Element)throw new q("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};ba.createCData=function(a){var b=new ba(ba.CData);if(b.nodeType==ba.Document||b.nodeType==ba.Element)throw new q("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};ba.createComment=function(a){var b=new ba(ba.Comment);if(b.nodeType==ba.Document||b.nodeType==ba.Element)throw new q("Bad node type, unexpected "+ b.nodeType);b.nodeValue=a;return b};ba.createDocType=function(a){var b=new ba(ba.DocType);if(b.nodeType==ba.Document||b.nodeType==ba.Element)throw new q("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};ba.createProcessingInstruction=function(a){var b=new ba(ba.ProcessingInstruction);if(b.nodeType==ba.Document||b.nodeType==ba.Element)throw new q("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};ba.createDocument=function(){return new ba(ba.Document)};ba.prototype={nodeType:null, nodeName:null,nodeValue:null,parent:null,children:null,attributeMap:null,get_nodeName:function(){if(this.nodeType!=ba.Element)throw new q("Bad node type, expected Element but found "+this.nodeType);return this.nodeName},get:function(a){if(this.nodeType!=ba.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!=ba.Element)throw new q("Bad node type, expected Element but found "+this.nodeType);this.attributeMap.set(a, b)},exists:function(a){if(this.nodeType!=ba.Element)throw new q("Bad node type, expected Element but found "+this.nodeType);return this.attributeMap.exists(a)},attributes:function(){if(this.nodeType!=ba.Element)throw new q("Bad node type, expected Element but found "+this.nodeType);return this.attributeMap.keys()},iterator:function(){if(this.nodeType!=ba.Document&&this.nodeType!=ba.Element)throw new q("Bad node type, expected Element or Document but found "+this.nodeType);return Y.iter(this.children)}, elements:function(){if(this.nodeType!=ba.Document&&this.nodeType!=ba.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 ia(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,zc.SQUARE,uc.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 ia(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=bd*Math.cos(f),e=g*Math.sin(f),f=p*Math.cos(h),h=G*Math.sin(h),b>=n&&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(Fb.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=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=[Fb.rgb(255,255,255),Fb.rgb(255,255,255),Fb.rgb(255,255,255),Fb.rgb(0,0,0),Fb.rgb(0,0,0)],b=[.125,.125,.15,.1,.1],c=[12,114,127,127,242],d=new ka;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,Fb.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__:gk,__properties__:r(E.prototype.__properties__,{get_realHeight:"get_realHeight",get_realWidth:"get_realWidth",set_params:"set_params", get_params:"get_params"})});var Pl=function(a,b,c){this._contentType="image";this._gif=null;this._imgContainer=new E;this._imgLoader=new ff;this._alpha=1;this._strokeColor=Fb.rgb(26,147,31);this._strokeWidth=3;this._hasborder=!1;xb.call(this,a,b);this._container=new E;this._container.set_name("image_container");this.addChild(this._container);this.set_params_i(c);this.addEventListener(J.REMOVED_FROM_STAGE,k(this,this.removeEventHandler));this.render();this._container.addChild(this._imgContainer)}; g["com.firstflip.xeditor.objects.ImageObject"]=Pl;Pl.__name__=["com","firstflip","xeditor","objects","ImageObject"];Pl.__super__=xb;Pl.prototype=r(xb.prototype,{_url:null,_hasborder:null,_strokeWidth:null,_strokeColor:null,_alpha:null,_tmpBitmap:null,_imgLoader:null,_imgContainer:null,_gif:null,_contentType:null,parseParams:function(a){return Object.prototype.hasOwnProperty.call(a,"url")?!0:!1},get_params:function(){return{url:this._url,hasborder:this._hasborder,strokeWidth:this._strokeWidth,strokeColor:this._strokeColor, alpha:this._alpha}},load_gif:function(a){var b=this,c;c=new gf;c.set_dataFormat(pd.BINARY);a=new mc(a);c.addEventListener(J.COMPLETE,function(a){a=m.__cast(a.target,gf).data;for(var c=new Yh,f=0,h=a.length;fc;)G=Re.radians(c),g=Re.radians(c+this.THETA/2),h=this._d*Math.cos(G),G=this._d*Math.sin(G),bd=this._r*Math.cos(g),g=this._r*Math.sin(g),a.get_graphics().curveTo(p.x+ h,p.y+G,p.x+bd,p.y+g),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__:Ql,__properties__:r(xb.prototype.__properties__,{get_endPoint:"get_endPoint",get_startPoint:"get_startPoint"})});var Rl=function(a,b){E.call(this);this.textContent=new La;this.textContent.set_defaultTextFormat(b); this.textContent.set_autoSize(Da.LEFT);this.textContent.set_text(a);this.addChild(this.textContent)};g["com.firstflip.xeditor.objects.TextDeom"]=Rl;Rl.__name__=["com","firstflip","xeditor","objects","TextDeom"];Rl.__super__=E;Rl.prototype=r(E.prototype,{textContent:null,__class__:Rl});var Hp=function(){this.height=this.width=0};g["com.firstflip.xeditor.objects.TextSize"]=Hp;Hp.__name__=["com","firstflip","xeditor","objects","TextSize"];Hp.prototype={width:null,height:null,__class__:Hp};var Ip=function(){this.map= new Ud;this.size=new Hp};g["com.firstflip.xeditor.objects.TextFormatMapType"]=Ip;Ip.__name__=["com","firstflip","xeditor","objects","TextFormatMapType"];Ip.prototype={size:null,map:null,__class__:Ip};var Jp=function(){this.format=new ub};g["com.firstflip.xeditor.objects.TextData"]=Jp;Jp.__name__=["com","firstflip","xeditor","objects","TextData"];Jp.prototype={text:null,format:null,__class__:Jp};var Kp=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 ik),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 ik),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 ik),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(Da.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"]=Pg;Pg.__name__=["com","firstflip","xeditor","objects","StepObject"];Pg.createDropShadowFilter=function(a){return new Vd(parseFloat(a[0]), parseFloat(a[1]),t.parseInt(a[2]),parseFloat(a[3]),parseFloat(a[4]),parseFloat(a[5]),parseFloat(a[6]),t.parseInt(a[7]),"true"==a[8],"true"==a[9],"true"==a[10])};Pg.__super__=xb;Pg.prototype=r(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 ia(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,E).get_graphics();a=new ub("Arial",this._fontsize|0,this._titleColor,!0);this._textField.set_autoSize(Da.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,G){var bd=b+d,g=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([Pg.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,E);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([Pg.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,E);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([Pg.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,E);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([Pg.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__:Pg});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 E;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=u.fields(a);c=e.length||(e=e[0],"dropShadow"==e?a.push(hc.createDropShadowFilter(u.field(this.get_prop_field("box_shadow",this._status),d))):"blur"==e&&a.push(hc.createBlurFilter(u.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 sh=function(a,b,c,d,e,f){null==f&&(f=0);this._player=null;this._parameters={};this.ytPlayer=null;this.ytManager=ua.getInstance();xb.call(this,c,d);this._container=new E;this._container.set_name("player_container");this.addChild(this._container);for(var h=0,p=u.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:t.parseFloat(X.replace(a[1],"px","")),offset_y:t.parseFloat(X.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:t.parseFloat(X.replace(a[1],"px","")),offset_y:t.parseFloat(X.replace(a[2], "px","")),blur_radius:t.parseFloat(X.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:t.parseFloat(X.replace(a[0],"px","")),offset_y:t.parseFloat(X.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:t.parseFloat(X.replace(a[0],"px","")),offset_y:t.parseFloat(X.replace(a[1],"px","")),blur_radius:t.parseFloat(X.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=t.parseFloat(X.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 Fb=function(){};g["com.firstflip.xeditor.utils.TRUtil"]=Fb;Fb.__name__=["com","firstflip","xeditor","utils","TRUtil"];Fb.rgb=function(a,b,c){return a<<16|b<<8|c};Fb.rgba=function(a,b,c,d){return(255*d|0)<<24|a<<16|b<<8|c};Fb.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}};Fb.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):t.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):t.string(Math.floor(a%60))):(c=d="00:",b=10>Math.floor(a)?"0"+Math.floor(a):t.string(Math.floor(a)));return e+(d+c+b)};Fb.image_resize=function(a,b,c){var d=b/a.bitmapData.width,e=c/a.bitmapData.height;b=new hb(b,c,!0);c=new ka;c.scale(d,e);b.draw(a.bitmapData,c);return new rb(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 Vc(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 Bs&&null!=Bs.log&&Bs.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+=G,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,G,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,G){null==G&&(G=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,P,m;l=2*Math.PI/Fa.toFloat(d);P=l/2;h=h/180*Math.PI;a.moveTo((b+Math.cos(h)*f)*p+g,(c-Math.sin(h)*f)*G+k);for(var n=1,q=d+1;n=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 G=d,g=e,k=d=e=0,l=[];c=360/c;e-=b;for(var P=f;(P|0)<=360+f;){var m=d+Math.sin(ob.radians(P))*b,n=e+(b-Math.cos(ob.radians(P))*b);l[k]=new Q(m,n);switch(k){case 0:break;case 1:a.moveTo(l[k-1].x*h+G,l[k-1].y*p+g);a.lineTo(l[k].x*h+G,l[k].y*p+g);break;default:a.lineTo(l[k].x*h+G,l[k].y*p+g)}k++; P+=c}};ob.drawPolygon2=function(a,b,c,d,e,f,h,p){f=0;h=[];c=360/c;e-=b;for(var G=p;(G|0)<=360+p;){var g=d+Math.sin(ob.radians(G))*b,k=e+(b-Math.cos(ob.radians(G))*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++;G+=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,G,g,k,l,P;p=2*Math.PI/Fa.toFloat(d);G=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,n=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=X.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=X.trim(a),X.startsWith(a,"#")&&(a="0x"+Y.substr(a,1,a.length-1)),b=t.parseInt(a));return b};Se.parsePoint=function(a){var b=new Q(0,0);null!=a&&(a=X.trim(a),a=a.split(","),2==a.length&&(b.x=t.parseInt(a[0]),b.y=t.parseInt(a[1])));return b};var Op=function(){this.backgroundColor=0;this.frames=[]};g["com.yagp.Gif"]=Op;Op.__name__=["com","yagp","Gif"];Op.prototype={version:null,lsd:null,get_width:function(){return this.lsd.width}, get_height:function(){return this.lsd.height},backgroundColor:null,get_backgroundIndex:function(){return this.lsd.backgroundColorIndex},netscape:null,get_loops:function(){return null!=this.netscape?this.netscape.iterations:1},frames:null,dispose:function(){this.netscape=this.lsd=null;for(var a=0,b=this.frames;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 ia;var d;d=this.ya.get_bottom()?a.get_bottom():this.get_bottom();return a<=d?new ia:new ia(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+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__:ia,__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 cd=function(a){this._gif=a;null!=a&&(this._frames=a.frames,this.data=new hb(a.lsd.width,a.lsd.height,!0,0),this._loops=this._t=this._currFrame=0,this._maxLoops=this._gif.get_loops(),this.playing=!0,this.renderFrame(this._currGifFrame=a.frames[0]))};g["com.yagp.GifPlayer"]=cd;cd.__name__=["com","yagp","GifPlayer"];cd.rect=null;cd.point=null;cd.prototype={data:null, _gif:null,_currFrame:null,_currGifFrame:null,_prevData:null,_loops:null,_maxLoops:null,_frames:null,_t:null,playing:null,animationEndHandler:null,loopEndHandler:null,get_gif:function(){return this._gif},set_gif:function(a){if(null!=a){null!=this._prevData&&(this._prevData.dispose(),this._prevData=null);if(null==this.data||this.data.width!=a.lsd.width||this.data.height!=a.lsd.height)null!=this.data&&this.data.dispose(),this.data=new hb(a.lsd.width,a.lsd.height,!0,0);this._gif=a;this._frames=a.frames; this._loops=this._t=this._currFrame=0;this._maxLoops=this._gif.get_loops();this.data.fillRect(this.data.rect,0);this.renderFrame(this._currGifFrame=this._gif.frames[0])}else this._gif=null;return a},get_frame:function(){return this._currFrame},set_frame:function(a){if(null==this._gif)return a;a=this.cropIndex(a);this._t=0;if(this._currFrame==a)return a;if(this.cropIndex(this._currFrame+1)==a)return this.renderNext(),this._currFrame;this.data.fillRect(this.data.rect,0);null!=this._prevData&&(this._prevData.dispose(), this._prevData=null);this._currFrame=0;this._currGifFrame=this._frames[0];for(this.renderFrame(this._currGifFrame);this._currFrame!=a;)this.renderNext();return a},get_framesCount:function(){return null!=this._gif?this._frames.length:0},cropIndex:function(a){if(0>a){for(;0>a;)a=this._frames.length-a;return a}return a>=this._frames.length?a%this._frames.length:a},update:function(a){if(this.playing&&null!=this._gif){this._t+=1E3*a;for(var b=a=this._currFrame,c=this._loops;this._frames[b].delay<=this._t;)if(this._t-= this._frames[b].delay,b++,b==this._frames.length){if(null!=this.loopEndHandler){this._currFrame=b-1;this.loopEndHandler();if(this._currFrame!=b-1)return;this._currFrame=a}if(0!=this._maxLoops&&++c>=this._maxLoops){for(b--;this._currFrame!=b;)this.renderNext();this.playing=!1;this._loops=this._maxLoops;this._t=this._currGifFrame.delay;null!=this.animationEndHandler&&this.animationEndHandler();return}b=0}if(b!=a)for(b=this._maxLoops){this.playing=!1;this._currFrame--;this._t=this._currGifFrame.delay;null!=this.animationEndHandler&&this.animationEndHandler();return}this._currFrame=0;null!=this._prevData&&(this._prevData.dispose(),this._prevData=null);this.data.fillRect(this.data.rect,0)}else this.disposeFrame(this._currGifFrame);this._currGifFrame=this._frames[this._currFrame];this.renderFrame(this._currGifFrame)},fillBackground:function(a,b){this.data.fillRect(b,0)},__class__:cd, __properties__:{get_framesCount:"get_framesCount",set_frame:"set_frame",get_frame:"get_frame",set_gif:"set_gif",get_gif:"get_gif"}};var rb=function(a,b,c){null==c&&(c=!1);Ga.call(this);this.bitmapData=a;this.pixelSnapping=b;this.smoothing=c;null==b&&(this.pixelSnapping=De.AUTO)};g["openfl.display.Bitmap"]=rb;rb.__name__=["openfl","display","Bitmap"];rb.__super__=Ga;rb.prototype=r(Ga.prototype,{bitmapData:null,pixelSnapping:null,smoothing:null,__image:null,__getBounds:function(a,b){if(null!=this.bitmapData){var c= ia.__temp;c.setTo(0,0,this.bitmapData.width,this.bitmapData.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.bitmapData||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__getWorldTransform();c=this.__worldTransform.__transformInverseX(a,b);a=this.__worldTransform.__transformInverseY(a,b);return 0=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.__shader,this.pixelSnapping),null!=this.__mask&& null!=this.__maskGraphics&&0=this.delay&&(this.delay=100),this.userInput=d.userInput,this.disposalMethod=d.disposalMethod,d.transparentColor){this.transparentIndex=d.transparentIndex;for(var f=0,h=e.length;f=e.length&&(e.length=p+1),e.data.length=e.length&&(e.length=p+1),e.data.length=e.length&&(e.length=h+1),e.data.length=e.length&&(e.length=h+1),e.data.length>2;this.userInput=2==(b&2);this.transparentColor=1==(b&1);switch(c){case 0:this.disposalMethod= Wc.UNSPECIFIED;break;case 1:this.disposalMethod=Wc.NO_ACTION;break;case 2:this.disposalMethod=Wc.FILL_BACKGROUND;break;case 3:this.disposalMethod=Wc.RENDER_PREVIOUS;break;default:this.disposalMethod=Wc.UNDEFINED(c)}this.delay=a.bytes.get(a.position++)|a.bytes.get(a.position++)<<8;this.transparentIndex=a.bytes.get(a.position++);a.position++};g["com.yagp.structs.GraphicsControl"]=Rp;Rp.__name__=["com","yagp","structs","GraphicsControl"];Rp.prototype={disposalMethod:null,userInput:null,transparentColor:null, delay:null,transparentIndex:null,__class__:Rp};var Up=function(a,b){var c=a.bytes.get(a.position++);this.blockSize=a.bytes.get(a.position++)-1;this["byte"]=a.bytes.get(a.position++);this.bitsCount=8;this._input=a;var d=b.width*b.height,e;e=new Rb;e.data=Array(d);e.length=d;e.fixed=!0;this.pixels=e;d=1<=n.length&&(n.length=r+1),n.data.lengthf&&(f++,h=(1<>=a;this.bitsCount-=a;return c},__class__:Up};var Ps=function(){};g["com.yagp.structs.IExtension"]= Ps;Ps.__name__=["com","yagp","structs","IExtension"];var Tp=function(a){this.x=a.bytes.get(a.position++)|a.bytes.get(a.position++)<<8;this.y=a.bytes.get(a.position++)|a.bytes.get(a.position++)<<8;this.width=a.bytes.get(a.position++)|a.bytes.get(a.position++)<<8;this.height=a.bytes.get(a.position++)|a.bytes.get(a.position++)<<8;a=a.bytes.get(a.position++);this.localColorTable=128==(a&128);this.interlaced=64==(a&64);this.sorted=32==(a&32);this.localColorTableSize=2<<(a&7)};g["com.yagp.structs.ImageDescriptor"]= Tp;Tp.__name__=["com","yagp","structs","ImageDescriptor"];Tp.prototype={x:null,y:null,width:null,height:null,localColorTable:null,interlaced:null,sorted:null,localColorTableSize:null,__class__:Tp};var Qp=function(a){this.width=a.bytes.get(a.position++)|a.bytes.get(a.position++)<<8;this.height=a.bytes.get(a.position++)|a.bytes.get(a.position++)<<8;var b=a.bytes.get(a.position++);this.globalColorTable=128==(b&128);this.colorResolution=(b&112)>>>4;this.sorted=8==(b&8);this.globalColorTableSize=2<<(b& 7);this.backgroundColorIndex=a.bytes.get(a.position++);this.pixelAspectRatio=a.bytes.get(a.position++);this.pixelAspectRatio=0!=this.pixelAspectRatio?(this.pixelAspectRatio+15)/64:1};g["com.yagp.structs.LSD"]=Qp;Qp.__name__=["com","yagp","structs","LSD"];Qp.prototype={width:null,height:null,globalColorTable:null,colorResolution:null,sorted:null,globalColorTableSize:null,backgroundColorIndex:null,pixelAspectRatio:null,__class__:Qp};var Sp=function(a){a.position+=2;this.iterations=a.bytes.get(a.position++)| a.bytes.get(a.position++)<<8;a.position++};g["com.yagp.structs.NetscapeExtension"]=Sp;Sp.__name__=["com","yagp","structs","NetscapeExtension"];Sp.prototype={iterations:null,__class__:Sp};var Wp=function(){};g["ffcrypt.codes.Base16"]=Wp;Wp.__name__=["ffcrypt","codes","Base16"];Wp.encode=function(a){for(var b=a.length,c,d=[],e=0;ec.length?"0"+c:c}return d.join("")};Wp.decode=function(a){for(var b=0,c=a.length,d,e=[];ba.length)return null;try{var b=Wp.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__:Ui};var Qg=function(){};g["ffcrypt.codes.FFDecrypt"]=Qg;Qg.__name__=["ffcrypt","codes","FFDecrypt"];Qg.decrypt=function(a,b){if(16!=a.length)throw new q(Qg.ERROR_KEY);if(8>b.length||0!=b.length%4)throw new q(Qg.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,G=-1640531527*Math.floor(6+52/e);0!=G;){p=G>>>2&3;for(var g=e-1;0<=g;)f=d[0>>5^h<<2)+(h>>>3^f<<4)^(G^h)+(c[g&3^p]^f),h=d[g]-=f,g--;G-=-1640531527}return th.unpack(d,null)};Qg.check=function(a,b){if(16!=a.length)throw new q(Qg.ERROR_KEY);if(8>b.length||0!=b.length%4)throw new q(Qg.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(Ff.SECURITY_ERROR,k(this,this.securityErrorHandler));this.loader.addEventListener(Gf.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(D.lastException=b,b instanceof q&&(b=b.val),m.__instanceof(b,L))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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c, L))b=null;else throw c;}null==b?this.isLoad=!1:(this.isLoad=!0,this.loadType=b.dataFormat);null!=this.onComplete&&this.onComplete(this)},__class__:Zp};var ek=function(a,b,c,d,e){this.xmlString=null;this.progress=0;this.isError=this.isLoaded=!1;this.base=new Zp(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"]=ek;ek.__name__=["ffcrypt","samples","TSBookBinParse"];ek.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=null;else throw c;}null!=b&&(this.xmlString= (new Ui(ek.BinTestKey)).parse(b.data),ua.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__:ek};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!=R["63"]?b.setReserved("63","?"):b.h["63"]="?";null!=R["64"]?b.setReserved("64","@"):b.h["64"]="@";null!=R["65"]?b.setReserved("65","A"):b.h["65"]="A";null!=R["66"]?b.setReserved("66","B"):b.h["66"]= "B";null!=R["67"]?b.setReserved("67","C"):b.h["67"]="C";null!=R["68"]?b.setReserved("68","D"):b.h["68"]="D";null!=R["69"]?b.setReserved("69","E"):b.h["69"]="E";null!=R["70"]?b.setReserved("70","F"):b.h["70"]="F";null!=R["71"]?b.setReserved("71","G"):b.h["71"]="G";null!=R["72"]?b.setReserved("72","H"):b.h["72"]="H";null!=R["73"]?b.setReserved("73","I"):b.h["73"]="I";null!=R["74"]?b.setReserved("74","J"):b.h["74"]="J";null!=R["75"]?b.setReserved("75","K"):b.h["75"]="K";null!=R["76"]?b.setReserved("76", "L"):b.h["76"]="L";null!=R["77"]?b.setReserved("77","M"):b.h["77"]="M";null!=R["78"]?b.setReserved("78","N"):b.h["78"]="N";null!=R["79"]?b.setReserved("79","O"):b.h["79"]="O";null!=R["80"]?b.setReserved("80","P"):b.h["80"]="P";null!=R["81"]?b.setReserved("81","Q"):b.h["81"]="Q";null!=R["82"]?b.setReserved("82","R"):b.h["82"]="R";null!=R["83"]?b.setReserved("83","S"):b.h["83"]="S";null!=R["84"]?b.setReserved("84","T"):b.h["84"]="T";null!=R["85"]?b.setReserved("85","U"):b.h["85"]="U";null!=R["86"]? b.setReserved("86","V"):b.h["86"]="V";null!=R["87"]?b.setReserved("87","W"):b.h["87"]="W";null!=R["88"]?b.setReserved("88","X"):b.h["88"]="X";null!=R["89"]?b.setReserved("89","Y"):b.h["89"]="Y";null!=R["90"]?b.setReserved("90","Z"):b.h["90"]="Z";null!=R["91"]?b.setReserved("91","["):b.h["91"]="[";null!=R["92"]?b.setReserved("92","\\"):b.h["92"]="\\";null!=R["93"]?b.setReserved("93","]"):b.h["93"]="]";null!=R["94"]?b.setReserved("94","^"):b.h["94"]="^";null!=R["95"]?b.setReserved("95","_"):b.h["95"]= "_";null!=R["96"]?b.setReserved("96","`"):b.h["96"]="`";null!=R["97"]?b.setReserved("97","a"):b.h["97"]="a";null!=R["98"]?b.setReserved("98","b"):b.h["98"]="b";null!=R["99"]?b.setReserved("99","c"):b.h["99"]="c";null!=R["100"]?b.setReserved("100","d"):b.h["100"]="d";null!=R["101"]?b.setReserved("101","e"):b.h["101"]="e";null!=R["102"]?b.setReserved("102","f"):b.h["102"]="f";null!=R["103"]?b.setReserved("103","g"):b.h["103"]="g";null!=R["104"]?b.setReserved("104","h"):b.h["104"]="h";null!=R["105"]? b.setReserved("105","i"):b.h["105"]="i";null!=R["106"]?b.setReserved("106","j"):b.h["106"]="j";null!=R["107"]?b.setReserved("107","k"):b.h["107"]="k";null!=R["108"]?b.setReserved("108","l"):b.h["108"]="l";null!=R["109"]?b.setReserved("109","m"):b.h["109"]="m";null!=R["110"]?b.setReserved("110","n"):b.h["110"]="n";null!=R["111"]?b.setReserved("111","o"):b.h["111"]="o";null!=R["112"]?b.setReserved("112","p"):b.h["112"]="p";null!=R["113"]?b.setReserved("113","q"):b.h["113"]="q";null!=R["114"]?b.setReserved("114", "r"):b.h["114"]="r";null!=R["115"]?b.setReserved("115","s"):b.h["115"]="s";null!=R["116"]?b.setReserved("116","t"):b.h["116"]="t";null!=R["117"]?b.setReserved("117","u"):b.h["117"]="u";null!=R["118"]?b.setReserved("118","v"):b.h["118"]="v";null!=R["119"]?b.setReserved("119","w"):b.h["119"]="w";null!=R["120"]?b.setReserved("120","x"):b.h["120"]="x";null!=R["121"]?b.setReserved("121","y"):b.h["121"]="y";null!=R["122"]?b.setReserved("122","z"):b.h["122"]="z";null!=R["123"]?b.setReserved("123","{"):b.h["123"]= "{";null!=R["124"]?b.setReserved("124","|"):b.h["124"]="|";null!=R["125"]?b.setReserved("125","}"):b.h["125"]="}";null!=R["126"]?b.setReserved("126","~"):b.h["126"]="~";null!=R["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,G=0;G>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 lf=function(){};g["ffcrypt.utilities.UtilMemory"]=lf;lf.__name__=["ffcrypt","utilities","UtilMemory"];lf.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};lf.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};lf.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};lf.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}; lf.ReadInt8=function(a,b){return null==a||b+1>=a.length?null:[a[b]&255]};lf.WriteInt8=function(a,b,c){if(null==a||b+1>=a.length)return!1;a[b]=c&255;return!0};lf.ReadInt16=function(a,b){return null==a||b+2>=a.length?null:[a[b]&255,a[b+1]&255]};lf.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};lf.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]};lf.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};lf.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]};lf.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='+ t.string(this.bubbles)+" cancelable="+t.string(this.cancelable)+"]"},__class__:J};var $p=function(a,b,c,d){J.call(this,a);this.key=b;this.value=c;this.obj=d};g["first.author.SettingsEvent"]=$p;$p.__name__=["first","author","SettingsEvent"];$p.__super__=J;$p.prototype=r(J.prototype,{key:null,value:null,obj:null,__class__:$p});var mk=function(a){Qa.call(this,a)};g["first.author.SettingsDispatcher"]=mk;mk.__name__=["first","author","SettingsDispatcher"];mk.__super__=Qa;mk.prototype=r(Qa.prototype,{doAction:function(){this.dispatchEvent(new J(mk.ACTION))}, __class__:mk});var Z=function(){};g["first.author.Settings"]=Z;Z.__name__=["first","author","Settings"];Z.getInstance=function(){null==Z.instance&&(Z.instance=new Z);return Z.instance};Z.prototype={length:function(){var a=0;if(null!=Z.m_Settings)for(var b=Z.m_Settings.keys();b.hasNext();)b.next(),a+=1;return a},hasKey:function(a){return null!=Z.m_Settings&&1==Z.m_Settings.exists(a)?!0:!1},del:function(a){return this.del_Settings(a)},del_Settings:function(a){if(1==Z.m_Settings.exists(a)){var b=Z.m_Settings.get(a); Z.m_Settings.remove(a);return b}return null},get:function(a){return this.get_Settings(a)},get_Settings:function(a){return 1==Z.m_Settings.exists(a)?Z.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 L("\u914d\u7f6e\u5b9e\u4f8b\u952e\u540d\u4e0d\u80fd\u4e3a\u7a7a"));Z.m_Settings.set(a,b);b},__class__:Z};var oe=function(){if(null!=oe.instance)throw new q(new L("\u5355\u4f8b\u6a21\u5f0f"));this._param=se.getInstance(); this._pageHeight=this._pageWidth=this._pageCount=0};g["first.book.BookXmlClass"]=oe;oe.__name__=["first","book","BookXmlClass"];oe.getInstance=function(a){null==oe.instance&&(oe.instance=new oe,oe.instance._url=a,oe.instance._isLoaded=!1);return oe.instance};oe.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){D.lastException=c,c instanceof q&&(c=c.val),b=null}var d=T.getInstance();null==b?(this._isLoaded=!1,this._xml=null,d.dispatchEvent(new la(x.MAINXML_IOERROR,new na(this,a,null)))):(this._xml=b,0==this.updateXmlParameters()?(this._isLoaded=!1,this._xml=null,d.dispatchEvent(new la(x.MAINXML_FORMATERROR,new na(this,a,null)))):(this._isLoaded=!0,d.dispatchEvent(new la(x.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){D.lastException=c,c instanceof q&&(c=c.val),b=null}if(null==b)return!1;a=b.getAttrString(K.PageCount);null!=a&&""!=a?this._pageCount=t.parseInt(a):a=b.getAttrString(K.PageCount2);null!=a&&""!=a&&(this._pageCount=t.parseInt(a));a=b.getNode(K.Info);if(null!=a){var d=new Ma(a),a=d.getNodes(K.ParamItem);if(0b.priority?-1:1};Ac.__super__=E;Ac.prototype=r(E.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(pa.current.stage)},getStageHitRectangle:function(){return this.getBounds(pa.current.stage)},setMoveEvtMode:function(a){null==a&&(a=!1);var b=T.getInstance();this._moveEvtMode=a;1==this._moveEvtMode?(b.addEventListener(x.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove)),this.addEventListener(A.MOUSE_MOVE,k(this, this.onExtMouseMove))):(b.removeEventListener(x.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=T.getInstance();this._userHitMode=a;1==this._userHitMode?b.addEventListener(x.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove)):(b.removeEventListener(x.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=T.getInstance();this._stageHitPoint=a;1==this._stageHitPoint?b.addEventListener(x.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove)):(b.removeEventListener(x.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,Ac))try{c=m.__cast(this,Ac)}catch(d){if(D.lastException= d,d instanceof q&&(d=d.val),m.__instanceof(d,L))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,Ac))try{c=m.__cast(this,Ac)}catch(d){if(D.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,L))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){Rg.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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,Ac))try{c=m.__cast(this,Ac)}catch(d){if(D.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,L))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= T.getInstance();this._userHitMode=a;1==this._userHitMode?b.addEventListener(x.MAINSTAGE_MOUSECLICK,this,k(this,this.onCenterStageMouseClick)):b.removeEventListener(x.MAINSTAGE_MOUSECLICK,this,k(this,this.onCenterStageMouseClick))},setStageHitClickMode:function(a){null==a&&(a=!1);var b=T.getInstance();this._stageHitClick=a;1==this._stageHitClick?b.addEventListener(x.MAINSTAGE_MOUSECLICK,this,k(this,this.onCenterStageMouseClick)):b.removeEventListener(x.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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 ga),this._extEventMap.exists(a)){a=this._extEventMap.get(a);if(null!=a&&0=a.length)&&null!=this._extEventMap){var d=T.getInstance();null!=this._extEventMap&&a!=A.MOUSE_OVER&&a!=A.MOUSE_OUT||d.removeEventListener(x.MAINSTAGE_MOUSEMOVE,this,k(this,this.onCenterStageMouseMove));d=this._extEventMap.get(a);if(null!=d){for(var e=0,f=d.length;e=c.length&&this._extEventMap.remove(b)}}this._extEventMap.iterator().hasNext()||(this._extEventMap=null)}},destroy:function(){this.removeAllEventListener()},__class__:Ac});var W=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;Ac.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"]=W;W.__name__=["first","display","BaseSprite"];W.__super__=Ac;W.prototype=r(Ac.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 ia(a.x,a.y,this._width,this._height)},getUserHitRectangle:function(){var a=this.localToGlobal(new Q(this.get_x(),this.get_y()));return new ia(a.x,a.y,this._width,this._height)},getPointByParentSprite:function(a){if(null==a||m.__instanceof(a,W))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){Ac.prototype.onAddedToStage.call(this,a);this.onAddedToStageCall(a);this.onStageResize(null)},registerEventListener:function(){},onAddedToStageCall:function(a){},onRemoveFromStage:function(a){Ac.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__:Wi});var bi= function(a,b,c,d,e,f,h){null==a&&(a=!1);this._scrollTime=.1;Wi.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"]=bi;bi.__name__=["first","drag","DragListScroll"];bi.__super__=Wi;bi.prototype=r(Wi.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(){Z.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;Z.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;Z.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;Z.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){Z.getInstance();var b=0,c=0,c=this.getStepLineOffset(),d=this.wantToShowStepVisible();0==this._isVertical?(b=t["int"](this._width-2*(d?this.getStepHeight()+ c:0)),c=t["int"](this._height-0*(d?this.getStepHeight()+c:0)),b>=this._contentWidth&&(b=this._contentWidth)):(b=t["int"](this._width-0*(d?this.getStepHeight()+c:0)),c=t["int"](this._height-2*(d?this.getStepHeight()+c:0)),c>=this._contentHeight&&(c=this._contentHeight));return new ia(a.x,a.y,b,c)},getTurnScrollOffset:function(a){var b;Z.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(){Z.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(){Z.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,la)}catch(e){if(D.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,L))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(D.lastException=h,h instanceof q&&(h=h.val),m.__instanceof(h,L))f=null;else throw h;}var p;try{p=m.__cast(d._data._event,A)}catch(G){if(D.lastException=G,G instanceof q&&(G=G.val),m.__instanceof(G,L))p=null;else throw G;}var g;try{g=m.__cast(d._data._trigger,vb)}catch(k){if(D.lastException= k,k instanceof q&&(k=k.val),m.__instanceof(k,L))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){Z.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__:fd});var Xi=function(a,b,c,d,e,f,h){null==a&&(a=!1);this._listItemShowMode="Text";this._listItemWidth=this._listItemHeight=0;fd.call(this,a,b,c,d,e,f,h);this._isVertical=!0;this._isShowStep= !1;this._listItemsArray=[]};g["first.bookmark.BookMarkBase"]=Xi;Xi.__name__=["first","bookmark","BookMarkBase"];Xi.__super__=fd;Xi.prototype=r(fd.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 am(a,this.getFrameHeight(),this.getFrameHeight(),this._isVertical)},getLineSpace:function(){return 1},getLeftSpace:function(){return fd.prototype.getLineSpace.call(this)}, getRightSpace:function(){return fd.prototype.getLineSpace.call(this)},getItemWidth:function(){return this._listItemWidth|0},getItemHeight:function(){return this._listItemHeight|0},getFrameHeight:function(){Z.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 L("\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__:Xi});var Hf=function(){this._bookMarks=null;this._bookMarks=[]};g["first.bookmark.BookMarkClass"]=Hf;Hf.__name__=["first","bookmark","BookMarkClass"];Hf.getInstance=function(){null==Hf.instance&&(Hf.instance= new Hf);return Hf.instance};Hf.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=Hf.getInstance().getCurrentBookMarkList(),b=this._scrollRect;if(null!=a&&1<=a.length){this.addTextItemWithNodeChildValue(new nk(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 bm(a,b,c,d,e,f,h),p.set_textColor(V.ControlFontColor()),p.set_textFontName(V.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 L("\u4e0d\u8981\u8c03\u7528\u8fd9\u4e2a\u65b9\u6cd5!")); },__class__:mf});var va=function(a,b,c,d,e,f,h,p,G,g,k){null==k&&(k=12303291);null==g&&(g=13421772);null==G&&(G=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;W.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= G;this.realMask=new E;this.maskSpr=new E;this.addChild(this.maskSpr);this.drawShape();this.maskSpr.addChild(this.realMask)};g["first.display.RectSprite"]=va;va.__name__=["first","display","RectSprite"];va.__super__=W;va.prototype=r(W.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){W.prototype.resize.call(this,a,b);this.drawShape();this.set_scaleX(this.set_scaleY(1))},onAddedToStageCall:function(a){this.drawShape();W.prototype.onAddedToStageCall.call(this,a)},onRemoveFromStageCall:function(a){W.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=Sg.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&&mf.prototype.doDragListStepMouseDown.call(this,a),null!=a&&a==this._rightStep&&mf.prototype.doDragListStepMouseDown.call(this,a))},onBookMarkStepMouseUp:function(a){null!=a&&null!=a._data&&this.getFixStepHandler(a._data._trigger)},__class__:dm});var Mc=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;W.call(this,b,c);var h=null,h=Z.getInstance(); this._isLeft=a;this._isVertical=d;this._isDown=!1;this._bitmapUrl=null;y.initParameters();this._backSprite=new va(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(y.FILLCOLOR);this._backSprite._fillAlpha=h.get(y.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(y.ROUNDWIDTH);this._downSprite._roundHeight=h.get(y.ROUNDHEIGHT);this._downSprite._alpha=.8;this.addChild(this._downSprite);this._iconWidth=e;this._iconHeight=f;this._iconSprite=new W(this._iconWidth,this._iconHeight);this.addChild(this._iconSprite);this._iconSprite.enable_mouse(!1);this.set_iconImage(this.getCurrentResetIconName());Ra.getInstance().hasKey(C.ThumbControlColor)&&(a=V.ThumbBackgroundColor(), this._backSprite._fillStyle=xa.scale(a,.5));this._backSprite.set_isFill(h.get(mb.ISSHOWSTEP))};g["first.drag.DragListStep"]=Mc;Mc.__name__=["first","drag","DragListStep"];Mc.__super__=W;Mc.prototype=r(W.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);W.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=T.getInstance();a.addEventListener(x.MOUSEOVER_DOWN,this,k(this,this.onBaseSpriteStepDown));a.addEventListener(x.MOUSEOVER_UP, this,k(this,this.onBaseSpriteStepUp));this._downSprite.setMoveEvtMode(!0)},onRemoveFromStageCall:function(a){a=T.getInstance();a.removeEventListener(x.MOUSEOVER_DOWN,this,k(this,this.onBaseSpriteStepDown));a.removeEventListener(x.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(D.lastException=c,c instanceof q&& (c=c.val),m.__instanceof(c,L))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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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&&T.getInstance().dispatchEvent(new la(x.BASESPRITESTEP_DOWN,new na(this,null,a._data.get_event())))},baseSpriteStepUpEvent:function(a){null!=a&&null!=a._data&&a._data._trigger==this._downSprite&&T.getInstance().dispatchEvent(new la(x.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,rb)}catch(f){if(D.lastException=f,f instanceof q&&(f=f.val),m.__instanceof(f,L))e=null;else throw f;}null!=e&&b._bitmapUrl==a&&(0!=b._iconSprite.get_numChildren()&&b._iconSprite.removeAllChildren(),b._bitmap=new rb(e.bitmapData.clone()),null!=b._bitmap&&b._iconSprite.addChild(b._bitmap))};null!=a&&""!=a&&hd.getInstance().getBitmapImage(a,c)},__class__:Mc});var am=function(a,b,c,d,e,f){null==f&&(f=32);null==e&&(e=32);null==d&&(d=!1);Mc.call(this,a,b,c,d,e,f);this._listStepWidth= b;this._listStepHeight=c};g["first.bookmark.BookMarkStep"]=am;am.__name__=["first","bookmark","BookMarkStep"];am.__super__=Mc;am.prototype=r(Mc.prototype,{_listStepWidth:null,_listStepHeight:null,resize:function(a,b){Mc.prototype.resize.call(this,a,b);this._listStepWidth=a;this._listStepHeight=b},getCurrentResetIconName:function(){return Mc.prototype.getCurrentResetIconName.call(this)},baseSpriteStepDownEvent:function(a){null!=a&&null!=a._data&&a._data._trigger==this._downSprite&&T.getInstance().dispatchEvent(new la(x.BOOKMARKSTEP_DOWN, new na(this,null,a._data.get_event())))},baseSpriteStepUpEvent:function(a){null!=a&&null!=a._data&&a._data._trigger==this._downSprite&&T.getInstance().dispatchEvent(new la(x.BOOKMARKSTEP_UP,new na(this,null,a._data.get_event())))},__class__:am});var Qs=function(){};g["first.color.ColorConst"]=Qs;Qs.__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=t["int"](Math.min(c[3],d[3])),f=t["int"](Math.min(c[0],d[0])),h=t["int"](Math.min(c[1],d[1])),c=t["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=t["int"](Math.max(c[3],d[3])),f=t["int"](Math.max(c[0],d[0])),h=t["int"](Math.max(c[1], d[1])),c=t["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=t["int"](Math.max(c[3],d[3])),f=t["int"](Math.min(c[0]+d[0],255)),h=t["int"](Math.min(c[1]+d[1],255)),c=t["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=t["int"](Math.max(c[3],d[3])),f=t["int"](Math.max(c[0]-d[0],0)),h=t["int"](Math.max(c[1]-d[1],0)),c=t["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=t["int"](Math.max(Math.min(c*b,255),0)),d=t["int"](Math.max(Math.min(d*b,255),0)),e=t["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=t["int"](Math.max(Math.min(d+(e-d)*c,255),0));f=t["int"](Math.max(Math.min(f+ (e-f)*c,255),0));a=t["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,G){null==G&&(G=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+G|0;b=t["int"](Math.max(Math.min(g*b+f|0,255),0));c=t["int"](Math.max(Math.min(c,255),0));d=t["int"](Math.max(Math.min(d,255),0));e=t["int"](Math.max(Math.min(e, 255),0));return xa.argbMake(b,c,d,e)};var Yr=function(){};g["first.config.InstallThickType"]=Yr;Yr.__name__=["first","config","InstallThickType"];var di=function(){};g["first.config.InstallHotSpotType"]=di;di.__name__=["first","config","InstallHotSpotType"];var Zr=function(){};g["first.config.InstallBook"]=Zr;Zr.__name__=["first","config","InstallBook"];Zr.getHotSpotWidthTypeValue=function(a,b){if(0==a||0==b)return 50;var c=50,c=V.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 V=function(){};g["first.config.InstallConfig"]=V;V.__name__=["first","config","InstallConfig"];V.AppLogoIcon=function(a){null==a&&(a="");var b=null;return b=sa.parseStringConfig(C.BookLogoSettings,a)};V.AppLogoLinkURL= function(a){null==a&&(a="");var b=null;return b=sa.parseStringConfig(C.BookLogoLinkURL,a)};V.EnableFlipSound=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableFlipSound,a)};V.EnableSoundButton=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableSoundButton,a)};V.BackgroundSoundURL=function(a){null==a&&(a="");var b=null;return b=sa.parseStringConfig(C.SoundFileURL,a)};V.BackgroundSoundLoop=function(a){null==a&&(a=-1);var b=null;return b=sa.parseIntConfig(C.SoundFileLoops, a)};V.EnableFullButton=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableFullButton,a)};V.EnableFlipNavButton=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableFlipNavButton,a)};V.EnableZoomInButton=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableZoomInButton,a)};V.MinimumZoomWidth=function(a){null==a&&(a=0);var b=null;return b=sa.parseIntConfig(C.MinimumZoomWidth,a)};V.MaximumZoomWidth=function(a){null==a&&(a=16777215); var b=null;return b=sa.parseIntConfig(C.MaximumZoomWidth,a)};V.EnableSearchButton=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableSearchButton,a)};V.EnableThumbnailsButton=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableThumbnailsButton,a)};V.EnableBookmarkButton=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableBookmarkButton,a)};V.EnableSocialShareButton=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableSocialShareButton, a)};V.EnableSelectTextButton=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableSelectTextButton,a)};V.LanguageSetting=function(a){null==a&&(a="English");var b=null;return b=sa.parseStringConfig(C.LanguageSetting,a)};V.LanguageSwitchable=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.LanguageSwitchable,a)};V.EnableAutoButton=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.EnableAutoButton,a)};V.AutoFlipInterval=function(a){null==a&& (a=3);var b=null;return b=sa.parseFloatConfig(C.AutoFlipInterval,a)};V.AutoFlipLoopCount=function(a){null==a&&(a=0);var b=null;return b=sa.parseIntConfig(C.AutoFlipLoops,a)};V.AutoFlipFromStart=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.AutoFlipFromStart,a)};V.IsRightToLeft=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.IsRightToLeft,a)};V.IsStartOpenBook=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.StartWithDoublePage,a)};V.IsHardCoverStyle= function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.IsHardCoverStyle,a)};V.ThicknessWidthType=function(a){null==a&&(a="None");var b=null;return b=sa.parseStringConfig(C.PagesThickness,a)};V.HotSpotWidthType=function(a){null==a&&(a="Normal");var b=null;return b=sa.parseStringConfig(C.CornerFlipEffect,a)};V.AlwaysInTheCenter=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.AlwaysInTheCenter,a)};V.ShowCornerFlipEffect=function(a){null==a&&(a=!0);var b=null;return b= sa.parseBoolConfig(C.ShowCornerFlipEffect,a)};V.MouseTracingEffect=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.MouseTracingEffect,a)};V.PageFlipTweenTime=function(a){null==a&&(a=.6);var b=null;return b=sa.parseFloatConfig(C.PageFlipTweenTime,a)};V.MouseWheelToTurnPage=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.MouseWheelToTurnPage,a)};V.PageBackgroundColor=function(a){null==a&&(a=16777215);var b=null;return b=sa.parseIntConfig(C.PageBackgroundColor, a)};V.PageAlginVertical=function(a){null==a&&(a="Center");var b=null;return b=sa.parseStringConfig(C.PageAlginVertical,a)};V.PageAlginHorizontal=function(a){null==a&&(a="In");var b=null;return b=sa.parseStringConfig(C.PageAlginHorizontal,a)};V.PageNumberColor=function(a){null==a&&(a=0);var b=null;return b=sa.parseIntConfig(C.PageNumberColor,a)};V.ButtonIconColor=function(a){null==a&&(a=16777215);var b=null;return b=sa.parseIntConfig(C.ButtonIconColor,a)};V.ControlBarColor=function(a){null==a&&(a= 16777215);var b=null;return b=sa.parseIntConfig(C.ControlBarColor,a)};V.ControlFontColor=function(a){null==a&&(a=0);var b=null;return b=sa.parseIntConfig(C.ControlFontColor,a)};V.ControlFontName=function(a){null==a&&(a="Tahoma");var b=null,b=sa.parseStringConfig(C.ControlFontName,a);if(null==b||""==b)b="Tahoma";return b};V.FlipNavIconColor=function(a){null==a&&(a=16777215);var b=null;return b=sa.parseIntConfig(C.FlipButtonIconColor,a)};V.IsShowThumbnails=function(a){null==a&&(a=!0);var b=null;return b= sa.parseBoolConfig(C.IsShowThumbnails,a)};V.ThumbBackgroundColor=function(a){null==a&&(a=16777215);var b=null;return b=sa.parseIntConfig(C.ThumbControlColor,a)};V.BackgroundFileUrl=function(a){null==a&&(a="");var b=null;return b=sa.parseStringConfig(C.BackgroundFile,a)};V.BackgroundPosition=function(a){null==a&&(a="");var b=null;return b=sa.parseStringConfig(C.BackgroundPosition,a)};V.BackgroundAlpha=function(a){null==a&&(a=1);var b=null;return b=sa.parseFloatConfig(C.BackgroundAlpha,a)};V.BackgroundEndColor= function(a){null==a&&(a=16777215);var b=null;return b=sa.parseIntConfig(C.BackgroundEndColor,a)};V.BackgroundBeginColor=function(a){null==a&&(a=16777215);var b=null;return b=sa.parseIntConfig(C.BackgroundBeginColor,a)};V.BackgroundRotation=function(a){null==a&&(a=0);var b=null;return b=sa.parseIntConfig(C.BackgroundRotation,a)};V.TotalPageCaption=function(a){null==a&&(a="");var b=null;return b=sa.parseStringConfig(C.TotalPageCaption,a)};V.PageNumberCaption=function(a){null==a&&(a="");var b=null;return b= sa.parseStringConfig(C.PageNumberCaption,a)};V.IsUserSmallMode=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.UseMinimeStyle,a)};V.MinimeStyleWidth=function(a){null==a&&(a=640);var b=null;return b=sa.parseFloatConfig(C.MinimeStyleWidth,a)};V.MinimeStyleHeight=function(a){null==a&&(a=480);var b=null;return b=sa.parseFloatConfig(C.MinimeStyleHeight,a)};V.LinkOverColor=function(a){null==a&&(a=0);var b=null;return b=sa.parseIntConfig(C.LinkOverColor,a)};V.LinkOverAlpha=function(a){null== a&&(a=3);var b=null;return b=sa.parseFloatConfig(C.LinkOverAlpha,a)};V.LinkOpenedWindow=function(a){null==a&&(a="Blank");var b=null;return b=sa.parseStringConfig(C.LinkOpenedWindow,a)};V.LinkEnableWhenZoom=function(a){null==a&&(a=!0);var b=null;return b=sa.parseBoolConfig(C.LinkEnableWhenZoom,a)};V.GoogleAnalyticsID=function(a){null==a&&(a="");var b=null;return b=sa.parseStringConfig(C.GoogleAnalyticsID,a)};var C=function(){};g["first.config.InstallKey"]=C;C.__name__=["first","config","InstallKey"]; var sa=function(){};g["first.config.InstallUtils"]=sa;sa.__name__=["first","config","InstallUtils"];sa.isEmpty=function(a){return null!=a&&"string"!=typeof a||null==a||""==a||0>=a.length?!0:!1};sa.getString=function(a,b){return null==a?b:(a|0)===a||"boolean"==typeof a||"number"==typeof a?t.string(a):"string"==typeof a?a:""+t.string(a)};sa.parseInt=function(a,b){null==b&&(b=0);if(null==a||""==a||"string"!=typeof a)return b;try{var c=t.parseInt(a);if(null!=a&&null!=c)return c}catch(d){if(D.lastException= d,d instanceof q&&(d=d.val),!m.__instanceof(d,L))throw d;}return b};sa.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(D.lastException=d,d instanceof q&&(d=d.val),!m.__instanceof(d,L))throw d;}return b};sa.parseBool=function(a,b){null==b&&(b=!1);if(null==a||""==a||"string"!=typeof a)return b;try{if("1"==a.charAt(0)&&1==sa.parseInt(a,-1))return!0;var c=a.toUpperCase(),c=X.trim(c);if(0<=c.indexOf("YES")|| 0<=c.indexOf("SHOW")||0<=c.indexOf("ENABLE")||0<=c.indexOf("TRUE"))return!0}catch(d){D.lastException=d;d instanceof q&&(d=d.val);if(m.__instanceof(d,L))return b;throw d;}return!1};sa.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?t["int"](c):null!=c&&"string"==typeof c?sa.parseInt(c):null==c?b:c};sa.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?sa.parseBool(c):null==c?b:c};sa.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?sa.parseFloat(c):null==c?b:c};sa.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?t.string(c):null!=c&&"boolean"==typeof c?t.string(c):null!=c&&"number"==typeof c?t.string(c):null==c?b:t.string(c)};sa.getItemTypeValue=function(a){if(null==a)return null;var b=Ua.getAttrString(a,ca.KeyType);null!=b&&0 a||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 L("\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 Rs=function(){};g["first.config.ParametersXml"]=Rs;Rs.__name__=["first","config","ParametersXml"];var em=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;W.call(this);this._width=a;this._height=b;this._backSprite=this};g["first.display.GradualSprite"]=em;em.__name__=["first","display","GradualSprite"];em.degreesToRadians=function(a){return Math.PI/180*a};em.__super__=W;em.prototype=r(W.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 Af(.2,.2,.2,1,a,b,c,1))},__class__:em});var ue=function(){};g["first.display.ImageFillMode"]=ue;ue.__name__=["first","display","ImageFillMode"];var fm=function(a){va.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),G=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*G|0;break;case "top right":b=0;a=this._width-0-G|0;break;case "middle left":a=0;b=g-.5*b|0;break;case "middle center":a=a-.5*G|0;b=g-.5*b|0;break;case "middle right":a=this._width-0-G|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*G|0;b=this._height-0-b|0;break;case "bottom right":a=this._width-0-G|0;b=this._height-0-b|0;break;default:a=a-.5*G|0,b=g-.5*b|0}G=new ka;c==ue.Fill?(G.translate(a,b),G.scale(1,1)):c==ue.ScaleToFit?(G.translate(a,b),c=Gd.scaleWidth(d,f),e=Gd.scaleHeight(e,h),G.scale(c,e)):(G.translate(a,b),G.scale(p,p));e=this._bitmapFillMode==ue.Fill;this.get_graphics().beginBitmapFill(this._bitmap.bitmapData,G,e,!0);this.get_graphics().drawRect(0,0,this._width,this._height);this.get_graphics().endFill()}}}, __class__:fm});var Zi=function(a){this._scaleAlginHor=this._scaleAlginVer="center";this._scaleWidth=this._scaleHeight=0;this._scaleRadio=1;va.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=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;d a||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=ia.__temp;this.__textEngine.bounds.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height)},__getCursor:function(){return this.__textEngine.selectable?Xa.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!=Da.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,Ga.__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 Gc("
","g")).replace(a,"\n");a=(new Gc("
","g")).replace(a,"\n");var b=a.split("","g")).replace(a,""),1");if(-1")+1,h=e,p=this.__textFormat.clone(), G=d.indexOf("face="),g=d.indexOf("color="),k=d.indexOf("size=");if(-1","g")).replace(f,"");this.__textEngine.textFormatRanges.push(new aj(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 t["int"](Math.min(this.__caretIndex,this.__selectionIndex))},get_selectionEndIndex:function(){return t["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 Ub=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;Z.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(Da.LEFT);this.set_autoSize(Da.NONE);this.del_positionRorB();ok.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"]=Ub;Ub.__name__=["first","face","BaseLabel"];Ub.__super__=ge;Ub.prototype=r(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,Ub)}catch(b){D.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__:Ub,__properties__:r(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 fq=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"]=fq;fq.__name__=["first","face","BaseTextFormat"];fq.prototype={_type:null,_format:null,_beginIndex:null,_endIndex:null,__class__:fq};var gm=function(a,b,c){null==b&&(b=0);null==a&&(a=0);Ub.call(this,a,b,c);Z.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(Da.NONE);this.set_autoSize(Da.LEFT)};g["first.face.BaseTextField"]=gm;gm.__name__=["first","face","BaseTextField"];gm.__super__=Ub;gm.prototype=r(Ub.prototype,{resize:function(a,b){Ub.prototype.resize.call(this,a,b)},onAddedToStageCall:function(a){Ub.prototype.onAddedToStageCall.call(this,a);this.set_size(0==this._width?120:this._width,0==this._height?22:this._height)},__class__:gm});var Tg=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;W.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 E;this.addChild(this._flipSprites);this._layerSprites=new E;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 gq(this);this._hsContainer=new E;this.addChild(this._hsContainer);this._hsSprites=new ga;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"]=Tg;Tg.__name__=["first","flipbook","FlipBase"];Tg.__super__=W;Tg.prototype=r(W.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!=Z.getInstance().get(y.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){D.lastException= e,e instanceof q&&(e=e.val)}}},playSoundScale:function(){var a=Yb.getInstance();if(0!=Z.getInstance().get(y.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){D.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 W,b=new W;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 W;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 va(10,10,65280,!0),this.addChild(this._circlePointTL),this._circlePointTL._isEllipse=!1,this._circlePointTR=new va(10,10,255,!0),this.addChild(this._circlePointTR), this._circlePointTR._isEllipse=!1,this._circlePointBL=new va(10,10,255,!0),this.addChild(this._circlePointBL),this._circlePointBL._isEllipse=!1,this._circlePointBR=new va(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 va(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 W,b=new W;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 W,b=null,b=new va(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 va(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 hm;this._shadowFlip.set_height(Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight)+10);this._shadowRect=new im;this._shadowRect.set_height(Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight)+10);this._shadowRectMasker=new va(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 jm;this._shadowBottom.set_height(Math.sqrt(this._pageWidth*this._pageWidth+this._pageHeight*this._pageHeight)+10);this._shadowBottomMasker=new va(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 Ib(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){W.prototype.onAddedToStageCall.call(this,a);this.stage.addEventListener(A.MOUSE_UP,k(this,this.onStageMouseUp));this.stage.doubleClickEnabled=!0},onRemoveFromStage:function(a){W.prototype.onRemoveFromStage.call(this,a);this.get_graphics().clear()},onRemoveFromStageCall:function(a){this.stage.removeEventListener(A.MOUSE_UP,k(this,this.onStageMouseUp));W.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){T.getInstance().dispatchEvent(new la(x.FLIPBOOK_WILLCHANGE,new na(this,a,null)))},sendPageDidChangedEvent:function(a){T.getInstance().dispatchEvent(new la(x.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 $a;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, Ib)&&(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(Bd.get_easeOut()),S.tween(this._fp,this._flipTweenTime/2,{y:c.get_y()}).ease(bj.get_easeOut()).onComplete(a);else S.tween(this._fp,this._flipTweenTime/2,{x:c.get_x(),y:c.get_y()}).ease(Bd.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(Bd.get_easeOut()),S.tween(this._shadowRect,.1,{alpha:.8,visible:!0}).ease(Bd.get_easeOut()),S.tween(this._shadowBottom,.1,{alpha:.3,visible:!0}).ease(Bd.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(Bd.get_easeOut());S.tween(this._shadowFlip,this._shadowHideTweenTime, {alpha:0,visible:!1}).ease(Bd.get_easeOut());S.tween(this._shadowBottom,this._shadowHideTweenTime,{alpha:0,visible:!1}).ease(Bd.get_easeOut());null!=this._currentPaper&&this._currentPaper.showFill(!1);this.showTestObjects(!1)},sendFadeInShadowEvent:function(){T.getInstance().dispatchEvent(new la(x.FLIPBOOK_WILLFADEIN,new na(this,this._hotSpotToIndex,null)))},sendFadeOutShadowEvent:function(){T.getInstance().dispatchEvent(new la(x.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=t["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,Ib)&&(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,Ib)&&(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,Ib)&&(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,Ib)||(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,Ib))this.onHotSpotMouseOver(a)},onHotSpotMouseOver:function(a){var b="",c=0;this.getCurrentPageIndex();this.getTotalPageCount();this._isReady&&!this._isAuto&&(null!=a&&m.__instanceof(a.target,Ib)&&(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,Ib)||(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,Ib)},onHotSpotMouseOut:function(a){var b="",c=null,d=this.getCurrentPageIndex();this._isReady&&!this._isAuto&&(null!=a&&m.__instanceof(a.target,Ib)&&(this.fixHotSpotEvent(a),b=this._hotSpotCor,c=this._hotSpotPaper),!this._isDown&&this._isOver&& 0!=this.fixTargetByCor(b)&&m.__instanceof(a.target,Ib)&&(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(Bd.get_easeOut()),S.tween(this._fp,this._flipTweenTime/2,{y:e.get_y()}).ease(bj.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(Bd.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(nf.bFirst)nf.bFirst=!nf.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=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));T.getInstance().dispatchEvent(new la(x.FLIPBOOK_WILLCHANGE, new na(this,b,null)))},sendPageDidChangedEvent:function(a){var b=a;0!=this._isRightToLeft&&(b=this.getRightToLeftPageIndex(a));T.getInstance().dispatchEvent(new la(x.FLIPBOOK_DIDCHANGED,new na(this,b,null)))},gotoPage:function(a){0==this._isRightToLeft?nf.prototype.gotoPage.call(this,a):this.gotoFixRealPage(a)},gotoFixRealPage:function(a){0!=this._isRightToLeft&&(a=this.getRightToLeftPageIndex(a));nf.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=Hb.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=Hb.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=Hb.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(); If.prototype.sendPageWillChangeEvent.call(this,a);b.cleanProgramIsSelectTextMode()},sendPageDidChangedEvent:function(a){var b=lb.getInstance();If.prototype.sendPageDidChangedEvent.call(this,a);b.cleanProgramIsSelectTextMode()},onAddedToStageCall:function(a){If.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));T.getInstance().addEventListener(x.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));pa.current.stage.removeEventListener(A.MOUSE_MOVE,k(this,this.onStageMouseMove));pa.current.stage.removeEventListener(A.MOUSE_DOWN, k(this,this.onStageMouseDown));T.getInstance().removeEventListener(x.SECURITYLOGIN_UPDATE,this,k(this,this.onSecurityLoginUpdate));If.prototype.onRemoveFromStageCall.call(this,a)},onSecurityLoginUpdate:function(a){null!=a&&null!=a._data&&(this.setCurrentPageIndex(this._currentPageIndex),this.setCurrentStateToPageAdditions())},onStageMouseUp:function(a){If.prototype.onStageMouseUp.call(this,a)},onStageMouseMove:function(a){this._stageCachedX=a.stageX;this._stageCachedY=a.stageY;T.getInstance().dispatchEvent(new la(x.MAINSTAGE_MOUSEMOVE, new na(this,null,a)))},onStageMouseDown:function(a){this._stageCachedX=a.stageX;this._stageCachedY=a.stageY;T.getInstance().dispatchEvent(new la(x.MAINSTAGE_MOUSECLICK,new na(this,null,a)))},getStageCorByPoint:function(a){var b=null,c=Ib.HS_WIDTH,d=Ib.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,fi)||!(null==a.target||m.__instanceof(a.target,W)||m.__instanceof(a.target,Bb)||m.__instanceof(a.target,fj))||iq.isMyBlood(a.target,rh)||(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__:of});var gq=function(a){this._this=a;this._flip=this;this._data=se.getInstance()};g["first.flipbook.GetHandler"]=gq;gq.__name__=["first","flipbook","GetHandler"];gq.prototype={_this:null,_flip:null,_data:null,testPageFunc:function(a){var b;try{b=m.__cast(a,$a)}catch(c){if(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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,$a)}catch(c){if(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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__:gq};var Ib=function(a,b,c){this._hsX=this._hsY=0;Ac.call(this);this._hsCor=c;this.set_alpha(.2);this.rectHotSpot(c); this._pageWidth=a;this._pageHeight=b;Ib.HS_WIDTH=Math.max(80,b/6|0);Ib.HS_WIDTH=Math.min(Ib.HS_WIDTH,a/2|0);Ib.HS_WIDTH=Zr.getHotSpotWidthTypeValue(a,b);this.set_width(Ib.HS_WIDTH);this.set_height(Ib.HS_WIDTH);this.resize(a,b)};g["first.flipbook.HotSpot"]=Ib;Ib.__name__=["first","flipbook","HotSpot"];Ib.__super__=Ac;Ib.prototype=r(Ac.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=Ib.HS_WIDTH,e=Ib.HS_WIDTH;switch(a){case "TL":c=b=0;break; case "TR":b=-Ib.HS_WIDTH;c=0;break;case "BL":b=0;c=-Ib.HS_WIDTH;break;case "BR":b=-Ib.HS_WIDTH,c=-Ib.HS_WIDTH}this.get_graphics().beginFill(16711680,.04);this.get_graphics().drawRect(b,c,d,e);this.get_graphics().endFill()},__class__:Ib});var jq=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"]=jq;jq.__name__=["first","flipbook","LimitPoint"];jq.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.x< this._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);this._point.x>this._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__:jq,__properties__:{get_point:"get_point",set_O:"set_O",get_O:"get_O"}};var gj=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;W.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 va(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 W(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"]=gj;gj.__name__=["first","flipbook","PageGotoBar"];gj.__super__=W;gj.prototype=r(W.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=V.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){W.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),G=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),G.x=b-d,G.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),G.x=0+d,G.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(G.x,G.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(G.x,G.y), a.lineTo(l.x,l.y))}},__class__:xh});var pk=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;W.call(this);this._isLeft=a;this._barShape=new E;this.addChild(this._barShape);this._barShapeMask=new E;this.addChild(this._barShapeMask);this._arrowSprite=new E;this.addChild(this._arrowSprite);this._iconWidth= b;this._iconHeight=c;this._iconSprite=new W(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"]=pk;pk.__name__= ["first","flipbook","PageStepBar"];pk.__super__=W;pk.prototype=r(W.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));W.prototype.onRemoveFromStageCall.call(this,a)},resize:function(a,b){W.prototype.resize.call(this,a,b); this._barWidth=a;this._barHeight=b;this.drawStepBar();this.resizeStepLayout()},resizeToWidth:function(a){W.prototype.set_width.call(this,a);this._barWidth=a;this.drawStepBar();this.resizeStepLayout()},resizeToHeight:function(a){W.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 ka(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__:bg,__properties__:r(E.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 Uc=function(a,b,c,d){this._backSpriteAlpha=1;this._backColor=16777215;this._dct_time=1;this._act_time=2;W.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 W;this.c_mc2=new W;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"]=Uc;Uc.__name__=["first","page","PageContainer"];Uc.__super__=W;Uc.prototype=r(W.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),Ab.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);Ab.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(),Ab.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);Ab.delay(k(a,a.setActivateForDisplay),this._act_time);this.resetOldByHide(b);return b},resetNewByHide:function(a){},resetOldByHide:function(a){},__class__:Uc,__properties__:r(W.prototype.__properties__,{set_pageB:"set_pageB",get_pageB:"get_pageB",set_pageA:"set_pageA",get_pageA:"get_pageA"})});var km=function(a,b,c,d){this._pageCor=null;Uc.call(this,a,b, c,d);this._target=this.c_mc2;this._targetPoint=new Q;this._shadowBottom=null;this.testDrawPaper()};g["first.flipbook.PaperPage"]=km;km.__name__=["first","flipbook","PaperPage"];km.__super__=Uc;km.prototype=r(Uc.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__:km, __properties__:r(Uc.prototype.__properties__,{get__static:"get__static",get_target:"get_target"})});var kq=function(){E.call(this);this.drawRadius(1024)};g["first.flipbook.SemiCircle"]=kq;kq.__name__=["first","flipbook","SemiCircle"];kq.__super__=E;kq.prototype=r(E.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 G=0;G=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__:lq,__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 hj=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);ia.call(this,0,0,0,0);this._scaleX= c;this._scaleY=d;this._scaleWidth=e;this._scaleHeight=f;this._baseSize=new lq;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"]=hj;hj.__name__=["first","geom","ScaleRectangle"];hj.__super__=ia;hj.prototype=r(ia.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__:hj});var $l=function(a,b,c){this.callback=a;this.useCapture=b;this.priority=c};g["first.html5._EventSprite.ExtListener"]=$l;$l.__name__=["first","html5","_EventSprite","ExtListener"];$l.prototype={callback:null,priority:null,useCapture:null,match:function(a,b){return this.callback==a&&this.useCapture==b},__class__:$l};var Jf=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;E.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"]=Jf;Jf.__name__=["first","html5","ExternalBase"];Jf.__super__=E;Jf.prototype=r(E.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 ka;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 ka;d.scale(Jf.prototype.get_scaleX.call(this),Jf.prototype.get_scaleY.call(this));d.rotate(Jf.prototype.get_rotation.call(this)*(Math.PI/180));d.translate(Jf.prototype.get_x.call(this),Jf.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(),Ug)}catch(e){D.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();Al.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 hb(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 L("\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__:ij});var cg=function(a,b,c,d,e,f,h){null==a&&(a=!0);ij.call(this,a,b,c,d,e,f,h)};g["first2.controls.TSListEvent"]=cg;cg.__name__=["first2","controls","TSListEvent"];cg.__super__=ij;cg.prototype=r(ij.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(V.ControlFontColor());a.set_textFontName(V.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__:cg});var hi=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;cg.call(this,a,b,c,d,e,f,h);0=a.length)a=Vg.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&&cg.prototype.doDragListStepMouseDown.call(this,a),null!=a&&a==this._rightStep&&cg.prototype.doDragListStepMouseDown.call(this, a))},onTSListStepMouseUp:function(a){null!=a&&null!=a._data&&this.getFixStepHandler(a._data._trigger)},__class__:hi});var ii=function(a,b,c,d,e,f,h){null==c&&(c=240);null==b&&(b=120);null==a&&(a=!0);hi.call(this,a,b,c,d,e,f,h)};g["first.language.LanguageBase"]=ii;ii.__name__=["first","language","LanguageBase"];ii.__super__=hi;ii.prototype=r(hi.prototype,{getFixItemHandler:function(a){return a},getFixStepHandler:function(a){return a},createStep:function(a){return new mm(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 nm(a,b,c,d,e,f,h);a.set_textColor(V.ControlFontColor());a.set_textFontName(V.ControlFontName());return a},updateDragListItemByItem:function(a){this.getFixItemHandler(a)},__class__:ii});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 ga),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(jj.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 ga);var a=null,a=new ga;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 ga;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 ga;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 ga; 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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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 ga;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=Vg.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?Vg.Text:Vg.ImageText;this._iconWidth=e;this._iconHeight= f;this._bitmapUrl=h;this._iconSprite=new Zi(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=r(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 t["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 t["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 ia(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+Ub.textSpace));c=a.y+.5*(a.height-(c+Ub.textSpace));0==this._isCenterText&&(b=a.x+2);this._itemLabel.textField.move(b,c)}},setShowState:function(a){null!=a&&(this._showState=a,this._showState==Vg.Text?(this._itemLabel.set_visible(!0),this._iconSprite.set_visible(!1)):(this._showState==Vg.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);T.getInstance().dispatchEvent(new la(x.LISTSPRITEITEM_CLICK, new na(this,null,null)))},onMouseUp:function(a){Oa.prototype.onMouseUp.call(this,a);this._downSprite.onMouseUp(a)},__class__:zh});var nm=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"]=nm;nm.__name__=["first","language","LanguageItem"];nm.__super__=zh;nm.prototype=r(zh.prototype,{__class__:nm});var fb=function(){};g["first.language.LanguageKey"]=fb; fb.__name__=["first","language","LanguageKey"];var rk=function(a,b,c,d,e,f,h){null==c&&(c=240);null==b&&(b=120);null==a&&(a=!0);ii.call(this,a,b,c,d,e,f,h);this._backColor=15592941;this._backSprite._fillStyle=15592941;this._backSprite._strokeStyle=16777215};g["first.language.LanguageSprite"]=rk;rk.__name__=["first","language","LanguageSprite"];rk.__super__=ii;rk.prototype=r(ii.prototype,{doDragListItemClicked:function(a){ii.prototype.doDragListItemClicked.call(this,a);a=this.indexOfSelectedItem(); T.getInstance().dispatchEvent(new la(x.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(G,g,k,l),G*=a,g*=a,l=c+(.5*l|0),b=p==Ic.LEFT?b|0:p==Ic.CENTER?b+(.5*k|0)-.5*G|0:p==Ic.RIGHT?this._width-d-G|0:p==Ic.IN?0!=this._isLeftPage? f:this._width-f-G|0:p==Ic.OUT?0!=this._isLeftPage?this._width-f-G|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 Xg=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"]=Xg;Xg.__name__=["first","page","BasePageObjects"];Xg.__super__=Bh;Xg.prototype=r(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,Yg)}catch(e){if(D.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,L))d=null;else throw e;}null!=d&&a.resetAllTextSprites(d)};0!=this._canLoadTexts&&0!=this._isContentLoaded&&0==this._isTextsLoaded&&Cd.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 hj(this._contentWidth,this._contentHeight,parseFloat(e[0]),parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3])),f=new ki(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,$a))try{0!=this._isContentLoaded&& (this.clearAllLinkSprites(),this.clearAllTextSprites(),this.clearAllSearchSprites())}catch(a){if(D.lastException=a,a instanceof q&&(a=a.val),m.__instanceof(a,L))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 ga;af.length||0==parseFloat(f[0])||0==parseFloat(f[1])||0==parseFloat(f[2])||0==parseFloat(f[3])||(h=new sm(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__:Xg});var pf=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;Xg.call(this,a,b,c,d)};g["first.page.BasePageAdditions"]=pf;pf.__name__=["first","page","BasePageAdditions"];pf.__super__=Xg;pf.prototype=r(Xg.prototype,{_canLoadAdditions:null,_additionsSprites:null,_additionsContainer:null,_isAdditionsLoaded:null,_unloadAdditionsStatus:null,_ffobjects:null,createAdditionsSprite:function(){null== this._additionsSprite&&(this._additionsSprite=new W,this._contentSprite.addChild(this._additionsSprite),this._additionsSprite.set_scrollRect(new ia(0,0,this._pageWidth,this._pageHeight)),this._additionsSprite.set_scaleX(this._additionsSprite.set_scaleY(1)))},destroy:function(){this.removeAdditionsForPageType(this._pageType==Hb.Large);this.setDeactivateForDisplay();this.unloadAdditionsBitmap(null);Xg.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)){Xg.prototype.setActivateForDisplay.call(this);if(this._pageType==Hb.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,$a)&&Xg.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 Ad(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=t.parseInt(e.att.resolve("pageindex")),e=e.get_innerHTML(),this._pageIndex==d)){if(null==e)break;e=X.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=ba.parse(""+ a+"").firstElement();if(null==b)return null;var c=b.elementsNamed("ffobjects");return null!=c?c.next():null}catch(d){return D.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(G,g,k,l),G*=a,g*=a,l=c+(.5*l|0),b=p==Ic.LEFT?b|0:p==Ic.CENTER?b+(.5*k|0)-.5*G|0:p==Ic.RIGHT?this._width-d-G|0:p==Ic.IN?0!=this._isLeftPage?f:this._width-f-G|0:p==Ic.OUT?0!=this._isLeftPage?this._width-f-G|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 Zg=function(){Qa.call(this);this._baseMap=new ga};g["first.rsset.BaseFactory"]=Zg;Zg.__name__=["first","rsset","BaseFactory"];Zg.__super__=Qa;Zg.prototype=r(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 L("\u914d\u7f6e\u5b9e\u4f8b\u952e\u540d\u4e0d\u80fd\u4e3a\u7a7a")); this._baseMap.set(a,b);b},__class__:Zg});var tm=function(){};g["first.rsset.PictureData"]=tm;tm.__name__=["first","rsset","PictureData"];tm.prototype={_url:null,_type:null,_width:null,_height:null,_content:null,__class__:tm};var hd=function(){Zg.call(this);if(null!=hd.instance)throw new q(new L("\u5355\u4f8b\u6a21\u5f0f"));};g["first.rsset.BitmapFactory"]=hd;hd.__name__=["first","rsset","BitmapFactory"];hd.getInstance=function(){null==hd.instance&&(hd.instance=new hd);return hd.instance};hd.cleanBitmapData= function(a){var b;try{b=m.__cast(a,rb)}catch(c){D.lastException=c,c instanceof q&&(c=c.val),b=null}null!=b&&(b.bitmapData.dispose(),b.bitmapData=null)};hd.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 $a(this._pageWidth,this._pageHeight,a):this._scalePages.length>a?this._scalePages[a]:new $a(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=Z.getInstance();var b=a.get(Ja.SCALEVERSPACE), c=a.get(Ja.SCALEHORSPACE),d=a.get(Ja.SCALEHORSPACE);a=a.get(Ja.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=Z.getInstance();var d=c.get(Ja.SCALEVERSPACE),e=c.get(Ja.SCALEHORSPACE),f=c.get(Ja.SCALEHORSPACE),h=c.get(Ja.SCALEVERSPACE),p=this._contentSprite._width- f;c=this._contentSprite._height-h;var f=this._contentSprite._width-e-f,h=this._contentSprite._height-d-h,G=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,P=G;G>=e&&(P=e);k<=p&&(P=p-this._scrollWidth);this._scrollWidth<=f&&(P=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));P=1*(P|0);e=1*(e|0);this._scrollSprite.move(P, e);this._youtubeManager.resetScaleDiv(this._targetPageIndex,P,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=Z.getInstance();if(null!=this._flipBook){this.resetScalePageInfoByBook();var b=this._flipBook.getTotalPageCount();a=a.get(Ja.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=Z.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(Ja.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=Hb.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=Hb.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=Hb.Large,this._deactivatePages.push(b)); return b},cleanAdditionsPagesIndexs:function(){var a=null,a=Rd.getInstance();Z.getInstance().get(Ja.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||(Z.getInstance().get(Ja.SCALEISONE),0==this._isUpdate?this.resetScalePageInfoByCurrentIndex():this._isUpdate= !1)}},resetScalePageGotoPrev:function(){var a;a=Z.getInstance();if(null!=this._flipBook){var b=this._targetPageIndex;a=a.get(Ja.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=Z.getInstance();if(null!=this._flipBook){var b=this._targetPageIndex;a=a.get(Ja.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(Ja.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=Z.getInstance();var b=a.get(Ja.SCALERADIOSTEP),c=this._scaleRadio;1>=c&&(b=.1);.5>=c&&(b=.05);.2>=c&&(b=.05);b=c+b;c=a.get(Ja.SCALERADIOMIN);a=a.get(Ja.SCALERADIOMAX);ba||(a=this.getScalePageItemOffsetByContent(), this.set_scaleRadio(b),this.setScalePageItemOffsetByPoint(a))},resetScalePageItemRadioDec:function(){var a;a=Z.getInstance();var b=a.get(Ja.SCALERADIOSTEP),c=this._scaleRadio;1>=c&&(b=.1);.5>=c&&(b=.05);.2>=c&&(b=.05);b=c-b;c=a.get(Ja.SCALERADIOMIN);a=a.get(Ja.SCALERADIOMAX);ba||(a=this.getScalePageItemOffsetByContent(),this.set_scaleRadio(b),this.setScalePageItemOffsetByPoint(a))},__class__:vm});var nq=function(){W.call(this)};g["first.scale.ScalePageStep"]=nq;nq.__name__=["first","scale", "ScalePageStep"];nq.__super__=W;nq.prototype=r(W.prototype,{__class__:nq});var Vb=function(a,b,c){var d;d=Z.getInstance();va.call(this,a,b,d.get(y.FILLCOLOR),d.get(y.ISFILL),d.get(y.STROKECOLOR),d.get(y.ISSTROKE),d.get(y.STROKEPIXEL),d.get(y.ROUNDWIDTH),d.get(y.ROUNDWIDTH),d.get(y.DISABLEFILL),d.get(y.DISABLESTROKE));this._fillAlpha=d.get(y.FILLALPHA);this._programBase=c};g["first.share.ShareBase"]=Vb;Vb.__name__=["first","share","ShareBase"];Vb.__super__=va;Vb.prototype=r(va.prototype,{_programBase:null, getProgramSprite:function(){try{return m.__cast(this._programBase,lb)}catch(a){D.lastException=a;a instanceof q&&(a=a.val);if(m.__instanceof(a,L))return null;throw a;}},__class__:Vb});var y=function(){};g["first.share.ShareBaseConst"]=y;y.__name__=["first","share","ShareBaseConst"];y.initParameters=function(){if(0==y.isInit){y.isInit=!0;var a;a=Z.getInstance();a.set(y.ISFILL,y.ISFILLVAL);a.set(y.FILLCOLOR,y.FILLCOLORVAL);a.set(y.FILLALPHA,y.FILLALPHAVAL);a.set(y.ISSTROKE,y.ISSTROKEVAL);a.set(y.STROKECOLOR, y.STROKECOLORVAL);a.set(y.STROKEALPHA,y.STROKEALPHAVAL);a.set(y.STROKEPIXEL,y.STROKEPIXELVAL);a.set(y.ROUNDWIDTH,y.ROUNDWIDTHVAL);a.set(y.ROUNDHEIGHT,y.ROUNDHEIGHTVAL);a.set(y.DISABLEFILL,y.DISABLEFILLVAL);a.set(y.DISABLESTROKE,y.DISABLESTROKEVAL);a.set(y.LINESPACE,y.LINESPACEVAL);a.set(y.TOPSPACE,y.TOPSPACEVAL);a.set(y.LEFTSPACE,y.LEFTSPACEVAL);a.set(y.RIGHTSPACE,y.RIGHTSPACEVAL);a.set(y.BOTTOMSPACE,y.BOTTOMSPACEVAL);a.set(y.TOOLHEIGHT,y.TOOLHEIGHTVAL);a.set(y.TITLEHEIGHT,y.TITLEHEIGHTVAL);a.set(y.THUMBHEIGHT, y.THUMBHEIGHTVAL);a.set(y.SEARCHHEIGHT,y.SEARCHHEIGHTVAL);a.set(y.ISSOUNDON,y.ISSOUNDONVAL);a.set(y.ISSOUNDONSAL,y.ISSOUNDONSALVAL);a.set(y.BOOKTOPSPACE,y.BOOKTOPSPACEVAL);a.set(y.BOOKLEFTSPACE,y.BOOKLEFTSPACEVAL);a.set(y.BOOKRIGHTSPACE,y.BOOKRIGHTSPACEVAL);a.set(y.BOOKBOTTOMSPACE,y.BOOKBOTTOMSPACEVAL);a.set(y.BOOKLINESPACE,y.BOOKLINESPACEVAL);a.set(y.BOOKSTEPWIDTH,y.BOOKSTEPWIDTHVAL);a.set(y.GOTOSTEPWIDTH,y.GOTOSTEPWIDTHVAL);a.set(y.GOTOSTEPHEIGHT,y.GOTOSTEPHEIGHTVAL)}};var uk=function(a,b,c){var d; d=Z.getInstance();Vb.call(this,a,b,c);this._bookMarkSprite=null;this._titleSprite=new va(a,32,d.get(y.FILLCOLOR),d.get(y.ISFILL),d.get(y.STROKECOLOR),d.get(y.ISSTROKE),d.get(y.STROKEPIXEL),d.get(y.ROUNDWIDTH),d.get(y.ROUNDWIDTH),d.get(y.DISABLEFILL),d.get(y.DISABLESTROKE));this._titleSprite._fillAlpha=d.get(y.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); qa.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"]=uk;uk.__name__=["first","share","ShareBookMark"];uk.__super__=Vb;uk.prototype=r(Vb.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=null;else throw c;}null!=b&&gd.getInstance().dispatchAction(b._actionType,b._actionValue,new na(b,null,null))},createBookMark:function(a,b,c,d,e){try{this._flipBook=m.__cast(a,of)}catch(f){if(D.lastException=f,f instanceof q&&(f=f.val),m.__instanceof(f,L))this._flipBook= null;else throw f;}null!=this._flipBook&&(this._bookMarkSprite=new dm(!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){Vb.prototype.resize.call(this,a,b);this.resizeItemsLayout();this.set_scaleX(this.set_scaleY(1))},resizeItemsLayout:function(){Z.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(da.ButtonBookmark)),this._bookMarkTitle.textField.updateTextFormat())},cleanAllSelectedBookMark:function(){var a=null,a=Hf.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||(Z.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=Z.getInstance();0==this._isScaleStep?(a=2*this._pageWidth,b=this._pageHeight):(a=2*b.get(y.BOOKLINESPACE)+2*b.get(y.BOOKSTEPWIDTH)+2*this._pageWidth,b=2*b.get(y.BOOKLINESPACE)+this._pageHeight);null!= this._flipBook&&this.resizeFlipBookSprite(a,b)},resizeFlipBookSprite:function(a,b){var c;c=Z.getInstance();var d=!0;Ra.getInstance().hasKey(C.AlwaysInTheCenter)&&(d=V.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(y.BOOKTOPSPACE),G=c.get(y.BOOKLEFTSPACE),g=c.get(y.BOOKLEFTSPACE),k=c.get(y.BOOKTOPSPACE),g=this._width-G-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)),G+=.5*g|0,g=f+(.5*l|0),f=G-a*k*.5|0,0!=h?(f=G-a*k*.5|0,0!=d&&(f=f-e*k*.5|0)):0!=p&&0==this._flipBook.getTotalPageCount()%2&&(f=G-a*k*.5|0,0!=d&&(f=f+e*k*.5|0)),h=g-b*k*.5|0,ua._contentSpriteX=f,ua._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(y.BOOKLINESPACE)+ c.get(y.BOOKSTEPWIDTH)),this._leftStep.set_y(c.get(y.BOOKLINESPACE)),this._leftStep.resizeToWidth(c.get(y.BOOKSTEPWIDTH)),this._leftStep.resizeToHeight(this._flipBook._pageHeight),this._rightStep.set_x(c.get(y.BOOKLINESPACE)+c.get(y.BOOKSTEPWIDTH)+2*this._pageWidth),this._rightStep.set_y(c.get(y.BOOKLINESPACE)),this._rightStep.resizeToWidth(c.get(y.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(y.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(y.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__:Kf,__properties__:r(Vb.prototype.__properties__,{set_isScaleStep:"set_isScaleStep",get_isScaleStep:"get_isScaleStep"})});var vk=function(a,b,c){Kf.call(this,a,b,c);c=null;c=Z.getInstance();this._isScalePageMode=!1;this._contentScale=new va(a,b,16777215,!1,16711680,!1,1);this.addChild(this._contentScale);this._contentScale.set_isStroke(!1);this._contentScale.set_roundWidth(c.get(y.ROUNDWIDTH));this._contentScale.set_roundHeight(c.get(y.ROUNDHEIGHT))}; g["first.share.ShareFlipBook"]=vk;vk.__name__=["first","share","ShareFlipBook"];vk.__super__=Kf;vk.prototype=r(Kf.prototype,{_isScalePageMode:null,_thisScalePageIndex:null,_contentScale:null,_scaleSprite:null,resize:function(a,b){Kf.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){Kf.prototype.onAddedToStageCall.call(this,a); a=T.getInstance();a.addEventListener(x.SEARCHBOOK_RESET,this,k(this,this.onSearchBookReset));a.addEventListener(x.SEARCHPAGE_CALLBACK,this,k(this,this.onSearchPageCallback));a.addEventListener(x.BOOKPAGE_DOUBLECLICK,this,k(this,this.onBookPageDoubleClick));a.addEventListener(x.MOUSEOVER_DOUBLECLICK,this,k(this,this.onMouseOverDoubleClick));a.addEventListener(x.SECURITYLOGIN_UPDATE,this,k(this,this.onSecurityLoginUpdate))},onRemoveFromStageCall:function(a){Kf.prototype.onRemoveFromStageCall.call(this, a);a=T.getInstance();a.removeEventListener(x.SEARCHBOOK_RESET,this,k(this,this.onSearchBookReset));a.removeEventListener(x.SEARCHPAGE_CALLBACK,this,k(this,this.onSearchPageCallback));a.removeEventListener(x.BOOKPAGE_DOUBLECLICK,this,k(this,this.onBookPageDoubleClick));a.removeEventListener(x.MOUSEOVER_DOUBLECLICK,this,k(this,this.onMouseOverDoubleClick));a.removeEventListener(x.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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);Kf.prototype.createFlipBook.call(this,a,b,c,d,e);this._scaleSprite=new vm(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:Kf.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=null;else throw c;}var d;try{d=m.__cast(a._data._trigger,$a)}catch(e){if(D.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,L))d=null;else throw e;}if(null!=d&&(null==b||null==b.target||m.__instanceof(b.target,W))&&null!=this._flipBook&& null!=this._scaleSprite){this.doDoubleClickByBookPage(d);var f;try{f=m.__cast(this._programBase,lb)}catch(h){if(D.lastException=h,h instanceof q&&(h=h.val),m.__instanceof(h,L))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,pa.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(D.lastException=b,b instanceof q&&(b=b.val),!m.__instanceof(b,L))throw b;}var c;try{c=m.__cast(a._data._trigger,vb)}catch(d){if(D.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,L))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__:vk});var wk=function(a,b,c){Vb.call(this,a,b,c);c=null;c=Z.getInstance();this._searchList=this._searchText=this._searchBtn1=null;this._isSearched=!1;this._isShowInput=!0;this._isSearchInit=!1;qa.initParameters();this._contentSprite=new va(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(y.FILLALPHA);this._contentSprite.set_fillStyle(c.get(y.FILLCOLOR));this._contentSprite.set_roundWidth(c.get(y.ROUNDWIDTH));this._contentSprite.set_roundHeight(c.get(y.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"]=wk;wk.__name__=["first","share","ShareSearchList"];wk.__super__=Vb;wk.prototype=r(Vb.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){Vb.prototype.resize.call(this,a,b);var c=null,c=Z.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(y.FILLALPHA));this.setBackgroundColor(c.get(y.FILLCOLOR));this.resizeSearchListLayout();this.set_scaleX(this.set_scaleY(1))},onAddedToStageCall:function(a){Vb.prototype.onAddedToStageCall.call(this,a);T.getInstance().addEventListener(x.COMPONENT_KEYDOWN,this,k(this,this.onKeyDown))},onRemoveFromStageCall:function(a){Vb.prototype.onRemoveFromStageCall.call(this,a);T.getInstance().removeEventListener(x.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=Z.getInstance();try{this._flipBook=m.__cast(a,of)}catch(f){if(D.lastException=f,f instanceof q&&(f=f.val),m.__instanceof(f,L))this._flipBook=null;else throw f; }if(null!=this._flipBook&&0==this._isSearchInit){a=d.get(qa.LINESPACE);c=d.get(qa.LINESPACE);var h=d.get(qa.LINESPACE),p=d.get(qa.LINESPACE);d.get(qa.LINESPACE);var G=0,g=d.get(qa.INPUTHEIGHT);b=d.get(qa.BUTTONHEIGHT);d=d.get(qa.BUTTONHEIGHT);G=this._contentWidth-h-a-p-b;this._searchText=new qf(G,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 wm(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=Z.getInstance();if(0!=this._isSearchInit){var b=a.get(qa.LINESPACE),c=a.get(qa.LINESPACE),d=a.get(qa.LINESPACE),e=a.get(qa.LINESPACE);a.get(qa.LINESPACE);var f=0,h=a.get(qa.INPUTHEIGHT),p=a.get(qa.BUTTONHEIGHT),a=a.get(qa.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, tc)}catch(c){D.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,qf)}catch(e){D.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(D.lastException= c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=-1;else throw c;}0>b||null==this._thumbnails||(Z.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,$g)){var c;try{c=m.__cast(a._data._trigger,$g)}catch(d){if(D.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d, L))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__:oi});var qa=function(){};g["first.slist.SearchListConst"]=qa;qa.__name__=["first", "slist","SearchListConst"];qa.initParameters=function(){if(0==qa.isInit){qa.isInit=!0;var a;a=Z.getInstance();a.set(qa.LINESPACE,qa.LINESPACEVAL);a.set(qa.STEPSPACE,qa.STEPSPACEVAL);a.set(qa.STEPHEIGHT,qa.STEPHEIGHTVAL);a.set(qa.ITEMWIDTH,qa.ITEMWIDTHVAL);a.set(qa.ITEMHEIGHT,qa.ITEMHEIGHTVAL);a.set(qa.FRAMEHEIGHT,qa.FRAMEHEIGHTVAL);a.set(qa.TEXTHEIGHT,qa.TEXTHEIGHTVAL);a.set(qa.INPUTHEIGHT,qa.INPUTHEIGHTVAL);a.set(qa.BUTTONHEIGHT,qa.BUTTONHEIGHTVAL);a.set(qa.IMAGETOPSPACE,qa.IMAGETOPSPACEVAL);a.set(qa.IMAGELEFTSPACE, qa.IMAGELEFTSPACEVAL);a.set(qa.IMAGERIGHTSPACE,qa.IMAGERIGHTSPACEVAL);a.set(qa.IMAGEBOTTOMSPACE,qa.IMAGEBOTTOMSPACEVAL)}};var hg=function(a,b,c,d){oi.call(this,a,b,c,d);qa.initParameters();a=Z.getInstance();this._searchItemWidth=this.getItemWidth();this._searchItemHeight=this.getItemHeight();this._itemPixelWidth=this._searchItemWidth=a.get(y.SEARCHHEIGHT)-2*this.getLineSpace()+2;this._itemPixelHeight=this._searchItemHeight;this.resizeScaleSize()};g["first.slist.SearchListEvent"]=hg;hg.__name__=["first", "slist","SearchListEvent"];hg.__super__=oi;hg.prototype=r(oi.prototype,{_searchItemWidth:null,_searchItemHeight:null,resizeScaleSize:function(){this._itemPixelWidth=this._searchItemWidth;this._itemPixelHeight=this._searchItemHeight;oi.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(); T.getInstance().addEventListener(x.LANGUAGEINFO_UPDATE,this,k(this,this.onLanguageInfoUpdate))},onRemoveFromStage:function(a){bh.prototype.onRemoveFromStageCall.call(this,a);T.getInstance().removeEventListener(x.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);T.getInstance().dispatchEvent(new la(x.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=null;else throw c;}null!=b&&this.resetSearchItemLanguage()}},resetSearchItemLanguage:function(){this.resetSearchIndexText();this.resetSearchItemsCount()},resetSearchItemOffset:function(){var a=null,a=Z.getInstance(),b=this._itemLabel.getTextWidth();this._itemLabel.resize(b+8+4,this._itemLabel._height); a=a.get(qa.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 ga;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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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=X.replace(b,"\n"," ");d=b=X.replace(b,"\r"," ")}if(null!=d&&""!=d&&0=b.cachePageText.length)b.cachePageText=a.value(da.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(da.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=V.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__:li});var sj=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 ga};g["first.stexts.SearchTextClass"]=sj;sj.__name__=["first","stexts","SearchTextClass"];sj.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=T.getInstance();a.dispatchEvent(new la(x.SEARCHBOOK_RESET,new na(this,null,null)))},doSearchBookCancel:function(){var a=null,a=T.getInstance();a.dispatchEvent(new la(x.SEARCHBOOK_CANCEL,new na(this,null,null)))},doSearchBookStart:function(){var a=null,a=T.getInstance();a.dispatchEvent(new la(x.SEARCHBOOK_START, new na(this,null,null)))},doSearchBookFinish:function(){var a=null,a=T.getInstance();a.dispatchEvent(new la(x.SEARCHBOOK_FINISH,new na(this,null,null)))},doSearchBookCallBack:function(){var a=null,a=T.getInstance();a.dispatchEvent(new la(x.SEARCHBOOK_CALLBACK,new na(this,null,null)))},doSearchPageStart:function(a){var b=null,b=T.getInstance();b.dispatchEvent(new la(x.SEARCHPAGE_START,new na(this,a,null)))},doSearchPageFinish:function(a){var b=null,b=T.getInstance();b.dispatchEvent(new la(x.SEARCHPAGE_FINISH, new na(this,a,null)))},doSearchPageCallBack:function(a){var b=null,b=T.getInstance();b.dispatchEvent(new la(x.SEARCHPAGE_CALLBACK,new na(this,a,null)));b=null;b=this.getSearchPageItemByIndex(a);null==b&&this.doSearchPageFinish(a)},makeSearchTextPageItems:function(){var a=null,a=Cd.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=Cd.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=Cd.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(D.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,L))this.doSearchPageFinish(a);else throw d;}}}},onPageSearchTextLoadedOffset:function(a){var b=null;try{b=m.__cast(a,li)}catch(c){if(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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,ig.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=0;else throw c; }0>=b||(this._searchMapAsyncStatus.set(null==b?"null":""+b,ig.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=0;else throw c;}0>=b||this._searchMapAsyncStatus.set(null==b?"null":""+b,ig.CallBack)}},onLanguageInfoCached:function(a){null!=a&&null!=a._data&&(a=Wd.getInstance(),this.cachePageText=a.value(da.LabelSearchPageIndex), this.cachePageItem=a.value(da.LabelSearchItems))},isSearchPageAllFinish:function(){for(var a=!0,b=this._searchMapAsyncStatus.keys();b.hasNext();){var c=b.next();if(n.get(this._searchMapAsyncStatus,c)!=ig.Finish){a=!1;break}}return a},__class__:fc});var Fs=function(){};g["first.stexts.SearchStatusKey"]=Fs;Fs.__name__=["first","stexts","SearchStatusKey"];var ig=function(){};g["first.stexts.SearchStatusValue"]=ig;ig.__name__=["first","stexts","SearchStatusValue"];var ki=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);va.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 hj(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"]=ki;ki.__name__=["first","text","PageTextSprite"];ki.__super__=va;ki.prototype=r(va.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){va.prototype.onAddedToStageCall.call(this, a);this.resetTextLocationOffset();this.set_scaleX(this.set_scaleY(1))},onRemoveFromStageCall:function(a){va.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__:ki});var sm=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);ki.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"]=sm;sm.__name__=["first","stexts","SearchTextSprite"];sm.__super__=ki;sm.prototype=r(ki.prototype,{resetTextLocationOffset:function(){this._textRect.isEmpty()|| (this.move(this._textRect.x,this._textRect.y),this.resize(this._textRect.width,this._textRect.height))},__class__:sm});var Ak=function(){this._realPathUrl=".";Sa.initParameters();this._pageCount=0;this._firstIsMac=!0;this._bookText=null;this._isBookTextLoad=!1;this._callCompleteFunc=this._cacheDoAction=null;this._bookTextUrl=Z.getInstance().get(Sa.TEXTFILE)};g["first.text.BookTextClass"]=Ak;Ak.__name__=["first","text","BookTextClass"];Ak.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=T.getInstance();null!=this._bookText&&(a.dispatchEvent(new la(x.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){D.lastException=f,f instanceof q&&(f=f.val),e=null}var h=null,h=T.getInstance();null!=e?(c._bookText=e,c._isBookTextLoad=!0,c._bookTextFast=Ua.toFast(c._bookText._xml),c.resetBookTextInfoForReload(),h.dispatchEvent(new la(x.BOOKTEXTXML_LOAD,new na(c,a,null))),null!=b&&b(null!=c._bookText?c:null)):(c._isBookTextLoad=!1,h.dispatchEvent(new la(x.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__:Ak};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=Z.getInstance();a.set(Sa.TEXTFILE,Ee.FLIPBOOKTEXT_FILENAME);a.set(Sa.PAGEFILELEFT,Ee.FLIPBOOKPAGE_FILELEFT);a.set(Sa.PAGEFILERIGHT,Ee.FLIPBOOKPAGE_FILERIGHT)}};var oq=function(){this._loader= this._url=null;this._isLoad=!1;this._onComplete=null};g["first.text.BookTextLoader"]=oq;oq.__name__=["first","text","BookTextLoader"];oq.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 om("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__:oq};var pq=function(a,b){null==b&&(b=0);null==a&&(a=0);W.call(this,a,b)};g["first.text.BookTextSprite"]=pq;pq.__name__=["first","text","BookTextSprite"];pq.__super__=W;pq.prototype=r(W.prototype,{__class__:pq});var Cd=function(){Ak.call(this);if(null!=Cd.instance)throw new q(new L("\u5355\u4f8b\u6a21\u5f0f"));Sa.initParameters();this._bookTextUrl=Z.getInstance().get(Sa.TEXTFILE)};g["first.text.BookTextSystem"]= Cd;Cd.__name__=["first","text","BookTextSystem"];Cd.getInstance=function(){null==Cd.instance&&(Cd.instance=new Cd);return Cd.instance};Cd.__super__=Ak;Cd.prototype=r(Ak.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 Yg(a,b,c),null!=e?(e._pageTextXml=h,e._pageText=h.stringValue(),e.reloadPageTextXML(e._offsetTextUrl,f)):null!=d&&d(null))});return!0},__class__:Cd});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;W.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 fi(a,b,this._backColor,!0,this._strokeColor,!1,1);this._backSprite.set_alpha(.06);this.addChildAt(this._backSprite,0);this._rectSprite=new fi(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__=W;Ch.prototype=r(W.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;T.getInstance().removeEventListener(x.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;W.prototype.destroy.call(this)},resize:function(a,b){this._backSprite.resize(a,b);W.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));T.getInstance().addEventListener(x.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));T.getInstance().removeEventListener(x.BOOKPAGE_SELECTDOWN,this,k(this,this.onSelectMouseDown))}, onAddedToStageCall:function(a){W.prototype.onAddedToStageCall.call(this,a);this.registerEventListener()},onRemoveFromStageCall:function(a){this.unregisterEventListener();this._rectSprite.get_graphics().clear();this._rectSprite.set_visible(!1);W.prototype.onRemoveFromStageCall.call(this,a)},getRectangle:function(a,b){if(null==a||null==b)return new ia(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 ia(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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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 ia(0,0,0,0)),this._rectSelect=new ia(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 ia(0,0,0,0));this._rectSelect=new ia(0,0,0,0);T.getInstance().dispatchEvent(new la(x.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 rm=function(a,b){null==b&&(b=0);null==a&&(a=0);Ch.call(this,a,b)};g["first.text.PageTextContainer"]=rm;rm.__name__=["first","text","PageTextContainer"];rm.__super__=Ch;rm.prototype=r(Ch.prototype,{resize:function(a,b){Ch.prototype.resize.call(this, a,b)},__class__:rm});var fi=function(a,b,c,d,e,f,h,p,G,g,k){this._bookPage=null;va.call(this,a,b,c,d,e,f,h,p,G,g,k)};g["first.text.SelectSprite"]=fi;fi.__name__=["first","text","SelectSprite"];fi.__super__=va;fi.prototype=r(va.prototype,{_bookPage:null,__class__:fi});var qq=function(a){this._bookPage=null;E.call(this);this._mainSprite=a};g["first.text.TestTextSprite"]=qq;qq.__name__=["first","text","TestTextSprite"];qq.__super__=E;qq.prototype=r(E.prototype,{_mainSprite:null,testCode:function(){var a; a=T.getInstance();a.setEventSprite(this);a.setEventMode(!1);T.getInstance().addEventListener(x.MAINXML_COMPLETE,this,k(this,this.onBookXmlReloadComplete));oe.getInstance(null).reloadXml(Ee.FLIPBOOKXML_PATH)},_bookPage:null,onBookXmlReloadComplete:function(a){if(null!=a&&null!=a._data){try{m.__cast(a._data._trigger,oe)}catch(b){if(D.lastException=b,b instanceof q&&(b=b.val),!m.__instanceof(b,L))throw b;}a=new $a(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__:qq});var Lf=function(a,b,c,d){this._oldVertical=this._isRightToLeft=!1;fd.call(this,!1,b,c,null,d,null,null);Z.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"]=Lf;Lf.__name__=["first","thumb","ThumbnailsBase"];Lf.__super__=fd;Lf.prototype=r(fd.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 tj(a,this.getFrameHeight(),this.getFrameHeight(),this._isVertical)},resizeAllStepSize:function(){fd.prototype.resizeAllStepSize.call(this)},getLineSpace:function(){return Z.getInstance().get(zb.LINESPACE)},getStepSpace:function(){return Z.getInstance().get(zb.STEPSPACE)},getStepHeight:function(){return Z.getInstance().get(zb.STEPHEIGHT)},getItemWidth:function(){return Z.getInstance().get(zb.ITEMHEIGHT)},getItemHeight:function(){return Z.getInstance().get(zb.ITEMHEIGHT)}, getFrameHeight:function(){return Z.getInstance().get(zb.FRAMEHEIGHT)},resizeThumbSize:function(){this.resizeScaleSize()},resizeScaleSize:function(){Z.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,$g)}catch(c){if(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=null;else throw c;}null!=b&&this.doDragListItemClicked(b)}},__class__:Lf});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=Z.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 $g=function(a,b,c,d,e,f){null==f&&(f=0);null==d&&(d=0);null==b&&(b=0);null==a&&(a=0);Uc.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 va(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 va(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 Ub;this._textSprite= new W;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"]=$g;$g.__name__=["first","thumb","ThumbnailsItem"];$g.__super__=Uc;$g.prototype=r(Uc.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=Z.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){Uc.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);T.getInstance().dispatchEvent(new la(x.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=V.ControlFontName(),this._textField._font=a);this._textField.set_autoSize(Da.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__:$g,__properties__:r(Uc.prototype.__properties__, {set_clickedFunc:"set_clickedFunc",get_clickedFunc:"get_clickedFunc"})});var xm=function(a,b,c,d){Lf.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"]=xm;xm.__name__=["first","thumb","ThumbnailsSprite"];xm.__super__=Lf;xm.prototype=r(Lf.prototype,{resize:function(a,b){Lf.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=Lf.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=Z.getInstance().get(ve.LINESPACE),d=0,e=0,f=0,h=0;h< a.length;){var p=a[h];++h;var G=0,g=0,k;try{k=m.__cast(p,wj)}catch(l){if(D.lastException=l,l instanceof q&&(l=l.val),m.__instanceof(l,L))k=null;else throw l;}null!=k&&(G=d+c,g=.5*(this._height-k._height),k.move(G,g),0!=k.get_visible()&&(f=this._height,d=d+k._width+c,e=e+k._width+c))}null!=b&&0!=e&&0!=f&&b.resize(e+c,f)}},__class__:vj});var ve=function(){};g["first.toolbar.ToolBarConst"]=ve;ve.__name__=["first","toolbar","ToolBarConst"];ve.initParameters=function(){if(0==ve.isInit){ve.isInit=!0;var a; a=Z.getInstance();a.set(ve.LINESPACE,ve.LINESPACEVAL);a.set(ve.LEFTSPACE,ve.LEFTSPACEVAL)}};var pi=function(a,b){this._componentAtType=null;vj.call(this,a,b);this._componentAtType=ag.ToolBar};g["first.toolbar.ToolBarControls"]=pi;pi.__name__=["first","toolbar","ToolBarControls"];pi.__super__=vj;pi.prototype=r(vj.prototype,{_componentAtType:null,initToolBarItemByXml:function(a){var b;try{b=m.__cast(a,Ma)}catch(c){if(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=null;else throw c; }if(null!=b){var d=b.getNodeClass(ca.Config);b=b.getNodeClass(ca.Controls);if(null!=d&&null!=b){sa.getItemNameValue(d,ca.KeyHeight);sa.getItemNameValue(d,ca.ValIsEnable);sa.getItemNameValue(d,ca.ValIsVisible);d=b.getNodes(ca.Control);null==d&&this.errorInitToolBarItemByXml(a);for(a=b.getNodesLength(ca.Control);d.hasNext();)if(b=d.next(),null!=b){b=new Ma(b);var e=b.getAttrString(ca.KeyAlgin),f=b.getAttrString(ca.KeyVisible),h=Yb.getInstance().createControlByXml(b);if(null!=h){h._controlAtType=this._componentAtType; var p=h._width,G=h._height,g=new wj(p,G);g._algin=e;g._itemType=b.getNodeValue(ca.KeyType);g._itemClass=b.getNodeValue(ca.KeyType);g.set_visible(sa.parseBool(f));g.setItemSprite(h);g.resize(p,G);Lb.configUI_Control(h,g);null!=e&&"center"==e?(this._centerItems.push(g),this._centerSprite.addChild(g)):null!=e&&"right"==e?(this._rightItems.push(g),this._rightSprite.addChild(g)):(this._leftItems.push(g),this._leftSprite.addChild(g))}}1<=a&&this.resizeItemsLayout()}}},errorInitToolBarItemByXml:function(a){null}, __class__:pi});var rq=function(){};g["first.toolbar.ToolBarItemStatus"]=rq;rq.__name__=["first","toolbar","ToolBarItemStatus"];var wj=function(a,b,c,d,e,f){null==b&&(b=36);null==a&&(a=36);this._itemClass=this._itemSprite=null;W.call(this,a,b);this._itemSprite=this._itemClass=this._itemStatus=this._itemType=this._algin=null};g["first.toolbar.ToolBarItem"]=wj;wj.__name__=["first","toolbar","ToolBarItem"];wj.__super__=W;wj.prototype=r(W.prototype,{_algin:null,_itemType:null,_itemStatus:null,_itemClass:null, _itemSprite:null,updateItemSize:function(){null!=this._itemSprite&&this.resize(this._itemSprite._width,this._itemSprite._height)},updateItemVisible:function(){null!=this._itemSprite&&this.set_visible(this._itemSprite.visible)},resize:function(a,b){W.prototype.resize.call(this,a,b);null!=this._itemSprite&&(this._itemSprite.move(0,0),this._itemSprite.resize(a,b),this._itemSprite.scaleX=this._itemSprite.scaleY=1);this.set_scaleX(this.set_scaleY(1))},removeItemSprite:function(){this.setItemSprite(null)}, setItemSprite:function(a){var b=this._itemSprite;null!=this._itemSprite&&1<=this.get_numChildren()&&(this.removeChild(this._itemSprite),this._itemSprite=null);this._itemSprite=a;null!=this._itemSprite&&this.addChild(this._itemSprite);return b},__class__:wj});var sq=function(){};g["first.toolbar.ToolBarItemType"]=sq;sq.__name__=["first","toolbar","ToolBarItemType"];var ym=function(a,b){pi.call(this,a,b)};g["first.toolbar.ToolBarSprite"]=ym;ym.__name__=["first","toolbar","ToolBarSprite"];ym.__super__= pi;ym.prototype=r(pi.prototype,{resizeItemsLayout:function(){pi.prototype.resizeItemsLayout.call(this)},__class__:ym});var iq=function(){};g["first.utils.FUtil"]=iq;iq.__name__=["first","utils","FUtil"];iq.isMyBlood=function(a,b){if(m.__instanceof(a,b))return!0;for(var c=a.parent;null!=c.parent;){if(m.__instanceof(c,b))return!0;c=c.parent}return!1};var n=function(){};g["first.utils.MapUtils"]=n;n.__name__=["first","utils","MapUtils"];n.$length=function(a){var b=0;if(null!=a)for(a=a.keys();a.hasNext();)a.next(), b+=1;return b};n.hasKey=function(a,b){return null!=a&&1==(null!=R[b]?a.existsReserved(b):a.h.hasOwnProperty(b))?!0:!1};n.del=function(a,b){if(null!=a&&1==(null!=R[b]?a.existsReserved(b):a.h.hasOwnProperty(b))){var c;c=null!=R[b]?a.getReserved(b):a.h[b];a.remove(b);return c}return null};n.clear=function(a){if(null!=a){for(var b=[],c=a.keys();c.hasNext();){var d=c.next();null!=d&&b.push(d)}if(0a?a:b:bb?1:ab?1:ah)return 1;if(fG)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(D.lastException=a,a instanceof q&&(a=a.val),m.__instanceof(a,L))null;else throw a;}},__class__:fk};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 Ab(a);var d=gc.addTimerDelay(a,c);a.run=function(){try{null!=b&&b(c),gc.clearTimeout(d)}catch(a){if(D.lastException=a,a instanceof q&&(a=a.val),m.__instanceof(a,L))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 rb(e.bitmapData.clone()),c=qk.getZoomDraw(c,b._iconWidth,b._iconHeight),null!=c&&(b._bitmap=new rb(c))):(b._bitmap=new rb(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&&(hd.drawColorTransform(b._bitmap,b._iconColor), b._iconSprite.addChild(b._bitmap)))};null!=a&&""!=a&&hd.getInstance().getBitmapImage(a,c)}},__class__:db});var ag=function(){};g["first2.controls.TSComponentType"]=ag;ag.__name__=["first2","controls","TSComponentType"];var dh=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!1);la.call(this,a,b,c,d)};g["first2.controls.TSComponentEvent"]=dh;dh.__name__=["first2","controls","TSComponentEvent"];dh.__super__=la;dh.prototype=r(la.prototype,{__class__:dh});var ds=function(){this.showFocusIndicator=!0;this.defaultButtonEnabled= !1};g["first2.controls.TSFocusManager"]=ds;ds.__name__=["first2","controls","TSFocusManager"];ds.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__:ds};var cm=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"]=cm;cm.__name__=["first2","controls","TSImageButton"];cm.__super__=db;cm.prototype=r(db.prototype,{__class__:cm});var Yi=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 Zi(null);this.addChild(this._imageSprite);this._imageSprite.buttonMode=!0;this._imageSprite.enable_mouse(!1)};g["first2.controls.TSImageSprite"]=Yi;Yi.__name__=["first2","controls","TSImageSprite"];Yi.__super__=Oa;Yi.prototype=r(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,W)}catch(e){if(D.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,L))d=null;else throw e;}null!=d?(this.resize(c,a),d.resize(c,a),this.sendUpText()):this.resize(c,a)}},__class__:Yi});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 Ub(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(Da.LEFT);this.textField.set_autoSize(Da.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= r(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__:r(Oa.prototype.__properties__,{set_wordWrap:"set_wordWrap",get_wordWrap:"get_wordWrap"})});var Dk=function(){};g["first2.controls.TSLabelPlacement"]= Dk;Dk.__name__=["first2","controls","TSLabelPlacement"];var Vg=function(){};g["first2.controls.TSListItemState"]=Vg;Vg.__name__=["first2","controls","TSListItemState"];var yj=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"]=yj;yj.__name__=["first2","controls","TSLoadingBase"];yj.__super__=Oa;yj.prototype=r(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 Ek(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__:yj});var eh=function(){this.hasScale=!1;E.call(this)}; g["first2.controls.TSLoadingItem"]=eh;eh.__name__=["first2","controls","TSLoadingItem"];eh.__super__=E;eh.prototype=r(E.prototype,{hasScale:null,__class__:eh});var Ek=function(a,b){null==b&&(b=8092539);null==a&&(a=4);eh.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"]=Ek;Ek.__name__=["first2","controls","TSLoadingCircle"];Ek.__super__=eh;Ek.prototype=r(eh.prototype,{__class__:Ek}); var Bm=function(a,b){null==b&&(b=8092539);null==a&&(a=4);eh.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"]=Bm;Bm.__name__=["first2","controls","TSLoadingRoundRect"];Bm.__super__=eh;Bm.prototype=r(eh.prototype,{__class__:Bm});var Wh=function(){};g["first2.controls.TSLoadingMode"]=Wh;Wh.__name__=["first2","controls","TSLoadingMode"];var Gl=function(a, b,c){null==c&&(c=4);null==b&&(b=13948116);null==a&&(a=20);this.loadingMode="Circle";yj.call(this,a,b,c);this.loadingMode=Wh.RoundRect};g["first2.controls.TSLoadingSprite"]=Gl;Gl.__name__=["first2","controls","TSLoadingSprite"];Gl.__super__=yj;Gl.prototype=r(yj.prototype,{loadingMode:null,getSubItem:function(){var a=null;this.loadingMode==Wh.Circle?a=new Ek(this.subRadius,this.color):this.loadingMode==Wh.RoundRect&&(a=new Bm(this.subRadius,this.color));return a},__class__:Gl});var qf=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 gm(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(Da.LEFT);this.textField.set_autoSize(Da.NONE)};g["first2.controls.TSTextInput"]=qf;qf.__name__=["first2","controls","TSTextInput"];qf.getStyleDefinition=function(){return null};qf.__super__=Oa;qf.prototype=r(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(Nc.FOCUS_IN,k(this,this.textInputDidFocusIn));this.textField.addEventListener(Nc.FOCUS_OUT,k(this,this.textInputDidFocusOut));this.textField.addEventListener(A.MOUSE_DOWN,k(this,this.textInputMouseDown));this.textField.addEventListener(tc.KEY_UP, k(this,this.textInputOnKeyUp));this.textField.addEventListener(tc.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(Nc.FOCUS_IN,k(this,this.textInputDidFocusIn)); this.textField.removeEventListener(Nc.FOCUS_OUT,k(this,this.textInputDidFocusOut));this.textField.removeEventListener(A.MOUSE_DOWN,k(this,this.textInputMouseDown));this.textField.removeEventListener(tc.KEY_UP,k(this,this.textInputOnKeyUp));this.textField.removeEventListener(tc.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){T.getInstance().dispatchEvent(new la(x.COMPONENT_KEYUP,new na(this,null,a)))},textInputOnKeyDown:function(a){T.getInstance().dispatchEvent(new la(x.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__:qf}); var Fk=function(a,b){null==b&&(b=22);null==a&&(a=100);qf.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"]=Fk;Fk.__name__=["first2","controls","TSPageNumberText"];Fk.__super__=qf;Fk.prototype=r(qf.prototype,{_pageFirst:null,_pageIndex:null,_pageCount:null,_flipBook:null,_cacheText:null,configUI_PageNumber:function(){Ra.getInstance().hasKey(C.PageNumberColor)&& (this._textColor=V.PageNumberColor());null!=this.textField&&(this.textField._color=this._textColor,this.textField.updateTextFormat())},resize:function(a,b){qf.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=t.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__:Cm});var gd=function(){T.call(this);this._eventMode=!1;this._actionMap=new ga};g["first2.events.TSActionCenter"]=gd;gd.__name__=["first2","events","TSActionCenter"];gd.getInstance=function(){null==gd.Instance&&(gd.Instance=new gd,gd.Instance.setEventMode(!1));return gd.Instance};gd.__super__=T;gd.prototype=r(T.prototype,{_actionMap:null,getMap:function(){return this._actionMap},addActionListener:function(a,b,c){return T.prototype.addEventListener.call(this, a,b,c)},removeActionListener:function(a,b,c){return T.prototype.removeEventListener.call(this,a,b,c)},removeListenerType:function(a){return T.prototype.removeListenerType.call(this,a)},removeListenerTarget:function(a){return T.prototype.removeListenerTarget.call(this,a)},dispatchAction:function(a,b,c){T.prototype.dispatchInvoke.call(this,a,c,b)},__class__:gd});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 tq=function(){};g["first2.events.TSActionConst"]=tq;tq.__name__=["first2","events","TSActionConst"];var xd=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 ga;this._cachedMap=new ga;this.installEventListener()};g["first2.manage.TSCachedManage"]=xd;xd.__name__=["first2", "manage","TSCachedManage"];xd.getInstance=function(){null==xd.Instance&&(xd.Instance=new xd);return xd.Instance};xd.destroyCachedBitmapData=function(a){var b=null;if(null!=a){if(null!=a.parent)try{a.parent.removeChild(a)}catch(c){if(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))null;else throw c;}b=a.bitmapData;null!=b&&m.__instanceof(b,hb)&&b.dispose();a.bitmapData=null}};xd.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=T.getInstance();a.addEventListener(x.PAGEIMAGE_LOADER,this,k(this,this.onBookPageImageLoader));a.addEventListener(x.PAGEIMAGE_UNLOADER,this,k(this,this.onBookPageImageUnloader));a.addEventListener(x.PAGEIMAGE_THUMBSHOW,this,k(this,this.onBookPageThumbWillShow));a.addEventListener(x.FLIPBOOK_DIDCHANGED,this,k(this,this.onFlipBookDidChanged))},uninstallEventListener:function(){var a; a=T.getInstance();a.removeEventListener(x.PAGEIMAGE_LOADER,this,k(this,this.onBookPageImageLoader));a.removeEventListener(x.PAGEIMAGE_UNLOADER,this,k(this,this.onBookPageImageUnloader));a.removeEventListener(x.PAGEIMAGE_THUMBSHOW,this,k(this,this.onBookPageThumbWillShow));a.removeEventListener(x.FLIPBOOK_DIDCHANGED,this,k(this,this.onFlipBookDidChanged))},arrayContainsValue:function(a,b){return-1!=Zf.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==Hb.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,$a))try{m.__cast(a._data._trigger,$a)}catch(c){if(D.lastException=c,c instanceof q&&(c=c.val),!m.__instanceof(c,L))throw c;}else if(m.__instanceof(b,We))try{m.__cast(a._data._trigger,We)}catch(d){if(D.lastException=d,d instanceof q&&(d=d.val),!m.__instanceof(d,L))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,$a)&&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(D.lastException=c,c instanceof q&&(c=c.val),!m.__instanceof(c, L))throw c;}var d;try{d=m.__cast(a._data._trigger,of)}catch(e){if(D.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,L))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;Ab.delay(function(){if(!(null==b._loadList||0>=b._loadList.length)){for(var a=[],c=0,d=b._loadList.length;cp)&&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 Gk=function(a){this._isMaterialLoad=!1;this._materialUrl=null;this._materialUrl=a;this._materialText=null;this._isMaterialLoad=!1};g["first2.material.TSMaterialIcons"]=Gk;Gk.__name__=["first2","material","TSMaterialIcons"]; Gk.prototype={_materialUrl:null,_materialText:null,_isMaterialLoad:null,unloadMaterialXML:function(){this._isMaterialLoad=!1;var a=null,a=T.getInstance();null!=this._materialText&&(a.dispatchEvent(new la(x.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){D.lastException= f,f instanceof q&&(f=f.val),e=null}var h=null,h=T.getInstance();null!=e?(c._materialText=e,c._isMaterialLoad=!0,h.dispatchEvent(new la(x.MATERIALXML_LOAD,new na(c,a,null))),null!=b&&b(null!=c._materialText?c:null)):(c._isMaterialLoad=!1,h.dispatchEvent(new la(x.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: X.replace(c,"./",sd.FILE_PATH)},__class__:Gk};var Yf=function(a){Gk.call(this,a);Z.getInstance();this._materialUrl=sd.XMLFILE_PATH};g["first2.material.TSMaterialClass"]=Yf;Yf.__name__=["first2","material","TSMaterialClass"];Yf.getInstance=function(){null==Yf.Instance&&(Yf.Instance=new Yf);return Yf.Instance};Yf.__super__=Gk;Yf.prototype=r(Gk.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,rb)}catch(d){if(D.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,L))c=null;else throw d;}null!=c&&(b=new rb(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;hd.getInstance().getBitmapImage(h,p,null,!0);return h},b,c,d)},__class__:Yf});var El=function(){};g["first2.material.TSMaterialMode"]= El;El.__name__=["first2","material","TSMaterialMode"];var sd=function(){};g["first2.material.TSMaterialConst"]=sd;sd.__name__=["first2","material","TSMaterialConst"];var uq=function(a){E.call(this);this._mainSprite=a};g["first2.samples.TestButtonSprite"]=uq;uq.__name__=["first2","samples","TestButtonSprite"];uq.__super__=E;uq.prototype=r(E.prototype,{_mainSprite:null,testCode:function(){var a;a=T.getInstance();a.setEventSprite(this);a.setEventMode(!1);a.addEventListener(x.BASEBUTTON_DOWN,this,k(this, this.onBsaeButtonDown));a.addEventListener(x.BASEBUTTON_UP,this,k(this,this.onBsaeButtonUp));a.addEventListener(x.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,pa.current.stage.stageWidth,pa.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__:uq});var vq=function(a){W.call(this);this._mainSprite=a};g["first2.samples.TestListSprite"]=vq;vq.__name__=["first2","samples","TestListSprite"];vq.__super__=W;vq.prototype=r(W.prototype,{_mainSprite:null,testCode:function(){var a;a=T.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,pa.current.stage.stageWidth,pa.current.stage.stageHeight);this._mainSprite.get_graphics().endFill(); a=null;a=new hi(!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(K.LangItems);if(null==c||c.isValid())return this.get(b);c=c.getNodes(K.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(K.LangItemKey);if(d==f.toLowerCase()){c=e.getNodeValue(K.LangItemValue);if(null!=c)return c;break}}}return this.get(b)},isInit:null, initSourceEnglishLanguage:function(){1!=this.isInit&&(this.isInit=!0,this.set(da.ButtonLinkLogo,""),this.set(da.ButtonOpen,"Open"),this.set(da.ButtonSave,"Save"),this.set(da.ButtonExit,"Exit"),this.set(da.ButtonEvent,"Event"),this.set(da.ButtonRedo,"Redo"),this.set(da.ButtonUndo,"Undo"),this.set(da.ButtonAbout,"About"),this.set(da.ButtonCut,"Cut"),this.set(da.ButtonCopy,"Copy"),this.set(da.ButtonPaste,"Paste"),this.set(da.ButtonClear,"Clear"),this.set(da.ButtonFirst,"First Page"),this.set(da.ButtonNextPage, "Next Page"),this.set(da.ButtonPreviousPage,"Previous Page"),this.set(da.ButtonLast,"Last Page"),this.set(da.ButtonPrint,"Print"),this.set(da.ButtonDownload,"Download"),this.set(da.ButtonSearch,"Search"),this.set(da.ButtonClearSearch,"Clear Search"),this.set(da.ButtonBookmark,"Bookmark"),this.set(da.ButtonHelp,"Help"),this.set(da.ButtonFullScreen,"FullScreen"),this.set(da.ButtonExitFullScreen,"Exit FullScreen"),this.set(da.ButtonSoundOn,"Sound On"),this.set(da.ButtonSoundOff,"Sound Off"),this.set(da.ButtonShare, "Share"),this.set(da.ButtonSocialShare,"Social Share"),this.set(da.ButtonZoomIn,"Zoom In"),this.set(da.ButtonZoomOut,"Zoom Out"),this.set(da.ButtonZoomUp,"Zoom Up"),this.set(da.ButtonZoomDown,"Zoom Down"),this.set(da.ButtonAutoFlip,"AutoFlip"),this.set(da.ButtonStopAutoFlip,"Stop AutoFlip"),this.set(da.ButtonGotoHome,"GotoHome"),this.set(da.ButtonGotoPage,"GotoPage"),this.set(da.ButtonSelectText,"Select Text"),this.set(da.ButtonMusicOn,"Music On"),this.set(da.ButtonMusicOff,"Music Off"),this.set(da.ButtonMoreOptions, "More Options"),this.set(da.ButtonMoreOptions2,"More Options"),this.set(da.ButtonThumbnails,"Thumbnails"),this.set(da.ButtonSwitchLanguage,"Switch Language"),this.set(da.ButtonSinglePage,"Single Page"),this.set(da.ButtonDoublePage,"Double Page"),this.set(da.LabelSearchPages,"Pages:"),this.set(da.LabelSearchItems,"Items"),this.set(da.LabelSearchPageIndex,"Page"),this.set(da.LabelWindowLogin,"Login"),this.set(da.LabelLoginPassword,"Password:"),this.set(da.LabelLoginButton,"Login"),this.set(da.LabelCancelButton, "Cancel"))},__class__:Wd};var Hk=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"]=Hk;Hk.__name__=["first2","template","TSTemplateBase"];Hk.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=T.getInstance(); null!=this._templateText&&(a.dispatchEvent(new la(x.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){D.lastException=h,h instanceof q&&(h=h.val),d=null}var p=null,p=T.getInstance();null!=d?(c._templateText=d,c._isTemplateLoad=!0,c.resetTemplateInfoForReload(),p.dispatchEvent(new la(x.TEMPLATEXML_LOAD,new na(c,a,null))),null!=b&&b(null!=c._templateText?c:null)):(c._isTemplateLoad=!1,p.dispatchEvent(new la(x.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(ca.Config);null!=a&&0==a.isValid()&&this.resetTemplateItemByXmlConfig(a);a=this._templateText.getNodeClass(ca.ExtConfig);null!=a&&0==a.isValid()&&this.resetTemplateItemByXmlExtConfig(a);a=this._templateText.getNodeClass(ca.Component);null!=a&&0==a.isValid()&&this.resetTemplateItemByXmlComponent(a);var a=null,b=this._templateText.getNodeClass(ca.Thumbnails);null!=b&&0==b.isValid()&&(a=b.getNodeClass(ca.Config)); null!=a&&0==a.isValid()&&this.resetTemplateItemByXmlConfig(a);a=null;b=this._templateText.getNodeClass(ca.SearchList);null!=b&&0==b.isValid()&&(a=b.getNodeClass(ca.Config));null!=a&&0==a.isValid()&&this.resetTemplateItemByXmlConfig(a)}},getItemValueByItemXml:function(a){return sa.getItemTypeValue(a)},resetTemplateItemByXmlConfig:function(a){if(null!=a&&!a.isValid()){var b=Z.getInstance(),c=Ra.getInstance(),d=Xc.getInstance();for(a=a.getNodes(ca.KeyItem);a.hasNext();){var e=a.next();if(null!=e){var f= Ua.getAttrString(e,ca.KeyName),e=this.getItemValueByItemXml(e);c.set(f,e);f=d.getMapKey(f);null!=f&&0a.length?null:X.startsWith(a,"./files/")?""+a:b=X.startsWith(a,this._templatePath)?""+a:X.replace(a, "{0}",this._templateName)},getTemplateLocalUrlByKey:function(a){if(null==a||""==a)return null;var b=this.templateNodeClass(ca.Resource);if(null==b||b.isValid())return null;a=sa.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=null;else throw c;}if(null==b)return null;a=b.getNodeValue(ca.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(ca.KeyStage),null!=d&&1!=d.isValid()&&(c=d.getNodeClass(ca.KeyIconKey),null!=c&&0==c.isValid()&&(c=c.stringValue(null),function(a){e._imageUrl=a;return!0}(this.getTemplateLocalUrlByKey(c))), c=d.getNodeClass(ca.KeyIconDown),null!=c&&0==c.isValid()&&(c=c.stringValue(null),function(a){e._imageDownUrl=a;return!0}(this.getTemplateLocalUrlByKey(c))),c=d.getNodeClass(ca.KeyIconCheck),null!=c&&0==c.isValid()&&(c=c.stringValue(null),function(a){e._imageCheckUrl=a;return!0}(this.getTemplateLocalUrlByKey(c))),c=d.getNodeClass(ca.KeyLangKey),null!=c&&0==c.isValid()&&(c=c.stringValue(null),null!=c&&(e._languageKey=c)),c=d.getNodeClass(ca.KeyLangDown),null!=c&&0==c.isValid()&&(c=c.stringValue(null), null!=c&&(e._languageDownKey=c)),d=d.getNodeClass(ca.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(ca.KeyAction),null!=e&&e.hasAttr(ca.KeyActionType))){c=e.getAttrString(ca.KeyEventType); d=e.getAttrString(ca.KeyActionType);e=e.getNodeValue(ca.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(ca.KeyType);a.getAttrString(ca.KeyAlgin);a.getNodeValue(ca.KeyEnable);c=a.getNodeClass(ca.KeySize);var f=a.getNodeClass(ca.KeyStage),h=a.getNodeClass(ca.KeyAction); null!=c&&c.hasAttr(ca.KeyWidth)&&(b=c.getAttrFloat(ca.KeyWidth,0),c=c.getAttrFloat(ca.KeyHeight,0),e.resize(b,c));null!=f&&0==f.isValid()&&(b=f.getNodeValue(ca.KeyTextKey),c=f.getNodeValue(ca.KeyTextDown),d=f.getNodeValue(ca.KeyTextCheck),e._textKey=null!=b?b:null,e._textDown=null!=c?c:null,e._textCheck=null!=d?d:null,b=f.getNodeValue(ca.KeyImage),c=f.getNodeValue(ca.KeyImageDown),d=f.getNodeValue(ca.KeyImageCheck),e._imageUrl=this.getTemplateSourceUrl(b),e._imageDownUrl=this.getTemplateSourceUrl(c), e._imageCheckUrl=this.getTemplateSourceUrl(d),b=f.getAttrString(ca.KeyCanCheck),e._canCheck=sa.parseBool(b),0!=e._canCheck&&(e._isDrawCheck=e._canCheck),b=f.getNodeValue(ca.KeyText),c=f.getAttrString(ca.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 Yi(0,0);a.getNodeValue(ca.KeyType);a.getAttrString(ca.KeyAlgin);a.getNodeValue(ca.KeyEnable);c=a.getNodeClass(ca.KeySize);var f=a.getNodeClass(ca.KeyStage),h=a.getNodeClass(ca.KeyAction);null!=c&&c.hasAttr(ca.KeyWidth)&&(b=c.getAttrFloat(ca.KeyWidth,0),c=c.getAttrFloat(ca.KeyHeight,0),e.resize(b,c));null!=f&&0==f.isValid()&&(b=f.getNodeValue(ca.KeyImage),c= f.getNodeValue(ca.KeyImageDown),d=f.getNodeValue(ca.KeyImageCheck),e._imageUrl=this.getTemplateSourceUrl(b),e._imageDownUrl=this.getTemplateSourceUrl(c),e._imageCheckUrl=this.getTemplateSourceUrl(d),b=f.getAttrString(ca.KeyCanCheck),f.getNodeValue(ca.KeyText),f.getAttrString(ca.KeyButtonStage),c=f.getNodeValue(ca.KeyText),e._textKey=null!=c?c:"",e._canCheck=sa.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=V.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 Fk(0,0);a.getNodeValue(ca.KeyType);a.getAttrString(ca.KeyAlgin);a.getNodeValue(ca.KeyEnable);c=a.getNodeClass(ca.KeySize);var f=a.getNodeClass(ca.KeyStage),h=a.getNodeClass(ca.KeyAction); null!=c&&c.hasAttr(ca.KeyWidth)&&(b=c.getAttrFloat(ca.KeyWidth,0),c=c.getAttrFloat(ca.KeyHeight,0),e.resize(b,c));null!=f&&f.hasAttr(ca.KeyTextStage)&&(b=f.getAttrString(ca.KeyCanCheck),e._canCheck=sa.parseBool(b),0!=e._canCheck&&(e._isDrawCheck=e._canCheck),c=f.getNodeValue(ca.KeyText),d=f.getNodeValue(ca.KeyTextSize),b=f.getNodeValue(ca.KeyTextColor),f.getAttrString(ca.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("+t.string(a.type)+","+t.string(a.colors)+","+t.string(a.alphas)+","+t.string(a.ratios)+","+this.newMatrix(a.matrix)+","+t.string(a.spread)+","+t.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)+","+t.string(a.scaleMode)+","+t.string(a.capsStyle)+","+t.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__:Dm});var zc=g["openfl.display.CapsStyle"]={__ename__:["openfl","display","CapsStyle"],__constructs__:["NONE","ROUND","SQUARE"]};zc.NONE=["NONE",0];zc.NONE.toString=B;zc.NONE.__enum__=zc;zc.ROUND=["ROUND",1];zc.ROUND.toString=B;zc.ROUND.__enum__=zc;zc.SQUARE=["SQUARE",2];zc.SQUARE.toString=B;zc.SQUARE.__enum__=zc;var jg=g["openfl.display.InterpolationMethod"]={__ename__:["openfl","display","InterpolationMethod"],__constructs__:["RGB","LINEAR_RGB"]};jg.RGB=["RGB",0];jg.RGB.toString=B;jg.RGB.__enum__= jg;jg.LINEAR_RGB=["LINEAR_RGB",1];jg.LINEAR_RGB.toString=B;jg.LINEAR_RGB.__enum__=jg;var uc=g["openfl.display.JointStyle"]={__ename__:["openfl","display","JointStyle"],__constructs__:["MITER","ROUND","BEVEL"]};uc.MITER=["MITER",0];uc.MITER.toString=B;uc.MITER.__enum__=uc;uc.ROUND=["ROUND",1];uc.ROUND.toString=B;uc.ROUND.__enum__=uc;uc.BEVEL=["BEVEL",2];uc.BEVEL.toString=B;uc.BEVEL.__enum__=uc;var yb=g["openfl.display.LineScaleMode"]={__ename__:["openfl","display","LineScaleMode"],__constructs__:["HORIZONTAL", "NONE","NORMAL","VERTICAL"]};yb.HORIZONTAL=["HORIZONTAL",0];yb.HORIZONTAL.toString=B;yb.HORIZONTAL.__enum__=yb;yb.NONE=["NONE",1];yb.NONE.toString=B;yb.NONE.__enum__=yb;yb.NORMAL=["NORMAL",2];yb.NORMAL.toString=B;yb.NORMAL.__enum__=yb;yb.VERTICAL=["VERTICAL",3];yb.VERTICAL.toString=B;yb.VERTICAL.__enum__=yb;var Ha=g["openfl.display.SpreadMethod"]={__ename__:["openfl","display","SpreadMethod"],__constructs__:["REPEAT","REFLECT","PAD"]};Ha.REPEAT=["REPEAT",0];Ha.REPEAT.toString=B;Ha.REPEAT.__enum__= Ha;Ha.REFLECT=["REFLECT",1];Ha.REFLECT.toString=B;Ha.REFLECT.__enum__=Ha;Ha.PAD=["PAD",2];Ha.PAD.toString=B;Ha.PAD.__enum__=Ha;var Bc=function(a,b){this.buffer=null==a?new ib:a};g["format.gfx.GfxBytes"]=Bc;Bc.__name__=["format","gfx","GfxBytes"];Bc.baseCoder=null;Bc.fromString=function(a){null==Bc.baseCoder&&(Bc.baseCoder=new Em(bc.ofString(Bc.base64)));var b=new ib;b.writeUTF(a);return new Bc(b)};Bc.__super__=rf;Bc.prototype=r(rf.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 Bj;b.type=this.buffer.readByte();for(var c=this.buffer.readByte(),d=0;da?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);this.buffer.writeByte(a.colors.length);for(var b=0,c=a.colors.length;b< c;){var d=b++;this.writeRGB(t["int"](Fa.toFloat(a.colors[d])));this.pushClipped(255*a.alphas[d]);this.pushClipped(a.ratios[d])}this.buffer.writeFloat(a.matrix.a);this.buffer.writeFloat(a.matrix.b);this.buffer.writeFloat(a.matrix.c);this.buffer.writeFloat(a.matrix.d);this.buffer.writeFloat(a.matrix.tx);this.buffer.writeFloat(a.matrix.ty);this.buffer.writeByte(a.spread);this.buffer.writeByte(a.interp);this.buffer.writeFloat(a.focus)},beginFill:function(a,b){this.buffer.writeByte(10);this.writeRGB(a); this.buffer.writeFloat(b)},endFill:function(){this.buffer.writeByte(12)},lineStyle:function(a){this.buffer.writeByte(20);this.buffer.writeFloat(a.thickness);this.writeRGB(a.color);this.buffer.writeFloat(a.alpha);this.buffer.writeByte(a.pixelHinting?1:0);this.buffer.writeByte(a.scaleMode);this.buffer.writeByte(a.capsStyle);this.buffer.writeByte(a.jointStyle);this.buffer.writeFloat(a.miterLimit)},endLineStyle:function(){this.buffer.writeByte(21)},moveTo:function(a,b){this.buffer.writeByte(30);this.buffer.writeFloat(a); this.buffer.writeFloat(b)},lineTo:function(a,b){this.buffer.writeByte(31);this.buffer.writeFloat(a);this.buffer.writeFloat(b)},curveTo:function(a,b,c,d){this.buffer.writeByte(32);this.buffer.writeFloat(a);this.buffer.writeFloat(b);this.buffer.writeFloat(c);this.buffer.writeFloat(d)},__class__:Bc});var Gm=function(){this.extent=null};g["format.gfx.GfxExtent"]=Gm;Gm.__name__=["format","gfx","GfxExtent"];Gm.__super__=rf;Gm.prototype=r(rf.prototype,{extent:null,addExtent:function(a,b){null==this.extent? this.extent=new ia(a,b,0,0):(athis.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__:Gm});var Jk=function(a){this.graphics=a};g["format.gfx.GfxGraphics"]=Jk; Jk.__name__=["format","gfx","GfxGraphics"];Jk.__super__=rf;Jk.prototype=r(rf.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__:Jk});var Hm=function(){};g["format.gfx.GfxTextFinder"]=Hm;Hm.__name__=["format","gfx","GfxTextFinder"];Hm.__super__=rf;Hm.prototype=r(rf.prototype,{text:null,geometryOnly:function(){return!0},renderText:function(a){null==this.text&&(this.text=a)},__class__:Hm});var Bj=function(){this.type=aa.LINEAR;this.colors=[];this.alphas=[];this.ratios= [];this.matrix=new ka;this.spread=Ha.PAD;this.interp=jg.RGB;this.focus=0};g["format.gfx.Gradient"]=Bj;Bj.__name__=["format","gfx","Gradient"];Bj.prototype={type:null,colors:null,alphas:null,ratios:null,matrix:null,spread:null,interp:null,focus:null,__class__:Bj};var Fm=function(){this.thickness=1;this.color=0;this.alpha=1;this.pixelHinting=!1;this.scaleMode=yb.NORMAL;this.capsStyle=zc.ROUND;this.jointStyle=uc.ROUND;this.miterLimit=3};g["format.gfx.LineStyle"]=Fm;Fm.__name__=["format","gfx","LineStyle"]; Fm.prototype={thickness:null,color:null,alpha:null,pixelHinting:null,scaleMode:null,capsStyle:null,jointStyle:null,miterLimit:null,__class__:Fm};var kg=g["format.svg.FillType"]={__ename__:["format","svg","FillType"],__constructs__:["FillGrad","FillSolid","FillNone"]};kg.FillGrad=function(a){a=["FillGrad",0,a];a.__enum__=kg;a.toString=B;return a};kg.FillSolid=function(a){a=["FillSolid",1,a];a.__enum__=kg;a.toString=B;return a};kg.FillNone=["FillNone",2];kg.FillNone.toString=B;kg.FillNone.__enum__= kg;var Im=function(a){Bj.call(this);this.type=a;this.radius=0;this.gradMatrix=new ka;this.y2=this.x2=this.y1=this.x1=0};g["format.svg.Grad"]=Im;Im.__name__=["format","svg","Grad"];Im.__super__=Bj;Im.prototype=r(Bj.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 ka;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__:Im});var Cj=function(){this.name="";this.children=[]};g["format.svg.Group"]=Cj;Cj.__name__=["format","svg","Group"];Cj.prototype={hasGroup:function(a){return null!=this.findGroup(a)},findGroup:function(a){for(var b=0,c=this.children;ba;){var b=a++;Jb.sCommandArgs[b]=this.commandArgs(b)}}};g["format.svg.PathParser"]=Jb;Jb.__name__=["format","svg","PathParser"];Jb.sCommandArgs=null;Jb.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 g=a.length,k=!1;c<=g;){var l;l=c==g?32:Y.cca(a,c);var m;m=0l?Jb.sCommandArgs[l]:-1;if(-1==m)throw new q("failed parsing path near '"+Y.substr(a,c,null)+"'");if(-2==m)c++;else if(-3>=m){l=c+1;var P=-1,n=-5==m;-6==m&&(P=0,n=!0);for(;lm||127h||(c=t.parseFloat(Y.substr(a,c,l-c)),d.push(c));c=l}else h=l,p=m,k=!1,f=c,d=[],c++;P=l=0;if(0<=h&&p==d.length){b&&null!=this.prev&&(l=this.prev.prevX(),P=this.prev.prevY());this.prev=this.createCommand(h,d);if(null==this.prev)throw new q("Unknown command "+String.fromCharCode(h)+" near '"+Y.substr(a,f,null)+"'");if(b&&4==this.prev.getType())for(d=this.prev.toQuadratics(l,P),f=0;f=a)return-3;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-2;case "-":return-4;case "+":return-4; case "E":case "e":return-6;case ".":return-5}return-1},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 Dd(b[0],b[1]);case 108:return new Dd(b[0]+this.prevX(),b[1]+this.prevY());case 72:return new Dd(b[0],this.prevY());case 104:return new Dd(b[0]+this.prevX(),this.prevY());case 86:return new Dd(this.prevX(),b[0]);case 118:return new Dd(this.prevX(),b[0]+this.prevY());case 67:return new ri(b[0],b[1],b[2],b[3],b[4],b[5]);case 99:var c=this.prevX(),d=this.prevY();return new ri(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 ri(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 ri(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 Kk(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 Kk(c,d,b[0],b[1],b[2],0!=b[3],0!=b[4],b[5]+c,b[6]+d);case 90:return new Dd(this.lastMoveX,this.lastMoveY);case 122:return new Dd(this.lastMoveX,this.lastMoveY)}return null},__class__:Jb};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=r(Yc.prototype,{getType:function(){return 1},__class__:Dh});var Dd=function(a,b){Yc.call(this, a,b)};g["format.svg.DrawSegment"]=Dd;Dd.__name__=["format","svg","DrawSegment"];Dd.__super__=Yc;Dd.prototype=r(Yc.prototype,{toGfx:function(a,b){b.setLast(this.x,this.y);a.lineTo(b.lastX,b.lastY)},getType:function(){return 2},__class__:Dd});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=r(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 ri=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"]=ri;ri.__name__=["format","svg","CubicSegment"];ri.__super__=Yc;ri.prototype=r(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),P=this.Interp(g,h,.75),n=this.Interp(k,p,.75),q=(g-c)/16,r=(k-d)/16,c=this.Interp(c,e,.375),d=this.Interp(d,f,.375),f=this.Interp(l,P,.375)-q,e=this.Interp(m,n,.375)-r,q=this.Interp(P,l,.375)+q,r=this.Interp(n,m,.375)+r, h=this.Interp(g,h,.375),p=this.Interp(k,p,.375),l=.5*(l+P),m=.5*(m+n),n=.5*(q+h),P=.5*(r+p);a.curveTo(c,d,.5*(c+f),.5*(d+e));a.curveTo(f,e,l,m);a.curveTo(q,r,n,P);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,P=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),q=this.Interp(this.y,this.cy2,.375),d=.5*(d+f),e=.5*(e+h),h=.5*(p+n),f=.5*(g+q);c.push(new Sc(k,l,.5*(k+m),.5*(l+P)));c.push(new Sc(m,P,d,e));c.push(new Sc(p,g,h,f));c.push(new Sc(n,q,this.x,this.y));return c},getType:function(){return 4},__class__:ri});var Kk=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"]=Kk;Kk.__name__=["format", "svg","ArcSegment"];Kk.__super__=Yc;Kk.prototype=r(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__:xq};var Nb=function(a,b){null==b&&(b=!1);Cj.call(this);var c=a.firstElement(),d;if(!(d=null==c)){if(c.nodeType!=ba.Element)throw new q("Bad node type, expected Element but found "+c.nodeType);if(d="svg"!=c.nodeName){if(c.nodeType!=ba.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!=ba.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 ga;this.mPathParser=new Jb;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);d=new ia(0,0,this.width,this.height);c.exists("viewBox")&&(d=c.get("viewBox"),d=-1!=d.indexOf(",")?d.split(","):d.split(" "),d=new ia(t.parseFloat(X.trim(d[0])), t.parseFloat(X.trim(d[1])),t.parseFloat(X.trim(d[2])),t.parseFloat(X.trim(d[3]))));this.loadGroup(this,c,new ka(1,0,0,1,-d.x,-d.y),null)};g["format.svg.SVGData"]=Nb;Nb.__name__=["format","svg","SVGData"];Nb.__super__=Cj;Nb.prototype=r(Cj.prototype,{height:null,width:null,mConvertCubics:null,mGrads:null,mPathParser:null,trimToFloat:function(a){return t.parseFloat(X.trim(a))},applyTransform:function(a,b){var c=1;Nb.mTranslateMatch.match(b)?a.translate(t.parseFloat(Nb.mTranslateMatch.matched(1)),t.parseFloat(Nb.mTranslateMatch.matched(2))): Nb.mScaleMatch.match(b)?(c=t.parseFloat(Nb.mScaleMatch.matched(1)),a.scale(c,c)):Nb.mMatrixMatch.match(b)?(c=new ka(t.parseFloat(Nb.mMatrixMatch.matched(1)),t.parseFloat(Nb.mMatrixMatch.matched(2)),t.parseFloat(Nb.mMatrixMatch.matched(3)),t.parseFloat(Nb.mMatrixMatch.matched(4)),t.parseFloat(Nb.mMatrixMatch.matched(5)),t.parseFloat(Nb.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!=ba.Element)throw new q("Bad node type, expected Element but found "+e.nodeType);f=e.nodeName;"svg:"==Y.substr(f,0,4)&&(f=Y.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 Im(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(Y.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(t["int"](255*t.parseFloat(c.get("offset")))); this.mGrads.set(d,b)},loadGroup:function(a,b,c,d){b.exists("transform")&&(c=new ka(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);if(b.exists("opacity")){var e=b.get("opacity");null==d&&(d=new ga);if(null!=R.opacity?d.existsReserved("opacity"):d.h.hasOwnProperty("opacity"))e=t.string(parseFloat(e)*t.parseFloat(null!=R.opacity?d.getReserved("opacity"):d.h.opacity)); null!=R.opacity?d.setReserved("opacity",e):d.h.opacity=e}for(b=b.elements();b.hasNext();){var e=b.next(),f;if(e.nodeType!=ba.Element)throw new q("Bad node type, expected Element but found "+e.nodeType);f=e.nodeName;"svg:"==Y.substr(f,0,4)&&(f=Y.substr(f,4,null));"defs"==f?this.loadDefs(e):"g"==f?e.exists("display")&&"none"==e.get("display")||a.children.push(Nf.DisplayGroup(this.loadGroup(new Cj,e,c,d))):"path"==f||"line"==f||"polyline"==f?a.children.push(Nf.DisplayPath(this.loadPath(e,c,d,!1,!1))): "rect"==f?a.children.push(Nf.DisplayPath(this.loadPath(e,c,d,!0,!1))):"polygon"==f?a.children.push(Nf.DisplayPath(this.loadPath(e,c,d,!1,!1))):"ellipse"==f?a.children.push(Nf.DisplayPath(this.loadPath(e,c,d,!1,!0))):"circle"==f?a.children.push(Nf.DisplayPath(this.loadPath(e,c,d,!1,!0,!0))):"text"==f?a.children.push(Nf.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 ka(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 wq;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= this.getStyleAndConvert("stroke-linecap",a,h,null,function(a){a=new ga;a.set("round",zc.ROUND);a.set("square",zc.SQUARE);a.set("butt",zc.NONE);return a}(this));c.joint_style=this.getStyleAndConvert("stroke-linejoin",a,h,null,function(a){a=new ga;a.set("bevel",uc.BEVEL);a.set("round",uc.ROUND);a.set("miter",uc.MITER);return a}(this));c.miter_limit=this.getFloatStyle("stroke-miterlimit",a,h,3);c.segments=[];c.matrix=b;c.name=p;if(d)f=a.exists("x")?t.parseFloat(a.get("x")):0,b=a.exists("y")?t.parseFloat(a.get("y")): 0,d=t.parseFloat(a.get("width")),e=t.parseFloat(a.get("height")),h=a.exists("rx")?t.parseFloat(a.get("rx")):0,a=a.exists("ry")?t.parseFloat(a.get("ry")):0,0==h||0==a?(c.segments.push(new Dh(f,b)),c.segments.push(new Dd(f+d,b)),c.segments.push(new Dd(f+d,b+e)),c.segments.push(new Dd(f,b+e)),c.segments.push(new Dd(f,b))):(c.segments.push(new Dh(f,b+a)),c.segments.push(new Sc(f,b,f+h,b)),c.segments.push(new Dd(f+d-h,b)),c.segments.push(new Sc(f+d,b,f+d,b+h)),c.segments.push(new Dd(f+d,b+e-a)),c.segments.push(new Sc(f+ d,b+e,f+d-h,b+e)),c.segments.push(new Dd(f+h,b+e)),c.segments.push(new Sc(f,b+e,f,b+e-a)),c.segments.push(new Dd(f,b+a)));else if(e){b=a.exists("cx")?t.parseFloat(a.get("cx")):0;d=a.exists("cy")?t.parseFloat(a.get("cy")):0;var g;g=f&&a.exists("r")?t.parseFloat(a.get("r")):0;e=f?g:a.exists("rx")?t.parseFloat(a.get("rx")):0;h=.7071067811865476*e;p=.41421356237309503*e;a=f?g:a.exists("ry")?t.parseFloat(a.get("ry")):0;f=.7071067811865476*a;g=.41421356237309503*a;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);aa?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(bb.getClassName(b)),this.useCache&&this.cache.push(a),a.hxSerialize(this), this.buf.b+="g"):(this.buf.b+="c",this.serializeString(bb.getClassName(b)),this.useCache&&this.cache.push(a),this.serializeFields(a))}break;case 4:if(m.__instanceof(a,Es))a=bb.getClassName(a),this.buf.b+="A",this.serializeString(a);else if(m.__instanceof(a,Os))this.buf.b+="B",this.serializeString(bb.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(bb.getEnumName(b));this.useEnumIndex?(this.buf.b+=":",this.buf.b+=t.string(a[1])):this.serializeString(a[0]);this.buf.b+=":";b=a.length;this.buf.b+=t.string(b-2);for(c=2;cd||57b||101==b||69==b)this.pos++;else break}return t.parseFloat(Y.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 bb.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=bb.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=bb.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 Mg;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)a.add(this.unserialize());this.pos++;return a;case 98:a=new ga;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 Ud;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 lg;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=Y.substr(this.buf,this.pos,19),a=Y.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[X.fastCodeAt(d,f++)];b.set(c++,k<<4|g>>2);k=e[X.fastCodeAt(d,f++)];b.set(c++,g<<6|k)}2<= h&&(k=e[X.fastCodeAt(d,f++)],p=e[X.fastCodeAt(d,f++)],b.set(c++,k<<2|p>>4),3==h&&(d=e[X.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=bb.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 Dj=function(){this.a1=1;this.a2=0};g["haxe.crypto.Adler32"]=Dj;Dj.__name__=["haxe","crypto","Adler32"];Dj.read=function(a){var b=new Dj,c=a.readByte(),d=a.readByte(),e=a.readByte();a=a.readByte();b.a1=e<<8|a;b.a2=c<<8|d;return b};Dj.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|X.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 bc((new nc(b)).buffer)};bc.ofData=function(a){var b=a.hxBytes;return null!=b?b:new bc(a)};bc.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(id.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(id.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__:bc};var Em=function(a){for(var b=a.length,c=1;b>1<>h&p])}0>6)+1,c=[],d=16*b,e=0;e>2]|=Y.cca(a,d)<<(8*a.length+d)%4*8,d++;c[d>>2]|=128<<(8*a.length+d)%4*8;a=8*a.length;b=16*b-2;c[b]=a&255;c[b]|=(a>>>8&255)<<8;c[b]|=(a>>>16&255)<<16;c[b]|=(a>>>24&255)<<24;return c}; si.prototype={bitOR:function(a,b){return(a>>>1|b>>>1)<<1|a&1|b&1},bitXOR:function(a,b){return(a>>>1^b>>>1)<<1|a&1^b&1},bitAND:function(a,b){return(a>>>1&b>>>1)<<1|a&1&b&1},addme:function(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535},hex:function(a){for(var b="",c=0;ce;)var f=e++,b=b+("0123456789abcdef".charAt(d>>8*f+4&15)+"0123456789abcdef".charAt(d>>8*f&15))}return b},rol:function(a,b){return a<>>32-b},cmn:function(a,b,c,d, e,f){return this.addme(this.rol(this.addme(this.addme(b,a),this.addme(d,f)),e),c)},ff:function(a,b,c,d,e,f,h){return this.cmn(this.bitOR(this.bitAND(b,c),this.bitAND(~b,d)),a,b,e,f,h)},gg:function(a,b,c,d,e,f,h){return this.cmn(this.bitOR(this.bitAND(b,d),this.bitAND(c,~d)),a,b,e,f,h)},hh:function(a,b,c,d,e,f,h){return this.cmn(this.bitXOR(this.bitXOR(b,c),d),a,b,e,f,h)},ii:function(a,b,c,d,e,f,h){return this.cmn(this.bitXOR(c,this.bitOR(b,~d)),a,b,e,f,h)},doEncode:function(a){for(var b=1732584193, c=-271733879,d=-1732584194,e=271733878,f=0;fb||0>c||b+c>a.length)throw new q(id.OutsideBounds);a=a.b;var d=b;for(b+=c;db||0>c||b+c>a.length)throw new q(id.OutsideBounds);for(;0b||0>c||b+c>a.length)throw new q(id.OutsideBounds);this.b=a.b;this.pos=b;this.totlen=this.len=c};g["haxe.io.BytesInput"]=lk;lk.__name__= ["haxe","io","BytesInput"];lk.__super__=Jm;lk.prototype=r(Jm.prototype,{b:null,pos:null,len:null,totlen:null,readByte:function(){if(0==this.len)throw new q(new Km);this.len--;return this.b[this.pos++]},readBytes:function(a,b,c){if(0>b||0>c||b+c>a.length)throw new q(id.OutsideBounds);if(0==this.len&&0>>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)};mg.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};mg.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)};mg.doubleToI64=function(a){var b=mg.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 Ej=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=ba.createElement(Y.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=Y.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:P=new Qe;f=8;g=c+1;r=m;break;default:throw new q('Expected "');}break;case 8:switch(m){case 38:P.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==r&&(P.addSub(a,g,c-g),h=P.b,P=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==r&&(P.addSub(a,g,c-g),h=P.b,P=new Qe,e.set(p,h),f=0,h=4);break;default:m==r&&(P.addSub(a,g,c-g),h=P.b,P=new Qe,e.set(p,h),f=0,h=4)}break;case 9:g=c=qh.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(ba.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=Y.substr(a,g,c-g);if(d.nodeType!=ba.Element)throw new q("Bad node type, expected Element but found "+d.nodeType);if(h!=d.nodeName){c=q;if(d.nodeType!=ba.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=ba.createComment(Y.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=ba.createDocType(Y.substr(a,g,c-g)),d.addChild(m),k++,f=1);break;case 14:63==m&&62==a.charCodeAt(c+1)&&(c++,m=Y.substr(a,g+1,c-g-2),m=ba.createProcessingInstruction(m),d.addChild(m),k++,f=1);break;case 18:if(59==m){g=Y.substr(a,g,c-g);if(35==g.charCodeAt(0))g=120==g.charCodeAt(1)?t.parseInt("0"+Y.substr(g,1,g.length-1)):t.parseInt(Y.substr(g,1,g.length-1)),P.b+=String.fromCharCode(g);else if(qh.escapes.exists(g))P.add(qh.escapes.get(g));else{if(b)throw new q("Undefined entity: "+g);P.b+=t.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));P.b+="&";P.addSub(a,g,c-g);c--;g=c+1;f=n}}m=X.fastCodeAt(a,++c)}1==f&&(g=c,f=13);if(13==f){if(c!=g||0==k)P.addSub(a,g,c-g),a=ba.createPCData(P.b),d.addChild(a);return c}if(!b&&18==f&&13==n)return P.b+="&",P.addSub(a,g,c-g),a=ba.createPCData(P.b),d.addChild(a),c;throw new q("Unexpected end");};var Zh=function(a){this.output= new Qe;this.pretty=a};g["haxe.xml.Printer"]=Zh;Zh.__name__=["haxe","xml","Printer"];Zh.print=function(a,b){null==b&&(b=!1);var c=new Zh(b);c.writeNode(a,"");return c.output.b};Zh.prototype={output:null,pretty:null,writeNode:function(a,b){switch(a.nodeType){case 2:this.output.b+=t.string(b+"";this.pretty&&(this.output.b+="");if(a.nodeType!=ba.Document&&a.nodeType!=ba.Element)throw new q("Bad node type, expected Element or Document but found "+ a.nodeType);for(c=Y.iter(a.children);c.hasNext();)d=c.next(),this.writeNode(d,this.pretty?b+"\t":b);this.output.b+=t.string(b+""}else this.output.b+="/>";this.pretty&&(this.output.b+="");break;case 1:if(a.nodeType==ba.Document||a.nodeType==ba.Element)throw new q("Bad node type, unexpected "+a.nodeType);c=a.nodeValue;0!=c.length&&(this.write(b+ X.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!= ba.Document&&a.nodeType!=ba.Element)throw new q("Bad node type, expected Element or Document but found "+a.nodeType);for(a=Y.iter(a.children);a.hasNext();){var b=a.next();switch(b.nodeType){case 0:case 1:return!0;case 2:case 3:if(0!=X.ltrim(function(a){if(b.nodeType==ba.Document||b.nodeType==ba.Element)throw new q("Bad node type, unexpected "+b.nodeType);return b.nodeValue}(this)).length)return!0}}return!1},__class__:Zh};var ng=g["haxe.zip.ExtraField"]={__ename__:["haxe","zip","ExtraField"],__constructs__:["FUnknown", "FInfoZipUnicodePath","FUtf8"]};ng.FUnknown=function(a,b){var c=["FUnknown",0,a,b];c.__enum__=ng;c.toString=B;return c};ng.FInfoZipUnicodePath=function(a,b){var c=["FInfoZipUnicodePath",1,a,b];c.__enum__=ng;c.toString=B;return c};ng.FUtf8=["FUtf8",2];ng.FUtf8.toString=B;ng.FUtf8.__enum__=ng;var og=g["haxe.zip.Huffman"]={__ename__:["haxe","zip","Huffman"],__constructs__:["Found","NeedBit","NeedBits"]};og.Found=function(a){a=["Found",0,a];a.__enum__=og;a.toString=B;return a};og.NeedBit=function(a,b){var c= ["NeedBit",1,a,b];c.__enum__=og;c.toString=B;return c};og.NeedBits=function(a,b){var c=["NeedBits",2,a,b];c.__enum__=og;c.toString=B;return c};var Jq=function(){};g["haxe.zip.HuffTools"]=Jq;Jq.__name__=["haxe","zip","HuffTools"];Jq.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 og.Found(a.h[e]); c<<=1;d+=1;return og.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 Kq(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=Dj.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 Yp=function(a){this.i=a};g["haxe.zip.Reader"]=Yp;Yp.__name__=["haxe","zip","Reader"];Yp.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 Mg;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__:Yp};var Fj=function(a){this.j=this.i=0;this.S=new ib;null!=a&&this.init(a)};g["hu.vpmedia.crypt.ARC4"]= Fj;Fj.__name__=["hu","vpmedia","crypt","ARC4"];Fj.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 qe(c/100);this._slideInTimer.addEventListener(Pc.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 qe(c/100);this._slideOutTimer.addEventListener(Pc.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 qe(b/10);this._fadeOutTimer.addEventListener(Pc.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 qe(b/10);this._fadeInTimer.addEventListener(Pc.TIMER,k(this,this.fadeInTimer));this._fadeInTimer.start()},__class__:Gj};var Lk=function(a){E.call(this);this._movieClip=a;this._background= new E;this.addChild(this._background);this._loaderTrack=new E;this.addChild(this._loaderTrack);this._loaderThumb=new E;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"]=Lk;Lk.__name__=["jaris","display","Loader"];Lk.__super__=E;Lk.prototype=r(E.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(ra.MEDIA_INITIALIZED,k(this,this.onPlayerMediaInitialized));this._player.addEventListener(ra.PLAYBACK_FINISHED,k(this,this.onPlayBackFinished));this._player.addEventListener(ra.PLAY_PAUSE,k(this,this.onPlayerPlay))},__class__:Mm});var ra=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"]=ra;ra.__name__=["jaris","events","PlayerEvents"];ra.__super__=J;ra.prototype=r(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__:ra});var jd=function(){};g["jaris.player.AspectRatio"]= jd;jd.__name__=["jaris","player","AspectRatio"];jd.getAspectRatio=function(a,b){return a/b};var Ob=function(){};g["jaris.player.InputType"]=Ob;Ob.__name__=["jaris","player","InputType"];var Lq=function(a){this._player=a;this._player.addEventListener(ra.PLAYBACK_FINISHED,k(this,this.onPlayerStop))};g["jaris.player.Loop"]=Lq;Lq.__name__=["jaris","player","Loop"];Lq.prototype={_player:null,onPlayerStop:function(a){this._player.togglePlay()},__class__:Lq};var Hj=function(a,b){null==b&&(b=240);null==a&& (a=320);Ga.call(this);this.__width=a;this.__height=b;this.smoothing=!1;this.deblocking=0};g["openfl.media.Video"]=Hj;Hj.__name__=["openfl","media","Video"];Hj.__super__=Ga;Hj.prototype=r(Ga.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=ia.__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,Ga.__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,Ga.__worldTransformDirty++),this.__dirty=!0;this.set_scaleX(1);return this.__width=a},__class__:Hj});var Pm=function(a,b){null==b&&(b=240);null==a&&(a=320);Hj.call(this,a,b)};g["jaris.player.MyVideoEx"]=Pm;Pm.__name__=["jaris","player","MyVideoEx"];Pm.__super__=Hj;Pm.prototype=r(Hj.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__:Pm});var ti=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"]=ti;ti.__name__=["openfl","net","NetStream"];ti.__super__=Qa;ti.prototype=r(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,close:function(){this.__video.pause();this.__video.src="";this.time=0},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 Ab(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){D.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__:ti,__properties__:{set_speed:"set_speed",get_speed:"get_speed"}});var Ij=function(a){ti.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"]=Ij;Ij.__name__=["jaris","player","MyNetStream"];Ij.__super__=ti;Ij.prototype=r(ti.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=t["int"](this.__video.buffered.end(0)),this.bytesTotal=this.__video.duration|0}catch(b){D.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__:Ij,__properties__:r(ti.prototype.__properties__,{set_volume:"set_volume",get_volume:"get_volume"})});var Lm=function(a){Qa.call(this);this._stage=pa.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 qe(1500);this._checkAudioTimer=new qe(100);this._seekPoints=[];this._downloadCompleted=!1;this._startTime=0;this._firstLoad=!0;this._isPlaying=this._videoQualityHigh=this._stopped=!1;this._streamType=tb.FILE;this._type=Ob.VIDEO;this._server="";this._currentAspectRatio="original";this._lastProgress=this._lastTime=this._aspectRatio=0;this._userSettings=new Mq;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 Mk;this._connection.connect(null);this._stream=new Ij(this._connection);this._video=new Pm(t["int"](this._movieClip.get_realWidth()),t["int"](this._movieClip.get_realHeight()));this._movieClip.addChild(this._video);this._video.attachNetStream(this._stream); this._videoMask=new E;this._movieClip.addChild(this._videoMask);this.toggleQuality();this._movieClip.addEventListener(J.ENTER_FRAME,k(this,this.onEnterFrame));this._movieClip.addEventListener(tc.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(Pc.TIMER,k(this,this.hideMouseTimer));this._checkAudioTimer.addEventListener(Pc.TIMER,k(this,this.checkAudioTimer)); this._connection.addEventListener(dc.NET_STATUS,k(this,this.onNetStatus));this._connection.addEventListener(Jj.ASYNC_ERROR,k(this,this.errorHandler));this._connection.addEventListener(Hc.IO_ERROR,k(this,this.errorHandler))};g["jaris.player.Player"]=Lm;Lm.__name__=["jaris","player","Player"];Lm.__super__=Qa;Lm.prototype=r(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:(Nk.hide(),this.callEvents(ra.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(ra.PLAYBACK_FINISHED),this._checkAudioTimer.stop())},onBWDone:function(){}, errorHandler:function(a){this.callEvents(ra.ERROR,a.text)},onNetStatus:function(a){switch(a.info.code){case "connectSuccess":this._streamType==tb.RTMP&&(this._stream=new Ij(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==Ob.VIDEO&&this._video.attachNetStream(this._stream));this.callEvents(ra.CONNECTION_SUCCESS);break;case "NetStream.Play.Error":this.callEvents(ra.CONNECTION_FAILED); break;case "NetStream.Play.Stop":this._streamType!=tb.RTMP&&(this._isPlaying=!1,this._mediaEndReached=!0,this.callEvents(ra.PLAYBACK_FINISHED));break;case "NetStream.Play.Start":this.onConnectFinished(a);this._isPlaying=!0;this._mediaEndReached=!1;this._stream.bytesLoaded==this._stream.bytesTotal&&this._streamType!=tb.RTMP||this.callEvents(ra.BUFFERING);break;case "NetStream.Seek.Notify":this._mediaEndReached=!1;this._streamType==tb.RTMP&&(this._isPlaying=!0,this.callEvents(ra.PLAY_PAUSE));break; case "NetStream.Buffer.Empty":this._stream.bytesLoaded!=this._stream.bytesTotal&&this.callEvents(ra.BUFFERING);break;case "NetStream.Play.canplaythrough":this._stream.bytesLoaded==this._stream.bytesTotal&&(this.callEvents(ra.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,Nk.show(),this.callEvents(ra.MOUSE_SHOW));a.stopPropagation()},onResize:function(a){this.resizeAndCenterPlayer()},onmyFullScreen:function(){this._fullscreen?(this._mouseVisible= !0,this._hideMouseTimer.start()):(Nk.show(),this.callEvents(ra.MOUSE_SHOW),this._mouseVisible=!0);this.resizeAndCenterPlayer();this.callEvents(ra.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=u.fields(a.seekpoints);b=this._aspectRatio&&(this._aspectRatio=this._originalAspectRatio);this.callEvents(ra.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(ra.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!=u.field(this._youtubeLoader.content,"setSize")&&u.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(ra.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==Ob.VIDEO||this._streamType==tb.RTMP?this._stream.seek(a):this._type==Ob.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(ra.PLAY_PAUSE),this._isPlaying;if(""!=this._mediaSource)return this.load(this._mediaSource,this._type, this._streamType,this._server),!0;this.callEvents(ra.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,E);this._org_RealWidth=this._movieClip.get_realWidth();this._org_RealHeight=this._movieClip.get_realHeight(); this._useHardWareScaling&&(cb.get_screenResolutionY(),cb.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 tf,b;this._soundMuted?(this._soundMuted=!1,0this._volume&&(this._streamType==tb.YOUTUBE?(this._volume=(u.field(this._youtubeLoader.content,"getVolume")()+10)/100,1this._volume&&(this._volume=0),u.field(this._youtubeLoader.content,"setVolume")(100*this._volume)):this._type==Ob.VIDEO||this._streamType==tb.RTMP?(this._volume=this._stream.soundTransform.volume-.1,0>this._volume&&(this._volume=0),a.volume=this._volume,this._stream.soundTransform=a):this._type==Ob.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(ra.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 tf;a>this._volume&&this.callEvents(ra.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 ia(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 ka;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 ka;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):t.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):t.string(Math.floor(a%60))):(c=d="00:",b=10>Math.floor(a)?"0"+Math.floor(a):t.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=u.field(a,"name"):this.name="Error";Object.prototype.hasOwnProperty.call(a,"message")?this.message=u.field(a,"message"): this.message=t.string(a);Error.captureStackTrace&&Error.captureStackTrace(this,q)};g["js._Boot.HaxeError"]=q;q.__name__=["js","_Boot","HaxeError"];q.__super__=Error;q.prototype=r(Error.prototype,{val:null,__class__:q});var Kj=function(){};g["js.Browser"]=Kj;Kj.__name__=["js","Browser"];Kj.getLocalStorage=function(){try{var a=window.localStorage;a.getItem("");return a}catch(b){return D.lastException=b,b instanceof q&&(b=b.val),null}};Kj.alert=function(a){window.alert(m.__string_rec(a,""))};var pg= 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(id.OutsideBounds);};g["js.html.compat.DataView"]=Oq;Oq.__name__=["js","html","compat","DataView"];Oq.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 mg.i32ToFloat(this.getInt32(a,b))},getFloat64:function(a,b){var c=this.getInt32(a,b),d=this.getInt32(a+ 4,b);return mg.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,mg.floatToI32(b),c)},setFloat64:function(a,b,c){b=mg.doubleToI64(b);c?(this.setUint32(a,b.low),this.setUint32(a,b.high)):(this.setUint32(a,b.high),this.setUint32(a,b.low))},__class__:Oq};var Fh=function(){};g["js.html.compat.Uint8Array"]=Fh;Fh.__name__=["js","html","compat","Uint8Array"];Fh._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(u.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.listeners.length;0<=--b;)u.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:oa.copyChannel(this,a,b,c,d,e);break;case 1:oa.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:oa.convertToCanvas(this);oa.copyPixels(this,a,b,c,d,e,f);break;case 1:oa.convertToData(this);oa.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 kn.encode(this);case "jpg":case "jpeg":return ln.encode(this,b);case "bmp":return ls.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:oa.fillRect(this,a,b,c);break;case 1:oa.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:oa.floodFill(this,a,b,c,d);break;case 1:oa.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 oa.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 ed(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 oa.getPixel(this,a,b,c);case 1:return oa.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 oa.getPixel32(this,a,b,c);case 1:return oa.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 oa.getPixels(this,a,b);case 1:return oa.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:oa.convertToCanvas(this);oa.merge(this,a,b,c,d,e,f,h);break;case 1:oa.convertToData(this);oa.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:oa.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:oa.scroll(this,a,b);break;case 1:this.copyPixels(this,this.get_rect(),new Vc(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:oa.setPixel(this,a,b,c,d);break;case 1:oa.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:oa.setPixel32(this,a,b,c,d);break;case 1:oa.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:oa.setPixels(this,a,b,c);break;case 1:oa.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 sg(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(Eb.__isPNG(a))c="image/png";else if(Eb.__isJPG(a))c="image/jpeg";else if(Eb.__isGIF(a))c="image/gif";else throw new q("Image tried to read a PNG/JPG ByteArray, but found an invalid header."); this.__fromBase64(Eb.__base64Encode(a),c,b)},__fromFile:function(a,b,c){var d=this,e=new Image;e.onload=function(a){d.buffer=new sg(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 ed(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 Vc),b=a.clone(),b.copyChannel(e,new ed(f.x,f.y, c.width,c.height),new Vc(c.x,c.y),Jc.ALPHA,Jc.ALPHA)),oa.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),oa.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))};oa.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)};oa.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}};oa.fillRect=function(a,b,c,d){oa.convertToCanvas(a);oa.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)}};oa.floodFill=function(a,b,c,d,e){oa.convertToCanvas(a);oa.createImageData(a);jb.floodFill(a,b,c,d,e)};oa.getPixel=function(a,b,c,d){oa.convertToCanvas(a);oa.createImageData(a);return jb.getPixel(a,b,c,d)};oa.getPixel32=function(a,b,c,d){oa.convertToCanvas(a);oa.createImageData(a);return jb.getPixel32(a, b,c,d)};oa.getPixels=function(a,b,c){oa.convertToCanvas(a);oa.createImageData(a);return jb.getPixels(a,b,c)};oa.merge=function(a,b,c,d,e,f,h,p){oa.convertToCanvas(b);oa.createImageData(b);oa.convertToCanvas(a);oa.createImageData(a);jb.merge(a,b,c,d,e,f,h,p)};oa.resize=function(a,b,c){var d=a.buffer;if(null==d.__srcCanvas)oa.createCanvas(a,b,c),d.__srcContext.drawImage(d.get_src(),0,0,b,c);else{oa.sync(a,!0);var e=d.__srcCanvas;d.__srcCanvas=null;oa.createCanvas(a,b,c);d.__srcContext.drawImage(e,0, 0,b,c)}};oa.scroll=function(a,b,c){if(0!=b%a.width||0!=c%a.height)oa.convertToCanvas(a),oa.sync(a,!0),a.buffer.__srcContext.clearRect(b,c,a.width,a.height),a.buffer.__srcContext.drawImage(a.buffer.__srcCanvas,b,c)};oa.setPixel=function(a,b,c,d,e){oa.convertToCanvas(a);oa.createImageData(a);jb.setPixel(a,b,c,d,e)};oa.setPixel32=function(a,b,c,d,e){oa.convertToCanvas(a);oa.createImageData(a);jb.setPixel32(a,b,c,d,e)};oa.setPixels=function(a,b,c,d){oa.convertToCanvas(a);oa.createImageData(a);jb.setPixels(a, b,c,d)};oa.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,P=0,n=b.height;P>24&255)*I.unmult);t=I.__clamp[t]; var u;u=Math.round((m>>16&255)*I.unmult);u=I.__clamp[u];var ha=Math.round((m>>8&255)*I.unmult);m=(t&255)<<24|(u&255)<<16|(I.__clamp[ha]&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)&&(I.a16=I.__alpha16[m&255],m=((m>>24&255)*I.a16>>16&255)<<24|((m>>16&255)*I.a16>>16&255)<<16|((m>>8&255)*I.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 ed(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,P,n,q,r=0,t=0,u=d.height;t>24&255)*I.unmult);w=I.__clamp[w];var x;x=Math.round((n>> 16&255)*I.unmult);x=I.__clamp[x];var z=Math.round((n>>8&255)*I.unmult);n=(w&255)<<24|(x&255)<<16|(I.__clamp[z]&255)<<8|n&255}switch(k){case 2:q=(f[P+2]&255)<<24|(f[P+1]&255)<<16|(f[P]&255)<<8|f[P+3]&255;break;case 0:q=(f[P]&255)<<24|(f[P+1]&255)<<16|(f[P+2]&255)<<8|f[P+3]&255;break;case 1:q=(f[P+1]&255)<<24|(f[P+2]&255)<<16|(f[P+3]&255)<<8|f[P]&255}l&&0!=(q&255)&&255!=(q&255)&&(I.unmult=255/(q&255),w=Math.round((q>>24&255)*I.unmult),w=I.__clamp[w],x=Math.round((q>>16&255)*I.unmult),x=I.__clamp[x], z=Math.round((q>>8&255)*I.unmult),q=(w&255)<<24|(x&255)<<16|(I.__clamp[z]&255)<<8|q&255);switch(p){case 0:r=n>>24&255;break;case 1:r=n>>16&255;break;case 2:r=n>>8&255;break;case 3:r=n&255}switch(h){case 0:q=(r&255)<<24|(q>>16&255)<<16|(q>>8&255)<<8|q&255;r;break;case 1:q=(q>>24&255)<<24|(r&255)<<16|(q>>8&255)<<8|q&255;r;break;case 2:q=(q>>24&255)<<24|(q>>16&255)<<16|(r&255)<<8|q&255;r;break;case 3:q=(q>>24&255)<<24|(q>>16&255)<<16|(q>>8&255)<<8|r&255,r}l&&(0==(q&255)?0!=q&&(q=0):255!=(q&255)&&(I.a16= I.__alpha16[q&255],q=((q>>24&255)*I.a16>>16&255)<<24|((q>>16&255)*I.a16>>16&255)<<16|((q>>8&255)*I.a16>>16&255)<<8|q&255));switch(k){case 2:f[P]=q>>8&255;f[P+1]=q>>16&255;f[P+2]=q>>24&255;f[P+3]=q&255;break;case 0:f[P]=q>>24&255;f[P+1]=q>>16&255;f[P+2]=q>>8&255;f[P+3]=q&255;break;case 1:f[P]=q&255,f[P+1]=q>>24&255,f[P+2]=q>>16&255,f[P+3]=q>>8&255}m+=4;P+=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 ed(d.x,d.y,c.width,c.height));var k=b.buffer.format,l=a.buffer.format,m=b.buffer.premultiplied,P=a.buffer.premultiplied,n;if(h&&b.get_transparent()){var q,r,t,u,ha;if(null==e){var w=0;for(b=d.height;w>24&255)*I.unmult);x=I.__clamp[x];var z;z=Math.round((n>>16&255)*I.unmult);z=I.__clamp[z];var A=Math.round((n>>8&255)*I.unmult);n=(x&255)<<24|(z&255)<<16|(I.__clamp[A]&255)<<8|n&255}switch(l){case 2:ha=(g[f+2]&255)<<24|(g[f+1]&255)<<16|(g[f]&255)<<8|g[f+3]&255;break;case 0:ha=(g[f]&255)<<24|(g[f+1]&255)<<16|(g[f+2]&255)<<8|g[f+3]&255;break;case 1:ha=(g[f+1]&255)<<24|(g[f+2]&255)<<16|(g[f+3]&255)<<8|g[f]&255}P&&0!= (ha&255)&&255!=(ha&255)&&(I.unmult=255/(ha&255),x=Math.round((ha>>24&255)*I.unmult),x=I.__clamp[x],z=Math.round((ha>>16&255)*I.unmult),z=I.__clamp[z],A=Math.round((ha>>8&255)*I.unmult),ha=(x&255)<<24|(z&255)<<16|(I.__clamp[A]&255)<<8|ha&255);q=(n&255)/255;r=(ha&255)/255;t=1-q;u=q+r*t;0==u?ha=0:(x=Math.round(((n>>24&255)*q+(ha>>24&255)*r*t)/u),x=I.__clamp[x],ha=(x&255)<<24|(ha>>16&255)<<16|(ha>>8&255)<<8|ha&255,x,x=Math.round(((n>>16&255)*q+(ha>>16&255)*r*t)/u),x=I.__clamp[x],ha=(ha>>24&255)<<24|(x& 255)<<16|(ha>>8&255)<<8|ha&255,x,x=Math.round(((n>>8&255)*q+(ha>>8&255)*r*t)/u),x=I.__clamp[x],ha=(ha>>24&255)<<24|(ha>>16&255)<<16|(x&255)<<8|ha&255,x,x=Math.round(255*u),x=I.__clamp[x],ha=(ha>>24&255)<<24|(ha>>16&255)<<16|(ha>>8&255)<<8|x&255,x);P&&(0==(ha&255)?0!=ha&&(ha=0):255!=(ha&255)&&(I.a16=I.__alpha16[ha&255],ha=((ha>>24&255)*I.a16>>16&255)<<24|((ha>>16&255)*I.a16>>16&255)<<16|((ha>>8&255)*I.a16>>16&255)<<8|ha&255));switch(l){case 2:g[f]=ha>>8&255;g[f+1]=ha>>16&255;g[f+2]=ha>>24&255;g[f+ 3]=ha&255;break;case 0:g[f]=ha>>24&255;g[f+1]=ha>>16&255;g[f+2]=ha>>8&255;g[f+3]=ha&255;break;case 1:g[f]=ha&255,g[f+1]=ha>>24&255,g[f+2]=ha>>16&255,g[f+3]=ha>>8&255}e+=4;f+=4}}}else{null==f&&(f=new Vc);b=e.buffer.data;h=e.buffer.format;v=e.buffer.premultiplied;x=new Ye(e,new ed(f.x,f.y,d.width,d.height));var y;z=0;for(A=x.height;z>24&255)*I.unmult),u=I.__clamp[u],q=Math.round((n>>16&255)*I.unmult),q=I.__clamp[q],r=Math.round((n>>8&255)*I.unmult),n=(u&255)<<24|(q&255)<<16|(I.__clamp[r]&255)<<8|n&255);switch(l){case 2:ha=(g[f+2]&255)<<24|(g[f+1]&255)<<16|(g[f]&255)<<8|g[f+3]&255;break;case 0:ha= (g[f]&255)<<24|(g[f+1]&255)<<16|(g[f+2]&255)<<8|g[f+3]&255;break;case 1:ha=(g[f+1]&255)<<24|(g[f+2]&255)<<16|(g[f+3]&255)<<8|g[f]&255}P&&0!=(ha&255)&&255!=(ha&255)&&(I.unmult=255/(ha&255),u=Math.round((ha>>24&255)*I.unmult),u=I.__clamp[u],q=Math.round((ha>>16&255)*I.unmult),q=I.__clamp[q],r=Math.round((ha>>8&255)*I.unmult),ha=(u&255)<<24|(q&255)<<16|(I.__clamp[r]&255)<<8|ha&255);switch(h){case 2:w=(b[y+2]&255)<<24|(b[y+1]&255)<<16|(b[y]&255)<<8|b[y+3]&255;break;case 0:w=(b[y]&255)<<24|(b[y+1]&255)<< 16|(b[y+2]&255)<<8|b[y+3]&255;break;case 1:w=(b[y+1]&255)<<24|(b[y+2]&255)<<16|(b[y+3]&255)<<8|b[y]&255}v&&0!=(w&255)&&255!=(w&255)&&(I.unmult=255/(w&255),u=Math.round((w>>24&255)*I.unmult),u=I.__clamp[u],q=Math.round((w>>16&255)*I.unmult),q=I.__clamp[q],r=Math.round((w>>8&255)*I.unmult),w=(u&255)<<24|(q&255)<<16|(I.__clamp[r]&255)<<8|w&255);q=(w&255)/255;r=(ha&255)/255;t=1-q;u=q+r*t;if(0==u)ha=0;else{var E;E=Math.round(((n>>24&255)*q+(ha>>24&255)*r*t)/u);E=I.__clamp[E];ha=(E&255)<<24|(ha>>16&255)<< 16|(ha>>8&255)<<8|ha&255;E;E=Math.round(((n>>16&255)*q+(ha>>16&255)*r*t)/u);E=I.__clamp[E];ha=(ha>>24&255)<<24|(E&255)<<16|(ha>>8&255)<<8|ha&255;E;q=Math.round(((n>>8&255)*q+(ha>>8&255)*r*t)/u);q=I.__clamp[q];ha=(ha>>24&255)<<24|(ha>>16&255)<<16|(q&255)<<8|ha&255;q;u=Math.round(255*u);u=I.__clamp[u];ha=(ha>>24&255)<<24|(ha>>16&255)<<16|(ha>>8&255)<<8|u&255;u}P&&(0==(ha&255)?0!=ha&&(ha=0):255!=(ha&255)&&(I.a16=I.__alpha16[ha&255],ha=((ha>>24&255)*I.a16>>16&255)<<24|((ha>>16&255)*I.a16>>16&255)<<16| ((ha>>8&255)*I.a16>>16&255)<<8|ha&255));switch(l){case 2:g[f]=ha>>8&255;g[f+1]=ha>>16&255;g[f+2]=ha>>24&255;g[f+3]=ha&255;break;case 0:g[f]=ha>>24&255;g[f+1]=ha>>16&255;g[f+2]=ha>>8&255;g[f+3]=ha&255;break;case 1:g[f]=ha&255,g[f+1]=ha>>24&255,g[f+2]=ha>>16&255,g[f+3]=ha>>8&255}e+=4;f+=4}}}}else for(ha=0,w=d.height;ha>24&255)*I.unmult),v=I.__clamp[v],x=Math.round((n>>16&255)*I.unmult),x=I.__clamp[x],z=Math.round((n>>8&255)*I.unmult),n=(v&255)<<24|(x&255)<<16|(I.__clamp[z]&255)<<8|n&255);P&&(0==(n&255)?0!=n&&(n=0):255!=(n&255)&&(I.a16=I.__alpha16[n&255],n=((n>>24&255)*I.a16>>16&255)<<24|((n>>16&255)*I.a16>>16&255)<<16|((n>>8& 255)*I.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)*I.a16>>16&255)<<24|((c>>16&255)*I.a16>>16&255)<<16|((c>>8&255)*I.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)){I.unmult=255/(p&255);var g=Math.round((p>>24&255)*I.unmult),g=I.__clamp[g],k;k=Math.round((p>>16&255)*I.unmult);k=I.__clamp[k];var l=Math.round((p>>8&255)*I.unmult);p=(g&255)<<24|(k&255)<<16|(I.__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, P=l+a.width,n=m+a.height,q=[];q.push(b);q.push(c);for(var r,u,t,ha;0x;)if(u=x++,r=b+g[u],u=c+k[u],!(r=P||u>=n)){t=4*(u*a.width+r);switch(e){case 2:ha=(f[t+2]&255)<<24|(f[t+1]&255)<<16|(f[t]&255)<<8|f[t+3]&255;break;case 0:ha=(f[t]&255)<<24|(f[t+1]&255)<<16|(f[t+2]&255)<<8|f[t+3]&255;break;case 1:ha=(f[t+1]&255)<<24|(f[t+2]&255)<<16|(f[t+3]&255)<<8|f[t]&255}if(h&&0!=(ha&255)&&255!=(ha&255)){I.unmult=255/(ha&255);var w;w=Math.round((ha>>24&255)* I.unmult);w=I.__clamp[w];var v;v=Math.round((ha>>16&255)*I.unmult);v=I.__clamp[v];var z=Math.round((ha>>8&255)*I.unmult);ha=(w&255)<<24|(v&255)<<16|(I.__clamp[z]&255)<<8|ha&255}if(ha==p){h&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>24&255)*I.a16>>16&255)<<24|((d>>16&255)*I.a16>>16&255)<<16|((d>>8&255)*I.a16>>16&255)<<8|d&255));switch(e){case 2:f[t]=d>>8&255;f[t+1]=d>>16&255;f[t+2]=d>>24&255;f[t+3]=d&255;break;case 0:f[t]=d>>24&255;f[t+1]=d>>16&255;f[t+2]=d>>8&255;f[t+ 3]=d&255;break;case 1:f[t]=d&255,f[t+1]=d>>24&255,f[t+2]=d>>16&255,f[t+3]=d>>8&255}q.push(r);q.push(u)}}}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 ed(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)&&(I.unmult=255/(e&255),a=Math.round((e>>24&255)*I.unmult),a=I.__clamp[a],f=Math.round((e>>16&255)*I.unmult),f=I.__clamp[f],b=Math.round((e>>8&255)*I.unmult),e=(a&255)<<24|(f&255)<<16|(I.__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)&&(I.unmult=255/(e&255),a=Math.round((e>>24&255)*I.unmult),a=I.__clamp[a],f=Math.round((e>>16&255)*I.unmult),f=I.__clamp[f],b=Math.round((e>>8&255)*I.unmult),e=(a&255)<<24|(f&255)<<16|(I.__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)*I.unmult);n=I.__clamp[n];var q;q=Math.round((g>>16&255)*I.unmult);q=I.__clamp[q];var r=Math.round((g>>8&255)*I.unmult);g=(n&255)<<24|(q&255)<<16|(I.__clamp[r]&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 ed(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 P=a.buffer.premultiplied,n,q,r,t,u=0,ha=d.height;u>24&255)*I.unmult);v=I.__clamp[v];var z;z=Math.round((r>>16&255)*I.unmult);z=I.__clamp[z];var y=Math.round((r>>8&255)*I.unmult);r=(v&255)<<24|(z&255)<<16|(I.__clamp[y]&255)<<8|r&255}switch(m){case 2:t=(k[q+2]&255)<<24|(k[q+1]&255)<<16|(k[q]&255)<<8|k[q+3]&255;break;case 0:t=(k[q]&255)<<24|(k[q+ 1]&255)<<16|(k[q+2]&255)<<8|k[q+3]&255;break;case 1:t=(k[q+1]&255)<<24|(k[q+2]&255)<<16|(k[q+3]&255)<<8|k[q]&255}P&&0!=(t&255)&&255!=(t&255)&&(I.unmult=255/(t&255),v=Math.round((t>>24&255)*I.unmult),v=I.__clamp[v],z=Math.round((t>>16&255)*I.unmult),z=I.__clamp[z],y=Math.round((t>>8&255)*I.unmult),t=(v&255)<<24|(z&255)<<16|(I.__clamp[y]&255)<<8|t&255);v=((r>>24&255)*e+(t>>24&255)*(256-e))/256|0;t=(v&255)<<24|(t>>16&255)<<16|(t>>8&255)<<8|t&255;v;v=((r>>16&255)*f+(t>>16&255)*(256-f))/256|0;t=(t>>24& 255)<<24|(v&255)<<16|(t>>8&255)<<8|t&255;v;v=((r>>8&255)*h+(t>>8&255)*(256-h))/256|0;t=(t>>24&255)<<24|(t>>16&255)<<16|(v&255)<<8|t&255;v;v=((r&255)*p+(t&255)*(256-p))/256|0;t=(t>>24&255)<<24|(t>>16&255)<<16|(t>>8&255)<<8|v&255;v;P&&(0==(t&255)?0!=t&&(t=0):255!=(t&255)&&(I.a16=I.__alpha16[t&255],t=((t>>24&255)*I.a16>>16&255)<<24|((t>>16&255)*I.a16>>16&255)<<16|((t>>8&255)*I.a16>>16&255)<<8|t&255));switch(m){case 2:k[q]=t>>8&255;k[q+1]=t>>16&255;k[q+2]=t>>24&255;k[q+3]=t&255;break;case 0:k[q]=t>>24& 255;k[q+1]=t>>16&255;k[q+2]=t>>8&255;k[q+3]=t&255;break;case 1:k[q]=t&255,k[q+1]=t>>24&255,k[q+2]=t>>16&255,k[q+3]=t>>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)*I.a16>>16&255)<<24|((e>>16&255)*I.a16>>16&255)<<16|((e>>8&255)*I.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 sg(e,b,c),f=a.width,h=a.height;a=a.get_data();for(var p=e.data,g,k,l,m,P,n,q,r,u,v=0;v> 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)){I.unmult=255/(e& 255);var f=Math.round((e>>24&255)*I.unmult),f=I.__clamp[f],h=Math.round((e>>16&255)*I.unmult),h=I.__clamp[h],p=Math.round((e>>8&255)*I.unmult);e=(f&255)<<24|(h&255)<<16|(I.__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)&&(I.a16=I.__alpha16[d&255],d=((d>>24&255)*I.a16>>16&255)<<24|((d>>16&255)*I.a16>>16&255)<<16|((d>>8&255)*I.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)&&(I.a16=I.__alpha16[d&255],d=((d>>24&255)*I.a16>>16&255)<<24|((d>>16&255)*I.a16>>16&255)<<16|((d>>8&255)*I.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)&&(I.a16=I.__alpha16[g&255],g=((g>>24&255)*I.a16>>16&255)<<24|((g>>16&255)*I.a16>>16&255)<<16|((g>>8&255)*I.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)*I.unmult),p=I.__clamp[p],g;g=Math.round((e>>16&255)*I.unmult);g=I.__clamp[g];var k=Math.round((e>>8&255)*I.unmult);e=(p&255)<< 24|(g&255)<<16|(I.__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 vg=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"]=vg;vg.__name__=["lime","math","Matrix3"];vg.prototype={a:null,b:null,c:null,d:null,tx:null,ty:null,clone:function(){return new vg(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++;ja.set(d,f,ja.get(a,f)+(ja.get(b,f)-ja.get(a,f))*c)}return d}; ja.interpolateTo=function(a,b,c){for(var d=0;16>d;){var e=d++,f=a[e]+(ja.get(b,e)-a[e])*c;a[e]=f}};ja.invert=function(a){var b=ja.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 ed;var d;d=this.ya.get_bottom()?a.get_bottom():this.get_bottom();return a<=d?new ed:new ed(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 ed(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)&&(vc.a16=I.__alpha16[a>>24&255])};vc.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)&&(vc.unmult=255/(a>>24&255))};vc.set=function(a,b,c,d,e){};vc.unmultiplyAlpha= function(a){0!=(a>>24&255)&&255!=(a>>24&255)&&(vc.unmult=255/(a>>24&255))};vc.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)&&(vc.a16=I.__alpha16[a>>24&255],a=(a>>24&255)<<24|((a>>16&255)*vc.a16>>16&255)<<16|((a>>8&255)*vc.a16>>16&255)<<8|(a&255)*vc.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}};vc.__fromBGRA=function(a){return(a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>24&255};vc.__fromRGBA=function(a){return(a&255)<<24|(a>>24&255)<<16|(a>>16&255)<<8|a>>8&255};vc.get_a=function(a){return a>>24&255};vc.set_a=function(a,b){return b};vc.get_b=function(a){return a&255};vc.set_b=function(a,b){return b};vc.get_g=function(a){return a>>8&255};vc.set_g=function(a,b){return b};vc.get_r=function(a){return a>>16&255};vc.set_r=function(a,b){return b};var wc= {};g["lime.math.color._BGRA.BGRA_Impl_"]=wc;wc.__name__=["lime","math","color","_BGRA","BGRA_Impl_"];wc.__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"};wc.a16=null;wc.unmult=null;wc._new=function(a){null==a&&(a=0);return a};wc.create=function(a,b,c,d){return(a&255)<<24|(b&255)<<16|(c&255)<<8|d&255};wc.multiplyAlpha=function(a){0!=(a&255)&&255!=(a&255)&&(wc.a16=I.__alpha16[a&255])};wc.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)&&(wc.unmult=255/(a&255))};wc.set=function(a,b,c,d,e){};wc.unmultiplyAlpha=function(a){0!=(a&255)&&255!=(a&255)&&(wc.unmult=255/(a&255))};wc.writeUInt8=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);e&&(0==(a&255)?a=0:255!= (a&255)&&(wc.a16=I.__alpha16[a&255],a=((a>>24&255)*wc.a16>>16&255)<<24|((a>>16&255)*wc.a16>>16&255)<<16|((a>>8&255)*wc.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}};wc.__fromARGB=function(a){return(a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>24&255};wc.__fromRGBA=function(a){return(a>>8&255)<<24| (a>>16&255)<<16|(a>>24&255)<<8|a&255};wc.get_a=function(a){return a&255};wc.set_a=function(a,b){return b};wc.get_b=function(a){return a>>24&255};wc.set_b=function(a,b){return b};wc.get_g=function(a){return a>>16&255};wc.set_g=function(a,b){return b};wc.get_r=function(a){return a>>8&255};wc.set_r=function(a,b){return b};var I={};g["lime.math.color._RGBA.RGBA_Impl_"]=I;I.__name__=["lime","math","color","_RGBA","RGBA_Impl_"];I.__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"};I.__alpha16=null;I.__clamp=null;I.a16=null;I.unmult=null;I._new=function(a){null==a&&(a=0);return a};I.create=function(a,b,c,d){return(a&255)<<24|(b&255)<<16|(c&255)<<8|d&255};I.multiplyAlpha=function(a){0!=(a&255)&&255!=(a&255)&&(I.a16=I.__alpha16[a&255])};I.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)&&(I.unmult=255/(a&255),Math.round((a>>24&255)*I.unmult),Math.round((a>>16&255)*I.unmult),Math.round((a>>8&255)*I.unmult))};I.set=function(a,b,c,d,e){};I.unmultiplyAlpha=function(a){0!=(a&255)&&255!=(a&255)&&(I.unmult=255/(a&255),Math.round((a>>24&255)*I.unmult),Math.round((a>>16&255)*I.unmult),Math.round((a>>8&255)*I.unmult))};I.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)&&(I.a16=I.__alpha16[a&255],a=((a>>24&255)*I.a16>>16&255)<<24|((a>>16&255)*I.a16>>16&255)<<16|((a>>8&255)*I.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}};I.__fromARGB=function(a){return(a>>16&255)<<24|(a>>8&255)<<16|(a&255)<<8|a>>24&255};I.__fromBGRA= function(a){return(a>>8&255)<<24|(a>>16&255)<<16|(a>>24&255)<<8|a&255};I.get_a=function(a){return a&255};I.set_a=function(a,b){return b};I.get_b=function(a){return a>>8&255};I.set_b=function(a,b){return b};I.get_g=function(a){return a>>16&255};I.set_g=function(a,b){return b};I.get_r=function(a){return a>>24&255};I.set_r=function(a,b){return b};var Xh=function(a){this.onSecurityError=new fn;this.onProgress=new Xq;this.onOpen=new gn;this.onIOError=new fn;this.onHTTPStatus=new Yq;this.onComplete=new gn; this.bytesTotal=this.bytesLoaded=0;this.set_dataFormat(pe.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){D.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, ir))for(var h=0,p=u.fields(c);h=a.split("?").length;e.open("GET",a+(k?"?":"&")+t.string(f),!0);f=""}else e.open(m.__cast(b,String),a,!0)}catch(l){D.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};Xb.greaterThanPointer=function(a,b){return Xb.get(a)>Xb.get(b)};Xb.greaterThanOrEqual=function(a,b){return Xb.get(a)>=b};Xb.greaterThanOrEqualPointer=function(a,b){return Xb.get(a)>= Xb.get(b)};Xb.lessThan=function(a,b){return Xb.get(a)b};F.gte=function(a,b){return a>=b};F.lt=function(a,b){return athis.allocated?this.___resizeBuffer(this.allocated=t["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 Ss(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 le=g["lime.utils.CompressionAlgorithm"]={__ename__:["lime","utils","CompressionAlgorithm"],__constructs__:["DEFLATE","ZLIB","LZMA","GZIP"]};le.DEFLATE= ["DEFLATE",0];le.DEFLATE.toString=B;le.DEFLATE.__enum__=le;le.ZLIB=["ZLIB",1];le.ZLIB.toString=B;le.ZLIB.__enum__=le;le.LZMA=["LZMA",2];le.LZMA.toString=B;le.LZMA.__enum__=le;le.GZIP=["GZIP",3];le.GZIP.toString=B;le.GZIP.__enum__=le;var Mj={};g["lime.utils._Float32Array.Float32Array_Impl_"]=Mj;Mj.__name__=["lime","utils","_Float32Array","Float32Array_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 Float32Array(a.b.bufferValue): null==c?new Float32Array(a.b.bufferValue,b):new Float32Array(a.b.bufferValue,b,c)};Mj.toBytes=function(a){return new bc(new nc(a.buffer))};Mj.toString=function(a){return null!=a?"Float32Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var mn=function(){};g["lime.utils.GLUtils"]=mn;mn.__name__=["lime","utils","GLUtils"];mn.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};mn.createProgram=function(a,b){var c=mn.compileShader(a,35633),d=mn.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 ts=function(){};g["lime.utils.IDataInput"]=ts;ts.__name__= ["lime","utils","IDataInput"];ts.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__:ts,__properties__:{set_endian:"set_endian",get_endian:"get_endian",get_bytesAvailable:"get_bytesAvailable"}};var us=function(){};g["lime.utils.IMemoryRange"]=us;us.__name__= ["lime","utils","IMemoryRange"];us.prototype={getByteBuffer:null,getStart:null,getLength:null,__class__:us};var Nj={};g["lime.utils._Int16Array.Int16Array_Impl_"]=Nj;Nj.__name__=["lime","utils","_Int16Array","Int16Array_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 Int16Array(a.b.bufferValue):null==c?new Int16Array(a.b.bufferValue,b):new Int16Array(a.b.bufferValue,b,c)};Nj.toBytes=function(a){return new bc(new nc(a.buffer))}; Nj.toString=function(a){return null!=a?"Int16Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var Oj={};g["lime.utils._Int32Array.Int32Array_Impl_"]=Oj;Oj.__name__=["lime","utils","_Int32Array","Int32Array_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 Int32Array(a.b.bufferValue):null==c?new Int32Array(a.b.bufferValue,b):new Int32Array(a.b.bufferValue,b,c)};Oj.toBytes=function(a){return new bc(new nc(a.buffer))}; Oj.toString=function(a){return null!=a?"Int32Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var vs=function(){};g["lime.utils.LZMA"]=vs;vs.__name__=["lime","utils","LZMA"];vs.decode=function(a){return null};vs.encode=function(a){return null};var Pj={};g["lime.utils._UInt16Array.UInt16Array_Impl_"]=Pj;Pj.__name__=["lime","utils","_UInt16Array","UInt16Array_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 Uint16Array(a.b.bufferValue):null==c?new Uint16Array(a.b.bufferValue,b):new Uint16Array(a.b.bufferValue,b,c)};Pj.toBytes=function(a){return new bc(new nc(a.buffer))};Pj.toString=function(a){return null!=a?"UInt16Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var Qj={};g["lime.utils._UInt32Array.UInt32Array_Impl_"]=Qj;Qj.__name__=["lime","utils","_UInt32Array","UInt32Array_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){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)};Qj.toBytes=function(a){return new bc(new nc(a.buffer))};Qj.toString=function(a){return null!=a?"UInt32Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var Rj={};g["lime.utils._UInt8Array.UInt8Array_Impl_"]=Rj;Rj.__name__=["lime","utils","_UInt8Array","UInt8Array_Impl_"];Rj.__set=function(a,b,c){return a[b]=c};Rj.__get=function(a, b){return a[b]};Rj.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)};Rj.toBytes=function(a){return new bc(new nc(a.buffer))};Rj.toString=function(a){return null!=a?"UInt8Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var Sj=function(){};g["motion.actuators.IGenericActuator"]=Sj;Sj.__name__=["motion","actuators","IGenericActuator"];Sj.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__:Sj};var Hh=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"]=Hh;Hh.__name__=["motion","actuators","GenericActuator"]; Hh.__interfaces__=[Sj];Hh.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=u.fields(this.properties);a=b.timeOffset&&b.update(a),c++):(Sb.actuators.splice(c,1),--Sb.actuatorsLength)};Sb.__super__=Hh;Sb.prototype=r(Hh.prototype,{setField_openfl_geom_Transform:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:u.setProperty(a,b,c)},setField_motion_actuators_TransformActuator_T:function(a, b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:u.setProperty(a,b,c)},setField_motion_actuators_MotionPathActuator_T:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:u.setProperty(a,b,c)},setField_openfl_display_DisplayObject:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:u.setProperty(a,b,c)},setField_motion_actuators_SimpleActuator_T:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:u.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)?u.field(a,b):u.getProperty(a,b)},initialize:function(){for(var a,b=0,c=u.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:u.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 Af;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__:wn};var xn=function(a){this.s=a};g["motion.easing.BackEaseOut"]=xn;xn.__name__=["motion","easing","BackEaseOut"];xn.__interfaces__=[ic];xn.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__:xn};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 Uk};ld.get_easeInOut=function(){return new yn};ld.get_easeOut=function(){return new Le};var Uk=function(){};g["motion.easing.BounceEaseIn"]=Uk;Uk.__name__=["motion","easing","BounceEaseIn"];Uk.__interfaces__=[ic];Uk._ease=function(a,b,c,d){return c-Le._ease(d-a,0,c,d)+b};Uk.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__:Uk};var yn=function(){};g["motion.easing.BounceEaseInOut"]=yn; yn.__name__=["motion","easing","BounceEaseInOut"];yn.__interfaces__=[ic];yn.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 zn=function(){};g["motion.easing.Cubic"]=zn;zn.__name__=["motion","easing","Cubic"];zn.__properties__={get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"};zn.get_easeIn=function(){return new An}; zn.get_easeInOut=function(){return new Bn};zn.get_easeOut=function(){return new Cn};var An=function(){};g["motion.easing.CubicEaseIn"]=An;An.__name__=["motion","easing","CubicEaseIn"];An.__interfaces__=[ic];An.prototype={calculate:function(a){return a*a*a},ease:function(a,b,c,d){return c*(a/=d)*a*a+b},__class__:An};var Bn=function(){};g["motion.easing.CubicEaseInOut"]=Bn;Bn.__name__=["motion","easing","CubicEaseInOut"];Bn.__interfaces__=[ic];Bn.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__:Bn};var Cn=function(){};g["motion.easing.CubicEaseOut"]=Cn;Cn.__name__=["motion","easing","CubicEaseOut"];Cn.__interfaces__=[ic];Cn.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__:Cn};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 Dn(.1,.4)};Ze.get_easeInOut=function(){return new En(.1,.4)};Ze.get_easeOut=function(){return new Fn(.1,.4)};var Dn=function(a,b){this.a=a;this.p=b};g["motion.easing.ElasticEaseIn"]=Dn;Dn.__name__=["motion","easing","ElasticEaseIn"];Dn.__interfaces__=[ic];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))},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__:En};var Fn= function(a,b){this.a=a;this.p=b};g["motion.easing.ElasticEaseOut"]=Fn;Fn.__name__=["motion","easing","ElasticEaseOut"];Fn.__interfaces__=[ic];Fn.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__:on};var xs=function(){};g["motion.easing.Linear"]=xs;xs.__name__=["motion","easing","Linear"];xs.__properties__={get_easeNone:"get_easeNone"};xs.get_easeNone=function(){return new Gn};var Gn=function(){};g["motion.easing.LinearEaseNone"]=Gn;Gn.__name__=["motion", "easing","LinearEaseNone"];Gn.__interfaces__=[ic];Gn.prototype={calculate:function(a){return a},ease:function(a,b,c,d){return c*a/d+b},__class__:Gn};var Zc=function(){};g["motion.easing.Quad"]=Zc;Zc.__name__=["motion","easing","Quad"];Zc.__properties__={get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"};Zc.get_easeIn=function(){return new Hn};Zc.get_easeInOut=function(){return new In};Zc.get_easeOut=function(){return new Jn};var Hn=function(){};g["motion.easing.QuadEaseIn"]= Hn;Hn.__name__=["motion","easing","QuadEaseIn"];Hn.__interfaces__=[ic];Hn.prototype={calculate:function(a){return a*a},ease:function(a,b,c,d){return c*(a/=d)*a+b},__class__:Hn};var In=function(){};g["motion.easing.QuadEaseInOut"]=In;In.__name__=["motion","easing","QuadEaseInOut"];In.__interfaces__=[ic];In.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__:In};var Jn=function(){};g["motion.easing.QuadEaseOut"]= Jn;Jn.__name__=["motion","easing","QuadEaseOut"];Jn.__interfaces__=[ic];Jn.prototype={calculate:function(a){return-a*(a-2)},ease:function(a,b,c,d){return-c*(a/=d)*(a-2)+b},__class__:Jn};var Vk=function(){};g["motion.easing.Quart"]=Vk;Vk.__name__=["motion","easing","Quart"];Vk.__properties__={get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"};Vk.get_easeIn=function(){return new Kn};Vk.get_easeInOut=function(){return new Ln};Vk.get_easeOut=function(){return new Mn};var Kn= function(){};g["motion.easing.QuartEaseIn"]=Kn;Kn.__name__=["motion","easing","QuartEaseIn"];Kn.__interfaces__=[ic];Kn.prototype={calculate:function(a){return a*a*a*a},ease:function(a,b,c,d){return c*(a/=d)*a*a*a+b},__class__:Kn};var Ln=function(){};g["motion.easing.QuartEaseInOut"]=Ln;Ln.__name__=["motion","easing","QuartEaseInOut"];Ln.__interfaces__=[ic];Ln.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__:Ln};var Mn=function(){};g["motion.easing.QuartEaseOut"]=Mn;Mn.__name__=["motion","easing","QuartEaseOut"];Mn.__interfaces__=[ic];Mn.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__:Mn};var Nn=function(){};g["motion.easing.Quint"]=Nn;Nn.__name__=["motion","easing","Quint"];Nn.__properties__={get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"};Nn.get_easeIn=function(){return new On}; Nn.get_easeInOut=function(){return new Pn};Nn.get_easeOut=function(){return new Qn};var On=function(){};g["motion.easing.QuintEaseIn"]=On;On.__name__=["motion","easing","QuintEaseIn"];On.__interfaces__=[ic];On.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__:On};var Pn=function(){};g["motion.easing.QuintEaseInOut"]=Pn;Pn.__name__=["motion","easing","QuintEaseInOut"];Pn.__interfaces__=[ic];Pn.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__:Pn};var Qn=function(){};g["motion.easing.QuintEaseOut"]=Qn;Qn.__name__=["motion","easing","QuintEaseOut"];Qn.__interfaces__=[ic];Qn.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__:Qn};var Bd=function(){};g["motion.easing.Sine"]=Bd;Bd.__name__=["motion","easing","Sine"];Bd.__properties__={get_easeOut:"get_easeOut", get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"};Bd.get_easeIn=function(){return new Rn};Bd.get_easeInOut=function(){return new Sn};Bd.get_easeOut=function(){return new Tn};var Rn=function(){};g["motion.easing.SineEaseIn"]=Rn;Rn.__name__=["motion","easing","SineEaseIn"];Rn.__interfaces__=[ic];Rn.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__:Rn};var Sn=function(){};g["motion.easing.SineEaseInOut"]=Sn; Sn.__name__=["motion","easing","SineEaseInOut"];Sn.__interfaces__=[ic];Sn.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__:Sn};var Tn=function(){};g["motion.easing.SineEaseOut"]=Tn;Tn.__name__=["motion","easing","SineEaseOut"];Tn.__interfaces__=[ic];Tn.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__:Tn};var or=function(){}; g["openfl.IAssetCache"]=or;or.__name__=["openfl","IAssetCache"];or.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__:or,__properties__:{set_enabled:"set_enabled",get_enabled:"get_enabled"}};var Un=function(){this.__enabled=!0;this.bitmapData=new ga;this.font=new ga;this.sound=new ga};g["openfl.AssetCache"]= Un;Un.__name__=["openfl","AssetCache"];Un.__interfaces__=[or];Un.prototype={bitmapData:null,font:null,sound:null,__enabled:null,clear:function(a){if(null==a)this.bitmapData=new ga,this.font=new ga,this.sound=new ga;else{for(var b=this.bitmapData.keys();b.hasNext();){var c=b.next();X.startsWith(c,a)&&this.bitmapData.remove(c)}for(b=this.font.keys();b.hasNext();)c=b.next(),X.startsWith(c,a)&&this.font.remove(c);for(b=this.sound.keys();b.hasNext();)c=b.next(),X.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__:Un,__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);fa.onChange.has(za.LimeAssets_onChange)||fa.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 fa.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=fa.getImage(a,!1);return null!=c?(c=hb.fromImage(c),b&&za.cache.get_enabled()&&za.cache.setBitmapData(a,c),c):null};za.getBytes=function(a){return fa.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=fa.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 fa.getLibrary(a)};za.getMovieClip=function(a){var b=a.substring(0,a.indexOf(":")),c=a.indexOf(":")+1;a=Y.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=fa.getPath(a);return null!=c?new xe(new mc(c)):null};za.getPath=function(a){return fa.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=fa.getPath(a);return null!=c?new xe(new mc(c)):null};za.getText=function(a){return fa.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=Y.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 fa.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}fa.loadImage(a,!1).onComplete(function(c){null!=c?(c=hb.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=fa.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;fa.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=fa.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=Y.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=fa.loadText(a);null!=b&&(c.onComplete(b),c.onError(function(a){b(null)}));return c};za.registerLibrary=function(a,b){fa.registerLibrary(a,b)};za.removeEventListener= function(a,b,c){null==c&&(c=!1);za.dispatcher.removeEventListener(a,b,c)};za.resolveClass=function(a){return bb.resolveClass(a)};za.resolveEnum=function(a){return bb.resolveEnum(a)};za.unloadLibrary=function(a){fa.unloadLibrary(a)};za.LimeAssets_onChange=function(){za.dispatchEvent(new J(J.CHANGE))};var pr=function(){this.onChange=new Oc};g["openfl.AssetLibrary"]=pr;pr.__name__=["openfl","AssetLibrary"];pr.__super__=Pi;pr.prototype=r(Pi.prototype,{getMovieClip:function(a){return null},loadMovieClip:function(a){var b= this;return new lc(function(){return b.getMovieClip(a)})},__class__:pr});var Lg=function(){Qa.call(this);this.applicationDomain=Ah.currentDomain;this.bytesTotal=this.bytesLoaded=0;this.childAllowsParent=!0;this.parameters={}};g["openfl.display.LoaderInfo"]=Lg;Lg.__name__=["openfl","display","LoaderInfo"];Lg.create=function(a){var b=new Lg;b.uncaughtErrorEvents=new Vn;null!=a?b.loader=a:b.url=Lg.__rootURL;return b};Lg.__super__=Qa;Lg.prototype=r(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__:Lg});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 bb.resolveClass(a)},hasDefinition:function(a){return null!= bb.resolveClass(a)},__class__:Ah};var Vn=function(a){Qa.call(this,a)};g["openfl.events.UncaughtErrorEvents"]=Vn;Vn.__name__=["openfl","events","UncaughtErrorEvents"];Vn.__super__=Qa;Vn.prototype=r(Qa.prototype,{__class__:Vn});var ka=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"]=ka;ka.__name__=["openfl","geom","Matrix"];ka.prototype={a:null,b:null,c:null, d:null,tx:null,ty:null,__array:null,clone:function(){return new ka(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__:Af,__properties__:{set_color:"set_color",get_color:"get_color"}};var pa=function(){}; g["openfl.Lib"]=pa;pa.__name__=["openfl","Lib"];pa.application=null;pa.as=function(a,b){return m.__instanceof(a,b)?a:null};pa.attach=function(a){return new we};pa.embed=ul.openfl.embed=function(a,b,c,d,e){pc.embed(a,b,c,d,e)};pa.getTimer=function(){return pc.getTimer()};pa.getURL=function(a,b){null==b&&(b="_blank");window.open(a.url,b)};pa.notImplemented=function(a){pa.__sentWarnings.exists(a)||(pa.__sentWarnings.set(a,!0),null)};pa.preventDefaultTouchMove=function(){window.document.addEventListener("touchmove", function(a){a.preventDefault()},!1)};pa.trace=function(a){Bq.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 Rb;c.data=Array(a);c.length=a;c.fixed=b;return c};ec.concat=function(a,b){var c=new Rb;c.length=null!=b?a.length+b.length:a.length;c.fixed=!1;c.data=Array(c.length);H.blit(a.data,0,c.data,0,a.length);null!=b&&H.blit(b.data,0,c.data,a.length,b.length);return c};ec.copy=function(a){var b=new Rb;b.length=a.length;b.fixed=a.fixed;b.data=Array(a.length);H.blit(a.data,0,b.data,0,a.length);return b};ec.iterator=function(a){return new qr(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 Rb;e.length= c-b;e.fixed=!0;e.data=Array(d);H.blit(a.data,b,e.data,0,d);return e};ec.sort=function(a,b){var c=H.toArray(a.data);c.sort(b);var d;d=Array(c.length);for(var e=0,f=c.length;eb&&(b+=a.length);b+c>a.length&&(c=a.length-b);0>c&&(c=0);var d=new Rb;d.length=c;d.fixed=!1;d.data=Array(c);H.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 Rb;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);H.blit(a.data,0,c,0,t["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 Rb=function(){this.length=0};g["openfl.VectorData"]=Rb;Rb.__name__=["openfl","VectorData"];Rb.prototype= {data:null,fixed:null,length:null,__class__:Rb};var qr=function(a){this.index=0;this.vectorData=a};g["openfl.VectorDataIterator"]=qr;qr.__name__=["openfl","VectorDataIterator"];qr.prototype={index:null,vectorData:null,hasNext:function(){return this.indexu;)t=u++/20,p=1-t,g=p*p,k=g*p,l=t*t,m=l*t,r=k*n+3*g*t*b+3*p*l*d+m*f,p=k*q+3*g*t*c+3*p*l*e+m*h,a.push(r),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 Bi=function(){};g["openfl._internal.renderer.PolyK"]=Bi;Bi.__name__=["openfl","_internal","renderer","PolyK"];Bi.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};Bi._convex=function(a,b,c,d,e,f,h){return 0<=(b-d)*(e-c)+(c-a)*(f-d)==h};var Ci=function(){this.activeTextures=0};g["openfl._internal.renderer.RenderSession"]=Ci;Ci.__name__=["openfl","_internal","renderer","RenderSession"];Ci.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,activeTextures:null,shaderManager:null,maskManager:null,filterManager:null,blendModeManager:null,spriteBatch:null,stencilManager:null,defaultFramebuffer:null,__class__:Ci};var Vr=function(){};g["openfl._internal.renderer.cairo.CairoBitmap"]=Vr;Vr.__name__=["openfl","_internal","renderer","cairo","CairoBitmap"];Vr.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.__renderTransform,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=Wb.createForSurface(d),Wb.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 O=function(){};g["openfl._internal.renderer.cairo.CairoGraphics"]=O;O.__name__=["openfl","_internal","renderer","cairo","CairoGraphics"];O.bitmapFill=null;O.bitmapRepeat=null;O.bounds=null;O.cairo=null;O.fillPattern=null;O.fillPatternMatrix=null;O.graphics=null;O.hasFill=null;O.hasStroke=null;O.hitTesting=null;O.inversePendingMatrix=null;O.pendingMatrix= null;O.strokePattern=null;O.closePath=function(){null!=O.strokePattern&&(O.cairo.closePath(),O.cairo.set_source(O.strokePattern),O.hitTesting||O.cairo.strokePreserve(),O.cairo.newPath())};O.createGradientPattern=function(a,b,c,d,e,f,h,p){f=null;switch(a[1]){case 0:null==e&&(e=new ka);f=e.transformPoint(new Q(1638.4,0));a=e.tx+O.graphics.__bounds.x;h=e.ty+O.graphics.__bounds.y;f=Wb.createRadial(a,h,0,a,h,(f.x-e.tx)/2);break;case 1:null==e&&(e=new ka),f=e.transformPoint(new Q(-819.2,0)),e=e.transformPoint(new Q(819.2, 0)),f.x+=O.graphics.__bounds.x,e.x+=O.graphics.__bounds.x,f.y+=O.graphics.__bounds.y,e.y+=O.graphics.__bounds.y,f=Wb.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*O.SIN45,p=-e+e*O.TAN22,g=-f+f*O.SIN45,k=-f+f*O.TAN22;O.cairo.moveTo(c,d-f);O.quadraticCurveTo(c,d+k,c+h,d+g);O.quadraticCurveTo(c+p,d,c-e,d);O.cairo.lineTo(a+e,d);O.quadraticCurveTo(a-p,d,a-h,d+g);O.quadraticCurveTo(a,d+k,a,d-f);O.cairo.lineTo(a,b+f);O.quadraticCurveTo(a,b-k,a-h,b-g);O.quadraticCurveTo(a-p,b,a+e,b);O.cairo.lineTo(c-e,b);O.quadraticCurveTo(c+ p,b,c+h,b-g);O.quadraticCurveTo(c,b-k,c,b+f);O.cairo.lineTo(c,d-f)};O.endFill=function(){O.cairo.newPath();O.playCommands(O.fillCommands,!1);O.fillCommands.clear()};O.endStroke=function(){O.cairo.newPath();O.playCommands(O.strokeCommands,!0);O.cairo.closePath();O.strokeCommands.clear()};O.hitTest=function(a,b,c){return!1};O.isCCW=function(a,b,c,d,e,f){return 0>(c-a)*(f-b)-(d-b)*(e-a)};O.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,X=((K.buffer.o[K.oPos+1]&65280)>>>8)/255,V=(K.buffer.o[K.oPos+1]&255)/255;O.strokePattern=1==K.buffer.o[K.oPos+2]||null==K.buffer.o[K.oPos+2]?Wb.createRGB(Q,X,V):Wb.createRGBA(Q,X,V,K.buffer.o[K.oPos+2])}break;case 14:var R;l.advance();l.prev=N.LINE_GRADIENT_STYLE;R=l;b&&O.hasStroke&&O.closePath();O.cairo.moveTo(e-c,f-d);O.strokePattern=O.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]);O.hasStroke=!0;break;case 13:var T;l.advance();l.prev=N.LINE_BITMAP_STYLE;T=l;b&&O.hasStroke&&O.closePath();O.cairo.moveTo(e-c,f-d);O.strokePattern=O.createImagePattern(T.buffer.o[T.oPos],T.buffer.o[T.oPos+1],T.buffer.b[T.bPos]);O.hasStroke=!0;break;case 0:var U;l.advance();l.prev=N.BEGIN_BITMAP_FILL;U=l;O.fillPattern=O.createImagePattern(U.buffer.o[U.oPos],U.buffer.o[U.oPos+1],U.buffer.b[U.bPos]);O.bitmapFill=U.buffer.o[U.oPos];O.bitmapRepeat=U.buffer.b[U.bPos];O.hasFill= !0;break;case 1:var Y;l.advance();l.prev=N.BEGIN_FILL;Y=l;.005>Y.buffer.f[Y.fPos]?O.hasFill=!1:(null!=O.fillPattern&&(O.fillPatternMatrix=null),O.fillPattern=Wb.createRGBA(((Y.buffer.i[Y.iPos]&16711680)>>>16)/255,((Y.buffer.i[Y.iPos]&65280)>>>8)/255,(Y.buffer.i[Y.iPos]&255)/255,Y.buffer.f[Y.fPos]),O.hasFill=!0);O.bitmapFill=null;break;case 2:var W;l.advance();l.prev=N.BEGIN_GRADIENT_FILL;W=l;null!=O.fillPattern&&(O.fillPatternMatrix=null);O.fillPattern=O.createGradientPattern(W.buffer.o[W.oPos],W.buffer.ii[W.iiPos], W.buffer.ff[W.ffPos],W.buffer.ii[W.iiPos+1],W.buffer.o[W.oPos+1],W.buffer.o[W.oPos+2],W.buffer.o[W.oPos+3],W.buffer.o[W.oPos+4]);O.hasFill=!0;O.bitmapFill=null;break;case 11:var Z;l.advance();l.prev=N.DRAW_TRIANGLES;Z=l;var ca=Z.buffer.o[Z.oPos],ba=Z.buffer.o[Z.oPos+1],S=Z.buffer.o[Z.oPos+2],da=null==O.bitmapFill;if(da&&null!=S)throw"__break__";var ea=0,fa=0;if(!da){if(null==S){var ga;ga=new Rb;ga.data=[];ga.length=0;ga.fixed=!1;for(var S=ga,na=0,ka=ca.length/2|0;na(za-wa)*(Ga-ya)-(Ea-ya)*(Ca-wa))){ia+=3;continue}break;case 0:if(0>(za- wa)*(Ga-ya)-(Ea-ya)*(Ca-wa)){ia+=3;continue}}if(da)O.cairo.newPath(),O.cairo.moveTo(wa,ya),O.cairo.lineTo(za,Ea),O.cairo.lineTo(Ca,Ga),O.cairo.closePath(),O.hitTesting||O.cairo.fillPreserve();else if(O.cairo.identityMatrix(),O.cairo.newPath(),O.cairo.moveTo(wa,ya),O.cairo.lineTo(za,Ea),O.cairo.lineTo(Ca,Ga),O.cairo.closePath(),Ka=S.data[ua]*ea,Ia=S.data[aa]*ea,La=S.data[Aa]*ea,Ha=S.data[va]*fa,Da=S.data[Ba]*fa,xa=S.data[Fa]*fa,Ja=Ka*(xa-Da)-Ia*xa+La*Da+(Ia-La)*Ha,0!=Ja){Ma=-(Ha*(Ca-za)-Da*Ca+xa*za+ (Da-xa)*wa)/Ja;Qa=(Da*Ga+Ha*(Ea-Ga)-xa*Ea+(xa-Da)*ya)/Ja;Ra=(Ka*(Ca-za)-Ia*Ca+La*za+(Ia-La)*wa)/Ja;Na=-(Ia*Ga+Ka*(Ea-Ga)-La*Ea+(La-Ia)*ya)/Ja;Oa=(Ka*(xa*za-Da*Ca)+Ha*(Ia*Ca-La*za)+(La*Da-Ia*xa)*wa)/Ja;Ta=(Ka*(xa*Ea-Da*Ga)+Ha*(Ia*Ga-La*Ea)+(La*Da-Ia*xa)*ya)/Ja;var Ua=new vg(Ma,Qa,Ra,Na,Oa,Ta);O.cairo.set_matrix(Ua);O.cairo.set_source(O.fillPattern);O.hitTesting||O.cairo.fill()}ia+=3}break;case 10:var Pa;l.advance();l.prev=N.DRAW_TILES;Pa=l;var Wa=0<(Pa.buffer.i[Pa.iPos]&1),Xa=0<(Pa.buffer.i[Pa.iPos]& 2),Za=O.bounds.x,$a=O.bounds.y,Ya=0<(Pa.buffer.i[Pa.iPos]&16),bb=0<(Pa.buffer.i[Pa.iPos]&4),ab=0<(Pa.buffer.i[Pa.iPos]&8),cb=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=Wa=!1);var jb=0,kb=0,lb=0,eb=0,Va=3;cb&&(Va=gb?8:6);Wa&&(jb=Va,Va++);Xa&&(kb=Va,Va++);Ya&&(eb=Va,Va+=4);bb&&(Va+=3);ab&&(lb=Va,Va++);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();O.cairo.save();hb&&O.cairo.set_operator(12);for(ib&&O.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.__renderTransform,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 ka);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 ka,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 yg(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,q=(n.buffer.o[n.oPos+1]&65280)>>>8,x=n.buffer.o[n.oPos+1]&255, z.context.strokeStyle=null==n.buffer.o[n.oPos+1]?"#000000":"rgba("+r+", "+q+", "+x+", "+n.buffer.o[n.oPos+2]+")");z.hasStroke=!0}break;case 14:k.advance();k.prev=N.LINE_GRADIENT_STYLE;n=k;b&&z.hasStroke&&z.closePath();z.context.moveTo(e-c,f-d);z.context.strokeStyle=z.createGradientPattern(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos],n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.o[n.oPos+4]);z.hasStroke=!0;break;case 13:k.advance();k.prev= N.LINE_BITMAP_STYLE;n=k;b&&z.hasStroke&&z.closePath();z.context.moveTo(e-c,f-d);z.context.strokeStyle=z.createBitmapFill(n.buffer.o[n.oPos],n.buffer.b[n.bPos]);z.hasStroke=!0;break;case 0:k.advance();k.prev=N.BEGIN_BITMAP_FILL;n=k;z.context.fillStyle=z.createBitmapFill(n.buffer.o[n.oPos],!0);z.hasFill=!0;null!=n.buffer.o[n.oPos+1]?(z.pendingMatrix=n.buffer.o[n.oPos+1],z.inversePendingMatrix=n.buffer.o[n.oPos+1].clone(),z.inversePendingMatrix.invert()):(z.pendingMatrix=null,z.inversePendingMatrix= null);break;case 1:k.advance();k.prev=N.BEGIN_FILL;n=k;.005>n.buffer.f[n.fPos]?z.hasFill=!1:(z.context.fillStyle=1==n.buffer.f[n.fPos]?"#"+X.hex(n.buffer.i[n.iPos],6):"rgba("+((n.buffer.i[n.iPos]&16711680)>>>16)+", "+((n.buffer.i[n.iPos]&65280)>>>8)+", "+(n.buffer.i[n.iPos]&255)+", "+n.buffer.f[n.fPos]+")",z.bitmapFill=null,z.hasFill=!0);break;case 2:k.advance();k.prev=N.BEGIN_GRADIENT_FILL;n=k;z.context.fillStyle=z.createGradientPattern(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos], n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.o[n.oPos+4]);z.bitmapFill=null;z.hasFill=!0;break;case 8:k.advance();k.prev=N.DRAW_RECT;n=k;r=!1;null!=z.bitmapFill&&(y=w=u=q=0,x=!0,null!=z.pendingMatrix?0!=z.pendingMatrix.b||0!=z.pendingMatrix.c?x=!1:(w=z.inversePendingMatrix.transformPoint(new Q(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1])),u=z.inversePendingMatrix.transformPoint(new Q(n.buffer.f[n.fPos]+n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+1]+n.buffer.f[n.fPos+ 3])),q=w.y,y=w.x,w=u.y,u=u.x):(q=n.buffer.f[n.fPos+1],y=n.buffer.f[n.fPos],w=n.buffer.f[n.fPos+1]+n.buffer.f[n.fPos+3],u=n.buffer.f[n.fPos]+n.buffer.f[n.fPos+2]),x&&0<=q&&0<=y&&u<=z.bitmapFill.width&&w<=z.bitmapFill.height&&(r=!0,z.hitTesting||z.context.drawImage(z.bitmapFill.image.get_src(),y,q,u-y,w-q,n.buffer.f[n.fPos]-c,n.buffer.f[n.fPos+1]-d,n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3])));r||z.context.rect(n.buffer.f[n.fPos]-c,n.buffer.f[n.fPos+1]-d,n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);break; default:k.advance(),k.prev=n}}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 yg(a.__commands),d=0,e=a.__commands.types;try{for(;d(ea-ba)*(ia-da)-(fa-da)*(ga-ba))){D+=3;continue}break;case 0:if(0>(ea-ba)*(ia-da)-(fa-da)*(ga-ba)){D+=3;continue}}F?(z.context.beginPath(),z.context.moveTo(ba,da),z.context.lineTo(ea,fa),z.context.lineTo(ga,ia),z.context.closePath(),z.hitTesting||z.context.fill()):(z.context.save(),z.context.beginPath(),z.context.moveTo(ba,da),z.context.lineTo(ea,fa),z.context.lineTo(ga,ia),z.context.closePath(),z.context.clip(),na=B.data[U]*E.width,ja=B.data[W]*E.width,la=B.data[Z]*E.width,oa= B.data[V]*E.height,ka=B.data[Y]*E.height,ma=B.data[ca]*E.height,pa=na*(ma-ka)-ja*ma+la*ka+(ja-la)*oa,0!=pa&&(qa=-(oa*(ga-ea)-ka*ga+ma*ea+(ka-ma)*ba)/pa,ra=(ka*ia+oa*(fa-ia)-ma*fa+(ma-ka)*da)/pa,sa=(na*(ga-ea)-ja*ga+la*ea+(ja-la)*ba)/pa,ta=-(ja*ia+na*(fa-ia)-la*fa+(la-ja)*da)/pa,ua=(na*(ma*ea-ka*ga)+oa*(ja*ga-la*ea)+(la*ka-ja*ma)*ba)/pa,va=(na*(ma*fa-ka*ia)+oa*(ja*ia-la*fa)+(la*ka-ja*ma)*da)/pa,z.context.transform(qa,ra,sa,ta,ua,va),z.context.drawImage(E,0,0),z.context.restore()));D+=3}break;case 10:var aa; c.advance();c.prev=N.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),Ia=0<(aa.buffer.i[aa.iPos]&65536);Aa&&(ya=wa=!1);var Ka=D=E=0,Ha=0,Da=3;Ca&&(Da=Ga?8:6);wa&&(E=Da,Da++);ya&&(D=Da,Da++);Aa&&(Ha=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,Ja=null,Ma=null,Qa=-1,Ra;aa.buffer.ts[aa.tsPos].__bitmap.__sync();Ra=aa.buffer.ts[aa.tsPos].__bitmap.image.get_src();Ia&&(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!=Da.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 ia(0,0,d.width,d.height);var e=a.__graphics;cc.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;cc.context.font=Mb.getFont(m.format);cc.context.fillStyle="#"+X.hex(m.format.color,6);g&&(p=.185*m.format.size);cc.context.fillText(f.substring(m.startIndex,m.endIndex),m.offsetX+d,m.offsetY+p+h);if(-1=a.__caretIndex){for(var q=l=0, r=a.__caretIndex-m.startIndex;q=a.__caretIndex||m.startIndex<=a.__selectionIndex&&m.endIndex>=a.__selectionIndex)l=t["int"](Math.min(a.__selectionIndex,a.__caretIndex)),q=t["int"](Math.max(a.__selectionIndex,a.__caretIndex)),m.startIndex>l&&(l=m.startIndex),m.endIndex=c.text.length?(u=a.getCharBoundaries(c.text.length- 1),u.x+=u.width+2):u=a.getCharBoundaries(q),null!=r&&null!=u&&(cc.context.fillStyle="#000000",cc.context.fillRect(r.x,r.y,u.x-r.x,m.height),cc.context.fillStyle="#FFFFFF",cc.context.fillText(f.substring(l,q),d+r.x,m.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?cc.context.rect(.5,.5,d.width-1,d.height-1):cc.context.rect(0,0,d.width,d.height),c.background&&(cc.context.fillStyle="#"+X.hex(c.backgroundColor,6),cc.context.fill()), c.border&&(cc.context.lineWidth=1,cc.context.lineCap="square",cc.context.strokeStyle="#"+X.hex(c.borderColor,6),cc.context.stroke());e.__bitmap=hb.fromCanvas(a.__graphics.__canvas);a.__dirty=!1;e.set___dirty(!1)}}};var ao=function(a,b,c){Nd.call(this,a,b);throw new q("ConsoleRenderer not supported");};g["openfl._internal.renderer.console.ConsoleRenderer"]=ao;ao.__name__=["openfl","_internal","renderer","console","ConsoleRenderer"];ao.__super__=Nd;ao.prototype=r(Nd.prototype,{render:function(a){}, __class__:ao});var ai=function(){};g["openfl._internal.renderer.dom.DOMBitmap"]=ai;ai.__name__=["openfl","_internal","renderer","dom","DOMBitmap"];ai.render=function(a,b){null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=a.bitmapData&&a.bitmapData.__isValid?null!=a.bitmapData.image.buffer.__srcImage?ai.renderImage(a,b):ai.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))};ai.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)};ai.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 bo=function(a){this.renderSession=a};g["openfl._internal.renderer.dom.DOMMaskManager"]=bo;bo.__name__=["openfl", "_internal","renderer","dom","DOMMaskManager"];bo.__super__=xg;bo.prototype=r(xg.prototype,{pushMask:function(a){},pushRect:function(a,b){},popMask:function(){},__class__:bo});var Yd=function(a,b,c){Nd.call(this,a,b);this.element=c;this.renderSession=new Ci;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 bo(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=ia.__temp,c=ka.__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=r(Nd.prototype,{element:null,render:function(a){this.element.style.background=a.__colorString;this.renderSession.z=1;a.__renderDOM(this.renderSession)},__class__:Yd});var Tr=function(){};g["openfl._internal.renderer.dom.DOMShape"]=Tr;Tr.__name__=["openfl","_internal","renderer","dom","DOMShape"];Tr.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= ka.__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 eq=function(){};g["openfl._internal.renderer.dom.DOMTextField"]= eq;eq.__name__=["openfl","_internal","renderer","dom","DOMTextField"];eq.measureText=function(a){var b=a.__textEngine,c=a.__div;null==c&&(c=window.document.createElement("div"),c.innerHTML=(new Gc("\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=t.string(b.width- 4)+"px");b.__measuredHeight=c.clientHeight;null==a.__div&&window.document.body.removeChild(c)};eq.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","#"+X.hex(c.backgroundColor,6),null):d.removeProperty("background-color");c.border?d.setProperty("border","solid 1px #"+X.hex(c.borderColor,6),null):d.removeProperty("border");d.setProperty("font",Mb.getFont(a.__textFormat), null);d.setProperty("color","#"+X.hex(a.__textFormat.color,6),null);c.autoSize!=Da.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 ud=function(){};g["openfl._internal.renderer.opengl.GLBitmap"]=ud;ud.__name__=["openfl","_internal","renderer","opengl","GLBitmap"];ud.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.__shader,a.pixelSnapping)};ud.pushFramebuffer= function(a,b,c,d,e,f,h){null==h&&(h=!0);null==f&&(f=!1);null==e&&(e=!0);var p=a.gl;if(null==p)return null;var g=a.renderer,k=c.x|0,l=c.y|0,m=c.width|0,n=c.height|0;a.spriteBatch.finish();0>=ud.fbData.length&&ud.fbData.push({texture:null,viewPort:null,transparent:g.transparent});null==b&&(b=new sr(p,m,n,d,h));b.resize(m,n);g.transparent=e;a.maskManager.saveState();p.bindFramebuffer(p.FRAMEBUFFER,(b.__swapped?b.__texture1:b.__texture0).frameBuffer);g.setViewport(k,l,m,n);p.colorMask(!0,!0,!0,!0);a.blendModeManager.setBlendMode(ya.NORMAL); f&&(b.__swapped?b.__texture1:b.__texture0).clear(0,0,0,0,null);ud.fbData.push({texture:b,viewPort:c,transparent:e});return b};ud.drawBitmapDrawable=function(a,b,c,d,e,f,h){var p=ud.fbData[ud.fbData.length-1];if(null==p)throw new q("No data to draw to");var g=a.gl;if(null!=g){var p=p.viewPort,k=a.spriteBatch,l=null!=b;h=null==h?new ia(p.x,p.y,p.width,p.height):h.clone();k.begin(a,l?null:h);l&&(b.__worldTransform.identity(),ud.flipMatrix(b.__worldTransform,p.height),b.__renderGL(a),k.stop(),null!=b.__texture&& g.deleteTexture(b.__texture),b.__texture=null,k.start(h));b=c.__worldColorTransform;g=c.__blendMode;h=c.__cacheAsBitmap;d=null!=d?new ka(d.a,d.b,d.c,d.d,d.tx,d.ty):new ka;ud.flipMatrix(d,p.height);c.__worldColorTransform=null!=e?e:new Af;c.__blendMode=f;Ga.__cacheAsBitmapMode=!0;c.__updateTransforms(d);c.__updateChildren(!1);c.__cacheAsBitmap=!1;c.__renderGL(a);c.__cacheAsBitmap=h;c.__worldColorTransform=b;c.__blendMode=g;Ga.__cacheAsBitmapMode=!1;c.__updateTransforms();c.__updateChildren(!1)}};ud.popFramebuffer= function(a,b){var c=a.gl;if(null!=c){a.spriteBatch.finish();ud.fbData.pop();var d=ud.fbData[ud.fbData.length-1];if(null==d)throw new q("oh");var e,f,h,p;null==d.viewPort?(e=f=0,h=a.renderer.width,p=a.renderer.height):(e=Math.floor(d.viewPort.x),f=Math.floor(d.viewPort.y),h=Math.ceil(d.viewPort.width),p=Math.ceil(d.viewPort.height));null!=b&&(b.width==h&&b.height==p||b.resize(h,p),c.readPixels(e,f,h,p,c.RGBA,c.UNSIGNED_BYTE,b.buffer.data),b.dirty=!1,b.set_premultiplied(!0));c.bindFramebuffer(c.FRAMEBUFFER, null==d.texture?a.defaultFramebuffer:d.texture.get_framebuffer());a.renderer.setViewport(e,f,h,p);a.renderer.transparent=d.transparent;a.maskManager.restoreState()}};ud.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 vd=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 ia;this.options={alpha:d,antialias:e,premultipliedAlpha:d,stencil:!0,preserveDrawingBuffer:f};this._glContextId=vd.glContextId++;this.gl=c;this.defaultFramebuffer=null;vd.glContexts[this._glContextId]=c;this.projectionMatrix=new ka;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 $k(c);this.spriteBatch=new co(c);this.filterManager= new tr(c,this.transparent);this.stencilManager=new ur(c);this.blendModeManager=new vr(c);this.renderSession=new Ci;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 eo(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"]=vd;vd.__name__=["openfl","_internal","renderer","opengl","GLRenderer"];vd.renderBitmap=function(a,b,c){null==c&& (c=!0);if(a.__renderable&&!(0>=a.__worldAlpha)&&null!=a.__graphics&&null!=a.__graphics.__bitmap){var d=ia.__temp,e=ka.__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,null,De.ALWAYS)}};vd.__super__=Nd;vd.prototype=r(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=vd.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;vd.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__:vd});var jc=function(a){this.wrapS=this.wrapT=33071;this.compiled=!1;this.uniforms=new ga;this.attributes=new ga;this.ID=jc.UID++;this.gl=a;this.program=null};g["openfl._internal.renderer.opengl.shaders2.Shader"]=jc;jc.__name__="openfl _internal renderer opengl shaders2 Shader".split(" ");jc.compileProgram=function(a,b,c){var d=$k.compiledShadersCache, e=si.encode(b+c);if(null!=R[e]?d.existsReserved(e):d.h.hasOwnProperty(e))return null!=R[e]?d.getReserved(e):d.h[e];b=jc.compileShader(a,b,a.VERTEX_SHADER);c=jc.compileShader(a,c,a.FRAGMENT_SHADER);var f=a.createProgram();if(null!=b&&null!=c&&(a.attachShader(f,b),a.attachShader(f,c),a.linkProgram(f),a.deleteShader(b),a.deleteShader(c),0==a.getProgramParameter(f,a.LINK_STATUS)))return null;null!=R[e]?d.setReserved(e,f):d.h[e]=f;return f};jc.compileShader=function(a,b,c){c=a.createShader(c);a.shaderSource(c, b);a.compileShader(c);return 0==a.getShaderParameter(c,a.COMPILE_STATUS)?null:c};jc.prototype={gl:null,vertexSrc:null,fragmentSrc:null,attributes:null,uniforms:null,compiled:null,ID:null,program:null,wrapS:null,wrapT:null,smooth:null,blendMode:null,vertexString:null,fragmentString:null,init:function(a){null==a&&(a=!1);if(!this.compiled||a){null!=this.vertexSrc&&(this.vertexString=this.vertexSrc.join("\n"));null!=this.fragmentSrc&&(this.fragmentString=this.fragmentSrc.join("\n"));if(null==this.vertexString|| null==this.fragmentString)throw new q("No vertex or fragment source provided");this.program=jc.compileProgram(this.gl,this.vertexString,this.fragmentString);null!=this.program&&(this.compiled=!0)}},destroy:function(){null!=this.program&&this.gl.deleteProgram(this.program);this.compiled=!1;this.attributes=null},applyData:function(a,b){if(null!=a)for(var c,d,e,f,h=a.keys();h.hasNext();)if(e=h.next(),d=this.getUniformLocation(e),c=null!=R[e]?a.getReserved(e):a.h[e],null!=c&&(e=c.value,f=c.bitmap,null!= e||null!=f))switch(c.internalType){case 1:switch(c.size){case 1:this.gl.uniform1i(d,e[0]|0);break;case 2:this.gl.uniform2i(d,e[0]|0,e[1]|0);break;case 3:this.gl.uniform3i(d,e[0]|0,e[1]|0,e[2]|0);break;case 4:this.gl.uniform4i(d,e[0]|0,e[1]|0,e[2]|0,e[3]|0)}break;case 2:switch(c.size){case 1:this.gl.uniform1f(d,e[0]);break;case 2:this.gl.uniform2f(d,e[0],e[1]);break;case 3:this.gl.uniform3f(d,e[0],e[1],e[2]);break;case 4:this.gl.uniform4f(d,e[0],e[1],e[2],e[3])}break;case 3:switch(c.size){case 2:this.gl.uniformMatrix2fv(d, c.transpose,function(a){a=c.value;return null!=a?new Float32Array(a):null}(this));break;case 3:this.gl.uniformMatrix3fv(d,c.transpose,function(a){a=c.value;return null!=a?new Float32Array(a):null}(this));break;case 4:this.gl.uniformMatrix4fv(d,c.transpose,function(a){a=c.value;return null!=a?new Float32Array(a):null}(this))}break;case 4:if(null==f||!f.__isValid)continue;this.gl.activeTexture(this.gl.TEXTURE0+b.activeTextures);this.gl.bindTexture(this.gl.TEXTURE_2D,f.getTexture(this.gl));this.gl.uniform1i(d, b.activeTextures);this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,c.smooth?this.gl.LINEAR:this.gl.NEAREST);this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,c.smooth?this.gl.LINEAR:this.gl.NEAREST);this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,c.repeatX);this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,c.repeatY);b.activeTextures++}},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)&&v.__currentPath.type==qb.Polygon&&v.__currentPath.fill!=Od.None){var b= v.__currentPath.points[0],c=v.__currentPath.points[1],d=v.__currentPath.points[a-1];b==v.__currentPath.points[a-2]&&c==d||v.lineTo(b,c)}};v.endFill=function(){v.__fill=Od.None;v.__fillIndex++};v.moveTo=function(a,b){!v.__currentPath.isRemovable||null!=v.__currentPath.points&&0!=v.__currentPath.points.length?v.closePath():v.__drawPaths.pop();v.__currentPath=new Kc;v.__currentPath.update(v.__line,v.__fill,v.__fillIndex,v.__currentWinding);v.__currentPath.type=qb.Polygon;v.__currentPath.points.push(a); v.__currentPath.points.push(b);v.__drawPaths.push(v.__currentPath)};v.lineTo=function(a,b){var c=v.__currentPath.points,d=!0;if(1k/2&&(m=k/2);p>l/2&&(p=l/2);!v.__currentPath.isRemovable||null!=v.__currentPath.points&&0!=v.__currentPath.points.length?v.closePath():v.__drawPaths.pop();v.__currentPath=new Kc;v.__currentPath.update(v.__line,v.__fill,v.__fillIndex,v.__currentWinding);v.__currentPath.type=qb.Rectangle(!0);v.__currentPath.points=[h,g,k,l,m,p];v.__drawPaths.push(v.__currentPath); break;case 12:d.advance();d.prev=N.END_FILL;v.endFill();break;case 15:d.advance();d.prev=N.LINE_STYLE;h=d;v.__line=new al;null==h.buffer.o[h.oPos]||isNaN(h.buffer.o[h.oPos])||0>h.buffer.o[h.oPos]?v.__line.width=0:v.__line.width=0==h.buffer.o[h.oPos]?1:h.buffer.o[h.oPos];!v.__currentPath.isRemovable||null!=v.__currentPath.points&&0!=v.__currentPath.points.length?v.closePath():v.__drawPaths.pop();v.__line.color=null==h.buffer.o[h.oPos+1]?0:h.buffer.o[h.oPos+1];v.__line.alpha=null==h.buffer.o[h.oPos+ 2]?1:h.buffer.o[h.oPos+2];v.__line.scaleMode=h.buffer.o[h.oPos+4];v.__line.caps=h.buffer.o[h.oPos+5];v.__line.joints=h.buffer.o[h.oPos+6];v.__line.miterLimit=h.buffer.o[h.oPos+7];v.__currentPath=new Kc;v.__currentPath.update(v.__line,v.__fill,v.__fillIndex,v.__currentWinding);v.__currentPath.points=[];v.__currentPath.type=qb.Polygon;v.__drawPaths.push(v.__currentPath);break;case 16:d.advance();d.prev=N.LINE_TO;h=d;v.lineTo(h.buffer.f[h.fPos],h.buffer.f[h.fPos+1]);break;case 17:d.advance();d.prev= N.MOVE_TO;h=d;!v.__currentPath.isRemovable||null!=v.__currentPath.points&&0!=v.__currentPath.points.length?v.closePath():v.__drawPaths.pop();v.__currentPath=new Kc;v.__currentPath.update(v.__line,v.__fill,v.__fillIndex,v.__currentWinding);v.__currentPath.type=qb.Polygon;v.__currentPath.points.push(h.buffer.f[h.fPos]);v.__currentPath.points.push(h.buffer.f[h.fPos+1]);v.__drawPaths.push(v.__currentPath);break;case 11:d.advance();d.prev=N.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(v.__fill[1]){case 1:n=!0;break;default:n=!1}if(n&&null!=m)continue;!v.__currentPath.isRemovable||null!=v.__currentPath.points&&0!=v.__currentPath.points.length?v.closePath():v.__drawPaths.pop();v.__currentPath=new Kc;v.__currentPath.update(v.__line,v.__fill,v.__fillIndex,v.__currentWinding);if(null==m)switch(m=new Rb,m.data=[],m.length=0,m.fixed=!1,n=v.__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(C)?(c.push(t-x),c.push(u-w),c.push(k),c.push(l),c.push(g),c.push(a),c.push(t+x),c.push(u+w),c.push(k),c.push(l),c.push(g),c.push(a)):(m=(A*v-B*q)/C,n=(r*q-n*v)/C,A=(m-t)*(m-t)+(n-u)+(n-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=ta.prepareBucket(a,b),g=e.getData(Me.Fill),f=g.verts,h=g.indices;if(null!=g){g=[];Bi.triangulate(g,c);for(var k=f.length/2,l=0;l(D-C)*(H-E)-(J-E)*(F-C)))continue;break;case 0:if(0>(D-C)*(H-E)-(J-E)*(F-C))continue}var N=w++;a[N]=l*C+n*E+r;N=w++;a[N]=m*C+q*E+b;C=w++;a[C]=g.data[x];C=w++;a[C]=g.data[x+1];u&&(x=w++,c[x]=e.data[y]); y=w++;a[y]=l*D+n*J+r;y=w++;a[y]=m*D+q*J+b;D=w++;a[D]=g.data[v];D=w++;a[D]=g.data[v+1];u&&(v=w++,c[v]=e.data[A]);A=w++;a[A]=l*F+n*H+r;A=w++;a[A]=m*F+q*H+b;F=w++;a[F]=g.data[z];F=w++;a[F]=g.data[z+1];u&&(z=w++,c[z]=e.data[B])}};ta.buildDrawTiles=function(a,b){ta.prepareBucket(a,b)};ta.quadraticBezierCurve=function(a,b,c,d,e,f){for(var h,g,k,l,m=[],n=0,q=0;21>q;)n=q++/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};ta.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&&ta.updateGraphics(a,a.__graphics,b.gl,a.get_cacheAsBitmap()),ta.renderGraphics(a,b,!1)):c.__glStack.splice(0,c.__glStack.length)};ta.renderGraphics=function(a,b,c){null==c&&(c=!1);var d=b.gl,e=a.__graphics.__glStack[vd.glContextId];if(null!=e){var f,h;h=c?ka.__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=ta.switchBucket(a.fillIndex,b,Qb.PatternFill);c.bitmap=h;c.textureRepeat=e;c.textureSmooth=d;c.texture=h.getTexture(b.gl);c.uploadTileBuffer=!0;d=null==f?new ka:new ka(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=ta.switchBucket(a.fillIndex,b,Qb.Line),c.uploadTileBuffer=!1}switch(a.type[1]){case 4:c.mode=Qb.DrawTriangles;c.uploadTileBuffer=!1;break;case 5:c.mode=Qb.DrawTiles,c.uploadTileBuffer=!1}c.graphicType=a.type;c.overrideMatrix=ta.overrideMatrix;return c};ta.getBucket=function(a,b){var c=ta.bucketPool.pop();null==c&&(c=new xr(a.gl));c.mode=b;a.buckets.push(c);return c};ta.switchBucket=function(a,b, c){for(var d=null,e=0,f=b.buckets;e(c-a)*(f-b)-(d-b)*(e-a)};ta.hex2rgb=function(a){return null==a?[1,1,1]:[(a>>16&255)/255,(a>>8&255)/255,(a&255)/255]};ta.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 wr=function(a){this.lastIndex=0;this.gl=a;this.buckets=[];this.lastIndex=0};g["openfl._internal.renderer.opengl.utils.GLStack"]=wr;wr.__name__="openfl _internal renderer opengl utils GLStack".split(" ");wr.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 l=a.__uvData;null!=l&&(this.prepareShader(h,a),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,l,e,g),this.setState(this.batchedSprites,k,b,f,d,h,!0),this.batchedSprites++)}},renderTiles:function(a,b,c,d,e,f,h){null==h&&(h=-1);null==e&&(e=0);null==d&&(d=!1);var g=b.__bitmap.getTexture(this.gl);if(null!=g){var k=0<(e&1), l=0<(e&2),m=0<(e&16),n=0<(e&4),q=0<(e&8),r=0<(e&32),t=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}}}m&&(l=k=!1);var u=0,w=0,x=0, v=0,z=0,y=3;r&&(y=t?8:6);k&&(u=y,y++);l&&(w=y,y++);m&&(z=y,y+=4);n&&(x=y,y+=3);q&&(v=y,y++);var A=c.length;0<=h&&A>h&&(A=h);Math.ceil(A/y);h=0;var B=-1,C=b.__rectTile,B=b.__rectUV,E=b.__point,D=0,F=0,B=1,J=16777215,H=1,I=0,M=1,N=M=I=0,K=D=I=H=0,O=0,K=0,L=a.__worldTransform,D=0,F=1,N=M=0,H=1,K=I=0,Q=L.a,R=L.b,S=L.c,T=L.d,X=L.tx,L=L.ty,U=0,V=0,W=0,Y=0,Z=0,aa=0;this.enableColor=!0;this.enableColor!=this.lastEnableColor&&(this.flush(),this.lastEnableColor=this.enableColor);this.attributes[2].enabled= this.lastEnableColor;this.elementsPerVertex=this.getElementsPerVertex();for(this.prepareShader(f,null);h=this.maxSprites&&this.flush(),D=c[h],F=c[h+1],r?(C.x=c[h+2],C.y=c[h+3],C.width=c[h+4],C.height=c[h+5],t?(E.x=c[h+6],E.y=c[h+7]):(E.x=0,E.y=0),U=C.width,V=C.height,W=C.get_left()/b.__bitmap.width,Y=C.get_top()/b.__bitmap.height,Z=C.get_right()/b.__bitmap.width,aa=C.get_bottom()/b.__bitmap.height):(B=(null==c[h+2]?0:c[h+2])|0,C=b.__tileRects[B],E=b.__centerPoints[B],B=b.__tileUVs[B], null!=C&&(U=C.width,V=C.height,W=B.x,Y=B.y,Z=B.width,aa=B.height)),null!=C&&0.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=null;this.currentState.shaderData=null;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&&ta.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[vd.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__:ur};var jo=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:t["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,0this.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,q=this.text.indexOf(" "),r=this.text.indexOf("\n"),t=0,u=2,w=2,x=0,v=0,z=null;a=r){h=new Yj(b.format,x,r);g=this.text;for(y=[];xthis.width-2&&(h.offsetY=w,h.offsetX=u,w+=l,v++);x=r+1;r=this.text.indexOf("\n",x);v++;b.end==r&&(a=q&&-1this.width-2&&(y=!0);if(y){w+=l;u=this.layoutGroups.length-1;for(t=0;;){h=this.layoutGroups[u];if(0n)t++;else break;u--}v++;u=2;if(0r&&-1this.text.length||q>b.end||-1==q&&-1=b.end)break;h=new Yj(b.format,x,b.end);g=this.text;for(y=[];xa&&(a=0);0>b&&(b=0);this.width=a;this.height=b;this.rect= new ia(0,0,a,b);0>24&255),this.image.set_transparent(c),this.__isValid=!0);this.__createUVs();this.__worldTransform=new ka;this.__worldColorTransform=new Af};g["openfl.display.BitmapData"]=hb;hb.__name__=["openfl","display","BitmapData"];hb.__interfaces__=[zl];hb.fromBase64=function(a,b,c){var d=new hb(0,0,!0);d.__fromBase64(a,b,c);return d};hb.fromBytes=function(a,b,c){var d=new hb(0,0,!0);d.__fromBytes(a, b,c);return d};hb.fromCanvas=function(a,b){null==b&&(b=!0);if(null==a)return null;var c=new hb(0,0,b);c.__fromImage(Eb.fromCanvas(a));c.image.set_transparent(b);return c};hb.fromFile=function(a,b,c){var d=new hb(0,0,!0);d.__fromFile(a,b,c);return d};hb.fromImage=function(a,b){null==b&&(b=!0);if(null==a||null==a.buffer)return null;var c=new hb(0,0,b);c.__fromImage(a);c.image.set_transparent(b);return c};hb.__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};hb.__asRenderTexture=function(a,b){null==b&&(b=0);null==a&&(a=0);var c=new hb(0,0);c.__resize(a,b);return c};hb.prototype={height:null,image:null,rect:null,transparent:null,width:null,__worldTransform:null,__worldColorTransform:null,__cacheAsBitmap:null,__blendMode:null,__shader:null,__buffer:null,__isValid:null,__surface:null,__texture:null,__textureImage:null,__pingPongTexture:null, __usingPingPongTexture:null,__uvData:null,applyFilter:function(a,b,c,d){this.__isValid&&null!=a&&a.__isValid&&(oa.convertToCanvas(this.image),oa.createImageData(this.image),oa.convertToCanvas(a.image),oa.createImageData(a.image),d.__applyFilter(this.image.buffer.__srcImageData,a.image.buffer.__srcImageData,b,c),this.image.dirty=!0)},clone:function(){return this.__isValid?hb.fromImage(this.image.clone(),this.transparent):new hb(this.width,this.height,this.transparent)},colorTransform:function(a,b){this.__isValid&& (this.image.colorTransform(a.__toLimeRectangle(),b.__toLimeColorMatrix()),this.__usingPingPongTexture=!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 hb(this.width,this.height,this.transparent||a.transparent,0)),b.setPixel32(t,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.__usingPingPongTexture=!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.__usingPingPongTexture=!1)},dispose:function(){this.image= null;this.height=this.width=0;this.rect=null;this.__isValid=!1;if(null!=this.__texture){var a=pa.current.stage.__renderer;null!=a&&(a=a.renderSession.gl,null!=a&&(a.deleteTexture(this.__texture),this.__texture=null))}null!=this.__pingPongTexture&&(this.__pingPongTexture.destroy(),this.__pingPongTexture=null)},draw:function(a,b,c,d,e,f){null==f&&(f=!1);if(this.__isValid){null!=c&&(d=new hb(u.getProperty(a,"width"),u.getProperty(a,"height"),!0,0),d.draw(a),d.colorTransform(d.rect,c),a=d);oa.convertToCanvas(this.image); oa.sync(this.image,!0);c=this.image.buffer;d=new Ci;d.context=c.__srcContext;d.roundPixels=!0;d.maskManager=new Zk(d);f||(c.__srcContext.mozImageSmoothingEnabled=!1,c.__srcContext.msImageSmoothingEnabled=!1,c.__srcContext.imageSmoothingEnabled=!1);null!=e&&d.maskManager.pushRect(e,new ka);var h=a.__worldTransform;a.__updateTransforms(null!=b?b:new ka);a.__updateChildren(!1);a.__renderCanvas(d);a.__updateTransforms(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,zr)?this.image.encode("png"):m.__instanceof(b,no)?this.image.encode("jpg",m.__cast(b,no).quality):null:null},fillRect:function(a,b){this.__isValid&&null!=a&&(this.transparent&&0==(b&-16777216)&&(b=0),this.image.fillRect(a.__toLimeRectangle(),b,1),this.__usingPingPongTexture=!1)}, floodFill:function(a,b,c){this.__isValid&&(this.image.floodFill(a,b,c,1),this.__usingPingPongTexture=!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 ia(0,0,this.width,this.height);a=this.image.getColorBoundsRect(a,b,c,1);return new ia(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=ug.fromImage(this.image));return this.__surface},getTexture:function(a){if(!this.__isValid)return null;if(this.__usingPingPongTexture&&null!=this.__pingPongTexture)return this.__pingPongTexture.get_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&&ns.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 Rb;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,hb)){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=ia.__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,ia)&&(e=ia.__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.__usingPingPongTexture=!1)},noise:function(a,b,c,d,e){this.__isValid&&pa.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,q,r,t,u=0,w=g*a;u>24&255];q=null==d?k&16711680:d[k>>16&255];r=null==e?k&65280:e[k>>8&255];t=null==f?k&255:f[k&255];n=(m>>24&255)+(q>>24&255)+(r>>24&255)+(t>>24&255);255>16&255)+(q>>16&255)+(r>>16&255)+(t>>16&255);255>8&255)+(q>>8&255)+(r>>8&255)+(t>>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,q=0,r=this.height;q"==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;q=b.width|0;n=b.height|0;r=c.x|0;c=c.y|0;t=this.width-q-r;r=0>t?q+(this.width-q-r):q;c=0>t?n+(this.height-n-c):n;t=0;u=q*n*4;n=new ib(u+q*n*4);n.position=0;a=a.getPixels(b);g?n.writeBytes(a):n.writeBytes(this.getPixels(k));n.position=u;n.writeBytes(a);n.position=0;kb.select(n);e&=h;var w,x;for(a=0;a"==d?x=1==w:"!="==d?x=0!=w:"<="==d?x=0==w||-1==w:">="==d&&(x=0==w||1==w),x&&(kb.setI32(g,f),t++)}n.position=0;this.setPixels(k,n);kb.select(null);return t},unlock:function(a){},__createUVs:function(a,b,c,d,e,f,h,g){null==g&&(g=1);null==h&&(h=0);null==f&&(f=1);null==e&&(e=1);null==d&&(d=0);null==c&&(c=1);null==b&&(b=0);null==a&&(a=0);null==this.__uvData&&(this.__uvData=new bl);this.__uvData.x0=a; this.__uvData.y0=b;this.__uvData.x1=c;this.__uvData.y1=d;this.__uvData.x2=e;this.__uvData.y2=f;this.__uvData.x3=h;this.__uvData.y3=g},__drawGL:function(a,b,c,d,e,f,h,g,k,l,m){null==m&&(m=!0);null==l&&(l=!1);null==k&&(k=!1);null==g&&(g=!1);null==h&&(h=!1);this.__pingPongTexture=ud.pushFramebuffer(a,this.__pingPongTexture,this.rect,h,this.transparent,k,m);ud.drawBitmapDrawable(a,g?this:null,b,c,d,e,f);ud.popFramebuffer(a,l?this.image:null);a=this.__pingPongTexture.get_renderTexture().__uvData;this.__createUVs(a.x0, a.y0,a.x1,a.y1,a.x2,a.y2,a.x3,a.y3);this.__usingPingPongTexture=this.__isValid=!0},__fromBase64:function(a,b,c){var d=this;Eb.fromBase64(a,b,function(a){d.__fromImage(a);null!=c&&c(d)})},__fromBytes:function(a,b,c){var d=this;Eb.fromBytes(a,function(a){d.__fromImage(a);if(null!=b){oa.convertToCanvas(a);oa.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){pa.notImplemented("Graphics.drawRoundRectComplex")},drawTiles:function(a,b,c,d,e,f){null==f&&(f=-1);null==d&&(d=0);null==c&&(c=!1);var h=0<(d&1),g=0<(d&2),k=0<(d&4),l=0<(d&8),m=0<(d&16),n=0<(d&32),q=0<(d&64),r=ia.__temp,u=ka.__temp,w=3,x=f;0>f&&(x=b.length);if(m||h||g||k||l){var v=0,y=0,z=0;n&&(w=q?8:6);h&&(v=w,w++);g&&(y= w,w++);m&&(z=w,w+=4);k&&(w+=3);l&&w++;for(var k=0,l=-1,A,B,C,E,D,F=null,H=null;kC?F=null:n||l==C?n&&(F=a.__rectTile,F.setTo(b[k+2],b[k+3],b[k+4],b[k+5]),H=a.__point,q?(H.x=b[k+6]/F.width,H.y=b[k+7]/F.height):(H.x=0,H.y=0)):(l=C,F=a.__tileRects[C],H=a.__centerPoints[C]),null!=F&&(m?(r.setTo(0,0,F.width,F.height),u.setTo(b[k+z],b[k+z+1],b[k+z+2],b[k+z+3],0,0),D=H.x*F.width,E=H.y*F.height,u.translate(A-(D*u.a+E*u.c+u.tx),B-(D* u.b+E*u.d+u.ty)),r.__transform(r,u),this.__inflateBounds(r.x,r.y),this.__inflateBounds(r.get_right(),r.get_bottom())):(C=F.width*E,E*=F.height,A-=H.x*C,B-=H.y*E,0!=D?(r.setTo(0,0,C,E),u.identity(),u.rotate(D),u.translate(A,B),r.__transform(r,u),this.__inflateBounds(r.x,r.y),this.__inflateBounds(r.get_right(),r.get_bottom())):(this.__inflateBounds(A,B),this.__inflateBounds(A+C,B+E)))),k+=w}else for(u=ia.__temp,w=0;wthis.__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=ia.__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 ia(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 Zj=function(){};g["openfl.display.IGraphicsFill"]=Zj;Zj.__name__=["openfl","display","IGraphicsFill"];Zj.prototype={__graphicsFillType:null,__class__:Zj};var Nh=function(){};g["openfl.display.IGraphicsData"]=Nh;Nh.__name__=["openfl","display", "IGraphicsData"];Nh.prototype={__graphicsDataType:null,__class__:Nh};var el=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=rc.BITMAP;this.__graphicsFillType=Pd.BITMAP_FILL};g["openfl.display.GraphicsBitmapFill"]=el;el.__name__=["openfl","display","GraphicsBitmapFill"];el.__interfaces__=[Zj,Nh];el.prototype={bitmapData:null,matrix:null,repeat:null,smooth:null,__graphicsDataType:null,__graphicsFillType:null,__class__:el}; var ro=function(){this.__graphicsDataType=rc.END;this.__graphicsFillType=Pd.END_FILL};g["openfl.display.GraphicsEndFill"]=ro;ro.__name__=["openfl","display","GraphicsEndFill"];ro.__interfaces__=[Zj,Nh];ro.prototype={__graphicsDataType:null,__graphicsFillType:null,__class__:ro};var fl=function(a,b,c,d,e,f,h,g){null==g&&(g=0);null==a&&(a=aa.LINEAR);null==f&&(f=Ha.PAD);null==h&&(h=jg.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=rc.GRADIENT;this.__graphicsFillType=Pd.GRADIENT_FILL};g["openfl.display.GraphicsGradientFill"]=fl;fl.__name__=["openfl","display","GraphicsGradientFill"];fl.__interfaces__=[Zj,Nh];fl.prototype={alphas:null,colors:null,focalPointRatio:null,interpolationMethod:null,matrix:null,ratios:null,spreadMethod:null,type:null,__graphicsDataType:null,__graphicsFillType:null,__class__:fl};var Ls=function(){};g["openfl.display.IGraphicsPath"]=Ls;Ls.__name__=["openfl", "display","IGraphicsPath"];var qo=function(a,b,c){null==c&&(c=hh.EVEN_ODD);this.commands=a;this.data=b;this.winding=c;this.__graphicsDataType=rc.PATH};g["openfl.display.GraphicsPath"]=qo;qo.__name__=["openfl","display","GraphicsPath"];qo.__interfaces__=[Ls,Nh];qo.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="#"+X.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 Nc(Nc.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 Nc(Nc.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__:gl,__properties__:r(ne.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 to=function(){Qa.call(this)};g["openfl.display.Stage3D"]=to;to.__name__=["openfl","display","Stage3D"];to.__super__=Qa;to.prototype=r(Qa.prototype,{context3D:null,visible:null,x:null,y:null,requestContext3D:function(a){null==a&&(a="");var b=this;Cg.get_isSupported()?Ab.delay(function(){b.context3D=new Ca;b.dispatchEvent(new J(J.CONTEXT3D_CREATE))},1):Ab.delay(function(){b.dispatchEvent(new me(me.ERROR))},1)},__class__:to});var Tb=g["openfl.display.StageAlign"]={__ename__:["openfl","display","StageAlign"], __constructs__:"TOP_RIGHT TOP_LEFT TOP RIGHT LEFT BOTTOM_RIGHT BOTTOM_LEFT BOTTOM".split(" ")};Tb.TOP_RIGHT=["TOP_RIGHT",0];Tb.TOP_RIGHT.toString=B;Tb.TOP_RIGHT.__enum__=Tb;Tb.TOP_LEFT=["TOP_LEFT",1];Tb.TOP_LEFT.toString=B;Tb.TOP_LEFT.__enum__=Tb;Tb.TOP=["TOP",2];Tb.TOP.toString=B;Tb.TOP.__enum__=Tb;Tb.RIGHT=["RIGHT",3];Tb.RIGHT.toString=B;Tb.RIGHT.__enum__=Tb;Tb.LEFT=["LEFT",4];Tb.LEFT.toString=B;Tb.LEFT.__enum__=Tb;Tb.BOTTOM_RIGHT=["BOTTOM_RIGHT",5];Tb.BOTTOM_RIGHT.toString=B;Tb.BOTTOM_RIGHT.__enum__= Tb;Tb.BOTTOM_LEFT=["BOTTOM_LEFT",6];Tb.BOTTOM_LEFT.toString=B;Tb.BOTTOM_LEFT.__enum__=Tb;Tb.BOTTOM=["BOTTOM",7];Tb.BOTTOM.toString=B;Tb.BOTTOM.__enum__=Tb;var Ke=g["openfl.display.StageDisplayState"]={__ename__:["openfl","display","StageDisplayState"],__constructs__:["NORMAL","FULL_SCREEN","FULL_SCREEN_INTERACTIVE"]};Ke.NORMAL=["NORMAL",0];Ke.NORMAL.toString=B;Ke.NORMAL.__enum__=Ke;Ke.FULL_SCREEN=["FULL_SCREEN",1];Ke.FULL_SCREEN.toString=B;Ke.FULL_SCREEN.__enum__=Ke;Ke.FULL_SCREEN_INTERACTIVE=["FULL_SCREEN_INTERACTIVE", 2];Ke.FULL_SCREEN_INTERACTIVE.toString=B;Ke.FULL_SCREEN_INTERACTIVE.__enum__=Ke;var Ae=g["openfl.display.StageQuality"]={__ename__:["openfl","display","StageQuality"],__constructs__:["BEST","HIGH","MEDIUM","LOW"]};Ae.BEST=["BEST",0];Ae.BEST.toString=B;Ae.BEST.__enum__=Ae;Ae.HIGH=["HIGH",1];Ae.HIGH.toString=B;Ae.HIGH.__enum__=Ae;Ae.MEDIUM=["MEDIUM",2];Ae.MEDIUM.toString=B;Ae.MEDIUM.__enum__=Ae;Ae.LOW=["LOW",3];Ae.LOW.toString=B;Ae.LOW.__enum__=Ae;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=B;$d.SHOW_ALL.__enum__=$d;$d.NO_SCALE=["NO_SCALE",1];$d.NO_SCALE.toString=B;$d.NO_SCALE.__enum__=$d;$d.NO_BORDER=["NO_BORDER",2];$d.NO_BORDER.toString=B;$d.NO_BORDER.__enum__=$d;$d.EXACT_FIT=["EXACT_FIT",3];$d.EXACT_FIT.toString=B;$d.EXACT_FIT.__enum__=$d;var $c=function(a){this.__bitmap=a;this.__centerPoints=[];this.__tileRects=[];this.__tileUVs=[];this.__rectTile= new ia;this.__rectUV=new ia;this.__point=new Q};g["openfl.display.Tilesheet"]=$c;$c.__name__=["openfl","display","Tilesheet"];$c.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=$c.__defaultPoint);this.__centerPoints.push(b);this.__tileUVs.push(new ia(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,null,e)},getTileCenter:function(a){return this.__centerPoints[a]},getTileRect:function(a){return this.__tileRects[a]},getTileUVs:function(a){return this.__tileUVs[a]},__class__:$c};var Qf=g["openfl.display.TriangleCulling"]={__ename__:["openfl","display","TriangleCulling"],__constructs__:["NEGATIVE","NONE","POSITIVE"]};Qf.NEGATIVE=["NEGATIVE", 0];Qf.NEGATIVE.toString=B;Qf.NEGATIVE.__enum__=Qf;Qf.NONE=["NONE",1];Qf.NONE.toString=B;Qf.NONE.__enum__=Qf;Qf.POSITIVE=["POSITIVE",2];Qf.POSITIVE.toString=B;Qf.POSITIVE.__enum__=Qf;var mo=function(a){vi.call(this,a)};g["openfl.display.Window"]=mo;mo.__name__=["openfl","display","Window"];mo.__super__=vi;mo.prototype=r(vi.prototype,{create:function(a){vi.prototype.create.call(this,a);this.stage=new gl(this,Object.prototype.hasOwnProperty.call(this.config,"background")?this.config.background:16777215); a.addModule(this.stage)},__class__:mo});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"]=Fi;Fi.__name__=["openfl","display3D","textures","CubeTexture"];Fi.__super__=yf;Fi.prototype=r(yf.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__:Fi});var Gi=function(a,b,c,d,e){this.optimizeForRenderToTexture=c;null==this.optimizeForRenderToTexture&&(this.optimizeForRenderToTexture=!1);yf.call(this,a,b,d,e)};g["openfl.display3D.textures.RectangleTexture"]=Gi;Gi.__name__=["openfl","display3D","textures","RectangleTexture"];Gi.__super__=yf;Gi.prototype=r(yf.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,Ir))for(var h=0,g=u.fields(c);h=a.split("?").length;e.open(b,a+(l?"?":"&")+t.string(f),!0);f=""}else e.open(b,a,!0)}catch(n){D.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;a< d.length;)b=d[a],++a,e.setRequestHeader(b.name,b.value);e.send(f);this.onOpen();this.getData=function(){return null!=e.response?e.response:e.responseText}},onData:function(a){a=this.getData();switch(this.dataFormat[1]){case 0:this.data=ib.__ofBuffer(a);break;default:this.data=t.string(a)}a=new J(J.COMPLETE);a.currentTarget=this;this.dispatchEvent(a)},onError:function(a){var b=new Hc(Hc.IO_ERROR);b.text=a;b.currentTarget=this;this.dispatchEvent(b)},onOpen:function(){var a=new J(J.OPEN);a.currentTarget= this;this.dispatchEvent(a)},onProgress:function(a){var b=new Fe(Fe.PROGRESS);b.currentTarget=this;b.bytesLoaded=a.loaded;b.bytesTotal=a.total;this.dispatchEvent(b)},onSecurityError:function(a){var b=new Ff(Ff.SECURITY_ERROR);b.text=a;b.currentTarget=this;this.dispatchEvent(b)},onStatus:function(a){a=new Gf(Gf.HTTP_STATUS,!1,!1,a);a.currentTarget=this;this.dispatchEvent(a)},set_dataFormat:function(a){a!=pd.BINARY||u.hasField(window,"ArrayBuffer")?this.dataFormat=a:this.dataFormat=pd.TEXT;return this.dataFormat}, __class__:gf,__properties__:{set_dataFormat:"set_dataFormat"}});var pd=g["openfl.net.URLLoaderDataFormat"]={__ename__:["openfl","net","URLLoaderDataFormat"],__constructs__:["BINARY","TEXT","VARIABLES"]};pd.BINARY=["BINARY",0];pd.BINARY.toString=B;pd.BINARY.__enum__=pd;pd.TEXT=["TEXT",1];pd.TEXT.toString=B;pd.TEXT.__enum__=pd;pd.VARIABLES=["VARIABLES",2];pd.VARIABLES.toString=B;pd.VARIABLES.__enum__=pd;var mc=function(a){null!=a&&(this.url=a);this.requestHeaders=[];this.method="GET";this.contentType= null};g["openfl.net.URLRequest"]=mc;mc.__name__=["openfl","net","URLRequest"];mc.prototype={contentType:null,data:null,method:null,requestHeaders:null,url:null,userAgent:null,formatRequestHeaders:function(){var a=this.requestHeaders;null==a&&(a=[]);if("GET"==this.method||null==this.data)return a;if("string"==typeof this.data||m.__instanceof(this.data,ib))a=a.slice(),a.push(new wo("Content-Type",null!=this.contentType?this.contentType:"application/x-www-form-urlencoded"));return a},__class__:mc};var wo= function(a,b){null==b&&(b="");null==a&&(a="");this.name=a;this.value=b};g["openfl.net.URLRequestHeader"]=wo;wo.__name__=["openfl","net","URLRequestHeader"];wo.prototype={name:null,value:null,__class__:wo};var Ir=function(a){null!=a&&this.decode(a)};g["openfl.net.URLVariables"]=Ir;Ir.__name__=["openfl","net","URLVariables"];Ir.prototype={decode:function(a){for(var b=u.fields(this),c=0;cd;){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"]=yo;yo.__name__=["openfl","ui","GameInputDevice"];yo.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};ma.__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 Nk=function(){};g["openfl.ui.Mouse"]=Nk;Nk.__name__=["openfl","ui","Mouse"];Nk.hide=function(){wf.hide()};Nk.show=function(){wf.show()};var qe=function(a,b){null==b&&(b=0);if(isNaN(a)||0>a)throw new q(new L("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"]=qe;qe.__name__=["openfl","utils","Timer"];qe.__super__=Qa;qe.prototype=r(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 Pc(Pc.TIMER)),this.dispatchEvent(new Pc(Pc.TIMER_COMPLETE))):this.dispatchEvent(new Pc(Pc.TIMER))},__class__:qe,__properties__:{set_repeatCount:"set_repeatCount",set_delay:"set_delay",get_delay:"get_delay"}});var Ka=function(){this._securityMode=this._singlePassword= this._securiteyUserList=this._encryptedPages=null;this._hasSecuritey=this._isVerifySecurity=!1;this._encryptedPages=new ga};g["security.SecurityClass"]=Ka;Ka.__name__=["security","SecurityClass"];Ka.getInstance=function(){null==Ka.Instance&&(Ka.Instance=new Ka);return Ka.Instance};Ka.isNoneMode=function(){return 0==Ka.getInstance().stringCompareToUppercase(Ka.getInstance()._securityMode,K.SecurityNone)};Ka.isSingleMode=function(){return 0==Ka.getInstance().stringCompareToUppercase(Ka.getInstance()._securityMode, K.SecuritySingle)};Ka.isUserListMode=function(){return 0==Ka.getInstance().stringCompareToUppercase(Ka.getInstance()._securityMode,K.SecurityUserList)};Ka.isVerifyPassword=function(){null==Ka.Instance&&Ka.getInstance();if(null==Ka.Instance._securityMode)return!1;if(1==Ka.Instance._isVerifySecurity)return!0;var a=Ra.getInstance();if(0==Ka.Instance.stringCompareToUppercase(Ka.Instance._securityMode,K.SecurityNone))return!0;if(0==Ka.Instance.stringCompareToUppercase(Ka.Instance._securityMode,K.SecuritySingle)){if(0== a.hasKey(Ka.SinglePasswordKey))return!1;var b=a.get(Ka.SinglePasswordKey);return Ka.isVerifySingle(b)?Ka.Instance._isVerifySecurity=!0:!1}if(0==Ka.Instance.stringCompareToUppercase(Ka.Instance._securityMode,K.SecurityUserList)){if(0==a.hasKey(Ka.UserNameKey))return!1;b=a.get(Ka.UserNameKey);a=a.get(Ka.UserPasswordKey);if(Ka.isVerifyUser(b,a))return Ka.Instance._isVerifySecurity=!0}return!1};Ka.isVerifySingle=function(a){null==a&&(a="");if(0==Ka.Instance.stringCompareToUppercase(Ka.Instance._securityMode, K.SecuritySingle)){if(null==a||null==Ka.Instance._singlePassword)return!1;if(0==Ka.Instance.stringCompare(a,Ka.Instance._singlePassword))return!0}return!1};Ka.isVerifyUser=function(a,b){null==b&&(b="");if(0==Ka.Instance.stringCompareToUppercase(Ka.Instance._securityMode,K.SecurityUserList)){if(null==a||null==Ka.Instance._securiteyUserList||0==n.hasKey(Ka.Instance._securiteyUserList,a))return!1;var c=n.get(Ka.Instance._securiteyUserList,a);if(0==Ka.Instance.stringCompare(b,c))return!0}return!1};Ka.isPageEncrypted= function(a){null==Ka.Instance._encryptedPages&&Ka.getInstance();return n.hasKey(Ka.Instance._encryptedPages,null==a?"null":""+a)?n.get(Ka.Instance._encryptedPages,null==a?"null":""+a):!1};Ka.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(K.PageItem);a.getNodesLength(K.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=Y.cca(a,c),h=Y.cca(b,c);if(0!=(d-=h)){if(0< d)return 1;break}c++}return-1},stringCompareToUppercase: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 h=Y.cca(a,c),g=Y.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=Z.getInstance();return null!=this._thumbnails?this._thumbnails.getThumbHeight():a.get(y.THUMBHEIGHT)},getMinWidth:function(){var a;a=Z.getInstance();var b=this.getThumbBarHeight(),c=this.getSearchHeight();a.get(y.TOPSPACE);var d=a.get(y.LEFTSPACE),e=a.get(y.LEFTSPACE);a.get(y.LEFTSPACE);return d+e+(b+(c+6*a.get(y.LINESPACE)+320))},getMinHeight:function(){var a;a=Z.getInstance();var b= this.getThumbBarHeight();this.getSearchHeight();var c=a.get(y.TOPSPACE);a.get(y.LEFTSPACE);a.get(y.LEFTSPACE);var d=a.get(y.LEFTSPACE);return c+d+(b+6*a.get(y.LINESPACE)+a.get(y.TOOLHEIGHT)+2*a.get(y.LINESPACE)+a.get(y.TITLEHEIGHT)+180)},resizeItemsLayout:function(){Z.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(){Z.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);ua._flipBookRectX=0;ua._flipBookRectY=0;ua._backgroundRectX= 0;ua._backgroundRectY=0},resizeNormalStyle:function(){var a=null,a=Z.getInstance(),b=null,b=Ra.getInstance(),c=!0,d=!0,e=0,f=this.getThumbBarHeight(),h=this.getSearchHeight(),g=a.get(y.TOPSPACE),k=a.get(y.LEFTSPACE),l=a.get(y.LEFTSPACE),m=a.get(y.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);ua._backgroundRectX= r;ua._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(y.LINESPACE),q=a.get(y.LINESPACE),this._titlebarRect.move(r,q),k=this._backgroundRect._width-2*a.get(y.LINESPACE),c=a.get(y.TITLEHEIGHT),this._titlebarRect.resize(k,c),this._titlebarRect.set_visible(0!=this._isTitleBarOn),e=a.get(y.LINESPACE),this._titlebarRect.get_visible()&&(e=this._titlebarRect.get_y()+this._titlebarRect._height+a.get(y.LINESPACE)), r=a.get(y.LINESPACE),q=this._backgroundRect._height-a.get(y.LINESPACE)-f,this._thumbnailsRect.move(r,q),k=this._backgroundRect._width-2*a.get(y.LINESPACE),this._thumbnailsRect.resize(k,f),this._thumbnailsRect.set_visible(0!=this._isThumbOn),r=a.get(y.LINESPACE),q=this._backgroundRect._height-a.get(y.LINESPACE)-a.get(y.TOOLHEIGHT),this._thumbnailsRect.get_visible()&&(q=this._thumbnailsRect.get_y()-a.get(y.LINESPACE)-a.get(y.TOOLHEIGHT)),this._toolbarRect.move(r,q),k=this._backgroundRect._width-2*a.get(y.LINESPACE), c=a.get(y.TOOLHEIGHT),this._toolbarRect.resize(k,c),this._toolbarRect.set_visible(0!=this._isToolBarOn),r=this._isSearchLeft?a.get(y.LINESPACE):this._backgroundRect._width-a.get(y.LINESPACE)-h,this._searchlistRect.move(r,e),k=h,c=this._backgroundRect._height-a.get(y.LINESPACE)-this._searchlistRect.get_y(),this._thumbnailsRect.get_visible()&&(c=this._thumbnailsRect.get_y()-a.get(y.LINESPACE)-this._searchlistRect.get_y()),this._toolbarRect.get_visible()&&(c=this._toolbarRect.get_y()-a.get(y.LINESPACE)- this._searchlistRect.get_y()),this._searchlistRect.resize(k,c),this._searchlistRect.set_visible(0!=this._isSearchOn),r=a.get(y.LINESPACE),this._searchlistRect.get_visible()&&(r=this._isSearchLeft?this._searchlistRect.get_right()+a.get(y.LINESPACE):a.get(y.LINESPACE)),q=e,this._flipBookRect.move(r,q),ua._flipBookRectX=r,ua._flipBookRectY=q,k=this._backgroundRect._width-a.get(y.LINESPACE)-this._flipBookRect.get_x(),this._searchlistRect.get_visible()&&!this._isSearchLeft&&(k=this._searchlistRect.get_left()- a.get(y.LINESPACE)-this._flipBookRect.get_x()),c=this._backgroundRect._height-a.get(y.LINESPACE)-this._flipBookRect.get_y(),this._thumbnailsRect.get_visible()&&(c=this._thumbnailsRect.get_y()-a.get(y.LINESPACE)-this._flipBookRect.get_y())):(r=a.get(y.LINESPACE),q=a.get(y.LINESPACE),this._titlebarRect.move(r,q),k=this._backgroundRect._width-2*a.get(y.LINESPACE),c=a.get(y.TITLEHEIGHT),this._titlebarRect.resize(k,c),this._titlebarRect.set_visible(0!=this._isTitleBarOn),e=a.get(y.LINESPACE),this._titlebarRect.get_visible()&& (e=this._titlebarRect.get_y()+this._titlebarRect._height+a.get(y.LINESPACE)),r=a.get(y.LINESPACE),q=this._backgroundRect._height-a.get(y.LINESPACE)-a.get(y.TOOLHEIGHT),this._toolbarRect.move(r,q),k=this._backgroundRect._width-2*a.get(y.LINESPACE),c=a.get(y.TOOLHEIGHT),this._toolbarRect.resize(k,c),this._toolbarRect.set_visible(0!=this._isToolBarOn),r=a.get(y.LINESPACE),this._thumbnailsRect.move(r,e),k=f,c=this._backgroundRect._height-a.get(y.LINESPACE)-this._thumbnailsRect.get_y(),this._toolbarRect.get_visible()&& (c=this._toolbarRect.get_y()-a.get(y.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(y.LINESPACE):this._backgroundRect._width-a.get(y.LINESPACE)-h,this._searchlistRect.move(r,e),k=h,c=this._backgroundRect._height-a.get(y.LINESPACE)-this._searchlistRect.get_y(),this._toolbarRect.get_visible()&& (c=this._toolbarRect.get_y()-a.get(y.LINESPACE)-this._searchlistRect.get_y()),this._searchlistRect.resize(k,c),this._searchlistRect.set_visible(0!=this._isSearchOn),r=a.get(y.LINESPACE),this._thumbnailsRect.get_visible()&&(r=this._thumbnailsRect.get_right()+a.get(y.LINESPACE)),this._searchlistRect.get_visible()&&(r=this._isSearchLeft?this._searchlistRect.get_right()+a.get(y.LINESPACE):this._thumbnailsRect.get_visible()?this._thumbnailsRect.get_right()+a.get(y.LINESPACE):a.get(y.LINESPACE)),q=e,this._flipBookRect.move(r, q),ua._flipBookRectX=r,ua._flipBookRectY=q,k=this._backgroundRect._width-a.get(y.LINESPACE)-this._flipBookRect.get_x(),this._searchlistRect.get_visible()&&!this._isSearchLeft&&(k=this._searchlistRect.get_left()-a.get(y.LINESPACE)-this._flipBookRect.get_x()),c=this._backgroundRect._height-a.get(y.LINESPACE)-this._flipBookRect.get_y());this._toolbarRect.get_visible()&&(c=this._toolbarRect.get_y()-a.get(y.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(w.BookmarkWidth)&&(k=b.get(w.BookmarkWidth)),r=a.get(y.LINESPACE),b.hasKey(w.BookmarkIsLeft)&&0==b.get(w.BookmarkIsLeft)&&(r=this._backgroundRect._width-a.get(y.LINESPACE)-k),this._bookmarkRect.move(r,q),this._bookmarkRect.resize(k,c));this.set_scaleX(this.set_scaleY(1))},__class__:Ji});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(w.ToolAlpha)&&(a._fillAlpha=b.get(w.ToolAlpha));b.hasKey(w.ToolColor)&&(a._fillStyle=b.get(w.ToolColor));b.hasKey(w.ToolPixel)&&(a._strokePixel=b.get(w.ToolPixel));b.hasKey(w.ToolStroke)&&(a._strokeStyle=b.get(w.ToolStroke));b.hasKey(w.ToolHasFill)&&(a._isFill=b.get(w.ToolHasFill));b.hasKey(w.ToolHasStroke)&&(a._isStroke=b.get(w.ToolHasStroke));if(b.hasKey(C.ControlBarColor)){var c=V.ControlBarColor();a._fillStyle=c}b.hasKey(C.BackgroundAlpha)&&(b=V.BackgroundAlpha(), a._fillAlpha=.95*b);var d;try{d=m.__cast(a,ah)}catch(e){if(D.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,L))d=null;else throw e;}null!=d&&d.validateNow()}};Lb.configUI_TitleBar=function(a){if(null!=a){var b=Ra.getInstance();b.hasKey(w.TitleAlpha)&&(a._fillAlpha=b.get(w.TitleAlpha));b.hasKey(w.TitleColor)&&(a._fillStyle=b.get(w.TitleColor));b.hasKey(w.TitlePixel)&&(a._strokePixel=b.get(w.TitlePixel));b.hasKey(w.TitleStroke)&&(a._strokeStyle=b.get(w.TitleStroke));b.hasKey(w.TitleHasFill)&& (a._isFill=b.get(w.TitleHasFill));b.hasKey(w.TitleHasStroke)&&(a._isStroke=b.get(w.TitleHasStroke));if(b.hasKey(C.ControlBarColor)){var c=V.ControlBarColor();a._fillStyle=c}b.hasKey(C.BackgroundAlpha)&&(b=V.BackgroundAlpha(),a._fillAlpha=.95*b);var d;try{d=m.__cast(a,yk)}catch(e){if(D.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,L))d=null;else throw e;}null!=d&&d.validateNow()}};Lb.configUI_FlipRect=function(a){if(null!=a){var b=Ra.getInstance();b.hasKey(w.FlipRAlpha)&&(a._fillAlpha= b.get(w.FlipRAlpha));b.hasKey(w.FlipRColor)&&(a._fillStyle=b.get(w.FlipRColor));b.hasKey(w.FlipRPixel)&&(a._strokePixel=b.get(w.FlipRPixel));b.hasKey(w.FlipRStroke)&&(a._strokeStyle=b.get(w.FlipRStroke));b.hasKey(w.FlipRHasFill)&&(a._isFill=b.get(w.FlipRHasFill));b.hasKey(w.FlipRHasStroke)&&(a._isStroke=b.get(w.FlipRHasStroke));b.hasKey(C.BackgroundAlpha)&&(b=V.BackgroundAlpha(),a._fillAlpha=.95*b);var c;try{c=m.__cast(a,vk)}catch(d){if(D.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d, L))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,uk)}catch(d){if(D.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,L))c=null;else throw d;}if(b.hasKey(C.ControlBarColor)){var e=V.ControlBarColor();a._fillStyle=e;a._fillAlpha=.85;null!=c&&(c._titleSprite._fillStyle= e)}b.hasKey(C.BackgroundAlpha)&&(e=V.BackgroundAlpha(),a._fillAlpha=.95*e,null!=c&&(c._titleSprite._fillAlpha=.95*e));b.hasKey(C.ButtonIconColor)&&(e=V.ButtonIconColor(),null!=c._closedBtn1&&(c._closedBtn1._iconColor=e));b.hasKey(w.ToolHasFill)&&(a._isFill=b.get(w.ToolHasFill));b.hasKey(w.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,xk)}catch(d){if(D.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,L))c=null;else throw d;}b.hasKey(w.ThumbAlpha)&&(a._fillAlpha=b.get(w.ThumbAlpha));b.hasKey(w.ThumbColor)&&(a._fillStyle=b.get(w.ThumbColor));b.hasKey(w.ThumbPixel)&&(a._strokePixel=b.get(w.ThumbPixel));b.hasKey(w.ThumbStroke)&&(a._strokeStyle=b.get(w.ThumbStroke)); b.hasKey(w.ThumbHasFill)&&(a._isFill=b.get(w.ThumbHasFill),null!=c&&(c._titleSprite._isFill=a._isFill));b.hasKey(w.ThumbHasStroke)&&(a._isStroke=b.get(w.ThumbHasStroke),null!=c&&(c._titleSprite._isStroke=!1));if(b.hasKey(C.ControlBarColor)){var e=V.ControlBarColor();null!=c&&(c._titleSprite._fillStyle=e)}b.hasKey(C.ThumbControlColor)&&(e=V.ThumbBackgroundColor(),a._fillStyle=e);b.hasKey(C.BackgroundAlpha)&&(e=V.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(w.SearchAlpha)&&(a._fillAlpha=b.get(w.SearchAlpha));b.hasKey(w.SearchColor)&&(a._fillStyle=b.get(w.SearchColor));b.hasKey(w.SearchPixel)&&(a._strokePixel= b.get(w.SearchPixel));b.hasKey(w.SearchStroke)&&(a._strokeStyle=b.get(w.SearchStroke));b.hasKey(w.SearchHasFill)&&(a._isFill=b.get(w.SearchHasFill));b.hasKey(w.SearchHasStroke)&&(a._isStroke=b.get(w.SearchHasStroke));b.hasKey(C.ControlBarColor)&&V.ControlBarColor();if(b.hasKey(C.ThumbControlColor)){var c=V.ThumbBackgroundColor();a._fillStyle=c}b.hasKey(C.BackgroundAlpha)&&(c=V.BackgroundAlpha(),a._fillAlpha=.95*c);var d;try{d=m.__cast(a,wk)}catch(e){if(D.lastException=e,e instanceof q&&(e=e.val), m.__instanceof(e,L))d=null;else throw e;}null!=d&&b.hasKey(C.ControlBarColor)&&(a=V.ControlBarColor(),null!=d._searchBtn1&&(d._searchBtn1._iconColor=a));null!=d&&b.hasKey(C.BackgroundAlpha)&&V.BackgroundAlpha();null!=d&&d.validateNow()}};Lb.configUI_BookPage=function(a){if(null!=a){var b=a._backSprite,c=Ra.getInstance();c.hasKey(w.PageHasFill)&&(b._isFill=c.get(w.PageHasFill));c.hasKey(w.PageHasStroke)&&(b._isStroke=c.get(w.PageHasStroke));c.hasKey(w.PageFillColor)&&(b._fillStyle=c.get(w.PageFillColor), a._backColor=b._fillStyle);c.hasKey(w.PageFillAlpha)&&(b._fillAlpha=c.get(w.PageFillAlpha));c.hasKey(w.PageStrokeColor)&&(b._strokeStyle=c.get(w.PageStrokeColor),a._strokeColor=b._strokeStyle);c.hasKey(w.PageStrokePixel)&&(b._strokePixel=c.get(w.PageStrokePixel));c.hasKey(C.PageBackgroundColor)&&(c=V.PageBackgroundColor(),b._fillStyle=c,a._backColor=b._fillStyle,a._backSpriteAlpha=1,a._backSprite._fillAlpha=1);null!=a&&m.__instanceof(a,$a)&&a.drawBackgroundSprite()}};Lb.configUI_PageLoading=function(a){if(null!= a&&(a=a._loadingSprite,null!=a)){var b=Ra.getInstance();b.hasKey(w.ToolAlpha);b.hasKey(w.ToolColor);b.hasKey(w.ToolStroke);b.hasKey(C.ButtonIconColor)&&(a.color=V.ButtonIconColor());b.hasKey(C.ControlBarColor)&&(a.color=V.ControlBarColor());b.hasKey(C.BackgroundAlpha)&&(b=V.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=V.PageFlipTweenTime();a._flipTweenTime=c}b.hasKey(C.EnableFlipSound)&& (c=V.EnableFlipSound(),a._isFlipSound=c);b.hasKey(C.EnableSoundButton)&&(c=V.EnableSoundButton(),0==c&&(a._isSoundOn=c));b.hasKey(C.AlwaysInTheCenter)&&V.AlwaysInTheCenter();b.hasKey(C.ShowCornerFlipEffect)&&V.ShowCornerFlipEffect();b.hasKey(C.MouseTracingEffect)&&V.MouseTracingEffect()}};Lb.configUI_SharRectShow=function(a){if(null!=a){var b=Ra.getInstance();if(b.hasKey(w.HasToolBar)){var c=b.get(w.HasToolBar);a._isToolBarOn=c}b.hasKey(w.HasTitleBar)&&(c=b.get(w.HasTitleBar),a._isTitleBarOn=c);b.hasKey(w.SearchIsLeft)&& (c=b.get(w.SearchIsLeft),a._isSearchLeft=c);b.hasKey(w.ThumbIsVertical)&&(b=b.get(w.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 Mf;d.enable_mouse(!0);var e;try{e=m.__cast(b,Yi)}catch(f){if(D.lastException=f,f instanceof q&&(f=f.val),m.__instanceof(f,L))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=V.AppLogoIcon();a._appLogoIconUrl=c}b.hasKey(C.BookLogoLinkURL)&&(c=V.AppLogoLinkURL(),a._appLogoLinkUrl=c);b.hasKey(C.LanguageSetting)&&(c=V.LanguageSetting(),a._languageSetting=c);b.hasKey(C.LanguageSwitchable)&&(c=V.LanguageSwitchable(),a._langaugeChangeable= c);b.hasKey(C.SoundFileURL)&&(c=V.BackgroundSoundURL(),a._backgroundSoundUrl=c);b.hasKey(C.SoundFileLoops)&&(c=V.BackgroundSoundLoop(),a._backgroundSoundLoop=c);b.hasKey(C.EnableAutoButton)&&(c=V.EnableAutoButton(),a._enableAutoPlay=c);b.hasKey(C.AutoFlipInterval)&&(c=V.AutoFlipInterval(),a._autoPlayDelay=1E3*c);b.hasKey(C.AutoFlipLoops)&&(c=V.AutoFlipLoopCount(),a._autoPlayLoopCount=c);if(b.hasKey(C.AutoFlipFromStart)){var c=V.EnableAutoButton(),d=V.AutoFlipFromStart();0!=c&&0!=d&&(a._autoPlayFromStart= d)}b.hasKey(C.UseMinimeStyle)&&V.IsUserSmallMode();b.hasKey(C.MinimeStyleWidth)&&V.MinimeStyleWidth();b.hasKey(C.MinimeStyleHeight)&&V.MinimeStyleHeight();b.hasKey(C.EnableZoomInButton)&&V.EnableZoomInButton();b.hasKey(C.MinimumZoomWidth)&&V.MinimumZoomWidth();b.hasKey(C.MaximumZoomWidth)&&V.MaximumZoomWidth();b.hasKey(C.UseMinimeStyle)&&(c=V.IsUserSmallMode(),a._useMinimeStyle=c);b.hasKey(C.MinimeStyleWidth)&&(c=V.MinimeStyleWidth(),a._minimeStyleWidth=c);b.hasKey(C.MinimeStyleHeight)&&(c=V.MinimeStyleHeight(), a._minimeStyleHeight=c);b.hasKey(C.BackgroundAlpha)&&(c=V.BackgroundAlpha(),a.backgroundSprite().set_alpha(c));if(b.hasKey(C.BackgroundEndColor)&&b.hasKey(C.BackgroundBeginColor)){var c=V.BackgroundEndColor(),d=V.BackgroundBeginColor(),e=V.BackgroundRotation(),f=a.backgroundSprite();f._isDraw=!0;f.drawBackgroundColor(c,d,e)}b.hasKey(C.BackgroundFile)&&(c=V.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(K.Language);b.hasNext();){var c=b.next();if(null!=c){var c=new Ma(c),d=new Ma(c.getNode(K.LangInfo));if(null!=d&&1!=d.isValid()&&(d=d.getNodeValue(K.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=xd.getInstance(),c=Ra.getInstance();a.getNodeClass(K.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(K.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(K.PageCount);if(null==d||""==d)d=a.getAttrString(K.PageCount2);if(null==d||""==d&&0!=c.hasKey(C.PageCount))d=t.string(c.get(C.PageCount));null!=d&&""!=d&&0>=this._pageCount&&(this._pageCount=t.parseInt(d));0!=this._pageCount&&b.createManageInfoList(this._pageCount)}},finshInstallBookBinInfo:function(){var a=this._xmlBase;null!=a&&(a=a.getAttrString(K.IsReg), null!=a&&""!=a&&(this._strRegister=a),0<=this._pageCount&&null!=a&&""!=a&&(this._isRegister=t.parseInt(a)>=2*this._pageCount,0==this._isRegister&&this.createUnregisterSprite()),1==Ka.getInstance()._hasSecuritey&&(this.createSecurityLoginSprite(),this._loginSprite.set_visible(!1)))},resetXmlClassInfo:function(a){this._xmlBase=null;xd.getInstance();var b;try{b=m.__cast(a,Ma)}catch(c){D.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(K.ParamItem),b.getNodesLength(K.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(K.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==ag.ToolBar&&(c=this._toolbarRect.get_y()-6-this._toolTip.get_height()+e.get(y.LINESPACE)),d==ag.TitleBar&&(c=this._titlebarRect.get_bottom()+6),this._toolTip.move(a,c),S.tween(this._toolTip,.2,{alpha:1}),Ab.delay(function(){b._toolTip.set_visible(!0)},10))}},resetLanguageListOffset:function(){null!=this._languageList&&(this._languageList.move(pa.current.stage.stageWidth+2048,10),0==V.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(D.lastException=d,d instanceof q&&(d=d.val),m.__instanceof(d,L))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=Z.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==ag.ToolBar&&(b=this._toolbarRect.get_y()-6-1*this._languageList._height+d.get(y.LINESPACE)),c==ag.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(){Ki.prototype.finshInstallBookBinInfo.call(this);var a=V.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 rk(!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){D.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){D.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(K.Scenes);if(null==a||0!=a.isValid())return!1;a=a.getNodeClass(K.SceneGround);if(null== a||0!=a.isValid())return!1;var b=a.getNodeClass(K.Background);if(null==b||0!=b.isValid())return!1;a=b.getNodes(K.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(K.SceneItemURL),c=c.getAttrString(K.ItemPosition),null!=b&&this._backSprite.insertFlashSprite(b,c))}return!1},__class__:ak});var Gg=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;ak.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"]=Gg;Gg.__name__=["start","ProgramEvent"];Gg.__super__=ak;Gg.prototype=r(ak.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 fk(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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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){t["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){t["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){t["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__:Gg});var jh=function(a,b,c){null==b&&(b=0);null==a&&(a=0);this._totalPagesCaption=this._pageNumberCaption=null;this._isFullScreen=this._isSelectTextMode=!1;Gg.call(this,a,b,c);this._totalPagesCaption=null;this._pageNumberCaption=new ga;this._isSelectTextMode=!1;ua._resetFlipBookIndexTextField= k(this,this.resetFlipBookIndexTextField)};g["start.ProgramEvent2"]=jh;jh.__name__=["start","ProgramEvent2"];jh.__super__=Gg;jh.prototype=r(Gg.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(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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){Gg.prototype.resize.call(this,a,b);null!=this._languageList&&(this.hideSwitchLanguageList(null),this.resetLanguageListOffset())},onAddedToStageCall:function(a){Gg.prototype.onAddedToStageCall.call(this, a);a=T.getInstance();a.addEventListener(x.FLIPBOOK_WILLCHANGE,this,k(this,this.onFlipBookWillChange));a.addEventListener(x.FLIPBOOK_DIDCHANGED,this,k(this,this.onFlipBookDidChanged))},onRemoveFromStageCall:function(a){Gg.prototype.onRemoveFromStageCall.call(this,a);a=T.getInstance();a.removeEventListener(x.FLIPBOOK_WILLCHANGE,this,k(this,this.onFlipBookWillChange));a.removeEventListener(x.FLIPBOOK_DIDCHANGED,this,k(this,this.onFlipBookDidChanged))},onStageMouseDown:function(a){Gg.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(D.lastException=h,h instanceof q&&(h=h.val),m.__instanceof(h,L))f=null;else throw h;}null!=f&&(c=f.getBounds(this.stage));c.containsPoint(b)||d.containsPoint(b)||this.hideSwitchLanguageList(null)}T.getInstance().dispatchEvent(new la(x.MAINSTAGE_MOUSECLICK,new na(this, null,a)))},sendLanguageListUpdate:function(){if(!(null==this._languageKeys||0>=this._languageKeys.length)){var a=this._selectLanguageKey,b=T.getInstance();b.dispatchEvent(new la(x.LANGUAGEINFO_CACHED,new na(this,a,null)));b.dispatchEvent(new la(x.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,rk)}catch(c){if(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))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(D.lastException=e,e instanceof q&&(e=e.val),m.__instanceof(e,L))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= V.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),pa.getURL(new mc(a),"_blank")))},onFlipBookWillChange:function(a){if(null!=a&&null!=a._data)try{m.__cast(a._data._object,Fd)}catch(b){if(D.lastException=b,b instanceof q&&(b=b.val),!m.__instanceof(b,L))throw b;}},onFlipBookDidChanged:function(a){if(null!= a&&null!=a._data){var b;try{b=m.__cast(a._data._object,Fd)}catch(c){if(D.lastException=c,c instanceof q&&(c=c.val),m.__instanceof(c,L))b=-1;else throw c;}0>b||null!=this._flipBook&&this.resetFlipBookIndexTextField()}},setConfigPageNumberCaption:function(){Ra.getInstance();var a=V.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__:Ao});var Rh=function(a){E.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(Da.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__=E;Rh.prototype=r(E.prototype,{add_html:function(a){var b=new La;b.set_htmlText(a);b.set_autoSize(Da.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 Bo=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=Y.substr(a, 0,d).split("\n");c+="Error at character "+b.errorID+", line "+d.length+":\n\n";for(var e=3;0a?t.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=X.replace(f,",",""));d&&(f=yc.toDecimalSeperatorComma(f));return f};yc.toDecimalSeperatorComma=function(a){a=X.replace(a,".","|");a=X.replace(a,",",".");return a=X.replace(a,"|",",")};var Db=function(){};g["trcharts.Object_helper"]=Db;Db.__name__=["trcharts","Object_helper"];Db.merge=function(a, b){for(var c=u.fields(b),d=0;da?b:a};Be.getBooleanValue=function(a,b){if(Be.isEmptyValue(a))return b;var c=t.parseFloat(a);if(!isNaN(c))return 0==c?!1:!0;c=Be.getStringValue(a,"false",!1);c=c.toLowerCase();return-1!=c.indexOf("true")?!0:!1};Be.runTests=function(){null};var Jr=function(a,b,c,d,e,f){this.width=f;this.high=b;this.close=c;this.low=d};g["trcharts.PointHLC"]=Jr;Jr.__name__=["trcharts","PointHLC"]; Jr.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__:Jr};var Kr=function(a){};g["trcharts.Dictionary"]=Kr;Kr.__name__=["trcharts","Dictionary"];Kr.prototype={__class__:Kr};var Va=function(a,b){this._props=new Kr;this._parent=b;for(var c=u.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 Jr(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 Do=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"]=Do;Do.__name__=["trcharts","ScreenCoordsRadar"];Do.__super__=Sh;Do.prototype= r(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__:Do});var bk=function(a,b){this._g=new Lr;E.call(this);this._realWidth=a;this._realHeight=b};g["trcharts.TRChartsBase"]=bk;bk.__name__=["trcharts","TRChartsBase"];bk.__super__=E;bk.prototype=r(E.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__:bk,__properties__:r(E.prototype.__properties__,{set_realHeight:"set_realHeight",get_realHeight:"get_realHeight",set_realWidth:"set_realWidth",get_realWidth:"get_realWidth"})});var Vl=function(a,b){this.title=null;this.VERSION="2 TRCharts";bk.call(this,a,b);this.VERSION="new TRCharts3";this.title=null;this._main()};g["trcharts.TRCharts"]= Vl;Vl.__name__=["trcharts","TRCharts"];Vl.__super__=bk;Vl.prototype=r(bk.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 hb(this.get_width(), this.get_height())).draw(this);return null},post_image:function(a,b,c){b=new wo("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);u.field(this.chart_parameters,"id")&&u.field(this.chart_parameters,"id");if(c)pa.getURL(a,"_blank");else{b.addEventListener(Fe.PROGRESS,function(a){});try{b.load(a)}catch(d){if(D.lastException=d,d instanceof q&&(d=d.val),!m.__instanceof(d,L))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 Do(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(D.lastException=d,d instanceof q&& (d=d.val),m.__instanceof(d,L))this.addChild(new Bo(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 Hg(a.tooltip);this._g.set_tooltip_string(this.tooltip.tip_text);this.background=new Eo(a,this);this.title=new Fo(a.title,this);this.addChild(this.background);Co.is_radar(a)?(this.obs=ck.MakeChart(a,this),this.radar_axis=new Go(a.radar_axis),this.keys=new nl(this.obs),this.addChild(this.radar_axis),this.addChild(this.keys)): Co.has_pie_chart(a)?(this.obs=ck.MakeChart(a,this),this.tooltip.set_tip_style(Hg.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==Hg.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(gh.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(gh.get_easeOut()), S.tween(this,1,{y:a.y}).ease(gh.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 Va(a,c);this.on_show=this.get_on_show(u.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__=sc;ab.prototype=r(sc.prototype,{group:null, props:null,on_show:null,get_on_show:function(a){var b=new Va({type:"none",cascade:3,delay:0});return new Va(a,b)},resize:function(a){for(var b=0;bf.get_x()&&aTotal: #total#", alpha:.6,"on-click":!1,axis:"left"});this.props=new Va(a,b);this.on_show=this.get_on_show(u.field(a,"on-show"));this.group=c;this.values=a.values;this.add_values()};g["trcharts.charts.BarStack"]=jp;jp.__name__=["trcharts","charts","BarStack"];jp.__super__=ab;jp.prototype=r(ab.prototype,{get_keys:function(){for(var a=[],b=this.props.get("keys"),c=0;cu.field(d,g)&&u.setField(d, g,u.field(c,g))}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 k=720,d=-1,l=-720;e=-1;for(var n=720,f=-1,q=-720,h=-1,r=0;r=k)k=g,d=r;if(0>l||90=g){if(g>l||90=k&&g=g){if(0>q||gn)n=g,f=r;if(0>q||q>g)q=g,h=r}r++}b=d;k=a.top;for(c=!1;0<=b&&!c;)c=m.__cast(this.getChildAt(b),Jg),g=c.getTicAngle(),270<=g||90>=g?(k=c.moveLabelDown(a,k),b++,b>=this.get_numChildren()&&(b=0),c=b==d):c=!0;b=e;k=a.bottom;for(c=!1;0<=b&&!c;)c=m.__cast(this.getChildAt(b),Jg),g=c.getTicAngle(),270<=g||90>=g?(k=c.moveLabelUp(a,k),b--,0>b&&(b=this.get_numChildren()-1),c=b==e):c=!0;b=h;k=a.bottom;for(c=!1;0<=b&&!c;)c=m.__cast(this.getChildAt(b),Jg),g=c.getTicAngle(),90g?(k=c.moveLabelUp(a,k), b++,b>=this.get_numChildren()&&(b=0),c=b==h):c=!0;b=f;k=a.top;for(c=!1;0<=b&&!c;)c=m.__cast(this.getChildAt(b),Jg),g=c.getTicAngle(),90g?(k=c.moveLabelDown(a,k),b--,0>b&&(b=this.get_numChildren()-1),c=b==f):c=!0},toString:function(){return"Pie with "+this.get_numChildren()+" children"},__class__:pl});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.set_cacheAsBitmap(!0);this.right_axis=!1;E.call(this)};g["trcharts.charts.series.Element"]=Ta;Ta.__name__=["trcharts","charts","series","Element"];Ta.__interfaces__=[Th];Ta.__super__=E;Ta.prototype=r(E.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 E.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):Ng.call(this.link,this.index))},browse_url:function(a){a=new mc(this.link);try{pa.getURL(a)}catch(b){if(D.lastException=b,b instanceof q&&(b=b.val),m.__instanceof(b,id))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=X.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 Ya=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"]=Ya;Ya.__name__=["trcharts","charts","series","bars","Base"];Ya.__super__=Ta;Ya.prototype= r(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=X.replace(a,"#top#",yc.formatNumber(this.top));a=X.replace(a,"#bottom#",yc.formatNumber(this.bottom));return a=X.replace(a,"#val#",yc.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=[kh.Lighten(this.colour), this.colour],d=new ka;d.createGradientBox(a-12,b+12,.5*Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,c,[1,1],[0,127],d,Ha.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=kh.Lighten(this.colour),c=[this.colour,c],d=new ka;d.createGradientBox(a,b+12,1.5*Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,c,[1,1],[0,255],d, Ha.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__:kh});var zf=function(a,b,c){Ya.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.set_quality(2);a.alpha=.4;this.set_filters([a])};g["trcharts.charts.series.bars.Cylinder"]=zf;zf.__name__=["trcharts","charts","series","bars","Cylinder"];zf.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=zf.GetColours(this.colour),e=[1,1],f=[0,255],g=new ka;g.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ha.PAD);this.halfEllipse(a/2,b,a/2,c/2,100);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ha.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 ka;e.createGradientBox(this.get_width(),this.get_height(),Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,c,d,[150,255],e,Ha.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,Ha.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=zf.magicTrigFunctionX(g),g=zf.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=zf.magicTrigFunctionX(g),g=zf.magicTrigFunctionY(g),k=a+k*c,g=b+g*d;this.get_graphics().lineTo(k,g);f++}return 1},__class__:zf});var af=function(a,b,c){Ya.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.set_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 ka;g.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ha.PAD);this.halfEllipse(a/2,b,a/2,c/2,100,!1);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ha.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,Ha.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 ka,e=[16777215,16777215],f=[0,.5],g=new ka;g.createGradientBox(this.get_width(),this.get_height(),Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,e,f,[150,255],g,Ha.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,Ha.PAD);this.Ellipse(a/2,0,a/2,k/2,100);this.get_graphics().beginGradientFill(aa.LINEAR,e,f,[25,255],g,Ha.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 Wo=function(a,b,c){Ya.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.set_quality(2);a.alpha=.4;this.set_filters([a])};g["trcharts.charts.series.bars.Dome"]=Wo;Wo.__name__=["trcharts","charts","series","bars", "Dome"];Wo.__super__=Ya;Wo.prototype=r(Ya.prototype,{__class__:Wo});var lp=function(a,b,c){Ya.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"]=lp;lp.__name__=["trcharts","charts","series","bars","ECandle"];lp.__super__=Ya;lp.prototype=r(Ya.prototype,{high:null,low:null,negative_colour:null,parse_value:function(a){Ya.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__:lp});var $o=function(a,b,c){Ya.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.set_quality(2);a.alpha=.4;this.set_filters([a])};g["trcharts.charts.series.bars.Glass"]=$o;$o.__name__=["trcharts","charts","series","bars","Glass"];$o.__super__=Ya;$o.prototype=r(Ya.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 ka;e.createGradientBox(a,this.get_height(),Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,[16777215,16777215],[.3,.7],[0,255],e,Ha.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__:$o});var Ni=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"]=Ni;Ni.__name__=["trcharts","charts","series","bars","Horizontal"];Ni.__super__=Ta;Ni.prototype=r(Ta.prototype,{right:null,left:null,colour:null,group:null,replace_magic_values:function(a){a=X.replace(a,"#right#",yc.formatNumber(this.right));a=X.replace(a,"#left#",yc.formatNumber(this.left));return a=X.replace(a,"#val#",yc.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__:Ni});var bp=function(a,b,c){this.outline=0;Ya.call(this,a,b,c);this.outline=b.get_colour("outline-colour")};g["trcharts.charts.series.bars.Outline"]=bp;bp.__name__=["trcharts","charts","series","bars","Outline"];bp.__super__=Ya;bp.prototype=r(Ya.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__:bp});var Uf=function(a,b,c){Ya.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.set_quality(2);a.alpha=.4;this.set_filters([a])};g["trcharts.charts.series.bars.Plastic"]=Uf;Uf.__name__=["trcharts","charts","series","bars","Plastic"];Uf.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]};Uf.magicTrigFunctionX=function(a){return Math.cos(2*a*Math.PI)};Uf.magicTrigFunctionY=function(a){return Math.sin(2* a*Math.PI)};Uf.__super__=Ya;Uf.prototype=r(Ya.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=Uf.GetColours(this.colour);c=d[0];var d=[d[1],d[2],d[2]],e=[1,1,1],f=[0,115,255],g=new ka,k=.02*a;g.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ha.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,Ha.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,Ha.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);Uf.GetColours(this.colour);new ka;c=new ka;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,Ha.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=Uf.magicTrigFunctionX(g),g=Uf.magicTrigFunctionY(g),k=a+k*c,g=b+g*d;this.get_graphics().lineTo(k,g);f++}return 1},__class__:Uf});var Vf=function(a,b,c){Ya.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.set_quality(2);a.alpha=.4;this.set_filters([a])}; g["trcharts.charts.series.bars.PlasticFlat"]=Vf;Vf.__name__=["trcharts","charts","series","bars","PlasticFlat"];Vf.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]};Vf.magicTrigFunctionX=function(a){return Math.cos(2*a*Math.PI)};Vf.magicTrigFunctionY=function(a){return Math.sin(2*a*Math.PI)};Vf.__super__=Ya;Vf.prototype=r(Ya.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=Vf.GetColours(this.colour);c=d[0];var d=[d[1],d[2],d[2]],e=[1, 1,1],f=[0,115,255],g=new ka,k=.02*a;g.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,d,e,f,g,Ha.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,Ha.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,Ha.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=Vf.GetColours(this.colour),e=d[0],d=[d[1],d[2],d[2]],f=[1,1,1],g=[0,115,255],k=new ka, l=[16777215,16777215,16777215],m=[0,.05,.75],n=[0,123,255],q=new ka,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,Ha.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 ka;g.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR, d,e,f,g,Ha.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,Ha.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 ka).createGradientBox(a,b,Math.PI);c=[16777215,16777215];var d=[0,.75],e=[100,255],f,g=new ka;g.createGradientBox(this.get_width(),this.get_height(),Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,c,d,e,g,Ha.PAD);f=a/3;0=a?(this.get_graphics().beginGradientFill(aa.LINEAR,c,d,e,g,Ha.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,Ha.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,Ha.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){Ya.call(this,a,b,c);a=new Vd;a.blurX=5;a.blurY=5;a.distance=3;a.angle=45;a.set_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 ka;k.createGradientBox(a,b,Math.PI);this.get_graphics().beginGradientFill(aa.LINEAR,e,f,g,k,Ha.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,Ha.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,Ha.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,Ha.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,Ha.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,Ha.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,Ha.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,Ha.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,Ha.PAD),this.Ellipse(a/2,0,a/2,r/2,100),this.get_graphics().beginGradientFill(aa.LINEAR,k,[.1,.7],[0,255],q,Ha.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,Ha.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,Ha.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,Ha.PAD),c=a/2,this.halfEllipse(a/2,a/2,c,c,100,!0),this.get_graphics().beginGradientFill(aa.LINEAR,k,l,m,n,Ha.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,Ha.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,Ha.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,Ha.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__:ip});var rl=function(a,b,c){this.total=b.get("total");Ya.call(this,a,b,c)};g["trcharts.charts.series.bars.Stack"]=rl;rl.__name__=["trcharts","charts","series","bars","Stack"];rl.__super__=Ya;rl.prototype=r(Ya.prototype, {total:null,replace_magic_values:function(a){a=Ya.prototype.replace_magic_values.call(this,a);return a=X.replace(a,"#total#",yc.formatNumber(this.total))},replace_x_axis_label:function(a){this.tooltip=X.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__:rl});var ol=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__:Pr});var tp=function(a,b){Ec.call(this, a,b);var c=Wa.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")?Wa.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__:tp});var qp=function(a){var b=new Va({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});Va.call(this,a,b)};g["trcharts.charts.series.pies.DefaultPieProperties"]=qp;qp.__name__=["trcharts", "charts","series","pies","DefaultPieProperties"];qp.__super__=Va;qp.prototype=r(Va.prototype,{__class__:qp});var Vh=function(a){La.call(this);this.set_text(a.label);var b=new ub;b.color=Wa.get_colour(u.field(a,"colour"));b.font="Verdana";b.size=u.field(a,"font-size");this.setTextFormat(b);this.set_autoSize(Da.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=r(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__:wp});var Jg=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 wp(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"]=Jg;Jg.__name__=["trcharts","charts","series","pies","PieSliceContainer"];Jg.__super__=Ta;Jg.prototype=r(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__:Jg});var ql=function(a){this.xAdj=this.yAdj=0;La.call(this);this._x=a.x;this._y=a.y;this.right_axis= "right"==a.axis;u.field(a,"on-click")&&this.set_on_click(u.field(a,"on-click"));this.set_htmlText(this.replace_magic_values(a.text));this.set_autoSize(Da.LEFT);this.set_alpha(a.alpha);this.set_border(a.border);null!=a.background&&(this.set_background(!0),this.set_backgroundColor(Wa.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=u.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,u.field(a,"align-x"),u.field(a,"align-y"),u.field(a,"pad-x"),u.field(a,"pad-y"))};g["trcharts.charts.series.tags.Tag"]=ql;ql.__name__=["trcharts","charts","series","tags","Tag"];ql.__super__=La;ql.prototype=r(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=X.replace(a,"/#x#/g",yc.formatNumber(this._x));a=X.replace(a,"#y#",yc.formatNumber(this._y));a=Ce.replace_magic_values(a,this._x);a=X.replace(a,"/#ygmdate/g","#gmdate");a=X.replace(a,"#ydate","#date");return a=Ce.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):Ng.call(this.link,this._x)},browse_url:function(a){a=new mc(this.link);try{pa.getURL(a)}catch(b){if(D.lastException=b,b instanceof q&&(b=b.val),m.__instanceof(b,L))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__:ql});var Eo=function(a,b){E.call(this);this._trcharts=b;Object.prototype.hasOwnProperty.call(a, "bg_colour")&&null!=u.field(a,"bg_colour")?this.colour=Wa.get_colour(a.bg_colour):this.colour=16316632;Object.prototype.hasOwnProperty.call(a,"bg_image")&&null!=u.field(a,"bg_image")&&this.load_img(a.bg_image)};g["trcharts.elements.Background"]=Eo;Eo.__name__=["trcharts","elements","Background"];Eo.__super__=E;Eo.prototype=r(E.prototype,{colour:null,img_x:null,img_y:null,_trcharts:null,load_img:function(a){Object.prototype.hasOwnProperty.call(a,"bg_image_x")&&null!=u.field(a,"bg_image_x")&&(this.img_x= a.bg_image_x);Object.prototype.hasOwnProperty.call(a,"bg_image_y")&&null!=u.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__:Eo});var dk=function(){this.xVal=this.yVal=NaN;this.xAdj=this.yAdj=this.leftOverhang=this.rightOverhang=0;La.call(this)};g["trcharts.elements.axis.AxisLabel"]= dk;dk.__name__=["trcharts","elements","axis","AxisLabel"];dk.__super__=La;dk.prototype=r(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(Da.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;c a.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"]=Lo;Lo.__name__=["trcharts","elements","axis","XAxis"];Lo.__super__=E;Lo.prototype=r(E.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):Db.merge_2(a,c);null!=c.x&&(c.text=this.replace_magic_values(c.text,c.x));var d=u.field(c,"text");d.split("
");c.text=d+"\n";this.axis_labels[c.x]=c.text;c.visible&&("string"==typeof c.colour&&(c.colour=Wa.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),u.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__:zp});var Ap=function(a){lh.call(this,a,"y_axis_right");this.lblText="#val#";this.i_need_labels=!1};g["trcharts.elements.axis.YAxisLabelsRight"]=Ap;Ap.__name__=["trcharts","elements","axis","YAxisLabelsRight"];Ap.__super__=lh;Ap.prototype=r(lh.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__:Ap});var Mo=function(){E.call(this)};g["trcharts.elements.axis.YAxisLeft"]=Mo;Mo.__name__=["trcharts","elements","axis","YAxisLeft"];Mo.__super__=Wf;Mo.prototype=r(Wf.prototype, {init:function(a){this.labels=new zp(a);this.addChild(this.labels);Wf.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){Wf.prototype.resize_helper.call(this,a,b,!1)},__class__:Mo});var No=function(){E.call(this)};g["trcharts.elements.axis.YAxisRight"]=No;No.__name__=["trcharts","elements","axis","YAxisRight"];No.__super__=Wf;No.prototype=r(Wf.prototype, {init:function(a){this.labels=new Ap(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);Wf.prototype._init.call(this,a,"y_axis_right",b)},resize:function(a,b){Wf.prototype.resize_helper.call(this,a,b,!0)},__class__:No});var Qr=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!=u.field(a,b+"_label_style"))0>u.field(a,b+"_label_style").lastIndexOf(",")?(c=u.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+=Ce.dateConsts.shortDays[a.getDate()];break;case "j":c+=a.getDate();break;case "l":c+=Ce.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+=Ce.dateConsts.longMonths[a.getMonth()],"__break__";case "m":throw c+=(9>a.getMonth()?"0":"")+(a.getMonth()+1),"__break__";case "M":throw c+=Ce.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+Y.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+=Y.dateStr(a),"__break__";case "U":throw c+=a.getTime()/1E3,"__break__";default:c+=e}d++}}catch(g){if("__break__"!=g)throw g;}return c};Ce.formatUTCDate=function(a,b){return"not supper has remove!"};var Wa=function(){};g["trcharts.string.Utils"]=Wa;Wa.__name__=["trcharts","string","Utils"];Wa.get_colour=function(a){return"0x"==Y.substr(a,0,2)?t.parseInt(a):"#"== Y.substr(a,0,1)?t.parseInt("0x"+Y.substr(a,1,a.length)):6==a.length?t.parseInt("0x"+a):t.parseInt(a)};Wa.prototype={__class__:Wa};var Zb,at=0;Array.prototype.indexOf&&(Y.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"]},Ns=g.Dynamic={__name__:["Dynamic"]},Cs=g.Float=Number; Cs.__name__=["Float"];var Ds=g.Bool=Boolean;Ds.__ename__=["Bool"];var Es=g.Class={__name__:["Class"]},Os={};cd.rect=new ia;cd.point=new Q;var R={},Cq=Function("return typeof ArrayBuffer != 'undefined' ? ArrayBuffer : null")()||pg;null==Cq.prototype.slice&&(Cq.prototype.slice=pg.sliceImpl);var Ss=Function("return typeof DataView != 'undefined' ? DataView : null")()||Oq,nc=Function("return typeof Uint8Array != 'undefined' ? Uint8Array : null")()||Fh._new,Us;Us=new Uint32Array(256);I.__alpha16=Us;for(var Vs= 0;256>Vs;){var Ws=Vs++,bt=Math.ceil(257.00392156862745*Ws);I.__alpha16[Ws]=bt}var Xs;Xs=new nc(510);I.__clamp=Xs;for(var Ys=0;255>Ys;){var Zs=Ys++;I.__clamp[Zs]=Zs}for(var $s=255;511>$s;){var ct=$s++;I.__clamp[ct]=255}Zd.available=!1;Zd.enabled=!1;null!=window.createjs&&(createjs.Sound.alternateExtensions=["ogg","mp3","wav"]);Ga.__instanceCount=0;Ga.__worldRenderDirty=0;Ga.__worldTransformDirty=0;Ga.__cacheAsBitmapMode=!1;Bf.Instance=null;ba.Element=0;ba.PCData=1;ba.CData=2;ba.Comment=3;ba.DocType= 4;ba.ProcessingInstruction=5;ba.Document=6;jf.ElementType=0;jf.PCDataType=1;jf.CDataType=2;jf.CommentType=3;jf.DocTypeType=4;jf.ProcessingInstructionType=5;jf.DocumentType=6;sh.YoutubeType="youtube";ua.YoutubeType="youtube";ua.Element_Type="div";ua._resetFlipBookIndexTextField=null;ua._onStageResize=null;ua._initPageIndex=1;ua._scaleModeTargetPageIndex=1;ua.instance=null;ua._changeFlag=!1;ua._scaleMode=!1;ua._backgroundRectX=0;ua._backgroundRectY=0;ua._flipBookRectX=0;ua._flipBookRectY=0;ua._contentSpriteX= 0;ua._contentSpriteY=0;ua._firstPage=0;ua._lastPage=0;Ti.YoutubeType="youtube";dd.WOL_ROUNDED_DEFAULT="wol_rounded_default";dd.WOL_ROUNDED_PRIMARY="wol_rounded_primary";dd.WOL_ROUNDED_ACTION="wol_rounded_action";dd.WOL_ROUNDED_HIGHLIGHT="wol_rounded_highlight";dd.WOL_ROUNDED_CAUTION="wol_rounded_caution";dd.WOL_ROUNDED_ROYAL="wol_rounded_royal";dd.WOL_CIRCLE_DEFAULT="wol_circle_default";dd.WOL_CIRCLE_PRIMARY="wol_circle_primary";dd.WOL_CIRCLE_ACTION="wol_circle_action";dd.WOL_CIRCLE_HIGHLIGHT="wol_circle_highlight"; dd.WOL_CIRCLE_CAUTION="wol_circle_caution";dd.WOL_CIRCLE_ROYAL="wol_circle_royal";Mp.OVAL="oval";Mp.RECTANGLE="rectangle";Mp.ROUND_RECTANGLE="round_rectangle";Yl.SOLID="solid";Yl.DASHED="dashed";Yl.DOTTED="dotted";Df.RECTANGLE="rectangle";Df.ROUND_RECTANGLE="round_rectangle";Df.SQUARE="square";Df.OVAL="oval";Df.CIRCLE="circle";Df.RIGHT_TRIANGLE="right-triangle";Df.TRIANGLE="triangle";Df.FIVE_STAR="five-star";Df.DIAMOND="diamond";Df.PENTAGON="pentagon";$h.CIRCLE="circle";$h.CIRCLEPOINTER="circle-pointer"; $h.SQUARE="square";$h.SQUAREPOINTER="square-pointer";kf.INVOKETYPE_MOUSEDOWN="mouseDown";kf.INVOKETYPE_MOUSEUP="mouseUp";kf.INVOKETYPE_MOUSEOVER="mouseOver";kf.INVOKETYPE_MOUSEMOVE="mouseMove";kf.INVOKETYPE_MOUSEOUT="mouseOut";kf.ACTIONTYPE_GOTOPAGE="gotoPage";kf.ACTIONTYPE_OPENLINK="openLink";kf.ACTIONTYPE_CALLJS="callJS";kf.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;Za.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:{}};Za.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}};Za.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}};Za.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}};Za.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}};Za.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}};Zl.LINE_DOT="line_dot";Zl.AREA="area";Zl.BAR="bar";Zl.PIE="pie";ob.HORIZONTAL_LINE="DrawingShapes.horizontal";ob.VERTICAL_LINE="DrawingShapes.vertical";ia.__temp=new ia;Ri.globalTimescale=1;Xp.MAGIC="1STFLIPBINMC";Ui.MAGIC="1STFLIPBINMC";Qg.ERROR_KEY="Invalid key size.\n";Qg.ERROR_BLOCK="Invalid block size.\n";uh.ERROR_KEY="Invalid key size.\n";uh.ERROR_BLOCK="Invalid block size.\n";ek.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";mk.ACTION="action";Z.instance=new Z;Z.m_Settings=new ga;Z.SET_SETTINGS="set_Settings";Z.GET_SETTINGS="get_Settings";Z.DEL_SETTINGS="del_Settings";oe.instance=null;K.IsReg="r";K.IsExt="e";K.FileName="mobile.xml";K.Info="info";K.Parameter="config";K.Parameter2="extconfig";K.ParamItem="item";K.ParamName="name";K.ParamType= "type";K.PageCount="count";K.PageCount2="pageCount";K.PageWidth="pageWidth";K.PageHeight="pageHeight";K.SceneName="appSceneName";K.BookPages="pages";K.PageItem="page";K.PageUrlNormal="normalurl";K.PageUrlLarge="largeurl";K.PageUrlThumb="thumburl";K.PageIsHard="hardPage";K.PageIsEncrypt="encrypted";K.Security="security";K.SecurityMode="mode";K.SinglePassword="singlePassword";K.SecurityItem="item";K.SecurityType="type";K.SecurityName="name";K.SecurityNone="none";K.SecuritySingle="single";K.SecurityUserList= "userlist";K.PagesObjects="pageobjects";K.PageObjects="page";K.PageIndex="pageindex";K.PageObject="object";K.ObjectType="type";K.PageAction="action";K.ObjectEventType="invoketype";K.ActionType="actiontype";K.ObjectOpenUrl="url";K.ObjectLocation="location";K.ObjectX="x";K.ObjectY="y";K.ObjectWidth="width";K.ObjectHeight="height";K.Languages="languages";K.Language="language";K.LangInfo="info";K.LangName="name";K.LangItems="items";K.LangItem="item";K.LangItemKey="key";K.LangItemValue="value";K.Scenes= "scenes";K.SceneGround="scene";K.Background="background";K.SceneItem="item";K.ItemPosition="position";K.SceneItemURL="url";K.Bookmark="bookmark";K.Node="node";K.Label="label";K.Index="index";K.Level="level";K.Child="child";Hf.instance=null;Sg.Text="Text";Sg.Image="Image";Sg.ImageText="ImageText";Yr.None="None";Yr.Thick="Thick";di.None="None";di.Smallest="Smallest";di.Smaller="Small";di.Normal="Normal";di.Large="Large";di.Larger="Larger";di.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;x.MAINSTAGE_INIT="MainStage_Init";x.MAINSTAGE_RESIZE="MainStage_Resize";x.MAINSTAGE_KEYDOWN="MainStage_KeyDown";x.MAINSTAGE_MOUSEMOVE="MainStage_MouseMove";x.MAINSTAGE_MOUSECLICK="MainStage_MouseClick";x.MAINSTAGE_TEXT="MainStage_Text";x.MAINSTAGE_PROGRESS="MainStage_Progress"; x.MAINXML_IOERROR="MainXml_IoError";x.MAINXML_FORMATERROR="MainXml_FormatError";x.MAINXML_COMPLETE="MainXml_Complete";x.TEMPLATEXML_LOAD="TemplateXML_Load";x.TEMPLATEXML_UNLOAD="TemplateXML_Unload";x.TEMPLATEXML_ERROR="TemplateXML_Error";x.MATERIALXML_LOAD="MaterialXML_Load";x.MATERIALXML_UNLOAD="MaterialXML_Unload";x.MATERIALXML_ERROR="MaterialXML_Error";x.MOUSEOVER_OVER="MouseOver_Over";x.MOUSEOVER_OUT="MouseOver_Out";x.MOUSEOVER_DOWN="MouseOver_Down";x.MOUSEOVER_UP="MouseOver_Up";x.MOUSEOVER_MOVE= "MouseOver_Move";x.MOUSEOVER_CLICK="MouseOver_Click";x.MOUSEOVER_DOUBLECLICK="MouseOver_DoubleClick";x.COMPONENT_OVER="Component_Over";x.COMPONENT_OUT="Component_Out";x.COMPONENT_DOWN="Component_Down";x.COMPONENT_UP="Component_Up";x.COMPONENT_MOVE="Component_Move";x.COMPONENT_CLICK="Component_Click";x.COMPONENT_DOUBLECLICK="Component_DoubleClick";x.COMPONENT_KEYUP="Component_KeyUp";x.COMPONENT_KEYDOWN="Component_KeyDown";x.COMPONENT_UPDATE="Component_Update";x.COMPONENT_UPTEXT="Component_UpText"; x.COMPONENT_UPICON="Component_UpIcon";x.COMPONENT_UPVISIBLE="Component_UpVisible";x.BASEBUTTON_DOWN="BaseButton_Down";x.BASEBUTTON_UP="BaseButton_Up";x.BASEBUTTON_CLICK="BaseButton_Click";x.BOOKPAGE_CLICK="BookPage_Click";x.BOOKPAGE_UPDATE="BookPage_Update";x.BOOKPAGE_DOUBLECLICK="BookPage_DoubleClick";x.BOOKPAGE_SELECTDOWN="BookPage_SelectDown";x.PAGEIMAGE_LOADER="BookPage_ImageLoader";x.PAGEIMAGE_UNLOADER="BookPage_ImageUnloader";x.PAGEIMAGE_THUMBSHOW="BookPage_ThumbWillShow";x.FLIPBOOK_CALLINIT= "FlipBook_CallInit";x.FLIPBOOK_CALLREADY="FlipBook_CallReady";x.FLIPBOOK_WILLCHANGE="FlipBook_WillChange";x.FLIPBOOK_DIDCHANGED="FlipBook_DidChanged";x.FLIPGOTOBAR_DOWN="FlipGotoBar_Down";x.FLIPGOTOBAR_UP="FlipGotoBar_Up";x.FLIPGOTOBAR_CLICK="FlipGotoBar_Click";x.BOOKTEXTXML_LOAD="BookTextXML_Load";x.BOOKTEXTXML_UNLOAD="BookTextXML_Unload";x.BOOKTEXTXML_ERROR="BookTextXML_Error";x.FLIPBOOK_WILLFADEIN="FlipBook_WillFadeIn";x.FLIPBOOK_WILLFADEOUT="FlipBook_WillFadeOut";x.PAGETEXTXML_LOAD="PageTextXML_Load"; x.PAGETEXTXML_UNLOAD="PageTextXML_Unload";x.PAGETEXTXML_ERROR="PageTextXML_Error";x.SCALEPAGEITEM_DOWN="ScalePageItem_Down";x.SCALEPAGEITEM_UP="ScalePageItem_Up";x.SCALEPAGEITEM_CLICK="ScalePageItem_Click";x.SEARCHBOOK_RESET="SearchBook_Reset";x.SEARCHBOOK_CANCEL="SearchBook_Cancel";x.SEARCHPAGE_START="SearchPage_Start";x.SEARCHPAGE_FINISH="SearchPage_Finish";x.SEARCHPAGE_CALLBACK="SearchPage_CallBack";x.SEARCHBOOK_START="SearchBook_Start";x.SEARCHBOOK_FINISH="SearchBook_Finish";x.SEARCHBOOK_CALLBACK= "SearchBook_CallBack";x.BOOKMARKITEM_OVER="BookMarkItem_Over";x.BOOKMARKITEM_CLICK="BookMarkItem_Click";x.BOOKMARKEXPAND_CLICK="BookMarkExpand_Click";x.BOOKMARKSTEP_DOWN="BookMarkStep_Down";x.BOOKMARKSTEP_UP="BookMarkStep_Up";x.BOOKMARKSTEP_CLICK="BookMarkStep_Click";x.LANGUAGELIST_CHANGE="LanguageList_Change";x.LANGUAGEINFO_CACHED="LanguageInfo_Cached";x.LANGUAGEINFO_UPDATE="LanguageInfo_Update";x.BASESPRITESTEP_DOWN="BaseSpriteStep_Down";x.BASESPRITESTEP_UP="BaseSpriteStep_Up";x.BASESPRITESTEP_CLICK= "BaseSpriteStep_Click";x.BASESPRITEITEM_OVER="BaseSpriteItem_Over";x.BASESPRITEITEM_CLICK="BaseSpriteItem_Click";x.LISTSPRITEITEM_OVER="ListSpriteItem_Over";x.LISTSPRITEITEM_CLICK="ListSpriteItem_Click";x.LISTSPRITESTEP_DOWN="ListSpriteStep_Down";x.LISTSPRITESTEP_UP="ListSpriteStep_Up";x.LISTSPRITESTEP_CLICK="ListSpriteStep_Click";x.SEARCHLISTITEM_OVER="ThumbnailsItem_Over";x.SEARCHLISTITEM_CLICK="ThumbnailsItem_Click";x.SEARCHLISTSTEP_DOWN="SearchListStep_Down";x.SEARCHLISTSTEP_UP="SearchListStep_Up"; x.SEARCHLISTSTEP_CLICK="SearchListStep_Click";x.THUMBNAILSITEM_OVER="ThumbnailsItem_Over";x.THUMBNAILSITEM_DOWN="ThumbnailsItem_Down";x.THUMBNAILSITEM_CLICK="ThumbnailsItem_Click";x.THUMBNAILSSTEP_DOWN="ThumbnailsStep_Down";x.THUMBNAILSSTEP_UP="ThumbnailsStep_Up";x.THUMBNAILSSTEP_CLICK="ThumbnailsStep_Click";x.SECURITYLOGIN_UPDATE="SecurityLogin_Update";T.Instance=null;ok.isInit=!1;Ub.textSpace=6;nf.bFirst=!0;Ib.HS_WIDTH=80;xh.NumberWidth=40;bg.MASK_WIDTH=60;Ve.NotFound=-1;Rg.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";Bb.id=0;Bb.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";Wg.TYPE_ANNOLINK="pageLink";Wg.TYPE_ACTIONOPENURL="openURL";Wg.TYPE_ACTIONGOTOPAGE="gotoPage";sb.OVERALPHAVAL=.45;sb.OVERALPHA="LinkConst_LinkOverAlpha";sb.DOWNALPHAVAL=.45;sb.DOWNALPHA="LinkConst_LinkDownAlpha";sb.OVERCOLORVAL=8388736;sb.OVERCOLOR="LinkConst_LinkOverColor";sb.DOWNCOLORVAL=255;sb.DOWNCOLOR="LinkConst_LinkDownColor";sb.SCALEENABLEVAL="Enable";sb.SCALEENABLE="LinkConst_LinkEnableWhenZoom";sb.OPENEDWINDOWVAL="Blank";sb.OPENEDWINDOW="LinkConst_LinkOpenedWindow";sb.isInit= !1;eg._defaultLinkTarget="_blank";Hb.Thumb=0;Hb.Normal=1;Hb.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;lj.LEFT="left";lj.RIGHT="right";hd.instance=null;fg.instance=null;Ja.SCALEISONEVAL=!0;Ja.SCALEISONE="ScalePage_IsOnePage";Ja.SCALEHORSPACEVAL=100;Ja.SCALEHORSPACE="ScalePage_HorSpace";Ja.SCALEVERSPACEVAL=100;Ja.SCALEVERSPACE="ScalePage_VerSpace";Ja.SCALERADIOMINVAL=.04;Ja.SCALERADIOMIN= "ScalePage_ScaleRadioMin";Ja.SCALERADIOMAXVAL=8;Ja.SCALERADIOMAX="ScalePage_ScaleRadioMax";Ja.SCALERADIOSTEPVAL=.2;Ja.SCALERADIOSTEP="ScalePage_ScaleRadioStep";Ja.isInit=!1;y.ISFILLVAL=!0;y.ISFILL="BaseRegion_HasFill";y.FILLCOLORVAL=6710886;y.FILLCOLOR="BaseRegion_FillColor";y.FILLALPHAVAL=.9;y.FILLALPHA="BaseRegion_FillAplpha";y.ISSTROKEVAL=!0;y.ISSTROKE="BaseRegion_HasStroke";y.STROKECOLORVAL=65535;y.STROKECOLOR="BaseRegion_StrokeColor";y.STROKEALPHAVAL=1;y.STROKEALPHA="BaseRegion_StrokeAlpha"; y.STROKEPIXELVAL=1;y.STROKEPIXEL="BaseRegion_StrokePixel";y.DISABLEFILLVAL=y.FILLCOLORVAL;y.DISABLEFILL="BaseRegion_DisableFill";y.DISABLESTROKEVAL=y.STROKECOLORVAL;y.DISABLESTROKE="BaseRegion_DisableStroke";y.ROUNDWIDTHVAL=6;y.ROUNDHEIGHTVAL=6;y.ROUNDWIDTH="BaseRegion_RoundWidth";y.ROUNDHEIGHT="BaseRegion_RoundHeight";y.LINESPACEVAL=6;y.LINESPACE="BaseRegion_LineSpace";y.TOPSPACEVAL=4;y.TOPSPACE="BaseRegion_TopSpace";y.LEFTSPACEVAL=4;y.LEFTSPACE="BaseRegion_LeftSpace";y.RIGHTSPACEVAL=4;y.RIGHTSPACE= "BaseRegion_RightSpace";y.BOTTOMSPACEVAL=4;y.BOTTOMSPACE="BaseRegion_BottomSpace";y.TOOLHEIGHTVAL=42;y.TOOLHEIGHT="BaseRegion_ToolHeight";y.TITLEHEIGHTVAL=42;y.TITLEHEIGHT="BaseRegion_TitleHeight";y.THUMBHEIGHTVAL=134;y.THUMBHEIGHT="BaseRegion_ThumbHeight";y.SEARCHHEIGHTVAL=252;y.SEARCHHEIGHT="BaseRegion_SearchHeight";y.ISSOUNDONVAL=!0;y.ISSOUNDON="BaseRegion_IsSoundOn";y.ISSOUNDONSALVAL=!0;y.ISSOUNDONSAL="BaseRegion_IsSoundOnScale";y.BOOKTOPSPACEVAL=12;y.BOOKTOPSPACE="BookRegion_BookTopSpace";y.BOOKLEFTSPACEVAL= 34;y.BOOKLEFTSPACE="BookRegion_BookLeftSpace";y.BOOKRIGHTSPACEVAL=y.BOOKLEFTSPACEVAL;y.BOOKRIGHTSPACE="BookRegion_BookRightSpace";y.BOOKBOTTOMSPACEVAL=y.BOOKTOPSPACEVAL;y.BOOKBOTTOMSPACE="BookRegion_BookBottomSpace";y.BOOKLINESPACEVAL=0;y.BOOKLINESPACE="BookRegion_BookLineSpace";y.BOOKSTEPWIDTHVAL=30;y.BOOKSTEPWIDTH="BookRegion_BookStepWidth";y.GOTOSTEPWIDTHVAL=79;y.GOTOSTEPWIDTH="BookRegion_GotoStepWidth";y.GOTOSTEPHEIGHTVAL=280;y.GOTOSTEPHEIGHT="BookRegion_GotoStepHEIGHT";y.isInit=!1;qa.LINESPACEVAL= 6;qa.LINESPACE="SearchList_LineSpace";qa.STEPSPACEVAL=2*qa.LINESPACEVAL;qa.STEPSPACE="SearchList_StepSpace";qa.STEPHEIGHTVAL=32;qa.STEPHEIGHT="SearchList_StepHeight";qa.ITEMHEIGHTVAL=80;qa.ITEMHEIGHT="SearchList_ItemHeight";qa.ITEMWIDTHVAL=qa.ITEMHEIGHTVAL;qa.ITEMWIDTH="SearchList_ItemWidth";qa.FRAMEHEIGHTVAL=112;qa.FRAMEHEIGHT="SearchList_FrameHeight";qa.TEXTHEIGHTVAL=22;qa.TEXTHEIGHT="SearchText_TextHeight";qa.INPUTHEIGHTVAL=32;qa.INPUTHEIGHT="SearchText_InputHeight";qa.BUTTONHEIGHTVAL=32;qa.BUTTONHEIGHT= "SearchText_ButtonHeight";qa.IMAGETOPSPACEVAL=6;qa.IMAGETOPSPACE="SearchImage_TopSpace";qa.IMAGELEFTSPACEVAL=8;qa.IMAGELEFTSPACE="SearchImage_LeftSpace";qa.IMAGERIGHTSPACEVAL=6;qa.IMAGERIGHTSPACE="SearchImage_RightSpace";qa.IMAGEBOTTOMSPACEVAL=16;qa.IMAGEBOTTOMSPACE="SearchImage_BottomSpace";qa.isInit=!1;ch.instance=null;fc.instance=null;Fs.Book="Book";ig.Start="Start";ig.Finish="Finish";ig.CallBack="CallBack";Sa.BookPages="pages";Sa.BookCount="Count";Sa.BookPage="page";Sa.PageIndex="Index";Sa.PageIsMac= "isMAC";Sa.CDataBegin=""):a.h.gt=">";null!=R.amp?a.setReserved("amp","&"):a.h.amp= "&";null!=R.quot?a.setReserved("quot",'"'):a.h.quot='"';null!=R.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;Fj.psize=256;ra.ASPECT_RATIO="onAspectRatio";ra.MOUSE_SHOW="onMouseShow";ra.MOUSE_HIDE="onMouseHide";ra.FULLSCREEN="onFullscreen";ra.VOLUME_UP="onVolumeUp";ra.VOLUME_DOWN="onVolumeDown";ra.VOLUME_CHANGE="onVolumeChange";ra.MUTE="onMute";ra.FORWARD="onForward";ra.REWIND="onRewind";ra.PLAY_PAUSE="onPlayPause";ra.SEEK="onSeek";ra.TIME="onTimeUpdate";ra.PROGRESS= "onProgress";ra.BUFFERING="onBuffering";ra.NOT_BUFFERING="onNotBuffering";ra.CONNECTION_FAILED="onConnectionFailed";ra.CONNECTION_SUCCESS="onConnectionSuccess";ra.MEDIA_INITIALIZED="onDataInitialized";ra.PLAYBACK_FINISHED="onPlaybackFinished";ra.STOP_CLOSE="onStopAndClose";ra.RESIZE="onResize";ra.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;Ob.AUDIO="audio";Ob.VIDEO="video";tb.FILE= "file";tb.PSEUDOSTREAM="http";tb.RTMP="rtmp";tb.YOUTUBE="youtube";Fh.BYTES_PER_ELEMENT=1;fa.cache=new Pq;fa.libraries=new ga;fa.onChange=new Oc;fa.initialized=!1;Cb.windowID=0;ad.images=new ga;ad.loaders=new ga;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;gb.FALSE=0;gb.TRUE=1;gb.FREQUENCY=4103;gb.REFRESH=4104;gb.SYNC=4105;gb.MONO_SOURCES=4112;gb.STEREO_SOURCES=4113; gb.NO_ERROR=0;gb.INVALID_DEVICE=40961;gb.INVALID_CONTEXT=40962;gb.INVALID_ENUM=40963;gb.INVALID_VALUE=40964;gb.OUT_OF_MEMORY=40965;gb.ATTRIBUTES_SIZE=4098;gb.ALL_ATTRIBUTES=4099;gb.DEFAULT_DEVICE_SPECIFIER=4100;gb.DEVICE_SPECIFIER=4101;gb.EXTENSIONS=4102;gb.ENUMERATE_ALL_EXT=1;gb.DEFAULT_ALL_DEVICES_SPECIFIER=4114;gb.ALL_DEVICES_SPECIFIER=4115;Eb.__base64Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";gr.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];vg.__identity=new vg;ja.__identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];kj.MESSAGE_COMPLETE="__COMPLETE__";kj.MESSAGE_ERROR="__ERROR__";Zd.__moduleNames=null;Zd.lime_cffi_set_finalizer=Zd.load("lime","lime_cffi_set_finalizer", 1,!1);vf.INVALID=0;vf.LEFT_TO_RIGHT=4;vf.RIGHT_TO_LEFT=5;vf.TOP_TO_BOTTOM=6;vf.BOTTOM_TO_TOP=7;ea.COMMON="Zyyy";ea.INHERITED="Zinh";ea.UNKNOWN="Zzzz";ea.ARABIC="Arab";ea.ARMENIAN="Armn";ea.BENGALI="Beng";ea.CYRILLIC="Cyrl";ea.DEVANAGARI="Deva";ea.GEORGIAN="Geor";ea.GREEK="Grek";ea.GUJARATI="Gujr";ea.GURMUKHI="Guru";ea.HANGUL="Hang";ea.HAN="Hani";ea.HEBREW="Hebr";ea.HIRAGANA="Hira";ea.KANNADA="Knda";ea.KATAKANA="Kana";ea.LAO="Laoo";ea.LATIN="Latn";ea.MALAYALAM="Mlym";ea.ORIYA="Orya";ea.TAMIL="Taml"; ea.TELUGA="Telu";ea.THAI="Thai";ea.TIBETAN="Tibt";ea.BOPOMOFO="Bopo";ea.BRAILLE="Brai";ea.CANADIAN_SYLLABICS="Cans";ea.CHEROKEE="Cher";ea.ETHIOPIC="Ethi";ea.KHMER="Khmr";ea.MONGOLIAN="Mong";ea.MYANMAR="Mymr";ea.OGHAM="Ogam";ea.RUNIC="Runr";ea.SINHALA="Sinh";ea.SYRIAC="Syrc";ea.THAANA="Thaa";ea.YI="Yiii";ea.DESERET="Dsrt";ea.GOTHIC="Goth";ea.OLD_ITALIC="Ital";ea.BUHID="Buhd";ea.HANUNOO="Hano";ea.TAGALOG="Tglg";ea.TAGBANWA="Tagb";ea.CYPRIOT="Cprt";ea.LIMBU="Limb";ea.LINEAR_B="Linb";ea.OSMANYA="Osma"; ea.SHAVIAN="Shaw";ea.TAI_LE="Tale";ea.UGARITIC="Ugar";ea.BUGINESE="Bugi";ea.COPTIC="Copt";ea.GLAGOLITIC="Glag";ea.KHAROSHTHI="Khar";ea.NEW_TAI_LUE="Talu";ea.OLD_PERSIAN="Xpeo";ea.SYLOTI_NAGRI="Sylo";ea.TIFINAGH="Tfng";ea.BALINESE="Bali";ea.CUNEIFORM="Xsux";ea.NKO="Nkoo";ea.PHAGS_PA="Phag";ea.PHOENICIAN="Phnx";ea.CARIAN="Cari";ea.CHAM="Cham";ea.KAYAH_LI="Kali";ea.LEPCHA="Lepc";ea.LYCIAN="Lyci";ea.LYDIAN="Lydi";ea.OL_CHIKI="Olck";ea.REJANG="Rjng";ea.SAURASHTRA="Saur";ea.SUNDANESE="Sund";ea.VAI="Vaii"; ea.AVESTAN="Avst";ea.BAMUM="Bamu";ea.EGYPTIAN_HIEROGLYPHS="Egyp";ea.IMPERIAL_ARAMAIC="Armi";ea.INSCRIPTIONAL_PAHLAVI="Phli";ea.INSCRIPTIONAL_PARTHIAN="Prti";ea.JAVANESE="Java";ea.KAITHI="Kthi";ea.LISU="Lisu";ea.MEETEI_MAYEK="Mtei";ea.OLD_SOUTH_ARABIAN="Sarb";ea.OLD_TURKIC="Orkh";ea.SAMARITAN="Samr";ea.TAI_THAM="Lana";ea.TAI_VIET="Tavt";ea.BATAK="Batk";ea.BRAHMI="Brah";ea.MANDAIC="Mand";ea.CHAKMA="Cakm";ea.MEROITIC_CURSIVE="Merc";ea.MEROITIC_HIEROGLYPHS="Mero";ea.MIAO="Plrd";ea.SHARADA="Shrd";ea.SORA_SOMPENG= "Sora";ea.TAKRI="Takr";ea.BASSA_VAH="Bass";ea.CAUCASIAN_ALBANIAN="Aghb";ea.DUPLOYAN="Dupl";ea.ELBASAN="Elba";ea.GRANTHA="Gran";ea.KHOJKI="Khoj";ea.KHUDAWADI="Sind";ea.LINEAR_A="Lina";ea.MAHAJANI="Mahj";ea.MANICHAEAN="Mani";ea.MENDE_KIKAKUI="Mend";ea.MODI="Modi";ea.MRO="Mroo";ea.NABATAEAN="Nbat";ea.OLD_NORTH_ARABIAN="Narb";ea.OLD_PERMIC="Perm";ea.PAHAWH_HMONG="Hmng";ea.PALMYRENE="Palm";ea.PAU_CIN_HAU="Pauc";ea.PSALTER_PAHLAVI="Phlp";ea.SIDDHAM="Sidd";ea.TIRHUTA="Tirh";ea.WARANG_CITI="Wara";Gh.devices= new Ud;Gh.onConnect=new $q;yi.LEFT_X=0;yi.LEFT_Y=1;yi.RIGHT_X=2;yi.RIGHT_Y=3;yi.TRIGGER_LEFT=4;yi.TRIGGER_RIGHT=5;ke.A=0;ke.B=1;ke.X=2;ke.Y=3;ke.BACK=4;ke.GUIDE=5;ke.START=6;ke.LEFT_STICK=7;ke.RIGHT_STICK=8;ke.LEFT_SHOULDER=9;ke.RIGHT_SHOULDER=10;ke.DPAD_UP=11;ke.DPAD_DOWN=12;ke.DPAD_LEFT=13;ke.DPAD_RIGHT=14;Pk.devices=new Ud;Pk.onConnect=new ar;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;F.UNKNOWN=0;F.BACKSPACE=8;F.TAB=9;F.RETURN= 13;F.ESCAPE=27;F.SPACE=32;F.EXCLAMATION=33;F.QUOTE=34;F.HASH=35;F.DOLLAR=36;F.PERCENT=37;F.AMPERSAND=38;F.SINGLE_QUOTE=39;F.LEFT_PARENTHESIS=40;F.RIGHT_PARENTHESIS=41;F.ASTERISK=42;F.PLUS=43;F.COMMA=44;F.MINUS=45;F.PERIOD=46;F.SLASH=47;F.NUMBER_0=48;F.NUMBER_1=49;F.NUMBER_2=50;F.NUMBER_3=51;F.NUMBER_4=52;F.NUMBER_5=53;F.NUMBER_6=54;F.NUMBER_7=55;F.NUMBER_8=56;F.NUMBER_9=57;F.COLON=58;F.SEMICOLON=59;F.LESS_THAN=60;F.EQUALS=61;F.GREATER_THAN=62;F.QUESTION=63;F.AT=64;F.LEFT_BRACKET=91;F.BACKSLASH=92; F.RIGHT_BRACKET=93;F.CARET=94;F.UNDERSCORE=95;F.GRAVE=96;F.A=97;F.B=98;F.C=99;F.D=100;F.E=101;F.F=102;F.G=103;F.H=104;F.I=105;F.J=106;F.K=107;F.L=108;F.M=109;F.N=110;F.O=111;F.P=112;F.Q=113;F.R=114;F.S=115;F.T=116;F.U=117;F.V=118;F.W=119;F.X=120;F.Y=121;F.Z=122;F.DELETE=127;F.CAPS_LOCK=1073741881;F.F1=1073741882;F.F2=1073741883;F.F3=1073741884;F.F4=1073741885;F.F5=1073741886;F.F6=1073741887;F.F7=1073741888;F.F8=1073741889;F.F9=1073741890;F.F10=1073741891;F.F11=1073741892;F.F12=1073741893;F.PRINT_SCREEN= 1073741894;F.SCROLL_LOCK=1073741895;F.PAUSE=1073741896;F.INSERT=1073741897;F.HOME=1073741898;F.PAGE_UP=1073741899;F.END=1073741901;F.PAGE_DOWN=1073741902;F.RIGHT=1073741903;F.LEFT=1073741904;F.DOWN=1073741905;F.UP=1073741906;F.NUM_LOCK=1073741907;F.NUMPAD_DIVIDE=1073741908;F.NUMPAD_MULTIPLY=1073741909;F.NUMPAD_MINUS=1073741910;F.NUMPAD_PLUS=1073741911;F.NUMPAD_ENTER=1073741912;F.NUMPAD_1=1073741913;F.NUMPAD_2=1073741914;F.NUMPAD_3=1073741915;F.NUMPAD_4=1073741916;F.NUMPAD_5=1073741917;F.NUMPAD_6= 1073741918;F.NUMPAD_7=1073741919;F.NUMPAD_8=1073741920;F.NUMPAD_9=1073741921;F.NUMPAD_0=1073741922;F.NUMPAD_PERIOD=1073741923;F.APPLICATION=1073741925;F.POWER=1073741926;F.NUMPAD_EQUALS=1073741927;F.F13=1073741928;F.F14=1073741929;F.F15=1073741930;F.F16=1073741931;F.F17=1073741932;F.F18=1073741933;F.F19=1073741934;F.F20=1073741935;F.F21=1073741936;F.F22=1073741937;F.F23=1073741938;F.F24=1073741939;F.EXECUTE=1073741940;F.HELP=1073741941;F.MENU=1073741942;F.SELECT=1073741943;F.STOP=1073741944;F.AGAIN= 1073741945;F.UNDO=1073741946;F.CUT=1073741947;F.COPY=1073741948;F.PASTE=1073741949;F.FIND=1073741950;F.MUTE=1073741951;F.VOLUME_UP=1073741952;F.VOLUME_DOWN=1073741953;F.NUMPAD_COMMA=1073741957;F.ALT_ERASE=1073741977;F.SYSTEM_REQUEST=1073741978;F.CANCEL=1073741979;F.CLEAR=1073741980;F.PRIOR=1073741981;F.RETURN2=1073741982;F.SEPARATOR=1073741983;F.OUT=1073741984;F.OPER=1073741985;F.CLEAR_AGAIN=1073741986;F.CRSEL=1073741987;F.EXSEL=1073741988;F.NUMPAD_00=1073742E3;F.NUMPAD_000=1073742001;F.THOUSAND_SEPARATOR= 1073742002;F.DECIMAL_SEPARATOR=1073742003;F.CURRENCY_UNIT=1073742004;F.CURRENCY_SUBUNIT=1073742005;F.NUMPAD_LEFT_PARENTHESIS=1073742006;F.NUMPAD_RIGHT_PARENTHESIS=1073742007;F.NUMPAD_LEFT_BRACE=1073742008;F.NUMPAD_RIGHT_BRACE=1073742009;F.NUMPAD_TAB=1073742010;F.NUMPAD_BACKSPACE=1073742011;F.NUMPAD_A=1073742012;F.NUMPAD_B=1073742013;F.NUMPAD_C=1073742014;F.NUMPAD_D=1073742015;F.NUMPAD_E=1073742016;F.NUMPAD_F=1073742017;F.NUMPAD_XOR=1073742018;F.NUMPAD_POWER=1073742019;F.NUMPAD_PERCENT=1073742020; F.NUMPAD_LESS_THAN=1073742021;F.NUMPAD_GREATER_THAN=1073742022;F.NUMPAD_AMPERSAND=1073742023;F.NUMPAD_DOUBLE_AMPERSAND=1073742024;F.NUMPAD_VERTICAL_BAR=1073742025;F.NUMPAD_DOUBLE_VERTICAL_BAR=1073742026;F.NUMPAD_COLON=1073742027;F.NUMPAD_HASH=1073742028;F.NUMPAD_SPACE=1073742029;F.NUMPAD_AT=1073742030;F.NUMPAD_EXCLAMATION=1073742031;F.NUMPAD_MEM_STORE=1073742032;F.NUMPAD_MEM_RECALL=1073742033;F.NUMPAD_MEM_CLEAR=1073742034;F.NUMPAD_MEM_ADD=1073742035;F.NUMPAD_MEM_SUBTRACT=1073742036;F.NUMPAD_MEM_MULTIPLY= 1073742037;F.NUMPAD_MEM_DIVIDE=1073742038;F.NUMPAD_PLUS_MINUS=1073742039;F.NUMPAD_CLEAR=1073742040;F.NUMPAD_CLEAR_ENTRY=1073742041;F.NUMPAD_BINARY=1073742042;F.NUMPAD_OCTAL=1073742043;F.NUMPAD_DECIMAL=1073742044;F.NUMPAD_HEXADECIMAL=1073742045;F.LEFT_CTRL=1073742048;F.LEFT_SHIFT=1073742049;F.LEFT_ALT=1073742050;F.LEFT_META=1073742051;F.RIGHT_CTRL=1073742052;F.RIGHT_SHIFT=1073742053;F.RIGHT_ALT=1073742054;F.RIGHT_META=1073742055;F.MODE=1073742081;F.AUDIO_NEXT=1073742082;F.AUDIO_PREVIOUS=1073742083; F.AUDIO_STOP=1073742084;F.AUDIO_PLAY=1073742085;F.AUDIO_MUTE=1073742086;F.MEDIA_SELECT=1073742087;F.WWW=1073742088;F.MAIL=1073742089;F.CALCULATOR=1073742090;F.COMPUTER=1073742091;F.APP_CONTROL_SEARCH=1073742092;F.APP_CONTROL_HOME=1073742093;F.APP_CONTROL_BACK=1073742094;F.APP_CONTROL_FORWARD=1073742095;F.APP_CONTROL_STOP=1073742096;F.APP_CONTROL_REFRESH=1073742097;F.APP_CONTROL_BOOKMARKS=1073742098;F.BRIGHTNESS_DOWN=1073742099;F.BRIGHTNESS_UP=1073742100;F.DISPLAY_SWITCH=1073742101;F.BACKLIGHT_TOGGLE= 1073742102;F.BACKLIGHT_DOWN=1073742103;F.BACKLIGHT_UP=1073742104;F.EJECT=1073742105;F.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;uf.onEnd=new Qk;uf.onMove=new Qk;uf.onStart=new Qk;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);Mj.BYTES_PER_ELEMENT=4;Nj.BYTES_PER_ELEMENT=2;Oj.BYTES_PER_ELEMENT=4;Pj.BYTES_PER_ELEMENT=2;Qj.BYTES_PER_ELEMENT=4;Rj.BYTES_PER_ELEMENT=1;Sb.actuators=[];Sb.actuatorsLength=0;Sb.addedEvent=!1;S.defaultActuator=Sb;S.defaultEase=gh.get_easeOut();S.targetLibraries=new lg;za.cache=new Un;za.dispatcher=new Qa;Lg.__rootURL=window.document.URL;Ah.currentDomain=new Ah(null);ka.__temp= new ka;ka.__identity=new ka;pa.current=new we;pa.__sentWarnings=new ga;Dc.SIN45=.7071067811865476;Dc.TAN22=.41421356237309503;O.SIN45=.7071067811865476;O.TAN22=.41421356237309503;O.fillCommands=new Ih;O.strokeCommands=new Ih;z.SIN45=.7071067811865476;z.TAN22=.41421356237309503;z.fillCommands=new Ih;z.strokeCommands=new Ih;ud.fbData=[];vd.glContextId=0;vd.glContexts=[];jc.UID=0;Di.VERTEX_SRC=["attribute vec2 openfl_aPosition;","attribute vec2 openfl_aTexCoord0;","attribute vec4 openfl_aColor;","uniform mat3 openfl_uProjectionMatrix;", "uniform bool openfl_uUseColorTransform;","varying vec2 openfl_vTexCoord;","varying vec4 openfl_vColor;","void main(void) {"," gl_Position = vec4((openfl_uProjectionMatrix * vec3(openfl_aPosition, 1.0)).xy, 0.0, 1.0);"," openfl_vTexCoord = openfl_aTexCoord0;"," if(openfl_uUseColorTransform)"," \topenfl_vColor = openfl_aColor;"," else"," \topenfl_vColor = vec4(openfl_aColor.rgb * openfl_aColor.a, openfl_aColor.a);","}"];v.__currentWinding=0;v.__fillIndex=0;ta.fillVertexAttributes=[new xf(2, 5126,!1,"openfl_aPosition")];ta.drawTrianglesVertexAttributes=[new xf(2,5126,!1,"openfl_aPosition"),new xf(2,5126,!1,"openfl_aTexCoord0"),new xf(4,5121,!0,"openfl_aColor")];ta.primitiveVertexAttributes=[new xf(2,5126,!1,"openfl_aPosition"),new xf(4,5126,!1,"openfl_aColor")];ta.graphicsDataPool=[];ta.bucketPool=[];ta.SIN45=.7071067811865476;ta.TAN22=.41421356237309503;ta.objectPosition=new Q;ta.objectBounds=new ia;$k.compiledShadersCache=new ga;co.VERTS_PER_SPRITE=4;Mb.UTF8_TAB=9;Mb.UTF8_ENDLINE=10; Mb.UTF8_SPACE=32;Mb.UTF8_HYPHEN=45;Mb.__defaultFonts=new ga;oo.ALPHA=8;oo.BLUE=4;oo.GREEN=2;oo.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;Ei.LINE_TO=2;Ei.MOVE_TO=1;Ei.CURVE_TO=3;Ei.WIDE_LINE_TO=5;Ei.WIDE_MOVE_TO=4;Ei.NO_OP=0;Ei.CUBIC_CURVE_TO=6;Cg.CONTEXT_LOST="glcontextlost";Cg.CONTEXT_RESTORED="glcontextrestored";U.uniformRegex=new Gc("^\\s*uniform\\s+(sampler(?:2D|Cube)|[bi]?vec[234]|float|int|bool|mat[234])\\s+(\\w+)\\s*(?:\\[(\\d+)\\])?\\s*;.*$","gmi");U.aPosition="openfl_aPosition";U.aTexCoord="openfl_aTexCoord0";U.aColor="openfl_aColor";U.uSampler="openfl_uSampler0";U.uProjectionMatrix= "openfl_uProjectionMatrix";U.uColorMultiplier="openfl_uColorMultiplier";U.uColorOffset="openfl_uColorOffset";U.uObjectSize="openfl_uObjectSize";U.uTextureSize="openfl_uTextureSize";U.vTexCoord="openfl_vTexCoord";U.vColor="openfl_vColor";U.vertexHeader=["attribute vec2 "+U.aPosition+";","attribute vec2 "+U.aTexCoord+";","attribute vec4 "+U.aColor+";","uniform mat3 "+U.uProjectionMatrix+";","uniform vec2 "+U.uObjectSize+";","uniform vec2 "+U.uTextureSize+";","varying vec2 "+U.vTexCoord+";","varying vec4 "+ U.vColor+";"];U.fragmentHeader=["uniform sampler2D "+U.uSampler+";","uniform vec4 "+U.uColorMultiplier+";","uniform vec4 "+U.uColorOffset+";","uniform vec2 "+U.uObjectSize+";","uniform vec2 "+U.uTextureSize+";","varying vec2 "+U.vTexCoord+";","varying vec4 "+U.vColor+";","vec4 colorTransform(const vec4 color, const vec4 tint, const vec4 multiplier, const vec4 offset) {"," vec4 unmultiply = vec4(color.rgb / color.a, color.a);"," vec4 result = unmultiply * tint * multiplier;"," result = result + offset;", " result = clamp(result, 0., 1.);"," result = vec4(result.rgb * result.a, result.a);"," return result;","}"];$c.TILE_SCALE=1;$c.TILE_ROTATION=2;$c.TILE_RGB=4;$c.TILE_ALPHA=8;$c.TILE_TRANS_2x2=16;$c.TILE_RECT=32;$c.TILE_ORIGIN=64;$c.TILE_BLEND_NORMAL=0;$c.TILE_BLEND_ADD=65536;$c.TILE_BLEND_MULTIPLY=131072;$c.TILE_BLEND_SCREEN=262144;$c.TILE_BLEND_SUBTRACT=524288;$c.TILE_BLEND_DARKEN=1048576;$c.TILE_BLEND_LIGHTEN=2097152;$c.TILE_BLEND_OVERLAY=4194304;$c.TILE_BLEND_HARDLIGHT=8388608;$c.TILE_BLEND_DIFFERENCE= 16777216;$c.TILE_BLEND_INVERT=33554432;$c.__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;uo.ALL=17664;uo.COLOR=16384;uo.DEPTH=256;uo.STENCIL=1024;Ii.BACK=1028;Ii.FRONT=1029;Ii.FRONT_AND_BACK=1032;Ii.NONE=0;L.DEFAULT_TO_STRING="Error";ie.LINK="link";ie.TEXT_INPUT="textInput";me.ERROR="error";Jj.ASYNC_ERROR="asyncError";hl.MENU_ITEM_SELECT="menuItemSelect"; hl.MENU_SELECT="menuSelect";Nc.FOCUS_IN="focusIn";Nc.FOCUS_OUT="focusOut";Nc.KEY_FOCUS_CHANGE="keyFocusChange";Nc.MOUSE_FOCUS_CHANGE="mouseFocusChange";ef.FULL_SCREEN="fullScreen";ef.FULL_SCREEN_INTERACTIVE_ACCEPTED="fullScreenInteractiveAccepted";Rf.DEVICE_ADDED="deviceAdded";Rf.DEVICE_REMOVED="deviceRemoved";Rf.DEVICE_UNUSABLE="deviceUnusable";Gf.HTTP_RESPONSE_STATUS="httpResponseStatus";Gf.HTTP_STATUS="httpStatus";Hc.IO_ERROR="ioError";tc.KEY_DOWN="keyDown";tc.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";Ff.SECURITY_ERROR="securityError"; Pc.TIMER="timer";Pc.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";Ng.available=!0;Ng.marshallExceptions=!1;Gr.HIGH=3;Gr.MEDIUM=2;Gr.LOW=1;il.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_uRadius:{noCompletion:null},set_uRadius:{noCompletion:null}}};jl.__meta__={fields:{vertex:{vertex:null}, fragment:{fragment:null},get_uRadius:{noCompletion:null},set_uRadius:{noCompletion:null},get_uShift:{noCompletion:null},set_uShift:{noCompletion:null},get_uColor:{noCompletion:null},set_uColor:{noCompletion:null}}};kl.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_uRadius:{noCompletion:null},set_uRadius:{noCompletion:null},get_uColor:{noCompletion:null},set_uColor:{noCompletion:null}}};xe.__registeredSounds=new ga;Mk.CONNECT_SUCCESS="connectSuccess";Of.defaultObjectEncoding=3; cb.avHardwareDisable=!0;cb.cpuArchitecture="";cb.hasAccessibility=!1;cb.hasAudio=!0;cb.hasAudioEncoder=!1;cb.hasEmbeddedVideo=!1;cb.hasIME=!1;cb.hasMP3=!1;cb.hasPrinting=!1;cb.hasScreenBroadcast=!1;cb.hasScreenPlayback=!1;cb.hasStreamingAudio=!1;cb.hasStreamingVideo=!1;cb.hasTLS=!0;cb.hasVideoEncoder=!1;cb.isDebugger=!1;cb.isEmbeddedInAcrobat=!1;cb.localFileReadDisable=!0;cb.manufacturer="OpenFL Contributors";cb.maxLevelIDC=0;cb.playerType="OpenFL";cb.screenColor="color";cb.serverString="";cb.supports32BitProcesses= !1;cb.supports64BitProcesses=!1;cb.touchscreenType=Sf.FINGER;xo.currentDomain=new xo;Tf.useCodePage=!1;Md.__registeredFonts=[];Gb.isSupported=!0;Gb.numDevices=0;Gb.__devices=new lg;Gb.__instances=[];yo.MAX_BUFFER_SIZE=32E3;ma.NUMBER_0=48;ma.NUMBER_1=49;ma.NUMBER_2=50;ma.NUMBER_3=51;ma.NUMBER_4=52;ma.NUMBER_5=53;ma.NUMBER_6=54;ma.NUMBER_7=55;ma.NUMBER_8=56;ma.NUMBER_9=57;ma.A=65;ma.B=66;ma.C=67;ma.D=68;ma.E=69;ma.F=70;ma.G=71;ma.H=72;ma.I=73;ma.J=74;ma.K=75;ma.L=76;ma.M=77;ma.N=78;ma.O=79;ma.P=80; ma.Q=81;ma.R=82;ma.S=83;ma.T=84;ma.U=85;ma.V=86;ma.W=87;ma.X=88;ma.Y=89;ma.Z=90;ma.NUMPAD_0=96;ma.NUMPAD_1=97;ma.NUMPAD_2=98;ma.NUMPAD_3=99;ma.NUMPAD_4=100;ma.NUMPAD_5=101;ma.NUMPAD_6=102;ma.NUMPAD_7=103;ma.NUMPAD_8=104;ma.NUMPAD_9=105;ma.NUMPAD_MULTIPLY=106;ma.NUMPAD_ADD=107;ma.NUMPAD_ENTER=108;ma.NUMPAD_SUBTRACT=109;ma.NUMPAD_DECIMAL=110;ma.NUMPAD_DIVIDE=111;ma.F1=112;ma.F2=113;ma.F3=114;ma.F4=115;ma.F5=116;ma.F6=117;ma.F7=118;ma.F8=119;ma.F9=120;ma.F10=121;ma.F11=122;ma.F12=123;ma.F13=124;ma.F14= 125;ma.F15=126;ma.BACKSPACE=8;ma.TAB=9;ma.ALTERNATE=18;ma.ENTER=13;ma.COMMAND=15;ma.SHIFT=16;ma.CONTROL=17;ma.BREAK=19;ma.CAPS_LOCK=20;ma.NUMPAD=21;ma.ESCAPE=27;ma.SPACE=32;ma.PAGE_UP=33;ma.PAGE_DOWN=34;ma.END=35;ma.HOME=36;ma.LEFT=37;ma.RIGHT=39;ma.UP=38;ma.DOWN=40;ma.INSERT=45;ma.DELETE=46;ma.NUMLOCK=144;ma.SEMICOLON=186;ma.EQUAL=187;ma.COMMA=188;ma.MINUS=189;ma.PERIOD=190;ma.SLASH=191;ma.BACKQUOTE=192;ma.LEFTBRACKET=219;ma.BACKSLASH=220;ma.RIGHTBRACKET=221;ma.QUOTE=222;Ka.UserNameKey="userName"; Ka.UserPasswordKey="userPassword";Ka.SinglePasswordKey="singlePassword";Ka.Instance=null;yd.version="1.0.0";yd.BASE64_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";$e.instance=null;Lb.STROKE_ALPHA=.2;lb.instance=null;md.DEFAULT_NUM_DECIMALS=2;md._instance=null;md._instanceY2=null;Hg.CLOSEST=0;Hg.PROXIMITY=1;Hg.NORMAL=2;Ig.STEP_HORIZONTAL=1;Ig.STEP_VERTICAL=2;Vh.TO_RADIANS=Math.PI/180;Ce.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);