#9: The progress bar when uploading is now working correctly. The delete album screen has been updated to Bootstrap v4. Alerts are now dismissable.
This commit is contained in:
1 parent
8b9e8f0229
commit
c1740be802
9 files changed
+231
-175
No files matched your search
+145
-128
@@ -1,3 +1,148 @@
|
||||
/**
|
||||
* This model is used by admin/show_album.blade.php to handle photo uploads.
|
||||
* @param album_id ID of the album the photos are being uploaded to
|
||||
* @param queue_token Unique token of the upload queue to save the photos to
|
||||
* @param language Array containing language strings
|
||||
* @param urls Array containing URLs
|
||||
* @constructor
|
||||
*/
|
||||
function UploadPhotosViewModel(album_id, queue_token, language, urls) {
|
||||
this.el = '#upload-tab';
|
||||
this.data = {
|
||||
currentStatus: '',
|
||||
imagesFailed: 0,
|
||||
imagesTotal: 0,
|
||||
imagesUploaded: 0,
|
||||
isBulkUploadInProgress: false,
|
||||
isUploadInProgress: false,
|
||||
statusMessages: []
|
||||
};
|
||||
this.computed = {
|
||||
failedPercentage: function () {
|
||||
var result = 0;
|
||||
|
||||
if (this.imagesTotal > 0)
|
||||
{
|
||||
result = (this.imagesFailed / this.imagesTotal) * 100;
|
||||
}
|
||||
|
||||
return result.toFixed(2) + '%';
|
||||
},
|
||||
successfulPercentage: function () {
|
||||
var result = 0;
|
||||
|
||||
if (this.imagesTotal > 0)
|
||||
{
|
||||
result = (this.imagesUploaded / this.imagesTotal) * 100;
|
||||
}
|
||||
|
||||
return result.toFixed(2) + '%';
|
||||
}
|
||||
};
|
||||
this.methods = {
|
||||
// This method is called when an image is uploaded - regardless if it fails or not
|
||||
onUploadCompleted: function () {
|
||||
this.currentStatus = language.upload_status
|
||||
.replace(':current', (this.imagesUploaded + this.imagesFailed))
|
||||
.replace(':total', this.imagesTotal);
|
||||
|
||||
if ((this.imagesFailed + this.imagesUploaded) >= this.imagesTotal) {
|
||||
this.isUploadInProgress = false;
|
||||
|
||||
if (this.imagesFailed === 0 && this.imagesUploaded > 0) {
|
||||
window.location = urls.analyse;
|
||||
}
|
||||
}
|
||||
},
|
||||
// This method is called when an uploaded image fails
|
||||
onUploadFailed: function (data, file_name) {
|
||||
this.imagesFailed++;
|
||||
this.statusMessages.push({
|
||||
'message_class': 'text-danger',
|
||||
'message_text': language.image_failed.replace(':file_name', file_name)
|
||||
});
|
||||
this.onUploadCompleted();
|
||||
},
|
||||
// This method is called when an uploaded image succeeds
|
||||
onUploadSuccessful: function (data, file_name) {
|
||||
if (data.is_successful) {
|
||||
this.imagesUploaded++;
|
||||
// Don't add to statusMessages() array so user only sees errors
|
||||
/*self.statusMessages.push({
|
||||
'message_class': 'text-success',
|
||||
'message_text': language.image_uploaded.replace(':file_name', file_name)
|
||||
});*/
|
||||
this.onUploadCompleted();
|
||||
}
|
||||
else {
|
||||
this.onUploadFailed(data, file_name);
|
||||
}
|
||||
},
|
||||
uploadFile: function uploadImageFile(formObject, imageFile) {
|
||||
var self = this;
|
||||
var formData = new FormData();
|
||||
formData.append('album_id', album_id);
|
||||
formData.append('queue_token', queue_token);
|
||||
formData.append('photo[]', imageFile, imageFile.name);
|
||||
|
||||
$.ajax(
|
||||
{
|
||||
contentType: false,
|
||||
data: formData,
|
||||
error: function (data) {
|
||||
self.onUploadFailed(data, imageFile.name);
|
||||
},
|
||||
method: $(formObject).attr('method'),
|
||||
processData: false,
|
||||
success: function (data) {
|
||||
self.onUploadSuccessful(data, imageFile.name);
|
||||
},
|
||||
url: $(formObject).attr('action')
|
||||
}
|
||||
);
|
||||
this.isUploadInProgress = true;
|
||||
|
||||
this.currentStatus = language.upload_status
|
||||
.replace(':current', 0)
|
||||
.replace(':total', this.imagesTotal);
|
||||
},
|
||||
uploadIndividualFiles: function(event) {
|
||||
var fileSelect = $('input[type=file]', event.target);
|
||||
|
||||
// Get the selected files
|
||||
var files = fileSelect[0].files;
|
||||
|
||||
// Reset statistics
|
||||
this.currentStatus = '';
|
||||
this.statusMessages = [];
|
||||
this.imagesUploaded = 0;
|
||||
this.imagesFailed = 0;
|
||||
this.imagesTotal = files.length;
|
||||
this.isUploadInProgress = true;
|
||||
|
||||
// Loop through each of the selected files and upload them individually
|
||||
for (var i = 0; i < files.length; i++)
|
||||
{
|
||||
var file = files[i];
|
||||
|
||||
// We're only interested in image files
|
||||
if (!file.type.match('image.*'))
|
||||
{
|
||||
alert(language.not_an_image_file.replace(':file_name', file.name));
|
||||
this.onUploadFailed(null, file.name);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Upload the file
|
||||
this.uploadFile(event.target, file);
|
||||
}
|
||||
|
||||
// Prevent standard form upload
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
/*!
|
||||
* jQuery JavaScript Library v3.2.0
|
||||
* https://jquery.com/
|
||||
@@ -22961,131 +23106,3 @@ var Popover = function ($) {
|
||||
}(jQuery);
|
||||
|
||||
}();
|
||||
|
||||
/**
|
||||
* This model is used by admin/show_album.blade.php to handle photo uploads.
|
||||
* @param album_id ID of the album the photos are being uploaded to
|
||||
* @param queue_token Unique token of the upload queue to save the photos to
|
||||
* @param language Array containing language strings
|
||||
* @param urls Array containing URLs
|
||||
* @constructor
|
||||
*/
|
||||
function UploadPhotosViewModel(album_id, queue_token, language, urls) {
|
||||
this.el = '#upload-tab';
|
||||
this.data = {
|
||||
currentStatus: '',
|
||||
imagesFailed: 0,
|
||||
imagesTotal: 0,
|
||||
isBulkUploadInProgress: false,
|
||||
isUploadInProgress: false,
|
||||
statusMessages: []
|
||||
};
|
||||
this.computed = {
|
||||
// a computed getter
|
||||
failedPercentage: function () {
|
||||
return ((this.imagesFailed() / this.imagesTotal()) * 100).toFixed(2) + '%';
|
||||
},
|
||||
successfulPercentage: function () {
|
||||
return ((self.imagesUploaded() / self.imagesTotal()) * 100).toFixed(2) + '%';
|
||||
}
|
||||
};
|
||||
this.methods = {
|
||||
// This method is called when an image is uploaded - regardless if it fails or not
|
||||
onUploadCompleted: function () {
|
||||
this.currentStatus = language.upload_status
|
||||
.replace(':current', (self.imagesUploaded + self.imagesFailed))
|
||||
.replace(':total', self.imagesTotal);
|
||||
|
||||
if ((this.imagesFailed + this.imagesUploaded) >= this.imagesTotal) {
|
||||
this.isUploadInProgress = false;
|
||||
|
||||
if (this.imagesFailed == 0 && this.imagesUploaded > 0) {
|
||||
window.location = urls.analyse;
|
||||
}
|
||||
}
|
||||
},
|
||||
// This method is called when an uploaded image fails
|
||||
onUploadFailed: function (data, file_name) {
|
||||
this.imagesFailed++;
|
||||
this.statusMessages.push({
|
||||
'message_class': 'text-danger',
|
||||
'message_text': language.image_failed.replace(':file_name', file_name)
|
||||
});
|
||||
this.onUploadCompleted();
|
||||
},
|
||||
// This method is called when an uploaded image succeeds
|
||||
onUploadSuccessful: function (data, file_name) {
|
||||
if (data.is_successful) {
|
||||
self.imagesUploaded++;
|
||||
// Don't add to statusMessages() array so user only sees errors
|
||||
/*self.statusMessages.push({
|
||||
'message_class': 'text-success',
|
||||
'message_text': language.image_uploaded.replace(':file_name', file_name)
|
||||
});*/
|
||||
self.onUploadCompleted();
|
||||
}
|
||||
else {
|
||||
self.onUploadFailed(data, file_name);
|
||||
}
|
||||
},
|
||||
uploadFile: function uploadImageFile(formObject, imageFile) {
|
||||
var self = this;
|
||||
var formData = new FormData();
|
||||
formData.append('album_id', album_id);
|
||||
formData.append('queue_token', queue_token);
|
||||
formData.append('photo[]', imageFile, imageFile.name);
|
||||
|
||||
$.ajax(
|
||||
{
|
||||
contentType: false,
|
||||
data: formData,
|
||||
error: function (data) {
|
||||
self.onUploadFailed(data, imageFile.name);
|
||||
},
|
||||
method: $(formObject).attr('method'),
|
||||
processData: false,
|
||||
success: function (data) {
|
||||
self.onUploadSuccessful(data, imageFile.name);
|
||||
},
|
||||
url: $(formObject).attr('action')
|
||||
}
|
||||
);
|
||||
this.isUploadInProgress = true;
|
||||
},
|
||||
uploadIndividualFiles: function(event) {
|
||||
var fileSelect = $('input[type=file]', event.target);
|
||||
|
||||
// Get the selected files
|
||||
var files = fileSelect[0].files;
|
||||
|
||||
// Reset statistics
|
||||
this.currentStatus = '';
|
||||
this.statusMessages = [];
|
||||
this.imagesUploaded = 0;
|
||||
this.imagesFailed = 0;
|
||||
this.imagesTotal = files.length;
|
||||
this.isUploadInProgress = true;
|
||||
|
||||
// Loop through each of the selected files and upload them individually
|
||||
for (var i = 0; i < files.length; i++)
|
||||
{
|
||||
var file = files[i];
|
||||
|
||||
// We're only interested in image files
|
||||
if (!file.type.match('image.*'))
|
||||
{
|
||||
alert(language.not_an_image_file.replace(':file_name', file.name));
|
||||
this.onUploadFailed(null, file.name);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Upload the file
|
||||
this.uploadFile($(this), file);
|
||||
}
|
||||
|
||||
// Prevent standard form upload
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
Vendored
+8
-8
@@ -1,8 +1,8 @@
|
||||
function StorageLocationViewModel(){this.el="#storage-options",this.data={storage_driver:"LocalFilesystemSource"}}if(function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return se.call(t,e)>-1!==n}):Te.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return se.call(t,e)>-1!==n&&1===e.nodeType}))}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return he.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function l(e){return e}function u(e){throw e}function c(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function d(){this.expando=he.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Le.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace($e,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=p(n)}catch(e){}Ne.set(e,t,n)}else n=void 0;return n}function v(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return he.css(e,t,"")},l=s(),u=n&&n[3]||(he.cssNumber[t]?"":"px"),c=(he.cssNumber[t]||"px"!==u&&+l)&&Pe.exec(he.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{o=o||".5",c/=o,he.style(e,t,c+u)}while(o!==(o=s()/l)&&1!==o&&--a)}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}function m(e){var t,n=e.ownerDocument,r=e.nodeName,i=Fe[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=he.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Fe[r]=i,i)}function g(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=ke.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Re(r)&&(i[o]=m(r))):"none"!==n&&(i[o]="none",ke.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?he.merge([e],n):n}function _(e,t){for(var n=0,r=e.length;n<r;n++)ke.set(e[n],"globalEval",!t||ke.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,a,s,l,u,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===he.type(o))he.merge(d,o.nodeType?[o]:o);else if(Be.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(Ue.exec(o)||["",""])[1].toLowerCase(),l=qe[s]||qe._default,a.innerHTML=l[1]+he.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;he.merge(d,a.childNodes),a=f.firstChild,a.textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&he.inArray(o,r)>-1)i&&i.push(o);else if(u=he.contains(o.ownerDocument,o),a=y(f.appendChild(o),"script"),u&&_(a),n)for(c=0;o=a[c++];)Ve.test(o.type||"")&&n.push(o);return f}function T(){return!0}function E(){return!1}function w(){try{return ne.activeElement}catch(e){}}function C(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)C(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=E;else if(!i)return e;return 1===o&&(a=i,i=function(e){return he().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=he.guid++)),e.each(function(){he.event.add(this,t,i,r,n)})}function x(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?he(">tbody",e)[0]||e:e}function A(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function S(e){var t=Je.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function O(e,t){var n,r,i,o,a,s,l,u;if(1===t.nodeType){if(ke.hasData(e)&&(o=ke.access(e),a=ke.set(t,o),u=o.events)){delete a.handle,a.events={};for(i in u)for(n=0,r=u[i].length;n<r;n++)he.event.add(t,i,u[i][n])}Ne.hasData(e)&&(s=Ne.access(e),l=he.extend({},s),Ne.set(t,l))}}function D(e,t){var n=t.nodeName.toLowerCase();"input"===n&&We.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function I(e,Line truncated
|
||||
var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(_ in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[_]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(_);for(_ in{submit:!0,reset:!0})T.pseudos[_]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(_);return c.prototype=T.filters=T.pseudos,T.setFilters=new c,C=t.tokenize=function(e,n){var r,i,o,a,s,l,u,c=V[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=T.preFilter;s;){r&&!(i=ae.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=se.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),s=s.slice(r.length));for(a in T.filter)!(i=fe[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):V(e,l).slice(0)},x=t.compile=function(e,t){var n,r=[],i=[],o=q[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)o=g(t[n]),o[R]?r.push(o):i.push(o);o=q(e,y(i,r)),o.selector=e}return o},A=t.select=function(e,t,n,r){var i,o,a,s,l,c="function"==typeof e&&e,d=!r&&C(e=c.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&L&&T.relative[o[1].type]){if(!(t=(T.find.ID(a.matches[0].replace(ge,ye),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((l=T.find[s])&&(r=l(a.matches[0].replace(ge,ye),me.test(o[0].type)&&u(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return Y.apply(n,r),n;break}}return(c||x(e,d))(r,t,!L,n,!t||me.test(e)&&u(t.parentNode)||t),n},b.sortStable=R.split("").sort(B).join("")===R,b.detectDuplicates=!!D,I(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);he.find=me,he.expr=me.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=me.uniqueSort,he.text=me.getText,he.isXMLDoc=me.isXML,he.contains=me.contains,he.escapeSelector=me.escape;var ge=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&he(e).is(n))break;r.push(e)}return r},ye=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},_e=he.expr.match.needsContext,be=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Te=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)he.find(e,i[t],n);return r>1?he.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&_e.test(e)?he(e):e||[],!1).length}});var Ee,we=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ee,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:we.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof hLine truncated
|
||||
;for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ke.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,a=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(U(t,!0),e,r,i)}}),he.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(ut=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),ut=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ct||(ct=!0,F())},he.fx.stop=function(){ct=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",pe.checkOn=""!==e.value,pe.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",pe.radioValue="t"===e.value}();var pt,ht=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return De(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=he.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return t===!1?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ht[t]||he.find.attr;ht[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ht[a],ht[a]=i,i=null!=n(e,t,r)?a:null,ht[a]=o),i}});var vt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return De(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,i=he.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),pe.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(he.isFunction(e))return this.each(function(t){he(this).addClass(e.call(this,t,Q(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[l++];)if(i=Q(n),r=1===n.nodeType&&" "+G(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=G(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(he.isFunction(e))return this.each(function(t){he(this).removeClass(e.call(this,t,Q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[l++];)if(i=Q(n),r=1===n.nodeType&&" "+G(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=G(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,Q(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=he(this),o=e.match(ALine truncated
|
||||
e.$options.template&&"#"!==e.$options.template.charAt(0)?ro("You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):ro("Failed to mount component: template or render function not defined.",e)),pe(e,"beforeMount");var r;return r=Mi.performance&&Zi?function(){var t=e._name,r="start "+t,i="end "+t;Zi.mark(r);var o=e._render();Zi.mark(i),Zi.measure(t+" render",r,i),Zi.mark(r),e._update(o,n),Zi.mark(i),Zi.measure(t+" patch",r,i)}:function(){e._update(e._render(),n)},e._watcher=new Mo(e,r,p),n=!1,null==e.$vnode&&(e._isMounted=!0,pe(e,"mounted")),e}function ue(e,t,n,r,i){var o=!!(i||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==to);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=i,t&&e.$options.props){vo.shouldConvert=!1,vo.isSettingProps=!0;for(var a=e._props,s=e.$options._propKeys||[],l=0;l<s.length;l++){var u=s[l];a[u]=R(u,e.$options.props,t,e)}vo.shouldConvert=!0,vo.isSettingProps=!1,e.$options.propsData=t}if(n){var c=e.$options._parentListeners;e.$options._parentListeners=n,ie(e,n,c)}o&&(e.$slots=oe(i,r.context),e.$forceUpdate())}function ce(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function fe(e,t){if(t){if(e._directInactive=!1,ce(e))return}else if(e._directInactive)return;if(e._inactive||null==e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)fe(e.$children[n]);pe(e,"activated")}}function de(e,t){if(!(t&&(e._directInactive=!0,ce(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)de(e.$children[n]);pe(e,"deactivated")}}function pe(e,t){var n=e.$options[t];if(n)for(var r=0,i=n.length;r<i;r++)try{n[r].call(e)}catch(n){q(n,e,t+" hook")}e._hasHookEvent&&e.$emit("hook:"+t)}function he(){No.length=0,Lo={},$o={},jo=Po=!1}function ve(){Po=!0;var e,t,n;for(No.sort(function(e,t){return e.id-t.id}),Ho=0;Ho<No.length;Ho++)if(e=No[Ho],t=e.id,Lo[t]=null,e.run(),null!=Lo[t]&&($o[t]=($o[t]||0)+1,$o[t]>Mi._maxUpdateCount)){ro("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}for(Ho=No.length;Ho--;)e=No[Ho],n=e.vm,n._watcher===e&&n._isMounted&&pe(n,"updated");Yi&&Mi.devtools&&Yi.emit("flush"),he()}function me(e){var t=e.id;if(null==Lo[t]){if(Lo[t]=!0,Po){for(var n=No.length-1;n>=0&&No[n].id>e.id;)n--;No.splice(Math.max(n,Ho)+1,0,e)}else No.push(e);jo||(jo=!0,Ji(ve))}}function ge(e){Fo.clear(),ye(e,Fo)}function ye(e,t){var n,r,i=Array.isArray(e);if((i||c(e))&&Object.isExtensible(e)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i)for(n=e.length;n--;)ye(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)ye(e[r[n]],t)}}function _e(e,t,n){Wo.get=function(){return this[t][n]},Wo.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Wo)}function be(e){e._watchers=[];var t=e.$options;t.props&&Te(e,t.props),t.methods&&Ae(e,t.methods),t.data?Ee(e):x(e._data={},!0),t.computed&&we(e,t.computed),t.watch&&Se(e,t.watch)}function Te(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;vo.shouldConvert=o;for(var a in t)!function(o){i.push(o);var a=R(o,t,n,e);Uo[o]&&ro('"'+o+'" is a reserved attribute and cannot be used as component prop.',e),A(r,o,a,function(){e.$parent&&!vo.isSettingProps&&ro("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+o+'"',e)}),o in e||_e(e,"_props",o)}(a);vo.shouldConvert=!0}function Ee(e){var t=e.$options.data;t=e._data="function"==typeof t?t.call(e):t||{},f(t)||(t={},ro("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));for(var n=Object.keys(t),r=e.$options.props,o=n.length;o--;)r&&i(r,n[o])?ro('The data property "'+n[o]+'" is already declared as a prop. Use prop default value instead.',e):y(n[o])||_e(e,"_data",n[o]);x(t,!0)}function we(e,t){var n=e._computedWatchers=Object.create(null);for(var r in t){var i=t[r],o="function"==typeof i?i:i.get;n[r]=new Mo(e,o,p,Vo),r in e||Ce(e,r,i)}}function Ce(e,t,n){"function"==typeof n?(Wo.get=xe(t),Wo.set=p):(Wo.get=n.get?n.cache!==!1?xe(t):n.get:p,Wo.set=n.set?n.set:p),Object.defineProperty(e,t,Wo)}function xe(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),uo.target&&t.depend(),t.value}}function Ae(e,t){var n=e.$options.props;for(var r in t)e[r]=null==t[r]?p:s(t[r],e),null==t[r]&&ro('method "'+r+'" has an undefined value in the component definition. Did you reference the function correctly?',e),n&&i(n,r)&&ro('method "'+r+'" has already been defined as a prop.',e)}function Se(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Oe(e,n,r[i]);else Oe(e,n,r)}}function Oe(e,t,n){var r;f(Line truncated
|
||||
;if(0===h){if(Es.test(e)){var v=e.indexOf("-->");if(v>=0){n(v+3);continue}}if(ws.test(e)){var m=e.indexOf("]>");if(m>=0){n(m+2);continue}}var g=e.match(Ts);if(g){n(g[0].length);continue}var y=e.match(bs);if(y){var _=u;n(y[0].length),r(y[1],_,u);continue}var b=function(){var t=e.match(ys);if(t){var r={tagName:t[1],attrs:[],start:u};n(t[0].length);for(var i,o;!(i=e.match(_s))&&(o=e.match(ms));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=u,r}}();if(b){!function(e){var n=e.tagName,i=e.unarySlash;s&&("p"===o&&hs(n)&&r(o),ps(n)&&o===n&&r(n));for(var u=l(n)||"html"===n&&"head"===o||!!i,c=e.attrs.length,f=new Array(c),d=0;d<c;d++){var p=e.attrs[d];Cs&&p[0].indexOf('""')===-1&&(""===p[3]&&delete p[3],""===p[4]&&delete p[4],""===p[5]&&delete p[5]);var h=p[3]||p[4]||p[5]||"";f[d]={name:p[1],value:fr(h,t.shouldDecodeNewlines)}}u||(a.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f}),o=n),t.start&&t.start(n,f,u,e.start,e.end)}(b);continue}}var T=void 0,E=void 0,w=void 0;if(h>=0){for(E=e.slice(h);!(bs.test(E)||ys.test(E)||Es.test(E)||ws.test(E)||(w=E.indexOf("<",1))<0);)h+=w,E=e.slice(h);T=e.substring(0,h),n(h)}h<0&&(T=e,e=""),t.chars&&T&&t.chars(T)}if(e===i){t.chars&&t.chars(e),!a.length&&t.warn&&t.warn('Mal-formatted tag at end of template: "'+e+'"');break}}r()}function pr(e,t){var n=t?zs(t):Qs;if(n.test(e)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(e);){i=r.index,i>a&&o.push(JSON.stringify(e.slice(a,i)));var s=Yt(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a<e.length&&o.push(JSON.stringify(e.slice(a))),o.join("+")}}function hr(e,t){function n(e){e.pre&&(s=!1),Os(e.tag)&&(l=!1)}xs=t.warn||Jt,As=t.getTagNamespace||Hi,Ss=t.mustUseProp||Hi,Os=t.isPreTag||Hi,Ds=Zt(t.modules,"preTransformNode"),Is=Zt(t.modules,"transformNode"),ks=Zt(t.modules,"postTransformNode"),Ns=t.delimiters;var r,i,o=[],a=t.preserveWhitespace!==!1,s=!1,l=!1,u=!1;return dr(e,{warn:xs,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,shouldDecodeNewlines:t.shouldDecodeNewlines,start:function(e,a,c){function f(e){u||("slot"!==e.tag&&"template"!==e.tag||(u=!0,xs("Cannot use <"+e.tag+"> as component root element because it may contain multiple nodes.")),e.attrsMap.hasOwnProperty("v-for")&&(u=!0,xs("Cannot use v-for on stateful component root element because it renders multiple elements.")))}var d=i&&i.ns||As(e);Vi&&"svg"===d&&(a=Nr(a));var p={type:1,tag:e,attrsList:a,attrsMap:Ir(a),parent:i,children:[]};d&&(p.ns=d),kr(p)&&!zi()&&(p.forbidden=!0,xs("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <"+e+">, as they will not be parsed."));for(var h=0;h<Ds.length;h++)Ds[h](p,t);if(s||(vr(p),p.pre&&(s=!0)),Os(p.tag)&&(l=!0),s)mr(p);else{_r(p),br(p),Cr(p),gr(p),p.plain=!p.key&&!a.length,yr(p),xr(p),Ar(p);for(var v=0;v<Is.length;v++)Is[v](p,t);Sr(p)}if(r?o.length||(r.if&&(p.elseif||p.else)?(f(p),wr(r,{exp:p.elseif,block:p})):u||(u=!0,xs("Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead."))):(r=p,f(r)),i&&!p.forbidden)if(p.elseif||p.else)Tr(p,i);else if(p.slotScope){i.plain=!1;var m=p.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[m]=p}else i.children.push(p),p.parent=i;c?n(p):(i=p,o.push(p));for(var g=0;g<ks.length;g++)ks[g](p,t)},end:function(){var e=o[o.length-1],t=e.children[e.children.length-1];t&&3===t.type&&" "===t.text&&!l&&e.children.pop(),o.length-=1,i=o[o.length-1],n(e)},chars:function(t){if(!i)return void(u||t!==e||(u=!0,xs("Component template requires a root element, rather than just text.")));if(!Vi||"textarea"!==i.tag||i.attrsMap.placeholder!==t){var n=i.children;if(t=l||t.trim()?rl(t):a&&n.length?" ":""){var r;!s&&" "!==t&&(r=pr(t,Ns))?n.push({type:2,expression:r,text:t}):" "===t&&n.length&&" "===n[n.length-1].text||n.push({type:3,text:t})}}}}),r}function vr(e){null!=an(e,"v-pre")&&(e.pre=!0)}function mr(e){var t=e.attrsList.length;if(t)for(var n=e.attrs=new Array(t),r=0;r<t;r++)n[r]={name:e.attrsList[r].name,value:JSON.stringify(e.attrsList[r].value)};else e.pre||(e.plain=!0)}function gr(e){var t=on(e,"key");t&&("template"===e.tag&&xs("<template> cannot be keyed. Place the key on real elements instead."),e.key=t)}function yr(e){var t=on(e,"ref");t&&(e.ref=t,e.refInFor=Or(e))}function _r(e){var t;if(t=an(e,"v-for")){var n=t.match(Xs);if(!n)return void xs("Invalid v-for expression: "+t);e.for=n[2].trim();var r=n[1].trim(),i=r.match(Js);i?(e.alias=i[1].trim(),e.iterator1=i[2].trim(),i[3]&&(e.iterator2=i[3].trim())):e.alias=r}}function br(e){var t=an(e,"v-if");if(t)e.if=t,wr(e,{exp:t,block:e});else{null!=an(e,"v-else")&&(e.else=!0);var n=an(e,"v-else-if");n&&(e.elseif=n)}}function Tr(e,t){var n=Er(t.children);n&&n.if?wr(n,{exp:e.elseif,block:e}):xs("v-"+(e.elseif?'else-if="'+e.elseif+'"':"else")+" used on element <"+e.tag+"> without corresponding v-if.")}function Er(e){for(var t=e.length;t--;){if(1===e[t].type)return
Line truncated
|
||||
insertBefore:Dt,removeChild:It,appendChild:kt,parentNode:Nt,nextSibling:Lt,tagName:$t,setTextContent:jt,setAttribute:Pt}),Ea={create:function(e,t){Ht(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ht(e,!0),Ht(t))},destroy:function(e){Ht(e,!0)}},wa=new Ao("",{},[]),Ca=["create","activate","update","remove","destroy"],xa={create:Ut,update:Ut,destroy:function(e){Ut(e,wa)}},Aa=Object.create(null),Sa=[Ea,xa],Oa={create:Gt,update:Gt},Da={create:zt,update:zt},Ia=/[\w).+\-_$\]]/,ka="__r",Na="__c",La={create:Cn,update:Cn},$a={create:xn,update:xn},ja=a(function(e){var t={};return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var n=e.split(/:(.+)/);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),Pa=/^--/,Ha=/\s*!important$/,Ra=function(e,t,n){Pa.test(t)?e.style.setProperty(t,n):Ha.test(n)?e.style.setProperty(t,n.replace(Ha,""),"important"):e.style[Fa(t)]=n},Ma=["Webkit","Moz","ms"],Fa=a(function(e){if(aa=aa||document.createElement("div"),"filter"!==(e=Ni(e))&&e in aa.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ma.length;n++){var r=Ma[n]+t;if(r in aa.style)return r}}),Wa={create:Nn,update:Nn},Ua=a(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Va=Wi&&!qi,qa="transition",Ba="animation",Ka="transition",Ga="transitionend",Qa="animation",za="animationend";Va&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ka="WebkitTransition",Ga="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Qa="WebkitAnimation",za="webkitAnimationEnd"));var Ya=Wi&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout,Xa=/\b(transform|all)(,|$)/,Ja=Wi?{create:Qn,activate:Qn,remove:function(e,t){e.data.show?t():qn(e,t)}}:{},Za=[Oa,Da,La,$a,Wa,Ja],es=Za.concat(Sa),ts=function(e){function t(e){return new Ao(O.tagName(e).toLowerCase(),{},[],void 0,e)}function r(e,t){function n(){0==--n.listeners&&i(e)}return n.listeners=t,n}function i(e){var t=O.parentNode(e);t&&O.removeChild(t,e)}function a(e,t,n,r,i){if(e.isRootInsert=!i,!s(e,t,n,r)){var o=e.data,a=e.children,l=e.tag;Mt(l)?(o&&o.pre&&D++,D||e.ns||Mi.ignoredElements.length&&Mi.ignoredElements.indexOf(l)>-1||!Mi.isUnknownElement(l)||ro("Unknown custom element: <"+l+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',e.context),e.elm=e.ns?O.createElementNS(e.ns,l):O.createElement(l,e),h(e),f(e,a,t),Mt(o)&&p(e,t),c(n,e.elm,r),o&&o.pre&&D--):e.isComment?(e.elm=O.createComment(e.text),c(n,e.elm,r)):(e.elm=O.createTextNode(e.text),c(n,e.elm,r))}}function s(e,t,n,r){var i=e.data;if(Mt(i)){var o=Mt(e.componentInstance)&&i.keepAlive;if(Mt(i=i.hook)&&Mt(i=i.init)&&i(e,!1,n,r),Mt(e.componentInstance))return l(e,t),o&&u(e,t,n,r),!0}}function l(e,t){e.data.pendingInsert&&t.push.apply(t,e.data.pendingInsert),e.elm=e.componentInstance.$el,d(e)?(p(e,t),h(e)):(Ht(e),t.push(e))}function u(e,t,n,r){for(var i,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,Mt(i=o.data)&&Mt(i=i.transition)){for(i=0;i<A.activate.length;++i)A.activate[i](wa,o);t.push(o);break}c(n,e.elm,r)}function c(e,t,n){e&&(n?O.insertBefore(e,t,n):O.appendChild(e,t))}function f(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)a(t[r],n,e.elm,null,!0);else o(e.text)&&O.appendChild(e.elm,O.createTextNode(e.text))}function d(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return Mt(e.tag)}function p(e,t){for(var n=0;n<A.create.length;++n)A.create[n](wa,e);C=e.data.hook,Mt(C)&&(C.create&&C.create(wa,e),C.insert&&t.push(e))}function h(e){for(var t,n=e;n;)Mt(t=n.context)&&Mt(t=t.$options._scopeId)&&O.setAttribute(e.elm,t,""),n=n.parent;Mt(t=ko)&&t!==e.context&&Mt(t=t.$options._scopeId)&&O.setAttribute(e.elm,t,"")}function v(e,t,n,r,i,o){for(;r<=i;++r)a(n[r],o,e,t)}function m(e){var t,n,r=e.data;if(Mt(r))for(Mt(t=r.hook)&&Mt(t=t.destroy)&&t(e),t=0;t<A.destroy.length;++t)A.destroy[t](e);if(Mt(t=e.children))for(n=0;n<e.children.length;++n)m(e.children[n])}function g(e,t,n,r){for(;n<=r;++n){var o=t[n];Mt(o)&&(Mt(o.tag)?(y(o),m(o)):i(o.elm))}}function y(e,t){if(t||Mt(e.data)){var n=A.remove.length+1;for(t?t.listeners+=n:t=r(e.elm,n),Mt(C=e.componentInstance)&&Mt(C=C._vnode)&&Mt(C.data)&&y(C,t),C=0;C<A.remove.length;++C)A.remove[C](e,t);Mt(C=e.data.hook)&&Mt(C=C.remove)?C(e,t):t()}else i(e.elm)}function _(e,t,n,r,i){for(var o,s,l,u,c=0,f=0,d=t.length-1,p=t[0],h=t[d],m=n.length-1,y=n[0],_=n[m],T=!i;c<=d&&f<=m;)Rt(p)?p=t[++c]:Rt(h)?h=t[--d]:Ft(p,y)?(b(p,y,r),p=t[++c],y=n[++f]):Ft(h,_)?(b(h,_,r),h=t[--d],_=n[--m]):Ft(p,_)?(b(p,_,r),T&&O.insertBefore(e,p.elm,O.nextSibling(h.elm)),p=t[++c],_=n[--m]):Ft(h,y)?(b(h,y,r),T&&O.insertBefore(e,h.elm,p.elm),h=t[--d],y=n[++f]):(Rt(o)&&(o=Wt(t,c,d)),s=Mt(y.key)?o[y.key]:null,Rt(s)?(a(y,r,e,p.elm),y=n[++f]):(l=t[s],l||ro("It seems there are duplicate keys that is causing an update
Line truncated
|
||||
this._triggerArray.length&&e(this._triggerArray).removeClass(f.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var u=function(){e(t._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).addClass(f.SHOW),t._element.style[l]="",t.setTransitioning(!1),e(t._element).trigger(c.SHOWN)};if(!o.supportsTransitionEnd())return void u();var d=l[0].toUpperCase()+l.slice(1),h="scroll"+d;e(this._element).one(o.TRANSITION_END,u).emulateTransitionEnd(600),this._element.style[l]=this._element[h]+"px"}}}},s.prototype.hide=function(){var t=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(e(this._element).hasClass(f.SHOW)){var n=e.Event(c.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension(),i=r===d.WIDTH?"offsetWidth":"offsetHeight";this._element.style[r]=this._element[i]+"px",o.reflow(this._element),e(this._element).addClass(f.COLLAPSING).removeClass(f.COLLAPSE).removeClass(f.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&e(this._triggerArray).addClass(f.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var a=function(){t.setTransitioning(!1),e(t._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).trigger(c.HIDDEN)};if(this._element.style[r]="",!o.supportsTransitionEnd())return void a();e(this._element).one(o.TRANSITION_END,a).emulateTransitionEnd(600)}}},s.prototype.setTransitioning=function(e){this._isTransitioning=e},s.prototype.dispose=function(){e.removeData(this._element,a),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s.prototype._getConfig=function(n){return n=e.extend({},l,n),n.toggle=Boolean(n.toggle),o.typeCheckConfig(t,n,u),n},s.prototype._getDimension=function(){return e(this._element).hasClass(d.WIDTH)?d.WIDTH:d.HEIGHT},s.prototype._getParent=function(){var t=this,n=e(this._config.parent)[0],r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return e(n).find(r).each(function(e,n){t._addAriaAndCollapsedClass(s._getTargetFromElement(n),[n])}),n},s.prototype._addAriaAndCollapsedClass=function(t,n){if(t){var r=e(t).hasClass(f.SHOW);t.setAttribute("aria-expanded",r),n.length&&e(n).toggleClass(f.COLLAPSED,!r).attr("aria-expanded",r)}},s._getTargetFromElement=function(t){var n=o.getSelectorFromElement(t);return n?e(n)[0]:null},s._jQueryInterface=function(t){return this.each(function(){var n=e(this),i=n.data(a),o=e.extend({},l,n.data(),"object"===(void 0===t?"undefined":r(t))&&t);if(!i&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),i||(i=new s(this,o),n.data(a,i)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return l}}]),s}();e(document).on(c.CLICK_DATA_API,p.DATA_TOGGLE,function(t){t.preventDefault();var n=h._getTargetFromElement(this),r=e(n).data(a),i=r?"toggle":e(this).data();h._jQueryInterface.call(e(n),i)}),e.fn[t]=h._jQueryInterface,e.fn[t].Constructor=h,e.fn[t].noConflict=function(){return e.fn[t]=s,h._jQueryInterface},h}(jQuery),function(e){var t="dropdown",r=".bs.dropdown",a=e.fn[t],s={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,CLICK:"click"+r,CLICK_DATA_API:"click.bs.dropdown.data-api",FOCUSIN_DATA_API:"focusin.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api"},l={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",SHOW:"show"},u={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},c=function(){function t(e){n(this,t),this._element=e,this._addEventListeners()}return t.prototype.toggle=function(){if(this.disabled||e(this).hasClass(l.DISABLED))return!1;var n=t._getParentFromElement(this),r=e(n).hasClass(l.SHOW);if(t._clearMenus(),r)return!1;if("ontouchstart"in document.documentElement&&!e(n).closest(u.NAVBAR_NAV).length){var i=document.createElement("div");i.className=l.BACKDROP,e(i).insertBefore(this),e(i).on("click",t._clearMenus)}var o={relatedTarget:this},a=e.Event(s.SHOW,o);return e(n).trigger(a),!a.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded",!0),e(n).toggleClass(l.SHOW),e(n).trigger(e.Event(s.SHOWN,o)),!1)},t.prototype.dispose=function(){e.removeData(this._element,"bs.dropdown"),e(this._element).off(r),this._element=null},t.prototype._addEventListeners=function(){e(this._element).on(s.CLICK,this.toggle)},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data("bs.dropdown");if(r||(r=new t(this),e(this).data("bs.dropdown",r)),"string"==typeof n){if(void 0===r[n])throw new Error('No method named "'+n+'"');r[n].call(this)}})},t._clearMenus=function(n){if(!n||3!==n.which){var r=e(u.BACKDROP)[0];r&&r.parentNode.removeChild(r);for(var i=e.makeArray(e(u.DATA_TOGGLE)),o=0;o<i.Line truncated
|
||||
o(this).data("bs.popover",t)),"string"==typeof e)){if(void 0===t[e])throw new Error('No method named "'+e+'"');t[e]()}})},i(u,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return c}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return h}},{key:"EVENT_KEY",get:function(){return l}},{key:"DefaultType",get:function(){return f}}]),u}(a);o.fn[s]=v._jQueryInterface,o.fn[s].Constructor=v,o.fn[s].noConflict=function(){return o.fn[s]=u,v._jQueryInterface},v}(jQuery)}();
|
||||
function UploadPhotosViewModel(e,t,n,r){this.el="#upload-tab",this.data={currentStatus:"",imagesFailed:0,imagesTotal:0,imagesUploaded:0,isBulkUploadInProgress:!1,isUploadInProgress:!1,statusMessages:[]},this.computed={failedPercentage:function(){var e=0;return this.imagesTotal>0&&(e=this.imagesFailed/this.imagesTotal*100),e.toFixed(2)+"%"},successfulPercentage:function(){var e=0;return this.imagesTotal>0&&(e=this.imagesUploaded/this.imagesTotal*100),e.toFixed(2)+"%"}},this.methods={onUploadCompleted:function(){this.currentStatus=n.upload_status.replace(":current",this.imagesUploaded+this.imagesFailed).replace(":total",this.imagesTotal),this.imagesFailed+this.imagesUploaded>=this.imagesTotal&&(this.isUploadInProgress=!1,0===this.imagesFailed&&this.imagesUploaded>0&&(window.location=r.analyse))},onUploadFailed:function(e,t){this.imagesFailed++,this.statusMessages.push({message_class:"text-danger",message_text:n.image_failed.replace(":file_name",t)}),this.onUploadCompleted()},onUploadSuccessful:function(e,t){e.is_successful?(this.imagesUploaded++,this.onUploadCompleted()):this.onUploadFailed(e,t)},uploadFile:function(r,i){var o=this,a=new FormData;a.append("album_id",e),a.append("queue_token",t),a.append("photo[]",i,i.name),$.ajax({contentType:!1,data:a,error:function(e){o.onUploadFailed(e,i.name)},method:$(r).attr("method"),processData:!1,success:function(e){o.onUploadSuccessful(e,i.name)},url:$(r).attr("action")}),this.isUploadInProgress=!0,this.currentStatus=n.upload_status.replace(":current",0).replace(":total",this.imagesTotal)},uploadIndividualFiles:function(e){var t=$("input[type=file]",e.target),r=t[0].files;this.currentStatus="",this.statusMessages=[],this.imagesUploaded=0,this.imagesFailed=0,this.imagesTotal=r.length,this.isUploadInProgress=!0;for(var i=0;i<r.length;i++){var o=r[i];o.type.match("image.*")?this.uploadFile(e.target,o):(alert(n.not_an_image_file.replace(":file_name",o.name)),this.onUploadFailed(null,o.name))}return e.preventDefault(),!1}}}function StorageLocationViewModel(){this.el="#storage-options",this.data={storage_driver:"LocalFilesystemSource"}}if(function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return se.call(t,e)>-1!==n}):Te.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return se.call(t,e)>-1!==n&&1===e.nodeType}))}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return he.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function l(e){return e}function u(e){throw e}function c(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function d(){this.expando=he.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Le.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace($e,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=p(n)}catch(e){}Ne.set(e,t,n)}else n=void 0;return n}function v(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return he.css(e,t,"")},l=s(),u=n&&n[3]||(he.cssNumber[t]?"":"px"),c=(he.cssNumber[t]||"px"!==u&&+l)&&Pe.exec(he.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{o=o||".5",c/=o,he.style(e,t,c+u)}while(o!==(o=s()/l)&&1!==o&&--a)}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}function m(e){var t,n=e.ownerDocument,r=e.nodeName,i=Fe[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=he.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Fe[r]=i,i)}function g(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=ke.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Re(r)&&(i[o]=m(r))):"none"!==n&&(i[o]="none",ke.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?he.merge([e],n):n}Line truncated
|
||||
for(d=t;d=d[v];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(d=m,f=d[R]||(d[R]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),u=c[e]||[],p=u[0]===F&&u[1],_=p&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[v]||(_=p=0)||h.pop();)if(1===d.nodeType&&++_&&d===t){c[e]=[F,p,_];break}}else if(y&&(d=t,f=d[R]||(d[R]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),u=c[e]||[],p=u[0]===F&&u[1],_=p),_===!1)for(;(d=++p&&d&&d[v]||(_=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++_||(y&&(f=d[R]||(d[R]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[F,_]),d!==t)););return(_-=i)===r||_%r==0&&_/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[R]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=J(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=x(e.replace(oe,"$1"));return i[R]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(ge,ye),function(t){return(t.textContent||t.innerText||E(t)).indexOf(e)>-1}}),lang:r(function(e){return ce.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ge,ye).toLowerCase(),function(t){var n;do{if(n=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===N},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(_ in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[_]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(_);for(_ in{submit:!0,reset:!0})T.pseudos[_]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(_);return c.prototype=T.filters=T.pseudos,T.setFilters=new c,C=t.tokenize=function(e,n){var r,i,o,a,s,l,u,c=V[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=T.preFilter;s;){r&&!(i=ae.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=se.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),s=s.slice(r.length));for(a in T.filter)!(i=fe[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):V(e,l).slice(0)},x=t.compile=function(e,t){var n,r=[],i=[],o=q[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)o=g(t[n]),o[R]?r.push(o):i.push(o);o=q(e,y(i,r)),o.selector=e}return o},A=t.select=function(e,t,n,r){var i,o,a,s,l,c="function"==typeof e&&e,d=!r&&C(e=c.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&L&&T.relative[o[1].type]){if(!(t=(T.find.ID(a.matches[0].replace(ge,ye),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((l=T.find[s])&&(r=l(a.matches[0].replace(ge,ye),me.test(o[0].type)&&u(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return Y.apply(n,r),n;break}}return(c||x(e,d))(r,t,!L,n,!t||me.test(e)&&u(t.parentNode)||t),n},b.sortStable=R.split("").sort(B).join("")===R,b.detectDuplicates=!!D,I(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)retuLine truncated
|
||||
he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=M.prototype.init,he.fx.step={};var ut,ct,ft=/^(?:toggle|show|hide)$/,dt=/queueHooks$/;he.Animation=he.extend(K,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return v(n.elem,e,Pe.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,r=0,i=e.length;r<i;r++)n=e[r],K.tweeners[n]=K.tweeners[n]||[],K.tweeners[n].unshift(t)},prefilters:[q],prefilter:function(e,t){t?K.prefilters.unshift(e):K.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){he.isFunction(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Re).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),a=function(){var t=K(this,he.extend({},e),o);(i||ke.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,a=ke.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&dt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ke.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,a=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(U(t,!0),e,r,i)}}),he.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(ut=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),ut=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ct||(ct=!0,F())},he.fx.stop=function(){ct=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",pe.checkOn=""!==e.value,pe.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",pe.radioValue="t"===e.value}();var pt,ht=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return De(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=he.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return t===!1?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ht[t]||he.find.attr;ht[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ht[a],ht[a]=i,i=null!=n(e,t,r)?a:null,ht[a]=o),i}});var vt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return De(this,he.prop,e,t,arguments.lengthLine truncated
|
||||
e[o]=s):(a.fns||(a=e[o]=Q(a)),n(l.name,a,l.once,l.capture)):ro('Invalid handler for event "'+l.name+'": got '+String(a),i);for(o in t)e[o]||(l=Io(o),r(l.name,t[o],l.capture))}function Y(e,t,n){function i(){n.apply(this,arguments),r(o.fns,i)}var o,a=e[t];a?a.fns&&a.merged?(o=a,o.fns.push(i)):o=Q([a,i]):o=Q([i]),o.merged=!0,e[t]=o}function X(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function J(e){return o(e)?[B(e)]:Array.isArray(e)?Z(e):void 0}function Z(e,t){var n,r,i,a=[];for(n=0;n<e.length;n++)null!=(r=e[n])&&"boolean"!=typeof r&&(i=a[a.length-1],Array.isArray(r)?a.push.apply(a,Z(r,(t||"")+"_"+n)):o(r)?i&&i.text?i.text+=String(r):""!==r&&a.push(B(r)):r.text&&i&&i.text?a[a.length-1]=B(i.text+r.text):(r.tag&&null==r.key&&null!=t&&(r.key="__vlist"+t+"_"+n+"__"),a.push(r)));return a}function ee(e){return e&&e.filter(function(e){return e&&e.componentOptions})[0]}function te(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&ie(e,t)}function ne(e,t,n){n?Oo.$once(e,t):Oo.$on(e,t)}function re(e,t){Oo.$off(e,t)}function ie(e,t,n){Oo=e,z(t,n||{},ne,re,e)}function oe(e,t){var n={};if(!e)return n;for(var r,i,o=[],a=0,s=e.length;a<s;a++)if(i=e[a],(i.context===t||i.functionalContext===t)&&i.data&&(r=i.data.slot)){var l=n[r]||(n[r]=[]);"template"===i.tag?l.push.apply(l,i.children):l.push(i)}else o.push(i);return o.length&&(1!==o.length||" "!==o[0].text&&!o[0].isComment)&&(n.default=o),n}function ae(e){for(var t={},n=0;n<e.length;n++)t[e[n][0]]=e[n][1];return t}function se(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function le(e,t,n){e.$el=t,e.$options.render||(e.$options.render=Do,e.$options.template&&"#"!==e.$options.template.charAt(0)?ro("You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):ro("Failed to mount component: template or render function not defined.",e)),pe(e,"beforeMount");var r;return r=Mi.performance&&Zi?function(){var t=e._name,r="start "+t,i="end "+t;Zi.mark(r);var o=e._render();Zi.mark(i),Zi.measure(t+" render",r,i),Zi.mark(r),e._update(o,n),Zi.mark(i),Zi.measure(t+" patch",r,i)}:function(){e._update(e._render(),n)},e._watcher=new Mo(e,r,p),n=!1,null==e.$vnode&&(e._isMounted=!0,pe(e,"mounted")),e}function ue(e,t,n,r,i){var o=!!(i||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==to);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=i,t&&e.$options.props){vo.shouldConvert=!1,vo.isSettingProps=!0;for(var a=e._props,s=e.$options._propKeys||[],l=0;l<s.length;l++){var u=s[l];a[u]=R(u,e.$options.props,t,e)}vo.shouldConvert=!0,vo.isSettingProps=!1,e.$options.propsData=t}if(n){var c=e.$options._parentListeners;e.$options._parentListeners=n,ie(e,n,c)}o&&(e.$slots=oe(i,r.context),e.$forceUpdate())}function ce(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function fe(e,t){if(t){if(e._directInactive=!1,ce(e))return}else if(e._directInactive)return;if(e._inactive||null==e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)fe(e.$children[n]);pe(e,"activated")}}function de(e,t){if(!(t&&(e._directInactive=!0,ce(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)de(e.$children[n]);pe(e,"deactivated")}}function pe(e,t){var n=e.$options[t];if(n)for(var r=0,i=n.length;r<i;r++)try{n[r].call(e)}catch(n){q(n,e,t+" hook")}e._hasHookEvent&&e.$emit("hook:"+t)}function he(){No.length=0,Lo={},$o={},jo=Po=!1}function ve(){Po=!0;var e,t,n;for(No.sort(function(e,t){return e.id-t.id}),Ho=0;Ho<No.length;Ho++)if(e=No[Ho],t=e.id,Lo[t]=null,e.run(),null!=Lo[t]&&($o[t]=($o[t]||0)+1,$o[t]>Mi._maxUpdateCount)){ro("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}for(Ho=No.length;Ho--;)e=No[Ho],n=e.vm,n._watcher===e&&n._isMounted&&pe(n,"updated");Yi&&Mi.devtools&&Yi.emit("flush"),he()}function me(e){var t=e.id;if(null==Lo[t]){if(Lo[t]=!0,Po){for(var n=No.length-1;n>=0&&No[n].id>e.id;)n--;No.splice(Math.max(n,Ho)+1,0,e)}else No.push(e);jo||(jo=!0,Ji(ve))}}function ge(e){Fo.clear(),ye(e,Fo)}function ye(e,t){var n,r,i=Array.isArray(e);if((i||c(e))&&Object.isExtensible(e)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i)for(n=e.length;n--;)ye(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)ye(e[r[n]],t)}}function _e(e,t,n){Wo.get=function(){return this[t][n]},Wo.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Wo)}function be(e){e._watchers=[];var t=e.$options;t.props&&Te(e,t.props),t.methods&&Ae(e,t.methods),t.data?Ee(e):x(e._data={},!0),t.computed&&Line truncated
|
||||
e.dispatchEvent(n)}function tr(e){return!e.componentInstance||e.data&&e.data.transition?e:tr(e.componentInstance._vnode)}function nr(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?nr(ee(t.children)):e}function rr(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[Ni(o)]=i[o];return t}function ir(e,t){return/\d-keep-alive$/.test(t.tag)?e("keep-alive"):null}function or(e){for(;e=e.parent;)if(e.data.transition)return!0}function ar(e,t){return t.key===e.key&&t.tag===e.tag}function sr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function lr(e){e.data.newPos=e.elm.getBoundingClientRect()}function ur(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function cr(e){return cs=cs||document.createElement("div"),cs.innerHTML=e,cs.textContent}function fr(e,t){var n=t?Gs:Ks;return e.replace(n,function(e){return Bs[e]})}function dr(e,t){function n(t){u+=t,e=e.substring(t)}function r(e,n,r){var i,s;if(null==n&&(n=u),null==r&&(r=u),e&&(s=e.toLowerCase()),e)for(i=a.length-1;i>=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var l=a.length-1;l>=i;l--)(l>i||!e)&&t.warn&&t.warn("tag <"+a[l].tag+"> has no matching end tag."),t.end&&t.end(a[l].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var i,o,a=[],s=t.expectHTML,l=t.isUnaryTag||Hi,u=0;e;){if(i=e,o&&Vs(o)){var c=o.toLowerCase(),f=qs[c]||(qs[c]=new RegExp("([\\s\\S]*?)(</"+c+"[^>]*>)","i")),d=0,p=e.replace(f,function(e,n,r){return d=r.length,"script"!==c&&"style"!==c&&"noscript"!==c&&(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),t.chars&&t.chars(n),""});u+=e.length-p.length,e=p,r(c,u-d,u)}else{var h=e.indexOf("<");if(0===h){if(Es.test(e)){var v=e.indexOf("-->");if(v>=0){n(v+3);continue}}if(ws.test(e)){var m=e.indexOf("]>");if(m>=0){n(m+2);continue}}var g=e.match(Ts);if(g){n(g[0].length);continue}var y=e.match(bs);if(y){var _=u;n(y[0].length),r(y[1],_,u);continue}var b=function(){var t=e.match(ys);if(t){var r={tagName:t[1],attrs:[],start:u};n(t[0].length);for(var i,o;!(i=e.match(_s))&&(o=e.match(ms));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=u,r}}();if(b){!function(e){var n=e.tagName,i=e.unarySlash;s&&("p"===o&&hs(n)&&r(o),ps(n)&&o===n&&r(n));for(var u=l(n)||"html"===n&&"head"===o||!!i,c=e.attrs.length,f=new Array(c),d=0;d<c;d++){var p=e.attrs[d];Cs&&p[0].indexOf('""')===-1&&(""===p[3]&&delete p[3],""===p[4]&&delete p[4],""===p[5]&&delete p[5]);var h=p[3]||p[4]||p[5]||"";f[d]={name:p[1],value:fr(h,t.shouldDecodeNewlines)}}u||(a.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f}),o=n),t.start&&t.start(n,f,u,e.start,e.end)}(b);continue}}var T=void 0,E=void 0,w=void 0;if(h>=0){for(E=e.slice(h);!(bs.test(E)||ys.test(E)||Es.test(E)||ws.test(E)||(w=E.indexOf("<",1))<0);)h+=w,E=e.slice(h);T=e.substring(0,h),n(h)}h<0&&(T=e,e=""),t.chars&&T&&t.chars(T)}if(e===i){t.chars&&t.chars(e),!a.length&&t.warn&&t.warn('Mal-formatted tag at end of template: "'+e+'"');break}}r()}function pr(e,t){var n=t?zs(t):Qs;if(n.test(e)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(e);){i=r.index,i>a&&o.push(JSON.stringify(e.slice(a,i)));var s=Yt(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a<e.length&&o.push(JSON.stringify(e.slice(a))),o.join("+")}}function hr(e,t){function n(e){e.pre&&(s=!1),Os(e.tag)&&(l=!1)}xs=t.warn||Jt,As=t.getTagNamespace||Hi,Ss=t.mustUseProp||Hi,Os=t.isPreTag||Hi,Ds=Zt(t.modules,"preTransformNode"),Is=Zt(t.modules,"transformNode"),ks=Zt(t.modules,"postTransformNode"),Ns=t.delimiters;var r,i,o=[],a=t.preserveWhitespace!==!1,s=!1,l=!1,u=!1;return dr(e,{warn:xs,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,shouldDecodeNewlines:t.shouldDecodeNewlines,start:function(e,a,c){function f(e){u||("slot"!==e.tag&&"template"!==e.tag||(u=!0,xs("Cannot use <"+e.tag+"> as component root element because it may contain multiple nodes.")),e.attrsMap.hasOwnProperty("v-for")&&(u=!0,xs("Cannot use v-for on stateful component root element because it renders multiple elements.")))}var d=i&&i.ns||As(e);Vi&&"svg"===d&&(a=Nr(a));var p={type:1,tag:e,attrsList:a,attrsMap:Ir(a),parent:i,children:[]};d&&(p.ns=d),kr(p)&&!zi()&&(p.forbidden=!0,xs("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <"+e+">, as they will not be parsed."));for(var h=0;h<Ds.length;h++)Ds[h](p,t);if(s||(vr(p),p.pre&&(s=!0)),Os(p.tag)&&(l=!0),s)mr(p);else{_r(p),br(p),Cr(p),gr(p),p.plain=!p.key&&!a.length,yr(p),xr(p),Ar(p);for(var v=0;v<Is.length;v++)Is[v](p,t);Sr(p)}if(r?o.length||(r.if&&(p.elseif||p.else)?(f(p),wr(r,{exp:p.elseif,block:p})):u||(u=!0,xs("Component template should contain exactly one root element. If you are using v-if on mulLine truncated
|
||||
at.version="2.2.0";var Jo,Zo,ea,ta,na,ra,ia,oa,aa,sa=n("input,textarea,option,select"),la=function(e,t,n){return"value"===n&&sa(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},ua=n("contenteditable,draggable,spellcheck"),ca=n("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),fa="http://www.w3.org/1999/xlink",da=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},pa=function(e){return da(e)?e.slice(6,e.length):""},ha=function(e){return null==e||e===!1},va={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ma=n("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),ga=n("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ya=function(e){return"pre"===e},_a=function(e){return ma(e)||ga(e)},ba=Object.create(null),Ta=Object.freeze({createElement:xt,createElementNS:At,createTextNode:St,createComment:Ot,insertBefore:Dt,removeChild:It,appendChild:kt,parentNode:Nt,nextSibling:Lt,tagName:$t,setTextContent:jt,setAttribute:Pt}),Ea={create:function(e,t){Ht(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ht(e,!0),Ht(t))},destroy:function(e){Ht(e,!0)}},wa=new Ao("",{},[]),Ca=["create","activate","update","remove","destroy"],xa={create:Ut,update:Ut,destroy:function(e){Ut(e,wa)}},Aa=Object.create(null),Sa=[Ea,xa],Oa={create:Gt,update:Gt},Da={create:zt,update:zt},Ia=/[\w).+\-_$\]]/,ka="__r",Na="__c",La={create:Cn,update:Cn},$a={create:xn,update:xn},ja=a(function(e){var t={};return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var n=e.split(/:(.+)/);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),Pa=/^--/,Ha=/\s*!important$/,Ra=function(e,t,n){Pa.test(t)?e.style.setProperty(t,n):Ha.test(n)?e.style.setProperty(t,n.replace(Ha,""),"important"):e.style[Fa(t)]=n},Ma=["Webkit","Moz","ms"],Fa=a(function(e){if(aa=aa||document.createElement("div"),"filter"!==(e=Ni(e))&&e in aa.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ma.length;n++){var r=Ma[n]+t;if(r in aa.style)return r}}),Wa={create:Nn,update:Nn},Ua=a(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Va=Wi&&!qi,qa="transition",Ba="animation",Ka="transition",Ga="transitionend",Qa="animation",za="animationend";Va&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ka="WebkitTransition",Ga="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Qa="WebkitAnimation",za="webkitAnimationEnd"));var Ya=Wi&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout,Xa=/\b(transform|all)(,|$)/,Ja=Wi?{create:Qn,activate:Qn,remove:function(e,t){e.data.show?t():qn(e,t)}}:{},Za=[Oa,Da,La,$a,Wa,Ja],es=Za.concat(Sa),ts=function(e){function t(e){return new Ao(O.tagName(e).toLowerCase(),{},[],void 0,e)}function r(e,t){function n(){0==--n.listeners&&i(e)}return n.listeners=t,n}function i(e){var t=O.parentNode(e);t&&O.removeChild(t,e)}function a(e,t,n,r,i){if(e.isRootInsert=!i,!s(e,t,n,r)){var o=e.data,a=e.children,l=e.tag;Mt(l)?(o&&o.pre&&D++,D||e.ns||Mi.ignoredElements.length&&Mi.ignoredElements.indexOf(l)>-1||!Mi.isUnknownElement(l)||ro("Unknown custom element: <"+l+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',e.context),e.elm=e.ns?O.createElementNS(e.ns,l):O.createElement(l,e),h(e),f(e,a,t),Mt(o)&&p(e,t),c(n,e.elm,r),o&&o.pre&&D--):e.isComment?(e.elm=O.createComment(e.text),c(n,e.elm,r)):(e.elm=O.createTextNode(e.text),c(n,e.elm,r))}}function s(e,t,n,r){var i=e.data;if(Mt(i)){var o=Mt(e.componentInstance)&&i.keepAlive;if(Mt(i=i.hook)&&Mt(i=i.init)&&i(e,!1,n,r),Mt(e.componentInstance))return l(e,t),o&&u(e,t,n,r),!0}}function l(e,t){e.data.pendingInsert&&t.push.apply(t,e.data.pendingInsert),e.elm=e.componentInstance.$el,d(e)?(p(e,t),h(e)):(Ht(e),t.push(e))}function
Line truncated
|
||||
;e(document).on(d.CLICK_DATA_API,h.DATA_SLIDE,v._dataApiClickHandler),e(window).on(d.LOAD_DATA_API,function(){e(h.DATA_RIDE).each(function(){var t=e(this);v._jQueryInterface.call(t,t.data())})}),e.fn[t]=v._jQueryInterface,e.fn[t].Constructor=v,e.fn[t].noConflict=function(){return e.fn[t]=l,v._jQueryInterface},v}(jQuery),function(e){var t="collapse",a="bs.collapse",s=e.fn[t],l={toggle:!0,parent:""},u={toggle:"boolean",parent:"string"},c={SHOW:"show."+a,SHOWN:"shown."+a,HIDE:"hide."+a,HIDDEN:"hidden."+a,CLICK_DATA_API:"click.bs.collapse.data-api"},f={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},d={WIDTH:"width",HEIGHT:"height"},p={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},h=function(){function s(t,r){n(this,s),this._isTransitioning=!1,this._element=t,this._config=this._getConfig(r),this._triggerArray=e.makeArray(e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return s.prototype.toggle=function(){e(this._element).hasClass(f.SHOW)?this.hide():this.show()},s.prototype.show=function(){var t=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(!e(this._element).hasClass(f.SHOW)){var n=void 0,r=void 0;if(this._parent&&(n=e.makeArray(e(this._parent).find(p.ACTIVES)),n.length||(n=null)),!(n&&(r=e(n).data(a))&&r._isTransitioning)){var i=e.Event(c.SHOW);if(e(this._element).trigger(i),!i.isDefaultPrevented()){n&&(s._jQueryInterface.call(e(n),"hide"),r||e(n).data(a,null));var l=this._getDimension();e(this._element).removeClass(f.COLLAPSE).addClass(f.COLLAPSING),this._element.style[l]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&e(this._triggerArray).removeClass(f.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var u=function(){e(t._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).addClass(f.SHOW),t._element.style[l]="",t.setTransitioning(!1),e(t._element).trigger(c.SHOWN)};if(!o.supportsTransitionEnd())return void u();var d=l[0].toUpperCase()+l.slice(1),h="scroll"+d;e(this._element).one(o.TRANSITION_END,u).emulateTransitionEnd(600),this._element.style[l]=this._element[h]+"px"}}}},s.prototype.hide=function(){var t=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(e(this._element).hasClass(f.SHOW)){var n=e.Event(c.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension(),i=r===d.WIDTH?"offsetWidth":"offsetHeight";this._element.style[r]=this._element[i]+"px",o.reflow(this._element),e(this._element).addClass(f.COLLAPSING).removeClass(f.COLLAPSE).removeClass(f.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&e(this._triggerArray).addClass(f.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var a=function(){t.setTransitioning(!1),e(t._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).trigger(c.HIDDEN)};if(this._element.style[r]="",!o.supportsTransitionEnd())return void a();e(this._element).one(o.TRANSITION_END,a).emulateTransitionEnd(600)}}},s.prototype.setTransitioning=function(e){this._isTransitioning=e},s.prototype.dispose=function(){e.removeData(this._element,a),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s.prototype._getConfig=function(n){return n=e.extend({},l,n),n.toggle=Boolean(n.toggle),o.typeCheckConfig(t,n,u),n},s.prototype._getDimension=function(){return e(this._element).hasClass(d.WIDTH)?d.WIDTH:d.HEIGHT},s.prototype._getParent=function(){var t=this,n=e(this._config.parent)[0],r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return e(n).find(r).each(function(e,n){t._addAriaAndCollapsedClass(s._getTargetFromElement(n),[n])}),n},s.prototype._addAriaAndCollapsedClass=function(t,n){if(t){var r=e(t).hasClass(f.SHOW);t.setAttribute("aria-expanded",r),n.length&&e(n).toggleClass(f.COLLAPSED,!r).attr("aria-expanded",r)}},s._getTargetFromElement=function(t){var n=o.getSelectorFromElement(t);return n?e(n)[0]:null},s._jQueryInterface=function(t){return this.each(function(){var n=e(this),i=n.data(a),o=e.extend({},l,n.data(),"object"===(void 0===t?"undefined":r(t))&&t);if(!i&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),i||(i=new s(this,o),n.data(a,i)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return l}}]),s}();e(document).on(c.CLICK_DATA_API,p.DATA_TOGGLE,function(t){t.preventDefault();var n=h._getTargetFromElement(this),r=e(n).data(a),i=r?"toggle":e(this).data();h._jQueryInterface.call(e(n),i)}),e.fn[t]=h._jQueryInterface,e.fn[t].Constructor=h,e.fn[t].noConflict=function(){return e.fn[t]=s,h._jQueryInterface},h}(jQuery),funLine truncated
|
||||
key:"Default",get:function(){return l}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return u}}]),s}();return e.fn[t]=g._jQueryInterface,e.fn[t].Constructor=g,e.fn[t].noConflict=function(){return e.fn[t]=s,g._jQueryInterface},g}(jQuery));!function(o){var s="popover",l=".bs.popover",u=o.fn[s],c=o.extend({},a.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),f=o.extend({},a.DefaultType,{content:"(string|element|function)"}),d={FADE:"fade",SHOW:"show"},p={TITLE:".popover-title",CONTENT:".popover-content"},h={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,INSERTED:"inserted"+l,CLICK:"click"+l,FOCUSIN:"focusin"+l,FOCUSOUT:"focusout"+l,MOUSEENTER:"mouseenter"+l,MOUSELEAVE:"mouseleave"+l},v=function(a){function u(){return n(this,u),e(this,a.apply(this,arguments))}return t(u,a),u.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},u.prototype.getTipElement=function(){return this.tip=this.tip||o(this.config.template)[0]},u.prototype.setContent=function(){var e=o(this.getTipElement());this.setElementContent(e.find(p.TITLE),this.getTitle()),this.setElementContent(e.find(p.CONTENT),this._getContent()),e.removeClass(d.FADE+" "+d.SHOW),this.cleanupTether()},u.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},u._jQueryInterface=function(e){return this.each(function(){var t=o(this).data("bs.popover"),n="object"===(void 0===e?"undefined":r(e))?e:null;if((t||!/destroy|hide/.test(e))&&(t||(t=new u(this,n),o(this).data("bs.popover",t)),"string"==typeof e)){if(void 0===t[e])throw new Error('No method named "'+e+'"');t[e]()}})},i(u,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return c}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return h}},{key:"EVENT_KEY",get:function(){return l}},{key:"DefaultType",get:function(){return f}}]),u}(a);o.fn[s]=v._jQueryInterface,o.fn[s].Constructor=v,o.fn[s].noConflict=function(){return o.fn[s]=u,v._jQueryInterface},v}(jQuery)}();
|
||||
Reference in new issue
Block a user