New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

politico-assets

Package Overview
Dependencies
Maintainers
2
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

politico-assets - npm Package Compare versions

Comparing version 0.2.15 to 0.2.16

4

js/lc.min.js

@@ -1,2 +0,2 @@

!function(t){function e(s){if(i[s])return i[s].exports;var a=i[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,s){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=3)}([function(t,e,i){var s,a,o;/*!
!function(t){function e(s){if(i[s])return i[s].exports;var a=i[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,s){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,i){var s,a,n;/*!
* Datepicker v@VERSION

@@ -10,2 +10,2 @@ * https://github.com/fengyuanchen/datepicker

*/
!function(n){a=[i(4)],s=n,void 0!==(o="function"==typeof s?s.apply(e,a):s)&&(t.exports=o)}(function(t){"use strict";function e(t){return D.call(t).slice(8,-1).toLowerCase()}function i(t){return"string"==typeof t}function s(t){return"number"==typeof t&&!isNaN(t)}function a(t){return void 0===t}function o(t){return"date"===e(t)}function n(t,e){var i=[];return Array.from?Array.from(t).slice(e||0):(s(e)&&i.push(e),i.slice.apply(t,i))}function r(t,e){var i=n(arguments,2);return function(){return t.apply(e,i.concat(n(arguments)))}}function l(t){return t%4==0&&t%100!=0||t%400==0}function h(t,e){return[31,l(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}function c(t){var e,i,s=String(t).toLowerCase(),a=s.match(v);if(!a||0===a.length)throw new Error("Invalid date format.");for(t={source:s,parts:a},e=a.length,i=0;i<e;i++)switch(a[i]){case"dd":case"d":t.hasDay=!0;break;case"mm":case"m":t.hasMonth=!0;break;case"yyyy":case"yy":t.hasYear=!0}return t}function d(e,i){i=t.isPlainObject(i)?i:{},i.language&&(i=t.extend({},d.LANGUAGES[i.language],i)),this.$element=t(e),this.options=t.extend({},d.DEFAULTS,i),this.isBuilt=!1,this.isShown=!1,this.isInput=!1,this.isInline=!1,this.initialValue="",this.initialDate=null,this.startDate=null,this.endDate=null,this.init()}var u=t(window),p=window.document,f=t(p),g=window.Number,m="datepicker",y="click.datepicker",v=/(y|m|d)+/g,b=/^\d{2,4}$/,w=["datepicker-top-left","datepicker-top-right","datepicker-bottom-left","datepicker-bottom-right"].join(" "),k="datepicker-hide",x=Math.min,D=Object.prototype.toString;d.prototype={constructor:d,init:function(){var e=this.options,i=this.$element,s=e.startDate,a=e.endDate,o=e.date;this.$trigger=t(e.trigger),this.isInput=i.is("input")||i.is("textarea"),this.isInline=e.inline&&(e.container||!this.isInput),this.format=c(e.format),this.oldValue=this.initialValue=this.getValue(),o=this.parseDate(o||this.initialValue),s&&(s=this.parseDate(s),o.getTime()<s.getTime()&&(o=new Date(s)),this.startDate=s),a&&(a=this.parseDate(a),s&&a.getTime()<s.getTime()&&(a=new Date(s)),o.getTime()>a.getTime()&&(o=new Date(a)),this.endDate=a),this.date=o,this.viewDate=new Date(o),this.initialDate=new Date(this.date),this.bind(),(e.autoShow||this.isInline)&&this.show(),e.autoPick&&this.pick()},build:function(){var e,i=this.options,s=this.$element;this.isBuilt||(this.isBuilt=!0,this.$picker=e=t(i.template),this.$week=e.find('[data-view="week"]'),this.$yearsPicker=e.find('[data-view="years picker"]'),this.$yearsPrev=e.find('[data-view="years prev"]'),this.$yearsNext=e.find('[data-view="years next"]'),this.$yearsCurrent=e.find('[data-view="years current"]'),this.$years=e.find('[data-view="years"]'),this.$monthsPicker=e.find('[data-view="months picker"]'),this.$yearPrev=e.find('[data-view="year prev"]'),this.$yearNext=e.find('[data-view="year next"]'),this.$yearCurrent=e.find('[data-view="year current"]'),this.$months=e.find('[data-view="months"]'),this.$daysPicker=e.find('[data-view="days picker"]'),this.$monthPrev=e.find('[data-view="month prev"]'),this.$monthNext=e.find('[data-view="month next"]'),this.$monthCurrent=e.find('[data-view="month current"]'),this.$days=e.find('[data-view="days"]'),this.isInline?t(i.container||s).append(e.addClass("datepicker-inline")):(t(p.body).append(e.addClass("datepicker-dropdown")),e.addClass(k)),this.fillWeek())},unbuild:function(){this.isBuilt&&(this.isBuilt=!1,this.$picker.remove())},bind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.on("show.datepicker",e.show),t.isFunction(e.hide)&&i.on("hide.datepicker",e.hide),t.isFunction(e.pick)&&i.on("pick.datepicker",e.pick),this.isInput&&i.on("keyup.datepicker",t.proxy(this.keyup,this)),this.isInline||(e.trigger?this.$trigger.on(y,t.proxy(this.toggle,this)):this.isInput?i.on("focus.datepicker",t.proxy(this.show,this)):i.on(y,t.proxy(this.show,this)))},unbind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.off("show.datepicker",e.show),t.isFunction(e.hide)&&i.off("hide.datepicker",e.hide),t.isFunction(e.pick)&&i.off("pick.datepicker",e.pick),this.isInput&&i.off("keyup.datepicker",this.keyup),this.isInline||(e.trigger?this.$trigger.off(y,this.toggle):this.isInput?i.off("focus.datepicker",this.show):i.off(y,this.show))},showView:function(t){var e=this.$yearsPicker,i=this.$monthsPicker,s=this.$daysPicker,a=this.format;if(a.hasYear||a.hasMonth||a.hasDay)switch(g(t)){case 2:case"years":i.addClass(k),s.addClass(k),a.hasYear?(this.fillYears(),e.removeClass(k),this.place()):this.showView(0);break;case 1:case"months":e.addClass(k),s.addClass(k),a.hasMonth?(this.fillMonths(),i.removeClass(k),this.place()):this.showView(2);break;default:e.addClass(k),i.addClass(k),a.hasDay?(this.fillDays(),s.removeClass(k),this.place()):this.showView(1)}},hideView:function(){!this.isInline&&this.options.autoHide&&this.hide()},place:function(){if(!this.isInline){var t=this.options,e=this.$element,i=this.$picker,s=f.outerWidth(),a=f.outerHeight(),o=e.outerWidth(),n=e.outerHeight(),r=i.width(),l=i.height(),h=e.offset(),c=h.left,d=h.top,u=parseFloat(t.offset)||10,p="datepicker-top-left";d>l&&d+n+l>a?(d-=l+u,p="datepicker-bottom-left"):d+=n+u,c+r>s&&(c=c+o-r,p=p.replace("left","right")),i.removeClass(w).addClass(p).css({top:d,left:c,zIndex:parseInt(t.zIndex,10)})}},trigger:function(e,i){var s=t.Event(e,i);return this.$element.trigger(s),s},createItem:function(e){var i=this.options,s=i.itemTag,a={text:"",view:"",muted:!1,picked:!1,disabled:!1,highlighted:!1},o=[];return t.extend(a,e),a.muted&&o.push(i.mutedClass),a.highlighted&&o.push(i.highlightedClass),a.picked&&o.push(i.pickedClass),a.disabled&&o.push(i.disabledClass),"<"+s+' class="'+o.join(" ")+'"'+(a.view?' data-view="'+a.view+'"':"")+">"+a.text+"</"+s+">"},fillAll:function(){this.fillYears(),this.fillMonths(),this.fillDays()},fillWeek:function(){var e,i=this.options,s=parseInt(i.weekStart,10)%7,a=i.daysMin,o="";for(a=t.merge(a.slice(s),a.slice(0,s)),e=0;e<=6;e++)o+=this.createItem({text:a[e]});this.$week.html(o)},fillYears:function(){var e,i=this.options,s=i.disabledClass||"",a=i.yearSuffix||"",o=t.isFunction(i.filter)&&i.filter,n=this.startDate,r=this.endDate,l=this.viewDate,h=l.getFullYear(),c=l.getMonth(),d=l.getDate(),u=this.date,p=u.getFullYear(),f=!1,g=!1,m=!1,y=!1,v=!1,b="";for(e=-5;e<=6;e++)u=new Date(h+e,c,d),v=e===-5||6===e,y=h+e===p,m=!1,n&&(m=u.getFullYear()<n.getFullYear(),e===-5&&(f=m)),!m&&r&&(m=u.getFullYear()>r.getFullYear(),6===e&&(g=m)),!m&&o&&(m=o.call(this.$element,u)===!1),b+=this.createItem({text:h+e,view:m?"year disabled":y?"year picked":"year",muted:v,picked:y,disabled:m});this.$yearsPrev.toggleClass(s,f),this.$yearsNext.toggleClass(s,g),this.$yearsCurrent.toggleClass(s,!0).html(h+-5+a+" - "+(h+6)+a),this.$years.html(b)},fillMonths:function(){var e,i=this.options,s=i.disabledClass||"",a=i.monthsShort,o=t.isFunction(i.filter)&&i.filter,n=this.startDate,r=this.endDate,l=this.viewDate,h=l.getFullYear(),c=l.getDate(),d=this.date,u=d.getFullYear(),p=d.getMonth(),f=!1,g=!1,m=!1,y=!1,v="";for(e=0;e<=11;e++)d=new Date(h,e,c),y=h===u&&e===p,m=!1,n&&(f=d.getFullYear()===n.getFullYear(),m=f&&d.getMonth()<n.getMonth()),!m&&r&&(g=d.getFullYear()===r.getFullYear(),m=g&&d.getMonth()>r.getMonth()),!m&&o&&(m=o.call(this.$element,d)===!1),v+=this.createItem({index:e,text:a[e],view:m?"month disabled":y?"month picked":"month",picked:y,disabled:m});this.$yearPrev.toggleClass(s,f),this.$yearNext.toggleClass(s,g),this.$yearCurrent.toggleClass(s,f&&g).html(h+i.yearSuffix||""),this.$months.html(v)},fillDays:function(){var e,i,s,a=this.options,o=a.disabledClass||"",n=a.yearSuffix||"",r=a.monthsShort,l=parseInt(a.weekStart,10)%7,c=t.isFunction(a.filter)&&a.filter,d=this.startDate,u=this.endDate,p=this.viewDate,f=p.getFullYear(),g=p.getMonth(),m=f,y=g,v=f,b=new Date,w=b.getFullYear(),k=b.getMonth(),x=b.getDate(),D=g,$=this.date,C=$.getFullYear(),_=$.getMonth(),S=$.getDate(),j=!1,T=!1,M=!1,F=!1,I=[],V=[],P=[];for(0===g?(m-=1,y=11):y-=1,e=h(m,y),$=new Date(f,g,1),s=$.getDay()-l,s<=0&&(s+=7),d&&(j=$.getTime()<=d.getTime()),i=e-(s-1);i<=e;i++)$=new Date(m,y,i),M=!1,d&&(M=$.getTime()<d.getTime()),!M&&c&&(M=c.call(this.$element,$)===!1),I.push(this.createItem({text:i,view:"day prev",muted:!0,disabled:M,highlighted:m===w&&y===k&&$.getDate()===x}));for(11===g?(v+=1,D=0):D+=1,e=h(f,g),s=42-(I.length+e),$=new Date(f,g,e),u&&(T=$.getTime()>=u.getTime()),i=1;i<=s;i++)$=new Date(v,D,i),M=!1,u&&(M=$.getTime()>u.getTime()),!M&&c&&(M=c.call(this.$element,$)===!1),V.push(this.createItem({text:i,view:"day next",muted:!0,disabled:M,highlighted:v===w&&D===k&&$.getDate()===x}));for(i=1;i<=e;i++)$=new Date(f,g,i),F=f===C&&g===_&&i===S,M=!1,d&&(M=$.getTime()<d.getTime()),!M&&u&&(M=$.getTime()>u.getTime()),!M&&c&&(M=c.call(this.$element,$)===!1),P.push(this.createItem({text:i,view:M?"day disabled":F?"day picked":"day",picked:F,disabled:M,highlighted:f===w&&g===k&&$.getDate()===x}));this.$monthPrev.toggleClass(o,j),this.$monthNext.toggleClass(o,T),this.$monthCurrent.toggleClass(o,j&&T).html(a.yearFirst?f+n+" "+r[g]:r[g]+" "+f+n),this.$days.html(I.join("")+P.join(" ")+V.join(""))},click:function(e){var i,s,a,o,n,r,l=t(e.target),h=this.viewDate;if(e.stopPropagation(),e.preventDefault(),!l.hasClass("disabled"))switch(i=h.getFullYear(),s=h.getMonth(),a=h.getDate(),r=l.data("view")){case"years prev":case"years next":i="years prev"===r?i-10:i+10,n=l.text(),o=b.test(n),o&&(i=parseInt(n,10),this.date=new Date(i,s,x(a,28))),this.viewDate=new Date(i,s,x(a,28)),this.fillYears(),o&&(this.showView(1),this.pick("year"));break;case"year prev":case"year next":i="year prev"===r?i-1:i+1,this.viewDate=new Date(i,s,x(a,28)),this.fillMonths();break;case"year current":this.format.hasYear&&this.showView(2);break;case"year picked":this.format.hasMonth?this.showView(1):this.hideView(),this.pick("year");break;case"year":i=parseInt(l.text(),10),this.date=new Date(i,s,x(a,28)),this.viewDate=new Date(i,s,x(a,28)),this.format.hasMonth?this.showView(1):this.hideView(),this.pick("year");break;case"month prev":case"month next":s="month prev"===r?s-1:"month next"===r?s+1:s,this.viewDate=new Date(i,s,x(a,28)),this.fillDays();break;case"month current":this.format.hasMonth&&this.showView(1);break;case"month picked":this.format.hasDay?this.showView(0):this.hideView(),this.pick("month");break;case"month":s=t.inArray(l.text(),this.options.monthsShort),this.date=new Date(i,s,x(a,28)),this.viewDate=new Date(i,s,x(a,28)),this.format.hasDay?this.showView(0):this.hideView(),this.pick("month");break;case"day prev":case"day next":case"day":s="day prev"===r?s-1:"day next"===r?s+1:s,a=parseInt(l.text(),10),this.date=new Date(i,s,a),this.viewDate=new Date(i,s,a),this.fillDays(),"day"===r&&this.hideView(),this.pick("day");break;case"day picked":this.hideView(),this.pick("day")}},clickDoc:function(t){for(var e,i=t.target,s=this.$element[0],a=this.$trigger[0];i!==p;){if(i===a||i===s){e=!0;break}i=i.parentNode}e||this.hide()},keyup:function(){this.update()},keyupDoc:function(t){this.isInput&&t.target!==this.$element[0]&&this.isShown&&("Tab"===t.key||9===t.keyCode)&&this.hide()},getValue:function(){var t=this.$element,e="";return this.isInput?e=t.val():this.isInline?this.options.container&&(e=t.text()):e=t.text(),e},setValue:function(t){var e=this.$element;t=i(t)?t:"",this.isInput?e.val(t):this.isInline?this.options.container&&e.text(t):e.text(t)},show:function(){this.isBuilt||this.build(),this.isShown||this.trigger("show.datepicker").isDefaultPrevented()||(this.isShown=!0,this.$picker.removeClass(k).on(y,t.proxy(this.click,this)),this.showView(this.options.startView),this.isInline||(u.on("resize.datepicker",this._place=r(this.place,this)),f.on(y,this._clickDoc=r(this.clickDoc,this)),f.on("keyup.datepicker",this._keyupDoc=r(this.keyupDoc,this)),this.place()))},hide:function(){this.isShown&&(this.trigger("hide.datepicker").isDefaultPrevented()||(this.isShown=!1,this.$picker.addClass(k).off(y,this.click),this.isInline||(u.off("resize.datepicker",this._place),f.off(y,this._clickDoc),f.off("keyup.datepicker",this._keyupDoc))))},toggle:function(){this.isShown?this.hide():this.show()},update:function(){var t=this.getValue();t!==this.oldValue&&(this.setDate(t,!0),this.oldValue=t)},pick:function(t){var e=this.$element,i=this.date;this.trigger("pick.datepicker",{view:t||"",date:i}).isDefaultPrevented()||(this.setValue(i=this.formatDate(this.date)),this.isInput&&e.trigger("change"))},reset:function(){this.setDate(this.initialDate,!0),this.setValue(this.initialValue),this.isShown&&this.showView(this.options.startView)},getMonthName:function(e,i){var o=this.options,n=o.months;return t.isNumeric(e)?e=g(e):a(i)&&(i=e),i===!0&&(n=o.monthsShort),n[s(e)?e:this.date.getMonth()]},getDayName:function(e,i,o){var n=this.options,r=n.days;return t.isNumeric(e)?e=g(e):(a(o)&&(o=i),a(i)&&(i=e)),r=o===!0?n.daysMin:i===!0?n.daysShort:r,r[s(e)?e:this.date.getDay()]},getDate:function(t){var e=this.date;return t?this.formatDate(e):new Date(e)},setDate:function(e,s){var a=this.options.filter;if(o(e)||i(e)){if(e=this.parseDate(e),t.isFunction(a)&&a.call(this.$element,e)===!1)return;this.date=e,this.viewDate=new Date(e),s||this.pick(),this.isBuilt&&this.fillAll()}},setStartDate:function(t){(o(t)||i(t))&&(this.startDate=this.parseDate(t),this.isBuilt&&this.fillAll())},setEndDate:function(t){(o(t)||i(t))&&(this.endDate=this.parseDate(t),this.isBuilt&&this.fillAll())},parseDate:function(t){var e,s,a,n,r,l,h=this.format,c=[];if(o(t))return new Date(t.getFullYear(),t.getMonth(),t.getDate());if(i(t)&&(c=t.match(/\d+/g)||[]),t=new Date,s=t.getFullYear(),a=t.getDate(),n=t.getMonth(),e=h.parts.length,c.length===e)for(l=0;l<e;l++)switch(r=parseInt(c[l],10)||1,h.parts[l]){case"dd":case"d":a=r;break;case"mm":case"m":n=r-1;break;case"yy":s=2e3+r;break;case"yyyy":s=r}return new Date(s,n,a)},formatDate:function(t){var e,i,s,a,n,r=this.format,l="";if(o(t))for(l=r.source,i=t.getFullYear(),a={d:t.getDate(),m:t.getMonth()+1,yy:i.toString().substring(2),yyyy:i},a.dd=(a.d<10?"0":"")+a.d,a.mm=(a.m<10?"0":"")+a.m,e=r.parts.length,n=0;n<e;n++)s=r.parts[n],l=l.replace(s,a[s]);return l},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(m)}},d.LANGUAGES={},d.DEFAULTS={autoShow:!1,autoHide:!1,autoPick:!1,inline:!1,container:null,trigger:null,language:"",format:"mm/dd/yyyy",date:null,startDate:null,endDate:null,startView:0,weekStart:0,yearFirst:!1,yearSuffix:"",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],itemTag:"li",mutedClass:"muted",pickedClass:"picked",disabledClass:"disabled",highlightedClass:"highlighted",template:'<div class="datepicker-container"><div class="datepicker-panel" data-view="years picker"><ul><li data-view="years prev">&lsaquo;</li><li data-view="years current"></li><li data-view="years next">&rsaquo;</li></ul><ul data-view="years"></ul></div><div class="datepicker-panel" data-view="months picker"><ul><li data-view="year prev">&lsaquo;</li><li data-view="year current"></li><li data-view="year next">&rsaquo;</li></ul><ul data-view="months"></ul></div><div class="datepicker-panel" data-view="days picker"><ul><li data-view="month prev">&lsaquo;</li><li data-view="month current"></li><li data-view="month next">&rsaquo;</li></ul><ul data-view="week"></ul><ul data-view="days"></ul></div></div>',offset:10,zIndex:1e3,filter:null,show:null,hide:null,pick:null},d.setDefaults=function(e){e=t.isPlainObject(e)?e:{},e.language&&(e=t.extend({},d.LANGUAGES[e.language],e)),t.extend(d.DEFAULTS,e)},d.other=t.fn.datepicker,t.fn.datepicker=function(e){var s,o=n(arguments,1);return this.each(function(){var a,n,r=t(this),l=r.data(m);if(!l){if(/destroy/.test(e))return;a=t.extend({},r.data(),t.isPlainObject(e)&&e),r.data(m,l=new d(this,a))}i(e)&&t.isFunction(n=l[e])&&(s=n.apply(l,o))}),a(s)?this:s},t.fn.datepicker.Constructor=d,t.fn.datepicker.languages=d.LANGUAGES,t.fn.datepicker.setDefaults=d.setDefaults,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=d.other,this}})},function(t,e){!function(t){t.fn.autocomplete=function(e){function i(){t("#js-codeit").html("You have to code a function or a redirection to display more results ;)")}var s=this,a=t("body"),o=e.case_sensitive||"yes",n=e.min_length||0,r=e.limit_number_suggestions||666,l=[];s.length&&(s.each(function(e){var i=t(this),s=i.attr("id"),a=t('label[for="'+s+'"]'),n=e+1,r=i.data();$combobox_prefix_class=void 0!==r.comboboxPrefixClass?r.comboboxPrefixClass+"-":"",$combobox_help_text=void 0!==r.comboboxHelpText?r.comboboxHelpText:"Use tabulation (or down) key to access and browse suggestions after input. Confirm your choice with enter key, or esc key to close suggestions box.",$list_suggestions=t("#"+i.attr("list")),$combobox_button_title=void 0!==r.comboboxButtonTitle?r.comboboxButtonTitle:"clear this field",$combobox_button_text=void 0!==r.comboboxButtonText?r.comboboxButtonText:"X",$combobox_case_sensitive=void 0!==r.comboboxCaseSensitive?r.comboboxCaseSensitive:o,tablo_temp_suggestions=[],i.attr({"data-number":n,autocorrect:"off",autocapitalize:"off",spellcheck:"off",autocomplete:"off","aria-describedby":$combobox_prefix_class+"help-text"+n,"aria-autocomplete":"list","data-lastval":"","aria-owns":$combobox_prefix_class+"suggest_"+n}),$list_suggestions.find("option").each(function(t,e){tablo_temp_suggestions.push(e.value)}),"no"===$combobox_case_sensitive?l[n]=tablo_temp_suggestions.sort(function(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),t==e?0:t>e?1:-1}):l[n]=tablo_temp_suggestions.sort(),i.wrap('<div class="'+$combobox_prefix_class+'container js-container" data-combobox-prefix-class="'+$combobox_prefix_class+'"></div>');var h=i.parent();h.append('<div id="'+$combobox_prefix_class+"suggest_"+n+'" class="js-suggest '+$combobox_prefix_class+'suggestions"><div role="listbox"></div></div>'),$list_suggestions.remove(),h.prepend('<div id="'+$combobox_prefix_class+"suggestion-text"+n+'" class="js-suggestion-text '+$combobox_prefix_class+'suggestion-text invisible" aria-live="assertive"></div>'),h.prepend('<span id="'+$combobox_prefix_class+"help-text"+n+'" class="'+$combobox_prefix_class+'help-text invisible">'+$combobox_help_text+"</span>"),a.attr("id","label-id-"+s),i.after('<button class="js-clear-button '+$combobox_prefix_class+'clear-button" aria-label="'+$combobox_button_title+'" title="'+$combobox_button_title+'" aria-describedby="label-id-'+s+'" type="button">'+$combobox_button_text+"</button>")}),a.on("keyup",".js-combobox",function(e){var i=t(this),s=i.data(),a=i.parent(),h=a.parents("form"),c=a.data(),d=void 0!==c.comboboxPrefixClass?c.comboboxPrefixClass:"",u=a.find(".js-suggest div"),p=(u.find(".js-suggestion"),a.find(".js-suggestion-text")),f=void 0!==s.suggestionSingle?s.suggestionSingle:"There is ",g=void 0!==s.suggestionPlural?s.suggestionPlural:"There are ",m=void 0!==s.suggestionWord?s.suggestionWord:"suggestion",y=void 0!==s.comboboxMinLength?Math.abs(s.comboboxMinLength):n,v=void 0!==s.comboboxCaseSensitive?s.comboboxCaseSensitive:o,b=void 0!==s.comboboxLimitNumberSuggestions?Math.abs(s.comboboxLimitNumberSuggestions):r,w=void 0!==s.comboboxSearchOption?s.comboboxSearchOption:"beginning",k=void 0!==s.comboboxSeeMoreText?s.comboboxSeeMoreText:"See more results…",x=i.attr("data-number"),D=i.val(),$="";if(13===e.keyCode)h.submit();else if(27!==e.keyCode){i.attr("data-lastval",D);var C=l[x].length,_=0,S=0;if(u.empty(),""!=D&&D.length>=y){for(;_<C;)S<b&&("containing"===w&&"yes"===v&&l[x][_].indexOf(D)>=0||"no"===v&&l[x][_].toUpperCase().indexOf(D.toUpperCase())>=0||"beginning"===w&&"yes"===v&&l[x][_].substring(0,D.length)===D||"no"===v&&l[x][_].substring(0,D.length).toUpperCase()===D.toUpperCase())&&(u.append('<div id="suggestion-'+x+"-"+S+'" class="js-suggestion '+d+'suggestion" tabindex="-1" role="option">'+l[x][_]+"</div>"),S++),_++;if(S>=b&&(u.append('<div id="suggestion-'+x+"-"+S+'" class="js-suggestion js-seemore '+d+'suggestion" tabindex="-1" role="option">'+k+"</div>"),S++),S>1&&($=g+S+" "+m+"s."),1===S&&($=f+S+" "+m+"."),0===S&&($=f+S+" "+m+"."),S>=0){var j=p.text();$!=j&&(suggestions_to_add=t("<p>").text($),p.attr("aria-live","polite"),p.empty(),p.append(suggestions_to_add))}}}}).on("click",function(e){var i=t(e.target),s=t(".js-suggestion-text:not(:empty)"),a=s.parents(".js-container"),o=a.find(".js-combobox"),n=a.find(".js-suggest div");i.is(".js-suggestion")||i.is(".js-combobox")||!s.length||(o.val(o.attr("data-lastval")),n.empty(),s.empty())}).on("keydown",".js-combobox",function(e){var i=t(this),s=i.parent(),a=s.find(".js-combobox"),o=s.find(".js-suggest div"),n=o.find(".js-suggestion"),r=s.find(".js-suggestion-text"),l=void 0===i.attr("data-combobox-notab-options"),h=n.first();(!e.shiftKey&&9==e.keyCode&&l||40==e.keyCode)&&n.length&&(a.val(h.html()),n.first().focus(),e.preventDefault()),(27==e.keyCode||l===!1&&9==e.keyCode)&&(a.val(a.attr("data-lastval")),o.empty(),r.empty(),27==e.keyCode&&(e.preventDefault(),setTimeout(function(){a.focus()},300)))}).on("keydown",".js-suggestion",function(e){var s=t(this),a=s.parents(".js-container"),o=a.find(".js-combobox"),n=void 0===o.attr("data-combobox-notab-options"),r=a.find(".js-suggest div"),l=a.find(".js-suggestion-text"),h=s.next(),c=s.prev();if((27==e.keyCode||n===!1&&9==e.keyCode)&&(27==e.keyCode&&(o.val(o.attr("data-lastval")),r.empty(),l.empty(),setTimeout(function(){o.focus()},300),e.preventDefault()),n===!1&&9==e.keyCode&&(r.empty(),l.empty(),o.focus())),13!=e.keyCode&&32!=e.keyCode||(s.hasClass("js-seemore")?(o.val(o.attr("data-lastval")),r.empty(),l.empty(),setTimeout(function(){o.focus()},300),setTimeout(function(){i()},301),e.preventDefault()):(o.val(s.html()),o.attr("data-lastval",s.html()),r.empty(),l.empty(),setTimeout(function(){o.focus()},300),e.preventDefault())),!e.shiftKey&&9==e.keyCode&&n||40==e.keyCode){if(h.length)o.val(h.html()),h.focus();else if(o.val(o.attr("data-lastval")),e.shiftKey||9!=e.keyCode)setTimeout(function(){o.focus()},300);else{var d=jQuery.Event("keydown");d.which=27,d.keyCode=27,s.trigger(d)}e.preventDefault()}(e.shiftKey&&9==e.keyCode&&n||38==e.keyCode)&&(c.length?(o.val(c.html()),c.focus()):o.val(o.attr("data-lastval")).focus(),e.preventDefault())}).on("click",".js-clear-button",function(e){var i=t(this),s=i.parent(),a=s.find(".js-combobox"),o=s.find(".js-suggest div"),n=s.find(".js-suggestion-text");o.empty(),n.empty(),a.val(""),a.attr("data-lastval","")}).on("click",".js-suggestion",function(e){var s=t(this),a=s.html(),o=s.parents(".js-container"),n=o.find(".js-combobox"),r=o.find(".js-suggest div"),l=o.find(".js-suggestion-text");s.hasClass("js-seemore")?(r.empty(),l.empty(),n.focus(),i()):(n.val(a).focus(),r.empty(),l.empty())}))}}(jQuery)},function(t,e){!function(){function t(){var i,s=this.querySelectorAll("template"),a=[],o=0;if(e){for(i=this.cloneNode(!0),s=i.content.querySelectorAll("template");s[o];o++)s[o].clone=t;return i}for(;s[o];o++)a.push(s[o].content);for(i=this.cloneNode(!0),i.content=this.content,i.clone=t,s=i.querySelectorAll("template"),o=0;s[o];o++)s[o].content=a[o],s[o].clone=t;return i}var e="content"in document.createElement("template");if(!e)for(var i,s,a,o,n,r=Array.prototype.slice.call(document.getElementsByTagName("template")),l=0;i=r[l++];){for(s=i.children,a=document.createDocumentFragment(),n=0;o=s[n];n++)a.appendChild(o);i.content=a}for(var i,r=document.querySelectorAll("template"),l=0;i=r[l++];)i.clone=t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(2),a=(i.n(s),i(0)),o=(i.n(a),i(1));i.n(o);$(document).ready(function(){var t=new Date;$(".js-datepicker").datepicker({daysMin:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],endDate:t,offset:-1}),$(".js-chosen").chosen()}),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&$("html").addClass("ios")},function(t,e){t.exports=jQuery}]);
!function(o){a=[i(6)],s=o,void 0!==(n="function"==typeof s?s.apply(e,a):s)&&(t.exports=n)}(function(t){"use strict";function e(t){return D.call(t).slice(8,-1).toLowerCase()}function i(t){return"string"==typeof t}function s(t){return"number"==typeof t&&!isNaN(t)}function a(t){return void 0===t}function n(t){return"date"===e(t)}function o(t,e){var i=[];return Array.from?Array.from(t).slice(e||0):(s(e)&&i.push(e),i.slice.apply(t,i))}function r(t,e){var i=o(arguments,2);return function(){return t.apply(e,i.concat(o(arguments)))}}function l(t){return t%4==0&&t%100!=0||t%400==0}function h(t,e){return[31,l(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}function c(t){var e,i,s=String(t).toLowerCase(),a=s.match(y);if(!a||0===a.length)throw new Error("Invalid date format.");for(t={source:s,parts:a},e=a.length,i=0;i<e;i++)switch(a[i]){case"dd":case"d":t.hasDay=!0;break;case"mm":case"m":t.hasMonth=!0;break;case"yyyy":case"yy":t.hasYear=!0}return t}function d(e,i){i=t.isPlainObject(i)?i:{},i.language&&(i=t.extend({},d.LANGUAGES[i.language],i)),this.$element=t(e),this.options=t.extend({},d.DEFAULTS,i),this.isBuilt=!1,this.isShown=!1,this.isInput=!1,this.isInline=!1,this.initialValue="",this.initialDate=null,this.startDate=null,this.endDate=null,this.init()}var u=t(window),p=window.document,f=t(p),g=window.Number,m="datepicker",v="click.datepicker",y=/(y|m|d)+/g,b=/^\d{2,4}$/,w=["datepicker-top-left","datepicker-top-right","datepicker-bottom-left","datepicker-bottom-right"].join(" "),k="datepicker-hide",x=Math.min,D=Object.prototype.toString;d.prototype={constructor:d,init:function(){var e=this.options,i=this.$element,s=e.startDate,a=e.endDate,n=e.date;this.$trigger=t(e.trigger),this.isInput=i.is("input")||i.is("textarea"),this.isInline=e.inline&&(e.container||!this.isInput),this.format=c(e.format),this.oldValue=this.initialValue=this.getValue(),n=this.parseDate(n||this.initialValue),s&&(s=this.parseDate(s),n.getTime()<s.getTime()&&(n=new Date(s)),this.startDate=s),a&&(a=this.parseDate(a),s&&a.getTime()<s.getTime()&&(a=new Date(s)),n.getTime()>a.getTime()&&(n=new Date(a)),this.endDate=a),this.date=n,this.viewDate=new Date(n),this.initialDate=new Date(this.date),this.bind(),(e.autoShow||this.isInline)&&this.show(),e.autoPick&&this.pick()},build:function(){var e,i=this.options,s=this.$element;this.isBuilt||(this.isBuilt=!0,this.$picker=e=t(i.template),this.$week=e.find('[data-view="week"]'),this.$yearsPicker=e.find('[data-view="years picker"]'),this.$yearsPrev=e.find('[data-view="years prev"]'),this.$yearsNext=e.find('[data-view="years next"]'),this.$yearsCurrent=e.find('[data-view="years current"]'),this.$years=e.find('[data-view="years"]'),this.$monthsPicker=e.find('[data-view="months picker"]'),this.$yearPrev=e.find('[data-view="year prev"]'),this.$yearNext=e.find('[data-view="year next"]'),this.$yearCurrent=e.find('[data-view="year current"]'),this.$months=e.find('[data-view="months"]'),this.$daysPicker=e.find('[data-view="days picker"]'),this.$monthPrev=e.find('[data-view="month prev"]'),this.$monthNext=e.find('[data-view="month next"]'),this.$monthCurrent=e.find('[data-view="month current"]'),this.$days=e.find('[data-view="days"]'),this.isInline?t(i.container||s).append(e.addClass("datepicker-inline")):(t(p.body).append(e.addClass("datepicker-dropdown")),e.addClass(k)),this.fillWeek())},unbuild:function(){this.isBuilt&&(this.isBuilt=!1,this.$picker.remove())},bind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.on("show.datepicker",e.show),t.isFunction(e.hide)&&i.on("hide.datepicker",e.hide),t.isFunction(e.pick)&&i.on("pick.datepicker",e.pick),this.isInput&&i.on("keyup.datepicker",t.proxy(this.keyup,this)),this.isInline||(e.trigger?this.$trigger.on(v,t.proxy(this.toggle,this)):this.isInput?i.on("focus.datepicker",t.proxy(this.show,this)):i.on(v,t.proxy(this.show,this)))},unbind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.off("show.datepicker",e.show),t.isFunction(e.hide)&&i.off("hide.datepicker",e.hide),t.isFunction(e.pick)&&i.off("pick.datepicker",e.pick),this.isInput&&i.off("keyup.datepicker",this.keyup),this.isInline||(e.trigger?this.$trigger.off(v,this.toggle):this.isInput?i.off("focus.datepicker",this.show):i.off(v,this.show))},showView:function(t){var e=this.$yearsPicker,i=this.$monthsPicker,s=this.$daysPicker,a=this.format;if(a.hasYear||a.hasMonth||a.hasDay)switch(g(t)){case 2:case"years":i.addClass(k),s.addClass(k),a.hasYear?(this.fillYears(),e.removeClass(k),this.place()):this.showView(0);break;case 1:case"months":e.addClass(k),s.addClass(k),a.hasMonth?(this.fillMonths(),i.removeClass(k),this.place()):this.showView(2);break;default:e.addClass(k),i.addClass(k),a.hasDay?(this.fillDays(),s.removeClass(k),this.place()):this.showView(1)}},hideView:function(){!this.isInline&&this.options.autoHide&&this.hide()},place:function(){if(!this.isInline){var t=this.options,e=this.$element,i=this.$picker,s=f.outerWidth(),a=f.outerHeight(),n=e.outerWidth(),o=e.outerHeight(),r=i.width(),l=i.height(),h=e.offset(),c=h.left,d=h.top,u=parseFloat(t.offset)||10,p="datepicker-top-left";d>l&&d+o+l>a?(d-=l+u,p="datepicker-bottom-left"):d+=o+u,c+r>s&&(c=c+n-r,p=p.replace("left","right")),i.removeClass(w).addClass(p).css({top:d,left:c,zIndex:parseInt(t.zIndex,10)})}},trigger:function(e,i){var s=t.Event(e,i);return this.$element.trigger(s),s},createItem:function(e){var i=this.options,s=i.itemTag,a={text:"",view:"",muted:!1,picked:!1,disabled:!1,highlighted:!1},n=[];return t.extend(a,e),a.muted&&n.push(i.mutedClass),a.highlighted&&n.push(i.highlightedClass),a.picked&&n.push(i.pickedClass),a.disabled&&n.push(i.disabledClass),"<"+s+' class="'+n.join(" ")+'"'+(a.view?' data-view="'+a.view+'"':"")+">"+a.text+"</"+s+">"},fillAll:function(){this.fillYears(),this.fillMonths(),this.fillDays()},fillWeek:function(){var e,i=this.options,s=parseInt(i.weekStart,10)%7,a=i.daysMin,n="";for(a=t.merge(a.slice(s),a.slice(0,s)),e=0;e<=6;e++)n+=this.createItem({text:a[e]});this.$week.html(n)},fillYears:function(){var e,i=this.options,s=i.disabledClass||"",a=i.yearSuffix||"",n=t.isFunction(i.filter)&&i.filter,o=this.startDate,r=this.endDate,l=this.viewDate,h=l.getFullYear(),c=l.getMonth(),d=l.getDate(),u=this.date,p=u.getFullYear(),f=!1,g=!1,m=!1,v=!1,y=!1,b="";for(e=-5;e<=6;e++)u=new Date(h+e,c,d),y=e===-5||6===e,v=h+e===p,m=!1,o&&(m=u.getFullYear()<o.getFullYear(),e===-5&&(f=m)),!m&&r&&(m=u.getFullYear()>r.getFullYear(),6===e&&(g=m)),!m&&n&&(m=n.call(this.$element,u)===!1),b+=this.createItem({text:h+e,view:m?"year disabled":v?"year picked":"year",muted:y,picked:v,disabled:m});this.$yearsPrev.toggleClass(s,f),this.$yearsNext.toggleClass(s,g),this.$yearsCurrent.toggleClass(s,!0).html(h+-5+a+" - "+(h+6)+a),this.$years.html(b)},fillMonths:function(){var e,i=this.options,s=i.disabledClass||"",a=i.monthsShort,n=t.isFunction(i.filter)&&i.filter,o=this.startDate,r=this.endDate,l=this.viewDate,h=l.getFullYear(),c=l.getDate(),d=this.date,u=d.getFullYear(),p=d.getMonth(),f=!1,g=!1,m=!1,v=!1,y="";for(e=0;e<=11;e++)d=new Date(h,e,c),v=h===u&&e===p,m=!1,o&&(f=d.getFullYear()===o.getFullYear(),m=f&&d.getMonth()<o.getMonth()),!m&&r&&(g=d.getFullYear()===r.getFullYear(),m=g&&d.getMonth()>r.getMonth()),!m&&n&&(m=n.call(this.$element,d)===!1),y+=this.createItem({index:e,text:a[e],view:m?"month disabled":v?"month picked":"month",picked:v,disabled:m});this.$yearPrev.toggleClass(s,f),this.$yearNext.toggleClass(s,g),this.$yearCurrent.toggleClass(s,f&&g).html(h+i.yearSuffix||""),this.$months.html(y)},fillDays:function(){var e,i,s,a=this.options,n=a.disabledClass||"",o=a.yearSuffix||"",r=a.monthsShort,l=parseInt(a.weekStart,10)%7,c=t.isFunction(a.filter)&&a.filter,d=this.startDate,u=this.endDate,p=this.viewDate,f=p.getFullYear(),g=p.getMonth(),m=f,v=g,y=f,b=new Date,w=b.getFullYear(),k=b.getMonth(),x=b.getDate(),D=g,$=this.date,C=$.getFullYear(),_=$.getMonth(),S=$.getDate(),j=!1,T=!1,M=!1,F=!1,I=[],V=[],P=[];for(0===g?(m-=1,v=11):v-=1,e=h(m,v),$=new Date(f,g,1),s=$.getDay()-l,s<=0&&(s+=7),d&&(j=$.getTime()<=d.getTime()),i=e-(s-1);i<=e;i++)$=new Date(m,v,i),M=!1,d&&(M=$.getTime()<d.getTime()),!M&&c&&(M=c.call(this.$element,$)===!1),I.push(this.createItem({text:i,view:"day prev",muted:!0,disabled:M,highlighted:m===w&&v===k&&$.getDate()===x}));for(11===g?(y+=1,D=0):D+=1,e=h(f,g),s=42-(I.length+e),$=new Date(f,g,e),u&&(T=$.getTime()>=u.getTime()),i=1;i<=s;i++)$=new Date(y,D,i),M=!1,u&&(M=$.getTime()>u.getTime()),!M&&c&&(M=c.call(this.$element,$)===!1),V.push(this.createItem({text:i,view:"day next",muted:!0,disabled:M,highlighted:y===w&&D===k&&$.getDate()===x}));for(i=1;i<=e;i++)$=new Date(f,g,i),F=f===C&&g===_&&i===S,M=!1,d&&(M=$.getTime()<d.getTime()),!M&&u&&(M=$.getTime()>u.getTime()),!M&&c&&(M=c.call(this.$element,$)===!1),P.push(this.createItem({text:i,view:M?"day disabled":F?"day picked":"day",picked:F,disabled:M,highlighted:f===w&&g===k&&$.getDate()===x}));this.$monthPrev.toggleClass(n,j),this.$monthNext.toggleClass(n,T),this.$monthCurrent.toggleClass(n,j&&T).html(a.yearFirst?f+o+" "+r[g]:r[g]+" "+f+o),this.$days.html(I.join("")+P.join(" ")+V.join(""))},click:function(e){var i,s,a,n,o,r,l=t(e.target),h=this.viewDate;if(e.stopPropagation(),e.preventDefault(),!l.hasClass("disabled"))switch(i=h.getFullYear(),s=h.getMonth(),a=h.getDate(),r=l.data("view")){case"years prev":case"years next":i="years prev"===r?i-10:i+10,o=l.text(),n=b.test(o),n&&(i=parseInt(o,10),this.date=new Date(i,s,x(a,28))),this.viewDate=new Date(i,s,x(a,28)),this.fillYears(),n&&(this.showView(1),this.pick("year"));break;case"year prev":case"year next":i="year prev"===r?i-1:i+1,this.viewDate=new Date(i,s,x(a,28)),this.fillMonths();break;case"year current":this.format.hasYear&&this.showView(2);break;case"year picked":this.format.hasMonth?this.showView(1):this.hideView(),this.pick("year");break;case"year":i=parseInt(l.text(),10),this.date=new Date(i,s,x(a,28)),this.viewDate=new Date(i,s,x(a,28)),this.format.hasMonth?this.showView(1):this.hideView(),this.pick("year");break;case"month prev":case"month next":s="month prev"===r?s-1:"month next"===r?s+1:s,this.viewDate=new Date(i,s,x(a,28)),this.fillDays();break;case"month current":this.format.hasMonth&&this.showView(1);break;case"month picked":this.format.hasDay?this.showView(0):this.hideView(),this.pick("month");break;case"month":s=t.inArray(l.text(),this.options.monthsShort),this.date=new Date(i,s,x(a,28)),this.viewDate=new Date(i,s,x(a,28)),this.format.hasDay?this.showView(0):this.hideView(),this.pick("month");break;case"day prev":case"day next":case"day":s="day prev"===r?s-1:"day next"===r?s+1:s,a=parseInt(l.text(),10),this.date=new Date(i,s,a),this.viewDate=new Date(i,s,a),this.fillDays(),"day"===r&&this.hideView(),this.pick("day");break;case"day picked":this.hideView(),this.pick("day")}},clickDoc:function(t){for(var e,i=t.target,s=this.$element[0],a=this.$trigger[0];i!==p;){if(i===a||i===s){e=!0;break}i=i.parentNode}e||this.hide()},keyup:function(){this.update()},keyupDoc:function(t){this.isInput&&t.target!==this.$element[0]&&this.isShown&&("Tab"===t.key||9===t.keyCode)&&this.hide()},getValue:function(){var t=this.$element,e="";return this.isInput?e=t.val():this.isInline?this.options.container&&(e=t.text()):e=t.text(),e},setValue:function(t){var e=this.$element;t=i(t)?t:"",this.isInput?e.val(t):this.isInline?this.options.container&&e.text(t):e.text(t)},show:function(){this.isBuilt||this.build(),this.isShown||this.trigger("show.datepicker").isDefaultPrevented()||(this.isShown=!0,this.$picker.removeClass(k).on(v,t.proxy(this.click,this)),this.showView(this.options.startView),this.isInline||(u.on("resize.datepicker",this._place=r(this.place,this)),f.on(v,this._clickDoc=r(this.clickDoc,this)),f.on("keyup.datepicker",this._keyupDoc=r(this.keyupDoc,this)),this.place()))},hide:function(){this.isShown&&(this.trigger("hide.datepicker").isDefaultPrevented()||(this.isShown=!1,this.$picker.addClass(k).off(v,this.click),this.isInline||(u.off("resize.datepicker",this._place),f.off(v,this._clickDoc),f.off("keyup.datepicker",this._keyupDoc))))},toggle:function(){this.isShown?this.hide():this.show()},update:function(){var t=this.getValue();t!==this.oldValue&&(this.setDate(t,!0),this.oldValue=t)},pick:function(t){var e=this.$element,i=this.date;this.trigger("pick.datepicker",{view:t||"",date:i}).isDefaultPrevented()||(this.setValue(i=this.formatDate(this.date)),this.isInput&&e.trigger("change"))},reset:function(){this.setDate(this.initialDate,!0),this.setValue(this.initialValue),this.isShown&&this.showView(this.options.startView)},getMonthName:function(e,i){var n=this.options,o=n.months;return t.isNumeric(e)?e=g(e):a(i)&&(i=e),i===!0&&(o=n.monthsShort),o[s(e)?e:this.date.getMonth()]},getDayName:function(e,i,n){var o=this.options,r=o.days;return t.isNumeric(e)?e=g(e):(a(n)&&(n=i),a(i)&&(i=e)),r=n===!0?o.daysMin:i===!0?o.daysShort:r,r[s(e)?e:this.date.getDay()]},getDate:function(t){var e=this.date;return t?this.formatDate(e):new Date(e)},setDate:function(e,s){var a=this.options.filter;if(n(e)||i(e)){if(e=this.parseDate(e),t.isFunction(a)&&a.call(this.$element,e)===!1)return;this.date=e,this.viewDate=new Date(e),s||this.pick(),this.isBuilt&&this.fillAll()}},setStartDate:function(t){(n(t)||i(t))&&(this.startDate=this.parseDate(t),this.isBuilt&&this.fillAll())},setEndDate:function(t){(n(t)||i(t))&&(this.endDate=this.parseDate(t),this.isBuilt&&this.fillAll())},parseDate:function(t){var e,s,a,o,r,l,h=this.format,c=[];if(n(t))return new Date(t.getFullYear(),t.getMonth(),t.getDate());if(i(t)&&(c=t.match(/\d+/g)||[]),t=new Date,s=t.getFullYear(),a=t.getDate(),o=t.getMonth(),e=h.parts.length,c.length===e)for(l=0;l<e;l++)switch(r=parseInt(c[l],10)||1,h.parts[l]){case"dd":case"d":a=r;break;case"mm":case"m":o=r-1;break;case"yy":s=2e3+r;break;case"yyyy":s=r}return new Date(s,o,a)},formatDate:function(t){var e,i,s,a,o,r=this.format,l="";if(n(t))for(l=r.source,i=t.getFullYear(),a={d:t.getDate(),m:t.getMonth()+1,yy:i.toString().substring(2),yyyy:i},a.dd=(a.d<10?"0":"")+a.d,a.mm=(a.m<10?"0":"")+a.m,e=r.parts.length,o=0;o<e;o++)s=r.parts[o],l=l.replace(s,a[s]);return l},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(m)}},d.LANGUAGES={},d.DEFAULTS={autoShow:!1,autoHide:!1,autoPick:!1,inline:!1,container:null,trigger:null,language:"",format:"mm/dd/yyyy",date:null,startDate:null,endDate:null,startView:0,weekStart:0,yearFirst:!1,yearSuffix:"",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],itemTag:"li",mutedClass:"muted",pickedClass:"picked",disabledClass:"disabled",highlightedClass:"highlighted",template:'<div class="datepicker-container"><div class="datepicker-panel" data-view="years picker"><ul><li data-view="years prev">&lsaquo;</li><li data-view="years current"></li><li data-view="years next">&rsaquo;</li></ul><ul data-view="years"></ul></div><div class="datepicker-panel" data-view="months picker"><ul><li data-view="year prev">&lsaquo;</li><li data-view="year current"></li><li data-view="year next">&rsaquo;</li></ul><ul data-view="months"></ul></div><div class="datepicker-panel" data-view="days picker"><ul><li data-view="month prev">&lsaquo;</li><li data-view="month current"></li><li data-view="month next">&rsaquo;</li></ul><ul data-view="week"></ul><ul data-view="days"></ul></div></div>',offset:10,zIndex:1e3,filter:null,show:null,hide:null,pick:null},d.setDefaults=function(e){e=t.isPlainObject(e)?e:{},e.language&&(e=t.extend({},d.LANGUAGES[e.language],e)),t.extend(d.DEFAULTS,e)},d.other=t.fn.datepicker,t.fn.datepicker=function(e){var s,n=o(arguments,1);return this.each(function(){var a,o,r=t(this),l=r.data(m);if(!l){if(/destroy/.test(e))return;a=t.extend({},r.data(),t.isPlainObject(e)&&e),r.data(m,l=new d(this,a))}i(e)&&t.isFunction(o=l[e])&&(s=o.apply(l,n))}),a(s)?this:s},t.fn.datepicker.Constructor=d,t.fn.datepicker.languages=d.LANGUAGES,t.fn.datepicker.setDefaults=d.setDefaults,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=d.other,this}})},function(t,e){!function(t){t.fn.autocomplete=function(e){function i(){t("#js-codeit").html("You have to code a function or a redirection to display more results ;)")}var s=this,a=t("body"),n=e.case_sensitive||"yes",o=e.min_length||0,r=e.limit_number_suggestions||666,l=[];s.length&&(s.each(function(e){var i=t(this),s=i.attr("id"),a=t('label[for="'+s+'"]'),o=e+1,r=i.data();$combobox_prefix_class=void 0!==r.comboboxPrefixClass?r.comboboxPrefixClass+"-":"",$combobox_help_text=void 0!==r.comboboxHelpText?r.comboboxHelpText:"Use tabulation (or down) key to access and browse suggestions after input. Confirm your choice with enter key, or esc key to close suggestions box.",$list_suggestions=t("#"+i.attr("list")),$combobox_button_title=void 0!==r.comboboxButtonTitle?r.comboboxButtonTitle:"clear this field",$combobox_button_text=void 0!==r.comboboxButtonText?r.comboboxButtonText:"X",$combobox_case_sensitive=void 0!==r.comboboxCaseSensitive?r.comboboxCaseSensitive:n,tablo_temp_suggestions=[],i.attr({"data-number":o,autocorrect:"off",autocapitalize:"off",spellcheck:"off",autocomplete:"off","aria-describedby":$combobox_prefix_class+"help-text"+o,"aria-autocomplete":"list","data-lastval":"","aria-owns":$combobox_prefix_class+"suggest_"+o}),$list_suggestions.find("option").each(function(t,e){tablo_temp_suggestions.push(e.value)}),"no"===$combobox_case_sensitive?l[o]=tablo_temp_suggestions.sort(function(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),t==e?0:t>e?1:-1}):l[o]=tablo_temp_suggestions.sort(),i.wrap('<div class="'+$combobox_prefix_class+'container js-container" data-combobox-prefix-class="'+$combobox_prefix_class+'"></div>');var h=i.parent();h.append('<div id="'+$combobox_prefix_class+"suggest_"+o+'" class="js-suggest '+$combobox_prefix_class+'suggestions"><div role="listbox"></div></div>'),$list_suggestions.remove(),h.prepend('<div id="'+$combobox_prefix_class+"suggestion-text"+o+'" class="js-suggestion-text '+$combobox_prefix_class+'suggestion-text invisible" aria-live="assertive"></div>'),h.prepend('<span id="'+$combobox_prefix_class+"help-text"+o+'" class="'+$combobox_prefix_class+'help-text invisible">'+$combobox_help_text+"</span>"),a.attr("id","label-id-"+s),i.after('<button class="js-clear-button '+$combobox_prefix_class+'clear-button" aria-label="'+$combobox_button_title+'" title="'+$combobox_button_title+'" aria-describedby="label-id-'+s+'" type="button">'+$combobox_button_text+"</button>")}),a.on("keyup",".js-combobox",function(e){var i=t(this),s=i.data(),a=i.parent(),h=a.parents("form"),c=a.data(),d=void 0!==c.comboboxPrefixClass?c.comboboxPrefixClass:"",u=a.find(".js-suggest div"),p=(u.find(".js-suggestion"),a.find(".js-suggestion-text")),f=void 0!==s.suggestionSingle?s.suggestionSingle:"There is ",g=void 0!==s.suggestionPlural?s.suggestionPlural:"There are ",m=void 0!==s.suggestionWord?s.suggestionWord:"suggestion",v=void 0!==s.comboboxMinLength?Math.abs(s.comboboxMinLength):o,y=void 0!==s.comboboxCaseSensitive?s.comboboxCaseSensitive:n,b=void 0!==s.comboboxLimitNumberSuggestions?Math.abs(s.comboboxLimitNumberSuggestions):r,w=void 0!==s.comboboxSearchOption?s.comboboxSearchOption:"beginning",k=void 0!==s.comboboxSeeMoreText?s.comboboxSeeMoreText:"See more results…",x=i.attr("data-number"),D=i.val(),$="";if(13===e.keyCode)h.submit();else if(27!==e.keyCode){i.attr("data-lastval",D);var C=l[x].length,_=0,S=0;if(u.empty(),""!=D&&D.length>=v){for(;_<C;)S<b&&("containing"===w&&"yes"===y&&l[x][_].indexOf(D)>=0||"no"===y&&l[x][_].toUpperCase().indexOf(D.toUpperCase())>=0||"beginning"===w&&"yes"===y&&l[x][_].substring(0,D.length)===D||"no"===y&&l[x][_].substring(0,D.length).toUpperCase()===D.toUpperCase())&&(u.append('<div id="suggestion-'+x+"-"+S+'" class="js-suggestion '+d+'suggestion" tabindex="-1" role="option">'+l[x][_]+"</div>"),S++),_++;if(S>=b&&(u.append('<div id="suggestion-'+x+"-"+S+'" class="js-suggestion js-seemore '+d+'suggestion" tabindex="-1" role="option">'+k+"</div>"),S++),S>1&&($=g+S+" "+m+"s."),1===S&&($=f+S+" "+m+"."),0===S&&($=f+S+" "+m+"."),S>=0){var j=p.text();$!=j&&(suggestions_to_add=t("<p>").text($),p.attr("aria-live","polite"),p.empty(),p.append(suggestions_to_add))}}}}).on("click",function(e){var i=t(e.target),s=t(".js-suggestion-text:not(:empty)"),a=s.parents(".js-container"),n=a.find(".js-combobox"),o=a.find(".js-suggest div");i.is(".js-suggestion")||i.is(".js-combobox")||!s.length||(n.val(n.attr("data-lastval")),o.empty(),s.empty())}).on("keydown",".js-combobox",function(e){var i=t(this),s=i.parent(),a=s.find(".js-combobox"),n=s.find(".js-suggest div"),o=n.find(".js-suggestion"),r=s.find(".js-suggestion-text"),l=void 0===i.attr("data-combobox-notab-options"),h=o.first();(!e.shiftKey&&9==e.keyCode&&l||40==e.keyCode)&&o.length&&(a.val(h.html()),o.first().focus(),e.preventDefault()),(27==e.keyCode||l===!1&&9==e.keyCode)&&(a.val(a.attr("data-lastval")),n.empty(),r.empty(),27==e.keyCode&&(e.preventDefault(),setTimeout(function(){a.focus()},300)))}).on("keydown",".js-suggestion",function(e){var s=t(this),a=s.parents(".js-container"),n=a.find(".js-combobox"),o=void 0===n.attr("data-combobox-notab-options"),r=a.find(".js-suggest div"),l=a.find(".js-suggestion-text"),h=s.next(),c=s.prev();if((27==e.keyCode||o===!1&&9==e.keyCode)&&(27==e.keyCode&&(n.val(n.attr("data-lastval")),r.empty(),l.empty(),setTimeout(function(){n.focus()},300),e.preventDefault()),o===!1&&9==e.keyCode&&(r.empty(),l.empty(),n.focus())),13!=e.keyCode&&32!=e.keyCode||(s.hasClass("js-seemore")?(n.val(n.attr("data-lastval")),r.empty(),l.empty(),setTimeout(function(){n.focus()},300),setTimeout(function(){i()},301),e.preventDefault()):(n.val(s.html()),n.attr("data-lastval",s.html()),r.empty(),l.empty(),setTimeout(function(){n.focus()},300),e.preventDefault())),!e.shiftKey&&9==e.keyCode&&o||40==e.keyCode){if(h.length)n.val(h.html()),h.focus();else if(n.val(n.attr("data-lastval")),e.shiftKey||9!=e.keyCode)setTimeout(function(){n.focus()},300);else{var d=jQuery.Event("keydown");d.which=27,d.keyCode=27,s.trigger(d)}e.preventDefault()}(e.shiftKey&&9==e.keyCode&&o||38==e.keyCode)&&(c.length?(n.val(c.html()),c.focus()):n.val(n.attr("data-lastval")).focus(),e.preventDefault())}).on("click",".js-clear-button",function(e){var i=t(this),s=i.parent(),a=s.find(".js-combobox"),n=s.find(".js-suggest div"),o=s.find(".js-suggestion-text");n.empty(),o.empty(),a.val(""),a.attr("data-lastval","")}).on("click",".js-suggestion",function(e){var s=t(this),a=s.html(),n=s.parents(".js-container"),o=n.find(".js-combobox"),r=n.find(".js-suggest div"),l=n.find(".js-suggestion-text");s.hasClass("js-seemore")?(r.empty(),l.empty(),o.focus(),i()):(o.val(a).focus(),r.empty(),l.empty())}))}}(jQuery)},function(t,e,i){"use strict";var s=i(5),a=i.i(s.a)(function(){var t=$(this).val(),e=$(this);if(!(t.length<2)&&0==n){n=!0;var i=null!=$("#states").val()?$("#states").val().toString():"",s={text:t,jurisdiction:""!=i?i:"US"};$.ajax({type:"GET",url:"/legislative-compass/_search_committee_lookup",data:s,success:function(i){if($("#committee-filter").chosen({no_results_text:"No results found."}),n=!1,null!=i&&void 0==i.success){var s=$("#committee-filter").val()||[],a=i.map(function(t){return t.name}),o=a.concat(s.filter(function(t){return a.indexOf(t)<0})),r=o.map(function(t){var e=document.createElement("option");return e.innerText=t,e});t=e.val(),$("#committee-filter").html(r).val(s).trigger("chosen:updated"),e.val(t)}}})}},333),n=!1;$(document).on("input","#committeeFilterList input",a)},function(t,e){!function(){function t(){var i,s=this.querySelectorAll("template"),a=[],n=0;if(e){for(i=this.cloneNode(!0),s=i.content.querySelectorAll("template");s[n];n++)s[n].clone=t;return i}for(;s[n];n++)a.push(s[n].content);for(i=this.cloneNode(!0),i.content=this.content,i.clone=t,s=i.querySelectorAll("template"),n=0;s[n];n++)s[n].content=a[n],s[n].clone=t;return i}var e="content"in document.createElement("template");if(!e)for(var i,s,a,n,o,r=Array.prototype.slice.call(document.getElementsByTagName("template")),l=0;i=r[l++];){for(s=i.children,a=document.createDocumentFragment(),o=0;n=s[o];o++)a.appendChild(n);i.content=a}for(var i,r=document.querySelectorAll("template"),l=0;i=r[l++];)i.clone=t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(3),a=(i.n(s),i(0)),n=(i.n(a),i(1));i.n(n),i(2);$(document).ready(function(){var t=new Date;$(".js-datepicker").datepicker({daysMin:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],endDate:t,offset:-1}),$(".js-chosen").chosen()}),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&$("html").addClass("ios")},function(t,e,i){"use strict";function s(t,e,i){var s;return function(){var a=this,n=arguments,o=function(){s=null,i||t.apply(a,n)},r=i&&!s;clearTimeout(s),s=setTimeout(o,e),r&&t.apply(a,n)}}e.a=s},function(t,e){t.exports=jQuery}]);
{
"name": "politico-assets",
"version": "0.2.15",
"version": "0.2.16",
"description": "Minified front end assets used by politico.com",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc