require=function t(e,n,r){function i(o,a){if(!n[o]){if(!e[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(s)return s(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};e[o][0].call(c.exports,function(t){var n=e[o][1][t];return i(n||t)},c,c.exports,t,e,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o2592e3?null:t}function h(){var t=$('input[name="csrfmiddlewaretoken"]');if(t.length){var e,n=c();if(n)r(n);else e=function(t){var e,i,s;e=u(),i=new Date(1e3*(e+31536e3)).toGMTString(),s=l+"="+e+"; expires="+i+"; path=/",document.cookie=s,r(n=c())},$.ajax({type:"POST",url:"/_api/renew-csrf/"}).done(e)}function r(e){t.val(e)}}$(function(){var e=function(t){var e=new r(t);if(e.debug=e.getKey("shotwell-debug"),e.user_id=e.getKey("current-user-id"),!e.getKey("page-base-repo"))return e;e.isRepoOwnedByUser=e.getRequiredKey("current-user-name")==e.getKey("repo-owner-name"),e.viewing_repo_id=e.getRequiredKey("viewing-repo-id"),e.viewing_branch_id=e.getRequiredKey("viewing-branch-id"),e.viewingEffectiveBranch=Boolean(e.viewing_branch_id),e.isViewingArticle=e.getKey("page-article-viewing");var n=e.getKey("page-article-editing");return e.isEditingArticle=n,n&&(e.isFutureDraft=e.getKey("is-future-draft")),e}(shotwellData);window.app_state=e,n.setUserContext({user_id:e.user_id,user_name:e.getRequiredKey("current-user-name"),viewing_repo_id:e.viewing_repo_id}),console.log("app_state: debug="+e.debug+" user_id="+e.user_id+" logged_in="+e.isLoggedIn()),h(),$('[data-toggle="tooltip"]').tooltip({container:"body"}),s.general(),s.setup_hotkeys(),s.setup_control_bar(),s.no_blur_on_click(),e.getKey("page-article-diff")&&console.log("viewing page with: diff"),i.setup_search(),t("instant.page"),function t(){$(".do-pagination-next").click(function(e){e.preventDefault();var n=$(e.target).data("pagination-url");$.get(n,function(n){$(e.target).parent().parent().append(n),$(e.target).parent().remove(),t()})})}()})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./debug.js":"/srv/gulp/app/scripts/debug.js","./htmldiff.js":"/srv/gulp/app/scripts/htmldiff.js","./pre-page-render.js":"/srv/gulp/app/scripts/pre-page-render.js","./reputation.js":"/srv/gulp/app/scripts/reputation.js","./search.js":"/srv/gulp/app/scripts/search.js","./state.js":"/srv/gulp/app/scripts/state.js","./ui.js":"/srv/gulp/app/scripts/ui.js","./utils.js":"/srv/gulp/app/scripts/utils.js","./xhr.js":"/srv/gulp/app/scripts/xhr.js","bootstrap-sass":"/srv/gulp/node_modules/bootstrap-sass/assets/javascripts/bootstrap.js","instant.page":"/srv/gulp/submodules/instant.page/instantpage.js","raven-js":"/srv/gulp/node_modules/raven-js/src/singleton.js"}],"/srv/gulp/submodules/instant.page/instantpage.js":[function(t,e,n){let r,i,s,o=[];const a=document.createElement("link"),l=a.relList&&a.relList.supports&&a.relList.supports("prefetch"),u=navigator.connection&&navigator.connection.saveData,c="instantAllowQueryString"in document.body.dataset,h="instantAllowExternalLinks"in document.body.dataset;if(l&&!u){a.rel="prefetch",document.head.appendChild(a);const t={capture:!0,passive:!0};document.addEventListener("touchstart",function(t){s=performance.now();const e=t.target.closest("a");if(!f(e))return;e.addEventListener("touchcancel",p,{passive:!0}),e.addEventListener("touchend",p,{passive:!0}),r=e.href,g(e.href)},t),document.addEventListener("mouseover",function(t){if(performance.now()-s<1100)return;const e=t.target.closest("a");if(!f(e))return;e.addEventListener("mouseout",d,{passive:!0}),r=e.href,i=setTimeout(()=>{g(e.href),i=void 0},65)},t)}function p(){r=void 0,m()}function d(t){t.relatedTarget&&t.target.closest("a")==t.relatedTarget.closest("a")||(i?(clearTimeout(i),i=void 0):(r=void 0,m()))}function f(t){if(-1!=navigator.userAgent.search("Firefox")&&window.shotwellData["current-user-id"])return;if(!t||!t.href)return;if(r==t.href)return;const e=new URL(t.href);return!(!(h||e.origin==location.origin||"instant"in t.dataset)||!["http:","https:"].includes(e.protocol)||"http:"==e.protocol&&"https:"==location.protocol||!(c||!e.search||"instant"in t.dataset)||e.hash&&e.pathname+e.search==location.pathname+location.search||"noInstant"in t.dataset)||void 0}function g(t){o.includes(t)||(a.href=t,o.push(t))}function m(){a.removeAttribute("href")}},{}],"/srv/gulp/node_modules/raven-js/src/singleton.js":[function(t,e,n){"use strict";var r=t("./raven"),i=window.Raven,s=new r;s.noConflict=function(){return window.Raven=i,s},s.afterLoad(),e.exports=s},{"./raven":"/srv/gulp/node_modules/raven-js/src/raven.js"}],"/srv/gulp/node_modules/raven-js/src/raven.js":[function(t,e,n){"use strict";var r=t("../vendor/TraceKit/tracekit"),i=t("./configError"),s=t("./utils"),o=s.isFunction,a=s.isUndefined,l=s.isError,u=s.isEmptyObject,c=s.hasKey,h=s.joinRegExp,p=s.each,d=s.objectMerge,f=s.truncate,g=s.urlencode,m=s.uuid4,v=s.htmlTreeAsString,y=s.parseUrl,b=s.isString,_=t("./console").wrapMethod,w="source protocol user pass host port path".split(" "),x=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function S(){return+new Date}function k(){for(var t in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument="undefined"!=typeof document,this._lastCapturedException=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],crossOrigin:"anonymous",collectWindowErrors:!0,maxMessageLength:0,stackTraceLimit:50},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=window.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=S(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._breadcrumbLimit=20,this._lastCapturedEvent=null,this._keypressTimeout,this._location=window.location,this._lastHref=this._location&&this._location.href,this._originalConsole)this._originalConsoleMethods[t]=this._originalConsole[t]}k.prototype={VERSION:"3.0.4",debug:!1,TraceKit:r,config:function(t,e){var n=this;if(this._globalServer)return this._logDebug("error","Error: Raven has already been configured"),this;if(!t)return this;e&&p(e,function(t,e){"tags"===t||"extra"===t?n._globalContext[t]=e:n._globalOptions[t]=e});var i=this._parseDSN(t),s=i.path.lastIndexOf("/"),o=i.path.substr(1,s);return this._dsn=t,this._globalOptions.ignoreErrors.push(/^Script error\.?$/),this._globalOptions.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),this._globalOptions.ignoreErrors=h(this._globalOptions.ignoreErrors),this._globalOptions.ignoreUrls=!!this._globalOptions.ignoreUrls.length&&h(this._globalOptions.ignoreUrls),this._globalOptions.whitelistUrls=!!this._globalOptions.whitelistUrls.length&&h(this._globalOptions.whitelistUrls),this._globalOptions.includePaths=h(this._globalOptions.includePaths),this._globalKey=i.user,this._globalSecret=i.pass&&i.pass.substr(1),this._globalProject=i.path.substr(s+1),this._globalServer=this._getGlobalServer(i),this._globalEndpoint=this._globalServer+"/"+o+"api/"+this._globalProject+"/store/",this._globalOptions.fetchContext&&(r.remoteFetching=!0),this._globalOptions.linesOfContext&&(r.linesOfContext=this._globalOptions.linesOfContext),r.collectWindowErrors=!!this._globalOptions.collectWindowErrors,this},install:function(){var t=this;return this.isSetup()&&!this._isRavenInstalled&&(r.report.subscribe(function(){t._handleOnErrorStackInfo.apply(t,arguments)}),this._wrapBuiltIns(),this._drainPlugins(),this._isRavenInstalled=!0),Error.stackTraceLimit=this._globalOptions.stackTraceLimit,this},context:function(t,e,n){return o(t)&&(n=e||[],e=t,t=void 0),this.wrap(t,e).apply(this,n)},wrap:function(t,e,n){var r=this;if(a(e)&&!o(t))return t;if(o(t)&&(e=t,t=void 0),!o(e))return e;try{if(e.__raven__)return e}catch(t){return e}if(e.__raven_wrapper__)return e.__raven_wrapper__;function i(){var i=[],s=arguments.length,a=!t||t&&!1!==t.deep;for(n&&o(n)&&n.apply(this,arguments);s--;)i[s]=a?r.wrap(t,arguments[s]):arguments[s];try{return e.apply(this,i)}catch(e){throw r._ignoreNextOnError(),r.captureException(e,t),e}}for(var s in e)c(e,s)&&(i[s]=e[s]);return i.prototype=e.prototype,e.__raven_wrapper__=i,i.__raven__=!0,i.__inner__=e,i},uninstall:function(){return r.report.uninstall(),this._restoreBuiltIns(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},captureException:function(t,e){if(!l(t))return this.captureMessage(t,e);this._lastCapturedException=t;try{var n=r.computeStackTrace(t);this._handleStackInfo(n,e)}catch(e){if(t!==e)throw e}return this},captureMessage:function(t,e){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t))return this._send(d({message:t+""},e)),this},captureBreadcrumb:function(t){var e=d({timestamp:S()/1e3},t);this._breadcrumbs.push(e),this._breadcrumbs.length>this._breadcrumbLimit&&this._breadcrumbs.shift()},addPlugin:function(t){var e=Array.prototype.slice.call(arguments,1);return this._plugins.push([t,e]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(t){return this._globalContext.user=t,this},setExtraContext:function(t){return this._mergeContext("extra",t),this},setTagsContext:function(t){return this._mergeContext("tags",t),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(JSON.stringify(this._globalContext))},setRelease:function(t){return this._globalOptions.release=t,this},setDataCallback:function(t){return this._globalOptions.dataCallback=t,this},setShouldSendCallback:function(t){return this._globalOptions.shouldSendCallback=t,this},setTransport:function(t){return this._globalOptions.transport=t,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var t=window.RavenConfig;t&&this.config(t.dsn,t.config).install()},showReportDialog:function(t){if(window.document){var e=(t=t||{}).eventId||this.lastEventId();if(!e)throw new i("Missing eventId");var n=t.dsn||this._dsn;if(!n)throw new i("Missing DSN");var r=encodeURIComponent,s="";s+="?eventId="+r(e),s+="&dsn="+r(n);var o=t.user||this._globalContext.user;o&&(o.name&&(s+="&name="+r(o.name)),o.email&&(s+="&email="+r(o.email)));var a=this._getGlobalServer(this._parseDSN(n)),l=document.createElement("script");l.async=!0,l.src=a+"/api/embed/error-page/"+s,(document.head||document.body).appendChild(l)}},_ignoreNextOnError:function(){var t=this;this._ignoreOnError+=1,setTimeout(function(){t._ignoreOnError-=1})},_triggerEvent:function(t,e){var n,r;if(this._hasDocument){for(r in e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),document.createEvent?(n=document.createEvent("HTMLEvents")).initEvent(t,!0,!0):(n=document.createEventObject()).eventType=t,e)c(e,r)&&(n[r]=e[r]);if(document.createEvent)document.dispatchEvent(n);else try{document.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(t){}}},_breadcrumbEventHandler:function(t){var e=this;return function(n){if(e._keypressTimeout=null,e._lastCapturedEvent!==n){e._lastCapturedEvent=n;var r,i=n.target;try{r=v(i)}catch(t){r=""}e.captureBreadcrumb({category:"ui."+t,message:r})}}},_keypressEventHandler:function(){var t=this;return function(e){var n=e.target,r=n&&n.tagName;if(r&&("INPUT"===r||"TEXTAREA"===r)){var i=t._keypressTimeout;i||t._breadcrumbEventHandler("input")(e),clearTimeout(i),t._keypressTimeout=setTimeout(function(){t._keypressTimeout=null},1e3)}}},_captureUrlChange:function(t,e){var n=y(this._location.href),r=y(e),i=y(t);this._lastHref=e,n.protocol===r.protocol&&n.host===r.host&&(e=r.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:e,from:t}})},_wrapBuiltIns:function(){var t=this;function e(e,n,r,i){var s=e[n];e[n]=r(s),i||t._wrappedBuiltIns.push([e,n,s])}function n(e){return function(n,r){for(var i=new Array(arguments.length),s=0;s2?arguments[2]:void 0;return n&&t._captureUrlChange(t._lastHref,n+""),e.apply(this,arguments)}})}var c=function(e,n){t.captureBreadcrumb({message:e,level:n.level,category:"console"})};"console"in window&&console.log&&p(["debug","info","warn","error","log"],function(t,e){_(console,e,c)});var h=window.jQuery||window.$;h&&h.fn&&h.fn.ready&&e(h.fn,"ready",function(e){return function(n){return e.call(this,t.wrap(n))}})},_restoreBuiltIns:function(){for(var t;this._wrappedBuiltIns.length;){var e=(t=this._wrappedBuiltIns.shift())[0],n=t[1],r=t[2];e[n]=r}},_drainPlugins:function(){var t=this;p(this._plugins,function(e,n){var r=n[0],i=n[1];r.apply(t,[t].concat(i))})},_parseDSN:function(t){var e=x.exec(t),n={},r=7;try{for(;r--;)n[w[r]]=e[r]||""}catch(e){throw new i("Invalid DSN: "+t)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new i("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(t){var e="//"+t.host+(t.port?":"+t.port:"");return t.protocol&&(e=t.protocol+":"+e),e},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(t,e){var n=this,r=[];t.stack&&t.stack.length&&p(t.stack,function(t,e){var i=n._normalizeFrame(e);i&&r.push(i)}),this._triggerEvent("handle",{stackInfo:t,options:e}),this._processException(t.name,t.message,t.url,t.lineno,r.slice(0,this._globalOptions.stackTraceLimit),e)},_normalizeFrame:function(t){if(t.url){var e,n={filename:t.url,lineno:t.line,colno:t.column,function:t.func||"?"},r=this._extractContextFromFrame(t);if(r){var i=["pre_context","context_line","post_context"];for(e=3;e--;)n[i[e]]=r[e]}return n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n}},_extractContextFromFrame:function(t){if(t.context&&this._globalOptions.fetchContext){for(var e=t.context,n=~~(e.length/2),r=e.length,i=!1;r--;)if(e[r].length>300){i=!0;break}if(i){if(a(t.column))return;return[[],e[n].substr(t.column,50),[]]}return[e.slice(0,n),e[n],e.slice(n+1)]}},_processException:function(t,e,n,r,i,s){var o,a;if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e))&&(e=f(e+="",this._globalOptions.maxMessageLength),a=f(a=(t?t+": ":"")+e,this._globalOptions.maxMessageLength),i&&i.length?(n=i[0].filename||n,i.reverse(),o={frames:i}):n&&(o={frames:[{filename:n,lineno:r,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var l=d({exception:{values:[{type:t,value:e,stacktrace:o}]},culprit:n,message:a},s);this._send(l)}},_trimPacket:function(t){var e=this._globalOptions.maxMessageLength;if(t.message=f(t.message,e),t.exception){var n=t.exception.values[0];n.value=f(n.value,e)}return t},_getHttpData:function(){if(this._hasDocument&&document.location&&document.location.href){var t={headers:{"User-Agent":navigator.userAgent}};return t.url=document.location.href,document.referrer&&(t.headers.Referer=document.referrer),t}},_send:function(t){var e=this,n=this._globalOptions,r={project:this._globalProject,logger:n.logger,platform:"javascript"},i=this._getHttpData();if(i&&(r.request=i),(t=d(r,t)).tags=d(d({},this._globalContext.tags),t.tags),t.extra=d(d({},this._globalContext.extra),t.extra),t.extra["session:duration"]=S()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(t.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),u(t.tags)&&delete t.tags,this._globalContext.user&&(t.user=this._globalContext.user),n.release&&(t.release=n.release),n.serverName&&(t.server_name=n.serverName),o(n.dataCallback)&&(t=n.dataCallback(t)||t),t&&!u(t)&&(!o(n.shouldSendCallback)||n.shouldSendCallback(t))&&(this._lastEventId=t.event_id||(t.event_id=m()),t=this._trimPacket(t),this._logDebug("debug","Raven about to send:",t),this.isSetup())){var s={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(s.sentry_secret=this._globalSecret),this.captureBreadcrumb({category:"sentry",message:t.message,event_id:t.event_id});var a=this._globalEndpoint;(n.transport||this._makeRequest).call(this,{url:a,auth:s,data:t,options:n,onSuccess:function(){e._triggerEvent("success",{data:t,src:a})},onError:function(){e._triggerEvent("failure",{data:t,src:a})}})}},_makeRequest:function(t){var e=new XMLHttpRequest;if("withCredentials"in e||"undefined"!=typeof XDomainRequest){var n=t.url;"withCredentials"in e?e.onreadystatechange=function(){4===e.readyState&&r()}:(e=new XDomainRequest,n=n.replace(/^https?:/,""),e.onload=r),e.open("POST",n+"?"+g(t.auth)),e.send(JSON.stringify(t.data))}function r(){200===e.status?t.onSuccess&&t.onSuccess():t.onError&&t.onError()}},_newImage:function(){return document.createElement("img")},_logDebug:function(t){this._originalConsoleMethods[t]&&this.debug&&Function.prototype.apply.call(this._originalConsoleMethods[t],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(t,e){a(e)?delete this._globalContext[t]:this._globalContext[t]=d(this._globalContext[t]||{},e)}},k.prototype.setUser=k.prototype.setUserContext,k.prototype.setReleaseContext=k.prototype.setRelease,e.exports=k},{"../vendor/TraceKit/tracekit":"/srv/gulp/node_modules/raven-js/vendor/TraceKit/tracekit.js","./configError":"/srv/gulp/node_modules/raven-js/src/configError.js","./console":"/srv/gulp/node_modules/raven-js/src/console.js","./utils":"/srv/gulp/node_modules/raven-js/src/utils.js"}],"/srv/gulp/node_modules/raven-js/vendor/TraceKit/tracekit.js":[function(t,e,n){"use strict";var r=t("../../src/utils"),i=r.hasKey,s=r.isString,o=r.isUndefined,a={remoteFetching:!1,collectWindowErrors:!0,linesOfContext:7,debug:!1},l=[].slice,u="?",c=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function h(){return"undefined"==typeof document?"":document.location.href}a.report=function(){var t,e,n=[],r=null,o=null,p=null;function d(t,e){var r=null;if(!e||a.collectWindowErrors){for(var s in n)if(i(n,s))try{n[s].apply(null,[t].concat(l.call(arguments,2)))}catch(t){r=t}if(r)throw r}}function f(e,n,r,i,o){if(p)a.computeStackTrace.augmentStackTraceWithInitialElement(p,n,r,e),g();else if(o)d(a.computeStackTrace(o),!0);else{var l,f={url:n,line:r,column:i},m=void 0,v=e;if(s(e))(l=e.match(c))&&(m=l[1],v=l[2]);f.func=u,f.context=null,d({name:m,message:v,url:h(),stack:[f]},!0)}return!!t&&t.apply(this,arguments)}function g(){var t=p,e=r;r=null,p=null,o=null,d.apply(null,[t,!1].concat(e))}function m(t,e){var n=l.call(arguments,1);if(p){if(o===t)return;g()}var i=a.computeStackTrace(t);if(p=i,o=t,r=n,window.setTimeout(function(){o===t&&g()},i.incomplete?2e3:0),!1!==e)throw t}return m.subscribe=function(r){e||(t=window.onerror,window.onerror=f,e=!0),n.push(r)},m.unsubscribe=function(t){for(var e=n.length-1;e>=0;--e)n[e]===t&&n.splice(e,1)},m.uninstall=function(){e&&(window.onerror=t,e=!1,t=void 0),n=[]},m}(),a.computeStackTrace=function(){function t(t){if(!o(t.stack)&&t.stack){for(var e,n,r=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=t.stack.split("\n"),l=[],c=(/^(.*) is undefined$/.exec(t.message),0),p=a.length;c0&&t.stack[0].url===i.url){if(t.stack[0].line===i.line)return!1;if(!t.stack[0].line&&t.stack[0].func===i.func)return t.stack[0].line=i.line,t.stack[0].context=i.context,!1}return t.stack.unshift(i),t.partial=!0,!0}return t.incomplete=!0,!1}function n(t,i){for(var s,o,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],p={},d=!1,f=n.caller;f&&!d;f=f.caller)if(f!==r&&f!==a.report){if(o={url:null,func:u,line:null,column:null},f.name?o.func=f.name:(s=l.exec(f.toString()))&&(o.func=s[1]),void 0===o.func)try{o.func=s.input.substring(0,s.input.indexOf("{"))}catch(t){}p[""+f]?d=!0:p[""+f]=!0,c.push(o)}i&&c.splice(0,i);var g={name:t.name,message:t.message,url:h(),stack:c};return e(g,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),g}function r(e,r){var i=null;r=null==r?0:+r;try{if(i=function(t){var e=t.stacktrace;if(!o(t.stacktrace)&&t.stacktrace){for(var n,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,s=e.split("\n"),a=[],l=0;l ".length;t&&r++<5&&!("html"===(e=u(t))||r>1&&i+n.length*s+e.length>=80);)n.push(e),i+=e.length,t=t.parentNode;return n.reverse().join(" > ")},htmlElementAsString:u,parseUrl:function(t){var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{protocol:e[2],host:e[4],path:e[5],relative:e[5]+n+r}}}},{}],"/srv/gulp/node_modules/raven-js/src/console.js":[function(t,e,n){"use strict";e.exports={wrapMethod:function(t,e,n){var r=t[e],i=t;if(e in t){var s="warn"===e?"warning":e;t[e]=function(){var t=[].slice.call(arguments),e=""+t.join(" ");n&&n(e,{level:s,logger:"console",extra:{arguments:t}}),r&&Function.prototype.apply.call(r,i,t)}}}}},{}],"/srv/gulp/node_modules/raven-js/src/configError.js":[function(t,e,n){"use strict";function r(t){this.name="RavenConfigError",this.message=t}r.prototype=new Error,r.prototype.constructor=r,e.exports=r},{}],"/srv/gulp/node_modules/bootstrap-sass/assets/javascripts/bootstrap.js":[function(t,e,n){if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,r=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(r).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(e){var r=t(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""));var s=t("#"===i?[]:i);function o(){s.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),s.length||(s=r.closest(".alert")),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o())};var r=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var r=t(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof e&&i[e].call(r)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=r,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery),function(t){"use strict";var e=function(n,r){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each(function(){var r=t(this),i=r.data("bs.button"),s="object"==typeof n&&n;i||r.data("bs.button",i=new e(this,s)),"toggle"==n?i.toggle():n&&i.setState(n)})}e.VERSION="3.3.7",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",s=r.data();e+="Text",null==s.resetText&&r.data("resetText",r[i]()),setTimeout(t.proxy(function(){r[i](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=t.fn.button;t.fn.button=n,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=r,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var r=t(e.target).closest(".btn");n.call(r,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function n(n){return this.each(function(){var r=t(this),i=r.data("bs.carousel"),s=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n),o="string"==typeof n?n:s.slide;i||r.data("bs.carousel",i=new e(this,s)),"number"==typeof n?i.to(n):o?i[o]():s.interval&&i.pause().cycle()})}e.VERSION="3.3.7",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var r=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(r)},e.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),s=r||this.getItemForDirection(n,i),o=this.interval,a="next"==n?"left":"right",l=this;if(s.hasClass("active"))return this.sliding=!1;var u=s[0],c=t.Event("slide.bs.carousel",{relatedTarget:u,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(s)]);h&&h.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:u,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(n),s[0].offsetWidth,i.addClass(a),s.addClass(a),i.one("bsTransitionEnd",function(){s.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)):(i.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(p)),o&&this.cycle(),this}};var r=t.fn.carousel;t.fn.carousel=n,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=r,this};var i=function(e){var r,i=t(this),s=t(i.attr("data-target")||(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("carousel")){var o=t.extend({},s.data(),i.data()),a=i.attr("data-slide-to");a&&(o.interval=!1),n.call(s,o),a&&s.data("bs.carousel").to(a),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";var e=function(n,r){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,r),this.$trigger=t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(e){var n,r=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(r)}function r(n){return this.each(function(){var r=t(this),i=r.data("bs.collapse"),s=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&s.toggle&&/show|hide/.test(n)&&(s.toggle=!1),i||r.data("bs.collapse",i=new e(this,s)),"string"==typeof n&&i[n]()})}e.VERSION="3.3.7",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var s=t.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[o](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=t.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",t.proxy(i,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(e,r){var i=t(r);this.addAriaAndCollapsedClass(n(i),i)},this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=t.fn.collapse;t.fn.collapse=r,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var i=t(this);i.attr("data-target")||e.preventDefault();var s=n(i),o=s.data("bs.collapse")?"toggle":i.data();r.call(s,o)})}(jQuery),function(t){"use strict";var e=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};function i(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&t(n);return r&&r.length?r:e.parent()}function s(r){r&&3===r.which||(t(e).remove(),t(n).each(function(){var e=t(this),n=i(e),s={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&t.contains(n[0],r.target)||(n.trigger(r=t.Event("hide.bs.dropdown",s)),r.isDefaultPrevented()||(e.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",s)))))}))}r.VERSION="3.3.7",r.prototype.toggle=function(e){var n=t(this);if(!n.is(".disabled, :disabled")){var r=i(n),o=r.hasClass("open");if(s(),!o){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",s);var a={relatedTarget:this};if(r.trigger(e=t.Event("show.bs.dropdown",a)),e.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var r=t(this);if(e.preventDefault(),e.stopPropagation(),!r.is(".disabled, :disabled")){var s=i(r),o=s.hasClass("open");if(!o&&27!=e.which||o&&27==e.which)return 27==e.which&&s.find(n).trigger("focus"),r.trigger("click");var a=s.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var l=a.index(e.target);38==e.which&&l>0&&l--,40==e.which&&ldocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,n,r){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),s=i.length;s--;){var o=i[s];if("click"==o)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,r){n[t]!=r&&(e[t]=r)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},e.prototype.show=function(){var n=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var r=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!r)return;var i=this,s=this.tip(),o=this.getUID(this.type);this.setContent(),s.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&s.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(a);u&&(a=a.replace(l,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),h=s[0].offsetWidth,p=s[0].offsetHeight;if(u){var d=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+p>f.bottom?"top":"top"==a&&c.top-pf.width?"left":"left"==a&&c.left-ho.top+o.height&&(i.top=o.top+o.height-l)}else{var u=e.left-s,c=e.left+s+n;uo.right&&(i.left=o.left+o.width-c)}return i},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var r=t(this),i=r.data("bs.tooltip"),s="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.tooltip",i=new e(this,s)),"string"==typeof n&&i[n]())})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.3.7",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var r=t(this),i=r.data("bs.popover"),s="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new e(this,s)),"string"==typeof n&&i[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(n,r){this.$body=t(document.body),this.$scrollElement=t(n).is(document.body)?t(window):t(n),this.options=t.extend({},e.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var r=t(this),i=r.data("bs.scrollspy"),s="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new e(this,s)),"string"==typeof n&&i[n]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),i=e.data("target")||e.attr("href"),s=/^#./.test(i)&&t(i);return s&&s.length&&s.is(":visible")&&[[s[n]().top+r,i]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,s=this.targets,o=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=r)return o!=(t=s[s.length-1])&&this.activate(t);if(o&&e=i[t]&&(void 0===i[t+1]||e .active"),o=i&&t.support.transition&&(s.length&&s.hasClass("fade")||!!r.find("> .fade").length);function a(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}s.length&&o?s.one("bsTransitionEnd",a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),s.removeClass("in")};var r=t.fn.tab;t.fn.tab=n,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=r,this};var i=function(e){e.preventDefault(),n.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(t){"use strict";var e=function(n,r){this.options=t.extend({},e.DEFAULTS,r),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var r=t(this),i=r.data("bs.affix"),s="object"==typeof n&&n;i||r.data("bs.affix",i=new e(this,s)),"string"==typeof n&&i[n]()})}e.VERSION="3.3.7",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,r){var i=this.$target.scrollTop(),s=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return i=t-r&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,s=r.bottom,o=Math.max(t(document).height(),t(document.body).height());"object"!=typeof r&&(s=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof s&&(s=r.bottom(this.$element));var a=this.getState(o,n,i,s);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:o-n-s})}};var r=t.fn.affix;t.fn.affix=n,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=r,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),r=e.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(e,r)})})}(jQuery)},{}],"/srv/gulp/app/scripts/xhr.js":[function(t,e,n){"use strict";var r;r=t("jquery");var i=t("./utils.js").getCsrfToken();r.ajaxSetup({beforeSend:function(t,e){var n;n=e.type,/^(GET|HEAD|OPTIONS|TRACE)$/.test(n)||this.crossDomain||t.setRequestHeader("X-CSRFToken",i)}})},{"./utils.js":"/srv/gulp/app/scripts/utils.js",jquery:"/srv/gulp/node_modules/jquery/dist/jquery.js"}],"/srv/gulp/app/scripts/ui.js":[function(t,e,n){"use strict";var r,i;r=t("jquery");var s=t("mousetrap"),o=t("./bootstrap-constants.js").breakpoints;function a(){var t;r(window).width() .container").outerWidth())/2,n=parseInt(r("body > .container").css("padding-right"),10);t.css("right",e+n)}).on("affix-top.bs.affix",function(){t.css("right","0px")}),a(),r(window).resize(function(){var t=r(".control-bar.btn-group.affix");if(t){var e=(r("body").outerWidth(!0)-r("body > .container").outerWidth())/2,n=parseInt(r("body > .container").css("padding-right"),10);t.css("right",e+n),a()}}),r(window).load(function(){var t=r(".control-bar")[0].getBoundingClientRect().width;r(".control-bar .dropdown-menu").css("min-width",t+"px")}))},e.exports.no_blur_on_click=function(){r("body").on("click","button, a.btn",function(t){"mouse"!=i.ask()&&"touch"!=i.ask()||r(t.target).blur()})},e.exports.setup_hotkeys=function(){s.bind("/",function(){return r("#site-search").focus(),!1})},e.exports.general=function(){r(".signout-button").click(function(t){t.preventDefault();var e=r(t.target).data("url");r.post(e,function(){window.location.reload()})}),r('a[data-toggle="tab"]').on("click",function(t){history.pushState(null,null,r(t.target).attr("href"))}),window.addEventListener("popstate",function(t){l()}),l(),r("#show-non-encyclopedia").change(function(t){var e=window.location.hash;"#recently-added"==window.location.hash&&(e=""),t.target.checked?window.location.href=window.location.pathname+"?all=1"+e:window.location.href=window.location.pathname+e}),r('#explore-main a[data-toggle="tab"]').on("shown.bs.tab",function(t){"#recently-added"!=r(t.target).attr("href")?r("#show-non-encyclopedia").prop("disabled",!0):r("#show-non-encyclopedia").prop("disabled",!1)}),r(".first-link-on-click").each(function(t,e){var n=r(e).find("a").attr("href");r(e).css("cursor","pointer"),r(e).click(function(t){t.metaKey?window.open(n,"_blank"):window.location.href=n})})}},{"./bootstrap-constants.js":"/srv/gulp/app/scripts/bootstrap-constants.js",jquery:"/srv/gulp/node_modules/jquery/dist/jquery.js",mousetrap:"/srv/gulp/node_modules/mousetrap/mousetrap.js","what-input":"/srv/gulp/node_modules/what-input/dist/what-input.js"}],"/srv/gulp/node_modules/what-input/dist/what-input.js":[function(t,e,n){var r,i;r=this,i=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e){"use strict";t.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var t=document.documentElement,e=null,n="initial",r=n,i=Date.now(),s="false",o=["button","input","select","textarea"],a=[],l=[16,17,18,91,93],u=[],c={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},h=!1,p={x:null,y:null},d={2:"touch",3:"touch",4:"mouse"},f=!1;try{var g=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,g)}catch(t){}var m=function(){var t=!!f&&{passive:!0};document.addEventListener("DOMContentLoaded",v),window.PointerEvent?(window.addEventListener("pointerdown",y),window.addEventListener("pointermove",_)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",y),window.addEventListener("MSPointerMove",_)):(window.addEventListener("mousedown",y),window.addEventListener("mousemove",_),"ontouchstart"in window&&(window.addEventListener("touchstart",y,t),window.addEventListener("touchend",y))),window.addEventListener(C(),_,t),window.addEventListener("keydown",y),window.addEventListener("keyup",y),window.addEventListener("focusin",w),window.addEventListener("focusout",x)},v=function(){if(s=!(t.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(t){}b("input"),b("intent")},y=function(t){var e=t.which,i=c[t.type];"pointer"===i&&(i=k(t));var s=!u.length&&-1===l.indexOf(e),a=u.length&&-1!==u.indexOf(e),h="keyboard"===i&&e&&(s||a)||"mouse"===i||"touch"===i;if(j(i)&&(h=!1),h&&n!==i&&(S("input",n=i),b("input")),h&&r!==i){var p=document.activeElement;p&&p.nodeName&&(-1===o.indexOf(p.nodeName.toLowerCase())||"button"===p.nodeName.toLowerCase()&&!P(p,"form"))&&(S("intent",r=i),b("intent"))}},b=function(e){t.setAttribute("data-what"+e,"input"===e?n:r),E(e)},_=function(t){var e=c[t.type];"pointer"===e&&(e=k(t)),A(t),(!h&&!j(e)||h&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(S("intent",r=e),b("intent"))},w=function(n){n.target.nodeName?(e=n.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",e),n.target.classList&&n.target.classList.length&&t.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):x()},x=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},S=function(t,e){if(s)try{window.sessionStorage.setItem("what-"+t,e)}catch(t){}},k=function(t){return"number"==typeof t.pointerType?d[t.pointerType]:"pen"===t.pointerType?"touch":t.pointerType},j=function(t){var e=Date.now(),r="mouse"===t&&"touch"===n&&e-i<200;return i=e,r},C=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},E=function(t){for(var e=0,i=a.length;e":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},u=1;u<20;++u)s[111+u]="f"+u;for(u=0;u<=9;++u)s[u+96]=u.toString();g.prototype.bind=function(t,e,n){return t=t instanceof Array?t:[t],this._bindMultiple.call(this,t,e,n),this},g.prototype.unbind=function(t,e){return this.bind.call(this,t,function(){},e)},g.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},g.prototype.reset=function(){return this._callbacks={},this._directMap={},this},g.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function t(e,r){return null!==e&&e!==n&&(e===r||t(e.parentNode,r))}(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var r=t.composedPath()[0];r!==t.target&&(e=r)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},g.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},g.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(s[e]=t[e]);i=null},g.init=function(){var t=g(n);for(var e in t)"_"!==e.charAt(0)&&(g[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},g.init(),t.Mousetrap=g,void 0!==e&&e.exports&&(e.exports=g),"function"==typeof define&&define.amd&&define(function(){return g})}function c(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function h(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return s[t.which]?s[t.which]:o[t.which]?o[t.which]:String.fromCharCode(t.which).toLowerCase()}function p(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function d(t,e,n){return n||(n=function(){if(!i)for(var t in i={},s)t>95&&t<112||s.hasOwnProperty(t)&&(i[s[t]]=t);return i}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function f(t,e){var n,r,i,s=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),i=0;i1?v(t,a,n,r):(o=f(t,r),e._callbacks[o.key]=e._callbacks[o.key]||[],u(o.key,o.modifiers,{type:o.action},i,t,s),e._callbacks[o.key][i?"unshift":"push"]({callback:n,modifiers:o.modifiers,action:o.action,seq:i,level:s,combo:t}))}e._handleKey=function(t,e,n){var r,i=u(t,e,n),s={},c=0,h=!1;for(r=0;r
{{value}}
{{/if}} {{#if is_repo}}
@{{username}}/{{repo_title}}
{{/if}} {{#if is_user}}
{{#if has_separator}}{{/if}}
{{full_name}}@{{username}}
{{/if}} ')}}),r("#site-search").bind("typeahead:select",function(t,e){window.location=e.absolute_url}),r("#site-search").focus(function(){r("#site-search").closest(".search-autocomplete-menu").addClass("style-focused")}),r("#site-search").focusout(function(){r("#site-search").closest(".search-autocomplete-menu").removeClass("style-focused")})}},{"./utils.js":"/srv/gulp/app/scripts/utils.js",handlebars:"/srv/gulp/node_modules/handlebars/lib/index.js",jquery:"/srv/gulp/node_modules/jquery/dist/jquery.js","typeahead-1-browserify":"/srv/gulp/node_modules/typeahead-1-browserify/index.js"}],"/srv/gulp/node_modules/typeahead-1-browserify/index.js":[function(t,e,n){e.exports={Bloodhound:t("corejs-typeahead/dist/bloodhound.js"),loadjQueryPlugin:function(){t("corejs-typeahead")}}},{"corejs-typeahead":"/srv/gulp/node_modules/corejs-typeahead/dist/typeahead.bundle.js","corejs-typeahead/dist/bloodhound.js":"/srv/gulp/node_modules/corejs-typeahead/dist/bloodhound.js"}],"/srv/gulp/node_modules/corejs-typeahead/dist/typeahead.bundle.js":[function(t,e,n){(function(n){(function(){var r,i;r=this,i=function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function(t){return e.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,n){t.each(e,function(t,e){return n(e,t)})},map:t.map,filter:t.grep,every:function(e,n){var r=!0;return e?(t.each(e,function(t,i){if(!(r=n.call(null,i,t,e)))return!1}),!!r):r},some:function(e,n){var r=!1;return e?(t.each(e,function(t,i){if(r=n.call(null,i,t,e))return!1}),!!r):r},mixin:t.extend,identity:function(t){return t},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(e){return t.isFunction(e)?e:function(){return String(e)}},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var r,i;return function(){var s,o,a=this,l=arguments;return s=function(){r=null,n||(i=t.apply(a,l))},o=n&&!r,clearTimeout(r),r=setTimeout(s,e),o&&(i=t.apply(a,l)),i}},throttle:function(t,e){var n,r,i,s,o,a;return o=0,a=function(){o=new Date,i=null,s=t.apply(n,r)},function(){var l=new Date,u=e-(l-o);return n=this,r=arguments,u<=0?(clearTimeout(i),i=null,o=l,s=t.apply(n,r)):i||(i=setTimeout(a,u)),s}},stringify:function(t){return e.isString(t)?t:JSON.stringify(t)},guid:function(){function t(t){var e=(Math.random().toString(16)+"000000000").substr(2,8);return t?"-"+e.substr(0,4)+"-"+e.substr(4,4):e}return"tt-"+t()+t(!0)+t(!0)+t()},noop:function(){}}}(),n="1.3.1",r=function(){"use strict";return{nonword:n,whitespace:t,ngram:r,obj:{nonword:i(n),whitespace:i(t),ngram:i(r)}};function t(t){return(t=e.toStr(t))?t.split(/\s+/):[]}function n(t){return(t=e.toStr(t))?t.split(/\W+/):[]}function r(t){t=e.toStr(t);var n=[],r="";return e.each(t.split(""),function(t){t.match(/\s+/)?r="":(n.push(r+t),r+=t)}),n}function i(t){return function(n){return n=e.isArray(n)?n:[].slice.call(arguments,0),function(r){var i=[];return e.each(n,function(n){i=i.concat(t(e.toStr(r[n])))}),i}}}}(),i=function(){"use strict";function n(n){this.maxSize=e.isNumber(n)?n:100,this.reset(),this.maxSize<=0&&(this.set=this.get=t.noop)}function r(){this.head=this.tail=null}function i(t,e){this.key=t,this.val=e,this.prev=this.next=null}return e.mixin(n.prototype,{set:function(t,e){var n,r=this.list.tail;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key],this.size--),(n=this.hash[t])?(n.val=e,this.list.moveToFront(n)):(n=new i(t,e),this.list.add(n),this.hash[t]=n,this.size++)},get:function(t){var e=this.hash[t];if(e)return this.list.moveToFront(e),e.val},reset:function(){this.size=0,this.hash={},this.list=new r}}),e.mixin(r.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),n}(),s=function(){"use strict";var n;try{(n=window.localStorage).setItem("~~~","!"),n.removeItem("~~~")}catch(t){n=null}function r(t,r){this.prefix=["__",t,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+e.escapeRegExChars(this.prefix)),this.ls=r||n,!this.ls&&this._noop()}return e.mixin(r.prototype,{_prefix:function(t){return this.prefix+t},_ttlKey:function(t){return this._prefix(t)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=e.noop},_safeSet:function(t,e){try{this.ls.setItem(t,e)}catch(t){"QuotaExceededError"===t.name&&(this.clear(),this._noop())}},get:function(t){return this.isExpired(t)&&this.remove(t),o(this.ls.getItem(this._prefix(t)))},set:function(t,n,r){return e.isNumber(r)?this._safeSet(this._ttlKey(t),s(i()+r)):this.ls.removeItem(this._ttlKey(t)),this._safeSet(this._prefix(t),s(n))},remove:function(t){return this.ls.removeItem(this._ttlKey(t)),this.ls.removeItem(this._prefix(t)),this},clear:function(){var t,e=function(t){var e,r,i=[],s=n.length;for(e=0;en)}}),r;function i(){return(new Date).getTime()}function s(t){return JSON.stringify(e.isUndefined(t)?null:t)}function o(e){return t.parseJSON(e)}}(),o=function(){"use strict";var n=0,r={},s=new i(10);function o(t){t=t||{},this.maxPendingRequests=t.maxPendingRequests||6,this.cancelled=!1,this.lastReq=null,this._send=t.transport,this._get=t.limiter?t.limiter(this._get):this._get,this._cache=!1===t.cache?new i(0):s}return o.setMaxPendingRequests=function(t){this.maxPendingRequests=t},o.resetCache=function(){s.reset()},e.mixin(o.prototype,{_fingerprint:function(e){return(e=e||{}).url+e.type+t.param(e.data||{})},_get:function(t,e){var i,s,o=this;function a(t){e(null,t),o._cache.set(i,t)}function l(){e(!0)}i=this._fingerprint(t),this.cancelled||i!==this.lastReq||((s=r[i])?s.done(a).fail(l):ne[r]?r++:(i.push(t[n]),n++,r++);return i}(o,l):l;else if(!a.matchAnyQueryToken)return o=[],!1}),o?e.map(function(t){for(var e={},n=[],r=0,i=t.length;r',menu:'
'}),selectors:n(o)}).css,html:s.html,classes:s.classes,selectors:s.selectors,mixin:function(t){e.mixin(t,s)}};var a};function n(t){var n={};return e.each(t,function(t,e){n[e]="."+t}),n}function r(){var t={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return e.isMsie()&&e.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t}}(),i=function(){"use strict";var n;function r(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}return"typeahead:",n={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},e.mixin(r.prototype,{_trigger:function(e,n){var r=t.Event("typeahead:"+e);return this.$el.trigger.call(this.$el,r,n||[]),r},before:function(t){var e;return e=[].slice.call(arguments,1),this._trigger("before"+t,e).isDefaultPrevented()},trigger:function(t){var e;this._trigger(t,[].slice.call(arguments,1)),(e=n[t])&&this._trigger(e,[].slice.call(arguments,1))}}),r}(),s=function(){"use strict";var t=/\s+/,e=function(){var t;t=window.setImmediate?function(t){n(function(){t()})}:function(t){setTimeout(function(){t()},0)};return t}();return{onSync:function(t,e,n){return r.call(this,"sync",t,e,n)},onAsync:function(t,e,n){return r.call(this,"async",t,e,n)},off:function(e){var n;if(!this._callbacks)return this;e=e.split(t);for(;n=e.shift();)delete this._callbacks[n];return this},trigger:function(n){var r,s,o,a,l;if(!this._callbacks)return this;n=n.split(t),o=[].slice.call(arguments,1);for(;(r=n.shift())&&(s=this._callbacks[r]);)a=i(s.sync,this,[r].concat(o)),l=i(s.async,this,[r].concat(o)),a()&&e(l);return this}};function r(e,n,r,i){var s;if(!r)return this;for(n=n.split(t),r=i?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(r,i):r,this._callbacks=this._callbacks||{};s=n.shift();)this._callbacks[s]=this._callbacks[s]||{sync:[],async:[]},this._callbacks[s][e].push(r);return this}function i(t,e,n){return function(){for(var r,i=0,s=t.length;!r&&i