text: !function(t){var i={};function e(s){if(i[s])return i[s].exports;var n=i[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,e),n.l=!0,n.exports}e.m=t,e.c=i,e.d=function(t,i,s){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:s})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(e.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var n in t)e.d(s,n,function(i){return t[i]}.bind(null,n));return s},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=22)}({22:function(t,i){window.PennController._AddElementType("Button",(function(t){this.immediate=function(t,i){void 0===i&&(i=t,void 0!==t&&"string"==typeof t&&0!=t.length||(t="Button"),this.id=t),this.initialText=i},this.uponCreation=function(t){this.text=this.initialText,this.jQueryElement=$("<button>").html(this.text),this.clicks=[],this.hasClicked=!1,this.log=!1,this.disabled=!1,this.click=()=>{this.hasClicked=!0,this.clicks.push(["Click","Click",Date.now(),"NULL"])},this.jQueryElement[0].onclick=()=>this.click(),t()},this.end=function(){if(this.log){this.clicks.length||t.controllers.running.save(this.type,this.id,"Click","NA","Never");for(let i in this.clicks)t.controllers.running.save(this.type,this.id,...this.clicks[i])}},this.value=function(){return this.clicks.length?this.clicks[this.clicks.length-1][2]:0},this.actions={click:function(t){this.click(),t()},wait:function(t,i){if("first"==i&&this.hasClicked)t();else{let e=!1,s=this.click;this.click=()=>{if(s.apply(this),!e)if(i instanceof Object&&i._runPromises&&i.success){let s=this.disabled;this.jQueryElement.attr("disabled",!0),this.disabled="tmp",i._runPromises().then(i=>{"success"==i&&(e=!0,t()),"tmp"==this.disabled&&(this.disabled=s,this.jQueryElement.attr("disabled",s))})}else e=!0,t()}}}},this.settings={callback:function(t,...i){let e=this.click;this.click=async function(){if(!this.disabled)for(let t in i)await i[t]._runPromises();e.apply(this)},t()},log:function(t){this.log=!0,t()},once:function(t){if(this.hasClicked)this.disabled=!0,this.jQueryElement.attr("disabled",!0);else{let t=this.click;this.click=()=>{t.apply(this),this.disabled=!0,this.jQueryElement.attr("disabled",!0)}}t()}},this.test={clicked:function(){return this.hasClicked}}}))}});