Skip to content

Instantly share code, notes, and snippets.

@afkvido
Created July 30, 2022 02:37
Show Gist options
  • Save afkvido/28a97add9b5132d8d50eac412e19856f to your computer and use it in GitHub Desktop.
Save afkvido/28a97add9b5132d8d50eac412e19856f to your computer and use it in GitHub Desktop.
Prodigy game.min.js version 2-0-0
This file has been truncated, but you can view the full file.
!function(t,e){for(var i in e)t[i]=e[i]}(window,function(t){var e={};function i(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:a})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1033)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,n=i(166),o=i(2),r=i(4),s=i(13);!function(t){t[t.UserID=0]="UserID",t[t.ClassID=1]="ClassID",t[t.Grade=2]="Grade"}(a=e.SplitTestType||(e.SplitTestType={}));var l=function(){function t(){}return t.capitalize=function(e){return t.isValid(e)?e.charAt(0).toUpperCase()+e.slice(1):""},t.setCookie=function(t,e,i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3);var n="expires="+a.toUTCString();document.cookie=t+"="+e+"; "+n},t.getDate=function(){var t=new Date,e=t.getDate(),i=t.getMonth()+1,a=t.getFullYear(),n=""+e,o=""+i;return e<10&&(n="0"+e),i<10&&(o="0"+i),""+o+n+a},t.getDateId=function(){return o.GameConstants.get("GameConstants.Build.DEBUG")?Math.floor((new Date).getTime()/t.DEBUG_DAY_LENGTH):Math.floor((new Date).getTime()/864e5)},t.isDateToday=function(t){var e=new Date;return t.getUTCDate()===e.getUTCDate()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCFullYear()===e.getUTCFullYear()},t.elapsedTimeInHours=function(t,e){return(e-t)/36e5},t.getCookie=function(t){for(var e=t+"=",i=document.cookie.split(";"),a=0;a<i.length;a++){for(var n=i[a];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(e))return n.substring(e.length,n.length)}return""},t.convertItemToIcon=function(e){return"gold"===e.type?"item/26":"spell"===e.type?(e.data=t.isValid(e.data)?e.data:r.Items.getItem(e.type,e.ID).data,e.data.element):"boss"===e.type?"boss":"player"===e.type?"player":"dorm"===e.type?""+e.ID:t.isValid(e.metadata)&&t.isValid(e.metadata.icon)?""+e.metadata.icon:t.isValid(e.type)&&t.isValid(e.ID)?e.type+"/"+e.ID:t.isValid(e.tag)?e.tag:"string"==typeof e?e:"empty"},t.numberToString=function(t){for(var e=""+t,i="",a=1,n=e.length-1;n>=0;n--)i=""+e.charAt(n)+i,a%3==0&&a>0&&n>0&&(i=", "+i),a++;return i},t.isSchoolHours=function(){var t=(new Date).getHours();return t>=8&&t<=15},t.isSchoolDay=function(){var t=(new Date).getDay();return 0!==t&&6!==t},t.isNightTime=function(){var t=(new Date).getHours();return t>=16&&t<=23},t.isDefined=function(t){return!(void 0===t||null===t||"null"===t)},t.isNullOrUndefined=function(t){return null===t||void 0===t},t.isValid=function(t){return!(null===t||void 0===t)},t.has=function(e,i){if(t.isValid(e)){for(var a=i.split("."),n=e,o=0;o<a.length;o++)if(void 0===(n=n[a[o]])||null===n||"null"===n)return!1;return!0}return!1},t.isString=function(t){return"string"==typeof t||t instanceof String},t.getDateTime=function(){var t=new Date;return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDay()).getTime()},t.highlightAll=function(e,i,a,n){for(var o=0;o<e.length;o++)t.isValid(e[o].highlight)&&e[o].highlight(i,a,n)},t.getObject=function(e){return"null"===e?null:t.isString(e)?JSON.parse(e):e},t.copyObject=function(e){var i={};if(null===e||"object"!=typeof e)return e;if(e instanceof Array){i=[];for(var a=e.length,n=0;n<a;n++)i[n]=t.copyObject(e[n])}if(e instanceof Object)for(var o in e)e.hasOwnProperty(o)&&(i[o]=t.copyObject(e[o]));return i},t.isEmptyObject=function(e){if(!t.isValid(e))return!0;for(var i in e)if(e.hasOwnProperty(i))return!1;return!0},t.inArray=function(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return!0;return!1},t.removeDuplicates=function(e){for(var i=[],a=0;a<e.length;a++)t.inArray(i,e[a])||i.push(e[a]);return i},t.equalArrays=function(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t.length!==e.length)return!1;for(var i=0;i<t.length;++i)if(t[i]!==e[i])return!1;return!0},t.strip=function(t){var e=t;try{e=t.replace(/[^a-zA-Z0-9]/g,"")}catch(t){}return e},t.getUrlVariable=function(t){var e={};return window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,i,a){return e[i]=a}),e[t]},t.removeParamsFromUrl=function(t,e){for(var i=t,a="",n=0;n<e.length;n++)a=e[n],i=i.replace(new RegExp("([?&]+)"+a+"=[^&]*&*","gi"),function(t,e){return e});if(i.length>0){var o=i[i.length-1];"?"!==o&&"&"!==o||(i=i.substring(0,i.length-1))}return i},t.removeFromArray=function(t,e){for(var i=0;i<e.length;i++)if(e[i]===t){e.splice(i,1);break}},t.moveArrayElement=function(t,e,i){if(i>=t.length)for(var a=i-t.length;a+1!==0;)t.push(void 0),a-=1;return t.splice(i,0,t.splice(e,1)[0]),t},t.centreObject=function(e,i,a,n,o){t.isValid(i)&&t.isValid(n)&&(e.x=i-.5*n),t.isValid(a)&&t.isValid(o)&&(e.y=a-.5*o)},t.getCenteredXY=function(t,e,i,a,n,o){return{x:i+.5*(n-t),y:a+.5*(o-e)}},t.processTime=function(t){if(t<=0)return"00:00";var e=Math.floor(t/36e5),i=Math.floor((t-36e5*e)/6e4),a=Math.floor((t-36e5*e-6e4*i)/1e3),n="",o="",r="";return n=0===e?"00":e<10?"0"+e:""+e,o=0===i?"00":i<10?"0"+i:""+i,r=0===a?"00":a<10?"0"+a:""+a,"00"===n?o+":"+r:e<24?n+":"+o+":"+r:Math.floor(e/24)+" days"},t.calculateItemSpacing=function(t,e,i){return(i-t*e)/(t+1)},t.calculateItemCoordinate=function(t,e,i){return(e+i)*t+i},t.centerItemsWithinContainer=function(e,i,a,n,o){var r={width:0,height:0};if(t.isValid(o))r.width=o.width,r.height=o.height;else{for(var s=0;s<e.length;s++){var l=e[s];l.width>r.width&&(r.width=l.width),r.height+=l.height}r.height/=e.length}var h=a?0:i.x,c=a?0:i.y;t.isValid(n)&&(h+=t.isValid(n.x)?n.x:0,c+=t.isValid(n.y)?n.y:0);var p=t.calculateItemSpacing(e.length,r.width,i.width),u=t.calculateItemSpacing(1,r.height,i.height),d=c+t.calculateItemCoordinate(0,r.height,u);e.forEach(function(e,i){e.x=h+t.calculateItemCoordinate(i,r.width,p),e.y=d})},t.log=function(e,i){if(void 0===i&&(i=t.DEV),0!=(i&o.GameConstants.get("GameConstants.Build.LOG_LEVEL"))){var a="string"==typeof e;switch(i){case t.ERROR:console.log(a?"%c[PRODIGY][ERROR] "+e:e,"background: #900; color: #FFF");break;case t.INFO:console.log(a?"%c[PRODIGY][INFO] "+e:e,"background: #009; color: #FFF");break;case t.DEBUG:console.log(a?"[PRODIGY][DEBUG] "+e:e);break;default:console.log(a?"[PRODIGY][DEV] "+e:e)}}},t.frameDataToFrameJson=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].name]={frame:{x:t[i].x,y:t[i].y,w:t[i].width,h:t[i].height},trimmed:t[i].trimmed,sourceSize:{w:t[i].sourceSizeW,h:t[i].sourceSizeH},spriteSourceSize:{x:t[i].spriteSourceSizeX,y:t[i].spriteSourceSizeY,w:t[i].spriteSourceSizeW,h:t[i].spriteSourceSizeH}};return{frames:e}},t.filterDuplicateKeys=function(e,i){for(var a=[],n=0;n<i.length;n++){var o=i[n];"key"===o.type&&e.prodigy.player.backpack.hasItem("key",o.ID)>0||"spell"===o.type&&t.isValid(e.prodigy.player.data.spells)&&-1!==e.prodigy.player.data.spells.indexOf(o.ID)||a.push(o)}return a},t.validateVersion=function(t){return/^[0-9-]+$/.test(t)?t:null},t.extends=function(t,e,i){for(var a in t.prototype=Object.create(e.prototype),i)t.prototype[a]=i[a]},t.trimText=function(t,e,i){void 0===i&&(i=!1);var a=t;return a.length>e&&(a=t.substring(0,e),i&&(a+="...")),a},t.joinByProperty=function(t,e,i){void 0===i&&(i=",");for(var a="",n=t.length,o=0;o<n;o++)a+=""+t[o][e]+(o<n-1?i:"");return a},t.rgbArrayToHex=function(e){return t.rgb2hex(e[0],e[1],e[2])},t.rgb2hex=function(t,e,i){return i|e<<8|t<<16},t.cleanUpGameID=function(t){for(var e in t)for(var i=0;i<t[e].length;i++)t[e][i].hasOwnProperty("gameID")&&(t[e][i].hasOwnProperty("ID")||(t[e][i].ID=t[e][i].gameID),delete t[e][i].gameID)},t.getEnvironment=function(){var t=window.location.host,e=window.location.search,i="local";return t.indexOf("-qa")>=0||t.indexOf("dev.prodigygame.org")>=0?i="local":t.indexOf("prodigygame.net")>=0||e.indexOf("env=dev")>=0?i="dev":t.indexOf("prodigygame.org")>=0||e.indexOf("env=staging")>=0?i="staging":(t.indexOf("prodigygame.com")>=0||e.indexOf("env=production")>=0||e.indexOf("env=prod")>=0)&&(i="production"),i},t.getOptionalParameter=function(t,e){return void 0===t?e:t},t.isSpineLoaded=function(t,e){if(t.checkTextKey(e+"Atlas")&&t.checkJSONKey(e)){for(var i=t.getText(e+"Atlas"),a=/\S+(?:\.png|\.jpg|\.jpeg)/g.exec(i),n=0;n<a.length;++n)if(!t.checkImageKey(a[n]))return!1;return!0}return!1},t.getWorldPosition=function(e){var i=0,a=0;if(t.isValid(e)){i=e.position.x,a=e.position.y;for(var n=e.parent;t.isValid(n);)i+=n.position.x,a+=n.position.y,n=n.parent}return{x:i,y:a}},t.hilightObjectOnLayer=function(e,i,a,n,r){void 0===i&&(i=0),void 0===a&&(a=0);var s=t.isValid(r)?r:n,l=s.add(e.prodigy.create.sprite(i,a,"atlas-21","help"));return l.anchor.setTo(.5,1),t.isValid(n)&&(l.x+=t.getWorldPosition(n).x-t.getWorldPosition(s).x,l.y+=t.getWorldPosition(n).y-t.getWorldPosition(s).y),e.add.tween(l).to({y:l.y+25},400,Phaser.Easing.Quadratic.InOut,!0,0,o.GameConstants.MAX_SAFE_INTEGER,!0),l},t.resizeSpriteMaintainingAspectRatio=function(t,e,i){t.width>t.height?(t.scale.x=e/t.width,t.scale.y=t.scale.x):(t.scale.y=i/t.height,t.scale.x=t.scale.y)},t.safeDeleteObjectProperty=function(e,i){t.isValid(e[i])&&delete e[i]},t.deleteFieldsWithNullsOrEmptyStrings=function(e,i){for(var a in void 0===i&&(i=!1),e)e.hasOwnProperty(a)&&(""===e[a]?(i&&t.log("Util.deleteFieldsWithNullsOrEmptyStrings - deleted key with empty string value named: "+a,t.DEBUG),delete e[a]):null===e[a]?(i&&t.log("Util.deleteFieldsWithNullsOrEmptyStrings - deleted key with null value named: "+a,t.DEBUG),delete e[a]):"object"==typeof e[a]&&t.deleteFieldsWithNullsOrEmptyStrings(e[a]))},t.defineLazyLoadedProperty=function(t,e,i,a){void 0===a&&(a=!1),!a&&t.hasOwnProperty(e)||Object.defineProperty(t,e,{get:function(){var a=i.call(t);return Object.defineProperty(t,e,{get:function(){return a}}),a},configurable:!0})},t.generateUUID=function(){var t=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var i=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?i:3&i|8).toString(16)})},t.inTestGroup=function(e,i,n,r,s){void 0===s&&(s=a.UserID);var l=null,h=o.GameConstants.get("GameConstants.Features.SplitTests.DEBUG_LANE");if(t.isValid(h))return i===h;if(i>r-1||i<0)return t.log("Lane "+i+" is invalid for totalLanes "+r,t.ERROR),!1;switch(s){case a.UserID:l=e.userID;break;case a.ClassID:l=t.getLatestClassID(e.owners,e.playerTeachers,e.playerParents);break;case a.Grade:l=e.grade;break;default:return t.log("Invalid type "+s,t.ERROR),!1}return t.isValid(l)?Math.floor(l/n)%r===i:(t.log("Invalid ID being used. type = "+s+" player = "+e,t.ERROR),!1)},t.inTestGroups=function(e,i,n,o,r){void 0===r&&(r=a.UserID);for(var s=0;s<i.length;s++)if(t.inTestGroup(e,i[s],n,o,r))return!0;return!1},t.inTestGroupsBetweenCreationDates=function(e,i,n,r,s,l,h){void 0===h&&(h=a.UserID);var c=o.GameConstants.get("GameConstants.Features.SplitTests.CHARACTER_CREATION_TIME"),p=c>0?c:e.data.startDate;return p>=s&&p<l&&t.inTestGroups(e,i,n,r,h)},t.validateString=function(e,i){void 0===i&&(i="");for(var a=0;a<e.length;a++)if(t.isValid(e[a]))return e[a];return i},t.getLatestClassID=function(e,i,a){var n=[],o=null,r=null,s=null;t.isValid(a)&&a.length>0&&(n=a),t.isValid(i)&&i.length>0&&(n=i);for(var l=0;l<n.length;l++){r=n[l];for(var h=0;h<e.length;h++)o=e[h],r.startDate===o.startDate&&(null===s||o.startDate>s.startDate)&&(s=o)}return t.isValid(s)?s.id:0},t.inTestGroupsBetweenSessionDates=function(e,i,n,o,r,s,l){void 0===l&&(l=a.UserID);var h=(new Date).getTime();return h>=r&&h<s&&t.inTestGroups(e,i,n,o,l)},t.getFriendAndClassmateIds=function(t){var e=t.prodigy.friendsListNetworkHandler.classList,i=t.prodigy.friendsListNetworkHandler.friendsList;return n(e.concat(i),"userID")},t.renderFriendAndClassmateFace=function(t,e,i){var a=t.prodigy.friendsListNetworkHandler.classList,n=t.prodigy.friendsListNetworkHandler.friendsList;n=n.concat(a);for(var o=0;o<n.length;o++)if(n[o].userID===e){var r=new s.Player(t);r.init(n[o]),t.prodigy.create.player(i,r,1,0,0,!0,!0,!1,!0).reload();break}},t.clampedLerp=function(t,e,i){var a=i<0?0:i;return t+(e-t)*(a=a>1?1:a)},t.convertLegacyElements=function(t){return"wizard"===t?"astral":"mech"===t?"storm":t},t.DEBUG_DAY_LENGTH=864e5,t.DEV=1,t.DEBUG=2,t.INFO=4,t.ERROR=8,t}();e.Util=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,r=i(10),s=i(2),l=i(5),h=i(0);!function(t){t[t.UP=0]="UP",t[t.UP_RIGHT=45]="UP_RIGHT",t[t.RIGHT=90]="RIGHT",t[t.DOWN_RIGHT=135]="DOWN_RIGHT",t[t.DOWN=180]="DOWN",t[t.DOWN_LEFT=225]="DOWN_LEFT",t[t.LEFT=270]="LEFT",t[t.UP_LEFT=315]="UP_LEFT"}(o=e.EAreaEventAngle||(e.EAreaEventAngle={}));var c=function(t){function e(e,i,a,n,l,c,p,u,d){void 0===p&&(p=o.UP);var g=t.call(this,e,i,a.x,a.y)||this;g.isBlocked=!1,g.data={},g.canReTrigger=!1,g.callback=null,g.frameCount=0,g.fired=!1,g.data=a,g.user=n,g.path=l,g.canReTrigger=r(a,"canReTrigger",!1),g.callback=d?null:c;var y=r(a,"guideHandPathToX",a.x),f=r(a,"guideHandPathToY",a.y),m=p;h.Util.isValid(m)||(m=a.x<50?a.y<50?o.UP_LEFT:a.y>670?o.DOWN_LEFT:o.LEFT:a.x>1230?a.y<50?o.UP_RIGHT:a.y>670?o.DOWN_RIGHT:o.RIGHT:a.y<50?o.UP:a.y>60?o.DOWN:o.LEFT);var _=g.add(e.prodigy.create.sprite(0,0,"atlas-18","area-pointer"));_.anchor.setTo(.5,0),_.angle=m,_.inputEnabled=!0,_.events.onInputDown.add(g.moveTo.bind(g,y,f));var v=0;m>o.UP&&m<o.DOWN?v=-30:m>o.DOWN&&m<360&&(v=30);var E=0;return m>o.LEFT||m<o.RIGHT?E=30:m>o.RIGHT&&m<o.LEFT&&(E=-30),_.x=r(a,"arrowOffsetX",0),_.y=r(a,"arrowOffsetY",0),g.game.add.tween(_).to({x:_.x+v,y:_.y+E},400,Phaser.Easing.Quadratic.InOut,!0,0,s.GameConstants.MAX_SAFE_INTEGER,!0),g.visible=!1,g.frameCount=0,g}return n(e,t),e.prototype.moveTo=function(t,e){this.user.setValidPath(this.path,t,e,null)},e.prototype.update=function(){if(t.prototype.update.call(this),!(this.user.evtProc||this.fired&&!this.canReTrigger))if(this.frameCount<=0){this.frameCount=5;var e=!1;h.Util.isValid(this.data.r)&&Phaser.Math.distance(this.user.x,this.user.y,this.x,this.y)<=this.data.r?e=!this.fired:!h.Util.isValid(this.data.r)&&h.Util.isValid(this.data.w)&&this.user.x>=this.x-Math.floor(this.data.w/2)&&this.user.x<=this.x+Math.floor(this.data.w/2)&&this.user.y>=this.y-Math.floor(this.data.h/2)&&this.user.y<=this.y+Math.floor(this.data.h/2)?e=!this.fired:this.canReTrigger&&(this.fired=!1),e&&(this.fired=!0,this.callback())}else this.frameCount--},e.prototype.process=function(t,e,i){return void 0===i&&(i=""),this.visible=!1,this.checkDistance(t,e,i)},e.prototype.setClosest=function(){this.visible=!0},e.prototype.checkDistance=function(t,e,i){if(!h.Util.isValid(this.data.target)||!h.Util.isValid(i))return null;if(t.ID+"-"+e.getTag()===i)return 1;var a=function(t,e,n){if(!h.Util.isValid(n)||h.Util.inArray(e,n))return null;if(i===n)return e.length+1;var o=n.split("-"),r=t.getZone(o[0]);if(!h.Util.isValid(r))return null;for(var s=r.getMap(o[1]).locations,l=null,c=0;c<s.length;c++){var p=a(t,e.concat([n]),s[c]);(!h.Util.isValid(l)||p<l&&h.Util.isValid(p))&&(l=p)}return l};return a(this.game.prodigy.world,[t.ID+"-"+e.getTag()],this.data.target)},e.prototype.getOverlay=function(){var t,e,i,a;h.Util.isValid(this.data.r)?(t=this.x,e=this.y,i=a=this.data.r):h.Util.isValid(this.data.rect)?(t=this.x,e=this.y,i=this.data.w,a=this.data.h):(t=this.x+(this.data.x<100?-Math.floor(.5*this.data.w):this.data.x>1180?Math.floor(.5*this.data.w):0),e=this.y+(this.data.y<100?-Math.floor(.5*this.data.h):this.data.y>620?Math.floor(.5*this.data.h):0),i=this.data.w*(this.data.x<100||this.data.x>1180?1:.5),a=this.data.h*(this.data.y<100||this.data.y>620?1:.5));var n=this.game.add.graphics(0,0);return n.beginFill(0,.75),this.data.rect?n.drawRect(t-.5*i,e-.5*a,i,a):n.drawEllipse(t,e,i,a),n},e}(l.Element);e.AreaEvent=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(30),n=function(){function t(){}return Object.defineProperty(t,"MAX_SAFE_INTEGER",{get:function(){return 9007199254740991},enumerable:!0,configurable:!0}),t.get=function(t){return this.constants[t]},t.setLogLevel=function(t){this.constants["GameConstants.Build.LOG_LEVEL"]=t},t.enableDebug=function(t,e,i){void 0===i&&(i=!1),"KHQpSxH7FxdcmyceV8mjcg=="===CryptoJS.MD5(e).toString(CryptoJS.enc.Base64)&&(this.constants["GameConstants.Build.DEBUG"]=!0,this.constants["GameConstants.Build.SHOW_FPS"]=i,t.prodigy.debug.enableDebugCalls(t))},t.setDrops=function(t,e){this.constants["GameConstants.Debug.FORCE_DROPS"]=e},t.enableGameConstant=function(t,e){this.constants[t]=e},t.setNFactor=function(t){this.constants["GameConstants.Debug.SET_NFACTOR"]=t},t.setCrit=function(t){this.constants["GameConstants.Debug.SET_CRIT"]=t},t.setAttackOverride=function(t){this.constants["GameConstants.Battle.ATTACK_OVERRIDE"]=t},t.setEscapeChance=function(t){this.constants["GameConstants.Battle.ESCAPE_CHANCE"]=t},t.scaleEncounterDistance=function(t){this.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=t},t.setGameSpeed=function(t){this.constants["GameConstants.Debug.GAME_SPEED"]=t},t.setFeedLimit=function(t){this.constants["GameConstants.Debug.FEED_LIMIT"]=t},t.overrideUserRank=function(t){this.constants["GameConstants.PVP.OVERRIDE_USER_RANK"]=t},t.overrideUserPoints=function(t){this.constants["GameConstants.PVP.OVERRIDE_USER_POINTS"]=t},t.setUnlimitedWheelSpins=function(t){this.constants["GameConstants.Debug.UNLIMITED_WHEEL_SPINS"]=t},t.setWheelSpinDuration=function(t){this.constants["GameConstants.Features.Wheel.SPIN_TIME"]=t},t.setMonsterRadiusVisible=function(t){this.constants["GameConstants.Debug.MONSTER_RADIUS_VISIBLE"]=t},t.setMaintainAspectRatio=function(t){this.constants["GameConstants.Build.SCALE_MODE"]=t?2:0},t.setMaxPlayerLimit=function(e){a.Device.isTablet()?this.constants[t.Build.MAX_ON_SCREEN_PLAYERS_MOBILE]=e:this.constants[t.Build.MAX_ON_SCREEN_PLAYERS_PC]=e},t.getMaxPlayerLimit=function(){return a.Device.isTablet()?this.constants[t.Build.MAX_ON_SCREEN_PLAYERS_MOBILE]:this.constants[t.Build.MAX_ON_SCREEN_PLAYERS_PC]},t.setCharacterCreationDate=function(t,e,i,a,n){void 0===a&&(a=0),void 0===n&&(n=0);var o=new Date(t,e,i,a,n);this.constants["GameConstants.Features.SplitTests.CHARACTER_CREATION_TIME"]=o.getTime()},t.setSplitTestLane=function(t){this.constants["GameConstants.Features.SplitTests.DEBUG_LANE"]=t},t.constants=Object({"GameConstants.Build.VERSION":"2-0-0","GameConstants.Build.DEBUG":!1,"GameConstants.Build.SHOW_FPS":!1,"GameConstants.Build.SHOW_DEBUG_VALUES":[],"GameConstants.Build.MUTE_BGM":!1,"GameConstants.Build.FRAMEWORK_LOG_LEVEL":2,"GameConstants.Build.LOG_LEVEL":12,"GameConstants.Build.ASSETS_LOCATION":"https://cdn.prodigygame.com/game/assets/","GameConstants.Build.TELEPORT":"","GameConstants.Build.QUEST":[],"GameConstants.Build.ITEM_TYPE":[],"GameConstants.Build.KILL_GORE":!1,"GameConstants.Build.EASY_MODE":!1,"GameConstants.Build.MEMBERSHIP":!1,"GameConstants.Build.SCALE_MODE":0,"GameConstants.Build.ADD_PLAYER_FPS_THRESHOLD":20,"GameConstants.Build.MAX_ON_SCREEN_PLAYERS_PC":30,"GameConstants.Build.MAX_ON_SCREEN_PLAYERS_MOBILE":20,"GameConstants.Build.MIN_ON_SCREEN_PLAYERS":5,"GameConstants.Tower.MAX_FREE_MEMBER_FLOOR":5,"GameConstants.Debug.AUTOSAVE_ENABLED":!0,"GameConstants.Debug.POPUPS_ENABLED":!0,"GameConstants.Debug.PLAYER_CARDS_ENABLED":!0,"GameConstants.Debug.DISABLE_DAILY_BONUS":!1,"GameConstants.Debug.ENABLE_MAP":!1,"GameConstants.Debug.AUTO_LOGIN":[],"GameConstants.Debug.GET_PET":[],"GameConstants.Debug.SET_LEVEL":0,"GameConstants.Debug.DISABLE_ACHIEVEMENTS":!1,"GameConstants.Debug.GET_GOLD":0,"GameConstants.Debug.GET_SPELL":0,"GameConstants.Debug.COMPLETE_TUTORIAL":!1,"GameConstants.Debug.FORCE_DROPS":[],"GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE":1,"GameConstants.Debug.WIZARDS_ENABLED":!0,"GameConstants.Debug.AUTO_RESOLVE_BATTLES_ENABLED":!1,"GameConstants.Debug.GAME_SPEED":1,"GameConstants.Debug.FSM_LOGGING":!1,"GameConstants.Debug.DEBUG_LOCALIZATION":!1,"GameConstants.Debug.VERBOSE_LOCALIZATION":!1,"GameConstants.Debug.AUTO_RESOLVE_TOWER_BATTLES_ENABLED":!1,"GameConstants.Debug.EDUCATION_ENABLED":!0,"GameConstants.Debug.AUTO_ANSWER_CORRECTLY":!1,"GameConstants.Debug.UNLIMITED_WHEEL_SPINS":!1,"GameConstants.Debug.SKIP_MEMBERSHIP_WEBSITE":!1,"GameConstants.Debug.GIVES_MEMBERSHIP_AFTER_SKIP_WEBSITE":!1,"GameConstants.Debug.MONSTER_RADIUS_VISIBLE":!1,"GameConstants.Mailer.TEST_MAIL":!1,"GameConstants.FriendsList.TEST_FRIENDS_LIST":!1,"GameConstants.Features.ENABLE_HOUSE_MOVING":!0,"GameConstants.Features.Wheel.COOLDOWN":5,"GameConstants.Features.Wheel.DEFAULT_SPINS":1,"GameConstants.Features.Wheel.MEMBER_SPINS":2,"GameConstants.Features.Wheel.SPIN_TIME":15e3,"GameConstants.Features.SplitTests.PLAY_AT_HOME":!0,"GameConstants.Features.SplitTests.CHARACTER_CREATION_TIME":0,"GameConstants.Features.TrialMembership.RELEASE_TIME":152532e7,"GameConstants.Features.TrialMembership.CREATION_TIME_RESTRICTED":!0,"GameConstants.Battle.VALID_PARENT_EMAIL_STARS_PERCENTAGE":.05,"GameConstants.Battle.MEMBER_STARS_PERCENTAGE":.5,"GameConstants.Battle.STARS_EARNED_PER_OPPONENT":100,"GameConstants.Battle.MAX_NUM_PETS":1,"GameConstants.Battle.ATTACK_OVERRIDE":-1,"GameConstants.Battle.ESCAPE_CHANCE":.75,"GameConstants.Inactivity.DIALOG_TIMER_SECONDS":1500,"GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS":300,"GameConstants.Inactivity.CANNOT_CONNECT_TIMER_SECONDS":120,"GameConstants.Inactivity.NETWORK_BOOT_TIMER_SECONDS":6e4,"GameConstants.Audio.DEFAULT_SOUND_VOLUME":.9,"GameConstants.Audio.DEFAULT_MUSIC_VOLUME":.15,"GameConstants.Audio.DEFAULT_VOICE_VOLUME":1,"GameConstants.LocationSelection.NONE":"none","GameConstants.LocationSelection.HOME":"home","GameConstants.LocationSelection.SCHOOL":"school","GameConstants.PVP.OVERRIDE_USER_RANK":null,"GameConstants.PVP.OVERRIDE_USER_POINTS":null,"GameConstants.PVP.OVERRIDE_USER_LEADERBOARD":null}),t.Build={ADD_PLAYER_FPS_THRESHOLD:"GameConstants.Build.ADD_PLAYER_FPS_THRESHOLD",ASSETS_LOCATION:"GameConstants.Build.ASSETS_LOCATION",DEBUG:"GameConstants.Build.DEBUG",EASY_MODE:"GameConstants.Build.EASY_MODE",ITEM_TYPE:"GameConstants.Build.ITEM_TYPE",KILL_GORE:"GameConstants.Build.KILL_GORE",FRAMEWORK_LOG_LEVEL:"GameConstants.Build.FRAMEWORK_LOG_LEVEL",LOG_LEVEL:"GameConstants.Build.LOG_LEVEL",MAX_ON_SCREEN_PLAYERS_MOBILE:"GameConstants.Build.MAX_ON_SCREEN_PLAYERS_MOBILE",MAX_ON_SCREEN_PLAYERS_PC:"GameConstants.Build.MAX_ON_SCREEN_PLAYERS_PC",MEMBERSHIP:"GameConstants.Build.MEMBERSHIP",MIN_ON_SCREEN_PLAYERS:"GameConstants.Build.MIN_ON_SCREEN_PLAYERS",MUTE_BGM:"GameConstants.Build.MUTE_BGM",QUEST:"GameConstants.Build.QUEST",SHOW_DEBUG_VALUES:"GameConstants.Build.SHOW_DEBUG_VALUES",SHOW_FPS:"GameConstants.Build.SHOW_FPS",TELEPORT:"GameConstants.Build.TELEPORT",VERSION:"GameConstants.Build.VERSION",SCALE_MODE:"GameConstants.Build.SCALE_MODE"},t.Tower={MAX_FREE_MEMBER_FLOOR:"GameConstants.Tower.MAX_FREE_MEMBER_FLOOR"},t.Debug={AUTOSAVE_ENABLED:"GameConstants.Debug.AUTOSAVE_ENABLED",AUTO_ANSWER_CORRECTLY:"GameConstants.Debug.AUTO_ANSWER_CORRECTLY",AUTO_LOGIN:"GameConstants.Debug.AUTO_LOGIN",AUTO_RESOLVE_BATTLES_ENABLED:"GameConstants.Debug.AUTO_RESOLVE_BATTLES_ENABLED",AUTO_RESOLVE_TOWER_BATTLES_ENABLED:"GameConstants.Debug.AUTO_RESOLVE_TOWER_BATTLES_ENABLED",COMPLETE_TUTORIAL:"GameConstants.Debug.COMPLETE_TUTORIAL",DEBUG_LOCALIZATION:"GameConstants.Debug.DEBUG_LOCALIZATION",DISABLE_ACHIEVEMENTS:"GameConstants.Debug.DISABLE_ACHIEVEMENTS",DISABLE_DAILY_BONUS:"GameConstants.Debug.DISABLE_DAILY_BONUS",EDUCATION_ENABLED:"GameConstants.Debug.EDUCATION_ENABLED",ENABLE_MAP:"GameConstants.Debug.ENABLE_MAP",FORCE_DROPS:"GameConstants.Debug.FORCE_DROPS",FSM_LOGGING:"GameConstants.Debug.FSM_LOGGING",GAME_SPEED:"GameConstants.Debug.GAME_SPEED",FEED_LIMIT:"GameConstants.Debug.FEED_LIMIT",GET_GOLD:"GameConstants.Debug.GET_GOLD",GET_PET:"GameConstants.Debug.GET_PET",GET_SPELL:"GameConstants.Debug.GET_SPELL",GOD_MODE_ENABLED:"GameConstants.Debug.GOD_MODE_ENABLED",MONSTERS_ENABLED:"GameConstants.Debug.MONSTERS_ENABLED",PLAYER_CARDS_ENABLED:"GameConstants.Debug.PLAYER_CARDS_ENABLED",POPUPS_ENABLED:"GameConstants.Debug.POPUPS_ENABLED",SCALE_ENCOUNTER_DISTANCE:"GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE",SET_CRIT:"GameConstants.Debug.SET_CRIT",SET_LEVEL:"GameConstants.Debug.SET_LEVEL",SET_NFACTOR:"GameConstants.Debug.SET_NFACTOR",SHOW_COLLISIONS:"GameConstants.Debug.SHOW_COLLISIONS",VERBOSE_LOCALIZATION:"GameConstants.Debug.VERBOSE_LOCALIZATION",WARP_MODE_ENABLED:"GameConstants.Debug.WARP_MODE_ENABLED",WIZARDS_ENABLED:"GameConstants.Debug.WIZARDS_ENABLED",UNLIMITED_WHEEL_SPINS:"GameConstants.Debug.UNLIMITED_WHEEL_SPINS",SKIP_MEMBERSHIP_WEBSITE:"GameConstants.Debug.SKIP_MEMBERSHIP_WEBSITE",GIVES_MEMBERSHIP_AFTER_SKIP_WEBSITE:"GameConstants.Debug.GIVES_MEMBERSHIP_AFTER_SKIP_WEBSITE",MONSTER_RADIUS_VISIBLE:"GameConstants.Debug.MONSTER_RADIUS_VISIBLE"},t.Mailer={TEST_MAIL:"GameConstants.Mailer.TEST_MAIL"},t.FriendsList={TEST_FRIENDS_LIST:"GameConstants.FriendsList.TEST_FRIENDS_LIST"},t.Features={ENABLE_HOUSE_MOVING:"GameConstants.Features.ENABLE_HOUSE_MOVING",SplitTests:{DEBUG_LANE:"GameConstants.Features.SplitTests.DEBUG_LANE",PLAY_AT_HOME:"GameConstants.Features.SplitTests.PLAY_AT_HOME",CHARACTER_CREATION_TIME:"GameConstants.Features.SplitTests.CHARACTER_CREATION_TIME"},Wheel:{COOLDOWN:"GameConstants.Features.Wheel.COOLDOWN",DEFAULT_SPINS:"GameConstants.Features.Wheel.DEFAULT_SPINS",MEMBER_SPINS:"GameConstants.Features.Wheel.MEMBER_SPINS",SPIN_TIME:"GameConstants.Features.Wheel.SPIN_TIME"}},t.Battle={ATTACK_OVERRIDE:"GameConstants.Battle.ATTACK_OVERRIDE",ESCAPE_CHANCE:"GameConstants.Battle.ESCAPE_CHANCE",MAX_NUM_PETS:"GameConstants.Battle.MAX_NUM_PETS",VALID_PARENT_EMAIL_STARS_PERCENTAGE:"GameConstants.Battle.VALID_PARENT_EMAIL_STARS_PERCENTAGE",MEMBER_STARS_PERCENTAGE:"GameConstants.Battle.MEMBER_STARS_PERCENTAGE",STARS_EARNED_PER_OPPONENT:"GameConstants.Battle.STARS_EARNED_PER_OPPONENT"},t.Inactivity={CANNOT_CONNECT_TIMER_SECONDS:"GameConstants.Inactivity.CANNOT_CONNECT_TIMER_SECONDS",DIALOG_TIMER_SECONDS:"GameConstants.Inactivity.DIALOG_TIMER_SECONDS",LOG_OUT_TIMER_SECONDS:"GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS",NETWORK_BOOT_TIMER_SECONDS:"GameConstants.Inactivity.NETWORK_BOOT_TIMER_SECONDS"},t.Audio={DEFAULT_MUSIC_VOLUME:"GameConstants.Audio.DEFAULT_MUSIC_VOLUME",DEFAULT_SOUND_VOLUME:"GameConstants.Audio.DEFAULT_SOUND_VOLUME",DEFAULT_VOICE_VOLUME:"GameConstants.Audio.DEFAULT_VOICE_VOLUME"},t.LocationSelection={HOME:"GameConstants.LocationSelection.HOME",NONE:"GameConstants.LocationSelection.NONE",SCHOOL:"GameConstants.LocationSelection.SCHOOL"},t.PVP={OVERRIDE_USER_POINTS:"GameConstants.PVP.OVERRIDE_USER_POINTS",OVERRIDE_USER_RANK:"GameConstants.PVP.OVERRIDE_USER_RANK"},t}();e.GameConstants=n,e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.ShowDrops="Prodigy.Events.VictoryManager.SHOW_DROPS",t.Complete="Prodigy.Events.VictoryManager.COMPLETE"}(e.EVictoryManagerEvents||(e.EVictoryManagerEvents={})),function(t){t.AddChild="Prodigy.Events.Screen.ADD_CHILD",t.GetLayer="Prodigy.Events.Screen.GET_LAYER",t.EnableBackground="Prodigy.Events.Screen.ENABLE_BACKGROUND",t.EnableContent="Prodigy.Events.Screen.ENABLE_CONTENT"}(e.EScreenEvents||(e.EScreenEvents={})),function(t){t.PlayerAdded="Prodigy.Events.WalkableScreen.PLAYER_ADDED",t.PlayerUpdate="Prodigy.Events.WalkableScreen.PLAYER_UPDATED"}(e.EWalkableScreenEvents||(e.EWalkableScreenEvents={})),function(t){t.Done="Prodigy.Events.FlyingStars.DONE",t.PippetStarsDone="Prodigy.Events.FlyingPippetStars.DONE",t.MemberStarsDone="Prodigy.Events.FlyingMemberStars.DONE"}(e.EFlyingStarsEvents||(e.EFlyingStarsEvents={})),function(t){t.Done="Prodigy.Events.OpenJar.DONE"}(e.EOpenMemberJarEvents||(e.EOpenMemberJarEvents={})),function(t){t.GetIsRunning="Prodigy.Events.Battle.GET_IS_RUNNING",t.PopupClosed="Prodigy.Events.Battle.POPUP_CLOSED",t.EndBattle="Prodigy.Events.Battle.END_BATTLE",t.ApplySlotBonus="Prodigy.Events.Battle.APPLY_SLOT_BONUS",t.PvpComboIncrease="Prodigy.Events.Battle.PVP_COMBO_INCREASE",t.PvpComboBreak="Prodigy.Events.Battle.PVP_COMBO_BREAK",t.PvpUpdate="Prodigy.Events.Battle.PVP_UPDATE",t.PvpComboMeterMoveIn="Prodigy.Events.Battle.PVP_COMBO_METRE_MOVE_IN",t.PvpComboMeterMoveOut="Prodigy.Events.Battle.PVP_COMBO_METRE_MOVE_OUT"}(e.EBattleEvents||(e.EBattleEvents={})),function(t){t.AnimationDone="Prodigy.Events.Creature.ANIMATION_DONE",t.LevelUp="Prodigy.Events.Creature.LEVEL_UP",t.StarsAdded="Prodigy.Events.Creature.STARS_ADDED",t.PlayerLoaded="Prodigy.Events.Creature.PLAYER_LOADED",t.LevelUpAnimation="Prodigy.Events.Creature.LEVEL_UP_ANIMATION",t.ProcessedAllEvents="Prodigy.Events.Creature.PROCESSED_ALL_EVENTS",t.EvolveStart="Prodigy.Events.Creature.EVOLVE_START",t.EvolveEnd="Prodigy.Events.Creature.EVOLVE_END"}(e.ECreatureEvents||(e.ECreatureEvents={})),function(t){t.ShowPippetBattleBonus="Prodigy.Events.Chest.SHOW_PIPPET_BATTLE_BONUS",t.ShowMemberStars="Prodigy.Events.Chest.SHOW_MEMBER_STARS"}(e.EChestEvents||(e.EChestEvents={})),function(t){t.EnableDynamicLayer="Prodigy.Events.Map.ENABLE_DYNAMIC_LAYER"}(e.EMapEvents||(e.EMapEvents={})),function(t){t.Setup="Prodigy.Events.NetworkHandlers.SETUP"}(e.ENetworkHandlerEvents||(e.ENetworkHandlerEvents={})),function(t){t.OpenChat="Prodigy.Events.HUD.OPEN_CHAT",t.CloseChat="Prodigy.Events.HUD.CLOSE_CHAT",t.SetClickedWorldMap="Prodigy.Events.HUD.SET_CLICKED_WORLD_MAP",t.HideChatNotif="Prodigy.Events.HUD.HIDE_CHAT_NOTIF"}(e.EHUDEvents||(e.EHUDEvents={})),function(t){t.GetTotalMail="Prodigy.Events.Mailer.GET_TOTAL_MAIL",t.GetTotalMailFailure="Prodigy.Events.Mailer.GET_TOTAL_MAIL_FAILURE",t.GetAllMail="Prodigy.Events.Mailer.GET_ALL_MAIL",t.GetAllMailSuccess="Prodigy.Events.Mailer.GET_ALL_MAIL_SUCCESS",t.GetAllMailFailure="Prodigy.Events.Mailer.GET_ALL_MAIL_FAILURE",t.MarkAsRead="Prodigy.Events.Mailer.MARK_AS_READ",t.MarkAsReadFailure="Prodigy.Events.Mailer.MARK_AS_READ_FAILED",t.DeleteMail="Prodigy.Events.Mailer.DELETE_MAIL",t.DeleteMailSuccess="Prodigy.Events.Mailer.DELETE_MAIL_SUCCESSFUL",t.DeleteMailFailure="Prodigy.Events.Mailer.DELETE_MAIL_FAILURE",t.UpdateMailCounters="Prodigy.Events.Mailer.UPDATE_MAIL_COUNTERS",t.ShowIndicator="Prodigy.Events.Mailer.SHOW_INDICATOR",t.GiftBoxOpened="Prodigy.Events.Mailer.GIFT_BOX_OPENED",t.CloseList="Prodigy.Events.Mailer.CLOSE_LIST"}(e.EMailerEvents||(e.EMailerEvents={})),function(t){t.GetGiftBoxes="Prodigy.Events.GiftBoxes.GET_GIFT_BOXES",t.UpdateConjureCubeCount="Prodigy.Events.GiftBoxes.UPDATE_CONJURE_CUBE_COUNT"}(e.EGiftBoxEvents||(e.EGiftBoxEvents={})),function(t){t.OnGetDataComplete="Prodigy.Events.Boss.ON_GET_DATA_COMPLETE"}(e.EBossEvents||(e.EBossEvents={})),function(t){t.Update="Prodigy.Events.GameObj.UPDATE",t.PlayerInitialized="Prodigy.Events.GameObj.PLAYER_INITIALIZED"}(e.EGameObjEvents||(e.EGameObjEvents={})),function(t){t.Loaded="Prodigy.Events.Boot.LOADED"}(e.EBootEvents||(e.EBootEvents={})),function(t){t.WorkerLoadComplete="Prodigy.Events.Loading.WORKER_LOAD_COMPLETE"}(e.ELoadingEvents||(e.ELoadingEvents={})),function(t){t.ClickedHouseIcon="Prodigy.Events.House.CLICKED_HOUSE_ICON",t.OpenEditor="Prodigy.Events.House.OPEN_EDITOR",t.CloseEditor="Prodigy.Events.House.CLOSE_EDITOR"}(e.EHouseEvents||(e.EHouseEvents={})),function(t){t.InkBlasted="Prodigy.Events.ShipwreckShore.INK_BLASTED",t.InkGroupDestroyed="Prodigy.Events.ShipwreckShore.INK_GROUP_DESTROYED"}(e.EShipwreckShoreEvents||(e.EShipwreckShoreEvents={})),function(t){t.AutoClick="Prodigy.Events.Debug.AUTO_CLICK",t.AutoClickUI="Prodigy.Events.Debug.AUTO_CLICK_UI",t.AutoClickScene="Prodigy.Events.Debug.AUTO_CLICK_SCENE",t.AutoClickList="Prodigy.Events.Debug.AUTO_CLICK_LIST",t.GetUIElement="Prodigy.Events.Debug.GET_UI_ELEMENT"}(e.EDebugEvents||(e.EDebugEvents={})),function(t){t.OnMouseWheel="Prodigy.Events.Input.ON_MOUSE_WHEEL"}(e.EInputEvents||(e.EInputEvents={})),function(t){t.GotFriendsList="Prodigy.Events.FriendsList.GOT_FRIENDS_LIST",t.GotFriendsListAppearance="Prodigy.Events.FriendsList.GOT_FRIENDS_LIST_APPEARANCE",t.GetTotalFriendRequests="Prodigy.Events.FriendsList.GET_TOTAL_FRIEND_REQUESTS",t.GetTotalFriendRequestsFailure="Prodigy.Events.FriendsList.GET_TOTAL_FRIEND_REQUESTS_FAILURE",t.ClearFriendRequestsCache="Prodigy.Events.FriendsList.CLEAR_FRIEND_REQUESTS_CACHE",t.GetFriendRequestList="Prodigy.Events.FriendsList.GET_FRIEND_REQUEST_LIST",t.GotFriendRequestList="Prodigy.Events.FriendsList.GOT_FRIEND_REQUEST_LIST",t.GetFriendList="Prodigy.Events.FriendsList.GET_FRIENDS_LIST",t.SetRequests="Prodigy.Events.FriendsList.SET_REQUESTS",t.SendRequest="Prodigy.Events.FriendsList.SEND_REQUEST",t.CancelRequest="Prodigy.Events.FriendsList.CANCEL_REQUEST",t.AcceptRequest="Prodigy.Events.FriendsList.ACCEPT_REQUEST",t.RejectRequest="Prodigy.Events.FriendsList.REJECT_REQUEST",t.RequestSent="Prodigy.Events.FriendsList.REQUEST_SENT",t.RequestCancelled="Prodigy.Events.FriendsList.REQUEST_CANCELLED",t.RequestReceived="Prodigy.Events.FriendsList.REQUEST_RECEIVED",t.RequestAccepted="Prodigy.Events.FriendsList.REQUEST_ACCEPTED",t.RequestRejected="Prodigy.Events.FriendsList.REQUEST_REJECTED",t.RemoveFriend="Prodigy.Events.FriendsList.REMOVE_FRIEND",t.FriendRemoved="Prodigy.Events.FriendsList.FRIEND_REMOVED",t.GetFriendshipStatus="Prodigy.Events.FriendsList.GET_FRIENDSHIP_STATUS",t.GotFriendshipStatus="Prodigy.Events.FriendsList.GOT_FRIENDSHIP_STATUS",t.FriendsAppearanceUpdated="Prodigy.Events.FriendsList.FRIENDS_APPEARANCE_UPDATED",t.IllogicalRequestAction="Prodigy.Events.FriendsList.ILLOGICAL_REQUEST_ACTION"}(e.EFriendsListEvents||(e.EFriendsListEvents={})),function(t){t.MovePlayer="Prodigy.Events.PlayerLocomotion.MOVE_PLAYER",t.StopPlayer="Prodigy.Events.PlayerLocomotion.STOP_PLAYER",t.GetTarget="Prodigy.Events.PlayerLocomotion.GET_TARGET"}(e.EPlayerLocomotionEvents||(e.EPlayerLocomotionEvents={})),function(t){t.SetBackgroundPanelTileDimensions="Prodigy.Events.LocationPage.SET_BACKGROUND_PANEL_TILE_DIMENSIONS",t.GetBackgroundPanelTileDimensions="Prodigy.Events.LocationPage.GET_BACKGROUND_PANEL_TILE_DIMENSIONS"}(e.EAccountCreateEvents||(e.EAccountCreateEvents={})),function(t){t.TabButtonClicked="Prodigy.Events.UI.TAB_BUTTON_CLICKED",t.TabSelected="Prodigy.Events.UI.TAB_SELECTED",t.ChildAdded="Prodigy.Events.UI.CHILD_ADDED",t.ChildRemoved="Prodigy.Events.UI.CHILD_REMOVED",t.MenuOpened="Prodigy.Events.UI.MENU_OPENED",t.MountTogglePressed="Prodigy.Events.UI.MOUNT_TOGGLE_PRESSED"}(e.EUIEvents||(e.EUIEvents={})),function(t){t.GotTitans="Prodigy.Events.Titan.GOT_TITANS",t.GotTitan="Prodigy.Events.Titan.GOT_TITAN",t.Catapult="Prodigy.Events.Titan.CATAPULT"}(e.ETitanEvents||(e.ETitanEvents={})),function(t){t.PlayerAppearanceUpdated="Prodigy.Events.PlayerContainer.PLAYER_APPEARANCE_UPDATED",t.NewAnimationStateSet="Prodigy.Events.PlayerContainer.NEW_ANIMATION_STATE_SET",t.PlayerEquipmentEquip="Prodigy.Events.PlayerContainer.PLAYER_EQUIPMENT_EQUIP ",t.PlayerEquipmentUnequip="Prodigy.Events.PlayerContainer.PLAYER_EQUIPMENT_UNEQUIP "}(e.EPlayerContainerEvents||(e.EPlayerContainerEvents={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(2),n=i(0),o=function(){function t(){}return t.parseData=function(e){t.data=e;var i={outfit:4e-4,weapon:5e-4,hat:.001,boots:.001,item:.025,currency:1},a=[1,.75,.5,.25,.1];for(var o in t.data)if(t.data.hasOwnProperty(o))for(var r=t.data[o],s=0;s<r.length;s++){var l=r[s];if(t.itemMap[o+"-"+l.ID]=l,n.Util.isValid(l.data.drop)&&l.data.drop>0){var h=0;i.hasOwnProperty(o)&&(h=i[o]);var c=1;n.Util.isValid(l.data.rarity)&&l.data.rarity<a.length&&(c=a[l.data.rarity]);var p=h*c*l.data.drop;if(p>0){var u={type:o,ID:l.ID,R:p};t.drops.push(u)}}}},t.getItem=function(e,i){var a=t.itemMap[e+"-"+i];return n.Util.isValid(a)?a:null},t.doesExist=function(e,i){return null!==t.getItem(e,i)},t.getRandomItem=function(e){var i=t.data[e];return n.Util.isValid(i)&&i.length>0?i[Math.floor(i.length*Math.random())]:null},t.getItemDrops=function(e){var i=t.drops.slice();n.Util.isValid(e)&&(i=i.concat(e));for(var a=[],o=0;o<i.length;o++){var r=i[o];n.Util.isValid(r)&&Math.random()<r.R&&a.push(r)}return a},t.getItemsWithFilter=function(e,i){return t.data.hasOwnProperty(e)?t.data[e].filter(i):[]},t.getCategoryItems=function(e){return t.data[e]},t.getItemData=function(e,i){var a=t.getItem(e,i);return n.Util.isValid(a)?a.data:("gold"!==e&&n.Util.log("Item Data not found for type: "+e+" ID: "+i,n.Util.ERROR),null)},t.getItemMetadata=function(e,i){var a=t.itemMap[e+"-"+i];return n.Util.isValid(a)?a.metadata:null},t.getIconAtlas=function(e){if(!n.Util.isValid(e))return"atlas-21";if(n.Util.isValid(e.metadata)&&n.Util.isValid(e.metadata.iconAtlas))return e.metadata.iconAtlas;if(n.Util.isValid(e.iconAtlas))return e.iconAtlas;if(n.Util.isValid(e.ID)&&n.Util.isValid(e.type)){var i=null;if(n.Util.isValid(e.metadata)&&n.Util.isValid(e.metadata.icon)&&n.Util.isValid(e.metadata.icon.type)){if(i=t.getItem(e.metadata.icon.type,e.metadata.icon.ID).metadata,n.Util.isValid(i)&&n.Util.isValid(i.iconAtlas))return i.iconAtlas}else{var a=t.getItem(e.type,e.ID);if(i=n.Util.isValid(a)?a.metadata:null,n.Util.isValid(i)&&n.Util.isValid(i.iconAtlas))return i.iconAtlas;if(n.Util.isValid(i)&&n.Util.isValid(i.vIcon)||"storeTab"===e.type)return"icon-"+e.type+"-"+e.ID}}return"atlas-21"},t.getIconFrame=function(t){return"string"!=typeof t?n.Util.isValid(t.ID)?""+t.ID:null:t},t.getItems=function(e,i){return t.getItemsWithFilter(e,function(t){return n.Util.isValid(t.data.drop)&&t.data.drop>0&&n.Util.isValid(t.data.rarity)&&t.data.rarity===i})},t.getRawItems=function(e,i){return n.Util.isValid(i)?t.getItemsWithFilter(e,function(t){return n.Util.isValid(t.data.rarity)&&t.data.rarity===i}):t.data.hasOwnProperty(e)?t.data[e]:[]},t.getCost=function(e,i){var a=t.getItem(e,i).data;return n.Util.isValid(a)&&n.Util.isValid(a.cost)?a.cost[0]:{type:"currency",ID:1,N:250}},t.getRandomizedDropsFromCreatures=function(t,e,i){var o=[],r=[];if(n.Util.isValid(t))for(var s=void 0,l=0;l<t.length;l++)"hat"===(s=t[l]).type||"outfit"===s.type||"weapon"===s.type||"boots"===s.type||"relic"===s.type?0===r.length&&r.push(s):o.push(s);if(i){var h=a.GameConstants.get("GameConstants.Debug.FORCE_DROPS").concat(e.getDrops()),c=4;for(l=0;l<h.length;l++)"hat"===h[l].type||"outfit"===h[l].type||"weapon"===h[l].type||"boots"===h[l].type||"relic"===h[l].type?0===r.length&&r.push(h[l]):0!==c&&("item"!==h[l].type&&"currency"!==h[l].type||c--,o.push(h[l]))}return r.length>0&&o.push(r[0]),o},t.getRangeByAmount=function(e,i,a){for(var o=[],r=i;r<=i+a-1;r++){var s=t.data[e][r];n.Util.isValid(s)&&o.push(s)}return o},t.getItemCount=function(e){return n.Util.isValid(t.data[e])?t.data[e].length:0},t.itemMap={},t.drops=[],t}();e.Items=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(3),s=i(0),l=function(t){function e(e,i,a,n){var o=t.call(this,e,i)||this;return s.Util.isValid(a)&&(o.x=a),s.Util.isValid(n)&&(o.y=n),o}return n(e,t),e.prototype.setRenderState=function(t,e){this.renderOnly=t,this.tintElement=e},e.prototype.showTooltip=function(t,e){if(this.hasTooltip()&&(this.tooltip.destroy(),this.tooltip=null),s.Util.isValid(t)){this.tooltip=this.game.prodigy.create.element(this,e);var i=this.tooltip.add(this.game.prodigy.create.sprite(30,0,"atlas-18","tooltip"));i.alpha=.9,i.width=300,i.height=50,this.game.prodigy.create.font(this.tooltip,90,11,t,{width:230,align:"center"}),i=this.tooltip.add(this.game.prodigy.create.sprite(0,0,"atlas-21","type")),this.game.add.tween(i).to({x:10},1e3,Phaser.Easing.Quadratic.InOut,!0,0,o.GameConstants.MAX_SAFE_INTEGER,!0)}},e.prototype.hasTooltip=function(){return s.Util.isValid(this.tooltip)},e.prototype.highlight=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0),this.isHighlighted()&&(this.arrow.destroy(),this.arrow=null),t&&(this.arrow=this.add(this.game.prodigy.create.sprite(0,0,"atlas-21","help")),this.arrow.x=e+Math.floor(this.width/2),this.arrow.y=i-this.arrow.height+10,this.game.add.tween(this.arrow).to({y:this.arrow.y+25},400,Phaser.Easing.Quadratic.InOut,!0,0,o.GameConstants.MAX_SAFE_INTEGER,!0))},e.prototype.isHighlighted=function(){return s.Util.isValid(this.arrow)},e.prototype.destroy=function(e,i){this.unregisterGetElementListener(),t.prototype.destroy.call(this,e,i)},e.prototype.registerGetElementListener=function(){s.Util.isValid(o.GameConstants.get("GameConstants.Build.DEBUG"))&&this.game.broadcaster.addAppListener(r.EDebugEvents.GetUIElement,this.onGetUIElement.bind(this),this,this.game,!1)},e.prototype.unregisterGetElementListener=function(){s.Util.isValid(this.game)&&this.game.broadcaster.removeAppListener(r.EDebugEvents.GetUIElement,this,this.game)},e.prototype.onGetUIElement=function(t){return s.Util.isValid(t)&&this instanceof t?this:null},e}(Phaser.Group);e.Element=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e,i,a,n,o,r,s,l,h,c,p,u,d){void 0===p&&(p=null),void 0===u&&(u=null),void 0===d&&(d=null),this.collectionMaps=null,this.zone=t,this.assets=e,this.ID=i,this.descKey=a,this.descCacheKey=a,this.req=n,this.area=o,this.areaCache=o,this.onStart=r,this.onProc=s,this.onComplete=l,this.reward=h,this.chain=c||!1,this.questGiver=p,this.questReceiver=u,this.alternateOnStart=d}return t.prototype.setup=function(t,e,i){return{}},t.prototype.start=function(t,e,i){return{}},t.prototype.process=function(t,e,i){},t.prototype.update=function(t,e,i){},t}();e.Quest=a},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(3),s=i(0),l=function(t){function e(e,i,a,n,o,r,l,h){var c=t.call(this)||this;return c.tag="",c.isScene=!1,c.nameKey="",c.x=0,c.y=0,c.battleBG="",c.isQuestHub=!1,c.locations=[],c.questParams={},c.mapMonsters=[],c.tag=i,c.nameKey=a,c.zoneName=e.ID+"-"+i,c.x=n,c.y=o,c.file="map-"+c.zoneName.toLowerCase(),c.onFaint=e.onFaint,c.zone=e,c.battleBG=e.battleBG,s.Util.isValid(h)?c.file=h.toLowerCase():c.file="map-"+c.zoneName.toLowerCase(),c.isQuestHub=e.questHub.indexOf(i)>=0,c.assets=[c.file,"atlas-110"].concat(l),c.locations=r,c}return n(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.getName()},enumerable:!0,configurable:!0}),e.prototype.getName=function(){return this.zone.game.prodigy.gameContainer.Localizer.getText(this.nameKey)},e.prototype.getLocation=function(){return this.zoneName},e.prototype.setup=function(t,e,i){void 0===i&&(i={}),this.questParams=s.Util.isValid(i)?i:{};var a=t.prodigy.bounty.hasBounty(this.zone.ID,this.tag);s.Util.isValid(a)&&t.prodigy.bounty.placeBounty(a,e,this),this.zone.debugBounties&&this.showAllBounties(t,e),this.zone.hasDaily(this)&&s.Util.isValid(this.zone.monsters)&&this.zone.placeDaily(this,t,e),this.game=t,this.screen=e,this.game.broadcaster.addAppListener(r.EMapEvents.EnableDynamicLayer,this.toggleDynamicLayer.bind(this),this,null,!0)},e.prototype.start=function(t,e,i){var a=s.Util.isValid(i)?i:this.zone.bgmID;t.prodigy.audio.playBGM(a,!0),t.prodigy.audio.resumeBGM()},e.prototype.process=function(t,e,i){},e.prototype.update=function(t){},e.prototype.getTag=function(){return this.tag},e.prototype.cleanup=function(){},e.prototype.processDynamicLayers=function(t,e){for(var i=0,a=this.dynamicSprites;i<a.length;i++){var n=a[i];s.Util.isValid(n.collisionTile)&&n.collisionTile?n.destroy():n.isAbove?(e.above.bringToTop(this.dynamicLayerContainers["element-"+n.dynamicToggle].above),this.dynamicLayerContainers["element-"+n.dynamicToggle].above.add(n)):(e.below.bringToTop(this.dynamicLayerContainers["element-"+n.dynamicToggle].below),this.dynamicLayerContainers["element-"+n.dynamicToggle].below.add(n))}},e.prototype.addAreaEvent=function(t,e,i,a,n,o,r,l,h,c){return void 0===h&&(h=!1),void 0===c&&(c=!1),i.target=a,!s.Util.isValid(r)&&t.prodigy.classModeController.isClassMode([3])&&t.prodigy.classModeController.isLockedZone(a)?(i.canReTrigger=!0,e.addAreaEvent(i,t.prodigy.classModeController.onClassMode.bind(t.prodigy.classModeController,a),l,h,c)):s.Util.isValid(r)?e.addAreaEvent(i,r,l,h,c):e.addAreaEvent(i,t.prodigy.world.teleport.bind(t.prodigy.world,a,n,o),l,h,c)},e.prototype.addChest=function(t,e,i,a,n,o,r,l){return s.Util.isValid(this.questParams.enableChests)&&!this.questParams.enableChests?null:e.addChest(i,a,n,o,r,l)},e.prototype.addMonster=function(t,i,a,n,r,l,h,c,p,u){void 0===c&&(c=!1),void 0===p&&(p=null),void 0===u&&(u=!1);var d=o.GameConstants.get("GameConstants.Debug.MONSTERS_ENABLED");if(s.Util.isValid(d)&&!d||s.Util.isValid(this.questParams.enableMonsters)&&!this.questParams.enableMonsters)return null;if(s.Util.isValid(this.questParams.overrideMonsterIDWithPippet)&&a===this.questParams.overrideMonsterIDWithPippet)return null;var g=s.Util.copyObject(h);if(s.Util.isValid(this.mapMonsters[a])||(this.mapMonsters[a]={}),!c&&this.mapMonsters[a].respawn>(new Date).getTime())return null;g.onEnd=s.Util.isValid(g.onEnd)?g.onEnd:this.zoneName,g.onFaint=s.Util.isValid(g.onFaint)?g.onFaint:this.onFaint,g.screen=s.Util.isValid(g.screen)?g.screen:this.battleBG,s.Util.isValid(this.mapMonsters[a].data)&&!u&&(g.encounter=[this.mapMonsters[a].data]);var y=i.addMonster(a,n,r,l,g,e.resetMonsterRespawn.bind(this,this.mapMonsters[a],g,12e4),s.Util.isValid(this.mapMonsters[a].respawn),p);return this.mapMonsters[a].data=y.monsterData,delete this.mapMonsters[a].respawn,y},e.resetMonsterRespawn=function(t,e,i){t.monsterData=null,t.respawn=(new Date).getTime()+i,s.Util.isValid(e)&&(t.data=null,s.Util.isValid(e.onEnc)&&e.onEnc())},e.prototype.addPippet=function(t,e,i,a,n){var o=this.questParams.enableMonsters||!1;s.Util.isValid(t.prodigy.world.pippetEncounterSpawn)&&this.zoneName===t.prodigy.world.pippetEncounterSpawn.location&&!o&&(this.questParams.overrideMonsterIDWithPippet=s.Util.isValid(i)?i:1,e.addPippet(i,a,n))},e.prototype.addBounty=function(t,i,a,n,o,r,l,h){void 0===h&&(h=!1);var c=s.Util.copyObject(l);if(s.Util.isValid(this.mapMonsters[a])||(this.mapMonsters[a]={}),!h&&this.mapMonsters[a].respawn>(new Date).getTime())return null;c.onEnd=s.Util.isValid(c.onEnd)?c.onEnd:this.zoneName,c.onFaint=s.Util.isValid(c.onFaint)?c.onFaint:this.onFaint,c.screen=s.Util.isValid(c.screen)?c.screen:this.battleBG,s.Util.isValid(this.mapMonsters[a].monsterData)&&(c.encounter=[this.mapMonsters[a].monsterData]);var p=i.addBounty(a,n,o,r,c,e.resetMonsterRespawn.bind(this,this.mapMonsters[a],null,5e3),s.Util.isValid(this.mapMonsters[a].respawn));return this.mapMonsters[a].data=p.monsterData,delete this.mapMonsters[a].respawn,p},e.prototype.addWizard=function(t,e,i,a,n,o){o.onEnd=s.Util.isValid(o.onEnd)?o.onEnd:this.zoneName,o.onFaint=s.Util.isValid(o.onFaint)?o.onFaint:this.onFaint,o.screen=s.Util.isValid(o.screen)?o.screen:this.battleBG;var r=e.addWizard(i,a,n,o);return s.Util.isValid(this.questParams.enableWizards)&&!this.questParams.enableWizards&&(r.visible=!1),r},e.prototype.addConstructedNPC=function(t,e,i,a,n,o,r,l){return s.Util.isValid(this.questParams.hiddenNPCs)&&this.questParams.hiddenNPCs.indexOf(n)>-1?null:e.addConstructedNPC(i,a,n,o,r,l)},e.prototype.addCollisionZone=function(t,e,i,a,n){for(var o=t.path.size,r=Math.floor(a/o),s=Math.floor(n/o),l=Math.floor(e/o),h=Math.floor(i/o),c=l;c<l+r;c++)for(var p=h;p<h+s;p++)t.path.area[p][c]=0},e.prototype.init=function(e,i,a,n){return t.prototype.init.call(this,e,i,a,n)},e.prototype.validPathTo=function(t,e,i,a){var n=t.prodigy.event.create();n.validPath(e.user,e.path,i,a),n.start()},e.prototype.playPortalEffectExit=function(t,e,i,a,n){var o=this.zone.game.prodigy.event.create();if(this.portalActive)o.enableInput(!1),o.path(this.screen.user,[{x:t,y:e}]),o.portalEffect(t,e,!1),o.enableInput(!0),o.function(this.zone.game.prodigy.world.teleport.bind(this.zone.game.prodigy.world,i,a,n));else{this.landedOnPortal=!0,o.enableInput(!1),o.portalEffect(t,e,!1);var r=640-t,s=360-e,l=Math.sqrt(r*r+s*s);0===l&&(l=1,r=1),o.path(this.screen.user,[{x:80*r/l+t,y:80*s/l+e}]),o.set(this,"landedOnPortal",!1),o.set(this,"portalActive",!0),o.function(this.addAreaEvent.bind(this,this.game,this.screen,{x:t,y:e,w:100,h:80},i,a,n,this.playPortalEffectExit.bind(this,t,e,i,a,n))),o.enableInput(!0)}o.start()},e.prototype.playPortalEffectEnter=function(t,e,i,a){var n=this.zone.game.prodigy.event.create();this.portalActive||(n.enableInput(!1),n.portalEffect(t,e,!1),s.Util.isValid(i)&&s.Util.isValid(a)&&n.path(this.screen.user,[{x:i,y:a}]),n.set(this,"landedOnPortal",!1),n.set(this,"portalActive",!0),n.enableInput(!0),n.start())},e.prototype.showAllBounties=function(t,e){if(s.Util.isValid(this.coord))for(var i=0;i<this.coord.length;i++){var a={ID:84,seed:Math.floor(100*Math.random()),complete:0};t.prodigy.bounty.placeBountyHere(a,e,this,i)}},e.prototype.toggleDynamicLayer=function(t,e,i,a){var n=this;if(void 0===a&&(a=1),s.Util.isValid(this.dynamicLayerContainers)){var o=i?1:0;s.Util.isValid(this.dynamicLayerContainers["element-"+e])&&(t.add.tween(this.dynamicLayerContainers["element-"+e].above).to({alpha:o},s.Util.isValid(a)?a:1,Phaser.Easing.Linear.None).start(),t.add.tween(this.dynamicLayerContainers["element-"+e].below).to({alpha:o},s.Util.isValid(a)?a:1,Phaser.Easing.Linear.None).start()),s.Util.isValid(this.dynamicLayerContainers["collision-"+e])&&(this.dynamicLayerContainers["collision-"+e].forEach(function(t){n.screen.area[t.y][t.x]=i?t.value:1}),this.screen.path.init(this.screen.area,this.screen.tileSize))}},e}(i(251).TiledMap);e.Map=l},function(t,e,i){"use strict";function a(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}Object.defineProperty(e,"__esModule",{value:!0});var n=i(54);e.GameIdentifiers=n.GameIdentifiers;var o=i(1028);e.GameContainer=o.GameContainer,a(i(1027)),a(i(1023)),a(i(1022))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(2),n=i(4),o=i(0),r=function(){function t(t,e,i,a,n,r,s,l,h,c,p,u){var d=this;this.CRITICAL_HIT_THRESHOLD=.15,this.criticalThresholdBonus=0,this.nFactorMap=[-1,1,1,1.2,1.3,1.5,2,2.5,3,3.5,4],this.game=t,this.source=e,this.target=i,this.callback=h,this.atk=l,this.miss=c,this.mods=p,this.underLayer=this.game.prodigy.create.element(a,0,0),this.overLayer=this.game.prodigy.create.element(n,0,0),this.game.time.events.add(o.Util.isValid(u)?u:0,function(){d.setup(),d.game.time.events.add(r+1e3,d.complete,d),d.delayComplete=!1,d.shieldTime=0},this)}return t.prototype.setup=function(t,e){this.miss?this.game.time.events.add(t,this.missed,this):(o.Util.isValid(t)&&this.game.time.events.add(t,this.damage,this),o.Util.isValid(e)&&this.game.time.events.add(e,this.heal,this))},t.prototype.calculateDamageDone=function(){var t=o.Util.isValid(this.mod)?this.mod:0,e=1,i=1;if(t+=this.source.source.getDamageBonus(),o.Util.isValid(this.mods)&&(o.Util.isValid(this.mods.dmgMod)&&(t+=this.mods.dmgMod),o.Util.isValid(this.mods.comboBonus)&&(e=this.mods.comboBonus),o.Util.isValid(this.mods.nFactor)&&(i=this.mods.nFactor)),this.damageDone=this.game.prodigy.attacks.calculateDamage(this.atk,this.source.source,this.target.source,t,e),this.damageDone>0&&"PVP"!==this.game.state.current&&(this.damageDone*=this.nFactorMap[i],this.damageDone=Math.round(this.damageDone*(.1*Math.random()+.95))),this.criticalThresholdBonus=0,o.Util.isValid(this.source.source.modifiers)&&(this.damageDone=Math.round(this.damageDone*this.source.source.modifiers.damage),o.Util.isValid(this.source.source.modifiers.potion))){var a=n.Items.getItem("item",this.source.source.modifiers.potion).data;"damage"===a.element?(this.damageDone+=a.potency*this.damageDone/10,this.damageDone=Math.round(this.damageDone)):"critical"===a.element&&(this.criticalThresholdBonus=a.potency>1?1:this.CRITICAL_HIT_THRESHOLD)}},t.prototype.damage=function(){if(this.calculateDamageDone(),o.Util.isValid(this.atk.data.type)&&"epic-attack"===this.atk.data.type)if(o.Util.isValid(this.epic))this.game.prodigy.effects.characterImage(this.game.prodigy.create.sprite(this.epic.x,this.epic.y,"atlas-17","text-epic-attack"));else{var t=this.game.prodigy.create.sprite(this.source.x,this.source.y,"atlas-17","text-epic-attack");t.y+=150-this.source.height,this.game.prodigy.effects.characterImage(t)}this.shieldTime=0;var e=0;if(o.Util.isValid(this.target.source.modifiers)&&o.Util.isValid(this.target.source.modifiers.potion)){var i=n.Items.getItem("item",this.target.source.modifiers.potion).data;if(o.Util.isValid(i.subType)&&"elemental"===i.subType&&o.Util.isValid(this.atk.data.element)&&("all"===i.element||this.atk.data.element===i.element)){this.shieldTime=1e3,e=i.potency*this.damageDone/10,this.damageDone-=Math.round(e);var r=this.target.sprites.add(this.game.prodigy.create.sprite(0,-75,"atlas-21","potion-buff-"+i.element));r.anchor.setTo(.5,.5);var s=this.game.add.tween(r).to({alpha:0},1300,Phaser.Easing.Quadratic.Out),l=this.game.add.tween(r.scale).to({x:4,y:4},1300,Phaser.Easing.Quadratic.Out);s.start(),l.onComplete.add(function(){r.destroy()},r),l.start()}}var h="",c=!1,p=1;o.Util.isValid(this.mods)&&o.Util.isValid(this.mods.criticalChance)&&(p=this.mods.criticalChance),"PVP"!==this.game.state.current&&("epic-attack"===this.atk.data.type?c=!0:o.Util.isValid(a.GameConstants.get("GameConstants.Debug.SET_CRIT"))?c=Math.random()<a.GameConstants.get("GameConstants.Debug.SET_CRIT"):Math.random()<(this.CRITICAL_HIT_THRESHOLD+this.criticalThresholdBonus)*p&&(c=!0)),c?(this.damageDone=Math.round(1.25*this.damageDone),this.game.prodigy.effects.characterImage(this.game.prodigy.create.sprite(this.target.x,this.source.y+50,"atlas-17","text-critical-hit"),this.shieldTime+1e3),h="critical-hit"):h="normal-hit",this.lastTargetHp=this.target.source.getCurrentHearts(),this.target.source.changeCurrentHearts(-this.damageDone),this.target.source.getCurrentHearts()<=0&&this.target.source.modifiers.barrier?(this.game.prodigy.effects.characterText("-999",this.target.x,this.source.y,this.shieldTime,{size:1,fontID:12,mono:44}),c=!0,this.game.prodigy.effects.characterImage(this.game.prodigy.create.sprite(this.target.x,this.source.y+50,"atlas-17","text-critical-hit"),this.shieldTime+1e3),h="critical-hit",o.Util.isValid(this.mods)&&o.Util.isValid(this.mods.nFactor)&&this.mods.nFactor>2&&this.game.prodigy.effects.characterText(this.game.prodigy.gameContainer.Localizer.getText("COMBAT_CAST_BONUS_HIT"),this.target.x,this.source.y+50,this.shieldTime),this.target.retreat()):(this.game.prodigy.effects.characterText("-"+this.damageDone,this.target.x,this.source.y,this.shieldTime,{size:1,fontID:12,mono:44}),o.Util.isValid(this.mods)&&o.Util.isValid(this.mods.nFactor)&&this.mods.nFactor>2&&this.game.prodigy.effects.characterText(this.game.prodigy.gameContainer.Localizer.getText("COMBAT_CAST_BONUS_HIT"),this.target.x,this.source.y+50,this.shieldTime)),this.target.source.modifiers.barrier&&o.Util.isValid(this.target.barrierSprite)&&(this.target.source.getCurrentHearts()>0?this.target.doBarrierAnimation():this.target.doBarrierBreakAnimation()),this.game.prodigy.audio.playSFX(8,h);var u=null;c||0!==this.target.source.modifiers.ignoreElement||(this.game.prodigy.attacks.isStrong(this.atk.data.element,this.target.source.getElement())?u=this.game.prodigy.gameContainer.Localizer.getText("EFFECT_ATTACK_POWERFUL"):this.game.prodigy.attacks.isWeak(this.atk.data.element,this.target.source.getElement())&&(u=this.game.prodigy.gameContainer.Localizer.getText("EFFECT_ATTACK_WEAK"))),o.Util.isValid(u)&&(this.delayComplete=!0,this.game.prodigy.effects.characterText(u,this.target.x,this.source.y+50,this.shieldTime+1e3))},t.prototype.missed=function(){this.game.prodigy.audio.playSFX(8,"miss"),this.game.prodigy.effects.fadeFlyingImage(this.target.x,this.target.y-(this.target.height>>1),"atlas-17","text-miss")},t.prototype.heal=function(){var t=o.Util.isValid(this.damageDone);o.Util.isValid(this.damageDone)||this.calculateDamageDone();var e=Math.floor(.5*this.damageDone);this.target.source.getCurrentHearts()<=0&&(e=Math.floor(.5*this.lastTargetHp)),this.source.source.changeCurrentHearts(e),t||(this.damageDone=0);var i=this.game.prodigy.event.create();i.sound(18,"heart"),i.delay(200),i.sound(18,"heart"),i.delay(200),i.sound(18,"heart"),i.start(),this.game.prodigy.effects.characterText("+"+e,this.source.x,this.source.y,this.shieldTime,{size:3,fontID:12,mono:44})},t.prototype.showOverlay=function(t,e,i,a,n){var o=t;this.overLayer.add(o),this.game.add.tween(o.tilePosition).to({x:i*e,y:a*e},e,Phaser.Easing.Linear.None).delay(n).start(),this.game.add.tween(o).to({alpha:0},100,Phaser.Easing.Linear.None).delay(n+e-100).start()},t.prototype.complete=function(){this.underLayer.destroy(),this.overLayer.destroy(),this.game.time.events.add(this.delayComplete?this.shieldTime+1e3:this.shieldTime+300,this.callback,this)},t.BX=2e3,t.BY=1e3,t}();e.Attack=r},function(t,e,i){var a=i(156);t.exports=function(t,e,i){var n=null==t?void 0:a(t,e);return void 0===n?i:n}},function(t,e){t.exports=window.inversify},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),r=i(0),s=i(5),l=function(t){function e(e,i,a,n,o){var s=t.call(this,e,i,a,n)||this;return s.buttons=[],s.renderTexture=null,s.background=null,s.renderImage=null,s.page=0,s.disableModeSet=!1,r.Util.isValid(s.game.prodigy.notifications)&&s.game.prodigy.notifications.clearNotifications(),s.renderTexture=o,s.background=e.prodigy.create.element(s),s.renderTexture.clear(),s.renderImage=s.add(new Phaser.Image(e,0,0,s.renderTexture)),s.renderImage.inputEnabled=!0,s}return n(e,t),e.prototype.create=function(){this.game.prodigy.open.setActiveRenderMenu(this),this.process(),this.game.broadcaster.broadcast(o.EPlayerLocomotionEvents.StopPlayer)},e.prototype.setMode=function(t){if(r.Util.isValid(this.buttons))for(var e=0;e<this.buttons.length;e++)this.buttons[e].setActive(t!==e)},e.prototype.setActive=function(t){this.visible=t,t&&(r.Util.isValid(this.game)&&r.Util.isValid(this.game.prodigy.notifications)&&this.game.prodigy.notifications.clearNotifications(),this.process()),this.disableModeSet||this.setMode(r.Util.isValid(this.page)?this.page:0)},e.prototype.addTransparent=function(t){void 0===t&&(t=.5);var e=this.background.add(this.game.prodigy.create.sprite(-10,-10,"atlas-18","overlay-small"));e.width=1300,e.height=740,e.alpha=t},e.prototype.createBaseSetup=function(t,e,i,a,n,o,s,l){this.disableModeSet=o;var h=this.game.prodigy.create.element(this,(1280-40*t)/2,(720-40*e)/2);h.setRenderState(!0),this.game.prodigy.create.panel(h,0,0,t,e,i);var c,p,u="banner",d=null,g=0;if(r.Util.isValid(n)&&n.length>0&&(g=3*n.length+6),r.Util.isValid(l)&&r.Util.isValid(l.banner)&&(u=l.banner.frameName,d={atlasID:l.banner.atlasID},g=l.banner.width),r.Util.isValid(n)&&n.length>0)this.game.prodigy.create.panel(h,40,40,g,2,u,d);else if(r.Util.isValid(s)){var y=this.game.prodigy.create.panel(h,40,40,18,2,u);this.game.prodigy.create.font(y,200,15,s,{size:36,fontID:9})}var f={x:-40,y:-10};if(r.Util.isValid(l)&&r.Util.isValid(l.closeButton)?(c=l.closeButton.key,p=l.closeButton.frameName,f=l.closeButton.offset):(c="atlas-21",p="close"),this.game.prodigy.create.button(this,h.x+40*t+f.x,h.y+f.y,c,p,this.close.bind(this)),this.buttons=[],r.Util.isValid(n)&&n.length>0){var m={x:0,y:0},_={x:0,y:0};r.Util.isValid(l)&&r.Util.isValid(l.buttons)&&(m=l.buttons.offset,_=l.buttons.iconOffset),r.Util.isValid(a)&&(h.add(this.game.prodigy.create.sprite(_.x+80,-10,"atlas-21","menu-crest")),this.game.prodigy.create.font(h,_.x+80,70,a,{width:140,align:"center"}));for(var v=0;v<n.length;v++)this.buttons.push(this.game.prodigy.create.advButton(this,h.x+m.x+240+120*v,h.y+30,n[v],this.setMode.bind(this,v)))}return h},e.prototype.init=function(t){t.add(this),this.process()},e.prototype.close=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];r.Util.isValid(this.game)&&r.Util.isValid(this.game.prodigy)&&(r.Util.isValid(this.game.broadcaster)&&(this.game.broadcaster.removeAppListener(o.EDebugEvents.AutoClickUI,this,this.game),this.game.broadcaster.removeAppListener(o.EDebugEvents.AutoClickList,this,this.game)),this.game.prodigy.open.setActiveRenderMenu());try{r.Util.isValid(this.onClose)&&this.onClose.apply(this,t)}catch(t){}r.Util.isValid(this.game)&&this.game.prodigy.open.close(this),this.destroy()},e.prototype.startLoad=function(t,e){this.game.prodigy.load.assets(t,e)},e.prototype.process=function(){this.renderTexture.clear(),this.background.visible=!0,this.renderTexture.renderXY(this.background,0,0,!0),this.background.visible=!1;for(var t=0;t<this.children.length;t++)if(this.children[t]instanceof s.Element){var e=this.children[t];e.tintElement&&e.setAllChildren("tint",10066329),e.renderOnly?(e.visible=!0,this.renderTexture.renderXY(e,e.x,e.y),e.visible=!1):e.visible=!0}},e.prototype.hideActiveElements=function(){for(var t=0;t<this.children.length;t++){var e=this.children[t];e!==this.background&&(e instanceof s.Element&&(e.visible=!1))}},e}(s.Element);e.RenderMenu=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(10),r=i(81),s=i(2),l=i(3),h=i(17),c=i(0),p=i(4),u=i(924),d=i(264),g=i(923),y=i(38),f=i(901),m=i(900),_=i(896),v=i(15),E=i(895),b=i(65),O=i(885),T=i(884),A=i(883),I=function(t){function e(e,i){void 0===i&&(i=!1);var a=t.call(this,e)||this;return a.saveEnabled=!1,a.equipment=null,a.tutorial=null,a.appearance=null,a.kennel=null,a.quests=null,a.house=null,a.backpack=null,a.achievements=null,a.state=null,a.isMember=!1,a.mount=null,a.userID=0,a.curriculumTreeID=null,a.parentEmail=null,a.registerDate=null,a.owners=[],a.classIDs=null,a.playerParents=[],a.playerTeachers=[],a.battleCounter=0,a.memberStartDate=null,a.memberEndDate=null,a.memberPrompt=!1,a.transformID=null,a.locationSelectionType="none",a.username=null,a.password=null,a.chatID=null,a.emoteID=null,a.danceID=null,a.grade=null,a.world=null,a.eventSignClicked=0,a.earlyBirdLastChance=!1,a.spellStreak=0,a.timer=null,a.parentalLink=!1,a.isOnline=!1,a.isOnline=i,a.init(null),a}return n(e,t),e.prototype.createRandom=function(){this.equipment.data.hat=p.Items.getRandomItem("hat").ID,this.equipment.data.weapon=p.Items.getRandomItem("weapon").ID,this.equipment.data.outfit=p.Items.getRandomItem("outfit").ID},e.prototype.canCatch=function(t){return!1},e.prototype.getID=function(){return this.userID},e.prototype.getUpdatedData=function(t){void 0===t&&(t=!1);var e={};return(this.equipment.updated||t)&&(e.equipment=this.equipment.getDataAndClear(),c.Util.deleteFieldsWithNullsOrEmptyStrings(e.equipment,!0)),(this.tutorial.updated||t)&&(e.tutorial=this.tutorial.getDataAndClear(),c.Util.deleteFieldsWithNullsOrEmptyStrings(e.tutorial,!0)),(this.appearance.updated||t)&&(e.appearance=this.appearance.getDataAndClear(),c.Util.deleteFieldsWithNullsOrEmptyStrings(e.appearance,!0)),(this.kennel.updated||t)&&(e.pets=this.kennel.getDataAndClear(),c.Util.deleteFieldsWithNullsOrEmptyStrings(e.pets,!0)),(this.quests.updated||t)&&(e.quests=this.quests.getDataAndClear(),c.Util.deleteFieldsWithNullsOrEmptyStrings(e.quests,!0)),(this.house.updated||t)&&(e.house=this.house.getDataAndClear(),c.Util.deleteFieldsWithNullsOrEmptyStrings(e.house,!0)),(this.updated||t)&&(e.data=this.getDataAndClear(),c.Util.deleteFieldsWithNullsOrEmptyStrings(e.data,!0)),(this.backpack.updated||t)&&(e.inventory=this.backpack.getDataAndClear(),c.Util.deleteFieldsWithNullsOrEmptyStrings(e.inventory,!0)),(this.state.updated||t)&&(e.state=this.state.getDataAndClear(),c.Util.deleteFieldsWithNullsOrEmptyStrings(e.state,!0)),(this.achievements.updated||t)&&(e.achievements=this.achievements.getDataAndClear(),c.Util.deleteFieldsWithNullsOrEmptyStrings(e.achievements,!0)),e},e.prototype.init=function(t){if(this.backpack=new g.Backpack,this.equipment=new f.Equipment(this.game),this.isOnline?this.appearance=this.game.prodigy.gameContainer.resolve(b.OnlinePlayerAppearance):this.appearance=new d.Appearance,this.achievements=new u.Achievements,this.kennel=new _.Kennel(this),this.quests=new O.Quests,this.state=new T.State,this.house=new m.House,this.tutorial=new A.Tutorial,this.mount=new E.MountEntity,!c.Util.isValid(t))return this.house.setItems(this.house.data),!1;if(c.Util.isValid(t.userID)?this.userID=t.userID:c.Util.isValid(t.id)&&(this.userID=parseInt(t.id)),c.Util.isValid(t.curriculumTreeID)&&(this.curriculumTreeID=t.curriculumTreeID),c.Util.isValid(t.data)&&(this.data=c.Util.getObject(t.data)),c.Util.isValid(t.pets)&&this.kennel.setPets(c.Util.getObject(t.pets)),c.Util.isValid(t.tutorial)&&this.tutorial.setData(c.Util.getObject(t.tutorial)),c.Util.isValid(t.state)&&this.state.setData(c.Util.getObject(t.state)),this.house.setItems(c.Util.isValid(t.house)?c.Util.getObject(t.house):this.house.data),c.Util.isValid(t.inventory)&&(this.backpack.setItems(c.Util.getObject(t.inventory)),this.backpack.consumeLegacyBounties()),c.Util.isValid(t.equipment)&&this.equipment.setEquipment(c.Util.getObject(t.equipment)),c.Util.isValid(t.quests)&&this.quests.setQuests(c.Util.getObject(t.quests)),c.Util.isValid(t.appearance)&&this.appearance.setAppearance(c.Util.getObject(t.appearance)),c.Util.isValid(t.achievements)&&this.achievements.init(c.Util.getObject(t.achievements)),c.Util.isValid(t.isMember)&&this.setMembership(t),c.Util.isValid(t.mount)&&this.mount.setMountData(c.Util.getObject(t.mount)),this.parentEmail=c.Util.isValid(t.parentEmail)?t.parentEmail:"",this.registerDate=c.Util.isValid(t.registerDate)?new Date(t.registerDate):null,c.Util.isValid(this.getPlayerData().dailyLoginBonus)&&(this.getPlayerData().dailyLoginBonus.session++,this.updated=!0),c.Util.isValid(t.classIDs)){this.owners=t.classIDs,this.classIDs=[];for(var e=0;e<t.classIDs.length;e++)this.classIDs.push(t.classIDs[e].id)}if(this.playerParents=[],this.playerTeachers=[],c.Util.isValid(t.ownerIDs))for(e=0;e<t.ownerIDs.length;e++){var i=t.ownerIDs[e];"parent"===i.type?this.playerParents.push(i):"teacher"===i.type&&this.playerTeachers.push(i)}return this.isOnline&&this.checkVersion(),!0},e.prototype.getLatestClassIDLegacy=function(){return c.Util.isValid(this.classIDs)&&this.classIDs.length>0?this.classIDs[this.classIDs.length-1]:0},e.prototype.getRegisterDate=function(){return c.Util.isValid(this.registerDate)&&"string"==typeof this.registerDate&&(this.registerDate=c.Util.isValid(this.registerDate)?new Date(this.registerDate):null),this.registerDate},e.prototype.setParentEmail=function(t){this.parentEmail=t,this.battleCounter=0,this.updated=!0},e.prototype.setSurvey=function(t){this.getPlayerData().survey=t,this.updated=!0},e.prototype.hasMembership=function(){return this.isMember},e.prototype.hasValidatedParentEmail=function(){return c.Util.isValid(this.playerParents)&&this.playerParents.length>0},e.prototype.getSpellStreak=function(){return this.spellStreak},e.prototype.getSurvey=function(){return c.Util.isValid(this.getPlayerData().survey)?this.getPlayerData().survey:0},e.prototype.getBountyScore=function(){return c.Util.isValid(this.getPlayerData().bountyScore)?this.getPlayerData().bountyScore:0},e.prototype.addBountyScore=function(t){this.getPlayerData().bountyScore=this.getBountyScore()+t,this.updated=!0},e.prototype.fx=function(t,e){void 0===e&&(e=!1),this[t]=!e||{action:"emit",data:{userID:this.userID,type:t}}},e.prototype.heal=function(){this.changeCurrentHearts(s.GameConstants.MAX_SAFE_INTEGER);for(var t=this.kennel.getPets(),e=0;e<t.length;e++)delete t[e].hp;this.kennel.updated=!0},e.prototype.castSpell=function(t){c.Util.isValid(this.spellStreak)||(this.spellStreak=0),t?(this.achievements.increment("qC",1),this.spellStreak++):this.spellStreak=0},e.prototype.addSpell=function(t){var e=this.data;c.Util.isValid(e.spells)||(e.spells=[]),c.Util.inArray(e.spells,t)||(e.spells.push(t),c.Util.isValid(e.spellbook)&&!c.Util.inArray(e.spellbook,t)&&e.spellbook.length<6&&e.spellbook.push(t)),this.updated=!0},e.prototype.setMembership=function(t){c.Util.isValid(t)?(this.isMember=1===t.isMember,c.Util.isValid(t.memberStartDate)?this.memberStartDate=t.memberStartDate:this.memberStartDate=(new Date).toISOString(),c.Util.isValid(t.memberEndDate)?this.memberEndDate=t.memberEndDate:this.memberEndDate=null):(this.isMember=!0,this.memberStartDate=(new Date).toISOString(),this.memberEndDate=null),this.memberPrompt=!1,this.updated=!0,this.isMember&&(c.Util.isValid(this.getPlayerData().nm)?this.getPlayerData().nm=2:(c.Util.isValid(this.getPlayerData().startDate)&&this.getPlayerData().startDate<(new Date).getTime()&&(this.getPlayerData().daysToConvert=((new Date).getTime()-this.getPlayerData().startDate)/864e5),this.getPlayerData().nm=1,this.updated=!0),this.backpack.unlockAllItems())},e.prototype.getArenaPoints=function(){var t=this.game.prodigy.pvpNetworkHandler;return c.Util.isValid(t.userRank)&&c.Util.isValid(t.userRank.points)?t.userRank.points:0},e.prototype.healTeam=function(t){this.changeCurrentHearts(t);for(var e=this.kennel.getPets(),i=0;i<e.length;i++){var a=new v.Monster(this.game,e[i]);c.Util.isValid(e[i].hp)&&(e[i].hp+t>a.getMaxHearts()?delete e[i].hp:e[i].hp=e[i].hp+t)}this.kennel.updated=!0},e.prototype.healTeamMember=function(t,e,i){void 0===i&&(i=null);for(var a=this.kennel.getPets(),n=0;n<a.length;n++)if(a[n].ID===e){var o=new v.Monster(this.game,a[n]);c.Util.isValid(a[n].hp)&&(a[n].hp+t>o.getMaxHearts()?a[n].hp=o.getMaxHearts():a[n].hp=a[n].hp+t);break}this.kennel.updated=!0,c.Util.isValid(i)&&i()},e.prototype.setZone=function(t){c.Util.isValid(t)&&t.indexOf("scene")>-1||(this.getPlayerData().zone=t,this.updated=!0)},e.prototype.transform=function(t,e){void 0===t&&(t=null),void 0===e&&(e=0),this.transformID=t,c.Util.isValid(this.timer)&&window.clearInterval(this.timer),this.timer=setInterval(this.transform.bind(this),e)},e.prototype.transformPlayer=function(t,e,i){void 0===i&&(i=0),this.getPlayerData().playerTransformation={transformType:t,transformID:e,maxTime:i,timeRemaining:i},this.updated=!0},e.prototype.isPlayerTransformed=function(){return!(!c.Util.isValid(this.getPlayerData().playerTransformation)||-1===this.getPlayerData().playerTransformation.transformType||this.getPlayerData().playerTransformation.timeRemaining<=0)},e.prototype.getAttacks=function(t){return void 0===t&&(t=null),c.Util.isValid(this.getPlayerData().spellbook)?this.getPlayerData().spellbook.length<6&&(this.getPlayerData().spellbook=this.getAllAttacks().splice(0,6)):this.getPlayerData().spellbook=this.getAllAttacks().splice(0,6),c.Util.isValid(t)?y.Creature.getAttacksOfType(this.getPlayerData().spellbook,t):this.getPlayerData().spellbook},e.prototype.getAllAttacks=function(){var t=y.Creature.getAttacksFromCurve(e.LEVEL_CURVE,1,this.getLevel());if(c.Util.isValid(this.getPlayerData().spells))for(var i=0;i<this.getPlayerData().spells.length;i++)c.Util.inArray(t,this.getPlayerData().spells[i])||t.push(this.getPlayerData().spells[i]);return t},e.prototype.getNumAttacks=function(){return this.getAllAttacks().length},e.prototype.getName=function(){return this.appearance.getName()},e.prototype.getSourceName=function(){return this.appearance.getFirstName()},e.prototype.getMaxHearts=function(t){void 0===t&&(t=null);var e=Math.min(Math.floor(this.getBaseMaxHearts(t)+this.getHeartBonus()),y.Creature.MAX_HEARTS);return Math.round(e*this.modifiers.maxHearts)},e.prototype.getBaseMaxHearts=function(e){return t.prototype.getMaxHearts.call(this,e)+200},e.prototype.getHeartBonus=function(){return this.equipment.getHeartBonuses()},e.prototype.getDamageBonus=function(){return this.equipment.getDamageBonuses()},e.prototype.getGold=function(t){return void 0===t&&(t=!1),o(this.getPlayerData(),"gold",0)},e.prototype.changeGold=function(t,e){void 0===e&&(e=null),c.Util.isValid(e)&&this.game.prodigy.network.sendItemChangeEvent(e,{type:"gold",ID:-1,N:t}),t>0?this.achievements.increment("gE",t):t<0&&this.achievements.increment("gS",Math.min(Math.max(this.getPlayerData().gold,0),Math.abs(t))),this.getPlayerData().gold=this.getGold()+t,this.getPlayerData().gold<0&&delete this.getPlayerData().gold,this.getPlayerData().gold>s.GameConstants.MAX_SAFE_INTEGER&&(this.getPlayerData().gold=1e9),this.updated=!0},e.prototype.equip=function(t,e){return this.game.broadcaster.broadcast(l.EPlayerContainerEvents.PlayerEquipmentEquip,this.game,[e,t]),this.equipment.equip(t,e)},e.prototype.unEquip=function(t){return this.game.broadcaster.broadcast(l.EPlayerContainerEvents.PlayerEquipmentUnequip,this.game,[t]),this.equipment.unEquip(t)},e.prototype.setDefault=function(t){"male"===t?(this.appearance.setHair(19,Math.floor(5*Math.random()+1)),this.appearance.setFace(4)):(this.appearance.setHair(5,Math.floor(5*Math.random()+1)),this.appearance.setFace(12)),this.appearance.setGender(t),this.appearance.setEyeColor(Math.floor(5*Math.random()+1)),this.appearance.setSkinColor(Math.floor(5*Math.random()+1)),this.equipment.unEquip("hat")},e.prototype.getLevelingCurve=function(t){void 0===t&&(t=null);for(var i=[],a=0;a<e.LEVEL_CURVE.length;a++){var n=e.LEVEL_CURVE[a];n.lvl===t&&i.push(n)}return i},e.prototype.setDailyDate=function(t){var e=new Date;this.getPlayerData()[t].date={d:e.getUTCDate(),m:e.getUTCMonth(),y:e.getUTCFullYear()},this.updated=!0},e.prototype.canDoDaily=function(t,e){var i=this.getPlayerData()[t],a=c.Util.isValid(i)?i.date:null;return c.Util.isValid(i)?c.Util.isValid(a)&&c.Util.isDateToday(new Date(a.y,a.m,a.d))||this.resetDaily(t,e):(this.getPlayerData()[t]={},this.resetDaily(t,e)),0===this.getPlayerData()[t].isComplete},e.prototype.completeDaily=function(t,e){this.getPlayerData()[t].isComplete=e,this.updated=!0},e.prototype.setSpinDate=function(t){this.getPlayerData()["spinDate"+t]=c.Util.getDateTime(),this.updated=!0},e.prototype.spinWheel=function(t){this.getPlayerData()["numSpins"+t]++,this.updated=!0},e.prototype.canSpin=function(t){return c.Util.isValid(this.getPlayerData()["numSpins"+t])?this.getPlayerData()["spinDate"+t]!==c.Util.getDateTime()?(this.setSpinDate(t),this.getPlayerData()["numSpins"+t]=0,!0):0===this.getPlayerData()["numSpins"+t]||1===this.getPlayerData()["numSpins"+t]&&this.hasMembership()||s.GameConstants.get("GameConstants.Debug.UNLIMITED_WHEEL_SPINS"):(this.setSpinDate(t),this.getPlayerData()["numSpins"+t]=0,!0)},e.prototype.setColiseum=function(t){this.getPlayerData().arena=t},e.prototype.getColiseum=function(){return c.Util.isValid(this.getPlayerData().arena)?this.getPlayerData().arena:0},e.prototype.getTeamScore=function(){return this.kennel.getTeamScore()},e.prototype.getWins=function(){return c.Util.isValid(this.getPlayerData().win)?this.getPlayerData().win:0},e.prototype.getLosses=function(){return c.Util.isValid(this.getPlayerData().loss)?this.getPlayerData().loss:0},e.prototype.addWin=function(){this.getPlayerData().win=this.getWins()+1,this.updated=!0},e.prototype.addLoss=function(){this.getPlayerData().loss=this.getLosses()+1,this.updated=!0},e.prototype.processDeserter=function(){return!!c.Util.isValid(this.getPlayerData().deserter)&&(delete this.getPlayerData().deserter,this.updated=!0,!0)},e.prototype.getTowerProgress=function(){return o(this.getPlayerData(),"tower",0)},e.prototype.completeTower=function(t){t>this.getTowerProgress()&&(this.getPlayerData().tower=t,this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:"dark_tower",name:t})),this.updated=!0},e.prototype.isBlockedByDarkTowerMemberGate=function(){var t=this.getTowerProgress();return!this.hasMembership()&&t<100&&t>=s.GameConstants.get("GameConstants.Tower.MAX_FREE_MEMBER_FLOOR")},e.prototype.swapSpells=function(t,e){if(c.Util.isValid(t)&&c.Util.isValid(e)){c.Util.isValid(this.getPlayerData().spellbook)||(this.getPlayerData().spellbook=this.getAllAttacks().slice(0,6));for(var i=0;i<this.getPlayerData().spellbook.length;i++)this.getPlayerData().spellbook[i]!==t?this.getPlayerData().spellbook[i]===e&&(this.getPlayerData().spellbook[i]=t):this.getPlayerData().spellbook[i]=e;this.updated=!0}},e.prototype.hasCompletedTutorial=function(){var t=o(this.game.prodigy.world.zones,"house",null);return c.Util.isValid(t)&&o(t.getQuestState(),"ID",0)>1},e.prototype.setAllowsHouseVisitors=function(t){this.getPlayerData().allowsHouseVisitors=t,this.updated=!0},e.prototype.getAllowsHouseVisitors=function(){return!!c.Util.isValid(this.getPlayerData().allowsHouseVisitors)&&this.getPlayerData().allowsHouseVisitors},e.prototype.setBGMVolume=function(t){this.getSettings().bgmVolume=t,this.updated=!0},e.prototype.setSFXVolume=function(t){this.getSettings().sfxVolume=t,this.updated=!0},e.prototype.setVoiceVolume=function(t){this.getSettings().voiceVolume=t,this.updated=!0},e.prototype.getSettings=function(){return c.Util.isValid(this.getPlayerData().settings)||(this.getPlayerData().settings={bgmVolume:s.GameConstants.get("GameConstants.Audio.DEFAULT_MUSIC_VOLUME"),sfxVolume:s.GameConstants.get("GameConstants.Audio.DEFAULT_SOUND_VOLUME"),voiceVolume:s.GameConstants.get("GameConstants.Audio.DEFAULT_VOICE_VOLUME")},this.updated=!0),this.getPlayerData().settings},e.prototype.rewardMembershipPrizes=function(t){var e=this;return!(!this.game.prodigy.player.isMember||0!==this.game.prodigy.player.backpack.hasItem("mount",1))&&(this.game.prodigy.open.membershipInfo(function(){e.game.prodigy.network.sendEvent("new-member",{startDate:o(e.game.prodigy.player.data,"startDate",-1),daysToConvert:o(e.game.prodigy.player.data,"daysToConvert",-1)}),e.game.prodigy.open.gotItem([{type:"mount",ID:1}],t)},null,null,!0),!0)},e.prototype.onTutorialComplete=function(){this.game.prodigy.pvpNetworkHandler.initUserLeaderboard(),this.game.prodigy.open.map(!0,["WORLD_DYNO_DIG_OASIS","WORLD_EPICS_SUBSPACE","WORLD_DARK_TOWER","WORLD_LAMPLIGHT_TOWN","WORLD_THE_ACADEMY","WORLD_LOST_ISLAND","WORLD_YOUR_HOUSE","DISABLE_TITAN"])},e.prototype.isItemOwned=function(t){var e=this.backpack.hasItem(t.type,t.ID)>0;if("dorm"===t.type)e=this.house.getOwned(t.ID)>=9;else if("dormbg"===t.type){var i=p.Items.getItem("dormbg",t.ID).data;e=c.Util.isValid(i)&&i.tag===this.house.getCurrentHouseTag()}else"pet"===t.type?e=this.kennel.hasPet(t.ID):"item"===t.type?e=this.backpack.hasItem(t.type,t.ID)>=99:"gender"===t.type?e=("male"===this.appearance.getGender()?1:2)===t.ID:"hair"===t.type?e=this.appearance.getHair().style===t.ID:"eyeColor"===t.type?e=this.appearance.getEyeColor()===t.ID:"skinColor"===t.type?e=this.appearance.getSkinColor()===t.ID:"hairColor"===t.type?e=this.appearance.getHair().color===t.ID:"face"===t.type&&(e=this.appearance.getFace()===t.ID);return e},e.prototype.anyPetsAboveLevel=function(t){for(var e=this.kennel.getPets(),i=0;i<e.length;i++)if(e[i].level>t)return!0;return!1},e.prototype.getDrops=function(){var t=[{type:"gold",N:100}];return t=t.concat(p.Items.getItemDrops())},e.prototype.checkVersion=function(){var t=c.Util.isValid(this.getPlayerData().versionID)?this.getPlayerData().versionID:0;if(t<1&&(c.Util.isValid(this.state.data.zone)&&c.Util.isValid(this.state.data.zone.lamplight)&&delete this.state.data.zone.lamplight,c.Util.isValid(this.state.data.zone)&&c.Util.isValid(this.state.data.zone.house)&&delete this.state.data.zone.house,this.state.updated=!0),t<2&&this.kennel.hasPet(125)&&this.backpack.add("follow",125),t<3){var e=this.state.get("zone-forest-quest-ID");c.Util.isValid(e)&&e>=12&&this.state.set("zone-forest-quest",{ID:13}),e=this.state.get("zone-shiverchill-quest-ID"),c.Util.isValid(e)&&e>=15&&this.state.set("zone-shiverchill-quest",{ID:16}),e=this.state.get("zone-skywatch-quest-ID"),c.Util.isValid(e)&&e>=13&&this.state.set("zone-skywatch-quest",{ID:14}),e=this.state.get("zone-bonfire_spire-quest-ID"),c.Util.isValid(e)&&e>=14&&this.state.set("zone-bonfire_spire-quest",{ID:15})}if(t<4){c.Util.isValid(this.getPlayerData().stars)||(this.getPlayerData().stars=0),this.getPlayerData().stars=10*this.getPlayerData().stars,this.changeCurrentHearts(s.GameConstants.MAX_SAFE_INTEGER);for(var i=this.kennel.getPets(),a=0;a<i.length;a++)i[a].hp=s.GameConstants.MAX_SAFE_INTEGER,c.Util.isValid(i[a].stars)||(i[a].stars=0),c.Util.isValid(i[a].level)||(i[a].level=1),0===i[a].stars?i[a].stars=y.Creature.starsToLevel(i[a].level-1):i[a].stars=10*i[a].stars}if(t<6&&(this.backpack.hasItem("weapon",1e3)>0&&this.backpack.consume("weapon",1e3,1),1e3===this.equipment.getEquipment("weapon")&&this.equipment.unEquip("weapon")),t<9){var n=this.backpack.hasItem("weapon",1e3);n>0&&this.backpack.consume("weapon",1e3,n),1e3===this.equipment.getEquipment("weapon")&&this.equipment.unEquip("weapon"),(n=this.backpack.hasItem("weapon",96))>0&&this.backpack.consume("weapon",96,n),96===this.equipment.getEquipment("weapon")&&this.equipment.unEquip("weapon")}if(t<10||t<14){var l=c.Util.isValid(Number.MAX_SAFE_INTEGER)?Number.MAX_SAFE_INTEGER:9007199254740991;if(c.Util.isValid(this.getPlayerData().playerTransformation)&&(c.Util.isValid(this.getPlayerData().playerTransformation.maxTime)&&this.getPlayerData().playerTransformation.maxTime===l||c.Util.isValid(this.getPlayerData().playerTransformation.timeRemaining)&&this.getPlayerData().playerTransformation.timeRemaining===l)){var u=this.getMaxTimeForCurrentMorphMarbleEffect();this.getPlayerData().playerTransformation.maxTime=u,this.getPlayerData().playerTransformation.timeRemaining=u}}if(t<11&&c.Util.isValid(this.getPlayerData().playerTransformation)&&c.Util.isValid(this.getPlayerData().playerTransformation.transformID)&&this.getPlayerData().playerTransformation.transformID>-1&&!c.Util.isValid(this.getPlayerData().playerTransformation.timeRemaining)){u=this.getMaxTimeForCurrentMorphMarbleEffect();this.getPlayerData().playerTransformation.maxTime=u,this.getPlayerData().playerTransformation.timeRemaining=u}if(t<12){var d=this.game.prodigy.world.getZone("house");d.getState("hasClickedPlayerCardVisit")&&this.game.prodigy.breadcrumbManager.completeBreadcrumb(h.Breadcrumbs.FEATURE_HOUSE_VISITING,h.Breadcrumbs.BREADCRUMB_CLICKED_CARD_VISIT_BUTTON),d.getState("hasClickedWorldMap")&&this.game.prodigy.breadcrumbManager.completeBreadcrumb(h.Breadcrumbs.FEATURE_HOUSE_VISITING,h.Breadcrumbs.BREADCRUMB_CLICKED_WORLD_MAP_BUTTON),d.getState("hasClickedLockButton")&&this.game.prodigy.breadcrumbManager.completeBreadcrumb(h.Breadcrumbs.FEATURE_HOUSE_VISITING,h.Breadcrumbs.BREADCRUMB_CLICKED_HOUSE_LOCK_BUTTON);var g=d.getState("houseMovingBreadcrumbs");c.Util.isValid(g)&&(g>=0&&this.game.prodigy.breadcrumbManager.completeBreadcrumb(h.Breadcrumbs.FEATURE_HOUSE_MOVING,h.Breadcrumbs.BREADCRUMB_CLICKED_WORLD_MAP_BUTTON),g>=1&&this.game.prodigy.breadcrumbManager.completeBreadcrumb(h.Breadcrumbs.FEATURE_HOUSE_MOVING,h.Breadcrumbs.BREADCRUMB_CLICKED_WORLD_MAP_HOUSE),g>=2&&this.game.prodigy.breadcrumbManager.completeBreadcrumb(h.Breadcrumbs.FEATURE_HOUSE_MOVING,h.Breadcrumbs.BREADCRUMB_CLICKED_HOUSE_MOVE_BUTTON)),c.Util.safeDeleteObjectProperty(this.getPlayerData(),"arenaRank"),c.Util.safeDeleteObjectProperty(this.getPlayerData(),"arenaScore"),c.Util.isValid(this.achievements)&&delete this.achievements.data.progress[13]}if(t<13&&c.Util.safeDeleteObjectProperty(this.getPlayerData(),"reward"),t<15&&c.Util.isValid(this.kennel.data)){var f,m=[],_=function(t){var e=v.kennel.data[t];if(!c.Util.isValid(e.ID)&&c.Util.isValid(e.name)){var i=0,a=p.Items.data.pet.find(function(t){return e.name===t.data.name});if(null!==a&&(i=a.ID),i>0){for(var n=!0,o=0;o<m.length;o++)if(i===m[o]){v.kennel.data.splice(t,1),t--,n=!1;break}n&&(m.push(i),v.kennel.data[t]={ID:i,stars:0,level:1}),v.kennel.updated=!0}}f=t},v=this;for(a=0;a<this.kennel.data.length;a++)_(a),a=f}if(t<16&&(delete this.state.data.useOldTutorialPath,!this.hasCompletedTutorial())){delete this.getPlayerData().zone,delete this.state.data.zone.house,delete this.state.data.zone.lamplight;var E=[1,4,7,10];this.kennel.data=this.kennel.data.filter(function(t){return!r(E,t.ID)})}if(t<17&&this.game.prodigy.world.getZone("lamplight").isOnSequence(1,3)&&(this.getPlayerData().zone="lamplight-B0"),t<18&&(delete this.getPlayerData().spinDate,delete this.getPlayerData().numSpins),t<19&&this.hasCompletedTutorial()&&(null!==this.appearance.data.name&&"object"==typeof this.appearance.data.name||(this.appearance.data.name={}),null===o(this.appearance.data,"name.first",null)&&(this.appearance.data.name.first=b.OnlinePlayerAppearance.getRandomFirstName(this.appearance.data.gender)),null!==o(this.appearance.data,"name.middle",null)&&null!==o(this.appearance.data,"name.last",null)||(this.appearance.data.name.middle=b.OnlinePlayerAppearance.getRandomMiddleName(),this.appearance.data.name.last=b.OnlinePlayerAppearance.getRandomLastName(),this.appearance.updated=!0)),t<20){var O=this.state.get("zone-lamplight");o(this.data,"isNewTutorial",!1)&&(O=this.state.get("zone-house")),o(O,"quest.ID",0)>=2&&c.Util.isValid(this.backpack)&&this.backpack.hasItem("key",13)>0||(this.state.data.tutorial={},this.state.data.zone={},this.state.data.world={},this.state.data.breadcrumbs={},this.state.updated=!0,this.backpack.data.key=[],this.backpack.updated=!0),delete this.data.isNewTutorial}if(45690944===this.userID){c.Util.log("SessionCam Activated! SessionCam Client Integration v6.0",c.Util.INFO);var T=document.createElement("SCRIPT");T.type="text/javascript",T.src="//d2oh4tlt9mrke9.cloudfront.net/Record/js/sessioncam.recorder.js",document.getElementsByTagName("head")[0].appendChild(T)}t<20&&(this.getPlayerData().versionID=20,this.updated=!0)},e.prototype.getMaxTimeForCurrentMorphMarbleEffect=function(){if(c.Util.isValid(this.getPlayerData().playerTransformation.transformType)&&c.Util.isValid(this.getPlayerData().playerTransformation.transformID)&&this.getPlayerData().playerTransformation.transformID>-1)for(var t=117;t<=122;t++){var e=p.Items.getItem("item",t).data;if(c.Util.isValid(e.effect)&&c.Util.isValid(e.effect.transform)&&e.effect.transform===this.getPlayerData().playerTransformation.transformType&&c.Util.isValid(e.effect.ID)&&e.effect.ID===this.getPlayerData().playerTransformation.transformID)return c.Util.isValid(e.effect.time)?e.effect.time:0}return 0},e.prototype.resetDaily=function(t,e){this.setDailyDate(t),this.getPlayerData()[t].isComplete=0,c.Util.isValid(e)&&e()},e.prototype.getPlayerData=function(){return this.data},e.LEVEL_CURVE=[{lvl:1,a:31},{lvl:5,a:32},{lvl:12,a:33},{lvl:22,a:34},{lvl:38,a:35},{lvl:52,a:36}],e}(y.Creature);e.Player=I},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(10),r=i(804),s=i(2),l=i(5),h=i(3),c=i(99),p=i(138),u=i(4),d=i(13),g=i(25),y=i(787),f=i(0),m=i(18),_=i(786),v=i(785),E=i(784),b=i(22),O=function(t){function e(e,i,a,n,o,r){var s=t.call(this,e,i)||this;s.complete=!1,s.captured=null,s.potionIcon=null,s.potencyIcon=null,s.statusEffects=null,s.evolveTextTween=null,s.pairs=null,s.evtProc=!1,s.chatColour=16758272,s.nameColour=16777215,s.source=a,s.setScale=f.Util.isValid(n)?n:1,s.x=Math.floor(o),s.y=Math.floor(r),s.locomotion=null,s.speed=10,s.walkSpeed=1.2,s.sprites=s.game.prodigy.create.element(s,0,0),s.indicatorE=s.game.prodigy.create.element(s);var l=0,h=-150,c="";return s.source.npc?(f.Util.isValid(s.source.nameX)&&(l=s.source.nameX),f.Util.isValid(s.source.nameY)&&(h=s.source.nameY),f.Util.isValid(s.source.name)&&(c=s.source.name)):f.Util.isValid(s.source.modifiers)&&s.source.modifiers.barrier&&(s.barrierSprite=s.game.prodigy.create.sprite(60,-160,"atlas-141","1",new Phaser.Point(.5,.5),s.addBarrierSpritesheet.bind(s,"deflect")),s.barrierSpriteBreak=s.game.prodigy.create.sprite(60,-160,"atlas-142","1",new Phaser.Point(.5,.5),s.addBarrierSpritesheet.bind(s,"break")),s.barrierSpriteSpark=s.game.prodigy.create.sprite(-325,-115,"atlas-143","1",new Phaser.Point(.5,.5),s.addBarrierSpritesheet.bind(s,"spark")),s.add(s.barrierSprite),s.add(s.barrierSpriteBreak),s.add(s.barrierSpriteSpark)),s.nameText=s.game.prodigy.create.nameFont(s,l,s.source.npc?h:1===n?-130:-230,c),s.nameText.oldY=s.nameText.y,s.fxQueue=0,s.onDestroy.add(s.stopListeners,s),s.initListeners(),s}return n(e,t),e.prototype.showName=function(t,e){var i="";f.Util.isValid(this.source.getName)?(i=this.source.getName(),f.Util.isValid(i)||(i="")):f.Util.isValid(this.source.name)&&(i=this.source.name),this.source instanceof d.Player&&this.source.hasMembership()&&(i="@ "+i),f.Util.isValid(e)&&(i=e),this.nameText.setText(i),this.nameText.updateText(),f.Util.isValid(this.source.nameX)?this.nameText.x=this.source.nameX:this.nameText.hasOwnProperty("width")?this.nameText.x=Math.round(-.5*this.nameText.width):this.nameText.hasOwnProperty("textWidth")&&(this.nameText.x=Math.round(-.5*this.nameText.textWidth)),f.Util.isValid(this.nameText)&&(this.nameText.visible=t)},e.prototype.float=function(t){f.Util.isValid(this.floatTween)?t||(this.sprites.y=this.sprites.oldY,this.floatTween.stop(),delete this.floatTween):t&&(this.sprites.oldY=this.sprites.y,this.sprites.y=this.sprites.y-10,this.floatTween=this.game.add.tween(this.sprites).to({y:"-20"},1400,Phaser.Easing.Quadratic.InOut).to({y:"20"},1400,Phaser.Easing.Quadratic.InOut).loop(),this.floatTween.start())},e.prototype.chat=function(t,e,i){f.Util.isValid(this.game)&&(f.Util.isValid(this.chatBubble)||(this.chatBubble=new v.ChatBubble(this.game,this,0,f.Util.isValid(e)?-e:-100,i)),this.chatBubble.setID(t+12))},e.prototype.chatText=function(t){var e=this;if(f.Util.isValid(this.game)){var i=this.game.prodigy.chat.getPhrase(t);f.Util.isValid(i)&&(f.Util.isValid(this.timer)&&window.clearInterval(this.timer),this.nameText.tint=this.chatColour,this.game.add.tween(this.name).to({y:this.nameText.oldY-10},500,Phaser.Easing.Quadratic.Out).to({y:this.nameText.oldY},500,Phaser.Easing.Quadratic.In).start(),this.nameText.setText('"'+i+'"'),this.nameText.x=Math.round(f.Util.isValid(this.source.nameX)?this.source.nameX:-.5*this.nameText.width),this.timer=window.setInterval(function(){e.endChat()},5e3))}},e.prototype.endChat=function(){this.nameText.tint=this.nameColour,f.Util.isValid(this.timer)&&window.clearInterval(this.timer),this.showName(this.nameText.visible)},e.prototype.hop=function(t,e,i,a){void 0===t&&(t=100),void 0===e&&(e=null),void 0===i&&(i=0),void 0===a&&(a=20);var n=this.game.add.tween(this).to({y:this.y-a},t,Phaser.Easing.Quadratic.Out).to({y:this.y},t,Phaser.Easing.Quadratic.In).start();this.game.add.tween(this).to({x:this.x+Math.floor(i/2)},t,Phaser.Easing.Linear.None).to({x:this.x+i},t,Phaser.Easing.Linear.None).start(),f.Util.isValid(e)&&n.onComplete.addOnce(e)},e.prototype.setPath=function(t,e,i){if(f.Util.isValid(t)&&f.Util.isValid(this.game)){this.stopTweens();for(var a=f.Util.isValid(i)?i:this.walkSpeed,n=null,o=null,r=this.x,s=this.y,l=t.length-1;l>=0;l--){var h=t[l];f.Util.isValid(h.x)||(h.x=r),f.Util.isValid(h.y)||(h.y=s);var c=Phaser.Math.distance(h.x,h.y,r,s);if(0!==c){f.Util.isValid(n)||(n=this.game.add.tween(this),o=this.game.add.tween(this.sprites.scale));var p=Math.abs(this.sprites.scale.x);n.to({x:h.x,y:h.y},6*c/a,Phaser.Easing.Linear.None),o.to({x:h.x>r?p:-p},1,Phaser.Easing.Linear.None),o.to({},6*c/a-100,Phaser.Easing.Linear.None),r=h.x,s=h.y}}f.Util.isValid(n)?(n.onComplete.addOnce(this.stand,this),f.Util.isValid(e)&&n.onComplete.addOnce(e),this.walk(),f.Util.isValid(n)&&n.start(),f.Util.isValid(o)&&o.start()):(f.Util.isValid(e)&&e(),this.stand())}},e.prototype.setValidPath=function(t,e,i,a){var n=this;f.Util.isValid(a)?t.findPath(this.x,this.y,e,i,function(t){n.setPath(t,a)}):t.findPath(this.x,this.y,e,i,this.setPath.bind(this))},e.prototype.walk=function(){this.sprites.callAll("play",null,"walk",this.speed),this.mode=0},e.prototype.flip=function(){this.sprites.scale.x=-1*this.sprites.scale.x},e.prototype.faceToward=function(t){this.x>t?this.sprites.scale.x=-1*this.setScale:this.sprites.scale.x=this.setScale},e.prototype.stand=function(){this.sprites.callAll("play",null,"stand",this.speed),this.x=Math.round(this.x),this.y=Math.round(this.y),this.mode=1},e.prototype.stopTweens=function(){f.Util.isValid(this.game)&&(this.game.tweens.removeFrom(this,!1),this.game.tweens.removeFrom(this.sprites))},e.prototype.startLoad=function(){this.outOfDate=!1},e.prototype.initListeners=function(){this.game.broadcaster.addAppListener(h.ECreatureEvents.LevelUp,this.onCreatureLevelUp.bind(this),this,this.source),this.game.broadcaster.addAppListener(h.ECreatureEvents.StarsAdded,this.onStarsAdded.bind(this),this,this.source),this.game.broadcaster.addAppListener(h.EFlyingStarsEvents.Done,this.onFxAnimationDone.bind(this),this,this.game),this.game.broadcaster.addAppListener(h.EBattleEvents.PopupClosed,this.processLevelEvent.bind(this),this,this)},e.prototype.stopListeners=function(){this.game.broadcaster.removeAppListener(h.ECreatureEvents.LevelUp,this,this.source),this.game.broadcaster.removeAppListener(h.ECreatureEvents.StarsAdded,this,this.source),this.game.broadcaster.removeAppListener(h.EFlyingStarsEvents.Done,this,this.game),this.game.broadcaster.removeAppListener(h.EBattleEvents.PopupClosed,this,this)},e.prototype.enableLocomotion=function(t,e){f.Util.isValid(this.locomotion)||(this.locomotion=new r.PlayerLocomotion(this.game),this.locomotion.setup(t,e,this.source===this.game.prodigy.player))},e.prototype.setNewTarget=function(t,e){f.Util.isValid(this.locomotion)&&this.locomotion.setNewTarget(t,e)},e.prototype.reload=function(t){this.outOfDate=!0,this.loadedCallback=t},e.prototype.update=function(){var e;(t.prototype.update.call(this),!this.loading&&this.outOfDate&&this.startLoad(),f.Util.isValid(this.source.emoteID)&&(this.emote(this.source.emoteID),this.source.emoteID=null),f.Util.isValid(this.source.chatID)&&(this.chatText(this.source.chatID),this.source.chatID=null),f.Util.isValid(this.source.danceID)&&(this.dance(this.source.danceID,this.game.prodigy.player.appearance.getGender()),this.source.danceID=null),f.Util.isValid(this.source.chatID)&&(this.chatText(this.source.chatID),this.source.chatID=null),this.source.firework)&&("object"==typeof this.source.firework&&this.game.prodigy.network.emitMessage(this.source.firework),(e=this.game.prodigy.event.create()).firework(this.x+20,this.y-200),e.start(),delete this.source.firework);this.source.confetti&&("object"==typeof this.source.confetti&&this.game.prodigy.network.emitMessage(this.source.confetti),(e=this.game.prodigy.event.create()).confetti(this.x+20,this.y-200),e.start(),delete this.source.confetti);this.source.goldwork&&("object"==typeof this.source.goldwork&&this.game.prodigy.network.emitMessage(this.source.goldwork),(e=this.game.prodigy.event.create()).goldwork(this.x+20,this.y-200),e.start(),delete this.source.goldwork)},e.prototype.emote=function(t,e,i){void 0===e&&(e=100),void 0===i&&(i=!1);var a=u.Items.getItem("emote",t);if(f.Util.isValid(this.chatBubble)&&this.chatBubble.destroy(),f.Util.isValid(this.game)&&f.Util.isValid(a))if(a.data.isAnimated){if(f.Util.isValid(this.animatedEmote)&&f.Util.isValid(this.animatedEmote.emoteAnimation)&&this.animatedEmote.emoteAnimation.isPlaying)return this.animatedEmote.emoteAnimation.stop(!0,!0),void this.animatedEmote.setEmoteData(a);this.animatedEmote=new _.AnimatedEmote(this.game,this,a)}else f.Util.isValid(this.animatedEmote)&&this.animatedEmote.emoteAnimation.isPlaying&&this.animatedEmote.emoteAnimation.stop(!0,!0),this.chatBubble=new v.ChatBubble(this.game,this,0,-e,i),this.chatBubble.setID(t)},e.prototype.moonwalk=function(){this.sprites.callAll("play",null,"walk",this.speed),this.mode=2},e.prototype.attack=function(){},e.prototype.damaged=function(){},e.prototype.isFacingLeft=function(){return this.sprites.scale.x<0},e.prototype.addOnClick=function(t){for(var e=0;e<this.sprites.length;e++)this.sprites.children[e].inputEnabled=!0,this.sprites.children[e].events.onInputDown.add(t.bind(this))},e.prototype.onFxAnimationDone=function(){this.fxQueue>0&&(this.fxQueue--,0===this.fxQueue&&this.game.broadcaster.broadcast(h.ECreatureEvents.AnimationDone,this.source,[]))},e.prototype.onStarsAdded=function(){!0===this.game.broadcaster.broadcast(h.EBattleEvents.GetIsRunning,this.game)&&(this.fxQueue++,this.flyingStars=new E.FlyingStars(this.game,this.x,this.y-(this.height-35)))},e.prototype.onCreatureLevelUp=function(t,e){"TileScreen"!==this.game.state.current&&"Arena"!==this.game.state.current&&this.fxQueue++},e.prototype.onLevelUpAnimationDone=function(){this.processLevelEvent()},e.prototype.processLevelEvent=function(){var t=this.source.getUnprocessedLevelEvents(),e=null;if(f.Util.isValid(t)&&t.length>0){var i=t.pop();f.Util.isValid(i.h)&&this.levelEventNewHeart(i.h),f.Util.isValid(i.a)&&this.levelEventNewSpell(this.game.prodigy.attacks.getAttack(i.a)),f.Util.isValid(i.e)&&this.levelEventEvolve(i.e),f.Util.isValid(i.g)&&(e=u.Items.getItem("giftBox",1)),f.Util.isValid(e)&&i.lvl<=this.game.prodigy.player.data.level?this.game.prodigy.giftBoxController.receiveGiftBox(this.processLevelEvent.bind(this),e):this.processLevelEvent()}else this.game.broadcaster.broadcast(h.ECreatureEvents.ProcessedAllEvents,this.game,[]),this.onFxAnimationDone()},e.prototype.levelEventNewHeart=function(t){for(var e=0;e<10;e++){var i=this.game.prodigy.create.sprite(this.x,this.y-50,"atlas-19","user-heart");this.game.broadcaster.broadcast(h.EScreenEvents.AddChild,this.game,[i,"content"]),i.anchor.setTo(.5,.5),i.alpha=.5,this.game.add.tween(i).to({x:470},600,Phaser.Easing.Linear.None).delay(300*e).to({alpha:0},1,Phaser.Easing.Linear.None).start(),this.game.add.tween(i).to({y:55},600,Phaser.Easing.Quadratic.Out).delay(300*e).start()}this.source.changeCurrentHearts(s.GameConstants.MAX_SAFE_INTEGER),this.callBattlePopup({type:p.BattleBase.LEVEL_UP,hearts:10*t,source:this.source})},e.prototype.levelEventNewSpell=function(t){for(var e=0;e<6;e++){var i=this.game.prodigy.icon.createFromData(t,this.x,this.y-50);i.onTextureLoaded=this.onLevelEventSpellIconLoaded.bind(this,i,e)}this.game.time.events.add(3e3,this.callBattlePopup.bind(this,{type:p.BattleBase.SPELL,source:this.source,spell:t}),this)},e.prototype.onLevelEventSpellIconLoaded=function(t,e){this.game.broadcaster.broadcast(h.EScreenEvents.AddChild,this.game,[t,"content"]),t.anchor.setTo(3,3),t.angle=60*e,this.game.add.tween(t).to({angle:"+1000"},3500,Phaser.Easing.Linear.None).to({alpha:0},500,Phaser.Easing.Linear.None).start(),this.game.add.tween(t.anchor).to({x:.5,y:.5},1500,Phaser.Easing.Linear.None).delay(2e3).to({x:5,y:5},500,Phaser.Easing.Linear.None).start()},e.prototype.levelEventEvolve=function(t){var e=this;this.game.broadcaster.broadcast(h.ECreatureEvents.EvolveStart,this.game),this.chat(1,this.sprites.height,!0),this.loadCompleted=!1,this.blinkCount=0,this.stopEvolve=!1,this.evolveTextTween=this.game.prodigy.effects.flashText(this.game.prodigy.gameContainer.Localizer.getText("CREATURE_TRYING_TO_EVOLVE",this.source.getName()),null,c.EffectFactory.PVP,c.EffectFactory.SMALL,s.GameConstants.MAX_SAFE_INTEGER,!0);var i=this.game.prodigy.create.sprite(this.x,0,"atlas-16","core-beam2");this.game.broadcaster.broadcast(h.EScreenEvents.AddChild,this.game,[i,"content"]),i.alpha=.75,i.anchor.setTo(.5,0),this.game.add.tween(i).to({height:720},250,Phaser.Easing.Linear.None).delay(500).start();var a=this.game.add.tween(i).to({alpha:.25},780,Phaser.Easing.Linear.None,!0,0,-1,!0);if(this.game.prodigy.player.hasMembership()){var n=this.createEvolutionOverlay("memberEvolve",t,a,i);a.onLoop.add(function(){e.blinkComplete(t,a,i,[n])},this)}else this.hasOpenedEvolve=!1,this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:m.EFunnelEventIDs.FunnelEvolutionMemberLock,name:m.EFunnelEventIDs.StageEvolutionSeeButton},!0),this.createEvolutionOverlay("nonMemberEvolve",t,a,i);this.game.prodigy.load.assets(b.MonsterContainer.getAssets(this.source),function(){e.loadComplete()})},e.prototype.createEvolutionOverlay=function(t,e,i,a){var n=this,o=this.game.state.states.Battle.menus,r=new y.Overlay(this.game,15,o);return r.addOnLoadCallback(function(){var o=r.getUiElement("evolveButton"),s=r.getUiElement("evolveLaterButton"),l=r.getUiElement("stopEvolveButton");r.getUiElement(t).visible=!0;var h=function(){n.blinkComplete(e,i,a,[r])},c=function(){r.visible=!1,setTimeout(h,3700)};o.onUpCallback=function(){n.openMembershipEvolve(c)},s.onUpCallback=function(){n.skipEvolveNonMember(h)},l.onUpCallback=function(){n.stopEvolving()}}),r.x=this.x,r.y=530,r},e.prototype.openMembershipEvolve=function(t){var e=this;this.hasOpenedEvolve||(this.hasOpenedEvolve=!0,this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:m.EFunnelEventIDs.FunnelEvolutionMemberLock,name:m.EFunnelEventIDs.StageEvolutionClickButton},!0));this.game.prodigy.open.membershipInfo(function(){e.game.prodigy.player.hasMembership()&&(e.evolveTextTween.stop(!0),e.game.prodigy.effects.flashText(e.game.prodigy.gameContainer.Localizer.getText("CREATURE_IS_EVOLVING",e.source.getName()),null,c.EffectFactory.PVP,c.EffectFactory.SMALL,3500),e.blinkCount=20,t())},{conversionFunnelName:m.EFunnelEventIDs.FunnelEvolutionMemberLock,conversionStage:m.EFunnelEventIDs.StageEvolutionConverted},g.MembershipInfo.EVOLVE_PETS)},e.prototype.skipEvolveNonMember=function(t){this.stopEvolve=!0,t()},e.prototype.loadComplete=function(t,e){f.Util.isValid(this.game)&&e&&(this.loadCompleted=!0)},e.prototype.stopEvolving=function(){this.stopEvolve=!0},e.prototype.blinkComplete=function(t,e,i,a){if(this.loadCompleted&&!(this.blinkCount<5)||this.stopEvolve){if(f.Util.isValid(a))for(var n=0;n<a.length;n++)a[n].visible=!1;if(f.Util.isValid(this.evolveTextTween)&&this.evolveTextTween.stop(!0),e.stop(),this.game.add.tween(i).to({alpha:0},300,Phaser.Easing.Linear.None,!0),this.game.add.tween(i.scale).to({x:5},300,Phaser.Easing.Linear.None,!0),this.stopEvolve)this.game.prodigy.effects.flashText(this.game.prodigy.gameContainer.Localizer.getText("CREATURE_STOPPED_EVOLVING",this.source.getName()),null,c.EffectFactory.BOTTOM,c.EffectFactory.SMALL,2500),this.game.time.events.add(3e3,this.processLevelEvent.bind(this),this);else{this.source.evolve(t),this.reload();var r=u.Items.getItem("pet",t).metadata,s=.5;null!==o(r,"assets.default.battleScale",null)&&(s=r.assets.default.battleScale),this.scale.x=s,this.scale.y=s,this.game.prodigy.effects.flashText(this.source.getSourceName()+"!",null,c.EffectFactory.BOTTOM,c.EffectFactory.MEDIUM,2500),this.game.time.events.add(3e3,this.processLevelEvent.bind(this),this)}this.game.time.events.add(3e3,this.broadcastEvolveEnd.bind(this)),this.chatBubble.visible=!1}else this.blinkCount++},e.prototype.broadcastEvolveEnd=function(){this.game.broadcaster.broadcast(h.ECreatureEvents.EvolveEnd,this.game,[this])},e.prototype.callBattlePopup=function(t){this.game.prodigy.open.battleLevel(this,t)},e.prototype.doBarrierAnimation=function(){this.barrierSprite.alpha=1,this.barrierSpriteSpark.alpha=1,this.barrierSprite.play("deflect"),this.barrierSpriteSpark.play("spark")},e.prototype.doBarrierBreakAnimation=function(){this.barrierSpriteBreak.alpha=1,this.barrierSpriteSpark.alpha=1,this.barrierSpriteBreak.play("break"),this.barrierSpriteSpark.play("spark")},e.prototype.addBarrierSpritesheet=function(t,e){e.alpha=0,e.scale.x=2.33,e.scale.y=2.33,e.smoothed=!1,e.animations.add(t,null,10,!1),e.animations.getAnimation(t).onComplete.add(function(){e.alpha=0},this)},e.prototype.destroy=function(){f.Util.isValid(this.locomotion)&&(this.locomotion.destroy(),this.locomotion=null),t.prototype.destroy.call(this)},e.prototype.retreat=function(){},e}(l.Element);e.CreatureContainer=O},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=i(4),s=i(38),l=function(t){function e(e,i){var a=t.call(this,e)||this;return a.nickname=null,a.setData(i),a}return n(e,t),e.prototype.setData=function(e){if(t.prototype.setData.call(this,e),o.Util.isValid(this.data)){this.data.ID=o.Util.isValid(e.ID)?e.ID:e.gameID,this.nickname=this.data.nickname,delete this.data.R;var i=r.Items.getItem("pet",this.data.ID);this.source=i.data,o.Util.isValid(i.metadata.assets.default)&&(this.source.assetType=i.metadata.assets.default.type),this.type=this.source.life}},e.prototype.canCatch=function(t){return!!o.Util.isValid(t.bounty)||!o.Util.isValid(this.nickname)},e.prototype.getAttacks=function(t){if(o.Util.isValid(this.data.attacks))return this.data.attacks;var e=[];if(o.Util.isValid(this.data.evolve)){for(var i=1,a=0;a<this.data.evolve.length;a++){var n=this.data.evolve[a],l=r.Items.getItem("pet",n.ID).data.curve;e=e.concat(s.Creature.getAttacksFromCurve(l,i,n.lvl)),i=n.lvl}e=e.concat(s.Creature.getAttacksFromCurve(r.Items.getItem("pet",this.getID()).data.curve,i,this.getLevel()))}else e=e.concat(s.Creature.getAttacksFromCurve(r.Items.getItem("pet",this.getID()).data.curve,1,this.getLevel()));return s.Creature.getAttacksOfType(o.Util.removeDuplicates(e),t)},e.prototype.getMaxHearts=function(e){void 0===e&&(e=null);var i=120;if(o.Util.isValid(this.data.evolve)){for(var a=1,n=0;n<this.data.evolve.length;n++){var l=this.data.evolve[n],h=r.Items.getItem("pet",l.ID).data.life;i+=s.Creature.getHeartsFromCurve(h,a,l.lvl-1),a=l.lvl}i+=s.Creature.getHeartsFromCurve(this.type,a,this.getLevel())}else i+=t.prototype.getMaxHearts.call(this,e);return i=Math.round(i*this.modifiers.maxHearts),Math.min(i,s.Creature.MAX_HEARTS)},e.prototype.evolve=function(t,e){var i=o.Util.isValid(e)?e:this.getLevel();o.Util.isValid(this.data.evolve)||(this.data.evolve=[]),this.data.evolve.push({ID:this.data.ID,lvl:i}),this.data.ID=t,this.source=r.Items.getItem("pet",this.data.ID).data,this.type=this.source.life},e.prototype.getID=function(){return this.data.ID},e.prototype.getName=function(){return o.Util.isValid(this.nickname)?this.nickname:this.source.name},e.prototype.getSourceName=function(){return this.source.name},e.prototype.getElement=function(){return this.source.element},e.prototype.generate=function(t,e){var i=Math.max(1,t-e);this.data.stars=s.Creature.starsToLevel(i-1),this.data.level=i},e.prototype.getLevelingCurve=function(t){for(var e=[],i=[],a=r.Items.getItem("pet",this.getID()).data.curve,n=0;n<a.length;n++){var s=a[n];o.Util.isValid(s.e)&&s.lvl<=t?i.push(s):s.lvl===t&&e.push(s)}return i.concat(e)},e.prototype.getDrops=function(){return r.Items.getItemDrops(this.data.drops).concat([{type:"gold",N:100}])},e}(s.Creature);e.Monster=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),n=function(){function t(t){this.current=null,this.noSkipFrames=!1,this.tweens=[],this.tweenVars={},this.onEndCallbacks=[],this.index=0,this.src=t}return t.prototype.start=function(t,e,i){this.current=null,this.index=0,this.startTime=a.Util.isValid(t)?t:(new Date).getTime();for(var n=0;n<this.tweens.length;n++){var o=this.tweens[n];o.start=0===n?this.startTime:this.tweens[n-1].end,o.end=o.start+o.duration}this.noSkipFrames=!!a.Util.isValid(i)&&i,this.onComplete=e},t.prototype.end=function(t){a.Util.isValid(t)&&this.onEndCallbacks.push(t)},t.prototype.set=function(t,e,i,a){void 0===a&&(a=1),this.tweens.push({type:"set",tag:t,duration:e.length*i*a,delay:i,frames:e,lastUpdate:0})},t.prototype.delay=function(t){this.tweens.push({type:"delay",duration:t})},t.prototype.update=function(t){if(a.Util.isValid(this.startTime)){var e=a.Util.isValid(t)?t:(new Date).getTime();if(a.Util.isValid(this.current)){var i=Math.floor((e-this.current.start)/this.current.delay)*this.current.delay+this.current.start,n=e-this.current.delay,o=n-this.current.lastUpdate>this.current.delay;if(!this.noSkipFrames&&n<=this.current.lastUpdate||o)return"set"!==this.current.type||a.Util.isValid(this.tweenVars.next)||(this.tweenVars.next=this.current.start+this.current.delay,this.tweenVars.frame=0,this.src[this.current.tag]=this.current.frames[0]),o&&(this.current.lastUpdate=i),null;if(this.current.lastUpdate=i,"set"===this.current.type)if(a.Util.isValid(this.tweenVars.next)||(this.tweenVars.next=this.current.start+this.current.delay,this.tweenVars.frame=0,this.src[this.current.tag]=this.current.frames[0]),e>=this.current.end)this.src[this.current.tag]=this.current.frames[this.current.frames.length-1];else if(e>=this.tweenVars.next){if(this.tweenVars.next+=this.current.delay,this.tweenVars.frame++,this.tweenVars.frame>=this.current.frames.length){this.tweenVars.frame=0;for(var r=0;r<this.onEndCallbacks.length;r++)this.onEndCallbacks[r]()}this.src[this.current.tag]=this.current.frames[this.tweenVars.frame]}e>=this.current.end&&(this.current=null,a.Util.isValid(this.onComplete)&&this.onComplete())}a.Util.isValid(this.current)||(this.tweenVars={},this.index>=this.tweens.length?this.startTime=null:(this.current=this.tweens[this.index],this.index++))}},t}();e.TweenController=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(){}return t.FEATURE_HOUSE_MOVING="FEATURE_HOUSE_MOVING",t.FEATURE_HOUSE_VISITING="FEATURE_HOUSE_VISITING",t.FEATURE_STYLIST="FEATURE_STYLIST",t.FEATURE_CLOUD_MOUNT="FEATURE_CLOUD_MOUNT",t.FEATURE_SOCIAL_FEED="FEATURE_SOCIAL_FEED",t.FEATURE_BADGES="FEATURE_BADGES",t.BREADCRUMB_CLICKED_WORLD_MAP_BUTTON="BREADCRUMB_CLICKED_WORLD_MAP_BUTTON",t.BREADCRUMB_CLICKED_WORLD_MAP_HOUSE="BREADCRUMB_CLICKED_WORLD_MAP_HOUSE",t.BREADCRUMB_CLICKED_HOUSE_LOCK_BUTTON="BREADCRUMB_CLICKED_HOUSE_LOCK_BUTTON",t.BREADCRUMB_CLICKED_HOUSE_MOVE_BUTTON="BREADCRUMB_CLICKED_HOUSE_MOVE_BUTTON",t.BREADCRUMB_CLICKED_CARD_VISIT_BUTTON="BREADCRUMB_CLICKED_CARD_VISIT_BUTTON",t.BREADCRUMB_CLICKED_CARD_STYLIST_BUTTON="BREADCRUMB_CLICKED_CARD_STYLIST_BUTTON",t.BREADCRUMB_CLICKED_DAB="BREADCRUMB_CLICKED_DAB",t.BREADCRUMB_CLICKED_DAB_EMOTE_BUTTON="BREADCRUMB_CLICKED_DAB_EMOTE_BUTTON",t.BREADCRUMB_CLICKED_DAB_DANCE_BUTTON="BREADCRUMB_CLICKED_DAB_DANCE_BUTTON",t.BREADCRUMB_CLICKED_DAB_DAB_BUTTON="BREADCRUMB_CLICKED_DAB_DAB_BUTTON",t.BREADCRUMB_TITAN_INTRO="BREADCRUMB_TITAN_INTRO",t.BREADCRUMB_TITAN_WATCHED_INTRO="BREADCRUMB_TITAN_WATCHED_INTRO",t.BREADCRUMB_TITAN_HARVEY_TALKED="BREADCRUMB_TITAN_HARVEY_TALKED",t.BREADCRUMB_CLOUD_MOUNT_TOGGLED="BREADCRUMB_CLOUD_MOUNT_TOGGLED",t.BREADCRUMB_SOCIAL_FEED_OPENED="BREADCRUMB_SOCIAL_FEED_OPENED",t.BREADCRUMB_CLICKED_SOCIAL_BUTTON="BREADCRUMB_CLICKED_SOCIAL_BUTTON",t.BREADCRUMB_CLICKED_BADGES_BUTTON="BREADCRUMB_CLICKED_BADGES_BUTTON",t}();e.Breadcrumbs=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.FunnelBuyMemberItem="Buy-Member-Item",t.FunnelSecondWheelSpin="Second-Wheel-Spin",t.FunnelEnterDarkTower="Enter-Dark-Tower",t.FunnelCatchMorePets="Catch-More-Pets",t.FunnelOpenMemberChestBattle="Open-Member-Chest-Battle",t.FunnelOpenMemberChestWorld="Open-Member-Chest-World",t.FunnelEquipNewLockedItem="Equip-New-Locked-Item",t.FunnelEquipBackpackLockedItem="Equip-Backpack-Locked-Item",t.FunnelEquipCardLockedItem="Equip-Card-Locked-Item",t.FunnelCatchPetAgain="Catch-Pet-Again",t.FunnelUseBoost="Use-Boost",t.FunnelClickHUDButton="Click-HUD-Button",t.FunnelEvolutionMemberLock="Evolution-Member-Lock",t.StageClickItem="Click-Item",t.StageClickBuy="Click-Buy",t.StageClickMembership="Click-Membership",t.StageClickParentConfirmation="Click-Parent-Confirmation",t.StageClickSpinAgain="Click-Spin-Again",t.StageEnterTower="Enter-Tower",t.StageCatchPet="Catch-Pet",t.StageOpenChest="Open-Chest",t.StageEquipItem="Equip-Item",t.StageCatchPetFail="Catch-Pet-Fail",t.StageTryAgain="Try-Again",t.StageClickBoost="Click-Boost",t.StageClickStars="Click-Stars",t.StageClickButton="Click-Button",t.StageEvolutionSeeButton="Evolution-See-Button",t.StageEvolutionClickButton="Evolution-Click-Button",t.StageEvolutionConverted="Evolution-Converted"}(e.EFunnelEventIDs||(e.EFunnelEventIDs={}))},function(t,e){var i=Array.isArray;t.exports=i},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(i(7).Map);e.BonfireSpireMap=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(3),s=i(4),l=i(0),h=function(t){function e(i,a,n,h,c,p){void 0===c&&(c={}),void 0===p&&(p=null);var u=t.call(this,i,a,n,h)||this;u.icon=null,u.selected=!1,u.callback=null,u.btnGroup=null,u.bg=null,u.text=null,u.iconSide=null,u.isActive=!0,u.callback=p,u.btnGroup=u.game.prodigy.create.element(u,0,0);var d=c,g=l.Util.isValid(d.size)?d.size:e.SMALL,y=null;switch(g){case e.CONFIRM:y="btn-med-confirm";break;case e.TALL:y="btn-tall";break;case e.MED:y="btn-med";break;case e.MINI:y="btn-mini";break;case e.LG:y="btn-lg";break;case e.GRADE:y="btn-grade";break;default:y="btn-small"}var f=l.Util.isValid(d.text)?d.text:"",m=0,_=l.Util.isValid(d.textY)?d.textY:0,v=g-85,E=l.Util.isValid(d.atlas)?d.atlas:s.Items.getIconAtlas(d.icon),b=d.icon,O=l.Util.isValid(d.needsMemberIcon)&&d.needsMemberIcon;if(u.iconSide=d.iconSide,u.bg=u.game.prodigy.create.sprite(0,0,"atlas-18",y),u.btnGroup.add(u.bg),l.Util.isValid(b)?(u.icon=u.btnGroup.add(u.game.prodigy.create.sprite(0,0,E,b)),u.setIcon(b),m="right"===d.iconSide?10:u.icon.width+15,v=u.bg.width-25-u.icon.width):(v=g-20,m=10),u.text=u.game.prodigy.create.font(u.btnGroup,m,_,""+f,{size:36,fontID:9,width:v,align:"center"}),O){var T=u.game.prodigy.create.sprite(0,0,"atlas-21","mail-member");T.x=u.bg.width-T.width/2,T.y=-T.height/2,u.btnGroup.add(T)}if(u.bg.inputEnabled=!0,u.bg.events.onInputDown.add(u.mouseDown,u),u.bg.events.onInputUp.add(u.mouseUp,u),u.bg.events.onInputOver.add(u.mouseOver,u),u.bg.events.onInputOut.add(u.mouseOut,u),o.GameConstants.get("GameConstants.Build.DEBUG")){var A=null;l.Util.isValid(d.text)?(A=d.text,u.game.broadcaster.addAppListener(r.EDebugEvents.AutoClick,u.onDebugAutoClick.bind(u),u)):l.Util.isValid(d.icon)&&(A=d.icon),l.Util.isValid(A)||u.game.prodigy.automation.addTrigger({ID:"autoclick-"+A,context:u,callback:function(){return{x:u.worldPosition.x+.5*u.bg.width,y:u.worldPosition.y+.5*u.bg.height}}})}return u.onDestroy.add(u.handleDestroy.bind(u)),u}return n(e,t),e.prototype.setActive=function(){this.isActive=!0,this.bg.tint=16777215,this.tintActive()},e.prototype.setInactive=function(){this.isActive=!1,this.bg.tint=5789784,this.icon&&(this.icon.tint=5789784)},e.prototype.select=function(){this.selected=!0,this.bg.tint=7447253,this.icon&&(this.icon.tint=7447253)},e.prototype.deselect=function(){this.selected=!1,this.bg.tint=16777215,this.tintActive()},e.prototype.setIcon=function(t){this.icon.frameName=l.Util.isString(t)?t:null,this.icon.x="right"===this.iconSide?this.bg.width-this.icon.width-10:10,this.icon.y=-Math.floor((this.icon.height-50)/2),"btn-tall"===this.bg.frameName&&(this.icon.x=Math.floor((100-this.icon.width)/2),this.icon.y=Math.floor((200-this.icon.height)/2))},e.prototype.setEnabled=function(t){this.isActive=t,this.alpha=this.isActive?1:.5},e.prototype.setText=function(t){this.text.setText(t)},e.prototype.mouseDown=function(){this.isActive&&(this.game.prodigy.audio.playSFX(18,"pop"),l.Util.isValid(this.callback)&&this.callback(),this.btnGroup.y=0)},e.prototype.mouseUp=function(){this.isActive&&(this.btnGroup.y=-3)},e.prototype.mouseOver=function(){this.isActive&&(this.btnGroup.y=-3)},e.prototype.mouseOut=function(){this.isActive&&(this.btnGroup.y=0)},e.prototype.tintActive=function(){this.icon&&(this.icon.tint=16777215)},e.prototype.handleDestroy=function(){o.GameConstants.get("GameConstants.Build.DEBUG")&&l.Util.isValid(this.text.text)&&(this.game.prodigy.automation.removeAllTriggers(this),this.game.broadcaster.removeAppListener(r.EDebugEvents.AutoClick,this))},e.prototype.onDebugAutoClick=function(t){l.Util.isValid(this.text.text)&&(l.Util.isValid(t)?t===this.text.text&&this.mouseDown():l.Util.log("Button Text: "+this.text.text))},e.createNextButton=function(t,e,i,a,n){return t.prodigy.create.textButton(e,i,a,{icon:"next",iconSide:"right",text:t.prodigy.gameContainer.Localizer.getText("BUTTON_NEXT")},n)},e.createCloseButton=function(t,e,i,a,n){return t.prodigy.create.textButton(e,i,a,{icon:"close",text:t.prodigy.gameContainer.Localizer.getText("BUTTON_CLOSE")},n)},e.createYesButton=function(t,e,i,a,n){return t.prodigy.create.textButton(e,i,a,{icon:"yes",text:t.prodigy.gameContainer.Localizer.getText("BUTTON_YES")},n)},e.createNoButton=function(t,e,i,a,n){return t.prodigy.create.textButton(e,i,a,{icon:"close",text:t.prodigy.gameContainer.Localizer.getText("BUTTON_NO")},n)},e.MINI=100,e.SMALL=200,e.TALL=100.1,e.MED=300,e.CONFIRM=301,e.LG=350,e.GRADE=80,e}(i(5).Element);e.TextButton=h},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(4),s=i(0),l=function(t){function e(i,a,n,o,l,h,c,p){var u=t.call(this,i,a,n,o,l,h)||this;return 2!==o||s.Util.isValid(r.Items.getItem("pet",n.data.ID).metadata.assets.default)||(u.sprites.scale.x=u.sprites.scale.y=2),u.forceSimple=c,u.assets=e.getAssets(u.source,u.setScale,u.forceSimple),u.onClick=p,u}return n(e,t),e.getAssets=function(t,e,i,a){var n=r.Items.getItem("pet",t.data.ID).metadata.assets,o=null,l=[];if("default"===(o=1!==e&&s.Util.isValid(n.default)?"default":"reduced")&&i&&!a&&(o="small"),s.Util.isValid(n.default)&&"spine"===n.default.type)l.push("spine-"+n.default.ID);else{var h=t.getID();switch(l.push(o+"-pet-"+h),h){case 125:l=l.concat(["sfx-5"]);break;case 126:l=l.concat(["sfx-2"]);break;case 127:l=l.concat(["sfx-3"]);break;case 128:l=l.concat(["sfx-6"]);break;case 129:l=l.concat(["sfx-4"])}}return l},e.prototype.startLoad=function(i){var a=this;t.prototype.startLoad.call(this),this.loading=!0,this.assets=e.getAssets(this.source,this.setScale,this.forceSimple),s.Util.isValid(i)&&(this.assets=this.assets.concat(i)),this.game.prodigy.load.assets(this.assets,function(){a.setup()})},e.prototype.setup=function(t,e){if(s.Util.isValid(this.game)&&(!s.Util.isValid(e)||e)&&s.Util.isValid(this.assets)){this.sprites.removeAll(!0);var i=this.assets[0],a=null,n=r.Items.getItem("pet",this.source.data.ID).metadata.assets.default;s.Util.isValid(n)&&(a=n.battleScale);var o=this.game.prodigy.assets.getAsset(i);if(s.Util.isValid(o)&&s.Util.isValid(o.battleScale)?this.battleScale=o.battleScale:s.Util.isValid(a)?this.battleScale=a:this.battleScale=1,this.forceSimple){l=this.game.prodigy.assets.getImageBounds(i);this.body=this.game.prodigy.create.sprite(0,0,i),this.sprites.add(this.body),this.body.x=-l[0],this.body.y=-this.body.height,this.onClick&&(this.body.inputEnabled=!0,this.body.events.onInputDown.add(this.onClick))}else{var l,h=-(l=this.game.prodigy.assets.getImageBounds(i))[0],c=-l[3];this.body=this.game.prodigy.create.sprite(h,c,i),this.sprites.add(this.body),this.onClick&&(this.body.inputEnabled=!0,this.body.events.onInputDown.add(this.onClick)),this.sprites.callAll("animations.add","animations","walk",[0,1,2,3,4,5,6,7],10,!0,!0),this.sprites.callAll("animations.add","animations","stand",[8,9,10,11,12,13,14,15],10,!0,!0);try{this.body.animations.add("attack",[16,17,18,19,20,21,22,23],10).onComplete.add(this.stand,this)}catch(t){}this.sprites.callAll("play",null,"stand")}Math.abs(this.sprites.scale.x)>1&&this.sprites.setAll("smoothed",!1),this.complete=!0,this.loading=!1,s.Util.isValid(this.loadedCallback)&&this.loadedCallback(this)}},e.prototype.attack=function(){this.sprites.callAll("play",null,"attack")},e.prototype.damaged=function(){this.game.add.tween(this).to({alpha:.5},100,Phaser.Easing.Quadratic.InOut,!0,0,o.GameConstants.MAX_SAFE_INTEGER).start(),this.speed=0},e}(i(14).CreatureContainer);e.MonsterContainer=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(i(7).Map);e.SkywatchMap=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(i(7).Map);e.ShiverchillMap=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(803),r=i(802),s=i(10),l=i(2),h=i(32),c=i(4),p=i(29),u=i(0),d=i(18),g=i(37),y=i(236),f=function(t){function e(e,i,a,n,o,r,s){var l=this;e.prodigy.player.memberPrompt=!0;var h=[],c=0;if(u.Util.isValid(s))h.push(s);else if(r)h.push("congrats"),h.push("amazingThings");else{var p=e.prodigy.player;p.isMember||0!==p.backpack.hasItem("mount",1)||h.push("cloudMount"),h.push("monthlyPackage"),h.push("amazingThings")}return u.Util.isValid(o)&&(c=h.length-1),(l=t.call(this,e,i,11,h,null,["atlas-128"],c)||this).promotedAd=o,l.analyticEvents=u.Util.isValid(n)?n:{conversionFunnelName:"",conversionFunnelMetadata:""},l.hideSignup=e.prodigy.player.isMember,l.dialogue=null,l.setCloseCallback(a),l}return n(e,t),e.prototype.preprocess=function(){this.queuePostCreateCallback(this.playRandomNootCongrats.bind(this)),t.prototype.preprocess.call(this)},e.prototype.close=function(){this.game.prodigy.audio.stopVoice(),t.prototype.close.call(this)},e.prototype.setup=function(){this.loadAds(),u.Util.isValid(this.leftArrowSprite)&&this.leftArrowSprite.flipHorizontally(),t.prototype.setup.call(this)},e.prototype.setCallbacks=function(){this.buttonCallbacks.signUpButton=this.onMembershipButtonClick.bind(this,"MemberButton"),this.buttonCallbacks.closeButton=this.close.bind(this),t.prototype.setCallbacks.call(this)},e.prototype.loadAds=function(){if(this.availableIndices=this.getFilteredIconArray().map(function(t,e){return e}),u.Util.isValid(this.promotedAd))for(var t=0;t<e.featureIconConfigs.length;t++)if(o(this.promotedAd,e.featureIconConfigs[t])){this.currentConfigIndex=t;break}this.adIcons=[],u.Util.isValid(this.currentConfigIndex)&&(this.adIcons.push(this.availableIndices[this.currentConfigIndex]),this.availableIndices.splice(this.currentConfigIndex,1)),this.adIcons=this.adIcons.concat(r(this.availableIndices,15))},e.prototype.playRandomNootCongrats=function(){if("congrats"===this.pageSets[0]){var t=p.Random.integerInRange(184,190);this.dialogue=this.game.prodigy.dialogue.create(),this.dialogue.setText(t),this.dialogue.start("noot",!0,null,2,!0,this.dialogue.cleanup.bind(this.dialogue))}},e.prototype.onMembershipButtonClick=function(t){if(!this.game.prodigy.player.isMember){this.game.prodigy.network.sendEvent("member-ad",{status:"convert",type:"new",feature:t}),this.game.prodigy.network.sendAnalytics("Purchase-Membership-Click",t),u.Util.isValid(this.analyticEvents)&&this.game.prodigy.network.sendConversionFunnelEvent(this.analyticEvents.conversionFunnelName,d.EFunnelEventIDs.StageClickMembership,this.analyticEvents.conversionFunnelMetadata),this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:this.analyticEvents.conversionFunnelName,name:d.EFunnelEventIDs.StageClickMembership},!0);var e=this.game.prodigy.player.locationSelectionType===l.GameConstants.get("GameConstants.LocationSelection.SCHOOL");this.game.prodigy.open.isMenuOpen(y.MembershipParent)||(this.game.prodigy.audio.stopVoice(),this.game.prodigy.open.membershipParent(this,!e,null,null,this.analyticEvents))}},e.prototype.onPageLoaded=function(){if(t.prototype.onPageLoaded.call(this),this.hideSignup&&u.Util.isValid(this.page.signUpButton)&&(this.page.signUpButton.visible=!1),"monthlyPackage"===this.pageName?this.page[this.pageName].children[4].visible=!this.game.prodigy.player.isMember:"amazingThings0"===this.pageName?this.renderFeatureIcons(0,this.page[this.pageName].children[4]):"amazingThings1"===this.pageName?(this.renderFeatureIcons(3,this.page[this.pageName].children[4]),this.renderFeatureIcons(6,this.page[this.pageName].children[5])):"amazingThings2"===this.pageName&&(this.renderFeatureIcons(9,this.page[this.pageName].children[4]),this.renderFeatureIcons(12,this.page[this.pageName].children[5])),"amazingThings0"===this.pageName){var e=this.page[this.pageName].children[3];this.generateGearIcons(6,e)}"memberLockedPets"===this.pageName&&u.Util.isValid(this.spineMonsterConfig)&&new g.UIParser(this.game).createUIElements([this.spineMonsterConfig],this.page.spineBG);this.game.prodigy.audio.stopVoice()},e.prototype.generateGearIcons=function(t,e){for(var i=null,a=[{category:"boots",count:0},{category:"hat",count:0},{category:"outfit",count:0},{category:"weapon",count:0}],n=[],o=0;o<a.length;o++)for(var l=c.Items.getCategoryItems(a[o].category),p=0;p<l.length;p++)(i=l[p]).category=a[o].category,1===s(i,"data.member",0)&&(u.Util.isValid(i.data.memberAd)||s(i,"data.memberAd",0)>0)&&(n.push(i),a[o].count++);var d=r(n,t);for(o=0;o<t;o++)this.game.prodigy.create.item(e,102*o+20,60,{ID:d[o].ID,type:d[o].category},h.EItemInfoMode.IconNoBackground)},e.prototype.renderFeatureIcons=function(t,i,a,n){void 0===a&&(a=3),void 0===n&&(n=19);for(var o=t;o<this.adIcons.length&&o<t+a;o++){var r=void 0,s=this.adIcons[o];r=e.featureIconConfigs[s],2===o&&(r=e.MEMBER_BOX,0===this.game.prodigy.player.backpack.hasItem("mount",1)&&Math.random()>=.5&&(r=e.CLOUD_MOUNT)),this.game.prodigy.create.button(i,(n+166)*(o-t),0,"atlas-128",r.frameName,this.onMembershipButtonClick.bind(this,r.trackingEvent))}},e.prototype.getFilteredIconArray=function(){var t=this;return e.featureIconConfigs.filter(function(e){return!u.Util.isValid(e.splitTestDefinition)||u.Util.inTestGroups.apply(t,[t.game.prodigy.player,e.splitTestDefinition])})},e.prototype.setSpineMonsterConfig=function(t){this.spineMonsterConfig=t},e.DEFAULT={frameName:"icons/iconbox-TEST",trackingEvent:"Feature-MemberChests"},e.MEMBER_CHESTS={frameName:"icons/member-chests",trackingEvent:"Feature-MemberChests"},e.BUDDIES={frameName:"icons/cute-and-cool-buddies",trackingEvent:"Feature-Buddies"},e.HOUSE_ITEMS={frameName:"icons/special-house-furniture",trackingEvent:"Feature-HouseItems"},e.NEW_HOUSE={frameName:"icons/new-house",trackingEvent:"Feature-NewHouse"},e.MORE_GOLD={frameName:"icons/more-gold",trackingEvent:"Feature-MoreGold"},e.MORE_EXP={frameName:"icons/level-faster",trackingEvent:"Feature-LevelFaster"},e.WHEEL_SPIN={frameName:"icons/more-spins",trackingEvent:"Feature-MoreSpins"},e.MEMBER_PETS={frameName:"icons/catch-more-pets",trackingEvent:"Feature-MorePets"},e.CATCH={frameName:"icons/second-catch",trackingEvent:"Feature-SecondCatchChance"},e.BOOSTS={frameName:"icons/minigame-boosts",trackingEvent:"Feature-MinigameBoosts"},e.STYLE={frameName:"icons/cool-new-styles",trackingEvent:"Feature-NewStyles"},e.TOWER={frameName:"icons/climb-the-dark-tower",trackingEvent:"Feature-DarkTower"},e.POTIONS={frameName:"icons/potions",trackingEvent:"Feature-PowerfulPotions"},e.DANCE={frameName:"icons/dab-dance",trackingEvent:"Feature-Dab"},e.CLOUD_MOUNT={frameName:"icons/cloud-mount",trackingEvent:"Feature-CloudMount"},e.MEMBER_BOX={frameName:"icons/memberbox-popup-icon",trackingEvent:"memberbox"},e.MORPH_MARBLE={frameName:"icons/morph-marble",trackingEvent:"Feature-MorphMarble"},e.PREMIUM_ITEM={frameName:"icons/iconbox-TEST",trackingEvent:"PremiumItems"},e.VISIT_HOUSE={frameName:"icons/friends-visit-house",trackingEvent:"Feature-VisitHouse"},e.BIGGER_ROSTER={frameName:"icons/iconbox-TEST",trackingEvent:"BiggerRoster"},e.NICKNAME={frameName:"icons/iconbox-TEST",trackingEvent:"Nickname"},e.EVOLVE_PETS={frameName:"icons/evolve-pets",trackingEvent:"Nickname"},e.featureIconConfigs=[e.MEMBER_CHESTS,e.TOWER,e.BUDDIES,e.MORE_GOLD,e.MORE_EXP,e.WHEEL_SPIN,e.MEMBER_PETS,e.CATCH,e.BOOSTS,e.STYLE,e.HOUSE_ITEMS,e.NEW_HOUSE,e.POTIONS,e.DANCE,e.MORPH_MARBLE,e.EVOLVE_PETS],e}(i(235).PaginatedMenu);e.MembershipInfo=f},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),r=i(4),s=i(0),l=i(27),h=i(37),c=function(t){function e(e,i,a,n,o){void 0===a&&(a=null),void 0===o&&(o=[]);var r=t.call(this,e,i)||this;return r.isModal=!0,r.isLoaded=!1,r.assetID=null,r.isNotificationCell=!0,r.background=null,r.uiElementTemplates=[],r.onClose=null,r.uiElements=[],r.uiRoot=null,r.configModifiers=null,r.onLoadCallbacks=[],r.configObj=null,s.Util.isValid(r.game.prodigy.notifications)&&r.game.prodigy.notifications.clearNotifications(),r.background=e.prodigy.create.element(r),r.configModifiers=s.Util.isValid(n)?n:{},s.Util.isValid(r.configModifiers.isModal)&&(r.isModal=r.configModifiers.isModal),s.Util.isValid(a)&&(r.assetID=a),s.Util.isValid(r.assetID)?r.startLoad(o.concat("atlas-157"),r.startLoadComplete.bind(r)):s.Util.log("Config file for this UI has not been specified",s.Util.ERROR),r.onLoadCallbacks=[],r}return n(e,t),e.prototype.init=function(t){t.add(this),this.process()},e.prototype.close=function(){s.Util.isValid(this.game)&&s.Util.isValid(this.game.prodigy)&&(s.Util.isValid(this.game.broadcaster)&&(this.game.broadcaster.removeAppListener(o.EDebugEvents.AutoClickUI,this,this.game),this.game.broadcaster.removeAppListener(o.EDebugEvents.AutoClickList,this,this.game)),this.game.prodigy.open.setActiveMenu());try{s.Util.isValid(this.onClose)&&this.onClose.apply(this,arguments)}catch(t){}s.Util.isValid(this.game)&&this.game.prodigy.open.close(this),this.destroy()},e.prototype.processConfigObj=function(){if(s.Util.isValid(this.assetID)&&(this.configObj=r.Items.getItem("ui",this.assetID).data),s.Util.isValid(this.configModifiers)&&s.Util.isValid(this.configObj.elements)){if(s.Util.isValid(this.configModifiers.modifyProperty))for(var t=0;t<this.configModifiers.modifyProperty.length;t++){var e=this.configModifiers.modifyProperty[t];this.updateConfigProperty(this.configObj.elements,e.element,e.property,e.value)}if(s.Util.isValid(this.configModifiers.addChildren))for(t=0;t<this.configModifiers.addChildren.length;t++){e=this.configModifiers.addChildren[t];this.addConfigChild(this.configObj.elements,e.parent,e.child)}if(s.Util.isValid(this.configModifiers.modifyTemplateProperty)&&s.Util.isValid(this.configObj.templates))for(t=0;t<this.configModifiers.modifyTemplateProperty.length;t++){e=this.configModifiers.modifyTemplateProperty[t];this.updateConfigProperty(this.configObj.templates,e.element,e.property,e.value)}}this.create()},e.prototype.addTransparent=function(t){void 0===t&&(t=.75);var e=this.background.add(this.game.prodigy.create.sprite(-10,-10,"atlas-18","overlay-small"));e.width=1300,e.height=740,e.alpha=t,e.inputEnabled=!0},e.prototype.create=function(){var t=s.Util.isValid(this.configModifiers.backgroundAlpha)?this.configModifiers.backgroundAlpha:.75;this.addTransparent(t),this.createUIElements(this.configObj,this);for(var e=0;e<this.uiElements.length;e++)s.Util.isValid(this.uiElements[e].name)&&(this[this.uiElements[e].name]=this.uiElements[e]);this.onLoad(),this.isModal&&this.game.prodigy.open.hideActiveMenu(),this.game.prodigy.open.setActiveMenu(this),this.process(),this.game.broadcaster.addAppListener(o.EDebugEvents.AutoClickUI,this.onDebugAutoClick.bind(this),this,this.game),this.game.broadcaster.addAppListener(o.EDebugEvents.AutoClickList,this.onDebugAutoClickList.bind(this),this,this.game),s.Util.isValid(this.isNotificationCell)||this.game.broadcaster.broadcast(o.EPlayerLocomotionEvents.StopPlayer),this.game.broadcaster.broadcast(o.EUIEvents.MenuOpened,this.game,[this.assetID])},e.prototype.queuePostCreateCallback=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0;i<t.length;i++)this.onLoadCallbacks.push(t[i])},e.prototype.findConfigElement=function(t,e){for(var i=0;i<t.length;i++){if(s.Util.isValid(t[i].name)&&t[i].name===e)return t[i];if(s.Util.isValid(t[i].children)){var a=this.findConfigElement(t[i].children,e);if(s.Util.isValid(a))return a}}return null},e.prototype.updateConfigProperty=function(t,e,i,a){var n=this.findConfigElement(t,e);null!==n?n[i]=a:s.Util.log("Config file for this UI does not have "+e+" element!",s.Util.ERROR)},e.prototype.updateConfigModifierProperty=function(t,e,i){s.Util.isValid(this.configModifiers)||(this.configModifiers={}),s.Util.isValid(this.configModifiers.modifyProperty)||(this.configModifiers.modifyProperty=[]),this.configModifiers.modifyProperty.push({element:t,property:e,value:i})},e.prototype.addConfigChild=function(t,e,i){var a=this.findConfigElement(t,e);null!==a?s.Util.isValid(a.children)?a.children.push(i):a.children=[i]:s.Util.log("Config file for this UI does not have "+e+" element!",s.Util.ERROR)},e.prototype.instantiateTemplate=function(t,e){for(var i=0;i<this.uiElementTemplates.length;i++)if(this.uiElementTemplates[i].name===t){for(var a=new h.UIParser(this.game).createUIElements(new Array(this.uiElementTemplates[i]),e),n={},o=0;o<a.length;o++)n[a[o].name]=a[o];return n}return s.Util.log("Could not find template with name: "+t),null},e.prototype.update=function(){t.prototype.update.call(this),this.isLoaded&&(this.isLoaded=!1,this.processConfigObj())},e.prototype.setCloseCallback=function(t){this.onClose=t},e.prototype.openTween=function(){if(s.Util.isValid(this.uiRoot)){var t=this.uiRoot;t.pivot.x=t.width/2,t.pivot.y=t.height/2,t.x+=t.pivot.x,t.y+=t.pivot.y,t.scale.x=.1,t.scale.y=.1,t.alpha=0,this.game.add.tween(t.scale).to({x:1,y:1},200,Phaser.Easing.Back.Out,!0).frameBased=!1,this.game.add.tween(t).to({alpha:1},120,"Linear",!0).frameBased=!1}},e.prototype.findUIElement=function(t){for(var e=null,i=0;i<this.uiElements.length;i++)if((e=this.uiElements[i]).name===t)return e;return s.Util.log("Menu.findUIElement - couldn't find UIElement with name: "+t,s.Util.ERROR),null},e.prototype.debugDrawUIElementBounds=function(t){for(var e=0;e<this.uiElements.length;e++)this.uiElements[e].debugDrawBounds(t)},e.prototype.setActive=function(t){this.visible=t,t&&this.process()},e.prototype.onDebugAutoClick=function(t){if(this.visible)for(var e=0;e<this.uiElements.length;e++)if(this.uiElements[e].name===t&&s.Util.isValid(this.uiElements[e].onDown)){this.uiElements[e].onDown();break}},e.prototype.onDebugAutoClickList=function(){for(var t=0;t<this.uiElements.length;t++)s.Util.isValid(this.uiElements[t].onClickCallback)&&s.Util.log("Clickable UI - Name: "+this.uiElements[t].name)},e.prototype.process=function(t){void 0===t&&(t=null);var e=t;s.Util.isValid(e)||(e=this,this.isModal&&s.Util.isValid(this.game)&&this.game.prodigy.textureMenu.clear());for(var i=0;i<e.children.length;i++)if(e.children[i]instanceof l.UIElement&&!0===e.children[i].renderOnly){for(var a=0;a<e.children[i].images.length;a++){var n=e.children[i].images[a];this.game.prodigy.textureMenu.renderXY(n,n.x+e.children[i].x,n.y+e.children[i].y),n.visible=!1}this.process(e.children[i])}},e.prototype.onLoad=function(){this.onLoadCallbacks.forEach(function(t){t()}),this.onLoadCallbacks=[]},e.prototype.startLoadComplete=function(){this.isLoaded=!0},e.prototype.startLoad=function(t,e){this.game.prodigy.load.assets(t,e)},e.prototype.createUIElements=function(t,e){var i=new h.UIParser(this.game);s.Util.isValid(t.elements)&&(this.uiRoot=new l.UIElement(this.game,e),this.uiRoot.populate({type:"UIELement",width:e.width,height:e.height}),this.uiElements=i.createUIElements(t.elements,this.uiRoot)),s.Util.isValid(t.templates)&&(this.uiElementTemplates=t.templates)},e}(l.UIElement);e.Menu=c},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),r=i(0),s=function(t){function e(e,i){var a=t.call(this,e,i)||this;return a.name="",a.layoutElement=null,a.dimensionPlaceholderImage=null,a.debugOverlay=null,a}return n(e,t),e.prototype.processRelativeFields=function(t,e){r.Util.isValid(t.relativeWidth)&&(t.width=Math.floor(e.width*t.relativeWidth)),r.Util.isValid(t.relativeHeight)&&(t.height=Math.floor(e.height*t.relativeHeight)),r.Util.isValid(t.relativeX)?t.x=Math.floor(e.width*t.relativeX):r.Util.isValid(t.x)||(t.x=0),r.Util.isValid(t.relativeY)?t.y=Math.floor(e.height*t.relativeY):r.Util.isValid(t.y)||(t.y=0),r.Util.isValid(t.visible)&&(this.visible=t.visible)},e.prototype.populate=function(t){var e=0,i=0;r.Util.isValid(t.name)&&(this.name=t.name),(r.Util.isValid(t.width)&&t.width>this.width||r.Util.isValid(t.height)&&t.height>this.height)&&(r.Util.isValid(this.dimensionPlaceholderImage)&&this.dimensionPlaceholderImage.destroy(),this.dimensionPlaceholderImage=new Phaser.Image(this.game,0,0,"atlas-18","empty"),this.add(this.dimensionPlaceholderImage),r.Util.isValid(t.width)&&(this.dimensionPlaceholderImage.width=t.width),r.Util.isValid(t.height)&&(this.dimensionPlaceholderImage.height=t.height)),r.Util.isValid(t.anchorX)&&(e=-Math.floor(t.anchorX*this.width)),r.Util.isValid(t.anchorY)&&(i=-Math.floor(t.anchorY*this.height)),r.Util.isValid(t.x)&&(this.x=t.x),r.Util.isValid(t.y)&&(this.y=t.y),this.x+=e,this.y+=i},e.prototype.postPopulate=function(){},e.prototype.setActive=function(t){this.isActive=t;for(var e=0;e<this.children.length;e++)r.Util.isValid(this.children[e].setActive)&&this.children[e].setActive(t)},e.prototype.debugDrawBounds=function(t){if(t&&!r.Util.isValid(this.debugOverlay)){var e=new Phaser.Graphics(this.game,0,0);e.lineStyle(2,16711680,.5),e.drawRect(0,0,this.width,this.height),this.debugOverlay=this.add(e)}else!t&&r.Util.isValid(this.debugOverlay)&&(this.debugOverlay.destroy(),this.debugOverlay=null)},e.prototype.addChild=function(e){var i=t.prototype.addChild.call(this,e);return r.Util.isValid(this.game)&&this.game.broadcaster.broadcast(o.EUIEvents.ChildAdded,this),i},e.prototype.removeChild=function(e){var i=t.prototype.removeChild.call(this,e);return r.Util.isValid(this.game)&&this.game.broadcaster.broadcast(o.EUIEvents.ChildRemoved,this),i},e}(Phaser.Group);e.UIElement=s},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(116),r=i(0),s=function(t){function e(e,i,a,n,o,r,s,l,h){var c=t.call(this,e,i,a,n,o,r,s)||this;return c.fixedWidth=0,c.fixedHeight=0,c.indicatorImage=null,c.fixedWidth=l,c.fixedHeight=h,c}return n(e,t),e.prototype.showIndicator=function(t){if(t){if(!r.Util.isValid(this.indicatorImage)){this.indicatorImage=new Phaser.Image(this.game,0,0,"atlas-21","exclamation"),this.sprite.addChild(this.indicatorImage);var e=r.Util.getCenteredXY(this.indicatorImage.width,this.indicatorImage.height+2*this.indicatorImage.height,this.sprite.x,this.sprite.y,r.Util.isValid(this.fixedWidth)?this.fixedWidth:this.sprite.width,r.Util.isValid(this.fixedHeight)?this.fixedHeight:this.sprite.width);this.indicatorImage.x=e.x,this.indicatorImage.y=e.y;var i=400-(new Date).getTime()%400;this.game.add.tween(this.indicatorImage).to({y:this.indicatorImage.y-10},400,Phaser.Easing.Quadratic.InOut,!0,i,-1,!0)}}else r.Util.isValid(this.indicatorImage)&&(this.indicatorImage.destroy(),this.indicatorImage=null)},e}(o.Button);e.HUDButton=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(829),n=i(827),o=i(0),r=function(){function t(){}return t.integerInRange=function(e,i){return Math.floor(t.realInRange(e,i))},t.realInRange=function(t,e,i){return o.Util.isValid(i)?new Phaser.RandomDataGenerator([i]).realInRange(t,e):Math.random()*(e-t)+t},t.weightedArrayElement=function(t,e){var i=0,r=[];if(!o.Util.isValid(a(t,function(t){return t.weight<=0}))&&t.length>0){for(var s=Math.round(1/(n(t,"weight").weight/100)),l=0;l<t.length;l++)o.Util.isValid(t[l].weight)&&(i+=t[l].weight*s),r.push(i);var h=this.realInRange(0,i,e);for(l=0;l<t.length;l++)if(h<r[l])return t[l]}return null},t}();e.Random=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),n=function(){function t(){}return t.isDesktopOrTablet=function(t){return t.device.desktop||navigator.userAgent.indexOf("iPad")>=0||navigator.userAgent.indexOf("Android")>=0&&-1===navigator.userAgent.indexOf("Mobile")},t.isTablet=function(){return navigator.userAgent.indexOf("iPad")>=0||navigator.userAgent.indexOf("Android")>=0&&-1===navigator.userAgent.indexOf("Mobile")},t.isIE=function(){return-1!==navigator.userAgent.indexOf("Trident")},t.isChrome=function(){return navigator.userAgent.indexOf("Chrome")>=0||navigator.userAgent.indexOf("CriOS")>=0},t.iPadMini=function(){return navigator.userAgent.indexOf("iPad")>=0&&(screen.width<=1024&&screen.height<=768||screen.height<=1024&&screen.width<=768)},t.isIOS=function(){return navigator.userAgent.indexOf("iPad")>=0||navigator.userAgent.indexOf("iPhone")>=0||navigator.userAgent.indexOf("iPod")>=0},t.isAndroid=function(){return navigator.userAgent.indexOf("Android")>=0},Object.defineProperty(t,"isEdge",{get:function(){return navigator.userAgent.indexOf("Edge")>-1},enumerable:!0,configurable:!0}),t.getMetricsPlatformName=function(){var e="web";return t.isIOS()?e="ios":t.isTablet()&&(e="android"),e},t.nativeAppVersion=function(){return"1"===a.Util.getUrlVariable("iosApp")?1:"1"===a.Util.getUrlVariable("nativeApp")&&2},t.isNativeApp=function(){return!!t.nativeAppVersion()},t.getIOSVersion=function(){if(/iP(hone|od|ad)/.test(navigator.platform)){var t=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return parseInt(t[1],10)}return null},t}();e.Device=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(95),n=i(94),o=i(0),r=function(){function t(t){this.util=null,this.states=[],this.maps={},this.quests={},this.store={},this.scenes={},this.monsters={},this.bgmID=3,this.debugBounties=!1,this.battleBG="",this.game=t}return t.prototype.getMap=function(t){return this.maps[t]},t.prototype.getScene=function(t){return this.scenes[t]},t.prototype.getDailyQuestDescription=function(t){return{}},t.prototype.teleport=function(t,e,i,a,n){var r=null;o.Util.isValid(this.game.prodigy.world.currentZone)&&(r=this.game.prodigy.world.currentZone,this.game.prodigy.world.previousZone=this.game.prodigy.world.currentZone),this.game.prodigy.world.currentZone=this.ID+"-"+t;var s=this.getMap(t);if(o.Util.isValid(s)){this.game.state.states.TileScreen.initMap(s,this,e,i);var l=n||{};l.assets=l.assets||[],l.assets=l.assets.concat(["map-pathing"]).concat(s.assets),l.assets=l.assets.concat(this.game.prodigy.skin.getAssets(s.zoneName));var h=this.getCurrentQuest();o.Util.isValid(h)&&(l.assets=l.assets.concat(h.assets)),l.title=o.Util.isValid(l.title)?l.title:s.getName(),l.x=e,l.y=i,this.game.prodigy.start("TileScreen",l),o.Util.isValid(r)&&r===this.game.prodigy.world.getCurrentMap()||this.game.prodigy.network.sendZoneEvent("map-enter")}},t.prototype.playScene=function(t){var e=this.getScene(t);if(o.Util.isValid(e)){this.game.state.states.TileScreen.initScene(e,this),this.game.prodigy.user.unmount();var i=e.loadingData;i.assets=[],i.assets=i.assets.concat(["map-pathing"]).concat(e.assets),i.title=e.name,this.game.prodigy.start("TileScreen",i)}},t.prototype.init=function(t,e,i){},t.prototype.setup=function(t,e,i){var a=this.getCurrentQuest();return i.questParams={},o.Util.isValid(a)&&!i.isScene?a.setup(t,e,i):null},t.prototype.start=function(t,e,i){var a=this.getCurrentQuest();o.Util.isValid(a)&&a.start(t,e,i)},t.prototype.update=function(t,e,i){var a=this.getCurrentQuest();o.Util.isValid(a)&&a.update(t,e,i)},t.prototype.cleanup=function(){},t.prototype.process=function(t,e,i){o.Util.isValid(this.monsters)&&(o.Util.isValid(this.getState("daily"))?o.Util.getDate()!==this.getState("daily").date&&this.setState("daily",{date:o.Util.getDate(),flags:[1,1,1,1,1],rewards:this.getState("daily").rewards}):this.setState("daily",{date:o.Util.getDate(),flags:[1,1,1,1,1],rewards:0}));var a=this.getCurrentQuest();o.Util.isValid(a)&&a.process(t,e,i)},t.prototype.getQuest=function(t){return this.quests[t]},t.prototype.getCurrentQuest=function(){var t=this.getQuestState();return o.Util.isValid(t)?this.getQuest(t.ID):null},t.prototype.getState=function(t){var e=-1;if("quest"!==t)for(var i=0;i<this.states.length;i++)this.states[i]===t&&(e=i);else e=t;return-1===e?null:this.game.prodigy.player.state.get("zone-"+this.ID+"-"+e)},t.prototype.setState=function(t,e){var i=-1;if("quest"!==t)for(var a=0;a<this.states.length;a++)this.states[a]===t&&(i=a);else i=t;if(-1===i)return null;this.game.prodigy.player.state.set("zone-"+this.ID+"-"+i,e)},t.prototype.getQuestState=function(){return this.getState("quest")},t.prototype.getRemainingQuestAreas=function(t){var e=this.getQuestState(),i=this.getQuest(t);if(o.Util.isValid(e)&&o.Util.isValid(i)){if(o.Util.isValid(i.getRemainingQuestAreas))return i.getRemainingQuestAreas();if(o.Util.isValid(i.collectionMaps)){var a=[];for(var n in i.collectionMaps){i.collectionMaps[n].filter(function(t){return!o.Util.isValid(e.state[t])||1!==e.state[t]}).length>0&&a.push(this.ID+"-"+n)}return a}return i.area}},t.prototype.startQuest=function(t){var e=this.getQuestState();if(o.Util.isValid(e)||(e={ID:1}),e.ID!==t)return null;var i=this.getQuest(e.ID);return e.req=o.Util.copyObject(i.req),e.state=o.Util.copyObject(i.state)||{},e.seq=0,this.game.prodigy.player.state.set("zone-"+this.ID+"-quest",e),i},t.prototype.isQuestStarted=function(t){var e=this.getQuestState();return!(!o.Util.isValid(e)||!o.Util.isValid(e.req)||e.ID!==t)},t.prototype.isQuestComplete=function(t){if(!this.isQuestStarted(t))return!1;var e=this.getQuestState(),i=this.getQuest(t);return this.getQuestState().ID===t&&(!("pet"===e.req.type&&e.req.N>0)&&(!("clear"===e.req.type&&e.req.N>0)&&(!(o.Util.inArray(["item","weapon","hat","outfit","boots","key"],e.req.type)&&this.game.prodigy.player.backpack.hasItem(e.req.type,e.req.ID)<e.req.N)&&(("state"!==e.req.type||this.game.prodigy.player.state.get(e.req.state)===e.req.target)&&(("zone"!==e.req.type||this.game.prodigy.player.data.zone===i.area[0])&&(("zstate"!==e.req.type||e.req.N===this.getState(e.req.ID))&&(!("zgteState"===e.req.type&&this.getState(e.req.ID)<e.req.N)&&!("seq"===e.req.type&&e.req.N!==e.seq))))))))},t.prototype.completeQuest=function(t){if(!this.isQuestStarted(t))return!1;var e=this.getQuestState();return e.ID===t&&("item"!==e.req.type||e.req.K||this.game.prodigy.player.backpack.consume(e.req.type,e.req.ID,e.req.N),this.game.prodigy.player.state.set("zone-"+this.ID+"-quest",{ID:e.ID+1}),this.game.prodigy.network.sendZoneEvent("quest-complete",String(t)),this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:"quest",name:o.Util.validateString([this.name,this.ID]),id:t}),!0)},t.prototype.isQuestProcessed=function(t){return this.isQuestStarted(t)&&this.isQuestComplete(t)&&this.getQuestState().proc},t.prototype.processQuest=function(t){this.isQuestStarted(t)&&this.isQuestComplete(t)&&this.game.prodigy.player.state.set("zone-"+this.ID+"-quest-proc",1)},t.prototype.isOnQuest=function(t){var e=this.getQuestState();return o.Util.isValid(e)&&e.ID===t},t.prototype.getCurrentQuestID=function(){var t=this.getQuestState();return o.Util.isValid(t)?t.ID:0},t.prototype.defeatMonster=function(t,e,i){var a=this.getQuestState();if(o.Util.isValid(a)&&o.Util.isValid(a.req)){var n=o.Util.isValid(a.req.U)&&a.req.U;"pet"===a.req.type&&a.req.ID===t&&n===i?(a.req.N--,i&&(a.state[e]=1),this.game.prodigy.player.state.updated=!0):"clear"===a.req.type&&n===i&&(a.req.N--,i&&(a.state[e]=1),this.game.prodigy.player.state.updated=!0)}},t.prototype.isOnSequence=function(t,e){var i=this.getQuestState();return!(!o.Util.isValid(i)||i.ID!==t||!o.Util.isValid(i.req)||i.seq!==e)},t.prototype.isSequenceComplete=function(t,e){var i=this.getQuestState();return o.Util.isValid(i)&&i.ID===t&&i.seq>e},t.prototype.completeSequence=function(t,e){var i=this.getQuestState();o.Util.isValid(i)&&i.ID===t&&o.Util.isValid(i.req)&&i.seq===e&&(i.seq++,this.game.prodigy.player.state.updated=!0)},t.prototype.getDailyMaps=function(){var t=[];for(var e in this.maps)t.push(e);return t},t.prototype.hasDaily=function(t){if(o.Util.isValid(this.getState("daily"))){var e=new n.SeededRandomGenerator(this.getState("daily").date),i=this.getDailyMaps();if(o.Util.isValid(i))for(var a=0;a<5;a++)if(i[Math.floor(e.jumpFromStart(a)*(i.length-1))]===t.tag&&0!==this.getState("daily").flags[a])return!0}return!1},t.prototype.testQuest=function(t,e,i){this.game.prodigy.player.state.data.zone[this.ID]={};for(var a=1;a<t;a++)this.startQuest(a),this.completeQuest(a);e&&this.startQuest(t);for(a=0;a<i;a++)this.completeSequence(t,a)},t.prototype.placeDaily=function(t,e,i){},t.prototype.hasDailyQuestExpired=function(){return!o.Util.isValid(this.getState("dailyQuest"))||this.getState("dailyQuest").dateId!==o.Util.getDateId()},t.prototype.startNewDailyQuest=function(t,e){for(var i=[],a=0;a<e;a++)i.push(!1);this.setState("dailyQuest",{questId:t,dateId:o.Util.getDateId(),questState:i}),this.game.prodigy.player.getUpdatedData()},t.prototype.isDailyQuestComplete=function(){if(!o.Util.isValid(this.getState("dailyQuest")))return!1;if(this.getState("dailyQuest").dateId!==o.Util.getDateId())return!1;for(var t=this.getState("dailyQuest").questState,e=0;e<t.length;e++)if(!t[e])return!1;return!0},t.prototype.updateDailyQuest=function(t){if(o.Util.isValid(this.getState("dailyQuest"))){var e=this.getState("dailyQuest").questState;e[t]=!0,this.setState("dailyQuest",{questId:this.getState("dailyQuest").questId,dateId:this.getState("dailyQuest").dateId,questState:e})}},t.prototype.getRemainingQuestObjectives=function(){for(var t=0,e=this.getState("dailyQuest").questState,i=0;i<e.length;i++)e[i]||t++;return t},t.prototype.hideFollow=function(t){t.removeFollow(this.game.prodigy.player.userID)},t.patrol=function(e,i,n){e instanceof a.MonsterEvent&&e.encountered||e.setPath(i,t.patrol.bind(t,e,i,n),n)},t.prototype.getBattle=function(t,e,i,a,n){var r={intro:e,catch:!1,run:!1,screen:t.zone.battleBG};return o.Util.isValid(i.screen)&&(r.screen=i.screen),o.Util.isValid(i.starMod)&&(r.starMod=i.starMod),o.Util.isValid(i.drops)&&(r.drops=i.drops),o.Util.isValid(i.difficulty)&&(r.difficulty=i.difficulty),o.Util.isValid(i.events)&&(r.events=i.events),o.Util.isValid(i.opponent)?(r.opponent=i.opponent,r.pets=i.pets):o.Util.isValid(i.boss)?r.boss=i.boss:r.pets=i.pets,this.game.prodigy.battle.start.bind(this.game.prodigy.battle,r,null,a,n,this.onFaint)},t}();e.Zone=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Key=0]="Key",t[t.View=1]="View",t[t.Icon=2]="Icon",t[t.IconNoBackground=3]="IconNoBackground",t[t.Store=4]="Store",t[t.Inventory=5]="Inventory",t[t.Card=6]="Card",t[t.Info=7]="Info",t[t.StylistCard=8]="StylistCard",t[t.Buy=9]="Buy",t[t.Equip=10]="Equip",t[t.Item=11]="Item"}(e.EItemInfoMode||(e.EItemInfoMode={}))},function(t,e,i){"use strict";var a=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(i,a){e(i,a,t)}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(11),s=i(54),l=i(71),h=i(169),c=i(168),p=function(){function t(t){this.logger=null,this.data=null,this.parameters={},this.variables=null,this.onComplete=new h.Signal,this.logger=t}return Object.defineProperty(t.prototype,"Logger",{get:function(){return this.logger},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Parameters",{get:function(){return this.parameters},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Variables",{get:function(){return this.variables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OnComplete",{get:function(){return this.onComplete},enumerable:!0,configurable:!0}),t.prototype.init=function(t,e){this.data=t,this.variables=e},t.prototype.validate=function(){return!0},t.prototype.execute=function(){},t.prototype.finish=function(t){if(void 0===t&&(t=null),t)for(var e in t){var i=this.findResult(e);null!==i&&(this.variables[i]=t[e])}this.OnComplete.dispatch()},t.prototype.findParameter=function(t){return this.parameters.hasOwnProperty(t)?c.StateMachine.parseVariable(this.parameters[t],this.variables):this.variables.hasOwnProperty(t)?c.StateMachine.parseVariable("$"+t,this.variables):(this.logger.log("Action ["+this.constructor.name+"] could not find parameter with name ["+t+"].",l.LogLevel.Error),null)},t.prototype.validateParameters=function(t,e){void 0===e&&(e=null);for(var i=0;i<t.length;i++){var a=t[i];if(this.data.Parameters.hasOwnProperty(a))this.parameters[a]=this.data.Parameters[a];else if(!this.variables.hasOwnProperty(a))return this.logger.log("Parameter validation failed for action ["+this.constructor.name+"]. Missing parameter ["+a+"].",l.LogLevel.Error),!1}if(e)for(var n in e)this.data.Parameters.hasOwnProperty(n)?this.parameters[n]=this.data.Parameters[n]:this.parameters[n]=e[n];return!0},t.prototype.findResult=function(t){return this.data.Results.hasOwnProperty(t)?this.data.Results[t]:null},t=a([r.injectable(),o(0,r.inject(s.GameIdentifiers.LoggerService)),n("design:paramtypes",[Object])],t)}();e.Action=p},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=function(t){function e(e,i,a,n,o){void 0===n&&(n=0),void 0===o&&(o=0);var r,s=t.call(this,e,i)||this;for(s.initialized=!1,s.components=[],r=0;r<a.length;r++)s.addComponent(a[r],!1);for(r=0;r<a.length;r++)a[r].create();return s.x=n,s.y=o,s}return n(e,t),e.prototype.update=function(){for(var t=0;t<this.components.length;t++){var e=this.components[t];o.Util.isValid(e.update)&&e.update()}},e.prototype.addComponent=function(t,e){if(void 0===e&&(e=!0),!o.Util.isValid(t.gameObject)&&o.Util.isValid(this.game)){if(t.hasUniqueInstance())for(var i=0,a=this.components;i<a.length;i++){if(a[i].constructor===t.constructor)return}this.components.push(t),t.gameObject=this,e&&t.create()}},e.prototype.findComponent=function(t){for(var e=0,i=this.components;e<i.length;e++){var a=i[e];if(a instanceof t)return a}return null},e.prototype.hasComponent=function(t){return o.Util.isValid(this.findComponent(t))},e.prototype.removeComponent=function(t){for(var e=0;e<this.components.length;++e)if(this.components[e]===t){this.components.splice(e,1);break}},e.prototype.destroy=function(){for(var e=0;e<this.components.length;++e)o.Util.isValid(this.components[e].destroy)&&this.components[e].destroy();t.prototype.destroy.call(this)},e}(Phaser.Group);e.GameObject=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(167);e.actionable=function(t){return function(e){a.Actions[t]=e}}},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(i(7).Map);e.ForestMap=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),n=i(77),o=i(799),r=i(798),s=i(797),l=i(243),h=i(796),c=i(795),p=i(794),u=i(240),d=i(136),g=i(793),y=i(791),f=i(790),m=i(242),_=i(27),v=i(789),E=i(788),b=function(){function t(t){this.game=null,this.game=t}return t.parseJSON=function(t){try{return JSON.parse(t)}catch(t){a.Util.log("Error parsing config file",a.Util.ERROR)}},t.prototype.createUIElements=function(e,i){for(var n=null,o=null,r=null,l=[],h=i.width,c=i.height,p=0;p<e.length;p++)n=e[p],a.Util.isValid(n.type)?(o=t.ELEMENTS[n.type],a.Util.isValid(o)||(o=t.ELEMENTS.UIElement,a.Util.log("UIParser.instantiateUIElements - parser has no definition for element of type: "+n.type+". Creating UIElement instead.",a.Util.ERROR)),(r=new o(this.game,i)).processRelativeFields(n,{width:h,height:c}),r.populate(n),l.push(r),a.Util.isValid(n.children)&&(l=l.concat(this.createUIElements(n.children,r))),a.Util.isValid(n.layoutConfig)&&(r.layoutElement=new s.LayoutElement(this.game,r,n.layoutConfig)),r.postPopulate()):a.Util.log("UIParser.instantiateUIElements - element is missing type field. Skipping.",a.Util.ERROR);return l},t.ELEMENTS={UIElement:_.UIElement,Text:m.Text,Button:n.Button,ButtonToggle:o.ButtonToggle,PhaserButtonWrapper:l.PhaserButtonWrapper,Graphic:r.Graphic,SlicedGraphic:u.SlicedGraphic,SlicedBanner:p.SlicedBanner,WoodSlicedPanel:E.WoodSlicedPanel,Slider:d.Slider,TabButton:f.TabButton,Tab:y.Tab,ScrollView:c.ScrollView,ScrollBar:h.ScrollBar,WebFontText:v.WebFontText,SpineUI:g.SpineUI},t}();e.UIParser=b},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(149),n=i(10),o=i(257),r=i(903),s=i(2),l=i(3),h=i(0),c=i(4),p=function(){function t(t){this.justLeveled=!1,this.appearanceChanged=!1,this.starsEarned=0,this.updated=!1,this.data={},this.modifiers=null,this.type="B",this.team=null,this.source=null,this.game=null,this.inPVP=!1,this.catchAttempt=0,this.starsToProcess=0,this.starsRewardBase=100,this.starsReward=100,this.pvpHP=0,this.levelEvents=[],this.isOpponent=!1,this.game=t,this.resetModifiers()}return t.prototype.createDataClone=function(){var t=new this.constructor(this.game);return t.setData(a(this.data)),t},t.prototype.setData=function(t){this.data=t},t.getHeartsFromCurve=function(e,i,a){var n=t.HP_BONUS[e];return 20*(Math.floor((n+20)*a/100)-Math.floor((n+20)*(i-1)/100))},t.getLevelPercent=function(e){var i=t.levelFromStars(e),a=t.starsToLevel(i),n=t.starsToLevel(i-1);return(e-n)/(a-n)},t.getAttacksFromCurve=function(t,e,i){for(var a=[],n=0;n<t.length;n++){var o=t[n];o.lvl>=e&&o.lvl<=i&&h.Util.isValid(o.a)&&a.push(o.a)}return a},t.getEvolutionsFromCurve=function(t,e,i){for(var a=[],n=0;n<t.length;n++){var o=t[n];o.lvl>=e&&o.lvl<=i&&h.Util.isValid(o.e)&&a.push(o)}return a},t.getAttacksOfType=function(t,e){void 0===e&&(e=null);for(var i=[],a=0;a<t.length;a++){var o=c.Items.getItem("spell",t[a]);null!==e&&n(o,"data.element","")!==e||i.push(t[a])}return i},t.starsToLevel=function(e){if(e<1)return 0;for(var i=0,a=1;a<=e;a++)i+=t.enemiesPerLevel(a);return 100*i},t.levelFromStars=function(e){for(var i=1;i<=100;i++)if(e<t.starsToLevel(i))return i;return 100},t.enemiesPerLevel=function(t){return Math.max(0,Math.floor(Math.pow(1.7,.085*t)+.8))},t.prototype.resetModifiers=function(){this.modifiers={maxHearts:1,damage:1,miss:0,ignoreElement:0,potion:null,barrier:!1},this.clearUnprocessedLevelEvents()},t.prototype.getDataAndClear=function(){return this.updated=!1,this.data},t.prototype.getID=function(){return 0},t.prototype.canCatch=function(t){return!1},t.prototype.getAttacks=function(t){return[1]},t.prototype.evolve=function(t,e){h.Util.log("You're calling evolve on a Creature subclass that hasn't overridden the evolve function")},t.prototype.isKnockedOut=function(){return this.getCurrentHearts()<=0},t.prototype.getMyUniqueAttacks=function(t){for(var e=[],i=this.getAttacks(),a=t.getAttacks(),n=0;n<i.length;n++){var o=i[n];a.indexOf(o)<0&&e.push(o)}return e},t.prototype.getAvailableEvolutions=function(){var e=this.getLevel(),i=t.getEvolutionsFromCurve(this.getLevelingCurve(e),1,e),a=this.getID(),n=[];i.sort(function(t,e){return t.lvl-e.lvl});var r=o(i,function(t){return t.e===a})+1;return r>=0&&r<i.length&&(n=i.slice(r,i.length)),n},t.prototype.getCurrentHearts=function(){return this.inPVP?(h.Util.isValid(this.pvpHP)||(this.pvpHP=this.getMaxHearts()),this.pvpHP):h.Util.isValid(this.data.hp)?(this.data.hp>this.getMaxHearts()&&(this.data.hp=this.getMaxHearts()),this.data.hp):this.getMaxHearts()},t.prototype.getMaxHearts=function(e){var i=h.Util.isValid(e)?e:this.getLevel();return t.getHeartsFromCurve(this.type,1,i)},t.prototype.getBaseMaxHearts=function(t){return this.getMaxHearts(t)},t.prototype.updateModifier=function(t,e){if("potion"===t){if(this.modifiers.potion=e,null!==e){var i=c.Items.getItem("item",e).data;this.game.prodigy.network.sendAnalytics("potion-use-activity",i.name,"Events")}}else"barrier"===t?this.modifiers.barrier=e:h.Util.isValid(this.modifiers[t])&&(this.modifiers[t]+=e,this.modifiers[t]<=0&&(this.modifiers[t]=.01))},t.prototype.changeCurrentHearts=function(t,e){void 0===e&&(e=0);var i=this.getCurrentHearts()+t;i<e&&(i=e),i>this.getMaxHearts()&&(i=this.getMaxHearts()),this.inPVP?this.pvpHP=Math.round(i):this.data.hp=Math.round(i),this.updated=!0},t.prototype.processStars=function(){this.starsToProcess>0?this.addStars(this.starsToProcess):this.game.broadcaster.broadcast(l.ECreatureEvents.AnimationDone,this)},t.prototype.addStars=function(e,i,a,n){if(void 0===i&&(i=!1),void 0===a&&(a=!1),void 0===n&&(n=!1),this.isOpponent)return!1;var o=Math.round(e),r=!1;if(i){var c=this.game.prodigy.player;return c.hasValidatedParentEmail()&&c.hasCompletedTutorial()&&(o*=s.GameConstants.get("GameConstants.Battle.VALID_PARENT_EMAIL_STARS_PERCENTAGE")),this.starsToProcess+=o,!1}this.starsToProcess=0;var p=this.getLevel();if(this.game.broadcaster.broadcast(l.ECreatureEvents.StarsAdded,this,null),p>=100)return!1;if(h.Util.isValid(this.data.stars)?this.data.stars+=o:this.data.stars=o,a||(this.starsEarned+=o),this.data.level=t.levelFromStars(this.data.stars),p!==this.data.level){this.levelEvents=[];var u=this.data.level-p;if(u>0&&this.game.prodigy.player.data===this.data)for(var d=p+1;d<=this.data.level;d++)this.game.prodigy.network.sendAdvancedEvent("game_level_up",{},!0);this.justLeveled=!0,r=!0,this.game.broadcaster.broadcast(l.ECreatureEvents.LevelUp,this,[u])}return n&&this.clearUnprocessedLevelEvents(),this.updated=!0,r},t.prototype.getUnprocessedLevelEvents=function(){return this.levelEvents},t.prototype.hasHeartsEventInQueue=function(){return r(this.levelEvents,function(t){return h.Util.isValid(t.h)})},t.prototype.getStarsToLevel=function(){var e=this.getStars(),i=t.starsToLevel(this.getLevel());return Math.max(0,i-e)},t.prototype.getPercentToLevel=function(){if(this.getLevel()>=100)return 0;var e=t.starsToLevel(this.getLevel()-1),i=t.starsToLevel(this.getLevel());return(this.getStars()-e)/(i-e)},t.prototype.getStars=function(){return n(this.data,"stars",0)},t.prototype.getStarRewardByDamage=function(t){var e=this.getMaxHearts(this.getLevel()),i=this.getCurrentHearts(),a=0,n=t;return n>=i?(n=i,(a=Math.floor(this.starsRewardBase*(n/e)))<this.starsReward&&(a=this.starsReward)):a=Math.floor(this.starsRewardBase*(n/e)),a<=0&&(a=1),this.starsReward-=a,a},t.prototype.getStarReward=function(){return 0},t.prototype.getLevel=function(){return n(this.data,"level",1)},t.prototype.getLevelingCurve=function(t){return[]},t.prototype.getElement=function(){return"wizard"},t.prototype.getDamageBonus=function(){return 0},t.prototype.getDrops=function(){return[]},t.prototype.getSourceName=function(){return""},t.prototype.getName=function(){return null},t.prototype.clearUnprocessedLevelEvents=function(){this.levelEvents=[]},t.MAX_HEARTS=8e3,t.HP_BONUS={"A+":4,A:3,"A-":2,"B+":1,B:0,"B-":-1,"C+":-2,C:-3,"C-":-4},t}();e.Creature=p},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=function(t){function e(e,i,a,n){var o=t.call(this,e,i,"MAP_LAMPLIGHT_PET_PARK",0,0,[],a,n)||this;return o.zoneName=null,o.isScene=!0,o.isScene=!0,o.loadingData={fadeIn:!0,time:1,fadeOut:!0,save:!1},o}return n(e,t),e.prototype.setup=function(e,i,a){this.zone.hideFollow(i),e.prodigy.player.saveEnabled=!1,i.walkEnabled=!1,i.user.clickEnabled=!1,i.menuBar.show(!1),e.prodigy.notifications.stopFriendTimer(),e.prodigy.notifications.clearNotifications(),t.prototype.setup.call(this,e,i,a)},e.prototype.start=function(e,i,a){t.prototype.start.call(this,e,i,a)},e.prototype.end=function(t,e){},e.prototype.enterScene=function(t,e,i){this.sceneTop=e.menus.add(new Phaser.TileSprite(t,0,-50,1280,50,"atlas-161","overlay-small")),this.sceneBot=e.menus.add(new Phaser.TileSprite(t,0,720,1280,50,"atlas-161","overlay-small"));var a=t.add.tween(this.sceneTop).to({y:0},1e3,Phaser.Easing.Quadratic.Out).start();o.Util.isValid(i)&&a.onComplete.add(i),t.add.tween(this.sceneBot).to({y:670},1e3,Phaser.Easing.Quadratic.Out).start(),e.user.unmount()},e}(i(7).Map);e.Scene=r},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),r=i(4),s=i(0),l=function(t){function e(e,i,a,n){void 0===n&&(n={hideMenu:!0,hideContent:!0,tile:"bg-tile-brown"});var o=t.call(this,e,i)||this;return o.menuID=-1,o.style=null,o.btns=[],o.currentBtn=null,o.setupComplete=!1,o.overlay=null,o.isHidden=!1,o.spinner=null,o.bg=null,o.fg=null,o.title=null,o.bar=null,o.barSpeedX=0,o.barSpeedY=0,o.menuID=a,o.style=n,e.prodigy.open.menuOpen(!o.style.hideMenu),s.Util.isValid(o.game.prodigy.notifications)&&o.game.prodigy.notifications.clearNotifications(),o.style.hideOverlay||(o.overlay=o.game.prodigy.create.sprite(0,0,"atlas-18","overlay-small"),o.overlay.width=o.game.world.width,o.overlay.height=o.game.world.height,o.overlay.alpha=.01,o.overlay.inputEnabled=!0,o.add(o.overlay)),o}return n(e,t),e.prototype.hide=function(t){void 0===t&&(t=!1),t?(this.isHidden=!0,this.visible=!1):this.isHidden&&(this.isHidden=!1,this.visible=!0)},e.prototype.onMenuOpen=function(t){},e.prototype.setup=function(){this.loadComplete()},e.prototype.update=function(){t.prototype.update.call(this),this.setupComplete&&this.menuUpdate()},e.prototype.loadComplete=function(){this.alive&&(s.Util.isValid(this.spinner)&&this.spinner.destroy(),this.menuSetup())},e.prototype.menuSetup=function(){s.Util.isValid(this.style.open)&&this.style.open(),this.bg=this.game.prodigy.create.element(this,0,0),s.Util.isValid(this.style.tile)&&this.setBackgroundTile("atlas-161",this.style.tile,.25,.25,this.style.full),this.fg=this.game.prodigy.create.element(this,0,0),this.style.hideContent&&(this.game.broadcaster.broadcast(o.EScreenEvents.EnableBackground,this,[!1]),this.game.broadcaster.broadcast(o.EScreenEvents.EnableContent,this,[!1]))},e.prototype.close=function(){s.Util.isValid(this.game)&&(this.style.hideContent&&(this.game.broadcaster.broadcast(o.EScreenEvents.EnableBackground,this,[!0]),this.game.broadcaster.broadcast(o.EScreenEvents.EnableContent,this,[!0])),this.game.prodigy.open.menuOpen(!0),s.Util.isValid(this.style.close)&&this.style.close(),this.game.prodigy.open.close(this),this.destroy())},e.prototype.showFrame=function(t,e,i,a){if(void 0===a&&(a=null),this.fg.add(new Phaser.TileSprite(this.game,0,0,this.game.world.width,50,"atlas-161","panel-mid")),this.fg.add(new Phaser.TileSprite(this.game,0,50,this.game.world.width,50,"atlas-161","panel-top2")),this.fg.add(new Phaser.TileSprite(this.game,0,620,this.game.world.width,50,"atlas-161","panel-top")),this.fg.add(new Phaser.TileSprite(this.game,0,670,this.game.world.width,50,"atlas-161","panel-mid")),s.Util.isValid(t)){this.fg.add(this.game.prodigy.create.sprite(30,5,"atlas-21","icon-base"));var n=this.fg.add(this.game.prodigy.create.sprite(30,5,r.Items.getIconAtlas(t),r.Items.getIconFrame(t),null,null,80,80));n.x+=Math.floor(.5*(80-n.width)),n.y+=Math.floor(.5*(80-n.height))}if(s.Util.isValid(e)&&(this.title=this.game.prodigy.create.font(this.fg,125,10,e,{fontID:9,size:36})),s.Util.isValid(i)){var o=this.game.prodigy.create.element(this.fg,0,5);this.btns=[];for(var l=0;l<i.length;l++){var h=i[l];o.add(this.game.prodigy.create.sprite(90*l,0,"atlas-21","icon-base-active")),this.btns[l]=this.game.prodigy.create.button(o,90*l,0,r.Items.getIconAtlas(h.icon),r.Items.getIconFrame(h.icon),this.clickBtn.bind(this,l,this.btns,h.callback,h.title),null,null,!1,80,80),this.btns[l].oldY=this.btns[l].y}o.x=1250-o.width,s.Util.isValid(a)&&this.btns[a].onDown()}},e.prototype.clickBtn=function(t,e,i,a){if(this.currentBtn!==t){this.currentBtn=t,s.Util.isValid(a)&&s.Util.isValid(this.title)&&this.title.setText(a);for(var n=0;n<e.length;n++)this.resetButton(n,e);this.game.add.tween(e[t]).to({y:e[t].y-10},500,Phaser.Easing.Quadratic.Out).to({y:e[t].y},500,Phaser.Easing.Quadratic.In).loop().start(),i()}},e.prototype.resetButton=function(t,e){void 0===e&&(e=this.btns),this.game.tweens.removeFrom(e[t],!1),e[t].y=e[t].oldY},e.prototype.showBtns=function(t,e){if(s.Util.isValid(e))for(var i=0,a=e.length-1;a>=0;a--)e[a].y=650,i+=e[a].width,e[a].x=1230-i,i+=30;if(s.Util.isValid(t))for(i=0,a=0;a<t.length;a++)t[a].y=650,t[a].x=i+50,i+=t[a].width+30},e.prototype.menuUpdate=function(){s.Util.isValid(this.bar)&&(this.bar.tilePosition.x+=this.barSpeedX,this.bar.tilePosition.y+=this.barSpeedY)},e.prototype.setBackgroundTile=function(t,e,i,a,n){s.Util.isValid(this.bar)&&this.bar.destroy(),this.bg.removeAll(!0),this.bar=n?new Phaser.TileSprite(this.game,0,0,this.game.world.width,this.game.world.height,t,e):new Phaser.TileSprite(this.game,0,100,this.game.world.width,this.game.world.height-200,t,e),this.bar.tilePosition.x=-6,this.bar.tilePosition.y=-20,this.bg.add(this.bar),s.Util.isValid(i)&&(this.barSpeedX=i),s.Util.isValid(a)&&(this.barSpeedY=a)},e}(i(5).Element);e.LegacyMenu=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.StoreService="StoreService",t.HttpClient="HttpClient",t.SessionRecorder="ISessionRecorder"}(e.ProdigyInjectionIdentifiers||(e.ProdigyInjectionIdentifiers={}))},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(16),s=i(0),l=function(t){function e(e,i,a,n,o,r){var s=t.call(this,e,i,{name:e.prodigy.gameContainer.Localizer.getText("NPC_NAME_TOY_MERCHANT"),npc:!0},null,a,n)||this;return s.tweens=[],s.epicName=o,s.zone=r,s.setup(),s.onDestroy.add(s.handleDestroy.bind(s)),s}return n(e,t),e.prototype.handleDestroy=function(){o.GameConstants.get("GameConstants.Build.DEBUG")&&this.game.prodigy.automation.removeAllTriggers(this)},e.prototype.setup=function(){var t=this,e="atlas-90",i="machav2-";this.sprite=this.game.prodigy.create.element(this.sprites,0,0),this.shadow=this.sprite.add(this.game.prodigy.create.sprite(19,19,e,i+"shadow")),this.shadow.anchor.setTo(.5,.5),this.body=this.sprite.add(this.game.prodigy.create.sprite(-4,-43,e,i+"body1")),this.head=this.sprite.add(this.game.prodigy.create.sprite(-17,-107,e,i+"head1")),s.Util.isValid(this.epicName)&&"default"!==this.epicName||this.sprite.add(this.game.prodigy.create.sprite(50,-150,e,"toy-merchant-cart"));for(var a=0;a<this.sprite.children.length;a++)this.sprite.children[a].inputEnabled=!0,s.Util.isValid(this.epicName)&&s.Util.isValid(this.zone)&&"default"!==this.epicName||this.sprite.children[a].events.onInputDown.add(this.clicked.bind(this));this.sprite.x-=Math.floor(this.sprite.width/2),this.standTween=[],this.standTween.push(new r.TweenController(this.head)),this.standTween[0].set("y",[this.head.y,this.head.y+1,this.head.y+2,this.head.y+3,this.head.y+4,this.head.y+3,this.head.y+2,this.head.y+1],150,9999),this.standTween.push(new r.TweenController(this.head)),this.standTween[1].set("frameName",[i+"head1",i+"head2",i+"head3",i+"head4",i+"head1",i+"head6",i+"head7",i+"head8"],150,9999),this.standTween.push(new r.TweenController(this.body)),this.standTween[2].set("y",[this.body.y,this.body.y+1,this.body.y+2,this.body.y+3,this.body.y+4,this.body.y+3,this.body.y+2,this.body.y+1],150,9999),this.standTween.push(new r.TweenController(this.body)),this.standTween[3].set("frameName",[i+"body1",i+"body2",i+"body1",i+"body2",i+"body1",i+"body2",i+"body1",i+"body2"],150,9999),this.standTween.push(new r.TweenController(this.shadow)),this.standTween[4].set("scale",[{x:1,y:1},{x:1.1,y:1.1},{x:1.2,y:1.2},{x:1.3,y:1.3},{x:1.3,y:1.3},{x:1.2,y:1.2},{x:1.1,y:1.1},{x:1,y:1}],150,9999),this.standTween.push(new r.TweenController(this.shadow)),this.standTween[5].set("alpha",[.2,.3,.4,.5,.5,.4,.3,.2],150,9999),this.stand(),o.GameConstants.get("GameConstants.Build.DEBUG")&&this.game.prodigy.automation.addTrigger({ID:"autoclick-mapEvent-toyMerchant",context:this,callback:function(){return{x:t.x,y:t.y}}})},e.prototype.update=function(){t.prototype.update.call(this);for(var e=0;e<this.tweens.length;e++)this.tweens[e].update()},e.prototype.walk=function(){this.stand()},e.prototype.stand=function(){this.tweens=this.standTween;for(var t=0;t<this.tweens.length;t++)this.tweens[t].start()},e.prototype.clicked=function(){var t=this.game.prodigy.event.create();s.Util.isValid(this.epicName)&&s.Util.isValid(this.zone)&&"default"!==this.epicName?"Arctursus"===this.epicName?s.Util.isValid(this.zone.getState("a1Visited"))&&!1!==this.zone.getState("a1Visited")?t.text(8,"toy"):(t.text(3,"toy"),t.function(this.zone.setState.bind(this.zone,"a1Visited",!0))):"Florafox"===this.epicName?s.Util.isValid(this.zone.getState("a2Visited"))&&!1!==this.zone.getState("a2Visited")?t.text(8,"toy"):(t.text(4,"toy"),t.function(this.zone.setState.bind(this.zone,"a2Visited",!0))):"BigHex"===this.epicName?s.Util.isValid(this.zone.getState("b1Visited"))&&!1!==this.zone.getState("b1Visited")?t.text(8,"toy"):(t.text(5,"toy"),t.function(this.zone.setState.bind(this.zone,"b1Visited",!0))):"Magmischief"===this.epicName?s.Util.isValid(this.zone.getState("c1Visited"))&&!1!==this.zone.getState("c1Visited")?t.text(8,"toy"):(t.text(6,"toy"),t.function(this.zone.setState.bind(this.zone,"c1Visited",!0))):"Diveodile"===this.epicName?s.Util.isValid(this.zone.getState("c2Visited"))&&!1!==this.zone.getState("c2Visited")?t.text(8,"toy"):(t.text(7,"toy"),t.function(this.zone.setState.bind(this.zone,"c2Visited",!0))):"Arena"===this.epicName&&t.text(8,"toy"):(t.text(0,"toy"),t.text(1,"toy"),t.function(this.game.prodigy.open.toyStore.bind(this.game.prodigy.open))),t.start()},e}(i(14).CreatureContainer);e.ToyMerchant=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(){this.gameObject=null}return t.prototype.create=function(){},t.prototype.update=function(){},t.prototype.destroy=function(){},t.prototype.hasUniqueInstance=function(){return!1},t}();e.Component=a},function(t,e,i){var a=i(164),n=i(159);t.exports=function(t){return null!=t&&n(t.length)&&!a(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,i){var a=i(286),n="object"==typeof self&&self&&self.Object===Object&&self,o=a||n||Function("return this")();t.exports=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=function(t){function e(e,i){var a=t.call(this,e)||this;return a.data.level=i.level,a.source=i,a}return n(e,t),e.prototype.getAttacks=function(t){return this.source.attacks||[]},e.prototype.getMaxHearts=function(){return this.source.maxHP},e.prototype.getName=function(){return this.source.name},e.prototype.getElement=function(){return this.source.element},e.prototype.getID=function(){return this.source.ID},e.prototype.getStarReward=function(){return o.Util.isValid(this.source.starBonus)?this.source.starBonus:t.prototype.getStarReward.call(this)},e.prototype.canCatch=function(t){return!1},e.prototype.chooseAction=function(t,e,i,a,n){},e}(i(38).Creature);e.Boss=r},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=function(t){function e(i,a,n,o,r){var s=t.call(this,i,a,n,2,o,r)||this;return s.game=i,s.source=n,s.assets=e.getAssets(s.source),s}return n(e,t),e.prototype.startLoad=function(){t.prototype.startLoad.call(this),this.loading=!0,this.assets=e.getAssets(this.source),this.game.prodigy.load.assets(this.assets,this.setup.bind(this))},e.prototype.setup=function(t){if(o.Util.isValid(this.game)&&t&&o.Util.isValid(this.assets)){this.sprites.removeAll(!0);var e,i=this.assets[0];e=this.game.prodigy.assets.getImageBounds(i),this.body=this.game.prodigy.create.sprite(0,0,i),this.sprites.add(this.body),this.body.x=-e[0],this.body.y=-e[3];var a=null;try{this.sprites.callAll("animations.add","animations","walk",[0,1,2,3,4,5,6,7],10,!0,!0),this.sprites.callAll("animations.add","animations","stand",[0,1,2,3,4,5,6,7],10,!0,!0),a=this.body.animations.add("attack",[8,9,10,11,12,13,14,15],10)}catch(t){this.sprites.callAll("animations.add","animations","walk",[0],10,!0,!0),this.sprites.callAll("animations.add","animations","stand",[0],10,!0,!0),a=this.body.animations.add("attack",[0],10)}a.onComplete.add(this.stand,this),this.sprites.callAll("play",null,"stand"),this.complete=!0,this.loading=!1}},e.prototype.attack=function(){try{this.sprites.callAll("play",null,"attack")}catch(t){o.Util.log("Error trying to play BossContainer Attack animation",o.Util.ERROR)}},e.getAssets=function(t){return["default-boss-"+t.getID()]},e}(i(14).CreatureContainer);e.BossContainer=r},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,i){var a=t.call(this)||this;return a.resetAfterDrag=!1,a.source=e,a.metadata=i,a.onLoaded=new Phaser.Signal,a}return n(e,t),e.prototype.create=function(){t.prototype.create.call(this)},e.prototype.setAnchor=function(t,e){},e.prototype.setScale=function(t,e){},e.prototype.getScale=function(){return new Phaser.Point(1,1)},e.prototype.setAlpha=function(t){},e.prototype.getWorld=function(){return new Phaser.Point},e.prototype.getWidth=function(){return 0},e.prototype.getHeight=function(){return 0},e.prototype.getEvents=function(){return null},e.prototype.setInputEnabled=function(t){void 0===t&&(t=!0)},e.prototype.enableDragging=function(t,e,i,a){},e.prototype.disableDragging=function(){},e.prototype.getBounds=function(){return new Phaser.Rectangle(0,0,0,0)},e.prototype.resetToOrigin=function(){},e.prototype.hasAnimations=function(){return!1},e.prototype.getAnimationLength=function(t){return 0},e.prototype.playAnimation=function(t,e,i){},e.prototype.setAsset=function(t,e){},e.prototype.getInputHandler=function(){return null},e.prototype.hasUniqueInstance=function(){return!0},e}(i(43).Component);e.Renderer=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(3),s=i(34),l=i(854),h=i(250),c=i(0),p=i(849),u=function(t){function e(e,i,a,n){void 0===i&&(i="zero"),void 0===a&&(a=""),void 0===n&&(n=[]);var o=t.call(this)||this;return o.screenData=null,o.showMenu=!1,o.game=e,o.screenName=a,o.zoneName=i,o.assets=n,o}return n(e,t),e.prototype.initListeners=function(){this.game.broadcaster.addAppListener(r.EScreenEvents.AddChild,this.onAddChild.bind(this),this,this.game),this.game.broadcaster.addAppListener(r.EScreenEvents.GetLayer,this.onGetLayer.bind(this),this,this.game),this.game.broadcaster.addAppListener(r.EScreenEvents.EnableBackground,this.onEnableBackground.bind(this),this,this.game),this.game.broadcaster.addAppListener(r.EScreenEvents.EnableContent,this.onEnableContent.bind(this),this,this.game)},e.prototype.stopListeners=function(){this.game.broadcaster.removeAppListener(r.EScreenEvents.AddChild,this,this.game),this.game.broadcaster.removeAppListener(r.EScreenEvents.GetLayer,this,this.game),this.game.broadcaster.removeAppListener(r.EScreenEvents.EnableBackground,this,this.game),this.game.broadcaster.removeAppListener(r.EScreenEvents.EnableContent,this,this.game)},e.prototype.onEnableBackground=function(t){this.background.visible=t,this.foreground.visible=t},e.prototype.onEnableContent=function(t){this.content.visible=t},e.prototype.onAddChild=function(t,e,i){c.Util.isValid(this.stage)&&c.Util.isValid(this[e])&&(c.Util.isValid(i)?this[e].addChildAt(t,i):this[e].addChild(t))},e.prototype.onGetLayer=function(t){return c.Util.isValid(this.stage)&&c.Util.isValid(this[t])?this[t]:null},e.prototype.shutdown=function(){this.game.prodigy.cleanup(),this.stopListeners(),this.game.prodigy.network.stopInactiveTimer(),this.background.destroy(),this.content.destroy(),this.foreground.destroy(),this.menus.destroy(),this.dialogue.destroy(),this.overlay.destroy(),this.opaque.destroy(),this.background=null,this.content=null,this.foreground=null,this.menus=null,this.dialogue=null,this.overlay=null,this.opaque=null,t.prototype.shutdown.call(this,this.game)},e.prototype.preload=function(){if(this.background=this.game.add.group(),this.content=this.game.add.group(),this.foreground=this.game.add.group(),this.menus=this.game.add.group(),this.dialogue=this.game.add.group(),this.overlay=this.game.add.group(),this.opaque=this.game.add.group(),this.opaque.add(new Phaser.TileSprite(this.game,0,0,1280,720,"atlas-161","load")).inputEnabled=!0,o.GameConstants.get("GameConstants.Build.DEBUG")){this.debugLayout=new l.DebugLayout,this.menus.add(new s.GameObject(this.game,this.menus,[this.debugLayout]));var e=o.GameConstants.get("GameConstants.Build.SHOW_DEBUG_VALUES");o.GameConstants.get("GameConstants.Build.SHOW_FPS")&&e.indexOf("AVERAGE_FPS")<0&&e.push("AVERAGE_FPS");for(var i=0;i<e.length;++i){var a=h[e[i]];c.Util.isValid(a)&&this.debugLayout.addRenderer(new a)}}this.game.prodigy.open.menuLayer=this.menus,this.game.prodigy.dialogue.create().menuLayer=this.dialogue,this.game.prodigy.effects.setSource(this),t.prototype.preload.call(this,this.game),this.initListeners(),this.game.prodigy.network.startInactiveTimer()},e.prototype.create=function(e){t.prototype.create.call(this,this.game),this.screenSetup(),this.complete=!0},e.prototype.fadeIn=function(){this.fadeInSet?this.game.add.tween(this.opaque).to({alpha:0},1e3,Phaser.Easing.Quadratic.Out).start().onComplete.add(this.start.bind(this,!0,!1)):(this.opaque.visible=!1,this.start(!0,!1))},e.prototype.fadeOut=function(t,e){(this.opaque.visible=!0,this.game.prodigy.notifications.notificationPlayed(),this.game.prodigy.notifications.stopFriendTimer(),t)?this.game.add.tween(this.opaque).to({alpha:1},1e3,Phaser.Easing.Quadratic.Out).start().onComplete.add(e):e()},e.prototype.start=function(t,e){this.opaque.visible=!1},e.prototype.update=function(){t.prototype.update.call(this,this.game),this.complete&&this.screenUpdate()},e.prototype.screenSetup=function(){this.start()},e.prototype.screenUpdate=function(){this.game.prodigy.update()},e.prototype.showMessage=function(t,e){c.Util.isValid(this.msg)||(this.msg=new p.ScreenMessage(this.game,this.overlay,140,10)),this.msg.setMsg(t,e)},e.prototype.enableOverlay=function(t){void 0===t&&(t=.5),c.Util.isValid(this.rearOverlay)&&this.rearOverlay.kill(),this.rearOverlay=this.foreground.add(this.game.prodigy.create.sprite(-10,-10,"atlas-18","overlay-small")),this.rearOverlay.width=1300,this.rearOverlay.height=740,this.rearOverlay.alpha=t,this.rearOverlay.inputEnabled=!0,this.game.add.tween(this.rearOverlay).from({alpha:0},500,Phaser.Easing.Linear.None,!0)},e.prototype.disableOverlay=function(t){var e=this;if(c.Util.isValid(this.rearOverlay)){var i=this.game.add.tween(this.rearOverlay).to({alpha:0},500,Phaser.Easing.Linear.None);i.onComplete.add(function(){e.rearOverlay.kill(),c.Util.isValid(t)&&t()},this),i.start()}},e}(Phaser.State);e.Screen=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),n=i(238),o=i(237),r=i(792),s=function(){function t(){}return t.createRenderer=function(t,e){switch(e.type){case"spine":return new n.SpineRenderer(t,e);case"singleImage":return new o.SpriteRenderer(t,e);case"spritesheet":return new r.SpritesheetRenderer(t,e);default:return new o.SpriteRenderer(t,e)}},t.createRendererWithItem=function(e,i,n){var o=null;return o=a.Util.isValid(n.type)?e+"-"+i:"icon-"+e+"-"+i,t.createRenderer(o,n)},t}();e.RenderFactory=s},function(t,e,i){var a=i(987),n=i(940),o=i(82),r=i(19),s=i(932);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?r(t)?n(t[0],t[1]):a(t):s(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.FSMController="FSMController",t.FSMFactories="FSMFactories",t.FSMDataProvider="FSMDataProvider",t.FSMService="FSMService",t.LocalizationData="LocalizationData",t.LocalizationService="LocalizationService",t.LoggerService="LoggerService"}(e.GameIdentifiers||(e.GameIdentifiers={}))},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.setup=function(e,i,a){if(t.prototype.setup.call(this,e,i,a),o.Util.isValid(this.monsterCoords)){var n=this.game.prodigy.gameContainer.Localizer.getText("NO_CATCHING_MONSTER_ON_ISLAND");if(this.zone.hasDailyQuestExpired()||this.zone.isDailyQuestComplete())this.defaultMonsterSetup(e,i,n);else if(0===this.zone.getState("dailyQuest").questId)if(this.zone.getState("dailyQuest").questState[this.mapId])this.defaultMonsterSetup(e,i,n);else for(var r=this.zone.getMonsterId(),s=Math.floor(this.game.seededRandom.frac(this.zone.getState("dailyQuest").dateId)*this.mapId)%this.monsterCoords.length,l={randDir:!0,encounter:this.zone.getMonsterList(),catchOverrideMessage:n},h={randDir:!0,encounter:[r],catchOverrideMessage:n,highlight:!0,dailyQuest:this.mapId,zoneID:this.zone.ID,drops:[{type:"currency",ID:9,N:2}]},c=!1,p=0;p<this.monsterCoords.length;p++)p!==s?(c=o.Util.isValid(this.mapMonsters[p+1])&&o.Util.isValid(this.mapMonsters[p+1].data)&&o.Util.isValid(this.mapMonsters[p+1].data.ID)&&this.mapMonsters[p+1].data.ID===r.ID,this.addMonster(e,i,p+1,this.monsterCoords[p].x,this.monsterCoords[p].y,!1,l,!1,null,c)):this.addMonster(e,i,p+1,this.monsterCoords[p].x,this.monsterCoords[p].y,!0,h,!1,null,!0)}},e.prototype.start=function(e,i,a){t.prototype.start.call(this,e,i,a);var n=this.game.prodigy.event.create();if(o.Util.isValid(this.zone.getState("questCompleteDialogue"))&&!1===this.zone.getState("questCompleteDialogue")&&this.zone.isDailyQuestComplete()){var r=this.zone.ID.replace("_","-");this.game.prodigy.network.sendAnalytics(r+"-quests","quests-completed-MVP","Events"),n.text(41,"noot"),n.function(this.zone.setState.bind(this.zone,"questCompleteDialogue",!0)),n.start()}else o.Util.isValid(this.zone.getState("questExpiredDialogue"))&&!1===this.zone.getState("questExpiredDialogue")&&!1===this.zone.getState("handedOverQuest")&&this.zone.hasDailyQuestExpired()&&(n.text(166,"noot"),n.function(this.zone.setState.bind(this.zone,"questExpiredDialogue",!0)),n.start())},e.prototype.defaultMonsterSetup=function(t,e,i){for(var a={randDir:!0,encounter:this.zone.getMonsterList(),catchOverrideMessage:i},n=0;n<this.monsterCoords.length;n++)this.addMonster(t,e,n+1,this.monsterCoords[n].x,this.monsterCoords[n].y,!1,a)},e}(i(7).Map);e.ActivityZoneMap=r},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(12),s=i(4),l=i(29),h=i(0),c=i(18),p=i(32),u=function(t){function e(i,a,n,o,r){var s=t.call(this,i,a,0,0,i.prodigy.textureMenu)||this;if(s.currentConfigIndex=0,s.analyticEvents={},s.membershipParentOpen=!1,s.gearIcons=[],s.onClose=o,e.callback=s.finishUpgrade.bind(s),s.currentConfigIndex=null,h.Util.isValid(r)&&(s.analyticEvents=r),h.Util.isValid(n))for(var l=0;l<e.featureIconConfigs.length;l++)if(n===e.featureIconConfigs[l]){s.currentConfigIndex=l;break}h.Util.isValid(s.analyticEvents.upgradeButtonClick)&&(h.Util.isValid(s.analyticEvents.upgradeButtonClick.action)||(h.Util.log("MemberPanelAd - analyticEvents.upgradeButtonClick was provided but action property was missing. Defaulting to action='upgradeButtonClick'",h.Util.ERROR),s.analyticEvents.upgradeButtonClick.action="upgradeButtonClick")),s.analyticEvents.conversionFunnelName=h.Util.isValid(s.analyticEvents.conversionFunnelName)?s.analyticEvents.conversionFunnelName:"",s.analyticEvents.conversionFunnelMetadata=h.Util.isValid(s.analyticEvents.conversionFunnelMetadata)?s.analyticEvents.conversionFunnelMetadata:"",s.create();try{var c=h.Util.isValid(s.currentConfigIndex)?e.featureIconConfigs[s.currentConfigIndex].trackingEvent:"unknown";s.game.prodigy.network.sendEvent("member-ad",{status:"open",type:"new",feature:c})}catch(t){}return s}return n(e,t),e.reconcileConfig=function(t){var i=t;return t===e.DEFAULT?i=e.MEMBER_CHESTS:t===e.PREMIUM_ITEM?i=e.MEMBER_CHESTS:t===e.BIGGER_ROSTER?i=e.MEMBER_PETS:t===e.NICKNAME&&(i=e.MEMBER_CHESTS),i},e.prototype.create=function(){t.prototype.create.call(this),this.addTransparent(),this.gearIcons=this.generateGearIcons(6,null),this.startLoad(["atlas-128"],this.onAssetsLoaded.bind(this))},e.prototype.onAssetsLoaded=function(){var t=this,e=0,i=502,a=734,n=37,o=0,r=333,s=113,l=143,c=542,p=163,u=this.game.prodigy.create.element(this,0,0);u.setRenderState(!0);var d=this.game.prodigy.create.sprite(0,0,"atlas-128","popup-box");u.add(d);var g=h.Util.getCenteredXY(d.width,d.height,0,0,this.width,this.height);d.x=g.x,d.y=g.y;var y=this.generateFeatureIcons(3,this,this.currentConfigIndex);if(h.Util.centerItemsWithinContainer(y,{x:d.x+s,y:d.y+l,width:c,height:p},!1),!this.game.prodigy.player.hasMembership()){var f=this.game.prodigy.create.button(this,0,0,"atlas-128","member-button",this.onMembershipButtonClick.bind(this,"MemberButton"));g=h.Util.getCenteredXY(f.width,f.height,this.x,this.y,this.width,this.height),f.x=g.x+e,f.y=d.y+i}var m=this.game.prodigy.create.button(this,0,0,"atlas-128","exit-button",this.close.bind(this));m.x=d.x+a,m.y=d.y+n;var _=this.game.prodigy.create.element(this,0,0),v=this.game.prodigy.create.sprite(0,0,"atlas-128","gear-box");_.add(v),g=h.Util.getCenteredXY(v.width,v.height,0,0,this.width,this.height),v.x=g.x+o,v.y=d.y+r,v.inputEnabled=!0,v.events.onInputDown.add(this.onMembershipButtonClick.bind(this,"GearPanel")),h.Util.centerItemsWithinContainer(this.gearIcons,v,!1,{x:0,y:24},{width:90,height:90}),this.gearIcons.forEach(function(e){t.add(e)},this);var E=[];(E=E.concat(y).concat(this.gearIcons)).forEach(function(e,i){t.game.add.tween(e).to({y:e.y-20},125,Phaser.Easing.Quadratic.InOut,!0,125*i,0,!0)},this),this.process()},e.prototype.getFilteredIconArray=function(){var t=this;return e.featureIconConfigs.filter(function(e){return!h.Util.isValid(e.splitTestDefinition)||h.Util.inTestGroups.apply(t,[t.game.prodigy.player,e.splitTestDefinition])})},e.prototype.generateFeatureIcons=function(t,i,a){for(var n=this.getFilteredIconArray().map(function(t,e){return e}),o=[],r=0;r<t;r++){var s=0,c=n[s=0===r&&h.Util.isValid(a)?a:l.Random.integerInRange(0,n.length-r)],p=e.featureIconConfigs[c],u=this.game.prodigy.create.button(i,0,0,"atlas-128",p.frameName,this.onMembershipButtonClick.bind(this,p.trackingEvent));o.push(u);var d=n.length-(r+1);n[s]=n[d],n[d]=c}return h.Util.isValid(this.analyticEvents.upgradeButtonClick)&&this.game.prodigy.network.sendAnalytics(this.analyticEvents.upgradeButtonClick.action,this.analyticEvents.upgradeButtonClick.value,this.analyticEvents.upgradeButtonClick.category),this.process(),o},e.prototype.generateGearIcons=function(t,e){var i,a,n=null,o=[],r=[{category:"boots",count:0},{category:"hat",count:0},{category:"outfit",count:0},{category:"weapon",count:0}],c=[];for(i=0;i<r.length;i++){var u=s.Items.data[r[i].category];for(a=0;a<u.length;a++)(n=u[a]).category=r[i].category,h.Util.isValid(n.data)&&h.Util.isValid(n.data.member)&&1===n.data.member&&(!h.Util.isValid(n.data.memberAd)||n.data.memberAd>0)&&(c.push(n),r[i].count++)}for(i=0;i<t;i++){var d=l.Random.integerInRange(0,c.length-i);n=c[d],o.push(this.game.prodigy.create.item(e,0,0,{ID:n.ID,type:n.category},p.EItemInfoMode.IconNoBackground));var g=c.length-(i+1);c[d]=c[g],c[g]=n}return o},e.prototype.onMembershipButtonClick=function(t){if(!this.game.prodigy.player.hasMembership()){try{this.game.prodigy.network.sendEvent("member-ad",{status:"convert",type:"new",feature:t})}catch(t){}this.game.prodigy.network.sendAnalytics("Purchase-Membership-Click",t),this.game.prodigy.network.sendConversionFunnelEvent(this.analyticEvents.conversionFunnelName,c.EFunnelEventIDs.StageClickMembership,this.analyticEvents.conversionFunnelMetadata),this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:this.analyticEvents.conversionFunnelName,name:c.EFunnelEventIDs.StageClickMembership},!0),h.Util.isValid(this.analyticEvents.upgradeButtonClick)&&this.game.prodigy.network.sendAnalytics(this.analyticEvents.upgradeButtonClick.action,this.analyticEvents.upgradeButtonClick.value,this.analyticEvents.upgradeButtonClick.category);var e=this.game.prodigy.player,i=h.Util.isValid(e.locationSelectionType)&&e.locationSelectionType===o.default.get("GameConstants.LocationSelection.SCHOOL");this.membershipParentOpen||(this.membershipParentOpen=!0,this.game.prodigy.open.membershipParent(this,!i,null,null,this.analyticEvents))}},e.prototype.finishUpgrade=function(t){var e=this.game.prodigy.gameContainer.Localizer;if(this.game.prodigy.network.startInactiveTimer(),t){var i=null;this.game.prodigy.player.setMembership(),i=0===this.game.prodigy.player.backpack.hasItem("mount",1)?this.game.prodigy.player.rewardMembershipPrizes.bind(this):this.close.bind(this),this.game.prodigy.open.message(e.getText("MEMBER_AD_SUCCESS_BODY"),i,null,e.getText("MEMBER_AD_SUCCESS_TITLE"));try{this.game.prodigy.network.sendEvent("new-member",{})}catch(t){}}else this.game.prodigy.open.message(e.getText("MEMBER_AD_PURCHASE_FAILED_BODY"))},e.callback=null,e.DEFAULT={frameName:"icons/iconbox-TEST",trackingEvent:"Feature-MemberChests"},e.MEMBER_CHESTS={frameName:"icons/member-chests",trackingEvent:"Feature-MemberChests"},e.BUDDIES={frameName:"icons/cute-and-cool-buddies",trackingEvent:"Feature-Buddies"},e.HOUSE_ITEMS={frameName:"icons/special-house-furniture",trackingEvent:"Feature-HouseItems"},e.NEW_HOUSE={frameName:"icons/new-house",trackingEvent:"Feature-NewHouse"},e.MORE_GOLD={frameName:"icons/more-gold",trackingEvent:"Feature-MoreGold"},e.MORE_EXP={frameName:"icons/level-faster",trackingEvent:"Feature-LevelFaster"},e.WHEEL_SPIN={frameName:"icons/more-spins",trackingEvent:"Feature-MoreSpins"},e.MEMBER_PETS={frameName:"icons/catch-more-pets",trackingEvent:"Feature-MorePets"},e.CATCH={frameName:"icons/second-catch",trackingEvent:"Feature-SecondCatchChance"},e.BOOSTS={frameName:"icons/minigame-boosts",trackingEvent:"Feature-MinigameBoosts"},e.STYLE={frameName:"icons/cool-new-styles",trackingEvent:"Feature-NewStyles"},e.CLOUD_MOUNT={frameName:"icons/cloud-mount",trackingEvent:"Feature-CloudMount"},e.TOWER={frameName:"icons/climb-the-dark-tower",trackingEvent:"Feature-DarkTower"},e.VISIT_HOUSE={frameName:"icons/friends-visit-house",trackingEvent:"Feature-VisitHouse"},e.POTIONS={frameName:"icons/potions",trackingEvent:"Feature-PowerfulPotions"},e.DANCE={frameName:"icons/dab-dance",trackingEvent:"Feature-Dab"},e.PREMIUM_ITEM={frameName:"icons/iconbox-TEST",trackingEvent:"PremiumItems"},e.BIGGER_ROSTER={frameName:"icons/iconbox-TEST",trackingEvent:"BiggerRoster"},e.NICKNAME={frameName:"icons/iconbox-TEST",trackingEvent:"Nickname"},e.EVOLVE_PETS={frameName:"icons/evolve-pets",trackingEvent:"Nickname"},e.featureIconConfigs=[e.MEMBER_CHESTS,e.TOWER,e.BUDDIES,e.MORE_GOLD,e.MORE_EXP,e.WHEEL_SPIN,e.MEMBER_PETS,e.CATCH,e.BOOSTS,e.STYLE,e.CLOUD_MOUNT,e.VISIT_HOUSE,e.HOUSE_ITEMS,e.NEW_HOUSE,e.POTIONS,e.DANCE,e.EVOLVE_PETS],e}(r.RenderMenu);e.MemberAd=u},function(t,e,i){"use strict";var a=this&&this.__assign||Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0});var n,o=i(694),r=i(0);!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ACHIEVEMENTS=1]="ACHIEVEMENTS",t[t.ITEMRARE=2]="ITEMRARE",t[t.MEMBERSHIP=3]="MEMBERSHIP",t[t.STOREPURCHASE=4]="STOREPURCHASE",t[t.MEMBERBOX=5]="MEMBERBOX",t[t.PARENTREWARD=6]="PARENTREWARD",t[t.ITEMGENERIC=7]="ITEMGENERIC",t[t.LAMPLIGHTPURCHASE=8]="LAMPLIGHTPURCHASE",t[t.ITEMWHEEL=9]="ITEMWHEEL"}(n=e.NotificationType||(e.NotificationType={}));var s=function(){function t(t){this.game=null,this.isPlaying=!1,this.currentNotification=null,this.notificationQueue=[],this.friendNotificationQueue=[],this.notificationSocialLogin=!1,this.dialogueOpen=!1,this.getFeedDate=null,this.notificationTimer=null,this.friendNotificationTimer=null,this.timerOverride=!1,this.fetchTimeout=15e4,this.DEFAULT={category:"",header:"",mapping:[],metaData:{}},this.ITEMRARE={category:"item",header:"{id} got a super rare item: '{p0}'!",mapping:[],metaData:{}},this.ACHIEVEMENTS={category:"award",header:"{id} ranked up in the '{p0}' Achievement!",mapping:[],metaData:{}},this.MEMBERSHIP={category:"membership",header:"{id} became a Member!",mapping:[],metaData:{}},this.STOREPURCHASE={category:"item",header:"{id} bought the {p0} from the {p1} shop.",mapping:[],metaData:{}},this.MEMBERBOX={category:"membership",header:"{id} opened a Monthly Member Box with cool prizes inside!",mapping:[],metaData:{}},this.PARENTREWARD={category:"item",header:"{id} opened a Parent Reward Box with cool prizes inside!",mapping:[],metaData:{}},this.ITEMGENERIC={category:"item",header:"{id} got the '{p0}' item",mapping:[],metaData:{}},this.LAMPLIGHTPURCHASE={category:"item",header:"{id} bought the {p0} from a shop in Lamplight Town",mapping:[],metaData:{}},this.ITEMWHEEL={category:"item",header:"{id} got the {p0} from the {p1}!",mapping:[],metaData:{}},this.notificationConfigs=[this.DEFAULT,this.ACHIEVEMENTS,this.ITEMRARE,this.MEMBERSHIP,this.STOREPURCHASE,this.MEMBERBOX,this.PARENTREWARD,this.ITEMGENERIC,this.LAMPLIGHTPURCHASE,this.ITEMWHEEL],this.game=t,this.isPlaying=!1}return t.prototype.startFriendTimer=function(){this.stopFriendTimer(),this.friendNotificationTimer=this.game.time.events.add(this.fetchTimeout,this.getSocialNotifications,this,3)},t.prototype.stopFriendTimer=function(){this.game.time.events.remove(this.friendNotificationTimer),this.friendNotificationTimer=null},t.prototype.startTimer=function(e){void 0===e&&(e=!1),this.timerOverride&&!e||(this.timerOverride=!1,this.stopTimer(),this.notificationTimer=this.game.time.events.add(t.toasterTimeout,this.playNextNotification,this))},t.prototype.stopTimer=function(){this.game.time.events.remove(this.notificationTimer),this.notificationTimer=null},t.prototype.playNextNotification=function(){if(!this.isPlaying&&0===this.game.prodigy.open.menus.length&&0===this.game.prodigy.open.renderMenus.length&&null===this.game.prodigy.open.chatMenu&&!this.dialogueOpen)if(this.notificationQueue.length>0){var t=this.notificationQueue.shift();this.playNotification(t.id,t.data,t.callback,t.isSharing)}else if(this.friendNotificationQueue.length>0){t=this.friendNotificationQueue.shift();this.playNotification(t.id,t.data,t.callback,t.isSharing)}this.startTimer()},t.prototype.clearNotifications=function(t){void 0===t&&(t=!1),r.Util.isValid(this.currentNotification)&&(this.currentNotification.forceClose(),this.notificationPlayed()),r.Util.isValid(this.notificationTimer)&&(this.timerOverride=t,this.stopTimer())},t.prototype.playNotification=function(t,e,i,a){void 0===i&&(i=null),void 0===a&&(a=!0),!this.isPlaying&&this.game.prodigy.player.hasCompletedTutorial()?(this.isPlaying=!0,a?this.createUserFeed(t,e,"false"):(this.currentNotification=new o.NotificationCell(this.game,this.menuLayer,e,i,null),this.currentNotification.preprocess())):this.pushNotification({id:t,data:e,callback:i,isSharing:a})},t.prototype.notificationPlayed=function(){this.isPlaying=!1,this.currentNotification=null},t.prototype.pushNotification=function(t){if(this.notificationQueue.length<3&&t.id!==n.MEMBERSHIP)this.notificationQueue.unshift(t);else{var e=t.id!==n.MEMBERSHIP?"false":"true";this.game.prodigy.network.createUserFeed(t.id,t.data.metaData,t.data.mapping,e,null,null)}},t.prototype.getSocialNotifications=function(t){var e=r.Util.getFriendAndClassmateIds(this.game);e.length>0&&this.notificationQueue.length<3&&this.game.prodigy.network.getUserFeed("",e,0,t-this.notificationQueue.length,this.getFeedDate.toISOString(),this.getUserFeedSuccess.bind(this),this.getUserFeedFailure.bind(this))},t.prototype.getUserFeedSuccess=function(t){var e=r.Util.isValid(t.events)?t.events:[];t.fetchTimeout>0&&(this.fetchTimeout=1e3*t.fetchTimeout);for(var i=0;i<e.length;i++){var a={category:this.notificationConfigs[e[i].feedTypeID].category,header:e[i].responseHeader.value,mapping:e[i].mapping,metaData:{userID:e[i].userID,isLike:!0}};this.friendNotificationQueue.push({id:e[i].feedTypeID,data:a,callback:this.likeNotification.bind(this,e[i],"toaster"),isSharing:!1}),this.getFeedDate=new Date}r.Util.getFriendAndClassmateIds(this.game).length>0&&this.startFriendTimer()},t.prototype.getUserFeedFailure=function(){r.Util.getFriendAndClassmateIds(this.game).length>0&&this.startFriendTimer()},t.prototype.playNootDialogue=function(t){void 0===t&&(t=!1);var e=[{s:0,d:1},{s:6,d:1},{s:16,d:1},{s:4,d:1}],i=t?e.length:e.length-2,a=Math.floor(Math.random()*i);this.game.prodigy.load.assets(["voice-10-85"],this.game.prodigy.audio.playVoice.bind(this.game.prodigy.audio,"voice-10-85",null,e[a].s,e[a].d))},t.prototype.shareNotification=function(t,e){this.playNootDialogue(!0),this.shareUserFeed(t,e)},t.prototype.likeNotification=function(t,e){this.playNootDialogue(),this.likeUserFeed(t,e)},t.prototype.createUserFeed=function(t,e,i){this.game.prodigy.network.createUserFeed(t,e.metaData,e.mapping,i,this.createUserFeedSuccess.bind(this,e),this.createUserFeedFailure.bind(this))},t.prototype.createUserFeedSuccess=function(t,e){this.game.prodigy.network.sendAdvancedEvent("game_social",{meta:JSON.stringify({name:"game_social",type:"feed",action:"generated",source:"toaster",num_friends:this.game.prodigy.friendsListNetworkHandler.friendsList.length,num_classmates:this.game.prodigy.friendsListNetworkHandler.classList.length,category:this.notificationConfigs[e.feedTypeID].category})}),this.currentNotification=new o.NotificationCell(this.game,this.menuLayer,t,this.shareNotification.bind(this,e,"toaster"),null),this.currentNotification.preprocess()},t.prototype.createUserFeedFailure=function(){this.isPlaying=!1,this.currentNotification=null},t.prototype.likeUserFeed=function(t,e){this.game.prodigy.network.likeUserFeed(t.id,this.likeUserFeedSuccess.bind(this,t,e),null)},t.prototype.likeUserFeedSuccess=function(t,e){this.game.prodigy.network.sendAdvancedEvent("game_social",{meta:JSON.stringify({name:"game_social",type:"feed",action:"like",source:e,num_friends:this.game.prodigy.friendsListNetworkHandler.friendsList.length,num_classmates:this.game.prodigy.friendsListNetworkHandler.classList.length,category:this.notificationConfigs[t.feedTypeID].category,rarity:"item"===this.notificationConfigs[t.feedTypeID].category?t.metaData.rarity:null})})},t.prototype.shareUserFeed=function(t,e){this.game.prodigy.network.shareUserFeed(t.id,this.shareUserFeedSuccess.bind(this,t,e),null)},t.prototype.shareUserFeedSuccess=function(t,e){this.game.prodigy.network.sendAdvancedEvent("game_social",{meta:JSON.stringify({name:"game_social",type:"feed",action:"share",source:e,num_friends:this.game.prodigy.friendsListNetworkHandler.friendsList.length,num_classmates:this.game.prodigy.friendsListNetworkHandler.classList.length,category:this.notificationConfigs[t.feedTypeID].category})})},t.prototype.initNotificationTemplate=function(t,e,i){void 0===e&&(e=[]),void 0===i&&(i={});var n=a({},this.notificationConfigs[t]);return n.mapping=e,n.metaData=i,n},t.toasterTimeout=3e3,t}();e.NotificationController=s},function(t,e,i){var a=i(275),n=i(157),o=i(44);t.exports=function(t){return o(t)?a(t):n(t)}},function(t,e,i){var a=i(70),n=i(974),o=i(973),r="[object Null]",s="[object Undefined]",l=a?a.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:r:l&&l in Object(t)?n(t):o(t)}},function(t,e,i){var a=i(975),n=i(970);t.exports=function(t,e){var i=n(t,e);return a(i)?i:void 0}},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(143),r=i(0),s=function(t){function e(e,i,a,n,r,s,l,h,c){void 0===c&&(c=null);var p=t.call(this,e,i)||this;return p.input=null,p.style={},p.ID="",p.canvas=null,p.allowEvents=!1,p.inputWidth=0,p.inputHeight=0,p.label=null,p.input=document.createElement("input"),p.input.setAttribute("value",""),p.input.setAttribute("id",a),p.input.setAttribute("class","game-input"),p.input.setAttribute("autocapitalize","off"),p.style=c,p.ID="#"+a,document.getElementById("external-ui").appendChild(p.input),p.canvas=o("#game-container canvas"),p.x=r,p.y=s,p.inputWidth=l,p.inputHeight=h,p.createEvents(),p}return n(e,t),e.createInputField=function(t,i,a,n,s,l,h,c,p){void 0===p&&(p="textProdigy123");var u=o("#"+a);r.Util.isValid(u)&&u.remove();var d=new e(t,i,a,n,s,l,h-15,c);return d.setAttribute("type",p),d},e.prototype.setFocus=function(t){t&&o(this.ID).trigger("focus")},e.prototype.clearEvents=function(t){this.allowEvents=t},e.prototype.getValue=function(){return o(this.ID).val()},e.prototype.setValue=function(t){o(this.ID).val(t)},e.prototype.hide=function(t){this.visible=!1,o(this.ID).fadeOut(t),r.Util.isValid(this.label)&&(this.label.alpha=0),o(this.ID).trigger("focusout")},e.prototype.show=function(t,e){void 0===e&&(e=null),this.visible=!0,r.Util.isValid(e)?setTimeout(this.fadeIn.bind(this,t),e):this.fadeIn(t)},e.prototype.fadeIn=function(t){o(this.ID).fadeIn(t),r.Util.isValid(this.label)&&(this.label.alpha=1)},e.prototype.setEnabled=function(t){o(this.ID).attr("disabled",t?null:"disabled")},e.prototype.setLabel=function(t,e,i,a){void 0===e&&(e=null),void 0===i&&(i=!1),void 0===a&&(a=null),r.Util.isValid(this.label)?this.label.setText(e):this.label=this.game.prodigy.create.font(t,r.Util.isValid(a)?a:this.x+10,this.y-30,e,{size:20})},e.prototype.update=function(){t.prototype.update.call(this);var e=o(this.ID),i=this.canvas.height()/this.game.world.height;e.height(i*this.inputHeight);var a=this.canvas.width()/this.game.world.width;e.width(a*this.inputWidth);var n=i*this.y,s=a*this.x+parseInt(o("#game-container canvas").css("margin-left")),l=i*this.inputHeight*.5;o(this.ID).css({top:n,left:s,"font-size":l+"px"}),r.Util.isValid(this.style)&&o(this.ID).css(this.style)},e.prototype.setAttribute=function(t,e){this.input.setAttribute(t,e)},e.prototype.destroy=function(){o(this.ID).trigger("focusout"),o(this.ID).remove(),t.prototype.destroy.call(this)},e.prototype.createEvents=function(){var t=this;this.allowEvents=!0;var e=o(this.ID);e.on("focus",null,{game:this.game},function(){t.focus(!0)}),e.on("focusout",null,{game:this.game},function(){t.focus(!1)})},e.prototype.focus=function(t){this.allowEvents&&(t?this.game.input.keyboard.clearCaptures():this.game.input.keyboard.addKeyCapture([Phaser.Keyboard.BACKSPACE]))},e.HEIGHT_MEDIUM=45,e.WIDTH_MEDIUM=300,e}(i(5).Element);e.InputField=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(10),n=i(2),o=i(41),r=i(3),s=i(212),l=i(196),h=i(640),c=i(30),p=i(0),u=i(639),d=i(190),g=function(){function t(t,e){var i=this;this.api=null,this.game=null,this.loggedIn=!1,this.player=null,this.eventsQueue=[],this.nonRegisteredEventsQueue=[],this.eventFlags=null,this.UUID="",this.typeTimeStamps={},this.offlineTimer=-1,this.offlineMessage=null,this.open=null,this.socketConnected=!0,this.inactiveTimer=null,this.updateFailedTime=null,this.zone=null,this.loginTimer=null,this.saveCallback=null,this.forceUpdate=!1,this.saving=!1,this.processPlayer=!1,this.processFriendsList=!1,this.lastUpdate=null,this.hasFailedUpdate=!1,this.isActivityDialogOpen=!1,this.player=null,this.game=t,this.open=new s.MenuFactory(t),this.api=new u.APIClient({clientVersion:this.game.clientVersion},{503:function(){i.initGoingOffline()}},e),this.api.setErrorHandler(this.onError.bind(this)),setInterval(this.updateCharacter.bind(this),3e3),this.UUID=p.Util.generateUUID(),this.eventFlags=d.APIGameData.getEventFlags(),this.typeTimeStamps={},this.eventsQueue=[],this.nonRegisteredEventsQueue=[],setInterval(this.sendQueuedEvents.bind(this),this.eventFlags.time)}return t.prototype.getKey=function(){return this.api.getUserToken()},t.openWebsite=function(t,e){void 0===e&&(e=!0);try{var i="https://"+t;e?window.open(i):c.Device.isNativeApp()&&c.Device.nativeAppVersion()>1?window.postMessage(JSON.stringify({type:"OPEN_URL_IN_BROWSER",payload:i}),"*"):window.location.href=i}catch(t){}},t.prototype.getErrorMessage=function(t,e){var i=this.game.prodigy.gameContainer.Localizer;return p.Util.isValid(t)&&p.Util.isValid(e)?i.getText(e[t]):p.Util.isValid(e)?i.getText(e[0]):i.getText("NETWORK_ERROR")},t.prototype.sendAnalytics=function(t,e,i){if(p.Util.isValid(this.player)&&this.loggedIn){var a=i;p.Util.isValid(i)||(a=this.player.isMember?"Member-Events":"Non-Member-Events",this.player.isMember&&1===this.player.data.nm&&(a="New-Member-Events")),p.Util.log("GAQ "+a+", "+t+", "+e);try{_gaq.push(["_trackEvent",""+a,""+t,""+e])}catch(t){}}else p.Util.log("GAQ "+i+", "+t+", "+e)},t.prototype.sendToyEvent=function(t,e,i){try{var a={stage:e,type:t};p.Util.isValid(i)&&(a.toy_id=i),this.sendEvent("toy-event",a)}catch(t){}},t.prototype.sendZoneEvent=function(t,e){void 0===e&&(e="");try{var i=this.game.prodigy.world.getCurrentMap();if(p.Util.isValid(i)){var a=i.split("-");2===a.length&&this.sendEvent("zone-event",{type:t,zoneName:a[0],mapName:a[1],metadata:e})}}catch(t){}},t.prototype.sendItemChangeEvent=function(t,e){try{var i=this.game.prodigy.world.getCurrentMap();if(p.Util.isValid(i)){var a=i.split("-");2===a.length&&this.sendEvent("item-change-event",{type:t,zoneName:a[0],mapName:a[1],itemType:e.type,itemID:e.ID,itemN:p.Util.isValid(e.N)?e.N:1})}}catch(t){}},t.prototype.sendGiftBoxEvent=function(){try{this.sendEvent("item-change-event",{name:"open-gift-box"})}catch(t){p.Util.log(t.message,p.Util.ERROR)}},t.prototype.sendConversionFunnelEvent=function(t,e,i){if(void 0===i&&(i=""),!c.Device.isNativeApp())try{this.sendEvent("conversion-funnel-event",{funnelName:t,stageTag:e,selectedPlayingFromHome:this.game.prodigy.player.locationSelectionType===n.GameConstants.get("GameConstants.LocationSelection.HOME"),metadata:i})}catch(t){}},t.prototype.sendBattleStartTypeEvent=function(t){this.game.prodigy.network.sendEvent("battle-start-type",{battleType:t,seasonID:a(this.game.prodigy.pvpNetworkHandler,"seasonID",null),points:a(this.game.prodigy.pvpNetworkHandler,"userRank.points",0),grade:this.game.prodigy.player.grade,level:this.game.prodigy.player.getLevel()})},t.prototype.sendEvent=function(e,i,a){void 0===a&&(a=!1);try{var o=this.game.prodigy.player,r=i,s=a;p.Util.isValid(i)||(r={},s=!0),s&&(o.isMember?r.member="true":r.member=o.data.isTrialMember?"trial":"false",r.data=o.data,r.backpack=p.Util.isValid(o.backpack.data)?o.backpack.data:{},r.kennel=p.Util.isValid(o.kennel.data)?o.kennel.data:{},r.equipment=p.Util.isValid(o.equipment.data)?o.equipment.data:{},r.state=p.Util.isValid(o.state.data)?o.state.data:{},r.mount=p.Util.isValid(o.mount.data)?o.mount.data:{}),r.gradeTest=(p.Util.isValid(o.grade)?o.grade:0)%4,r.classTest=p.Util.isValid(o.classIDs)&&o.classIDs.length>0?o.classIDs[o.classIDs.length-1]%4:4,r.token=this.api.getUserToken(),r.date=(new Date).getTime();var l={name:e,details:r,user:{userID:p.Util.isValid(o.userID)?o.userID:0},device:t.getDeviceInfoForEvent()};n.GameConstants.get("GameConstants.Build.DEBUG")&&t.VERBOSE_ANALYTICS?p.Util.log("NetworkManager.sendEvent "+JSON.stringify(l)):p.Util.log("NetworkManager.sendEvent "+l.name),this.eventsQueue.push(l)}catch(t){}},t.prototype.sendAdvancedEvent=function(e,i,a){if(void 0===a&&(a=!0),p.Util.isValid(this.eventFlags.events[e])&&this.eventFlags.events[e].enabled){var o=this.game.prodigy.player,r=i;p.Util.isValid(i)||(r={});var s=p.Util.isValid(o.userID)?o.userID:0;try{if(a&&(r.UUID=this.UUID,p.Util.isValid(r.timestamp)||(r.timestamp=(new Date).getTime()),r.user_id=s,r.level=o.data.level,r.grade=p.Util.isValid(o.grade)?o.grade:0,r.location=p.Util.isValid(o.locationSelectionType)?o.locationSelectionType:"",r.gold=o.data.gold,r.token=this.api.getUserToken(),o.isMember?r.is_member="true":r.is_member=o.data.isTrialMember?"trial":"false",r.curriculumTreeID=p.Util.isValid(o.curriculumTreeID)?o.curriculumTreeID:0,r.platform=c.Device.getMetricsPlatformName(),p.Util.isValid(o.data.zone))){var l=o.data.zone.split("-");r.zone=p.Util.isValid(l[0])?l[0]:"",r.map=p.Util.isValid(l[1])?l[1]:""}if(p.Util.isValid(r.type)){var h=this.typeTimeStamps[r.type];p.Util.isValid(h)?r.timeDelta=r.timestamp-h:r.timeDelta=0,this.typeTimeStamps[r.type]=r.timestamp}var u={name:e,user:{userID:s},details:r,device:t.getDeviceInfoForEvent()};n.GameConstants.get("GameConstants.Build.DEBUG")&&t.VERBOSE_ANALYTICS?p.Util.log("NetworkManager.sendAdvancedEvent "+JSON.stringify(u)):p.Util.log("NetworkManager.sendAdvancedEvent "+u.name+" "+r.type+" "+r.name),this.eventsQueue.push(u)}catch(t){}}},t.prototype.sendAnonymousEvent=function(e,i,a){if(void 0===a&&(a=!0),p.Util.isValid(this.eventFlags.events[e])&&this.eventFlags.events[e].enabled){var o=this.game.prodigy.player,r=i;p.Util.isValid(i)||(r=i);try{if(a&&(r.UUID=this.UUID,p.Util.isValid(r.timestamp)||(r.timestamp=(new Date).getTime()),r.user_id=p.Util.isValid(o.userID)?o.userID:0,r.level=o.data.level,r.grade=p.Util.isValid(o.grade)?o.grade:0,r.location=p.Util.isValid(o.locationSelectionType)?o.locationSelectionType:"",r.gold=o.data.gold,r.token=this.api.getUserToken(),r.is_member=o.isMember,r.curriculumTreeID=p.Util.isValid(o.curriculumTreeID)?o.curriculumTreeID:0,p.Util.isValid(o.data.zone))){var s=o.data.zone.split("-");r.zone=p.Util.isValid(s[0])?s[0]:"",r.map=p.Util.isValid(s[1])?s[1]:""}if(p.Util.isValid(r.type)){var l=this.typeTimeStamps[r.type];p.Util.isValid(l)?r.timeDelta=r.timestamp-l:r.timeDelta=0,this.typeTimeStamps[r.type]=r.timestamp}var h={name:e,details:r,device:t.getDeviceInfoForEvent()};n.GameConstants.get("GameConstants.Build.DEBUG")&&t.VERBOSE_ANALYTICS?p.Util.log("NetworkManager.sendAnonymousEvent "+JSON.stringify(h)):p.Util.log("NetworkManager.sendAnonymousEvent "+h.name),this.nonRegisteredEventsQueue.push(h)}catch(t){}}},t.prototype.onError=function(t,e){p.Util.log("FAIL : "+t+", "+e),null===this.updateFailedTime&&this.loggedIn&&p.Util.isValid(t)&&-1!==t.indexOf("update")&&(this.updateFailedTime=(new Date).getTime(),p.Util.log("logout countdown"))},t.prototype.getCharData=function(t,e,i,a){void 0===i&&(i=function(){}),void 0===a&&(a=function(){}),this.api.getUser(t,e,{200:i,401:a,206:a,503:a,340:a,0:a,500:a})},t.prototype.initGoingOffline=function(){-1===this.offlineTimer&&this.loggedIn&&(this.offlineTimer=(new Date).getTime()+7e4,this.offlineMessage="NETWORK_GOING_OFFLINE")},t.prototype.sendQueuedEvents=function(){this.eventsQueue.length>0&&this.loggedIn&&(this.api.trackEvent(this.eventsQueue,{200:function(){}}),this.eventsQueue=[]),this.nonRegisteredEventsQueue.length>0&&(this.api.trackEventAnonymous(this.nonRegisteredEventsQueue,{200:function(){}}),this.nonRegisteredEventsQueue=[])},t.getDeviceInfoForEvent=function(){var t="Desktop";return c.Device.isIOS()?t="iOS":c.Device.isAndroid()&&(t="Android"),{availHeight:window.screen.availHeight,availWidth:window.screen.availWidth,os:t+"-"+(c.Device.isNativeApp()?"App":"Browser")}},t.prototype.getWorldList=function(t,e){this.api.getWorldList({200:t,400:e,500:e,503:e,0:e})},t.prototype.startMatchmaking=function(t,e,i,a,n,o){this.api.startMatchmaking(t,e,i,{200:a,400:n,500:n,0:n,503:o})},t.prototype.quitMatchmaking=function(t,e){this.api.quitMatchmaking({200:t,400:e,500:e,0:e})},t.prototype.joinMultiplayerServer=function(t,e,i,a,n){var o=this.onDisconnect.bind(this,a);this.api.joinMultiplayerServer(t.id,e,{200:this.joinSuccess.bind(this,t,i),400:o,500:o,0:o,503:o,409:o,504:o,502:n},this.onMessage.bind(this),this.onPlayerList.bind(this),this.onDisconnect.bind(this,null),this.onPlayerJoined.bind(this),this.onPlayerLeft.bind(this))},t.prototype.joinZone=function(t){this.zone=t,this.loggedIn&&this.api.joinZone(t.zoneName)},t.prototype.leaveZone=function(){this.zone=null,this.loggedIn&&this.api.leaveZone()},t.prototype.setZone=function(t){this.zone=t},t.prototype.verifyClassCode=function(t,e,i){this.api.verifyClassCode(t,{200:e,400:i,500:i,0:i,404:i,503:i,504:i})},t.prototype.attachClassCode=function(t,e,i){this.api.attachStudentUsingClassCode(t,{200:e,400:i,500:i,0:i,404:i,503:i,504:i})},t.prototype.emitMessage=function(e){if(!this.canUseMP())return!1;t.emitMessageCount++,p.Util.isValid(e.action)&&p.Util.isValid(e.data)&&p.Util.log("["+t.emitMessageCount+"] emitMessage called action: "+e.action);var i=t.MESSAGE_SCHEMAS[e.action];return p.Util.isValid(i)&&t.compressMessage(e,i),this.api.emitMessage(e,{200:function(){}})},t.prototype.onMessage=function(e){if(this.canUseMP()){var i=t.MESSAGE_SCHEMAS[e.action];p.Util.isValid(i)&&t.decompressMessage(e,i),this.game.prodigy.messageListener.onMessage(e),p.Util.isValid(this.zone)&&p.Util.isValid(this.zone.onMessage)&&this.zone.onMessage(e)}},t.prototype.getFriendsList=function(t,e){n.GameConstants.get("GameConstants.FriendsList.TEST_FRIENDS_LIST")?(p.Util.log("Test get friend list",p.Util.DEV),this.game.time.events.add(1e3,t.bind(this,{data:[{userID:5339281,status:0},{userID:5339282,status:1},{userID:5339279,status:1}],meta:{friendsCap:20,totalFriends:3}}),this)):this.api.getFriendList({200:t,400:e,401:e,404:e,406:e,409:e,423:e,500:e,503:e,0:e})},t.prototype.getTotalFriendRequests=function(t,e){n.GameConstants.get("GameConstants.FriendsList.TEST_FRIENDS_LIST")?(p.Util.log("Test get total friend requests",p.Util.DEV),this.game.time.events.add(2,t.bind(this,{data:{pendingRequests:1},meta:{friendsCap:20,totalFriends:3}}),this)):this.api.getTotalFriendRequests({200:t,400:e,401:e,404:e,406:e,409:e,423:e,500:e,503:e,0:e})},t.prototype.getFriendRequestList=function(t,e,i,a){n.GameConstants.get("GameConstants.FriendsList.TEST_FRIENDS_LIST")?(p.Util.log("Test get friend request list",p.Util.DEV),this.game.time.events.add(2,i.bind(this,{data:[{userID:15263772}],meta:{friendsCap:20,totalFriends:3}}),this)):this.api.getFriendRequestList(t,e,{200:i,400:a,401:a,404:a,406:a,409:a,423:a,500:a,503:a,0:a})},t.prototype.sendFriendRequest=function(t,e,i){n.GameConstants.get("GameConstants.FriendsList.TEST_FRIENDS_LIST")?(p.Util.log("Test send friend request",p.Util.DEV),this.game.time.events.add(2,e.bind(this,t),this)):this.api.sendFriendRequest(t,{200:e,400:i,401:i,404:i,406:i,409:i,423:i,500:i,503:i,0:i})},t.prototype.cancelFriendRequest=function(t,e,i){n.GameConstants.get("GameConstants.FriendsList.TEST_FRIENDS_LIST")?(p.Util.log("Test cancel friend request",p.Util.DEV),this.game.time.events.add(2,e.bind(this,t),this)):this.api.cancelFriendRequest(t,{200:e,400:i,401:i,404:i,406:i,409:i,423:i,500:i,503:i,0:i})},t.prototype.acceptFriendRequest=function(t,e,i){n.GameConstants.get("GameConstants.FriendsList.TEST_FRIENDS_LIST")?(p.Util.log("Test accept friend request",p.Util.DEV),this.game.time.events.add(2,e.bind(this,t),this)):this.api.acceptFriendRequest(t,{200:e,400:i,401:i,404:i,406:i,409:i,423:i,500:i,503:i,0:i})},t.prototype.rejectFriendRequest=function(t,e,i){n.GameConstants.get("GameConstants.FriendsList.TEST_FRIENDS_LIST")?(p.Util.log("Test reject friend request",p.Util.DEV),this.game.time.events.add(2,e.bind(this,t),this)):this.api.rejectFriendRequest(t,{200:e,400:i,401:i,404:i,406:i,409:i,423:i,500:i,503:i,0:i})},t.prototype.removeFriend=function(t,e,i){n.GameConstants.get("GameConstants.FriendsList.TEST_FRIENDS_LIST")?(p.Util.log("Test remove friend",p.Util.DEV),this.game.time.events.add(2,e.bind(this,t),this)):this.api.removeFriend(t,{200:e,400:i,401:i,404:i,406:i,409:i,423:i,500:i,503:i,0:i})},t.prototype.getUserClass=function(t,e,i){this.api.getUserClass(t,{200:e,400:i,401:i,404:i,406:i,409:i,423:i,500:i,503:i,0:i})},t.prototype.getTotalMail=function(t,e){n.GameConstants.get("GameConstants.Mailer.TEST_MAIL")?(p.Util.log("Test get total mail",p.Util.DEV),this.game.time.events.add(2,t.bind(this,h.TestMail.DATA.length),this)):this.api.getTotalMail(this.game.prodigy.player.getRegisterDate(),this.game.prodigy.player.isMember,this.game.prodigy.player.memberStartDate,this.game.prodigy.player.memberEndDate,{200:t,400:e,409:e,500:e,502:e,503:e,0:e})},t.prototype.getAllMail=function(t,e,i,a){n.GameConstants.get("GameConstants.Mailer.TEST_MAIL")?this.game.time.events.add(2,i.bind(this,h.TestMail.DATA.slice(t*e,e)),this):this.api.getAllMail(this.game.prodigy.player.getRegisterDate(),this.game.prodigy.player.isMember,this.game.prodigy.player.memberStartDate,this.game.prodigy.player.memberEndDate,t,e,{200:i,400:a,409:a,500:a,502:a,503:a,0:a})},t.prototype.markAsRead=function(t,e,i,a){if(n.GameConstants.get("GameConstants.Mailer.TEST_MAIL")){h.TestMail.TOTAL_MAIL={totalUnread:0};for(var o=0;o<h.TestMail.DATA.length;o++){h.TestMail.DATA[o].isOpened||h.TestMail.TOTAL_MAIL.totalUnread++}this.game.time.events.add(2,i.bind(this),this)}else this.api.openMail(t,e,{200:i,400:a,409:a,500:a,502:a,503:a,0:a})},t.prototype.deleteMail=function(t,e,i){if(n.GameConstants.get("GameConstants.Mailer.TEST_MAIL")){for(var a=0;a<h.TestMail.DATA.length;a++)if(h.TestMail.DATA[a].id===t){h.TestMail.DATA.splice(a,1);break}h.TestMail.TOTAL_MAIL={totalUnread:0};for(a=0;a<h.TestMail.DATA.length;a++){h.TestMail.DATA[a].isOpened||h.TestMail.TOTAL_MAIL.totalUnread++}this.game.time.events.add(2,e.bind(this),this)}else this.api.deleteMail(t,{200:e,400:i,409:i,500:i,502:i,503:i,0:i})},t.prototype.getTitans=function(t,e){this.api.getTitans({200:t,400:e,409:e,500:e,502:e,503:e,0:e})},t.prototype.getTitan=function(t,e,i){this.api.getTitan(t,{200:e,400:i,409:i,500:i,502:i,503:i,0:i})},t.prototype.hitTitan=function(t,e,i){this.api.hitTitan(t,{200:e,400:i,409:i,500:i,502:i,503:i,0:i})},t.prototype.getTitanUserData=function(t,e){this.api.getTitanUserData({200:t,400:e,409:e,500:e,502:e,503:e,0:e})},t.prototype.createUserFeed=function(t,e,i,a,n,o){this.api.createUserFeed(t,JSON.stringify(e),JSON.stringify(i),a,{200:n,400:o,409:o,500:o,502:o,503:o,0:o})},t.prototype.getUserFeed=function(t,e,i,a,n,o,r){this.api.getUserFeed(t,p.Util.isValid(e)?e.toString():null,i,a,n,{200:o,400:r,409:r,500:r,502:r,503:r,0:r})},t.prototype.likeUserFeed=function(t,e,i){this.api.likeUserFeed(t,{200:e,400:i,409:i,500:i,502:i,503:i,0:i})},t.prototype.shareUserFeed=function(t,e,i){this.api.shareUserFeed(t,{200:e,400:i,409:i,500:i,502:i,503:i,0:i})},t.prototype.getGiftBoxes=function(t,e){this.api.getGiftBoxes({200:t,400:e,401:e,403:e,409:e,500:e,503:e,0:e})},t.prototype.updateGiftBox=function(t,e,i,a){this.api.updateGiftBox(t,e,{200:i,400:a,401:a,403:a,409:a,500:a,503:a,0:a})},t.prototype.addGiftBox=function(t,e,i){this.api.addGiftBox(t,{200:e,400:i,401:i,403:i,409:i,500:i,503:i,0:i})},t.prototype.initUserLeaderboard=function(t,e){this.api.initUserLeaderboard({200:t,400:e,401:e,403:e,409:e,500:e,503:e,0:e})},t.prototype.updateUserLeaderboard=function(t,e,i){this.api.updateUserLeaderboard(this.game.prodigy.pvpNetworkHandler.seasonID,t,{200:e,400:i,401:i,403:i,409:i,500:i,503:i,0:i})},t.prototype.getClassLeaderboard=function(t,e,i,a){this.api.getClassLeaderboard(t,e,30,{200:i,400:a,500:a,503:a,0:a})},t.prototype.getSeasonLeaderboard=function(t,e,i,a){this.api.getSeasonLeaderboard(this.game.prodigy.pvpNetworkHandler.seasonID,t,e,{200:i,400:a,500:a,503:a,0:a})},t.prototype.getUserLeaderboard=function(t,e){this.api.getUserLeaderboard(this.game.prodigy.pvpNetworkHandler.seasonID,{200:t,400:e,500:e,503:e,0:e})},t.prototype.getUserRank=function(t,e,i){this.api.getUserRank(t,this.game.prodigy.pvpNetworkHandler.seasonID,{200:e,400:i,500:i,503:i,0:i})},t.prototype.completeAssignment=function(t){this.api.completeAssignment(t,{200:function(){}})},t.prototype.answerQuestion=function(t){this.api.saveAnswer(t,{200:function(){}})},t.prototype.updatePlanStudent=function(t){this.api.updatePlanStudent(t.id,t.currentSkillId,t.hasFailed,{200:function(){}})},t.prototype.updateStrandBasedPlacementTest=function(t){var e=t.placementTestInstanceId,i=t;delete i.placementTestInstanceId,this.api.updateStrandBasedPlacementTest(e,i,{200:null})},t.prototype.finishPlacement=function(t,e){this.api.updatePlacementTest(t,e,{200:function(){}})},t.prototype.updateUser=function(t,e){this.api.updateUser(t,{200:e,400:e,500:e,401:e,0:e})},t.prototype.loadSkills=function(t,e,i,a){this.loggedIn&&this.api.loadSkills(t,e,{200:i,401:a,409:a})},t.prototype.createPlayer=function(t,e,i,a,n){this.api.create(t,e,i,{200:n,400:this.processCreate.bind(this,!0,a),426:this.processCreate.bind(this,"versionError",a),500:this.processCreate.bind(this,!0,a),503:this.processCreate.bind(this,"disabled",a),0:this.processCreate.bind(this,!0,a)})},t.prototype.createPlayerWithGoogle=function(t,e,i,a,n){this.api.create(t,e,i,{200:n,400:this.processCreate.bind(this,!0,a),426:this.processCreate.bind(this,"versionError",a),500:this.processCreate.bind(this,!0,a),503:this.processCreate.bind(this,"disabled",a),0:this.processCreate.bind(this,!0,a)})},t.prototype.createCharacter=function(t,e,i,a){this.api.createCharacter(t,e,{200:a,400:i,500:i,503:i,0:i})},t.prototype.adminLogin=function(t,e,i,a,n,o,r){if(void 0===r&&(r=0),this.player=a,null!==this.loginTimer&&(window.clearInterval(this.loginTimer),this.loginTimer=null),r+1>5)n();else{var s=this.adminLogin.bind(this,t,e,i,a,n,o,r);this.api.adminLogin(t,e,i,{401:this.processLogin.bind(this,!1,n,s),403:this.processLogin.bind(this,!1,n,s),206:this.processLogin.bind(this,!0,o,s),200:this.processLogin.bind(this,!0,o,s),503:this.processLogin.bind(this,!1,n,s),340:this.processLogin.bind(this,!1,n,s),0:this.processLogin.bind(this,!1,n,s),500:this.processLogin.bind(this,!1,n,s)})}},t.prototype.login=function(t,e,i,a,n,o){if(void 0===o&&(o=0),this.player=i,null!==this.loginTimer&&(window.clearInterval(this.loginTimer),this.loginTimer=null),o+1>5)n();else{var r=this.login.bind(this,t,e,i,n,a,o);this.api.login({username:t,password:e},{400:this.processLogin.bind(this,!1,n,r),401:this.processLogin.bind(this,!1,n,r),426:this.processLogin.bind(this,"versionError",n,r),206:this.processLogin.bind(this,!0,a,r),200:this.processLogin.bind(this,!0,a,r),503:this.processLogin.bind(this,!1,n,r),340:this.processLogin.bind(this,!1,n,r),0:this.processLogin.bind(this,!1,n,r),500:this.processLogin.bind(this,!1,n,r)})}},t.prototype.loginWithGoogle=function(t,e,i,a){this.player=e,this.api.login({idToken:t},{400:this.processLogin.bind(this,!1,i,null),401:this.processLogin.bind(this,!1,i,null),426:this.processLogin.bind(this,"versionError",i,null),206:this.processLogin.bind(this,!0,a,null),200:this.processLogin.bind(this,!0,a,null),503:this.processLogin.bind(this,!1,i,null),340:this.processLogin.bind(this,!1,i,null),0:this.processLogin.bind(this,!1,i,null),500:this.processLogin.bind(this,!1,i,null)})},t.prototype.logout=function(t){if(void 0===t&&(t=!1),this.loggedIn=!1,this.api.logout({200:function(){}}),!t){var e=p.Util.removeParamsFromUrl(window.location.href,["action","idToken","email"]);e.length===window.location.href.length?window.location.reload():window.location.href=e}},t.prototype.setSaveCallback=function(t,e){this.saveCallback=t,this.forceUpdate=e},t.prototype.updateCharacter=function(){if(!this.saving)if(this.forceUpdate||this.loggedIn&&p.Util.isValid(this.player)&&p.Util.isValid(this.zone)){if(p.Util.isValid(this.updateFailedTime)&&null===this.offlineTimer&&((new Date).getTime()-this.updateFailedTime)/1e3>n.GameConstants.get("GameConstants.Inactivity.CANNOT_CONNECT_TIMER_SECONDS")&&(this.offlineTimer=(new Date).getTime()+n.GameConstants.get("GameConstants.Inactivity.NETWORK_BOOT_TIMER_SECONDS"),this.offlineMessage="NETWORK_CANNOT_CONNECT"),null!==this.offlineTimer){var t=this.offlineTimer-(new Date).getTime();t<0?this.logout():this.zone.showMessage(this.game.prodigy.gameContainer.Localizer.getText(this.offlineMessage,Math.floor(t/1e3)),5e3)}if(this.player.saveEnabled){var e=this.player.getUpdatedData(this.processPlayer);this.processFriendsList&&this.game.prodigy.friendsListNetworkHandler.getTotalFriendRequests(),this.processPlayer=!1,this.processFriendsList=!1;var i=!p.Util.isEmptyObject(e);i||p.Util.isValid(this.lastUpdate)&&!((new Date).getTime()-this.lastUpdate>3e4)||(i=!0),i&&(n.GameConstants.get("GameConstants.Debug.AUTOSAVE_ENABLED")||(i=!1)),this.saving=i,i?this.api.updateCharacter(e,{401:this.processUpdate.bind(this,!1,!1,null),404:this.processUpdate.bind(this,!1,!1,null),409:this.processUpdate.bind(this,!1,!0,null),503:this.processUpdate.bind(this,!1,!0,null),0:this.processUpdate.bind(this,!1,!1,null),200:this.processUpdate.bind(this,!0,!1,this.saveCallback)}):null!==this.saveCallback&&(this.saveCallback(),this.saveCallback=null)}else null!==this.saveCallback&&(this.saveCallback(),this.saveCallback=null)}else p.Util.isValid(this.saveCallback)&&(this.saveCallback(),delete this.saveCallback)},t.prototype.startInactiveTimer=function(){this.stopInactiveTimer(),this.loggedIn&&(this.game.input.onDown.add(this.startInactiveTimer.bind(this),this),this.inactiveTimer=setTimeout(this.showInactiveDialog.bind(this),1e3*n.GameConstants.get("GameConstants.Inactivity.DIALOG_TIMER_SECONDS")))},t.prototype.stopInactiveTimer=function(){null!==this.inactiveTimer&&(this.game.input.onDown.removeAll(this),clearTimeout(this.inactiveTimer),this.inactiveTimer=null)},t.prototype.showInactiveDialog=function(){var t=this;if(!this.isActivityDialogOpen){this.isActivityDialogOpen=!0;var e=new l.MessageBox(this.game);e.preprocess(this.game.prodigy.gameContainer.Localizer.getText("INACTIVITY_MESSAGE")),e.queuePostCreateCallback(e.setOkay.bind(e,this.game.prodigy.gameContainer.Localizer.getText("INACTIVITY_BUTTON"),null)),e.setCloseCallback(function(){t.isActivityDialogOpen=!1}),this.game.add.existing(e)}this.inactiveTimer=setTimeout(this.logout.bind(this),1e3*n.GameConstants.get("GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"))},t.prototype.onPlayerList=function(t){p.Util.log("playerList "+t),this.canUseMP()&&p.Util.isValid(this.zone)&&p.Util.isValid(this.zone.onPlayerList)&&this.zone.onPlayerList(t)},t.prototype.onDisconnect=function(t,e){p.Util.log("disconnect "+e),this.socketConnected=!1,p.Util.isValid(t)&&t()},t.prototype.onPlayerJoined=function(t){p.Util.log("join "+t),this.canUseMP()&&p.Util.isValid(this.zone)&&p.Util.isValid(this.zone.onPlayerJoined)&&this.zone.onPlayerJoined(t)},t.prototype.onPlayerLeft=function(t){p.Util.log("left "+t),this.canUseMP()&&p.Util.isValid(this.zone)&&p.Util.isValid(this.zone.onPlayerLeft)&&this.zone.onPlayerLeft(t)},t.prototype.canUseMP=function(){return this.loggedIn&&this.socketConnected&&null!==this.zone},t.prototype.joinSuccess=function(t,e){this.game.prodigy.player.world=t,this.socketConnected=!0,e()},t.compressMessage=function(t,e){for(var i=[],a=0;a<e.length;a++){for(var n=e[a].split("."),o=t.data,r=0;r<n.length;r++){var s=n[r];if(!o.hasOwnProperty(s)){i.push(null),o=null;break}if(o=o[s],!p.Util.isValid(o)){i.push(null);break}}p.Util.isValid(o)&&i.push(o)}t.data=LZString.compressToUTF16(JSON.stringify(i))},t.decompressMessage=function(t,e){for(var i=JSON.parse(LZString.decompressFromUTF16(t.data)),a={},n=0;n<e.length&&n<i.length;n++){var o=i[n];if(p.Util.isValid(o)){for(var r=e[n].split("."),s=r[0],l=a,h=0;h<r.length;h++)s=r[h],l.hasOwnProperty(s)||(l[s]={}),h+1<r.length&&(l=l[s]);l[s]=o}}t.data=a},t.prototype.processCreate=function(t,e){"versionError"!==t?"disabled"!==t?e():this.disabled():this.versionError()},t.prototype.processLogin=function(t,e,i,a,n){if("versionError"!==t)if(null!==t||!p.Util.isValid(i)||0!==n&&500!==n&&340!==n){if(t)this.loggedIn=!0,this.offlineTimer=null,this.updateFailedTime=null,this.player.init(a),this.game.broadcaster.broadcast(r.EGameObjEvents.PlayerInitialized,null,[]),this.game.prodigy.gameContainer.get(o.ProdigyInjectionIdentifiers.HttpClient).setAuthenticationData({userID:this.api.userID,userToken:this.api.getUserToken()}),p.Util.isSchoolHours()?(this.sendAnalytics("School","","Login-Events"),this.sendEvent("login",{loginFrom:"school"})):(this.sendAnalytics("Home","","Login-Events"),this.sendEvent("login",{loginFrom:"home"}));p.Util.isValid(e)&&e(a,n)}else this.loginTimer=setInterval(i,1e3);else this.versionError()},t.prototype.versionError=function(){var t=this.game.prodigy.gameContainer.Localizer;this.open.messageBoxOkay(t.getText("NETWORK_OUT_OF_DATE"),t.getText("BUTTON_OKAY_UPPERCASE"),function(){window.location.reload()})},t.prototype.disabled=function(){var t=this.game.prodigy.gameContainer.Localizer;this.open.messageBoxOkay(t.getText("NETWORK_TRY_LATER"),t.getText("BUTTON_OKAY_UPPERCASE"),window.location.reload.bind(window.location))},t.prototype.processUpdate=function(t,e,i){this.saving=!1,this.sendAnalytics("Player-Alive","","Login-Events"),t||(!p.Util.isValid(this.updateFailedTime)&&this.loggedIn&&(this.updateFailedTime=(new Date).getTime()),e&&null===this.offlineTimer&&this.loggedIn&&(this.offlineMessage="NETWORK_LOGGED_IN_ELSEWHERE",this.offlineTimer=(new Date).getTime()+5e3),p.Util.log("network update fail"),this.hasFailedUpdate=!0),t&&(this.forceUpdate=null,i===this.saveCallback&&(this.saveCallback=null),p.Util.isValid(i)&&i(),this.updateFailedTime=null,this.lastUpdate=(new Date).getTime(),this.processFriendsList=this.hasFailedUpdate,this.hasFailedUpdate=!1),this.processPlayer=!t},t.VERBOSE_ANALYTICS=!1,t.emitMessageCount=0,t.MESSAGE_SCHEMAS={info:["userID","target.x","target.y","appearance.name","appearance.name.first","appearance.name.middle","appearance.name.last","appearance.name.nick","appearance.gender","appearance.hair.style","appearance.hair.color","appearance.skinColor","appearance.eyeColor","appearance.face","isMember","equipment.boots","equipment.follow","equipment.hat","equipment.outfit","equipment.weapon","data.level","data.win","data.loss","data.gold","data.tower","data.stars","data.hp","data.allowsHouseVisitors","data.versionID","data.playerTransformation.transformType","data.playerTransformation.transformID","mount.mountID"],catapult:[]},t}();e.NetworkManager=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){return function(){}}();e.Data=a},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(0),s=function(t){function e(e,i,a,n,s,l,h,c,p,u){void 0===s&&(s=0),void 0===l&&(l=null);var d=this,g="atlas-18",y="empty",f=e.prodigy.load.isFileLoaded(n);f?(g=n,y=s):u&&(y="icon-loading"),(d=t.call(this,e,i,a,g,y)||this).forcedWidth=c,d.forcedHeight=p,d.onTextureLoaded=h,d.loadingTween=null;var m=!1;return f?(d.checkSpriteDimension(),m=!0,r.Util.isValid(l)&&d.anchor.setTo(l.x,l.y)):(r.Util.isValid(u)&&u&&(d.anchor.setTo(.5,.5),d.x+=40,d.y+=40,d.loadingTween=d.game.add.tween(d).to({angle:360},2e3,Phaser.Easing.Linear.None,!0,0,o.GameConstants.MAX_SAFE_INTEGER,!1)),d.checkSpriteDimension(),e.prodigy.load.assets(n,d.onSourceAssetLoaded.bind(d,i,a,n,s,l))),m&&d.checkCallback(),d}return n(e,t),e.prototype.loadNewTexture=function(t,e,i,a){void 0===e&&(e=0),void 0===i&&(i=null),void 0===a&&(a=!1),r.Util.isValid(this.loadingTween)&&(this.loadingTween.stop(),this.loadingTween=null,this.anchor.setTo(0,0),this.x-=40,this.y-=40,this.angle=0),this.game.prodigy.load.isFileLoaded(t)?this.onSourceAssetLoaded(this.x,this.y,t,e,i):(a?(this.loadTexture("atlas-18","icon-loading"),this.anchor.setTo(.5,.5),this.x+=40,this.y+=40,this.loadingTween=this.game.add.tween(this).to({angle:360},2e3,Phaser.Easing.Linear.None,!0,0,o.GameConstants.MAX_SAFE_INTEGER,!1)):this.loadTexture("atlas-18","empty"),this.game.prodigy.load.assets(t,this.onSourceAssetLoaded.bind(this,this.x,this.y,t,e,i)))},e.prototype.checkSpriteDimension=function(){r.Util.isValid(this.forcedWidth)&&(this.width=this.forcedWidth),r.Util.isValid(this.forcedHeight)&&(this.height=this.forcedHeight)},e.prototype.rotateMiddleBased=function(t){this.middleRotatedAngle=t,this.anchor.set(.5,.5),this.angle=this.middleRotatedAngle},e.prototype.onSourceAssetLoaded=function(t,e,i,a,n){if(void 0===n&&(n=null),r.Util.isValid(this.game)){if(r.Util.isValid(this.loadingTween)&&(this.loadingTween.stop(),this.loadingTween=null,this.anchor.setTo(0,0),this.x-=40,this.y-=40,this.angle=0),this.key=i,this.components.Animation&&(this.animations=new Phaser.AnimationManager(this)),this.components.LoadTexture&&null!==this.key){var o=a;0===i.indexOf("icon-")&&(o=0),this.loadTexture(i,o)}this.components.FixedToCamera&&(this.cameraOffset=new Phaser.Point(t,e)),r.Util.isValid(this.middleRotatedAngle)?this.rotateMiddleBased(this.middleRotatedAngle):r.Util.isValid(n)&&this.anchor.setTo(n.x,n.y),this.checkSpriteDimension(),16777215!==this.tint&&(this.tintedTexture=PIXI.CanvasTinter.getTintedTexture(this,this.tint)),this.checkCallback()}},e.prototype.checkCallback=function(){r.Util.isValid(this.onTextureLoaded)&&this.onTextureLoaded(this)},e}(Phaser.Sprite);e.Sprite=s},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(i,a){e(i,a,t)}};Object.defineProperty(e,"__esModule",{value:!0});var l=i(8),h=i(11),c=i(10),p=i(256),u=i(78),d=i(887),g=i(0),y=i(4),f=function(t){function e(e){var i=t.call(this)||this;return i.localization=null,i.localization=e,i}return n(e,t),i=e,e.prototype.getData=function(){return this.validateNameData(),this.data},e.prototype.setAppearance=function(e){t.prototype.setAppearance.call(this,e),g.Util.isValid(this.data)&&delete e.nick},e.prototype.generateRandomName=function(){this.data.name={first:i.getRandomFirstName(this.data.gender),middle:i.getRandomMiddleName(),last:i.getRandomLastName()},this.updated=!0},e.prototype.getName=function(){this.validateNameData();var t=this.data.name;if(null!==c(t,"nick",null)){for(var e="",i=y.Items.getItem("nickname",t.nick).data.value.split("{"),a=0;a<i.length;++a){var n=i[a].indexOf("}");if(n>-1){var o=i[a].substr(0,n);e+=""+y.Items.getItem("name",t[o]).data.value+i[a].substr(n+1)}else e+=i[a]}return e}return this.getFullName(!1)},e.prototype.getFirstName=function(){var t=c(this.data.name,"first",0);return t>0?y.Items.getItem("name",t).data.value:this.localization.getText("NAME_APPRENTICE")},e.prototype.getFullName=function(t){void 0===t&&(t=!0),t&&this.validateNameData();var e=this.data.name;if(g.Util.isValid(e)&&null!==c(e,"first",null)){var i=y.Items.getItem("name",e.first).data.value;if(null===c(e,"middle",null)||null===c(e,"last",null))return i;var a=""+y.Items.getItem("name",e.middle).data.value+y.Items.getItem("name",e.last).data.value;return i+" "+p(a)}return this.localization.getText("NAME_APPRENTICE")},e.prototype.setNickname=function(t){this.data.name.nick=t,this.updated=!0},e.prototype.validateNameData=function(){if(g.Util.isValid(this.data.name))if(this.data.name instanceof Object){var t=this.data.name,e=c(t,"first",null);null!==e&&0===y.Items.getItemsWithFilter("name",function(t){return 0===t.data.type&&t.ID===e}).length&&(e=i.getRandomFirstName(this.data.gender),t.first=e,this.updated=!0);var a=c(t,"middle",null),n=c(t,"last",null);if(null===a||null===n)(null!==a||null!==n||g.Util.isValid(t.nick))&&(t.middle=null,t.last=null,t.nick=null,this.updated=!0);else if(null===e&&(t.first=i.getRandomFirstName(this.data.gender),this.updated=!0),0===y.Items.getItemsWithFilter("name",function(t){return 1===t.data.type&&t.ID===a}).length&&(t.middle=i.getRandomMiddleName(),this.updated=!0),0===y.Items.getItemsWithFilter("name",function(t){return 2===t.data.type&&t.ID===n}).length&&(t.last=i.getRandomLastName(),this.updated=!0),g.Util.isValid(t.nick)){var o=c(t,"nick",0);0===y.Items.getItemsWithFilter("nickname",function(t){return t.ID===o}).length&&(t.nick=null,this.updated=!0)}}else this.generateRandomName()},e.getRandomFirstName=function(t){return u(d(y.Items.data.name,function(e){return e.data.gender===("female"===t?1:2)&&0===e.data.type})).ID},e.getRandomMiddleName=function(){return u(d(y.Items.data.name,function(t){return 1===t.data.type})).ID},e.getRandomLastName=function(){return u(d(y.Items.data.name,function(t){return 2===t.data.type})).ID},e=i=o([h.injectable(),s(0,h.inject(l.GameIdentifiers.LocalizationService)),r("design:paramtypes",[l.BaseLocalizer])],e);var i}(i(264).Appearance);e.OnlinePlayerAppearance=f},function(t,e,i){var a=i(87),n=i(44),o=i(105),r=i(46);t.exports=function(t,e,i){if(!r(i))return!1;var s=typeof e;return!!("number"==s?n(i)&&o(e,i.length):"string"==s&&e in i)&&a(i[e],t)}},function(t,e,i){var a=i(263),n=i(148);t.exports=function(t,e,i,o){var r=!i;i||(i={});for(var s=-1,l=e.length;++s<l;){var h=e[s],c=o?o(i[h],t[h],h,i,t):void 0;void 0===c&&(c=t[h]),r?n(i,h,c):a(i,h,c)}return i}},function(t,e,i){var a=i(59),n=i(45),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||n(t)&&a(t)==o}},function(t,e,i){var a=i(945),n=i(165),o=i(944),r=i(943),s=i(942),l=i(59),h=i(285),c=h(a),p=h(n),u=h(o),d=h(r),g=h(s),y=l;(a&&"[object DataView]"!=y(new a(new ArrayBuffer(1)))||n&&"[object Map]"!=y(new n)||o&&"[object Promise]"!=y(o.resolve())||r&&"[object Set]"!=y(new r)||s&&"[object WeakMap]"!=y(new s))&&(y=function(t){var e=l(t),i="[object Object]"==e?t.constructor:void 0,a=i?h(i):"";if(a)switch(a){case c:return"[object DataView]";case p:return"[object Map]";case u:return"[object Promise]";case d:return"[object Set]";case g:return"[object WeakMap]"}return e}),t.exports=y},function(t,e,i){var a=i(47).Symbol;t.exports=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Verbose=0]="Verbose",t[t.Warning=1]="Warning",t[t.Error=2]="Error"}(e.LogLevel||(e.LogLevel={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParentLinkBenefitsConfig={ANALYTICS_SOURCE_BADGE:"Parental-Benefits-Badge",ANALYTICS_SOURCE_SETTINGS:"Parental-Benefits-Settings",ANALYTICS_SOURCE_LOGIN:"Parental-Benefits-Login",XP_BONUS:{frameName:"icons/small-star-boost",trackingEvent:"XPBonus-Icon-Click"},BUDDY:{frameName:"icons/get-fox-buddy",trackingEvent:"Buddy-Icon-Click"},APPLES:{frameName:"icons/get-free-apples",trackingEvent:"Apples-Icon-Click"},TRACKING_EVENT_MOBILE:"Mobile-Message-Displayed",TRACKING_EVENT_SIGN_UP:"Signup-Button-Click",TRACKING_EVENT_POPUP_SHOWN:"Popup-Shown",TRACKING_EVENT_SCHOOL_HOURS:"School-Hours-Message-Displayed",TRACKING_EVENT_RECEIVED_REWARDS:"Parent-Benefits-Rewards-Received",MESSAGE_MOBILE:"PARENT_LINK_MOBILE_MESSAGE",MESSAGE_POST_CLICK:"PARENT_LINK_POST_CLICK",MESSAGE_SCHOOL_HOURS:"PARENT_LINK_SCHOOL_HOURS",URL_SIGN_UP_STAGING:"www.prodigygame.org/#start-now?usertype=parent&utm_source=student-referral&utm_medium=register-prompt",URL_SIGN_UP_PROD:"www.prodigygame.com/#start-now?usertype=parent&utm_source=student-referral&utm_medium=register-prompt",ATLAS:"atlas-132",DESCRIPTION_TEXT_BG_HEIGHT_PERCENT:.25,REWARD_ICONS_BG_HEIGHT_PERCENT:.5,LINK_ACCOUNT_BG_HEIGHT_PERCENT:.88,CLOSE_BTN_OFFSET:{x:-10,y:10},BODY_TEXT_OFFSET:{x:40,y:0},ICON_TWEEN_TIME_MS:125,ICON_TWEEN_DELAY_MS:125,ICON_TWEEN_AMOUNT_Y:20,SUCCESS_POPUP_CONFIG:{headerFrameName:"parent-link-title-success",bodyText:"PARENT_LINK_SUCCESS_BODY",submitButtonFrameName:"parent-link-button-success",showCloseButton:!1},INFO_POPUP_CONFIG:{headerFrameName:"parent-link-title",bodyText:"PARENT_LINK_INFO_BODY",submitButtonFrameName:"parent-link-button",showCloseButton:!0}}},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),r=i(21),s=i(0),l=function(t){function e(e,i,a){var n=t.call(this,e,i)||this;return n.data=a,n.visible=!1,n.backBtn=n.game.prodigy.create.textButton(n,180,160,{icon:"back",size:r.TextButton.TALL},function(){n.back()}),n.nextBtn=n.game.prodigy.create.textButton(n,1e3,160,{icon:"next",size:r.TextButton.TALL},function(){n.next()}),n.counter=11,n}return n(e,t),e.prototype.init=function(t,e){this.backCallback=t,this.nextCallback=e,this.backBtn.visible=s.Util.isValid(t),this.nextBtn.visible=s.Util.isValid(e)},e.prototype.open=function(t){this.visible=!0},e.prototype.close=function(){this.visible=!1,s.Util.isValid(this.dialogue)&&this.dialogue.close()},e.prototype.back=function(){s.Util.isValid(this.backCallback)&&(this.close(),this.backCallback())},e.prototype.next=function(){s.Util.isValid(this.nextCallback)&&(this.nextCallback(),this.close())},e}(o.Element);e.RegisterPage=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(8),r=i(75),s=i(2),l=i(41),h=i(4),c=i(30),p=i(0),u=i(62),d=i(32),g=function(t){function e(e,i){var a=t.call(this,e,i)||this;return a.petImage=null,a.currencyLabel=null,a.itemContainer=null,a.buyButtonIcon=null,a.epicNameLabel=null,a.epicElementSprite=null,a.buyNowButton=null,a.storeID=16,e.prodigy.network.sendToyEvent("toy-store",4),a.create(),a.onItemPurchased.add(function(){a.currencyLabel.setText(""+a.game.prodigy.player.backpack.hasItem("currency",3))}),a.onItemRecieved.add(function(){a.setMode(a.page)}),a}return n(e,t),e.prototype.create=function(){var e=this;this.addTransparent(),this.createBaseSetup(29,16,"shine2",null,null,!0);var i=this.game.prodigy.create.element(this,20,0);i.setRenderState(!0),i.add(new Phaser.TileSprite(this.game,51,100,1138,40,"atlas-161","orange-top")),i.add(new Phaser.TileSprite(this.game,51,140,1138,40,"atlas-161","orange-mid")),i.add(new Phaser.TileSprite(this.game,51,180,1138,40,"atlas-161","orange-top2")),this.spinner=this.add(this.game.prodigy.create.sprite(640,360,"atlas-18","loading")),this.spinner.anchor.setTo(.5,.5),this.game.add.tween(this.spinner).to({angle:360},2e3,Phaser.Easing.Linear.None,!0,0,s.GameConstants.MAX_SAFE_INTEGER,!1),t.prototype.create.call(this),this.startLoad(["atlas-98"],function(){i.add(e.game.prodigy.create.sprite(55,74,"atlas-98","logo")),e.process()}),this.game.prodigy.gameContainer.get(l.ProdigyInjectionIdentifiers.StoreService).getStore(16).then(this.onGetStoreSuccess.bind(this)).catch(this.onGetStoreFailure.bind(this))},e.prototype.onGetStoreSuccess=function(t){p.Util.isValid(this.game)&&(this.storeData=t,this.storeData.setPages(r(this.storeData.getPages())),this.spinner.destroy(),this.spinner=null,this.setupTabs(),this.setupItemPanel(),this.setupEpicDescription(),this.setMode(0))},e.prototype.onGetStoreFailure=function(t){t instanceof Error&&this.game.prodigy.gameContainer.Logger.log(t.message,o.LogLevel.Error);var e=this.game.prodigy.gameContainer.Localizer;this.game.prodigy.open.message(e.getText("STORE_OPEN_FAILED_MESSAGE"),this.close.bind(this),null,e.getText("STORE_OPEN_FAILED_TITLE"))},e.prototype.setupTabs=function(){for(var t=this,e=this.storeData.getPages(),i=function(i){var n=e[i].getButton();a.buttons.push(a.game.prodigy.create.advButton(a,102*i+283,110,{top:n.getTopText(),bot:n.getBottomText(),icon:{iconAtlas:n.getItemType()+"-"+n.getItemID()}},function(){t.setMode(i)}))},a=this,n=0;n<e.length;n++)i(n)},e.prototype.setupItemPanel=function(){var t=this.game.prodigy.create.panel(this,780,240,10,9,"orange");t.add(new Phaser.TileSprite(this.game,0,30,400,60,"atlas-161","overlay-small")).alpha=.15,this.game.prodigy.create.font(t,30,45,"[mail-leaf] ",{size:40}),this.currencyLabel=this.game.prodigy.create.font(t,65,32,""+this.game.prodigy.player.backpack.hasItem("currency",3),{size:40}),this.itemContainer=this.game.prodigy.create.element(this,60,240)},e.prototype.setupEpicDescription=function(){var t=this,i=this.game.prodigy.gameContainer.Localizer,a=h.Items.getItem("singleImage",this.storeData.getPages()[this.page].getButton().getItemID()).metadata.petID,n=h.Items.getItem("pet",a).data;this.epicNameLabel=this.game.prodigy.create.font(this,480,280,n.name,{size:36,fontID:9}),this.epicElementSprite=this.add(this.game.prodigy.create.sprite(410,269,"atlas-21","icon-bar-"+n.element)),this.buyNowButton=this.game.prodigy.create.panelButton(this,240,530,9,2,"button",function(){e.openWebsite(t.game,"buy-toy-now",void 0,a)}),this.game.prodigy.create.font(this.buyNowButton.content,100,15,i.getText("BUY_TOY_BUY_NOW"),{width:250,size:36,fontID:9,align:"center"}),this.buyButtonIcon=this.buyNowButton.content.add(this.game.prodigy.icon.createFromData({type:"pet",ID:a},10,-10)),this.game.prodigy.create.font(this,369,340,i.getText("BUY_TOY_ASK_PARENT"),{size:16,width:370})},e.prototype.setMode=function(e){var i=this;t.prototype.setMode.call(this,e),this.page=e,this.itemContainer.removeAll(!0);for(var a=this.storeData.getPages()[e],n=function(t){var e=a.getStoreItems()[t],n=e.getCost()[0];o.game.prodigy.create.item(o.itemContainer,t%2*180+750,130,{ID:e.getID(),type:e.getType(),cost:{ID:n.getID(),type:n.getType(),N:n.getAmount()}},d.EItemInfoMode.Store,function(){i.itemClicked(e)})},o=this,r=0;r<a.getStoreItems().length;r++)n(r);this.updateSelectedEpicData()},e.prototype.updateSelectedEpicData=function(){var t=this;p.Util.isValid(this.petImage)&&(this.game.tweens.removeFrom(this.petImage),this.petImage.destroy());var i=h.Items.getItem("singleImage",this.storeData.getPages()[this.page].getButton().getItemID()).metadata.petID;this.petImage=this.add(this.game.prodigy.create.animatedSprite(0,0,"atlas-98",[i+"_1",""+i],new Phaser.Point(.5,.5),[.715,1],[{x:235,y:399},{x:245,y:385}]));var a=this.game.add.tween(this.petImage).to({alpha:1},2800,Phaser.Easing.Quadratic.In),n=this.game.add.tween(this.petImage).to({alpha:0},1e3,Phaser.Easing.Quadratic.In),o=this.game.add.tween(this.petImage).to({frameNumber:1},1,Phaser.Easing.Linear.None),r=this.game.add.tween(this.petImage).to({alpha:1},1e3,Phaser.Easing.Quadratic.In),s=this.game.add.tween(this.petImage).to({alpha:1},2800,Phaser.Easing.Quadratic.In),l=this.game.add.tween(this.petImage).to({alpha:0},1e3,Phaser.Easing.Quadratic.In),c=this.game.add.tween(this.petImage).to({frameNumber:0},1,Phaser.Easing.Linear.None),u=this.game.add.tween(this.petImage).to({alpha:1},1e3,Phaser.Easing.Quadratic.In);a.chain(n),n.chain(o),o.chain(r),r.chain(s),s.chain(l),l.chain(c),c.chain(u),u.chain(a),a.start();var d=h.Items.getItem("pet",i).data;this.epicNameLabel.setText(d.name),this.epicElementSprite.loadNewTexture("atlas-21","icon-bar-"+d.element,null),this.buyButtonIcon.loadNewTexture("icon-pet-"+i,0,null),this.buyNowButton.callback=function(){e.openWebsite(t.game,"buy-toy-now",void 0,i)}},e.prototype.close=function(){p.Util.isValid(this.petImage)&&this.game.tweens.removeFrom(this.petImage),t.prototype.close.call(this)},e.openWebsite=function(t,e,i,a){if(void 0===i&&(i=!1),void 0===a&&(a=-1),c.Device.iPadMini()||c.Device.isTablet()||c.Device.isNativeApp())t.prodigy.open.message(t.prodigy.gameContainer.Localizer.getText("BUY_TOY_REQUIRE_COMPUTER_MESSAGE"));else try{t.prodigy.network.sendToyEvent(e,5,a);var n=t.prodigy.player,o=p.Util.isValid(n.classIDs)&&n.classIDs.length>0?n.classIDs[n.classIDs.length-1]%4:4,r="www.prodigygame.com/toys/#",s="";switch(a){case 125:s="/toys/big-hex";break;case 126:s="/toys/florafox";break;case 127:s="/toys/arctursus";break;case 128:s="/toys/diveodile";break;case 129:s="/toys/magmischief";break;case 130:s="/toys/chillnchar";break;case 131:s="/toys/tidus";break;case 132:s="/toys/luma";break;case 133:s="/toys/eclipse";break;default:s=""}i?u.NetworkManager.openWebsite(""+r+s+"?id="+t.prodigy.player.userID+"&epoch="+(new Date).valueOf()+"&version="+e+"&token="+t.prodigy.network.api.getUserToken()+"&uTest="+n.userID%10+"&cTest="+o+"&vid=1#toys"):u.NetworkManager.openWebsite(""+r+s+"?id="+t.prodigy.player.userID+"&epoch="+(new Date).valueOf()+"&version="+e+"&token="+t.prodigy.network.api.getUserToken()+"&uTest="+n.userID%10+"&cTest="+o)}catch(t){p.Util.log(t)}},e}(i(200).StoreBase);e.ToyStore=g},function(t,e,i){var a=i(736),n=i(735),o=i(19);t.exports=function(t){return(o(t)?a:n)(t)}},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(5),s=i(0),l=function(t){function e(e,i,a,n,r,l,h){void 0===h&&(h=!1);var c=t.call(this,e,i,a,n)||this;return c.clickCallback=l,c.npcSprite=c.game.prodigy.create.sprite(0,0,"atlas-"+r.atlasID,0),c.npcSprite.animations.add("stand",["npc_0","npc_1","npc_2","npc_3","npc_4","npc_5","npc_6","npc_7"],10,!0,!1),c.npcSprite.animations.play("stand"),c.npcSprite.inputEnabled=!0,c.npcSprite.anchor.setTo(.5,1),c.npcSprite.events.onInputDown.add(c.onNPCClick.bind(c),c),h&&(c.npcSprite.scale.x=-1),c.add(c.npcSprite),s.Util.isValid(r)&&s.Util.isValid(r.indicator)&&(c.indicator=c.game.prodigy.create.sprite(0,-(c.npcSprite.height-10),"atlas-21",r.indicator),c.indicator.anchor.setTo(.5,1),c.add(c.indicator),c.game.add.tween(c.indicator).to({y:c.indicator.y-50},1e3,Phaser.Easing.Quadratic.InOut,!0,0,o.GameConstants.MAX_SAFE_INTEGER,!0)),c.game.prodigy.create.nameFont(c,0,0-c.npcSprite.height-20,r.name),c}return n(e,t),e.prototype.onNPCClick=function(){s.Util.isValid(this.clickCallback)&&this.clickCallback()},e}(r.Element);e.QuestNPC=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(0),s=function(t){function e(e,i){var a=t.call(this,e,i)||this;return a.onClickCallback=null,a.onUpCallback=null,a.onOverCallback=null,a.onOutCallback=null,a.defaultY=0,a.broadcasts=[],a.collisionBlock=null,a.isActive=!0,a.onDestroy.add(function(){a.handleDestroy()}),a}return n(e,t),e.prototype.populate=function(e){var i=this;t.prototype.populate.call(this,e),o.GameConstants.get("GameConstants.Build.DEBUG")&&r.Util.isValid(this.name)&&this.game.prodigy.automation.addTrigger({ID:"autoclick-"+this.name,context:this,callback:function(){return{x:i.worldPosition.x,y:i.worldPosition.y}}}),this.onClickCallback=null,this.onUpCallback=null,this.onOverCallback=null,this.onOutCallback=null,this.defaultY=this.y,this.broadcasts=e.broadcasts,this.setupCollisionBlock(e)},e.prototype.setActive=function(e){t.prototype.setActive.call(this,e),this.y=this.defaultY},e.prototype.onDown=function(){this.visible&&this.isActive&&(this.y=this.defaultY,this.game.prodigy.audio.playSFX(18,"pop"),r.Util.isValid(this.onClickCallback)&&this.onClickCallback(),this.broadcastAll())},e.prototype.setupCollisionBlock=function(t){var e=this;this.collisionBlock=this.add(this.game.prodigy.create.sprite(0,0,"atlas-18","empty")),this.collisionBlock.width=t.width,this.collisionBlock.height=t.height,this.collisionBlock.inputEnabled=!0,this.collisionBlock.events.onInputDown.add(function(){e.onDown()}),this.collisionBlock.events.onInputUp.add(function(){e.onUp()}),this.collisionBlock.events.onInputOver.add(function(){e.onOver()}),this.collisionBlock.events.onInputOut.add(function(){e.onOut()})},e.prototype.broadcastAll=function(){var t=this;r.Util.isValid(this.broadcasts)&&this.broadcasts.forEach(function(e){t.game.broadcaster.broadcast(e.type,t.game.prodigy.open.menus[t.game.prodigy.open.menus.length-1],e.params)})},e.prototype.onUp=function(){this.visible&&this.isActive&&(this.y=this.defaultY-3,r.Util.isValid(this.onUpCallback)&&this.onUpCallback())},e.prototype.onOver=function(){this.visible&&this.isActive&&(this.y=this.defaultY-3,r.Util.isValid(this.onOverCallback)&&this.onOverCallback())},e.prototype.onOut=function(){this.visible&&this.isActive&&(this.y=this.defaultY,r.Util.isValid(this.onOutCallback)&&this.onOutCallback())},e.prototype.handleDestroy=function(){o.GameConstants.get("GameConstants.Build.DEBUG")&&r.Util.isValid(this.name)&&this.game.prodigy.automation.removeAllTriggers(this)},e}(i(27).UIElement);e.Button=s},function(t,e,i){var a=i(254),n=i(888),o=i(19);t.exports=function(t){return(o(t)?a:n)(t)}},function(t,e,i){var a=i(157),n=i(69),o=i(44),r=i(265),s=i(899),l="[object Map]",h="[object Set]";t.exports=function(t){if(null==t)return 0;if(o(t))return r(t)?s(t):t.length;var e=n(t);return e==l||e==h?t.size:a(t).length}},function(t,e,i){var a=i(275),n=i(918),o=i(44);t.exports=function(t){return o(t)?a(t,!0):n(t)}},function(t,e,i){var a=i(267),n=i(44),o=i(265),r=i(151),s=i(102),l=Math.max;t.exports=function(t,e,i,h){t=n(t)?t:s(t),i=i&&!h?r(i):0;var c=t.length;return i<0&&(i=l(c+i,0)),o(t)?i<=c&&t.indexOf(e,i)>-1:!!c&&a(t,e,i)>-1}},function(t,e){t.exports=function(t){return t}},function(t,e,i){var a=i(68),n=1/0;t.exports=function(t){if("string"==typeof t||a(t))return t;var e=t+"";return"0"==e&&1/t==-n?"-0":e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,i){(function(t){var a=i(47),n=i(948),o="object"==typeof e&&e&&!e.nodeType&&e,r=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=r&&r.exports===o?a.Buffer:void 0,l=(s?s.isBuffer:void 0)||n;t.exports=l}).call(this,i(106)(t))},function(t,e,i){var a=i(949),n=i(45),o=Object.prototype,r=o.hasOwnProperty,s=o.propertyIsEnumerable,l=a(function(){return arguments}())?a:function(t){return n(t)&&r.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){t.exports=function(t,e){for(var i=-1,a=null==t?0:t.length,n=Array(a);++i<a;)n[i]=e(t[i],i,t);return n}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){return function(){}}();e.BaseData=a},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),r=i(0),s=function(t){function e(e,i,a,n,o,r,s,l){var h=t.call(this,e,i,a,n)||this;return h.SPRITE_ALIAS={slurpy:88,bok:62},h.npcTag=o,h.onComplete=l,h.updateCallback=s,h}return n(e,t),e.prototype.setup=function(t,e,i){this.npc=this.add(this.game.prodigy.create.sprite(0,0,"atlas-"+this.SPRITE_ALIAS[e],0)),this.npc.animations.add("stand",["npc_0","npc_1","npc_2","npc_3","npc_4","npc_5","npc_6","npc_7"],10,!0,!1),this.npc.animations.play("stand"),this.npc.inputEnabled=!0,this.npc.anchor.setTo(.5,1),this.npc.events.onInputDown.add(this.process.bind(this,t,null,!0),this),i&&(this.npc.scale.x=-1),this.game.prodigy.create.nameFont(this,0,0-this.npc.height-20,e.charAt(0).toUpperCase()+e.slice(1))},e.prototype.process=function(t,e,i){var a;if(!r.Util.isValid(t.getQuestState()))return t.startQuest(1),(a=this.queueEventText(t,"onStart",1)).function(this.updateCallback),a.start(),null;var n=t.getQuestState().ID,o=t.getQuest(n);t.isQuestComplete(n)&&!o.chain?((a=this.queueEventText(t,"onComplete",n)).enableSave(!1),r.Util.isValid(o.reward)&&a.reward(o.reward,"quest-event-reward"),a.function(t.completeQuest.bind(t,n)),a.enableSave(!0),a.function(this.updateCallback),a.start()):!t.isQuestStarted(n)&&r.Util.isValid(o)?((a=this.queueEventText(t,"onStart",n)).function(t.startQuest.bind(t,n)),a.function(this.updateCallback),a.start()):i&&r.Util.isValid(o)?this.queueEventText(t,"onStart",n).start():i&&this.onComplete()},e.prototype.queueEventText=function(t,e,i){var a=t.getQuest(i),n=this.game.prodigy.event.create();if(r.Util.isValid(a[e]))for(var o=0;o<a[e].length;o++)n.text(a[e][o],this.npcTag);return n},e.prototype.flip=function(t){this.npc.scale.x=t?-1:1},e}(o.Element);e.QuestEvent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),n=function(){function t(t,e,i){this.assets=[],this.locations=[],this.overrideNames={},this.festivalName="",this.game=t,this.assets=e,this.locations=i}return t.prototype.getOverrideName=function(t){return this.overrideNames[t]},t.prototype.active=function(t){for(var e=0;e<this.locations.length;e++){if(this.locations[e]===t)return this.game.prodigy.player.backpack.hasItem("key",13)>0}return!1},t.prototype.getButtons=function(){return[]},t.prototype.getAssets=function(t){return a.Util.isValid(this.getOverrideName(t))?this.assets.concat(this.getOverrideName(t)):this.assets},t.prototype.init=function(t){return{}},t.prototype.applySkin=function(t){},t}();e.Skin=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){return function(t){this.game=t}}();e.NetworkHandler=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.StoreDataProvider="StoreDataProvider",t.CacheExpirationStrategy="CacheExpirationStrategy",t.CacheStorageStrategy="CacheStorageStrategy"}(e.InjectionIdentifiers||(e.InjectionIdentifiers={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),n=function(){function t(t){this.seed=t,this.currentSeed=t}return t.prototype.next=function(){return this.currentSeed=this.currentSeed+t.CONSTANT,this.generate(this.currentSeed)},t.prototype.jumpFromStart=function(e){for(var i=0,a=0;a<=e;a++)i=this.generate(this.seed+a*t.CONSTANT);return i},t.prototype.jump=function(t){for(var e=this.generate(),i=0;i<t;i++)e=this.next();return e},t.prototype.generate=function(t){return(9301*(a.Util.isValid(t)?t:this.seed)+49297)%233280/233280},t.CONSTANT=2949751391065249e4,t}();e.SeededRandomGenerator=n},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(10),r=i(2),s=i(22),l=i(4),h=i(15),c=i(0),p=function(t){function e(e,i,a,n,s,l,p,u,d,g,y,f,m){var _=t.call(this,e,i,new h.Monster(e,{ID:u.monsterData.ID}),1,a,n,null,f)||this;if(c.Util.isValid(_.monsterData)||(_.monsterData=u.monsterData),_.unique=d||!1,_.onEnc=g,_.encountered=!1,_.ID=p,_.user=s,_.path=l,_.screen=m,c.Util.isValid(u.range)||(u.range=4e4*r.GameConstants.get("GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE")),r.GameConstants.get("GameConstants.Debug.MONSTER_RADIUS_VISIBLE")&&c.Util.isValid(_.screen)){var v=e.add.graphics(0,0);v.beginFill(16711680,.5),v.drawCircle(a,n,2*Math.sqrt(u.range)),_.screen.above.add(v)}return u.ignorePathfindingForAlert=o(u,"ignorePathfindingForAlert",!1),u.unique=d,_.mods=u,u.randDir&&Math.random()<.5&&_.flip(),_.mods.encounter=[_.monsterData],y&&(_.alpha=.5,_.respawnTimer=(new Date).getTime()+1e4),_.reload(),_.visible=!1,_}return n(e,t),e.prototype.process=function(t){this.zone=t;var e=!1;this.highlight(!1),this.visible=!0,c.Util.isValid(this.mods.highlight)&&this.mods.highlight&&this.highlight(!0,-40,-90);var i=t.getQuestState();if(c.Util.isValid(i)&&c.Util.isValid(i.req)){this.unique&&1===i.state[this.ID]&&(this.visible=!1);var a=c.Util.isValid(i.req.U)&&i.req.U;if("pet"===i.req.type&&i.req.N>0&&this.source.getID()===i.req.ID&&this.unique===a)e=!0;else if("item"===i.req.type&&this.game.prodigy.player.backpack.hasItem("item",i.req.ID)<i.req.N){if(c.Util.isValid(this.mods.drops))for(var n=0;n<this.mods.drops.length;n++){"item"===(o=this.mods.drops[n]).type&&o.ID===i.req.ID&&(e=!0)}if(c.Util.isValid(this.monsterData.drops))for(n=0;n<this.monsterData.drops.length;n++){var o;"item"===(o=this.monsterData.drops[n]).type&&o.ID===i.req.ID&&(e=!0)}}e&&this.highlight(!0,-40,-90)}},e.prototype.update=function(){t.prototype.update.call(this),this.respawnTimer<(new Date).getTime()&&(delete this.respawnTimer,this.alpha=1),this.checkPlayerInRange()},e.prototype.checkPlayerInRange=function(){var t=Phaser.Math.distanceSq(this.x,this.y,this.user.x,this.user.y);!this.visible||c.Util.isValid(this.respawnTimer)||this.started||this.user.evtProc||!(t<this.mods.range)||!this.mods.ignorePathfindingForAlert&&this.path.isPathBlocked(this.x,this.y,this.user.x,this.user.y)||this.alert()},e.prototype.alert=function(){this.started=!0,this.encountered=!0,this.highlight(!1),this.game.prodigy.audio.pauseBGM(),this.game.prodigy.audio.playSFX(19,"monster"),this.user.evtProc=!0,this.chat(1,80),this.user.setPath([]),this.user.x=Math.floor(this.user.x),this.user.y=Math.floor(this.user.y),this.game.input.enabled=!1,this.game.prodigy.network.emitMessage({action:"move",data:{userID:this.game.prodigy.player.userID,path:[{x:this.user.x,y:this.user.y}]}}),this.hop(300,this.engage.bind(this))},e.prototype.engage=function(){this.setPath([{x:this.user.x,y:this.user.y}],this.startBattle.bind(this))},e.prototype.onEndBattle=function(t,e,i,a,n,o,r,s){o&&(e.defeatMonster(a,n,r),c.Util.isDefined(s)&&s()),o?t.prodigy.world.teleport(i,this.x,this.y):t.prodigy.world.teleport(i)},e.prototype.startBattle=function(){if(this.game.input.enabled=!0,c.Util.isValid(this.zone.currency)&&c.Util.isValid(this.mods)&&(c.Util.isValid(this.mods.drops)||(this.mods.drops=[]),this.mods.drops.push({type:"currency",ID:this.zone.currency,N:20})),r.GameConstants.get("GameConstants.Debug.AUTO_RESOLVE_BATTLES_ENABLED")){this.user.evtProc=!1;var t=this.game.prodigy.event.create();if(t.explode(this.x-80,this.y-80,160,160,1,!1,!0),t.function(this.setVisible.bind(this,!1)),t.reward(l.Items.getRandomizedDropsFromCreatures(this.mods.drops,this.source,!(c.Util.isValid(this.mods)&&this.mods.dropsDisabled))),t.function(this.zone.defeatMonster.bind(this.zone,this.source.getID(),this.ID,this.unique)),c.Util.isValid(this.onEnc)&&t.function(this.onEnc),c.Util.isValid(this.screen)){var e=this.screen.events.indexOf(this);e>-1&&this.screen.events.splice(e,1),t.function(this.screen.process.bind(this.screen))}t.function(this.destroy.bind(this)),t.start()}else this.game.prodigy.network.sendBattleStartTypeEvent("RandomMonsterEncounter"),this.game.prodigy.battle.start(this.mods,this.onEndBattle.bind(this,this.game,this.zone,this.mods.onEnd,this.source.getID(),this.ID,!1,this.unique,this.onEnc),this.onEndBattle.bind(this,this.game,this.zone,this.mods.onEnd,this.source.getID(),this.ID,!0,this.unique,this.onEnc),null,this.mods.onFaint)},e.prototype.setVisible=function(t){this.visible=t},e.prototype.patrol=function(t){this.encountered||this.setPath(t,this.patrol.bind(this,t))},e}(s.MonsterContainer);e.MonsterEvent=p},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(i,a){return t.call(this,i,a,e.data.stateName,e.data.questId,e.data.defaultValue,e.data.completeDialogue)||this}return n(e,t),e.prototype.getSpawn=function(){var t=(new Date).getDate()+this.game.prodigy.player.getLatestClassIDLegacy();return this.game.seededRandom.pick(e.data.spawns,t)},e.data={stateName:"world-dailyQuests-0",questId:0,defaultValue:0,completeValue:1,completeDialogue:8,bonusStars:100,spawns:[{location:"forest-B7",dialogue:3},{location:"skywatch-B1",dialogue:5},{location:"bonfire_spire-C1",dialogue:6},{location:"shipwreck_shore-C12",dialogue:7},{location:"shipwreck_shore-C11",dialogue:7}]},e}(i(769).Daily);e.PippetEncounter=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(10),r=i(2),s=i(16),l=i(3),h=i(34),c=i(52),p=i(773),u=i(4),d=i(15),g=i(0),y=i(14),f=i(22),m=function(t){function e(i,a,n,o,s,h,c,p,u,d){var y=t.call(this,i,a,n,o,s,h)||this;return y.clickEnabled=!0,y.digSetup=!1,y.showHandIK=!1,y.animState="",y.lastSmoothing=null,y.activeMount=null,y.isInTransformedMode=!1,y.showTransformationEffect=!1,y.isMainPlayer=!1,y.transformationCompleted=!1,y.timerForPlayerDataUpdate=0,y.hideHat=!1,y.transformID=null,y.animStates=null,y.anchorOffsetY=0,y.fixedIKPositions=null,y.tweenAnimations={},y.transforming=!1,y.transformationTimer=null,y.smoke=null,y.data={},y.outfitTag=null,y.hatTag=null,y.hairTag=null,y.faceTag=null,y.weaponTag=null,y.hairMetadata=null,y.hatMetadata=null,y.outfitMetadata=null,y.faceMetadata=null,y.weaponMetadata=null,y.flagsToComplete=0,y.transformedObject=null,y.rightArm=null,y.leftArm=null,y.shirt=null,y.legs=null,y.hat=null,y.weapon=null,y.neck=null,y.head=null,y.eyes=null,y.hair=null,y.collisionHead=null,y.collisionBody=null,y.clickCallback=null,y.petWalkTrigger=null,y.updateTime=null,y.transformedPet=null,y.forceWeaponVisual=!1,y.hideMount=p,y.headOnly=c,y.isMainPlayer=!!g.Util.isValid(u)&&u,y.hideHat=!!g.Util.isValid(d)&&d,g.Util.isValid(e.smoothOverride)&&(y.lastSmoothing=e.smoothOverride),y.animStates={STAND:"stand",WALK:"walk",DIG:"dig",ATTACK:"attack",ATTACK_BIG:"attackBig",STAND_FLOAT:"standFloat",WALK_FLOAT:"walkFloat",FLOAT_DIG:"floatDig",ATTACK_FLOAT:"attackFloat",SETUP:"setup",STATIC:"static"},y.anchorOffsetY=o>1?0:-12,y.fixedIKPositions={head:{x:1,y:y.anchorOffsetY-43},neck:{x:-5,y:y.anchorOffsetY-14}},r.GameConstants.get("GameConstants.Build.DEBUG")&&(y.game.prodigy.automation.addTrigger({ID:"autoclick-"+y.source.appearance.data.name,context:y,callback:function(){return{x:y.worldPosition.x,y:y.worldPosition.y}}}),y.game.broadcaster.addAppListener(l.EDebugEvents.AutoClick,y.onDebugAutoClick.bind(y),y)),y.isMainPlayer&&y.game.broadcaster.addAppListener(l.EUIEvents.MountTogglePressed,y.toggleMount.bind(y),y,"mount"),y}return n(e,t),e.overrideSmoothing=function(t){e.smoothOverride=t},e.prototype.forceOutfit=function(t){this.digSetup=39===t},e.prototype.startLoad=function(){var e=this;if(t.prototype.startLoad.call(this),this.loading=!0,this.transforming=this.transformID!==this.source.transformID,this.transformID=this.source.transformID,this.game.input.enabled=!0,g.Util.isValid(this.transformationTimer)&&(this.transformationTimer.destroy(),this.transformationTimer=null),this.showTransformationEffect){this.game.broadcaster.broadcast(l.EPlayerLocomotionEvents.StopPlayer),this.showTransformationEffect=!1,this.showTransformationSmoke(function(){g.Util.isValid(e.game)&&e.setup()}.bind(this))}else this.setup()},e.prototype.showTransformationSmoke=function(t){var e=this,i=this.game.prodigy.event.create();this.isMainPlayer&&i.enableInput(!1),this.isInTransformedMode||(this.setNewAnimationState(this.animStates.ATTACK,this.stand.bind(this),!0),i.delay(900)),i.function(function(){if(g.Util.isValid(e.game)&&g.Util.isValid(e.parent)){var t=c.RenderFactory.createRenderer("spine-13",{type:"spine",anchor:{x:0,y:0}});new h.GameObject(e.game,e.parent,[t],e.x,e.y),t.playAnimation("spine-smoke-2",!1)}}.bind(this)),i.delay(700),i.function(t),this.isMainPlayer&&i.enableInput(!0),i.start()},e.prototype.showSmoke=function(){g.Util.isValid(this.smoke)&&this.smoke.destroy(),this.smoke=this.game.prodigy.create.element(this,0,0);for(var t=0;t<10;t++){var e=this.game.prodigy.create.sprite(0,0,"atlas-21","smoke");e.scale.x=e.scale.y=.5*this.setScale,e.anchor.setTo(.5,.5);var i=Math.floor(60*Math.random()-30),a=Math.floor(50*Math.random()-50)*this.setScale;this.game.add.tween(e).to({y:a.toString(),x:i.toString(),angle:Math.floor(200*Math.random()-100),alpha:0},Math.floor(1e3*Math.random())+500,Phaser.Easing.Quadratic.Out).start(),this.smoke.add(e)}},e.prototype.setupAssetsToLoad=function(){u.Items.doesExist("outfit",this.data.outfit)||(this.data.outfit=1);var t=this.source.appearance.getGender();if(this.outfitTag=t+"-outfit-"+this.data.outfit,this.hatTag="player-hat-"+this.data.hat,this.hairTag="player-hair-"+this.data.hair.style,this.faceTag="player-face-"+this.data.face,this.weaponTag="player-weapon-"+this.data.weapon,this.hairMetadata=u.Items.getItemMetadata("hair",this.data.hair.style),this.hatMetadata=g.Util.isValid(this.data.hat)?u.Items.getItemMetadata("hat",this.data.hat):null,this.outfitMetadata=u.Items.getItemMetadata("outfit",this.data.outfit).assets[t],this.faceMetadata=u.Items.getItemMetadata("face",this.data.face),this.weaponMetadata=g.Util.isValid(this.data.weapon)?u.Items.getItemMetadata("weapon",this.data.weapon):null,g.Util.isValid(this.hatMetadata)&&g.Util.isValid(this.hatMetadata.hairHide)&&this.hatMetadata.hideReplace>=0&&!this.hideHat)for(var e=0;e<this.hatMetadata.hairHide.length;e++)if(-1===this.hatMetadata.hairHide[e]||this.data.hair.style===this.hatMetadata.hairHide[e]){this.hairTag="player-hair-"+this.hatMetadata.hideReplace,this.hairMetadata=u.Items.getItemMetadata("hair",this.hatMetadata.hideReplace);break}var i={"player-head-1":{type:"singleImage",v:5},"player-neck-1":{type:"singleImage",v:1}};i[this.hairTag]=this.hairMetadata,i[this.faceTag]=this.faceMetadata,g.Util.isValid(this.data.weapon)&&(i[this.weaponTag]=this.weaponMetadata),g.Util.isValid(this.data.hat)&&!this.hideHat&&(i[this.hatTag]=this.hatMetadata),this.game.prodigy.assets.appendAssets(i)},e.prototype.setup=function(t,e){this.visible=!1,this.setData(),this.setupAssetsToLoad(),this.flagsToComplete=8,this.destroyMount(),this.sprites.removeAll(!0),g.Util.isValid(this.source.data.playerTransformation)&&this.source.data.playerTransformation.transformID>-1?(this.flagsToComplete++,this.setTransformationContainer(this.source.data.playerTransformation.transformType,this.source.data.playerTransformation.transformID),this.transformationCompleted=!0,this.isInTransformedMode=!0):(this.transformedPet=null,this.transformedObject=null,this.isInTransformedMode=!1),this.rightArm=this.game.prodigy.create.sprite(this.outfitMetadata.rightArm.x,this.outfitMetadata.rightArm.y+this.anchorOffsetY,this.outfitTag,"rightArm_0",null,this.updateRightArm.bind(this)),this.leftArm=this.game.prodigy.create.sprite(this.outfitMetadata.leftArm.x,this.outfitMetadata.leftArm.y+this.anchorOffsetY,this.outfitTag,"leftArm_0",null,this.updateLeftArm.bind(this)),this.shirt=this.game.prodigy.create.sprite(this.outfitMetadata.shirt.x,this.outfitMetadata.shirt.y+this.anchorOffsetY,this.outfitTag,"outfit",null,this.updateShirt.bind(this)),this.legs=this.game.prodigy.create.sprite(this.outfitMetadata.legs.x,this.outfitMetadata.legs.y+this.anchorOffsetY,this.outfitTag,"legs_0",null,this.updateLegs.bind(this)),g.Util.isValid(this.data.hat)&&!this.hideHat?(this.flagsToComplete++,this.hat=this.game.prodigy.create.sprite(this.hatMetadata.x,this.hatMetadata.y+this.anchorOffsetY,this.hatTag,null,null,this.updateHat.bind(this))):this.hat=null,(this.setScale>1||this.forceWeaponVisual)&&g.Util.isValid(this.data.weapon)||this.digSetup?(this.flagsToComplete++,this.weapon=this.game.prodigy.create.sprite(this.leftArm.x+this.outfitMetadata.leftArm.handIK.x,this.leftArm.y+this.outfitMetadata.leftArm.handIK.y,this.weaponTag,null,null,this.updateWeapon.bind(this))):this.weapon=null,this.game.prodigy.colorReplaceController.checkColorAsset("player-head-1",[{color:this.data.skinColor,itemColor:"skinColor"}],this.updateHead.bind(this)),this.game.prodigy.colorReplaceController.checkColorAsset("player-neck-1",[{color:this.data.skinColor,itemColor:"skinColor"}],this.updateNeck.bind(this)),this.game.prodigy.colorReplaceController.checkColorAsset(this.faceTag,[{color:this.data.faceColor,itemColor:"faceColor"},{color:this.data.eyeColor,itemColor:"eyeColor",base:[[85,85,85]]}],this.updateFace.bind(this)),this.game.prodigy.colorReplaceController.checkColorAsset(this.hairTag,[{color:this.data.hair.color,itemColor:"hairColor"}],this.updateHair.bind(this))},e.prototype.mountSprites=function(){var t=1===this.setScale;g.Util.isValid(e.smoothOverride)&&(t=e.smoothOverride),this.headOnly||this.sprites.add(this.leftArm),this.headOnly||this.digSetup||g.Util.isValid(this.weapon)&&(this.sprites.add(this.weapon),this.weapon.smoothed=t),this.headOnly||this.sprites.add(this.neck),this.sprites.add(this.head),this.head.addChild(this.eyes),this.head.addChild(this.hair),this.headOnly||(this.sprites.add(this.legs),this.sprites.add(this.shirt),this.sprites.add(this.rightArm)),g.Util.isValid(this.hat)&&!this.hideHat&&(this.sprites.add(this.hat),this.hat.smoothed=t),!this.headOnly&&this.digSetup&&g.Util.isValid(this.weapon)&&(this.sprites.add(this.weapon),this.weapon.smoothed=t),g.Util.isValid(this.transformedObject)&&(this.sprites.add(this.transformedObject),this.transformedObject.smoothed=t),this.neck.smoothed=t,this.head.smoothed=t,this.hair.smoothed=t,this.eyes.smoothed=t,this.leftArm.smoothed=t,this.rightArm.smoothed=t,this.shirt.smoothed=t,this.legs.smoothed=t,this.sprites.scale.setTo(this.sprites.scale.x<0?-this.setScale:this.setScale,this.setScale),this.setupCollisionBlock(),this.x=Math.round(this.x),this.y=Math.round(this.y)},e.prototype.onLoadComplete=function(){if(this.flagsToComplete--,!(this.flagsToComplete>0)&&g.Util.isValid(this.game)){this.mountSprites(),this.setupAnimations(),g.Util.isValid(this.source.data.playerTransformation)&&this.source.data.playerTransformation.transformID>-1&&this.showTransformationContainer(this.source.data.playerTransformation.transformType),this.transforming&&this.showSmoke(),this.stand();var t=this.source.mount.getMountID();!this.hideMount&&g.Util.isValid(t)?this.createMountByID(t):this.destroyMount(),g.Util.isValid(this.loadedCallback)&&this.loadedCallback(),this.complete=!0,this.loading=!1,this.visible=!0,g.Util.isValid(this.game)&&this.game.broadcaster.broadcast(l.ECreatureEvents.PlayerLoaded,this.game,[this])}},e.prototype.updateRightArm=function(t){g.Util.isValid(this.outfitMetadata)&&g.Util.isValid(this.outfitMetadata.rightArm.pivot)?(t.anchor.x=this.outfitMetadata.rightArm.pivot.x/t.width,t.anchor.y=this.outfitMetadata.rightArm.pivot.y/t.height):(t.anchor.x=.625,t.anchor.y=.35),this.onLoadComplete()},e.prototype.updateLeftArm=function(t){if(g.Util.isValid(this.outfitMetadata)&&g.Util.isValid(this.outfitMetadata.leftArm.pivot)?(t.anchor.x=this.outfitMetadata.leftArm.pivot.x/t.width,t.anchor.y=this.outfitMetadata.leftArm.pivot.y/t.height):(t.anchor.x=.3125,t.anchor.y=.35),this.showHandIK&&g.Util.isValid(this.game)){var e=this.game.prodigy.create.sprite(this.outfitMetadata.leftArm.handIK.x,this.outfitMetadata.leftArm.handIK.y,"atlas-21","empty");e.anchor.set(.5,.5),e.scale.set(.1),t.addChild(e)}this.onLoadComplete()},e.prototype.updateShirt=function(t){g.Util.has(this,"outfitMetadata.shirt.pivot")?(t.anchor.x=this.outfitMetadata.shirt.pivot.x/t.width,t.anchor.y=this.outfitMetadata.shirt.pivot.y/t.height):(t.anchor.x=62/96,t.anchor.y=.5),this.onLoadComplete()},e.prototype.updateLegs=function(t){g.Util.has(this,"outfitMetadata.legs.pivot")?(t.anchor.x=this.outfitMetadata.legs.pivot.x/t.width,t.anchor.y=this.outfitMetadata.legs.pivot.y/t.width):(t.anchor.x=.5,t.anchor.y=.2),this.onLoadComplete()},e.prototype.updateHair=function(){if(g.Util.isValid(this.game)){if(this.hair=this.game.prodigy.create.sprite(this.hairMetadata.x,this.hairMetadata.y,this.hairTag+"-"+this.data.hair.color),g.Util.isValid(this.hairMetadata)&&g.Util.isValid(this.hairMetadata.pivot)?(this.hair.anchor.x=this.hairMetadata.pivot.x/this.hair.width,this.hair.anchor.y=this.hairMetadata.pivot.y/this.hair.height):(this.hair.anchor.x=64/112,this.hair.anchor.y=36/112),g.Util.isValid(this.hatMetadata)&&-1===this.hatMetadata.hideReplace&&this.hatMetadata.hairHide.length>0&&!this.hideHat)for(var t=0;t<this.hatMetadata.hairHide.length;t++)if(-1===this.hatMetadata.hairHide[t]||this.hatMetadata.hairHide[t]===this.data.hair.style){this.hair.visible=!1;break}this.onLoadComplete()}},e.prototype.updateHat=function(t){g.Util.isValid(this.hatMetadata)&&g.Util.isValid(this.hatMetadata.pivot)?(t.anchor.x=this.hatMetadata.pivot.x/t.width,t.anchor.y=this.hatMetadata.pivot.y/t.height):(t.anchor.x=71/128,t.anchor.y=.4375),this.onLoadComplete()},e.prototype.updateFace=function(){g.Util.isValid(this.game)&&(this.eyes=this.game.prodigy.create.sprite(0,0,"player-face-"+this.data.face+"-"+this.data.faceColor+"-"+this.data.eyeColor),this.eyes.anchor.set(26/48,21/32),this.onLoadComplete())},e.prototype.updateHead=function(){g.Util.isValid(this.game)&&(this.game.broadcaster.addAppListener(l.EDebugEvents.AutoClickScene,this.onDebugAutoClick.bind(this),this),this.game.broadcaster.addAppListener(l.EDebugEvents.AutoClickList,this.onDebugAutoClickList.bind(this),this),this.head=this.game.prodigy.create.sprite(this.fixedIKPositions.head.x,this.fixedIKPositions.head.y,"player-head-1-"+this.data.skinColor),this.head.anchor.set(31/52,37/49),this.onLoadComplete())},e.prototype.setupCollisionBlock=function(){g.Util.isValid(this.game)&&(this.collisionHead=this.sprites.add(this.game.prodigy.create.sprite(-40,-100,"atlas-18","empty")),this.collisionHead.width=70,this.collisionHead.height=60,this.collisionHead.inputEnabled=!0,this.collisionHead.alpha=.5,this.collisionHead.events.onInputDown.add(this.playerClicked.bind(this)),this.collisionBody=this.sprites.add(this.game.prodigy.create.sprite(-30,-41,"atlas-18","empty")),this.collisionBody.width=50,this.collisionBody.height=40,this.collisionBody.inputEnabled=!0,this.collisionBody.alpha=.5,this.collisionBody.events.onInputDown.add(this.playerClicked.bind(this)))},e.prototype.updateNeck=function(){g.Util.isValid(this.game)&&(this.neck=this.game.prodigy.create.sprite(this.fixedIKPositions.neck.x,this.fixedIKPositions.neck.y,"player-neck-1-"+this.data.skinColor),this.neck.anchor.x=5/6,this.neck.anchor.y=2,this.neck.angle=0,this.onLoadComplete())},e.prototype.updateWeapon=function(t){g.Util.isValid(this.weaponMetadata)?(t.anchor.x=0!==o(this.weaponMetadata,"anchor.x",0)?this.weaponMetadata.anchor.x:.5,t.anchor.y=0!==o(this.weaponMetadata,"anchor.y",0)?this.weaponMetadata.anchor.y:.85,t.angle=g.Util.isValid(this.weaponMetadata.angle)?this.weaponMetadata.angle:45):(t.anchor.x=.5,t.anchor.y=.85,t.angle=45),this.onLoadComplete()},e.prototype.randomSetup=function(){this.source.appearance.data.gender=Math.random()>.5?"male":"female",this.source.equipment.data.outfit=Math.floor(56*Math.random()+1),this.source.equipment.data.hat=Math.random()>.4?Math.floor(56*Math.random()+1):null,this.source.equipment.data.weapon=Math.floor(56*Math.random()+1),this.source.appearance.data.hair={style:Math.floor(15*Math.random())+1,color:Math.floor(21*Math.random())+1},this.source.appearance.data.eyeColor=Math.floor(15*Math.random())+1,this.source.appearance.data.face=Math.floor(15*Math.random())+1,this.source.appearance.data.skinColor=Math.floor(5*Math.random())+1},e.prototype.setData=function(){this.data={hair:this.source.appearance.getHair(),eyeColor:this.source.appearance.getEyeColor(),face:this.source.appearance.getFace(),skinColor:this.source.appearance.getSkinColor(),weapon:this.digSetup?96:this.source.equipment.getEquipment("weapon"),hat:this.source.equipment.getEquipment("hat"),outfit:g.Util.isValid(this.source.equipment.getEquipment("outfit"))?this.source.equipment.getEquipment("outfit"):1,mountID:this.source.mount.getMountID()},this.data.faceColor=u.Items.getItemMetadata("skinColor",this.data.skinColor).faceColor},e.prototype.playerClicked=function(){g.Util.isValid(this.clickCallback)&&this.clickEnabled&&this.clickCallback()},e.prototype.onDebugAutoClick=function(t){g.Util.isValid(this.clickCallback)&&t==="player_"+this.x+"_"+this.y&&this.clickCallback()},e.prototype.onDebugAutoClickList=function(){g.Util.log("Scene Tag: player_"+this.x+"_"+this.y)},e.prototype.stopListeners=function(){t.prototype.stopListeners.call(this),r.GameConstants.get("GameConstants.Build.DEBUG")&&(this.game.prodigy.automation.removeAllTriggers(this),this.game.broadcaster.removeAppListener(l.EDebugEvents.AutoClickScene,this,this.game),this.game.broadcaster.removeAppListener(l.EDebugEvents.AutoClickList,this,this.game))},e.prototype.damaged=function(){this.game.add.tween(this).to({alpha:.5},100,Phaser.Easing.Quadratic.InOut,!0,0,r.GameConstants.MAX_SAFE_INTEGER).start(),this.speed=0},e.prototype.broadcastPlayerFullInfo=function(t){if(g.Util.isValid(this.locomotion)){var e={action:"info",data:{userID:this.source.userID,target:this.locomotion.target,appearance:this.source.appearance.getData(),isMember:this.source.hasMembership()?1:0,equipment:this.source.equipment.data,data:this.source.data,mount:this.source.mount.getMountData()}};g.Util.isValid(t)&&(e.target=t),this.game.prodigy.network.emitMessage(e)}},e.prototype.setupAnimations=function(){if(!this.headOnly){this.tweenAnimations={};var t=[],e=0,a=i(771);for(var n in a)for(var o in this.tweenAnimations[n]=[],a[n])if(g.Util.isValid(this[o]))for(var l in a[n][o]){t=[];var h=l,c=new s.TweenController(this[o]);for(e=0;e<a[n][o][l].frames.length;e++)"x"===l||"y"===l||"angle"===l?"walk"===n&&"legs"===o&&"y"===l?t.push(a[n][o][l].frames[e]+this[o][l]+("male"===this.source.appearance.getGender()?2:4)):t.push(a[n][o][l].frames[e]+this[o][l]):"xScale"===l?(h="x",t.push(a[n][o][l].frames[e])):"yScale"===l?(h="y",t.push(a[n][o][l].frames[e])):"images/right-arm"===a[n][o][l].frames[e]?t.push("rightArm_0"):t.push(o+"_"+a[n][o][l].frames[e]);if("xScale"!==l&&"yScale"!==l||(c=new s.TweenController(this[o].scale)),c.set(h,t,a[n][o][l].interval,a[n].loop?r.GameConstants.MAX_SAFE_INTEGER:1),this.tweenAnimations[n].push(c),"head"===o){for(var p=["hat"],u=l,d=!1,y=0;y<p.length;y++)if(!1===a[n].hasOwnProperty(p[y])&&this[p[y]]){if(t=[],"x"!==l||!d)for(e=0;e<a[n][o][l].frames.length;e++)"x"===l||"y"===l||"angle"===l?t.push(a[n][o][l].frames[e]+this[p[y]][l]):"xScale"===l?(u="x",t.push(a[n][o][l].frames[e])):"yScale"===l&&(u="y",t.push(a[n][o][l].frames[e]));var f=new s.TweenController(this[p[y]]);if("yScale"===l){var m=new s.TweenController(this[p[y]].scale);m.set(u,t,a[n][o][l].interval,a[n].loop?r.GameConstants.MAX_SAFE_INTEGER:1),this.tweenAnimations[n].push(m)}else if("xScale"===l){var _=new s.TweenController(this[p[y]].scale);if(_.set(u,t,a[n][o][l].interval,a[n].loop?r.GameConstants.MAX_SAFE_INTEGER:1),this.tweenAnimations[n].push(_),t.length>1){for(var v=[],E=this[p[y]].x,b=0;b<t.length;b++)-1===t[b]?v.push(-1*E+a[n][o].x.frames[b]/2-2):g.Util.isValid(a[n][o].x)&&g.Util.isValid(a[n][o].x.frames)&&g.Util.isValid(g.Util.isValid(a[n][o].x.frames[b]))?v.push(E+a[n][o].x.frames[b]):v.push(E);var O=new s.TweenController(this[p[y]]);O.set("x",v,a[n][o][l].interval,a[n].loop?r.GameConstants.MAX_SAFE_INTEGER:1),d||(d=!0,this.tweenAnimations[n].push(O))}}else f.set(u,t,a[n][o][l].interval,a[n].loop?r.GameConstants.MAX_SAFE_INTEGER:1),this.tweenAnimations[n].push(f)}}else if("shirt"===o)for(p=["neck"],y=0;y<p.length;y++)if(!1===a[n].hasOwnProperty(p[y])&&this[p[y]]){for(t=[],e=0;e<a[n][o][l].frames.length;e++)"x"!==l&&"y"!==l&&"angle"!==l||t.push(a[n][o][l].frames[e]+this[p[y]][l]);(f=new s.TweenController(this[p[y]])).set(l,t,a[n][o][l].interval,a[n].loop?r.GameConstants.MAX_SAFE_INTEGER:1),this.tweenAnimations[n].push(f)}}else if("character"===o)for(var l in a[n][o]){c=new s.TweenController(this.sprites),h=l;for(t=[],e=0;e<a[n][o][l].frames.length;e++)"x"===l?t.push(a[n][o][l].frames[e]):"y"===l?t.push(a[n][o][l].frames[e]):"xScale"===l?(h="x",t.push(a[n][o][l].frames[e])):"yScale"===l&&(h="y",t.push(a[n][o][l].frames[e]));"xScale"!==l&&"yScale"!==l||(c=new s.TweenController(this.sprites.scale)),c.set(h,t,a[n][o][l].interval,a[n].loop?r.GameConstants.MAX_SAFE_INTEGER:1),this.tweenAnimations[n].push(c)}}},e.prototype.setNewAnimationState=function(t,e,i){if(!(this.animState===t&&t===this.animStates.WALK||this.headOnly)){g.Util.isValid(this.game)&&this.game.broadcaster.broadcast(l.EPlayerContainerEvents.NewAnimationStateSet,this,[t]),this.animState=t;var a=(new Date).getTime();if(this.tweenAnimations.hasOwnProperty(this.animState))for(var n=0;n<this.tweenAnimations[this.animState].length;n++)this.tweenAnimations[this.animState][n].start(a,0===n?e:null,i)}},e.prototype.walk=function(){this.sprites.x=0,this.sprites.y=0,this.isMounted()?this.activeMount.startParticles():(this.setNewAnimationState(this.animStates.WALK,null),g.Util.isValid(this.transformedPet)&&(this.petWalkTrigger=!0))},e.prototype.stand=function(){this.x=Math.round(this.x),this.y=Math.round(this.y),this.isMounted()?this.activeMount.stopParticles():(this.setNewAnimationState(this.animStates.STAND,null,!0),g.Util.isValid(this.transformedPet)&&this.transformedPet.stand())},e.prototype.standStill=function(){this.setNewAnimationState(this.animStates.STATIC)},e.prototype.moonwalk=function(){this.setNewAnimationState(this.animStates.WALK)},e.prototype.dig=function(t,e){this.setNewAnimationState(this.animStates.DIG,this.stand.bind(this),!0),setTimeout(e,1e3)},e.prototype.attack=function(){this.setNewAnimationState(this.animStates.ATTACK,this.stand.bind(this),!0),g.Util.isValid(this.transformedPet)&&this.transformedPet.attack()},e.prototype.dance=function(t,e){this.stopTweens(),!this.isMounted()&&g.Util.isValid(this.rightArm)&&g.Util.isValid(this.leftArm)&&(this.rightArm.angle=0,this.leftArm.angle=0);var i=t;this.tweenAnimations.hasOwnProperty(""+t+e)&&(i=""+t+e),this.setNewAnimationState(i,this.stand.bind(this),!0)},e.prototype.isMounted=function(){return g.Util.isValid(this.activeMount)},e.prototype.toggleMount=function(){if(this.isMounted())this.unmount();else{var t=this.source.mount.getMountID();if(!g.Util.isValid(t)){var e=this.source.backpack.getBackpackItemsByType("mount");e.length>0&&(t=e[0].ID)}this.mount(t)}this.game.prodigy.player.appearanceChanged=!0},e.prototype.mount=function(t){g.Util.isValid(t)&&(g.Util.isValid(this.activeMount)&&!this.hideMount&&this.doesMountIDMatchCurrentMountID(t)||this.unmount(),this.createMountByID(t),this.source.mount.setMountData({mountID:t}))},e.prototype.doesMountIDMatchCurrentMountID=function(t){return t===this.activeMount.id},e.prototype.unmount=function(){this.isMounted()&&(this.destroyMount(),this.float(!1),this.stand(),this.source.mount.clearMountID())},e.prototype.createMountByID=function(t){this.isMounted()&&!this.doesMountIDMatchCurrentMountID(t)&&this.destroyMount(),this.isMounted()||(this.float(!0),this.activeMount=new p.MountRenderer(this.game,this,t),this.sprites.add(this.activeMount.mountAboveGameObject),this.sprites.addAt(this.activeMount.mountBelowGameObject,0))},e.prototype.destroyMount=function(){this.isMounted()&&(this.activeMount.destroy(),this.activeMount=null)},e.prototype.setTransformationContainer=function(t,e){var i=this,a=0;if(this.headOnly&&(a=-15),"pet"===t){var n=function(){i.onLoadComplete(),i.transformedPet.sprites.scale.setTo(1/i.setScale)};this.transformedPet=new f.MonsterContainer(this.game,this.sprites,new d.Monster(this.game,{ID:e}),this.setScale,0,a,!1),this.transformedPet.reload(n.bind(this))}else if("dorm"===t){n=function(t){i.transformedObject=t,i.transformedObject.anchor.setTo(.5,1),i.onLoadComplete()};this.game.prodigy.create.sprite(0,a,"vertical-dorm-"+e,"",null,n.bind(this))}},e.prototype.showTransformationContainer=function(t){this.sprites.setAll("visible",!1),g.Util.isValid(this.collisionHead)&&(this.collisionHead.visible=!0),g.Util.isValid(this.collisionHead)&&(this.collisionBody.visible=!0),g.Util.isValid(this.transformedPet)&&"pet"===t&&(this.transformedPet.visible=!0),g.Util.isValid(this.transformedObject)&&"dorm"===t&&(this.transformedObject.visible=!0)},e.prototype.transformToItem=function(t,e,i,a){this.isMainPlayer?(this.game.prodigy.network.emitMessage({action:"transform",data:{userID:this.source.userID,transformType:t,transformID:e,showEffect:i}}),this.game.prodigy.player.transformPlayer(t,e,a)):(g.Util.isValid(this.source.data.playerTransformation)||(this.source.data.playerTransformation={}),this.source.data.playerTransformation.transformType=t,this.source.data.playerTransformation.transformID=e,this.source.data.playerTransformation.maxTime=0,this.source.data.playerTransformation.timeRemaining=0),this.showTransformationEffect=i,g.Util.isValid(this.game)&&this.reload()},e.prototype.resetItemTransformation=function(t){this.isMainPlayer?(this.game.prodigy.network.emitMessage({action:"transform",data:{userID:this.source.userID,showEffect:t}}),this.game.prodigy.player.transformPlayer(-1)):(g.Util.isValid(this.source.data.playerTransformation)||(this.source.data.playerTransformation={}),this.source.data.playerTransformation.transformID=-1,this.source.data.playerTransformation.maxTime=0,this.source.data.playerTransformation.timeRemaining=0),this.transformationCompleted=!1,this.showTransformationEffect=t,g.Util.isValid(this.game)&&this.reload(),g.Util.isValid(this.transformationTimer)&&(this.transformationTimer.endTimer(),this.transformationTimer=null)},e.prototype.update=function(){t.prototype.update.call(this),g.Util.isValid(this.updateTime)||(this.updateTime=(new Date).getTime());var i=(new Date).getTime();if(g.Util.isValid(this.locomotion)&&this.locomotion.update(),this.isMounted()&&this.activeMount.update(),g.Util.isValid(this.tweenAnimations)&&""!==this.animState&&g.Util.isValid(this.tweenAnimations[this.animState]))for(var a=0;a<this.tweenAnimations[this.animState].length;a++)this.tweenAnimations[this.animState][a].update(i);this.lastSmoothing!==e.smoothOverride&&(this.lastSmoothing=e.smoothOverride,this.reload()),this.petWalkTrigger&&g.Util.isValid(this.transformedPet)&&!this.transformedPet.loading&&(this.transformedPet.walk(),this.petWalkTrigger=!1);var n=this.game.state.states.TileScreen,o=g.Util.isValid(n)&&n.isMapScreen&&n.complete;if(this.isMainPlayer&&this.isTransformationTimerDefined()&&this.transformationCompleted&&o)if(this.getRemainingTransformationTime()>0){var r=i-this.updateTime;this.game.prodigy.player.data.playerTransformation.timeRemaining-=r,this.timerForPlayerDataUpdate+=r,this.timerForPlayerDataUpdate>=3e4&&(this.game.prodigy.player.updated=!0,this.timerForPlayerDataUpdate=0);var s=this.game.prodigy.player.data.playerTransformation.maxTime;if(!g.Util.isValid(this.transformationTimer)){var l=[];g.Util.isValid(n.menuBar)&&g.Util.isValid(n.menuBar.conjureCubeButton)&&l.push(n.menuBar.conjureCubeButton),this.transformationTimer=this.game.prodigy.create.countdownTimer(n.above,this.game.width-100,100,{maxTime:s,timeDelta:15e3,hideElements:l,clickMessage:this.game.prodigy.gameContainer.Localizer.getText("MORPH_END_MESSAGE")},this.resetItemTransformation.bind(this,!0))}this.transformationTimer.updateTimerValue(s-this.getRemainingTransformationTime())}else this.game.prodigy.player.data.playerTransformation.transformID>-1&&(this.resetItemTransformation(!0),this.timerForPlayerDataUpdate=0);this.updateTime=(new Date).getTime()},e.prototype.destroy=function(){this.isMainPlayer&&this.game.broadcaster.removeAppListener(l.EUIEvents.MountTogglePressed,this,"mount"),this.isMounted()&&this.destroyMount(),t.prototype.destroy.call(this)},e.prototype.isTransformationTimerDefined=function(){return g.Util.isValid(this.source.data.playerTransformation)&&g.Util.isValid(this.source.data.playerTransformation.timeRemaining)},e.prototype.getRemainingTransformationTime=function(){return this.isTransformationTimerDefined()?this.source.data.playerTransformation.timeRemaining:0},e.smoothOverride=null,e}(y.CreatureContainer);e.PlayerContainer=m},function(t,e,i){var a=i(144);t.exports=function(t,e){var i=-1,n=t.length,o=n-1;for(e=void 0===e?n:e;++i<e;){var r=a(i,o),s=t[r];t[r]=t[i],t[i]=s}return t.length=e,t}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(3),n=i(29),o=i(0),r=function(){function t(t){this.game=t}return t.prototype.setSource=function(t){this.screen=t},t.prototype.bountyComplete=function(t,e){var i=this.screen.menus.add(new Phaser.TileSprite(this.game,0,280,1280,200,"atlas-161","bounty-runner"));i.alpha=0,i.height=200;var a=this.screen.menus.add(this.game.prodigy.create.sprite(640,250,"atlas-19","emblem-bounty"));a.anchor.setTo(.5,.5),a.scale.x=a.scale.y=2,a.alpha=0;var n=""+t,r=this.game.prodigy.create.font(this.screen.menus,520,175,n,{size:80,width:240,align:"center"});r.alpha=0;var s=this.game.prodigy.create.font(this.screen.menus,1280,330,this.game.prodigy.gameContainer.Localizer.getText("EFFECT_BOUNTY_COMPLETE"),{size:80,width:1280,align:"center"});this.game.add.tween(a).to({alpha:1},200,Phaser.Easing.Quadratic.In).to({},4100,Phaser.Easing.Linear.None).to({alpha:0},250,Phaser.Easing.Quadratic.Out).start(),this.game.add.tween(a.scale).to({x:1,y:1},200,Phaser.Easing.Quadratic.In).start(),this.game.add.tween(r).to({alpha:1},200,Phaser.Easing.Quadratic.In).to({},4100,Phaser.Easing.Linear.None).to({alpha:0},250,Phaser.Easing.Quadratic.Out).start();var l=this.game.add.tween(i);l.to({},100,Phaser.Easing.Linear.None),l.to({alpha:.9},250,Phaser.Easing.Quadratic.In),l.to({},4e3,Phaser.Easing.Linear.None),l.to({alpha:0},250,Phaser.Easing.Quadratic.Out),l.start(),this.game.add.tween(s).to({},100,Phaser.Easing.Linear.None).to({x:25},250,Phaser.Easing.Quadratic.Out).to({x:-25},4e3,Phaser.Easing.Linear.None).to({x:-1280},250,Phaser.Easing.Quadratic.Out).start(),o.Util.isValid(e)&&(l.onComplete.add(this.cleanup.bind(this,[i,s,a]),this),l.onComplete.add(e,this))},t.prototype.cleanup=function(t){for(var e=0;e<t.length;e++)t[e].destroy()},t.prototype.fire=function(t,e,i,a,n,r,s){for(var l=r?Math.ceil(i/120):Math.ceil(i/100),h=r?Math.ceil(a/120):Math.ceil(a/100),c=[],p=0;p<l;p++)for(var u=0;u<h;u++)c.push(this.screen.menus.add(this.game.prodigy.create.sprite(t+80*p+40,e+80*u+40,"atlas-122",r?"fire-ball-small":"fire-ball")));for(p=0;p<l-1;p++)for(u=0;u<h-1;u++)c.push(this.screen.menus.add(this.game.prodigy.create.sprite(t+80*p+80,e+80*u+80,"atlas-122",r?"fire-ball-small":"fire-ball")));for(p=0;p<c.length;p++){var d=c[p];d.anchor.setTo(.5,.5),d.scale.x=d.scale.y=0;var g=this.game.add.tween(d),y=this.game.add.tween(d.scale),f=Math.floor(1e3/c.length)*p+10;0===p&&(f=1e3),g.to({},f,Phaser.Easing.Linear.None),y.to({},f,Phaser.Easing.Linear.None);var m=Math.floor((d.x-t-Math.floor(80*l/2))/2);for(u=0;u<n;u++)0===p&&this.game.time.events.add(1e3*u,this.game.prodigy.audio.playSFX.bind(this.game.prodigy.audio,18,"dig")),g.to({x:d.x,y:d.y,alpha:1},10,Phaser.Easing.Linear.None),g.to({x:d.x+m,y:d.y-50,alpha:1},1e3,Phaser.Easing.Linear.None),y.to({x:.5,y:.5},10,Phaser.Easing.Linear.None),y.to({x:1.4,y:1.4},1e3,Phaser.Easing.Quadratic.Out);g.to({alpha:0},10,Phaser.Easing.Linear.None),0===p&&o.Util.isValid(s)&&g.onComplete.addOnce(s),0===p&&g.onComplete.addOnce(this.cleanup.bind(this,c),this),g.start(),y.start()}},t.prototype.flashText=function(e,i,a,n,r,s){void 0===a&&(a=t.MIDDLE),void 0===n&&(n=t.MEDIUM),void 0===r&&(r=2700),void 0===s&&(s=!1);var l=this.screen.menus.add(new Phaser.TileSprite(this.game,0,a-20,1280,200,"atlas-161","dialogue"));l.alpha=0,l.height=200/n;var h=this.game.prodigy.create.font(this.screen.menus,1280,a,e,{size:80/n,width:1280,align:"center"});h.y=a+Math.floor((l.height-h.height)/(4*n));var c=this.game.add.tween(l);c.to({alpha:.5},250,Phaser.Easing.Quadratic.In),c.to({},r,Phaser.Easing.Linear.None),c.to({alpha:0},250,Phaser.Easing.Quadratic.Out),c.start();var p=this.game.add.tween(h);return s?(h.x=0,p.to({alpha:1},125,Phaser.Easing.Quadratic.In),p.to({},r,Phaser.Easing.Linear.None),p.to({alpha:0},125,Phaser.Easing.Quadratic.Out),p.start()):(p.to({x:25},250,Phaser.Easing.Quadratic.Out),p.to({x:-25},r,Phaser.Easing.Linear.None),p.to({x:-1280},250,Phaser.Easing.Quadratic.Out),p.start()),c.onComplete.add(this.cleanup.bind(this,[l,h]),this),o.Util.isValid(i)&&c.onComplete.add(i,this),c},t.prototype.characterText=function(t,e,i,a,n){var r=this.game.prodigy.create.font(this.screen.overlay,e,i,t,o.Util.isValid(n)?n:{size:40});r.y-=150,r.setCenterAnchor(),r.scale.setTo(0,0);var s=this.game.add.tween(r.scale).to({y:1,x:1},800,Phaser.Easing.Elastic.InOut),l=this.game.add.tween(r).to({y:"-100"},1600,Phaser.Easing.Quadratic.Out).to({alpha:0},200,Phaser.Easing.Quadratic.Out);l.onComplete.add(function(){r.destroy()}),o.Util.isValid(a)&&(l.delay(a),s.delay(a)),l.start(),s.start()},t.prototype.characterImage=function(t,e){t.y-=150,t.anchor.setTo(.5,.5),t.scale.setTo(0,0),this.game.broadcaster.broadcast(a.EScreenEvents.AddChild,this.game,[t,"overlay"]);var i=this.game.add.tween(t.scale).to({y:1,x:1},800,Phaser.Easing.Elastic.InOut),n=this.game.add.tween(t).to({y:"-100"},1600,Phaser.Easing.Quadratic.Out).to({alpha:0},200,Phaser.Easing.Quadratic.Out);n.onComplete.add(t.kill),o.Util.isValid(e)&&(n.delay(e),i.delay(e)),n.start(),i.start()},t.prototype.explode=function(t,e,i,a,r,s,l){for(var h,c,p=Math.ceil(i/80),u=Math.ceil(a/80),d=[],g=0;g<p;g++)for(var y=0;y<u;y++)c="",l&&(c=(h=n.Random.integerInRange(0,3))<1?"-blue":h<2?"-green":"-red"),d.push(this.screen.menus.add(this.game.prodigy.create.sprite(t+80*g+40,e+80*y+40,"atlas-19","smoke"+c)));for(g=0;g<p-1;g++)for(y=0;y<u-1;y++)c="",l&&(c=(h=n.Random.integerInRange(0,3))<1?"-blue":h<2?"-green":"-red"),d.push(this.screen.menus.add(this.game.prodigy.create.sprite(t+80*g+80,e+80*y+80,"atlas-19","smoke"+c)));for(g=0;g<d.length;g++){var f=d[g];f.anchor.setTo(.5,.5),f.scale.x=f.scale.y=0,f.angle=Math.floor(1e3*Math.random());var m=this.game.add.tween(f),_=this.game.add.tween(f.scale),v=Math.floor(1e3/d.length)*g+10;0===g&&(v=1e3),m.to({},v,Phaser.Easing.Linear.None),_.to({},v,Phaser.Easing.Linear.None);var E=Math.floor((f.x-t-Math.floor(80*p/2))/2);for(y=0;y<r;y++)0===g&&this.game.time.events.add(1e3*y,this.game.prodigy.audio.playSFX.bind(this.game.prodigy.audio,18,"dig")),m.to({x:f.x,y:f.y,alpha:1,angle:f.angle},10,Phaser.Easing.Linear.None),m.to({x:f.x+E,y:f.y-50,alpha:1,angle:f.angle+100},1e3,Phaser.Easing.Linear.None),_.to({x:.5,y:.5},10,Phaser.Easing.Linear.None),_.to({x:1.4,y:1.4},1e3,Phaser.Easing.Quadratic.Out);m.to({alpha:0},10,Phaser.Easing.Linear.None),0===g&&o.Util.isValid(s)&&m.onComplete.addOnce(s),0===g&&m.onComplete.addOnce(this.cleanup.bind(this,d),this),m.start(),_.start()}},t.prototype.shake=function(t,e,i,a,n){void 0===i&&(i=10),void 0===a&&(a="v"),void 0===n&&(n=null);for(var r=[],s=[this.screen.background,this.screen.content,this.screen.foreground],l=Math.floor(e/50),h=0;h<l;h++)for(var c=this.game.rnd.integerInRange(-i,i),p=this.game.rnd.integerInRange(-i,i),u=0;u<s.length;u++)0===h&&(r[u]=this.game.add.tween(s[u]),o.Util.isValid(n)&&0===u&&r[u].onComplete.add(n)),r[u].to({x:"v"===a?0:c,y:"h"===a?0:p},50,Phaser.Easing.Linear.None),h===l-1&&(r[u].to({x:0,y:0},100,Phaser.Easing.Linear.None),r[u].delay(t),r[u].start())},t.prototype.firework=function(t,e,i,a,n){var r=this;void 0===n&&(n=0);var s=o.Util.isValid(a)?a:this.screen.foreground,l=75*Math.random()+25,h=Math.random(),c=100*h-50,p=Math.random()+1,u=s.add(this.game.prodigy.create.sprite(t-20,e+100,"atlas-19","rocket")),d=s.add(this.game.prodigy.create.sprite(t+c,e-l,"atlas-19","fireworks"));u.anchor.setTo(.5,.5),d.anchor.setTo(.5,.5),d.angle=360*Math.random(),d.scale.x=0,d.scale.y=0;var g=this.game.add.tween(u).to({y:e-l},500,Phaser.Easing.Quadratic.Out,!0,n);this.game.add.tween(u).to({x:t+c},500,Phaser.Easing.Quadratic.Out,!0,n),this.game.add.tween(u).to({angle:35*(2*h-1)},500,Phaser.Easing.Linear.None,!0),this.game.add.tween(d.scale).to({x:p,y:p},500,Phaser.Easing.Back.Out,!0,n+500);var y=this.game.add.tween(d).to({alpha:0},1e3,Phaser.Easing.Linear.None,!0,n+1e3);g.onComplete.addOnce(function(){r.game.prodigy.audio.playSFX(18,"dig")},this),g.onComplete.addOnce(function(){u.destroy()}),y.onComplete.addOnce(function(){d.destroy()}),o.Util.isValid(i)&&y.onComplete.add(i)},t.prototype.confetti=function(t,e,i){var a=Math.random()+1,n=this.screen.foreground.add(this.game.prodigy.create.sprite(t-20,e+100,"atlas-19","confetti1"));n.animations.add("confetti",["confetti1","confetti2","confetti3","confetti4"],10,!0,!1),n.anchor.setTo(.5,.5),n.scale.x=.1,n.scale.y=.1,n.animations.play("confetti");var r=this.game.add.tween(n).to({y:"-25"},500,Phaser.Easing.Linear.None,!0,0);this.game.add.tween(n.scale).to({x:a,y:a},500,Phaser.Easing.Quadratic.In,!0,0);var s=this.game.add.tween(n).to({y:"+100"},2e3,Phaser.Easing.Sinusoidal.Out,!1,250),l=this.game.add.tween(n).to({alpha:0},1e3,Phaser.Easing.Linear.None,!0,2500);this.game.prodigy.audio.playSFX(18,"dig"),r.chain(s),l.onComplete.addOnce(function(){n.destroy()}),o.Util.isValid(i)&&l.onComplete.add(i)},t.prototype.portalEffect=function(t,e,i){var a=this.screen.background.add(this.game.prodigy.create.sprite(t-110,e-160,"atlas-19","portal1-b")),n=this.screen.foreground.add(this.game.prodigy.create.sprite(t-110,e-160,"atlas-19","portal1"));n.animations.add("portalF",["portal1","portal2","portal3","portal4","portal5","portal6","portal7","portal8","portal9"],7,!0,!1),a.animations.add("portalB",["portal1-b","portal2-b","portal3-b","portal4-b","portal5-b","portal6-b","portal7-b","portal8-b","portal9-b"],7,!0,!1),a.animations.play("portalB"),n.animations.play("portalF"),this.game.add.tween(a).to({alpha:1},800,Phaser.Easing.Linear.None,!0,1).onComplete.addOnce(function(){o.Util.isValid(i)&&i(),a.destroy(),n.destroy()})},t.prototype.goldWork=function(t,e,i){for(var a=75*Math.random()+25,n=Math.random(),o=100*n-50,r=Math.floor(3*Math.random()+1),s=[],l=1;l<r+1;l++)s.push(this.screen.addClickableEvent(t+100*l+n,e-100*l+n,80,80)),s[l-1].img=s[l-1].add(new Phaser.Image(this.game,0,0,"atlas-21","gold"));var h=this.screen.foreground.add(this.game.prodigy.create.sprite(t-20,e+100,"atlas-19","rocket"));h.anchor.setTo(.5,.5);var c=this.game.add.tween(h).to({y:e-a},500,Phaser.Easing.Quadratic.Out,!0,0);this.game.add.tween(h).to({x:t+o},500,Phaser.Easing.Quadratic.Out,!0,0);var p=this.game.add.tween(h).to({angle:35*(2*n-1)},500,Phaser.Easing.Linear.None,!0);c.onComplete.addOnce(function(){h.destroy()}),p.onComplete.add(i)},t.prototype.fadeFlyingImage=function(t,e,i,n){var o=this.game.prodigy.create.sprite(t,e,i,n);o.anchor.setTo(.5,.5),this.game.broadcaster.broadcast(a.EScreenEvents.AddChild,this.game,[o,"overlay"]);var r=this.game.add.tween(o).to({y:o.y-100},1300,Phaser.Easing.Quadratic.Out).to({alpha:0},200,Phaser.Easing.Quadratic.Out);r.onComplete.add(function(){o.kill()},o),r.start()},t.prototype.spellLearned=function(t,e,i){for(var a=this,n=!1,r=function(t,r){e.add(r),r.anchor.setTo(3,3),r.angle=60*t;var s=a.game.add.tween(r).to({angle:"+1000"},3500,Phaser.Easing.Linear.None).to({alpha:0},500,Phaser.Easing.Linear.None);s.onComplete.add(function(){r.destroy(),o.Util.isValid(i)&&!n&&(n=!0,i())}),s.start(),a.game.add.tween(r.anchor).to({x:.5,y:.5},1500,Phaser.Easing.Linear.None).delay(2e3).to({x:5,y:5},500,Phaser.Easing.Linear.None).start()},s=0;s<6;s++)this.game.prodigy.icon.createFromData(t,e.width/2,e.height/2,null,r.bind(this,s))},t.PVP=230,t.MIDDLE=300,t.BOTTOM=500,t.BASE=600,t.TOP=100,t.SMALL=2,t.MEDIUM=1,t}();e.EffectFactory=r},function(t,e){t.exports=function(t,e){var i=-1,a=t.length;for(e||(e=Array(a));++i<a;)e[i]=t[i];return e}},function(t,e,i){var a=i(157),n=i(69),o=i(86),r=i(19),s=i(44),l=i(85),h=i(103),c=i(104),p="[object Map]",u="[object Set]",d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(r(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||c(t)||o(t)))return!t.length;var e=n(t);if(e==p||e==u)return!t.size;if(h(t))return!a(t).length;for(var i in t)if(d.call(t,i))return!1;return!0}},function(t,e,i){var a=i(925),n=i(58);t.exports=function(t){return null==t?[]:a(t,n(t))}},function(t,e){var i=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},function(t,e,i){var a=i(947),n=i(84),o=i(158),r=o&&o.isTypedArray,s=r?n(r):a;t.exports=s},function(t,e){var i=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?i:e)&&("number"==n||"symbol"!=n&&a.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){var a=i(961);t.exports=function(t,e){var i=t.__data__;return a(e)?i["string"==typeof e?"string":"hash"]:i.map}},function(t,e,i){var a=i(60)(Object,"create");t.exports=a},function(t,e,i){var a=i(87);t.exports=function(t,e){for(var i=t.length;i--;)if(a(t[i][0],e))return i;return-1}},function(t,e,i){var a=i(985),n=i(984),o=i(983),r=i(982),s=i(981);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var a=t[e];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=n,l.prototype.get=o,l.prototype.has=r,l.prototype.set=s,t.exports=l},function(t,e,i){var a=i(110),n=i(980),o=i(979),r=i(978),s=i(977),l=i(976);function h(t){var e=this.__data__=new a(t);this.size=e.size}h.prototype.clear=n,h.prototype.delete=o,h.prototype.get=r,h.prototype.has=s,h.prototype.set=l,t.exports=h},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(i,a){e(i,a,t)}};Object.defineProperty(e,"__esModule",{value:!0});var l=i(11),h=i(54),c=i(71),p=i(293),u=function(t){function e(e){var i=t.call(this)||this;return i.logger=null,i.logger=e,i}return n(e,t),e.prototype.getText=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(p.Utils.isDefined(this.dataSource)){var a=this.dataSource.getValue(t);if(p.Utils.isDefined(a)){for(var n=0;n<e.length;n++)a=a.split("{"+n+"}").join(e[n].toString());return a}}return this.logger.log("Localized value was not found in language data for key ["+t+"].",c.LogLevel.Error),t},e=o([l.injectable(),s(0,l.inject(h.GameIdentifiers.LoggerService)),r("design:paramtypes",[Object])],e)}(i(292).BaseLocalizer);e.Localizer=u},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(174),r=i(3),s=i(4),l=i(38),h=i(136),c=i(37),p=i(0),u=function(t){function e(e,i,a){var n=t.call(this,e,"Titan","MAP_TITAN_GROUNDS",a.entry.x,a.entry.y,[a.map],i.concat("spine-2","atlas-41","atlas-140","spine-19","spine-20","singleImage-44","sfx-27","sfx-28"))||this;return n.catapultBattle=!1,n.finishedBattle=!1,n.catapultQueue=0,n.isCatapultAnimating=!1,n.titanHealthBar=null,n.titanAsset=null,n.titanMapData=null,n.impactContainer=null,n.impactSpine=null,n.catapultContainer=null,n.catapultSpine=null,n.cannonBall=null,n.catapultTweenX=null,n.catapultTweenY=null,n.titanSpine=null,n.spineContainer=null,n.collisionBlock=null,n.minLevel=0,n.titanMapData=a,n}return n(e,t),e.prototype.setup=function(e,i,a){t.prototype.setup.call(this,e,i,a),this.titanHealthBar=null,this.catapultQueue=0,this.isCatapultAnimating=!1,this.game.broadcaster.addAppListener(r.ETitanEvents.GotTitan,this.startTitanBattle.bind(this),this,"Titan"),this.game.broadcaster.addAppListener(r.ETitanEvents.GotTitans,this.gotTitanCallback.bind(this),this,"Titan"),p.Util.isValid(e.prodigy.titansNetworkHandler.titan)?this.gotTitanCallback():e.prodigy.titansNetworkHandler.getTitans()},e.prototype.cleanup=function(){t.prototype.cleanup.call(this),this.game.broadcaster.removeAppListener(r.ETitanEvents.GotTitan,this,"Titan"),this.game.broadcaster.removeAppListener(r.ETitanEvents.GotTitans,this,"Titan"),this.game.broadcaster.removeAppListener(r.ETitanEvents.Catapult,this,"Catapult")},e.prototype.process=function(e,i,a){t.prototype.process.call(this,e,i,a),p.Util.isValid(this.screen.questProgress)&&(this.screen.questProgress.visible=!1)},e.prototype.gotTitanCallback=function(){if(this.game.broadcaster.removeAppListener(r.ETitanEvents.GotTitans,this,"Titan"),this.game.prodigy.titansNetworkHandler.isTitanAlive()){var t=this.game.prodigy.titansNetworkHandler.titan.assetID;this.titanAsset=s.Items.getItem("titan",t).data,-1!==this.game.prodigy.world.currentZone.indexOf(this.titanAsset.zone)&&(this.game.prodigy.load.assets(["default-titan-"+t],this.titanLoadComplete.bind(this)),this.renderMapElements())}},e.prototype.titanLoadComplete=function(){var t=this;this.renderTitan(),this.playCutscene(this.game),this.renderHealthBar();var e=this.titanMapData.titan.x+this.titanMapData.titan.impactOffset.x,i=this.titanMapData.titan.y+this.titanMapData.titan.impactOffset.y;this.impactContainer=this.game.prodigy.create.element(this.screen.content,e,i),this.impactSpine=this.game.add.spine(0,0,"spine-20"),this.impactContainer.add(this.impactSpine),this.impactContainer.visible=!1,this.catapultContainer=this.game.prodigy.create.element(this.screen.content,this.titanMapData.catapult.x,this.titanMapData.catapult.y),this.catapultSpine=this.game.add.spine(0,0,"spine-19"),this.catapultContainer.add(this.catapultSpine),this.setupCollisionBlock(this.catapultSpine,this.onCatapultClick.bind(this)),this.cannonBallStartPos={x:this.titanMapData.catapult.x-35,y:this.titanMapData.catapult.y-175},this.cannonBall=this.game.prodigy.create.sprite(this.cannonBallStartPos.x,this.cannonBallStartPos.y,"singleImage-44"),this.cannonBall.visible=!1,this.screen.above.add(this.cannonBall),this.catapultTweenX=this.game.add.tween(this.cannonBall.position),this.catapultTweenX.to({x:this.impactContainer.x},600,Phaser.Easing.Linear.None,!1,867),this.catapultTweenX.onStart.add(function(){t.cannonBall.visible=!0}),this.catapultTweenX.onComplete.add(function(){t.cannonBall.visible=!1,t.playImpact()}),this.catapultTweenY=this.game.add.tween(this.cannonBall.position),this.catapultTweenY.to({y:this.impactContainer.y-this.titanMapData.catapult.arcHeight},300,Phaser.Easing.Quadratic.Out,!1,867),this.catapultTweenY.to({y:this.impactContainer.y},300,Phaser.Easing.Quadratic.In,!1),this.game.broadcaster.addAppListener(r.ETitanEvents.Catapult,this.onShootCatapult.bind(this),this,"Catapult"),this.catapultBattle&&(this.catapultBattle=!1,this.game.broadcaster.broadcast(r.ETitanEvents.Catapult,"Catapult"),this.game.prodigy.network.emitMessage({action:"catapult"})),this.finishedBattle||this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:"Titan-Member-Bonus",name:"Titan-Map-Entered"}),this.finishedBattle=!1},e.prototype.playCutscene=function(t){var e=t.prodigy.player.data.titanID,i=t.prodigy.titansNetworkHandler.titan;!p.Util.isValid(i)||p.Util.isValid(e)&&e===i.id||(t.prodigy.player.data.titanID=t.prodigy.titansNetworkHandler.titan.id,t.prodigy.world.playScene(this.titanMapData.cutscene))},e.prototype.renderMapElements=function(){new o.Harvey(this.game,this.screen,this.titanMapData.harvey.x,this.titanMapData.harvey.y,!0);var t=this.screen.content.add(this.game.prodigy.create.sprite(this.titanMapData.sign.x,this.titanMapData.sign.y,"atlas-140","harveySign"));t.anchor.x=.5,t.anchor.y=1,t.inputEnabled=!0,t.events.onInputDown.add(this.onSignClicked.bind(this))},e.prototype.renderTitan=function(){var t=this.game.prodigy.titansNetworkHandler.titan.assetID;this.spineContainer=this.game.prodigy.create.element(this.screen.content,this.titanMapData.titan.x,this.titanMapData.titan.y),this.titanSpine=this.game.add.spine(0,0,"default-titan-"+t),this.titanSpine.setAnimationByName(0,"idle",!0),this.spineContainer.add(this.titanSpine),this.setupCollisionBlock(this.spineContainer,this.onTitanClicked.bind(this))},e.prototype.renderHealthBar=function(){if(!p.Util.isValid(this.titanHealthBar)){for(var t=new c.UIParser(this.game).createUIElements([{type:"UIElement",name:"healthBarContainer",relativeWidth:1,relativeHeight:1,children:[{type:"Slider",name:"healthSlider",relativeY:-.4,anchorX:.6,anchorY:1,relativeWidth:.85,height:80,atlasName:"atlas-144",activeTrackBaseFrameName:"scroll-tracks/red-large-fill",inactiveTrackBaseFrameName:"scroll-tracks/red-large-track",showHead:!1,isVertical:!1,isInteractive:!1}]}],this.spineContainer),e=0;e<t.length;e++)if(t[e]instanceof h.Slider){this.titanHealthBar=t[e];break}this.spineContainer.add(this.game.prodigy.create.nameFont(this.spineContainer,-25,-265,this.game.prodigy.gameContainer.Localizer.getText("TITAN_HEARTS")))}if(p.Util.isValid(this.game.prodigy.titansNetworkHandler.titan.health)){var i=this.titanAsset.maxHealth,a=this.game.prodigy.titansNetworkHandler.titan.health/i;a<1&&(a=Math.min(Math.max(a,.04),.96)),this.titanHealthBar.setPercentComplete(a)}else this.titanHealthBar.setPercentComplete(0)},e.prototype.setupCollisionBlock=function(t,e){this.collisionBlock=t.add(this.game.prodigy.create.sprite(-.5*t.width,-t.height,"atlas-18","empty")),this.collisionBlock.width=t.width,this.collisionBlock.height=t.height,this.collisionBlock.inputEnabled=!0,this.collisionBlock.events.onInputDown.add(e)},e.prototype.onSignClicked=function(){this.game.prodigy.open.titanProgress(!1)},e.prototype.onCatapultClick=function(){this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:"Titan-Member-Bonus",name:"Titan-Catapult-Clicked"}),this.game.prodigy.player.hasMembership()?this.moveToCatapult():this.game.prodigy.open.membershipInfo(null,null,null,!1,"titanCatapult")},e.prototype.onShootCatapult=function(){this.catapultQueue++,this.isCatapultAnimating||this.shootCatapult()},e.prototype.shootCatapult=function(){var t=this;if(this.catapultQueue>0){this.catapultQueue--,this.isCatapultAnimating=!0,this.catapultSpine.setToSetupPose(),this.catapultSpine.setAnimationByName(0,"shoot",!1),this.cannonBall.x=this.cannonBallStartPos.x,this.cannonBall.y=this.cannonBallStartPos.y,this.catapultTweenX.start(),this.catapultTweenY.start();var e=this.game.add.tween(this);e.to(null,300),e.onComplete.add(function(){t.game.prodigy.audio.playSFX(27,"launch")}),e.start()}},e.prototype.playImpact=function(){var t=this;this.impactContainer.visible=!0,this.impactSpine.setToSetupPose(),this.impactSpine.setAnimationByName(0,"animation",!1),this.impactSpine.onComplete.addOnce(function(){t.isCatapultAnimating=!1,t.shootCatapult()}),this.game.prodigy.audio.playSFX(28,"hit"),this.game.prodigy.effects.shake(0,300,10,"v"),this.titanSpine.setAnimationByName(0,"attack",!1),this.titanSpine.onComplete.addOnce(function(){t.titanSpine.setAnimationByName(0,"idle",!0)})},e.prototype.onTitanClicked=function(){this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:"Titan-Member-Bonus",name:"Titan-Clicked"}),this.moveToTitan()},e.prototype.moveToTitan=function(){var t=this;this.screen.path.findPath(this.screen.user.x,this.screen.user.y,this.titanMapData.titan.x-300,this.titanMapData.titan.y,function(e){p.Util.isValid(e)&&t.screen.user.setPath(e,t.callNetworkToStartBattle.bind(t))})},e.prototype.moveToCatapult=function(){var t=this;this.screen.path.findPath(this.screen.user.x,this.screen.user.y,this.titanMapData.catapult.x+110,this.titanMapData.catapult.y,function(e){p.Util.isValid(e)&&t.screen.user.setPath(e,t.startCatapultBattle.bind(t))})},e.prototype.titanDeadKick=function(){var t=this.game.prodigy.gameContainer.Localizer;this.game.prodigy.open.message(t.getText("TITAN_DEFEATED_MESSAGE"),this.titanDeadTeleport.bind(this),null,t.getText("TITAN_DEFEATED_TITLE"))},e.prototype.titanDeadTeleport=function(){this.game.prodigy.world.teleport("lamplight-B3")},e.prototype.callNetworkToStartBattle=function(){this.game.prodigy.titansNetworkHandler.getTitan(this.game.prodigy.titansNetworkHandler.titan.id)},e.prototype.startCatapultBattle=function(){this.tryTitanBattle()?(this.catapultBattle=!0,this.callNetworkToStartBattle()):this.game.prodigy.open.message(this.game.prodigy.gameContainer.Localizer.getText("TITAN_LEVEL_LOCKED",this.minLevel))},e.prototype.startTitanBattle=function(){var t=this;if(this.tryTitanBattle())if(this.game.prodigy.titansNetworkHandler.isTitanAlive()){this.game.prodigy.network.sendBattleStartTypeEvent("TitanBattle");var e=[{ID:11,type:"currency"}];this.catapultBattle&&e.push({ID:11,type:"currency"}),this.zone.getBattle(this,this.game.prodigy.gameContainer.Localizer.getText("COMBAT_TITAN_BATTLE"),{boss:{level:this.game.prodigy.player.kennel.getAvgTeamLv(),element:this.titanAsset.element,attacks:this.titanAsset.spellList,name:this.game.prodigy.gameContainer.Localizer.getText("NPC_NAME_TITAN_BARRIER"),starBonus:0,tag:"titan",showHP:!0,maxHP:this.getTitanHP(),catapult:this.catapultBattle,ID:this.game.prodigy.titansNetworkHandler.titan.assetID},drops:e,difficulty:this.titanAsset.difficulty},this.endBattle.bind(this,this.game,!0),this.endBattle.bind(this,this.game,!1))()}else this.titanDeadKick();else{var i=this.game.prodigy.event.create();i.enableInput(!1),i.function(function(){t.titanSpine.setAnimationByName(0,"attack",!1),t.titanSpine.onComplete.addOnce(function(){t.titanSpine.setAnimationByName(0,"idle",!0)});var e=t.screen.user;t.game.add.tween(e.position).to({x:t.titanMapData.entry.x},300,Phaser.Easing.Quadratic.Out,!0,800),t.game.prodigy.effects.shake(600,600,20,"v")}),i.delay(1500),i.function(function(){t.game.prodigy.open.message(t.game.prodigy.gameContainer.Localizer.getText("TITAN_LEVEL_LOCKED",t.minLevel))}),i.enableInput(!0),i.start()}},e.prototype.endBattle=function(t,e){this.finishedBattle=!0,this.catapultBattle?(e||(this.catapultBattle=!1),t.prodigy.world.teleport(this.titanMapData.map,this.titanMapData.catapult.x+110,this.titanMapData.catapult.y)):t.prodigy.world.teleport(this.titanMapData.map,this.titanMapData.entry.x,this.titanMapData.entry.y)},e.prototype.getTitanHP=function(){var t=this.game.prodigy.player.kennel.getAvgTeamLv()+1;return l.Creature.getHeartsFromCurve("A",1,Math.max(50,Math.min(100,t)))},e.prototype.tryTitanBattle=function(){for(var t=this.game.prodigy.player,e=[{lanes:[2,3],minLevel:20},{lanes:[4,5],minLevel:30},{lanes:[6,7],minLevel:40}],i=0;i<e.length;i++)if(p.Util.inTestGroups(t,e[i].lanes,1e3,10)&&t.getLevel()<e[i].minLevel)return this.minLevel=e[i].minLevel,!1;return!0},e}(i(7).Map);e.TitanMap=u},function(t){t.exports={ACCOUNT_LOCATION_TITLE_CANADA:"[canada] Canada",ACCOUNT_LOCATION_ONTARIO:"ontario",ACCOUNT_LOCATION_TITLE_USA:"[us] USA",ACCOUNT_LOCATION_COLORADO:"colorado",ACCOUNT_LOCATION_NEW_YORK:"new york",ACCOUNT_LOCATION_TENNESSEE:"tennessee",ACCOUNT_LOCATION_VIRGINIA:"virginia",ACCOUNT_LOCATION_FLORIDA:"florida",ACCOUNT_LOCATION_TEXAS:"texas",ACCOUNT_LOCATION_TITLE_OTHER:"Other",ACCOUNT_LOCATION_ENGLAND:"england",ACCOUNT_LOCATION_AUSTRALIA:"australia",ACCOUNT_LOCATION_INDIA:"india",ACCOUNT_LOCATION_OTHER:"other",ACCOUNT_CREATE_PRIVACY_POLICY:"+Privacy Policy",ACCOUNT_CREATE_USERNAME:"username:",ACCOUNT_CREATE_PASSWORD:"password:",SURVEY_YES:"Yes.",SURVEY_NO:"No.",SURVEY_YES_EXCLAMATION:"Yes!",SURVEY_WIZARD_QUESTION:"How many characters or wizards do you have?",SURVEY_MEMBERSHIP_ANSWER_1:"1",SURVEY_MEMBERSHIP_ANSWER_2:"2",SURVEY_MEMBERSHIP_ANSWER_3:"3",SURVEY_MEMBERSHIP_ANSWER_MORE:"More than 3",BUTTON_NEXT:"next",BUTTON_NEXT_CAPITAL:"Next",BUTTON_BACK:"back",BUTTON_CLOSE:"close",BUTTON_CANCEL:"cancel",BUTTON_CANCEL_UPPERCASE:"CANCEL",BUTTON_YES:"yes",BUTTON_YES_UPPERCASE:"YES",BUTTON_NO:"no",BUTTON_NO_UPPERCASE:"NO",BUTTON_OKAY_EXCLAMATION:"okay!",BUTTON_OKAY:"okay",BUTTON_OK_EXCLAMATION:"ok!",BUTTON_OK_UPPERCASE:"OK",BUTTON_OKAY_UPPERCASE:"OKAY",BUTTON_OKAY_CAPITAL:"Okay",BUTTON_APPLY:"apply",BUTTON_CLICK_HERE:"Click here!",BUTTON_GO_BACK:"GO BACK",MINI_GAME_BUTTON_START:"Start!",MINI_GAME_BUTTON_HOW_TO:"How to Play",MINI_GAME_BUTTON_CANCEL:"Cancel",MINI_GAME_NOT_ENOUGH_GOLD:"Uh oh! You don't have enough gold!",DANCE_DANCE_START:"DANCE!",DANCE_DANCE_READY:"READY?",DANCE_DANCE_SPEED_UP:"Speed Up!",DANCE_DANCE_SUCCESS:"Dance Complete!",DANCE_DANCE_FAILED:"Dance Failed",DANCE_DANCE_INSTRUCTIONS_0:"This game is all about showing your moves and leveling up your TEK-Y4!",DANCE_DANCE_INSTRUCTIONS_1:"When a dance move is shown up top, select the matching dance card below before the timer runs out.",DANCE_DANCE_INSTRUCTIONS_2:"But look out! The timer speeds up over time! For each correct dance move, you earn gears to level up!",DANCE_DANCE_UH_OH:"Uh oh",DANCE_DANCE_NEW_HIGH_SCORE:"Looks like we have a new HIGH SCORE!",DANCE_DANCE_EARNED_GEARS:"Great moves! Let's see how many gears you earned!",DANCE_DANCE_LOWER_DIFFICULTY:"Oh dear...you got too many poses wrong. Perhaps try again on a lower difficulty?",DANCE_DANCE_TRY_AGAIN:"Oh dear...you got too many poses wrong. Try again another time!",DANCE_DANCE_LEVEL_UP_UNDER_5:"You leveled up your TEK-Y4! Now he can try the level {0} challenge and earn even more gears!",DANCE_DANCE_LEVEL_UP_UNDER_10:"You leveled up your TEK-Y4! Get him to level 10, and there will be a fantastic reward!",DANCE_DANCE_LEVEL_UP_MAX:"You leveled up your TEK-Y4 to the maximum level!",DANCE_DANCE_REWARD:"I almost forgot...here's your reward!",DANCE_DANCE_TRY_NEW_DIFFICULTY:"Good job! Level up your TEK-Y4 to try new difficulties, get more gear and cool rewards!",DANCE_DANCE_MAX_LEVEL:"Your TEK-Y4 is at the highest level! Try again to beat your friends' high scores!",DANCE_DANCE_GET_ROBOT_0:"Welcome to the Dance Stage! Ready to show everyone what your TEK-Y4 robot can do?",DANCE_DANCE_GET_ROBOT_1:"OH! You don't have a TEK-Y4? Well now, only the TEK-Y4 dancing robot can use the stage...",DANCE_DANCE_GET_ROBOT_2:"Here, you can have this one!",DANCE_DANCE_GET_ROBOT_3:"It's just a little TEK-Y4, so it hasn't learned how to dance yet. It'll be your job to teach it some moves!",DANCE_DANCE_BUTTON_GO:"GO!",DANCE_DANCE_BUTTON_BACK:"Back",DANCE_DANCE_READY_TO_START:"Ready to start robo-dancing? \n\nIt will cost you [gold] 200.",DANCE_DANCE_BEST_SCORE:"my best ",DANCE_DANCE_CHOOSE_DIFFICULTY:"Choose Difficulty",DANCE_DANCE_HIGHER_LEVEL:"Higher levels = more gears!",DANCE_DANCE_MESSAGE_LEVEL_BODY:"Your TEK-Y4 needs to be a higher level! Try a lower difficulty to earn gears and level up!",DYNO_DIG_START:"START DIGGING!",DYNO_DIG_TIMES_UP:"TIME'S UP!",DYNO_DIG_INSTRUCTIONS_0:"This game is all about digging up fossils!",DYNO_DIG_INSTRUCTIONS_1:"To find fossils, just click around the dig site to start digging.",DYNO_DIG_INSTRUCTIONS_2:"Your shovel will tell you how close to the fossil you are! \nCold means you're far away. \nHot means you're close!",DYNO_DIG_INSTRUCTIONS_3:"When you find something, the shovel button will pop up. Keep clicking it to dig up your new find!",DYNO_DIG_INSTRUCTIONS_4:"Once you dig it up, you can start looking for the next item!",DYNO_DIG_INSTRUCTIONS_5:"You have 90 seconds to dig up as many fossils as you can.",DYNO_DIG_EXTEND_TIME:"Ponduberous! Since you got so many items, I'll give you another 15 seconds!",DYNO_DIG_TIMES_UP_REWARD:"Time's up! Now let's see what items you dug up!",DYNO_DIG_TIMES_UP_TRY_AGAIN:"Time's up! Come back to try again sometime!",DYNO_DIG_FOUND_FOSSIL:"Looks like you got a fossil! Be sure to visit the museum to see your progress - maybe you completed a skeleton!",DYNO_DIG_START_NO_SHOVEL:"You want to start digging? First you'll need a shovel!",DYNO_DIG_START_NO_MORE_FOSSILS:"The museum is full, so we don't need any fossils, but do you want to dig anyways? \nIt will cost you [gold] 200",DYNO_DIG_READY_TO_START:"Ready to start digging for fossils? \n\nIt will cost you [gold] 300.",DYNO_DIG_DISTANCE_DIG:"DIG DIG DIG!",DYNO_DIG_DISTANCE_HOT:"Hot!",DYNO_DIG_DISTANCE_WARM:"Warm...",DYNO_DIG_DISTANCE_COLD:"Cold",DYNO_DIG_DISTANCE_ICE_COLD:"Ice cold!",DYNO_DIG_TITLE:"Dyno Dig",DYNO_DIG_ITEMS_RECOVERED:"Items recovered : {0}",DYNO_DIG_FOUND_ITEM:"YOU FOUND SOMETHING!",BOOST_MENU_BUTTON_NONE:"none",BOOST_MENU_TITLE:"Choose Your Boost!",BOOST_DESCRIPTION_MORE_GEARS:"More gears",BOOST_DESCRIPTION_SLOW_TIME:"Slow time",BOOST_DESCRIPTION_MULTIPLIER:"Multiplier",BOOST_DESCRIPTION_MORE_FOSSILS:"More fossils!",BOOST_DESCRIPTION_WALK_FASTER:"Walk faster!",BOOST_DESCRIPTION_DIG_FASTER:"Dig faster!",CHOOSE_PET_BUTTON:"Choose {0}",COLISEUM_BUTTON_CHALLENGE:"challenge!",COLISEUM_PROMPT_CHALLENGE:"Do you want to challenge {0}?",COLISEUM_REWARD:"Reward",COLISEUM_PROMPT_REQUIRE_LEVEL:"You must be at least level {0} to challenge {1}.",COLISEUM_PROMPT_REQUIRE_DEFEAT_PLURAL:"You must defeat the previous wizards to challenge {0}.",COLISEUM_PROMPT_REQUIRE_DEFEAT_SINGLE:"You must defeat the previous wizard to challenge {0}.",COLISEUM_PROMPT_REQUIRE_LEVEL_DEFEAT_PLURAL:"You must be at least level {0} and you must defeat the previous wizards to challenge {1}.",COLISEUM_PROMPT_REQUIRE_LEVEL_DEFEAT_SINGLE:"You must be at least level {0} and you must defeat the previous wizard to challenge {1}.",COLISEUM_OPPONENT_NEW_GIRL_TITLE:"The New Girl",COLISEUM_OPPONENT_NEW_GIRL_NAME:"Gina",COLISEUM_OPPONENT_NEW_GIRL_DESCRIPTION:"Gina arrived at the Academy a few weeks ago. She doesn't know many spells, but she can't wait to test them out on new challengers.",COLISEUM_OPPONENT_COPYCAT_TITLE:"The Copycat",COLISEUM_OPPONENT_COPYCAT_NAME:"Cameron",COLISEUM_OPPONENT_COPYCAT_DESCRIPTION:"When Cameron first came to the Academy, he challenged Crios and was beaten by his powerful fire spells. Now, Cameron has chosen fire as his new element.",COLISEUM_OPPONENT_VETERAN_TITLE:"The Veteran Wizard",COLISEUM_OPPONENT_VETERAN_NAME:"Mila",COLISEUM_OPPONENT_VETERAN_DESCRIPTION:"Mila didn't get her outfit from the Academy... in fact, she came here dressed like this. She's been casting spells for years, and uses all of them to defeat challengers.",COLISEUM_OPPONENT_NAMELESS_TITLE:"The Nameless",COLISEUM_OPPONENT_NAMELESS_NAME:"Benjamyn",COLISEUM_OPPONENT_NAMELESS_DESCRIPTION:"There are plenty of Bens at the Academy, but only one Benjamyn. Most students say his name is REALLY spelled 'Benjamin' and think he just changed it to be different. Interesting fact: It's really spelled Binjumun.",COLISEUM_OPPONENT_SWEETHEART_TITLE:"The Sweetheart",COLISEUM_OPPONENT_SWEETHEART_NAME:"Fuchsia",COLISEUM_OPPONENT_SWEETHEART_DESCRIPTION:"Pink is Fuchsia's favorite color, which is obvious to anyone who sees her. She doesn't know many spells, mostly because she spends too much time with her pet Peppermint.",COLISEUM_OPPONENT_LOUDMOUTH_TITLE:"The Loudmouth",COLISEUM_OPPONENT_LOUDMOUTH_NAME:"Bannard",COLISEUM_OPPONENT_LOUDMOUTH_DESCRIPTION:"Most students avoid Bannard, but not because he's too tough. In fact, he's a pretty normal student, except for the fact that he talks really loud... in fact, students can hear him coming from a mile away.",COLISEUM_OPPONENT_METALHEAD_TITLE:"The Metalhead",COLISEUM_OPPONENT_METALHEAD_NAME:"Leena",COLISEUM_OPPONENT_METALHEAD_DESCRIPTION:"Leena was raised in a small mining town in the mountains of the northern regions. Her appreciation of the rare rocks and ores that come from the planet have earned her her nickname, but it isn't earth spells that she's been practicing...",COLISEUM_OPPONENT_ADVENTURER_TITLE:"The Adventurer",COLISEUM_OPPONENT_ADVENTURER_NAME:"Finneas",COLISEUM_OPPONENT_ADVENTURER_DESCRIPTION:"Finn has a wild thirst for adventure, travel, and new challenges. He is a gifted student, but many teachers wish he would spend more time in the classroom and less out exploring the wilderness.",COLISEUM_OPPONENT_ENIGMA_TITLE:"The Enigma",COLISEUM_OPPONENT_ENIGMA_NAME:"Djinna",COLISEUM_OPPONENT_ENIGMA_DESCRIPTION:"One of the stranger students at the Academy, Djinna comes and goes as she pleases, often disappearing for days at a time. There is a rumor going around that she's not a student at all, but a spirit who watches over the Academy.",COLISEUM_OPPONENT_FOREST_SPRITE_TITLE:"The Forest Sprite",COLISEUM_OPPONENT_FOREST_SPRITE_NAME:"Jess",COLISEUM_OPPONENT_FOREST_SPRITE_DESCRIPTION:"Jess loves nature and everything about it. His respect for nature is second only to his twin sister, who taught him all she knows. He will accept any challenge to prove himself worthy of her teachings.",COLISEUM_OPPONENT_FOREST_GUARDIAN_TITLE:"The Forest Guardian",COLISEUM_OPPONENT_FOREST_GUARDIAN_NAME:"Flora",COLISEUM_OPPONENT_FOREST_GUARDIAN_DESCRIPTION:"The forests of the Academy are full of life, and Flora loves being a part of it. She spends her time in the forest, using earth spells to rejuvenate the plant life. Every once in a while, she'll return to the Academy, looking for new challengers.",COLISEUM_OPPONENT_CAROLER_TITLE:"The Caroler",COLISEUM_OPPONENT_CAROLER_NAME:"Nick",COLISEUM_OPPONENT_CAROLER_DESCRIPTION:"A lot of students at the Academy like the holiday season, but no one loves it as much as Nick. Nick sings festive carols all year long, even in the middle of July.",COLISEUM_OPPONENT_PET_ENTHUSIAST_TITLE:"The Pet Enthusiast",COLISEUM_OPPONENT_PET_ENTHUSIAST_NAME:"Lillian",COLISEUM_OPPONENT_PET_ENTHUSIAST_DESCRIPTION:"Lillian knows everything there is to know about pets, from their favorite activity to their favorite flavor of yogurt. She hopes to one day befriend every kind of pet and earn the title of 'Pet Master'.",COLISEUM_OPPONENT_BEASTMASTER_TITLE:"The Beastmaster",COLISEUM_OPPONENT_BEASTMASTER_NAME:"Korathius",COLISEUM_OPPONENT_BEASTMASTER_DESCRIPTION:"It is not real fur that Korathius wears, though his outfit correctly symbolizes his power and respect for all beasts. He never enters combat without a pet, though he instead refers to them as his 'brothers'.",COLISEUM_OPPONENT_TIMED_TRAVELLER_TITLE:"The Timed Traveller",COLISEUM_OPPONENT_TIMED_TRAVELLER_NAME:"Jen",COLISEUM_OPPONENT_TIMED_TRAVELLER_DESCRIPTION:"Many students dream of travelling the world, and Jen is no different. What separates her from the other students is that she's actually done it, in only 79 days!",COLISEUM_OPPONENT_CURIOUS_ONE_TITLE:"The Curious One",COLISEUM_OPPONENT_CURIOUS_ONE_NAME:"George",COLISEUM_OPPONENT_CURIOUS_ONE_DESCRIPTION:"George has a blooming curiosity for anything and everything. He loves playing with gadgets and gizmos, and often tries to invent his own... with varying degrees of success.",COLISEUM_OPPONENT_ICE_QUEEN_TITLE:"The Ice Queen",COLISEUM_OPPONENT_ICE_QUEEN_NAME:"Aurora",COLISEUM_OPPONENT_ICE_QUEEN_DESCRIPTION:"Students come to the Academy by many means, but Aurora's tale takes the cake. She arrived at the Academy floating on an iceberg, telling of her long journey across the sea. True or not, there is truth in her power over the spells of ice.",COLISEUM_OPPONENT_EMERALD_KNIGHT_TITLE:"The Emerald Knight",COLISEUM_OPPONENT_EMERALD_KNIGHT_NAME:"Ziang",COLISEUM_OPPONENT_EMERALD_KNIGHT_DESCRIPTION:"One night, Ziang disappeared into the mountains alone. For days, students could hear the sounds of battle, and a green glow filled the sky. He returned wearing a mysterious emerald armor, which he claims he took from a Dragon.",COLISEUM_OPPONENT_WELL_ROUNDED_TITLE:"The Well Rounded",COLISEUM_OPPONENT_WELL_ROUNDED_NAME:"Nova",COLISEUM_OPPONENT_WELL_ROUNDED_DESCRIPTION:"Few students stand out the way Nova does. She is friendly, smart and generally fun to be around. She practices hard, and helps others when they ask. She'll accept your challenge, of course, and she'll even shake your hand when she beats you.",COLISEUM_OPPONENT_PRODIGY_TITLE:"The Prodigy",COLISEUM_OPPONENT_PRODIGY_NAME:"Crios",COLISEUM_OPPONENT_PRODIGY_DESCRIPTION:"Crios is by far the most gifted student the Academy has ever seen. He has never lost a duel, and at least 20 students a year leave because of him. And now he challenges you.",EMAIL_PROMPT_LATER:"do later",EMAIL_PROMPT_SUBMIT:"submit!",EMAIL_PROMPT_TITLE:"Parent Email Link!",EMAIL_PROMPT_ERROR:"Oops, that didn't work. Would you like to try a different email address?",EMAIL_PROMPT_GET_GOLD:"Enter your parent or guardian's email below to link your account to it, and get 500 gold!",EMAIL_PROMPT_GET_APPLES:"Enter your parent or guardian's email below to link your account to it, and get 4 apples!",EMAIL_PROMPT_MESSAGE_TITLE:"Link Successful",EMAIL_PROMPT_MESSAGE_BODY:"Great job! Now ask your parent or guardian to check their email for a message from Prodigy!",EMAIL_PROMPT_FAIL_MESSAGE_BODY:"Looks like we weren't able to link your account to your parent or guardian's email.\n\nWould you like to retry submitting it?",FRIENDS_LIST_BUTTON_REQUESTS:"friend requests",FRIENDS_LIST_SENT_MESSAGE_TITLE:"Friend Request Sent",FRIENDS_LIST_SENT_MESSAGE_BODY:"You have sent this player a request to become friends!",FRIENDS_LIST_CANCEL_MESSAGE_TITLE:"Friend Request Cancelled",FRIENDS_LIST_CANCEL_MESSAGE_BODY:"You have cancelled your friend request with this player.",FRIENDS_LIST_FULL_MESSAGE_BODY:"You can't add any more friends because your friends list is full!",FRIENDS_LIST_ERROR_MESSAGE_BODY:"Oops! Sorry, we cannot show your Friends List right now. We are working on it. Please try again later.",GOT_ITEM_YOU_GOT_SOMETHING:"You got something!",GOT_ITEM_YOU_GOT_PET:"You got a new pet!",GOT_ITEM_YOU_GOT_FURNITURE:"You got furniture for your house!",GOT_ITEM_MOVED_HOUSE:"You've moved to a new house! I'll clean up all your furniture for you.",GOT_ITEM_BOUNTY_POINTS:"You earned bounty points!",GOT_ITEM_GOLD:"You got gold!",GOT_ITEM_SPELL:"You learned a new spell!",GOT_ITEM_GENERIC:"Wow! A new {0}. Would you like to put it on?",GOT_ITEM_BOOTS:"Wow! A new pair of {0}. Would you like to put it on?",GOT_ITEM_FOLLOW:"Wow! A new buddy! Would you like them to follow you?",GOT_ITEM_GIFT_BOX:"You got a Conjure Cube!",GOT_ITEM_LOOK:"You got a new look!",GOT_ITEM_OTHER:"You got an item!",HOUSE_BUTTON_VISIT:"Visit",ITEM_BUTTON_HIDE:"hide",ITEM_BUTTON_REMOVE:"remove",ITEM_BUTTON_SHOW:"show",ITEM_BUTTON_WEAR:"wear",ITEM_BUTTON_USE:"use",ITEM_BUTTON_BUY:"Buy",LEADER_PROMPT_CHECK_IT_OUT:"check it out!",LEADER_PROMPT_LOADING:"Loading...",LEADER_PROMPT_HEY_THERE:"Hey There!",LEADER_PROMPT_PLAY_HOME:"You can play prodigy at home!\n\nJust go to prodigygame.com and click PLAY!",MEMBER_PROMPT_BUY_NOW:"buy now!",MEMBER_PROMPT_REWARD_GOLD:"Here's your reward of 2000 gold!",MEMBER_PROMPT_JOIN_GOLD:"Join now and get 2000 GOLD!",MEMBER_PROMPT_BECOME_MEMBER:"Become a Member Today!",MEMBER_PROMPT_MEMBERSHIP:"You Have a Membership!",NAME_CHANGE_BUTTON_DONE:"I'm Done!",PETS_BUTTON_SET_FREE:"Set Free",POUCH_BUTTON_SEARCH:"search",QUESTS_BUTTON_START_QUEST:"Start Quest",SERVERS_BUTTON_PLAY_OFFLINE:"play offline",SERVERS_BUTTON_MORE_WORLDS:"more worlds",SERVERS_BUTTON_MY_WORLDS:"my worlds",SERVERS_BUTTON_BACK_TO_WORLDS:"back to worlds",SURVEY_BUTTON_DONE:"Done!",SYSTEM_BUTTON_SMALL_SCREEN:"Small Screen",SYSTEM_BUTTON_MEDIUM_SCREEN:"Medium Screen",SYSTEM_BUTTON_LARGE_SCREEN:"Large Screen",CHARACTER_SELECT_UPDATE:"update",CHARACTER_SELECT_LEARN:"learn more!",CHARACTER_SELECT_NEW_TEACHER:"New Teacher?",CHARACTER_SELECT_ADD_CHARACTER:"Click the button below to add your character to your new class!",CHARACTER_SELECT_TOYS:"Collect the new Prodigy Dragon toys! Click to learn more!",CHARACTER_SELECT_ENTER_CLASS:"Enter your teacher's class code",CHARACTER_SELECT_NO_CLASS_CODE:"Teachers: Don't have a class code? Click here!",CHARACTER_SELECT_NEW_CLASS_TITLE:"success!",CHARACTER_SELECT_NEW_CLASS_BODY:"You were added to a new class!",CHARACTER_SELECT_ERROR_INVALID_CLASS_CODE:"That class code is not valid",CHARACTER_SELECT_ERROR_NO_CLASS_CODE:"Please enter a class code",CHARACTER_CREATE_SKIN_COLOR:"Skin Color",CHARACTER_CREATE_EYE_COLOR:"Eye Color",CHARACTER_CREATE_HAIR_COLOR:"Hair Color",CHARACTER_CREATE_HAIR_STYLE:"Hair Style",STORE_PROMPT_WELCOME:"Welcome to {0}! \nWant to see what I have for sale?",STORE_PROMPT_WELCOME_API:"Welcome to my store! \nWant to see what I have for sale?",STORE_PROMPT_NEED_GOLD:"Need gold? Become a member and get",STORE_PROMPT_UNLOCK_ALL:"Want to unlock all items?",STORE_NAME_DYNO:"Sky-High Values",STORE_CLOSE_TIMER:"until the shop closes!",PARENT_LINK_POST_CLICK:"If you successfully linked a parent account, you will receive your rewards the next time you log in.",PARENT_LINK_SCHOOL_HOURS:"To receive these benefits, ask your parent to create a parent account and link it to yours.",PARENT_LINK_MOBILE_MESSAGE:"Visit www.prodigygame.com to link a parent account for great in-game rewards!",PARENT_LINK_SUCCESS_BODY:"Congratulations on linking a parent account! Please enjoy these great rewards!",PARENT_LINK_INFO_BODY:"Have your parent or guardian link their account to your player account and receive awesome stuff!",DIALOGUE_NOOT_0:"Look out below!",DIALOGUE_NOOT_1:"Ouch!\n...\nAnother happy landing!",DIALOGUE_NOOT_2:"I'm Noot, and I'll be your fairy guide! All new wizards need a guide, and I'm ALL YOURS!",DIALOGUE_NOOT_3:"This is a wizard battle! The goal is to reduce your opponent's hearts to zero by casting spells.",DIALOGUE_NOOT_4:"It's okay, try again! The scarecrow won't fight back, so practice away!",DIALOGUE_NOOT_5:"When you cast a spell, your opponent loses hearts! When they have no hearts left, you win!",DIALOGUE_NOOT_6:"Don't know how to walk, huh? Click the ground to walk, and follow me to the edge of the map!",DIALOGUE_NOOT_7:"I think you're ready for the next lesson...follow me!",DIALOGUE_NOOT_8:"To cast a spell, press the Attack button. Then choose your spell from the list!",DIALOGUE_NOOT_9:"Uh oh! Your hearts are low! At times like this, it might be best to change team members!",DIALOGUE_NOOT_10:"Just click the Switch button and choose another teammate.",DIALOGUE_NOOT_11:"Your opponent is getting tired! Now's the time to try to catch it!",DIALOGUE_NOOT_12:"Just click the Catch button when you want to catch a new pet!",DIALOGUE_NOOT_13:"All you have to do is click this button when the arrow is pointing to the green area! Give it a try!",DIALOGUE_NOOT_14:"I think it's time you got a pet of your own! Choose a pet to join you on your adventures!",DIALOGUE_NOOT_15:"This is your backpack! All the items you collect are stored here!",DIALOGUE_NOOT_16:"To equip an item, click on one of your items and select 'wear'.",DIALOGUE_NOOT_17:"To unequip an item, click on an equipped item here. Looking good!",DIALOGUE_NOOT_18:"Your map shows all the areas on the island! To travel to a new area, just click the area's icon!",DIALOGUE_NOOT_19:"This is where you select your battle team!",DIALOGUE_NOOT_20:"First click one of your pets in the boxes here...",DIALOGUE_NOOT_21:"Then, click an open slot on your team. You can do this to remove pets from your team too!",DIALOGUE_NOOT_22:"Oh no! You ran out of hearts... You must be exhausted!",DIALOGUE_NOOT_23:"Don't worry, I'll heal you and your pets! But I'll have to charge you [gold] 100...",DIALOGUE_NOOT_24:"Let's keep going! There's still so much to explore!",DIALOGUE_NOOT_25:"Uh oh! A monster is blocking our path!",DIALOGUE_NOOT_26:"The Academy is full of monsters, and monsters love a good wizard battle! Click on the monster to challenge it!",DIALOGUE_NOOT_27:"Pets are very useful - they level up and cast spells just like you! They can also help you in battle!",DIALOGUE_NOOT_28:"But before we go anywhere, you need to know how to defend yourself from monsters!",DIALOGUE_NOOT_29:"Oh no! It looks like a monster broke the bridge! How will we get across now?",DIALOGUE_NOOT_30:"Oh, nice! It looks like there are some pieces nearby...go collect them and we can rebuild the bridge ourselves!",DIALOGUE_NOOT_31:"Just click on the items around the map to pick them up...but watch out for monsters!",DIALOGUE_NOOT_32:"Great job! Now step back and watch this!",DIALOGUE_NOOT_33:"TADA! Not bad, huh? Okay, follow me!",DIALOGUE_NOOT_34:"In battle, monsters also cast spells. The first to defeat the other wins the battle!",DIALOGUE_NOOT_35:"Well, that's all I have left to teach you, but your wizard quest has only just begun!",DIALOGUE_NOOT_36:"Follow the path to the left to meet the first master wizard, Flora!",DIALOGUE_NOOT_37:"Don't you worry, though, because I'll always be here to help you out!",DIALOGUE_NOOT_38:"Do you want to heal you and your pets?",DIALOGUE_NOOT_39:"Oh dear! Try again!",DIALOGUE_NOOT_40:"Whoa, great job!",DIALOGUE_NOOT_41:"All finished! Let's head back, okay?",DIALOGUE_NOOT_42:"To become a true PRODIGY, you must travel all over the island and meet the master wizards!",DIALOGUE_NOOT_43:"Each master will teach you new spells, and award you a gemstone for completing their trials!",DIALOGUE_NOOT_44:"First, ask your teacher for your class code, and enter it here!",DIALOGUE_NOOT_45:"Now, enter your first and last name!",DIALOGUE_NOOT_46:"Create a password for your account! Remember to enter it twice!",DIALOGUE_NOOT_47:"Where do you live?",DIALOGUE_NOOT_48:"What grade are you in?",DIALOGUE_NOOT_49:"What does your wizard look like?",DIALOGUE_NOOT_50:"What is your wizard's name?",DIALOGUE_NOOT_51:"Here is your login information. Be sure to write these down!",DIALOGUE_NOOT_52:"Uh oh! Something went wrong...do you want to try again?",DIALOGUE_NOOT_53:"There's the healstone! When you're low on health, just click it to heal you and your pets!",DIALOGUE_NOOT_54:"There are the Sprikes! In battle, monsters drop items, and some items are used for quests!",DIALOGUE_NOOT_55:"Defeat the Sprikes until one of them drops some evidence for Flora!",DIALOGUE_NOOT_56:"Um...I think we found the TripTrop Trio!",DIALOGUE_NOOT_57:"Whew, that wasn't so bad...good job!",DIALOGUE_NOOT_58:"See that gate? It leads to the icy Shiverchill Mountains... but you need the Firefly Gem to open it!",DIALOGUE_NOOT_59:"WOW! That must be Gerald! I guess he's sleeping...thank goodness! We should probably tell Flora.",DIALOGUE_NOOT_60:"Oh no! A monster stole the flute! We'd better go tell Flora...",DIALOGUE_NOOT_61:"All we have to do is play this flute? Piece of cake, I used to take lessons!",DIALOGUE_NOOT_62:"Pftfbpfffppfbt!",DIALOGUE_NOOT_63:"What? I never said I was any good at it!",DIALOGUE_NOOT_64:"You opened the gate and got your first gemstone! Well done!",DIALOGUE_NOOT_65:"Next stop, Shiverchill Mountains!",DIALOGUE_NOOT_66:"Enter your parent's email if you're playing at home!",DIALOGUE_NOOT_67:"It looks like all the furnaces are out...no wonder it's so cold!",DIALOGUE_NOOT_68:"Whoa...what was that about?",DIALOGUE_NOOT_69:"We'd better tell Bok about this...",DIALOGUE_NOOT_70:"What the...this is NOT a shovel! We'd better go tell Bok.",DIALOGUE_NOOT_71:"Wait, those weren't the monsters?",DIALOGUE_NOOT_72:"Hmmm...well, you wouldn't happen to know where we could find some power crystals, would you?",DIALOGUE_NOOT_73:"Ummm...I think that's the REAL monster!",DIALOGUE_NOOT_74:"I'll bet that's the throne room, but it looks like the entrance is still frozen...",DIALOGUE_NOOT_75:"Look there! It's another power crystal...we can light another furnace!",DIALOGUE_NOOT_76:"Or maybe not? I guess the wyrm is still around...",DIALOGUE_NOOT_77:"Hey look! The furnace melted some of the ice!",DIALOGUE_NOOT_78:"You got your second gemstone and opened the second gate! Well done!",DIALOGUE_NOOT_79:"Next stop, Skywatch!",DIALOGUE_NOOT_80:"Welcome to Lamplight, the most magical town on the island and home of the Academy!",DIALOGUE_NOOT_81:"This is a great little town. I'm sure you'll find yourself right at home.",DIALOGUE_NOOT_82:"Let's go on a quick tour around town, shall we? There's so much to see!",DIALOGUE_NOOT_83:"Here is the Coliseum. Inside you can face the best wizards around, and earn great rewards!",DIALOGUE_NOOT_84:"But you should probably level up a bit first...some are pretty tricky! Let's keep moving!",DIALOGUE_NOOT_85:"This is the Shopping District - most of the shops in Lamplight are here.",DIALOGUE_NOOT_86:"Here is the Equipment Store. They sell wands, outfits and hats.",DIALOGUE_NOOT_87:"This is the Stylist Shop, where wizards can change their appearance! Let's continue, shall we?",DIALOGUE_NOOT_88:"This is the Town Square, the heart of Lamplight!",DIALOGUE_NOOT_89:"Many special events and festivals are hosted here...be sure to check in often!",DIALOGUE_NOOT_90:"All right! Only one more stop to go.",DIALOGUE_NOOT_91:"Down that way is the eastern gate, which leads to the Academy...",DIALOGUE_NOOT_92:"Unfortunately, it's been closed down ever since the Wardens disappeared... Maybe someday you'll get to see it for yourself!",DIALOGUE_NOOT_93:"Anyways, that's it for the tour! Come back often...the town changes all the time!",DIALOGUE_NOOT_94:"Great job! Be sure to talk to Boardy in Lamplight to get your reward.",DIALOGUE_NOOT_95:"That monster has the device! We'd better catch it!",DIALOGUE_NOOT_96:"HAHA! We've got you now!",DIALOGUE_NOOT_97:"Look, a note! It says that Broccolina is trimming the Bean-o-vator... Let's go find her.",DIALOGUE_NOOT_98:"What is THAT?!",DIALOGUE_NOOT_99:"Uh oh, those vines look too strong for our Vine Pruner. We should tell Benni and Broccolina about this!",DIALOGUE_NOOT_100:"We'd better help him out!",DIALOGUE_NOOT_101:"You got your third gemstone and opened the third gate! Well done!",DIALOGUE_NOOT_102:"Next stop, Bonfire Spire!",DIALOGUE_NOOT_103:"Uh, I think that's our cue to leave - fast!",DIALOGUE_NOOT_104:"Hey! Where do you think you're going!?",DIALOGUE_NOOT_105:"We get tricked a lot, don't we?",DIALOGUE_NOOT_106:"Sigh... Here we go again.",DIALOGUE_NOOT_107:"Well, actually, we didn't cook it.",DIALOGUE_NOOT_108:"Your Majesty, I present to you your new chef! Slurpy!",DIALOGUE_NOOT_109:"You got your fourth gemstone and opened the fourth gate! Well done!",DIALOGUE_NOOT_110:"Next stop, Barnacle Cove!",DIALOGUE_NOOT_111:"Let's head back, okay?",DIALOGUE_NOOT_112:"Oh no! Looks like we'll need to slip by Cebollini to get to the pot.",DIALOGUE_NOOT_113:"If you step into his circle of vision, he'll catch you and kick you out!",DIALOGUE_NOOT_114:"Hey, look there! There's a cauldron you can use to hide.",DIALOGUE_NOOT_115:"Press the button above your head to hide!",DIALOGUE_NOOT_116:"Walk around to take off the cauldron.",DIALOGUE_NOOT_117:"Now, enter your first name and last-name initial!",DIALOGUE_NOOT_118:"Hello?",DIALOGUE_NOOT_119:"Hey, listen!",DIALOGUE_NOOT_120:"C'mon, wake up sleepy head! You're going to be late for your first day of classes at the Academy!",DIALOGUE_NOOT_121:"Whoa! Hold up!",DIALOGUE_NOOT_122:"I haven't even introduced myself. The name's Noot. I help bring new students to the Academy on their first day of class!",DIALOGUE_NOOT_123:"Who might you be?",DIALOGUE_NOOT_124:"Nice to meet you!",DIALOGUE_NOOT_125:"Let's head over. Don't wanna be late on your first day!",DIALOGUE_NOOT_126:"Hey look, a monster! Monsters can be found everywhere, but they're pretty tame.",DIALOGUE_NOOT_127:"Uh...this one seems a bit grumpy. Looks like it wants to battle!",DIALOGUE_NOOT_128:"Since you're new at this, I'll shield you from spells for now!",DIALOGUE_NOOT_129:"Something really DID seem odd about that monster. Let's hurry up and get to the Academy.",DIALOGUE_NOOT_130:"By the way, if you're ever not sure what to do, just follow the magical guide hand I've created!",DIALOGUE_NOOT_131:"Click on the hand now!",DIALOGUE_NOOT_132:"Welcome to Lamplight Town! This place is just FULL of interesting people to meet and things to do!",DIALOGUE_NOOT_133:"Now, before we go further, you'll need to choose your very own pet!",DIALOGUE_NOOT_134:"Every wizard that studies at the Academy chooses a pet to train with.",DIALOGUE_NOOT_135:"When you train a pet, it becomes smarter and learns new spells, just like you!",DIALOGUE_NOOT_136:"Some pets even change to stronger forms if you train them enough!",DIALOGUE_NOOT_137:"Whoa, what has gotten into these pets?!",DIALOGUE_NOOT_138:"Looks like they've settled down, thank goodness! Choose which one you'd like to train!",DIALOGUE_NOOT_139:"This is the Town Square, the heart of Lamplight Town.",DIALOGUE_NOOT_140:"Let's keep heading to the Academy. We can come back later, and I'll give you the full tour.",DIALOGUE_NOOT_141:"Another monster that wants to battle us? We need to scare it away before it causes trouble around here.",DIALOGUE_NOOT_142:"Come oooon, we have to get going!",DIALOGUE_NOOT_143:"Whew! We MADE IT! Well, it's time for you to get to class.",DIALOGUE_NOOT_144:"I have to go help other wizards find their way here, AND find out what's going on with all the monsters nearby, but I'm sure I'll see you around!",DIALOGUE_NOOT_145:"Do you feel that?",DIALOGUE_NOOT_146:"I...can sense something. A presence I've not felt since...",DIALOGUE_NOOT_147:"What WAS that?! Whoa...I don't feel so good...",DIALOGUE_NOOT_148:"AND WHERE DID THE WARDEN KEYSTONES GO?!",DIALOGUE_NOOT_149:"Without the Warden Keystones on their pedestals...",DIALOGUE_NOOT_150:"Oh no! It's the Puppet Master! This IS NOT good!",DIALOGUE_NOOT_151:"The name's Noot, and this here is my pal.",DIALOGUE_NOOT_152:"With the help of the power of the Wardens, we're going to put a stop to the Order's evil plans, once and for all!",DIALOGUE_NOOT_153:"I think it's time for us to get outta here...",DIALOGUE_NOOT_154:"I have a little secret I was keeping from the Puppet Master: the Warden Keystones can't be destroyed!",DIALOGUE_NOOT_155:"All that blast did was scatter them around the island.",DIALOGUE_NOOT_156:"Once we collect them all, we should be able to defeat the Puppet Master!",DIALOGUE_NOOT_157:"The Puppet Master must be the one who cast the mind spells on the monsters...",DIALOGUE_NOOT_158:"But thanks to you, the town is safe once again!",DIALOGUE_NOOT_159:"I think you've earned your wizard name. What shall you be known as?",DIALOGUE_NOOT_160:"It's PERFECT!",DIALOGUE_NOOT_161:"Let's start the search for the Warden Keystones in Firefly Forest!",DIALOGUE_NOOT_162:"Here, take this map. It'll let you jump to places around the island.",DIALOGUE_NOOT_163:"One last thing. That shadow blast drained most of my magic, so I can't block spells for you anymore.",DIALOGUE_NOOT_164:"With the Wardens weakened, it's up to us to stop the evil Order of Influence and save the Academy!",DIALOGUE_NOOT_165:"Okay, follow me!",DIALOGUE_NOOT_166:"Uh oh, the quest you were working on has ended. Let's go talk to Swoopy and get another quest!",DIALOGUE_NOOT_167:"Hello! I'm Noot, pleasure to meet you.",DIALOGUE_NOOT_168:"Eve sent us. She said that the local people saw an ancient monster swimming around here.",DIALOGUE_NOOT_169:"Do you know anything about that?",DIALOGUE_NOOT_170:"Let's search the nearby areas Jelly Jim mentioned.",DIALOGUE_NOOT_171:"What IS this stuff? Oh no, I don't think we can go any further. Maybe Eve will know what to do.",DIALOGUE_NOOT_172:"Whoa... what is that tunnel in the sand from?! That does NOT look normal. And it's HUGE!",DIALOGUE_NOOT_173:"Let's go back and tell Eve about this right away!",DIALOGUE_NOOT_174:"Looks like the door's locked. Let's finish our tasks, then we can try to get it open later.",DIALOGUE_NOOT_175:"Let's go take that photo!",DIALOGUE_NOOT_176:"The door's locked. Let's let Eve know.",DIALOGUE_NOOT_177:"Are you playing from home or from school?",DIALOGUE_NOOT_178:"This wizard will become more powerful than you could possibly imagine!",DIALOGUE_NOOT_179:"Stopping a Titan won't be easy. It will be up to you and all the wizards in the world to bring it down by weakening it in Wizard Battles.",DIALOGUE_NOOT_180:"Select the Titan when you want to battle it.",DIALOGUE_NOOT_181:"In Titan battles, you first need to break through the Titan's barrier. Once its barrier breaks, it will lose some hearts.",DIALOGUE_NOOT_182:"Once this is done enough times by you and other wizards, it will be defeated!",DIALOGUE_NOOT_183:"You aren't alone in this fight. Get help from other wizards!",DIALOGUE_NOOT_184:"",DIALOGUE_NOOT_185:"",DIALOGUE_NOOT_186:"",DIALOGUE_NOOT_187:"",DIALOGUE_NOOT_188:"",DIALOGUE_NOOT_189:"",DIALOGUE_NOOT_190:"",DIALOGUE_NOOT_191:"Look at this stuff! Isn't it neat?!",DIALOGUE_NOOT_192:"Wow! You got some awesome stuff!",DIALOGUE_NOOT_193:"Wow! You got some cool stuff!",DIALOGUE_NOOT_194:"Wow! You got some neat stuff!",DIALOGUE_NOOT_195:"Whoa! That's some awesome stuff!",DIALOGUE_NOOT_196:"You just got some really cool stuff!",DIALOGUE_NOOT_197:"Isn't being a member awesome!?!",DIALOGUE_NOOT_198:"Choose which one you'd like to train!",DIALOGUE_NOOT_199:"Let's keep going!",DIALOGUE_FLORA_0:"Well hello there! The name's Flora - master wizard of Firefly Forest!",DIALOGUE_FLORA_1:"Complete my trials to learn earth spells. Complete them all to earn the Firefly Gem!",DIALOGUE_FLORA_2:"But first, I have an itty bitty favor to ask...",DIALOGUE_FLORA_3:"Can you go rescue my friend? He's been surrounded by monsters!",DIALOGUE_FLORA_4:"Quick question - what does every wizard need?",DIALOGUE_FLORA_5:"A wand, silly! I'm fresh out of wands, but I think there's a special one in a chest in the forest!",DIALOGUE_FLORA_6:"Or you can always buy one from the store!",DIALOGUE_FLORA_7:"Oh! You got one!",DIALOGUE_FLORA_8:"Challenge some Saplettes for your next trial!",DIALOGUE_FLORA_9:"After a few battles, your hearts get low and you need to heal.",DIALOGUE_FLORA_10:"And while you're there, challenge some Saplettes for your next trial!",DIALOGUE_FLORA_11:"To become a true Prodigy, you must learn spells! And the best way to learn new spells is by helping people!",DIALOGUE_FLORA_12:"Firefly Forest has a problem...vandals! Someone's been littering at the crossroads!",DIALOGUE_FLORA_13:"Do me a favor and help clean it up, okay?",DIALOGUE_FLORA_14:"The paper you picked up seems to be part of a note... but it's written in 'monster'.",DIALOGUE_FLORA_15:"Try bringing it to the traveller in the northern woods!",DIALOGUE_FLORA_16:"The note says 'don't tell Flora' \n...HEY! I'M FLORA!",DIALOGUE_FLORA_17:"So, those Sprikes are up to something secret, huh? Defeat a few until they drop some evidence!",DIALOGUE_FLORA_18:"Hmmm, this is a Mandrake... \nMandrakes are the best spies in the whole forest!",DIALOGUE_FLORA_19:"Collect more for me and bring them in for questioning...maybe they can tell us more!",DIALOGUE_FLORA_20:"Be sure to look around...they may be in more than one place!",DIALOGUE_FLORA_21:"According to the Mandrakes, the TripTrop Trio ordered the Sprikes to steal something from me.",DIALOGUE_FLORA_22:"This forest is mischievious! \n...and confusing!",DIALOGUE_FLORA_23:"Track down the TripTrop Trio, defeat them, and bring back what they stole!",DIALOGUE_FLORA_24:"So, they stole my flute? And they BROKE IT?! THE NERVE!",DIALOGUE_FLORA_25:"This can only mean one thing... \nCan you head into the forest to find my Golem, Gerald?",DIALOGUE_FLORA_26:"WHAT?! That boulder-brain is asleep again?!",DIALOGUE_FLORA_27:"Monsters lull Gerald to sleep all the time...I guess he's a bit loud when he walks around.",DIALOGUE_FLORA_28:"We can wake him up, but first we need to fix my broken flute!",DIALOGUE_FLORA_29:"Easy Peasy! Just bring it to the 'magic stump' in the woods!",DIALOGUE_FLORA_30:"WHAT?! It's been stolen again?!",DIALOGUE_FLORA_31:"That's the last straw! Now I'm REAL MAD, and nobody wants to mess with an angry forest fairy!",DIALOGUE_FLORA_32:"Go find that monster and bring back my flute! He could be anywhere!",DIALOGUE_FLORA_33:"Now that we have the flute, it's time for your final challenge!",DIALOGUE_FLORA_34:"Take this to Gerald and wake him up! Careful, though...he can get REAL grumpy!",DIALOGUE_FLORA_35:"Wow! You did it! As promised, here is the Firefly Gem!",DIALOGUE_FLORA_36:"You're ready to head into Shiverchill Mountains, where you'll meet your second master, Bok!",DIALOGUE_FLORA_37:"Just take the gem to the gate and open it!",DIALOGUE_FLORA_38:"Just follow the arrows!",DIALOGUE_FLORA_39:"Well done!",DIALOGUE_BOK_0:"Hahaha! Bok knew you could do it!",DIALOGUE_BOK_1:"Slip say it time you learn new spell. Bok agree - you the best!",DIALOGUE_BOK_2:"Hoot hoot!",DIALOGUE_BOK_3:"Welcome to Bok cave! New wizard seek gem, learn spells? You come to right place!",DIALOGUE_BOK_4:"Bok teach wizard, but first we have problem...IT FREEZING IN HERE!",DIALOGUE_BOK_5:"Need to check on furnaces, but room full of chilly monsters...",DIALOGUE_BOK_6:"But you wizard! Wizard strong! Head to furnace room...first door on right.",DIALOGUE_BOK_7:"Furnaces ALL broken? Bok use power crystal to light furnace, but last crystal stolen...",DIALOGUE_BOK_8:"What?! Bok tell Slip to hide crystal...it not Bok fault it stolen!",DIALOGUE_BOK_9:"Go to treasure room and find chilly monster that stole Bok crystal!",DIALOGUE_BOK_10:"Now that wizard have crystal, time to light furnace!",DIALOGUE_BOK_11:"Go to furnace room and light furnace. Bok counting on wizard!",DIALOGUE_BOK_12:"Wizard do good, but much of mountain still frozen. Need more crystals, Bok think.",DIALOGUE_BOK_13:"Crystals rare, but Bok used to find them in caves. Go explore caves, see what can find!",DIALOGUE_BOK_14:"You find miner? BOK NOT LIKE MINERS ONE BIT!",DIALOGUE_BOK_15:"Before miners, Bok king of mountain. Then miners come with scary wizard, chase Bok to this cave.",DIALOGUE_BOK_16:"Slip right...miners good at finding crystals. Okay, Bok help...take key to chest - shovel there.",DIALOGUE_BOK_17:"Wizard can find chest in mines...but be careful! Shovel prized possession, passed to Bok from dear mother.",DIALOGUE_BOK_18:"Wizard say shovel is spoon? That mean Bok been using real shovel as spoon for WEEKS!",DIALOGUE_BOK_19:"NO LAUGHING, SLIP!",DIALOGUE_BOK_20:"Now you have real shovel, go help miner and get crystal for Bok!",DIALOGUE_BOK_21:"All miner say is that power crystal in mines? BOK ALREADY KNOW THAT!",DIALOGUE_BOK_22:"Head into mines, and find that crystal!",DIALOGUE_BOK_23:"Giant ice wyrm? That must be what cause all these cavequakes...",DIALOGUE_BOK_24:"Well, it sound like you defeat it, so back to plan - head back into mines!",DIALOGUE_BOK_25:"What? Oh, Slip want you to defeat ghosties in mines first...",DIALOGUE_BOK_26:"Okay, no more delay! Head to mines, ghosties or not, and bring back power crystal!",DIALOGUE_BOK_27:"With two furnaces on, Bok throne room should be open, and Bok can be king of mountain again!",DIALOGUE_BOK_28:"But before I go, check throne room for Bok, make sure it safe.",DIALOGUE_BOK_29:"Throne room still frozen? And wyrm eat last power crystal? This not good...",DIALOGUE_BOK_30:"Okay, Bok have plan!",DIALOGUE_BOK_31:"BOK HAVE GOOD PLANS SOMETIMES! LOTS OF TIMES!",DIALOGUE_BOK_32:"Monster eat crystals, so wizard go collect lots of crystals!",DIALOGUE_BOK_33:"Lure monster, defeat, and get crystal! Off you go, hero wizard!",DIALOGUE_BOK_34:"You have crystals, now it time to face the ice wyrm...good luck!",DIALOGUE_BOK_35:"Slip wish you luck too!",DIALOGUE_BOK_36:"For this, wizard deserve the Shiverchill Gem!",DIALOGUE_BOK_37:"...But, Bok leave in throne room. As final test, go to throne room and pick up reward!",DIALOGUE_BOK_38:"Well, that all Bok have to teach! Now it time for wizard to face new journey!",DIALOGUE_BOK_39:"Bring gem to gate at top of mountain, open, and find Benni, the next master!",DIALOGUE_MERCHANT_0:"Boy, have I got some deals for you!",DIALOGUE_MERCHANT_1:"Oh dear...I'm in quite a pickle now!",DIALOGUE_MERCHANT_2:"Those monsters almost got away with my loot!!",DIALOGUE_MERCHANT_3:"What have we here? A note written by monsters, huh? Let me read it...",DIALOGUE_MERCHANT_4:"It says... \n'Big plans happening, don't tell Flora!'",DIALOGUE_MERCHANT_5:"Well it looks like it was written by a Sprike - strange little monsters, they are!",DIALOGUE_MERCHANT_6:"Well hello there, young one!",DIALOGUE_MERCHANT_7:"You there, help! The earthquake trapped me under some rubble!",DIALOGUE_MERCHANT_8:"Please find something to dig me out before the monster comes back!",DIALOGUE_MERCHANT_9:"Thank goodness you came before the monster returned!",DIALOGUE_MERCHANT_10:"Goodness no! I speak of the ice demon lurking in the mountains! Scary stuff, it is!",DIALOGUE_MERCHANT_11:"I was trying to escape with the other miners, but I got trapped here!",DIALOGUE_MERCHANT_12:"Power crystals, huh? There might be one or two left in the mines...",DIALOGUE_MERCHANT_13:"Thanks for all your hard work completing bounties. Here is your reward!",DIALOGUE_MERCHANT_14:"Do you want to open the Arena Rewards shop?",DIALOGUE_MERCHANT_15:"Are you ready to take part in the ARENA? Face the toughest wizards around the world and work your way to the top!",DIALOGUE_MERCHANT_16:"You cannot take part in the Arena in Offline Mode!",DIALOGUE_MERCHANT_17:"Do you want to open the Bounty Rewards shop?",DIALOGUE_MERCHANT_18:"Collect fireflies for me.",DIALOGUE_MERCHANT_19:"Your next reward is at 5.",DIALOGUE_MERCHANT_20:"Your next reward is at 10.",DIALOGUE_MERCHANT_21:"Your next reward is at 25.",DIALOGUE_MERCHANT_22:"Your next reward is at 50.",DIALOGUE_MERCHANT_23:"Your next reward is at 75.",DIALOGUE_MERCHANT_24:"Your next reward is at 99.",DIALOGUE_MERCHANT_25:"1 more to go!",DIALOGUE_MERCHANT_26:"Congrats, here is your reward!",DIALOGUE_MERCHANT_27:"Collect Ice Crystals for me.",DIALOGUE_MERCHANT_28:"A few of them should appear every day. Explore the forest to find them!",DIALOGUE_MERCHANT_29:"They are really tricky to catch while they are moving, so wait until they stop to rest.",DIALOGUE_MERCHANT_30:"A few frozen blocks of ice should appear every day. Explore the mountains to find them!",DIALOGUE_MERCHANT_31:"Once you have them, take them to any lit furnace to thaw them out.",DIALOGUE_MERCHANT_32:"If you happen to find any Ice Crystals, bring them to me for rewards.",DIALOGUE_MERCHANT_33:"Hold on! There is something else you can help me with.",DIALOGUE_MERCHANT_34:"Would you be able to collect fireflies for me? They appear every day. Explore the forest to find them!",DIALOGUE_MERCHANT_35:"If you don't mind, there is another task you can help me with.",DIALOGUE_MERCHANT_36:"That's all that I need. Thanks so much for your help!",DIALOGUE_MERCHANT_37:"Thank you so very much for taking care of those brutes! I was simply TERRIFIED.",DIALOGUE_MERCHANT_38:"Please take this wizard hat. It will help protect you on your travels!",DIALOGUE_MERCHANT_39:"South of here, a monster stole a wand from the magic shop! Defeat it, and you may keep the wand as your prize!",DIALOGUE_WINTERFEST_0:"Open the present to get your daily gift!",DIALOGUE_WINTERFEST_1:"You've already gotten your gift for today. Come back tomorrow.",DIALOGUE_BENNI_0:"You helped me out... Thanks, I guess.",DIALOGUE_BENNI_1:"Wow, what a champ!",DIALOGUE_BENNI_2:"We're lookin' at a COMPLETE shutdown here, and it's all because of your STUPID PLANTS!",DIALOGUE_BENNI_3:"At least they're smarter than YOU, bolt-head!",DIALOGUE_BENNI_4:"Um...hello?",DIALOGUE_BENNI_5:"Just do your JOB and trim those vines before GRAMPS finds out!",DIALOGUE_BENNI_6:"I WOULD if I COULD, squirt! The greenhouse is full of monsters again!",DIALOGUE_BENNI_7:"Let's head to that greenhouse and help them out...Maybe then they'll stop fighting!",DIALOGUE_BENNI_8:"Now you can get back to WORK!",DIALOGUE_BENNI_9:"I didn't see you there! The name's Benni, and this is my sister Broccolina!",DIALOGUE_BENNI_10:"This is SKYWATCH, home of the famous Grand Weather Factory! I take care of the machines that make the weather, and my sister takes care of the plants.",DIALOGUE_BENNI_11:"Since you're a wizard, we could sure use your help!",DIALOGUE_BENNI_12:"Head to my place and pick up my Weather O Meter! I need it to take some readings around Skywatch.",DIALOGUE_BENNI_13:"That monster chewed my Weather O Meter to BITS! Guess we'll have to do this the old-fashioned way!",DIALOGUE_BENNI_14:"I'll have to check the machines manually, but I'll need my sister first.",DIALOGUE_BENNI_15:"Check the greenhouse for me. She's always there murkin' around.",DIALOGUE_BENNI_16:"Well, now that we have your trimmers, you can fix up the trolley to the rest of Skywatch!",DIALOGUE_BENNI_17:"But...the monsters...",DIALOGUE_BENNI_18:"Quit being a baby, Broc! Okay wizard, time to help out again! First, trim the vines covering the trolley, then check on the Wind Machine for me, okay?",DIALOGUE_BENNI_19:"Oh no! Those nasty clouds have clogged up the machines AGAIN!",DIALOGUE_BENNI_20:"They seem to come back a lot... But don't worry, we just need to upgrade the trimmer...",DIALOGUE_BENNI_21:"Hmmm, not a bad idea. The parts are in the factory, but it's locked and gramps has hidden the key again.",DIALOGUE_BENNI_22:"Look for clues around Skywatch... They'll tell us where to find the key!",DIALOGUE_BENNI_23:"Ugh! Gramps hid it at the entrance of the factory! I KNEW it would be there!",DIALOGUE_BENNI_24:"He ALWAYS hides it in there...",DIALOGUE_BENNI_25:"Head to the factory and collect spare parts! The monsters there should have plenty!",DIALOGUE_BENNI_26:"Voila! You now have the power of the Vinecinerator 2000!",DIALOGUE_BENNI_27:"This should to the trick.",DIALOGUE_BENNI_28:"First stop, the Snow Machine! Go teach that cloud a lesson and clear those vines!",DIALOGUE_BENNI_29:"The Rain Machine is next...",DIALOGUE_BENNI_30:"Last up, the Wind Machine! You got this, wiz!",DIALOGUE_BENNI_31:"It's time for you to meet GRAMPS! Tell him about those nasty clouds!",DIALOGUE_BENNI_32:"He's the Cloudmaster General. He'll know what to do.",DIALOGUE_BENNI_33:"He sits around all day in the factory in that stupid massage chair...",DIALOGUE_BENNI_34:"Uh...you want the key...? Benni...?",DIALOGUE_BENNI_35:"See, we had the key, but, uh...we...uh...broke it.",DIALOGUE_BENNI_36:"I'm pretty sure the pieces are around here...somewhere...",DIALOGUE_BENNI_37:"So it seems gramps wants you to head to the Cumulus Room...strange, he ALWAYS sends wizards there...",DIALOGUE_BENNI_38:"He never lets US go in there...",DIALOGUE_BENNI_39:"Gramps, what are YOU doing out here?!",DIALOGUE_BENNI_40:"And when was the last time you took a bath...?",DIALOGUE_BENNI_41:"This wizard here is a TRUE hero! And the hero of Skywatch always gets a deserving reward!",DIALOGUE_BENNI_42:"It's time for our goodbyes, friend! Take that gem and head through the Cumulus Room to the gate.",DIALOGUE_BENNI_43:"Things are about to get REAL spicy for you!",DIALOGUE_BENNI_44:"Did you just make a JOKE, sis!?",DIALOGUE_BENNI_45:"Wow! Ya did it!",DIALOGUE_BENNI_46:"I'd say it's time for you to learn a new spell!",DIALOGUE_BROCCOLINA_0:"Oh, hi there. Benni wants my help again? Huh. Figures...",DIALOGUE_BROCCOLINA_1:"I'll meet you topside.",DIALOGUE_EUGENE_0:"You pesky robots! Leave me be!",DIALOGUE_EUGENE_1:"My now, a wizard, are ya? Pleasure to meetcha!",DIALOGUE_EUGENE_2:"The name is Eugene Gramps, otherwise known as the all-powerful Cloudmaster! Um...",DIALOGUE_EUGENE_3:"Cloudmaster GENERAL!",DIALOGUE_EUGENE_4:"So, I bet them clouds have my grandkids runnin' wild, huh?",DIALOGUE_EUGENE_5:"Every time those two scamps get arguin', I send out my clouds. Thing is, they never realize it's me what does it! Hehehehehe!",DIALOGUE_EUGENE_6:"Tell Benni to give you the Master Key... It's time for the finale of my little prank!",DIALOGUE_CEBOLLINI_0:"What is this!? Get out of here - I am creating art!",DIALOGUE_CEBOLLINI_1:"Yes, Madame, I live to cook!",DIALOGUE_CEBOLLINI_2:"But Madame... I assure you...",DIALOGUE_CEBOLLINI_3:"WHAT?! FIRED?! ME!? This is an outrage!",DIALOGUE_CEBOLLINI_4:"You have not heard the last of Chef Cebollini Carpaccio!",DIALOGUE_CEBOLLINI_5:"What do you think you are doing?!",DIALOGUE_CEBOLLINI_6:"Bringing a dish to my Queen!? Usurper! Fiend! This is MY job!",DIALOGUE_CEBOLLINI_7:"If I cannot feed the Queen, then SHE WILL NOT EAT!",DIALOGUE_CEBOLLINI_8:"What? How did you get over here? You are slime-less!",DIALOGUE_CEBOLLINI_9:"No matter! This dish will never see the light of day! En garde!",DIALOGUE_CEBOLLINI_10:"Always start battle with an appetizer!",DIALOGUE_CEBOLLINI_11:"Still hungry? Time for the main course!",DIALOGUE_CEBOLLINI_12:"There is always room for dessert!",DIALOGUE_CEBOLLINI_13:"I must admit, you have not just bested me in battle...but also in the kitchen. Your cooking, it is exquisite!",DIALOGUE_CEBOLLINI_14:"That dish of yours... I must have your recipe!",DIALOGUE_CEBOLLINI_15:"Then you must bring the chef to the Queen! She will demand such talent in her kitchen!",DIALOGUE_CEBOLLINI_16:"'Tis no joke, Madame. Here is but a taste of talent!",DIALOGUE_CEBOLLINI_17:"Ahem! I think what he is trying to say is that Slurpy wants to become my new apprentice in the Royal Kitchen.",DIALOGUE_CEBOLLINI_18:"Of course, I would need my job back...",DIALOGUE_CEBOLLINI_19:"But of course! Never in my life, Madame!",DIALOGUE_SLIME_QUEEN_0:"OOOOOOOH look at this! It smells divine, Cebollini, as always!",DIALOGUE_SLIME_QUEEN_1:"...",DIALOGUE_SLIME_QUEEN_2:"WHAT IS THIS, CEBOLLINI!? RAISINS?",DIALOGUE_SLIME_QUEEN_3:"You have broken the ROYAL RULE! NO RAISINS IN THE QUEEN'S DISHES!",DIALOGUE_SLIME_QUEEN_4:"You have left me no choice, Cebollini... You are FIRED!",DIALOGUE_SLIME_QUEEN_5:"What? This little slimeling? Is this a joke?",DIALOGUE_SLIME_QUEEN_6:"Cebollini?!",DIALOGUE_SLIME_QUEEN_7:"MMMMMMMMM! Why, Cebollini, this is even better than YOUR turnip stew!",DIALOGUE_SLIME_QUEEN_8:"It is decided, then. Slurpy, you will become the new Royal Chef!",DIALOGUE_SLIME_QUEEN_9:"Well, I... haven't eaten in hours and... as long as you don't break the ROYAL RULE again...",DIALOGUE_SLIME_QUEEN_10:"Guard! Inform this wizard that I will not be addressing their presence!",DIALOGUE_SLIME_GUARD_0:"Let the Royal Dinner commence!",DIALOGUE_SLIME_GUARD_1:"You want to cook a meal for the Queen? Not a bad idea.",DIALOGUE_SLIME_GUARD_2:"Her screaming is starting to get on my nerves...",DIALOGUE_SLIME_GUARD_3:"She loves turnips, can't go wrong there.",DIALOGUE_SLIME_GUARD_4:"I'd give anything for a pair of earplugs...or ears.",DIALOGUE_SLIME_GUARD_5:"The Queen will not pay attention to you... I suggest you move along.",DIALOGUE_SLIME_WORKER_0:"Dear me... This is an unfortunate situation.",DIALOGUE_SLIME_WORKER_1:"Oh my, thank you for your help! Here, please take this small token of my appreciation!",DIALOGUE_SLURPY_0:"Valiant effort, my wizard sidekick!",DIALOGUE_SLURPY_1:"I bestow upon thee the gift of fire!",DIALOGUE_SLURPY_2:"Oh, hello there! You're not a slime; what are you doing in a volcano, silly?",DIALOGUE_SLURPY_3:"Slurpy the Valiant, at your service! I'm on a super important quest, and I could sure use a sidekick!",DIALOGUE_SLURPY_4:"Buuuuut we need to get to the bottom of the volcano, and you'll have to drain the lava.",DIALOGUE_SLURPY_5:"Head to the right and find a lever there. All the best quests have levers, right?",DIALOGUE_SLURPY_6:"That takes care of the first lever. Now find the next one.",DIALOGUE_SLURPY_7:"GO FORTH, brave wizard, you know what to do!",DIALOGUE_SLURPY_8:"The plot thickens! Slurpy the Brave has found the ULTIMATE INGREDIENT, while you were off levering. All we gotta do is add it to the Chef's food!",DIALOGUE_SLURPY_9:"We're close now, wizard, just one lever left! Head to Outer Slimeburbia and give it a pull!",DIALOGUE_SLURPY_10:"We reach the end of our quest - Slurpy the Gallant and his faithful wizard companion, against all odds, drained the lava to the final level!",DIALOGUE_SLURPY_11:"Only one more obstacle in their path...",DIALOGUE_SLURPY_12:"I... uh... forgot I left my ingredient somewhere in Slime Shanty... Help?",DIALOGUE_SLURPY_13:"It's almost time for the Royal Dinner! Take the ingredient to the Royal Kitchen and put it in the Royal Stew.",DIALOGUE_SLURPY_14:"Watch out for the Chef, though. He's kind of a grump...",DIALOGUE_SLURPY_15:"Well, we did it! Now all there is to do is attend the Royal Dinner and take allll the credit!",DIALOGUE_SLURPY_16:"You'll have to go for me, though... Kids aren't allowed there; Dad says the Queen has no table manners...",DIALOGUE_SLURPY_17:"We broke a ROYAL RULE? I didn't know she didn't like raisins... They don't tell kids ANYTHING!",DIALOGUE_SLURPY_18:"Oh no! What are we gonna do? Without her dinner, the Queen is gonna be REAL angry!",DIALOGUE_SLURPY_19:"Looks like another quest for Slurpy the Wise and his loyal companion!",DIALOGUE_SLURPY_20:"I got a plan, and it's a good one!",DIALOGUE_SLURPY_21:"Head to the 3 levers and collect my cooking supplies; I always leave them there!",DIALOGUE_SLURPY_22:"I'll bet you didn't know I could cook, huh? Yup, there's more to Slurpy than meets the eye!",DIALOGUE_SLURPY_23:"But I need to know what the Queen actually LIKES... I know! Go talk to her guards, Mike and Hank!",DIALOGUE_SLURPY_24:"If they don't know, nobody will!",DIALOGUE_SLURPY_25:"Oh no, not turnips! They're super rare here, and the Royal Collectors are the only ones allowed to pick them.",DIALOGUE_SLURPY_26:"I only need a couple... Maybe you can convince them to give you some?",DIALOGUE_SLURPY_27:"Well, it took lots of effort, but I'd say this quest is nearly complete! Slurpy the Great and his wizard will save the Kingdom with Turnip Stew!",DIALOGUE_SLURPY_28:"Now, all you have to do is bring it to her... Easy as Turnip Pie!",DIALOGUE_SLURPY_29:"This is stupid! Why couldn't the Royal Chef make his OWN food for the Queen?",DIALOGUE_SLURPY_30:"...",DIALOGUE_SLURPY_31:"Oh, right. Well, I guess it WAS kinda your fault he got fired.",DIALOGUE_SLURPY_32:"But either way, we need to get that dish back! If only you could walk across lava...",DIALOGUE_SLURPY_33:"Hey! All you have to do is find the Boots of Hotwalk! They're in a chest, but legends say that only a fire monster has the key.",DIALOGUE_SLURPY_34:"So, head out there and defeat the fire monsters!",DIALOGUE_SLURPY_35:"Yup! That's the key alright!",DIALOGUE_SLURPY_36:"Now, the chest should be pretty easy to find. The hard part is the 'Guardian'.",DIALOGUE_SLURPY_37:"That's what we call the guy who guards it. Clever, huh? Don't worry, should be a piece of cake for a wizard!",DIALOGUE_SLURPY_38:"Well, it's time for revenge! Slurpy the Fab and his almost-equally fab wizard friend against the fiendish Chef!",DIALOGUE_SLURPY_39:"Now THAT'S a quest, right?",DIALOGUE_SLURPY_40:"Of course, you'll be going alone. I got more important things to do. Like planning, and stuff.",DIALOGUE_SLURPY_41:"The Chef wants ME to meet the Queen?! Wow... What an honor!",DIALOGUE_SLURPY_42:"I hope he's still not mad about the whole 'getting fired' thing.",DIALOGUE_SLURPY_43:"WHAT!? But I only know how to make one dish...",DIALOGUE_SLURPY_44:"This is way too much pressure!",DIALOGUE_SLURPY_45:"Maybe if I study as the Chef's apprentice, I can learn more about being a chef before I have a lot of responsibility.",DIALOGUE_SLURPY_46:"Thanks for your help!",DIALOGUE_SLURPY_47:"And now that you've proven you're worthy, I can give you this: the Bonfire Gem!",DIALOGUE_SLURPY_48:"Well, I can finally say it for real this time... QUEST COMPLETE!",DIALOGUE_SLURPY_49:"We did it, friend! I couldn't have done it without you! Now, it's time for you to move on. There are other quests out there for you to discover!",DIALOGUE_PUPPET_MASTER_0:"It is finally done. With the Warden Keystones destroyed, no one will EVER be able to enter the Academy and fill their minds with knowledge.",DIALOGUE_PUPPET_MASTER_1:"And without knowledge, they will not be able to resist our mind illusions!",DIALOGUE_PUPPET_MASTER_2:"You seem to know me, but I have no idea who YOU are.",DIALOGUE_PUPPET_MASTER_3:"Bold words. Unfortunately for you, the shadow blast that destroyed the Warden Keystones also drained power from the 6 Wardens themselves.",DIALOGUE_PUPPET_MASTER_4:"Now, nothing stands in our way.",DIALOGUE_PUPPET_MASTER_5:"Are...you...KIDDING ME?! HOW DID WE MISS ONE?!",DIALOGUE_PUPPET_MASTER_6:"WHY CAN'T I GET MY WAY!?!?!",DIALOGUE_PUPPET_MASTER_7:"COME ON! How is this even possible?! They had no idea we were coming!",DIALOGUE_PUPPET_MASTER_8:"...That sounds like a good idea.",DIALOGUE_PUPPET_MASTER_9:"Now then, we must make plans for our next steps.",DIALOGUE_PUPPET_MASTER_10:"So, you've gotten quite a lot smarter since our last encounter. No wonder our mind illusions aren't working on you...",DIALOGUE_PUPPET_MASTER_11:"No matter how strong any one wizard is, they cannot defeat our Titan. This magic has survived for thousands of years, and it won't fail now!",DIALOGUE_PUPPET_MASTER_12:"Good luck! YOU'RE GOING TO NEED IT! Hahahahaha!",DIALOGUE_PUPPET_MASTER_13:"If our mind illusions won't work, we'll just have to put a stop to your efforts the old fashioned way.",DIALOGUE_PUPPET_MASTER_14:"This magic has survived for thousands of years. It won't fail now.",DIALOGUE_PIPPIT_0:"6 Wardens? Uh, master, there were only 5 in there...",DIALOGUE_PIPPIT_1:"It was a great try though, master, really. Why, no one else in the Order's history has come this close to total victory!",DIALOGUE_PIPPIT_2:"Hey there, I have an idea. How about we calm down and figure out a new plan! That sound like a good idea?",DIALOGUE_PIPPIT_3:"Master says we need to stop you from becoming powerful. I will do as Master commands!",DIALOGUE_PIPPIT_4:"These mountains seem like a perfect hiding place for a Warden. Don't you think?",DIALOGUE_PIPPIT_5:"You know where the final Warden is, don't you? Tell me!",DIALOGUE_PIPPIT_6:"The less you learn, the stronger our mind illusions get. Let's see what you know!",DIALOGUE_PIPPIT_7:"The Order of Influence was defeated here long ago. We won't lose again!",DIALOGUE_PIPPIT_8:"You've beaten me this time, but if you stop learning, our mind illusions will overpower you!",DIALOGUE_JULIA_GHOULIA_0:"Why hello again! Looking to purchase some spooky specials?",DIALOGUE_JULIA_GHOULIA_1:"Welcome to Pumpkinfest!",DIALOGUE_JULIA_GHOULIA_2:"Until October 31st, you can purchase Pumpkinfest items from my shop with candy corn cash.",DIALOGUE_JULIA_GHOULIA_3:"Candy corn cash can be earned from wizard battles during the festival.",DIALOGUE_JULIA_GHOULIA_4:"You can also get a LOT of candy corn by rescuing pumpkins. If you find a pumpkin in Lamplight Town that isn't lit, click or tap it.",DIALOGUE_JULIA_GHOULIA_5:"If you can defeat the monster that has taken it over, you will get a bunch more candy corn!",DIALOGUE_MAMA_STAR_0:"Why hello again! Did you find the fallen star in town tonight?",DIALOGUE_MAMA_STAR_1:"Hi there! You can buy Starlight Festival items from my shop right now, but the only way to buy them is by spending Star Shards.",DIALOGUE_MAMA_STAR_2:"You can get Star Shards from wizard battles, and find a fallen star in the town to get even more!",DIALOGUE_MAMA_STAR_3:"Why hello there! I'm Mama Star! Welcome to the Starlight Festival!",DIALOGUE_MAMA_STAR_4:"You can purchase Starlight Festival items from my shop with Star Shards.",DIALOGUE_MAMA_STAR_5:"Star Shards can be earned from wizard battles during the festival.",DIALOGUE_MAMA_STAR_6:"You can also get a LOT of Star Shards by finding fallen stars. If you find a fallen star in Lamplight Town, click or tap it.",DIALOGUE_MAMA_STAR_7:"If you can defeat the monster that is trying to capture it, you will get a bunch more Star Shards!",DIALOGUE_MAMA_STAR_8:"Why hello there! I'm Mama Star! Welcome to the Starlight Festival!",DIALOGUE_MAMA_STAR_9:"You may be wonderin' why Lamplight Town seems to be in twilight?",DIALOGUE_MAMA_STAR_10:"No need to worry darlin', it is all good news! A flight of Epic Dragons are due to arrive in our lands real soon.",DIALOGUE_MAMA_STAR_11:"To celebrate their coming I have stocked up on wondrous Dragon themed treasures, treasures that I will sell to you in exchange for Dragon Flies.",DIALOGUE_MAMA_STAR_12:"During this festival, you can earn Dragon Flies in wizard battles, or by rescuing fallen stars right here in Lamplight Town.",DIALOGUE_MAMA_STAR_13:"Heck, sometimes you can catch em flying wild all over the world.",DIALOGUE_MAMA_STAR_14:"Hi there! You can buy Starlight Festival items from my shop right now, but only with Dragon Flies.",DIALOGUE_MAMA_STAR_15:"You can get Dragon Flies from wizard battles anywhere in the world. Rescue a fallen star in Lamplight Town to get even more!",DIALOGUE_MAMA_STAR_16:"And if you keep your eyes open, you might be able to catch wild ones fluttering about.",DIALOGUE_TOY_0:"Welcome to Wandering Wares! We specialize in ancient artifacts for powerful wizards, but I'm not interested in gold!",DIALOGUE_TOY_1:"If you find old copper coins, I'll gladly trade for them.",DIALOGUE_TOY_2:"Onto the next area, shall we?",DIALOGUE_TOY_3:"This is Arctursus, the arctic powerhouse! The air around Arctursus is always cold - the tips of his fur are made from ice that can't melt!",DIALOGUE_TOY_4:"Florafox here is guardian of the forests! The bulb on her tail produces a pollen that can heal any plant, no matter how withered it is!",DIALOGUE_TOY_5:"Don't forget Big Hex, master of mech! This mechano-man is so tough, his static electricity won't let his enemies near him!",DIALOGUE_TOY_6:"Here's Magmischief, the mischievous magma-loving monster! This sneaky guy loves the heat, but that just makes him cool!",DIALOGUE_TOY_7:"There's Diveodile, the ocean lord! He can swim faster than a sailboat, and create whirlpools with the smallest flick of his tail!",DIALOGUE_TOY_8:"Want to try your hand at the Epic Arena? Use your Epic to challenge hordes of enemies and gain awesome rewards!",DIALOGUE_TOY_9:"Well, now that you've met the Epics, you can see their potential! Just imagine how strong they would be on YOUR team!",DIALOGUE_TOY_10:"Welcome to the Epics Subspace! This is a world where the Epics live, while resting in their statue forms.",DIALOGUE_TOY_11:"It's up to wizards like you to rescue them! When you do, they will join you on your quests!",DIALOGUE_TOY_12:"Come back soon to challenge the Epic Arena!",DIALOGUE_TOY_13:"Here you can visit the new Dragons, or the other Epics.",DIALOGUE_TOY_14:"Chill & Char are inseparable! Their combo of ice and fire make them a great choice for all kinds of enemies!",DIALOGUE_TOY_15:"Tidus is rarely seen on land! His power surges upward from the deepest depths of the sea!",DIALOGUE_TOY_16:"Luma is a small but powerful dragon. Her spells are powered by the sun, making her almost unstoppable during the day.",DIALOGUE_TOY_17:"Here is Eclipse, master of twilight. His giant wings gather energy as he soars through the night sky.",DIALOGUE_HOWARD_CORNELIUS_0:"Ice to see you again, wizard. I have lots of cool trinkets on sale!",DIALOGUE_HOWARD_CORNELIUS_1:"Do you have any Magic Snowflakes for Hanz?",DIALOGUE_HOWARD_CORNELIUS_2:"Let me tell you, he won't chill out until he gets some.",DIALOGUE_HOWARD_CORNELIUS_3:"Ice to meet you young wizard! What a fantastically chilly day it is today!",DIALOGUE_HOWARD_CORNELIUS_4:"Hanz and I have brought a lot of cool items with us. We're super excited to be bringing Winterfest cheer to Lamplight Town!",DIALOGUE_HOWARD_CORNELIUS_5:"You got any Magic Snowflakes? Hanz absolutely loves munching on them.",DIALOGUE_SIR_VEY_0:"Good day, wizard! Unfortunately, I don't have any questions right now, but be sure to come back soon, and I might have something new to ask you!",DIALOGUE_SIR_VEY_1:"Greetings, wizard! I have a quick question for you. If you answer it, you shall be rewarded for your assistance!",DIALOGUE_MOZZA_ELLE_0:"This place feels cozy. What do you think?",DIALOGUE_MOZZA_ELLE_1:'This place is very "you!"',DIALOGUE_MOZZA_ELLE_2:"This house is not too big, or too small. It's just right!",DIALOGUE_MOZZA_ELLE_3:"You won't run out of room in here any time soon!",DIALOGUE_MOZZA_ELLE_4:"This place is so big, you might even get lost in it!",DIALOGUE_MOZZA_ELLE_5:"This would make for a cool clubhouse!",DIALOGUE_MOZZA_ELLE_6:"Wow! What a great place to relax in.",DIALOGUE_MOZZA_ELLE_7:"This place is cool!",DIALOGUE_MOZZA_ELLE_8:"You could really chill out in here.",DIALOGUE_MOZZA_ELLE_9:"This type of house is very popular among wizards who study Fire magic.",DIALOGUE_MOZZA_ELLE_10:"I bet you'd feel warm in here even in the middle of Winterfest!",DIALOGUE_MOZZA_ELLE_11:"So, what do you think?",DIALOGUE_POTION_0:"Hey there, how's it goin'?!",DIALOGUE_POTION_1:"I'm Scientist Slimerella, great to meetcha!",DIALOGUE_POTION_2:"I've come to town all the way from Bonfire Spire to sell rare and powerful potions I created using my science skills.",DIALOGUE_POTION_3:"Here, have a free sample!",DIALOGUE_POTION_4:"Now let me show you what else I've got!",DIALOGUE_POTION_5:"Feel free to come back any time!",DIALOGUE_POTION_6:"Check out what I got in stock - you'll find some pretty awesome stuff in there!",DIALOGUE_POTION_7:"Science for the win! Yeah!",DIALOGUE_SWOOPY_0:"The Puppet Master's goons have destroyed our village and taken our wood! Can you help us get it back?",DIALOGUE_SWOOPY_1:"Complete as many daily quests here as you can before the real adventure begins later this year!",DIALOGUE_SWOOPY_2:"Take one of the two paths behind me to complete today's quest!",DIALOGUE_SWOOPY_3:"You completed today's quest. Thanks for getting some of our wood back!",DIALOGUE_SWOOPY_4:"Don't forget to come back tomorrow!",DIALOGUE_EVE_0:"You did it! Way to go, kid!",DIALOGUE_EVE_1:"Hey, you!",DIALOGUE_EVE_2:"The name's Eve, pleasure to meet you! You must be the Prodigy-in-training that everyone's talking about.",DIALOGUE_EVE_3:"This means that if you pass my test, I'll give you my Warden Keystone, just like the other Guardians on the island.",DIALOGUE_EVE_4:"You'll be one step closer to stopping the Puppet Master!",DIALOGUE_EVE_5:"Ever since the Puppet Master returned, the sea people have reported spotting an ancient monster lurking just off the coast.",DIALOGUE_EVE_6:"I want you to find out if this monster is real, and if so, defeat it.",DIALOGUE_EVE_7:"But first things first - you'll have to spend some time underwater if you're gonna complete this challenge.",DIALOGUE_EVE_8:"In order to do that, you'll need to locate a Breathing Bubble so you can go underwater.",DIALOGUE_EVE_9:"Just head east, then north. You should find one near the wreckage. Bring it back here and I'll get it working for you.",DIALOGUE_EVE_10:"Allllllright! Now the adventure can REALLY begin!",DIALOGUE_EVE_11:"There's an archaeologist around these parts. Goes by the name Jelly Jim.",DIALOGUE_EVE_12:"He spends so much time in the water, there's NO WAY he'd miss a giant monster, if there is one.",DIALOGUE_EVE_13:"Go chat with him, and see if he knows anything about it.",DIALOGUE_EVE_14:"We ran into some black goop while trying to search for the monster.",DIALOGUE_EVE_15:"Without knowing for sure what we're dealing with, we won't know HOW to deal with it.",DIALOGUE_EVE_16:"Can you grab a sample of the black goop for me to check out?",DIALOGUE_EVE_17:"I think you can handle this now. The Order of Influence better watch out!",DIALOGUE_EVE_18:"Yup, that's definitely monster ink. Just as I thought.",DIALOGUE_EVE_19:"You're going to need a Sonic Blaster to get through that stuff.",DIALOGUE_EVE_20:"Fortunately, any sailor worth their sea salt carried one with them, for situations just like this one.",DIALOGUE_EVE_21:"You should be able to find one in the wreckage of the ships!",DIALOGUE_EVE_22:"Caaaaan you just give us yours?",DIALOGUE_EVE_23:"This is your trial, not mine. Sorry kiddo, you'll just have to find one yourself!",DIALOGUE_EVE_24:"Once you find it, bring it back to me, and I'll make sure it's in working order.",DIALOGUE_EVE_25:"I know you can do it!",DIALOGUE_EVE_26:"Allllright! The next task ahead of you is to clear out that ink with the Sonic Blaster. Give it your best shot!",DIALOGUE_EVE_27:"Keep your guard up, kiddo. If the Puppet Master's behind this, who knows what's lurking in that ink...",DIALOGUE_EVE_28:"Not only am I a pretty good pirate, but I'm also a keen tracker - I could track a falcon on a cloudy day!",DIALOGUE_EVE_29:"It sounds like the ancient creature IS real after all, based on the description of that tunnel.",DIALOGUE_EVE_30:"If you bring me back more details about it, I'll be able to figure out exactly what we're going up against!",DIALOGUE_EVE_31:"Talk to Jelly Jim. He'll be able to think of a way to do that.",DIALOGUE_EVE_32:"Woooowie. According to the tunnel, this monster is HUGE!",DIALOGUE_EVE_33:"Just to make sure we know as much about this beast as possible before taking it on, see if you can find anything else it may have left behind.",DIALOGUE_EVE_34:"The more we know about it, the better.",DIALOGUE_EVE_35:"Uh oh. It's not just big, but it's got tough skin to boot! These scales are super sturdy.",DIALOGUE_EVE_36:"I had heard stories about the power of the beast my grandpappy battled, but I didn't ACTUALLY believe it was this strong...",DIALOGUE_EVE_37:"You've gotta toughen yourself up if you're gonna go toe-to-tentacle with a beast like that. Battle strong monsters to make sure you're ready.",DIALOGUE_EVE_38:"Looks like you're tough enough now!",DIALOGUE_EVE_39:"Now that you're ready, I can tell you where I think the beast is.",DIALOGUE_EVE_40:"The ink, the tunnel, the scales - they were all found around the wreckage of the pirate ship Antilles. The beast MUST be hiding there.",DIALOGUE_EVE_41:"It's time to show the Puppet Master's monster who's boss. Good luck.",DIALOGUE_EVE_42:"Sounds like that door needs a key. Check the ship wreckage, it shouldn't be too far from there.",DIALOGUE_EVE_43:"This is it, kid. Good luck.",DIALOGUE_EVE_44:"Here's the Shipwreck Gem, you've earned it!",DIALOGUE_EVE_45:"Well kid, best be movin' along. I've got things under control here now.",DIALOGUE_EVE_46:"I heard the Warden Keystones can't be placed on the pedestals yet. I'm not sure why, but don't worry - I'm sure they'll work soon.",DIALOGUE_EVE_47:"And the Academy will be free for everyone once again!",DIALOGUE_JELLY_JIM_0:"Well hello there! My name's Jelly Jim. What brings you to these parts?",DIALOGUE_JELLY_JIM_1:"Now that I think about it, I do recall seeing some sort of large, terrible creature floating around. Just the other day in fact.",DIALOGUE_JELLY_JIM_2:"It looked like it could have been the old sea monster that the evil Order of Influence used here a long time ago against the pirates.",DIALOGUE_JELLY_JIM_3:"Whatever I saw was close by, no doubt.",DIALOGUE_JELLY_JIM_4:"Oh, and one last thing. Here is some gold to help you on your journey. Best of luck!",DIALOGUE_JELLY_JIM_5:"Why hello again, friend! Grand to see you. What can I help you with?",DIALOGUE_JELLY_JIM_6:"You want to show Eve something you found down here? Well, an underwater camera would be perfect for that!",DIALOGUE_JELLY_JIM_7:"Well, I'll be off on other adventures soon. If you see me, could you stop by and say hello? That would be splendid!",DIALOGUE_HARVEY_0:"So, you're joining the battle against the Titan, are you?",DIALOGUE_HARVEY_1:"As you battle it, Titan Shards will break off. Bring them to me, and I can remove the Shadow Magic from them. I'll sell you powerful armor in return.",DIALOGUE_HARVEY_2:"Battle the Titan to earn Titan Shards.",DIALOGUE_HARVEY_3:"Win lots of battles against the Titan to get a BUNCH of Titan Shards, once it's defeated by wizards around the world.",DIALOGUE_HARVEY_4:"Check my sign for more details.",DIALOGUE_PROFESSOR_SCOOG_0:"Ponduberous! You certainly are helpful, young chap!",DIALOGUE_PROFESSOR_SCOOG_1:"Let's get to it, then! Ready to help OINC?",DIALOGUE_PROFESSOR_SCOOG_2:"Well now, what have we here? A young explorer in training, perhaps?",DIALOGUE_PROFESSOR_SCOOG_3:"Oh, but where are my manners? I, my young friend, am Professor Scoog...perhaps you've heard of me?",DIALOGUE_PROFESSOR_SCOOG_4:"...no?",DIALOGUE_PROFESSOR_SCOOG_5:"Hm, well that's quite alright. I am the leader of the Oasis Institute of Natural Creatures! Or, OINC, for short.",DIALOGUE_PROFESSOR_SCOOG_6:"Right now we're in the middle of a very important dig, and we sure could use your help!",DIALOGUE_PROFESSOR_SCOOG_7:"First, let's see what you're made of! We've been overrun by Scallys the last few days...makes it hard to dig. Go challenge a few for me, will you?",DIALOGUE_PROFESSOR_SCOOG_8:"You did it, young wizard! As a token of my gratitude, take this shovel!",DIALOGUE_PROFESSOR_SCOOG_9:"The shovel will allow you to help us dig for fossils! To do so, just click the spinning star nearby!",DIALOGUE_PROFESSOR_SCOOG_10:"Now then, OINC has chosen this site for its greatest quest - the search for Dynos!",DIALOGUE_PROFESSOR_SCOOG_11:"Dynos are monsters that are long extinct, and have left their fossilized remains here in the oasis.",DIALOGUE_PROFESSOR_SCOOG_12:"We want to learn more about them, so we work hard to dig them up!",DIALOGUE_PROFESSOR_SCOOG_13:"Now that you have a shovel, you can help! Try digging for a Terrosaur bone, or challenge some monsters who carry them.",DIALOGUE_PROFESSOR_SCOOG_14:"While you were away, a monster came and STOLE MY HAT! Be a dear and go fetch it for me, will you?",DIALOGUE_PROFESSOR_SCOOG_15:"THAT'S IT! Ah, my lucky hat...though truth is, I do have quite a few lucky hats...",DIALOGUE_PROFESSOR_SCOOG_16:"...",DIALOGUE_PROFESSOR_SCOOG_17:"WHAT!?!?!",DIALOGUE_PROFESSOR_SCOOG_18:"YOU SAW A DYNO?!?! PONDUBEROUS!",DIALOGUE_PROFESSOR_SCOOG_19:"You know what? Keep the hat! Consider yourself an honorary member of OINC!",DIALOGUE_PROFESSOR_SCOOG_20:"A real dyno! Oh my...we have much to do! First, we must ensure that these Dynos are safe!",DIALOGUE_PROFESSOR_SCOOG_21:"Defeat a few fire monsters for me...fire monsters in a dry forest are BAD NEWS!",DIALOGUE_PROFESSOR_SCOOG_22:"Well now, I think it is time to find our new dyno friends! First, let's see if you can track down some Terromites! Let's see how they battle!",DIALOGUE_PROFESSOR_SCOOG_23:"Oh, and bring back anything they might be carrying!",DIALOGUE_PROFESSOR_SCOOG_24:"OH NO! This item you brought me is an animal tag...this can only mean one thing...",DIALOGUE_PROFESSOR_SCOOG_25:"This animal tag proves that someone has been mistreating these Dynos...and only one man would do such a thing...",DIALOGUE_PROFESSOR_SCOOG_26:"PROFESSOR MOOG!",DIALOGUE_PROFESSOR_SCOOG_27:"Moog is a despicable dastardly deviant, who believes that monsters are meant to be kept in cages. Preposterous!",DIALOGUE_PROFESSOR_SCOOG_28:"We must help the Dynos! Go out there and remove all the tags you can find!",DIALOGUE_PROFESSOR_SCOOG_29:"Good work! Here's a new shovel...it will help you dig faster when looking for fossils!",DIALOGUE_PROFESSOR_SCOOG_30:"We've slowed down Moog for now, but his men are probably out there right now, capturing these Dynos...",DIALOGUE_PROFESSOR_SCOOG_31:"I have an idea! Go find Moog's men, and challenge them. Perhaps one of them will have a written copy of Moog's evil scheme.",DIALOGUE_PROFESSOR_SCOOG_32:"Moog is dastardly, but he isn't the sharpest tool in the shed...",DIALOGUE_PROFESSOR_SCOOG_33:"According to this novel, Moog plans to capture the Dynos and put them in some kind of dyno theme park...",DIALOGUE_PROFESSOR_SCOOG_34:"...",DIALOGUE_PROFESSOR_SCOOG_35:"That's not very original at all.",DIALOGUE_PROFESSOR_SCOOG_36:"Regardless, we must stop him at all costs! Go out there and find his head assistant, Spokes. If you defeat him, maybe he and his men will leave.",DIALOGUE_PROFESSOR_SCOOG_37:"It looks like Spokes and his men have left...for now. But they will be back, I assure you!",DIALOGUE_PROFESSOR_SCOOG_38:"For now, we have other matters. A new dyno has been stealing equipment from the dig site...see if you can bring it back.",DIALOGUE_PROFESSOR_SCOOG_39:"Ponduberous! That's 3 Dynos you've found now, alive and well! Oh, how I would love to study them in their natural habitat.",DIALOGUE_PROFESSOR_SCOOG_40:"Alas, the world of science must wait. With Moog still out there, the Dynos will never be safe.",DIALOGUE_PROFESSOR_SCOOG_41:"According to his novel, he next plans to steal dyno eggs. The audacity!",DIALOGUE_PROFESSOR_SCOOG_42:"We must act quickly! Go out there, face his egg collectors, and bring back the eggs!",DIALOGUE_PROFESSOR_SCOOG_43:"You're doing great work, my friend! We're stopping Moog at every turn!",DIALOGUE_PROFESSOR_SCOOG_44:"But all is not well in the natural world. Some pterrotell have been attacking anyone who comes near...perhaps something has them spooked?",DIALOGUE_PROFESSOR_SCOOG_45:"Find and challenge them for me...perhaps the battle will sooth these Dynos.",DIALOGUE_PROFESSOR_SCOOG_46:"OH NO! It looks like one of Moog's men have captured a team of Dynos!",DIALOGUE_PROFESSOR_SCOOG_47:"You'd better defeat him and release those poor Dynos!",DIALOGUE_PROFESSOR_SCOOG_48:"Enough is enough! It's time to get rid of Moog once and for all!",DIALOGUE_PROFESSOR_SCOOG_49:"I have a theory about Dynos...I believe that a large group of Dynos is run by a single dyno, which I call the Primo Dyno.",DIALOGUE_PROFESSOR_SCOOG_50:"This dyno would be big! And mean! And scary! Scary enough to frighten off Moog forever!",DIALOGUE_PROFESSOR_SCOOG_51:"So, I say we track down this Primo Dyno! First, you'll need to find the nest. Defeat a few Dynos, and they should lead us there.",DIALOGUE_PROFESSOR_SCOOG_52:"Good! I think we know where the nest is! No sign of the Primo Dyno, so we may have to lure it back somehow...",DIALOGUE_PROFESSOR_SCOOG_53:"I know! The digging equipment! The loud noises must have disrupted the Dynos...that's why they were stealing it!",DIALOGUE_PROFESSOR_SCOOG_54:"I'll turn on the equipment now...you may have to defeat a few larger Dynos before the Primo Dyno gets here...",DIALOGUE_PROFESSOR_SCOOG_55:"I hear something coming! It must be the Primo Dyno!",DIALOGUE_PROFESSOR_SCOOG_56:"...what's that on his back...?",DIALOGUE_PROFESSOR_SCOOG_57:"No...IT CAN'T BE!",DIALOGUE_PROFESSOR_SCOOG_58:"PROFESSOR MOOG!",DIALOGUE_PROFESSOR_SCOOG_59:"You did it!",DIALOGUE_PROFESSOR_SCOOG_60:"It appears that Professor Moog wasn't riding the Primo Dyno after all...he was a captive himself! Oh, the irony!",DIALOGUE_PROFESSOR_SCOOG_61:"Well my friend, I don't think Moog will be bothering these Dynos anymore, and we have you to thank!",DIALOGUE_PROFESSOR_SCOOG_62:"Here, take this shovel - it's the strongest one we have! As a member of OINC, keep up the digging! Who knows what you might find!",DIALOGUE_BOOMBOX_0:"We have a winner!",DIALOGUE_BOOMBOX_1:"Are you ready for your next challenger?",DIALOGUE_BOOMBOX_2:"Welcome to the Robolympics!",DIALOGUE_BOOMBOX_3:"Today we have 3 tough teams for you to face, but if you beat them all, there's a FANTASTIC prize!",DIALOGUE_BOOMBOX_4:"Today's prize is...{0}",DIALOGUE_BOOMBOX_5:"Did you catch any new robots? If not, come back tomorrow to train with and catch a new one!",DIALOGUE_BOOMBOX_6:"Today's winner is...",DIALOGUE_BOOMBOX_7:"{0}!",DIALOGUE_BOOMBOX_8:"As promised, here is your grand prize!",DIALOGUE_MIRA_REWARD:"Hey, you're doing great! Here's a little reward...",DIALOGUE_MIRA_DEFEAT_0:"Wow...You beat me...I'm speechless...",DIALOGUE_MIRA_DEFEAT_1:"I can't believe I lost to a wizard from the Academy...I thought I was the strongest!",DIALOGUE_MIRA_DEFEAT_2:"Well then! It looks like I was wrong about you...and about the Academy! You really are the best of the best!",DIALOGUE_MIRA_DEFEAT_3:"Here...please accept this new robe as a gift from me. And tell all your friends to come here as well!",DIALOGUE_MIRA_DEFEAT_4:"I'd love to meet as many wizards as possible...especially if they're as strong as you!",DIALOGUE_MIRA_0:"Oh no! Only members can access the tower right now!",DIALOGUE_MIRA_1:"Hello there, young one...welcome to the Dark Tower.",DIALOGUE_MIRA_2:"The name's Mira, and this tower was once the home to a powerful wizard, who built it to test the power of other wizards.",DIALOGUE_MIRA_3:"It is said that whoever can conquer every floor and make it to the top is a true wizard.",DIALOGUE_MIRA_4:"But there is a catch! The battles here are harder, and once you leave the tower, you must start over.",DIALOGUE_MIRA_5:"However, if you defeat the opponents on every 5th floor, you can return to that floor if you leave.",DIALOGUE_MIRA_6:"Well hello there! If it isn't mister fancy wizard?",DIALOGUE_MIRA_7:"You already beat my tower...but come back someday... I may have more challenges for you!",DIALOGUE_MIRA_8:"Oh no....you don't have enough gold!",DIALOGUE_MIRA_9:"Here's your first boss...there is one on every fifth floor. Let's see how well you do!",DIALOGUE_MIRA_10:"The wizard of this tower was once a student at the Academy, just like you...",DIALOGUE_MIRA_11:"But the wizard was MUCH stronger! WAAAAAY stronger!",DIALOGUE_MIRA_12:"The wizard practiced alone, not wanting any help from the other Academy students.",DIALOGUE_MIRA_13:"He didn't want to waste time on them - they would only hold him back.",DIALOGUE_MIRA_14:"So the wizard left the Academy a long long time ago...to train alone.",DIALOGUE_MIRA_15:"He came here and built this tower using his awesome power! What a guy!",DIALOGUE_MIRA_16:"You made it to floor 25! One quarter of the way there...not bad, but not great.",DIALOGUE_MIRA_17:"For years and years the wizard trained here alone. He mastered all the elements, learned all the spells.",DIALOGUE_MIRA_18:"...But the wizard didn't need any help from the dumb Academy to do it!",DIALOGUE_MIRA_19:"One day, the wizard decided he was done training - he was already the best wizard ever!",DIALOGUE_MIRA_20:"So he decided to challenge the other wizards at the Academy, to prove he was the best.",DIALOGUE_MIRA_21:"No wizard could match him, and so the wizard created this super-cool test to challenge wizards instead!",DIALOGUE_MIRA_22:"He called it the 'Really Really Hard Test of Trials'!",DIALOGUE_MIRA_23:"For this test, the wizard summoned the strongest monsters possible to challenge wizards at each floor.",DIALOGUE_MIRA_24:"These monsters are the bosses of this tower. Here's another one now!",DIALOGUE_MIRA_25:"Floor 50 already....you've come all this way to challenge the strongest, have you?",DIALOGUE_MIRA_26:"If so, then you must first challenge the father of all dragons...Grandoff!",DIALOGUE_MIRA_27:"You are certainly something special...are you sure you're from the Academy?",DIALOGUE_MIRA_28:"The test you are on now...this is the very same test created by the wizard himself.",DIALOGUE_MIRA_29:"Many wizards from the Academy tried it, but they ALL failed!",DIALOGUE_MIRA_30:"For each new student that tried the test and failed, the wizard added a new floor...and a new challenge.",DIALOGUE_MIRA_31:"When no more floors could be added, the wizard made the challenges harder and harder.",DIALOGUE_MIRA_32:"Eventually, it became obvious that no wizards would be able to climb the tower.",DIALOGUE_MIRA_33:"So the legendary wizard disappeared, and the tower began to crumble.",DIALOGUE_MIRA_34:"The wizard has not been seen since, but students from the Academy still try to climb the tower.",DIALOGUE_MIRA_35:"He hoped that someday a student would be strong enough to challenge him, and so he would return to accept the challenge.",DIALOGUE_MIRA_36:"Things have been easy up until now...I think it's time to step things up!",DIALOGUE_MIRA_37:"You're still going? I'm...impressed!",DIALOGUE_MIRA_38:"This can't be...no wizards have ever made it this far...",DIALOGUE_MIRA_39:"...Who are you...?",DIALOGUE_MIRA_40:"No...you will NOT make it to the top of this tower!",DIALOGUE_MIRA_41:"Face your next challenge...it will be your last here!",DIALOGUE_MIRA_42:"Astounding. You have made it to the top of my tower...",DIALOGUE_MIRA_43:"And so you have earned the greatest of rewards...you must challenge the legendary wizard herself...",DIALOGUE_MIRA_44:"ME! THE GREAT AND POWERFUL MIRA SHADE!",DIALOGUE_MIRA_45:"HAHAHA! It was me all along! You should see the look on your face right now!",DIALOGUE_MIRA_46:"Come, wizard! It's time for you to face the strongest wizard of all time!",DIALOGUE_DON_ZORRO_0:"Only Foxes should have our Magic Eggs! I, the great Don Zorro of the noble Fox Knights, refuse to let these sneaky rabbits get one single egg.",DIALOGUE_DON_ZORRO_1:"Excuse me!? How dare you speak to me in that way. You should be grateful that we Knights don't run you right out of town.",DIALOGUE_DON_ZORRO_2:"Hah! We'll see about that. Not even the Puppet Master stands a chance against the great Don Zorro!",DIALOGUE_DON_ZORRO_3:"And don't think riffraff like bunnies are welcome into Fort Fox! Only friends of the Foxes are allowed past our guard.",DIALOGUE_DON_ZORRO_4:"Here Wizard, take a Fox cap. Wear it if you want to get in...",DIALOGUE_DON_ZORRO_5:"Well well, what do we have here? I am the magnificent Don Zorro, captain of the Fox forces.",DIALOGUE_DON_ZORRO_6:"You have permission to admire me while I tell you of our tale.",DIALOGUE_DON_ZORRO_7:"Every spring the sneaky bunnies seek to steal the Magic Eggs that rightfully should go to us Foxes. What impudence!",DIALOGUE_DON_ZORRO_8:"Bring ME any Eggs you find while fighting monsters out in the world.",DIALOGUE_DON_ZORRO_9:"You look brave, so I will give you a quest. Search for a clutch of Magic Eggs that spawns someplace in Lamplight Town.",DIALOGUE_DON_ZORRO_10:"But the Puppet Master also wants the Magic Eggs, and you may have to thrash his minions to get the eggs.",DIALOGUE_DON_ZORRO_11:"I am willing to trade some of our wondrous Fox items to whoever brings me Magic Eggs. Yes, even you. Here, look upon our fine goods!",DIALOGUE_DON_ZORRO_12:"Who approaches the brave Don Zorro, champion of the Foxes? Oh, it is just you.",DIALOGUE_DON_ZORRO_13:"Did you defeat any Puppet Master minions in Lamplight, or monsters in the wide world? Ahem...you HAVE brought us Magic Eggs, correct?",DIALOGUE_DON_ZORRO_14:"Then look at our store full of fine fox goods, and see if you can look more like...ME!",DIALOGUE_HARRIET_0:"YOUR Magic Eggs? Hah! You crack me up. The Forest Bunny Bandits don't take orders from anyone. You got that foxy?",DIALOGUE_HARRIET_1:"Ooo, I'm scared. Well you can tell your fuzzy orange servants that I, Harriet Hood, will never let you get your dirty paws on all the Magic Eggs.",DIALOGUE_HARRIET_2:"Blah blah blah. Look Wizard, here is a Bunny Cap. Wear it when you come see us. Only Bunny Bandit buddies are allowed into The Burrow.",DIALOGUE_HARRIET_3:"The name's Harriet Hood. Welcome to The Burrow. You've made the right decision coming here.",DIALOGUE_HARRIET_4:"I'm sorry that you had to listen to that crazy Fox. No one takes what rightfully belongs to us, the Bunny Bandits!",DIALOGUE_HARRIET_5:"Those sly Foxes are always meddling in our business, taking all the Magic Eggs they can find. No need to worry though, we have YOU on our side!",DIALOGUE_HARRIET_6:"Listen, you can do me a favor by collecting Magic Eggs from monsters out in the world and bringing them here, to me.",DIALOGUE_HARRIET_7:"And a little birdy told me that once a day a pile of Magic Eggs spawns someplace in Lamplight Town.",DIALOGUE_HARRIET_8:"The Puppet Master also wants the Magic Eggs, so you may have to fight for them.",DIALOGUE_HARRIET_9:"In exchange for the Eggs, I promise you some of our best wares, which we came by totally honestly. What do you say?",DIALOGUE_HARRIET_10:"Look who we have here. I told the other buddies we could count on you. We CAN count on you right?",DIALOGUE_HARRIET_11:"All you gotta do is just keep fighting monsters and collecting OUR Magic Eggs. I heard there was a bundle somewhere in Lamplight today.",DIALOGUE_HARRIET_12:"Enough chit-chat. if you brought something we want, maybe we have something you want?",DIALOGUE_VERNA_0:"HALT! Who do you think you are? Only those who show loyalty to the noble Foxes may enter. Don't you have a Fox hat of some kind?",DIALOGUE_VERNA_1:"You need to be wearing a Fox hat like this!",DIALOGUE_VERNA_2:"Halt! No Bunny buddies allowed! Only Foxes past this point!",DIALOGUE_VERNA_3:"Welcome fellow Fox! Boo to the Bunnies!",DIALOGUE_BARGO_0:"Hold up bub, you don't look like a Bandit. What are you trying to pull?",DIALOGUE_BARGO_1:"Don't you have some Bunny swag? You wanna get in with the bunnies, you need to look like a bunny.",DIALOGUE_BARGO_2:"You need to be wearing a Bunny hat like this!",DIALOGUE_BARGO_3:"Heyo Holdup!!! Listen Foxface, just turn your long tail around and scram. You get my drift?",DIALOGUE_BARGO_4:"Hey there good bunny buddy! Hop right in, fresh carrots on the table.",TECH_START_0:"Ladies and gentlemen...it looks like we have a new competitor!",TECH_START_1:"The name's Boombox! Come on over here, shortstuff!",TECH_COMPLETED:"Come back tomorrow for new opponents and prizes!",HINT_0:"Low on hearts? Try switching to one of your pets in battle.",HINT_1:"Lost on a quest? Follow the white hand to your next goal!",HINT_2:"When you're low on hearts, find a healstone to heal you and your pets!",HINT_3:"Want to change your team? Open the Pet Menu from the Main Menu.",HINT_4:"Your hearts are fully restored when you level up!",HINT_5:"Want a new look? Head to the Stylist in Lamplight Town.",HINT_6:"The latest and greatest equipment can be bought at the Item Shop in Lamplight Town.",HINT_7:"You can fast-travel to any zone by opening the Map from the Main Menu.",HINT_8:"Be sure to return to Prodigy every so often...new content is added all the time!",HINT_9:"Become a World Champion by challenging other wizards in the Arena!",HINT_10:"Earn stars to level up...the strongest wizards are Level 100!",HINT_11:"Want to play with your friends? Make sure you select the same world as they do!",HINT_12:"Check your achievement progress by opening the Awards Menu from the Main Menu.",HINT_13:"Complete bounties from the Bounty Board in Lamplight Town to earn awesome rewards!",HINT_14:"Rumor has it that there is a powerful wizard at the top of the Dark Tower...",HINT_15:"Need more gold? Head out and battle monsters!",HINT_16:"Keep your team at its best! Level up your pets alongside your wizard.",HINT_17:"Show off your latest rewards and outfits in Lamplight Town!",HINT_18:"Want to see what other wizards are wearing? Just click on them!",HINT_19:"Pets can be caught when their hearts are low, but make sure not to defeat them by accident!",HINT_20:"You learn new spells by leveling up, but can also learn them from completing quests.",HINT_21:"Explore each zone thoroughly...there are secrets hidden everywhere!",HINT_22:"Can't beat a boss or another wizard? Level up your team and try again!",HINT_23:"Practice makes perfect! If you get a question wrong, try using a hint for the next one!",HINT_24:"The Academy in Lamplight Town floats in the sky, just out of reach.",HINT_25:"Merchants are found all over the island. Some offer new items, others offer quests!",HINT_26:"Want to change your equipment? Open up the Backpack from the Main Menu!",MUSEUM_INTRO:"Welcome to the Museum! Be sure to bring all your newly-discovered fossils.",MUSEUM_CRAFT_FOSSILS_0:"Ponduberous! You collected enough fossils to create the {0}! \nLet's see what it looks like!",MUSEUM_CRAFT_FOSSILS_1:"WOW! That looks great!",MUSEUM_COLLECTED_ALL_FOSSILS:"Ponduberous! You collected all the fossils and completed all the skeletons! Take this as a reward!",ARENA_CONFIRM_TRAINING:"Do you want to train in the arena?",ARENA_CHALLENGE_WIZARDS:"[mail-star] Challenge other wizards around the world and earn rewards from the shop!",ARENA_EARN_BRONZE:"Earn a score of [arena]100 or more to reach Bronze Rank!",ARENA_MY_SCORE:"My Score {{0}",ARENA_MUST_BE_IN_CLASS:"You must be in a class to view the leaderboard",ARENA_FIND_CHALLENGER:"Find Challenger",ARENA_RANK_UP_FASTER:"Rank Up Faster!",ARENA_TITLE:"THE ARENA",ARENA_LEADERBOARD_WORLD_TOP_PLAYER:"Top Player in the World",ARENA_LEADERBOARD_TOP_PLAYERS:"Top Arena Players",ARENA_OFFLINE_MESSAGE:"Cannot take part in the Arena in Offline Mode.",ARENA_CHECK_INTERNET_MESSAGE:"Cannot take part in the Arena when offline. Please check your Internet connection.",ARENA_DOWN_MESSAGE:"Arena battles are currently down as we make them even better. Please check back later.",LEADERBOARD_ERROR_LOADING_BOARD:"There was an error loading the leaderboard...try again later",LEADERBOARD_ERROR_TEMPORARILY_UNAVAILABLE:"Oops! Sorry, we cannot show the Leaderboard right now. We are working on it. Please try again later.",LEADERBOARD_ERROR_LOADING_PLAYER:"Error loading player info",LEADERBOARD_NOT_APPLICABLE:"N/A",LEADERBOARD_RANK_1:"You're at rank 1! Keep leveling to make sure your friends don't catch up!",LEADERBOARD_NOT_RANKED:"You're not on the leaderboard yet...get to level {0} or higher!",LEADERBOARD_RANK_UP:"You're at rank {0}! Get to level {1} to go up a rank!",LEADERBOARD_CHECK_FRIENDS:"Check out the leaderboard and see where your friends are!",WONDER_WHEEL_PROMPT_SPIN:"Hello there! Do you want to spin the Wheel of Wonder?",WONDER_WHEEL_SPIN:"Let's spin that wheel!",WONDER_WHEEL_SPIN_TOMORROW:"Sorry, you'll have to come back tomorrow to spin again!",WONDER_WHEEL_SPIN_AGAIN:"Fantastic! Want to spin again?",TWILIGHT_WHEEL_COME_BACK_LATER:"Please come back between 4pm and 11pm to spin the Twilight Wheel for great prizes!",TWILIGHT_WHEEL_SPIN:"Hi there! Do you want to Spin the Twilight Wheel?",TWILIGHT_WHEEL_WATCH_SPIN:"Watch that wheel spin!",TWILIGHT_WHEEL_SPIN_AGAIN:"Fantastic! Want to spin again?",TWILIGHT_WHEEL_COME_BACK_TOMORROW:"Please come back tomorrow between 4pm and 11pm to spin the Twilight Wheel again for great prizes!",TOWER_CHANCE_WHEEL:"Chance Wheel Time!",TOWER_CHANCE_LOSE_HEARTS:"Lose {0} hearts...",TOWER_CHANCE_GAIN_HEARTS:"Gain {0} hearts!",TOWER_CHANCE_DAMAGE_INCREASED:"Damage increase!",TOWER_CHANCE_DAMAGE_REDUCED:"Damage reduced...",TOWER_CHANCE_DOUBLE_STARS:"Double stars!",TOWER_CHANCE_DISABLE_SWITCHING:"Switching disabled!",TOWER_PROMPT_MUST_DEFEAT:"Before you can move on, you must defeat the challenger on this floor. Click on the orb in the room to begin!",TOWER_NEXT_CHALLENGER:"The next challenge awaits!",TOWER_ALL_DEFEATED:"You already beat my tower...but come back someday... I may have more challenges for you!",TOWER_PROMPT_LEAVE:"If you leave now, you'll have to start back at floor {0}. Are you sure you want to leave?",TOWER_PROMPT_START:"Do you want to start climbing the tower from floor {0}?",TOWER_PROMPT_START_GOLD:"Do you want to continue climbing the tower from floor {0}? \n\nIt will cost you [gold] 500.",BATTLE_INTRO:"BATTLE",PVP_INTRO:"Player vs. Player!",PVP_SELECT_ACTION:"Select your action",PVP_TIME_REMAINING:"Time left",PVP_WAITING_ON_PLAYER:"Waiting on player",PVP_ARENA_POINTS:"{Arena Points",PVP_PLAYERNAME:"[mail-star] Playername",PVP_WIN_LOSS:"win/loss - 0/0",PVP_RANK_UP:"You ranked up to {0}!",PVP_RANK_DOWN:"You ranked down to {0}...",PVP_VERSUS_SHORT:"VS.",PVP_DISCONNECT_WARNING_TITLE:"You Deserted...",PVP_DISCONNECT_WARNING_BODY:"You closed the browser or got disconnected from an arena battle. Be a good sport and finish your battles!",PVP_FINDING_MATCH_TITLE:"Finding Challenger",PVP_FINDING_MATCH_BODY:"Searching for a good match based on your current level... please wait. \n\n(It could take up to a minute or more.) \n\nTime waiting: XTIMERX",PVP_CONNECTING_NOW:"Match found! Connecting now...",CLASS_CODE_PROMPT_TEACHER_CLICK_0:"Teachers: click here",CLASS_CODE_PROMPT_TEACHER_CLICK_1:"to get a class code!",CLASS_CODE_PLAYING_AT_HOME:"Playing at home?",CLASS_CODE_PLAYING_AT_SCHOOL:"Playing at school?",BOUNTY_BOARD_BOUNTY_TITLE:"Bounty Note",BOUNTY_BOARD_COMPLETED_TURN_IN:"You have completed this bounty. Talk to Boardy to turn it in for a reward!",BOUNTY_BOARD_COMPLETED:"This bounty has been completed. Come back tomorrow for a new one!",BOUNTY_BOARD_GO_TO_LAMPLIGHT:"Head to the bounty board in Lamplight Town and accept a new bounty!",BOUNTY_BOARD_UNLOCK_MESSAGE:"Reach Firefly Forest to unlock the bounty board!",BOUNTY_BOARD_MEMBER_BUTTON_TOP:"Member",BOUNTY_BOARD_MEMBER_BUTTON_BOT:"Bounty",BOUNTY_BOARD_BUTTON_TOP:"Accept",BOUNTY_BOARD_BUTTON_BOT:"Bounty",BOUNTY_DEFEAT_MONSTER_TEXT_0_AN:"Defeat {0}, an {1} at {2} in {3}.",BOUNTY_DEFEAT_MONSTER_TEXT_0_A:"Defeat {0}, a {1} at {2} in {3}.",BOUNTY_DEFEAT_MONSTER_TEXT_1:"{0} is causing trouble in {1}. Stop him at {2}.",BOUNTY_DEFEAT_MONSTER_TEXT_2:"{0} has finally come out of hiding. Find her at {1} in {2}.",BOUNTY_DEFEAT_MONSTER_TEXT_3:"{0} has appeared at {1} in {2}.",BOUNTY_DEFEAT_MONSTER_TEXT_4:"{0} has appeared at {1} in {2}. Get him before he vanishes!",BOUNTY_POINTS_5:"5 Bounty Pts.",BOUNTY_POINTS_20:"20 Bounty Pts.",BOUNTY_POINTS_50:"50 Bounty Pts.",BOUNTY_POINTS_100:"100 Bounty Pts.",BOUNTIES_INCREASE_RANK:"Get bounties and defeat monsters to increase your rank!",CHEST_OPEN_MULTI:"open a chest!",CHEST_OPEN_SINGLE:"open the chest!",ITEM_HEAL_HP:"Heals {0} hearts",ITEM_MAX:"MAX",ITEM_CURRENT:"CURRENT",ITEM_OWNED:"OWNED",ITEM_FREE:"FREE",RANKS_UNRANKED:"Unranked",RANKS_BRONZE:"Bronze",RANKS_SILVER:"Silver",RANKS_GOLD:"Gold",RANKS_PLATINUM:"Platinum",RANKS_DIAMOND:"Diamond",RANKS_RANK_WRAPPER:"{0} Rank",BATTLE_REQUEST_NAME:"{0} (lvl {1})",BATTLE_REQUEST_ACCEPT:"Accept challenge?",LEADERBOARD_CLASS_TOP:"Class Leader",LEADERBOARD_CATCH_UP:"Catch Up to Your Class!",LEADERBOARD_CLASS_LEADERS:"Your Class Leaders",LEADERBOARD_CLASS_ERROR_LOADING:"There was an error loading your class...try again later",LEADERBOARD_CLASS_LEVEL_SHORT:"lvl {0}",LEADERBOARD_CLASS_LEVEL_LONG:"Level {0}",QUEST_JOB_COMPLETE:"Job Complete!",QUEST_PROGRESS_DEFEAT_MORE:"Defeat {0} more",QUEST_FOLLOW_PATH:"Follow Path",QUEST_PROGRESS_COLLECT_MORE:"Collect {0} more",QUEST_CLEAR:"Clear the {0}",QUEST_TODAY:"Today's Quest",QUEST_COMPLETE:"Quest Complete!",EFFECT_BOUNTY_COMPLETE:"Bounty Complete!",EFFECT_ATTACK_POWERFUL:"Powerful!",EFFECT_ATTACK_WEAK:"Weak...",ATTACK_SELECT_ATTACK:"Attack",ATTACK_SELECT_LEVEL:"Lvl. {0}",ATTACK_SELECT_ACTIONS:"actions",ATTACK_SELECT_CAPTURE:"capture?",ATTACK_SELECT_ESCAPE:"escape?",ATTACK_SELECT_MY_TEAM:"my team",ATTACK_SELECT_EPIC_SPELLS:"epic spells",ATTACK_SELECT_SPELLS:"spells",ATTACK_SELECT_ELEMENTS:"elements",EPIC_ARENA_BATTLE_SELECT:"EPICS ARENA BATTLE SELECT",EPIC_ARENA_CHALLENGE:"Challenge {0}",EPIC_ARENA_BUY_TOY:"buy toy",BUY_TOY_BUY_NOW:"buy toy now!",BUY_TOY_MESSAGE:"If you want to play this game, you need",BUY_TOY_EPIC_ATTACK:"To do this POWERFUL Epic attack, you need this Epic!",BUY_TOY_ASK_PARENT:"When you get an Epic, you get a REAL TOY, AND a POWERFUL level 20 pet to join your team!\n\n Ask your parents to help you get them on your team today!",BUY_TOY_REQUIRE_COMPUTER_MESSAGE:"Unfortunately, you cannot purchase toys from a mobile device at this time. \n\nPlease log into the game from the website on a computer to do so. We apologize for the inconvenience.",EPIC_NOT_READY_MESSAGE:"This Epic pet is not ready for battle right now.",EPIC_ATTACK_MESSAGE_TITLE:"epic attacks!",TOY_UNLOCK_JOINED:"{0} joined you!",TOY_UNLOCK_USE:"Use the Pets Menu to battle with him!",PLAYER_CARD_HEARTS:"[mail-heart] Hearts",PLAYER_CARD_STARS:"[mail-star] Stars",PLAYER_CARD_MAX:"MAX",PLAYER_CARD_GOLD:"[mail-gold] Gold",PLAYER_CARD_TOWER:"[mail-tower] Tower",PLAYER_CARD_FLOOR:"Floor {0}",PLAYER_CARD_ARENA:"[mail-challenge] Arena",PLAYER_CARD_WIN_LOSS:"[mail-challenge] W / L",PLAYER_CARD_CHANGE_STYLE_BUTTON_TOP:"Change",PLAYER_CARD_CHANGE_STYLE_BUTTON_BOT:"Style",PLAYER_CARD_GO_TO_HOUSE_BUTTON_TOP:"Go To",PLAYER_CARD_GO_TO_HOUSE_BUTTON_BOT:"House",PLAYER_CARD_VISIT_HOUSE_BUTTON_TOP:"Visit",PLAYER_CARD_VISIT_HOUSE_BUTTON_BOT:"House",PLAYER_CARD_GEAR_BUTTON_TOP:"View",PLAYER_CARD_GEAR_BUTTON_BOT:"Gear",PLAYER_CARD_KEY_ITEMS_BUTTON_TOP:"Key",PLAYER_CARD_KEY_ITEMS_BUTTON_BOT:"Items",PLAYER_CARD_GEMS_BUTTON_BOT:"Gems",PLAYER_CARD_STATS_BUTTON_TOP:"View",PLAYER_CARD_STATS_BUTTON_BOT:"Stats",PLAYER_CARD_BATTLE_BUTTON_TOP:"Battle!",PLAYER_CARD_CONFIRM_REMOVE_TITLE:"Removing Friend",PLAYER_CARD_CONFIRM_REMOVE_BODY:"Are you sure you want to remove {0} from your friends list?",PLAYER_CARD_REMOVE_FRIEND_TOP:"Remove",PLAYER_CARD_REMOVE_FRIEND_BOT:"Friend",PLAYER_CARD_CANCEL_FRIEND_TOP:"Cancel",PLAYER_CARD_CANCEL_FRIEND_BOT:"Request",PLAYER_CARD_ADD_FRIEND_TOP:"Friend",PLAYER_CARD_ADD_FRIEND_BOT:"Request",SPELLBOOK_TITLE:"My Spellbook",SPELLBOOK_DESCRIPTION:"Here are the spells you will see in battle.\n\nClick on a card to switch a spell.",CHOOSE_SPELL_TITLE:"Choose a Spell",DAILY_LOGIN_BONUS_TITLE:"Daily Login\nBonus!",DAILY_LOGIN_COME_BACK:"Come back tomorrow to get the next prize!",DAILY_LOGIN_DAY:"Day {0}",EPICS_ERROR_TOO_POWERFUL:"Epic attacks are too powerful for the Wizard Battle Arena!",EPICS_ERROR_ONCE_PER_CHALLENGE:"Oops! You can only use an Epic attack once per challenge set in the Epic Arena!",EPICS_ERROR_ONCE_PER_BATTLE:"You can only use one Epic attack per battle!",NO_CATCHING_MONSTER_ON_ISLAND:"Oops! You can't capture any monsters on this island.",ADD_FRIEND_PROMPT_USERNAME:"Enter your friend's username here!",FRIEND_REQUESTS_TITLE:"FRIEND REQUESTS",FRIEND_REQUEST_ADD_FRIEND:"Add friend?",FRIENDS_LIST_TITLE:"FRIENDS LIST",FRIENDS_LIST_COUNTER:"{0}/{1} Friends",FRIENDS_LIST_WAITING:"Waiting: ",FRIENDS_LIST_CONFIRM_CANCEL_BODY:"Are you sure you want to cancel this friend request?",FRIENDS_LIST_CONFIRM_CANCEL_TITLE:"Removing Friend Request",LOADING_LOWERCASE:"loading",LOADING_CAPITALIZE:"Loading",MAILBOX_DELETE_MESSAGE:"Are you sure you want to delete? It may contain something cool!",NAME_CHANGE_NAME_WIZARD:"Name Your Wizard",NAME_CHANGE_CHOOSE_TITLE:"Choose your Title",NAME_CHANGE_CHANGE_TO:"Change my name to...",NAME_CHANGE_REVERT_CHANGE:"Change back to original",NICKNAME_REQUIRE_MEMBERSHIP:"You need to become a member to unlock!",NICKNAME_REQUIRE_TECH_GOBBLER:"You need to catch a Tech Gobbler to unlock!",NICKNAME_REQUIRE_ROBOLYMPICS:"You need to win the Ribbon from the Robolympics to unlock!",NICKNAME_REQUIRE_ROBOT_SET:"You need to buy the Robot set to unlock!",NICKNAME_REQUIRE_PIRATE_SET:"You need to buy the Pirate set to unlock!",NICKNAME_REQUIRE_SHIPWRECK_COMPLETE:"You need to complete the Shipwreck Shore quest to unlock!",NICKNAME_REQUIRE_CATCH_MIMIC:"You need to catch a Mimic to unlock!",PETS_I_OWN:"Prodigy Pets I Own",PETS_MY_TEAM:"My Team",PETS_DESCRIPTION:"Description",PETS_DONT_OWN:"- you do not have this pet -",PETS_TYPE:"TYPE: {0}",PETS_LIFE:"LIFE: {0}",PETS_POWER:"POWER: {0}",PETS_GROWTH:"GROWTH: {0}",PETS_CONFIRM_LEAVE:"Are you sure you want to leave your pet? You will lose them forever.",PLAY_HOME_ENJOY_EVERYWHERE:"ENJOY PRODIGY EVERYWHERE!",PLAY_HOME_CONTINUE_ADVENTURE:"You can always continue your adventure at school AND at home! Just remember your username and password for wherever you wish to play!",PLAY_HOME_WRITE_DOWN_CREDENTIALS:"Here they are one more time, in case you forgot to write them down!",PLAY_HOME_DISPLAY_USERNAME:"Username: {0}",PLAY_HOME_DISPLAY_PASSWORD:"Password: {0}",POTION_USE_ALREADY_ONE:"There is already a potion in effect. Are you sure you want to use another one instead?",POTION_USE_UNSPORTSMAN:"Using items against fellow wizards is quite unsportsmanlike!",POTION_USE_ONLY_WILD:"Sorry, you can only use items in battles against wild monsters.",POUCH_CHOOSE_FOLLOW:"Choose your buddy",POUCH_CHOOSE_HAT:"Choose your hat",POUCH_CHOOSE_OUTFIT:"Choose your outfit",POUCH_CHOOSE_BOOTS:"Choose your boots",POUCH_CHOOSE_RING:"Choose your ring",POUCH_CHOOSE_SPELL:"Choose your spell",POUCH_CHOOSE_WEAPON:"Choose your wand",POUCH_SEARCH_FAILED:"No items containing your search were found",RANK_STORE_NOT_REACHED:"You have not reached this rank yet!",RANK_STORE_THIS_RANK:"this",RANK_STORE_HIGHER_BOUNTY_MESSAGE:"You need to reach {0} Bounty Points to unlock this item!",RANK_STORE_HIGHER_RANK_MESSAGE:"You need to reach {0} rank to unlock this item!",RATING_PROMPT:"How would you rate Prodigy?",SERVER_CHOOSE_WORLD_TITLE:"CHOOSE YOUR WORLD",SERVER_PICK_SAME_WORLD:"Pick the same world as your friends to play together!",SERVER_LOADING_LIST:"Loading world list...",SERVER_WIZARDS_ONLINE:" = wizards online",SERVER_CONNECTING_MESSAGE:"Connecting to {0}...",SERVER_ERROR_WORLD_FULL:"This world is full. Please select another world",SERVER_ERROR_WORLD_SELECTED_FULL:"The world you selected is full. Please try another.",SERVER_ERROR_FAILED_LOAD:"Could not load world list. Check your connection and try again.",SERVER_ERROR_FALLBACK:"Could not connect to world. Try again, or select another world.",SLOT_MACHINE_BONUS_STARS:"Bonus stars",SLOT_MACHINE_BONUS_DAMAGE:"Damage bonus",SLOT_MACHINE_REDUCE_DAMAGE:"Damage reduced",SLOT_MACHINE_HEAL_HP:"Heal HP",SLOT_MACHINE_DRAIN:"Drain",SLOT_MACHINE_BONUS_GOLD:"Bonus gold",SLOT_MACHINE_EVASION_UP:"Evasion up",STARTUP_TITLE:"Welcome to Prodigy!",STYLIST_TITLE:"STYLIST",STYLIST_BUY_LOOK:"Click to buy this look!",STYLIST_HAIR_COLOR:"Hair Color",STYLIST_MESSAGE_NEED_MORE_GOLD_BODY:"You need [gold]{0} to style your wizard. You only have [gold]{1}.",STYLIST_CONFIRM_MESSAGE_BODY:"Are you sure you want to style your wizard for {0} gold? \nThis will change your wizard's appearance.",STYLIST_CHOOSE_HAIR_STYLE:"CHOOSE HAIR STYLE",STYLIST_CHOOSE_HAIR_COLOR:"CHOOSE HAIR COLOR",STYLIST_CHOOSE_EYE_COLOR:"CHOOSE EYE COLOR",SETTINGS_TITLE:"OPTIONS",SETTINGS_SOUND:"Sound",SETTINGS_NETWORK:"Network",SETTINGS_GRAPHICS:"Graphics",SETTINGS_PARENT:"Parent",SETTINGS_ACCOUNT:"Account",SETTINGS_SOUND_VOLUME:"Sound Volume",SETTINGS_MUSIC_VOLUME:"Music Volume",SETTINGS_VOICE_VOLUME:"Voice Volume",SETTINGS_YOUR_WORLD:"Your world is: {0}",SETTINGS_OFFLINE:"You are playing in Offline Mode.",SETTINGS_LOGOUT:"Log Out",SETTINGS_RESTORE_DEFAULTS:"Restore Defaults",CUTSCENE_SKIP:"skip",PET_MENU_MY_TEAM:"MY PET TEAM",PET_MENU_BESTIARY:"PRODIGY BESTIARY",LOGIN_PRIVACY_POLICY:"Privacy Policy",LOGIN_WEBSITE:"Website",LOGIN_LOGGING_IN:"Logging in...",LOGIN_LOGGING_IN_GOOGLE:"Logging in with Google...",LOGIN_LOADING_SKILLS:"Loading skills...",LOGIN_LOADING_WORLDS:"Loading worlds...",LOGIN_USERNAME:"username",LOGIN_PASSWORD:"password",COMBAT_WON:"YOU WON!",COMBAT_LOST:"YOU LOST...",COMBAT_DRAW:"DRAW!",COMBAT_TITAN_HIT:"TITAN HIT!",COMBAT_WIZARD_BATTLE:"Wizard Battle!",COMBAT_BOSS_TIME:"Boss Time!",COMBAT_BOSS_BATTLE:"Boss Battle!",COMBAT_BOUNTY_BATTLE:"Bounty Battle!",COMBAT_PIPPET_BATTLE:"Pippet Battle!",COMBAT_TITAN_BATTLE:"Titan Battle!",COMBAT_DEFEAT_GUARDIAN:"Defeat the Guardian!",COMBAT_WEATHER_METER:"Recover the Weather O Meter!",COMBAT_SNOWBALL_FIGHT:"Snowball Fight!!",COMBAT_CLOUD_FIGHT:"Cloud Battle!",COMBAT_TRIPTROP_TRIO:"TripTrop Trio!",COMBAT_DEFEAT_AMBUSHERS:"Defeat the Ambushers!",COMBAT_SAVE_EUGENE:"Save Eugene!",COMBAT_SCARY_WORM:"Scary Wyrm Battle!",COMBAT_ATTACK_USED:"{0} used {1}",COMBAT_RAN_AWAY:"YOU RAN AWAY...",COMBAT_RUN_FAILED:"YOU COULDN'T RUN",COMBAT_CATCH_TOO_MANY_MESSAGE_BODY:"You have too many pets! You must release some before you can catch any more...",COMBAT_CATCH_GOLD_MESSAGE_BODY:"You need [gold]500 to catch this pet. You only have [gold]{0}.",COMBAT_CAST_BONUS_HIT:"Spell Power Bonus",CREATURE_IS_EVOLVING:"{0} is evolving into...",CREATURE_TRYING_TO_EVOLVE:"{0} is Trying to Evolve!",EVOLVE_STOP:"STOP EVOLVING",EVOLVE_NOW:"EVOLVE NOW!",DO_NOT_EVOLVE:"DO NOT EVOLVE",EVOLVE_LATER:"LATER",CREATURE_STOPPED_EVOLVING:"{0} stopped evolving!",SHIVERCHILL_FURNACE_LIT:"This furnace is already lit!",SHIVERCHILL_FURNACE_IN_ORDER:"You must light the furnaces in order!",SHIVERCHILL_FURNACE_FUEL:"This furnace needs some kind of fuel source...",SKYWATCH_REQUIRE_MASTER_KEY:"The door is locked. You require the Master Key.",SKYWATCH_REQUIRE_FACTORY_KEY:"The door is locked. You require the Factory Key.",CHEST_LOCKED_MESSAGE:"This chest is locked!\n\nYou need a [icon-{0}-{1}] to open it!",SEND_GIFT_FEATURE_SOON_MESSAGE_TITLE:"Send Gift",SEND_GIFT_FEATURE_SOON_MESSAGE_BODY:"This feature is coming soon!",MESSAGE_TITLE_UH_OH:"Uh oh!",MESSAGE_TITLE_OOPS:"Oops!",HOUSE_EDITOR_TITLE:"DESIGN-A-HOUSE",HOUSE_EDITOR_CONFIRM_PACK_UP:"Do you want to store all of your furniture? \n\nTo place it back in your room, just choose one of the above categories and select it from the bottom storage menu!",MOVE_HOUSE_CONFIRM:"Would you like to move here? The movers will put all of your items back in your inventory, and you won't be able to use your current house until you buy it again and move back.",HOUSE_VISITING_LOCKED:"Wizards can no longer visit your house.",HOUSE_VISITING_UNLOCKED:"Wizards can visit your house now!",HOUSE_PREVIEW_PURCHASE_MESSAGE:"Would you like to buy this house, or go back to your own?",COMING_SOON_MESSAGE:"Coming soon!",MEMBER_AD_VISIT_SITE_BODY:"Visit the Prodigy website to purchase a membership!",MEMBER_AD_ERROR_BODY:"There was an error contacting our server. Please try again later.",MEMBER_AD_SUCCESS_BODY:"Your membership will be applied after the next loading screen, however you may need to log out for the change to take effect.",MEMBER_AD_SUCCESS_TITLE:"SUCCESS!",MEMBER_AD_PURCHASE_FAILED_BODY:"Your purchase did not go through.",PURCHASING_MESSAGE_HAVE_ITEM_BODY:"You already have this item!",PURCHASING_MESSAGE_NEED_MORE_GOLD_BODY:"You need [gold]{0} for this item. You only have [gold]{1}.",PURCHASING_MESSAGE_NEED_MORE_CURRENCY_BODY:"You need [{0}]{1} for this item.\n\nYou only have [{0}]{2}.",PURCHASING_MESSAGE_TOO_MANY_ITEMS_BODY:"You already have too many of this item!",PURCHASING_MESSAGE_ALREADY_LIVE_BODY:"You already own this house!",PURCHASING_MESSAGE_ALREADY_LOOK_BODY:"You already look like this!",PURCHASING_MESSAGE_HAVE_PET_BODY:"You already have this pet!",PURCHASING_MESSAGE_TOO_MANY_PETS_BODY:"You have too many pets! You must release some in order to buy a new one.",WORLD_MAP_CONFIRM_TRAVEL:"{0}\n\nDo you want to travel here?",WORLD_MAP_ACADEMY_LOCKED:"The Academy is unreachable...for now!",WORLD_MAP_ZONE_LOCKED:"Choose one of the highlighted zones to travel to. You can come back here later.",WINTERFEST_CONFIRM_TRAVEL:"Do you want to travel to town and take part in Winterfest?",WINTERFEST_SIGN_TITLE:"Event Daily Task",WINTERFEST_SIGN_MESSAGE:"Every day during Winterfest, one of the Puppet Master's scouts tries to sneak into Lamplight Town, by disguising themselves as a snowman.\n\nFind the snowman and defeat the monster inside. If you do, you'll collect a bunch of Magic Snowflakes!",PUMPKINFEST_CONFIRM_TRAVEL:"Do you want to travel to town and take part in Pumpkinfest?",PUMPKINFEST_SIGN_TITLE:"Pumpkinfest Daily Task",PUMPKINFEST_SIGN_MESSAGE:"Each day, some tricksters are putting out the light of a pumpkin somewhere in Lamplight Town.\n\nIf you find that pumpkin, click on it, and defeat the trickster. You will receive a big prize of candy corn cash if you do!",STARLIGHT_CONFIRM_TRAVEL:"Do you want to travel to town and take part in the Starlight Festival?",STARLIGHT_MESSAGE_RETURN_LATER:"Come back after 3:00 pm to participate in the Starlight Festival.\n\nStar Shards can only be collected from wizard battles after that time!",STARLIGHT_SIGN_TITLE:"Starlight Festival Daily Task",STARLIGHT_SIGN_MESSAGE:"Once a day, a star falls somewhere into Lamplight Town. You must find and save it from the Puppet Master's evil forces! If you do, you'll collect a bunch of Star Shards!",SPRINGFEST_CONFIRM_TRAVEL:"Do you want to travel to town and take part in the Springfest?",SPRINGFEST_SIGN_TITLE:"Springfest Daily Task",SPRINGFEST_SIGN_MESSAGE:"Minions of the Puppet Master are searching for a clutch of Magic Eggs in Lamplight Town. Foxes and Bunnies agree you need to find those Eggs before the Puppet Master does!",LAMPLIGHT_DOOR_COMING_SOON_TITLE:"Locked!",LAMPLIGHT_DOOR_COMING_SOON_MESSAGE:'A message on the door says "Coming Soon!"',BACKPACK_BUTTON_HATS:"Hats",BACKPACK_BUTTON_OUTFITS:"Outfits",BACKPACK_BUTTON_WANDS:"Wands",BACKPACK_BUTTON_BOOTS:"Boots",BACKPACK_BUTTON_BUDDIES:"Buddies",BACKPACK_BUTTON_ITEMS:"Items",BACKPACK_BUTTON_CURRENCY:"Currency",SOCIAL_MENU_SEASON_DETAILS_TOP:"Season",SOCIAL_MENU_SEASON_DETAILS_BOT:"Details",SOCIAL_MENU_SEASON_LEADERS_TOP:"Season",SOCIAL_MENU_SEASON_LEADERS_BOT:"Leaders",SOCIAL_MENU_SEASON_CLASS_LEADERS_TOP:"Class",SOCIAL_MENU_SEASON_CLASS_LEADERS_BOT:"Leaders",SOCIAL_MENU_BATTLE_REQUESTS_BUTTON_TOP:"Battle",SOCIAL_MENU_BATTLE_REQUESTS_BUTTON_BOT:"Requests",SOCIAL_MENU_BOUNTIES_BUTTON_BOT:"Bounties",SOCIAL_MENU_AWARDS_BUTTON_BOT:"Awards",SOCIAL_MENU_BADGES_BUTTON_BOT:"Badges",WORLD_LAMPLIGHT_TOWN_CLASS_MODE:"Lamplight Town is very busy during school time. Come back after school to explore this fun town!",WORLD_YOUR_HOUSE_CLASS_MODE:"Every wizard needs a place to relax. Play Prodigy after school to decorate your house!",WORLD_DYNO_DIG_OASIS_CLASS_MODE:"Professor Scoog is busy at the Dyno Dig Oasis. Play Prodigy at home to build your fossil collection!",AWARDS_TITLE:"AWARDS",ACHIEVEMENT_UNLOCKED_TITLE:"Achievement Unlocked!",ACHIEVEMENT_GROUP_GENERAL:"General",ACHIEVEMENT_GROUP_BATTLE:"Battle",ACHIEVEMENT_GROUP_PVP:"PvP",ACHIEVEMENT_GROUP_LAMPLIGHT:"Lamplight Town",ACHIEVEMENT_GROUP_FIREFLY:"Firefly Forest",ACHIEVEMENT_GROUP_SHIVERCHILL:"Shiverchill Mountains",ACHIEVEMENT_GROUP_SKYWATCH:"Skywatch",ACHIEVEMENT_GROUP_BONFIRE:"Bonfire Spire",ACHIEVEMENT_GROUP_SHIPWRECK:"Shipwreck Shore",ACHIEVEMENT_GROUP_EDUCATION:"Education",ACHIEVEMENT_GROUP_EXPLORATION:"Exploration",ACHIEVEMENT_NEWBIE_NAME:"Newbie",ACHIEVEMENT_NEWBIE_DESC:"Complete the tutorial",ACHIEVEMENT_COIN_COLLECT_NAME:"Coin Collector",ACHIEVEMENT_COIN_COLLECT_DESC:"Earn [X] gold",ACHIEVEMENT_SHOPAHOLIC_NAME:"Shopaholic",ACHIEVEMENT_SHOPAHOLIC_DESC:"Spend [X] gold",ACHIEVEMENT_RUNWAY_MODEL_NAME:"Runway Model",ACHIEVEMENT_RUNWAY_MODEL_DESC:"Collect [X] different equipment items",ACHIEVEMENT_PACKRAT_NAME:"Packrat",ACHIEVEMENT_PACKRAT_DESC:"Collect [X] different collectable items",ACHIEVEMENT_ANTIQUARIAN_NAME:"Antiquarian",ACHIEVEMENT_ANTIQUARIAN_DESC:"Collect [X] different house items",ACHIEVEMENT_DECORATOR_NAME:"Interior Decorator",ACHIEVEMENT_DECORATOR_DESC:"Place [X] items in your house",ACHIEVEMENT_CATCH_PET_NAME:"Catch'm",ACHIEVEMENT_CATCH_PET_DESC:"Collect [X] pets",ACHIEVEMENT_PRODIGY_NAME:"Prodigy",ACHIEVEMENT_PRODIGY_DESC:"Reach level [X]",ACHIEVEMENT_SPELLMASTER_NAME:"Spellmaster",ACHIEVEMENT_SPELLMASTER_DESC:"Learn [X] spells",ACHIEVEMENT_MONSTER_HUNTER_NAME:"Monster Hunter",ACHIEVEMENT_MONSTER_HUNTER_DESC:"Defeat [X] monsters",ACHIEVEMENT_CHALLENGER_NAME:"Supreme Challenger",ACHIEVEMENT_CHALLENGER_DESC:"Win [X] Arena matches",ACHIEVEMENT_CHAMP_NAME:"The Champ",ACHIEVEMENT_CHAMP_DESC:"Get [X] points in the Arena",ACHIEVEMENT_TOURIST_NAME:"Tourist",ACHIEVEMENT_TOURIST_DESC:"Complete the tour of Lamplight Town",ACHIEVEMENT_FOREST_QUESTS_NAME:"Forestwalker",ACHIEVEMENT_FOREST_QUESTS_DESC:"Complete all quests in Firefly Forest",ACHIEVEMENT_FOREST_SET_NAME:"Forest Model",ACHIEVEMENT_FOREST_SET_DESC:"Purchase the full Firefly Outfit set",ACHIEVEMENT_FOREST_CHESTS_NAME:"Forest Explorer",ACHIEVEMENT_FOREST_CHESTS_DESC:"Open all chests in Firefly Forest",ACHIEVEMENT_FOREST_DEFEAT_WIZARDS_NAME:"Forest Champion",ACHIEVEMENT_FOREST_DEFEAT_WIZARDS_DESC:"Defeat all wizards in Firefly Forest",ACHIEVEMENT_SHIVERCHILL_QUESTS_NAME:"Iceclimber",ACHIEVEMENT_SHIVERCHILL_QUESTS_DESC:"Complete all quests in Shiverchill Mountains",ACHIEVEMENT_SHIVERCHILL_SET_NAME:"Mountaineer",ACHIEVEMENT_SHIVERCHILL_SET_DESC:"Purchase the full Shiverchill Outfit set",ACHIEVEMENT_SHIVERCHILL_CHESTS_NAME:"Mountain Explorer",ACHIEVEMENT_SHIVERCHILL_CHESTS_DESC:"Open all chests in Shiverchill Mountains",ACHIEVEMENT_SHIVERCHILL_DEFEAT_WIZARDS_NAME:"Mountain Champion",ACHIEVEMENT_SHIVERCHILL_DEFEAT_WIZARDS_DESC:"Defeat all wizards in Shiverchill Mountains",ACHIEVEMENT_TURN_UP_HEAT_NAME:"Turn Up the Heat",ACHIEVEMENT_TURN_UP_HEAT_DESC:"Light all of Bok's furnaces",ACHIEVEMENT_SKYWATCH_QUESTS_NAME:"Cloud Catcher",ACHIEVEMENT_SKYWATCH_QUESTS_DESC:"Complete all quests in Skywatch",ACHIEVEMENT_SKYWATCH_SET_NAME:"Air Ace",ACHIEVEMENT_SKYWATCH_SET_DESC:"Purchase the full Skywatch Outfit set",ACHIEVEMENT_SKYWATCH_CHESTS_NAME:"Skylarking",ACHIEVEMENT_SKYWATCH_CHESTS_DESC:"Open all chests in Skywatch",ACHIEVEMENT_SKYWATCH_DEFEAT_WIZARDS_NAME:"Champion of the Clouds",ACHIEVEMENT_SKYWATCH_DEFEAT_WIZARDS_DESC:"Defeat all wizards in Skywatch",ACHIEVEMENT_BONFIRE_QUESTS_NAME:"Master Chef",ACHIEVEMENT_BONFIRE_QUESTS_DESC:"Complete all quests in Bonfire Spire",ACHIEVEMENT_BONFIRE_SET_NAME:"Fire Fashion",ACHIEVEMENT_BONFIRE_SET_DESC:"Purchase the full Bonfire Spire Outfit set",ACHIEVEMENT_BONFIRE_CHESTS_NAME:"Volcanic Spelunker",ACHIEVEMENT_BONFIRE_CHESTS_DESC:"Open all chests in Bonfire Spire",ACHIEVEMENT_BONFIRE_DEFEAT_WIZARDS_NAME:"Magma Master",ACHIEVEMENT_BONFIRE_DEFEAT_WIZARDS_DESC:"Defeat all wizards in Bonfire Spire",ACHIEVEMENT_SHIPWRECK_QUESTS_NAME:"Check, Matey!",ACHIEVEMENT_SHIPWRECK_QUESTS_DESC:"Complete all quests in Shipwreck Shore",ACHIEVEMENT_SHIPWRECK_SET_NAME:"Inconceivable!",ACHIEVEMENT_SHIPWRECK_SET_DESC:"Collect all pieces of the Dire Pirate armor",ACHIEVEMENT_SHIPWRECK_CHESTS_NAME:"Treasure Hunter",ACHIEVEMENT_SHIPWRECK_CHESTS_DESC:"Open all chests in Shipwreck Shore",ACHIEVEMENT_SHIPWRECK_DEFEAT_WIZARDS_NAME:"Water Wizard",ACHIEVEMENT_SHIPWRECK_DEFEAT_WIZARDS_DESC:"Defeat all wizards in Shipwreck Shore",ACHIEVEMENT_SHIPWRECK_CLEAR_INK_NAME:"Ink-be-Gone",ACHIEVEMENT_SHIPWRECK_CLEAR_INK_DESC:"Clear all ink in Shipwreck Shore",ACHIEVEMENT_QUESTIONNAIRE_NAME:"Questionnaire",ACHIEVEMENT_QUESTIONNAIRE_DESC:"Answer [X] questions correctly",ACHIEVEMENT_SEQUENCING_NAME:"Sequencing",ACHIEVEMENT_SEQUENCING_DESC:"Answer [X] questions correctly in a row",ACHIEVEMENT_MASTER_SKILLS_NAME:"Don't Stop Me Now",ACHIEVEMENT_MASTER_SKILLS_DESC:"Master [X] skills",ACHIEVEMENT_TOWER_FLOORS_NAME:"Stairmaster",ACHIEVEMENT_TOWER_FLOORS_DESC:"Reach floor [X] of the Dark Tower",ACHIEVEMENT_COLISEUM_DEFEAT_NAME:"The Fall of Crios",ACHIEVEMENT_COLISEUM_DEFEAT_DESC:"Defeat [X] Coliseum opponents",ACHIEVEMENT_FINISHED:"Finished!",ACHIEVEMENT_COMPLETED:"Completed!",CHAT_ALL_RIGHT:"all right",CHAT_ALL_GOOD:"all good",CHAT_ABRACADABRA:"abracadabra!",CHAT_ANIMALS:"animals!",CHAT_ARE_YOU_COMING:"are you coming?",CHAT_ARE_YOU_LEAVING:"are you leaving?",CHAT_ARE_YOU_STAYING:"are you staying?",CHAT_ARE_YOU_HAVING_FUN:"are you having fun?",CHAT_BAD:"bad",CHAT_BUSY:"busy",CHAT_BYE:"bye",CHAT_BYE_BYE:"bye bye",CHAT_BORING:"boring",CHAT_BOUGHT_IT:"bought it",CHAT_BUT:"but...",CHAT_BARELY:"barely",CHAT_BECAUSE:"because",CHAT_CANT_RIGHT_NOW:"can't right now",CHAT_CHECK_IT_OUT:"check it out",CHAT_COME_OVER_HERE:"come over here",CHAT_CRUD:"crud",CHAT_DO_YOU_HAVE_A_MIN:"do you have a minute?",CHAT_DO_YOU_HAVE:"do you have...",CHAT_DID_YOU_SEE_THAT:"did you see that?",CHAT_DID_YOU_CATCH:"did you catch...",CHAT_DONT_BOTHER:"don't bother",CHAT_DUDE:"dude",CHAT_DEPENDS:"depends",CHAT_EVERYONE_LOOK:"everyone look!",CHAT_ELEMENTARY:"elementary",CHAT_FOLLOW_ME:"follow me",CHAT_FRIENDS:"friends?",CHAT_FORGET_IT:"forget it",CHAT_FUN:"fun!",CHAT_FOUND_YOU:"found you!",CHAT_FOUND_IT:"found it!",CHAT_FUNDERFUL:"funderful",CHAT_FREAKY:"freaky",CHAT_GO_AWAY:"go away",CHAT_GOOD:"good",CHAT_GOODBYE:"goodbye",CHAT_GREETINGS:"greetings!",CHAT_GOOD_MORNING:"good morning",CHAT_GOOD_NIGHT:"good night",CHAT_GOOD_AFTERNOON:"good afternoon",CHAT_GOOD_TO_KNOW:"good to know",CHAT_GHOSTS:"ghosts!",CHAT_GREAT:"great!",CHAT_GUESS_AGAIN:"guess again",CHAT_GUESS:"guess",CHAT_GOLLY:"golly",CHAT_GOT_TO_GO:"got to go",CHAT_HI:"hi",CHAT_HELLO:"hello",CHAT_HELLO_THERE:"hello there!",CHAT_HEY:"hey",CHAT_HOW_ARE_YOU:"how are you?",CHAT_HOW:"how?",CHAT_HAPPY:"happy",CHAT_HELP_ME:"help me",CHAT_I_CAUGHT_A:"i caught a...",CHAT_I_GOT_A:"i got a...",CHAT_I_HAVE_TO_GO:"i have to go",CHAT_I_HAVE_TO_LEAVE:"i have to leave",CHAT_I_LEVELED_UP:"i leveled up!",CHAT_I_LOVE_PRODIGY:"i love Prodigy!",CHAT_I_LIKE_YOUR_HAIR:"i like your hair",CHAT_I_LIKE_YOUR_OUTFIT:"i like your outfit",CHAT_I_LIKE_YOUR_HAT:"i like your hat",CHAT_I_LIKE_YOUR_WAND:"i like your wand",CHAT_I_LIKE_YOU_PET:"i like your pet",CHAT_I_LIKE_THIS_PLACE:"i like this place",CHAT_I_DONT_LIKE_IT_HERE:"i don't like it here",CHAT_I_LIKE_IT_HERE:"i like it here",CHAT_ITS_SPOOKY_HERE:"it's spooky here",CHAT_ITS_SUPER_RARE:"it's super rare!",CHAT_ITS_TIME:"it's time",CHAT_IM_RICH:"i'm rich!",CHAT_JUST_KIDDING:"just kidding!",CHAT_JUST_YOU_WAIT:"just you wait",CHAT_JOKING:"joking!",CHAT_JEALOUS:"jealous?",CHAT_KEEP_GOING:"keep going",CHAT_KEEP_IT_UP:"keep it up!",CHAT_KEEP_WALKING:"keep walking",CHAT_LEAVE_ME_ALONE:"leave me alone",CHAT_LOOK:"look",CHAT_LOOK_AT_THIS:"look at this!",CHAT_LOVE_IT:"love it!",CHAT_LETS_GO:"let's go!",CHAT_LETS_BATTLE:"let's battle!",CHAT_LET_ME_SEE:"let me see",CHAT_LOCKED:"locked!",CHAT_MY_FAVOURITE_IS:"my favorite is...",CHAT_MY_FAVOURITE_ITEM_IS:"my favorite item is...",CHAT_MY_FAVOURITE_PET_IS:"my favorite pet is...",CHAT_MAYBE:"maybe",CHAT_MAKE_ME:"make me",CHAT_MADE_IT:"made it!",CHAT_MANY_THANKS:"many thanks!",CHAT_MADE_TONS_OF_GOLD:"made tons of gold!",CHAT_NEAT:"neat",CHAT_NO:"no",CHAT_NOT_RIGHT_NOW:"not right now",CHAT_NOT_TODAY:"not today",CHAT_NEVER_MIND:"never mind",CHAT_NAH:"nah",CHAT_NO_CAN_DO:"no can do",CHAT_NEVER:"never",CHAT_NOW_QUESTION:"now?",CHAT_NOW:"now",CHAT_NO_WAY:"nooooo way!",CHAT_OVER:"over",CHAT_OVER_HERE:"over here",CHAT_ONE_OF_THESE_IS:"one of these is a...",CHAT_OKAY:"okay",CHAT_OMINOUS:"ominous",CHAT_PUYOY:"puyoy!",CHAT_PERHAPS:"perhaps",CHAT_PARTY_TIME:"party time!",CHAT_PRETTY_COOL:"pretty cool...",CHAT_PRACTICE:"practice!",CHAT_QUACK_QUACK:"quack quack",CHAT_QUITE:"quite",CHAT_QUIET:"quiet!",CHAT_RIGHT:"right",CHAT_RIGHT_BEHIND_YOU:"right behind you",CHAT_RIBBIT:"ribbit!",CHAT_RIGHT_OVER_HERE:"right over here",CHAT_RIGHT_THERE:"right there",CHAT_SEE_YOU_LATER:"see you later",CHAT_SEE_YA:"see ya",CHAT_SEE:"see?",CHAT_SORRY:"sorry",CHAT_SAFE_AND_SOUND:"safe and sound!",CHAT_SHHH:"shhhhh!",CHAT_SOUNDS_LIKE:"sounds like...",CHAT_SEEMS_LIKE_IT:"seems like it",CHAT_SOMEONE_SAID_SO:"someone said so",CHAT_SOMEDAY:"someday...",CHAT_THANK_YOU:"thank you",CHAT_THERE_YOU_ARE:"there you are",CHAT_THINK_ABOUT_IT:"think about it",CHAT_TIME_FOR_BED:"time for bed",CHAT_TIME_FOR_DINNER:"time for dinner!",CHAT_TIME_FOR_LUNCH:"time for lunch!",CHAT_TIME_FOR_SUPPER:"time for supper!",CHAT_TIME_TO_GET_UP:"time to get up",CHAT_TIME_TO_GO:"time to go",CHAT_TERRIBLE:"terrible",CHAT_TELL_YOU_WHAT:"tell you what...",CHAT_VERY_GOOD:"very good",CHAT_WHATS_UP:"what's up?",CHAT_WHO:"who?",CHAT_WHO_ARE_YOU:"who are you?",CHAT_WHY:"why?",CHAT_WHAT:"what?",CHAT_WHERE:"where?",CHAT_YES:"yes",CHAT_YOU_COMING:"you coming?",CHAT_YOU_LOOK_COOL:"you look cool!",CHAT_YOU_STILL_THERE:"you still there?",CHAT_YOLO:"yolo!",CHAT_YOURE_WELCOME:"you're welcome",CHAT_ZZZ:"zzz",CHAT_DRAGONS:"dragons!!!",CHAT_DRAGONS_COMING:"dragons are coming!",CHAT_DRAGONS_HERE:"dragons are here!",CHAT_DRAGONS_COOL:"dragons are COOL!",CHAT_DRAGONS_WANT:"i want a Dragon.",CHAT_DRAGONS_SEEN:"have you seen the Dragons?",CHAT_CHILL_CHAR_COOL:"chill & Char are cool!",CHAT_TIDUS_COOL:"tidus is cool!",CHAT_ECLIPSE_COOL:"eclipse is cool!",CHAT_LUMA_COOL:"luma is cool!",CHAT_CHILL_CHAR_FAVOURITE:"chill & Char are my favorite.",CHAT_TIDUS_FAVOURITE:"tidus is my favorite.",CHAT_ECLIPSE_FAVOURITE:"eclipse is my favorite.",CHAT_LUMA_FAVOURITE:"luma is my favorite.",CHAT_DRAGONS_LIKE:"i like Dragons.",CHAT_ABRACA_DAB_RA:"abracaDABra",CHAT_FEEL_LIKE_DANCING:"i feel like DANCING!",CHAT_LETS_DANCE:"let's Dance!",CHAT_SHOW_FUNNY_FACE:"show me your funny face",CHAT_ASK_PARENTS:"i always ask my parents",CHAT_PARENTS_BEST:"my parents are the best",CHAT_MEMBER_AWESOME:"being a member is the best",CHAT_TEACHER_AWESOME:"my teacher is awesome",CHAT_BUNNIES_ARE_BEST:"Bunnies are the best!",CHAT_I_LIKE_BUNNIES:"I like Bunnies",CHAT_GO_BUNNY_BANDITS:"Go Bunny Bandits!",CHAT_DO_YOU_LIKE_BUNNIES:"Do you like bunnies?",CHAT_HIPPITY_HOP:"Hippity-Hop",CHAT_HOP_HOP:"Hop, hop, hop",CHAT_HARRIET_HOOD_RULES:"Harriet Hood rules!",CHAT_FOXES_ARE_BEST:"Foxes are the best!",CHAT_I_LIKE_FOXES:"I like Foxes",CHAT_GO_FOX_KNIGHTS:"Go Fox Knights!",CHAT_DO_YOU_LIKE_FOXES:"Do you like foxes?",CHAT_WHAT_DOES_FOX_SAY:"What does the fox say?",CHAT_DON_ZORRO_FANTASTICO:"Don Zorro is fantastico",NPC_NAME_GUARD_SLIME:"Guard Slime",NPC_NAME_QUEEN_GOO_LIA:"Queen Goo-lia",NPC_NAME_HOWARD_CORNELIUS:"Howard Cornelius",NPC_NAME_MAMA_STAR:"Mama Star",NPC_NAME_MOZZA_ELLE:"Mozza Ella",NPC_NAME_SCIENTIST_SLIME:"Scientist Slimerella",NPC_NAME_SIR_VEY:"Sir Vey",NPC_NAME_SWOOPY:"Swoopy",NPC_NAME_TOY_MERCHANT:"Toy Merchant",NPC_NAME_ARENA_CALLER:"Arena Caller",NPC_NAME_ARENA_MERCHANT:"Arena Merchant",NPC_NAME_BROCCOLINA:"Broccolina",NPC_NAME_EUGENE:"Eugene",NPC_NAME_EVE:"Eve",NPC_NAME_CEBOLLINI:"Cebollini",NPC_NAME_WORKER_SLIME:"Worker Slime",NPC_NAME_SCOOG:"Scoog",NPC_NAME_MERCHANT:"Merchant",NPC_NAME_MARY_FIRE:"Mary Fire",NPC_NAME_BLAZE:"Blaze",NPC_NAME_GUARDIAN:"Guardian",NPC_NAME_PROFESSOR_SCOOG:"Professor Scoog",NPC_NAME_LUMINITE:"Bone-carrying Luminite",NPC_NAME_MOOG_ASSISTANT:"Moog's Assistant",NPC_NAME_ASSISTANT_SPOKES:"Assistant Spokes",NPC_NAME_EGG_COLLECTOR:"Egg Collector",NPC_NAME_MOOGS_HENCHMAN:"Moog's Henchman",NPC_NAME_ROCKSY:"Rocksy",NPC_NAME_STAMPSY:"Stampsy",NPC_NAME_CRABBSY:"Crabbsy",NPC_NAME_PRIMO_AND_MOOG:"Primo and Moog",NPC_NAME_LUCKY_JACK:"Lucky Jack",NPC_NAME_WOODSMAN_MIKE:"Woodsman Mike",NPC_NAME_CALEB_FORESTMASTER:"Caleb Forestmaster",NPC_NAME_MILLY:"Milly",NPC_NAME_FOREST_THIEF:"Forest Thief",NPC_NAME_GERALD:"Gerald",NPC_NAME_TRIPTROP_TED:"TripTrop Ted",NPC_NAME_TRIPTROP_TOM:"TripTrop Tom",NPC_NAME_TRIPTROP_TAK:"TripTrop Tak",NPC_NAME_CLANKBOOT:"Clankboot",NPC_NAME_IVIRA:"Ivira of the Greenwood",NPC_NAME_FIRIA:"Firia the Chandragon",NPC_NAME_RUTHERFORD:"Rutherford Aguafencer",NPC_NAME_GEROME:"Gerome of the North",NPC_NAME_ICE_WORM:"Ice Wyrm",NPC_NAME_CHILLY:"Chilly",NPC_NAME_FROSTY:"Frosty",NPC_NAME_FREEZY:"Freezy",NPC_NAME_UNKNOWN:"???",NPC_NAME_MARY_MOSS:"Mary Moss",NPC_NAME_BARRY_BOSS:"Barry Boss",NPC_NAME_FROSTY_STORM:"Frosty Storm",NPC_NAME_STORMY_STORM:"Stormy Storm",NPC_NAME_THIEF:"Thief",NPC_NAME_RAINY_STORM:"Rainy Storm",NPC_NAME_SANDY_STORM:"Sandy Storm",NPC_NAME_MIRA_SHADE:"Mira Shade",NPC_NAME_BENNI:"Benni",NPC_NAME_FLORA:"Flora",NPC_NAME_SLURPY:"Slurpy",NPC_NAME_HARVEY:"Harvey",NPC_NAME_PIPPET:"Pippet",NPC_NAME_PUPPETMASTER:"The Puppet Master",NPC_NAME_CHESTER_COPPERPAN:"Chester Copperpan",NPC_NAME_LOTNEY_CHUNK:"Lotney Chunk",NPC_NAME_OLD_ONE:"Old One",NPC_NAME_TITAN_BARRIER:"Titan Barrier",NPC_NAME_SHOPKEEPER_FIGG:"Shopkeeper Figg",NPC_NAME_BOARDY:"Boardy",NPC_NAME_JELLY_JIM:"Jelly Jim",NPC_NAME_WHEELER:"Wheeler",NPC_NAME_SPINNER:"Spinner",NPC_NAME_DON_ZORRO:"Don Zorro",NPC_NAME_VERNA:"Verna",NPC_NAME_BARGO:"Bargo",NPC_NAME_HANK:"Hank",NPC_NAME_MIKE:"Mike",NPC_NAME_HARRIET_HOOD:"Harriet Hood",WORLD_FIREFLY_FOREST:"Firefly Forest",WORLD_FIREFLY_FOREST_DESC:"Help Flora reclaim her forest from pesky monsters, thieves, and a sleeping giant. Learn Earth spells and earn the Warden Keystone of Firefly Forest!",WORLD_SHIVERCHILL_MOUNTAINS:"Shiverchill Mountains",WORLD_SHIVERCHILL_MOUNTAINS_DESC:"Bok needs your help! His mountain is frozen over and only a wizard can help reclaim his throne! Learn Ice spells and earn the Warden Keystone of Shiverchill Mountains!",WORLD_SKYWATCH:"Skywatch",WORLD_SKYWATCH_DESC:"Benni and Broccolina are in need of a wizard to help them get Skywatch back under control. Learn Storm spells and earn the Warden Keystone of Skywatch!",WORLD_DYNO_DIG_OASIS:"Dyno Dig Oasis",WORLD_DYNO_DIG_OASIS_DESC:"Professor Scoog is in need of a wizard just like you! Encounter extinct monsters and dig up fossils!",WORLD_EPICS_SUBSPACE:"Epics Subspace",WORLD_EPICS_SUBSPACE_DESC:"A mysterious portal that leads to the realm of the fabled Epics, the most powerful pets in history!",WORLD_BONFIRE_SPIRE:"Bonfire Spire",WORLD_BONFIRE_SPIRE_DESC:"Slurpy is in need of a wizard just like you! Help him to learn how to cook, learn Fire spells, and earn the Warden Keystone of Bonfire Spire!",WORLD_SHIPWRECK_SHORE:"Shipwreck Shore",WORLD_SHIPWRECK_SHORE_DESC:"Defeat the Puppet Master's sea beast, a monster from the old war against the Order of Influence; learn Water spells; and earn the Warden Keystone of Shipwreck Shore!",WORLD_DARK_TOWER:"Dark Tower",WORLD_DARK_TOWER_DESC:"The Dark Tower is home to Mira, who has a challenge for wizards like you! Climb to the top and earn a powerful prize!",WORLD_LAMPLIGHT_TOWN:"Lamplight Town",WORLD_LAMPLIGHT_TOWN_DESC:"Home of the famous Academy, the town has all sorts of wonderful things for wizards to do!",WORLD_THE_ACADEMY:"The Academy",WORLD_THE_ACADEMY_DESC:"The Academy floats",WORLD_YOUR_HOUSE:"Your House",WORLD_YOUR_HOUSE_DESC:"This is your house! Customize it any way you like, and show it off to your friends!",WORLD_LOST_ISLAND:"The Lost Island",WORLD_LOST_ISLAND_DESC:"A mysterious island has appeared, and adorable critters on it need your help! Who knows what adventures await you here?",TITLE_LOGIN:"Login",TEXTBOX_TITLE_CLASS_CODE:"Class Code:",TEXTBOX_TITLE_PARENT_EMAIL:"Parent Email:",TEXTBOX_TITLE_FIRST_NAME:"First Name:",TEXTBOX_TITLE_LAST_NAME:"Last Name:",TEXTBOX_TITLE_LAST_NAME_INITIAL:"Last-Name Initial:",TEXTBOX_TITLE_PASSWORD:"Password:",TEXTBOX_TITLE_REENTER_PASSWORD:"Re-enter password:",TEXTBOX_TITLE_USERNAME:"Username:",PASSWORD_ERROR_TOO_SHORT:"Password is too short\n (4 to 10 letters)",PASSWORD_ERROR_TOO_LONG:"Password is too long\n (4 to 10 letters)",PASSWORD_ERROR_NO_SPACES:"Password cannot contain spaces",PASSWORD_ERROR_NO_MATCH:"Passwords match: no",PASSWORD_ERROR_MATCHES:"Passwords match: yes",CURRENCY_GOLD_COINS:"Gold Coins",CURRENCY_BOUNTY_POINTS:"Bounty Points",TIMER_FORMAT:"{0}d {1}h {2}m",TIMER_FORMAT_DAYS:"{0} days",MAP_ACADEMY_GREATHALL:"Academy - Great Hall",MAP_ACTIVITY_NORTHWEST:"Northwest Area",MAP_ACTIVITY_WESTERN_SHORE:"Western Shore",MAP_ACTIVITY_SWING_BRIDGE:"Swing Bridge",MAP_ACTIVITY_ISLAND_CENTER:"Island Center",MAP_ACTIVITY_CENTRAL_VILLAGE:"Central Village",MAP_ACTIVITY_NORTHEAST:"Northeast Area",MAP_ACTIVITY_RIVER_BRIDGE:"River Bridge",MAP_BONFIRE_SPIRE_VOLCANO_ENTRANCE:"Volcano Entrance",MAP_BONFIRE_SPIRE_ROYAL_KITCHEN:"Royal Kitchen",MAP_BONFIRE_SPIRE_GARDEN_GETAWAY:"Garden Getaway",MAP_BONFIRE_SPIRE_THRONE_ROOM:"Throne Room",MAP_BONFIRE_SPIRE_OUTER_SLIMEBURBIA:"Outer Slimeburbia",MAP_BONFIRE_SPIRE_PALM_TERRACE:"Palm Terrace",MAP_BONFIRE_SPIRE_THRONE_ROOM_ENTRANCE:"Throne Room: Entrance",MAP_BONFIRE_SPIRE_LAVA_PITS:"Lava Pits",MAP_BONFIRE_SPIRE_SLIME_SHANTY:"Slime Shanty",MAP_BONFIRE_SPIRE_PALM_PATH:"Palm Path",MAP_BONFIRE_SPIRE_RED_HOT_RIVER:"Red-Hot River",MAP_BONFIRE_SPIRE_VOLCANO_JUNCTION:"Volcanic Junction",MAP_BONFIRE_SPIRE_VOLCANO_VILLAGE:"Volcano Village",MAP_BONFIRE_SPIRE_PITFALL_TERRACE:"Pitfall Terrace",MAP_BONFIRE_SPIRE_VOLCANIC_CAVERN:"Volcanic Cavern",MAP_BONFIRE_SPIRE_FIREWATCH_ROAD:"Firewatch Road",MAP_BONFIRE_SPIRE_VOLCANIC_SANCTUM:"Volcanic Sanctum",MAP_BONFIRE_SPIRE_MOLTEN_ENCLAVE:"Molten Enclave",MAP_BONFIRE_SPIRE_FIERY_ALCOVE:"Fiery Alcove",MAP_DYNO_DIG_OASIS:"Dyno Dig Oasis",MAP_DYNO_DIG_MUSEUM:"Museum",MAP_FOREST_THE_OLD_ROAD:"The Old Road",MAP_FOREST_STONEFISH_BEACH:"Stonefish Beach",MAP_FOREST_BIG_TREE:"The Big Tree",MAP_FOREST_OLD_ROAD_REMAINS:"Old Road Remains",MAP_FOREST_FIREFLY_CROSSING:"Firefly Crossing",MAP_FOREST_CROSSROADS:"The Crossroads",MAP_FOREST_GRASSY_CLEARING:"Grassy Clearing",MAP_FOREST_FISHERMANS_POND:"Fisherman's Pond",MAP_FOREST_FIREFLY_CLEARING:"Firefly Clearing",MAP_FOREST_MOUNTAIN_GATE:"Mountain Gate",MAP_FOREST_MOUNTAIN_PASS:"Mountain Pass",MAP_HOUSE_PALLET_PASS:"Pallet Pass",MAP_HOUSE_STARTER_HOUSE:"Starter House",MAP_HOUSE_EXTERIOR:"Front Yard",MAP_LAMPLIGHT_MARKET:"Market",MAP_LAMPLIGHT_COLISEUM:"Coliseum",MAP_LAMPLIGHT_HISTORY_DISTRICT:"History District",MAP_LAMPLIGHT_SOUTHERN_DOCK:"Southern Dock",MAP_LAMPLIGHT_LOWER_INTERSECTION:"Lower Intersection",MAP_LAMPLIGHT_TOWN_SQUARE:"Town Square",MAP_LAMPLIGHT_OUTSKIRTS:"Lamplight Outskirts",MAP_LAMPLIGHT_ACADEMY_CROSSROADS:"Academy Crossroads",MAP_LAMPLIGHT_ACADEMY_ENTRANCE:"Academy Entrance",MAP_LAMPLIGHT_NORTHWEST_COURT:"Northwest Court",MAP_LAMPLIGHT_VENDORS_PLAZA:"Vendor's Plaza",MAP_LAMPLIGHT_PET_PARK:"Pet Park",MAP_LAMPLIGHT_BURROW:"The Burrow",MAP_LAMPLIGHT_FORT_FOX:"Fort Fox",MAP_SHIVERCHILL_FURNACE_ROOM:"Furnace Room",MAP_SHIVERCHILL_HIDDEN_ROOM:"Hidden Room",MAP_SHIVERCHILL_MOUNTAIN_PASS:"Mountain Pass",MAP_SHIVERCHILL_RUINED_PASSAGE:"Ruined Passage",MAP_SHIVERCHILL_RUINED_STEPS:"Ruined Steps",MAP_SHIVERCHILL_ROYAL_PASSAGE:"Royal Passage",MAP_SHIVERCHILL_GATE:"Shiverchill Gate",MAP_SHIVERCHILL_BORDERLAND:"Borderland",MAP_SHIVERCHILL_BOKS_CAVE:"Bok's Cave",MAP_SHIVERCHILL_TREASURE_ROOM:"Treasure Room",MAP_SHIVERCHILL_RUINED_ENTRANCE:"Ruined Entrance",MAP_SHIVERCHILL_RAIL_RUINS:"Rail Ruins",MAP_SHIVERCHILL_MOUNTAIN_VALLEY:"Mountain Valley",MAP_SHIVERCHILL_WORMS_REST:"Wyrm's Rest",MAP_SHIVERCHILL_FROZEN_PASS:"Frozen Pass",MAP_SHIVERCHILL_THE_CHASM:"The Chasm",MAP_SHIPWRECK_SHORE_FAR_BEACH:"Far Beach",MAP_SHIPWRECK_SHORE_SEAWEED_SKYSCRAPERS:"Seaweed Skyscrapers",MAP_SHIPWRECK_SHORE_SECRET_SHORE_SPACE:"Secret Shore Space",MAP_SHIPWRECK_SHORE_SECLUDED_SHORE:"Secluded Shore",MAP_SHIPWRECK_SHORE_UNDERWATER_ALCOVE:"Underwater Alcove",MAP_SHIPWRECK_SHORE_LOWER_DECK_HALL:"Lower Deck Hall",MAP_SHIPWRECK_SHORE_CROWS_NEST:"Crow's Nest",MAP_SHIPWRECK_SHORE_UPPER_DECK:"Upper Deck",MAP_SHIPWRECK_SHORE_CARGO_HOLD:"Cargo Hold",MAP_SHIPWRECK_SHORE_LOWER_DECK:"Lower Deck",MAP_SHIPWRECK_SHORE_SECOND_SHIP_RAMP:"Second Ship Ramp",MAP_SHIPWRECK_SHORE_BROKEN_SHIP_BED:"Broken Ship Bed",MAP_SHIPWRECK_SHORE_SEAWEED_SANCTUARY:"Seaweed Sanctuary",MAP_SHIPWRECK_SHORE_SECRET_SHORE:"Secret Shore",MAP_SHIPWRECK_SHORE_SHORELINE:"Shoreline",MAP_SHIPWRECK_SHORE_SUNKEN_SECRET:"Sunken Secret",MAP_SHIPWRECK_SHORE_CAPNS_QUARTERS:"Cap'n's Quarters",MAP_SHIPWRECK_SHORE_SAND_CITY:"Sand City",MAP_SHIPWRECK_SHORE_DEEP_WATER:"Deep Water",MAP_SHIPWRECK_SHORE_SAND_TOWN:"Sand Town",MAP_SHIPWRECK_SHORE_DIVE_DOCK:"Dive Dock",MAP_SHIPWRECK_SHORE_DESOLATE_DECK:"Desolate Deck",MAP_SHIPWRECK_SHORE_BROKEN_BOWSPRIT:"Broken Bowsprit",MAP_SKYWATCH_LOWER_BEANOVATOR:"Lower Bean-o-vator",MAP_SKYWATCH_UPPER_BEANOVATOR:"Upper Bean-o-vator",MAP_SKYWATCH_END_CHAMBER:"End Chamber",MAP_SKYWATCH_BLAST_DOORS:"Blast Doors",MAP_SKYWATCH_OLD_MANS_ROOM:"Factory: Old Man's Room",MAP_SKYWATCH_MAIN_HALL:"Factory: Main Hall",MAP_SKYWATCH_WIND_TUNNEL:"The Wind Tunnel",MAP_SKYWATCH_BREEZY_PASS:"Breezy Pass",MAP_SKYWATCH_FACTORY_ENTRANCE:"Factory Entrance",MAP_SKYWATCH_FACTORY_MAIN_HALL:"Factory: Main Hall",MAP_SKYWATCH_SKY_SHOWER:"Sky Shower",MAP_SKYWATCH_CLOUDY_PASS:"Cloudy Pass",MAP_SKYWATCH_INNER_SCREWBALL_SHACK:"The Screwball Shack: Inner",MAP_SKYWATCH_SCREWBALL_SHACK:"The Screwball Shack",MAP_SKYWATCH_GREAT_GRATERS:"The Great Graters",MAP_SKYWATCH_GARDENERS_HUT_INNER:"Gardener's Hut: Inner",MAP_SKYWATCH_GARDENERS_HUT_EXTERIOR:"Gardener's Hut: Exterior",MAP_SKYWATCH_OUTSKIRTS:"Skywatch Outskirts",MAP_TITAN_GROUNDS:"Titan Grounds",MAP_TOY_ZONE_DRAGONS_LAIR:"Dragon Lair",MAP_TOY_ZONE_MYSTIC_ROTUNDA:"Mystic Rotunda",MAP_TOY_ZONE_EPIC_ZONE:"Epic Zone",MAP_DARK_TOWER_ENTRANCE:"Dark Tower Entrance",MAP_DARK_TOWER_FLOOR:"Dark Tower Floor ",MAP_DARK_TOWER_SHOWDOWN:"Dark Tower Showdown",QUESTS_DINO_NAME_0:"Welcome to OINC",QUESTS_DINO_DESC_0:"Scallys are causing problems for OINC, challenge a few of them to help out",QUESTS_DINO_NAME_1:"Can You Dig It?",QUESTS_DINO_DESC_1:"The Professor wants you to bring him a Terrosaur bone",QUESTS_DINO_NAME_2:"Hats Off",QUESTS_DINO_DESC_2:"Find the monster with the Professor's hat and defeat it",QUESTS_DINO_NAME_3:"Getting Hot in Here",QUESTS_DINO_DESC_3:"Defeat fire monsters to save the oasis from roasting",QUESTS_DINO_NAME_4:"Learning Experience",QUESTS_DINO_DESC_4:"Find and defeat Terromites to learn about their behaviour",QUESTS_DINO_NAME_5:"TAG! You're it!",QUESTS_DINO_DESC_5:"Collect tags from Dynos",QUESTS_DINO_NAME_6:"Moog's Evil Scheme - A Novel",QUESTS_DINO_DESC_6:"Track down Moog's men and take a copy of his evil scheme",QUESTS_DINO_NAME_7:"Spoke Too Soon",QUESTS_DINO_DESC_7:"Find and defeat Moog's head assistant, Spokes",QUESTS_DINO_NAME_8:"Crabwalking",QUESTS_DINO_DESC_8:"Find the Dynos that are stealing equipment from Scoog",QUESTS_DINO_NAME_9:"Egg Hunt",QUESTS_DINO_DESC_9:"Collect the eggs from Moog's egg collectors",QUESTS_DINO_NAME_10:"The Ptrouble with Pterrotells",QUESTS_DINO_DESC_10:"Defeat pterrotells for Moog, and discover what has them so cranky",QUESTS_DINO_NAME_11:"Dyno Force Four",QUESTS_DINO_DESC_11:"Defeat Moog's henchman and his Dynos!",QUESTS_DINO_NAME_12:"Nesting Grounds",QUESTS_DINO_DESC_12:"Defeat different Dynos, and follow them to the nest",QUESTS_DINO_NAME_13:"The Bigger They Are...",QUESTS_DINO_DESC_13:"Defeat the incoming Dynos!",QUESTS_DINO_NAME_14:"Prehistoric Panic",QUESTS_DINO_DESC_14:"It's Professor Moog and the Primo Dyno! Defeat them!",QUESTS_BONFIRE_SPIRE_PULL_LEVER:"Pull the Lever",QUESTS_BONFIRE_SPIRE_ADD_INGREDIENT:"Add Ingredient",QUESTS_BONFIRE_SPIRE_ATTEND_DINNER:"Attend Dinner",QUESTS_BONFIRE_SPIRE_TALK_TO_GUARDS:"Talk to Guards",QUESTS_BONFIRE_SPIRE_SAVE_GATHERERS:"Save Gatherers",QUESTS_BONFIRE_SPIRE_OFFER_DISH:"Offer the Dish",QUESTS_BONFIRE_SPIRE_FIND_KEY:"Find the Key",QUESTS_BONFIRE_SPIRE_UNLOCK_CHEST:"Unlock the Chest",QUESTS_BONFIRE_SPIRE_DEFEAT_CHEF:"Defeat the Chef!",QUESTS_BONFIRE_SPIRE_TALK_TO_QUEEN:"Talk to Queen",QUESTS_FOREST_TALK_TO_MERCHANT:"Talk to Merchant",QUESTS_FOREST_DEFEAT_THE_TRIO:"Defeat the Trio!",QUESTS_FOREST_FIND_GERALD:"Find Gerald",QUESTS_FOREST_FIX_FLUTE:"Fix the Flute",QUESTS_FOREST_WAKE_GERALD:"Wake up Gerald",QUESTS_SHIVERCHILL_ACTIVATE_FURNACE:"Activate Furnace",QUESTS_SHIVERCHILL_EXPLORE_CAVES:"Explore Caves",QUESTS_SHIVERCHILL_FIND_SHOVEL:"Find the Shovel",QUESTS_SHIVERCHILL_HELP_MINER:"Help the Miner",QUESTS_SHIVERCHILL_UNKNOWN:"???",QUESTS_SHIVERCHILL_CHECK_THRONE:"Check Throne",QUESTS_SHIVERCHILL_DEFEAT_ICE_WORM:"Defeat Ice Wyrm",QUESTS_SKYWATCH_GET_DEVICE:"Get the Device",QUESTS_SKYWATCH_FIND_BROCCOLINA:"Find Broccolina",QUESTS_SKYWATCH_TRIM_VINES:"Trim the Vines",QUESTS_SKYWATCH_INSPECT_MACHINE:"Inspect Machine",QUESTS_SKYWATCH_GET_KEY:"Get the Key",QUESTS_SKYWATCH_FIND_EUGENE:"Find Eugene",QUESTS_SKYWATCH_DEFEAT_BOSS:"Defeat the Boss",QUESTS_ACTIVITY_ZONE_DAILY_SINGLE:"Defeat 6 {0}",QUESTS_ACTIVITY_ZONE_DAILY_PLURAL:"Defeat 6 {0}s",QUESTS_SHIPWRECK_TAKE_PHOTO:"Take Picture",QUESTS_SHIPWRECK_LOOK_AROUND:"Look Around",QUESTS_SHIPWRECK_FIND_JIM:"Find Jelly Jim",QUESTS_SHIPWRECK_CLEAR_INK:"Clear all ink",QUESTS_SHIPWRECK_OPEN_DOOR:"Open the Door",QUESTS_SHIPWRECK_DEFEAT_BOSS:"Defeat Boss",GOOGLE_AUTH_FAIL_DEFAULT:"Signing in with Google was unsuccessful",GOOGLE_AUTH_POPUP_BLOCKED:"Your browser is blocking popups. To sign in with Google, please allow popups and try again.",GOOGLE_AUTH_USE_BROWSER_INSTEAD:"Google sign-in only works in the browser version of Prodigy. Would you like to open Prodigy in the browser?",GOOGLE_AUTH_PROMPT_BROWSER:"Prompting for browser version...",GOOGLE_AUTH_CREATING_ACCOUNT:"Creating Account...",MORPH_END_MESSAGE:"Would you like to end your Morph?",MORPH_START_NEW:"Would you like to end your current Morph and use this new one?",INK_BLOT_BLOCKED_MESSAGE:"Blocked by the Old One's Ink Blot spell! Wait a few turns, or switch team members to remove its effects.",INK_BLOT_BLOCKED_TITLE:"Ink Blocked!",WORLD_MAP_FOREST_QUEST_0:"Save Flora's friend, the merchant, from bullies!",WORLD_MAP_FOREST_QUEST_1:"Find a wand in Firefly Forest.",WORLD_MAP_FOREST_QUEST_2:"Continue Flora's trials in the Forest by defeating Saplettes.",WORLD_MAP_FOREST_QUEST_3:"Clean up the mess that vandals created in the Forest!",WORLD_MAP_FOREST_QUEST_4:"Bring the note you found to the traveler in the woods, so that it can be translated.",WORLD_MAP_FOREST_QUEST_5:"Get a Mandrake from the sneaky Sprikes!",WORLD_MAP_FOREST_QUEST_6:"Bring in Mandrakes for questioning. Get to the bottom of the plot against Flora!",WORLD_MAP_FOREST_QUEST_7:"Find and defeat the TripTrop Trio to get back what they stole from Flora.",WORLD_MAP_FOREST_QUEST_8:"Find Flora's golem, Gerald.",WORLD_MAP_FOREST_QUEST_9:"Find the magic tree stump, and using it, repair Flora's flute.",WORLD_MAP_FOREST_QUEST_10:"Defeat the Neek that stole Flora's flute once again!",WORLD_MAP_FOREST_QUEST_11:"Wake up Gerald the Golem, and defeat him!",WORLD_MAP_SHIVERCHILL_QUEST_0:"Defeat the monsters that have captured the furnace room!",WORLD_MAP_SHIVERCHILL_QUEST_1:"Defeat the ice monsters that have stolen the furnace fuel.",WORLD_MAP_SHIVERCHILL_QUEST_2:"Light a furnace with the fuel you got back from those icy thieves!",WORLD_MAP_SHIVERCHILL_QUEST_3:"Look for more crystals to light the remaining furnaces of Shiverchill.",WORLD_MAP_SHIVERCHILL_QUEST_4:"Find the chest that holds Bok's shovel.",WORLD_MAP_SHIVERCHILL_QUEST_5:"Save the miner!",WORLD_MAP_SHIVERCHILL_QUEST_6:"Find another power crystal in the mines.",WORLD_MAP_SHIVERCHILL_QUEST_7:"Hunt down and defeat the spooky Cloakers in the mines.",WORLD_MAP_SHIVERCHILL_QUEST_8:"Find the power crystal in the Ruins.",WORLD_MAP_SHIVERCHILL_QUEST_9:"Use the fuel you've collected to turn on the next furnace!",WORLD_MAP_SHIVERCHILL_QUEST_10:"Check to make sure the Throne Room is safe for Bok!",WORLD_MAP_SHIVERCHILL_QUEST_11:"Collect lots of junk crystals so you can lure the evil Ice Worm out!",WORLD_MAP_SHIVERCHILL_QUEST_12:"Defeat the Ice Worm to stop the cavequakes, AND get another power crystal!",WORLD_MAP_SHIVERCHILL_QUEST_13:"Light the third furnace with the crystal you got from the giant Ice Worm!",WORLD_MAP_SHIVERCHILL_QUEST_14:"Collect your reward for your heroic deeds in the Throne Room",WORLD_MAP_SKYWATCH_QUEST_0:"Clear out the monsters in the Greenhouse so Benni can get back to work!",WORLD_MAP_SKYWATCH_QUEST_1:"Go and collect the Weather O Meter so Benni can take some readings around Skywatch.",WORLD_MAP_SKYWATCH_QUEST_2:"Find Broccolina for Benni.",WORLD_MAP_SKYWATCH_QUEST_3:"Clear the trolleys of any vines and inspect the Wind Machine for Benni.",WORLD_MAP_SKYWATCH_QUEST_4:"Find clues to identify the whereabouts of the Factory Key.",WORLD_MAP_SKYWATCH_QUEST_5:"Get the Factory Key.",WORLD_MAP_SKYWATCH_QUEST_6:"Head to the factory and collect spare parts for the Vine Pruner.",WORLD_MAP_SKYWATCH_QUEST_7:"Defeat the Water Cloud at the Snow Machine!",WORLD_MAP_SKYWATCH_QUEST_8:"Defeat the Earth Cloud at the Rain Machine!",WORLD_MAP_SKYWATCH_QUEST_9:"Defeat the Ice Cloud at the Wind Machine!",WORLD_MAP_SKYWATCH_QUEST_10:"Seek out the Cloudmaster for guidance on how to deal with those pesky Elemental Clouds.",WORLD_MAP_SKYWATCH_QUEST_11:"Find pieces of the broken key.",WORLD_MAP_SKYWATCH_QUEST_12:"Head to the Cumulus Room and save Skywatch",WORLD_MAP_BONFIRE_QUEST_0:"Help Slurpy out by pulling the first lever to drain lava.",WORLD_MAP_BONFIRE_QUEST_1:"Help Slurpy out by pulling the second lever to drain lava.",WORLD_MAP_BONFIRE_QUEST_2:"Help Slurpy out by pulling the third lever to drain lava.",WORLD_MAP_BONFIRE_QUEST_3:"Find Slurpy's special ingredient.",WORLD_MAP_BONFIRE_QUEST_4:"Sneak Slurpy's special ingredient into the Chef's pot.",WORLD_MAP_BONFIRE_QUEST_5:"Attend the Royal Dinner in Slurpy's place.",WORLD_MAP_BONFIRE_QUEST_6:"Collect Slurpy's cooking supplies.",WORLD_MAP_BONFIRE_QUEST_7:"Talk to the Queen's guards, Mike and Hank, to find out the Queen's favorite food.",WORLD_MAP_BONFIRE_QUEST_8:"Find turnips for Slurpy's next dish.",WORLD_MAP_BONFIRE_QUEST_9:"Deliver Slurpy's new dish to the Queen.",WORLD_MAP_BONFIRE_QUEST_10:"Find the key that will unlock the chest holding the magical Boots of Hotwalk!",WORLD_MAP_BONFIRE_QUEST_11:"Defeat the guardian of the chest of the Boots of Hotwalk.",WORLD_MAP_BONFIRE_QUEST_12:"Use the Boots of Hotwalk to get to the Chef, and defeat him!",WORLD_MAP_BONFIRE_QUEST_13:"Help the Chef get his job back.",WORLD_MAP_SHIPWRECK_QUEST_0:"Find a Breathing Bubble, so you can go underwater!",WORLD_MAP_SHIPWRECK_QUEST_1:"Search for the mysterious undersea monster.",WORLD_MAP_SHIPWRECK_QUEST_2:"Find and collect a sample of ink for Eve.",WORLD_MAP_SHIPWRECK_QUEST_3:"Find a Sonic Blaster to break through the ink.",WORLD_MAP_SHIPWRECK_QUEST_4:"Clear ink out of your path through Shipwreck Shore.",WORLD_MAP_SHIPWRECK_QUEST_5:"Take pictures of the mysterious monster's tunnel for Eve.",WORLD_MAP_SHIPWRECK_QUEST_6:"Collect scales from the boss monster.",WORLD_MAP_SHIPWRECK_QUEST_7:"Train to get tough against underwater monsters.",WORLD_MAP_SHIPWRECK_QUEST_8:"Pursue the underwater boss.",WORLD_MAP_SHIPWRECK_QUEST_9:"Find the key for the Captain's Quarters.",WORLD_MAP_SHIPWRECK_QUEST_10:"Defeat the Old One.",SO_SLEEPY:"So Sleepy...",TITAN_DEFEATED_MESSAGE:"The Titan has been defeated, for now!\nThe Puppet Master is hard at work, summoning it back once again. Keep an eye on the island map for signs of the Titan's return...",TITAN_DEFEATED_TITLE:"Titan Defeated!",TITAN_HEARTS:"Titan Hearts",TITAN_LEVEL_LOCKED:"You're not strong enough to battle the Titan. Come back when you're level {0} or higher.",NETWORK_ALL_GOOD:"All Good!",NETWORK_INCORRECT_USERNAME_PASSWORD:"Incorrect Username Or Password",NETWORK_FORBIDDEN:"Access is Forbidden!",NETWORK_OFFLINE:"Prodigy Is Temporarily Offline.",NETWORK_ERROR:"There was an error with your request",NETWORK_OUT_OF_DATE:"Your game seems to be out-of-date! Press OKAY to reload.",NETWORK_TRY_LATER:"Uh oh! It looks like you'll have to try again later.",NETWORK_CANNOT_CONNECT:"Cannot connect to Prodigy...you will be logged off in {0} seconds",NETWORK_LOGGED_IN_ELSEWHERE:"You have logged in elsewhere...you will be logged off in ",NETWORK_GOING_OFFLINE:"Prodigy is going offline, and you will be logged off in {0} seconds",INACTIVITY_MESSAGE:"You have been inactive for a while. If you do nothing, you will be logged out soon.",INACTIVITY_BUTTON:"I'm Here",ARENA_STORE_SILVER_BUTTON_TOP:"Silver",ARENA_STORE_SILVER_BUTTON_BOT:"Rank",ARENA_STORE_GOLD_BUTTON_TOP:"Gold",ARENA_STORE_GOLD_BUTTON_BOT:"Rank",ARENA_STORE_PLATINUM_BUTTON_TOP:"Platinum",ARENA_STORE_PLATINUM_BUTTON_BOT:"Rank",ARENA_STORE_DIAMOND_BUTTON_TOP:"Diamond",ARENA_STORE_DIAMOND_BUTTON_BOT:"Rank",PVP_PRIZES_TITLE:"SEASON PRIZES",PVP_PRIZES_DISCLAIMER:"All earned prizes will appear in your mailbox the following Monday.",PVP_PRIZES_RANK_REQUIREMENT:"Leaderboard Top {0}",PVP_PRIZES_POINTS_REQUIREMENT:"[arena]{0}",PVP_PRIZE_ACHIEVED_POPUP_MESSAGE:"Congratulations! You've earned an Arena prize!\n\n\nCome back next Monday to collect it from your mailbox!",PVP_PRIZE_ACHIEVED_POPUP_BUTTON_TEXT:"OKAY",SEASON_DETAILS_TAB_TOP:"Season",SEASON_DETAILS_TAB_BOTTOM:"Details",SEASON_DETAILS_PRIZE_BUTTON:"View Season Prizes",SEASON_DETAILS_CHALLENGE_BUTTON_FIND:"find",SEASON_DETAILS_CHALLENGE_BUTTON_CHALLENGER:"challenger",SEASON_DETAILS_SEASON_ENDS:"Ends in: {0}",SEASON_DETAILS_POINTS_TITLE:"My Points: {{0}",SEASON_DETAILS_NEXT_PRIZE:"Next Prize",SEASON_DETAILS_POINTS:"[arena]{0}",SEASON_DETAILS_EARN_BONUS:"Earn {0} bonus points for completing {1} matches in {2}",SEASON_DETAILS_REACH_TOP:"Finish in the top {0} players to earn this season's grand prize!",SEASON_DETAILS_WEEKLY_EARNED:"Weekly bonus earned! A new bonus will be available next Monday.",SEASON_TOP_PLAYERS:"This season's top 1000 players will receive: {0}",SEASON_TO_TOP:"To Top 1000: [arena]{0}",SEASON_NEXT_RANK:"Next Rank: [arena]{0}",SEASON_YOUR_POINTS:"Your Points: [arena]{0}",SEASON_YOUR_RANK:"Your Rank: {0}",SEASON_YOUR_RANK_TITLE:"Your Rank",UI_MAIL_WELCOME:"WELCOME",UI_MAIL_CHECK_IT_OUT:"CHECK IT OUT!",UI_TAXI_REGULAR_FARE:"Regular Fare",UI_TAXI_PAY_HALF:"Pay Half!",UI_TITAN_BATTLES_INFO:"The more battles you win against the Titan, the bigger the reward you get when it's defeated.",UI_TITAN_APPEAR_INFO:"Once in a while, a Titan will appear somewhere on the island, pointed out by a special notification",UI_TITAN_SHARDS_INFO:"Battle the Titan to earn Titan Shards. Once it's defeated, you can get a bunch more. You can't do it alone though. It is SO strong, that MANY wizards around the world will need to work together to defeat it!",UI_TITAN_REWARDS_TITLE:"TITAN BATTLE REWARDS",UI_MAIL_NO_MAIL:"You have no mail",UI_MAIL_YOUR_MAIL:"YOUR MAIL",UI_ZONE_CHECK_BACK:"Keep checking out this area for its unique items and interesting challenges!",UI_ZONE_NO_FRIENDS:"Add players as friends to see how well you do against them!",UI_ZONE_NO_CLASSMATES:"Sorry, you are not part of a valid Class, so you don't have any Classmates! Check with your teacher to get the Class code.",UI_ZONE_PLAY:"PLAY",UI_ZONE_SHIPWRECK_SHORE:"SHIPWRECK SHORE",UI_ZONE_FIREFLY_FOREST:"FIREFLY FOREST",UI_ZONE_BONFIRE_SPIRE:"BONFIRE SPIRE",UI_ZONE_SHIVERCHILL:"SHIVERCHILL MOUNTAINS",UI_ZONE_SKYWATCH:"SKYWATCH",UI_PVP_PRIZES:"PVP SEASON PRIZES",UI_PVP_PRIZES_DESC:"All earned prizes will appear in your mailbox the following Monday.",UI_PVP_COOL_ARMOR:"Really Cool Armor",UI_PVP_1000_POINTS:"1000 Points",UI_PVP_GRAND_PRIZE:"Grand Prize",UI_RESULTS_TITLE:"RESULTS",UI_NO_FEED_ALL:"The Wizard Watch is where you can see what your friends and classmates are doing. Check back later to see what they're up to!",UI_NO_FEED_ME:"This is where you can see your own activity. Share your adventures with your friends and classmates!",UI_NO_FEED_FRIENDS:"This is where you will find only your friends' and classmates' activity. Befriend some Wizards and be sure to give them a thumbs-up when they share their adventures with you!",DYNO_DIG_SHOP_WELCOME:"Welcome to Dyno Dig Shop! \nWant to see what I have for sale?",COMBAT_CANT_EAT_RIGHT_NOW:"{0} can't eat right now.",COMBAT_YOU:"You",MEMBERSHIP_CONGRATULATIONS:"CONGRATULATIONS!",MEMBERSHIP_CLOUD_MOUNT:"As a Member, you have been given a Cloud Mount. Enjoy floating around on a big fluffy cloud. Thank you for being a Prodigy Member!",MEMBERSHIP_MOUNT_EQUIP:"Don't forget to equip your Cloud Mount through your backpack by turning the Cloud Mount switch to 'ON'.",MEMBERSHIP_GET_MOUNT:"MEMBER CLOUD MOUNT!",MEMBERSHIP_GET_MOUNT_BODY:"Become a Prodigy Member to get a Cloud Mount. Float around on your very own fluffy cloud!",MEMBERSHIP_MONTHLY_BOX_TITLE:"MONTHLY MEMBERSHIP BOX",MEMBERSHIP_MONTHLY_BOX_DESCRIPTION:"Members get Membership Boxes with awesome Member items every month!",MEMBERSHIP_BECOME_MEMBER:"Become a Member and get this month's box TODAY!",MEMBERSHIP_GET_MONTHLY_BOX:"You have been given this month's Membership Box with awesome Member items. It will be in your Mail very soon!",MEMBERSHIP_TITAN_CATAPULT_TITLE:"A New Way To Fight A Titan!",MEMBERSHIP_TITAN_CATAPULT_BODY_0:"Become a Prodigy Member to use",MEMBERSHIP_TITAN_CATAPULT_BODY_1:"the",MEMBERSHIP_TITAN_CATAPULT_BODY_2:"Catapult",MEMBERSHIP_TITAN_CATAPULT_BODY_3:"and get double the Titan Shards.",MEMBERSHIP_TITAN_CATAPULT_GRAPHIC_0:"Double the",MEMBERSHIP_TITAN_CATAPULT_GRAPHIC_1:"Titan Shards!",MEMBERSHIP_LEARN_MORE:"Learn More",MAIL_UNAVAILABLE:"Oops! Sorry, we cannot show your Mail right now. We are working on it. Please try again later.",STORE_NAME_FIREFLY:"Firefly Outfitters",STORE_MACHINE_SHOP:"The Machine Shop",STORE_SNOWDAY_SALES:"Snowday Sales",STORE_SKY_HIGH:"Sky-High Values",STORE_HOT_HOT_THREADS:"Hot Hot Threads",STORE_OCEAN_OUTFITTERS:"Ocean Outfitters",STORE_OPEN_FAILED_TITLE:"Store Closed",STORE_OPEN_FAILED_MESSAGE:"This store is currently unavailable. Please try again later.",FRIENDS_LIST_UNAVAILABLE:"Oops! Sorry, we cannot show your Friends List right now. We are working on it. Please try again later.",MEMBER_STARS_EARNED:"{0} MEMBER STARS EARNED",MAX_STARS_EARNED:"MAX STARS EARNED",WORTH:"Worth",WIZARD_LEVELS:"Wizard Levels!",WIZARD_LEVEL:"Wizard Level!",JAR_EXPIRED:"MEMBER STARS DISAPPEARED!",JAR_BECOME_MEMBER:"Become a Member to get them before they disappear next time!",STARS_IN_JAR_COUNT:"Stars In Jar",MONTH_NAME_1:"January",MONTH_NAME_2:"February",MONTH_NAME_3:"March",MONTH_NAME_4:"April",MONTH_NAME_5:"May",MONTH_NAME_6:"June",MONTH_NAME_7:"July",MONTH_NAME_8:"August",MONTH_NAME_9:"September",MONTH_NAME_10:"October",MONTH_NAME_11:"November",MONTH_NAME_12:"December",SEASON_COMPLETED_TITLE:"Season Complete",SEASON_COMPLETED:"The current season is over. Check back soon for a new one!",TRIAL_MEMBERSHIP_SUCESS_TITLE:"Congratulations!",TRIAL_MEMBERSHIP_SUCESS_BODY:"You now have a trial membership until you reach level 10\n\nEnjoy!\n\nYour membership will be applied after the next loading screen. During this trial you will not receive a cloud mount or the monthly member gift box.",TRIAL_MEMBERSHIP_AUTO_BODY:"As a new wizard, you get to be a member until you reach",TRIAL_MEMBERSHIP_AUTO_FOOTER:"Make sure to explore all the cool things you can do as a member!",TRIAL_MEMBERSHIP_AUTO_TITLE:"You'll start as a member!",TRIAL_MEMBERSHIP_AUTO_LEVEL:"LEVEL 10!",SUMMARY_POPUP_EVOLUTION:"EVOLUTION!",SUMMARY_POPUP_NEW_SPELL:"NEW SPELL!",SUMMARY_POPUP_NEW_HEARTS:"MORE HEARTS!",SUMMARY_POPUP_NEW_SPELL_LEARNED:"{0} learned {1}!",SUMMARY_POPUP_HEARTS_EARNED:"{0} gained {1} hearts!",SUMMARY_BATTLE_STARS_EARNED:"YOU GOT\n{0} BATTLE STARS EACH!",SUMMARY_BATTLE_STARS_EARNED_SINGULAR:"YOU GOT\n{0} BATTLE STARS!",OPEN_CHEST:"OPEN CHEST",GAINED_MEMBER_STARS:"GAINED\n{0}\nMEMBER STARS",GAINED_MEMBER_STARS_EACH:"GAINED\n{0}\nMEMBER STARS EACH",MEMBERS_COLLECT_MORE_XP:"MEMBERS GET MORE STARS!",COUNTDOWN_SECONDS_LEFT:"SECONDS\nLEFT!",COUNTDOWN_MINUTES_LEFT:"MINUTES\nLEFT!",COUNTDOWN_HOURS_LEFT:"HOURS\nLEFT!",COUNTDOWN_DAYS_LEFT:"DAYS\nLEFT!",COUNTDOWN_SECOND_LEFT:"SECOND\nLEFT!",COUNTDOWN_MINUTE_LEFT:"MINUTE\nLEFT!",COUNTDOWN_HOUR_LEFT:"HOUR\nLEFT!",COUNTDOWN_DAY_LEFT:"DAY\nLEFT!",EXPLAIN_MEMBERSHIP_STUDENT_BODY_1:"Adventure the way only members can: ride an exclusive cloud mount, unlock member-only chests and explore the infamous dark tower!",EXPLAIN_MEMBERSHIP_STUDENT_BODY_2:"Members have more ways to get ahead like faster leveling with bonus stars, room to catch 100 pets, mini-game power ups, and extra spins on the Wheel of Wonder!",EXPLAIN_MEMBERSHIP_STUDENT_BODY_3:"Members get to express themselves in all kinds of ways! Wear the coolest and craziest gear, style your character's look, and decorate the biggest houses with exclusive items.",EXPLAIN_MEMBERSHIP_STUDENT_BODY_4:"Only members get fun extras like monthly gift boxes filled with one-of-a-kind items, along with unique buddies, potions and morph marbles to use on your quest!",EXPLAIN_MEMBERSHIP_STUDENT_TITLE_1:"Explore like a member",EXPLAIN_MEMBERSHIP_STUDENT_TITLE_2:"Progress like a member",EXPLAIN_MEMBERSHIP_STUDENT_TITLE_3:"Express like a member",EXPLAIN_MEMBERSHIP_STUDENT_TITLE_4:"Have fun like a member",EXPLAIN_MEMBERSHIP_PARENT_TITLE_1:"Members get more",EXPLAIN_MEMBERSHIP_PARENT_BODY_0:"* They master more math!\n* Do more questions!\n* Play and learn longer!\n* Play more from home!\n* Achieve higher levels!",EXPLAIN_MEMBERSHIP_PARENT_BODY_1:"Expand the world of Prodigy by adding new stuff to earn and collect! With so much more to do, members answer 125% more questions on average than non-members. it’s the best way to have more fun and boost learning!",EXPLAIN_MEMBERSHIP_PARENT_BODY_HIGHLIGHT:"members answer 125% more questions",EXPLAIN_MEMBERSHIP_PARENT_FOOTER:"Get help from a parent and",MEMBERSHIP_AWESOME_GEAR:"Awesome Gear!",LVL:"Lvl .",MEMBERSHIP_AMAZING_THINGS:"Members Get Amazing Things!",NAME_APPRENTICE:"Apprentice"}},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),r=i(0),s=function(t){function e(e,i,a,n,o,r,s,l,h){void 0===h&&(h=0);var c=t.call(this,e,i,a,n)||this,p=c.add(new Phaser.Image(e,0,0,"atlas-18","overlay-light"));return p.width=o,p.height=r,p.inputEnabled=!0,p.alpha=h,c.onProcess=l,c.onClick=s,p.events.onInputDown.add(c.clicked.bind(c)),c}return n(e,t),e.prototype.clicked=function(t,e){r.Util.isValid(this.onClick)&&this.onClick(this)},e.prototype.process=function(t,e){r.Util.isValid(this.onProcess)&&this.onProcess(t,e)},e}(o.Element);e.ClickableEvent=s},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(16),s=i(3),l=i(0),h=function(t){function e(e,i,a,n,h,c,p,u,d,g,y,f){void 0===g&&(g=!1);var m=t.call(this,e,i,a,n)||this;return m.sprite=null,m.active=!0,m.callback=null,m.animatedSprite=null,m.animatedSpritePos=null,m.animTween=null,m.sfxID=null,m.sfxClip=null,m.spriteOverlay=null,m.spriteOverlayX=0,m.spriteOverlayY=0,m.callback=p,m.sprite=m.game.prodigy.create.sprite(0,0,h,c,null,m.onSpriteLoaded.bind(m),y,f),m.add(m.sprite),l.Util.isValid(u)&&l.Util.isValid(d)&&(m.animatedSprite=m.game.prodigy.create.sprite(d.x,d.y,h,u[0]),m.animatedSpritePos=d,m.add(m.animatedSprite),m.animTween=new r.TweenController(m.animatedSprite),m.animTween.set("frameName",u,200,9999),m.animTween.start()),m.sprite.inputEnabled=!0,m.sprite.events.onInputDown.add(m.onDown,m),g||(m.sprite.events.onInputUp.add(m.onUp,m),m.sprite.events.onInputOver.add(m.onOver,m)),m.sprite.events.onInputOut.add(m.onOut,m),o.GameConstants.get("GameConstants.Build.DEBUG")&&l.Util.isValid(c)&&(m.game.prodigy.automation.addTrigger({ID:"autoclick-"+c,context:m,callback:function(){return{x:m.worldPosition.x+.5*m.sprite.width,y:m.worldPosition.y+.5*m.sprite.height}}}),m.game.broadcaster.addAppListener(s.EDebugEvents.AutoClick,m.onDebugAutoClick.bind(m),m)),m.sfxID=18,m.sfxClip="pop",m.onDestroy.add(m.handleDestroy.bind(m)),m}return n(e,t),e.prototype.update=function(){t.prototype.update.call(this),l.Util.isValid(this.animTween)&&this.animTween.update()},e.prototype.setActive=function(){this.active=!0,this.sprite.tint=16777215},e.prototype.setInactive=function(t){void 0===t&&(t=5789784),this.active=!1,this.sprite.tint=t,this.sprite.y=0,l.Util.isValid(this.animatedSprite)&&(this.animatedSprite.y=this.animatedSpritePos.y),l.Util.isValid(this.spriteOverlay)&&(this.spriteOverlay.y=this.spriteOverlayY)},e.prototype.select=function(){this.sprite.tint=7447253},e.prototype.deselect=function(){this.active=!0,this.sprite.tint=16777215,this.sprite.y=0,l.Util.isValid(this.spriteOverlay)&&(this.spriteOverlay.y=this.spriteOverlayY),l.Util.isValid(this.animatedSprite)&&(this.animatedSprite.y=this.animatedSpritePos.y)},e.prototype.isActive=function(){return this.active},e.prototype.addOverlay=function(t,e,i,a){l.Util.isValid(this.spriteOverlay)&&this.spriteOverlay.destroy(),this.spriteOverlayX=t,this.spriteOverlayY=e,this.spriteOverlay=this.game.prodigy.create.sprite(t,e,i,a),this.add(this.spriteOverlay)},e.prototype.onDown=function(){this.active&&(this.game.prodigy.audio.playSFX(this.sfxID,this.sfxClip),l.Util.isValid(this.callback)&&this.callback(),this.sprite.y=0,l.Util.isValid(this.animatedSprite)&&(this.animatedSprite.y=this.animatedSpritePos.y),l.Util.isValid(this.spriteOverlay)&&(this.spriteOverlay.y=this.spriteOverlayY))},e.prototype.handleDestroy=function(){o.GameConstants.get("GameConstants.Build.DEBUG")&&l.Util.isValid(this.sprite.frameName)&&(this.game.prodigy.automation.removeAllTriggers(this),this.game.broadcaster.removeAppListener(s.EDebugEvents.AutoClick,this))},e.prototype.onUp=function(){this.active&&this.sprite.input.pointerOver()&&(this.sprite.y=-3,l.Util.isValid(this.animatedSprite)&&(this.animatedSprite.y=this.animatedSpritePos.y-3),l.Util.isValid(this.spriteOverlay)&&(this.spriteOverlay.y=this.spriteOverlayY-3))},e.prototype.onOver=function(){this.active&&(this.sprite.y=-3,l.Util.isValid(this.animatedSprite)&&(this.animatedSprite.y=this.animatedSpritePos.y-3),l.Util.isValid(this.spriteOverlay)&&(this.spriteOverlay.y=this.spriteOverlayY-3))},e.prototype.onOut=function(){this.active&&(this.sprite.y=0,l.Util.isValid(this.animatedSprite)&&(this.animatedSprite.y=this.animatedSpritePos.y),l.Util.isValid(this.spriteOverlay)&&(this.spriteOverlay.y=this.spriteOverlayY))},e.prototype.onSpriteLoaded=function(){l.Util.isValid(this.spriteOverlay)&&(this.spriteOverlay.y=this.spriteOverlayY,this.spriteOverlay.x=this.spriteOverlayX)},e.prototype.onDebugAutoClick=function(t){l.Util.isValid(this.sprite.frameName)&&(l.Util.isValid(t)?t===this.sprite.frameName&&this.onDown():l.Util.log("Button Tag: "+this.sprite.frameName))},e}(i(5).Element);e.Button=h},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(43),r=i(50),s=i(52),l=i(4),h=i(0),c=function(t){function e(e,i,a,n){var o=t.call(this)||this;return o.canRevert=null,o.orientation=0,o.assetData=null,o.assetMetadata=null,o.editable=!1,o.itemID=a,o.orientation=n,o.parentHouse=i,o.onItemDrag=new Phaser.Signal,o.onItemDropped=new Phaser.Signal,o.onItemMoved=new Phaser.Signal,o.onItemInputDown=new Phaser.Signal,o}return n(e,t),e.prototype.create=function(){t.prototype.create.call(this),this.updateItemData()},e.prototype.setItemID=function(t){this.itemID!==t&&(this.itemID=t,this.updateItemData())},e.prototype.updateItemData=function(){this.assetData=l.Items.getItem("dorm",this.itemID).data,this.assetMetadata=l.Items.getItem("dorm",this.itemID).metadata,this.updateSprite()},e.prototype.getAssetName=function(){return h.Util.isValid(this.assetData)?this.getOrientation()+"-dorm-"+this.itemID:""},e.prototype.isAnimated=function(){if(h.Util.isValid(this.assetMetadata)){var t=this.getOrientation();return h.Util.isValid(this.assetMetadata.assets[t])&&h.Util.isValid(this.assetMetadata.assets[t].animations)&&h.Util.isValid(this.assetMetadata.assets[t].animations.idle)}return!1},e.prototype.canRotate=function(){return h.Util.isValid(this.assetData)&&this.assetData.r>0},e.prototype.getScaleX=function(){return h.Util.isValid(this.assetData)&&this.assetData.r>0&&this.orientation>1?-1:1},e.prototype.updateSprite=function(){var t=this.gameObject.findComponent(r.Renderer);h.Util.isValid(t)?t.setAsset(this.getOrientation()+"-dorm-"+this.itemID,this.assetMetadata.assets[this.getOrientation()]):t=this.initRenderInterface(),t.setScale(this.getScaleX(),1),t.hasAnimations()&&t.playAnimation("idle",!0,Math.random()*t.getAnimationLength("idle"))},e.prototype.initRenderInterface=function(){var t=s.RenderFactory.createRenderer(this.getOrientation()+"-dorm-"+this.itemID,this.assetMetadata.assets[this.getOrientation()]);return this.gameObject.addComponent(t),t.setAnchor(.5,0),t.resetAfterDrag=!0,t},e.prototype.rotateItem=function(){this.editable&&this.canRotate()&&(this.orientation+=1,this.orientation>3&&(this.orientation=0),this.updateSprite())},e.prototype.setEditable=function(t){void 0===t&&(t=!0),this.editable!==t&&(this.editable=t,this.editable?this.registerInputHandlers():this.unregisterInputHandlers())},e.prototype.registerInputHandlers=function(){var t=this.getRenderer();t.setInputEnabled(),t.enableDragging(!0,!0,20,20);var e=t.getEvents();h.Util.isValid(e)&&(e.onDragStart.add(this.dragStarted,this),e.onDragUpdate.add(this.dragUpdated,this),e.onDragStop.add(this.dragStopped,this),e.onInputDown.add(this.itemFocused,this))},e.prototype.unregisterInputHandlers=function(){var t=this.getRenderer();t.setInputEnabled(!1),t.disableDragging();var e=t.getEvents();h.Util.isValid(e)&&(e.onDragStart.remove(this.dragStarted,this),e.onDragUpdate.remove(this.dragUpdated,this),e.onDragStop.remove(this.dragStopped,this),e.onInputDown.remove(this.itemFocused,this))},e.prototype.getRenderer=function(){return this.gameObject.findComponent(r.Renderer)},e.prototype.dragStarted=function(){this.gameObject.game.add.existing(this.gameObject),this.onItemDrag.dispatch()},e.prototype.dragUpdated=function(){h.Util.isValid(this.parentHouse)&&this.getRenderer().setAlpha(this.parentHouse.canPlaceItem(this)?1:.5)},e.prototype.dragStopped=function(){if(h.Util.isValid(this.parentHouse)?this.parentHouse.content.add(this.gameObject):this.gameObject.game.add.existing(this.gameObject),!h.Util.isValid(this.parentHouse)||this.parentHouse.canPlaceItem(this)){var t=this.getRenderer().getWorld();this.onItemDropped.dispatch(this,t.x,t.y),this.onItemMoved.dispatch(this,this.gameObject.x,this.gameObject.y,t.x,t.y),this.canRevert=!0}else if(this.canRevert){var e=this.getRenderer();t=e.getWorld();this.onItemDropped.dispatch(this,t.x,t.y),e.resetToOrigin(),e.setAlpha(1)}else this.gameObject.destroy()},e.prototype.itemFocused=function(){this.onItemInputDown.dispatch()},e.prototype.getOrientation=function(){return this.assetData.r>0&&1==(1&this.orientation)?"horizontal":"vertical"},e}(o.Component);e.HouseItem=c},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=function(t){function e(e,i,a,n,o){var r=t.call(this,e,i,o,{isModal:!1},["sfx-32"])||this;return r.currentCreature=a,r.originalCreatureCopy=n,r.queuePostCreateCallback(r.openTween.bind(r),function(){r.okayButton.onUpCallback=r.closeTween.bind(r),r.resultsTitle.setText(r.game.prodigy.gameContainer.Localizer.getText(r.getBannerLocKey()))}),r}return n(e,t),e.prototype.create=function(){this.isRequired()?(t.prototype.create.call(this),this.background.visible=!1,o.Util.isValid(this.onCreateCallback)&&this.onCreateCallback()):this.close()},e.prototype.setOnCreateCallback=function(t){this.onCreateCallback=t},e.prototype.openTween=function(){if(o.Util.isValid(this.uiRoot)){var t=this.uiRoot;t.pivot.x=t.width/2,t.pivot.y=t.height/2,t.x+=t.pivot.x,t.y+=t.pivot.y,t.scale.x=.1,t.scale.y=.1,t.alpha=0,this.game.add.tween(t.scale).to({x:1,y:1},200,Phaser.Easing.Back.Out,!0).frameBased=!1,this.game.add.tween(t).to({alpha:1},120,"Linear",!0).frameBased=!1}},e.prototype.closeTween=function(){if(o.Util.isValid(this.uiRoot)){this.okayButton.setActive(!1);var t=this.game.add.tween(this.uiRoot).to({alpha:0},200,"Linear",!0);t.frameBased=!1,t.onComplete.add(this.close.bind(this))}},e.prototype.setActionText=function(t){this.actionText.setText(t),this.game.add.tween(this.actionText).from({x:this.actionText.x+20,alpha:0},300,Phaser.Easing.Quadratic.Out,!0)},e}(i(26).Menu);e.SummaryPopup=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(38),n=i(0),o=function(){function t(t){this.game=t,n.Util.isValid(this.game.prodigy.player.data.storedMemberStars)||(this.game.prodigy.player.data.storedMemberStars=0),n.Util.isValid(this.game.prodigy.player.data.memberStarsExpirationDate)||(this.game.prodigy.player.data.memberStarsExpirationDate=this.getNextExpirationDate().getTime())}return t.prototype.getNextExpirationDate=function(){var t=new Date,e=new Date;return 0!==t.getDay()&&e.setDate(t.getDate()+(7-t.getDay())),e.setSeconds(59),e.setMinutes(59),e.setHours(23),e.setMilliseconds(0),e},t.prototype.hasExpired=function(){return this.getNextExpirationDate().getTime()>this.game.prodigy.player.data.memberStarsExpirationDate&&this.getNumberOfStoredStars()>0},t.prototype.giveStoredMemberStars=function(t){this.game.prodigy.player.data.storedMemberStars+=t,this.game.prodigy.player.data.memberStarsExpirationDate=this.getNextExpirationDate().getTime()},t.prototype.obtainStoredMemberStars=function(t){void 0===t&&(t=null);var e=this.game.prodigy.player.data.storedMemberStars;return this.game.prodigy.player.data.storedMemberStars=0,e},t.prototype.doLoseStars=function(){return!!this.hasExpired()&&(this.game.prodigy.player.data.storedMemberStars=0,this.game.prodigy.player.data.memberStarsExpirationDate=this.getNextExpirationDate().getTime(),!0)},t.prototype.getNumberOfLevels=function(t){var e=this.game.prodigy.player.getStars(),i=this.game.prodigy.player.getLevel(),n=this.game.prodigy.player.data.storedMemberStars/t;return a.Creature.levelFromStars(e+n)-i},t.prototype.getNumberOfStoredStars=function(){var t=0;return n.Util.isValid(this.game.prodigy.player.data.storedMemberStars)&&(t=this.game.prodigy.player.data.storedMemberStars),t},t.prototype.getStarJarTier=function(){return this.calculateStarJarTier(this.getNumberOfStoredStars())},t.prototype.calculateStarJarTier=function(t){return t>900?4:t>600?3:t>300?2:t>1?1:0},t.prototype.updateExpirationDate=function(){this.game.prodigy.player.data.memberStarsExpirationDate=this.getNextExpirationDate().getTime()},t}();e.MemberStarController=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,r=i(679),s=i(678),l=i(677),h=i(202),c=i(676),p=i(675),u=i(12),d=i(674),g=i(17),y=i(0);!function(t){t[t.SeasonDetails=0]="SeasonDetails",t[t.SeasonLeaders=1]="SeasonLeaders",t[t.ClassLeaders=2]="ClassLeaders",t[t.BattleRequests=3]="BattleRequests",t[t.Bounties=4]="Bounties",t[t.Achievements=5]="Achievements",t[t.BadgesMenu=6]="BadgesMenu"}(o=e.ESocialMenuType||(e.ESocialMenuType={}));var f=function(t){function e(e,i,a){var n=t.call(this,e,i,0,0,e.prodigy.textureMenu)||this;return n.mailCount=0,n.content=null,n.shieldElement=null,n.mailCount=n.game.prodigy.mail.getMailCount(),n.createMenu(a),n}return n(e,t),e.prototype.createMenu=function(t){this.addTransparent();var e=t,i=this.game.prodigy.gameContainer.Localizer,a=[{icon:"challenge",top:i.getText("SOCIAL_MENU_SEASON_DETAILS_TOP"),bot:i.getText("SOCIAL_MENU_SEASON_DETAILS_BOT")},{icon:"challenge",top:i.getText("SOCIAL_MENU_SEASON_LEADERS_TOP"),bot:i.getText("SOCIAL_MENU_SEASON_LEADERS_BOT")},{icon:"leaderboard",top:i.getText("SOCIAL_MENU_SEASON_CLASS_LEADERS_TOP"),bot:i.getText("SOCIAL_MENU_SEASON_CLASS_LEADERS_BOT")}],n=40;this.mailCount>0&&(a.push({icon:"battle-request",top:i.getText("SOCIAL_MENU_BATTLE_REQUESTS_BUTTON_TOP"),bot:i.getText("SOCIAL_MENU_BATTLE_REQUESTS_BUTTON_BOT"),hasIndicator:!0}),e=o.BattleRequests,n=-10),a=a.concat([{icon:"bounty",top:"",bot:i.getText("SOCIAL_MENU_BOUNTIES_BUTTON_BOT")},{icon:"award",top:"",bot:i.getText("SOCIAL_MENU_AWARDS_BUTTON_BOT")},{icon:"badge",top:"",bot:i.getText("SOCIAL_MENU_BADGES_BUTTON_BOT"),hasIndicator:!0}]),this.createBaseSetup(30,16,"bases/backgroundwood","",a,!0,null,{closeButton:{key:"atlas-144",frameName:"buttons/close",offset:{x:-20,y:-23}},banner:{atlasID:148,frameName:"banner/banner",width:28},buttons:{iconOffset:{x:60,y:0},offset:{x:n+120,y:0}}}).children[2].visible=!1,this.shieldElement=this.game.prodigy.create.element(this,0,0),this.shieldElement.setRenderState(!1);var r=this.game.prodigy.create.sprite(150,25,"atlas-151","pvp-shield",null);this.game.prodigy.create.font(r,30,87,i.getText("AWARDS_TITLE"),{width:140,align:"center",size:16}),this.shieldElement.add(r),this.create(),this.setMode(e);for(var s=0;s<a.length;s++){var l=a[s];if(l.hasIndicator){var h=this.game.prodigy.create.indicator(0,0),c=this.buttons[s].sprite;c.addChild(h),this.buttons[s].indicator=h,h.visible=!1;var p=y.Util.getCenteredXY(h.width,0,c.x,0,c.width,0);h.x=p.x,h.y=c.y-h.height,h.addTween(),h.visible="battle-request"===l.icon&&this.mailCount>0||"badge"===l.icon&&!this.game.prodigy.breadcrumbManager.isBreadcrumbComplete(g.Breadcrumbs.FEATURE_BADGES,g.Breadcrumbs.BREADCRUMB_CLICKED_BADGES_BUTTON)}}this.game.prodigy.mail.addUpdateCallback(this.updateMailIndicator.bind(this))},e.prototype.updateMailIndicator=function(t){for(var e=0;e<this.buttons.length;e++){var i=this.buttons[e];"battle-request"===i.data.icon&&y.Util.isValid(i.indicator)&&(i.indicator.visible=t>0)}},e.prototype.setMode=function(e){t.prototype.setMode.call(this,e),y.Util.isValid(this.content)&&(this.content instanceof d.BadgesMenu?this.content.close():this.content.destroy(),this.content=null);var i=this.mailCount>0,a=i?0:1;e===o.SeasonDetails?this.content=new c.SeasonDetails(this.game,this,80,200):e===o.SeasonLeaders?this.content=new p.SeasonLeaders(this.game,this,80,200):i&&e===o.BattleRequests?this.content=new s.BattleRequestsPanel(this.game,this,80,200):e+a===o.Bounties?this.content=new l.BountiesPanel(this.game,this,80,200):e+a===o.Achievements?this.content=new r.AchievementsPanel(this.game,this,80,200):e+a===o.BadgesMenu?this.content=new d.BadgesMenu(this.game,this):e===o.ClassLeaders&&(this.content=new h.ClassLeadersPanel(this.game,this,80,200)),this.page=e,e>=o.BattleRequests&&(this.page+=a)},e.prototype.close=function(){y.Util.isValid(this.content)&&this.content instanceof d.BadgesMenu&&this.content.close(),t.prototype.close.call(this)},e}(u.RenderMenu);e.Social=f},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(12),s=i(3),l=i(4),h=i(17),c=i(0),p=i(74),u=function(t){function e(i,a,n,o){void 0===n&&(n=!1),void 0===o&&(o=[]);var r=t.call(this,i,a,0,0,i.prodigy.textureMenu)||this;r.disableClose=n,r.forceLock=o,r.game.prodigy.network.sendToyEvent("open-map",4);for(var s=function(t){var a=e.BUTTONS_CONFIG[t];if(!c.Util.isValid(a.localized)||!a.localized){c.Util.isValid(a.lockKey)&&Object.defineProperty(a,"lock",{get:function(){return i.prodigy.gameContainer.Localizer.getText(a.lockKey)}}),Object.defineProperty(a,"name",{get:function(){return i.prodigy.gameContainer.Localizer.getText(a.nameKey)}}),Object.defineProperty(a,"summary",{get:function(){return i.prodigy.gameContainer.Localizer.getText(a.summaryKey)}}),a.msg={};var n=function(t){var e=Number(t);Object.defineProperty(a.msg,t,{get:function(){return i.prodigy.gameContainer.Localizer.getText(a.msgKeys[e])}})};for(var o in a.msgKeys)n(o);a.localized=!0}},l=0;l<e.BUTTONS_CONFIG.length;l++)s(l);return r.create(),r}return n(e,t),e.prototype.create=function(){t.prototype.create.call(this),this.addTransparent(),this.mapPanel=this.game.prodigy.create.panel(this,180,60,23,15,"shine2"),this.mapPanel.setRenderState(!0),this.map=this.game.prodigy.create.element(this,this.mapPanel.x,this.mapPanel.y),this.disableClose||this.game.prodigy.create.button(this.map,1060-this.mapPanel.x,50-this.mapPanel.y,"atlas-21","close",this.close.bind(this)),this.startLoad(["atlas-27"],this.showContent.bind(this)),c.Util.isValid(this.titanAsset)||this.game.broadcaster.addAppListener(s.ETitanEvents.GotTitans,this.gotTitanCallback.bind(this),this,"Titan"),this.onClose=this.closeWorldMap.bind(this)},e.prototype.closeWorldMap=function(){this.game.broadcaster.removeAppListener(s.ETitanEvents.GotTitans,this,"Titan")},e.prototype.showContent=function(){this.mapPanel.add(this.game.prodigy.create.sprite(20,20,"atlas-27","map")),this.process();for(var t=0;t<e.BUTTONS_CONFIG.length;t++){var i=e.BUTTONS_CONFIG[t],a=!1;(c.Util.isValid(i.item)&&0===this.game.prodigy.player.backpack.hasItem(i.item.type,i.item.ID)||this.forceLock.indexOf(i.nameKey)>-1)&&(a=!0);var n=void 0;if((n=c.Util.isValid(i.animatedSprites)?this.game.prodigy.create.button(this.map,i.x+20,i.y+20,"atlas-27",i.map,this.openLocation.bind(this,i,a),i.animatedSprites,i.animatedSpritePos):this.game.prodigy.create.button(this.map,i.x+20,i.y+20,"atlas-27",i.map,this.openLocation.bind(this,i,a))).sprite.input.pixelPerfectOver=!0,n.sprite.input.pixelPerfectClick=!0,a&&(n.sprite.tint=5592405),c.Util.isValid(i.isNew)&&i.isNew(this.game)&&!a){var r=this.map.add(this.game.prodigy.create.sprite(i.iconX-this.map.x,i.iconY-this.map.y,"atlas-21","exclamation"));r.inputEnabled=!0,r.events=n.sprite.events,r.anchor.setTo(.5,.5),this.game.add.tween(r).to({y:r.y-10},400,Phaser.Easing.Quadratic.InOut,!0,0,o.GameConstants.MAX_SAFE_INTEGER,!0)}}var l=this.game.prodigy.player;if(l.tutorial.getMenuValue(14)<1){l.tutorial.setMenuValue(14,0,1);var h=this.game.prodigy.dialogue.create();h.setText(18),h.start("noot")}!c.Util.isValid(this.titanAsset)&&this.forceLock.indexOf("DISABLE_TITAN")<0&&this.game.prodigy.titansNetworkHandler.getTitans(),this.game.broadcaster.broadcast(s.EFriendsListEvents.GetTotalFriendRequests,"FriendsList",[!1])},e.prototype.openLocation=function(t,e){if(e)!this.disableClose&&"WORLD_THE_ACADEMY"!==t.nameKey&&this.game.prodigy.classModeController.isClassMode([3])?this.game.prodigy.open.classModeMessage(this.game.prodigy.gameContainer.Localizer.getText(t.classCodeKey),null,null,t.name,t.classModeFrame,{isModal:!0}):this.game.prodigy.open.message(t.lock,null,t.icon,t.name,null,{isModal:!1});else if(c.Util.isValid(t.tag)){var i="";c.Util.isValid(this.titanAsset)&&(i=this.titanAsset.zone+"-Titan"),this.game.prodigy.open.zoneProgress(t,this.goTo.bind(this,t.target,t.clickEventName),this.goTo.bind(this,i,t.clickEventName))}else this.game.prodigy.open.messageBox(this.game.prodigy.gameContainer.Localizer.getText("WORLD_MAP_CONFIRM_TRAVEL",t.summary),this.goTo.bind(this,t.target,t.clickEventName),null,t.icon,t.name,null,{isModal:!1})},e.prototype.goTo=function(t,e){c.Util.isValid(e)&&this.game.broadcaster.broadcast(e,"UI"),this.game.broadcaster.removeAppListener(s.ETitanEvents.GotTitans,this,"Titan"),"Dorm"===t?(this.game.state.states[t].player=this.game.prodigy.player,this.game.prodigy.start(t)):"Portal"===t?p.ToyStore.openWebsite(this.game,"portal-btn"):t.indexOf("-")>0?this.game.prodigy.world.teleport(t):this.game.prodigy.start(t)},e.prototype.gotTitanCallback=function(t){var i;if(this.titanAsset=l.Items.getItem("titan",t.assetID).data,c.Util.isValid(this.titanAsset)){for(var a=0;a<e.BUTTONS_CONFIG.length;a++)if(this.titanAsset.zone===e.BUTTONS_CONFIG[a].zone){i=e.BUTTONS_CONFIG[a];break}if(c.Util.isValid(i)){var n=this.game.prodigy.create.sprite(i.iconX-this.map.x-40,i.iconY-this.map.y,"atlas-145","titan-notification");this.map.add(n),n.inputEnabled=!0,n.events.onInputDown.add(this.openLocation.bind(this,i,!1)),n.anchor.setTo(.5,.5),this.game.add.tween(n).to({y:n.y-10},400,Phaser.Easing.Quadratic.InOut,!0,0,o.GameConstants.MAX_SAFE_INTEGER,!0)}}this.game.broadcaster.removeAppListener(s.ETitanEvents.GotTitans,this,"Titan")},e.getZoneData=function(t){return e.BUTTONS_CONFIG.find(function(e){return e.zone===t})},e.BUTTONS_CONFIG=[{nameKey:"WORLD_FIREFLY_FOREST",zone:"forest",tag:"forest",atlasID:146,x:170,y:285,map:"btn-firefly",target:"forest-C8",summaryKey:"WORLD_FIREFLY_FOREST_DESC",lockKey:"WORLD_MAP_ZONE_LOCKED",msgKeys:{1:"WORLD_MAP_FOREST_QUEST_0",2:"WORLD_MAP_FOREST_QUEST_1",3:"WORLD_MAP_FOREST_QUEST_2",4:"WORLD_MAP_FOREST_QUEST_3",5:"WORLD_MAP_FOREST_QUEST_4",6:"WORLD_MAP_FOREST_QUEST_5",7:"WORLD_MAP_FOREST_QUEST_6",8:"WORLD_MAP_FOREST_QUEST_7",9:"WORLD_MAP_FOREST_QUEST_8",10:"WORLD_MAP_FOREST_QUEST_9",11:"WORLD_MAP_FOREST_QUEST_10",12:"WORLD_MAP_FOREST_QUEST_11"},iconX:466,iconY:419,isNew:function(t){return!c.Util.isValid(t.prodigy.player.state.get("zone-forest"))}},{nameKey:"WORLD_SHIVERCHILL_MOUNTAINS",zone:"shiverchill",tag:"shiverchill",atlasID:149,x:12,y:76,map:"btn-shiverchill",target:"shiverchill-A10",summaryKey:"WORLD_SHIVERCHILL_MOUNTAINS_DESC",lockKey:"WORLD_MAP_ZONE_LOCKED",msgKeys:{1:"WORLD_MAP_SHIVERCHILL_QUEST_0",2:"WORLD_MAP_SHIVERCHILL_QUEST_1",3:"WORLD_MAP_SHIVERCHILL_QUEST_2",4:"WORLD_MAP_SHIVERCHILL_QUEST_3",5:"WORLD_MAP_SHIVERCHILL_QUEST_4",6:"WORLD_MAP_SHIVERCHILL_QUEST_5",7:"WORLD_MAP_SHIVERCHILL_QUEST_6",8:"WORLD_MAP_SHIVERCHILL_QUEST_7",9:"WORLD_MAP_SHIVERCHILL_QUEST_8",10:"WORLD_MAP_SHIVERCHILL_QUEST_9",11:"WORLD_MAP_SHIVERCHILL_QUEST_10",12:"WORLD_MAP_SHIVERCHILL_QUEST_11",13:"WORLD_MAP_SHIVERCHILL_QUEST_12",14:"WORLD_MAP_SHIVERCHILL_QUEST_13",15:"WORLD_MAP_SHIVERCHILL_QUEST_14"},iconX:340,iconY:260,isNew:function(t){return!c.Util.isValid(t.prodigy.player.state.get("zone-shiverchill"))}},{nameKey:"WORLD_SKYWATCH",zone:"skywatch",tag:"skywatch",atlasID:150,x:141,y:16,map:"btn-skywatch",target:"skywatch-A1",summaryKey:"WORLD_SKYWATCH_DESC",lockKey:"WORLD_MAP_ZONE_LOCKED",msgKeys:{1:"WORLD_MAP_SKYWATCH_QUEST_0",2:"WORLD_MAP_SKYWATCH_QUEST_1",3:"WORLD_MAP_SKYWATCH_QUEST_2",4:"WORLD_MAP_SKYWATCH_QUEST_3",5:"WORLD_MAP_SKYWATCH_QUEST_4",6:"WORLD_MAP_SKYWATCH_QUEST_5",7:"WORLD_MAP_SKYWATCH_QUEST_6",8:"WORLD_MAP_SKYWATCH_QUEST_7",9:"WORLD_MAP_SKYWATCH_QUEST_8",10:"WORLD_MAP_SKYWATCH_QUEST_9",11:"WORLD_MAP_SKYWATCH_QUEST_10",12:"WORLD_MAP_SKYWATCH_QUEST_11",13:"WORLD_MAP_SKYWATCH_QUEST_12"},iconX:562,iconY:163,isNew:function(t){return!c.Util.isValid(t.prodigy.player.state.get("zone-skywatch"))}},{nameKey:"WORLD_DYNO_DIG_OASIS",zone:"dyno",x:43,y:347,map:"btn-dyno",target:"dyno-A0",summaryKey:"WORLD_DYNO_DIG_OASIS_DESC",lockKey:"WORLD_MAP_ZONE_LOCKED",classCodeKey:"WORLD_DYNO_DIG_OASIS_CLASS_MODE",classModeFrame:"popup-travel-dinodig",iconX:287,iconY:481,isNew:function(t){return!1}},{nameKey:"WORLD_EPICS_SUBSPACE",x:670,y:19,map:"btn-portal",target:"toyzone-B1",summaryKey:"WORLD_EPICS_SUBSPACE_DESC",lockKey:"WORLD_MAP_ZONE_LOCKED",iconX:940,iconY:150,animatedSprites:["tz-1","tz-2","tz-3","tz-4"],animatedSpritePos:{x:31,y:-16},isNew:function(t){try{return!c.Util.isValid(t.prodigy.player.state.get("zone-toyzone-0"))}catch(t){return!0}}},{nameKey:"WORLD_BONFIRE_SPIRE",zone:"bonfire_spire",tag:"bonfire",atlasID:147,x:546,y:86,map:"btn-bonfire",target:"bonfire_spire-B1",summaryKey:"WORLD_BONFIRE_SPIRE_DESC",lockKey:"WORLD_MAP_ZONE_LOCKED",msgKeys:{1:"WORLD_MAP_BONFIRE_QUEST_0",2:"WORLD_MAP_BONFIRE_QUEST_1",3:"WORLD_MAP_BONFIRE_QUEST_2",4:"WORLD_MAP_BONFIRE_QUEST_3",5:"WORLD_MAP_BONFIRE_QUEST_4",6:"WORLD_MAP_BONFIRE_QUEST_5",7:"WORLD_MAP_BONFIRE_QUEST_6",8:"WORLD_MAP_BONFIRE_QUEST_7",9:"WORLD_MAP_BONFIRE_QUEST_8",10:"WORLD_MAP_BONFIRE_QUEST_9",11:"WORLD_MAP_BONFIRE_QUEST_10",12:"WORLD_MAP_BONFIRE_QUEST_11",13:"WORLD_MAP_BONFIRE_QUEST_12",14:"WORLD_MAP_BONFIRE_QUEST_13"},iconX:836,iconY:232,isNew:function(t){return!c.Util.isValid(t.prodigy.player.state.get("zone-bonfire_spire"))}},{nameKey:"WORLD_SHIPWRECK_SHORE",zone:"shipwreck_shore",tag:"shipwreck",atlasID:148,x:717,y:102,map:"btn-pirate",icon:"zone-water",target:"shipwreck_shore-B12",summaryKey:"WORLD_SHIPWRECK_SHORE_DESC",lockKey:"WORLD_MAP_ZONE_LOCKED",msgKeys:{1:"WORLD_MAP_SHIPWRECK_QUEST_0",2:"WORLD_MAP_SHIPWRECK_QUEST_1",3:"WORLD_MAP_SHIPWRECK_QUEST_2",4:"WORLD_MAP_SHIPWRECK_QUEST_3",5:"WORLD_MAP_SHIPWRECK_QUEST_4",6:"WORLD_MAP_SHIPWRECK_QUEST_5",7:"WORLD_MAP_SHIPWRECK_QUEST_6",8:"WORLD_MAP_SHIPWRECK_QUEST_7",9:"WORLD_MAP_SHIPWRECK_QUEST_8",10:"WORLD_MAP_SHIPWRECK_QUEST_9",11:"WORLD_MAP_SHIPWRECK_QUEST_10"},iconX:1004,iconY:289,isNew:function(t){return!c.Util.isValid(t.prodigy.player.state.get("zone-shipwreck_shore"))}},{nameKey:"WORLD_DARK_TOWER",x:598,y:242,map:"btn-tower",target:"darktower-A1",summaryKey:"WORLD_DARK_TOWER_DESC",lockKey:"WORLD_MAP_ZONE_LOCKED",iconX:886,iconY:483,isNew:function(t){return 0===t.prodigy.player.getTowerProgress()}},{nameKey:"WORLD_LAMPLIGHT_TOWN",zone:"lamplight",x:315,y:395,map:"btn-town",target:"lamplight-B3",summaryKey:"WORLD_LAMPLIGHT_TOWN_DESC",classCodeKey:"WORLD_LAMPLIGHT_TOWN_CLASS_MODE",classModeFrame:"popup-travel-lamplight",lockKey:"WORLD_MAP_ZONE_LOCKED",iconX:641,iconY:558,isNew:function(t){return!c.Util.isValid(t.prodigy.player.state.get("zone-lamplight"))}},{nameKey:"WORLD_THE_ACADEMY",x:343,y:134,map:"btn-academy",target:"lamplight-B1",summaryKey:"WORLD_THE_ACADEMY_DESC",lockKey:"WORLD_MAP_ACADEMY_LOCKED",item:{type:"key",ID:99}},{nameKey:"WORLD_YOUR_HOUSE",zone:"house",x:200,y:498,map:"btn-house",target:"house-suburbs",summaryKey:"WORLD_YOUR_HOUSE_DESC",lockKey:"WORLD_MAP_ZONE_LOCKED",classCodeKey:"WORLD_YOUR_HOUSE_CLASS_MODE",classModeFrame:"popup-travel-home",clickEventName:s.EHouseEvents.ClickedHouseIcon,iconX:420,iconY:558,isNew:function(t){return t.prodigy.player.hasCompletedTutorial()&&!(t.prodigy.breadcrumbManager.isBreadcrumbComplete(h.Breadcrumbs.FEATURE_HOUSE_VISITING,h.Breadcrumbs.BREADCRUMB_CLICKED_WORLD_MAP_HOUSE)&&t.prodigy.breadcrumbManager.isBreadcrumbComplete(h.Breadcrumbs.FEATURE_HOUSE_MOVING,h.Breadcrumbs.BREADCRUMB_CLICKED_WORLD_MAP_HOUSE))}},{nameKey:"WORLD_LOST_ISLAND",x:740,y:275,map:"btn-activity",target:"activity_zone-B3",summaryKey:"WORLD_LOST_ISLAND_DESC",lockKey:"WORLD_MAP_ZONE_LOCKED",iconX:1008,iconY:394,isNew:function(t){return!c.Util.isValid(t.prodigy.player.state.get("zone-activity_zone"))}}],e}(r.RenderMenu);e.WorldMap=u},function(t,e,i){var a=i(82),n=i(728),o=i(726);t.exports=function(t,e){return o(n(t,e,a),t+"")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(730),n=i(2),o=i(49),r=i(22),s=i(249),l=i(48),h=i(134),c=i(133),p=i(232),u=i(231),d=i(132),g=i(130),y=i(129),f=i(38),m=i(15),_=i(13),v=i(0),E=function(){function t(t){this.game=null,this.game=t}return t.prototype.start=function(e,i,n,o,r,s){void 0===s&&(s=null);var l=this.game.state.states.Battle,h=a({},t.MOD_DEFAULTS,e),c=v.Util.isValid(s)?s:this.getTeam(this.game.prodigy.player),p=this.getBattleLevel(c);l.teamB=this.initBattle(h,p,c),l.teamA=c,l.drops=h.drops,l.mods=h,l.runAwayCallback=i,l.victoryCallback=n,l.defeatCallback=o,l.defeatZone=v.Util.isValid(r)?r:"house",l.screenName=h.screen,this.game.prodigy.start("Battle",{assets:t.getAssets(l.screenName,l.teamA,l.teamB)}),this.game.prodigy.network.sendZoneEvent("battle-start")},t.prototype.startEpicArena=function(t,e,i){var a=this;this.game.prodigy.player.healTeamMember(n.GameConstants.MAX_SAFE_INTEGER,t,null);var o="";switch(t){case 125:o="battle-skywatch-inside";break;case 133:o="battle-skywatch-outside";break;case 126:o="battle-forest-outside";break;case 127:o="battle-shiverchill-inside";break;case 128:case 131:o="battle-shipwreck-underwater";break;case 132:o="battle-skywatch-outside";break;case 129:o="battle-bonfire-inside";break;default:o="battle-bonfire-outside"}for(var r={catch:!1,run:!1,screen:o,epicArena:1,switchDisabled:!0,invincible:!1,starMod:1,challengeLevel:e,getAllRewards:i,difficulty:1},s=[],l=this.game.prodigy.player.kennel.getPets(),h=0;h<l.length;h++)if(l[h].ID===t){s.push(new m.Monster(this.game,l[h]));break}return 0===s.length||s[0].getCurrentHearts()<=0?(v.Util.log("The player do not have an valid EPIC to start this battle!",v.Util.ERROR),!1):(this.start(r,function(){a.endEpicArena(t,!0)},function(){a.endEpicArena(t)},function(){a.endEpicArena(t,!1)},"epicId",s),!0)},t.prototype.chooseAction=function(t,e,i,a,n,o,r,s){var l=e.source.getAttacks();if(l.length<=0)s();else{if(Math.random()<t/10*.8){for(var h=null,c=this.battleScore(e,i,!0,t),p=0;p<a.getTeamSize();p++)if(a.team[p]!==e&&a.team[p].source.getCurrentHearts()>0){var u=this.battleScore(a.team[p],i,!1);c<u&&(h=p,c=u)}if(v.Util.isValid(h))return void r(s,h)}var d=this.game.prodigy.attacks.getBestAttack(l,i.source,1-t);if(v.Util.isValid(d)){if(e.source.getCurrentHearts()/e.source.getMaxHearts()<.25&&Math.random()<t){var g=this.game.prodigy.attacks.getHealingAttack(l);v.Util.isValid(g)&&(d=g)}var y=.25-.25*t+e.source.modifiers.miss;o(e,i,s,d,Math.random()<y)}else s()}},t.prototype.getBattleLevel=function(t){void 0===t&&(t=null);var e=0;if(v.Util.isValid(t))for(var i=0;i<t.length;i++)e+=t[i].getLevel();return Math.floor(e/t.length)},t.prototype.getTeam=function(t){return t.kennel.getTeam().filter(function(t){return v.Util.isValid(t)})},t.prototype.battleScore=function(t,e,i,a){var n=this.game.prodigy.attacks.getBestAttack(t.source.getAttacks(),e.source,1-a),o=this.game.prodigy.attacks.getBestAttack(t.source.getAttacks(),t.source,1-a),r=this.game.prodigy.attacks.calculateDamage(n,null,e.source,0,1);if(0===r)return Number.NEGATIVE_INFINITY;var s=this.game.prodigy.attacks.calculateDamage(o,null,t.source,0,1);if(0===s)return Number.POSITIVE_INFINITY;var l=t.source.getMaxHearts();return i||(l=Math.max(l-s,0)),l/s-t.source.getMaxHearts()/r},t.prototype.chooseRandomMonster=function(t){for(var e=0,i=0;i<t.length;i++)e+=1/Math.max(1,v.Util.isValid(t[i].R)?t[i].R:s.Monsters.getEncounterRate(t[i].ID));var a=Math.random()*e;e=0;for(i=0;i<t.length;i++)if(a<(e+=1/Math.max(1,v.Util.isValid(t[i].R)?t[i].R:s.Monsters.getEncounterRate(t[i].ID))))return v.Util.copyObject(t[i]);return{ID:1}},t.prototype.initBattle=function(t,e,i){var a=[];if(v.Util.isValid(t.boss)){var n=v.Util.isValid(t.boss.heartsCurveType)?t.boss.heartsCurveType:"A",o=v.Util.isValid(t.boss.levelOffset)?t.boss.levelOffset:0;v.Util.isValid(t.boss.maxHP)||(t.boss.maxHP=4*(f.Creature.getHeartsFromCurve(n,1,Math.min(100,e+o+1))+12));var r={forest:p.ForestBoss,shiverchill:u.IceWyrmBoss,skywatch:c.CloudBoss,bonfire:h.BonfireBoss,shipwreck:d.OldOneBoss,pippet:g.PippetBoss,titan:y.TitanBoss};v.Util.isValid(t.boss.tag)?a.push(new r[t.boss.tag](this.game,t.boss)):a.push(new l.Boss(this.game,t.boss))}if(v.Util.isValid(t.encounter)){var s=new m.Monster(this.game,this.chooseOpponent(t.encounter)),_=Math.max(1,e-Math.floor(6*Math.random()));v.Util.isValid(t.level)&&(_=t.level),v.Util.isValid(t.maxLevel)&&(_<t.minLevel&&(_=t.minLevel),_>t.maxLevel&&(_=t.maxLevel)),s.generate(v.Util.isValid(t.level)?t.level:_,0),a.push(s)}if(v.Util.isValid(t.pets))for(var E=0;E<t.pets.length;E++){var b=t.pets[E];v.Util.isValid(b.level)&&!t.scale||(b.level=e),a.push(new m.Monster(this.game,b))}a.length>3&&(a.length=3);var O=a.length;if(v.Util.isValid(t.opponent))for(E=0;E<t.opponent.length&&E<3;E++)t.scale&&(v.Util.isValid(t.opponent[E].data)||(t.opponent[E].data={}),t.opponent[E].data.level=this.game.prodigy.player.getLevel()),O>=3?a[O-E]=this.initPlayerOpponent(t.opponent[E]):(a.push(this.initPlayerOpponent(t.opponent[E])),O+=1);if(v.Util.isValid(t.teamModifiers))for(E=0;E<a.length;E++)for(var T in t.teamModifiers)a[E].updateModifier(T,t.teamModifiers[T]);return a},t.getAssets=function(t,e,i){for(var a=[t,"atlas-17","atlas-16","bgm-2","bgm-1"],n=0;n<e.length;n++)e[n]instanceof _.Player||(e[n]instanceof m.Monster?a=a.concat(r.MonsterContainer.getAssets(e[n])):e[n]instanceof l.Boss&&(a=a.concat(o.BossContainer.getAssets(e[n]))));for(n=0;n<i.length;n++)i[n]instanceof _.Player||(i[n]instanceof m.Monster?a=a.concat(r.MonsterContainer.getAssets(i[n])):i[n]instanceof l.Boss&&(a=a.concat(o.BossContainer.getAssets(i[n]))));return a},t.prototype.initPlayerOpponent=function(t){var e=new _.Player(this.game);return e.init(t),e},t.prototype.endEpicArena=function(t,e){var i=this;void 0===e&&(e=!1);var a="toyzone-B1";switch(t){case 125:case 126:case 127:case 128:case 129:a="toyzone-B2";break;case 130:case 131:case 132:case 133:a="toyzone-A1"}for(var o={x:void 0,y:void 0},r=a.split("-"),s=this.game.prodigy.world.zones[r[0]].maps[r[1]],l=0;l<s.TOY_SPAWN_DATA.length;++l)if(s.TOY_SPAWN_DATA[l].ID===t){o=s.TOY_SPAWN_DATA[l].path;break}e?this.game.prodigy.world.teleport(a,o.x,o.y):this.game.prodigy.player.healTeamMember(n.GameConstants.MAX_SAFE_INTEGER,t,function(){i.game.prodigy.world.teleport(a,o.x,o.y)})},t.prototype.chooseOpponent=function(t){for(var e=0,i=0;i<t.length;i++)e+=v.Util.isValid(t[i].R)?t[i].R:s.Monsters.getEncounterRate(t[i].ID);var a=Math.random()*e;e=0;for(i=0;i<t.length;i++)if(a<(e+=v.Util.isValid(t[i].R)?t[i].R:s.Monsters.getEncounterRate(t[i].ID)))return v.Util.copyObject(t[i]);return{ID:1}},t.MOD_DEFAULTS={invincible:!1,scale:!1,run:!0,difficulty:3,dropsDisabled:!1,starMod:1,catch:!0,switchDisabled:!1,itemUsed:!1,drops:[],encounter:null,opponent:null,boss:null,pets:null,dmgMod:0,events:[],intro:null,allowMember:!0,level:null,unique:!1,potionMode:!0},t}();e.BattleController=E},function(t,e,i){(function(t,a){var n;
/**
* @license
* Lodash <https://lodash.com/>
* Copyright JS Foundation and other contributors <https://js.foundation/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var o,r=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",h="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",u=1,d=2,g=4,y=1,f=2,m=1,_=2,v=4,E=8,b=16,O=32,T=64,A=128,I=256,w=512,C=30,S="...",P=800,D=16,L=1,x=2,M=1/0,N=9007199254740991,U=1.7976931348623157e308,k=NaN,R=4294967295,B=R-1,G=R>>>1,V=[["ary",A],["bind",m],["bindKey",_],["curry",E],["curryRight",b],["flip",w],["partial",O],["partialRight",T],["rearg",I]],H="[object Arguments]",F="[object Array]",j="[object AsyncFunction]",z="[object Boolean]",W="[object Date]",K="[object DOMException]",Y="[object Error]",q="[object Function]",Q="[object GeneratorFunction]",X="[object Map]",Z="[object Number]",J="[object Null]",$="[object Object]",tt="[object Proxy]",et="[object RegExp]",it="[object Set]",at="[object String]",nt="[object Symbol]",ot="[object Undefined]",rt="[object WeakMap]",st="[object WeakSet]",lt="[object ArrayBuffer]",ht="[object DataView]",ct="[object Float32Array]",pt="[object Float64Array]",ut="[object Int8Array]",dt="[object Int16Array]",gt="[object Int32Array]",yt="[object Uint8Array]",ft="[object Uint8ClampedArray]",mt="[object Uint16Array]",_t="[object Uint32Array]",vt=/\b__p \+= '';/g,Et=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ot=/&(?:amp|lt|gt|quot|#39);/g,Tt=/[&<>"']/g,At=RegExp(Ot.source),It=RegExp(Tt.source),wt=/<%-([\s\S]+?)%>/g,Ct=/<%([\s\S]+?)%>/g,St=/<%=([\s\S]+?)%>/g,Pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dt=/^\w*$/,Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xt=/[\\^$.*+?()[\]{}|]/g,Mt=RegExp(xt.source),Nt=/^\s+|\s+$/g,Ut=/^\s+/,kt=/\s+$/,Rt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bt=/\{\n\/\* \[wrapped with (.+)\] \*/,Gt=/,? & /,Vt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ht=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jt=/\w*$/,zt=/^[-+]0x[0-9a-f]+$/i,Wt=/^0b[01]+$/i,Kt=/^\[object .+?Constructor\]$/,Yt=/^0o[0-7]+$/i,qt=/^(?:0|[1-9]\d*)$/,Qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,Zt=/['\n\r\u2028\u2029\\]/g,Jt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",$t="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",te="[\\ud800-\\udfff]",ee="["+$t+"]",ie="["+Jt+"]",ae="\\d+",ne="[\\u2700-\\u27bf]",oe="[a-z\\xdf-\\xf6\\xf8-\\xff]",re="[^\\ud800-\\udfff"+$t+ae+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",se="\\ud83c[\\udffb-\\udfff]",le="[^\\ud800-\\udfff]",he="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ue="(?:"+oe+"|"+re+")",de="(?:"+pe+"|"+re+")",ge="(?:"+ie+"|"+se+")"+"?",ye="[\\ufe0e\\ufe0f]?"+ge+("(?:\\u200d(?:"+[le,he,ce].join("|")+")[\\ufe0e\\ufe0f]?"+ge+")*"),fe="(?:"+[ne,he,ce].join("|")+")"+ye,me="(?:"+[le+ie+"?",ie,he,ce,te].join("|")+")",_e=RegExp("['’]","g"),ve=RegExp(ie,"g"),Ee=RegExp(se+"(?="+se+")|"+me+ye,"g"),be=RegExp([pe+"?"+oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ee,pe,"$"].join("|")+")",de+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ee,pe+ue,"$"].join("|")+")",pe+"?"+ue+"+(?:['’](?:d|ll|m|re|s|t|ve))?",pe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ae,fe].join("|"),"g"),Oe=RegExp("[\\u200d\\ud800-\\udfff"+Jt+"\\ufe0e\\ufe0f]"),Te=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ae=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ie=-1,we={};we[ct]=we[pt]=we[ut]=we[dt]=we[gt]=we[yt]=we[ft]=we[mt]=we[_t]=!0,we[H]=we[F]=we[lt]=we[z]=we[ht]=we[W]=we[Y]=we[q]=we[X]=we[Z]=we[$]=we[et]=we[it]=we[at]=we[rt]=!1;var Ce={};Ce[H]=Ce[F]=Ce[lt]=Ce[ht]=Ce[z]=Ce[W]=Ce[ct]=Ce[pt]=Ce[ut]=Ce[dt]=Ce[gt]=Ce[X]=Ce[Z]=Ce[$]=Ce[et]=Ce[it]=Ce[at]=Ce[nt]=Ce[yt]=Ce[ft]=Ce[mt]=Ce[_t]=!0,Ce[Y]=Ce[q]=Ce[rt]=!1;var Se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pe=parseFloat,De=parseInt,Le="object"==typeof t&&t&&t.Object===Object&&t,xe="object"==typeof self&&self&&self.Object===Object&&self,Me=Le||xe||Function("return this")(),Ne="object"==typeof e&&e&&!e.nodeType&&e,Ue=Ne&&"object"==typeof a&&a&&!a.nodeType&&a,ke=Ue&&Ue.exports===Ne,Re=ke&&Le.process,Be=function(){try{var t=Ue&&Ue.require&&Ue.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}(),Ge=Be&&Be.isArrayBuffer,Ve=Be&&Be.isDate,He=Be&&Be.isMap,Fe=Be&&Be.isRegExp,je=Be&&Be.isSet,ze=Be&&Be.isTypedArray;function We(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}function Ke(t,e,i,a){for(var n=-1,o=null==t?0:t.length;++n<o;){var r=t[n];e(a,r,i(r),t)}return a}function Ye(t,e){for(var i=-1,a=null==t?0:t.length;++i<a&&!1!==e(t[i],i,t););return t}function qe(t,e){for(var i=null==t?0:t.length;i--&&!1!==e(t[i],i,t););return t}function Qe(t,e){for(var i=-1,a=null==t?0:t.length;++i<a;)if(!e(t[i],i,t))return!1;return!0}function Xe(t,e){for(var i=-1,a=null==t?0:t.length,n=0,o=[];++i<a;){var r=t[i];e(r,i,t)&&(o[n++]=r)}return o}function Ze(t,e){return!!(null==t?0:t.length)&&si(t,e,0)>-1}function Je(t,e,i){for(var a=-1,n=null==t?0:t.length;++a<n;)if(i(e,t[a]))return!0;return!1}function $e(t,e){for(var i=-1,a=null==t?0:t.length,n=Array(a);++i<a;)n[i]=e(t[i],i,t);return n}function ti(t,e){for(var i=-1,a=e.length,n=t.length;++i<a;)t[n+i]=e[i];return t}function ei(t,e,i,a){var n=-1,o=null==t?0:t.length;for(a&&o&&(i=t[++n]);++n<o;)i=e(i,t[n],n,t);return i}function ii(t,e,i,a){var n=null==t?0:t.length;for(a&&n&&(i=t[--n]);n--;)i=e(i,t[n],n,t);return i}function ai(t,e){for(var i=-1,a=null==t?0:t.length;++i<a;)if(e(t[i],i,t))return!0;return!1}var ni=pi("length");function oi(t,e,i){var a;return i(t,function(t,i,n){if(e(t,i,n))return a=i,!1}),a}function ri(t,e,i,a){for(var n=t.length,o=i+(a?1:-1);a?o--:++o<n;)if(e(t[o],o,t))return o;return-1}function si(t,e,i){return e==e?function(t,e,i){var a=i-1,n=t.length;for(;++a<n;)if(t[a]===e)return a;return-1}(t,e,i):ri(t,hi,i)}function li(t,e,i,a){for(var n=i-1,o=t.length;++n<o;)if(a(t[n],e))return n;return-1}function hi(t){return t!=t}function ci(t,e){var i=null==t?0:t.length;return i?gi(t,e)/i:k}function pi(t){return function(e){return null==e?o:e[t]}}function ui(t){return function(e){return null==t?o:t[e]}}function di(t,e,i,a,n){return n(t,function(t,n,o){i=a?(a=!1,t):e(i,t,n,o)}),i}function gi(t,e){for(var i,a=-1,n=t.length;++a<n;){var r=e(t[a]);r!==o&&(i=i===o?r:i+r)}return i}function yi(t,e){for(var i=-1,a=Array(t);++i<t;)a[i]=e(i);return a}function fi(t){return function(e){return t(e)}}function mi(t,e){return $e(e,function(e){return t[e]})}function _i(t,e){return t.has(e)}function vi(t,e){for(var i=-1,a=t.length;++i<a&&si(e,t[i],0)>-1;);return i}function Ei(t,e){for(var i=t.length;i--&&si(e,t[i],0)>-1;);return i}var bi=ui({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Oi=ui({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Ti(t){return"\\"+Se[t]}function Ai(t){return Oe.test(t)}function Ii(t){var e=-1,i=Array(t.size);return t.forEach(function(t,a){i[++e]=[a,t]}),i}function wi(t,e){return function(i){return t(e(i))}}function Ci(t,e){for(var i=-1,a=t.length,n=0,o=[];++i<a;){var r=t[i];r!==e&&r!==p||(t[i]=p,o[n++]=i)}return o}function Si(t,e){return"__proto__"==e?o:t[e]}function Pi(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i}function Di(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=[t,t]}),i}function Li(t){return Ai(t)?function(t){var e=Ee.lastIndex=0;for(;Ee.test(t);)++e;return e}(t):ni(t)}function xi(t){return Ai(t)?function(t){return t.match(Ee)||[]}(t):function(t){return t.split("")}(t)}var Mi=ui({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Ni=function t(e){var i,a=(e=null==e?Me:Ni.defaults(Me.Object(),e,Ni.pick(Me,Ae))).Array,n=e.Date,Jt=e.Error,$t=e.Function,te=e.Math,ee=e.Object,ie=e.RegExp,ae=e.String,ne=e.TypeError,oe=a.prototype,re=$t.prototype,se=ee.prototype,le=e["__core-js_shared__"],he=re.toString,ce=se.hasOwnProperty,pe=0,ue=(i=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",de=se.toString,ge=he.call(ee),ye=Me._,fe=ie("^"+he.call(ce).replace(xt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=ke?e.Buffer:o,Ee=e.Symbol,Oe=e.Uint8Array,Se=me?me.allocUnsafe:o,Le=wi(ee.getPrototypeOf,ee),xe=ee.create,Ne=se.propertyIsEnumerable,Ue=oe.splice,Re=Ee?Ee.isConcatSpreadable:o,Be=Ee?Ee.iterator:o,ni=Ee?Ee.toStringTag:o,ui=function(){try{var t=Vo(ee,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ui=e.clearTimeout!==Me.clearTimeout&&e.clearTimeout,ki=n&&n.now!==Me.Date.now&&n.now,Ri=e.setTimeout!==Me.setTimeout&&e.setTimeout,Bi=te.ceil,Gi=te.floor,Vi=ee.getOwnPropertySymbols,Hi=me?me.isBuffer:o,Fi=e.isFinite,ji=oe.join,zi=wi(ee.keys,ee),Wi=te.max,Ki=te.min,Yi=n.now,qi=e.parseInt,Qi=te.random,Xi=oe.reverse,Zi=Vo(e,"DataView"),Ji=Vo(e,"Map"),$i=Vo(e,"Promise"),ta=Vo(e,"Set"),ea=Vo(e,"WeakMap"),ia=Vo(ee,"create"),aa=ea&&new ea,na={},oa=pr(Zi),ra=pr(Ji),sa=pr($i),la=pr(ta),ha=pr(ea),ca=Ee?Ee.prototype:o,pa=ca?ca.valueOf:o,ua=ca?ca.toString:o;function da(t){if(Ss(t)&&!ms(t)&&!(t instanceof ma)){if(t instanceof fa)return t;if(ce.call(t,"__wrapped__"))return ur(t)}return new fa(t)}var ga=function(){function t(){}return function(e){if(!Cs(e))return{};if(xe)return xe(e);t.prototype=e;var i=new t;return t.prototype=o,i}}();function ya(){}function fa(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function ma(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function _a(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var a=t[e];this.set(a[0],a[1])}}function va(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var a=t[e];this.set(a[0],a[1])}}function Ea(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var a=t[e];this.set(a[0],a[1])}}function ba(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new Ea;++e<i;)this.add(t[e])}function Oa(t){var e=this.__data__=new va(t);this.size=e.size}function Ta(t,e){var i=ms(t),a=!i&&fs(t),n=!i&&!a&&bs(t),o=!i&&!a&&!n&&ks(t),r=i||a||n||o,s=r?yi(t.length,ae):[],l=s.length;for(var h in t)!e&&!ce.call(t,h)||r&&("length"==h||n&&("offset"==h||"parent"==h)||o&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||Yo(h,l))||s.push(h);return s}function Aa(t){var e=t.length;return e?t[On(0,e-1)]:o}function Ia(t,e){return lr(ao(t),Na(e,0,t.length))}function wa(t){return lr(ao(t))}function Ca(t,e,i){(i===o||ds(t[e],i))&&(i!==o||e in t)||xa(t,e,i)}function Sa(t,e,i){var a=t[e];ce.call(t,e)&&ds(a,i)&&(i!==o||e in t)||xa(t,e,i)}function Pa(t,e){for(var i=t.length;i--;)if(ds(t[i][0],e))return i;return-1}function Da(t,e,i,a){return Ga(t,function(t,n,o){e(a,t,i(t),o)}),a}function La(t,e){return t&&no(e,nl(e),t)}function xa(t,e,i){"__proto__"==e&&ui?ui(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function Ma(t,e){for(var i=-1,n=e.length,r=a(n),s=null==t;++i<n;)r[i]=s?o:$s(t,e[i]);return r}function Na(t,e,i){return t==t&&(i!==o&&(t=t<=i?t:i),e!==o&&(t=t>=e?t:e)),t}function Ua(t,e,i,a,n,r){var s,l=e&u,h=e&d,c=e&g;if(i&&(s=n?i(t,a,n,r):i(t)),s!==o)return s;if(!Cs(t))return t;var p=ms(t);if(p){if(s=function(t){var e=t.length,i=new t.constructor(e);return e&&"string"==typeof t[0]&&ce.call(t,"index")&&(i.index=t.index,i.input=t.input),i}(t),!l)return ao(t,s)}else{var y=jo(t),f=y==q||y==Q;if(bs(t))return Zn(t,l);if(y==$||y==H||f&&!n){if(s=h||f?{}:Wo(t),!l)return h?function(t,e){return no(t,Fo(t),e)}(t,function(t,e){return t&&no(e,ol(e),t)}(s,t)):function(t,e){return no(t,Ho(t),e)}(t,La(s,t))}else{if(!Ce[y])return n?t:{};s=function(t,e,i){var a,n,o,r=t.constructor;switch(e){case lt:return Jn(t);case z:case W:return new r(+t);case ht:return function(t,e){var i=e?Jn(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,i);case ct:case pt:case ut:case dt:case gt:case yt:case ft:case mt:case _t:return $n(t,i);case X:return new r;case Z:case at:return new r(t);case et:return(o=new(n=t).constructor(n.source,jt.exec(n))).lastIndex=n.lastIndex,o;case it:return new r;case nt:return a=t,pa?ee(pa.call(a)):{}}}(t,y,l)}}r||(r=new Oa);var m=r.get(t);if(m)return m;if(r.set(t,s),Ms(t))return t.forEach(function(a){s.add(Ua(a,e,i,a,t,r))}),s;if(Ps(t))return t.forEach(function(a,n){s.set(n,Ua(a,e,i,n,t,r))}),s;var _=p?o:(c?h?Mo:xo:h?ol:nl)(t);return Ye(_||t,function(a,n){_&&(a=t[n=a]),Sa(s,n,Ua(a,e,i,n,t,r))}),s}function ka(t,e,i){var a=i.length;if(null==t)return!a;for(t=ee(t);a--;){var n=i[a],r=e[n],s=t[n];if(s===o&&!(n in t)||!r(s))return!1}return!0}function Ra(t,e,i){if("function"!=typeof t)throw new ne(l);return nr(function(){t.apply(o,i)},e)}function Ba(t,e,i,a){var n=-1,o=Ze,s=!0,l=t.length,h=[],c=e.length;if(!l)return h;i&&(e=$e(e,fi(i))),a?(o=Je,s=!1):e.length>=r&&(o=_i,s=!1,e=new ba(e));t:for(;++n<l;){var p=t[n],u=null==i?p:i(p);if(p=a||0!==p?p:0,s&&u==u){for(var d=c;d--;)if(e[d]===u)continue t;h.push(p)}else o(e,u,a)||h.push(p)}return h}da.templateSettings={escape:wt,evaluate:Ct,interpolate:St,variable:"",imports:{_:da}},da.prototype=ya.prototype,da.prototype.constructor=da,fa.prototype=ga(ya.prototype),fa.prototype.constructor=fa,ma.prototype=ga(ya.prototype),ma.prototype.constructor=ma,_a.prototype.clear=function(){this.__data__=ia?ia(null):{},this.size=0},_a.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},_a.prototype.get=function(t){var e=this.__data__;if(ia){var i=e[t];return i===h?o:i}return ce.call(e,t)?e[t]:o},_a.prototype.has=function(t){var e=this.__data__;return ia?e[t]!==o:ce.call(e,t)},_a.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=ia&&e===o?h:e,this},va.prototype.clear=function(){this.__data__=[],this.size=0},va.prototype.delete=function(t){var e=this.__data__,i=Pa(e,t);return!(i<0||(i==e.length-1?e.pop():Ue.call(e,i,1),--this.size,0))},va.prototype.get=function(t){var e=this.__data__,i=Pa(e,t);return i<0?o:e[i][1]},va.prototype.has=function(t){return Pa(this.__data__,t)>-1},va.prototype.set=function(t,e){var i=this.__data__,a=Pa(i,t);return a<0?(++this.size,i.push([t,e])):i[a][1]=e,this},Ea.prototype.clear=function(){this.size=0,this.__data__={hash:new _a,map:new(Ji||va),string:new _a}},Ea.prototype.delete=function(t){var e=Bo(this,t).delete(t);return this.size-=e?1:0,e},Ea.prototype.get=function(t){return Bo(this,t).get(t)},Ea.prototype.has=function(t){return Bo(this,t).has(t)},Ea.prototype.set=function(t,e){var i=Bo(this,t),a=i.size;return i.set(t,e),this.size+=i.size==a?0:1,this},ba.prototype.add=ba.prototype.push=function(t){return this.__data__.set(t,h),this},ba.prototype.has=function(t){return this.__data__.has(t)},Oa.prototype.clear=function(){this.__data__=new va,this.size=0},Oa.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Oa.prototype.get=function(t){return this.__data__.get(t)},Oa.prototype.has=function(t){return this.__data__.has(t)},Oa.prototype.set=function(t,e){var i=this.__data__;if(i instanceof va){var a=i.__data__;if(!Ji||a.length<r-1)return a.push([t,e]),this.size=++i.size,this;i=this.__data__=new Ea(a)}return i.set(t,e),this.size=i.size,this};var Ga=so(Ya),Va=so(qa,!0);function Ha(t,e){var i=!0;return Ga(t,function(t,a,n){return i=!!e(t,a,n)}),i}function Fa(t,e,i){for(var a=-1,n=t.length;++a<n;){var r=t[a],s=e(r);if(null!=s&&(l===o?s==s&&!Us(s):i(s,l)))var l=s,h=r}return h}function ja(t,e){var i=[];return Ga(t,function(t,a,n){e(t,a,n)&&i.push(t)}),i}function za(t,e,i,a,n){var o=-1,r=t.length;for(i||(i=Ko),n||(n=[]);++o<r;){var s=t[o];e>0&&i(s)?e>1?za(s,e-1,i,a,n):ti(n,s):a||(n[n.length]=s)}return n}var Wa=lo(),Ka=lo(!0);function Ya(t,e){return t&&Wa(t,e,nl)}function qa(t,e){return t&&Ka(t,e,nl)}function Qa(t,e){return Xe(e,function(e){return As(t[e])})}function Xa(t,e){for(var i=0,a=(e=Yn(e,t)).length;null!=t&&i<a;)t=t[cr(e[i++])];return i&&i==a?t:o}function Za(t,e,i){var a=e(t);return ms(t)?a:ti(a,i(t))}function Ja(t){return null==t?t===o?ot:J:ni&&ni in ee(t)?function(t){var e=ce.call(t,ni),i=t[ni];try{t[ni]=o;var a=!0}catch(t){}var n=de.call(t);return a&&(e?t[ni]=i:delete t[ni]),n}(t):function(t){return de.call(t)}(t)}function $a(t,e){return t>e}function tn(t,e){return null!=t&&ce.call(t,e)}function en(t,e){return null!=t&&e in ee(t)}function an(t,e,i){for(var n=i?Je:Ze,r=t[0].length,s=t.length,l=s,h=a(s),c=1/0,p=[];l--;){var u=t[l];l&&e&&(u=$e(u,fi(e))),c=Ki(u.length,c),h[l]=!i&&(e||r>=120&&u.length>=120)?new ba(l&&u):o}u=t[0];var d=-1,g=h[0];t:for(;++d<r&&p.length<c;){var y=u[d],f=e?e(y):y;if(y=i||0!==y?y:0,!(g?_i(g,f):n(p,f,i))){for(l=s;--l;){var m=h[l];if(!(m?_i(m,f):n(t[l],f,i)))continue t}g&&g.push(f),p.push(y)}}return p}function nn(t,e,i){var a=null==(t=ir(t,e=Yn(e,t)))?t:t[cr(Tr(e))];return null==a?o:We(a,t,i)}function on(t){return Ss(t)&&Ja(t)==H}function rn(t,e,i,a,n){return t===e||(null==t||null==e||!Ss(t)&&!Ss(e)?t!=t&&e!=e:function(t,e,i,a,n,r){var s=ms(t),l=ms(e),h=s?F:jo(t),c=l?F:jo(e),p=(h=h==H?$:h)==$,u=(c=c==H?$:c)==$,d=h==c;if(d&&bs(t)){if(!bs(e))return!1;s=!0,p=!1}if(d&&!p)return r||(r=new Oa),s||ks(t)?Do(t,e,i,a,n,r):function(t,e,i,a,n,o,r){switch(i){case ht:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case lt:return!(t.byteLength!=e.byteLength||!o(new Oe(t),new Oe(e)));case z:case W:case Z:return ds(+t,+e);case Y:return t.name==e.name&&t.message==e.message;case et:case at:return t==e+"";case X:var s=Ii;case it:var l=a&y;if(s||(s=Pi),t.size!=e.size&&!l)return!1;var h=r.get(t);if(h)return h==e;a|=f,r.set(t,e);var c=Do(s(t),s(e),a,n,o,r);return r.delete(t),c;case nt:if(pa)return pa.call(t)==pa.call(e)}return!1}(t,e,h,i,a,n,r);if(!(i&y)){var g=p&&ce.call(t,"__wrapped__"),m=u&&ce.call(e,"__wrapped__");if(g||m){var _=g?t.value():t,v=m?e.value():e;return r||(r=new Oa),n(_,v,i,a,r)}}return!!d&&(r||(r=new Oa),function(t,e,i,a,n,r){var s=i&y,l=xo(t),h=l.length,c=xo(e).length;if(h!=c&&!s)return!1;for(var p=h;p--;){var u=l[p];if(!(s?u in e:ce.call(e,u)))return!1}var d=r.get(t);if(d&&r.get(e))return d==e;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++p<h;){u=l[p];var m=t[u],_=e[u];if(a)var v=s?a(_,m,u,e,t,r):a(m,_,u,t,e,r);if(!(v===o?m===_||n(m,_,i,a,r):v)){g=!1;break}f||(f="constructor"==u)}if(g&&!f){var E=t.constructor,b=e.constructor;E!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof E&&E instanceof E&&"function"==typeof b&&b instanceof b)&&(g=!1)}return r.delete(t),r.delete(e),g}(t,e,i,a,n,r))}(t,e,i,a,rn,n))}function sn(t,e,i,a){var n=i.length,r=n,s=!a;if(null==t)return!r;for(t=ee(t);n--;){var l=i[n];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++n<r;){var h=(l=i[n])[0],c=t[h],p=l[1];if(s&&l[2]){if(c===o&&!(h in t))return!1}else{var u=new Oa;if(a)var d=a(c,p,h,t,e,u);if(!(d===o?rn(p,c,y|f,a,u):d))return!1}}return!0}function ln(t){return!(!Cs(t)||ue&&ue in t)&&(As(t)?fe:Kt).test(pr(t))}function hn(t){return"function"==typeof t?t:null==t?Dl:"object"==typeof t?ms(t)?yn(t[0],t[1]):gn(t):Gl(t)}function cn(t){if(!Jo(t))return zi(t);var e=[];for(var i in ee(t))ce.call(t,i)&&"constructor"!=i&&e.push(i);return e}function pn(t){if(!Cs(t))return function(t){var e=[];if(null!=t)for(var i in ee(t))e.push(i);return e}(t);var e=Jo(t),i=[];for(var a in t)("constructor"!=a||!e&&ce.call(t,a))&&i.push(a);return i}function un(t,e){return t<e}function dn(t,e){var i=-1,n=vs(t)?a(t.length):[];return Ga(t,function(t,a,o){n[++i]=e(t,a,o)}),n}function gn(t){var e=Go(t);return 1==e.length&&e[0][2]?tr(e[0][0],e[0][1]):function(i){return i===t||sn(i,t,e)}}function yn(t,e){return Qo(t)&&$o(e)?tr(cr(t),e):function(i){var a=$s(i,t);return a===o&&a===e?tl(i,t):rn(e,a,y|f)}}function fn(t,e,i,a,n){t!==e&&Wa(e,function(r,s){if(Cs(r))n||(n=new Oa),function(t,e,i,a,n,r,s){var l=Si(t,i),h=Si(e,i),c=s.get(h);if(c)Ca(t,i,c);else{var p=r?r(l,h,i+"",t,e,s):o,u=p===o;if(u){var d=ms(h),g=!d&&bs(h),y=!d&&!g&&ks(h);p=h,d||g||y?ms(l)?p=l:Es(l)?p=ao(l):g?(u=!1,p=Zn(h,!0)):y?(u=!1,p=$n(h,!0)):p=[]:Ls(h)||fs(h)?(p=l,fs(l)?p=zs(l):(!Cs(l)||a&&As(l))&&(p=Wo(h))):u=!1}u&&(s.set(h,p),n(p,h,a,r,s),s.delete(h)),Ca(t,i,p)}}(t,e,s,i,fn,a,n);else{var l=a?a(Si(t,s),r,s+"",t,e,n):o;l===o&&(l=r),Ca(t,s,l)}},ol)}function mn(t,e){var i=t.length;if(i)return Yo(e+=e<0?i:0,i)?t[e]:o}function _n(t,e,i){var a=-1;return e=$e(e.length?e:[Dl],fi(Ro())),function(t,e){var i=t.length;for(t.sort(e);i--;)t[i]=t[i].value;return t}(dn(t,function(t,i,n){return{criteria:$e(e,function(e){return e(t)}),index:++a,value:t}}),function(t,e){return function(t,e,i){for(var a=-1,n=t.criteria,o=e.criteria,r=n.length,s=i.length;++a<r;){var l=to(n[a],o[a]);if(l){if(a>=s)return l;var h=i[a];return l*("desc"==h?-1:1)}}return t.index-e.index}(t,e,i)})}function vn(t,e,i){for(var a=-1,n=e.length,o={};++a<n;){var r=e[a],s=Xa(t,r);i(s,r)&&Cn(o,Yn(r,t),s)}return o}function En(t,e,i,a){var n=a?li:si,o=-1,r=e.length,s=t;for(t===e&&(e=ao(e)),i&&(s=$e(t,fi(i)));++o<r;)for(var l=0,h=e[o],c=i?i(h):h;(l=n(s,c,l,a))>-1;)s!==t&&Ue.call(s,l,1),Ue.call(t,l,1);return t}function bn(t,e){for(var i=t?e.length:0,a=i-1;i--;){var n=e[i];if(i==a||n!==o){var o=n;Yo(n)?Ue.call(t,n,1):Gn(t,n)}}return t}function On(t,e){return t+Gi(Qi()*(e-t+1))}function Tn(t,e){var i="";if(!t||e<1||e>N)return i;do{e%2&&(i+=t),(e=Gi(e/2))&&(t+=t)}while(e);return i}function An(t,e){return or(er(t,e,Dl),t+"")}function In(t){return Aa(dl(t))}function wn(t,e){var i=dl(t);return lr(i,Na(e,0,i.length))}function Cn(t,e,i,a){if(!Cs(t))return t;for(var n=-1,r=(e=Yn(e,t)).length,s=r-1,l=t;null!=l&&++n<r;){var h=cr(e[n]),c=i;if(n!=s){var p=l[h];(c=a?a(p,h,l):o)===o&&(c=Cs(p)?p:Yo(e[n+1])?[]:{})}Sa(l,h,c),l=l[h]}return t}var Sn=aa?function(t,e){return aa.set(t,e),t}:Dl,Pn=ui?function(t,e){return ui(t,"toString",{configurable:!0,enumerable:!1,value:Cl(e),writable:!0})}:Dl;function Dn(t){return lr(dl(t))}function Ln(t,e,i){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(i=i>o?o:i)<0&&(i+=o),o=e>i?0:i-e>>>0,e>>>=0;for(var r=a(o);++n<o;)r[n]=t[n+e];return r}function xn(t,e){var i;return Ga(t,function(t,a,n){return!(i=e(t,a,n))}),!!i}function Mn(t,e,i){var a=0,n=null==t?a:t.length;if("number"==typeof e&&e==e&&n<=G){for(;a<n;){var o=a+n>>>1,r=t[o];null!==r&&!Us(r)&&(i?r<=e:r<e)?a=o+1:n=o}return n}return Nn(t,e,Dl,i)}function Nn(t,e,i,a){e=i(e);for(var n=0,r=null==t?0:t.length,s=e!=e,l=null===e,h=Us(e),c=e===o;n<r;){var p=Gi((n+r)/2),u=i(t[p]),d=u!==o,g=null===u,y=u==u,f=Us(u);if(s)var m=a||y;else m=c?y&&(a||d):l?y&&d&&(a||!g):h?y&&d&&!g&&(a||!f):!g&&!f&&(a?u<=e:u<e);m?n=p+1:r=p}return Ki(r,B)}function Un(t,e){for(var i=-1,a=t.length,n=0,o=[];++i<a;){var r=t[i],s=e?e(r):r;if(!i||!ds(s,l)){var l=s;o[n++]=0===r?0:r}}return o}function kn(t){return"number"==typeof t?t:Us(t)?k:+t}function Rn(t){if("string"==typeof t)return t;if(ms(t))return $e(t,Rn)+"";if(Us(t))return ua?ua.call(t):"";var e=t+"";return"0"==e&&1/t==-M?"-0":e}function Bn(t,e,i){var a=-1,n=Ze,o=t.length,s=!0,l=[],h=l;if(i)s=!1,n=Je;else if(o>=r){var c=e?null:Ao(t);if(c)return Pi(c);s=!1,n=_i,h=new ba}else h=e?[]:l;t:for(;++a<o;){var p=t[a],u=e?e(p):p;if(p=i||0!==p?p:0,s&&u==u){for(var d=h.length;d--;)if(h[d]===u)continue t;e&&h.push(u),l.push(p)}else n(h,u,i)||(h!==l&&h.push(u),l.push(p))}return l}function Gn(t,e){return null==(t=ir(t,e=Yn(e,t)))||delete t[cr(Tr(e))]}function Vn(t,e,i,a){return Cn(t,e,i(Xa(t,e)),a)}function Hn(t,e,i,a){for(var n=t.length,o=a?n:-1;(a?o--:++o<n)&&e(t[o],o,t););return i?Ln(t,a?0:o,a?o+1:n):Ln(t,a?o+1:0,a?n:o)}function Fn(t,e){var i=t;return i instanceof ma&&(i=i.value()),ei(e,function(t,e){return e.func.apply(e.thisArg,ti([t],e.args))},i)}function jn(t,e,i){var n=t.length;if(n<2)return n?Bn(t[0]):[];for(var o=-1,r=a(n);++o<n;)for(var s=t[o],l=-1;++l<n;)l!=o&&(r[o]=Ba(r[o]||s,t[l],e,i));return Bn(za(r,1),e,i)}function zn(t,e,i){for(var a=-1,n=t.length,r=e.length,s={};++a<n;){var l=a<r?e[a]:o;i(s,t[a],l)}return s}function Wn(t){return Es(t)?t:[]}function Kn(t){return"function"==typeof t?t:Dl}function Yn(t,e){return ms(t)?t:Qo(t,e)?[t]:hr(Ws(t))}var qn=An;function Qn(t,e,i){var a=t.length;return i=i===o?a:i,!e&&i>=a?t:Ln(t,e,i)}var Xn=Ui||function(t){return Me.clearTimeout(t)};function Zn(t,e){if(e)return t.slice();var i=t.length,a=Se?Se(i):new t.constructor(i);return t.copy(a),a}function Jn(t){var e=new t.constructor(t.byteLength);return new Oe(e).set(new Oe(t)),e}function $n(t,e){var i=e?Jn(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function to(t,e){if(t!==e){var i=t!==o,a=null===t,n=t==t,r=Us(t),s=e!==o,l=null===e,h=e==e,c=Us(e);if(!l&&!c&&!r&&t>e||r&&s&&h&&!l&&!c||a&&s&&h||!i&&h||!n)return 1;if(!a&&!r&&!c&&t<e||c&&i&&n&&!a&&!r||l&&i&&n||!s&&n||!h)return-1}return 0}function eo(t,e,i,n){for(var o=-1,r=t.length,s=i.length,l=-1,h=e.length,c=Wi(r-s,0),p=a(h+c),u=!n;++l<h;)p[l]=e[l];for(;++o<s;)(u||o<r)&&(p[i[o]]=t[o]);for(;c--;)p[l++]=t[o++];return p}function io(t,e,i,n){for(var o=-1,r=t.length,s=-1,l=i.length,h=-1,c=e.length,p=Wi(r-l,0),u=a(p+c),d=!n;++o<p;)u[o]=t[o];for(var g=o;++h<c;)u[g+h]=e[h];for(;++s<l;)(d||o<r)&&(u[g+i[s]]=t[o++]);return u}function ao(t,e){var i=-1,n=t.length;for(e||(e=a(n));++i<n;)e[i]=t[i];return e}function no(t,e,i,a){var n=!i;i||(i={});for(var r=-1,s=e.length;++r<s;){var l=e[r],h=a?a(i[l],t[l],l,i,t):o;h===o&&(h=t[l]),n?xa(i,l,h):Sa(i,l,h)}return i}function oo(t,e){return function(i,a){var n=ms(i)?Ke:Da,o=e?e():{};return n(i,t,Ro(a,2),o)}}function ro(t){return An(function(e,i){var a=-1,n=i.length,r=n>1?i[n-1]:o,s=n>2?i[2]:o;for(r=t.length>3&&"function"==typeof r?(n--,r):o,s&&qo(i[0],i[1],s)&&(r=n<3?o:r,n=1),e=ee(e);++a<n;){var l=i[a];l&&t(e,l,a,r)}return e})}function so(t,e){return function(i,a){if(null==i)return i;if(!vs(i))return t(i,a);for(var n=i.length,o=e?n:-1,r=ee(i);(e?o--:++o<n)&&!1!==a(r[o],o,r););return i}}function lo(t){return function(e,i,a){for(var n=-1,o=ee(e),r=a(e),s=r.length;s--;){var l=r[t?s:++n];if(!1===i(o[l],l,o))break}return e}}function ho(t){return function(e){var i=Ai(e=Ws(e))?xi(e):o,a=i?i[0]:e.charAt(0),n=i?Qn(i,1).join(""):e.slice(1);return a[t]()+n}}function co(t){return function(e){return ei(Al(fl(e).replace(_e,"")),t,"")}}function po(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var i=ga(t.prototype),a=t.apply(i,e);return Cs(a)?a:i}}function uo(t){return function(e,i,a){var n=ee(e);if(!vs(e)){var r=Ro(i,3);e=nl(e),i=function(t){return r(n[t],t,n)}}var s=t(e,i,a);return s>-1?n[r?e[s]:s]:o}}function go(t){return Lo(function(e){var i=e.length,a=i,n=fa.prototype.thru;for(t&&e.reverse();a--;){var r=e[a];if("function"!=typeof r)throw new ne(l);if(n&&!s&&"wrapper"==Uo(r))var s=new fa([],!0)}for(a=s?a:i;++a<i;){var h=Uo(r=e[a]),c="wrapper"==h?No(r):o;s=c&&Xo(c[0])&&c[1]==(A|E|O|I)&&!c[4].length&&1==c[9]?s[Uo(c[0])].apply(s,c[3]):1==r.length&&Xo(r)?s[h]():s.thru(r)}return function(){var t=arguments,a=t[0];if(s&&1==t.length&&ms(a))return s.plant(a).value();for(var n=0,o=i?e[n].apply(this,t):a;++n<i;)o=e[n].call(this,o);return o}})}function yo(t,e,i,n,r,s,l,h,c,p){var u=e&A,d=e&m,g=e&_,y=e&(E|b),f=e&w,v=g?o:po(t);return function m(){for(var _=arguments.length,E=a(_),b=_;b--;)E[b]=arguments[b];if(y)var O=ko(m),T=function(t,e){for(var i=t.length,a=0;i--;)t[i]===e&&++a;return a}(E,O);if(n&&(E=eo(E,n,r,y)),s&&(E=io(E,s,l,y)),_-=T,y&&_<p){var A=Ci(E,O);return Oo(t,e,yo,m.placeholder,i,E,A,h,c,p-_)}var I=d?i:this,w=g?I[t]:t;return _=E.length,h?E=function(t,e){for(var i=t.length,a=Ki(e.length,i),n=ao(t);a--;){var r=e[a];t[a]=Yo(r,i)?n[r]:o}return t}(E,h):f&&_>1&&E.reverse(),u&&c<_&&(E.length=c),this&&this!==Me&&this instanceof m&&(w=v||po(w)),w.apply(I,E)}}function fo(t,e){return function(i,a){return function(t,e,i,a){return Ya(t,function(t,n,o){e(a,i(t),n,o)}),a}(i,t,e(a),{})}}function mo(t,e){return function(i,a){var n;if(i===o&&a===o)return e;if(i!==o&&(n=i),a!==o){if(n===o)return a;"string"==typeof i||"string"==typeof a?(i=Rn(i),a=Rn(a)):(i=kn(i),a=kn(a)),n=t(i,a)}return n}}function _o(t){return Lo(function(e){return e=$e(e,fi(Ro())),An(function(i){var a=this;return t(e,function(t){return We(t,a,i)})})})}function vo(t,e){var i=(e=e===o?" ":Rn(e)).length;if(i<2)return i?Tn(e,t):e;var a=Tn(e,Bi(t/Li(e)));return Ai(e)?Qn(xi(a),0,t).join(""):a.slice(0,t)}function Eo(t){return function(e,i,n){return n&&"number"!=typeof n&&qo(e,i,n)&&(i=n=o),e=Vs(e),i===o?(i=e,e=0):i=Vs(i),function(t,e,i,n){for(var o=-1,r=Wi(Bi((e-t)/(i||1)),0),s=a(r);r--;)s[n?r:++o]=t,t+=i;return s}(e,i,n=n===o?e<i?1:-1:Vs(n),t)}}function bo(t){return function(e,i){return"string"==typeof e&&"string"==typeof i||(e=js(e),i=js(i)),t(e,i)}}function Oo(t,e,i,a,n,r,s,l,h,c){var p=e&E;e|=p?O:T,(e&=~(p?T:O))&v||(e&=~(m|_));var u=[t,e,n,p?r:o,p?s:o,p?o:r,p?o:s,l,h,c],d=i.apply(o,u);return Xo(t)&&ar(d,u),d.placeholder=a,rr(d,t,e)}function To(t){var e=te[t];return function(t,i){if(t=js(t),i=null==i?0:Ki(Hs(i),292)){var a=(Ws(t)+"e").split("e");return+((a=(Ws(e(a[0]+"e"+(+a[1]+i)))+"e").split("e"))[0]+"e"+(+a[1]-i))}return e(t)}}var Ao=ta&&1/Pi(new ta([,-0]))[1]==M?function(t){return new ta(t)}:Ul;function Io(t){return function(e){var i=jo(e);return i==X?Ii(e):i==it?Di(e):function(t,e){return $e(e,function(e){return[e,t[e]]})}(e,t(e))}}function wo(t,e,i,n,r,s,h,c){var u=e&_;if(!u&&"function"!=typeof t)throw new ne(l);var d=n?n.length:0;if(d||(e&=~(O|T),n=r=o),h=h===o?h:Wi(Hs(h),0),c=c===o?c:Hs(c),d-=r?r.length:0,e&T){var g=n,y=r;n=r=o}var f=u?o:No(t),w=[t,e,i,n,r,g,y,s,h,c];if(f&&function(t,e){var i=t[1],a=e[1],n=i|a,o=n<(m|_|A),r=a==A&&i==E||a==A&&i==I&&t[7].length<=e[8]||a==(A|I)&&e[7].length<=e[8]&&i==E;if(!o&&!r)return t;a&m&&(t[2]=e[2],n|=i&m?0:v);var s=e[3];if(s){var l=t[3];t[3]=l?eo(l,s,e[4]):s,t[4]=l?Ci(t[3],p):e[4]}(s=e[5])&&(l=t[5],t[5]=l?io(l,s,e[6]):s,t[6]=l?Ci(t[5],p):e[6]),(s=e[7])&&(t[7]=s),a&A&&(t[8]=null==t[8]?e[8]:Ki(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=n}(w,f),t=w[0],e=w[1],i=w[2],n=w[3],r=w[4],!(c=w[9]=w[9]===o?u?0:t.length:Wi(w[9]-d,0))&&e&(E|b)&&(e&=~(E|b)),e&&e!=m)C=e==E||e==b?function(t,e,i){var n=po(t);return function r(){for(var s=arguments.length,l=a(s),h=s,c=ko(r);h--;)l[h]=arguments[h];var p=s<3&&l[0]!==c&&l[s-1]!==c?[]:Ci(l,c);return(s-=p.length)<i?Oo(t,e,yo,r.placeholder,o,l,p,o,o,i-s):We(this&&this!==Me&&this instanceof r?n:t,this,l)}}(t,e,c):e!=O&&e!=(m|O)||r.length?yo.apply(o,w):function(t,e,i,n){var o=e&m,r=po(t);return function e(){for(var s=-1,l=arguments.length,h=-1,c=n.length,p=a(c+l),u=this&&this!==Me&&this instanceof e?r:t;++h<c;)p[h]=n[h];for(;l--;)p[h++]=arguments[++s];return We(u,o?i:this,p)}}(t,e,i,n);else var C=function(t,e,i){var a=e&m,n=po(t);return function e(){return(this&&this!==Me&&this instanceof e?n:t).apply(a?i:this,arguments)}}(t,e,i);return rr((f?Sn:ar)(C,w),t,e)}function Co(t,e,i,a){return t===o||ds(t,se[i])&&!ce.call(a,i)?e:t}function So(t,e,i,a,n,r){return Cs(t)&&Cs(e)&&(r.set(e,t),fn(t,e,o,So,r),r.delete(e)),t}function Po(t){return Ls(t)?o:t}function Do(t,e,i,a,n,r){var s=i&y,l=t.length,h=e.length;if(l!=h&&!(s&&h>l))return!1;var c=r.get(t);if(c&&r.get(e))return c==e;var p=-1,u=!0,d=i&f?new ba:o;for(r.set(t,e),r.set(e,t);++p<l;){var g=t[p],m=e[p];if(a)var _=s?a(m,g,p,e,t,r):a(g,m,p,t,e,r);if(_!==o){if(_)continue;u=!1;break}if(d){if(!ai(e,function(t,e){if(!_i(d,e)&&(g===t||n(g,t,i,a,r)))return d.push(e)})){u=!1;break}}else if(g!==m&&!n(g,m,i,a,r)){u=!1;break}}return r.delete(t),r.delete(e),u}function Lo(t){return or(er(t,o,_r),t+"")}function xo(t){return Za(t,nl,Ho)}function Mo(t){return Za(t,ol,Fo)}var No=aa?function(t){return aa.get(t)}:Ul;function Uo(t){for(var e=t.name+"",i=na[e],a=ce.call(na,e)?i.length:0;a--;){var n=i[a],o=n.func;if(null==o||o==t)return n.name}return e}function ko(t){return(ce.call(da,"placeholder")?da:t).placeholder}function Ro(){var t=da.iteratee||Ll;return t=t===Ll?hn:t,arguments.length?t(arguments[0],arguments[1]):t}function Bo(t,e){var i,a,n=t.__data__;return("string"==(a=typeof(i=e))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==i:null===i)?n["string"==typeof e?"string":"hash"]:n.map}function Go(t){for(var e=nl(t),i=e.length;i--;){var a=e[i],n=t[a];e[i]=[a,n,$o(n)]}return e}function Vo(t,e){var i=function(t,e){return null==t?o:t[e]}(t,e);return ln(i)?i:o}var Ho=Vi?function(t){return null==t?[]:(t=ee(t),Xe(Vi(t),function(e){return Ne.call(t,e)}))}:Fl,Fo=Vi?function(t){for(var e=[];t;)ti(e,Ho(t)),t=Le(t);return e}:Fl,jo=Ja;function zo(t,e,i){for(var a=-1,n=(e=Yn(e,t)).length,o=!1;++a<n;){var r=cr(e[a]);if(!(o=null!=t&&i(t,r)))break;t=t[r]}return o||++a!=n?o:!!(n=null==t?0:t.length)&&ws(n)&&Yo(r,n)&&(ms(t)||fs(t))}function Wo(t){return"function"!=typeof t.constructor||Jo(t)?{}:ga(Le(t))}function Ko(t){return ms(t)||fs(t)||!!(Re&&t&&t[Re])}function Yo(t,e){var i=typeof t;return!!(e=null==e?N:e)&&("number"==i||"symbol"!=i&&qt.test(t))&&t>-1&&t%1==0&&t<e}function qo(t,e,i){if(!Cs(i))return!1;var a=typeof e;return!!("number"==a?vs(i)&&Yo(e,i.length):"string"==a&&e in i)&&ds(i[e],t)}function Qo(t,e){if(ms(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!Us(t))||Dt.test(t)||!Pt.test(t)||null!=e&&t in ee(e)}function Xo(t){var e=Uo(t),i=da[e];if("function"!=typeof i||!(e in ma.prototype))return!1;if(t===i)return!0;var a=No(i);return!!a&&t===a[0]}(Zi&&jo(new Zi(new ArrayBuffer(1)))!=ht||Ji&&jo(new Ji)!=X||$i&&"[object Promise]"!=jo($i.resolve())||ta&&jo(new ta)!=it||ea&&jo(new ea)!=rt)&&(jo=function(t){var e=Ja(t),i=e==$?t.constructor:o,a=i?pr(i):"";if(a)switch(a){case oa:return ht;case ra:return X;case sa:return"[object Promise]";case la:return it;case ha:return rt}return e});var Zo=le?As:jl;function Jo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||se)}function $o(t){return t==t&&!Cs(t)}function tr(t,e){return function(i){return null!=i&&i[t]===e&&(e!==o||t in ee(i))}}function er(t,e,i){return e=Wi(e===o?t.length-1:e,0),function(){for(var n=arguments,o=-1,r=Wi(n.length-e,0),s=a(r);++o<r;)s[o]=n[e+o];o=-1;for(var l=a(e+1);++o<e;)l[o]=n[o];return l[e]=i(s),We(t,this,l)}}function ir(t,e){return e.length<2?t:Xa(t,Ln(e,0,-1))}var ar=sr(Sn),nr=Ri||function(t,e){return Me.setTimeout(t,e)},or=sr(Pn);function rr(t,e,i){var a=e+"";return or(t,function(t,e){var i=e.length;if(!i)return t;var a=i-1;return e[a]=(i>1?"& ":"")+e[a],e=e.join(i>2?", ":" "),t.replace(Rt,"{\n/* [wrapped with "+e+"] */\n")}(a,function(t,e){return Ye(V,function(i){var a="_."+i[0];e&i[1]&&!Ze(t,a)&&t.push(a)}),t.sort()}(function(t){var e=t.match(Bt);return e?e[1].split(Gt):[]}(a),i)))}function sr(t){var e=0,i=0;return function(){var a=Yi(),n=D-(a-i);if(i=a,n>0){if(++e>=P)return arguments[0]}else e=0;return t.apply(o,arguments)}}function lr(t,e){var i=-1,a=t.length,n=a-1;for(e=e===o?a:e;++i<e;){var r=On(i,n),s=t[r];t[r]=t[i],t[i]=s}return t.length=e,t}var hr=function(t){var e=ss(t,function(t){return i.size===c&&i.clear(),t}),i=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Lt,function(t,i,a,n){e.push(a?n.replace(Ht,"$1"):i||t)}),e});function cr(t){if("string"==typeof t||Us(t))return t;var e=t+"";return"0"==e&&1/t==-M?"-0":e}function pr(t){if(null!=t){try{return he.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function ur(t){if(t instanceof ma)return t.clone();var e=new fa(t.__wrapped__,t.__chain__);return e.__actions__=ao(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var dr=An(function(t,e){return Es(t)?Ba(t,za(e,1,Es,!0)):[]}),gr=An(function(t,e){var i=Tr(e);return Es(i)&&(i=o),Es(t)?Ba(t,za(e,1,Es,!0),Ro(i,2)):[]}),yr=An(function(t,e){var i=Tr(e);return Es(i)&&(i=o),Es(t)?Ba(t,za(e,1,Es,!0),o,i):[]});function fr(t,e,i){var a=null==t?0:t.length;if(!a)return-1;var n=null==i?0:Hs(i);return n<0&&(n=Wi(a+n,0)),ri(t,Ro(e,3),n)}function mr(t,e,i){var a=null==t?0:t.length;if(!a)return-1;var n=a-1;return i!==o&&(n=Hs(i),n=i<0?Wi(a+n,0):Ki(n,a-1)),ri(t,Ro(e,3),n,!0)}function _r(t){return null!=t&&t.length?za(t,1):[]}function vr(t){return t&&t.length?t[0]:o}var Er=An(function(t){var e=$e(t,Wn);return e.length&&e[0]===t[0]?an(e):[]}),br=An(function(t){var e=Tr(t),i=$e(t,Wn);return e===Tr(i)?e=o:i.pop(),i.length&&i[0]===t[0]?an(i,Ro(e,2)):[]}),Or=An(function(t){var e=Tr(t),i=$e(t,Wn);return(e="function"==typeof e?e:o)&&i.pop(),i.length&&i[0]===t[0]?an(i,o,e):[]});function Tr(t){var e=null==t?0:t.length;return e?t[e-1]:o}var Ar=An(Ir);function Ir(t,e){return t&&t.length&&e&&e.length?En(t,e):t}var wr=Lo(function(t,e){var i=null==t?0:t.length,a=Ma(t,e);return bn(t,$e(e,function(t){return Yo(t,i)?+t:t}).sort(to)),a});function Cr(t){return null==t?t:Xi.call(t)}var Sr=An(function(t){return Bn(za(t,1,Es,!0))}),Pr=An(function(t){var e=Tr(t);return Es(e)&&(e=o),Bn(za(t,1,Es,!0),Ro(e,2))}),Dr=An(function(t){var e=Tr(t);return e="function"==typeof e?e:o,Bn(za(t,1,Es,!0),o,e)});function Lr(t){if(!t||!t.length)return[];var e=0;return t=Xe(t,function(t){if(Es(t))return e=Wi(t.length,e),!0}),yi(e,function(e){return $e(t,pi(e))})}function xr(t,e){if(!t||!t.length)return[];var i=Lr(t);return null==e?i:$e(i,function(t){return We(e,o,t)})}var Mr=An(function(t,e){return Es(t)?Ba(t,e):[]}),Nr=An(function(t){return jn(Xe(t,Es))}),Ur=An(function(t){var e=Tr(t);return Es(e)&&(e=o),jn(Xe(t,Es),Ro(e,2))}),kr=An(function(t){var e=Tr(t);return e="function"==typeof e?e:o,jn(Xe(t,Es),o,e)}),Rr=An(Lr);var Br=An(function(t){var e=t.length,i=e>1?t[e-1]:o;return xr(t,i="function"==typeof i?(t.pop(),i):o)});function Gr(t){var e=da(t);return e.__chain__=!0,e}function Vr(t,e){return e(t)}var Hr=Lo(function(t){var e=t.length,i=e?t[0]:0,a=this.__wrapped__,n=function(e){return Ma(e,t)};return!(e>1||this.__actions__.length)&&a instanceof ma&&Yo(i)?((a=a.slice(i,+i+(e?1:0))).__actions__.push({func:Vr,args:[n],thisArg:o}),new fa(a,this.__chain__).thru(function(t){return e&&!t.length&&t.push(o),t})):this.thru(n)});var Fr=oo(function(t,e,i){ce.call(t,i)?++t[i]:xa(t,i,1)});var jr=uo(fr),zr=uo(mr);function Wr(t,e){return(ms(t)?Ye:Ga)(t,Ro(e,3))}function Kr(t,e){return(ms(t)?qe:Va)(t,Ro(e,3))}var Yr=oo(function(t,e,i){ce.call(t,i)?t[i].push(e):xa(t,i,[e])});var qr=An(function(t,e,i){var n=-1,o="function"==typeof e,r=vs(t)?a(t.length):[];return Ga(t,function(t){r[++n]=o?We(e,t,i):nn(t,e,i)}),r}),Qr=oo(function(t,e,i){xa(t,i,e)});function Xr(t,e){return(ms(t)?$e:dn)(t,Ro(e,3))}var Zr=oo(function(t,e,i){t[i?0:1].push(e)},function(){return[[],[]]});var Jr=An(function(t,e){if(null==t)return[];var i=e.length;return i>1&&qo(t,e[0],e[1])?e=[]:i>2&&qo(e[0],e[1],e[2])&&(e=[e[0]]),_n(t,za(e,1),[])}),$r=ki||function(){return Me.Date.now()};function ts(t,e,i){return e=i?o:e,e=t&&null==e?t.length:e,wo(t,A,o,o,o,o,e)}function es(t,e){var i;if("function"!=typeof e)throw new ne(l);return t=Hs(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=o),i}}var is=An(function(t,e,i){var a=m;if(i.length){var n=Ci(i,ko(is));a|=O}return wo(t,a,e,i,n)}),as=An(function(t,e,i){var a=m|_;if(i.length){var n=Ci(i,ko(as));a|=O}return wo(e,a,t,i,n)});function ns(t,e,i){var a,n,r,s,h,c,p=0,u=!1,d=!1,g=!0;if("function"!=typeof t)throw new ne(l);function y(e){var i=a,r=n;return a=n=o,p=e,s=t.apply(r,i)}function f(t){var i=t-c;return c===o||i>=e||i<0||d&&t-p>=r}function m(){var t=$r();if(f(t))return _(t);h=nr(m,function(t){var i=e-(t-c);return d?Ki(i,r-(t-p)):i}(t))}function _(t){return h=o,g&&a?y(t):(a=n=o,s)}function v(){var t=$r(),i=f(t);if(a=arguments,n=this,c=t,i){if(h===o)return function(t){return p=t,h=nr(m,e),u?y(t):s}(c);if(d)return h=nr(m,e),y(c)}return h===o&&(h=nr(m,e)),s}return e=js(e)||0,Cs(i)&&(u=!!i.leading,r=(d="maxWait"in i)?Wi(js(i.maxWait)||0,e):r,g="trailing"in i?!!i.trailing:g),v.cancel=function(){h!==o&&Xn(h),p=0,a=c=n=h=o},v.flush=function(){return h===o?s:_($r())},v}var os=An(function(t,e){return Ra(t,1,e)}),rs=An(function(t,e,i){return Ra(t,js(e)||0,i)});function ss(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ne(l);var i=function(){var a=arguments,n=e?e.apply(this,a):a[0],o=i.cache;if(o.has(n))return o.get(n);var r=t.apply(this,a);return i.cache=o.set(n,r)||o,r};return i.cache=new(ss.Cache||Ea),i}function ls(t){if("function"!=typeof t)throw new ne(l);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}ss.Cache=Ea;var hs=qn(function(t,e){var i=(e=1==e.length&&ms(e[0])?$e(e[0],fi(Ro())):$e(za(e,1),fi(Ro()))).length;return An(function(a){for(var n=-1,o=Ki(a.length,i);++n<o;)a[n]=e[n].call(this,a[n]);return We(t,this,a)})}),cs=An(function(t,e){var i=Ci(e,ko(cs));return wo(t,O,o,e,i)}),ps=An(function(t,e){var i=Ci(e,ko(ps));return wo(t,T,o,e,i)}),us=Lo(function(t,e){return wo(t,I,o,o,o,e)});function ds(t,e){return t===e||t!=t&&e!=e}var gs=bo($a),ys=bo(function(t,e){return t>=e}),fs=on(function(){return arguments}())?on:function(t){return Ss(t)&&ce.call(t,"callee")&&!Ne.call(t,"callee")},ms=a.isArray,_s=Ge?fi(Ge):function(t){return Ss(t)&&Ja(t)==lt};function vs(t){return null!=t&&ws(t.length)&&!As(t)}function Es(t){return Ss(t)&&vs(t)}var bs=Hi||jl,Os=Ve?fi(Ve):function(t){return Ss(t)&&Ja(t)==W};function Ts(t){if(!Ss(t))return!1;var e=Ja(t);return e==Y||e==K||"string"==typeof t.message&&"string"==typeof t.name&&!Ls(t)}function As(t){if(!Cs(t))return!1;var e=Ja(t);return e==q||e==Q||e==j||e==tt}function Is(t){return"number"==typeof t&&t==Hs(t)}function ws(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=N}function Cs(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ss(t){return null!=t&&"object"==typeof t}var Ps=He?fi(He):function(t){return Ss(t)&&jo(t)==X};function Ds(t){return"number"==typeof t||Ss(t)&&Ja(t)==Z}function Ls(t){if(!Ss(t)||Ja(t)!=$)return!1;var e=Le(t);if(null===e)return!0;var i=ce.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&he.call(i)==ge}var xs=Fe?fi(Fe):function(t){return Ss(t)&&Ja(t)==et};var Ms=je?fi(je):function(t){return Ss(t)&&jo(t)==it};function Ns(t){return"string"==typeof t||!ms(t)&&Ss(t)&&Ja(t)==at}function Us(t){return"symbol"==typeof t||Ss(t)&&Ja(t)==nt}var ks=ze?fi(ze):function(t){return Ss(t)&&ws(t.length)&&!!we[Ja(t)]};var Rs=bo(un),Bs=bo(function(t,e){return t<=e});function Gs(t){if(!t)return[];if(vs(t))return Ns(t)?xi(t):ao(t);if(Be&&t[Be])return function(t){for(var e,i=[];!(e=t.next()).done;)i.push(e.value);return i}(t[Be]());var e=jo(t);return(e==X?Ii:e==it?Pi:dl)(t)}function Vs(t){return t?(t=js(t))===M||t===-M?(t<0?-1:1)*U:t==t?t:0:0===t?t:0}function Hs(t){var e=Vs(t),i=e%1;return e==e?i?e-i:e:0}function Fs(t){return t?Na(Hs(t),0,R):0}function js(t){if("number"==typeof t)return t;if(Us(t))return k;if(Cs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Cs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Nt,"");var i=Wt.test(t);return i||Yt.test(t)?De(t.slice(2),i?2:8):zt.test(t)?k:+t}function zs(t){return no(t,ol(t))}function Ws(t){return null==t?"":Rn(t)}var Ks=ro(function(t,e){if(Jo(e)||vs(e))no(e,nl(e),t);else for(var i in e)ce.call(e,i)&&Sa(t,i,e[i])}),Ys=ro(function(t,e){no(e,ol(e),t)}),qs=ro(function(t,e,i,a){no(e,ol(e),t,a)}),Qs=ro(function(t,e,i,a){no(e,nl(e),t,a)}),Xs=Lo(Ma);var Zs=An(function(t,e){t=ee(t);var i=-1,a=e.length,n=a>2?e[2]:o;for(n&&qo(e[0],e[1],n)&&(a=1);++i<a;)for(var r=e[i],s=ol(r),l=-1,h=s.length;++l<h;){var c=s[l],p=t[c];(p===o||ds(p,se[c])&&!ce.call(t,c))&&(t[c]=r[c])}return t}),Js=An(function(t){return t.push(o,So),We(sl,o,t)});function $s(t,e,i){var a=null==t?o:Xa(t,e);return a===o?i:a}function tl(t,e){return null!=t&&zo(t,e,en)}var el=fo(function(t,e,i){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),t[e]=i},Cl(Dl)),il=fo(function(t,e,i){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),ce.call(t,e)?t[e].push(i):t[e]=[i]},Ro),al=An(nn);function nl(t){return vs(t)?Ta(t):cn(t)}function ol(t){return vs(t)?Ta(t,!0):pn(t)}var rl=ro(function(t,e,i){fn(t,e,i)}),sl=ro(function(t,e,i,a){fn(t,e,i,a)}),ll=Lo(function(t,e){var i={};if(null==t)return i;var a=!1;e=$e(e,function(e){return e=Yn(e,t),a||(a=e.length>1),e}),no(t,Mo(t),i),a&&(i=Ua(i,u|d|g,Po));for(var n=e.length;n--;)Gn(i,e[n]);return i});var hl=Lo(function(t,e){return null==t?{}:function(t,e){return vn(t,e,function(e,i){return tl(t,i)})}(t,e)});function cl(t,e){if(null==t)return{};var i=$e(Mo(t),function(t){return[t]});return e=Ro(e),vn(t,i,function(t,i){return e(t,i[0])})}var pl=Io(nl),ul=Io(ol);function dl(t){return null==t?[]:mi(t,nl(t))}var gl=co(function(t,e,i){return e=e.toLowerCase(),t+(i?yl(e):e)});function yl(t){return Tl(Ws(t).toLowerCase())}function fl(t){return(t=Ws(t))&&t.replace(Qt,bi).replace(ve,"")}var ml=co(function(t,e,i){return t+(i?"-":"")+e.toLowerCase()}),_l=co(function(t,e,i){return t+(i?" ":"")+e.toLowerCase()}),vl=ho("toLowerCase");var El=co(function(t,e,i){return t+(i?"_":"")+e.toLowerCase()});var bl=co(function(t,e,i){return t+(i?" ":"")+Tl(e)});var Ol=co(function(t,e,i){return t+(i?" ":"")+e.toUpperCase()}),Tl=ho("toUpperCase");function Al(t,e,i){return t=Ws(t),(e=i?o:e)===o?function(t){return Te.test(t)}(t)?function(t){return t.match(be)||[]}(t):function(t){return t.match(Vt)||[]}(t):t.match(e)||[]}var Il=An(function(t,e){try{return We(t,o,e)}catch(t){return Ts(t)?t:new Jt(t)}}),wl=Lo(function(t,e){return Ye(e,function(e){e=cr(e),xa(t,e,is(t[e],t))}),t});function Cl(t){return function(){return t}}var Sl=go(),Pl=go(!0);function Dl(t){return t}function Ll(t){return hn("function"==typeof t?t:Ua(t,u))}var xl=An(function(t,e){return function(i){return nn(i,t,e)}}),Ml=An(function(t,e){return function(i){return nn(t,i,e)}});function Nl(t,e,i){var a=nl(e),n=Qa(e,a);null!=i||Cs(e)&&(n.length||!a.length)||(i=e,e=t,t=this,n=Qa(e,nl(e)));var o=!(Cs(i)&&"chain"in i&&!i.chain),r=As(t);return Ye(n,function(i){var a=e[i];t[i]=a,r&&(t.prototype[i]=function(){var e=this.__chain__;if(o||e){var i=t(this.__wrapped__);return(i.__actions__=ao(this.__actions__)).push({func:a,args:arguments,thisArg:t}),i.__chain__=e,i}return a.apply(t,ti([this.value()],arguments))})}),t}function Ul(){}var kl=_o($e),Rl=_o(Qe),Bl=_o(ai);function Gl(t){return Qo(t)?pi(cr(t)):function(t){return function(e){return Xa(e,t)}}(t)}var Vl=Eo(),Hl=Eo(!0);function Fl(){return[]}function jl(){return!1}var zl=mo(function(t,e){return t+e},0),Wl=To("ceil"),Kl=mo(function(t,e){return t/e},1),Yl=To("floor");var ql,Ql=mo(function(t,e){return t*e},1),Xl=To("round"),Zl=mo(function(t,e){return t-e},0);return da.after=function(t,e){if("function"!=typeof e)throw new ne(l);return t=Hs(t),function(){if(--t<1)return e.apply(this,arguments)}},da.ary=ts,da.assign=Ks,da.assignIn=Ys,da.assignInWith=qs,da.assignWith=Qs,da.at=Xs,da.before=es,da.bind=is,da.bindAll=wl,da.bindKey=as,da.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return ms(t)?t:[t]},da.chain=Gr,da.chunk=function(t,e,i){e=(i?qo(t,e,i):e===o)?1:Wi(Hs(e),0);var n=null==t?0:t.length;if(!n||e<1)return[];for(var r=0,s=0,l=a(Bi(n/e));r<n;)l[s++]=Ln(t,r,r+=e);return l},da.compact=function(t){for(var e=-1,i=null==t?0:t.length,a=0,n=[];++e<i;){var o=t[e];o&&(n[a++]=o)}return n},da.concat=function(){var t=arguments.length;if(!t)return[];for(var e=a(t-1),i=arguments[0],n=t;n--;)e[n-1]=arguments[n];return ti(ms(i)?ao(i):[i],za(e,1))},da.cond=function(t){var e=null==t?0:t.length,i=Ro();return t=e?$e(t,function(t){if("function"!=typeof t[1])throw new ne(l);return[i(t[0]),t[1]]}):[],An(function(i){for(var a=-1;++a<e;){var n=t[a];if(We(n[0],this,i))return We(n[1],this,i)}})},da.conforms=function(t){return function(t){var e=nl(t);return function(i){return ka(i,t,e)}}(Ua(t,u))},da.constant=Cl,da.countBy=Fr,da.create=function(t,e){var i=ga(t);return null==e?i:La(i,e)},da.curry=function t(e,i,a){var n=wo(e,E,o,o,o,o,o,i=a?o:i);return n.placeholder=t.placeholder,n},da.curryRight=function t(e,i,a){var n=wo(e,b,o,o,o,o,o,i=a?o:i);return n.placeholder=t.placeholder,n},da.debounce=ns,da.defaults=Zs,da.defaultsDeep=Js,da.defer=os,da.delay=rs,da.difference=dr,da.differenceBy=gr,da.differenceWith=yr,da.drop=function(t,e,i){var a=null==t?0:t.length;return a?Ln(t,(e=i||e===o?1:Hs(e))<0?0:e,a):[]},da.dropRight=function(t,e,i){var a=null==t?0:t.length;return a?Ln(t,0,(e=a-(e=i||e===o?1:Hs(e)))<0?0:e):[]},da.dropRightWhile=function(t,e){return t&&t.length?Hn(t,Ro(e,3),!0,!0):[]},da.dropWhile=function(t,e){return t&&t.length?Hn(t,Ro(e,3),!0):[]},da.fill=function(t,e,i,a){var n=null==t?0:t.length;return n?(i&&"number"!=typeof i&&qo(t,e,i)&&(i=0,a=n),function(t,e,i,a){var n=t.length;for((i=Hs(i))<0&&(i=-i>n?0:n+i),(a=a===o||a>n?n:Hs(a))<0&&(a+=n),a=i>a?0:Fs(a);i<a;)t[i++]=e;return t}(t,e,i,a)):[]},da.filter=function(t,e){return(ms(t)?Xe:ja)(t,Ro(e,3))},da.flatMap=function(t,e){return za(Xr(t,e),1)},da.flatMapDeep=function(t,e){return za(Xr(t,e),M)},da.flatMapDepth=function(t,e,i){return i=i===o?1:Hs(i),za(Xr(t,e),i)},da.flatten=_r,da.flattenDeep=function(t){return null!=t&&t.length?za(t,M):[]},da.flattenDepth=function(t,e){return null!=t&&t.length?za(t,e=e===o?1:Hs(e)):[]},da.flip=function(t){return wo(t,w)},da.flow=Sl,da.flowRight=Pl,da.fromPairs=function(t){for(var e=-1,i=null==t?0:t.length,a={};++e<i;){var n=t[e];a[n[0]]=n[1]}return a},da.functions=function(t){return null==t?[]:Qa(t,nl(t))},da.functionsIn=function(t){return null==t?[]:Qa(t,ol(t))},da.groupBy=Yr,da.initial=function(t){return null!=t&&t.length?Ln(t,0,-1):[]},da.intersection=Er,da.intersectionBy=br,da.intersectionWith=Or,da.invert=el,da.invertBy=il,da.invokeMap=qr,da.iteratee=Ll,da.keyBy=Qr,da.keys=nl,da.keysIn=ol,da.map=Xr,da.mapKeys=function(t,e){var i={};return e=Ro(e,3),Ya(t,function(t,a,n){xa(i,e(t,a,n),t)}),i},da.mapValues=function(t,e){var i={};return e=Ro(e,3),Ya(t,function(t,a,n){xa(i,a,e(t,a,n))}),i},da.matches=function(t){return gn(Ua(t,u))},da.matchesProperty=function(t,e){return yn(t,Ua(e,u))},da.memoize=ss,da.merge=rl,da.mergeWith=sl,da.method=xl,da.methodOf=Ml,da.mixin=Nl,da.negate=ls,da.nthArg=function(t){return t=Hs(t),An(function(e){return mn(e,t)})},da.omit=ll,da.omitBy=function(t,e){return cl(t,ls(Ro(e)))},da.once=function(t){return es(2,t)},da.orderBy=function(t,e,i,a){return null==t?[]:(ms(e)||(e=null==e?[]:[e]),ms(i=a?o:i)||(i=null==i?[]:[i]),_n(t,e,i))},da.over=kl,da.overArgs=hs,da.overEvery=Rl,da.overSome=Bl,da.partial=cs,da.partialRight=ps,da.partition=Zr,da.pick=hl,da.pickBy=cl,da.property=Gl,da.propertyOf=function(t){return function(e){return null==t?o:Xa(t,e)}},da.pull=Ar,da.pullAll=Ir,da.pullAllBy=function(t,e,i){return t&&t.length&&e&&e.length?En(t,e,Ro(i,2)):t},da.pullAllWith=function(t,e,i){return t&&t.length&&e&&e.length?En(t,e,o,i):t},da.pullAt=wr,da.range=Vl,da.rangeRight=Hl,da.rearg=us,da.reject=function(t,e){return(ms(t)?Xe:ja)(t,ls(Ro(e,3)))},da.remove=function(t,e){var i=[];if(!t||!t.length)return i;var a=-1,n=[],o=t.length;for(e=Ro(e,3);++a<o;){var r=t[a];e(r,a,t)&&(i.push(r),n.push(a))}return bn(t,n),i},da.rest=function(t,e){if("function"!=typeof t)throw new ne(l);return An(t,e=e===o?e:Hs(e))},da.reverse=Cr,da.sampleSize=function(t,e,i){return e=(i?qo(t,e,i):e===o)?1:Hs(e),(ms(t)?Ia:wn)(t,e)},da.set=function(t,e,i){return null==t?t:Cn(t,e,i)},da.setWith=function(t,e,i,a){return a="function"==typeof a?a:o,null==t?t:Cn(t,e,i,a)},da.shuffle=function(t){return(ms(t)?wa:Dn)(t)},da.slice=function(t,e,i){var a=null==t?0:t.length;return a?(i&&"number"!=typeof i&&qo(t,e,i)?(e=0,i=a):(e=null==e?0:Hs(e),i=i===o?a:Hs(i)),Ln(t,e,i)):[]},da.sortBy=Jr,da.sortedUniq=function(t){return t&&t.length?Un(t):[]},da.sortedUniqBy=function(t,e){return t&&t.length?Un(t,Ro(e,2)):[]},da.split=function(t,e,i){return i&&"number"!=typeof i&&qo(t,e,i)&&(e=i=o),(i=i===o?R:i>>>0)?(t=Ws(t))&&("string"==typeof e||null!=e&&!xs(e))&&!(e=Rn(e))&&Ai(t)?Qn(xi(t),0,i):t.split(e,i):[]},da.spread=function(t,e){if("function"!=typeof t)throw new ne(l);return e=null==e?0:Wi(Hs(e),0),An(function(i){var a=i[e],n=Qn(i,0,e);return a&&ti(n,a),We(t,this,n)})},da.tail=function(t){var e=null==t?0:t.length;return e?Ln(t,1,e):[]},da.take=function(t,e,i){return t&&t.length?Ln(t,0,(e=i||e===o?1:Hs(e))<0?0:e):[]},da.takeRight=function(t,e,i){var a=null==t?0:t.length;return a?Ln(t,(e=a-(e=i||e===o?1:Hs(e)))<0?0:e,a):[]},da.takeRightWhile=function(t,e){return t&&t.length?Hn(t,Ro(e,3),!1,!0):[]},da.takeWhile=function(t,e){return t&&t.length?Hn(t,Ro(e,3)):[]},da.tap=function(t,e){return e(t),t},da.throttle=function(t,e,i){var a=!0,n=!0;if("function"!=typeof t)throw new ne(l);return Cs(i)&&(a="leading"in i?!!i.leading:a,n="trailing"in i?!!i.trailing:n),ns(t,e,{leading:a,maxWait:e,trailing:n})},da.thru=Vr,da.toArray=Gs,da.toPairs=pl,da.toPairsIn=ul,da.toPath=function(t){return ms(t)?$e(t,cr):Us(t)?[t]:ao(hr(Ws(t)))},da.toPlainObject=zs,da.transform=function(t,e,i){var a=ms(t),n=a||bs(t)||ks(t);if(e=Ro(e,4),null==i){var o=t&&t.constructor;i=n?a?new o:[]:Cs(t)&&As(o)?ga(Le(t)):{}}return(n?Ye:Ya)(t,function(t,a,n){return e(i,t,a,n)}),i},da.unary=function(t){return ts(t,1)},da.union=Sr,da.unionBy=Pr,da.unionWith=Dr,da.uniq=function(t){return t&&t.length?Bn(t):[]},da.uniqBy=function(t,e){return t&&t.length?Bn(t,Ro(e,2)):[]},da.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?Bn(t,o,e):[]},da.unset=function(t,e){return null==t||Gn(t,e)},da.unzip=Lr,da.unzipWith=xr,da.update=function(t,e,i){return null==t?t:Vn(t,e,Kn(i))},da.updateWith=function(t,e,i,a){return a="function"==typeof a?a:o,null==t?t:Vn(t,e,Kn(i),a)},da.values=dl,da.valuesIn=function(t){return null==t?[]:mi(t,ol(t))},da.without=Mr,da.words=Al,da.wrap=function(t,e){return cs(Kn(e),t)},da.xor=Nr,da.xorBy=Ur,da.xorWith=kr,da.zip=Rr,da.zipObject=function(t,e){return zn(t||[],e||[],Sa)},da.zipObjectDeep=function(t,e){return zn(t||[],e||[],Cn)},da.zipWith=Br,da.entries=pl,da.entriesIn=ul,da.extend=Ys,da.extendWith=qs,Nl(da,da),da.add=zl,da.attempt=Il,da.camelCase=gl,da.capitalize=yl,da.ceil=Wl,da.clamp=function(t,e,i){return i===o&&(i=e,e=o),i!==o&&(i=(i=js(i))==i?i:0),e!==o&&(e=(e=js(e))==e?e:0),Na(js(t),e,i)},da.clone=function(t){return Ua(t,g)},da.cloneDeep=function(t){return Ua(t,u|g)},da.cloneDeepWith=function(t,e){return Ua(t,u|g,e="function"==typeof e?e:o)},da.cloneWith=function(t,e){return Ua(t,g,e="function"==typeof e?e:o)},da.conformsTo=function(t,e){return null==e||ka(t,e,nl(e))},da.deburr=fl,da.defaultTo=function(t,e){return null==t||t!=t?e:t},da.divide=Kl,da.endsWith=function(t,e,i){t=Ws(t),e=Rn(e);var a=t.length,n=i=i===o?a:Na(Hs(i),0,a);return(i-=e.length)>=0&&t.slice(i,n)==e},da.eq=ds,da.escape=function(t){return(t=Ws(t))&&It.test(t)?t.replace(Tt,Oi):t},da.escapeRegExp=function(t){return(t=Ws(t))&&Mt.test(t)?t.replace(xt,"\\$&"):t},da.every=function(t,e,i){var a=ms(t)?Qe:Ha;return i&&qo(t,e,i)&&(e=o),a(t,Ro(e,3))},da.find=jr,da.findIndex=fr,da.findKey=function(t,e){return oi(t,Ro(e,3),Ya)},da.findLast=zr,da.findLastIndex=mr,da.findLastKey=function(t,e){return oi(t,Ro(e,3),qa)},da.floor=Yl,da.forEach=Wr,da.forEachRight=Kr,da.forIn=function(t,e){return null==t?t:Wa(t,Ro(e,3),ol)},da.forInRight=function(t,e){return null==t?t:Ka(t,Ro(e,3),ol)},da.forOwn=function(t,e){return t&&Ya(t,Ro(e,3))},da.forOwnRight=function(t,e){return t&&qa(t,Ro(e,3))},da.get=$s,da.gt=gs,da.gte=ys,da.has=function(t,e){return null!=t&&zo(t,e,tn)},da.hasIn=tl,da.head=vr,da.identity=Dl,da.includes=function(t,e,i,a){t=vs(t)?t:dl(t),i=i&&!a?Hs(i):0;var n=t.length;return i<0&&(i=Wi(n+i,0)),Ns(t)?i<=n&&t.indexOf(e,i)>-1:!!n&&si(t,e,i)>-1},da.indexOf=function(t,e,i){var a=null==t?0:t.length;if(!a)return-1;var n=null==i?0:Hs(i);return n<0&&(n=Wi(a+n,0)),si(t,e,n)},da.inRange=function(t,e,i){return e=Vs(e),i===o?(i=e,e=0):i=Vs(i),function(t,e,i){return t>=Ki(e,i)&&t<Wi(e,i)}(t=js(t),e,i)},da.invoke=al,da.isArguments=fs,da.isArray=ms,da.isArrayBuffer=_s,da.isArrayLike=vs,da.isArrayLikeObject=Es,da.isBoolean=function(t){return!0===t||!1===t||Ss(t)&&Ja(t)==z},da.isBuffer=bs,da.isDate=Os,da.isElement=function(t){return Ss(t)&&1===t.nodeType&&!Ls(t)},da.isEmpty=function(t){if(null==t)return!0;if(vs(t)&&(ms(t)||"string"==typeof t||"function"==typeof t.splice||bs(t)||ks(t)||fs(t)))return!t.length;var e=jo(t);if(e==X||e==it)return!t.size;if(Jo(t))return!cn(t).length;for(var i in t)if(ce.call(t,i))return!1;return!0},da.isEqual=function(t,e){return rn(t,e)},da.isEqualWith=function(t,e,i){var a=(i="function"==typeof i?i:o)?i(t,e):o;return a===o?rn(t,e,o,i):!!a},da.isError=Ts,da.isFinite=function(t){return"number"==typeof t&&Fi(t)},da.isFunction=As,da.isInteger=Is,da.isLength=ws,da.isMap=Ps,da.isMatch=function(t,e){return t===e||sn(t,e,Go(e))},da.isMatchWith=function(t,e,i){return i="function"==typeof i?i:o,sn(t,e,Go(e),i)},da.isNaN=function(t){return Ds(t)&&t!=+t},da.isNative=function(t){if(Zo(t))throw new Jt(s);return ln(t)},da.isNil=function(t){return null==t},da.isNull=function(t){return null===t},da.isNumber=Ds,da.isObject=Cs,da.isObjectLike=Ss,da.isPlainObject=Ls,da.isRegExp=xs,da.isSafeInteger=function(t){return Is(t)&&t>=-N&&t<=N},da.isSet=Ms,da.isString=Ns,da.isSymbol=Us,da.isTypedArray=ks,da.isUndefined=function(t){return t===o},da.isWeakMap=function(t){return Ss(t)&&jo(t)==rt},da.isWeakSet=function(t){return Ss(t)&&Ja(t)==st},da.join=function(t,e){return null==t?"":ji.call(t,e)},da.kebabCase=ml,da.last=Tr,da.lastIndexOf=function(t,e,i){var a=null==t?0:t.length;if(!a)return-1;var n=a;return i!==o&&(n=(n=Hs(i))<0?Wi(a+n,0):Ki(n,a-1)),e==e?function(t,e,i){for(var a=i+1;a--;)if(t[a]===e)return a;return a}(t,e,n):ri(t,hi,n,!0)},da.lowerCase=_l,da.lowerFirst=vl,da.lt=Rs,da.lte=Bs,da.max=function(t){return t&&t.length?Fa(t,Dl,$a):o},da.maxBy=function(t,e){return t&&t.length?Fa(t,Ro(e,2),$a):o},da.mean=function(t){return ci(t,Dl)},da.meanBy=function(t,e){return ci(t,Ro(e,2))},da.min=function(t){return t&&t.length?Fa(t,Dl,un):o},da.minBy=function(t,e){return t&&t.length?Fa(t,Ro(e,2),un):o},da.stubArray=Fl,da.stubFalse=jl,da.stubObject=function(){return{}},da.stubString=function(){return""},da.stubTrue=function(){return!0},da.multiply=Ql,da.nth=function(t,e){return t&&t.length?mn(t,Hs(e)):o},da.noConflict=function(){return Me._===this&&(Me._=ye),this},da.noop=Ul,da.now=$r,da.pad=function(t,e,i){t=Ws(t);var a=(e=Hs(e))?Li(t):0;if(!e||a>=e)return t;var n=(e-a)/2;return vo(Gi(n),i)+t+vo(Bi(n),i)},da.padEnd=function(t,e,i){t=Ws(t);var a=(e=Hs(e))?Li(t):0;return e&&a<e?t+vo(e-a,i):t},da.padStart=function(t,e,i){t=Ws(t);var a=(e=Hs(e))?Li(t):0;return e&&a<e?vo(e-a,i)+t:t},da.parseInt=function(t,e,i){return i||null==e?e=0:e&&(e=+e),qi(Ws(t).replace(Ut,""),e||0)},da.random=function(t,e,i){if(i&&"boolean"!=typeof i&&qo(t,e,i)&&(e=i=o),i===o&&("boolean"==typeof e?(i=e,e=o):"boolean"==typeof t&&(i=t,t=o)),t===o&&e===o?(t=0,e=1):(t=Vs(t),e===o?(e=t,t=0):e=Vs(e)),t>e){var a=t;t=e,e=a}if(i||t%1||e%1){var n=Qi();return Ki(t+n*(e-t+Pe("1e-"+((n+"").length-1))),e)}return On(t,e)},da.reduce=function(t,e,i){var a=ms(t)?ei:di,n=arguments.length<3;return a(t,Ro(e,4),i,n,Ga)},da.reduceRight=function(t,e,i){var a=ms(t)?ii:di,n=arguments.length<3;return a(t,Ro(e,4),i,n,Va)},da.repeat=function(t,e,i){return e=(i?qo(t,e,i):e===o)?1:Hs(e),Tn(Ws(t),e)},da.replace=function(){var t=arguments,e=Ws(t[0]);return t.length<3?e:e.replace(t[1],t[2])},da.result=function(t,e,i){var a=-1,n=(e=Yn(e,t)).length;for(n||(n=1,t=o);++a<n;){var r=null==t?o:t[cr(e[a])];r===o&&(a=n,r=i),t=As(r)?r.call(t):r}return t},da.round=Xl,da.runInContext=t,da.sample=function(t){return(ms(t)?Aa:In)(t)},da.size=function(t){if(null==t)return 0;if(vs(t))return Ns(t)?Li(t):t.length;var e=jo(t);return e==X||e==it?t.size:cn(t).length},da.snakeCase=El,da.some=function(t,e,i){var a=ms(t)?ai:xn;return i&&qo(t,e,i)&&(e=o),a(t,Ro(e,3))},da.sortedIndex=function(t,e){return Mn(t,e)},da.sortedIndexBy=function(t,e,i){return Nn(t,e,Ro(i,2))},da.sortedIndexOf=function(t,e){var i=null==t?0:t.length;if(i){var a=Mn(t,e);if(a<i&&ds(t[a],e))return a}return-1},da.sortedLastIndex=function(t,e){return Mn(t,e,!0)},da.sortedLastIndexBy=function(t,e,i){return Nn(t,e,Ro(i,2),!0)},da.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var i=Mn(t,e,!0)-1;if(ds(t[i],e))return i}return-1},da.startCase=bl,da.startsWith=function(t,e,i){return t=Ws(t),i=null==i?0:Na(Hs(i),0,t.length),e=Rn(e),t.slice(i,i+e.length)==e},da.subtract=Zl,da.sum=function(t){return t&&t.length?gi(t,Dl):0},da.sumBy=function(t,e){return t&&t.length?gi(t,Ro(e,2)):0},da.template=function(t,e,i){var a=da.templateSettings;i&&qo(t,e,i)&&(e=o),t=Ws(t),e=qs({},e,a,Co);var n,r,s=qs({},e.imports,a.imports,Co),l=nl(s),h=mi(s,l),c=0,p=e.interpolate||Xt,u="__p += '",d=ie((e.escape||Xt).source+"|"+p.source+"|"+(p===St?Ft:Xt).source+"|"+(e.evaluate||Xt).source+"|$","g"),g="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Ie+"]")+"\n";t.replace(d,function(e,i,a,o,s,l){return a||(a=o),u+=t.slice(c,l).replace(Zt,Ti),i&&(n=!0,u+="' +\n__e("+i+") +\n'"),s&&(r=!0,u+="';\n"+s+";\n__p += '"),a&&(u+="' +\n((__t = ("+a+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),u+="';\n";var y=e.variable;y||(u="with (obj) {\n"+u+"\n}\n"),u=(r?u.replace(vt,""):u).replace(Et,"$1").replace(bt,"$1;"),u="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(n?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var f=Il(function(){return $t(l,g+"return "+u).apply(o,h)});if(f.source=u,Ts(f))throw f;return f},da.times=function(t,e){if((t=Hs(t))<1||t>N)return[];var i=R,a=Ki(t,R);e=Ro(e),t-=R;for(var n=yi(a,e);++i<t;)e(i);return n},da.toFinite=Vs,da.toInteger=Hs,da.toLength=Fs,da.toLower=function(t){return Ws(t).toLowerCase()},da.toNumber=js,da.toSafeInteger=function(t){return t?Na(Hs(t),-N,N):0===t?t:0},da.toString=Ws,da.toUpper=function(t){return Ws(t).toUpperCase()},da.trim=function(t,e,i){if((t=Ws(t))&&(i||e===o))return t.replace(Nt,"");if(!t||!(e=Rn(e)))return t;var a=xi(t),n=xi(e);return Qn(a,vi(a,n),Ei(a,n)+1).join("")},da.trimEnd=function(t,e,i){if((t=Ws(t))&&(i||e===o))return t.replace(kt,"");if(!t||!(e=Rn(e)))return t;var a=xi(t);return Qn(a,0,Ei(a,xi(e))+1).join("")},da.trimStart=function(t,e,i){if((t=Ws(t))&&(i||e===o))return t.replace(Ut,"");if(!t||!(e=Rn(e)))return t;var a=xi(t);return Qn(a,vi(a,xi(e))).join("")},da.truncate=function(t,e){var i=C,a=S;if(Cs(e)){var n="separator"in e?e.separator:n;i="length"in e?Hs(e.length):i,a="omission"in e?Rn(e.omission):a}var r=(t=Ws(t)).length;if(Ai(t)){var s=xi(t);r=s.length}if(i>=r)return t;var l=i-Li(a);if(l<1)return a;var h=s?Qn(s,0,l).join(""):t.slice(0,l);if(n===o)return h+a;if(s&&(l+=h.length-l),xs(n)){if(t.slice(l).search(n)){var c,p=h;for(n.global||(n=ie(n.source,Ws(jt.exec(n))+"g")),n.lastIndex=0;c=n.exec(p);)var u=c.index;h=h.slice(0,u===o?l:u)}}else if(t.indexOf(Rn(n),l)!=l){var d=h.lastIndexOf(n);d>-1&&(h=h.slice(0,d))}return h+a},da.unescape=function(t){return(t=Ws(t))&&At.test(t)?t.replace(Ot,Mi):t},da.uniqueId=function(t){var e=++pe;return Ws(t)+e},da.upperCase=Ol,da.upperFirst=Tl,da.each=Wr,da.eachRight=Kr,da.first=vr,Nl(da,(ql={},Ya(da,function(t,e){ce.call(da.prototype,e)||(ql[e]=t)}),ql),{chain:!1}),da.VERSION="4.17.10",Ye(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){da[t].placeholder=da}),Ye(["drop","take"],function(t,e){ma.prototype[t]=function(i){i=i===o?1:Wi(Hs(i),0);var a=this.__filtered__&&!e?new ma(this):this.clone();return a.__filtered__?a.__takeCount__=Ki(i,a.__takeCount__):a.__views__.push({size:Ki(i,R),type:t+(a.__dir__<0?"Right":"")}),a},ma.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Ye(["filter","map","takeWhile"],function(t,e){var i=e+1,a=i==L||3==i;ma.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ro(t,3),type:i}),e.__filtered__=e.__filtered__||a,e}}),Ye(["head","last"],function(t,e){var i="take"+(e?"Right":"");ma.prototype[t]=function(){return this[i](1).value()[0]}}),Ye(["initial","tail"],function(t,e){var i="drop"+(e?"":"Right");ma.prototype[t]=function(){return this.__filtered__?new ma(this):this[i](1)}}),ma.prototype.compact=function(){return this.filter(Dl)},ma.prototype.find=function(t){return this.filter(t).head()},ma.prototype.findLast=function(t){return this.reverse().find(t)},ma.prototype.invokeMap=An(function(t,e){return"function"==typeof t?new ma(this):this.map(function(i){return nn(i,t,e)})}),ma.prototype.reject=function(t){return this.filter(ls(Ro(t)))},ma.prototype.slice=function(t,e){t=Hs(t);var i=this;return i.__filtered__&&(t>0||e<0)?new ma(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),e!==o&&(i=(e=Hs(e))<0?i.dropRight(-e):i.take(e-t)),i)},ma.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ma.prototype.toArray=function(){return this.take(R)},Ya(ma.prototype,function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),a=/^(?:head|last)$/.test(e),n=da[a?"take"+("last"==e?"Right":""):e],r=a||/^find/.test(e);n&&(da.prototype[e]=function(){var e=this.__wrapped__,s=a?[1]:arguments,l=e instanceof ma,h=s[0],c=l||ms(e),p=function(t){var e=n.apply(da,ti([t],s));return a&&u?e[0]:e};c&&i&&"function"==typeof h&&1!=h.length&&(l=c=!1);var u=this.__chain__,d=!!this.__actions__.length,g=r&&!u,y=l&&!d;if(!r&&c){e=y?e:new ma(this);var f=t.apply(e,s);return f.__actions__.push({func:Vr,args:[p],thisArg:o}),new fa(f,u)}return g&&y?t.apply(this,s):(f=this.thru(p),g?a?f.value()[0]:f.value():f)})}),Ye(["pop","push","shift","sort","splice","unshift"],function(t){var e=oe[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",a=/^(?:pop|shift)$/.test(t);da.prototype[t]=function(){var t=arguments;if(a&&!this.__chain__){var n=this.value();return e.apply(ms(n)?n:[],t)}return this[i](function(i){return e.apply(ms(i)?i:[],t)})}}),Ya(ma.prototype,function(t,e){var i=da[e];if(i){var a=i.name+"";(na[a]||(na[a]=[])).push({name:e,func:i})}}),na[yo(o,_).name]=[{name:"wrapper",func:o}],ma.prototype.clone=function(){var t=new ma(this.__wrapped__);return t.__actions__=ao(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ao(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ao(this.__views__),t},ma.prototype.reverse=function(){if(this.__filtered__){var t=new ma(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},ma.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,i=ms(t),a=e<0,n=i?t.length:0,o=function(t,e,i){for(var a=-1,n=i.length;++a<n;){var o=i[a],r=o.size;switch(o.type){case"drop":t+=r;break;case"dropRight":e-=r;break;case"take":e=Ki(e,t+r);break;case"takeRight":t=Wi(t,e-r)}}return{start:t,end:e}}(0,n,this.__views__),r=o.start,s=o.end,l=s-r,h=a?s:r-1,c=this.__iteratees__,p=c.length,u=0,d=Ki(l,this.__takeCount__);if(!i||!a&&n==l&&d==l)return Fn(t,this.__actions__);var g=[];t:for(;l--&&u<d;){for(var y=-1,f=t[h+=e];++y<p;){var m=c[y],_=m.iteratee,v=m.type,E=_(f);if(v==x)f=E;else if(!E){if(v==L)continue t;break t}}g[u++]=f}return g},da.prototype.at=Hr,da.prototype.chain=function(){return Gr(this)},da.prototype.commit=function(){return new fa(this.value(),this.__chain__)},da.prototype.next=function(){this.__values__===o&&(this.__values__=Gs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},da.prototype.plant=function(t){for(var e,i=this;i instanceof ya;){var a=ur(i);a.__index__=0,a.__values__=o,e?n.__wrapped__=a:e=a;var n=a;i=i.__wrapped__}return n.__wrapped__=t,e},da.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof ma){var e=t;return this.__actions__.length&&(e=new ma(this)),(e=e.reverse()).__actions__.push({func:Vr,args:[Cr],thisArg:o}),new fa(e,this.__chain__)}return this.thru(Cr)},da.prototype.toJSON=da.prototype.valueOf=da.prototype.value=function(){return Fn(this.__wrapped__,this.__actions__)},da.prototype.first=da.prototype.head,Be&&(da.prototype[Be]=function(){return this}),da}();Me._=Ni,(n=function(){return Ni}.call(e,i,e,a))===o||(a.exports=n)}).call(this)}).call(this,i(170),i(106)(t))},function(t,e,i){"use strict";var a=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(i,a){e(i,a,t)}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(11),s=i(93),l=function(){function t(t){this.storageExpiration=null,this.storageExpiration=t}return t.prototype.getValue=function(t){return this.hasValue(t)&&!this.storageExpiration.hasExpired(t)?this.retrieveValueFromStorage(t):null},t.prototype.invalidate=function(){this.storageExpiration.invalidate()},t.prototype.storeValue=function(t,e){this.storageExpiration.cacheItem(t),this.storeValueInStorage(t,e)},t=a([r.injectable(),o(0,r.inject(s.InjectionIdentifiers.CacheExpirationStrategy)),n("design:paramtypes",[Object])],t)}();e.CacheStorage=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(31),r=i(758),s=function(t){function e(e){var i=t.call(this,e)||this;i.store={items:[{ID:41,type:"hat"},{ID:67,type:"weapon"},{ID:37,type:"outfit"},{ID:15,type:"pet"},{ID:35,type:"pet"}]},Object.defineProperty(i.store,"name",{get:function(){return e.prodigy.gameContainer.Localizer.getText("STORE_NAME_DYNO")}}),i.name="Dyno",i.ID="dyno",i.bgmID=3,i.battleBG="battle-shipwreck-outside",i.onFaint="dyno-A0",i.questHub="dyno-A0",i.states=["daily"];return i.maps={A0:new r.DynoA0(i,["tileset-generic","tileset-outsidesnow","atlas-91","tileset-town","atlas-122","tileset-volcano","battle-shipwreck-outside","tileset-generic-new","tileset-ship-exterior","tileset-water-new"])},i}return n(e,t),e.AUDIO=[{tag:"voice-9",s:0,d:3},{tag:"voice-9",s:3,d:2},{tag:"voice-9",s:5,d:2},{tag:"voice-9",s:7,d:2},{tag:"voice-9",s:9,d:2},{tag:"voice-9",s:11,d:3}],e.DATA={ID:6,tag:"dyno-A0",zoneName:"zone-dino",atlas:"atlas-114",icon:"icon-fossil-1",shopkeeperTag:"atlas-53",shopkeeperFrame:"face_0",scaleX:.89,scaleY:.89,battle:{screen:"bg-battle-dino",encounter:[{ID:105},{ID:106},{ID:107},{ID:108},{ID:109},{ID:110},{ID:111},{ID:112}]},quests:[]},e}(o.Zone);e.DynoZone=s},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(76),s=i(64),l=i(51),h=i(4),c=i(226),p=i(0),u=i(126),d=i(756),g=function(t){function e(e){var i=t.call(this,e,"game-dino","atlas-15",["atlas-15","bgm-5","atlas-84","reduced-outfit-male-39","reduced-outfit-female-39","sfx-12"])||this;return i.area=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],i.digging=!1,i.walkSpeed=1,i.fossilOff=0,i.power=0,i.targetDigs=0,i.digs=0,i}return n(e,t),e.prototype.create=function(){t.prototype.create.call(this),this.game.prodigy.audio.pauseBGM(),this.game.prodigy.player.saveEnabled=!1},e.prototype.screenSetup=function(){t.prototype.screenSetup.call(this),this.path=new c.Pathfinder(this.area),this.bg=this.game.prodigy.create.sprite(0,0,"atlas-15","bg"),this.bg.inputEnabled=!0,this.bg.events.onInputDown.add(this.listener,this),this.background.add(this.bg),this.npc=new r.QuestNPC(this.game,this.content,130,640,{atlas:"scoog",atlasID:84,name:this.game.prodigy.gameContainer.Localizer.getText("NPC_NAME_SCOOG")}),this.playerContainer=this.game.prodigy.create.player(this.content,this.game.prodigy.player,1,600,350,!1,!0),this.playerContainer.forceOutfit(39),this.playerContainer.setup(null,!0),this.playerContainer.showName(!1);for(var e=0;e<this.playerContainer.sprites.children.length;e++)this.playerContainer.sprites.children[e]instanceof s.Sprite&&(this.playerContainer.sprites.children[e].inputEnabled=!0,this.playerContainer.sprites.children[e].events.onInputDown.add(this.listener,this));this.content.add(this.game.prodigy.create.sprite(694,32,"atlas-15","platform")),this.digBtn=this.game.prodigy.create.element(this.content,this.playerContainer.x-40,this.playerContainer.y-160);var i=this.digBtn.add(this.game.prodigy.create.sprite(0,0,"atlas-21","icon-base"));i.inputEnabled=!0,i.events.onInputDown.add(this.dig.bind(this),this);var a=this.digBtn.add(this.game.prodigy.create.sprite(0,0,"icon-key-1"));this.game.add.tween(a).to({y:-10},1e3,Phaser.Easing.Quadratic.InOut,!0,0,o.GameConstants.MAX_SAFE_INTEGER,!0),this.digBtn.visible=!1,this.timer=this.game.prodigy.create.timer(this.foreground,15,15),this.timer.setTime(9e4),this.timer.setMsg(this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_ITEMS_RECOVERED",0)),this.botPanel=this.game.prodigy.create.panel(this.foreground,965,605,6,2),this.botPanel.alpha=.8,this.rewards=[],this.setNextDig(),this.menu=new d.DinoDigMenu(this.game,this.content,this.showBoosts.bind(this),this.showInstructions.bind(this),this.toDino.bind(this)),this.showUI(!1),this.digging=!1},e.prototype.listener=function(){if(this.playGame&&!this.digging){if(this.game.input.x===this.playerContainer.x&&this.game.input.y===this.playerContainer.y)return;this.path.findPath(this.playerContainer.x,this.playerContainer.y,this.game.input.x,this.game.input.y,this.onPathFound.bind(this))}},e.prototype.shutdown=function(){t.prototype.shutdown.call(this);try{this.bg.destroy(),this.bg=null}catch(t){}try{this.playerContainer.destroy(),this.playerContainer=null}catch(t){}},e.prototype.showUI=function(t){this.npc.visible=this.playerContainer.visible=this.timer.visible=this.botPanel.visible=t,this.menu.visible=!t},e.prototype.onPathFound=function(t){if(p.Util.isValid(t)){var e=Math.floor(t[0].x/20),i=Math.floor(t[0].y/20);this.digBtn.visible=!1,1===this.area[i][e]&&this.playerContainer.setPath(t,this.askDig.bind(this,!0,e,i),this.walkSpeed)}},e.prototype.showInstructions=function(){this.showUI(!0);var t=this.game.prodigy.dialogue.create();t.setText({text:this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_INSTRUCTIONS_0"),face:0,anim:4}),t.setText({text:this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_INSTRUCTIONS_1"),face:2}),t.setText({callback:this.dig.bind(this)}),t.setText({text:this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_INSTRUCTIONS_2"),face:0}),t.setText({callback:this.showDigButton.bind(this)}),t.setText({text:this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_INSTRUCTIONS_3"),face:0}),t.setText({callback:this.dig.bind(this)}),t.setText({text:this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_INSTRUCTIONS_4"),face:1}),t.setText({callback:this.timer.blink.bind(this.timer)}),t.setText({text:this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_INSTRUCTIONS_5"),face:1,anim:2}),t.setText({callback:this.showUI.bind(this,!1)}),t.start("scoog")},e.prototype.showDigButton=function(){this.digBtn.visible=!0},e.prototype.showBoosts=function(){var t=e.getNewFossils(this.game.prodigy.player.backpack);this.showUI(!0);var i=this.game.prodigy.gameContainer.Localizer,a=[{icon:{type:"boots",ID:7},d:i.getText("BOOST_DESCRIPTION_WALK_FASTER")},t.length>0?{icon:{type:"fossil",ID:1},d:i.getText("BOOST_DESCRIPTION_MORE_FOSSILS")}:null,{icon:{type:"key",ID:1},d:i.getText("BOOST_DESCRIPTION_DIG_FASTER")}];this.game.prodigy.open.boostSelect(a,this.startGame.bind(this))},e.getNewFossils=function(t){for(var e=[],i=h.Items.getCategoryItems("fossil"),a=t.getBackpackItemsByType("fossil"),n=0;n<i.length;n++){var o=i[n];if(!(t.hasItem("fossil",o.ID+12)>0)){for(var r=o.data.count,s=0;s<a.length;s++)if(a[s].ID===o.ID){r-=p.Util.isValid(a[s].N)?a[s].N:1;break}for(s=0;s<r;s++)e.push(o.ID)}}return e},e.prototype.startGame=function(t){this.walkSpeed=0===t?1.5:1,this.fossilOff=1===t?.1:0,this.power=2===t?2:0,this.game.prodigy.effects.flashText(this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_START"),this.begin.bind(this))},e.prototype.begin=function(){this.playGame=!0,this.timer.start(9e4,this.endGame.bind(this)),this.game.prodigy.audio.playBGM(5,!0)},e.prototype.setNextItem=function(){var t=Math.random();if(t<.2)this.item={type:"gold",N:10},this.targetDigs=3;else if(t<.33)this.item={type:"gold",N:25},this.targetDigs=4;else if(t<this.fossilOff+.66){var i=e.getNewFossils(this.game.prodigy.player.backpack);i.length<=0?(this.item={type:"gold",N:50},this.targetDigs=5):(this.item={type:"fossil",ID:i[Math.floor(Math.random()*i.length)]},this.targetDigs=8)}else{for(var a=[];a.length<=0;)a=h.Items.getItemDrops();this.item=a[0];var n=this.item.type;this.targetDigs="outfit"===n?10:"weapon"===n?12:"item"===n?5:8}this.targetDigs-=this.power},e.prototype.setNextDig=function(){for(this.setNextItem(),this.targetCoords={x:0,y:0};1!==this.area[this.targetCoords.y][this.targetCoords.x];)this.targetCoords.x=Math.floor(64*Math.random()),this.targetCoords.y=Math.floor(36*Math.random())},e.prototype.askDig=function(t,e,i){t&&(this.digX=e,this.digY=i,this.dig())},e.prototype.dig=function(){this.game.prodigy.audio.playSFX(18,"dig");var t,e=100;p.Util.isValid(this.digX)&&(e=Phaser.Math.distance(this.digX,this.digY,this.targetCoords.x,this.targetCoords.y)),this.digging||(this.digging=!0,e<3&&(this.timer.setMsg(this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_FOUND_ITEM")),(t=this.game.prodigy.create.sprite(20*this.digX,20*this.digY,"atlas-15","hole1")).visible=!0,this.background.add(t),this.digs=0)),e<3&&p.Util.isValid(t)&&(t.frameName="hole"+Math.max(1,Math.floor(this.digs/this.targetDigs*3)+1));var i="";i=e<3?this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_DISTANCE_DIG"):e<5?this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_DISTANCE_HOT"):e<8?this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_DISTANCE_WARM"):e<15?this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_DISTANCE_COLD"):this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_DISTANCE_ICE_COLD"),p.Util.isValid(this.text)&&this.text.destroy(),this.text=this.game.prodigy.create.font(this.foreground,this.playerContainer.x-100,this.playerContainer.y-100,i,{width:200,align:"center"}),this.game.add.tween(this.text).to({y:this.playerContainer.y-200,alpha:0},2e3,Phaser.Easing.Quadratic.Out).start();var a=this.game.prodigy.player.backpack.getKeyItemData(1,"lvl"),n=2===a?12:3===a?16:8;this.playerContainer.dig(n,this.digEnd.bind(this,e)),this.digBtn.visible=!1},e.prototype.digEnd=function(t){if(t<3&&this.timer.isInProgress())if(this.digs++,this.digs>=this.targetDigs){this.game.prodigy.audio.playSFX(18,"heart"),this.rewards.push(this.item),this.timer.setMsg(this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_ITEMS_RECOVERED",this.rewards.length));var e=this.game.prodigy.icon.createFromData(this.item,20*this.digX+10,20*this.digY+10,{x:0,y:0});this.foreground.add(e),e.scale.x=e.scale.y=0;var i=(this.rewards.length-1)%5*60+995,a=50*Math.floor((this.rewards.length-1)/5)+630;this.game.add.tween(e.scale).to({x:1.2,y:1.2},1e3,Phaser.Easing.Quadratic.Out).to({x:.8,y:.8},1e3,Phaser.Easing.Quadratic.In).start(),this.game.add.tween(e).to({x:i,y:a},2e3,Phaser.Easing.Quadratic.Out).start(),this.rewards.length%3==0&&this.extendTime(),this.digging=!1,this.setNextDig()}else this.digBtn.x=this.playerContainer.x-40,this.digBtn.y=this.playerContainer.y<160?this.playerContainer.y:this.playerContainer.y-160,this.digBtn.visible=!0;else this.digging=!1},e.prototype.extendTime=function(){this.timer.add(15e3),this.timer.pause();var t=this.game.prodigy.dialogue.create();t.setText({text:this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_EXTEND_TIME"),face:1,anim:4,audio:u.DynoZone.AUDIO[1]}),t.setText({callback:this.resumeTimer.bind(this)}),t.start("scoog")},e.prototype.resumeTimer=function(){this.timer.resume()},e.prototype.endGame=function(){this.game.prodigy.audio.playSFX(12,"bell"),this.game.prodigy.audio.pauseBGM(),this.digBtn.visible=!1,this.playGame=!1,this.game.prodigy.effects.flashText(this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_TIMES_UP"),this.end.bind(this))},e.prototype.end=function(){var t=this.game.prodigy.dialogue.create();this.rewards.length>0?(t.setText({text:this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_TIMES_UP_REWARD"),face:1,anim:2}),t.setText({callback:this.game.prodigy.open.gotItem.bind(this.game.prodigy.open,this.rewards,this.examineResults.bind(this),null,"dino-dig")})):(t.setText({text:this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_TIMES_UP_TRY_AGAIN"),face:2}),t.setText({callback:this.toDino.bind(this)})),t.start("scoog")},e.prototype.examineResults=function(){for(var t=!1,e=0;e<this.rewards.length;e++)"fossil"===this.rewards[e].type&&(t=!0);var i=this.game.prodigy.dialogue.create();t?(i.setText({text:this.game.prodigy.gameContainer.Localizer.getText("DYNO_DIG_FOUND_FOSSIL"),face:1,anim:2,audio:u.DynoZone.AUDIO[1]}),i.setText({callback:this.toDino.bind(this)}),i.start("scoog")):this.toDino()},e.prototype.toDino=function(){p.Util.isValid(this.screenData.playerPosition)?this.game.prodigy.world.teleport("dyno-A0",this.screenData.playerPosition.x,this.screenData.playerPosition.y):this.game.prodigy.world.teleport("dyno-A0",790,240)},e}(l.Screen);e.DinoDig=g},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(4),s=i(29),l=i(0),h=i(43),c=i(50),p=function(t){function e(e,i,a,n){var o=t.call(this)||this;return o.emitter=null,o.particleEffectData=null,o.particleAsset=null,o.renderer=null,o.renderType=Phaser.ParticleStorm.SPRITE_BATCH,o.particleStorm=null,o.timeFactory=null,o.burstTimer=null,o.burstEvent=null,o.sortTargets=[],o.particleEffectData=e,o.particleStorm=i,o.timeFactory=a,o.particleAsset=r.Items.getItem("particleEffect",e.ID),l.Util.isValid(n)&&(o.renderType=n),o}return n(e,t),e.prototype.create=function(){t.prototype.create.call(this),this.renderer=this.gameObject.findComponent(c.Renderer),this.emitter=this.particleStorm.createEmitter(this.renderType,this.particleAsset.data.force),this.emitter.addToWorld(null===this.gameObject.parent?void 0:this.gameObject.parent),l.Util.isValid(this.particleStorm.getData(this.particleEffectData.ID.toString()))||this.particleStorm.addData(this.particleEffectData.ID.toString(),this.particleAsset.data.particle),l.Util.isValid(this.emitter.renderer)&&Object.defineProperty(this.emitter.renderer.display,"y",{get:this.getEmitterY.bind(this)}),l.Util.isValid(this.particleEffectData.autoStart)&&!this.particleEffectData.autoStart||this.emitParticles();var e=this.particleAsset.data.emitter;l.Util.isValid(e.burstFrequency)&&e.repeat>-1&&this.setupBursts()},e.prototype.setupBursts=function(){var t=this.particleAsset.data.emitter,e=this.getBurstDelay();this.burstTimer=this.timeFactory.create(!0),l.Util.isValid(t.burstRepeat)&&-1!==t.burstRepeat?this.burstEvent=this.burstTimer.repeat(e,t.burstRepeat,this.emitBurst,this):this.burstEvent=this.burstTimer.loop(e,this.emitBurst,this),this.burstTimer.start()},e.prototype.createEmitterConfig=function(t,e){var i=JSON.parse(JSON.stringify(t));return l.Util.isValid(e)&&(i.zone=this.createParticleZone(e)),i},e.prototype.createParticleZone=function(t){return"LINE_ZONE"===t.type?this.gameObject.game.particleStorm.createLineZone(t.x1,t.y1,t.x2,t.y2):null},e.prototype.update=function(){var t=this.emitter.timer.events[0];if(l.Util.isValid(t)){var e=this.getEmitterPosition();t.args[1]=e.x,t.args[2]=e.y,l.Util.isValid(this.renderer)&&(this.emitter.emitterScale=this.renderer.getScale())}},e.prototype.destroy=function(){l.Util.isValid(this.burstTimer)&&this.burstTimer.destroy(),this.emitter.paused=!0,this.emitter.parent.removeEmitter(this.emitter),this.emitter.destroy()},e.prototype.getEmitterPosition=function(){var t={x:1,y:1};return l.Util.isValid(this.renderer)&&(t=this.renderer.getScale()),{x:this.gameObject.x+this.particleEffectData.x*t.x,y:this.gameObject.y+this.particleEffectData.y*t.y}},e.prototype.emitBurst=function(){"number"!=typeof this.particleAsset.data.emitter.burstTimer&&(this.burstEvent.delay=this.getBurstDelay()),this.emitParticles()},e.prototype.emitParticles=function(){var t=this.getEmitterPosition();this.emitter.emit(this.particleEffectData.ID.toString(),t.x,t.y,this.createEmitterConfig(this.particleAsset.data.emitter,this.particleEffectData.zone))},e.prototype.getBurstDelay=function(){var t=this.particleAsset.data.emitter.burstFrequency;return"number"==typeof t?t:s.Random.realInRange(t.min,t.max)},e.prototype.getEmitterY=function(){if(!l.Util.isValid(this.particleEffectData.inFront)||this.particleEffectData.inFront){if(this.sortTargets.length>0){for(var t=this.sortTargets[0].y,e=1;e<this.sortTargets.length;++e)this.sortTargets[e].y>t&&(t=this.sortTargets[e].y);return t+1}return o.GameConstants.MAX_SAFE_INTEGER}if(this.sortTargets.length>0){var i=this.sortTargets[0].y;for(e=1;e<this.sortTargets.length;++e)this.sortTargets[e].y<i&&(i=this.sortTargets[e].y);return i-1}return-o.GameConstants.MAX_SAFE_INTEGER},e}(h.Component);e.ParticleEmitter=p},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(i(48).Boss);e.TitanBoss=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=i(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.chooseAction=function(t,e,i,a,n){var r=t/10,s=e.source.source.attacks,l=this.game.prodigy.attacks.getBestAttack(s,i.source,1-r);o.Util.isValid(l)?a(e,i,n,l,Math.random()<.25-.25*t):n()},e.prototype.getDrops=function(){return r.Items.getItemDrops().concat([{type:"gold",N:100}])},e}(i(48).Boss);e.PippetBoss=s},function(t,e,i){var a=i(144),n=i(66),o=i(150),r=parseFloat,s=Math.min,l=Math.random;t.exports=function(t,e,i){if(i&&"boolean"!=typeof i&&n(t,e,i)&&(e=i=void 0),void 0===i&&("boolean"==typeof e?(i=e,e=void 0):"boolean"==typeof t&&(i=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=o(t),void 0===e?(e=t,t=0):e=o(e)),t>e){var h=t;t=e,e=h}if(i||t%1||e%1){var c=l();return s(t+c*(e-t+r("1e-"+((c+"").length-1))),e)}return a(t,e)}},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(131),r=i(2),s=i(0),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.chooseAction=function(t,e,i,a,n){var l=t/10,h=e.source.source.attacks;if(h.length<=0)n();else{var c,p=r.GameConstants.get("GameConstants.Battle.ATTACK_OVERRIDE");if(p<0&&p<h.length){if(c=this.game.prodigy.attacks.getBestAttack(h,i.source,1-l),!s.Util.isValid(c))return void n();o(0,100)<30&&(c=this.game.prodigy.attacks.getBestAttack([42],i.source,1-l))}else c=this.game.prodigy.attacks.getBestAttack([h[p]],i.source,1-l);a(e,i,n,c,Math.random()<.25-.25*l)}},e.prototype.getDrops=function(){return[{type:"gold",N:100},{type:"currency",ID:14,N:20}]},e}(i(48).Boss);e.OldOneBoss=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.chooseAction=function(t,e,i,a,n){var r=e,s=t/10;r.updateClouds();for(var l={fire:0,ice:0,water:0,earth:0,storm:0,astral:0},h=i.source.getAttacks(),c=0;c<h.length;c++)l[this.game.prodigy.attacks.getAttack(h[c]).data.element]++;var p="wizard",u=0;for(var d in l)l[d]>u&&(p=d,u=h[d]);if("fire"===p)r.waterMode();else if("ice"===p){(g=Math.random())<.34?r.earthMode():g<.67?r.iceMode():r.waterMode()}else if("earth"===p){(g=Math.random())<.34?r.earthMode():g<.67?r.iceMode():r.stormMode()}else if("storm"===p)r.iceMode();else if("water"===p)Math.random()<.5?r.earthMode():r.stormMode();else{var g;(g=Math.random())<.25?r.earthMode():g<.5?r.iceMode():g<.75?r.waterMode():r.stormMode()}var y=r.attacks;if(y.length<=0)n();else{var f=this.game.prodigy.attacks.getBestAttack(y,i.source,1-s);if(o.Util.isValid(f)){if(e.source.getCurrentHearts()/e.source.getMaxHearts()<.25&&Math.random()<s){var m=this.game.prodigy.attacks.getHealingAttack(y);o.Util.isValid(m)&&(f=m)}a(e,i,n,f,Math.random()<.25-.25*s)}else n()}},e}(i(48).Boss);e.CloudBoss=r},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.chooseAction=function(t,e,i,a,n){var r,s=e,l=t/10;if(e.source.getCurrentHearts()/e.source.getMaxHearts()<.67&&"soup"===s.foodMode)return(r=this.game.prodigy.event.create()).function(s.startEntree.bind(e)),r.function(n.bind(this)),void r.start();if(e.source.getCurrentHearts()/e.source.getMaxHearts()<.34&&"burger"===s.foodMode)return(r=this.game.prodigy.event.create()).function(s.startDessert.bind(e)),r.function(n.bind(this)),void r.start();var h=e.source.source.attacks;if(h.length<=0)n();else{var c=this.game.prodigy.attacks.getBestAttack(h,i.source,1-l);if(o.Util.isValid(c)){if(e.source.getCurrentHearts()/e.source.getMaxHearts()<.25&&Math.random()<l){var p=this.game.prodigy.attacks.getHealingAttack(h);o.Util.isValid(p)&&(c=p)}var u=.25-.25*l;a(e,i,n,c,Math.random()<u)}else n()}},e}(i(48).Boss);e.BonfireBoss=r},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,i,a,n,o){return a.modifiers.barrier=!0,t.call(this,e,i,a,n,o)||this}return n(e,t),e.prototype.setup=function(){this.game.prodigy.load.assets("sfx-7");var t=this.game.prodigy.create.element(this.sprites,0,0);this.spine=this.game.add.spine(100,-100,"default-titan-"+this.source.source.ID),this.spine.smoothed=!1,this.idle(),t.add(this.spine),t.scale.x=1.75,t.scale.y=1.75,this.complete=!0,this.loading=!1},e.prototype.idle=function(){this.spine.setAnimationByName(0,"idle",!0),this.spine.setToSetupPose()},e.prototype.attack=function(){this.spine.setAnimationByName(0,"attack",!1),this.spine.addAnimationByName(0,"idle",!0),this.spine.setToSetupPose()},e.prototype.retreat=function(){this.spine.setAnimationByName(0,"knockout",!1)},e}(i(49).BossContainer);e.TitanContainer=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(253),r=i(0),s=function(t){function e(e,i){var a=t.call(this,e,i)||this;return a.onScrollChangeCallback=null,a}return n(e,t),e.prototype.populate=function(e){this.thumbFrameName=r.Util.isValid(e.thumbFrameName)?e.thumbFrameName:"",this.activeTrackBaseFrameName=r.Util.isValid(e.activeTrackBaseFrameName)?e.activeTrackBaseFrameName:"",this.inactiveTrackBaseFrameName=r.Util.isValid(e.inactiveTrackBaseFrameName)?e.inactiveTrackBaseFrameName:"",this.endCapAtlasID=r.Util.isValid(e.endCapAtlasID)?e.endCapAtlasID:"",this.endCapFrameName=r.Util.isValid(e.endCapFrameName)?e.endCapFrameName:"",this.arrowFrameName=r.Util.isValid(e.arrowFrameName)?e.arrowFrameName:"",this.isVertical=!!r.Util.isValid(e.isVertical)&&e.isVertical,this.atlasID=r.Util.isValid(e.atlasID)?e.atlasID:144,this.clickPercentageMovement=r.Util.isValid(e.clickPercentageMovement)?e.clickPercentageMovement:.05,this.isInteractive=!r.Util.isValid(e.isInteractive)||e.isInteractive,this.hideInactive=!!r.Util.isValid(e.hideInactive)&&e.hideInactive,this.showHead=!!r.Util.isValid(e.showHead)&&e.showHead,this.thumbAnchor=r.Util.isValid(e.thumbAnchor)?e.thumbAnchor:{x:0,y:0};var i=r.Util.isValid(e.trackPadding)?e.trackPadding:0;t.prototype.populate.call(this,e);var a={width:0,height:0},n=1,o=this.game.cache.getFrameData("atlas-"+this.atlasID);if(r.Util.isValid(o)){var s=o.getFrameByName(this.arrowFrameName);r.Util.isValid(s)&&(a.width=s.width,a.height=s.height),s=o.getFrameByName(this.activeTrackBaseFrameName+"-middle"),r.Util.isValid(s)&&(n=s.height)}r.Util.isValid(e.children)||(e.children=[],a.width>0&&a.height>0&&e.children.push({type:"Button",name:"lessButton",anchorX:this.isVertical?.5:0,anchorY:this.isVertical?1:.5,relativeX:this.isVertical?.5:0,relativeY:this.isVertical?1:.5,width:a.width,height:a.height,children:[{type:"Graphic",name:"lessButtonGraphic",atlasID:this.atlasID,frameName:this.arrowFrameName}]},{type:"Button",name:"moreButton",anchorX:this.isVertical?.5:1,anchorY:this.isVertical?0:.5,relativeX:this.isVertical?.5:1,relativeY:this.isVertical?0:.5,width:a.width,height:a.height,children:[{type:"Graphic",name:"moreButtonGraphic",atlasID:this.atlasID,frameName:this.arrowFrameName}]}),e.children.push({type:"SlicedGraphic",name:"inactiveTrack",anchorX:this.isVertical?.5:0,anchorY:this.isVertical?0:.5,x:this.isVertical?0:a.width+i,y:this.isVertical?a.height+i:null,relativeX:this.isVertical?.5:null,relativeY:this.isVertical?null:.5,sliceType:"threeScale",isVertical:this.isVertical,baseFrameName:this.inactiveTrackBaseFrameName,width:this.isVertical?n:this.width-2*(a.width+i),height:this.isVertical?this.height-2*(a.height+i):n},{type:"SlicedGraphic",name:"activeTrack",anchorX:this.isVertical?.5:0,anchorY:this.isVertical?0:.5,x:this.isVertical?0:a.width+i,y:this.isVertical?a.height+i:0,relativeX:this.isVertical?.5:null,relativeY:this.isVertical?null:.5,sliceType:"threeScale",isVertical:this.isVertical,baseFrameName:this.activeTrackBaseFrameName,width:this.isVertical?n:this.width-2*(a.width+i),height:this.isVertical?this.height-2*(a.height+i):n}))},e.prototype.postPopulate=function(){if(this.activeTrack=this.iterate("name","activeTrack",Phaser.Group.RETURN_CHILD),this.inactiveTrack=this.iterate("name","inactiveTrack",Phaser.Group.RETURN_CHILD),this.isInteractive){this.setupButtons();var t=this.add(this.game.prodigy.create.sprite(0,0,"atlas-18","empty"));t.width=this.activeTrack.width,t.height=this.activeTrack.height,t.x=this.activeTrack.x,t.y=this.activeTrack.y,t.inputEnabled=!0,t.events.onInputDown.add(this.onTrackClick.bind(this))}if(this.hideInactive&&(this.inactiveTrack.visible=!1),this.thumbSprite=this.game.prodigy.create.sprite(0,0,"atlas-"+this.atlasID,this.thumbFrameName,this.thumbAnchor),""===this.thumbFrameName&&(this.thumbSprite=this.game.prodigy.create.sprite(0,0,"atlas-18","empty")),this.thumbSprite.y=r.Util.getCenteredXY(0,this.thumbSprite.height,0,this.activeTrack.y,0,this.activeTrack.height).y,""!==this.endCapAtlasID){var e=this.getMaxThumbPosition();this.add(this.game.prodigy.create.sprite(e.x,e.y,"atlas-"+this.endCapAtlasID,this.endCapFrameName))}this.add(this.thumbSprite),this.showHead&&(this.playerHead=this.game.prodigy.create.player(this.thumbSprite,this.game.prodigy.player,1,25,105,!0,!0),this.playerHead.startLoad()),this.clampThumbWithinTrack();var i=this.getMinThumbPosition(),a=this.getMaxThumbPosition(),n=new Phaser.Rectangle(this.isVertical?a.x:i.x,this.isVertical?a.y:i.y,this.isVertical?this.thumbSprite.width:this.activeTrack.width+this.thumbSprite.width,this.isVertical?this.activeTrack.height+this.thumbSprite.height:this.thumbSprite.height),s=o.DrawUtil.createBox(this.game,0,0,this.activeTrack.width,this.activeTrack.height,0,1);this.thumbSprite.addChild(s),s.x=this.isVertical?this.activeTrack.x-this.thumbSprite.x:-this.activeTrack.width,s.y=this.isVertical?0:this.activeTrack.y-this.thumbSprite.y,s.x+=this.isVertical?0:.5*this.thumbSprite.width,s.y+=this.isVertical?.5*this.thumbSprite.height:0,this.activeTrack.mask=s,this.isInteractive&&(this.thumbSprite.inputEnabled=!0,this.thumbSprite.input.enableDrag(),this.thumbSprite.input.boundsRect=n,this.thumbSprite.events.onDragStop.add(this.onDragStop,this))},e.prototype.setupButtons=function(){var t=this,e=this.iterate("name","lessButton",Phaser.Group.RETURN_CHILD),i=this.iterate("name","moreButton",Phaser.Group.RETURN_CHILD);r.Util.isValid(e)&&(e.iterate("name","lessButtonGraphic",Phaser.Group.RETURN_CHILD).flipHorizontally(),e.onClickCallback=function(){t.onLessButtonClick()});r.Util.isValid(i)&&(i.onClickCallback=function(){t.onMoreButtonClick()})},e.prototype.setPercentComplete=function(t,e){void 0===e&&(e=!1),this.setPercentCompleteOffset(t,0,e)},e.prototype.setPercentCompleteOffset=function(t,e,i){void 0===i&&(i=!0);var a=this.isVertical?this.getMinThumbPosition().y:this.getMinThumbPosition().x,n=this.isVertical?this.getMaxThumbPosition().y:this.getMaxThumbPosition().x,o=Phaser.Math.linear(a,n+e,t);this.thumbSprite.x=this.isVertical?this.thumbSprite.x:o,this.thumbSprite.y=this.isVertical?o:this.thumbSprite.y,this.clampThumbWithinTrack(),i||this.onScrollChange()},e.prototype.getPositionAtPercent=function(t){var e=this.isVertical?this.getMinThumbPosition().y:this.getMinThumbPosition().x,i=this.isVertical?this.getMaxThumbPosition().y:this.getMaxThumbPosition().x;return Phaser.Math.linear(e,i,t)},e.prototype.adjustThumbPosition=function(t,e){this.thumbSprite.x+=t,this.thumbSprite.y+=e,this.clampThumbWithinTrack()},e.prototype.clampThumbWithinTrack=function(){var t=this.getMaxThumbPosition(),e=this.getMinThumbPosition();this.thumbSprite.x=Phaser.Math.clamp(this.thumbSprite.x,e.x,t.x),this.thumbSprite.y=Phaser.Math.clamp(this.thumbSprite.y,t.y,e.y)},e.prototype.onDragStop=function(){this.onScrollChange()},e.prototype.onTrackClick=function(t,e){var i=this.isVertical?e.y:e.x,a=this.isVertical?t.world.y:t.world.x,n=this.isVertical?t.y:t.x,o=this.isVertical?t.height:t.width,r=this.isVertical?this.thumbSprite.height:this.thumbSprite.width,s=(i-a)/o,l=Math.floor(n+o*s-.5*r);this.isVertical?this.thumbSprite.y=l:this.thumbSprite.x=l,this.clampThumbWithinTrack(),this.onScrollChange()},e.prototype.onMoreButtonClick=function(){this.adjustThumbPosition(this.isVertical?0:this.activeTrack.width*this.clickPercentageMovement,this.isVertical?-this.activeTrack.height*this.clickPercentageMovement:0),this.onScrollChange()},e.prototype.onLessButtonClick=function(){this.adjustThumbPosition(this.isVertical?0:-this.activeTrack.width*this.clickPercentageMovement,this.isVertical?this.activeTrack.height*this.clickPercentageMovement:0),this.onScrollChange()},e.prototype.onScrollChange=function(){if(r.Util.isValid(this.onScrollChangeCallback)){var t=this.isVertical?this.thumbSprite.y:this.thumbSprite.x,e=this.isVertical?this.getMinThumbPosition().y:this.getMinThumbPosition().x,i=(this.isVertical?this.getMaxThumbPosition().y:this.getMaxThumbPosition().x)-e,a=1;0!==i&&(a=(t-e)/i),this.onScrollChangeCallback(a)}},e.prototype.getMaxThumbPosition=function(){var t,e;return this.isVertical?(t=r.Util.getCenteredXY(this.thumbSprite.width,0,this.activeTrack.x,0,this.activeTrack.width,0).x,e=this.activeTrack.y-.5*this.thumbSprite.height):(t=this.activeTrack.x+this.activeTrack.width-.5*this.thumbSprite.width,e=r.Util.getCenteredXY(0,this.thumbSprite.height,0,this.activeTrack.y,0,this.activeTrack.height).y),{x:t,y:e}},e.prototype.getMinThumbPosition=function(){var t=0,e=0;return this.isVertical?(t=r.Util.getCenteredXY(this.thumbSprite.width,0,this.activeTrack.x,0,this.activeTrack.width,0).x,e=this.activeTrack.y+this.activeTrack.height-.5*this.thumbSprite.height):(t=this.activeTrack.x-.5*this.thumbSprite.width,e=r.Util.getCenteredXY(0,this.thumbSprite.height,0,this.activeTrack.y,0,this.activeTrack.height).y),{x:t,y:e}},e.prototype.setActive3SlicedImage=function(t){this.activeTrack.images[0].frameName=t+"-left",this.activeTrack.images[1].frameName=t+"-right",this.activeTrack.images[2].frameName=t+"-middle"},e}(i(27).UIElement);e.Slider=s},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,i){return t.call(this,e,i)||this}return n(e,t),e.prototype.createImage=function(t,e){},e}(i(27).UIElement);e.GraphicBase=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),r=i(3),s=i(25),l=i(0),h=i(18),c=function(t){function e(i,a,n,o){var r=t.call(this,i,a)||this;return r.memberStarsEarned=0,r.hearts=0,r.source=null,r.spell=null,r.scopeApp=null,r.totalStars=0,r.closing=!1,r.backgound=null,r.getStarsBtn=null,r.jarClicker=null,r.closeBtn=null,r.nextButton=null,r.autoCloseTimer=null,r.type=o.type,r.memberStarsEarned=o.memberStarsEarned,r.hearts=o.hearts,r.source=o.source,r.spell=o.spell,r.totalStars=o.totalStars,r.x=448,r.y=122,r.scopeApp=n,r.setupBackground(),r.setupTitle(),r.setupBlockOne(),r.setupBlockTwo(),r.setupNextButton(),r.initListeners(),i.add.tween(r).from({y:720},700,Phaser.Easing.Back.Out,!0),e.onBattleBaseOpen.dispatch(r.type),r.type===e.SUMMARY&&r.enableAutoClose(),r}return n(e,t),e.prototype.setupBackground=function(){this.add(this.backgound)},e.prototype.initListeners=function(){var t=this;this.game.broadcaster.addAppListener(r.ECreatureEvents.EvolveStart,function(){t.visible=!1},this,this.game),this.game.broadcaster.addAppListener(r.ECreatureEvents.EvolveEnd,function(){t.visible=!0},this,this.game)},e.prototype.setupTitle=function(){this.type===e.SUMMARY?this.add(this.game.prodigy.create.sprite(125,12,"atlas-17","text-battle-summary")):this.add(this.game.prodigy.create.sprite(112,30,"atlas-17","text-well-done"))},e.prototype.setupBlockOne=function(){this.type===e.SUMMARY?(this.add(this.game.prodigy.create.sprite(155,120,"atlas-17","text-stars-collected")),this.add(this.game.prodigy.create.sprite(145,162,"atlas-19","user-star")),this.game.prodigy.create.font(this,175,168,""+this.totalStars,{size:2,fontID:12,width:70,align:"center"})):this.type===e.LEVEL_UP?l.Util.isValid(this.hearts)?(this.add(this.game.prodigy.create.sprite(152,120,"atlas-17","icon-heart")),this.game.prodigy.create.font(this,127,135,"+"+this.hearts,{size:30,width:126,align:"center",fontID:10})):(this.add(this.game.prodigy.create.sprite(151,120,"atlas-17","icon-star")),this.game.prodigy.create.font(this,129,150,""+this.source.getLevel(),{size:2,width:126,align:"center",fontID:12}).alpha=.5):this.type===e.SPELL&&this.add(this.game.prodigy.create.sprite(152,120,"atlas-21","icon-bar-large-"+this.spell.data.element))},e.prototype.setupBlockTwo=function(){var t=null;if(this.type===e.SUMMARY){this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:"NonMember-ControlStar",name:"NonMember-SummarySeen"});var i=this.game.prodigy.player.hasMembership()?this.memberStarsEarned:0;this.add(this.game.prodigy.create.sprite(88,240,"atlas-17","text-member-stars-collected"));var a=this.add(this.game.prodigy.create.sprite(125,0===i?265:290,"atlas-19","member-star")),n=this.game.prodigy.create.font(this,55,0===i?270:295,i+"/"+this.memberStarsEarned,{size:2,fontID:12});a.x=e.CENTER-.5*(a.width+n.width+10),n.x=e.CENTER-.5*(a.width+n.width+10)+a.width+10,0===i&&(this.getStarsBtn=this.game.prodigy.create.button(this,e.CENTER,337,"atlas-17","btn-get-them-now-green-red",this.onMembershipClick.bind(this)),this.getStarsBtn.sprite.anchor.set(.5,.5))}else this.type===e.LEVEL_UP?(t=this.game.prodigy.create.font(this,93,260,this.source.getName(),{size:16,width:200,align:"center",fontID:8}),this.add(this.game.prodigy.create.sprite(130,t.y+t.height+15,"atlas-17","text-leveled-up"))):this.type===e.SPELL&&(t=this.game.prodigy.create.font(this,93,240,this.source.getName(),{size:16,width:200,align:"center",fontID:8}),this.add(this.game.prodigy.create.sprite(95,t.y+t.height+10,"atlas-17","text-learned-a-new-spell")),this.game.prodigy.create.font(this,93,t.y+t.height+35,this.spell.data.name,{size:20,width:200,align:"center",fontID:8}))},e.prototype.setupNextButton=function(){if(this.nextButton=this.game.prodigy.create.button(this,e.CENTER-83,410,"atlas-17","btn-next",this.onClose.bind(this)),this.type===e.SUMMARY&&!this.game.prodigy.player.hasMembership()){this.nextButton.alpha=0,this.nextButton.y=430,this.nextButton.active=!1;var t=this.game.prodigy.event.create();t.delay(3e3),t.tween(this.nextButton,{alpha:1,y:410},300,Phaser.Easing.Quadratic.In),t.set(this.nextButton,"active",!0),t.start()}},e.prototype.removeAutoClose=function(){l.Util.isValid(this.autoCloseTimer)&&(this.game.time.events.remove(this.autoCloseTimer),this.autoCloseTimer=null)},e.prototype.enableAutoClose=function(){l.Util.isValid(this.autoCloseTimer)||(this.autoCloseTimer=this.game.time.events.add(3e4,this.onClose.bind(this),this))},e.prototype.onMembershipClick=function(){var t={conversionFunnelName:"NonMember-ControlStar",conversionStage:"Member-Converted"};this.game.prodigy.network.sendAdvancedEvent("game_complete",{type:"NonMember-ControlStar",name:'Member-Click"'}),this.game.prodigy.network.sendConversionFunnelEvent(t.conversionFunnelName,h.EFunnelEventIDs.StageClickStars,t.conversionFunnelMetadata),this.game.prodigy.open.membershipInfo(this.enableAutoClose.bind(this),t,s.MembershipInfo.MORE_EXP),this.removeAutoClose()},e.prototype.onClose=function(){if(!this.closing){this.closing=!0,l.Util.isValid(this.closeBtn)&&l.Util.isValid(this.closeBtn.setInactive)&&this.closeBtn.setInactive(),this.game.broadcaster.removeAppListener(r.ECreatureEvents.EvolveStart,this,this.game),this.game.broadcaster.removeAppListener(r.ECreatureEvents.EvolveEnd,this,this.game),l.Util.isValid(this.autoCloseTimer)&&this.game.time.events.remove(this.autoCloseTimer),l.Util.isValid(this.nextButton)&&(this.nextButton.setInactive(16777215),l.Util.isValid(this.jarClicker)&&(this.jarClicker.input.enabled=!1)),l.Util.isValid(this.getStarsBtn)&&this.getStarsBtn.setInactive(16777215);var t=this.type===e.SUMMARY?500:700;this.game.add.tween(this).to({y:720},t,Phaser.Easing.Back.In,!0).onComplete.add(this.onCloseComplete,this)}},e.prototype.onCloseComplete=function(){e.onBattleBaseClose.dispatch(this.type),this.game.broadcaster.broadcast(r.EBattleEvents.PopupClosed,this.scopeApp,null),this.game.prodigy.open.close(this),this.destroy()},e.CENTER=192,e.SUMMARY=0,e.LEVEL_UP=1,e.SPELL=2,e.onBattleBaseOpen=new Phaser.Signal,e.onBattleBaseClose=new Phaser.Signal,e}(o.Element);e.BattleBase=c},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(9),r=i(0),s=function(t){function e(e,i,a,n,o,r,s,l,h,c){return void 0===c&&(c=6500),t.call(this,e,i,a,n,o,c,"wizard",r,s,l,h)||this}return n(e,t),e.prototype.setup=function(e){void 0===e&&(e=5e3),t.prototype.setup.call(this,e),this.doAttack()},e.prototype.setupNoAnimation=function(e){t.prototype.setup.call(this,e)},e.prototype.doAttack=function(){var t=this.source.x,e=this.source.y;r.Util.isValid(this.epic)&&(t=this.epic.x,e=this.epic.y);for(var i=Math.floor(t+(this.target.x-t)/2),a=e-250,n=0;n<50;n++){var s=(Math.random()<.25?"core-box-empty-":"core-box-")+Math.floor(6*Math.random()),l=this.game.prodigy.create.sprite(o.Attack.BX,o.Attack.BY,"atlas-16",s);l.anchor.setTo(.5,.5),l.alpha=.8,this.overLayer.add(l);var h=Math.floor(4500*n/50),c=Math.floor(40*Math.random()-20);this.game.add.tween(l).to({x:t,y:e-50+c},1,Phaser.Easing.Linear.None).delay(h).to({x:i,y:a},500,Phaser.Easing.Linear.None).to({alpha:0},1,Phaser.Easing.Linear.None).start()}var p=0;for(n=0;n<12;n++){var u=this.game.prodigy.create.sprite(o.Attack.BX,o.Attack.BY,"atlas-16","core-circle-small");this.underLayer.add(u),u.anchor.setTo(.5,.5),u.alpha=.25,u.scale.x=u.scale.y=20,this.game.add.tween(u).to({x:i,y:a},1,Phaser.Easing.Linear.None).delay(p).to({},800,Phaser.Easing.Linear.None).to({alpha:0},1,Phaser.Easing.Linear.None).start(),this.game.add.tween(u.scale).to({x:0,y:0},800,Phaser.Easing.Linear.None).delay(p).start(),p+=500-20*n}var d=this.game.prodigy.create.sprite(o.Attack.BX,o.Attack.BY,"atlas-16","ice-snowman-body");this.overLayer.add(d),d.anchor.setTo(.5,.5),d.alpha=.5,d.scale.x=d.scale.y=0,this.game.add.tween(d).to({x:i,y:a},1,Phaser.Easing.Linear.None).to({},5e3,Phaser.Easing.Linear.None).to({alpha:0},400,Phaser.Easing.Linear.None).start(),this.game.add.tween(d.scale).to({x:4,y:4},5e3,Phaser.Easing.Linear.None).to({x:10,y:10},400,Phaser.Easing.Linear.None).start();var g=this.game.prodigy.create.sprite(o.Attack.BX,o.Attack.BY,"atlas-16","storm-steam");this.underLayer.add(g),g.anchor.setTo(.5,.5),this.game.add.tween(g).to({x:this.target.x,y:this.target.y},1,Phaser.Easing.Linear.None).delay(5400).to({y:"-100",alpha:0},250,Phaser.Easing.Quadratic.Out).start(),this.game.add.tween(this.target).to({x:i},3e3,Phaser.Easing.Quadratic.In).to({},2e3,Phaser.Easing.Linear.None).to({x:this.target.x},200,Phaser.Easing.Linear.None).start(),this.game.add.tween(this.target).to({y:a+50},1e3,Phaser.Easing.Quadratic.In).delay(2e3).to({},2e3,Phaser.Easing.Linear.None).to({y:this.target.y},200,Phaser.Easing.Linear.None).to({y:"-50"},250,Phaser.Easing.Quadratic.Out).to({y:"+50"},250,Phaser.Easing.Quadratic.In).start(),this.game.prodigy.effects.shake(0,5e3,3,"v"),this.game.prodigy.effects.shake(5e3,1e3,15)},e}(o.Attack);e.Zero=s},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(16),r=i(5),s=i(3),l=function(t){function e(e,i,a,n,r){var s=t.call(this,e,i,a,n)||this;s.graphic=null,s.vanishTween=null,s.activeTween=null,s.updateEnabled=!0,s.graphic=s.add(s.game.prodigy.create.sprite(0,0,"atlas-120","ink-idle-1")),s.graphic.anchor.setTo(.5,1),s.graphic.x+=.5*s.graphic.width,s.graphic.y+=s.graphic.height;var l=new o.TweenController(s.graphic);return l.set("frameName",["ink-idle-1","ink-idle-2","ink-idle-3","ink-idle-4"],150,9999),s.vanishTween=new o.TweenController(s.graphic),s.vanishTween.delay(r),s.vanishTween.set("frameName",["ink-vanish-1","ink-vanish-2","ink-vanish-3","ink-vanish-4","ink-vanish-5"],150,9999),s.vanishTween.end(function(){s.onEnd()}),s.activeTween=l,s.activeTween.start(),s}return n(e,t),e.prototype.onClicked=function(){this.activeTween=this.vanishTween,this.activeTween.start()},e.prototype.update=function(){t.prototype.update.call(this),this.updateEnabled&&this.activeTween.update()},e.prototype.onEnd=function(){this.visible=!1,this.updateEnabled=!1,this.game.broadcaster.broadcast(s.EShipwreckShoreEvents.InkBlasted,this.parent,[])},e}(r.Element);e.Ink=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.position=new Phaser.Point,e.requestedHeight=0,e.requestedWidth=0,e.updateRate=0,e.elapsed=0,e.createdUI=!1,e}return n(e,t),e.prototype.update=function(){this.elapsed+=this.gameObject.game.time.elapsed,this.elapsed>=this.updateRate&&(this.elapsed=0,this.updateUI())},e.prototype.onLayout=function(){this.createdUI||this.createUI(),this.elapsed=this.updateRate},e.prototype.onRemovedFromLayout=function(){this.createdUI&&this.cleanUpUI()},e.prototype.createUI=function(){this.createdUI=!0},e.prototype.cleanUpUI=function(){this.createdUI=!1},e}(i(43).Component);e.DebugValueRenderer=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),r=i(3),s=i(38),l=i(253),h=i(0),c=i(857),p=function(t){function e(i,a,n,o,r,s){void 0===s&&(s=!1);var h=t.call(this,i,a)||this;h.baseX=0,h.reverseHearts=!1,h.hideStars=!1,h.barMask=null,h.heartsBase=null,h.heartsIcon=null,h.heartsFill=null,h.heartsBarText=null,h.starsBase=null,h.starsIcon=null,h.starsFill=null,h.elementBanner=null,h.levelTitle=null,h.nextSrc=null,h.heartsPercentage=2,h.starPercentage=2,h.retryUpdateHearts=!1,h.playerName=null,h.levelText=null,h.ready=!0,h.player=null,h.level=0,h.totalHearts=0,h.currentHearts=0,h.currentStars=0,h.starsToLevel=0,h.displayCurrentHearts=0,h.displayCurrentTotalHearts=0,h.x=n,h.y=o,h.baseX=n,h.reverseHearts=s,h.hideStars=h.reverseHearts;return h.barMask=l.DrawUtil.createBox(h.game,h.reverseHearts?e.WIDTH-426:138,30,288,96,0,1,h),h.heartsBase=h.game.prodigy.create.sprite(0,0,"atlas-19","user-bar-base"),h.heartsBase.x=h.reverseHearts?e.WIDTH-138:138,h.heartsBase.y=40,h.heartsBase.scale.x=h.reverseHearts?-1:1,h.add(h.heartsBase),h.heartsIcon=h.game.prodigy.create.sprite(h.reverseHearts?-8:e.WIDTH-41,h.heartsBase.y,"atlas-19","user-bar-heart"),h.heartsIcon.anchor.setTo(.5,.5),h.heartsIcon.x+=h.heartsIcon.width>>1,h.heartsIcon.y+=h.heartsIcon.height>>1,h.add(h.heartsIcon),h.heartsFill=h.game.prodigy.create.sprite(h.heartsBase.x,h.heartsBase.y+2,"atlas-19","user-bar-fill-heart"),h.heartsFill.scale.x=h.reverseHearts?-1:1,h.heartsFill.mask=h.barMask,h.add(h.heartsFill),h.heartsBarText=h.game.prodigy.create.font(h,h.reverseHearts?32:107,h.heartsBase.y+8,null,{size:2,width:328,align:"center",fontID:12}),h.heartsBarText.setText(""),h.starsBase=h.game.prodigy.create.sprite(0,0,"atlas-19","user-bar-base"),h.starsBase.x=h.heartsBase.x+(h.reverseHearts?e.STAR_SHIFT:-e.STAR_SHIFT),h.starsBase.y=80,h.starsBase.scale.x=h.reverseHearts?-1:1,h.starsBase.visible=!h.hideStars,h.add(h.starsBase),h.starsIcon=h.game.prodigy.create.sprite(h.reverseHearts?e.STAR_SHIFT:h.heartsIcon.x-e.STAR_SHIFT,h.starsBase.y,"atlas-19","user-bar-star"),h.starsIcon.anchor.setTo(.5,.5),h.starsIcon.y+=h.starsIcon.height>>1,h.starsIcon.visible=!h.hideStars,h.add(h.starsIcon),h.starsFill=h.game.prodigy.create.sprite(h.starsBase.x,h.starsBase.y+2,"atlas-19","user-bar-fill-star"),h.starsFill.mask=h.barMask,h.starsFill.scale.x=h.reverseHearts?-1:1,h.starsFill.visible=!h.hideStars,h.add(h.starsFill),h.elementBanner=new c.ElementBanner(i,h,0,0,r),h.elementBanner.x=h.reverseHearts?e.WIDTH-h.elementBanner.width:0,h.add(h.elementBanner),h.playerName=h.game.prodigy.create.font(h,0,5,"",{size:20}),h.levelTitle=h.game.prodigy.create.sprite(h.elementBanner.x+30,7,"atlas-19","user-bar-level"),h.add(h.levelTitle),h.levelText=h.game.prodigy.create.font(h,h.elementBanner.x+7,39,null,{size:1,width:126,align:"center",fontID:12,mono:44}),h.setSource(r),h}return n(e,t),e.prototype.moveOut=function(){this.game.add.tween(this).to({x:this.reverseHearts?1300:-e.WIDTH},700,Phaser.Easing.Quadratic.In,!0)},e.prototype.setSource=function(t){h.Util.isValid(t)&&(this.nextSrc!==t?(this.nextSrc=t,this.updateData(),this.x!==this.baseX&&(this.game.tweens.removeFrom(this),this.x=this.baseX,this.y=-300,this.game.add.tween(this).to({y:0,x:this.baseX},1200,Phaser.Easing.Quadratic.Out,!0))):this.x!==this.baseX&&(this.game.tweens.removeFrom(this),this.moveIn()))},e.prototype.moveIn=function(){this.game.add.tween(this).to({x:this.baseX},2100,Phaser.Easing.Quadratic.In,!0)},e.prototype.updateData=function(){this.player=this.nextSrc,this.elementBanner.setSource(this.player),this.playerName.setText(this.player.getName()),this.playerName.x=this.reverseHearts?e.WIDTH-143-this.playerName.width:143,this.playerName.y=5,this.level=this.player.getLevel(),this.totalHearts=this.player.getMaxHearts(),this.currentHearts=this.player.getCurrentHearts(),this.currentStars=this.player.getStars(),this.starsToLevel=this.player.getStarsToLevel(),this.levelText.setText(this.level.toString()),this.displayCurrentHearts=0,this.displayCurrentTotalHearts=0,this.heartsPercentage=2,this.starPercentage=2,this.updateHeartsBarText(!1),this.updateHeartsBar(!1),this.updateStarsBar(!1)},e.prototype.updateHeartsBar=function(t){if(h.Util.isValid(this.player)&&this.player.hasHeartsEventInQueue())return!0;var e=Math.round(this.currentHearts/this.totalHearts*100)/100;if(h.Util.isValid(this.player.modifiers)&&this.player.modifiers.barrier?(this.heartsFill.frameName="user-bar-fill-barrier",this.heartsIcon.frameName="user-bar-shield"):(this.heartsFill.frameName="user-bar-fill-heart",this.heartsIcon.frameName="user-bar-heart"),t&&(this.currentHearts>this.displayCurrentHearts?this.bumpHearts():this.bumpDownHearts()),e!==this.heartsPercentage){this.heartsPercentage=e;var i=this.heartsBase.x+(this.reverseHearts?Math.round(278*(1-this.heartsPercentage)):-Math.round(278*(1-this.heartsPercentage)));t?this.game.add.tween(this.heartsFill).to({x:i},1e3,Phaser.Easing.Quadratic.Out,!0):this.heartsFill.x=i}return!1},e.prototype.updateHeartsBarText=function(t){if(!h.Util.isValid(this.player)||!this.player.hasHeartsEventInQueue()){if(this.displayCurrentHearts!==this.currentHearts||0===this.heartsBarText.text.length){t||(this.displayCurrentHearts=this.currentHearts);var e=Math.round(.05*Math.abs(this.displayCurrentHearts-this.currentHearts));e<1&&(e=1),this.displayCurrentHearts+=this.displayCurrentHearts<this.currentHearts?e:-e,this.heartsBarText.setText(Math.round(this.displayCurrentHearts)+"/"+this.totalHearts)}this.displayCurrentTotalHearts!==this.totalHearts&&(this.displayCurrentTotalHearts=this.totalHearts,this.heartsBarText.setText(Math.round(this.displayCurrentHearts)+"/"+this.totalHearts))}},e.prototype.updateStarsBar=function(t){var e=this,i=s.Creature.starsToLevel(this.level>0?this.level-1:0);this.currentStars<i&&(this.currentStars=i);var a=Math.round((this.currentStars-i)/(this.starsToLevel+(this.currentStars-i))*100)/100;if(this.level>=100&&(a=1),a!==this.starPercentage){var n=this.reverseHearts?this.starsBase.x+Math.round(258*(1-a)):this.starsBase.x-Math.round(258*(1-a));if(t){if(a<this.starPercentage){var o=this.game.add.tween(this.starsFill).to({x:this.starsBase.x},1e3,Phaser.Easing.Quadratic.Out,!1,700),r=this.game.add.tween(this.starsFill).to({alpha:0},100,Phaser.Easing.Linear.None),l=this.game.add.tween(this.starsFill).to({x:n},1e3,Phaser.Easing.Quadratic.Out);r.onComplete.add(function(){e.starsFill.alpha=1,e.starsFill.x=e.starsBase.x+(e.reverseHearts?278:-278)},this),o.chain(r),r.chain(l),o.start()}else this.game.add.tween(this.starsFill).to({x:n},1e3,Phaser.Easing.Quadratic.Out,!0,700);this.bumpStars()}else this.starsFill.x=n;this.starPercentage=a}},e.prototype.bumpStars=function(){this.game.add.tween(this.starsIcon.scale).to({y:1.4,x:1.4},220,Phaser.Easing.Quadratic.Out,!0,800,2,!0)},e.prototype.bumpHearts=function(){this.game.add.tween(this.heartsIcon.scale).to({y:1.4,x:1.4},250,Phaser.Easing.Quadratic.Out,!0,400,5,!0)},e.prototype.bumpDownHearts=function(){var t=this.heartsIcon;this.game.add.tween(t.scale).to({y:.9,x:.9},700,Phaser.Easing.Quadratic.Out,!0).onComplete.add(function(){t.scale.setTo(1,1)},t)},e.prototype.updateLevelText=function(){this.levelText.setText(this.level.toString())},e.prototype.updateLevel=function(t){h.Util.isValid(t)?(this.game.add.tween(this.levelText).to({y:-100},500,Phaser.Easing.Quadratic.Out,!0,0,0,!0),this.game.time.events.add(500,this.updateLevelText,this)):this.updateLevelText()},e.prototype.animateMultipleLevels=function(t,e,i){for(var a=this,n=t,o=[],l=this.game.state.states.Battle.teams[0].current,c=function(t){t<o.length?(t<o.length-1&&o[t].onComplete.add(function(){a.levelText.setText((++n).toString()),a.game.broadcaster.broadcast(r.ECreatureEvents.LevelUpAnimation,l,[!1,!0])}),o[t].onComplete.add(c.bind(a,t+1)),o[t].start()):h.Util.isValid(i)&&i()},p=t;p<=e;p++){var u=null;if(p===e){var d=s.Creature.starsToLevel(e-1),g=s.Creature.starsToLevel(e),y=(this.currentStars-d)/(g-d);e>=100&&(y=1),u=this.game.add.tween(this.starsFill).to({x:this.starsBase.x-278*(1-y)},500,Phaser.Easing.Quadratic.Out)}else(u=this.game.add.tween(this.starsFill).to({x:this.starsBase.x},500,Phaser.Easing.Quadratic.Out).to({alpha:0},200,Phaser.Easing.Linear.None)).onComplete.add(function(){a.starsFill.x=a.starsBase.x-278,a.starsFill.alpha=1},this);o.push(u)}c.bind(this,0)()},e.prototype.update=function(){var e=this;if(t.prototype.update.call(this),h.Util.isValid(this.player)&&h.Util.isValid(this.ready)&&(this.updateHeartsBarText(!0),this.game.prodigy.updateCount%15==0)){var i=this.player.getMaxHearts(),a=this.player.getCurrentHearts(),n=this.player.getStars(),o=this.player.getStarsToLevel(),r=this.player.getLevel(),s=this.player.getName();if(r!==this.level)r-this.level>1?(this.ready=null,setTimeout(this.animateMultipleLevels.bind(this,this.level,r,function(){e.level=r,e.ready=!0,e.updateStarsBar(!1)}),1e3)):(this.level=r,this.starPercentage=1,this.game.time.events.add(3e3,this.updateLevel.bind(this,!0),this));(i!==this.totalHearts||this.retryUpdateHearts)&&(this.totalHearts=i,this.currentHearts=a,this.retryUpdateHearts=this.updateHeartsBar(!0)),(a!==this.currentHearts||this.retryUpdateHearts)&&(this.currentHearts=a,this.retryUpdateHearts=this.updateHeartsBar(!0)),this.starsToLevel===o&&this.currentStars===n||(this.currentStars=n,this.starsToLevel=o,this.updateStarsBar(!0)),this.playerName.text!==s&&this.playerName.setText(s)}},e.STAR_SHIFT=20,e.WIDTH=460,e}(o.Element);e.Hearts=p},function(t,e,i){var a;
/*!
* jQuery JavaScript Library v3.3.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2018-01-20T17:24Z
*/
/*!
* jQuery JavaScript Library v3.3.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2018-01-20T17:24Z
*/
!function(e,i){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,function(i,n){"use strict";var o=[],r=i.document,s=Object.getPrototypeOf,l=o.slice,h=o.concat,c=o.push,p=o.indexOf,u={},d=u.toString,g=u.hasOwnProperty,y=g.toString,f=y.call(Object),m={},_=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},v=function(t){return null!=t&&t===t.window},E={type:!0,src:!0,noModule:!0};function b(t,e,i){var a,n=(e=e||r).createElement("script");if(n.text=t,i)for(a in E)i[a]&&(n[a]=i[a]);e.head.appendChild(n).parentNode.removeChild(n)}function O(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[d.call(t)]||"object":typeof t}var T=function(t,e){return new T.fn.init(t,e)},A=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function I(t){var e=!!t&&"length"in t&&t.length,i=O(t);return!_(t)&&!v(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}T.fn=T.prototype={jquery:"3.3.1",constructor:T,length:0,toArray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var t,e,i,a,n,o,r=arguments[0]||{},s=1,l=arguments.length,h=!1;for("boolean"==typeof r&&(h=r,r=arguments[s]||{},s++),"object"==typeof r||_(r)||(r={}),s===l&&(r=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=r[e],r!==(a=t[e])&&(h&&a&&(T.isPlainObject(a)||(n=Array.isArray(a)))?(n?(n=!1,o=i&&Array.isArray(i)?i:[]):o=i&&T.isPlainObject(i)?i:{},r[e]=T.extend(h,o,a)):void 0!==a&&(r[e]=a));return r},T.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==d.call(t))&&(!(e=s(t))||"function"==typeof(i=g.call(e,"constructor")&&e.constructor)&&y.call(i)===f)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){b(t)},each:function(t,e){var i,a=0;if(I(t))for(i=t.length;a<i&&!1!==e.call(t[a],a,t[a]);a++);else for(a in t)if(!1===e.call(t[a],a,t[a]))break;return t},trim:function(t){return null==t?"":(t+"").replace(A,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(I(Object(t))?T.merge(i,"string"==typeof t?[t]:t):c.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:p.call(e,t,i)},merge:function(t,e){for(var i=+e.length,a=0,n=t.length;a<i;a++)t[n++]=e[a];return t.length=n,t},grep:function(t,e,i){for(var a=[],n=0,o=t.length,r=!i;n<o;n++)!e(t[n],n)!==r&&a.push(t[n]);return a},map:function(t,e,i){var a,n,o=0,r=[];if(I(t))for(a=t.length;o<a;o++)null!=(n=e(t[o],o,i))&&r.push(n);else for(o in t)null!=(n=e(t[o],o,i))&&r.push(n);return h.apply([],r)},guid:1,support:m}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){u["[object "+e+"]"]=e.toLowerCase()});var w=
/*!
* Sizzle CSS Selector Engine v2.3.3
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-08-08
*/
function(t){var e,i,a,n,o,r,s,l,h,c,p,u,d,g,y,f,m,_,v,E="sizzle"+1*new Date,b=t.document,O=0,T=0,A=rt(),I=rt(),w=rt(),C=function(t,e){return t===e&&(p=!0),0},S={}.hasOwnProperty,P=[],D=P.pop,L=P.push,x=P.push,M=P.slice,N=function(t,e){for(var i=0,a=t.length;i<a;i++)if(t[i]===e)return i;return-1},U="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",k="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",B="\\["+k+"*("+R+")(?:"+k+"*([*^$|!~]?=)"+k+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+k+"*\\]",G=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",V=new RegExp(k+"+","g"),H=new RegExp("^"+k+"+|((?:^|[^\\\\])(?:\\\\.)*)"+k+"+$","g"),F=new RegExp("^"+k+"*,"+k+"*"),j=new RegExp("^"+k+"*([>+~]|"+k+")"+k+"*"),z=new RegExp("="+k+"*([^\\]'\"]*?)"+k+"*\\]","g"),W=new RegExp(G),K=new RegExp("^"+R+"$"),Y={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+k+"*(even|odd|(([+-]|)(\\d*)n|)"+k+"*(?:([+-]|)"+k+"*(\\d+)|))"+k+"*\\)|)","i"),bool:new RegExp("^(?:"+U+")$","i"),needsContext:new RegExp("^"+k+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+k+"*((?:-\\d)?\\d*)"+k+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,$=new RegExp("\\\\([\\da-f]{1,6}"+k+"?|("+k+")|.)","ig"),tt=function(t,e,i){var a="0x"+e-65536;return a!=a||i?e:a<0?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,1023&a|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},at=function(){u()},nt=_t(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{x.apply(P=M.call(b.childNodes),b.childNodes),P[b.childNodes.length].nodeType}catch(t){x={apply:P.length?function(t,e){L.apply(t,M.call(e))}:function(t,e){for(var i=t.length,a=0;t[i++]=e[a++];);t.length=i-1}}}function ot(t,e,a,n){var o,s,h,c,p,g,m,_=e&&e.ownerDocument,O=e?e.nodeType:9;if(a=a||[],"string"!=typeof t||!t||1!==O&&9!==O&&11!==O)return a;if(!n&&((e?e.ownerDocument||e:b)!==d&&u(e),e=e||d,y)){if(11!==O&&(p=Z.exec(t)))if(o=p[1]){if(9===O){if(!(h=e.getElementById(o)))return a;if(h.id===o)return a.push(h),a}else if(_&&(h=_.getElementById(o))&&v(e,h)&&h.id===o)return a.push(h),a}else{if(p[2])return x.apply(a,e.getElementsByTagName(t)),a;if((o=p[3])&&i.getElementsByClassName&&e.getElementsByClassName)return x.apply(a,e.getElementsByClassName(o)),a}if(i.qsa&&!w[t+" "]&&(!f||!f.test(t))){if(1!==O)_=e,m=t;else if("object"!==e.nodeName.toLowerCase()){for((c=e.getAttribute("id"))?c=c.replace(et,it):e.setAttribute("id",c=E),s=(g=r(t)).length;s--;)g[s]="#"+c+" "+mt(g[s]);m=g.join(","),_=J.test(t)&&yt(e.parentNode)||e}if(m)try{return x.apply(a,_.querySelectorAll(m)),a}catch(t){}finally{c===E&&e.removeAttribute("id")}}}return l(t.replace(H,"$1"),e,a,n)}function rt(){var t=[];return function e(i,n){return t.push(i+" ")>a.cacheLength&&delete e[t.shift()],e[i+" "]=n}}function st(t){return t[E]=!0,t}function lt(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){for(var i=t.split("|"),n=i.length;n--;)a.attrHandle[i[n]]=e}function ct(t,e){var i=e&&t,a=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(a)return a;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ut(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function dt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&nt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return st(function(e){return e=+e,st(function(i,a){for(var n,o=t([],i.length,e),r=o.length;r--;)i[n=o[r]]&&(i[n]=!(a[n]=i[n]))})})}function yt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},u=ot.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:b;return r!==d&&9===r.nodeType&&r.documentElement?(g=(d=r).documentElement,y=!o(d),b!==d&&(n=d.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",at,!1):n.attachEvent&&n.attachEvent("onunload",at)),i.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),i.getElementsByTagName=lt(function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length}),i.getElementsByClassName=X.test(d.getElementsByClassName),i.getById=lt(function(t){return g.appendChild(t).id=E,!d.getElementsByName||!d.getElementsByName(E).length}),i.getById?(a.filter.ID=function(t){var e=t.replace($,tt);return function(t){return t.getAttribute("id")===e}},a.find.ID=function(t,e){if(void 0!==e.getElementById&&y){var i=e.getElementById(t);return i?[i]:[]}}):(a.filter.ID=function(t){var e=t.replace($,tt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},a.find.ID=function(t,e){if(void 0!==e.getElementById&&y){var i,a,n,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(n=e.getElementsByName(t),a=0;o=n[a++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),a.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,a=[],n=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[n++];)1===i.nodeType&&a.push(i);return a}return o},a.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&y)return e.getElementsByClassName(t)},m=[],f=[],(i.qsa=X.test(d.querySelectorAll))&&(lt(function(t){g.appendChild(t).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+k+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||f.push("\\["+k+"*(?:value|"+U+")"),t.querySelectorAll("[id~="+E+"-]").length||f.push("~="),t.querySelectorAll(":checked").length||f.push(":checked"),t.querySelectorAll("a#"+E+"+*").length||f.push(".#.+[+~]")}),lt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&f.push("name"+k+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),g.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),f.push(",.*:")})),(i.matchesSelector=X.test(_=g.matches||g.webkitMatchesSelector||g.mozMatchesSelector||g.oMatchesSelector||g.msMatchesSelector))&&lt(function(t){i.disconnectedMatch=_.call(t,"*"),_.call(t,"[s!='']:x"),m.push("!=",G)}),f=f.length&&new RegExp(f.join("|")),m=m.length&&new RegExp(m.join("|")),e=X.test(g.compareDocumentPosition),v=e||X.test(g.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,a=e&&e.parentNode;return t===a||!(!a||1!==a.nodeType||!(i.contains?i.contains(a):t.compareDocumentPosition&&16&t.compareDocumentPosition(a)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},C=e?function(t,e){if(t===e)return p=!0,0;var a=!t.compareDocumentPosition-!e.compareDocumentPosition;return a||(1&(a=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===a?t===d||t.ownerDocument===b&&v(b,t)?-1:e===d||e.ownerDocument===b&&v(b,e)?1:c?N(c,t)-N(c,e):0:4&a?-1:1)}:function(t,e){if(t===e)return p=!0,0;var i,a=0,n=t.parentNode,o=e.parentNode,r=[t],s=[e];if(!n||!o)return t===d?-1:e===d?1:n?-1:o?1:c?N(c,t)-N(c,e):0;if(n===o)return ct(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)s.unshift(i);for(;r[a]===s[a];)a++;return a?ct(r[a],s[a]):r[a]===b?-1:s[a]===b?1:0},d):d},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==d&&u(t),e=e.replace(z,"='$1']"),i.matchesSelector&&y&&!w[e+" "]&&(!m||!m.test(e))&&(!f||!f.test(e)))try{var a=_.call(t,e);if(a||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return a}catch(t){}return ot(e,d,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==d&&u(t),v(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==d&&u(t);var n=a.attrHandle[e.toLowerCase()],o=n&&S.call(a.attrHandle,e.toLowerCase())?n(t,e,!y):void 0;return void 0!==o?o:i.attributes||!y?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.escape=function(t){return(t+"").replace(et,it)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,a=[],n=0,o=0;if(p=!i.detectDuplicates,c=!i.sortStable&&t.slice(0),t.sort(C),p){for(;e=t[o++];)e===t[o]&&(n=a.push(o));for(;n--;)t.splice(a[n],1)}return c=null,t},n=ot.getText=function(t){var e,i="",a=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=n(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[a++];)i+=n(e);return i},(a=ot.selectors={cacheLength:50,createPseudo:st,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace($,tt),t[3]=(t[3]||t[4]||t[5]||"").replace($,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&W.test(i)&&(e=r(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace($,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=A[t+" "];return e||(e=new RegExp("(^|"+k+")"+t+"("+k+"|$)"))&&A(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(a){var n=ot.attr(a,t);return null==n?"!="===e:!e||(n+="","="===e?n===i:"!="===e?n!==i:"^="===e?i&&0===n.indexOf(i):"*="===e?i&&n.indexOf(i)>-1:"$="===e?i&&n.slice(-i.length)===i:"~="===e?(" "+n.replace(V," ")+" ").indexOf(i)>-1:"|="===e&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,a,n){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),s="of-type"===e;return 1===a&&0===n?function(t){return!!t.parentNode}:function(e,i,l){var h,c,p,u,d,g,y=o!==r?"nextSibling":"previousSibling",f=e.parentNode,m=s&&e.nodeName.toLowerCase(),_=!l&&!s,v=!1;if(f){if(o){for(;y;){for(u=e;u=u[y];)if(s?u.nodeName.toLowerCase()===m:1===u.nodeType)return!1;g=y="only"===t&&!g&&"nextSibling"}return!0}if(g=[r?f.firstChild:f.lastChild],r&&_){for(v=(d=(h=(c=(p=(u=f)[E]||(u[E]={}))[u.uniqueID]||(p[u.uniqueID]={}))[t]||[])[0]===O&&h[1])&&h[2],u=d&&f.childNodes[d];u=++d&&u&&u[y]||(v=d=0)||g.pop();)if(1===u.nodeType&&++v&&u===e){c[t]=[O,d,v];break}}else if(_&&(v=d=(h=(c=(p=(u=e)[E]||(u[E]={}))[u.uniqueID]||(p[u.uniqueID]={}))[t]||[])[0]===O&&h[1]),!1===v)for(;(u=++d&&u&&u[y]||(v=d=0)||g.pop())&&((s?u.nodeName.toLowerCase()!==m:1!==u.nodeType)||!++v||(_&&((c=(p=u[E]||(u[E]={}))[u.uniqueID]||(p[u.uniqueID]={}))[t]=[O,v]),u!==e)););return(v-=n)===a||v%a==0&&v/a>=0}}},PSEUDO:function(t,e){var i,n=a.pseudos[t]||a.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return n[E]?n(e):n.length>1?(i=[t,t,"",e],a.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,i){for(var a,o=n(t,e),r=o.length;r--;)t[a=N(t,o[r])]=!(i[a]=o[r])}):function(t){return n(t,0,i)}):n}},pseudos:{not:st(function(t){var e=[],i=[],a=s(t.replace(H,"$1"));return a[E]?st(function(t,e,i,n){for(var o,r=a(t,null,n,[]),s=t.length;s--;)(o=r[s])&&(t[s]=!(e[s]=o))}):function(t,n,o){return e[0]=t,a(e,null,o,i),e[0]=null,!i.pop()}}),has:st(function(t){return function(e){return ot(t,e).length>0}}),contains:st(function(t){return t=t.replace($,tt),function(e){return(e.textContent||e.innerText||n(e)).indexOf(t)>-1}}),lang:st(function(t){return K.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace($,tt).toLowerCase(),function(e){var i;do{if(i=y?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===g},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!a.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt(function(){return[0]}),last:gt(function(t,e){return[e-1]}),eq:gt(function(t,e,i){return[i<0?i+e:i]}),even:gt(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:gt(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:gt(function(t,e,i){for(var a=i<0?i+e:i;--a>=0;)t.push(a);return t}),gt:gt(function(t,e,i){for(var a=i<0?i+e:i;++a<e;)t.push(a);return t})}}).pseudos.nth=a.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})a.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})a.pseudos[e]=ut(e);function ft(){}function mt(t){for(var e=0,i=t.length,a="";e<i;e++)a+=t[e].value;return a}function _t(t,e,i){var a=e.dir,n=e.next,o=n||a,r=i&&"parentNode"===o,s=T++;return e.first?function(e,i,n){for(;e=e[a];)if(1===e.nodeType||r)return t(e,i,n);return!1}:function(e,i,l){var h,c,p,u=[O,s];if(l){for(;e=e[a];)if((1===e.nodeType||r)&&t(e,i,l))return!0}else for(;e=e[a];)if(1===e.nodeType||r)if(c=(p=e[E]||(e[E]={}))[e.uniqueID]||(p[e.uniqueID]={}),n&&n===e.nodeName.toLowerCase())e=e[a]||e;else{if((h=c[o])&&h[0]===O&&h[1]===s)return u[2]=h[2];if(c[o]=u,u[2]=t(e,i,l))return!0}return!1}}function vt(t){return t.length>1?function(e,i,a){for(var n=t.length;n--;)if(!t[n](e,i,a))return!1;return!0}:t[0]}function Et(t,e,i,a,n){for(var o,r=[],s=0,l=t.length,h=null!=e;s<l;s++)(o=t[s])&&(i&&!i(o,a,n)||(r.push(o),h&&e.push(s)));return r}function bt(t,e,i,a,n,o){return a&&!a[E]&&(a=bt(a)),n&&!n[E]&&(n=bt(n,o)),st(function(o,r,s,l){var h,c,p,u=[],d=[],g=r.length,y=o||function(t,e,i){for(var a=0,n=e.length;a<n;a++)ot(t,e[a],i);return i}(e||"*",s.nodeType?[s]:s,[]),f=!t||!o&&e?y:Et(y,u,t,s,l),m=i?n||(o?t:g||a)?[]:r:f;if(i&&i(f,m,s,l),a)for(h=Et(m,d),a(h,[],s,l),c=h.length;c--;)(p=h[c])&&(m[d[c]]=!(f[d[c]]=p));if(o){if(n||t){if(n){for(h=[],c=m.length;c--;)(p=m[c])&&h.push(f[c]=p);n(null,m=[],h,l)}for(c=m.length;c--;)(p=m[c])&&(h=n?N(o,p):u[c])>-1&&(o[h]=!(r[h]=p))}}else m=Et(m===r?m.splice(g,m.length):m),n?n(null,r,m,l):x.apply(r,m)})}function Ot(t){for(var e,i,n,o=t.length,r=a.relative[t[0].type],s=r||a.relative[" "],l=r?1:0,c=_t(function(t){return t===e},s,!0),p=_t(function(t){return N(e,t)>-1},s,!0),u=[function(t,i,a){var n=!r&&(a||i!==h)||((e=i).nodeType?c(t,i,a):p(t,i,a));return e=null,n}];l<o;l++)if(i=a.relative[t[l].type])u=[_t(vt(u),i)];else{if((i=a.filter[t[l].type].apply(null,t[l].matches))[E]){for(n=++l;n<o&&!a.relative[t[n].type];n++);return bt(l>1&&vt(u),l>1&&mt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(H,"$1"),i,l<n&&Ot(t.slice(l,n)),n<o&&Ot(t=t.slice(n)),n<o&&mt(t))}u.push(i)}return vt(u)}return ft.prototype=a.filters=a.pseudos,a.setFilters=new ft,r=ot.tokenize=function(t,e){var i,n,o,r,s,l,h,c=I[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],h=a.preFilter;s;){for(r in i&&!(n=F.exec(s))||(n&&(s=s.slice(n[0].length)||s),l.push(o=[])),i=!1,(n=j.exec(s))&&(i=n.shift(),o.push({value:i,type:n[0].replace(H," ")}),s=s.slice(i.length)),a.filter)!(n=Y[r].exec(s))||h[r]&&!(n=h[r](n))||(i=n.shift(),o.push({value:i,type:r,matches:n}),s=s.slice(i.length));if(!i)break}return e?s.length:s?ot.error(t):I(t,l).slice(0)},s=ot.compile=function(t,e){var i,n=[],o=[],s=w[t+" "];if(!s){for(e||(e=r(t)),i=e.length;i--;)(s=Ot(e[i]))[E]?n.push(s):o.push(s);(s=w(t,function(t,e){var i=e.length>0,n=t.length>0,o=function(o,r,s,l,c){var p,g,f,m=0,_="0",v=o&&[],E=[],b=h,T=o||n&&a.find.TAG("*",c),A=O+=null==b?1:Math.random()||.1,I=T.length;for(c&&(h=r===d||r||c);_!==I&&null!=(p=T[_]);_++){if(n&&p){for(g=0,r||p.ownerDocument===d||(u(p),s=!y);f=t[g++];)if(f(p,r||d,s)){l.push(p);break}c&&(O=A)}i&&((p=!f&&p)&&m--,o&&v.push(p))}if(m+=_,i&&_!==m){for(g=0;f=e[g++];)f(v,E,r,s);if(o){if(m>0)for(;_--;)v[_]||E[_]||(E[_]=D.call(l));E=Et(E)}x.apply(l,E),c&&!o&&E.length>0&&m+e.length>1&&ot.uniqueSort(l)}return c&&(O=A,h=b),v};return i?st(o):o}(o,n))).selector=t}return s},l=ot.select=function(t,e,i,n){var o,l,h,c,p,u="function"==typeof t&&t,d=!n&&r(t=u.selector||t);if(i=i||[],1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(h=l[0]).type&&9===e.nodeType&&y&&a.relative[l[1].type]){if(!(e=(a.find.ID(h.matches[0].replace($,tt),e)||[])[0]))return i;u&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=Y.needsContext.test(t)?0:l.length;o--&&(h=l[o],!a.relative[c=h.type]);)if((p=a.find[c])&&(n=p(h.matches[0].replace($,tt),J.test(l[0].type)&&yt(e.parentNode)||e))){if(l.splice(o,1),!(t=n.length&&mt(l)))return x.apply(i,n),i;break}}return(u||s(t,d))(n,e,!y,i,!e||J.test(t)&&yt(e.parentNode)||e),i},i.sortStable=E.split("").sort(C).join("")===E,i.detectDuplicates=!!p,u(),i.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ht("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),i.attributes&&lt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ht("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ht(U,function(t,e,i){var a;if(!i)return!0===t[e]?e.toLowerCase():(a=t.getAttributeNode(e))&&a.specified?a.value:null}),ot}(i);T.find=w,T.expr=w.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=w.uniqueSort,T.text=w.getText,T.isXMLDoc=w.isXML,T.contains=w.contains,T.escapeSelector=w.escape;var C=function(t,e,i){for(var a=[],n=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(n&&T(t).is(i))break;a.push(t)}return a},S=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},P=T.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function x(t,e,i){return _(e)?T.grep(t,function(t,a){return!!e.call(t,a,t)!==i}):e.nodeType?T.grep(t,function(t){return t===e!==i}):"string"!=typeof e?T.grep(t,function(t){return p.call(e,t)>-1!==i}):T.filter(e,t,i)}T.filter=function(t,e,i){var a=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===a.nodeType?T.find.matchesSelector(a,t)?[a]:[]:T.find.matches(t,T.grep(e,function(t){return 1===t.nodeType}))},T.fn.extend({find:function(t){var e,i,a=this.length,n=this;if("string"!=typeof t)return this.pushStack(T(t).filter(function(){for(e=0;e<a;e++)if(T.contains(n[e],this))return!0}));for(i=this.pushStack([]),e=0;e<a;e++)T.find(t,n[e],i);return a>1?T.uniqueSort(i):i},filter:function(t){return this.pushStack(x(this,t||[],!1))},not:function(t){return this.pushStack(x(this,t||[],!0))},is:function(t){return!!x(this,"string"==typeof t&&P.test(t)?T(t):t||[],!1).length}});var M,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,i){var a,n;if(!t)return this;if(i=i||M,"string"==typeof t){if(!(a="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:N.exec(t))||!a[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(a[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(a[1],e&&e.nodeType?e.ownerDocument||e:r,!0)),L.test(a[1])&&T.isPlainObject(e))for(a in e)_(this[a])?this[a](e[a]):this.attr(a,e[a]);return this}return(n=r.getElementById(a[2]))&&(this[0]=n,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):_(t)?void 0!==i.ready?i.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,M=T(r);var U=/^(?:parents|prev(?:Until|All))/,k={children:!0,contents:!0,next:!0,prev:!0};function R(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(T.contains(this,e[t]))return!0})},closest:function(t,e){var i,a=0,n=this.length,o=[],r="string"!=typeof t&&T(t);if(!P.test(t))for(;a<n;a++)for(i=this[a];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&T.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?p.call(T(t),this[0]):p.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return C(t,"parentNode")},parentsUntil:function(t,e,i){return C(t,"parentNode",i)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return C(t,"nextSibling")},prevAll:function(t){return C(t,"previousSibling")},nextUntil:function(t,e,i){return C(t,"nextSibling",i)},prevUntil:function(t,e,i){return C(t,"previousSibling",i)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return D(t,"iframe")?t.contentDocument:(D(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},function(t,e){T.fn[t]=function(i,a){var n=T.map(this,e,i);return"Until"!==t.slice(-5)&&(a=i),a&&"string"==typeof a&&(n=T.filter(a,n)),this.length>1&&(k[t]||T.uniqueSort(n),U.test(t)&&n.reverse()),this.pushStack(n)}});var B=/[^\x20\t\r\n\f]+/g;function G(t){return t}function V(t){throw t}function H(t,e,i,a){var n;try{t&&_(n=t.promise)?n.call(t).done(e).fail(i):t&&_(n=t.then)?n.call(t,e,i):e.apply(void 0,[t].slice(a))}catch(t){i.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(B)||[],function(t,i){e[i]=!0}),e}(t):T.extend({},t);var e,i,a,n,o=[],r=[],s=-1,l=function(){for(n=n||t.once,a=e=!0;r.length;s=-1)for(i=r.shift();++s<o.length;)!1===o[s].apply(i[0],i[1])&&t.stopOnFalse&&(s=o.length,i=!1);t.memory||(i=!1),e=!1,n&&(o=i?[]:"")},h={add:function(){return o&&(i&&!e&&(s=o.length-1,r.push(i)),function e(i){T.each(i,function(i,a){_(a)?t.unique&&h.has(a)||o.push(a):a&&a.length&&"string"!==O(a)&&e(a)})}(arguments),i&&!e&&l()),this},remove:function(){return T.each(arguments,function(t,e){for(var i;(i=T.inArray(e,o,i))>-1;)o.splice(i,1),i<=s&&s--}),this},has:function(t){return t?T.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return n=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return n=r=[],i||e||(o=i=""),this},locked:function(){return!!n},fireWith:function(t,i){return n||(i=[t,(i=i||[]).slice?i.slice():i],r.push(i),e||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!a}};return h},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],a="pending",n={state:function(){return a},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return n.then(null,t)},pipe:function(){var t=arguments;return T.Deferred(function(i){T.each(e,function(e,a){var n=_(t[a[4]])&&t[a[4]];o[a[1]](function(){var t=n&&n.apply(this,arguments);t&&_(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[a[0]+"With"](this,n?[t]:arguments)})}),t=null}).promise()},then:function(t,a,n){var o=0;function r(t,e,a,n){return function(){var s=this,l=arguments,h=function(){var i,h;if(!(t<o)){if((i=a.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");h=i&&("object"==typeof i||"function"==typeof i)&&i.then,_(h)?n?h.call(i,r(o,e,G,n),r(o,e,V,n)):(o++,h.call(i,r(o,e,G,n),r(o,e,V,n),r(o,e,G,e.notifyWith))):(a!==G&&(s=void 0,l=[i]),(n||e.resolveWith)(s,l))}},c=n?h:function(){try{h()}catch(i){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(i,c.stackTrace),t+1>=o&&(a!==V&&(s=void 0,l=[i]),e.rejectWith(s,l))}};t?c():(T.Deferred.getStackHook&&(c.stackTrace=T.Deferred.getStackHook()),i.setTimeout(c))}}return T.Deferred(function(i){e[0][3].add(r(0,i,_(n)?n:G,i.notifyWith)),e[1][3].add(r(0,i,_(t)?t:G)),e[2][3].add(r(0,i,_(a)?a:V))}).promise()},promise:function(t){return null!=t?T.extend(t,n):n}},o={};return T.each(e,function(t,i){var r=i[2],s=i[5];n[i[1]]=r.add,s&&r.add(function(){a=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),r.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=r.fireWith}),n.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,i=e,a=Array(i),n=l.call(arguments),o=T.Deferred(),r=function(t){return function(i){a[t]=this,n[t]=arguments.length>1?l.call(arguments):i,--e||o.resolveWith(a,n)}};if(e<=1&&(H(t,o.done(r(i)).resolve,o.reject,!e),"pending"===o.state()||_(n[i]&&n[i].then)))return o.then();for(;i--;)H(n[i],r(i),o.reject);return o.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&F.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){i.setTimeout(function(){throw t})};var j=T.Deferred();function z(){r.removeEventListener("DOMContentLoaded",z),i.removeEventListener("load",z),T.ready()}T.fn.ready=function(t){return j.then(t).catch(function(t){T.readyException(t)}),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||j.resolveWith(r,[T]))}}),T.ready.then=j.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?i.setTimeout(T.ready):(r.addEventListener("DOMContentLoaded",z),i.addEventListener("load",z));var W=function(t,e,i,a,n,o,r){var s=0,l=t.length,h=null==i;if("object"===O(i))for(s in n=!0,i)W(t,e,s,i[s],!0,o,r);else if(void 0!==a&&(n=!0,_(a)||(r=!0),h&&(r?(e.call(t,a),e=null):(h=e,e=function(t,e,i){return h.call(T(t),i)})),e))for(;s<l;s++)e(t[s],i,r?a:a.call(t[s],s,e(t[s],i)));return n?t:h?e.call(t):l?e(t[0],i):o},K=/^-ms-/,Y=/-([a-z])/g;function q(t,e){return e.toUpperCase()}function Q(t){return t.replace(K,"ms-").replace(Y,q)}var X=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Z(){this.expando=T.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(t){var e=t[this.expando];return e||(e={},X(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var a,n=this.cache(t);if("string"==typeof e)n[Q(e)]=i;else for(a in e)n[Q(a)]=e[a];return n},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Q(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,a=t[this.expando];if(void 0!==a){if(void 0!==e){i=(e=Array.isArray(e)?e.map(Q):(e=Q(e))in a?[e]:e.match(B)||[]).length;for(;i--;)delete a[e[i]]}(void 0===e||T.isEmptyObject(a))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var J=new Z,$=new Z,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function it(t,e,i){var a;if(void 0===i&&1===t.nodeType)if(a="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(a))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(i)}catch(t){}$.set(t,e,i)}else i=void 0;return i}T.extend({hasData:function(t){return $.hasData(t)||J.hasData(t)},data:function(t,e,i){return $.access(t,e,i)},removeData:function(t,e){$.remove(t,e)},_data:function(t,e,i){return J.access(t,e,i)},_removeData:function(t,e){J.remove(t,e)}}),T.fn.extend({data:function(t,e){var i,a,n,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(n=$.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(a=r[i].name).indexOf("data-")&&(a=Q(a.slice(5)),it(o,a,n[a]));J.set(o,"hasDataAttrs",!0)}return n}return"object"==typeof t?this.each(function(){$.set(this,t)}):W(this,function(e){var i;if(o&&void 0===e)return void 0!==(i=$.get(o,t))?i:void 0!==(i=it(o,t))?i:void 0;this.each(function(){$.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){$.remove(this,t)})}}),T.extend({queue:function(t,e,i){var a;if(t)return e=(e||"fx")+"queue",a=J.get(t,e),i&&(!a||Array.isArray(i)?a=J.access(t,e,T.makeArray(i)):a.push(i)),a||[]},dequeue:function(t,e){e=e||"fx";var i=T.queue(t,e),a=i.length,n=i.shift(),o=T._queueHooks(t,e);"inprogress"===n&&(n=i.shift(),a--),n&&("fx"===e&&i.unshift("inprogress"),delete o.stop,n.call(t,function(){T.dequeue(t,e)},o)),!a&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return J.get(t,i)||J.access(t,i,{empty:T.Callbacks("once memory").add(function(){J.remove(t,[e+"queue",i])})})}}),T.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?T.queue(this[0],t):void 0===e?this:this.each(function(){var i=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&T.dequeue(this,t)})},dequeue:function(t){return this.each(function(){T.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,a=1,n=T.Deferred(),o=this,r=this.length,s=function(){--a||n.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=J.get(o[r],t+"queueHooks"))&&i.empty&&(a++,i.empty.add(s));return s(),n.promise(e)}});var at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,nt=new RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],rt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&T.contains(t.ownerDocument,t)&&"none"===T.css(t,"display")},st=function(t,e,i,a){var n,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in n=i.apply(t,a||[]),e)t.style[o]=r[o];return n};function lt(t,e,i,a){var n,o,r=20,s=a?function(){return a.cur()}:function(){return T.css(t,e,"")},l=s(),h=i&&i[3]||(T.cssNumber[e]?"":"px"),c=(T.cssNumber[e]||"px"!==h&&+l)&&nt.exec(T.css(t,e));if(c&&c[3]!==h){for(l/=2,h=h||c[3],c=+l||1;r--;)T.style(t,e,c+h),(1-o)*(1-(o=s()/l||.5))<=0&&(r=0),c/=o;c*=2,T.style(t,e,c+h),i=i||[]}return i&&(c=+c||+l||0,n=i[1]?c+(i[1]+1)*i[2]:+i[2],a&&(a.unit=h,a.start=c,a.end=n)),n}var ht={};function ct(t){var e,i=t.ownerDocument,a=t.nodeName,n=ht[a];return n||(e=i.body.appendChild(i.createElement(a)),n=T.css(e,"display"),e.parentNode.removeChild(e),"none"===n&&(n="block"),ht[a]=n,n)}function pt(t,e){for(var i,a,n=[],o=0,r=t.length;o<r;o++)(a=t[o]).style&&(i=a.style.display,e?("none"===i&&(n[o]=J.get(a,"display")||null,n[o]||(a.style.display="")),""===a.style.display&&rt(a)&&(n[o]=ct(a))):"none"!==i&&(n[o]="none",J.set(a,"display",i)));for(o=0;o<r;o++)null!=n[o]&&(t[o].style.display=n[o]);return t}T.fn.extend({show:function(){return pt(this,!0)},hide:function(){return pt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){rt(this)?T(this).show():T(this).hide()})}});var ut=/^(?:checkbox|radio)$/i,dt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,gt=/^$|^module$|\/(?:java|ecma)script/i,yt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ft(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?T.merge([t],i):i}function mt(t,e){for(var i=0,a=t.length;i<a;i++)J.set(t[i],"globalEval",!e||J.get(e[i],"globalEval"))}yt.optgroup=yt.option,yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td;var _t,vt,Et=/<|&#?\w+;/;function bt(t,e,i,a,n){for(var o,r,s,l,h,c,p=e.createDocumentFragment(),u=[],d=0,g=t.length;d<g;d++)if((o=t[d])||0===o)if("object"===O(o))T.merge(u,o.nodeType?[o]:o);else if(Et.test(o)){for(r=r||p.appendChild(e.createElement("div")),s=(dt.exec(o)||["",""])[1].toLowerCase(),l=yt[s]||yt._default,r.innerHTML=l[1]+T.htmlPrefilter(o)+l[2],c=l[0];c--;)r=r.lastChild;T.merge(u,r.childNodes),(r=p.firstChild).textContent=""}else u.push(e.createTextNode(o));for(p.textContent="",d=0;o=u[d++];)if(a&&T.inArray(o,a)>-1)n&&n.push(o);else if(h=T.contains(o.ownerDocument,o),r=ft(p.appendChild(o),"script"),h&&mt(r),i)for(c=0;o=r[c++];)gt.test(o.type||"")&&i.push(o);return p}_t=r.createDocumentFragment().appendChild(r.createElement("div")),(vt=r.createElement("input")).setAttribute("type","radio"),vt.setAttribute("checked","checked"),vt.setAttribute("name","t"),_t.appendChild(vt),m.checkClone=_t.cloneNode(!0).cloneNode(!0).lastChild.checked,_t.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!_t.cloneNode(!0).lastChild.defaultValue;var Ot=r.documentElement,Tt=/^key/,At=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,It=/^([^.]*)(?:\.(.+)|)/;function wt(){return!0}function Ct(){return!1}function St(){try{return r.activeElement}catch(t){}}function Pt(t,e,i,a,n,o){var r,s;if("object"==typeof e){for(s in"string"!=typeof i&&(a=a||i,i=void 0),e)Pt(t,s,i,a,e[s],o);return t}if(null==a&&null==n?(n=i,a=i=void 0):null==n&&("string"==typeof i?(n=a,a=void 0):(n=a,a=i,i=void 0)),!1===n)n=Ct;else if(!n)return t;return 1===o&&(r=n,(n=function(t){return T().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=T.guid++)),t.each(function(){T.event.add(this,e,n,a,i)})}T.event={global:{},add:function(t,e,i,a,n){var o,r,s,l,h,c,p,u,d,g,y,f=J.get(t);if(f)for(i.handler&&(i=(o=i).handler,n=o.selector),n&&T.find.matchesSelector(Ot,n),i.guid||(i.guid=T.guid++),(l=f.events)||(l=f.events={}),(r=f.handle)||(r=f.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(B)||[""]).length;h--;)d=y=(s=It.exec(e[h])||[])[1],g=(s[2]||"").split(".").sort(),d&&(p=T.event.special[d]||{},d=(n?p.delegateType:p.bindType)||d,p=T.event.special[d]||{},c=T.extend({type:d,origType:y,data:a,handler:i,guid:i.guid,selector:n,needsContext:n&&T.expr.match.needsContext.test(n),namespace:g.join(".")},o),(u=l[d])||((u=l[d]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(t,a,g,r)||t.addEventListener&&t.addEventListener(d,r)),p.add&&(p.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),n?u.splice(u.delegateCount++,0,c):u.push(c),T.event.global[d]=!0)},remove:function(t,e,i,a,n){var o,r,s,l,h,c,p,u,d,g,y,f=J.hasData(t)&&J.get(t);if(f&&(l=f.events)){for(h=(e=(e||"").match(B)||[""]).length;h--;)if(d=y=(s=It.exec(e[h])||[])[1],g=(s[2]||"").split(".").sort(),d){for(p=T.event.special[d]||{},u=l[d=(a?p.delegateType:p.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=u.length;o--;)c=u[o],!n&&y!==c.origType||i&&i.guid!==c.guid||s&&!s.test(c.namespace)||a&&a!==c.selector&&("**"!==a||!c.selector)||(u.splice(o,1),c.selector&&u.delegateCount--,p.remove&&p.remove.call(t,c));r&&!u.length&&(p.teardown&&!1!==p.teardown.call(t,g,f.handle)||T.removeEvent(t,d,f.handle),delete l[d])}else for(d in l)T.event.remove(t,d+e[h],i,a,!0);T.isEmptyObject(l)&&J.remove(t,"handle events")}},dispatch:function(t){var e,i,a,n,o,r,s=T.event.fix(t),l=new Array(arguments.length),h=(J.get(this,"events")||{})[s.type]||[],c=T.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(r=T.event.handlers.call(this,s,h),e=0;(n=r[e++])&&!s.isPropagationStopped();)for(s.currentTarget=n.elem,i=0;(o=n.handlers[i++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(a=((T.event.special[o.origType]||{}).handle||o.handler).apply(n.elem,l))&&!1===(s.result=a)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(t,e){var i,a,n,o,r,s=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(o=[],r={},i=0;i<l;i++)void 0===r[n=(a=e[i]).selector+" "]&&(r[n]=a.needsContext?T(n,this).index(h)>-1:T.find(n,this,null,[h]).length),r[n]&&o.push(a);o.length&&s.push({elem:h,handlers:o})}return h=this,l<e.length&&s.push({elem:h,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:_(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==St()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===St()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&D(this,"input"))return this.click(),!1},_default:function(t){return D(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?wt:Ct,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Ct,isPropagationStopped:Ct,isImmediatePropagationStopped:Ct,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Tt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&At.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},T.event.addProp),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,a=t.relatedTarget,n=t.handleObj;return a&&(a===this||T.contains(this,a))||(t.type=n.origType,i=n.handler.apply(this,arguments),t.type=e),i}}}),T.fn.extend({on:function(t,e,i,a){return Pt(this,t,e,i,a)},one:function(t,e,i,a){return Pt(this,t,e,i,a,1)},off:function(t,e,i){var a,n;if(t&&t.preventDefault&&t.handleObj)return a=t.handleObj,T(t.delegateTarget).off(a.namespace?a.origType+"."+a.namespace:a.origType,a.selector,a.handler),this;if("object"==typeof t){for(n in t)this.off(n,e,t[n]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Ct),this.each(function(){T.event.remove(this,t,i,e)})}});var Dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Lt=/<script|<style|<link/i,xt=/checked\s*(?:[^=]|=\s*.checked.)/i,Mt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Nt(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Ut(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function kt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Rt(t,e){var i,a,n,o,r,s,l,h;if(1===e.nodeType){if(J.hasData(t)&&(o=J.access(t),r=J.set(e,o),h=o.events))for(n in delete r.handle,r.events={},h)for(i=0,a=h[n].length;i<a;i++)T.event.add(e,n,h[n][i]);$.hasData(t)&&(s=$.access(t),l=T.extend({},s),$.set(e,l))}}function Bt(t,e,i,a){e=h.apply([],e);var n,o,r,s,l,c,p=0,u=t.length,d=u-1,g=e[0],y=_(g);if(y||u>1&&"string"==typeof g&&!m.checkClone&&xt.test(g))return t.each(function(n){var o=t.eq(n);y&&(e[0]=g.call(this,n,o.html())),Bt(o,e,i,a)});if(u&&(o=(n=bt(e,t[0].ownerDocument,!1,t,a)).firstChild,1===n.childNodes.length&&(n=o),o||a)){for(s=(r=T.map(ft(n,"script"),Ut)).length;p<u;p++)l=n,p!==d&&(l=T.clone(l,!0,!0),s&&T.merge(r,ft(l,"script"))),i.call(t[p],l,p);if(s)for(c=r[r.length-1].ownerDocument,T.map(r,kt),p=0;p<s;p++)l=r[p],gt.test(l.type||"")&&!J.access(l,"globalEval")&&T.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&T._evalUrl(l.src):b(l.textContent.replace(Mt,""),c,l))}return t}function Gt(t,e,i){for(var a,n=e?T.filter(e,t):t,o=0;null!=(a=n[o]);o++)i||1!==a.nodeType||T.cleanData(ft(a)),a.parentNode&&(i&&T.contains(a.ownerDocument,a)&&mt(ft(a,"script")),a.parentNode.removeChild(a));return t}T.extend({htmlPrefilter:function(t){return t.replace(Dt,"<$1></$2>")},clone:function(t,e,i){var a,n,o,r,s,l,h,c=t.cloneNode(!0),p=T.contains(t.ownerDocument,t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(r=ft(c),a=0,n=(o=ft(t)).length;a<n;a++)s=o[a],l=r[a],void 0,"input"===(h=l.nodeName.toLowerCase())&&ut.test(s.type)?l.checked=s.checked:"input"!==h&&"textarea"!==h||(l.defaultValue=s.defaultValue);if(e)if(i)for(o=o||ft(t),r=r||ft(c),a=0,n=o.length;a<n;a++)Rt(o[a],r[a]);else Rt(t,c);return(r=ft(c,"script")).length>0&&mt(r,!p&&ft(t,"script")),c},cleanData:function(t){for(var e,i,a,n=T.event.special,o=0;void 0!==(i=t[o]);o++)if(X(i)){if(e=i[J.expando]){if(e.events)for(a in e.events)n[a]?T.event.remove(i,a):T.removeEvent(i,a,e.handle);i[J.expando]=void 0}i[$.expando]&&(i[$.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Gt(this,t,!0)},remove:function(t){return Gt(this,t)},text:function(t){return W(this,function(t){return void 0===t?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Bt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Nt(this,t).appendChild(t)})},prepend:function(){return Bt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Nt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Bt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Bt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(ft(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return T.clone(this,t,e)})},html:function(t){return W(this,function(t){var e=this[0]||{},i=0,a=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Lt.test(t)&&!yt[(dt.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;i<a;i++)1===(e=this[i]||{}).nodeType&&(T.cleanData(ft(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Bt(this,arguments,function(e){var i=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(ft(this)),i&&i.replaceChild(e,this))},t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){T.fn[t]=function(t){for(var i,a=[],n=T(t),o=n.length-1,r=0;r<=o;r++)i=r===o?this:this.clone(!0),T(n[r])[e](i),c.apply(a,i.get());return this.pushStack(a)}});var Vt=new RegExp("^("+at+")(?!px)[a-z%]+$","i"),Ht=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Ft=new RegExp(ot.join("|"),"i");function jt(t,e,i){var a,n,o,r,s=t.style;return(i=i||Ht(t))&&(""!==(r=i.getPropertyValue(e)||i[e])||T.contains(t.ownerDocument,t)||(r=T.style(t,e)),!m.pixelBoxStyles()&&Vt.test(r)&&Ft.test(e)&&(a=s.width,n=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=r,r=i.width,s.width=a,s.minWidth=n,s.maxWidth=o)),void 0!==r?r+"":r}function zt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){h.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ot.appendChild(h).appendChild(c);var t=i.getComputedStyle(c);a="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",s=36===e(t.right),n=36===e(t.width),c.style.position="absolute",o=36===c.offsetWidth||"absolute",Ot.removeChild(h),c=null}}function e(t){return Math.round(parseFloat(t))}var a,n,o,s,l,h=r.createElement("div"),c=r.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return t(),n},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),a},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o}}))}();var Wt=/^(none|table(?!-c[ea]).+)/,Kt=/^--/,Yt={position:"absolute",visibility:"hidden",display:"block"},qt={letterSpacing:"0",fontWeight:"400"},Qt=["Webkit","Moz","ms"],Xt=r.createElement("div").style;function Zt(t){var e=T.cssProps[t];return e||(e=T.cssProps[t]=function(t){if(t in Xt)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=Qt.length;i--;)if((t=Qt[i]+e)in Xt)return t}(t)||t),e}function Jt(t,e,i){var a=nt.exec(e);return a?Math.max(0,a[2]-(i||0))+(a[3]||"px"):e}function $t(t,e,i,a,n,o){var r="width"===e?1:0,s=0,l=0;if(i===(a?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=T.css(t,i+ot[r],!0,n)),a?("content"===i&&(l-=T.css(t,"padding"+ot[r],!0,n)),"margin"!==i&&(l-=T.css(t,"border"+ot[r]+"Width",!0,n))):(l+=T.css(t,"padding"+ot[r],!0,n),"padding"!==i?l+=T.css(t,"border"+ot[r]+"Width",!0,n):s+=T.css(t,"border"+ot[r]+"Width",!0,n));return!a&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))),l}function te(t,e,i){var a=Ht(t),n=jt(t,e,a),o="border-box"===T.css(t,"boxSizing",!1,a),r=o;if(Vt.test(n)){if(!i)return n;n="auto"}return r=r&&(m.boxSizingReliable()||n===t.style[e]),("auto"===n||!parseFloat(n)&&"inline"===T.css(t,"display",!1,a))&&(n=t["offset"+e[0].toUpperCase()+e.slice(1)],r=!0),(n=parseFloat(n)||0)+$t(t,e,i||(o?"border":"content"),r,a,n)+"px"}function ee(t,e,i,a,n){return new ee.prototype.init(t,e,i,a,n)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=jt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,a){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var n,o,r,s=Q(e),l=Kt.test(e),h=t.style;if(l||(e=Zt(s)),r=T.cssHooks[e]||T.cssHooks[s],void 0===i)return r&&"get"in r&&void 0!==(n=r.get(t,!1,a))?n:h[e];"string"===(o=typeof i)&&(n=nt.exec(i))&&n[1]&&(i=lt(t,e,n),o="number"),null!=i&&i==i&&("number"===o&&(i+=n&&n[3]||(T.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==i||0!==e.indexOf("background")||(h[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,a))||(l?h.setProperty(e,i):h[e]=i))}},css:function(t,e,i,a){var n,o,r,s=Q(e);return Kt.test(e)||(e=Zt(s)),(r=T.cssHooks[e]||T.cssHooks[s])&&"get"in r&&(n=r.get(t,!0,i)),void 0===n&&(n=jt(t,e,a)),"normal"===n&&e in qt&&(n=qt[e]),""===i||i?(o=parseFloat(n),!0===i||isFinite(o)?o||0:n):n}}),T.each(["height","width"],function(t,e){T.cssHooks[e]={get:function(t,i,a){if(i)return!Wt.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,a):st(t,Yt,function(){return te(t,e,a)})},set:function(t,i,a){var n,o=Ht(t),r="border-box"===T.css(t,"boxSizing",!1,o),s=a&&$t(t,e,a,r,o);return r&&m.scrollboxSize()===o.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-$t(t,e,"border",!1,o)-.5)),s&&(n=nt.exec(i))&&"px"!==(n[3]||"px")&&(t.style[e]=i,i=T.css(t,e)),Jt(0,i,s)}}}),T.cssHooks.marginLeft=zt(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(jt(t,"marginLeft"))||t.getBoundingClientRect().left-st(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(t,e){T.cssHooks[t+e]={expand:function(i){for(var a=0,n={},o="string"==typeof i?i.split(" "):[i];a<4;a++)n[t+ot[a]+e]=o[a]||o[a-2]||o[0];return n}},"margin"!==t&&(T.cssHooks[t+e].set=Jt)}),T.fn.extend({css:function(t,e){return W(this,function(t,e,i){var a,n,o={},r=0;if(Array.isArray(e)){for(a=Ht(t),n=e.length;r<n;r++)o[e[r]]=T.css(t,e[r],!1,a);return o}return void 0!==i?T.style(t,e,i):T.css(t,e)},t,e,arguments.length>1)}}),T.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,i,a,n,o){this.elem=t,this.prop=i,this.easing=n||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=a,this.unit=o||(T.cssNumber[i]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,i=ee.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[T.cssProps[t.prop]]&&!T.cssHooks[t.prop]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=ee.prototype.init,T.fx.step={};var ie,ae,ne=/^(?:toggle|show|hide)$/,oe=/queueHooks$/;function re(){ae&&(!1===r.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(re):i.setTimeout(re,T.fx.interval),T.fx.tick())}function se(){return i.setTimeout(function(){ie=void 0}),ie=Date.now()}function le(t,e){var i,a=0,n={height:t};for(e=e?1:0;a<4;a+=2-e)n["margin"+(i=ot[a])]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}function he(t,e,i){for(var a,n=(ce.tweeners[e]||[]).concat(ce.tweeners["*"]),o=0,r=n.length;o<r;o++)if(a=n[o].call(i,e,t))return a}function ce(t,e,i){var a,n,o=0,r=ce.prefilters.length,s=T.Deferred().always(function(){delete l.elem}),l=function(){if(n)return!1;for(var e=ie||se(),i=Math.max(0,h.startTime+h.duration-e),a=1-(i/h.duration||0),o=0,r=h.tweens.length;o<r;o++)h.tweens[o].run(a);return s.notifyWith(t,[h,a,i]),a<1&&r?i:(r||s.notifyWith(t,[h,1,0]),s.resolveWith(t,[h]),!1)},h=s.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},i),originalProperties:e,originalOptions:i,startTime:ie||se(),duration:i.duration,tweens:[],createTween:function(e,i){var a=T.Tween(t,h.opts,e,i,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(a),a},stop:function(e){var i=0,a=e?h.tweens.length:0;if(n)return this;for(n=!0;i<a;i++)h.tweens[i].run(1);return e?(s.notifyWith(t,[h,1,0]),s.resolveWith(t,[h,e])):s.rejectWith(t,[h,e]),this}}),c=h.props;for(!function(t,e){var i,a,n,o,r;for(i in t)if(n=e[a=Q(i)],o=t[i],Array.isArray(o)&&(n=o[1],o=t[i]=o[0]),i!==a&&(t[a]=o,delete t[i]),(r=T.cssHooks[a])&&"expand"in r)for(i in o=r.expand(o),delete t[a],o)i in t||(t[i]=o[i],e[i]=n);else e[a]=n}(c,h.opts.specialEasing);o<r;o++)if(a=ce.prefilters[o].call(h,t,c,h.opts))return _(a.stop)&&(T._queueHooks(h.elem,h.opts.queue).stop=a.stop.bind(a)),a;return T.map(c,he,h),_(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),T.fx.timer(T.extend(l,{elem:t,anim:h,queue:h.opts.queue})),h}T.Animation=T.extend(ce,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return lt(i.elem,t,nt.exec(e),i),i}]},tweener:function(t,e){_(t)?(e=t,t=["*"]):t=t.match(B);for(var i,a=0,n=t.length;a<n;a++)i=t[a],ce.tweeners[i]=ce.tweeners[i]||[],ce.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var a,n,o,r,s,l,h,c,p="width"in e||"height"in e,u=this,d={},g=t.style,y=t.nodeType&&rt(t),f=J.get(t,"fxshow");for(a in i.queue||(null==(r=T._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,s=r.empty.fire,r.empty.fire=function(){r.unqueued||s()}),r.unqueued++,u.always(function(){u.always(function(){r.unqueued--,T.queue(t,"fx").length||r.empty.fire()})})),e)if(n=e[a],ne.test(n)){if(delete e[a],o=o||"toggle"===n,n===(y?"hide":"show")){if("show"!==n||!f||void 0===f[a])continue;y=!0}d[a]=f&&f[a]||T.style(t,a)}if((l=!T.isEmptyObject(e))||!T.isEmptyObject(d))for(a in p&&1===t.nodeType&&(i.overflow=[g.overflow,g.overflowX,g.overflowY],null==(h=f&&f.display)&&(h=J.get(t,"display")),"none"===(c=T.css(t,"display"))&&(h?c=h:(pt([t],!0),h=t.style.display||h,c=T.css(t,"display"),pt([t]))),("inline"===c||"inline-block"===c&&null!=h)&&"none"===T.css(t,"float")&&(l||(u.done(function(){g.display=h}),null==h&&(c=g.display,h="none"===c?"":c)),g.display="inline-block")),i.overflow&&(g.overflow="hidden",u.always(function(){g.overflow=i.overflow[0],g.overflowX=i.overflow[1],g.overflowY=i.overflow[2]})),l=!1,d)l||(f?"hidden"in f&&(y=f.hidden):f=J.access(t,"fxshow",{display:h}),o&&(f.hidden=!y),y&&pt([t],!0),u.done(function(){for(a in y||pt([t]),J.remove(t,"fxshow"),d)T.style(t,a,d[a])})),l=he(y?f[a]:0,a,u),a in f||(f[a]=l.start,y&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ce.prefilters.unshift(t):ce.prefilters.push(t)}}),T.speed=function(t,e,i){var a=t&&"object"==typeof t?T.extend({},t):{complete:i||!i&&e||_(t)&&t,duration:t,easing:i&&e||e&&!_(e)&&e};return T.fx.off?a.duration=0:"number"!=typeof a.duration&&(a.duration in T.fx.speeds?a.duration=T.fx.speeds[a.duration]:a.duration=T.fx.speeds._default),null!=a.queue&&!0!==a.queue||(a.queue="fx"),a.old=a.complete,a.complete=function(){_(a.old)&&a.old.call(this),a.queue&&T.dequeue(this,a.queue)},a},T.fn.extend({fadeTo:function(t,e,i,a){return this.filter(rt).css("opacity",0).show().end().animate({opacity:e},t,i,a)},animate:function(t,e,i,a){var n=T.isEmptyObject(t),o=T.speed(e,i,a),r=function(){var e=ce(this,T.extend({},t),o);(n||J.get(this,"finish"))&&e.stop(!0)};return r.finish=r,n||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(t,e,i){var a=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,n=null!=t&&t+"queueHooks",o=T.timers,r=J.get(this);if(n)r[n]&&r[n].stop&&a(r[n]);else for(n in r)r[n]&&r[n].stop&&oe.test(n)&&a(r[n]);for(n=o.length;n--;)o[n].elem!==this||null!=t&&o[n].queue!==t||(o[n].anim.stop(i),e=!1,o.splice(n,1));!e&&i||T.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=J.get(this),a=i[t+"queue"],n=i[t+"queueHooks"],o=T.timers,r=a?a.length:0;for(i.finish=!0,T.queue(this,t,[]),n&&n.stop&&n.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)a[e]&&a[e].finish&&a[e].finish.call(this);delete i.finish})}}),T.each(["toggle","show","hide"],function(t,e){var i=T.fn[e];T.fn[e]=function(t,a,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(le(e,!0),t,a,n)}}),T.each({slideDown:le("show"),slideUp:le("hide"),slideToggle:le("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){T.fn[t]=function(t,i,a){return this.animate(e,t,i,a)}}),T.timers=[],T.fx.tick=function(){var t,e=0,i=T.timers;for(ie=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||T.fx.stop(),ie=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ae||(ae=!0,re())},T.fx.stop=function(){ae=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,a){var n=i.setTimeout(e,t);a.stop=function(){i.clearTimeout(n)}})},function(){var t=r.createElement("input"),e=r.createElement("select").appendChild(r.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=r.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var pe,ue=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return W(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){T.removeAttr(this,t)})}}),T.extend({attr:function(t,e,i){var a,n,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,e,i):(1===o&&T.isXMLDoc(t)||(n=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?pe:void 0)),void 0!==i?null===i?void T.removeAttr(t,e):n&&"set"in n&&void 0!==(a=n.set(t,i,e))?a:(t.setAttribute(e,i+""),i):n&&"get"in n&&null!==(a=n.get(t,e))?a:null==(a=T.find.attr(t,e))?void 0:a)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&D(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,a=0,n=e&&e.match(B);if(n&&1===t.nodeType)for(;i=n[a++];)t.removeAttribute(i)}}),pe={set:function(t,e,i){return!1===e?T.removeAttr(t,i):t.setAttribute(i,i),i}},T.each(T.expr.match.bool.source.match(/\w+/g),function(t,e){var i=ue[e]||T.find.attr;ue[e]=function(t,e,a){var n,o,r=e.toLowerCase();return a||(o=ue[r],ue[r]=n,n=null!=i(t,e,a)?r:null,ue[r]=o),n}});var de=/^(?:input|select|textarea|button)$/i,ge=/^(?:a|area)$/i;function ye(t){return(t.match(B)||[]).join(" ")}function fe(t){return t.getAttribute&&t.getAttribute("class")||""}function me(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(B)||[]}T.fn.extend({prop:function(t,e){return W(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[T.propFix[t]||t]})}}),T.extend({prop:function(t,e,i){var a,n,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(e=T.propFix[e]||e,n=T.propHooks[e]),void 0!==i?n&&"set"in n&&void 0!==(a=n.set(t,i,e))?a:t[e]=i:n&&"get"in n&&null!==(a=n.get(t,e))?a:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||ge.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(t){var e,i,a,n,o,r,s,l=0;if(_(t))return this.each(function(e){T(this).addClass(t.call(this,e,fe(this)))});if((e=me(t)).length)for(;i=this[l++];)if(n=fe(i),a=1===i.nodeType&&" "+ye(n)+" "){for(r=0;o=e[r++];)a.indexOf(" "+o+" ")<0&&(a+=o+" ");n!==(s=ye(a))&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,a,n,o,r,s,l=0;if(_(t))return this.each(function(e){T(this).removeClass(t.call(this,e,fe(this)))});if(!arguments.length)return this.attr("class","");if((e=me(t)).length)for(;i=this[l++];)if(n=fe(i),a=1===i.nodeType&&" "+ye(n)+" "){for(r=0;o=e[r++];)for(;a.indexOf(" "+o+" ")>-1;)a=a.replace(" "+o+" "," ");n!==(s=ye(a))&&i.setAttribute("class",s)}return this},toggleClass:function(t,e){var i=typeof t,a="string"===i||Array.isArray(t);return"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):_(t)?this.each(function(i){T(this).toggleClass(t.call(this,i,fe(this),e),e)}):this.each(function(){var e,n,o,r;if(a)for(n=0,o=T(this),r=me(t);e=r[n++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||((e=fe(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))})},hasClass:function(t){var e,i,a=0;for(e=" "+t+" ";i=this[a++];)if(1===i.nodeType&&(" "+ye(fe(i))+" ").indexOf(e)>-1)return!0;return!1}});var _e=/\r/g;T.fn.extend({val:function(t){var e,i,a,n=this[0];return arguments.length?(a=_(t),this.each(function(i){var n;1===this.nodeType&&(null==(n=a?t.call(this,i,T(this).val()):t)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=T.map(n,function(t){return null==t?"":t+""})),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,n,"value")||(this.value=n))})):n?(e=T.valHooks[n.type]||T.valHooks[n.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(n,"value"))?i:"string"==typeof(i=n.value)?i.replace(_e,""):null==i?"":i:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:ye(T.text(t))}},select:{get:function(t){var e,i,a,n=t.options,o=t.selectedIndex,r="select-one"===t.type,s=r?null:[],l=r?o+1:n.length;for(a=o<0?l:r?o:0;a<l;a++)if(((i=n[a]).selected||a===o)&&!i.disabled&&(!i.parentNode.disabled||!D(i.parentNode,"optgroup"))){if(e=T(i).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var i,a,n=t.options,o=T.makeArray(e),r=n.length;r--;)((a=n[r]).selected=T.inArray(T.valHooks.option.get(a),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},m.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),m.focusin="onfocusin"in i;var ve=/^(?:focusinfocus|focusoutblur)$/,Ee=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,a,n){var o,s,l,h,c,p,u,d,y=[a||r],f=g.call(t,"type")?t.type:t,m=g.call(t,"namespace")?t.namespace.split("."):[];if(s=d=l=a=a||r,3!==a.nodeType&&8!==a.nodeType&&!ve.test(f+T.event.triggered)&&(f.indexOf(".")>-1&&(f=(m=f.split(".")).shift(),m.sort()),c=f.indexOf(":")<0&&"on"+f,(t=t[T.expando]?t:new T.Event(f,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=a),e=null==e?[t]:T.makeArray(e,[t]),u=T.event.special[f]||{},n||!u.trigger||!1!==u.trigger.apply(a,e))){if(!n&&!u.noBubble&&!v(a)){for(h=u.delegateType||f,ve.test(h+f)||(s=s.parentNode);s;s=s.parentNode)y.push(s),l=s;l===(a.ownerDocument||r)&&y.push(l.defaultView||l.parentWindow||i)}for(o=0;(s=y[o++])&&!t.isPropagationStopped();)d=s,t.type=o>1?h:u.bindType||f,(p=(J.get(s,"events")||{})[t.type]&&J.get(s,"handle"))&&p.apply(s,e),(p=c&&s[c])&&p.apply&&X(s)&&(t.result=p.apply(s,e),!1===t.result&&t.preventDefault());return t.type=f,n||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(y.pop(),e)||!X(a)||c&&_(a[f])&&!v(a)&&((l=a[c])&&(a[c]=null),T.event.triggered=f,t.isPropagationStopped()&&d.addEventListener(f,Ee),a[f](),t.isPropagationStopped()&&d.removeEventListener(f,Ee),T.event.triggered=void 0,l&&(a[c]=l)),t.result}},simulate:function(t,e,i){var a=T.extend(new T.Event,i,{type:t,isSimulated:!0});T.event.trigger(a,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each(function(){T.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return T.event.trigger(t,e,i,!0)}}),m.focusin||T.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){T.event.simulate(e,t.target,T.event.fix(t))};T.event.special[e]={setup:function(){var a=this.ownerDocument||this,n=J.access(a,e);n||a.addEventListener(t,i,!0),J.access(a,e,(n||0)+1)},teardown:function(){var a=this.ownerDocument||this,n=J.access(a,e)-1;n?J.access(a,e,n):(a.removeEventListener(t,i,!0),J.remove(a,e))}}});var be=i.location,Oe=Date.now(),Te=/\?/;T.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+t),e};var Ae=/\[\]$/,Ie=/\r?\n/g,we=/^(?:submit|button|image|reset|file)$/i,Ce=/^(?:input|select|textarea|keygen)/i;function Se(t,e,i,a){var n;if(Array.isArray(e))T.each(e,function(e,n){i||Ae.test(t)?a(t,n):Se(t+"["+("object"==typeof n&&null!=n?e:"")+"]",n,i,a)});else if(i||"object"!==O(e))a(t,e);else for(n in e)Se(t+"["+n+"]",e[n],i,a)}T.param=function(t,e){var i,a=[],n=function(t,e){var i=_(e)?e():e;a[a.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,function(){n(this.name,this.value)});else for(i in t)Se(i,t[i],e,n);return a.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Ce.test(this.nodeName)&&!we.test(t)&&(this.checked||!ut.test(t))}).map(function(t,e){var i=T(this).val();return null==i?null:Array.isArray(i)?T.map(i,function(t){return{name:e.name,value:t.replace(Ie,"\r\n")}}):{name:e.name,value:i.replace(Ie,"\r\n")}}).get()}});var Pe=/%20/g,De=/#.*$/,Le=/([?&])_=[^&]*/,xe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Me=/^(?:GET|HEAD)$/,Ne=/^\/\//,Ue={},ke={},Re="*/".concat("*"),Be=r.createElement("a");function Ge(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var a,n=0,o=e.toLowerCase().match(B)||[];if(_(i))for(;a=o[n++];)"+"===a[0]?(a=a.slice(1)||"*",(t[a]=t[a]||[]).unshift(i)):(t[a]=t[a]||[]).push(i)}}function Ve(t,e,i,a){var n={},o=t===ke;function r(s){var l;return n[s]=!0,T.each(t[s]||[],function(t,s){var h=s(e,i,a);return"string"!=typeof h||o||n[h]?o?!(l=h):void 0:(e.dataTypes.unshift(h),r(h),!1)}),l}return r(e.dataTypes[0])||!n["*"]&&r("*")}function He(t,e){var i,a,n=T.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((n[i]?t:a||(a={}))[i]=e[i]);return a&&T.extend(!0,t,a),t}Be.href=be.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:be.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(be.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Re,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,T.ajaxSettings),e):He(T.ajaxSettings,t)},ajaxPrefilter:Ge(Ue),ajaxTransport:Ge(ke),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var a,n,o,s,l,h,c,p,u,d,g=T.ajaxSetup({},e),y=g.context||g,f=g.context&&(y.nodeType||y.jquery)?T(y):T.event,m=T.Deferred(),_=T.Callbacks("once memory"),v=g.statusCode||{},E={},b={},O="canceled",A={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=xe.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,E[t]=e),this},overrideMimeType:function(t){return null==c&&(g.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)A.always(t[A.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||O;return a&&a.abort(e),I(0,e),this}};if(m.promise(A),g.url=((t||g.url||be.href)+"").replace(Ne,be.protocol+"//"),g.type=e.method||e.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(B)||[""],null==g.crossDomain){h=r.createElement("a");try{h.href=g.url,h.href=h.href,g.crossDomain=Be.protocol+"//"+Be.host!=h.protocol+"//"+h.host}catch(t){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=T.param(g.data,g.traditional)),Ve(Ue,g,e,A),c)return A;for(u in(p=T.event&&g.global)&&0==T.active++&&T.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Me.test(g.type),n=g.url.replace(De,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Pe,"+")):(d=g.url.slice(n.length),g.data&&(g.processData||"string"==typeof g.data)&&(n+=(Te.test(n)?"&":"?")+g.data,delete g.data),!1===g.cache&&(n=n.replace(Le,"$1"),d=(Te.test(n)?"&":"?")+"_="+Oe+++d),g.url=n+d),g.ifModified&&(T.lastModified[n]&&A.setRequestHeader("If-Modified-Since",T.lastModified[n]),T.etag[n]&&A.setRequestHeader("If-None-Match",T.etag[n])),(g.data&&g.hasContent&&!1!==g.contentType||e.contentType)&&A.setRequestHeader("Content-Type",g.contentType),A.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Re+"; q=0.01":""):g.accepts["*"]),g.headers)A.setRequestHeader(u,g.headers[u]);if(g.beforeSend&&(!1===g.beforeSend.call(y,A,g)||c))return A.abort();if(O="abort",_.add(g.complete),A.done(g.success),A.fail(g.error),a=Ve(ke,g,e,A)){if(A.readyState=1,p&&f.trigger("ajaxSend",[A,g]),c)return A;g.async&&g.timeout>0&&(l=i.setTimeout(function(){A.abort("timeout")},g.timeout));try{c=!1,a.send(E,I)}catch(t){if(c)throw t;I(-1,t)}}else I(-1,"No Transport");function I(t,e,r,s){var h,u,d,E,b,O=e;c||(c=!0,l&&i.clearTimeout(l),a=void 0,o=s||"",A.readyState=t>0?4:0,h=t>=200&&t<300||304===t,r&&(E=function(t,e,i){for(var a,n,o,r,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=t.mimeType||e.getResponseHeader("Content-Type"));if(a)for(n in s)if(s[n]&&s[n].test(a)){l.unshift(n);break}if(l[0]in i)o=l[0];else{for(n in i){if(!l[0]||t.converters[n+" "+l[0]]){o=n;break}r||(r=n)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(g,A,r)),E=function(t,e,i,a){var n,o,r,s,l,h={},c=t.dataTypes.slice();if(c[1])for(r in t.converters)h[r.toLowerCase()]=t.converters[r];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&a&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=h[l+" "+o]||h["* "+o]))for(n in h)if((s=n.split(" "))[1]===o&&(r=h[l+" "+s[0]]||h["* "+s[0]])){!0===r?r=h[n]:!0!==h[n]&&(o=s[0],c.unshift(s[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(g,E,A,h),h?(g.ifModified&&((b=A.getResponseHeader("Last-Modified"))&&(T.lastModified[n]=b),(b=A.getResponseHeader("etag"))&&(T.etag[n]=b)),204===t||"HEAD"===g.type?O="nocontent":304===t?O="notmodified":(O=E.state,u=E.data,h=!(d=E.error))):(d=O,!t&&O||(O="error",t<0&&(t=0))),A.status=t,A.statusText=(e||O)+"",h?m.resolveWith(y,[u,O,A]):m.rejectWith(y,[A,O,d]),A.statusCode(v),v=void 0,p&&f.trigger(h?"ajaxSuccess":"ajaxError",[A,g,h?u:d]),_.fireWith(y,[A,O]),p&&(f.trigger("ajaxComplete",[A,g]),--T.active||T.event.trigger("ajaxStop")))}return A},getJSON:function(t,e,i){return T.get(t,e,i,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],function(t,e){T[e]=function(t,i,a,n){return _(i)&&(n=n||a,a=i,i=void 0),T.ajax(T.extend({url:t,type:e,dataType:n,data:i,success:a},T.isPlainObject(t)&&t))}}),T._evalUrl=function(t){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(_(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return _(t)?this.each(function(e){T(this).wrapInner(t.call(this,e))}):this.each(function(){var e=T(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=_(t);return this.each(function(i){T(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Fe={0:200,1223:204},je=T.ajaxSettings.xhr();m.cors=!!je&&"withCredentials"in je,m.ajax=je=!!je,T.ajaxTransport(function(t){var e,a;if(m.cors||je&&!t.crossDomain)return{send:function(n,o){var r,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)s[r]=t.xhrFields[r];for(r in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)s.setRequestHeader(r,n[r]);e=function(t){return function(){e&&(e=a=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Fe[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),a=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=a:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){e&&a()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),T.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),T.ajaxTransport("script",function(t){var e,i;if(t.crossDomain)return{send:function(a,n){e=T("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&n("error"===t.type?404:200,t.type)}),r.head.appendChild(e[0])},abort:function(){i&&i()}}});var ze,We=[],Ke=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||T.expando+"_"+Oe++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,a){var n,o,r,s=!1!==t.jsonp&&(Ke.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ke.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=_(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ke,"$1"+n):!1!==t.jsonp&&(t.url+=(Te.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return r||T.error(n+" was not called"),r[0]},t.dataTypes[0]="json",o=i[n],i[n]=function(){r=arguments},a.always(function(){void 0===o?T(i).removeProp(n):i[n]=o,t[n]&&(t.jsonpCallback=e.jsonpCallback,We.push(n)),r&&_(o)&&o(r[0]),r=o=void 0}),"script"}),m.createHTMLDocument=((ze=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ze.childNodes.length),T.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(m.createHTMLDocument?((a=(e=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,e.head.appendChild(a)):e=r),n=L.exec(t),o=!i&&[],n?[e.createElement(n[1])]:(n=bt([t],e,o),o&&o.length&&T(o).remove(),T.merge([],n.childNodes)));var a,n,o},T.fn.load=function(t,e,i){var a,n,o,r=this,s=t.indexOf(" ");return s>-1&&(a=ye(t.slice(s)),t=t.slice(0,s)),_(e)?(i=e,e=void 0):e&&"object"==typeof e&&(n="POST"),r.length>0&&T.ajax({url:t,type:n||"GET",dataType:"html",data:e}).done(function(t){o=arguments,r.html(a?T("<div>").append(T.parseHTML(t)).find(a):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(t,e,i){var a,n,o,r,s,l,h=T.css(t,"position"),c=T(t),p={};"static"===h&&(t.style.position="relative"),s=c.offset(),o=T.css(t,"top"),l=T.css(t,"left"),("absolute"===h||"fixed"===h)&&(o+l).indexOf("auto")>-1?(r=(a=c.position()).top,n=a.left):(r=parseFloat(o)||0,n=parseFloat(l)||0),_(e)&&(e=e.call(t,i,T.extend({},s))),null!=e.top&&(p.top=e.top-s.top+r),null!=e.left&&(p.left=e.left-s.left+n),"using"in e?e.using.call(t,p):c.css(p)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,i,a=this[0];return a?a.getClientRects().length?(e=a.getBoundingClientRect(),i=a.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,a=this[0],n={top:0,left:0};if("fixed"===T.css(a,"position"))e=a.getBoundingClientRect();else{for(e=this.offset(),i=a.ownerDocument,t=a.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==a&&1===t.nodeType&&((n=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),n.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-n.top-T.css(a,"marginTop",!0),left:e.left-n.left-T.css(a,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||Ot})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;T.fn[t]=function(a){return W(this,function(t,a,n){var o;if(v(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===n)return o?o[e]:t[a];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):t[a]=n},t,a,arguments.length)}}),T.each(["top","left"],function(t,e){T.cssHooks[e]=zt(m.pixelPosition,function(t,i){if(i)return i=jt(t,e),Vt.test(i)?T(t).position()[e]+"px":i})}),T.each({Height:"height",Width:"width"},function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,a){T.fn[a]=function(n,o){var r=arguments.length&&(i||"boolean"!=typeof n),s=i||(!0===n||!0===o?"margin":"border");return W(this,function(e,i,n){var o;return v(e)?0===a.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===n?T.css(e,i,s):T.style(e,i,n,s)},e,r?n:void 0,r)}})}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){T.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),T.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),T.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,a){return this.on(e,t,i,a)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),T.proxy=function(t,e){var i,a,n;if("string"==typeof e&&(i=t[e],e=t,t=i),_(t))return a=l.call(arguments,2),(n=function(){return t.apply(e||this,a.concat(l.call(arguments)))}).guid=t.guid=t.guid||T.guid++,n},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=D,T.isFunction=_,T.isWindow=v,T.camelCase=Q,T.type=O,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},void 0===(a=function(){return T}.apply(e,[]))||(t.exports=a);var Ye=i.jQuery,qe=i.$;return T.noConflict=function(t){return i.$===T&&(i.$=qe),t&&i.jQuery===T&&(i.jQuery=Ye),T},n||(i.jQuery=i.$=T),T})},function(t,e){var i=Math.floor,a=Math.random;t.exports=function(t,e){return t+i(a()*(e-t+1))}},function(t,e){var i=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return i.test(t)}},function(t,e,i){var a=i(280);t.exports=function(t){var e=new t.constructor(t.byteLength);return new a(e).set(new a(t)),e}},function(t,e,i){var a=i(274)(Object.getPrototypeOf,Object);t.exports=a},function(t,e,i){var a=i(262);t.exports=function(t,e,i){"__proto__"==e&&a?a(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}},function(t,e,i){var a=i(922),n=1,o=4;t.exports=function(t){return a(t,n|o)}},function(t,e,i){var a=i(926),n=1/0,o=1.7976931348623157e308;t.exports=function(t){return t?(t=a(t))===n||t===-n?(t<0?-1:1)*o:t==t?t:0:0===t?t:0}},function(t,e,i){var a=i(150);t.exports=function(t){var e=a(t),i=e%1;return e==e?i?e-i:e:0}},function(t,e,i){var a=i(269),n=i(929)(a);t.exports=n},function(t,e,i){var a=i(936);t.exports=function(t){return null==t?"":a(t)}},function(t,e,i){var a=i(19),n=i(68),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(t,e){if(a(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!n(t))||r.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,i){var a=i(19),n=i(154),o=i(939),r=i(153);t.exports=function(t,e){return a(t)?t:n(t,e)?[t]:o(r(t))}},function(t,e,i){var a=i(155),n=i(83);t.exports=function(t,e){for(var i=0,o=(e=a(e,t)).length;null!=t&&i<o;)t=t[n(e[i++])];return i&&i==o?t:void 0}},function(t,e,i){var a=i(103),n=i(946),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!a(t))return n(t);var e=[];for(var i in Object(t))o.call(t,i)&&"constructor"!=i&&e.push(i);return e}},function(t,e,i){(function(t){var a=i(286),n="object"==typeof e&&e&&!e.nodeType&&e,o=n&&"object"==typeof t&&t&&!t.nodeType&&t,r=o&&o.exports===n&&a.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(t){}}();t.exports=s}).call(this,i(106)(t))},function(t,e){var i=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}},function(t,e,i){var a=i(277),n=i(276),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(t){return null==t?[]:(t=Object(t),a(r(t),function(e){return o.call(t,e)}))}:n;t.exports=s},function(t,e){t.exports=function(t,e){for(var i=-1,a=e.length,n=t.length;++i<a;)t[n+i]=e[i];return t}},function(t,e,i){var a=i(957),n=i(45);t.exports=function t(e,i,o,r,s){return e===i||(null==e||null==i||!n(e)&&!n(i)?e!=e&&i!=i:a(e,i,o,r,t,s))}},function(t,e,i){var a=i(969),n=i(962),o=i(960),r=i(959),s=i(958);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var a=t[e];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=n,l.prototype.get=o,l.prototype.has=r,l.prototype.set=s,t.exports=l},function(t,e,i){var a=i(59),n=i(46),o="[object AsyncFunction]",r="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";t.exports=function(t){if(!n(t))return!1;var e=a(t);return e==r||e==s||e==o||e==l}},function(t,e,i){var a=i(60)(i(47),"Map");t.exports=a},function(t,e,i){var a=i(88),n=i(53),o=i(270),r=i(19);t.exports=function(t,e){return(r(t)?a:o)(t,n(e,3))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Actions={}},function(t,e,i){"use strict";var a=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(e,"__esModule",{value:!0});var n=i(11),o=i(169),r=i(293),s=function(){function t(){this.fsmFactories=null,this.data=null,this.variables=null,this.currentState=null,this.onComplete=new o.Signal}return Object.defineProperty(t.prototype,"OnComplete",{get:function(){return this.onComplete},enumerable:!0,configurable:!0}),t.prototype.init=function(t,e,i){this.fsmFactories=t,this.data=e,this.variables=i},t.prototype.execute=function(){this.currentState||this.executeNext()},t.prototype.executeWithData=function(t){this.currentState=t;var e=this.fsmFactories.createState(t,this.variables);e.OnComplete.addOnce(this.onStateCompleted,this),e.execute()},t.prototype.executeWithName=function(t){for(var e=0;e<this.data.States.length;e++){var i=this.data.States[e];if(i.Name===t){this.executeWithData(i);break}}},t.prototype.executeNext=function(){var t=this.data.States.indexOf(this.currentState)+1;t<this.data.States.length?this.executeWithData(this.data.States[t]):(this.currentState=null,this.OnComplete.dispatch())},t.prototype.onStateCompleted=function(){if(this.currentState.Transitions.length>0){for(var t=0;t<this.currentState.Transitions.length;t++){var e=this.currentState.Transitions[t];if(e.Conditions.length>0){for(var i=!0,a=0;a<e.Conditions.length;a++){var n=e.Conditions[a];if(!this.fsmFactories.createCondition(n,this.variables).test()){i=!1;break}}if(!i)continue}return void this.executeWithName(e.State)}this.executeNext()}else this.executeNext()},t.parseVariable=function(t,e){if(r.Utils.isDefined(t)){if("string"==typeof t){var i=t;return t.length>1&&"$"===t.charAt(0)&&(i=this.findVariable(t.substr(1),e)),i}if(t.constructor===Array){i=[];for(var a=0;a<t.length;a++)i.push(this.parseVariable(t[a],e));return i}if("object"==typeof t&&t.constructor===Object){i={};for(var n in t)i[n]=this.parseVariable(t[n],e);return i}return t}return null},t.findVariable=function(t,e){return e.hasOwnProperty(t)?e[t]:null},t=a([n.injectable()],t)}();e.StateMachine=s},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(e,"__esModule",{value:!0});var r=i(11);r.decorate(r.injectable(),Phaser.Signal);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e=o([r.injectable()],e)}(Phaser.Signal);e.Signal=s},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),r=i(186),s=i(0),l=function(t){function e(e){var i=t.call(this)||this;return i.game=e,i.resetData(),i}return n(e,t),e.prototype.startLoading=function(t){for(var e in void 0===t&&(t={}),this.resetData(),t)this.data[e]=t[e];this.game.state.start("Loading")},e.prototype.resetData=function(){this.data={title:this.game.prodigy.gameContainer.Localizer.getText("LOADING_CAPITALIZE"),time:3e3,fadeIn:!1,fadeOut:!1,callback:null,assets:[],target:"Login",save:!0}},e.prototype.create=function(){if(this.startTime=(new Date).getTime(),this.complete=!1,this.isLoaded=!1,this.element=this.game.prodigy.create.element(void 0),this.element.add(new Phaser.TileSprite(this.game,0,0,1280,720,"atlas-161","load")),this.data.time>1e3){this.game.prodigy.create.panel(this.element,160,340,24,5,"shine"),this.element.add(new Phaser.TileSprite(this.game,171,380,938,40,"atlas-161","blue-top")),this.element.add(new Phaser.TileSprite(this.game,171,420,938,40,"atlas-161","blue-mid")),this.element.add(new Phaser.TileSprite(this.game,171,460,938,40,"atlas-161","blue-top2")),this.element.add(this.game.prodigy.create.sprite(590,310,"atlas-18","award-frame"));var t=this.game.prodigy.create.font(this.element,200,400,this.game.prodigy.gameContainer.Localizer.getText(r.Hints.getRandomHint("none").textKey),{fontID:9,width:880,align:"center",size:36});t.y=Math.floor((80-t.height)/2)+400,this.game.prodigy.create.panel(this.element,440,560,10,2,"shine");var e=this.game.prodigy.create.font(this.element,440,560,this.data.title,{fontID:10,width:400,align:"center",size:20});e.y=Math.floor((80-e.height)/2)+560;var i=this.game.prodigy.create.player(this.element,this.game.prodigy.player,1,645,360);i.reload(i.walk.bind(i))}this.start()},e.prototype.start=function(){this.game.broadcaster.removeAppListener(o.ELoadingEvents.WorkerLoadComplete,this,"loading");var t=s.Util.isValid(this.data.assets)?this.data.assets:[];this.game.prodigy.load.assets(t,this.loaded.bind(this)),this.game.prodigy.network.loggedIn&&this.data.save&&(this.game.prodigy.player.saveEnabled=!0)},e.prototype.loaded=function(t,e){s.Util.isValid(this.game)&&(this.isLoaded=e)},e.prototype.update=function(){t.prototype.update.call(this,this.game),this.isLoadingComplete()&&this.completed()},e.prototype.completed=function(){this.complete=!0,s.Util.isValid(this.data.callback)&&this.data.callback(),this.game.state.states[this.data.target].fadeInSet=this.data.fadeIn,this.game.state.start(this.data.target)},e.prototype.isLoadingComplete=function(){return!this.complete&&(new Date).getTime()-this.startTime>=this.data.time&&this.isLoaded},e}(Phaser.State);e.Loading=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(16),r=function(t){function e(e,i,a,n,r){var s=t.call(this,e,i.content,n,r)||this;s.vanishTween=null,s.activeTween=null,s.updateEnabled=!0,s.inputEnabled=!0;var l=s.add(s.game.prodigy.create.sprite(0,0,"atlas-120","squeak-1"));l.anchor.setTo(.5,1),l.inputEnabled=!0,l.events.onInputDown.add(s.onClicked.bind(s,i),s);var h=new o.TweenController(l);return h.set("frameName",["squeak-1","squeak-2","squeak-3","squeak-2","squeak-1","squeak-1","squeak-1","squeak-1","squeak-1","squeak-1","squeak-2","squeak-3","squeak-2","squeak-1"],100,9999),s.vanishTween=new o.TweenController(l),s.vanishTween.set("frameName",["squeak-4","squeak-5","squeak-6","squeak-7"],100,9999),s.vanishTween.end(s.onEnd.bind(s,a)),s.activeTween=h,s.activeTween.start(),s.updateEnabled=!0,s}return n(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.updateEnabled&&this.activeTween.update()},e.prototype.onClicked=function(t){var e=this;if(this.inputEnabled){this.game.prodigy.audio.playSFX(20,"squeak",null);var i=this.game.prodigy.event.create();i.validPath(t.user,t.path,this.x+(t.user.x<this.x?-50:50),this.y+20),i.function(function(){e.activeTween=e.vanishTween,e.activeTween.start()}),i.start()}},e.prototype.onEnd=function(t){t.setState("squeak",4),this.visible=!1,this.updateEnabled=!1},e}(i(5).Element);e.Squeak=r},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(117),r=i(4),s=i(0),l=function(t){function e(e,i,a,n,o){var r=t.call(this,e,a,"",i.houses[a].entryPoint.x,i.houses[a].entryPoint.y,n,o.concat(i.assets))||this;return r.content=null,r.houseItems=[],r.player=null,r.houseData=null,r.houseTag=null,r.houseData=i.houses[a],r.houseTag=r.houseData.tag,r}return n(e,t),e.prototype.setup=function(e,i,a){return t.prototype.setup.call(this,e,i,a),this.content=i.content,this.game=e,{}},e.prototype.setOwner=function(t){this.player=t,this.zoneName="house-"+this.player.userID},e.prototype.cleanup=function(){this.houseItems=[],t.prototype.cleanup.call(this)},e.prototype.loadHouseItems=function(t){for(var e=0;e<t.length;++e){var i=t[e],a=this.game.prodigy.create.houseItem(this.content,i.ID,10*Math.round(.1*i.x),10*Math.round(.1*i.y),i.r,this);a.findComponent(o.HouseItem).canRevert=!0,this.houseItems.push(a)}},e.prototype.addHouseItem=function(t){this.houseItems.push(t)},e.prototype.removeHouseItem=function(t){var e=this.houseItems.indexOf(t);e>-1&&this.houseItems.splice(e,1)},e.prototype.canPlaceItem=function(t){var e=t.getRenderer();if(!this.isValidSpace(e.getWorld(),e.getWidth(),e.getHeight()))return!1;for(var i=0;i<this.houseItems.length;++i){var a=this.houseItems[i].findComponent(o.HouseItem);if(t!==a&&this.checkOverlap(e,a.getRenderer()))return!1}return!0},e.prototype.isValidSpace=function(t,e,i){if(!s.Util.isValid(t)||!s.Util.isValid(e)||!s.Util.isValid(i))return!1;var a=Math.floor(t.x/20),n=Math.floor(t.y/20),o=Math.floor(e/20),r=n+1,l=n+Math.floor(i/20)-1,h=Math.ceil(a+.5*o-1+(o>0?1:0)),c=Math.floor(a-.5*o-(o>0?1:0));return!(c>64||l>32)&&!(h<0||r<0)&&(1===this.screen.area[r][h]&&1===this.screen.area[r][c]||6===this.screen.area[r][h]&&6===this.screen.area[r][c])&&(1===this.screen.area[l][h]&&1===this.screen.area[l][c]||6===this.screen.area[l][h]&&6===this.screen.area[l][c])},e.prototype.checkOverlap=function(t,e){if(t.getWorld().y>e.getWorld().y)return!1;var i=t.getBounds(),a=e.getBounds();return i.x+=2,i.y+=2,i.width-=4,i.height-=4,a.x+=2,a.y+=2,a.width-=4,a.height-=4,Phaser.Rectangle.intersects(i,a)},e.prototype.getName=function(){for(var t=r.Items.getCategoryItems("dormbg"),e=0;e<t.length;e++)if(t[e].data.tag===this.houseTag)return r.Items.data.dormbg[e].data.name;return this.game.prodigy.gameContainer.Localizer.getText("MAP_HOUSE_STARTER_HOUSE")},e}(i(7).Map);e.HouseMapBase=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(17),s=i(0),l=i(113),h=function(t){function e(e,i,a,n,o){var r=t.call(this,e,i.content,{name:e.prodigy.gameContainer.Localizer.getText("NPC_NAME_HARVEY"),npc:!0},null,a,n)||this;return r.screen=i,r.sessionTalk=!1,r.hasCart=o,r.setup(),r}return n(e,t),e.prototype.setup=function(){var t=this.game.prodigy.create.element(this.sprites,0,0);if(this.harveySpine=this.game.add.spine(-5,0,"spine-2"),this.harveySpine.setAnimationByName(0,"idle",!0),t.add(this.harveySpine),this.hasCart){var e=this.game.prodigy.create.sprite(20,-110,"atlas-140","harvey-cart");t.add(e)}this.setIndicator("store"),this.setupCollisionBlock(t),this.showName(!0,this.game.prodigy.gameContainer.Localizer.getText("NPC_NAME_HARVEY")),this.nameText.y=-100},e.prototype.setIndicator=function(t){s.Util.isValid(this.indicator)||(this.indicator=this.game.prodigy.create.sprite(-5,-100,"atlas-21",t),this.indicator.anchor.setTo(.5,1),this.indicator.inputEnabled=!0,this.indicator.events.onInputDown.add(this.onClicked.bind(this)),this.add(this.indicator),this.game.add.tween(this.indicator).to({y:this.indicator.y-25},1e3,Phaser.Easing.Quadratic.InOut,!0,0,o.GameConstants.MAX_SAFE_INTEGER,!0)),this.indicator.frameName=t},e.prototype.setupCollisionBlock=function(t){var e=0;this.hasCart&&(e=80),this.collisionBlock=t.add(this.game.prodigy.create.sprite(-.5*t.width+e,-t.height,"atlas-18","empty")),this.collisionBlock.width=t.width,this.collisionBlock.height=t.height,this.collisionBlock.inputEnabled=!0,this.collisionBlock.events.onInputDown.add(this.onClicked.bind(this))},e.prototype.onClicked=function(){var t=this,e=this.game.prodigy.event.create();this.screen.data instanceof l.TitanMap&&(this.game.prodigy.breadcrumbManager.isBreadcrumbComplete(r.Breadcrumbs.BREADCRUMB_TITAN_INTRO,r.Breadcrumbs.BREADCRUMB_TITAN_HARVEY_TALKED)?this.sessionTalk||(this.sessionTalk=!0,e.text(2,"harvey"),e.text(3,"harvey"),e.text(4,"harvey")):(this.game.prodigy.breadcrumbManager.completeBreadcrumb(r.Breadcrumbs.BREADCRUMB_TITAN_INTRO,r.Breadcrumbs.BREADCRUMB_TITAN_HARVEY_TALKED),e.text(0,"harvey"),e.text(1,"harvey"))),e.function(function(){t.game.prodigy.open.store(21)}),e.start()},e.prototype.update=function(){t.prototype.update.call(this)},e}(i(14).CreatureContainer);e.Harvey=h},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(131),r=i(182),s=i(3),l=i(4),h=i(17),c=i(0),p=function(t){function e(e,i){var a=t.call(this,e,"titan",i.concat(["atlas-81","sfx-21","atlas-83","atlas-140"]))||this;return a.titanMap="",a.spineContainer=null,a.master=null,a.noot=null,a.titanSpine=null,a.loadingData.time=1,a.loadingData.fadeIn=!1,a.loadingData.fadeOut=!1,a}return n(e,t),e.prototype.setup=function(e,i,a){t.prototype.setup.call(this,e,i,a),i.user.x=250,i.user.y=400,i.user.showName(!1),this.master=new r.PuppetMaster(e,i.content,800,300),this.spineContainer=this.game.prodigy.create.element(i.content,1100,400),this.noot=i.addNPC(180,320,"atlas-81"),this.noot.float(!0),this.noot.walkSpeed=2,this.noot.visible=!0,this.game.broadcaster.addAppListener(s.ETitanEvents.GotTitans,this.gotTitanCallback.bind(this),this,"Titan"),c.Util.isValid(this.game.prodigy.titansNetworkHandler.titan)?this.gotTitanCallback(this.game.prodigy.titansNetworkHandler.titan):this.game.prodigy.titansNetworkHandler.getTitans()},e.prototype.start=function(e,i){var a=this;t.prototype.start.call(this,e,i);var n=e.prodigy.event.create();if(n.enableInput(!1),n.function(this.enterScene.bind(this,e,i)),n.delay(2e3),e.prodigy.breadcrumbManager.isBreadcrumbComplete(h.Breadcrumbs.BREADCRUMB_TITAN_INTRO,h.Breadcrumbs.BREADCRUMB_TITAN_WATCHED_INTRO)){n.enableInput(!0),n.text(13,"puppetmaster"),n.enableInput(!1),n.sound(21,"cloud");for(var o=500,r=12,s=0;s<r;s++)n.function(this.sandCloud.bind(this,e,i,1100,375,o)),n.delay(200);n.function(function(){a.enterTitan(e)}),n.delay(100),n.enableInput(!0),n.text(14,"puppetmaster"),n.enableInput(!1),n.functionCallback(this.exitMaster.bind(this,e,i,1480,-200)),n.enableInput(!0)}else{n.enableInput(!0),n.text(10,"puppetmaster"),n.enableInput(!1),n.validPath(this.noot,i.path,380,290),n.hop(this.noot,200,0,100),n.hop(this.noot,200,0,100),n.enableInput(!0),n.text(178,"noot"),n.enableInput(!1),n.enableInput(!0),n.text(11,"puppetmaster"),n.enableInput(!1),n.sound(21,"cloud");for(o=500,r=12,s=0;s<r;s++)n.function(this.sandCloud.bind(this,e,i,1100,375,o)),n.delay(200);n.function(function(){a.enterTitan(e)}),n.delay(100),n.enableInput(!0),n.text(12,"puppetmaster"),n.enableInput(!1),n.functionCallback(this.exitMaster.bind(this,e,i,1480,-200)),n.validPath(this.noot,i.path,380,320),n.enableInput(!0),n.text(179,"noot"),n.text(180,"noot"),n.text(181,"noot"),n.text(182,"noot"),n.text(183,"noot")}n.function(this.end.bind(this,e,i,!0)),n.start()},e.prototype.end=function(t){t.prodigy.breadcrumbManager.completeBreadcrumb(h.Breadcrumbs.BREADCRUMB_TITAN_INTRO,h.Breadcrumbs.BREADCRUMB_TITAN_WATCHED_INTRO),t.prodigy.world.teleport(this.titanMap)},e.prototype.sandCloud=function(t,e,i,a,n){for(var r=new Phaser.Circle(i,a,n),s=0;s<8;s++){var l=r.circumferencePoint(o(1,360),!0),h=t.prodigy.create.sprite(i+o(0,30),a+o(0,30),"atlas-140","purple-cloud");e.foreground.add(h),h.anchor.setTo(.5,.5),t.add.tween(h).to({x:l.x,y:l.y},9e3,Phaser.Easing.Circular.Out,!0,0,0,!1);var c=o(1e3,1500),p=0===o(0,2)?-1:1;t.add.tween(h).to({angle:360*p},c,Phaser.Easing.Linear.None,!0,0,c,!1),t.add.tween(h).to({alpha:0},3e3,Phaser.Easing.Cubic.In,!0,0,0,!1).onComplete.add(function(t){t.destroy()},this)}},e.prototype.enterTitan=function(t){t.add.tween(this.spineContainer).to({alpha:1},200,Phaser.Easing.Linear.None,!0,0,0,!1)},e.prototype.exitMaster=function(t,e,i,a,n){t.add.tween(this.master).to({x:i,y:a},1e3,Phaser.Easing.Linear.None).start().onComplete.add(n)},e.prototype.gotTitanCallback=function(t){var e=l.Items.getItem("titan",t.assetID).data;this.titanMap=e.zone+"-Titan",this.game.broadcaster.removeAppListener(s.ETitanEvents.GotTitans,this,"Titan"),this.titanSpine=this.game.add.spine(0,0,"default-titan-"+t.assetID),this.titanSpine.setAnimationByName(0,"idle",!0),this.spineContainer.add(this.titanSpine),this.spineContainer.alpha=0},e}(i(39).Scene);e.TitanIntro=p},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(79),r=i(166),s=i(2),l=i(76),h=i(57),c=i(3),p=i(498),u=i(72),d=i(204),g=i(74),y=i(4),f=i(13),m=i(17),_=i(226),v=i(0),E=function(t){function e(e,i,a){void 0===a&&(a=[]);var n=t.call(this,e,i.zoneName,i.atlas,a.concat(["bgm-3"]))||this;return n.showMenu=!0,n.tileSize=20,n.hideHex=!1,n.playersInfo={},n.playerList={},n.clickAreas=[],n.walkEnabled=!0,n.saveTag="",n.startX=500,n.startY=300,n}return n(e,t),e.prototype.onDebugAutoClick=function(t){if(v.Util.isValid(t)&&t.indexOf("map_")>=0){var e=t.split("_");this.listener(null,{x:parseInt(e[1]),y:parseInt(e[2])})}},e.prototype.shutdown=function(){t.prototype.shutdown.call(this);try{for(var e in this.playerList)this.playerList.hasOwnProperty(e)&&this.playerList[e].destroy();this.playerList={},this.user.destroy(),this.user=null}catch(t){}},e.prototype.create=function(e){this.walkEnabled=!0,this.clickAreas=[],this.saveTag=e,v.Util.isValid(this.saveTag)&&this.game.prodigy.player.setZone(this.saveTag),this.game.prodigy.player.saveEnabled=!0,this.path=new _.Pathfinder(this.area),this.createBackground(),this.user=this.game.prodigy.create.player(this.content,this.game.prodigy.player,1,this.startX,this.startY,!1,!1,!0),this.user.enableLocomotion(this,this.user),this.user.reload(),this.user.showName(!0),this.user.clickCallback=this.game.prodigy.open.card.bind(this.game.prodigy.open,this.game.prodigy.player),this.game.prodigy.user=this.user,this.addFollow(this.game.prodigy.player.userID,this.game.prodigy.player.equipment.data.follow),this.showMenu&&(this.menuBar=new p.Menu(this.game,this.menus),-1===this.zoneName.indexOf("scene-")&&(this.game.broadcaster.broadcast(c.ENetworkHandlerEvents.Setup,"NetworkHandlers",[]),this.game.broadcaster.broadcast(c.EMailerEvents.GetTotalMail,"ProdigyMailerButton",[]),this.game.broadcaster.broadcast(c.EFriendsListEvents.GetTotalFriendRequests,"FriendsList"))),t.prototype.create.call(this),s.GameConstants.get("GameConstants.Build.DEBUG")&&this.game.broadcaster.addAppListener(c.EDebugEvents.AutoClickScene,this.onDebugAutoClick.bind(this),this)},e.prototype.createBackground=function(){this.bg=this.game.prodigy.create.sprite(0,0,this.screenName,"bg"),this.bg.inputEnabled=!0,this.bg.events.onInputDown.add(this.listener.bind(this),this),this.background.add(this.bg)},e.prototype.screenSetup=function(){v.Util.isValid(this.bgmID)&&(this.game.prodigy.audio.playBGM(this.bgmID,!0),this.game.prodigy.audio.resumeBGM()),this.game.prodigy.network.joinZone(this),t.prototype.screenSetup.call(this)},e.prototype.start=function(){this.user.evtProc=!1,t.prototype.start.call(this)},e.prototype.processPopups=function(t){if(s.GameConstants.get("GameConstants.Debug.POPUPS_ENABLED")){var e=this.game.prodigy.achievements.process();if(d.ParentalLink.isSuccessRequired(this.game.prodigy.player))return void this.game.prodigy.open.parentalLinkSuccessPrompt(t);if(this.game.prodigy.player.hasCompletedTutorial()&&!this.game.prodigy.notifications.notificationSocialLogin){if(this.game.prodigy.notifications.notificationSocialLogin=!0,this.game.prodigy.open.socialFeed(t),!this.game.prodigy.breadcrumbManager.isBreadcrumbComplete(m.Breadcrumbs.FEATURE_SOCIAL_FEED,m.Breadcrumbs.BREADCRUMB_SOCIAL_FEED_OPENED)){this.game.prodigy.breadcrumbManager.completeBreadcrumb(m.Breadcrumbs.FEATURE_SOCIAL_FEED,m.Breadcrumbs.BREADCRUMB_SOCIAL_FEED_OPENED);this.game.prodigy.load.assets(["voice-10-85"],this.game.prodigy.audio.playVoice.bind(this.game.prodigy.audio,"voice-10-85",null,18,4))}return}if(this.game.prodigy.player.hasCompletedTutorial()&&!(this.game.prodigy.player.memberPrompt||!this.game.prodigy.player.hasMembership()&&v.Util.isSchoolHours()||this.game.prodigy.player.hasMembership()&&this.game.prodigy.player.backpack.hasItem("mount",1)>0)&&(this.game.prodigy.player.locationSelectionType!==s.GameConstants.get("GameConstants.LocationSelection.SCHOOL")||this.game.prodigy.player.hasMembership()&&0===this.game.prodigy.player.backpack.hasItem("mount",1)))return void(this.game.prodigy.player.rewardMembershipPrizes(t)||this.game.prodigy.open.membershipInfo(t));if(d.ParentalLink.isInfoRequired(this.game.prodigy.player))return void this.game.prodigy.open.parentalLinkInfoPrompt(u.ParentLinkBenefitsConfig.ANALYTICS_SOURCE_LOGIN,t);if(e.length>0)for(var i=0;i<e.length;i++){this.game.prodigy.player.achievements.complete(e[i].ID),this.game.prodigy.player.achievements.complete(e[i].ID);var a=this.game.prodigy.notifications.initNotificationTemplate(h.NotificationType.ACHIEVEMENTS,[e[i].data.name],e[i].metadata);this.game.prodigy.notifications.pushNotification({id:h.NotificationType.ACHIEVEMENTS,data:a}),this.game.prodigy.notifications.playNextNotification(),this.game.prodigy.notifications.getSocialNotifications(3)}else{if(this.game.prodigy.player.justLeveled&&this.game.prodigy.player.getLevel()>=10)return this.game.prodigy.player.justLeveled=!1,void this.game.prodigy.open.rating(t);this.game.prodigy.player.hasCompletedTutorial()&&(this.game.prodigy.notifications.playNextNotification(),this.game.prodigy.notifications.getSocialNotifications(3))}}v.Util.isValid(t)&&t()},e.prototype.onMessage=function(t){v.Util.isValid(this.game)&&("challenge"===t.action&&this.game.prodigy.mail.add(t),"change"===t.action&&this.updatePlayer(t.data),"move"===t.action&&this.movePlayer(t.data),"info"===t.action&&this.onPlayerFullInfo(t.data),"chat"===t.action&&this.chatPlayer(t.data),"emit"===t.action&&this.playerEffect(t.data),"transform"===t.action&&this.transformPlayer(t.data),"catapult"===t.action&&this.game.broadcaster.broadcast(c.ETitanEvents.Catapult,"Catapult"))},e.prototype.onPlayerFullInfo=function(t){t.userID!==this.game.prodigy.player.userID&&v.Util.isValid(t)&&v.Util.isValid(this.content)&&(this.playersInfo[t.userID]=t,v.Util.isValid(this.playerList[t.userID])?this.updatePlayer(this.playersInfo[t.userID]):this.addPlayer(this.playersInfo[t.userID]),this.movePlayer(this.playersInfo[t.userID]))},e.prototype.onPlayerList=function(t){if(v.Util.isValid(this.game)){for(var e=!1,i=0;i<t.length;i++)t[i]!==this.game.prodigy.player.userID&&(e=!0,v.Util.isValid(this.playersInfo[t[i]])&&this.addPlayer(this.playersInfo[t[i]]));e&&v.Util.isValid(this.user)&&this.user.broadcastPlayerFullInfo()}},e.prototype.onPlayerJoined=function(t){v.Util.isValid(this.content)&&t!==this.game.prodigy.player.userID&&(v.Util.isValid(this.playersInfo[t])&&this.addPlayer(this.playersInfo[t]),v.Util.isValid(this.user)&&this.user.broadcastPlayerFullInfo(t))},e.prototype.onPlayerLeft=function(t){this.removePlayer(t)},e.prototype.removePlayer=function(t){v.Util.isValid(this.playerList[t])&&v.Util.isValid(this.content)&&(this.removeFollow(t),this.content.remove(this.playerList[t],!0),this.playerList[t].destroy(),delete this.playerList[t])},e.prototype.canAddUsersToScreen=function(){return o(this.playerList)<s.GameConstants.getMaxPlayerLimit()},e.prototype.addPlayer=function(t){if(!v.Util.isValid(this.playerList[t.userID])){var e=r(this.game.prodigy.friendsListNetworkHandler.friendsList.concat(this.game.prodigy.friendsListNetworkHandler.classList),"userID");if(this.canAddUsersToScreen()||-1!==e.indexOf(t.userID)){var i=new f.Player(this.game,!0);i.init(t);var a=this.game.prodigy.create.player(this.content,i,1,-100,-100);a.enableLocomotion(this,a),v.Util.isValid(t.mount)&&a.mount(t.mount.mountID),a.reload(),a.showName(!0),a.clickCallback=this.game.prodigy.open.card.bind(this.game.prodigy.open,i),this.playerList[t.userID]=a,this.addFollow(i.userID,i.equipment.data.follow),this.game.broadcaster.broadcast(c.EWalkableScreenEvents.PlayerAdded,this.game,[a])}else v.Util.log("FPS is too low or player cap has been reached. Player will not be added.",v.Util.DEV)}},e.prototype.updatePlayer=function(t){if(v.Util.isValid(this.playerList)&&v.Util.isValid(this.playerList[t.userID])){var e=this.playerList[t.userID];e.source.appearance.setAppearance(t.appearance),e.source.equipment.setEquipment(t.equipment),v.Util.isValid(t.data)&&(e.source.data.allowsHouseVisitors=t.data.allowsHouseVisitors),v.Util.isValid(t.mount)&&(v.Util.isValid(t.mount.mountID)?e.mount(t.mount.mountID):e.unmount()),e.showName(!0),e.clickCallback=this.game.prodigy.open.card.bind(this.game.prodigy.open,e.source),v.Util.isValid(t.equipment)&&this.addFollow(t.userID,t.equipment.follow),e.reload(),this.game.broadcaster.broadcast(c.EWalkableScreenEvents.PlayerUpdate,this.game,[e])}},e.prototype.playerEffect=function(t){v.Util.isValid(this.playerList)&&v.Util.isValid(this.playerList[t.userID])&&this.playerList[t.userID].source.fx(t.type)},e.prototype.movePlayer=function(t){v.Util.isValid(this.playerList)&&v.Util.isValid(this.playerList[t.userID])&&v.Util.isValid(t.target)&&this.playerList[t.userID].setNewTarget(t.target.x,t.target.y)},e.prototype.chatPlayer=function(t){if(v.Util.isValid(this.playerList)&&v.Util.isValid(this.playerList[t.userID])){var e=this.playerList[t.userID];v.Util.isValid(t.emoteID)?e.emote(t.emoteID):v.Util.isValid(t.chatID)?e.chatText(t.chatID):v.Util.isValid(t.danceID)&&e.dance(t.danceID,e.source.appearance.getGender())}},e.prototype.transformPlayer=function(t){v.Util.isValid(this.playerList)&&v.Util.isValid(this.playerList[t.userID])&&(t.hasOwnProperty("transformID")?this.playerList[t.userID].transformToItem(t.transformType,t.transformID,v.Util.isValid(t.showEffect)&&t.showEffect):this.playerList[t.userID].resetItemTransformation(v.Util.isValid(t.showEffect)&&t.showEffect))},e.prototype.removeFollow=function(t){var e=t===this.game.prodigy.player.userID?this.user:this.playerList[t];v.Util.isValid(e)&&v.Util.isValid(e.follow)&&(this.content.remove(e.follow,!0),delete e.follow)},e.prototype.addFollow=function(t,e){var i=this;if(!v.Util.isValid(this.content))return null;var a=t===this.game.prodigy.player.userID?this.user:this.playerList[t];if(v.Util.isValid(a)&&(this.removeFollow(t),v.Util.isValid(e))){var n=y.Items.getItem("follow",e).metadata,o=-1,r=null;v.Util.isValid(n)&&v.Util.isValid(n.petID)&&(o=n.petID),a!==this.user&&(r=function(){g.ToyStore.openWebsite(i.game,"follow",!1,o)}),o>=125&&t!==this.game.prodigy.player.userID&&this.game.prodigy.network.sendToyEvent("toy-walk",4,o);var s=this.game.prodigy.create.follow(this.content,e,1,a,r);v.Util.isValid(s.reload)&&s.reload(),a.follow=s}},e.prototype.screenUpdate=function(){t.prototype.screenUpdate.call(this),0===this.game.prodigy.open.menus.length&&0===this.game.prodigy.open.renderMenus.length&&null===this.game.prodigy.open.chatMenu&&null===this.game.prodigy.notifications.notificationTimer&&this.game.prodigy.notifications.startTimer(),this.content.sort("y",Phaser.Group.SORT_ASCENDING),this.game.prodigy.player.appearanceChanged&&(this.game.prodigy.player.appearanceChanged=!1,this.user.reload(),this.user.showName(this.user.nameText.visible),this.addFollow(this.game.prodigy.player.userID,this.hideHex?null:this.game.prodigy.player.equipment.data.follow),this.game.prodigy.network.emitMessage({action:"change",data:{userID:this.game.prodigy.player.userID,appearance:this.game.prodigy.player.appearance.data,equipment:this.game.prodigy.player.equipment.data,mount:this.game.prodigy.player.mount.getMountData()}}))},e.prototype.listener=function(t,e){if(this.walkEnabled){for(var i=v.Util.isValid(e)?e.x:Math.round(this.game.input.x),a=v.Util.isValid(e)?e.y:Math.round(this.game.input.y),n=0;n<this.clickAreas.length;n++){var o=this.clickAreas[n];if(i>=o.x&&i<=o.x+o.w&&a>=o.y&&a<=o.y+o.h)return void o.callback()}this.game.broadcaster.broadcast(c.EPlayerLocomotionEvents.MovePlayer,null,[i,a])&&this.addPathingIcon(i,a)}},e.prototype.addPathingIcon=function(t,e){var i=this.game.prodigy.create.sprite(t,e,"atlas-21","star-small");i.scale.setTo(0,0),i.anchor.setTo(.5,.5),this.content.add(i),this.game.add.tween(i).to({alpha:0},600,Phaser.Easing.Cubic.In,!0),this.game.add.tween(i.scale).to({x:1,y:1},600,Phaser.Easing.Linear.None,!0).onComplete.add(function(){i.destroy()})},e.prototype.createStoreNPC=function(t,e,i,a,n){var o=this,r=this.game.prodigy.gameContainer.Localizer;return new l.QuestNPC(this.game,this.content,t,e,{atlasID:76,name:r.getText("NPC_NAME_MERCHANT"),indicator:"store"},function(){var t=o.game.prodigy.dialogue.create();t.setText({text:r.getText("STORE_PROMPT_WELCOME",a),face:0,yes:o.game.prodigy.open.store.bind(o.game.prodigy.open,i)}),t.start("merchant")},n)},e}(i(51).Screen);e.WalkableScreen=E},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(10),r=i(2),s=i(183),l=i(1),h=i(517),c=i(516),p=i(515),u=i(115),d=i(514),g=i(513),y=i(512),f=i(511),m=i(510),_=i(95),v=i(509),E=i(508),b=i(507),O=i(189),T=i(506),A=i(505),I=i(504),w=i(503),C=i(502),S=i(501),P=i(90),D=i(500),L=i(499),x=i(4),M=i(0),N=function(t){function e(e){return t.call(this,e,{})||this}return n(e,t),e.prototype.shutdown=function(){try{M.Util.isValid(this.previousZone)&&this.previousZone.cleanup(),M.Util.isValid(this.previousMapData)&&this.previousMapData.cleanup()}catch(t){M.Util.log("Error destroying TileScreen.",M.Util.ERROR)}r.GameConstants.get("GameConstants.Build.DEBUG")&&this.game.prodigy.automation.removeAllTriggers(this),t.prototype.shutdown.call(this)},e.prototype.initMap=function(t,e,i,a){this.previousMapData=this.data,this.previousZone=this.zone,this.data=t,this.zone=e,this.zoneName=t.zoneName,this.startX=M.Util.isValid(i)?i:t.x,this.startY=M.Util.isValid(a)?a:t.y,this.isMapScreen=!0},e.prototype.initScene=function(t,e){this.data=t,this.zone=e,this.zoneName="scene-"+this.game.prodigy.player.userID,this.isMapScreen=!1},e.prototype.create=function(){t.prototype.create.call(this,this.zoneName)},e.prototype.screenSetup=function(){this.events=[],this.clickAreas=[];var e=this.game.prodigy.create.element(this.background,0,0),i=this.game.prodigy.create.element(this.foreground,0,0);this.user.evtProc=!0,this.zone.init(this.game,this,this.data);var a=this.game.prodigy.skin.init(this);M.Util.isValid(a)&&M.Util.isValid(a.bgmID)&&(this.zone.bgmID=a.bgmID),this.area=this.data.init(this.game,e,i,this);var n=this.zone.setup(this.game,this,this.data);n&&n.quit||(this.path.init(this.area,this.tileSize),this.data.setup(this.game,this,n),this.isMapScreen&&(this.questProgress=new D.QuestProgressEvent(this.game,this.menus,this.user)),this.game.prodigy.textureBelow.clear(),this.game.prodigy.textureBelow.renderXY(e,0,0,!0),this.below.add(new Phaser.Image(this.game,0,0,this.game.prodigy.textureBelow)),this.game.prodigy.textureAbove.clear(),this.game.prodigy.textureAbove.renderXY(i,0,0,!0),this.above.add(new Phaser.Image(this.game,0,0,this.game.prodigy.textureAbove)),this.data.processAnimations(this.game,this),e.destroy(),i.destroy(),this.data.processDynamicLayers(this.game,this),t.prototype.screenSetup.call(this))},e.prototype.start=function(e,i){if(void 0===e&&(e=!1),void 0===i&&(i=!1),e){if(!i&&this.isMapScreen)return t.prototype.start.call(this),void this.processPopups(this.start.bind(this,!0,!0));this.user.evtProc=!1,this.zone.start(this.game,this,this.data),this.data.start(this.game,this),this.process(),this.game.prodigy.skin.applySkin(this),t.prototype.start.call(this)}else this.fadeIn()},e.prototype.createBackground=function(){var t=this.background.add(this.game.prodigy.create.sprite(0,0,null));t.width=1280,t.height=720,t.inputEnabled=!0,t.events.onInputDown.add(this.listener.bind(this),this),this.below=this.game.prodigy.create.element(this.background,0,0),this.above=this.game.prodigy.create.element(this.foreground,0,0),this.floor=this.game.prodigy.create.element(this.background,0,0)},e.prototype.screenUpdate=function(){t.prototype.screenUpdate.call(this),M.Util.isValid(this.data)&&(M.Util.isValid(this.zone)&&this.zone.update(this.game,this,this.data),this.data.update(this.game))},e.prototype.addEvent=function(t,e){r.GameConstants.get("GameConstants.Build.DEBUG")&&this.game.prodigy.automation.addTrigger({ID:"autoclick-mapEvent-"+e,context:this,callback:function(){return{x:t.x,y:t.y}}})},e.prototype.addAreaEvent=function(t,i,a,n,o){var s=new l.AreaEvent(this.game,this.floor,t,this.user,this.path,i,a,n,o);return this.events.push(s),this.addEvent(s,"areaEvent"),(n||r.GameConstants.get("GameConstants.Build.DEBUG")&&e.DEBUG_DRAW_AREA_EVENTS)&&this.above.add(s.getOverlay()),s},e.prototype.addQuestNPC=function(t,e,i,a,n){var o=new P.QuestEvent(this.game,this.content,t,e,i,a,this.process.bind(this),n);return o.setup(this.zone,i,a),this.events.push(o),this.addEvent(o,i),o},e.prototype.addConstructedQuestNPC=function(t,e,i,a,n){var o;switch(i){case"benni":(o=new w.BenniEvent(this.game,this.content,t,e,i,a,this.process.bind(this),n)).setup(this.zone,i,a);break;case"flora":(o=new S.FloraEvent(this.game,this.content,t,e,i,a,this.process.bind(this),n)).setup(this.zone,i,a);break;case"eve":(o=new C.EveEvent(this.game,this.content,t,e,i,a,this.process.bind(this),n)).setup(this.zone,i,a)}return this.events.push(o),this.addEvent(o,i),o},e.prototype.addClickableEvent=function(t,e,i,a,n,o,r,s){var l=new u.ClickableEvent(this.game,s||this.content,t,e,i,a,n,o,r);return this.events.push(l),this.addEvent(l,"clickable"),l},e.prototype.addClickableMoveEvent=function(t,e,i,a,n,o,r,s,l,h){var c=this,p={moveToX:n,moveToY:o,addPathingIconFunction:function(t,e){c.addPathingIcon(t,e)}},u=new d.ClickableMoveEvent(this.game,h||this.content,t,e,i,a,p,r,s,l);return this.events.push(u),this.addEvent(u,"clickableMove"),u},e.prototype.addClickableArea=function(t,e,i,a,n){var o={x:t,y:e,w:i,h:a,callback:n};this.clickAreas.push(o),this.addEvent(o,"clickArea")},e.prototype.addFireflyEvent=function(t,e,i,a,n,o,r){var s=new y.FireflyEvent(this.game,this.foreground,t,e,i,a,n,o,r);return this.events.push(s),this.addEvent(s,"firefly"),s},e.prototype.addChest=function(t,e,i,a,n,o){var r=new p.ChestEvent(this.game,this.content,e,i,this.user,this.path,t,a,n,this.process.bind(this),o);return this.events.push(r),this.addEvent(r,"chest"),r},e.prototype.addMimic=function(t,e,i,a,n,o){var r=new m.MimicEvent(this.game,this.content,e,i,this.user,this.path,t,a,n,o);return this.events.push(r),this.addEvent(r,"mimic"),r},e.prototype.addCollect=function(t,e,i,a){var n=new g.CollectEvent(this.game,this.content,e,i,this.user,this.path,t,a,this.processAddCollect.bind(this,t));return this.events.push(n),this.addEvent(n,"collect"),n},e.prototype.processAddCollect=function(t){this.preprocess();for(var e=0;e<this.events.length;e++)this.events[e].ID===t&&this.events.splice(e,1);this.process(!1)},e.prototype.addMonster=function(t,e,i,a,n,r,s,l){n.minLevel=this.zone.minLevel,n.maxLevel=this.zone.maxLevel,n.monsterData=this.game.prodigy.battle.chooseRandomMonster(n.encounter);var h=x.Items.getItem("pet",n.monsterData.ID),c=null;return c="spine"===o(h,"metadata.assets.default.type",null)?new v.MonsterSpineEvent(this.game,this.content,e,i,this.user,this.path,t,n,a,r,s,l,this):new _.MonsterEvent(this.game,this.content,e,i,this.user,this.path,t,n,a,r,s,l,this),this.events.push(c),this.addEvent(c,"monster"),c},e.prototype.addPippet=function(t,e,i){var a=new s.Pippet(this.game,this.content,e,i,this.user,this.path,t);return this.events.push(a),this.addEvent(a,"pippet"),a},e.prototype.addBounty=function(t,e,i,a,n,o,r){n.minLevel=this.zone.minLevel,n.maxLevel=this.zone.maxLevel;var s=new c.BountyEvent(this.game,this.content,e,i,this.user,this.path,t,n,a,o,r);return this.events.push(s),this.addEvent(s,"bounty"),s},e.prototype.addWizard=function(t,e,i,a){var n=new L.WizardEvent(this.game,this.content,t,e,this.user,this.path,i,a,this);return this.events.push(n),this.addEvent(n,"wizard"),n},e.prototype.addNPC=function(t,e,i,a,n,o){var r=new E.NPCEvent(this.game,o||this.content,t,e,i,a,n);return this.events.push(r),this.addEvent(r,i),r},e.prototype.addGnome=function(t,e,i,a,n,o){var r=new f.GnomeEvent(this.game,this.content,this.user,this.path,t,e,i,a,n,o);return this.events.push(r),this.addEvent(r,i),r},e.prototype.addConstructedNPC=function(t,e,i,a,n,o){var r;switch(i){case"atlas-153":r=new A.JellyJimEvent(this.game,this.content,t,e,i,n);break;case"atlas-64":r=new b.BroccolinaEvent(this.game,this.content,t,e,i,a,n);break;case"atlas-68":r=new T.EugeneEvent(this.game,this.content,t,e,i,a,n);break;case"atlas-65":r=new O.CebolliniEvent(this.game,o||this.content,t,e,i,a,n);break;case"atlas-87":r=new I.WorkerSlimeEvent(this.game,this.content,t,e,i,a,n,-20,0);break;case"npc-sprite-worker-slime-red":r=new I.WorkerSlimeEvent(this.game,this.content,t,e,i,a,n);break;default:M.Util.log("Add Constructed NPC failed: Tag not found",M.Util.ERROR)}return this.events.push(r),this.addEvent(r,i),r},e.prototype.addBlock=function(t,e,i){var a=new h.BlockEvent(this.game,i.content?this.content:this.background,t,e,this.path,i);return this.events.push(a),this.addEvent(a,"block"),a},e.prototype.preprocess=function(){var t=this.zone.getQuestState(),e=M.Util.isValid(t)?this.zone.getQuest(t.ID):null,i=M.Util.isValid(e)&&this.zone.isQuestComplete(t.ID),a=M.Util.isValid(e)&&this.zone.isQuestStarted(t.ID),n=[],o=[];a&&(o=i&&!e.chain&&M.Util.isValid(this.zone.questHub)?[this.zone.questHub]:this.zone.getRemainingQuestAreas(t.ID));for(var r=0;r<o.length;r++)n.push({event:null,distance:9999999});for(r=0;r<this.events.length;r++)if(M.Util.isValid(this.events[r].process)&&!this.events[r].isBlocked)if(a&&this.events[r]instanceof l.AreaEvent&&o.length>0)for(var s=0;s<o.length;s++){var h=this.events[r].process(this.zone,this.data,o[s]);h<n[s].distance&&M.Util.isValid(h)&&(n[s].distance=h,n[s].event=this.events[r])}else this.events[r].process(this.zone,this.data);n.sort(function(t,e){return t.distance-e.distance});var c=9999999;for(r=0;r<n.length&&!(n[r].distance>c);r++)c=n[r].distance,M.Util.isValid(n[r].event)&&M.Util.isValid(n[r].event.setClosest)&&n[r].distance>1&&n[r].event.setClosest()},e.prototype.process=function(t){void 0===t&&(t=!1),t||this.preprocess();var e=this.data.zoneName,i=M.Util.isValid(this.data.zoneName)&&e.indexOf("house")>-1&&-1===e.indexOf("exit")&&(e.indexOf(this.game.prodigy.player.userID.toString())>-1||e.indexOf("undefined")>-1);this.menuBar.open(0,i),this.isMapScreen&&this.questProgress.process(this.zone,this.data),this.zone.process(this.game,this,this.data),this.data.process(this.game,this,this.zone)},e.prototype.showCollisions=function(t){if(M.Util.isValid(this.menus)&&(this.menus.removeAll(!0),t)){for(var e=new Phaser.Group(this.game),i=0;i<64;i++)for(var a=0;a<36;a++)if(!this.path.isNodeOpen(i,a)){var n=e.add(this.game.prodigy.create.sprite(20*i,20*a,"atlas-18","overlay-light"));n.width=20,n.height=20,n.alpha=.2,n.tint=12255232}this.game.prodigy.textureMenu.clear(),this.game.prodigy.textureMenu.renderXY(e,0,0,!0),this.menus.add(new Phaser.Image(this.game,0,0,this.game.prodigy.textureMenu)),e.destroy()}},e.DEBUG_DRAW_AREA_EVENTS=!1,e}(i(176).WalkableScreen);e.TileScreen=N},function(t,e,i){"use strict";var a=this&&this.__assign||Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0});var n=i(225),o=i(8),r=i(75),s=i(520),l=i(149),h=i(131),c=i(78),p=i(228),u=i(229),d=i(2),g=i(41),y=i(14),f=i(202),m=i(119),_=i(96),v=i(3),E=i(250),b=i(138),O=i(206),T=i(56),A=i(72),I=i(120),w=i(121),C=i(177),S=i(187),P=i(4),D=i(38),L=i(15),x=i(13),M=i(62),N=i(181),U=i(17),k=i(482),R=i(29),B=i(0),G=function(){function t(){this.game=null,this.attackDamageCache={},this.bountyOverrides={},this.fakePlayers={},this.addPlayerTimer=null,this.updatePlayerTimer=null,this.hatSwitchEvent=null,this.generatedRandomPlayers=[],this.stressTests={playerContainers:[],emitters:[]}}return t.prototype.setup=function(t){var e=this;if(this.game=t,window.setLogLevel=d.GameConstants.setLogLevel.bind(d.GameConstants),window.enableDebug=function(i,a){void 0===a&&(a=!1);var n=CryptoJS.MD5(i),o=t.prodigy.gameAPIData.getValue("debugPassword");null!==o&&n.toString(CryptoJS.enc.Base64)===o&&(d.GameConstants.enableGameConstant("GameConstants.Build.DEBUG",!0),d.GameConstants.enableGameConstant("GameConstants.Build.SHOW_FPS",a),e.enableDebugCalls(t))},d.GameConstants.get("GameConstants.Build.DEBUG")){this.enableDebugCalls(t);var i=d.GameConstants.get("GameConstants.Debug.AUTO_LOGIN");if(i.length>0){var a=t.state.states.Login;a.username=i[0],a.password=i[1],a.login(),t.state.onStateChange.add(this.callApplyDebug.bind(this,t),this)}else this.applyDebugOptions(t)}},t.prototype.callApplyDebug=function(t,e){"CharSelect"!==e&&"CharCreate"!==e||(t.time.events.add(500,this.applyDebugOptions,this),t.state.onStateChange.removeAll(this))},t.prototype.applyDebugOptions=function(t){d.GameConstants.get("GameConstants.Build.MUTE_BGM")&&this.mute(),d.GameConstants.get("GameConstants.Build.KILL_GORE")&&this.killGore(),d.GameConstants.get("GameConstants.Build.EASY_MODE")&&this.easyMode(),d.GameConstants.get("GameConstants.Debug.COMPLETE_TUTORIAL")&&this.completeTutorial();var e=d.GameConstants.get("GameConstants.Build.TELEPORT");""!==e&&this.tp(e);var i=d.GameConstants.get("GameConstants.Build.QUEST");i.length>1&&(this.setQuest(i[0],i[1]),3===i.length&&setTimeout(this.tp.bind(this),6e3,i[2]));var a=d.GameConstants.get("GameConstants.Build.ITEM_TYPE");a.length>0&&this.getItemType(a[0],a[1],a.length>2?a[2]:1),d.GameConstants.get("GameConstants.Build.MEMBERSHIP")&&this.setMembership();var n=d.GameConstants.get("GameConstants.Debug.GET_PET");if(n.length>0&&(this.getPet(n[0],n[1],n[2],n[3]),n[4]&&(t.prodigy.player.kennel.setTeam(t.prodigy.player.kennel.data[0],0),t.prodigy.player.kennel.setTeam(t.prodigy.player.data,1))),d.GameConstants.get("GameConstants.Debug.SET_LEVEL")>0){var o=D.Creature.starsToLevel(d.GameConstants.get("GameConstants.Debug.SET_LEVEL"));this.addStars(o-10)}d.GameConstants.get("GameConstants.Debug.GET_GOLD")>0&&this.getGold(d.GameConstants.get("GameConstants.Debug.GET_GOLD")),d.GameConstants.get("GameConstants.Debug.GET_SPELL")>0&&this.getSpell(d.GameConstants.get("GameConstants.Debug.GET_SPELL"))},t.prototype.enableDebugCalls=function(t){d.GameConstants.get("GameConstants.Build.DEBUG")&&(window.enableGameConstant=d.GameConstants.enableGameConstant.bind(d.GameConstants),window.enableAutosave=d.GameConstants.enableGameConstant.bind(d.GameConstants,"GameConstants.Debug.AUTOSAVE_ENABLED"),window.enablePopups=d.GameConstants.enableGameConstant.bind(d.GameConstants,"GameConstants.Debug.POPUPS_ENABLED"),window.enablePlayerCards=d.GameConstants.enableGameConstant.bind(d.GameConstants,"GameConstants.Debug.PLAYER_CARDS_ENABLED"),window.enableWarpMode=d.GameConstants.enableGameConstant.bind(d.GameConstants,"GameConstants.Debug.WARP_MODE_ENABLED"),window.enableMonsters=d.GameConstants.enableGameConstant.bind(d.GameConstants,"GameConstants.Debug.MONSTERS_ENABLED"),window.enableWizards=d.GameConstants.enableGameConstant.bind(d.GameConstants,"GameConstants.Debug.WIZARDS_ENABLED"),window.enableGodMode=d.GameConstants.enableGameConstant.bind(d.GameConstants,"GameConstants.Debug.GOD_MODE_ENABLED"),window.enableEducation=d.GameConstants.enableGameConstant.bind(d.GameConstants,"GameConstants.Debug.EDUCATION_ENABLED"),window.enableAutoResolveBattles=d.GameConstants.enableGameConstant.bind(d.GameConstants,"GameConstants.Debug.AUTO_RESOLVE_BATTLES_ENABLED"),window.enableAutoResolveTowerBattles=d.GameConstants.enableGameConstant.bind(d.GameConstants,"GameConstants.Debug.AUTO_RESOLVE_TOWER_BATTLES_ENABLED"),window.scaleEncounterDistance=d.GameConstants.scaleEncounterDistance.bind(d.GameConstants),window.getKeyItems=this.getKeyItems.bind(this),window.playScene=this.playScene.bind(this),window.setQuest=this.setQuest.bind(this),window.debugMap=this.debugMap.bind(this),window.setState=this.setState.bind(this),window.initQuest=this.initQuest.bind(this),window.completeQuestRequirements=this.completeQuestRequirements.bind(this),window.deleteState=this.deleteState.bind(this),window.setEmail=this.setParentEmail.bind(this),window.addStars=this.addStars.bind(this),window.tpTowerFloor=this.tpTowerFloor.bind(this),window.tp=this.tp.bind(this),window.inspect=this.inspect.bind(this),window.showLayer=this.showLayer.bind(this),window.showCollisions=this.showCollisions.bind(this),window.answer=this.answer.bind(this),window.drDino=this.drDino.bind(this),window.grabBag=this.grabBag.bind(this),window.getItem=this.getItem.bind(this),window.getItemType=this.getItemType.bind(this),window.getCurrency=this.getCurrency.bind(this),window.getPet=this.getPet.bind(this),window.getAllPets=this.getAllPets.bind(this),window.getBounty=this.getBounty.bind(this),window.getSpell=this.getSpell.bind(this),window.removeSpell=this.removeSpell.bind(this),window.getGold=this.getGold.bind(this),window.bookWorm=this.bookWorm.bind(this),window.smallLoan=this.smallLoan.bind(this),window.setAchievementData=this.setAchievementData.bind(this),window.mute=this.mute.bind(this),window.testVoice=this.testVoice.bind(this),window.testEventDaily=this.testEventDaily.bind(this),window.changeDailyBonusDay=this.changeDailyBonusDay.bind(this),window.setDailyBonusDay=this.setDailyBonusDay.bind(this),window.changeEventDay=this.changeEventDay.bind(this),window.resetBreadcrumbFeature=this.resetBreadcrumbFeature.bind(this),window.resetAllBreadcrumbs=this.resetAllBreadcrumbs.bind(this),window.resetHouseVisitingBreadcrumbs=this.resetHouseVisitingBreadcrumbs.bind(this),window.resetHouseMovingBreadcrumbs=this.resetHouseMovingBreadcrumbs.bind(this),window.resetDabBreadcrumbs=this.resetDabBreadcrumbs.bind(this),window.currentBGM=this.currentBGM.bind(this),window.setRoulette=this.setRoulette.bind(this),window.addFriend=this.addFriend.bind(this),window.removeFriend=this.removeFriend.bind(this),window.getFriendsList=this.getFriendsList.bind(this),window.triggerFailure=this.triggerFailure.bind(this),window.getDefaultFakeFriendData=this.getDefaultFakeFriendData.bind(this),window.addFakeFriend=this.addFakeFriend.bind(this),window.removeFakeFriend=this.removeFakeFriend.bind(this),window.removeAllFakeFriends=this.removeAllFakeFriends.bind(this),window.getAllPotions=this.getAllPotions.bind(this),window.resetSurvey=this.resetSurvey.bind(this),window.forceDrops=this.forceDrops.bind(this),window.getAllZoneDrops=this.getAllZoneDrops.bind(this),window.startPippetBattle=this.startPippetBattle.bind(this),window.setAttackOverride=this.setAttackOverride.bind(this),window.setEscapeChance=this.setEscapeChance.bind(this),window.setLevel=this.setLevel.bind(this),window.skipBonusChance=this.skipBonusChance.bind(this),window.getCubes=this.getCubes.bind(this),window.openCubes=this.openCubes.bind(this),window.startBattle=this.startBattle.bind(this),window.automateHatSwitching=this.automateHatSwitching.bind(this),window.player=this.player.bind(this),window.setMembership=this.setMembership.bind(this),window.skipMembershipWebsite=this.skipMembershipWebsite.bind(this),window.killGore=this.killGore.bind(this),window.greedIsGood=this.greedIsGood.bind(this),window.greedIsOkay=this.greedIsOkay.bind(this),window.setAttackBaseDamage=this.setAttackBaseDamage.bind(this),window.easyMode=this.easyMode.bind(this),window.hardMode=this.hardMode.bind(this),window.getEpic=this.getEpic.bind(this),window.savePlayer=this.savePlayer.bind(this),window.loadPlayer=this.loadPlayer.bind(this),window.autoClick=this.autoClick.bind(this),window.autoClickUI=this.autoClickUI.bind(this),window.autoClickScene=this.autoClickScene.bind(this),window.autoClickList=this.autoClickList.bind(this),window.completeTutorial=this.completeTutorial.bind(this),window.getGame=this.getGame.bind(this),window.setEpicArena=this.setEpicArena.bind(this),window.trigger=this.trigger.bind(this),window.setNextEpicArenaRound=this.setNextEpicArenaRound.bind(this),window.showAreaEvents=this.showAreaEvents.bind(this),window.showBounties=this.showAllBounties.bind(this),window.setClientVersion=this.setClientVersion.bind(this),window.testRandom=this.testRandom.bind(this),window.setSplitTestLane=this.setSplitTestLane.bind(this),window.enableVerboseMetrics=this.enableVerboseMetrics.bind(this),window.changeDayLength=this.changeDayLength.bind(this),window.forceActivityZoneMonsterId=this.forceActivityZoneMonsterId.bind(this),window.enableDynamicLayer=this.enableDynamicLayer.bind(this),window.drawUIElementBounds=this.drawUIElementBounds.bind(this),window.openUIViewer=this.openUIViewer.bind(this),window.setGameSpeed=this.setGameSpeed.bind(this),window.setFeedLimit=this.setFeedLimit.bind(this),window.showDebugValue=this.showDebugValue.bind(this),window.hideDebugValue=this.hideDebugValue.bind(this),window.enableDebugLocalization=this.enableDebugLocalization.bind(this),window.enableVerboseLocalization=this.enableVerboseLocalization.bind(this),window.stressTestParticles=this.stressTestParticles.bind(this),window.stressTestPlayerContainers=this.stressTestPlayerContainers.bind(this),window.snow=this.snow.bind(this),window.enableParticles=this.enableParticles.bind(this),window.spawnBuddyParticle=this.spawnBuddyParticle.bind(this),window.getCurrentDailyLocation=this.getCurrentDailyLocation.bind(this),window.unlockColiseumOpponent=this.unlockColiseumOpponent.bind(this),window.lockColiseumOpponent=this.lockColiseumOpponent.bind(this),window.setMyArenaLeaderboardScore=this.setMyArenaLeaderboardScore.bind(this),window.setClassLeaderboardScore=this.setClassLeaderboardScore.bind(this),window.resetPrizeWheelSpins=this.resetPrizeWheelSpins.bind(this),window.setCustomBounty=this.setCustomBounty.bind(this),window.clearCustomBounty=this.clearCustomBounty.bind(this),window.openMenu=this.openMenu.bind(this),window.closeMenus=this.closeMenus.bind(this),window.resetRegisterDate=this.resetRegisterDate.bind(this),window.setCritChance=this.setCritChance.bind(this),window.setNFactor=this.setNFactor.bind(this),window.transform=this.transform.bind(this),window.timerMenu=this.timerMenu.bind(this),window.generateRandomPlayers=this.generateRandomPlayers.bind(this),window.transformGeneratedPlayers=this.transformGeneratedPlayers.bind(this),window.completeMatchmakingBattle=this.completeMatchmakingBattle.bind(this),window.startPointsTicker=this.startPointsTicker.bind(this),window.resetUserRank=this.resetUserRank.bind(this),window.setUserRank=this.setUserRank.bind(this),window.showInactivityDialog=this.showInactivityDialog.bind(this),window.setBootOutTimersInSeconds=this.setBootOutTimersInSeconds.bind(this),window.parade=this.parade.bind(this),window.escapeBattle=this.escapeBattle.bind(this),window.resetMembershipReward=this.resetMembershipReward.bind(this),window.getSplitTestLane=this.getSplitTestLane.bind(this),window.getSplitTestGroup=this.getSplitTestGroup.bind(this),window.setUnlimitedWheelSpins=this.setUnlimitedWheelSpins.bind(this),window.setWheelSpinDuration=this.setWheelSpinDuration.bind(this),window.maintainAspectRatio=this.maintainAspectRatio.bind(this),window.enableSkynet=this.enableSkynet.bind(this),window.disableSkynet=this.disableSkynet.bind(this),window.logChatPhrases=this.logChatPhrases.bind(this),window.setCharacterCreationDate=this.setCharacterCreationDate.bind(this),window.setClassMode=this.setClassMode.bind(this,t),window.clearStoreCache=this.clearStoreCache.bind(this),window.setStoreExpireTime=this.setStoreCacheExpirationTime.bind(this),window.setMemberStarsTimeout=this.setMemberStarsTimeout.bind(this),window.getMemberStarsTimeout=this.getMemberStarsTimeout.bind(this),window.createNotification=this.createNotification.bind(this),window.editUiJson=this.editUiJson.bind(this),window.setMonsterRadiusVisible=this.setMonsterRadiusVisible.bind(this),window.restartTutorial=this.restartTutorial.bind(this),window.startSessionCamRecording=this.startSessionCamRecording.bind(this,t),window.stopSessionCamRecording=this.stopSessionCamRecording.bind(this,t))},t.prototype.playScene=function(t,e){this.game.prodigy.world.playScene(t+"-"+e)},t.prototype.setQuest=function(t,e,i,a){this.game.prodigy.world.getZone(t).testQuest(e,i,a);try{this.game.state.states.TileScreen.process()}catch(t){}},t.prototype.debugMap=function(t,e){d.GameConstants.enableGameConstant("GameConstants.Debug.PLAYER_CARDS_ENABLED",!e),d.GameConstants.enableGameConstant("GameConstants.Debug.POPUPS_ENABLED",!e),d.GameConstants.enableGameConstant("GameConstants.Debug.WIZARDS_ENABLED",!e),d.GameConstants.enableGameConstant("GameConstants.Debug.MONSTERS_ENABLED",!e),this.tp(t)},t.prototype.setState=function(t,e,i){this.game.prodigy.world.getZone(t).setState(e,i)},t.prototype.deleteState=function(t){delete this.game.prodigy.player.state.data.zone[t]},t.prototype.initQuest=function(){var t,e=this,i=[],a=function(t){var i=e.game.prodigy.player.state.data.zone[t],a=0;return B.Util.isValid(i)&&B.Util.isValid(i.quest)&&(a=i.quest.ID),a};(t=a("lamplight"))>1&&i.push({ID:13,type:"key"}),(t=a("forest"))>4&&i.push({type:"spell",ID:13},{type:"item",ID:67}),t>8&&i.push({type:"spell",ID:14},{type:"item",ID:69}),t>10&&this.game.prodigy.player.backpack.consume("item",69,1),t>13&&i.push({type:"spell",ID:15},{type:"key",ID:3}),(t=a("shiverchill"))>2&&i.push({type:"item",ID:71}),t>3&&(this.setState("shiverchill","furnace",1),i.push({type:"spell",ID:19})),t>4&&i.push({type:"item",ID:75}),t>5&&i.push({type:"item",ID:72}),t>6&&i.push({type:"hat",ID:54}),t>10&&(this.setState("shiverchill","furnace",2),i.push({type:"spell",ID:20})),t>12&&i.push({type:"outfit",ID:47},{type:"item",ID:74,N:5}),t>14&&(this.setState("shiverchill","furnace",3),i.push({type:"spell",ID:21})),t>15&&i.push({type:"weapon",ID:74},{type:"key",ID:4}),(t=a("skywatch"))>2&&(this.setState("skywatch","windowBroken",1),i.push({type:"item",ID:87,N:1})),t>3&&i.push({type:"key",ID:8}),t>4&&(this.setState("skywatch","vines-D1",1),this.setState("skywatch","vines-D2",1),this.setState("skywatch","plug-D3",1),this.setState("skywatch","vines-D3",1),this.setState("skywatch","plug-B3",1),this.setState("skywatch","vines-B3",1),this.setState("skywatch","plug-C4",1),this.setState("skywatch","vines-C4",1),i.push({type:"spell",ID:25})),t>6&&i.push({type:"item",ID:81}),t>7&&(i.push({type:"key",ID:9}),this.game.prodigy.player.backpack.consume("item",87,1)),t>8&&i.push({type:"outfit",ID:5}),t>10&&i.push({type:"spell",ID:26}),t>11&&i.push({type:"hat",ID:8}),t>12&&i.push({type:"item",ID:83}),t>13&&i.push({type:"spell",ID:27},{type:"key",ID:10}),(t=a("bonfire_spire"))>1&&this.setState("bonfire_spire","lever1",1),t>2&&this.setState("bonfire_spire","lever2",1),t>3&&(this.setState("bonfire_spire","lever3",1),i.push({type:"hat",ID:65})),t>4&&i.push({type:"spell",ID:1},{type:"item",ID:88}),t>5&&i.push({type:"spell",ID:1}),t>7&&i.push({type:"outfit",ID:56}),t>9&&i.push({type:"item",ID:91,N:1}),t>10&&this.game.prodigy.player.backpack.consume("item",91,1),t>11&&i.push({type:"spell",ID:2},{type:"item",ID:92}),t>12&&(i.push({type:"key",ID:12}),this.game.prodigy.player.backpack.consume("item",92,1)),t>13&&i.push({type:"weapon",ID:81}),t>14&&i.push({type:"spell",ID:3},{type:"key",ID:11}),(t=a("shipwreck_shore"))>-1&&(this.setState("shipwreck_shore","wizardC8",0),this.setState("shipwreck_shore","wizardA5",0),this.setState("shipwreck_shore","chestA3",0),this.setState("shipwreck_shore","chestA5",0),this.setState("shipwreck_shore","chestB5",0),this.setState("shipwreck_shore","chestB13",0),this.setState("shipwreck_shore","chestB10",0),this.setState("shipwreck_shore","chestBreathingBubble",0),this.setState("shipwreck_shore","mimic1",0),this.setState("shipwreck_shore","mimic2",0),this.setState("shipwreck_shore","inkA7",0),this.setState("shipwreck_shore","inkB6",0),this.setState("shipwreck_shore","inkB5",0),this.setState("shipwreck_shore","inkA5",0),this.setState("shipwreck_shore","inkC9",0),this.setState("shipwreck_shore","inkB7",0),this.setState("shipwreck_shore","squeak",0)),t>1&&i.push({type:"key",ID:14}),t>3&&i.push({type:"spell",ID:7}),t>4&&i.push({type:"key",ID:15}),t>5&&(this.setState("shipwreck_shore","inkA7",1),this.setState("shipwreck_shore","inkB6",1),this.setState("shipwreck_shore","inkB5",1),this.setState("shipwreck_shore","inkA5",1)),t>6&&i.push({type:"spell",ID:8}),t>12&&i.push({type:"spell",ID:9},{type:"key",ID:17});var n=B.Util.filterDuplicateKeys(this.game,i);n.length>0&&this.game.prodigy.open.gotItem(n,null)},t.prototype.completeQuestRequirements=function(t){var e=this.game.prodigy.world.zones[t],i=e.getCurrentQuest(),a=0;if(B.Util.isValid(i)){var n=i.req;if("item"===n.type)this.game.prodigy.player.backpack.add(n.type,n.ID,!1,B.Util.isValid(n.N)?n.N:1);else if("key"===n.type)this.game.prodigy.player.backpack.add(n.type,n.ID,!1,B.Util.isValid(n.N)?n.N:1);else if("pet"===n.type)for(a=0;a<n.N;a++)e.defeatMonster(n.ID,a,n.U);else if("seq"===n.type)for(a=0;a<n.N;a++)e.completeSequence(i.ID,a)}},t.prototype.setParentEmail=function(t){this.game.prodigy.player.setParentEmail(t)},t.prototype.addStars=function(t){this.game.prodigy.player.addStars(t,null,null,!0)},t.prototype.setMembership=function(){this.game.prodigy.player.setMembership()},t.prototype.skipMembershipWebsite=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0),d.GameConstants.enableGameConstant("GameConstants.Debug.SKIP_MEMBERSHIP_WEBSITE",t),d.GameConstants.enableGameConstant("GameConstants.Debug.GIVES_MEMBERSHIP_AFTER_SKIP_WEBSITE",e),B.Util.log("Skip the membership website: "+t),B.Util.log("Give membership after skipping website: "+e)},t.prototype.tpTowerFloor=function(t){var e=t<100?"A2":"A3";this.game.prodigy.world.zones.darktower.maps[e].floor=t,this.game.prodigy.world.zones.darktower.maps[e].updateZoneNameFromCurrentFloor(),this.game.prodigy.world.zones.darktower.maps[e].cleared=!1,this.game.prodigy.world.teleport("darktower-"+e,260,550)},t.prototype.tp=function(t,e,i,a){this.game.prodigy.world.teleport(t,e,i,null,{callback:a})},t.prototype.easyMode=function(t){t&&d.GameConstants.enableGameConstant("GameConstants.Debug.AUTO_ANSWER_CORRECTLY",!0),d.GameConstants.enableGameConstant("GameConstants.Debug.EDUCATION_ENABLED",!t)},t.prototype.hardMode=function(t){t&&d.GameConstants.enableGameConstant("GameConstants.Debug.AUTO_ANSWER_CORRECTLY",!1),d.GameConstants.enableGameConstant("GameConstants.Debug.EDUCATION_ENABLED",!t)},t.prototype.inspect=function(t){B.Util.isValid(t)&&""!==t?B.Util.log(this.game.prodigy.player[t].data):B.Util.log(this.game.prodigy.player.data)},t.prototype.showLayer=function(t,e){this.game.state.states.TileScreen[t].visible=e},t.prototype.showCollisions=function(t){d.GameConstants.enableGameConstant("GameConstants.Debug.SHOW_COLLISIONS",t),this.game.state.states.TileScreen.showCollisions(t)},t.prototype.answer=function(){this.game.prodigy.education.question()},t.prototype.killGore=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=31);var i=0;if(t)i=200;else{if(!B.Util.isValid(this.attackDamageCache[e]))return;i=this.attackDamageCache[e]}this.setAttackBaseDamage(e,i)},t.prototype.setAttackBaseDamage=function(t,e){var i=P.Items.getItem("spell",t).data;B.Util.isValid(this.attackDamageCache[t])||(this.attackDamageCache[t]=i.damage),i.damage=e},t.prototype.player=function(){return this.game.prodigy.player},t.prototype.drDino=function(){for(var t=13;t<25;t++)this.game.prodigy.player.backpack.add("fossil",t)},t.prototype.grabBag=function(){for(var t=1;t<29*Math.random();t++)this.game.prodigy.player.backpack.add("boots",Math.floor(28*Math.random()+1));for(t=1;t<55*Math.random();t++)this.game.prodigy.player.backpack.add("outfit",Math.floor(54*Math.random()+1));for(t=1;t<80*Math.random();t++)this.game.prodigy.player.backpack.add("weapon",Math.floor(79*Math.random()+1));for(t=1;t<64*Math.random();t++)this.game.prodigy.player.backpack.add("hat",Math.floor(63*Math.random()+1));for(t=1;t<78*Math.random();t++)this.game.prodigy.player.backpack.add("item",Math.floor(77*Math.random()+1));for(t=1;t<21*Math.random();t++)this.game.prodigy.player.backpack.add("relic",Math.floor(20*Math.random()+1));for(t=1;t<72*Math.random();t++)this.game.prodigy.player.backpack.add("dorm",Math.floor(71*Math.random()+1));for(t=1;t<25*Math.random();t++)this.game.prodigy.player.backpack.add("fossil",Math.floor(24*Math.random()+1))},t.prototype.getItemType=function(t,e,i){void 0===i&&(i=1);var a=[{type:t,ID:e,N:i}];this.game.prodigy.open.gotItem(a)},t.prototype.getCurrency=function(t,e){var i=[];i.push({type:"currency",ID:t,N:e}),this.game.prodigy.open.gotItem(i)},t.prototype.getKeyItems=function(){this.game.prodigy.player.backpack.add("key",1),this.game.prodigy.player.backpack.add("key",2),this.game.prodigy.player.backpack.add("key",3),this.game.prodigy.player.backpack.add("key",4),this.game.prodigy.player.backpack.add("key",8),this.game.prodigy.player.backpack.add("key",9),this.game.prodigy.player.backpack.add("key",10),this.game.prodigy.player.backpack.add("key",11),this.game.prodigy.player.backpack.add("key",12),this.game.prodigy.player.backpack.add("key",13)},t.prototype.getItem=function(){var t=[],e=[{type:"hat",ID:63},{type:"outfit",ID:54},{type:"weapon",ID:79},{type:"boots",ID:28},{type:"relic",ID:10}],i=Math.floor(5*Math.random()),a=e[i].type,n=Math.floor(2*Math.random());Math.floor(2*Math.random())>0&&t.push({type:a,ID:Math.floor(Math.random()*e[i].ID+1)});for(var o=0;o<Math.floor(5*Math.random());o++)t.push({type:"item",ID:Math.floor(77*Math.random()+1)});if(n>0)for(o=0;o<Math.floor(5*Math.random());o++)t.push({type:"gold",N:100});0===t.length?this.getItem():this.game.prodigy.open.gotItem(t)},t.prototype.getPet=function(t,e,i,a){var n=B.Util.isValid(t)?t:Math.floor(Math.random()*P.Items.getItemCount("pet")+1),o=B.Util.isValid(e)?e:Math.floor(99*Math.random()+1),r=B.Util.isValid(i)?i:d.GameConstants.MAX_SAFE_INTEGER,s=B.Util.isValid(a)?a:D.Creature.starsToLevel(e-1);this.game.prodigy.open.gotItem([{type:"pet",ID:n,data:{ID:n,newHP:r,newStars:s,newLevel:o}}])},t.prototype.getAllPets=function(t,e,i){for(var a=P.Items.data.pet,n=0;n<a.length;n++){var o=a[n];B.Util.isValid(o)&&this.getPet(o.ID,t,e,i)}},t.prototype.getEpic=function(t){var e=B.Util.isValid(t)?t:125;e>133||e<125||(this.getPet(e,20),this.player().backpack.add("follow",P.Items.getItem("pet",e).data.unlockFollow))},t.prototype.savePlayer=function(){var t=["player","game"],e={savedPlayer:this.game.prodigy.player,meta:{loadPosition:this.game.broadcaster.broadcast(v.EPlayerLocomotionEvents.GetTarget,this.game,[!0])}},i=JSON.stringify(e,function(e,i){if(!(t.indexOf(e)>-1))return i;B.Util.log(e)}),a=document.createElement("a");a.download=this.game.prodigy.player.appearance.data.name+".json",a.href="data:,"+i,a.click()},t.prototype.loadPlayer=function(t){var e=this,i=function(t){B.Util.log("LOADED PLAYER DATA");var i=JSON.parse(t),a=function(t,e){for(var i in e)"object"==typeof e[i]&&"data"!==i&&B.Util.isValid(t[i])?t[i]=a(t[i],e[i]):t[i]=e[i];return t};e.game.prodigy.player=a(e.game.prodigy.player,i.savedPlayer),B.Util.isValid(i.meta.loadPosition)?e.tp(i.savedPlayer.data.zone,i.meta.loadPosition.x,i.meta.loadPosition.y):e.tp(i.savedPlayer.data.zone)};if(B.Util.isValid(t))i(t);else{var a=document.createElement("input");a.type="file",a.addEventListener("change",function(t){t.stopPropagation(),t.preventDefault();var e=t.target.files,a=new FileReader,n=e[0];a.onload=function(t){i(t.target.result)},a.readAsText(n)},!1),a.click()}},t.prototype.getBounty=function(){this.game.prodigy.open.gotItem([{type:"bounty",N:100}]),this.game.prodigy.player.addBountyScore(100)},t.prototype.getSpell=function(t){this.game.prodigy.open.gotItem([{type:"spell",ID:B.Util.isValid(t)?t:Math.floor(35*Math.random()+1)}])},t.prototype.removeSpell=function(t){for(var e=this.game.prodigy.player.data.spells,i=-1,a=0;a<e.length;a++)e[a]===t&&(i=a);-1!==i&&(this.game.prodigy.player.data.spells.splice(i,1),this.game.prodigy.player.updated=!0)},t.prototype.getGold=function(t){var e=[];e.push({type:"gold",N:t}),this.game.prodigy.open.gotItem(e)},t.prototype.smallLoan=function(t){void 0===t&&(t=1e6),this.game.prodigy.player.changeGold(t)},t.prototype.bookWorm=function(){B.Util.isValid(this.game.prodigy.player.data.spells)||(this.game.prodigy.player.data.spells=[]);for(var t=1;t<37;t++)31!==t&&this.game.prodigy.player.data.spells.push(t)},t.prototype.setAchievementData=function(t,e){this.game.prodigy.player.achievements.increment(t,e)},t.prototype.mute=function(t){void 0===t&&(t=!0),this.game.prodigy.audio.setMute(t)},t.prototype.greedIsGood=function(){this.mute(),this.bookWorm(),this.smallLoan(),this.killGore(),this.easyMode(!0)},t.prototype.greedIsOkay=function(){this.killGore(),this.easyMode(!0),this.game.prodigy.player.isMember=!0},t.prototype.testVoice=function(t,e,i){for(var a=this.game.prodigy.event.create(),n=e;n<=i;n++)a.text(n,t);a.start()},t.prototype.testEventDaily=function(t){for(var e=null,i=null,a=0;a<this.game.prodigy.skin.active.length;++a)if(this.game.prodigy.skin.active[a]instanceof S.GameFestival){for(var n=(e=this.game.prodigy.skin.active[a]).dailyPlacements,o=0;o<n.length;++o)if(B.Util.isValid(n[o][t])){i=n[o];break}break}if(B.Util.isValid(i)){var r=new Date;this.game.prodigy.player.data[e.daily].date={d:r.getUTCDate(),m:r.getUTCMonth(),y:r.getUTCFullYear()},this.game.prodigy.player.data[e.daily].isComplete=0,this.game.prodigy.player.data[e.daily].dailyLocation=i,this.tp(t)}},t.prototype.changeDailyBonusDay=function(){var t=new Date;this.game.prodigy.player.data.dailyLoginBonus.date={d:t.getUTCDate()+1,m:t.getUTCMonth(),y:t.getUTCFullYear()},this.game.prodigy.player.updated=!0},t.prototype.setDailyBonusDay=function(t){var e=0;e=t>1&&t<6?t-1:6;var i=new Date;this.game.prodigy.player.data.dailyLoginBonus.date={d:i.getUTCDate()+e,m:i.getUTCMonth(),y:i.getUTCFullYear()},this.game.prodigy.player.data.dailyLoginBonus.day=e,this.game.prodigy.player.updated=!0},t.prototype.changeEventDay=function(){for(var t=null,e=0;e<this.game.prodigy.skin.active.length;++e)if(this.game.prodigy.skin.active[e]instanceof S.GameFestival){t=this.game.prodigy.skin.active[e];break}if(B.Util.isValid(t)){var i=new Date;this.game.prodigy.player.data[t.daily].date={d:i.getUTCDate()+1,m:i.getUTCMonth(),y:i.getUTCFullYear()},this.game.prodigy.player.updated=!0}},t.prototype.getCurrentDailyLocation=function(){for(var t=null,e=0;e<this.game.prodigy.skin.active.length;++e)if(this.game.prodigy.skin.active[e]instanceof S.GameFestival){t=this.game.prodigy.skin.active[e];break}if(B.Util.isValid(t))for(var i in this.game.prodigy.player.data[t.daily].dailyLocation)this.game.prodigy.player.data[t.daily].dailyLocation.hasOwnProperty(i)&&0===i.indexOf("lamplight")&&B.Util.log(i,B.Util.DEBUG)},t.prototype.resetBreadcrumbFeature=function(t){this.game.prodigy.breadcrumbManager.resetBreadcrumbs(U.Breadcrumbs[t])},t.prototype.resetAllBreadcrumbs=function(){for(var t in this.game.prodigy.breadcrumbManager.breadcrumbConfig.features)this.resetBreadcrumbFeature(t)},t.prototype.resetHouseVisitingBreadcrumbs=function(){this.resetBreadcrumbFeature("FEATURE_HOUSE_VISITING")},t.prototype.resetHouseMovingBreadcrumbs=function(){this.resetBreadcrumbFeature("FEATURE_HOUSE_MOVING")},t.prototype.resetDabBreadcrumbs=function(){this.resetBreadcrumbFeature("BREADCRUMB_CLICKED_DAB")},t.prototype.currentBGM=function(){B.Util.log("Current BGM: "+this.game.prodigy.audio.currentBgm.key)},t.prototype.setRoulette=function(e){t.ROULETTE=e},t.prototype.autoClick=function(t){this.game.broadcaster.broadcast(v.EDebugEvents.AutoClick,this.game,[t])},t.prototype.autoClickUI=function(t){this.game.broadcaster.broadcast(v.EDebugEvents.AutoClickUI,this.game,[t])},t.prototype.autoClickScene=function(t){this.game.broadcaster.broadcast(v.EDebugEvents.AutoClickScene,this.game,[t])},t.prototype.autoClickList=function(){this.game.broadcaster.broadcast(v.EDebugEvents.AutoClickList,this.game)},t.prototype.trigger=function(t,e){return this.game.prodigy.automation.trigger(t,e)},t.prototype.completeTutorial=function(){var t=this.game.prodigy.player.tutorial;this.setQuest("house",2),this.setQuest("academy",2),this.game.prodigy.player.backpack.addKeyItem(13,0),t.setMenuValue(14,0,1),t.setMenuValue(3,0,1),t.setMenuValue(3,1,1),t.setMenuValue(3,2,1),t.setMenuValue(23,0,1),this.game.prodigy.player.onTutorialComplete()},t.prototype.resetSurvey=function(){this.game.prodigy.player.data.survey=0},t.prototype.forceDrops=function(t){d.GameConstants.setDrops(this.game,t)},t.prototype.getAllZoneDrops=function(t){var e=[];"shipwreck_shore"===t&&(e=[{type:"hat",ID:39},{type:"hat",ID:40},{type:"hat",ID:76},{type:"hat",ID:77},{type:"hat",ID:78},{type:"hat",ID:79},{type:"hat",ID:80},{type:"hat",ID:81},{type:"outfit",ID:4},{type:"outfit",ID:35},{type:"outfit",ID:36},{type:"outfit",ID:57},{type:"outfit",ID:58},{type:"outfit",ID:59},{type:"outfit",ID:60},{type:"outfit",ID:61},{type:"outfit",ID:62},{type:"boots",ID:3},{type:"boots",ID:29},{type:"boots",ID:30},{type:"boots",ID:31},{type:"boots",ID:32},{type:"boots",ID:33},{type:"weapon",ID:19},{type:"weapon",ID:65},{type:"weapon",ID:66},{type:"weapon",ID:92},{type:"weapon",ID:93},{type:"weapon",ID:94},{type:"weapon",ID:95},{type:"follow",ID:130},{type:"follow",ID:131},{type:"follow",ID:132},{type:"follow",ID:133},{type:"key",ID:14},{type:"key",ID:15},{type:"key",ID:16},{type:"key",ID:17},{type:"item",ID:112},{type:"item",ID:113},{type:"item",ID:114},{type:"spell",ID:7},{type:"spell",ID:8},{type:"spell",ID:9}]);var i=B.Util.filterDuplicateKeys(this.game,e);i.length>0&&this.game.prodigy.open.gotItem(i,null)},t.prototype.startPippetBattle=function(t){for(var e=null,i=0;i<_.PippetEncounter.data.spawns.length;i++)(e=_.PippetEncounter.data.spawns[i]).location===t&&(this.game.prodigy.world.pippetEncounterDaily.init(),this.game.prodigy.world.pippetEncounterSpawn=e,this.tp(t))},t.prototype.setAttackOverride=function(t){d.GameConstants.setAttackOverride(t)},t.prototype.setEscapeChance=function(t){d.GameConstants.setEscapeChance(t)},t.prototype.getGame=function(){return this.game},t.prototype.addFriend=function(t){this.game.prodigy.friendsListNetworkHandler.sendFriendRequest(t)},t.prototype.removeFriend=function(t){this.game.prodigy.friendsListNetworkHandler.removeFriend(t)},t.prototype.getFriendsList=function(){B.Util.log(this.game.prodigy.friendsListNetworkHandler.friendsList,B.Util.DEBUG)},t.prototype.getDefaultFakeFriendData=function(t){void 0===t&&(t=!0);var e={userID:123,status:1,appearance:{nick:"Nickname here",face:1,hair:{color:1,style:1},eyeColor:1,gender:"female",skinColor:1,name:"Name Here "},isMember:1,data:{hp:123,allowsHouseVisitors:!1,gold:123,loss:1,tower:0,level:1,stars:0,team:0},equipment:{follow:1}};return t&&B.Util.log(e.toString(),B.Util.DEBUG),e},t.prototype.addFakeFriend=function(t){void 0===t&&(t=null);var e=this.game.prodigy.friendsListNetworkHandler,i=B.Util.isValid(t)?t:this.getDefaultFakeFriendData(!1);i.isFake=!0,e.totalFriends++,e.friendsList.push(i)},t.prototype.removeFakeFriend=function(t,e){void 0===e&&(e=!1);for(var i=this.game.prodigy.friendsListNetworkHandler,a=null,n=0,o=0;o<i.friendsList.length;o++)a=i.friendsList[o],(e||a.userID===t)&&a.isFake&&(i.friendsList.splice(o,1),i.totalFriends--,o--,n++);B.Util.log("Util.removeFakeFriend - number of fake friends removed: "+n,B.Util.DEBUG)},t.prototype.removeAllFakeFriends=function(){this.removeFakeFriend(0,!0)},t.prototype.triggerFailure=function(){this.game.prodigy.friendsListNetworkHandler.networkCallFailure(null,0)},t.prototype.getAllPotions=function(t){void 0===t&&(t=1);for(var e=[],i=96;i<=111;i++)e.push({type:"item",ID:i,N:t});this.game.prodigy.open.gotItem(e)},t.prototype.setEpicArena=function(t,e,i){B.Util.isValid(t)&&B.Util.isValid(e)&&B.Util.isValid(i)&&(O.EpicBoostMenu.FORCED_RESULT=[t,e,i])},t.prototype.showAreaEvents=function(t){C.TileScreen.DEBUG_DRAW_AREA_EVENTS=t},t.prototype.setClientVersion=function(t){this.game.prodigy.network.api.clientVersion=t},t.prototype.resetPrizeWheelSpins=function(t,e){delete t.prodigy.player.data["spinDate"+e],delete t.prodigy.player.data["numSpins"+e],t.prodigy.player.updated=!0},t.prototype.testRandom=function(t,e,i){for(var a=0,n=0;n<t;n++)r(s(e))[0]===i&&a++;B.Util.log("Randomized "+i+" "+a+" times.",B.Util.DEV)},t.prototype.setSplitTestLane=function(t){d.GameConstants.setSplitTestLane(t)},t.prototype.enableVerboseMetrics=function(t){B.Util.isValid(t)?M.NetworkManager.VERBOSE_ANALYTICS=t:B.Util.log("enableVerboseMetrics expects a boolean parameter. No action taken.",B.Util.ERROR)},t.prototype.changeDayLength=function(t){B.Util.isValid(t)?B.Util.DEBUG_DAY_LENGTH=t:B.Util.DEBUG_DAY_LENGTH=864e5},t.prototype.forceActivityZoneMonsterId=function(t){B.Util.isValid(t)?(N.ActivityZone.FORCE_MONSTER_TYPE=!0,N.ActivityZone.MONSTER_ID=t):N.ActivityZone.FORCE_MONSTER_TYPE=!1},t.prototype.drawUIElementBounds=function(t){for(var e=null,i=0;i<this.game.prodigy.open.renderMenus.length;i++)(e=this.game.prodigy.open.renderMenus[i]).debugDrawUIElementBounds(t&&e.visible)},t.prototype.openUIViewer=function(){this.game.prodigy.open.uiViewer()},t.prototype.showAllBounties=function(t){this.game.prodigy.world.getZone(t).debugBounties=!0},t.prototype.getCubes=function(t){for(var e=0;e<t;e++)this.game.prodigy.giftBoxController.receiveGiftBox(null,P.Items.getItem("giftBox",1))},t.prototype.openCubes=function(){this.game.prodigy.giftBoxController.giftBoxesToOpen.length>0&&this.game.prodigy.open.conjureCube(null)},t.prototype.setLevel=function(t){this.game.prodigy.player.data.level=1,this.game.prodigy.player.data.stars=0;for(var e=0;e<t;e++)this.game.prodigy.player.addStars(this.game.prodigy.player.getStarsToLevel())},t.prototype.skipBonusChance=function(){O.EpicBoostMenu.SKIP_BONUS_CHANCE=!0},t.prototype.enableDynamicLayer=function(t,e,i){this.game.broadcaster.broadcast(v.EMapEvents.EnableDynamicLayer,null,[this.game,t,e,i])},t.prototype.setFeedLimit=function(t){d.GameConstants.setFeedLimit(t)},t.prototype.setGameSpeed=function(e){if(d.GameConstants.setGameSpeed(e),!B.Util.isValid(t.TWEEN_FUNCTIONS_OVERRIDDEN)||!t.TWEEN_FUNCTIONS_OVERRIDDEN){var i=Phaser.TweenManager.prototype.add;Phaser.TweenManager.prototype.add=function(t){return t.timeScale=d.GameConstants.get("GameConstants.Debug.GAME_SPEED"),i.call(this,t)};var a=Phaser.Timer.prototype.add;Phaser.Timer.prototype.add=function(t,e,i){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];return a.call(this,t/d.GameConstants.get("GameConstants.Debug.GAME_SPEED"),e,i)};var n=Phaser.Tween.prototype.delay;Phaser.Tween.prototype.delay=function(t,e){return n.call(this,t/d.GameConstants.get("GameConstants.Debug.GAME_SPEED"),e)},t.TWEEN_FUNCTIONS_OVERRIDDEN=!0}for(var o=this.game.tweens.getAll(),r=0;r<o.length;r++)o[r].timeScale=e},t.prototype.startBattle=function(t,e,i){var a=this;void 0===t&&(t=1),void 0===e&&(e=5),void 0===i&&(i="singleImage-5");(function(t,e,i,n){a.game.prodigy.world.teleport(e,i,n)}).bind(this,this.game,this.game.prodigy.world.currentZone,this.game.prodigy.user.x,this.game.prodigy.user.y);var n=[];if(t instanceof Array)for(var o=0;o<t.length;++o)n.push({ID:t[o]});else n.push({ID:t});this.game.prodigy.battle.start({pets:n,level:e,screen:i},function(){a.game.prodigy.world.teleport("")},function(){a.game.prodigy.world.teleport("")},function(){a.game.prodigy.world.teleport("")})},t.prototype.automateHatSwitching=function(t){var e=this;this.hatSwitchEvent&&this.game.time.events.remove(this.hatSwitchEvent);var i=function(a){P.Items.getItem("hat",a).data?(e.game.prodigy.player.equipment.equip(a,"hat"),e.hatSwitchEvent=e.game.time.events.add(t,function(){i(a+1)})):e.game.prodigy.player.equipment.unEquip("hat"),e.game.prodigy.user.reload()};i(1)},t.prototype.setNextEpicArenaRound=function(t){var e=this.game.state.states.Battle;"Battle"===this.game.state.current&&B.Util.isValid(e.mods.epicArena)?e.mods.epicArena=t-1:B.Util.log("Not in epic arena!")},t.prototype.showDebugValue=function(t){var e=this.game.broadcaster.broadcast(v.EScreenEvents.GetLayer,this.game,["debugLayout"]);if(B.Util.isValid(e)){var i=E[t];B.Util.isValid(i)&&(d.GameConstants.get("GameConstants.Build.SHOW_DEBUG_VALUES").push(t),e.addRenderer(new i))}},t.prototype.hideDebugValue=function(t){var e=this.game.broadcaster.broadcast(v.EScreenEvents.GetLayer,this.game,["debugLayout"]);if(B.Util.isValid(e)){var i=E[t];if(B.Util.isValid(i)){var a=d.GameConstants.get("GameConstants.Build.SHOW_DEBUG_VALUES"),n=a.indexOf(t);n>-1&&a.splice(n,1),e.removeRenderer(e.findRendererByType(i))}}},t.prototype.enableVerboseLocalization=function(t){t?this.game.prodigy.gameContainer.bindLocalizer(o.VerboseLocalizer):this.game.prodigy.gameContainer.bindLocalizer(o.Localizer),this.game.prodigy.gameContainer.Localizer.setDataSource(new o.LocalLanguageDataCollection(i(114)))},t.prototype.enableDebugLocalization=function(t,e){void 0===e&&(e="*"),t?this.game.prodigy.gameContainer.bindLocalizer(o.DebugLocalizer):this.game.prodigy.gameContainer.bindLocalizer(o.Localizer),this.game.prodigy.gameContainer.Localizer.setDataSource(new o.LocalLanguageDataCollection(i(114)))},t.prototype.stressTestParticles=function(e,i){this.stressTestPlayerContainers(t.PARTICLE_STRESS_TEST_COMMON.users,i),this.clearEmitters();var a=e.particle;a.image=t.PARTICLE_STRESS_TEST_COMMON.image,a.frame=t.PARTICLE_STRESS_TEST_COMMON.frame;var n=e.emitter;n.repeat=t.PARTICLE_STRESS_TEST_COMMON.emitterRepeat;var o=this.game.particleStorm,r=null;o.clearData("basic"),o.addData("basic",a);for(var s=0;s<this.stressTests.playerContainers.length;s++)(r=o.createEmitter(Phaser.ParticleStorm.SPRITE_BATCH,B.Util.isValid(n.force)?n.force:new Phaser.Point(0,0))).addToWorld(this.stressTests.playerContainers[s]),r.emit("basic",50,-100,{repeat:n.repeat,frequency:n.frequency}),this.stressTests.emitters.push(r)},t.prototype.stressTestPlayerContainers=function(t,e){void 0===e&&(e=!0);for(var i=this.stressTests.playerContainers,a=0;a<i.length;a++)i[a].destroy();for(var n=this.game.add.group(this.game.broadcaster.broadcast(v.EScreenEvents.GetLayer,this.game,["content"])),o=t;o-- >0;){var r=new x.Player(this.game);e?r.createRandom():r.appearance.setAppearance({name:{first:1,middle:1,last:1},nick:null,gender:"male",hair:{style:0,color:1},skinColor:1,eyeColor:1,face:4});var s=o%16*80+40,l=100*Math.floor(o/16)+100,h=this.game.prodigy.create.player(n,r,1,s,l);h.reload(h.walk.bind(h)),this.stressTests.playerContainers.push(h)}},t.prototype.snow=function(){this.clearEmitters(),this.dynamicSnow("SMALL_SNOW"),this.dynamicSnow("BIG_SNOW")},t.prototype.dynamicSnow=function(e){var i=this.game.particleStorm,a=i.createEmitter(Phaser.ParticleStorm.SPRITE_BATCH),n=l(t.PARTICLE_STRESS_TEST_DATA[e].emitter);n.zone=i.createLineZone(-200,0,1280,0),i.clearData(e),i.addData(e,t.PARTICLE_STRESS_TEST_DATA[e].particle),a.addToWorld(),a.emit(e,0,0,n),this.stressTests.emitters.push(a)},t.prototype.clearEmitters=function(){for(var t=this.stressTests.emitters,e=null,i=0;i<t.length;i++)(e=t[i]).paused=!0,this.game.particleStorm.removeEmitter(e),e.destroy()},t.prototype.enableParticles=function(t){for(var e=this.stressTests.emitters,i=0;i<e.length;i++)e[i].paused=!t},t.prototype.spawnBuddyParticle=function(t,e,i,a,n){void 0===i&&(i=0),void 0===a&&(a=0),void 0===n&&(n=!0);var o=this.game.prodigy.user;B.Util.isValid(o.follow)&&(o.follow.destroy(),o.follow=null);var r=this.game.broadcaster.broadcast(v.EScreenEvents.GetLayer,this.game,["content"]);this.game.particleStorm.clearData(String(d.GameConstants.MAX_SAFE_INTEGER)),P.Items.itemMap["particleEffect-"+d.GameConstants.MAX_SAFE_INTEGER]={data:e},P.Items.itemMap["follow-"+t].data.particleEffects=[{ID:d.GameConstants.MAX_SAFE_INTEGER,x:i,y:a,inFront:n}];var s=this.game.prodigy.create.follow(r,t,1,o,null);s instanceof y.CreatureContainer&&s.reload(),o.follow=s},t.prototype.unlockColiseumOpponent=function(t){var e=5*t,i=D.Creature.starsToLevel(e-1),a=B.Util.isValid(this.game.prodigy.player.data.stars)?this.game.prodigy.player.data.stars:0;i>a&&this.game.prodigy.player.addStars(i-a),t>this.game.prodigy.player.getColiseum()&&(this.game.prodigy.player.setColiseum(t),this.game.prodigy.player.updated=!0)},t.prototype.lockColiseumOpponent=function(t){t<this.game.prodigy.player.getColiseum()&&(this.game.prodigy.player.setColiseum(t),this.game.prodigy.player.updated=!0)},t.prototype.setMyArenaLeaderboardScore=function(t,e){},t.prototype.setClassLeaderboardScore=function(t,e){var i=this.updateLeaderboardData(f.ClassLeadersPanel,t,"level",e);B.Util.isValid(i)&&i.setPage(i.page)},t.prototype.updateLeaderboardData=function(t,e,i,a){var n=this.game.broadcaster.broadcast(v.EDebugEvents.GetUIElement,this.game,[t]);if(B.Util.isValid(n)){n.leaders[e-1].data[i]=a,n.leaders.sort(function(t,e){return t.data[i]===e.data[i]?0:t.data[i]<e.data[i]?1:-1});for(var o=0;o<n.leaders.length;++o)n.leaders[o].place=o+1}return n},t.prototype.setCustomBounty=function(t,e){if(t>-1&&t<3&&(this.bountyOverrides[t]=e,B.Util.isValid(e.preName)&&"string"==typeof e.preName&&(e.preName=this.game.prodigy.bounty.preName.indexOf(e.preName)),B.Util.isValid(e.postName)&&"string"==typeof e.postName&&(e.postName=this.game.prodigy.bounty.postName.indexOf(e.postName)),B.Util.isValid(e.title)&&"string"==typeof e.title&&(e.title=this.game.prodigy.bounty.titleName.indexOf(e.title)),B.Util.isValid(e.monster)&&(B.Util.isValid(e.zone)?e.monster=this.game.prodigy.world.zones[e.zone].monsters.indexOf(e.monster):delete e.monster),B.Util.isValid(e.map)&&(B.Util.isValid(e.zone)||delete e.map),B.Util.isValid(e.reward)&&(e.reward=this.game.prodigy.bounty.reward.indexOf(e.reward)),B.Util.isValid(e.location)))if(B.Util.isValid(e.zone)&&B.Util.isValid(e.map)){var i=this.game.prodigy.world.zones[e.zone].maps[e.map];e.location>=i.coord.length&&delete e.location}else delete e.location},t.prototype.clearCustomBounty=function(t){delete this.bountyOverrides[t]},t.prototype.openMenu=function(t){var e=this.getMenus();if(e.hasOwnProperty(t)){var i=Array.prototype.slice.call(arguments,2);0===i.length&&(i=e[t]),this.game.prodigy.open[t].apply(this.game.prodigy.open,i)}else B.Util.log("Menu is not supported",B.Util.ERROR)},t.prototype.getMenus=function(){var t,e,i,n=this;return(t=function(){},e=function(){var t=new x.Player(n.game);return t.init(n.game.prodigy.player.data),n.game.prodigy.create.player(null,t)},i={chat:[],toyStore:[],nameChange:[!0],advancedNameChange:[!0,null,!0],achievement:[[n.game.prodigy.achievements.getData(1)]],toyUnlock:[],rating:[],choosePet:[1],createAccount:[],server:[[{id:"1",full:0,name:"Server 1",meta:{tag:"fire"}},{id:"2",full:0,name:"Server 2",meta:{tag:"earth"}},{id:"3",full:100,name:"Server 3",meta:{tag:"air"}},{id:"4",full:0,name:"Server 4",meta:{tag:"water"}},{id:"5",full:75,name:"Server 5",meta:{tag:"wizard"}},{id:"6",full:0,name:"Server 6",meta:{tag:"zone-ice"}}],null,!1],serverSelectMode:[[{id:"1",full:0,name:"Server 1",meta:{tag:"fire"}},{id:"2",full:0,name:"Server 2",meta:{tag:"earth"}},{id:"3",full:100,name:"Server 3",meta:{tag:"air"}},{id:"4",full:0,name:"Server 4",meta:{tag:"water"}},{id:"5",full:75,name:"Server 5",meta:{tag:"wizard"}},{id:"6",full:0,name:"Server 6",meta:{tag:"zone-ice"}}],t],houseEditorMenu:[null,n.game.state.states.TileScreen],catch:[null,t],battle:[e(),null,e()],memberPrompt:[],playAtHomePrompt:[],parentalLinkInfoPrompt:[A.ParentLinkBenefitsConfig.ANALYTICS_SOURCE_SETTINGS],parentalLinkSuccessPrompt:[],mailerOpenMail:[{data:{id:1,message:"This is test mail",subject:"TEST",attachments:[]}}],friendRequests:[t],itemInfo:[a({},P.Items.getItem("hat",1),{cost:[{type:"currency",ID:1,N:50}]}),t,"buy"],houseItemInfo:[a({},P.Items.getItem("dormbg",2),{cost:[{type:"currency",ID:1,N:50}]}),t,"buy"],bountyBoard:[],social:[I.ESocialMenuType.ClassLeaders],boostSelect:[[{icon:{type:"item",ID:47},d:"More gears"},{icon:{type:"fossil",ID:1},d:"Slow time"},{icon:"star2",d:"Multiplier"}],t],card:[n.game.prodigy.player,!0,!0],arena:[],stylist:[],membership:[T.MemberAd.NICKNAME],darkTowerMemberGate:[],nicknamer:[[{pre:"Buccaneer ",req:[{rtype:"item",type:"outfit",ID:36},{rtype:"item",type:"hat",ID:40},{rtype:"item",type:"weapon",ID:65}],fail:"You need to buy the Pirate set to unlock!"},{pre:"Captain ",req:[{rtype:"quest",zone:"shipwreck_shore",Q:11}],fail:"You need to complete the Shipwreck Shore quest to unlock!"},{pre:"Treasure Hunter ",req:[{rtype:"pet",ID:98}],fail:"You need to catch a Mimic to unlock!"},{pre:"First-mate ",member:!0,fail:"You need to become a member to unlock!"},{post:"beard the Pirate",member:!0,fail:"You need to become a member to unlock!"}]],gotItem:[[{type:"gold",N:10}]],message:["Message box body",t,null,"Title"],alert:["Alert body",t,null,"Title"],messageBox:["Message box yes/no body",t,t,null,"Title"],messageBoxGeneric:["Message box generic body",t,t,t,null,null,7,{modifyProperty:[{element:"yesText",property:"text",value:"400"},{element:"membershipGraphic",property:"visible",value:!1},{element:"houseGraphic",property:"atlasName",value:P.Items.getIconAtlas({type:"dormbg",ID:12})},{element:"houseGraphic",property:"frameName",value:P.Items.getIconFrame({type:"dormbg",ID:12})}]}],messageBoxOkay:["Okay message body","OK",t,null,"Title"],zoneProgress:[w.WorldMap.BUTTONS_CONFIG[0],t,t],titanProgress:[!0],character:[],backpack:[],pouch:["hat",t,!0],settings:[],map:[],store:[1],stylistStore:[19],buyToy:[133,!1],epicBoostMachine:[133,!1],battleSummary:[null,{totalStars:50,memberStarsEarned:0}],battleLevel:[n.game.prodigy.player,{type:b.BattleBase.LEVEL_UP,source:n.game.prodigy.player}],battlePotionSelect:[],confirmPotionUse:[P.Items.getItem("item",102),n.game.prodigy.player],potionPvpPopup:[],epicErrorMessage:["You can only use one Epic attack per battle!",{showClose:!1}],questDescription:[n.game.prodigy.world.zones.activity_zone.getDailyQuestData(0),t],pvpPrizes:[],membershipInfo:[],resultsMenu:[n.game.prodigy.player.kennel.getTeam(),{baseXP:100,memberXP:50,parentLinkXP:0,pippetXP:0},[{type:"gold",N:50}]],evolutionSummary:[new L.Monster(n.game,{ID:1,hp:500,isPVPTeam:!0,level:16,nickname:null,stars:2e3,team:1}),new L.Monster(n.game,{ID:1,hp:500,isPVPTeam:!0,level:1,nickname:null,stars:0,team:1})],spellSummary:[new L.Monster(n.game,{ID:2,hp:500,isPVPTeam:!0,level:50,nickname:null,stars:3500,team:1}),new L.Monster(n.game,{ID:1,hp:500,isPVPTeam:!0,level:1,nickname:null,stars:0,team:1})],heartSummary:[new L.Monster(n.game,{ID:2,hp:500,isPVPTeam:!0,level:50,nickname:null,stars:3500,team:1}),new L.Monster(n.game,{ID:1,hp:500,isPVPTeam:!0,level:1,nickname:null,stars:0,team:1})]},function(){return i})()},t.prototype.closeMenus=function(){this.game.prodigy.open.menuCloseAll()},t.prototype.resetRegisterDate=function(){this.game.prodigy.player.registerDate=new Date(0)},t.prototype.setCritChance=function(t){void 0===t&&(t=null);var e=t;e>1&&(e=1),d.GameConstants.setCrit(e)},t.prototype.setNFactor=function(t,e){void 0===e&&(e=2),t?d.GameConstants.setNFactor(e):d.GameConstants.setNFactor(null)},t.prototype.completeMatchmakingBattle=function(t){void 0===t&&(t=p.EPVPEndMode.Win),new u.PVPManager(this.game).showResults(t)},t.prototype.startPointsTicker=function(t,e,i){void 0===t&&(t=p.EPVPEndMode.Win),void 0===e&&(e=0),void 0===i&&(i=0),new u.PVPManager(this.game).startPointsTicker(t,e,i)},t.prototype.resetUserRank=function(){d.GameConstants.overrideUserRank(null),d.GameConstants.overrideUserPoints(null)},t.prototype.setUserRank=function(t,e,i,a){d.GameConstants.overrideUserRank({points:t,rank:e,toNextRank:i,toBaseRank:a}),d.GameConstants.overrideUserPoints(t)},t.prototype.showInactivityDialog=function(t){d.GameConstants.enableGameConstant(d.GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS,t),this.game.prodigy.network.showInactiveDialog()},t.prototype.setBootOutTimersInSeconds=function(t,e){d.GameConstants.enableGameConstant(d.GameConstants.Inactivity.NETWORK_BOOT_TIMER_SECONDS,e),d.GameConstants.enableGameConstant(d.GameConstants.Inactivity.CANNOT_CONNECT_TIMER_SECONDS,t)},t.prototype.parade=function(t,e,i,a){var n=this;void 0===t&&(t=5e3),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===a&&(a=0);for(var o=P.Items.data.pet,r=this.game.broadcaster.broadcast(v.EScreenEvents.GetLayer,this.game,["content"]),s=Math.max(0,i),l=B.Util.isValid(a)?o.length:Math.min(o.length,a),h=function(e){if(B.Util.isValid(o[e])){var i=o[e].ID,a=n.game.prodigy.create.monster(r,new L.Monster(n.game,{ID:o[e].ID}),[130,131,132,133].indexOf(i)>=0?1:2,-200,360);a.loadedCallback=function(e){B.Util.isValid(e.battleScale)?(e.scale.x=.5,e.scale.y=.5):(e.sprites.scale.x=e.battleScale,e.sprites.scale.y=e.battleScale),n.game.add.tween(e).to({x:1600},t,Phaser.Easing.Linear.None,!0).onComplete.add(e.destroy.bind(e)),e.showName(!0,e.source.data.ID+" "+e.source.source.name),e.walk()}.bind(n),a.startLoad()}},c=s;c<=l;c++)setTimeout(h.bind(this,c),e*(c-s))},t.prototype.transform=function(t,e,i,a){"player"===e?this.game.prodigy.user.resetItemTransformation(i):this.game.prodigy.user.transformToItem(t,e,i,a)},t.prototype.timerMenu=function(t,e){for(var i,a,n,o=this.game.state.states.TileScreen,r=0;r<e;r++){a=100*(i=r%12)+90,n=100*((r-i)/12)+70,this.game.prodigy.create.countdownTimer(o.above,a,n,{maxTime:t,timeDelta:15e3},null).autoUpdateTimer(!0)}},t.prototype.generateRandomPlayers=function(t,e){if(B.Util.isValid(this.generatedRandomPlayers))for(var i=0;i<this.generatedRandomPlayers.length;i++)this.generatedRandomPlayers[i].destroy();this.generatedRandomPlayers=[];var a,n,o,r=this.game.state.states.TileScreen;for(i=0;i<t;i++){e?(n=1280*Math.random(),o=720*Math.random()):(n=100*(a=i%12)+90,o=100*((i-a)/12)+70);var s=new x.Player(this.game),l=this.game.prodigy.create.player(r.content,s,1,n,o);l.randomSetup(),l.reload(),this.generatedRandomPlayers.push(l)}},t.prototype.transformGeneratedPlayers=function(t,e,i){var a=!B.Util.isValid(t);if(B.Util.isValid(this.generatedRandomPlayers))for(var n=0;n<this.generatedRandomPlayers.length;n++){var o=t,r=e,s=i;if(a){var l=Math.floor(6*Math.random())+117,h=P.Items.getItem("item",l).data;o=h.effect.transform,r=h.effect.ID,s=h.effect.time}this.generatedRandomPlayers[n].transformToItem(o,r,!0,s)}},t.prototype.resetMembershipReward=function(t){delete this.game.prodigy.player.data.reward,this.game.prodigy.player.backpack.data.mount=[],this.game.prodigy.player.memberPrompt=!1,this.game.prodigy.player.updated=!0,this.game.prodigy.player.backpack.updated=!0,t&&(B.Util.log("Logging out in 5 seconds...",B.Util.DEV),setTimeout(this.game.prodigy.network.logout.bind(this.game.prodigy.network),5e3))},t.prototype.escapeBattle=function(){this.game.state.callbackContext.runAwayCallback()},t.prototype.getWheelResult=function(t,e,i){var a=R.Random.weightedArrayElement(t).item,n=a.type,o=P.Items.getItem(a.type,a.ID);if(B.Util.isValid(e[n])||(e[n]={}),"currency"===n)B.Util.isValid(e[n][o.ID])||(e[n][o.ID]=0),e[n][o.ID]++;else if(B.Util.isValid(o.data)){var r="rarity-"+o.data.rarity,s="id-"+o.ID;B.Util.isValid(e[n][r])||(e[n][r]={},e[n][r].total=0),!B.Util.isValid(e[n][r][s])&&i&&(e[n][r][s]=0),e[n][r].total++,i&&e[n][r][s]++}else B.Util.isValid(e[n].total)||(e[n].total=0),e[n].total++},t.prototype.getSplitTestLane=function(t,e,i){void 0===i&&(i=B.SplitTestType.UserID);var a=this.game.prodigy.player,n=null;switch(i){case B.SplitTestType.UserID:n=a.userID;break;case B.SplitTestType.ClassID:n=B.Util.getLatestClassID(a.owners,a.playerTeachers,a.playerParents);break;case B.SplitTestType.Grade:n=a.grade;break;default:return B.Util.log("Invalid type "+i,B.Util.ERROR),-1}var o=Math.floor(n/t%e);return B.Util.log("Lane "+o,B.Util.DEV),o},t.prototype.getSplitTestGroup=function(t,e,i){switch(void 0===i&&(i=B.SplitTestType.UserID),this.getSplitTestLane(t,e,i)){case 0:case 1:B.Util.log("CONTROL",B.Util.DEV);break;case 2:case 3:B.Util.log("Group 1",B.Util.DEV);break;case 4:case 5:B.Util.log("Group 2",B.Util.DEV);break;case 6:case 7:B.Util.log("Group 3",B.Util.DEV);break;case 8:case 9:B.Util.log("Group 4",B.Util.DEV)}},t.prototype.setUnlimitedWheelSpins=function(t){d.GameConstants.setUnlimitedWheelSpins(t)},t.prototype.setWheelSpinDuration=function(t){d.GameConstants.setWheelSpinDuration(t)},t.prototype.maintainAspectRatio=function(t){void 0===t&&(t=!0),d.GameConstants.setMaintainAspectRatio(t),this.game.scale.scaleMode=d.GameConstants.get("GameConstants.Build.SCALE_MODE"),this.game.scale.refresh()},t.prototype.logChatPhrases=function(){for(var t=this.game.prodigy.chat.getPhrases(),e=0;e<t.length;e++)B.Util.log(t[e])},t.prototype.setCharacterCreationDate=function(t,e,i,a,n){void 0===a&&(a=0),void 0===n&&(n=0),d.GameConstants.setCharacterCreationDate(t,e,i,a,n)},t.prototype.setClassMode=function(t,e){t.prodigy.classModeController.overrideClassModeEnabled=e},t.prototype.setStoreCacheExpirationTime=function(t){this.game.prodigy.gameContainer.get(n.InjectionIdentifiers.CacheExpirationStrategy).setExpiryTimeInSeconds(t)},t.prototype.clearStoreCache=function(){this.game.prodigy.gameContainer.get(g.ProdigyInjectionIdentifiers.StoreService).invalidateCache()},t.prototype.enableSkynet=function(t,e){this.addPlayerTimer=this.game.time.events.repeat(1e3*t,e,this.createFakePlayer,this,this.game),this.updatePlayerTimer=this.game.time.events.loop(3e3,this.updatePlayers,this,this.game)},t.prototype.disableSkynet=function(){for(var t in this.game.time.events.remove(this.addPlayerTimer),this.game.time.events.remove(this.updatePlayerTimer),this.fakePlayers)this.game.state.states.TileScreen.removePlayer(parseInt(t));this.fakePlayers={}},t.prototype.createFakePlayer=function(){for(var t=h(1e6,1e9);void 0!==this.fakePlayers[t];)t=h(1e6,1e9);var e=h(1,!0)>=.5?"male":"female",i={userID:t,target:{x:-1,y:-1},appearance:{name:{first:c(P.Items.getItemsWithFilter("name",function(t){return 0===t.data.type})).ID,middle:c(P.Items.getItemsWithFilter("name",function(t){return 1===t.data.type})).ID,last:c(P.Items.getItemsWithFilter("name",function(t){return 2===t.data.type})).ID},nick:null,gender:e,hair:{style:c(P.Items.data.hair).ID,color:c(P.Items.data.hairColor).ID},skinColor:c(P.Items.data.skinColor).ID,eyeColor:c(P.Items.data.eyeColor).ID,face:c(P.Items.data.face).ID},isMember:h(1,!0)>=.5?1:0,equipment:{hat:c(P.Items.data.hat).ID,weapon:c(P.Items.data.weapon).ID},data:{level:h(1,100),gold:h(0,1e4),stars:h(0,3e3),hp:h(0,300),allowsHouseVisitors:!1,versionID:15,nm:1}};this.fakePlayers[t]=i,this.game.state.states.TileScreen.addPlayer(i)},t.prototype.updatePlayers=function(){for(var t in this.fakePlayers)(-1===this.fakePlayers[t].target.x||h(1,!0)>.5)&&(this.fakePlayers[t].target={x:h(5,55),y:h(5,30)},this.game.state.states.TileScreen.movePlayer(this.fakePlayers[t]))},t.prototype.setMemberStarsTimeout=function(){var t=new m.MemberStarController(this.game);return this.game.prodigy.player.data.memberStarsExpirationDate=t.getNextExpirationDate().getTime(),B.Util.log("I set the member star jar timeout to: "+this.game.prodigy.player.data.memberStarsExpirationDate),this.getMemberStarsTimeout()},t.prototype.getMemberStarsTimeout=function(){return new Date(this.game.prodigy.player.data.memberStarsExpirationDate)},t.prototype.createNotification=function(t,e,i){var a=this.game.prodigy.notifications.initNotificationTemplate(t,e,i);this.game.prodigy.notifications.pushNotification({id:t,data:a})},t.prototype.startSessionCamRecording=function(t,e){t.prodigy.gameContainer.get(g.ProdigyInjectionIdentifiers.SessionRecorder).startRecording(e)},t.prototype.stopSessionCamRecording=function(t,e){t.prodigy.gameContainer.get(g.ProdigyInjectionIdentifiers.SessionRecorder).stopRecording()},t.prototype.editUiJson=function(t){new k.LiveUIPreview(this.game,this.game.world,t)},t.prototype.setMonsterRadiusVisible=function(t){d.GameConstants.setMonsterRadiusVisible(t)},t.prototype.restartTutorial=function(){this.game.prodigy.player.state.data.tutorial={},this.game.prodigy.player.state.data.zone={},this.game.prodigy.player.state.data.world={},this.game.prodigy.player.state.data.breadcrumbs={},this.game.prodigy.player.state.updated=!0,this.game.prodigy.player.tutorial.setData({menus:{},zones:{}}),this.game.prodigy.player.tutorial.updated=!0,this.game.prodigy.player.backpack.data.key=[],this.game.prodigy.player.backpack.data.weapon=this.game.prodigy.player.backpack.data.weapon.filter(function(t){return 25!==t.ID}),this.game.prodigy.player.backpack.updated=!0,this.game.prodigy.player.appearance.setName(null),delete this.game.prodigy.player.equipment.data.hat,this.game.prodigy.player.data.level=1,this.game.prodigy.player.data.stars=0,this.game.prodigy.player.updated=!0,this.tp("house")},t.ROULETTE=-1,t.TWEEN_FUNCTIONS_OVERRIDDEN=!1,t.PARTICLE_STRESS_TEST_COMMON={users:50,image:"atlas-160",frame:"particle",emitterRepeat:-1},t.PARTICLE_STRESS_TEST_DATA={SMALL_SNOW:{particle:{image:"atlas-10",frame:"42-16",lifespan:8e3,vy:{min:2,max:2},vx:{min:.5,max:1},rotation:{value:0,delta:{min:-2,max:2}}},emitter:{repeat:-1,frequency:50}},BIG_SNOW:{particle:{image:"atlas-10",frame:"42-30",lifespan:5e3,vy:{min:3,max:3},vx:{min:.25,max:.75},rotation:{value:0,delta:{min:-3,max:3}}},emitter:{repeat:-1,frequency:150}},LOW_LIFESPAN_ALL_OFF:{particle:{lifespan:1e3,vx:{min:-1,max:1},vy:{min:-1,max:1}},emitter:{frequency:50}},MED_LIFESPAN_ALL_OFF:{particle:{lifespan:2e3,vx:{min:-1,max:1},vy:{min:-1,max:1}},emitter:{frequency:50}},HIGH_LIFESPAN_ALL_OFF:{particle:{lifespan:4e3,vx:{min:-1,max:1},vy:{min:-1,max:1}},emitter:{frequency:50}},MED_FREQUENCY_ALL_OFF:{particle:{lifespan:1e3,vx:{min:-1,max:1},vy:{min:-1,max:1}},emitter:{frequency:100}},HIGH_FREQUENCY_ALL_OFF:{particle:{lifespan:1e3,vx:{min:-1,max:1},vy:{min:-1,max:1}},emitter:{frequency:500}},SCALE_ONLY:{particle:{lifespan:1e3,vx:{min:-1,max:1},vy:{min:-1,max:1},scale:{min:.8,max:1.3}},emitter:{frequency:50}},SCALE_INTERPOLATE_ONLY:{particle:{lifespan:1e3,vx:{min:-1,max:1},vy:{min:-1,max:1},scale:{value:2,control:Phaser.ParticleStorm.Graph.CONTROL_LINEAR}},emitter:{frequency:50}},ROTATION_ONLY:{particle:{lifespan:1e3,vx:{min:-1,max:1},vy:{min:-1,max:1},rotation:{initial:0,value:360}},emitter:{frequency:50}},FORCE_ONLY:{particle:{lifespan:1e3,vx:{min:-1,max:1},vy:{min:-1,max:1}},emitter:{frequency:50,force:new Phaser.Point(1,0)}},ALPHA_ON_ONLY:{particle:{lifespan:1e3,vx:{min:-1,max:1},vy:{min:-1,max:1},alpha:{min:.2,max:.8}},emitter:{frequency:50}},ALPHA_INTERPOLATE_ONLY:{particle:{lifespan:1e3,vx:{min:-1,max:1},vy:{min:-1,max:1},alpha:{value:1,control:Phaser.ParticleStorm.Graph.CONTROL_LINEAR}},emitter:{frequency:50}}},t}();e.Debug=G},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__assign||Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0});var r=i(10),s=i(2),l=i(76),h=i(1),c=i(3),p=i(4),u=i(0),d=i(18),g=i(7),y=i(180),f=i(521),m=function(t){function e(e,i,a,n,o,r,s){var l=t.call(this,e,i,a,n,o,r,s)||this;return l.floor=void 0,l.cleared=!1,l.ball=null,l.mods=null,l}return n(e,t),e.prototype.init=function(e,i,a,n){var o=this.floor%5==0;return this.enableLayerID(0,o),this.enableLayerID(1,!o),this.enableLayerID(2,o&&!this.cleared),this.enableLayerID(3,!o&&!this.cleared),this.enableLayerID(4,o&&this.cleared),this.enableLayerID(5,!o&&this.cleared),t.prototype.init.call(this,e,i,a,n)},e.prototype.cleanup=function(){this.stopListeners(),t.prototype.cleanup.call(this)},e.prototype.setup=function(e,i,a){var n=this;void 0===a&&(a={}),t.prototype.setup.call(this,e,i,a),this.initListeners(),this.zone.bgmID=4,i.menuBar.open(0,!1);var r=this.isOnTopFloorAndNotComplete();if(this.cleared){for(var c=!1,p=0;p<y.DarktowerZone.REWARDS.length;p++){var u=y.DarktowerZone.REWARDS[p];if(u.floor===this.floor){for(var d=this.game.prodigy.dialogue.create(),g=0;g<u.text.length;g++)d.setText(o({},u.text[g],{text:e.prodigy.gameContainer.Localizer.getText(u.text[g].textKey)}));100===this.floor&&(r=!1),d.setText({callback:this.game.prodigy.open.gotItem.bind(this.game.prodigy.open,u.reward,function(){n.onFloorComplete()},null,"dark-tower")}),d.start("mira"),c=!0}}c||this.onFloorComplete(),this.floor<100&&this.addAreaEvent(e,i,{x:900,y:200,w:120,h:80},null,null,null,function(){n.toFloor(n.floor+1)},h.EAreaEventAngle.UP)}else if(this.floor<100){this.ball=this.game.prodigy.create.sprite(640,360,"atlas-124","orb"),this.ball.alpha=.5,this.ball.inputEnabled=!0,this.ball.anchor.setTo(.5,1),this.ball.events.onInputDown.add(this.battle.bind(this,i,this.ball),this),i.content.add(this.ball),this.game.add.tween(this.ball).to({y:this.ball.y+10},1e3,Phaser.Easing.Quadratic.InOut,!0,0,s.GameConstants.MAX_SAFE_INTEGER,!0);var f=this.game.prodigy.create.font(i.content,590,295,""+this.floor,{size:40,width:100,align:"center"});this.game.add.tween(f).to({y:f.y+10},1e3,Phaser.Easing.Quadratic.InOut,!0,0,s.GameConstants.MAX_SAFE_INTEGER,!0);var m=this.game.prodigy.create.sprite(847,65,"atlas-124","barrier"),_=this.game.prodigy.create.sprite(953,65,"atlas-124","barrier");_.scale.x=-1,m.inputEnabled=!0,m.events.onInputDown.add(function(){n.blockDoor()}),m.alpha=.8,this.game.add.tween(m).to({alpha:.3},1500,Phaser.Easing.Linear.None,!0,0,1e4,!0),i.background.add(m),_.inputEnabled=!0,_.events.onInputDown.add(function(){n.blockDoor()}),_.alpha=.8,this.game.add.tween(_).to({alpha:.3},1500,Phaser.Easing.Linear.None,!0,0,1e4,!0),i.background.add(_)}if(this.floor%5==0){var v={x:810,y:600};if(this.floor<100){var E=this.cleared?"-noglow":"",b=i.content.add(this.game.prodigy.create.sprite(400,400,"atlas-124","statue"+E)),O=i.content.add(this.game.prodigy.create.sprite(880,400,"atlas-124","statue"+E));b.anchor.setTo(.5,1),O.anchor.setTo(.5,1),b.scale.x=-1,v={x:750,y:310}}new l.QuestNPC(this.game,i.content,v.x,v.y,{name:this.game.prodigy.gameContainer.Localizer.getText("NPC_NAME_MIRA_SHADE"),atlas:"mira",atlasID:77},function(){n.onMiraClick(i)}).highlight(r,-80,-150)}},e.prototype.toBase=function(){var t=this,e=this.game.prodigy.player.getTowerProgress();if((e=e-e%5+1)<100){var i=this.game.prodigy.dialogue.create();i.setText({text:this.game.prodigy.gameContainer.Localizer.getText("TOWER_PROMPT_LEAVE",e),face:3,anim:1,audio:y.DarktowerZone.AUDIO[1],yes:function(){t.game.prodigy.world.teleport("darktower-A1",850,380)}}),i.start("mira")}else this.game.prodigy.world.teleport("darktower-A1",850,380)},e.prototype.updateZoneNameFromCurrentFloor=function(){this.zoneName="darktower-"+(this.floor<100?"A2-":"A3-")+"-"+this.floor},e.prototype.initListeners=function(){s.GameConstants.get("GameConstants.Build.DEBUG")&&(this.game.broadcaster.addAppListener(c.EDebugEvents.AutoClickScene,this.onDebugAutoClick.bind(this),this),this.game.broadcaster.addAppListener(c.EDebugEvents.AutoClickList,this.onDebugAutoClickList.bind(this),this))},e.prototype.stopListeners=function(){s.GameConstants.get("GameConstants.Build.DEBUG")&&(this.game.broadcaster.removeAppListener(c.EDebugEvents.AutoClickScene,this,this.game),this.game.broadcaster.removeAppListener(c.EDebugEvents.AutoClickList,this,this.game))},e.prototype.onDebugAutoClick=function(t){"orb"===t&&u.Util.isValid(this.ball)&&this.battle(this.screen,this.ball)},e.prototype.onDebugAutoClickList=function(){u.Util.log("orb")},e.prototype.isOnTopFloorAndNotComplete=function(){return 100===this.floor&&this.game.prodigy.player.getTowerProgress()<100},e.prototype.onMiraClick=function(t){this.isOnTopFloorAndNotComplete()?this.battle(t):this.npcDialogue()},e.prototype.onFloorComplete=function(){var t=this;if(this.game.prodigy.player.completeTower(this.floor),this.game.prodigy.player.isBlockedByDarkTowerMemberGate()){var e={conversionFunnelName:d.EFunnelEventIDs.FunnelEnterDarkTower,conversionFunnelMetadata:"previewEnd"};this.game.prodigy.network.sendConversionFunnelEvent(e.conversionFunnelName,d.EFunnelEventIDs.StageEnterTower,e.conversionFunnelMetadata),this.game.prodigy.open.membership({},function(){t.game.prodigy.player.isBlockedByDarkTowerMemberGate()&&t.game.prodigy.world.teleport("darktower-A1",200,400)},e)}},e.prototype.blockDoor=function(){var t=this.game.prodigy.dialogue.create();t.setText({text:this.game.prodigy.gameContainer.Localizer.getText("TOWER_PROMPT_MUST_DEFEAT"),face:3,anim:1,audio:y.DarktowerZone.AUDIO[1]}),t.start("mira")},e.prototype.setPlayerAsOpponent=function(t){var e=this.game.prodigy.player,i={level:r(this.game.prodigy.player.data,"level",100).toString()},a={data:JSON.stringify(i),appearance:JSON.stringify(e.appearance.data),equipment:JSON.stringify(e.equipment.data)};t.wizards=[a],t.pets=[];for(var n=this.game.prodigy.player.kennel.getTeam(),o=0;o<n.length;o++)if(u.Util.isValid(n[o])){var s=n[o].getID(),l=n[o].getLevel();u.Util.isValid(p.Items.getItem("pet",s))&&t.pets.push({ID:s,level:l})}},e.prototype.npcDialogue=function(){var t=this.game.prodigy.dialogue.create(),e=this.game.prodigy.gameContainer.Localizer;this.game.prodigy.player.getTowerProgress()<100?t.setText({text:e.getText("TOWER_NEXT_CHALLENGER"),face:3,anim:4,audio:y.DarktowerZone.AUDIO[2]}):t.setText({text:e.getText("TOWER_ALL_DEFEATED"),face:0}),t.start("mira")},e.prototype.battle=function(t,e){u.Util.isValid(e)&&(e.inputEnabled=!1);var i=y.DarktowerZone.OPPONENTS[this.floor-1],a=Math.min(Math.floor(this.floor/10),10);if(90===this.floor&&this.setPlayerAsOpponent(i),this.mods={boss:u.Util.copyObject(i.boss),screen:this.battleBG,opponent:u.Util.copyObject(i.wizards),catch:!1,pets:u.Util.copyObject(i.pets),difficulty:a,towerFloor:this.floor},u.Util.isValid(this.mods.boss)&&u.Util.isValid(this.mods.boss.nameKey)&&(this.mods.boss.name=this.game.prodigy.gameContainer.Localizer.getText(this.mods.boss.nameKey)),this.floor%5!=0)new f.Roulette(this.game,t,t.above,this.mods,this.startBattle.bind(this));else{t.user.setValidPath(t.path,t.user.x,t.user.y);var n=y.DarktowerZone.DIALOGUE[Math.floor(this.floor/5-1)];if(u.Util.isValid(n)){for(var r=this.game.prodigy.dialogue.create(),s=0;s<n.length;s++)r.setText(o({},n[s],{text:this.game.prodigy.gameContainer.Localizer.getText(n[s].textKey)}));r.setText({callback:this.startBattle.bind(this)}),r.start("mira")}else this.startBattle()}},e.prototype.startBattle=function(){var t=this,e="";this.floor<10?e="00":this.floor<100&&(e="0"),this.game.prodigy.network.sendAnalytics("Dark-Tower-Battle","Floor"+e+this.floor+"-BattleStarted","Events");var i=function(e){var i=t.floor<100?"A2":"A3";t.zone.maps[i].cleared=!0,t.game.prodigy.world.teleport("darktower-"+i,e.x,e.y)};s.GameConstants.get("GameConstants.Debug.AUTO_RESOLVE_TOWER_BATTLES_ENABLED")?i(this.screen.user.position):(this.game.prodigy.network.sendBattleStartTypeEvent("DarkTowerBattle"),this.game.prodigy.battle.start(this.mods,function(){t.game.prodigy.world.teleport("darktower-A1",200,400)},i.bind(this,this.screen.user.position),null,"darktower-A1"))},e.prototype.toFloor=function(t){if(t>100)this.toBase();else{var e=t<100?"A2":"A3";this.zone.maps[e].floor=t,this.zone.maps[e].updateZoneNameFromCurrentFloor(),this.zone.maps[e].cleared=!1,this.game.prodigy.world.teleport("darktower-"+e,260,550)}},e}(g.Map);e.DarktowerMap=m},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(38),r=i(0),s=i(31),l=i(523),h=i(522),c=i(481),p=function(t){function e(e){var i=t.call(this,e)||this;i.name="Dark Tower",i.ID="darktower",i.battleBG="battle-tower-inside",i.onFaint="darktower-A1",i.questHub="darktower-A1",i.states=[];var a=["tileset-darktower","npc-forest-new","tileset-generic-new","tileset-collisions","tileset-forest-new","atlas-77","bgm-4"];return i.maps={A1:new l.DarktowerA1(i,a),A2:new h.DarktowerA2(i,a),A3:new c.DarktowerA3(i,a)},i}return n(e,t),e.prototype.teleport=function(e,i,a,n,o){void 0===o&&(o={}),r.Util.isValid(this.maps[e].floor)?t.prototype.teleport.call(this,e,260,550,n,o):"A1"!==e?t.prototype.teleport.call(this,"A1",200,400,n,o):t.prototype.teleport.call(this,"A1",i,a,n,o)},e.AUDIO=[{tag:"voice-2",s:0,d:1},{tag:"voice-2",s:1,d:1},{tag:"voice-2",s:2,d:1},{tag:"voice-2",s:3,d:1},{tag:"voice-2",s:4,d:2},{tag:"voice-2",s:6,d:1},{tag:"voice-2",s:7,d:2},{tag:"voice-2",s:9,d:1}],e.REWARDS=[{floor:10,reward:[{type:"gold",N:500}],text:[{textKey:"DIALOGUE_MIRA_REWARD",face:0,audio:e.AUDIO[6]}]},{floor:20,reward:[{type:"gold",N:500}],text:[{textKey:"DIALOGUE_MIRA_REWARD",face:0,audio:e.AUDIO[6]}]},{floor:30,reward:[{type:"gold",N:500}],text:[{textKey:"DIALOGUE_MIRA_REWARD",face:0,audio:e.AUDIO[6]}]},{floor:40,reward:[{type:"gold",N:500}],text:[{textKey:"DIALOGUE_MIRA_REWARD",face:0,audio:e.AUDIO[6]}]},{floor:50,reward:[{type:"gold",N:1e3}],text:[{textKey:"DIALOGUE_MIRA_REWARD",face:0,audio:e.AUDIO[6]}]},{floor:60,reward:[{type:"gold",N:500}],text:[{textKey:"DIALOGUE_MIRA_REWARD",face:0,audio:e.AUDIO[6]}]},{floor:70,reward:[{type:"gold",N:500}],text:[{textKey:"DIALOGUE_MIRA_REWARD",face:0,audio:e.AUDIO[6]}]},{floor:80,reward:[{type:"gold",N:500}],text:[{textKey:"DIALOGUE_MIRA_REWARD",face:0,audio:e.AUDIO[6]}]},{floor:90,reward:[{type:"gold",N:500}],text:[{textKey:"DIALOGUE_MIRA_REWARD",face:0,audio:e.AUDIO[6]}]},{floor:100,reward:[{type:"outfit",ID:38},{type:"hat",ID:42},{type:"weapon",ID:68}],text:[{textKey:"DIALOGUE_MIRA_DEFEAT_0",face:3,audio:e.AUDIO[3]},{textKey:"DIALOGUE_MIRA_DEFEAT_1",face:3},{textKey:"DIALOGUE_MIRA_DEFEAT_2",face:1,audio:e.AUDIO[6]},{textKey:"DIALOGUE_MIRA_DEFEAT_3",face:2},{textKey:"DIALOGUE_MIRA_DEFEAT_4",face:1,audio:e.AUDIO[0]}]}],e.DIALOGUE=[[{textKey:"DIALOGUE_MIRA_9",face:0,audio:e.AUDIO[2]}],[{textKey:"DIALOGUE_MIRA_10",face:2},{textKey:"DIALOGUE_MIRA_11",face:1,audio:e.AUDIO[0]}],[{textKey:"DIALOGUE_MIRA_12",face:0},{textKey:"DIALOGUE_MIRA_13",face:0,audio:e.AUDIO[0]}],[{textKey:"DIALOGUE_MIRA_14",face:2},{textKey:"DIALOGUE_MIRA_15",face:1}],[{textKey:"DIALOGUE_MIRA_16",face:0,audio:e.AUDIO[6]}],[{textKey:"DIALOGUE_MIRA_17",face:2},{textKey:"DIALOGUE_MIRA_18",face:1,audio:e.AUDIO[0]}],[{textKey:"DIALOGUE_MIRA_19",face:2},{textKey:"DIALOGUE_MIRA_20",face:2,audio:e.AUDIO[0]}],[{textKey:"DIALOGUE_MIRA_21",face:1},{textKey:"DIALOGUE_MIRA_22",face:2,audio:e.AUDIO[1]}],[{textKey:"DIALOGUE_MIRA_23",face:2},{textKey:"DIALOGUE_MIRA_24",face:0}],[{textKey:"DIALOGUE_MIRA_25",face:2,audio:e.AUDIO[1]},{textKey:"DIALOGUE_MIRA_26",face:0,audio:e.AUDIO[2]}],[{textKey:"DIALOGUE_MIRA_27",face:3,audio:e.AUDIO[3]}],[{textKey:"DIALOGUE_MIRA_28",face:2},{textKey:"DIALOGUE_MIRA_29",face:1,audio:e.AUDIO[0]}],[{textKey:"DIALOGUE_MIRA_30",face:2},{textKey:"DIALOGUE_MIRA_31",face:2}],[{textKey:"DIALOGUE_MIRA_32",face:2},{textKey:"DIALOGUE_MIRA_33",face:2}],[{textKey:"DIALOGUE_MIRA_34",face:2},{textKey:"DIALOGUE_MIRA_35",face:1}],[{textKey:"DIALOGUE_MIRA_36",face:1,audio:e.AUDIO[2]}],[{textKey:"DIALOGUE_MIRA_37",face:0,audio:e.AUDIO[1]}],[{textKey:"DIALOGUE_MIRA_38",face:3},{textKey:"DIALOGUE_MIRA_39",face:3,audio:e.AUDIO[3]}],[{textKey:"DIALOGUE_MIRA_40",face:3},{textKey:"DIALOGUE_MIRA_41",face:3,audio:e.AUDIO[2]}],[{textKey:"DIALOGUE_MIRA_42",face:3,audio:e.AUDIO[1]},{textKey:"DIALOGUE_MIRA_43",face:3},{textKey:"DIALOGUE_MIRA_44",face:0,audio:e.AUDIO[7]},{textKey:"DIALOGUE_MIRA_45",face:1,audio:e.AUDIO[0]},{textKey:"DIALOGUE_MIRA_46",face:3,audio:e.AUDIO[2]}]],e.OPPONENTS=[{pets:[{ID:99,level:5}]},{pets:[{ID:102,level:5}]},{pets:[{ID:100,level:5}]},{pets:[{ID:103,level:5}]},{pets:[{ID:101,level:5},{ID:104,level:5}]},{pets:[{ID:31,level:10}]},{pets:[{ID:55,level:10}]},{pets:[{ID:60,level:10}]},{pets:[{ID:29,level:10}]},{pets:[{ID:92,level:10},{ID:93,level:10}]},{pets:[{ID:27,level:15}]},{pets:[{ID:45,level:15}]},{pets:[{ID:48,level:15}]},{pets:[{ID:96,level:15}]},{pets:[{ID:28,level:15},{ID:49,level:15}]},{pets:[{ID:4,level:20}]},{pets:[{ID:10,level:20}]},{pets:[{ID:5,level:20}]},{pets:[{ID:11,level:20}]},{pets:[{ID:6,level:20},{ID:12,level:20}]},{pets:[{ID:1,level:25}]},{pets:[{ID:52,level:25}]},{pets:[{ID:2,level:25}]},{pets:[{ID:53,level:25}]},{pets:[{ID:3,level:25},{ID:54,level:25}]},{pets:[{ID:78,level:30}]},{pets:[{ID:46,level:30}]},{pets:[{ID:40,level:30}]},{pets:[{ID:79,level:30}]},{pets:[{ID:80,level:30},{ID:47,level:30},{ID:50,level:30}]},{pets:[{ID:94,level:35}]},{pets:[{ID:85,level:35}]},{pets:[{ID:82,level:35}]},{pets:[{ID:76,level:35}]},{pets:[{ID:35,level:35},{ID:36,level:35},{ID:37,level:35}]},{pets:[{ID:87,level:40}]},{pets:[{ID:99,level:40}]},{pets:[{ID:94,level:40}]},{pets:[{ID:102,level:40}]},{pets:[{ID:95,level:40},{ID:80,level:40},{ID:23,level:40}]},{pets:[{ID:16,level:45}]},{pets:[{ID:47,level:45}]},{pets:[{ID:40,level:45}]},{pets:[{ID:80,level:45}]},{pets:[{ID:62,level:45},{ID:26,level:45},{ID:44,level:45}]},{pets:[{ID:63,level:50}]},{pets:[{ID:66,level:50}]},{pets:[{ID:69,level:50}]},{pets:[{ID:72,level:50}]},{boss:{ID:1,level:50,element:"fire",attacks:[1,2,3,4,25,26,27],maxHP:4*(o.Creature.getHeartsFromCurve("A+",1,50)+12),name:"Grandoff",spriteOffsetY:80,battleOffsetX:80,starBonus:100}},{pets:[{ID:23,level:55}]},{pets:[{ID:46,level:56}]},{pets:[{ID:23,level:57}]},{pets:[{ID:46,level:58}]},{pets:[{ID:46,level:60},{ID:23,level:60},{ID:47,level:60}]},{pets:[{ID:75,level:65}]},{pets:[{ID:78,level:66}]},{pets:[{ID:81,level:67}]},{pets:[{ID:84,level:68}]},{pets:[{ID:80,level:70},{ID:83,level:70},{ID:86,level:70}]},{pets:[{ID:43,level:75}]},{pets:[{ID:12,level:76}]},{pets:[{ID:54,level:77}]},{pets:[{ID:6,level:78}]},{pets:[{ID:58,level:80},{ID:25,level:80},{ID:61,level:80}]},{pets:[{ID:75,level:85}]},{pets:[{ID:78,level:86}]},{pets:[{ID:81,level:87}]},{pets:[{ID:84,level:88}]},{pets:[{ID:31,level:90},{ID:33,level:90},{ID:31,level:90}]},{pets:[{ID:63,level:50},{ID:64,level:85}]},{pets:[{ID:66,level:55},{ID:67,level:85}]},{pets:[{ID:69,level:60},{ID:70,level:85}]},{pets:[{ID:72,level:65},{ID:73,level:85}]},{pets:[{ID:2,level:95},{ID:5,level:95},{ID:8,level:95},{ID:11,level:95}]},{pets:[{ID:1,level:95}]},{pets:[{ID:4,level:96}]},{pets:[{ID:7,level:97}]},{pets:[{ID:10,level:98}]},{wizards:[{data:'{"level":50}',appearance:'{"name":"Frozine", "gender":"female", "hair": { "style": 11, "color": 9 }, "skinColor":1, "eyeColor":13}',equipment:'{"hat":37, "outfit":33, "weapon":63}'},{data:'{"level":50}',appearance:'{"name":"Thundane", "gender":"male", "hair": { "style": 19, "color": 16 }, "skinColor":2, "eyeColor":9}',equipment:'{"hat":8, "outfit":24, "weapon":23}'},{data:'{"level":50}',appearance:'{"name":"Sprout", "gender":"female", "hair": { "style": 7, "color": 8 }, "skinColor":3, "eyeColor":6}',equipment:'{"hat":33, "outfit":29, "weapon":24}'},{data:'{"level":50}',appearance:'{"name":"Charcole", "gender":"male", "hair": { "style": 18, "color": 6 }, "skinColor":2, "eyeColor":3}',equipment:'{"hat":11, "outfit":8, "weapon":64}'},{data:'{"level":50}',appearance:'{"name":"Pounce", "gender":"male", "hair": { "style": 23, "color": 5 }, "skinColor":4, "eyeColor":14}',equipment:'{"hat":32, "outfit":31, "weapon":60}'}]},{pets:[{ID:38,level:100}]},{pets:[{ID:87,level:100}]},{pets:[{ID:39,level:100}]},{pets:[{ID:72,level:100}]},{pets:[{ID:43,level:100},{ID:26,level:100,evolve:[{ID:25,lvl:53}]},{ID:44,level:100,evolve:[{ID:43,lvl:43}]},{ID:61,level:100}]},{pets:[{ID:57,level:100}]},{pets:[{ID:61,level:100}]},{pets:[{ID:15,level:100}]},{pets:[{ID:98,level:100}]},{},{pets:[{ID:49,level:100}]},{pets:[{ID:50,level:100}]},{pets:[{ID:54,level:100}]},{pets:[{ID:39,level:100,evolve:[{ID:38,lvl:50}]}]},{pets:[{ID:97,level:100},{ID:89,level:100,evolve:[{ID:87,lvl:50},{ID:88,lvl:55}]},{ID:12,level:100,evolve:[{ID:11,lvl:55}]},{ID:42,level:100,evolve:[{ID:40,lvl:58},{ID:41,lvl:60}]}]},{pets:[{ID:63,level:50},{ID:66,level:50},{ID:69,level:50},{ID:72,level:50}]},{pets:[{ID:64,level:75},{ID:67,level:75},{ID:70,level:75},{ID:73,level:75}]},{pets:[{ID:65,level:100},{ID:68,level:100},{ID:71,level:100},{ID:74,level:100}]},{pets:[{ID:63,level:50},{ID:66,level:50},{ID:69,level:50},{ID:72,level:50}]},{boss:{ID:2,level:100,element:"wizard",attacks:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],maxHP:4*(o.Creature.getHeartsFromCurve("A+",1,100)+12),name:"Mira Shade",spriteOffsetY:200,spriteOffsetX:130}}],e}(s.Zone);e.DarktowerZone=p},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(4),s=i(0),l=i(31),h=i(565),c=i(564),p=i(563),u=i(562),d=i(561),g=i(559),y=i(558),f=function(t){function e(e){var i=t.call(this,e)||this;i.name="Activity_Zone",i.ID="activity_zone",i.battleBG="battle-forest-generic",i.onFaint="activity_zone-B3",i.questHub="activity_zone-B3",i.states=["firstVisit","dailyQuest","questCompleteDialogue","questExpiredDialogue","handedOverQuest","chest1"],i.monsterIds=[{ID:19},{ID:21},{ID:22},{ID:34},{ID:36},{ID:37},{ID:41},{ID:53},{ID:54},{ID:58},{ID:60},{ID:64},{ID:65},{ID:67},{ID:70},{ID:71},{ID:75},{ID:82},{ID:88},{ID:93}];var a=["tileset-firefly-new","tileset-forest-new","tileset-generic-new","tileset-collisions","tileset-activityzone"];return i.maps={A1:new h.ActivityZoneA1(i,a),A2:new c.ActivityZoneA2(i,a),B1:new p.ActivityZoneB1(i,a),B2:new u.ActivityZoneB2(i,a),B3:new d.ActivityZoneB3(i,a),C1:new g.ActivityZoneC1(i,a),C2:new y.ActivityZoneC2(i,a)},i}return n(e,t),e.prototype.getDailyQuestData=function(t){if(0===t){var e=this.getMonsterId(),i=this.game.prodigy.gameContainer.Localizer.getText(22===e.ID?"QUESTS_ACTIVITY_ZONE_DAILY_SINGLE":"QUESTS_ACTIVITY_ZONE_DAILY_PLURAL",r.Items.getItem("pet",e.ID).data.name),a="default-pet-"+e.ID,n=this.game.prodigy.assets.getImageBounds(a),o=this.game.prodigy.assets.getImagePivots(a);return{description:i,source:a,frame:null,xOffset:s.Util.isValid(o[0])?-o[0]:-n[0],yOffset:-n[3]}}return null},e.prototype.getMonsterId=function(){var t;if(o.GameConstants.get("GameConstants.Build.DEBUG")&&e.FORCE_MONSTER_TYPE)t=this.monsterIds[e.MONSTER_ID%this.monsterIds.length];else{var i=this.hasDailyQuestExpired()||this.isDailyQuestComplete()||!s.Util.isValid(this.getState("dailyQuest"))?s.Util.getDateId():this.getState("dailyQuest").dateId;t=this.monsterIds[Math.floor(this.game.seededRandom.frac(i)*this.monsterIds.length)]}return t},e.prototype.getDailyQuestDescription=function(t){return 0===t?{type:"pet",ID:this.getMonsterId().ID,N:this.getRemainingQuestObjectives()}:{}},e.prototype.getMonsterList=function(){if(this.hasDailyQuestExpired()||this.isDailyQuestComplete()&&this.getState("handedOverQuest"))return this.monsterIds;for(var t=s.Util.copyObject(this.monsterIds),e=this.getMonsterId(),i=0;i<t.length;i++)if(e.ID===t[i].ID)return t.splice(i,1),t},e.prototype.onNpcClicked=function(t){var e=this.game.prodigy.event.create();this.game.prodigy.network.sendAnalytics("activity-zone-npc","speak-npc-MVP","Events"),this.isDailyQuestComplete()?(e.text(3,"swoopy"),e.text(4,"swoopy"),e.function(this.activityEndQuest.bind(this,t))):this.hasDailyQuestExpired()?(e.text(0,"swoopy"),e.text(1,"swoopy"),e.function(this.game.prodigy.open.questDescription.bind(this.game.prodigy.open,this.getDailyQuestData(0),this.activityStartQuest.bind(this,t)))):e.text(2,"swoopy"),e.start()},e.prototype.activityStartQuest=function(t){this.startNewDailyQuest(0,6),this.setState("questCompleteDialogue",!1),this.setState("questExpiredDialogue",!1),this.setState("handedOverQuest",!1),s.Util.isValid(t)&&t.process(!0)},e.prototype.activityEndQuest=function(t){this.setState("handedOverQuest",!0),s.Util.isValid(t)&&t.process(!0)},e.FORCE_MONSTER_TYPE=!1,e.MONSTER_ID=0,e}(l.Zone);e.ActivityZone=f},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(16),r=function(t){function e(e,i,a,n){var o=t.call(this,e,i,{name:e.prodigy.gameContainer.Localizer.getText("NPC_NAME_PUPPETMASTER"),npc:!0,nameX:0,nameY:-250},1,a,n)||this;return o.setup(),o}return n(e,t),e.prototype.setup=function(){var t="atlas-83",e=-61,i=-150;this.sprite=this.game.prodigy.create.element(this.sprites,0,0),this.armR=this.sprite.add(this.game.prodigy.create.sprite(-73,-124,t,"arm-right")),this.handR=this.sprite.add(this.game.prodigy.create.sprite(-83,-138,t,"hand-1")),this.body=this.sprite.add(this.game.prodigy.create.sprite(e,i,t,"body-0")),this.armL=this.sprite.add(this.game.prodigy.create.sprite(9,-132,t,"arm-left")),this.handL=this.sprite.add(this.game.prodigy.create.sprite(62,-132,t,"hand-0")),this.fingersL=this.sprite.add(this.game.prodigy.create.sprite(44,-163,t,"fingers-0")),this.head=this.sprite.add(this.game.prodigy.create.sprite(-41,-186,t,"head")),this.staff=this.sprite.add(this.game.prodigy.create.sprite(-114,-220,t,"staff-0")),this.walkTween=[],this.walkTween.push(new o.TweenController(this.head)),this.walkTween[0].set("y",[this.head.y,this.head.y-2,this.head.y-3,this.head.y-2],200,9999),this.walkTween.push(new o.TweenController(this.body)),this.walkTween[1].set("frameName",["body-0","body-1","body-2","body-3"],200,9999),this.walkTween.push(new o.TweenController(this.body)),this.walkTween[2].set("y",[this.body.y,this.body.y-4,this.body.y-4,this.body.y-2],200,9999),this.walkTween.push(new o.TweenController(this.armR)),this.walkTween[3].set("y",[this.armR.y,this.armR.y-5,this.armR.y-5,this.armR.y-2],200,9999),this.walkTween.push(new o.TweenController(this.armR)),this.walkTween[4].set("x",[this.armR.x,this.armR.x+1,this.armR.x,this.armR.x-1],200,9999),this.walkTween.push(new o.TweenController(this.handR)),this.walkTween[5].set("y",[this.handR.y,this.handR.y-3,this.handR.y-3,this.handR.y-1],200,9999),this.walkTween.push(new o.TweenController(this.handR)),this.walkTween[6].set("x",[this.handR.x,this.handR.x-2,this.handR.x-3,this.handR.x-2],200,9999),this.walkTween.push(new o.TweenController(this.staff)),this.walkTween[7].set("y",[this.staff.y,this.staff.y-3,this.staff.y-4,this.staff.y-3],200,9999),this.walkTween.push(new o.TweenController(this.armL)),this.walkTween[8].set("y",[this.armL.y,this.armL.y-4,this.armL.y-3,this.armL.y-1],200,9999),this.walkTween.push(new o.TweenController(this.armL)),this.walkTween[9].set("x",[this.armL.x,this.armL.x-1,this.armL.x-1,this.armL.x-1],200,9999),this.walkTween.push(new o.TweenController(this.handL)),this.walkTween[10].set("y",[this.handL.y,this.handL.y-2,this.handL.y-1,this.handL.y+1],200,9999),this.walkTween.push(new o.TweenController(this.handL)),this.walkTween[11].set("x",[this.handL.x,this.handL.x-1,this.handL.x-1,this.handL.x],200,9999),this.walkTween.push(new o.TweenController(this.fingersL)),this.walkTween[12].set("frameName",["fingers-0","fingers-1","fingers-2","fingers-1"],200,9999),this.walkTween.push(new o.TweenController(this.fingersL)),this.walkTween[13].set("y",[this.fingersL.y,this.fingersL.y-1,this.fingersL.y,this.fingersL.y+1],200,9999),this.walkTween.push(new o.TweenController(this.fingersL)),this.walkTween[11].set("x",[this.fingersL.x,this.fingersL.x+1,this.fingersL.x+1,this.fingersL.x],200,9999),this.stand()},e.prototype.walk=function(){this.stand()},e.prototype.update=function(){t.prototype.update.call(this);for(var e=0;e<this.walkTween.length;e++)this.walkTween[e].update()},e.prototype.stand=function(){for(var t=0;t<this.walkTween.length;t++)this.walkTween[t].start()},e}(i(14).CreatureContainer);e.PuppetMaster=r},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(16),r=i(96),s=i(0),l=function(t){function e(e,i,a,n,o,r,s){var l=t.call(this,e,i,{name:e.prodigy.gameContainer.Localizer.getText("NPC_NAME_PIPPET"),npc:!0},null,a,n)||this;return l.tweens=[],l.user=o,l.path=r,l.mods={boss:{element:"shadow",attacks:[43],name:"Pippet",tag:"pippet",pippetBattle:!0,heartsCurveType:"A-",levelOffset:3},drops:[{type:"currency",ID:3,N:1}],difficulty:8},l.setup(),l}return n(e,t),e.prototype.setup=function(){var t="atlas-82",e=-20,i=-60;this.sprite=this.game.prodigy.create.element(this.sprites,0,0),this.torso=this.sprite.add(this.game.prodigy.create.sprite(e,i,t,"torso")),this.head=this.sprite.add(this.game.prodigy.create.sprite(-53,-122,t,"head-0")),this.face=this.sprite.add(this.game.prodigy.create.sprite(-13,-91,t,"face-0")),this.handL=this.sprite.add(this.game.prodigy.create.sprite(-47,-55,t,"hand-l-0")),this.handR=this.sprite.add(this.game.prodigy.create.sprite(28,i,t,"hand-r-0")),this.sprite.add(this.game.prodigy.create.sprite(-33,-24,t,"feet")),this.walkTween=[],this.walkTween.push(new o.TweenController(this.head)),this.walkTween[0].set("frameName",["head-0","head-0","head-0","head-1","head-2","head-0"],133,9999),this.walkTween.push(new o.TweenController(this.head)),this.walkTween[1].set("y",[this.head.y,this.head.y,this.head.y+1,this.head.y+3,this.head.y+2,this.head.y+1],133,9999),this.walkTween.push(new o.TweenController(this.face)),this.walkTween[2].set("frameName",["face-0","face-0","face-2","face-0","face-1","face-1"],133,9999),this.walkTween.push(new o.TweenController(this.face)),this.walkTween[3].set("y",[this.face.y,this.face.y,this.face.y+1,this.face.y+3,this.face.y+2,this.face.y+1],133,9999),this.walkTween.push(new o.TweenController(this.torso)),this.walkTween[4].set("y",[this.torso.y,this.torso.y,this.torso.y,this.torso.y+1,this.torso.y+1,this.torso.y],133,9999),this.walkTween.push(new o.TweenController(this.handL)),this.walkTween[5].set("frameName",["hand-l-0","hand-l-0","hand-l-0","hand-l-1","hand-l-2","hand-l-1"],133,9999),this.walkTween.push(new o.TweenController(this.handL)),this.walkTween[6].set("y",[this.handL.y,this.handL.y,this.handL.y,this.handL.y+1,this.handL.y+1,this.handL.y+1],133,9999),this.walkTween.push(new o.TweenController(this.handR)),this.walkTween[7].set("frameName",["hand-r-0","hand-r-0","hand-r-0","hand-r-1","hand-r-2","hand-r-1"],133,9999),this.walkTween.push(new o.TweenController(this.handR)),this.walkTween[8].set("y",[this.handR.y,this.handR.y,this.handR.y,this.handR.y+2,this.handR.y+2,this.handR.y+2],133,9999),this.stand()},e.prototype.process=function(t,e){this.zone=t,this.map=e},e.prototype.update=function(){t.prototype.update.call(this);for(var e=0;e<this.tweens.length;e++)this.tweens[e].update();var i=Phaser.Math.distanceSq(this.x,this.y,this.user.x,this.user.y)<4e4,a=!1;s.Util.isValid(this.game.prodigy.world.pippetEncounterDaily)&&(a=this.game.prodigy.world.pippetEncounterDaily.isComplete());var n=this.path.isPathBlocked(this.x,this.y,this.user.x,this.user.y),o=this.visible&&!this.user.evtProc&&i&&!n;this.started||!a&&!o||this.alert()},e.prototype.alert=function(){this.started=!0,this.user.setPath([]),this.user.x=Math.floor(this.user.x),this.user.y=Math.floor(this.user.y),this.game.prodigy.network.emitMessage({action:"move",data:{userID:this.game.prodigy.player.userID,path:[{x:this.user.x,y:this.user.y}]}});var t=this.game.prodigy.event.create();t.function(this.faceToward.bind(this,this.user.x)),this.game.prodigy.world.pippetEncounterDaily.isComplete()?this.completeDailyCutscene(t):this.startDailyCutscene(t),t.start()},e.prototype.startDailyCutscene=function(t){var e=this;t.function(this.chat.bind(this,1,150,!0)),t.function(this.faceToward.bind(this,this.user.x)),t.delay(1e3),t.function(function(){e.chatBubble.destroy(),e.endChat()}),t.delay(300),t.text(this.game.prodigy.world.pippetEncounterSpawn.dialogue,"pippet"),t.sound(19,"monster"),t.function(this.startBattle.bind(this))},e.prototype.completeDailyCutscene=function(t){t.text(r.PippetEncounter.data.completeDialogue,"pippet"),t.function(this.stopAnimations.bind(this)),t.set(this.nameText,"visible",!1),t.set(this.pivot,"y",.5*-this.height),t.set(this,"y",this.y-.5*this.height),t.tween(this.scale,{x:0,y:0},1e3,Phaser.Easing.Linear.None,!0),t.tween(this,{x:640,y:-200,rotation:360},1e3,Phaser.Easing.Linear.None),t.set(this.game.prodigy.world,"pippetEncounterSpawn",null),t.set(this,"visible",!1)},e.prototype.startBattle=function(){var t=this.game,e=this.map.getLocation(),i={x:this.user.x,y:this.user.y};this.mods.screen=this.map.battleBG,this.game.prodigy.network.sendAnalytics("random-pippet-battles","pippet-initiate-class-percent","Events"),this.game.prodigy.network.sendBattleStartTypeEvent("PippetBattle"),this.zone.getBattle(this.map,this.game.prodigy.gameContainer.Localizer.getText("COMBAT_PIPPET_BATTLE"),this.mods,function(){t.prodigy.world.pippetEncounterDaily.complete(),t.prodigy.world.teleport(e,i.x,i.y)})()},e.prototype.walk=function(){this.stand();this.hopTween=this.game.add.tween(this.sprite.position),this.hopTween.to({y:-50},150,Phaser.Easing.Linear.None,!0,0,-1,!0),this.nameHop=this.game.add.tween(this.nameText.position),this.nameHop.to({y:this.nameText.position.y+-50},150,Phaser.Easing.Linear.None,!0,0,-1,!0)},e.prototype.stand=function(){this.tweens=this.walkTween;for(var t=0;t<this.tweens.length;t++)this.tweens[t].start();s.Util.isDefined(this.hopTween)&&this.hopTween.repeat(0),s.Util.isDefined(this.nameHop)&&this.nameHop.repeat(0)},e.prototype.stopAnimations=function(){this.tweens=[],s.Util.isDefined(this.hopTween)&&(this.hopTween.stop(),this.hopTween=null),s.Util.isDefined(this.nameHop)&&(this.nameHop.stop(),this.nameHop=null)},e}(i(14).CreatureContainer);e.Pippet=l},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,i){return t.call(this,e,"GH2","MAP_ACADEMY_GREATHALL",640,600,["academy-GH3","academy-GH1"],i.concat(["spine-65","spine-69","spine-72","spine-73","spine-74"]))||this}return n(e,t),e.prototype.setup=function(i,a,n){t.prototype.setup.call(this,i,a,n),this.addAreaEvent(i,a,{x:640,y:40,w:960,h:80},"academy-GH1",640,600),this.addAreaEvent(i,a,{x:640,y:680,w:960,h:120},"academy-GH3",640,100);var o=this.game.add.spine(640,403,"spine-65");o.setToSetupPose(),this.screen.content.add(o),e.addEffects(i,a)},e.addEffects=function(t,e){var i=t.add.spine(160,600,"spine-72");i.setToSetupPose(),i.setAnimationByName(0,"animation",!0);var a=t.add.spine(1120,600,"spine-72");a.setToSetupPose(),a.setAnimationByName(0,"animation",!0),e.foreground.add(i),e.foreground.add(a);var n=t.add.spine(160,600,"spine-74");n.setToSetupPose(),n.setAnimationByName(0,"animation",!0);var o=t.add.spine(1120,600,"spine-74");o.setToSetupPose(),o.setAnimationByName(0,"animation",!0),e.background.add(n),e.background.add(o)},e}(i(7).Map);e.AcademyGH2=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,i){return t.call(this,e,"GH1","MAP_ACADEMY_GREATHALL",640,500,["academy-GH2"],i.concat(["spine-68","spine-69","spine-71","spine-73"]))||this}return n(e,t),e.prototype.setup=function(i,a,n){t.prototype.setup.call(this,i,a,n),this.addAreaEvent(i,a,{x:640,y:680,w:960,h:120},"academy-GH2",640,100),e.addEffects(i,a)},e.addEffects=function(t,e){var i=265,a=420,n=1015,o=420,r=t.add.spine(419,212,"spine-68");r.setToSetupPose(),r.setAnimationByName(0,"animation",!0);var s=t.add.spine(861,212,"spine-68");s.setToSetupPose(),s.setAnimationByName(0,"animation",!0),e.foreground.add(r),e.foreground.add(s);var l=t.add.spine(i,a,"spine-71");l.setToSetupPose(),l.setAnimationByName(0,"animation",!0),l.scale.x=-1;var h=t.add.spine(n,o,"spine-71");h.setToSetupPose(),h.setAnimationByName(0,"animation",!0),e.foreground.add(l),e.foreground.add(h);var c=t.add.spine(i,a,"spine-73");c.setToSetupPose(),c.setAnimationByName(0,"animation",!0),c.scale.x=-1;var p=t.add.spine(n,o,"spine-73");p.setToSetupPose(),p.setAnimationByName(0,"animation",!0),e.background.add(c),e.background.add(p)},e}(i(7).Map);e.AcademyGH1=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(){}return t.getRandomHint=function(e){return t.data[e][Math.floor(Math.random()*t.data[e].length)]},t.data={none:[{textKey:"HINT_0"},{textKey:"HINT_1"},{textKey:"HINT_2"},{textKey:"HINT_3"},{textKey:"HINT_4"},{textKey:"HINT_5"},{textKey:"HINT_6"},{textKey:"HINT_7"},{textKey:"HINT_8"},{textKey:"HINT_9"},{textKey:"HINT_10"},{textKey:"HINT_11"},{textKey:"HINT_12"},{textKey:"HINT_13"},{textKey:"HINT_14"},{textKey:"HINT_15"},{textKey:"HINT_16"},{textKey:"HINT_17"},{textKey:"HINT_18"},{textKey:"HINT_19"},{textKey:"HINT_20"},{textKey:"HINT_21"},{textKey:"HINT_22"},{textKey:"HINT_23"},{textKey:"HINT_24"},{textKey:"HINT_25"},{textKey:"HINT_26"}]},t}();e.Hints=a},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=function(t){function e(e,i,a){var n=t.call(this,e,i,a)||this;return n.festivalName="",n.dailyPlacements=[],n.daily="daily",n.dailyMonsters=[],n.dailyDrops=[],n.dailyLoginBonusItem=null,n.canDoDaily=!1,n.festivalHub="lamplight-B3",n.battleTPCoordinates=[640,320],n.dailyEventSize=new Phaser.Point(40,40),n.dailyHighlighterOffset=new Phaser.Point(-40,0),n}return n(e,t),e.prototype.init=function(e){var i=this.game.prodigy.player.canDoDaily(this.daily,this.resetDaily.bind(this,this.game.prodigy.player)),a=this.game.prodigy.player.data[this.daily];return this.canDoDaily=i&&o.Util.isValid(a)&&o.Util.isValid(a.dailyLocation)&&o.Util.isValid(a.dailyLocation[e.saveTag]),o.Util.isValid(this.dailyLoginBonusItem)&&(this.game.prodigy.dailyLoginBonusRewards.rewards[4]=this.dailyLoginBonusItem),t.prototype.init.call(this,e)},e.prototype.setIntroState=function(t,e,i){void 0===i&&(i=""),t.data[this.daily]["intro"+i]=e,t.updated=!0},e.prototype.signOnInputDown=function(t,e,i,a,n){var r=this.game.prodigy.player.data[this.daily];o.Util.isValid(r)&&1===r.isComplete&&1!==this.game.prodigy.player.eventSignClicked&&1!==r.signClickedAndDailyCompleted&&(this.game.prodigy.network.sendAnalytics("Sign-Clicked-And-Daily-Completed"),r.signClickedAndDailyCompleted=1),this.game.prodigy.player.eventSignClicked=1,this.game.prodigy.open.message(t,e,i,a,null,n)},e.prototype.placeDaily=function(t,e){var i=this.game.prodigy.player.data[this.daily].dailyLocation;if(o.Util.isValid(i)&&o.Util.isValid(i[e])){var a=null;if(this.canDoDaily){var n=i[e][0],r=i[e][1];a=this.game.prodigy.create.element(t.foreground,n,r),t.addClickableEvent(n,r,this.dailyEventSize.x,this.dailyEventSize.y,this.revealDailyMonster.bind(this,t,e),null,0,null),a.highlight(!0,this.dailyHighlighterOffset.x,this.dailyHighlighterOffset.y),a.arrow.frameName="exclamation",a.add(a.game.prodigy.create.sprite(-14,0,"atlas-21","eggpile"))}}},e.prototype.resetDaily=function(t){t.data[this.daily].monsterID=this.dailyMonsters[Math.floor(Math.random()*this.dailyMonsters.length)],t.data[this.daily].dailyLocation=this.dailyPlacements[Math.floor(Math.random()*this.dailyPlacements.length)]},e.prototype.revealDailyMonster=function(t,e,i){var a=i||[0,0],n=this.game.prodigy.player.data[this.daily].dailyLocation[e],o=this.game.prodigy.event.create();this.battleTPCoordinates=[n[0]+a[0],n[1]+a[1]],o.validPath(t.user,t.path,this.battleTPCoordinates[0],this.battleTPCoordinates[1]),o.function(t.user.faceToward.bind(t.user,n[0])),o.enableInput(!1),o.function(t.user.chat.bind(t.user,1)),o.delay(2e3),o.enableInput(!0),o.function(this.startDailyBattle.bind(this,e)),o.start()},e.prototype.startDailyBattle=function(t){var e={drops:this.dailyDrops,dropsDisabled:!0,allowMember:!1,run:!0,catch:!1,screen:"battle-lamplight-outside",invincible:!1,pets:[{ID:this.game.prodigy.player.data[this.daily].monsterID}]};this.game.prodigy.network.sendBattleStartTypeEvent("SpecialEventBattle"),this.game.prodigy.battle.start(e,this.runaway.bind(this,t),this.dailyBattleComplete.bind(this,t),null,this.festivalHub)},e.prototype.runaway=function(t){this.game.prodigy.world.teleport(t,this.battleTPCoordinates[0],this.battleTPCoordinates[1])},e.prototype.dailyBattleComplete=function(t){var e=this.game.prodigy.player.data[this.daily];o.Util.isValid(e.totalCompleted)?e.totalCompleted++:(e.totalCompleted=1,1===this.game.prodigy.player.eventSignClicked&&(this.game.prodigy.network.sendAnalytics("Sign-Clicked-And-Daily-Completed"),e.signClickedAndDailyCompleted=1)),this.game.prodigy.network.sendAnalytics(this.festivalName.replace(/ /g,"-")+"-Daily","Complete","Events"),this.game.prodigy.player.completeDaily(this.daily,1),this.game.prodigy.world.teleport(t,this.battleTPCoordinates[0],this.battleTPCoordinates[1])},e.prototype.openStore=function(t){o.Util.isValid(t)&&this.game.prodigy.open.store(t,null,this.purchasedEventItem.bind(this))},e.prototype.purchasedEventItem=function(){var t=this.game.prodigy.player.data[this.daily];o.Util.isValid(t.purchasedEventItems)?t.purchasedEventItems++:t.purchasedEventItems=1,t.boughtEventItem++},e.prototype.teleportToEvent=function(t){this.game.prodigy.world.teleport(o.Util.isValid(t)?t:this.festivalHub)},e}(i(91).Skin);e.GameFestival=r},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(43),r=i(50),s=function(t){function e(e,i){var a=t.call(this)||this;return a.player=null,a.stepsBehind=0,a.isIdling=!1,a.coords=[],a.renderer=null,a.player=e,a.stepsBehind=i,a}return n(e,t),e.prototype.create=function(){t.prototype.create.call(this),this.renderer=this.gameObject.findComponent(r.Renderer),this.renderer.setAnchor(.5,0)},e.prototype.update=function(){t.prototype.update.call(this);var e=this.coords[this.coords.length-1],i=Math.round(this.player.x),a=Math.round(this.player.y);if(0!==this.coords.length&&e.x===this.player.x&&e.y===this.player.y||this.coords.push({x:i,y:a}),this.coords.length>this.stepsBehind){var n=this.coords[0];this.gameObject.position.x<n.x?this.gameObject.scale.x=1:this.gameObject.position.x>n.x&&(this.gameObject.scale.x=-1),this.isIdling&&(this.renderer.playAnimation("walk",!0),this.isIdling=!1),this.gameObject.position.set(n.x,n.y),this.coords.splice(0,1)}else this.isIdling||(this.renderer.playAnimation("idle",!0),this.isIdling=!0)},e}(o.Component);e.Follow=s},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(14),r=i(0),s=function(t){function e(e,i,a,n,o,s,l){var h=t.call(this,e,i,{name:l,npc:!0},null,a,n)||this;return h.body=h.add(e.prodigy.create.sprite(-35,0,"atlas-65","mini")),h.body.anchor.setTo(0,1),h.body.animations.add("stand",["mini","mini1","mini2","mini3","mini2","mini1"],10,!0,!1),h.body.animations.play("stand"),h.sprites.add(h.body),h.nameText.y+=40,r.Util.isValid(l)&&h.showName(!0),h}return n(e,t),e.prototype.bossStart=function(t){this.rightArm=this.add(t.prodigy.create.sprite(50,-30,"atlas-65","hand_1")),this.body=this.add(t.prodigy.create.sprite(-40,-90,"atlas-65","body")),this.head=this.add(t.prodigy.create.sprite(-20,-45,"atlas-65","face_1")),this.hat=this.add(t.prodigy.create.sprite(-55,-135,"atlas-65","hat_0")),this.leftArm=this.add(t.prodigy.create.sprite(-50,-30,"atlas-65","hand_2")),this.sprites.add(this.rightArm),this.sprites.add(this.body),this.sprites.add(this.head),this.sprites.add(this.hat),this.sprites.add(this.leftArm),t.add.tween(this.head).to({y:"-1"},200,Phaser.Easing.Linear.None).to({y:"+2"},500,Phaser.Easing.Linear.None).to({y:this.head.y},400,Phaser.Easing.Linear.None).loop().start(),t.add.tween(this.hat).to({y:"-1"},200,Phaser.Easing.Linear.None).to({y:"+2"},500,Phaser.Easing.Linear.None).to({y:this.hat.y},400,Phaser.Easing.Linear.None).loop().start(),t.add.tween(this.leftArm).to({y:"+2"},800,Phaser.Easing.Linear.None).delay(600).to({y:this.leftArm.y},800,Phaser.Easing.Linear.None).loop().start(),this.rightArm.frameName="spatula_0",this.rightArm.y=this.rightArm.y-60,this.rightArm.x=this.rightArm.x-15},e.prototype.entreeStart=function(){this.rightArm.frameName="spatula_1",this.rightArm.x=this.rightArm.x+15,this.hat.frameName="hat_1"},e.prototype.dessertStart=function(){this.hat.frameName="hat_2",this.hat.x=this.hat.x-20,this.hat.y=this.hat.y-5,this.head.frameName="face_2"},e}(o.CreatureContainer);e.CebolliniEvent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),n=function(){function t(t){this.data=null,this.data=t}return t.getEventFlags=function(){return{time:3e4,events:{game_source:{enabled:!0},game_sink:{enabled:!0},game_complete:{enabled:!0},game_mod:{enabled:!0},game_avatar:{enabled:!0},game_level_up:{enabled:!0},game_social:{enabled:!0},subdomain_test:{enabled:!0}}}},t.prototype.getGameClientVersion=function(){return this.getValue("gameClientVersion")},t.prototype.getDataURI=function(){return t.getURI(this.getValue("gameDataPath"),this.getGameDataVersion(),"data")},t.prototype.getLocaleURI=function(){return t.getURI(this.getValue("gameDataPath"),"1","locale")},t.prototype.getStoresURI=function(){return t.getURI(this.getValue("gameDataPath"),this.getGameDataVersion(),"stores")},t.prototype.getGameLibURI=function(){return this.getValue("gameLibPath")},t.prototype.getGameAssetsPath=function(){return this.getValue("gameAssetsPath")},t.prototype.getMultiplayerClusters=function(){var t=this.getValue("multiplayerClusterLocations");return null===t&&(t=[{ID:1,url:"/"}]),t},t.prototype.getMultiplayerClusterForWorld=function(t){var e=this.getMultiplayerClusters();return e[t%e.length]},t.prototype.getValue=function(t){var e=this.data[t];return a.Util.isValid(e)?e:null},t.prototype.getGameDataVersion=function(){return this.getValue("gameDataVersion")},t.getURI=function(t,e,i){return""+t+i+".json?v="+e},t}();e.APIGameData=n},function(t,e){t.exports=function(t,e){return"__proto__"==e?void 0:t[e]}},function(t,e,i){var a=i(44),n=i(45);t.exports=function(t){return n(t)&&a(t)}},function(t,e,i){var a=i(148),n=i(87);t.exports=function(t,e,i){(void 0===i||n(t[e],i))&&(void 0!==i||e in t)||a(t,e,i)}},function(t,e,i){var a=i(638),n=i(213)(function(t,e,i){a(t,e,i)});t.exports=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),n=function(){function t(t){this.game=null,this.splitTestData=null,this.game=t,this.splitTestData={test:[[1],4e4,2],nFactor:[[1,2],1e3,3]}}return t.prototype.isInSplitTest=function(t){if(!a.Util.isValid(t)||""===t)return!0;if(a.Util.isValid(this.splitTestData[t])){var e=[this.game.prodigy.player];return a.Util.inTestGroups.apply(this,e.concat(this.splitTestData[t]))}return!1},t}();e.MailerSplitTests=n},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=function(t){function e(e,i,a,n){var r=t.call(this,e,i,o.Util.isValid(a)?a:3,n)||this;return r.timer=null,r.contentText=null,r.okayButton=null,r.okayText=null,r.yesButton=null,r.noButton=null,r.closeButton=null,r}return n(e,t),e.prototype.preprocess=function(t,e,i){void 0===e&&(e=null),void 0===i&&(i=null);var a=e;(!o.Util.isValid(e)||"pumpkin"!==e&&"star-shard-small"!==e&&"snowflake-small"!==e)&&(a=null);var n=o.Util.isValid(a)?"["+e+"] "+i:i;this.updateConfigModifierProperty("titleBanner","text",n),this.updateConfigModifierProperty("titleBanner","visible",o.Util.isValid(i)),this.updateConfigModifierProperty("contentText","text",t),this.queuePostCreateCallback(this.setTimerText.bind(this,t),this.openTween.bind(this))},e.prototype.close=function(e){o.Util.isValid(this.timer)&&window.clearInterval(this.timer),t.prototype.close.call(this),o.Util.isValid(e)&&e()},e.prototype.setOkay=function(t,e){var i=this;void 0===t&&(t=null),this.okayButton.visible=!0,this.okayText.setText(o.Util.isValid(t)?t:this.game.prodigy.gameContainer.Localizer.getText("BUTTON_OKAY_UPPERCASE")),this.okayButton.onClickCallback=function(){i.close(e)}},e.prototype.setConfirm=function(t,e){var i=this;this.yesButton.visible=!0,this.yesButton.onClickCallback=function(){i.close(t)},this.noButton.visible=!0,this.noButton.onClickCallback=function(){i.close(e)}},e.prototype.setConfirmGeneric=function(t,e,i){var a=this;this.yesButton.visible=!0,this.yesButton.onClickCallback=function(){a.close(t)},this.noButton.visible=!0,this.noButton.onClickCallback=function(){a.close(e)},this.closeButton.visible=!0,this.closeButton.onClickCallback=function(){a.close(i)}},e.prototype.setTimerText=function(t){o.Util.isValid(this.timer)&&window.clearInterval(this.timer),o.Util.isValid(t)&&this.setText(t,(new Date).getTime())},e.prototype.setText=function(t,e){if(o.Util.isValid(this.game))if(o.Util.isValid(this.contentText))if(t.indexOf("XTIMERX")>=0){var i=(new Date).getTime(),a=o.Util.processTime(i-e);this.contentText.setText(t.replace("XTIMERX",a)),this.timer=window.setTimeout(this.setText.bind(this,t,e),500)}else this.contentText.setText(t);else o.Util.log("ERROR: Attempting to set text before finished loading message.",o.Util.ERROR)},e}(i(26).Menu);e.MessageBox=r},function(t,e,i){var a=i(161),n=i(664);t.exports=function t(e,i,o,r,s){var l=-1,h=e.length;for(o||(o=n),s||(s=[]);++l<h;){var c=e[l];i>0&&o(c)?i>1?t(c,i-1,o,r,s):a(s,c):r||(s[s.length]=c)}return s}},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),r=i(0),s=function(t){function e(e,i,a,n,o,s,l){void 0===s&&(s=2),void 0===l&&(l=!1);var h=t.call(this,e,i,a,n)||this;return r.Util.isValid(l)&&l&&h.add(h.game.prodigy.create.sprite(0,0,"atlas-19","char-container")),r.Util.isValid(h.user)&&h.user.destroy(),h.user=h.game.prodigy.create.player(h,o,s,174,230),h.user.reload(),h}return n(e,t),e}(o.Element);e.UserEquipment=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(10),n=i(4),o=function(){function t(){}return t.byOwned=function(t,e){return e.slice().sort(function(i,a){var n=t({ID:i.getID(),type:i.getType()})?1:0,o=t({ID:a.getID(),type:a.getType()})?1:0;return n!==o?n-o:e.indexOf(i)-e.indexOf(a)})},t.byGender=function(t,e){return e.slice().sort(function(i,o){var r=a(n.Items.getItem(i.getType(),i.getID()),"gender",0),s=a(n.Items.getItem(o.getType(),o.getID()),"gender",0);return r===s?e.indexOf(i)-e.indexOf(o):r===t?-1:s===t?1:0===r?-1:1})},t}();e.StoreItemSort=o},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(10),r=i(81),s=i(57),l=i(12),h=i(4),c=i(0),p=i(18),u=i(32),d=i(56),g=function(t){function e(e,i,a,n){void 0===a&&(a=null),void 0===n&&(n=null);var o=t.call(this,e,i,0,0,e.prodigy.textureMenu)||this;return o.onItemRecieved=new Phaser.Signal,o.onItemPurchased=new Phaser.Signal,o.purchaseConfirmationConfig=null,o.defaultMemberAd=null,o.storeData=null,o.storeID=-1,o.purchaseConfirmationConfig=a,o.defaultMemberAd=n,o}return n(e,t),e.prototype.getStore=function(){return this.storeData},e.prototype.itemClicked=function(t){if(this.game.prodigy.player.isItemOwned({ID:t.getID(),type:t.getType()}))this.showOwnedMessage(t);else if("pet"===t.getType()&&this.game.prodigy.player.kennel.isFull())this.game.prodigy.open.message(this.game.prodigy.gameContainer.Localizer.getText("PURCHASING_MESSAGE_TOO_MANY_PETS_BODY"),null,null,this.game.prodigy.gameContainer.Localizer.getText("MESSAGE_TITLE_UH_OH"));else{var e=h.Items.getItem(t.getType(),t.getID()).data;1!==o(e,"member",0)||this.game.prodigy.player.isMember||this.game.prodigy.network.sendConversionFunnelEvent(p.EFunnelEventIDs.FunnelBuyMemberItem,p.EFunnelEventIDs.StageClickItem,t.getType()+"-"+t.getID()),"dormbg"===t.getType()?this.game.prodigy.open.houseItemInfo(t,this.onBuyCardClosed.bind(this,t,e),u.EItemInfoMode.Buy):this.game.prodigy.open.itemInfo(t,this.onBuyCardClosed.bind(this,t,e),u.EItemInfoMode.Buy)}},e.prototype.showOwnedMessage=function(t){var e=this.game.prodigy.gameContainer.Localizer,i="",a=e.getText("MESSAGE_TITLE_UH_OH");switch(t.getType()){case"dorm":i=e.getText("PURCHASING_MESSAGE_TOO_MANY_ITEMS_BODY");break;case"dormbg":i=e.getText("PURCHASING_MESSAGE_ALREADY_LIVE_BODY"),a=null;break;case"gender":case"hair":case"eyeColor":case"skinColor":case"hairColor":i=e.getText("PURCHASING_MESSAGE_ALREADY_LOOK_BODY");break;case"pet":i=e.getText("PURCHASING_MESSAGE_HAVE_PET_BODY");break;default:i=e.getText("PURCHASING_MESSAGE_HAVE_ITEM_BODY")}this.game.prodigy.open.message(i,null,null,a)},e.prototype.onBuyCardClosed=function(t,e,i){if(i){var a=t.getCost()[0];if(this.sendBuyAnalytics(t,e),this.meetsMembershipRequirement(t,e)&&this.meetsCurrencyRequirement(a)){var n=null;n=c.Util.isValid(this.purchaseConfirmationConfig)?this.game.prodigy.open.messageBox.bind(this.game.prodigy.open,this.purchaseConfirmationConfig.message,this.buyItem.bind(this,t,e,a)):this.buyItem.bind(this,t,e,a),"gender"===t.getType()?this.game.prodigy.open.advancedNameChange(!0,n,!0):n()}}},e.prototype.buyItem=function(t,e,i){var a=this;"currency"===i.getType()&&1===i.getID()?this.game.prodigy.player.changeGold(-i.getAmount()):this.game.prodigy.player.backpack.consume(i.getType(),i.getID(),i.getAmount());var n=e;c.Util.isValid(e.data)&&(n=e.data),"pet"===t.getType()&&(n={ID:t.getID()}),this.game.prodigy.open.gotItem([{ID:t.getID(),type:t.getType(),N:1,data:n}],function(){a.onItemRecieved.dispatch()},null,"store");var o=this.getStore().getName(),l=1===n.member?"M":"NM";this.game.prodigy.network.sendAnalytics("ShopPurchase-"+o,t.getType()+"-"+t.getID()+"-"+l),this.game.prodigy.network.sendAdvancedEvent("game_sink",{type:i.getType(),id:i.getID(),amount:i.getAmount(),sink_type:t.getType(),sink_id:t.getID(),name:e.name,source:o},!0);if(r([1,2,3,5,6,7,8,10,16,17,18,19,21,23],this.storeID)&&r(["hat","outfit","weapon","boots","follow","dorm"],t.getType()))if(this.storeID<=3){var h=this.game.prodigy.notifications.initNotificationTemplate(s.NotificationType.LAMPLIGHTPURCHASE,[e.name],{rarity:e.rarity});this.game.prodigy.notifications.pushNotification({id:s.NotificationType.LAMPLIGHTPURCHASE,data:h})}else if(21===this.storeID){h=this.game.prodigy.notifications.initNotificationTemplate(s.NotificationType.STOREPURCHASE,[e.name,"Harvey's Titan Gear"],{rarity:e.rarity});this.game.prodigy.notifications.pushNotification({id:s.NotificationType.STOREPURCHASE,data:h})}else if(23===this.storeID){h=this.game.prodigy.notifications.initNotificationTemplate(s.NotificationType.STOREPURCHASE,[e.name,"Dyno Dig Oasis"],{rarity:e.rarity});this.game.prodigy.notifications.pushNotification({id:s.NotificationType.STOREPURCHASE,data:h})}else{h=this.game.prodigy.notifications.initNotificationTemplate(s.NotificationType.STOREPURCHASE,[e.name,o],{rarity:e.rarity});this.game.prodigy.notifications.pushNotification({id:s.NotificationType.STOREPURCHASE,data:h})}this.game.prodigy.network.sendItemChangeEvent("spend-item",{type:i.getType(),ID:i.getID(),N:-i.getAmount()}),this.onItemPurchased.dispatch(t)},e.prototype.meetsMembershipRequirement=function(t,e){if(!this.game.prodigy.player.isMember){if("pet"===t.getType()&&this.game.prodigy.player.kennel.hasMaxNonMemberPets())return this.game.prodigy.open.membershipInfo(null,{},d.MemberAd.MEMBER_PETS),!1;if(1===o(e,"member",0))return this.game.prodigy.open.membershipInfo(null,{conversionFunnelName:p.EFunnelEventIDs.FunnelBuyMemberItem,conversionFunnelMetadata:t.getType()+"-"+t.getID()},this.getMemberAdName(t.getType())),!1}return!0},e.prototype.sendBuyAnalytics=function(t,e){if(c.Util.isValid(e.member)&&1===e.member&&("pet"===t.getType()?this.game.prodigy.network.sendAnalytics("Buy-Member-Pet",e.name):this.game.prodigy.network.sendAnalytics("Buy-Member-Item",e.name),!this.game.prodigy.player.isMember)){var i={};"pet"===t.getType()&&this.game.prodigy.player.kennel.hasMaxNonMemberPets()||(i={conversionFunnelName:p.EFunnelEventIDs.FunnelBuyMemberItem,conversionFunnelMetadata:t.getType()+"-"+t.getID()}),this.game.prodigy.network.sendConversionFunnelEvent(i.conversionFunnelName,p.EFunnelEventIDs.StageClickBuy,i.conversionFunnelMetadata)}},e.prototype.meetsCurrencyRequirement=function(t){var e=this.game.prodigy.gameContainer.Localizer,i=this.game.prodigy.player;if("currency"===t.getType()&&1===t.getID()){if(i.getGold()<t.getAmount())return i.isMember?this.game.prodigy.open.message(e.getText("PURCHASING_MESSAGE_NEED_MORE_GOLD_BODY",t.getAmount(),c.Util.numberToString(i.getGold())),null,"gold",e.getText("MESSAGE_TITLE_UH_OH")):this.game.prodigy.open.membership(d.MemberAd.MORE_GOLD),!1}else if(i.backpack.hasItem(t.getType(),t.getID())<t.getAmount()){var a=h.Items.getItem(t.getType(),t.getID()).data.icon,n=i.backpack.hasItem(t.getType(),t.getID());return this.game.prodigy.open.message(e.getText("PURCHASING_MESSAGE_NEED_MORE_CURRENCY_BODY",a,t.getAmount(),n),null,"gold",e.getText("MESSAGE_TITLE_UH_OH")),!1}return!0},e.prototype.getMemberAdName=function(t){var e=d.MemberAd.PREMIUM_ITEM;return"follow"===t?e=d.MemberAd.BUDDIES:-1!==["hat","outfit","weapon","boots","gender","hairColor","eyeColor","skinColor","hair","face"].indexOf(t)?e=d.MemberAd.STYLE:"dorm"===t?e=d.MemberAd.HOUSE_ITEMS:"dormbg"===t?e=d.MemberAd.NEW_HOUSE:"potion"===t?e=d.MemberAd.POTIONS:c.Util.isValid(this.defaultMemberAd)&&(e=this.defaultMemberAd),e},e}(l.RenderMenu);e.StoreBase=g},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(8),r=i(2),s=i(41),l=i(4),h=i(29),c=i(0),p=i(32),u=i(56),d=i(200),g=i(199),y=function(t){function e(e,i,a,n,o,r,s,l,h){void 0===n&&(n=null),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=null),void 0===l&&(l={}),void 0===h&&(h={});var p=t.call(this,e,i,r,s)||this;return p.storeID=-1,p.buttons=[],p.currencyLabel=null,p.cards=null,p.scrollbar=null,p.onBuy=null,p.storeID=a,p.analyticEvents=l,p.onClose=n,p.onBuy=o,p.storeSortOrder=h,p.onItemRecieved.add(function(){p.scrollbar.process()}),p.onItemPurchased.add(function(t){p.updatePlayerCurrency(),c.Util.isValid(p.onBuy)&&p.onBuy(t)}),p.create(),p}return n(e,t),e.prototype.create=function(){this.addTransparent(),c.Util.isValid(this.analyticEvents.onCreateEvent)&&this.game.prodigy.network.sendAnalytics(c.Util.isValid(this.analyticEvents.onCreateEvent.action)?this.analyticEvents.onCreateEvent.action:"",c.Util.isValid(this.analyticEvents.onCreateEvent.label)?this.analyticEvents.onCreateEvent.label:"",this.analyticEvents.onCreateEvent.category),this.createBaseSetup(30,16,"shine",null,null,!0,null);var e=this.game.prodigy.create.element(this,0,0);e.setRenderState(!0),e.add(new Phaser.TileSprite(this.game,51,240,1178,40,"atlas-161","blue-top")),e.add(new Phaser.TileSprite(this.game,51,280,1178,300,"atlas-161","blue-mid")),e.add(new Phaser.TileSprite(this.game,51,580,1178,40,"atlas-161","blue-top2")),this.spinner=this.add(this.game.prodigy.create.sprite(640,360,"atlas-18","loading")),this.spinner.anchor.setTo(.5,.5),this.game.add.tween(this.spinner).to({angle:360},2e3,Phaser.Easing.Linear.None,!0,0,r.GameConstants.MAX_SAFE_INTEGER,!1),t.prototype.create.call(this),this.game.prodigy.gameContainer.get(s.ProdigyInjectionIdentifiers.StoreService).getStore(this.storeID).then(this.onGetStoreSuccess.bind(this)).catch(this.onGetStoreFailure.bind(this))},e.prototype.createItemCards=function(t,e){var i=this;this.cards.removeAll(!0);for(var a=function(a){var o=t[a],r=a-e;if(a>=t.length)n.game.prodigy.create.panel(n.cards,r%4*180,220*Math.floor(.25*r),4,5,"empty");else{var s=o.getCost()[0];n.game.prodigy.create.item(n.cards,r%4*180,220*Math.floor(.25*r),{ID:o.getID(),type:o.getType(),cost:{ID:s.getID(),type:s.getType(),N:s.getAmount()}},p.EItemInfoMode.Store,function(){i.itemClicked(o)})}},n=this,o=e;o<e+8;o++)a(o)},e.prototype.getItemsForPage=function(t){var e=this.storeData.getPages()[t].getStoreItems();return c.Util.isValid(this.storeSortOrder[t])?this.storeSortOrder[t](e):g.StoreItemSort.byOwned(this.game.prodigy.player.isItemOwned.bind(this.game.prodigy.player),e)},e.prototype.setMode=function(e){t.prototype.setMode.call(this,e);var i=this.getItemsForPage(e);this.scrollbar.reset(i.length-4,4,-1,this.createItemCards.bind(this,i)),this.scrollbar.process(),this.page=e},e.prototype.setupInfoPanel=function(){this.setupMemberAd(this.defaultMemberAd)},e.prototype.onGetStoreSuccess=function(t){c.Util.isValid(this.game)&&(this.storeData=t,this.spinner.destroy(),this.spinner=null,this.setupTabs(),this.setupStoreMerchant(),this.setupCurrencyDisplay(),this.setupInfoPanel(),this.cards=this.game.prodigy.create.element(this,430,220),this.scrollbar=this.game.prodigy.create.slider(this,this.cards.x+540+180,240,380,!0,!0),this.updatePlayerCurrency(),this.setMode(0))},e.prototype.onGetStoreFailure=function(t){t instanceof Error&&this.game.prodigy.gameContainer.Logger.log(t.message,o.LogLevel.Error);var e=this.game.prodigy.gameContainer.Localizer;this.game.prodigy.open.message(e.getText("STORE_OPEN_FAILED_MESSAGE"),this.close.bind(this),null,e.getText("STORE_OPEN_FAILED_TITLE"))},e.prototype.setupStoreMerchant=function(){var t=this.storeData.getMerchantAvatar(),e=this.add(this.game.prodigy.create.sprite(t.getPosition().x,t.getPosition().y,t.getAssetTag(),t.getAssetFrame()));e.scale.x=t.getScale().x,e.scale.y=t.getScale().y},e.prototype.setupTabs=function(){for(var t=this.storeData.getPages(),e=this.game.prodigy.create.panel(this,80,80,3*t.length+6,2,"banner"),i=0;i<t.length;i++){var a=t[i].getButton();this.buttons.push(this.game.prodigy.create.advButton(this,e.x+200+120*i,e.y-10,{top:a.getTopText(),bot:a.getBottomText(),icon:{iconAtlas:a.getItemType()+"-"+a.getItemID()}},this.setMode.bind(this,i)))}},e.prototype.setupCurrencyDisplay=function(){var t=this.game.prodigy.create.panel(this,80,280,8,2,"white");this.currencyLabel=this.game.prodigy.create.font(t,0,10,"",{size:40,align:"center",width:320,iconOffsetY:13})},e.prototype.updatePlayerCurrency=function(){var t="",e=0,i=this.storeData.getStoreCurrencyID(),a=this.storeData.getStoreCurrencyType();"currency"===a&&1!==i?(t=l.Items.getItem(a,i).data.icon,e=this.game.prodigy.player.backpack.hasItem(a,i)):(t="mail-gold",e=c.Util.numberToString(this.game.prodigy.player.getGold())),this.currencyLabel.setText("["+t+"] "+e)},e.prototype.setupMemberAd=function(t){if(void 0===t&&(t=null),!this.game.prodigy.player.isMember){var i=this.game.prodigy.gameContainer.Localizer,a=c.Util.isValid(t)?t:u.MemberAd.PREMIUM_ITEM,n=this.game.prodigy.create.panel(this,80,380,8,5,"member");n.setClickable(function(t,e,i){t.prodigy.open.membership(e),t.prodigy.network.sendAnalytics(i)}.bind(this,this.game,a,"getAllItemsBtn")),this.game.prodigy.create.font(n,10,10,i.getText("STORE_PROMPT_UNLOCK_ALL"),{align:"center",width:300}),this.game.prodigy.create.font(n,10,140,i.getText("BUTTON_CLICK_HERE"),{align:"center",width:300,fontID:9,size:36});var o=n.add(this.game.prodigy.create.sprite(7,75,"atlas-18","overlay-small"));o.width=306,o.height=50,o.alpha=.2;for(var r=[];r.length<3;){var s=h.Random.integerInRange(0,e.memberAdItems.length);-1===r.indexOf(s)&&(r[r.length]=s)}this.game.prodigy.create.font(n,0,60,"[single-image:"+e.memberAdItems[r[0]]+"] [single-image:"+e.memberAdItems[r[1]]+"] [single-image:"+e.memberAdItems[r[2]]+"]",{align:"center",width:320,fontID:9,size:36})}},e.memberAdItems=["icon-follow-144","icon-follow-146","icon-follow-139","icon-follow-140","icon-follow-131","icon-hat-74","icon-hat-100","icon-hat-119","icon-hat-114","icon-hat-116","icon-hat-79","icon-outfit-93","icon-outfit-86","icon-outfit-91","icon-outfit-59","icon-dorm-34","icon-dorm-22","icon-dorm-132","icon-dorm-40","icon-dorm-39","icon-dorm-60","icon-dorm-65","icon-weapon-116","icon-weapon-114","icon-weapon-95","icon-boots-40","icon-boots-36","icon-boots-37","icon-boots-30"],e}(d.StoreBase);e.Store=y},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(79),r=i(5),s=i(65),l=i(13),h=i(25),c=i(37),p=i(0),u=function(t){function e(e,i,a,n){var r=t.call(this,e,i,a-40,n)||this;return r.leadersPerPage=7,r.page=0,r.classLeaderPanel=null,r.classLeaderboardPanel=null,r.classLeaderboardCharacters=null,r.characterIcons=[],r.topPlayer=null,r.topPlayerName=null,r.topPlayerStat=null,r.classLeaderboardError=null,r.leaderboardSlider=null,r.leaders=null,r.topPlayerId=null,p.Util.isValid(r.game.prodigy.pvpNetworkHandler.seasonID)?o(r.game.prodigy.player.classIDs)>0?r.game.prodigy.pvpNetworkHandler.getClassLeaderboard(r.game.prodigy.player.classIDs.join(","),function(t){r.loadWizardsComplete("data.level",!0,t)},function(){r.addErrorBanner(r.game.prodigy.gameContainer.Localizer.getText("LEADERBOARD_ERROR_TEMPORARILY_UNAVAILABLE"))}):r.loadWizardsComplete("data.level"):r.game.prodigy.pvpNetworkHandler.isInitialized?r.addErrorBanner(r.game.prodigy.gameContainer.Localizer.getText("SEASON_COMPLETED")):r.addErrorBanner(r.game.prodigy.gameContainer.Localizer.getText("LEADERBOARD_ERROR_TEMPORARILY_UNAVAILABLE")),r.registerGetElementListener(),r}return n(e,t),e.prototype.addErrorBanner=function(t){new c.UIParser(this.game).createUIElements([{type:"SlicedGraphic",anchorX:0,anchorY:0,x:290,y:100,width:620,height:200,atlasName:"ui-shared",baseFrameName:"bases/matte",sliceType:"nineScale",children:[{type:"Text",name:"titleText",anchorX:0,anchorY:0,x:20,y:20,width:580,height:160,text:t.toUpperCase(),font:"black",fontSize:20,horizontalAlignment:"center",verticalAlignment:"center"}]}],this)},e.prototype.renderClassLeaderContainer=function(){this.classLeaderPanel=this.game.prodigy.create.panel(this,32,20,14,8,"bases/matte"),this.game.prodigy.create.panel(this.classLeaderPanel,40,-23,12,0,"banners/tag"),this.game.prodigy.create.panel(this.classLeaderPanel,20,-5,1,0,"banners/rope-horiz"),this.game.prodigy.create.panel(this.classLeaderPanel,500,-5,1,0,"banners/rope-horiz"),this.game.prodigy.create.font(this.classLeaderPanel,0,-20,this.game.prodigy.gameContainer.Localizer.getText("LEADERBOARD_CLASS_TOP"),{fontID:9,size:36,width:560,align:"center"});var t=this.game.prodigy.create.sprite(0,220,"atlas-18","overlay-light",null,null,560,60);t.alpha=.25,this.classLeaderPanel.add(t),this.topPlayerName=this.game.prodigy.create.font(this.classLeaderPanel,20,250,"",{size:20,align:"right",width:480}),this.topPlayerStat=this.game.prodigy.create.font(this.classLeaderPanel,20,220,"",{size:20,align:"right",width:480})},e.prototype.renderClassLeaderboardContainer=function(){if(this.classLeaderboardPanel=this.game.prodigy.create.panel(this,this.classLeaderPanel.x+574,this.classLeaderPanel.y,14,10,"bases/matte"),this.game.prodigy.create.panel(this.classLeaderboardPanel,40,-23,12,0,"banners/tag"),this.game.prodigy.create.panel(this.classLeaderboardPanel,20,-5,1,0,"banners/rope-horiz"),this.game.prodigy.create.panel(this.classLeaderboardPanel,500,-5,1,0,"banners/rope-horiz"),this.game.prodigy.create.font(this.classLeaderboardPanel,0,-20,this.game.prodigy.gameContainer.Localizer.getText("LEADERBOARD_CLASS_LEADERS"),{fontID:9,size:36,width:560,align:"center"}),this.classLeaderboardError=this.game.prodigy.create.font(this.classLeaderboardPanel,20,100,this.game.prodigy.gameContainer.Localizer.getText("ARENA_MUST_BE_IN_CLASS"),{size:20,width:532,align:"center"}),this.classLeaderboardError.visible=!1,o(this.game.prodigy.player.classIDs)>0){this.classLeaderboardCharacters=this.game.prodigy.create.element(this.classLeaderboardPanel),this.characterIcons=[];for(var t=0;t<this.leadersPerPage;t++)this.characterIcons.push(this.createIcon(this.classLeaderboardCharacters,25,45*t+63));this.leaderboardSlider=this.game.prodigy.create.slider(this.classLeaderboardPanel,485,63,310,!0,!0)}},e.prototype.createIcon=function(t,e,i){var a=this,n=this.game.prodigy.gameContainer.Localizer,o=this.game.prodigy.create.element(t,e,i),r=this.game.prodigy.create.panel(o,0,0,11.5,1,"lb"),s=this.game.prodigy.create.panel(o,0,0,11.5,1,"lb-green"),l={icon:o,highlight:s,placeText:this.game.prodigy.create.font(o,10,0,"",{width:50,align:"center",size:30}),playerName:this.game.prodigy.create.font(o,70,10,n.getText("PVP_PLAYERNAME"),{size:16,width:350,align:"left"}),typeText:this.game.prodigy.create.font(o,60,8,n.getText("PVP_WIN_LOSS"),{size:20,width:350,align:"right"})};return r.setClickable(function(){a.openCard(l)}),s.setClickable(function(){a.openCard(l)}),s.visible=!1,this.setIconData(l,null),l},e.prototype.setIconData=function(t,e){if(p.Util.isValid(e)){var i=e.place,a=1===e.isMember?"@ ":"",n=this.game.prodigy.gameContainer.resolve(s.OnlinePlayerAppearance);n.setAppearance(e.appearance),t.placeText.setText(""+i),t.typeText.setText("[arena]"+e.points);var o=n.getFullName();o.length>18&&(o=o.substring(0,18)+"..."),t.playerName.setText(""+a+o);var r=p.Util.isValid(e.userID)?e.userID:parseInt(e.id);t.highlight.visible=r===this.game.prodigy.player.userID,t.data=e}else p.Util.isValid(t)&&delete t.data;t.icon.visible=p.Util.isValid(e)},e.prototype.openCard=function(t){var e=null;(p.Util.isValid(t.data.userID)?t.data.userID:parseInt(t.data.id))===this.game.prodigy.player.userID?e=this.game.prodigy.player:(e=new l.Player(this.game,!0)).init(t.data),this.game.prodigy.open.card(e,!0)},e.prototype.loadWizardsComplete=function(t,e,i){if(p.Util.isValid(this.game)){if(this.renderClassLeaderContainer(),!this.game.prodigy.player.hasMembership()){var a=this.game.prodigy.create.panelButton(this,this.classLeaderPanel.x,this.classLeaderPanel.y+334,14,2,"base/matte",this.game.prodigy.open.membershipInfo.bind(this.game.prodigy.open,null,{},h.MembershipInfo.MORE_EXP),{atlasID:149});this.game.prodigy.create.font(a.content,0,20,this.game.prodigy.gameContainer.Localizer.getText("LEADERBOARD_CATCH_UP"),{fontID:9,size:36,width:560,align:"center"})}if(this.renderClassLeaderboardContainer(),!e||!p.Util.isValid(i)||i.playerList.length<=0)return this.classLeaderboardError.visible=!0,p.Util.isValid(this.classLeaderboardCharacters)&&p.Util.isValid(this.leaderboardSlider)&&(this.classLeaderboardCharacters.visible=this.leaderboardSlider.visible=!1),void(o(this.game.prodigy.player.classIDs)>0?this.classLeaderboardError.setText(this.game.prodigy.gameContainer.Localizer.getText("LEADERBOARD_CLASS_ERROR_LOADING")):this.classLeaderboardError.setText(this.game.prodigy.gameContainer.Localizer.getText("ARENA_MUST_BE_IN_CLASS")));this.classLeaderboardError.visible=!1,this.classLeaderboardCharacters.visible=!0,this.leaderboardSlider.visible=!0,this.leaders=i.playerList,this.leaders.length>0&&this.getPlayerListData(this.leaders)}},e.prototype.getPlayerListData=function(t){var e=this;this.topPlayerId=parseInt(t[0].id);var i=p.Util.joinByProperty(t,"id");this.game.prodigy.network.getCharData(i,["appearance","isMember","equipment","data"],function(t){e.onGetPlayerListDataSuccess(t)})},e.prototype.onGetPlayerListDataSuccess=function(t){var i=this;if(p.Util.isValid(this.game)){p.Util.isValid(t[this.leaders[0].id])?this.renderClassLeader(t[this.topPlayerId],this.leaders[0].points):this.topPlayerName.setText(this.game.prodigy.gameContainer.Localizer.getText("LEADERBOARD_ERROR_LOADING_PLAYER"));for(var a=0,n=0;n<this.leaders.length;n++)for(var r in t)if(parseInt(this.leaders[n].id)===parseInt(r)){if(this.leaders[n]={userID:0,data:t[r],isMember:0,points:p.Util.isValid(this.leaders[n].points)?this.leaders[n].points:this.game.prodigy.gameContainer.Localizer.getText("LEADERBOARD_NOT_APPLICABLE")},!p.Util.isValid(t[r].data)){this.leaders.splice(n,1),n--;break}var s=t[r].data;for(var l in s)"stars"!==l&&(this.leaders[n].data[l]=s[l]);this.leaders[n].appearance=t[r].appearance,this.leaders[n].equipment=t[r].equipment,this.leaders[n].isMember=p.Util.isValid(t[r].isMember)?t[r].isMember:0,this.leaders[n].place=a+1,this.leaders[n].userID=parseInt(r),a++}o(this.game.prodigy.player.classIDs)>0&&a>0&&this.leaderboardSlider.reset(this.leaders.length,this.leadersPerPage,e.getPlayerPlace(this.leaders,this.game.prodigy.player),function(t){i.setPage(t)})}},e.prototype.renderClassLeader=function(t,e){var i=new l.Player(this.game,!0);i.init(t),p.Util.isValid(this.topPlayer)&&this.topPlayer.destroy(),this.topPlayer=this.game.prodigy.create.player(this.classLeaderPanel,i,2,135,270,!1,!0),this.topPlayer.reload();var a=1===t.isMember?"@ ":"",n=p.Util.trimText(i.getName(),25,!0);this.topPlayerName.setText(""+a+n),this.topPlayerStat.setText("[arena]"+e)},e.prototype.setPage=function(t){if(p.Util.isValid(this.leaders)){this.page=Math.round(t);for(var e=0;e<this.leadersPerPage;e++)this.setIconData(this.characterIcons[e],this.leaders[this.page+e])}},e.getPlayerPlace=function(t,e){for(var i=0;i<t.length;i++){if((p.Util.isValid(t[i].userID)?t[i].userID:parseInt(t[i].id))===e.userID)return i+1}return 31},e}(r.Element);e.ClassLeadersPanel=u},function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(12),s=i(21),l=i(0),h=function(t){function e(e,i,a){var n=t.call(this,e,i,0,0,e.prodigy.textureMenu)||this;return n.onClose=a,n.create(),n}return n(e,t),e.prototype.create=function(){this.addTransparent();var e=this.game.prodigy.create.element(this,0,0);this.popupViewProperties={tileWidth:25,tileHeight:16,margin:0,padding:30,tileSize:40,contentTileTop:3},this.popupViewProperties.top=.5*(18-this.popupViewProperties.tileHeight)*this.popupViewProperties.tileSize,this.popupViewProperties.left=.5*(32-this.popupViewProperties.tileWidth)*this.popupViewProperties.tileSize,this.popupViewProperties.width=this.popupViewProperties.tileWidth*this.popupViewProperties.tileSize,this.popupViewProperties.height=this.popupViewProperties.tileHeight*this.popupViewProperties.tileSize;var i=this.renderBackground(e,this.popupViewProperties),a={top:120,left:11,tileSize:this.popupViewProperties.tileSize};a.tileHeight=this.popupViewProperties.tileHeight-a.top/this.popupViewProperties.tileSize-1,a.width=this.popupViewProperties.width-2*a.left,this.renderContent(i,a);var n={top:20,left:120,padding:18,tileSize:this.popupViewProperties.tileSize};n.tileWidth=this.popupViewProperties.tileWidth-n.left/n.tileSize*2,this.renderTitle(i,n);var o={top:this.popupViewProperties.contentTileTop*this.popupViewProperties.tileSize+20,left:80,padding:10,tileHeight:7,tileSize:this.popupViewProperties.tileSize};o.tileWidth=this.popupViewProperties.tileWidth-2*o.left/o.tileSize;var r=this.renderMessage(i,o),s={left:120,padding:10,tileHeight:3,tileSize:this.popupViewProperties.tileSize};s.top=(o.tileHeight-s.tileHeight-.5)*s.tileSize,s.tileWidth=(r.width-2*s.left)/s.tileSize,this.renderCredentials(r,s);var l={top:i.he
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment