diff --git a/src/assets/js/archive-list.js b/src/assets/js/archive-list.js new file mode 100644 index 0000000..cdfe35f --- /dev/null +++ b/src/assets/js/archive-list.js @@ -0,0 +1,2 @@ +/*! For license information please see archive-list.js.LICENSE.txt */ +(()=>{var t={559:(t,e,n)=>{t.exports=n(335)},786:(t,e,n)=>{"use strict";var r=n(266),o=n(608),i=n(159),a=n(568),s=n(943),c=n(201),u=n(745),l=n(979),f=n(46),p=n(760);t.exports=function(t){return new Promise((function(e,n){var d,h=t.data,v=t.headers,m=t.responseType;function y(){t.cancelToken&&t.cancelToken.unsubscribe(d),t.signal&&t.signal.removeEventListener("abort",d)}r.isFormData(h)&&delete v["Content-Type"];var g=new XMLHttpRequest;if(t.auth){var _=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+b)}var w=s(t.baseURL,t.url);function x(){if(g){var r="getAllResponseHeaders"in g?c(g.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:t,request:g};o((function(t){e(t),y()}),(function(t){n(t),y()}),i),g=null}}if(g.open(t.method.toUpperCase(),a(w,t.params,t.paramsSerializer),!0),g.timeout=t.timeout,"onloadend"in g?g.onloadend=x:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(x)},g.onabort=function(){g&&(n(l("Request aborted",t,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(l("Network Error",t,null,g)),g=null},g.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||f.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var C=(t.withCredentials||u(w))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;C&&(v[t.xsrfHeaderName]=C)}"setRequestHeader"in g&&r.forEach(v,(function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete v[e]:g.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(g.withCredentials=!!t.withCredentials),m&&"json"!==m&&(g.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&g.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(d=function(t){g&&(n(!t||t&&t.type?new p("canceled"):t),g.abort(),g=null)},t.cancelToken&&t.cancelToken.subscribe(d),t.signal&&(t.signal.aborted?d():t.signal.addEventListener("abort",d))),h||(h=null),g.send(h)}))}},335:(t,e,n)=>{"use strict";var r=n(266),o=n(345),i=n(929),a=n(650),s=function t(e){var n=new i(e),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return t(a(e,n))},s}(n(46));s.Axios=i,s.Cancel=n(760),s.CancelToken=n(510),s.isCancel=n(825),s.VERSION=n(992).version,s.all=function(t){return Promise.all(t)},s.spread=n(346),s.isAxiosError=n(276),t.exports=s,t.exports.default=s},760:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},510:(t,e,n)=>{"use strict";var r=n(760);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},929:(t,e,n)=>{"use strict";var r=n(266),o=n(568),i=n(252),a=n(29),s=n(650),c=n(123),u=c.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=t;n.length;){var p=n.shift(),d=n.shift();try{f=p(f)}catch(t){d(t);break}}try{o=a(f)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=l},252:(t,e,n)=>{"use strict";var r=n(266);function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},943:(t,e,n)=>{"use strict";var r=n(406),o=n(27);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},979:(t,e,n)=>{"use strict";var r=n(50);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},29:(t,e,n)=>{"use strict";var r=n(266),o=n(661),i=n(825),a=n(46),s=n(760);function c(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return c(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},50:t=>{"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},650:(t,e,n)=>{"use strict";var r=n(266);t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function s(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function c(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,o=e(t);r.isUndefined(o)&&e!==c||(n[t]=o)})),n}},608:(t,e,n)=>{"use strict";var r=n(979);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},661:(t,e,n)=>{"use strict";var r=n(266),o=n(46);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},46:(t,e,n)=>{"use strict";var r=n(266),o=n(490),i=n(50),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(786)),c),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||u.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),t.exports=u},992:t=>{t.exports={version:"0.23.0"}},345:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(266);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},27:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},159:(t,e,n)=>{"use strict";var r=n(266);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},406:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},276:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},745:(t,e,n)=>{"use strict";var r=n(266);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},490:(t,e,n)=>{"use strict";var r=n(266);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},201:(t,e,n)=>{"use strict";var r=n(266),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},346:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},123:(t,e,n)=>{"use strict";var r=n(992).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var i={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(o(r," has been removed"+(e?" in "+e:"")));return e&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),o=r.length;o-- >0;){var i=r[o],a=e[i];if(a){var s=t[i],c=void 0===s||a(s,i,t);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},266:(t,e,n)=>{"use strict";var r=n(345),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},738:t=>{"use strict";t.exports=function(t){return t[1]}},268:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(738),o=n.n(r),i=n(705),a=n.n(i)()(o());a.push([t.id,"\n.ascToggle[data-v-abbdcac0] {\n color: lightgray;\n}\n.activeColumn[data-v-abbdcac0] {\n color: black;\n}\n.accordion-title[data-v-abbdcac0] {\n cursor: pointer;\n}\n",""]);const s=a},226:(t,e,n)=>{var r=n(268);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(23).Z)("2c730854",r,!1,{})},23:(t,e,n)=>{"use strict";function r(t,e){for(var n=[],r={},o=0;oh});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},f=null,p="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,n,o){u=n,f=o||{};var a=r(t,e);return v(a),function(e){for(var n=[],o=0;on.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{VERSION:()=>ls,after:()=>Bu,all:()=>al,allKeys:()=>xc,any:()=>sl,assign:()=>Bc,before:()=>Fu,bind:()=>Eu,bindAll:()=>Tu,chain:()=>Ou,chunk:()=>Vl,clone:()=>Hc,collect:()=>tl,compact:()=>Ml,compose:()=>zu,constant:()=>oc,contains:()=>cl,countBy:()=>bl,create:()=>Vc,debounce:()=>Lu,default:()=>ql,defaults:()=>Fc,defer:()=>Pu,delay:()=>Nu,detect:()=>Yu,difference:()=>Pl,drop:()=>$l,each:()=>Qu,escape:()=>pu,every:()=>al,extend:()=>zc,extendOwn:()=>Bc,filter:()=>ol,find:()=>Yu,findIndex:()=>Wu,findKey:()=>Vu,findLastIndex:()=>qu,findWhere:()=>Zu,first:()=>jl,flatten:()=>Nl,foldl:()=>nl,foldr:()=>rl,forEach:()=>Qu,functions:()=>Dc,get:()=>Kc,groupBy:()=>gl,has:()=>Jc,head:()=>jl,identity:()=>Yc,include:()=>cl,includes:()=>cl,indexBy:()=>_l,indexOf:()=>Ku,initial:()=>El,inject:()=>nl,intersection:()=>Rl,invert:()=>Lc,invoke:()=>ul,isArguments:()=>ec,isArray:()=>Zs,isArrayBuffer:()=>Vs,isBoolean:()=>Ps,isDataView:()=>Ys,isDate:()=>zs,isElement:()=>Is,isEmpty:()=>hc,isEqual:()=>wc,isError:()=>Fs,isFinite:()=>nc,isFunction:()=>qs,isMap:()=>$c,isMatch:()=>vc,isNaN:()=>rc,isNull:()=>Ms,isNumber:()=>Rs,isObject:()=>Ts,isRegExp:()=>Bs,isSet:()=>Mc,isString:()=>Ds,isSymbol:()=>Us,isTypedArray:()=>lc,isUndefined:()=>Ns,isWeakMap:()=>Tc,isWeakSet:()=>Nc,iteratee:()=>nu,keys:()=>dc,last:()=>Tl,lastIndexOf:()=>Ju,map:()=>tl,mapObject:()=>ou,matcher:()=>Zc,matches:()=>Zc,max:()=>pl,memoize:()=>Mu,methods:()=>Dc,min:()=>dl,mixin:()=>Wl,negate:()=>Ru,noop:()=>iu,now:()=>uu,object:()=>Fl,omit:()=>kl,once:()=>Uu,pairs:()=>Ic,partial:()=>ku,partition:()=>wl,pick:()=>Sl,pluck:()=>ll,property:()=>Qc,propertyOf:()=>au,random:()=>cu,range:()=>Ul,reduce:()=>nl,reduceRight:()=>rl,reject:()=>il,rest:()=>$l,restArguments:()=>$s,result:()=>wu,sample:()=>hl,select:()=>ol,shuffle:()=>vl,size:()=>Ol,some:()=>sl,sortBy:()=>ml,sortedIndex:()=>Gu,tail:()=>$l,take:()=>jl,tap:()=>Wc,template:()=>bu,templateSettings:()=>hu,throttle:()=>Iu,times:()=>su,toArray:()=>Cl,toPath:()=>qc,transpose:()=>zl,unescape:()=>du,union:()=>Dl,uniq:()=>Ll,unique:()=>Ll,uniqueId:()=>Cu,unzip:()=>zl,values:()=>Pc,where:()=>fl,without:()=>Il,wrap:()=>Du,zip:()=>Bl});var e=Object.freeze({});function r(t){return null==t}function o(t){return null!=t}function i(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function l(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function g(t,e){return y.call(t,e)}function _(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var b=/-(\w)/g,w=_((function(t){return t.replace(b,(function(t,e){return e?e.toUpperCase():""}))})),x=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,O=_((function(t){return t.replace(C,"-$1").toLowerCase()})),A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function S(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function k(t,e){for(var n in e)t[n]=e[n];return t}function E(t){for(var e={},n=0;n0,K=q&&q.indexOf("edge/")>0,J=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===W),Y=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),Z={}.watch,Q=!1;if(V)try{var tt={};Object.defineProperty(tt,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,tt)}catch(t){}var et=function(){return void 0===B&&(B=!V&&!H&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),B},nt=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function rt(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,it="undefined"!=typeof Symbol&&rt(Symbol)&&"undefined"!=typeof Reflect&&rt(Reflect.ownKeys);ot="undefined"!=typeof Set&&rt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var at=j,st=0,ct=function(){this.id=st++,this.subs=[]};ct.prototype.addSub=function(t){this.subs.push(t)},ct.prototype.removeSub=function(t){m(this.subs,t)},ct.prototype.depend=function(){ct.target&&ct.target.addDep(this)},ct.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(i&&!g(o,"default"))a=!1;else if(""===a||a===O(t)){var c=Bt(String,o.type);(c<0||s0&&(le((s=fe(s,(e||"")+"_"+n))[0])&&le(u)&&(l[c]=vt(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?le(u)?l[c]=vt(u.text+s):""!==s&&l.push(vt(s)):le(s)&&le(u)?l[c]=vt(u.text+s.text):(i(t._isVList)&&o(s.tag)&&r(s.key)&&o(e)&&(s.key="__vlist"+e+"_"+n+"__"),l.push(s)));return l}function pe(t,e){if(t){for(var n=Object.create(null),r=it?Reflect.ownKeys(t):Object.keys(t),o=0;o0,a=t?!!t.$stable:!i,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==e&&s===r.$key&&!i&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=ye(n,c,t[c]))}else o={};for(var u in n)u in o||(o[u]=ge(n,u));return t&&Object.isExtensible(t)&&(t._normalized=o),z(o,"$stable",a),z(o,"$key",s),z(o,"$hasNormal",i),o}function ye(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!ve(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function ge(t,e){return function(){return t[e]}}function _e(t,e){var n,r,i,a,c;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(fn=function(){return pn.now()})}function dn(){var t,e;for(ln=fn(),cn=!0,rn.sort((function(t,e){return t.id-e.id})),un=0;unun&&rn[n].id>t.id;)n--;rn.splice(n+1,0,t)}else rn.push(t);sn||(sn=!0,te(dn))}}(this)},vn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';Ut(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var mn={enumerable:!0,configurable:!0,get:j,set:j};function yn(t,e,n){mn.get=function(){return this[e][n]},mn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,mn)}var gn={lazy:!0};function _n(t,e,n){var r=!et();"function"==typeof n?(mn.get=r?bn(e):wn(n),mn.set=j):(mn.get=n.get?r&&!1!==n.cache?bn(e):wn(n.get):j,mn.set=n.set||j),Object.defineProperty(t,e,mn)}function bn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ct.target&&e.depend(),e.value}}function wn(t){return function(){return t.call(this,this)}}function xn(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var Cn=0;function On(t){var e=t.options;if(t.super){var n=On(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=n[o]);return e}(t);r&&k(t.extendOptions,r),(e=t.options=Pt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function An(t){this._init(t)}function Sn(t){return t&&(t.Ctor.options.name||t.tag)}function kn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,!("[object RegExp]"!==c.call(n))&&t.test(e));var n}function En(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var a=n[i];if(a){var s=a.name;s&&!e(s)&&jn(n,i,r,o)}}}function jn(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,m(n,e)}!function(t){t.prototype._init=function(t){var n=this;n._uid=Cn++,n._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(n,t):n.$options=Pt(On(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(n),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Je(t,e)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,o=r&&r.context;t.$slots=de(n._renderChildren,o),t.$scopedSlots=e,t._c=function(e,n,r,o){return Fe(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return Fe(t,e,n,r,o,!0)};var i=r&&r.data;Ot(t,"$attrs",i&&i.attrs||e,null,!0),Ot(t,"$listeners",n._parentListeners||e,null,!0)}(n),nn(n,"beforeCreate"),function(t){var e=pe(t.$options.inject,t);e&&(wt(!1),Object.keys(e).forEach((function(n){Ot(t,n,e[n])})),wt(!0))}(n),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[];t.$parent&&wt(!1);var i=function(i){o.push(i);var a=Lt(i,e,n,t);Ot(r,i,a),i in t||yn(t,"_props",i)};for(var a in e)i(a);wt(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?j:A(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){lt();try{return t.call(e,e)}catch(t){return Ft(t,e,"data()"),{}}finally{ft()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),o=t.$options.props,i=(t.$options.methods,r.length);i--;){var a=r[i];o&&g(o,a)||(n=void 0,36===(n=(a+"").charCodeAt(0))||95===n)||yn(t,"_data",a)}Ct(e,!0)}(t):Ct(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=et();for(var o in e){var i=e[o],a="function"==typeof i?i:i.get;r||(n[o]=new vn(t,a||j,j,gn)),o in t||_n(t,o,i)}}(t,e.computed),e.watch&&e.watch!==Z&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o1?S(n):n;for(var r=S(arguments,1),o='event handler for "'+t+'"',i=0,a=n.length;iparseInt(this.max)&&jn(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)jn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){En(t,(function(t){return kn(e,t)}))})),this.$watch("exclude",(function(e){En(t,(function(t){return!kn(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=qe(t),n=e&&e.componentOptions;if(n){var r=Sn(n),o=this.include,i=this.exclude;if(o&&(!r||!kn(o,r))||i&&r&&kn(i,r))return e;var a=this.cache,s=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,m(s,c),s.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}},Mn={KeepAlive:Tn};!function(t){var e={get:function(){return R}};Object.defineProperty(t,"config",e),t.util={warn:at,extend:k,mergeOptions:Pt,defineReactive:Ot},t.set=At,t.delete=St,t.nextTick=te,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),L.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,k(t.options.components,Mn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Pt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||n.options.name,a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Pt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)yn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)_n(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,L.forEach((function(t){a[t]=n[t]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=k({},a.options),o[r]=a,a}}(t),function(t){L.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(An),Object.defineProperty(An.prototype,"$isServer",{get:et}),Object.defineProperty(An.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(An,"FunctionalRenderContext",{value:Pe}),An.version="2.6.14";var Nn=h("style,class"),Pn=h("input,textarea,option,select,progress"),In=h("contenteditable,draggable,spellcheck"),Ln=h("events,caret,typing,plaintext-only"),Dn=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Rn="http://www.w3.org/1999/xlink",zn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Bn=function(t){return zn(t)?t.slice(6,t.length):""},Fn=function(t){return null==t||!1===t};function Un(t,e){return{staticClass:Vn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Vn(t,e){return t?e?t+" "+e:t:e||""}function Hn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?dr(t,e,n):Dn(e)?Fn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):In(e)?t.setAttribute(e,function(t,e){return Fn(e)||"false"===e?"false":"contenteditable"===t&&Ln(e)?e:"true"}(e,n)):zn(e)?Fn(n)?t.removeAttributeNS(Rn,Bn(e)):t.setAttributeNS(Rn,e,n):dr(t,e,n)}function dr(t,e,n){if(Fn(n))t.removeAttribute(e);else{if(G&&!X&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var hr={create:fr,update:fr};function vr(t,e){var n=e.elm,i=e.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=function(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Un(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Un(e,n.data));return i=e.staticClass,a=e.class,o(i)||o(a)?Vn(i,Hn(a)):"";var i,a}(e),c=n._transitionClasses;o(c)&&(s=Vn(s,Hn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var mr,yr={create:vr,update:vr};function gr(t,e,n){var r=mr;return function o(){var i=e.apply(null,arguments);null!==i&&wr(t,o,n,r)}}var _r=qt&&!(Y&&Number(Y[1])<=53);function br(t,e,n,r){if(_r){var o=ln,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}mr.addEventListener(t,e,Q?{capture:n,passive:r}:n)}function wr(t,e,n,r){(r||mr).removeEventListener(t,e._wrapper||e,n)}function xr(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};mr=e.elm,function(t){if(o(t.__r)){var e=G?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ae(n,i,br,wr,gr,e.context),mr=void 0}}var Cr,Or={create:xr,update:xr};function Ar(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in o(c.__ob__)&&(c=e.data.domProps=k({},c)),s)n in c||(a[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=i;var u=r(i)?"":String(i);Sr(a,u)&&(a.value=u)}else if("innerHTML"===n&&Gn(a.tagName)&&r(a.innerHTML)){(Cr=Cr||document.createElement("div")).innerHTML=""+i+"";for(var l=Cr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(i!==s[n])try{a[n]=i}catch(t){}}}}function Sr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return d(n)!==d(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var kr={create:Ar,update:Ar},Er=_((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function jr(t){var e=$r(t.style);return t.staticStyle?k(t.staticStyle,e):e}function $r(t){return Array.isArray(t)?E(t):"string"==typeof t?Er(t):t}var Tr,Mr=/^--/,Nr=/\s*!important$/,Pr=function(t,e,n){if(Mr.test(e))t.style.setProperty(e,n);else if(Nr.test(n))t.style.setProperty(O(e),n.replace(Nr,""),"important");else{var r=Lr(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(zr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Fr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(zr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Ur(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&k(e,Vr(t.name||"v")),k(e,t),e}return"string"==typeof t?Vr(t):void 0}}var Vr=_((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Hr=V&&!X,Wr="transition",qr="animation",Gr="transition",Xr="transitionend",Kr="animation",Jr="animationend";Hr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Gr="WebkitTransition",Xr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Kr="WebkitAnimation",Jr="webkitAnimationEnd"));var Yr=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Zr(t){Yr((function(){Yr(t)}))}function Qr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Br(t,e))}function to(t,e){t._transitionClasses&&m(t._transitionClasses,e),Fr(t,e)}function eo(t,e,n){var r=ro(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Wr?Xr:Jr,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c0&&(n=Wr,l=a,f=i.length):e===qr?u>0&&(n=qr,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Wr:qr:null)?n===Wr?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Wr&&no.test(r[Gr+"Property"])}}function oo(t,e){for(;t.length1}function lo(t,e){!0!==e.data.show&&ao(e)}var fo=function(t){var e,n,s={},c=t.modules,u=t.nodeOps;for(e=0;eh?_(t,r(n[y+1])?null:n[y+1].elm,n,d,y,i):d>y&&w(e,p,h)}(p,v,y,n,l):o(y)?(o(t.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,n)):o(v)?w(v,0,v.length-1):o(t.text)&&u.setTextContent(p,""):t.text!==e.text&&u.setTextContent(p,e.text),o(h)&&o(d=h.hook)&&o(d=d.postpatch)&&d(t,e)}}}function A(t,e,n){if(i(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==i&&(a.selected=i);else if(M(yo(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function mo(t,e){return e.every((function(e){return!M(e,t)}))}function yo(t){return"_value"in t?t._value:t.value}function go(t){t.target.composing=!0}function _o(t){t.target.composing&&(t.target.composing=!1,bo(t.target,"input"))}function bo(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function wo(t){return!t.componentInstance||t.data&&t.data.transition?t:wo(t.componentInstance._vnode)}var xo={bind:function(t,e,n){var r=e.value,o=(n=wo(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,ao(n,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=wo(n)).data&&n.data.transition?(n.data.show=!0,r?ao(n,(function(){t.style.display=t.__vOriginalDisplay})):so(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}},Co={model:po,show:xo},Oo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ao(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ao(qe(e.children)):t}function So(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[w(i)]=o[i];return e}function ko(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Eo=function(t){return t.tag||ve(t)},jo=function(t){return"show"===t.name},$o={name:"transition",props:Oo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Eo)).length){var r=this.mode,o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Ao(o);if(!i)return o;if(this._leaving)return ko(t,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=So(this),u=this._vnode,l=Ao(u);if(i.data.directives&&i.data.directives.some(jo)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!ve(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=k({},c);if("out-in"===r)return this._leaving=!0,se(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ko(t,o);if("in-out"===r){if(ve(i))return u;var p,d=function(){p()};se(c,"afterEnter",d),se(c,"enterCancelled",d),se(f,"delayLeave",(function(t){p=t}))}}return o}}},To=k({tag:String,moveClass:String},Oo);delete To.mode;var Mo={props:To,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Ze(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=So(this),s=0;s-1?Kn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Kn[t]=/HTMLUnknownElement/.test(e.toString())},k(An.options.directives,Co),k(An.options.components,Lo),An.prototype.__patch__=V?fo:j,An.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=ht),nn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new vn(t,r,j,{before:function(){t._isMounted&&!t._isDestroyed&&nn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,nn(t,"mounted")),t}(this,t=t&&V?function(t){return"string"==typeof t?document.querySelector(t)||document.createElement("div"):t}(t):void 0,e)},V&&setTimeout((function(){R.devtools&&nt&&nt.emit("init",An)}),0);const Do=An;var Ro=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Search",{attrs:{url_search_text:t.url_search_text}}),t._v(" "),n("section",{staticClass:"collections-list"},[t._m(0),t._v(" "),n("main",{},[n("article",{},[n("ul",{staticClass:"accordion"},[n("li",{staticClass:"accordion-item title",attrs:{"data-accordion-item":"",disabled:""}},[n("div",{staticClass:"accordion-title"},[n("ul",{},[n("li",{staticClass:"title",on:{click:function(e){return t.setActiveColumn("title")}}},[t._v("\n Title\n "),n("span",{staticClass:"ascToggle",class:{activeColumn:t.isActiveCol("title")}},[n("font-awesome-icon",{attrs:{icon:t.getOrderIcon("title"),size:"1x"}})],1)]),t._v(" "),n("li",{staticClass:"curator",on:{click:function(e){return t.setActiveColumn("artist")}}},[t._v("\n Artist\n "),n("span",{staticClass:"ascToggle",class:{activeColumn:t.isActiveCol("artist")}},[n("font-awesome-icon",{attrs:{icon:t.getOrderIcon("artist"),size:"1x"}})],1)]),t._v(" "),n("li",{staticClass:"collection-name",on:{click:function(e){return t.setActiveColumn("collection")}}},[t._v("\n Collection\n "),n("span",{staticClass:"ascToggle",class:{activeColumn:t.isActiveCol("collection")}},[n("font-awesome-icon",{attrs:{icon:t.getOrderIcon("collection"),size:"1x"}})],1)]),t._v(" "),n("li",{staticClass:"date",on:{click:function(e){return t.setActiveColumn("date")}}},[t._v("\n Date\n "),n("span",{staticClass:"ascToggle",class:{activeColumn:t.isActiveCol("date")}},[n("font-awesome-icon",{attrs:{icon:t.getOrderIcon("date"),size:"1x"}})],1)])])])]),t._v(" "),t._l(t.sites,(function(e){return n("li",{key:e.id,staticClass:"accordion-item",attrs:{"data-accordion-item":""}},[n("div",{staticClass:"accordion-title",attrs:{role:"tab","aria-expanded":"false","aria-selected":"false"}},[n("ul",{},[n("li",{staticClass:"title"},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),n("li",{staticClass:"curator"},[t._v("\n "+t._s(e.currator)+"\n ")]),t._v(" "),n("li",{staticClass:"collection-name"},[t._v("\n "+t._s(e.collection)+"\n ")]),t._v(" "),n("li",{staticClass:"date"},[t._v("\n "+t._s(e.project_date)+"\n ")])])]),t._v(" "),n("aside",{staticClass:"accordion-content"},[n("section",[n("figure",[n("img",{attrs:{src:e.thumbnail}})]),t._v(" "),n("p",[n("span",{domProps:{innerHTML:t._s(e.summary)}}),t._v(" "),n("a",{staticClass:"button small",attrs:{href:e.url}},[t._v("\n View\n ")])])])])])}))],2),t._v(" "),t.more_sites_to_display?n("div",{staticClass:"load_more"},[n("button",{on:{click:function(e){return t.loadMoreSites()}}},[t._v("\n Load more\n ")])]):t._e()])]),t._v(" "),t._m(1)])],1)};Ro._withStripped=!0;var zo=n(559),Bo=n.n(zo),Fo=("undefined"!=typeof window?window:void 0!==n.g?n.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function Uo(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,r=(n=function(e){return e.original===t},e.filter(n)[0]);if(r)return r.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach((function(n){o[n]=Uo(t[n],e)})),o}function Vo(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function Ho(t){return null!==t&&"object"==typeof t}var Wo=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},qo={namespaced:{configurable:!0}};qo.namespaced.get=function(){return!!this._rawModule.namespaced},Wo.prototype.addChild=function(t,e){this._children[t]=e},Wo.prototype.removeChild=function(t){delete this._children[t]},Wo.prototype.getChild=function(t){return this._children[t]},Wo.prototype.hasChild=function(t){return t in this._children},Wo.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Wo.prototype.forEachChild=function(t){Vo(this._children,t)},Wo.prototype.forEachGetter=function(t){this._rawModule.getters&&Vo(this._rawModule.getters,t)},Wo.prototype.forEachAction=function(t){this._rawModule.actions&&Vo(this._rawModule.actions,t)},Wo.prototype.forEachMutation=function(t){this._rawModule.mutations&&Vo(this._rawModule.mutations,t)},Object.defineProperties(Wo.prototype,qo);var Go,Xo=function(t){this.register([],t,!1)};function Ko(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return;Ko(t.concat(r),e.getChild(r),n.modules[r])}}Xo.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},Xo.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},Xo.prototype.update=function(t){Ko([],this.root,t)},Xo.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=new Wo(e,n);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o),e.modules&&Vo(e.modules,(function(e,o){r.register(t.concat(o),e,n)}))},Xo.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},Xo.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var Jo=function(t){var e=this;void 0===t&&(t={}),!Go&&"undefined"!=typeof window&&window.Vue&&oi(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Xo(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Go,this._makeLocalGettersCache=Object.create(null);var o=this,i=this.dispatch,a=this.commit;this.dispatch=function(t,e){return i.call(o,t,e)},this.commit=function(t,e,n){return a.call(o,t,e,n)},this.strict=r;var s=this._modules.root.state;ei(this,s,[],this._modules.root),ti(this,s),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:Go.config.devtools)&&function(t){Fo&&(t._devtoolHook=Fo,Fo.emit("vuex:init",t),Fo.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){Fo.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){Fo.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},Yo={state:{configurable:!0}};function Zo(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function Qo(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;ei(t,n,[],t._modules.root,!0),ti(t,n,e)}function ti(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,i={};Vo(o,(function(e,n){i[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=Go.config.silent;Go.config.silent=!0,t._vm=new Go({data:{$$state:e},computed:i}),Go.config.silent=a,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),Go.nextTick((function(){return r.$destroy()})))}function ei(t,e,n,r,o){var i=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!i&&!o){var s=ni(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){Go.set(s,c,r.state)}))}var u=r.context=function(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=ri(n,r,o),a=i.payload,s=i.options,c=i.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:r?t.commit:function(n,r,o){var i=ri(n,r,o),a=i.payload,s=i.options,c=i.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return ni(t.state,n)}}}),o}(t,a,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,a+n,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,o=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e){var o,i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,r,o,u)})),r.forEachGetter((function(e,n){!function(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}(t,a+n,e,u)})),r.forEachChild((function(r,i){ei(t,e,n.concat(i),r,o)}))}function ni(t,e){return e.reduce((function(t,e){return t[e]}),t)}function ri(t,e,n){return Ho(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function oi(t){Go&&t===Go||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(Go=t)}Yo.state.get=function(){return this._vm._data.$$state},Yo.state.set=function(t){},Jo.prototype.commit=function(t,e,n){var r=this,o=ri(t,e,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},Jo.prototype.dispatch=function(t,e){var n=this,r=ri(t,e),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){}var c=s.length>1?Promise.all(s.map((function(t){return t(i)}))):s[0](i);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(t){}e(t)}))}))}},Jo.prototype.subscribe=function(t,e){return Zo(t,this._subscribers,e)},Jo.prototype.subscribeAction=function(t,e){return Zo("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},Jo.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},Jo.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},Jo.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),ei(this,this.state,t,this._modules.get(t),n.preserveState),ti(this,this.state)},Jo.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=ni(e.state,t.slice(0,-1));Go.delete(n,t[t.length-1])})),Qo(this)},Jo.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},Jo.prototype.hotUpdate=function(t){this._modules.update(t),Qo(this,!0)},Jo.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(Jo.prototype,Yo);var ii=li((function(t,e){var n={};return ui(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=fi(this.$store,0,t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),ai=li((function(t,e){var n={};return ui(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=fi(this.$store,0,t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),si=li((function(t,e){var n={};return ui(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||fi(this.$store,0,t))return this.$store.getters[o]},n[r].vuex=!0})),n})),ci=li((function(t,e){var n={};return ui(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=fi(this.$store,0,t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n}));function ui(t){return function(t){return Array.isArray(t)||Ho(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function li(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function fi(t,e,n){return t._modulesNamespaceMap[n]}function pi(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function di(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function hi(){var t=new Date;return" @ "+vi(t.getHours(),2)+":"+vi(t.getMinutes(),2)+":"+vi(t.getSeconds(),2)+"."+vi(t.getMilliseconds(),3)}function vi(t,e){return function(t,e){return new Array(e+1).join("0")}(0,e-t.toString().length)+t}var mi={Store:Jo,install:oi,version:"3.6.2",mapState:ii,mapMutations:ai,mapGetters:si,mapActions:ci,createNamespacedHelpers:function(t){return{mapState:ii.bind(null,t),mapGetters:si.bind(null,t),mapMutations:ai.bind(null,t),mapActions:ci.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var i=t.actionFilter;void 0===i&&(i=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var c=t.logActions;void 0===c&&(c=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var l=Uo(t.state);void 0!==u&&(s&&t.subscribe((function(t,i){var a=Uo(i);if(n(t,l,a)){var s=hi(),c=o(t),f="mutation "+t.type+s;pi(u,f,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(l)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),di(u)}l=a})),c&&t.subscribeAction((function(t,n){if(i(t,n)){var r=hi(),o=a(t),s="action "+t.type+r;pi(u,s,e),u.log("%c action","color: #03A9F4; font-weight: bold",o),di(u)}})))}}};const yi=mi;function gi(t){return gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gi(t)}function _i(t,e){for(var n=0;n0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function pa(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function da(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n],";")}),"")}function ha(t){return t.size!==la.size||t.x!==la.x||t.y!==la.y||t.rotate!==la.rotate||t.flipX||t.flipY}function va(t){var e=t.transform,n=t.containerWidth,r=t.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*e.x,", ").concat(32*e.y,") "),a="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var ma={x:0,y:0,width:"100%",height:"100%"};function ya(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function ga(t){var e=t.icons,n=e.main,r=e.mask,o=t.prefix,i=t.iconName,a=t.transform,s=t.symbol,c=t.title,u=t.maskId,l=t.titleId,f=t.extra,p=t.watchable,d=void 0!==p&&p,h=r.found?r:n,v=h.width,m=h.height,y="fak"===o,g=y?"":"fa-w-".concat(Math.ceil(v/m*16)),_=[zi.replacementClass,i?"".concat(zi.familyPrefix,"-").concat(i):"",g].filter((function(t){return-1===f.classes.indexOf(t)})).filter((function(t){return""!==t||!!t})).concat(f.classes).join(" "),b={children:[],attributes:wi({},f.attributes,{"data-prefix":o,"data-icon":i,class:_,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(m)})},w=y&&!~f.classes.indexOf("fa-fw")?{width:"".concat(v/m*16*.0625,"em")}:{};d&&(b.attributes["data-fa-i2svg"]=""),c&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(l||fa())},children:[c]});var x=wi({},b,{prefix:o,iconName:i,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:wi({},w,f.styles)}),C=r.found&&n.found?function(t){var e,n=t.children,r=t.attributes,o=t.main,i=t.mask,a=t.maskId,s=t.transform,c=o.width,u=o.icon,l=i.width,f=i.icon,p=va({transform:s,containerWidth:l,iconWidth:c}),d={tag:"rect",attributes:wi({},ma,{fill:"white"})},h=u.children?{children:u.children.map(ya)}:{},v={tag:"g",attributes:wi({},p.inner),children:[ya(wi({tag:u.tag,attributes:wi({},u.attributes,p.path)},h))]},m={tag:"g",attributes:wi({},p.outer),children:[v]},y="mask-".concat(a||fa()),g="clip-".concat(a||fa()),_={tag:"mask",attributes:wi({},ma,{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,m]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(e=f,"g"===e.tag?e.children:[e])},_]};return n.push(b,{tag:"rect",attributes:wi({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(y,")")},ma)}),{children:n,attributes:r}}(x):function(t){var e=t.children,n=t.attributes,r=t.main,o=t.transform,i=da(t.styles);if(i.length>0&&(n.style=i),ha(o)){var a=va({transform:o,containerWidth:r.width,iconWidth:r.width});e.push({tag:"g",attributes:wi({},a.outer),children:[{tag:"g",attributes:wi({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:wi({},r.icon.attributes,a.path)}]}]})}else e.push(r.icon);return{children:e,attributes:n}}(x),O=C.children,A=C.attributes;return x.children=O,x.attributes=A,s?function(t){var e=t.prefix,n=t.iconName,r=t.children,o=t.attributes,i=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:wi({},o,{id:!0===i?"".concat(e,"-").concat(zi.familyPrefix,"-").concat(n):i}),children:r}]}]}(x):function(t){var e=t.children,n=t.main,r=t.mask,o=t.attributes,i=t.styles,a=t.transform;if(ha(a)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};o.style=da(wi({},i,{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:e}]}(x)}var _a=(zi.measurePerformance&&Ti&&Ti.mark&&Ti.measure,function(t,e,n,r){var o,i,a,s=Object.keys(t),c=s.length,u=void 0!==r?function(t,e){return function(n,r,o,i){return t.call(e,n,r,o,i)}}(e,r):e;for(void 0===n?(o=1,a=t[s[0]]):(o=0,a=n);o2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,o=void 0!==r&&r,i=Object.keys(e).reduce((function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{});"function"!=typeof Fi.hooks.addPack||o?Fi.styles[t]=wi({},Fi.styles[t]||{},i):Fi.hooks.addPack(t,i),"fas"===t&&ba("fa",e)}var wa=Fi.styles,xa=Fi.shims,Ca=function(){var t=function(t){return _a(wa,(function(e,n,r){return e[r]=_a(n,t,{}),e}),{})};t((function(t,e,n){return e[3]&&(t[e[3]]=n),t})),t((function(t,e,n){var r=e[2];return t[n]=n,r.forEach((function(e){t[e]=n})),t}));var e="far"in wa;_a(xa,(function(t,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||e||(o="fas"),t[r]={prefix:o,iconName:i},t}),{})};function Oa(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function Aa(t){var e=t.tag,n=t.attributes,r=void 0===n?{}:n,o=t.children,i=void 0===o?[]:o;return"string"==typeof t?pa(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat(pa(t[n]),'" ')}),"").trim()}(r),">").concat(i.map(Aa).join(""),"")}Ca(),Fi.styles;function Sa(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}Sa.prototype=Object.create(Error.prototype),Sa.prototype.constructor=Sa;var ka={fill:"currentColor"},Ea={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ja=(wi({},ka,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),wi({},Ea,{attributeName:"opacity"}));function $a(t){var e=t[0],n=t[1],r=xi(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(zi.familyPrefix,"-").concat(Li.GROUP)},children:[{tag:"path",attributes:{class:"".concat(zi.familyPrefix,"-").concat(Li.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(zi.familyPrefix,"-").concat(Li.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}wi({},ka,{cx:"256",cy:"364",r:"28"}),wi({},Ea,{attributeName:"r",values:"28;14;28;28;14;28;"}),wi({},ja,{values:"1;0;1;1;0;1;"}),wi({},ka,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),wi({},ja,{values:"1;0;0;0;0;1;"}),wi({},ka,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),wi({},ja,{values:"0;0;1;1;0;0;"}),Fi.styles,Fi.styles;var Ta=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e,n;return e=t,n=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}$i.head.insertBefore(e,r)}}(function(){var t="fa",e=Ni,n=zi.familyPrefix,r=zi.replacementClass,o='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(n!==t||r!==e){var i=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(e),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}()),za=!0)}function Na(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return Aa(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(Mi){var e=$i.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function Pa(t){var e=t.prefix,n=void 0===e?"fa":e,r=t.iconName;if(r)return Oa(Ra.definitions,n,r)||Oa(Fi.styles,n,r)}var Ia,La,Da,Ra=new Ta,za=!1,Ba={transform:function(t){return function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return t.flipX=!0,t;if(r&&"v"===o)return t.flipY=!0,t;if(o=parseFloat(o),isNaN(o))return t;switch(r){case"grow":t.size=t.size+o;break;case"shrink":t.size=t.size-o;break;case"left":t.x=t.x-o;break;case"right":t.x=t.x+o;break;case"up":t.y=t.y-o;break;case"down":t.y=t.y+o;break;case"rotate":t.rotate=t.rotate+o}return t}),e):e}(t)}},Fa=(Ia=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?la:n,o=e.symbol,i=void 0!==o&&o,a=e.mask,s=void 0===a?null:a,c=e.maskId,u=void 0===c?null:c,l=e.title,f=void 0===l?null:l,p=e.titleId,d=void 0===p?null:p,h=e.classes,v=void 0===h?[]:h,m=e.attributes,y=void 0===m?{}:m,g=e.styles,_=void 0===g?{}:g;if(t){var b=t.prefix,w=t.iconName,x=t.icon;return Na(wi({type:"icon"},t),(function(){return Ma(),zi.autoA11y&&(f?y["aria-labelledby"]="".concat(zi.replacementClass,"-title-").concat(d||fa()):(y["aria-hidden"]="true",y.focusable="false")),ga({icons:{main:$a(x),mask:s?$a(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:w,transform:wi({},la,r),symbol:i,title:f,maskId:u,titleId:d,extra:{attributes:y,styles:_,classes:v}})}))}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:Pa(t||{}),r=e.mask;return r&&(r=(r||{}).icon?r:Pa(r||{})),Ia(n,wi({},e,{mask:r}))}),Ua="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},Va=(La=function(t){!function(e){var n=function(t,e,r){if(!c(e)||l(e)||f(e)||p(e)||s(e))return e;var o,i=0,a=0;if(u(e))for(o=[],a=e.length;i=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n};function Xa(t){return t.split(";").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var n=e.indexOf(":"),r=Va.camelize(e.slice(0,n)),o=e.slice(n+1).trim();return t[r]=o,t}),{})}function Ka(t){return t.split(/\s+/).reduce((function(t,e){return t[e]=!0,t}),{})}function Ja(){for(var t=arguments.length,e=Array(t),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=(e.children||[]).map(Ya.bind(null,t)),i=Object.keys(e.attributes||{}).reduce((function(t,n){var r=e.attributes[n];switch(n){case"class":t.class=Ka(r);break;case"style":t.style=Xa(r);break;default:t.attrs[n]=r}return t}),{class:{},style:{},attrs:{}}),a=r.class,s=void 0===a?{}:a,c=r.style,u=void 0===c?{}:c,l=r.attrs,f=void 0===l?{}:l,p=Ga(r,["class","style","attrs"]);return"string"==typeof e?e:t(e.tag,qa({class:Ja(i.class,s),style:qa({},i.style,u),attrs:qa({},i.attrs,f)},p,{props:n}),o)}var Za=!1;try{Za=!0}catch(t){}function Qa(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?Wa({},t,e):{}}function ts(t){return t&&"object"===(void 0===t?"undefined":Ha(t))&&t.prefix&&t.iconName&&t.icon?t:Ba.icon?Ba.icon(t):null===t?null:"object"===(void 0===t?"undefined":Ha(t))&&t.prefix&&t.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:"fas",iconName:t}:void 0}var es={name:"FontAwesomeIcon",functional:!0,props:{beat:{type:Boolean,default:!1},border:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},flip:{type:String,default:null,validator:function(t){return["horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,r=n.icon,o=n.mask,i=n.symbol,a=n.title,s=ts(r),c=Qa("classes",function(t){var e,n=(e={"fa-spin":t.spin,"fa-spin-pulse":t.spinPulse,"fa-spin-reverse":t.spinReverse,"fa-pulse":t.pulse,"fa-beat":t.beat,"fa-fade":t.fade,"fa-flash":t.flash,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-li":t.listItem,"fa-inverse":t.inverse,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip},Wa(e,"fa-"+t.size,null!==t.size),Wa(e,"fa-rotate-"+t.rotation,null!==t.rotation),Wa(e,"fa-pull-"+t.pull,null!==t.pull),Wa(e,"fa-swap-opacity",t.swapOpacity),e);return Object.keys(n).map((function(t){return n[t]?t:null})).filter((function(t){return t}))}(n)),u=Qa("transform","string"==typeof n.transform?Ba.transform(n.transform):n.transform),l=Qa("mask",ts(o)),f=Fa(s,qa({},c,u,l,{symbol:i,title:a}));if(!f)return function(){var t;!Za&&console&&"function"==typeof console.error&&(t=console).error.apply(t,arguments)}("Could not find one or more icon(s)",s,l);var p=f.abstract;return Ya.bind(null,t)(p[0],{},e.data)}},ns=(Boolean,Boolean,{prefix:"fas",iconName:"long-arrow-alt-down",icon:[256,512,[],"f309","M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"]}),rs={prefix:"fas",iconName:"long-arrow-alt-up",icon:[256,512,[],"f30c","M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"]},os=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{},[n("form",{staticClass:"search",on:{submit:function(e){return e.preventDefault(),t.search.apply(null,arguments)}}},[n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.search_text,expression:"search_text"}],staticClass:"input-group-fieldbutton hollow",attrs:{type:"text",name:"fulltext_search",placeholder:"Search","aria-label":"Search"},domProps:{value:t.search_text},on:{input:function(e){e.target.composing||(t.search_text=e.target.value)}}}),t._v(" "),n("button",{staticClass:"appear button",attrs:{type:"submit"}},[t._v("\n Search\n ")])])])])};function is(t,e,n,r,o,i,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}os._withStripped=!0;var as=is({name:"Search",props:["url_search_text"],data:()=>({search_text:""}),mounted(){},methods:{search:function(){const t=window.location.toString(),e=t.substring(0,t.indexOf("#"));window.history.replaceState({},document.title,e+"#"+this.search_text),this.setSearchText(this.search_text),this.siteSearch()},...ai(["setFilteredSites","setSearchText"]),...si(["searchLocalSiteData"]),...ci(["siteSearch"])}},os,[],!1,null,null,null);as.options.__file="src/components/search.vue";const ss={name:"List",components:{FontAwesomeIcon:es,Search:as.exports},data:()=>({columns_order:{title:"asc",artist:"asc",collection:"asc",date:"asc"},active_column:"date",faLongArrowAltUp:rs,faLongArrowAltDown:ns,url_search_text:location.hash.substr(1)}),created(){},mounted(){var t={sites:JSON.parse(this.collections),active_column:this.active_column,column_order:this.columns_order[this.active_column]};this.setSites(t),this.url_search_text&&(this.setSearchText(this.url_search_text),this.siteSearch())},methods:{setActiveColumn:function(t){this.active_column==t?this.columns_order[t]="asc"==this.columns_order[t]?"desc":"asc":this.active_column=t,this.setColumnOrder({column_name:t,order:this.columns_order[t]})},isActiveCol:function(t){return t==this.active_column},getOrderIcon:function(t){return"asc"==this.columns_order[t]?rs:ns},loadMoreSites(){this.incrementPageCount()},...si(["getSitesForDisplay","getPageCount"]),...ai(["setColumnOrder","incrementPageCount","setSearchText"]),...ci(["siteSearch","setSites"])},watched:{},computed:{sites:function(){return this.getSitesForDisplay().slice(0,this.getPageCount()*this.page_size)},more_sites_to_display:function(){return this.getSitesForDisplay().length>this.getPageCount()*this.page_size}}};n(226);var cs=is(ss,Ro,[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header",[n("h2",[t._v("Latest in collections")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("aside",[e("nav")])}],!1,null,"abbdcac0",null);cs.options.__file="src/components/archiveList.vue";const us=cs.exports;var ls="1.13.1",fs="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},ps=Array.prototype,ds=Object.prototype,hs="undefined"!=typeof Symbol?Symbol.prototype:null,vs=ps.push,ms=ps.slice,ys=ds.toString,gs=ds.hasOwnProperty,_s="undefined"!=typeof ArrayBuffer,bs="undefined"!=typeof DataView,ws=Array.isArray,xs=Object.keys,Cs=Object.create,Os=_s&&ArrayBuffer.isView,As=isNaN,Ss=isFinite,ks=!{toString:null}.propertyIsEnumerable("toString"),Es=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],js=Math.pow(2,53)-1;function $s(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),o=0;o=0&&n<=js}}function ac(t){return function(e){return null==e?void 0:e[t]}}const sc=ac("byteLength"),cc=ic(sc);var uc=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const lc=_s?function(t){return Os?Os(t)&&!Ys(t):cc(t)&&uc.test(ys.call(t))}:oc(!1),fc=ac("length");function pc(t,e){e=function(t){for(var e={},n=t.length,r=0;r":">",'"':""","'":"'","`":"`"},pu=lu(fu),du=lu(Lc(fu)),hu=mc.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var vu=/(.)^/,mu={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},yu=/\\|'|\r|\n|\u2028|\u2029/g;function gu(t){return"\\"+mu[t]}var _u=/^\s*(\w|\$)+\s*$/;function bu(t,e,n){!e&&n&&(e=n),e=Fc({},e,mc.templateSettings);var r=RegExp([(e.escape||vu).source,(e.interpolate||vu).source,(e.evaluate||vu).source].join("|")+"|$","g"),o=0,i="__p+='";t.replace(r,(function(e,n,r,a,s){return i+=t.slice(o,s).replace(yu,gu),o=s+e.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),e})),i+="';\n";var a,s=e.variable;if(s){if(!_u.test(s))throw new Error("variable is not a bare identifier: "+s)}else i="with(obj||{}){\n"+i+"}\n",s="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=new Function(s,"_",i)}catch(t){throw t.source=i,t}var c=function(t){return a.call(this,t,mc)};return c.source="function("+s+"){\n"+i+"}",c}function wu(t,e,n){var r=(e=Gc(e)).length;if(!r)return qs(n)?n.call(t):n;for(var o=0;o1)$u(s,e-1,n,r),o=r.length;else for(var c=0,u=s.length;ce?(r&&(clearTimeout(r),r=null),s=u,a=t.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(c,l)),a};return u.cancel=function(){clearTimeout(r),s=0,r=o=i=null},u}function Lu(t,e,n){var r,o,i,a,s,c=function(){var u=uu()-o;e>u?r=setTimeout(c,e-u):(r=null,n||(a=t.apply(s,i)),r||(i=s=null))},u=$s((function(u){return s=this,i=u,o=uu(),r||(r=setTimeout(c,e),n&&(a=t.apply(s,i))),a}));return u.cancel=function(){clearTimeout(r),r=i=s=null},u}function Du(t,e){return ku(e,t)}function Ru(t){return function(){return!t.apply(this,arguments)}}function zu(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function Bu(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Fu(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}const Uu=ku(Fu,2);function Vu(t,e,n){e=ru(e,n);for(var r,o=dc(t),i=0,a=o.length;i0?0:o-1;i>=0&&i0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=e(ms.call(r,a,s),rc))>=0?i+a:-1;for(i=t>0?a:s-1;i>=0&&i0?0:a-1;for(o||(r=e[i?i[s]:s],s+=t);s>=0&&s=3;return e(t,tu(n,o,4),r,i)}}const nl=el(1),rl=el(-1);function ol(t,e,n){var r=[];return e=ru(e,n),Qu(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}function il(t,e,n){return ol(t,Ru(ru(e)),n)}function al(t,e,n){e=ru(e,n);for(var r=!ju(t)&&dc(t),o=(r||t).length,i=0;i=0}const ul=$s((function(t,e,n){var r,o;return qs(e)?o=e:(e=Gc(e),r=e.slice(0,-1),e=e[e.length-1]),tl(t,(function(t){var i=o;if(!i){if(r&&r.length&&(t=Xc(t,r)),null==t)return;i=t[e]}return null==i?i:i.apply(t,n)}))}));function ll(t,e){return tl(t,Qc(e))}function fl(t,e){return ol(t,Zc(e))}function pl(t,e,n){var r,o,i=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,c=(t=ju(t)?t:Pc(t)).length;si&&(i=r);else e=ru(e,n),Qu(t,(function(t,n,r){((o=e(t,n,r))>a||o===-1/0&&i===-1/0)&&(i=t,a=o)}));return i}function dl(t,e,n){var r,o,i=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,c=(t=ju(t)?t:Pc(t)).length;sr||void 0===n)return 1;if(n1&&(r=tu(r,e[1])),e=xc(t)):(r=Al,e=$u(e,!1,!1),t=Object(t));for(var o=0,i=e.length;o1&&(n=e[1])):(e=tl($u(e,!1,!1),String),r=function(t,n){return!cl(e,n)}),Sl(t,r,n)}));function El(t,e,n){return ms.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function jl(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:El(t,t.length-e)}function $l(t,e,n){return ms.call(t,null==e||n?1:e)}function Tl(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[t.length-1]:$l(t,Math.max(0,t.length-e))}function Ml(t){return ol(t,Boolean)}function Nl(t,e){return $u(t,e,!1)}const Pl=$s((function(t,e){return e=$u(e,!0,!0),ol(t,(function(t){return!cl(e,t)}))})),Il=$s((function(t,e){return Pl(t,e)}));function Ll(t,e,n,r){Ps(e)||(r=n,n=e,e=!1),null!=n&&(n=ru(n,r));for(var o=[],i=[],a=0,s=fc(t);at.id==o));r&&n.push(r)}t.filtered_sites=n,t.page_count=1},setColumnOrder(t,e){t.active_column=e.active_column,t.column_order=e.column_order,t.sites=Kl(t.sites,e.active_column,e.column_order),t.filtered_sites=Kl(t.filtered_sites,e.active_column,e.column_order)}},actions:{setSites(t,e){t.state.sites=e.sites,t.commit("setColumnOrder",{active_column:e.active_column,column_order:e.column_order})},siteSearch(t){console.log("new site search"),Bo().post("/api/collections/search?fulltext_search="+t.getters.getSearchText,{}).then((function(e){var n=t.getters.searchLocalSiteData,r=Object.assign({},n,e.data);t.commit("setFilteredSites",r),t.commit("setColumnOrder",{active_column:t.state.active_column,column_order:t.state.column_order})})).catch((function(t){console.log(t)}))}},getters:{getSearchText:t=>t.search_text,getSitesForDisplay:t=>""===t.search_text?t.sites:t.filtered_sites,getPageCount:t=>t.page_count,searchLocalSiteData:t=>{var e={};if(""===t.search_text)return e;for(let r in t.sites){var n=0;-1!=t.sites[r].summary.toLowerCase().search(t.search_text.toLowerCase())&&(n+=1),-1!=t.sites[r].collection.toLowerCase().search(t.search_text.toLowerCase())&&(n+=1),-1!=t.sites[r].currator.toLowerCase().search(t.search_text.toLowerCase())&&(n+=1),-1!=t.sites[r].title.toLowerCase().search(t.search_text.toLowerCase())&&(n+=1),n>0&&(e[t.sites[r].id]=n)}return e}}});function Kl(t,e,n){return t.sort((function(t,n){return"artist"==e&&(e="currator"),"date"==e&&(e="project_date"),void 0===t[e]||""===t[e]?-1:void 0===n[e]||""===n[e]?1:(t=t[e].toLowerCase())<(n=n[e].toLowerCase())?-1:1})),"asc"==n?t:t.reverse()}const Jl=Xl;new Do;var Yl=Do.extend(us);document.querySelectorAll("[data-vue-component=archive-list]").forEach((t=>{new Yl({components:{ArchiveList:us},propsData:{...t.dataset},props:["collections","page_size"],store:Jl}).$mount(t)}))})()})(); \ No newline at end of file diff --git a/src/assets/js/browse.js b/src/assets/js/browse.js new file mode 100644 index 0000000..5a9c2d3 --- /dev/null +++ b/src/assets/js/browse.js @@ -0,0 +1,16 @@ +(function($) { + $(document).ready(function() { + $('.layout-toggle button').click(function() { + $('.layout-toggle button:disabled').removeAttr('disabled'); + $(this).attr('disabled', true); + $('.resources').toggleClass('resource-list').toggleClass('resource-grid'); + $('.resources .resource').toggleClass('media-object'); + $('.resource-meta, .resource-image').toggleClass('media-object-section'); + }); + + $('.browse-toggle').click(function() { + $('.browse-controls').toggleClass('open closed'); + $(this).toggleClass('open closed'); + }); + }); +})(jQuery) \ No newline at end of file diff --git a/src/assets/js/expand-site-list-item.js b/src/assets/js/expand-site-list-item.js new file mode 100644 index 0000000..e9aec97 --- /dev/null +++ b/src/assets/js/expand-site-list-item.js @@ -0,0 +1,18 @@ + +$(function(){ + $("#site-list").on( "click", ".accordion-title", function() { + var title = this + var content = $(this).closest('.accordion-item') + .find('.accordion-content') + if ($(content).is(':visible')) { + $(content).slideUp('fast') + $(this).closest('.accordion-item').removeClass('is-active') + $(title).attr('aria-expanded', false) + } else { + $(content).slideDown('fast') + $(this).closest('.accordion-item').addClass('is-active') + $(title).attr('aria-expanded', true) + } + return false; + }); +}) diff --git a/src/assets/js/foundation.js b/src/assets/js/foundation.js new file mode 100644 index 0000000..e90cd62 --- /dev/null +++ b/src/assets/js/foundation.js @@ -0,0 +1,22644 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 0); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./node_modules/foundation-sites/dist/js/foundation.esm.js": +/*!*****************************************************************!*\ + !*** ./node_modules/foundation-sites/dist/js/foundation.esm.js ***! + \*****************************************************************/ +/*! exports provided: default, Abide, Accordion, AccordionMenu, Box, Core, CoreUtils, Drilldown, Dropdown, DropdownMenu, Equalizer, Foundation, Interchange, Keyboard, Magellan, MediaQuery, Motion, Move, Nest, OffCanvas, Orbit, ResponsiveAccordionTabs, ResponsiveMenu, ResponsiveToggle, Reveal, Slider, SmoothScroll, Sticky, Tabs, Timer, Toggler, Tooltip, Touch, Triggers, onImagesLoaded */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Abide", function() { return Abide; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Accordion", function() { return Accordion; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AccordionMenu", function() { return AccordionMenu; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Box", function() { return Box; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Core", function() { return Foundation; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoreUtils", function() { return foundation_core_utils; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Drilldown", function() { return Drilldown; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return Dropdown; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownMenu", function() { return DropdownMenu; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Equalizer", function() { return Equalizer; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return Foundation; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Interchange", function() { return Interchange; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Keyboard", function() { return Keyboard; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Magellan", function() { return Magellan; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MediaQuery", function() { return MediaQuery; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Motion", function() { return Motion; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Move", function() { return Move; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nest", function() { return Nest; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OffCanvas", function() { return OffCanvas; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Orbit", function() { return Orbit; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResponsiveAccordionTabs", function() { return ResponsiveAccordionTabs; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResponsiveMenu", function() { return ResponsiveMenu; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResponsiveToggle", function() { return ResponsiveToggle; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Reveal", function() { return Reveal; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return Slider; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SmoothScroll", function() { return SmoothScroll; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sticky", function() { return Sticky; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return Tabs; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Timer", function() { return Timer; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Toggler", function() { return Toggler; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return Tooltip; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Touch", function() { return Touch; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Triggers", function() { return Triggers; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onImagesLoaded", function() { return onImagesLoaded; }); +/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"); +/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); +function _typeof2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); } + + + +function _typeof(obj) { + if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") { + _typeof = function _typeof(obj) { + return _typeof2(obj); + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj); + }; + } + + return _typeof(obj); +} + +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); +} + +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} + +function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); +} + +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +function _possibleConstructorReturn(self, call) { + if (call && (_typeof2(call) === "object" || typeof call === "function")) { + return call; + } + + return _assertThisInitialized(self); +} + +function _superPropBase(object, property) { + while (!Object.prototype.hasOwnProperty.call(object, property)) { + object = _getPrototypeOf(object); + if (object === null) break; + } + + return object; +} + +function _get(target, property, receiver) { + if (typeof Reflect !== "undefined" && Reflect.get) { + _get = Reflect.get; + } else { + _get = function _get(target, property, receiver) { + var base = _superPropBase(target, property); + + if (!base) return; + var desc = Object.getOwnPropertyDescriptor(base, property); + + if (desc.get) { + return desc.get.call(receiver); + } + + return desc.value; + }; + } + + return _get(target, property, receiver || target); +} + +function _slicedToArray(arr, i) { + return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); +} + +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + +function _iterableToArrayLimit(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} + +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); +} +/** + * Returns a boolean for RTL support + */ + + +function rtl() { + return jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').attr('dir') === 'rtl'; +} +/** + * returns a random base-36 uid with namespacing + * @function + * @param {Number} length - number of random base-36 digits desired. Increase for more random strings. + * @param {String} namespace - name of plugin to be incorporated in uid, optional. + * @default {String} '' - if no plugin name is provided, nothing is appended to the uid. + * @returns {String} - unique id + */ + + +function GetYoDigits() { + var length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 6; + var namespace = arguments.length > 1 ? arguments[1] : undefined; + var str = ''; + var chars = '0123456789abcdefghijklmnopqrstuvwxyz'; + var charsLength = chars.length; + + for (var i = 0; i < length; i++) { + str += chars[Math.floor(Math.random() * charsLength)]; + } + + return namespace ? "".concat(str, "-").concat(namespace) : str; +} +/** + * Escape a string so it can be used as a regexp pattern + * @function + * @see https://stackoverflow.com/a/9310752/4317384 + * + * @param {String} str - string to escape. + * @returns {String} - escaped string + */ + + +function RegExpEscape(str) { + return str.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); +} + +function transitionend($elem) { + var transitions = { + 'transition': 'transitionend', + 'WebkitTransition': 'webkitTransitionEnd', + 'MozTransition': 'transitionend', + 'OTransition': 'otransitionend' + }; + var elem = document.createElement('div'), + end; + + for (var transition in transitions) { + if (typeof elem.style[transition] !== 'undefined') { + end = transitions[transition]; + } + } + + if (end) { + return end; + } else { + setTimeout(function () { + $elem.triggerHandler('transitionend', [$elem]); + }, 1); + return 'transitionend'; + } +} +/** + * Return an event type to listen for window load. + * + * If `$elem` is passed, an event will be triggered on `$elem`. If window is already loaded, the event will still be triggered. + * If `handler` is passed, attach it to the event on `$elem`. + * Calling `onLoad` without handler allows you to get the event type that will be triggered before attaching the handler by yourself. + * @function + * + * @param {Object} [] $elem - jQuery element on which the event will be triggered if passed. + * @param {Function} [] handler - function to attach to the event. + * @returns {String} - event type that should or will be triggered. + */ + + +function onLoad($elem, handler) { + var didLoad = document.readyState === 'complete'; + var eventType = (didLoad ? '_didLoad' : 'load') + '.zf.util.onLoad'; + + var cb = function cb() { + return $elem.triggerHandler(eventType); + }; + + if ($elem) { + if (handler) $elem.one(eventType, handler); + if (didLoad) setTimeout(cb);else jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).one('load', cb); + } + + return eventType; +} +/** + * Retuns an handler for the `mouseleave` that ignore disappeared mouses. + * + * If the mouse "disappeared" from the document (like when going on a browser UI element, See https://git.io/zf-11410), + * the event is ignored. + * - If the `ignoreLeaveWindow` is `true`, the event is ignored when the user actually left the window + * (like by switching to an other window with [Alt]+[Tab]). + * - If the `ignoreReappear` is `true`, the event will be ignored when the mouse will reappear later on the document + * outside of the element it left. + * + * @function + * + * @param {Function} [] handler - handler for the filtered `mouseleave` event to watch. + * @param {Object} [] options - object of options: + * - {Boolean} [false] ignoreLeaveWindow - also ignore when the user switched windows. + * - {Boolean} [false] ignoreReappear - also ignore when the mouse reappeared outside of the element it left. + * @returns {Function} - filtered handler to use to listen on the `mouseleave` event. + */ + + +function ignoreMousedisappear(handler) { + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$ignoreLeaveWindo = _ref.ignoreLeaveWindow, + ignoreLeaveWindow = _ref$ignoreLeaveWindo === void 0 ? false : _ref$ignoreLeaveWindo, + _ref$ignoreReappear = _ref.ignoreReappear, + ignoreReappear = _ref$ignoreReappear === void 0 ? false : _ref$ignoreReappear; + + return function leaveEventHandler(eLeave) { + for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + rest[_key - 1] = arguments[_key]; + } + + var callback = handler.bind.apply(handler, [this, eLeave].concat(rest)); // The mouse left: call the given callback if the mouse entered elsewhere + + if (eLeave.relatedTarget !== null) { + return callback(); + } // Otherwise, check if the mouse actually left the window. + // In firefox if the user switched between windows, the window sill have the focus by the time + // the event is triggered. We have to debounce the event to test this case. + + + setTimeout(function leaveEventDebouncer() { + if (!ignoreLeaveWindow && document.hasFocus && !document.hasFocus()) { + return callback(); + } // Otherwise, wait for the mouse to reeapear outside of the element, + + + if (!ignoreReappear) { + jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).one('mouseenter', function reenterEventHandler(eReenter) { + if (!jquery__WEBPACK_IMPORTED_MODULE_0___default()(eLeave.currentTarget).has(eReenter.target).length) { + // Fill where the mouse finally entered. + eLeave.relatedTarget = eReenter.target; + callback(); + } + }); + } + }, 0); + }; +} + +var foundation_core_utils = /*#__PURE__*/Object.freeze({ + rtl: rtl, + GetYoDigits: GetYoDigits, + RegExpEscape: RegExpEscape, + transitionend: transitionend, + onLoad: onLoad, + ignoreMousedisappear: ignoreMousedisappear +}); // Authors & copyright © 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. MIT license + +/* eslint-disable */ + +window.matchMedia || (window.matchMedia = function () { + var styleMedia = window.styleMedia || window.media; // For those that don't support matchMedium + + if (!styleMedia) { + var style = document.createElement('style'), + script = document.getElementsByTagName('script')[0], + info = null; + style.type = 'text/css'; + style.id = 'matchmediajs-test'; + + if (!script) { + document.head.appendChild(style); + } else { + script.parentNode.insertBefore(style, script); + } // 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers + + + info = 'getComputedStyle' in window && window.getComputedStyle(style, null) || style.currentStyle; + styleMedia = { + matchMedium: function matchMedium(media) { + var text = '@media ' + media + '{ #matchmediajs-test { width: 1px; } }'; // 'style.styleSheet' is used by IE <= 8 and 'style.textContent' for all other browsers + + if (style.styleSheet) { + style.styleSheet.cssText = text; + } else { + style.textContent = text; + } // Test if media query is true or false + + + return info.width === '1px'; + } + }; + } + + return function (media) { + return { + matches: styleMedia.matchMedium(media || 'all'), + media: media || 'all' + }; + }; +}()); +/* eslint-enable */ + +var MediaQuery = { + queries: [], + current: '', + + /** + * Initializes the media query helper, by extracting the breakpoint list from the CSS and activating the breakpoint watcher. + * @function + * @private + */ + _init: function _init() { + // make sure the initialization is only done once when calling _init() several times + if (this.isInitialized === true) { + return; + } else { + this.isInitialized = true; + } + + var self = this; + var $meta = jquery__WEBPACK_IMPORTED_MODULE_0___default()('meta.foundation-mq'); + + if (!$meta.length) { + jquery__WEBPACK_IMPORTED_MODULE_0___default()('').appendTo(document.head); + } + + var extractedStyles = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.foundation-mq').css('font-family'); + var namedQueries; + namedQueries = parseStyleToObject(extractedStyles); + self.queries = []; // reset + + for (var key in namedQueries) { + if (namedQueries.hasOwnProperty(key)) { + self.queries.push({ + name: key, + value: "only screen and (min-width: ".concat(namedQueries[key], ")") + }); + } + } + + this.current = this._getCurrentSize(); + + this._watcher(); + }, + + /** + * Reinitializes the media query helper. + * Useful if your CSS breakpoint configuration has just been loaded or has changed since the initialization. + * @function + * @private + */ + _reInit: function _reInit() { + this.isInitialized = false; + + this._init(); + }, + + /** + * Checks if the screen is at least as wide as a breakpoint. + * @function + * @param {String} size - Name of the breakpoint to check. + * @returns {Boolean} `true` if the breakpoint matches, `false` if it's smaller. + */ + atLeast: function atLeast(size) { + var query = this.get(size); + + if (query) { + return window.matchMedia(query).matches; + } + + return false; + }, + + /** + * Checks if the screen is within the given breakpoint. + * If smaller than the breakpoint of larger than its upper limit it returns false. + * @function + * @param {String} size - Name of the breakpoint to check. + * @returns {Boolean} `true` if the breakpoint matches, `false` otherwise. + */ + only: function only(size) { + return size === this._getCurrentSize(); + }, + + /** + * Checks if the screen is within a breakpoint or smaller. + * @function + * @param {String} size - Name of the breakpoint to check. + * @returns {Boolean} `true` if the breakpoint matches, `false` if it's larger. + */ + upTo: function upTo(size) { + var nextSize = this.next(size); // If the next breakpoint does not match, the screen is smaller than + // the upper limit of this breakpoint. + + if (nextSize) { + return !this.atLeast(nextSize); + } // If there is no next breakpoint, the "size" breakpoint does not have + // an upper limit and the screen will always be within it or smaller. + + + return true; + }, + + /** + * Checks if the screen matches to a breakpoint. + * @function + * @param {String} size - Name of the breakpoint to check, either 'small only' or 'small'. Omitting 'only' falls back to using atLeast() method. + * @returns {Boolean} `true` if the breakpoint matches, `false` if it does not. + */ + is: function is(size) { + var parts = size.trim().split(' ').filter(function (p) { + return !!p.length; + }); + + var _parts = _slicedToArray(parts, 2), + bpSize = _parts[0], + _parts$ = _parts[1], + bpModifier = _parts$ === void 0 ? '' : _parts$; // Only the breakpont + + + if (bpModifier === 'only') { + return this.only(bpSize); + } // At least the breakpoint (included) + + + if (!bpModifier || bpModifier === 'up') { + return this.atLeast(bpSize); + } // Up to the breakpoint (included) + + + if (bpModifier === 'down') { + return this.upTo(bpSize); + } + + throw new Error("\n Invalid breakpoint passed to MediaQuery.is().\n Expected a breakpoint name formatted like \" \", got \"".concat(size, "\".\n ")); + }, + + /** + * Gets the media query of a breakpoint. + * @function + * @param {String} size - Name of the breakpoint to get. + * @returns {String|null} - The media query of the breakpoint, or `null` if the breakpoint doesn't exist. + */ + get: function get(size) { + for (var i in this.queries) { + if (this.queries.hasOwnProperty(i)) { + var query = this.queries[i]; + if (size === query.name) return query.value; + } + } + + return null; + }, + + /** + * Get the breakpoint following the given breakpoint. + * @function + * @param {String} size - Name of the breakpoint. + * @returns {String|null} - The name of the following breakpoint, or `null` if the passed breakpoint was the last one. + */ + next: function next(size) { + var _this = this; + + var queryIndex = this.queries.findIndex(function (q) { + return _this._getQueryName(q) === size; + }); + + if (queryIndex === -1) { + throw new Error("\n Unknown breakpoint \"".concat(size, "\" passed to MediaQuery.next().\n Ensure it is present in your Sass \"$breakpoints\" setting.\n ")); + } + + var nextQuery = this.queries[queryIndex + 1]; + return nextQuery ? nextQuery.name : null; + }, + + /** + * Returns the name of the breakpoint related to the given value. + * @function + * @private + * @param {String|Object} value - Breakpoint name or query object. + * @returns {String} Name of the breakpoint. + */ + _getQueryName: function _getQueryName(value) { + if (typeof value === 'string') return value; + if (_typeof(value) === 'object') return value.name; + throw new TypeError("\n Invalid value passed to MediaQuery._getQueryName().\n Expected a breakpoint name (String) or a breakpoint query (Object), got \"".concat(value, "\" (").concat(_typeof(value), ")\n ")); + }, + + /** + * Gets the current breakpoint name by testing every breakpoint and returning the last one to match (the biggest one). + * @function + * @private + * @returns {String} Name of the current breakpoint. + */ + _getCurrentSize: function _getCurrentSize() { + var matched; + + for (var i = 0; i < this.queries.length; i++) { + var query = this.queries[i]; + + if (window.matchMedia(query.value).matches) { + matched = query; + } + } + + return matched && this._getQueryName(matched); + }, + + /** + * Activates the breakpoint watcher, which fires an event on the window whenever the breakpoint changes. + * @function + * @private + */ + _watcher: function _watcher() { + var _this2 = this; + + jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('resize.zf.mediaquery').on('resize.zf.mediaquery', function () { + var newSize = _this2._getCurrentSize(), + currentSize = _this2.current; + + if (newSize !== currentSize) { + // Change the current media query + _this2.current = newSize; // Broadcast the media query change on the window + + jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).trigger('changed.zf.mediaquery', [newSize, currentSize]); + } + }); + } +}; // Thank you: https://github.com/sindresorhus/query-string + +function parseStyleToObject(str) { + var styleObject = {}; + + if (typeof str !== 'string') { + return styleObject; + } + + str = str.trim().slice(1, -1); // browsers re-quote string style values + + if (!str) { + return styleObject; + } + + styleObject = str.split('&').reduce(function (ret, param) { + var parts = param.replace(/\+/g, ' ').split('='); + var key = parts[0]; + var val = parts[1]; + key = decodeURIComponent(key); // missing `=` should be `null`: + // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters + + val = typeof val === 'undefined' ? null : decodeURIComponent(val); + + if (!ret.hasOwnProperty(key)) { + ret[key] = val; + } else if (Array.isArray(ret[key])) { + ret[key].push(val); + } else { + ret[key] = [ret[key], val]; + } + + return ret; + }, {}); + return styleObject; +} + +var FOUNDATION_VERSION = '6.6.3'; // Global Foundation object +// This is attached to the window, or used as a module for AMD/Browserify + +var Foundation = { + version: FOUNDATION_VERSION, + + /** + * Stores initialized plugins. + */ + _plugins: {}, + + /** + * Stores generated unique ids for plugin instances + */ + _uuids: [], + + /** + * Defines a Foundation plugin, adding it to the `Foundation` namespace and the list of plugins to initialize when reflowing. + * @param {Object} plugin - The constructor of the plugin. + */ + plugin: function plugin(_plugin, name) { + // Object key to use when adding to global Foundation object + // Examples: Foundation.Reveal, Foundation.OffCanvas + var className = name || functionName(_plugin); // Object key to use when storing the plugin, also used to create the identifying data attribute for the plugin + // Examples: data-reveal, data-off-canvas + + var attrName = hyphenate(className); // Add to the Foundation object and the plugins list (for reflowing) + + this._plugins[attrName] = this[className] = _plugin; + }, + + /** + * @function + * Populates the _uuids array with pointers to each individual plugin instance. + * Adds the `zfPlugin` data-attribute to programmatically created plugins to allow use of $(selector).foundation(method) calls. + * Also fires the initialization event for each plugin, consolidating repetitive code. + * @param {Object} plugin - an instance of a plugin, usually `this` in context. + * @param {String} name - the name of the plugin, passed as a camelCased string. + * @fires Plugin#init + */ + registerPlugin: function registerPlugin(plugin, name) { + var pluginName = name ? hyphenate(name) : functionName(plugin.constructor).toLowerCase(); + plugin.uuid = GetYoDigits(6, pluginName); + + if (!plugin.$element.attr("data-".concat(pluginName))) { + plugin.$element.attr("data-".concat(pluginName), plugin.uuid); + } + + if (!plugin.$element.data('zfPlugin')) { + plugin.$element.data('zfPlugin', plugin); + } + /** + * Fires when the plugin has initialized. + * @event Plugin#init + */ + + + plugin.$element.trigger("init.zf.".concat(pluginName)); + + this._uuids.push(plugin.uuid); + + return; + }, + + /** + * @function + * Removes the plugins uuid from the _uuids array. + * Removes the zfPlugin data attribute, as well as the data-plugin-name attribute. + * Also fires the destroyed event for the plugin, consolidating repetitive code. + * @param {Object} plugin - an instance of a plugin, usually `this` in context. + * @fires Plugin#destroyed + */ + unregisterPlugin: function unregisterPlugin(plugin) { + var pluginName = hyphenate(functionName(plugin.$element.data('zfPlugin').constructor)); + + this._uuids.splice(this._uuids.indexOf(plugin.uuid), 1); + + plugin.$element.removeAttr("data-".concat(pluginName)).removeData('zfPlugin') + /** + * Fires when the plugin has been destroyed. + * @event Plugin#destroyed + */ + .trigger("destroyed.zf.".concat(pluginName)); + + for (var prop in plugin) { + plugin[prop] = null; //clean up script to prep for garbage collection. + } + + return; + }, + + /** + * @function + * Causes one or more active plugins to re-initialize, resetting event listeners, recalculating positions, etc. + * @param {String} plugins - optional string of an individual plugin key, attained by calling `$(element).data('pluginName')`, or string of a plugin class i.e. `'dropdown'` + * @default If no argument is passed, reflow all currently active plugins. + */ + reInit: function reInit(plugins) { + var isJQ = plugins instanceof jquery__WEBPACK_IMPORTED_MODULE_0___default.a; + + try { + if (isJQ) { + plugins.each(function () { + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('zfPlugin')._init(); + }); + } else { + var type = _typeof(plugins), + _this = this, + fns = { + 'object': function object(plgs) { + plgs.forEach(function (p) { + p = hyphenate(p); + jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-' + p + ']').foundation('_init'); + }); + }, + 'string': function string() { + plugins = hyphenate(plugins); + jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-' + plugins + ']').foundation('_init'); + }, + 'undefined': function undefined$1() { + this['object'](Object.keys(_this._plugins)); + } + }; + + fns[type](plugins); + } + } catch (err) { + console.error(err); + } finally { + return plugins; + } + }, + + /** + * Initialize plugins on any elements within `elem` (and `elem` itself) that aren't already initialized. + * @param {Object} elem - jQuery object containing the element to check inside. Also checks the element itself, unless it's the `document` object. + * @param {String|Array} plugins - A list of plugins to initialize. Leave this out to initialize everything. + */ + reflow: function reflow(elem, plugins) { + // If plugins is undefined, just grab everything + if (typeof plugins === 'undefined') { + plugins = Object.keys(this._plugins); + } // If plugins is a string, convert it to an array with one item + else if (typeof plugins === 'string') { + plugins = [plugins]; + } + + var _this = this; // Iterate through each plugin + + + jquery__WEBPACK_IMPORTED_MODULE_0___default.a.each(plugins, function (i, name) { + // Get the current plugin + var plugin = _this._plugins[name]; // Localize the search to all elements inside elem, as well as elem itself, unless elem === document + + var $elem = jquery__WEBPACK_IMPORTED_MODULE_0___default()(elem).find('[data-' + name + ']').addBack('[data-' + name + ']').filter(function () { + return typeof jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data("zfPlugin") === 'undefined'; + }); // For each plugin found, initialize it + + $elem.each(function () { + var $el = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), + opts = { + reflow: true + }; + + if ($el.attr('data-options')) { + $el.attr('data-options').split(';').forEach(function (option, _index) { + var opt = option.split(':').map(function (el) { + return el.trim(); + }); + if (opt[0]) opts[opt[0]] = parseValue(opt[1]); + }); + } + + try { + $el.data('zfPlugin', new plugin(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), opts)); + } catch (er) { + console.error(er); + } finally { + return; + } + }); + }); + }, + getFnName: functionName, + addToJquery: function addToJquery($) { + // TODO: consider not making this a jQuery function + // TODO: need way to reflow vs. re-initialize + + /** + * The Foundation jQuery method. + * @param {String|Array} method - An action to perform on the current jQuery object. + */ + var foundation = function foundation(method) { + var type = _typeof(method), + $noJS = $('.no-js'); + + if ($noJS.length) { + $noJS.removeClass('no-js'); + } + + if (type === 'undefined') { + //needs to initialize the Foundation object, or an individual plugin. + MediaQuery._init(); + + Foundation.reflow(this); + } else if (type === 'string') { + //an individual method to invoke on a plugin or group of plugins + var args = Array.prototype.slice.call(arguments, 1); //collect all the arguments, if necessary + + var plugClass = this.data('zfPlugin'); //determine the class of plugin + + if (typeof plugClass !== 'undefined' && typeof plugClass[method] !== 'undefined') { + //make sure both the class and method exist + if (this.length === 1) { + //if there's only one, call it directly. + plugClass[method].apply(plugClass, args); + } else { + this.each(function (i, el) { + //otherwise loop through the jQuery collection and invoke the method on each + plugClass[method].apply($(el).data('zfPlugin'), args); + }); + } + } else { + //error for no class or no method + throw new ReferenceError("We're sorry, '" + method + "' is not an available method for " + (plugClass ? functionName(plugClass) : 'this element') + '.'); + } + } else { + //error for invalid argument type + throw new TypeError("We're sorry, ".concat(type, " is not a valid parameter. You must use a string representing the method you wish to invoke.")); + } + + return this; + }; + + $.fn.foundation = foundation; + return $; + } +}; +Foundation.util = { + /** + * Function for applying a debounce effect to a function call. + * @function + * @param {Function} func - Function to be called at end of timeout. + * @param {Number} delay - Time in ms to delay the call of `func`. + * @returns function + */ + throttle: function throttle(func, delay) { + var timer = null; + return function () { + var context = this, + args = arguments; + + if (timer === null) { + timer = setTimeout(function () { + func.apply(context, args); + timer = null; + }, delay); + } + }; + } +}; +window.Foundation = Foundation; // Polyfill for requestAnimationFrame + +(function () { + if (!Date.now || !window.Date.now) window.Date.now = Date.now = function () { + return new Date().getTime(); + }; + var vendors = ['webkit', 'moz']; + + for (var i = 0; i < vendors.length && !window.requestAnimationFrame; ++i) { + var vp = vendors[i]; + window.requestAnimationFrame = window[vp + 'RequestAnimationFrame']; + window.cancelAnimationFrame = window[vp + 'CancelAnimationFrame'] || window[vp + 'CancelRequestAnimationFrame']; + } + + if (/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent) || !window.requestAnimationFrame || !window.cancelAnimationFrame) { + var lastTime = 0; + + window.requestAnimationFrame = function (callback) { + var now = Date.now(); + var nextTime = Math.max(lastTime + 16, now); + return setTimeout(function () { + callback(lastTime = nextTime); + }, nextTime - now); + }; + + window.cancelAnimationFrame = clearTimeout; + } + /** + * Polyfill for performance.now, required by rAF + */ + + + if (!window.performance || !window.performance.now) { + window.performance = { + start: Date.now(), + now: function now() { + return Date.now() - this.start; + } + }; + } +})(); + +if (!Function.prototype.bind) { + Function.prototype.bind = function (oThis) { + if (typeof this !== 'function') { + // closest thing possible to the ECMAScript 5 + // internal IsCallable function + throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable'); + } + + var aArgs = Array.prototype.slice.call(arguments, 1), + fToBind = this, + fNOP = function fNOP() {}, + fBound = function fBound() { + return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments))); + }; + + if (this.prototype) { + // native functions don't have a prototype + fNOP.prototype = this.prototype; + } + + fBound.prototype = new fNOP(); + return fBound; + }; +} // Polyfill to get the name of a function in IE9 + + +function functionName(fn) { + if (typeof Function.prototype.name === 'undefined') { + var funcNameRegex = /function\s([^(]{1,})\(/; + var results = funcNameRegex.exec(fn.toString()); + return results && results.length > 1 ? results[1].trim() : ""; + } else if (typeof fn.prototype === 'undefined') { + return fn.constructor.name; + } else { + return fn.prototype.constructor.name; + } +} + +function parseValue(str) { + if ('true' === str) return true;else if ('false' === str) return false;else if (!isNaN(str * 1)) return parseFloat(str); + return str; +} // Convert PascalCase to kebab-case +// Thank you: http://stackoverflow.com/a/8955580 + + +function hyphenate(str) { + return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); +} + +var Box = { + ImNotTouchingYou: ImNotTouchingYou, + OverlapArea: OverlapArea, + GetDimensions: GetDimensions, + GetExplicitOffsets: GetExplicitOffsets + /** + * Compares the dimensions of an element to a container and determines collision events with container. + * @function + * @param {jQuery} element - jQuery object to test for collisions. + * @param {jQuery} parent - jQuery object to use as bounding container. + * @param {Boolean} lrOnly - set to true to check left and right values only. + * @param {Boolean} tbOnly - set to true to check top and bottom values only. + * @default if no parent object passed, detects collisions with `window`. + * @returns {Boolean} - true if collision free, false if a collision in any direction. + */ + +}; + +function ImNotTouchingYou(element, parent, lrOnly, tbOnly, ignoreBottom) { + return OverlapArea(element, parent, lrOnly, tbOnly, ignoreBottom) === 0; +} + +function OverlapArea(element, parent, lrOnly, tbOnly, ignoreBottom) { + var eleDims = GetDimensions(element), + topOver, + bottomOver, + leftOver, + rightOver; + + if (parent) { + var parDims = GetDimensions(parent); + bottomOver = parDims.height + parDims.offset.top - (eleDims.offset.top + eleDims.height); + topOver = eleDims.offset.top - parDims.offset.top; + leftOver = eleDims.offset.left - parDims.offset.left; + rightOver = parDims.width + parDims.offset.left - (eleDims.offset.left + eleDims.width); + } else { + bottomOver = eleDims.windowDims.height + eleDims.windowDims.offset.top - (eleDims.offset.top + eleDims.height); + topOver = eleDims.offset.top - eleDims.windowDims.offset.top; + leftOver = eleDims.offset.left - eleDims.windowDims.offset.left; + rightOver = eleDims.windowDims.width - (eleDims.offset.left + eleDims.width); + } + + bottomOver = ignoreBottom ? 0 : Math.min(bottomOver, 0); + topOver = Math.min(topOver, 0); + leftOver = Math.min(leftOver, 0); + rightOver = Math.min(rightOver, 0); + + if (lrOnly) { + return leftOver + rightOver; + } + + if (tbOnly) { + return topOver + bottomOver; + } // use sum of squares b/c we care about overlap area. + + + return Math.sqrt(topOver * topOver + bottomOver * bottomOver + leftOver * leftOver + rightOver * rightOver); +} +/** + * Uses native methods to return an object of dimension values. + * @function + * @param {jQuery || HTML} element - jQuery object or DOM element for which to get the dimensions. Can be any element other that document or window. + * @returns {Object} - nested object of integer pixel values + * TODO - if element is window, return only those values. + */ + + +function GetDimensions(elem) { + elem = elem.length ? elem[0] : elem; + + if (elem === window || elem === document) { + throw new Error("I'm sorry, Dave. I'm afraid I can't do that."); + } + + var rect = elem.getBoundingClientRect(), + parRect = elem.parentNode.getBoundingClientRect(), + winRect = document.body.getBoundingClientRect(), + winY = window.pageYOffset, + winX = window.pageXOffset; + return { + width: rect.width, + height: rect.height, + offset: { + top: rect.top + winY, + left: rect.left + winX + }, + parentDims: { + width: parRect.width, + height: parRect.height, + offset: { + top: parRect.top + winY, + left: parRect.left + winX + } + }, + windowDims: { + width: winRect.width, + height: winRect.height, + offset: { + top: winY, + left: winX + } + } + }; +} +/** + * Returns an object of top and left integer pixel values for dynamically rendered elements, + * such as: Tooltip, Reveal, and Dropdown. Maintained for backwards compatibility, and where + * you don't know alignment, but generally from + * 6.4 forward you should use GetExplicitOffsets, as GetOffsets conflates position and alignment. + * @function + * @param {jQuery} element - jQuery object for the element being positioned. + * @param {jQuery} anchor - jQuery object for the element's anchor point. + * @param {String} position - a string relating to the desired position of the element, relative to it's anchor + * @param {Number} vOffset - integer pixel value of desired vertical separation between anchor and element. + * @param {Number} hOffset - integer pixel value of desired horizontal separation between anchor and element. + * @param {Boolean} isOverflow - if a collision event is detected, sets to true to default the element to full width - any desired offset. + * TODO alter/rewrite to work with `em` values as well/instead of pixels + */ + + +function GetExplicitOffsets(element, anchor, position, alignment, vOffset, hOffset, isOverflow) { + var $eleDims = GetDimensions(element), + $anchorDims = anchor ? GetDimensions(anchor) : null; + var topVal, leftVal; + + if ($anchorDims !== null) { + // set position related attribute + switch (position) { + case 'top': + topVal = $anchorDims.offset.top - ($eleDims.height + vOffset); + break; + + case 'bottom': + topVal = $anchorDims.offset.top + $anchorDims.height + vOffset; + break; + + case 'left': + leftVal = $anchorDims.offset.left - ($eleDims.width + hOffset); + break; + + case 'right': + leftVal = $anchorDims.offset.left + $anchorDims.width + hOffset; + break; + } // set alignment related attribute + + + switch (position) { + case 'top': + case 'bottom': + switch (alignment) { + case 'left': + leftVal = $anchorDims.offset.left + hOffset; + break; + + case 'right': + leftVal = $anchorDims.offset.left - $eleDims.width + $anchorDims.width - hOffset; + break; + + case 'center': + leftVal = isOverflow ? hOffset : $anchorDims.offset.left + $anchorDims.width / 2 - $eleDims.width / 2 + hOffset; + break; + } + + break; + + case 'right': + case 'left': + switch (alignment) { + case 'bottom': + topVal = $anchorDims.offset.top - vOffset + $anchorDims.height - $eleDims.height; + break; + + case 'top': + topVal = $anchorDims.offset.top + vOffset; + break; + + case 'center': + topVal = $anchorDims.offset.top + vOffset + $anchorDims.height / 2 - $eleDims.height / 2; + break; + } + + break; + } + } + + return { + top: topVal, + left: leftVal + }; +} +/** + * Runs a callback function when images are fully loaded. + * @param {Object} images - Image(s) to check if loaded. + * @param {Func} callback - Function to execute when image is fully loaded. + */ + + +function onImagesLoaded(images, callback) { + var unloaded = images.length; + + if (unloaded === 0) { + callback(); + } + + images.each(function () { + // Check if image is loaded + if (this.complete && typeof this.naturalWidth !== 'undefined') { + singleImageLoaded(); + } else { + // If the above check failed, simulate loading on detached element. + var image = new Image(); // Still count image as loaded if it finalizes with an error. + + var events = "load.zf.images error.zf.images"; + jquery__WEBPACK_IMPORTED_MODULE_0___default()(image).one(events, function me(event) { + // Unbind the event listeners. We're using 'one' but only one of the two events will have fired. + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).off(events, me); + singleImageLoaded(); + }); + image.src = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('src'); + } + }); + + function singleImageLoaded() { + unloaded--; + + if (unloaded === 0) { + callback(); + } + } +} +/******************************************* + * * + * This util was created by Marius Olbertz * + * Please thank Marius on GitHub /owlbertz * + * or the web http://www.mariusolbertz.de/ * + * * + ******************************************/ + + +var keyCodes = { + 9: 'TAB', + 13: 'ENTER', + 27: 'ESCAPE', + 32: 'SPACE', + 35: 'END', + 36: 'HOME', + 37: 'ARROW_LEFT', + 38: 'ARROW_UP', + 39: 'ARROW_RIGHT', + 40: 'ARROW_DOWN' +}; +var commands = {}; // Functions pulled out to be referenceable from internals + +function findFocusable($element) { + if (!$element) { + return false; + } + + return $element.find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]').filter(function () { + if (!jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is(':visible') || jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('tabindex') < 0) { + return false; + } //only have visible elements and those that have a tabindex greater or equal 0 + + + return true; + }); +} + +function parseKey(event) { + var key = keyCodes[event.which || event.keyCode] || String.fromCharCode(event.which).toUpperCase(); // Remove un-printable characters, e.g. for `fromCharCode` calls for CTRL only events + + key = key.replace(/\W+/, ''); + if (event.shiftKey) key = "SHIFT_".concat(key); + if (event.ctrlKey) key = "CTRL_".concat(key); + if (event.altKey) key = "ALT_".concat(key); // Remove trailing underscore, in case only modifiers were used (e.g. only `CTRL_ALT`) + + key = key.replace(/_$/, ''); + return key; +} + +var Keyboard = { + keys: getKeyCodes(keyCodes), + + /** + * Parses the (keyboard) event and returns a String that represents its key + * Can be used like Foundation.parseKey(event) === Foundation.keys.SPACE + * @param {Event} event - the event generated by the event handler + * @return String key - String that represents the key pressed + */ + parseKey: parseKey, + + /** + * Handles the given (keyboard) event + * @param {Event} event - the event generated by the event handler + * @param {String} component - Foundation component's name, e.g. Slider or Reveal + * @param {Objects} functions - collection of functions that are to be executed + */ + handleKey: function handleKey(event, component, functions) { + var commandList = commands[component], + keyCode = this.parseKey(event), + cmds, + command, + fn; + if (!commandList) return console.warn('Component not defined!'); // Ignore the event if it was already handled + + if (event.zfIsKeyHandled === true) return; // This component does not differentiate between ltr and rtl + + if (typeof commandList.ltr === 'undefined') { + cmds = commandList; // use plain list + } else { + // merge ltr and rtl: if document is rtl, rtl overwrites ltr and vice versa + if (rtl()) cmds = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({}, commandList.ltr, commandList.rtl);else cmds = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({}, commandList.rtl, commandList.ltr); + } + + command = cmds[keyCode]; + fn = functions[command]; // Execute the handler if found + + if (fn && typeof fn === 'function') { + var returnValue = fn.apply(); // Mark the event as "handled" to prevent future handlings + + event.zfIsKeyHandled = true; // Execute function when event was handled + + if (functions.handled || typeof functions.handled === 'function') { + functions.handled(returnValue); + } + } else { + // Execute function when event was not handled + if (functions.unhandled || typeof functions.unhandled === 'function') { + functions.unhandled(); + } + } + }, + + /** + * Finds all focusable elements within the given `$element` + * @param {jQuery} $element - jQuery object to search within + * @return {jQuery} $focusable - all focusable elements within `$element` + */ + findFocusable: findFocusable, + + /** + * Returns the component name name + * @param {Object} component - Foundation component, e.g. Slider or Reveal + * @return String componentName + */ + register: function register(componentName, cmds) { + commands[componentName] = cmds; + }, + // TODO9438: These references to Keyboard need to not require global. Will 'this' work in this context? + // + + /** + * Traps the focus in the given element. + * @param {jQuery} $element jQuery object to trap the foucs into. + */ + trapFocus: function trapFocus($element) { + var $focusable = findFocusable($element), + $firstFocusable = $focusable.eq(0), + $lastFocusable = $focusable.eq(-1); + $element.on('keydown.zf.trapfocus', function (event) { + if (event.target === $lastFocusable[0] && parseKey(event) === 'TAB') { + event.preventDefault(); + $firstFocusable.focus(); + } else if (event.target === $firstFocusable[0] && parseKey(event) === 'SHIFT_TAB') { + event.preventDefault(); + $lastFocusable.focus(); + } + }); + }, + + /** + * Releases the trapped focus from the given element. + * @param {jQuery} $element jQuery object to release the focus for. + */ + releaseFocus: function releaseFocus($element) { + $element.off('keydown.zf.trapfocus'); + } +}; +/* + * Constants for easier comparing. + * Can be used like Foundation.parseKey(event) === Foundation.keys.SPACE + */ + +function getKeyCodes(kcs) { + var k = {}; + + for (var kc in kcs) { + k[kcs[kc]] = kcs[kc]; + } + + return k; +} +/** + * Motion module. + * @module foundation.motion + */ + + +var initClasses = ['mui-enter', 'mui-leave']; +var activeClasses = ['mui-enter-active', 'mui-leave-active']; +var Motion = { + animateIn: function animateIn(element, animation, cb) { + animate(true, element, animation, cb); + }, + animateOut: function animateOut(element, animation, cb) { + animate(false, element, animation, cb); + } +}; + +function Move(duration, elem, fn) { + var anim, + prog, + start = null; // console.log('called'); + + if (duration === 0) { + fn.apply(elem); + elem.trigger('finished.zf.animate', [elem]).triggerHandler('finished.zf.animate', [elem]); + return; + } + + function move(ts) { + if (!start) start = ts; // console.log(start, ts); + + prog = ts - start; + fn.apply(elem); + + if (prog < duration) { + anim = window.requestAnimationFrame(move, elem); + } else { + window.cancelAnimationFrame(anim); + elem.trigger('finished.zf.animate', [elem]).triggerHandler('finished.zf.animate', [elem]); + } + } + + anim = window.requestAnimationFrame(move); +} +/** + * Animates an element in or out using a CSS transition class. + * @function + * @private + * @param {Boolean} isIn - Defines if the animation is in or out. + * @param {Object} element - jQuery or HTML object to animate. + * @param {String} animation - CSS class to use. + * @param {Function} cb - Callback to run when animation is finished. + */ + + +function animate(isIn, element, animation, cb) { + element = jquery__WEBPACK_IMPORTED_MODULE_0___default()(element).eq(0); + if (!element.length) return; + var initClass = isIn ? initClasses[0] : initClasses[1]; + var activeClass = isIn ? activeClasses[0] : activeClasses[1]; // Set up the animation + + reset(); + element.addClass(animation).css('transition', 'none'); + requestAnimationFrame(function () { + element.addClass(initClass); + if (isIn) element.show(); + }); // Start the animation + + requestAnimationFrame(function () { + // will trigger the browser to synchronously calculate the style and layout + // also called reflow or layout thrashing + // see https://gist.github.com/paulirish/5d52fb081b3570c81e3a + element[0].offsetWidth; + element.css('transition', '').addClass(activeClass); + }); // Clean up the animation when it finishes + + element.one(transitionend(element), finish); // Hides the element (for out animations), resets the element, and runs a callback + + function finish() { + if (!isIn) element.hide(); + reset(); + if (cb) cb.apply(element); + } // Resets transitions and removes motion-specific classes + + + function reset() { + element[0].style.transitionDuration = 0; + element.removeClass("".concat(initClass, " ").concat(activeClass, " ").concat(animation)); + } +} + +var Nest = { + Feather: function Feather(menu) { + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'zf'; + menu.attr('role', 'menubar'); + menu.find('a').attr({ + 'role': 'menuitem' + }); + var items = menu.find('li').attr({ + 'role': 'none' + }), + subMenuClass = "is-".concat(type, "-submenu"), + subItemClass = "".concat(subMenuClass, "-item"), + hasSubClass = "is-".concat(type, "-submenu-parent"), + applyAria = type !== 'accordion'; // Accordions handle their own ARIA attriutes. + + items.each(function () { + var $item = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), + $sub = $item.children('ul'); + + if ($sub.length) { + $item.addClass(hasSubClass); + + if (applyAria) { + $item.attr({ + 'aria-haspopup': true, + 'aria-label': $item.children('a:first').text() + }); // Note: Drilldowns behave differently in how they hide, and so need + // additional attributes. We should look if this possibly over-generalized + // utility (Nest) is appropriate when we rework menus in 6.4 + + if (type === 'drilldown') { + $item.attr({ + 'aria-expanded': false + }); + } + } + + $sub.addClass("submenu ".concat(subMenuClass)).attr({ + 'data-submenu': '', + 'role': 'menubar' + }); + + if (type === 'drilldown') { + $sub.attr({ + 'aria-hidden': true + }); + } + } + + if ($item.parent('[data-submenu]').length) { + $item.addClass("is-submenu-item ".concat(subItemClass)); + } + }); + return; + }, + Burn: function Burn(menu, type) { + var //items = menu.find('li'), + subMenuClass = "is-".concat(type, "-submenu"), + subItemClass = "".concat(subMenuClass, "-item"), + hasSubClass = "is-".concat(type, "-submenu-parent"); + menu.find('>li, > li > ul, .menu, .menu > li, [data-submenu] > li').removeClass("".concat(subMenuClass, " ").concat(subItemClass, " ").concat(hasSubClass, " is-submenu-item submenu is-active")).removeAttr('data-submenu').css('display', ''); + } +}; + +function Timer(elem, options, cb) { + var _this = this, + duration = options.duration, + //options is an object for easily adding features later. + nameSpace = Object.keys(elem.data())[0] || 'timer', + remain = -1, + start, + timer; + + this.isPaused = false; + + this.restart = function () { + remain = -1; + clearTimeout(timer); + this.start(); + }; + + this.start = function () { + this.isPaused = false; // if(!elem.data('paused')){ return false; }//maybe implement this sanity check if used for other things. + + clearTimeout(timer); + remain = remain <= 0 ? duration : remain; + elem.data('paused', false); + start = Date.now(); + timer = setTimeout(function () { + if (options.infinite) { + _this.restart(); //rerun the timer. + + } + + if (cb && typeof cb === 'function') { + cb(); + } + }, remain); + elem.trigger("timerstart.zf.".concat(nameSpace)); + }; + + this.pause = function () { + this.isPaused = true; //if(elem.data('paused')){ return false; }//maybe implement this sanity check if used for other things. + + clearTimeout(timer); + elem.data('paused', true); + var end = Date.now(); + remain = remain - (end - start); + elem.trigger("timerpaused.zf.".concat(nameSpace)); + }; +} + +var Touch = {}; +var startPosX, + startPosY, + startTime, + elapsedTime, + startEvent, + isMoving = false, + didMoved = false; + +function onTouchEnd(e) { + this.removeEventListener('touchmove', onTouchMove); + this.removeEventListener('touchend', onTouchEnd); // If the touch did not move, consider it as a "tap" + + if (!didMoved) { + var tapEvent = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.Event('tap', startEvent || e); + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger(tapEvent); + } + + startEvent = null; + isMoving = false; + didMoved = false; +} + +function onTouchMove(e) { + if (jquery__WEBPACK_IMPORTED_MODULE_0___default.a.spotSwipe.preventDefault) { + e.preventDefault(); + } + + if (isMoving) { + var x = e.touches[0].pageX; + var y = e.touches[0].pageY; + var dx = startPosX - x; + var dir; + didMoved = true; + elapsedTime = new Date().getTime() - startTime; + + if (Math.abs(dx) >= jquery__WEBPACK_IMPORTED_MODULE_0___default.a.spotSwipe.moveThreshold && elapsedTime <= jquery__WEBPACK_IMPORTED_MODULE_0___default.a.spotSwipe.timeThreshold) { + dir = dx > 0 ? 'left' : 'right'; + } // else if(Math.abs(dy) >= $.spotSwipe.moveThreshold && elapsedTime <= $.spotSwipe.timeThreshold) { + // dir = dy > 0 ? 'down' : 'up'; + // } + + + if (dir) { + e.preventDefault(); + onTouchEnd.apply(this, arguments); + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger(jquery__WEBPACK_IMPORTED_MODULE_0___default.a.Event('swipe', Object.assign({}, e)), dir).trigger(jquery__WEBPACK_IMPORTED_MODULE_0___default.a.Event("swipe".concat(dir), Object.assign({}, e))); + } + } +} + +function onTouchStart(e) { + if (e.touches.length == 1) { + startPosX = e.touches[0].pageX; + startPosY = e.touches[0].pageY; + startEvent = e; + isMoving = true; + didMoved = false; + startTime = new Date().getTime(); + this.addEventListener('touchmove', onTouchMove, false); + this.addEventListener('touchend', onTouchEnd, false); + } +} + +function init() { + this.addEventListener && this.addEventListener('touchstart', onTouchStart, false); +} + +var SpotSwipe = /*#__PURE__*/function () { + function SpotSwipe($) { + _classCallCheck(this, SpotSwipe); + + this.version = '1.0.0'; + this.enabled = 'ontouchstart' in document.documentElement; + this.preventDefault = false; + this.moveThreshold = 75; + this.timeThreshold = 200; + this.$ = $; + + this._init(); + } + + _createClass(SpotSwipe, [{ + key: "_init", + value: function _init() { + var $ = this.$; + $.event.special.swipe = { + setup: init + }; + $.event.special.tap = { + setup: init + }; + $.each(['left', 'up', 'down', 'right'], function () { + $.event.special["swipe".concat(this)] = { + setup: function setup() { + $(this).on('swipe', $.noop); + } + }; + }); + } + }]); + + return SpotSwipe; +}(); +/**************************************************** + * As far as I can tell, both setupSpotSwipe and * + * setupTouchHandler should be idempotent, * + * because they directly replace functions & * + * values, and do not add event handlers directly. * + ****************************************************/ + + +Touch.setupSpotSwipe = function ($) { + $.spotSwipe = new SpotSwipe($); +}; +/**************************************************** + * Method for adding pseudo drag events to elements * + ***************************************************/ + + +Touch.setupTouchHandler = function ($) { + $.fn.addTouch = function () { + this.each(function (i, el) { + $(el).bind('touchstart touchmove touchend touchcancel', function (event) { + //we pass the original event object because the jQuery event + //object is normalized to w3c specs and does not provide the TouchList + handleTouch(event); + }); + }); + + var handleTouch = function handleTouch(event) { + var touches = event.changedTouches, + first = touches[0], + eventTypes = { + touchstart: 'mousedown', + touchmove: 'mousemove', + touchend: 'mouseup' + }, + type = eventTypes[event.type], + simulatedEvent; + + if ('MouseEvent' in window && typeof window.MouseEvent === 'function') { + simulatedEvent = new window.MouseEvent(type, { + 'bubbles': true, + 'cancelable': true, + 'screenX': first.screenX, + 'screenY': first.screenY, + 'clientX': first.clientX, + 'clientY': first.clientY + }); + } else { + simulatedEvent = document.createEvent('MouseEvent'); + simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, false, false, false, false, 0 + /*left*/ + , null); + } + + first.target.dispatchEvent(simulatedEvent); + }; + }; +}; + +Touch.init = function ($) { + if (typeof $.spotSwipe === 'undefined') { + Touch.setupSpotSwipe($); + Touch.setupTouchHandler($); + } +}; + +var MutationObserver = function () { + var prefixes = ['WebKit', 'Moz', 'O', 'Ms', '']; + + for (var i = 0; i < prefixes.length; i++) { + if ("".concat(prefixes[i], "MutationObserver") in window) { + return window["".concat(prefixes[i], "MutationObserver")]; + } + } + + return false; +}(); + +var triggers = function triggers(el, type) { + el.data(type).split(' ').forEach(function (id) { + jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]); + }); +}; + +var Triggers = { + Listeners: { + Basic: {}, + Global: {} + }, + Initializers: {} +}; +Triggers.Listeners.Basic = { + openListener: function openListener() { + triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'open'); + }, + closeListener: function closeListener() { + var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close'); + + if (id) { + triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close'); + } else { + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('close.zf.trigger'); + } + }, + toggleListener: function toggleListener() { + var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle'); + + if (id) { + triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle'); + } else { + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('toggle.zf.trigger'); + } + }, + closeableListener: function closeableListener(e) { + var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable'); // Only close the first closable element. See https://git.io/zf-7833 + + e.stopPropagation(); + + if (animation !== '') { + Motion.animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () { + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf'); + }); + } else { + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).fadeOut().trigger('closed.zf'); + } + }, + toggleFocusListener: function toggleFocusListener() { + var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus'); + jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]); + } +}; // Elements with [data-open] will reveal a plugin that supports it when clicked. + +Triggers.Initializers.addOpenListener = function ($elem) { + $elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener); + $elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener); +}; // Elements with [data-close] will close a plugin that supports it when clicked. +// If used without a value on [data-close], the event will bubble, allowing it to close a parent component. + + +Triggers.Initializers.addCloseListener = function ($elem) { + $elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener); + $elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener); +}; // Elements with [data-toggle] will toggle a plugin that supports it when clicked. + + +Triggers.Initializers.addToggleListener = function ($elem) { + $elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener); + $elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener); +}; // Elements with [data-closable] will respond to close.zf.trigger events. + + +Triggers.Initializers.addCloseableListener = function ($elem) { + $elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener); + $elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener); +}; // Elements with [data-toggle-focus] will respond to coming in and out of focus + + +Triggers.Initializers.addToggleFocusListener = function ($elem) { + $elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener); + $elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener); +}; // More Global/complex listeners and triggers + + +Triggers.Listeners.Global = { + resizeListener: function resizeListener($nodes) { + if (!MutationObserver) { + //fallback for IE 9 + $nodes.each(function () { + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger'); + }); + } //trigger all listening elements and signal a resize event + + + $nodes.attr('data-events', "resize"); + }, + scrollListener: function scrollListener($nodes) { + if (!MutationObserver) { + //fallback for IE 9 + $nodes.each(function () { + jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger'); + }); + } //trigger all listening elements and signal a scroll event + + + $nodes.attr('data-events', "scroll"); + }, + closeMeListener: function closeMeListener(e, pluginId) { + var plugin = e.namespace.split('.')[0]; + var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]")); + plugins.each(function () { + var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this); + + _this.triggerHandler('close.zf.trigger', [_this]); + }); + } // Global, parses whole document. + +}; + +Triggers.Initializers.addClosemeListener = function (pluginName) { + var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'), + plugNames = ['dropdown', 'tooltip', 'reveal']; + + if (pluginName) { + if (typeof pluginName === 'string') { + plugNames.push(pluginName); + } else if (_typeof(pluginName) === 'object' && typeof pluginName[0] === 'string') { + plugNames = plugNames.concat(pluginName); + } else { + console.error('Plugin names must be strings'); + } + } + + if (yetiBoxes.length) { + var listeners = plugNames.map(function (name) { + return "closeme.zf.".concat(name); + }).join(' '); + jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener); + } +}; + +function debounceGlobalListener(debounce, trigger, listener) { + var timer, + args = Array.prototype.slice.call(arguments, 3); + jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger, function (e) { + if (timer) { + clearTimeout(timer); + } + + timer = setTimeout(function () { + listener.apply(null, args); + }, debounce || 10); //default time to emit scroll event + }); +} + +Triggers.Initializers.addResizeListener = function (debounce) { + var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]'); + + if ($nodes.length) { + debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes); + } +}; + +Triggers.Initializers.addScrollListener = function (debounce) { + var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]'); + + if ($nodes.length) { + debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes); + } +}; + +Triggers.Initializers.addMutationEventsListener = function ($elem) { + if (!MutationObserver) { + return false; + } + + var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]'); //element callback + + var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) { + var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target); //trigger the event handler for the element depending on type + + switch (mutationRecordsList[0].type) { + case "attributes": + if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") { + $target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]); + } + + if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") { + $target.triggerHandler('resizeme.zf.trigger', [$target]); + } + + if (mutationRecordsList[0].attributeName === "style") { + $target.closest("[data-mutate]").attr("data-events", "mutate"); + $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]); + } + + break; + + case "childList": + $target.closest("[data-mutate]").attr("data-events", "mutate"); + $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]); + break; + + default: + return false; + //nothing + } + }; + + if ($nodes.length) { + //for each element that needs to listen for resizing, scrolling, or mutation add a single observer + for (var i = 0; i <= $nodes.length - 1; i++) { + var elementObserver = new MutationObserver(listeningElementsMutation); + elementObserver.observe($nodes[i], { + attributes: true, + childList: true, + characterData: false, + subtree: true, + attributeFilter: ["data-events", "style"] + }); + } + } +}; + +Triggers.Initializers.addSimpleListeners = function () { + var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document); + Triggers.Initializers.addOpenListener($document); + Triggers.Initializers.addCloseListener($document); + Triggers.Initializers.addToggleListener($document); + Triggers.Initializers.addCloseableListener($document); + Triggers.Initializers.addToggleFocusListener($document); +}; + +Triggers.Initializers.addGlobalListeners = function () { + var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document); + Triggers.Initializers.addMutationEventsListener($document); + Triggers.Initializers.addResizeListener(); + Triggers.Initializers.addScrollListener(); + Triggers.Initializers.addClosemeListener(); +}; + +Triggers.init = function ($, Foundation) { + onLoad($(window), function () { + if ($.triggersInitialized !== true) { + Triggers.Initializers.addSimpleListeners(); + Triggers.Initializers.addGlobalListeners(); + $.triggersInitialized = true; + } + }); + + if (Foundation) { + Foundation.Triggers = Triggers; // Legacy included to be backwards compatible for now. + + Foundation.IHearYou = Triggers.Initializers.addGlobalListeners; + } +}; // {function} _setup (replaces previous constructor), +// {function} _destroy (replaces previous destroy) + + +var Plugin = /*#__PURE__*/function () { + function Plugin(element, options) { + _classCallCheck(this, Plugin); + + this._setup(element, options); + + var pluginName = getPluginName(this); + this.uuid = GetYoDigits(6, pluginName); + + if (!this.$element.attr("data-".concat(pluginName))) { + this.$element.attr("data-".concat(pluginName), this.uuid); + } + + if (!this.$element.data('zfPlugin')) { + this.$element.data('zfPlugin', this); + } + /** + * Fires when the plugin has initialized. + * @event Plugin#init + */ + + + this.$element.trigger("init.zf.".concat(pluginName)); + } + + _createClass(Plugin, [{ + key: "destroy", + value: function destroy() { + this._destroy(); + + var pluginName = getPluginName(this); + this.$element.removeAttr("data-".concat(pluginName)).removeData('zfPlugin') + /** + * Fires when the plugin has been destroyed. + * @event Plugin#destroyed + */ + .trigger("destroyed.zf.".concat(pluginName)); + + for (var prop in this) { + this[prop] = null; //clean up script to prep for garbage collection. + } + } + }]); + + return Plugin; +}(); // Convert PascalCase to kebab-case +// Thank you: http://stackoverflow.com/a/8955580 + + +function hyphenate$1(str) { + return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); +} + +function getPluginName(obj) { + return hyphenate$1(obj.className); +} +/** + * Abide module. + * @module foundation.abide + */ + + +var Abide = /*#__PURE__*/function (_Plugin) { + _inherits(Abide, _Plugin); + + function Abide() { + _classCallCheck(this, Abide); + + return _possibleConstructorReturn(this, _getPrototypeOf(Abide).apply(this, arguments)); + } + + _createClass(Abide, [{ + key: "_setup", + + /** + * Creates a new instance of Abide. + * @class + * @name Abide + * @fires Abide#init + * @param {Object} element - jQuery object to add the trigger to. + * @param {Object} options - Overrides to the default plugin settings. + */ + value: function _setup(element) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + this.$element = element; + this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend(true, {}, Abide.defaults, this.$element.data(), options); + this.isEnabled = true; + this.formnovalidate = null; + this.className = 'Abide'; // ie9 back compat + + this._init(); + } + /** + * Initializes the Abide plugin and calls functions to get Abide functioning on load. + * @private + */ + + }, { + key: "_init", + value: function _init() { + var _this2 = this; + + this.$inputs = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.merge( // Consider as input to validate: + this.$element.find('input').not('[type="submit"]'), // * all input fields expect submit + this.$element.find('textarea, select') // * all textareas and select fields + ); + this.$submits = this.$element.find('[type="submit"]'); + var $globalErrors = this.$element.find('[data-abide-error]'); // Add a11y attributes to all fields + + if (this.options.a11yAttributes) { + this.$inputs.each(function (i, input) { + return _this2.addA11yAttributes(jquery__WEBPACK_IMPORTED_MODULE_0___default()(input)); + }); + $globalErrors.each(function (i, error) { + return _this2.addGlobalErrorA11yAttributes(jquery__WEBPACK_IMPORTED_MODULE_0___default()(error)); + }); + } + + this._events(); + } + /** + * Initializes events for Abide. + * @private + */ + + }, { + key: "_events", + value: function _events() { + var _this3 = this; + + this.$element.off('.abide').on('reset.zf.abide', function () { + _this3.resetForm(); + }).on('submit.zf.abide', function () { + return _this3.validateForm(); + }); + this.$submits.off('click.zf.abide keydown.zf.abide').on('click.zf.abide keydown.zf.abide', function (e) { + if (!e.key || e.key === ' ' || e.key === 'Enter') { + e.preventDefault(); + _this3.formnovalidate = e.target.getAttribute('formnovalidate') !== null; + + _this3.$element.submit(); + } + }); + + if (this.options.validateOn === 'fieldChange') { + this.$inputs.off('change.zf.abide').on('change.zf.abide', function (e) { + _this3.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target)); + }); + } + + if (this.options.liveValidate) { + this.$inputs.off('input.zf.abide').on('input.zf.abide', function (e) { + _this3.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target)); + }); + } + + if (this.options.validateOnBlur) { + this.$inputs.off('blur.zf.abide').on('blur.zf.abide', function (e) { + _this3.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target)); + }); + } + } + /** + * Calls necessary functions to update Abide upon DOM change + * @private + */ + + }, { + key: "_reflow", + value: function _reflow() { + this._init(); + } + /** + * Checks whether the submitted form should be validated or not, consodering formnovalidate and isEnabled + * @returns {Boolean} + * @private + */ + + }, { + key: "_validationIsDisabled", + value: function _validationIsDisabled() { + if (this.isEnabled === false) { + // whole validation disabled + return true; + } else if (typeof this.formnovalidate === 'boolean') { + // triggered by $submit + return this.formnovalidate; + } // triggered by Enter in non-submit input + + + return this.$submits.length ? this.$submits[0].getAttribute('formnovalidate') !== null : false; + } + /** + * Enables the whole validation + */ + + }, { + key: "enableValidation", + value: function enableValidation() { + this.isEnabled = true; + } + /** + * Disables the whole validation + */ + + }, { + key: "disableValidation", + value: function disableValidation() { + this.isEnabled = false; + } + /** + * Checks whether or not a form element has the required attribute and if it's checked or not + * @param {Object} element - jQuery object to check for required attribute + * @returns {Boolean} Boolean value depends on whether or not attribute is checked or empty + */ + + }, { + key: "requiredCheck", + value: function requiredCheck($el) { + if (!$el.attr('required')) return true; + var isGood = true; + + switch ($el[0].type) { + case 'checkbox': + isGood = $el[0].checked; + break; + + case 'select': + case 'select-one': + case 'select-multiple': + var opt = $el.find('option:selected'); + if (!opt.length || !opt.val()) isGood = false; + break; + + default: + if (!$el.val() || !$el.val().length) isGood = false; + } + + return isGood; + } + /** + * Get: + * - Based on $el, the first element(s) corresponding to `formErrorSelector` in this order: + * 1. The element's direct sibling('s). + * 2. The element's parent's children. + * - Element(s) with the attribute `[data-form-error-for]` set with the element's id. + * + * This allows for multiple form errors per input, though if none are found, no form errors will be shown. + * + * @param {Object} $el - jQuery object to use as reference to find the form error selector. + * @param {String[]} [failedValidators] - List of failed validators. + * @returns {Object} jQuery object with the selector. + */ + + }, { + key: "findFormError", + value: function findFormError($el, failedValidators) { + var _this4 = this; + + var id = $el.length ? $el[0].id : ''; + var $error = $el.siblings(this.options.formErrorSelector); + + if (!$error.length) { + $error = $el.parent().find(this.options.formErrorSelector); + } + + if (id) { + $error = $error.add(this.$element.find("[data-form-error-for=\"".concat(id, "\"]"))); + } + + if (!!failedValidators) { + $error = $error.not('[data-form-error-on]'); + failedValidators.forEach(function (v) { + $error = $error.add($el.siblings("[data-form-error-on=\"".concat(v, "\"]"))); + $error = $error.add(_this4.$element.find("[data-form-error-for=\"".concat(id, "\"][data-form-error-on=\"").concat(v, "\"]"))); + }); + } + + return $error; + } + /** + * Get the first element in this order: + * 2. The