1!function(t,e){"use strict";var i,n=t.document;i=function(){var i,s,r,o,a,l,c,u,f,d,p,h,y={},b={},v=!1,m=13,g=27,k=32,E=[];return b={buttons:{holder:'<nav class="alertify-buttons">{{buttons}}</nav>',submit:'<button type="submit" class="btn" id="alertify-ok">{{ok}}</button>',ok:'<button class="btn" id="alertify-ok">{{ok}}</button>',cancel:'<button class="btn" id="alertify-cancel">{{cancel}}</button>'},input:'<div class="alertify-text-wrapper"><input type="text" class="alertify-text" id="alertify-text"></div>',message:'<p class="alertify-message">{{message}}</p>',log:'<article role="alert" class="alertify-log{{class}}" aria-live="polite">{{message}}</article>'},h=function(){var t,i,s=!1,r=n.createElement("fakeelement"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"};for(t in o)if(r.style[t]!==e){i=o[t],s=!0;break}return{type:i,supported:s}},i=function(t,e=n){return e.querySelector(t)},{alert:function(t,e,i,n){return y.dialog(t,"alert",e,"",i,n),this},confirm:function(t,e,i,n){return y.dialog(t,"confirm",e,"",i,n),this},extend:(y={labels:{ok:"OK",cancel:"Cancel"},delay:5e3,buttonReverse:!1,buttonFocus:"ok",transition:e,addListeners:function(t){var e,i,l,c,u,f=void 0!==r,d=void 0!==s,h=void 0!==p,y="",b=this;e=function(e){return void 0!==e.preventDefault&&e.preventDefault(),l(e),void 0!==p&&(y=p.value),"function"==typeof t&&(void 0!==p?t(!0,y):t(!0)),!1},i=function(e){return void 0!==e.preventDefault&&e.preventDefault(),l(e),"function"==typeof t&&t(!1),!1},l=function(t){b.hide(),b.unbind(n.body,"keyup",c),b.unbind(o,"focus",u),f&&b.unbind(r,"click",e),d&&b.unbind(s,"click",i)},c=function(t){var n=t.keyCode;(n===k&&!h||h&&n===m)&&e(t),n===g&&d&&i(t)},u=function(t){h?p.focus():!d||b.buttonReverse?r.focus():s.focus()},this.bind(o,"focus",u),this.bind(a,"focus",u),f&&this.bind(r,"click",e),d&&this.bind(s,"click",i),this.bind(n.body,"keyup",c),this.transition.supported||this.setFocus()},bind:function(t,e,i){"function"==typeof t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent&&t.attachEvent("on"+e,i)},handleErrors:function(){if(void 0!==t.onerror){var e=this;return t.onerror=function(t,i,n){e.error("["+t+" on line "+n+" of "+i+"]",0)},!0}return!1},appendButtons:function(t,e){return this.buttonReverse?e+t:t+e},build:function(t){var e="",i=t.type,n=t.message,s=t.cssClass||"";switch(e+='<div class="alertify-dialog">',e+='<a id="alertify-resetFocusBack" class="alertify-resetFocus" href="#">Reset Focus</a>',"none"===y.buttonFocus&&(e+='<a href="#" id="alertify-noneFocus" class="alertify-hidden"></a>'),"prompt"===i&&(e+='<div id="alertify-form">'),e+='<article class="alertify-inner">',e+=b.message.replace("{{message}}",n),"prompt"===i&&(e+=b.input),e+=b.buttons.holder,e+="</article>","prompt"===i&&(e+="</div>"),e+='<a id="alertify-resetFocus" class="alertify-resetFocus" href="#">Reset Focus</a>',e+="</div>",i){case"confirm":e=(e=e.replace("{{buttons}}",this.appendButtons(b.buttons.cancel,b.buttons.ok))).replace("{{ok}}",this.labels.ok).replace("{{cancel}}",this.labels.cancel);break;case"prompt":e=(e=e.replace("{{buttons}}",this.appendButtons(b.buttons.cancel,b.buttons.submit))).replace("{{ok}}",this.labels.ok).replace("{{cancel}}",this.labels.cancel);break;case"alert":e=(e=e.replace("{{buttons}}",b.buttons.ok)).replace("{{ok}}",this.labels.ok)}return f.className="alertify alertify-"+i+" "+s,u.className="alertify-cover",e},close:function(t,e){var i,n,s=e&&!isNaN(e)?+e:this.delay,r=this;this.bind(t,"click",(function(){i(t)})),n=function(t){t.stopPropagation(),r.unbind(this,r.transition.type,n),d.removeChild(this),d.hasChildNodes()||(d.className+=" alertify-logs-hidden")},i=function(t){void 0!==t&&t.parentNode===d&&(r.transition.supported?(r.bind(t,r.transition.type,n),t.className+=" alertify-log-hide"):(d.removeChild(t),d.hasChildNodes()||(d.className+=" alertify-logs-hidden")))},0!==e&&setTimeout((function(){i(t)}),s)},dialog:function(t,e,i,s,r,o){c=n.activeElement;var a=function(){d&&null!==d.scrollTop&&u&&null!==u.scrollTop||a()};if("string"!=typeof t)throw new Error("message must be a string");if("string"!=typeof e)throw new Error("type must be a string");if(void 0!==i&&"function"!=typeof i)throw new Error("fn must be a function");return this.init(o),a(),E.push({type:e,message:t,callback:i,placeholder:s,cssClass:r}),v||this.setup(),this},extend:function(t){if("string"!=typeof t)throw new Error("extend method must have exactly one parameter");return function(e,i){return this.log(e,t,i),this}},hide:function(){var t,e=this;E.splice(0,1),E.length>0?this.setup(!0):(v=!1,t=function(i){i.stopPropagation(),e.unbind(f,e.transition.type,t)},this.transition.supported?(this.bind(f,this.transition.type,t),f.className="alertify alertify-hide alertify-hidden"):f.className="alertify alertify-hide alertify-hidden alertify-isHidden",u.className="alertify-cover alert
1ify-cover-hidden",c.focus())},init:function(t){"string"==typeof t&&(t=n.querySelector(t)),void 0===t&&(t=n.body),n.createElement("nav"),n.createElement("article"),n.createElement("section"),i("#alertify-cover",t)||((u=n.createElement("div")).setAttribute("id","alertify-cover"),u.className="alertify-cover alertify-cover-hidden",t.appendChild(u)),i("#alertify",t)||(v=!1,E=[],(f=n.createElement("section")).setAttribute("id","alertify"),f.className="alertify alertify-hidden",t.appendChild(f)),i("#alertify-logs",t)||((d=n.createElement("section")).setAttribute("id","alertify-logs"),d.className="alertify-logs alertify-logs-hidden",t.appendChild(d)),t.setAttribute("tabindex","0"),this.transition=h()},log:function(t,e,i,n){var s=function(){d&&null!==d.scrollTop||s()};return this.init(n),s(),d.className="alertify-logs",this.notify(t,e,i),this},notify:function(t,e,i){var s=n.createElement("article");s.setAttribute("role","alert"),s.className="alertify-log"+("string"==typeof e&&""!==e?" alertify-log-"+e:""),s.setAttribute("aria-live","assertive"),s.innerHTML=t,d.appendChild(s),setTimeout((function(){s.className=s.className+" alertify-log-show"}),50),this.close(s,i)},set:function(t){var e;if("object"!=typeof t&&t instanceof Array)throw new Error("args must be an object");for(e in t)t.hasOwnProperty(e)&&(this[e]=t[e])},setFocus:function(){p?(p.focus(),p.select()):l.focus()},setup:function(t){var n,c=E[0],u=this;v=!0,n=function(t){t.stopPropagation(),u.setFocus(),u.unbind(f,u.transition.type,n)},this.transition.supported&&!t&&this.bind(f,this.transition.type,n),f.innerHTML=this.build(c),o=i("alertify-resetFocus"),a=i("alertify-resetFocusBack"),r=i("alertify-ok")||e,s=i("alertify-cancel")||e,l="cancel"===y.buttonFocus?s:"none"===y.buttonFocus?i("alertify-noneFocus"):r,p=i("alertify-text")||e,i("alertify-form")||e,"string"==typeof c.placeholder&&""!==c.placeholder&&(p.value=c.placeholder),t&&this.setFocus(),this.addListeners(c.callback)},unbind:function(t,e,i){"function"==typeof t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent&&t.detachEvent("on"+e,i)}}).extend,init:y.init,log:function(t,e,i,n){return y.log(t,e,i,n),this},prompt:function(t,e,i,n,s){return y.dialog(t,"prompt",e,i,n,s),this},success:function(t,e,i){return y.log(t,"success",e,i),this},error:function(t,e,i){return y.log(t,"error",e,i),this},set:function(t){y.set(t)},labels:y.labels,debug:y.handleErrors}},"function"==typeof define?define([],(function(){return new i})):void 0===t.alertify&&(t.alertify=new i)}(this);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.