Unverified Commit 2aad3b2c authored by Dannon's avatar Dannon Committed by GitHub
Browse files

Merge pull request #6802 from mvdbeek/fix_int_parsing_rules

[18.05] Cast rule.length to int when parsing rules
parents de794dd9 2d78dbb9
......@@ -297,7 +297,7 @@ const RULES = {
},
save: (component, rule) => {
rule.target_column = component.addColumnSubstrTarget;
rule.length = component.addColumnSubstrLength;
rule.length = parseInt(component.addColumnSubstrLength);
rule.substr_type = component.addColumnSubstrType;
},
apply: (rule, data, sources, columns) => {
......
......@@ -64,7 +64,7 @@ this.get("accessible")||this.set("state",s.default.NOT_VIEWABLE),this.urls=this.
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
*/
!function(t,i){"use strict";var o;try{o=n(4)}catch(e){}e.exports=i(o)}(0,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,i=window.document,o=window.setTimeout,r=function(e,t,i,o){n?e.addEventListener(t,i,!!o):e.attachEvent("on"+t,i)},a=function(e,t,i,o){n?e.removeEventListener(t,i,!!o):e.detachEvent("on"+t,i)},s=function(e,t,n){var o;i.createEvent?(o=i.createEvent("HTMLEvents"),o.initEvent(t,!0,!1),o=_(o,n),e.dispatchEvent(o)):i.createEventObject&&(o=i.createEventObject(),o=_(o,n),e.fireEvent("on"+t,o))},l=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},u=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},c=function(e,t){u(e,t)||(e.className=""===e.className?t:e.className+" "+t)},d=function(e,t){e.className=l((" "+e.className+" ").replace(" "+t+" "," "))},h=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return 0===t||6===t},m=function(e){return e%4==0&&e%100!=0||e%400==0},g=function(e,t){return[31,m(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},v=function(e){f(e)&&e.setHours(0,0,0,0)},y=function(e,t){return e.getTime()===t.getTime()},_=function(e,t,n){var i,o;for(i in t)o=void 0!==e[i],o&&"object"==typeof t[i]&&null!==t[i]&&void 0===t[i].nodeName?f(t[i])?n&&(e[i]=new Date(t[i].getTime())):h(t[i])?n&&(e[i]=t[i].slice(0)):e[i]=_({},t[i],n):!n&&o||(e[i]=t[i]);return e},b=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},w={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},C=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},T=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},S=function(e,t,n){var i=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,t,e)-i)/864e5+i.getDay()+1)/7)+"</td>"},k=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},M=function(e){return"<tbody>"+e.join("")+"</tbody>"},E=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+C(e,t)+'">'+C(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},x=function(e,t,n,i,o,r){var a,s,l,u,c,d=e._o,f=n===d.minYear,p=n===d.maxYear,m='<div id="'+r+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,v=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===o?a-t:12+a-t)+'"'+(a===i?' selected="selected"':"")+(f&&a<d.minMonth||p&&a>d.maxMonth?'disabled="disabled"':"")+">"+d.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+d.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",h(d.yearRange)?(a=d.yearRange[0],s=d.yearRange[1]+1):(a=n-d.yearRange,s=1+n+d.yearRange),l=[];a<s&&a<=d.maxYear;a++)a>=d.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return c='<div class="pika-label">'+n+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",d.showMonthAfterYear?m+=c+u:m+=u+c,f&&(0===i||d.minMonth>=i)&&(g=!1),p&&(11===i||d.maxMonth<=i)&&(v=!1),0===t&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(m+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),m+="</div>"},O=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+E(e)+M(t)+"</table>"},L=function(a){var s=this,l=s.config(a);s._onMouseDown=function(e){if(s._v){e=e||window.event;var t=e.target||e.srcElement;if(t)if(u(t,"is-disabled")||(!u(t,"pika-button")||u(t,"is-empty")||u(t.parentNode,"is-disabled")?u(t,"pika-prev")?s.prevMonth():u(t,"pika-next")&&s.nextMonth():(s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&o(function(){s.hide(),l.field&&l.field.blur()},100))),u(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},s._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(u(t,"pika-select-month")?s.gotoMonth(t.value):u(t,"pika-select-year")&&s.gotoYear(t.value))},s._onKeyChange=function(e){if(e=e||window.event,s.isVisible())switch(e.keyCode){case 13:case 27:l.field.blur();break;case 37:e.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7)}},s._onInputChange=function(n){var i;n.firedBy!==s&&(t?(i=e(l.field.value,l.format,l.formatStrict),i=i&&i.isValid()?i.toDate():null):i=new Date(Date.parse(l.field.value)),f(i)&&s.setDate(i),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var e=i.activeElement;do{if(u(e,"pika-single"))return}while(e=e.parentNode);s._c||(s._b=o(function(){s.hide()},50)),s._c=!1},s._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,i=t;if(t){!n&&u(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),r(t,"change",s._onChange)));do{if(u(i,"pika-single")||i===l.trigger)return}while(i=i.parentNode);s._v&&t!==l.trigger&&i!==l.trigger&&s.hide()}},s.el=i.createElement("div"),s.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),r(s.el,"mousedown",s._onMouseDown,!0),r(s.el,"touchend",s._onMouseDown,!0),r(s.el,"change",s._onChange),r(i,"keydown",s._onKeyChange),l.field&&(l.container?l.container.appendChild(s.el):l.bound?i.body.appendChild(s.el):l.field.parentNode.insertBefore(s.el,l.field.nextSibling),r(l.field,"change",s._onInputChange),l.defaultDate||(t&&l.field.value?l.defaultDate=e(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;f(c)?l.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.gotoDate(new Date),l.bound?(this.hide(),s.el.className+=" is-bound",r(l.trigger,"click",s._onInputClick),r(l.trigger,"focus",s._onInputFocus),r(l.trigger,"blur",s._onInputBlur)):this.show()};return L.prototype={config:function(e){this._o||(this._o=_({},w,!0));var t=_(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),h(t.yearRange)){var i=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||i,t.yearRange[1]=parseInt(t.yearRange[1],10)||i}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||w.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return f(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,i){t&&e.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,i=this._o.maxDate;f(n)&&e<n?e=n:f(i)&&e>i&&(e=i),this._d=new Date(e.getTime()),v(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),t=o<n.getTime()||i.getTime()<o}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(n,i){var o,r=this.getDate(),a=24*parseInt(i)*60*60*1e3;"add"===n?o=new Date(r.valueOf()+a):"subtract"===n&&(o=new Date(r.valueOf()-a)),t&&("add"===n?o=e(r).add(i,"days").toDate():"subtract"===n&&(o=e(r).subtract(i,"days").toDate())),this.setDate(o)},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=b({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(v(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=w.minDate,this._o.minYear=w.minYear,this._o.minMonth=w.minMonth,this._o.startRange=w.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(v(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=w.maxDate,this._o.maxYear=w.maxYear,this._o.maxMonth=w.maxMonth,this._o.endRange=w.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,i=n.minYear,r=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=i&&(this._y=i,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=r&&(this._y=r,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u<n.numberOfMonths;u++)l+='<div class="pika-lendar">'+x(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&o(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,o,r,a,s,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,o=this.el.offsetHeight,r=window.innerWidth||i.documentElement.clientWidth,a=window.innerHeight||i.documentElement.clientHeight,s=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)c=e.getBoundingClientRect(),l=c.left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>r||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+o>a+s||this._o.position.indexOf("top")>-1&&u-o-e.offsetHeight>0)&&(u=u-o-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t,n){var i=this._o,o=new Date,r=g(e,t),a=new Date(e,t,1).getDay(),s=[],l=[];v(o),i.firstDay>0&&(a-=i.firstDay)<0&&(a+=7);for(var u=0===t?11:t-1,c=11===t?0:t+1,d=0===t?e-1:e,h=11===t?e+1:e,m=g(d,u),_=r+a,b=_;b>7;)b-=7;_+=7-b;for(var w=0,C=0;w<_;w++){var M=new Date(e,t,w-a+1),E=!!f(this._d)&&y(M,this._d),x=y(M,o),L=w<a||w>=r+a,D=w-a+1,R=t,A=e,H=i.startRange&&y(i.startRange,M),P=i.endRange&&y(i.endRange,M),j=i.startRange&&i.endRange&&i.startRange<M&&M<i.endRange,N=i.minDate&&M<i.minDate||i.maxDate&&M>i.maxDate||i.disableWeekends&&p(M)||i.disableDayFn&&i.disableDayFn(M);L&&(w<a?(D=m+D,R=u,A=d):(D-=r,R=c,A=h));var I={day:D,month:R,year:A,isSelected:E,isToday:x,isDisabled:N,isEmpty:L,isStartRange:H,isEndRange:P,isInRange:j,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths};l.push(T(I)),7==++C&&(i.showWeekNumber&&l.unshift(S(w-a,t,e)),s.push(k(l,i.isRTL)),l=[],C=0)}return O(i,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(d(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(r(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&a(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),this._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.trigger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},L})},function(e,t,n){"use strict";(function(e){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(3),a=i(r),s=n(525),l=i(s),u=function(e,t){if(0==e.length)return"no columns";if(1==e.length)return"column "+t[e[0]];var n=e.map(function(e){return t[e]});return"columns "+[n.slice(0,-1).join(", "),n.slice(-1)[0]].join(" and ")},c=function(e,t){var n=[];for(var i in e)-1===t.indexOf(i)&&n.push(e[i]);return n},d=function(e,t,n,i,o){function r(e){var n=e[t],r=a.exec(n);return r?i?e.concat([a.pyreReplace(r[0],i)]):(o=o&&parseInt(o),o?r.length!=o+1?(s++,null):e.concat(r.splice(1,r.length)):e.concat([r[0]])):(s++,null)}var a=void 0;try{a=(0,l.default)(String(e))}catch(e){return{error:"Invalid regular expression specified."}}var s=0;return n=n.map(r),s>0?{error:s+" row(s) failed to match specified regular expression."}:{data:n}},h=function(e,t){return t.reduce(function(t,n){return t.concat(e(n))},[])},f={add_column_basename:{title:(0,a.default)("Basename of Path of URL"),display:function(e,t){return"Add column using basename of column "+t[e.target_column]},init:function(e,t){e.addColumnBasenameTarget=t?t.target_column:0},save:function(e,t){t.target_column=e.addColumnBasenameTarget},apply:function(e,t,n,i){var o=e.target_column,r=d("[^/]*$",o,t);return i.push("new"),r.columns=i,r}},add_column_rownum:{title:(0,a.default)("Row Number"),display:function(e,t){return"Add column for the current row number."},init:function(e,t){e.addColumnRownumStart=t?t.start:1},save:function(e,t){t.start=parseInt(e.addColumnRownumStart)},apply:function(e,t,n,i){function o(e){var t=e.slice();return t.push(String(r)),r+=1,t}var r=e.start;return t=t.map(o),i.push("new"),{data:t,columns:i}}},add_column_value:{title:(0,a.default)("Fixed Value"),display:function(e,t){return"Add column for the constant value of "+e.value+"."},init:function(e,t){e.addColumnValue=t?t.value:""},save:function(e,t){t.value=e.addColumnValue},apply:function(e,t,n,i){function o(e){var t=e.slice();return t.push(r),t}var r=e.value;return t=t.map(o),i.push("new"),{data:t,columns:i}}},add_column_metadata:{title:(0,a.default)("Add Column from Metadata"),display:function(e,t){return"Add column for "+e.value+"."},init:function(e,t){e.addColumnMetadataValue=t?t.value:null},save:function(e,t){t.value=e.addColumnMetadataValue},apply:function(e,t,n,i){var o=e.value,r=void 0;if(o.startsWith("identifier")){var a=parseInt(o.substring("identifier".length));r=function(e,t){var i=e.slice();return i.push(n[t].identifiers[a]),i}}else{if("hid"!=o&&"name"!=o&&"path"!=o)return{error:"Unknown metadata type ["+o+"}]"};r=function(e,t){var i=e.slice();return i.push(n[t][o]),i}}return t=t.map(r),i.push("new"),{data:t,columns:i}}},add_column_regex:{title:(0,a.default)("Using a Regular Expression"),display:function(e,t){return"Add new column using "+e.expression+" applied to column "+t[e.target_column]},init:function(e,t){t?(e.addColumnRegexTarget=t.target_column,e.addColumnRegexExpression=t.expression,e.addColumnRegexReplacement=t.replacement,e.addColumnRegexGroupCount=t.group_count):(e.addColumnRegexTarget=0,e.addColumnRegexExpression="",e.addColumnRegexReplacement=null,e.addColumnRegexGroupCount=null);var n="global";e.addColumnRegexGroupCount?n="groups":e.addColumnRegexReplacement&&(n="replacement"),e.addColumnRegexType=n},save:function(e,t){t.target_column=e.addColumnRegexTarget,t.expression=e.addColumnRegexExpression,e.addColumnRegexReplacement&&(t.replacement=e.addColumnRegexReplacement),e.addColumnRegexGroupCount&&(t.group_count=e.addColumnRegexGroupCount)},apply:function(e,t,n,i){var o=e.target_column,r=d(e.expression,o,t,e.replacement,e.group_count);return i.push("new"),r.columns=i,r}},add_column_concatenate:{title:(0,a.default)("Concatenate Columns"),display:function(e,t){return"Concatenate column "+t[e.target_column_0]+" and column "+t[e.target_column_1]},init:function(e,t){t?(e.addColumnConcatenateTarget0=t.target_column_0,e.addColumnConcatenateTarget1=t.target_column_1):(e.addColumnConcatenateTarget0=0,e.addColumnConcatenateTarget1=0)},save:function(e,t){t.target_column_0=e.addColumnConcatenateTarget0,t.target_column_1=e.addColumnConcatenateTarget1},apply:function(e,t,n,i){function o(e){var t=e.slice();return t.push(e[r]+e[a]),t}var r=e.target_column_0,a=e.target_column_1;return t=t.map(o),i.push("new"),{data:t,columns:i}}},add_column_substr:{title:(0,a.default)("Keep or Trim Prefix or Suffix"),display:function(e,t){var n=e.substr_type,i=void 0;return i="keep_prefix"==n?"Keep only "+e.length+" characters from the start of column "+t[e.target_column]:"drop_prefix"==n?"Remove "+e.length+" characters from the start of column "+t[e.target_column]:"keep_suffix"==n?"Keep only "+e.length+" characters from the end of column "+t[e.target_column]:"Remove "+e.length+" characters from the end of column "+t[e.target_column],i},init:function(e,t){t?(e.addColumnSubstrTarget=t.target_column,e.addColumnSubstrLength=t.length,e.addColumnSubstrType=t.substr_type):(e.addColumnSubstrTarget=0,e.addColumnSubstrType="keep_prefix",e.addColumnSubstrLength=1)},save:function(e,t){t.target_column=e.addColumnSubstrTarget,t.length=e.addColumnSubstrLength,t.substr_type=e.addColumnSubstrType},apply:function(e,t,n,i){function o(e){var t=e.slice(),n=e[r],i=0,o=n.length;return"keep_prefix"==s?o=a:"drop_prefix"==s?i=a:"keep_suffix"==s?(i=o-a)<0&&(i=0):(o-=a)<0&&(o=0),t.push(n.substr(i,o)),t}var r=e.target_column,a=e.length,s=e.substr_type;return t=t.map(o),i.push("new"),{data:t}}},remove_columns:{title:(0,a.default)("Remove Column(s)"),display:function(e,t){var n=e.target_columns;return"Remove "+u(n,t)},init:function(e,t){e.removeColumnTargets=t?t.target_columns:[]},save:function(e,t){t.target_columns=e.removeColumnTargets},apply:function(e,t,n,i){function o(e){var t=[];for(var n in e)-1==r.indexOf(parseInt(n))&&t.push(e[n]);return t}var r=e.target_columns;return t=t.map(o),i=c(i,r),{data:t,columns:i}}},add_filter_regex:{title:(0,a.default)("Using a Regular Expression"),display:function(e,t){return"Filter rows using regular expression "+e.expression+" on column "+t[e.target_column]},init:function(e,t){t?(e.addFilterRegexTarget=t.target_column,e.addFilterRegexExpression=t.expression,e.addFilterRegexInvert=t.invert):(e.addFilterRegexTarget=0,e.addFilterRegexExpression="",e.addFilterRegexInvert=!1)},save:function(e,t){t.target_column=e.addFilterRegexTarget,t.expression=e.addFilterRegexExpression,t.invert=e.addFilterRegexInvert},apply:function(e,t,n,i){var o,r=String(e.expression);try{o=(0,l.default)(r)}catch(e){return{error:"Invalid regular expression specified."}}var a=e.target_column,s=e.invert,u=function(e,n){var i=t[parseInt(n)];return o.exec(i[a])?!s:s};return n=n.filter(u),t=t.filter(u),{data:t,sources:n}}},add_filter_count:{title:(0,a.default)("First or Last N Rows"),display:function(e,t){var n=e.which,i=e.invert;return"first"!=n||i?"first"==n&&i?"Keep only first "+e.count+" row(s).":"last"!=n||i?"Keep only last "+e.count+" row(s).":"Filter out last "+e.count+" row(s).":"Filter out first "+e.count+" row(s)."},init:function(e,t){t?(e.addFilterCountN=t.count,e.addFilterCountWhich=t.which,e.addFilterCountInvert=t.inverse):(e.addFilterCountN=0,e.addFilterCountWhich="first",e.addFilterCountInvert=!1)},save:function(e,t){t.count=e.addFilterCountN,t.which=e.addFilterCountWhich,t.invert=e.addFilterCountInvert},apply:function(e,t,n,i){var o=e.count,r=e.invert,a=e.which,s=t.length,l=function(e,t){var n=void 0;return n="first"==a?t>=o:t<s-o,n?!r:r};return n=n.filter(l),t=t.filter(l),{data:t,sources:n}}},add_filter_empty:{title:(0,a.default)("On Emptiness"),display:function(e,t){return"Filter rows if no value for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterEmptyTarget=t.target_column,e.addFilterEmptyInvert=t.invert):(e.addFilterEmptyTarget=0,e.addFilterEmptyInvert=!1)},save:function(e,t){t.target_column=e.addFilterEmptyTarget,t.invert=e.addFilterEmptyInvert},apply:function(e,t,n,i){var o=e.target_column,r=e.invert,a=function(e,n){return t[parseInt(n)][o].length?!r:r};return n=n.filter(a),t=t.filter(a),{data:t,sources:n}}},add_filter_matches:{title:(0,a.default)("Matching a Supplied Value"),display:function(e,t){return"Filter rows with value "+e.value+" for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterMatchesTarget=t.target_column,e.addFilterMatchesValue=t.value,e.addFilterMatchesInvert=t.invert):(e.addFilterMatchesTarget=0,e.addFilterMatchesValue="",e.addFilterMatchesInvert=!1)},save:function(e,t){t.target_column=e.addFilterMatchesTarget,t.value=e.addFilterMatchesValue,t.invert=e.addFilterMatchesInvert},apply:function(e,t,n,i){var o=e.target_column,r=e.invert,a=e.value,s=function(e,n){return t[parseInt(n)][o]==a?!r:r};return n=n.filter(s),t=t.filter(s),{data:t,sources:n}}},add_filter_compare:{title:(0,a.default)("By Comparing to a Numeric Value"),display:function(e,t){return"Filter rows with value "+e.compare_type+" "+e.value+" for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterCompareTarget=t.target_column,e.addFilterCompareValue=t.value,e.addFilterCompareType=t.compare_type):(e.addFilterCompareTarget=0,e.addFilterCompareValue=0,e.addFilterCompareType="less_than")},save:function(e,t){t.target_column=e.addFilterCompareTarget,t.value=e.addFilterCompareValue,t.compare_type=e.addFilterCompareType},apply:function(e,t,n,i){var o=e.target_column,r=e.compare_type,a=e.value,s=function(e,n){var i=t[parseInt(n)],s=parseFloat(i[o]),l=void 0;return"less_than"==r?l=s<a:"less_than_equal"==r?l=s<=a:"greater_than"==r?l=s>a:"greater_than_equal"==r&&(l=s>=a),l};return n=n.filter(s),t=t.filter(s),{data:t,sources:n}}},sort:{title:(0,a.default)("Sort"),display:function(e,t){return"Sort on column "+t[e.target_column]},init:function(e,t){t?(e.addSortingTarget=t.target_column,e.addSortingNumeric=t.numeric):(e.addSortingTarget=0,e.addSortingNumeric=!1)},save:function(e,t){t.target_column=e.addSortingTarget,t.numeric=e.addSortingNumeric},apply:function(t,n,i,o){var r=t.target_column,a=t.numeric,s=e.zip(n,i),l=function(e,t){var n=e[0][r],i=t[0][r];return a&&(n=parseFloat(n),i=parseFloat(i)),n<i?-1:i<n?1:0};s.sort(l);var u=[],c=[];return s.map(function(e){u.push(e[0]),c.push(e[1])}),{data:u,sources:c}}},swap_columns:{title:(0,a.default)("Swap Column(s)"),display:function(e,t){return"Swap "+u([e.target_column_0,e.target_column_1],t)},init:function(e,t){t?(e.swapColumnsTarget0=t.target_column_0,e.swapColumnsTarget1=t.target_column_1):(e.swapColumnsTarget0=0,e.swapColumnsTarget1=0)},save:function(e,t){t.target_column_0=e.swapColumnsTarget0,t.target_column_1=e.swapColumnsTarget1},apply:function(e,t,n,i){function o(e){var t=e.slice();return t[r]=e[a],t[a]=e[r],t}var r=e.target_column_0,a=e.target_column_1;t=t.map(o);var s=i[r];return i[r]=i[a],i[a]=s,{data:t,columns:i}}},split_columns:{title:(0,a.default)("Split Column(s)"),display:function(e,t){return"Duplicate each row and split up columns"},init:function(e,t){t?(e.splitColumnsTargets0=t.target_columns_0,e.splitColumnsTargets1=t.target_columns_1):(e.splitColumnsTargets0=[],e.splitColumnsTargets1=[])},save:function(e,t){t.target_columns_0=e.splitColumnsTargets0,t.target_columns_1=e.splitColumnsTargets1},apply:function(e,t,n,i){var o=e.target_columns_0,r=e.target_columns_1;return t=h(function(e){var t=[],n=[];for(var i in e)i=parseInt(i),o.indexOf(i)>-1?t.push(e[i]):r.indexOf(i)>-1?n.push(e[i]):(t.push(e[i]),n.push(e[i]));return[t,n]},t),n=h(function(e){return[e,e]},n),i=c(i,o),{data:t,sources:n,columns:i}}}},p={list_identifiers:{multiple:!0,label:(0,a.default)("List Identifier(s)"),columnHeader:(0,a.default)("List Identifier"),help:(0,a.default)("This should be a short description of the replicate, sample name, condition, etc... that describes each level of the list structure."),importType:"collections"},paired_identifier:{label:(0,a.default)("Paired-end Indicator"),columnHeader:(0,a.default)("Paired Indicator"),help:(0,a.default)("This should be set to '1', 'R1', 'forward', 'f', or 'F' to indicate forward reads, and '2', 'r', 'reverse', 'R2', 'R', or 'R2' to indicate reverse reads."),importType:"collections"},collection_name:{label:(0,a.default)("Collection Name"),help:(0,a.default)("If this is set, all rows with the same collection name will be joined into a collection and it is possible to create multiple collections at once."),modes:["raw","ftp","datasets","library_datasets"],importType:"collections"},name:{label:(0,a.default)("Name"),importType:"datasets"},dbkey:{label:(0,a.default)("Genome"),modes:["raw","ftp"]},file_type:{label:(0,a.default)("Type"),modes:["raw","ftp"],help:(0,a.default)("This should be the Galaxy file type corresponding to this file.")},url:{label:(0,a.default)("URL"),modes:["raw"],help:(0,a.default)("This should be a URL the file can be downloaded from.")},info:{label:(0,a.default)("Info"),help:(0,a.default)("Unstructured text associated with the dataset that shows up in the history panel, this is optional and can be whatever you would like."),modes:["raw","ftp"]},ftp_path:{label:(0,a.default)("FTP Path"),modes:["raw","ftp"],help:(0,a.default)("This should be the path to the target file to include relative to your FTP directory on the Galaxy server"),requiresFtp:!0}},m=function(e,t){var n=void 0;return n="object"==(void 0===e?"undefined":o(e))?e.map(function(e){return t[e]}):[t[e]],2==n.length?"columns "+n[0]+" and "+n[1]:n.length>2?"columns "+n.slice(0,-1).join(", ")+", and "+n[n.length-1]:"column "+n[0]},g=function(e,t){return 0==e.length?t?t.map(function(e,t){return String.fromCharCode(65+t)}):[]:e[0].map(function(e,t){return String.fromCharCode(65+t)})},v=function(e,t,n,i,o){var o=o||[],r=!1;for(var s in i){var l=g(e,n);o[s]=l;var u=i[s];if(u.error=null,u.warn=null,r)u.warn=(0,a.default)("Skipped due to previous errors.");else{var c=u.type,d=f[c],h=d.apply(u,e,t,n);h.error?(r=!0,u.error=h.error):(h.warn&&(u.warn=h.warn),e=h.data||e,t=h.sources||t,n=h.columns||n)}}return{data:e,sources:t,columns:n}};t.default={applyRules:v,columnDisplay:m,colHeadersFor:g,RULES:f,MAPPING_TARGETS:p}}).call(t,n(1))},function(e,t,n){"use strict";function i(e){return e}t.a=i},function(e,t,n){"use strict";var i=n(7),o=n(12),r=n(367),a=Object(o.a)({},r.b,{text:{type:String,default:null},href:{type:String,default:null}});t.a={functional:!0,props:a,render:function(e,t){var n=t.props,o=t.data,a=t.children;return e("li",Object(i.a)(o,{staticClass:"breadcrumb-item",class:{active:n.active},attrs:{role:"presentation"}}),[e(r.a,{props:n},a)])}}},function(e,t,n){"use strict";n.d(t,"b",function(){return s});var i=n(7),o=n(154),r=n(12),a=n(53),s=Object(r.a)(Object(a.c)(),{text:{type:String,default:null},active:{type:Boolean,default:!1},href:{type:String,default:"#"},ariaCurrent:{type:String,default:"location"}});t.a={functional:!0,props:s,render:function(e,t){var n=t.props,r=t.data,l=t.children,u=n.active?"span":a.a,c={props:Object(o.a)(s,n),domProps:{innerHTML:n.text}};return n.active?c.attrs={"aria-current":n.ariaCurrent}:c.attrs={href:n.href},e(u,Object(i.a)(r,c),l)}}},function(e,t,n){"use strict";var i=n(202);t.a={functional:!0,props:Object(i.b)(!1),render:i.a.render}},function(e,t,n){"use strict";var i=n(202);t.a={functional:!0,props:Object(i.b)(!0),render:i.a.render}},function(e,t,n){"use strict";function i(e){return"string"!=typeof e&&(e=String(e)),e.charAt(0).toUpperCase()+e.slice(1)}t.a=i},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",function(){return u});var o=n(7),r=n(185),a=n(186),s=n(12),l=n(187),u=Object(s.a)({},Object(a.a)(l.a.props,r.a.bind(null,"body")),{bodyClass:{type:[String,Object,Array],default:null},title:{type:String,default:null},titleTag:{type:String,default:"h4"},subTitle:{type:String,default:null},subTitleTag:{type:String,default:"h6"},overlay:{type:Boolean,default:!1}});t.a={functional:!0,props:u,render:function(e,t){var n,r=t.props,a=t.data,s=t.slots,l=[];return r.title&&l.push(e(r.titleTag,{staticClass:"card-title",domProps:{innerHTML:r.title}})),r.subTitle&&l.push(e(r.subTitleTag,{staticClass:"card-subtitle mb-2 text-muted",domProps:{innerHTML:r.subTitle}})),l.push(s().default),e(r.bodyTag,Object(o.a)(a,{staticClass:"card-body",class:[(n={"card-img-overlay":r.overlay},i(n,"bg-"+r.bodyBgVariant,Boolean(r.bodyBgVariant)),i(n,"border-"+r.bodyBorderVariant,Boolean(r.bodyBorderVariant)),i(n,"text-"+r.bodyTextVariant,Boolean(r.bodyTextVariant)),n),r.bodyClass||{}]}),l)}}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",function(){return u});var o=n(7),r=n(185),a=n(186),s=n(12),l=n(187),u=Object(s.a)({},Object(a.a)(l.a.props,r.a.bind(null,"header")),{header:{type:String,default:null},headerClass:{type:[String,Object,Array],default:null}});t.a={functional:!0,props:u,render:function(e,t){var n,r=t.props,a=t.data,s=(t.slots,t.children);return e(r.headerTag,Object(o.a)(a,{staticClass:"card-header",class:[r.headerClass,(n={},i(n,"bg-"+r.headerBgVariant,Boolean(r.headerBgVariant)),i(n,"border-"+r.headerBorderVariant,Boolean(r.headerBorderVariant)),i(n,"text-"+r.headerTextVariant,Boolean(r.headerTextVariant)),n)]}),s||[e("div",{domProps:{innerHTML:r.header}})])}}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",function(){return u});var o=n(7),r=n(185),a=n(186),s=n(12),l=n(187),u=Object(s.a)({},Object(a.a)(l.a.props,r.a.bind(null,"footer")),{footer:{type:String,default:null},footerClass:{type:[String,Object,Array],default:null}});t.a={functional:!0,props:u,render:function(e,t){var n,r=t.props,a=t.data,s=(t.slots,t.children);return e(r.footerTag,Object(o.a)(a,{staticClass:"card-footer",class:[r.footerClass,(n={},i(n,"bg-"+r.footerBgVariant,Boolean(r.footerBgVariant)),i(n,"border-"+r.footerBorderVariant,Boolean(r.footerBorderVariant)),i(n,"text-"+r.footerTextVariant,Boolean(r.footerTextVariant)),n)]}),s||[e("div",{domProps:{innerHTML:r.footer}})])}}},function(e,t,n){"use strict";n.d(t,"b",function(){return o});var i=n(7),o={src:{type:String,default:null,required:!0},alt:{type:String,default:null},top:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=(t.slots,"card-img");return n.top?r+="-top":n.bottom&&(r+="-bottom"),e("img",Object(i.a)(o,{staticClass:r,class:{"img-fluid":n.fluid},attrs:{src:n.src,alt:n.alt}}))}}},function(e,t,n){"use strict";var i=n(7),o={tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=t.children;return e(n.tag,Object(i.a)(o,{class:{container:!n.fluid,"container-fluid":n.fluid}}),r)}}},function(e,t,n){"use strict";var i=n(554),o=n(377),r=n(8),a={bCollapse:i.a},s={install:function(e){Object(r.a)(e,a),e.use(o.a)}};Object(r.c)(s),t.a=s},function(e,t,n){"use strict";var i=n(555),o=n(8),r={bToggle:i.a},a={install:function(e){Object(o.b)(e,r)}};Object(o.c)(a),t.a=a},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"c",function(){return s});var i=n(12),o={hover:!0,click:!0,focus:!0},r="__BV_boundEventListeners__",a=function(e,t,n,a){var s=Object(i.e)(t.modifiers||{}).filter(function(e){return!o[e]});t.value&&s.push(t.value);var l=function(){a({targets:s,vnode:e})};return Object(i.e)(o).forEach(function(i){if(n[i]||t.modifiers[i]){e.elm.addEventListener(i,l);var o=e.elm[r]||{};o[i]=o[i]||[],o[i].push(l),e.elm[r]=o}}),s},s=function(e,t,n){Object(i.e)(o).forEach(function(i){if(n[i]||t.modifiers[i]){var o=e.elm[r]&&e.elm[r][i];o&&(o.forEach(function(t){return e.elm.removeEventListener(i,t)}),delete e.elm[r][i])}})};t.b=a},function(e,t,n){"use strict";function i(e){return(e||[]).filter(d.m)}var o=n(167),r=n(557),a=n(172),s=n(16),l=n(12),u=n(87),c=n(42),d=n(21),h={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"};t.a={mixins:[r.a,a.a],props:{disabled:{type:Boolean,default:!1},text:{type:String,default:""},dropup:{type:Boolean,default:!1},right:{type:Boolean,default:!1},offset:{type:[Number,String],default:0},noFlip:{type:Boolean,default:!1},popperOpts:{type:Object,default:function(){}}},data:function(){return{visible:!1,inNavbar:null}},created:function(){this._popper=null},mounted:function(){this.listenOnRoot("bv::dropdown::shown",this.rootCloseListener),this.listenOnRoot("clicked::link",this.rootCloseListener),this.listenOnRoot("bv::link::clicked",this.rootCloseListener)},deactivated:function(){this.visible=!1,this.setTouchStart(!1),this.removePopper()},beforeDestroy:function(){this.visible=!1,this.setTouchStart(!1),this.removePopper()},watch:{visible:function(e,t){e!==t&&(e?this.showMenu():this.hideMenu())},disabled:function(e,t){e!==t&&e&&this.visible&&(this.visible=!1)}},computed:{toggler:function(){return this.$refs.toggle.$el||this.$refs.toggle}},methods:{showMenu:function(){if(!this.disabled){if(this.$emit("show"),this.emitOnRoot("bv::dropdown::shown",this),null===this.inNavbar&&this.isNav&&(this.inNavbar=Boolean(Object(d.b)(".navbar",this.$el))),!this.inNavbar)if(void 0===o.default)Object(c.a)("b-dropdown: Popper.js not found. Falling back to CSS positioning.");else{var e=this.dropup&&this.right||this.split?this.$el:this.$refs.toggle;e=e.$el||e,this.createPopper(e)}this.setTouchStart(!0),this.$emit("shown"),this.$nextTick(this.focusFirstItem)}},hideMenu:function(){this.$emit("hide"),this.setTouchStart(!1),this.emitOnRoot("bv::dropdown::hidden",this),this.$emit("hidden"),this.removePopper()},createPopper:function(e){this.removePopper(),this._popper=new o.default(e,this.$refs.menu,this.getPopperConfig())},removePopper:function(){this._popper&&this._popper.destroy(),this._popper=null},getPopperConfig:function(){var e=h.BOTTOM;this.dropup&&this.right?e=h.TOPEND:this.dropup?e=h.TOP:this.right&&(e=h.BOTTOMEND);var t={placement:e,modifiers:{offset:{offset:this.offset||0},flip:{enabled:!this.noFlip}}};return this.boundary&&(t.modifiers.preventOverflow={boundariesElement:this.boundary}),Object(l.a)(t,this.popperOpts||{})},setTouchStart:function(e){var t=this;if("ontouchstart"in document.documentElement){Object(s.c)(document.body.children).forEach(function(n){e?Object(d.d)("mouseover",t._noop):Object(d.c)("mouseover",t._noop)})}},_noop:function(){},rootCloseListener:function(e){e!==this&&(this.visible=!1)},clickOutListener:function(){this.visible=!1},show:function(){this.disabled||(this.visible=!0)},hide:function(){this.disabled||(this.visible=!1)},toggle:function(e){e=e||{};var t=e.type,n=e.keyCode;if("click"===t||"keydown"===t&&(n===u.a.ENTER||n===u.a.SPACE||n===u.a.DOWN)){if(e.preventDefault(),e.stopPropagation(),this.disabled)return void(this.visible=!1);this.visible=!this.visible}},click:function(e){if(this.disabled)return void(this.visible=!1);this.$emit("click",e)},onKeydown:function(e){var t=e.keyCode;t===u.a.ESC?this.onEsc(e):t===u.a.TAB?this.onTab(e):t===u.a.DOWN?this.focusNext(e,!1):t===u.a.UP&&this.focusNext(e,!0)},onEsc:function(e){this.visible&&(this.visible=!1,e.preventDefault(),e.stopPropagation(),this.$nextTick(this.focusToggler))},onTab:function(e){this.visible&&(this.visible=!1)},onFocusOut:function(e){this.$refs.menu.contains(e.relatedTarget)||(this.visible=!1)},onMouseOver:function(e){var t=e.target;t.classList.contains("dropdown-item")&&!t.disabled&&!t.classList.contains("disabled")&&t.focus&&t.focus()},focusNext:function(e,t){var n=this;this.visible&&(e.preventDefault(),e.stopPropagation(),this.$nextTick(function(){var i=n.getItems();if(!(i.length<1)){var o=i.indexOf(e.target);t&&o>0?o--:!t&&o<i.length-1&&o++,o<0&&(o=0),n.focusItem(o,i)}}))},focusItem:function(e,t){var n=t.find(function(t,n){return n===e});n&&"-1"!==Object(d.e)(n,"tabindex")&&n.focus()},getItems:function(){return i(Object(d.u)(".dropdown-item:not(.disabled):not([disabled])",this.$refs.menu))},getFirstItem:function(){return this.getItems()[0]||null},focusFirstItem:function(){var e=this.getFirstItem();e&&this.focusItem(0,[e])},focusToggler:function(){var e=this.toggler;e&&e.focus&&e.focus()}}}},function(e,t,n){"use strict";var i=n(7),o={id:{type:String,default:null},inline:{type:Boolean,default:!1},novalidate:{type:Boolean,default:!1},validated:{type:Boolean,default:!1}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=t.children;return e("form",Object(i.a)(o,{class:{"form-inline":n.inline,"was-validated":n.validated},attrs:{id:n.id,novalidate:n.novalidate}}),r)}}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(7),r={id:{type:String,default:null},tag:{type:String,default:"small"},textVariant:{type:String,default:"muted"},inline:{type:Boolean,default:!1}};t.a={functional:!0,props:r,render:function(e,t){var n=t.props,r=t.data,a=t.children;return e(n.tag,Object(o.a)(r,{class:i({"form-text":!n.inline},"text-"+n.textVariant,Boolean(n.textVariant)),attrs:{id:n.id}}),a)}}},function(e,t,n){"use strict";var i=n(7),o={id:{type:String,default:null},tag:{type:String,default:"div"},forceShow:{type:Boolean,default:!1}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=t.children;return e(n.tag,Object(i.a)(o,{staticClass:"invalid-feedback",class:{"d-block":n.forceShow},attrs:{id:n.id}}),r)}}},function(e,t,n){"use strict";var i=n(7),o={id:{type:String,default:null},tag:{type:String,default:"div"},forceShow:{type:Boolean,default:!1}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=t.children;return e(n.tag,Object(i.a)(o,{staticClass:"valid-feedback",class:{"d-block":n.forceShow},attrs:{id:n.id}}),r)}}},function(e,t,n){"use strict";var i=n(22),o=n(385),r=n(65),a=n(155),s=n(56),l=n(173),u=n(16),c=n(208);t.a={mixins:[i.a,o.a,r.a,a.a,s.a,l.a],render:function(e){var t=this,n=e("input",{ref:"check",class:[this.is_ButtonMode?"":this.is_Plain?"form-check-input":"custom-control-input",this.get_StateClass],directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:{id:this.safeId(),type:"checkbox",name:this.get_Name,disabled:this.is_Disabled,required:this.is_Required,autocomplete:"off","true-value":this.value,"false-value":this.uncheckedValue,"aria-required":this.is_Required?"true":null},domProps:{value:this.value,checked:this.is_Checked},on:{focus:this.handleFocus,blur:this.handleFocus,change:this.emitChange,__c:function(e){var n=t.computedLocalChecked,i=e.target;if(Object(u.d)(n)){var o=t.value,r=t._i(n,o);i.checked?r<0&&(t.computedLocalChecked=n.concat([o])):r>-1&&(t.computedLocalChecked=n.slice(0,r).concat(n.slice(r+1)))}else t.computedLocalChecked=i.checked?t.value:t.uncheckedValue}}}),i=e(this.is_ButtonMode?"span":"label",{class:this.is_ButtonMode?null:this.is_Plain?"form-check-label":"custom-control-label",attrs:{for:this.is_ButtonMode?null:this.safeId()}},[this.$slots.default]);return this.is_ButtonMode?e("label",{class:[this.buttonClasses]},[n,i]):e("div",{class:[this.is_Plain?"form-check":this.labelClasses,{"form-check-inline":this.is_Plain&&!this.is_Stacked},{"custom-control-inline":!this.is_Plain&&!this.is_Stacked}]},[n,i])},props:{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1}},computed:{labelClasses:function(){return["custom-control","custom-checkbox",this.get_Size?"form-control-"+this.get_Size:"",this.get_StateClass]},is_Checked:function(){var e=this.computedLocalChecked;if(Object(u.d)(e)){for(var t=0;t<e.length;t++)if(Object(c.a)(e[t],this.value))return!0;return!1}return Object(c.a)(e,this.value)}},watch:{computedLocalChecked:function(e,t){Object(c.a)(e,t)||(this.$emit("input",e),this.$emit("update:indeterminate",this.$refs.check.indeterminate))},checked:function(e,t){this.is_Child||Object(c.a)(e,t)||(this.computedLocalChecked=e)},indeterminate:function(e,t){this.setIndeterminate(e)}},methods:{emitChange:function(e){var t=e.target.checked;this.is_Child||Object(u.d)(this.computedLocalChecked)?(this.$emit("change",t?this.value:null),this.is_Child&&this.$parent.$emit("change",this.computedLocalChecked)):this.$emit("change",t?this.value:this.uncheckedValue),this.$emit("update:indeterminate",this.$refs.check.indeterminate)},setIndeterminate:function(e){this.is_Child||Object(u.d)(this.computedLocalChecked)||(this.$refs.check.indeterminate=e,this.$emit("update:indeterminate",this.$refs.check.indeterminate))}},mounted:function(){this.setIndeterminate(this.indeterminate)}}},function(e,t,n){"use strict";t.a={data:function(){return{localChecked:this.checked,hasFocus:!1}},model:{prop:"checked",event:"input"},props:{value:{},checked:{},buttonVariant:{type:String,default:null}},computed:{computedLocalChecked:{get:function(){return this.is_Child?this.$parent.localChecked:this.localChecked},set:function(e){this.is_Child?this.$parent.localChecked=e:this.localChecked=e}},is_Child:function(){return Boolean(this.$parent&&this.$parent.is_RadioCheckGroup)},is_Disabled:function(){return Boolean(this.is_Child?this.$parent.disabled||this.disabled:this.disabled)},is_Required:function(){return Boolean(this.is_Child?this.$parent.required:this.required)},is_Plain:function(){return Boolean(this.is_Child?this.$parent.plain:this.plain)},is_Custom:function(){return!this.is_Plain},get_Size:function(){return this.is_Child?this.$parent.size:this.size},get_State:function(){return this.is_Child&&"boolean"==typeof this.$parent.get_State?this.$parent.get_State:this.computedState},get_StateClass:function(){return"boolean"==typeof this.get_State?this.get_State?"is-valid":"is-invalid":""},is_Stacked:function(){return Boolean(this.is_Child&&this.$parent.stacked)},is_Inline:function(){return!this.is_Stacked},is_ButtonMode:function(){return Boolean(this.is_Child&&this.$parent.buttons)},get_ButtonVariant:function(){return this.buttonVariant||(this.is_Child?this.$parent.buttonVariant:null)||"secondary"},get_Name:function(){return(this.is_Child?this.$parent.name||this.$parent.safeId():this.name)||null},buttonClasses:function(){return["btn","btn-"+this.get_ButtonVariant,this.get_Size?"btn-"+this.get_Size:"",this.is_Disabled?"disabled":"",this.is_Checked?"active":"",this.hasFocus?"focus":""]}},methods:{handleFocus:function(e){this.is_ButtonMode&&e.target&&("focus"===e.type?this.hasFocus=!0:"blur"===e.type&&(this.hasFocus=!1))}}}},function(e,t,n){"use strict";var i=n(22),o=n(65),r=n(56),a=n(385),s=n(208);t.a={mixins:[i.a,a.a,o.a,r.a],render:function(e){var t=this,n=e("input",{ref:"radio",class:[this.is_ButtonMode?"":this.is_Plain?"form-check-input":"custom-control-input",this.get_StateClass],directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:{id:this.safeId(),type:"radio",name:this.get_Name,required:this.get_Name&&this.is_Required,disabled:this.is_Disabled,autocomplete:"off"},domProps:{value:this.value,checked:Object(s.a)(this.computedLocalChecked,this.value)},on:{focus:this.handleFocus,blur:this.handleFocus,change:this.emitChange,__c:function(e){t.computedLocalChecked=t.value}}}),i=e(this.is_ButtonMode?"span":"label",{class:this.is_ButtonMode?null:this.is_Plain?"form-check-label":"custom-control-label",attrs:{for:this.is_ButtonMode?null:this.safeId()}},[this.$slots.default]);return this.is_ButtonMode?e("label",{class:[this.buttonClasses]},[n,i]):e("div",{class:[this.is_Plain?"form-check":this.labelClasses,{"form-check-inline":this.is_Plain&&!this.is_Stacked},{"custom-control-inline":!this.is_Plain&&!this.is_Stacked}]},[n,i])},watch:{checked:function(e,t){this.computedLocalChecked=e},computedLocalChceked:function(e,t){this.$emit("input",this.computedLocalChceked)}},computed:{is_Checked:function(){return Object(s.a)(this.value,this.computedLocalChecked)},labelClasses:function(){return[this.get_Size?"form-control-"+this.get_Size:"","custom-control","custom-radio",this.get_StateClass]}},methods:{emitChange:function(e){var t=e.target.checked;this.$emit("change",t?this.value:null),this.is_Child&&this.$parent.$emit("change",this.computedLocalChecked)}}}},function(e,t,n){"use strict";var i=n(7),o={tag:{type:String,default:"div"}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=t.children;return e(n.tag,Object(i.a)(o,{staticClass:"media-body"}),r)}}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(7),r={tag:{type:String,default:"div"},verticalAlign:{type:String,default:"top"}};t.a={functional:!0,props:r,render:function(e,t){var n=t.props,r=t.data,a=t.children;return e(n.tag,Object(o.a)(r,{staticClass:"d-flex",class:i({},"align-self-"+n.verticalAlign,n.verticalAlign)}),a)}}},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(12),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,e),!t)throw new TypeError("Failed to construct '"+this.constructor.name+"'. 1 argument required, "+arguments.length+" given.");Object(o.a)(this,e.defaults(),n,{type:t}),Object(o.c)(this,{type:Object(o.f)(),cancelable:Object(o.f)(),nativeEvent:Object(o.f)(),target:Object(o.f)(),relatedTarget:Object(o.f)(),vueTarget:Object(o.f)()});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},Object(o.d)(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}return r(e,null,[{key:"defaults",value:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null}}}]),e}();t.a=a},function(e,t,n){"use strict";var i=n(597),o=n(8),r={bModal:i.a},a={install:function(e){Object(o.b)(e,r)}};Object(o.c)(a),t.a=a},function(e,t,n){"use strict";var i=n(598),o=n(599),r=n(600),a=n(601),s=n(602),l=n(206),u=n(8),c={bNav:i.a,bNavItem:o.a,bNavText:r.a,bNavForm:a.a,bNavItemDropdown:s.a,bNavItemDd:s.a,bNavDropdown:s.a,bNavDd:s.a},d={install:function(e){Object(u.a)(e,c),e.use(l.a)}};Object(u.c)(d),t.a=d},function(e,t,n){"use strict";function i(e,t){return Object(o.a)(t).map(function(t,n){return{number:n+e,className:null}})}var o=n(610),r=n(87),a=n(21),s=n(53),l={disabled:{type:Boolean,default:!1},value:{type:Number,default:1},limit:{type:Number,default:5},size:{type:String,default:"md"},align:{type:String,default:"left"},hideGotoEndButtons:{type:Boolean,default:!1},ariaLabel:{type:String,default:"Pagination"},labelFirstPage:{type:String,default:"Goto first page"},firstText:{type:String,default:"&laquo;"},labelPrevPage:{type:String,default:"Goto previous page"},prevText:{type:String,default:"&lsaquo;"},labelNextPage:{type:String,default:"Goto next page"},nextText:{type:String,default:"&rsaquo;"},labelLastPage:{type:String,default:"Goto last page"},lastText:{type:String,default:"&raquo;"},labelPage:{type:String,default:"Goto page"},hideEllipsis:{type:Boolean,default:!1},ellipsisText:{type:String,default:"&hellip;"}};t.a={components:{bLink:s.a},data:function(){return{showFirstDots:!1,showLastDots:!1,currentPage:this.value}},props:l,render:function(e){var t=this,n=[],i=function(n,i,o,a){return a=a||n,t.disabled||t.isActive(a)?e("li",{class:["page-item","disabled"],attrs:{role:"none presentation","aria-hidden":"true"}},[e("span",{class:["page-link"],domProps:{innerHTML:o}})]):e("li",{class:["page-item"],attrs:{role:"none presentation"}},[e("b-link",{class:["page-link"],props:t.linkProps(n),attrs:{role:"menuitem",tabindex:"-1","aria-label":i,"aria-controls":t.ariaControls||null},on:{click:function(e){t.onClick(n,e)},keydown:function(e){e.keyCode===r.a.SPACE&&(e.preventDefault(),t.onClick(n,e))}}},[e("span",{attrs:{"aria-hidden":"true"},domProps:{innerHTML:o}})])])},o=function(){return e("li",{class:["page-item","disabled","d-none","d-sm-flex"],attrs:{role:"separator"}},[e("span",{class:["page-link"],domProps:{innerHTML:t.ellipsisText}})])};n.push(this.hideGotoEndButtons?e(!1):i(1,this.labelFirstPage,this.firstText)),n.push(i(this.currentPage-1,this.labelPrevPage,this.prevText,1)),n.push(this.showFirstDots?o():e(!1)),this.pageList.forEach(function(i){var o=void 0,a=t.makePage(i.number);if(t.disabled)o=e("span",{class:["page-link"],domProps:{innerHTML:a}});else{var s=t.isActive(i.number);o=e("b-link",{class:t.pageLinkClasses(i),props:t.linkProps(i.number),attrs:{role:"menuitemradio",tabindex:s?"0":"-1","aria-controls":t.ariaControls||null,"aria-label":t.labelPage+" "+i.number,"aria-checked":s?"true":"false","aria-posinset":i.number,"aria-setsize":t.numberOfPages},domProps:{innerHTML:a},on:{click:function(e){t.onClick(i.number,e)},keydown:function(e){e.keyCode===r.a.SPACE&&(e.preventDefault(),t.onClick(i.number,e))}}})}n.push(e("li",{key:i.number,class:t.pageItemClasses(i),attrs:{role:"none presentation"}},[o]))}),n.push(this.showLastDots?o():e(!1)),n.push(i(this.currentPage+1,this.labelNextPage,this.nextText,this.numberOfPages)),n.push(this.hideGotoEndButtons?e(!1):i(this.numberOfPages,this.labelLastPage,this.lastText));var a=e("ul",{ref:"ul",class:["pagination","b-pagination",this.btnSize,this.alignment],attrs:{role:"menubar","aria-disabled":this.disabled?"true":"false","aria-label":this.ariaLabel||null},on:{keydown:function(e){var n=e.keyCode,i=e.shiftKey;n===r.a.LEFT?(e.preventDefault(),i?t.focusFirst():t.focusPrev()):n===r.a.RIGHT&&(e.preventDefault(),i?t.focusLast():t.focusNext())}}},n);return this.isNav?e("nav",{},[a]):a},watch:{currentPage:function(e,t){e!==t&&this.$emit("input",e)},value:function(e,t){e!==t&&(this.currentPage=e)}},computed:{btnSize:function(){return this.size?"pagination-"+this.size:""},alignment:function(){return"center"===this.align?"justify-content-center":"end"===this.align||"right"===this.align?"justify-content-end":""},pageList:function(){this.currentPage>this.numberOfPages?this.currentPage=this.numberOfPages:this.currentPage<1&&(this.currentPage=1),this.showFirstDots=!1,this.showLastDots=!1;var e=this.limit,t=1;this.numberOfPages<=this.limit?e=this.numberOfPages:this.currentPage<this.limit-1&&this.limit>3?this.hideEllipsis||(e=this.limit-1,this.showLastDots=!0):this.numberOfPages-this.currentPage+2<this.limit&&this.limit>3?(this.hideEllipsis||(this.showFirstDots=!0,e=this.limit-1),t=this.numberOfPages-e+1):(this.limit>3&&!this.hideEllipsis&&(this.showFirstDots=!0,this.showLastDots=!0,e=this.limit-2),t=this.currentPage-Math.floor(e/2)),t<1?t=1:t>this.numberOfPages-e&&(t=this.numberOfPages-e+1);var n=i(t,e);if(n.length>3){var o=this.currentPage-t;if(0===o)for(var r=3;r<n.length;r++)n[r].className="d-none d-sm-flex";else if(o===n.length-1)for(var a=0;a<n.length-3;a++)n[a].className="d-none d-sm-flex";else{for(var s=0;s<o-1;s++)n[s].className="d-none d-sm-flex";for(var l=n.length-1;l>o+1;l--)n[l].className="d-none d-sm-flex"}}return n}},methods:{isActive:function(e){return e===this.currentPage},pageItemClasses:function(e){return["page-item",this.disabled?"disabled":"",this.isActive(e.number)?"active":"",e.className]},pageLinkClasses:function(e){return["page-link",this.disabled?"disabled":"",this.isActive(e.number)?"btn-primary":""]},getButtons:function(){return Object(a.u)("a.page-link",this.$el).filter(function(e){return Object(a.m)(e)})},setBtnFocus:function(e){this.$nextTick(function(){e.focus()})},focusCurrent:function(){var e=this,t=this.getButtons().find(function(t){return parseInt(Object(a.e)(t,"aria-posinset"),10)===e.currentPage});t&&t.focus?this.setBtnFocus(t):this.focusFirst()},focusFirst:function(){var e=this.getButtons().find(function(e){return!Object(a.k)(e)});e&&e.focus&&e!==document.activeElement&&this.setBtnFocus(e)},focusLast:function(){var e=this.getButtons().reverse().find(function(e){return!Object(a.k)(e)});e&&e.focus&&e!==document.activeElement&&this.setBtnFocus(e)},focusPrev:function(){var e=this.getButtons(),t=e.indexOf(document.activeElement);t>0&&!Object(a.k)(e[t-1])&&e[t-1].focus&&this.setBtnFocus(e[t-1])},focusNext:function(){var e=this.getButtons(),t=e.indexOf(document.activeElement);t<e.length-1&&!Object(a.k)(e[t+1])&&e[t+1].focus&&this.setBtnFocus(e[t+1])}}}},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(210),s=n(12),l=n(21),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),d=new RegExp("\\bbs-popover\\S+","g"),h=Object(s.a)({},a.a.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),f={FADE:"fade",SHOW:"show"},p={TITLE:".popover-header",CONTENT:".popover-body"},m=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),c(t,[{key:"isWithContent",value:function(e){if(!(e=e||this.$tip))return!1;var t=Boolean((Object(l.t)(p.TITLE,e)||{}).innerHTML),n=Boolean((Object(l.t)(p.CONTENT,e)||{}).innerHTML);return t||n}},{key:"addAttachmentClass",value:function(e){Object(l.a)(this.getTipElement(),"bs-popover-"+e)}},{key:"setContent",value:function(e){this.setElementContent(Object(l.t)(p.TITLE,e),this.getTitle()),this.setElementContent(Object(l.t)(p.CONTENT,e),this.getContent()),Object(l.s)(e,f.FADE),Object(l.s)(e,f.SHOW)}},{key:"cleanTipClass",value:function(){var e=this.getTipElement(),t=e.className.match(d);null!==t&&t.length>0&&t.forEach(function(t){Object(l.s)(e,t)})}},{key:"getTitle",value:function(){var e=this.$config.title||"";return"function"==typeof e&&(e=e(this.$element)),"object"===(void 0===e?"undefined":u(e))&&e.nodeType&&!e.innerHTML.trim()&&(e=""),"string"==typeof e&&(e=e.trim()),e||(e=Object(l.e)(this.$element,"title")||Object(l.e)(this.$element,"data-original-title")||"",e=e.trim()),e}},{key:"getContent",value:function(){var e=this.$config.content||"";return"function"==typeof e&&(e=e(this.$element)),"object"===(void 0===e?"undefined":u(e))&&e.nodeType&&!e.innerHTML.trim()&&(e=""),"string"==typeof e&&(e=e.trim()),e}}],[{key:"Default",get:function(){return h}},{key:"NAME",get:function(){return"popover"}}]),t}(a.a);t.a=m},function(e,t,n){"use strict";var i=n(16),o=n(12),r=n(21),a=n(615),s=n(171),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u={top:"top",topleft:"topleft",topright:"topright",right:"right",righttop:"righttop",rightbottom:"rightbottom",bottom:"bottom",bottomleft:"bottomleft",bottomright:"bottomright",left:"left",lefttop:"lefttop",leftbottom:"leftbottom",auto:"auto"},c={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["class","style"]};t.a={props:{target:{type:[String,Object,a.a,Function]},delay:{type:[Number,Object,String],default:0},offset:{type:[Number,String],default:0},noFade:{type:Boolean,default:!1},container:{type:String,default:null},boundary:{type:[String,Object],default:"scrollParent"},show:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},watch:{show:function(e,t){e!==t&&(e?this.onOpen():this.onClose())},disabled:function(e,t){e!==t&&(e?this.onDisable():this.onEnable())}},created:function(){this._toolpop=null,this._obs_title=null,this._obs_content=null},mounted:function(){var e=this;this.$nextTick(function(){e.createToolpop()&&(e.disabled&&e.onDisable(),e.$on("open",e.onOpen),e.$on("close",e.onClose),e.$on("disable",e.onDisable),e.$on("enable",e.onEnable),e.setObservers(!0),e.show&&e.onOpen())})},updated:function(){this._toolpop&&this._toolpop.updateConfig(this.getConfig())},activated:function(){this.setObservers(!0)},deactivated:function(){this._toolpop&&(this.setObservers(!1),this._toolpop.hide())},beforeDestroy:function(){this.$off("open",this.onOpen),this.$off("close",this.onClose),this.$off("disable",this.onDisable),this.$off("enable",this.onEnable),this.setObservers(!1),this.bringItBack(),this._toolpop&&(this._toolpop.destroy(),this._toolpop=null)},computed:{baseConfig:function(){var e=this.container,t="object"===l(this.delay)?this.delay:parseInt(this.delay,10)||0;return{title:(this.title||"").trim()||"",content:(this.content||"").trim()||"",placement:u[this.placement]||"auto",container:!!e&&(/^#/.test(e)?e:"#"+e),boundary:this.boundary,delay:t||0,offset:this.offset||0,animation:!this.noFade,trigger:Object(i.d)(this.triggers)?this.triggers.join(" "):this.triggers,callbacks:{show:this.onShow,shown:this.onShown,hide:this.onHide,hidden:this.onHidden,enabled:this.onEnabled,disabled:this.onDisabled}}}},methods:{getConfig:function(){var e=Object(o.a)({},this.baseConfig);return this.$refs.title&&this.$refs.title.innerHTML.trim()&&(e.title=this.$refs.title,e.html=!0),this.$refs.content&&this.$refs.content.innerHTML.trim()&&(e.content=this.$refs.content,e.html=!0),e},onOpen:function(){this._toolpop&&this._toolpop.show()},onClose:function(e){this._toolpop?this._toolpop.hide(e):"function"==typeof e&&e()},onDisable:function(){this._toolpop&&this._toolpop.disable()},onEnable:function(){this._toolpop&&this._toolpop.enable()},updatePosition:function(){this._toolpop&&this._toolpop.update()},getTarget:function(){var e=this.target;return"function"==typeof e&&(e=e()),"string"==typeof e?Object(r.g)(e):"object"===(void 0===e?"undefined":l(e))&&Object(r.l)(e.$el)?e.$el:"object"===(void 0===e?"undefined":l(e))&&Object(r.l)(e)?e:null},onShow:function(e){this.$emit("show",e)},onShown:function(e){this.setObservers(!0),this.$emit("update:show",!0),this.$emit("shown",e)},onHide:function(e){this.$emit("hide",e)},onHidden:function(e){this.setObservers(!1),this.bringItBack(),this.$emit("update:show",!1),this.$emit("hidden",e)},onEnabled:function(e){e&&"enabled"===e.type&&(this.$emit("update:disabled",!1),this.$emit("disabled"))},onDisabled:function(e){e&&"disabled"===e.type&&(this.$emit("update:disabled",!0),this.$emit("enabled"))},bringItBack:function(){this.$el&&this.$refs.title&&this.$el.appendChild(this.$refs.title),this.$el&&this.$refs.content&&this.$el.appendChild(this.$refs.content)},setObservers:function(e){e?(this.$refs.title&&(this._obs_title=Object(s.a)(this.$refs.title,this.updatePosition.bind(this),c)),this.$refs.content&&(this._obs_content=Object(s.a)(this.$refs.content,this.updatePosition.bind(this),c))):(this._obs_title&&(this._obs_title.disconnect(),this._obs_title=null),this._obs_content&&(this._obs_content.disconnect(),this._obs_content=null))}}}},function(e,t,n){"use strict";t.a={render:function(e){var t=e(!1);return this.$slots.default?t=this.$slots.default:this.label?t=e("span",{domProps:{innerHTML:this.label}}):this.computedShowProgress?t=this.progress.toFixed(this.computedPrecision):this.computedShowValue&&(t=this.value.toFixed(this.computedPrecision)),e("div",{class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":this.computedMax.toString(),"aria-valuenow":this.value.toFixed(this.computedPrecision)}},[t])},computed:{progressBarClasses:function(){return["progress-bar",this.computedVariant?"bg-"+this.computedVariant:"",this.computedStriped||this.computedAnimated?"progress-bar-striped":"",this.computedAnimated?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.value/this.computedMax*100+"%"}},progress:function(){var e=Math.pow(10,this.computedPrecision);return Math.round(100*e*this.value/this.computedMax)/e},computedMax:function(){return"number"==typeof this.max?this.max:this.$parent.max||100},computedVariant:function(){return this.variant||this.$parent.variant},computedPrecision:function(){return"number"==typeof this.precision?this.precision:this.$parent.precision||0},computedStriped:function(){return"boolean"==typeof this.striped?this.striped:this.$parent.striped||!1},computedAnimated:function(){return"boolean"==typeof this.animated?this.animated:this.$parent.animated||!1},computedShowProgress:function(){return"boolean"==typeof this.showProgress?this.showProgress:this.$parent.showProgress||!1},computedShowValue:function(){return"boolean"==typeof this.showValue?this.showValue:this.$parent.showValue||!1}},props:{value:{type:Number,default:0},label:{type:String,default:null},max:{type:Number,default:null},precision:{type:Number,default:null},variant:{type:String,default:null},striped:{type:Boolean,default:null},animated:{type:Boolean,default:null},showProgress:{type:Boolean,default:null},showValue:{type:Boolean,default:null}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(364),r=i(o),a=n(3),s=(i(a),{render:function(){return function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"rule"},[n("span",{staticClass:"rule-display"},[e._v(e._s(e.title)+"\n ")]),e._v(" "),e.rule.warn?n("span",{staticClass:"rule-warning"},[e._v("\n "+e._s(e.rule.warn)+"\n ")]):e._e(),e._v(" "),e.rule.error?n("span",{staticClass:"rule-error"},[n("span",{staticClass:"alert-message"},[e._v(e._s(e.rule.error))])]):e._e()])}.call(this)},props:{rule:{required:!0,type:Object},colHeaders:{type:Array,required:!1}},computed:{title:function(){var e=this.rule.type;return r.default.RULES[e].display(this.rule,this.colHeaders)}},methods:{}}),l={render:function(){return function(){var e=this,t=e.$createElement;return(e._self._c||t)("li",{staticClass:"rule",attrs:{title:e.help}},[e._v("\n Set "+e._s(e.columnsLabel)+" as "+e._s(e.typeDisplay)+"\n ")])}.call(this)},props:{type:{type:String,required:!0},columns:{required:!0},colHeaders:{type:Array,required:!0}},computed:{typeDisplay:function(){return r.default.MAPPING_TARGETS[this.type].label},help:function(){return r.default.MAPPING_TARGETS[this.type].help||""},columnsLabel:function(){return r.default.columnDisplay(this.columns,this.colHeaders)}}};t.default={data:function(){return{}},computed:{mapping:function(){return this.inputRules?this.inputRules.mapping:[]},rules:function(){return this.inputRules?this.inputRules.rules:[]},columnData:function(){var e=[];return{colHeadersPerRule:e,columns:r.default.applyRules([],[],[],this.rules,e).columns}},colHeaders:function(){var e=this.columnData.columns;return r.default.colHeadersFor([],e)}},props:{inputRules:{required:!1,type:Object}},components:{RuleDisplayPreview:s,IdentifierDisplayPreview:l}}},,,,,,,,,,,,,,,,,,function(e,t,n){n(415),n(0),n(416),n(225),n(162),n(163),n(164),n(149),n(165),n(166),n(417),n(69),n(226),n(418),n(150),n(193),n(419),n(40),n(1),n(2),n(20),n(227),n(228),n(168),e.exports=n(421)},function(e,t,n){"use strict";(function(e){!function(){window.console=window.console||{log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},assert:function(){}},Object.assign=Object.assign||e.extend;for(var t=0,n=["ms","moz","webkit","o"],i=0;i<n.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[n[i]+"RequestAnimationFrame"],window.cancelRequestAnimationFrame=window[n[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,n){var i=(new Date).getTime(),o=Math.max(0,16-(i-t)),r=window.setTimeout(function(){e(i+o)},o);return t=i+o,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)});var o=[{name:"canvas",compatible:function(){return window.CanvasRenderingContext2D}},{name:"sessionStorage",compatible:function(){try{return window.sessionStorage.length>=0}catch(e){}return!1}}],r=o.filter(function(e){return!e.compatible()}).map(function(e){return e.name});if(r.length){var a=document.querySelectorAll('link[rel="index"]').item(0);a&&(window.location=a.href+"static/incompatible-browser.html"),console.log("incompatible browser:\n"+r.join("\n"))}}()}).call(t,n(1))},function(e,t,n){(function(e){/*!
!function(t,i){"use strict";var o;try{o=n(4)}catch(e){}e.exports=i(o)}(0,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,i=window.document,o=window.setTimeout,r=function(e,t,i,o){n?e.addEventListener(t,i,!!o):e.attachEvent("on"+t,i)},a=function(e,t,i,o){n?e.removeEventListener(t,i,!!o):e.detachEvent("on"+t,i)},s=function(e,t,n){var o;i.createEvent?(o=i.createEvent("HTMLEvents"),o.initEvent(t,!0,!1),o=_(o,n),e.dispatchEvent(o)):i.createEventObject&&(o=i.createEventObject(),o=_(o,n),e.fireEvent("on"+t,o))},l=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},u=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},c=function(e,t){u(e,t)||(e.className=""===e.className?t:e.className+" "+t)},d=function(e,t){e.className=l((" "+e.className+" ").replace(" "+t+" "," "))},h=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return 0===t||6===t},m=function(e){return e%4==0&&e%100!=0||e%400==0},g=function(e,t){return[31,m(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},v=function(e){f(e)&&e.setHours(0,0,0,0)},y=function(e,t){return e.getTime()===t.getTime()},_=function(e,t,n){var i,o;for(i in t)o=void 0!==e[i],o&&"object"==typeof t[i]&&null!==t[i]&&void 0===t[i].nodeName?f(t[i])?n&&(e[i]=new Date(t[i].getTime())):h(t[i])?n&&(e[i]=t[i].slice(0)):e[i]=_({},t[i],n):!n&&o||(e[i]=t[i]);return e},b=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},w={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},C=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},T=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},S=function(e,t,n){var i=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,t,e)-i)/864e5+i.getDay()+1)/7)+"</td>"},k=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},M=function(e){return"<tbody>"+e.join("")+"</tbody>"},E=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+C(e,t)+'">'+C(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},x=function(e,t,n,i,o,r){var a,s,l,u,c,d=e._o,f=n===d.minYear,p=n===d.maxYear,m='<div id="'+r+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,v=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===o?a-t:12+a-t)+'"'+(a===i?' selected="selected"':"")+(f&&a<d.minMonth||p&&a>d.maxMonth?'disabled="disabled"':"")+">"+d.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+d.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",h(d.yearRange)?(a=d.yearRange[0],s=d.yearRange[1]+1):(a=n-d.yearRange,s=1+n+d.yearRange),l=[];a<s&&a<=d.maxYear;a++)a>=d.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return c='<div class="pika-label">'+n+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",d.showMonthAfterYear?m+=c+u:m+=u+c,f&&(0===i||d.minMonth>=i)&&(g=!1),p&&(11===i||d.maxMonth<=i)&&(v=!1),0===t&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(m+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),m+="</div>"},O=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+E(e)+M(t)+"</table>"},L=function(a){var s=this,l=s.config(a);s._onMouseDown=function(e){if(s._v){e=e||window.event;var t=e.target||e.srcElement;if(t)if(u(t,"is-disabled")||(!u(t,"pika-button")||u(t,"is-empty")||u(t.parentNode,"is-disabled")?u(t,"pika-prev")?s.prevMonth():u(t,"pika-next")&&s.nextMonth():(s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&o(function(){s.hide(),l.field&&l.field.blur()},100))),u(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},s._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(u(t,"pika-select-month")?s.gotoMonth(t.value):u(t,"pika-select-year")&&s.gotoYear(t.value))},s._onKeyChange=function(e){if(e=e||window.event,s.isVisible())switch(e.keyCode){case 13:case 27:l.field.blur();break;case 37:e.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7)}},s._onInputChange=function(n){var i;n.firedBy!==s&&(t?(i=e(l.field.value,l.format,l.formatStrict),i=i&&i.isValid()?i.toDate():null):i=new Date(Date.parse(l.field.value)),f(i)&&s.setDate(i),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var e=i.activeElement;do{if(u(e,"pika-single"))return}while(e=e.parentNode);s._c||(s._b=o(function(){s.hide()},50)),s._c=!1},s._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,i=t;if(t){!n&&u(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),r(t,"change",s._onChange)));do{if(u(i,"pika-single")||i===l.trigger)return}while(i=i.parentNode);s._v&&t!==l.trigger&&i!==l.trigger&&s.hide()}},s.el=i.createElement("div"),s.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),r(s.el,"mousedown",s._onMouseDown,!0),r(s.el,"touchend",s._onMouseDown,!0),r(s.el,"change",s._onChange),r(i,"keydown",s._onKeyChange),l.field&&(l.container?l.container.appendChild(s.el):l.bound?i.body.appendChild(s.el):l.field.parentNode.insertBefore(s.el,l.field.nextSibling),r(l.field,"change",s._onInputChange),l.defaultDate||(t&&l.field.value?l.defaultDate=e(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;f(c)?l.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.gotoDate(new Date),l.bound?(this.hide(),s.el.className+=" is-bound",r(l.trigger,"click",s._onInputClick),r(l.trigger,"focus",s._onInputFocus),r(l.trigger,"blur",s._onInputBlur)):this.show()};return L.prototype={config:function(e){this._o||(this._o=_({},w,!0));var t=_(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),h(t.yearRange)){var i=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||i,t.yearRange[1]=parseInt(t.yearRange[1],10)||i}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||w.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return f(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,i){t&&e.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,i=this._o.maxDate;f(n)&&e<n?e=n:f(i)&&e>i&&(e=i),this._d=new Date(e.getTime()),v(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),t=o<n.getTime()||i.getTime()<o}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(n,i){var o,r=this.getDate(),a=24*parseInt(i)*60*60*1e3;"add"===n?o=new Date(r.valueOf()+a):"subtract"===n&&(o=new Date(r.valueOf()-a)),t&&("add"===n?o=e(r).add(i,"days").toDate():"subtract"===n&&(o=e(r).subtract(i,"days").toDate())),this.setDate(o)},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=b({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(v(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=w.minDate,this._o.minYear=w.minYear,this._o.minMonth=w.minMonth,this._o.startRange=w.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(v(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=w.maxDate,this._o.maxYear=w.maxYear,this._o.maxMonth=w.maxMonth,this._o.endRange=w.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,i=n.minYear,r=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=i&&(this._y=i,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=r&&(this._y=r,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u<n.numberOfMonths;u++)l+='<div class="pika-lendar">'+x(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&o(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,o,r,a,s,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,o=this.el.offsetHeight,r=window.innerWidth||i.documentElement.clientWidth,a=window.innerHeight||i.documentElement.clientHeight,s=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)c=e.getBoundingClientRect(),l=c.left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>r||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+o>a+s||this._o.position.indexOf("top")>-1&&u-o-e.offsetHeight>0)&&(u=u-o-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t,n){var i=this._o,o=new Date,r=g(e,t),a=new Date(e,t,1).getDay(),s=[],l=[];v(o),i.firstDay>0&&(a-=i.firstDay)<0&&(a+=7);for(var u=0===t?11:t-1,c=11===t?0:t+1,d=0===t?e-1:e,h=11===t?e+1:e,m=g(d,u),_=r+a,b=_;b>7;)b-=7;_+=7-b;for(var w=0,C=0;w<_;w++){var M=new Date(e,t,w-a+1),E=!!f(this._d)&&y(M,this._d),x=y(M,o),L=w<a||w>=r+a,D=w-a+1,R=t,A=e,H=i.startRange&&y(i.startRange,M),P=i.endRange&&y(i.endRange,M),j=i.startRange&&i.endRange&&i.startRange<M&&M<i.endRange,N=i.minDate&&M<i.minDate||i.maxDate&&M>i.maxDate||i.disableWeekends&&p(M)||i.disableDayFn&&i.disableDayFn(M);L&&(w<a?(D=m+D,R=u,A=d):(D-=r,R=c,A=h));var I={day:D,month:R,year:A,isSelected:E,isToday:x,isDisabled:N,isEmpty:L,isStartRange:H,isEndRange:P,isInRange:j,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths};l.push(T(I)),7==++C&&(i.showWeekNumber&&l.unshift(S(w-a,t,e)),s.push(k(l,i.isRTL)),l=[],C=0)}return O(i,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(d(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(r(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&a(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),this._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.trigger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},L})},function(e,t,n){"use strict";(function(e){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(3),a=i(r),s=n(525),l=i(s),u=function(e,t){if(0==e.length)return"no columns";if(1==e.length)return"column "+t[e[0]];var n=e.map(function(e){return t[e]});return"columns "+[n.slice(0,-1).join(", "),n.slice(-1)[0]].join(" and ")},c=function(e,t){var n=[];for(var i in e)-1===t.indexOf(i)&&n.push(e[i]);return n},d=function(e,t,n,i,o){function r(e){var n=e[t],r=a.exec(n);return r?i?e.concat([a.pyreReplace(r[0],i)]):(o=o&&parseInt(o),o?r.length!=o+1?(s++,null):e.concat(r.splice(1,r.length)):e.concat([r[0]])):(s++,null)}var a=void 0;try{a=(0,l.default)(String(e))}catch(e){return{error:"Invalid regular expression specified."}}var s=0;return n=n.map(r),s>0?{error:s+" row(s) failed to match specified regular expression."}:{data:n}},h=function(e,t){return t.reduce(function(t,n){return t.concat(e(n))},[])},f={add_column_basename:{title:(0,a.default)("Basename of Path of URL"),display:function(e,t){return"Add column using basename of column "+t[e.target_column]},init:function(e,t){e.addColumnBasenameTarget=t?t.target_column:0},save:function(e,t){t.target_column=e.addColumnBasenameTarget},apply:function(e,t,n,i){var o=e.target_column,r=d("[^/]*$",o,t);return i.push("new"),r.columns=i,r}},add_column_rownum:{title:(0,a.default)("Row Number"),display:function(e,t){return"Add column for the current row number."},init:function(e,t){e.addColumnRownumStart=t?t.start:1},save:function(e,t){t.start=parseInt(e.addColumnRownumStart)},apply:function(e,t,n,i){function o(e){var t=e.slice();return t.push(String(r)),r+=1,t}var r=e.start;return t=t.map(o),i.push("new"),{data:t,columns:i}}},add_column_value:{title:(0,a.default)("Fixed Value"),display:function(e,t){return"Add column for the constant value of "+e.value+"."},init:function(e,t){e.addColumnValue=t?t.value:""},save:function(e,t){t.value=e.addColumnValue},apply:function(e,t,n,i){function o(e){var t=e.slice();return t.push(r),t}var r=e.value;return t=t.map(o),i.push("new"),{data:t,columns:i}}},add_column_metadata:{title:(0,a.default)("Add Column from Metadata"),display:function(e,t){return"Add column for "+e.value+"."},init:function(e,t){e.addColumnMetadataValue=t?t.value:null},save:function(e,t){t.value=e.addColumnMetadataValue},apply:function(e,t,n,i){var o=e.value,r=void 0;if(o.startsWith("identifier")){var a=parseInt(o.substring("identifier".length));r=function(e,t){var i=e.slice();return i.push(n[t].identifiers[a]),i}}else{if("hid"!=o&&"name"!=o&&"path"!=o)return{error:"Unknown metadata type ["+o+"}]"};r=function(e,t){var i=e.slice();return i.push(n[t][o]),i}}return t=t.map(r),i.push("new"),{data:t,columns:i}}},add_column_regex:{title:(0,a.default)("Using a Regular Expression"),display:function(e,t){return"Add new column using "+e.expression+" applied to column "+t[e.target_column]},init:function(e,t){t?(e.addColumnRegexTarget=t.target_column,e.addColumnRegexExpression=t.expression,e.addColumnRegexReplacement=t.replacement,e.addColumnRegexGroupCount=t.group_count):(e.addColumnRegexTarget=0,e.addColumnRegexExpression="",e.addColumnRegexReplacement=null,e.addColumnRegexGroupCount=null);var n="global";e.addColumnRegexGroupCount?n="groups":e.addColumnRegexReplacement&&(n="replacement"),e.addColumnRegexType=n},save:function(e,t){t.target_column=e.addColumnRegexTarget,t.expression=e.addColumnRegexExpression,e.addColumnRegexReplacement&&(t.replacement=e.addColumnRegexReplacement),e.addColumnRegexGroupCount&&(t.group_count=e.addColumnRegexGroupCount)},apply:function(e,t,n,i){var o=e.target_column,r=d(e.expression,o,t,e.replacement,e.group_count);return i.push("new"),r.columns=i,r}},add_column_concatenate:{title:(0,a.default)("Concatenate Columns"),display:function(e,t){return"Concatenate column "+t[e.target_column_0]+" and column "+t[e.target_column_1]},init:function(e,t){t?(e.addColumnConcatenateTarget0=t.target_column_0,e.addColumnConcatenateTarget1=t.target_column_1):(e.addColumnConcatenateTarget0=0,e.addColumnConcatenateTarget1=0)},save:function(e,t){t.target_column_0=e.addColumnConcatenateTarget0,t.target_column_1=e.addColumnConcatenateTarget1},apply:function(e,t,n,i){function o(e){var t=e.slice();return t.push(e[r]+e[a]),t}var r=e.target_column_0,a=e.target_column_1;return t=t.map(o),i.push("new"),{data:t,columns:i}}},add_column_substr:{title:(0,a.default)("Keep or Trim Prefix or Suffix"),display:function(e,t){var n=e.substr_type,i=void 0;return i="keep_prefix"==n?"Keep only "+e.length+" characters from the start of column "+t[e.target_column]:"drop_prefix"==n?"Remove "+e.length+" characters from the start of column "+t[e.target_column]:"keep_suffix"==n?"Keep only "+e.length+" characters from the end of column "+t[e.target_column]:"Remove "+e.length+" characters from the end of column "+t[e.target_column],i},init:function(e,t){t?(e.addColumnSubstrTarget=t.target_column,e.addColumnSubstrLength=t.length,e.addColumnSubstrType=t.substr_type):(e.addColumnSubstrTarget=0,e.addColumnSubstrType="keep_prefix",e.addColumnSubstrLength=1)},save:function(e,t){t.target_column=e.addColumnSubstrTarget,t.length=parseInt(e.addColumnSubstrLength),t.substr_type=e.addColumnSubstrType},apply:function(e,t,n,i){function o(e){var t=e.slice(),n=e[r],i=0,o=n.length;return"keep_prefix"==s?o=a:"drop_prefix"==s?i=a:"keep_suffix"==s?(i=o-a)<0&&(i=0):(o-=a)<0&&(o=0),t.push(n.substr(i,o)),t}var r=e.target_column,a=e.length,s=e.substr_type;return t=t.map(o),i.push("new"),{data:t}}},remove_columns:{title:(0,a.default)("Remove Column(s)"),display:function(e,t){var n=e.target_columns;return"Remove "+u(n,t)},init:function(e,t){e.removeColumnTargets=t?t.target_columns:[]},save:function(e,t){t.target_columns=e.removeColumnTargets},apply:function(e,t,n,i){function o(e){var t=[];for(var n in e)-1==r.indexOf(parseInt(n))&&t.push(e[n]);return t}var r=e.target_columns;return t=t.map(o),i=c(i,r),{data:t,columns:i}}},add_filter_regex:{title:(0,a.default)("Using a Regular Expression"),display:function(e,t){return"Filter rows using regular expression "+e.expression+" on column "+t[e.target_column]},init:function(e,t){t?(e.addFilterRegexTarget=t.target_column,e.addFilterRegexExpression=t.expression,e.addFilterRegexInvert=t.invert):(e.addFilterRegexTarget=0,e.addFilterRegexExpression="",e.addFilterRegexInvert=!1)},save:function(e,t){t.target_column=e.addFilterRegexTarget,t.expression=e.addFilterRegexExpression,t.invert=e.addFilterRegexInvert},apply:function(e,t,n,i){var o,r=String(e.expression);try{o=(0,l.default)(r)}catch(e){return{error:"Invalid regular expression specified."}}var a=e.target_column,s=e.invert,u=function(e,n){var i=t[parseInt(n)];return o.exec(i[a])?!s:s};return n=n.filter(u),t=t.filter(u),{data:t,sources:n}}},add_filter_count:{title:(0,a.default)("First or Last N Rows"),display:function(e,t){var n=e.which,i=e.invert;return"first"!=n||i?"first"==n&&i?"Keep only first "+e.count+" row(s).":"last"!=n||i?"Keep only last "+e.count+" row(s).":"Filter out last "+e.count+" row(s).":"Filter out first "+e.count+" row(s)."},init:function(e,t){t?(e.addFilterCountN=t.count,e.addFilterCountWhich=t.which,e.addFilterCountInvert=t.inverse):(e.addFilterCountN=0,e.addFilterCountWhich="first",e.addFilterCountInvert=!1)},save:function(e,t){t.count=e.addFilterCountN,t.which=e.addFilterCountWhich,t.invert=e.addFilterCountInvert},apply:function(e,t,n,i){var o=e.count,r=e.invert,a=e.which,s=t.length,l=function(e,t){var n=void 0;return n="first"==a?t>=o:t<s-o,n?!r:r};return n=n.filter(l),t=t.filter(l),{data:t,sources:n}}},add_filter_empty:{title:(0,a.default)("On Emptiness"),display:function(e,t){return"Filter rows if no value for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterEmptyTarget=t.target_column,e.addFilterEmptyInvert=t.invert):(e.addFilterEmptyTarget=0,e.addFilterEmptyInvert=!1)},save:function(e,t){t.target_column=e.addFilterEmptyTarget,t.invert=e.addFilterEmptyInvert},apply:function(e,t,n,i){var o=e.target_column,r=e.invert,a=function(e,n){return t[parseInt(n)][o].length?!r:r};return n=n.filter(a),t=t.filter(a),{data:t,sources:n}}},add_filter_matches:{title:(0,a.default)("Matching a Supplied Value"),display:function(e,t){return"Filter rows with value "+e.value+" for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterMatchesTarget=t.target_column,e.addFilterMatchesValue=t.value,e.addFilterMatchesInvert=t.invert):(e.addFilterMatchesTarget=0,e.addFilterMatchesValue="",e.addFilterMatchesInvert=!1)},save:function(e,t){t.target_column=e.addFilterMatchesTarget,t.value=e.addFilterMatchesValue,t.invert=e.addFilterMatchesInvert},apply:function(e,t,n,i){var o=e.target_column,r=e.invert,a=e.value,s=function(e,n){return t[parseInt(n)][o]==a?!r:r};return n=n.filter(s),t=t.filter(s),{data:t,sources:n}}},add_filter_compare:{title:(0,a.default)("By Comparing to a Numeric Value"),display:function(e,t){return"Filter rows with value "+e.compare_type+" "+e.value+" for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterCompareTarget=t.target_column,e.addFilterCompareValue=t.value,e.addFilterCompareType=t.compare_type):(e.addFilterCompareTarget=0,e.addFilterCompareValue=0,e.addFilterCompareType="less_than")},save:function(e,t){t.target_column=e.addFilterCompareTarget,t.value=e.addFilterCompareValue,t.compare_type=e.addFilterCompareType},apply:function(e,t,n,i){var o=e.target_column,r=e.compare_type,a=e.value,s=function(e,n){var i=t[parseInt(n)],s=parseFloat(i[o]),l=void 0;return"less_than"==r?l=s<a:"less_than_equal"==r?l=s<=a:"greater_than"==r?l=s>a:"greater_than_equal"==r&&(l=s>=a),l};return n=n.filter(s),t=t.filter(s),{data:t,sources:n}}},sort:{title:(0,a.default)("Sort"),display:function(e,t){return"Sort on column "+t[e.target_column]},init:function(e,t){t?(e.addSortingTarget=t.target_column,e.addSortingNumeric=t.numeric):(e.addSortingTarget=0,e.addSortingNumeric=!1)},save:function(e,t){t.target_column=e.addSortingTarget,t.numeric=e.addSortingNumeric},apply:function(t,n,i,o){var r=t.target_column,a=t.numeric,s=e.zip(n,i),l=function(e,t){var n=e[0][r],i=t[0][r];return a&&(n=parseFloat(n),i=parseFloat(i)),n<i?-1:i<n?1:0};s.sort(l);var u=[],c=[];return s.map(function(e){u.push(e[0]),c.push(e[1])}),{data:u,sources:c}}},swap_columns:{title:(0,a.default)("Swap Column(s)"),display:function(e,t){return"Swap "+u([e.target_column_0,e.target_column_1],t)},init:function(e,t){t?(e.swapColumnsTarget0=t.target_column_0,e.swapColumnsTarget1=t.target_column_1):(e.swapColumnsTarget0=0,e.swapColumnsTarget1=0)},save:function(e,t){t.target_column_0=e.swapColumnsTarget0,t.target_column_1=e.swapColumnsTarget1},apply:function(e,t,n,i){function o(e){var t=e.slice();return t[r]=e[a],t[a]=e[r],t}var r=e.target_column_0,a=e.target_column_1;t=t.map(o);var s=i[r];return i[r]=i[a],i[a]=s,{data:t,columns:i}}},split_columns:{title:(0,a.default)("Split Column(s)"),display:function(e,t){return"Duplicate each row and split up columns"},init:function(e,t){t?(e.splitColumnsTargets0=t.target_columns_0,e.splitColumnsTargets1=t.target_columns_1):(e.splitColumnsTargets0=[],e.splitColumnsTargets1=[])},save:function(e,t){t.target_columns_0=e.splitColumnsTargets0,t.target_columns_1=e.splitColumnsTargets1},apply:function(e,t,n,i){var o=e.target_columns_0,r=e.target_columns_1;return t=h(function(e){var t=[],n=[];for(var i in e)i=parseInt(i),o.indexOf(i)>-1?t.push(e[i]):r.indexOf(i)>-1?n.push(e[i]):(t.push(e[i]),n.push(e[i]));return[t,n]},t),n=h(function(e){return[e,e]},n),i=c(i,o),{data:t,sources:n,columns:i}}}},p={list_identifiers:{multiple:!0,label:(0,a.default)("List Identifier(s)"),columnHeader:(0,a.default)("List Identifier"),help:(0,a.default)("This should be a short description of the replicate, sample name, condition, etc... that describes each level of the list structure."),importType:"collections"},paired_identifier:{label:(0,a.default)("Paired-end Indicator"),columnHeader:(0,a.default)("Paired Indicator"),help:(0,a.default)("This should be set to '1', 'R1', 'forward', 'f', or 'F' to indicate forward reads, and '2', 'r', 'reverse', 'R2', 'R', or 'R2' to indicate reverse reads."),importType:"collections"},collection_name:{label:(0,a.default)("Collection Name"),help:(0,a.default)("If this is set, all rows with the same collection name will be joined into a collection and it is possible to create multiple collections at once."),modes:["raw","ftp","datasets","library_datasets"],importType:"collections"},name:{label:(0,a.default)("Name"),importType:"datasets"},dbkey:{label:(0,a.default)("Genome"),modes:["raw","ftp"]},file_type:{label:(0,a.default)("Type"),modes:["raw","ftp"],help:(0,a.default)("This should be the Galaxy file type corresponding to this file.")},url:{label:(0,a.default)("URL"),modes:["raw"],help:(0,a.default)("This should be a URL the file can be downloaded from.")},info:{label:(0,a.default)("Info"),help:(0,a.default)("Unstructured text associated with the dataset that shows up in the history panel, this is optional and can be whatever you would like."),modes:["raw","ftp"]},ftp_path:{label:(0,a.default)("FTP Path"),modes:["raw","ftp"],help:(0,a.default)("This should be the path to the target file to include relative to your FTP directory on the Galaxy server"),requiresFtp:!0}},m=function(e,t){var n=void 0;return n="object"==(void 0===e?"undefined":o(e))?e.map(function(e){return t[e]}):[t[e]],2==n.length?"columns "+n[0]+" and "+n[1]:n.length>2?"columns "+n.slice(0,-1).join(", ")+", and "+n[n.length-1]:"column "+n[0]},g=function(e,t){return 0==e.length?t?t.map(function(e,t){return String.fromCharCode(65+t)}):[]:e[0].map(function(e,t){return String.fromCharCode(65+t)})},v=function(e,t,n,i,o){var o=o||[],r=!1;for(var s in i){var l=g(e,n);o[s]=l;var u=i[s];if(u.error=null,u.warn=null,r)u.warn=(0,a.default)("Skipped due to previous errors.");else{var c=u.type,d=f[c],h=d.apply(u,e,t,n);h.error?(r=!0,u.error=h.error):(h.warn&&(u.warn=h.warn),e=h.data||e,t=h.sources||t,n=h.columns||n)}}return{data:e,sources:t,columns:n}};t.default={applyRules:v,columnDisplay:m,colHeadersFor:g,RULES:f,MAPPING_TARGETS:p}}).call(t,n(1))},function(e,t,n){"use strict";function i(e){return e}t.a=i},function(e,t,n){"use strict";var i=n(7),o=n(12),r=n(367),a=Object(o.a)({},r.b,{text:{type:String,default:null},href:{type:String,default:null}});t.a={functional:!0,props:a,render:function(e,t){var n=t.props,o=t.data,a=t.children;return e("li",Object(i.a)(o,{staticClass:"breadcrumb-item",class:{active:n.active},attrs:{role:"presentation"}}),[e(r.a,{props:n},a)])}}},function(e,t,n){"use strict";n.d(t,"b",function(){return s});var i=n(7),o=n(154),r=n(12),a=n(53),s=Object(r.a)(Object(a.c)(),{text:{type:String,default:null},active:{type:Boolean,default:!1},href:{type:String,default:"#"},ariaCurrent:{type:String,default:"location"}});t.a={functional:!0,props:s,render:function(e,t){var n=t.props,r=t.data,l=t.children,u=n.active?"span":a.a,c={props:Object(o.a)(s,n),domProps:{innerHTML:n.text}};return n.active?c.attrs={"aria-current":n.ariaCurrent}:c.attrs={href:n.href},e(u,Object(i.a)(r,c),l)}}},function(e,t,n){"use strict";var i=n(202);t.a={functional:!0,props:Object(i.b)(!1),render:i.a.render}},function(e,t,n){"use strict";var i=n(202);t.a={functional:!0,props:Object(i.b)(!0),render:i.a.render}},function(e,t,n){"use strict";function i(e){return"string"!=typeof e&&(e=String(e)),e.charAt(0).toUpperCase()+e.slice(1)}t.a=i},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",function(){return u});var o=n(7),r=n(185),a=n(186),s=n(12),l=n(187),u=Object(s.a)({},Object(a.a)(l.a.props,r.a.bind(null,"body")),{bodyClass:{type:[String,Object,Array],default:null},title:{type:String,default:null},titleTag:{type:String,default:"h4"},subTitle:{type:String,default:null},subTitleTag:{type:String,default:"h6"},overlay:{type:Boolean,default:!1}});t.a={functional:!0,props:u,render:function(e,t){var n,r=t.props,a=t.data,s=t.slots,l=[];return r.title&&l.push(e(r.titleTag,{staticClass:"card-title",domProps:{innerHTML:r.title}})),r.subTitle&&l.push(e(r.subTitleTag,{staticClass:"card-subtitle mb-2 text-muted",domProps:{innerHTML:r.subTitle}})),l.push(s().default),e(r.bodyTag,Object(o.a)(a,{staticClass:"card-body",class:[(n={"card-img-overlay":r.overlay},i(n,"bg-"+r.bodyBgVariant,Boolean(r.bodyBgVariant)),i(n,"border-"+r.bodyBorderVariant,Boolean(r.bodyBorderVariant)),i(n,"text-"+r.bodyTextVariant,Boolean(r.bodyTextVariant)),n),r.bodyClass||{}]}),l)}}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",function(){return u});var o=n(7),r=n(185),a=n(186),s=n(12),l=n(187),u=Object(s.a)({},Object(a.a)(l.a.props,r.a.bind(null,"header")),{header:{type:String,default:null},headerClass:{type:[String,Object,Array],default:null}});t.a={functional:!0,props:u,render:function(e,t){var n,r=t.props,a=t.data,s=(t.slots,t.children);return e(r.headerTag,Object(o.a)(a,{staticClass:"card-header",class:[r.headerClass,(n={},i(n,"bg-"+r.headerBgVariant,Boolean(r.headerBgVariant)),i(n,"border-"+r.headerBorderVariant,Boolean(r.headerBorderVariant)),i(n,"text-"+r.headerTextVariant,Boolean(r.headerTextVariant)),n)]}),s||[e("div",{domProps:{innerHTML:r.header}})])}}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",function(){return u});var o=n(7),r=n(185),a=n(186),s=n(12),l=n(187),u=Object(s.a)({},Object(a.a)(l.a.props,r.a.bind(null,"footer")),{footer:{type:String,default:null},footerClass:{type:[String,Object,Array],default:null}});t.a={functional:!0,props:u,render:function(e,t){var n,r=t.props,a=t.data,s=(t.slots,t.children);return e(r.footerTag,Object(o.a)(a,{staticClass:"card-footer",class:[r.footerClass,(n={},i(n,"bg-"+r.footerBgVariant,Boolean(r.footerBgVariant)),i(n,"border-"+r.footerBorderVariant,Boolean(r.footerBorderVariant)),i(n,"text-"+r.footerTextVariant,Boolean(r.footerTextVariant)),n)]}),s||[e("div",{domProps:{innerHTML:r.footer}})])}}},function(e,t,n){"use strict";n.d(t,"b",function(){return o});var i=n(7),o={src:{type:String,default:null,required:!0},alt:{type:String,default:null},top:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=(t.slots,"card-img");return n.top?r+="-top":n.bottom&&(r+="-bottom"),e("img",Object(i.a)(o,{staticClass:r,class:{"img-fluid":n.fluid},attrs:{src:n.src,alt:n.alt}}))}}},function(e,t,n){"use strict";var i=n(7),o={tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=t.children;return e(n.tag,Object(i.a)(o,{class:{container:!n.fluid,"container-fluid":n.fluid}}),r)}}},function(e,t,n){"use strict";var i=n(554),o=n(377),r=n(8),a={bCollapse:i.a},s={install:function(e){Object(r.a)(e,a),e.use(o.a)}};Object(r.c)(s),t.a=s},function(e,t,n){"use strict";var i=n(555),o=n(8),r={bToggle:i.a},a={install:function(e){Object(o.b)(e,r)}};Object(o.c)(a),t.a=a},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"c",function(){return s});var i=n(12),o={hover:!0,click:!0,focus:!0},r="__BV_boundEventListeners__",a=function(e,t,n,a){var s=Object(i.e)(t.modifiers||{}).filter(function(e){return!o[e]});t.value&&s.push(t.value);var l=function(){a({targets:s,vnode:e})};return Object(i.e)(o).forEach(function(i){if(n[i]||t.modifiers[i]){e.elm.addEventListener(i,l);var o=e.elm[r]||{};o[i]=o[i]||[],o[i].push(l),e.elm[r]=o}}),s},s=function(e,t,n){Object(i.e)(o).forEach(function(i){if(n[i]||t.modifiers[i]){var o=e.elm[r]&&e.elm[r][i];o&&(o.forEach(function(t){return e.elm.removeEventListener(i,t)}),delete e.elm[r][i])}})};t.b=a},function(e,t,n){"use strict";function i(e){return(e||[]).filter(d.m)}var o=n(167),r=n(557),a=n(172),s=n(16),l=n(12),u=n(87),c=n(42),d=n(21),h={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"};t.a={mixins:[r.a,a.a],props:{disabled:{type:Boolean,default:!1},text:{type:String,default:""},dropup:{type:Boolean,default:!1},right:{type:Boolean,default:!1},offset:{type:[Number,String],default:0},noFlip:{type:Boolean,default:!1},popperOpts:{type:Object,default:function(){}}},data:function(){return{visible:!1,inNavbar:null}},created:function(){this._popper=null},mounted:function(){this.listenOnRoot("bv::dropdown::shown",this.rootCloseListener),this.listenOnRoot("clicked::link",this.rootCloseListener),this.listenOnRoot("bv::link::clicked",this.rootCloseListener)},deactivated:function(){this.visible=!1,this.setTouchStart(!1),this.removePopper()},beforeDestroy:function(){this.visible=!1,this.setTouchStart(!1),this.removePopper()},watch:{visible:function(e,t){e!==t&&(e?this.showMenu():this.hideMenu())},disabled:function(e,t){e!==t&&e&&this.visible&&(this.visible=!1)}},computed:{toggler:function(){return this.$refs.toggle.$el||this.$refs.toggle}},methods:{showMenu:function(){if(!this.disabled){if(this.$emit("show"),this.emitOnRoot("bv::dropdown::shown",this),null===this.inNavbar&&this.isNav&&(this.inNavbar=Boolean(Object(d.b)(".navbar",this.$el))),!this.inNavbar)if(void 0===o.default)Object(c.a)("b-dropdown: Popper.js not found. Falling back to CSS positioning.");else{var e=this.dropup&&this.right||this.split?this.$el:this.$refs.toggle;e=e.$el||e,this.createPopper(e)}this.setTouchStart(!0),this.$emit("shown"),this.$nextTick(this.focusFirstItem)}},hideMenu:function(){this.$emit("hide"),this.setTouchStart(!1),this.emitOnRoot("bv::dropdown::hidden",this),this.$emit("hidden"),this.removePopper()},createPopper:function(e){this.removePopper(),this._popper=new o.default(e,this.$refs.menu,this.getPopperConfig())},removePopper:function(){this._popper&&this._popper.destroy(),this._popper=null},getPopperConfig:function(){var e=h.BOTTOM;this.dropup&&this.right?e=h.TOPEND:this.dropup?e=h.TOP:this.right&&(e=h.BOTTOMEND);var t={placement:e,modifiers:{offset:{offset:this.offset||0},flip:{enabled:!this.noFlip}}};return this.boundary&&(t.modifiers.preventOverflow={boundariesElement:this.boundary}),Object(l.a)(t,this.popperOpts||{})},setTouchStart:function(e){var t=this;if("ontouchstart"in document.documentElement){Object(s.c)(document.body.children).forEach(function(n){e?Object(d.d)("mouseover",t._noop):Object(d.c)("mouseover",t._noop)})}},_noop:function(){},rootCloseListener:function(e){e!==this&&(this.visible=!1)},clickOutListener:function(){this.visible=!1},show:function(){this.disabled||(this.visible=!0)},hide:function(){this.disabled||(this.visible=!1)},toggle:function(e){e=e||{};var t=e.type,n=e.keyCode;if("click"===t||"keydown"===t&&(n===u.a.ENTER||n===u.a.SPACE||n===u.a.DOWN)){if(e.preventDefault(),e.stopPropagation(),this.disabled)return void(this.visible=!1);this.visible=!this.visible}},click:function(e){if(this.disabled)return void(this.visible=!1);this.$emit("click",e)},onKeydown:function(e){var t=e.keyCode;t===u.a.ESC?this.onEsc(e):t===u.a.TAB?this.onTab(e):t===u.a.DOWN?this.focusNext(e,!1):t===u.a.UP&&this.focusNext(e,!0)},onEsc:function(e){this.visible&&(this.visible=!1,e.preventDefault(),e.stopPropagation(),this.$nextTick(this.focusToggler))},onTab:function(e){this.visible&&(this.visible=!1)},onFocusOut:function(e){this.$refs.menu.contains(e.relatedTarget)||(this.visible=!1)},onMouseOver:function(e){var t=e.target;t.classList.contains("dropdown-item")&&!t.disabled&&!t.classList.contains("disabled")&&t.focus&&t.focus()},focusNext:function(e,t){var n=this;this.visible&&(e.preventDefault(),e.stopPropagation(),this.$nextTick(function(){var i=n.getItems();if(!(i.length<1)){var o=i.indexOf(e.target);t&&o>0?o--:!t&&o<i.length-1&&o++,o<0&&(o=0),n.focusItem(o,i)}}))},focusItem:function(e,t){var n=t.find(function(t,n){return n===e});n&&"-1"!==Object(d.e)(n,"tabindex")&&n.focus()},getItems:function(){return i(Object(d.u)(".dropdown-item:not(.disabled):not([disabled])",this.$refs.menu))},getFirstItem:function(){return this.getItems()[0]||null},focusFirstItem:function(){var e=this.getFirstItem();e&&this.focusItem(0,[e])},focusToggler:function(){var e=this.toggler;e&&e.focus&&e.focus()}}}},function(e,t,n){"use strict";var i=n(7),o={id:{type:String,default:null},inline:{type:Boolean,default:!1},novalidate:{type:Boolean,default:!1},validated:{type:Boolean,default:!1}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=t.children;return e("form",Object(i.a)(o,{class:{"form-inline":n.inline,"was-validated":n.validated},attrs:{id:n.id,novalidate:n.novalidate}}),r)}}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(7),r={id:{type:String,default:null},tag:{type:String,default:"small"},textVariant:{type:String,default:"muted"},inline:{type:Boolean,default:!1}};t.a={functional:!0,props:r,render:function(e,t){var n=t.props,r=t.data,a=t.children;return e(n.tag,Object(o.a)(r,{class:i({"form-text":!n.inline},"text-"+n.textVariant,Boolean(n.textVariant)),attrs:{id:n.id}}),a)}}},function(e,t,n){"use strict";var i=n(7),o={id:{type:String,default:null},tag:{type:String,default:"div"},forceShow:{type:Boolean,default:!1}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=t.children;return e(n.tag,Object(i.a)(o,{staticClass:"invalid-feedback",class:{"d-block":n.forceShow},attrs:{id:n.id}}),r)}}},function(e,t,n){"use strict";var i=n(7),o={id:{type:String,default:null},tag:{type:String,default:"div"},forceShow:{type:Boolean,default:!1}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=t.children;return e(n.tag,Object(i.a)(o,{staticClass:"valid-feedback",class:{"d-block":n.forceShow},attrs:{id:n.id}}),r)}}},function(e,t,n){"use strict";var i=n(22),o=n(385),r=n(65),a=n(155),s=n(56),l=n(173),u=n(16),c=n(208);t.a={mixins:[i.a,o.a,r.a,a.a,s.a,l.a],render:function(e){var t=this,n=e("input",{ref:"check",class:[this.is_ButtonMode?"":this.is_Plain?"form-check-input":"custom-control-input",this.get_StateClass],directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:{id:this.safeId(),type:"checkbox",name:this.get_Name,disabled:this.is_Disabled,required:this.is_Required,autocomplete:"off","true-value":this.value,"false-value":this.uncheckedValue,"aria-required":this.is_Required?"true":null},domProps:{value:this.value,checked:this.is_Checked},on:{focus:this.handleFocus,blur:this.handleFocus,change:this.emitChange,__c:function(e){var n=t.computedLocalChecked,i=e.target;if(Object(u.d)(n)){var o=t.value,r=t._i(n,o);i.checked?r<0&&(t.computedLocalChecked=n.concat([o])):r>-1&&(t.computedLocalChecked=n.slice(0,r).concat(n.slice(r+1)))}else t.computedLocalChecked=i.checked?t.value:t.uncheckedValue}}}),i=e(this.is_ButtonMode?"span":"label",{class:this.is_ButtonMode?null:this.is_Plain?"form-check-label":"custom-control-label",attrs:{for:this.is_ButtonMode?null:this.safeId()}},[this.$slots.default]);return this.is_ButtonMode?e("label",{class:[this.buttonClasses]},[n,i]):e("div",{class:[this.is_Plain?"form-check":this.labelClasses,{"form-check-inline":this.is_Plain&&!this.is_Stacked},{"custom-control-inline":!this.is_Plain&&!this.is_Stacked}]},[n,i])},props:{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1}},computed:{labelClasses:function(){return["custom-control","custom-checkbox",this.get_Size?"form-control-"+this.get_Size:"",this.get_StateClass]},is_Checked:function(){var e=this.computedLocalChecked;if(Object(u.d)(e)){for(var t=0;t<e.length;t++)if(Object(c.a)(e[t],this.value))return!0;return!1}return Object(c.a)(e,this.value)}},watch:{computedLocalChecked:function(e,t){Object(c.a)(e,t)||(this.$emit("input",e),this.$emit("update:indeterminate",this.$refs.check.indeterminate))},checked:function(e,t){this.is_Child||Object(c.a)(e,t)||(this.computedLocalChecked=e)},indeterminate:function(e,t){this.setIndeterminate(e)}},methods:{emitChange:function(e){var t=e.target.checked;this.is_Child||Object(u.d)(this.computedLocalChecked)?(this.$emit("change",t?this.value:null),this.is_Child&&this.$parent.$emit("change",this.computedLocalChecked)):this.$emit("change",t?this.value:this.uncheckedValue),this.$emit("update:indeterminate",this.$refs.check.indeterminate)},setIndeterminate:function(e){this.is_Child||Object(u.d)(this.computedLocalChecked)||(this.$refs.check.indeterminate=e,this.$emit("update:indeterminate",this.$refs.check.indeterminate))}},mounted:function(){this.setIndeterminate(this.indeterminate)}}},function(e,t,n){"use strict";t.a={data:function(){return{localChecked:this.checked,hasFocus:!1}},model:{prop:"checked",event:"input"},props:{value:{},checked:{},buttonVariant:{type:String,default:null}},computed:{computedLocalChecked:{get:function(){return this.is_Child?this.$parent.localChecked:this.localChecked},set:function(e){this.is_Child?this.$parent.localChecked=e:this.localChecked=e}},is_Child:function(){return Boolean(this.$parent&&this.$parent.is_RadioCheckGroup)},is_Disabled:function(){return Boolean(this.is_Child?this.$parent.disabled||this.disabled:this.disabled)},is_Required:function(){return Boolean(this.is_Child?this.$parent.required:this.required)},is_Plain:function(){return Boolean(this.is_Child?this.$parent.plain:this.plain)},is_Custom:function(){return!this.is_Plain},get_Size:function(){return this.is_Child?this.$parent.size:this.size},get_State:function(){return this.is_Child&&"boolean"==typeof this.$parent.get_State?this.$parent.get_State:this.computedState},get_StateClass:function(){return"boolean"==typeof this.get_State?this.get_State?"is-valid":"is-invalid":""},is_Stacked:function(){return Boolean(this.is_Child&&this.$parent.stacked)},is_Inline:function(){return!this.is_Stacked},is_ButtonMode:function(){return Boolean(this.is_Child&&this.$parent.buttons)},get_ButtonVariant:function(){return this.buttonVariant||(this.is_Child?this.$parent.buttonVariant:null)||"secondary"},get_Name:function(){return(this.is_Child?this.$parent.name||this.$parent.safeId():this.name)||null},buttonClasses:function(){return["btn","btn-"+this.get_ButtonVariant,this.get_Size?"btn-"+this.get_Size:"",this.is_Disabled?"disabled":"",this.is_Checked?"active":"",this.hasFocus?"focus":""]}},methods:{handleFocus:function(e){this.is_ButtonMode&&e.target&&("focus"===e.type?this.hasFocus=!0:"blur"===e.type&&(this.hasFocus=!1))}}}},function(e,t,n){"use strict";var i=n(22),o=n(65),r=n(56),a=n(385),s=n(208);t.a={mixins:[i.a,a.a,o.a,r.a],render:function(e){var t=this,n=e("input",{ref:"radio",class:[this.is_ButtonMode?"":this.is_Plain?"form-check-input":"custom-control-input",this.get_StateClass],directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:{id:this.safeId(),type:"radio",name:this.get_Name,required:this.get_Name&&this.is_Required,disabled:this.is_Disabled,autocomplete:"off"},domProps:{value:this.value,checked:Object(s.a)(this.computedLocalChecked,this.value)},on:{focus:this.handleFocus,blur:this.handleFocus,change:this.emitChange,__c:function(e){t.computedLocalChecked=t.value}}}),i=e(this.is_ButtonMode?"span":"label",{class:this.is_ButtonMode?null:this.is_Plain?"form-check-label":"custom-control-label",attrs:{for:this.is_ButtonMode?null:this.safeId()}},[this.$slots.default]);return this.is_ButtonMode?e("label",{class:[this.buttonClasses]},[n,i]):e("div",{class:[this.is_Plain?"form-check":this.labelClasses,{"form-check-inline":this.is_Plain&&!this.is_Stacked},{"custom-control-inline":!this.is_Plain&&!this.is_Stacked}]},[n,i])},watch:{checked:function(e,t){this.computedLocalChecked=e},computedLocalChceked:function(e,t){this.$emit("input",this.computedLocalChceked)}},computed:{is_Checked:function(){return Object(s.a)(this.value,this.computedLocalChecked)},labelClasses:function(){return[this.get_Size?"form-control-"+this.get_Size:"","custom-control","custom-radio",this.get_StateClass]}},methods:{emitChange:function(e){var t=e.target.checked;this.$emit("change",t?this.value:null),this.is_Child&&this.$parent.$emit("change",this.computedLocalChecked)}}}},function(e,t,n){"use strict";var i=n(7),o={tag:{type:String,default:"div"}};t.a={functional:!0,props:o,render:function(e,t){var n=t.props,o=t.data,r=t.children;return e(n.tag,Object(i.a)(o,{staticClass:"media-body"}),r)}}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(7),r={tag:{type:String,default:"div"},verticalAlign:{type:String,default:"top"}};t.a={functional:!0,props:r,render:function(e,t){var n=t.props,r=t.data,a=t.children;return e(n.tag,Object(o.a)(r,{staticClass:"d-flex",class:i({},"align-self-"+n.verticalAlign,n.verticalAlign)}),a)}}},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(12),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,e),!t)throw new TypeError("Failed to construct '"+this.constructor.name+"'. 1 argument required, "+arguments.length+" given.");Object(o.a)(this,e.defaults(),n,{type:t}),Object(o.c)(this,{type:Object(o.f)(),cancelable:Object(o.f)(),nativeEvent:Object(o.f)(),target:Object(o.f)(),relatedTarget:Object(o.f)(),vueTarget:Object(o.f)()});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},Object(o.d)(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}return r(e,null,[{key:"defaults",value:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null}}}]),e}();t.a=a},function(e,t,n){"use strict";var i=n(597),o=n(8),r={bModal:i.a},a={install:function(e){Object(o.b)(e,r)}};Object(o.c)(a),t.a=a},function(e,t,n){"use strict";var i=n(598),o=n(599),r=n(600),a=n(601),s=n(602),l=n(206),u=n(8),c={bNav:i.a,bNavItem:o.a,bNavText:r.a,bNavForm:a.a,bNavItemDropdown:s.a,bNavItemDd:s.a,bNavDropdown:s.a,bNavDd:s.a},d={install:function(e){Object(u.a)(e,c),e.use(l.a)}};Object(u.c)(d),t.a=d},function(e,t,n){"use strict";function i(e,t){return Object(o.a)(t).map(function(t,n){return{number:n+e,className:null}})}var o=n(610),r=n(87),a=n(21),s=n(53),l={disabled:{type:Boolean,default:!1},value:{type:Number,default:1},limit:{type:Number,default:5},size:{type:String,default:"md"},align:{type:String,default:"left"},hideGotoEndButtons:{type:Boolean,default:!1},ariaLabel:{type:String,default:"Pagination"},labelFirstPage:{type:String,default:"Goto first page"},firstText:{type:String,default:"&laquo;"},labelPrevPage:{type:String,default:"Goto previous page"},prevText:{type:String,default:"&lsaquo;"},labelNextPage:{type:String,default:"Goto next page"},nextText:{type:String,default:"&rsaquo;"},labelLastPage:{type:String,default:"Goto last page"},lastText:{type:String,default:"&raquo;"},labelPage:{type:String,default:"Goto page"},hideEllipsis:{type:Boolean,default:!1},ellipsisText:{type:String,default:"&hellip;"}};t.a={components:{bLink:s.a},data:function(){return{showFirstDots:!1,showLastDots:!1,currentPage:this.value}},props:l,render:function(e){var t=this,n=[],i=function(n,i,o,a){return a=a||n,t.disabled||t.isActive(a)?e("li",{class:["page-item","disabled"],attrs:{role:"none presentation","aria-hidden":"true"}},[e("span",{class:["page-link"],domProps:{innerHTML:o}})]):e("li",{class:["page-item"],attrs:{role:"none presentation"}},[e("b-link",{class:["page-link"],props:t.linkProps(n),attrs:{role:"menuitem",tabindex:"-1","aria-label":i,"aria-controls":t.ariaControls||null},on:{click:function(e){t.onClick(n,e)},keydown:function(e){e.keyCode===r.a.SPACE&&(e.preventDefault(),t.onClick(n,e))}}},[e("span",{attrs:{"aria-hidden":"true"},domProps:{innerHTML:o}})])])},o=function(){return e("li",{class:["page-item","disabled","d-none","d-sm-flex"],attrs:{role:"separator"}},[e("span",{class:["page-link"],domProps:{innerHTML:t.ellipsisText}})])};n.push(this.hideGotoEndButtons?e(!1):i(1,this.labelFirstPage,this.firstText)),n.push(i(this.currentPage-1,this.labelPrevPage,this.prevText,1)),n.push(this.showFirstDots?o():e(!1)),this.pageList.forEach(function(i){var o=void 0,a=t.makePage(i.number);if(t.disabled)o=e("span",{class:["page-link"],domProps:{innerHTML:a}});else{var s=t.isActive(i.number);o=e("b-link",{class:t.pageLinkClasses(i),props:t.linkProps(i.number),attrs:{role:"menuitemradio",tabindex:s?"0":"-1","aria-controls":t.ariaControls||null,"aria-label":t.labelPage+" "+i.number,"aria-checked":s?"true":"false","aria-posinset":i.number,"aria-setsize":t.numberOfPages},domProps:{innerHTML:a},on:{click:function(e){t.onClick(i.number,e)},keydown:function(e){e.keyCode===r.a.SPACE&&(e.preventDefault(),t.onClick(i.number,e))}}})}n.push(e("li",{key:i.number,class:t.pageItemClasses(i),attrs:{role:"none presentation"}},[o]))}),n.push(this.showLastDots?o():e(!1)),n.push(i(this.currentPage+1,this.labelNextPage,this.nextText,this.numberOfPages)),n.push(this.hideGotoEndButtons?e(!1):i(this.numberOfPages,this.labelLastPage,this.lastText));var a=e("ul",{ref:"ul",class:["pagination","b-pagination",this.btnSize,this.alignment],attrs:{role:"menubar","aria-disabled":this.disabled?"true":"false","aria-label":this.ariaLabel||null},on:{keydown:function(e){var n=e.keyCode,i=e.shiftKey;n===r.a.LEFT?(e.preventDefault(),i?t.focusFirst():t.focusPrev()):n===r.a.RIGHT&&(e.preventDefault(),i?t.focusLast():t.focusNext())}}},n);return this.isNav?e("nav",{},[a]):a},watch:{currentPage:function(e,t){e!==t&&this.$emit("input",e)},value:function(e,t){e!==t&&(this.currentPage=e)}},computed:{btnSize:function(){return this.size?"pagination-"+this.size:""},alignment:function(){return"center"===this.align?"justify-content-center":"end"===this.align||"right"===this.align?"justify-content-end":""},pageList:function(){this.currentPage>this.numberOfPages?this.currentPage=this.numberOfPages:this.currentPage<1&&(this.currentPage=1),this.showFirstDots=!1,this.showLastDots=!1;var e=this.limit,t=1;this.numberOfPages<=this.limit?e=this.numberOfPages:this.currentPage<this.limit-1&&this.limit>3?this.hideEllipsis||(e=this.limit-1,this.showLastDots=!0):this.numberOfPages-this.currentPage+2<this.limit&&this.limit>3?(this.hideEllipsis||(this.showFirstDots=!0,e=this.limit-1),t=this.numberOfPages-e+1):(this.limit>3&&!this.hideEllipsis&&(this.showFirstDots=!0,this.showLastDots=!0,e=this.limit-2),t=this.currentPage-Math.floor(e/2)),t<1?t=1:t>this.numberOfPages-e&&(t=this.numberOfPages-e+1);var n=i(t,e);if(n.length>3){var o=this.currentPage-t;if(0===o)for(var r=3;r<n.length;r++)n[r].className="d-none d-sm-flex";else if(o===n.length-1)for(var a=0;a<n.length-3;a++)n[a].className="d-none d-sm-flex";else{for(var s=0;s<o-1;s++)n[s].className="d-none d-sm-flex";for(var l=n.length-1;l>o+1;l--)n[l].className="d-none d-sm-flex"}}return n}},methods:{isActive:function(e){return e===this.currentPage},pageItemClasses:function(e){return["page-item",this.disabled?"disabled":"",this.isActive(e.number)?"active":"",e.className]},pageLinkClasses:function(e){return["page-link",this.disabled?"disabled":"",this.isActive(e.number)?"btn-primary":""]},getButtons:function(){return Object(a.u)("a.page-link",this.$el).filter(function(e){return Object(a.m)(e)})},setBtnFocus:function(e){this.$nextTick(function(){e.focus()})},focusCurrent:function(){var e=this,t=this.getButtons().find(function(t){return parseInt(Object(a.e)(t,"aria-posinset"),10)===e.currentPage});t&&t.focus?this.setBtnFocus(t):this.focusFirst()},focusFirst:function(){var e=this.getButtons().find(function(e){return!Object(a.k)(e)});e&&e.focus&&e!==document.activeElement&&this.setBtnFocus(e)},focusLast:function(){var e=this.getButtons().reverse().find(function(e){return!Object(a.k)(e)});e&&e.focus&&e!==document.activeElement&&this.setBtnFocus(e)},focusPrev:function(){var e=this.getButtons(),t=e.indexOf(document.activeElement);t>0&&!Object(a.k)(e[t-1])&&e[t-1].focus&&this.setBtnFocus(e[t-1])},focusNext:function(){var e=this.getButtons(),t=e.indexOf(document.activeElement);t<e.length-1&&!Object(a.k)(e[t+1])&&e[t+1].focus&&this.setBtnFocus(e[t+1])}}}},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(210),s=n(12),l=n(21),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),d=new RegExp("\\bbs-popover\\S+","g"),h=Object(s.a)({},a.a.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),f={FADE:"fade",SHOW:"show"},p={TITLE:".popover-header",CONTENT:".popover-body"},m=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),c(t,[{key:"isWithContent",value:function(e){if(!(e=e||this.$tip))return!1;var t=Boolean((Object(l.t)(p.TITLE,e)||{}).innerHTML),n=Boolean((Object(l.t)(p.CONTENT,e)||{}).innerHTML);return t||n}},{key:"addAttachmentClass",value:function(e){Object(l.a)(this.getTipElement(),"bs-popover-"+e)}},{key:"setContent",value:function(e){this.setElementContent(Object(l.t)(p.TITLE,e),this.getTitle()),this.setElementContent(Object(l.t)(p.CONTENT,e),this.getContent()),Object(l.s)(e,f.FADE),Object(l.s)(e,f.SHOW)}},{key:"cleanTipClass",value:function(){var e=this.getTipElement(),t=e.className.match(d);null!==t&&t.length>0&&t.forEach(function(t){Object(l.s)(e,t)})}},{key:"getTitle",value:function(){var e=this.$config.title||"";return"function"==typeof e&&(e=e(this.$element)),"object"===(void 0===e?"undefined":u(e))&&e.nodeType&&!e.innerHTML.trim()&&(e=""),"string"==typeof e&&(e=e.trim()),e||(e=Object(l.e)(this.$element,"title")||Object(l.e)(this.$element,"data-original-title")||"",e=e.trim()),e}},{key:"getContent",value:function(){var e=this.$config.content||"";return"function"==typeof e&&(e=e(this.$element)),"object"===(void 0===e?"undefined":u(e))&&e.nodeType&&!e.innerHTML.trim()&&(e=""),"string"==typeof e&&(e=e.trim()),e}}],[{key:"Default",get:function(){return h}},{key:"NAME",get:function(){return"popover"}}]),t}(a.a);t.a=m},function(e,t,n){"use strict";var i=n(16),o=n(12),r=n(21),a=n(615),s=n(171),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u={top:"top",topleft:"topleft",topright:"topright",right:"right",righttop:"righttop",rightbottom:"rightbottom",bottom:"bottom",bottomleft:"bottomleft",bottomright:"bottomright",left:"left",lefttop:"lefttop",leftbottom:"leftbottom",auto:"auto"},c={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["class","style"]};t.a={props:{target:{type:[String,Object,a.a,Function]},delay:{type:[Number,Object,String],default:0},offset:{type:[Number,String],default:0},noFade:{type:Boolean,default:!1},container:{type:String,default:null},boundary:{type:[String,Object],default:"scrollParent"},show:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},watch:{show:function(e,t){e!==t&&(e?this.onOpen():this.onClose())},disabled:function(e,t){e!==t&&(e?this.onDisable():this.onEnable())}},created:function(){this._toolpop=null,this._obs_title=null,this._obs_content=null},mounted:function(){var e=this;this.$nextTick(function(){e.createToolpop()&&(e.disabled&&e.onDisable(),e.$on("open",e.onOpen),e.$on("close",e.onClose),e.$on("disable",e.onDisable),e.$on("enable",e.onEnable),e.setObservers(!0),e.show&&e.onOpen())})},updated:function(){this._toolpop&&this._toolpop.updateConfig(this.getConfig())},activated:function(){this.setObservers(!0)},deactivated:function(){this._toolpop&&(this.setObservers(!1),this._toolpop.hide())},beforeDestroy:function(){this.$off("open",this.onOpen),this.$off("close",this.onClose),this.$off("disable",this.onDisable),this.$off("enable",this.onEnable),this.setObservers(!1),this.bringItBack(),this._toolpop&&(this._toolpop.destroy(),this._toolpop=null)},computed:{baseConfig:function(){var e=this.container,t="object"===l(this.delay)?this.delay:parseInt(this.delay,10)||0;return{title:(this.title||"").trim()||"",content:(this.content||"").trim()||"",placement:u[this.placement]||"auto",container:!!e&&(/^#/.test(e)?e:"#"+e),boundary:this.boundary,delay:t||0,offset:this.offset||0,animation:!this.noFade,trigger:Object(i.d)(this.triggers)?this.triggers.join(" "):this.triggers,callbacks:{show:this.onShow,shown:this.onShown,hide:this.onHide,hidden:this.onHidden,enabled:this.onEnabled,disabled:this.onDisabled}}}},methods:{getConfig:function(){var e=Object(o.a)({},this.baseConfig);return this.$refs.title&&this.$refs.title.innerHTML.trim()&&(e.title=this.$refs.title,e.html=!0),this.$refs.content&&this.$refs.content.innerHTML.trim()&&(e.content=this.$refs.content,e.html=!0),e},onOpen:function(){this._toolpop&&this._toolpop.show()},onClose:function(e){this._toolpop?this._toolpop.hide(e):"function"==typeof e&&e()},onDisable:function(){this._toolpop&&this._toolpop.disable()},onEnable:function(){this._toolpop&&this._toolpop.enable()},updatePosition:function(){this._toolpop&&this._toolpop.update()},getTarget:function(){var e=this.target;return"function"==typeof e&&(e=e()),"string"==typeof e?Object(r.g)(e):"object"===(void 0===e?"undefined":l(e))&&Object(r.l)(e.$el)?e.$el:"object"===(void 0===e?"undefined":l(e))&&Object(r.l)(e)?e:null},onShow:function(e){this.$emit("show",e)},onShown:function(e){this.setObservers(!0),this.$emit("update:show",!0),this.$emit("shown",e)},onHide:function(e){this.$emit("hide",e)},onHidden:function(e){this.setObservers(!1),this.bringItBack(),this.$emit("update:show",!1),this.$emit("hidden",e)},onEnabled:function(e){e&&"enabled"===e.type&&(this.$emit("update:disabled",!1),this.$emit("disabled"))},onDisabled:function(e){e&&"disabled"===e.type&&(this.$emit("update:disabled",!0),this.$emit("enabled"))},bringItBack:function(){this.$el&&this.$refs.title&&this.$el.appendChild(this.$refs.title),this.$el&&this.$refs.content&&this.$el.appendChild(this.$refs.content)},setObservers:function(e){e?(this.$refs.title&&(this._obs_title=Object(s.a)(this.$refs.title,this.updatePosition.bind(this),c)),this.$refs.content&&(this._obs_content=Object(s.a)(this.$refs.content,this.updatePosition.bind(this),c))):(this._obs_title&&(this._obs_title.disconnect(),this._obs_title=null),this._obs_content&&(this._obs_content.disconnect(),this._obs_content=null))}}}},function(e,t,n){"use strict";t.a={render:function(e){var t=e(!1);return this.$slots.default?t=this.$slots.default:this.label?t=e("span",{domProps:{innerHTML:this.label}}):this.computedShowProgress?t=this.progress.toFixed(this.computedPrecision):this.computedShowValue&&(t=this.value.toFixed(this.computedPrecision)),e("div",{class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":this.computedMax.toString(),"aria-valuenow":this.value.toFixed(this.computedPrecision)}},[t])},computed:{progressBarClasses:function(){return["progress-bar",this.computedVariant?"bg-"+this.computedVariant:"",this.computedStriped||this.computedAnimated?"progress-bar-striped":"",this.computedAnimated?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.value/this.computedMax*100+"%"}},progress:function(){var e=Math.pow(10,this.computedPrecision);return Math.round(100*e*this.value/this.computedMax)/e},computedMax:function(){return"number"==typeof this.max?this.max:this.$parent.max||100},computedVariant:function(){return this.variant||this.$parent.variant},computedPrecision:function(){return"number"==typeof this.precision?this.precision:this.$parent.precision||0},computedStriped:function(){return"boolean"==typeof this.striped?this.striped:this.$parent.striped||!1},computedAnimated:function(){return"boolean"==typeof this.animated?this.animated:this.$parent.animated||!1},computedShowProgress:function(){return"boolean"==typeof this.showProgress?this.showProgress:this.$parent.showProgress||!1},computedShowValue:function(){return"boolean"==typeof this.showValue?this.showValue:this.$parent.showValue||!1}},props:{value:{type:Number,default:0},label:{type:String,default:null},max:{type:Number,default:null},precision:{type:Number,default:null},variant:{type:String,default:null},striped:{type:Boolean,default:null},animated:{type:Boolean,default:null},showProgress:{type:Boolean,default:null},showValue:{type:Boolean,default:null}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(364),r=i(o),a=n(3),s=(i(a),{render:function(){return function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"rule"},[n("span",{staticClass:"rule-display"},[e._v(e._s(e.title)+"\n ")]),e._v(" "),e.rule.warn?n("span",{staticClass:"rule-warning"},[e._v("\n "+e._s(e.rule.warn)+"\n ")]):e._e(),e._v(" "),e.rule.error?n("span",{staticClass:"rule-error"},[n("span",{staticClass:"alert-message"},[e._v(e._s(e.rule.error))])]):e._e()])}.call(this)},props:{rule:{required:!0,type:Object},colHeaders:{type:Array,required:!1}},computed:{title:function(){var e=this.rule.type;return r.default.RULES[e].display(this.rule,this.colHeaders)}},methods:{}}),l={render:function(){return function(){var e=this,t=e.$createElement;return(e._self._c||t)("li",{staticClass:"rule",attrs:{title:e.help}},[e._v("\n Set "+e._s(e.columnsLabel)+" as "+e._s(e.typeDisplay)+"\n ")])}.call(this)},props:{type:{type:String,required:!0},columns:{required:!0},colHeaders:{type:Array,required:!0}},computed:{typeDisplay:function(){return r.default.MAPPING_TARGETS[this.type].label},help:function(){return r.default.MAPPING_TARGETS[this.type].help||""},columnsLabel:function(){return r.default.columnDisplay(this.columns,this.colHeaders)}}};t.default={data:function(){return{}},computed:{mapping:function(){return this.inputRules?this.inputRules.mapping:[]},rules:function(){return this.inputRules?this.inputRules.rules:[]},columnData:function(){var e=[];return{colHeadersPerRule:e,columns:r.default.applyRules([],[],[],this.rules,e).columns}},colHeaders:function(){var e=this.columnData.columns;return r.default.colHeadersFor([],e)}},props:{inputRules:{required:!1,type:Object}},components:{RuleDisplayPreview:s,IdentifierDisplayPreview:l}}},,,,,,,,,,,,,,,,,,function(e,t,n){n(415),n(0),n(416),n(225),n(162),n(163),n(164),n(149),n(165),n(166),n(417),n(69),n(226),n(418),n(150),n(193),n(419),n(40),n(1),n(2),n(20),n(227),n(228),n(168),e.exports=n(421)},function(e,t,n){"use strict";(function(e){!function(){window.console=window.console||{log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},assert:function(){}},Object.assign=Object.assign||e.extend;for(var t=0,n=["ms","moz","webkit","o"],i=0;i<n.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[n[i]+"RequestAnimationFrame"],window.cancelRequestAnimationFrame=window[n[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,n){var i=(new Date).getTime(),o=Math.max(0,16-(i-t)),r=window.setTimeout(function(){e(i+o)},o);return t=i+o,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)});var o=[{name:"canvas",compatible:function(){return window.CanvasRenderingContext2D}},{name:"sessionStorage",compatible:function(){try{return window.sessionStorage.length>=0}catch(e){}return!1}}],r=o.filter(function(e){return!e.compatible()}).map(function(e){return e.name});if(r.length){var a=document.querySelectorAll('link[rel="index"]').item(0);a&&(window.location=a.href+"static/incompatible-browser.html"),console.log("incompatible browser:\n"+r.join("\n"))}}()}).call(t,n(1))},function(e,t,n){(function(e){/*!
* jQuery Migrate - v1.4.1 - 2016-05-19
* Copyright jQuery Foundation and other contributors
*/
define("mvc/rules/rule-definitions",["exports","utils/localization","pyre-to-regexp"],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0});var a=r(t),o=r(n),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(e,t){if(0==e.length)return"no columns";if(1==e.length)return"column "+t[e[0]];var n=e.map(function(e){return t[e]});return"columns "+[n.slice(0,-1).join(", "),n.slice(-1)[0]].join(" and ")},i=function(e,t){var n=[];for(var r in e)-1===t.indexOf(r)&&n.push(e[r]);return n},d=function(e,t,n,r,a){var u=void 0;try{u=(0,o.default)(String(e))}catch(e){return{error:"Invalid regular expression specified."}}var l=0;return n=n.map(function(e){var n=e[t],o=u.exec(n);return o?r?e.concat([u.pyreReplace(o[0],r)]):(a=a&&parseInt(a))?o.length!=a+1?(l++,null):e.concat(o.splice(1,o.length)):e.concat([o[0]]):(l++,null)}),l>0?{error:l+" row(s) failed to match specified regular expression."}:{data:n}},s=function(e,t){return t.reduce(function(t,n){return t.concat(e(n))},[])},c={add_column_basename:{title:(0,a.default)("Basename of Path of URL"),display:function(e,t){return"Add column using basename of column "+t[e.target_column]},init:function(e,t){e.addColumnBasenameTarget=t?t.target_column:0},save:function(e,t){t.target_column=e.addColumnBasenameTarget},apply:function(e,t,n,r){var a=e.target_column,o=d("[^/]*$",a,t);return r.push("new"),o.columns=r,o}},add_column_rownum:{title:(0,a.default)("Row Number"),display:function(e,t){return"Add column for the current row number."},init:function(e,t){e.addColumnRownumStart=t?t.start:1},save:function(e,t){t.start=parseInt(e.addColumnRownumStart)},apply:function(e,t,n,r){var a=e.start;return t=t.map(function(e){var t=e.slice();return t.push(String(a)),a+=1,t}),r.push("new"),{data:t,columns:r}}},add_column_value:{title:(0,a.default)("Fixed Value"),display:function(e,t){return"Add column for the constant value of "+e.value+"."},init:function(e,t){e.addColumnValue=t?t.value:""},save:function(e,t){t.value=e.addColumnValue},apply:function(e,t,n,r){var a=e.value;return t=t.map(function(e){var t=e.slice();return t.push(a),t}),r.push("new"),{data:t,columns:r}}},add_column_metadata:{title:(0,a.default)("Add Column from Metadata"),display:function(e,t){return"Add column for "+e.value+"."},init:function(e,t){e.addColumnMetadataValue=t?t.value:null},save:function(e,t){t.value=e.addColumnMetadataValue},apply:function(e,t,n,r){var a=e.value,o=void 0;if(a.startsWith("identifier")){var u=parseInt(a.substring("identifier".length));o=function(e,t){var r=e.slice();return r.push(n[t].identifiers[u]),r}}else{if("hid"!=a&&"name"!=a&&"path"!=a)return{error:"Unknown metadata type ["+a+"}]"};o=function(e,t){var r=e.slice();return r.push(n[t][a]),r}}return t=t.map(o),r.push("new"),{data:t,columns:r}}},add_column_regex:{title:(0,a.default)("Using a Regular Expression"),display:function(e,t){return"Add new column using "+e.expression+" applied to column "+t[e.target_column]},init:function(e,t){t?(e.addColumnRegexTarget=t.target_column,e.addColumnRegexExpression=t.expression,e.addColumnRegexReplacement=t.replacement,e.addColumnRegexGroupCount=t.group_count):(e.addColumnRegexTarget=0,e.addColumnRegexExpression="",e.addColumnRegexReplacement=null,e.addColumnRegexGroupCount=null);var n="global";e.addColumnRegexGroupCount?n="groups":e.addColumnRegexReplacement&&(n="replacement"),e.addColumnRegexType=n},save:function(e,t){t.target_column=e.addColumnRegexTarget,t.expression=e.addColumnRegexExpression,e.addColumnRegexReplacement&&(t.replacement=e.addColumnRegexReplacement),e.addColumnRegexGroupCount&&(t.group_count=e.addColumnRegexGroupCount)},apply:function(e,t,n,r){var a=e.target_column,o=d(e.expression,a,t,e.replacement,e.group_count);return r.push("new"),o.columns=r,o}},add_column_concatenate:{title:(0,a.default)("Concatenate Columns"),display:function(e,t){return"Concatenate column "+t[e.target_column_0]+" and column "+t[e.target_column_1]},init:function(e,t){t?(e.addColumnConcatenateTarget0=t.target_column_0,e.addColumnConcatenateTarget1=t.target_column_1):(e.addColumnConcatenateTarget0=0,e.addColumnConcatenateTarget1=0)},save:function(e,t){t.target_column_0=e.addColumnConcatenateTarget0,t.target_column_1=e.addColumnConcatenateTarget1},apply:function(e,t,n,r){var a=e.target_column_0,o=e.target_column_1;return t=t.map(function(e){var t=e.slice();return t.push(e[a]+e[o]),t}),r.push("new"),{data:t,columns:r}}},add_column_substr:{title:(0,a.default)("Keep or Trim Prefix or Suffix"),display:function(e,t){var n=e.substr_type,r=void 0;return r="keep_prefix"==n?"Keep only "+e.length+" characters from the start of column "+t[e.target_column]:"drop_prefix"==n?"Remove "+e.length+" characters from the start of column "+t[e.target_column]:"keep_suffix"==n?"Keep only "+e.length+" characters from the end of column "+t[e.target_column]:"Remove "+e.length+" characters from the end of column "+t[e.target_column],r},init:function(e,t){t?(e.addColumnSubstrTarget=t.target_column,e.addColumnSubstrLength=t.length,e.addColumnSubstrType=t.substr_type):(e.addColumnSubstrTarget=0,e.addColumnSubstrType="keep_prefix",e.addColumnSubstrLength=1)},save:function(e,t){t.target_column=e.addColumnSubstrTarget,t.length=e.addColumnSubstrLength,t.substr_type=e.addColumnSubstrType},apply:function(e,t,n,r){var a=e.target_column,o=e.length,u=e.substr_type;return t=t.map(function(e){var t=e.slice(),n=e[a],r=0,l=n.length;return"keep_prefix"==u?l=o:"drop_prefix"==u?r=o:"keep_suffix"==u?(r=l-o)<0&&(r=0):(l-=o)<0&&(l=0),t.push(n.substr(r,l)),t}),r.push("new"),{data:t}}},remove_columns:{title:(0,a.default)("Remove Column(s)"),display:function(e,t){var n=e.target_columns;return"Remove "+l(n,t)},init:function(e,t){e.removeColumnTargets=t?t.target_columns:[]},save:function(e,t){t.target_columns=e.removeColumnTargets},apply:function(e,t,n,r){var a=e.target_columns;return t=t.map(function(e){var t=[];for(var n in e)-1==a.indexOf(parseInt(n))&&t.push(e[n]);return t}),r=i(r,a),{data:t,columns:r}}},add_filter_regex:{title:(0,a.default)("Using a Regular Expression"),display:function(e,t){return"Filter rows using regular expression "+e.expression+" on column "+t[e.target_column]},init:function(e,t){t?(e.addFilterRegexTarget=t.target_column,e.addFilterRegexExpression=t.expression,e.addFilterRegexInvert=t.invert):(e.addFilterRegexTarget=0,e.addFilterRegexExpression="",e.addFilterRegexInvert=!1)},save:function(e,t){t.target_column=e.addFilterRegexTarget,t.expression=e.addFilterRegexExpression,t.invert=e.addFilterRegexInvert},apply:function(e,t,n,r){var a,u=String(e.expression);try{a=(0,o.default)(u)}catch(e){return{error:"Invalid regular expression specified."}}var l=e.target_column,i=e.invert,d=function(e,n){var r=t[parseInt(n)];return a.exec(r[l])?!i:i};return n=n.filter(d),t=t.filter(d),{data:t,sources:n}}},add_filter_count:{title:(0,a.default)("First or Last N Rows"),display:function(e,t){var n=e.which,r=e.invert;return"first"!=n||r?"first"==n&&r?"Keep only first "+e.count+" row(s).":"last"!=n||r?"Keep only last "+e.count+" row(s).":"Filter out last "+e.count+" row(s).":"Filter out first "+e.count+" row(s)."},init:function(e,t){t?(e.addFilterCountN=t.count,e.addFilterCountWhich=t.which,e.addFilterCountInvert=t.inverse):(e.addFilterCountN=0,e.addFilterCountWhich="first",e.addFilterCountInvert=!1)},save:function(e,t){t.count=e.addFilterCountN,t.which=e.addFilterCountWhich,t.invert=e.addFilterCountInvert},apply:function(e,t,n,r){var a=e.count,o=e.invert,u=e.which,l=t.length,i=function(e,t){return("first"==u?t>=a:t<l-a)?!o:o};return n=n.filter(i),t=t.filter(i),{data:t,sources:n}}},add_filter_empty:{title:(0,a.default)("On Emptiness"),display:function(e,t){return"Filter rows if no value for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterEmptyTarget=t.target_column,e.addFilterEmptyInvert=t.invert):(e.addFilterEmptyTarget=0,e.addFilterEmptyInvert=!1)},save:function(e,t){t.target_column=e.addFilterEmptyTarget,t.invert=e.addFilterEmptyInvert},apply:function(e,t,n,r){var a=e.target_column,o=e.invert,u=function(e,n){return t[parseInt(n)][a].length?!o:o};return n=n.filter(u),t=t.filter(u),{data:t,sources:n}}},add_filter_matches:{title:(0,a.default)("Matching a Supplied Value"),display:function(e,t){return"Filter rows with value "+e.value+" for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterMatchesTarget=t.target_column,e.addFilterMatchesValue=t.value,e.addFilterMatchesInvert=t.invert):(e.addFilterMatchesTarget=0,e.addFilterMatchesValue="",e.addFilterMatchesInvert=!1)},save:function(e,t){t.target_column=e.addFilterMatchesTarget,t.value=e.addFilterMatchesValue,t.invert=e.addFilterMatchesInvert},apply:function(e,t,n,r){var a=e.target_column,o=e.invert,u=e.value,l=function(e,n){return t[parseInt(n)][a]==u?!o:o};return n=n.filter(l),t=t.filter(l),{data:t,sources:n}}},add_filter_compare:{title:(0,a.default)("By Comparing to a Numeric Value"),display:function(e,t){return"Filter rows with value "+e.compare_type+" "+e.value+" for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterCompareTarget=t.target_column,e.addFilterCompareValue=t.value,e.addFilterCompareType=t.compare_type):(e.addFilterCompareTarget=0,e.addFilterCompareValue=0,e.addFilterCompareType="less_than")},save:function(e,t){t.target_column=e.addFilterCompareTarget,t.value=e.addFilterCompareValue,t.compare_type=e.addFilterCompareType},apply:function(e,t,n,r){var a=e.target_column,o=e.compare_type,u=e.value,l=function(e,n){var r=t[parseInt(n)],l=parseFloat(r[a]),i=void 0;return"less_than"==o?i=l<u:"less_than_equal"==o?i=l<=u:"greater_than"==o?i=l>u:"greater_than_equal"==o&&(i=l>=u),i};return n=n.filter(l),t=t.filter(l),{data:t,sources:n}}},sort:{title:(0,a.default)("Sort"),display:function(e,t){return"Sort on column "+t[e.target_column]},init:function(e,t){t?(e.addSortingTarget=t.target_column,e.addSortingNumeric=t.numeric):(e.addSortingTarget=0,e.addSortingNumeric=!1)},save:function(e,t){t.target_column=e.addSortingTarget,t.numeric=e.addSortingNumeric},apply:function(e,t,n,r){var a=e.target_column,o=e.numeric,u=_.zip(t,n);u.sort(function(e,t){var n=e[0][a],r=t[0][a];return o&&(n=parseFloat(n),r=parseFloat(r)),n<r?-1:r<n?1:0});var l=[],i=[];return u.map(function(e){l.push(e[0]),i.push(e[1])}),{data:l,sources:i}}},swap_columns:{title:(0,a.default)("Swap Column(s)"),display:function(e,t){return"Swap "+l([e.target_column_0,e.target_column_1],t)},init:function(e,t){t?(e.swapColumnsTarget0=t.target_column_0,e.swapColumnsTarget1=t.target_column_1):(e.swapColumnsTarget0=0,e.swapColumnsTarget1=0)},save:function(e,t){t.target_column_0=e.swapColumnsTarget0,t.target_column_1=e.swapColumnsTarget1},apply:function(e,t,n,r){var a=e.target_column_0,o=e.target_column_1;t=t.map(function(e){var t=e.slice();return t[a]=e[o],t[o]=e[a],t});var u=r[a];return r[a]=r[o],r[o]=u,{data:t,columns:r}}},split_columns:{title:(0,a.default)("Split Column(s)"),display:function(e,t){return"Duplicate each row and split up columns"},init:function(e,t){t?(e.splitColumnsTargets0=t.target_columns_0,e.splitColumnsTargets1=t.target_columns_1):(e.splitColumnsTargets0=[],e.splitColumnsTargets1=[])},save:function(e,t){t.target_columns_0=e.splitColumnsTargets0,t.target_columns_1=e.splitColumnsTargets1},apply:function(e,t,n,r){var a=e.target_columns_0,o=e.target_columns_1;return t=s(function(e){var t=[],n=[];for(var r in e)r=parseInt(r),a.indexOf(r)>-1?t.push(e[r]):o.indexOf(r)>-1?n.push(e[r]):(t.push(e[r]),n.push(e[r]));return[t,n]},t),n=s(function(e){return[e,e]},n),r=i(r,a),{data:t,sources:n,columns:r}}}},m={list_identifiers:{multiple:!0,label:(0,a.default)("List Identifier(s)"),columnHeader:(0,a.default)("List Identifier"),help:(0,a.default)("This should be a short description of the replicate, sample name, condition, etc... that describes each level of the list structure."),importType:"collections"},paired_identifier:{label:(0,a.default)("Paired-end Indicator"),columnHeader:(0,a.default)("Paired Indicator"),help:(0,a.default)("This should be set to '1', 'R1', 'forward', 'f', or 'F' to indicate forward reads, and '2', 'r', 'reverse', 'R2', 'R', or 'R2' to indicate reverse reads."),importType:"collections"},collection_name:{label:(0,a.default)("Collection Name"),help:(0,a.default)("If this is set, all rows with the same collection name will be joined into a collection and it is possible to create multiple collections at once."),modes:["raw","ftp","datasets","library_datasets"],importType:"collections"},name:{label:(0,a.default)("Name"),importType:"datasets"},dbkey:{label:(0,a.default)("Genome"),modes:["raw","ftp"]},file_type:{label:(0,a.default)("Type"),modes:["raw","ftp"],help:(0,a.default)("This should be the Galaxy file type corresponding to this file.")},url:{label:(0,a.default)("URL"),modes:["raw"],help:(0,a.default)("This should be a URL the file can be downloaded from.")},info:{label:(0,a.default)("Info"),help:(0,a.default)("Unstructured text associated with the dataset that shows up in the history panel, this is optional and can be whatever you would like."),modes:["raw","ftp"]},ftp_path:{label:(0,a.default)("FTP Path"),modes:["raw","ftp"],help:(0,a.default)("This should be the path to the target file to include relative to your FTP directory on the Galaxy server"),requiresFtp:!0}},p=function(e,t){return 0==e.length?t?t.map(function(e,t){return String.fromCharCode(65+t)}):[]:e[0].map(function(e,t){return String.fromCharCode(65+t)})};e.default={applyRules:function(e,t,n,r,o){var o=o||[],u=!1;for(var l in r){var i=p(e,n);o[l]=i;var d=r[l];if(d.error=null,d.warn=null,u)d.warn=(0,a.default)("Skipped due to previous errors.");else{var s=d.type,m=c[s].apply(d,e,t,n);m.error?(u=!0,d.error=m.error):(m.warn&&(d.warn=m.warn),e=m.data||e,t=m.sources||t,n=m.columns||n)}}return{data:e,sources:t,columns:n}},columnDisplay:function(e,t){var n=void 0;return 2==(n="object"==(void 0===e?"undefined":u(e))?e.map(function(e){return t[e]}):[t[e]]).length?"columns "+n[0]+" and "+n[1]:n.length>2?"columns "+n.slice(0,-1).join(", ")+", and "+n[n.length-1]:"column "+n[0]},colHeadersFor:p,RULES:c,MAPPING_TARGETS:m}});
define("mvc/rules/rule-definitions",["exports","utils/localization","pyre-to-regexp"],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0});var a=r(t),o=r(n),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(e,t){if(0==e.length)return"no columns";if(1==e.length)return"column "+t[e[0]];var n=e.map(function(e){return t[e]});return"columns "+[n.slice(0,-1).join(", "),n.slice(-1)[0]].join(" and ")},i=function(e,t){var n=[];for(var r in e)-1===t.indexOf(r)&&n.push(e[r]);return n},d=function(e,t,n,r,a){var u=void 0;try{u=(0,o.default)(String(e))}catch(e){return{error:"Invalid regular expression specified."}}var l=0;return n=n.map(function(e){var n=e[t],o=u.exec(n);return o?r?e.concat([u.pyreReplace(o[0],r)]):(a=a&&parseInt(a))?o.length!=a+1?(l++,null):e.concat(o.splice(1,o.length)):e.concat([o[0]]):(l++,null)}),l>0?{error:l+" row(s) failed to match specified regular expression."}:{data:n}},s=function(e,t){return t.reduce(function(t,n){return t.concat(e(n))},[])},c={add_column_basename:{title:(0,a.default)("Basename of Path of URL"),display:function(e,t){return"Add column using basename of column "+t[e.target_column]},init:function(e,t){e.addColumnBasenameTarget=t?t.target_column:0},save:function(e,t){t.target_column=e.addColumnBasenameTarget},apply:function(e,t,n,r){var a=e.target_column,o=d("[^/]*$",a,t);return r.push("new"),o.columns=r,o}},add_column_rownum:{title:(0,a.default)("Row Number"),display:function(e,t){return"Add column for the current row number."},init:function(e,t){e.addColumnRownumStart=t?t.start:1},save:function(e,t){t.start=parseInt(e.addColumnRownumStart)},apply:function(e,t,n,r){var a=e.start;return t=t.map(function(e){var t=e.slice();return t.push(String(a)),a+=1,t}),r.push("new"),{data:t,columns:r}}},add_column_value:{title:(0,a.default)("Fixed Value"),display:function(e,t){return"Add column for the constant value of "+e.value+"."},init:function(e,t){e.addColumnValue=t?t.value:""},save:function(e,t){t.value=e.addColumnValue},apply:function(e,t,n,r){var a=e.value;return t=t.map(function(e){var t=e.slice();return t.push(a),t}),r.push("new"),{data:t,columns:r}}},add_column_metadata:{title:(0,a.default)("Add Column from Metadata"),display:function(e,t){return"Add column for "+e.value+"."},init:function(e,t){e.addColumnMetadataValue=t?t.value:null},save:function(e,t){t.value=e.addColumnMetadataValue},apply:function(e,t,n,r){var a=e.value,o=void 0;if(a.startsWith("identifier")){var u=parseInt(a.substring("identifier".length));o=function(e,t){var r=e.slice();return r.push(n[t].identifiers[u]),r}}else{if("hid"!=a&&"name"!=a&&"path"!=a)return{error:"Unknown metadata type ["+a+"}]"};o=function(e,t){var r=e.slice();return r.push(n[t][a]),r}}return t=t.map(o),r.push("new"),{data:t,columns:r}}},add_column_regex:{title:(0,a.default)("Using a Regular Expression"),display:function(e,t){return"Add new column using "+e.expression+" applied to column "+t[e.target_column]},init:function(e,t){t?(e.addColumnRegexTarget=t.target_column,e.addColumnRegexExpression=t.expression,e.addColumnRegexReplacement=t.replacement,e.addColumnRegexGroupCount=t.group_count):(e.addColumnRegexTarget=0,e.addColumnRegexExpression="",e.addColumnRegexReplacement=null,e.addColumnRegexGroupCount=null);var n="global";e.addColumnRegexGroupCount?n="groups":e.addColumnRegexReplacement&&(n="replacement"),e.addColumnRegexType=n},save:function(e,t){t.target_column=e.addColumnRegexTarget,t.expression=e.addColumnRegexExpression,e.addColumnRegexReplacement&&(t.replacement=e.addColumnRegexReplacement),e.addColumnRegexGroupCount&&(t.group_count=e.addColumnRegexGroupCount)},apply:function(e,t,n,r){var a=e.target_column,o=d(e.expression,a,t,e.replacement,e.group_count);return r.push("new"),o.columns=r,o}},add_column_concatenate:{title:(0,a.default)("Concatenate Columns"),display:function(e,t){return"Concatenate column "+t[e.target_column_0]+" and column "+t[e.target_column_1]},init:function(e,t){t?(e.addColumnConcatenateTarget0=t.target_column_0,e.addColumnConcatenateTarget1=t.target_column_1):(e.addColumnConcatenateTarget0=0,e.addColumnConcatenateTarget1=0)},save:function(e,t){t.target_column_0=e.addColumnConcatenateTarget0,t.target_column_1=e.addColumnConcatenateTarget1},apply:function(e,t,n,r){var a=e.target_column_0,o=e.target_column_1;return t=t.map(function(e){var t=e.slice();return t.push(e[a]+e[o]),t}),r.push("new"),{data:t,columns:r}}},add_column_substr:{title:(0,a.default)("Keep or Trim Prefix or Suffix"),display:function(e,t){var n=e.substr_type,r=void 0;return r="keep_prefix"==n?"Keep only "+e.length+" characters from the start of column "+t[e.target_column]:"drop_prefix"==n?"Remove "+e.length+" characters from the start of column "+t[e.target_column]:"keep_suffix"==n?"Keep only "+e.length+" characters from the end of column "+t[e.target_column]:"Remove "+e.length+" characters from the end of column "+t[e.target_column],r},init:function(e,t){t?(e.addColumnSubstrTarget=t.target_column,e.addColumnSubstrLength=t.length,e.addColumnSubstrType=t.substr_type):(e.addColumnSubstrTarget=0,e.addColumnSubstrType="keep_prefix",e.addColumnSubstrLength=1)},save:function(e,t){t.target_column=e.addColumnSubstrTarget,t.length=parseInt(e.addColumnSubstrLength),t.substr_type=e.addColumnSubstrType},apply:function(e,t,n,r){var a=e.target_column,o=e.length,u=e.substr_type;return t=t.map(function(e){var t=e.slice(),n=e[a],r=0,l=n.length;return"keep_prefix"==u?l=o:"drop_prefix"==u?r=o:"keep_suffix"==u?(r=l-o)<0&&(r=0):(l-=o)<0&&(l=0),t.push(n.substr(r,l)),t}),r.push("new"),{data:t}}},remove_columns:{title:(0,a.default)("Remove Column(s)"),display:function(e,t){var n=e.target_columns;return"Remove "+l(n,t)},init:function(e,t){e.removeColumnTargets=t?t.target_columns:[]},save:function(e,t){t.target_columns=e.removeColumnTargets},apply:function(e,t,n,r){var a=e.target_columns;return t=t.map(function(e){var t=[];for(var n in e)-1==a.indexOf(parseInt(n))&&t.push(e[n]);return t}),r=i(r,a),{data:t,columns:r}}},add_filter_regex:{title:(0,a.default)("Using a Regular Expression"),display:function(e,t){return"Filter rows using regular expression "+e.expression+" on column "+t[e.target_column]},init:function(e,t){t?(e.addFilterRegexTarget=t.target_column,e.addFilterRegexExpression=t.expression,e.addFilterRegexInvert=t.invert):(e.addFilterRegexTarget=0,e.addFilterRegexExpression="",e.addFilterRegexInvert=!1)},save:function(e,t){t.target_column=e.addFilterRegexTarget,t.expression=e.addFilterRegexExpression,t.invert=e.addFilterRegexInvert},apply:function(e,t,n,r){var a,u=String(e.expression);try{a=(0,o.default)(u)}catch(e){return{error:"Invalid regular expression specified."}}var l=e.target_column,i=e.invert,d=function(e,n){var r=t[parseInt(n)];return a.exec(r[l])?!i:i};return n=n.filter(d),t=t.filter(d),{data:t,sources:n}}},add_filter_count:{title:(0,a.default)("First or Last N Rows"),display:function(e,t){var n=e.which,r=e.invert;return"first"!=n||r?"first"==n&&r?"Keep only first "+e.count+" row(s).":"last"!=n||r?"Keep only last "+e.count+" row(s).":"Filter out last "+e.count+" row(s).":"Filter out first "+e.count+" row(s)."},init:function(e,t){t?(e.addFilterCountN=t.count,e.addFilterCountWhich=t.which,e.addFilterCountInvert=t.inverse):(e.addFilterCountN=0,e.addFilterCountWhich="first",e.addFilterCountInvert=!1)},save:function(e,t){t.count=e.addFilterCountN,t.which=e.addFilterCountWhich,t.invert=e.addFilterCountInvert},apply:function(e,t,n,r){var a=e.count,o=e.invert,u=e.which,l=t.length,i=function(e,t){return("first"==u?t>=a:t<l-a)?!o:o};return n=n.filter(i),t=t.filter(i),{data:t,sources:n}}},add_filter_empty:{title:(0,a.default)("On Emptiness"),display:function(e,t){return"Filter rows if no value for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterEmptyTarget=t.target_column,e.addFilterEmptyInvert=t.invert):(e.addFilterEmptyTarget=0,e.addFilterEmptyInvert=!1)},save:function(e,t){t.target_column=e.addFilterEmptyTarget,t.invert=e.addFilterEmptyInvert},apply:function(e,t,n,r){var a=e.target_column,o=e.invert,u=function(e,n){return t[parseInt(n)][a].length?!o:o};return n=n.filter(u),t=t.filter(u),{data:t,sources:n}}},add_filter_matches:{title:(0,a.default)("Matching a Supplied Value"),display:function(e,t){return"Filter rows with value "+e.value+" for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterMatchesTarget=t.target_column,e.addFilterMatchesValue=t.value,e.addFilterMatchesInvert=t.invert):(e.addFilterMatchesTarget=0,e.addFilterMatchesValue="",e.addFilterMatchesInvert=!1)},save:function(e,t){t.target_column=e.addFilterMatchesTarget,t.value=e.addFilterMatchesValue,t.invert=e.addFilterMatchesInvert},apply:function(e,t,n,r){var a=e.target_column,o=e.invert,u=e.value,l=function(e,n){return t[parseInt(n)][a]==u?!o:o};return n=n.filter(l),t=t.filter(l),{data:t,sources:n}}},add_filter_compare:{title:(0,a.default)("By Comparing to a Numeric Value"),display:function(e,t){return"Filter rows with value "+e.compare_type+" "+e.value+" for column "+t[e.target_column]},init:function(e,t){t?(e.addFilterCompareTarget=t.target_column,e.addFilterCompareValue=t.value,e.addFilterCompareType=t.compare_type):(e.addFilterCompareTarget=0,e.addFilterCompareValue=0,e.addFilterCompareType="less_than")},save:function(e,t){t.target_column=e.addFilterCompareTarget,t.value=e.addFilterCompareValue,t.compare_type=e.addFilterCompareType},apply:function(e,t,n,r){var a=e.target_column,o=e.compare_type,u=e.value,l=function(e,n){var r=t[parseInt(n)],l=parseFloat(r[a]),i=void 0;return"less_than"==o?i=l<u:"less_than_equal"==o?i=l<=u:"greater_than"==o?i=l>u:"greater_than_equal"==o&&(i=l>=u),i};return n=n.filter(l),t=t.filter(l),{data:t,sources:n}}},sort:{title:(0,a.default)("Sort"),display:function(e,t){return"Sort on column "+t[e.target_column]},init:function(e,t){t?(e.addSortingTarget=t.target_column,e.addSortingNumeric=t.numeric):(e.addSortingTarget=0,e.addSortingNumeric=!1)},save:function(e,t){t.target_column=e.addSortingTarget,t.numeric=e.addSortingNumeric},apply:function(e,t,n,r){var a=e.target_column,o=e.numeric,u=_.zip(t,n);u.sort(function(e,t){var n=e[0][a],r=t[0][a];return o&&(n=parseFloat(n),r=parseFloat(r)),n<r?-1:r<n?1:0});var l=[],i=[];return u.map(function(e){l.push(e[0]),i.push(e[1])}),{data:l,sources:i}}},swap_columns:{title:(0,a.default)("Swap Column(s)"),display:function(e,t){return"Swap "+l([e.target_column_0,e.target_column_1],t)},init:function(e,t){t?(e.swapColumnsTarget0=t.target_column_0,e.swapColumnsTarget1=t.target_column_1):(e.swapColumnsTarget0=0,e.swapColumnsTarget1=0)},save:function(e,t){t.target_column_0=e.swapColumnsTarget0,t.target_column_1=e.swapColumnsTarget1},apply:function(e,t,n,r){var a=e.target_column_0,o=e.target_column_1;t=t.map(function(e){var t=e.slice();return t[a]=e[o],t[o]=e[a],t});var u=r[a];return r[a]=r[o],r[o]=u,{data:t,columns:r}}},split_columns:{title:(0,a.default)("Split Column(s)"),display:function(e,t){return"Duplicate each row and split up columns"},init:function(e,t){t?(e.splitColumnsTargets0=t.target_columns_0,e.splitColumnsTargets1=t.target_columns_1):(e.splitColumnsTargets0=[],e.splitColumnsTargets1=[])},save:function(e,t){t.target_columns_0=e.splitColumnsTargets0,t.target_columns_1=e.splitColumnsTargets1},apply:function(e,t,n,r){var a=e.target_columns_0,o=e.target_columns_1;return t=s(function(e){var t=[],n=[];for(var r in e)r=parseInt(r),a.indexOf(r)>-1?t.push(e[r]):o.indexOf(r)>-1?n.push(e[r]):(t.push(e[r]),n.push(e[r]));return[t,n]},t),n=s(function(e){return[e,e]},n),r=i(r,a),{data:t,sources:n,columns:r}}}},m={list_identifiers:{multiple:!0,label:(0,a.default)("List Identifier(s)"),columnHeader:(0,a.default)("List Identifier"),help:(0,a.default)("This should be a short description of the replicate, sample name, condition, etc... that describes each level of the list structure."),importType:"collections"},paired_identifier:{label:(0,a.default)("Paired-end Indicator"),columnHeader:(0,a.default)("Paired Indicator"),help:(0,a.default)("This should be set to '1', 'R1', 'forward', 'f', or 'F' to indicate forward reads, and '2', 'r', 'reverse', 'R2', 'R', or 'R2' to indicate reverse reads."),importType:"collections"},collection_name:{label:(0,a.default)("Collection Name"),help:(0,a.default)("If this is set, all rows with the same collection name will be joined into a collection and it is possible to create multiple collections at once."),modes:["raw","ftp","datasets","library_datasets"],importType:"collections"},name:{label:(0,a.default)("Name"),importType:"datasets"},dbkey:{label:(0,a.default)("Genome"),modes:["raw","ftp"]},file_type:{label:(0,a.default)("Type"),modes:["raw","ftp"],help:(0,a.default)("This should be the Galaxy file type corresponding to this file.")},url:{label:(0,a.default)("URL"),modes:["raw"],help:(0,a.default)("This should be a URL the file can be downloaded from.")},info:{label:(0,a.default)("Info"),help:(0,a.default)("Unstructured text associated with the dataset that shows up in the history panel, this is optional and can be whatever you would like."),modes:["raw","ftp"]},ftp_path:{label:(0,a.default)("FTP Path"),modes:["raw","ftp"],help:(0,a.default)("This should be the path to the target file to include relative to your FTP directory on the Galaxy server"),requiresFtp:!0}},p=function(e,t){return 0==e.length?t?t.map(function(e,t){return String.fromCharCode(65+t)}):[]:e[0].map(function(e,t){return String.fromCharCode(65+t)})};e.default={applyRules:function(e,t,n,r,o){var o=o||[],u=!1;for(var l in r){var i=p(e,n);o[l]=i;var d=r[l];if(d.error=null,d.warn=null,u)d.warn=(0,a.default)("Skipped due to previous errors.");else{var s=d.type,m=c[s].apply(d,e,t,n);m.error?(u=!0,d.error=m.error):(m.warn&&(d.warn=m.warn),e=m.data||e,t=m.sources||t,n=m.columns||n)}}return{data:e,sources:t,columns:n}},columnDisplay:function(e,t){var n=void 0;return 2==(n="object"==(void 0===e?"undefined":u(e))?e.map(function(e){return t[e]}):[t[e]]).length?"columns "+n[0]+" and "+n[1]:n.length>2?"columns "+n.slice(0,-1).join(", ")+", and "+n[n.length-1]:"column "+n[0]},colHeadersFor:p,RULES:c,MAPPING_TARGETS:m}});
//# sourceMappingURL=../../../maps/mvc/rules/rule-definitions.js.map
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment