(window.webpackJsonp=window.webpackJsonp||[]).push([[3,8],[,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(n(1)),s=n(448),r=o(n(78));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.default)(function(e,t,n,r,o){var i=e[t];return a.default.isValidElement(i)?new Error("Invalid "+r+" `"+o+"` of type ReactElement supplied to `"+n+"`,expected an element type (a string , component class, or function component)."):(0,s.isValidElementType)(i)?null:new Error("Invalid "+r+" `"+o+"` of value `"+i+"` supplied to `"+n+"`, expected an element type (a string , component class, or function component).")}),e.exports=t.default},,,,,,,,,,function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},,,,,,function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(2098),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports=n(2208)},,,function(e,t,n){"use strict";t.__esModule=!0,t.default=function r(o,u,e){void 0===e&&(e=[]);var t=o.displayName||o.name||"Component";var i=c.isReactComponent(o);var a=Object.keys(u);var s=a.map(c.defaultKey);!i&&e.length&&invariant(!1);var n=function(r){function e(){for(var s,e=arguments.length,t=new Array(e),n=0;n>",a=o||t;if(null==e[t])return new Error("The "+r+" `"+a+"` is required to make `"+i+"` accessible for users of assistive technologies such as screen readers.");for(var s=arguments.length,u=Array(5>",s=i||n;if(null==t[n])return e?new Error("Required "+o+" `"+s+"` was not specified in `"+a+"`."):null;for(var u=arguments.length,l=Array(6=e.children.length&&this.setState({activeIndex:0,previousActiveIndex:null,direction:null})},t.componentWillUnmount=function(){clearTimeout(this.timeout),this.isUnmounted=!0},t.getActiveIndex=function(){var e=this.props.activeIndex;return null!=e?e:this.state.activeIndex},t.getDirection=function(e,t){return e===t?null:tn.documentElement.clientHeight;this.setState({style:{paddingRight:r&&!o?Or()():void 0,paddingLeft:!r&&o?Or()():void 0}})}},t.render=function(){var e=this.props,t=e.backdrop,n=e.backdropClassName,r=e.animation,o=e.show,i=e.dialogComponentClass,a=e.className,s=e.style,u=e.children,l=e.onEntering,c=e.onExited,f=P(e,["backdrop","backdropClassName","animation","show","dialogComponentClass","className","style","children","onEntering","onExited"]),d=Qt(f,kr.a),p=d[0],h=d[1],m=o&&!r&&"in";return k.a.createElement(kr.a,O({},p,{ref:this.setModalRef,show:o,containerClassName:L(f,"open"),transition:r?$r:void 0,backdrop:t,backdropTransition:r?Jr:void 0,backdropClassName:A()(L(f,"backdrop"),n,m),onEntering:ve(l,this.handleEntering),onExited:ve(c,this.handleExited)}),k.a.createElement(i,O({},h,{style:O({},this.state.style,s),className:A()(a,m),onClick:!0===t?this.handleDialogClick:null}),u))},e}(k.a.Component);Zr.propTypes=Kr,Zr.defaultProps=Xr,Zr.childContextTypes=Yr,Zr.Body=Nr,Zr.Header=Wr,Zr.Title=Gr,Zr.Footer=Fr,Zr.Dialog=Dr,Zr.TRANSITION_DURATION=300,Zr.BACKDROP_TRANSITION_DURATION=150;var Qr=B("modal",H([_,E],Zr)),eo={activeKey:h.a.any,activeHref:h.a.string,stacked:h.a.bool,justified:Me()(h.a.bool,function(e){var t=e.justified,n=e.navbar;return t&&n?Error("justified navbar `Nav`s are not supported"):null}),onSelect:h.a.func,role:h.a.string,navbar:h.a.bool,pullRight:h.a.bool,pullLeft:h.a.bool},to={$bs_navbar:h.a.shape({bsClass:h.a.string,onSelect:h.a.func}),$bs_tabContainer:h.a.shape({activeKey:h.a.any,onSelect:h.a.func.isRequired,getTabId:h.a.func.isRequired,getPaneId:h.a.func.isRequired})},no=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.componentDidUpdate=function(){var t=this;if(this._needsRefocus){this._needsRefocus=!1;var e=this.props.children,n=this.getActiveProps(),r=n.activeKey,o=n.activeHref,i=X.find(e,function(e){return t.isActive(e,r,o)}),a=X.toArray(e).indexOf(i),s=ze.a.findDOMNode(this).children,u=s&&s[a];u&&u.firstChild&&u.firstChild.focus()}},n.getActiveProps=function(){var e=this.context.$bs_tabContainer;return e||this.props},n.getNextActiveChild=function(e){var t=this,n=this.props.children,r=n.filter(function(e){return null!=e.props.eventKey&&!e.props.disabled}),o=this.getActiveProps(),i=o.activeKey,a=o.activeHref,s=X.find(n,function(e){return t.isActive(e,i,a)}),u=r.indexOf(s);if(-1===u)return r[0];var l=u+e,c=r.length;return c<=l?l=0:l<0&&(l=c-1),r[l]},n.getTabProps=function(e,t,n,r,o){var i=this;if(!t&&"tablist"!==n)return null;var a=e.props,s=a.id,u=a["aria-controls"],l=a.eventKey,c=a.role,f=a.onKeyDown,d=a.tabIndex;return t&&(s=t.getTabId(l),u=t.getPaneId(l)),"tablist"===n&&(c=c||"tab",f=ve(function(e){return i.handleTabKeyDown(o,e)},f),d=r?d:-1),{id:s,role:c,onKeyDown:f,"aria-controls":u,tabIndex:d}},n.handleTabKeyDown=function(e,t){var n;switch(t.keyCode){case Nt.a.codes.left:case Nt.a.codes.up:n=this.getNextActiveChild(-1);break;case Nt.a.codes.right:case Nt.a.codes.down:n=this.getNextActiveChild(1);break;default:return}t.preventDefault(),e&&n&&null!=n.props.eventKey&&e(n.props.eventKey),this._needsRefocus=!0},n.isActive=function(e,t,n){var r=e.props;return!!(r.active||null!=t&&r.eventKey===t||n&&r.href===n)||r.active},n.render=function(){var e,r=this,t=this.props,n=t.stacked,o=t.justified,i=t.onSelect,a=t.role,s=t.navbar,u=t.pullRight,l=t.pullLeft,c=t.className,f=t.children,d=P(t,["stacked","justified","onSelect","role","navbar","pullRight","pullLeft","className","children"]),p=this.context.$bs_tabContainer,h=a||(p?"tablist":null),m=this.getActiveProps(),g=m.activeKey,y=m.activeHref;delete d.activeKey,delete d.activeHref;var v,b,w=V(d),_=w[0],E=w[1],x=O({},U(_),((e={})[L(_,"stacked")]=n,e[L(_,"justified")]=o,e)),S=null!=s?s:this.context.$bs_navbar;if(S){var C=this.context.$bs_navbar||{bsClass:"navbar"};x[L(C,"nav")]=!0,b=L(C,"right"),v=L(C,"left")}else b="pull-right",v="pull-left";return x[b]=u,x[v]=l,k.a.createElement("ul",O({},E,{role:h,className:A()(c,x)}),X.map(f,function(e){var t=r.isActive(e,g,y),n=ve(e.props.onSelect,i,S&&S.onSelect,p&&p.onSelect);return Object(T.cloneElement)(e,O({},r.getTabProps(e,p,h,t,n),{active:t,activeKey:g,activeHref:y,onSelect:n}))}))},t}(k.a.Component);no.propTypes=eo,no.defaultProps={justified:!1,pullRight:!1,pullLeft:!1,stacked:!1},no.contextTypes=to;var ro=B("nav",F(["tabs","pills"],no)),oo={$bs_navbar:h.a.shape({bsClass:h.a.string})},io=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=P(e,["className","children"]),o=L(this.context.$bs_navbar||{bsClass:"navbar"},"brand");return k.a.isValidElement(n)?k.a.cloneElement(n,{className:A()(n.props.className,t,o)}):k.a.createElement("span",O({},r,{className:A()(t,o)}),n)},t}(k.a.Component);io.contextTypes=oo;var ao=io,so={$bs_navbar:h.a.shape({bsClass:h.a.string,expanded:h.a.bool})},uo=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=P(e,["children"]),r=this.context.$bs_navbar||{bsClass:"navbar"},o=L(r,"collapse");return k.a.createElement(Tt,O({in:r.expanded},n),k.a.createElement("div",{className:o},t))},t}(k.a.Component);uo.contextTypes=so;var lo=uo,co={$bs_navbar:h.a.shape({bsClass:h.a.string})},fo=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=P(e,["className"]),r=L(this.context.$bs_navbar||{bsClass:"navbar"},"header");return k.a.createElement("div",O({},n,{className:A()(t,r)}))},t}(k.a.Component);fo.contextTypes=co;var po=fo,ho={onClick:h.a.func,children:h.a.node},mo={$bs_navbar:h.a.shape({bsClass:h.a.string,expanded:h.a.bool,onToggle:h.a.func.isRequired})},go=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.onClick,n=e.className,r=e.children,o=P(e,["onClick","className","children"]),i=this.context.$bs_navbar||{bsClass:"navbar"},a=O({type:"button"},o,{onClick:ve(t,i.onToggle),className:A()(n,L(i,"toggle"),!i.expanded&&"collapsed")});return r?k.a.createElement("button",a,r):k.a.createElement("button",a,k.a.createElement("span",{className:"sr-only"},"Toggle navigation"),k.a.createElement("span",{className:"icon-bar"}),k.a.createElement("span",{className:"icon-bar"}),k.a.createElement("span",{className:"icon-bar"}))},t}(k.a.Component);go.propTypes=ho,go.contextTypes=mo;var yo=go,vo={fixedTop:h.a.bool,fixedBottom:h.a.bool,staticTop:h.a.bool,inverse:h.a.bool,fluid:h.a.bool,componentClass:ye.a,onToggle:h.a.func,onSelect:h.a.func,collapseOnSelect:h.a.bool,expanded:h.a.bool,role:h.a.string},bo={$bs_navbar:h.a.shape({bsClass:h.a.string,expanded:h.a.bool,onToggle:h.a.func.isRequired,onSelect:h.a.func})},wo=function(r){function e(e,t){var n;return(n=r.call(this,e,t)||this).handleToggle=n.handleToggle.bind(me(me(n))),n.handleCollapse=n.handleCollapse.bind(me(me(n))),n}l(e,r);var t=e.prototype;return t.getChildContext=function(){var e=this.props,t=e.bsClass,n=e.expanded,r=e.onSelect,o=e.collapseOnSelect;return{$bs_navbar:{bsClass:t,expanded:n,onToggle:this.handleToggle,onSelect:ve(r,o?this.handleCollapse:null)}}},t.handleCollapse=function(){var e=this.props,t=e.onToggle;e.expanded&&t(!1)},t.handleToggle=function(){var e=this.props;(0,e.onToggle)(!e.expanded)},t.render=function(){var e,t=this.props,n=t.componentClass,r=t.fixedTop,o=t.fixedBottom,i=t.staticTop,a=t.inverse,s=t.fluid,u=t.className,l=t.children,c=q(P(t,["componentClass","fixedTop","fixedBottom","staticTop","inverse","fluid","className","children"]),["expanded","onToggle","onSelect","collapseOnSelect"]),f=c[0],d=c[1];void 0===d.role&&"nav"!==n&&(d.role="navigation"),a&&(f.bsStyle=j);var p=O({},U(f),((e={})[L(f,"fixed-top")]=r,e[L(f,"fixed-bottom")]=o,e[L(f,"static-top")]=i,e));return k.a.createElement(n,O({},d,{className:A()(u,p)}),k.a.createElement(kn,{fluid:s},l))},e}(k.a.Component);wo.propTypes=vo,wo.defaultProps={componentClass:"nav",fixedTop:!1,fixedBottom:!1,staticTop:!1,inverse:!1,fluid:!1,collapseOnSelect:!1},wo.childContextTypes=bo,B("navbar",wo);var _o=g()(wo,{expanded:"onToggle"});function Eo(e,l,t){var n=function(e,t){var n=e.componentClass,r=e.className,o=e.pullRight,i=e.pullLeft,a=P(e,["componentClass","className","pullRight","pullLeft"]),s=t.$bs_navbar,u=void 0===s?{bsClass:"navbar"}:s;return k.a.createElement(n,O({},a,{className:A()(r,L(u,l),o&&L(u,"right"),i&&L(u,"left"))}))};return n.displayName=t,n.propTypes={componentClass:ye.a,pullRight:h.a.bool,pullLeft:h.a.bool},n.defaultProps={componentClass:e,pullRight:!1,pullLeft:!1},n.contextTypes={$bs_navbar:h.a.shape({bsClass:h.a.string})},n}_o.Brand=ao,_o.Header=po,_o.Toggle=yo,_o.Collapse=lo,_o.Form=Eo("div","form","NavbarForm"),_o.Text=Eo("p","text","NavbarText"),_o.Link=Eo("a","link","NavbarLink");var xo=F([M,j],M,_o),So=O({},Zt.propTypes,{title:h.a.node.isRequired,noCaret:h.a.bool,active:h.a.bool,activeKey:h.a.any,activeHref:h.a.string,children:h.a.node}),Co=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.isActive=function(e,t,n){var r=this,o=e.props;return!!(o.active||null!=t&&o.eventKey===t||n&&o.href===n)||(!!X.some(o.children,function(e){return r.isActive(e,t,n)})||o.active)},n.render=function(){var t=this,e=this.props,n=e.title,r=e.activeKey,o=e.activeHref,i=e.className,a=e.style,s=e.children,u=P(e,["title","activeKey","activeHref","className","style","children"]),l=this.isActive(this,r,o);delete u.active,delete u.eventKey;var c=Qt(u,Zt.ControlledComponent),f=c[0],d=c[1];return k.a.createElement(Zt,O({},f,{componentClass:"li",className:A()(i,{active:l}),style:a}),k.a.createElement(Zt.Toggle,O({},d,{useAnchor:!0}),n),k.a.createElement(Zt.Menu,null,X.map(s,function(e){return k.a.cloneElement(e,{active:t.isActive(e,r,o)})})))},t}(k.a.Component);Co.propTypes=So;var Oo=Co,To={active:h.a.bool,disabled:h.a.bool,role:h.a.string,href:h.a.string,onClick:h.a.func,onSelect:h.a.func,eventKey:h.a.any},ko=function(r){function e(e,t){var n;return(n=r.call(this,e,t)||this).handleClick=n.handleClick.bind(me(me(n))),n}l(e,r);var t=e.prototype;return t.handleClick=function(e){this.props.disabled?e.preventDefault():this.props.onSelect&&this.props.onSelect(this.props.eventKey,e)},t.render=function(){var e=this.props,t=e.active,n=e.disabled,r=e.onClick,o=e.className,i=e.style,a=P(e,["active","disabled","onClick","className","style"]);return delete a.onSelect,delete a.eventKey,delete a.activeKey,delete a.activeHref,a.role?"tab"===a.role&&(a["aria-selected"]=t):"#"===a.href&&(a.role="button"),k.a.createElement("li",{role:"presentation",className:A()(o,{active:t,disabled:n}),style:i},k.a.createElement(Ee,O({},a,{disabled:n,onClick:ve(r,this.handleClick)})))},e}(k.a.Component);ko.propTypes=To,ko.defaultProps={active:!1,disabled:!1};var Po=ko,Ao=n(187),Ro=n.n(Ao),Mo=O({},Ro.a.propTypes,{show:h.a.bool,rootClose:h.a.bool,onHide:h.a.func,animation:h.a.oneOfType([h.a.bool,ye.a]),onEnter:h.a.func,onEntering:h.a.func,onEntered:h.a.func,onExit:h.a.func,onExiting:h.a.func,onExited:h.a.func,placement:h.a.oneOf(["top","right","bottom","left"])}),No={animation:un,rootClose:!1,show:!1,placement:"right"},Io=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e,t=this.props,n=t.animation,r=t.children,o=P(t,["animation","children"]),i=!0===n?un:n||null;return e=i?r:Object(T.cloneElement)(r,{className:A()(r.props.className,"in")}),k.a.createElement(Ro.a,O({},o,{transition:i}),e)},t}(k.a.Component);Io.propTypes=Mo,Io.defaultProps=No;var jo=Io,Do=n(305),Lo=n.n(Do);function Bo(e,t){return Lo()(t)?0<=t.indexOf(e):e===t}var Fo=h.a.oneOf(["click","hover","focus"]),Ho=O({},jo.propTypes,{trigger:h.a.oneOfType([Fo,h.a.arrayOf(Fo)]),delay:h.a.number,delayShow:h.a.number,delayHide:h.a.number,defaultOverlayShown:h.a.bool,overlay:h.a.node.isRequired,onBlur:h.a.func,onClick:h.a.func,onFocus:h.a.func,onMouseOut:h.a.func,onMouseOver:h.a.func,target:h.a.oneOf([null]),onHide:h.a.oneOf([null]),show:h.a.oneOf([null])}),Uo=function(r){function e(e,t){var n;return(n=r.call(this,e,t)||this).handleToggle=n.handleToggle.bind(me(me(n))),n.handleDelayedShow=n.handleDelayedShow.bind(me(me(n))),n.handleDelayedHide=n.handleDelayedHide.bind(me(me(n))),n.handleHide=n.handleHide.bind(me(me(n))),n.handleMouseOver=function(e){return n.handleMouseOverOut(n.handleDelayedShow,e,"fromElement")},n.handleMouseOut=function(e){return n.handleMouseOverOut(n.handleDelayedHide,e,"toElement")},n._mountNode=null,n.state={show:e.defaultOverlayShown},n}l(e,r);var t=e.prototype;return t.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},t.componentDidUpdate=function(){this.renderOverlay()},t.componentWillUnmount=function(){ze.a.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},t.handleDelayedHide=function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;t?this._hoverHideDelay=setTimeout(function(){e._hoverHideDelay=null,e.hide()},t):this.hide()}},t.handleDelayedShow=function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;t?this._hoverShowDelay=setTimeout(function(){e._hoverShowDelay=null,e.show()},t):this.show()}},t.handleHide=function(){this.hide()},t.handleMouseOverOut=function(e,t,n){var r=t.currentTarget,o=t.relatedTarget||t.nativeEvent[n];o&&o===r||Rt()(r,o)||e(t)},t.handleToggle=function(){this.state.show?this.hide():this.show()},t.hide=function(){this.setState({show:!1})},t.makeOverlay=function(e,t){return k.a.createElement(jo,O({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},t.show=function(){this.setState({show:!0})},t.renderOverlay=function(){ze.a.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},t.render=function(){var e=this.props,t=e.trigger,n=e.overlay,r=e.children,o=e.onBlur,i=e.onClick,a=e.onFocus,s=e.onMouseOut,u=e.onMouseOver,l=P(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete l.delay,delete l.delayShow,delete l.delayHide,delete l.defaultOverlayShown;var c=k.a.Children.only(r),f=c.props,d={};return this.state.show&&(d["aria-describedby"]=n.props.id),d.onClick=ve(f.onClick,i),Bo("click",t)&&(d.onClick=ve(d.onClick,this.handleToggle)),Bo("hover",t)&&(d.onMouseOver=ve(f.onMouseOver,u,this.handleMouseOver),d.onMouseOut=ve(f.onMouseOut,s,this.handleMouseOut)),Bo("focus",t)&&(d.onFocus=ve(f.onFocus,a,this.handleDelayedShow),d.onBlur=ve(f.onBlur,o,this.handleDelayedHide)),this._overlay=this.makeOverlay(n,l),Object(T.cloneElement)(c,d)},e}(k.a.Component);Uo.propTypes=Ho,Uo.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};var zo=Uo,Wo=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=V(P(e,["className","children"])),o=r[0],i=r[1],a=U(o);return k.a.createElement("div",O({},i,{className:A()(t,a)}),k.a.createElement("h1",null,n))},t}(k.a.Component),Vo=B("page-header",Wo),qo={disabled:h.a.bool,previous:h.a.bool,next:h.a.bool,onClick:h.a.func,onSelect:h.a.func,eventKey:h.a.any},Go=function(r){function e(e,t){var n;return(n=r.call(this,e,t)||this).handleSelect=n.handleSelect.bind(me(me(n))),n}l(e,r);var t=e.prototype;return t.handleSelect=function(e){var t=this.props,n=t.disabled,r=t.onSelect,o=t.eventKey;n?e.preventDefault():r&&r(o,e)},t.render=function(){var e=this.props,t=e.disabled,n=e.previous,r=e.next,o=e.onClick,i=e.className,a=e.style,s=P(e,["disabled","previous","next","onClick","className","style"]);return delete s.onSelect,delete s.eventKey,k.a.createElement("li",{className:A()(i,{disabled:t,previous:n,next:r}),style:a},k.a.createElement(Ee,O({},s,{disabled:t,onClick:ve(o,this.handleSelect)})))},e}(k.a.Component);Go.propTypes=qo,Go.defaultProps={disabled:!1,previous:!1,next:!1};var Ko=Go,Xo={};function Yo(e,t,n){var r;"object"==typeof e?r=e.message:(r=e+" is deprecated. Use "+t+" instead.",n&&(r+="\nYou can read more about it at "+n)),Xo[r]||(Xo[r]=!0)}Yo.wrapper=function(e){for(var t=arguments.length,i=new Array(1`","``"),Jo={onSelect:h.a.func},Zo=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.onSelect,n=e.className,r=e.children,o=V(P(e,["onSelect","className","children"])),i=o[0],a=o[1],s=U(i);return k.a.createElement("ul",O({},a,{className:A()(n,s)}),X.map(r,function(e){return Object(T.cloneElement)(e,{onSelect:ve(e.props.onSelect,t)})}))},t}(k.a.Component);Zo.propTypes=Jo,Zo.Item=Ko;var Qo=B("pager",Zo),ei={eventKey:h.a.any,className:h.a.string,onSelect:h.a.func,disabled:h.a.bool,active:h.a.bool,activeLabel:h.a.string.isRequired};function ti(e){var t=e.active,n=e.disabled,r=e.className,o=e.style,i=e.activeLabel,a=e.children,s=P(e,["active","disabled","className","style","activeLabel","children"]),u=t||n?"span":Ee;return k.a.createElement("li",{style:o,className:A()(r,{active:t,disabled:n})},k.a.createElement(u,O({disabled:n},s),a,t&&k.a.createElement("span",{className:"sr-only"},i)))}function ni(e,a,s){var t,n;return void 0===s&&(s=e),n=t=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.children,r=e.className,o=P(e,["disabled","children","className"]),i=t?"span":Ee;return k.a.createElement("li",O({"aria-label":s,className:A()(r,{disabled:t})},o),k.a.createElement(i,null,n||a))},t}(k.a.Component),t.displayName=e,t.propTypes={disabled:h.a.bool},n}ti.propTypes=ei,ti.defaultProps={active:!1,disabled:!1,activeLabel:"(current)"};var ri=ni("First","«"),oi=ni("Prev","‹"),ii=ni("Ellipsis","…","More"),ai=ni("Next","›"),si=ni("Last","»"),ui=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=V(P(e,["className","children"])),o=r[0],i=r[1],a=U(o);return k.a.createElement("ul",O({},i,{className:A()(t,a)}),n)},t}(k.a.Component);B("pagination",ui),ui.First=ri,ui.Prev=oi,ui.Ellipsis=ii,ui.Item=ti,ui.Next=ai,ui.Last=si;var li=ui,ci={onEnter:h.a.func,onEntering:h.a.func,onEntered:h.a.func,onExit:h.a.func,onExiting:h.a.func,onExited:h.a.func},fi={$bs_panel:h.a.shape({headingId:h.a.string,bodyId:h.a.string,bsClass:h.a.string,expanded:h.a.bool})},di=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props.children,t=this.context.$bs_panel||{},n=t.headingId,r=t.bodyId,o=t.bsClass,i=t.expanded,a=V(this.props),s=a[0],u=a[1];return s.bsClass=o||s.bsClass,n&&r&&(u.id=r,u.role=u.role||"tabpanel",u["aria-labelledby"]=n),k.a.createElement(Tt,O({in:i},u),k.a.createElement("div",{className:L(s,"collapse")},e))},t}(k.a.Component);di.propTypes=ci,di.contextTypes=fi;var pi=B("panel",di),hi={collapsible:h.a.bool.isRequired},mi={$bs_panel:h.a.shape({bsClass:h.a.string})},gi=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.collapsible,o=(this.context.$bs_panel||{}).bsClass,i=q(this.props,["collapsible"]),a=i[0],s=i[1];a.bsClass=o||a.bsClass;var u=k.a.createElement("div",O({},s,{className:A()(n,L(a,"body"))}),t);return r&&(u=k.a.createElement(pi,null,u)),u},t}(k.a.Component);gi.propTypes=hi,gi.defaultProps={collapsible:!1},gi.contextTypes=mi;var yi=B("panel",gi),vi=n(68),bi=n.n(vi),wi={componentClass:bi.a},_i={$bs_panel:h.a.shape({headingId:h.a.string,bsClass:h.a.string})},Ei=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.componentClass,o=P(e,["children","className","componentClass"]),i=this.context.$bs_panel||{},a=i.headingId,s=i.bsClass,u=V(o),l=u[0],c=u[1];return l.bsClass=s||l.bsClass,a&&(c.role=c.role||"tab",c.id=a),k.a.createElement(r,O({},c,{className:A()(n,L(l,"heading"))}),t)},t}(k.a.Component);Ei.propTypes=wi,Ei.defaultProps={componentClass:"div"},Ei.contextTypes=_i;var xi=B("panel",Ei),Si={onClick:h.a.func,componentClass:bi.a},Ci={componentClass:Ee},Oi={$bs_panel:h.a.shape({bodyId:h.a.string,onToggle:h.a.func,expanded:h.a.bool})},Ti=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r
* @license MIT
*/
var r=B(1018),i=B(1019),a=B(888);function n(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(r)return I(e).length;t=(""+t).toLowerCase(),r=!0}}function h(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=f.from(t,r)),f.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s/=a=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return w(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return b(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=L.INSPECT_MAX_BYTES;return 0t&&(e+=" ... ")),""},f.prototype.compare=function(e,t,n,r,o){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(o<=r&&n<=t)return 0;if(o<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n),c=0;cthis.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i,a,s,u,l,c,f,d,p,h=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return d=t,p=n,D(I(e,(f=this).length-d),f,d,p);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return v(this,e,t,n);case"base64":return u=this,l=t,c=n,D(j(e),u,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=t,s=n,D(function(e,t){for(var n,r,o,i=[],a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(e,(i=this).length-a),i,a,s);default:if(h)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function E(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;oe.length)throw new RangeError("Index out of range")}function k(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function A(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return o||A(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return o||A(e,0,n,8),i.write(e,t,n,r,52,8),n+8}f.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):r>>8):k(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);T(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},f.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);T(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;0<=--i&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},f.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},f.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),0=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(t,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,B(32))},,function(e,t,n){var r=n(118),o=n(162);e.exports=n(67)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=o(n(1)),r=o(n(78));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.default)(function(e,t,n,r,o){var i=e[t],a=void 0===i?"undefined":s(i);return u.default.isValidElement(i)?new Error("Invalid "+r+" `"+o+"` of type ReactElement supplied to `"+n+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===a&&"function"==typeof i.render||1===i.nodeType?null:new Error("Invalid "+r+" `"+o+"` of value `"+i+"` supplied to `"+n+"`, expected a ReactComponent or a DOMElement.")}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var r,o=n(8),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";var r=n(16);t.__esModule=!0,t.default=function(e){if((!o&&0!==o||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),o=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return o};var o,i=r(n(46));e.exports=t.default},,,,,,,function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(237),o=n(120);e.exports=function(e){return r(o(e))}},,,,,,,,,,,,,,function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0e.clientHeight};var o=r(n(129)),i=r(n(70));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},,function(e,t,n){e.exports=n(572)},function(e,t,n){"use strict";var r=n(16);t.__esModule=!0,t.default=void 0;var o=r(n(179));t.on=o.default;var i=r(n(180));t.off=i.default;var a=r(n(591));t.filter=a.default;var s=r(n(593));t.listen=s.default;var u={on:o.default,off:i.default,filter:a.default,listen:s.default};t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t "+e:e}},e.exports=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){e.exports={default:n(2194),__esModule:!0}},function(e,t,n){var i=n(433);e.exports=function(r,o,e){if(i(r),void 0===o)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t,n){var r=n(153),o=Math.min;e.exports=function(e){return 0document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][a[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(u[l]=o(e),n=new u,u[l]=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var u=n(67),l=n(102),c=n(139),f=n(239).f;e.exports=function(s){return function(e){for(var t,n=c(e),r=l(n),o=r.length,i=0,a=[];i>",s=i||n;if(null==t[n])return e?new Error("Required "+o+" `"+s+"` was not specified in `"+a+"`."):null;for(var u=arguments.length,l=Array(6o;)a(r,n=t[o++])&&(~u(i,n)||i.push(n));return i}},function(e,t,n){var u=n(139),l=n(271),c=n(439);e.exports=function(s){return function(e,t,n){var r,o=u(e),i=l(o.length),a=c(n,i);if(s&&t!=t){for(;a>>0||(a.test(n)?16:10))}:r},function(e,t,n){var a=n(35),r=n(120),s=n(89),u=n(295),o="["+u+"]",i=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),c=function(e,t,n){var r={},o=s(function(){return!!u[e]()||"
"!="
"[e]()}),i=r[e]=o?t(f):u[e];n&&(r[n]=i),a(a.P+a.F*o,"String",r)},f=c.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(i,"")),2&t&&(e=e.replace(l,"")),e};e.exports=c},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(0))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){n(578),n(584),e.exports=n(28).Array.from},function(e,t,n){"use strict";var r=n(579)(!0);n(580)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var u=n(153),l=n(120);e.exports=function(s){return function(e,t){var n,r,o=String(l(e)),i=u(t),a=o.length;return i<0||a<=i?s?"":void 0:(n=o.charCodeAt(i))<55296||56319>",a=o||t;if(null!=e[t]){var s=n+"."+t;(0,p.default)(h[s],"The "+r+" `"+a+"` of `"+i+"` is deprecated. "+d+"."),h[s]=!0}for(var u=arguments.length,l=Array(5>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t}(e)},i.utf8decode=function(e){return u.nodebuffer?s.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,r,o,i=e.length,a=new Array(2*i);for(t=n=0;t>10&1023,a[n++]=56320|1023&r)}return a.length!==n&&(a.subarray?a=a.subarray(0,n):a.length=n),s.applyFromCharCode(a)}(e=s.transformTo(u.uint8array?"uint8array":"array",e))},s.inherits(a,r),a.prototype.processChunk=function(e){var t=s.transformTo(u.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(u.uint8array){var n=t;(t=new Uint8Array(n.length+this.leftOver.length)).set(this.leftOver,0),t.set(n,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var r=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+l[e[n]]>t?n:t}(t),o=t;r!==t.length&&(u.uint8array?(o=t.subarray(0,r),this.leftOver=t.subarray(r,t.length)):(o=t.slice(0,r),this.leftOver=t.slice(r,t.length))),this.push({data:i.utf8decode(o),meta:e.meta})},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=a,s.inherits(c,r),c.prototype.processChunk=function(e){this.push({data:i.utf8encode(e.data),meta:e.meta})},i.Utf8EncodeWorker=c},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(1521),o=n(1353);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(287).Symbol;e.exports=r},function(e,t,n){var r=n(1011),o=n(1562);e.exports=n(880)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(2306),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(307)),l=o(n(1)),r=o(n(0)),c=o(n(429));function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e,t){var n=e.name,r=e.dimmed,o=e.styles,i=t.theme,a=(0,c.default)("ObjectName",i),s=(0,u.default)({},a.base,r?a.dimmed:{},o);return l.default.createElement("span",{style:s},n)};i.propTypes={name:r.default.string,dimmed:r.default.bool},i.defaultProps={dimmed:!1},i.contextTypes={theme:r.default.oneOfType([r.default.string,r.default.object])},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(350)),u=o(n(307)),l=o(n(1)),r=o(n(0)),c=o(n(429));function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e,t){var n=e.object,r=e.styles,o=t.theme,i=(0,c.default)("ObjectValue",o),a=function(e){return(0,u.default)({},i[e],r)};switch(void 0===n?"undefined":(0,s.default)(n)){case"number":return l.default.createElement("span",{style:a("objectValueNumber")},String(n));case"string":return l.default.createElement("span",{style:a("objectValueString")},'"',n,'"');case"boolean":return l.default.createElement("span",{style:a("objectValueBoolean")},String(n));case"undefined":return l.default.createElement("span",{style:a("objectValueUndefined")},"undefined");case"object":return null===n?l.default.createElement("span",{style:a("objectValueNull")},"null"):n instanceof Date?l.default.createElement("span",null,n.toString()):n instanceof RegExp?l.default.createElement("span",{style:a("objectValueRegExp")},n.toString()):Array.isArray(n)?l.default.createElement("span",null,"Array["+n.length+"]"):n.constructor?"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)?l.default.createElement("span",null,"Buffer["+n.length+"]"):l.default.createElement("span",null,n.constructor.name):l.default.createElement("span",null,"Object");case"function":return l.default.createElement("span",null,l.default.createElement("span",{style:a("objectValueFunctionKeyword")},"function"),l.default.createElement("span",{style:a("objectValueFunctionName")}," ",n.name,"()"));case"symbol":return l.default.createElement("span",{style:a("objectValueSymbol")},n.toString());default:return l.default.createElement("span",null)}};i.propTypes={object:r.default.any},i.contextTypes={theme:r.default.oneOfType([r.default.string,r.default.object])},t.default=i},function(e,t,n){"use strict";(function(n){e.exports={isNode:void 0!==n,newBuffer:function(e,t){return new n(e,t)},isBuffer:function(e){return n.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}}).call(this,n(122).Buffer)},function(e,t,n){var i=n(994);e.exports=function(r,o,e){if(i(r),void 0===o)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(2123),o=n(2124),i=n(2125),a=n(2126),s=n(2127);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t)?=?)";var x=n++;t[x]=t[s]+"|x|X|\\*";var S=n++;t[S]=t[a]+"|x|X|\\*";var C=n++;t[C]="[v=\\s]*("+t[S]+")(?:\\.("+t[S]+")(?:\\.("+t[S]+")(?:"+t[h]+")?"+t[y]+"?)?)?";var O=n++;t[O]="[v=\\s]*("+t[x]+")(?:\\.("+t[x]+")(?:\\.("+t[x]+")(?:"+t[m]+")?"+t[y]+"?)?)?";var T=n++;t[T]="^"+t[E]+"\\s*"+t[C]+"$";var k=n++;t[k]="^"+t[E]+"\\s*"+t[O]+"$";var P=n++;t[P]="(?:~>?)";var A=n++;t[A]="(\\s*)"+t[P]+"\\s+",i[A]=new RegExp(t[A],"g");var R=n++;t[R]="^"+t[P]+t[C]+"$";var M=n++;t[M]="^"+t[P]+t[O]+"$";var N=n++;t[N]="(?:\\^)";var I=n++;t[I]="(\\s*)"+t[N]+"\\s+",i[I]=new RegExp(t[I],"g");var j=n++;t[j]="^"+t[N]+t[C]+"$";var D=n++;t[D]="^"+t[N]+t[O]+"$";var L=n++;t[L]="^"+t[E]+"\\s*("+w+")$|^$";var B=n++;t[B]="^"+t[E]+"\\s*("+b+")$|^$";var F=n++;t[F]="(\\s*)"+t[E]+"\\s*("+w+"|"+t[C]+")",i[F]=new RegExp(t[F],"g");var H=n++;t[H]="^\\s*("+t[C]+")\\s+-\\s+("+t[C]+")\\s*$";var U=n++;t[U]="^\\s*("+t[O]+")\\s+-\\s+("+t[O]+")\\s*$";var z=n++;t[z]="(<|>)?=?\\s*\\*";for(var W=0;W<34;W++)f(W,t[W]),i[W]||(i[W]=new RegExp(t[W]));function V(e,t){if(e instanceof q)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t?i[_]:i[v]).test(e))return null;try{return new q(e,t)}catch(e){return null}}function q(e,t){if(e instanceof q){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof q))return new q(e,t);f("SemVer",e,t),this.loose=t;var n=e.trim().match(t?i[_]:i[v]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(0<=t&&t":o=$(e,n,r);break;case">=":o=ee(e,n,r);break;case"<":o=J(e,n,r);break;case"<=":o=te(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return o}function re(e,t){if(e instanceof re){if(e.loose===t)return e;e=e.value}if(!(this instanceof re))return new re(e,t);f("comparator",e,t),this.loose=t,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,f("comp",this)}de.rcompareIdentifiers=function(e,t){return K(t,e)},de.major=function(e,t){return new q(e,t).major},de.minor=function(e,t){return new q(e,t).minor},de.patch=function(e,t){return new q(e,t).patch},de.compare=X,de.compareLoose=function(e,t){return X(e,t,!0)},de.rcompare=Y,de.sort=function(e,n){return e.sort(function(e,t){return de.compare(e,t,n)})},de.rsort=function(e,n){return e.sort(function(e,t){return de.rcompare(e,t,n)})},de.gt=$,de.lt=J,de.eq=Z,de.neq=Q,de.gte=ee,de.lte=te,de.cmp=ne,de.Comparator=re;var oe={};function ie(e,t){if(e instanceof ie&&e.loose===t)return e;if(!(this instanceof ie))return new ie(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ae(e){return!e||"x"===e.toLowerCase()||"*"===e}function se(e,t,n,r,o,i,a,s,u,l,c,f,d){return((t=ae(n)?"":ae(r)?">="+n+".0.0":ae(o)?">="+n+"."+r+".0":">="+t)+" "+(s=ae(u)?"":ae(l)?"<"+(+u+1)+".0.0":ae(c)?"<"+u+"."+(+l+1)+".0":f?"<="+u+"."+l+"."+c+"-"+f:"<="+s)).trim()}function ue(e,t){for(var n=0;n":o=$,i=te,a=J,s=">",u=">=";break;case"<":o=J,i=ee,a=$,s="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,r))return!1;for(var l=0;l=0.0.0")),f=f||e,d=d||e,o(e.semver,f.semver,r)?f=e:a(e.semver,d.semver,r)&&(d=e)}),f.operator===s||f.operator===u)return!1;if((!d.operator||d.operator===s)&&i(e,d.semver))return!1;if(d.operator===u&&a(e,d.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.loose?i[L]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new q(n[2],this.loose):this.semver=oe},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return f("Comparator.test",e,this.loose),this.semver===oe||("string"==typeof e&&(e=new q(e,this.loose)),ne(e,this.operator,this.semver,this.loose))},(de.Range=ie).prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},ie.prototype.toString=function(){return this.range},ie.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),f("range",e,t);var n=t?i[U]:i[H];e=e.replace(n,se),f("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),f("comparator trim",e,i[F]),e=(e=(e=e.replace(i[A],"$1~")).replace(i[I],"$1^")).split(/\s+/).join(" ");var r=t?i[L]:i[B],o=e.split(" ").map(function(e){return function(e,t){return f("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(a,e){f("caret",a,e);var t=e?i[D]:i[j];return a.replace(t,function(e,t,n,r,o){var i;return f("caret",a,e,t,n,r,o),i=ae(t)?"":ae(n)?">="+t+".0.0 <"+(+t+1)+".0.0":ae(r)?"0"===t?">="+t+"."+n+".0 <"+t+"."+(+n+1)+".0":">="+t+"."+n+".0 <"+(+t+1)+".0.0":o?(f("replaceCaret pr",o),"-"!==o.charAt(0)&&(o="-"+o),"0"===t?"0"===n?">="+t+"."+n+"."+r+o+" <"+t+"."+n+"."+(+r+1):">="+t+"."+n+"."+r+o+" <"+t+"."+(+n+1)+".0":">="+t+"."+n+"."+r+o+" <"+(+t+1)+".0.0"):(f("no pr"),"0"===t?"0"===n?">="+t+"."+n+"."+r+" <"+t+"."+n+"."+(+r+1):">="+t+"."+n+"."+r+" <"+t+"."+(+n+1)+".0":">="+t+"."+n+"."+r+" <"+(+t+1)+".0.0"),f("caret return",i),i})}(e,t)}).join(" ")}(e,t),f("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(a,e){var t=e?i[M]:i[R];return a.replace(t,function(e,t,n,r,o){var i;return f("tilde",a,e,t,n,r,o),i=ae(t)?"":ae(n)?">="+t+".0.0 <"+(+t+1)+".0.0":ae(r)?">="+t+"."+n+".0 <"+t+"."+(+n+1)+".0":o?(f("replaceTilde pr",o),"-"!==o.charAt(0)&&(o="-"+o),">="+t+"."+n+"."+r+o+" <"+t+"."+(+n+1)+".0"):">="+t+"."+n+"."+r+" <"+t+"."+(+n+1)+".0",f("tilde return",i),i})}(e,t)}).join(" ")}(e,t),f("tildes",e),e=function(e,t){return f("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(c,e){c=c.trim();var t=e?i[k]:i[T];return c.replace(t,function(e,t,n,r,o,i){f("xRange",c,e,t,n,r,o,i);var a=ae(n),s=a||ae(r),u=s||ae(o),l=u;return"="===t&&l&&(t=""),a?e=">"===t||"<"===t?"<0.0.0":"*":t&&l?(s&&(r=0),u&&(o=0),">"===t?(t=">=",s?(n=+n+1,o=r=0):u&&(r=+r+1,o=0)):"<="===t&&(t="<",s?n=+n+1:r=+r+1),e=t+n+"."+r+"."+o):s?e=">="+n+".0.0 <"+(+n+1)+".0.0":u&&(e=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0"),f("xRange return",e),e})}(e,t)}).join(" ")}(e,t),f("xrange",e),e=function(e,t){return f("replaceStars",e,t),e.trim().replace(i[z],"")}(e,t),f("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(o=o.filter(function(e){return!!e.match(r)})),o=o.map(function(e){return new re(e,t)})},de.toComparators=function(e,t){return new ie(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},ie.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new q(e,this.loose));for(var t=0;t",n)},de.outside=ce,de.prerelease=function(e,t){var n=V(e,t);return n&&n.prerelease.length?n.prerelease:null}}).call(this,e(36))},function(e,t,n){"use strict";var r=n(1934).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(n);if(1e.maxRecordSize-16?Promise.reject("The record is too large. The maximum allowable size is ".concat(e.maxRecordSize," bytes.")):Promise.resolve()}):Promise.reject("Invalid record: ".concat(t))}i.getLibraryManifest=function(){return(0,l.getPathRef)((0,l.getSharedDatabase)(),"metadata/manifest").once("value").then(function(e){return e.val()})},i.getColumnsForTable=function(e,t){var n="shared"===t?(0,l.getSharedDatabase)():(0,l.getProjectDatabase)();return(0,c.getColumnNamesSnapshot)(n,e)},i.channelExists=function(){return(0,l.getProjectDatabase)().once("value").then(function(e){return null!==e.val()})},i.clearAllData=function(e,t){(0,l.getProjectDatabase)().set(null).then(e,t)},i.getKeyValue=function(e,n,t){e=p(e,t);try{(0,l.validateFirebaseKey)(e)}catch(e){return void t({type:f.WarningType.KEY_INVALID,msg:"The key is invalid. ".concat(e.message)})}(0,l.getPathRef)((0,l.getProjectDatabase)(),"".concat(d,"/").concat(e)).once("value",function(e){var t=null===e.val()?void 0:JSON.parse(e.val());n(t)},t)},i.setKeyValue=function(t,e,n,r){t=p(t,r);var o=void 0===e?null:JSON.stringify(e);(0,l.loadConfig)().then(function(e){try{(0,l.validateFirebaseKey)(t)}catch(e){return Promise.reject({type:f.WarningType.KEY_INVALID,msg:"The key is invalid. ".concat(e.message)})}return o&&o.length>e.maxPropertySize?Promise.reject("The value is too large. The maximum allowable size is ".concat(e.maxPropertySize," bytes.")):(0,s.incrementRateLimitCounters)()}).then(function(){return(0,l.getPathRef)((0,l.getProjectDatabase)(),"".concat(d,"/").concat(t)).set(o)}).then(n,r)},i.deleteKeyValue=function(e,t,n){(0,l.getPathRef)((0,l.getProjectDatabase)(),"".concat(d,"/").concat(e)).set(null).then(t,n)},i.createRecord=function(t,n,e,r){t=h(t,r);y(n).then(function(){return g(t)}).then(function(){return(0,s.incrementRateLimitCounters)()}).then(function(){return(0,s.updateTableCounters)(t,1,!0)}).then(function(e){return n.id=e,(0,l.getPathRef)((0,l.getProjectDatabase)(),"storage/tables/".concat(t,"/records/").concat(n.id)).set(JSON.stringify(n))}).then(function(){return(0,c.addMissingColumns)(t,(0,c.getColumnNamesFromRecords)([JSON.stringify(n)]))}).then(function(){return e(n)},r)},i.readRecords=function(e,o,t,n){var r;e=h(e,n),Promise.all([(0,l.getPathRef)((0,l.getProjectDatabase)(),"current_tables/".concat(e)).once("value",function(e){e.val()&&(r=(0,l.getSharedDatabase)())}),(0,l.getProjectCountersRef)(e).once("value",function(e){e.val()&&(r=(0,l.getProjectDatabase)())})]).then(function(){r?(0,l.getPathRef)(r,"storage/tables/".concat(e,"/records")).once("value",function(e){var n=e.val()||{},r=[];Object.keys(n).forEach(function(e){var t=JSON.parse(n[e]);(function(t,n){var r=!0;return Object.keys(n||{}).forEach(function(e){r=r&&t[e]===n[e]}),r})(t,o)&&r.push(t)}),t(r)},n):t(null)})},i.updateRecord=function(t,n,r,o){t=h(t,o);var i=JSON.stringify(n),a=(0,l.getPathRef)((0,l.getProjectDatabase)(),"storage/tables/".concat(t,"/records/").concat(n.id));y(n,!0).then(function(){return m(t,n.id)}).then(function(e){e?(0,s.incrementRateLimitCounters)().then(function(){return(0,s.updateTableCounters)(t,0)}).then(function(){return a.set(i)}).then(function(){return(0,c.addMissingColumns)(t,(0,c.getColumnNamesFromRecords)([i]))}).then(function(){return r(n,!0)},o):r(null,!1)})},i.deleteRecord=function(t,e,n,r){t=h(t,r);var o=(0,l.getPathRef)((0,l.getProjectDatabase)(),"storage/tables/".concat(t,"/records/").concat(e.id));m(t,e.id).then(function(e){e?(0,l.loadConfig)().then(function(){return(0,s.incrementRateLimitCounters)()}).then(function(){return(0,s.updateTableCounters)(t,-1)}).then(function(){return o.set(null)}).then(function(){return n(!0)},r):n(!1)})};var v=[];function b(e){var t=function(e,t){return e.once("value").then(function(e){if(e.val())return Promise.reject({type:f.WarningType.DUPLICATE_TABLE_NAME,msg:'There is already a table with name "'.concat(t,'"')})})};return Promise.all([t((0,l.getProjectCountersRef)(e),e),t((0,l.getPathRef)((0,l.getProjectDatabase)(),"current_tables/".concat(e)),e)])}function w(e){var r={};return e.forEach(function(e,t){var n=t+1;e.id=n,r[n]=JSON.stringify(e)}),r}function _(e,t){var n=(0,l.getRecordsRef)(e),r=(0,l.getProjectCountersRef)(e);return(0,c.getColumnsRef)((0,l.getProjectDatabase)(),e).set(null).then(function(){return n.set(t)}).then(function(){return r.set(null)}).then(function(){var e=Object.keys(t).length;return r.set({lastId:e,rowCount:e})}).then(function(){return(0,c.addMissingColumns)(e,(0,c.getColumnNamesFromRecords)(Object.values(t)))})}i.onRecordEvent=function(t,r,e,o){if("function"!=typeof e)throw new Error("onError is a required parameter to FirebaseStorage.onRecordEvent");t?(v.includes(t)&&e('onRecordEvent was already called for table "'.concat(t,'". To avoid ')+"unexpected behavior in your program, you should only call onRecordEvent once per table, and use if/else statements to handle the different event types."),v.push(t),(0,s.getLastRecordId)(t).then(function(n){var e=(0,l.getRecordsRef)(t);e.on("child_added",function(e){var t=JSON.parse(e.val());(o||t.id>n)&&r(t,"create")}),e.on("child_changed",function(e){r(JSON.parse(e.val()),"update")}),e.on("child_removed",function(e){var t=JSON.parse(e.val());r({id:t.id},"delete")})})):e('Error listening for record events: missing required parameter "tableName"',400)},i.resetRecordListener=function(){v.forEach(function(e){return(0,l.getRecordsRef)(e).off()}),v=[]},i.resetForTesting=function(){(0,l.isInitialized)()&&(i.resetRecordListener(),(0,l.getProjectDatabase)().set(null),(0,l.resetConfigForTesting)())},i.addCurrentTableToProject=function(t,e,n){return b(t).then(s.incrementRateLimitCounters).then(l.loadConfig).then(function(e){return(0,s.enforceTableCount)(e,t)}).then(function(){(0,l.getPathRef)((0,l.getProjectDatabase)(),"current_tables/".concat(t)).set(!0)}).then(e,n)},i.copyStaticTable=function(t,e,n){return b(t).then(s.incrementRateLimitCounters).then(l.loadConfig).then(function(e){return(0,s.enforceTableCount)(e,t)}).then(function(){return(0,l.getPathRef)((0,l.getSharedDatabase)(),"counters/tables/".concat(t)).once("value")}).then(function(e){(0,l.getProjectCountersRef)(t).set(e.val())}).then(function(){return(0,l.getPathRef)((0,l.getSharedDatabase)(),"storage/tables/".concat(t,"/records")).once("value")}).then(function(e){return(0,l.getRecordsRef)(t).set(e.val()),e}).then(function(e){return(0,c.addMissingColumns)(t,(0,c.getColumnNamesFromRecords)(e.val()))}).then(e,n)},i.createTable=function(t,e,n){return g(t).then(function(){return b(t)}).then(s.incrementRateLimitCounters).then(l.loadConfig).then(function(e){return(0,s.enforceTableCount)(e,t)}).then(function(){(0,l.getProjectCountersRef)(t).transaction(function(e){return null===e?{lastId:0,rowCount:0}:e}).then(function(e){return e.committed?Promise.resolve():Promise.reject('Unexpected error creating table "'.concat(t,'"'))})}).then(function(){return(0,c.addColumnName)(t,"id")}).then(e,n)},i.deleteTable=function(e,t,n,r){if(t===a.tableType.SHARED)(0,l.getPathRef)((0,l.getProjectDatabase)(),"current_tables/".concat(e)).set(null).then(n,r);else{var o=(0,l.getPathRef)((0,l.getProjectDatabase)(),"storage/tables/".concat(e)),i=(0,l.getProjectCountersRef)(e);o.set(null).then(function(){return i.set(null)}).then(function(){return(0,c.getColumnsRef)((0,l.getProjectDatabase)(),e).set(null)}).then(n,r)}},i.clearTable=function(e,t,n){(0,l.getPathRef)((0,l.getProjectDatabase)(),"storage/tables/".concat(e)).set(null).then(function(){return(0,l.getPathRef)((0,l.getProjectCountersRef)(e),"rowCount").set(0)}).then(t,n)},i.populateTable=function(i){return i&&i.length?(0,s.incrementRateLimitCounters)().then(function(){return(0,l.getPathRef)((0,l.getProjectDatabase)(),"counters/tables").once("value").then(function(e){return e.val()||{}})}).then(function(e){var t,n=[];try{t=JSON.parse(i)}catch(e){return Promise.reject("".concat(e,"\nwhile parsing initial table data: ").concat(i))}for(var r in t)if(void 0===e[r]){var o=w(t[r]);n.push(_(r,o))}return Promise.all(n)}):Promise.resolve()},i.populateKeyValue=function(o,e,t){o&&o.length&&(0,l.getPathRef)((0,l.getProjectDatabase)(),d).once("value").then(function(e){return e.val()||{}}).then(function(e){var t;try{t=JSON.parse(o)}catch(e){return Promise.reject("".concat(e,"\nwhile parsing initial key/value data: ").concat(o))}var n={};for(var r in t)void 0===e[r]&&(n[r]=JSON.stringify(t[r]));return n}).then(function(e){return(0,l.getPathRef)((0,l.getProjectDatabase)(),d).update(e)}).then(e,t)},i.addColumn=function(e,t,n,r){return(0,c.addColumnName)(e,t).then(n,r)},i.deleteColumn=function(e,r,t,n){var o=(0,l.getRecordsRef)(e);o.once("value").then(function(e){var n=e.val()||{};return Object.keys(n).forEach(function(e){var t=JSON.parse(n[e]);delete t[r],n[e]=JSON.stringify(t)}),n}).then(function(e){return o.set(e)}).then(function(){return(0,c.deleteColumnName)(e,r)}).then(t,n)},i.renameColumn=function(e,o,i,t,n){if(e){var r=(0,l.getRecordsRef)(e);r.once("value").then(function(e){var r=e.val()||{};return Object.keys(r).forEach(function(e){var t=JSON.parse(r[e]),n={};Object.keys(t).forEach(function(e){n[e===o?i:e]=t[e]}),r[e]=JSON.stringify(n)}),r}).then(function(e){return r.set(e)}).then(function(){return(0,c.renameColumnName)(e,o,i)}).then(t,n)}else n("tableName is a required parameter to FirebaseStorage.renameColumn")},i.coerceColumn=function(e,o,i,t,a){var s=(0,l.getRecordsRef)(e);s.once("value").then(function(e){var n=e.val()||{},r=!0;return Object.keys(n).forEach(function(e){var t=JSON.parse(n[e]);r=r&&function(e,t,n){var r=e[t];if(void 0===r)return!0;switch(n){case u.ColumnType.STRING:return e[t]=String(r),!0;case u.ColumnType.NUMBER:return!!(0,u.isNumber)(r)&&(e[t]=parseFloat(r),!0);case u.ColumnType.BOOLEAN:return!!(0,u.isBoolean)(r)&&(e[t]=(0,u.toBoolean)(r),!0);default:throw new Error("Unexpected column type ".concat(n))}}(t,o,i),n[e]=JSON.stringify(t)}),r||a({type:f.WarningType.CANNOT_CONVERT_COLUMN_TYPE,msg:'Not all values in column "'.concat(o,'" could be converted to type "').concat(i,'".')}),s.set(n)}).then(t,a)},i.importCsv=function(t,e,n,r){(function(e){return new Promise(function(n,r){(0,o.default)(e,{columns:!0},function(e,t){if(e)return r(e);n(t)})}).then(function(e){var o={};return e.forEach(function(e,t){var n=t+1;for(var r in e)e[r]=(0,u.castValue)(e[r],!0);e.id=n,o[n]=JSON.stringify(e)}),o})})(e).then(function(e){return function(n){return(0,l.loadConfig)().then(function(t){return Object.keys(n).length>t.maxTableRows?Promise.reject({type:f.WarningType.IMPORT_FAILED,msg:"Import failed because the data is too large. "+"A table may only contain ".concat(t.maxTableRows," rows.")}):Object.keys(n).some(function(e){return n[e].length>t.maxRecordSize})?Promise.reject({type:f.WarningType.IMPORT_FAILED,msg:"Import failed because one of of the records is too large. "+"The maximum allowable size is ".concat(t.maxRecordSize," bytes.")}):n})}(e)}).then(function(e){return _(t,e)}).then(n,r)};var E=i;t.default=E},function(e,t,n){"use strict";t.byteLength=function(e){return 3*e.length/4-f(e)},t.toByteArray=function(e){var t,n,r,o,i,a,s=e.length;i=f(e),a=new c(3*s/4-i),r=0>16&255,a[u++]=o>>8&255,a[u++]=255&o;2===i?(o=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,a[u++]=255&o):1===i&&(o=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o);return a},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o="",i=[],a=0,s=n-r;a>2],o+=u[t<<4&63],o+="=="):2==r&&(t=(e[n-2]<<8)+e[n-1],o+=u[t>>10],o+=u[t>>4&63],o+=u[t<<2&63],o+="=");return i.push(o),i.join("")};for(var u=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o>18&63]+u[o>>12&63]+u[o>>6&63]+u[63&o]);return i.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=s;0>=-c,c+=r;0>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(t+=1<=a+f?d/u:d*Math.pow(2,1-f))*u&&(a++,u/=2),c<=a+f?(s=0,a=c):1<=a+f?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));8<=o;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][a[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(u[l]=o(e),n=new u,u[l]=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){t.f=n(282)},function(e,t,n){var r=n(380),o=n(260),i=n(977),a=n(1226),s=n(381).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},,function(e,t,n){n(1990);for(var r=n(380),o=n(624),i=n(626),a=n(282)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var o=s,i=r+n;e^=-1;for(var a=r;a>>8^o[255&(e^t[a])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var o=s,i=r+n;e^=-1;for(var a=r;a>>8^o[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length,0):0}},function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,n){var r=n(550),o=n(196).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var o=n(550);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(1353);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){t.f=n(211)},function(e,t,n){var r=n(196),o=n(173),i=n(872),a=n(1378),s=n(454).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var o=n(994);function r(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=o(n),this.reject=o(r)}e.exports.f=function(e){return new r(e)}},function(e,t,n){var o=n(1358),i=n(1367),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var r=e[t];a.call(e,t)&&i(r,n)&&(void 0!==n||t in e)||o(e,t,n)}},function(e,t,n){var r=n(1534);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(r);return o.listener=n,r.wrapFn=o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n=this.map_.ROWS||e<0?null:t>=this.map_.COLS||t<0?null:this.map_.getCell(e,t).getColor()||null},a.prototype.centerFill=function(e,t,n){var r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],f=e[8];d("path",{d:s!=o||s!=u||c||a||r||f?s!=u||s!=c||a||o||i||l?s!=c||s!=a||o||u||f||r?p(this.squareSize,!1,!1,!(s!=a||s!=o||u||c||l||i),!1):p(this.squareSize,!1,!0,!1,!1):p(this.squareSize,!0,!1,!1,!1):p(this.squareSize,!1,!1,!1,!0),stroke:s,fill:s},t,n+"-center")},a.prototype.colorCells=function(e,t,n){var r=this.squareSize,o=e[0],i=e[1],a=e[2],s=e[3],u=e[4],l=e[5],c=e[6],f=e[7],d=e[8],p="g"+n,h=document.getElementById(p);h&&h.querySelectorAll("*").forEach(function(e){return e.remove()}),u?this.centerFill(e,t,n):(i&&l&&i===l&&g(t,n,r,i,a,o,d,m.topRight),l&&f&&l===f&&g(t,n,r,l,d,a,c,m.bottomRight),f&&s&&f===s&&g(t,n,r,f,c,d,o,m.bottomLeft),s&&i&&s===i&&g(t,n,r,s,o,c,a,m.topLeft))},a.prototype.makeGrid=function(e,t,n){var r="g"+e+"."+t;d("g",{transform:"translate("+t*this.squareSize+", \n "+e*this.squareSize+")"},n,r)},a.prototype.getGrid=function(e,t){var n="g"+e+"."+t;return document.getElementById(n)},a.prototype.drawTile=function(e,t,n,r,o,i){var a=this.squareSize,s=this.squareSize;c.prototype.drawTileHelper.call(this,e,t,n,r,o,i,a,s,this.squareSize)},a.prototype.drawAssets=function(){var e,t=this.neighborhood.getAssetList();for(e=0;e=this.map_.ROWS||e<0?null:t>=this.map_.COLS||t<0?null:this.map_.getCell(e,t).getColor()||null},a.prototype.pathCalculator=function(e,t,n,r,o,i,a){var s,u,l,c=(s=this.squareSize,"m"+(u=s/2)+" "+u+"h-"+u+"c0-"+(l=s/4)+" "+l+"-"+u+" "+u+"-"+u+"z"),f=function(e){var t=e/2,n=e/4;return"m0 0v"+t+"c0-"+n+" "+n+"-"+t+" "+t+"-"+t+"z"}(this.squareSize),d="path";e&&h(d,{d:c,stroke:e,transform:o,fill:e},i,a+"-pie"),!e||e!==t&&e!==n?!t||t!==n||r&&e&&e===r?!e||t!==e&&n!==e&&(r!==e||t&&n&&t===n)||h(d,{d:f,stroke:e,transform:o,fill:e},i,a+"-cut"):h(d,{d:f,stroke:t,transform:o,fill:t},i,a+"-cut"):h(d,{d:f,stroke:e,transform:o,fill:e},i,a+"-cut")},a.prototype.makeGrid=function(e,t,n){var r="g"+e+"."+t;return h("g",{transform:"translate("+(t*this.squareSize+this.squareSize)+", \n "+(e*this.squareSize+this.squareSize)+")"},n,r)},a.prototype.drawTile=function(e,t,n,r,o,i){var a=this.squareSize,s=this.squareSize;p.prototype.drawTileHelper.call(this,e,t,n,r,o,i,a,s,this.squareSize)},a.prototype.drawAssets=function(){var e,t=this.neighborhood.getAssetList();for(e=0;et.highWaterMark&&(t.highWaterMark=function(e){return u<=e?e=u:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function c(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?g(f,e):f(e))}function f(e){b("emit readable"),e.emit("readable"),_(e)}function p(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.highWaterMark||t.ended))return b("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?x(this):c(this),null;if(0===(e=l(e,t))&&t.ended)return 0===t.length&&x(this),null;var r,o=t.needReadable;return b("need readable",o),(0===t.length||t.length-e>>31)}t=e.P[0],n=e.P[1];var a,s=e.P[2],u=e.P[3],l=e.P[4];for(o=0;o<80;o++)a=o<40?o<20?(i=u^n&(s^u),1518500249):(i=n^s^u,1859775393):o<60?(i=n&s|u&(n|s),2400959708):(i=n^s^u,3395469782),i=(t<<5|t>>>27)+i+l+a+r[o]&4294967295,l=u,u=s,s=4294967295&(n<<30|n>>>2),n=t,t=i;e.P[0]=e.P[0]+t&4294967295,e.P[1]=e.P[1]+n&4294967295,e.P[2]=e.P[2]+s&4294967295,e.P[3]=e.P[3]+u&4294967295,e.P[4]=e.P[4]+l&4294967295}ka(Ja,Ia),Ja.prototype.reset=function(){this.P[0]=1732584193,this.P[1]=4023233417,this.P[2]=2562383102,this.P[3]=271733878,this.P[4]=3285377520,this.ge=this.ec=0},Ja.prototype.update=function(e,t){if(null!=e){p(t)||(t=e.length);for(var n=t-this.Ya,r=0,o=this.pe,i=this.ec;rparseFloat(Lrc)&&String(Mrc));var kb=null,lb=null,mb=null;function nb(e,t){if(!ea(e))throw Error("encodeByteArray takes an array as a parameter");ob();for(var n=t?lb:kb,r=[],o=0;o>2,c=(i=(3&i)<<4|s>>4,s=(15&s)<<2|(c=u?e[o+2]:0)>>6,63&c);u||(c=64,a||(s=64)),r.push(n[l],n[i],n[s],n[c])}return r.join("")}function ob(){if(!kb){kb={},lb={},mb={};for(var e=0;e<65;e++)kb[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e),lb[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(e),62<=(mb[lb[e]]=e)&&(mb["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)]=e)}}function pb(e,t){if(this.N=qb,this.Rf=void 0,this.Ba=this.Ha=null,this.yd=this.ye=!1,e==rb)sb(this,tb,t);else try{var n=this;e.call(t,function(e){sb(n,tb,e)},function(e){if(!(e instanceof ub))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(e){}sb(n,vb,e)})}catch(e){sb(this,vb,e)}}var qb=0,tb=2,vb=3;function rb(){}function xb(e,t){if(e.N==qb)if(e.Ha){var n=e.Ha;if(n.Ba){for(var r,o=0,i=-1,a=0;(r=n.Ba[a])&&!((r=r.o)&&(o++,r==e&&(i=a),0<=i&&1>6|192:(o<65536?t[n++]=o>>12|224:(t[n++]=o>>18|240,t[n++]=o>>12&63|128),t[n++]=o>>6&63|128),t[n++]=63&o|128)}return t}function Pb(e){for(var t=0,n=0;n 4. Need to update it?")}return e+" failed: "+r+" argument "}function F(e,t,n,o){if((!o||p(n))&&!r(n))throw Error(E(e,t,o)+"must be a valid function.")}function Qb(e,t,n){if(p(n)&&(!ga(n)||null===n))throw Error(E(e,t,!0)+"must be a valid context object.")}function Rb(e){return"undefined"!=typeof JSON&&p(JSON.parse)?JSON.parse(e):za(e)}function G(e){if("undefined"!=typeof JSON&&p(JSON.stringify))e=JSON.stringify(e);else{var t=[];Ba(new Aa,e,t),e=t.join("")}return e}function Sb(){this.Zd=H}function Tb(){}pb.prototype.catch=pb.prototype.gh,Sb.prototype.j=function(e){return this.Zd.S(e)},Sb.prototype.toString=function(){return this.Zd.toString()},Tb.prototype.uf=function(){return null},Tb.prototype.Ce=function(){return null};var Ub=new Tb;function Vb(e,t,n){this.bg=e,this.Oa=t,this.Nd=n}function Zb(){this.xb=[]}function $b(e,t){for(var n=null,r=0;r"),e};var id=(Mxc=1,function(){return Mxc++}),O=Kb,jd=Lb,Mxc;function kd(e){try{var t;if("undefined"!=typeof atob)t=atob(e);else{ob();for(var n=mb,r=[],o=0;o>4),64!=s&&(r.push(a<<4&240|s>>2),64!=u&&r.push(s<<6&192|u))}if(r.length<8192)t=String.fromCharCode.apply(null,r);else{for(e="",n=0;n>o&255,++n;return nb(t)}function md(e){for(var t="",n=0;n=Math.pow(2,-1022)?(n=(r=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,Math.round(e*Math.pow(2,52-r)-Math.pow(2,52))):(n=0,Math.round(e/Math.pow(2,-1074)))),o=[],e=52;e;--e)o.push(r%2?1:0),r=Math.floor(r/2);for(e=11;e;--e)o.push(n%2?1:0),n=Math.floor(n/2);for(o.push(t?1:0),o.reverse(),t=o.join(""),n="",e=0;e<64;e+=8)1===(r=parseInt(t.substr(e,8),2).toString(16)).length&&(r="0"+r),n+=r;return n.toLowerCase()}var Bd=/^-?\d{1,10}$/;function vd(e){return Bd.test(e)&&(-2147483648<=(e=Number(e))&&e<=2147483647)?e:null}function gc(e){try{e()}catch(e){setTimeout(function(){throw S("Exception was thrown by user callback.",e.stack||""),e},Math.floor(0))}}function T(e,t){if(r(e)){var n=Array.prototype.slice.call(arguments,1).slice();gc(function(){e.apply(null,n)})}}function Cd(e){var t={},n={},r={},o="";try{var i=e.split(".");t=Rb(kd(i[0])||""),n=Rb(kd(i[1])||""),o=i[2],r=n.d||{};delete n.d}catch(e){}return{mh:t,Ec:n,data:r,bh:o}}function Dd(e){return"object"==typeof(e=Cd(e).Ec)&&e.hasOwnProperty("iat")?z(e,"iat"):null}function Ed(e){var t=(e=Cd(e)).Ec;return!!e.bh&&!!t&&"object"==typeof t&&t.hasOwnProperty("iat")}function Fd(e){this.Y=e,this.g=e.n.g}function Gd(t,e,n,r){var o=[],i=[];return Ma(e,function(e){"child_changed"===e.type&&t.g.Dd(e.Oe,e.Na)&&i.push(new J("child_moved",e.Na,e.Za))}),Hd(t,o,"child_removed",e,r,n),Hd(t,o,"child_added",e,r,n),Hd(t,o,"child_moved",i,r,n),Hd(t,o,"child_changed",e,r,n),Hd(t,o,ic,e,r,n),o}function Hd(r,o,t,e,i,a){Va(e=Na(e,function(e){return e.type===t}),u(r.qg,r)),Ma(e,function(t){var n=Id(r,t,a);Ma(i,function(e){e.Qf(t.type)&&o.push(e.createEvent(n,r.Y))})})}function Id(e,t,n){return"value"!==t.type&&"child_removed"!==t.type&&(t.Td=n.wf(t.Za,t.Na,e.g)),t}function Jd(){this.ib={}}function Kd(e,t){var n=t.type,r=t.Za;O("child_added"==n||"child_changed"==n||"child_removed"==n,"Only child changes supported for tracking"),O(".priority"!==r,"Only non-priority child changes can be tracked.");var o=z(e.ib,r);if(o){var i=o.type;if("child_added"==n&&"child_removed"==i)e.ib[r]=new J("child_changed",t.Na,r,o.Na);else if("child_removed"==n&&"child_added"==i)delete e.ib[r];else if("child_removed"==n&&"child_changed"==i)e.ib[r]=new J("child_removed",o.Oe,r);else if("child_changed"==n&&"child_added"==i)e.ib[r]=new J("child_added",t.Na,r);else{if("child_changed"!=n||"child_changed"!=i)throw jd("Illegal combination of changes: "+t+" occurred after "+o);e.ib[r]=new J("child_changed",t.Na,r,o.Oe)}}else e.ib[r]=t}function Ld(e){this.g=e}function Md(e){var t;this.Fe=new Ld(e.g),this.g=e.g,t=e.oa?(t=Nd(e),e.g.Sc(Od(e),t)):e.g.Wc(),this.gd=t,e=e.ra?(t=Pd(e),e.g.Sc(Rd(e),t)):e.g.Tc(),this.Jc=e}function Sd(e){this.ua=new Md(e),this.g=e.g,O(e.la,"Only valid if limit has been set"),this.ma=e.ma,this.Nb=!Td(e)}function Ud(e,t,n,r,o,i){var a;if(e.Nb){var s=Vd(e.g);a=function(e,t){return s(t,e)}}else a=Vd(e.g);O(t.Hb()==e.ma,"");var u=new L(n,r),l=e.Nb?Wd(t,e.g):Xd(t,e.g),c=e.ua.matches(u);if(t.Fa(n)){var f=t.T(n);for(l=o.Ce(e.g,l,e.Nb);null!=l&&(l.name==n||t.Fa(l.name));)l=o.Ce(e.g,l,e.Nb);return o=null==l?1:a(l,u),c&&!r.e()&&0<=o?(null!=i&&Kd(i,new J("child_changed",r,n,f)),t.W(n,r)):(null!=i&&Kd(i,new J("child_removed",f,n)),t=t.W(n,H),null!=l&&e.ua.matches(l)?(null!=i&&Kd(i,new J("child_added",l.U,l.name)),t.W(l.name,l.U)):t)}return r.e()?t:c&&0<=a(l,u)?(null!=i&&(Kd(i,new J("child_removed",l.U,l.name)),Kd(i,new J("child_added",r,n))),t.W(n,r).W(l.name,H)):t}function Yd(e,t){this.me=e,this.og=t}function Zd(e){this.X=e}function ie(e,t,n,r,o,i){var a,s=t.Q;if(null!=r.xc(n))return t;if(n.e())O(lc(t.w()),"If change path is empty, we must have complete server data"),r=mc(t.w())?(o=Yb(t),r.Cc(o instanceof fe?o:H)):r.Aa(Yb(t)),i=e.X.ya(t.Q.j(),r,i);else{var u=K(n);if(".priority"==u)O(1==le(n),"Can't have a priority with additional path components"),i=s.j(),a=t.w().j(),i=null!=(r=r.nd(n,i,a))?e.X.ia(i,r):s.j();else{var l=N(n);i=null!=(r=Wb(s,u)?(a=t.w().j(),null!=(r=r.nd(n,s.j(),a))?s.j().T(u).H(l,r):s.j().T(u)):r.Bc(u,t.w()))?e.X.H(s.j(),u,r,l,o,i):s.j()}}return ge(t,i,s.ga||n.e(),e.X.Ra())}function ae(e,t,n,r,o,i,a,s){var u=t.w();if(a=a?e.X:e.X.$b(),n.e())r=a.ya(u.j(),r,null);else if(a.Ra()&&!u.Yb)r=u.j().H(n,r),r=a.ya(u.j(),r,null);else{var l=K(n);if(!nc(u,n)&&1=e.u.length?null:e.u[e.aa]}function le(e){return e.u.length-e.aa}function N(e){var t=e.aa;return t=this.u.length)return null;for(var e=[],t=this.aa;t=this.u.length},h.ea=function(e){if(le(this)!==le(e))return!1;for(var t=this.aa,n=e.aa;t<=this.u.length;t++,n++)if(this.u[t]!==e.u[n])return!1;return!0},h.contains=function(e){var t=this.aa,n=e.aa;if(le(this)>le(e))return!1;for(;t10485760/3&&10485760=e}else if(-1=e;return!1}function Gg(){var e,t=window.opener.frames;for(e=t.length-1;0<=e;e--)try{if(t[e].location.protocol===window.location.protocol&&t[e].location.host===window.location.host&&"__winchan_relay_frame"===t[e].name)return t[e]}catch(e){}return null}function Hg(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener&&e.addEventListener(t,n,!1)}function Ig(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener&&e.removeEventListener(t,n,!1)}function Jg(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(e);return t?t[1]:e}function Kg(e){var t="";try{var n=Jb(e=e.replace(/.*\?/,""));n&&y(n,"__firebase_request_key")&&(t=z(n,"__firebase_request_key"))}catch(e){}return t}function Lg(){try{var e=(e=(e=document.location.hash.replace(/&__firebase_request_key=([a-zA-z0-9]*)/,"")).replace(/\?$/,"")).replace(/^#+$/,"");document.location.hash=e}catch(e){}}function Mg(){var e=sd(xg);return e.scheme+"://"+e.host+"/v2"}function Ng(e){return Mg()+"/"+e+"/auth/channel"}function Og(e){var t=this;if(this.hb=e,this.fe="*",Fg(8)?this.Uc=this.Cd=Gg():(this.Uc=window.opener,this.Cd=window),!t.Uc)throw"Unable to find relay frame";Hg(this.Cd,"message",u(this.nc,this)),Hg(this.Cd,"message",u(this.Ff,this));try{Pg(this,{a:"ready"})}catch(e){Hg(this.Uc,"load",function(){Pg(t,{a:"ready"})})}Hg(window,"unload",u(this.Ng,this))}function Pg(e,t){t=G(t),Fg(8)?e.Uc.doPost(t,e.fe):e.Uc.postMessage(t,e.fe)}function Qg(e){this.tc=Fa()+Fa()+Fa(),this.Kf=e}Bg.prototype.set=function(e,t){if(!t){if(!this.ee.length)throw Error("fb.login.SessionManager : No storage options available!");t=this.ee[0]}t.set(this.Ue,e)},Bg.prototype.get=function(){var e=Oa(this.ee,u(this.Bg,this));return Va(e=Na(e,function(e){return null!==e}),function(e,t){return Dd(t.token)-Dd(e.token)}),0document.domain="'+document.domain+'";<\/script>'),t=""+t+"";try{this.Ga.jb.open(),this.Ga.jb.write(t),this.Ga.jb.close()}catch(e){fc("frame writing exception"),e.stack&&fc(e.stack),fc(e)}}function th(e){if(e.oe&&e.$d&&e.Te.count()<(0i.Pc,"Stacking an older write on top of newer ones"),p(a)||(a=!0),i.pa.push({path:t,Ja:n,md:r,visible:a}),a&&(i.V=Jf(i.V,t,n)),i.Pc=r,o?qi(e,new Ac(Ef,t,n)):[]}function ri(e,t,n,r){var o=e.mb;return O(r>o.Pc,"Stacking an older merge on top of newer ones"),o.pa.push({path:t,children:n,md:r,visible:!0}),o.V=Kf(o.V,t,n),o.Pc=r,n=sf(n),qi(e,new bf(Ef,t,n))}function si(e,t,n){n=n||!1;var r=Qf(e.mb,t);if(e.mb.Ud(t)){var o=qe;return null!=r.Ja?o=o.set(M,!0):Fb(r.children,function(e,t){o=o.set(new P(e),t)}),qi(e,new Df(r.path,o,n))}return[]}function ti(e,t,n){return n=sf(n),qi(e,new bf(Gf,t,n))}function ui(e,t,n,r){if(null==(r=vi(e,r)))return[];var o=wi(r);return r=o.path,o=o.Lb,t=lf(r,t),xi(e,r,n=new Ac(new Ff(!1,!0,o,!0),t,n))}function yi(e,t,n,r){if(r=vi(e,r)){var o=wi(r);return r=o.path,o=o.Lb,t=lf(r,t),n=sf(n),xi(e,r,n=new bf(new Ff(!1,!0,o,!0),t,n))}return[]}function Ci(e){return vf(e,function(e,t,n){if(t&&null!=li(t))return[li(t)];var r=[];return t&&(r=mi(t)),v(n,function(e){r=r.concat(e)}),r})}function Gi(e,t){for(var n=0;n.firebaseio.com instead"),n&&"undefined"!=n||rd("Cannot parse Firebase url. Please use https://.firebaseio.com"),r.ob||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&S("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),n=new dd(r.host,r.ob,n,"ws"===r.scheme||"wss"===r.scheme),o=(r=new P(r.bd)).toString(),!(i=!q(n.host)||0===n.host.length||!eg(n.lc))&&(i=0!==o.length)&&(o&&(o=o.replace(/^\/*\.info(\/|$)/,"/")),i=!(q(o)&&0!==o.length&&!cg.test(o))),i)throw Error(E("new Firebase",1,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".');if(t)if(t instanceof aj)o=t;else{if(!q(t))throw Error("Expected a valid Firebase.Context for second argument to new Firebase()");o=aj.yb(),n.Rd=t}else o=aj.yb();i=n.toString();var a=z(o.sc,i);a||(a=new Ji(n,o.ag),o.sc[i]=a),n=a}Y.call(this,n,r,De,!1),this.then=void 0,this.catch=void 0}Z.zc=Rh,Z.DataConnection=Z.zc,Rh.prototype.dh=function(e,t){this.Ia("q",{p:e},t)},Z.zc.prototype.simpleListen=Z.zc.prototype.dh,Rh.prototype.sg=function(e,t){this.Ia("echo",{d:e},t)},Z.zc.prototype.echo=Z.zc.prototype.sg,Rh.prototype.interrupt=Rh.prototype.Cb,Z.dg=Fh,Z.RealTimeConnection=Z.dg,Fh.prototype.sendRequest=Fh.prototype.Ia,Fh.prototype.close=Fh.prototype.close,Z.Cg=function(o){var i=Rh.prototype.put;return Rh.prototype.put=function(e,t,n,r){p(r)&&(r=o()),i.call(this,e,t,n,r)},function(){Rh.prototype.put=i}},Z.hijackHash=Z.Cg,Z.cg=dd,Z.ConnectionTarget=Z.cg,Z.wa=function(e){return e.wa()},Z.queryIdentifier=Z.wa,Z.Fg=function(e){return e.k.Va.ba},Z.listens=Z.Fg,Z.ze=function(e){e.ze()},Z.forceRestClient=Z.ze,ka(X,Y);var fj=X,gj=["Firebase"],hj=n,ij;gj[0]in hj||!hj.execScript||hj.execScript("var "+gj[0]);for(;gj.length&&(ij=gj.shift());)!gj.length&&p(fj)?hj[ij]=fj:hj=hj[ij]?hj[ij]:hj[ij]={};X.goOffline=function(){D("Firebase.goOffline",0,0,arguments.length),aj.yb().Cb()},X.goOnline=function(){D("Firebase.goOnline",0,0,arguments.length),aj.yb().vc()},X.enableLogging=od,X.ServerValue={TIMESTAMP:{".sv":"timestamp"}},X.SDK_VERSION=Eb,X.INTERNAL=U,X.Context=aj,X.TEST_ACCESS=Z,X.prototype.name=function(){return S("Firebase.name() being deprecated. Please use Firebase.key() instead."),D("Firebase.name",0,0,arguments.length),this.key()},X.prototype.name=X.prototype.name,X.prototype.key=function(){return D("Firebase.key",0,0,arguments.length),this.path.e()?null:me(this.path)},X.prototype.key=X.prototype.key,X.prototype.o=function(e){if(D("Firebase.child",1,1,arguments.length),fa(e))e=String(e);else if(!(e instanceof P))if(null===K(this.path)){var t=e;t&&(t=t.replace(/^\/*\.info(\/|$)/,"/")),ng("Firebase.child",t)}else ng("Firebase.child",e);return new X(this.k,this.path.o(e))},X.prototype.child=X.prototype.o,X.prototype.parent=function(){D("Firebase.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new X(this.k,e)},X.prototype.parent=X.prototype.parent,X.prototype.root=function(){D("Firebase.ref",0,0,arguments.length);for(var e=this;null!==e.parent();)e=e.parent();return e},X.prototype.root=X.prototype.root,X.prototype.set=function(e,t){D("Firebase.set",1,2,arguments.length),og("Firebase.set",this.path),gg("Firebase.set",e,this.path,!1),F("Firebase.set",2,t,!0);var n=new B;return this.k.Ob(this.path,e,null,C(n,t)),n.D},X.prototype.set=X.prototype.set,X.prototype.update=function(e,t){if(D("Firebase.update",1,2,arguments.length),og("Firebase.update",this.path),da(e)){for(var n={},r=0;r'+a.choosePrefix()+"",click:function(t){dashboard.assets.showAssetManager(function(e){t(s.quote(e))},e,function(){i.default.getSingleton().stopAllAudio()},{showUnderageWarning:!(0,o.getStore)().getState().pageConstants.is13Plus})}}),t}},function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.injectExecuteCmd=function(e){r=e},t.dropletConfig=t.executors=t.commands=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(1408)),i=n(512);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){"function"==typeof e.callback&&e.callback.call(null)}var l={setTimeout:function(e){return(0,i.apiValidateType)(e,"setTimeout","callback",e.callback,"function"),(0,i.apiValidateType)(e,"setTimeout","milliseconds",e.milliseconds,"number"),o.setTimeout(u.bind(this,e),e.milliseconds)},clearTimeout:function(e){(0,i.apiValidateType)(e,"clearTimeout","timeoutId",e.timeoutId,"number"),o.clearTimeout(e.timeoutId)},setInterval:function(e){return(0,i.apiValidateType)(e,"setInterval","callback",e.callback,"function"),(0,i.apiValidateType)(e,"setInterval","milliseconds",e.milliseconds,"number"),o.setInterval(u.bind(this,e),e.milliseconds)},clearInterval:function(e){(0,i.apiValidateType)(e,"clearInterval","intervalId",e.intervalId,"number"),o.clearInterval(e.intervalId)},timedLoop:function(e){return(0,i.apiValidateType)(e,"timedLoop","ms",e.ms,"number"),(0,i.apiValidateType)(e,"timedLoop","callback",e.callback,"function"),o.timedLoop(e.ms,u.bind(this,e))},stopTimedLoop:function(e){(0,i.apiValidateType)(e,"stopTimedLoop","key",e.key,"number",i.OPTIONAL),o.stopTimedLoop(e.key)}};t.commands=l;var c={setTimeout:function(e,t){return r(null,"setTimeout",{callback:e,milliseconds:t})},clearTimeout:function(e){return r(null,"clearTimeout",{timeoutId:e})},setInterval:function(e,t){return r(null,"setInterval",{callback:e,milliseconds:t})},clearInterval:function(e){return r(null,"clearInterval",{intervalId:e})},timedLoop:function(e,t){return r(null,"timedLoop",{ms:e,callback:t})},stopTimedLoop:function(e){return r(null,"stopTimedLoop",{key:e})}},f={setTimeout:{func:"setTimeout",parent:t.executors=c,category:"Control",type:"either",paletteParams:["callback","ms"],params:["function() {\n \n}","1000"],allowFunctionDrop:{0:!0}},clearTimeout:{func:"clearTimeout",parent:c,category:"Control",paletteParams:["__"],params:["__"]},setInterval:{func:"setInterval",parent:c,category:"Control",type:"either",paletteParams:["callback","ms"],params:["function() {\n \n}","1000"],allowFunctionDrop:{0:!0}},clearInterval:{func:"clearInterval",parent:c,category:"Control",paletteParams:["__"],params:["__"]},timedLoop:{func:"timedLoop",parent:c,category:"Control",paletteParams:["ms","callback"],params:["1000","function() {\n \n}"],allowFunctionDrop:{1:!0}},stopTimedLoop:{func:"stopTimedLoop",parent:c,category:"Control",paramButtons:{minArgs:0,maxArgs:1}}};t.dropletConfig=f},function(e,t,n){"use strict";var r,o=(r=n(9))&&r.__esModule?r:{default:r};o.default.ajaxTransport("+binary",function(f,e,t){if(window.FormData&&(f.dataType&&"binary"===f.dataType||f.data&&(window.ArrayBuffer&&f.data instanceof window.ArrayBuffer||window.Blob&&f.data instanceof Blob)))return{send:function(e,t){var n=new XMLHttpRequest,r=f.url,o=f.type,i=f.async||!0,a=f.responseType||"blob",s=f.data||null,u=f.username||null,l=f.password||null;for(var c in n.addEventListener("load",function(){var e={};e[f.dataType]=n.response,t(n.status,n.statusText,e,n.getAllResponseHeaders())}),n.open(o,r,i,u,l),e)n.setRequestHeader(c,e[c]);n.responseType=a,n.send(s)},abort:function(){}}}),e.exports=function(e,t){return o.default.ajax(e,{dataType:t})}},,,,,,,function(e,t,n){var r=function(){try{return n(807)}catch(e){}}();(t=e.exports=n(1446)).Stream=r||t,(t.Readable=t).Writable=n(1054),t.Duplex=n(428),t.Transform=n(1055),t.PassThrough=n(1447)},function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createPackageFilesFromZip=function(e,t){var n=[];e.folder(t+"/assets").forEach(function(e,t){t.dir||n.push({fileName:e})});var r=n.map(function(e){return(0,p.default)({module:e})});return(0,c.default)({entries:r})},t.createPackageFilesFromExpoFiles=function(e){var t=[],n="assets/".length;for(var r in e)if(0===r.indexOf("assets/")){var o=r.substring(n);t.push({fileName:o})}var i=t.map(function(e){return(0,p.default)({module:e})});return(0,c.default)({entries:i})},t.createSnackSession=function(e,t){return new r.SnackSession({sessionId:"".concat(S(),"-").concat(f.default.getCurrentId()),files:e,name:"project-".concat(f.default.getCurrentId()),sdkVersion:h.EXPO_SDK_VERSION,dependencies:{"react-native-webview":{version:b}},user:{sessionSecret:t||u.EXPO_SESSION_SECRET}})},t.expoGenerateApk=function(t,n,r){var o,i,a;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o=r.md5SavedSources,i=r.expoSnackId,e.next=3,regeneratorRuntime.awrap(w(r,"generate",t));case 3:return a=e.sent,n({md5ApkSavedSources:o,snackId:i,apkBuildId:a}),e.abrupt("return",a);case 6:case"end":return e.stop()}})},t.expoCheckApkBuild=function(t,n,r){var o,i,a,s;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o=r.md5SavedSources,i=r.expoSnackId,e.prev=1,e.next=4,regeneratorRuntime.awrap(w(r,"check",t));case 4:return(a=e.sent)&&(s=r.apkBuildId,n({md5ApkSavedSources:o,snackId:i,apkBuildId:s,apkUri:a})),e.abrupt("return",a);case 9:throw e.prev=9,e.t0=e.catch(1),n({}),e.t0;case 13:case"end":return e.stop()}},null,null,[[1,9]])},t.expoCancelApkBuild=function(t,n,r){var o;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return n({}),o=r.apkBuildId,e.abrupt("return",(0,s.cancelBuild)({sessionSecret:t||u.EXPO_SESSION_SECRET},o));case 3:case"end":return e.stop()}})},t.extractSoundAssets=function(e){var t=e.sources,r=e.rootRelativeAssetPrefix,o=e.zipAssetPrefix,n=[];return t.forEach(function(e){return n.push.apply(n,y(e.match(x)||[]))}),y(new Set(n)).map(function(e){var t=l.fixPath(e),n=e.replace(l.SOUND_PREFIX,"");return{url:t,rootRelativePath:r+n,zipPath:o+n,dataType:"binary",filename:n,searchUrl:e}})},t.rewriteAssetUrls=function(e,t){return e.reduce(function(e,t){var n=t.searchUrl||t.filename;return(e=e.replace(new RegExp("[\"|']".concat(t.url,"[\"|']"),"g"),'"'.concat(t.rootRelativePath,'"'))).replace(new RegExp("[\"|']".concat(n,"[\"|']"),"g"),'"'.concat(t.rootRelativePath,'"'))},t)},t.getEnvironmentPrefix=S,t.fetchWebpackRuntime=function(e){var r=new o.default.Deferred;return(0,i.default)("/blockly/js/webpack-runtime.min.js"+e,"text").then(function(e,t,n){return r.resolve([e,t,n])},(0,i.default)("/blockly/js/webpack-runtime.js"+e,"text").then(function(e,t,n){return r.resolve([e,t,n])},function(){return r.reject(new Error("failed to fetch webpack-runtime.js"))})),r};var o=g(n(9)),r=n(2097),s=n(2270),f=g(n(90)),i=g(n(1453)),u=n(30),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(289)),d=g(n(1467)),c=g(n(2313)),p=g(n(2314)),h=n(348);function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function y(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t> ":" ")+n+"| "+e}).join("\n");throw e.path=u,e.message=(u||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e},escapeFn=escapeFn||function(e){return null==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&","<":"<",">":">",'"':""","'":"'"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __line=1,__lines='{\n "expo": {\n "name": "<%- appName %>",\n "description": "<%- appName %> from Code.org Code Studio.",\n "slug": "project-<%- projectId.toLowerCase().replace(/[^\\w-]+/g, \'-\') %>",\n "privacy": "public",\n "sdkVersion": "<%- sdkVersion %>",\n "platforms": ["ios", "android"],\n "version": "1.0.0",\n "orientation": "portrait",\n "icon": "<%- iconPath %>",\n "splash": {\n "image": "<%- splashImagePath %>",\n "resizeMode": "contain",\n "backgroundColor": "#ffffff"\n },\n "updates": {\n "enabled": false,\n "fallbackToCacheTimeout": 0\n },\n "assetBundlePatterns": [\n "**/*"\n ],\n "packagerOpts": {\n "assetExts": [\n "html",\n "css",\n "j",\n "jpg",\n "jpeg",\n "png",\n "gif",\n "mp3",\n "woff2",\n "ttf",\n "txt"\n ]\n },\n "ios": {\n "bundleIdentifier": "org.code.studio.app.<%- projectId.toLowerCase().replace(/([^a-zA-Z0-9\\-]+)/g, \'-\') %>",\n "buildNumber": "1"\n },\n "android": {\n "package": "org.code.studio.app_<%- projectId.toLowerCase().replace(/([^a-zA-Z0-9\\_]+)/g, \'_\') %>",\n "permissions": [],\n "versionCode": 1\n }\n }\n}\n',__filename="src/templates/export/expo/app.json.ejs";try{var __output=[],__append=__output.push.bind(__output);with(locals||{})__append('{\n "expo": {\n "name": "'),__line=3,__append(appName),__append('",\n "description": "'),__line=4,__append(appName),__append(' from Code.org Code Studio.",\n "slug": "project-'),__line=5,__append(projectId.toLowerCase().replace(/[^\w-]+/g,"-")),__append('",\n "privacy": "public",\n "sdkVersion": "'),__line=7,__append(sdkVersion),__append('",\n "platforms": ["ios", "android"],\n "version": "1.0.0",\n "orientation": "portrait",\n "icon": "'),__line=11,__append(iconPath),__append('",\n "splash": {\n "image": "'),__line=13,__append(splashImagePath),__append('",\n "resizeMode": "contain",\n "backgroundColor": "#ffffff"\n },\n "updates": {\n "enabled": false,\n "fallbackToCacheTimeout": 0\n },\n "assetBundlePatterns": [\n "**/*"\n ],\n "packagerOpts": {\n "assetExts": [\n "html",\n "css",\n "j",\n "jpg",\n "jpeg",\n "png",\n "gif",\n "mp3",\n "woff2",\n "ttf",\n "txt"\n ]\n },\n "ios": {\n "bundleIdentifier": "org.code.studio.app.'),__line=40,__append(projectId.toLowerCase().replace(/([^a-zA-Z0-9\-]+)/g,"-")),__append('",\n "buildNumber": "1"\n },\n "android": {\n "package": "org.code.studio.app_'),__line=44,__append(projectId.toLowerCase().replace(/([^a-zA-Z0-9\_]+)/g,"_")),__append('",\n "permissions": [],\n "versionCode": 1\n }\n }\n}\n'),__line=50;return __output.join("")}catch(e){rethrow(e,__lines,__filename,__line,escapeFn)}}},,,function(e,t,n){var r=n(623),o=n(380).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(979),o=n(825),i=n(625),a=n(1218),s=n(530),u=n(1472),l=Object.getOwnPropertyDescriptor;t.f=n(529)?l:function(e,t){if(e=i(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){e.exports=!n(529)&&!n(824)(function(){return 7!=Object.defineProperty(n(1470)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var a=n(530),s=n(625),u=n(1981)(!1),l=n(1221)("IE_PROTO");e.exports=function(e,t){var n,r=s(e),o=0,i=[];for(n in r)n!=l&&a(r,n)&&i.push(n);for(;t.length>o;)a(r,n=t[o++])&&(~u(i,n)||i.push(n));return i}},function(e,t,n){var r=n(1215);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(1220),o=Math.min;e.exports=function(e){return 0o.left&&no.top&&r>2,i=(3&t)<<4|n>>4,a=1>6:64,s=2>4,n=(15&o)<<4|(i=h.indexOf(e.charAt(u++)))>>2,r=(3&i)<<6|(a=h.indexOf(e.charAt(u++))),s[l++]=t,64!==i&&(s[l++]=n),64!==a&&(s[l++]=r);return s}},function(a,e,s){"use strict";(function(u){var l=s(98),o=s(2077),i=s(267),c=s(1502),t=s(1501),n=s(869);function r(e,s){return new n.Promise(function(t,n){var r=[],o=e._internalType,i=e._outputType,a=e._mimeType;e.on("data",function(e,t){r.push(e),s&&s(t)}).on("error",function(e){r=[],n(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return l.newBlob(l.transformTo("arraybuffer",t),n);case"base64":return c.encode(t);default:return l.transformTo(e,t)}}(i,function(e,t){var n,r=0,o=null,i=0;for(n=0;n=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=i},function(e,t,n){"use strict";var r=n(98),o=n(267);function i(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(i,o),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}o.prototype.processChunk.call(this,e)},e.exports=i},function(e,t,n){"use strict";var r=n(267),o=n(1348);function i(){r.call(this,"Crc32Probe")}n(98).inherits(i,r),i.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},e.exports=i},function(e,t,n){"use strict";var r=n(267);t.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},t.DEFLATE=n(2080)},function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,r){var o=s,i=r+n;e^=-1;for(var a=r;a>>8^o[255&(e^t[a])];return-1^e}},function(e,t,n){"use strict";var u=n(452),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var l=new u.Buf8(256),r=0;r<256;r++)l[r]=252<=r?6:248<=r?5:240<=r?4:224<=r?3:192<=r?2:1;function c(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,u.shrinkBuf(e,t));for(var n="",r=0;r>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t},t.buf2binstring=function(e){return c(e,e.length)},t.binstring2buf=function(e){for(var t=new u.Buf8(e.length),n=0,r=t.length;n>10&1023,s[r++]=56320|1023&o)}return c(s,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+l[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,n){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},function(e,t,n){"use strict";var r=n(98),o=n(548),i=n(1516),a=n(2094),s=n(2095),u=n(1518);e.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||o.uint8array?"nodebuffer"===t?new s(e):o.uint8array?new u(r.transformTo("uint8array",e)):new i(r.transformTo("array",e)):new a(e)}},function(e,t,n){"use strict";var r=n(1517);function o(e){r.call(this,e);for(var t=0;t=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},e.exports=o},function(e,t,n){"use strict";var r=n(1516);function o(e){r.call(this,e)}n(98).inherits(o,r),o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=o},function(e,t,n){e.exports=!n(455)&&!n(756)(function(){return 7!=Object.defineProperty(n(1350)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var a=n(551),s=n(757),u=n(2103)(!1),l=n(1355)("IE_PROTO");e.exports=function(e,t){var n,r=s(e),o=0,i=[];for(n in r)n!=l&&a(r,n)&&i.push(n);for(;t.length>o;)a(r,n=t[o++])&&(~u(i,n)||i.push(n));return i}},function(e,t,n){var r=n(871);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(1354),o=Math.min;e.exports=function(e){return 0document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][a[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(u[l]=o(e),n=new u,u[l]=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(196).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(1545),o=n(211)("iterator"),i=n(877);e.exports=n(173).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var o=n(871),i=n(211)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(1520),o=n(1357).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t){},function(e,t,n){var o=n(352),i=n(994),a=n(211)("species");e.exports=function(e,t){var n,r=o(e).constructor;return void 0===r||null==(n=o(r)[a])?t:i(n)}},function(e,t,n){var r,o,i,a=n(993),s=n(2200),u=n(1543),l=n(1350),c=n(196),f=c.process,d=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,m=c.Dispatch,g=0,y={},v="onreadystatechange",b=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},w=function(e){b.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},p=function(e){delete y[e]},"process"==n(871)(f)?r=function(e){f.nextTick(a(b,e,1))}:m&&m.now?r=function(e){m.now(a(b,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=w,r=a(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",w,!1)):r=v in l("script")?function(e){u.appendChild(l("script"))[v]=function(){u.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:d,clear:p}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(352),o=n(550),i=n(1381);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var i=n(2216);e.exports=function(e,t){for(var n,r=0,o="";!n;)o+=e(t>>4*r&15|i()),n=tn;)t.push(arguments[n++]);return y[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},p=function(e){delete y[e]},"process"==n(1013)(f)?r=function(e){f.nextTick(a(b,e,1))}:m&&m.now?r=function(e){m.now(a(b,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=w,r=a(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",w,!1)):r=v in l("script")?function(e){u.appendChild(l("script"))[v]=function(){u.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:d,clear:p}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(553),o=n(879),i=n(1392);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(o){function i(e,t){var n=this,r=i.extractMessage(e)+": "+JSON.stringify({response:e,request:t});return(n=o.call(this,r)||this).response=e,n.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(n,i),n}return a(i,o),i.extractMessage=function(t){try{return t.errors[0].message}catch(e){return"GraphQL Error (Code: "+t.status+")"}},i}(Error);t.ClientError=o},,function(e,t,n){"use strict";function r(t){for(var e=1;e>>2]|=(n[o>>>2]>>>24-o%4*8&255)<<24-(r+o)%4*8;else if(65535>>2]=n[o>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=s.ceil(t/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-r%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},l=i.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},c=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,o=this.blockSize,i=r/(4*o),i=e?s.ceil(i):s.max((0|i)-this._minBufferSize,0);if(e=i*o,r=s.min(4*e,r),e){for(var a=0;a>>7)^(d<<14|d>>>18)^d>>>3)+m[f-7]+((p<<15|p>>>17)^(p<<13|p>>>19)^p>>>10)+m[f-16]}d=c+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&l)+h[f]+m[f],p=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&o^r&i^o&i),c=l,l=u,u=s,s=a+d|0,a=i,i=o,o=r,r=d+p|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+l|0,n[7]=n[7]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(64+r>>>9<<4)]=o.floor(n/4294967296),t[15+(64+r>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA256=r._createHelper(t),e.HmacSHA256=r._createHmacHelper(t)}(Math),function(){var e=k,l=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=l.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,s=i.words,u=0;u>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a>>6*(3-a)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,n=this._map,r=n.charAt(64);r&&-1!=(r=e.indexOf(r))&&(t=r);for(var r=[],o=0,i=0;i>>6-i%4*2;r[o>>>2]|=(a|s)<<24-o%4*8,o++}return u.create(r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(i){function x(e,t,n,r,o,i,a){return((e=e+(t&n|~t&r)+o+a)<>>32-i)+t}function S(e,t,n,r,o,i,a){return((e=e+(t&r|n&~r)+o+a)<>>32-i)+t}function C(e,t,n,r,o,i,a){return((e=e+(t^n^r)+o+a)<>>32-i)+t}function O(e,t,n,r,o,i,a){return((e=e+(n^(t|~r))+o+a)<>>32-i)+t}for(var e=k,t=e.lib,n=t.WordArray,r=t.Hasher,t=e.algo,T=[],o=0;o<64;o++)T[o]=4294967296*i.abs(i.sin(o+1))|0;t=t.MD5=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var n=this._hash.words,r=e[t+0],o=e[t+1],i=e[t+2],a=e[t+3],s=e[t+4],u=e[t+5],l=e[t+6],c=e[t+7],f=e[t+8],d=e[t+9],p=e[t+10],h=e[t+11],m=e[t+12],g=e[t+13],y=e[t+14],v=e[t+15],b=n[0],w=n[1],_=n[2],E=n[3],b=x(b,w,_,E,r,7,T[0]),E=x(E,b,w,_,o,12,T[1]),_=x(_,E,b,w,i,17,T[2]),w=x(w,_,E,b,a,22,T[3]),b=x(b,w,_,E,s,7,T[4]),E=x(E,b,w,_,u,12,T[5]),_=x(_,E,b,w,l,17,T[6]),w=x(w,_,E,b,c,22,T[7]),b=x(b,w,_,E,f,7,T[8]),E=x(E,b,w,_,d,12,T[9]),_=x(_,E,b,w,p,17,T[10]),w=x(w,_,E,b,h,22,T[11]),b=x(b,w,_,E,m,7,T[12]),E=x(E,b,w,_,g,12,T[13]),_=x(_,E,b,w,y,17,T[14]),w=x(w,_,E,b,v,22,T[15]),b=S(b,w,_,E,o,5,T[16]),E=S(E,b,w,_,l,9,T[17]),_=S(_,E,b,w,h,14,T[18]),w=S(w,_,E,b,r,20,T[19]),b=S(b,w,_,E,u,5,T[20]),E=S(E,b,w,_,p,9,T[21]),_=S(_,E,b,w,v,14,T[22]),w=S(w,_,E,b,s,20,T[23]),b=S(b,w,_,E,d,5,T[24]),E=S(E,b,w,_,y,9,T[25]),_=S(_,E,b,w,a,14,T[26]),w=S(w,_,E,b,f,20,T[27]),b=S(b,w,_,E,g,5,T[28]),E=S(E,b,w,_,i,9,T[29]),_=S(_,E,b,w,c,14,T[30]),w=S(w,_,E,b,m,20,T[31]),b=C(b,w,_,E,u,4,T[32]),E=C(E,b,w,_,f,11,T[33]),_=C(_,E,b,w,h,16,T[34]),w=C(w,_,E,b,y,23,T[35]),b=C(b,w,_,E,o,4,T[36]),E=C(E,b,w,_,s,11,T[37]),_=C(_,E,b,w,c,16,T[38]),w=C(w,_,E,b,p,23,T[39]),b=C(b,w,_,E,g,4,T[40]),E=C(E,b,w,_,r,11,T[41]),_=C(_,E,b,w,a,16,T[42]),w=C(w,_,E,b,l,23,T[43]),b=C(b,w,_,E,d,4,T[44]),E=C(E,b,w,_,m,11,T[45]),_=C(_,E,b,w,v,16,T[46]),w=C(w,_,E,b,i,23,T[47]),b=O(b,w,_,E,r,6,T[48]),E=O(E,b,w,_,c,10,T[49]),_=O(_,E,b,w,y,15,T[50]),w=O(w,_,E,b,u,21,T[51]),b=O(b,w,_,E,m,6,T[52]),E=O(E,b,w,_,a,10,T[53]),_=O(_,E,b,w,p,15,T[54]),w=O(w,_,E,b,o,21,T[55]),b=O(b,w,_,E,f,6,T[56]),E=O(E,b,w,_,v,10,T[57]),_=O(_,E,b,w,l,15,T[58]),w=O(w,_,E,b,g,21,T[59]),b=O(b,w,_,E,s,6,T[60]),E=O(E,b,w,_,h,10,T[61]),_=O(_,E,b,w,i,15,T[62]),w=O(w,_,E,b,d,21,T[63]);n[0]=n[0]+b|0,n[1]=n[1]+w|0,n[2]=n[2]+_|0,n[3]=n[3]+E|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;var o=i.floor(n/4294967296);for(t[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process(),e=this._hash,t=e.words,n=0;n<4;n++)r=t[n],t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.MD5=r._createHelper(t),e.HmacMD5=r._createHmacHelper(t)}(Math),function(){var e=k,t=e.lib,n=t.Base,l=t.WordArray,t=e.algo,r=t.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),o=l.create(),i=o.words,a=n.keySize,n=n.iterations;i.length>>2]}},n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:l,padding:f}),reset:function(){u.reset.call(this);var e=this.cfg,t=e.iv,e=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=e.createEncryptor;else n=e.createDecryptor,this._minBufferSize=1;this._mode=n.call(e,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var d=n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),l=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?a.create([1398893684,1701076831]).concat(e).concat(t):t).toString(i)},parse:function(e){var t=(e=i.parse(e)).words;if(1398893684==t[0]&&1701076831==t[1]){var n=a.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return d.create({ciphertext:e,salt:n})}},p=n.SerializableCipher=r.extend({cfg:r.extend({format:l}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r);return t=o.finalize(t),o=o.cfg,d.create({ciphertext:t,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),t=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){return r||(r=a.random(8)),e=s.create({keySize:t+n}).compute(e,r),n=a.create(e.words.slice(t),4*n),e.sigBytes=4*t,d.create({key:e,iv:n,salt:r})}},h=n.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:t}),encrypt:function(e,t,n,r){return r=this.cfg.extend(r),n=r.kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,(e=p.encrypt.call(this,e,t,n.key,r)).mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,p.decrypt.call(this,e,t,n.key,r)}})}(),function(){for(var e=k,t=e.lib.BlockCipher,n=e.algo,a=[],r=[],o=[],i=[],s=[],u=[],l=[],c=[],f=[],d=[],p=[],h=0;h<256;h++)p[h]=h<128?h<<1:h<<1^283;for(var m=0,g=0,h=0;h<256;h++){var y=g^g<<1^g<<2^g<<3^g<<4,y=y>>>8^255&y^99;a[m]=y,r[y]=m;var v=p[m],b=p[v],w=p[b],_=257*p[y]^16843008*y;o[m]=_<<24|_>>>8,i[m]=_<<16|_>>>16,s[m]=_<<8|_>>>24,u[m]=_,_=16843009*w^65537*b^257*v^16843008*m,l[y]=_<<24|_>>>8,c[y]=_<<16|_>>>16,f[y]=_<<8|_>>>24,d[y]=_,m?(m=v^p[p[p[w^v]]],g^=p[p[g]]):m=g=1}var E=[0,1,2,4,8,16,32,64,128,27,54],n=n.AES=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes/4,e=4*((this._nRounds=n+6)+1),r=this._keySchedule=[],o=0;o>>24]<<24|a[i>>>16&255]<<16|a[i>>>8&255]<<8|a[255&i]):(i=a[(i=i<<8|i>>>24)>>>24]<<24|a[i>>>16&255]<<16|a[i>>>8&255]<<8|a[255&i],i^=E[o/n|0]<<24),r[o]=r[o-n]^i}for(t=this._invKeySchedule=[],n=0;n>>24]]^c[a[i>>>16&255]]^f[a[i>>>8&255]]^d[a[255&i]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,i,s,u,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,c,f,d,r),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,s){for(var u=this._nRounds,l=e[t]^n[0],c=e[t+1]^n[1],f=e[t+2]^n[2],d=e[t+3]^n[3],p=4,h=1;h>>24]^o[c>>>16&255]^i[f>>>8&255]^a[255&d]^n[p++],g=r[c>>>24]^o[f>>>16&255]^i[d>>>8&255]^a[255&l]^n[p++],y=r[f>>>24]^o[d>>>16&255]^i[l>>>8&255]^a[255&c]^n[p++],d=r[d>>>24]^o[l>>>16&255]^i[c>>>8&255]^a[255&f]^n[p++],l=m,c=g,f=y;m=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[p++],g=(s[c>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^n[p++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^n[p++],d=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&f])^n[p++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=d},keySize:8});e.AES=t._createHelper(n)}(),k.mode.ECB=function(){var e=k.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e}(),e.exports=k},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function r(e,t){for(var n=0;n=i){var u={};u.category=m.default.PNRequestMessageCountExceededCategory,u.operation=t.operation,this._listenerManager.announceStatus(u)}r.forEach(function(e){var t=e.channel,n=e.subscriptionMatch,r=e.publishMetaData;if(t===n&&(n=null),s){if(a._dedupingManager.isDuplicate(e))return;a._dedupingManager.addEntry(e)}if(p.default.endsWith(e.channel,"-pnpres")){var o={channel:null,subscription:null};o.actualChannel=null!=n?t:null,o.subscribedChannel=null!=n?n:t,t&&(o.channel=t.substring(0,t.lastIndexOf("-pnpres"))),n&&(o.subscription=n.substring(0,n.lastIndexOf("-pnpres"))),o.action=e.payload.action,o.state=e.payload.data,o.timetoken=r.publishTimetoken,o.occupancy=e.payload.occupancy,o.uuid=e.payload.uuid,o.timestamp=e.payload.timestamp,e.payload.join&&(o.join=e.payload.join),e.payload.leave&&(o.leave=e.payload.leave),e.payload.timeout&&(o.timeout=e.payload.timeout),a._listenerManager.announcePresence(o)}else{var i={channel:null,subscription:null};i.actualChannel=null!=n?t:null,i.subscribedChannel=null!=n?n:t,i.channel=t,i.subscription=n,i.timetoken=r.publishTimetoken,i.publisher=e.issuingClientId,e.userMetadata&&(i.userMetadata=e.userMetadata),a._config.cipherKey?i.message=a._crypto.decrypt(e.payload):i.message=e.payload,a._listenerManager.announceMessage(i)}}),this._region=e.metadata.region,this._startSubscribeLoop()}}},{key:"_stopSubscribeLoop",value:function(){this._subscribeCall&&("function"==typeof this._subscribeCall.abort&&this._subscribeCall.abort(),this._subscribeCall=null)}}]),l}();t.default=g,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n=this._config.maximumCacheSize&&this.hashHistory.shift(),this.hashHistory.push(this.getKey(e))}},{key:"clearHistory",value:function(){this.hashHistory=[]}}]),n}();t.default=a,e.exports=t.default},function(e,t){"use strict";function n(e){return encodeURIComponent(e).replace(/[!~*'()]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function r(e){return function(e){var t=[];return Object.keys(e).forEach(function(e){return t.push(e)}),t}(e).sort()}e.exports={signPamFromParams:function(t){return r(t).map(function(e){return e+"="+n(t[e])}).join("&")},endsWith:function(e,t){return-1!==e.indexOf(t,this.length-t.length)},createPromise:function(){var n=void 0,r=void 0;return{promise:new Promise(function(e,t){n=e,r=t}),reject:r,fulfill:n}},encodeString:n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function h(e){return function(e,t){return e.type=t,e.error=!0,e}({message:e},"validationError")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,o){var e=r.networking,t=r.config,i=null,a=null,s={};i=o.getOperation()===y.default.PNTimeOperation||o.getOperation()===y.default.PNChannelGroupsOperation?arguments.length<=2?void 0:arguments[2]:(s=arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3]),"undefined"==typeof Promise||i||(a=g.default.createPromise());var n=o.validateParams(r,s);if(n)return i?i(h(n)):a?(a.reject(new v("Validation failed, check status for details",h(n))),a.promise):void 0;var u=o.prepareParams(r,s),l=function(e,t,n){return e.usePost&&e.usePost(t,n)?e.postURL(t,n):e.getURL(t,n)}(o,r,s),c=void 0,f={url:l,operation:o.getOperation(),timeout:o.getRequestTimeout(r)};u.uuid=t.UUID,u.pnsdk=function(e){if(e.sdkName)return e.sdkName;var t="PubNub-JS-"+e.sdkFamily;return e.partnerId&&(t+="-"+e.partnerId),t+="/"+e.getVersion()}(t),t.useInstanceId&&(u.instanceid=t.instanceId),t.useRequestId&&(u.requestid=m.default.createUUID()),o.isAuthSupported()&&t.getAuthKey()&&(u.auth=t.getAuthKey()),t.secretKey&&function(e,t,n){var r=e.config,o=e.crypto;n.timestamp=Math.floor((new Date).getTime()/1e3);var i=r.subscribeKey+"\n"+r.publishKey+"\n"+t+"\n";i+=g.default.signPamFromParams(n);var a=o.HMACSHA256(i);a=(a=a.replace(/\+/g,"-")).replace(/\//g,"_"),n.signature=a}(r,l,u);var d=function(e,t){if(e.error)i?i(e):a&&a.reject(new v("PubNub call failed, check status for details",e));else{var n=o.handleResponse(r,t,s);i?i(e,n):a&&a.fulfill(n)}};if(o.usePost&&o.usePost(r,s)){var p=o.postPayload(r,s);c=e.POST(u,p,f,d)}else c=o.useDelete&&o.useDelete()?e.DELETE(u,f,d):e.GET(u,f,d);return o.getOperation()===y.default.PNSubscribeOperation?c:a?a.promise:void 0};var o=n(3),m=r(o),i=(n(5),n(15)),g=r(i),a=n(2),s=(r(a),n(13)),y=r(s),v=function(e){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return n.name=n.constructor.name,n.status=t,n.message=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),r}(Error);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getOperation=function(){return i.default.PNAddChannelsToGroupOperation},t.validateParams=function(e,t){var n=t.channels,r=t.channelGroup,o=e.config;return r?n&&0!==n.length?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},t.getURL=function(e,t){var n=t.channelGroup;return"/v1/channel-registration/sub-key/"+e.config.subscribeKey+"/channel-group/"+s.default.encodeString(n)},t.getRequestTimeout=function(e){return e.config.getTransactionTimeout()},t.isAuthSupported=function(){return!0},t.prepareParams=function(e,t){var n=t.channels;return{add:(void 0===n?[]:n).join(",")}},t.handleResponse=function(){return{}};var o=(n(5),n(13)),i=r(o),a=n(15),s=r(a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getOperation=function(){return i.default.PNRemoveChannelsFromGroupOperation},t.validateParams=function(e,t){var n=t.channels,r=t.channelGroup,o=e.config;return r?n&&0!==n.length?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},t.getURL=function(e,t){var n=t.channelGroup;return"/v1/channel-registration/sub-key/"+e.config.subscribeKey+"/channel-group/"+s.default.encodeString(n)},t.getRequestTimeout=function(e){return e.config.getTransactionTimeout()},t.isAuthSupported=function(){return!0},t.prepareParams=function(e,t){var n=t.channels;return{remove:(void 0===n?[]:n).join(",")}},t.handleResponse=function(){return{}};var o=(n(5),n(13)),i=r(o),a=n(15),s=r(a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getOperation=function(){return i.default.PNRemoveGroupOperation},t.validateParams=function(e,t){var n=t.channelGroup,r=e.config;return n?r.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},t.getURL=function(e,t){var n=t.channelGroup;return"/v1/channel-registration/sub-key/"+e.config.subscribeKey+"/channel-group/"+s.default.encodeString(n)+"/remove"},t.isAuthSupported=function(){return!0},t.getRequestTimeout=function(e){return e.config.getTransactionTimeout()},t.prepareParams=function(){return{}},t.handleResponse=function(){return{}};var o=(n(5),n(13)),i=r(o),a=n(15),s=r(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperation=function(){return o.default.PNChannelGroupsOperation},t.validateParams=function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},t.getURL=function(e){return"/v1/channel-registration/sub-key/"+e.config.subscribeKey+"/channel-group"},t.getRequestTimeout=function(e){return e.config.getTransactionTimeout()},t.isAuthSupported=function(){return!0},t.prepareParams=function(){return{}},t.handleResponse=function(e,t){return{groups:t.payload.groups}};var r=(n(5),n(13)),o=function(e){return e&&e.__esModule?e:{default:e}}(r)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getOperation=function(){return i.default.PNChannelsForGroupOperation},t.validateParams=function(e,t){var n=t.channelGroup,r=e.config;return n?r.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},t.getURL=function(e,t){var n=t.channelGroup;return"/v1/channel-registration/sub-key/"+e.config.subscribeKey+"/channel-group/"+s.default.encodeString(n)},t.getRequestTimeout=function(e){return e.config.getTransactionTimeout()},t.isAuthSupported=function(){return!0},t.prepareParams=function(){return{}},t.handleResponse=function(e,t){return{channels:t.payload.channels}};var o=(n(5),n(13)),i=r(o),a=n(15),s=r(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperation=function(){return o.default.PNPushNotificationEnabledChannelsOperation},t.validateParams=function(e,t){var n=t.device,r=t.pushGateway,o=t.channels,i=e.config;return n?r?o&&0!==o.length?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing GW Type (pushGateway: gcm or apns)":"Missing Device ID (device)"},t.getURL=function(e,t){var n=t.device;return"/v1/push/sub-key/"+e.config.subscribeKey+"/devices/"+n},t.getRequestTimeout=function(e){return e.config.getTransactionTimeout()},t.isAuthSupported=function(){return!0},t.prepareParams=function(e,t){var n=t.pushGateway,r=t.channels;return{type:n,add:(void 0===r?[]:r).join(",")}},t.handleResponse=function(){return{}};var r=(n(5),n(13)),o=function(e){return e&&e.__esModule?e:{default:e}}(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperation=function(){return o.default.PNPushNotificationEnabledChannelsOperation},t.validateParams=function(e,t){var n=t.device,r=t.pushGateway,o=t.channels,i=e.config;return n?r?o&&0!==o.length?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing GW Type (pushGateway: gcm or apns)":"Missing Device ID (device)"},t.getURL=function(e,t){var n=t.device;return"/v1/push/sub-key/"+e.config.subscribeKey+"/devices/"+n},t.getRequestTimeout=function(e){return e.config.getTransactionTimeout()},t.isAuthSupported=function(){return!0},t.prepareParams=function(e,t){var n=t.pushGateway,r=t.channels;return{type:n,remove:(void 0===r?[]:r).join(",")}},t.handleResponse=function(){return{}};var r=(n(5),n(13)),o=function(e){return e&&e.__esModule?e:{default:e}}(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperation=function(){return o.default.PNPushNotificationEnabledChannelsOperation},t.validateParams=function(e,t){var n=t.device,r=t.pushGateway,o=e.config;return n?r?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing GW Type (pushGateway: gcm or apns)":"Missing Device ID (device)"},t.getURL=function(e,t){var n=t.device;return"/v1/push/sub-key/"+e.config.subscribeKey+"/devices/"+n},t.getRequestTimeout=function(e){return e.config.getTransactionTimeout()},t.isAuthSupported=function(){return!0},t.prepareParams=function(e,t){return{type:t.pushGateway}},t.handleResponse=function(e,t){return{channels:t}};var r=(n(5),n(13)),o=function(e){return e&&e.__esModule?e:{default:e}}(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperation=function(){return o.default.PNRemoveAllPushNotificationsOperation},t.validateParams=function(e,t){var n=t.device,r=t.pushGateway,o=e.config;return n?r?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing GW Type (pushGateway: gcm or apns)":"Missing Device ID (device)"},t.getURL=function(e,t){var n=t.device;return"/v1/push/sub-key/"+e.config.subscribeKey+"/devices/"+n+"/remove"},t.getRequestTimeout=function(e){return e.config.getTransactionTimeout()},t.isAuthSupported=function(){return!0},t.prepareParams=function(e,t){return{type:t.pushGateway}},t.handleResponse=function(){return{}};var r=(n(5),n(13)),o=function(e){return e&&e.__esModule?e:{default:e}}(r)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getOperation=function(){return i.default.PNUnsubscribeOperation},t.validateParams=function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},t.getURL=function(e,t){var n=e.config,r=t.channels,o=void 0===r?[]:r,i=0=this._maxSubDomain&&(this._currentSubDomain=1),e=this._currentSubDomain.toString(),this._providedFQDN.replace("pubsub","ps"+e)}},{key:"hasModule",value:function(e){return e in this._modules}},{key:"shiftStandardOrigin",value:function(){var e=0>>>>>"),a.log("["+r+" / "+n+"]","\n",o.url,"\n",o.qs,"\n",e.text),a.log("-----")})}function i(e,o,i){var a=this;return this._config.logVerbosity&&(e=e.use(r)),this._config.proxy&&this._modules.proxy&&(e=this._modules.proxy.call(this,e)),this._config.keepAlive&&this._modules.keepAlive&&(e=this._modules.keepAlive(e)),e.timeout(o.timeout).end(function(e,t){var n={};if(n.error=null!==e,n.operation=o.operation,t&&t.status&&(n.statusCode=t.status),e)return n.errorData=e,n.category=a._detectErrorCategory(e),i(n,null);var r=JSON.parse(t.text);return r.error&&1===r.error&&r.status&&r.message&&r.service?(n.errorData=r,n.statusCode=r.status,n.error=!0,n.category=a._detectErrorCategory(n),i(n,null)):i(n,r)})}Object.defineProperty(t,"__esModule",{value:!0}),t.get=function(e,t,n){var r=a.default.get(this.getStandardOrigin()+t.url).query(e);return i.call(this,r,t,n)},t.post=function(e,t,n,r){var o=a.default.post(this.getStandardOrigin()+n.url).query(e).send(t);return i.call(this,o,n,r)},t.del=function(e,t,n){var r=a.default.delete(this.getStandardOrigin()+t.url).query(e);return i.call(this,r,t,n)};var o=n(42),a=function(e){return e&&e.__esModule?e:{default:e}}(o);n(5)},function(e,n,t){function r(){}function o(e){if(!h(e))return e;var t=[];for(var n in e)i(t,n,e[n]);return t.join("&")}function i(t,n,e){if(null!=e)if(Array.isArray(e))e.forEach(function(e){i(t,n,e)});else if(h(e))for(var r in e)i(t,n+"["+r+"]",e[r]);else t.push(encodeURIComponent(n)+"="+encodeURIComponent(e));else null===e&&t.push(encodeURIComponent(n))}function a(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&500<=t.status&&501!=t.status)return!0;if(e){if(e.code&&~i.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},r.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},r.prototype.then=function(e,t){if(!this._fullfilledPromise){var o=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(n,r){o.end(function(e,t){e?r(e):n(t)})})}return this._fullfilledPromise.then(e,t)},r.prototype.catch=function(e){return this.then(void 0,e)},r.prototype.use=function(e){return e(this),this},r.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},r.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):200<=e.status&&e.status<300)},r.prototype.getHeader=r.prototype.get=function(e){return this._header[e.toLowerCase()]},r.prototype.set=function(e,t){if(o(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},r.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},r.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(e)){for(var n in e)this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},r.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},r.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},r.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},r.prototype.redirects=function(e){return this._maxRedirects=e,this},r.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},r.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},r.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)this._data[r]=e[r];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},r.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},r.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(0<=this.url.indexOf("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(0<=t){var n=this.url.substring(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,t)+"?"+n.join("&")}}},r.prototype._appendQueryString=function(){console.trace("Unsupported")},r.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error(e+t+"ms exceeded");r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},r.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t){"use strict";e.exports=function(e){return null!==e&&"object"==typeof e}},function(e,t,n){"use strict";function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}var o=n(47);(e.exports=r).prototype.get=function(e){return this.header[e.toLowerCase()]},r.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=o.type(t);var n=o.params(t);for(var r in n)this[r]=n[r];this.links={};try{e.link&&(this.links=o.parseLinks(e.link))}catch(e){}},r.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e}},function(e,t){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(e){n.prototype[e]=function(){return this._defaults.push({fn:e,arguments:arguments}),this}}),n.prototype._setDefaults=function(t){this._defaults.forEach(function(e){t[e.fn].apply(t,e.arguments)})},e.exports=n}])},function(e,t,n){var v=n(353),b=n(2221),w=n(2222),_=Math.max,E=Math.min;e.exports=function(r,n,e){var o,i,a,s,u,l,c=0,f=!1,d=!1,t=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function p(e){var t=o,n=i;return o=i=void 0,c=e,s=r.apply(n,t)}function h(e){var t=e-l;return void 0===l||n<=t||t<0||d&&a<=e-c}function m(){var e=b();if(h(e))return g(e);u=setTimeout(m,function(e){var t=n-(e-l);return d?E(t,a-(e-c)):t}(e))}function g(e){return u=void 0,t&&o?p(e):(o=i=void 0,s)}function y(){var e=b(),t=h(e);if(o=arguments,i=this,l=e,t){if(void 0===u)return function(e){return c=e,u=setTimeout(m,n),f?p(e):s}(l);if(d)return clearTimeout(u),u=setTimeout(m,n),p(l)}return void 0===u&&(u=setTimeout(m,n)),s}return n=w(n)||0,v(e)&&(f=!!e.leading,a=(d="maxWait"in e)?_(w(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),y.cancel=function(){void 0!==u&&clearTimeout(u),o=l=i=u=void(c=0)},y.flush=function(){return void 0===u?s:g(b())},y}},function(e,t,n){"use strict";var a=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),s=n(2266),u=["node_modules","favicon.ico"];(e.exports=function(t){var n=[],r=[];if(null===t)return r.push("name cannot be null"),l(n,r);if(void 0===t)return r.push("name cannot be undefined"),l(n,r);if("string"!=typeof t)return r.push("name must be a string"),l(n,r);if(t.length||r.push("name length must be greater than zero"),t.match(/^\./)&&r.push("name cannot start with a period"),t.match(/^_/)&&r.push("name cannot start with an underscore"),t.trim()!==t&&r.push("name cannot contain leading or trailing spaces"),u.forEach(function(e){t.toLowerCase()===e&&r.push(e+" is a blacklisted name")}),s.forEach(function(e){t.toLowerCase()===e&&n.push(e+" is a core module name")}),214a[0]&&t[1]n.created_at?this.renderTeacherViewStudentUpdated():this.props.latestFeedback.student_seen_feedback?this.renderTeacherViewStudentSeen():this.renderTeacherViewStudentNotSeen():void 0:null},t}(r.Component);h(m,"propTypes",{viewAs:o.default.oneOf(["Teacher","Student"]).isRequired,latestFeedback:o.default.object.isRequired});var g={checkboxIcon:{color:"#25c23c"},timestamp:{fontFamily:'"Gotham 7r", sans-serif'},timeStudent:{fontStyle:"italic",fontSize:12,color:u.default.cyan},timeTeacher:{paddingTop:8,paddingLeft:8,fontStyle:"italic",fontSize:12,color:u.default.cyan},timeTeacherStudentSeen:{color:"#25c23c"}},y=m;t.default=y,e.exports=t.default},function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(1)),r=s(n(0)),o=s(n(5)),l=s(n(3)),c=s(n(1804)),f=n(50),i=n(1203);function s(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}var p,h,m,g=["performanceLevel1","performanceLevel2","performanceLevel3","performanceLevel4"],y=function(e){function t(){return e.apply(this,arguments)||this}return function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e),t.prototype.render=function(){var t,n,e=this.props,r=e.rubric,o=e.performance,i=e.isEditable,a=e.onRubricChange,s=e.viewAs;return s===f.ViewType.Student?t=!(n=!o):s===f.ViewType.Teacher&&(n=!i,t=i),u.default.createElement("div",{style:v.performanceArea},u.default.createElement("div",{style:v.keyConceptArea},u.default.createElement("h1",{style:v.h1},l.default.rubricKeyConceptHeader()),u.default.createElement("p",{style:v.keyConcepts},r.keyConcept)),u.default.createElement("div",{style:v.rubricArea},u.default.createElement("h1",{style:v.h1}," ",l.default.rubric()," "),u.default.createElement("form",{style:v.form},g.map(function(e){return u.default.createElement(c.default,{key:e,showFeedbackInputAreas:t,expandByDefault:n||s===f.ViewType.Student&&o===e,rubricLevel:e,rubricValue:r[e],disabledMode:!i,onChange:a,currentlyChecked:o===e})}))))},t}(u.Component);p=y,h="propTypes",m={rubric:i.rubricShape,performance:r.default.string,isEditable:r.default.bool,onRubricChange:r.default.func.isRequired,viewAs:r.default.oneOf(["Teacher","Student"]).isRequired},h in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m;var v={performanceArea:{display:"flex",justifyContent:"flex-start",flexDirection:"row",margin:"0px 16px 8px 16px"},keyConceptArea:{marginRight:28,flexBasis:"40%"},h1:{color:o.default.charcoal,fontSize:18,lineHeight:"18px",fontFamily:'"Gotham 5r", sans-serif',fontWeight:"normal"},keyConcepts:{fontSize:12,color:o.default.charcoal,margin:0},rubricArea:{flexBasis:"60%"},form:{margin:0}},b=y;t.default=b,e.exports=t.default},function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnwrappedRubricField=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(1)),o=d(n(0)),i=d(n(5)),s=d(n(15)),u=n(1805),l=d(n(97)),c=d(n(12)),f=d(n(3));function d(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m={performanceLevel1:f.default.rubricLevelOneHeader(),performanceLevel2:f.default.rubricLevelTwoHeader(),performanceLevel3:f.default.rubricLevelThreeHeader(),performanceLevel4:f.default.rubricLevelFourHeader()},g=function(n){function e(e){var t;return h(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=n.call(this,e)||this),"updateToggle",function(e){e.preventDefault(),t.setState({detailsOpen:!t.state.detailsOpen})}),t.state={detailsOpen:t.props.expandByDefault},t}return function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(e,n),e.prototype.render=function(){var e=this.props.currentlyChecked?y.performanceLevelHeaderSelected:y.performanceLevelHeader,t=c.default.uniqueId();return r.default.createElement("div",{style:y.rubricPerformanceHeaders},r.default.createElement("div",{style:e,"data-tip":!0,"data-for":t,"aria-describedby":t},this.props.showFeedbackInputAreas&&r.default.createElement(u.CheckedRadioButton,{id:"rubric-input-".concat(this.props.rubricLevel),value:this.props.rubricLevel,checked:this.props.currentlyChecked,onRadioButtonChange:this.props.onChange,disabledMode:this.props.disabledMode}),r.default.createElement("details",{id:"rubric-details-".concat(this.props.rubricLevel),style:y.detailsArea,open:this.state.detailsOpen,onClick:this.updateToggle},r.default.createElement("summary",{style:y.rubricHeader},m[this.props.rubricLevel]),r.default.createElement("p",{style:y.rubricDetails},this.props.rubricValue))),r.default.createElement(l.default,{id:t,role:"tooltip",wrapper:"div",effect:"solid",disable:this.state.detailsOpen},r.default.createElement("div",{style:y.tooltip},this.props.rubricValue)))},e}(r.Component);h(g,"propTypes",{showFeedbackInputAreas:o.default.bool,rubricLevel:o.default.oneOf(Object.keys(m)).isRequired,rubricValue:o.default.string.isRequired,disabledMode:o.default.bool,onChange:o.default.func.isRequired,currentlyChecked:o.default.bool,expandByDefault:o.default.bool});var y={rubricLevelHeaders:{width:"100%"},detailsArea:{width:"100%",paddingTop:2},rubricHeader:{fontSize:12,marginLeft:10,color:i.default.black,fontFamily:'"Gotham 5r", sans-serif',outline:"none",background:"none"},performanceLevelHeader:{display:"flex",justifyContent:"flex-start",flexDirection:"row",margin:"0px 8px",padding:4,borderRadius:4,border:"solid 1px ".concat(i.default.white),":hover":{border:"solid 1px ".concat(i.default.light_cyan)}},performanceLevelHeaderSelected:{display:"flex",justifyContent:"flex-start",flexDirection:"row",margin:"0px 8px",padding:4,backgroundColor:i.default.lightest_cyan,borderRadius:4,border:"solid 1px ".concat(i.default.white),":hover":{border:"solid 1px ".concat(i.default.light_cyan)}},tooltip:{maxWidth:200,lineHeight:"20px",whiteSpace:"normal"},rubricDetails:{paddingLeft:23,paddingTop:5,fontSize:12,margin:0}},v=g;t.UnwrappedRubricField=v;var b=(0,s.default)(g);t.default=b},function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckedRadioButton=void 0;var r,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(1)),o=(r=n(0))&&r.__esModule?r:{default:r};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(1806);var l=function(o){function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r").addClass("instructions-container").width("100%").attr("src",t.props.reference),autoResizeScrollableElement:".instructions-container",id:"block-documentation-lightbox"}).show(),$(".instructions-container").load(function(){$(".instructions-container").contents().find("body").css({overflow:"auto"})})))}),t}return function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(e,o),e.prototype.render=function(){var e=this.props,t=e.icon,n=e.text,r=e.highlight,o=c({},h.commonIcon,r?h.mapIcon:h.resourceIcon),i=c({},h.commonThumbnail,r&&h.mapThumbnail);return a.default.createElement("div",null,a.default.createElement("div",{style:h.resourceStyle,onClick:this.selectResource},a.default.createElement("span",{style:i},a.default.createElement(s.default,{icon:t,style:o,title:n})),a.default.createElement("a",{href:this.props.reference,style:h.textLink},n)))},e}(a.default.Component);d(p,"propTypes",{highlight:r.default.bool,icon:r.default.string.isRequired,text:r.default.string.isRequired,reference:r.default.string.isRequired,openReferenceInNewTab:r.default.bool});var h={textLink:{display:"inline-block",margin:8,fontWeight:"bold",fontSize:16,lineHeight:"25px",cursor:"pointer",maxWidth:"90%"},mapThumbnail:{backgroundColor:i.default.teal},commonThumbnail:{borderRadius:5,paddingLeft:26,paddingRight:26,paddingTop:16,paddingBottom:9},commonIcon:{fontSize:22},mapIcon:{color:i.default.white},resourceIcon:{color:i.default.teal},resourceStyle:{margin:8}},m=(0,o.default)(p);t.default=m,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return o.default.createElement("p",null,"Documentation...")};var r,o=(r=n(1))&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=p(n(1)),s=n(25),u=o(n(12)),r=o(n(617)),l=o(n(1829)),c=o(n(1832)),f=p(n(1833));function o(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function h(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);te.clientHeight;t!==this.state.displayScrollButtons&&this.setState({displayScrollButtons:t})},n.calculateRenderedHeight=function(){var e=this.getMinHeight(),t=this.getMaxHeight();if(this.props.heightt){var n=Math.max(Math.min(this.props.height,t),e);this.props.setInstructionsRenderedHeight(n)}},n.getMinHeight=function(){var e=0this.getCount();this.setState({shouldAnimate:t})},t.getCount=function(){return this.props.unseenHints.length},t.render=function(){return i.default.createElement("div",{id:"lightbulb"},i.default.createElement(a.default,{count:this.getCount(),isMinecraft:this.props.isMinecraft,lit:0this.props.width&&(e-=e+t.width+5-this.props.width);var n=this.props.mouseY-6-t.height,r=this.props.mouseY+6;return{rectX:e,rectY:r+t.height+6>this.props.height?n:n-6<0?r:this.props.tooltipAboveCursor?n:r}},n.renderTooltips=function(){var i=this.getTooltipTopLeft(),a=i.rectX,s=a+55;return this.getTooltipStrings().map(function(e,t){var n=25*t,r=i.rectY+n,o=r+21+-7;return u.default.createElement("g",{key:t},u.default.createElement("rect",{x:a,y:r,width:110,height:21,rx:7,ry:7,style:l.rect}),u.default.createElement("text",{x:s,y:o,style:l.text},e))})},n.render=function(){return(0,o.isPointInBounds)(this.props.mouseX,this.props.mouseY,this.props.width,this.props.height)&&this.props.providers&&this.props.providers.length?u.default.createElement("g",{className:"tooltip-overlay"},this.renderTooltips()):null},t}(u.default.Component);t.default=f,a=f,s="propTypes",c={width:r.default.number,height:r.default.number,mouseX:r.default.number,mouseY:r.default.number,providers:r.default.arrayOf(r.default.func),tooltipAboveCursor:r.default.bool},s in a?Object.defineProperty(a,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[s]=c},function(t,e,n){(function(a,s){var u,w,_,e;_=n(807),e=n(94),w=n(1016).StringDecoder,t.exports=function(){var t,n,r,e,o,i;if(3===arguments.length){if(e=arguments[0],o=arguments[1],"function"!=typeof(t=arguments[2]))throw Error("Invalid callback argument: "+JSON.stringify(t));if("string"!=typeof e&&!a.isBuffer(arguments[0]))return t(Error("Invalid data argument: "+JSON.stringify(e)))}else 2===arguments.length?("string"==typeof arguments[0]||a.isBuffer(arguments[0])?e=arguments[0]:o=arguments[0],"function"==typeof arguments[1]?t=arguments[1]:o=arguments[1]):1===arguments.length&&("function"==typeof arguments[0]?t=arguments[0]:o=arguments[0]);return null==o&&(o={}),i=new u(o),null!=e&&s.nextTick(function(){return i.write(e),i.end()}),t&&(n=!1,r=o.objname?{}:[],i.on("readable",function(){var e,t;for(t=[];e=i.read();)o.objname?t.push(r[e[0]]=e[1]):t.push(r.push(e));return t}),i.on("error",function(e){return n=!0,t(e)}),i.on("end",function(){if(!n)return t(null,r)})),i},u=function(e){var t,n,r,o,i,a,s,u,l,c,f,d,p,h,m,g,y,v,b;for(v in null==e&&(e={}),e.objectMode=!0,this.options={},e)b=e[v],this.options[v]=b;return _.Transform.call(this,this.options),null==(t=this.options).rowDelimiter&&(t.rowDelimiter=null),null==(n=this.options).delimiter&&(n.delimiter=","),null==(c=this.options).quote&&(c.quote='"'),null==(f=this.options).escape&&(f.escape='"'),null==(d=this.options).columns&&(d.columns=null),null==(p=this.options).comment&&(p.comment=""),null==(h=this.options).objname&&(h.objname=!1),null==(m=this.options).trim&&(m.trim=!1),null==(g=this.options).ltrim&&(g.ltrim=!1),null==(y=this.options).rtrim&&(y.rtrim=!1),null==(r=this.options).auto_parse&&(r.auto_parse=!1),null==(o=this.options).auto_parse_date&&(o.auto_parse_date=!1),null==(i=this.options).relax&&(i.relax=!1),null==(a=this.options).relax_column_count&&(a.relax_column_count=!1),null==(s=this.options).skip_empty_lines&&(s.skip_empty_lines=!1),null==(u=this.options).max_limit_on_data_read&&(u.max_limit_on_data_read=128e3),null==(l=this.options).skip_lines_with_empty_values&&(l.skip_lines_with_empty_values=!1),this.lines=0,this.count=0,this.skipped_line_count=0,this.empty_line_count=0,this.is_int=/^(\-|\+)?([1-9]+[0-9]*)$/,this.is_float=function(e){return 0<=e-parseFloat(e)+1},this.decoder=new w,this.buf="",this.quoting=!1,this.commenting=!1,this.field="",this.nextChar=null,this.closingQuote=0,this.line=[],this.chunks=[],this.rawBuf="",this},e.inherits(u,_.Transform),(t.exports.Parser=u).prototype._transform=function(e,t,n){var r;e instanceof a&&(e=this.decoder.write(e));try{return this.__write(e,!1),n()}catch(e){return r=e,this.emit("error",r)}},u.prototype._flush=function(e){var t;try{return this.__write(this.decoder.end(),!0),this.quoting?void this.emit("error",new Error("Quoted field not terminated at line "+(this.lines+1))):(0this.options.max_limit_on_data_read)throw Error("Delimiter not found in the file "+JSON.stringify(this.options.delimiter));if(!this.commenting&&this.line.length>this.options.max_limit_on_data_read)throw Error("Row delimiter not found in the file "+JSON.stringify(this.options.rowDelimiter))}else u++,a=this.nextChar,this.nextChar=e.charAt(u+1),this.field+=a,this.options.raw&&(this.rawBuf+=a),u++;if(t){if(S&&(this.closingQuote||(this.field=this.field.trimRight())),""!==this.field&&(this.line.push(i(this.field)),this.field=""),this.field.length>this.options.max_limit_on_data_read)throw Error("Delimiter not found in the file "+JSON.stringify(this.options.delimiter));if(0===g&&this.lines++,this.line.length>this.options.max_limit_on_data_read)throw Error("Row delimiter not found in the file "+JSON.stringify(this.options.rowDelimiter))}for(this.buf="",_=[];u=t.maxTableCount&&null===(0,a.getPathRef)(e,n).val()?Promise.reject({type:o.WarningType.MAX_TABLES_EXCEEDED,msg:"Table '".concat(n,"' cannot be written to because the ")+"maximum number of tables (".concat(t.maxTableCount,") has been exceeded.")}):Promise.resolve(t)})}function u(e,t,n,r){return e.transaction(function(e){if(e=e||{},t){if(1!==n)throw new Error("expected rowCountChange to equal 1 when updateNextId is true");e.lastId=(e.lastId||0)+1}if(!(e.rowCount+n>r.maxTableRows))return e.rowCount=Math.max(0,(e.rowCount||0)+n),e}).then(function(e){if(e.committed)return t?e.snapshot.child("lastId").val():null;if(e.snapshot.child("rowCount").val()+n>r.maxTableRows)return Promise.reject("The record could not be created. "+"A table may only contain ".concat(r.maxTableRows," rows."));throw new Error("An unexpected error occurred while updating table counters.")})}function l(t,e,r){var n=(0,a.getPathRef)((0,a.getProjectDatabase)(),"counters/limits/".concat(e)),o=1e3*Number(e);return n.transaction(function(e){return(e=e||{}).lastResetTime=e.lastResetTime||0,e.writeCount=(e.writeCount||0)+1,e.writeCount<=t?e:e.lastResetTime+o'+e.title+"
"+e.text+"
";var n=document.createElement("div");c.default.render(l.default.createElement(f.default,{confirmText:s.default.dialogOK(),cancelText:s.default.dialogCancel()}),n),t.appendChild(n);var r=a.createModalDialog({contentDiv:t,defaultBtnSelector:"#confirm-button"}),o=n.querySelector("#again-button");o&&u.default.addClickTouchEvent(o,function(){r.hide()});var i=n.querySelector("#confirm-button");i&&u.default.addClickTouchEvent(i,function(){e.onConfirm&&e.onConfirm(),r.hide()}),r.show()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SoundResponse=void 0;var i=o(n(9)),a=o(n(3)),g=n(10),r=o(n(261));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u,l=function(e,t,n){var r=this,o=3> ":" ")+n+"| "+e}).join("\n");throw e.path=u,e.message=(u||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e},escapeFn=escapeFn||function(e){return null==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&","<":"<",">":">",'"':""","'":"'"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __line=1,__lines="import React from 'react';\nimport { Platform, StyleSheet, View } from 'react-native';\nimport { WebView } from 'react-native-webview';\nimport { AppLoading } from 'expo';\n\nimport CustomAsset from './CustomAsset';\nimport DataWarning from './DataWarning';\nimport packagedFiles from './packagedFiles';\n\nexport default class App extends React.Component {\n\n static APP_HEIGHT = <%- appHeight %>;\n static APP_WIDTH = <%- appWidth %>;\n\n constructor(props) {\n super(props);\n this.state = {\n<% if (!hasDataAPIs) { -%>\n age: DataWarning.AGE_MINIMUM,\n<% } -%>\n needsEmptyRender: Platform.OS === 'android',\n };\n }\n\n componentDidMount() {\n this.prepareAssets();\n this.checkAge();\n }\n\n<% if (hasDataAPIs) { -%>\n checkAge = async () => {\n try {\n const age = await AsyncStorage.getItem(DataWarning.AGE_KEY);\n this.setState({ age });\n } catch (e) {\n }\n };\n<% } else { -%>\n checkAge = () => {};\n<% } -%>\n\n async prepareAssets() {\n const downloadAssets = packagedFiles.map(({ module, fileName }) =>\n CustomAsset.fromModule(module, fileName)\n );\n await CustomAsset.loadAsyncAssets(downloadAssets);\n const indexHtmlIndex = packagedFiles.findIndex(({ fileName }) => fileName === 'index.html');\n this.setState({\n indexUri: downloadAssets[indexHtmlIndex].localUri,\n });\n }\n\n onLayout = ({ nativeEvent }) => {\n const { height, width } = nativeEvent.layout;\n this.setState({\n height,\n width,\n });\n };\n\n onLoad = () => {\n //\n // NOTE: wait for 2 frames after the WebView says it is loaded before we set our state to\n // loaded and remove the \"cover\" View (without this delay, we see a white flash from the WebView)\n //\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.setState({\n loaded: true,\n });\n });\n });\n };\n\n webViewScale() {\n const { height, width } = this.state;\n\n const heightScale = height / App.APP_HEIGHT;\n const widthScale = width / App.APP_WIDTH;\n return Math.min(heightScale, widthScale);\n }\n\n webViewContainerStyle() {\n const scale = this.webViewScale();\n\n return [\n styles.webViewContainer,\n {\n height: App.APP_HEIGHT * scale,\n width: App.APP_WIDTH * scale,\n }\n ];\n }\n\n render() {\n const { age, height, indexUri, loaded, needsEmptyRender } = this.state;\n\n if (!age || age < DataWarning.AGE_MINIMUM) {\n return (\n \n );\n }\n\n if (!indexUri) {\n return (\n \n );\n }\n\n const showWebView = !!height && indexUri;\n\n if (showWebView && needsEmptyRender) {\n // Workaround for react-native-webview issue with Android 10\n // See https://github.com/react-native-community/react-native-webview/issues/656#issuecomment-551312436\n this.setState({needsEmptyRender: false});\n }\n\n let readAccessToURL;\n if (Platform.OS === 'ios' && indexUri) {\n readAccessToURL = indexUri.substring(0, indexUri.lastIndexOf('/') + 1);\n }\n\n return (\n \n {showWebView && \n \n }\n {!loaded && }\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n ...StyleSheet.absoluteFillObject,\n backgroundColor: 'black',\n justifyContent: 'center',\n },\n cover: {\n ...StyleSheet.absoluteFillObject,\n backgroundColor: 'white',\n },\n webViewIOS: {\n backgroundColor: 'black',\n flex: 1,\n },\n webViewAndroid: {\n backgroundColor: 'white',\n flex: 1,\n },\n webViewContainer: {\n backgroundColor: 'black',\n }\n});\n",__filename="src/templates/export/expo/App.js.ejs";try{var __output=[],__append=__output.push.bind(__output);with(locals||{})__append("import React from 'react';\nimport { Platform, StyleSheet, View } from 'react-native';\nimport { WebView } from 'react-native-webview';\nimport { AppLoading } from 'expo';\n\nimport CustomAsset from './CustomAsset';\nimport DataWarning from './DataWarning';\nimport packagedFiles from './packagedFiles';\n\nexport default class App extends React.Component {\n\n static APP_HEIGHT = "),__line=12,__append(appHeight),__append(";\n static APP_WIDTH = "),__line=13,__append(appWidth),__append(";\n\n constructor(props) {\n super(props);\n this.state = {\n"),__line=18,hasDataAPIs||(__append(" age: DataWarning.AGE_MINIMUM,\n"),__line=20),__append(" needsEmptyRender: Platform.OS === 'android',\n };\n }\n\n componentDidMount() {\n this.prepareAssets();\n this.checkAge();\n }\n\n"),__line=30,__line=hasDataAPIs?(__append(" checkAge = async () => {\n try {\n const age = await AsyncStorage.getItem(DataWarning.AGE_KEY);\n this.setState({ age });\n } catch (e) {\n }\n };\n"),38):(__append(" checkAge = () => {};\n"),40),__append("\n async prepareAssets() {\n const downloadAssets = packagedFiles.map(({ module, fileName }) =>\n CustomAsset.fromModule(module, fileName)\n );\n await CustomAsset.loadAsyncAssets(downloadAssets);\n const indexHtmlIndex = packagedFiles.findIndex(({ fileName }) => fileName === 'index.html');\n this.setState({\n indexUri: downloadAssets[indexHtmlIndex].localUri,\n });\n }\n\n onLayout = ({ nativeEvent }) => {\n const { height, width } = nativeEvent.layout;\n this.setState({\n height,\n width,\n });\n };\n\n onLoad = () => {\n //\n // NOTE: wait for 2 frames after the WebView says it is loaded before we set our state to\n // loaded and remove the \"cover\" View (without this delay, we see a white flash from the WebView)\n //\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.setState({\n loaded: true,\n });\n });\n });\n };\n\n webViewScale() {\n const { height, width } = this.state;\n\n const heightScale = height / App.APP_HEIGHT;\n const widthScale = width / App.APP_WIDTH;\n return Math.min(heightScale, widthScale);\n }\n\n webViewContainerStyle() {\n const scale = this.webViewScale();\n\n return [\n styles.webViewContainer,\n {\n height: App.APP_HEIGHT * scale,\n width: App.APP_WIDTH * scale,\n }\n ];\n }\n\n render() {\n const { age, height, indexUri, loaded, needsEmptyRender } = this.state;\n\n if (!age || age < DataWarning.AGE_MINIMUM) {\n return (\n \n );\n }\n\n if (!indexUri) {\n return (\n \n );\n }\n\n const showWebView = !!height && indexUri;\n\n if (showWebView && needsEmptyRender) {\n // Workaround for react-native-webview issue with Android 10\n // See https://github.com/react-native-community/react-native-webview/issues/656#issuecomment-551312436\n this.setState({needsEmptyRender: false});\n }\n\n let readAccessToURL;\n if (Platform.OS === 'ios' && indexUri) {\n readAccessToURL = indexUri.substring(0, indexUri.lastIndexOf('/') + 1);\n }\n\n return (\n \n {showWebView && \n \n }\n {!loaded && }\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n ...StyleSheet.absoluteFillObject,\n backgroundColor: 'black',\n justifyContent: 'center',\n },\n cover: {\n ...StyleSheet.absoluteFillObject,\n backgroundColor: 'white',\n },\n webViewIOS: {\n backgroundColor: 'black',\n flex: 1,\n },\n webViewAndroid: {\n backgroundColor: 'white',\n flex: 1,\n },\n webViewContainer: {\n backgroundColor: 'black',\n }\n});\n"),__line=170;return __output.join("")}catch(e){rethrow(e,__lines,__filename,__line,escapeFn)}}},function(e,t){e.exports="import { Asset } from 'expo-asset';\nimport * as FileSystem from 'expo-file-system';\n\nexport default class CustomAsset {\n constructor({ asset, fileName }) {\n this.asset = asset;\n this.fileName = fileName;\n }\n\n static fromModule(moduleId, fileName) {\n const asset = Asset.fromModule(moduleId);\n return new CustomAsset({asset, fileName});\n }\n\n static loadAsyncAssets(assets) {\n return Promise.all(assets.map(a => a.downloadAsync()));\n }\n\n async downloadAsync() {\n const localUri = `${FileSystem.cacheDirectory}${encodeURI(this.fileName)}`;\n let exists, md5;\n ({ exists, md5 } = await FileSystem.getInfoAsync(localUri, {\n cache: true,\n md5: true,\n }));\n if (!exists || md5 !== this.asset.hash) {\n const dirName = localUri.substring(0, localUri.lastIndexOf('/'));\n if (`${dirName}/` !== FileSystem.cacheDirectory) {\n try {\n await FileSystem.makeDirectoryAsync(dirName, {\n intermediates: true,\n });\n } catch (e) {\n // Ignore this because it throws if the dir already exists on Android\n }\n }\n if (this.asset.localUri) {\n await FileSystem.copyAsync({\n from: this.asset.localUri,\n to: localUri,\n });\n ({ md5 } = await FileSystem.getInfoAsync(localUri, {\n cache: true,\n md5: true,\n }));\n } else {\n ({ md5 } = await FileSystem.downloadAsync(this.asset.uri, localUri, {\n cache: true,\n md5: true,\n }));\n }\n if (md5 !== this.asset.hash) {\n throw new Error(\n `Downloaded file for asset '${this.fileName} ` +\n `Located at ${localUri} ` +\n `failed MD5 integrity check`\n );\n }\n }\n this.localUri = localUri;\n this.downloaded = true;\n }\n}\n"},function(e,t){e.exports="import React, { Component } from 'react';\nimport {\n AsyncStorage,\n Dimensions,\n Image,\n Linking,\n Picker,\n Text,\n TouchableOpacity,\n View,\n SafeAreaView,\n StyleSheet,\n} from 'react-native';\nimport PropTypes from 'prop-types';\n\nexport default class DataWarning extends Component {\n state = { };\n\n propTypes = {\n onComplete: PropTypes.func,\n };\n\n static AGE_KEY = '@ApplabApp:age';\n static AGE_MINIMUM = 13;\n static SMALL_SCREEN_WIDTH = 320;\n\n async componentDidMount() {\n const age = await AsyncStorage.getItem(DataWarning.AGE_KEY);\n if (!age) {\n return;\n }\n\n this.setState({\n age,\n ageLocked: true,\n ageText: this.ageTextFromAge(age),\n });\n if (age >= DataWarning.AGE_MINIMUM) {\n onComplete && onComplete();\n }\n }\n\n onPressAge = () => {\n this.setState({ picking: true });\n };\n\n onPressDone = () => {\n this.setState({ picking: false });\n };\n\n onAgeChange = (itemValue) => {\n this.setState({ age: itemValue, ageText: this.ageTextFromAge(itemValue) });\n };\n\n onPressPrivacy = () => {\n Linking.openURL('https://code.org/privacy');\n };\n\n ageTextFromAge(age) {\n return age == 21 ? '21+' : age;\n }\n\n onPressOK = async () => {\n const { onComplete } = this.props;\n const { age } = this.state;\n try {\n await AsyncStorage.setItem(DataWarning.AGE_KEY, age);\n } catch (e) {\n }\n if (!age) {\n return;\n }\n this.setState({ ageLocked: true });\n if (age >= DataWarning.AGE_MINIMUM) {\n onComplete && onComplete();\n }\n };\n\n renderTooYoung() {\n return (\n \n \n \n Sorry, you cannot access this content.\n \n \n \n );\n }\n\n render() {\n const { age, ageLocked, ageText, picking } = this.state;\n if (ageLocked && age < DataWarning.AGE_MINIMUM) {\n return this.renderTooYoung();\n }\n const { height, width } = Dimensions.get('window');\n const smallScreen = Math.min(height, width) <= DataWarning.SMALL_SCREEN_WIDTH;\n const paragraphStyle = smallScreen ? styles.paragraphSmallScreen : styles.paragraph;\n const ageSelected = !!ageText;\n return [\n (\n \n \n \n \n Warning\n \n \n \n This app was built on Code.org by a student. The Code.org platform is optimized for creating prototypes and student projects, and as a result any data you enter while using the app could potentially be viewed by anyone with access to the app on any platform or website where this app is shared.\n {'\\n'}\n {'\\n'}\n While using this app please do not enter any private information (such as your name, email, or street address). Any data you enter may be broadly accessible to the public.\n {'\\n'}\n {'\\n'}\n Please provide your age below and click OK to continue.\n \n \n \n {ageSelected ? ageText : 'Select Age'}\n \n \n \n \n \n Code.org Privacy Policy\n \n \n \n \n OK\n \n \n \n \n ),\n picking && \n \n \n Done\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ];\n }\n}\n\nconst styles = StyleSheet.create({\n ageContainer: {\n alignItems: 'center',\n borderColor: '#94a9be',\n borderRadius: 8,\n borderWidth: 1,\n flexDirection: 'row',\n marginTop: 10,\n minHeight: 40,\n paddingHorizontal: 10,\n },\n background: {\n ...StyleSheet.absoluteFillObject,\n justifyContent: 'flex-start',\n backgroundColor: '#444444',\n },\n container: {\n alignItems: 'stretch',\n backgroundColor: 'white',\n borderColor: 'white',\n borderRadius: 18,\n borderWidth: 18,\n flex: 1,\n justifyContent: 'flex-start',\n margin: 6,\n paddingTop: 6,\n },\n containerTooYoung: {\n alignItems: 'center',\n justifyContent: 'center',\n },\n okButton: {\n color: 'white',\n fontFamily: 'sans-serif',\n fontSize: 16,\n fontWeight: 'bold',\n },\n okButtonContainer: {\n alignItems: 'center',\n backgroundColor: '#ffa400',\n borderRadius: 6,\n justifyContent: 'center',\n height: 40,\n minWidth: 65,\n },\n okButtonContainerDisabled: {\n backgroundColor: '#ffa4006f',\n },\n okContainer: {\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n marginTop: 20,\n },\n paragraph: {\n fontFamily: 'sans-serif',\n fontSize: 16,\n lineHeight: 24,\n textAlign: 'left',\n color: '#34495e',\n },\n paragraphSmallScreen: {\n fontFamily: 'sans-serif',\n fontSize: 14,\n lineHeight: 18,\n textAlign: 'left',\n color: '#34495e',\n },\n picker: {\n backgroundColor: 'white',\n },\n pickerDoneContainer: {\n alignItems: 'center',\n backgroundColor: 'white',\n borderColor: '#94a9be',\n borderBottomWidth: 1,\n flexDirection: 'row',\n justifyContent: 'flex-end',\n minHeight: 40,\n paddingHorizontal: 10,\n },\n pickerFullscreen: {\n ...StyleSheet.absoluteFillObject,\n justifyContent: 'center',\n backgroundColor: '#000000af',\n },\n pickerItem: {\n fontFamily: 'sans-serif',\n color: 'black',\n },\n pickingDone: {\n textAlign: 'right',\n fontWeight: 'bold',\n },\n privacy: {\n color: '#00adbd',\n fontWeight: '900',\n },\n topWarning: {\n fontSize: 26,\n fontWeight: 'bold',\n },\n topWarningContainer: {\n alignItems: 'center',\n flexDirection: 'row',\n marginBottom: 20,\n },\n warning: {\n fontWeight: 'bold',\n textDecorationLine: 'underline',\n },\n warningImage: {\n height: 50,\n width: 50,\n marginRight: 15,\n },\n});\n"},function(e,t){e.exports='module.exports = {\n resolver: {\n assetExts: [\n "html",\n "css",\n "j",\n "jpg",\n "jpeg",\n "png",\n "gif",\n "mp3",\n "woff2",\n "ttf",\n "txt"\n ]\n }\n}\n'},function(e,t,n){e.exports=n.p+"warningwp36ac34fff79309eee8417f46222e99f6.png"},function(e,t,n){e.exports=n.p+"splashwp43ec0dcbe5a156bf9e650bb8c15e7af6.png"},,,,function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){e.exports={default:n(1978),__esModule:!0}},function(e,t,n){var r=n(380).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(530),o=n(1216),i=n(1221)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t){},function(e,t,n){n(1979),e.exports=n(260).Object.assign},function(e,t,n){var r=n(527);r(r.S+r.F,"Object",{assign:n(1980)})},function(e,t,n){"use strict";var d=n(976),p=n(1224),h=n(979),m=n(1216),g=n(1474),o=Object.assign;e.exports=!o||n(824)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=p.f,a=h.f;o=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(1994),__esModule:!0}},function(e,t,n){n(1995),n(1977),n(2e3),n(2001),e.exports=n(260).Symbol},function(e,t,n){"use strict";var r=n(380),a=n(530),o=n(529),i=n(527),s=n(1477),u=n(1996).KEY,l=n(824),c=n(1222),f=n(1217),d=n(978),p=n(282),h=n(1226),m=n(1227),g=n(1997),y=n(1998),v=n(528),b=n(623),w=n(625),_=n(1218),E=n(825),x=n(1225),S=n(1999),C=n(1471),O=n(381),T=n(976),k=C.f,P=O.f,A=S.f,R=r.Symbol,M=r.JSON,N=M&&M.stringify,I="prototype",j=p("_hidden"),D=p("toPrimitive"),L={}.propertyIsEnumerable,B=c("symbol-registry"),F=c("symbols"),H=c("op-symbols"),U=Object[I],z="function"==typeof R,W=r.QObject,V=!W||!W[I]||!W[I].findChild,q=o&&l(function(){return 7!=x(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=k(U,t);r&&delete U[t],P(e,t,n),r&&e!==U&&P(U,t,r)}:P,G=function(e){var t=F[e]=x(R[I]);return t._k=e,t},K=z&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},X=function(e,t,n){return e===U&&X(H,t,n),v(e),t=_(t,!0),v(n),a(F,t)?(n.enumerable?(a(e,j)&&e[j][t]&&(e[j][t]=!1),n=x(n,{enumerable:E(0,!1)})):(a(e,j)||P(e,j,E(1,{})),e[j][t]=!0),q(e,t,n)):P(e,t,n)},Y=function(e,t){v(e);for(var n,r=g(t=w(t)),o=0,i=r.length;oo;)a(F,t=n[o++])||t==j||t==u||r.push(t);return r},Q=function(e){for(var t,n=e===U,r=A(n?H:w(e)),o=[],i=0;r.length>i;)!a(F,t=r[i++])||n&&!a(U,t)||o.push(F[t]);return o};z||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=d(0te;)p(ee[te++]);for(var ne=T(p.store),re=0;ne.length>re;)m(ne[re++]);i(i.S+i.F*!z,"Symbol",{for:function(e){return a(B,e+="")?B[e]:B[e]=R(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!z,"Object",{create:function(e,t){return void 0===t?x(e):Y(x(e),t)},defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:Q}),M&&i(i.S+i.F*(!z||l(function(){var e=R();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,N.apply(M,r)}}),R[I][D]||n(624)(R[I],D,R[I].valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(978)("meta"),o=n(623),i=n(530),a=n(381).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(824)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return l&&f.NEED&&u(e)&&!i(e,r)&&c(e),e}}},function(e,t,n){var s=n(976),u=n(1224),l=n(979);e.exports=function(e){var t=s(e),n=u.f;if(n)for(var r,o=n(e),i=l.f,a=0;o.length>a;)i.call(e,r=o[a++])&&t.push(r);return t}},function(e,t,n){var r=n(1215);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(625),o=n(1478).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){n(1227)("asyncIterator")},function(e,t,n){n(1227)("observable")},function(e,t,n){e.exports={default:n(2003),__esModule:!0}},function(e,t,n){n(2004),e.exports=n(260).Object.setPrototypeOf},function(e,t,n){var r=n(527);r(r.S,"Object",{setPrototypeOf:n(2005).set})},function(e,t,o){var n=o(623),r=o(528),i=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,r){try{(r=o(1214)(Function.call,o(1471).f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return i(e,t),n?e.__proto__=t:r(e,t),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(2007),__esModule:!0}},function(e,t,n){n(2008);var r=n(260).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(527);r(r.S,"Object",{create:n(1225)})},function(e,t,n){var i=n(528);e.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},function(e,t,n){var r=n(626),o=n(282)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var i=n(282)("iterator"),a=!1;try{var r=[7][i]();r.return=function(){a=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r=[7],o=r[i]();o.next=function(){return{done:n=!0}},r[i]=function(){return o},e(r)}catch(e){}return n}},,,,,,,,,function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ConfirmEnableMakerDialog=void 0;var r=p(n(0)),i=d(n(1)),o=n(823),s=p(n(3)),u=p(n(5)),l=d(n(265)),c=p(n(49));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g={description:{fontSize:"smaller"},warning:{color:u.default.red,fontSize:"smaller",fontStyle:"italic",textAlign:"center",padding:10},footerButtons:{display:"flex",justifyContent:"space-between"},buttonGroupSpacing:{marginLeft:15}},y=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;re.length?0:i.state.autocompleteIndex,autocompleteOptions:e,autocompleteOpen:t.length&&e.length&&!n&&(!r||o)})}),h(p(i),"onAutocompleteOptionClicked",function(e){i.addFromInput(e)}),h(p(i),"onChange",function(e){i.setState({text:e.target.value},i.filterOptions)}),i.defaultAutocompleteOptions="gamelab"===e.appType?m:[],i.state={text:"",history:[],editing:!1,autocompleteSelecting:!1,autocompleteOpen:!1,autocompleteIndex:0,autocompleteOptions:i.defaultAutocompleteOptions,historyIndex:-1},i}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(e,t);var n=e.prototype;return n.renderValue=function(e){if(!this.props.isRunning)return o.default.createElement("span",{style:b.watchValue},"undefined");var t=function(e){return{}.toString.call(e).split(" ")[1].slice(0,-1).toLowerCase()}(e);if(e instanceof Error)return o.default.createElement("span",{style:b.watchValue,className:"watch-unavailable"},s.default.debugWatchNotAvailable());switch(t){case"null":case"undefined":return o.default.createElement("span",{style:b.watchValue},t);case"regexp":return o.default.createElement("span",{style:b.watchValue},"[regexp]");case"array":return o.default.createElement("span",{style:b.watchValueArray},"[list (".concat(e.length,")]"),o.default.createElement("br",null),"[".concat(function(e){var r="";return e.forEach(function(e,t,n){null===e?r+="null":Array.isArray(e)?r+="list ("+e.length+")":"string"==typeof e?r+='"'+e+'"':"object"===d(e)?r+="object {}":r+=e,t!==n.length-1&&(r+=", ")}),r}(e),"]"));case"function":return o.default.createElement("span",{style:b.watchValue},"[".concat(e.toString().match(/(.*)\(/)[1],"]"));default:return o.default.createElement("span",{style:b.watchValue},e.toString())}},n.scrollToBottom=function(){this.scrollableContainer.scrollTop=this.scrollableContainer.scrollHeight},n.addFromInput=function(){var e=this,t=0n.clientWidth||0<=[r.overflow,r.overflowX].indexOf("scroll")||this.target!==document.body,i=0;o&&(i=15);var a=e.height-parseFloat(r.borderTopWidth)-parseFloat(r.borderBottomWidth)-i,t={width:15,height:.975*a*(a/n.scrollHeight),left:e.left+e.width-parseFloat(r.borderLeftWidth)-15},s=0;a<408&&this.target===document.body&&(s=-11e-5*Math.pow(a,2)-.00727*a+22.58),this.target!==document.body&&(t.height=Math.max(t.height,24));var u=this.target.scrollTop/(n.scrollHeight-a);return t.top=u*(a-t.height-s)+e.top+parseFloat(r.borderTopWidth),this.target===document.body&&(t.height=Math.max(t.height,24)),t}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;f(this.target,this.getClass("enabled")),f(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var n=this;this.disable(),y.forEach(function(e,t){e===n&&y.splice(t,1)}),0===y.length&&l()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment,void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var r=this._addAttachClasses;e.top&&r.push(this.getClass("element-attached")+"-"+e.top),e.left&&r.push(this.getClass("element-attached")+"-"+e.left),t.top&&r.push(this.getClass("target-attached")+"-"+t.top),t.left&&r.push(this.getClass("target-attached")+"-"+t.left);var o=[];["left","top","bottom","right","middle","center"].forEach(function(e){o.push(n.getClass("element-attached")+"-"+e),o.push(n.getClass("target-attached")+"-"+e)}),k(function(){void 0!==n._addAttachClasses&&(T(n.element,n._addAttachClasses,o),!1!==n.options.addTargetClasses&&T(n.target,n._addAttachClasses,o),delete n._addAttachClasses)})}},{key:"position",value:function(){var s=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var t=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=R[t.left]),"auto"===r&&(r=M[t.top]),{left:n,top:r}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,t);var n=this.cache("element-bounds",function(){return x(s.element)}),r=n.width,o=n.height;if(0===r&&0===o&&void 0!==this.lastSize){var i=this.lastSize;r=i.width,o=i.height}else this.lastSize={width:r,height:o};var a=this.cache("target-bounds",function(){return s.getTargetBounds()}),u=a,l=D(I(this.attachment),{width:r,height:o}),c=D(I(t),u),f=D(this.offset,{width:r,height:o}),d=D(this.targetOffset,u);l=j(l,f),c=j(c,d);for(var p=a.left+c.left-l.left,h=a.top+c.top-l.top,m=0;mb.documentElement.clientHeight&&(_=this.cache("scrollbar-size",C),v.viewport.bottom-=_.height),w.innerWidth>b.documentElement.clientWidth&&(_=this.cache("scrollbar-size",C),v.viewport.right-=_.width),-1!==["","static"].indexOf(b.body.style.position)&&-1!==["","static"].indexOf(b.body.parentElement.style.position)||(v.page.bottom=b.body.scrollHeight-h-o,v.page.right=b.body.scrollWidth-p-r),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var e=s.cache("target-offsetparent",function(){return S(s.target)}),t=s.cache("target-offsetparent-bounds",function(){return x(e)}),n=getComputedStyle(e),r=t,o={};if(["Top","Left","Bottom","Right"].forEach(function(e){o[e.toLowerCase()]=parseFloat(n["border"+e+"Width"])}),t.right=b.body.scrollWidth-t.left-r.width+o.right,t.bottom=b.body.scrollHeight-t.top-r.height+o.bottom,v.page.top>=t.top+o.top&&v.page.bottom>=t.bottom&&v.page.left>=t.left+o.left&&v.page.right>=t.right){var i=e.scrollTop,a=e.scrollLeft;v.offset={top:v.page.top-t.top+i-o.top,left:v.page.left-t.left+a-o.left}}}(),this.move(v),this.history.unshift(v),3u[3]&&"bottom"===w.top&&(d-=y,w.top="top")),"together"===i&&("top"===w.top&&("bottom"===_.top&&du[3]&&d-(m-y)>=u[1]&&(d-=m-y,w.top="bottom",_.top="bottom")),"bottom"===w.top&&("top"===_.top&&d+m>u[3]?(d-=y,w.top="top",d-=m,_.top="bottom"):"bottom"===_.top&&du[3]&&"top"===_.top?(d-=m,_.top="bottom"):du[2]&&"right"===w.left&&(p-=v,w.left="left")),"together"===o&&(pu[2]&&"right"===w.left?"left"===_.left?(p-=v,w.left="left",p-=g,_.left="right"):"right"===_.left&&(p-=v,w.left="left",p+=g,_.left="left"):"center"===w.left&&(p+g>u[2]&&"left"===_.left?(p-=g,_.left="right"):pu[3]&&"top"===_.top&&(d-=m,_.top="bottom")),"element"!==o&&"both"!==o||(pu[2]&&("left"===_.left?(p-=g,_.left="right"):"center"===_.left&&(p-=g/2,_.left="right"))),"string"==typeof r?r=r.split(",").map(function(e){return e.trim()}):!0===r&&(r=["top","left","right","bottom"]),r=r||[];var l=[],c=[];du[3]&&(0<=r.indexOf("bottom")?(d=u[3]-m,l.push("bottom")):c.push("bottom")),pu[2]&&(0<=r.indexOf("right")?(p=u[2]-g,l.push("right")):c.push("right")),l.length&&function(){var t=void 0;t=void 0!==f.options.pinnedClass?f.options.pinnedClass:f.getClass("pinned"),b.push(t),l.forEach(function(e){b.push(t+"-"+e)})}(),c.length&&function(){var t=void 0;t=void 0!==f.options.outOfBoundsClass?f.options.outOfBoundsClass:f.getClass("out-of-bounds"),b.push(t),c.forEach(function(e){b.push(t+"-"+e)})}(),(0<=l.indexOf("left")||0<=l.indexOf("right"))&&(_.left=w.left=!1),(0<=l.indexOf("top")||0<=l.indexOf("bottom"))&&(_.top=w.top=!1),w.top===h.top&&w.left===h.left&&_.top===f.attachment.top&&_.left===f.attachment.left||(f.updateAttachClasses(_,w),f.trigger("update",{attachment:_,targetAttachment:w}))}),k(function(){!1!==f.options.addTargetClasses&&T(f.target,b,o),T(f.element,b,o)}),{top:d,left:p}}});var z,x=(z=E.Utils).getBounds,T=z.updateClasses,k=z.defer;E.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",function(){return x(t.element)}),i=o.height,a=o.width,s=this.getTargetBounds(),u=n+i,l=r+a,c=[];n<=s.bottom&&u>=s.top&&["left","right"].forEach(function(e){var t=s[e];t!==r&&t!==l||c.push(e)}),r<=s.right&&l>=s.left&&["top","bottom"].forEach(function(e){var t=s[e];t!==n&&t!==u||c.push(e)});var f=[],d=[];return f.push(this.getClass("abutted")),["left","top","right","bottom"].forEach(function(e){f.push(t.getClass("abutted")+"-"+e)}),c.length&&d.push(this.getClass("abutted")),c.forEach(function(e){d.push(t.getClass("abutted")+"-"+e)}),k(function(){!1!==t.options.addTargetClasses&&T(t.target,d,f),T(t.element,d,f)}),!0}});var A=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};return E.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var o=void 0,i=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var a=A(r,2);o=a[0],i=a[1],o=parseFloat(o,10),i=parseFloat(i,10)}else o=r.top,i=r.left;return{top:t+=o,left:n+=i}}}}),H})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=u(n(890)),a=u(n(0)),s=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={autocompletePanel:{width:"100%",minWidth:163,height:"initial",background:"white",color:"#808080",border:"1px gray solid",padding:0,marginTop:-2,marginLeft:-1},autocompleteOption:{cursor:"pointer",margin:0,padding:4},selectedStyle:{backgroundColor:"#cad6fa",color:"black"}},f=(0,i.default)((o=r=function(e){function t(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.handleClickOutside=function(){this.props.onClickOutside()},n.render=function(){var r=this;return s.default.createElement("div",{id:"autocomplete-panel",className:"autocomplete-panel",style:c.autocompletePanel},this.props.options.map(function(t,e){var n=e===r.props.currentIndex;return s.default.createElement("div",{key:t,className:"autocomplete-option",onClick:function(e){r.props.onOptionClicked(t),e.preventDefault()},onMouseOver:function(){return r.props.onOptionHovered(e)},style:function(t){for(var e=1;e ",e.input):e.skipInspector?e.output:n.isValidOutput(e)?e.fromConsoleLog?a.default.createElement(p.Inspector,{theme:w,key:t,data:e.output}):a.default.createElement("div",{key:t},"<"," ",a.default.createElement("div",{style:b.inspector},a.default.createElement(p.Inspector,{theme:w,data:e.output}))):void 0})},t.render=function(){var t=this,e="debug-console";return this.props.debugButtons||(e+=" no-commands"),this.props.debugWatch||(e+=" no-watch"),a.default.createElement("div",{id:"debug-console",className:e,style:g({display:"flex",flexDirection:"column"},this.props.style),ref:function(e){return t.root=e}},a.default.createElement("div",{id:"debug-output",onMouseUp:this.onDebugOutputMouseUp,ref:function(e){return t._debugOutput=e},style:g({},b.debugOutput,this.getDebugOutputBackgroundStyle())},this.displayOutputToConsole()),a.default.createElement("div",{style:this.props.debugConsoleDisabled?b.debugInputWrapperDisabled:b.debugInputWrapper},a.default.createElement("span",{style:b.debugInputPrompt,onClick:this.focus},">"),a.default.createElement("input",{type:"text",spellCheck:"false",id:"debug-input",disabled:this.props.debugConsoleDisabled,style:b.debugInput,ref:function(e){return t._debugInput=e},onKeyDown:this.onInputKeyDown})))},e}(a.default.Component),y(r,"propTypes",{commandHistory:i.default.instanceOf(c.default),logOutput:i.default.oneOfType([i.default.array,i.default.object,i.default.string]).isRequired,debugConsoleDisabled:i.default.bool.isRequired,maxLogLevel:i.default.string.isRequired,isAttached:i.default.bool.isRequired,addWatchExpression:i.default.func.isRequired,removeWatchExpression:i.default.func.isRequired,evalInCurrentScope:i.default.func.isRequired,appendLog:i.default.func.isRequired,jsInterpreter:i.default.object,debugButtons:i.default.bool,debugWatch:i.default.bool,style:i.default.object}),o));t.default=x,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Inspector=t.ObjectName=t.ObjectValue=t.ObjectRootLabel=t.ObjectLabel=t.DOMInspector=t.TableInspector=t.ObjectInspector=t.chromeDark=t.chromeLight=void 0;var i=g(n(307)),a=g(n(981)),r=n(1495);Object.defineProperty(t,"chromeLight",{enumerable:!0,get:function(){return r.chromeLight}}),Object.defineProperty(t,"chromeDark",{enumerable:!0,get:function(){return r.chromeDark}});var s=g(n(2038)),u=g(n(2054)),l=g(n(2064)),o=g(n(1499)),c=g(n(1498)),f=g(n(991)),d=g(n(990)),p=g(n(1)),h=g(n(0)),m=g(n(2066));function g(e){return e&&e.__esModule?e:{default:e}}t.ObjectInspector=s.default,t.TableInspector=u.default,t.DOMInspector=l.default,t.ObjectLabel=o.default,t.ObjectRootLabel=c.default,t.ObjectValue=f.default,t.ObjectName=d.default;var y=function(e){var t=e.table,n=void 0!==t&&t,r=e.data,o=(0,a.default)(e,["table","data"]);return n?p.default.createElement(u.default,(0,i.default)({data:r},o)):(0,m.default)(r)?p.default.createElement(l.default,(0,i.default)({data:r},o)):p.default.createElement(s.default,(0,i.default)({data:r},o))};y.propTypes={data:h.default.any,name:h.default.string,table:h.default.bool},t.Inspector=y,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:"14px",BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_KEYWORD_COLOR:"rgb(242, 85, 217)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:"14px",TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:"14px",BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_KEYWORD_COLOR:"rgb(170, 13, 145)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:"14px",TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=g(n(307)),u=g(n(981)),r=g(n(531)),o=g(n(532)),i=g(n(533)),a=g(n(534)),S=g(n(1496)),C=g(n(2041)),O=g(n(350)),l=n(1),c=g(l),f=g(n(0)),d=g(n(1497)),p=g(n(1498)),h=g(n(1499)),m=g(n(1346));function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){var t=e.depth,n=e.name,r=e.data,o=e.isNonenumerable;return 0===t?c.default.createElement(p.default,{name:n,data:r}):c.default.createElement(h.default,{name:n,data:r,isNonenumerable:o})},v=function(e){function t(){return(0,r.default)(this,t),(0,i.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,a.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this.props,t=e.showNonenumerable,n=e.sortObjectKeys,r=e.nodeRenderer,o=(0,u.default)(e,["showNonenumerable","sortObjectKeys","nodeRenderer"]),i=function(E,x){return S.default.mark(function e(t){var n,r,o,i,a,s,u,l,c,f,d,p,h,m,g,y,v,b,w,_;return S.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("object"===(void 0===t?"undefined":(0,O.default)(t))&&null!==t||"function"==typeof t){e.next=3;break}return e.abrupt("return");case 3:if((n=Array.isArray(t))||!t[Symbol.iterator]){e.next=41;break}i=!(o=!(r=0)),a=void 0,e.prev=9,s=t[Symbol.iterator]();case 11:if(o=(u=s.next()).done){e.next=25;break}if(l=u.value,Array.isArray(l)&&2===l.length)return c=(0,C.default)(l,2),f=c[0],d=c[1],e.next=17,{name:f,data:d};e.next=19;break;case 17:e.next=21;break;case 19:return e.next=21,{name:r.toString(),data:l};case 21:r++;case 22:o=!0,e.next=11;break;case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(9),i=!0,a=e.t0;case 31:e.prev=31,e.prev=32,!o&&s.return&&s.return();case 34:if(e.prev=34,i)throw a;e.next=37;break;case 37:return e.finish(34);case 38:return e.finish(31);case 39:e.next=82;break;case 41:p=Object.getOwnPropertyNames(t),!0!==x||n?"function"==typeof x&&p.sort(x):p.sort(),m=!(h=!0),g=void 0,e.prev=46,y=p[Symbol.iterator]();case 48:if(h=(v=y.next()).done){e.next=65;break}if(b=v.value,t.propertyIsEnumerable(b))return w=t[b],e.next=54,{name:b||'""',data:w};e.next=56;break;case 54:e.next=62;break;case 56:if(!E){e.next=62;break}_=void 0;try{_=t[b]}catch(e){}if(void 0!==_)return e.next=62,{name:b,data:_,isNonenumerable:!0};e.next=62;break;case 62:h=!0,e.next=48;break;case 65:e.next=71;break;case 67:e.prev=67,e.t1=e.catch(46),m=!0,g=e.t1;case 71:e.prev=71,e.prev=72,!h&&y.return&&y.return();case 74:if(e.prev=74,m)throw g;e.next=77;break;case 77:return e.finish(74);case 78:return e.finish(71);case 79:if(E&&t!==Object.prototype)return e.next=82,{name:"__proto__",data:Object.getPrototypeOf(t),isNonenumerable:!0};e.next=82;break;case 82:case"end":return e.stop()}},e,this,[[9,27,31,39],[32,,34,38],[46,67,71,79],[72,,74,78]])})}(t,n),a=r||y;return c.default.createElement(m.default,{theme:this.props.theme},c.default.createElement(d.default,(0,s.default)({nodeRenderer:a,dataIterator:i},o)))}}]),t}(l.Component);v.defaultProps={showNonenumerable:!1,theme:"chromeLight"},v.propTypes={expandLevel:f.default.number,expandPaths:f.default.oneOfType([f.default.string,f.default.array]),name:f.default.string,data:f.default.any,theme:f.default.oneOfType([f.default.string,f.default.object]),showNonenumerable:f.default.bool,sortObjectKeys:f.default.oneOfType([f.default.bool,f.default.func]),nodeRenderer:f.default.func},t.default=v},function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&0<=Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime"),i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(2040),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(M,e){!function(e){"use strict";var u,t=Object.prototype,l=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag",a="object"==typeof M,s=e.regeneratorRuntime;if(s)a&&(M.exports=s);else{(s=e.regeneratorRuntime=a?M.exports:{}).wrap=b;var c="suspendedStart",f="suspendedYield",d="executing",p="completed",h={},m={};m[o]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(A([])));y&&y!==t&&l.call(y,o)&&(m=y);var v=x.prototype=_.prototype=Object.create(m);E.prototype=v.constructor=x,x.constructor=E,x[i]=E.displayName="GeneratorFunction",s.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},s.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(v),e},s.awrap=function(e){return{__await:e}},S(C.prototype),C.prototype[r]=function(){return this},s.AsyncIterator=C,s.async=function(e,t,n,r){var o=new C(b(e,t,n,r));return s.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},S(v),v[i]="Generator",v[o]=function(){return this},v.toString=function(){return"[object Generator]"},s.keys=function(n){var r=[];for(var e in n)r.push(e);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},s.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&l.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=u)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function e(e,t){return i.type="throw",i.arg=n,r.next=e,t&&(r.method="next",r.arg=u),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=l.call(o,"catchLoc"),s=l.call(o,"finallyLoc");if(a&&s){if(this.prevn&&(s=l.default.createElement("span",{key:"ellipsis"},"…")),o.push(l.default.createElement("span",{key:i},l.default.createElement(f.default,{name:i||'""'}),": ",l.default.createElement(c.default,{object:a}),s)),s)break}}return l.default.createElement("span",{style:d.preview},r.constructor.name+" {",p(o,", "),"}")};i.propTypes={maxProperties:r.default.number},i.defaultProps={maxProperties:5},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var m=l(n(350)),r=l(n(531)),o=l(n(532)),i=l(n(533)),a=l(n(534)),s=n(1),g=l(s),u=l(n(0)),y=l(n(1346)),v=l(n(429)),b=l(n(2055)),w=l(n(2061)),_=l(n(2062));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function n(e){(0,r.default)(this,n);var t=(0,i.default)(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state={sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1},t}return(0,a.default)(n,e),(0,o.default)(n,[{key:"handleIndexTHClick",value:function(){this.setState(function(e){var t=e.sortIndexColumn,n=e.sortAscending;return{sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:!t||!n}})}},{key:"handleTHClick",value:function(r){this.setState(function(e){var t=e.sortColumn,n=e.sortAscending;return{sorted:!0,sortIndexColumn:!1,sortColumn:r,sortAscending:r!==t||!n}})}},{key:"render",value:function(){var t=this.props.data,e=this.props.columns,n=this.props.theme,r=(0,v.default)("TableInspector",n);if("object"!==(void 0===t?"undefined":(0,m.default)(t))||null===t)return g.default.createElement("div",null);var o=(0,b.default)(t),i=o.rowHeaders,a=o.colHeaders;void 0!==e&&(a=e);var l,c,s=i.map(function(e){return t[e]}),u=this.state.sortIndexColumn,f=this.state.sortColumn,d=this.state.sortAscending,p=void 0;if(void 0!==f?p=s.map(function(e,t){return"object"!==(void 0===e?"undefined":(0,m.default)(e))||null===e?[void 0,t]:[e[f],t]}):u&&(p=i.map(function(e,t){return[i[t],t]})),void 0!==p){var h=p.sort((l=function(e){return e[0]},c=d,function(e,t){var n=l(e),r=l(t),o=void 0===n?"undefined":(0,m.default)(n),i=void 0===r?"undefined":(0,m.default)(r),a=function(e,t){return e")},f=function(e){var t=e.tagName,n=e.isChildNode,r=void 0!==n&&n,o=e.styles;return s.default.createElement("span",{style:Object.assign({},o.base,r&&o.offsetLeft)},"",s.default.createElement("span",{style:o.tagName},t),">")},d={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},i=function(e,t){var n=e.isCloseTag,r=e.data,o=e.expanded,i=t.theme,a=(0,u.default)("DOMNodePreview",i);if(n)return s.default.createElement(f,{styles:a.htmlCloseTag,isChildNode:!0,tagName:r.tagName});switch(r.nodeType){case Node.ELEMENT_NODE:return s.default.createElement("span",null,s.default.createElement(c,{tagName:r.tagName,attributes:r.attributes,styles:a.htmlOpenTag}),(0,l.default)(r)?r.textContent:!o&&"…",!o&&s.default.createElement(f,{tagName:r.tagName,styles:a.htmlCloseTag}));case Node.TEXT_NODE:return s.default.createElement("span",null,r.textContent);case Node.CDATA_SECTION_NODE:return s.default.createElement("span",null,"");case Node.COMMENT_NODE:return s.default.createElement("span",{style:a.htmlComment},"\x3c!--",r.textContent,"--\x3e");case Node.PROCESSING_INSTRUCTION_NODE:return s.default.createElement("span",null,r.nodeName);case Node.DOCUMENT_TYPE_NODE:return s.default.createElement("span",{style:a.htmlDoctype},"");case Node.DOCUMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:return s.default.createElement("span",null,r.nodeName);default:return s.default.createElement("span",null,d[r.nodeType])}};i.propTypes={isCloseTag:r.default.bool,name:r.default.string,data:r.default.object.isRequired,expanded:r.default.bool.isRequired},i.contextTypes={theme:r.default.oneOfType([r.default.string,r.default.object]).isRequired},t.default=i},function(e,t){e.exports=function(e){return!(!e||"object"!=typeof e)&&("object"==typeof window&&"object"==typeof window.Node?e instanceof window.Node:"number"==typeof e.nodeType&&"string"==typeof e.nodeName)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=f(n(0)),a=f(n(1)),s=n(7),u=f(n(3)),l=n(322),c=f(n(60));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(0,s.connect)(function(e){return{isAttached:l.selectors.isAttached(e),isPaused:l.selectors.isPaused(e),isEditWhileRun:l.selectors.isEditWhileRun(e),canRunNext:l.selectors.canRunNext(e)}},{stepIn:l.actions.stepIn,stepOver:l.actions.stepOver,stepOut:l.actions.stepOut,togglePause:l.actions.togglePause})((o=r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=v-b,S=Math.floor,C=String.fromCharCode;function O(e){throw new RangeError(f[e])}function p(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function h(e,t){var n=e.split("@"),r="";return 1>>10&1023|55296),e=56320|1023&e),t+=C(e)}).join("")}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?S(e/s):e>>1,e+=S(e/t);d*w>>1S((y-h)/a))&&O("overflow"),h+=u*a,!(u<(l=s<=g?b:g+w<=s?w:s-g));s+=v)a>S(y/(c=v-l))&&O("overflow"),a*=c;g=A(h-i,t=d.length+1,0==i),S(h/t)>y-m&&O("overflow"),m+=S(h/t),h%=t,d.splice(h++,0,m)}return k(d)}function g(e){var t,n,r,o,i,a,s,u,l,c,f,d,p,h,m,g=[];for(d=(e=T(e)).length,t=E,i=_,a=n=0;aS((y-n)/(p=r+1))&&O("overflow"),n+=(s-t)*p,t=s,a=0;ay&&O("overflow"),f==t){for(u=n,l=v;!(u<(c=l<=i?b:i+w<=l?w:l-i));l+=v)m=u-c,h=v-c,g.push(C(P(c+m%h,0))),u=S(m/h);g.push(C(P(u,0))),i=A(n,p,r==o),n=0,++r}++n,++t}return g.join("")}if(o={version:"1.3.2",ucs2:{decode:T,encode:k},decode:m,encode:g,toASCII:function(e){return h(e,function(e){return l.test(e)?"xn--"+g(e):e})},toUnicode:function(e){return h(e,function(e){return u.test(e)?m(e.slice(4).toLowerCase()):e})}},t&&n)if(M.exports==t)n.exports=o;else for(i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);else e.punycode=o}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){var o=e("./log");function l(e,t){for(var n=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),r=e.firstChild;r;)!0!==t&&1===r.nodeType&&"SCRIPT"===r.nodeName||n.appendChild(l(r,t)),r=r.nextSibling;return 1===e.nodeType&&(n._scrollTop=e.scrollTop,n._scrollLeft=e.scrollLeft,"CANVAS"===e.nodeName?function(t,e){try{e&&(e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t.getContext("2d").getImageData(0,0,t.width,t.height),0,0))}catch(e){o("Unable to copy canvas content from",t,e)}}(e,n):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(n.value=e.value)),n}t.exports=function(e,t,n,r,o,i,a){var s=l(e.documentElement,o.javascriptEnabled),u=t.createElement("iframe");return u.className="html2canvas-container",u.style.visibility="hidden",u.style.position="fixed",u.style.left="-10000px",u.style.top="0px",u.style.border="0",u.width=n,u.height=r,u.scrolling="no",t.body.appendChild(u),new Promise(function(t){var n=u.contentWindow.document;u.contentWindow.onload=u.onload=function(){var e=setInterval(function(){0"),function(e,t,n){!e.defaultView||t===e.defaultView.pageXOffset&&n===e.defaultView.pageYOffset||e.defaultView.scrollTo(t,n)}(e,i,a),n.replaceChild(n.adoptNode(s),n.documentElement),n.close()})}},{"./log":13}],3:[function(e,t,n){function r(e){this.r=0,this.g=0,this.b=0,this.a=null;this.fromArray(e)||this.namedColor(e)||this.rgb(e)||this.rgba(e)||this.hex6(e)||this.hex3(e)}r.prototype.darken=function(e){var t=1-e;return new r([Math.round(this.r*t),Math.round(this.g*t),Math.round(this.b*t),this.a])},r.prototype.isTransparent=function(){return 0===this.a},r.prototype.isBlack=function(){return 0===this.r&&0===this.g&&0===this.b},r.prototype.fromArray=function(e){return Array.isArray(e)&&(this.r=Math.min(e[0],255),this.g=Math.min(e[1],255),this.b=Math.min(e[2],255),3Date.now()?this.asyncRenderer(e,t,n):setTimeout(m(function(){this.asyncRenderer(e,t)},this),0)},o.prototype.createPseudoHideStyles=function(e){this.createStyles(e,"."+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')},o.prototype.disableAnimations=function(e){this.createStyles(e,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")},o.prototype.createStyles=function(e,t){var n=e.createElement("style");n.innerHTML=t,e.body.appendChild(n)},o.prototype.getPseudoElements=function(e){var t=[[e]];if(e.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(e,":before"),r=this.getPseudoElement(e,":after");n&&t.push(n),r&&t.push(r)}return z(t)},o.prototype.getPseudoElement=function(e,t){var n=e.computedStyle(t);if(!n||!n.content||"none"===n.content||"-moz-alt-content"===n.content||"none"===n.display)return null;for(var r=function(e){var t=e.substr(0,1);return t===e.substr(e.length-1)&&t.match(/'|"/)?e.substr(1,e.length-2):e}(n.content),o="url"===r.substr(0,3),i=document.createElement(o?"img":"html2canvaspseudoelement"),a=new f(i,e,t),s=n.length-1;0<=s;s--){var u=n.item(s).replace(/(\-[a-z])/g,function(e){return e.toUpperCase().replace("-","")});i.style[u]=n[u]}if(i.className=f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,o)return i.src=g(r)[0].args[0],[a];var l=document.createTextNode(r);return i.appendChild(l),[a,new c(l,a)]},o.prototype.getChildren=function(n){return z([].filter.call(n.node.childNodes,M).map(function(e){var t=[e.nodeType===Node.TEXT_NODE?new c(e,n):new l(e,n)].filter(U);return e.nodeType===Node.ELEMENT_NODE&&t.length&&"TEXTAREA"!==e.tagName?t[0].isElementVisible()?t.concat(this.getChildren(t[0])):[]:t},this))},o.prototype.newStackingContext=function(e,t){var n=new h(t,e.getOpacity(),e.node,e.parent);e.cloneTo(n),(t?n.getParentStack(this):n.parent.stack).contexts.push(n),e.stack=n},o.prototype.createStackingContexts=function(){this.nodes.forEach(function(e){D(e)&&(this.isRootElement(e)||function(e){return e.getOpacity()<1}(e)||function(e){var t=e.css("position");return"auto"!==(-1!==["absolute","relative","fixed"].indexOf(t)?e.css("zIndex"):"auto")}(e)||this.isBodyWithTransparentRoot(e)||e.hasTransform())?this.newStackingContext(e,!0):D(e)&&(N(e)&&k(e)||function(e){return-1!==["inline-block","inline-table"].indexOf(e.css("display"))}(e)||I(e))?this.newStackingContext(e,!1):e.assignStack(e.parent.stack)},this)},o.prototype.isBodyWithTransparentRoot=function(e){return"BODY"===e.node.nodeName&&e.parent.color("backgroundColor").isTransparent()},o.prototype.isRootElement=function(e){return null===e.parent},o.prototype.sortStackingContexts=function(e){e.contexts.sort(function(n){return function(e,t){return e.cssInt("zIndex")+n.indexOf(e)/n.length-(t.cssInt("zIndex")+n.indexOf(t)/n.length)}}(e.contexts.slice(0))),e.contexts.forEach(this.sortStackingContexts,this)},o.prototype.parseTextBounds=function(a){return function(e,t,n){if("none"!==a.parent.css("textDecoration").substr(0,4)||0!==e.trim().length){if(this.support.rangeBounds&&!a.parent.hasTransform()){var r=n.slice(0,t).join("").length;return this.getRangeBounds(a.node,r,e.length)}if(a.node&&"string"==typeof a.node.data){var o=a.node.splitText(e.length),i=this.getWrapperBounds(a.node,a.parent.hasTransform());return a.node=o,i}}else this.support.rangeBounds&&!a.parent.hasTransform()||(a.node=a.node.splitText(e.length));return{}}},o.prototype.getWrapperBounds=function(e,t){var n=e.ownerDocument.createElement("html2canvaswrapper"),r=e.parentNode,o=e.cloneNode(!0);n.appendChild(e.cloneNode(!0)),r.replaceChild(n,e);var i=t?y(n):a(n);return r.replaceChild(o,n),i},o.prototype.getRangeBounds=function(e,t,n){var r=this.range||(this.range=e.ownerDocument.createRange());return r.setStart(e,t),r.setEnd(e,t+n),r.getBoundingClientRect()},o.prototype.parse=function(e){var t=e.contexts.filter(O),n=e.children.filter(D),r=n.filter(j(I)),o=r.filter(j(N)).filter(j(P)),i=n.filter(j(N)).filter(I),a=r.filter(j(N)).filter(P),s=e.contexts.concat(r.filter(N)).filter(k),u=e.children.filter(B).filter(R),l=e.contexts.filter(T);t.concat(o).concat(i).concat(a).concat(s).concat(u).concat(l).forEach(function(e){this.renderQueue.push(e),A(e)&&(this.parse(e),this.renderQueue.push(new v))},this)},o.prototype.paint=function(e){try{e instanceof v?this.renderer.ctx.restore():B(e)?(L(e.parent)&&e.parent.appendToDOM(),this.paintText(e),L(e.parent)&&e.parent.cleanDOM()):this.paintNode(e)}catch(e){if(s(e),this.options.strict)throw e}},o.prototype.paintNode=function(e){A(e)&&(this.renderer.setOpacity(e.opacity),this.renderer.ctx.save(),e.hasTransform()&&this.renderer.setTransform(e.parseTransform())),"INPUT"===e.node.nodeName&&"checkbox"===e.node.type?this.paintCheckbox(e):"INPUT"===e.node.nodeName&&"radio"===e.node.type?this.paintRadio(e):this.paintElement(e)},o.prototype.paintElement=function(n){var r=n.parseBounds();this.renderer.clip(n.backgroundClip,function(){this.renderer.renderBackground(n,r,n.borders.borders.map(H))},this),this.renderer.clip(n.clip,function(){this.renderer.renderBorders(n.borders.borders)},this),this.renderer.clip(n.backgroundClip,function(){switch(n.node.nodeName){case"svg":case"IFRAME":var e=this.images.get(n.node);e?this.renderer.renderImage(n,r,n.borders,e):s("Error loading <"+n.node.nodeName+">",n.node);break;case"IMG":var t=this.images.get(n.node.src);t?this.renderer.renderImage(n,r,n.borders,t):s("Error loading ",n.node.src);break;case"CANVAS":this.renderer.renderImage(n,r,n.borders,{image:n.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(n)}},this)},o.prototype.paintCheckbox=function(e){var t=e.parseBounds(),n=Math.min(t.width,t.height),r={width:n-1,height:n-1,top:t.top,left:t.left},o=[3,3],i=[o,o,o,o],a=[1,1,1,1].map(function(e){return{color:new p("#A5A5A5"),width:e}}),s=E(r,i,a);this.renderer.clip(e.backgroundClip,function(){this.renderer.rectangle(r.left+1,r.top+1,r.width-2,r.height-2,new p("#DEDEDE")),this.renderer.renderBorders(w(a,r,s,i)),e.node.checked&&(this.renderer.font(new p("#424242"),"normal","normal","bold",n-3+"px","arial"),this.renderer.text("✔",r.left+n/6,r.top+n-1))},this)},o.prototype.paintRadio=function(e){var t=e.parseBounds(),n=Math.min(t.width,t.height)-2;this.renderer.clip(e.backgroundClip,function(){this.renderer.circleStroke(t.left+1,t.top+1,n,new p("#DEDEDE"),1,new p("#A5A5A5")),e.node.checked&&this.renderer.circle(Math.ceil(t.left+n/4)+1,Math.ceil(t.top+n/4)+1,Math.floor(n/2),new p("#424242"))},this)},o.prototype.paintFormValue=function(t){var e=t.getValue();if(0=e.length&&(t=e.splice(0,r)).length&&n.push(u.ucs2.encode(t));var i;return n}(e),t=n.parent.fontWeight(),o=n.parent.css("fontSize"),i=n.parent.css("fontFamily"),a=n.parent.parseTextShadows();this.renderer.font(n.parent.color("color"),n.parent.css("fontStyle"),n.parent.css("fontVariant"),t,o,i),a.length?this.renderer.fontShadow(a[0].color,a[0].offsetX,a[0].offsetY,a[0].blur):this.renderer.clearShadow(),this.renderer.clip(n.parent.clip,function(){r.map(this.parseTextBounds(n),this).forEach(function(e,t){e&&(this.renderer.text(r[t],e.left,e.bottom),this.renderTextDecoration(n.parent,e,this.fontMetrics.getMetrics(i,o)))},this)},this)},o.prototype.renderTextDecoration=function(e,t,n){switch(e.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(t.left,Math.round(t.top+n.baseline+n.lineWidth),t.width,1,e.color("color"));break;case"overline":this.renderer.rectangle(t.left,Math.round(t.top),t.width,1,e.color("color"));break;case"line-through":this.renderer.rectangle(t.left,Math.ceil(t.top+n.middle+n.lineWidth),t.width,1,e.color("color"))}};var b={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};function w(a,s,u,l){return a.map(function(e,t){if(0i+n[3].width?0:l-n[3].width,c-n[0].width).topRight.subdivide(.5),bottomRightOuter:_(r+y,o+g,f,d).bottomRight.subdivide(.5),bottomRightInner:_(r+Math.min(y,i-n[3].width),o+Math.min(g,a+n[0].width),Math.max(0,f-n[1].width),d-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:_(r,o+v,p,h).bottomLeft.subdivide(.5),bottomLeftInner:_(r+n[3].width,o+v,Math.max(0,p-n[3].width),h-n[2].width).bottomLeft.subdivide(.5)}}function x(s,u,l,c){var f=function(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}};return{start:s,startControl:u,endControl:l,end:c,subdivide:function(e){var t=f(s,u,e),n=f(u,l,e),r=f(l,c,e),o=f(t,n,e),i=f(n,r,e),a=f(o,i,e);return[x(s,t,o,a),x(a,i,r,c)]},curveTo:function(e){e.push(["bezierCurve",u.x,u.y,l.x,l.y,c.x,c.y])},curveToReversed:function(e){e.push(["bezierCurve",l.x,l.y,u.x,u.y,s.x,s.y])}}}function S(e,t,n,r,o,i,a){var s=[];return 0";try{n.drawImage(e,0,0),t.toDataURL()}catch(e){return!1}return!0},t.exports=r},{}],23:[function(e,t,n){var r=e("./xhr"),o=e("./utils").decode64;function i(e){this.src=e,this.image=null;var n=this;this.promise=this.hasFabric().then(function(){return n.isInline(e)?Promise.resolve(n.inlineFormatting(e)):r(e)}).then(function(t){return new Promise(function(e){window.html2canvas.svg.fabric.loadSVGFromString(t,n.createCanvas.call(n,e))})})}i.prototype.hasFabric=function(){return window.html2canvas.svg&&window.html2canvas.svg.fabric?Promise.resolve():Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg"))},i.prototype.inlineFormatting=function(e){return/^data:image\/svg\+xml;base64,/.test(e)?this.decode64(this.removeContentType(e)):this.removeContentType(e)},i.prototype.removeContentType=function(e){return e.replace(/^data:image\/svg\+xml(;base64)?,/,"")},i.prototype.isInline=function(e){return/^data:image\/svg\+xml/i.test(e)},i.prototype.createCanvas=function(r){var o=this;return function(e,t){var n=new window.html2canvas.svg.fabric.StaticCanvas("c");o.image=n.lowerCanvasEl,n.setWidth(t.width).setHeight(t.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(e,t)).renderAll(),r(n.lowerCanvasEl)}},i.prototype.decode64=function(e){return"function"==typeof window.atob?window.atob(e):o(e)},t.exports=i},{"./utils":26,"./xhr":28}],24:[function(e,t,n){var r=e("./svgcontainer");function o(n,e){this.src=n,this.image=null;var r=this;this.promise=e?new Promise(function(e,t){r.image=new Image,r.image.onload=e,r.image.onerror=t,r.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(n),!0===r.image.complete&&e(r.image)}):this.hasFabric().then(function(){return new Promise(function(e){window.html2canvas.svg.fabric.parseSVGDocument(n,r.createCanvas.call(r,e))})})}o.prototype=Object.create(r.prototype),t.exports=o},{"./svgcontainer":23}],25:[function(e,t,n){var r=e("./nodecontainer");function o(e,t){r.call(this,e,t)}function i(e,t,n){if(0>4,a=(15&n)<<4|(r=u.indexOf(e[t+2]))>>2,s=(3&r)<<6|(o=u.indexOf(e[t+3])),c+=64===r?String.fromCharCode(i):64===o||-1===o?String.fromCharCode(i,a):String.fromCharCode(i,a,s);return c},n.getBounds=function(e){if(e.getBoundingClientRect){var t=e.getBoundingClientRect(),n=null==e.offsetWidth?t.width:e.offsetWidth;return{top:t.top,bottom:t.bottom||t.top+t.height,right:t.left+n,left:t.left,width:n,height:null==e.offsetHeight?t.height:e.offsetHeight}}return{}},n.offsetBounds=function(e){var t=e.offsetParent?n.offsetBounds(e.offsetParent):{top:0,left:0};return{top:e.offsetTop+t.top,bottom:e.offsetTop+e.offsetHeight+t.top,right:e.offsetLeft+t.left+e.offsetWidth,left:e.offsetLeft+t.left,width:e.offsetWidth,height:e.offsetHeight}},n.parseBackgrounds=function(e){var t,n,r,o,i,a,s,u=[],l=0,c=0,f=function(){t&&('"'===n.substr(0,1)&&(n=n.substr(1,n.length-2)),n&&s.push(n),"-"===t.substr(0,1)&&0<(o=t.indexOf("-",1)+1)&&(r=t.substr(0,o),t=t.substr(o)),u.push({prefix:r,method:t.toLowerCase(),value:i,args:s,image:null})),s=[],t=r=n=i=""};return s=[],t=r=n=i="",e.split("").forEach(function(e){if(!(0===l&&-1<" \r\n\t".indexOf(e))){switch(e){case'"':a?a===e&&(a=null):a=e;break;case"(":if(a)break;if(0===l)return l=1,void(i+=e);c++;break;case")":if(a)break;if(1===l){if(0===c)return l=0,i+=e,void f();c--}break;case",":if(a)break;if(0===l)return void f();if(1===l&&0===c&&!t.match(/^url$/i))return s.push(n),n="",void(i+=e)}i+=e,0===l?t+=e:n+=e}}),f(),u}},{}],27:[function(e,t,n){var r=e("./gradientcontainer");function o(e){r.apply(this,arguments),this.type="linear"===e.args[0]?r.TYPES.LINEAR:r.TYPES.RADIAL}o.prototype=Object.create(r.prototype),t.exports=o},{"./gradientcontainer":9}],28:[function(e,t,n){t.exports=function(r){return new Promise(function(e,t){var n=new XMLHttpRequest;n.open("GET",r),n.onload=function(){200===n.status?e(n.responseText):t(new Error(n.statusText))},n.onerror=function(){t(new Error("Network Error"))},n.send()})}},{}]},{},[4])(4)})},function(e,t,n){!function(e){var g={not_string:/[^s]/,number:/[diefg]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};function y(){var e=arguments[0],t=y.cache;return t[e]&&t.hasOwnProperty(e)||(t[e]=y.parse(e)),y.format.call(null,t[e],arguments)}y.format=function(e,t){var n,r,o,i,a,s,u,l,c=1,f=e.length,d="",p=[],h=!0,m="";for(r=0;r>>=0;break;case"x":n=n.toString(16);break;case"X":n=n.toString(16).toUpperCase()}g.json.test(i[8])?p[p.length]=n:(!g.number.test(i[8])||h&&!i[3]?m="":(m=h?"+":"-",n=n.toString().replace(g.sign,"")),s=i[4]?"0"===i[4]?"0":i[4].charAt(1):" ",u=i[6]-(m+n).length,a=i[6]&&0e.avail_out&&(n=e.avail_out),0!==n&&(d.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function D(e,t){l._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,j(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function B(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function F(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-C?e.strstart-(e.w_size-C):0,l=e.window,c=e.w_mask,f=e.prev,d=e.strstart+S,p=l[i+a-1],h=l[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+a]===h&&l[n+a-1]===p&&l[n]===l[i]&&l[++n]===l[i+1]){i+=2,n++;do{}while(l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&iu&&0!=--o);return a<=e.lookahead?a:e.lookahead}function H(e){var t,n,r,o,i,a,s,u,l,c,f=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-C)){for(d.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=n=e.hash_size;r=e.head[--t],e.head[t]=f<=r?r-f:0,--n;);for(t=n=f;r=e.prev[--t],e.prev[t]=f<=r?r-f:0,--n;);o+=f}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,u=e.strstart+e.lookahead,l=o,c=void 0,c=a.avail_in,l=x)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x)if(r=l._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x&&e.match_length<=e.prev_length){for(o=e.strstart+e.lookahead-x,r=l._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=o&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(H(e),0===e.lookahead&&t===c)return k;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,D(e,!1),0===e.strm.avail_out))return k;if(e.strstart-e.block_start>=e.w_size-C&&(D(e,!1),0===e.strm.avail_out))return k}return e.insert=0,t===f?(D(e,!0),0===e.strm.avail_out?A:R):(e.strstart>e.block_start&&(D(e,!1),e.strm.avail_out),k)}),new W(4,4,8,4,U),new W(4,5,16,8,U),new W(4,6,32,32,U),new W(4,4,16,16,z),new W(8,16,32,32,z),new W(8,16,128,128,z),new W(8,32,128,256,z),new W(32,128,258,1024,z),new W(32,258,258,4096,z)],t.deflateInit=function(e,t){return K(e,t,b,15,8,0)},t.deflateInit2=K,t.deflateReset=G,t.deflateResetKeep=q,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?g:(e.state.gzhead=t,m):g},t.deflate=function(e,t){var n,r,o,i;if(!e||!e.state||5>8&255),L(r,r.gzhead.time>>16&255),L(r,r.gzhead.time>>24&255),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(L(r,255&r.gzhead.extra.length),L(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=h(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(L(r,0),L(r,0),L(r,0),L(r,0),L(r,0),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,3),r.status=T);else{var a=b+(r.w_bits-8<<4)<<8;a|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=T,B(r,a),0!==r.strstart&&(B(r,e.adler>>>16),B(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),j(e),o=r.pending,r.pending!==r.pending_buf_size));)L(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),j(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindexo&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),0===i&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),j(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindexo&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),0===i&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&j(e),r.pending+2<=r.pending_buf_size&&(L(r,255&e.adler),L(r,e.adler>>8&255),e.adler=0,r.status=T)):r.status=T),0!==r.pending){if(j(e),0===e.avail_out)return r.last_flush=-1,m}else if(0===e.avail_in&&N(t)<=N(n)&&t!==f)return M(e,-5);if(666===r.status&&0!==e.avail_in)return M(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==c&&666!==r.status){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(H(e),0===e.lookahead)){if(t===c)return k;break}if(e.match_length=0,n=l._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(D(e,!1),0===e.strm.avail_out))return k}return e.insert=0,t===f?(D(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(D(e,!1),0===e.strm.avail_out)?k:P}(r,t):3===r.strategy?function(e,t){for(var n,r,o,i,a=e.window;;){if(e.lookahead<=S){if(H(e),e.lookahead<=S&&t===c)return k;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(n=l._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=l._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(D(e,!1),0===e.strm.avail_out))return k}return e.insert=0,t===f?(D(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(D(e,!1),0===e.strm.avail_out)?k:P}(r,t):u[r.level].func(r,t);if(s!==A&&s!==R||(r.status=666),s===k||s===A)return 0===e.avail_out&&(r.last_flush=-1),m;if(s===P&&(1===t?l._tr_align(r):5!==t&&(l._tr_stored_block(r,0,0,!1),3===t&&(I(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),j(e),0===e.avail_out))return r.last_flush=-1,m}return t!==f?m:r.wrap<=0?1:(2===r.wrap?(L(r,255&e.adler),L(r,e.adler>>8&255),L(r,e.adler>>16&255),L(r,e.adler>>24&255),L(r,255&e.total_in),L(r,e.total_in>>8&255),L(r,e.total_in>>16&255),L(r,e.total_in>>24&255)):(B(r,e.adler>>>16),B(r,65535&e.adler)),j(e),0=n.w_size&&(0===i&&(I(n.head),n.strstart=0,n.block_start=0,n.insert=0),l=new d.Buf8(n.w_size),d.arraySet(l,t,c-n.w_size,n.w_size,0),t=l,c=n.w_size),a=e.avail_in,s=e.next_in,u=e.input,e.avail_in=c,e.next_in=0,e.input=t,H(n);n.lookahead>=x;){for(r=n.strstart,o=n.lookahead-(x-1);n.ins_h=(n.ins_h<>>7)]}function L(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function B(e,t,n){e.bi_valid>p-n?(e.bi_buf|=t<>p-e.bi_valid,e.bi_valid+=n-p):(e.bi_buf|=t<>>=1,n<<=1,0<--t;);return n>>>1}function U(e,t,n){var r,o,i=new Array(y+1),a=0;for(r=1;r<=y;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=H(i[s]++,s))}}function z(e){var t;for(t=0;t>1;1<=n;n--)q(e,i,n);for(o=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],q(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,q(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,m=0;for(i=0;i<=y;i++)e.bl_count[i]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n>=7;r>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return s;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return u;for(t=32;t>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==t?J(e,t,n,r):4===e.strategy||i===o?(B(e,2+(r?1:0),3),G(e,C,O)):(B(e,4+(r?1:0),3),function(e,t,n,r){var o;for(B(e,t-257,5),B(e,n-1,5),B(e,r-4,4),o=0;o>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(k[n]+l+1)]++,e.dyn_dtree[2*D(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){B(e,2,3),F(e,m,C),function(e){16===e.bi_valid?(L(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,n){"use strict";var d=n(2086),p=n(452),h=n(1511),m=n(1513),r=n(1349),o=n(1512),i=n(2089),g=Object.prototype.toString;function a(e){if(!(this instanceof a))return new a(e);this.options=p.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new P.Buf16(320),this.work=new P.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=B,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new P.Buf32(r),t.distcode=t.distdyn=new P.Buf32(o),t.sane=1,t.back=-1,D):L}function s(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,a(e)):L}function u(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=i.wsize?(P.arraySet(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(r<(o=i.wsize-i.wnext)&&(o=r),P.arraySet(i.window,t,n-r,o,i.wnext),(r-=o)?(P.arraySet(i.window,t,n-r,r,0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,n.check=R(n.check,T,2,0),c=l=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&l)){e.msg="unknown compression method",n.mode=30;break}if(c-=4,E=8+(15&(l>>>=4)),0===n.wbits)n.wbits=E;else if(E>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(T[0]=255&l,T[1]=l>>>8&255,n.check=R(n.check,T,2,0)),c=l=0,n.mode=3;case 3:for(;c<32;){if(0===s)break e;s--,l+=r[i++]<>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=R(n.check,T,4,0)),c=l=0,n.mode=4;case 4:for(;c<16;){if(0===s)break e;s--,l+=r[i++]<>8),512&n.flags&&(T[0]=255&l,T[1]=l>>>8&255,n.check=R(n.check,T,2,0)),c=l=0,n.mode=5;case 5:if(1024&n.flags){for(;c<16;){if(0===s)break e;s--,l+=r[i++]<>>8&255,n.check=R(n.check,T,2,0)),c=l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(s<(p=n.length)&&(p=s),p&&(n.head&&(E=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),P.arraySet(n.head.extra,r,i,p,E)),512&n.flags&&(n.check=R(n.check,r,p,i)),s-=p,i+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;for(p=0;E=r[i+p++],n.head&&E&&n.length<65536&&(n.head.name+=String.fromCharCode(E)),E&&p>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;c<32;){if(0===s)break e;s--,l+=r[i++]<>>=7&c,c-=7&c,n.mode=27;break}for(;c<3;){if(0===s)break e;s--,l+=r[i++]<>>=1)){case 0:n.mode=14;break;case 1:if(H(n),n.mode=20,6!==t)break;l>>>=2,c-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}l>>>=2,c-=2;break;case 14:for(l>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,l+=r[i++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&l,c=l=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(p=n.length){if(s>>=5,c-=5,n.ndist=1+(31&l),l>>>=5,c-=5,n.ncode=4+(15&l),l>>>=4,c-=4,286>>=3,c-=3}for(;n.have<19;)n.lens[k[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},x=N(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,x){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,v=65535&O,!((g=O>>>24)<=c);){if(0===s)break e;s--,l+=r[i++]<>>=g,c-=g,n.lens[n.have++]=v;else{if(16===v){for(C=g+2;c>>=g,c-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}E=n.lens[n.have-1],p=3+(3&l),l>>>=2,c-=2}else if(17===v){for(C=g+3;c>>=g)),l>>>=3,c-=3}else{for(C=g+7;c>>=g)),l>>>=7,c-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;p--;)n.lens[n.have++]=E}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,S={bits:n.lenbits},x=N(I,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,x){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},x=N(j,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,x){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=s&&258<=u){e.next_out=a,e.avail_out=u,e.next_in=i,e.avail_in=s,n.hold=l,n.bits=c,M(e,d),a=e.next_out,o=e.output,u=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,l=n.hold,c=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;y=(O=n.lencode[l&(1<>>16&255,v=65535&O,!((g=O>>>24)<=c);){if(0===s)break e;s--,l+=r[i++]<>b)])>>>16&255,v=65535&O,!(b+(g=O>>>24)<=c);){if(0===s)break e;s--,l+=r[i++]<>>=b,c-=b,n.back+=b}if(l>>>=g,c-=g,n.back+=g,n.length=v,0===y){n.mode=26;break}if(32&y){n.back=-1,n.mode=12;break}if(64&y){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&y,n.mode=22;case 22:if(n.extra){for(C=n.extra;c>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;y=(O=n.distcode[l&(1<>>16&255,v=65535&O,!((g=O>>>24)<=c);){if(0===s)break e;s--,l+=r[i++]<>b)])>>>16&255,v=65535&O,!(b+(g=O>>>24)<=c);){if(0===s)break e;s--,l+=r[i++]<>>=b,c-=b,n.back+=b}if(l>>>=g,c-=g,n.back+=g,64&y){e.msg="invalid distance code",n.mode=30;break}n.offset=v,n.extra=15&y,n.mode=24;case 24:if(n.extra){for(C=n.extra;c>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===u)break e;if(p=d-u,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}h=p>n.wnext?(p-=n.wnext,n.wsize-p):n.wnext-p,p>n.length&&(p=n.length),m=n.window}else m=o,h=a-n.offset,p=n.length;for(u>>=w=b>>>24,h-=w,0===(w=b>>>16&255))O[i++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(p&(1<>>=w,h-=w),h<15&&(p+=C[r++]<>>=w=b>>>24,h-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=g[(65535&b)+(p&(1<>>=w,h-=w,(w=i-a)>3,p&=(1<<(h-=_<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=rp?(m=M[N+a[b]],k[P+a[b]]):(m=96,0),u=1<>S)+(l-=u)]=h<<24|m<<16|g|0,0!==l;);for(u=1<>=1;if(0!==u?(T&=u-1,T+=u):T=0,b++,0==--A[v]){if(v===_)break;v=t[n+a[b]]}if(E>>=8;return r},r=function(e,t,n,r,o,i){var a,s,u=e.file,l=e.compression,c=i!==P.utf8encode,f=k.transformTo("string",i(u.name)),d=k.transformTo("string",P.utf8encode(u.name)),p=u.comment,h=k.transformTo("string",i(p)),m=k.transformTo("string",P.utf8encode(p)),g=d.length!==u.name.length,y=m.length!==p.length,v="",b="",w="",_=u.dir,E=u.date,x={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(x.crc32=e.crc32,x.compressedSize=e.compressedSize,x.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),c||!g&&!y||(S|=2048);var C=0,O=0;_&&(C|=16),"UNIX"===o?(O=798,C|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(u.unixPermissions,_)):(O=20,C|=function(e,t){return 63&(e||0)}(u.dosPermissions)),a=E.getUTCHours(),a<<=6,a|=E.getUTCMinutes(),a<<=5,a|=E.getUTCSeconds()/2,s=E.getUTCFullYear()-1980,s<<=4,s|=E.getUTCMonth()+1,s<<=5,s|=E.getUTCDate(),g&&(b=M(1,1)+M(A(f),4)+d,v+="up"+M(b.length,2)+b),y&&(w=M(1,1)+M(A(h),4)+m,v+="uc"+M(w.length,2)+w);var T="";return T+="\n\0",T+=M(S,2),T+=l.magic,T+=M(a,2),T+=M(s,2),T+=M(x.crc32,4),T+=M(x.compressedSize,4),T+=M(x.uncompressedSize,4),T+=M(f.length,2),T+=M(v.length,2),{fileRecord:R.LOCAL_FILE_HEADER+T+f+v,dirRecord:R.CENTRAL_FILE_HEADER+M(O,2)+T+M(h.length,2)+"\0\0\0\0"+M(C,4)+M(r,4)+f+v+h}};function i(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}k.inherits(i,o),i.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},i.prototype.openedSource=function(e){if(this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name,this.streamFiles&&!e.file.dir){var t=r(e,this.streamFiles,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:t.fileRecord,meta:{percent:0}})}else this.accumulate=!0},i.prototype.closedSource=function(e){this.accumulate=!1;var t=r(e,this.streamFiles,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(t.dirRecord),this.streamFiles&&!e.file.dir)this.push({data:function(e){return R.DATA_DESCRIPTOR+M(e.crc32,4)+M(e.compressedSize,4)+M(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:t.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},i.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(1542),o=n(995),i=n(1005),a={};n(549)(a,n(211)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var a=n(454),s=n(352),u=n(870);e.exports=n(455)?Object.defineProperties:function(e,t){s(e);for(var n,r=u(t),o=r.length,i=0;io;)a(F,t=n[o++])||t==j||t==u||r.push(t);return r},Q=function(e){for(var t,n=e===U,r=A(n?H:w(e)),o=[],i=0;r.length>i;)!a(F,t=r[i++])||n&&!a(U,t)||o.push(F[t]);return o};z||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=d(0te;)p(ee[te++]);for(var ne=T(p.store),re=0;ne.length>re;)m(ne[re++]);i(i.S+i.F*!z,"Symbol",{for:function(e){return a(B,e+="")?B[e]:B[e]=R(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!z,"Object",{create:function(e,t){return void 0===t?x(e):Y(x(e),t)},defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:Q}),M&&i(i.S+i.F*(!z||l(function(){var e=R();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,N.apply(M,r)}}),R[I][D]||n(549)(R[I],D,R[I].valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(996)("meta"),o=n(550),i=n(551),a=n(454).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(756)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return l&&f.NEED&&u(e)&&!i(e,r)&&c(e),e}}},function(e,t,n){var s=n(870),u=n(1380),l=n(1006);e.exports=function(e){var t=s(e),n=u.f;if(n)for(var r,o=n(e),i=l.f,a=0;o.length>a;)i.call(e,r=o[a++])&&t.push(r);return t}},function(e,t,n){var r=n(871);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(757),o=n(1546).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(1006),o=n(995),i=n(757),a=n(1351),s=n(551),u=n(1519),l=Object.getOwnPropertyDescriptor;t.f=n(455)?l:function(e,t){if(e=i(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){n(1379)("asyncIterator")},function(e,t,n){n(1379)("observable")},function(e,t,n){n(1547),n(1377),n(1376),n(2195),n(2206),n(2207),e.exports=n(173).Promise},function(e,t,n){"use strict";var r,o,i,a,s=n(872),u=n(196),l=n(993),c=n(1545),f=n(453),d=n(550),p=n(994),h=n(2196),m=n(2197),g=n(1548),y=n(1549).set,v=n(2201)(),b=n(1381),w=n(1550),_=n(2202),E=n(1551),x="Promise",S=u.TypeError,C=u.process,O=C&&C.versions,T=O&&O.v8||"",k=u[x],P="process"==c(C),A=function(){},R=o=b.f,M=!!function(){try{var e=k.resolve(1),t=(e.constructor={})[n(211)("species")]=function(e){e(A,A)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==T.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),N=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},I=function(c,n){if(!c._n){c._n=!0;var r=c._c;v(function(){for(var u=c._v,l=1==c._s,e=0,t=function(e){var t,n,r,o=l?e.ok:e.fail,i=e.resolve,a=e.reject,s=e.domain;try{o?(l||(2==c._h&&L(c),c._h=1),!0===o?t=u:(s&&s.enter(),t=o(u),s&&(s.exit(),r=!0)),t===e.promise?a(S("Promise-chain cycle")):(n=N(t))?n.call(t,i,a):i(t)):a(u)}catch(e){s&&!r&&s.exit(),a(e)}};r.length>e;)t(r[e++]);c._c=[],c._n=!1,n&&!c._h&&j(c)})}},j=function(i){y.call(u,function(){var e,t,n,r=i._v,o=D(i);if(o&&(e=w(function(){P?C.emit("unhandledRejection",r,i):(t=u.onunhandledrejection)?t({promise:i,reason:r}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",r)}),i._h=P||D(i)?2:1),i._a=void 0,o&&e.e)throw e.v})},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(t){y.call(u,function(){var e;P?C.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},B=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),I(t,!0))},F=function(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw S("Promise can't be resolved itself");(n=N(e))?v(function(){var t={_w:r,_d:!1};try{n.call(e,l(F,t,1),l(B,t,1))}catch(e){B.call(t,e)}}):(r._v=e,r._s=1,I(r,!1))}catch(e){B.call({_w:r,_d:!1},e)}}};M||(k=function(e){h(this,k,x,"_h"),p(e),r.call(this);try{e(l(F,this,1),l(B,this,1))}catch(e){B.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(2203)(k.prototype,{then:function(e,t){var n=R(g(this,k));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=P?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=l(F,e,1),this.reject=l(B,e,1)},b.f=R=function(e){return e===k||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!M,{Promise:k}),n(1005)(k,x),n(2204)(x),a=n(173)[x],f(f.S+f.F*!M,x,{reject:function(e){var t=R(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!M),x,{resolve:function(e){return E(s&&this===a?k:this,e)}}),f(f.S+f.F*!(M&&n(2205)(function(e){k.all(e).catch(A)})),x,{all:function(e){var a=this,t=R(a),s=t.resolve,u=t.reject,n=w(function(){var r=[],o=0,i=1;m(e,!1,function(e){var t=o++,n=!1;r.push(void 0),i++,a.resolve(e).then(function(e){n||(n=!0,r[t]=e,--i||s(r))},u)}),--i||s(r)});return n.e&&u(n.v),t.promise},race:function(e){var t=this,n=R(t),r=n.reject,o=w(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var d=n(993),p=n(2198),h=n(2199),m=n(352),g=n(1522),y=n(1544),v={},b={};(t=e.exports=function(e,t,n,r,o){var i,a,s,u,l=o?function(){return e}:y(e),c=d(n,r,t?2:1),f=0;if("function"!=typeof l)throw TypeError(e+" is not iterable!");if(h(l)){for(i=g(e.length);f
All rights reserved.
Redistribution and use of this software in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
* Neither the name of Kevin Decker nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@license
*/
var r;r=function(){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}return o.m=n,o.c=r,o.p="",o(0)}([function(e,t,n){"use strict";t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.merge=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},a=n(2),s=n(3),u=n(5),l=n(6),c=n(7),f=n(8),d=n(9),p=n(10),h=n(11),m=n(13),g=n(14),y=n(16),v=n(17);t.Diff=i.default,t.diffChars=a.diffChars,t.diffWords=s.diffWords,t.diffWordsWithSpace=s.diffWordsWithSpace,t.diffLines=u.diffLines,t.diffTrimmedLines=u.diffTrimmedLines,t.diffSentences=l.diffSentences,t.diffCss=c.diffCss,t.diffJson=f.diffJson,t.diffArrays=d.diffArrays,t.structuredPatch=g.structuredPatch,t.createTwoFilesPatch=g.createTwoFilesPatch,t.createPatch=g.createPatch,t.applyPatch=p.applyPatch,t.applyPatches=p.applyPatches,t.parsePatch=h.parsePatch,t.merge=m.merge,t.convertChangesToDMP=y.convertChangesToDMP,t.convertChangesToXML=v.convertChangesToXML,t.canonicalize=f.canonicalize},function(e,t){"use strict";function n(){}function g(e,t,n,r,o){for(var i=0,a=t.length,s=0,u=0;ie.length?n:e}),l.value=e.join(f)}else l.value=e.join(n.slice(s,s+l.count));s+=l.count,l.added||(u+=l.count)}}var d=t[a-1];return 1=d&&p<=r+1)return f([{value:this.join(l),count:l.length}]);function o(){for(var e=-1*h;e<=h;e+=2){var t=void 0,n=m[e-1],r=m[e+1],o=(r?r.newPos:0)-e;n&&(m[e-1]=void 0);var i=n&&n.newPos+1=d&&p<=o+1)return f(g(c,t.components,l,u,c.useLongestToken));m[e]=t}else m[e]=void 0}var s;h++}if(t)!function e(){setTimeout(function(){if(n=h.length-2&&n.length<=p.context){var l=/\n$/.test(f),c=/\n$/.test(d);0!=n.length||l?l&&c||b.push("\\ No newline at end of file"):b.splice(u.oldLines,0,"\\ No newline at end of file")}g.push(u),v=y=0,b=[]}w+=n.length,_+=n.length}},i=0;ie.length)return!1;for(var n=0;n/g,">")).replace(/"/g,""")}t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],n=0;n"):r.removed&&t.push(""),t.push(o(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")}}])},e.exports=r()},function(e){e.exports={name:"snack-sdk",version:"2.3.6",description:"The Expo Snack SDK",main:"dist/snack.js",module:"esm/snack.js",repository:"expo/snack-sdk",files:["dist","esm"],scripts:{start:"yarn watch",build:"cross-env NODE_ENV=production gulp build",prebuild:"gulp clean",prepare:"yarn build",watch:"gulp watch",test:"cross-env NODE_ENV=test jest --config jest/test-config.json --coverage","flow-typed":"flow-typed install",docs:'documentation readme --readme-file API.md --section "Snack SDK API" src/SnackSession.js'},author:"support@getexponent.com",license:"MIT",dependencies:{"babel-runtime":"^6.23.0",diff:"^3.2.0",lodash:"^4.16.1",platform:"^1.3.4",pubnub:"^4.3.3",recast:"^0.12.4",semver:"^5.3.0",shortid:"^2.2.8","validate-npm-package-name":"^3.0.0"},powertools:{group:["snack"]},devDependencies:{"babel-eslint":"^7.1.0","babel-jest":"^18.0.0","babel-plugin-dynamic-import-node":"^2.0.0","babel-plugin-syntax-dynamic-import":"^6.18.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"^1.4.0","cross-env":"^3.1.3",del:"^3.0.0",documentation:"^4.0.0-rc.1",eslint:"^3.9.1","eslint-config-exponent":"^5.0.1","eslint-plugin-babel":"^4.0.0","eslint-plugin-flowtype":"^2.25.0","eslint-plugin-import":"^2.2.0","eslint-plugin-react":"^6.6.0","fetch-mock":"^5.11.0","flow-bin":"^0.83.0",gulp:"^4.0.0","gulp-babel":"^6.1.2","gulp-changed":"^1.3.1","gulp-cli":"^1.2.2","gulp-plumber":"^1.1.0","gulp-rename":"^1.2.2","gulp-shell":"^0.5.2","gulp-sourcemaps":"^1.6.0",jest:"^18.1.0"}}},function(e,d,p){(function(l,c){var f;
/*!
* Platform.js
* Copyright 2014-2018 Benjamin Tan
* Copyright 2011-2013 John-David Dalton
* Available under MIT license
*/(function(){"use strict";var e={function:!0,object:!0},N=e[typeof window]&&window||this,t=e[typeof d]&&d,n=e[typeof l]&&l&&!l.nodeType&&l,r=t&&n&&"object"==typeof c&&c;!r||r.global!==r&&r.window!==r&&r.self!==r||(N=r);var i=Math.pow(2,53)-1,I=/\bOpera/,o=Object.prototype,a=o.hasOwnProperty,j=o.toString;function s(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function D(e){return e=U(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:s(e)}function L(e,t){for(var n in e)a.call(e,n)&&t(e[n],n,e)}function B(e){return null==e?s(e):j.call(e).slice(8,-1)}function F(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function H(n,r){var o=null;return function(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&-1=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var u=n(1384),l=n(1385);e.exports=function(s){return function(e,t){var n,r,o=String(l(e)),i=u(t),a=o.length;return i<0||a<=i?s?"":void 0:(n=o.charCodeAt(i))<55296||56319document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][a[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(u[l]=o(e),n=new u,u[l]=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var a=n(1011),s=n(553),u=n(1563);e.exports=n(880)?Object.defineProperties:function(e,t){s(e);for(var n,r=u(t),o=r.length,i=0;io;)a(r,n=t[o++])&&(~u(i,n)||i.push(n));return i}},function(e,t,n){var u=n(1389),l=n(1565),c=n(2284);e.exports=function(s){return function(e,t,n){var r,o=u(e),i=l(o.length),a=c(n,i);if(s&&t!=t){for(;a=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r,o,i,a,s=n(1386),u=n(268),l=n(1009),c=n(1571),f=n(878),d=n(879),p=n(1010),h=n(2291),m=n(2292),g=n(1572),y=n(1573).set,v=n(2297)(),b=n(1392),w=n(1574),_=n(2298),E=n(1575),x="Promise",S=u.TypeError,C=u.process,O=C&&C.versions,T=O&&O.v8||"",k=u[x],P="process"==c(C),A=function(){},R=o=b.f,M=!!function(){try{var e=k.resolve(1),t=(e.constructor={})[n(288)("species")]=function(e){e(A,A)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==T.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),N=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},I=function(c,n){if(!c._n){c._n=!0;var r=c._c;v(function(){for(var u=c._v,l=1==c._s,e=0,t=function(e){var t,n,r,o=l?e.ok:e.fail,i=e.resolve,a=e.reject,s=e.domain;try{o?(l||(2==c._h&&L(c),c._h=1),!0===o?t=u:(s&&s.enter(),t=o(u),s&&(s.exit(),r=!0)),t===e.promise?a(S("Promise-chain cycle")):(n=N(t))?n.call(t,i,a):i(t)):a(u)}catch(e){s&&!r&&s.exit(),a(e)}};r.length>e;)t(r[e++]);c._c=[],c._n=!1,n&&!c._h&&j(c)})}},j=function(i){y.call(u,function(){var e,t,n,r=i._v,o=D(i);if(o&&(e=w(function(){P?C.emit("unhandledRejection",r,i):(t=u.onunhandledrejection)?t({promise:i,reason:r}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",r)}),i._h=P||D(i)?2:1),i._a=void 0,o&&e.e)throw e.v})},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(t){y.call(u,function(){var e;P?C.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},B=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),I(t,!0))},F=function(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw S("Promise can't be resolved itself");(n=N(e))?v(function(){var t={_w:r,_d:!1};try{n.call(e,l(F,t,1),l(B,t,1))}catch(e){B.call(t,e)}}):(r._v=e,r._s=1,I(r,!1))}catch(e){B.call({_w:r,_d:!1},e)}}};M||(k=function(e){h(this,k,x,"_h"),p(e),r.call(this);try{e(l(F,this,1),l(B,this,1))}catch(e){B.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(2299)(k.prototype,{then:function(e,t){var n=R(g(this,k));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=P?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=l(F,e,1),this.reject=l(B,e,1)},b.f=R=function(e){return e===k||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!M,{Promise:k}),n(1391)(k,x),n(2300)(x),a=n(354)[x],f(f.S+f.F*!M,x,{reject:function(e){var t=R(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!M),x,{resolve:function(e){return E(s&&this===a?k:this,e)}}),f(f.S+f.F*!(M&&n(2301)(function(e){k.all(e).catch(A)})),x,{all:function(e){var a=this,t=R(a),s=t.resolve,u=t.reject,n=w(function(){var r=[],o=0,i=1;m(e,!1,function(e){var t=o++,n=!1;r.push(void 0),i++,a.resolve(e).then(function(e){n||(n=!0,r[t]=e,--i||s(r))},u)}),--i||s(r)});return n.e&&u(n.v),t.promise},race:function(e){var t=this,n=R(t),r=n.reject,o=w(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var d=n(1009),p=n(2293),h=n(2294),m=n(553),g=n(1565),y=n(2295),v={},b={};(t=e.exports=function(e,t,n,r,o){var i,a,s,u,l=o?function(){return e}:y(e),c=d(n,r,t?2:1),f=0;if("function"!=typeof l)throw TypeError(e+" is not iterable!");if(h(l)){for(i=g(e.length);f> ":" ")+n+"| "+e}).join("\n");throw e.path=u,e.message=(u||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e},escapeFn=escapeFn||function(e){return null==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&","<":"<",">":">",'"':""","'":"'"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __line=1,__lines="export default [\n <%- entries.join('\\n') -%>\n];\n",__filename="src/templates/export/expo/packagedFiles.js.ejs";try{var __output=[],__append=__output.push.bind(__output);with(locals||{})__append("export default [\n "),__line=2,__append(entries.join("\n")),__append("];\n"),__line=4;return __output.join("")}catch(e){rethrow(e,__lines,__filename,__line,escapeFn)}}},function(module,exports,__webpack_require__){(function(module){module.exports=function anonymous(locals,escapeFn,include,rethrow){rethrow=rethrow||function(e,t,n,r,o){var i=t.split("\n"),a=Math.max(r-3,0),s=Math.min(i.length,r+3),u=o(n),l=i.slice(a,s).map(function(e,t){var n=t+a+1;return(n==r?" >> ":" ")+n+"| "+e}).join("\n");throw e.path=u,e.message=(u||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e},escapeFn=escapeFn||function(e){return null==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&","<":"<",">":">",'"':""","'":"'"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __line=1,__lines=' { module: require("./assets/<%- module.fileName %>"), fileName: "<%- module.fileName %>" },\n',__filename="src/templates/export/expo/packagedFilesEntry.js.ejs";try{var __output=[],__append=__output.push.bind(__output);with(locals||{})__append(' { module: require("./assets/'),__append(module.fileName),__append('"), fileName: "'),__append(module.fileName),__append('" },\n'),__line=2;return __output.join("")}catch(e){rethrow(e,__lines,__filename,__line,escapeFn)}}}).call(this,__webpack_require__(91)(module))},function(e,t,n){var s=n(12),r=n(3);t.install=function(e,t,n){!function(e,t,n){e.Blocks.functional_plus={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,"+",e.BlockValueType.NUMBER,[{name:"ARG1",type:e.BlockValueType.NUMBER},{name:"ARG2",type:e.BlockValueType.NUMBER}],{titleFontSize:25})}},t.functional_plus=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||0,t=Blockly.JavaScript.statementToCode(this,"ARG2",!1)||0;return"("+e+" + "+t+")"}}(e,t),function(e,t,n){e.Blocks.functional_minus={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,"-",e.BlockValueType.NUMBER,[{name:"ARG1",type:e.BlockValueType.NUMBER},{name:"ARG2",type:e.BlockValueType.NUMBER}],{titleFontSize:25})}},t.functional_minus=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||0,t=Blockly.JavaScript.statementToCode(this,"ARG2",!1)||0;return"("+e+" - "+t+")"}}(e,t),function(e,t,n){e.Blocks.functional_times={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,"*",e.BlockValueType.NUMBER,[{name:"ARG1",type:e.BlockValueType.NUMBER},{name:"ARG2",type:e.BlockValueType.NUMBER}],{titleFontSize:25})}},t.functional_times=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||0,t=Blockly.JavaScript.statementToCode(this,"ARG2",!1)||0;return"("+e+" * "+t+")"}}(e,t),function(e,t,n){e.Blocks.functional_dividedby={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,"/",e.BlockValueType.NUMBER,[{name:"ARG1",type:e.BlockValueType.NUMBER},{name:"ARG2",type:e.BlockValueType.NUMBER}],{titleFontSize:25})}},t.functional_dividedby=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||0,t=Blockly.JavaScript.statementToCode(this,"ARG2",!1)||0;return"("+e+" / "+t+")"}}(e,t),function(e,t,n){e.Blocks.functional_greater_than={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,">",e.BlockValueType.BOOLEAN,[{name:"ARG1",type:e.BlockValueType.NUMBER},{name:"ARG2",type:e.BlockValueType.NUMBER}])}},t.functional_greater_than=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||0,t=Blockly.JavaScript.statementToCode(this,"ARG2",!1)||0;return"("+e+" > "+t+")"}}(e,t),function(e,t,n){e.Blocks.functional_less_than={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,"<",e.BlockValueType.BOOLEAN,[{name:"ARG1",type:e.BlockValueType.NUMBER},{name:"ARG2",type:e.BlockValueType.NUMBER}])}},t.functional_less_than=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||0,t=Blockly.JavaScript.statementToCode(this,"ARG2",!1)||0;return"("+e+" < "+t+")"}}(e,t),function(e,t,n){e.Blocks.functional_number_equals={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,"=",e.BlockValueType.BOOLEAN,[{name:"ARG1",type:e.BlockValueType.NUMBER},{name:"ARG2",type:e.BlockValueType.NUMBER}])}},t.functional_number_equals=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||0,t=Blockly.JavaScript.statementToCode(this,"ARG2",!1)||0;return"("+e+" === "+t+")"}}(e,t),function(e,t,n){e.Blocks.functional_string_equals={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,r.stringEquals(),e.BlockValueType.BOOLEAN,[{name:"ARG1",type:e.BlockValueType.STRING},{name:"ARG2",type:e.BlockValueType.STRING}])}},t.functional_string_equals=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||"",t=Blockly.JavaScript.statementToCode(this,"ARG2",!1)||"";return"("+e+" === "+t+")"}}(e,t),function(e,t,n){e.Blocks.functional_logical_and={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,"and",e.BlockValueType.BOOLEAN,[{name:"ARG1",type:e.BlockValueType.BOOLEAN},{name:"ARG2",type:e.BlockValueType.BOOLEAN}])}},t.functional_logical_and=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||0,t=Blockly.JavaScript.statementToCode(this,"ARG2",!1)||0;return"("+e+" && "+t+")"}}(e,t),function(e,t,n){e.Blocks.functional_logical_or={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,"or",e.BlockValueType.BOOLEAN,[{name:"ARG1",type:e.BlockValueType.BOOLEAN},{name:"ARG2",type:e.BlockValueType.BOOLEAN}])}},t.functional_logical_or=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||0,t=Blockly.JavaScript.statementToCode(this,"ARG2",!1)||0;return"("+e+" || "+t+")"}}(e,t),function(e,t,n){e.Blocks.functional_logical_not={helpUrl:"",init:function(){e.FunctionalBlockUtils.initTitledFunctionalBlock(this,"not",e.BlockValueType.BOOLEAN,[{name:"ARG1",type:e.BlockValueType.BOOLEAN}])}},t.functional_logical_not=function(){var e=Blockly.JavaScript.statementToCode(this,"ARG1",!1)||0;return"!("+e+")"}}(e,t),function(t,e,n){t.Blocks.functional_boolean={init:function(){this.setFunctional(!0,{headerHeight:0,rowBuffer:3}),this.setHSV.apply(this,t.FunctionalTypeColors[t.BlockValueType.BOOLEAN]);var e=t.Blocks.functional_boolean.VALUES;this.appendDummyInput().appendTitle(new t.FieldDropdown(e),"VAL").setAlign(Blockly.ALIGN_CENTRE),this.setFunctionalOutput(!0,t.BlockValueType.BOOLEAN)}},t.Blocks.functional_boolean.VALUES=[[r.booleanTrue(),"true"],[r.booleanFalse(),"false"]],e.functional_boolean=function(){return"true"===this.getTitleValue("VAL")}}(e,t),function(e,t,n){e.Blocks.functional_math_number={init:function(){this.setFunctional(!0,{headerHeight:0,rowBuffer:3}),this.setHSV.apply(this,e.FunctionalTypeColors[e.BlockValueType.NUMBER]),this.appendDummyInput().appendTitle(new Blockly.FieldTextInput("0",Blockly.FieldTextInput.numberValidator),"NUM").setAlign(Blockly.ALIGN_CENTRE),this.setFunctionalOutput(!0,e.BlockValueType.NUMBER)}},t.functional_math_number=function(){return+this.getTitleValue("NUM")},e.Blocks.functional_math_number_dropdown={init:function(){this.setFunctional(!0,{headerHeight:0,rowBuffer:3}),this.setHSV.apply(this,e.FunctionalTypeColors[e.BlockValueType.NUMBER]),this.appendDummyInput().appendTitle(new Blockly.FieldDropdown,"NUM").setAlign(Blockly.ALIGN_CENTRE),this.setFunctionalOutput(!0,e.BlockValueType.NUMBER)}},t.functional_math_number_dropdown=t.functional_math_number}(e,t),function(e,t){e.Blocks.functional_string={init:function(){this.setFunctional(!0,{headerHeight:0,rowBuffer:3}),this.setHSV.apply(this,e.FunctionalTypeColors[e.BlockValueType.STRING]),this.appendDummyInput().appendTitle(new Blockly.FieldLabel('"')).appendTitle(new Blockly.FieldTextInput(""),"VAL").appendTitle(new Blockly.FieldLabel('"')).setAlign(Blockly.ALIGN_CENTRE),this.setFunctionalOutput(!0,e.BlockValueType.STRING)}},t.functional_string=function(){return e.JavaScript.quote_(this.getTitleValue("VAL"))}}(e,t),function(t,n){[Blockly.BlockValueType.NONE,Blockly.BlockValueType.NUMBER,Blockly.BlockValueType.STRING,Blockly.BlockValueType.IMAGE,Blockly.BlockValueType.BOOLEAN].forEach(function(e){!function(i,e,a){var t="functional_cond";a!==Blockly.BlockValueType.NONE&&(t+="_"+a.toLowerCase());i.Blocks[t]={helpUrl:"",init:function(){this.pairs_=[],this.setFunctional(!0,{headerHeight:30});var e={fixedSize:{height:35}};this.setHSV.apply(this,Blockly.FunctionalTypeColors[a]);var t=new Blockly.FieldIcon("+");Blockly.bindEvent_(t.getRootElement(),"mousedown",this,this.addConditionalRow),this.appendDummyInput().appendTitle(new Blockly.FieldLabel("cond",e)).setAlign(Blockly.ALIGN_CENTRE),this.appendDummyInput("ELSE").appendTitle(new Blockly.FieldLabel("else",e));var n=this.appendFunctionalInput("DEFAULT").setInline(!0);n.setHSV.apply(n,Blockly.FunctionalTypeColors[a]),this.appendDummyInput("PLUS").appendTitle(t).setInline(!0),this.setFunctionalOutput(!0,a===Blockly.BlockValueType.NONE?void 0:a),this.addConditionalRow()},addConditionalRow:function(){var e=0> ":" ")+n+"| "+e}).join("\n");throw e.path=u,e.message=(u||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e},escapeFn=escapeFn||function(e){return null==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&","<":"<",">":">",'"':""","'":"'"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __line=1,__lines='\n',__filename="src/templates/gameLabDPad.html.ejs";try{var __output=[],__append=__output.push.bind(__output);with(locals||{})__append('\n'),__line=7;return __output.join("")}catch(e){rethrow(e,__lines,__filename,__line,escapeFn)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.searchAssets=function(e,t,n,r,o){var i=new RegExp("(?:\\s+|_|^|-)"+e,"i"),a=Object.keys(n.aliases).filter(function(e){return i.test(e)}).reduce(function(e,t){return e.union(n.aliases[t])},l.default.Set());if(""!==t&&"all"!==t){var s=l.default.Set(n.categories[t]);a=""!==e?a.intersect(s):s}var u=a.sort().map(function(e){return n.metadata[e]}).toArray();return{pageCount:Math.ceil(u.length/o),results:u.slice(r*o,(r+1)*o)}},t.filterOutBackgrounds=function(e){return e.filter(function(e){return!e.categories.includes("backgrounds")})};var r,l=(r=n(99))&&r.__esModule?r:{default:r}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r,o=(r=n(2499))&&r.__esModule?r:{default:r};var l=n(754),i=n(10).randomValue,c={letters:{nonDisappearingPegmanHittingObstacle:!0,pegmanHeight:50,pegmanWidth:50,danceOnLoad:!1,goal:"",idlePegmanAnimation:"idle_avatar.gif",movePegmanAnimation:"move_avatar.png",movePegmanAnimationSpeedScale:1.5,movePegmanAnimationFrameNumber:9,hideInstructions:!0},bee:{obstacleAnimation:"",obstacleIdle:"obstacle.png",redFlower:"redFlower.png",purpleFlower:"purpleFlower.png",honey:"honey.png",cloud:"cloud.png",cloudAnimation:"cloud_hide.gif",beeSound:!0,nectarSound:"getNectar.mp3",honeySound:"makeHoney.mp3",look:"#000",nonDisappearingPegmanHittingObstacle:!0,idlePegmanAnimation:"idle_avatar.gif",wallPegmanAnimation:"wall_avatar.png",movePegmanAnimation:"move_avatar.png",hittingWallAnimation:"wall.gif",movePegmanAnimationSpeedScale:1.5,movePegmanAnimationFrameNumber:9,actionSpeedScale:{nectar:1},pegmanYOffset:0,tileSheetWidth:5,pegmanHeight:50,pegmanWidth:50},collector:{wallPegmanAnimation:"wall_avatar.png",movePegmanAnimation:"move_avatar.png",movePegmanAnimationSpeedScale:1,movePegmanAnimationFrameNumber:8,pegmanHeight:50,pegmanWidth:50,goal:"gem.png",collectBlock:"gem_cropped.png",corners:"corners.png",collectSounds:["get_gem_2.mp3","get_gem_4.mp3","get_gem_6.mp3"],look:"#000",transparentTileEnding:!0,nonDisappearingPegmanHittingObstacle:!0,background:"background.png",danceOnLoad:!0},farmer:{obstacleIdle:"obstacle.png",dirt:"dirt.png",fillSound:"fill.mp3",digSound:"dig.mp3",look:"#000",transparentTileEnding:!0,nonDisappearingPegmanHittingObstacle:!0,background:"background"+i([0,1,2,3])+".png",dirtSound:!0,pegmanYOffset:-8,danceOnLoad:!0},harvester:{obstacleIdle:"obstacle.png",corn:"corn.png",pumpkin:"pumpkin.png",sprout:"sprout.png",lettuce:"lettuce.png",harvestSound:"dig.mp3",look:"#000",transparentTileEnding:!0,nonDisappearingPegmanHittingObstacle:!0,background:"background"+i([0,1,2,3])+".png",pegmanYOffset:-8,danceOnLoad:!0},pvz:{goalIdle:"goalIdle.gif",obstacleIdle:"obstacleIdle.gif",goalAnimation:"goal.gif",maze_forever:"maze_forever.png",obstacleScale:1.4,pegmanYOffset:-8,danceOnLoad:!0},birds:{goalIdle:"goalIdle.gif",obstacleIdle:"obstacle.png",goalAnimation:"goal.gif",maze_forever:"maze_forever.png",largerObstacleAnimationTiles:"tiles-broken.png",obstacleScale:1.2,additionalSound:!0,idlePegmanAnimation:"idle_avatar.gif",wallPegmanAnimation:"wall_avatar.png",movePegmanAnimation:"move_avatar.png",movePegmanAnimationSpeedScale:1.5,movePegmanAnimationFrameNumber:9,hittingWallAnimation:"wall.gif",approachingGoalAnimation:"close_goal.png",pegmanHeight:68,pegmanWidth:51,pegmanYOffset:-14,turnAfterVictory:!0},scrat:{goalIdle:"goal.png",goalAnimation:"goal.png",maze_forever:"maze_forever.png",largerObstacleAnimationTiles:"tiles-broken.png",additionalSound:!0,idlePegmanAnimation:"idle_avatar_sheet.png",idlePegmanAnimationSpeedScale:1.5,idlePegmanCol:4,idlePegmanRow:11,hittingWallAnimation:"wall_avatar_sheet.png",hittingWallAnimationFrameNumber:20,hittingWallAnimationSpeedScale:1.5,hittingWallPegmanCol:1,hittingWallPegmanRow:20,celebrateAnimation:"jump_acorn_sheet.png",celebratePegmanCol:1,celebratePegmanRow:9,movePegmanAnimation:"move_avatar.png",movePegmanAnimationSpeedScale:1.5,movePegmanAnimationFrameNumber:9,approachingGoalAnimation:"close_goal.png",pegmanHeight:107,pegmanWidth:80,pegmanXOffset:-12,pegmanYOffset:-30,turnAfterVictory:!0},neighborhood:{spriteMap:o.default,sheetRows:{"other.png":3,"vehicles.png":6,"buildings.png":18,"sidewalk.png":2,"wall.png":3},pegmanHeight:32,pegmanWidth:32,pegmanYOffset:0,pegmanXOffset:0,pegmanSheetWidth:512,squareSize:32,svgHeight:400,svgWidth:400,paintCan:"paint_can.png"}};function f(e,t){var n=t.match(/^(.*)\.mp3$/)[1];return[e.assetUrl(t),e.assetUrl(n+".ogg")]}c.bee_night=c.bee,c.farmer_night=c.farmer,c.planter=Object.assign({},c.harvester,{soil:"soil.png"}),t.load=function(e,t){var n=l.load(e,t),r=c[n.id];n.obstacleScale=1,n.obstacleAnimation=n.assetUrl("obstacle.gif"),n.movePegmanAnimationSpeedScale=1,n.look="#FFF",n.background=n.assetUrl("background.png"),n.tiles=n.assetUrl("tiles.png"),n.pegmanHeight=52,n.pegmanWidth=49,n.pegmanYOffset=0,n.turnAfterVictory=!1,n.danceOnLoad=!1,n.obstacleSound=f(n,"obstacle.mp3"),n.wallSound=f(n,"wall.mp3"),n.winGoalSound=f(n,"win_goal.mp3"),n.wall0Sound=f(n,"wall0.mp3"),n.wall1Sound=f(n,"wall1.mp3"),n.wall2Sound=f(n,"wall2.mp3"),n.wall3Sound=f(n,"wall3.mp3"),n.wall4Sound=f(n,"wall4.mp3");var o=/\.\S{3}$/,i=/^(.*)\.mp3$/;function a(e){return i.test(e)?e=f(n,e):o.test(e)&&(e=n.assetUrl(e)),e}for(var s in r){var u=r[s];Array.isArray(u)?n[s]=u.map(a):n[s]=a(u)}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(1462))&&r.__esModule?r:{default:r};var i=function(e){function t(){return e.apply(this,arguments)||this}return function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e),t.prototype.output_=function(e,t,n){try{console.groupCollapsed(e);var r=this.getJsInterpreter_();if(n&&r){var o=Math.max(n-2-1,0),i=r.codeInfo.code.split(/\n/g).splice(o,5).map(function(e,t){return(2===t?">>> ":" ")+e}).join("\n");console.log(i)}else console.log("No context available.")}finally{console.groupEnd()}},t}(o.default);t.default=i,e.exports=t.default},,function(e,t,n){"use strict";function r(e,t){return window.performance&&window.performance[e]?window.performance[e].bind(window.performance):function(){return t}}Object.defineProperty(t,"__esModule",{value:!0}),t.getEntriesByName=t.measure=t.mark=t.clearMeasures=t.clearMarks=void 0;var o=r("clearMarks");t.clearMarks=o;var i=r("clearMeasures");t.clearMeasures=i;var a=r("mark");t.mark=a;var s=r("measure");t.measure=s;var u=r("getEntriesByName",[]);t.getEntriesByName=u},,function(module,exports){module.exports=function anonymous(locals,escapeFn,include,rethrow){rethrow=rethrow||function(e,t,n,r,o){var i=t.split("\n"),a=Math.max(r-3,0),s=Math.min(i.length,r+3),u=o(n),l=i.slice(a,s).map(function(e,t){var n=t+a+1;return(n==r?" >> ":" ")+n+"| "+e}).join("\n");throw e.path=u,e.message=(u||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e},escapeFn=escapeFn||function(e){return null==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&","<":"<",">":">",'"':""","'":"'"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __line=1,__lines="var p5Inst = new p5(null, 'sketch');\n\nwindow.preload = function () {\n initMobileControls(p5Inst);\n\n p5Inst._predefinedSpriteAnimations = {};\n p5Inst._pauseSpriteAnimationsByDefault = <%- animationOpts.pauseAnimationsByDefault -%>;\n var animationListJSON = <%- animationListJSON -%>;\n var orderedKeys = animationListJSON.orderedKeys;\n var allAnimationsSingleFrame = <%- animationOpts.allAnimationsSingleFrame -%>;\n orderedKeys.forEach(function (key) {\n var props = animationListJSON.propsByKey[key];\n var frameCount = allAnimationsSingleFrame ? 1 : props.frameCount;\n var image = loadImage(props.rootRelativePath, function () {\n var spriteSheet = loadSpriteSheet(\n image,\n props.frameSize.x,\n props.frameSize.y,\n frameCount\n );\n p5Inst._predefinedSpriteAnimations[props.name] = loadAnimation(spriteSheet);\n p5Inst._predefinedSpriteAnimations[props.name].looping = props.looping;\n p5Inst._predefinedSpriteAnimations[props.name].frameDelay = props.frameDelay;\n });\n });\n\n function wrappedExportedCode(stage) {\n if (stage === 'preload') {\n if (setup !== window.setup) {\n window.setup = setup;\n } else {\n return;\n }\n }\n// -----\n\n<%- code -%>\n\n// -----\n try { window.draw = draw; } catch (e) {}\n switch (stage) {\n case 'preload':\n if (preload !== window.preload) { preload(); }\n break;\n case 'setup':\n if (setup !== window.setup) { setup(); }\n break;\n }\n }\n window.wrappedExportedCode = wrappedExportedCode;\n wrappedExportedCode('preload');\n};\n\nwindow.setup = function () {\n window.wrappedExportedCode('setup');\n};\n",__filename="src/templates/export/gamelabCode.js.ejs";try{var __output=[],__append=__output.push.bind(__output);with(locals||{})__append("var p5Inst = new p5(null, 'sketch');\n\nwindow.preload = function () {\n initMobileControls(p5Inst);\n\n p5Inst._predefinedSpriteAnimations = {};\n p5Inst._pauseSpriteAnimationsByDefault = "),__line=7,__append(animationOpts.pauseAnimationsByDefault),__append(";\n var animationListJSON = "),__line=8,__append(animationListJSON),__append(";\n var orderedKeys = animationListJSON.orderedKeys;\n var allAnimationsSingleFrame = "),__line=10,__append(animationOpts.allAnimationsSingleFrame),__append(";\n orderedKeys.forEach(function (key) {\n var props = animationListJSON.propsByKey[key];\n var frameCount = allAnimationsSingleFrame ? 1 : props.frameCount;\n var image = loadImage(props.rootRelativePath, function () {\n var spriteSheet = loadSpriteSheet(\n image,\n props.frameSize.x,\n props.frameSize.y,\n frameCount\n );\n p5Inst._predefinedSpriteAnimations[props.name] = loadAnimation(spriteSheet);\n p5Inst._predefinedSpriteAnimations[props.name].looping = props.looping;\n p5Inst._predefinedSpriteAnimations[props.name].frameDelay = props.frameDelay;\n });\n });\n\n function wrappedExportedCode(stage) {\n if (stage === 'preload') {\n if (setup !== window.setup) {\n window.setup = setup;\n } else {\n return;\n }\n }\n// -----\n\n"),__line=37,__append(code),__append("\n// -----\n try { window.draw = draw; } catch (e) {}\n switch (stage) {\n case 'preload':\n if (preload !== window.preload) { preload(); }\n break;\n case 'setup':\n if (setup !== window.setup) { setup(); }\n break;\n }\n }\n window.wrappedExportedCode = wrappedExportedCode;\n wrappedExportedCode('preload');\n};\n\nwindow.setup = function () {\n window.wrappedExportedCode('setup');\n};\n"),__line=57;return __output.join("")}catch(e){rethrow(e,__lines,__filename,__line,escapeFn)}}},function(module,exports){module.exports=function anonymous(locals,escapeFn,include,rethrow){rethrow=rethrow||function(e,t,n,r,o){var i=t.split("\n"),a=Math.max(r-3,0),s=Math.min(i.length,r+3),u=o(n),l=i.slice(a,s).map(function(e,t){var n=t+a+1;return(n==r?" >> ":" ")+n+"| "+e}).join("\n");throw e.path=u,e.message=(u||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e},escapeFn=escapeFn||function(e){return null==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&","<":"<",">":">",'"':""","'":"'"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __line=1,__lines='\n \n <%- appName %>\n \n <% if (webExport) { -%>\n \n <% } else { -%>\n \n <% } -%>\n