blue-twilight/public/js/blue-twilight.min.js

10 lines
305 KiB
JavaScript
Raw Normal View History

function AnalyseAlbumViewModel(){this.el="#analyse-album",this.data={imagesFailed:[],imagesToAnalyse:[],imagesInProgress:[],imagesRecentlyCompleted:[],numberSuccessful:0,numberFailed:0},this.computed={failedPercentage:function(){var t=0;return this.numberTotal>0&&(t=this.numberFailed/this.numberTotal*100),t.toFixed(2)+"%"},isCompleted:function(){return this.numberTotal>0&&this.numberSuccessful+this.numberFailed>=this.numberTotal},latestCompletedImages:function(){var t=this.imagesRecentlyCompleted.length-3<0?0:this.imagesRecentlyCompleted.length-3,e=t+3;return this.imagesRecentlyCompleted.slice(t,e)},numberTotal:function(){return this.imagesToAnalyse.length},successfulPercentage:function(){var t=0;return this.numberTotal>0&&(t=this.numberSuccessful/this.numberTotal*100),t.toFixed(2)+"%"}},this.methods={analyseImage:function(t){var e=this;this.imagesToAnalyse.push(t),$.ajax(t.url,{beforeSend:function(){e.imagesInProgress.push(t)},dataType:"json",error:function(n,i,r){e.numberFailed++,e.imagesFailed.push({name:t.name,reason:i}),t.isSuccessful=!1,t.isPending=!1},method:"POST",success:function(n){if(n.is_successful){e.numberSuccessful++,t.isSuccessful=!0,t.isPending=!1,e.imagesRecentlyCompleted.push(t);var i=e.imagesInProgress.indexOf(t);i>-1&&e.imagesInProgress.splice(i,1)}else e.numberFailed++,e.imagesFailed.push({name:t.name,reason:n.message}),t.isSuccessful=!1,t.isPending=!1}})}}}function AnalyseImageViewModel(t){this.isPending=!0,this.isSuccessful=!1,this.name=t.name,this.photoID=t.photo_id,this.url=t.url}function EditPhotosViewModel(t,e,n){this.el="#photos-tab",this.data={albums:[],bulkModifyMethod:"",isSubmitting:!1,photoIDs:[],photoIDsAvailable:[],selectAllInAlbum:0},this.methods={bulkModifySelected:function(t){if(this.isSubmitting)return!0;var n=this,i=$(t.target).closest("form");return"change_album"===this.bulkModifyMethod?(this.promptForNewAlbum(function(t){var e=$("select",t).val();$('input[name="new-album-id"]',i).val(e),n.isSubmitting=!0,$('button[name="bulk-apply"]',i).click(),_bt_showLoadingModal()}),t.preventDefault(),!1):"delete"!==this.bulkModifyMethod||(bootbox.dialog({message:e.delete_bulk_confirm_message,title:e.delete_bulk_confirm_title,buttons:{cancel:{label:e.action_cancel,className:"btn-secondary"},confirm:{label:e.action_delete,className:"btn-danger",callback:function(){n.isSubmitting=!0,$('button[name="bulk-apply"]',i).click(),_bt_showLoadingModal()}}}}),t.preventDefault(),!1)},changeAlbum:function(t){this.selectPhotoSingle(t.target);var e=this.photoIDs[0];return this.photoIDs=[],this.promptForNewAlbum(function(t){var i=$("select",t).val();$.post(n.move_photo.replace(/\/0$/,"/"+e),{new_album_id:i},function(){window.location.reload()})}),t.preventDefault(),!1},deletePhoto:function(t){var i=this;this.selectPhotoSingle(t.target);var r=i.photoIDs[0];return this.photoIDs=[],bootbox.dialog({message:e.delete_confirm_message,title:e.delete_confirm_title,buttons:{cancel:{label:e.action_cancel,className:"btn-secondary"},confirm:{label:e.action_delete,className:"btn-danger",callback:function(){var t=n.delete_photo;t=t.replace(/\/0$/,"/"+r),$(".loading",parent).show(),$.post(t,{_method:"DELETE"},function(t){window.location.reload()})}}}}),t.preventDefault(),!1},flip:function(t,e,i){var r=n.flip_photo;r=r.replace("/0/","/"+this.photoIDs[0]+"/"),r=t?r.replace(/\/-1\//,"/1/"):r.replace(/\/-1\//,"/0/"),r=e?r.replace(/\/-2$/,"/1"):r.replace(/\/-2$/,"/0"),$(".loading",i).show(),$.post(r,function(){var t=$("img.photo-thumbnail",i),e=t.data("original-src");t.attr("src",e+"&_="+(new Date).getTime()),$(".loading",i).hide()}),this.photoIDs=[]},flipBoth:function(t){return this.selectPhotoSingle(t.target),this.flip(!0,!0,$(t.target).closest(".photo")),t.preventDefault(),!1},flipHorizontal:function(t){return this.selectPhotoSingle(t.target),this.flip(!0,!1,$(t.target).closest(".photo")),t.preventDefault(),!1},flipVertical:function(t){return this.selectPhotoSingle(t.target),this.flip(!1,!0,$(t.target).closest(".photo")),t.preventDefault(),!1},isPhotoSelected:function(t){return this.photoIDs.indexOf(t)>-1?"checked":""},promp
return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{Y.apply(z=X.call(M.childNodes),M.childNodes),z[M.childNodes.length].nodeType}catch(t){Y={apply:z.length?function(t,e){G.apply(t,X.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}_=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},I=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:M;return i!==D&&9===i.nodeType&&i.documentElement?(D=i,N=D.documentElement,L=!T(D),M!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",wt,!1):n.attachEvent&&n.attachEvent("onunload",wt)),_.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),_.getElementsByTagName=r(function(t){return t.appendChild(D.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=pt.test(D.getElementsByClassName),_.getById=r(function(t){return N.appendChild(t).id=F,!D.getElementsByName||!D.getElementsByName(F).length}),_.getById?(w.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){return t.getAttribute("id")===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&L){var n=e.getElementById(t);return n?[n]:[]}}):(w.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&L){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),w.find.TAG=_.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):_.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},w.find.CLASS=_.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&L)return e.getElementsByClassName(t)},j=[],$=[],(_.qsa=pt.test(D.querySelectorAll))&&(r(function(t){N.appendChild(t).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&$.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||$.push("\\["+tt+"*(?:value|"+Z+")"),t.querySelectorAll("[id~="+F+"-]").length||$.push("~="),t.querySelectorAll(":checked").length||$.push(":checked"),t.querySelectorAll("a#"+F+"+*").length||$.push(".#.+[+~]")}),r(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=D.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&$.push("name"+tt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&$.push(":enabled",":disabled"),N.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&$.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),$.push(",.*:")})),(_.matchesSelector=pt.test(P=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&r(function(t){_.disconnectedMatch=P.call(t,"*"),P.call(t,"[s!='']:x"),j.push("!=",it)}),$=$.length&&new RegExp($.join("|")),j=j.length&&new RegExp(j.join("|")),e=pt.test(N.compareDocumentPosition),R=e||pt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=e?function(t,e){if(t===e)return k=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!_.sortDetached&&e.compareDocumentPosition(t)===n?t===D||t.ownerDocument===M&&R(M,t)?-1:e===D||e.ownerDocument===M&&R(M,e)?1:O?J(O,t)-J(O,e):0:4&n?-1:1)}:functi
;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=C),this.each(function(){pt.event.remove(this,t,n,e)})}});var Zt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,te=/<script|<style|<link/i,ee=/checked\s*(?:[^=]|=\s*.checked.)/i,ne=/^true\/(.*)/,ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;pt.extend({htmlPrefilter:function(t){return t.replace(Zt,"<$1></$2>")},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=pt.contains(t.ownerDocument,t);if(!(ht.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||pt.isXMLDoc(t)))for(s=y(a),o=y(t),i=0,r=o.length;i<r;i++)k(o[i],s[i]);if(e)if(n)for(o=o||y(t),s=s||y(a),i=0,r=o.length;i<r;i++)O(o[i],s[i]);else O(t,a);return s=y(a,"script"),s.length>0&&b(s,!l&&y(t,"script")),a},cleanData:function(t){for(var e,n,i,r=pt.event.special,o=0;void 0!==(n=t[o]);o++)if(Lt(n)){if(e=n[$t.expando]){if(e.events)for(i in e.events)r[i]?pt.event.remove(n,i):pt.removeEvent(n,i,e.handle);n[$t.expando]=void 0}n[jt.expando]&&(n[jt.expando]=void 0)}}}),pt.fn.extend({detach:function(t){return D(this,t,!0)},remove:function(t){return D(this,t)},text:function(t){return Nt(this,function(t){return void 0===t?pt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return I(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){x(this,t).appendChild(t)}})},prepend:function(){return I(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=x(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return I(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return I(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(pt.cleanData(y(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return pt.clone(this,t,e)})},html:function(t){return Nt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!te.test(t)&&!zt[(Vt.exec(t)||["",""])[1].toLowerCase()]){t=pt.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(pt.cleanData(y(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return I(this,arguments,function(e){var n=this.parentNode;pt.inArray(this,t)<0&&(pt.cleanData(y(this)),n&&n.replaceChild(e,this))},t)}}),pt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){pt.fn[t]=function(t){for(var n,i=[],r=pt(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),pt(r[s])[e](n),st.apply(i,n.get());return this.pushStack(i)}});var re=/^margin/,oe=new RegExp("^("+Ft+")(?!px)[a-z%]+$","i"),se=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)};!function(){function e(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Gt.appendChild(s);var e=t.getComputedStyle(a);n="1%"!==e.top,o="2px"===e.marginLeft,i="4px"===e.width,a.style.marginRight="50%",r="4px"===e.marginRight,Gt.removeChild(s),a=null}}var n,i,r,o,s=nt.createElement("div"),a=nt.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",ht.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),pt.extend(ht,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return e(),i},pixelMarginRight:function(){return e(),r},reliableMarginLeft:function(){return e(),o}}))}();var ae=/^(none|table(?!-c[ea]).+)/,le=/^--/,ue=
return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},holdReady:function(t){t?pt.readyWait++:pt.ready(!0)}}),pt.isArray=Array.isArray,pt.parseJSON=JSON.parse,pt.nodeName=r,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pt});var Ve=t.jQuery,Ke=t.$;return pt.noConflict=function(e){return t.$===pt&&(t.$=Ke),e&&t.jQuery===pt&&(t.jQuery=Ve),pt},e||(t.jQuery=t.$=pt),pt}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["resources/assets/js/001-jquery"],e):"object"==typeof exports?module.exports=e(require("resources/assets/js/001-jquery")):t.bootbox=e(t.jQuery)}(this,function t(e,n){"use strict";function i(t){var e=m[p.locale];return e?e[t]:m.en[t]}function r(t,n,i){t.stopPropagation(),t.preventDefault(),e.isFunction(i)&&!1===i.call(n,t)||n.modal("hide")}function o(t){var e,n=0;for(e in t)n++;return n}function s(t,n){var i=0;e.each(t,function(t,e){n(t,e,i++)})}function a(t){var n,i;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return t=e.extend({},p,t),t.buttons||(t.buttons={}),n=t.buttons,i=o(n),s(n,function(t,r,o){if(e.isFunction(r)&&(r=n[t]={callback:r}),"object"!==e.type(r))throw new Error("button with key "+t+" must be an object");r.label||(r.label=t),r.className||(r.className=i<=2&&o===i-1?"btn-primary":"btn-secondary")}),t}function l(t,e){var n=t.length,i={};if(n<1||n>2)throw new Error("Invalid argument length");return 2===n||"string"==typeof t[0]?(i[e[0]]=t[0],i[e[1]]=t[1]):i=t[0],i}function u(t,n,i){return e.extend(!0,{},t,l(n,i))}function c(t,e,n,i){return d(u({className:"bootbox-"+t,buttons:f.apply(null,e)},i,n),e)}function f(){for(var t={},e=0,n=arguments.length;e<n;e++){var r=arguments[e],o=r.toLowerCase(),s=r.toUpperCase();t[o]={label:i(s)}}return t}function d(t,e){var i={};return s(e,function(t,e){i[e]=!0}),s(t.buttons,function(t){if(i[t]===n)throw new Error("button key "+t+" is not allowed (options are "+e.join("\n")+")")}),t}var h={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&times;</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},p={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},g={};g.alert=function(){var t;if(t=c("alert",["ok"],["message","callback"],arguments),t.callback&&!e.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return!e.isFunction(t.callback)||t.callback.call(this)},g.dialog(t)},g.confirm=function(){var t;if(t=c("confirm",["cancel","confirm"],["message","callback"],arguments),t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t
function ce(t){var e=t.options.props;for(var n in e)bt(t.prototype,"_props",n)}function fe(t){var e=t.options.computed;for(var n in e)Et(t.prototype,n,e[n])}function de(t){Wr._assetTypes.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&Wr.isReservedTag(t)&&oo("Do not use built-in or reserved HTML elements as component id: "+t),"component"===e&&f(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function he(t){return t&&(t.Ctor.options.name||t.tag)}function pe(t,e){return"string"==typeof t?t.split(",").indexOf(e)>-1:t instanceof RegExp&&t.test(e)}function ge(t,e){for(var n in t){var i=t[n];if(i){var r=he(i.componentOptions);r&&!e(r)&&(me(i),t[n]=null)}}}function me(t){t&&(t.componentInstance._inactive||ht(t.componentInstance,"deactivated"),t.componentInstance.$destroy())}function ve(t){for(var e=t.data,n=t,i=t;i.componentInstance;)i=i.componentInstance._vnode,i.data&&(e=ye(i.data,e));for(;n=n.parent;)n.data&&(e=ye(e,n.data));return be(e)}function ye(t,e){return{staticClass:_e(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function be(t){var e=t.class,n=t.staticClass;return n||e?_e(n,we(e)):""}function _e(t,e){return t?e?t+" "+e:t:e||""}function we(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,i=0,r=t.length;i<r;i++)t[i]&&(n=we(t[i]))&&(e+=n+" ");return e.slice(0,-1)}if(c(t)){for(var o in t)t[o]&&(e+=o+" ");return e.slice(0,-1)}return e}function Ce(t){return _s(t)?"svg":"math"===t?"math":void 0}function Te(t){if(!Br)return!0;if(Cs(t))return!1;if(t=t.toLowerCase(),null!=Ts[t])return Ts[t];var e=document.createElement(t);return t.indexOf("-")>-1?Ts[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ts[t]=/HTMLUnknownElement/.test(e.toString())}function Ee(t){if("string"==typeof t){var e=document.querySelector(t);return e||(oo("Cannot find element: "+t),document.createElement("div"))}return t}function xe(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Ae(t,e){return document.createElementNS(ys[t],e)}function Se(t){return document.createTextNode(t)}function Oe(t){return document.createComment(t)}function ke(t,e,n){t.insertBefore(e,n)}function Ie(t,e){t.removeChild(e)}function De(t,e){t.appendChild(e)}function Ne(t){return t.parentNode}function Le(t){return t.nextSibling}function $e(t){return t.tagName}function je(t,e){t.textContent=e}function Pe(t,e,n){t.setAttribute(e,n)}function Re(t,e){var n=t.data.ref;if(n){var r=t.context,o=t.componentInstance||t.elm,s=r.$refs;e?Array.isArray(s[n])?i(s[n],o):s[n]===o&&(s[n]=void 0):t.data.refInFor?Array.isArray(s[n])&&s[n].indexOf(o)<0?s[n].push(o):s[n]=[o]:s[n]=o}}function Fe(t){return null==t}function Me(t){return null!=t}function He(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function We(t,e,n){var i,r,o={};for(i=e;i<=n;++i)r=t[i].key,Me(r)&&(o[r]=i);return o}function qe(t,e){(t.data.directives||e.data.directives)&&Be(t,e)}function Be(t,e){var n,i,r,o=t===As,s=e===As,a=Ue(t.data.directives,t.context),l=Ue(e.data.directives,e.context),u=[],c=[];for(n in l)i=a[n],r=l[n],i?(r.oldValue=i.value,Ke(r,"update",e,t),r.def&&r.def.componentUpdated&&c.push(r)):(Ke(r,"bind",e,t),r.def&&r.def.inserted&&u.push(r));if(u.length){var f=function(){for(var n=0;n<u.length;n++)Ke(u[n],"inserted",e,t)};o?Y(e.data.hook||(e.data.hook={}),"insert",f):f()}if(c.length&&Y(e.data.hook||(e.data.hook={}),"postpatch",function(){for(var n=0;n<c.length;n++)Ke(c[n],"componentUpdated",e,t)}),!o)for(n in a)l[n]||Ke(a[n],"unbind",t,t,s)}function Ue(t,e){var n=Object.create(null);if(!t)return n;var i,r;for(i=0;i<t.length;i++)r=t[i],r.modifiers||(r.modifiers=ks),n[Ve(r)]=r,r.def=R(e.$options,"directives",r.name,!0);return n}function Ve(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Ke(t,e,n,i,r){var o=t.def&&t
for(var e=0,n=0;n<t.length;n++){var i=t[n];if(1===i.type){if(sr(i)||i.ifConditions&&i.ifConditions.some(function(t){return sr(t.block)})){e=2;break}(ar(i)||i.ifConditions&&i.ifConditions.some(function(t){return ar(t.block)}))&&(e=1)}}return e}function sr(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function ar(t){return!Va(t.tag)}function lr(t){return 1===t.type?zi(t):ur(t)}function ur(t){return"_v("+(2===t.type?t.expression:hr(JSON.stringify(t.text)))+")"}function cr(t){var e=t.slotName||'"default"',n=rr(t),i="_t("+e+(n?","+n:""),r=t.attrs&&"{"+t.attrs.map(function(t){return Lr(t.name)+":"+t.value}).join(",")+"}",o=t.attrsMap["v-bind"];return!r&&!o||n||(i+=",null"),r&&(i+=","+r),o&&(i+=(r?"":",null")+","+o),i+")"}function fr(t,e){var n=e.inlineTemplate?null:rr(e,!0);return"_c("+t+","+Zi(e)+(n?","+n:"")+")"}function dr(t){for(var e="",n=0;n<t.length;n++){var i=t[n];e+='"'+i.name+'":'+hr(i.value)+","}return e.slice(0,-1)}function hr(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function pr(t){var e=[];return t&&gr(t,e),e}function gr(t,e){if(1===t.type){for(var n in t.attrsMap)if(il.test(n)){var i=t.attrsMap[n];i&&("v-for"===n?mr(t,'v-for="'+i+'"',e):yr(i,n+'="'+i+'"',e))}if(t.children)for(var r=0;r<t.children.length;r++)gr(t.children[r],e)}else 2===t.type&&yr(t.expression,t.text,e)}function mr(t,e,n){yr(t.for||"",e,n),vr(t.alias,"v-for alias",e,n),vr(t.iterator1,"v-for iterator",e,n),vr(t.iterator2,"v-for iterator",e,n)}function vr(t,e,n,i){"string"!=typeof t||wl.test(t)||i.push("invalid "+e+' "'+t+'" in expression: '+n.trim())}function yr(t,e,n){try{new Function("return "+t)}catch(r){var i=t.replace(Cl,"").match(_l);i?n.push('avoid using JavaScript keyword as property name: "'+i[0]+'" in expression '+e.trim()):n.push("invalid expression: "+e.trim())}}function br(t,e){var n=pi(t.trim(),e);$i(n,e);var i=Ki(n,e);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}}function _r(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),h}}function wr(t,e){var n=e.warn||Je,i=sn(t,"class");if(i){hi(i,e.delimiters)&&n('class="'+i+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class="{{ val }}">, use <div :class="val">.')}i&&(t.staticClass=JSON.stringify(i));var r=on(t,"class",!1);r&&(t.classBinding=r)}function Cr(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function Tr(t,e){var n=e.warn||Je,i=sn(t,"style");if(i){hi(i,e.delimiters)&&n('style="'+i+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div style="{{ val }}">, use <div :style="val">.'),t.staticStyle=JSON.stringify(Fs(i))}var r=on(t,"style",!1);r&&(t.styleBinding=r)}function Er(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}function xr(t,e){e.value&&tn(t,"textContent","_s("+e.value+")")}function Ar(t,e){e.value&&tn(t,"innerHTML","_s("+e.value+")")}function Sr(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}var Or,kr,Ir=n("slot,component",!0),Dr=Object.prototype.hasOwnProperty,Nr=/-(\w)/g,Lr=s(function(t){return t.replace(Nr,function(t,e){return e?e.toUpperCase():""})}),$r=s(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),jr=/([^-])([A-Z])/g,Pr=s(function(t){return t.replace(jr,"$1-$2").replace(jr,"$1-$2").toLowerCase()}),Rr=Object.prototype.toString,Fr="[object Object]",Mr=function(){return!1},Hr=function(t){return t},Wr={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!0,errorHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Mr,isUnknownElement:Mr,getTagNamespace:h,parsePlatformTagName:Hr,mustUseProp:Mr,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy",
}("\n","&#10;"),ga=n("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),ma=n("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source",!0),va=n("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track",!0),ya=/([^\s"'<>\/=]+)/,ba=/(?:=)/,_a=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],wa=new RegExp("^\\s*"+ya.source+"(?:\\s*("+ba.source+")\\s*(?:"+_a.join("|")+"))?"),Ca="[a-zA-Z_][\\w\\-\\.]*",Ta="((?:"+Ca+"\\:)?"+Ca+")",Ea=new RegExp("^<"+Ta),xa=/^\s*(\/?)>/,Aa=new RegExp("^<\\/"+Ta+"[^>]*>"),Sa=/^<!DOCTYPE [^>]+>/i,Oa=/^<!--/,ka=/^<!\[/,Ia=!1;"x".replace(/x(.)?/g,function(t,e){Ia=""===e});var Da,Na,La,$a,ja,Pa,Ra,Fa,Ma,Ha,Wa,qa,Ba,Ua,Va,Ka,za,Qa,Ga=n("script,style",!0),Ya={},Xa={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n"},Ja=/&(?:lt|gt|quot|amp);/g,Za=/&(?:lt|gt|quot|amp|#10);/g,tl=/\{\{((?:.|\n)+?)\}\}/g,el=/[-.*+?^${}()|[\]\/\\]/g,nl=s(function(t){var e=t[0].replace(el,"\\$&"),n=t[1].replace(el,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),il=/^v-|^@|^:/,rl=/(.*?)\s+(?:in|of)\s+(.*)/,ol=/\((\{[^}]*\}|[^,]*),([^,]*)(?:,([^,]*))?\)/,sl=/^:|^v-bind:/,al=/^@|^v-on:/,ll=/:(.*)$/,ul=/\.[^.]+/g,cl=s(ci),fl=/^xmlns:NS\d+/,dl=/^NS\d+:/,hl=s(ji),pl=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,gl=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,ml={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},vl=function(t){return"if("+t+")return null;"},yl={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:vl("$event.target !== $event.currentTarget"),ctrl:vl("!$event.ctrlKey"),shift:vl("!$event.shiftKey"),alt:vl("!$event.altKey"),meta:vl("!$event.metaKey"),left:vl("$event.button !== 0"),middle:vl("$event.button !== 1"),right:vl("$event.button !== 2")},bl={bind:Vi,cloak:h},_l=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),wl=/[A-Za-z_$][\w$]*/,Cl=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,Tl={staticKeys:["staticClass"],transformNode:wr,genData:Cr},El={staticKeys:["staticStyle"],transformNode:Tr,genData:Er},xl=[Tl,El],Al={model:gn,text:xr,html:Ar},Sl={expectHTML:!0,modules:xl,directives:Al,isPreTag:ws,isUnaryTag:ga,mustUseProp:fs,isReservedTag:Cs,getTagNamespace:Ce,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(xl)},Ol=function(t){function e(e,n){var i=Object.create(t),r=[],o=[];if(i.warn=function(t,e){(e?o:r).push(t)},n){n.modules&&(i.modules=(t.modules||[]).concat(n.modules)),n.directives&&(i.directives=u(Object.create(t.directives),n.directives));for(var s in n)"modules"!==s&&"directives"!==s&&(i[s]=n[s])}var a=br(e,i);return r.push.apply(r,pr(a.ast)),a.errors=r,a.tips=o,a}function n(t,n,r){n=n||{};try{new Function("return 1")}catch(t){t.toString().match(/unsafe-eval|CSP/)&&oo("It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.")}var o=n.delimiters?String(n.delimiters)+t:t;if(i[o])return i[o];var s=e(t,n);s.errors&&s.errors.length&&oo("Error compiling template:\n\n"+t+"\n\n"+s.errors.map(function(t){return"- "+t}).join("\n")+"\n",r),s.tips&&s.tips.length&&s.tips.forEach(function(t){return so(t,r)});var a={},l=[];a.render=_r(s.render,l);var u=s.staticRenderFns.length;a.staticRenderFns=new Array(u);for(var c=0;c<u;c++)a.staticRenderFns[c]=_r(s.staticRenderFns[c],l);return s.errors&&s.errors.l
delete this.hash[i.key],this.size--),(n=this.hash[t])?(n.val=e,this.list.moveToFront(n)):(n=new r(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 i}}),e.mixin(i.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}(),o=function(){"use strict";function n(t,n){this.prefix=["__",t,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+e.escapeRegExChars(this.prefix)),this.ls=n||a,!this.ls&&this._noop()}function i(){return(new Date).getTime()}function r(t){return JSON.stringify(e.isUndefined(t)?null:t)}function o(e){return t.parseJSON(e)}function s(t){var e,n,i=[],r=a.length;for(e=0;e<r;e++)(n=a.key(e)).match(t)&&i.push(n.replace(t,""));return i}var a;try{a=window.localStorage,a.setItem("~~~","!"),a.removeItem("~~~")}catch(t){a=null}return e.mixin(n.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,o){return e.isNumber(o)?this._safeSet(this._ttlKey(t),r(i()+o)):this.ls.removeItem(this._ttlKey(t)),this._safeSet(this._prefix(t),r(n))},remove:function(t){return this.ls.removeItem(this._ttlKey(t)),this.ls.removeItem(this._prefix(t)),this},clear:function(){var t,e=s(this.keyMatcher);for(t=e.length;t--;)this.remove(e[t]);return this},isExpired:function(t){var n=o(this.ls.getItem(this._ttlKey(t)));return!!(e.isNumber(n)&&i()>n)}}),n}(),s=function(){"use strict";function n(t){t=t||{},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 r(0):a}var i=0,o={},s=6,a=new r(10);return n.setMaxPendingRequests=function(t){s=t},n.resetCache=function(){a.reset()},e.mixin(n.prototype,{_fingerprint:function(e){return e=e||{},e.url+e.type+t.param(e.data||{})},_get:function(t,e){function n(t){e(null,t),c._cache.set(l,t)}function r(){e(!0)}function a(){i--,delete o[l],c.onDeckRequestArgs&&(c._get.apply(c,c.onDeckRequestArgs),c.onDeckRequestArgs=null)}var l,u,c=this;l=this._fingerprint(t),this.cancelled||l!==this.lastReq||((u=o[l])?u.done(n).fail(r):i<s?(i++,o[l]=this._send(t).done(n).fail(r).always(a)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(n,i){var r,o;i=i||t.noop,n=e.isString(n)?{url:n}:n||{},o=this._fingerprint(n),this.cancelled=!1,this.lastReq=o,(r=this._cache.get(o))?i(null,r):this._get(n,i)},cancel:function(){this.cancelled=!0}}),n}(),a=window.SearchIndex=function(){"use strict";function n(n){n=n||{},n.datumTokenizer&&n.queryTokenizer||t.error("datumTokenizer and queryTokenizer are both required"),this.identify=n.identify||e.stringify,this.datumTokenizer=n.datumTokenizer,this.queryTokenizer=n.queryTokenizer,this.reset()}function i(t){return t=e.filter(t,function(t){return!!t}),t=e.map(t,function(t){return t.toLowerCase()})}function r(){var t={};return t[l]=[],t[a]={},t}function o(t){for(var e={},n=[],i=0,r=t.length;i<r;i++)e[t[i]]||(e[t[i]]=!0,n.push(t[i]));return n}function s(t,e){var n=0,i=0,r=[];t=t.sort(),e=e.sort();for(var o=t.length,s=e.length;n<o&&i<s;)t[n]<e[i]?n++:t[n]>e[i]?i++:(r.push(t[n]),n++,i++);return r}var a="c",l="i";return e.mixin(n.prototype,{bootstrap:function(t){this.datums=t.datums,this.trie=t.trie},add:function(t){var n=this;t=e.isArray(t)?t:[t],e.each(t,function(t){var o,s;n.datums[o=n.identify(t)]=t,s=i(n.datumTokenizer(t)),e.each(s,function(t){var e,i,s;for(e=n.trie,i=t.split("");s=i.shift();)e=e[a][s]||(e[a][s]=r()),e[l].push(o)})})},get:function(t){var n=this;return e.map(t,funct
return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(t){this.input.setQuery(e.toStr(t))},getVal:function(){return this.input.getQuery()},select:function(t){var e=this.menu.getSelectableData(t);return!(!e||this.eventBus.before("select",e.obj))&&(this.input.setQuery(e.val,!0),this.eventBus.trigger("select",e.obj),this.close(),!0)},autocomplete:function(t){var e,n;return e=this.input.getQuery(),n=this.menu.getSelectableData(t),!(!(n&&e!==n.val)||this.eventBus.before("autocomplete",n.obj))&&(this.input.setQuery(n.val),this.eventBus.trigger("autocomplete",n.obj),!0)},moveCursor:function(t){var e,n,i,r;return e=this.input.getQuery(),n=this.menu.selectableRelativeToCursor(t),i=this.menu.getSelectableData(n),r=i?i.obj:null,!(this._minLengthMet()&&this.menu.update(e))&&!this.eventBus.before("cursorchange",r)&&(this.menu.setCursor(n),i?this.input.setInputValue(i.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",r),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),n}();!function(){"use strict";function r(e,n){e.each(function(){var e,i=t(this);(e=i.data(g.typeahead))&&n(e,i)})}function o(t,e){return t.clone().addClass(e.classes.hint).removeData().css(e.css.hint).css(f(t)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function a(t,e){t.data(g.attrs,{dir:t.attr("dir"),autocomplete:t.attr("autocomplete"),spellcheck:t.attr("spellcheck"),style:t.attr("style")}),t.addClass(e.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!t.attr("dir")&&t.attr("dir","auto")}catch(t){}return t}function f(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}function d(t){var n,i;n=t.data(g.www),i=t.parent().filter(n.selectors.wrapper),e.each(t.data(g.attrs),function(n,i){e.isUndefined(n)?t.removeAttr(i):t.attr(i,n)}),t.removeData(g.typeahead).removeData(g.www).removeData(g.attr).removeClass(n.classes.input),i.length&&(t.detach().insertAfter(i),i.remove())}function h(n){var i,r;return i=e.isJQuery(n)||e.isElement(n),r=i?t(n).first():[],r.length?r:null}var p,g,m;p=t.fn.typeahead,g={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},m={initialize:function(r,f){function d(){var n,d,m,v,y,b,_,w,C,T,E;e.each(f,function(t){t.highlight=!!r.highlight}),n=t(this),d=t(p.html.wrapper),m=h(r.hint),v=h(r.menu),y=!1!==r.hint&&!m,b=!1!==r.menu&&!v,y&&(m=o(n,p)),b&&(v=t(p.html.menu).css(p.css.menu)),m&&m.val(""),n=a(n,p),(y||b)&&(d.css(p.css.wrapper),n.css(y?p.css.input:p.css.inputWithNoHint),n.wrap(d).parent().prepend(y?m:null).append(b?v:null)),E=b?u:l,_=new i({el:n}),w=new s({hint:m,input:n},p),C=new E({node:v,datasets:f},p),T=new c({input:w,menu:C,eventBus:_,minLength:r.minLength},p),n.data(g.www,p),n.data(g.typeahead,T)}var p;return f=e.isArray(f)?f:[].slice.call(arguments,1),r=r||{},p=n(r.classNames),this.each(d)},isEnabled:function(){var t;return r(this.first(),function(e){t=e.isEnabled()}),t},enable:function(){return r(this,function(t){t.enable()}),this},disable:function(){return r(this,function(t){t.disable()}),this},isActive:function(){var t;return r(this.first(),function(e){t=e.isActive()}),t},activate:function(){return r(this,function(t){t.activate()}),this},deactivate:function(){return r(this,function(t){t.deactivate()}),this},isOpen:function(){var t;return r(this.first(),function(e){t=e.isOpen()}),t},open:function(){return r(this,function(t){t.open()}),this},close:function(){retur
;this._isShown&&this._config.keyboard?t(this._element).on(c.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||t(this._element).off(c.KEYDOWN_DISMISS)},a.prototype._setResizeEvent=function(){var e=this;this._isShown?t(window).on(c.RESIZE,function(t){return e.handleUpdate(t)}):t(window).off(c.RESIZE)},a.prototype._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(f.OPEN),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(c.HIDDEN)})},a.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},a.prototype._showBackdrop=function(e){var n=this,i=t(this._element).hasClass(f.FADE)?f.FADE:"";if(this._isShown&&this._config.backdrop){var r=o.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=f.BACKDROP,i&&t(this._backdrop).addClass(i),t(this._backdrop).appendTo(document.body),t(this._element).on(c.CLICK_DISMISS,function(t){if(n._ignoreBackdropClick)return void(n._ignoreBackdropClick=!1);t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),r&&o.reflow(this._backdrop),t(this._backdrop).addClass(f.SHOW),!e)return;if(!r)return void e();t(this._backdrop).one(o.TRANSITION_END,e).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(f.SHOW);var s=function(){n._removeBackdrop(),e&&e()};o.supportsTransitionEnd()&&t(this._element).hasClass(f.FADE)?t(this._backdrop).one(o.TRANSITION_END,s).emulateTransitionEnd(150):s()}else e&&e()},a.prototype._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},a.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},a.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},a.prototype._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){t(d.FIXED_CONTENT).each(function(n,i){var r=t(i)[0].style.paddingRight,o=t(i).css("padding-right");t(i).data("padding-right",r).css("padding-right",parseFloat(o)+e._scrollbarWidth+"px")}),t(d.NAVBAR_TOGGLER).each(function(n,i){var r=t(i)[0].style.marginRight,o=t(i).css("margin-right");t(i).data("margin-right",r).css("margin-right",parseFloat(o)+e._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=t("body").css("padding-right");t("body").data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},a.prototype._resetScrollbar=function(){t(d.FIXED_CONTENT).each(function(e,n){var i=t(n).data("padding-right");void 0!==i&&t(n).css("padding-right",i).removeData("padding-right")}),t(d.NAVBAR_TOGGLER).each(function(e,n){var i=t(n).data("margin-right");void 0!==i&&t(n).css("margin-right",i).removeData("margin-right")});var e=t("body").data("padding-right");void 0!==e&&t("body").css("padding-right",e).removeData("padding-right")},a.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=f.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},a._jQueryInterface=function(e,n){return this.each(function(){var r=t(this).data("bs.modal"),o=t.extend({},a.Default,t(this).data(),"object"===(void 0===e?"undefined":i(e))&&e);if(r||(r=new a(this,o),t(this).data("bs.modal",r)),"string"==typeof e){if(void 0===r[e])throw new Error('No method named "'+e+'"');r[e](n)}else o.show&&r.show(n)})},r(a,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return l}}]),a}();t(document).on(c.CLICK_DATA_API,d.DATA_TOGGLE,function(e){var n=this,i=void 0,r=o.getSelectorFromElement(