@thepalaceproject/circulation-admin 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@
10
10
  //! momentjs.com
11
11
  (function(t,r){true?e.exports=r():undefined})(this,(function(){"use strict";var n;function a(){return n.apply(null,arguments)}function i(e){n=e}function o(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function s(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(e).length===0}else{var t;for(t in e){if(u(e,t)){return false}}return true}}function c(e){return e===void 0}function f(e){return typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]"}function d(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function p(e,t){var r=[],n;for(n=0;n<e.length;++n){r.push(t(e[n],n))}return r}function h(e,t){for(var r in t){if(u(t,r)){e[r]=t[r]}}if(u(t,"toString")){e.toString=t.toString}if(u(t,"valueOf")){e.valueOf=t.valueOf}return e}function v(e,t,r,n){return Gr(e,t,r,n,true).utc()}function m(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function y(e){if(e._pf==null){e._pf=m()}return e._pf}var g;if(Array.prototype.some){g=Array.prototype.some}else{g=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++){if(n in t&&e.call(this,t[n],n,t)){return true}}return false}}function b(e){if(e._isValid==null){var t=y(e),r=g.call(t.parsedDateParts,(function(e){return e!=null})),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict){n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(e)){e._isValid=n}else{return n}}return e._isValid}function A(e){var t=v(NaN);if(e!=null){h(y(t),e)}else{y(t).userInvalidated=true}return t}var _=a.momentProperties=[],w=false;function E(e,t){var r,n,a;if(!c(t._isAMomentObject)){e._isAMomentObject=t._isAMomentObject}if(!c(t._i)){e._i=t._i}if(!c(t._f)){e._f=t._f}if(!c(t._l)){e._l=t._l}if(!c(t._strict)){e._strict=t._strict}if(!c(t._tzm)){e._tzm=t._tzm}if(!c(t._isUTC)){e._isUTC=t._isUTC}if(!c(t._offset)){e._offset=t._offset}if(!c(t._pf)){e._pf=y(t)}if(!c(t._locale)){e._locale=t._locale}if(_.length>0){for(r=0;r<_.length;r++){n=_[r];a=t[n];if(!c(a)){e[n]=a}}}return e}function x(e){E(this,e);this._d=new Date(e._d!=null?e._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(w===false){w=true;a.updateOffset(this);w=false}}function k(e){return e instanceof x||e!=null&&e._isAMomentObject!=null}function S(e){if(a.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+e)}}function O(e,t){var r=true;return h((function(){if(a.deprecationHandler!=null){a.deprecationHandler(null,e)}if(r){var n=[],i,o,s;for(o=0;o<arguments.length;o++){i="";if(typeof arguments[o]==="object"){i+="\n["+o+"] ";for(s in arguments[0]){if(u(arguments[0],s)){i+=s+": "+arguments[0][s]+", "}}i=i.slice(0,-2)}else{i=arguments[o]}n.push(i)}S(e+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack);r=false}return t.apply(this,arguments)}),t)}var M={};function D(e,t){if(a.deprecationHandler!=null){a.deprecationHandler(e,t)}if(!M[e]){S(t);M[e]=true}}a.suppressDeprecationWarnings=false;a.deprecationHandler=null;function T(e){return typeof Function!=="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function L(e){var t,r;for(r in e){if(u(e,r)){t=e[r];if(T(t)){this[r]=t}else{this["_"+r]=t}}}this._config=e;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var r=h({},e),n;for(n in t){if(u(t,n)){if(s(e[n])&&s(t[n])){r[n]={};h(r[n],e[n]);h(r[n],t[n])}else if(t[n]!=null){r[n]=t[n]}else{delete r[n]}}}for(n in e){if(u(e,n)&&!u(t,n)&&s(e[n])){r[n]=h({},r[n])}}return r}function j(e){if(e!=null){this.set(e)}}var N;if(Object.keys){N=Object.keys}else{N=function(e){var t,r=[];for(t in e){if(u(e,t)){r.push(t)}}return r}}var I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(e,t,r){var n=this._calendar[e]||this._calendar["sameElse"];return T(n)?n.call(t,r):n}function R(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},H={};function U(e,t,r,n){var a=n;if(typeof n==="string"){a=function(){return this[n]()}}if(e){H[e]=a}if(t){H[t[0]]=function(){return R(a.apply(this,arguments),t[1],t[2])}}if(r){H[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)}}}function z(e){if(e.match(/\[[\s\S]/)){return e.replace(/^\[|\]$/g,"")}return e.replace(/\\/g,"")}function q(e){var t=e.match(F),r,n;for(r=0,n=t.length;r<n;r++){if(H[t[r]]){t[r]=H[t[r]]}else{t[r]=z(t[r])}}return function(r){var a="",i;for(i=0;i<n;i++){a+=T(t[i])?t[i].call(r,e):t[i]}return a}}function V(e,t){if(!e.isValid()){return e.localeData().invalidDate()}t=W(t,e.localeData());B[t]=B[t]||q(t);return B[t](e)}function W(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}Y.lastIndex=0;while(r>=0&&Y.test(e)){e=e.replace(Y,n);Y.lastIndex=0;r-=1}return e}var K={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];if(t||!r){return t}this._longDateFormat[e]=r.match(F).map((function(e){if(e==="MMMM"||e==="MM"||e==="DD"||e==="dddd"){return e.slice(1)}return e})).join("");return this._longDateFormat[e]}var Q="Invalid date";function J(){return this._invalidDate}var Z="%d",X=/\d{1,2}/;function $(e){return this._ordinal.replace("%d",e)}var ee={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function te(e,t,r,n){var a=this._relativeTime[r];return T(a)?a(e,t,r,n):a.replace(/%d/i,e)}function re(e,t){var r=this._relativeTime[e>0?"future":"past"];return T(r)?r(t):r.replace(/%s/i,t)}var ne={};function ae(e,t){var r=e.toLowerCase();ne[r]=ne[r+"s"]=ne[t]=e}function ie(e){return typeof e==="string"?ne[e]||ne[e.toLowerCase()]:undefined}function oe(e){var t={},r,n;for(n in e){if(u(e,n)){r=ie(n);if(r){t[r]=e[n]}}}return t}var se={};function ue(e,t){se[e]=t}function le(e){var t=[],r;for(r in e){if(u(e,r)){t.push({unit:r,priority:se[r]})}}t.sort((function(e,t){return e.priority-t.priority}));return t}function ce(e){return e%4===0&&e%100!==0||e%400===0}function fe(e){if(e<0){return Math.ceil(e)||0}else{return Math.floor(e)}}function de(e){var t=+e,r=0;if(t!==0&&isFinite(t)){r=fe(t)}return r}function pe(e,t){return function(r){if(r!=null){ve(this,e,r);a.updateOffset(this,t);return this}else{return he(this,e)}}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ve(e,t,r){if(e.isValid()&&!isNaN(r)){if(t==="FullYear"&&ce(e.year())&&e.month()===1&&e.date()===29){r=de(r);e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),tt(r,e.month()))}else{e._d["set"+(e._isUTC?"UTC":"")+t](r)}}}function me(e){e=ie(e);if(T(this[e])){return this[e]()}return this}function ye(e,t){if(typeof e==="object"){e=oe(e);var r=le(e),n;for(n=0;n<r.length;n++){this[r[n].unit](e[r[n].unit])}}else{e=ie(e);if(T(this[e])){return this[e](t)}}return this}var ge=/\d/,be=/\d\d/,Ae=/\d{3}/,_e=/\d{4}/,we=/[+-]?\d{6}/,Ee=/\d\d?/,xe=/\d\d\d\d?/,ke=/\d\d\d\d\d\d?/,Se=/\d{1,3}/,Oe=/\d{1,4}/,Me=/[+-]?\d{1,6}/,De=/\d+/,Te=/[+-]?\d+/,Le=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,je=/[+-]?\d+(\.\d{1,3})?/,Ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ie;Ie={};function Pe(e,t,r){Ie[e]=T(t)?t:function(e,n){return e&&r?r:t}}function Re(e,t){if(!u(Ie,e)){return new RegExp(Fe(e))}return Ie[e](t._strict,t._locale)}function Fe(e){return Ye(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,a){return t||r||n||a})))}function Ye(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Be={};function He(e,t){var r,n=t;if(typeof e==="string"){e=[e]}if(f(t)){n=function(e,r){r[t]=de(e)}}for(r=0;r<e.length;r++){Be[e[r]]=n}}function Ue(e,t){He(e,(function(e,r,n,a){n._w=n._w||{};t(e,n._w,n,a)}))}function ze(e,t,r){if(t!=null&&u(Be,e)){Be[e](t,r._a,r,e)}}var qe=0,Ve=1,We=2,Ke=3,Ge=4,Qe=5,Je=6,Ze=7,Xe=8;function $e(e,t){return(e%t+t)%t}var et;if(Array.prototype.indexOf){et=Array.prototype.indexOf}else{et=function(e){var t;for(t=0;t<this.length;++t){if(this[t]===e){return t}}return-1}}function tt(e,t){if(isNaN(e)||isNaN(t)){return NaN}var r=$e(t,12);e+=(t-r)/12;return r===1?ce(e)?29:28:31-r%7%2}U("M",["MM",2],"Mo",(function(){return this.month()+1}));U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)}));U("MMMM",0,0,(function(e){return this.localeData().months(this,e)}));ae("month","M");ue("month",8);Pe("M",Ee);Pe("MM",Ee,be);Pe("MMM",(function(e,t){return t.monthsShortRegex(e)}));Pe("MMMM",(function(e,t){return t.monthsRegex(e)}));He(["M","MM"],(function(e,t){t[Ve]=de(e)-1}));He(["MMM","MMMM"],(function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);if(a!=null){t[Ve]=a}else{y(r).invalidMonth=e}}));var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Ne,ot=Ne;function st(e,t){if(!e){return o(this._months)?this._months:this._months["standalone"]}return o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]}function ut(e,t){if(!e){return o(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}return o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]}function lt(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(n=0;n<12;++n){i=v([2e3,n]);this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase();this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase()}}if(r){if(t==="MMM"){a=et.call(this._shortMonthsParse,o);return a!==-1?a:null}else{a=et.call(this._longMonthsParse,o);return a!==-1?a:null}}else{if(t==="MMM"){a=et.call(this._shortMonthsParse,o);if(a!==-1){return a}a=et.call(this._longMonthsParse,o);return a!==-1?a:null}else{a=et.call(this._longMonthsParse,o);if(a!==-1){return a}a=et.call(this._shortMonthsParse,o);return a!==-1?a:null}}}function ct(e,t,r){var n,a,i;if(this._monthsParseExact){return lt.call(this,e,t,r)}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(n=0;n<12;n++){a=v([2e3,n]);if(r&&!this._longMonthsParse[n]){this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i");this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")}if(!r&&!this._monthsParse[n]){i="^"+this.months(a,"")+"|^"+this.monthsShort(a,"");this._monthsParse[n]=new RegExp(i.replace(".",""),"i")}if(r&&t==="MMMM"&&this._longMonthsParse[n].test(e)){return n}else if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e)){return n}else if(!r&&this._monthsParse[n].test(e)){return n}}}function ft(e,t){var r;if(!e.isValid()){return e}if(typeof t==="string"){if(/^\d+$/.test(t)){t=de(t)}else{t=e.localeData().monthsParse(t);if(!f(t)){return e}}}r=Math.min(e.date(),tt(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r);return e}function dt(e){if(e!=null){ft(this,e);a.updateOffset(this,true);return this}else{return he(this,"Month")}}function pt(){return tt(this.year(),this.month())}function ht(e){if(this._monthsParseExact){if(!u(this,"_monthsRegex")){mt.call(this)}if(e){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!u(this,"_monthsShortRegex")){this._monthsShortRegex=it}return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}}function vt(e){if(this._monthsParseExact){if(!u(this,"_monthsRegex")){mt.call(this)}if(e){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!u(this,"_monthsRegex")){this._monthsRegex=ot}return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}}function mt(){function e(e,t){return t.length-e.length}var t=[],r=[],n=[],a,i;for(a=0;a<12;a++){i=v([2e3,a]);t.push(this.monthsShort(i,""));r.push(this.months(i,""));n.push(this.months(i,""));n.push(this.monthsShort(i,""))}t.sort(e);r.sort(e);n.sort(e);for(a=0;a<12;a++){t[a]=Ye(t[a]);r[a]=Ye(r[a])}for(a=0;a<24;a++){n[a]=Ye(n[a])}this._monthsRegex=new RegExp("^("+n.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}U("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e}));U(0,["YY",2],0,(function(){return this.year()%100}));U(0,["YYYY",4],0,"year");U(0,["YYYYY",5],0,"year");U(0,["YYYYYY",6,true],0,"year");ae("year","y");ue("year",1);Pe("Y",Te);Pe("YY",Ee,be);Pe("YYYY",Oe,_e);Pe("YYYYY",Me,we);Pe("YYYYYY",Me,we);He(["YYYYY","YYYYYY"],qe);He("YYYY",(function(e,t){t[qe]=e.length===2?a.parseTwoDigitYear(e):de(e)}));He("YY",(function(e,t){t[qe]=a.parseTwoDigitYear(e)}));He("Y",(function(e,t){t[qe]=parseInt(e,10)}));function yt(e){return ce(e)?366:365}a.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var gt=pe("FullYear",true);function bt(){return ce(this.year())}function At(e,t,r,n,a,i,o){var s;if(e<100&&e>=0){s=new Date(e+400,t,r,n,a,i,o);if(isFinite(s.getFullYear())){s.setFullYear(e)}}else{s=new Date(e,t,r,n,a,i,o)}return s}function _t(e){var t,r;if(e<100&&e>=0){r=Array.prototype.slice.call(arguments);r[0]=e+400;t=new Date(Date.UTC.apply(null,r));if(isFinite(t.getUTCFullYear())){t.setUTCFullYear(e)}}else{t=new Date(Date.UTC.apply(null,arguments))}return t}function wt(e,t,r){var n=7+t-r,a=(7+_t(e,0,n).getUTCDay()-t)%7;return-a+n-1}function Et(e,t,r,n,a){var i=(7+r-n)%7,o=wt(e,n,a),s=1+7*(t-1)+i+o,u,l;if(s<=0){u=e-1;l=yt(u)+s}else if(s>yt(e)){u=e+1;l=s-yt(e)}else{u=e;l=s}return{year:u,dayOfYear:l}}function xt(e,t,r){var n=wt(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;if(a<1){o=e.year()-1;i=a+kt(o,t,r)}else if(a>kt(e.year(),t,r)){i=a-kt(e.year(),t,r);o=e.year()+1}else{o=e.year();i=a}return{week:i,year:o}}function kt(e,t,r){var n=wt(e,t,r),a=wt(e+1,t,r);return(yt(e)-n+a)/7}U("w",["ww",2],"wo","week");U("W",["WW",2],"Wo","isoWeek");ae("week","w");ae("isoWeek","W");ue("week",5);ue("isoWeek",5);Pe("w",Ee);Pe("ww",Ee,be);Pe("W",Ee);Pe("WW",Ee,be);Ue(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=de(e)}));function St(e){return xt(e,this._week.dow,this._week.doy).week}var Ot={dow:0,doy:6};function Mt(){return this._week.dow}function Dt(){return this._week.doy}function Tt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Lt(e){var t=xt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}U("d",0,"do","day");U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)}));U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)}));U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)}));U("e",0,0,"weekday");U("E",0,0,"isoWeekday");ae("day","d");ae("weekday","e");ae("isoWeekday","E");ue("day",11);ue("weekday",11);ue("isoWeekday",11);Pe("d",Ee);Pe("e",Ee);Pe("E",Ee);Pe("dd",(function(e,t){return t.weekdaysMinRegex(e)}));Pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)}));Pe("dddd",(function(e,t){return t.weekdaysRegex(e)}));Ue(["dd","ddd","dddd"],(function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);if(a!=null){t.d=a}else{y(r).invalidWeekday=e}}));Ue(["d","e","E"],(function(e,t,r,n){t[n]=de(e)}));function Ct(e,t){if(typeof e!=="string"){return e}if(!isNaN(e)){return parseInt(e,10)}e=t.weekdaysParse(e);if(typeof e==="number"){return e}return null}function jt(e,t){if(typeof e==="string"){return t.weekdaysParse(e)%7||7}return isNaN(e)?null:e}function Nt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=Ne,Yt=Ne,Bt=Ne;function Ht(e,t){var r=o(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?Nt(r,this._week.dow):e?r[e.day()]:r}function Ut(e){return e===true?Nt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zt(e){return e===true?Nt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function qt(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(n=0;n<7;++n){i=v([2e3,1]).day(n);this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase();this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase();this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase()}}if(r){if(t==="dddd"){a=et.call(this._weekdaysParse,o);return a!==-1?a:null}else if(t==="ddd"){a=et.call(this._shortWeekdaysParse,o);return a!==-1?a:null}else{a=et.call(this._minWeekdaysParse,o);return a!==-1?a:null}}else{if(t==="dddd"){a=et.call(this._weekdaysParse,o);if(a!==-1){return a}a=et.call(this._shortWeekdaysParse,o);if(a!==-1){return a}a=et.call(this._minWeekdaysParse,o);return a!==-1?a:null}else if(t==="ddd"){a=et.call(this._shortWeekdaysParse,o);if(a!==-1){return a}a=et.call(this._weekdaysParse,o);if(a!==-1){return a}a=et.call(this._minWeekdaysParse,o);return a!==-1?a:null}else{a=et.call(this._minWeekdaysParse,o);if(a!==-1){return a}a=et.call(this._weekdaysParse,o);if(a!==-1){return a}a=et.call(this._shortWeekdaysParse,o);return a!==-1?a:null}}}function Vt(e,t,r){var n,a,i;if(this._weekdaysParseExact){return qt.call(this,e,t,r)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(n=0;n<7;n++){a=v([2e3,1]).day(n);if(r&&!this._fullWeekdaysParse[n]){this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[n]){i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,"");this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")}if(r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e)){return n}else if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e)){return n}else if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e)){return n}else if(!r&&this._weekdaysParse[n].test(e)){return n}}}function Wt(e){if(!this.isValid()){return e!=null?this:NaN}var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e!=null){e=Ct(e,this.localeData());return this.add(e-t,"d")}else{return t}}function Kt(e){if(!this.isValid()){return e!=null?this:NaN}var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Gt(e){if(!this.isValid()){return e!=null?this:NaN}if(e!=null){var t=jt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else{return this.day()||7}}function Qt(e){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex")){Xt.call(this)}if(e){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!u(this,"_weekdaysRegex")){this._weekdaysRegex=Ft}return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}function Jt(e){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex")){Xt.call(this)}if(e){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!u(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=Yt}return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function Zt(e){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex")){Xt.call(this)}if(e){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!u(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=Bt}return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function Xt(){function e(e,t){return t.length-e.length}var t=[],r=[],n=[],a=[],i,o,s,u,l;for(i=0;i<7;i++){o=v([2e3,1]).day(i);s=Ye(this.weekdaysMin(o,""));u=Ye(this.weekdaysShort(o,""));l=Ye(this.weekdays(o,""));t.push(s);r.push(u);n.push(l);a.push(s);a.push(u);a.push(l)}t.sort(e);r.sort(e);n.sort(e);a.sort(e);this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function $t(){return this.hours()%12||12}function er(){return this.hours()||24}U("H",["HH",2],0,"hour");U("h",["hh",2],0,$t);U("k",["kk",2],0,er);U("hmm",0,0,(function(){return""+$t.apply(this)+R(this.minutes(),2)}));U("hmmss",0,0,(function(){return""+$t.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)}));U("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)}));U("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)}));function tr(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}tr("a",true);tr("A",false);ae("hour","h");ue("hour",13);function rr(e,t){return t._meridiemParse}Pe("a",rr);Pe("A",rr);Pe("H",Ee);Pe("h",Ee);Pe("k",Ee);Pe("HH",Ee,be);Pe("hh",Ee,be);Pe("kk",Ee,be);Pe("hmm",xe);Pe("hmmss",ke);Pe("Hmm",xe);Pe("Hmmss",ke);He(["H","HH"],Ke);He(["k","kk"],(function(e,t,r){var n=de(e);t[Ke]=n===24?0:n}));He(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e);r._meridiem=e}));He(["h","hh"],(function(e,t,r){t[Ke]=de(e);y(r).bigHour=true}));He("hmm",(function(e,t,r){var n=e.length-2;t[Ke]=de(e.substr(0,n));t[Ge]=de(e.substr(n));y(r).bigHour=true}));He("hmmss",(function(e,t,r){var n=e.length-4,a=e.length-2;t[Ke]=de(e.substr(0,n));t[Ge]=de(e.substr(n,2));t[Qe]=de(e.substr(a));y(r).bigHour=true}));He("Hmm",(function(e,t,r){var n=e.length-2;t[Ke]=de(e.substr(0,n));t[Ge]=de(e.substr(n))}));He("Hmmss",(function(e,t,r){var n=e.length-4,a=e.length-2;t[Ke]=de(e.substr(0,n));t[Ge]=de(e.substr(n,2));t[Qe]=de(e.substr(a))}));function nr(e){return(e+"").toLowerCase().charAt(0)==="p"}var ar=/[ap]\.?m?\.?/i,ir=pe("Hours",true);function or(e,t,r){if(e>11){return r?"pm":"PM"}else{return r?"am":"AM"}}var sr={calendar:I,longDateFormat:K,invalidDate:Q,ordinal:Z,dayOfMonthOrdinalParse:X,relativeTime:ee,months:rt,monthsShort:nt,week:Ot,weekdays:It,weekdaysMin:Rt,weekdaysShort:Pt,meridiemParse:ar};var ur={},lr={},cr;function fr(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1){if(e[r]!==t[r]){return r}}return n}function dr(e){return e?e.toLowerCase().replace("_","-"):e}function pr(e){var t=0,r,n,a,i;while(t<e.length){i=dr(e[t]).split("-");r=i.length;n=dr(e[t+1]);n=n?n.split("-"):null;while(r>0){a=hr(i.slice(0,r).join("-"));if(a){return a}if(n&&n.length>=r&&fr(i,n)>=r-1){break}r--}t++}return cr}function hr(n){var a=null,i;if(ur[n]===undefined&&typeof e!=="undefined"&&e&&e.exports){try{a=cr._abbr;i=t;r(825)("./"+n);vr(a)}catch(e){ur[n]=null}}return ur[n]}function vr(e,t){var r;if(e){if(c(t)){r=gr(e)}else{r=mr(e,t)}if(r){cr=r}else{if(typeof console!=="undefined"&&console.warn){console.warn("Locale "+e+" not found. Did you forget to load it?")}}}return cr._abbr}function mr(e,t){if(t!==null){var r,n=sr;t.abbr=e;if(ur[e]!=null){D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change "+"an existing locale. moment.defineLocale(localeName, "+"config) should only be used for creating a new locale "+"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");n=ur[e]._config}else if(t.parentLocale!=null){if(ur[t.parentLocale]!=null){n=ur[t.parentLocale]._config}else{r=hr(t.parentLocale);if(r!=null){n=r._config}else{if(!lr[t.parentLocale]){lr[t.parentLocale]=[]}lr[t.parentLocale].push({name:e,config:t});return null}}}ur[e]=new j(C(n,t));if(lr[e]){lr[e].forEach((function(e){mr(e.name,e.config)}))}vr(e);return ur[e]}else{delete ur[e];return null}}function yr(e,t){if(t!=null){var r,n,a=sr;if(ur[e]!=null&&ur[e].parentLocale!=null){ur[e].set(C(ur[e]._config,t))}else{n=hr(e);if(n!=null){a=n._config}t=C(a,t);if(n==null){t.abbr=e}r=new j(t);r.parentLocale=ur[e];ur[e]=r}vr(e)}else{if(ur[e]!=null){if(ur[e].parentLocale!=null){ur[e]=ur[e].parentLocale;if(e===vr()){vr(e)}}else if(ur[e]!=null){delete ur[e]}}}return ur[e]}function gr(e){var t;if(e&&e._locale&&e._locale._abbr){e=e._locale._abbr}if(!e){return cr}if(!o(e)){t=hr(e);if(t){return t}e=[e]}return pr(e)}function br(){return N(ur)}function Ar(e){var t,r=e._a;if(r&&y(e).overflow===-2){t=r[Ve]<0||r[Ve]>11?Ve:r[We]<1||r[We]>tt(r[qe],r[Ve])?We:r[Ke]<0||r[Ke]>24||r[Ke]===24&&(r[Ge]!==0||r[Qe]!==0||r[Je]!==0)?Ke:r[Ge]<0||r[Ge]>59?Ge:r[Qe]<0||r[Qe]>59?Qe:r[Je]<0||r[Je]>999?Je:-1;if(y(e)._overflowDayOfYear&&(t<qe||t>We)){t=We}if(y(e)._overflowWeeks&&t===-1){t=Ze}if(y(e)._overflowWeekday&&t===-1){t=Xe}y(e).overflow=t}return e}var _r=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Er=/Z|[+-]\d\d(?::?\d\d)?/,xr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],kr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Sr=/^\/?Date\((-?\d+)/i,Or=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mr={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Dr(e){var t,r,n=e._i,a=_r.exec(n)||wr.exec(n),i,o,s,u;if(a){y(e).iso=true;for(t=0,r=xr.length;t<r;t++){if(xr[t][1].exec(a[1])){o=xr[t][0];i=xr[t][2]!==false;break}}if(o==null){e._isValid=false;return}if(a[3]){for(t=0,r=kr.length;t<r;t++){if(kr[t][1].exec(a[3])){s=(a[2]||" ")+kr[t][0];break}}if(s==null){e._isValid=false;return}}if(!i&&s!=null){e._isValid=false;return}if(a[4]){if(Er.exec(a[4])){u="Z"}else{e._isValid=false;return}}e._f=o+(s||"")+(u||"");Hr(e)}else{e._isValid=false}}function Tr(e,t,r,n,a,i){var o=[Lr(e),nt.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];if(i){o.push(parseInt(i,10))}return o}function Lr(e){var t=parseInt(e,10);if(t<=49){return 2e3+t}else if(t<=999){return 1900+t}return t}function Cr(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jr(e,t,r){if(e){var n=Pt.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a){y(r).weekdayMismatch=true;r._isValid=false;return false}}return true}function Nr(e,t,r){if(e){return Mr[e]}else if(t){return 0}else{var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}}function Ir(e){var t=Or.exec(Cr(e._i)),r;if(t){r=Tr(t[4],t[3],t[2],t[5],t[6],t[7]);if(!jr(t[1],r,e)){return}e._a=r;e._tzm=Nr(t[8],t[9],t[10]);e._d=_t.apply(null,e._a);e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);y(e).rfc2822=true}else{e._isValid=false}}function Pr(e){var t=Sr.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}Dr(e);if(e._isValid===false){delete e._isValid}else{return}Ir(e);if(e._isValid===false){delete e._isValid}else{return}if(e._strict){e._isValid=false}else{a.createFromInputFallback(e)}}a.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), "+"which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are "+"discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}));function Rr(e,t,r){if(e!=null){return e}if(t!=null){return t}return r}function Fr(e){var t=new Date(a.now());if(e._useUTC){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]}return[t.getFullYear(),t.getMonth(),t.getDate()]}function Yr(e){var t,r,n=[],a,i,o;if(e._d){return}a=Fr(e);if(e._w&&e._a[We]==null&&e._a[Ve]==null){Br(e)}if(e._dayOfYear!=null){o=Rr(e._a[qe],a[qe]);if(e._dayOfYear>yt(o)||e._dayOfYear===0){y(e)._overflowDayOfYear=true}r=_t(o,0,e._dayOfYear);e._a[Ve]=r.getUTCMonth();e._a[We]=r.getUTCDate()}for(t=0;t<3&&e._a[t]==null;++t){e._a[t]=n[t]=a[t]}for(;t<7;t++){e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t]}if(e._a[Ke]===24&&e._a[Ge]===0&&e._a[Qe]===0&&e._a[Je]===0){e._nextDay=true;e._a[Ke]=0}e._d=(e._useUTC?_t:At).apply(null,n);i=e._useUTC?e._d.getUTCDay():e._d.getDay();if(e._tzm!=null){e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm)}if(e._nextDay){e._a[Ke]=24}if(e._w&&typeof e._w.d!=="undefined"&&e._w.d!==i){y(e).weekdayMismatch=true}}function Br(e){var t,r,n,a,i,o,s,u,l;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){i=1;o=4;r=Rr(t.GG,e._a[qe],xt(Qr(),1,4).year);n=Rr(t.W,1);a=Rr(t.E,1);if(a<1||a>7){u=true}}else{i=e._locale._week.dow;o=e._locale._week.doy;l=xt(Qr(),i,o);r=Rr(t.gg,e._a[qe],l.year);n=Rr(t.w,l.week);if(t.d!=null){a=t.d;if(a<0||a>6){u=true}}else if(t.e!=null){a=t.e+i;if(t.e<0||t.e>6){u=true}}else{a=i}}if(n<1||n>kt(r,i,o)){y(e)._overflowWeeks=true}else if(u!=null){y(e)._overflowWeekday=true}else{s=Et(r,n,a,i,o);e._a[qe]=s.year;e._dayOfYear=s.dayOfYear}}a.ISO_8601=function(){};a.RFC_2822=function(){};function Hr(e){if(e._f===a.ISO_8601){Dr(e);return}if(e._f===a.RFC_2822){Ir(e);return}e._a=[];y(e).empty=true;var t=""+e._i,r,n,i,o,s,u=t.length,l=0,c;i=W(e._f,e._locale).match(F)||[];for(r=0;r<i.length;r++){o=i[r];n=(t.match(Re(o,e))||[])[0];if(n){s=t.substr(0,t.indexOf(n));if(s.length>0){y(e).unusedInput.push(s)}t=t.slice(t.indexOf(n)+n.length);l+=n.length}if(H[o]){if(n){y(e).empty=false}else{y(e).unusedTokens.push(o)}ze(o,n,e)}else if(e._strict&&!n){y(e).unusedTokens.push(o)}}y(e).charsLeftOver=u-l;if(t.length>0){y(e).unusedInput.push(t)}if(e._a[Ke]<=12&&y(e).bigHour===true&&e._a[Ke]>0){y(e).bigHour=undefined}y(e).parsedDateParts=e._a.slice(0);y(e).meridiem=e._meridiem;e._a[Ke]=Ur(e._locale,e._a[Ke],e._meridiem);c=y(e).era;if(c!==null){e._a[qe]=e._locale.erasConvertYear(c,e._a[qe])}Yr(e);Ar(e)}function Ur(e,t,r){var n;if(r==null){return t}if(e.meridiemHour!=null){return e.meridiemHour(t,r)}else if(e.isPM!=null){n=e.isPM(r);if(n&&t<12){t+=12}if(!n&&t===12){t=0}return t}else{return t}}function zr(e){var t,r,n,a,i,o,s=false;if(e._f.length===0){y(e).invalidFormat=true;e._d=new Date(NaN);return}for(a=0;a<e._f.length;a++){i=0;o=false;t=E({},e);if(e._useUTC!=null){t._useUTC=e._useUTC}t._f=e._f[a];Hr(t);if(b(t)){o=true}i+=y(t).charsLeftOver;i+=y(t).unusedTokens.length*10;y(t).score=i;if(!s){if(n==null||i<n||o){n=i;r=t;if(o){s=true}}}else{if(i<n){n=i;r=t}}}h(e,r||t)}function qr(e){if(e._d){return}var t=oe(e._i),r=t.day===undefined?t.date:t.day;e._a=p([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)}));Yr(e)}function Vr(e){var t=new x(Ar(Wr(e)));if(t._nextDay){t.add(1,"d");t._nextDay=undefined}return t}function Wr(e){var t=e._i,r=e._f;e._locale=e._locale||gr(e._l);if(t===null||r===undefined&&t===""){return A({nullInput:true})}if(typeof t==="string"){e._i=t=e._locale.preparse(t)}if(k(t)){return new x(Ar(t))}else if(d(t)){e._d=t}else if(o(r)){zr(e)}else if(r){Hr(e)}else{Kr(e)}if(!b(e)){e._d=null}return e}function Kr(e){var t=e._i;if(c(t)){e._d=new Date(a.now())}else if(d(t)){e._d=new Date(t.valueOf())}else if(typeof t==="string"){Pr(e)}else if(o(t)){e._a=p(t.slice(0),(function(e){return parseInt(e,10)}));Yr(e)}else if(s(t)){qr(e)}else if(f(t)){e._d=new Date(t)}else{a.createFromInputFallback(e)}}function Gr(e,t,r,n,a){var i={};if(t===true||t===false){n=t;t=undefined}if(r===true||r===false){n=r;r=undefined}if(s(e)&&l(e)||o(e)&&e.length===0){e=undefined}i._isAMomentObject=true;i._useUTC=i._isUTC=a;i._l=r;i._i=e;i._f=t;i._strict=n;return Vr(i)}function Qr(e,t,r,n){return Gr(e,t,r,n,false)}var Jr=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Qr.apply(null,arguments);if(this.isValid()&&e.isValid()){return e<this?this:e}else{return A()}})),Zr=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Qr.apply(null,arguments);if(this.isValid()&&e.isValid()){return e>this?this:e}else{return A()}}));function Xr(e,t){var r,n;if(t.length===1&&o(t[0])){t=t[0]}if(!t.length){return Qr()}r=t[0];for(n=1;n<t.length;++n){if(!t[n].isValid()||t[n][e](r)){r=t[n]}}return r}function $r(){var e=[].slice.call(arguments,0);return Xr("isBefore",e)}function en(){var e=[].slice.call(arguments,0);return Xr("isAfter",e)}var tn=function(){return Date.now?Date.now():+new Date};var rn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nn(e){var t,r=false,n;for(t in e){if(u(e,t)&&!(et.call(rn,t)!==-1&&(e[t]==null||!isNaN(e[t])))){return false}}for(n=0;n<rn.length;++n){if(e[rn[n]]){if(r){return false}if(parseFloat(e[rn[n]])!==de(e[rn[n]])){r=true}}}return true}function an(){return this._isValid}function on(){return Dn(NaN)}function sn(e){var t=oe(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=nn(t);this._milliseconds=+c+l*1e3+u*6e4+s*1e3*60*60;this._days=+o+i*7;this._months=+a+n*3+r*12;this._data={};this._locale=gr();this._bubble()}function un(e){return e instanceof sn}function ln(e){if(e<0){return Math.round(-1*e)*-1}else{return Math.round(e)}}function cn(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<n;o++){if(r&&e[o]!==t[o]||!r&&de(e[o])!==de(t[o])){i++}}return i+a}function fn(e,t){U(e,0,0,(function(){var e=this.utcOffset(),r="+";if(e<0){e=-e;r="-"}return r+R(~~(e/60),2)+t+R(~~e%60,2)}))}fn("Z",":");fn("ZZ","");Pe("Z",Ce);Pe("ZZ",Ce);He(["Z","ZZ"],(function(e,t,r){r._useUTC=true;r._tzm=pn(Ce,e)}));var dn=/([\+\-]|\d\d)/gi;function pn(e,t){var r=(t||"").match(e),n,a,i;if(r===null){return null}n=r[r.length-1]||[];a=(n+"").match(dn)||["-",0,0];i=+(a[1]*60)+de(a[2]);return i===0?0:a[0]==="+"?i:-i}function hn(e,t){var r,n;if(t._isUTC){r=t.clone();n=(k(e)||d(e)?e.valueOf():Qr(e).valueOf())-r.valueOf();r._d.setTime(r._d.valueOf()+n);a.updateOffset(r,false);return r}else{return Qr(e).local()}}function vn(e){return-Math.round(e._d.getTimezoneOffset())}a.updateOffset=function(){};function mn(e,t,r){var n=this._offset||0,i;if(!this.isValid()){return e!=null?this:NaN}if(e!=null){if(typeof e==="string"){e=pn(Ce,e);if(e===null){return this}}else if(Math.abs(e)<16&&!r){e=e*60}if(!this._isUTC&&t){i=vn(this)}this._offset=e;this._isUTC=true;if(i!=null){this.add(i,"m")}if(n!==e){if(!t||this._changeInProgress){Nn(this,Dn(e-n,"m"),1,false)}else if(!this._changeInProgress){this._changeInProgress=true;a.updateOffset(this,true);this._changeInProgress=null}}return this}else{return this._isUTC?n:vn(this)}}function yn(e,t){if(e!=null){if(typeof e!=="string"){e=-e}this.utcOffset(e,t);return this}else{return-this.utcOffset()}}function gn(e){return this.utcOffset(0,e)}function bn(e){if(this._isUTC){this.utcOffset(0,e);this._isUTC=false;if(e){this.subtract(vn(this),"m")}}return this}function An(){if(this._tzm!=null){this.utcOffset(this._tzm,false,true)}else if(typeof this._i==="string"){var e=pn(Le,this._i);if(e!=null){this.utcOffset(e)}else{this.utcOffset(0,true)}}return this}function _n(e){if(!this.isValid()){return false}e=e?Qr(e).utcOffset():0;return(this.utcOffset()-e)%60===0}function wn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function En(){if(!c(this._isDSTShifted)){return this._isDSTShifted}var e={},t;E(e,this);e=Wr(e);if(e._a){t=e._isUTC?v(e._a):Qr(e._a);this._isDSTShifted=this.isValid()&&cn(e._a,t.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function xn(){return this.isValid()?!this._isUTC:false}function kn(){return this.isValid()?this._isUTC:false}function Sn(){return this.isValid()?this._isUTC&&this._offset===0:false}var On=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dn(e,t){var r=e,n=null,a,i,o;if(un(e)){r={ms:e._milliseconds,d:e._days,M:e._months}}else if(f(e)||!isNaN(+e)){r={};if(t){r[t]=+e}else{r.milliseconds=+e}}else if(n=On.exec(e)){a=n[1]==="-"?-1:1;r={y:0,d:de(n[We])*a,h:de(n[Ke])*a,m:de(n[Ge])*a,s:de(n[Qe])*a,ms:de(ln(n[Je]*1e3))*a}}else if(n=Mn.exec(e)){a=n[1]==="-"?-1:1;r={y:Tn(n[2],a),M:Tn(n[3],a),w:Tn(n[4],a),d:Tn(n[5],a),h:Tn(n[6],a),m:Tn(n[7],a),s:Tn(n[8],a)}}else if(r==null){r={}}else if(typeof r==="object"&&("from"in r||"to"in r)){o=Cn(Qr(r.from),Qr(r.to));r={};r.ms=o.milliseconds;r.M=o.months}i=new sn(r);if(un(e)&&u(e,"_locale")){i._locale=e._locale}if(un(e)&&u(e,"_isValid")){i._isValid=e._isValid}return i}Dn.fn=sn.prototype;Dn.invalid=on;function Tn(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Ln(e,t){var r={};r.months=t.month()-e.month()+(t.year()-e.year())*12;if(e.clone().add(r.months,"M").isAfter(t)){--r.months}r.milliseconds=+t-+e.clone().add(r.months,"M");return r}function Cn(e,t){var r;if(!(e.isValid()&&t.isValid())){return{milliseconds:0,months:0}}t=hn(t,e);if(e.isBefore(t)){r=Ln(e,t)}else{r=Ln(t,e);r.milliseconds=-r.milliseconds;r.months=-r.months}return r}function jn(e,t){return function(r,n){var a,i;if(n!==null&&!isNaN(+n)){D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");i=r;r=n;n=i}a=Dn(r,n);Nn(this,a,e);return this}}function Nn(e,t,r,n){var i=t._milliseconds,o=ln(t._days),s=ln(t._months);if(!e.isValid()){return}n=n==null?true:n;if(s){ft(e,he(e,"Month")+s*r)}if(o){ve(e,"Date",he(e,"Date")+o*r)}if(i){e._d.setTime(e._d.valueOf()+i*r)}if(n){a.updateOffset(e,o||s)}}var In=jn(1,"add"),Pn=jn(-1,"subtract");function Rn(e){return typeof e==="string"||e instanceof String}function Fn(e){return k(e)||d(e)||Rn(e)||f(e)||Bn(e)||Yn(e)||e===null||e===undefined}function Yn(e){var t=s(e)&&!l(e),r=false,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i;for(a=0;a<n.length;a+=1){i=n[a];r=r||u(e,i)}return t&&r}function Bn(e){var t=o(e),r=false;if(t){r=e.filter((function(t){return!f(t)&&Rn(e)})).length===0}return t&&r}function Hn(e){var t=s(e)&&!l(e),r=false,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1){i=n[a];r=r||u(e,i)}return t&&r}function Un(e,t){var r=e.diff(t,"days",true);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function zn(e,t){if(arguments.length===1){if(!arguments[0]){e=undefined;t=undefined}else if(Fn(arguments[0])){e=arguments[0];t=undefined}else if(Hn(arguments[0])){t=arguments[0];e=undefined}}var r=e||Qr(),n=hn(r,this).startOf("day"),i=a.calendarFormat(this,n)||"sameElse",o=t&&(T(t[i])?t[i].call(this,r):t[i]);return this.format(o||this.localeData().calendar(i,this,Qr(r)))}function qn(){return new x(this)}function Vn(e,t){var r=k(e)?e:Qr(e);if(!(this.isValid()&&r.isValid())){return false}t=ie(t)||"millisecond";if(t==="millisecond"){return this.valueOf()>r.valueOf()}else{return r.valueOf()<this.clone().startOf(t).valueOf()}}function Wn(e,t){var r=k(e)?e:Qr(e);if(!(this.isValid()&&r.isValid())){return false}t=ie(t)||"millisecond";if(t==="millisecond"){return this.valueOf()<r.valueOf()}else{return this.clone().endOf(t).valueOf()<r.valueOf()}}function Kn(e,t,r,n){var a=k(e)?e:Qr(e),i=k(t)?t:Qr(t);if(!(this.isValid()&&a.isValid()&&i.isValid())){return false}n=n||"()";return(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))}function Gn(e,t){var r=k(e)?e:Qr(e),n;if(!(this.isValid()&&r.isValid())){return false}t=ie(t)||"millisecond";if(t==="millisecond"){return this.valueOf()===r.valueOf()}else{n=r.valueOf();return this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()}}function Qn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Jn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Zn(e,t,r){var n,a,i;if(!this.isValid()){return NaN}n=hn(e,this);if(!n.isValid()){return NaN}a=(n.utcOffset()-this.utcOffset())*6e4;t=ie(t);switch(t){case"year":i=Xn(this,n)/12;break;case"month":i=Xn(this,n);break;case"quarter":i=Xn(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:fe(i)}function Xn(e,t){if(e.date()<t.date()){return-Xn(t,e)}var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;if(t-n<0){a=e.clone().add(r-1,"months");i=(t-n)/(n-a)}else{a=e.clone().add(r+1,"months");i=(t-n)/(a-n)}return-(r+i)||0}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function $n(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ea(e){if(!this.isValid()){return null}var t=e!==true,r=t?this.clone().utc():this;if(r.year()<0||r.year()>9999){return V(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")}if(T(Date.prototype.toISOString)){if(t){return this.toDate().toISOString()}else{return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",V(r,"Z"))}}return V(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ta(){if(!this.isValid()){return"moment.invalid(/* "+this._i+" */)"}var e="moment",t="",r,n,a,i;if(!this.isLocal()){e=this.utcOffset()===0?"moment.utc":"moment.parseZone";t="Z"}r="["+e+'("]';n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";a="-MM-DD[T]HH:mm:ss.SSS";i=t+'[")]';return this.format(r+n+a+i)}function ra(e){if(!e){e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat}var t=V(this,e);return this.localeData().postformat(t)}function na(e,t){if(this.isValid()&&(k(e)&&e.isValid()||Qr(e).isValid())){return Dn({to:this,from:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}}function aa(e){return this.from(Qr(),e)}function ia(e,t){if(this.isValid()&&(k(e)&&e.isValid()||Qr(e).isValid())){return Dn({from:this,to:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}}function oa(e){return this.to(Qr(),e)}function sa(e){var t;if(e===undefined){return this._locale._abbr}else{t=gr(e);if(t!=null){this._locale=t}return this}}var ua=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){if(e===undefined){return this.localeData()}else{return this.locale(e)}}));function la(){return this._locale}var ca=1e3,fa=60*ca,da=60*fa,pa=(365*400+97)*24*da;function ha(e,t){return(e%t+t)%t}function va(e,t,r){if(e<100&&e>=0){return new Date(e+400,t,r)-pa}else{return new Date(e,t,r).valueOf()}}function ma(e,t,r){if(e<100&&e>=0){return Date.UTC(e+400,t,r)-pa}else{return Date.UTC(e,t,r)}}function ya(e){var t,r;e=ie(e);if(e===undefined||e==="millisecond"||!this.isValid()){return this}r=this._isUTC?ma:va;switch(e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf();t-=ha(t+(this._isUTC?0:this.utcOffset()*fa),da);break;case"minute":t=this._d.valueOf();t-=ha(t,fa);break;case"second":t=this._d.valueOf();t-=ha(t,ca);break}this._d.setTime(t);a.updateOffset(this,true);return this}function ga(e){var t,r;e=ie(e);if(e===undefined||e==="millisecond"||!this.isValid()){return this}r=this._isUTC?ma:va;switch(e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=da-ha(t+(this._isUTC?0:this.utcOffset()*fa),da)-1;break;case"minute":t=this._d.valueOf();t+=fa-ha(t,fa)-1;break;case"second":t=this._d.valueOf();t+=ca-ha(t,ca)-1;break}this._d.setTime(t);a.updateOffset(this,true);return this}function ba(){return this._d.valueOf()-(this._offset||0)*6e4}function Aa(){return Math.floor(this.valueOf()/1e3)}function _a(){return new Date(this.valueOf())}function wa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ea(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xa(){return this.isValid()?this.toISOString():null}function ka(){return b(this)}function Sa(){return h({},y(this))}function Oa(){return y(this).overflow}function Ma(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}U("N",0,0,"eraAbbr");U("NN",0,0,"eraAbbr");U("NNN",0,0,"eraAbbr");U("NNNN",0,0,"eraName");U("NNNNN",0,0,"eraNarrow");U("y",["y",1],"yo","eraYear");U("y",["yy",2],0,"eraYear");U("y",["yyy",3],0,"eraYear");U("y",["yyyy",4],0,"eraYear");Pe("N",Ya);Pe("NN",Ya);Pe("NNN",Ya);Pe("NNNN",Ba);Pe("NNNNN",Ha);He(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);if(a){y(r).era=a}else{y(r).invalidEra=e}}));Pe("y",De);Pe("yy",De);Pe("yyy",De);Pe("yyyy",De);Pe("yo",Ua);He(["y","yy","yyy","yyyy"],qe);He(["yo"],(function(e,t,r,n){var a;if(r._locale._eraYearOrdinalRegex){a=e.match(r._locale._eraYearOrdinalRegex)}if(r._locale.eraYearOrdinalParse){t[qe]=r._locale.eraYearOrdinalParse(e,a)}else{t[qe]=parseInt(e,10)}}));function Da(e,t){var r,n,i,o=this._eras||gr("en")._eras;for(r=0,n=o.length;r<n;++r){switch(typeof o[r].since){case"string":i=a(o[r].since).startOf("day");o[r].since=i.valueOf();break}switch(typeof o[r].until){case"undefined":o[r].until=+Infinity;break;case"string":i=a(o[r].until).startOf("day").valueOf();o[r].until=i.valueOf();break}}return o}function Ta(e,t,r){var n,a,i=this.eras(),o,s,u;e=e.toUpperCase();for(n=0,a=i.length;n<a;++n){o=i[n].name.toUpperCase();s=i[n].abbr.toUpperCase();u=i[n].narrow.toUpperCase();if(r){switch(t){case"N":case"NN":case"NNN":if(s===e){return i[n]}break;case"NNNN":if(o===e){return i[n]}break;case"NNNNN":if(u===e){return i[n]}break}}else if([o,s,u].indexOf(e)>=0){return i[n]}}}function La(e,t){var r=e.since<=e.until?+1:-1;if(t===undefined){return a(e.since).year()}else{return a(e.since).year()+(t-e.offset)*r}}function Ca(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){r=this.clone().startOf("day").valueOf();if(n[e].since<=r&&r<=n[e].until){return n[e].name}if(n[e].until<=r&&r<=n[e].since){return n[e].name}}return""}function ja(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){r=this.clone().startOf("day").valueOf();if(n[e].since<=r&&r<=n[e].until){return n[e].narrow}if(n[e].until<=r&&r<=n[e].since){return n[e].narrow}}return""}function Na(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){r=this.clone().startOf("day").valueOf();if(n[e].since<=r&&r<=n[e].until){return n[e].abbr}if(n[e].until<=r&&r<=n[e].since){return n[e].abbr}}return""}function Ia(){var e,t,r,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){r=i[e].since<=i[e].until?+1:-1;n=this.clone().startOf("day").valueOf();if(i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since){return(this.year()-a(i[e].since).year())*r+i[e].offset}}return this.year()}function Pa(e){if(!u(this,"_erasNameRegex")){za.call(this)}return e?this._erasNameRegex:this._erasRegex}function Ra(e){if(!u(this,"_erasAbbrRegex")){za.call(this)}return e?this._erasAbbrRegex:this._erasRegex}function Fa(e){if(!u(this,"_erasNarrowRegex")){za.call(this)}return e?this._erasNarrowRegex:this._erasRegex}function Ya(e,t){return t.erasAbbrRegex(e)}function Ba(e,t){return t.erasNameRegex(e)}function Ha(e,t){return t.erasNarrowRegex(e)}function Ua(e,t){return t._eraYearOrdinalRegex||De}function za(){var e=[],t=[],r=[],n=[],a,i,o=this.eras();for(a=0,i=o.length;a<i;++a){t.push(Ye(o[a].name));e.push(Ye(o[a].abbr));r.push(Ye(o[a].narrow));n.push(Ye(o[a].name));n.push(Ye(o[a].abbr));n.push(Ye(o[a].narrow))}this._erasRegex=new RegExp("^("+n.join("|")+")","i");this._erasNameRegex=new RegExp("^("+t.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}U(0,["gg",2],0,(function(){return this.weekYear()%100}));U(0,["GG",2],0,(function(){return this.isoWeekYear()%100}));function qa(e,t){U(0,[e,e.length],0,t)}qa("gggg","weekYear");qa("ggggg","weekYear");qa("GGGG","isoWeekYear");qa("GGGGG","isoWeekYear");ae("weekYear","gg");ae("isoWeekYear","GG");ue("weekYear",1);ue("isoWeekYear",1);Pe("G",Te);Pe("g",Te);Pe("GG",Ee,be);Pe("gg",Ee,be);Pe("GGGG",Oe,_e);Pe("gggg",Oe,_e);Pe("GGGGG",Me,we);Pe("ggggg",Me,we);Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=de(e)}));Ue(["gg","GG"],(function(e,t,r,n){t[n]=a.parseTwoDigitYear(e)}));function Va(e){return Za.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wa(e){return Za.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ka(){return kt(this.year(),1,4)}function Ga(){return kt(this.isoWeekYear(),1,4)}function Qa(){var e=this.localeData()._week;return kt(this.year(),e.dow,e.doy)}function Ja(){var e=this.localeData()._week;return kt(this.weekYear(),e.dow,e.doy)}function Za(e,t,r,n,a){var i;if(e==null){return xt(this,n,a).year}else{i=kt(e,n,a);if(t>i){t=i}return Xa.call(this,e,t,r,n,a)}}function Xa(e,t,r,n,a){var i=Et(e,t,r,n,a),o=_t(i.year,0,i.dayOfYear);this.year(o.getUTCFullYear());this.month(o.getUTCMonth());this.date(o.getUTCDate());return this}U("Q",0,"Qo","quarter");ae("quarter","Q");ue("quarter",7);Pe("Q",ge);He("Q",(function(e,t){t[Ve]=(de(e)-1)*3}));function $a(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}U("D",["DD",2],"Do","date");ae("date","D");ue("date",9);Pe("D",Ee);Pe("DD",Ee,be);Pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}));He(["D","DD"],We);He("Do",(function(e,t){t[We]=de(e.match(Ee)[0])}));var ei=pe("Date",true);U("DDD",["DDDD",3],"DDDo","dayOfYear");ae("dayOfYear","DDD");ue("dayOfYear",4);Pe("DDD",Se);Pe("DDDD",Ae);He(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=de(e)}));function ti(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}U("m",["mm",2],0,"minute");ae("minute","m");ue("minute",14);Pe("m",Ee);Pe("mm",Ee,be);He(["m","mm"],Ge);var ri=pe("Minutes",false);U("s",["ss",2],0,"second");ae("second","s");ue("second",15);Pe("s",Ee);Pe("ss",Ee,be);He(["s","ss"],Qe);var ni=pe("Seconds",false);U("S",0,0,(function(){return~~(this.millisecond()/100)}));U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)}));U(0,["SSS",3],0,"millisecond");U(0,["SSSS",4],0,(function(){return this.millisecond()*10}));U(0,["SSSSS",5],0,(function(){return this.millisecond()*100}));U(0,["SSSSSS",6],0,(function(){return this.millisecond()*1e3}));U(0,["SSSSSSS",7],0,(function(){return this.millisecond()*1e4}));U(0,["SSSSSSSS",8],0,(function(){return this.millisecond()*1e5}));U(0,["SSSSSSSSS",9],0,(function(){return this.millisecond()*1e6}));ae("millisecond","ms");ue("millisecond",16);Pe("S",Se,ge);Pe("SS",Se,be);Pe("SSS",Se,Ae);var ai,ii;for(ai="SSSS";ai.length<=9;ai+="S"){Pe(ai,De)}function oi(e,t){t[Je]=de(("0."+e)*1e3)}for(ai="S";ai.length<=9;ai+="S"){He(ai,oi)}ii=pe("Milliseconds",false);U("z",0,0,"zoneAbbr");U("zz",0,0,"zoneName");function si(){return this._isUTC?"UTC":""}function ui(){return this._isUTC?"Coordinated Universal Time":""}var li=x.prototype;li.add=In;li.calendar=zn;li.clone=qn;li.diff=Zn;li.endOf=ga;li.format=ra;li.from=na;li.fromNow=aa;li.to=ia;li.toNow=oa;li.get=me;li.invalidAt=Oa;li.isAfter=Vn;li.isBefore=Wn;li.isBetween=Kn;li.isSame=Gn;li.isSameOrAfter=Qn;li.isSameOrBefore=Jn;li.isValid=ka;li.lang=ua;li.locale=sa;li.localeData=la;li.max=Zr;li.min=Jr;li.parsingFlags=Sa;li.set=ye;li.startOf=ya;li.subtract=Pn;li.toArray=wa;li.toObject=Ea;li.toDate=_a;li.toISOString=ea;li.inspect=ta;if(typeof Symbol!=="undefined"&&Symbol.for!=null){li[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}}li.toJSON=xa;li.toString=$n;li.unix=Aa;li.valueOf=ba;li.creationData=Ma;li.eraName=Ca;li.eraNarrow=ja;li.eraAbbr=Na;li.eraYear=Ia;li.year=gt;li.isLeapYear=bt;li.weekYear=Va;li.isoWeekYear=Wa;li.quarter=li.quarters=$a;li.month=dt;li.daysInMonth=pt;li.week=li.weeks=Tt;li.isoWeek=li.isoWeeks=Lt;li.weeksInYear=Qa;li.weeksInWeekYear=Ja;li.isoWeeksInYear=Ka;li.isoWeeksInISOWeekYear=Ga;li.date=ei;li.day=li.days=Wt;li.weekday=Kt;li.isoWeekday=Gt;li.dayOfYear=ti;li.hour=li.hours=ir;li.minute=li.minutes=ri;li.second=li.seconds=ni;li.millisecond=li.milliseconds=ii;li.utcOffset=mn;li.utc=gn;li.local=bn;li.parseZone=An;li.hasAlignedHourOffset=_n;li.isDST=wn;li.isLocal=xn;li.isUtcOffset=kn;li.isUtc=Sn;li.isUTC=Sn;li.zoneAbbr=si;li.zoneName=ui;li.dates=O("dates accessor is deprecated. Use date instead.",ei);li.months=O("months accessor is deprecated. Use month instead",dt);li.years=O("years accessor is deprecated. Use year instead",gt);li.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yn);li.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",En);function ci(e){return Qr(e*1e3)}function fi(){return Qr.apply(null,arguments).parseZone()}function di(e){return e}var pi=j.prototype;pi.calendar=P;pi.longDateFormat=G;pi.invalidDate=J;pi.ordinal=$;pi.preparse=di;pi.postformat=di;pi.relativeTime=te;pi.pastFuture=re;pi.set=L;pi.eras=Da;pi.erasParse=Ta;pi.erasConvertYear=La;pi.erasAbbrRegex=Ra;pi.erasNameRegex=Pa;pi.erasNarrowRegex=Fa;pi.months=st;pi.monthsShort=ut;pi.monthsParse=ct;pi.monthsRegex=vt;pi.monthsShortRegex=ht;pi.week=St;pi.firstDayOfYear=Dt;pi.firstDayOfWeek=Mt;pi.weekdays=Ht;pi.weekdaysMin=zt;pi.weekdaysShort=Ut;pi.weekdaysParse=Vt;pi.weekdaysRegex=Qt;pi.weekdaysShortRegex=Jt;pi.weekdaysMinRegex=Zt;pi.isPM=nr;pi.meridiem=or;function hi(e,t,r,n){var a=gr(),i=v().set(n,t);return a[r](i,e)}function vi(e,t,r){if(f(e)){t=e;e=undefined}e=e||"";if(t!=null){return hi(e,t,r,"month")}var n,a=[];for(n=0;n<12;n++){a[n]=hi(e,n,r,"month")}return a}function mi(e,t,r,n){if(typeof e==="boolean"){if(f(t)){r=t;t=undefined}t=t||""}else{t=e;r=t;e=false;if(f(t)){r=t;t=undefined}t=t||""}var a=gr(),i=e?a._week.dow:0,o,s=[];if(r!=null){return hi(t,(r+i)%7,n,"day")}for(o=0;o<7;o++){s[o]=hi(t,(o+i)%7,n,"day")}return s}function yi(e,t){return vi(e,t,"months")}function gi(e,t){return vi(e,t,"monthsShort")}function bi(e,t,r){return mi(e,t,r,"weekdays")}function Ai(e,t,r){return mi(e,t,r,"weekdaysShort")}function _i(e,t,r){return mi(e,t,r,"weekdaysMin")}vr("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=de(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});a.lang=O("moment.lang is deprecated. Use moment.locale instead.",vr);a.langData=O("moment.langData is deprecated. Use moment.localeData instead.",gr);var wi=Math.abs;function Ei(){var e=this._data;this._milliseconds=wi(this._milliseconds);this._days=wi(this._days);this._months=wi(this._months);e.milliseconds=wi(e.milliseconds);e.seconds=wi(e.seconds);e.minutes=wi(e.minutes);e.hours=wi(e.hours);e.months=wi(e.months);e.years=wi(e.years);return this}function xi(e,t,r,n){var a=Dn(t,r);e._milliseconds+=n*a._milliseconds;e._days+=n*a._days;e._months+=n*a._months;return e._bubble()}function ki(e,t){return xi(this,e,t,1)}function Si(e,t){return xi(this,e,t,-1)}function Oi(e){if(e<0){return Math.floor(e)}else{return Math.ceil(e)}}function Mi(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,o,s,u;if(!(e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0)){e+=Oi(Ti(r)+t)*864e5;t=0;r=0}n.milliseconds=e%1e3;a=fe(e/1e3);n.seconds=a%60;i=fe(a/60);n.minutes=i%60;o=fe(i/60);n.hours=o%24;t+=fe(o/24);u=fe(Di(t));r+=u;t-=Oi(Ti(u));s=fe(r/12);r%=12;n.days=t;n.months=r;n.years=s;return this}function Di(e){return e*4800/146097}function Ti(e){return e*146097/4800}function Li(e){if(!this.isValid()){return NaN}var t,r,n=this._milliseconds;e=ie(e);if(e==="month"||e==="quarter"||e==="year"){t=this._days+n/864e5;r=this._months+Di(t);switch(e){case"month":return r;case"quarter":return r/3;case"year":return r/12}}else{t=this._days+Math.round(Ti(this._months));switch(e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}}function Ci(){if(!this.isValid()){return NaN}return this._milliseconds+this._days*864e5+this._months%12*2592e6+de(this._months/12)*31536e6}function ji(e){return function(){return this.as(e)}}var Ni=ji("ms"),Ii=ji("s"),Pi=ji("m"),Ri=ji("h"),Fi=ji("d"),Yi=ji("w"),Bi=ji("M"),Hi=ji("Q"),Ui=ji("y");function zi(){return Dn(this)}function qi(e){e=ie(e);return this.isValid()?this[e+"s"]():NaN}function Vi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wi=Vi("milliseconds"),Ki=Vi("seconds"),Gi=Vi("minutes"),Qi=Vi("hours"),Ji=Vi("days"),Zi=Vi("months"),Xi=Vi("years");function $i(){return fe(this.days()/7)}var eo=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ro(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function no(e,t,r,n){var a=Dn(e).abs(),i=eo(a.as("s")),o=eo(a.as("m")),s=eo(a.as("h")),u=eo(a.as("d")),l=eo(a.as("M")),c=eo(a.as("w")),f=eo(a.as("y")),d=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||u<=1&&["d"]||u<r.d&&["dd",u];if(r.w!=null){d=d||c<=1&&["w"]||c<r.w&&["ww",c]}d=d||l<=1&&["M"]||l<r.M&&["MM",l]||f<=1&&["y"]||["yy",f];d[2]=t;d[3]=+e>0;d[4]=n;return ro.apply(null,d)}function ao(e){if(e===undefined){return eo}if(typeof e==="function"){eo=e;return true}return false}function io(e,t){if(to[e]===undefined){return false}if(t===undefined){return to[e]}to[e]=t;if(e==="s"){to.ss=t-1}return true}function oo(e,t){if(!this.isValid()){return this.localeData().invalidDate()}var r=false,n=to,a,i;if(typeof e==="object"){t=e;e=false}if(typeof e==="boolean"){r=e}if(typeof t==="object"){n=Object.assign({},to,t);if(t.s!=null&&t.ss==null){n.ss=t.s-1}}a=this.localeData();i=no(this,!r,n,a);if(r){i=a.pastFuture(+this,i)}return a.postformat(i)}var so=Math.abs;function uo(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid()){return this.localeData().invalidDate()}var e=so(this._milliseconds)/1e3,t=so(this._days),r=so(this._months),n,a,i,o,s=this.asSeconds(),u,l,c,f;if(!s){return"P0D"}n=fe(e/60);a=fe(n/60);e%=60;n%=60;i=fe(r/12);r%=12;o=e?e.toFixed(3).replace(/\.?0+$/,""):"";u=s<0?"-":"";l=uo(this._months)!==uo(s)?"-":"";c=uo(this._days)!==uo(s)?"-":"";f=uo(this._milliseconds)!==uo(s)?"-":"";return u+"P"+(i?l+i+"Y":"")+(r?l+r+"M":"")+(t?c+t+"D":"")+(a||n||e?"T":"")+(a?f+a+"H":"")+(n?f+n+"M":"")+(e?f+o+"S":"")}var co=sn.prototype;co.isValid=an;co.abs=Ei;co.add=ki;co.subtract=Si;co.as=Li;co.asMilliseconds=Ni;co.asSeconds=Ii;co.asMinutes=Pi;co.asHours=Ri;co.asDays=Fi;co.asWeeks=Yi;co.asMonths=Bi;co.asQuarters=Hi;co.asYears=Ui;co.valueOf=Ci;co._bubble=Mi;co.clone=zi;co.get=qi;co.milliseconds=Wi;co.seconds=Ki;co.minutes=Gi;co.hours=Qi;co.days=Ji;co.weeks=$i;co.months=Zi;co.years=Xi;co.humanize=oo;co.toISOString=lo;co.toString=lo;co.toJSON=lo;co.locale=sa;co.localeData=la;co.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo);co.lang=ua;U("X",0,0,"unix");U("x",0,0,"valueOf");Pe("x",Te);Pe("X",je);He("X",(function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}));He("x",(function(e,t,r){r._d=new Date(de(e))}));
12
12
  //! moment.js
13
- a.version="2.29.1";i(Qr);a.fn=li;a.min=$r;a.max=en;a.now=tn;a.utc=v;a.unix=ci;a.months=yi;a.isDate=d;a.locale=vr;a.invalid=A;a.duration=Dn;a.isMoment=k;a.weekdays=bi;a.parseZone=fi;a.localeData=gr;a.isDuration=un;a.monthsShort=gi;a.weekdaysMin=_i;a.defineLocale=mr;a.updateLocale=yr;a.locales=br;a.weekdaysShort=Ai;a.normalizeUnits=ie;a.relativeTimeRounding=ao;a.relativeTimeThreshold=io;a.calendarFormat=Un;a.prototype=li;a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return a}))}).call(this,r(48)(e))},function(e,t,r){var n=r(84),a=r(27);var i="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function l(e){if(!a(e)){return false}var t=n(e);return t==o||t==s||t==i||t==u}e.exports=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=undefined;var n=r(1031);var a=v(n);var i=r(1094);var o=v(i);var s=r(1117);var u=v(s);var l=r(1118);var c=v(l);var f=r(1119);var d=v(f);var p=r(1120);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}t.hover=c.default;t.handleHover=c.default;t.handleActive=d.default;t.loop=h.default;var m=t.ReactCSS=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++){n[i-1]=arguments[i]}var s=(0,a.default)(n);var l=(0,o.default)(t,s);return(0,u.default)(l)};t.default=m},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));function n(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++){n[a-2]=arguments[a]}if(false){}if(!e){var i;if(t===undefined){i=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var o=0;i=new Error(t.replace(/%s/g,(function(){return n[o++]})));i.name="Invariant Violation"}i.framesToPop=1;throw i}}},function(e,t){function r(e){return e==null}e.exports=r},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(41);var i=r(64);var o=r(259);var s=function(e){n(t,e);function t(t,r){var n=this;t=t||new a.default;n=e.call(this,t)||this;r=r||null;n.csrfToken=r;return n}t.prototype.postForm=function(e,t,r,n,a,i){var o=this;var s;return function(u){return new Promise((function(l,c){u(o.request(e));var f=new Headers;if(o.csrfToken){f.append("X-CSRF-Token",o.csrfToken)}fetch(t,{method:n||"POST",headers:f,body:r,credentials:"same-origin"}).then((function(r){if(r.status===200||r.status===201){u(o.success(e));if(r.json&&i==="JSON"){r.json().then((function(t){u(o.load(e,t));l(r)}))}else if(r.text){r.text().then((function(t){u(o.load(e,t));l(r)}))}else{l(r)}}else{r.json().then((function(n){s={status:r.status,response:n.detail,url:t};u(o.failure(e,s));c(s)})).catch((function(n){s={status:r.status,response:a||"Failed to save changes",url:t};u(o.failure(e,s));c(s)}))}})).catch((function(r){r={status:null,response:r.message,url:t};u(o.failure(e,r));c(r)}))}))}.bind(this)};t.prototype.postJSON=function(e,t,r){var n=this;var a;return function(i){return new Promise((function(o,s){i(n.request(e,t));var u=new Headers;if(n.csrfToken){u.append("X-CSRF-Token",n.csrfToken)}u.append("Accept","application/json");u.append("Content-Type","application/json");fetch(t,{method:"POST",headers:u,body:JSON.stringify(r),credentials:"same-origin"}).then((function(r){if(r.status===200||r.status===201){i(n.success(e));o(r)}else{r.json().then((function(o){a={status:r.status,response:o.detail,url:t};i(n.failure(e,a));s(a)})).catch((function(o){a={status:r.status,response:"Request failed",url:t};i(n.failure(e,a));s(a)}))}})).catch((function(r){r={status:null,response:r.message,url:t};i(n.failure(e,r));s(r)}))}))}};t.prototype.fetchBookAdmin=function(e){return this.fetchOPDS(t.BOOK_ADMIN,e).bind(this)};t.prototype.editBook=function(e,r){return this.postForm(t.EDIT_BOOK,e,r).bind(this)};t.prototype.fetchRoles=function(){var e="/admin/roles";return this.fetchJSON(t.ROLES,e).bind(this)};t.prototype.fetchMedia=function(){var e="/admin/media";return this.fetchJSON(t.MEDIA,e).bind(this)};t.prototype.fetchLanguages=function(){var e="/admin/languages";return this.fetchJSON(t.LANGUAGES,e).bind(this)};t.prototype.fetchRightsStatuses=function(){var e="/admin/rights_status";return this.fetchJSON(t.RIGHTS_STATUSES,e).bind(this)};t.prototype.fetchComplaints=function(e){return this.fetchJSON(t.COMPLAINTS,e).bind(this)};t.prototype.postComplaint=function(e,r){return this.postJSON(t.POST_COMPLAINT,e,r).bind(this)};t.prototype.resolveComplaints=function(e,r){return this.postForm(t.RESOLVE_COMPLAINTS,e,r).bind(this)};t.prototype.fetchGenreTree=function(e){return this.fetchJSON(t.GENRE_TREE,e).bind(this)};t.prototype.editClassifications=function(e,r){return this.postForm(t.EDIT_CLASSIFICATIONS,e,r).bind(this)};t.prototype.fetchClassifications=function(e){return this.fetchJSON(t.CLASSIFICATIONS,e).bind(this)};t.prototype.editBookCover=function(e,r){return this.postForm(t.EDIT_BOOK_COVER,e,r).bind(this)};t.prototype.fetchBookCoverPreview=function(e,r){return this.postForm(t.PREVIEW_BOOK_COVER,e,r,"POST","Could not load preview").bind(this)};t.prototype.clearBookCoverPreview=function(){return this.clear(t.PREVIEW_BOOK_COVER)};t.prototype.fetchCustomListsForBook=function(e){return this.fetchJSON(t.CUSTOM_LISTS_FOR_BOOK,e).bind(this)};t.prototype.editCustomListsForBook=function(e,r){return this.postForm(t.EDIT_CUSTOM_LISTS_FOR_BOOK,e,r).bind(this)};t.prototype.fetchCirculationEvents=function(){var e="/admin/circulation_events";return this.fetchJSON(t.CIRCULATION_EVENTS,e).bind(this)};t.prototype.fetchStats=function(){var e="/admin/stats";return this.fetchJSON(t.STATS,e).bind(this)};t.prototype.fetchLibraries=function(){var e="/admin/libraries";return this.fetchJSON(t.LIBRARIES,e).bind(this)};t.prototype.editLibrary=function(e){var r="/admin/libraries";return this.postForm(t.EDIT_LIBRARY,r,e).bind(this)};t.prototype.deleteLibrary=function(e){var r="/admin/library/"+e;return this.postForm(t.DELETE_LIBRARY,r,null,"DELETE").bind(this)};t.prototype.fetchCollections=function(){var e="/admin/collections";return this.fetchJSON(t.COLLECTIONS,e).bind(this)};t.prototype.editCollection=function(e){var r="/admin/collections";return this.postForm(t.EDIT_COLLECTION,r,e).bind(this)};t.prototype.deleteCollection=function(e){var r="/admin/collection/"+e;return this.postForm(t.DELETE_COLLECTION,r,null,"DELETE").bind(this)};t.prototype.fetchAdminAuthServices=function(){var e="/admin/admin_auth_services";return this.fetchJSON(t.ADMIN_AUTH_SERVICES,e).bind(this)};t.prototype.editAdminAuthService=function(e){var r="/admin/admin_auth_services";return this.postForm(t.EDIT_ADMIN_AUTH_SERVICE,r,e).bind(this)};t.prototype.deleteAdminAuthService=function(e){var r="/admin/admin_auth_service/"+e;return this.postForm(t.DELETE_ADMIN_AUTH_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchIndividualAdmins=function(){var e="/admin/individual_admins";return this.fetchJSON(t.INDIVIDUAL_ADMINS,e).bind(this)};t.prototype.editIndividualAdmin=function(e){var r="/admin/individual_admins";return this.postForm(t.EDIT_INDIVIDUAL_ADMIN,r,e).bind(this)};t.prototype.deleteIndividualAdmin=function(e){var r="/admin/individual_admin/"+e;return this.postForm(t.DELETE_INDIVIDUAL_ADMIN,r,null,"DELETE").bind(this)};t.prototype.fetchPatronAuthServices=function(){var e="/admin/patron_auth_services";return this.fetchJSON(t.PATRON_AUTH_SERVICES,e).bind(this)};t.prototype.editPatronAuthService=function(e){var r="/admin/patron_auth_services";return this.postForm(t.EDIT_PATRON_AUTH_SERVICE,r,e).bind(this)};t.prototype.deletePatronAuthService=function(e){var r="/admin/patron_auth_service/"+e;return this.postForm(t.DELETE_PATRON_AUTH_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchSitewideSettings=function(){var e="/admin/sitewide_settings";return this.fetchJSON(t.SITEWIDE_SETTINGS,e).bind(this)};t.prototype.editSitewideSetting=function(e){var r="/admin/sitewide_settings";return this.postForm(t.EDIT_SITEWIDE_SETTING,r,e).bind(this)};t.prototype.deleteSitewideSetting=function(e){var r="/admin/sitewide_setting/"+e;return this.postForm(t.DELETE_SITEWIDE_SETTING,r,null,"DELETE").bind(this)};t.prototype.fetchLoggingServices=function(){var e="/admin/logging_services";return this.fetchJSON(t.LOGGING_SERVICES,e).bind(this)};t.prototype.editLoggingService=function(e){var r="/admin/logging_services";return this.postForm(t.EDIT_LOGGING_SERVICE,r,e).bind(this)};t.prototype.deleteLoggingService=function(e){var r="/admin/logging_service/"+e;return this.postForm(t.DELETE_LOGGING_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchMetadataServices=function(){var e="/admin/metadata_services";return this.fetchJSON(t.METADATA_SERVICES,e).bind(this)};t.prototype.editMetadataService=function(e){var r="/admin/metadata_services";return this.postForm(t.EDIT_METADATA_SERVICE,r,e).bind(this)};t.prototype.deleteMetadataService=function(e){var r="/admin/metadata_service/"+e;return this.postForm(t.DELETE_METADATA_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchAnalyticsServices=function(){var e="/admin/analytics_services";return this.fetchJSON(t.ANALYTICS_SERVICES,e).bind(this)};t.prototype.editAnalyticsService=function(e){var r="/admin/analytics_services";return this.postForm(t.EDIT_ANALYTICS_SERVICE,r,e).bind(this)};t.prototype.deleteAnalyticsService=function(e){var r="/admin/analytics_service/"+e;return this.postForm(t.DELETE_ANALYTICS_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchCDNServices=function(){var e="/admin/cdn_services";return this.fetchJSON(t.CDN_SERVICES,e).bind(this)};t.prototype.editCDNService=function(e){var r="/admin/cdn_services";return this.postForm(t.EDIT_CDN_SERVICE,r,e).bind(this)};t.prototype.deleteCDNService=function(e){var r="/admin/cdn_service/"+e;return this.postForm(t.DELETE_CDN_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchSearchServices=function(){var e="/admin/search_services";return this.fetchJSON(t.SEARCH_SERVICES,e).bind(this)};t.prototype.editSearchService=function(e){var r="/admin/search_services";return this.postForm(t.EDIT_SEARCH_SERVICE,r,e).bind(this)};t.prototype.deleteSearchService=function(e){var r="/admin/search_service/"+e;return this.postForm(t.DELETE_SEARCH_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchStorageServices=function(){var e="/admin/storage_services";return this.fetchJSON(t.STORAGE_SERVICES,e).bind(this)};t.prototype.editStorageService=function(e){var r="/admin/storage_services";return this.postForm(t.EDIT_STORAGE_SERVICE,r,e).bind(this)};t.prototype.deleteStorageService=function(e){var r="/admin/storage_service/"+e;return this.postForm(t.DELETE_STORAGE_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchCatalogServices=function(){var e="/admin/catalog_services";return this.fetchJSON(t.CATALOG_SERVICES,e).bind(this)};t.prototype.editCatalogService=function(e){var r="/admin/catalog_services";return this.postForm(t.EDIT_CATALOG_SERVICE,r,e).bind(this)};t.prototype.deleteCatalogService=function(e){var r="/admin/catalog_service/"+e;return this.postForm(t.DELETE_CATALOG_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchDiscoveryServices=function(){var e="/admin/discovery_services";return this.fetchJSON(t.DISCOVERY_SERVICES,e).bind(this)};t.prototype.editDiscoveryService=function(e){var r="/admin/discovery_services";return this.postForm(t.EDIT_DISCOVERY_SERVICE,r,e).bind(this)};t.prototype.deleteDiscoveryService=function(e){var r="/admin/discovery_service/"+e;return this.postForm(t.DELETE_DISCOVERY_SERVICE,r,null,"DELETE").bind(this)};t.prototype.registerLibraryWithDiscoveryService=function(e){var r="/admin/discovery_service_library_registrations";return this.postForm(t.REGISTER_LIBRARY_WITH_DISCOVERY_SERVICE,r,e).bind(this)};t.prototype.fetchDiscoveryServiceLibraryRegistrations=function(){var e="/admin/discovery_service_library_registrations";return this.fetchJSON(t.DISCOVERY_SERVICE_LIBRARY_REGISTRATIONS,e).bind(this)};t.prototype.registerLibraryWithCollection=function(e){var r="/admin/collection_library_registrations";return this.postForm(t.REGISTER_LIBRARY_WITH_COLLECTION,r,e).bind(this)};t.prototype.fetchCollectionLibraryRegistrations=function(){var e="/admin/collection_library_registrations";return this.fetchJSON(t.COLLECTION_LIBRARY_REGISTRATIONS,e).bind(this)};t.prototype.fetchCustomLists=function(e){var r="/"+e+"/admin/custom_lists";return this.fetchJSON(t.CUSTOM_LISTS,r).bind(this)};t.prototype.fetchCustomListDetails=function(e,r){var n="/"+e+"/admin/custom_list/"+r;return this.fetchOPDS(t.CUSTOM_LIST_DETAILS,n).bind(this)};t.prototype.fetchMoreCustomListEntries=function(){var e=this;return function(r,n){var a=n().editor.customListDetails,i=a.data,o=a.isFetchingMoreEntries;if(!o){return r(e.fetchOPDS(t.CUSTOM_LIST_DETAILS_MORE,i.nextPageUrl).bind(e))}}};t.prototype.editCustomList=function(e,r,n){var a="/"+e+"/admin/custom_lists";if(n){a="/"+e+"/admin/custom_list/"+n}return this.postForm(t.EDIT_CUSTOM_LIST,a,r).bind(this)};t.prototype.deleteCustomList=function(e,r){var n="/"+e+"/admin/custom_list/"+r;return this.postForm(t.DELETE_CUSTOM_LIST,n,null,"DELETE").bind(this)};t.prototype.openCustomListEditor=function(e){return function(r,n){return r({type:t.OPEN_CUSTOM_LIST_EDITOR,id:e,data:n().editor.customLists.data})}};t.prototype.updateCustomListEditorProperty=function(e,r){return{type:t.UPDATE_CUSTOM_LIST_EDITOR_PROPERTY,name:e,value:r}};t.prototype.toggleCustomListEditorCollection=function(e){return{type:t.TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION,id:e}};t.prototype.updateCustomListEditorSearchParam=function(e,r){return{type:t.UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM,name:e,value:r}};t.prototype.addCustomListEditorAdvSearchQuery=function(e,r){return{type:t.ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY,builderName:e,query:r}};t.prototype.updateCustomListEditorAdvSearchQueryBoolean=function(e,r,n){return{type:t.UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN,builderName:e,id:r,bool:n}};t.prototype.moveCustomListEditorAdvSearchQuery=function(e,r,n){return{type:t.MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY,builderName:e,id:r,targetId:n}};t.prototype.removeCustomListEditorAdvSearchQuery=function(e,r){return{type:t.REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY,builderName:e,id:r}};t.prototype.selectCustomListEditorAdvSearchQuery=function(e,r){return{type:t.SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY,builderName:e,id:r}};t.prototype.addCustomListEditorEntry=function(e){return function(r,n){return r({type:t.ADD_CUSTOM_LIST_EDITOR_ENTRY,id:e,data:n().editor.collection.data})}};t.prototype.addAllCustomListEditorEntries=function(){return function(e,r){return e({type:t.ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES,data:r().editor.collection.data})}};t.prototype.deleteCustomListEditorEntry=function(e){return{type:t.DELETE_CUSTOM_LIST_EDITOR_ENTRY,id:e}};t.prototype.deleteAllCustomListEditorEntries=function(){return{type:t.DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES}};t.prototype.resetCustomListEditor=function(){return{type:t.RESET_CUSTOM_LIST_EDITOR}};t.prototype.saveCustomListEditor=function(e){var t=this;return function(r,n){var a=n().editor.customListEditor;var i=a.id;return r(t.editCustomList(e,o.getCustomListEditorFormData(a),i)).then((function(){var t=n().editor.customLists.successMessage;if(i===null&&t){window.location.href="/admin/web/lists/"+e+"/edit/"+t}}))}};t.prototype.executeCustomListEditorSearch=function(e){var r=this;return function(n,a){var i=a().editor.customListEditor;var s=o.getCustomListEditorSearchUrl(i,e);if(s){return n(r.fetchCollection(s))}return n(r.clear(t.COLLECTION))}};t.prototype.fetchMoreCustomListEditorSearchResults=function(){var e=this;return function(t,r){var n=r().editor.collection,a=n.data,i=n.isFetchingPage;if(!i){return t(e.fetchPage(a.nextPageUrl))}}};t.prototype.fetchLanes=function(e){var r="/"+e+"/admin/lanes";return this.fetchJSON(t.LANES,r).bind(this)};t.prototype.editLane=function(e,r){var n="/"+e+"/admin/lanes";return this.postForm(t.EDIT_LANE,n,r).bind(this)};t.prototype.deleteLane=function(e,r){var n="/"+e+"/admin/lane/"+r;return this.postForm(t.DELETE_LANE,n,null,"DELETE").bind(this)};t.prototype.showLane=function(e,r){var n="/"+e+"/admin/lane/"+r+"/show";return this.postForm(t.CHANGE_LANE_VISIBILITY,n,null).bind(this)};t.prototype.hideLane=function(e,r){var n="/"+e+"/admin/lane/"+r+"/hide";return this.postForm(t.CHANGE_LANE_VISIBILITY,n,null).bind(this)};t.prototype.resetLanes=function(e){var r="/"+e+"/admin/lanes/reset";return this.postForm(t.RESET_LANES,r,null).bind(this)};t.prototype.changeLaneOrder=function(e,r){var n="/"+e+"/admin/lanes/change_order";return this.postJSON(t.CHANGE_LANE_ORDER,n,r).bind(this)};t.prototype.changePassword=function(e){var r="/admin/change_password";return this.postForm(t.CHANGE_PASSWORD,r,e).bind(this)};t.prototype.getSelfTests=function(e){return this.fetchJSON(t.GET_SELF_TESTS,e).bind(this)};t.prototype.runSelfTests=function(e){return this.postForm(t.RUN_SELF_TESTS,e,null).bind(this)};t.prototype.patronLookup=function(e,r){var n="/"+r+"/admin/manage_patrons";return this.postForm(t.PATRON_LOOKUP,n,e,"POST","","JSON").bind(this)};t.prototype.resetAdobeId=function(e,r){var n="/"+r+"/admin/manage_patrons/reset_adobe_id";return this.postForm(t.RESET_ADOBE_ID,n,e).bind(this)};t.prototype.clearPatronData=function(){var e=this;return function(r){return r(e.load(t.CLEAR_PATRON_DATA,null))}};t.prototype.fetchDiagnostics=function(){var e="/admin/diagnostics";return this.fetchJSON(t.DIAGNOSTICS,e).bind(this)};t.EDIT_BOOK="EDIT_BOOK";t.BOOK_ADMIN="BOOK_ADMIN";t.ROLES="ROLES";t.MEDIA="MEDIA";t.LANGUAGES="LANGUAGES";t.RIGHTS_STATUSES="RIGHTS_STATUSES";t.COMPLAINTS="COMPLAINTS";t.POST_COMPLAINT="POST_COMPLAINT";t.RESOLVE_COMPLAINTS="RESOLVE_COMPLAINTS";t.GENRE_TREE="GENRE_TREE";t.CLASSIFICATIONS="CLASSIFICATIONS";t.EDIT_CLASSIFICATIONS="EDIT_CLASSIFICATIONS";t.BOOK_COVER="BOOK_COVER";t.EDIT_BOOK_COVER="EDIT_BOOK_COVER";t.PREVIEW_BOOK_COVER="PREVIEW_BOOK_COVER";t.CUSTOM_LISTS_FOR_BOOK="CUSTOM_LISTS_FOR_BOOK";t.EDIT_CUSTOM_LISTS_FOR_BOOK="EDIT_CUSTOM_LISTS_FOR_BOOK";t.CIRCULATION_EVENTS="CIRCULATION_EVENTS";t.STATS="STATS";t.LIBRARIES="LIBRARIES";t.EDIT_LIBRARY="EDIT_LIBRARY";t.DELETE_LIBRARY="DELETE_LIBRARY";t.COLLECTIONS="COLLECTIONS";t.EDIT_COLLECTION="EDIT_COLLECTION";t.DELETE_COLLECTION="DELETE_COLLECTION";t.ADMIN_AUTH_SERVICES="ADMIN_AUTH_SERVICES";t.EDIT_ADMIN_AUTH_SERVICE="EDIT_ADMIN_AUTH_SERVICE";t.DELETE_ADMIN_AUTH_SERVICE="DELETE_ADMIN_AUTH_SERVICE";t.INDIVIDUAL_ADMINS="INDIVIDUAL_ADMINS";t.EDIT_INDIVIDUAL_ADMIN="EDIT_INDIVIDUAL_ADMIN";t.DELETE_INDIVIDUAL_ADMIN="DELETE_INDIVIDUAL_ADMIN";t.PATRON_AUTH_SERVICES="PATRON_AUTH_SERVICES";t.EDIT_PATRON_AUTH_SERVICE="EDIT_PATRON_AUTH_SERVICE";t.DELETE_PATRON_AUTH_SERVICE="DELETE_PATRON_AUTH_SERVICE";t.SITEWIDE_SETTINGS="SITEWIDE_SETTINGS";t.EDIT_SITEWIDE_SETTING="EDIT_SITEWIDE_SETTING";t.DELETE_SITEWIDE_SETTING="DELETE_SITEWIDE_SETTING";t.LOGGING_SERVICES="LOGGING_SERVICES";t.EDIT_LOGGING_SERVICE="EDIT_LOGGING_SERVICE";t.DELETE_LOGGING_SERVICE="DELETE_LOGGING_SERVICE";t.METADATA_SERVICES="METADATA_SERVICES";t.EDIT_METADATA_SERVICE="EDIT_METADATA_SERVICE";t.DELETE_METADATA_SERVICE="DELETE_METADATA_SERVICE";t.ANALYTICS_SERVICES="ANALYTICS_SERVICES";t.EDIT_ANALYTICS_SERVICE="EDIT_ANALYTICS_SERVICE";t.DELETE_ANALYTICS_SERVICE="DELETE_ANALYTICS_SERVICE";t.CDN_SERVICES="CDN_SERVICES";t.EDIT_CDN_SERVICE="EDIT_CDN_SERVICE";t.DELETE_CDN_SERVICE="DELETE_CDN_SERVICE";t.SEARCH_SERVICES="SEARCH_SERVICES";t.EDIT_SEARCH_SERVICE="EDIT_SEARCH_SERVICE";t.DELETE_SEARCH_SERVICE="DELETE_SEARCH_SERVICE";t.STORAGE_SERVICES="STORAGE_SERVICES";t.EDIT_STORAGE_SERVICE="EDIT_STORAGE_SERVICE";t.DELETE_STORAGE_SERVICE="DELETE_STORAGE_SERVICE";t.CATALOG_SERVICES="CATALOG_SERVICES";t.EDIT_CATALOG_SERVICE="EDIT_CATALOG_SERVICE";t.DELETE_CATALOG_SERVICE="DELETE_CATALOG_SERVICE";t.DISCOVERY_SERVICES="DISCOVERY_SERVICES";t.EDIT_DISCOVERY_SERVICE="EDIT_DISCOVERY_SERVICE";t.DELETE_DISCOVERY_SERVICE="DELETE_DISCOVERY_SERVICE";t.REGISTER_LIBRARY_WITH_DISCOVERY_SERVICE="REGISTER_LIBRARY_WITH_DISCOVERY_SERVICE";t.DISCOVERY_SERVICE_LIBRARY_REGISTRATIONS="DISCOVERY_SERVICE_LIBRARY_REGISTRATIONS";t.REGISTER_LIBRARY_WITH_COLLECTION="REGISTER_LIBRARY_WITH_COLLECTION";t.COLLECTION_LIBRARY_REGISTRATIONS="COLLECTION_LIBRARY_REGISTRATIONS";t.CUSTOM_LISTS="CUSTOM_LISTS";t.CUSTOM_LIST_DETAILS="CUSTOM_LIST_DETAILS";t.CUSTOM_LIST_DETAILS_MORE="CUSTOM_LIST_DETAILS_MORE";t.EDIT_CUSTOM_LIST="EDIT_CUSTOM_LIST";t.DELETE_CUSTOM_LIST="DELETE_CUSTOM_LIST";t.OPEN_CUSTOM_LIST_EDITOR="OPEN_CUSTOM_LIST_EDITOR";t.UPDATE_CUSTOM_LIST_EDITOR_PROPERTY="UPDATE_CUSTOM_LIST_EDITOR_PROPERTY";t.TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION="TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION";t.UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM="UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM";t.ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY="ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY";t.UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN="UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN";t.MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY="MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY";t.REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY="REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY";t.SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY="SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY";t.ADD_CUSTOM_LIST_EDITOR_ENTRY="ADD_CUSTOM_LIST_EDITOR_ENTRY";t.ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES="ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES";t.DELETE_CUSTOM_LIST_EDITOR_ENTRY="DELETE_CUSTOM_LIST_EDITOR_ENTRY";t.DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES="DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES";t.RESET_CUSTOM_LIST_EDITOR="RESET_CUSTOM_LIST_EDITOR";t.LANES="LANES";t.EDIT_LANE="EDIT_LANE";t.DELETE_LANE="DELETE_LANE";t.CHANGE_LANE_VISIBILITY="CHANGE_LANE_VISIBILITY";t.RESET_LANES="RESET_LANES";t.CHANGE_LANE_ORDER="CHANGE_LANE_ORDER";t.EDIT_BOOK_REQUEST="EDIT_BOOK_REQUEST";t.EDIT_BOOK_SUCCESS="EDIT_BOOK_SUCCESS";t.EDIT_BOOK_FAILURE="EDIT_BOOK_FAILURE";t.BOOK_ADMIN_REQUEST="BOOK_ADMIN_REQUEST";t.BOOK_ADMIN_SUCCESS="BOOK_ADMIN_SUCCESS";t.BOOK_ADMIN_FAILURE="BOOK_ADMIN_FAILURE";t.BOOK_ADMIN_LOAD="BOOK_ADMIN_LOAD";t.COMPLAINTS_REQUEST="COMPLAINTS_REQUEST";t.COMPLAINTS_SUCCESS="COMPLAINTS_SUCCESS";t.COMPLAINTS_FAILURE="COMPLAINTS_FAILURE";t.COMPLAINTS_LOAD="COMPLAINTS_LOAD";t.POST_COMPLAINT_REQUEST="POST_COMPLAINT_REQUEST";t.POST_COMPLAINT_SUCCESS="POST_COMPLAINT_SUCCESS";t.POST_COMPLAINT_FAILURE="POST_COMPLAINT_FAILURE";t.RESOLVE_COMPLAINTS_REQUEST="RESOLVE_COMPLAINTS_REQUEST";t.RESOLVE_COMPLAINTS_SUCCESS="RESOLVE_COMPLAINTS_SUCCESS";t.RESOLVE_COMPLAINTS_FAILURE="RESOLVE_COMPLAINTS_FAILURE";t.GENRE_TREE_REQUEST="GENRE_TREE_REQUEST";t.GENRE_TREE_SUCCESS="GENRE_TREE_SUCCESS";t.GENRE_TREE_FAILURE="GENRE_TREE_FAILURE";t.GENRE_TREE_LOAD="GENRE_TREE_LOAD";t.CLASSIFICATIONS_REQUEST="CLASSIFICATIONS_REQUEST";t.CLASSIFICATIONS_SUCCESS="CLASSIFICATIONS_SUCCESS";t.CLASSIFICATIONS_FAILURE="CLASSIFICATIONS_FAILURE";t.CLASSIFICATIONS_LOAD="CLASSIFICATIONS_LOAD";t.EDIT_CLASSIFICATIONS_REQUEST="EDIT_CLASSIFICATIONS_REQUEST";t.EDIT_CLASSIFICATIONS_SUCCESS="EDIT_CLASSIFICATIONS_SUCCESS";t.EDIT_CLASSIFICATIONS_FAILURE="EDIT_CLASSIFICATIONS_FAILURE";t.CIRCULATION_EVENTS_REQUEST="CIRCULATION_EVENTS_REQUEST";t.CIRCULATION_EVENTS_SUCCESS="CIRCULATION_EVENTS_SUCCESS";t.CIRCULATION_EVENTS_FAILURE="CIRCULATION_EVENTS_FAILURE";t.CIRCULATION_EVENTS_LOAD="CIRCULATION_EVENTS_LOAD";t.STATS_REQUEST="STATS_REQUEST";t.STATS_SUCCESS="STATS_SUCCESS";t.STATS_FAILURE="STATS_FAILURE";t.STATS_LOAD="STATS_LOAD";t.CHANGE_PASSWORD="CHANGE_PASSWORD";t.GET_SELF_TESTS="GET_SELF_TESTS";t.RUN_SELF_TESTS="RUN_SELF_TESTS";t.PATRON_LOOKUP="PATRON_LOOKUP";t.CLEAR_PATRON_DATA="CLEAR_PATRON_DATA";t.RESET_ADOBE_ID="RESET_ADOBE_ID";t.DIAGNOSTICS="DIAGNOSTICS";return t}(i.default);t.default=s},function(e,t,r){"use strict";var n=function(e,t,r,n,a,i,o,s){if(false){}if(!e){var u;if(t===undefined){u=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var l=[r,n,a,i,o,s];var c=0;u=new Error(t.replace(/%s/g,(function(){return l[c++]})));u.name="Invariant Violation"}u.framesToPop=1;throw u}};e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=u(n);var i=r(93);var o=r(143);var s=u(o);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,r,n,o){var s=e[t];if(a.default.isValidElement(s)){return new Error("Invalid "+n+" `"+o+"` of type ReactElement "+("supplied to `"+r+"`,expected an element type (a string ")+", component class, or function component).")}if(!(0,i.isValidElementType)(s)){return new Error("Invalid "+n+" `"+o+"` of value `"+s+"` "+("supplied to `"+r+"`, expected an element type (a string ")+", component class, or function component).")}return null}t.default=(0,s.default)(l);e.exports=t["default"]},function(e,t,r){(function(t,r){true?e.exports=r():undefined})(this,(function(){"use strict";var e=Array.prototype.slice;function t(e,t){if(t){e.prototype=Object.create(t.prototype)}e.prototype.constructor=e}function r(e){return o(e)?e:K(e)}t(n,r);function n(e){return s(e)?e:G(e)}t(a,r);function a(e){return u(e)?e:Q(e)}t(i,r);function i(e){return o(e)&&!l(e)?e:J(e)}function o(e){return!!(e&&e[f])}function s(e){return!!(e&&e[d])}function u(e){return!!(e&&e[p])}function l(e){return s(e)||u(e)}function c(e){return!!(e&&e[h])}r.isIterable=o;r.isKeyed=s;r.isIndexed=u;r.isAssociative=l;r.isOrdered=c;r.Keyed=n;r.Indexed=a;r.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@";var d="@@__IMMUTABLE_KEYED__@@";var p="@@__IMMUTABLE_INDEXED__@@";var h="@@__IMMUTABLE_ORDERED__@@";var v="delete";var m=5;var y=1<<m;var g=y-1;var b={};var A={value:false};var _={value:false};function w(e){e.value=false;return e}function E(e){e&&(e.value=true)}function x(){}function k(e,t){t=t||0;var r=Math.max(0,e.length-t);var n=new Array(r);for(var a=0;a<r;a++){n[a]=e[a+t]}return n}function S(e){if(e.size===undefined){e.size=e.__iterate(M)}return e.size}function O(e,t){if(typeof t!=="number"){var r=t>>>0;if(""+r!==t||r===4294967295){return NaN}t=r}return t<0?S(e)+t:t}function M(){return true}function D(e,t,r){return(e===0||r!==undefined&&e<=-r)&&(t===undefined||r!==undefined&&t>=r)}function T(e,t){return C(e,t,0)}function L(e,t){return C(e,t,t)}function C(e,t,r){return e===undefined?r:e<0?Math.max(0,t+e):t===undefined?e:Math.min(t,e)}var j=0;var N=1;var I=2;var P=typeof Symbol==="function"&&Symbol.iterator;var R="@@iterator";var F=P||R;function Y(e){this.next=e}Y.prototype.toString=function(){return"[Iterator]"};Y.KEYS=j;Y.VALUES=N;Y.ENTRIES=I;Y.prototype.inspect=Y.prototype.toSource=function(){return this.toString()};Y.prototype[F]=function(){return this};function B(e,t,r,n){var a=e===0?t:e===1?r:[t,r];n?n.value=a:n={value:a,done:false};return n}function H(){return{value:undefined,done:true}}function U(e){return!!V(e)}function z(e){return e&&typeof e.next==="function"}function q(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(P&&e[P]||e[R]);if(typeof t==="function"){return t}}function W(e){return e&&typeof e.length==="number"}t(K,r);function K(e){return e===null||e===undefined?ae():o(e)?e.toSeq():se(e)}K.of=function(){return K(arguments)};K.prototype.toSeq=function(){return this};K.prototype.toString=function(){return this.__toString("Seq {","}")};K.prototype.cacheResult=function(){if(!this._cache&&this.__iterateUncached){this._cache=this.entrySeq().toArray();this.size=this._cache.length}return this};K.prototype.__iterate=function(e,t){return le(this,e,t,true)};K.prototype.__iterator=function(e,t){return ce(this,e,t,true)};t(G,K);function G(e){return e===null||e===undefined?ae().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():ie(e)}G.prototype.toKeyedSeq=function(){return this};t(Q,K);function Q(e){return e===null||e===undefined?ae():!o(e)?oe(e):s(e)?e.entrySeq():e.toIndexedSeq()}Q.of=function(){return Q(arguments)};Q.prototype.toIndexedSeq=function(){return this};Q.prototype.toString=function(){return this.__toString("Seq [","]")};Q.prototype.__iterate=function(e,t){return le(this,e,t,false)};Q.prototype.__iterator=function(e,t){return ce(this,e,t,false)};t(J,K);function J(e){return(e===null||e===undefined?ae():!o(e)?oe(e):s(e)?e.entrySeq():e).toSetSeq()}J.of=function(){return J(arguments)};J.prototype.toSetSeq=function(){return this};K.isSeq=re;K.Keyed=G;K.Set=J;K.Indexed=Q;var Z="@@__IMMUTABLE_SEQ__@@";K.prototype[Z]=true;t(X,Q);function X(e){this._array=e;this.size=e.length}X.prototype.get=function(e,t){return this.has(e)?this._array[O(this,e)]:t};X.prototype.__iterate=function(e,t){var r=this._array;var n=r.length-1;for(var a=0;a<=n;a++){if(e(r[t?n-a:a],a,this)===false){return a+1}}return a};X.prototype.__iterator=function(e,t){var r=this._array;var n=r.length-1;var a=0;return new Y((function(){return a>n?H():B(e,a,r[t?n-a++:a++])}))};t($,G);function $(e){var t=Object.keys(e);this._object=e;this._keys=t;this.size=t.length}$.prototype.get=function(e,t){if(t!==undefined&&!this.has(e)){return t}return this._object[e]};$.prototype.has=function(e){return this._object.hasOwnProperty(e)};$.prototype.__iterate=function(e,t){var r=this._object;var n=this._keys;var a=n.length-1;for(var i=0;i<=a;i++){var o=n[t?a-i:i];if(e(r[o],o,this)===false){return i+1}}return i};$.prototype.__iterator=function(e,t){var r=this._object;var n=this._keys;var a=n.length-1;var i=0;return new Y((function(){var o=n[t?a-i:i];return i++>a?H():B(e,o,r[o])}))};$.prototype[h]=true;t(ee,Q);function ee(e){this._iterable=e;this.size=e.length||e.size}ee.prototype.__iterateUncached=function(e,t){if(t){return this.cacheResult().__iterate(e,t)}var r=this._iterable;var n=q(r);var a=0;if(z(n)){var i;while(!(i=n.next()).done){if(e(i.value,a++,this)===false){break}}}return a};ee.prototype.__iteratorUncached=function(e,t){if(t){return this.cacheResult().__iterator(e,t)}var r=this._iterable;var n=q(r);if(!z(n)){return new Y(H)}var a=0;return new Y((function(){var t=n.next();return t.done?t:B(e,a++,t.value)}))};t(te,Q);function te(e){this._iterator=e;this._iteratorCache=[]}te.prototype.__iterateUncached=function(e,t){if(t){return this.cacheResult().__iterate(e,t)}var r=this._iterator;var n=this._iteratorCache;var a=0;while(a<n.length){if(e(n[a],a++,this)===false){return a}}var i;while(!(i=r.next()).done){var o=i.value;n[a]=o;if(e(o,a++,this)===false){break}}return a};te.prototype.__iteratorUncached=function(e,t){if(t){return this.cacheResult().__iterator(e,t)}var r=this._iterator;var n=this._iteratorCache;var a=0;return new Y((function(){if(a>=n.length){var t=r.next();if(t.done){return t}n[a]=t.value}return B(e,a,n[a++])}))};function re(e){return!!(e&&e[Z])}var ne;function ae(){return ne||(ne=new X([]))}function ie(e){var t=Array.isArray(e)?new X(e).fromEntrySeq():z(e)?new te(e).fromEntrySeq():U(e)?new ee(e).fromEntrySeq():typeof e==="object"?new $(e):undefined;if(!t){throw new TypeError("Expected Array or iterable object of [k, v] entries, "+"or keyed object: "+e)}return t}function oe(e){var t=ue(e);if(!t){throw new TypeError("Expected Array or iterable object of values: "+e)}return t}function se(e){var t=ue(e)||typeof e==="object"&&new $(e);if(!t){throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e)}return t}function ue(e){return W(e)?new X(e):z(e)?new te(e):U(e)?new ee(e):undefined}function le(e,t,r,n){var a=e._cache;if(a){var i=a.length-1;for(var o=0;o<=i;o++){var s=a[r?i-o:o];if(t(s[1],n?s[0]:o,e)===false){return o+1}}return o}return e.__iterateUncached(t,r)}function ce(e,t,r,n){var a=e._cache;if(a){var i=a.length-1;var o=0;return new Y((function(){var e=a[r?i-o:o];return o++>i?H():B(t,n?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,r)}function fe(e,t){return t?de(t,e,"",{"":e}):pe(e)}function de(e,t,r,n){if(Array.isArray(t)){return e.call(n,r,Q(t).map((function(r,n){return de(e,r,n,t)})))}if(he(t)){return e.call(n,r,G(t).map((function(r,n){return de(e,r,n,t)})))}return t}function pe(e){if(Array.isArray(e)){return Q(e).map(pe).toList()}if(he(e)){return G(e).map(pe).toMap()}return e}function he(e){return e&&(e.constructor===Object||e.constructor===undefined)}function ve(e,t){if(e===t||e!==e&&t!==t){return true}if(!e||!t){return false}if(typeof e.valueOf==="function"&&typeof t.valueOf==="function"){e=e.valueOf();t=t.valueOf();if(e===t||e!==e&&t!==t){return true}if(!e||!t){return false}}if(typeof e.equals==="function"&&typeof t.equals==="function"&&e.equals(t)){return true}return false}function me(e,t){if(e===t){return true}if(!o(t)||e.size!==undefined&&t.size!==undefined&&e.size!==t.size||e.__hash!==undefined&&t.__hash!==undefined&&e.__hash!==t.__hash||s(e)!==s(t)||u(e)!==u(t)||c(e)!==c(t)){return false}if(e.size===0&&t.size===0){return true}var r=!l(e);if(c(e)){var n=e.entries();return t.every((function(e,t){var a=n.next().value;return a&&ve(a[1],e)&&(r||ve(a[0],t))}))&&n.next().done}var a=false;if(e.size===undefined){if(t.size===undefined){if(typeof e.cacheResult==="function"){e.cacheResult()}}else{a=true;var i=e;e=t;t=i}}var f=true;var d=t.__iterate((function(t,n){if(r?!e.has(t):a?!ve(t,e.get(n,b)):!ve(e.get(n,b),t)){f=false;return false}}));return f&&e.size===d}t(ye,Q);function ye(e,t){if(!(this instanceof ye)){return new ye(e,t)}this._value=e;this.size=t===undefined?Infinity:Math.max(0,t);if(this.size===0){if(ge){return ge}ge=this}}ye.prototype.toString=function(){if(this.size===0){return"Repeat []"}return"Repeat [ "+this._value+" "+this.size+" times ]"};ye.prototype.get=function(e,t){return this.has(e)?this._value:t};ye.prototype.includes=function(e){return ve(this._value,e)};ye.prototype.slice=function(e,t){var r=this.size;return D(e,t,r)?this:new ye(this._value,L(t,r)-T(e,r))};ye.prototype.reverse=function(){return this};ye.prototype.indexOf=function(e){if(ve(this._value,e)){return 0}return-1};ye.prototype.lastIndexOf=function(e){if(ve(this._value,e)){return this.size}return-1};ye.prototype.__iterate=function(e,t){for(var r=0;r<this.size;r++){if(e(this._value,r,this)===false){return r+1}}return r};ye.prototype.__iterator=function(e,t){var r=this;var n=0;return new Y((function(){return n<r.size?B(e,n++,r._value):H()}))};ye.prototype.equals=function(e){return e instanceof ye?ve(this._value,e._value):me(e)};var ge;function be(e,t){if(!e)throw new Error(t)}t(Ae,Q);function Ae(e,t,r){if(!(this instanceof Ae)){return new Ae(e,t,r)}be(r!==0,"Cannot step a Range by 0");e=e||0;if(t===undefined){t=Infinity}r=r===undefined?1:Math.abs(r);if(t<e){r=-r}this._start=e;this._end=t;this._step=r;this.size=Math.max(0,Math.ceil((t-e)/r-1)+1);if(this.size===0){if(_e){return _e}_e=this}}Ae.prototype.toString=function(){if(this.size===0){return"Range []"}return"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"};Ae.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t};Ae.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)};Ae.prototype.slice=function(e,t){if(D(e,t,this.size)){return this}e=T(e,this.size);t=L(t,this.size);if(t<=e){return new Ae(0,0)}return new Ae(this.get(e,this._end),this.get(t,this._end),this._step)};Ae.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var r=t/this._step;if(r>=0&&r<this.size){return r}}return-1};Ae.prototype.lastIndexOf=function(e){return this.indexOf(e)};Ae.prototype.__iterate=function(e,t){var r=this.size-1;var n=this._step;var a=t?this._start+r*n:this._start;for(var i=0;i<=r;i++){if(e(a,i,this)===false){return i+1}a+=t?-n:n}return i};Ae.prototype.__iterator=function(e,t){var r=this.size-1;var n=this._step;var a=t?this._start+r*n:this._start;var i=0;return new Y((function(){var o=a;a+=t?-n:n;return i>r?H():B(e,i++,o)}))};Ae.prototype.equals=function(e){return e instanceof Ae?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)};var _e;t(we,r);function we(){throw TypeError("Abstract")}t(Ee,we);function Ee(){}t(xe,we);function xe(){}t(ke,we);function ke(){}we.Keyed=Ee;we.Indexed=xe;we.Set=ke;var Se=typeof Math.imul==="function"&&Math.imul(4294967295,2)===-2?Math.imul:function e(t,r){t=t|0;r=r|0;var n=t&65535;var a=r&65535;return n*a+((t>>>16)*a+n*(r>>>16)<<16>>>0)|0};function Oe(e){return e>>>1&1073741824|e&3221225471}function Me(e){if(e===false||e===null||e===undefined){return 0}if(typeof e.valueOf==="function"){e=e.valueOf();if(e===false||e===null||e===undefined){return 0}}if(e===true){return 1}var t=typeof e;if(t==="number"){var r=e|0;if(r!==e){r^=e*4294967295}while(e>4294967295){e/=4294967295;r^=e}return Oe(r)}if(t==="string"){return e.length>Ye?De(e):Te(e)}if(typeof e.hashCode==="function"){return e.hashCode()}if(t==="object"){return Le(e)}if(typeof e.toString==="function"){return Te(e.toString())}throw new Error("Value type "+t+" cannot be hashed.")}function De(e){var t=Ue[e];if(t===undefined){t=Te(e);if(He===Be){He=0;Ue={}}He++;Ue[e]=t}return t}function Te(e){var t=0;for(var r=0;r<e.length;r++){t=31*t+e.charCodeAt(r)|0}return Oe(t)}function Le(e){var t;if(Ie){t=Pe.get(e);if(t!==undefined){return t}}t=e[Fe];if(t!==undefined){return t}if(!je){t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Fe];if(t!==undefined){return t}t=Ne(e);if(t!==undefined){return t}}t=++Re;if(Re&1073741824){Re=0}if(Ie){Pe.set(e,t)}else if(Ce!==undefined&&Ce(e)===false){throw new Error("Non-extensible objects are not allowed as keys.")}else if(je){Object.defineProperty(e,Fe,{enumerable:false,configurable:false,writable:false,value:t})}else if(e.propertyIsEnumerable!==undefined&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable){e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)};e.propertyIsEnumerable[Fe]=t}else if(e.nodeType!==undefined){e[Fe]=t}else{throw new Error("Unable to set a non-enumerable property on object.")}return t}var Ce=Object.isExtensible;var je=function(){try{Object.defineProperty({},"@",{});return true}catch(e){return false}}();function Ne(e){if(e&&e.nodeType>0){switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}}var Ie=typeof WeakMap==="function";var Pe;if(Ie){Pe=new WeakMap}var Re=0;var Fe="__immutablehash__";if(typeof Symbol==="function"){Fe=Symbol(Fe)}var Ye=16;var Be=255;var He=0;var Ue={};function ze(e){be(e!==Infinity,"Cannot perform this action with an infinite size.")}t(qe,Ee);function qe(e){return e===null||e===undefined?at():Ve(e)&&!c(e)?e:at().withMutations((function(t){var r=n(e);ze(r.size);r.forEach((function(e,r){return t.set(r,e)}))}))}qe.prototype.toString=function(){return this.__toString("Map {","}")};qe.prototype.get=function(e,t){return this._root?this._root.get(0,undefined,e,t):t};qe.prototype.set=function(e,t){return it(this,e,t)};qe.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))};qe.prototype.remove=function(e){return it(this,e,b)};qe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))};qe.prototype.update=function(e,t,r){return arguments.length===1?e(this):this.updateIn([e],t,r)};qe.prototype.updateIn=function(e,t,r){if(!r){r=t;t=undefined}var n=mt(this,_r(e),t,r);return n===b?undefined:n};qe.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._root=null;this.__hash=undefined;this.__altered=true;return this}return at()};qe.prototype.merge=function(){return dt(this,undefined,arguments)};qe.prototype.mergeWith=function(t){var r=e.call(arguments,1);return dt(this,t,r)};qe.prototype.mergeIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,at(),(function(e){return typeof e.merge==="function"?e.merge.apply(e,r):r[r.length-1]}))};qe.prototype.mergeDeep=function(){return dt(this,pt,arguments)};qe.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return dt(this,ht(t),r)};qe.prototype.mergeDeepIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,at(),(function(e){return typeof e.mergeDeep==="function"?e.mergeDeep.apply(e,r):r[r.length-1]}))};qe.prototype.sort=function(e){return Ht(cr(this,e))};qe.prototype.sortBy=function(e,t){return Ht(cr(this,t,e))};qe.prototype.withMutations=function(e){var t=this.asMutable();e(t);return t.wasAltered()?t.__ensureOwner(this.__ownerID):this};qe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)};qe.prototype.asImmutable=function(){return this.__ensureOwner()};qe.prototype.wasAltered=function(){return this.__altered};qe.prototype.__iterator=function(e,t){return new $e(this,e,t)};qe.prototype.__iterate=function(e,t){var r=this;var n=0;this._root&&this._root.iterate((function(t){n++;return e(t[1],t[0],r)}),t);return n};qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;this.__altered=false;return this}return rt(this.size,this._root,e,this.__hash)};function Ve(e){return!!(e&&e[We])}qe.isMap=Ve;var We="@@__IMMUTABLE_MAP__@@";var Ke=qe.prototype;Ke[We]=true;Ke[v]=Ke.remove;Ke.removeIn=Ke.deleteIn;function Ge(e,t){this.ownerID=e;this.entries=t}Ge.prototype.get=function(e,t,r,n){var a=this.entries;for(var i=0,o=a.length;i<o;i++){if(ve(r,a[i][0])){return a[i][1]}}return n};Ge.prototype.update=function(e,t,r,n,a,i,o){var s=a===b;var u=this.entries;var l=0;for(var c=u.length;l<c;l++){if(ve(n,u[l][0])){break}}var f=l<c;if(f?u[l][1]===a:s){return this}E(o);(s||!f)&&E(i);if(s&&u.length===1){return}if(!f&&!s&&u.length>=_t){return lt(e,u,n,a)}var d=e&&e===this.ownerID;var p=d?u:k(u);if(f){if(s){l===c-1?p.pop():p[l]=p.pop()}else{p[l]=[n,a]}}else{p.push([n,a])}if(d){this.entries=p;return this}return new Ge(e,p)};function Qe(e,t,r){this.ownerID=e;this.bitmap=t;this.nodes=r}Qe.prototype.get=function(e,t,r,n){if(t===undefined){t=Me(r)}var a=1<<((e===0?t:t>>>e)&g);var i=this.bitmap;return(i&a)===0?n:this.nodes[yt(i&a-1)].get(e+m,t,r,n)};Qe.prototype.update=function(e,t,r,n,a,i,o){if(r===undefined){r=Me(n)}var s=(t===0?r:r>>>t)&g;var u=1<<s;var l=this.bitmap;var c=(l&u)!==0;if(!c&&a===b){return this}var f=yt(l&u-1);var d=this.nodes;var p=c?d[f]:undefined;var h=ot(p,e,t+m,r,n,a,i,o);if(h===p){return this}if(!c&&h&&d.length>=wt){return ft(e,d,l,s,h)}if(c&&!h&&d.length===2&&st(d[f^1])){return d[f^1]}if(c&&h&&d.length===1&&st(h)){return h}var v=e&&e===this.ownerID;var y=c?h?l:l^u:l|u;var A=c?h?gt(d,f,h,v):At(d,f,v):bt(d,f,h,v);if(v){this.bitmap=y;this.nodes=A;return this}return new Qe(e,y,A)};function Je(e,t,r){this.ownerID=e;this.count=t;this.nodes=r}Je.prototype.get=function(e,t,r,n){if(t===undefined){t=Me(r)}var a=(e===0?t:t>>>e)&g;var i=this.nodes[a];return i?i.get(e+m,t,r,n):n};Je.prototype.update=function(e,t,r,n,a,i,o){if(r===undefined){r=Me(n)}var s=(t===0?r:r>>>t)&g;var u=a===b;var l=this.nodes;var c=l[s];if(u&&!c){return this}var f=ot(c,e,t+m,r,n,a,i,o);if(f===c){return this}var d=this.count;if(!c){d++}else if(!f){d--;if(d<Et){return ct(e,l,d,s)}}var p=e&&e===this.ownerID;var h=gt(l,s,f,p);if(p){this.count=d;this.nodes=h;return this}return new Je(e,d,h)};function Ze(e,t,r){this.ownerID=e;this.keyHash=t;this.entries=r}Ze.prototype.get=function(e,t,r,n){var a=this.entries;for(var i=0,o=a.length;i<o;i++){if(ve(r,a[i][0])){return a[i][1]}}return n};Ze.prototype.update=function(e,t,r,n,a,i,o){if(r===undefined){r=Me(n)}var s=a===b;if(r!==this.keyHash){if(s){return this}E(o);E(i);return ut(this,e,t,r,[n,a])}var u=this.entries;var l=0;for(var c=u.length;l<c;l++){if(ve(n,u[l][0])){break}}var f=l<c;if(f?u[l][1]===a:s){return this}E(o);(s||!f)&&E(i);if(s&&c===2){return new Xe(e,this.keyHash,u[l^1])}var d=e&&e===this.ownerID;var p=d?u:k(u);if(f){if(s){l===c-1?p.pop():p[l]=p.pop()}else{p[l]=[n,a]}}else{p.push([n,a])}if(d){this.entries=p;return this}return new Ze(e,this.keyHash,p)};function Xe(e,t,r){this.ownerID=e;this.keyHash=t;this.entry=r}Xe.prototype.get=function(e,t,r,n){return ve(r,this.entry[0])?this.entry[1]:n};Xe.prototype.update=function(e,t,r,n,a,i,o){var s=a===b;var u=ve(n,this.entry[0]);if(u?a===this.entry[1]:s){return this}E(o);if(s){E(i);return}if(u){if(e&&e===this.ownerID){this.entry[1]=a;return this}return new Xe(e,this.keyHash,[n,a])}E(i);return ut(this,e,t,Me(n),[n,a])};Ge.prototype.iterate=Ze.prototype.iterate=function(e,t){var r=this.entries;for(var n=0,a=r.length-1;n<=a;n++){if(e(r[t?a-n:n])===false){return false}}};Qe.prototype.iterate=Je.prototype.iterate=function(e,t){var r=this.nodes;for(var n=0,a=r.length-1;n<=a;n++){var i=r[t?a-n:n];if(i&&i.iterate(e,t)===false){return false}}};Xe.prototype.iterate=function(e,t){return e(this.entry)};t($e,Y);function $e(e,t,r){this._type=t;this._reverse=r;this._stack=e._root&&tt(e._root)}$e.prototype.next=function(){var e=this._type;var t=this._stack;while(t){var r=t.node;var n=t.index++;var a;if(r.entry){if(n===0){return et(e,r.entry)}}else if(r.entries){a=r.entries.length-1;if(n<=a){return et(e,r.entries[this._reverse?a-n:n])}}else{a=r.nodes.length-1;if(n<=a){var i=r.nodes[this._reverse?a-n:n];if(i){if(i.entry){return et(e,i.entry)}t=this._stack=tt(i,t)}continue}}t=this._stack=this._stack.__prev}return H()};function et(e,t){return B(e,t[0],t[1])}function tt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,r,n){var a=Object.create(Ke);a.size=e;a._root=t;a.__ownerID=r;a.__hash=n;a.__altered=false;return a}var nt;function at(){return nt||(nt=rt(0))}function it(e,t,r){var n;var a;if(!e._root){if(r===b){return e}a=1;n=new Ge(e.__ownerID,[[t,r]])}else{var i=w(A);var o=w(_);n=ot(e._root,e.__ownerID,0,undefined,t,r,i,o);if(!o.value){return e}a=e.size+(i.value?r===b?-1:1:0)}if(e.__ownerID){e.size=a;e._root=n;e.__hash=undefined;e.__altered=true;return e}return n?rt(a,n):at()}function ot(e,t,r,n,a,i,o,s){if(!e){if(i===b){return e}E(s);E(o);return new Xe(t,n,[a,i])}return e.update(t,r,n,a,i,o,s)}function st(e){return e.constructor===Xe||e.constructor===Ze}function ut(e,t,r,n,a){if(e.keyHash===n){return new Ze(t,n,[e.entry,a])}var i=(r===0?e.keyHash:e.keyHash>>>r)&g;var o=(r===0?n:n>>>r)&g;var s;var u=i===o?[ut(e,t,r+m,n,a)]:(s=new Xe(t,n,a),i<o?[e,s]:[s,e]);return new Qe(t,1<<i|1<<o,u)}function lt(e,t,r,n){if(!e){e=new x}var a=new Xe(e,Me(r),[r,n]);for(var i=0;i<t.length;i++){var o=t[i];a=a.update(e,0,undefined,o[0],o[1])}return a}function ct(e,t,r,n){var a=0;var i=0;var o=new Array(r);for(var s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];if(c!==undefined&&s!==n){a|=u;o[i++]=c}}return new Qe(e,a,o)}function ft(e,t,r,n,a){var i=0;var o=new Array(y);for(var s=0;r!==0;s++,r>>>=1){o[s]=r&1?t[i++]:undefined}o[n]=a;return new Je(e,i+1,o)}function dt(e,t,r){var a=[];for(var i=0;i<r.length;i++){var s=r[i];var u=n(s);if(!o(s)){u=u.map((function(e){return fe(e)}))}a.push(u)}return vt(e,t,a)}function pt(e,t,r){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,r,n){if(t&&t.mergeDeepWith&&o(r)){return t.mergeDeepWith(e,r)}var a=e(t,r,n);return ve(t,a)?t:a}}function vt(e,t,r){r=r.filter((function(e){return e.size!==0}));if(r.length===0){return e}if(e.size===0&&!e.__ownerID&&r.length===1){return e.constructor(r[0])}return e.withMutations((function(e){var n=t?function(r,n){e.update(n,b,(function(e){return e===b?r:t(e,r,n)}))}:function(t,r){e.set(r,t)};for(var a=0;a<r.length;a++){r[a].forEach(n)}}))}function mt(e,t,r,n){var a=e===b;var i=t.next();if(i.done){var o=a?r:e;var s=n(o);return s===o?e:s}be(a||e&&e.set,"invalid keyPath");var u=i.value;var l=a?b:e.get(u,b);var c=mt(l,t,r,n);return c===l?e:c===b?e.remove(u):(a?at():e).set(u,c)}function yt(e){e=e-(e>>1&1431655765);e=(e&858993459)+(e>>2&858993459);e=e+(e>>4)&252645135;e=e+(e>>8);e=e+(e>>16);return e&127}function gt(e,t,r,n){var a=n?e:k(e);a[t]=r;return a}function bt(e,t,r,n){var a=e.length+1;if(n&&t+1===a){e[t]=r;return e}var i=new Array(a);var o=0;for(var s=0;s<a;s++){if(s===t){i[s]=r;o=-1}else{i[s]=e[s+o]}}return i}function At(e,t,r){var n=e.length-1;if(r&&t===n){e.pop();return e}var a=new Array(n);var i=0;for(var o=0;o<n;o++){if(o===t){i=1}a[o]=e[o+i]}return a}var _t=y/4;var wt=y/2;var Et=y/4;t(xt,xe);function xt(e){var t=jt();if(e===null||e===undefined){return t}if(kt(e)){return e}var r=a(e);var n=r.size;if(n===0){return t}ze(n);if(n>0&&n<y){return Lt(0,n,m,null,new Mt(r.toArray()))}return t.withMutations((function(e){e.setSize(n);r.forEach((function(t,r){return e.set(r,t)}))}))}xt.of=function(){return this(arguments)};xt.prototype.toString=function(){return this.__toString("List [","]")};xt.prototype.get=function(e,t){e=O(this,e);if(e>=0&&e<this.size){e+=this._origin;var r=Rt(this,e);return r&&r.array[e&g]}return t};xt.prototype.set=function(e,t){return Nt(this,e,t)};xt.prototype.remove=function(e){return!this.has(e)?this:e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1)};xt.prototype.insert=function(e,t){return this.splice(e,0,t)};xt.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=this._origin=this._capacity=0;this._level=m;this._root=this._tail=null;this.__hash=undefined;this.__altered=true;return this}return jt()};xt.prototype.push=function(){var e=arguments;var t=this.size;return this.withMutations((function(r){Ft(r,0,t+e.length);for(var n=0;n<e.length;n++){r.set(t+n,e[n])}}))};xt.prototype.pop=function(){return Ft(this,0,-1)};xt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var r=0;r<e.length;r++){t.set(r,e[r])}}))};xt.prototype.shift=function(){return Ft(this,1)};xt.prototype.merge=function(){return Yt(this,undefined,arguments)};xt.prototype.mergeWith=function(t){var r=e.call(arguments,1);return Yt(this,t,r)};xt.prototype.mergeDeep=function(){return Yt(this,pt,arguments)};xt.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return Yt(this,ht(t),r)};xt.prototype.setSize=function(e){return Ft(this,0,e)};xt.prototype.slice=function(e,t){var r=this.size;if(D(e,t,r)){return this}return Ft(this,T(e,r),L(t,r))};xt.prototype.__iterator=function(e,t){var r=0;var n=Tt(this,t);return new Y((function(){var t=n();return t===Dt?H():B(e,r++,t)}))};xt.prototype.__iterate=function(e,t){var r=0;var n=Tt(this,t);var a;while((a=n())!==Dt){if(e(a,r++,this)===false){break}}return r};xt.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;return this}return Lt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash)};function kt(e){return!!(e&&e[St])}xt.isList=kt;var St="@@__IMMUTABLE_LIST__@@";var Ot=xt.prototype;Ot[St]=true;Ot[v]=Ot.remove;Ot.setIn=Ke.setIn;Ot.deleteIn=Ot.removeIn=Ke.removeIn;Ot.update=Ke.update;Ot.updateIn=Ke.updateIn;Ot.mergeIn=Ke.mergeIn;Ot.mergeDeepIn=Ke.mergeDeepIn;Ot.withMutations=Ke.withMutations;Ot.asMutable=Ke.asMutable;Ot.asImmutable=Ke.asImmutable;Ot.wasAltered=Ke.wasAltered;function Mt(e,t){this.array=e;this.ownerID=t}Mt.prototype.removeBefore=function(e,t,r){if(r===t?1<<t:false||this.array.length===0){return this}var n=r>>>t&g;if(n>=this.array.length){return new Mt([],e)}var a=n===0;var i;if(t>0){var o=this.array[n];i=o&&o.removeBefore(e,t-m,r);if(i===o&&a){return this}}if(a&&!i){return this}var s=Pt(this,e);if(!a){for(var u=0;u<n;u++){s.array[u]=undefined}}if(i){s.array[n]=i}return s};Mt.prototype.removeAfter=function(e,t,r){if(r===(t?1<<t:0)||this.array.length===0){return this}var n=r-1>>>t&g;if(n>=this.array.length){return this}var a;if(t>0){var i=this.array[n];a=i&&i.removeAfter(e,t-m,r);if(a===i&&n===this.array.length-1){return this}}var o=Pt(this,e);o.array.splice(n+1);if(a){o.array[n]=a}return o};var Dt={};function Tt(e,t){var r=e._origin;var n=e._capacity;var a=Bt(n);var i=e._tail;return o(e._root,e._level,0);function o(e,t,r){return t===0?s(e,r):u(e,t,r)}function s(e,o){var s=o===a?i&&i.array:e&&e.array;var u=o>r?0:r-o;var l=n-o;if(l>y){l=y}return function(){if(u===l){return Dt}var e=t?--l:u++;return s&&s[e]}}function u(e,a,i){var s;var u=e&&e.array;var l=i>r?0:r-i>>a;var c=(n-i>>a)+1;if(c>y){c=y}return function(){do{if(s){var e=s();if(e!==Dt){return e}s=null}if(l===c){return Dt}var r=t?--c:l++;s=o(u&&u[r],a-m,i+(r<<a))}while(true)}}}function Lt(e,t,r,n,a,i,o){var s=Object.create(Ot);s.size=t-e;s._origin=e;s._capacity=t;s._level=r;s._root=n;s._tail=a;s.__ownerID=i;s.__hash=o;s.__altered=false;return s}var Ct;function jt(){return Ct||(Ct=Lt(0,0,m))}function Nt(e,t,r){t=O(e,t);if(t!==t){return e}if(t>=e.size||t<0){return e.withMutations((function(e){t<0?Ft(e,t).set(0,r):Ft(e,0,t+1).set(t,r)}))}t+=e._origin;var n=e._tail;var a=e._root;var i=w(_);if(t>=Bt(e._capacity)){n=It(n,e.__ownerID,0,t,r,i)}else{a=It(a,e.__ownerID,e._level,t,r,i)}if(!i.value){return e}if(e.__ownerID){e._root=a;e._tail=n;e.__hash=undefined;e.__altered=true;return e}return Lt(e._origin,e._capacity,e._level,a,n)}function It(e,t,r,n,a,i){var o=n>>>r&g;var s=e&&o<e.array.length;if(!s&&a===undefined){return e}var u;if(r>0){var l=e&&e.array[o];var c=It(l,t,r-m,n,a,i);if(c===l){return e}u=Pt(e,t);u.array[o]=c;return u}if(s&&e.array[o]===a){return e}E(i);u=Pt(e,t);if(a===undefined&&o===u.array.length-1){u.array.pop()}else{u.array[o]=a}return u}function Pt(e,t){if(t&&e&&t===e.ownerID){return e}return new Mt(e?e.array.slice():[],t)}function Rt(e,t){if(t>=Bt(e._capacity)){return e._tail}if(t<1<<e._level+m){var r=e._root;var n=e._level;while(r&&n>0){r=r.array[t>>>n&g];n-=m}return r}}function Ft(e,t,r){if(t!==undefined){t=t|0}if(r!==undefined){r=r|0}var n=e.__ownerID||new x;var a=e._origin;var i=e._capacity;var o=a+t;var s=r===undefined?i:r<0?i+r:a+r;if(o===a&&s===i){return e}if(o>=s){return e.clear()}var u=e._level;var l=e._root;var c=0;while(o+c<0){l=new Mt(l&&l.array.length?[undefined,l]:[],n);u+=m;c+=1<<u}if(c){o+=c;a+=c;s+=c;i+=c}var f=Bt(i);var d=Bt(s);while(d>=1<<u+m){l=new Mt(l&&l.array.length?[l]:[],n);u+=m}var p=e._tail;var h=d<f?Rt(e,s-1):d>f?new Mt([],n):p;if(p&&d>f&&o<i&&p.array.length){l=Pt(l,n);var v=l;for(var y=u;y>m;y-=m){var b=f>>>y&g;v=v.array[b]=Pt(v.array[b],n)}v.array[f>>>m&g]=p}if(s<i){h=h&&h.removeAfter(n,0,s)}if(o>=d){o-=d;s-=d;u=m;l=null;h=h&&h.removeBefore(n,0,o)}else if(o>a||d<f){c=0;while(l){var A=o>>>u&g;if(A!==d>>>u&g){break}if(A){c+=(1<<u)*A}u-=m;l=l.array[A]}if(l&&o>a){l=l.removeBefore(n,u,o-c)}if(l&&d<f){l=l.removeAfter(n,u,d-c)}if(c){o-=c;s-=c}}if(e.__ownerID){e.size=s-o;e._origin=o;e._capacity=s;e._level=u;e._root=l;e._tail=h;e.__hash=undefined;e.__altered=true;return e}return Lt(o,s,u,l,h)}function Yt(e,t,r){var n=[];var i=0;for(var s=0;s<r.length;s++){var u=r[s];var l=a(u);if(l.size>i){i=l.size}if(!o(u)){l=l.map((function(e){return fe(e)}))}n.push(l)}if(i>e.size){e=e.setSize(i)}return vt(e,t,n)}function Bt(e){return e<y?0:e-1>>>m<<m}t(Ht,qe);function Ht(e){return e===null||e===undefined?Vt():Ut(e)?e:Vt().withMutations((function(t){var r=n(e);ze(r.size);r.forEach((function(e,r){return t.set(r,e)}))}))}Ht.of=function(){return this(arguments)};Ht.prototype.toString=function(){return this.__toString("OrderedMap {","}")};Ht.prototype.get=function(e,t){var r=this._map.get(e);return r!==undefined?this._list.get(r)[1]:t};Ht.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._map.clear();this._list.clear();return this}return Vt()};Ht.prototype.set=function(e,t){return Wt(this,e,t)};Ht.prototype.remove=function(e){return Wt(this,e,b)};Ht.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()};Ht.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],r)}),t)};Ht.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)};Ht.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}var t=this._map.__ensureOwner(e);var r=this._list.__ensureOwner(e);if(!e){this.__ownerID=e;this._map=t;this._list=r;return this}return zt(t,r,e,this.__hash)};function Ut(e){return Ve(e)&&c(e)}Ht.isOrderedMap=Ut;Ht.prototype[h]=true;Ht.prototype[v]=Ht.prototype.remove;function zt(e,t,r,n){var a=Object.create(Ht.prototype);a.size=e?e.size:0;a._map=e;a._list=t;a.__ownerID=r;a.__hash=n;return a}var qt;function Vt(){return qt||(qt=zt(at(),jt()))}function Wt(e,t,r){var n=e._map;var a=e._list;var i=n.get(t);var o=i!==undefined;var s;var u;if(r===b){if(!o){return e}if(a.size>=y&&a.size>=n.size*2){u=a.filter((function(e,t){return e!==undefined&&i!==t}));s=u.toKeyedSeq().map((function(e){return e[0]})).flip().toMap();if(e.__ownerID){s.__ownerID=u.__ownerID=e.__ownerID}}else{s=n.remove(t);u=i===a.size-1?a.pop():a.set(i,undefined)}}else{if(o){if(r===a.get(i)[1]){return e}s=n;u=a.set(i,[t,r])}else{s=n.set(t,a.size);u=a.set(a.size,[t,r])}}if(e.__ownerID){e.size=s.size;e._map=s;e._list=u;e.__hash=undefined;return e}return zt(s,u)}t(Kt,G);function Kt(e,t){this._iter=e;this._useKeys=t;this.size=e.size}Kt.prototype.get=function(e,t){return this._iter.get(e,t)};Kt.prototype.has=function(e){return this._iter.has(e)};Kt.prototype.valueSeq=function(){return this._iter.valueSeq()};Kt.prototype.reverse=function(){var e=this;var t=$t(this,true);if(!this._useKeys){t.valueSeq=function(){return e._iter.toSeq().reverse()}}return t};Kt.prototype.map=function(e,t){var r=this;var n=Xt(this,e,t);if(!this._useKeys){n.valueSeq=function(){return r._iter.toSeq().map(e,t)}}return n};Kt.prototype.__iterate=function(e,t){var r=this;var n;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?mr(this):0,function(a){return e(a,t?--n:n++,r)}),t)};Kt.prototype.__iterator=function(e,t){if(this._useKeys){return this._iter.__iterator(e,t)}var r=this._iter.__iterator(N,t);var n=t?mr(this):0;return new Y((function(){var a=r.next();return a.done?a:B(e,t?--n:n++,a.value,a)}))};Kt.prototype[h]=true;t(Gt,Q);function Gt(e){this._iter=e;this.size=e.size}Gt.prototype.includes=function(e){return this._iter.includes(e)};Gt.prototype.__iterate=function(e,t){var r=this;var n=0;return this._iter.__iterate((function(t){return e(t,n++,r)}),t)};Gt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(N,t);var n=0;return new Y((function(){var t=r.next();return t.done?t:B(e,n++,t.value,t)}))};t(Qt,J);function Qt(e){this._iter=e;this.size=e.size}Qt.prototype.has=function(e){return this._iter.includes(e)};Qt.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate((function(t){return e(t,t,r)}),t)};Qt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(N,t);return new Y((function(){var t=r.next();return t.done?t:B(e,t.value,t.value,t)}))};t(Jt,G);function Jt(e){this._iter=e;this.size=e.size}Jt.prototype.entrySeq=function(){return this._iter.toSeq()};Jt.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate((function(t){if(t){vr(t);var n=o(t);return e(n?t.get(1):t[1],n?t.get(0):t[0],r)}}),t)};Jt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(N,t);return new Y((function(){while(true){var t=r.next();if(t.done){return t}var n=t.value;if(n){vr(n);var a=o(n);return B(e,a?n.get(0):n[0],a?n.get(1):n[1],t)}}}))};Gt.prototype.cacheResult=Kt.prototype.cacheResult=Qt.prototype.cacheResult=Jt.prototype.cacheResult=br;function Zt(e){var t=gr(e);t._iter=e;t.size=e.size;t.flip=function(){return e};t.reverse=function(){var t=e.reverse.apply(this);t.flip=function(){return e.reverse()};return t};t.has=function(t){return e.includes(t)};t.includes=function(t){return e.has(t)};t.cacheResult=br;t.__iterateUncached=function(t,r){var n=this;return e.__iterate((function(e,r){return t(r,e,n)!==false}),r)};t.__iteratorUncached=function(t,r){if(t===I){var n=e.__iterator(t,r);return new Y((function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1];e.value[1]=t}return e}))}return e.__iterator(t===N?j:N,r)};return t}function Xt(e,t,r){var n=gr(e);n.size=e.size;n.has=function(t){return e.has(t)};n.get=function(n,a){var i=e.get(n,b);return i===b?a:t.call(r,i,n,e)};n.__iterateUncached=function(n,a){var i=this;return e.__iterate((function(e,a,o){return n(t.call(r,e,a,o),a,i)!==false}),a)};n.__iteratorUncached=function(n,a){var i=e.__iterator(I,a);return new Y((function(){var a=i.next();if(a.done){return a}var o=a.value;var s=o[0];return B(n,s,t.call(r,o[1],s,e),a)}))};return n}function $t(e,t){var r=gr(e);r._iter=e;r.size=e.size;r.reverse=function(){return e};if(e.flip){r.flip=function(){var t=Zt(e);t.reverse=function(){return e.flip()};return t}}r.get=function(r,n){return e.get(t?r:-1-r,n)};r.has=function(r){return e.has(t?r:-1-r)};r.includes=function(t){return e.includes(t)};r.cacheResult=br;r.__iterate=function(t,r){var n=this;return e.__iterate((function(e,r){return t(e,r,n)}),!r)};r.__iterator=function(t,r){return e.__iterator(t,!r)};return r}function er(e,t,r,n){var a=gr(e);if(n){a.has=function(n){var a=e.get(n,b);return a!==b&&!!t.call(r,a,n,e)};a.get=function(n,a){var i=e.get(n,b);return i!==b&&t.call(r,i,n,e)?i:a}}a.__iterateUncached=function(a,i){var o=this;var s=0;e.__iterate((function(e,i,u){if(t.call(r,e,i,u)){s++;return a(e,n?i:s-1,o)}}),i);return s};a.__iteratorUncached=function(a,i){var o=e.__iterator(I,i);var s=0;return new Y((function(){while(true){var i=o.next();if(i.done){return i}var u=i.value;var l=u[0];var c=u[1];if(t.call(r,c,l,e)){return B(a,n?l:s++,c,i)}}}))};return a}function tr(e,t,r){var n=qe().asMutable();e.__iterate((function(a,i){n.update(t.call(r,a,i,e),0,(function(e){return e+1}))}));return n.asImmutable()}function rr(e,t,r){var n=s(e);var a=(c(e)?Ht():qe()).asMutable();e.__iterate((function(i,o){a.update(t.call(r,i,o,e),(function(e){return e=e||[],e.push(n?[o,i]:i),e}))}));var i=yr(e);return a.map((function(t){return hr(e,i(t))}))}function nr(e,t,r,n){var a=e.size;if(t!==undefined){t=t|0}if(r!==undefined){r=r|0}if(D(t,r,a)){return e}var i=T(t,a);var o=L(r,a);if(i!==i||o!==o){return nr(e.toSeq().cacheResult(),t,r,n)}var s=o-i;var u;if(s===s){u=s<0?0:s}var l=gr(e);l.size=u===0?u:e.size&&u||undefined;if(!n&&re(e)&&u>=0){l.get=function(t,r){t=O(this,t);return t>=0&&t<u?e.get(t+i,r):r}}l.__iterateUncached=function(t,r){var a=this;if(u===0){return 0}if(r){return this.cacheResult().__iterate(t,r)}var o=0;var s=true;var l=0;e.__iterate((function(e,r){if(!(s&&(s=o++<i))){l++;return t(e,n?r:l-1,a)!==false&&l!==u}}));return l};l.__iteratorUncached=function(t,r){if(u!==0&&r){return this.cacheResult().__iterator(t,r)}var a=u!==0&&e.__iterator(t,r);var o=0;var s=0;return new Y((function(){while(o++<i){a.next()}if(++s>u){return H()}var e=a.next();if(n||t===N){return e}else if(t===j){return B(t,s-1,undefined,e)}else{return B(t,s-1,e.value[1],e)}}))};return l}function ar(e,t,r){var n=gr(e);n.__iterateUncached=function(n,a){var i=this;if(a){return this.cacheResult().__iterate(n,a)}var o=0;e.__iterate((function(e,a,s){return t.call(r,e,a,s)&&++o&&n(e,a,i)}));return o};n.__iteratorUncached=function(n,a){var i=this;if(a){return this.cacheResult().__iterator(n,a)}var o=e.__iterator(I,a);var s=true;return new Y((function(){if(!s){return H()}var e=o.next();if(e.done){return e}var a=e.value;var u=a[0];var l=a[1];if(!t.call(r,l,u,i)){s=false;return H()}return n===I?e:B(n,u,l,e)}))};return n}function ir(e,t,r,n){var a=gr(e);a.__iterateUncached=function(a,i){var o=this;if(i){return this.cacheResult().__iterate(a,i)}var s=true;var u=0;e.__iterate((function(e,i,l){if(!(s&&(s=t.call(r,e,i,l)))){u++;return a(e,n?i:u-1,o)}}));return u};a.__iteratorUncached=function(a,i){var o=this;if(i){return this.cacheResult().__iterator(a,i)}var s=e.__iterator(I,i);var u=true;var l=0;return new Y((function(){var e,i,c;do{e=s.next();if(e.done){if(n||a===N){return e}else if(a===j){return B(a,l++,undefined,e)}else{return B(a,l++,e.value[1],e)}}var f=e.value;i=f[0];c=f[1];u&&(u=t.call(r,c,i,o))}while(u);return a===I?e:B(a,i,c,e)}))};return a}function or(e,t){var r=s(e);var a=[e].concat(t).map((function(e){if(!o(e)){e=r?ie(e):oe(Array.isArray(e)?e:[e])}else if(r){e=n(e)}return e})).filter((function(e){return e.size!==0}));if(a.length===0){return e}if(a.length===1){var i=a[0];if(i===e||r&&s(i)||u(e)&&u(i)){return i}}var l=new X(a);if(r){l=l.toKeyedSeq()}else if(!u(e)){l=l.toSetSeq()}l=l.flatten(true);l.size=a.reduce((function(e,t){if(e!==undefined){var r=t.size;if(r!==undefined){return e+r}}}),0);return l}function sr(e,t,r){var n=gr(e);n.__iterateUncached=function(n,a){var i=0;var s=false;function u(e,l){var c=this;e.__iterate((function(e,a){if((!t||l<t)&&o(e)){u(e,l+1)}else if(n(e,r?a:i++,c)===false){s=true}return!s}),a)}u(e,0);return i};n.__iteratorUncached=function(n,a){var i=e.__iterator(n,a);var s=[];var u=0;return new Y((function(){while(i){var e=i.next();if(e.done!==false){i=s.pop();continue}var l=e.value;if(n===I){l=l[1]}if((!t||s.length<t)&&o(l)){s.push(i);i=l.__iterator(n,a)}else{return r?e:B(n,u++,l,e)}}return H()}))};return n}function ur(e,t,r){var n=yr(e);return e.toSeq().map((function(a,i){return n(t.call(r,a,i,e))})).flatten(true)}function lr(e,t){var r=gr(e);r.size=e.size&&e.size*2-1;r.__iterateUncached=function(r,n){var a=this;var i=0;e.__iterate((function(e,n){return(!i||r(t,i++,a)!==false)&&r(e,i++,a)!==false}),n);return i};r.__iteratorUncached=function(r,n){var a=e.__iterator(N,n);var i=0;var o;return new Y((function(){if(!o||i%2){o=a.next();if(o.done){return o}}return i%2?B(r,i++,t):B(r,i++,o.value,o)}))};return r}function cr(e,t,r){if(!t){t=Ar}var n=s(e);var a=0;var i=e.toSeq().map((function(t,n){return[n,t,a++,r?r(t,n,e):t]})).toArray();i.sort((function(e,r){return t(e[3],r[3])||e[2]-r[2]})).forEach(n?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]});return n?G(i):u(e)?Q(i):J(i)}function fr(e,t,r){if(!t){t=Ar}if(r){var n=e.toSeq().map((function(t,n){return[t,r(t,n,e)]})).reduce((function(e,r){return dr(t,e[1],r[1])?r:e}));return n&&n[0]}else{return e.reduce((function(e,r){return dr(t,e,r)?r:e}))}}function dr(e,t,r){var n=e(r,t);return n===0&&r!==t&&(r===undefined||r===null||r!==r)||n>0}function pr(e,t,n){var a=gr(e);a.size=new X(n).map((function(e){return e.size})).min();a.__iterate=function(e,t){var r=this.__iterator(N,t);var n;var a=0;while(!(n=r.next()).done){if(e(n.value,a++,this)===false){break}}return a};a.__iteratorUncached=function(e,a){var i=n.map((function(e){return e=r(e),q(a?e.reverse():e)}));var o=0;var s=false;return new Y((function(){var r;if(!s){r=i.map((function(e){return e.next()}));s=r.some((function(e){return e.done}))}if(s){return H()}return B(e,o++,t.apply(null,r.map((function(e){return e.value}))))}))};return a}function hr(e,t){return re(e)?t:e.constructor(t)}function vr(e){if(e!==Object(e)){throw new TypeError("Expected [K, V] tuple: "+e)}}function mr(e){ze(e.size);return S(e)}function yr(e){return s(e)?n:u(e)?a:i}function gr(e){return Object.create((s(e)?G:u(e)?Q:J).prototype)}function br(){if(this._iter.cacheResult){this._iter.cacheResult();this.size=this._iter.size;return this}else{return K.prototype.cacheResult.call(this)}}function Ar(e,t){return e>t?1:e<t?-1:0}function _r(e){var t=q(e);if(!t){if(!W(e)){throw new TypeError("Expected iterable or array-like: "+e)}t=q(r(e))}return t}t(wr,Ee);function wr(e,t){var r;var n=function i(o){if(o instanceof n){return o}if(!(this instanceof n)){return new n(o)}if(!r){r=true;var s=Object.keys(e);Sr(a,s);a.size=s.length;a._name=t;a._keys=s;a._defaultValues=e}this._map=qe(o)};var a=n.prototype=Object.create(Er);a.constructor=n;return n}wr.prototype.toString=function(){return this.__toString(kr(this)+" {","}")};wr.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)};wr.prototype.get=function(e,t){if(!this.has(e)){return t}var r=this._defaultValues[e];return this._map?this._map.get(e,r):r};wr.prototype.clear=function(){if(this.__ownerID){this._map&&this._map.clear();return this}var e=this.constructor;return e._empty||(e._empty=xr(this,at()))};wr.prototype.set=function(e,t){if(!this.has(e)){throw new Error('Cannot set unknown key "'+e+'" on '+kr(this))}var r=this._map&&this._map.set(e,t);if(this.__ownerID||r===this._map){return this}return xr(this,r)};wr.prototype.remove=function(e){if(!this.has(e)){return this}var t=this._map&&this._map.remove(e);if(this.__ownerID||t===this._map){return this}return xr(this,t)};wr.prototype.wasAltered=function(){return this._map.wasAltered()};wr.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map((function(e,t){return r.get(t)})).__iterator(e,t)};wr.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map((function(e,t){return r.get(t)})).__iterate(e,t)};wr.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}var t=this._map&&this._map.__ensureOwner(e);if(!e){this.__ownerID=e;this._map=t;return this}return xr(this,t,e)};var Er=wr.prototype;Er[v]=Er.remove;Er.deleteIn=Er.removeIn=Ke.removeIn;Er.merge=Ke.merge;Er.mergeWith=Ke.mergeWith;Er.mergeIn=Ke.mergeIn;Er.mergeDeep=Ke.mergeDeep;Er.mergeDeepWith=Ke.mergeDeepWith;Er.mergeDeepIn=Ke.mergeDeepIn;Er.setIn=Ke.setIn;Er.update=Ke.update;Er.updateIn=Ke.updateIn;Er.withMutations=Ke.withMutations;Er.asMutable=Ke.asMutable;Er.asImmutable=Ke.asImmutable;function xr(e,t,r){var n=Object.create(Object.getPrototypeOf(e));n._map=t;n.__ownerID=r;return n}function kr(e){return e._name||e.constructor.name||"Record"}function Sr(e,t){try{t.forEach(Or.bind(undefined,e))}catch(e){}}function Or(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){be(this.__ownerID,"Cannot set on an immutable record.");this.set(t,e)}})}t(Mr,ke);function Mr(e){return e===null||e===undefined?Ir():Dr(e)&&!c(e)?e:Ir().withMutations((function(t){var r=i(e);ze(r.size);r.forEach((function(e){return t.add(e)}))}))}Mr.of=function(){return this(arguments)};Mr.fromKeys=function(e){return this(n(e).keySeq())};Mr.prototype.toString=function(){return this.__toString("Set {","}")};Mr.prototype.has=function(e){return this._map.has(e)};Mr.prototype.add=function(e){return Cr(this,this._map.set(e,true))};Mr.prototype.remove=function(e){return Cr(this,this._map.remove(e))};Mr.prototype.clear=function(){return Cr(this,this._map.clear())};Mr.prototype.union=function(){var t=e.call(arguments,0);t=t.filter((function(e){return e.size!==0}));if(t.length===0){return this}if(this.size===0&&!this.__ownerID&&t.length===1){return this.constructor(t[0])}return this.withMutations((function(e){for(var r=0;r<t.length;r++){i(t[r]).forEach((function(t){return e.add(t)}))}}))};Mr.prototype.intersect=function(){var t=e.call(arguments,0);if(t.length===0){return this}t=t.map((function(e){return i(e)}));var r=this;return this.withMutations((function(e){r.forEach((function(r){if(!t.every((function(e){return e.includes(r)}))){e.remove(r)}}))}))};Mr.prototype.subtract=function(){var t=e.call(arguments,0);if(t.length===0){return this}t=t.map((function(e){return i(e)}));var r=this;return this.withMutations((function(e){r.forEach((function(r){if(t.some((function(e){return e.includes(r)}))){e.remove(r)}}))}))};Mr.prototype.merge=function(){return this.union.apply(this,arguments)};Mr.prototype.mergeWith=function(t){var r=e.call(arguments,1);return this.union.apply(this,r)};Mr.prototype.sort=function(e){return Pr(cr(this,e))};Mr.prototype.sortBy=function(e,t){return Pr(cr(this,t,e))};Mr.prototype.wasAltered=function(){return this._map.wasAltered()};Mr.prototype.__iterate=function(e,t){var r=this;return this._map.__iterate((function(t,n){return e(n,n,r)}),t)};Mr.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)};Mr.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}var t=this._map.__ensureOwner(e);if(!e){this.__ownerID=e;this._map=t;return this}return this.__make(t,e)};function Dr(e){return!!(e&&e[Tr])}Mr.isSet=Dr;var Tr="@@__IMMUTABLE_SET__@@";var Lr=Mr.prototype;Lr[Tr]=true;Lr[v]=Lr.remove;Lr.mergeDeep=Lr.merge;Lr.mergeDeepWith=Lr.mergeWith;Lr.withMutations=Ke.withMutations;Lr.asMutable=Ke.asMutable;Lr.asImmutable=Ke.asImmutable;Lr.__empty=Ir;Lr.__make=jr;function Cr(e,t){if(e.__ownerID){e.size=t.size;e._map=t;return e}return t===e._map?e:t.size===0?e.__empty():e.__make(t)}function jr(e,t){var r=Object.create(Lr);r.size=e?e.size:0;r._map=e;r.__ownerID=t;return r}var Nr;function Ir(){return Nr||(Nr=jr(at()))}t(Pr,Mr);function Pr(e){return e===null||e===undefined?Hr():Rr(e)?e:Hr().withMutations((function(t){var r=i(e);ze(r.size);r.forEach((function(e){return t.add(e)}))}))}Pr.of=function(){return this(arguments)};Pr.fromKeys=function(e){return this(n(e).keySeq())};Pr.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Rr(e){return Dr(e)&&c(e)}Pr.isOrderedSet=Rr;var Fr=Pr.prototype;Fr[h]=true;Fr.__empty=Hr;Fr.__make=Yr;function Yr(e,t){var r=Object.create(Fr);r.size=e?e.size:0;r._map=e;r.__ownerID=t;return r}var Br;function Hr(){return Br||(Br=Yr(Vt()))}t(Ur,xe);function Ur(e){return e===null||e===undefined?Gr():zr(e)?e:Gr().unshiftAll(e)}Ur.of=function(){return this(arguments)};Ur.prototype.toString=function(){return this.__toString("Stack [","]")};Ur.prototype.get=function(e,t){var r=this._head;e=O(this,e);while(r&&e--){r=r.next}return r?r.value:t};Ur.prototype.peek=function(){return this._head&&this._head.value};Ur.prototype.push=function(){if(arguments.length===0){return this}var e=this.size+arguments.length;var t=this._head;for(var r=arguments.length-1;r>=0;r--){t={value:arguments[r],next:t}}if(this.__ownerID){this.size=e;this._head=t;this.__hash=undefined;this.__altered=true;return this}return Wr(e,t)};Ur.prototype.pushAll=function(e){e=a(e);if(e.size===0){return this}ze(e.size);var t=this.size;var r=this._head;e.reverse().forEach((function(e){t++;r={value:e,next:r}}));if(this.__ownerID){this.size=t;this._head=r;this.__hash=undefined;this.__altered=true;return this}return Wr(t,r)};Ur.prototype.pop=function(){return this.slice(1)};Ur.prototype.unshift=function(){return this.push.apply(this,arguments)};Ur.prototype.unshiftAll=function(e){return this.pushAll(e)};Ur.prototype.shift=function(){return this.pop.apply(this,arguments)};Ur.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._head=undefined;this.__hash=undefined;this.__altered=true;return this}return Gr()};Ur.prototype.slice=function(e,t){if(D(e,t,this.size)){return this}var r=T(e,this.size);var n=L(t,this.size);if(n!==this.size){return xe.prototype.slice.call(this,e,t)}var a=this.size-r;var i=this._head;while(r--){i=i.next}if(this.__ownerID){this.size=a;this._head=i;this.__hash=undefined;this.__altered=true;return this}return Wr(a,i)};Ur.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;this.__altered=false;return this}return Wr(this.size,this._head,e,this.__hash)};Ur.prototype.__iterate=function(e,t){if(t){return this.reverse().__iterate(e)}var r=0;var n=this._head;while(n){if(e(n.value,r++,this)===false){break}n=n.next}return r};Ur.prototype.__iterator=function(e,t){if(t){return this.reverse().__iterator(e)}var r=0;var n=this._head;return new Y((function(){if(n){var t=n.value;n=n.next;return B(e,r++,t)}return H()}))};function zr(e){return!!(e&&e[qr])}Ur.isStack=zr;var qr="@@__IMMUTABLE_STACK__@@";var Vr=Ur.prototype;Vr[qr]=true;Vr.withMutations=Ke.withMutations;Vr.asMutable=Ke.asMutable;Vr.asImmutable=Ke.asImmutable;Vr.wasAltered=Ke.wasAltered;function Wr(e,t,r,n){var a=Object.create(Vr);a.size=e;a._head=t;a.__ownerID=r;a.__hash=n;a.__altered=false;return a}var Kr;function Gr(){return Kr||(Kr=Wr(0))}function Qr(e,t){var r=function(r){e.prototype[r]=t[r]};Object.keys(t).forEach(r);Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r);return e}r.Iterator=Y;Qr(r,{toArray:function(){ze(this.size);var e=new Array(this.size||0);this.valueSeq().__iterate((function(t,r){e[r]=t}));return e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&typeof e.toJS==="function"?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&typeof e.toJSON==="function"?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Kt(this,true)},toMap:function(){return qe(this.toKeyedSeq())},toObject:function(){ze(this.size);var e={};this.__iterate((function(t,r){e[r]=t}));return e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Pr(s(this)?this.valueSeq():this)},toSet:function(){return Mr(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Qt(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ur(s(this)?this.valueSeq():this)},toList:function(){return xt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){if(this.size===0){return e+t}return e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return hr(this,or(this,t))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){ze(this.size);var r=true;this.__iterate((function(n,a,i){if(!e.call(t,n,a,i)){r=false;return false}}));return r},filter:function(e,t){return hr(this,er(this,e,t,true))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},findEntry:function(e,t){var r;this.__iterate((function(n,a,i){if(e.call(t,n,a,i)){r=[a,n];return false}}));return r},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){ze(this.size);return this.__iterate(t?e.bind(t):e)},join:function(e){ze(this.size);e=e!==undefined?""+e:",";var t="";var r=true;this.__iterate((function(n){r?r=false:t+=e;t+=n!==null&&n!==undefined?n.toString():""}));return t},keys:function(){return this.__iterator(j)},map:function(e,t){return hr(this,Xt(this,e,t))},reduce:function(e,t,r){ze(this.size);var n;var a;if(arguments.length<2){a=true}else{n=t}this.__iterate((function(t,i,o){if(a){a=false;n=t}else{n=e.call(r,n,t,i,o)}}));return n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return hr(this,$t(this,true))},slice:function(e,t){return hr(this,nr(this,e,t,true))},some:function(e,t){return!this.every(en(e),t)},sort:function(e){return hr(this,cr(this,e))},values:function(){return this.__iterator(N)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==undefined?this.size===0:!this.some((function(){return true}))},count:function(e,t){return S(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tr(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache){return new X(e._cache)}var t=e.toSeq().map($r).toIndexedSeq();t.fromEntrySeq=function(){return e.toSeq()};return t},filterNot:function(e,t){return this.filter(en(e),t)},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},first:function(){return this.find(M)},flatMap:function(e,t){return hr(this,ur(this,e,t))},flatten:function(e){return hr(this,sr(this,e,true))},fromEntrySeq:function(){return new Jt(this)},get:function(e,t){return this.find((function(t,r){return ve(r,e)}),undefined,t)},getIn:function(e,t){var r=this;var n=_r(e);var a;while(!(a=n.next()).done){var i=a.value;r=r&&r.get?r.get(i,b):b;if(r===b){return t}}return r},groupBy:function(e,t){return rr(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){e=typeof e.includes==="function"?e:r(e);return this.every((function(t){return e.includes(t)}))},isSuperset:function(e){e=typeof e.isSubset==="function"?e:r(e);return e.isSubset(this)},keySeq:function(){return this.toSeq().map(Xr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fr(this,e)},maxBy:function(e,t){return fr(this,t,e)},min:function(e){return fr(this,e?tn(e):an)},minBy:function(e,t){return fr(this,t?tn(t):an,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return hr(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return hr(this,ir(this,e,t,true))},skipUntil:function(e,t){return this.skipWhile(en(e),t)},sortBy:function(e,t){return hr(this,cr(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return hr(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return hr(this,ar(this,e,t))},takeUntil:function(e,t){return this.takeWhile(en(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var Jr=r.prototype;Jr[f]=true;Jr[F]=Jr.values;Jr.__toJS=Jr.toArray;Jr.__toStringMapper=rn;Jr.inspect=Jr.toSource=function(){return this.toString()};Jr.chain=Jr.flatMap;Jr.contains=Jr.includes;(function(){try{Object.defineProperty(Jr,"length",{get:function(){if(!r.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(e.indexOf("_wrapObject")===-1){console&&console.warn&&console.warn("iterable.length has been deprecated, "+"use iterable.size or iterable.count(). "+"This warning will become a silent error in a future version. "+e);return this.size}}}})}catch(e){}})();Qr(n,{flip:function(){return hr(this,Zt(this))},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var r=this;var n=0;return hr(this,this.toSeq().map((function(a,i){return e.call(t,[i,a],n++,r)})).fromEntrySeq())},mapKeys:function(e,t){var r=this;return hr(this,this.toSeq().flip().map((function(n,a){return e.call(t,n,a,r)})).flip())}});var Zr=n.prototype;Zr[d]=true;Zr[F]=Jr.entries;Zr.__toJS=Jr.toObject;Zr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rn(e)};Qr(a,{toKeyedSeq:function(){return new Kt(this,false)},filter:function(e,t){return hr(this,er(this,e,t,false))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return t===undefined?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return t===undefined?-1:t},reverse:function(){return hr(this,$t(this,false))},slice:function(e,t){return hr(this,nr(this,e,t,false))},splice:function(e,t){var r=arguments.length;t=Math.max(t|0,0);if(r===0||r===2&&!t){return this}e=T(e,e<0?this.count():this.size);var n=this.slice(0,e);return hr(this,r===1?n:n.concat(k(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.toKeyedSeq().findLastKey(e,t);return r===undefined?-1:r},first:function(){return this.get(0)},flatten:function(e){return hr(this,sr(this,e,false))},get:function(e,t){e=O(this,e);return e<0||(this.size===Infinity||this.size!==undefined&&e>this.size)?t:this.find((function(t,r){return r===e}),undefined,t)},has:function(e){e=O(this,e);return e>=0&&(this.size!==undefined?this.size===Infinity||e<this.size:this.indexOf(e)!==-1)},interpose:function(e){return hr(this,lr(this,e))},interleave:function(){var e=[this].concat(k(arguments));var t=pr(this.toSeq(),Q.of,e);var r=t.flatten(true);if(t.size){r.size=t.size*e.length}return hr(this,r)},last:function(){return this.get(-1)},skipWhile:function(e,t){return hr(this,ir(this,e,t,false))},zip:function(){var e=[this].concat(k(arguments));return hr(this,pr(this,nn,e))},zipWith:function(e){var t=k(arguments);t[0]=this;return hr(this,pr(this,e,t))}});a.prototype[p]=true;a.prototype[h]=true;Qr(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});i.prototype.has=Jr.includes;Qr(G,n.prototype);Qr(Q,a.prototype);Qr(J,i.prototype);Qr(Ee,n.prototype);Qr(xe,a.prototype);Qr(ke,i.prototype);function Xr(e,t){return t}function $r(e,t){return[t,e]}function en(e){return function(){return!e.apply(this,arguments)}}function tn(e){return function(){return-e.apply(this,arguments)}}function rn(e){return typeof e==="string"?JSON.stringify(e):e}function nn(){return k(arguments)}function an(e,t){return e<t?1:e>t?-1:0}function on(e){if(e.size===Infinity){return 0}var t=c(e);var r=s(e);var n=t?1:0;var a=e.__iterate(r?t?function(e,t){n=31*n+un(Me(e),Me(t))|0}:function(e,t){n=n+un(Me(e),Me(t))|0}:t?function(e){n=31*n+Me(e)|0}:function(e){n=n+Me(e)|0});return sn(a,n)}function sn(e,t){t=Se(t,3432918353);t=Se(t<<15|t>>>-15,461845907);t=Se(t<<13|t>>>-13,5);t=(t+3864292196|0)^e;t=Se(t^t>>>16,2246822507);t=Se(t^t>>>13,3266489909);t=Oe(t^t>>>16);return t}function un(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var ln={Iterable:r,Seq:K,Collection:we,Map:qe,OrderedMap:Ht,List:xt,Stack:Ur,Set:Mr,OrderedSet:Pr,Record:wr,Range:Ae,Repeat:ye,is:ve,fromJS:fe};return ln}))},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){!function(t,r){true?e.exports=r():undefined}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=9)}([function(e,t,r){"use strict";e.exports=r(12)},function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};Object.defineProperty(t,"__esModule",{value:!0});const a=r(0);let i=(()=>{class e extends a.Component{constructor(e){super(e)}render(){const e=this.props,{content:t,className:r,type:i,disabled:o,mouseDown:s,callback:u}=e,l=n(e,["content","className","type","disabled","mouseDown","callback"]);let c=t||"Submit",f={type:i||"submit",className:"btn"+(r?" "+r:""),disabled:o||null},d=s?{onMouseDown:u}:{onClick:u};return a.createElement("button",Object.assign(Object.assign(Object.assign({},f),d),l),c)}}return e.defaultProps={mouseDown:!1},e})();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),a=r(8);let i=(()=>{class e extends n.Component{constructor(e){super(e),this.renderHeader=this.renderHeader.bind(this),this.toggle=this.toggle.bind(this),this.overrideEnter=this.overrideEnter.bind(this);let t=this.props.openByDefault||!this.props.collapsible?"":"collapse";this.state={display:t}}toggle(e){e.preventDefault();let t="collapse"===this.state.display?"":"collapse";this.setState({display:t})}overrideEnter(e){this.props.onEnter&&this.props.onEnter()}renderHeader(){let e=n.createElement("span",{key:"title",className:"panel-title"},this.props.headerText),t="collapse"===this.state.display?"down-icon":"up-icon",r=this.props.collapsible?n.createElement(a.GenericWedgeIcon,{key:"icon",className:t+" icon"}):null,i={className:"panel-heading",onClick:this.props.collapsible?this.toggle:null,type:this.props.collapsible?"button":null};return this.props.collapsible&&(i=Object.assign(i,{"aria-expanded":""===this.state.display,"aria-controls":this.props.id+"-panel"})),n.createElement(this.props.collapsible?"button":"div",i,[e,r])}render(){const{style:e,content:t,collapsible:r,id:a}=this.props,i=r?"":"static-panel",o=r?""!==this.state.display:null;return n.createElement("div",{className:`panel panel-${e} ${i}`},this.renderHeader(),"string"==typeof t?n.createElement("section",{id:a+"-panel",onSubmit:this.overrideEnter,className:"panel-body "+this.state.display,dangerouslySetInnerHTML:{__html:t},"aria-hidden":o}):n.createElement("section",{id:a+"-panel",onSubmit:this.overrideEnter,className:"panel-body "+this.state.display,"aria-hidden":o},t))}}return e.defaultProps={style:"default",collapsible:!0,openByDefault:!1},e})();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),a=r(8);let i=(()=>{class e extends n.Component{render(){const{imgSrc:e,alt:t,text:i,nav:o,loggedIn:s,logOut:u}=this.props;let l=e?r(14)(""+e):"";return n.createElement("header",{className:"reusable-header clearfix"},e&&n.createElement("span",null,n.createElement("img",{className:"header-brand img-rounded",alt:t||"",src:l})),n.createElement("span",{className:"header-title"},i),o&&n.createElement("nav",{role:"navigation"},o),s&&n.createElement("a",{className:"btn header-btn big inverted",href:u},n.createElement("span",null,"Log Out ",n.createElement(a.LogoutIcon,null))))}}return e.defaultProps={loggedIn:!1},e})();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);class a extends n.Component{render(){return n.createElement("fieldset",{className:"form-group well"},n.createElement("legend",null,this.props.legend),this.props.elements,this.props.badgeText&&n.createElement("span",{className:"badge badge-"+(this.props.badgeClass||"default")},this.props.badgeText))}}t.default=a},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=r(0),i=r(1);class o extends a.Component{constructor(e){super(e),this.messageRef=a.createRef(),this.formRef=a.createRef(),this.submit=this.submit.bind(this),this.message=this.message.bind(this)}componentDidUpdate(e){if(this.messageRef.current&&this.messageRef.current.focus){["errorText","successText","warningText"].some(t=>e[t]!==this.props[t])&&this.messageRef.current.focus()}}submit(e){return n(this,void 0,void 0,(function*(){e.preventDefault();let t=this.formRef.current;const r=new window.FormData(t);yield this.props.onSubmit(r)}))}message(e,t){let r={className:"alert alert-"+t,role:"alert",ref:this.messageRef,tabIndex:-1};return a.createElement(e.type||"p",Object.assign(Object.assign({},r),e.props),e)}render(){let e="clearfix"+(this.props.className?" "+this.props.className:"");return a.createElement("form",{ref:this.formRef,className:e},this.props.errorText&&this.message(this.props.errorText,"danger"),this.props.successText&&!this.props.errorText&&this.message(this.props.successText,"success"),this.props.infoText&&this.message(this.props.infoText,"info"),this.props.loadingText&&this.message(this.props.loadingText,"loading"),this.props.warningText&&this.message(this.props.warningText,"warning"),this.props.title&&a.createElement("label",{className:"form-title"},this.props.title),this.props.hiddenName&&a.createElement("input",{type:"hidden",name:this.props.hiddenName,value:this.props.hiddenValue}),this.props.content,a.createElement("br",null),!this.props.withoutButton&&a.createElement(i.default,{callback:this.submit,content:this.props.buttonContent&&this.props.buttonContent,className:this.props.buttonClass&&this.props.buttonClass,disabled:this.props.disableButton}))}}t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);let a=(()=>{class e extends n.Component{constructor(e){super(e)}render(){return n.createElement("div",{className:"form-group "+this.props.className},n.createElement("label",{htmlFor:this.props.id},this.props.label),n.createElement("input",{onChange:this.props.callback,ref:this.props.ref,className:"form-control",type:this.props.type,name:this.props.name,id:this.props.id,defaultValue:this.props.value,readOnly:!1,defaultChecked:this.props.checked,placeholder:this.props.placeholder}))}}return e.defaultProps={className:"",type:"text",callback:null},e})();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);class a extends n.Component{constructor(e){super(e),this.buttonRef=n.createRef(),this.select=this.select.bind(this),this.makeTabs=this.makeTabs.bind(this),this.state={tab:0}}componentDidUpdate(){this.buttonRef.current.focus()}select(e){let t=parseInt(e.currentTarget.id.split("button-")[1],10);if(e.keyCode){let r,n=Object.keys(this.props.items);if(39===e.keyCode)r=t<n.length-1?t+1:0;else{if(37!==e.keyCode)return;r=0===t?n.length-1:t-1}this.setState({tab:r})}else this.setState({tab:t})}makeTabs(){let e=[],t=[];return Object.entries(this.props.items).map((r,a)=>{let[i,o]=r,s=a===this.state.tab,u=`${a.toString()}-${this.props.uniqueId.split(" ").join("-")}`,l=n.createElement("li",{key:i,role:"presentation",className:"tab-nav "+(s?"current":"")},n.createElement("button",{"aria-controls":"content-"+u,"aria-selected":s,className:"btn bottom-align left-align bottom-squared",id:"button-"+u,onClick:this.select,onKeyDown:this.select,role:"tab",tabIndex:s?0:-1,ref:s?this.buttonRef:null},i));e.push(l);let c=n.createElement("section",{"aria-labelledby":"button-"+u,className:"tab-content "+(s?"":"hidden"),id:"content-"+u,key:i,role:"tabpanel",tabIndex:0},o);t.push(c)}),[e,t]}render(){let[e,t]=this.makeTabs();return n.createElement("section",{className:"reusable-tabs"},n.createElement("ul",{role:"tablist",className:"tab-navs"},e),t)}}t.default=a},function(e,t,r){var n;e.exports=(n=r(0),function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t,r){e.exports=r(3)()},function(e,t){e.exports=n},function(e,t,r){e.exports=r(7)},function(e,t,r){"use strict";var n=r(4),a=r(5),i=r(6);e.exports=function(){function e(e,t,r,n,o,s){s!==i&&a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){"use strict";function n(e){return function(){return e}}var a=function(){};a.thatReturns=n,a.thatReturnsFalse=n(!1),a.thatReturnsTrue=n(!0),a.thatReturnsNull=n(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,r){"use strict";e.exports=function(e,t,r,n,a,i,o,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,a,i,o,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";r.r(t),r.d(t,"LionLogoIcon",(function(){return h})),r.d(t,"LionLogoWithText",(function(){return m})),r.d(t,"LionLogoWithTextInverse",(function(){return g})),r.d(t,"NYPLTextLogo",(function(){return A})),r.d(t,"CarouselCircleIcon",(function(){return w})),r.d(t,"BookIcon",(function(){return x})),r.d(t,"DotsIcon",(function(){return S})),r.d(t,"XIcon",(function(){return M})),r.d(t,"XCloseIcon",(function(){return T})),r.d(t,"FilterIcon",(function(){return C})),r.d(t,"FilterCancelIcon",(function(){return N})),r.d(t,"ListIcon",(function(){return P})),r.d(t,"GridIcon",(function(){return F})),r.d(t,"ApplyIcon",(function(){return B})),r.d(t,"DownLoadIcon",(function(){return U})),r.d(t,"ResetIcon",(function(){return q})),r.d(t,"CircleDashIcon",(function(){return W})),r.d(t,"AudioHeadphoneIcon",(function(){return G})),r.d(t,"MediaBluRayIcon",(function(){return J})),r.d(t,"AudioDiscIcon",(function(){return X})),r.d(t,"DvdDiscIcon",(function(){return ee})),r.d(t,"LargePrintIcon",(function(){return re})),r.d(t,"EReaderIcon",(function(){return ae})),r.d(t,"TagIcon",(function(){return oe})),r.d(t,"LocatorIcon",(function(){return ue})),r.d(t,"MenuIcon",(function(){return ce})),r.d(t,"LoginIcon",(function(){return de})),r.d(t,"LoginIconSolid",(function(){return he})),r.d(t,"LogoutIcon",(function(){return me})),r.d(t,"SearchIcon",(function(){return ge})),r.d(t,"CheckSoloIcon",(function(){return Ae})),r.d(t,"DivideLineIcon",(function(){return we})),r.d(t,"DownWedgeIcon",(function(){return xe})),r.d(t,"RightWedgeIcon",(function(){return Se})),r.d(t,"LeftWedgeIcon",(function(){return Me})),r.d(t,"RadioInactiveIcon",(function(){return Te})),r.d(t,"RadioActiveIcon",(function(){return Ce})),r.d(t,"SmallDotClosedIcon",(function(){return Ne})),r.d(t,"SmallDotOpenIcon",(function(){return Pe})),r.d(t,"BuildingIcon",(function(){return Fe})),r.d(t,"GenericWedgeIcon",(function(){return Be})),r.d(t,"LeftArrowIcon",(function(){return Ue})),r.d(t,"RightArrowIcon",(function(){return qe})),r.d(t,"FaceBookIcon",(function(){return We})),r.d(t,"InstagramIcon",(function(){return et})),r.d(t,"TwitterIcon",(function(){return Ge})),r.d(t,"TumblrIcon",(function(){return Je})),r.d(t,"YoutubeIcon",(function(){return Xe})),r.d(t,"EnvelopeIcon",(function(){return rt})),r.d(t,"LibraryCardIcon",(function(){return at})),r.d(t,"PencilIcon",(function(){return ot})),r.d(t,"ShoppingBagIcon",(function(){return ut}));var n=r(1),a=r.n(n),i=r(0),o=r.n(i);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(i,e);var t,r,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}(i);function i(){return u(this,i),n.apply(this,arguments)}return t=i,(r=[{key:"getViewBox",value:function(){return"0 0 ".concat(this.props.width," ").concat(this.props.height)}},{key:"renderSvgIcon",value:function(){return a.a.createElement("svg",{className:"".concat(this.props.className," svgIcon"),width:this.props.width,height:this.props.height,viewBox:this.getViewBox(),style:this.props.style,"aria-hidden":this.props.ariaHidden,focusable:this.props.focusable},a.a.createElement("title",null,this.props.title),a.a.createElement("ellipse",{cx:"12.503",cy:"12.485",rx:"12.251",ry:"12.24",fill:this.props.fill}),a.a.createElement("path",{d:"M13.048,8.85a4.934,4.934,0,0,1,.879.322,0.893,0.893,0,0,0,.475.263,0.771,0.771,0,0,0,.352-0.609,1.481,1.481,0,0,0-.076-0.837,1.18,1.18,0,0,0-1.119-.351,2.931,2.931,0,0,0-.773.123c-0.27.082-.644,0.263-0.486,0.638A1.2,1.2,0,0,0,13.048,8.85Z"}),a.a.createElement("path",{d:"M12.444,0A12.5,12.5,0,1,0,25,12.5,12.468,12.468,0,0,0,12.444,0ZM5.15,21.271a1.841,1.841,0,0,1-.457-0.562c-1.06-1.7-1.658-7.7-.287-9.746,0.434-.714.9-0.386,0.744,0.17a4.505,4.505,0,0,0,.5,3.278c0.949,2,3.873,4.771,4.646,5.777a7.852,7.852,0,0,1,1.764,3.319c-0.006.258-.059,0.427-0.516,0.386A11.339,11.339,0,0,1,5.15,21.271Zm18.344-5.7c-0.094.293-.205,0.661-0.445,0.492a10.744,10.744,0,0,0-2.39-1.317c-0.053-.012-0.047-0.082-0.029-0.123a1.67,1.67,0,0,0,.129-0.468,1.228,1.228,0,0,1,.228-0.41,4.186,4.186,0,0,0,.434-1.5,3.646,3.646,0,0,0-.07-1.188A2.7,2.7,0,0,1,21.2,10.53c0-.17.082-0.345,0.1-0.544a1.614,1.614,0,0,0-1.072-1.235c-0.9-.416-1.851-0.79-2.818-1.305a11.027,11.027,0,0,1-1.424-1.258,10.435,10.435,0,0,0-2.437-1.054,0.228,0.228,0,0,1-.193-0.193,5.677,5.677,0,0,0-2.127-3.3c-0.4-.31.047-0.486,0.6-0.515A11.389,11.389,0,0,1,23.494,15.57Zm-3.527-3.834c-0.006-.047-0.023-0.193-0.023-0.222a0.6,0.6,0,0,1,.24-0.246,2.091,2.091,0,0,1,.334-0.234c0.029-.018.053,0.023,0.059,0.035a3.181,3.181,0,0,1-.029,2.254c-0.029.059-.076,0.082-0.094,0.041a1.454,1.454,0,0,0-.492-0.615,0.115,0.115,0,0,1-.035-0.1A2.749,2.749,0,0,0,19.967,11.736ZM9.491,6.4a3.811,3.811,0,0,1,3.029-.433,13.8,13.8,0,0,1,2.15.784c0.685,0.316,1.172.9,1.81,1.247,0.8,0.445,1.91.656,2.76,1.071a0.8,0.8,0,0,1,.5.451,3.059,3.059,0,0,1-1.623-.023,0.524,0.524,0,0,0-.615.094,0.906,0.906,0,0,0,.059.749,0.979,0.979,0,0,0,.469.509c0.275,0.129.656,0.135,0.908,0.281a1.227,1.227,0,0,1,.182,1.6,2.206,2.206,0,0,1-1.746.4,5.289,5.289,0,0,0-2,.105,2.328,2.328,0,0,0-1.043,1,0.12,0.12,0,0,1-.17.023c-1.775-1.065-4.019-1.616-5.214-3.307a3.638,3.638,0,0,1-.58-1.528A3.018,3.018,0,0,1,9.491,6.4ZM6.72,3.214c-0.352-.041-0.357-0.3-0.205-0.4a8.284,8.284,0,0,1,1.623-.837A0.8,0.8,0,0,1,8.589,1.9a4.956,4.956,0,0,1,2.086.972c1.043,0.743,1.974,2.16,1.353,2.043a5.866,5.866,0,0,0-.68-0.1c-0.469-.041-0.779.006-1-0.018a0.434,0.434,0,0,1-.234-0.123A5.867,5.867,0,0,0,6.72,3.214Zm9.292,11.473a0.675,0.675,0,0,1,.3-0.41,3.043,3.043,0,0,1,1.242-.222,3.994,3.994,0,0,0,1.26-.2,0.773,0.773,0,0,1,.691-0.217,0.5,0.5,0,0,1,.264.322,1.25,1.25,0,0,1,.07.486,13.41,13.41,0,0,1-.58,1.352,0.451,0.451,0,0,1-.07.246,2.132,2.132,0,0,1-1.652.217,2.074,2.074,0,0,1-.592-0.1,1.145,1.145,0,0,1-.293-0.24,6.619,6.619,0,0,1-.51-0.544,0.851,0.851,0,0,1-.228-0.293A1.2,1.2,0,0,1,16.012,14.686ZM4.09,4.812a0.521,0.521,0,0,1,.27-0.17,6.908,6.908,0,0,1,4.365.369C8.982,5.128,9.1,5.286,8.929,5.4a8.935,8.935,0,0,0-1.236.89,0.562,0.562,0,0,1-.4.082,6.571,6.571,0,0,0-4.1.486C2.883,6.983,2.6,6.808,2.742,6.562A10.008,10.008,0,0,1,4.09,4.812Zm-2.818,5.45a0.49,0.49,0,0,1,.123-0.3,7.869,7.869,0,0,1,4.412-2.54,0.628,0.628,0,0,1,.644.111c0.1,0.24-.1.38-0.34,0.515-4.166,2.488-3.873,6.187-3.914,7.7,0.012,0.62-.434.732-0.545,0.439A10.877,10.877,0,0,1,1.271,10.261Zm5.25,2.909a4.944,4.944,0,0,1,.07-4c0.164-.31.322-0.509,0.533-0.451,0.228,0.064.281,0.293,0.311,0.726,0.228,3.565,2.39,4.771,5.1,6.029a15.622,15.622,0,0,1,6.615,5.368c0.311,0.439.352,0.7,0.006,0.954a11.145,11.145,0,0,1-4.019,1.826c-0.246.059-.5,0.012-0.727-0.55C12.122,17.168,8.279,17.437,6.521,13.17Zm14.19,7.252c-0.352.345-.545,0.076-0.662-0.146a10.28,10.28,0,0,0-1.734-2.745,0.178,0.178,0,0,1,.164-0.3,1.287,1.287,0,0,0,.691-0.111,1.383,1.383,0,0,0,.633-0.9c0.1-.339.1-0.445,0.311-0.462a0.632,0.632,0,0,1,.205.023,2.5,2.5,0,0,1,.732.433,6.868,6.868,0,0,1,1.412,1.539,0.4,0.4,0,0,1-.047.4A11.284,11.284,0,0,1,20.711,20.423Z"}))}},{key:"renderInverseSvgIcon",value:function(){return a.a.createElement("svg",{className:"".concat(this.props.className," svgIcon"),width:this.props.width,height:this.props.height,viewBox:this.getViewBox(),style:this.props.style,"aria-hidden":this.props.ariaHidden},a.a.createElement("title",null,this.props.title),a.a.createElement("path",{d:"M19.87,8.731c-0.93-.457-2.136-0.685-3.011-1.176-0.7-.387-1.226-1.024-1.97-1.37a14.467,14.467,0,0,0-2.349-.858,4.167,4.167,0,0,0-3.307.477,3.358,3.358,0,0,0-1.247,3.32A3.951,3.951,0,0,0,8.619,10.8c1.309,1.854,3.755,2.456,5.691,3.625a0.126,0.126,0,0,0,.178-0.016L14.5,14.4a2.572,2.572,0,0,1,1.137-1.1,5.759,5.759,0,0,1,2.191-.118,2.41,2.41,0,0,0,1.908-.443,1.36,1.36,0,0,0-.2-1.757c-0.276-.159-0.689-0.166-0.992-0.3a1.049,1.049,0,0,1-.51-0.56,1.012,1.012,0,0,1-.062-0.823,0.572,0.572,0,0,1,.675-0.1,3.42,3.42,0,0,0,1.771.028A0.872,0.872,0,0,0,19.87,8.731Zm-4.885-.27a0.84,0.84,0,0,1-.386.664,0.906,0.906,0,0,1-.517-0.291,5.687,5.687,0,0,0-.958-0.353,1.245,1.245,0,0,1-.806-0.5c-0.172-.415.234-0.609,0.53-0.706A3.233,3.233,0,0,1,13.69,7.14a1.265,1.265,0,0,1,1.219.387,1.855,1.855,0,0,1,.076.934h0Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M0.262,10.039A0.554,0.554,0,0,1,.4,9.714,8.544,8.544,0,0,1,5.215,6.926a0.661,0.661,0,0,1,.7.125c0.11,0.263-.11.415-0.372,0.567C1,10.35,1.323,14.4,1.275,16.064c0.014,0.678-.475.8-0.6,0.484A12.07,12.07,0,0,1,.262,10.039Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M3.342,4.062a0.587,0.587,0,0,1,.289-0.187,7.477,7.477,0,0,1,4.761.408c0.282,0.125.413,0.3,0.227,0.422a10.347,10.347,0,0,0-1.35.975,0.642,0.642,0,0,1-.441.09A7.209,7.209,0,0,0,2.356,6.3c-0.344.145-.648-0.055-0.489-0.318A11.264,11.264,0,0,1,3.342,4.062Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M6.214,2.305C5.829,2.264,5.829,1.98,5.987,1.87A9.3,9.3,0,0,1,7.758.956a0.868,0.868,0,0,1,.5-0.083,5.4,5.4,0,0,1,2.28,1.065c1.137,0.816,2.15,2.366,1.474,2.241a5.93,5.93,0,0,0-.744-0.111c-0.517-.048-0.847.007-1.089-0.014a0.443,0.443,0,0,1-.255-0.138A6.36,6.36,0,0,0,6.214,2.305Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M24.52,15.856c-0.1.318-.227,0.726-0.482,0.54a11.846,11.846,0,0,0-2.6-1.446c-0.055-.014-0.048-0.09-0.028-0.131a1.752,1.752,0,0,0,.138-0.512,1.251,1.251,0,0,1,.248-0.45,4.545,4.545,0,0,0,.468-1.646,4.133,4.133,0,0,0-.076-1.307,2.725,2.725,0,0,1-.158-0.574c0-.187.09-0.374,0.11-0.595a1.779,1.779,0,0,0-1.171-1.356c-0.978-.457-2.019-0.872-3.073-1.432a12.154,12.154,0,0,1-1.557-1.383,11.185,11.185,0,0,0-2.659-1.155,0.255,0.255,0,0,1-.214-0.214A6.25,6.25,0,0,0,11.141.569C10.707,0.23,11.2.036,11.8,0.009A12.484,12.484,0,0,1,24.52,15.856Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M20.676,11.65c-0.007-.048-0.028-0.214-0.028-0.249a0.69,0.69,0,0,1,.262-0.27,2.766,2.766,0,0,1,.365-0.256c0.034-.021.055,0.028,0.062,0.042a3.471,3.471,0,0,1-.034,2.469c-0.028.062-.083,0.09-0.1,0.042a1.624,1.624,0,0,0-.537-0.678,0.147,0.147,0,0,1-.041-0.111A2.876,2.876,0,0,0,20.676,11.65Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M16.356,14.888a0.757,0.757,0,0,1,.331-0.45,3.224,3.224,0,0,1,1.357-.242,4.209,4.209,0,0,0,1.371-.228,0.831,0.831,0,0,1,.751-0.235,0.545,0.545,0,0,1,.289.353,1.279,1.279,0,0,1,.076.533,16.052,16.052,0,0,1-.634,1.487,0.478,0.478,0,0,1-.076.27,2.322,2.322,0,0,1-1.805.235,1.945,1.945,0,0,1-.648-0.111,1.289,1.289,0,0,1-.324-0.263c-0.214-.2-0.338-0.353-0.558-0.595a1.078,1.078,0,0,1-.255-0.325A2.709,2.709,0,0,1,16.356,14.888Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M4.5,22.116A1.977,1.977,0,0,1,4,21.494c-1.164-1.861-1.812-8.446-.317-10.68,0.475-.782.978-0.422,0.813,0.18a4.977,4.977,0,0,0,.544,3.6c1.033,2.193,4.23,5.236,5.071,6.336a8.635,8.635,0,0,1,1.922,3.645c-0.007.284-.062,0.463-0.558,0.422A12.362,12.362,0,0,1,4.5,22.116Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M5.994,13.228A5.45,5.45,0,0,1,6.07,8.842c0.179-.339.351-0.56,0.579-0.491,0.248,0.069.3,0.325,0.338,0.8,0.255,3.915,2.611,5.229,5.567,6.613a17.018,17.018,0,0,1,7.22,5.887c0.338,0.477.386,0.768,0.007,1.044a12.064,12.064,0,0,1-4.389,2c-0.269.062-.551,0.014-0.792-0.609C12.105,17.613,7.909,17.9,5.994,13.228Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M21.482,21.182c-0.379.38-.6,0.083-0.723-0.166A11.3,11.3,0,0,0,18.864,18a0.194,0.194,0,0,1,.179-0.332,1.341,1.341,0,0,0,.751-0.125,1.519,1.519,0,0,0,.689-0.982c0.1-.374.11-0.484,0.338-0.512a0.68,0.68,0,0,1,.227.028,2.921,2.921,0,0,1,.8.477,7.656,7.656,0,0,1,1.543,1.688,0.459,0.459,0,0,1-.048.443A12.318,12.318,0,0,1,21.482,21.182Z",transform:"translate(0 0)",fill:this.props.inverseFill}))}},{key:"render",value:function(){return"inverse"!==this.props.type?this.renderSvgIcon():this.renderInverseSvgIcon()}}])&&l(t.prototype,r),i}(a.a.Component);p.propTypes={className:o.a.string,title:o.a.string,type:o.a.string,height:o.a.string,width:o.a.string,fill:o.a.string,inverseFill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,focusable:o.a.bool},p.defaultProps={className:"nyplLionLogo-icon",title:"NYPL Lion Logo",ref:"nyplLionLogoIcon",type:"",height:"50",width:"50",fill:"#FFF",inverseFill:"#000"};var h=p,v=function(e){var t=e.className,r=e.width,n=e.height,i=e.viewBox,o=e.style,s=e.ariaHidden,u=e.title,l=e.fill,c=e.focusable;return a.a.createElement("svg",{className:"".concat(t," svgIcon"),width:r,height:n,viewBox:i,style:o,"aria-hidden":s,focusable:c},a.a.createElement("title",null,u),a.a.createElement("g",{className:"".concat(t,"-text")},a.a.createElement("g",{className:"".concat(t,"-text-ny")},a.a.createElement("path",{d:"M156.36639,26.64949h1.93408l14.21812,20.593v-20.593H174.381V50.5016h-1.82667L158.19274,29.76519V50.5016h-1.82635V26.64949Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M178.14171,41.79879c0-4.83479,2.79354-8.77447,7.34205-8.77447,4.36937,0,6.769,3.50975,6.41048,8.38043h-11.7828v0.394c0.036,3.90364,1.68361,7.48511,5.76653,7.48511a8.46392,8.46392,0,0,0,4.942-1.6117l0.78812,1.46846a9.8233,9.8233,0,0,1-5.80219,1.755C180.577,50.89564,178.14171,46.70533,178.14171,41.79879Zm11.89053-1.934c-0.03568-2.57842-1.36073-5.22886-4.61985-5.22886-2.97264,0-4.69193,2.29208-5.19321,5.22886h9.81306Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M193.899,33.41818h2.00542l4.155,14.21833,4.47647-14.21833h1.82667l4.47679,14.254,4.18995-14.254H216.892L211.73445,50.5016h-1.71894L205.3953,36.10434,200.77545,50.5016h-1.71894Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M233.365,41.51212l-7.98639-14.86264h2.22057l6.76869,12.8929h0.07172l6.76869-12.8929H243.214l-7.915,14.86264V50.5016H233.365V41.51212Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M241.60144,41.97789c0-4.29786,2.29194-8.95357,7.66422-8.95357s7.84333,4.62,7.84333,8.88188c0,4.2975-2.43536,8.98944-7.80764,8.98944C243.92939,50.89564,241.60144,46.27543,241.60144,41.97789Zm13.53778,0c0-3.83227-2.04146-7.342-5.94493-7.342-3.86813,0-5.62308,3.4382-5.62308,7.27032,0,3.868,1.89836,7.3777,5.76582,7.3777C253.24085,49.2839,255.13922,45.84571,255.13922,41.97789Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M260.68578,33.41818h1.86268v2.97264c0.64469-1.25353,2.18453-3.3665,4.5842-3.3665a4.68342,4.68342,0,0,1,1.64757.28648l-0.46591,1.7548a3.56466,3.56466,0,0,0-1.39677-.25066c-2.36363,0-3.90381,2.79371-4.36909,3.79644V50.5016h-1.86268V33.41818Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M272.21742,24.7154h1.86236V50.5016h-1.86236V24.7154Zm2.04111,16.18807,7.48547-7.48529h2.32795l-7.55684,7.48529,7.9507,9.59813h-2.32795Z",transform:"translate(-27.25197 -24.7154)"})),a.a.createElement("g",{className:"".concat(t,"-text-public")},a.a.createElement("path",{d:"M156.40225,62.53555h5.193c5.01407,0,8.16582,2.47119,8.16582,6.733,0,4.29754-2.97264,6.98369-8.38061,6.98369h-3.00833V86.38762h-1.96991V62.53555ZM161.34481,74.569c4.54816,0,6.41052-2.07729,6.41052-5.22886,0-2.97264-1.79067-5.12148-6.33914-5.12148h-3.044V74.569h2.97264Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M172.76837,81.37373V69.30424h1.86271V80.97966c0,2.50723.89514,4.11861,3.5096,4.11861,2.54306,0,4.65554-2.39949,5.22886-3.40219V69.30424h1.862V83.09285a14.41314,14.41314,0,0,0,.32252,3.29478h-1.898a18.73138,18.73138,0,0,1-.2508-2.79354,6.85642,6.85642,0,0,1-5.65845,3.18761C174.16549,86.7817,172.76837,84.45358,172.76837,81.37373Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M189.88744,85.49231V60.60146h1.862V70.88029a6.07292,6.07292,0,0,1,4.47714-1.96974c4.87033,0,7.23432,3.90347,7.23432,8.88171,0,4.79913-3.22344,8.98944-8.45233,8.98944A9.6515,9.6515,0,0,1,189.88744,85.49231ZM201.49116,77.864c0-3.72489-1.43281-7.27032-5.58707-7.27032a6.12767,6.12767,0,0,0-4.15465,1.934V84.48962a7.70565,7.70565,0,0,0,3.33121.68035C199.41366,85.17,201.49116,81.40938,201.49116,77.864Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M207.292,60.60146h1.86271V86.38762H207.292V60.60146Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M214.23944,64.25466a1.41471,1.41471,0,1,1,2.82919,0A1.41558,1.41558,0,1,1,214.23944,64.25466Zm0.46559,5.04958h1.898V86.38762h-1.898V69.30424Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M220.184,77.82795c0-5.40782,3.116-8.91739,7.52112-8.91739a7.42136,7.42136,0,0,1,5.08548,1.79045l-0.96686,1.36094a6.121,6.121,0,0,0-4.1543-1.54c-3.79641,0-5.5157,3.295-5.5157,7.23464,0,3.79623,1.68361,7.41339,5.48,7.41339a6.88911,6.88911,0,0,0,4.36941-1.54l0.82344,1.39677a8.00839,8.00839,0,0,1-5.30059,1.755C222.61969,86.7817,220.184,82.41229,220.184,77.82795Z",transform:"translate(-27.25197 -24.7154)"})),a.a.createElement("g",{className:"".concat(t,"-text-library")},a.a.createElement("path",{d:"M155.86494,122.27422V98.42179h5.08565v19.76915h8.88188v4.08328H155.86494Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M176.00777,102.5764A2.8586,2.8586,0,0,1,173.1065,99.711a2.82221,2.82221,0,0,1,2.90127-2.79354,2.85364,2.85364,0,0,1,2.9366,2.79354A2.88946,2.88946,0,0,1,176.00777,102.5764Zm-2.39967,19.69782V104.83195h4.799v17.44227h-4.799Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M187.36031,96.4877v9.706a6.22015,6.22015,0,0,1,4.26168-1.791c4.36973,0,7.41374,3.008,7.41374,9.0253,0,5.94493-4.0112,9.27574-9.27578,9.27574A16.58426,16.58426,0,0,1,182.597,121.307V96.4877h4.76327Zm0,22.09713a6.72755,6.72755,0,0,0,2.39964.39457c2.65011,0,4.22563-1.96974,4.22563-5.55139,0-3.25913-1.10993-5.26455-3.68867-5.26455a4.14376,4.14376,0,0,0-2.9366,1.325v9.09632Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M212.42937,109.02257a3.39138,3.39138,0,0,0-1.827-.39386c-2.11248,0-3.36615,1.86271-3.79605,2.65012v10.99539H202.043V104.83195h4.7633v2.36431a5.16217,5.16217,0,0,1,4.40506-2.79354,4.7777,4.7777,0,0,1,2.364.46594Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M225.03561,122.27422a9.70593,9.70593,0,0,1-.28684-1.86271,6.43294,6.43294,0,0,1-4.90634,2.29226c-2.97264,0-5.26454-1.79028-5.26454-4.90669,0-4.54851,4.69154-6.19573,9.31143-6.19573h0.609v-1.00291c0-1.5045-.609-2.435-2.82922-2.435a7.36142,7.36142,0,0,0-4.4411,1.64721l-2.07715-2.90091a10.36488,10.36488,0,0,1,7.05553-2.50705c4.76331,0,7.01953,1.82667,7.01953,6.44656v6.26742a23.45627,23.45627,0,0,0,.50128,5.15752h-4.69158Zm-0.53728-7.73627h-0.609c-2.79318,0-4.72727.82412-4.72727,2.86523a1.86412,1.86412,0,0,0,2.11284,1.82635,4.27676,4.27676,0,0,0,3.22344-1.53951V114.538Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M243.44337,109.02257a3.39017,3.39017,0,0,0-1.82632-.39386c-2.11315,0-3.36686,1.86271-3.79676,2.65012v10.99539H233.057V104.83195h4.76331v2.36431a5.16277,5.16277,0,0,1,4.40541-2.79354,4.77608,4.77608,0,0,1,2.36363.46594Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M246.30792,104.83195h5.08548l3.86813,11.497h0.17907l3.54564-11.497h4.90669l-7.19863,19.30392c-1.54019,4.119-3.36686,6.51825-8.12981,6.51825a9.32322,9.32322,0,0,1-2.68612-.32217l0.68038-3.7604a5.485,5.485,0,0,0,1.68325.17879c2.43532,0,3.29481-1.1813,3.97516-3.044l0.64469-1.79031Z",transform:"translate(-27.25197 -24.7154)"}))),a.a.createElement("g",{className:"".concat(t,"-lion")},a.a.createElement("path",{d:"M111.90871,99.19328c-3.7417-1.83124-8.60114-2.74854-12.13721-4.7124-2.7998-1.55231-4.946-4.11652-7.95886-5.498a60.02908,60.02908,0,0,0-9.468-3.45349c-6.25116-1.53778-11.50183.46472-13.323,1.90582A13.4137,13.4137,0,0,0,64.00112,100.774a15.94352,15.94352,0,0,0,2.55627,6.72852c5.27264,7.447,15.14136,9.86646,22.95953,14.56458a0.50625,0.50625,0,0,0,.73907-0.10187c1.31311-1.93127,2.3808-3.48566,4.59235-4.40546,2.24567-.93738,5.7793-0.619,8.82611-0.47076,3.14771,0.1521,6.54541-.14337,7.68689-1.77087,1.36383-1.94238,1.28436-5.85663-.7973-7.05243-1.117-.64368-2.78278-0.6731-3.9975-1.23328a4.3204,4.3204,0,0,1-2.059-2.24237,4.07459,4.07459,0,0,1-.25964-3.31146c0.489-.88025,1.7226-0.63116,2.71332-0.40076,1.9635,0.45068,5.24432.92871,7.13336,0.1001C114.65114,100.89348,112.66127,99.56114,111.90871,99.19328ZM92.18856,98.119c-0.16821.87573-.7019,2.567-1.55566,2.67712-0.86029.1098-1.48022-.81232-2.09686-1.15808a24.4124,24.4124,0,0,0-3.87262-1.41064c-1.17352-.38867-2.78247-0.87018-3.254-1.98981-0.707-1.66663.94434-2.45544,2.13348-2.82123a12.11641,12.11641,0,0,1,3.40045-.54181c2.1485-.10327,4.19965.20435,4.92053,1.55475A6.49319,6.49319,0,0,1,92.18856,98.119Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M32.83333,104.45157a2.29443,2.29443,0,0,1,.54613-1.31607A34.48454,34.48454,0,0,1,52.806,91.93851c1.50521-.21582,2.58985-0.11156,2.83649.49191,0.43235,1.05764-.4436,1.66732-1.49758,2.27736C35.79955,105.672,37.1,121.9711,36.92438,128.639c0.05527,2.72734-1.91432,3.22379-2.40623,1.93891A48.03813,48.03813,0,0,1,32.83333,104.45157Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M45.24681,80.43961a2.19666,2.19666,0,0,1,1.1785-.73891,30.35514,30.35514,0,0,1,19.20314,1.6337c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71179,45.71179,0,0,1,45.24681,80.43961Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M56.83993,73.40033c-1.54242-.17563-1.56427-1.30393-0.91213-1.74352a37.79982,37.79982,0,0,1,7.13141-3.67693,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20181,5.35429,1.55906,9.18483,4.292,4.59371,3.27786,8.68043,9.50494,5.94738,9.0009a25.58659,25.58659,0,0,0-3.00191-.43945c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96274,1.96274,0,0,1-1.03614-.55044C67.88555,76.40433,63.4065,74.19781,56.83993,73.40033Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M130.64639,127.82663c-0.41362,1.29077-.90482,2.91-1.9576,2.15892a47.305,47.305,0,0,0-10.51423-5.80672c-0.22586-.05055-0.20021-0.36442-0.12054-0.54143a7.76418,7.76418,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.8083,18.619,18.619,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43877,10.43877,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38651,0.20819-2.525-2.97853-4.63025-4.71776-5.44156-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.26892-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.9897-10.72015-4.65121a1.03792,1.03792,0,0,1-.86172-0.86328,25.0259,25.0259,0,0,0-9.3712-14.55086c-1.759-1.36679.21341-2.14416,2.63539-2.26232C117.499,62.86187,139.47112,98.00018,130.64639,127.82663Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M115.14271,110.93761c-0.02739-.19436-0.111-0.85254-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66027,10.66027,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.53647,0.53647,0,0,1-.16314-0.43959A10.78454,10.78454,0,0,0,115.14271,110.93761Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M97.73573,123.93565a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.34326,17.34326,0,0,0,5.53425-.90517c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.19649,2.19649,0,0,1,1.15583,1.41653,5.15178,5.15178,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95267a8.69735,8.69735,0,0,1-2.6051-.43856,5.72964,5.72964,0,0,1-1.302-1.04622,30.722,30.722,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83012,6.83012,0,0,1,97.73573,123.93565Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M49.90735,152.96743a8.06424,8.06424,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.94506-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14459-.25115,1.87413-2.25675,1.70475A50.122,50.122,0,0,1,49.90735,152.96743Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M55.95568,117.26983A21.79207,21.79207,0,0,1,56.26125,99.645c0.7188-1.35484,1.42117-2.24,2.33834-1.985,0.998,0.27818,1.22855,1.29978,1.36626,3.19329,1.01553,15.714,10.52044,21.00487,22.459,26.55281,9.41867,4.81489,20.135,10.31952,29.11613,23.65392,1.35938,1.92507,1.55544,3.09321.02079,4.19587A48.8677,48.8677,0,0,1,93.868,163.29216c-1.09244.25566-2.21933,0.06375-3.187-2.43259C80.59868,134.8822,63.671,136.05311,55.95568,117.26983Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M118.40353,149.20773c-1.535,1.5343-2.40553.3315-2.907-.65371a45.56777,45.56777,0,0,0-7.63545-12.10255,0.78694,0.78694,0,0,1,.72767-1.34444,5.49981,5.49981,0,0,0,3.03671-.493,6.08555,6.08555,0,0,0,2.787-3.94433c0.427-1.50695.447-1.95037,1.37041-2.04423a3.03406,3.03406,0,0,1,.90418.10947,10.91687,10.91687,0,0,1,3.21234,1.91465,31.19354,31.19354,0,0,1,6.22659,6.775,1.79563,1.79563,0,0,1-.19539,1.76708A50.13544,50.13544,0,0,1,118.40353,149.20773Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M82.02851,59.23935a55.06858,55.06858,0,1,0,55.25255,55.07377A54.89374,54.89374,0,0,0,82.02851,59.23935ZM49.90735,152.95427a8.06426,8.06426,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.9451-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14455-.25115,1.87413-2.25675,1.70471A50.12176,50.12176,0,0,1,49.90735,152.95427Zm80.739-25.14079c-0.41362,1.29077-.90482,2.90992-1.9576,2.15892a47.30207,47.30207,0,0,0-10.51423-5.80672c-0.22586-.05059-0.20021-0.36442-0.12054-0.54143a7.76415,7.76415,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.80829,18.61918,18.61918,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43874,10.43874,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38652,0.20819-2.525-2.97853-4.63007-4.71776-5.44138-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.269-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.98974-10.72015-4.65121a1.038,1.038,0,0,1-.86172-0.86328,25.02589,25.02589,0,0,0-9.3712-14.55086c-1.759-1.36683.21341-2.14419,2.63539-2.26232C117.499,62.84888,139.47112,97.9872,130.64639,127.81347Zm-15.50368-16.889c-0.02739-.19436-0.111-0.85253-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66026,10.66026,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.5365,0.5365,0,0,1-.16314-0.43962A10.7843,10.7843,0,0,0,115.14271,110.92445ZM69.02163,87.42221c1.82114-1.44111,7.07185-3.44359,13.323-1.90581a60.02216,60.02216,0,0,1,9.468,3.45363c3.0128,1.3812,5.159,3.94557,7.95883,5.49789,3.5361,1.96385,8.39551,2.88116,12.13721,4.71233,0.75257,0.3679,2.74242,1.70007,2.18591,1.98449-1.889.82862-5.16983,0.3509-7.13332-.10014-0.99077-.23036-2.22436-0.47942-2.71333.40081a4.07468,4.07468,0,0,0,.25963,3.31145,4.32051,4.32051,0,0,0,2.059,2.24238c1.21472,0.56016,2.88048.5896,3.99751,1.23324,2.08165,1.19584,2.16115,5.11006.7973,7.05245-1.14147,1.62749-4.53915,1.923-7.68689,1.7709-3.04678-.14828-6.58043-0.46662-8.82612.47077-2.21156.91976-3.2792,2.47413-4.59232,4.40545a0.50625,0.50625,0,0,1-.73909.10184c-7.81818-4.69814-17.68686-7.11757-22.95953-14.56456a15.94379,15.94379,0,0,1-2.55625-6.72854A13.41361,13.41361,0,0,1,69.02163,87.42221ZM56.83993,73.38734c-1.54242-.17563-1.56427-1.30394-0.91213-1.74356a37.7999,37.7999,0,0,1,7.13141-3.6769,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20177,5.35429,1.55906,9.18483,4.292,4.59371,3.27782,8.68043,9.5049,5.94738,9.00086a25.59524,25.59524,0,0,0-3.00191-.43941c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96255,1.96255,0,0,1-1.03614-.55048C67.88555,76.39134,63.4065,74.18479,56.83993,73.38734Zm40.8958,50.53515a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.3433,17.3433,0,0,0,5.53425-.90518c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.1965,2.1965,0,0,1,1.15583,1.41653,5.15179,5.15179,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95268a8.69731,8.69731,0,0,1-2.6051-.43859,5.72851,5.72851,0,0,1-1.302-1.04618,30.72225,30.72225,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83011,6.83011,0,0,1,97.73573,123.92249ZM45.24681,80.42659a2.19709,2.19709,0,0,1,1.1785-.73891,30.35515,30.35515,0,0,1,19.20314,1.63373c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71349,45.71349,0,0,1,45.24681,80.42659Zm-12.404,24.0215a2.29577,2.29577,0,0,1,.54631-1.316A34.484,34.484,0,0,1,52.81575,91.93521c1.505-.21547,2.58967-0.11153,2.83632.49191,0.43232,1.058-.4436,1.66768-1.49741,2.2774-18.34557,10.964-17.04493,27.26345-17.22056,33.931,0.05523,2.72738-1.91434,3.22379-2.40625,1.93926A48.03957,48.03957,0,0,1,32.84285,104.44809Zm23.11943,12.81412a21.79159,21.79159,0,0,1,.30553-17.62467c0.71883-1.35484,1.42121-2.24,2.33834-1.985,0.998,0.27818,1.22859,1.29978,1.3663,3.19314,1.01553,15.714,10.52044,21.00487,22.459,26.55278,9.41867,4.81489,20.135,10.31952,29.11613,23.654,1.35934,1.925,1.55544,3.09318.02079,4.19584a48.8677,48.8677,0,0,1-17.69378,8.03627c-1.09244.25566-2.21936,0.06375-3.18708-2.43256C80.60524,134.87457,63.67758,136.04548,55.96228,117.26221Zm62.44125,31.94758c-1.535,1.5343-2.40553.33154-2.907-.65367a45.56724,45.56724,0,0,0-7.63545-12.10256,0.787,0.787,0,0,1,.72767-1.34448,5.49979,5.49979,0,0,0,3.03671-.49294,6.08554,6.08554,0,0,0,2.787-3.94437c0.427-1.50691.447-1.95033,1.37041-2.04423a3.03522,3.03522,0,0,1,.90418.10947,10.91777,10.91777,0,0,1,3.21234,1.91468,31.19269,31.19269,0,0,1,6.22659,6.77494,1.7957,1.7957,0,0,1-.19539,1.76711A50.13426,50.13426,0,0,1,118.40353,149.20979Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M84.67135,98.22743a24.39354,24.39354,0,0,1,3.87228,1.41064c0.61681,0.34572,1.23657,1.26789,2.09726,1.15807,0.85356-.11015,1.38723-1.80138,1.55541-2.67715a6.49165,6.49165,0,0,0-.32458-3.6897c-0.72075-1.35037-2.77207-1.658-4.92038-1.55473a12.1195,12.1195,0,0,0-3.40063.54179c-1.18893.36584-2.84033,1.15463-2.13345,2.82124C81.88892,97.35723,83.49753,97.83874,84.67135,98.22743Z",transform:"translate(-27.25197 -24.7154)"})))};v.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,style:o.a.object,focusable:o.a.bool},v.defaultProps={className:"nyplLionLogo",title:"The New York Public Library",ref:"nyplLionLogo",type:"",height:"144",width:"257",viewBox:"0 0 257 144",fill:"#FFF"};var m=v,y=function(e){var t=e.className,r=e.title,n=e.width,i=e.height,o=e.viewBox,s=e.ariaHidden,u=e.fill,l=e.style,c=e.focusable;return a.a.createElement("svg",{className:"".concat(t," svgIcon"),width:n,height:i,viewBox:o,style:l,"aria-hidden":s,focusable:c},a.a.createElement("title",null,r),a.a.createElement("g",{className:"".concat(t,"-text")},a.a.createElement("g",{className:"".concat(t,"-text-ny")},a.a.createElement("path",{d:"M156.36639,26.64949h1.93408l14.21812,20.593v-20.593H174.381V50.5016h-1.82667L158.19274,29.76519V50.5016h-1.82635V26.64949Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M178.14171,41.79879c0-4.83479,2.79354-8.77447,7.34205-8.77447,4.36937,0,6.769,3.50975,6.41048,8.38043h-11.7828v0.394c0.036,3.90364,1.68361,7.48511,5.76653,7.48511a8.46392,8.46392,0,0,0,4.942-1.6117l0.78812,1.46846a9.8233,9.8233,0,0,1-5.80219,1.755C180.577,50.89564,178.14171,46.70533,178.14171,41.79879Zm11.89053-1.934c-0.03568-2.57842-1.36073-5.22886-4.61985-5.22886-2.97264,0-4.69193,2.29208-5.19321,5.22886h9.81306Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M193.899,33.41818h2.00542l4.155,14.21833,4.47647-14.21833h1.82667l4.47679,14.254,4.18995-14.254H216.892L211.73445,50.5016h-1.71894L205.3953,36.10434,200.77545,50.5016h-1.71894Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M233.365,41.51212l-7.98639-14.86264h2.22057l6.76869,12.8929h0.07172l6.76869-12.8929H243.214l-7.915,14.86264V50.5016H233.365V41.51212Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M241.60144,41.97789c0-4.29786,2.29194-8.95357,7.66422-8.95357s7.84333,4.62,7.84333,8.88188c0,4.2975-2.43536,8.98944-7.80764,8.98944C243.92939,50.89564,241.60144,46.27543,241.60144,41.97789Zm13.53778,0c0-3.83227-2.04146-7.342-5.94493-7.342-3.86813,0-5.62308,3.4382-5.62308,7.27032,0,3.868,1.89836,7.3777,5.76582,7.3777C253.24085,49.2839,255.13922,45.84571,255.13922,41.97789Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M260.68578,33.41818h1.86268v2.97264c0.64469-1.25353,2.18453-3.3665,4.5842-3.3665a4.68342,4.68342,0,0,1,1.64757.28648l-0.46591,1.7548a3.56466,3.56466,0,0,0-1.39677-.25066c-2.36363,0-3.90381,2.79371-4.36909,3.79644V50.5016h-1.86268V33.41818Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M272.21742,24.7154h1.86236V50.5016h-1.86236V24.7154Zm2.04111,16.18807,7.48547-7.48529h2.32795l-7.55684,7.48529,7.9507,9.59813h-2.32795Z",transform:"translate(-31.77892 -24.7154)"})),a.a.createElement("g",{className:"".concat(t,"-text-public")},a.a.createElement("path",{d:"M156.40225,62.53555h5.193c5.01407,0,8.16582,2.47119,8.16582,6.733,0,4.29754-2.97264,6.98369-8.38061,6.98369h-3.00833V86.38762h-1.96991V62.53555ZM161.34481,74.569c4.54816,0,6.41052-2.07729,6.41052-5.22886,0-2.97264-1.79067-5.12148-6.33914-5.12148h-3.044V74.569h2.97264Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M172.76837,81.37373V69.30424h1.86271V80.97966c0,2.50723.89514,4.11861,3.5096,4.11861,2.54306,0,4.65554-2.39949,5.22886-3.40219V69.30424h1.862V83.09285a14.41314,14.41314,0,0,0,.32252,3.29478h-1.898a18.73138,18.73138,0,0,1-.2508-2.79354,6.85642,6.85642,0,0,1-5.65845,3.18761C174.16549,86.7817,172.76837,84.45358,172.76837,81.37373Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M189.88744,85.49231V60.60146h1.862V70.88029a6.07292,6.07292,0,0,1,4.47714-1.96974c4.87033,0,7.23432,3.90347,7.23432,8.88171,0,4.79913-3.22344,8.98944-8.45233,8.98944A9.6515,9.6515,0,0,1,189.88744,85.49231ZM201.49116,77.864c0-3.72489-1.43281-7.27032-5.58707-7.27032a6.12767,6.12767,0,0,0-4.15465,1.934V84.48962a7.70565,7.70565,0,0,0,3.33121.68035C199.41366,85.17,201.49116,81.40938,201.49116,77.864Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M207.292,60.60146h1.86271V86.38762H207.292V60.60146Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M214.23944,64.25466a1.41471,1.41471,0,1,1,2.82919,0A1.41558,1.41558,0,1,1,214.23944,64.25466Zm0.46559,5.04958h1.898V86.38762h-1.898V69.30424Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M220.184,77.82795c0-5.40782,3.116-8.91739,7.52112-8.91739a7.42136,7.42136,0,0,1,5.08548,1.79045l-0.96686,1.36094a6.121,6.121,0,0,0-4.1543-1.54c-3.79641,0-5.5157,3.295-5.5157,7.23464,0,3.79623,1.68361,7.41339,5.48,7.41339a6.88911,6.88911,0,0,0,4.36941-1.54l0.82344,1.39677a8.00839,8.00839,0,0,1-5.30059,1.755C222.61969,86.7817,220.184,82.41229,220.184,77.82795Z",transform:"translate(-31.77892 -24.7154)"})),a.a.createElement("g",{className:"".concat(t,"-text-library")},a.a.createElement("path",{d:"M155.86494,122.27422V98.42179h5.08565v19.76915h8.88188v4.08328H155.86494Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M176.00777,102.5764A2.8586,2.8586,0,0,1,173.1065,99.711a2.82221,2.82221,0,0,1,2.90127-2.79354,2.85364,2.85364,0,0,1,2.9366,2.79354A2.88946,2.88946,0,0,1,176.00777,102.5764Zm-2.39967,19.69782V104.83195h4.799v17.44227h-4.799Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M187.36031,96.4877v9.706a6.22015,6.22015,0,0,1,4.26168-1.791c4.36973,0,7.41374,3.008,7.41374,9.0253,0,5.94493-4.0112,9.27574-9.27578,9.27574A16.58426,16.58426,0,0,1,182.597,121.307V96.4877h4.76327Zm0,22.09713a6.72755,6.72755,0,0,0,2.39964.39457c2.65011,0,4.22563-1.96974,4.22563-5.55139,0-3.25913-1.10993-5.26455-3.68867-5.26455a4.14376,4.14376,0,0,0-2.9366,1.325v9.09632Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M212.42937,109.02257a3.39138,3.39138,0,0,0-1.827-.39386c-2.11248,0-3.36615,1.86271-3.79605,2.65012v10.99539H202.043V104.83195h4.7633v2.36431a5.16217,5.16217,0,0,1,4.40506-2.79354,4.7777,4.7777,0,0,1,2.364.46594Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M225.03561,122.27422a9.70593,9.70593,0,0,1-.28684-1.86271,6.43294,6.43294,0,0,1-4.90634,2.29226c-2.97264,0-5.26454-1.79028-5.26454-4.90669,0-4.54851,4.69154-6.19573,9.31143-6.19573h0.609v-1.00291c0-1.5045-.609-2.435-2.82922-2.435a7.36142,7.36142,0,0,0-4.4411,1.64721l-2.07715-2.90091a10.36488,10.36488,0,0,1,7.05553-2.50705c4.76331,0,7.01953,1.82667,7.01953,6.44656v6.26742a23.45627,23.45627,0,0,0,.50128,5.15752h-4.69158Zm-0.53728-7.73627h-0.609c-2.79318,0-4.72727.82412-4.72727,2.86523a1.86412,1.86412,0,0,0,2.11284,1.82635,4.27676,4.27676,0,0,0,3.22344-1.53951V114.538Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M243.44337,109.02257a3.39017,3.39017,0,0,0-1.82632-.39386c-2.11315,0-3.36686,1.86271-3.79676,2.65012v10.99539H233.057V104.83195h4.76331v2.36431a5.16277,5.16277,0,0,1,4.40541-2.79354,4.77608,4.77608,0,0,1,2.36363.46594Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M246.30792,104.83195h5.08548l3.86813,11.497h0.17907l3.54564-11.497h4.90669l-7.19863,19.30392c-1.54019,4.119-3.36686,6.51825-8.12981,6.51825a9.32322,9.32322,0,0,1-2.68612-.32217l0.68038-3.7604a5.485,5.485,0,0,0,1.68325.17879c2.43532,0,3.29481-1.1813,3.97516-3.044l0.64469-1.79031Z",transform:"translate(-31.77892 -24.7154)"}))),a.a.createElement("g",{className:"".concat(t,"-lion"),fill:u},a.a.createElement("path",{d:"M111.90871,99.19328c-3.7417-1.83124-8.60114-2.74854-12.13721-4.7124-2.7998-1.55231-4.946-4.11652-7.95886-5.498a60.02908,60.02908,0,0,0-9.468-3.45349c-6.25116-1.53778-11.50183.46472-13.323,1.90582A13.4137,13.4137,0,0,0,64.00112,100.774a15.94352,15.94352,0,0,0,2.55627,6.72852c5.27264,7.447,15.14136,9.86646,22.95953,14.56458a0.50625,0.50625,0,0,0,.73907-0.10187c1.31311-1.93127,2.3808-3.48566,4.59235-4.40546,2.24567-.93738,5.7793-0.619,8.82611-0.47076,3.14771,0.1521,6.54541-.14337,7.68689-1.77087,1.36383-1.94238,1.28436-5.85663-.7973-7.05243-1.117-.64368-2.78278-0.6731-3.9975-1.23328a4.3204,4.3204,0,0,1-2.059-2.24237,4.07459,4.07459,0,0,1-.25964-3.31146c0.489-.88025,1.7226-0.63116,2.71332-0.40076,1.9635,0.45068,5.24432.92871,7.13336,0.1001C114.65114,100.89348,112.66127,99.56114,111.90871,99.19328ZM92.18856,98.119c-0.16821.87573-.7019,2.567-1.55566,2.67712-0.86029.1098-1.48022-.81232-2.09686-1.15808a24.4124,24.4124,0,0,0-3.87262-1.41064c-1.17352-.38867-2.78247-0.87018-3.254-1.98981-0.707-1.66663.94434-2.45544,2.13348-2.82123a12.11641,12.11641,0,0,1,3.40045-.54181c2.1485-.10327,4.19965.20435,4.92053,1.55475A6.49319,6.49319,0,0,1,92.18856,98.119Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M32.83333,104.45157a2.29443,2.29443,0,0,1,.54613-1.31607A34.48454,34.48454,0,0,1,52.806,91.93851c1.50521-.21582,2.58985-0.11156,2.83649.49191,0.43235,1.05764-.4436,1.66732-1.49758,2.27736C35.79955,105.672,37.1,121.9711,36.92438,128.639c0.05527,2.72734-1.91432,3.22379-2.40623,1.93891A48.03813,48.03813,0,0,1,32.83333,104.45157Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M45.24681,80.43961a2.19666,2.19666,0,0,1,1.1785-.73891,30.35514,30.35514,0,0,1,19.20314,1.6337c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71179,45.71179,0,0,1,45.24681,80.43961Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M56.83993,73.40033c-1.54242-.17563-1.56427-1.30393-0.91213-1.74352a37.79982,37.79982,0,0,1,7.13141-3.67693,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20181,5.35429,1.55906,9.18483,4.292,4.59371,3.27786,8.68043,9.50494,5.94738,9.0009a25.58659,25.58659,0,0,0-3.00191-.43945c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96274,1.96274,0,0,1-1.03614-.55044C67.88555,76.40433,63.4065,74.19781,56.83993,73.40033Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M130.64639,127.82663c-0.41362,1.29077-.90482,2.91-1.9576,2.15892a47.305,47.305,0,0,0-10.51423-5.80672c-0.22586-.05055-0.20021-0.36442-0.12054-0.54143a7.76418,7.76418,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.8083,18.619,18.619,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43877,10.43877,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38651,0.20819-2.525-2.97853-4.63025-4.71776-5.44156-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.26892-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.9897-10.72015-4.65121a1.03792,1.03792,0,0,1-.86172-0.86328,25.0259,25.0259,0,0,0-9.3712-14.55086c-1.759-1.36679.21341-2.14416,2.63539-2.26232C117.499,62.86187,139.47112,98.00018,130.64639,127.82663Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M115.14271,110.93761c-0.02739-.19436-0.111-0.85254-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66027,10.66027,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.53647,0.53647,0,0,1-.16314-0.43959A10.78454,10.78454,0,0,0,115.14271,110.93761Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M97.73573,123.93565a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.34326,17.34326,0,0,0,5.53425-.90517c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.19649,2.19649,0,0,1,1.15583,1.41653,5.15178,5.15178,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95267a8.69735,8.69735,0,0,1-2.6051-.43856,5.72964,5.72964,0,0,1-1.302-1.04622,30.722,30.722,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83012,6.83012,0,0,1,97.73573,123.93565Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M49.90735,152.96743a8.06424,8.06424,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.94506-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14459-.25115,1.87413-2.25675,1.70475A50.122,50.122,0,0,1,49.90735,152.96743Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M55.95568,117.26983A21.79207,21.79207,0,0,1,56.26125,99.645c0.7188-1.35484,1.42117-2.24,2.33834-1.985,0.998,0.27818,1.22855,1.29978,1.36626,3.19329,1.01553,15.714,10.52044,21.00487,22.459,26.55281,9.41867,4.81489,20.135,10.31952,29.11613,23.65392,1.35938,1.92507,1.55544,3.09321.02079,4.19587A48.8677,48.8677,0,0,1,93.868,163.29216c-1.09244.25566-2.21933,0.06375-3.187-2.43259C80.59868,134.8822,63.671,136.05311,55.95568,117.26983Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M118.40353,149.20773c-1.535,1.5343-2.40553.3315-2.907-.65371a45.56777,45.56777,0,0,0-7.63545-12.10255,0.78694,0.78694,0,0,1,.72767-1.34444,5.49981,5.49981,0,0,0,3.03671-.493,6.08555,6.08555,0,0,0,2.787-3.94433c0.427-1.50695.447-1.95037,1.37041-2.04423a3.03406,3.03406,0,0,1,.90418.10947,10.91687,10.91687,0,0,1,3.21234,1.91465,31.19354,31.19354,0,0,1,6.22659,6.775,1.79563,1.79563,0,0,1-.19539,1.76708A50.13544,50.13544,0,0,1,118.40353,149.20773Z",transform:"translate(-31.77892 -24.7154)"})))};y.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,style:o.a.object,focusable:o.a.bool},y.defaultProps={className:"nyplLionLogoInverse",title:"The New York Public Library",height:"139",width:"252",viewBox:"0 0 252 139",fill:"#000"};var g=y,b=function(e){var t=e.className,r=e.width,n=e.height,i=e.viewBox,o=e.style,s=e.ariaHidden,u=e.title,l=(e.fill,e.focusable);return a.a.createElement("svg",{className:"".concat(t," svgIcon"),width:r,height:n,viewBox:i,style:o,"aria-hidden":s,focusable:l},a.a.createElement("title",null,u),a.a.createElement("g",{className:"".concat(t,"-ny")},a.a.createElement("path",{d:"M0.74,5.93h5.53l40.7,58.93V5.93h5.32v68.25h-5.23L5.97,14.83v59.35H0.74V5.93z"}),a.a.createElement("path",{d:"M63.04,49.27c0-13.84,8.01-25.12,21.01-25.12c12.53,0,19.38,10.04,18.35,24H68.7c0,0.29,0,0.8,0,1.12 c0.08,11.16,4.81,21.41,16.49,21.41c6.24,0,11.47-2.55,14.13-4.6l2.28,4.21c-3.08,2.25-8.73,5.03-16.62,5.03 C70.01,75.31,63.04,63.29,63.04,49.27z M97.08,43.72c-0.12-7.38-3.89-14.94-13.23-14.94c-8.49,0-13.43,6.54-14.86,14.94H97.08z"}),a.a.createElement("path",{d:"M108.63,25.29h5.74l11.9,40.68l12.8-40.68h5.26l12.78,40.79l12.02-40.79h5.32l-14.77,48.89h-4.89l-13.21-41.21 l-13.25,41.21h-4.93L108.63,25.29z"}),a.a.createElement("path",{d:"M222.09,48.45L199.22,5.93h6.38l19.36,36.87h0.17l19.37-36.87h5.75l-22.62,42.52v25.73h-5.53V48.45z"}),a.a.createElement("path",{d:"M245.62,49.8c0-12.32,6.58-25.65,21.94-25.65c15.41,0,22.48,13.24,22.48,25.44c0,12.27-7,25.73-22.36,25.73 C252.33,75.31,245.62,62.07,245.62,49.8z M284.41,49.8c0-10.97-5.84-21.01-17.02-21.01c-11.05,0-16.07,9.83-16.07,20.8 c0,11.05,5.39,21.09,16.49,21.09C278.98,70.68,284.41,60.85,284.41,49.8z"}),a.a.createElement("path",{d:"M300.23,25.29h5.36v8.52c1.82-3.59,6.25-9.66,13.12-9.66c2.28,0,3.88,0.51,4.72,0.84l-1.31,5.02 c-0.84-0.34-1.98-0.72-4-0.72c-6.78,0-11.18,7.97-12.53,10.84v34.04h-5.36V25.29z"}),a.a.createElement("path",{d:"M333.28,0.39h5.33v73.78h-5.33V0.39z M339.08,46.72l21.47-21.43h6.62l-21.64,21.43l22.78,27.46h-6.66 L339.08,46.72z"})),a.a.createElement("g",{className:"".concat(t,"-public")},a.a.createElement("path",{d:"M0.81,108.73h14.88c14.34,0,23.37,7.09,23.37,19.28c0,12.31-8.52,19.99-24,19.99h-8.6v29.02H0.81V108.73z M14.97,143.19c12.99,0,18.35-5.95,18.35-14.97c0-8.52-5.15-14.67-18.14-14.67H6.45v29.65H14.97z"}),a.a.createElement("path",{d:"M47.66,162.67V128.1h5.32v33.43c0,7.17,2.57,11.77,10.04,11.77c7.3,0,13.33-6.87,14.97-9.74V128.1h5.31v39.47 c0,3.88,0.42,7.59,0.93,9.45H78.8c-0.3-1.69-0.72-5.34-0.72-8.01c-2.34,3.71-7.9,9.14-16.17,9.14 C51.66,178.14,47.66,171.45,47.66,162.67z"}),a.a.createElement("path",{d:"M96.63,174.44V103.2h5.34v29.4c2.97-3.38,7.78-5.61,12.8-5.61c13.96,0,20.71,11.17,20.71,25.39 c0,13.75-9.24,25.76-24.17,25.76C105.45,178.14,100.01,176.71,96.63,174.44z M129.84,152.6c0-10.67-4.11-20.8-16-20.8 c-4.17,0-9.11,2.45-11.87,5.53v34.25c2.25,1.14,5.63,1.9,9.53,1.9C123.89,173.47,129.84,162.72,129.84,152.6z"}),a.a.createElement("path",{d:"M147.44,103.2h5.36v73.82h-5.36V103.2z"}),a.a.createElement("path",{d:"M167.31,113.66c0-2.36,1.86-4.09,4.01-4.09c2.28,0,4.13,1.73,4.13,4.09c0,2.36-1.86,4.19-4.13,4.19 C169.17,117.85,167.31,116.02,167.31,113.66z M168.65,128.1h5.41v48.91h-5.41V128.1z"}),a.a.createElement("path",{d:"M184.35,152.51c0-15.48,8.9-25.52,21.51-25.52c7.3,0,11.89,2.74,14.54,5.1l-2.77,3.91 c-2.74-2.35-6.45-4.42-11.89-4.42c-10.85,0-15.78,9.45-15.78,20.71c0,10.84,4.85,21.18,15.71,21.18c5.64,0,10.36-2.45,12.52-4.35 l2.32,3.98c-2.62,2.34-7.76,5.03-15.18,5.03C191.29,178.14,184.35,165.59,184.35,152.51z"})),a.a.createElement("g",{className:"".concat(t,"-library")},a.a.createElement("path",{d:"M0.74,279.99v-68.25h14.55v56.54h25.43v11.7H0.74z"}),a.a.createElement("path",{d:"M58.37,223.64c-4.81,0-8.3-3.84-8.3-8.19c0-4.31,3.49-8.01,8.3-8.01c4.81,0,8.4,3.71,8.4,8.01 C66.77,219.8,63.18,223.64,58.37,223.64z M51.51,279.99v-49.9h13.74v49.9H51.51z"}),a.a.createElement("path",{d:"M90.85,206.17v27.8c2.27-2.28,6.66-5.15,12.22-5.15c12.5,0,21.2,8.6,21.2,25.82 c0,17.04-11.49,26.58-26.55,26.58c-11.26,0-18.14-2.88-20.5-3.98v-71.08H90.85z M90.85,269.4c0.92,0.32,3.08,1.14,6.87,1.14 c7.59,0,12.1-5.61,12.1-15.9c0-9.32-3.17-15.06-10.54-15.06c-4.3,0-7.59,2.82-8.43,3.84V269.4z"}),a.a.createElement("path",{d:"M162.64,242.05c-0.84-0.49-2.4-1.08-5.27-1.08c-6.03,0-9.62,5.32-10.88,7.55v31.47h-13.6v-49.9h13.6v6.75 c2.15-3.71,6.28-8.02,12.61-8.02c3.71,0,5.69,0.72,6.78,1.37L162.64,242.05z"}),a.a.createElement("path",{d:"M198.66,279.99c-0.42-1.27-0.72-3.8-0.8-5.32c-2.24,2.62-6.97,6.55-14.02,6.55c-8.55,0-15.09-5.11-15.09-14.02 c0-13.03,13.42-17.75,26.62-17.75h1.78v-2.87c0-4.3-1.78-7-8.1-7c-6.45,0-10.88,3.42-12.74,4.72L170.4,236 c2.99-2.62,9.5-7.17,20.2-7.17c13.62,0,20.08,5.27,20.08,18.48v17.93c0,6.75,0.72,11.6,1.43,14.76H198.66z M197.14,257.86h-1.78 c-7.93,0-13.5,2.34-13.5,8.21c0,3.65,3,5.19,6.03,5.19c4.93,0,7.8-2.87,9.24-4.41V257.86z"}),a.a.createElement("path",{d:"M251.88,242.05c-0.84-0.49-2.4-1.08-5.27-1.08c-6.03,0-9.62,5.32-10.87,7.55v31.47H222.1v-49.9h13.64v6.75 c2.16-3.71,6.27-8.02,12.6-8.02c3.71,0,5.69,0.72,6.81,1.37L251.88,242.05z"}),a.a.createElement("path",{d:"M259.83,230.09h14.51l11.1,32.86h0.5l10.17-32.86h14.04l-20.62,55.21c-4.42,11.77-9.62,18.64-23.24,18.64 c-4.18,0-6.71-0.59-7.72-0.89l1.98-10.75c0.71,0.17,1.86,0.46,4.77,0.46c7,0,9.44-3.33,11.43-8.67l1.86-5.12L259.83,230.09z"})))};b.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,style:o.a.object,focusable:o.a.bool},b.defaultProps={className:"nyplTextLogo",title:"New York Public Library",ref:"nyplTextLogo",type:"",height:"303.95",width:"368.31",viewBox:"0 0 368.31 303.95",fill:"#000"};var A=b,_=function(e){var t=e.className,r=e.title,n=e.type,i=e.height,o=e.width,s=e.viewBox,u=e.fill,l=e.ariaHidden,c=e.focusable;return a.a.createElement("svg",{className:"".concat(t," svgIcon"),width:o,height:i,viewBox:s,"aria-hidden":l,focusable:c},a.a.createElement("title",null,r),"solid"!==n?function(e){return a.a.createElement("path",{d:"M12,4a8,8,0,1,1-8,8,8.00906,8.00906,0,0,1,8-8m0-4A12,12,0,1,0,24,12,12,12,0,0,0,12,0h0Z",fill:e})}(u):function(e){return a.a.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12,12,0,0,0,12,0h0Z",fill:e})}(u))};_.propTypes={className:o.a.string,title:o.a.string,type:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},_.defaultProps={className:"nyplCarouselCircle-icon",title:"NYPL Carousel Circle SVG Icon",ref:"nyplCarouselCircle",type:"",height:"24px",width:"24px",viewBox:"0 0 24 24",fill:"#000"};var w=_,E=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,preserveAspectRatio:u,focusable:l},a.a.createElement("title",null,i),a.a.createElement("g",null,a.a.createElement("path",{d:"M26.09478,8.31652A13.1617,13.1617,0,0,0,15.97189,8.1603a13.079,13.079,0,0,0-10.09165.18746,0.88881,0.88881,0,0,0-.46865.84357V21.81371a0.89164,0.89164,0,0,0,.37492.81233,0.93487,0.93487,0,0,0,.90606.06249,11.44018,11.44018,0,0,1,8.9044,0c0.03124,0,.03124,0,0.03124.03124a0.06237,0.06237,0,0,1,.06249.03124,0.70873,0.70873,0,0,0,.125.03124h0.18746a0.5317,0.5317,0,0,0,.2187-0.03124,0.06237,0.06237,0,0,0,.06249-0.03124,0.70873,0.70873,0,0,1,.125-0.03124,11.464,11.464,0,0,1,8.9044,0,0.86486,0.86486,0,0,0,.40617.09373A1.05326,1.05326,0,0,0,26.251,22.626a0.94244,0.94244,0,0,0,.43741-0.81233V9.19133A1.04849,1.04849,0,0,0,26.09478,8.31652ZM24.78256,20.439a13.30172,13.30172,0,0,0-8.74818.34368A13.26349,13.26349,0,0,0,7.2862,20.439V9.8162a11.30538,11.30538,0,0,1,8.342.2187c0.03124,0,.03124,0,0.03124.03124a0.06237,0.06237,0,0,1,.06249.03124,0.70872,0.70872,0,0,0,.125.03124h0.34368a0.11478,0.11478,0,0,0,.09373-0.03124c0.03125,0,.06249-0.03124.09373-0.03124,0,0,.06249,0,0.06249-0.03124a11.51979,11.51979,0,0,1,8.37326-.2187V20.439H24.78256Z"}),a.a.createElement("path",{d:"M16.00313,17.81454a0.76028,0.76028,0,0,1-.74984-0.74984V13.378a0.74984,0.74984,0,0,1,1.49969,0V17.0647A0.74014,0.74014,0,0,1,16.00313,17.81454Z"})))};E.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,preserveAspectRatio:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},E.defaultProps={className:"book-icon",title:"NYPL Book SVG Icon",height:"24px",width:"24px",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet"};var x=E,k=function(e){var t=e.className,r=e.title,n=e.height,i=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:i,height:n,viewBox:o,className:"".concat(t," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,r),a.a.createElement("circle",{cx:"16",cy:"16",r:"1.9029"}),a.a.createElement("circle",{cx:"24",cy:"16",r:"1.9029"}),a.a.createElement("circle",{cx:"8",cy:"16",r:"1.9029"}))};k.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},k.defaultProps={className:"dotsIcon",title:"NYPL Dots SVG Icon",height:"24px",width:"24px",viewBox:"0 0 32 32",fill:"#000"};var S=k,O=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole,p=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d,focusable:p},a.a.createElement("title",{id:f},i),a.a.createElement("path",{d:"M17.91272,15.97339l5.65689-5.65689A1.32622,1.32622,0,0,0,21.694,8.44093L16.04938,14.0856l-5.65082-5.725A1.32671,1.32671,0,1,0,8.51,10.22454l5.66329,5.73712L8.43038,21.7046a1.32622,1.32622,0,1,0,1.87557,1.87557l5.73088-5.73088,5.65074,5.72441a1.32626,1.32626,0,1,0,1.88852-1.86261Z"}))};O.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,iconId:o.a.string,svgRole:o.a.string,focusable:o.a.bool},O.defaultProps={ariaHidden:!0,className:"x-icon",title:"Close Icon",fill:"#000",height:"32",width:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var M=O,D=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("g",null,a.a.createElement("path",{d:"M52.36107,47.9805,65.04781,35.29375a2.97433,2.97433,0,1,0-4.20634-4.20634L48.18214,43.74674,35.509,30.90731a2.97542,2.97542,0,0,0-4.23539,4.1802L43.97471,47.95417,31.095,60.83392a2.97433,2.97433,0,1,0,4.20634,4.20634L48.154,52.18757,60.82695,65.02573a2.9744,2.9744,0,0,0,4.23539-4.17729Z"}),a.a.createElement("path",{d:"M48.07141,96.142A48.0713,48.0713,0,1,1,82.07922,82.07849h0A47.94915,47.94915,0,0,1,48.07141,96.142Zm0-90.48193A42.41114,42.41114,0,1,0,78.07532,18.06775,42.29216,42.29216,0,0,0,48.07141,5.66Z"})))};D.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},D.defaultProps={ariaHidden:!0,className:"x-close-circle-icon",height:"48",preserveAspectRatio:"xMidYMid meet",title:"close",viewBox:"0 0 98 98",width:"48"};var T=D,L=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,i=e.height,o=e.title,s=e.viewBox,u=e.width,l=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),fill:n,height:i,viewBox:s,width:u,focusable:l},a.a.createElement("title",null,o),a.a.createElement("g",null,a.a.createElement("circle",{cx:"13.0944",cy:"7.375",r:"1.3192"}),a.a.createElement("circle",{cx:"19.6222",cy:"6.375",r:"1.3189"}),a.a.createElement("circle",{cx:"15.9997",cy:"10.5242",r:"1.3193"}),a.a.createElement("g",null,a.a.createElement("path",{d:"M14.1785,27.562a0.95,0.95,0,0,1-.95-0.95v-10.27L6.6875,9.2893a0.95,0.95,0,0,1,1.3956-1.29l7.0455,7.598v11.015A0.95,0.95,0,0,1,14.1785,27.562Z"}),a.a.createElement("path",{d:"M18.0387,24.794a0.95,0.95,0,0,1-.95-0.95V15.603l7.126-7.8149a0.95,0.95,0,0,1,1.41,1.2744l-6.636,7.2729v7.5083A0.95,0.95,0,0,1,18.0387,24.794Z"}))))};L.propTypes={ariaHidden:o.a.bool,className:o.a.string,fill:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},L.defaultProps={ariaHidden:!0,className:"filter-icon",fill:"#000",height:"32",title:"NYPL Filter SVG Icon",width:"32",viewBox:"0 0 32 32"};var C=L,j=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.title,o=e.viewBox,s=e.width,u=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),height:n,viewBox:o,width:s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M21.649 67.67a2.657 2.657 0 0 1-2.657-2.657V36.3L.706 16.584a2.657 2.657 0 1 1 3.902-3.608l19.697 21.242v30.795a2.657 2.657 0 0 1-2.656 2.656zM32.441 59.93a2.657 2.657 0 0 1-2.656-2.656V34.235l19.922-21.848a2.657 2.657 0 0 1 3.943 3.563L35.098 36.283v20.991a2.657 2.657 0 0 1-2.657 2.657zM29.36 10.54l7.325-7.325A1.884 1.884 0 0 0 34.02.552l-7.325 7.325L19.37.552a1.884 1.884 0 1 0-2.664 2.663l7.325 7.326-7.325 7.325a1.884 1.884 0 1 0 2.664 2.664l7.325-7.326 7.325 7.326a1.884 1.884 0 1 0 2.664-2.664z"}))};j.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},j.defaultProps={ariaHidden:!0,className:"filter-cancel-icon",height:"67.669",title:"NYPL Cancel Filter SVG Icon",width:"54.333",viewBox:"0 0 54.333 67.669"};var N=j,I=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M23.4829,9.5H7.83a1.0143,1.0143,0,1,1,0-2.0285H23.4829A1.0143,1.0143,0,1,1,23.4829,9.5Z"}),a.a.createElement("path",{d:"M23.4829,19.5285H7.83a1.0143,1.0143,0,1,1,0-2.0285H23.4829A1.0143,1.0143,0,1,1,23.4829,19.5285Z"}),a.a.createElement("path",{d:"M16.8125,14.5h-9a0.977,0.977,0,0,1-1-.9857A1.0155,1.0155,0,0,1,7.83,12.5h8.7651a1.1951,1.1951,0,0,1,1.2178,1A0.9889,0.9889,0,0,1,16.8125,14.5Z"}),a.a.createElement("path",{d:"M16.5947,25.4H7.83a1.0143,1.0143,0,1,1,0-2.0285h8.7651A1.0143,1.0143,0,1,1,16.5947,25.4Z"}))};I.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},I.defaultProps={className:"list-icon",title:"NYPL List SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var P=I,R=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("rect",{x:"8",y:"8",width:"7",height:"7"}),a.a.createElement("rect",{x:"17",y:"8",width:"7",height:"7"}),a.a.createElement("rect",{x:"8",y:"17",width:"7",height:"7"}),a.a.createElement("rect",{x:"17",y:"17",width:"7",height:"7"}))};R.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},R.defaultProps={className:"grid-icon",title:"NYPL Grid SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var F=R,Y=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("g",null,a.a.createElement("path",{d:"M47.1181,31.16626v9.81838a7.69657,7.69657,0,0,1-7.69659,7.69659H14.65722a7.69657,7.69657,0,0,1-7.69659-7.69659V16.22035a7.69657,7.69657,0,0,1,7.69659-7.69659h24.7643A7.68562,7.68562,0,0,1,46.04723,12.318v-.029l4.98249-4.98249A14.61787,14.61787,0,0,0,39.42151,1.56313H14.65722A14.67381,14.67381,0,0,0,0,16.22035v24.7643A14.67381,14.67381,0,0,0,14.65722,55.64186h24.7643A14.67381,14.67381,0,0,0,54.07873,40.98464V24.20557Z"}),a.a.createElement("path",{d:"M66.88559,1.11424q-.04628-.04628-.09412-.09092a3.8044,3.8044,0,0,0-5.28616.091L52.99074,9.62894,47.1181,15.50158,32.5635,30.05624,17.90785,15.40066a3.80454,3.80454,0,0,0-5.39511,5.3657l.01458.01458L32.5635,40.81739,47.1181,26.26266,54.07873,19.302,66.88565,6.49491A3.80469,3.80469,0,0,0,66.88559,1.11424Z"})))};Y.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},Y.defaultProps={ariaHidden:!0,className:"apply-icon",height:"68",preserveAspectRatio:"xMidYMid meet",title:"apply",viewBox:"0 0 68 55",width:"55"};var B=Y,H=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.title,s=e.viewBox,u=e.width,l=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,viewBox:s,width:u,focusable:l},a.a.createElement("title",{id:i},o),a.a.createElement("path",{d:"M23.26,13.1819a1.2736,1.2736,0,0,0-1.7332,0L17,17.6253V6.1041a1.0119,1.0119,0,1,0-2,0V17.6253l-4.5268-4.4434a1.2212,1.2212,0,0,0-1.6916,0,1.17,1.17,0,0,0-.0208,1.65L15.1786,21.26l0,0.0083a1.1694,1.1694,0,0,0,1.6488,0l0.0048-.0083L23.26,14.8318A1.17,1.17,0,0,0,23.26,13.1819Z"}),a.a.createElement("rect",{x:"14.8333",y:"16.3602",width:"2.3333",height:"16.6711",rx:"1.1667",ry:"1.1667",transform:"translate(-8.6957 40.6957) rotate(-90)"}))};H.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},H.defaultProps={ariaHidden:!0,className:"download-icon",height:"32",title:"Download",viewBox:"0 0 32 32",width:"32"};var U=H,z=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.fill,u=e.ariaHidden,l=e.labelledById,c=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":u,"aria-labelledby":l,fill:s,focusable:c},a.a.createElement("title",{id:l},i),a.a.createElement("path",{d:"M10.96075,11l4.60907-3.19434a1,1,0,0,0-1.13965-1.64355L5.939,12.04688l8.83594,6.248a0.99981,0.99981,0,0,0,1.1543-1.63281L10.75061,13H23v8H6a1,1,0,0,0,0,2H25V11H10.96075Z"}))};z.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,labelledById:o.a.string.isRequired,focusable:o.a.bool},z.defaultProps={ariaHidden:!0,className:"reset-icon",title:"NYPL Reset SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32",fill:"#000",labelledById:""};var q=z,V=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M16,3A13,13,0,1,1,3,16,13.0147,13.0147,0,0,1,16,3m0-3A16,16,0,1,0,32,16,16,16,0,0,0,16,0h0Z"}),a.a.createElement("path",{d:"M24,14H8a2.0025,2.0025,0,0,0,0,4H24A2.0025,2.0025,0,0,0,24,14Z"}))};V.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},V.defaultProps={className:"circle-dash-icon",title:"NYPL Circle Dash SVG Icon",width:"24",height:"24",viewBox:"0 0 32 32",fill:"#000"};var W=V,K=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("g",null,a.a.createElement("path",{d:"M7.50842,19.29355A0.94557,0.94557,0,0,1,6.56284,18.348V15.376a9.47232,9.47232,0,0,1,18.94464,0v2.91654a0.94558,0.94558,0,0,1-1.89117,0V15.376a7.58115,7.58115,0,0,0-15.16231,0v2.972A0.94557,0.94557,0,0,1,7.50842,19.29355Z"}),a.a.createElement("g",null,a.a.createElement("path",{d:"M21.82651,23.66863a0.94557,0.94557,0,0,1-.94558-0.94558V16.22111a0.94558,0.94558,0,0,1,1.89117,0V22.723A0.94557,0.94557,0,0,1,21.82651,23.66863Z"}),a.a.createElement("path",{d:"M10.24381,23.75a0.94557,0.94557,0,0,1-.94558-0.94558V16.22111a0.94558,0.94558,0,1,1,1.89117,0v6.58331A0.94557,0.94557,0,0,1,10.24381,23.75Z"}))))};K.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},K.defaultProps={className:"audio-headphone-icon",title:"NYPL Audio/Headphone SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var G=K,Q=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M12.25,16a3.738,3.738,0,0,0,1.09839,2.65161l5.30328-5.30328A3.75,3.75,0,0,0,12.25,16Z",fill:"none"}),a.a.createElement("path",{d:"M16,19.75a3.75,3.75,0,0,0,2.65167-6.40167l-5.30328,5.30328A3.738,3.738,0,0,0,16,19.75Z"}),a.a.createElement("path",{d:"M24.4411,7.5589A11.93752,11.93752,0,1,0,27.9375,16,11.90013,11.90013,0,0,0,24.4411,7.5589ZM12.25,16a3.75013,3.75013,0,1,1,1.09839,2.65161A3.75,3.75,0,0,1,12.25,16ZM16,26.9375a10.85556,10.85556,0,0,1-6.99524-2.52808l4.41772-4.41772a4.75228,4.75228,0,0,0,6.56927-6.56927l4.41766-4.41766A10.9387,10.9387,0,0,1,16,26.9375Z"}))};Q.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},Q.defaultProps={className:"media-blu-ray-icon",title:"NYPL Media/Blu-Ray SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var J=Q,Z=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M16,4.0625A11.9375,11.9375,0,1,0,27.9375,16,11.9375,11.9375,0,0,0,16,4.0625ZM16,19.75A3.75,3.75,0,1,1,19.75,16,3.75,3.75,0,0,1,16,19.75Z"}))};Z.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},Z.defaultProps={className:"audio-disc-icon",title:"NYPL Audio Disc SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var X=Z,$=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":u,fill:s,focusable:l},a.a.createElement("title",null,i),a.a.createElement("circle",{cx:"16",cy:"16",r:"3.75",fill:"none"}),a.a.createElement("path",{d:"M16,10.625A5.375,5.375,0,1,0,21.375,16,5.381,5.381,0,0,0,16,10.625Zm0,9.125A3.75,3.75,0,1,1,19.75,16,3.75,3.75,0,0,1,16,19.75Z"}),a.a.createElement("path",{d:"M16,4.0625A11.9375,11.9375,0,1,0,27.9375,16,11.9375,11.9375,0,0,0,16,4.0625Zm0,19.65625A7.71875,7.71875,0,1,1,23.71875,16,7.72719,7.72719,0,0,1,16,23.71875Z"}))};$.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},$.defaultProps={className:"dvd-disc-icon",title:"NYPL DVD Disc SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var ee=$,te=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M7.132,6.0411H24.97514l0.16949,5.36219h-0.755a6.43678,6.43678,0,0,0-1.40988-3.28973q-0.85518-.76272-3.5979-0.76272H17.62525V23.499q0,1.824.57012,2.25992a5.26381,5.26381,0,0,0,2.49619.57525v0.58553H11.49263V26.3342a4.36809,4.36809,0,0,0,2.49619-.66,4.1201,4.1201,0,0,0,.49307-2.545V7.35083h-1.772a6.022,6.022,0,0,0-3.56709.755,5.57976,5.57976,0,0,0-1.42529,3.29744H6.9471Z"}))};te.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},te.defaultProps={className:"large-print-icon",title:"NYPL Large Print SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var re=te,ne=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M23.02352,5.00588H9.00588a2.38332,2.38332,0,0,0-2,2.00588V24.99412A2.45762,2.45762,0,0,0,9,27.00588H22.99412A2.22259,2.22259,0,0,0,24.98824,25V6.98843a1.97259,1.97259,0,0,0-1.6106-1.94478ZM23,23.99608H9V7.0002l14.02352-.01178Z"}),a.a.createElement("path",{d:"M20.61338,9.99038h-9.186a0.456,0.456,0,0,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),a.a.createElement("path",{d:"M20.642,13H11.456a0.50163,0.50163,0,1,1,0-1h9.12081a0.674,0.674,0,0,1,.6497.49219A0.74346,0.74346,0,0,1,20.642,13h0Z"}),a.a.createElement("path",{d:"M20.65624,15.956h-9.186a0.456,0.456,0,1,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),a.a.createElement("path",{d:"M20.55608,18.9121h-9.186a0.456,0.456,0,1,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),a.a.createElement("path",{d:"M20.61338,21.98237h-9.186a0.456,0.456,0,0,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}))};ne.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},ne.defaultProps={className:"eReader-icon",title:"NYPL eReader SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var ae=ne,ie=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M26.45536,26.45536H16.80078L4.92843,14.58216l9.65373-9.65373,11.8732,11.87235v9.65458ZM17.87606,23.859h5.983v-5.983L14.58216,8.5992l-5.983,5.983Z"}))};ie.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},ie.defaultProps={className:"tag-icon",title:"NYPL Tag SVG Icon",width:"24",height:"24",viewBox:"0 0 32 32"};var oe=ie,se=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.size,u=e.style,l=e.fill,c=e.ariaHidden,f=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),style:u,fill:l,"aria-hidden":c,focusable:f},a.a.createElement("title",null,i),function(e){return"large"===e?a.a.createElement("g",null,a.a.createElement("path",{d:"M15.9996,11.594a2.00366,2.00366,0,1,1-2.00366,2.00366A2.00388,2.00388,0,0,1,15.9996,11.594m0-1.68708a3.69114,3.69114,0,1,0,3.69074,3.69074A3.69513,3.69513,0,0,0,15.9996,9.90695"}),a.a.createElement("path",{d:"M27.23733,10.69471a11.53736,11.53736,0,0,0-2.931-5.21513c-0.03126-.03206-0.0577-0.06732-0.089-0.09938-0.03286-.03286-0.06973-0.06011-0.10259-0.093a11.5287,11.5287,0,0,0-5.22074-2.935,11.3323,11.3323,0,0,0-5.789,0,11.52609,11.52609,0,0,0-5.21994,2.935c-0.03366.03286-.06973,0.06011-0.10259,0.093-0.03206.03206-.05851,0.06732-0.08976,0.09938a11.52831,11.52831,0,0,0-2.93015,5.21513,11.69294,11.69294,0,0,0,0,5.80581,11.52676,11.52676,0,0,0,2.93015,5.21593c0.03126,0.03206.05771,0.06732,0.08976,0.09858,0.03286,0.03366.06893,0.06091,0.10259,0.09377L16,30.02362l8.11482-8.11482c0.03286-.03286.06973-0.06011,0.10259-0.09377,0.03126-.03126.05771-0.06652,0.089-0.09858a11.5358,11.5358,0,0,0,2.931-5.21593,11.693,11.693,0,0,0,0-5.80581M22.79321,20.94463l-3.89912,3.89912L16,27.73784l-2.89489-2.89409L9.206,20.94383l-0.55221-.55221A10.00247,10.00247,0,0,1,8.653,6.8044l0.55381-.553a9.97128,9.97128,0,0,1,13.58562-.0008L23.347,6.8052a10.00228,10.00228,0,0,1-.0008,13.58642Z"})):a.a.createElement("g",null,a.a.createElement("path",{d:"M25.70866,11.094a9.9406,9.9406,0,0,0-2.53-4.49511c-0.027-.02763-0.04981-0.058-0.07679-0.08566-0.02837-.02832-0.06019-0.05181-0.08855-0.08013A9.95556,9.95556,0,0,0,18.50669,3.9033a9.79611,9.79611,0,0,0-4.9971,0,9.95331,9.95331,0,0,0-4.5059,2.52975c-0.02906.02832-.06019,0.05181-0.08855,0.08013-0.02767.02763-.0505,0.058-0.07748,0.08566A9.9328,9.9328,0,0,0,6.30831,11.094a10.06419,10.06419,0,0,0,0,5.00424A9.93146,9.93146,0,0,0,8.83765,20.594c0.027,0.02763.04981,0.058,0.07748,0.085,0.02837,0.029.0595,0.0525,0.08855,0.08082l7.0048,6.99447,7.0048-6.99447c0.02837-.02832.06019-0.05181,0.08855-0.08082,0.027-.02694.04981-0.05734,0.07679-0.085a9.93926,9.93926,0,0,0,2.53-4.4958,10.06422,10.06422,0,0,0,0-5.00424m-4.20385,8.54915-3.15475,3.1501-2.34158,2.33813-2.34223-2.33813L10.5115,19.64246l-0.44679-.44613a8.07225,8.07225,0,0,1-.00065-10.97711l0.44808-.44678a8.0764,8.0764,0,0,1,10.992-.00065L21.9529,8.21987a8.0721,8.0721,0,0,1-.00065,10.97646Z"}),a.a.createElement("circle",{cx:"15.9996",cy:"13.59769",r:"2.00366"}))}(s))};se.propTypes={size:o.a.string,className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,style:o.a.object,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},se.defaultProps={className:"locatorIcon",title:"NYPL Locator SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var ue=se,le=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.focusable;return a.a.createElement("svg",{viewBox:t,width:n,height:r,className:"".concat(o," svgIcon"),fill:u,style:s,"aria-hidden":l,focusable:c},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M26.22029,10.40244H5.77971a1.09221,1.09221,0,1,1,0-2.18441H26.22029A1.09221,1.09221,0,1,1,26.22029,10.40244Z"}),a.a.createElement("path",{d:"M26.22029,16.95568H5.77971a1.09221,1.09221,0,0,1,0-2.18441H26.22029A1.09221,1.09221,0,0,1,26.22029,16.95568Z"}),a.a.createElement("path",{d:"M26.22029,23.782H5.77971a1.09221,1.09221,0,1,1,0-2.18441H26.22029A1.09221,1.09221,0,1,1,26.22029,23.782Z"}))};le.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,focusable:o.a.bool},le.defaultProps={className:"menuIcon",title:"NYPL Hamburger Menu SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var ce=le,fe=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole,p=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d,focusable:p},a.a.createElement("title",{id:f},i),a.a.createElement("path",{d:"M16.07184,6.52418c1.24313,0,2.29334,1.39823,2.29334,3.05329s-1.05022,3.05329-2.29334,3.05329S13.7785,11.23252,13.7785,9.57746s1.05022-3.05329,2.29334-3.05329m0-1.8c-2.26069,0-4.09334,2.17289-4.09334,4.85329s1.83265,4.85329,4.09334,4.85329,4.09334-2.17289,4.09334-4.85329-1.83265-4.85329-4.09334-4.85329Z",opacity:"0.85"}),a.a.createElement("path",{d:"M25.28125,27.34375H21a1,1,0,0,1,0-2h4.28125l-2.377-6.2041a.28873.28873,0,0,0-.10547-.11719,47.03461,47.03461,0,0,0-6.7832-.585,48.40643,48.40643,0,0,0-6.957.6084h.00049c.0249,0-.00244.03418-.02246.085l-2.355,6.14551L11,25.34375a1,1,0,0,1,0,2H6.71826a2.04254,2.04254,0,0,1-1.90088-2.791l2.355-6.14551a2.07691,2.07691,0,0,1,1.57617-1.33789,50.4409,50.4409,0,0,1,7.26709-.63184,48.54187,48.54187,0,0,1,7.11816.61621,2.19071,2.19071,0,0,1,1.63184,1.35352l2.417,6.14551a2.04377,2.04377,0,0,1-1.90137,2.791Z",opacity:"0.85"}))};fe.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,iconId:o.a.string,svgRole:o.a.string,focusable:o.a.bool},fe.defaultProps={className:"loginIcon",title:"Log in to your account",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var de=fe,pe=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole,p=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d,focusable:p},a.a.createElement("title",{id:f},i),a.a.createElement("ellipse",{cx:"16.07184",cy:"9.57746",rx:"4.09334",ry:"4.85329"}),a.a.createElement("path",{d:"M25.25882,27.3451,6.61176,27.33725a2.05352,2.05352,0,0,1-1.87843-2.5451l2.46189-6.50245a2.1203,2.1203,0,0,1,1.34706-1.18431,45.76876,45.76876,0,0,1,7.00567-.657c2.94823,0,5.86851.45206,7.09041.53934a2.20375,2.20375,0,0,1,1.97255,1.1098l2.62353,6.64706A2.01818,2.01818,0,0,1,25.25882,27.3451Z"}))};pe.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,iconId:o.a.string,svgRole:o.a.string,focusable:o.a.bool},pe.defaultProps={className:"loginIcon",title:"You are logged in to your account",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var he=pe,ve=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),style:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M35.951 9.268a2.826 2.826 0 1 0-4.084 3.906l5.418 5.664H13.187a2.826 2.826 0 0 0 0 5.652h24.258l-5.742 6.222a2.826 2.826 0 0 0 4.154 3.834l11.916-12.917z"}),a.a.createElement("path",{d:"M45.173 39.56H5.652V5.653h17.366a2.826 2.826 0 0 0 0-5.652H0v45.212h45.173a2.826 2.826 0 0 0 0-5.651z"}))};ve.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,style:o.a.object,ariaHidden:o.a.bool,focusable:o.a.bool},ve.defaultProps={className:"logoutIcon",height:"45.212",title:"NYPL Logout SVG Icon",viewBox:"0 0 47.99 45.212",width:"47.99"};var me=ve,ye=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.focusable;return a.a.createElement("svg",{viewBox:t,width:n,height:r,className:"".concat(o," svgIcon"),fill:u,style:s,"aria-hidden":l,focusable:c},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M25.26014,23.627l-3.76-3.75948a8.53632,8.53632,0,1,0-2.07145,1.85393l3.86877,3.86822A1.38781,1.38781,0,0,0,25.26014,23.627ZM9.109,14.52943a5.75012,5.75012,0,1,1,5.75012,5.74948A5.75662,5.75662,0,0,1,9.109,14.52943Z"}))};ye.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,focusable:o.a.bool},ye.defaultProps={ariaHidden:!0,className:"searchIcon",title:"NYPL Search SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var ge=ye,be=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M25.51266,9.42987a1.40287,1.40287,0,0,0-1.94927.03357L12.891,20.13586,7.48668,14.73156a1.40294,1.40294,0,1,0-1.9841,1.984L12.891,24.10406,25.5474,11.44754A1.403,1.403,0,0,0,25.51266,9.42987Z"}))};be.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},be.defaultProps={className:"check-solo-icon",title:"NYPL Check Solo SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var Ae=be,_e=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.length,o=e.stroke,s=e.strokeWidth,u=e.title,l=e.viewBox,c=e.width,f=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),height:n,viewBox:l,width:c,focusable:f},a.a.createElement("title",null,u),a.a.createElement("line",{x1:"0",y1:"0",x2:i,y2:"0",stroke:o,strokeWidth:s}))};_e.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,length:o.a.string,stroke:o.a.string,strokeWidth:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},_e.defaultProps={ariaHidden:!0,className:"divideLine-icon",height:"2",length:"84",stroke:"#000",strokeWidth:"2",title:"NYPL Divide Line SVG Icon",viewBox:"0 0 84 2",width:"84"};var we=_e,Ee=function(e){var t=e.ariaHidden,r=e.className,n=e.stroke,i=e.height,o=e.title,s=e.viewBox,u=e.width,l=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),height:i,viewBox:s,width:u,focusable:l,fill:"none"},a.a.createElement("title",null,o),a.a.createElement("path",{d:"M1 1L9 9L17 1",stroke:n}))};Ee.propTypes={ariaHidden:o.a.bool,className:o.a.string,stroke:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},Ee.defaultProps={ariaHidden:!0,className:"down-wedge-icon",stroke:"#000",height:"10",title:"NYPL Down Wedge SVG Icon",width:"18",viewBox:"0 0 18 10"};var xe=Ee,ke=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,i=e.height,o=e.title,s=e.viewBox,u=e.width,l=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),fill:n,height:i,viewBox:s,width:u,focusable:l},a.a.createElement("title",null,o),a.a.createElement("polygon",{points:"13 8.437 20.563 16 13 23.563 11.593 22.155 17.748 16 11.593 9.845 13 8.437"}))};ke.propTypes={ariaHidden:o.a.bool,className:o.a.string,fill:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},ke.defaultProps={ariaHidden:!0,className:"right-wedge-icon",fill:"#000",height:"32",title:"NYPL Right Wedge SVG Icon",width:"32",viewBox:"0 0 32 32"};var Se=ke,Oe=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,i=e.height,o=e.title,s=e.viewBox,u=e.width,l=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),fill:n,height:i,viewBox:s,width:u,focusable:l},a.a.createElement("title",null,o),a.a.createElement("polygon",{points:"19.156 23.563 11.593 16 19.156 8.438 20.563 9.845 14.408 16 20.563 22.155 19.156 23.563"}))};Oe.propTypes={ariaHidden:o.a.bool,className:o.a.string,fill:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},Oe.defaultProps={ariaHidden:!0,className:"left-wedge-icon",fill:"#000",height:"32",title:"NYPL Left Wedge SVG Icon",width:"32",viewBox:"0 0 32 32"};var Me=Oe,De=function(e){var t=e.className,r=e.title,n=e.height,i=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:i,height:n,viewBox:o,className:"".concat(t," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,r),a.a.createElement("path",{d:"M7.96875,1A6.96875,6.96875,0,1,1,1,7.96875,6.97663,6.97663,0,0,1,7.96875,1m0-1A7.96875,7.96875,0,1,0,15.9375,7.96875,7.96873,7.96873,0,0,0,7.96875,0Z"}))};De.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},De.defaultProps={className:"radioInactiveIcon",title:"NYPL Radio Inactive Icon",height:"16px",width:"16px",viewBox:"0 0 16 16",fill:"#000"};var Te=De,Le=function(e){var t=e.className,r=e.title,n=e.height,i=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:i,height:n,viewBox:o,className:"".concat(t," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,r),a.a.createElement("path",{d:"M7.96875,4.64844A3.32031,3.32031,0,1,1,4.64844,7.96875,3.32407,3.32407,0,0,1,7.96875,4.64844M7.96875,0A7.96875,7.96875,0,1,0,15.9375,7.96875,7.96875,7.96875,0,0,0,7.96875,0Z"}))};Le.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},Le.defaultProps={className:"radioActiveIcon",title:"NYPL Radio Active Icon",height:"16px",width:"16px",viewBox:"0 0 16 16",fill:"#000"};var Ce=Le,je=function(e){var t=e.className,r=e.title,n=e.height,i=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:i,height:n,viewBox:o,className:"".concat(t," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,r),a.a.createElement("circle",{cx:"6",cy:"6",r:"6",fill:s}))};je.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},je.defaultProps={className:"smallDotClosedIcon",title:"NYPL Small Dot Closed Icon",height:"12px",width:"12px",viewBox:"0 0 12 12",fill:"#010101"};var Ne=je,Ie=function(e){var t=e.className,r=e.title,n=e.height,i=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:i,height:n,viewBox:o,className:"".concat(t," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,r),a.a.createElement("path",{d:"M6,2A4,4,0,1,1,2,6,4.00454,4.00454,0,0,1,6,2M6,0a6,6,0,1,0,6,6A6,6,0,0,0,6,0Z",fill:s}))};Ie.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},Ie.defaultProps={className:"smallDotOpenIcon",title:"NYPL Small Dot Open Icon",height:"12px",width:"12px",viewBox:"0 0 12 12",fill:"#010101"};var Pe=Ie,Re=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.ariaHidden,l=e.preserveAspectRatio,c=e.iconId,f=e.svgRole,d=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),style:s,"aria-hidden":u,preserveAspectRatio:l,"aria-labelledby":c,role:f,focusable:d},a.a.createElement("title",{id:c},i),a.a.createElement("path",{d:"M13.329 9.245a1.466 1.466 0 0 0 .766-.217l9.536-5.834 9.536 5.834a1.47 1.47 0 0 0 1.535-2.509L24.398.216a1.473 1.473 0 0 0-1.535 0L12.56 6.519a1.47 1.47 0 0 0 .769 2.726zM45.811 36.982h-1.564V20.08h1.423a1.51 1.51 0 0 0 0-3.018h-5.817a1.51 1.51 0 0 0 0 3.018h1.376v16.902H6.218V20.08h1.8a1.51 1.51 0 0 0 0-3.018H2.202a1.51 1.51 0 0 0 0 3.018h.997v16.902H1.47a1.51 1.51 0 0 0 0 3.018h44.341a1.51 1.51 0 0 0 0-3.018z"}),a.a.createElement("path",{d:"M21.007 35.128a1.504 1.504 0 0 0 1.509-1.47V22.512a5.435 5.435 0 1 0-10.866 0v11.146a1.51 1.51 0 0 0 3.019 0V22.512a2.424 2.424 0 1 1 4.829 0v11.146a1.504 1.504 0 0 0 1.509 1.47zM34.287 35.128a1.504 1.504 0 0 0 1.509-1.47V22.512a5.435 5.435 0 1 0-10.866 0v11.146a1.51 1.51 0 0 0 3.019 0V22.512a2.424 2.424 0 1 1 4.829 0v11.146a1.504 1.504 0 0 0 1.509 1.47zM2.06 14.647h43.613a1.51 1.51 0 0 0 0-3.018H2.06a1.51 1.51 0 0 0 0 3.018z"}))};Re.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,svgRole:o.a.string,iconId:o.a.string,focusable:o.a.bool},Re.defaultProps={ariaHidden:!0,className:"bldgIcon",height:"40",preserveAspectRatio:"xMidYMid meet",svgRole:"img",title:"NYPL Building Icon",viewBox:"0 0 47.282 40",width:"47.282"};var Fe=Re,Ye=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole,f=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),"aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c,focusable:f},a.a.createElement("title",{id:l},i),a.a.createElement("path",{d:"M17.749 26.818L6.205 15.288 17.832 3.592a2.075 2.075 0 0 0 .01-2.901 2.278 2.278 0 0 0-3.243-.026L0 15.225 14.693 29.87a2.16 2.16 0 0 0 3.065-.016 2.16 2.16 0 0 0-.01-3.036z"}))};Ye.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,svgRole:o.a.string,iconId:o.a.string,focusable:o.a.bool},Ye.defaultProps={ariaHidden:!0,className:"GenericWedgeIcon",title:"NYPL Wedge Down Icon",width:"30.5",height:"18.428",viewBox:"0 0 18.428 30.5",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var Be=Ye,He=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole,f=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),"aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c,focusable:f},a.a.createElement("title",{id:l},i),a.a.createElement("polygon",{points:"16.959 24.065 9.905 16.963 27.298 16.963 27.298 14.548 9.905 14.548 16.959 7.397 15.026 5.417 4.688 15.707 15.026 25.998 16.959 24.065"}))};He.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,svgRole:o.a.string,iconId:o.a.string,focusable:o.a.bool},He.defaultProps={ariaHidden:!0,className:"leftArrowIcon",title:"NYPL Left Arrow Icon",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var Ue=He,ze=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole,f=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),"aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c,focusable:f},a.a.createElement("title",{id:l},i),a.a.createElement("polygon",{points:"16.959 25.998 27.298 15.707 16.959 5.417 15.026 7.397 22.08 14.548 4.688 14.548 4.687 16.963 22.08 16.963 15.026 24.065 16.959 25.998"}))};ze.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,svgRole:o.a.string,iconId:o.a.string,focusable:o.a.bool},ze.defaultProps={ariaHidden:!0,className:"rightArrowIcon",title:"NYPL Right Arrow Icon",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var qe=ze,Ve=function(e){var t=e.ariaHidden,r=e.className,n=e.iconId,i=e.height,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":n,className:"".concat(r," svgIcon"),height:i,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:n},s),a.a.createElement("path",{d:"M7.1267,13.68408v9.7265H0V35.30576H7.1267V67.94592H21.76584V35.30576H31.588s.9207-5.70326,1.36529-11.94H21.82116v-8.1318a3.45468,3.45468,0,0,1,3.17363-2.85086h7.9757V0H22.12679C6.76506,0,7.1267,11.90635,7.1267,13.68408Z"}))};Ve.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},Ve.defaultProps={ariaHidden:!0,className:"face-book-icon",height:"32",preserveAspectRatio:"xMidYMid meet",title:"Facebook",viewBox:"0 0 32 67",width:"67"};var We=Ve,Ke=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("path",{d:"M68,6.51074a27.99231,27.99231,0,0,1-8.01276,2.18635,13.937,13.937,0,0,0,6.13419-7.68177,28.01282,28.01282,0,0,1-8.859,3.36949A13.94135,13.94135,0,0,0,33.48906,17.04873,39.66941,39.66941,0,0,1,4.73387,2.54149,13.85672,13.85672,0,0,0,9.05141,21.0789a13.94473,13.94473,0,0,1-6.319-1.73673c-.001.058-.0012.11605-.0012.17455a13.91,13.91,0,0,0,11.1911,13.61485,14.05089,14.05089,0,0,1-6.30034.23787,13.95724,13.95724,0,0,0,13.03232,9.6428A28.07735,28.07735,0,0,1,3.328,48.95584,28.53232,28.53232,0,0,1,0,48.762,39.625,39.625,0,0,0,21.38562,55c25.66113,0,39.69344-21.15722,39.69344-39.50546q0-.90295-.04031-1.79619A28.279,28.279,0,0,0,68,6.51074Z"}))};Ke.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},Ke.defaultProps={ariaHidden:!0,className:"twitter-icon",height:"68",preserveAspectRatio:"xMidYMid meet",title:"Twitter",viewBox:"0 0 68 55",width:"55"};var Ge=Ke,Qe=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("path",{d:"M16.644 0v12.131h11.424v7.534H16.644v12.309a19.61 19.61 0 0 0 .441 5.357 3.664 3.664 0 0 0 1.652 1.895 6.971 6.971 0 0 0 3.656.953 13.194 13.194 0 0 0 7.274-2.37v7.573a28.934 28.934 0 0 1-5.589 2.031 23.648 23.648 0 0 1-5.413.586 18.768 18.768 0 0 1-5.837-.831A12.607 12.607 0 0 1 8.5 44.796a8.592 8.592 0 0 1-2.484-3.273 14.11 14.11 0 0 1-.692-5.023V19.665H0v-6.79a14.235 14.235 0 0 0 4.862-2.634 13.131 13.131 0 0 0 3.247-4.124A18.576 18.576 0 0 0 9.796 0z"}))};Qe.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},Qe.defaultProps={ariaHidden:!0,className:"tumblr-icon",height:"47.999",preserveAspectRatio:"xMidYMid meet",title:"Tumblr",viewBox:"0 0 29.667 47.999",width:"29.667"};var Je=Qe,Ze=function(e){var t=e.ariaHidden,r=e.className,n=e.iconId,i=e.height,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":n,className:"".concat(r," svgIcon"),height:i,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:n},s),a.a.createElement("path",{d:"M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z"}))};Ze.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},Ze.defaultProps={ariaHidden:!0,className:"youtube-icon",height:"48",preserveAspectRatio:"xMidYMid meet",title:"Youtube",viewBox:"0 0 24 24",width:"48"};var Xe=Ze,$e=function(e){var t=e.ariaHidden,r=e.className,n=e.iconId,i=e.height,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":n,className:"".concat(r," svgIcon"),height:i,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:n},s),a.a.createElement("path",{d:"M47.832 41.697a6.167 6.167 0 0 1-6.135 6.136H6.135A6.167 6.167 0 0 1 0 41.697V6.135A6.167 6.167 0 0 1 6.135 0h35.562a6.167 6.167 0 0 1 6.135 6.135zm-5.418-21.455H38.21a13.628 13.628 0 0 1 .622 4.079 14.651 14.651 0 0 1-14.885 14.418A14.644 14.644 0 0 1 9.093 24.321a13.621 13.621 0 0 1 .623-4.08H5.325v20.18a1.888 1.888 0 0 0 1.9 1.9h33.29a1.887 1.887 0 0 0 1.899-1.9zm-18.467-5.73a9.46 9.46 0 0 0-9.591 9.311 9.46 9.46 0 0 0 9.591 9.31 9.466 9.466 0 0 0 9.623-9.31 9.466 9.466 0 0 0-9.623-9.311zm18.467-7.038a2.153 2.153 0 0 0-2.15-2.148h-5.418a2.153 2.153 0 0 0-2.148 2.148v5.138a2.153 2.153 0 0 0 2.148 2.15h5.419a2.153 2.153 0 0 0 2.149-2.15z"}))};$e.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},$e.defaultProps={ariaHidden:!0,className:"instagram-icon",height:"47.832",preserveAspectRatio:"xMidYMid meet",title:"Instagram",viewBox:"0 0 47.832 47.833",width:"47.832"};var et=$e,tt=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("path",{d:"M46.052 36.91H1.948A1.938 1.938 0 0 1 0 34.981V1.927A1.937 1.937 0 0 1 1.948 0h44.104A1.938 1.938 0 0 1 48 1.927v33.055a1.938 1.938 0 0 1-1.948 1.927zM3.896 33.054h40.208V3.854H3.896z"}),a.a.createElement("path",{d:"M24 25.007a1.915 1.915 0 0 1-1.176-.402l-11.93-9.251a1.925 1.925 0 0 1 2.352-3.049L24 20.644l10.754-8.339a1.925 1.925 0 0 1 2.352 3.049l-11.93 9.25a1.917 1.917 0 0 1-1.176.403z"}))};tt.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},tt.defaultProps={ariaHidden:!0,className:"envelope-icon",height:"48",preserveAspectRatio:"xMidYMid meet",title:"mail",viewBox:"0 0 48 36.909",width:"36.909"};var rt=tt,nt=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("path",{d:"M61.554 46.28H6.824A6.832 6.832 0 0 1 0 39.453V6.824A6.833 6.833 0 0 1 6.825 0h54.729a6.832 6.832 0 0 1 6.823 6.825v32.63a6.832 6.832 0 0 1-6.823 6.824zM6.824 3.31A3.52 3.52 0 0 0 3.31 6.824v32.63a3.52 3.52 0 0 0 3.516 3.515h54.729a3.519 3.519 0 0 0 3.514-3.516V6.824a3.519 3.519 0 0 0-3.514-3.515z"}),a.a.createElement("path",{d:"M56.943 14.56H42.59a1.707 1.707 0 1 1 0-3.413h14.353a1.707 1.707 0 0 1 0 3.413zM56.943 20.971H42.59a1.707 1.707 0 1 1 0-3.413h14.353a1.707 1.707 0 1 1 0 3.413zM56.943 27.382H42.59a1.707 1.707 0 1 1 0-3.414h14.353a1.707 1.707 0 1 1 0 3.414zM22.471 14.335c1.003 0 1.851 1.129 1.851 2.465s-.848 2.464-1.85 2.464-1.852-1.128-1.852-2.464.848-2.465 1.851-2.465m0-3.111c-2.597 0-4.703 2.496-4.703 5.576s2.106 5.576 4.703 5.576 4.703-2.497 4.703-5.576-2.106-5.576-4.703-5.576zM22.403 24.634a49.169 49.169 0 0 0-7.08.613 2.834 2.834 0 0 0-2.175 1.805l-2.26 5.898a2.793 2.793 0 0 0 2.601 3.81h4.106a1.793 1.793 0 0 0 0-3.587l-2.934-.046 1.666-4.35a44.936 44.936 0 0 1 6.076-.557 42.747 42.747 0 0 1 5.961.49l1.71 4.463h-2.892a1.793 1.793 0 0 0 0 3.586h4.105a2.794 2.794 0 0 0 2.6-3.816l-2.318-5.892a2.92 2.92 0 0 0-2.215-1.817 47.371 47.371 0 0 0-6.95-.6z"}))};nt.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},nt.defaultProps={ariaHidden:!0,className:"library-card-icon",height:"46.279",preserveAspectRatio:"xMidYMid meet",title:"library-card",viewBox:"0 0 68.377 46.279",width:"68.377"};var at=nt,it=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.title,o=e.viewBox,s=e.width,u=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),height:n,viewBox:o,width:s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M9.826 45.06l28.026-28.026-6.964-6.964L2.862 38.096 0 47.923l9.826-2.863zM33.409 7.626l2.792-2.792 6.965 6.964-2.793 2.793zM38.243 2.793L41.036 0 48 6.965l-2.792 2.792z"}))};it.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},it.defaultProps={ariaHidden:!0,className:"filter-cancel-icon",height:"47.923",title:"NYPL Cancel Filter SVG Icon",width:"48",viewBox:"0 0 48 47.923"};var ot=it,st=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("path",{d:"M45.163 50.301l-6.19-32.137a6.754 6.754 0 0 0-6.75-5.289h-.07V6.25A6.25 6.25 0 0 0 25.902 0h-6.5a6.25 6.25 0 0 0-6.25 6.25v6.625h-.102a6.754 6.754 0 0 0-6.75 5.289L.11 50.3a6.568 6.568 0 0 0 6.75 7.574h31.551a6.568 6.568 0 0 0 6.75-7.574zM17.682 6.671a2.235 2.235 0 0 1 2.234-2.234h5.533a2.235 2.235 0 0 1 2.234 2.235v6.203H17.682zm22.925 46.492a2.891 2.891 0 0 1-2.195.962H6.862a2.89 2.89 0 0 1-2.195-.962 2.535 2.535 0 0 1-.62-2.196l6.19-32.137a2.814 2.814 0 0 1 2.814-2.205h.101v5.57a2.235 2.235 0 0 0 2.243 2.234h.06a2.235 2.235 0 0 0 2.227-2.234v-5.57h10.001v5.518a2.235 2.235 0 1 0 4.47 0v-5.518h.07a2.814 2.814 0 0 1 2.814 2.205l6.19 32.137a2.535 2.535 0 0 1-.62 2.196z"}))};st.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},st.defaultProps={ariaHidden:!0,className:"shopping-bag-icon",height:"45.274",preserveAspectRatio:"xMidYMid meet",title:"shop",viewBox:"0 0 45.274 57.875",width:"57.875"};var ut=st}]))},function(e,t,r){r(10),e.exports=r(11)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tabs=t.Button=t.Panel=t.Input=t.Header=t.Form=t.Fieldset=void 0;const n=r(2);t.Panel=n.default;const a=r(3);t.Header=a.default;const i=r(5);t.Form=i.default;const o=r(4);t.Fieldset=o.default;const s=r(6);t.Input=s.default;const u=r(7);t.Tabs=u.default;const l=r(1);t.Button=l.default},function(e,t,r){"use strict";
13
+ a.version="2.29.1";i(Qr);a.fn=li;a.min=$r;a.max=en;a.now=tn;a.utc=v;a.unix=ci;a.months=yi;a.isDate=d;a.locale=vr;a.invalid=A;a.duration=Dn;a.isMoment=k;a.weekdays=bi;a.parseZone=fi;a.localeData=gr;a.isDuration=un;a.monthsShort=gi;a.weekdaysMin=_i;a.defineLocale=mr;a.updateLocale=yr;a.locales=br;a.weekdaysShort=Ai;a.normalizeUnits=ie;a.relativeTimeRounding=ao;a.relativeTimeThreshold=io;a.calendarFormat=Un;a.prototype=li;a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return a}))}).call(this,r(48)(e))},function(e,t,r){var n=r(84),a=r(27);var i="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function l(e){if(!a(e)){return false}var t=n(e);return t==o||t==s||t==i||t==u}e.exports=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=undefined;var n=r(1031);var a=v(n);var i=r(1094);var o=v(i);var s=r(1117);var u=v(s);var l=r(1118);var c=v(l);var f=r(1119);var d=v(f);var p=r(1120);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}t.hover=c.default;t.handleHover=c.default;t.handleActive=d.default;t.loop=h.default;var m=t.ReactCSS=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++){n[i-1]=arguments[i]}var s=(0,a.default)(n);var l=(0,o.default)(t,s);return(0,u.default)(l)};t.default=m},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));function n(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++){n[a-2]=arguments[a]}if(false){}if(!e){var i;if(t===undefined){i=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var o=0;i=new Error(t.replace(/%s/g,(function(){return n[o++]})));i.name="Invariant Violation"}i.framesToPop=1;throw i}}},function(e,t){function r(e){return e==null}e.exports=r},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(41);var i=r(64);var o=r(259);var s=function(e){n(t,e);function t(t,r){var n=this;t=t||new a.default;n=e.call(this,t)||this;r=r||null;n.csrfToken=r;return n}t.prototype.postForm=function(e,t,r,n,a,i){var o=this;var s;return function(u){return new Promise((function(l,c){u(o.request(e));var f=new Headers;if(o.csrfToken){f.append("X-CSRF-Token",o.csrfToken)}fetch(t,{method:n||"POST",headers:f,body:r,credentials:"same-origin"}).then((function(r){if(r.status===200||r.status===201){u(o.success(e));if(r.json&&i==="JSON"){r.json().then((function(t){u(o.load(e,t));l(r)}))}else if(r.text){r.text().then((function(t){u(o.load(e,t));l(r)}))}else{l(r)}}else{r.json().then((function(n){s={status:r.status,response:n.detail,url:t};u(o.failure(e,s));c(s)})).catch((function(n){s={status:r.status,response:a||"Failed to save changes",url:t};u(o.failure(e,s));c(s)}))}})).catch((function(r){r={status:null,response:r.message,url:t};u(o.failure(e,r));c(r)}))}))}.bind(this)};t.prototype.postJSON=function(e,t,r){var n=this;var a;return function(i){return new Promise((function(o,s){i(n.request(e,t));var u=new Headers;if(n.csrfToken){u.append("X-CSRF-Token",n.csrfToken)}u.append("Accept","application/json");u.append("Content-Type","application/json");fetch(t,{method:"POST",headers:u,body:JSON.stringify(r),credentials:"same-origin"}).then((function(r){if(r.status===200||r.status===201){i(n.success(e));o(r)}else{r.json().then((function(o){a={status:r.status,response:o.detail,url:t};i(n.failure(e,a));s(a)})).catch((function(o){a={status:r.status,response:"Request failed",url:t};i(n.failure(e,a));s(a)}))}})).catch((function(r){r={status:null,response:r.message,url:t};i(n.failure(e,r));s(r)}))}))}};t.prototype.fetchBookAdmin=function(e){return this.fetchOPDS(t.BOOK_ADMIN,e).bind(this)};t.prototype.editBook=function(e,r){return this.postForm(t.EDIT_BOOK,e,r).bind(this)};t.prototype.fetchRoles=function(){var e="/admin/roles";return this.fetchJSON(t.ROLES,e).bind(this)};t.prototype.fetchMedia=function(){var e="/admin/media";return this.fetchJSON(t.MEDIA,e).bind(this)};t.prototype.fetchLanguages=function(){var e="/admin/languages";return this.fetchJSON(t.LANGUAGES,e).bind(this)};t.prototype.fetchRightsStatuses=function(){var e="/admin/rights_status";return this.fetchJSON(t.RIGHTS_STATUSES,e).bind(this)};t.prototype.fetchComplaints=function(e){return this.fetchJSON(t.COMPLAINTS,e).bind(this)};t.prototype.postComplaint=function(e,r){return this.postJSON(t.POST_COMPLAINT,e,r).bind(this)};t.prototype.resolveComplaints=function(e,r){return this.postForm(t.RESOLVE_COMPLAINTS,e,r).bind(this)};t.prototype.fetchGenreTree=function(e){return this.fetchJSON(t.GENRE_TREE,e).bind(this)};t.prototype.editClassifications=function(e,r){return this.postForm(t.EDIT_CLASSIFICATIONS,e,r).bind(this)};t.prototype.fetchClassifications=function(e){return this.fetchJSON(t.CLASSIFICATIONS,e).bind(this)};t.prototype.editBookCover=function(e,r){return this.postForm(t.EDIT_BOOK_COVER,e,r).bind(this)};t.prototype.fetchBookCoverPreview=function(e,r){return this.postForm(t.PREVIEW_BOOK_COVER,e,r,"POST","Could not load preview").bind(this)};t.prototype.clearBookCoverPreview=function(){return this.clear(t.PREVIEW_BOOK_COVER)};t.prototype.fetchCustomListsForBook=function(e){return this.fetchJSON(t.CUSTOM_LISTS_FOR_BOOK,e).bind(this)};t.prototype.editCustomListsForBook=function(e,r){return this.postForm(t.EDIT_CUSTOM_LISTS_FOR_BOOK,e,r).bind(this)};t.prototype.fetchCirculationEvents=function(){var e="/admin/circulation_events";return this.fetchJSON(t.CIRCULATION_EVENTS,e).bind(this)};t.prototype.fetchStats=function(){var e="/admin/stats";return this.fetchJSON(t.STATS,e).bind(this)};t.prototype.fetchLibraries=function(){var e="/admin/libraries";return this.fetchJSON(t.LIBRARIES,e).bind(this)};t.prototype.editLibrary=function(e){var r="/admin/libraries";return this.postForm(t.EDIT_LIBRARY,r,e).bind(this)};t.prototype.deleteLibrary=function(e){var r="/admin/library/"+e;return this.postForm(t.DELETE_LIBRARY,r,null,"DELETE").bind(this)};t.prototype.fetchCollections=function(){var e="/admin/collections";return this.fetchJSON(t.COLLECTIONS,e).bind(this)};t.prototype.editCollection=function(e){var r="/admin/collections";return this.postForm(t.EDIT_COLLECTION,r,e).bind(this)};t.prototype.deleteCollection=function(e){var r="/admin/collection/"+e;return this.postForm(t.DELETE_COLLECTION,r,null,"DELETE").bind(this)};t.prototype.fetchAdminAuthServices=function(){var e="/admin/admin_auth_services";return this.fetchJSON(t.ADMIN_AUTH_SERVICES,e).bind(this)};t.prototype.editAdminAuthService=function(e){var r="/admin/admin_auth_services";return this.postForm(t.EDIT_ADMIN_AUTH_SERVICE,r,e).bind(this)};t.prototype.deleteAdminAuthService=function(e){var r="/admin/admin_auth_service/"+e;return this.postForm(t.DELETE_ADMIN_AUTH_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchIndividualAdmins=function(){var e="/admin/individual_admins";return this.fetchJSON(t.INDIVIDUAL_ADMINS,e).bind(this)};t.prototype.editIndividualAdmin=function(e){var r="/admin/individual_admins";return this.postForm(t.EDIT_INDIVIDUAL_ADMIN,r,e).bind(this)};t.prototype.deleteIndividualAdmin=function(e){var r="/admin/individual_admin/"+e;return this.postForm(t.DELETE_INDIVIDUAL_ADMIN,r,null,"DELETE").bind(this)};t.prototype.fetchPatronAuthServices=function(){var e="/admin/patron_auth_services";return this.fetchJSON(t.PATRON_AUTH_SERVICES,e).bind(this)};t.prototype.editPatronAuthService=function(e){var r="/admin/patron_auth_services";return this.postForm(t.EDIT_PATRON_AUTH_SERVICE,r,e).bind(this)};t.prototype.deletePatronAuthService=function(e){var r="/admin/patron_auth_service/"+e;return this.postForm(t.DELETE_PATRON_AUTH_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchSitewideSettings=function(){var e="/admin/sitewide_settings";return this.fetchJSON(t.SITEWIDE_SETTINGS,e).bind(this)};t.prototype.editSitewideSetting=function(e){var r="/admin/sitewide_settings";return this.postForm(t.EDIT_SITEWIDE_SETTING,r,e).bind(this)};t.prototype.deleteSitewideSetting=function(e){var r="/admin/sitewide_setting/"+e;return this.postForm(t.DELETE_SITEWIDE_SETTING,r,null,"DELETE").bind(this)};t.prototype.fetchLoggingServices=function(){var e="/admin/logging_services";return this.fetchJSON(t.LOGGING_SERVICES,e).bind(this)};t.prototype.editLoggingService=function(e){var r="/admin/logging_services";return this.postForm(t.EDIT_LOGGING_SERVICE,r,e).bind(this)};t.prototype.deleteLoggingService=function(e){var r="/admin/logging_service/"+e;return this.postForm(t.DELETE_LOGGING_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchMetadataServices=function(){var e="/admin/metadata_services";return this.fetchJSON(t.METADATA_SERVICES,e).bind(this)};t.prototype.editMetadataService=function(e){var r="/admin/metadata_services";return this.postForm(t.EDIT_METADATA_SERVICE,r,e).bind(this)};t.prototype.deleteMetadataService=function(e){var r="/admin/metadata_service/"+e;return this.postForm(t.DELETE_METADATA_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchAnalyticsServices=function(){var e="/admin/analytics_services";return this.fetchJSON(t.ANALYTICS_SERVICES,e).bind(this)};t.prototype.editAnalyticsService=function(e){var r="/admin/analytics_services";return this.postForm(t.EDIT_ANALYTICS_SERVICE,r,e).bind(this)};t.prototype.deleteAnalyticsService=function(e){var r="/admin/analytics_service/"+e;return this.postForm(t.DELETE_ANALYTICS_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchCDNServices=function(){var e="/admin/cdn_services";return this.fetchJSON(t.CDN_SERVICES,e).bind(this)};t.prototype.editCDNService=function(e){var r="/admin/cdn_services";return this.postForm(t.EDIT_CDN_SERVICE,r,e).bind(this)};t.prototype.deleteCDNService=function(e){var r="/admin/cdn_service/"+e;return this.postForm(t.DELETE_CDN_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchSearchServices=function(){var e="/admin/search_services";return this.fetchJSON(t.SEARCH_SERVICES,e).bind(this)};t.prototype.editSearchService=function(e){var r="/admin/search_services";return this.postForm(t.EDIT_SEARCH_SERVICE,r,e).bind(this)};t.prototype.deleteSearchService=function(e){var r="/admin/search_service/"+e;return this.postForm(t.DELETE_SEARCH_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchStorageServices=function(){var e="/admin/storage_services";return this.fetchJSON(t.STORAGE_SERVICES,e).bind(this)};t.prototype.editStorageService=function(e){var r="/admin/storage_services";return this.postForm(t.EDIT_STORAGE_SERVICE,r,e).bind(this)};t.prototype.deleteStorageService=function(e){var r="/admin/storage_service/"+e;return this.postForm(t.DELETE_STORAGE_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchCatalogServices=function(){var e="/admin/catalog_services";return this.fetchJSON(t.CATALOG_SERVICES,e).bind(this)};t.prototype.editCatalogService=function(e){var r="/admin/catalog_services";return this.postForm(t.EDIT_CATALOG_SERVICE,r,e).bind(this)};t.prototype.deleteCatalogService=function(e){var r="/admin/catalog_service/"+e;return this.postForm(t.DELETE_CATALOG_SERVICE,r,null,"DELETE").bind(this)};t.prototype.fetchDiscoveryServices=function(){var e="/admin/discovery_services";return this.fetchJSON(t.DISCOVERY_SERVICES,e).bind(this)};t.prototype.editDiscoveryService=function(e){var r="/admin/discovery_services";return this.postForm(t.EDIT_DISCOVERY_SERVICE,r,e).bind(this)};t.prototype.deleteDiscoveryService=function(e){var r="/admin/discovery_service/"+e;return this.postForm(t.DELETE_DISCOVERY_SERVICE,r,null,"DELETE").bind(this)};t.prototype.registerLibraryWithDiscoveryService=function(e){var r="/admin/discovery_service_library_registrations";return this.postForm(t.REGISTER_LIBRARY_WITH_DISCOVERY_SERVICE,r,e).bind(this)};t.prototype.fetchDiscoveryServiceLibraryRegistrations=function(){var e="/admin/discovery_service_library_registrations";return this.fetchJSON(t.DISCOVERY_SERVICE_LIBRARY_REGISTRATIONS,e).bind(this)};t.prototype.registerLibraryWithCollection=function(e){var r="/admin/collection_library_registrations";return this.postForm(t.REGISTER_LIBRARY_WITH_COLLECTION,r,e).bind(this)};t.prototype.fetchCollectionLibraryRegistrations=function(){var e="/admin/collection_library_registrations";return this.fetchJSON(t.COLLECTION_LIBRARY_REGISTRATIONS,e).bind(this)};t.prototype.fetchCustomLists=function(e){var r="/"+e+"/admin/custom_lists";return this.fetchJSON(t.CUSTOM_LISTS,r).bind(this)};t.prototype.fetchCustomListDetails=function(e,r){var n="/"+e+"/admin/custom_list/"+r;return this.fetchOPDS(t.CUSTOM_LIST_DETAILS,n).bind(this)};t.prototype.fetchMoreCustomListEntries=function(){var e=this;return function(r,n){var a=n().editor.customListDetails,i=a.data,o=a.isFetchingMoreEntries;if(!o){return r(e.fetchOPDS(t.CUSTOM_LIST_DETAILS_MORE,i.nextPageUrl).bind(e))}}};t.prototype.editCustomList=function(e,r,n){var a="/"+e+"/admin/custom_lists";if(n){a="/"+e+"/admin/custom_list/"+n}return this.postForm(t.EDIT_CUSTOM_LIST,a,r).bind(this)};t.prototype.deleteCustomList=function(e,r){var n="/"+e+"/admin/custom_list/"+r;return this.postForm(t.DELETE_CUSTOM_LIST,n,null,"DELETE").bind(this)};t.prototype.openCustomListEditor=function(e){return function(r,n){return r({type:t.OPEN_CUSTOM_LIST_EDITOR,id:e,data:n().editor.customLists.data})}};t.prototype.updateCustomListEditorProperty=function(e,r){return{type:t.UPDATE_CUSTOM_LIST_EDITOR_PROPERTY,name:e,value:r}};t.prototype.toggleCustomListEditorCollection=function(e){return{type:t.TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION,id:e}};t.prototype.updateCustomListEditorSearchParam=function(e,r){return{type:t.UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM,name:e,value:r}};t.prototype.addCustomListEditorAdvSearchQuery=function(e,r){return{type:t.ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY,builderName:e,query:r}};t.prototype.updateCustomListEditorAdvSearchQueryBoolean=function(e,r,n){return{type:t.UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN,builderName:e,id:r,bool:n}};t.prototype.moveCustomListEditorAdvSearchQuery=function(e,r,n){return{type:t.MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY,builderName:e,id:r,targetId:n}};t.prototype.removeCustomListEditorAdvSearchQuery=function(e,r){return{type:t.REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY,builderName:e,id:r}};t.prototype.selectCustomListEditorAdvSearchQuery=function(e,r){return{type:t.SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY,builderName:e,id:r}};t.prototype.addCustomListEditorEntry=function(e){return function(r,n){return r({type:t.ADD_CUSTOM_LIST_EDITOR_ENTRY,id:e,data:n().editor.collection.data})}};t.prototype.addAllCustomListEditorEntries=function(){return function(e,r){return e({type:t.ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES,data:r().editor.collection.data})}};t.prototype.deleteCustomListEditorEntry=function(e){return{type:t.DELETE_CUSTOM_LIST_EDITOR_ENTRY,id:e}};t.prototype.deleteAllCustomListEditorEntries=function(){return{type:t.DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES}};t.prototype.resetCustomListEditor=function(){return{type:t.RESET_CUSTOM_LIST_EDITOR}};t.prototype.saveCustomListEditor=function(e){var t=this;return function(r,n){var a=n().editor.customListEditor;var i=a.id;return r(t.editCustomList(e,o.getCustomListEditorFormData(a),i)).then((function(){var t=n().editor.customLists.successMessage;if(i===null&&t){window.location.href="/admin/web/lists/"+e+"/edit/"+t}}))}};t.prototype.executeCustomListEditorSearch=function(e){var r=this;return function(n,a){var i=a().editor.customListEditor;var s=o.getCustomListEditorSearchUrl(i,e);if(s){return n(r.fetchCollection(s))}return n(r.clear(t.COLLECTION))}};t.prototype.fetchMoreCustomListEditorSearchResults=function(){var e=this;return function(t,r){var n=r().editor.collection,a=n.data,i=n.isFetchingPage;if(!i){return t(e.fetchPage(a.nextPageUrl))}}};t.prototype.fetchLanes=function(e){var r="/"+e+"/admin/lanes";return this.fetchJSON(t.LANES,r).bind(this)};t.prototype.editLane=function(e,r){var n="/"+e+"/admin/lanes";return this.postForm(t.EDIT_LANE,n,r).bind(this)};t.prototype.deleteLane=function(e,r){var n="/"+e+"/admin/lane/"+r;return this.postForm(t.DELETE_LANE,n,null,"DELETE").bind(this)};t.prototype.showLane=function(e,r){var n="/"+e+"/admin/lane/"+r+"/show";return this.postForm(t.CHANGE_LANE_VISIBILITY,n,null).bind(this)};t.prototype.hideLane=function(e,r){var n="/"+e+"/admin/lane/"+r+"/hide";return this.postForm(t.CHANGE_LANE_VISIBILITY,n,null).bind(this)};t.prototype.resetLanes=function(e){var r="/"+e+"/admin/lanes/reset";return this.postForm(t.RESET_LANES,r,null).bind(this)};t.prototype.changeLaneOrder=function(e,r){var n="/"+e+"/admin/lanes/change_order";return this.postJSON(t.CHANGE_LANE_ORDER,n,r).bind(this)};t.prototype.changePassword=function(e){var r="/admin/change_password";return this.postForm(t.CHANGE_PASSWORD,r,e).bind(this)};t.prototype.getSelfTests=function(e){return this.fetchJSON(t.GET_SELF_TESTS,e).bind(this)};t.prototype.runSelfTests=function(e){return this.postForm(t.RUN_SELF_TESTS,e,null).bind(this)};t.prototype.patronLookup=function(e,r){var n="/"+r+"/admin/manage_patrons";return this.postForm(t.PATRON_LOOKUP,n,e,"POST","","JSON").bind(this)};t.prototype.resetAdobeId=function(e,r){var n="/"+r+"/admin/manage_patrons/reset_adobe_id";return this.postForm(t.RESET_ADOBE_ID,n,e).bind(this)};t.prototype.clearPatronData=function(){var e=this;return function(r){return r(e.load(t.CLEAR_PATRON_DATA,null))}};t.prototype.fetchDiagnostics=function(){var e="/admin/diagnostics";return this.fetchJSON(t.DIAGNOSTICS,e).bind(this)};t.prototype.setFeatureFlags=function(e){return{type:t.SET_FEATURE_FLAGS,value:e}};t.prototype.updateFeatureFlag=function(e,r){return{type:t.UPDATE_FEATURE_FLAG,name:e,value:r}};t.SET_FEATURE_FLAGS="SET_FEATURE_FLAGS";t.UPDATE_FEATURE_FLAG="UPDATE_FEATURE_FLAG";t.EDIT_BOOK="EDIT_BOOK";t.BOOK_ADMIN="BOOK_ADMIN";t.ROLES="ROLES";t.MEDIA="MEDIA";t.LANGUAGES="LANGUAGES";t.RIGHTS_STATUSES="RIGHTS_STATUSES";t.COMPLAINTS="COMPLAINTS";t.POST_COMPLAINT="POST_COMPLAINT";t.RESOLVE_COMPLAINTS="RESOLVE_COMPLAINTS";t.GENRE_TREE="GENRE_TREE";t.CLASSIFICATIONS="CLASSIFICATIONS";t.EDIT_CLASSIFICATIONS="EDIT_CLASSIFICATIONS";t.BOOK_COVER="BOOK_COVER";t.EDIT_BOOK_COVER="EDIT_BOOK_COVER";t.PREVIEW_BOOK_COVER="PREVIEW_BOOK_COVER";t.CUSTOM_LISTS_FOR_BOOK="CUSTOM_LISTS_FOR_BOOK";t.EDIT_CUSTOM_LISTS_FOR_BOOK="EDIT_CUSTOM_LISTS_FOR_BOOK";t.CIRCULATION_EVENTS="CIRCULATION_EVENTS";t.STATS="STATS";t.LIBRARIES="LIBRARIES";t.EDIT_LIBRARY="EDIT_LIBRARY";t.DELETE_LIBRARY="DELETE_LIBRARY";t.COLLECTIONS="COLLECTIONS";t.EDIT_COLLECTION="EDIT_COLLECTION";t.DELETE_COLLECTION="DELETE_COLLECTION";t.ADMIN_AUTH_SERVICES="ADMIN_AUTH_SERVICES";t.EDIT_ADMIN_AUTH_SERVICE="EDIT_ADMIN_AUTH_SERVICE";t.DELETE_ADMIN_AUTH_SERVICE="DELETE_ADMIN_AUTH_SERVICE";t.INDIVIDUAL_ADMINS="INDIVIDUAL_ADMINS";t.EDIT_INDIVIDUAL_ADMIN="EDIT_INDIVIDUAL_ADMIN";t.DELETE_INDIVIDUAL_ADMIN="DELETE_INDIVIDUAL_ADMIN";t.PATRON_AUTH_SERVICES="PATRON_AUTH_SERVICES";t.EDIT_PATRON_AUTH_SERVICE="EDIT_PATRON_AUTH_SERVICE";t.DELETE_PATRON_AUTH_SERVICE="DELETE_PATRON_AUTH_SERVICE";t.SITEWIDE_SETTINGS="SITEWIDE_SETTINGS";t.EDIT_SITEWIDE_SETTING="EDIT_SITEWIDE_SETTING";t.DELETE_SITEWIDE_SETTING="DELETE_SITEWIDE_SETTING";t.LOGGING_SERVICES="LOGGING_SERVICES";t.EDIT_LOGGING_SERVICE="EDIT_LOGGING_SERVICE";t.DELETE_LOGGING_SERVICE="DELETE_LOGGING_SERVICE";t.METADATA_SERVICES="METADATA_SERVICES";t.EDIT_METADATA_SERVICE="EDIT_METADATA_SERVICE";t.DELETE_METADATA_SERVICE="DELETE_METADATA_SERVICE";t.ANALYTICS_SERVICES="ANALYTICS_SERVICES";t.EDIT_ANALYTICS_SERVICE="EDIT_ANALYTICS_SERVICE";t.DELETE_ANALYTICS_SERVICE="DELETE_ANALYTICS_SERVICE";t.CDN_SERVICES="CDN_SERVICES";t.EDIT_CDN_SERVICE="EDIT_CDN_SERVICE";t.DELETE_CDN_SERVICE="DELETE_CDN_SERVICE";t.SEARCH_SERVICES="SEARCH_SERVICES";t.EDIT_SEARCH_SERVICE="EDIT_SEARCH_SERVICE";t.DELETE_SEARCH_SERVICE="DELETE_SEARCH_SERVICE";t.STORAGE_SERVICES="STORAGE_SERVICES";t.EDIT_STORAGE_SERVICE="EDIT_STORAGE_SERVICE";t.DELETE_STORAGE_SERVICE="DELETE_STORAGE_SERVICE";t.CATALOG_SERVICES="CATALOG_SERVICES";t.EDIT_CATALOG_SERVICE="EDIT_CATALOG_SERVICE";t.DELETE_CATALOG_SERVICE="DELETE_CATALOG_SERVICE";t.DISCOVERY_SERVICES="DISCOVERY_SERVICES";t.EDIT_DISCOVERY_SERVICE="EDIT_DISCOVERY_SERVICE";t.DELETE_DISCOVERY_SERVICE="DELETE_DISCOVERY_SERVICE";t.REGISTER_LIBRARY_WITH_DISCOVERY_SERVICE="REGISTER_LIBRARY_WITH_DISCOVERY_SERVICE";t.DISCOVERY_SERVICE_LIBRARY_REGISTRATIONS="DISCOVERY_SERVICE_LIBRARY_REGISTRATIONS";t.REGISTER_LIBRARY_WITH_COLLECTION="REGISTER_LIBRARY_WITH_COLLECTION";t.COLLECTION_LIBRARY_REGISTRATIONS="COLLECTION_LIBRARY_REGISTRATIONS";t.CUSTOM_LISTS="CUSTOM_LISTS";t.CUSTOM_LIST_DETAILS="CUSTOM_LIST_DETAILS";t.CUSTOM_LIST_DETAILS_MORE="CUSTOM_LIST_DETAILS_MORE";t.EDIT_CUSTOM_LIST="EDIT_CUSTOM_LIST";t.DELETE_CUSTOM_LIST="DELETE_CUSTOM_LIST";t.OPEN_CUSTOM_LIST_EDITOR="OPEN_CUSTOM_LIST_EDITOR";t.UPDATE_CUSTOM_LIST_EDITOR_PROPERTY="UPDATE_CUSTOM_LIST_EDITOR_PROPERTY";t.TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION="TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION";t.UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM="UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM";t.ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY="ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY";t.UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN="UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN";t.MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY="MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY";t.REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY="REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY";t.SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY="SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY";t.ADD_CUSTOM_LIST_EDITOR_ENTRY="ADD_CUSTOM_LIST_EDITOR_ENTRY";t.ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES="ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES";t.DELETE_CUSTOM_LIST_EDITOR_ENTRY="DELETE_CUSTOM_LIST_EDITOR_ENTRY";t.DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES="DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES";t.RESET_CUSTOM_LIST_EDITOR="RESET_CUSTOM_LIST_EDITOR";t.LANES="LANES";t.EDIT_LANE="EDIT_LANE";t.DELETE_LANE="DELETE_LANE";t.CHANGE_LANE_VISIBILITY="CHANGE_LANE_VISIBILITY";t.RESET_LANES="RESET_LANES";t.CHANGE_LANE_ORDER="CHANGE_LANE_ORDER";t.EDIT_BOOK_REQUEST="EDIT_BOOK_REQUEST";t.EDIT_BOOK_SUCCESS="EDIT_BOOK_SUCCESS";t.EDIT_BOOK_FAILURE="EDIT_BOOK_FAILURE";t.BOOK_ADMIN_REQUEST="BOOK_ADMIN_REQUEST";t.BOOK_ADMIN_SUCCESS="BOOK_ADMIN_SUCCESS";t.BOOK_ADMIN_FAILURE="BOOK_ADMIN_FAILURE";t.BOOK_ADMIN_LOAD="BOOK_ADMIN_LOAD";t.COMPLAINTS_REQUEST="COMPLAINTS_REQUEST";t.COMPLAINTS_SUCCESS="COMPLAINTS_SUCCESS";t.COMPLAINTS_FAILURE="COMPLAINTS_FAILURE";t.COMPLAINTS_LOAD="COMPLAINTS_LOAD";t.POST_COMPLAINT_REQUEST="POST_COMPLAINT_REQUEST";t.POST_COMPLAINT_SUCCESS="POST_COMPLAINT_SUCCESS";t.POST_COMPLAINT_FAILURE="POST_COMPLAINT_FAILURE";t.RESOLVE_COMPLAINTS_REQUEST="RESOLVE_COMPLAINTS_REQUEST";t.RESOLVE_COMPLAINTS_SUCCESS="RESOLVE_COMPLAINTS_SUCCESS";t.RESOLVE_COMPLAINTS_FAILURE="RESOLVE_COMPLAINTS_FAILURE";t.GENRE_TREE_REQUEST="GENRE_TREE_REQUEST";t.GENRE_TREE_SUCCESS="GENRE_TREE_SUCCESS";t.GENRE_TREE_FAILURE="GENRE_TREE_FAILURE";t.GENRE_TREE_LOAD="GENRE_TREE_LOAD";t.CLASSIFICATIONS_REQUEST="CLASSIFICATIONS_REQUEST";t.CLASSIFICATIONS_SUCCESS="CLASSIFICATIONS_SUCCESS";t.CLASSIFICATIONS_FAILURE="CLASSIFICATIONS_FAILURE";t.CLASSIFICATIONS_LOAD="CLASSIFICATIONS_LOAD";t.EDIT_CLASSIFICATIONS_REQUEST="EDIT_CLASSIFICATIONS_REQUEST";t.EDIT_CLASSIFICATIONS_SUCCESS="EDIT_CLASSIFICATIONS_SUCCESS";t.EDIT_CLASSIFICATIONS_FAILURE="EDIT_CLASSIFICATIONS_FAILURE";t.CIRCULATION_EVENTS_REQUEST="CIRCULATION_EVENTS_REQUEST";t.CIRCULATION_EVENTS_SUCCESS="CIRCULATION_EVENTS_SUCCESS";t.CIRCULATION_EVENTS_FAILURE="CIRCULATION_EVENTS_FAILURE";t.CIRCULATION_EVENTS_LOAD="CIRCULATION_EVENTS_LOAD";t.STATS_REQUEST="STATS_REQUEST";t.STATS_SUCCESS="STATS_SUCCESS";t.STATS_FAILURE="STATS_FAILURE";t.STATS_LOAD="STATS_LOAD";t.CHANGE_PASSWORD="CHANGE_PASSWORD";t.GET_SELF_TESTS="GET_SELF_TESTS";t.RUN_SELF_TESTS="RUN_SELF_TESTS";t.PATRON_LOOKUP="PATRON_LOOKUP";t.CLEAR_PATRON_DATA="CLEAR_PATRON_DATA";t.RESET_ADOBE_ID="RESET_ADOBE_ID";t.DIAGNOSTICS="DIAGNOSTICS";return t}(i.default);t.default=s},function(e,t,r){"use strict";var n=function(e,t,r,n,a,i,o,s){if(false){}if(!e){var u;if(t===undefined){u=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var l=[r,n,a,i,o,s];var c=0;u=new Error(t.replace(/%s/g,(function(){return l[c++]})));u.name="Invariant Violation"}u.framesToPop=1;throw u}};e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=u(n);var i=r(93);var o=r(143);var s=u(o);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,r,n,o){var s=e[t];if(a.default.isValidElement(s)){return new Error("Invalid "+n+" `"+o+"` of type ReactElement "+("supplied to `"+r+"`,expected an element type (a string ")+", component class, or function component).")}if(!(0,i.isValidElementType)(s)){return new Error("Invalid "+n+" `"+o+"` of value `"+s+"` "+("supplied to `"+r+"`, expected an element type (a string ")+", component class, or function component).")}return null}t.default=(0,s.default)(l);e.exports=t["default"]},function(e,t,r){(function(t,r){true?e.exports=r():undefined})(this,(function(){"use strict";var e=Array.prototype.slice;function t(e,t){if(t){e.prototype=Object.create(t.prototype)}e.prototype.constructor=e}function r(e){return o(e)?e:K(e)}t(n,r);function n(e){return s(e)?e:G(e)}t(a,r);function a(e){return u(e)?e:Q(e)}t(i,r);function i(e){return o(e)&&!l(e)?e:J(e)}function o(e){return!!(e&&e[f])}function s(e){return!!(e&&e[d])}function u(e){return!!(e&&e[p])}function l(e){return s(e)||u(e)}function c(e){return!!(e&&e[h])}r.isIterable=o;r.isKeyed=s;r.isIndexed=u;r.isAssociative=l;r.isOrdered=c;r.Keyed=n;r.Indexed=a;r.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@";var d="@@__IMMUTABLE_KEYED__@@";var p="@@__IMMUTABLE_INDEXED__@@";var h="@@__IMMUTABLE_ORDERED__@@";var v="delete";var m=5;var y=1<<m;var g=y-1;var b={};var A={value:false};var _={value:false};function w(e){e.value=false;return e}function E(e){e&&(e.value=true)}function x(){}function k(e,t){t=t||0;var r=Math.max(0,e.length-t);var n=new Array(r);for(var a=0;a<r;a++){n[a]=e[a+t]}return n}function S(e){if(e.size===undefined){e.size=e.__iterate(M)}return e.size}function O(e,t){if(typeof t!=="number"){var r=t>>>0;if(""+r!==t||r===4294967295){return NaN}t=r}return t<0?S(e)+t:t}function M(){return true}function D(e,t,r){return(e===0||r!==undefined&&e<=-r)&&(t===undefined||r!==undefined&&t>=r)}function T(e,t){return C(e,t,0)}function L(e,t){return C(e,t,t)}function C(e,t,r){return e===undefined?r:e<0?Math.max(0,t+e):t===undefined?e:Math.min(t,e)}var j=0;var N=1;var I=2;var P=typeof Symbol==="function"&&Symbol.iterator;var R="@@iterator";var F=P||R;function Y(e){this.next=e}Y.prototype.toString=function(){return"[Iterator]"};Y.KEYS=j;Y.VALUES=N;Y.ENTRIES=I;Y.prototype.inspect=Y.prototype.toSource=function(){return this.toString()};Y.prototype[F]=function(){return this};function B(e,t,r,n){var a=e===0?t:e===1?r:[t,r];n?n.value=a:n={value:a,done:false};return n}function H(){return{value:undefined,done:true}}function U(e){return!!V(e)}function z(e){return e&&typeof e.next==="function"}function q(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(P&&e[P]||e[R]);if(typeof t==="function"){return t}}function W(e){return e&&typeof e.length==="number"}t(K,r);function K(e){return e===null||e===undefined?ae():o(e)?e.toSeq():se(e)}K.of=function(){return K(arguments)};K.prototype.toSeq=function(){return this};K.prototype.toString=function(){return this.__toString("Seq {","}")};K.prototype.cacheResult=function(){if(!this._cache&&this.__iterateUncached){this._cache=this.entrySeq().toArray();this.size=this._cache.length}return this};K.prototype.__iterate=function(e,t){return le(this,e,t,true)};K.prototype.__iterator=function(e,t){return ce(this,e,t,true)};t(G,K);function G(e){return e===null||e===undefined?ae().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():ie(e)}G.prototype.toKeyedSeq=function(){return this};t(Q,K);function Q(e){return e===null||e===undefined?ae():!o(e)?oe(e):s(e)?e.entrySeq():e.toIndexedSeq()}Q.of=function(){return Q(arguments)};Q.prototype.toIndexedSeq=function(){return this};Q.prototype.toString=function(){return this.__toString("Seq [","]")};Q.prototype.__iterate=function(e,t){return le(this,e,t,false)};Q.prototype.__iterator=function(e,t){return ce(this,e,t,false)};t(J,K);function J(e){return(e===null||e===undefined?ae():!o(e)?oe(e):s(e)?e.entrySeq():e).toSetSeq()}J.of=function(){return J(arguments)};J.prototype.toSetSeq=function(){return this};K.isSeq=re;K.Keyed=G;K.Set=J;K.Indexed=Q;var Z="@@__IMMUTABLE_SEQ__@@";K.prototype[Z]=true;t(X,Q);function X(e){this._array=e;this.size=e.length}X.prototype.get=function(e,t){return this.has(e)?this._array[O(this,e)]:t};X.prototype.__iterate=function(e,t){var r=this._array;var n=r.length-1;for(var a=0;a<=n;a++){if(e(r[t?n-a:a],a,this)===false){return a+1}}return a};X.prototype.__iterator=function(e,t){var r=this._array;var n=r.length-1;var a=0;return new Y((function(){return a>n?H():B(e,a,r[t?n-a++:a++])}))};t($,G);function $(e){var t=Object.keys(e);this._object=e;this._keys=t;this.size=t.length}$.prototype.get=function(e,t){if(t!==undefined&&!this.has(e)){return t}return this._object[e]};$.prototype.has=function(e){return this._object.hasOwnProperty(e)};$.prototype.__iterate=function(e,t){var r=this._object;var n=this._keys;var a=n.length-1;for(var i=0;i<=a;i++){var o=n[t?a-i:i];if(e(r[o],o,this)===false){return i+1}}return i};$.prototype.__iterator=function(e,t){var r=this._object;var n=this._keys;var a=n.length-1;var i=0;return new Y((function(){var o=n[t?a-i:i];return i++>a?H():B(e,o,r[o])}))};$.prototype[h]=true;t(ee,Q);function ee(e){this._iterable=e;this.size=e.length||e.size}ee.prototype.__iterateUncached=function(e,t){if(t){return this.cacheResult().__iterate(e,t)}var r=this._iterable;var n=q(r);var a=0;if(z(n)){var i;while(!(i=n.next()).done){if(e(i.value,a++,this)===false){break}}}return a};ee.prototype.__iteratorUncached=function(e,t){if(t){return this.cacheResult().__iterator(e,t)}var r=this._iterable;var n=q(r);if(!z(n)){return new Y(H)}var a=0;return new Y((function(){var t=n.next();return t.done?t:B(e,a++,t.value)}))};t(te,Q);function te(e){this._iterator=e;this._iteratorCache=[]}te.prototype.__iterateUncached=function(e,t){if(t){return this.cacheResult().__iterate(e,t)}var r=this._iterator;var n=this._iteratorCache;var a=0;while(a<n.length){if(e(n[a],a++,this)===false){return a}}var i;while(!(i=r.next()).done){var o=i.value;n[a]=o;if(e(o,a++,this)===false){break}}return a};te.prototype.__iteratorUncached=function(e,t){if(t){return this.cacheResult().__iterator(e,t)}var r=this._iterator;var n=this._iteratorCache;var a=0;return new Y((function(){if(a>=n.length){var t=r.next();if(t.done){return t}n[a]=t.value}return B(e,a,n[a++])}))};function re(e){return!!(e&&e[Z])}var ne;function ae(){return ne||(ne=new X([]))}function ie(e){var t=Array.isArray(e)?new X(e).fromEntrySeq():z(e)?new te(e).fromEntrySeq():U(e)?new ee(e).fromEntrySeq():typeof e==="object"?new $(e):undefined;if(!t){throw new TypeError("Expected Array or iterable object of [k, v] entries, "+"or keyed object: "+e)}return t}function oe(e){var t=ue(e);if(!t){throw new TypeError("Expected Array or iterable object of values: "+e)}return t}function se(e){var t=ue(e)||typeof e==="object"&&new $(e);if(!t){throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e)}return t}function ue(e){return W(e)?new X(e):z(e)?new te(e):U(e)?new ee(e):undefined}function le(e,t,r,n){var a=e._cache;if(a){var i=a.length-1;for(var o=0;o<=i;o++){var s=a[r?i-o:o];if(t(s[1],n?s[0]:o,e)===false){return o+1}}return o}return e.__iterateUncached(t,r)}function ce(e,t,r,n){var a=e._cache;if(a){var i=a.length-1;var o=0;return new Y((function(){var e=a[r?i-o:o];return o++>i?H():B(t,n?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,r)}function fe(e,t){return t?de(t,e,"",{"":e}):pe(e)}function de(e,t,r,n){if(Array.isArray(t)){return e.call(n,r,Q(t).map((function(r,n){return de(e,r,n,t)})))}if(he(t)){return e.call(n,r,G(t).map((function(r,n){return de(e,r,n,t)})))}return t}function pe(e){if(Array.isArray(e)){return Q(e).map(pe).toList()}if(he(e)){return G(e).map(pe).toMap()}return e}function he(e){return e&&(e.constructor===Object||e.constructor===undefined)}function ve(e,t){if(e===t||e!==e&&t!==t){return true}if(!e||!t){return false}if(typeof e.valueOf==="function"&&typeof t.valueOf==="function"){e=e.valueOf();t=t.valueOf();if(e===t||e!==e&&t!==t){return true}if(!e||!t){return false}}if(typeof e.equals==="function"&&typeof t.equals==="function"&&e.equals(t)){return true}return false}function me(e,t){if(e===t){return true}if(!o(t)||e.size!==undefined&&t.size!==undefined&&e.size!==t.size||e.__hash!==undefined&&t.__hash!==undefined&&e.__hash!==t.__hash||s(e)!==s(t)||u(e)!==u(t)||c(e)!==c(t)){return false}if(e.size===0&&t.size===0){return true}var r=!l(e);if(c(e)){var n=e.entries();return t.every((function(e,t){var a=n.next().value;return a&&ve(a[1],e)&&(r||ve(a[0],t))}))&&n.next().done}var a=false;if(e.size===undefined){if(t.size===undefined){if(typeof e.cacheResult==="function"){e.cacheResult()}}else{a=true;var i=e;e=t;t=i}}var f=true;var d=t.__iterate((function(t,n){if(r?!e.has(t):a?!ve(t,e.get(n,b)):!ve(e.get(n,b),t)){f=false;return false}}));return f&&e.size===d}t(ye,Q);function ye(e,t){if(!(this instanceof ye)){return new ye(e,t)}this._value=e;this.size=t===undefined?Infinity:Math.max(0,t);if(this.size===0){if(ge){return ge}ge=this}}ye.prototype.toString=function(){if(this.size===0){return"Repeat []"}return"Repeat [ "+this._value+" "+this.size+" times ]"};ye.prototype.get=function(e,t){return this.has(e)?this._value:t};ye.prototype.includes=function(e){return ve(this._value,e)};ye.prototype.slice=function(e,t){var r=this.size;return D(e,t,r)?this:new ye(this._value,L(t,r)-T(e,r))};ye.prototype.reverse=function(){return this};ye.prototype.indexOf=function(e){if(ve(this._value,e)){return 0}return-1};ye.prototype.lastIndexOf=function(e){if(ve(this._value,e)){return this.size}return-1};ye.prototype.__iterate=function(e,t){for(var r=0;r<this.size;r++){if(e(this._value,r,this)===false){return r+1}}return r};ye.prototype.__iterator=function(e,t){var r=this;var n=0;return new Y((function(){return n<r.size?B(e,n++,r._value):H()}))};ye.prototype.equals=function(e){return e instanceof ye?ve(this._value,e._value):me(e)};var ge;function be(e,t){if(!e)throw new Error(t)}t(Ae,Q);function Ae(e,t,r){if(!(this instanceof Ae)){return new Ae(e,t,r)}be(r!==0,"Cannot step a Range by 0");e=e||0;if(t===undefined){t=Infinity}r=r===undefined?1:Math.abs(r);if(t<e){r=-r}this._start=e;this._end=t;this._step=r;this.size=Math.max(0,Math.ceil((t-e)/r-1)+1);if(this.size===0){if(_e){return _e}_e=this}}Ae.prototype.toString=function(){if(this.size===0){return"Range []"}return"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"};Ae.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t};Ae.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)};Ae.prototype.slice=function(e,t){if(D(e,t,this.size)){return this}e=T(e,this.size);t=L(t,this.size);if(t<=e){return new Ae(0,0)}return new Ae(this.get(e,this._end),this.get(t,this._end),this._step)};Ae.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var r=t/this._step;if(r>=0&&r<this.size){return r}}return-1};Ae.prototype.lastIndexOf=function(e){return this.indexOf(e)};Ae.prototype.__iterate=function(e,t){var r=this.size-1;var n=this._step;var a=t?this._start+r*n:this._start;for(var i=0;i<=r;i++){if(e(a,i,this)===false){return i+1}a+=t?-n:n}return i};Ae.prototype.__iterator=function(e,t){var r=this.size-1;var n=this._step;var a=t?this._start+r*n:this._start;var i=0;return new Y((function(){var o=a;a+=t?-n:n;return i>r?H():B(e,i++,o)}))};Ae.prototype.equals=function(e){return e instanceof Ae?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)};var _e;t(we,r);function we(){throw TypeError("Abstract")}t(Ee,we);function Ee(){}t(xe,we);function xe(){}t(ke,we);function ke(){}we.Keyed=Ee;we.Indexed=xe;we.Set=ke;var Se=typeof Math.imul==="function"&&Math.imul(4294967295,2)===-2?Math.imul:function e(t,r){t=t|0;r=r|0;var n=t&65535;var a=r&65535;return n*a+((t>>>16)*a+n*(r>>>16)<<16>>>0)|0};function Oe(e){return e>>>1&1073741824|e&3221225471}function Me(e){if(e===false||e===null||e===undefined){return 0}if(typeof e.valueOf==="function"){e=e.valueOf();if(e===false||e===null||e===undefined){return 0}}if(e===true){return 1}var t=typeof e;if(t==="number"){var r=e|0;if(r!==e){r^=e*4294967295}while(e>4294967295){e/=4294967295;r^=e}return Oe(r)}if(t==="string"){return e.length>Ye?De(e):Te(e)}if(typeof e.hashCode==="function"){return e.hashCode()}if(t==="object"){return Le(e)}if(typeof e.toString==="function"){return Te(e.toString())}throw new Error("Value type "+t+" cannot be hashed.")}function De(e){var t=Ue[e];if(t===undefined){t=Te(e);if(He===Be){He=0;Ue={}}He++;Ue[e]=t}return t}function Te(e){var t=0;for(var r=0;r<e.length;r++){t=31*t+e.charCodeAt(r)|0}return Oe(t)}function Le(e){var t;if(Ie){t=Pe.get(e);if(t!==undefined){return t}}t=e[Fe];if(t!==undefined){return t}if(!je){t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Fe];if(t!==undefined){return t}t=Ne(e);if(t!==undefined){return t}}t=++Re;if(Re&1073741824){Re=0}if(Ie){Pe.set(e,t)}else if(Ce!==undefined&&Ce(e)===false){throw new Error("Non-extensible objects are not allowed as keys.")}else if(je){Object.defineProperty(e,Fe,{enumerable:false,configurable:false,writable:false,value:t})}else if(e.propertyIsEnumerable!==undefined&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable){e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)};e.propertyIsEnumerable[Fe]=t}else if(e.nodeType!==undefined){e[Fe]=t}else{throw new Error("Unable to set a non-enumerable property on object.")}return t}var Ce=Object.isExtensible;var je=function(){try{Object.defineProperty({},"@",{});return true}catch(e){return false}}();function Ne(e){if(e&&e.nodeType>0){switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}}var Ie=typeof WeakMap==="function";var Pe;if(Ie){Pe=new WeakMap}var Re=0;var Fe="__immutablehash__";if(typeof Symbol==="function"){Fe=Symbol(Fe)}var Ye=16;var Be=255;var He=0;var Ue={};function ze(e){be(e!==Infinity,"Cannot perform this action with an infinite size.")}t(qe,Ee);function qe(e){return e===null||e===undefined?at():Ve(e)&&!c(e)?e:at().withMutations((function(t){var r=n(e);ze(r.size);r.forEach((function(e,r){return t.set(r,e)}))}))}qe.prototype.toString=function(){return this.__toString("Map {","}")};qe.prototype.get=function(e,t){return this._root?this._root.get(0,undefined,e,t):t};qe.prototype.set=function(e,t){return it(this,e,t)};qe.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))};qe.prototype.remove=function(e){return it(this,e,b)};qe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))};qe.prototype.update=function(e,t,r){return arguments.length===1?e(this):this.updateIn([e],t,r)};qe.prototype.updateIn=function(e,t,r){if(!r){r=t;t=undefined}var n=mt(this,_r(e),t,r);return n===b?undefined:n};qe.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._root=null;this.__hash=undefined;this.__altered=true;return this}return at()};qe.prototype.merge=function(){return dt(this,undefined,arguments)};qe.prototype.mergeWith=function(t){var r=e.call(arguments,1);return dt(this,t,r)};qe.prototype.mergeIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,at(),(function(e){return typeof e.merge==="function"?e.merge.apply(e,r):r[r.length-1]}))};qe.prototype.mergeDeep=function(){return dt(this,pt,arguments)};qe.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return dt(this,ht(t),r)};qe.prototype.mergeDeepIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,at(),(function(e){return typeof e.mergeDeep==="function"?e.mergeDeep.apply(e,r):r[r.length-1]}))};qe.prototype.sort=function(e){return Ht(cr(this,e))};qe.prototype.sortBy=function(e,t){return Ht(cr(this,t,e))};qe.prototype.withMutations=function(e){var t=this.asMutable();e(t);return t.wasAltered()?t.__ensureOwner(this.__ownerID):this};qe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)};qe.prototype.asImmutable=function(){return this.__ensureOwner()};qe.prototype.wasAltered=function(){return this.__altered};qe.prototype.__iterator=function(e,t){return new $e(this,e,t)};qe.prototype.__iterate=function(e,t){var r=this;var n=0;this._root&&this._root.iterate((function(t){n++;return e(t[1],t[0],r)}),t);return n};qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;this.__altered=false;return this}return rt(this.size,this._root,e,this.__hash)};function Ve(e){return!!(e&&e[We])}qe.isMap=Ve;var We="@@__IMMUTABLE_MAP__@@";var Ke=qe.prototype;Ke[We]=true;Ke[v]=Ke.remove;Ke.removeIn=Ke.deleteIn;function Ge(e,t){this.ownerID=e;this.entries=t}Ge.prototype.get=function(e,t,r,n){var a=this.entries;for(var i=0,o=a.length;i<o;i++){if(ve(r,a[i][0])){return a[i][1]}}return n};Ge.prototype.update=function(e,t,r,n,a,i,o){var s=a===b;var u=this.entries;var l=0;for(var c=u.length;l<c;l++){if(ve(n,u[l][0])){break}}var f=l<c;if(f?u[l][1]===a:s){return this}E(o);(s||!f)&&E(i);if(s&&u.length===1){return}if(!f&&!s&&u.length>=_t){return lt(e,u,n,a)}var d=e&&e===this.ownerID;var p=d?u:k(u);if(f){if(s){l===c-1?p.pop():p[l]=p.pop()}else{p[l]=[n,a]}}else{p.push([n,a])}if(d){this.entries=p;return this}return new Ge(e,p)};function Qe(e,t,r){this.ownerID=e;this.bitmap=t;this.nodes=r}Qe.prototype.get=function(e,t,r,n){if(t===undefined){t=Me(r)}var a=1<<((e===0?t:t>>>e)&g);var i=this.bitmap;return(i&a)===0?n:this.nodes[yt(i&a-1)].get(e+m,t,r,n)};Qe.prototype.update=function(e,t,r,n,a,i,o){if(r===undefined){r=Me(n)}var s=(t===0?r:r>>>t)&g;var u=1<<s;var l=this.bitmap;var c=(l&u)!==0;if(!c&&a===b){return this}var f=yt(l&u-1);var d=this.nodes;var p=c?d[f]:undefined;var h=ot(p,e,t+m,r,n,a,i,o);if(h===p){return this}if(!c&&h&&d.length>=wt){return ft(e,d,l,s,h)}if(c&&!h&&d.length===2&&st(d[f^1])){return d[f^1]}if(c&&h&&d.length===1&&st(h)){return h}var v=e&&e===this.ownerID;var y=c?h?l:l^u:l|u;var A=c?h?gt(d,f,h,v):At(d,f,v):bt(d,f,h,v);if(v){this.bitmap=y;this.nodes=A;return this}return new Qe(e,y,A)};function Je(e,t,r){this.ownerID=e;this.count=t;this.nodes=r}Je.prototype.get=function(e,t,r,n){if(t===undefined){t=Me(r)}var a=(e===0?t:t>>>e)&g;var i=this.nodes[a];return i?i.get(e+m,t,r,n):n};Je.prototype.update=function(e,t,r,n,a,i,o){if(r===undefined){r=Me(n)}var s=(t===0?r:r>>>t)&g;var u=a===b;var l=this.nodes;var c=l[s];if(u&&!c){return this}var f=ot(c,e,t+m,r,n,a,i,o);if(f===c){return this}var d=this.count;if(!c){d++}else if(!f){d--;if(d<Et){return ct(e,l,d,s)}}var p=e&&e===this.ownerID;var h=gt(l,s,f,p);if(p){this.count=d;this.nodes=h;return this}return new Je(e,d,h)};function Ze(e,t,r){this.ownerID=e;this.keyHash=t;this.entries=r}Ze.prototype.get=function(e,t,r,n){var a=this.entries;for(var i=0,o=a.length;i<o;i++){if(ve(r,a[i][0])){return a[i][1]}}return n};Ze.prototype.update=function(e,t,r,n,a,i,o){if(r===undefined){r=Me(n)}var s=a===b;if(r!==this.keyHash){if(s){return this}E(o);E(i);return ut(this,e,t,r,[n,a])}var u=this.entries;var l=0;for(var c=u.length;l<c;l++){if(ve(n,u[l][0])){break}}var f=l<c;if(f?u[l][1]===a:s){return this}E(o);(s||!f)&&E(i);if(s&&c===2){return new Xe(e,this.keyHash,u[l^1])}var d=e&&e===this.ownerID;var p=d?u:k(u);if(f){if(s){l===c-1?p.pop():p[l]=p.pop()}else{p[l]=[n,a]}}else{p.push([n,a])}if(d){this.entries=p;return this}return new Ze(e,this.keyHash,p)};function Xe(e,t,r){this.ownerID=e;this.keyHash=t;this.entry=r}Xe.prototype.get=function(e,t,r,n){return ve(r,this.entry[0])?this.entry[1]:n};Xe.prototype.update=function(e,t,r,n,a,i,o){var s=a===b;var u=ve(n,this.entry[0]);if(u?a===this.entry[1]:s){return this}E(o);if(s){E(i);return}if(u){if(e&&e===this.ownerID){this.entry[1]=a;return this}return new Xe(e,this.keyHash,[n,a])}E(i);return ut(this,e,t,Me(n),[n,a])};Ge.prototype.iterate=Ze.prototype.iterate=function(e,t){var r=this.entries;for(var n=0,a=r.length-1;n<=a;n++){if(e(r[t?a-n:n])===false){return false}}};Qe.prototype.iterate=Je.prototype.iterate=function(e,t){var r=this.nodes;for(var n=0,a=r.length-1;n<=a;n++){var i=r[t?a-n:n];if(i&&i.iterate(e,t)===false){return false}}};Xe.prototype.iterate=function(e,t){return e(this.entry)};t($e,Y);function $e(e,t,r){this._type=t;this._reverse=r;this._stack=e._root&&tt(e._root)}$e.prototype.next=function(){var e=this._type;var t=this._stack;while(t){var r=t.node;var n=t.index++;var a;if(r.entry){if(n===0){return et(e,r.entry)}}else if(r.entries){a=r.entries.length-1;if(n<=a){return et(e,r.entries[this._reverse?a-n:n])}}else{a=r.nodes.length-1;if(n<=a){var i=r.nodes[this._reverse?a-n:n];if(i){if(i.entry){return et(e,i.entry)}t=this._stack=tt(i,t)}continue}}t=this._stack=this._stack.__prev}return H()};function et(e,t){return B(e,t[0],t[1])}function tt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,r,n){var a=Object.create(Ke);a.size=e;a._root=t;a.__ownerID=r;a.__hash=n;a.__altered=false;return a}var nt;function at(){return nt||(nt=rt(0))}function it(e,t,r){var n;var a;if(!e._root){if(r===b){return e}a=1;n=new Ge(e.__ownerID,[[t,r]])}else{var i=w(A);var o=w(_);n=ot(e._root,e.__ownerID,0,undefined,t,r,i,o);if(!o.value){return e}a=e.size+(i.value?r===b?-1:1:0)}if(e.__ownerID){e.size=a;e._root=n;e.__hash=undefined;e.__altered=true;return e}return n?rt(a,n):at()}function ot(e,t,r,n,a,i,o,s){if(!e){if(i===b){return e}E(s);E(o);return new Xe(t,n,[a,i])}return e.update(t,r,n,a,i,o,s)}function st(e){return e.constructor===Xe||e.constructor===Ze}function ut(e,t,r,n,a){if(e.keyHash===n){return new Ze(t,n,[e.entry,a])}var i=(r===0?e.keyHash:e.keyHash>>>r)&g;var o=(r===0?n:n>>>r)&g;var s;var u=i===o?[ut(e,t,r+m,n,a)]:(s=new Xe(t,n,a),i<o?[e,s]:[s,e]);return new Qe(t,1<<i|1<<o,u)}function lt(e,t,r,n){if(!e){e=new x}var a=new Xe(e,Me(r),[r,n]);for(var i=0;i<t.length;i++){var o=t[i];a=a.update(e,0,undefined,o[0],o[1])}return a}function ct(e,t,r,n){var a=0;var i=0;var o=new Array(r);for(var s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];if(c!==undefined&&s!==n){a|=u;o[i++]=c}}return new Qe(e,a,o)}function ft(e,t,r,n,a){var i=0;var o=new Array(y);for(var s=0;r!==0;s++,r>>>=1){o[s]=r&1?t[i++]:undefined}o[n]=a;return new Je(e,i+1,o)}function dt(e,t,r){var a=[];for(var i=0;i<r.length;i++){var s=r[i];var u=n(s);if(!o(s)){u=u.map((function(e){return fe(e)}))}a.push(u)}return vt(e,t,a)}function pt(e,t,r){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,r,n){if(t&&t.mergeDeepWith&&o(r)){return t.mergeDeepWith(e,r)}var a=e(t,r,n);return ve(t,a)?t:a}}function vt(e,t,r){r=r.filter((function(e){return e.size!==0}));if(r.length===0){return e}if(e.size===0&&!e.__ownerID&&r.length===1){return e.constructor(r[0])}return e.withMutations((function(e){var n=t?function(r,n){e.update(n,b,(function(e){return e===b?r:t(e,r,n)}))}:function(t,r){e.set(r,t)};for(var a=0;a<r.length;a++){r[a].forEach(n)}}))}function mt(e,t,r,n){var a=e===b;var i=t.next();if(i.done){var o=a?r:e;var s=n(o);return s===o?e:s}be(a||e&&e.set,"invalid keyPath");var u=i.value;var l=a?b:e.get(u,b);var c=mt(l,t,r,n);return c===l?e:c===b?e.remove(u):(a?at():e).set(u,c)}function yt(e){e=e-(e>>1&1431655765);e=(e&858993459)+(e>>2&858993459);e=e+(e>>4)&252645135;e=e+(e>>8);e=e+(e>>16);return e&127}function gt(e,t,r,n){var a=n?e:k(e);a[t]=r;return a}function bt(e,t,r,n){var a=e.length+1;if(n&&t+1===a){e[t]=r;return e}var i=new Array(a);var o=0;for(var s=0;s<a;s++){if(s===t){i[s]=r;o=-1}else{i[s]=e[s+o]}}return i}function At(e,t,r){var n=e.length-1;if(r&&t===n){e.pop();return e}var a=new Array(n);var i=0;for(var o=0;o<n;o++){if(o===t){i=1}a[o]=e[o+i]}return a}var _t=y/4;var wt=y/2;var Et=y/4;t(xt,xe);function xt(e){var t=jt();if(e===null||e===undefined){return t}if(kt(e)){return e}var r=a(e);var n=r.size;if(n===0){return t}ze(n);if(n>0&&n<y){return Lt(0,n,m,null,new Mt(r.toArray()))}return t.withMutations((function(e){e.setSize(n);r.forEach((function(t,r){return e.set(r,t)}))}))}xt.of=function(){return this(arguments)};xt.prototype.toString=function(){return this.__toString("List [","]")};xt.prototype.get=function(e,t){e=O(this,e);if(e>=0&&e<this.size){e+=this._origin;var r=Rt(this,e);return r&&r.array[e&g]}return t};xt.prototype.set=function(e,t){return Nt(this,e,t)};xt.prototype.remove=function(e){return!this.has(e)?this:e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1)};xt.prototype.insert=function(e,t){return this.splice(e,0,t)};xt.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=this._origin=this._capacity=0;this._level=m;this._root=this._tail=null;this.__hash=undefined;this.__altered=true;return this}return jt()};xt.prototype.push=function(){var e=arguments;var t=this.size;return this.withMutations((function(r){Ft(r,0,t+e.length);for(var n=0;n<e.length;n++){r.set(t+n,e[n])}}))};xt.prototype.pop=function(){return Ft(this,0,-1)};xt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var r=0;r<e.length;r++){t.set(r,e[r])}}))};xt.prototype.shift=function(){return Ft(this,1)};xt.prototype.merge=function(){return Yt(this,undefined,arguments)};xt.prototype.mergeWith=function(t){var r=e.call(arguments,1);return Yt(this,t,r)};xt.prototype.mergeDeep=function(){return Yt(this,pt,arguments)};xt.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return Yt(this,ht(t),r)};xt.prototype.setSize=function(e){return Ft(this,0,e)};xt.prototype.slice=function(e,t){var r=this.size;if(D(e,t,r)){return this}return Ft(this,T(e,r),L(t,r))};xt.prototype.__iterator=function(e,t){var r=0;var n=Tt(this,t);return new Y((function(){var t=n();return t===Dt?H():B(e,r++,t)}))};xt.prototype.__iterate=function(e,t){var r=0;var n=Tt(this,t);var a;while((a=n())!==Dt){if(e(a,r++,this)===false){break}}return r};xt.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;return this}return Lt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash)};function kt(e){return!!(e&&e[St])}xt.isList=kt;var St="@@__IMMUTABLE_LIST__@@";var Ot=xt.prototype;Ot[St]=true;Ot[v]=Ot.remove;Ot.setIn=Ke.setIn;Ot.deleteIn=Ot.removeIn=Ke.removeIn;Ot.update=Ke.update;Ot.updateIn=Ke.updateIn;Ot.mergeIn=Ke.mergeIn;Ot.mergeDeepIn=Ke.mergeDeepIn;Ot.withMutations=Ke.withMutations;Ot.asMutable=Ke.asMutable;Ot.asImmutable=Ke.asImmutable;Ot.wasAltered=Ke.wasAltered;function Mt(e,t){this.array=e;this.ownerID=t}Mt.prototype.removeBefore=function(e,t,r){if(r===t?1<<t:false||this.array.length===0){return this}var n=r>>>t&g;if(n>=this.array.length){return new Mt([],e)}var a=n===0;var i;if(t>0){var o=this.array[n];i=o&&o.removeBefore(e,t-m,r);if(i===o&&a){return this}}if(a&&!i){return this}var s=Pt(this,e);if(!a){for(var u=0;u<n;u++){s.array[u]=undefined}}if(i){s.array[n]=i}return s};Mt.prototype.removeAfter=function(e,t,r){if(r===(t?1<<t:0)||this.array.length===0){return this}var n=r-1>>>t&g;if(n>=this.array.length){return this}var a;if(t>0){var i=this.array[n];a=i&&i.removeAfter(e,t-m,r);if(a===i&&n===this.array.length-1){return this}}var o=Pt(this,e);o.array.splice(n+1);if(a){o.array[n]=a}return o};var Dt={};function Tt(e,t){var r=e._origin;var n=e._capacity;var a=Bt(n);var i=e._tail;return o(e._root,e._level,0);function o(e,t,r){return t===0?s(e,r):u(e,t,r)}function s(e,o){var s=o===a?i&&i.array:e&&e.array;var u=o>r?0:r-o;var l=n-o;if(l>y){l=y}return function(){if(u===l){return Dt}var e=t?--l:u++;return s&&s[e]}}function u(e,a,i){var s;var u=e&&e.array;var l=i>r?0:r-i>>a;var c=(n-i>>a)+1;if(c>y){c=y}return function(){do{if(s){var e=s();if(e!==Dt){return e}s=null}if(l===c){return Dt}var r=t?--c:l++;s=o(u&&u[r],a-m,i+(r<<a))}while(true)}}}function Lt(e,t,r,n,a,i,o){var s=Object.create(Ot);s.size=t-e;s._origin=e;s._capacity=t;s._level=r;s._root=n;s._tail=a;s.__ownerID=i;s.__hash=o;s.__altered=false;return s}var Ct;function jt(){return Ct||(Ct=Lt(0,0,m))}function Nt(e,t,r){t=O(e,t);if(t!==t){return e}if(t>=e.size||t<0){return e.withMutations((function(e){t<0?Ft(e,t).set(0,r):Ft(e,0,t+1).set(t,r)}))}t+=e._origin;var n=e._tail;var a=e._root;var i=w(_);if(t>=Bt(e._capacity)){n=It(n,e.__ownerID,0,t,r,i)}else{a=It(a,e.__ownerID,e._level,t,r,i)}if(!i.value){return e}if(e.__ownerID){e._root=a;e._tail=n;e.__hash=undefined;e.__altered=true;return e}return Lt(e._origin,e._capacity,e._level,a,n)}function It(e,t,r,n,a,i){var o=n>>>r&g;var s=e&&o<e.array.length;if(!s&&a===undefined){return e}var u;if(r>0){var l=e&&e.array[o];var c=It(l,t,r-m,n,a,i);if(c===l){return e}u=Pt(e,t);u.array[o]=c;return u}if(s&&e.array[o]===a){return e}E(i);u=Pt(e,t);if(a===undefined&&o===u.array.length-1){u.array.pop()}else{u.array[o]=a}return u}function Pt(e,t){if(t&&e&&t===e.ownerID){return e}return new Mt(e?e.array.slice():[],t)}function Rt(e,t){if(t>=Bt(e._capacity)){return e._tail}if(t<1<<e._level+m){var r=e._root;var n=e._level;while(r&&n>0){r=r.array[t>>>n&g];n-=m}return r}}function Ft(e,t,r){if(t!==undefined){t=t|0}if(r!==undefined){r=r|0}var n=e.__ownerID||new x;var a=e._origin;var i=e._capacity;var o=a+t;var s=r===undefined?i:r<0?i+r:a+r;if(o===a&&s===i){return e}if(o>=s){return e.clear()}var u=e._level;var l=e._root;var c=0;while(o+c<0){l=new Mt(l&&l.array.length?[undefined,l]:[],n);u+=m;c+=1<<u}if(c){o+=c;a+=c;s+=c;i+=c}var f=Bt(i);var d=Bt(s);while(d>=1<<u+m){l=new Mt(l&&l.array.length?[l]:[],n);u+=m}var p=e._tail;var h=d<f?Rt(e,s-1):d>f?new Mt([],n):p;if(p&&d>f&&o<i&&p.array.length){l=Pt(l,n);var v=l;for(var y=u;y>m;y-=m){var b=f>>>y&g;v=v.array[b]=Pt(v.array[b],n)}v.array[f>>>m&g]=p}if(s<i){h=h&&h.removeAfter(n,0,s)}if(o>=d){o-=d;s-=d;u=m;l=null;h=h&&h.removeBefore(n,0,o)}else if(o>a||d<f){c=0;while(l){var A=o>>>u&g;if(A!==d>>>u&g){break}if(A){c+=(1<<u)*A}u-=m;l=l.array[A]}if(l&&o>a){l=l.removeBefore(n,u,o-c)}if(l&&d<f){l=l.removeAfter(n,u,d-c)}if(c){o-=c;s-=c}}if(e.__ownerID){e.size=s-o;e._origin=o;e._capacity=s;e._level=u;e._root=l;e._tail=h;e.__hash=undefined;e.__altered=true;return e}return Lt(o,s,u,l,h)}function Yt(e,t,r){var n=[];var i=0;for(var s=0;s<r.length;s++){var u=r[s];var l=a(u);if(l.size>i){i=l.size}if(!o(u)){l=l.map((function(e){return fe(e)}))}n.push(l)}if(i>e.size){e=e.setSize(i)}return vt(e,t,n)}function Bt(e){return e<y?0:e-1>>>m<<m}t(Ht,qe);function Ht(e){return e===null||e===undefined?Vt():Ut(e)?e:Vt().withMutations((function(t){var r=n(e);ze(r.size);r.forEach((function(e,r){return t.set(r,e)}))}))}Ht.of=function(){return this(arguments)};Ht.prototype.toString=function(){return this.__toString("OrderedMap {","}")};Ht.prototype.get=function(e,t){var r=this._map.get(e);return r!==undefined?this._list.get(r)[1]:t};Ht.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._map.clear();this._list.clear();return this}return Vt()};Ht.prototype.set=function(e,t){return Wt(this,e,t)};Ht.prototype.remove=function(e){return Wt(this,e,b)};Ht.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()};Ht.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],r)}),t)};Ht.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)};Ht.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}var t=this._map.__ensureOwner(e);var r=this._list.__ensureOwner(e);if(!e){this.__ownerID=e;this._map=t;this._list=r;return this}return zt(t,r,e,this.__hash)};function Ut(e){return Ve(e)&&c(e)}Ht.isOrderedMap=Ut;Ht.prototype[h]=true;Ht.prototype[v]=Ht.prototype.remove;function zt(e,t,r,n){var a=Object.create(Ht.prototype);a.size=e?e.size:0;a._map=e;a._list=t;a.__ownerID=r;a.__hash=n;return a}var qt;function Vt(){return qt||(qt=zt(at(),jt()))}function Wt(e,t,r){var n=e._map;var a=e._list;var i=n.get(t);var o=i!==undefined;var s;var u;if(r===b){if(!o){return e}if(a.size>=y&&a.size>=n.size*2){u=a.filter((function(e,t){return e!==undefined&&i!==t}));s=u.toKeyedSeq().map((function(e){return e[0]})).flip().toMap();if(e.__ownerID){s.__ownerID=u.__ownerID=e.__ownerID}}else{s=n.remove(t);u=i===a.size-1?a.pop():a.set(i,undefined)}}else{if(o){if(r===a.get(i)[1]){return e}s=n;u=a.set(i,[t,r])}else{s=n.set(t,a.size);u=a.set(a.size,[t,r])}}if(e.__ownerID){e.size=s.size;e._map=s;e._list=u;e.__hash=undefined;return e}return zt(s,u)}t(Kt,G);function Kt(e,t){this._iter=e;this._useKeys=t;this.size=e.size}Kt.prototype.get=function(e,t){return this._iter.get(e,t)};Kt.prototype.has=function(e){return this._iter.has(e)};Kt.prototype.valueSeq=function(){return this._iter.valueSeq()};Kt.prototype.reverse=function(){var e=this;var t=$t(this,true);if(!this._useKeys){t.valueSeq=function(){return e._iter.toSeq().reverse()}}return t};Kt.prototype.map=function(e,t){var r=this;var n=Xt(this,e,t);if(!this._useKeys){n.valueSeq=function(){return r._iter.toSeq().map(e,t)}}return n};Kt.prototype.__iterate=function(e,t){var r=this;var n;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?mr(this):0,function(a){return e(a,t?--n:n++,r)}),t)};Kt.prototype.__iterator=function(e,t){if(this._useKeys){return this._iter.__iterator(e,t)}var r=this._iter.__iterator(N,t);var n=t?mr(this):0;return new Y((function(){var a=r.next();return a.done?a:B(e,t?--n:n++,a.value,a)}))};Kt.prototype[h]=true;t(Gt,Q);function Gt(e){this._iter=e;this.size=e.size}Gt.prototype.includes=function(e){return this._iter.includes(e)};Gt.prototype.__iterate=function(e,t){var r=this;var n=0;return this._iter.__iterate((function(t){return e(t,n++,r)}),t)};Gt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(N,t);var n=0;return new Y((function(){var t=r.next();return t.done?t:B(e,n++,t.value,t)}))};t(Qt,J);function Qt(e){this._iter=e;this.size=e.size}Qt.prototype.has=function(e){return this._iter.includes(e)};Qt.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate((function(t){return e(t,t,r)}),t)};Qt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(N,t);return new Y((function(){var t=r.next();return t.done?t:B(e,t.value,t.value,t)}))};t(Jt,G);function Jt(e){this._iter=e;this.size=e.size}Jt.prototype.entrySeq=function(){return this._iter.toSeq()};Jt.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate((function(t){if(t){vr(t);var n=o(t);return e(n?t.get(1):t[1],n?t.get(0):t[0],r)}}),t)};Jt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(N,t);return new Y((function(){while(true){var t=r.next();if(t.done){return t}var n=t.value;if(n){vr(n);var a=o(n);return B(e,a?n.get(0):n[0],a?n.get(1):n[1],t)}}}))};Gt.prototype.cacheResult=Kt.prototype.cacheResult=Qt.prototype.cacheResult=Jt.prototype.cacheResult=br;function Zt(e){var t=gr(e);t._iter=e;t.size=e.size;t.flip=function(){return e};t.reverse=function(){var t=e.reverse.apply(this);t.flip=function(){return e.reverse()};return t};t.has=function(t){return e.includes(t)};t.includes=function(t){return e.has(t)};t.cacheResult=br;t.__iterateUncached=function(t,r){var n=this;return e.__iterate((function(e,r){return t(r,e,n)!==false}),r)};t.__iteratorUncached=function(t,r){if(t===I){var n=e.__iterator(t,r);return new Y((function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1];e.value[1]=t}return e}))}return e.__iterator(t===N?j:N,r)};return t}function Xt(e,t,r){var n=gr(e);n.size=e.size;n.has=function(t){return e.has(t)};n.get=function(n,a){var i=e.get(n,b);return i===b?a:t.call(r,i,n,e)};n.__iterateUncached=function(n,a){var i=this;return e.__iterate((function(e,a,o){return n(t.call(r,e,a,o),a,i)!==false}),a)};n.__iteratorUncached=function(n,a){var i=e.__iterator(I,a);return new Y((function(){var a=i.next();if(a.done){return a}var o=a.value;var s=o[0];return B(n,s,t.call(r,o[1],s,e),a)}))};return n}function $t(e,t){var r=gr(e);r._iter=e;r.size=e.size;r.reverse=function(){return e};if(e.flip){r.flip=function(){var t=Zt(e);t.reverse=function(){return e.flip()};return t}}r.get=function(r,n){return e.get(t?r:-1-r,n)};r.has=function(r){return e.has(t?r:-1-r)};r.includes=function(t){return e.includes(t)};r.cacheResult=br;r.__iterate=function(t,r){var n=this;return e.__iterate((function(e,r){return t(e,r,n)}),!r)};r.__iterator=function(t,r){return e.__iterator(t,!r)};return r}function er(e,t,r,n){var a=gr(e);if(n){a.has=function(n){var a=e.get(n,b);return a!==b&&!!t.call(r,a,n,e)};a.get=function(n,a){var i=e.get(n,b);return i!==b&&t.call(r,i,n,e)?i:a}}a.__iterateUncached=function(a,i){var o=this;var s=0;e.__iterate((function(e,i,u){if(t.call(r,e,i,u)){s++;return a(e,n?i:s-1,o)}}),i);return s};a.__iteratorUncached=function(a,i){var o=e.__iterator(I,i);var s=0;return new Y((function(){while(true){var i=o.next();if(i.done){return i}var u=i.value;var l=u[0];var c=u[1];if(t.call(r,c,l,e)){return B(a,n?l:s++,c,i)}}}))};return a}function tr(e,t,r){var n=qe().asMutable();e.__iterate((function(a,i){n.update(t.call(r,a,i,e),0,(function(e){return e+1}))}));return n.asImmutable()}function rr(e,t,r){var n=s(e);var a=(c(e)?Ht():qe()).asMutable();e.__iterate((function(i,o){a.update(t.call(r,i,o,e),(function(e){return e=e||[],e.push(n?[o,i]:i),e}))}));var i=yr(e);return a.map((function(t){return hr(e,i(t))}))}function nr(e,t,r,n){var a=e.size;if(t!==undefined){t=t|0}if(r!==undefined){r=r|0}if(D(t,r,a)){return e}var i=T(t,a);var o=L(r,a);if(i!==i||o!==o){return nr(e.toSeq().cacheResult(),t,r,n)}var s=o-i;var u;if(s===s){u=s<0?0:s}var l=gr(e);l.size=u===0?u:e.size&&u||undefined;if(!n&&re(e)&&u>=0){l.get=function(t,r){t=O(this,t);return t>=0&&t<u?e.get(t+i,r):r}}l.__iterateUncached=function(t,r){var a=this;if(u===0){return 0}if(r){return this.cacheResult().__iterate(t,r)}var o=0;var s=true;var l=0;e.__iterate((function(e,r){if(!(s&&(s=o++<i))){l++;return t(e,n?r:l-1,a)!==false&&l!==u}}));return l};l.__iteratorUncached=function(t,r){if(u!==0&&r){return this.cacheResult().__iterator(t,r)}var a=u!==0&&e.__iterator(t,r);var o=0;var s=0;return new Y((function(){while(o++<i){a.next()}if(++s>u){return H()}var e=a.next();if(n||t===N){return e}else if(t===j){return B(t,s-1,undefined,e)}else{return B(t,s-1,e.value[1],e)}}))};return l}function ar(e,t,r){var n=gr(e);n.__iterateUncached=function(n,a){var i=this;if(a){return this.cacheResult().__iterate(n,a)}var o=0;e.__iterate((function(e,a,s){return t.call(r,e,a,s)&&++o&&n(e,a,i)}));return o};n.__iteratorUncached=function(n,a){var i=this;if(a){return this.cacheResult().__iterator(n,a)}var o=e.__iterator(I,a);var s=true;return new Y((function(){if(!s){return H()}var e=o.next();if(e.done){return e}var a=e.value;var u=a[0];var l=a[1];if(!t.call(r,l,u,i)){s=false;return H()}return n===I?e:B(n,u,l,e)}))};return n}function ir(e,t,r,n){var a=gr(e);a.__iterateUncached=function(a,i){var o=this;if(i){return this.cacheResult().__iterate(a,i)}var s=true;var u=0;e.__iterate((function(e,i,l){if(!(s&&(s=t.call(r,e,i,l)))){u++;return a(e,n?i:u-1,o)}}));return u};a.__iteratorUncached=function(a,i){var o=this;if(i){return this.cacheResult().__iterator(a,i)}var s=e.__iterator(I,i);var u=true;var l=0;return new Y((function(){var e,i,c;do{e=s.next();if(e.done){if(n||a===N){return e}else if(a===j){return B(a,l++,undefined,e)}else{return B(a,l++,e.value[1],e)}}var f=e.value;i=f[0];c=f[1];u&&(u=t.call(r,c,i,o))}while(u);return a===I?e:B(a,i,c,e)}))};return a}function or(e,t){var r=s(e);var a=[e].concat(t).map((function(e){if(!o(e)){e=r?ie(e):oe(Array.isArray(e)?e:[e])}else if(r){e=n(e)}return e})).filter((function(e){return e.size!==0}));if(a.length===0){return e}if(a.length===1){var i=a[0];if(i===e||r&&s(i)||u(e)&&u(i)){return i}}var l=new X(a);if(r){l=l.toKeyedSeq()}else if(!u(e)){l=l.toSetSeq()}l=l.flatten(true);l.size=a.reduce((function(e,t){if(e!==undefined){var r=t.size;if(r!==undefined){return e+r}}}),0);return l}function sr(e,t,r){var n=gr(e);n.__iterateUncached=function(n,a){var i=0;var s=false;function u(e,l){var c=this;e.__iterate((function(e,a){if((!t||l<t)&&o(e)){u(e,l+1)}else if(n(e,r?a:i++,c)===false){s=true}return!s}),a)}u(e,0);return i};n.__iteratorUncached=function(n,a){var i=e.__iterator(n,a);var s=[];var u=0;return new Y((function(){while(i){var e=i.next();if(e.done!==false){i=s.pop();continue}var l=e.value;if(n===I){l=l[1]}if((!t||s.length<t)&&o(l)){s.push(i);i=l.__iterator(n,a)}else{return r?e:B(n,u++,l,e)}}return H()}))};return n}function ur(e,t,r){var n=yr(e);return e.toSeq().map((function(a,i){return n(t.call(r,a,i,e))})).flatten(true)}function lr(e,t){var r=gr(e);r.size=e.size&&e.size*2-1;r.__iterateUncached=function(r,n){var a=this;var i=0;e.__iterate((function(e,n){return(!i||r(t,i++,a)!==false)&&r(e,i++,a)!==false}),n);return i};r.__iteratorUncached=function(r,n){var a=e.__iterator(N,n);var i=0;var o;return new Y((function(){if(!o||i%2){o=a.next();if(o.done){return o}}return i%2?B(r,i++,t):B(r,i++,o.value,o)}))};return r}function cr(e,t,r){if(!t){t=Ar}var n=s(e);var a=0;var i=e.toSeq().map((function(t,n){return[n,t,a++,r?r(t,n,e):t]})).toArray();i.sort((function(e,r){return t(e[3],r[3])||e[2]-r[2]})).forEach(n?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]});return n?G(i):u(e)?Q(i):J(i)}function fr(e,t,r){if(!t){t=Ar}if(r){var n=e.toSeq().map((function(t,n){return[t,r(t,n,e)]})).reduce((function(e,r){return dr(t,e[1],r[1])?r:e}));return n&&n[0]}else{return e.reduce((function(e,r){return dr(t,e,r)?r:e}))}}function dr(e,t,r){var n=e(r,t);return n===0&&r!==t&&(r===undefined||r===null||r!==r)||n>0}function pr(e,t,n){var a=gr(e);a.size=new X(n).map((function(e){return e.size})).min();a.__iterate=function(e,t){var r=this.__iterator(N,t);var n;var a=0;while(!(n=r.next()).done){if(e(n.value,a++,this)===false){break}}return a};a.__iteratorUncached=function(e,a){var i=n.map((function(e){return e=r(e),q(a?e.reverse():e)}));var o=0;var s=false;return new Y((function(){var r;if(!s){r=i.map((function(e){return e.next()}));s=r.some((function(e){return e.done}))}if(s){return H()}return B(e,o++,t.apply(null,r.map((function(e){return e.value}))))}))};return a}function hr(e,t){return re(e)?t:e.constructor(t)}function vr(e){if(e!==Object(e)){throw new TypeError("Expected [K, V] tuple: "+e)}}function mr(e){ze(e.size);return S(e)}function yr(e){return s(e)?n:u(e)?a:i}function gr(e){return Object.create((s(e)?G:u(e)?Q:J).prototype)}function br(){if(this._iter.cacheResult){this._iter.cacheResult();this.size=this._iter.size;return this}else{return K.prototype.cacheResult.call(this)}}function Ar(e,t){return e>t?1:e<t?-1:0}function _r(e){var t=q(e);if(!t){if(!W(e)){throw new TypeError("Expected iterable or array-like: "+e)}t=q(r(e))}return t}t(wr,Ee);function wr(e,t){var r;var n=function i(o){if(o instanceof n){return o}if(!(this instanceof n)){return new n(o)}if(!r){r=true;var s=Object.keys(e);Sr(a,s);a.size=s.length;a._name=t;a._keys=s;a._defaultValues=e}this._map=qe(o)};var a=n.prototype=Object.create(Er);a.constructor=n;return n}wr.prototype.toString=function(){return this.__toString(kr(this)+" {","}")};wr.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)};wr.prototype.get=function(e,t){if(!this.has(e)){return t}var r=this._defaultValues[e];return this._map?this._map.get(e,r):r};wr.prototype.clear=function(){if(this.__ownerID){this._map&&this._map.clear();return this}var e=this.constructor;return e._empty||(e._empty=xr(this,at()))};wr.prototype.set=function(e,t){if(!this.has(e)){throw new Error('Cannot set unknown key "'+e+'" on '+kr(this))}var r=this._map&&this._map.set(e,t);if(this.__ownerID||r===this._map){return this}return xr(this,r)};wr.prototype.remove=function(e){if(!this.has(e)){return this}var t=this._map&&this._map.remove(e);if(this.__ownerID||t===this._map){return this}return xr(this,t)};wr.prototype.wasAltered=function(){return this._map.wasAltered()};wr.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map((function(e,t){return r.get(t)})).__iterator(e,t)};wr.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map((function(e,t){return r.get(t)})).__iterate(e,t)};wr.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}var t=this._map&&this._map.__ensureOwner(e);if(!e){this.__ownerID=e;this._map=t;return this}return xr(this,t,e)};var Er=wr.prototype;Er[v]=Er.remove;Er.deleteIn=Er.removeIn=Ke.removeIn;Er.merge=Ke.merge;Er.mergeWith=Ke.mergeWith;Er.mergeIn=Ke.mergeIn;Er.mergeDeep=Ke.mergeDeep;Er.mergeDeepWith=Ke.mergeDeepWith;Er.mergeDeepIn=Ke.mergeDeepIn;Er.setIn=Ke.setIn;Er.update=Ke.update;Er.updateIn=Ke.updateIn;Er.withMutations=Ke.withMutations;Er.asMutable=Ke.asMutable;Er.asImmutable=Ke.asImmutable;function xr(e,t,r){var n=Object.create(Object.getPrototypeOf(e));n._map=t;n.__ownerID=r;return n}function kr(e){return e._name||e.constructor.name||"Record"}function Sr(e,t){try{t.forEach(Or.bind(undefined,e))}catch(e){}}function Or(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){be(this.__ownerID,"Cannot set on an immutable record.");this.set(t,e)}})}t(Mr,ke);function Mr(e){return e===null||e===undefined?Ir():Dr(e)&&!c(e)?e:Ir().withMutations((function(t){var r=i(e);ze(r.size);r.forEach((function(e){return t.add(e)}))}))}Mr.of=function(){return this(arguments)};Mr.fromKeys=function(e){return this(n(e).keySeq())};Mr.prototype.toString=function(){return this.__toString("Set {","}")};Mr.prototype.has=function(e){return this._map.has(e)};Mr.prototype.add=function(e){return Cr(this,this._map.set(e,true))};Mr.prototype.remove=function(e){return Cr(this,this._map.remove(e))};Mr.prototype.clear=function(){return Cr(this,this._map.clear())};Mr.prototype.union=function(){var t=e.call(arguments,0);t=t.filter((function(e){return e.size!==0}));if(t.length===0){return this}if(this.size===0&&!this.__ownerID&&t.length===1){return this.constructor(t[0])}return this.withMutations((function(e){for(var r=0;r<t.length;r++){i(t[r]).forEach((function(t){return e.add(t)}))}}))};Mr.prototype.intersect=function(){var t=e.call(arguments,0);if(t.length===0){return this}t=t.map((function(e){return i(e)}));var r=this;return this.withMutations((function(e){r.forEach((function(r){if(!t.every((function(e){return e.includes(r)}))){e.remove(r)}}))}))};Mr.prototype.subtract=function(){var t=e.call(arguments,0);if(t.length===0){return this}t=t.map((function(e){return i(e)}));var r=this;return this.withMutations((function(e){r.forEach((function(r){if(t.some((function(e){return e.includes(r)}))){e.remove(r)}}))}))};Mr.prototype.merge=function(){return this.union.apply(this,arguments)};Mr.prototype.mergeWith=function(t){var r=e.call(arguments,1);return this.union.apply(this,r)};Mr.prototype.sort=function(e){return Pr(cr(this,e))};Mr.prototype.sortBy=function(e,t){return Pr(cr(this,t,e))};Mr.prototype.wasAltered=function(){return this._map.wasAltered()};Mr.prototype.__iterate=function(e,t){var r=this;return this._map.__iterate((function(t,n){return e(n,n,r)}),t)};Mr.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)};Mr.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}var t=this._map.__ensureOwner(e);if(!e){this.__ownerID=e;this._map=t;return this}return this.__make(t,e)};function Dr(e){return!!(e&&e[Tr])}Mr.isSet=Dr;var Tr="@@__IMMUTABLE_SET__@@";var Lr=Mr.prototype;Lr[Tr]=true;Lr[v]=Lr.remove;Lr.mergeDeep=Lr.merge;Lr.mergeDeepWith=Lr.mergeWith;Lr.withMutations=Ke.withMutations;Lr.asMutable=Ke.asMutable;Lr.asImmutable=Ke.asImmutable;Lr.__empty=Ir;Lr.__make=jr;function Cr(e,t){if(e.__ownerID){e.size=t.size;e._map=t;return e}return t===e._map?e:t.size===0?e.__empty():e.__make(t)}function jr(e,t){var r=Object.create(Lr);r.size=e?e.size:0;r._map=e;r.__ownerID=t;return r}var Nr;function Ir(){return Nr||(Nr=jr(at()))}t(Pr,Mr);function Pr(e){return e===null||e===undefined?Hr():Rr(e)?e:Hr().withMutations((function(t){var r=i(e);ze(r.size);r.forEach((function(e){return t.add(e)}))}))}Pr.of=function(){return this(arguments)};Pr.fromKeys=function(e){return this(n(e).keySeq())};Pr.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Rr(e){return Dr(e)&&c(e)}Pr.isOrderedSet=Rr;var Fr=Pr.prototype;Fr[h]=true;Fr.__empty=Hr;Fr.__make=Yr;function Yr(e,t){var r=Object.create(Fr);r.size=e?e.size:0;r._map=e;r.__ownerID=t;return r}var Br;function Hr(){return Br||(Br=Yr(Vt()))}t(Ur,xe);function Ur(e){return e===null||e===undefined?Gr():zr(e)?e:Gr().unshiftAll(e)}Ur.of=function(){return this(arguments)};Ur.prototype.toString=function(){return this.__toString("Stack [","]")};Ur.prototype.get=function(e,t){var r=this._head;e=O(this,e);while(r&&e--){r=r.next}return r?r.value:t};Ur.prototype.peek=function(){return this._head&&this._head.value};Ur.prototype.push=function(){if(arguments.length===0){return this}var e=this.size+arguments.length;var t=this._head;for(var r=arguments.length-1;r>=0;r--){t={value:arguments[r],next:t}}if(this.__ownerID){this.size=e;this._head=t;this.__hash=undefined;this.__altered=true;return this}return Wr(e,t)};Ur.prototype.pushAll=function(e){e=a(e);if(e.size===0){return this}ze(e.size);var t=this.size;var r=this._head;e.reverse().forEach((function(e){t++;r={value:e,next:r}}));if(this.__ownerID){this.size=t;this._head=r;this.__hash=undefined;this.__altered=true;return this}return Wr(t,r)};Ur.prototype.pop=function(){return this.slice(1)};Ur.prototype.unshift=function(){return this.push.apply(this,arguments)};Ur.prototype.unshiftAll=function(e){return this.pushAll(e)};Ur.prototype.shift=function(){return this.pop.apply(this,arguments)};Ur.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._head=undefined;this.__hash=undefined;this.__altered=true;return this}return Gr()};Ur.prototype.slice=function(e,t){if(D(e,t,this.size)){return this}var r=T(e,this.size);var n=L(t,this.size);if(n!==this.size){return xe.prototype.slice.call(this,e,t)}var a=this.size-r;var i=this._head;while(r--){i=i.next}if(this.__ownerID){this.size=a;this._head=i;this.__hash=undefined;this.__altered=true;return this}return Wr(a,i)};Ur.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;this.__altered=false;return this}return Wr(this.size,this._head,e,this.__hash)};Ur.prototype.__iterate=function(e,t){if(t){return this.reverse().__iterate(e)}var r=0;var n=this._head;while(n){if(e(n.value,r++,this)===false){break}n=n.next}return r};Ur.prototype.__iterator=function(e,t){if(t){return this.reverse().__iterator(e)}var r=0;var n=this._head;return new Y((function(){if(n){var t=n.value;n=n.next;return B(e,r++,t)}return H()}))};function zr(e){return!!(e&&e[qr])}Ur.isStack=zr;var qr="@@__IMMUTABLE_STACK__@@";var Vr=Ur.prototype;Vr[qr]=true;Vr.withMutations=Ke.withMutations;Vr.asMutable=Ke.asMutable;Vr.asImmutable=Ke.asImmutable;Vr.wasAltered=Ke.wasAltered;function Wr(e,t,r,n){var a=Object.create(Vr);a.size=e;a._head=t;a.__ownerID=r;a.__hash=n;a.__altered=false;return a}var Kr;function Gr(){return Kr||(Kr=Wr(0))}function Qr(e,t){var r=function(r){e.prototype[r]=t[r]};Object.keys(t).forEach(r);Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r);return e}r.Iterator=Y;Qr(r,{toArray:function(){ze(this.size);var e=new Array(this.size||0);this.valueSeq().__iterate((function(t,r){e[r]=t}));return e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&typeof e.toJS==="function"?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&typeof e.toJSON==="function"?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Kt(this,true)},toMap:function(){return qe(this.toKeyedSeq())},toObject:function(){ze(this.size);var e={};this.__iterate((function(t,r){e[r]=t}));return e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Pr(s(this)?this.valueSeq():this)},toSet:function(){return Mr(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Qt(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ur(s(this)?this.valueSeq():this)},toList:function(){return xt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){if(this.size===0){return e+t}return e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return hr(this,or(this,t))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){ze(this.size);var r=true;this.__iterate((function(n,a,i){if(!e.call(t,n,a,i)){r=false;return false}}));return r},filter:function(e,t){return hr(this,er(this,e,t,true))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},findEntry:function(e,t){var r;this.__iterate((function(n,a,i){if(e.call(t,n,a,i)){r=[a,n];return false}}));return r},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){ze(this.size);return this.__iterate(t?e.bind(t):e)},join:function(e){ze(this.size);e=e!==undefined?""+e:",";var t="";var r=true;this.__iterate((function(n){r?r=false:t+=e;t+=n!==null&&n!==undefined?n.toString():""}));return t},keys:function(){return this.__iterator(j)},map:function(e,t){return hr(this,Xt(this,e,t))},reduce:function(e,t,r){ze(this.size);var n;var a;if(arguments.length<2){a=true}else{n=t}this.__iterate((function(t,i,o){if(a){a=false;n=t}else{n=e.call(r,n,t,i,o)}}));return n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return hr(this,$t(this,true))},slice:function(e,t){return hr(this,nr(this,e,t,true))},some:function(e,t){return!this.every(en(e),t)},sort:function(e){return hr(this,cr(this,e))},values:function(){return this.__iterator(N)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==undefined?this.size===0:!this.some((function(){return true}))},count:function(e,t){return S(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tr(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache){return new X(e._cache)}var t=e.toSeq().map($r).toIndexedSeq();t.fromEntrySeq=function(){return e.toSeq()};return t},filterNot:function(e,t){return this.filter(en(e),t)},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},first:function(){return this.find(M)},flatMap:function(e,t){return hr(this,ur(this,e,t))},flatten:function(e){return hr(this,sr(this,e,true))},fromEntrySeq:function(){return new Jt(this)},get:function(e,t){return this.find((function(t,r){return ve(r,e)}),undefined,t)},getIn:function(e,t){var r=this;var n=_r(e);var a;while(!(a=n.next()).done){var i=a.value;r=r&&r.get?r.get(i,b):b;if(r===b){return t}}return r},groupBy:function(e,t){return rr(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){e=typeof e.includes==="function"?e:r(e);return this.every((function(t){return e.includes(t)}))},isSuperset:function(e){e=typeof e.isSubset==="function"?e:r(e);return e.isSubset(this)},keySeq:function(){return this.toSeq().map(Xr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fr(this,e)},maxBy:function(e,t){return fr(this,t,e)},min:function(e){return fr(this,e?tn(e):an)},minBy:function(e,t){return fr(this,t?tn(t):an,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return hr(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return hr(this,ir(this,e,t,true))},skipUntil:function(e,t){return this.skipWhile(en(e),t)},sortBy:function(e,t){return hr(this,cr(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return hr(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return hr(this,ar(this,e,t))},takeUntil:function(e,t){return this.takeWhile(en(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var Jr=r.prototype;Jr[f]=true;Jr[F]=Jr.values;Jr.__toJS=Jr.toArray;Jr.__toStringMapper=rn;Jr.inspect=Jr.toSource=function(){return this.toString()};Jr.chain=Jr.flatMap;Jr.contains=Jr.includes;(function(){try{Object.defineProperty(Jr,"length",{get:function(){if(!r.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(e.indexOf("_wrapObject")===-1){console&&console.warn&&console.warn("iterable.length has been deprecated, "+"use iterable.size or iterable.count(). "+"This warning will become a silent error in a future version. "+e);return this.size}}}})}catch(e){}})();Qr(n,{flip:function(){return hr(this,Zt(this))},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var r=this;var n=0;return hr(this,this.toSeq().map((function(a,i){return e.call(t,[i,a],n++,r)})).fromEntrySeq())},mapKeys:function(e,t){var r=this;return hr(this,this.toSeq().flip().map((function(n,a){return e.call(t,n,a,r)})).flip())}});var Zr=n.prototype;Zr[d]=true;Zr[F]=Jr.entries;Zr.__toJS=Jr.toObject;Zr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rn(e)};Qr(a,{toKeyedSeq:function(){return new Kt(this,false)},filter:function(e,t){return hr(this,er(this,e,t,false))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return t===undefined?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return t===undefined?-1:t},reverse:function(){return hr(this,$t(this,false))},slice:function(e,t){return hr(this,nr(this,e,t,false))},splice:function(e,t){var r=arguments.length;t=Math.max(t|0,0);if(r===0||r===2&&!t){return this}e=T(e,e<0?this.count():this.size);var n=this.slice(0,e);return hr(this,r===1?n:n.concat(k(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.toKeyedSeq().findLastKey(e,t);return r===undefined?-1:r},first:function(){return this.get(0)},flatten:function(e){return hr(this,sr(this,e,false))},get:function(e,t){e=O(this,e);return e<0||(this.size===Infinity||this.size!==undefined&&e>this.size)?t:this.find((function(t,r){return r===e}),undefined,t)},has:function(e){e=O(this,e);return e>=0&&(this.size!==undefined?this.size===Infinity||e<this.size:this.indexOf(e)!==-1)},interpose:function(e){return hr(this,lr(this,e))},interleave:function(){var e=[this].concat(k(arguments));var t=pr(this.toSeq(),Q.of,e);var r=t.flatten(true);if(t.size){r.size=t.size*e.length}return hr(this,r)},last:function(){return this.get(-1)},skipWhile:function(e,t){return hr(this,ir(this,e,t,false))},zip:function(){var e=[this].concat(k(arguments));return hr(this,pr(this,nn,e))},zipWith:function(e){var t=k(arguments);t[0]=this;return hr(this,pr(this,e,t))}});a.prototype[p]=true;a.prototype[h]=true;Qr(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});i.prototype.has=Jr.includes;Qr(G,n.prototype);Qr(Q,a.prototype);Qr(J,i.prototype);Qr(Ee,n.prototype);Qr(xe,a.prototype);Qr(ke,i.prototype);function Xr(e,t){return t}function $r(e,t){return[t,e]}function en(e){return function(){return!e.apply(this,arguments)}}function tn(e){return function(){return-e.apply(this,arguments)}}function rn(e){return typeof e==="string"?JSON.stringify(e):e}function nn(){return k(arguments)}function an(e,t){return e<t?1:e>t?-1:0}function on(e){if(e.size===Infinity){return 0}var t=c(e);var r=s(e);var n=t?1:0;var a=e.__iterate(r?t?function(e,t){n=31*n+un(Me(e),Me(t))|0}:function(e,t){n=n+un(Me(e),Me(t))|0}:t?function(e){n=31*n+Me(e)|0}:function(e){n=n+Me(e)|0});return sn(a,n)}function sn(e,t){t=Se(t,3432918353);t=Se(t<<15|t>>>-15,461845907);t=Se(t<<13|t>>>-13,5);t=(t+3864292196|0)^e;t=Se(t^t>>>16,2246822507);t=Se(t^t>>>13,3266489909);t=Oe(t^t>>>16);return t}function un(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var ln={Iterable:r,Seq:K,Collection:we,Map:qe,OrderedMap:Ht,List:xt,Stack:Ur,Set:Mr,OrderedSet:Pr,Record:wr,Range:Ae,Repeat:ye,is:ve,fromJS:fe};return ln}))},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){!function(t,r){true?e.exports=r():undefined}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=9)}([function(e,t,r){"use strict";e.exports=r(12)},function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};Object.defineProperty(t,"__esModule",{value:!0});const a=r(0);let i=(()=>{class e extends a.Component{constructor(e){super(e)}render(){const e=this.props,{content:t,className:r,type:i,disabled:o,mouseDown:s,callback:u}=e,l=n(e,["content","className","type","disabled","mouseDown","callback"]);let c=t||"Submit",f={type:i||"submit",className:"btn"+(r?" "+r:""),disabled:o||null},d=s?{onMouseDown:u}:{onClick:u};return a.createElement("button",Object.assign(Object.assign(Object.assign({},f),d),l),c)}}return e.defaultProps={mouseDown:!1},e})();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),a=r(8);let i=(()=>{class e extends n.Component{constructor(e){super(e),this.renderHeader=this.renderHeader.bind(this),this.toggle=this.toggle.bind(this),this.overrideEnter=this.overrideEnter.bind(this);let t=this.props.openByDefault||!this.props.collapsible?"":"collapse";this.state={display:t}}toggle(e){e.preventDefault();let t="collapse"===this.state.display?"":"collapse";this.setState({display:t})}overrideEnter(e){this.props.onEnter&&this.props.onEnter()}renderHeader(){let e=n.createElement("span",{key:"title",className:"panel-title"},this.props.headerText),t="collapse"===this.state.display?"down-icon":"up-icon",r=this.props.collapsible?n.createElement(a.GenericWedgeIcon,{key:"icon",className:t+" icon"}):null,i={className:"panel-heading",onClick:this.props.collapsible?this.toggle:null,type:this.props.collapsible?"button":null};return this.props.collapsible&&(i=Object.assign(i,{"aria-expanded":""===this.state.display,"aria-controls":this.props.id+"-panel"})),n.createElement(this.props.collapsible?"button":"div",i,[e,r])}render(){const{style:e,content:t,collapsible:r,id:a}=this.props,i=r?"":"static-panel",o=r?""!==this.state.display:null;return n.createElement("div",{className:`panel panel-${e} ${i}`},this.renderHeader(),"string"==typeof t?n.createElement("section",{id:a+"-panel",onSubmit:this.overrideEnter,className:"panel-body "+this.state.display,dangerouslySetInnerHTML:{__html:t},"aria-hidden":o}):n.createElement("section",{id:a+"-panel",onSubmit:this.overrideEnter,className:"panel-body "+this.state.display,"aria-hidden":o},t))}}return e.defaultProps={style:"default",collapsible:!0,openByDefault:!1},e})();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),a=r(8);let i=(()=>{class e extends n.Component{render(){const{imgSrc:e,alt:t,text:i,nav:o,loggedIn:s,logOut:u}=this.props;let l=e?r(14)(""+e):"";return n.createElement("header",{className:"reusable-header clearfix"},e&&n.createElement("span",null,n.createElement("img",{className:"header-brand img-rounded",alt:t||"",src:l})),n.createElement("span",{className:"header-title"},i),o&&n.createElement("nav",{role:"navigation"},o),s&&n.createElement("a",{className:"btn header-btn big inverted",href:u},n.createElement("span",null,"Log Out ",n.createElement(a.LogoutIcon,null))))}}return e.defaultProps={loggedIn:!1},e})();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);class a extends n.Component{render(){return n.createElement("fieldset",{className:"form-group well"},n.createElement("legend",null,this.props.legend),this.props.elements,this.props.badgeText&&n.createElement("span",{className:"badge badge-"+(this.props.badgeClass||"default")},this.props.badgeText))}}t.default=a},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=r(0),i=r(1);class o extends a.Component{constructor(e){super(e),this.messageRef=a.createRef(),this.formRef=a.createRef(),this.submit=this.submit.bind(this),this.message=this.message.bind(this)}componentDidUpdate(e){if(this.messageRef.current&&this.messageRef.current.focus){["errorText","successText","warningText"].some(t=>e[t]!==this.props[t])&&this.messageRef.current.focus()}}submit(e){return n(this,void 0,void 0,(function*(){e.preventDefault();let t=this.formRef.current;const r=new window.FormData(t);yield this.props.onSubmit(r)}))}message(e,t){let r={className:"alert alert-"+t,role:"alert",ref:this.messageRef,tabIndex:-1};return a.createElement(e.type||"p",Object.assign(Object.assign({},r),e.props),e)}render(){let e="clearfix"+(this.props.className?" "+this.props.className:"");return a.createElement("form",{ref:this.formRef,className:e},this.props.errorText&&this.message(this.props.errorText,"danger"),this.props.successText&&!this.props.errorText&&this.message(this.props.successText,"success"),this.props.infoText&&this.message(this.props.infoText,"info"),this.props.loadingText&&this.message(this.props.loadingText,"loading"),this.props.warningText&&this.message(this.props.warningText,"warning"),this.props.title&&a.createElement("label",{className:"form-title"},this.props.title),this.props.hiddenName&&a.createElement("input",{type:"hidden",name:this.props.hiddenName,value:this.props.hiddenValue}),this.props.content,a.createElement("br",null),!this.props.withoutButton&&a.createElement(i.default,{callback:this.submit,content:this.props.buttonContent&&this.props.buttonContent,className:this.props.buttonClass&&this.props.buttonClass,disabled:this.props.disableButton}))}}t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);let a=(()=>{class e extends n.Component{constructor(e){super(e)}render(){return n.createElement("div",{className:"form-group "+this.props.className},n.createElement("label",{htmlFor:this.props.id},this.props.label),n.createElement("input",{onChange:this.props.callback,ref:this.props.ref,className:"form-control",type:this.props.type,name:this.props.name,id:this.props.id,defaultValue:this.props.value,readOnly:!1,defaultChecked:this.props.checked,placeholder:this.props.placeholder}))}}return e.defaultProps={className:"",type:"text",callback:null},e})();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);class a extends n.Component{constructor(e){super(e),this.buttonRef=n.createRef(),this.select=this.select.bind(this),this.makeTabs=this.makeTabs.bind(this),this.state={tab:0}}componentDidUpdate(){this.buttonRef.current.focus()}select(e){let t=parseInt(e.currentTarget.id.split("button-")[1],10);if(e.keyCode){let r,n=Object.keys(this.props.items);if(39===e.keyCode)r=t<n.length-1?t+1:0;else{if(37!==e.keyCode)return;r=0===t?n.length-1:t-1}this.setState({tab:r})}else this.setState({tab:t})}makeTabs(){let e=[],t=[];return Object.entries(this.props.items).map((r,a)=>{let[i,o]=r,s=a===this.state.tab,u=`${a.toString()}-${this.props.uniqueId.split(" ").join("-")}`,l=n.createElement("li",{key:i,role:"presentation",className:"tab-nav "+(s?"current":"")},n.createElement("button",{"aria-controls":"content-"+u,"aria-selected":s,className:"btn bottom-align left-align bottom-squared",id:"button-"+u,onClick:this.select,onKeyDown:this.select,role:"tab",tabIndex:s?0:-1,ref:s?this.buttonRef:null},i));e.push(l);let c=n.createElement("section",{"aria-labelledby":"button-"+u,className:"tab-content "+(s?"":"hidden"),id:"content-"+u,key:i,role:"tabpanel",tabIndex:0},o);t.push(c)}),[e,t]}render(){let[e,t]=this.makeTabs();return n.createElement("section",{className:"reusable-tabs"},n.createElement("ul",{role:"tablist",className:"tab-navs"},e),t)}}t.default=a},function(e,t,r){var n;e.exports=(n=r(0),function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t,r){e.exports=r(3)()},function(e,t){e.exports=n},function(e,t,r){e.exports=r(7)},function(e,t,r){"use strict";var n=r(4),a=r(5),i=r(6);e.exports=function(){function e(e,t,r,n,o,s){s!==i&&a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){"use strict";function n(e){return function(){return e}}var a=function(){};a.thatReturns=n,a.thatReturnsFalse=n(!1),a.thatReturnsTrue=n(!0),a.thatReturnsNull=n(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,r){"use strict";e.exports=function(e,t,r,n,a,i,o,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,a,i,o,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";r.r(t),r.d(t,"LionLogoIcon",(function(){return h})),r.d(t,"LionLogoWithText",(function(){return m})),r.d(t,"LionLogoWithTextInverse",(function(){return g})),r.d(t,"NYPLTextLogo",(function(){return A})),r.d(t,"CarouselCircleIcon",(function(){return w})),r.d(t,"BookIcon",(function(){return x})),r.d(t,"DotsIcon",(function(){return S})),r.d(t,"XIcon",(function(){return M})),r.d(t,"XCloseIcon",(function(){return T})),r.d(t,"FilterIcon",(function(){return C})),r.d(t,"FilterCancelIcon",(function(){return N})),r.d(t,"ListIcon",(function(){return P})),r.d(t,"GridIcon",(function(){return F})),r.d(t,"ApplyIcon",(function(){return B})),r.d(t,"DownLoadIcon",(function(){return U})),r.d(t,"ResetIcon",(function(){return q})),r.d(t,"CircleDashIcon",(function(){return W})),r.d(t,"AudioHeadphoneIcon",(function(){return G})),r.d(t,"MediaBluRayIcon",(function(){return J})),r.d(t,"AudioDiscIcon",(function(){return X})),r.d(t,"DvdDiscIcon",(function(){return ee})),r.d(t,"LargePrintIcon",(function(){return re})),r.d(t,"EReaderIcon",(function(){return ae})),r.d(t,"TagIcon",(function(){return oe})),r.d(t,"LocatorIcon",(function(){return ue})),r.d(t,"MenuIcon",(function(){return ce})),r.d(t,"LoginIcon",(function(){return de})),r.d(t,"LoginIconSolid",(function(){return he})),r.d(t,"LogoutIcon",(function(){return me})),r.d(t,"SearchIcon",(function(){return ge})),r.d(t,"CheckSoloIcon",(function(){return Ae})),r.d(t,"DivideLineIcon",(function(){return we})),r.d(t,"DownWedgeIcon",(function(){return xe})),r.d(t,"RightWedgeIcon",(function(){return Se})),r.d(t,"LeftWedgeIcon",(function(){return Me})),r.d(t,"RadioInactiveIcon",(function(){return Te})),r.d(t,"RadioActiveIcon",(function(){return Ce})),r.d(t,"SmallDotClosedIcon",(function(){return Ne})),r.d(t,"SmallDotOpenIcon",(function(){return Pe})),r.d(t,"BuildingIcon",(function(){return Fe})),r.d(t,"GenericWedgeIcon",(function(){return Be})),r.d(t,"LeftArrowIcon",(function(){return Ue})),r.d(t,"RightArrowIcon",(function(){return qe})),r.d(t,"FaceBookIcon",(function(){return We})),r.d(t,"InstagramIcon",(function(){return et})),r.d(t,"TwitterIcon",(function(){return Ge})),r.d(t,"TumblrIcon",(function(){return Je})),r.d(t,"YoutubeIcon",(function(){return Xe})),r.d(t,"EnvelopeIcon",(function(){return rt})),r.d(t,"LibraryCardIcon",(function(){return at})),r.d(t,"PencilIcon",(function(){return ot})),r.d(t,"ShoppingBagIcon",(function(){return ut}));var n=r(1),a=r.n(n),i=r(0),o=r.n(i);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(i,e);var t,r,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}(i);function i(){return u(this,i),n.apply(this,arguments)}return t=i,(r=[{key:"getViewBox",value:function(){return"0 0 ".concat(this.props.width," ").concat(this.props.height)}},{key:"renderSvgIcon",value:function(){return a.a.createElement("svg",{className:"".concat(this.props.className," svgIcon"),width:this.props.width,height:this.props.height,viewBox:this.getViewBox(),style:this.props.style,"aria-hidden":this.props.ariaHidden,focusable:this.props.focusable},a.a.createElement("title",null,this.props.title),a.a.createElement("ellipse",{cx:"12.503",cy:"12.485",rx:"12.251",ry:"12.24",fill:this.props.fill}),a.a.createElement("path",{d:"M13.048,8.85a4.934,4.934,0,0,1,.879.322,0.893,0.893,0,0,0,.475.263,0.771,0.771,0,0,0,.352-0.609,1.481,1.481,0,0,0-.076-0.837,1.18,1.18,0,0,0-1.119-.351,2.931,2.931,0,0,0-.773.123c-0.27.082-.644,0.263-0.486,0.638A1.2,1.2,0,0,0,13.048,8.85Z"}),a.a.createElement("path",{d:"M12.444,0A12.5,12.5,0,1,0,25,12.5,12.468,12.468,0,0,0,12.444,0ZM5.15,21.271a1.841,1.841,0,0,1-.457-0.562c-1.06-1.7-1.658-7.7-.287-9.746,0.434-.714.9-0.386,0.744,0.17a4.505,4.505,0,0,0,.5,3.278c0.949,2,3.873,4.771,4.646,5.777a7.852,7.852,0,0,1,1.764,3.319c-0.006.258-.059,0.427-0.516,0.386A11.339,11.339,0,0,1,5.15,21.271Zm18.344-5.7c-0.094.293-.205,0.661-0.445,0.492a10.744,10.744,0,0,0-2.39-1.317c-0.053-.012-0.047-0.082-0.029-0.123a1.67,1.67,0,0,0,.129-0.468,1.228,1.228,0,0,1,.228-0.41,4.186,4.186,0,0,0,.434-1.5,3.646,3.646,0,0,0-.07-1.188A2.7,2.7,0,0,1,21.2,10.53c0-.17.082-0.345,0.1-0.544a1.614,1.614,0,0,0-1.072-1.235c-0.9-.416-1.851-0.79-2.818-1.305a11.027,11.027,0,0,1-1.424-1.258,10.435,10.435,0,0,0-2.437-1.054,0.228,0.228,0,0,1-.193-0.193,5.677,5.677,0,0,0-2.127-3.3c-0.4-.31.047-0.486,0.6-0.515A11.389,11.389,0,0,1,23.494,15.57Zm-3.527-3.834c-0.006-.047-0.023-0.193-0.023-0.222a0.6,0.6,0,0,1,.24-0.246,2.091,2.091,0,0,1,.334-0.234c0.029-.018.053,0.023,0.059,0.035a3.181,3.181,0,0,1-.029,2.254c-0.029.059-.076,0.082-0.094,0.041a1.454,1.454,0,0,0-.492-0.615,0.115,0.115,0,0,1-.035-0.1A2.749,2.749,0,0,0,19.967,11.736ZM9.491,6.4a3.811,3.811,0,0,1,3.029-.433,13.8,13.8,0,0,1,2.15.784c0.685,0.316,1.172.9,1.81,1.247,0.8,0.445,1.91.656,2.76,1.071a0.8,0.8,0,0,1,.5.451,3.059,3.059,0,0,1-1.623-.023,0.524,0.524,0,0,0-.615.094,0.906,0.906,0,0,0,.059.749,0.979,0.979,0,0,0,.469.509c0.275,0.129.656,0.135,0.908,0.281a1.227,1.227,0,0,1,.182,1.6,2.206,2.206,0,0,1-1.746.4,5.289,5.289,0,0,0-2,.105,2.328,2.328,0,0,0-1.043,1,0.12,0.12,0,0,1-.17.023c-1.775-1.065-4.019-1.616-5.214-3.307a3.638,3.638,0,0,1-.58-1.528A3.018,3.018,0,0,1,9.491,6.4ZM6.72,3.214c-0.352-.041-0.357-0.3-0.205-0.4a8.284,8.284,0,0,1,1.623-.837A0.8,0.8,0,0,1,8.589,1.9a4.956,4.956,0,0,1,2.086.972c1.043,0.743,1.974,2.16,1.353,2.043a5.866,5.866,0,0,0-.68-0.1c-0.469-.041-0.779.006-1-0.018a0.434,0.434,0,0,1-.234-0.123A5.867,5.867,0,0,0,6.72,3.214Zm9.292,11.473a0.675,0.675,0,0,1,.3-0.41,3.043,3.043,0,0,1,1.242-.222,3.994,3.994,0,0,0,1.26-.2,0.773,0.773,0,0,1,.691-0.217,0.5,0.5,0,0,1,.264.322,1.25,1.25,0,0,1,.07.486,13.41,13.41,0,0,1-.58,1.352,0.451,0.451,0,0,1-.07.246,2.132,2.132,0,0,1-1.652.217,2.074,2.074,0,0,1-.592-0.1,1.145,1.145,0,0,1-.293-0.24,6.619,6.619,0,0,1-.51-0.544,0.851,0.851,0,0,1-.228-0.293A1.2,1.2,0,0,1,16.012,14.686ZM4.09,4.812a0.521,0.521,0,0,1,.27-0.17,6.908,6.908,0,0,1,4.365.369C8.982,5.128,9.1,5.286,8.929,5.4a8.935,8.935,0,0,0-1.236.89,0.562,0.562,0,0,1-.4.082,6.571,6.571,0,0,0-4.1.486C2.883,6.983,2.6,6.808,2.742,6.562A10.008,10.008,0,0,1,4.09,4.812Zm-2.818,5.45a0.49,0.49,0,0,1,.123-0.3,7.869,7.869,0,0,1,4.412-2.54,0.628,0.628,0,0,1,.644.111c0.1,0.24-.1.38-0.34,0.515-4.166,2.488-3.873,6.187-3.914,7.7,0.012,0.62-.434.732-0.545,0.439A10.877,10.877,0,0,1,1.271,10.261Zm5.25,2.909a4.944,4.944,0,0,1,.07-4c0.164-.31.322-0.509,0.533-0.451,0.228,0.064.281,0.293,0.311,0.726,0.228,3.565,2.39,4.771,5.1,6.029a15.622,15.622,0,0,1,6.615,5.368c0.311,0.439.352,0.7,0.006,0.954a11.145,11.145,0,0,1-4.019,1.826c-0.246.059-.5,0.012-0.727-0.55C12.122,17.168,8.279,17.437,6.521,13.17Zm14.19,7.252c-0.352.345-.545,0.076-0.662-0.146a10.28,10.28,0,0,0-1.734-2.745,0.178,0.178,0,0,1,.164-0.3,1.287,1.287,0,0,0,.691-0.111,1.383,1.383,0,0,0,.633-0.9c0.1-.339.1-0.445,0.311-0.462a0.632,0.632,0,0,1,.205.023,2.5,2.5,0,0,1,.732.433,6.868,6.868,0,0,1,1.412,1.539,0.4,0.4,0,0,1-.047.4A11.284,11.284,0,0,1,20.711,20.423Z"}))}},{key:"renderInverseSvgIcon",value:function(){return a.a.createElement("svg",{className:"".concat(this.props.className," svgIcon"),width:this.props.width,height:this.props.height,viewBox:this.getViewBox(),style:this.props.style,"aria-hidden":this.props.ariaHidden},a.a.createElement("title",null,this.props.title),a.a.createElement("path",{d:"M19.87,8.731c-0.93-.457-2.136-0.685-3.011-1.176-0.7-.387-1.226-1.024-1.97-1.37a14.467,14.467,0,0,0-2.349-.858,4.167,4.167,0,0,0-3.307.477,3.358,3.358,0,0,0-1.247,3.32A3.951,3.951,0,0,0,8.619,10.8c1.309,1.854,3.755,2.456,5.691,3.625a0.126,0.126,0,0,0,.178-0.016L14.5,14.4a2.572,2.572,0,0,1,1.137-1.1,5.759,5.759,0,0,1,2.191-.118,2.41,2.41,0,0,0,1.908-.443,1.36,1.36,0,0,0-.2-1.757c-0.276-.159-0.689-0.166-0.992-0.3a1.049,1.049,0,0,1-.51-0.56,1.012,1.012,0,0,1-.062-0.823,0.572,0.572,0,0,1,.675-0.1,3.42,3.42,0,0,0,1.771.028A0.872,0.872,0,0,0,19.87,8.731Zm-4.885-.27a0.84,0.84,0,0,1-.386.664,0.906,0.906,0,0,1-.517-0.291,5.687,5.687,0,0,0-.958-0.353,1.245,1.245,0,0,1-.806-0.5c-0.172-.415.234-0.609,0.53-0.706A3.233,3.233,0,0,1,13.69,7.14a1.265,1.265,0,0,1,1.219.387,1.855,1.855,0,0,1,.076.934h0Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M0.262,10.039A0.554,0.554,0,0,1,.4,9.714,8.544,8.544,0,0,1,5.215,6.926a0.661,0.661,0,0,1,.7.125c0.11,0.263-.11.415-0.372,0.567C1,10.35,1.323,14.4,1.275,16.064c0.014,0.678-.475.8-0.6,0.484A12.07,12.07,0,0,1,.262,10.039Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M3.342,4.062a0.587,0.587,0,0,1,.289-0.187,7.477,7.477,0,0,1,4.761.408c0.282,0.125.413,0.3,0.227,0.422a10.347,10.347,0,0,0-1.35.975,0.642,0.642,0,0,1-.441.09A7.209,7.209,0,0,0,2.356,6.3c-0.344.145-.648-0.055-0.489-0.318A11.264,11.264,0,0,1,3.342,4.062Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M6.214,2.305C5.829,2.264,5.829,1.98,5.987,1.87A9.3,9.3,0,0,1,7.758.956a0.868,0.868,0,0,1,.5-0.083,5.4,5.4,0,0,1,2.28,1.065c1.137,0.816,2.15,2.366,1.474,2.241a5.93,5.93,0,0,0-.744-0.111c-0.517-.048-0.847.007-1.089-0.014a0.443,0.443,0,0,1-.255-0.138A6.36,6.36,0,0,0,6.214,2.305Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M24.52,15.856c-0.1.318-.227,0.726-0.482,0.54a11.846,11.846,0,0,0-2.6-1.446c-0.055-.014-0.048-0.09-0.028-0.131a1.752,1.752,0,0,0,.138-0.512,1.251,1.251,0,0,1,.248-0.45,4.545,4.545,0,0,0,.468-1.646,4.133,4.133,0,0,0-.076-1.307,2.725,2.725,0,0,1-.158-0.574c0-.187.09-0.374,0.11-0.595a1.779,1.779,0,0,0-1.171-1.356c-0.978-.457-2.019-0.872-3.073-1.432a12.154,12.154,0,0,1-1.557-1.383,11.185,11.185,0,0,0-2.659-1.155,0.255,0.255,0,0,1-.214-0.214A6.25,6.25,0,0,0,11.141.569C10.707,0.23,11.2.036,11.8,0.009A12.484,12.484,0,0,1,24.52,15.856Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M20.676,11.65c-0.007-.048-0.028-0.214-0.028-0.249a0.69,0.69,0,0,1,.262-0.27,2.766,2.766,0,0,1,.365-0.256c0.034-.021.055,0.028,0.062,0.042a3.471,3.471,0,0,1-.034,2.469c-0.028.062-.083,0.09-0.1,0.042a1.624,1.624,0,0,0-.537-0.678,0.147,0.147,0,0,1-.041-0.111A2.876,2.876,0,0,0,20.676,11.65Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M16.356,14.888a0.757,0.757,0,0,1,.331-0.45,3.224,3.224,0,0,1,1.357-.242,4.209,4.209,0,0,0,1.371-.228,0.831,0.831,0,0,1,.751-0.235,0.545,0.545,0,0,1,.289.353,1.279,1.279,0,0,1,.076.533,16.052,16.052,0,0,1-.634,1.487,0.478,0.478,0,0,1-.076.27,2.322,2.322,0,0,1-1.805.235,1.945,1.945,0,0,1-.648-0.111,1.289,1.289,0,0,1-.324-0.263c-0.214-.2-0.338-0.353-0.558-0.595a1.078,1.078,0,0,1-.255-0.325A2.709,2.709,0,0,1,16.356,14.888Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M4.5,22.116A1.977,1.977,0,0,1,4,21.494c-1.164-1.861-1.812-8.446-.317-10.68,0.475-.782.978-0.422,0.813,0.18a4.977,4.977,0,0,0,.544,3.6c1.033,2.193,4.23,5.236,5.071,6.336a8.635,8.635,0,0,1,1.922,3.645c-0.007.284-.062,0.463-0.558,0.422A12.362,12.362,0,0,1,4.5,22.116Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M5.994,13.228A5.45,5.45,0,0,1,6.07,8.842c0.179-.339.351-0.56,0.579-0.491,0.248,0.069.3,0.325,0.338,0.8,0.255,3.915,2.611,5.229,5.567,6.613a17.018,17.018,0,0,1,7.22,5.887c0.338,0.477.386,0.768,0.007,1.044a12.064,12.064,0,0,1-4.389,2c-0.269.062-.551,0.014-0.792-0.609C12.105,17.613,7.909,17.9,5.994,13.228Z",transform:"translate(0 0)",fill:this.props.inverseFill}),a.a.createElement("path",{d:"M21.482,21.182c-0.379.38-.6,0.083-0.723-0.166A11.3,11.3,0,0,0,18.864,18a0.194,0.194,0,0,1,.179-0.332,1.341,1.341,0,0,0,.751-0.125,1.519,1.519,0,0,0,.689-0.982c0.1-.374.11-0.484,0.338-0.512a0.68,0.68,0,0,1,.227.028,2.921,2.921,0,0,1,.8.477,7.656,7.656,0,0,1,1.543,1.688,0.459,0.459,0,0,1-.048.443A12.318,12.318,0,0,1,21.482,21.182Z",transform:"translate(0 0)",fill:this.props.inverseFill}))}},{key:"render",value:function(){return"inverse"!==this.props.type?this.renderSvgIcon():this.renderInverseSvgIcon()}}])&&l(t.prototype,r),i}(a.a.Component);p.propTypes={className:o.a.string,title:o.a.string,type:o.a.string,height:o.a.string,width:o.a.string,fill:o.a.string,inverseFill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,focusable:o.a.bool},p.defaultProps={className:"nyplLionLogo-icon",title:"NYPL Lion Logo",ref:"nyplLionLogoIcon",type:"",height:"50",width:"50",fill:"#FFF",inverseFill:"#000"};var h=p,v=function(e){var t=e.className,r=e.width,n=e.height,i=e.viewBox,o=e.style,s=e.ariaHidden,u=e.title,l=e.fill,c=e.focusable;return a.a.createElement("svg",{className:"".concat(t," svgIcon"),width:r,height:n,viewBox:i,style:o,"aria-hidden":s,focusable:c},a.a.createElement("title",null,u),a.a.createElement("g",{className:"".concat(t,"-text")},a.a.createElement("g",{className:"".concat(t,"-text-ny")},a.a.createElement("path",{d:"M156.36639,26.64949h1.93408l14.21812,20.593v-20.593H174.381V50.5016h-1.82667L158.19274,29.76519V50.5016h-1.82635V26.64949Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M178.14171,41.79879c0-4.83479,2.79354-8.77447,7.34205-8.77447,4.36937,0,6.769,3.50975,6.41048,8.38043h-11.7828v0.394c0.036,3.90364,1.68361,7.48511,5.76653,7.48511a8.46392,8.46392,0,0,0,4.942-1.6117l0.78812,1.46846a9.8233,9.8233,0,0,1-5.80219,1.755C180.577,50.89564,178.14171,46.70533,178.14171,41.79879Zm11.89053-1.934c-0.03568-2.57842-1.36073-5.22886-4.61985-5.22886-2.97264,0-4.69193,2.29208-5.19321,5.22886h9.81306Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M193.899,33.41818h2.00542l4.155,14.21833,4.47647-14.21833h1.82667l4.47679,14.254,4.18995-14.254H216.892L211.73445,50.5016h-1.71894L205.3953,36.10434,200.77545,50.5016h-1.71894Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M233.365,41.51212l-7.98639-14.86264h2.22057l6.76869,12.8929h0.07172l6.76869-12.8929H243.214l-7.915,14.86264V50.5016H233.365V41.51212Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M241.60144,41.97789c0-4.29786,2.29194-8.95357,7.66422-8.95357s7.84333,4.62,7.84333,8.88188c0,4.2975-2.43536,8.98944-7.80764,8.98944C243.92939,50.89564,241.60144,46.27543,241.60144,41.97789Zm13.53778,0c0-3.83227-2.04146-7.342-5.94493-7.342-3.86813,0-5.62308,3.4382-5.62308,7.27032,0,3.868,1.89836,7.3777,5.76582,7.3777C253.24085,49.2839,255.13922,45.84571,255.13922,41.97789Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M260.68578,33.41818h1.86268v2.97264c0.64469-1.25353,2.18453-3.3665,4.5842-3.3665a4.68342,4.68342,0,0,1,1.64757.28648l-0.46591,1.7548a3.56466,3.56466,0,0,0-1.39677-.25066c-2.36363,0-3.90381,2.79371-4.36909,3.79644V50.5016h-1.86268V33.41818Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M272.21742,24.7154h1.86236V50.5016h-1.86236V24.7154Zm2.04111,16.18807,7.48547-7.48529h2.32795l-7.55684,7.48529,7.9507,9.59813h-2.32795Z",transform:"translate(-27.25197 -24.7154)"})),a.a.createElement("g",{className:"".concat(t,"-text-public")},a.a.createElement("path",{d:"M156.40225,62.53555h5.193c5.01407,0,8.16582,2.47119,8.16582,6.733,0,4.29754-2.97264,6.98369-8.38061,6.98369h-3.00833V86.38762h-1.96991V62.53555ZM161.34481,74.569c4.54816,0,6.41052-2.07729,6.41052-5.22886,0-2.97264-1.79067-5.12148-6.33914-5.12148h-3.044V74.569h2.97264Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M172.76837,81.37373V69.30424h1.86271V80.97966c0,2.50723.89514,4.11861,3.5096,4.11861,2.54306,0,4.65554-2.39949,5.22886-3.40219V69.30424h1.862V83.09285a14.41314,14.41314,0,0,0,.32252,3.29478h-1.898a18.73138,18.73138,0,0,1-.2508-2.79354,6.85642,6.85642,0,0,1-5.65845,3.18761C174.16549,86.7817,172.76837,84.45358,172.76837,81.37373Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M189.88744,85.49231V60.60146h1.862V70.88029a6.07292,6.07292,0,0,1,4.47714-1.96974c4.87033,0,7.23432,3.90347,7.23432,8.88171,0,4.79913-3.22344,8.98944-8.45233,8.98944A9.6515,9.6515,0,0,1,189.88744,85.49231ZM201.49116,77.864c0-3.72489-1.43281-7.27032-5.58707-7.27032a6.12767,6.12767,0,0,0-4.15465,1.934V84.48962a7.70565,7.70565,0,0,0,3.33121.68035C199.41366,85.17,201.49116,81.40938,201.49116,77.864Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M207.292,60.60146h1.86271V86.38762H207.292V60.60146Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M214.23944,64.25466a1.41471,1.41471,0,1,1,2.82919,0A1.41558,1.41558,0,1,1,214.23944,64.25466Zm0.46559,5.04958h1.898V86.38762h-1.898V69.30424Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M220.184,77.82795c0-5.40782,3.116-8.91739,7.52112-8.91739a7.42136,7.42136,0,0,1,5.08548,1.79045l-0.96686,1.36094a6.121,6.121,0,0,0-4.1543-1.54c-3.79641,0-5.5157,3.295-5.5157,7.23464,0,3.79623,1.68361,7.41339,5.48,7.41339a6.88911,6.88911,0,0,0,4.36941-1.54l0.82344,1.39677a8.00839,8.00839,0,0,1-5.30059,1.755C222.61969,86.7817,220.184,82.41229,220.184,77.82795Z",transform:"translate(-27.25197 -24.7154)"})),a.a.createElement("g",{className:"".concat(t,"-text-library")},a.a.createElement("path",{d:"M155.86494,122.27422V98.42179h5.08565v19.76915h8.88188v4.08328H155.86494Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M176.00777,102.5764A2.8586,2.8586,0,0,1,173.1065,99.711a2.82221,2.82221,0,0,1,2.90127-2.79354,2.85364,2.85364,0,0,1,2.9366,2.79354A2.88946,2.88946,0,0,1,176.00777,102.5764Zm-2.39967,19.69782V104.83195h4.799v17.44227h-4.799Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M187.36031,96.4877v9.706a6.22015,6.22015,0,0,1,4.26168-1.791c4.36973,0,7.41374,3.008,7.41374,9.0253,0,5.94493-4.0112,9.27574-9.27578,9.27574A16.58426,16.58426,0,0,1,182.597,121.307V96.4877h4.76327Zm0,22.09713a6.72755,6.72755,0,0,0,2.39964.39457c2.65011,0,4.22563-1.96974,4.22563-5.55139,0-3.25913-1.10993-5.26455-3.68867-5.26455a4.14376,4.14376,0,0,0-2.9366,1.325v9.09632Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M212.42937,109.02257a3.39138,3.39138,0,0,0-1.827-.39386c-2.11248,0-3.36615,1.86271-3.79605,2.65012v10.99539H202.043V104.83195h4.7633v2.36431a5.16217,5.16217,0,0,1,4.40506-2.79354,4.7777,4.7777,0,0,1,2.364.46594Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M225.03561,122.27422a9.70593,9.70593,0,0,1-.28684-1.86271,6.43294,6.43294,0,0,1-4.90634,2.29226c-2.97264,0-5.26454-1.79028-5.26454-4.90669,0-4.54851,4.69154-6.19573,9.31143-6.19573h0.609v-1.00291c0-1.5045-.609-2.435-2.82922-2.435a7.36142,7.36142,0,0,0-4.4411,1.64721l-2.07715-2.90091a10.36488,10.36488,0,0,1,7.05553-2.50705c4.76331,0,7.01953,1.82667,7.01953,6.44656v6.26742a23.45627,23.45627,0,0,0,.50128,5.15752h-4.69158Zm-0.53728-7.73627h-0.609c-2.79318,0-4.72727.82412-4.72727,2.86523a1.86412,1.86412,0,0,0,2.11284,1.82635,4.27676,4.27676,0,0,0,3.22344-1.53951V114.538Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M243.44337,109.02257a3.39017,3.39017,0,0,0-1.82632-.39386c-2.11315,0-3.36686,1.86271-3.79676,2.65012v10.99539H233.057V104.83195h4.76331v2.36431a5.16277,5.16277,0,0,1,4.40541-2.79354,4.77608,4.77608,0,0,1,2.36363.46594Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M246.30792,104.83195h5.08548l3.86813,11.497h0.17907l3.54564-11.497h4.90669l-7.19863,19.30392c-1.54019,4.119-3.36686,6.51825-8.12981,6.51825a9.32322,9.32322,0,0,1-2.68612-.32217l0.68038-3.7604a5.485,5.485,0,0,0,1.68325.17879c2.43532,0,3.29481-1.1813,3.97516-3.044l0.64469-1.79031Z",transform:"translate(-27.25197 -24.7154)"}))),a.a.createElement("g",{className:"".concat(t,"-lion")},a.a.createElement("path",{d:"M111.90871,99.19328c-3.7417-1.83124-8.60114-2.74854-12.13721-4.7124-2.7998-1.55231-4.946-4.11652-7.95886-5.498a60.02908,60.02908,0,0,0-9.468-3.45349c-6.25116-1.53778-11.50183.46472-13.323,1.90582A13.4137,13.4137,0,0,0,64.00112,100.774a15.94352,15.94352,0,0,0,2.55627,6.72852c5.27264,7.447,15.14136,9.86646,22.95953,14.56458a0.50625,0.50625,0,0,0,.73907-0.10187c1.31311-1.93127,2.3808-3.48566,4.59235-4.40546,2.24567-.93738,5.7793-0.619,8.82611-0.47076,3.14771,0.1521,6.54541-.14337,7.68689-1.77087,1.36383-1.94238,1.28436-5.85663-.7973-7.05243-1.117-.64368-2.78278-0.6731-3.9975-1.23328a4.3204,4.3204,0,0,1-2.059-2.24237,4.07459,4.07459,0,0,1-.25964-3.31146c0.489-.88025,1.7226-0.63116,2.71332-0.40076,1.9635,0.45068,5.24432.92871,7.13336,0.1001C114.65114,100.89348,112.66127,99.56114,111.90871,99.19328ZM92.18856,98.119c-0.16821.87573-.7019,2.567-1.55566,2.67712-0.86029.1098-1.48022-.81232-2.09686-1.15808a24.4124,24.4124,0,0,0-3.87262-1.41064c-1.17352-.38867-2.78247-0.87018-3.254-1.98981-0.707-1.66663.94434-2.45544,2.13348-2.82123a12.11641,12.11641,0,0,1,3.40045-.54181c2.1485-.10327,4.19965.20435,4.92053,1.55475A6.49319,6.49319,0,0,1,92.18856,98.119Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M32.83333,104.45157a2.29443,2.29443,0,0,1,.54613-1.31607A34.48454,34.48454,0,0,1,52.806,91.93851c1.50521-.21582,2.58985-0.11156,2.83649.49191,0.43235,1.05764-.4436,1.66732-1.49758,2.27736C35.79955,105.672,37.1,121.9711,36.92438,128.639c0.05527,2.72734-1.91432,3.22379-2.40623,1.93891A48.03813,48.03813,0,0,1,32.83333,104.45157Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M45.24681,80.43961a2.19666,2.19666,0,0,1,1.1785-.73891,30.35514,30.35514,0,0,1,19.20314,1.6337c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71179,45.71179,0,0,1,45.24681,80.43961Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M56.83993,73.40033c-1.54242-.17563-1.56427-1.30393-0.91213-1.74352a37.79982,37.79982,0,0,1,7.13141-3.67693,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20181,5.35429,1.55906,9.18483,4.292,4.59371,3.27786,8.68043,9.50494,5.94738,9.0009a25.58659,25.58659,0,0,0-3.00191-.43945c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96274,1.96274,0,0,1-1.03614-.55044C67.88555,76.40433,63.4065,74.19781,56.83993,73.40033Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M130.64639,127.82663c-0.41362,1.29077-.90482,2.91-1.9576,2.15892a47.305,47.305,0,0,0-10.51423-5.80672c-0.22586-.05055-0.20021-0.36442-0.12054-0.54143a7.76418,7.76418,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.8083,18.619,18.619,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43877,10.43877,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38651,0.20819-2.525-2.97853-4.63025-4.71776-5.44156-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.26892-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.9897-10.72015-4.65121a1.03792,1.03792,0,0,1-.86172-0.86328,25.0259,25.0259,0,0,0-9.3712-14.55086c-1.759-1.36679.21341-2.14416,2.63539-2.26232C117.499,62.86187,139.47112,98.00018,130.64639,127.82663Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M115.14271,110.93761c-0.02739-.19436-0.111-0.85254-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66027,10.66027,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.53647,0.53647,0,0,1-.16314-0.43959A10.78454,10.78454,0,0,0,115.14271,110.93761Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M97.73573,123.93565a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.34326,17.34326,0,0,0,5.53425-.90517c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.19649,2.19649,0,0,1,1.15583,1.41653,5.15178,5.15178,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95267a8.69735,8.69735,0,0,1-2.6051-.43856,5.72964,5.72964,0,0,1-1.302-1.04622,30.722,30.722,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83012,6.83012,0,0,1,97.73573,123.93565Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M49.90735,152.96743a8.06424,8.06424,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.94506-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14459-.25115,1.87413-2.25675,1.70475A50.122,50.122,0,0,1,49.90735,152.96743Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M55.95568,117.26983A21.79207,21.79207,0,0,1,56.26125,99.645c0.7188-1.35484,1.42117-2.24,2.33834-1.985,0.998,0.27818,1.22855,1.29978,1.36626,3.19329,1.01553,15.714,10.52044,21.00487,22.459,26.55281,9.41867,4.81489,20.135,10.31952,29.11613,23.65392,1.35938,1.92507,1.55544,3.09321.02079,4.19587A48.8677,48.8677,0,0,1,93.868,163.29216c-1.09244.25566-2.21933,0.06375-3.187-2.43259C80.59868,134.8822,63.671,136.05311,55.95568,117.26983Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M118.40353,149.20773c-1.535,1.5343-2.40553.3315-2.907-.65371a45.56777,45.56777,0,0,0-7.63545-12.10255,0.78694,0.78694,0,0,1,.72767-1.34444,5.49981,5.49981,0,0,0,3.03671-.493,6.08555,6.08555,0,0,0,2.787-3.94433c0.427-1.50695.447-1.95037,1.37041-2.04423a3.03406,3.03406,0,0,1,.90418.10947,10.91687,10.91687,0,0,1,3.21234,1.91465,31.19354,31.19354,0,0,1,6.22659,6.775,1.79563,1.79563,0,0,1-.19539,1.76708A50.13544,50.13544,0,0,1,118.40353,149.20773Z",transform:"translate(-27.25197 -24.7154)",fill:l}),a.a.createElement("path",{d:"M82.02851,59.23935a55.06858,55.06858,0,1,0,55.25255,55.07377A54.89374,54.89374,0,0,0,82.02851,59.23935ZM49.90735,152.95427a8.06426,8.06426,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.9451-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14455-.25115,1.87413-2.25675,1.70471A50.12176,50.12176,0,0,1,49.90735,152.95427Zm80.739-25.14079c-0.41362,1.29077-.90482,2.90992-1.9576,2.15892a47.30207,47.30207,0,0,0-10.51423-5.80672c-0.22586-.05059-0.20021-0.36442-0.12054-0.54143a7.76415,7.76415,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.80829,18.61918,18.61918,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43874,10.43874,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38652,0.20819-2.525-2.97853-4.63007-4.71776-5.44138-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.269-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.98974-10.72015-4.65121a1.038,1.038,0,0,1-.86172-0.86328,25.02589,25.02589,0,0,0-9.3712-14.55086c-1.759-1.36683.21341-2.14419,2.63539-2.26232C117.499,62.84888,139.47112,97.9872,130.64639,127.81347Zm-15.50368-16.889c-0.02739-.19436-0.111-0.85253-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66026,10.66026,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.5365,0.5365,0,0,1-.16314-0.43962A10.7843,10.7843,0,0,0,115.14271,110.92445ZM69.02163,87.42221c1.82114-1.44111,7.07185-3.44359,13.323-1.90581a60.02216,60.02216,0,0,1,9.468,3.45363c3.0128,1.3812,5.159,3.94557,7.95883,5.49789,3.5361,1.96385,8.39551,2.88116,12.13721,4.71233,0.75257,0.3679,2.74242,1.70007,2.18591,1.98449-1.889.82862-5.16983,0.3509-7.13332-.10014-0.99077-.23036-2.22436-0.47942-2.71333.40081a4.07468,4.07468,0,0,0,.25963,3.31145,4.32051,4.32051,0,0,0,2.059,2.24238c1.21472,0.56016,2.88048.5896,3.99751,1.23324,2.08165,1.19584,2.16115,5.11006.7973,7.05245-1.14147,1.62749-4.53915,1.923-7.68689,1.7709-3.04678-.14828-6.58043-0.46662-8.82612.47077-2.21156.91976-3.2792,2.47413-4.59232,4.40545a0.50625,0.50625,0,0,1-.73909.10184c-7.81818-4.69814-17.68686-7.11757-22.95953-14.56456a15.94379,15.94379,0,0,1-2.55625-6.72854A13.41361,13.41361,0,0,1,69.02163,87.42221ZM56.83993,73.38734c-1.54242-.17563-1.56427-1.30394-0.91213-1.74356a37.7999,37.7999,0,0,1,7.13141-3.6769,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20177,5.35429,1.55906,9.18483,4.292,4.59371,3.27782,8.68043,9.5049,5.94738,9.00086a25.59524,25.59524,0,0,0-3.00191-.43941c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96255,1.96255,0,0,1-1.03614-.55048C67.88555,76.39134,63.4065,74.18479,56.83993,73.38734Zm40.8958,50.53515a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.3433,17.3433,0,0,0,5.53425-.90518c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.1965,2.1965,0,0,1,1.15583,1.41653,5.15179,5.15179,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95268a8.69731,8.69731,0,0,1-2.6051-.43859,5.72851,5.72851,0,0,1-1.302-1.04618,30.72225,30.72225,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83011,6.83011,0,0,1,97.73573,123.92249ZM45.24681,80.42659a2.19709,2.19709,0,0,1,1.1785-.73891,30.35515,30.35515,0,0,1,19.20314,1.63373c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71349,45.71349,0,0,1,45.24681,80.42659Zm-12.404,24.0215a2.29577,2.29577,0,0,1,.54631-1.316A34.484,34.484,0,0,1,52.81575,91.93521c1.505-.21547,2.58967-0.11153,2.83632.49191,0.43232,1.058-.4436,1.66768-1.49741,2.2774-18.34557,10.964-17.04493,27.26345-17.22056,33.931,0.05523,2.72738-1.91434,3.22379-2.40625,1.93926A48.03957,48.03957,0,0,1,32.84285,104.44809Zm23.11943,12.81412a21.79159,21.79159,0,0,1,.30553-17.62467c0.71883-1.35484,1.42121-2.24,2.33834-1.985,0.998,0.27818,1.22859,1.29978,1.3663,3.19314,1.01553,15.714,10.52044,21.00487,22.459,26.55278,9.41867,4.81489,20.135,10.31952,29.11613,23.654,1.35934,1.925,1.55544,3.09318.02079,4.19584a48.8677,48.8677,0,0,1-17.69378,8.03627c-1.09244.25566-2.21936,0.06375-3.18708-2.43256C80.60524,134.87457,63.67758,136.04548,55.96228,117.26221Zm62.44125,31.94758c-1.535,1.5343-2.40553.33154-2.907-.65367a45.56724,45.56724,0,0,0-7.63545-12.10256,0.787,0.787,0,0,1,.72767-1.34448,5.49979,5.49979,0,0,0,3.03671-.49294,6.08554,6.08554,0,0,0,2.787-3.94437c0.427-1.50691.447-1.95033,1.37041-2.04423a3.03522,3.03522,0,0,1,.90418.10947,10.91777,10.91777,0,0,1,3.21234,1.91468,31.19269,31.19269,0,0,1,6.22659,6.77494,1.7957,1.7957,0,0,1-.19539,1.76711A50.13426,50.13426,0,0,1,118.40353,149.20979Z",transform:"translate(-27.25197 -24.7154)"}),a.a.createElement("path",{d:"M84.67135,98.22743a24.39354,24.39354,0,0,1,3.87228,1.41064c0.61681,0.34572,1.23657,1.26789,2.09726,1.15807,0.85356-.11015,1.38723-1.80138,1.55541-2.67715a6.49165,6.49165,0,0,0-.32458-3.6897c-0.72075-1.35037-2.77207-1.658-4.92038-1.55473a12.1195,12.1195,0,0,0-3.40063.54179c-1.18893.36584-2.84033,1.15463-2.13345,2.82124C81.88892,97.35723,83.49753,97.83874,84.67135,98.22743Z",transform:"translate(-27.25197 -24.7154)"})))};v.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,style:o.a.object,focusable:o.a.bool},v.defaultProps={className:"nyplLionLogo",title:"The New York Public Library",ref:"nyplLionLogo",type:"",height:"144",width:"257",viewBox:"0 0 257 144",fill:"#FFF"};var m=v,y=function(e){var t=e.className,r=e.title,n=e.width,i=e.height,o=e.viewBox,s=e.ariaHidden,u=e.fill,l=e.style,c=e.focusable;return a.a.createElement("svg",{className:"".concat(t," svgIcon"),width:n,height:i,viewBox:o,style:l,"aria-hidden":s,focusable:c},a.a.createElement("title",null,r),a.a.createElement("g",{className:"".concat(t,"-text")},a.a.createElement("g",{className:"".concat(t,"-text-ny")},a.a.createElement("path",{d:"M156.36639,26.64949h1.93408l14.21812,20.593v-20.593H174.381V50.5016h-1.82667L158.19274,29.76519V50.5016h-1.82635V26.64949Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M178.14171,41.79879c0-4.83479,2.79354-8.77447,7.34205-8.77447,4.36937,0,6.769,3.50975,6.41048,8.38043h-11.7828v0.394c0.036,3.90364,1.68361,7.48511,5.76653,7.48511a8.46392,8.46392,0,0,0,4.942-1.6117l0.78812,1.46846a9.8233,9.8233,0,0,1-5.80219,1.755C180.577,50.89564,178.14171,46.70533,178.14171,41.79879Zm11.89053-1.934c-0.03568-2.57842-1.36073-5.22886-4.61985-5.22886-2.97264,0-4.69193,2.29208-5.19321,5.22886h9.81306Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M193.899,33.41818h2.00542l4.155,14.21833,4.47647-14.21833h1.82667l4.47679,14.254,4.18995-14.254H216.892L211.73445,50.5016h-1.71894L205.3953,36.10434,200.77545,50.5016h-1.71894Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M233.365,41.51212l-7.98639-14.86264h2.22057l6.76869,12.8929h0.07172l6.76869-12.8929H243.214l-7.915,14.86264V50.5016H233.365V41.51212Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M241.60144,41.97789c0-4.29786,2.29194-8.95357,7.66422-8.95357s7.84333,4.62,7.84333,8.88188c0,4.2975-2.43536,8.98944-7.80764,8.98944C243.92939,50.89564,241.60144,46.27543,241.60144,41.97789Zm13.53778,0c0-3.83227-2.04146-7.342-5.94493-7.342-3.86813,0-5.62308,3.4382-5.62308,7.27032,0,3.868,1.89836,7.3777,5.76582,7.3777C253.24085,49.2839,255.13922,45.84571,255.13922,41.97789Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M260.68578,33.41818h1.86268v2.97264c0.64469-1.25353,2.18453-3.3665,4.5842-3.3665a4.68342,4.68342,0,0,1,1.64757.28648l-0.46591,1.7548a3.56466,3.56466,0,0,0-1.39677-.25066c-2.36363,0-3.90381,2.79371-4.36909,3.79644V50.5016h-1.86268V33.41818Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M272.21742,24.7154h1.86236V50.5016h-1.86236V24.7154Zm2.04111,16.18807,7.48547-7.48529h2.32795l-7.55684,7.48529,7.9507,9.59813h-2.32795Z",transform:"translate(-31.77892 -24.7154)"})),a.a.createElement("g",{className:"".concat(t,"-text-public")},a.a.createElement("path",{d:"M156.40225,62.53555h5.193c5.01407,0,8.16582,2.47119,8.16582,6.733,0,4.29754-2.97264,6.98369-8.38061,6.98369h-3.00833V86.38762h-1.96991V62.53555ZM161.34481,74.569c4.54816,0,6.41052-2.07729,6.41052-5.22886,0-2.97264-1.79067-5.12148-6.33914-5.12148h-3.044V74.569h2.97264Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M172.76837,81.37373V69.30424h1.86271V80.97966c0,2.50723.89514,4.11861,3.5096,4.11861,2.54306,0,4.65554-2.39949,5.22886-3.40219V69.30424h1.862V83.09285a14.41314,14.41314,0,0,0,.32252,3.29478h-1.898a18.73138,18.73138,0,0,1-.2508-2.79354,6.85642,6.85642,0,0,1-5.65845,3.18761C174.16549,86.7817,172.76837,84.45358,172.76837,81.37373Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M189.88744,85.49231V60.60146h1.862V70.88029a6.07292,6.07292,0,0,1,4.47714-1.96974c4.87033,0,7.23432,3.90347,7.23432,8.88171,0,4.79913-3.22344,8.98944-8.45233,8.98944A9.6515,9.6515,0,0,1,189.88744,85.49231ZM201.49116,77.864c0-3.72489-1.43281-7.27032-5.58707-7.27032a6.12767,6.12767,0,0,0-4.15465,1.934V84.48962a7.70565,7.70565,0,0,0,3.33121.68035C199.41366,85.17,201.49116,81.40938,201.49116,77.864Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M207.292,60.60146h1.86271V86.38762H207.292V60.60146Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M214.23944,64.25466a1.41471,1.41471,0,1,1,2.82919,0A1.41558,1.41558,0,1,1,214.23944,64.25466Zm0.46559,5.04958h1.898V86.38762h-1.898V69.30424Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M220.184,77.82795c0-5.40782,3.116-8.91739,7.52112-8.91739a7.42136,7.42136,0,0,1,5.08548,1.79045l-0.96686,1.36094a6.121,6.121,0,0,0-4.1543-1.54c-3.79641,0-5.5157,3.295-5.5157,7.23464,0,3.79623,1.68361,7.41339,5.48,7.41339a6.88911,6.88911,0,0,0,4.36941-1.54l0.82344,1.39677a8.00839,8.00839,0,0,1-5.30059,1.755C222.61969,86.7817,220.184,82.41229,220.184,77.82795Z",transform:"translate(-31.77892 -24.7154)"})),a.a.createElement("g",{className:"".concat(t,"-text-library")},a.a.createElement("path",{d:"M155.86494,122.27422V98.42179h5.08565v19.76915h8.88188v4.08328H155.86494Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M176.00777,102.5764A2.8586,2.8586,0,0,1,173.1065,99.711a2.82221,2.82221,0,0,1,2.90127-2.79354,2.85364,2.85364,0,0,1,2.9366,2.79354A2.88946,2.88946,0,0,1,176.00777,102.5764Zm-2.39967,19.69782V104.83195h4.799v17.44227h-4.799Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M187.36031,96.4877v9.706a6.22015,6.22015,0,0,1,4.26168-1.791c4.36973,0,7.41374,3.008,7.41374,9.0253,0,5.94493-4.0112,9.27574-9.27578,9.27574A16.58426,16.58426,0,0,1,182.597,121.307V96.4877h4.76327Zm0,22.09713a6.72755,6.72755,0,0,0,2.39964.39457c2.65011,0,4.22563-1.96974,4.22563-5.55139,0-3.25913-1.10993-5.26455-3.68867-5.26455a4.14376,4.14376,0,0,0-2.9366,1.325v9.09632Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M212.42937,109.02257a3.39138,3.39138,0,0,0-1.827-.39386c-2.11248,0-3.36615,1.86271-3.79605,2.65012v10.99539H202.043V104.83195h4.7633v2.36431a5.16217,5.16217,0,0,1,4.40506-2.79354,4.7777,4.7777,0,0,1,2.364.46594Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M225.03561,122.27422a9.70593,9.70593,0,0,1-.28684-1.86271,6.43294,6.43294,0,0,1-4.90634,2.29226c-2.97264,0-5.26454-1.79028-5.26454-4.90669,0-4.54851,4.69154-6.19573,9.31143-6.19573h0.609v-1.00291c0-1.5045-.609-2.435-2.82922-2.435a7.36142,7.36142,0,0,0-4.4411,1.64721l-2.07715-2.90091a10.36488,10.36488,0,0,1,7.05553-2.50705c4.76331,0,7.01953,1.82667,7.01953,6.44656v6.26742a23.45627,23.45627,0,0,0,.50128,5.15752h-4.69158Zm-0.53728-7.73627h-0.609c-2.79318,0-4.72727.82412-4.72727,2.86523a1.86412,1.86412,0,0,0,2.11284,1.82635,4.27676,4.27676,0,0,0,3.22344-1.53951V114.538Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M243.44337,109.02257a3.39017,3.39017,0,0,0-1.82632-.39386c-2.11315,0-3.36686,1.86271-3.79676,2.65012v10.99539H233.057V104.83195h4.76331v2.36431a5.16277,5.16277,0,0,1,4.40541-2.79354,4.77608,4.77608,0,0,1,2.36363.46594Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M246.30792,104.83195h5.08548l3.86813,11.497h0.17907l3.54564-11.497h4.90669l-7.19863,19.30392c-1.54019,4.119-3.36686,6.51825-8.12981,6.51825a9.32322,9.32322,0,0,1-2.68612-.32217l0.68038-3.7604a5.485,5.485,0,0,0,1.68325.17879c2.43532,0,3.29481-1.1813,3.97516-3.044l0.64469-1.79031Z",transform:"translate(-31.77892 -24.7154)"}))),a.a.createElement("g",{className:"".concat(t,"-lion"),fill:u},a.a.createElement("path",{d:"M111.90871,99.19328c-3.7417-1.83124-8.60114-2.74854-12.13721-4.7124-2.7998-1.55231-4.946-4.11652-7.95886-5.498a60.02908,60.02908,0,0,0-9.468-3.45349c-6.25116-1.53778-11.50183.46472-13.323,1.90582A13.4137,13.4137,0,0,0,64.00112,100.774a15.94352,15.94352,0,0,0,2.55627,6.72852c5.27264,7.447,15.14136,9.86646,22.95953,14.56458a0.50625,0.50625,0,0,0,.73907-0.10187c1.31311-1.93127,2.3808-3.48566,4.59235-4.40546,2.24567-.93738,5.7793-0.619,8.82611-0.47076,3.14771,0.1521,6.54541-.14337,7.68689-1.77087,1.36383-1.94238,1.28436-5.85663-.7973-7.05243-1.117-.64368-2.78278-0.6731-3.9975-1.23328a4.3204,4.3204,0,0,1-2.059-2.24237,4.07459,4.07459,0,0,1-.25964-3.31146c0.489-.88025,1.7226-0.63116,2.71332-0.40076,1.9635,0.45068,5.24432.92871,7.13336,0.1001C114.65114,100.89348,112.66127,99.56114,111.90871,99.19328ZM92.18856,98.119c-0.16821.87573-.7019,2.567-1.55566,2.67712-0.86029.1098-1.48022-.81232-2.09686-1.15808a24.4124,24.4124,0,0,0-3.87262-1.41064c-1.17352-.38867-2.78247-0.87018-3.254-1.98981-0.707-1.66663.94434-2.45544,2.13348-2.82123a12.11641,12.11641,0,0,1,3.40045-.54181c2.1485-.10327,4.19965.20435,4.92053,1.55475A6.49319,6.49319,0,0,1,92.18856,98.119Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M32.83333,104.45157a2.29443,2.29443,0,0,1,.54613-1.31607A34.48454,34.48454,0,0,1,52.806,91.93851c1.50521-.21582,2.58985-0.11156,2.83649.49191,0.43235,1.05764-.4436,1.66732-1.49758,2.27736C35.79955,105.672,37.1,121.9711,36.92438,128.639c0.05527,2.72734-1.91432,3.22379-2.40623,1.93891A48.03813,48.03813,0,0,1,32.83333,104.45157Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M45.24681,80.43961a2.19666,2.19666,0,0,1,1.1785-.73891,30.35514,30.35514,0,0,1,19.20314,1.6337c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71179,45.71179,0,0,1,45.24681,80.43961Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M56.83993,73.40033c-1.54242-.17563-1.56427-1.30393-0.91213-1.74352a37.79982,37.79982,0,0,1,7.13141-3.67693,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20181,5.35429,1.55906,9.18483,4.292,4.59371,3.27786,8.68043,9.50494,5.94738,9.0009a25.58659,25.58659,0,0,0-3.00191-.43945c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96274,1.96274,0,0,1-1.03614-.55044C67.88555,76.40433,63.4065,74.19781,56.83993,73.40033Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M130.64639,127.82663c-0.41362,1.29077-.90482,2.91-1.9576,2.15892a47.305,47.305,0,0,0-10.51423-5.80672c-0.22586-.05055-0.20021-0.36442-0.12054-0.54143a7.76418,7.76418,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.8083,18.619,18.619,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43877,10.43877,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38651,0.20819-2.525-2.97853-4.63025-4.71776-5.44156-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.26892-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.9897-10.72015-4.65121a1.03792,1.03792,0,0,1-.86172-0.86328,25.0259,25.0259,0,0,0-9.3712-14.55086c-1.759-1.36679.21341-2.14416,2.63539-2.26232C117.499,62.86187,139.47112,98.00018,130.64639,127.82663Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M115.14271,110.93761c-0.02739-.19436-0.111-0.85254-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66027,10.66027,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.53647,0.53647,0,0,1-.16314-0.43959A10.78454,10.78454,0,0,0,115.14271,110.93761Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M97.73573,123.93565a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.34326,17.34326,0,0,0,5.53425-.90517c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.19649,2.19649,0,0,1,1.15583,1.41653,5.15178,5.15178,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95267a8.69735,8.69735,0,0,1-2.6051-.43856,5.72964,5.72964,0,0,1-1.302-1.04622,30.722,30.722,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83012,6.83012,0,0,1,97.73573,123.93565Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M49.90735,152.96743a8.06424,8.06424,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.94506-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14459-.25115,1.87413-2.25675,1.70475A50.122,50.122,0,0,1,49.90735,152.96743Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M55.95568,117.26983A21.79207,21.79207,0,0,1,56.26125,99.645c0.7188-1.35484,1.42117-2.24,2.33834-1.985,0.998,0.27818,1.22855,1.29978,1.36626,3.19329,1.01553,15.714,10.52044,21.00487,22.459,26.55281,9.41867,4.81489,20.135,10.31952,29.11613,23.65392,1.35938,1.92507,1.55544,3.09321.02079,4.19587A48.8677,48.8677,0,0,1,93.868,163.29216c-1.09244.25566-2.21933,0.06375-3.187-2.43259C80.59868,134.8822,63.671,136.05311,55.95568,117.26983Z",transform:"translate(-31.77892 -24.7154)"}),a.a.createElement("path",{d:"M118.40353,149.20773c-1.535,1.5343-2.40553.3315-2.907-.65371a45.56777,45.56777,0,0,0-7.63545-12.10255,0.78694,0.78694,0,0,1,.72767-1.34444,5.49981,5.49981,0,0,0,3.03671-.493,6.08555,6.08555,0,0,0,2.787-3.94433c0.427-1.50695.447-1.95037,1.37041-2.04423a3.03406,3.03406,0,0,1,.90418.10947,10.91687,10.91687,0,0,1,3.21234,1.91465,31.19354,31.19354,0,0,1,6.22659,6.775,1.79563,1.79563,0,0,1-.19539,1.76708A50.13544,50.13544,0,0,1,118.40353,149.20773Z",transform:"translate(-31.77892 -24.7154)"})))};y.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,style:o.a.object,focusable:o.a.bool},y.defaultProps={className:"nyplLionLogoInverse",title:"The New York Public Library",height:"139",width:"252",viewBox:"0 0 252 139",fill:"#000"};var g=y,b=function(e){var t=e.className,r=e.width,n=e.height,i=e.viewBox,o=e.style,s=e.ariaHidden,u=e.title,l=(e.fill,e.focusable);return a.a.createElement("svg",{className:"".concat(t," svgIcon"),width:r,height:n,viewBox:i,style:o,"aria-hidden":s,focusable:l},a.a.createElement("title",null,u),a.a.createElement("g",{className:"".concat(t,"-ny")},a.a.createElement("path",{d:"M0.74,5.93h5.53l40.7,58.93V5.93h5.32v68.25h-5.23L5.97,14.83v59.35H0.74V5.93z"}),a.a.createElement("path",{d:"M63.04,49.27c0-13.84,8.01-25.12,21.01-25.12c12.53,0,19.38,10.04,18.35,24H68.7c0,0.29,0,0.8,0,1.12 c0.08,11.16,4.81,21.41,16.49,21.41c6.24,0,11.47-2.55,14.13-4.6l2.28,4.21c-3.08,2.25-8.73,5.03-16.62,5.03 C70.01,75.31,63.04,63.29,63.04,49.27z M97.08,43.72c-0.12-7.38-3.89-14.94-13.23-14.94c-8.49,0-13.43,6.54-14.86,14.94H97.08z"}),a.a.createElement("path",{d:"M108.63,25.29h5.74l11.9,40.68l12.8-40.68h5.26l12.78,40.79l12.02-40.79h5.32l-14.77,48.89h-4.89l-13.21-41.21 l-13.25,41.21h-4.93L108.63,25.29z"}),a.a.createElement("path",{d:"M222.09,48.45L199.22,5.93h6.38l19.36,36.87h0.17l19.37-36.87h5.75l-22.62,42.52v25.73h-5.53V48.45z"}),a.a.createElement("path",{d:"M245.62,49.8c0-12.32,6.58-25.65,21.94-25.65c15.41,0,22.48,13.24,22.48,25.44c0,12.27-7,25.73-22.36,25.73 C252.33,75.31,245.62,62.07,245.62,49.8z M284.41,49.8c0-10.97-5.84-21.01-17.02-21.01c-11.05,0-16.07,9.83-16.07,20.8 c0,11.05,5.39,21.09,16.49,21.09C278.98,70.68,284.41,60.85,284.41,49.8z"}),a.a.createElement("path",{d:"M300.23,25.29h5.36v8.52c1.82-3.59,6.25-9.66,13.12-9.66c2.28,0,3.88,0.51,4.72,0.84l-1.31,5.02 c-0.84-0.34-1.98-0.72-4-0.72c-6.78,0-11.18,7.97-12.53,10.84v34.04h-5.36V25.29z"}),a.a.createElement("path",{d:"M333.28,0.39h5.33v73.78h-5.33V0.39z M339.08,46.72l21.47-21.43h6.62l-21.64,21.43l22.78,27.46h-6.66 L339.08,46.72z"})),a.a.createElement("g",{className:"".concat(t,"-public")},a.a.createElement("path",{d:"M0.81,108.73h14.88c14.34,0,23.37,7.09,23.37,19.28c0,12.31-8.52,19.99-24,19.99h-8.6v29.02H0.81V108.73z M14.97,143.19c12.99,0,18.35-5.95,18.35-14.97c0-8.52-5.15-14.67-18.14-14.67H6.45v29.65H14.97z"}),a.a.createElement("path",{d:"M47.66,162.67V128.1h5.32v33.43c0,7.17,2.57,11.77,10.04,11.77c7.3,0,13.33-6.87,14.97-9.74V128.1h5.31v39.47 c0,3.88,0.42,7.59,0.93,9.45H78.8c-0.3-1.69-0.72-5.34-0.72-8.01c-2.34,3.71-7.9,9.14-16.17,9.14 C51.66,178.14,47.66,171.45,47.66,162.67z"}),a.a.createElement("path",{d:"M96.63,174.44V103.2h5.34v29.4c2.97-3.38,7.78-5.61,12.8-5.61c13.96,0,20.71,11.17,20.71,25.39 c0,13.75-9.24,25.76-24.17,25.76C105.45,178.14,100.01,176.71,96.63,174.44z M129.84,152.6c0-10.67-4.11-20.8-16-20.8 c-4.17,0-9.11,2.45-11.87,5.53v34.25c2.25,1.14,5.63,1.9,9.53,1.9C123.89,173.47,129.84,162.72,129.84,152.6z"}),a.a.createElement("path",{d:"M147.44,103.2h5.36v73.82h-5.36V103.2z"}),a.a.createElement("path",{d:"M167.31,113.66c0-2.36,1.86-4.09,4.01-4.09c2.28,0,4.13,1.73,4.13,4.09c0,2.36-1.86,4.19-4.13,4.19 C169.17,117.85,167.31,116.02,167.31,113.66z M168.65,128.1h5.41v48.91h-5.41V128.1z"}),a.a.createElement("path",{d:"M184.35,152.51c0-15.48,8.9-25.52,21.51-25.52c7.3,0,11.89,2.74,14.54,5.1l-2.77,3.91 c-2.74-2.35-6.45-4.42-11.89-4.42c-10.85,0-15.78,9.45-15.78,20.71c0,10.84,4.85,21.18,15.71,21.18c5.64,0,10.36-2.45,12.52-4.35 l2.32,3.98c-2.62,2.34-7.76,5.03-15.18,5.03C191.29,178.14,184.35,165.59,184.35,152.51z"})),a.a.createElement("g",{className:"".concat(t,"-library")},a.a.createElement("path",{d:"M0.74,279.99v-68.25h14.55v56.54h25.43v11.7H0.74z"}),a.a.createElement("path",{d:"M58.37,223.64c-4.81,0-8.3-3.84-8.3-8.19c0-4.31,3.49-8.01,8.3-8.01c4.81,0,8.4,3.71,8.4,8.01 C66.77,219.8,63.18,223.64,58.37,223.64z M51.51,279.99v-49.9h13.74v49.9H51.51z"}),a.a.createElement("path",{d:"M90.85,206.17v27.8c2.27-2.28,6.66-5.15,12.22-5.15c12.5,0,21.2,8.6,21.2,25.82 c0,17.04-11.49,26.58-26.55,26.58c-11.26,0-18.14-2.88-20.5-3.98v-71.08H90.85z M90.85,269.4c0.92,0.32,3.08,1.14,6.87,1.14 c7.59,0,12.1-5.61,12.1-15.9c0-9.32-3.17-15.06-10.54-15.06c-4.3,0-7.59,2.82-8.43,3.84V269.4z"}),a.a.createElement("path",{d:"M162.64,242.05c-0.84-0.49-2.4-1.08-5.27-1.08c-6.03,0-9.62,5.32-10.88,7.55v31.47h-13.6v-49.9h13.6v6.75 c2.15-3.71,6.28-8.02,12.61-8.02c3.71,0,5.69,0.72,6.78,1.37L162.64,242.05z"}),a.a.createElement("path",{d:"M198.66,279.99c-0.42-1.27-0.72-3.8-0.8-5.32c-2.24,2.62-6.97,6.55-14.02,6.55c-8.55,0-15.09-5.11-15.09-14.02 c0-13.03,13.42-17.75,26.62-17.75h1.78v-2.87c0-4.3-1.78-7-8.1-7c-6.45,0-10.88,3.42-12.74,4.72L170.4,236 c2.99-2.62,9.5-7.17,20.2-7.17c13.62,0,20.08,5.27,20.08,18.48v17.93c0,6.75,0.72,11.6,1.43,14.76H198.66z M197.14,257.86h-1.78 c-7.93,0-13.5,2.34-13.5,8.21c0,3.65,3,5.19,6.03,5.19c4.93,0,7.8-2.87,9.24-4.41V257.86z"}),a.a.createElement("path",{d:"M251.88,242.05c-0.84-0.49-2.4-1.08-5.27-1.08c-6.03,0-9.62,5.32-10.87,7.55v31.47H222.1v-49.9h13.64v6.75 c2.16-3.71,6.27-8.02,12.6-8.02c3.71,0,5.69,0.72,6.81,1.37L251.88,242.05z"}),a.a.createElement("path",{d:"M259.83,230.09h14.51l11.1,32.86h0.5l10.17-32.86h14.04l-20.62,55.21c-4.42,11.77-9.62,18.64-23.24,18.64 c-4.18,0-6.71-0.59-7.72-0.89l1.98-10.75c0.71,0.17,1.86,0.46,4.77,0.46c7,0,9.44-3.33,11.43-8.67l1.86-5.12L259.83,230.09z"})))};b.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,style:o.a.object,focusable:o.a.bool},b.defaultProps={className:"nyplTextLogo",title:"New York Public Library",ref:"nyplTextLogo",type:"",height:"303.95",width:"368.31",viewBox:"0 0 368.31 303.95",fill:"#000"};var A=b,_=function(e){var t=e.className,r=e.title,n=e.type,i=e.height,o=e.width,s=e.viewBox,u=e.fill,l=e.ariaHidden,c=e.focusable;return a.a.createElement("svg",{className:"".concat(t," svgIcon"),width:o,height:i,viewBox:s,"aria-hidden":l,focusable:c},a.a.createElement("title",null,r),"solid"!==n?function(e){return a.a.createElement("path",{d:"M12,4a8,8,0,1,1-8,8,8.00906,8.00906,0,0,1,8-8m0-4A12,12,0,1,0,24,12,12,12,0,0,0,12,0h0Z",fill:e})}(u):function(e){return a.a.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12,12,0,0,0,12,0h0Z",fill:e})}(u))};_.propTypes={className:o.a.string,title:o.a.string,type:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},_.defaultProps={className:"nyplCarouselCircle-icon",title:"NYPL Carousel Circle SVG Icon",ref:"nyplCarouselCircle",type:"",height:"24px",width:"24px",viewBox:"0 0 24 24",fill:"#000"};var w=_,E=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,preserveAspectRatio:u,focusable:l},a.a.createElement("title",null,i),a.a.createElement("g",null,a.a.createElement("path",{d:"M26.09478,8.31652A13.1617,13.1617,0,0,0,15.97189,8.1603a13.079,13.079,0,0,0-10.09165.18746,0.88881,0.88881,0,0,0-.46865.84357V21.81371a0.89164,0.89164,0,0,0,.37492.81233,0.93487,0.93487,0,0,0,.90606.06249,11.44018,11.44018,0,0,1,8.9044,0c0.03124,0,.03124,0,0.03124.03124a0.06237,0.06237,0,0,1,.06249.03124,0.70873,0.70873,0,0,0,.125.03124h0.18746a0.5317,0.5317,0,0,0,.2187-0.03124,0.06237,0.06237,0,0,0,.06249-0.03124,0.70873,0.70873,0,0,1,.125-0.03124,11.464,11.464,0,0,1,8.9044,0,0.86486,0.86486,0,0,0,.40617.09373A1.05326,1.05326,0,0,0,26.251,22.626a0.94244,0.94244,0,0,0,.43741-0.81233V9.19133A1.04849,1.04849,0,0,0,26.09478,8.31652ZM24.78256,20.439a13.30172,13.30172,0,0,0-8.74818.34368A13.26349,13.26349,0,0,0,7.2862,20.439V9.8162a11.30538,11.30538,0,0,1,8.342.2187c0.03124,0,.03124,0,0.03124.03124a0.06237,0.06237,0,0,1,.06249.03124,0.70872,0.70872,0,0,0,.125.03124h0.34368a0.11478,0.11478,0,0,0,.09373-0.03124c0.03125,0,.06249-0.03124.09373-0.03124,0,0,.06249,0,0.06249-0.03124a11.51979,11.51979,0,0,1,8.37326-.2187V20.439H24.78256Z"}),a.a.createElement("path",{d:"M16.00313,17.81454a0.76028,0.76028,0,0,1-.74984-0.74984V13.378a0.74984,0.74984,0,0,1,1.49969,0V17.0647A0.74014,0.74014,0,0,1,16.00313,17.81454Z"})))};E.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,preserveAspectRatio:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},E.defaultProps={className:"book-icon",title:"NYPL Book SVG Icon",height:"24px",width:"24px",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet"};var x=E,k=function(e){var t=e.className,r=e.title,n=e.height,i=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:i,height:n,viewBox:o,className:"".concat(t," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,r),a.a.createElement("circle",{cx:"16",cy:"16",r:"1.9029"}),a.a.createElement("circle",{cx:"24",cy:"16",r:"1.9029"}),a.a.createElement("circle",{cx:"8",cy:"16",r:"1.9029"}))};k.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},k.defaultProps={className:"dotsIcon",title:"NYPL Dots SVG Icon",height:"24px",width:"24px",viewBox:"0 0 32 32",fill:"#000"};var S=k,O=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole,p=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d,focusable:p},a.a.createElement("title",{id:f},i),a.a.createElement("path",{d:"M17.91272,15.97339l5.65689-5.65689A1.32622,1.32622,0,0,0,21.694,8.44093L16.04938,14.0856l-5.65082-5.725A1.32671,1.32671,0,1,0,8.51,10.22454l5.66329,5.73712L8.43038,21.7046a1.32622,1.32622,0,1,0,1.87557,1.87557l5.73088-5.73088,5.65074,5.72441a1.32626,1.32626,0,1,0,1.88852-1.86261Z"}))};O.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,iconId:o.a.string,svgRole:o.a.string,focusable:o.a.bool},O.defaultProps={ariaHidden:!0,className:"x-icon",title:"Close Icon",fill:"#000",height:"32",width:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var M=O,D=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("g",null,a.a.createElement("path",{d:"M52.36107,47.9805,65.04781,35.29375a2.97433,2.97433,0,1,0-4.20634-4.20634L48.18214,43.74674,35.509,30.90731a2.97542,2.97542,0,0,0-4.23539,4.1802L43.97471,47.95417,31.095,60.83392a2.97433,2.97433,0,1,0,4.20634,4.20634L48.154,52.18757,60.82695,65.02573a2.9744,2.9744,0,0,0,4.23539-4.17729Z"}),a.a.createElement("path",{d:"M48.07141,96.142A48.0713,48.0713,0,1,1,82.07922,82.07849h0A47.94915,47.94915,0,0,1,48.07141,96.142Zm0-90.48193A42.41114,42.41114,0,1,0,78.07532,18.06775,42.29216,42.29216,0,0,0,48.07141,5.66Z"})))};D.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},D.defaultProps={ariaHidden:!0,className:"x-close-circle-icon",height:"48",preserveAspectRatio:"xMidYMid meet",title:"close",viewBox:"0 0 98 98",width:"48"};var T=D,L=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,i=e.height,o=e.title,s=e.viewBox,u=e.width,l=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),fill:n,height:i,viewBox:s,width:u,focusable:l},a.a.createElement("title",null,o),a.a.createElement("g",null,a.a.createElement("circle",{cx:"13.0944",cy:"7.375",r:"1.3192"}),a.a.createElement("circle",{cx:"19.6222",cy:"6.375",r:"1.3189"}),a.a.createElement("circle",{cx:"15.9997",cy:"10.5242",r:"1.3193"}),a.a.createElement("g",null,a.a.createElement("path",{d:"M14.1785,27.562a0.95,0.95,0,0,1-.95-0.95v-10.27L6.6875,9.2893a0.95,0.95,0,0,1,1.3956-1.29l7.0455,7.598v11.015A0.95,0.95,0,0,1,14.1785,27.562Z"}),a.a.createElement("path",{d:"M18.0387,24.794a0.95,0.95,0,0,1-.95-0.95V15.603l7.126-7.8149a0.95,0.95,0,0,1,1.41,1.2744l-6.636,7.2729v7.5083A0.95,0.95,0,0,1,18.0387,24.794Z"}))))};L.propTypes={ariaHidden:o.a.bool,className:o.a.string,fill:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},L.defaultProps={ariaHidden:!0,className:"filter-icon",fill:"#000",height:"32",title:"NYPL Filter SVG Icon",width:"32",viewBox:"0 0 32 32"};var C=L,j=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.title,o=e.viewBox,s=e.width,u=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),height:n,viewBox:o,width:s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M21.649 67.67a2.657 2.657 0 0 1-2.657-2.657V36.3L.706 16.584a2.657 2.657 0 1 1 3.902-3.608l19.697 21.242v30.795a2.657 2.657 0 0 1-2.656 2.656zM32.441 59.93a2.657 2.657 0 0 1-2.656-2.656V34.235l19.922-21.848a2.657 2.657 0 0 1 3.943 3.563L35.098 36.283v20.991a2.657 2.657 0 0 1-2.657 2.657zM29.36 10.54l7.325-7.325A1.884 1.884 0 0 0 34.02.552l-7.325 7.325L19.37.552a1.884 1.884 0 1 0-2.664 2.663l7.325 7.326-7.325 7.325a1.884 1.884 0 1 0 2.664 2.664l7.325-7.326 7.325 7.326a1.884 1.884 0 1 0 2.664-2.664z"}))};j.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},j.defaultProps={ariaHidden:!0,className:"filter-cancel-icon",height:"67.669",title:"NYPL Cancel Filter SVG Icon",width:"54.333",viewBox:"0 0 54.333 67.669"};var N=j,I=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M23.4829,9.5H7.83a1.0143,1.0143,0,1,1,0-2.0285H23.4829A1.0143,1.0143,0,1,1,23.4829,9.5Z"}),a.a.createElement("path",{d:"M23.4829,19.5285H7.83a1.0143,1.0143,0,1,1,0-2.0285H23.4829A1.0143,1.0143,0,1,1,23.4829,19.5285Z"}),a.a.createElement("path",{d:"M16.8125,14.5h-9a0.977,0.977,0,0,1-1-.9857A1.0155,1.0155,0,0,1,7.83,12.5h8.7651a1.1951,1.1951,0,0,1,1.2178,1A0.9889,0.9889,0,0,1,16.8125,14.5Z"}),a.a.createElement("path",{d:"M16.5947,25.4H7.83a1.0143,1.0143,0,1,1,0-2.0285h8.7651A1.0143,1.0143,0,1,1,16.5947,25.4Z"}))};I.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},I.defaultProps={className:"list-icon",title:"NYPL List SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var P=I,R=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("rect",{x:"8",y:"8",width:"7",height:"7"}),a.a.createElement("rect",{x:"17",y:"8",width:"7",height:"7"}),a.a.createElement("rect",{x:"8",y:"17",width:"7",height:"7"}),a.a.createElement("rect",{x:"17",y:"17",width:"7",height:"7"}))};R.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},R.defaultProps={className:"grid-icon",title:"NYPL Grid SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var F=R,Y=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("g",null,a.a.createElement("path",{d:"M47.1181,31.16626v9.81838a7.69657,7.69657,0,0,1-7.69659,7.69659H14.65722a7.69657,7.69657,0,0,1-7.69659-7.69659V16.22035a7.69657,7.69657,0,0,1,7.69659-7.69659h24.7643A7.68562,7.68562,0,0,1,46.04723,12.318v-.029l4.98249-4.98249A14.61787,14.61787,0,0,0,39.42151,1.56313H14.65722A14.67381,14.67381,0,0,0,0,16.22035v24.7643A14.67381,14.67381,0,0,0,14.65722,55.64186h24.7643A14.67381,14.67381,0,0,0,54.07873,40.98464V24.20557Z"}),a.a.createElement("path",{d:"M66.88559,1.11424q-.04628-.04628-.09412-.09092a3.8044,3.8044,0,0,0-5.28616.091L52.99074,9.62894,47.1181,15.50158,32.5635,30.05624,17.90785,15.40066a3.80454,3.80454,0,0,0-5.39511,5.3657l.01458.01458L32.5635,40.81739,47.1181,26.26266,54.07873,19.302,66.88565,6.49491A3.80469,3.80469,0,0,0,66.88559,1.11424Z"})))};Y.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},Y.defaultProps={ariaHidden:!0,className:"apply-icon",height:"68",preserveAspectRatio:"xMidYMid meet",title:"apply",viewBox:"0 0 68 55",width:"55"};var B=Y,H=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.title,s=e.viewBox,u=e.width,l=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,viewBox:s,width:u,focusable:l},a.a.createElement("title",{id:i},o),a.a.createElement("path",{d:"M23.26,13.1819a1.2736,1.2736,0,0,0-1.7332,0L17,17.6253V6.1041a1.0119,1.0119,0,1,0-2,0V17.6253l-4.5268-4.4434a1.2212,1.2212,0,0,0-1.6916,0,1.17,1.17,0,0,0-.0208,1.65L15.1786,21.26l0,0.0083a1.1694,1.1694,0,0,0,1.6488,0l0.0048-.0083L23.26,14.8318A1.17,1.17,0,0,0,23.26,13.1819Z"}),a.a.createElement("rect",{x:"14.8333",y:"16.3602",width:"2.3333",height:"16.6711",rx:"1.1667",ry:"1.1667",transform:"translate(-8.6957 40.6957) rotate(-90)"}))};H.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},H.defaultProps={ariaHidden:!0,className:"download-icon",height:"32",title:"Download",viewBox:"0 0 32 32",width:"32"};var U=H,z=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.fill,u=e.ariaHidden,l=e.labelledById,c=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":u,"aria-labelledby":l,fill:s,focusable:c},a.a.createElement("title",{id:l},i),a.a.createElement("path",{d:"M10.96075,11l4.60907-3.19434a1,1,0,0,0-1.13965-1.64355L5.939,12.04688l8.83594,6.248a0.99981,0.99981,0,0,0,1.1543-1.63281L10.75061,13H23v8H6a1,1,0,0,0,0,2H25V11H10.96075Z"}))};z.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,labelledById:o.a.string.isRequired,focusable:o.a.bool},z.defaultProps={ariaHidden:!0,className:"reset-icon",title:"NYPL Reset SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32",fill:"#000",labelledById:""};var q=z,V=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M16,3A13,13,0,1,1,3,16,13.0147,13.0147,0,0,1,16,3m0-3A16,16,0,1,0,32,16,16,16,0,0,0,16,0h0Z"}),a.a.createElement("path",{d:"M24,14H8a2.0025,2.0025,0,0,0,0,4H24A2.0025,2.0025,0,0,0,24,14Z"}))};V.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},V.defaultProps={className:"circle-dash-icon",title:"NYPL Circle Dash SVG Icon",width:"24",height:"24",viewBox:"0 0 32 32",fill:"#000"};var W=V,K=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("g",null,a.a.createElement("path",{d:"M7.50842,19.29355A0.94557,0.94557,0,0,1,6.56284,18.348V15.376a9.47232,9.47232,0,0,1,18.94464,0v2.91654a0.94558,0.94558,0,0,1-1.89117,0V15.376a7.58115,7.58115,0,0,0-15.16231,0v2.972A0.94557,0.94557,0,0,1,7.50842,19.29355Z"}),a.a.createElement("g",null,a.a.createElement("path",{d:"M21.82651,23.66863a0.94557,0.94557,0,0,1-.94558-0.94558V16.22111a0.94558,0.94558,0,0,1,1.89117,0V22.723A0.94557,0.94557,0,0,1,21.82651,23.66863Z"}),a.a.createElement("path",{d:"M10.24381,23.75a0.94557,0.94557,0,0,1-.94558-0.94558V16.22111a0.94558,0.94558,0,1,1,1.89117,0v6.58331A0.94557,0.94557,0,0,1,10.24381,23.75Z"}))))};K.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},K.defaultProps={className:"audio-headphone-icon",title:"NYPL Audio/Headphone SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var G=K,Q=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M12.25,16a3.738,3.738,0,0,0,1.09839,2.65161l5.30328-5.30328A3.75,3.75,0,0,0,12.25,16Z",fill:"none"}),a.a.createElement("path",{d:"M16,19.75a3.75,3.75,0,0,0,2.65167-6.40167l-5.30328,5.30328A3.738,3.738,0,0,0,16,19.75Z"}),a.a.createElement("path",{d:"M24.4411,7.5589A11.93752,11.93752,0,1,0,27.9375,16,11.90013,11.90013,0,0,0,24.4411,7.5589ZM12.25,16a3.75013,3.75013,0,1,1,1.09839,2.65161A3.75,3.75,0,0,1,12.25,16ZM16,26.9375a10.85556,10.85556,0,0,1-6.99524-2.52808l4.41772-4.41772a4.75228,4.75228,0,0,0,6.56927-6.56927l4.41766-4.41766A10.9387,10.9387,0,0,1,16,26.9375Z"}))};Q.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},Q.defaultProps={className:"media-blu-ray-icon",title:"NYPL Media/Blu-Ray SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var J=Q,Z=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M16,4.0625A11.9375,11.9375,0,1,0,27.9375,16,11.9375,11.9375,0,0,0,16,4.0625ZM16,19.75A3.75,3.75,0,1,1,19.75,16,3.75,3.75,0,0,1,16,19.75Z"}))};Z.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},Z.defaultProps={className:"audio-disc-icon",title:"NYPL Audio Disc SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var X=Z,$=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":u,fill:s,focusable:l},a.a.createElement("title",null,i),a.a.createElement("circle",{cx:"16",cy:"16",r:"3.75",fill:"none"}),a.a.createElement("path",{d:"M16,10.625A5.375,5.375,0,1,0,21.375,16,5.381,5.381,0,0,0,16,10.625Zm0,9.125A3.75,3.75,0,1,1,19.75,16,3.75,3.75,0,0,1,16,19.75Z"}),a.a.createElement("path",{d:"M16,4.0625A11.9375,11.9375,0,1,0,27.9375,16,11.9375,11.9375,0,0,0,16,4.0625Zm0,19.65625A7.71875,7.71875,0,1,1,23.71875,16,7.72719,7.72719,0,0,1,16,23.71875Z"}))};$.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},$.defaultProps={className:"dvd-disc-icon",title:"NYPL DVD Disc SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var ee=$,te=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M7.132,6.0411H24.97514l0.16949,5.36219h-0.755a6.43678,6.43678,0,0,0-1.40988-3.28973q-0.85518-.76272-3.5979-0.76272H17.62525V23.499q0,1.824.57012,2.25992a5.26381,5.26381,0,0,0,2.49619.57525v0.58553H11.49263V26.3342a4.36809,4.36809,0,0,0,2.49619-.66,4.1201,4.1201,0,0,0,.49307-2.545V7.35083h-1.772a6.022,6.022,0,0,0-3.56709.755,5.57976,5.57976,0,0,0-1.42529,3.29744H6.9471Z"}))};te.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},te.defaultProps={className:"large-print-icon",title:"NYPL Large Print SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var re=te,ne=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M23.02352,5.00588H9.00588a2.38332,2.38332,0,0,0-2,2.00588V24.99412A2.45762,2.45762,0,0,0,9,27.00588H22.99412A2.22259,2.22259,0,0,0,24.98824,25V6.98843a1.97259,1.97259,0,0,0-1.6106-1.94478ZM23,23.99608H9V7.0002l14.02352-.01178Z"}),a.a.createElement("path",{d:"M20.61338,9.99038h-9.186a0.456,0.456,0,0,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),a.a.createElement("path",{d:"M20.642,13H11.456a0.50163,0.50163,0,1,1,0-1h9.12081a0.674,0.674,0,0,1,.6497.49219A0.74346,0.74346,0,0,1,20.642,13h0Z"}),a.a.createElement("path",{d:"M20.65624,15.956h-9.186a0.456,0.456,0,1,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),a.a.createElement("path",{d:"M20.55608,18.9121h-9.186a0.456,0.456,0,1,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),a.a.createElement("path",{d:"M20.61338,21.98237h-9.186a0.456,0.456,0,0,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}))};ne.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},ne.defaultProps={className:"eReader-icon",title:"NYPL eReader SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var ae=ne,ie=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M26.45536,26.45536H16.80078L4.92843,14.58216l9.65373-9.65373,11.8732,11.87235v9.65458ZM17.87606,23.859h5.983v-5.983L14.58216,8.5992l-5.983,5.983Z"}))};ie.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},ie.defaultProps={className:"tag-icon",title:"NYPL Tag SVG Icon",width:"24",height:"24",viewBox:"0 0 32 32"};var oe=ie,se=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.size,u=e.style,l=e.fill,c=e.ariaHidden,f=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),style:u,fill:l,"aria-hidden":c,focusable:f},a.a.createElement("title",null,i),function(e){return"large"===e?a.a.createElement("g",null,a.a.createElement("path",{d:"M15.9996,11.594a2.00366,2.00366,0,1,1-2.00366,2.00366A2.00388,2.00388,0,0,1,15.9996,11.594m0-1.68708a3.69114,3.69114,0,1,0,3.69074,3.69074A3.69513,3.69513,0,0,0,15.9996,9.90695"}),a.a.createElement("path",{d:"M27.23733,10.69471a11.53736,11.53736,0,0,0-2.931-5.21513c-0.03126-.03206-0.0577-0.06732-0.089-0.09938-0.03286-.03286-0.06973-0.06011-0.10259-0.093a11.5287,11.5287,0,0,0-5.22074-2.935,11.3323,11.3323,0,0,0-5.789,0,11.52609,11.52609,0,0,0-5.21994,2.935c-0.03366.03286-.06973,0.06011-0.10259,0.093-0.03206.03206-.05851,0.06732-0.08976,0.09938a11.52831,11.52831,0,0,0-2.93015,5.21513,11.69294,11.69294,0,0,0,0,5.80581,11.52676,11.52676,0,0,0,2.93015,5.21593c0.03126,0.03206.05771,0.06732,0.08976,0.09858,0.03286,0.03366.06893,0.06091,0.10259,0.09377L16,30.02362l8.11482-8.11482c0.03286-.03286.06973-0.06011,0.10259-0.09377,0.03126-.03126.05771-0.06652,0.089-0.09858a11.5358,11.5358,0,0,0,2.931-5.21593,11.693,11.693,0,0,0,0-5.80581M22.79321,20.94463l-3.89912,3.89912L16,27.73784l-2.89489-2.89409L9.206,20.94383l-0.55221-.55221A10.00247,10.00247,0,0,1,8.653,6.8044l0.55381-.553a9.97128,9.97128,0,0,1,13.58562-.0008L23.347,6.8052a10.00228,10.00228,0,0,1-.0008,13.58642Z"})):a.a.createElement("g",null,a.a.createElement("path",{d:"M25.70866,11.094a9.9406,9.9406,0,0,0-2.53-4.49511c-0.027-.02763-0.04981-0.058-0.07679-0.08566-0.02837-.02832-0.06019-0.05181-0.08855-0.08013A9.95556,9.95556,0,0,0,18.50669,3.9033a9.79611,9.79611,0,0,0-4.9971,0,9.95331,9.95331,0,0,0-4.5059,2.52975c-0.02906.02832-.06019,0.05181-0.08855,0.08013-0.02767.02763-.0505,0.058-0.07748,0.08566A9.9328,9.9328,0,0,0,6.30831,11.094a10.06419,10.06419,0,0,0,0,5.00424A9.93146,9.93146,0,0,0,8.83765,20.594c0.027,0.02763.04981,0.058,0.07748,0.085,0.02837,0.029.0595,0.0525,0.08855,0.08082l7.0048,6.99447,7.0048-6.99447c0.02837-.02832.06019-0.05181,0.08855-0.08082,0.027-.02694.04981-0.05734,0.07679-0.085a9.93926,9.93926,0,0,0,2.53-4.4958,10.06422,10.06422,0,0,0,0-5.00424m-4.20385,8.54915-3.15475,3.1501-2.34158,2.33813-2.34223-2.33813L10.5115,19.64246l-0.44679-.44613a8.07225,8.07225,0,0,1-.00065-10.97711l0.44808-.44678a8.0764,8.0764,0,0,1,10.992-.00065L21.9529,8.21987a8.0721,8.0721,0,0,1-.00065,10.97646Z"}),a.a.createElement("circle",{cx:"15.9996",cy:"13.59769",r:"2.00366"}))}(s))};se.propTypes={size:o.a.string,className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,style:o.a.object,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},se.defaultProps={className:"locatorIcon",title:"NYPL Locator SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var ue=se,le=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.focusable;return a.a.createElement("svg",{viewBox:t,width:n,height:r,className:"".concat(o," svgIcon"),fill:u,style:s,"aria-hidden":l,focusable:c},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M26.22029,10.40244H5.77971a1.09221,1.09221,0,1,1,0-2.18441H26.22029A1.09221,1.09221,0,1,1,26.22029,10.40244Z"}),a.a.createElement("path",{d:"M26.22029,16.95568H5.77971a1.09221,1.09221,0,0,1,0-2.18441H26.22029A1.09221,1.09221,0,0,1,26.22029,16.95568Z"}),a.a.createElement("path",{d:"M26.22029,23.782H5.77971a1.09221,1.09221,0,1,1,0-2.18441H26.22029A1.09221,1.09221,0,1,1,26.22029,23.782Z"}))};le.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,focusable:o.a.bool},le.defaultProps={className:"menuIcon",title:"NYPL Hamburger Menu SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var ce=le,fe=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole,p=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d,focusable:p},a.a.createElement("title",{id:f},i),a.a.createElement("path",{d:"M16.07184,6.52418c1.24313,0,2.29334,1.39823,2.29334,3.05329s-1.05022,3.05329-2.29334,3.05329S13.7785,11.23252,13.7785,9.57746s1.05022-3.05329,2.29334-3.05329m0-1.8c-2.26069,0-4.09334,2.17289-4.09334,4.85329s1.83265,4.85329,4.09334,4.85329,4.09334-2.17289,4.09334-4.85329-1.83265-4.85329-4.09334-4.85329Z",opacity:"0.85"}),a.a.createElement("path",{d:"M25.28125,27.34375H21a1,1,0,0,1,0-2h4.28125l-2.377-6.2041a.28873.28873,0,0,0-.10547-.11719,47.03461,47.03461,0,0,0-6.7832-.585,48.40643,48.40643,0,0,0-6.957.6084h.00049c.0249,0-.00244.03418-.02246.085l-2.355,6.14551L11,25.34375a1,1,0,0,1,0,2H6.71826a2.04254,2.04254,0,0,1-1.90088-2.791l2.355-6.14551a2.07691,2.07691,0,0,1,1.57617-1.33789,50.4409,50.4409,0,0,1,7.26709-.63184,48.54187,48.54187,0,0,1,7.11816.61621,2.19071,2.19071,0,0,1,1.63184,1.35352l2.417,6.14551a2.04377,2.04377,0,0,1-1.90137,2.791Z",opacity:"0.85"}))};fe.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,iconId:o.a.string,svgRole:o.a.string,focusable:o.a.bool},fe.defaultProps={className:"loginIcon",title:"Log in to your account",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var de=fe,pe=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole,p=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d,focusable:p},a.a.createElement("title",{id:f},i),a.a.createElement("ellipse",{cx:"16.07184",cy:"9.57746",rx:"4.09334",ry:"4.85329"}),a.a.createElement("path",{d:"M25.25882,27.3451,6.61176,27.33725a2.05352,2.05352,0,0,1-1.87843-2.5451l2.46189-6.50245a2.1203,2.1203,0,0,1,1.34706-1.18431,45.76876,45.76876,0,0,1,7.00567-.657c2.94823,0,5.86851.45206,7.09041.53934a2.20375,2.20375,0,0,1,1.97255,1.1098l2.62353,6.64706A2.01818,2.01818,0,0,1,25.25882,27.3451Z"}))};pe.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,iconId:o.a.string,svgRole:o.a.string,focusable:o.a.bool},pe.defaultProps={className:"loginIcon",title:"You are logged in to your account",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var he=pe,ve=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),style:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M35.951 9.268a2.826 2.826 0 1 0-4.084 3.906l5.418 5.664H13.187a2.826 2.826 0 0 0 0 5.652h24.258l-5.742 6.222a2.826 2.826 0 0 0 4.154 3.834l11.916-12.917z"}),a.a.createElement("path",{d:"M45.173 39.56H5.652V5.653h17.366a2.826 2.826 0 0 0 0-5.652H0v45.212h45.173a2.826 2.826 0 0 0 0-5.651z"}))};ve.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,style:o.a.object,ariaHidden:o.a.bool,focusable:o.a.bool},ve.defaultProps={className:"logoutIcon",height:"45.212",title:"NYPL Logout SVG Icon",viewBox:"0 0 47.99 45.212",width:"47.99"};var me=ve,ye=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.focusable;return a.a.createElement("svg",{viewBox:t,width:n,height:r,className:"".concat(o," svgIcon"),fill:u,style:s,"aria-hidden":l,focusable:c},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M25.26014,23.627l-3.76-3.75948a8.53632,8.53632,0,1,0-2.07145,1.85393l3.86877,3.86822A1.38781,1.38781,0,0,0,25.26014,23.627ZM9.109,14.52943a5.75012,5.75012,0,1,1,5.75012,5.74948A5.75662,5.75662,0,0,1,9.109,14.52943Z"}))};ye.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,focusable:o.a.bool},ye.defaultProps={ariaHidden:!0,className:"searchIcon",title:"NYPL Search SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var ge=ye,be=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.focusable;return a.a.createElement("svg",{width:n,height:r,viewBox:t,className:"".concat(o," svgIcon"),"aria-hidden":s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M25.51266,9.42987a1.40287,1.40287,0,0,0-1.94927.03357L12.891,20.13586,7.48668,14.73156a1.40294,1.40294,0,1,0-1.9841,1.984L12.891,24.10406,25.5474,11.44754A1.403,1.403,0,0,0,25.51266,9.42987Z"}))};be.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},be.defaultProps={className:"check-solo-icon",title:"NYPL Check Solo SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"};var Ae=be,_e=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.length,o=e.stroke,s=e.strokeWidth,u=e.title,l=e.viewBox,c=e.width,f=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),height:n,viewBox:l,width:c,focusable:f},a.a.createElement("title",null,u),a.a.createElement("line",{x1:"0",y1:"0",x2:i,y2:"0",stroke:o,strokeWidth:s}))};_e.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,length:o.a.string,stroke:o.a.string,strokeWidth:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},_e.defaultProps={ariaHidden:!0,className:"divideLine-icon",height:"2",length:"84",stroke:"#000",strokeWidth:"2",title:"NYPL Divide Line SVG Icon",viewBox:"0 0 84 2",width:"84"};var we=_e,Ee=function(e){var t=e.ariaHidden,r=e.className,n=e.stroke,i=e.height,o=e.title,s=e.viewBox,u=e.width,l=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),height:i,viewBox:s,width:u,focusable:l,fill:"none"},a.a.createElement("title",null,o),a.a.createElement("path",{d:"M1 1L9 9L17 1",stroke:n}))};Ee.propTypes={ariaHidden:o.a.bool,className:o.a.string,stroke:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},Ee.defaultProps={ariaHidden:!0,className:"down-wedge-icon",stroke:"#000",height:"10",title:"NYPL Down Wedge SVG Icon",width:"18",viewBox:"0 0 18 10"};var xe=Ee,ke=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,i=e.height,o=e.title,s=e.viewBox,u=e.width,l=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),fill:n,height:i,viewBox:s,width:u,focusable:l},a.a.createElement("title",null,o),a.a.createElement("polygon",{points:"13 8.437 20.563 16 13 23.563 11.593 22.155 17.748 16 11.593 9.845 13 8.437"}))};ke.propTypes={ariaHidden:o.a.bool,className:o.a.string,fill:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},ke.defaultProps={ariaHidden:!0,className:"right-wedge-icon",fill:"#000",height:"32",title:"NYPL Right Wedge SVG Icon",width:"32",viewBox:"0 0 32 32"};var Se=ke,Oe=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,i=e.height,o=e.title,s=e.viewBox,u=e.width,l=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),fill:n,height:i,viewBox:s,width:u,focusable:l},a.a.createElement("title",null,o),a.a.createElement("polygon",{points:"19.156 23.563 11.593 16 19.156 8.438 20.563 9.845 14.408 16 20.563 22.155 19.156 23.563"}))};Oe.propTypes={ariaHidden:o.a.bool,className:o.a.string,fill:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},Oe.defaultProps={ariaHidden:!0,className:"left-wedge-icon",fill:"#000",height:"32",title:"NYPL Left Wedge SVG Icon",width:"32",viewBox:"0 0 32 32"};var Me=Oe,De=function(e){var t=e.className,r=e.title,n=e.height,i=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:i,height:n,viewBox:o,className:"".concat(t," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,r),a.a.createElement("path",{d:"M7.96875,1A6.96875,6.96875,0,1,1,1,7.96875,6.97663,6.97663,0,0,1,7.96875,1m0-1A7.96875,7.96875,0,1,0,15.9375,7.96875,7.96873,7.96873,0,0,0,7.96875,0Z"}))};De.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},De.defaultProps={className:"radioInactiveIcon",title:"NYPL Radio Inactive Icon",height:"16px",width:"16px",viewBox:"0 0 16 16",fill:"#000"};var Te=De,Le=function(e){var t=e.className,r=e.title,n=e.height,i=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:i,height:n,viewBox:o,className:"".concat(t," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,r),a.a.createElement("path",{d:"M7.96875,4.64844A3.32031,3.32031,0,1,1,4.64844,7.96875,3.32407,3.32407,0,0,1,7.96875,4.64844M7.96875,0A7.96875,7.96875,0,1,0,15.9375,7.96875,7.96875,7.96875,0,0,0,7.96875,0Z"}))};Le.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},Le.defaultProps={className:"radioActiveIcon",title:"NYPL Radio Active Icon",height:"16px",width:"16px",viewBox:"0 0 16 16",fill:"#000"};var Ce=Le,je=function(e){var t=e.className,r=e.title,n=e.height,i=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:i,height:n,viewBox:o,className:"".concat(t," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,r),a.a.createElement("circle",{cx:"6",cy:"6",r:"6",fill:s}))};je.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},je.defaultProps={className:"smallDotClosedIcon",title:"NYPL Small Dot Closed Icon",height:"12px",width:"12px",viewBox:"0 0 12 12",fill:"#010101"};var Ne=je,Ie=function(e){var t=e.className,r=e.title,n=e.height,i=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden,l=e.focusable;return a.a.createElement("svg",{width:i,height:n,viewBox:o,className:"".concat(t," svgIcon"),fill:s,"aria-hidden":u,focusable:l},a.a.createElement("title",null,r),a.a.createElement("path",{d:"M6,2A4,4,0,1,1,2,6,4.00454,4.00454,0,0,1,6,2M6,0a6,6,0,1,0,6,6A6,6,0,0,0,6,0Z",fill:s}))};Ie.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,ariaHidden:o.a.bool,focusable:o.a.bool},Ie.defaultProps={className:"smallDotOpenIcon",title:"NYPL Small Dot Open Icon",height:"12px",width:"12px",viewBox:"0 0 12 12",fill:"#010101"};var Pe=Ie,Re=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.style,u=e.ariaHidden,l=e.preserveAspectRatio,c=e.iconId,f=e.svgRole,d=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),style:s,"aria-hidden":u,preserveAspectRatio:l,"aria-labelledby":c,role:f,focusable:d},a.a.createElement("title",{id:c},i),a.a.createElement("path",{d:"M13.329 9.245a1.466 1.466 0 0 0 .766-.217l9.536-5.834 9.536 5.834a1.47 1.47 0 0 0 1.535-2.509L24.398.216a1.473 1.473 0 0 0-1.535 0L12.56 6.519a1.47 1.47 0 0 0 .769 2.726zM45.811 36.982h-1.564V20.08h1.423a1.51 1.51 0 0 0 0-3.018h-5.817a1.51 1.51 0 0 0 0 3.018h1.376v16.902H6.218V20.08h1.8a1.51 1.51 0 0 0 0-3.018H2.202a1.51 1.51 0 0 0 0 3.018h.997v16.902H1.47a1.51 1.51 0 0 0 0 3.018h44.341a1.51 1.51 0 0 0 0-3.018z"}),a.a.createElement("path",{d:"M21.007 35.128a1.504 1.504 0 0 0 1.509-1.47V22.512a5.435 5.435 0 1 0-10.866 0v11.146a1.51 1.51 0 0 0 3.019 0V22.512a2.424 2.424 0 1 1 4.829 0v11.146a1.504 1.504 0 0 0 1.509 1.47zM34.287 35.128a1.504 1.504 0 0 0 1.509-1.47V22.512a5.435 5.435 0 1 0-10.866 0v11.146a1.51 1.51 0 0 0 3.019 0V22.512a2.424 2.424 0 1 1 4.829 0v11.146a1.504 1.504 0 0 0 1.509 1.47zM2.06 14.647h43.613a1.51 1.51 0 0 0 0-3.018H2.06a1.51 1.51 0 0 0 0 3.018z"}))};Re.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,svgRole:o.a.string,iconId:o.a.string,focusable:o.a.bool},Re.defaultProps={ariaHidden:!0,className:"bldgIcon",height:"40",preserveAspectRatio:"xMidYMid meet",svgRole:"img",title:"NYPL Building Icon",viewBox:"0 0 47.282 40",width:"47.282"};var Fe=Re,Ye=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole,f=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),"aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c,focusable:f},a.a.createElement("title",{id:l},i),a.a.createElement("path",{d:"M17.749 26.818L6.205 15.288 17.832 3.592a2.075 2.075 0 0 0 .01-2.901 2.278 2.278 0 0 0-3.243-.026L0 15.225 14.693 29.87a2.16 2.16 0 0 0 3.065-.016 2.16 2.16 0 0 0-.01-3.036z"}))};Ye.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,svgRole:o.a.string,iconId:o.a.string,focusable:o.a.bool},Ye.defaultProps={ariaHidden:!0,className:"GenericWedgeIcon",title:"NYPL Wedge Down Icon",width:"30.5",height:"18.428",viewBox:"0 0 18.428 30.5",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var Be=Ye,He=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole,f=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),"aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c,focusable:f},a.a.createElement("title",{id:l},i),a.a.createElement("polygon",{points:"16.959 24.065 9.905 16.963 27.298 16.963 27.298 14.548 9.905 14.548 16.959 7.397 15.026 5.417 4.688 15.707 15.026 25.998 16.959 24.065"}))};He.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,svgRole:o.a.string,iconId:o.a.string,focusable:o.a.bool},He.defaultProps={ariaHidden:!0,className:"leftArrowIcon",title:"NYPL Left Arrow Icon",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var Ue=He,ze=function(e){var t=e.viewBox,r=e.height,n=e.width,i=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole,f=e.focusable;return a.a.createElement("svg",{viewBox:t,height:r,width:n,className:"".concat(o," svgIcon"),"aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c,focusable:f},a.a.createElement("title",{id:l},i),a.a.createElement("polygon",{points:"16.959 25.998 27.298 15.707 16.959 5.417 15.026 7.397 22.08 14.548 4.688 14.548 4.687 16.963 22.08 16.963 15.026 24.065 16.959 25.998"}))};ze.propTypes={className:o.a.string,title:o.a.string,height:o.a.string,width:o.a.string,viewBox:o.a.string,fill:o.a.string,style:o.a.object,ariaHidden:o.a.bool,preserveAspectRatio:o.a.string,svgRole:o.a.string,iconId:o.a.string,focusable:o.a.bool},ze.defaultProps={ariaHidden:!0,className:"rightArrowIcon",title:"NYPL Right Arrow Icon",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"};var qe=ze,Ve=function(e){var t=e.ariaHidden,r=e.className,n=e.iconId,i=e.height,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":n,className:"".concat(r," svgIcon"),height:i,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:n},s),a.a.createElement("path",{d:"M7.1267,13.68408v9.7265H0V35.30576H7.1267V67.94592H21.76584V35.30576H31.588s.9207-5.70326,1.36529-11.94H21.82116v-8.1318a3.45468,3.45468,0,0,1,3.17363-2.85086h7.9757V0H22.12679C6.76506,0,7.1267,11.90635,7.1267,13.68408Z"}))};Ve.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},Ve.defaultProps={ariaHidden:!0,className:"face-book-icon",height:"32",preserveAspectRatio:"xMidYMid meet",title:"Facebook",viewBox:"0 0 32 67",width:"67"};var We=Ve,Ke=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("path",{d:"M68,6.51074a27.99231,27.99231,0,0,1-8.01276,2.18635,13.937,13.937,0,0,0,6.13419-7.68177,28.01282,28.01282,0,0,1-8.859,3.36949A13.94135,13.94135,0,0,0,33.48906,17.04873,39.66941,39.66941,0,0,1,4.73387,2.54149,13.85672,13.85672,0,0,0,9.05141,21.0789a13.94473,13.94473,0,0,1-6.319-1.73673c-.001.058-.0012.11605-.0012.17455a13.91,13.91,0,0,0,11.1911,13.61485,14.05089,14.05089,0,0,1-6.30034.23787,13.95724,13.95724,0,0,0,13.03232,9.6428A28.07735,28.07735,0,0,1,3.328,48.95584,28.53232,28.53232,0,0,1,0,48.762,39.625,39.625,0,0,0,21.38562,55c25.66113,0,39.69344-21.15722,39.69344-39.50546q0-.90295-.04031-1.79619A28.279,28.279,0,0,0,68,6.51074Z"}))};Ke.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},Ke.defaultProps={ariaHidden:!0,className:"twitter-icon",height:"68",preserveAspectRatio:"xMidYMid meet",title:"Twitter",viewBox:"0 0 68 55",width:"55"};var Ge=Ke,Qe=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("path",{d:"M16.644 0v12.131h11.424v7.534H16.644v12.309a19.61 19.61 0 0 0 .441 5.357 3.664 3.664 0 0 0 1.652 1.895 6.971 6.971 0 0 0 3.656.953 13.194 13.194 0 0 0 7.274-2.37v7.573a28.934 28.934 0 0 1-5.589 2.031 23.648 23.648 0 0 1-5.413.586 18.768 18.768 0 0 1-5.837-.831A12.607 12.607 0 0 1 8.5 44.796a8.592 8.592 0 0 1-2.484-3.273 14.11 14.11 0 0 1-.692-5.023V19.665H0v-6.79a14.235 14.235 0 0 0 4.862-2.634 13.131 13.131 0 0 0 3.247-4.124A18.576 18.576 0 0 0 9.796 0z"}))};Qe.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},Qe.defaultProps={ariaHidden:!0,className:"tumblr-icon",height:"47.999",preserveAspectRatio:"xMidYMid meet",title:"Tumblr",viewBox:"0 0 29.667 47.999",width:"29.667"};var Je=Qe,Ze=function(e){var t=e.ariaHidden,r=e.className,n=e.iconId,i=e.height,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":n,className:"".concat(r," svgIcon"),height:i,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:n},s),a.a.createElement("path",{d:"M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z"}))};Ze.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},Ze.defaultProps={ariaHidden:!0,className:"youtube-icon",height:"48",preserveAspectRatio:"xMidYMid meet",title:"Youtube",viewBox:"0 0 24 24",width:"48"};var Xe=Ze,$e=function(e){var t=e.ariaHidden,r=e.className,n=e.iconId,i=e.height,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":n,className:"".concat(r," svgIcon"),height:i,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:n},s),a.a.createElement("path",{d:"M47.832 41.697a6.167 6.167 0 0 1-6.135 6.136H6.135A6.167 6.167 0 0 1 0 41.697V6.135A6.167 6.167 0 0 1 6.135 0h35.562a6.167 6.167 0 0 1 6.135 6.135zm-5.418-21.455H38.21a13.628 13.628 0 0 1 .622 4.079 14.651 14.651 0 0 1-14.885 14.418A14.644 14.644 0 0 1 9.093 24.321a13.621 13.621 0 0 1 .623-4.08H5.325v20.18a1.888 1.888 0 0 0 1.9 1.9h33.29a1.887 1.887 0 0 0 1.899-1.9zm-18.467-5.73a9.46 9.46 0 0 0-9.591 9.311 9.46 9.46 0 0 0 9.591 9.31 9.466 9.466 0 0 0 9.623-9.31 9.466 9.466 0 0 0-9.623-9.311zm18.467-7.038a2.153 2.153 0 0 0-2.15-2.148h-5.418a2.153 2.153 0 0 0-2.148 2.148v5.138a2.153 2.153 0 0 0 2.148 2.15h5.419a2.153 2.153 0 0 0 2.149-2.15z"}))};$e.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},$e.defaultProps={ariaHidden:!0,className:"instagram-icon",height:"47.832",preserveAspectRatio:"xMidYMid meet",title:"Instagram",viewBox:"0 0 47.832 47.833",width:"47.832"};var et=$e,tt=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("path",{d:"M46.052 36.91H1.948A1.938 1.938 0 0 1 0 34.981V1.927A1.937 1.937 0 0 1 1.948 0h44.104A1.938 1.938 0 0 1 48 1.927v33.055a1.938 1.938 0 0 1-1.948 1.927zM3.896 33.054h40.208V3.854H3.896z"}),a.a.createElement("path",{d:"M24 25.007a1.915 1.915 0 0 1-1.176-.402l-11.93-9.251a1.925 1.925 0 0 1 2.352-3.049L24 20.644l10.754-8.339a1.925 1.925 0 0 1 2.352 3.049l-11.93 9.25a1.917 1.917 0 0 1-1.176.403z"}))};tt.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},tt.defaultProps={ariaHidden:!0,className:"envelope-icon",height:"48",preserveAspectRatio:"xMidYMid meet",title:"mail",viewBox:"0 0 48 36.909",width:"36.909"};var rt=tt,nt=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("path",{d:"M61.554 46.28H6.824A6.832 6.832 0 0 1 0 39.453V6.824A6.833 6.833 0 0 1 6.825 0h54.729a6.832 6.832 0 0 1 6.823 6.825v32.63a6.832 6.832 0 0 1-6.823 6.824zM6.824 3.31A3.52 3.52 0 0 0 3.31 6.824v32.63a3.52 3.52 0 0 0 3.516 3.515h54.729a3.519 3.519 0 0 0 3.514-3.516V6.824a3.519 3.519 0 0 0-3.514-3.515z"}),a.a.createElement("path",{d:"M56.943 14.56H42.59a1.707 1.707 0 1 1 0-3.413h14.353a1.707 1.707 0 0 1 0 3.413zM56.943 20.971H42.59a1.707 1.707 0 1 1 0-3.413h14.353a1.707 1.707 0 1 1 0 3.413zM56.943 27.382H42.59a1.707 1.707 0 1 1 0-3.414h14.353a1.707 1.707 0 1 1 0 3.414zM22.471 14.335c1.003 0 1.851 1.129 1.851 2.465s-.848 2.464-1.85 2.464-1.852-1.128-1.852-2.464.848-2.465 1.851-2.465m0-3.111c-2.597 0-4.703 2.496-4.703 5.576s2.106 5.576 4.703 5.576 4.703-2.497 4.703-5.576-2.106-5.576-4.703-5.576zM22.403 24.634a49.169 49.169 0 0 0-7.08.613 2.834 2.834 0 0 0-2.175 1.805l-2.26 5.898a2.793 2.793 0 0 0 2.601 3.81h4.106a1.793 1.793 0 0 0 0-3.587l-2.934-.046 1.666-4.35a44.936 44.936 0 0 1 6.076-.557 42.747 42.747 0 0 1 5.961.49l1.71 4.463h-2.892a1.793 1.793 0 0 0 0 3.586h4.105a2.794 2.794 0 0 0 2.6-3.816l-2.318-5.892a2.92 2.92 0 0 0-2.215-1.817 47.371 47.371 0 0 0-6.95-.6z"}))};nt.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},nt.defaultProps={ariaHidden:!0,className:"library-card-icon",height:"46.279",preserveAspectRatio:"xMidYMid meet",title:"library-card",viewBox:"0 0 68.377 46.279",width:"68.377"};var at=nt,it=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.title,o=e.viewBox,s=e.width,u=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,className:"".concat(r," svgIcon"),height:n,viewBox:o,width:s,focusable:u},a.a.createElement("title",null,i),a.a.createElement("path",{d:"M9.826 45.06l28.026-28.026-6.964-6.964L2.862 38.096 0 47.923l9.826-2.863zM33.409 7.626l2.792-2.792 6.965 6.964-2.793 2.793zM38.243 2.793L41.036 0 48 6.965l-2.792 2.792z"}))};it.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,title:o.a.string,width:o.a.string,viewBox:o.a.string,focusable:o.a.bool},it.defaultProps={ariaHidden:!0,className:"filter-cancel-icon",height:"47.923",title:"NYPL Cancel Filter SVG Icon",width:"48",viewBox:"0 0 48 47.923"};var ot=it,st=function(e){var t=e.ariaHidden,r=e.className,n=e.height,i=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width,c=e.focusable;return a.a.createElement("svg",{"aria-hidden":t,"aria-labelledby":i,className:"".concat(r," svgIcon"),height:n,preserveAspectRatio:o,viewBox:u,width:l,focusable:c},a.a.createElement("title",{id:i},s),a.a.createElement("path",{d:"M45.163 50.301l-6.19-32.137a6.754 6.754 0 0 0-6.75-5.289h-.07V6.25A6.25 6.25 0 0 0 25.902 0h-6.5a6.25 6.25 0 0 0-6.25 6.25v6.625h-.102a6.754 6.754 0 0 0-6.75 5.289L.11 50.3a6.568 6.568 0 0 0 6.75 7.574h31.551a6.568 6.568 0 0 0 6.75-7.574zM17.682 6.671a2.235 2.235 0 0 1 2.234-2.234h5.533a2.235 2.235 0 0 1 2.234 2.235v6.203H17.682zm22.925 46.492a2.891 2.891 0 0 1-2.195.962H6.862a2.89 2.89 0 0 1-2.195-.962 2.535 2.535 0 0 1-.62-2.196l6.19-32.137a2.814 2.814 0 0 1 2.814-2.205h.101v5.57a2.235 2.235 0 0 0 2.243 2.234h.06a2.235 2.235 0 0 0 2.227-2.234v-5.57h10.001v5.518a2.235 2.235 0 1 0 4.47 0v-5.518h.07a2.814 2.814 0 0 1 2.814 2.205l6.19 32.137a2.535 2.535 0 0 1-.62 2.196z"}))};st.propTypes={ariaHidden:o.a.bool,className:o.a.string,height:o.a.string,iconId:o.a.string.isRequired,preserveAspectRatio:o.a.string,title:o.a.string,viewBox:o.a.string,width:o.a.string,focusable:o.a.bool},st.defaultProps={ariaHidden:!0,className:"shopping-bag-icon",height:"45.274",preserveAspectRatio:"xMidYMid meet",title:"shop",viewBox:"0 0 45.274 57.875",width:"57.875"};var ut=st}]))},function(e,t,r){r(10),e.exports=r(11)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tabs=t.Button=t.Panel=t.Input=t.Header=t.Form=t.Fieldset=void 0;const n=r(2);t.Panel=n.default;const a=r(3);t.Header=a.default;const i=r(5);t.Form=i.default;const o=r(4);t.Fieldset=o.default;const s=r(6);t.Input=s.default;const u=r(7);t.Tabs=u.default;const l=r(1);t.Button=l.default},function(e,t,r){"use strict";
14
14
  /** @license React v16.14.0
15
15
  * react.production.min.js
16
16
  *
@@ -38,7 +38,7 @@ object-assign
38
38
  * @author Feross Aboukhadijeh <http://feross.org>
39
39
  * @license MIT
40
40
  */
41
- var n=r(756);var a=r(757);var i=r(385);t.Buffer=l;t.SlowBuffer=b;t.INSPECT_MAX_BYTES=50;l.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:o();t.kMaxLength=s();function o(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return e.foo()===42&&typeof e.subarray==="function"&&e.subarray(1,1).byteLength===0}catch(e){return false}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(s()<t){throw new RangeError("Invalid typed array length")}if(l.TYPED_ARRAY_SUPPORT){e=new Uint8Array(t);e.__proto__=l.prototype}else{if(e===null){e=new l(t)}e.length=t}return e}function l(e,t,r){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l)){return new l(e,t,r)}if(typeof e==="number"){if(typeof t==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return p(this,e)}return c(this,e,t,r)}l.poolSize=8192;l._augment=function(e){e.__proto__=l.prototype;return e};function c(e,t,r,n){if(typeof t==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&t instanceof ArrayBuffer){return m(e,t,r,n)}if(typeof t==="string"){return h(e,t,r)}return y(e,t)}l.from=function(e,t,r){return c(null,e,t,r)};if(l.TYPED_ARRAY_SUPPORT){l.prototype.__proto__=Uint8Array.prototype;l.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&l[Symbol.species]===l){Object.defineProperty(l,Symbol.species,{value:null,configurable:true})}}function f(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}else if(e<0){throw new RangeError('"size" argument must not be negative')}}function d(e,t,r,n){f(t);if(t<=0){return u(e,t)}if(r!==undefined){return typeof n==="string"?u(e,t).fill(r,n):u(e,t).fill(r)}return u(e,t)}l.alloc=function(e,t,r){return d(null,e,t,r)};function p(e,t){f(t);e=u(e,t<0?0:g(t)|0);if(!l.TYPED_ARRAY_SUPPORT){for(var r=0;r<t;++r){e[r]=0}}return e}l.allocUnsafe=function(e){return p(null,e)};l.allocUnsafeSlow=function(e){return p(null,e)};function h(e,t,r){if(typeof r!=="string"||r===""){r="utf8"}if(!l.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}var n=A(t,r)|0;e=u(e,n);var a=e.write(t,r);if(a!==n){e=e.slice(0,a)}return e}function v(e,t){var r=t.length<0?0:g(t.length)|0;e=u(e,r);for(var n=0;n<r;n+=1){e[n]=t[n]&255}return e}function m(e,t,r,n){t.byteLength;if(r<0||t.byteLength<r){throw new RangeError("'offset' is out of bounds")}if(t.byteLength<r+(n||0)){throw new RangeError("'length' is out of bounds")}if(r===undefined&&n===undefined){t=new Uint8Array(t)}else if(n===undefined){t=new Uint8Array(t,r)}else{t=new Uint8Array(t,r,n)}if(l.TYPED_ARRAY_SUPPORT){e=t;e.__proto__=l.prototype}else{e=v(e,t)}return e}function y(e,t){if(l.isBuffer(t)){var r=g(t.length)|0;e=u(e,r);if(e.length===0){return e}t.copy(e,0,0,r);return e}if(t){if(typeof ArrayBuffer!=="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t){if(typeof t.length!=="number"||te(t.length)){return u(e,0)}return v(e,t)}if(t.type==="Buffer"&&i(t.data)){return v(e,t.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=s()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+s().toString(16)+" bytes")}return e|0}function b(e){if(+e!=e){e=0}return l.alloc(+e)}l.isBuffer=function e(t){return!!(t!=null&&t._isBuffer)};l.compare=function e(t,r){if(!l.isBuffer(t)||!l.isBuffer(r)){throw new TypeError("Arguments must be Buffers")}if(t===r)return 0;var n=t.length;var a=r.length;for(var i=0,o=Math.min(n,a);i<o;++i){if(t[i]!==r[i]){n=t[i];a=r[i];break}}if(n<a)return-1;if(a<n)return 1;return 0};l.isEncoding=function e(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};l.concat=function e(t,r){if(!i(t)){throw new TypeError('"list" argument must be an Array of Buffers')}if(t.length===0){return l.alloc(0)}var n;if(r===undefined){r=0;for(n=0;n<t.length;++n){r+=t[n].length}}var a=l.allocUnsafe(r);var o=0;for(n=0;n<t.length;++n){var s=t[n];if(!l.isBuffer(s)){throw new TypeError('"list" argument must be an Array of Buffers')}s.copy(a,o);o+=s.length}return a};function A(e,t){if(l.isBuffer(e)){return e.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){e=""+e}var r=e.length;if(r===0)return 0;var n=false;for(;;){switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case undefined:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return J(e).length;t=(""+t).toLowerCase();n=true}}}l.byteLength=A;function _(e,t,r){var n=false;if(t===undefined||t<0){t=0}if(t>this.length){return""}if(r===undefined||r>this.length){r=this.length}if(r<=0){return""}r>>>=0;t>>>=0;if(r<=t){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return L(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=true}}}l.prototype._isBuffer=true;function w(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}l.prototype.swap16=function e(){var t=this.length;if(t%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var r=0;r<t;r+=2){w(this,r,r+1)}return this};l.prototype.swap32=function e(){var t=this.length;if(t%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var r=0;r<t;r+=4){w(this,r,r+3);w(this,r+1,r+2)}return this};l.prototype.swap64=function e(){var t=this.length;if(t%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var r=0;r<t;r+=8){w(this,r,r+7);w(this,r+1,r+6);w(this,r+2,r+5);w(this,r+3,r+4)}return this};l.prototype.toString=function e(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return C(this,0,t);return _.apply(this,arguments)};l.prototype.equals=function e(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return l.compare(this,t)===0};l.prototype.inspect=function e(){var r="";var n=t.INSPECT_MAX_BYTES;if(this.length>0){r=this.toString("hex",0,n).match(/.{2}/g).join(" ");if(this.length>n)r+=" ... "}return"<Buffer "+r+">"};l.prototype.compare=function e(t,r,n,a,i){if(!l.isBuffer(t)){throw new TypeError("Argument must be a Buffer")}if(r===undefined){r=0}if(n===undefined){n=t?t.length:0}if(a===undefined){a=0}if(i===undefined){i=this.length}if(r<0||n>t.length||a<0||i>this.length){throw new RangeError("out of range index")}if(a>=i&&r>=n){return 0}if(a>=i){return-1}if(r>=n){return 1}r>>>=0;n>>>=0;a>>>=0;i>>>=0;if(this===t)return 0;var o=i-a;var s=n-r;var u=Math.min(o,s);var c=this.slice(a,i);var f=t.slice(r,n);for(var d=0;d<u;++d){if(c[d]!==f[d]){o=c[d];s=f[d];break}}if(o<s)return-1;if(s<o)return 1;return 0};function E(e,t,r,n,a){if(e.length===0)return-1;if(typeof r==="string"){n=r;r=0}else if(r>2147483647){r=2147483647}else if(r<-2147483648){r=-2147483648}r=+r;if(isNaN(r)){r=a?0:e.length-1}if(r<0)r=e.length+r;if(r>=e.length){if(a)return-1;else r=e.length-1}else if(r<0){if(a)r=0;else return-1}if(typeof t==="string"){t=l.from(t,n)}if(l.isBuffer(t)){if(t.length===0){return-1}return x(e,t,r,n,a)}else if(typeof t==="number"){t=t&255;if(l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(a){return Uint8Array.prototype.indexOf.call(e,t,r)}else{return Uint8Array.prototype.lastIndexOf.call(e,t,r)}}return x(e,[t],r,n,a)}throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,a){var i=1;var o=e.length;var s=t.length;if(n!==undefined){n=String(n).toLowerCase();if(n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le"){if(e.length<2||t.length<2){return-1}i=2;o/=2;s/=2;r/=2}}function u(e,t){if(i===1){return e[t]}else{return e.readUInt16BE(t*i)}}var l;if(a){var c=-1;for(l=r;l<o;l++){if(u(e,l)===u(t,c===-1?0:l-c)){if(c===-1)c=l;if(l-c+1===s)return c*i}else{if(c!==-1)l-=l-c;c=-1}}}else{if(r+s>o)r=o-s;for(l=r;l>=0;l--){var f=true;for(var d=0;d<s;d++){if(u(e,l+d)!==u(t,d)){f=false;break}}if(f)return l}}return-1}l.prototype.includes=function e(t,r,n){return this.indexOf(t,r,n)!==-1};l.prototype.indexOf=function e(t,r,n){return E(this,t,r,n,true)};l.prototype.lastIndexOf=function e(t,r,n){return E(this,t,r,n,false)};function k(e,t,r,n){r=Number(r)||0;var a=e.length-r;if(!n){n=a}else{n=Number(n);if(n>a){n=a}}var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");if(n>i/2){n=i/2}for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function S(e,t,r,n){return ee(J(t,e.length-r),e,r,n)}function O(e,t,r,n){return ee(Z(t),e,r,n)}function M(e,t,r,n){return O(e,t,r,n)}function D(e,t,r,n){return ee($(t),e,r,n)}function T(e,t,r,n){return ee(X(t,e.length-r),e,r,n)}l.prototype.write=function e(t,r,n,a){if(r===undefined){a="utf8";n=this.length;r=0}else if(n===undefined&&typeof r==="string"){a=r;n=this.length;r=0}else if(isFinite(r)){r=r|0;if(isFinite(n)){n=n|0;if(a===undefined)a="utf8"}else{a=n;n=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var i=this.length-r;if(n===undefined||n>i)n=i;if(t.length>0&&(n<0||r<0)||r>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!a)a="utf8";var o=false;for(;;){switch(a){case"hex":return k(this,t,r,n);case"utf8":case"utf-8":return S(this,t,r,n);case"ascii":return O(this,t,r,n);case"latin1":case"binary":return M(this,t,r,n);case"base64":return D(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase();o=true}}};l.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(e,t,r){if(t===0&&r===e.length){return n.fromByteArray(e)}else{return n.fromByteArray(e.slice(t,r))}}function C(e,t,r){r=Math.min(e.length,r);var n=[];var a=t;while(a<r){var i=e[a];var o=null;var s=i>239?4:i>223?3:i>191?2:1;if(a+s<=r){var u,l,c,f;switch(s){case 1:if(i<128){o=i}break;case 2:u=e[a+1];if((u&192)===128){f=(i&31)<<6|u&63;if(f>127){o=f}}break;case 3:u=e[a+1];l=e[a+2];if((u&192)===128&&(l&192)===128){f=(i&15)<<12|(u&63)<<6|l&63;if(f>2047&&(f<55296||f>57343)){o=f}}break;case 4:u=e[a+1];l=e[a+2];c=e[a+3];if((u&192)===128&&(l&192)===128&&(c&192)===128){f=(i&15)<<18|(u&63)<<12|(l&63)<<6|c&63;if(f>65535&&f<1114112){o=f}}}}if(o===null){o=65533;s=1}else if(o>65535){o-=65536;n.push(o>>>10&1023|55296);o=56320|o&1023}n.push(o);a+=s}return N(n)}var j=4096;function N(e){var t=e.length;if(t<=j){return String.fromCharCode.apply(String,e)}var r="";var n=0;while(n<t){r+=String.fromCharCode.apply(String,e.slice(n,n+=j))}return r}function I(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a){n+=String.fromCharCode(e[a]&127)}return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a){n+=String.fromCharCode(e[a])}return n}function R(e,t,r){var n=e.length;if(!t||t<0)t=0;if(!r||r<0||r>n)r=n;var a="";for(var i=t;i<r;++i){a+=Q(e[i])}return a}function F(e,t,r){var n=e.slice(t,r);var a="";for(var i=0;i<n.length;i+=2){a+=String.fromCharCode(n[i]+n[i+1]*256)}return a}l.prototype.slice=function e(t,r){var n=this.length;t=~~t;r=r===undefined?n:~~r;if(t<0){t+=n;if(t<0)t=0}else if(t>n){t=n}if(r<0){r+=n;if(r<0)r=0}else if(r>n){r=n}if(r<t)r=t;var a;if(l.TYPED_ARRAY_SUPPORT){a=this.subarray(t,r);a.__proto__=l.prototype}else{var i=r-t;a=new l(i,undefined);for(var o=0;o<i;++o){a[o]=this[o+t]}}return a};function Y(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=this[t];var i=1;var o=0;while(++o<r&&(i*=256)){a+=this[t+o]*i}return a};l.prototype.readUIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n){Y(t,r,this.length)}var a=this[t+--r];var i=1;while(r>0&&(i*=256)){a+=this[t+--r]*i}return a};l.prototype.readUInt8=function e(t,r){if(!r)Y(t,1,this.length);return this[t]};l.prototype.readUInt16LE=function e(t,r){if(!r)Y(t,2,this.length);return this[t]|this[t+1]<<8};l.prototype.readUInt16BE=function e(t,r){if(!r)Y(t,2,this.length);return this[t]<<8|this[t+1]};l.prototype.readUInt32LE=function e(t,r){if(!r)Y(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};l.prototype.readUInt32BE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};l.prototype.readIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=this[t];var i=1;var o=0;while(++o<r&&(i*=256)){a+=this[t+o]*i}i*=128;if(a>=i)a-=Math.pow(2,8*r);return a};l.prototype.readIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=r;var i=1;var o=this[t+--a];while(a>0&&(i*=256)){o+=this[t+--a]*i}i*=128;if(o>=i)o-=Math.pow(2,8*r);return o};l.prototype.readInt8=function e(t,r){if(!r)Y(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};l.prototype.readInt16LE=function e(t,r){if(!r)Y(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function e(t,r){if(!r)Y(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};l.prototype.readInt32BE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};l.prototype.readFloatLE=function e(t,r){if(!r)Y(t,4,this.length);return a.read(this,t,true,23,4)};l.prototype.readFloatBE=function e(t,r){if(!r)Y(t,4,this.length);return a.read(this,t,false,23,4)};l.prototype.readDoubleLE=function e(t,r){if(!r)Y(t,8,this.length);return a.read(this,t,true,52,8)};l.prototype.readDoubleBE=function e(t,r){if(!r)Y(t,8,this.length);return a.read(this,t,false,52,8)};function B(e,t,r,n,a,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function e(t,r,n,a){t=+t;r=r|0;n=n|0;if(!a){var i=Math.pow(2,8*n)-1;B(this,t,r,n,i,0)}var o=1;var s=0;this[r]=t&255;while(++s<n&&(o*=256)){this[r+s]=t/o&255}return r+n};l.prototype.writeUIntBE=function e(t,r,n,a){t=+t;r=r|0;n=n|0;if(!a){var i=Math.pow(2,8*n)-1;B(this,t,r,n,i,0)}var o=n-1;var s=1;this[r+o]=t&255;while(--o>=0&&(s*=256)){this[r+o]=t/s&255}return r+n};l.prototype.writeUInt8=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,1,255,0);if(!l.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[r]=t&255;return r+1};function H(e,t,r,n){if(t<0)t=65535+t+1;for(var a=0,i=Math.min(e.length-r,2);a<i;++a){e[r+a]=(t&255<<8*(n?a:1-a))>>>(n?a:1-a)*8}}l.prototype.writeUInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,65535,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{H(this,t,r,true)}return r+2};l.prototype.writeUInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,65535,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{H(this,t,r,false)}return r+2};function U(e,t,r,n){if(t<0)t=4294967295+t+1;for(var a=0,i=Math.min(e.length-r,4);a<i;++a){e[r+a]=t>>>(n?a:3-a)*8&255}}l.prototype.writeUInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,4294967295,0);if(l.TYPED_ARRAY_SUPPORT){this[r+3]=t>>>24;this[r+2]=t>>>16;this[r+1]=t>>>8;this[r]=t&255}else{U(this,t,r,true)}return r+4};l.prototype.writeUInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,4294967295,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{U(this,t,r,false)}return r+4};l.prototype.writeIntLE=function e(t,r,n,a){t=+t;r=r|0;if(!a){var i=Math.pow(2,8*n-1);B(this,t,r,n,i-1,-i)}var o=0;var s=1;var u=0;this[r]=t&255;while(++o<n&&(s*=256)){if(t<0&&u===0&&this[r+o-1]!==0){u=1}this[r+o]=(t/s>>0)-u&255}return r+n};l.prototype.writeIntBE=function e(t,r,n,a){t=+t;r=r|0;if(!a){var i=Math.pow(2,8*n-1);B(this,t,r,n,i-1,-i)}var o=n-1;var s=1;var u=0;this[r+o]=t&255;while(--o>=0&&(s*=256)){if(t<0&&u===0&&this[r+o+1]!==0){u=1}this[r+o]=(t/s>>0)-u&255}return r+n};l.prototype.writeInt8=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,1,127,-128);if(!l.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[r]=t&255;return r+1};l.prototype.writeInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,32767,-32768);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{H(this,t,r,true)}return r+2};l.prototype.writeInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,32767,-32768);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{H(this,t,r,false)}return r+2};l.prototype.writeInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,2147483647,-2147483648);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8;this[r+2]=t>>>16;this[r+3]=t>>>24}else{U(this,t,r,true)}return r+4};l.prototype.writeInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{U(this,t,r,false)}return r+4};function z(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,n,i){if(!i){z(e,t,r,4,34028234663852886e22,-34028234663852886e22)}a.write(e,t,r,n,23,4);return r+4}l.prototype.writeFloatLE=function e(t,r,n){return q(this,t,r,true,n)};l.prototype.writeFloatBE=function e(t,r,n){return q(this,t,r,false,n)};function V(e,t,r,n,i){if(!i){z(e,t,r,8,17976931348623157e292,-17976931348623157e292)}a.write(e,t,r,n,52,8);return r+8}l.prototype.writeDoubleLE=function e(t,r,n){return V(this,t,r,true,n)};l.prototype.writeDoubleBE=function e(t,r,n){return V(this,t,r,false,n)};l.prototype.copy=function e(t,r,n,a){if(!n)n=0;if(!a&&a!==0)a=this.length;if(r>=t.length)r=t.length;if(!r)r=0;if(a>0&&a<n)a=n;if(a===n)return 0;if(t.length===0||this.length===0)return 0;if(r<0){throw new RangeError("targetStart out of bounds")}if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");if(a>this.length)a=this.length;if(t.length-r<a-n){a=t.length-r+n}var i=a-n;var o;if(this===t&&n<r&&r<a){for(o=i-1;o>=0;--o){t[o+r]=this[o+n]}}else if(i<1e3||!l.TYPED_ARRAY_SUPPORT){for(o=0;o<i;++o){t[o+r]=this[o+n]}}else{Uint8Array.prototype.set.call(t,this.subarray(n,n+i),r)}return i};l.prototype.fill=function e(t,r,n,a){if(typeof t==="string"){if(typeof r==="string"){a=r;r=0;n=this.length}else if(typeof n==="string"){a=n;n=this.length}if(t.length===1){var i=t.charCodeAt(0);if(i<256){t=i}}if(a!==undefined&&typeof a!=="string"){throw new TypeError("encoding must be a string")}if(typeof a==="string"&&!l.isEncoding(a)){throw new TypeError("Unknown encoding: "+a)}}else if(typeof t==="number"){t=t&255}if(r<0||this.length<r||this.length<n){throw new RangeError("Out of range index")}if(n<=r){return this}r=r>>>0;n=n===undefined?this.length:n>>>0;if(!t)t=0;var o;if(typeof t==="number"){for(o=r;o<n;++o){this[o]=t}}else{var s=l.isBuffer(t)?t:J(new l(t,a).toString());var u=s.length;for(o=0;o<n-r;++o){this[o+r]=s[o%u]}}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(e){e=G(e).replace(W,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function G(e){if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}function Q(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function J(e,t){t=t||Infinity;var r;var n=e.length;var a=null;var i=[];for(var o=0;o<n;++o){r=e.charCodeAt(o);if(r>55295&&r<57344){if(!a){if(r>56319){if((t-=3)>-1)i.push(239,191,189);continue}else if(o+1===n){if((t-=3)>-1)i.push(239,191,189);continue}a=r;continue}if(r<56320){if((t-=3)>-1)i.push(239,191,189);a=r;continue}r=(a-55296<<10|r-56320)+65536}else if(a){if((t-=3)>-1)i.push(239,191,189)}a=null;if(r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{throw new Error("Invalid code point")}}return i}function Z(e){var t=[];for(var r=0;r<e.length;++r){t.push(e.charCodeAt(r)&255)}return t}function X(e,t){var r,n,a;var i=[];for(var o=0;o<e.length;++o){if((t-=2)<0)break;r=e.charCodeAt(o);n=r>>8;a=r%256;i.push(a);i.push(n)}return i}function $(e){return n.toByteArray(K(e))}function ee(e,t,r,n){for(var a=0;a<n;++a){if(a+r>=t.length||a>=e.length)break;t[a+r]=e[a]}return a}function te(e){return e!==e}}).call(this,r(25))},function(e,t,r){t=e.exports=r(386);t.Stream=t;t.Readable=t;t.Writable=r(257);t.Duplex=r(100);t.Transform=r(391);t.PassThrough=r(763)},function(e,t,r){"use strict";(function(t,n,a){var i=r(175);e.exports=_;function o(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function s(e){var t=this;this.next=null;this.entry=null;this.finish=function(){F(t,e)}}var u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:i.nextTick;var l;_.WritableState=b;var c=Object.create(r(152));c.inherits=r(125);var f={deprecate:r(762)};var d=r(387);var p=r(176).Buffer;var h=a.Uint8Array||function(){};function v(e){return p.from(e)}function m(e){return p.isBuffer(e)||e instanceof h}var y=r(388);c.inherits(_,d);function g(){}function b(e,t){l=l||r(100);e=e||{};var n=t instanceof l;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;var a=e.highWaterMark;var i=e.writableHighWaterMark;var o=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){D(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new s(this)}b.prototype.getBuffer=function e(){var t=this.bufferedRequest;var r=[];while(t){r.push(t);t=t.next}return r};(function(){try{Object.defineProperty(b.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var A;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){A=Function.prototype[Symbol.hasInstance];Object.defineProperty(_,Symbol.hasInstance,{value:function(e){if(A.call(this,e))return true;if(this!==_)return false;return e&&e._writableState instanceof b}})}else{A=function(e){return e instanceof this}}function _(e){l=l||r(100);if(!A.call(_,this)&&!(this instanceof l)){return new _(e)}this._writableState=new b(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}d.call(this)}_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function w(e,t){var r=new Error("write after end");e.emit("error",r);i.nextTick(t,r)}function E(e,t,r,n){var a=true;var o=false;if(r===null){o=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){o=new TypeError("Invalid non-string/buffer chunk")}if(o){e.emit("error",o);i.nextTick(n,o);a=false}return a}_.prototype.write=function(e,t,r){var n=this._writableState;var a=false;var i=!n.objectMode&&m(e);if(i&&!p.isBuffer(e)){e=v(e)}if(typeof t==="function"){r=t;t=null}if(i)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=g;if(n.ended)w(this,r);else if(i||E(this,n,e,r)){n.pendingcb++;a=k(this,n,i,e,t,r)}return a};_.prototype.cork=function(){var e=this._writableState;e.corked++};_.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)C(this,e)}};_.prototype.setDefaultEncoding=function e(t){if(typeof t==="string")t=t.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);this._writableState.defaultEncoding=t;return this};function x(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=p.from(t,r)}return t}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function k(e,t,r,n,a,i){if(!r){var o=x(t,n,a);if(n!==o){r=true;a="buffer";n=o}}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(!u)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:i,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{S(e,t,false,s,n,a,i)}return u}function S(e,t,r,n,a,i,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(r)e._writev(a,t.onwrite);else e._write(a,i,t.onwrite);t.sync=false}function O(e,t,r,n,a){--t.pendingcb;if(r){i.nextTick(a,n);i.nextTick(P,e,t);e._writableState.errorEmitted=true;e.emit("error",n)}else{a(n);e._writableState.errorEmitted=true;e.emit("error",n);P(e,t)}}function M(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function D(e,t){var r=e._writableState;var n=r.sync;var a=r.writecb;M(r);if(t)O(e,r,n,t,a);else{var i=j(r);if(!i&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){C(e,r)}if(n){u(T,e,r,i,a)}else{T(e,r,i,a)}}}function T(e,t,r,n){if(!r)L(e,t);t.pendingcb--;n();P(e,t)}function L(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function C(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount;var a=new Array(n);var i=t.corkedRequestsFree;i.entry=r;var o=0;var u=true;while(r){a[o]=r;if(!r.isBuf)u=false;r=r.next;o+=1}a.allBuffers=u;S(e,t,true,t.length,a,"",i.finish);t.pendingcb++;t.lastBufferedRequest=null;if(i.next){t.corkedRequestsFree=i.next;i.next=null}else{t.corkedRequestsFree=new s(t)}t.bufferedRequestCount=0}else{while(r){var l=r.chunk;var c=r.encoding;var f=r.callback;var d=t.objectMode?1:l.length;S(e,t,false,d,l,c,f);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}_.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};_.prototype._writev=null;_.prototype.end=function(e,t,r){var n=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(n.corked){n.corked=1;this.uncork()}if(!n.ending&&!n.finished)R(this,n,r)};function j(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function N(e,t){e._final((function(r){t.pendingcb--;if(r){e.emit("error",r)}t.prefinished=true;e.emit("prefinish");P(e,t)}))}function I(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;i.nextTick(N,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function P(e,t){var r=j(t);if(r){I(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return r}function R(e,t,r){t.ending=true;P(e,t);if(r){if(t.finished)i.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function F(e,t,r){var n=e.entry;e.entry=null;while(n){var a=n.callback;t.pendingcb--;a(r);n=n.next}if(t.corkedRequestsFree){t.corkedRequestsFree.next=e}else{t.corkedRequestsFree=e}}Object.defineProperty(_.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});_.prototype.destroy=y.destroy;_.prototype._undestroy=y.undestroy;_.prototype._destroy=function(e,t){this.end();t(e)}}).call(this,r(126),r(389).setImmediate,r(25))},function(e,t,r){"use strict";var n=r(176).Buffer;var a=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function i(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function o(e){var t=i(e);if(typeof t!=="string"&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}t.StringDecoder=s;function s(e){this.encoding=o(e);var t;switch(this.encoding){case"utf16le":this.text=h;this.end=v;t=4;break;case"utf8":this.fillLast=f;t=4;break;case"base64":this.text=m;this.end=y;t=3;break;default:this.write=g;this.end=b;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(t)}s.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};s.prototype.end=p;s.prototype.text=d;s.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function u(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function l(e,t,r){var n=t.length-1;if(n<r)return 0;var a=u(t[n]);if(a>=0){if(a>0)e.lastNeed=a-1;return a}if(--n<r||a===-2)return 0;a=u(t[n]);if(a>=0){if(a>0)e.lastNeed=a-2;return a}if(--n<r||a===-2)return 0;a=u(t[n]);if(a>=0){if(a>0){if(a===2)a=0;else e.lastNeed=a-3}return a}return 0}function c(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function f(e){var t=this.lastTotal-this.lastNeed;var r=c(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function d(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}function p(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function h(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function v(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function g(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};var a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});var i=r(779);var o=r(177);var s=r(8);var u="eq";var l=0;var c=function(){var e=l.toString();l+=1;return e};t.buildAdvSearchQuery=function(e){var t=e.advanced,r=t.include,a=t.exclude;var i=r.query;var o=a.query;if(o){var s={not:[n({},o)]};if(!i){return s}return{and:[n({},i),s]}}if(i){return i}return null};t.buildAdvSearchQueryString=function(e,r,n){if(r===void 0){r=0}if(n===void 0){n=true}var a=t.buildAdvSearchQuery(e);if(!a){return""}var i=JSON.stringify({query:a},(function(e,t){if(e==="id"){return undefined}if(e==="op"&&t===u){return undefined}return t}),r);return n?encodeURIComponent(i):i};t.getCustomListEditorFormData=function(e){var r=new window.FormData;var n=e.id,a=e.properties,i=e.entries,o=e.searchParams;if(n){r.append("id",n)}var s=a.current,u=s.name,l=s.collections,c=s.autoUpdate;r.append("name",u);r.append("collections",JSON.stringify(l));if(c){r.append("auto_update","true");r.append("auto_update_query",t.buildAdvSearchQueryString(o.current,0,false))}else{var f=i.baseline,d=i.current,p=i.removed;r.append("entries",JSON.stringify(d));var h=f.reduce((function(e,t){e[t.id]=t;return e}),{});var v=Object.keys(p).map((function(e){return h[e]}));r.append("deletedEntries",JSON.stringify(v))}return r};t.buildSearchUrl=function(e,r){var n=e.entryPoint,a=e.terms,i=e.sort;var o=[];if(n!=="All"){o.push("entrypoint="+encodeURIComponent(n))}if(i){o.push("order="+encodeURIComponent(i))}var s=t.buildAdvSearchQueryString(e);if(s){o.push("search_type=json");o.push("q="+s)}else{o.push("q="+encodeURIComponent(a))}return"/"+r+"/search?"+o.join("&")};t.getCustomListEditorSearchUrl=function(e,r){var n=e.searchParams;var a=n.current;var i=a.terms,o=a.advanced;if(i||o.include.query||o.exclude.query){return t.buildSearchUrl(a,r)}return null};var f=function(e){if(!e.id){e.id=c()}var t=e.and||e.or||e.not;if(t){t.forEach((function(e){return f(e)}))}};var d=function(e){var t=e.and||e.or||e.not;if(t){t.forEach((function(e){return d(e)}))}else{if(!e.op){e.op=u}}};t.parseAdvancedSearchQuery=function(e){var t;if(!e){return[null,null]}var r=(t=JSON.parse(e))===null||t===void 0?void 0:t.query;if(!r){return[null,null]}f(r);d(r);var n=r.and;if(n&&n.length===2){var a=n.find((function(e){return!e.not}));var i=n.find((function(e){return Array.isArray(e.not)}));if(a&&i){return[a,i.not[0]]}}var o=r.not;if(o){return[null,o[0]]}return[r,null]};var p={name:"",collections:[],autoUpdate:true};var h={entryPoint:"All",terms:"",sort:null,language:"all",advanced:{include:{query:null,selectedQueryId:null},exclude:{query:null,selectedQueryId:null}}};t.initialState={id:null,isLoaded:false,properties:{baseline:p,current:p},searchParams:{baseline:h,current:h},entries:{baseline:[],baselineTotalCount:0,added:{},removed:{},current:[],currentTotalCount:0},isValid:false,isModified:false,error:null};var v=function(e){var t=e.properties,r=e.entries,n=e.searchParams;var a=t.current,i=a.name,o=a.collections,s=a.autoUpdate;var u=r.currentTotalCount;var l=n.current.advanced,c=l.include,f=l.exclude;return!!i&&(o.length>0||s&&(!!c.query||!!f.query)||!s&&u>0)};var m=function(e){var r=e.searchParams,n=r.baseline,a=r.current;var i=t.buildSearchUrl(n,"");var o=t.buildSearchUrl(a,"");return i!==o};var y=function(e){var t=e.properties,r=e.entries;var n=r.added,a=r.removed;var i=t.baseline,o=t.current;return Object.keys(n).length>0||Object.keys(a).length>0||i.name!==o.name||i.autoUpdate!==o.autoUpdate||o.autoUpdate&&m(e)||i.collections.length!==o.collections.length||!i.collections.every((function(e){return o.collections.includes(e)}))};var g=function(e){return i.default(e,(function(e){e.isValid=v(e);e.isModified=y(e)}))};var b=function(e){return function(t,r){return g(e(t,r))}};var A=function(e,r,n,a){var o=null;var s=null;if(r&&e!==null){o=r.custom_lists.find((function(t){return t.id===e}));if(!o){s="Custom list not found for ID: "+e}}return i.default(t.initialState,(function(r){r.id=e;if(o){r.isLoaded=true;var i={name:o.name||"",collections:o.collections.map((function(e){return e.id})),autoUpdate:!!o.auto_update};r.properties.baseline=i;r.properties.current=i;r.entries.baselineTotalCount=o.entry_count;var u=t.parseAdvancedSearchQuery(o.auto_update_query),l=u[0],c=u[1];r.searchParams.baseline.advanced.include.query=l;r.searchParams.baseline.advanced.exclude.query=c;r.searchParams.current.advanced.include.query=l;r.searchParams.current.advanced.exclude.query=c}if(n){r.searchParams=a.searchParams}r.error=s}))};var _=function(e){var t=e.baseline,r=e.baselineTotalCount,n=e.added,a=e.removed;var i=Object.values(n);i.reverse();e.current=i.concat(t.filter((function(e){return!a[e.id]})));var o=i.length;var s=Object.keys(a).length;var u=e.current.length;e.currentTotalCount=Math.max(r+o-s,u)};var w=function(e,t){var r=t.id,n=t.data;return A(r?parseInt(r,10):null,n,false,e)};var E=function(e,t){var r=e.id;var n=t.data;return A(r,n,r===null,e)};var x=b((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=t.data.books;_(r)}))}));var k=b((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=r.baseline.concat(t.data.books);_(r)}))}));var S=b((function(e,t){var r=t.name,n=t.value;return i.default(e,(function(e){e.properties.current[r]=n}))}));var O=b((function(e,t){var r=t.id;return i.default(e,(function(e){var t=e.properties.current.collections;var n=t.indexOf(r);if(n<0){t.push(r)}else{t.splice(n,1)}}))}));var M=b((function(e,t){var r=t.name,n=t.value;return i.default(e,(function(e){e.searchParams.current[r]=n}))}));var D=function(e,t,r,i){var o,s,u;if(e.and||e.or){var l=e.and?"and":"or";var f=e[l];if(e.id===t){return o={id:e.id},o[l]=a(f,[r]),o}var d=l==="and"?"or":"and";for(var p=0;p<f.length;p++){var h=f[p];var v=D(h,t,r,d);if(v!==h){var m=a(f);m[p]=v;return s={id:e.id},s[l]=m,s}}return e}if(e.id===t){return u={id:e.id},u[i]=[n(n({},e),{id:c()}),r],u}return e};var T=function(e,t){var r,i;if(e.id===t){return null}if(e.and||e.or){var o=e.and?"and":"or";var s=e[o];var u=s.filter((function(e){return e.id!==t}));if(u.length!==s.length){if(u.length===1){return n({},u[0])}return r={id:e.id},r[o]=u,r}for(var l=0;l<s.length;l++){var c=s[l];var f=T(c,t);if(f!==c){var d=a(s);d[l]=f;return i={id:e.id},i[o]=d,i}}}return e};var L=function(e,t){if(e.id===t){return[e.id]}if(e.and||e.or){var r=e.and?"and":"or";var n=e[r];for(var i=0;i<n.length;i++){var o=n[i];var s=L(o,t);if(s){return a([e.id],s)}}}return null};var C=function(e,t){if(e.id===t){return e}if(e.and||e.or){var r=e.and?"and":"or";var n=e[r];var a=n.find((function(e){return e.id===t}));if(a){return a}for(var i=0;i<n.length;i++){var o=n[i];var s=C(o,t);if(s){return s}}}return null};var j=function(e){return e==="include"?"and":"or"};var N=b((function(e,t){return i.default(e,(function(e){var r=t.builderName,a=t.query;var i=e.searchParams.current.advanced[r];var o=i.query,s=i.selectedQueryId;var u=n(n({},a),{id:c()});if(!o){i.query=u;i.selectedQueryId=u.id}else{i.query=D(o,s||o.id,u,j(r))}}))}));var I=b((function(e,t){return i.default(e,(function(e){var r=t.builderName,n=t.id,a=t.bool;var i=e.searchParams.current.advanced[r];var o=i.query;var s=C(o,n);if(s&&(s.and||s.or)&&!s[a]){var u=a==="and"?"or":"and";var l=s[u];delete s[u];s[a]=l}}))}));var P=b((function(e,t){return i.default(e,(function(e){var r=t.builderName,a=t.id,i=t.targetId;var o=e.searchParams.current.advanced[r];var s=o.query;var u=C(s,a);var l=n(n({},u),{id:c()});var f=D(s,i,l,j(r));var d=T(f,a);o.query=d;o.selectedQueryId=i}))}));var R=b((function(e,t){return i.default(e,(function(e){var r=t.builderName,n=t.id;var a=e.searchParams.current.advanced[r];var i=a.query;var o=T(i,n);if(o!==i){a.query=o;var s=L(i,n);s.pop();s.reverse();var u=s.find((function(e){return C(o,e)}));a.selectedQueryId=u}}))}));var F=function(e,t){return i.default(e,(function(e){var r=t.builderName,n=t.id;var a=e.searchParams.current.advanced[r];a.selectedQueryId=n}))};var Y=function(e){return{id:e.id,title:e.title,authors:e.authors,url:e.url,medium:o.getMedium(e),language:e.language||""}};var B=b((function(e,t){var r=t.id,n=t.data;return i.default(e,(function(e){var t=e.entries;var a=t.baseline,i=t.added,o=t.removed;var s=a.find((function(e){return e.id===r}));if(!s){var u=n.books.find((function(e){return e.id===r}));var l=!!i[r];if(u&&!l){i[r]=Y(u)}}delete o[r];_(t)}))}));var H=b((function(e,t){var r=t.data.books;r.reverse();return i.default(e,(function(e){var t=e.entries;var n=t.baseline,a=t.added,i=t.removed;var o=n.reduce((function(e,t){e[t.id]=true;return e}),{});r.filter((function(e){return!o[e.id]&&!a[e.id]})).map((function(e){return Y(e)})).forEach((function(e){return a[e.id]=e}));r.forEach((function(e){return delete i[e.id]}));_(t)}))}));var U=b((function(e,t){var r=t.id;return i.default(e,(function(e){var t=e.entries;var n=t.added,a=t.removed;if(n[r]){delete n[r]}else{a[r]=true}_(t)}))}));var z=b((function(e){return i.default(e,(function(e){var t=e.entries;var r=t.baseline,n=t.removed;r.forEach((function(e){n[e.id]=true}));t.added={};_(t)}))}));var q=b((function(e){return i.default(e,(function(e){var t=e.properties,r=e.searchParams,n=e.entries;t.current=t.baseline;r.current=r.baseline;n.added={};n.removed={};_(n)}))}));t.default=function(e,r){if(e===void 0){e=t.initialState}switch(r.type){case s.default.OPEN_CUSTOM_LIST_EDITOR:return w(e,r);case s.default.CUSTOM_LISTS+"_"+s.default.LOAD:return E(e,r);case s.default.CUSTOM_LIST_DETAILS+"_"+s.default.LOAD:return x(e,r);case s.default.CUSTOM_LIST_DETAILS_MORE+"_"+s.default.LOAD:return k(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_PROPERTY:return S(e,r);case s.default.TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION:return O(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM:return M(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return N(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN:return I(e,r);case s.default.MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return P(e,r);case s.default.REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return R(e,r);case s.default.SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return F(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ENTRY:return B(e,r);case s.default.ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return H(e,r);case s.default.DELETE_CUSTOM_LIST_EDITOR_ENTRY:return U(e,r);case s.default.DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return z(e,r);case s.default.RESET_CUSTOM_LIST_EDITOR:return q(e,r);default:return e}}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:true});var a=r(8);var i=function(e,t){var r=JSON.parse(JSON.stringify(e.data));var n=Object.keys(r)[0];if(!r[n].length){return{}}r[n].forEach((function(e){if(e.id===t.data.self_test_results.id){e.self_test_results=t.data.self_test_results.self_test_results}}));return Object.assign({},e,{data:r,isFetching:false,isLoaded:true})};t.extraActions=(n={},n[a.default.GET_SELF_TESTS+"_"+a.default.LOAD]=i,n)},function(e,t,r){"use strict";r.r(t);function n(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(a){if(typeof a==="function"){return a(r,n,e)}return t(a)}}}}var a=n();a.withExtraArgument=n;t["default"]=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(65);var o=r(533);var s=r(835);var u=r(836);var l=r(177);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.borrow=r.borrow.bind(r);return r}t.prototype.render=function(){var e;var t=this.props.book;var r=t&&t.summary&&t.summary.replace(/<\/?[^>]+(>|$)/g," ")||"";var n=l.getMedium(t);var s=n?"show-media":"";var u=!!(t.authors&&t.authors.length);var c=!!(t.contributors&&t.contributors.length);var f=t.contributors&&t.contributors.length?t.contributors.join(", "):"";var d=u?(e=t.authors)===null||e===void 0?void 0:e.join(", "):f;return a.createElement("div",{className:"book "+s,lang:t.language},a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},a.createElement(o.default,{book:t}),a.createElement("div",{className:"compact-info "+s},l.getMediumSVG(n,false),a.createElement("div",{className:"empty"}),a.createElement("div",{className:"item-details"},a.createElement("div",{className:"title"},t.title),t.series&&t.series.name&&a.createElement("div",{className:"series"},t.series.name),(u||c)&&a.createElement("div",{className:"authors"},a.createElement("span",null,"By ",d))))),a.createElement("div",{className:"expanded-info"},a.createElement("div",{className:"header"},a.createElement("div",null,a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},a.createElement("div",{className:"title"},t.title)),t.series&&t.series.name&&a.createElement("div",{className:"series"},t.series.name),(u||c)&&a.createElement("div",{className:"authors"},a.createElement("span",null,"By ",d))),a.createElement("div",{className:"circulation-links"},this.circulationLinks())),a.createElement("div",{className:"details"},a.createElement("div",{className:"fields",lang:"en"},n&&a.createElement("span",null,l.getMediumSVG(n)),this.fields().map((function(e,t){return e.value?a.createElement("div",{className:e.name.toLowerCase().replace(" ","-"),key:e.name+"-"+t},e.name,": ",e.value):null}))),a.createElement("div",{className:"summary",lang:t.language},a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}),a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},"… More")))))};t.prototype.fields=function(){return this.props.book?[{name:"Publisher",value:this.props.book.publisher},{name:"Published",value:this.props.book.published},{name:"Categories",value:this.props.book.categories?this.props.book.categories.join(", "):null}]:[]};t.prototype.circulationLinks=function(){var e=this;var t,r,n;var i=[];if(l.bookIsOpenAccess(this.props.book)){if(this.props.epubReaderUrlTemplate){var o=0;for(var c=0,f=(t=this.props.book.openAccessLinks)!==null&&t!==void 0?t:[];c<f.length;c++){var d=f[c];if(d.type==="application/epub+zip"){i.push(a.createElement("span",{key:d.url+"-"+o},a.createElement("a",{className:"btn btn-default read-button",href:this.props.epubReaderUrlTemplate(d.url),target:"_blank"},"Read Online")));o++}}}(r=this.props.book.openAccessLinks)===null||r===void 0?void 0:r.forEach((function(t,r){i.push(a.createElement(u.default,{key:t.url+"-"+r,isPlainLink:true,link:t,title:e.props.book.title}))}))}else if(l.bookIsBorrowed(this.props.book)){var p="text/html;profile=http://librarysimplified.org/terms/profiles/streaming-media";var h=[];var v=[];for(var m=0,y=(n=this.props.book.fulfillmentLinks)!==null&&n!==void 0?n:[];m<y.length;m++){var d=y[m];if(d.type===p||d.indirectType===p){h.push(d)}else{v.push(d)}}h.forEach((function(t,r){var n=t.type===p;i.push(a.createElement(u.default,{key:t.url+"-"+r,link:t,title:e.props.book.title,isPlainLink:n||!e.props.isSignedIn}))}));i.push(a.createElement(s.default,{key:this.props.book.borrowUrl,className:"btn btn-default borrowed-button",disabled:true,borrow:this.borrow},"Borrowed"));v.forEach((function(t,r){i.push(a.createElement(u.default,{key:t.url+"-"+r,link:t,title:e.props.book.title,isPlainLink:!e.props.isSignedIn}))}))}if(l.bookIsReserved(this.props.book)){i.push(a.createElement("button",{key:"onhold",className:"btn btn-default disabled"},"Reserved"))}else if(!l.bookIsBorrowed(this.props.book)&&this.props.book.borrowUrl){var g=!l.bookIsReady(this.props.book)&&this.props.book.copies&&this.props.book.copies.available===0?"Reserve":"Borrow";i.push(a.createElement(s.default,{key:this.props.book.borrowUrl,borrow:this.borrow},g))}return i};t.prototype.borrow=function(){return this.props.updateBook(this.props.book.borrowUrl)};return t}(a.Component);t.default=c},function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){a(e,t,r[t])}))}return e}function a(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function i(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var o=r(153);var s=r(50);var u=r(101);var l=r(51);var c=r(181);var f=r(182);var d=r(66);var p=r(544);var h=r(82);var v=r(11);var m=r(546);var y=v.List,g=v.Record,b=v.Repeat,A=v.Map,_=v.OrderedMap;var w={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null};var E=g(w);var x=h("draft_tree_data_support")?l:u;var k=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getEntityMap=function e(){return c};r.getBlockMap=function e(){return this.get("blockMap")};r.getSelectionBefore=function e(){return this.get("selectionBefore")};r.getSelectionAfter=function e(){return this.get("selectionAfter")};r.getBlockForKey=function e(t){var r=this.getBlockMap().get(t);return r};r.getKeyBefore=function e(t){return this.getBlockMap().reverse().keySeq().skipUntil((function(e){return e===t})).skip(1).first()};r.getKeyAfter=function e(t){return this.getBlockMap().keySeq().skipUntil((function(e){return e===t})).skip(1).first()};r.getBlockAfter=function e(t){return this.getBlockMap().skipUntil((function(e,r){return r===t})).skip(1).first()};r.getBlockBefore=function e(t){return this.getBlockMap().reverse().skipUntil((function(e,r){return r===t})).skip(1).first()};r.getBlocksAsArray=function e(){return this.getBlockMap().toArray()};r.getFirstBlock=function e(){return this.getBlockMap().first()};r.getLastBlock=function e(){return this.getBlockMap().last()};r.getPlainText=function e(t){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(t||"\n")};r.getLastCreatedEntityKey=function e(){return c.__getLastCreatedEntityKey()};r.hasText=function e(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0};r.createEntity=function e(t,r,n){c.__create(t,r,n);return this};r.mergeEntityData=function e(t,r){c.__mergeData(t,r);return this};r.replaceEntityData=function e(t,r){c.__replaceData(t,r);return this};r.addEntity=function e(t){c.__add(t);return this};r.getEntity=function e(t){return c.__get(t)};r.getAllEntities=function e(){return c.__getAll()};r.loadWithEntities=function e(t){return c.__loadWithEntities(t)};t.createFromBlockArray=function e(r,n){var a=Array.isArray(r)?r:r.contentBlocks;var i=o.createFromArray(a);var s=i.isEmpty()?new f:f.createEmpty(i.first().getKey());return new t({blockMap:i,entityMap:n||c,selectionBefore:s,selectionAfter:s})};t.createFromText=function e(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:/\r\n?|\n/g;var a=r.split(n);var i=a.map((function(e){e=m(e);return new x({key:d(),text:e,type:"unstyled",characterList:y(b(s.EMPTY,e.length))})}));return t.createFromBlockArray(i)};t.fromJS=function e(r){return new t(n({},r,{blockMap:_(r.blockMap).map(t.createContentBlockFromJS),selectionBefore:new f(r.selectionBefore),selectionAfter:new f(r.selectionAfter)}))};t.createContentBlockFromJS=function e(t){var r=t.characterList;return new x(n({},t,{data:A(t.data),characterList:r!=null?y((Array.isArray(r)?r:p(r)).map((function(e){return s.fromJS(e)}))):undefined}))};return t}(E);e.exports=k},function(e,t,r){"use strict";var n=r(183);var a=r(16);var i={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻ"+"Ƽ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸ"+"ʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷ"+"ͺͻ-ͽͿΆΈ-ΊΌΎ-Ρ"+"Σ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ"+"՚-՟ա-և։ःऄ-हऻऽ"+"ा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥"+"०-९॰ॱॲ-ঀং-ঃঅ-ঌ"+"এ-ঐও-নপ-রলশ-হঽ"+"া-ীে-ৈো-ৌৎৗড়-ঢ়"+"য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃ"+"ਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼"+"ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯"+"ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-ર"+"લ-ળવ-હઽા-ીૉો-ૌૐ"+"ૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐ"+"ଓ-ନପ-ରଲ-ଳଵ-ହଽାୀ"+"େ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯"+"୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-க"+"ங-சஜஞ-டண-தந-பம-ஹ"+"ா-ிு-ூெ-ைொ-ௌௐௗ"+"௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐ"+"ఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ"+"౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನ"+"ಪ-ಳವ-ಹಽಾಿೀ-ೄೆ"+"ೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯"+"ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽ"+"ാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ"+"൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖ"+"ක-නඳ-රලව-ෆා-ෑෘ-ෟ"+"෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅ"+"ๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈ"+"ຊຍດ-ທນ-ຟມ-ຣລວ"+"ສ-ຫອ-ະາ-ຳຽເ-ໄໆ"+"໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔"+"༕-༗༚-༟༠-༩༪-༳༴༶༸"+"༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ"+"྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘"+"࿙-࿚က-ဪါ-ာေးျ-ြဿ"+"၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡ"+"ၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁ"+"ႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ"+"႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼ"+"ჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈ"+"ኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅ"+"ወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨"+"፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮"+"ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰ"+"ᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶"+"ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅ"+"ះ-ៈ។-៖ៗ៘-៚ៜ០-៩"+"᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪ"+"ᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱ"+"ᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫ"+"ᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖ"+"ᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤ"+"ᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭"+"ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ"+"᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠ"+"ᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧ"+"ᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫ"+"ᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙"+"ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡"+"ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫ"+"ᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕ"+"Ἐ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝ"+"Ὗ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌ"+"ῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎"+"ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝ"+"ℤΩℨK-ℭℯ-ℴℵ-ℸℹ"+"ℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄ"+"ↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿"+"Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤ"+"Ⳬ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ"+"⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾ"+"ⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇"+"〡-〩〮-〯〱-〵〸-〺〻〼"+"ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿ"+"ㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟"+"ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇"+"㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋"+"㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵"+"一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ"+"꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫ"+"Ꙁ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ"+"꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎ"+"Ꞑ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁ"+"ꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵"+"꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ"+"꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉"+"ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼ"+"ꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍"+"ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ"+"꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴ"+"ꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯ"+"ꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱ"+"ꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟"+"ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵ"+"ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮ"+"ꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤ"+"ꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣"+"ힰ-ퟆퟋ-ퟻ-豈-舘並-龎"+"ff-stﬓ-ﬗA-Za-zヲ-ッー"+"ア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬ"+"ᅭ-ᅲᅳ-ᅵ",R:"֐־׀׃׆׈-׏א-ת׫-ׯ"+"װ-ײ׳-״׵-׿߀-߉ߊ-ߪ"+"ߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ"+"࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞"+"࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ"+"﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",AL:"؈؋؍؛؜؝؞-؟ؠ-ؿـ"+"ف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦ"+"ۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏"+"ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿"+"ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒"+"ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ"+"﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵"+"ﹶ-ﻼ﻽-﻾"};var o=new RegExp("["+i.L+i.R+i.AL+"]");var s=new RegExp("["+i.R+i.AL+"]");function u(e){var t=o.exec(e);return t==null?null:t[0]}function l(e){var t=u(e);if(t==null){return n.NEUTRAL}return s.exec(t)?n.RTL:n.LTR}function c(e,t){t=t||n.NEUTRAL;if(!e.length){return t}var r=l(e);return r===n.NEUTRAL?t:r}function f(e,t){if(!t){t=n.getGlobalDir()}!n.isStrong(t)?false?undefined:a(false):void 0;return c(e,t)}function d(e,t){return f(e,t)===n.LTR}function p(e,t){return f(e,t)===n.RTL}var h={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:c,getDirection:f,isDirectionLTR:d,isDirectionRTL:p};e.exports=h},function(e,t,r){"use strict";var n=r(1);var a=r(102);var i=r(11),o=i.Map;var s=n.createElement("ul",{className:a("public/DraftStyleDefault/ul")});var u=n.createElement("ol",{className:a("public/DraftStyleDefault/ol")});var l=n.createElement("pre",{className:a("public/DraftStyleDefault/pre")});var c=o({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:s},"ordered-list-item":{element:"li",wrapper:u},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:l},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=c},function(e,t,r){"use strict";var n=r(556),a=n.notEmptyKey;function i(e,t){var r;if(t.isCollapsed()){var n=t.getAnchorKey();var a=t.getAnchorOffset();if(a>0){r=e.getBlockForKey(n).getEntityAt(a-1);if(r!==e.getBlockForKey(n).getEntityAt(a)){return null}return o(e.getEntityMap(),r)}return null}var i=t.getStartKey();var s=t.getStartOffset();var u=e.getBlockForKey(i);r=s===u.getLength()?null:u.getEntityAt(s);return o(e.getEntityMap(),r)}function o(e,t){if(a(t)){var r=e.__get(t);return r.getMutability()==="MUTABLE"?t:null}return null}e.exports=i},function(e,t,r){"use strict";var n=r(904);function a(e,t){if(!e||!t){return false}else if(e===t){return true}else if(n(e)){return false}else if(n(t)){return a(e,t.parentNode)}else if("contains"in e){return e.contains(t)}else if(e.compareDocumentPosition){return!!(e.compareDocumentPosition(t)&16)}else{return false}}e.exports=a},function(e,t,r){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var a={getTop:function e(t){var r=t.ownerDocument;return n(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function e(t,r){var a=t.ownerDocument;if(n(t,a)){a.body.scrollTop=a.documentElement.scrollTop=r}else{t.scrollTop=r}},getLeft:function e(t){var r=t.ownerDocument;return n(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function e(t,r){var a=t.ownerDocument;if(n(t,a)){a.body.scrollLeft=a.documentElement.scrollLeft=r}else{t.scrollLeft=r}}};e.exports=a},function(e,t,r){"use strict";var n=r(270);function a(e,t){var r=e.getSelection();false?undefined:void 0;var n=e.getCurrentContent();var a=r.getStartKey();var i=r.getStartOffset();var o=a;var s=0;if(t>i){var u=n.getKeyBefore(a);if(u==null){o=a}else{o=u;var l=n.getBlockForKey(u);s=l.getText().length}}else{s=i-t}return r.merge({focusKey:o,focusOffset:s,isBackward:true})}e.exports=a},function(e,t,r){"use strict";var n=r(565);function a(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}var a=0;var i="Warning: "+e.replace(/%s/g,(function(){return r[a++]}));if(typeof console!=="undefined"){console.error(i)}try{throw new Error(i)}catch(e){}}var i=false?undefined:n;e.exports=i},function(e,t,r){"use strict";var n=r(36);var a=r(931);var i=n.isPlatform("Mac OS X");var o={isCtrlKeyCommand:function e(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function e(t){return i&&t.altKey},usesMacOSHeuristics:function e(){return i},hasCommandModifier:function e(t){return i?!!t.metaKey&&!t.altKey:o.isCtrlKeyCommand(t)},isSoftNewlineEvent:a};e.exports=o},function(e,t,r){var n=r(969);e.exports=function(e,t,r){n(e);if(t===undefined)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(131);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;if(typeof(r=e.valueOf)=="function"&&!n(a=r.call(e)))return a;if(!t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){var r=Math.ceil;var n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(277)("keys");var a=r(193);e.exports=function(e){return n[e]||(n[e]=a(e))}},function(e,t,r){var n=r(30);var a=r(74);var i="__core-js_shared__";var o=a[i]||(a[i]={});(e.exports=function(e,t){return o[e]||(o[e]=t!==undefined?t:{})})("versions",[]).push({version:n.version,mode:r(192)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(130);var a=r(974);var i=r(278);var o=r(276)("IE_PROTO");var s=function(){};var u="prototype";var l=function(){var e=r(580)("iframe");var t=i.length;var n="<";var a=">";var o;e.style.display="none";r(975).appendChild(e);e.src="javascript:";o=e.contentWindow.document;o.open();o.write(n+"script"+a+"document.F=Object"+n+"/script"+a);o.close();l=o.F;while(t--)delete l[u][i[t]];return l()};e.exports=Object.create||function e(t,r){var i;if(t!==null){s[u]=n(t);i=new s;s[u]=null;i[o]=t}else i=l();return r===undefined?i:a(i,r)}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var a=n(r(79));var i="transform";t.transform=i;var o,s,u;t.animationEnd=u;t.transitionEnd=s;var l,c,f,d;t.transitionDelay=d;t.transitionTiming=f;t.transitionDuration=c;t.transitionProperty=l;var p,h,v,m;t.animationDelay=m;t.animationTiming=v;t.animationDuration=h;t.animationName=p;if(a.default){var y=b();o=y.prefix;t.transitionEnd=s=y.transitionEnd;t.animationEnd=u=y.animationEnd;t.transform=i=o+"-"+i;t.transitionProperty=l=o+"-transition-property";t.transitionDuration=c=o+"-transition-duration";t.transitionDelay=d=o+"-transition-delay";t.transitionTiming=f=o+"-transition-timing-function";t.animationName=p=o+"-animation-name";t.animationDuration=h=o+"-animation-duration";t.animationTiming=v=o+"-animation-delay";t.animationDelay=m=o+"-animation-timing-function"}var g={transform:i,end:s,property:l,timing:f,delay:d,duration:c};t.default=g;function b(){var e=document.createElement("div").style;var t={O:function e(t){return"o"+t.toLowerCase()},Moz:function e(t){return t.toLowerCase()},Webkit:function e(t){return"webkit"+t},ms:function e(t){return"MS"+t}};var r=Object.keys(t);var n,a;var i="";for(var o=0;o<r.length;o++){var s=r[o];if(s+"TransitionProperty"in e){i="-"+s.toLowerCase();n=t[s]("TransitionEnd");a=t[s]("AnimationEnd");break}}if(!n&&"transitionProperty"in e)n="transitionend";if(!a&&"animationName"in e)a="animationend";e=null;return{animationEnd:a,transitionEnd:n,prefix:i}}},function(e,t,r){var n=r(83).f;var a=r(108);var i=r(67)("toStringTag");e.exports=function(e,t,r){if(e&&!a(e=r?e:e.prototype,i))n(e,i,{configurable:true,value:t})}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=function e(){};if(a.default){i=function(){if(document.addEventListener)return function(e,t,r,n){return e.addEventListener(t,r,n||false)};else if(document.attachEvent)return function(e,t,r){return e.attachEvent("on"+t,(function(t){t=t||window.event;t.target=t.target||t.srcElement;t.currentTarget=e;r.call(e,t)}))}}()}var o=i;t.default=o;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=function e(){};if(a.default){i=function(){if(document.addEventListener)return function(e,t,r,n){return e.removeEventListener(t,r,n||false)};else if(document.attachEvent)return function(e,t,r){return e.detachEvent("on"+t,r)}}()}var o=i;t.default=o;e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);function a(e){return n.createElement("div",{className:"updating-loader-container"},e.show&&n.createElement("div",{className:"updating-loader"},e.text||"Updating",n.createElement("i",{className:"fa fa-spinner fa-spin"})))}t.default=a},function(e,t,r){var n=r(287),a=r(1042);function i(e,t){return e&&n(e,a(t))}e.exports=i},function(e,t,r){var n=r(1034),a=r(136);function i(e,t){return e&&n(e,t,a)}e.exports=i},function(e,t,r){var n=r(1037),a=r(61);var i=Object.prototype;var o=i.hasOwnProperty;var s=i.propertyIsEnumerable;var u=n(function(){return arguments}())?n:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,r){(function(e){var n=r(60),a=r(1038);var i=true&&t&&!t.nodeType&&t;var o=i&&typeof e=="object"&&e&&!e.nodeType&&e;var s=o&&o.exports===i;var u=s?n.Buffer:undefined;var l=u?u.isBuffer:undefined;var c=l||a;e.exports=c}).call(this,r(48)(e))},function(e,t){var r=9007199254740991;var n=/^(?:0|[1-9]\d*)$/;function a(e,t){var a=typeof e;t=t==null?r:t;return!!t&&(a=="number"||a!="symbol"&&n.test(e))&&(e>-1&&e%1==0&&e<t)}e.exports=a},function(e,t){var r=9007199254740991;function n(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=r}e.exports=n},function(e,t,r){(function(e){var n=r(607);var a=true&&t&&!t.nodeType&&t;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o&&n.process;var u=function(){try{var e=i&&i.require&&i.require("util").types;if(e){return e}return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,r(48)(e))},function(e,t){var r=Object.prototype;function n(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||r;return e===n}e.exports=n},function(e,t,r){var n=r(610);var a=n(Object.getPrototypeOf,Object);e.exports=a},function(e,t,r){var n=r(198),a=r(1050),i=r(1051),o=r(1052),s=r(1053),u=r(1054);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=a;l.prototype["delete"]=i;l.prototype.get=o;l.prototype.has=s;l.prototype.set=u;e.exports=l},function(e,t,r){var n=r(112),a=r(60);var i=n(a,"Map");e.exports=i},function(e,t,r){var n=r(1059),a=r(1066),i=r(1068),o=r(1069),s=r(1070);function u(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n;u.prototype["delete"]=a;u.prototype.get=i;u.prototype.has=o;u.prototype.set=s;e.exports=u},function(e,t,r){var n=r(1071),a=r(61);function i(e,t,r,o,s){if(e===t){return true}if(e==null||t==null||!a(e)&&!a(t)){return e!==e&&t!==t}return n(e,t,r,o,i,s)}e.exports=i},function(e,t,r){var n=r(297),a=r(1072),i=r(1073);function o(e){var t=-1,r=e==null?0:e.length;this.__data__=new n;while(++t<r){this.add(e[t])}}o.prototype.add=o.prototype.push=a;o.prototype.has=i;e.exports=o},function(e,t){function r(e,t){return e.has(t)}e.exports=r},function(e,t){function r(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}e.exports=r},function(e,t){function r(e,t){var r=-1,n=t.length,a=e.length;while(++r<n){e[a+r]=t[r]}return e}e.exports=r},function(e,t,r){var n=r(618),a=r(619);var i=Object.prototype;var o=i.propertyIsEnumerable;var s=Object.getOwnPropertySymbols;var u=!s?a:function(e){if(e==null){return[]}e=Object(e);return n(s(e),(function(t){return o.call(e,t)}))};e.exports=u},function(e,t,r){var n=r(12),a=r(138);var i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function s(e,t){if(n(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||a(e)){return true}return o.test(e)||!i.test(e)||t!=null&&e in Object(t)}e.exports=s},function(e,t,r){var n=r(626);function a(e,t,r){if(t=="__proto__"&&n){n(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}e.exports=a},function(e,t,r){var n=r(608),a=r(1099),i=r(110);function o(e){return i(e)?n(e,true):a(e)}e.exports=o},function(e,t,r){var n=r(615);function a(e){var t=new e.constructor(e.byteLength);new n(t).set(new n(e));return t}e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1132);Object.defineProperty(t,"DragDropContext",{enumerable:true,get:function e(){return o(n).default}});var a=r(1175);Object.defineProperty(t,"Droppable",{enumerable:true,get:function e(){return o(a).default}});var i=r(1184);Object.defineProperty(t,"Draggable",{enumerable:true,get:function e(){return o(i).default}});function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";t.__esModule=true;var n=r(1138);var a=u(n);var i=r(1144);var o=u(i);var s=typeof o.default==="function"&&typeof a.default==="symbol"?function(e){return typeof e}:function(e){return e&&typeof o.default==="function"&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function u(e){return e&&e.__esModule?e:{default:e}}t.default=typeof o.default==="function"&&s(a.default)==="symbol"?function(e){return typeof e==="undefined"?"undefined":s(e)}:function(e){return e&&typeof o.default==="function"&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e==="undefined"?"undefined":s(e)}},function(e,t,r){t.f=r(67)},function(e,t,r){var n=r(74);var a=r(30);var i=r(192);var o=r(310);var s=r(83).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=i?{}:n.Symbol||{});if(e.charAt(0)!="_"&&!(e in t))s(t,e,{value:o.f(e)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n={x:0,y:0};var a=t.noMovement={draggables:[],amount:n,isBeyondStartPosition:false};var i={movement:a,direction:null,destination:null};t.default=i},function(e,t,r){"use strict";t.__esModule=true;var n=r(1159);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++){r[t]=e[t]}return r}else{return(0,a.default)(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDroppableDimension=t.getDraggableDimension=t.getFragment=t.noSpacing=undefined;var n=r(1162);var a=r(315);var i=s(a);var o=r(207);function s(e){return e&&e.__esModule?e:{default:e}}var u={x:0,y:0};var l=t.noSpacing={top:0,right:0,bottom:0,left:0};var c=function e(t,r){var n=t.top,a=t.right,o=t.bottom,s=t.left;return(0,i.default)({top:n+r.y,left:s+r.x,bottom:o+r.y,right:a+r.x})};var f=function e(t,r){var n=t.top,a=t.right,o=t.bottom,s=t.left;return(0,i.default)({top:n-r.top,left:s-r.left,bottom:o+r.bottom,right:a+r.right})};var d=t.getFragment=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:u;var n=(0,i.default)({top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x});return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,center:{x:(n.right+n.left)/2,y:(n.bottom+n.top)/2}}};var p=t.getDraggableDimension=function e(t){var r=t.id,n=t.droppableId,a=t.clientRect,i=t.margin,o=i===undefined?l:i,s=t.windowScroll,p=s===undefined?u:s;var h=c(a,p);var v={id:r,droppableId:n,client:{withoutMargin:d(a),withMargin:d(f(a,o))},page:{withoutMargin:d(h),withMargin:d(f(h,o))}};return v};var h=t.getDroppableDimension=function e(t){var r=t.id,a=t.clientRect,i=t.containerRect,s=t.direction,p=s===undefined?"vertical":s,h=t.margin,v=h===undefined?l:h,m=t.padding,y=m===undefined?l:m,g=t.windowScroll,b=g===undefined?u:g,A=t.scroll,_=A===undefined?u:A,w=t.isEnabled,E=w===undefined?true:w;var x=f(a,v);var k=c(a,b);var S=!i||(0,o.isEqual)(i,a)?c(x,b):c(i,b);var O={id:r,isEnabled:E,axis:p==="vertical"?n.vertical:n.horizontal,client:{withoutMargin:d(a),withMargin:d(x),withMarginAndPadding:d(f(x,y))},page:{withoutMargin:d(k),withMargin:d(f(k,v)),withMarginAndPadding:d(f(k,(0,o.add)(v,y)))},container:{scroll:{initial:_,current:_},bounds:d(S)}};return O}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){var t=e.top,r=e.right,n=e.bottom,a=e.left;return{top:t,right:r,bottom:n,left:a,width:r-a,height:n-t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(){return{x:window.pageXOffset,y:window.pageYOffset}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lift=t.dropAnimationFinished=t.cancel=t.drop=t.completeDrop=t.prepare=t.clean=t.crossAxisMoveBackward=t.crossAxisMoveForward=t.moveForward=t.moveBackward=t.moveByWindowScroll=t.move=t.updateDroppableDimensionIsEnabled=t.updateDroppableDimensionScroll=t.publishDroppableDimension=t.publishDraggableDimension=t.completeLift=t.requestDimensions=undefined;var n=r(312);var a=u(n);var i=r(1182);var o=u(i);var s=r(43);function u(e){return e&&e.__esModule?e:{default:e}}var l={x:0,y:0};var c=function e(t){var r=t.initial,n=t.current,a=t.droppable;var i=(0,s.subtract)(r.windowScroll,n.windowScroll);var o=a?(0,s.subtract)(a.container.scroll.initial,a.container.scroll.current):l;return(0,s.add)(i,o)};var f=t.requestDimensions=function e(t){return{type:"REQUEST_DIMENSIONS",payload:t}};var d=t.completeLift=function e(t,r,n,a,i){return{type:"COMPLETE_LIFT",payload:{id:t,type:r,client:n,windowScroll:a,isScrollAllowed:i}}};var p=t.publishDraggableDimension=function e(t){return{type:"PUBLISH_DRAGGABLE_DIMENSION",payload:t}};var h=t.publishDroppableDimension=function e(t){return{type:"PUBLISH_DROPPABLE_DIMENSION",payload:t}};var v=t.updateDroppableDimensionScroll=function e(t,r){return{type:"UPDATE_DROPPABLE_DIMENSION_SCROLL",payload:{id:t,offset:r}}};var m=t.updateDroppableDimensionIsEnabled=function e(t,r){return{type:"UPDATE_DROPPABLE_DIMENSION_IS_ENABLED",payload:{id:t,isEnabled:r}}};var y=t.move=function e(t,r,n){return{type:"MOVE",payload:{id:t,client:r,windowScroll:n}}};var g=t.moveByWindowScroll=function e(t,r){return{type:"MOVE_BY_WINDOW_SCROLL",payload:{id:t,windowScroll:r}}};var b=t.moveBackward=function e(t){return{type:"MOVE_BACKWARD",payload:t}};var A=t.moveForward=function e(t){return{type:"MOVE_FORWARD",payload:t}};var _=t.crossAxisMoveForward=function e(t){return{type:"CROSS_AXIS_MOVE_FORWARD",payload:t}};var w=t.crossAxisMoveBackward=function e(t){return{type:"CROSS_AXIS_MOVE_BACKWARD",payload:t}};var E=t.clean=function e(){return{type:"CLEAN",payload:null}};var x=t.prepare=function e(){return{type:"PREPARE",payload:null}};var k=function e(t){var r=t.trigger,n=t.newHomeOffset,a=t.impact,i=t.result;return{type:"DROP_ANIMATE",payload:{trigger:r,newHomeOffset:n,impact:a,result:i}}};var S=t.completeDrop=function e(t){return{type:"DROP_COMPLETE",payload:t}};var O=t.drop=function e(){return function(e,t){var r=t();if(r.phase==="COLLECTING_DIMENSIONS"){e(E());return}if(r.phase!=="DRAGGING"){console.error("not able to drop in phase: '"+r.phase+"'");e(E());return}if(!r.drag){console.error("not able to drop when there is invalid drag state",r);e(E());return}var n=r.drag,a=n.impact,i=n.initial,u=n.current;var l=r.dimension.draggable[u.id];var f=r.dimension.droppable[l.droppableId];var d=a.destination?r.dimension.droppable[a.destination.droppableId]:null;var p={draggableId:u.id,type:u.type,source:i.source,destination:a.destination};var h=(0,o.default)({movement:a.movement,draggable:l,draggables:r.dimension.draggable,destination:d});var v=(0,s.subtract)(h,l.client.withMargin.center);var m=c({initial:i,current:u,droppable:d||f});var y=(0,s.add)(v,m);var g=!(0,s.isEqual)(u.client.offset,y);if(!g){e(S(p));return}e(k({trigger:"DROP",newHomeOffset:y,impact:a,result:p}))}};var M=t.cancel=function e(){return function(e,t){var r=t();if(r.phase!=="DRAGGING"){e(E());return}if(!r.drag){console.error("invalid drag state",r);e(E());return}var n=r.drag,i=n.initial,o=n.current;var u=r.dimension.droppable[i.source.droppableId];var f={draggableId:o.id,type:o.type,source:i.source,destination:null};var d=!(0,s.isEqual)(o.client.offset,l);if(!d){e(S(f));return}var p=c({initial:i,current:o,droppable:u});e(k({trigger:"CANCEL",newHomeOffset:p,impact:a.default,result:f}))}};var D=t.dropAnimationFinished=function e(){return function(e,t){var r=t();if(r.phase!=="DROP_ANIMATING"){console.error("cannot end drop that is no longer animating",r);e(E());return}if(!r.drop||!r.drop.pending){console.error("cannot end drop that has no pending state",r);e(E());return}e(S(r.drop.pending.result))}};var T=t.lift=function e(t,r,n,a,i){return function(e,o){var s=o();if(s.phase==="DROP_ANIMATING"){if(!s.drop||!s.drop.pending){console.error("cannot flush drop animation if there is no pending");e(E())}else{e(S(s.drop.pending.result))}}e(x());setTimeout((function(){var s=o();if(s.phase!=="PREPARING"){return}e(f(r));setTimeout((function(){var s=o();if(s.phase!=="COLLECTING_DIMENSIONS"){return}e(d(t,r,n,a,i))}))}))}}},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e){var t={};for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t[r]=0}}return t}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=a;var n=[0,0];function a(e,t,r,a,i,o,s){var u=-i*(t-a);var l=-o*r;var c=u+l;var f=r+c*e;var d=t+f*e;if(Math.abs(f)<s&&Math.abs(d-a)<s){n[0]=a;n[1]=0;return n}n[0]=d;n[1]=f;return n}e.exports=t["default"]},function(e,t,r){(function(t){(function(){var r,n,a;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof t!=="undefined"&&t!==null&&t.hrtime){e.exports=function(){return(r()-a)/1e6};n=t.hrtime;r=function(){var e;e=n();return e[0]*1e9+e[1]};a=r()}else if(Date.now){e.exports=function(){return Date.now()-a};a=Date.now()}else{e.exports=function(){return(new Date).getTime()-a};a=(new Date).getTime()}}).call(this)}).call(this,r(126))},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e,t,r){for(var n in t){if(!Object.prototype.hasOwnProperty.call(t,n)){continue}if(r[n]!==0){return false}var a=typeof t[n]==="number"?t[n]:t[n].val;if(e[n]!==a){return false}}return true}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(53);var a=s(n);var i=r(634);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var r=function e(r){if(t()){r()}};var n=(0,a.default)((function(t,r){var n={x:t,y:r};e.onMove(n)}));var i=(0,o.default)((function(e){r((function(){return n(e.x,e.y)}))}));var s=(0,o.default)((function(){r(e.onMoveForward)}));var u=(0,o.default)((function(){r(e.onMoveBackward)}));var l=(0,o.default)((function(){r(e.onCrossAxisMoveForward)}));var c=(0,o.default)((function(){r(e.onCrossAxisMoveBackward)}));var f=(0,o.default)((function(){r(e.onWindowScroll)}));return{move:i,moveForward:s,moveBackward:u,crossAxisMoveForward:l,crossAxisMoveBackward:c,windowScrollMove:f}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){return e?e.ownerDocument.defaultView:window}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.tab=9;var a=t.enter=13;var i=t.escape=27;var o=t.space=32;var s=t.arrowLeft=37;var u=t.arrowUp=38;var l=t.arrowRight=39;var c=t.arrowDown=40},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"47.31985",height:"29.64547",viewBox:"0 0 47.31985 29.64547","aria-hidden":"true"},n.createElement("title",null,"Grab Icon"),n.createElement("g",null,n.createElement("path",{d:"M43.05833,8.523H4.26152a4.26152,4.26152,0,0,1,0-8.523H43.05833a4.26152,4.26152,0,0,1,0,8.523Z"}),n.createElement("path",{d:"M43.05833,29.64547H4.26152a4.26152,4.26152,0,1,1,0-8.523H43.05833a4.26152,4.26152,0,0,1,0,8.523Z"})))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(340);var i=r(1391);var o=r(1216);var s=r(1217);t.fields=[{value:"data_source",label:"distributor"},{value:"publisher",label:"publisher"},{value:"published",label:"publication date"},{value:"genre",label:"genre"},{value:"language",label:"language"},{value:"classification",label:"subject"},{value:"audience",label:"audience"},{value:"author",label:"author"},{value:"title",label:"title"}];t.operators=[{value:"eq",label:"equals",symbol:"="},{value:"contains",label:"contains",symbol:":"},{value:"regex",label:"matches regex",symbol:"~"},{value:"neq",label:"does not equal",symbol:"≠"},{value:"gt",label:"is greater than",symbol:">"},{value:"gte",label:"is greater than or equals",symbol:"≥"},{value:"lt",label:"is less than",symbol:"<"},{value:"lte",label:"is less than or equals",symbol:"≤"}];function u(e){var t=e.name,r=e.query,u=e.selectedQueryId,l=e.addQuery,c=e.updateQueryBoolean,f=e.moveQuery,d=e.removeQuery,p=e.selectQuery;return n.createElement(a.DndProvider,{backend:i.HTML5Backend},n.createElement("div",{className:"advanced-search"},n.createElement(o.default,{name:t,onAdd:function(e){var r;return(r=l)===null||r===void 0?void 0:r(t,e)}}),n.createElement(s.default,{query:r,selectedQueryId:u,onBooleanChange:function(e,r){var n;return(n=c)===null||n===void 0?void 0:n(t,e,r)},onMove:function(e,r){var n;return(n=f)===null||n===void 0?void 0:n(t,e,r)},onRemove:function(e){var r;return(r=d)===null||r===void 0?void 0:r(t,e)},onSelect:function(e){var r;return(r=p)===null||r===void 0?void 0:r(t,e)}})))}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"67.52939",height:"40.71625",viewBox:"0 0 67.52939 40.71625","aria-hidden":"true"},n.createElement("title",null,"Visible Icon"),n.createElement("g",null,n.createElement("path",{d:"M33.7647,0C15.11694,0,0,13.90311,0,20.35813S15.11694,40.71625,33.7647,40.71625s33.7647-13.90311,33.7647-20.35813S52.41245,0,33.7647,0Zm0,34.26124A14.008,14.008,0,0,1,19.654,20.35813a14.1122,14.1122,0,0,1,28.2213,0A14.008,14.008,0,0,1,33.7647,34.26124Z"}),n.createElement("circle",{cx:"33.7647",cy:"20.35813",r:"7.94463"})))};t.default=a},function(e,t,r){var n=r(212);var a=r(649);var i=r(329);var o=Object.defineProperty;t.f=r(141)?Object.defineProperty:function e(t,r,s){n(t);r=i(r,true);n(s);if(a)try{return o(t,r,s)}catch(e){}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");if("value"in s)t[r]=s.value;return t}},function(e,t,r){var n=r(140);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;if(typeof(r=e.valueOf)=="function"&&!n(a=r.call(e)))return a;if(!t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function e(t){return(t=+t)==0||t!=t?t:t<0?-1:1}},function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!=-2e-17?function e(t){return(t=+t)==0?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(1259);var a=r(334);e.exports=function(e){return n(a(e))}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(17);var a=r(334);var i=r(90);var o=r(337);var s="["+o+"]";var u="​…";var l=RegExp("^"+s+s+"*");var c=RegExp(s+s+"*$");var f=function(e,t,r){var a={};var s=i((function(){return!!o[e]()||u[e]()!=u}));var l=a[e]=s?t(d):o[e];if(r)a[r]=l;n(n.P+n.F*s,"String",a)};var d=f.trim=function(e,t){e=String(a(e));if(t&1)e=e.replace(l,"");if(t&2)e=e.replace(c,"");return e};e.exports=f},function(e,t){e.exports="\t\n\v\f\r   ᠎    "+"          \u2028\u2029\ufeff"},function(e,t,r){var n=r(302),a=r(1299);function i(e,t,r,o,s){var u=-1,l=e.length;r||(r=a);s||(s=[]);while(++u<l){var c=e[u];if(t>0&&r(c)){if(t>1){i(c,t-1,r,o,s)}else{n(s,c)}}else if(!o){s[s.length]=c}}return s}e.exports=i},function(e,t,r){"use strict";var n=String.prototype.replace;var a=/%20/g;var i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},function(e,t,r){"use strict";r.r(t);r.d(t,"DndContext",(function(){return n["a"]}));r.d(t,"DndProvider",(function(){return a["a"]}));r.d(t,"DragPreviewImage",(function(){return o}));r.d(t,"DragSource",(function(){return xe}));r.d(t,"DropTarget",(function(){return ze}));r.d(t,"DragLayer",(function(){return rt}));r.d(t,"useDrag",(function(){return Gt}));r.d(t,"useDrop",(function(){return dr}));r.d(t,"useDragLayer",(function(){return br}));r.d(t,"useDragDropManager",(function(){return ft}));var n=r(218);var a=r(641);var i=r(1);var o=Object(i["memo"])((function e(t){var r=t.connect,n=t.src;Object(i["useEffect"])((function(){if(typeof Image==="undefined")return;var e=false;var t=new Image;t.src=n;t.onload=function(){r(t);e=true};return function(){if(e){r(null)}}}));return null}));var s=r(6);function u(e,t,r){var n=r.getRegistry();var a=n.addTarget(e,t);return[a,function(){return n.removeTarget(a)}]}function l(e,t,r){var n=r.getRegistry();var a=n.addSource(e,t);return[a,function(){return n.removeSource(a)}]}function c(e){if(typeof e.type==="string"){return}var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}function f(e){return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!Object(i["isValidElement"])(t)){var n=t;e(n,r);return n}var a=t;c(a);var o=r?function(t){return e(t,r)}:e;return h(a,o)}}function d(e){var t={};Object.keys(e).forEach((function(r){var n=e[r];if(r.endsWith("Ref")){t[r]=e[r]}else{var a=f(n);t[r]=function(){return a}}}));return t}function p(e,t){if(typeof e==="function"){e(t)}else{e.current=t}}function h(e,t){var r=e.ref;Object(s["a"])(typeof r!=="string","Cannot connect React DnD to an element with an existing string ref. "+"Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. "+"Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs");if(!r){return Object(i["cloneElement"])(e,{ref:t})}else{return Object(i["cloneElement"])(e,{ref:function e(n){p(r,n);p(t,n)}})}}function v(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){v=function e(t){return typeof t}}else{v=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return v(e)}function m(e){return e!==null&&v(e)==="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function y(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(a!==void 0){return!!a}if(e===t){return true}if(typeof e!=="object"||!e||typeof t!=="object"||!t){return false}var i=Object.keys(e);var o=Object.keys(t);if(i.length!==o.length){return false}var s=Object.prototype.hasOwnProperty.bind(t);for(var u=0;u<i.length;u++){var l=i[u];if(!s(l)){return false}var c=e[l];var f=t[l];a=r?r.call(n,c,f,l):void 0;if(a===false||a===void 0&&c!==f){return false}}return true}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function A(e,t,r){if(t)b(e.prototype,t);if(r)b(e,r);return e}function _(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var w=function(){function e(t){var r=this;g(this,e);_(this,"hooks",d({dragSource:function e(t,n){r.clearDragSource();r.dragSourceOptions=n||null;if(m(t)){r.dragSourceRef=t}else{r.dragSourceNode=t}r.reconnectDragSource()},dragPreview:function e(t,n){r.clearDragPreview();r.dragPreviewOptions=n||null;if(m(t)){r.dragPreviewRef=t}else{r.dragPreviewNode=t}r.reconnectDragPreview()}}));_(this,"handlerId",null);_(this,"dragSourceRef",null);_(this,"dragSourceNode",void 0);_(this,"dragSourceOptionsInternal",null);_(this,"dragSourceUnsubscribe",void 0);_(this,"dragPreviewRef",null);_(this,"dragPreviewNode",void 0);_(this,"dragPreviewOptionsInternal",null);_(this,"dragPreviewUnsubscribe",void 0);_(this,"lastConnectedHandlerId",null);_(this,"lastConnectedDragSource",null);_(this,"lastConnectedDragSourceOptions",null);_(this,"lastConnectedDragPreview",null);_(this,"lastConnectedDragPreviewOptions",null);_(this,"backend",void 0);this.backend=t}A(e,[{key:"receiveHandlerId",value:function e(t){if(this.handlerId===t){return}this.handlerId=t;this.reconnect()}},{key:"connectTarget",get:function e(){return this.dragSource}},{key:"dragSourceOptions",get:function e(){return this.dragSourceOptionsInternal},set:function e(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function e(){return this.dragPreviewOptionsInternal},set:function e(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function e(){this.reconnectDragSource();this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function e(){var t=this.dragSource;var r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r){this.disconnectDragSource()}if(!this.handlerId){return}if(!t){this.lastConnectedDragSource=t;return}if(r){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragSource=t;this.lastConnectedDragSourceOptions=this.dragSourceOptions;this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)}}},{key:"reconnectDragPreview",value:function e(){var t=this.dragPreview;var r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r){this.disconnectDragPreview()}if(!this.handlerId){return}if(!t){this.lastConnectedDragPreview=t;return}if(r){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragPreview=t;this.lastConnectedDragPreviewOptions=this.dragPreviewOptions;this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)}}},{key:"didHandlerIdChange",value:function e(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function e(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function e(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function e(){return!y(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function e(){return!y(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function e(){if(this.dragSourceUnsubscribe){this.dragSourceUnsubscribe();this.dragSourceUnsubscribe=undefined}}},{key:"disconnectDragPreview",value:function e(){if(this.dragPreviewUnsubscribe){this.dragPreviewUnsubscribe();this.dragPreviewUnsubscribe=undefined;this.dragPreviewNode=null;this.dragPreviewRef=null}}},{key:"dragSource",get:function e(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function e(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function e(){this.dragSourceNode=null;this.dragSourceRef=null}},{key:"clearDragPreview",value:function e(){this.dragPreviewNode=null;this.dragPreviewRef=null}}]);return e}();function E(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function k(e,t,r){if(t)x(e.prototype,t);if(r)x(e,r);return e}function S(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var O=false;var M=false;var D=function(){function e(t){E(this,e);S(this,"internalMonitor",void 0);S(this,"sourceId",null);this.internalMonitor=t.getMonitor()}k(e,[{key:"receiveHandlerId",value:function e(t){this.sourceId=t}},{key:"getHandlerId",value:function e(){return this.sourceId}},{key:"canDrag",value:function e(){Object(s["a"])(!O,"You may not call monitor.canDrag() inside your canDrag() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{O=true;return this.internalMonitor.canDragSource(this.sourceId)}finally{O=false}}},{key:"isDragging",value:function e(){if(!this.sourceId){return false}Object(s["a"])(!M,"You may not call monitor.isDragging() inside your isDragging() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{M=true;return this.internalMonitor.isDraggingSource(this.sourceId)}finally{M=false}}},{key:"subscribeToStateChange",value:function e(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}},{key:"isDraggingSource",value:function e(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function e(t,r){return this.internalMonitor.isOverTarget(t,r)}},{key:"getTargetIds",value:function e(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function e(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function e(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function e(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function e(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function e(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function e(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function e(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function e(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function e(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function e(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function e(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function e(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function e(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function e(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]);return e}();function T(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){T=function e(t){return typeof t}}else{T=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return T(e)}function L(e){var t=e.current;if(t==null){return null}else if(t.decoratedRef){return t.decoratedRef.current}else{return t}}function C(e){return e&&e.prototype&&typeof e.prototype.render==="function"}function j(e){var t;var r=e;return(r===null||r===void 0?void 0:(t=r.$$typeof)===null||t===void 0?void 0:t.toString())==="Symbol(react.forward_ref)"}function N(e){return C(e)||j(e)}function I(e,t){if(false){var r,n}}function P(e){return typeof e==="function"}function R(){}function F(e){return T(e)==="object"&&e!==null}function Y(e){if(!F(e)){return false}if(Object.getPrototypeOf(e)===null){return true}var t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t}function B(e,t){return typeof e==="string"||T(e)==="symbol"||!!t&&Array.isArray(e)&&e.every((function(e){return B(e,false)}))}var H=r(97);function U(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function q(e,t,r){if(t)z(e.prototype,t);if(r)z(e,r);return e}function V(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var W=function(){function e(t){U(this,e);V(this,"isDisposed",false);V(this,"action",void 0);this.action=P(t)?t:R}q(e,[{key:"dispose",value:function e(){if(!this.isDisposed){this.action();this.isDisposed=true}}}],[{key:"isDisposable",value:function e(t){return Boolean(t&&P(t.dispose))}},{key:"_fixup",value:function t(r){return e.isDisposable(r)?r:e.empty}},{key:"create",value:function t(r){return new e(r)}}]);return e}();V(W,"empty",{dispose:R});var K=function(){function e(){U(this,e);V(this,"isDisposed",false);V(this,"disposables",void 0);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}this.disposables=r}q(e,[{key:"add",value:function e(t){if(this.isDisposed){t.dispose()}else{this.disposables.push(t)}}},{key:"remove",value:function e(t){var r=false;if(!this.isDisposed){var n=this.disposables.indexOf(t);if(n!==-1){r=true;this.disposables.splice(n,1);t.dispose()}}return r}},{key:"clear",value:function e(){if(!this.isDisposed){var t=this.disposables.length;var r=new Array(t);for(var n=0;n<t;n++){r[n]=this.disposables[n]}this.disposables=[];for(var a=0;a<t;a++){r[a].dispose()}}}},{key:"dispose",value:function e(){if(!this.isDisposed){this.isDisposed=true;var t=this.disposables.length;var r=new Array(t);for(var n=0;n<t;n++){r[n]=this.disposables[n]}this.disposables=[];for(var a=0;a<t;a++){r[a].dispose()}}}}]);return e}();var G=function(){function e(){U(this,e);V(this,"isDisposed",false);V(this,"current",void 0)}q(e,[{key:"getDisposable",value:function e(){return this.current}},{key:"setDisposable",value:function e(t){var r=this.isDisposed;if(!r){var n=this.current;this.current=t;if(n){n.dispose()}}if(r&&t){t.dispose()}}},{key:"dispose",value:function e(){if(!this.isDisposed){this.isDisposed=true;var t=this.current;this.current=undefined;if(t){t.dispose()}}}}]);return e}();var Q=r(62);var J=r.n(Q);function Z(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Z=function e(t){return typeof t}}else{Z=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Z(e)}function X(e,t){return ne(e)||re(e,t)||ee(e,t)||$()}function $(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ee(e,t){if(!e)return;if(typeof e==="string")return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return te(e,t)}function te(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function re(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function ne(e){if(Array.isArray(e))return e}function ae(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function oe(e,t,r){if(t)ie(e.prototype,t);if(r)ie(e,r);return e}function se(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)ue(e,t)}function ue(e,t){ue=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return ue(e,t)}function le(e){var t=de();return function r(){var n=pe(e),a;if(t){var i=pe(this).constructor;a=Reflect.construct(n,arguments,i)}else{a=n.apply(this,arguments)}return ce(this,a)}}function ce(e,t){if(t&&(Z(t)==="object"||typeof t==="function")){return t}else if(t!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return fe(e)}function fe(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function de(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(e){return false}}function pe(e){pe=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return pe(e)}function he(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ve(e){var t=e.DecoratedComponent,r=e.createHandler,a=e.createMonitor,o=e.createConnector,u=e.registerHandler,l=e.containerDisplayName,c=e.getType,f=e.collect,d=e.options;var p=d.arePropsEqual,h=p===void 0?y:p;var v=t;var m=t.displayName||t.name||"Component";var g=function(e){se(l,e);var t=le(l);function l(e){var r;ae(this,l);r=t.call(this,e);he(fe(r),"decoratedRef",Object(i["createRef"])());he(fe(r),"handlerId",void 0);he(fe(r),"manager",void 0);he(fe(r),"handlerMonitor",void 0);he(fe(r),"handlerConnector",void 0);he(fe(r),"handler",void 0);he(fe(r),"disposable",void 0);he(fe(r),"currentType",void 0);he(fe(r),"handleChange",(function(){var e=r.getCurrentState();if(!y(e,r.state)){r.setState(e)}}));r.disposable=new G;r.receiveProps(e);r.dispose();return r}oe(l,[{key:"getHandlerId",value:function e(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function e(){Object(s["a"])(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()");return this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function e(t,r){return!h(t,this.props)||!y(r,this.state)}},{key:"componentDidMount",value:function e(){this.disposable=new G;this.currentType=undefined;this.receiveProps(this.props);this.handleChange()}},{key:"componentDidUpdate",value:function e(t){if(!h(this.props,t)){this.receiveProps(this.props);this.handleChange()}}},{key:"componentWillUnmount",value:function e(){this.dispose()}},{key:"receiveProps",value:function e(t){if(!this.handler){return}this.handler.receiveProps(t);this.receiveType(c(t))}},{key:"receiveType",value:function e(t){if(!this.handlerMonitor||!this.manager||!this.handlerConnector){return}if(t===this.currentType){return}this.currentType=t;var r=u(t,this.handler,this.manager),n=X(r,2),a=n[0],i=n[1];this.handlerId=a;this.handlerMonitor.receiveHandlerId(a);this.handlerConnector.receiveHandlerId(a);var o=this.manager.getMonitor();var s=o.subscribeToStateChange(this.handleChange,{handlerIds:[a]});this.disposable.setDisposable(new K(new W(s),new W(i)))}},{key:"dispose",value:function e(){this.disposable.dispose();if(this.handlerConnector){this.handlerConnector.receiveHandlerId(null)}}},{key:"getCurrentState",value:function e(){if(!this.handlerConnector){return{}}var t=f(this.handlerConnector.hooks,this.handlerMonitor,this.props);if(false){}return t}},{key:"render",value:function e(){var t=this;return Object(H["jsx"])(n["a"].Consumer,{children:function e(r){var n=r.dragDropManager;t.receiveDragDropManager(n);if(typeof requestAnimationFrame!=="undefined"){requestAnimationFrame((function(){var e;return(e=t.handlerConnector)===null||e===void 0?void 0:e.reconnect()}))}return Object(H["jsx"])(v,Object.assign({},t.props,t.getCurrentState(),{ref:N(v)?t.decoratedRef:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function e(t){if(this.manager!==undefined){return}Object(s["a"])(t!==undefined,"Could not find the drag and drop manager in the context of %s. "+"Make sure to render a DndProvider component in your top-level component. "+"Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",m,m);if(t===undefined){return}this.manager=t;this.handlerMonitor=a(t);this.handlerConnector=o(t.getBackend());this.handler=r(this.handlerMonitor,this.decoratedRef)}}]);return l}(i["Component"]);he(g,"DecoratedComponent",t);he(g,"displayName","".concat(l,"(").concat(m,")"));return J()(g,t)}function me(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function ge(e,t,r){if(t)ye(e.prototype,t);if(r)ye(e,r);return e}function be(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Ae=["canDrag","beginDrag","isDragging","endDrag"];var _e=["beginDrag"];var we=function(){function e(t,r,n){var a=this;me(this,e);be(this,"props",null);be(this,"spec",void 0);be(this,"monitor",void 0);be(this,"ref",void 0);be(this,"beginDrag",(function(){if(!a.props){return}var e=a.spec.beginDrag(a.props,a.monitor,a.ref.current);if(false){}return e}));this.spec=t;this.monitor=r;this.ref=n}ge(e,[{key:"receiveProps",value:function e(t){this.props=t}},{key:"canDrag",value:function e(){if(!this.props){return false}if(!this.spec.canDrag){return true}return this.spec.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function e(t,r){if(!this.props){return false}if(!this.spec.isDragging){return r===t.getSourceId()}return this.spec.isDragging(this.props,this.monitor)}},{key:"endDrag",value:function e(){if(!this.props){return}if(!this.spec.endDrag){return}this.spec.endDrag(this.props,this.monitor,L(this.ref))}}]);return e}();function Ee(e){Object.keys(e).forEach((function(t){Object(s["a"])(Ae.indexOf(t)>-1,"Expected the drag source specification to only have "+"some of the following keys: %s. "+'Instead received a specification with an unexpected "%s" key. '+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",Ae.join(", "),t);Object(s["a"])(typeof e[t]==="function","Expected %s in the drag source specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}));_e.forEach((function(t){Object(s["a"])(typeof e[t]==="function","Expected %s in the drag source specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}));return function t(r,n){return new we(e,r,n)}}function xe(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};I("DragSource","type, spec, collect[, options]",e,t,r,n);var a=e;if(typeof e!=="function"){Object(s["a"])(B(e),'Expected "type" provided as the first argument to DragSource to be '+"a string, or a function that returns a string given the current props. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",e);a=function t(){return e}}Object(s["a"])(Y(t),'Expected "spec" provided as the second argument to DragSource to be '+"a plain object. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t);var i=Ee(t);Object(s["a"])(typeof r==="function",'Expected "collect" provided as the third argument to DragSource to be '+"a function that returns a plain object of props to inject. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",r);Object(s["a"])(Y(n),'Expected "options" provided as the fourth argument to DragSource to be '+"a plain object when specified. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",r);return function e(t){return ve({containerDisplayName:"DragSource",createHandler:i,registerHandler:l,createConnector:function e(t){return new w(t)},createMonitor:function e(t){return new D(t)},DecoratedComponent:t,getType:a,collect:r,options:n})}}function ke(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Oe(e,t,r){if(t)Se(e.prototype,t);if(r)Se(e,r);return e}function Me(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var De=false;var Te=function(){function e(t){ke(this,e);Me(this,"internalMonitor",void 0);Me(this,"targetId",null);this.internalMonitor=t.getMonitor()}Oe(e,[{key:"receiveHandlerId",value:function e(t){this.targetId=t}},{key:"getHandlerId",value:function e(){return this.targetId}},{key:"subscribeToStateChange",value:function e(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}},{key:"canDrop",value:function e(){if(!this.targetId){return false}Object(s["a"])(!De,"You may not call monitor.canDrop() inside your canDrop() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{De=true;return this.internalMonitor.canDropOnTarget(this.targetId)}finally{De=false}}},{key:"isOver",value:function e(t){if(!this.targetId){return false}return this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function e(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function e(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function e(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function e(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function e(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function e(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function e(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function e(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function e(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]);return e}();function Le(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function je(e,t,r){if(t)Ce(e.prototype,t);if(r)Ce(e,r);return e}function Ne(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Ie=function(){function e(t){var r=this;Le(this,e);Ne(this,"hooks",d({dropTarget:function e(t,n){r.clearDropTarget();r.dropTargetOptions=n;if(m(t)){r.dropTargetRef=t}else{r.dropTargetNode=t}r.reconnect()}}));Ne(this,"handlerId",null);Ne(this,"dropTargetRef",null);Ne(this,"dropTargetNode",void 0);Ne(this,"dropTargetOptionsInternal",null);Ne(this,"unsubscribeDropTarget",void 0);Ne(this,"lastConnectedHandlerId",null);Ne(this,"lastConnectedDropTarget",null);Ne(this,"lastConnectedDropTargetOptions",null);Ne(this,"backend",void 0);this.backend=t}je(e,[{key:"connectTarget",get:function e(){return this.dropTarget}},{key:"reconnect",value:function e(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();if(t){this.disconnectDropTarget()}var r=this.dropTarget;if(!this.handlerId){return}if(!r){this.lastConnectedDropTarget=r;return}if(t){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDropTarget=r;this.lastConnectedDropTargetOptions=this.dropTargetOptions;this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions)}}},{key:"receiveHandlerId",value:function e(t){if(t===this.handlerId){return}this.handlerId=t;this.reconnect()}},{key:"dropTargetOptions",get:function e(){return this.dropTargetOptionsInternal},set:function e(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function e(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function e(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function e(){return!y(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function e(){if(this.unsubscribeDropTarget){this.unsubscribeDropTarget();this.unsubscribeDropTarget=undefined}}},{key:"dropTarget",get:function e(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function e(){this.dropTargetRef=null;this.dropTargetNode=null}}]);return e}();function Pe(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Fe(e,t,r){if(t)Re(e.prototype,t);if(r)Re(e,r);return e}function Ye(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Be=["canDrop","hover","drop"];var He=function(){function e(t,r,n){Pe(this,e);Ye(this,"props",null);Ye(this,"spec",void 0);Ye(this,"monitor",void 0);Ye(this,"ref",void 0);this.spec=t;this.monitor=r;this.ref=n}Fe(e,[{key:"receiveProps",value:function e(t){this.props=t}},{key:"receiveMonitor",value:function e(t){this.monitor=t}},{key:"canDrop",value:function e(){if(!this.spec.canDrop){return true}return this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function e(){if(!this.spec.hover||!this.props){return}this.spec.hover(this.props,this.monitor,L(this.ref))}},{key:"drop",value:function e(){if(!this.spec.drop){return undefined}var t=this.spec.drop(this.props,this.monitor,this.ref.current);if(false){}return t}}]);return e}();function Ue(e){Object.keys(e).forEach((function(t){Object(s["a"])(Be.indexOf(t)>-1,"Expected the drop target specification to only have "+"some of the following keys: %s. "+'Instead received a specification with an unexpected "%s" key. '+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",Be.join(", "),t);Object(s["a"])(typeof e[t]==="function","Expected %s in the drop target specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])}));return function t(r,n){return new He(e,r,n)}}function ze(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};I("DropTarget","type, spec, collect[, options]",e,t,r,n);var a=e;if(typeof e!=="function"){Object(s["a"])(B(e,true),'Expected "type" provided as the first argument to DropTarget to be '+"a string, an array of strings, or a function that returns either given "+"the current props. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",e);a=function t(){return e}}Object(s["a"])(Y(t),'Expected "spec" provided as the second argument to DropTarget to be '+"a plain object. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t);var i=Ue(t);Object(s["a"])(typeof r==="function",'Expected "collect" provided as the third argument to DropTarget to be '+"a function that returns a plain object of props to inject. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",r);Object(s["a"])(Y(n),'Expected "options" provided as the fourth argument to DropTarget to be '+"a plain object when specified. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",r);return function e(t){return ve({containerDisplayName:"DropTarget",createHandler:i,registerHandler:u,createMonitor:function e(t){return new Te(t)},createConnector:function e(t){return new Ie(t)},DecoratedComponent:t,getType:a,collect:r,options:n})}}function qe(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){qe=function e(t){return typeof t}}else{qe=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return qe(e)}function Ve(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Ke(e,t,r){if(t)We(e.prototype,t);if(r)We(e,r);return e}function Ge(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)Qe(e,t)}function Qe(e,t){Qe=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return Qe(e,t)}function Je(e){var t=$e();return function r(){var n=et(e),a;if(t){var i=et(this).constructor;a=Reflect.construct(n,arguments,i)}else{a=n.apply(this,arguments)}return Ze(this,a)}}function Ze(e,t){if(t&&(qe(t)==="object"||typeof t==="function")){return t}else if(t!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return Xe(e)}function Xe(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function $e(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(e){return false}}function et(e){et=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return et(e)}function tt(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function rt(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};I("DragLayer","collect[, options]",e,t);Object(s["a"])(typeof e==="function",'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e);Object(s["a"])(Y(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. '+"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",t);return function r(a){var o=a;var u=t.arePropsEqual,l=u===void 0?y:u;var c=o.displayName||o.name||"Component";var f=function(t){Ge(a,t);var r=Je(a);function a(){var e;Ve(this,a);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o]}e=r.call.apply(r,[this].concat(n));tt(Xe(e),"manager",void 0);tt(Xe(e),"isCurrentlyMounted",false);tt(Xe(e),"unsubscribeFromOffsetChange",void 0);tt(Xe(e),"unsubscribeFromStateChange",void 0);tt(Xe(e),"ref",Object(i["createRef"])());tt(Xe(e),"handleChange",(function(){if(!e.isCurrentlyMounted){return}var t=e.getCurrentState();if(!y(t,e.state)){e.setState(t)}}));return e}Ke(a,[{key:"getDecoratedComponentInstance",value:function e(){Object(s["a"])(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()");return this.ref.current}},{key:"shouldComponentUpdate",value:function e(t,r){return!l(t,this.props)||!y(r,this.state)}},{key:"componentDidMount",value:function e(){this.isCurrentlyMounted=true;this.handleChange()}},{key:"componentWillUnmount",value:function e(){this.isCurrentlyMounted=false;if(this.unsubscribeFromOffsetChange){this.unsubscribeFromOffsetChange();this.unsubscribeFromOffsetChange=undefined}if(this.unsubscribeFromStateChange){this.unsubscribeFromStateChange();this.unsubscribeFromStateChange=undefined}}},{key:"render",value:function e(){var t=this;return Object(H["jsx"])(n["a"].Consumer,{children:function e(r){var n=r.dragDropManager;if(n===undefined){return null}t.receiveDragDropManager(n);if(!t.isCurrentlyMounted){return null}return Object(H["jsx"])(o,Object.assign({},t.props,t.state,{ref:N(o)?t.ref:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function e(t){if(this.manager!==undefined){return}this.manager=t;Object(s["a"])(qe(t)==="object","Could not find the drag and drop manager in the context of %s. "+"Make sure to render a DndProvider component in your top-level component. "+"Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",c,c);var r=this.manager.getMonitor();this.unsubscribeFromOffsetChange=r.subscribeToOffsetChange(this.handleChange);this.unsubscribeFromStateChange=r.subscribeToStateChange(this.handleChange)}},{key:"getCurrentState",value:function t(){if(!this.manager){return{}}var r=this.manager.getMonitor();return e(r,this.props)}}]);return a}(i["Component"]);tt(f,"displayName","DragLayer(".concat(c,")"));tt(f,"DecoratedComponent",a);return J()(f,a)}}var nt=typeof window!=="undefined"?i["useLayoutEffect"]:i["useEffect"];function at(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){at=function e(t){return typeof t}}else{at=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return at(e)}function it(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function st(e,t,r){if(t)ot(e.prototype,t);if(r)ot(e,r);return e}function ut(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var lt=function(){function e(t,r,n){it(this,e);ut(this,"spec",void 0);ut(this,"monitor",void 0);ut(this,"connector",void 0);this.spec=t;this.monitor=r;this.connector=n}st(e,[{key:"beginDrag",value:function e(){var t;var r=this.spec;var n=this.monitor;var a=null;if(at(r.item)==="object"){a=r.item}else if(typeof r.item==="function"){a=r.item(n)}else{a={}}return(t=a)!==null&&t!==void 0?t:null}},{key:"canDrag",value:function e(){var t=this.spec;var r=this.monitor;if(typeof t.canDrag==="boolean"){return t.canDrag}else if(typeof t.canDrag==="function"){return t.canDrag(r)}else{return true}}},{key:"isDragging",value:function e(t,r){var n=this.spec;var a=this.monitor;var e=n.isDragging;return e?e(a):r===t.getSourceId()}},{key:"endDrag",value:function e(){var t=this.spec;var r=this.monitor;var n=this.connector;var a=t.end;if(a){a(r.getItem(),r)}n.reconnect()}}]);return e}();function ct(e,t,r){var n=Object(i["useMemo"])((function(){return new lt(e,t,r)}),[t,r]);Object(i["useEffect"])((function(){n.spec=e}),[e]);return n}function ft(){var e=Object(i["useContext"])(n["a"]),t=e.dragDropManager;Object(s["a"])(t!=null,"Expected drag drop context");return t}function dt(e){return Object(i["useMemo"])((function(){var t=e.type;Object(s["a"])(t!=null,"spec.type must be defined");return t}),[e])}function pt(e,t){return gt(e)||yt(e,t)||vt(e,t)||ht()}function ht(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vt(e,t){if(!e)return;if(typeof e==="string")return mt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mt(e,t)}function mt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function yt(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function gt(e){if(Array.isArray(e))return e}function bt(e,t,r){var n=ft();var a=ct(e,t,r);var i=dt(e);nt((function e(){if(i!=null){var o=l(i,a,n),s=pt(o,2),u=s[0],c=s[1];t.receiveHandlerId(u);r.receiveHandlerId(u);return c}}),[n,t,r,a,i])}function At(e){return xt(e)||Et(e)||wt(e)||_t()}function _t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(e,t){if(!e)return;if(typeof e==="string")return kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kt(e,t)}function Et(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xt(e){if(Array.isArray(e))return kt(e)}function kt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function St(e,t){var r=At(t||[]);if(t==null&&typeof e!=="function"){r.push(e)}return Object(i["useMemo"])((function(){return typeof e==="function"?e():e}),r)}function Ot(){var e=ft();return Object(i["useMemo"])((function(){return new D(e)}),[e])}function Mt(e,t){var r=ft();var n=Object(i["useMemo"])((function(){return new w(r.getBackend())}),[r]);nt((function(){n.dragSourceOptions=e||null;n.reconnect();return function(){return n.disconnectDragSource()}}),[n,e]);nt((function(){n.dragPreviewOptions=t||null;n.reconnect();return function(){return n.disconnectDragPreview()}}),[n,t]);return n}var Dt=r(694);var Tt=r.n(Dt);function Lt(e,t){return Pt(e)||It(e,t)||jt(e,t)||Ct()}function Ct(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jt(e,t){if(!e)return;if(typeof e==="string")return Nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nt(e,t)}function Nt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function It(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function Pt(e){if(Array.isArray(e))return e}function Rt(e,t,r){var n=Object(i["useState"])((function(){return t(e)})),a=Lt(n,2),o=a[0],s=a[1];var u=Object(i["useCallback"])((function(){var n=t(e);if(!Tt()(o,n)){s(n);if(r){r()}}}),[o,e,r]);nt(u);return[o,u]}function Ft(e,t){return zt(e)||Ut(e,t)||Bt(e,t)||Yt()}function Yt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Bt(e,t){if(!e)return;if(typeof e==="string")return Ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ht(e,t)}function Ht(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function Ut(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function zt(e){if(Array.isArray(e))return e}function qt(e,t,r){var n=Rt(e,t,r),a=Ft(n,2),i=a[0],o=a[1];nt((function t(){var r=e.getHandlerId();if(r==null){return}return e.subscribeToStateChange(o,{handlerIds:[r]})}),[e,o]);return i}function Vt(e,t,r){return qt(t,e||function(){return{}},(function(){return r.reconnect()}))}function Wt(e){return Object(i["useMemo"])((function(){return e.hooks.dragSource()}),[e])}function Kt(e){return Object(i["useMemo"])((function(){return e.hooks.dragPreview()}),[e])}function Gt(e,t){var r=St(e,t);Object(s["a"])(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var n=Ot();var a=Mt(r.options,r.previewOptions);bt(r,n,a);return[Vt(r.collect,n,a),Wt(a),Kt(a)]}function Qt(e){var t=e.accept;return Object(i["useMemo"])((function(){Object(s["a"])(e.accept!=null,"accept must be defined");return Array.isArray(t)?t:[t]}),[t])}function Jt(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Zt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Xt(e,t,r){if(t)Zt(e.prototype,t);if(r)Zt(e,r);return e}function $t(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var er=function(){function e(t,r){Jt(this,e);$t(this,"spec",void 0);$t(this,"monitor",void 0);this.spec=t;this.monitor=r}Xt(e,[{key:"canDrop",value:function e(){var t=this.spec;var r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):true}},{key:"hover",value:function e(){var t=this.spec;var r=this.monitor;if(t.hover){t.hover(r.getItem(),r)}}},{key:"drop",value:function e(){var t=this.spec;var r=this.monitor;if(t.drop){return t.drop(r.getItem(),r)}}}]);return e}();function tr(e,t){var r=Object(i["useMemo"])((function(){return new er(e,t)}),[t]);Object(i["useEffect"])((function(){r.spec=e}),[e]);return r}function rr(e,t){return sr(e)||or(e,t)||ar(e,t)||nr()}function nr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ar(e,t){if(!e)return;if(typeof e==="string")return ir(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ir(e,t)}function ir(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function or(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function sr(e){if(Array.isArray(e))return e}function ur(e,t,r){var n=ft();var a=tr(e,t);var i=Qt(e);nt((function e(){var o=u(i,a,n),s=rr(o,2),l=s[0],c=s[1];t.receiveHandlerId(l);r.receiveHandlerId(l);return c}),[n,t,a,r,i.map((function(e){return e.toString()})).join("|")])}function lr(){var e=ft();return Object(i["useMemo"])((function(){return new Te(e)}),[e])}function cr(e){var t=ft();var r=Object(i["useMemo"])((function(){return new Ie(t.getBackend())}),[t]);nt((function(){r.dropTargetOptions=e||null;r.reconnect();return function(){return r.disconnectDropTarget()}}),[e]);return r}function fr(e){return Object(i["useMemo"])((function(){return e.hooks.dropTarget()}),[e])}function dr(e,t){var r=St(e,t);var n=lr();var a=cr(r.options);ur(r,n,a);return[Vt(r.collect,n,a),fr(a)]}function pr(e,t){return gr(e)||yr(e,t)||vr(e,t)||hr()}function hr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vr(e,t){if(!e)return;if(typeof e==="string")return mr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mr(e,t)}function mr(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function yr(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function gr(e){if(Array.isArray(e))return e}function br(e){var t=ft();var r=t.getMonitor();var n=Rt(r,e),a=pr(n,2),o=a[0],s=a[1];Object(i["useEffect"])((function(){return r.subscribeToOffsetChange(s)}));Object(i["useEffect"])((function(){return r.subscribeToStateChange(s)}));return o}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(119));function i(e){if(e===void 0){e=(0,a.default)()}try{return e.activeElement}catch(e){}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=r(92);var a=v(n);var i=r(0);var o=v(i);var s=r(1);var u=v(s);var l=r(18);var c=v(l);var f=r(599);var d=v(f);var p=r(134);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=27;function A(e){return e.button===0}function _(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var w=function(e){g(t,e);function t(r,n){m(this,t);var i=y(this,e.call(this,r,n));i.addEventListeners=function(){var e=i.props.event;var t=(0,h.default)(i);i.documentMouseCaptureListener=(0,d.default)(t,e,i.handleMouseCapture,true);i.documentMouseListener=(0,d.default)(t,e,i.handleMouse);i.documentKeyupListener=(0,d.default)(t,"keyup",i.handleKeyUp)};i.removeEventListeners=function(){if(i.documentMouseCaptureListener){i.documentMouseCaptureListener.remove()}if(i.documentMouseListener){i.documentMouseListener.remove()}if(i.documentKeyupListener){i.documentKeyupListener.remove()}};i.handleMouseCapture=function(e){i.preventMouseRootClose=_(e)||!A(e)||(0,a.default)(c.default.findDOMNode(i),e.target)};i.handleMouse=function(e){if(!i.preventMouseRootClose&&i.props.onRootClose){i.props.onRootClose(e)}};i.handleKeyUp=function(e){if(e.keyCode===b&&i.props.onRootClose){i.props.onRootClose(e)}};i.preventMouseRootClose=false;return i}t.prototype.componentDidMount=function e(){if(!this.props.disabled){this.addEventListeners()}};t.prototype.componentDidUpdate=function e(t){if(!this.props.disabled&&t.disabled){this.addEventListeners()}else if(this.props.disabled&&!t.disabled){this.removeEventListeners()}};t.prototype.componentWillUnmount=function e(){if(!this.props.disabled){this.removeEventListeners()}};t.prototype.render=function e(){return this.props.children};return t}(u.default.Component);w.displayName="RootCloseWrapper";w.propTypes={onRootClose:o.default.func,children:o.default.element,disabled:o.default.bool,event:o.default.oneOf(["click","mousedown"])};w.defaultProps={event:"click"};t.default=w;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=c;var n=r(195);var a=s(n);var i=r(119);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return e&&e.tagName.toLowerCase()==="body"}function l(e){var t=(0,o.default)(e);var r=(0,a.default)(t);var n=r.innerWidth;if(!n){var i=t.documentElement.getBoundingClientRect();n=i.right-Math.abs(i.left)}return t.body.clientWidth<n}function c(e){var t=(0,a.default)(e);return t||u(e)?l(e):e.scrollHeight>e.clientHeight}e.exports=t["default"]},function(e,t,r){var n=r(27),a=r(1304),i=r(669);var o="Expected a function";var s=Math.max,u=Math.min;function l(e,t,r){var l,c,f,d,p,h,v=0,m=false,y=false,g=true;if(typeof e!="function"){throw new TypeError(o)}t=i(t)||0;if(n(r)){m=!!r.leading;y="maxWait"in r;f=y?s(i(r.maxWait)||0,t):f;g="trailing"in r?!!r.trailing:g}function b(t){var r=l,n=c;l=c=undefined;v=t;d=e.apply(n,r);return d}function A(e){v=e;p=setTimeout(E,t);return m?b(e):d}function _(e){var r=e-h,n=e-v,a=t-r;return y?u(a,f-n):a}function w(e){var r=e-h,n=e-v;return h===undefined||r>=t||r<0||y&&n>=f}function E(){var e=a();if(w(e)){return x(e)}p=setTimeout(E,_(e))}function x(e){p=undefined;if(g&&l){return b(e)}l=c=undefined;return d}function k(){if(p!==undefined){clearTimeout(p)}v=0;l=h=c=p=undefined}function S(){return p===undefined?d:x(a())}function O(){var e=a(),r=w(e);l=arguments;c=this;h=e;if(r){if(p===undefined){return A(h)}if(y){clearTimeout(p);p=setTimeout(E,t);return b(h)}}if(p===undefined){p=setTimeout(E,t)}return d}O.cancel=k;O.flush=S;return O}e.exports=l},function(e,t){function r(e){var t=e==null?0:e.length;return t?e[t-1]:undefined}e.exports=r},function(e,t,r){"use strict";r.r(t);r.d(t,"createStore",(function(){return o}));r.d(t,"combineReducers",(function(){return f}));r.d(t,"bindActionCreators",(function(){return p}));r.d(t,"applyMiddleware",(function(){return m}));r.d(t,"compose",(function(){return h}));var n=r(146);var a=r(148);var i={INIT:"@@redux/INIT"};function o(e,t,r){var s;if(typeof t==="function"&&typeof r==="undefined"){r=t;t=undefined}if(typeof r!=="undefined"){if(typeof r!=="function"){throw new Error("Expected the enhancer to be a function.")}return r(o)(e,t)}if(typeof e!=="function"){throw new Error("Expected the reducer to be a function.")}var u=e;var l=t;var c=[];var f=c;var d=false;function p(){if(f===c){f=c.slice()}}function h(){return l}function v(e){if(typeof e!=="function"){throw new Error("Expected listener to be a function.")}var t=true;p();f.push(e);return function r(){if(!t){return}t=false;p();var n=f.indexOf(e);f.splice(n,1)}}function m(e){if(!Object(n["a"])(e)){throw new Error("Actions must be plain objects. "+"Use custom middleware for async actions.")}if(typeof e.type==="undefined"){throw new Error('Actions may not have an undefined "type" property. '+"Have you misspelled a constant?")}if(d){throw new Error("Reducers may not dispatch actions.")}try{d=true;l=u(l,e)}finally{d=false}var t=c=f;for(var r=0;r<t.length;r++){var a=t[r];a()}return e}function y(e){if(typeof e!=="function"){throw new Error("Expected the nextReducer to be a function.")}u=e;m({type:i.INIT})}function g(){var e;var t=v;return e={subscribe:function e(r){if(typeof r!=="object"){throw new TypeError("Expected the observer to be an object.")}function n(){if(r.next){r.next(h())}}n();var a=t(n);return{unsubscribe:a}}},e[a["a"]]=function(){return this},e}m({type:i.INIT});return s={dispatch:m,subscribe:v,getState:h,replaceReducer:y},s[a["a"]]=g,s}function s(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function u(e,t){var r=t&&t.type;var n=r&&'"'+r.toString()+'"'||"an action";return"Given action "+n+', reducer "'+e+'" returned undefined. '+"To ignore an action, you must explicitly return the previous state. "+"If you want this reducer to hold no value, you can return null instead of undefined."}function l(e,t,r,a){var o=Object.keys(t);var s=r&&r.type===i.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0){return"Store does not have a valid reducer. Make sure the argument passed "+"to combineReducers is an object whose values are reducers."}if(!Object(n["a"])(e)){return"The "+s+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"')}var u=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!a[e]}));u.forEach((function(e){a[e]=true}));if(u.length>0){return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}}function c(e){Object.keys(e).forEach((function(t){var r=e[t];var n=r(undefined,{type:i.INIT});if(typeof n==="undefined"){throw new Error('Reducer "'+t+'" returned undefined during initialization. '+"If the state passed to the reducer is undefined, you must "+"explicitly return the initial state. The initial state may "+"not be undefined. If you don't want to set a value for this reducer, "+"you can use null instead of undefined.")}var a="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if(typeof r(undefined,{type:a})==="undefined"){throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+i.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the "+"current state for any unknown actions, unless it is undefined, "+"in which case you must return the initial state, regardless of the "+"action type. The initial state may not be undefined, but can be null.")}}))}function f(e){var t=Object.keys(e);var r={};for(var n=0;n<t.length;n++){var a=t[n];if(false){}if(typeof e[a]==="function"){r[a]=e[a]}}var i=Object.keys(r);var o=void 0;if(false){}var s=void 0;try{c(r)}catch(e){s=e}return function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments[1];if(s){throw s}if(false){var a}var o=false;var l={};for(var c=0;c<i.length;c++){var f=i[c];var d=r[f];var p=t[f];var h=d(p,n);if(typeof h==="undefined"){var v=u(f,n);throw new Error(v)}l[f]=h;o=o||h!==p}return o?l:t}}function d(e,t){return function(){return t(e.apply(undefined,arguments))}}function p(e,t){if(typeof e==="function"){return d(e,t)}if(typeof e!=="object"||e===null){throw new Error("bindActionCreators expected an object or a function, instead received "+(e===null?"null":typeof e)+". "+'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?')}var r=Object.keys(e);var n={};for(var a=0;a<r.length;a++){var i=r[a];var o=e[i];if(typeof o==="function"){n[i]=d(o,t)}}return n}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length===0){return function(e){return e}}if(t.length===1){return t[0]}return t.reduce((function(e,t){return function(){return e(t.apply(undefined,arguments))}}))}var v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}return function(e){return function(r,n,a){var i=e(r,n,a);var o=i.dispatch;var s=[];var u={getState:i.getState,dispatch:function e(t){return o(t)}};s=t.map((function(e){return e(u)}));o=h.apply(undefined,s)(i.dispatch);return v({},i,{dispatch:o})}}}function y(){}if(false){}},function(e,t,r){e.exports=r(991)},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(283));t.on=a.default;var i=n(r(284));t.off=i.default;var o=n(r(1004));t.filter=o.default;var s=n(r(1006));t.listen=s.default;var u={on:a.default,off:i.default,filter:o.default,listen:s.default};t.default=u},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(0);var i=m(a);var o=r(10);var s=m(o);var u=r(1);var l=m(u);var c=r(603);var f=m(c);var d=r(1015);var p=m(d);var h=r(342);var v=m(h);function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function A(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){A(t,e);function t(r,n){g(this,t);var a=b(this,e.call(this,r,n));a.handleHidden=function(){a.setState({exited:true});if(a.props.onExited){var e;(e=a.props).onExited.apply(e,arguments)}};a.state={exited:!r.show};a.onHiddenListener=a.handleHidden.bind(a);return a}t.prototype.componentWillReceiveProps=function e(t){if(t.show){this.setState({exited:false})}else if(!t.transition){this.setState({exited:true})}};t.prototype.render=function e(){var t=this.props,r=t.container,n=t.containerPadding,a=t.target,i=t.placement,o=t.shouldUpdatePosition,s=t.rootClose,u=t.children,c=t.transition,d=y(t,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);var h=d.show||c&&!this.state.exited;if(!h){return null}var m=u;m=l.default.createElement(p.default,{container:r,containerPadding:n,target:a,placement:i,shouldUpdatePosition:o},m);if(c){var g=d.onExit,b=d.onExiting,A=d.onEnter,_=d.onEntering,w=d.onEntered;m=l.default.createElement(c,{in:d.show,appear:true,onExit:g,onExiting:b,onExited:this.onHiddenListener,onEnter:A,onEntering:_,onEntered:w},m)}if(s){m=l.default.createElement(v.default,{onRootClose:d.onHide},m)}return l.default.createElement(f.default,{container:r},m)};return t}(l.default.Component);_.propTypes=n({},f.default.propTypes,p.default.propTypes,{show:i.default.bool,rootClose:i.default.bool,onHide:function e(t){var r=i.default.func;if(t.rootClose){r=r.isRequired}for(var n=arguments.length,a=Array(n>1?n-1:0),o=1;o<n;o++){a[o-1]=arguments[o]}return r.apply(undefined,[t].concat(a))},transition:s.default,onEnter:i.default.func,onEntering:i.default.func,onEntered:i.default.func,onExit:i.default.func,onExiting:i.default.func,onExited:i.default.func});t.default=_;e.exports=t["default"]},function(e,t,r){"use strict";(function(e){var n=r(223);var a=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o&&n["a"].process;var u=function(){try{var e=i&&i.require&&i.require("util").types;if(e){return e}return s&&s.binding&&s.binding("util")}catch(e){}}();t["a"]=u}).call(this,r(172)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"getTickValues",{enumerable:true,get:function e(){return n.getTickValues}});Object.defineProperty(t,"getNiceTickValues",{enumerable:true,get:function e(){return n.getNiceTickValues}});Object.defineProperty(t,"getTickValuesFixedDomain",{enumerable:true,get:function e(){return n.getTickValuesFixedDomain}});var n=r(1317)},function(e,t,r){var n=r(305),a=r(287),i=r(52);function o(e,t){var r={};t=i(t,3);a(e,(function(e,a,i){n(r,a,t(e,a,i))}));return r}e.exports=o},,,,function(e,t,r){"use strict";t.__esModule=true;t.readState=t.saveState=undefined;var n=r(24);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o={QuotaExceededError:true,QUOTA_EXCEEDED_ERR:true};var s={SecurityError:true};var u="@@History/";var l=function e(t){return u+t};var c=t.saveState=function e(t,r){if(!window.sessionStorage){false?undefined:void 0;return}try{if(r==null){window.sessionStorage.removeItem(l(t))}else{window.sessionStorage.setItem(l(t),JSON.stringify(r))}}catch(e){if(s[e.name]){false?undefined:void 0;return}if(o[e.name]&&window.sessionStorage.length===0){false?undefined:void 0;return}throw e}};var f=t.readState=function e(t){var r=void 0;try{r=window.sessionStorage.getItem(l(t))}catch(e){if(s[e.name]){false?undefined:void 0;return undefined}}if(r){try{return JSON.parse(r)}catch(e){}}return undefined}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(358);var a=r(359);var i=r(729);var o=r(730);var s=r(731);var u=r(732);var l=n.combineReducers({collection:a.default,book:i.default,loans:s.default,auth:o.default,preferences:u.default});t.default=l},function(e,t,r){"use strict";r.r(t);r.d(t,"createStore",(function(){return s}));r.d(t,"combineReducers",(function(){return d}));r.d(t,"bindActionCreators",(function(){return h}));r.d(t,"applyMiddleware",(function(){return g}));r.d(t,"compose",(function(){return y}));r.d(t,"__DO_NOT_USE__ActionTypes",(function(){return i}));var n=r(148);var a=function e(){return Math.random().toString(36).substring(7).split("").join(".")};var i={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function e(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function o(e){if(typeof e!=="object"||e===null)return false;var t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t}function s(e,t,r){var a;if(typeof t==="function"&&typeof r==="function"||typeof r==="function"&&typeof arguments[3]==="function"){throw new Error("It looks like you are passing several store enhancers to "+"createStore(). This is not supported. Instead, compose them "+"together to a single function")}if(typeof t==="function"&&typeof r==="undefined"){r=t;t=undefined}if(typeof r!=="undefined"){if(typeof r!=="function"){throw new Error("Expected the enhancer to be a function.")}return r(s)(e,t)}if(typeof e!=="function"){throw new Error("Expected the reducer to be a function.")}var u=e;var l=t;var c=[];var f=c;var d=false;function p(){if(f===c){f=c.slice()}}function h(){if(d){throw new Error("You may not call store.getState() while the reducer is executing. "+"The reducer has already received the state as an argument. "+"Pass it down from the top reducer instead of reading it from the store.")}return l}function v(e){if(typeof e!=="function"){throw new Error("Expected the listener to be a function.")}if(d){throw new Error("You may not call store.subscribe() while the reducer is executing. "+"If you would like to be notified after the store has been updated, subscribe from a "+"component and invoke store.getState() in the callback to access the latest state. "+"See https://redux.js.org/api-reference/store#subscribe(listener) for more details.")}var t=true;p();f.push(e);return function r(){if(!t){return}if(d){throw new Error("You may not unsubscribe from a store listener while the reducer is executing. "+"See https://redux.js.org/api-reference/store#subscribe(listener) for more details.")}t=false;p();var n=f.indexOf(e);f.splice(n,1)}}function m(e){if(!o(e)){throw new Error("Actions must be plain objects. "+"Use custom middleware for async actions.")}if(typeof e.type==="undefined"){throw new Error('Actions may not have an undefined "type" property. '+"Have you misspelled a constant?")}if(d){throw new Error("Reducers may not dispatch actions.")}try{d=true;l=u(l,e)}finally{d=false}var t=c=f;for(var r=0;r<t.length;r++){var n=t[r];n()}return e}function y(e){if(typeof e!=="function"){throw new Error("Expected the nextReducer to be a function.")}u=e;m({type:i.REPLACE})}function g(){var e;var t=v;return e={subscribe:function e(r){if(typeof r!=="object"||r===null){throw new TypeError("Expected the observer to be an object.")}function n(){if(r.next){r.next(h())}}n();var a=t(n);return{unsubscribe:a}}},e[n["a"]]=function(){return this},e}m({type:i.INIT});return a={dispatch:m,subscribe:v,getState:h,replaceReducer:y},a[n["a"]]=g,a}function u(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function l(e,t){var r=t&&t.type;var n=r&&'action "'+String(r)+'"'||"an action";return"Given "+n+', reducer "'+e+'" returned undefined. '+"To ignore an action, you must explicitly return the previous state. "+"If you want this reducer to hold no value, you can return null instead of undefined."}function c(e,t,r,n){var a=Object.keys(t);var s=r&&r.type===i.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(a.length===0){return"Store does not have a valid reducer. Make sure the argument passed "+"to combineReducers is an object whose values are reducers."}if(!o(e)){return"The "+s+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+a.join('", "')+'"')}var u=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!n[e]}));u.forEach((function(e){n[e]=true}));if(r&&r.type===i.REPLACE)return;if(u.length>0){return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+a.join('", "')+'". Unexpected keys will be ignored.')}}function f(e){Object.keys(e).forEach((function(t){var r=e[t];var n=r(undefined,{type:i.INIT});if(typeof n==="undefined"){throw new Error('Reducer "'+t+'" returned undefined during initialization. '+"If the state passed to the reducer is undefined, you must "+"explicitly return the initial state. The initial state may "+"not be undefined. If you don't want to set a value for this reducer, "+"you can use null instead of undefined.")}if(typeof r(undefined,{type:i.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+i.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the "+"current state for any unknown actions, unless it is undefined, "+"in which case you must return the initial state, regardless of the "+"action type. The initial state may not be undefined, but can be null.")}}))}function d(e){var t=Object.keys(e);var r={};for(var n=0;n<t.length;n++){var a=t[n];if(false){}if(typeof e[a]==="function"){r[a]=e[a]}}var i=Object.keys(r);var o;if(false){}var s;try{f(r)}catch(e){s=e}return function e(t,n){if(t===void 0){t={}}if(s){throw s}if(false){var a}var o=false;var u={};for(var c=0;c<i.length;c++){var f=i[c];var d=r[f];var p=t[f];var h=d(p,n);if(typeof h==="undefined"){var v=l(f,n);throw new Error(v)}u[f]=h;o=o||h!==p}return o?u:t}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if(typeof e==="function"){return p(e,t)}if(typeof e!=="object"||e===null){throw new Error("bindActionCreators expected an object or a function, instead received "+(e===null?"null":typeof e)+". "+'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?')}var r=Object.keys(e);var n={};for(var a=0;a<r.length;a++){var i=r[a];var o=e[i];if(typeof o==="function"){n[i]=p(o,t)}}return n}function v(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){v(e,t,r[t])}))}return e}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length===0){return function(e){return e}}if(t.length===1){return t[0]}return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return function(e){return function(){var r=e.apply(void 0,arguments);var n=function e(){throw new Error("Dispatching while constructing your middleware is not allowed. "+"Other middleware would not be applied to this dispatch.")};var a={getState:r.getState,dispatch:function e(){return n.apply(void 0,arguments)}};var i=t.map((function(e){return e(a)}));n=y.apply(void 0,i)(r.dispatch);return m({},r,{dispatch:n})}}}function b(){}if(false){}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};var a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});t.initialState=void 0;var i=r(728);var o=r(64);t.initialState={url:null,data:null,isFetching:false,isFetchingPage:false,error:null,history:[]};var s=function(e,r){var s,u;if(e===void 0){e=t.initialState}switch(r.type){case o.default.COLLECTION_REQUEST:return n(n({},e),{isFetching:true,error:null});case o.default.COLLECTION_FAILURE:return n(n({},e),{isFetching:false,error:r.error});case o.default.COLLECTION_LOAD:return n(n({},e),{data:r.data,url:r.url?r.url:e.url,isFetching:false,error:null,history:i.default(e,r)});case o.default.COLLECTION_CLEAR:return n(n({},e),{data:null,url:null,error:null,history:e.history.slice(0,-1)});case o.default.PAGE_REQUEST:return n(n({},e),{pageUrl:r.url,isFetchingPage:true,error:null});case o.default.PAGE_FAILURE:return n(n({},e),{isFetchingPage:false,error:r.error});case o.default.PAGE_LOAD:return n(n({},e),{data:Object.assign({},e.data,{books:a((u=(s=e.data)===null||s===void 0?void 0:s.books)!==null&&u!==void 0?u:[]).concat(r.data.books),nextPageUrl:r.data.nextPageUrl}),isFetchingPage:false});case o.default.SEARCH_DESCRIPTION_LOAD:return n(n({},e),{data:Object.assign({},e.data,{search:r.data})});case o.default.CLOSE_ERROR:return n(n({},e),{error:null});default:return e}};t.default=s},function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});t.isServerSamlProvider=t.getEnglishValue=t.flattenSamlProviders=t.generateCredentials=t.SAML_AUTH_TYPE=void 0;t.SAML_AUTH_TYPE="http://librarysimplified.org/authtype/SAML-2.0";function a(e,t){var r=btoa(e+":"+t);return"Basic "+r}t.generateCredentials=a;function i(e){return e.reduce((function(e,r){if(t.isServerSamlProvider(r)){return n(e,o(r))}return n(e,[r])}),[])}t.flattenSamlProviders=i;function o(e){return e.method.links.map((function(r){var n;return{method:{href:r.href,type:e.method.type,description:(n=t.getEnglishValue(r.display_names))!==null&&n!==void 0?n:"Unknown SAML Provider"},id:r.href,plugin:e.plugin}}))}t.getEnglishValue=function(e){var t;return(t=e.find((function(e){return e.language==="en"})))===null||t===void 0?void 0:t.value};t.isServerSamlProvider=function(e){return e.id===t.SAML_AUTH_TYPE&&"links"in e.method}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(735);var a=r(236);t.OPDSFeed=a.default;var i=r(362);t.NavigationFeed=i.default;var o=r(363);t.AcquisitionFeed=o.default;var s=r(239);t.OPDSEntry=s.default;var u=r(373);t.PartialOPDSEntry=u.default;var l=r(374);t.Contributor=l.default;var c=r(376);t.Category=c.default;var f=r(375);t.Series=f.default;var d=r(377);t.Summary=d.default;var p=r(58);t.OPDSLink=p.default;var h=r(365);t.OPDSCatalogRootLink=h.default;var v=r(366);t.OPDSFacetLink=v.default;var m=r(367);t.SearchLink=m.default;var y=r(237);t.AlternateLink=y.default;var g=r(238);t.CompleteEntryLink=g.default;var b=r(369);t.OPDSCrawlableLink=b.default;var A=r(371);t.OPDSShelfLink=A.default;var _=r(235);t.OPDSAcquisitionLink=_.default;var w=r(368);t.OPDSArtworkLink=w.default;var E=r(370);t.OPDSCollectionLink=E.default;t.default=n.default},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(236);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(236);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=r(365);var o=r(366);var s=r(367);var u=r(235);var l=r(737);var c=r(738);var f=r(739);var d=r(740);var p=r(741);var h=r(368);var v=r(237);var m=r(238);var y=r(369);var g=r(370);var b=r(371);var A=r(99);var _=r(59);var w=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.parseAttribute(e,"href");var r=this.parseAttribute(e,"rel");var n=this.parseAttribute(e,"type");var _=this.parseAttribute(e,"title");var w=this.parseAttribute(e,"role");if(r===i.default.REL){return new i.default({href:t,type:n,title:_})}else if(r===o.default.REL){var E=this.prefixes[A.default.OPDS_URI];var x=this.parseAttribute(e,E+"facetGroup");var k=this.parseAttribute(e,E+"activeFacet")==="true";var S=this.prefixes[A.default.THR_URI];var O=parseInt(this.parseAttribute(e,S+"count"),10);return new o.default({href:t,type:n,title:_,facetGroup:x,activeFacet:k,count:O})}else if(r===s.default.REL){return new s.default({href:t,type:n,title:_})}else if(this.isAcquisitionLinkRel(r)){var E=this.prefixes[A.default.OPDS_URI];var M=new l.default(this.prefixes);var D=this.parseSubtags(e,E+"price",M);var T=new c.default(this.prefixes);var L=this.parseSubtags(e,E+"indirectAcquisition",T);var C=new f.default(this.prefixes);var j=this.parseSubtag(e,E+"availability",C);var N=new d.default(this.prefixes);var I=this.parseSubtag(e,E+"holds",N);var P=new p.default(this.prefixes);var R=this.parseSubtag(e,E+"copies",P);return new u.default({href:t,rel:r,type:n,title:_,prices:D,indirectAcquisitions:L,availability:j,holds:I,copies:R})}else if(r===v.default.REL){if(n===m.default.TYPE){return new m.default({href:t,type:n,title:_})}else{return new v.default({href:t,type:n,title:_})}}else if(this.isArtworkLinkRel(r)){return new h.default({href:t,rel:r,type:n,title:_})}else if(r===y.default.REL){return new y.default({href:t,rel:r,type:n,title:_})}else if(r===g.default.REL){return new g.default({href:t,rel:r,type:n,title:_})}else if(r===b.default.REL){return new b.default({href:t,rel:r})}else{return new a.default({href:t,rel:r,type:n,title:_,role:w})}};t.prototype.isAcquisitionLinkRel=function(e){return u.default.RELS.indexOf(e)!==-1};t.prototype.isArtworkLinkRel=function(e){return h.default.RELS.indexOf(e)!==-1};return t}(_.default);t.default=w},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="start";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/facet";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="search";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.BASE_REL="http://opds-spec.org/image";t.IMAGE_REL=t.BASE_REL;t.THUMBNAIL_REL=t.BASE_REL+"/thumbnail";t.RELS=[t.IMAGE_REL,t.THUMBNAIL_REL];return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/crawlable";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="collection";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/shelf";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(239);var i=r(373);var o=r(238);var s=r(364);var u=r(742);var l=r(743);var c=r(744);var f=r(99);var d=r(377);var p=r(59);var h=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=new s.default(this.prefixes);var r=this.prefixes[f.default.ATOM_URI];var n=this.prefixes[f.default.DC_URI];var p=this.prefixes[f.default.SCHEMA_URI];var h=this.parseSubtagContent(e,r+"id");var v=this.parseSubtagContent(e,r+"updated");var m=this.parseSubtagContent(e,r+"title");var y=new u.default(this.prefixes);var g=this.parseSubtags(e,r+"author",y);var b=this.parseSubtags(e,r+"contributor",y);var A=this.parseSubtagContent(e,p+"alternativeHeadline");var _=new l.default(this.prefixes);var w=this.parseSubtag(e,p+"Series",_);var E=this.parseSubtags(e,r+"link",t);var x=new c.default(this.prefixes);var k=this.parseSubtags(e,r+"category",x);var S=e[n+"identifier"];var O;if(S&&S.length>0){O=S.map((function(e){return e["_"]}))}else{O=[]}var M=this.parseSubtagContent(e,n+"issued");var D=this.parseSubtagContent(e,n+"language");var T=this.parseSubtagContent(e,r+"rights");var L=this.parseSubtagContent(e,n+"publisher");var C=this.parseSubtagContent(e,r+"published");var j;var N=this.parseSubtagContent(e,r+"content");if(!N){var I=e[r+"content"];if(I&&I.length>0){j=this.parseAttribute(I[0],"src")}}if(!N){N=this.parseSubtagContent(e,r+"summary")}var P=new d.default({content:N,link:j});var R=a.default;var F=E.find((function(e){return e instanceof o.default}));if(F){R=i.default}return new R({id:h,updated:v,title:m,authors:g,contributors:b,subtitle:A,series:w,links:E,categories:k,identifiers:O,issued:M,language:D,rights:T,publisher:L,published:C,summary:P,unparsed:e})};return t}(p.default);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(239);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){(function(){"use strict";var e,n,a,i,o=function(e,t){for(var r in t){if(s.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},s={}.hasOwnProperty;n=r(240);e=r(745);a=r(754);i=r(392);t.defaults=n.defaults;t.processors=i;t.ValidationError=function(e){o(t,e);function t(e){this.message=e}return t}(Error);t.Builder=e.Builder;t.Parser=a.Parser;t.parseString=a.parseString;t.parseStringPromise=a.parseStringPromise}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(){}e.prototype.hasFeature=function(e,t){return true};e.prototype.createDocumentType=function(e,t,r){throw new Error("This DOM method is not implemented.")};e.prototype.createDocument=function(e,t,r){throw new Error("This DOM method is not implemented.")};e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")};e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c=function(e,t){for(var r in t){if(f.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},f={}.hasOwnProperty;l=r(71).isPlainObject;a=r(379);n=r(747);o=r(47);t=r(26);u=r(383);s=r(254);e.exports=i=function(e){c(r,e);function r(e){r.__super__.constructor.call(this,null);this.name="#document";this.type=t.Document;this.documentURI=null;this.domConfig=new n;e||(e={});if(!e.writer){e.writer=new s}this.options=e;this.stringify=new u(e)}Object.defineProperty(r.prototype,"implementation",{value:new a});Object.defineProperty(r.prototype,"doctype",{get:function(){var e,r,n,a;a=this.children;for(r=0,n=a.length;r<n;r++){e=a[r];if(e.type===t.DocType){return e}}return null}});Object.defineProperty(r.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(r.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(r.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(r.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(r.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(r.prototype,"origin",{get:function(){return null}});Object.defineProperty(r.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(r.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(r.prototype,"contentType",{get:function(){return null}});r.prototype.end=function(e){var t;t={};if(!e){e=this.options.writer}else if(l(e)){t=e;e=this.options.writer}return e.document(this,e.filterOptions(t))};r.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))};r.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createProcessingInstruction=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.importNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createElementNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.renameNode=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createNodeIterator=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createTreeWalker=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};return r}(o)}).call(this)},function(e,t,r){(function(){var t,n,a;t=r(26);a=r(47);e.exports=n=function(){function e(e,r,n){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(r==null){throw new Error("Missing attribute name. "+this.debugInfo(r))}this.name=this.stringify.name(r);this.value=this.stringify.attValue(n);this.type=t.Attribute;this.isId=false;this.schemaTypeInfo=null}Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}});Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(e.prototype,"prefix",{get:function(){return""}});Object.defineProperty(e.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(e.prototype,"specified",{get:function(){return true}});e.prototype.clone=function(){return Object.create(this)};e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))};e.prototype.debugInfo=function(e){e=e||this.name;if(e==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+e+"}, parent: <"+this.parent.name+">"}};e.prototype.isEqualNode=function(e){if(e.namespaceURI!==this.namespaceURI){return false}if(e.prefix!==this.prefix){return false}if(e.localName!==this.localName){return false}if(e.value!==this.value){return false}return true};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i=function(e,t){for(var r in t){if(o.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},o={}.hasOwnProperty;a=r(47);t=r(26);e.exports=n=function(e){i(r,e);function r(e){r.__super__.constructor.call(this,e);this.type=t.Dummy}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return""};return r}(a)}).call(this)},function(e,t){(function(){var t,r=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;e.exports=t=function(){function e(e){this.assertLegalName=r(this.assertLegalName,this);this.assertLegalChar=r(this.assertLegalChar,this);var t,a,i;e||(e={});this.options=e;if(!this.options.version){this.options.version="1.0"}a=e.stringify||{};for(t in a){if(!n.call(a,t))continue;i=a[t];this[t]=i}}e.prototype.name=function(e){if(this.options.noValidation){return e}return this.assertLegalName(""+e||"")};e.prototype.text=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(this.textEscape(""+e||""))};e.prototype.cdata=function(e){if(this.options.noValidation){return e}e=""+e||"";e=e.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(e)};e.prototype.comment=function(e){if(this.options.noValidation){return e}e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};e.prototype.raw=function(e){if(this.options.noValidation){return e}return""+e||""};e.prototype.attValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(this.attEscape(e=""+e||""))};e.prototype.insTarget=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.insValue=function(e){if(this.options.noValidation){return e}e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return this.assertLegalChar(e)};e.prototype.xmlVersion=function(e){if(this.options.noValidation){return e}e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};e.prototype.xmlEncoding=function(e){if(this.options.noValidation){return e}e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return this.assertLegalChar(e)};e.prototype.xmlStandalone=function(e){if(this.options.noValidation){return e}if(e){return"yes"}else{return"no"}};e.prototype.dtdPubID=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdSysID=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdElementValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdAttType=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdAttDefault=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdEntityValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdNData=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.convertAttKey="@";e.prototype.convertPIKey="?";e.prototype.convertTextKey="#text";e.prototype.convertCDataKey="#cdata";e.prototype.convertCommentKey="#comment";e.prototype.convertRawKey="#raw";e.prototype.assertLegalChar=function(e){var t,r;if(this.options.noValidation){return e}t="";if(this.options.version==="1.0"){t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(r=e.match(t)){throw new Error("Invalid character in string: "+e+" at index "+r.index)}}else if(this.options.version==="1.1"){t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(r=e.match(t)){throw new Error("Invalid character in string: "+e+" at index "+r.index)}}return e};e.prototype.assertLegalName=function(e){var t;if(this.options.noValidation){return e}this.assertLegalChar(e);t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!e.match(t)){throw new Error("Invalid character in name")}return e};e.prototype.textEscape=function(e){var t;if(this.options.noValidation){return e}t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")};e.prototype.attEscape=function(e){var t;if(this.options.noValidation){return e}t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f,d,p,h,v,m,y,g,b={}.hasOwnProperty;g=r(71).assign;t=r(26);c=r(245);f=r(246);a=r(243);i=r(244);p=r(241);v=r(251);m=r(252);h=r(253);d=r(382);o=r(247);s=r(249);u=r(248);l=r(250);n=r(174);e.exports=y=function(){function e(e){var t,r,n;e||(e={});this.options=e;r=e.writer||{};for(t in r){if(!b.call(r,t))continue;n=r[t];this["_"+t]=this[t];this[t]=n}}e.prototype.filterOptions=function(e){var t,r,a,i,o,s,u,l;e||(e={});e=g({},this.options,e);t={writer:this};t.pretty=e.pretty||false;t.allowEmpty=e.allowEmpty||false;t.indent=(r=e.indent)!=null?r:" ";t.newline=(a=e.newline)!=null?a:"\n";t.offset=(i=e.offset)!=null?i:0;t.dontPrettyTextNodes=(o=(s=e.dontPrettyTextNodes)!=null?s:e.dontprettytextnodes)!=null?o:0;t.spaceBeforeSlash=(u=(l=e.spaceBeforeSlash)!=null?l:e.spacebeforeslash)!=null?u:"";if(t.spaceBeforeSlash===true){t.spaceBeforeSlash=" "}t.suppressPrettyCount=0;t.user={};t.state=n.None;return t};e.prototype.indent=function(e,t,r){var n;if(!t.pretty||t.suppressPrettyCount){return""}else if(t.pretty){n=(r||0)+t.offset+1;if(n>0){return new Array(n).join(t.indent)}}return""};e.prototype.endline=function(e,t,r){if(!t.pretty||t.suppressPrettyCount){return""}else{return t.newline}};e.prototype.attribute=function(e,t,r){var n;this.openAttribute(e,t,r);n=" "+e.name+'="'+e.value+'"';this.closeAttribute(e,t,r);return n};e.prototype.cdata=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<![CDATA[";t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+="]]>"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.comment=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"\x3c!-- ";t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=" --\x3e"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.declaration=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<?xml";t.state=n.InsideTag;a+=' version="'+e.version+'"';if(e.encoding!=null){a+=' encoding="'+e.encoding+'"'}if(e.standalone!=null){a+=' standalone="'+e.standalone+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+"?>";a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.docType=function(e,t,r){var a,i,o,s,u;r||(r=0);this.openNode(e,t,r);t.state=n.OpenTag;s=this.indent(e,t,r);s+="<!DOCTYPE "+e.root().name;if(e.pubID&&e.sysID){s+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.sysID){s+=' SYSTEM "'+e.sysID+'"'}if(e.children.length>0){s+=" [";s+=this.endline(e,t,r);t.state=n.InsideTag;u=e.children;for(i=0,o=u.length;i<o;i++){a=u[i];s+=this.writeChildNode(a,t,r+1)}t.state=n.CloseTag;s+="]"}t.state=n.CloseTag;s+=t.spaceBeforeSlash+">";s+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return s};e.prototype.element=function(e,r,a){var i,o,s,u,l,c,f,d,p,h,v,m,y,g;a||(a=0);h=false;v="";this.openNode(e,r,a);r.state=n.OpenTag;v+=this.indent(e,r,a)+"<"+e.name;m=e.attribs;for(p in m){if(!b.call(m,p))continue;i=m[p];v+=this.attribute(i,r,a)}s=e.children.length;u=s===0?null:e.children[0];if(s===0||e.children.every((function(e){return(e.type===t.Text||e.type===t.Raw)&&e.value===""}))){if(r.allowEmpty){v+=">";r.state=n.CloseTag;v+="</"+e.name+">"+this.endline(e,r,a)}else{r.state=n.CloseTag;v+=r.spaceBeforeSlash+"/>"+this.endline(e,r,a)}}else if(r.pretty&&s===1&&(u.type===t.Text||u.type===t.Raw)&&u.value!=null){v+=">";r.state=n.InsideTag;r.suppressPrettyCount++;h=true;v+=this.writeChildNode(u,r,a+1);r.suppressPrettyCount--;h=false;r.state=n.CloseTag;v+="</"+e.name+">"+this.endline(e,r,a)}else{if(r.dontPrettyTextNodes){y=e.children;for(l=0,f=y.length;l<f;l++){o=y[l];if((o.type===t.Text||o.type===t.Raw)&&o.value!=null){r.suppressPrettyCount++;h=true;break}}}v+=">"+this.endline(e,r,a);r.state=n.InsideTag;g=e.children;for(c=0,d=g.length;c<d;c++){o=g[c];v+=this.writeChildNode(o,r,a+1)}r.state=n.CloseTag;v+=this.indent(e,r,a)+"</"+e.name+">";if(h){r.suppressPrettyCount--}v+=this.endline(e,r,a);r.state=n.None}this.closeNode(e,r,a);return v};e.prototype.writeChildNode=function(e,r,n){switch(e.type){case t.CData:return this.cdata(e,r,n);case t.Comment:return this.comment(e,r,n);case t.Element:return this.element(e,r,n);case t.Raw:return this.raw(e,r,n);case t.Text:return this.text(e,r,n);case t.ProcessingInstruction:return this.processingInstruction(e,r,n);case t.Dummy:return"";case t.Declaration:return this.declaration(e,r,n);case t.DocType:return this.docType(e,r,n);case t.AttributeDeclaration:return this.dtdAttList(e,r,n);case t.ElementDeclaration:return this.dtdElement(e,r,n);case t.EntityDeclaration:return this.dtdEntity(e,r,n);case t.NotationDeclaration:return this.dtdNotation(e,r,n);default:throw new Error("Unknown XML node type: "+e.constructor.name)}};e.prototype.processingInstruction=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<?";t.state=n.InsideTag;a+=e.target;if(e.value){a+=" "+e.value}t.state=n.CloseTag;a+=t.spaceBeforeSlash+"?>";a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.raw=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r);t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.text=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r);t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdAttList=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ATTLIST";t.state=n.InsideTag;a+=" "+e.elementName+" "+e.attributeName+" "+e.attributeType;if(e.defaultValueType!=="#DEFAULT"){a+=" "+e.defaultValueType}if(e.defaultValue){a+=' "'+e.defaultValue+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdElement=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ELEMENT";t.state=n.InsideTag;a+=" "+e.name+" "+e.value;t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdEntity=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ENTITY";t.state=n.InsideTag;if(e.pe){a+=" %"}a+=" "+e.name;if(e.value){a+=' "'+e.value+'"'}else{if(e.pubID&&e.sysID){a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.sysID){a+=' SYSTEM "'+e.sysID+'"'}if(e.nData){a+=" NDATA "+e.nData}}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdNotation=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!NOTATION";t.state=n.InsideTag;a+=" "+e.name;if(e.pubID&&e.sysID){a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.pubID){a+=' PUBLIC "'+e.pubID+'"'}else if(e.sysID){a+=' SYSTEM "'+e.sysID+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.openNode=function(e,t,r){};e.prototype.closeNode=function(e,t,r){};e.prototype.openAttribute=function(e,t,r){};e.prototype.closeAttribute=function(e,t,r){};return e}()}).call(this)},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return r.call(e)=="[object Array]"}},function(e,t,r){"use strict";(function(t,n){var a=r(175);e.exports=E;var i=r(385);var o;E.ReadableState=w;var s=r(142).EventEmitter;var u=function(e,t){return e.listeners(t).length};var l=r(387);var c=r(176).Buffer;var f=t.Uint8Array||function(){};function d(e){return c.from(e)}function p(e){return c.isBuffer(e)||e instanceof f}var h=Object.create(r(152));h.inherits=r(125);var v=r(759);var m=void 0;if(v&&v.debuglog){m=v.debuglog("stream")}else{m=function(){}}var y=r(760);var g=r(388);var b;h.inherits(E,l);var A=["error","close","destroy","pause","resume"];function _(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(i(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function w(e,t){o=o||r(100);e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.readableObjectMode;var a=e.highWaterMark;var i=e.readableHighWaterMark;var s=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new y;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!b)b=r(258).StringDecoder;this.decoder=new b(e.encoding);this.encoding=e.encoding}}function E(e){o=o||r(100);if(!(this instanceof E))return new E(e);this._readableState=new w(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}l.call(this)}Object.defineProperty(E.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});E.prototype.destroy=g.destroy;E.prototype._undestroy=g.undestroy;E.prototype._destroy=function(e,t){this.push(null);t(e)};E.prototype.push=function(e,t){var r=this._readableState;var n;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=c.from(e,t);t=""}n=true}}else{n=true}return x(this,e,t,false,n)};E.prototype.unshift=function(e){return x(this,e,null,true,false)};function x(e,t,r,n,a){var i=e._readableState;if(t===null){i.reading=false;L(e,i)}else{var o;if(!a)o=S(i,t);if(o){e.emit("error",o)}else if(i.objectMode||t&&t.length>0){if(typeof t!=="string"&&!i.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=d(t)}if(n){if(i.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else k(e,i,t,true)}else if(i.ended){e.emit("error",new Error("stream.push() after EOF"))}else{i.reading=false;if(i.decoder&&!r){t=i.decoder.write(t);if(i.objectMode||t.length!==0)k(e,i,t,false);else N(e,i)}else{k(e,i,t,false)}}}else if(!n){i.reading=false}}return O(i)}function k(e,t,r,n){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(n)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)C(e)}N(e,t)}function S(e,t){var r;if(!p(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function O(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}E.prototype.isPaused=function(){return this._readableState.flowing===false};E.prototype.setEncoding=function(e){if(!b)b=r(258).StringDecoder;this._readableState.decoder=new b(e);this._readableState.encoding=e;return this};var M=8388608;function D(e){if(e>=M){e=M}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function T(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=D(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}E.prototype.read=function(e){m("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){m("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)V(this);else C(this);return null}e=T(e,t);if(e===0&&t.ended){if(t.length===0)V(this);return null}var n=t.needReadable;m("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;m("length less than watermark",n)}if(t.ended||t.reading){n=false;m("reading or ended",n)}else if(n){m("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=T(r,t)}var a;if(e>0)a=H(e,t);else a=null;if(a===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)V(this)}if(a!==null)this.emit("data",a);return a};function L(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;C(e)}function C(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){m("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)a.nextTick(j,e);else j(e)}}function j(e){m("emit readable");e.emit("readable");B(e)}function N(e,t){if(!t.readingMore){t.readingMore=true;a.nextTick(I,e,t)}}function I(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){m("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}E.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};E.prototype.pipe=function(e,t){var r=this;var i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1;m("pipe count=%d opts=%j",i.pipesCount,t);var o=(!t||t.end!==false)&&e!==n.stdout&&e!==n.stderr;var s=o?c:A;if(i.endEmitted)a.nextTick(s);else r.once("end",s);e.on("unpipe",l);function l(e,t){m("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;p()}}}function c(){m("onend");e.end()}var f=P(r);e.on("drain",f);var d=false;function p(){m("cleanup");e.removeListener("close",g);e.removeListener("finish",b);e.removeListener("drain",f);e.removeListener("error",y);e.removeListener("unpipe",l);r.removeListener("end",c);r.removeListener("end",A);r.removeListener("data",v);d=true;if(i.awaitDrain&&(!e._writableState||e._writableState.needDrain))f()}var h=false;r.on("data",v);function v(t){m("ondata");h=false;var n=e.write(t);if(false===n&&!h){if((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&K(i.pipes,e)!==-1)&&!d){m("false write response, pause",r._readableState.awaitDrain);r._readableState.awaitDrain++;h=true}r.pause()}}function y(t){m("onerror",t);A();e.removeListener("error",y);if(u(e,"error")===0)e.emit("error",t)}_(e,"error",y);function g(){e.removeListener("finish",b);A()}e.once("close",g);function b(){m("onfinish");e.removeListener("close",g);A()}e.once("finish",b);function A(){m("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!i.flowing){m("pipe resume");r.resume()}return e};function P(e){return function(){var t=e._readableState;m("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&u(e,"data")){t.flowing=true;B(e)}}}E.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var n=t.pipes;var a=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var i=0;i<a;i++){n[i].emit("unpipe",this,r)}return this}var o=K(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};E.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var n=this._readableState;if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.emittedReadable=false;if(!n.reading){a.nextTick(R,this)}else if(n.length){C(this)}}}return r};E.prototype.addListener=E.prototype.on;function R(e){m("readable nexttick read 0");e.read(0)}E.prototype.resume=function(){var e=this._readableState;if(!e.flowing){m("resume");e.flowing=true;F(this,e)}return this};function F(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;a.nextTick(Y,e,t)}}function Y(e,t){if(!t.reading){m("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");B(e);if(t.flowing&&!t.reading)e.read(0)}E.prototype.pause=function(){m("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){m("pause");this._readableState.flowing=false;this.emit("pause")}return this};function B(e){var t=e._readableState;m("flow",t.flowing);while(t.flowing&&e.read()!==null){}}E.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=false;e.on("end",(function(){m("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(a){m("wrapped data");if(r.decoder)a=r.decoder.write(a);if(r.objectMode&&(a===null||a===undefined))return;else if(!r.objectMode&&(!a||!a.length))return;var i=t.push(a);if(!i){n=true;e.pause()}}));for(var a in e){if(this[a]===undefined&&typeof e[a]==="function"){this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a)}}for(var i=0;i<A.length;i++){e.on(A[i],this.emit.bind(this,A[i]))}this._read=function(t){m("wrapped _read",t);if(n){n=false;e.resume()}};return this};Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});E._fromList=H;function H(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=U(e,t.buffer,t.decoder)}return r}function U(e,t,r){var n;if(e<t.head.data.length){n=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){n=t.shift()}else{n=r?z(e,t):q(e,t)}return n}function z(e,t){var r=t.head;var n=1;var a=r.data;e-=a.length;while(r=r.next){var i=r.data;var o=e>i.length?i.length:e;if(o===i.length)a+=i;else a+=i.slice(0,e);e-=o;if(e===0){if(o===i.length){++n;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=i.slice(o)}break}++n}t.length-=n;return a}function q(e,t){var r=c.allocUnsafe(e);var n=t.head;var a=1;n.data.copy(r);e-=n.data.length;while(n=n.next){var i=n.data;var o=e>i.length?i.length:e;i.copy(r,r.length-e,0,o);e-=o;if(e===0){if(o===i.length){++a;if(n.next)t.head=n.next;else t.head=t.tail=null}else{t.head=n;n.data=i.slice(o)}break}++a}t.length-=a;return r}function V(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;a.nextTick(W,t,e)}}function W(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function K(e,t){for(var r=0,n=e.length;r<n;r++){if(e[r]===t)return r}return-1}}).call(this,r(25),r(126))},function(e,t,r){e.exports=r(142).EventEmitter},function(e,t,r){"use strict";var n=r(175);function a(e,t){var r=this;var a=this._readableState&&this._readableState.destroyed;var i=this._writableState&&this._writableState.destroyed;if(a||i){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){n.nextTick(o,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){n.nextTick(o,r,e);if(r._writableState){r._writableState.errorEmitted=true}}else if(t){t(e)}}));return this}function i(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function o(e,t){e.emit("error",t)}e.exports={destroy:a,undestroy:i}},function(e,t,r){(function(e){var n=typeof e!=="undefined"&&e||typeof self!=="undefined"&&self||window;var a=Function.prototype.apply;t.setTimeout=function(){return new i(a.call(setTimeout,n,arguments),clearTimeout)};t.setInterval=function(){return new i(a.call(setInterval,n,arguments),clearInterval)};t.clearTimeout=t.clearInterval=function(e){if(e){e.close()}};function i(e,t){this._id=e;this._clearFn=t}i.prototype.unref=i.prototype.ref=function(){};i.prototype.close=function(){this._clearFn.call(n,this._id)};t.enroll=function(e,t){clearTimeout(e._idleTimeoutId);e._idleTimeout=t};t.unenroll=function(e){clearTimeout(e._idleTimeoutId);e._idleTimeout=-1};t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;if(t>=0){e._idleTimeoutId=setTimeout((function t(){if(e._onTimeout)e._onTimeout()}),t)}};r(390);t.setImmediate=typeof self!=="undefined"&&self.setImmediate||typeof e!=="undefined"&&e.setImmediate||this&&this.setImmediate;t.clearImmediate=typeof self!=="undefined"&&self.clearImmediate||typeof e!=="undefined"&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(25))},function(e,t,r){(function(e,t){(function(e,r){"use strict";if(e.setImmediate){return}var n=1;var a={};var i=false;var o=e.document;var s;function u(e){if(typeof e!=="function"){e=new Function(""+e)}var t=new Array(arguments.length-1);for(var r=0;r<t.length;r++){t[r]=arguments[r+1]}var i={callback:e,args:t};a[n]=i;s(n);return n++}function l(e){delete a[e]}function c(e){var t=e.callback;var n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n);break}}function f(e){if(i){setTimeout(f,0,e)}else{var t=a[e];if(t){i=true;try{c(t)}finally{l(e);i=false}}}}function d(){s=function(e){t.nextTick((function(){f(e)}))}}function p(){if(e.postMessage&&!e.importScripts){var t=true;var r=e.onmessage;e.onmessage=function(){t=false};e.postMessage("","*");e.onmessage=r;return t}}function h(){var t="setImmediate$"+Math.random()+"$";var r=function(r){if(r.source===e&&typeof r.data==="string"&&r.data.indexOf(t)===0){f(+r.data.slice(t.length))}};if(e.addEventListener){e.addEventListener("message",r,false)}else{e.attachEvent("onmessage",r)}s=function(r){e.postMessage(t+r,"*")}}function v(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;f(t)};s=function(t){e.port2.postMessage(t)}}function m(){var e=o.documentElement;s=function(t){var r=o.createElement("script");r.onreadystatechange=function(){f(t);r.onreadystatechange=null;e.removeChild(r);r=null};e.appendChild(r)}}function y(){s=function(e){setTimeout(f,0,e)}}var g=Object.getPrototypeOf&&Object.getPrototypeOf(e);g=g&&g.setTimeout?g:e;if({}.toString.call(e.process)==="[object process]"){d()}else if(p()){h()}else if(e.MessageChannel){v()}else if(o&&"onreadystatechange"in o.createElement("script")){m()}else{y()}g.setImmediate=u;g.clearImmediate=l})(typeof self==="undefined"?typeof e==="undefined"?this:e:self)}).call(this,r(25),r(126))},function(e,t,r){"use strict";e.exports=o;var n=r(100);var a=Object.create(r(152));a.inherits=r(125);a.inherits(o,n);function i(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(!n){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);n(e);var a=this._readableState;a.reading=false;if(a.needReadable||a.length<a.highWaterMark){this._read(a.highWaterMark)}}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e);this._transformState={afterTransform:i.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",s)}function s(){var e=this;if(typeof this._flush==="function"){this._flush((function(t,r){u(e,t,r)}))}else{u(this,null,null)}}o.prototype.push=function(e,t){this._transformState.needTransform=false;return n.prototype.push.call(this,e,t)};o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};o.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r;n.writechunk=e;n.writeencoding=t;if(!n.transforming){var a=this._readableState;if(n.needTransform||a.needReadable||a.length<a.highWaterMark)this._read(a.highWaterMark)}};o.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e);r.emit("close")}))};function u(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(8);t.default=function(e){var t={isFetching:false,fetchError:null};var r=function(r,a){if(r===void 0){r=t}switch(a.type){case e+"_"+n.default.REQUEST:return Object.assign({},r,{isFetching:true,fetchError:null});case e+"_"+n.default.FAILURE:return Object.assign({},r,{isFetching:false,fetchError:a.error});case e+"_"+n.default.SUCCESS:return Object.assign({},r,{isFetching:false,fetchError:null});default:return r}};return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){this.email=null;this.systemAdmin=false;this.sitewideLibraryManager=false;this.sitewideLibrarian=false;this.manager=false;this.libraryRoles={};this.roles=e;this.email=t;for(var r=0,n=e;r<n.length;r++){var a=n[r];switch(a.role){case"system":{this.systemAdmin=true}case"manager-all":{this.sitewideLibraryManager=true;this.manager=true}case"librarian-all":{this.sitewideLibrarian=true;break}case"manager":{this.manager=true;this.libraryRoles[a.library]="manager";break}case"librarian":{this.libraryRoles[a.library]="librarian";break}default:{break}}}}e.prototype.hasRole=function(e,t){if(this.isSystemAdmin()){return true}if(e!=="system"&&this.isSitewideLibraryManager()){return true}if(e==="librarian-all"&&this.isSitewideLibrarian()){return true}if(e==="manager"&&this.isLibraryManager(t)){return true}if(e==="librarian"&&this.isLibrarian(t)){return true}return false};e.prototype.isSystemAdmin=function(){return this.systemAdmin};e.prototype.isSitewideLibraryManager=function(){return this.sitewideLibraryManager};e.prototype.isSitewideLibrarian=function(){return this.sitewideLibrarian};e.prototype.isLibraryManager=function(e){return this.sitewideLibraryManager||this.libraryRoles[e]==="manager"};e.prototype.isLibrarian=function(e){return this.isLibraryManager(e)||this.sitewideLibrarian||this.libraryRoles[e]==="librarian"};e.prototype.isLibraryManagerOfSomeLibrary=function(){return this.manager};return e}();t.default=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});t.usePathFor=t.PathForContext=void 0;var a=r(1);var i=r(0);t.PathForContext=a.createContext(undefined);var o=function(e){n(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.getChildContext=function(){return{pathFor:this.props.pathFor}};r.prototype.render=function(){return a.createElement(t.PathForContext.Provider,{value:this.props.pathFor},this.props.children)};r.childContextTypes={pathFor:i.func.isRequired};return r}(a.Component);t.default=o;function s(){var e=a.useContext(t.PathForContext);if(typeof e==="undefined"){throw new Error("usePathFor must be used within a PathForProvider")}return e}t.usePathFor=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);t.TOSContext=n.createContext(null);t.TOSContextProvider=t.TOSContext.Provider},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(3);var o=r(533);var s=r(262);var u=r(177);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e;var t=this.fields();var r=u.getMedium(this.props.book);return a.createElement("div",{className:"book-details"},a.createElement("div",{className:"top",lang:this.props.book.language},a.createElement("div",{className:"cover"},a.createElement(o.default,{book:this.props.book})),a.createElement("div",{className:"details"},a.createElement("h1",{className:"title"},this.props.book.title),this.props.book.subtitle&&a.createElement("p",{className:"subtitle"},this.props.book.subtitle),this.props.book.series&&this.props.book.series.name&&a.createElement("p",{className:"series"},this.props.book.series.name),this.props.book.authors&&this.props.book.authors.length>0&&a.createElement("p",{className:"authors"},"By ",this.props.book.authors.join(", ")),this.props.book.contributors&&this.props.book.contributors.length>0&&a.createElement("p",{className:"contributors"},"Contributors: ",this.props.book.contributors.join(", ")),a.createElement("ul",{className:"fields",lang:"en"},t.map((function(e){return e.value&&a.createElement("li",{className:e.name.toLowerCase().replace(" ","-"),key:e.name},e.name,": ",e.value)})),r&&a.createElement("li",{className:"item-icon-container"},u.getMediumSVG(r))))),a.createElement("div",{className:"divider"}),a.createElement("div",{className:"main"},a.createElement("div",{className:"row"},a.createElement("div",{className:"top col-sm-6 col-sm-offset-3"},a.createElement("div",{className:"circulation-links"},this.circulationLinks()),a.createElement("div",{className:"circulation-info"},this.circulationInfo())),a.createElement("div",{className:"right-column-links col-sm-3"},this.rightColumnLinks())),a.createElement("h2",null,"Summary"),a.createElement("div",{className:"summary",lang:this.props.book.language,dangerouslySetInnerHTML:{__html:(e=this.props.book.summary)!==null&&e!==void 0?e:""}})))};t.prototype.componentDidMount=function(){this.setBodyOverflow("hidden")};t.prototype.componentWillUnmount=function(){this.setBodyOverflow("visible")};t.prototype.setBodyOverflow=function(e){var t=document.getElementsByTagName("body")[0];if(t){t.style.overflow=e}};t.prototype.circulationInfo=function(){if(u.bookIsOpenAccess(this.props.book)){return[a.createElement("div",{key:"oa",className:"open-access-info"},"This open-access book is available to keep.")]}if(u.bookIsBorrowed(this.props.book)){var e=this.props.book.availability&&this.props.book.availability.until;if(e){var t=i(e).fromNow(true);return[a.createElement("div",{key:"loan",className:"loan-info"},"You have this book on loan for ",t,".")]}return[]}var r=[];var n=this.props.book.copies&&this.props.book.copies.available;var o=this.props.book.copies&&this.props.book.copies.total;var s=this.props.book.holds&&this.props.book.holds.total;var l=this.props.book.holds&&this.props.book.holds.position;if(n!==undefined&&n!==null&&o!==undefined&&o!==null){r.push(a.createElement("div",{key:"copies",className:"copies-info"},n," of ",o," copies available"))}if(s&&n===0){r.push(a.createElement("div",{key:"holds",className:"holds-info"},s," patrons in hold queue"));if(u.bookIsReserved(this.props.book)&&l!==undefined&&l!==null){r.push(a.createElement("div",{key:"holds-position",className:"holds-info"},"Your holds position: ",l))}}return r};t.prototype.rightColumnLinks=function(){};return t}(s.default);t.default=l},function(e,t,r){(function(e,t){true?t(r(3)):undefined})(this,(function(e){"use strict";
41
+ var n=r(756);var a=r(757);var i=r(385);t.Buffer=l;t.SlowBuffer=b;t.INSPECT_MAX_BYTES=50;l.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:o();t.kMaxLength=s();function o(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return e.foo()===42&&typeof e.subarray==="function"&&e.subarray(1,1).byteLength===0}catch(e){return false}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(s()<t){throw new RangeError("Invalid typed array length")}if(l.TYPED_ARRAY_SUPPORT){e=new Uint8Array(t);e.__proto__=l.prototype}else{if(e===null){e=new l(t)}e.length=t}return e}function l(e,t,r){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l)){return new l(e,t,r)}if(typeof e==="number"){if(typeof t==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return p(this,e)}return c(this,e,t,r)}l.poolSize=8192;l._augment=function(e){e.__proto__=l.prototype;return e};function c(e,t,r,n){if(typeof t==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&t instanceof ArrayBuffer){return m(e,t,r,n)}if(typeof t==="string"){return h(e,t,r)}return y(e,t)}l.from=function(e,t,r){return c(null,e,t,r)};if(l.TYPED_ARRAY_SUPPORT){l.prototype.__proto__=Uint8Array.prototype;l.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&l[Symbol.species]===l){Object.defineProperty(l,Symbol.species,{value:null,configurable:true})}}function f(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}else if(e<0){throw new RangeError('"size" argument must not be negative')}}function d(e,t,r,n){f(t);if(t<=0){return u(e,t)}if(r!==undefined){return typeof n==="string"?u(e,t).fill(r,n):u(e,t).fill(r)}return u(e,t)}l.alloc=function(e,t,r){return d(null,e,t,r)};function p(e,t){f(t);e=u(e,t<0?0:g(t)|0);if(!l.TYPED_ARRAY_SUPPORT){for(var r=0;r<t;++r){e[r]=0}}return e}l.allocUnsafe=function(e){return p(null,e)};l.allocUnsafeSlow=function(e){return p(null,e)};function h(e,t,r){if(typeof r!=="string"||r===""){r="utf8"}if(!l.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}var n=A(t,r)|0;e=u(e,n);var a=e.write(t,r);if(a!==n){e=e.slice(0,a)}return e}function v(e,t){var r=t.length<0?0:g(t.length)|0;e=u(e,r);for(var n=0;n<r;n+=1){e[n]=t[n]&255}return e}function m(e,t,r,n){t.byteLength;if(r<0||t.byteLength<r){throw new RangeError("'offset' is out of bounds")}if(t.byteLength<r+(n||0)){throw new RangeError("'length' is out of bounds")}if(r===undefined&&n===undefined){t=new Uint8Array(t)}else if(n===undefined){t=new Uint8Array(t,r)}else{t=new Uint8Array(t,r,n)}if(l.TYPED_ARRAY_SUPPORT){e=t;e.__proto__=l.prototype}else{e=v(e,t)}return e}function y(e,t){if(l.isBuffer(t)){var r=g(t.length)|0;e=u(e,r);if(e.length===0){return e}t.copy(e,0,0,r);return e}if(t){if(typeof ArrayBuffer!=="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t){if(typeof t.length!=="number"||te(t.length)){return u(e,0)}return v(e,t)}if(t.type==="Buffer"&&i(t.data)){return v(e,t.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=s()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+s().toString(16)+" bytes")}return e|0}function b(e){if(+e!=e){e=0}return l.alloc(+e)}l.isBuffer=function e(t){return!!(t!=null&&t._isBuffer)};l.compare=function e(t,r){if(!l.isBuffer(t)||!l.isBuffer(r)){throw new TypeError("Arguments must be Buffers")}if(t===r)return 0;var n=t.length;var a=r.length;for(var i=0,o=Math.min(n,a);i<o;++i){if(t[i]!==r[i]){n=t[i];a=r[i];break}}if(n<a)return-1;if(a<n)return 1;return 0};l.isEncoding=function e(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};l.concat=function e(t,r){if(!i(t)){throw new TypeError('"list" argument must be an Array of Buffers')}if(t.length===0){return l.alloc(0)}var n;if(r===undefined){r=0;for(n=0;n<t.length;++n){r+=t[n].length}}var a=l.allocUnsafe(r);var o=0;for(n=0;n<t.length;++n){var s=t[n];if(!l.isBuffer(s)){throw new TypeError('"list" argument must be an Array of Buffers')}s.copy(a,o);o+=s.length}return a};function A(e,t){if(l.isBuffer(e)){return e.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){e=""+e}var r=e.length;if(r===0)return 0;var n=false;for(;;){switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case undefined:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return J(e).length;t=(""+t).toLowerCase();n=true}}}l.byteLength=A;function _(e,t,r){var n=false;if(t===undefined||t<0){t=0}if(t>this.length){return""}if(r===undefined||r>this.length){r=this.length}if(r<=0){return""}r>>>=0;t>>>=0;if(r<=t){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return L(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=true}}}l.prototype._isBuffer=true;function w(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}l.prototype.swap16=function e(){var t=this.length;if(t%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var r=0;r<t;r+=2){w(this,r,r+1)}return this};l.prototype.swap32=function e(){var t=this.length;if(t%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var r=0;r<t;r+=4){w(this,r,r+3);w(this,r+1,r+2)}return this};l.prototype.swap64=function e(){var t=this.length;if(t%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var r=0;r<t;r+=8){w(this,r,r+7);w(this,r+1,r+6);w(this,r+2,r+5);w(this,r+3,r+4)}return this};l.prototype.toString=function e(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return C(this,0,t);return _.apply(this,arguments)};l.prototype.equals=function e(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return l.compare(this,t)===0};l.prototype.inspect=function e(){var r="";var n=t.INSPECT_MAX_BYTES;if(this.length>0){r=this.toString("hex",0,n).match(/.{2}/g).join(" ");if(this.length>n)r+=" ... "}return"<Buffer "+r+">"};l.prototype.compare=function e(t,r,n,a,i){if(!l.isBuffer(t)){throw new TypeError("Argument must be a Buffer")}if(r===undefined){r=0}if(n===undefined){n=t?t.length:0}if(a===undefined){a=0}if(i===undefined){i=this.length}if(r<0||n>t.length||a<0||i>this.length){throw new RangeError("out of range index")}if(a>=i&&r>=n){return 0}if(a>=i){return-1}if(r>=n){return 1}r>>>=0;n>>>=0;a>>>=0;i>>>=0;if(this===t)return 0;var o=i-a;var s=n-r;var u=Math.min(o,s);var c=this.slice(a,i);var f=t.slice(r,n);for(var d=0;d<u;++d){if(c[d]!==f[d]){o=c[d];s=f[d];break}}if(o<s)return-1;if(s<o)return 1;return 0};function E(e,t,r,n,a){if(e.length===0)return-1;if(typeof r==="string"){n=r;r=0}else if(r>2147483647){r=2147483647}else if(r<-2147483648){r=-2147483648}r=+r;if(isNaN(r)){r=a?0:e.length-1}if(r<0)r=e.length+r;if(r>=e.length){if(a)return-1;else r=e.length-1}else if(r<0){if(a)r=0;else return-1}if(typeof t==="string"){t=l.from(t,n)}if(l.isBuffer(t)){if(t.length===0){return-1}return x(e,t,r,n,a)}else if(typeof t==="number"){t=t&255;if(l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(a){return Uint8Array.prototype.indexOf.call(e,t,r)}else{return Uint8Array.prototype.lastIndexOf.call(e,t,r)}}return x(e,[t],r,n,a)}throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,a){var i=1;var o=e.length;var s=t.length;if(n!==undefined){n=String(n).toLowerCase();if(n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le"){if(e.length<2||t.length<2){return-1}i=2;o/=2;s/=2;r/=2}}function u(e,t){if(i===1){return e[t]}else{return e.readUInt16BE(t*i)}}var l;if(a){var c=-1;for(l=r;l<o;l++){if(u(e,l)===u(t,c===-1?0:l-c)){if(c===-1)c=l;if(l-c+1===s)return c*i}else{if(c!==-1)l-=l-c;c=-1}}}else{if(r+s>o)r=o-s;for(l=r;l>=0;l--){var f=true;for(var d=0;d<s;d++){if(u(e,l+d)!==u(t,d)){f=false;break}}if(f)return l}}return-1}l.prototype.includes=function e(t,r,n){return this.indexOf(t,r,n)!==-1};l.prototype.indexOf=function e(t,r,n){return E(this,t,r,n,true)};l.prototype.lastIndexOf=function e(t,r,n){return E(this,t,r,n,false)};function k(e,t,r,n){r=Number(r)||0;var a=e.length-r;if(!n){n=a}else{n=Number(n);if(n>a){n=a}}var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");if(n>i/2){n=i/2}for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function S(e,t,r,n){return ee(J(t,e.length-r),e,r,n)}function O(e,t,r,n){return ee(Z(t),e,r,n)}function M(e,t,r,n){return O(e,t,r,n)}function D(e,t,r,n){return ee($(t),e,r,n)}function T(e,t,r,n){return ee(X(t,e.length-r),e,r,n)}l.prototype.write=function e(t,r,n,a){if(r===undefined){a="utf8";n=this.length;r=0}else if(n===undefined&&typeof r==="string"){a=r;n=this.length;r=0}else if(isFinite(r)){r=r|0;if(isFinite(n)){n=n|0;if(a===undefined)a="utf8"}else{a=n;n=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var i=this.length-r;if(n===undefined||n>i)n=i;if(t.length>0&&(n<0||r<0)||r>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!a)a="utf8";var o=false;for(;;){switch(a){case"hex":return k(this,t,r,n);case"utf8":case"utf-8":return S(this,t,r,n);case"ascii":return O(this,t,r,n);case"latin1":case"binary":return M(this,t,r,n);case"base64":return D(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase();o=true}}};l.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(e,t,r){if(t===0&&r===e.length){return n.fromByteArray(e)}else{return n.fromByteArray(e.slice(t,r))}}function C(e,t,r){r=Math.min(e.length,r);var n=[];var a=t;while(a<r){var i=e[a];var o=null;var s=i>239?4:i>223?3:i>191?2:1;if(a+s<=r){var u,l,c,f;switch(s){case 1:if(i<128){o=i}break;case 2:u=e[a+1];if((u&192)===128){f=(i&31)<<6|u&63;if(f>127){o=f}}break;case 3:u=e[a+1];l=e[a+2];if((u&192)===128&&(l&192)===128){f=(i&15)<<12|(u&63)<<6|l&63;if(f>2047&&(f<55296||f>57343)){o=f}}break;case 4:u=e[a+1];l=e[a+2];c=e[a+3];if((u&192)===128&&(l&192)===128&&(c&192)===128){f=(i&15)<<18|(u&63)<<12|(l&63)<<6|c&63;if(f>65535&&f<1114112){o=f}}}}if(o===null){o=65533;s=1}else if(o>65535){o-=65536;n.push(o>>>10&1023|55296);o=56320|o&1023}n.push(o);a+=s}return N(n)}var j=4096;function N(e){var t=e.length;if(t<=j){return String.fromCharCode.apply(String,e)}var r="";var n=0;while(n<t){r+=String.fromCharCode.apply(String,e.slice(n,n+=j))}return r}function I(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a){n+=String.fromCharCode(e[a]&127)}return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a){n+=String.fromCharCode(e[a])}return n}function R(e,t,r){var n=e.length;if(!t||t<0)t=0;if(!r||r<0||r>n)r=n;var a="";for(var i=t;i<r;++i){a+=Q(e[i])}return a}function F(e,t,r){var n=e.slice(t,r);var a="";for(var i=0;i<n.length;i+=2){a+=String.fromCharCode(n[i]+n[i+1]*256)}return a}l.prototype.slice=function e(t,r){var n=this.length;t=~~t;r=r===undefined?n:~~r;if(t<0){t+=n;if(t<0)t=0}else if(t>n){t=n}if(r<0){r+=n;if(r<0)r=0}else if(r>n){r=n}if(r<t)r=t;var a;if(l.TYPED_ARRAY_SUPPORT){a=this.subarray(t,r);a.__proto__=l.prototype}else{var i=r-t;a=new l(i,undefined);for(var o=0;o<i;++o){a[o]=this[o+t]}}return a};function Y(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=this[t];var i=1;var o=0;while(++o<r&&(i*=256)){a+=this[t+o]*i}return a};l.prototype.readUIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n){Y(t,r,this.length)}var a=this[t+--r];var i=1;while(r>0&&(i*=256)){a+=this[t+--r]*i}return a};l.prototype.readUInt8=function e(t,r){if(!r)Y(t,1,this.length);return this[t]};l.prototype.readUInt16LE=function e(t,r){if(!r)Y(t,2,this.length);return this[t]|this[t+1]<<8};l.prototype.readUInt16BE=function e(t,r){if(!r)Y(t,2,this.length);return this[t]<<8|this[t+1]};l.prototype.readUInt32LE=function e(t,r){if(!r)Y(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};l.prototype.readUInt32BE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};l.prototype.readIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=this[t];var i=1;var o=0;while(++o<r&&(i*=256)){a+=this[t+o]*i}i*=128;if(a>=i)a-=Math.pow(2,8*r);return a};l.prototype.readIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=r;var i=1;var o=this[t+--a];while(a>0&&(i*=256)){o+=this[t+--a]*i}i*=128;if(o>=i)o-=Math.pow(2,8*r);return o};l.prototype.readInt8=function e(t,r){if(!r)Y(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};l.prototype.readInt16LE=function e(t,r){if(!r)Y(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function e(t,r){if(!r)Y(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};l.prototype.readInt32BE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};l.prototype.readFloatLE=function e(t,r){if(!r)Y(t,4,this.length);return a.read(this,t,true,23,4)};l.prototype.readFloatBE=function e(t,r){if(!r)Y(t,4,this.length);return a.read(this,t,false,23,4)};l.prototype.readDoubleLE=function e(t,r){if(!r)Y(t,8,this.length);return a.read(this,t,true,52,8)};l.prototype.readDoubleBE=function e(t,r){if(!r)Y(t,8,this.length);return a.read(this,t,false,52,8)};function B(e,t,r,n,a,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function e(t,r,n,a){t=+t;r=r|0;n=n|0;if(!a){var i=Math.pow(2,8*n)-1;B(this,t,r,n,i,0)}var o=1;var s=0;this[r]=t&255;while(++s<n&&(o*=256)){this[r+s]=t/o&255}return r+n};l.prototype.writeUIntBE=function e(t,r,n,a){t=+t;r=r|0;n=n|0;if(!a){var i=Math.pow(2,8*n)-1;B(this,t,r,n,i,0)}var o=n-1;var s=1;this[r+o]=t&255;while(--o>=0&&(s*=256)){this[r+o]=t/s&255}return r+n};l.prototype.writeUInt8=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,1,255,0);if(!l.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[r]=t&255;return r+1};function H(e,t,r,n){if(t<0)t=65535+t+1;for(var a=0,i=Math.min(e.length-r,2);a<i;++a){e[r+a]=(t&255<<8*(n?a:1-a))>>>(n?a:1-a)*8}}l.prototype.writeUInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,65535,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{H(this,t,r,true)}return r+2};l.prototype.writeUInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,65535,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{H(this,t,r,false)}return r+2};function U(e,t,r,n){if(t<0)t=4294967295+t+1;for(var a=0,i=Math.min(e.length-r,4);a<i;++a){e[r+a]=t>>>(n?a:3-a)*8&255}}l.prototype.writeUInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,4294967295,0);if(l.TYPED_ARRAY_SUPPORT){this[r+3]=t>>>24;this[r+2]=t>>>16;this[r+1]=t>>>8;this[r]=t&255}else{U(this,t,r,true)}return r+4};l.prototype.writeUInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,4294967295,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{U(this,t,r,false)}return r+4};l.prototype.writeIntLE=function e(t,r,n,a){t=+t;r=r|0;if(!a){var i=Math.pow(2,8*n-1);B(this,t,r,n,i-1,-i)}var o=0;var s=1;var u=0;this[r]=t&255;while(++o<n&&(s*=256)){if(t<0&&u===0&&this[r+o-1]!==0){u=1}this[r+o]=(t/s>>0)-u&255}return r+n};l.prototype.writeIntBE=function e(t,r,n,a){t=+t;r=r|0;if(!a){var i=Math.pow(2,8*n-1);B(this,t,r,n,i-1,-i)}var o=n-1;var s=1;var u=0;this[r+o]=t&255;while(--o>=0&&(s*=256)){if(t<0&&u===0&&this[r+o+1]!==0){u=1}this[r+o]=(t/s>>0)-u&255}return r+n};l.prototype.writeInt8=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,1,127,-128);if(!l.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[r]=t&255;return r+1};l.prototype.writeInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,32767,-32768);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{H(this,t,r,true)}return r+2};l.prototype.writeInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,32767,-32768);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{H(this,t,r,false)}return r+2};l.prototype.writeInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,2147483647,-2147483648);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8;this[r+2]=t>>>16;this[r+3]=t>>>24}else{U(this,t,r,true)}return r+4};l.prototype.writeInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{U(this,t,r,false)}return r+4};function z(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,n,i){if(!i){z(e,t,r,4,34028234663852886e22,-34028234663852886e22)}a.write(e,t,r,n,23,4);return r+4}l.prototype.writeFloatLE=function e(t,r,n){return q(this,t,r,true,n)};l.prototype.writeFloatBE=function e(t,r,n){return q(this,t,r,false,n)};function V(e,t,r,n,i){if(!i){z(e,t,r,8,17976931348623157e292,-17976931348623157e292)}a.write(e,t,r,n,52,8);return r+8}l.prototype.writeDoubleLE=function e(t,r,n){return V(this,t,r,true,n)};l.prototype.writeDoubleBE=function e(t,r,n){return V(this,t,r,false,n)};l.prototype.copy=function e(t,r,n,a){if(!n)n=0;if(!a&&a!==0)a=this.length;if(r>=t.length)r=t.length;if(!r)r=0;if(a>0&&a<n)a=n;if(a===n)return 0;if(t.length===0||this.length===0)return 0;if(r<0){throw new RangeError("targetStart out of bounds")}if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");if(a>this.length)a=this.length;if(t.length-r<a-n){a=t.length-r+n}var i=a-n;var o;if(this===t&&n<r&&r<a){for(o=i-1;o>=0;--o){t[o+r]=this[o+n]}}else if(i<1e3||!l.TYPED_ARRAY_SUPPORT){for(o=0;o<i;++o){t[o+r]=this[o+n]}}else{Uint8Array.prototype.set.call(t,this.subarray(n,n+i),r)}return i};l.prototype.fill=function e(t,r,n,a){if(typeof t==="string"){if(typeof r==="string"){a=r;r=0;n=this.length}else if(typeof n==="string"){a=n;n=this.length}if(t.length===1){var i=t.charCodeAt(0);if(i<256){t=i}}if(a!==undefined&&typeof a!=="string"){throw new TypeError("encoding must be a string")}if(typeof a==="string"&&!l.isEncoding(a)){throw new TypeError("Unknown encoding: "+a)}}else if(typeof t==="number"){t=t&255}if(r<0||this.length<r||this.length<n){throw new RangeError("Out of range index")}if(n<=r){return this}r=r>>>0;n=n===undefined?this.length:n>>>0;if(!t)t=0;var o;if(typeof t==="number"){for(o=r;o<n;++o){this[o]=t}}else{var s=l.isBuffer(t)?t:J(new l(t,a).toString());var u=s.length;for(o=0;o<n-r;++o){this[o+r]=s[o%u]}}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(e){e=G(e).replace(W,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function G(e){if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}function Q(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function J(e,t){t=t||Infinity;var r;var n=e.length;var a=null;var i=[];for(var o=0;o<n;++o){r=e.charCodeAt(o);if(r>55295&&r<57344){if(!a){if(r>56319){if((t-=3)>-1)i.push(239,191,189);continue}else if(o+1===n){if((t-=3)>-1)i.push(239,191,189);continue}a=r;continue}if(r<56320){if((t-=3)>-1)i.push(239,191,189);a=r;continue}r=(a-55296<<10|r-56320)+65536}else if(a){if((t-=3)>-1)i.push(239,191,189)}a=null;if(r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{throw new Error("Invalid code point")}}return i}function Z(e){var t=[];for(var r=0;r<e.length;++r){t.push(e.charCodeAt(r)&255)}return t}function X(e,t){var r,n,a;var i=[];for(var o=0;o<e.length;++o){if((t-=2)<0)break;r=e.charCodeAt(o);n=r>>8;a=r%256;i.push(a);i.push(n)}return i}function $(e){return n.toByteArray(K(e))}function ee(e,t,r,n){for(var a=0;a<n;++a){if(a+r>=t.length||a>=e.length)break;t[a+r]=e[a]}return a}function te(e){return e!==e}}).call(this,r(25))},function(e,t,r){t=e.exports=r(386);t.Stream=t;t.Readable=t;t.Writable=r(257);t.Duplex=r(100);t.Transform=r(391);t.PassThrough=r(763)},function(e,t,r){"use strict";(function(t,n,a){var i=r(175);e.exports=_;function o(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function s(e){var t=this;this.next=null;this.entry=null;this.finish=function(){F(t,e)}}var u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:i.nextTick;var l;_.WritableState=b;var c=Object.create(r(152));c.inherits=r(125);var f={deprecate:r(762)};var d=r(387);var p=r(176).Buffer;var h=a.Uint8Array||function(){};function v(e){return p.from(e)}function m(e){return p.isBuffer(e)||e instanceof h}var y=r(388);c.inherits(_,d);function g(){}function b(e,t){l=l||r(100);e=e||{};var n=t instanceof l;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;var a=e.highWaterMark;var i=e.writableHighWaterMark;var o=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){D(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new s(this)}b.prototype.getBuffer=function e(){var t=this.bufferedRequest;var r=[];while(t){r.push(t);t=t.next}return r};(function(){try{Object.defineProperty(b.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var A;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){A=Function.prototype[Symbol.hasInstance];Object.defineProperty(_,Symbol.hasInstance,{value:function(e){if(A.call(this,e))return true;if(this!==_)return false;return e&&e._writableState instanceof b}})}else{A=function(e){return e instanceof this}}function _(e){l=l||r(100);if(!A.call(_,this)&&!(this instanceof l)){return new _(e)}this._writableState=new b(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}d.call(this)}_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function w(e,t){var r=new Error("write after end");e.emit("error",r);i.nextTick(t,r)}function E(e,t,r,n){var a=true;var o=false;if(r===null){o=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){o=new TypeError("Invalid non-string/buffer chunk")}if(o){e.emit("error",o);i.nextTick(n,o);a=false}return a}_.prototype.write=function(e,t,r){var n=this._writableState;var a=false;var i=!n.objectMode&&m(e);if(i&&!p.isBuffer(e)){e=v(e)}if(typeof t==="function"){r=t;t=null}if(i)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=g;if(n.ended)w(this,r);else if(i||E(this,n,e,r)){n.pendingcb++;a=k(this,n,i,e,t,r)}return a};_.prototype.cork=function(){var e=this._writableState;e.corked++};_.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)C(this,e)}};_.prototype.setDefaultEncoding=function e(t){if(typeof t==="string")t=t.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);this._writableState.defaultEncoding=t;return this};function x(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=p.from(t,r)}return t}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function k(e,t,r,n,a,i){if(!r){var o=x(t,n,a);if(n!==o){r=true;a="buffer";n=o}}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(!u)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:i,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{S(e,t,false,s,n,a,i)}return u}function S(e,t,r,n,a,i,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(r)e._writev(a,t.onwrite);else e._write(a,i,t.onwrite);t.sync=false}function O(e,t,r,n,a){--t.pendingcb;if(r){i.nextTick(a,n);i.nextTick(P,e,t);e._writableState.errorEmitted=true;e.emit("error",n)}else{a(n);e._writableState.errorEmitted=true;e.emit("error",n);P(e,t)}}function M(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function D(e,t){var r=e._writableState;var n=r.sync;var a=r.writecb;M(r);if(t)O(e,r,n,t,a);else{var i=j(r);if(!i&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){C(e,r)}if(n){u(T,e,r,i,a)}else{T(e,r,i,a)}}}function T(e,t,r,n){if(!r)L(e,t);t.pendingcb--;n();P(e,t)}function L(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function C(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount;var a=new Array(n);var i=t.corkedRequestsFree;i.entry=r;var o=0;var u=true;while(r){a[o]=r;if(!r.isBuf)u=false;r=r.next;o+=1}a.allBuffers=u;S(e,t,true,t.length,a,"",i.finish);t.pendingcb++;t.lastBufferedRequest=null;if(i.next){t.corkedRequestsFree=i.next;i.next=null}else{t.corkedRequestsFree=new s(t)}t.bufferedRequestCount=0}else{while(r){var l=r.chunk;var c=r.encoding;var f=r.callback;var d=t.objectMode?1:l.length;S(e,t,false,d,l,c,f);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}_.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};_.prototype._writev=null;_.prototype.end=function(e,t,r){var n=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(n.corked){n.corked=1;this.uncork()}if(!n.ending&&!n.finished)R(this,n,r)};function j(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function N(e,t){e._final((function(r){t.pendingcb--;if(r){e.emit("error",r)}t.prefinished=true;e.emit("prefinish");P(e,t)}))}function I(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;i.nextTick(N,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function P(e,t){var r=j(t);if(r){I(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return r}function R(e,t,r){t.ending=true;P(e,t);if(r){if(t.finished)i.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function F(e,t,r){var n=e.entry;e.entry=null;while(n){var a=n.callback;t.pendingcb--;a(r);n=n.next}if(t.corkedRequestsFree){t.corkedRequestsFree.next=e}else{t.corkedRequestsFree=e}}Object.defineProperty(_.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});_.prototype.destroy=y.destroy;_.prototype._undestroy=y.undestroy;_.prototype._destroy=function(e,t){this.end();t(e)}}).call(this,r(126),r(389).setImmediate,r(25))},function(e,t,r){"use strict";var n=r(176).Buffer;var a=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function i(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function o(e){var t=i(e);if(typeof t!=="string"&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}t.StringDecoder=s;function s(e){this.encoding=o(e);var t;switch(this.encoding){case"utf16le":this.text=h;this.end=v;t=4;break;case"utf8":this.fillLast=f;t=4;break;case"base64":this.text=m;this.end=y;t=3;break;default:this.write=g;this.end=b;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(t)}s.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};s.prototype.end=p;s.prototype.text=d;s.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function u(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function l(e,t,r){var n=t.length-1;if(n<r)return 0;var a=u(t[n]);if(a>=0){if(a>0)e.lastNeed=a-1;return a}if(--n<r||a===-2)return 0;a=u(t[n]);if(a>=0){if(a>0)e.lastNeed=a-2;return a}if(--n<r||a===-2)return 0;a=u(t[n]);if(a>=0){if(a>0){if(a===2)a=0;else e.lastNeed=a-3}return a}return 0}function c(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function f(e){var t=this.lastTotal-this.lastNeed;var r=c(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function d(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}function p(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function h(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function v(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function g(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};var a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});var i=r(779);var o=r(177);var s=r(8);var u="eq";var l=0;var c=function(){var e=l.toString();l+=1;return e};t.buildAdvSearchQuery=function(e){var t=e.advanced,r=t.include,a=t.exclude;var i=r.query;var o=a.query;if(o){var s={not:[n({},o)]};if(!i){return s}return{and:[n({},i),s]}}if(i){return i}return null};t.buildAdvSearchQueryString=function(e,r,n){if(r===void 0){r=0}if(n===void 0){n=true}var a=t.buildAdvSearchQuery(e);if(!a){return""}var i=JSON.stringify({query:a},(function(e,t){if(e==="id"){return undefined}if(e==="op"&&t===u){return undefined}return t}),r);return n?encodeURIComponent(i):i};t.getCustomListEditorFormData=function(e){var r=new window.FormData;var n=e.id,a=e.properties,i=e.entries,o=e.searchParams;if(n){r.append("id",n)}var s=a.current,u=s.name,l=s.collections,c=s.autoUpdate;r.append("name",u);r.append("collections",JSON.stringify(l));if(c){r.append("auto_update","true");r.append("auto_update_query",t.buildAdvSearchQueryString(o.current,0,false))}else{var f=i.baseline,d=i.current,p=i.removed;r.append("entries",JSON.stringify(d));var h=f.reduce((function(e,t){e[t.id]=t;return e}),{});var v=Object.keys(p).map((function(e){return h[e]}));r.append("deletedEntries",JSON.stringify(v))}return r};t.buildSearchUrl=function(e,r){var n=e.entryPoint,a=e.terms,i=e.sort;var o=[];if(n!=="All"){o.push("entrypoint="+encodeURIComponent(n))}if(i){o.push("order="+encodeURIComponent(i))}var s=t.buildAdvSearchQueryString(e);if(s){o.push("search_type=json");o.push("q="+s)}else{o.push("q="+encodeURIComponent(a))}return"/"+r+"/search?"+o.join("&")};t.getCustomListEditorSearchUrl=function(e,r){var n=e.searchParams;var a=n.current;var i=a.terms,o=a.advanced;if(i||o.include.query||o.exclude.query){return t.buildSearchUrl(a,r)}return null};var f=function(e){if(!e.id){e.id=c()}var t=e.and||e.or||e.not;if(t){t.forEach((function(e){return f(e)}))}};var d=function(e){var t=e.and||e.or||e.not;if(t){t.forEach((function(e){return d(e)}))}else{if(!e.op){e.op=u}}};t.parseAdvancedSearchQuery=function(e){var t;if(!e){return[null,null]}var r=(t=JSON.parse(e))===null||t===void 0?void 0:t.query;if(!r){return[null,null]}f(r);d(r);var n=r.and;if(n&&n.length===2){var a=n.find((function(e){return!e.not}));var i=n.find((function(e){return Array.isArray(e.not)}));if(a&&i){return[a,i.not[0]]}}var o=r.not;if(o){return[null,o[0]]}return[r,null]};var p={name:"",collections:[],autoUpdate:false};var h={entryPoint:"All",terms:"",sort:null,language:"all",advanced:{include:{query:null,selectedQueryId:null},exclude:{query:null,selectedQueryId:null}}};t.initialState={id:null,isAutoUpdateEnabled:false,isLoaded:false,properties:{baseline:p,current:p},searchParams:{baseline:h,current:h},entries:{baseline:[],baselineTotalCount:0,added:{},removed:{},current:[],currentTotalCount:0},isValid:false,isModified:false,error:null};var v=function(e){var t=e.properties,r=e.entries,n=e.searchParams;var a=t.current,i=a.name,o=a.collections,s=a.autoUpdate;var u=r.currentTotalCount;var l=n.current.advanced,c=l.include,f=l.exclude;return!!i&&(o.length>0||s&&(!!c.query||!!f.query)||!s&&u>0)};var m=function(e){var r=e.searchParams,n=r.baseline,a=r.current;var i=t.buildSearchUrl(n,"");var o=t.buildSearchUrl(a,"");return i!==o};var y=function(e){var t=e.properties,r=e.entries;var n=r.added,a=r.removed;var i=t.baseline,o=t.current;return Object.keys(n).length>0||Object.keys(a).length>0||i.name!==o.name||i.autoUpdate!==o.autoUpdate||o.autoUpdate&&m(e)||i.collections.length!==o.collections.length||!i.collections.every((function(e){return o.collections.includes(e)}))};var g=function(e){return i.default(e,(function(e){e.isValid=v(e);e.isModified=y(e)}))};var b=function(e){return function(t,r){return g(e(t,r))}};var A=function(e,r,n){var a=null;var o=null;if(r&&e!==null){a=r.custom_lists.find((function(t){return t.id===e}));if(!a){o="Custom list not found for ID: "+e}}return i.default(n,(function(r){var n=r.isAutoUpdateEnabled;r.id=e;if(n){r.properties.baseline.autoUpdate=true;r.properties.current.autoUpdate=true}if(a){r.isLoaded=true;var i={name:a.name||"",collections:a.collections.map((function(e){return e.id})),autoUpdate:n&&!!a.auto_update};r.properties.baseline=i;r.properties.current=i;r.entries.baselineTotalCount=a.entry_count;var s=t.parseAdvancedSearchQuery(a.auto_update_query),u=s[0],l=s[1];r.searchParams.baseline.advanced.include.query=u;r.searchParams.baseline.advanced.exclude.query=l;r.searchParams.current.advanced.include.query=u;r.searchParams.current.advanced.exclude.query=l}r.error=o}))};var _=function(e){var t=e.baseline,r=e.baselineTotalCount,n=e.added,a=e.removed;var i=Object.values(n);i.reverse();e.current=i.concat(t.filter((function(e){return!a[e.id]})));var o=i.length;var s=Object.keys(a).length;var u=e.current.length;e.currentTotalCount=Math.max(r+o-s,u)};var w=function(e,r){var n=r.id,a=r.data;var o=i.default(t.initialState,(function(t){t.isAutoUpdateEnabled=e.isAutoUpdateEnabled}));return A(n?parseInt(n,10):null,a,o)};var E=function(e,t){var r=e.id;var n=t.data;return A(r,n,e)};var x=b((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=t.data.books;_(r)}))}));var k=b((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=r.baseline.concat(t.data.books);_(r)}))}));var S=b((function(e,t){var r=t.name,n=t.value;return i.default(e,(function(e){e.properties.current[r]=n}))}));var O=b((function(e,t){var r=t.id;return i.default(e,(function(e){var t=e.properties.current.collections;var n=t.indexOf(r);if(n<0){t.push(r)}else{t.splice(n,1)}}))}));var M=b((function(e,t){var r=t.name,n=t.value;return i.default(e,(function(e){e.searchParams.current[r]=n}))}));var D=function(e,t,r,i){var o,s,u;if(e.and||e.or){var l=e.and?"and":"or";var f=e[l];if(e.id===t){return o={id:e.id},o[l]=a(f,[r]),o}var d=l==="and"?"or":"and";for(var p=0;p<f.length;p++){var h=f[p];var v=D(h,t,r,d);if(v!==h){var m=a(f);m[p]=v;return s={id:e.id},s[l]=m,s}}return e}if(e.id===t){return u={id:e.id},u[i]=[n(n({},e),{id:c()}),r],u}return e};var T=function(e,t){var r,i;if(e.id===t){return null}if(e.and||e.or){var o=e.and?"and":"or";var s=e[o];var u=s.filter((function(e){return e.id!==t}));if(u.length!==s.length){if(u.length===1){return n({},u[0])}return r={id:e.id},r[o]=u,r}for(var l=0;l<s.length;l++){var c=s[l];var f=T(c,t);if(f!==c){var d=a(s);d[l]=f;return i={id:e.id},i[o]=d,i}}}return e};var L=function(e,t){if(e.id===t){return[e.id]}if(e.and||e.or){var r=e.and?"and":"or";var n=e[r];for(var i=0;i<n.length;i++){var o=n[i];var s=L(o,t);if(s){return a([e.id],s)}}}return null};var C=function(e,t){if(e.id===t){return e}if(e.and||e.or){var r=e.and?"and":"or";var n=e[r];var a=n.find((function(e){return e.id===t}));if(a){return a}for(var i=0;i<n.length;i++){var o=n[i];var s=C(o,t);if(s){return s}}}return null};var j=function(e){return e==="include"?"and":"or"};var N=b((function(e,t){return i.default(e,(function(e){var r=t.builderName,a=t.query;var i=e.searchParams.current.advanced[r];var o=i.query,s=i.selectedQueryId;var u=n(n({},a),{id:c()});if(!o){i.query=u;i.selectedQueryId=u.id}else{i.query=D(o,s||o.id,u,j(r))}}))}));var I=b((function(e,t){return i.default(e,(function(e){var r=t.builderName,n=t.id,a=t.bool;var i=e.searchParams.current.advanced[r];var o=i.query;var s=C(o,n);if(s&&(s.and||s.or)&&!s[a]){var u=a==="and"?"or":"and";var l=s[u];delete s[u];s[a]=l}}))}));var P=b((function(e,t){return i.default(e,(function(e){var r=t.builderName,a=t.id,i=t.targetId;var o=e.searchParams.current.advanced[r];var s=o.query;var u=C(s,a);var l=n(n({},u),{id:c()});var f=D(s,i,l,j(r));var d=T(f,a);o.query=d;o.selectedQueryId=i}))}));var R=b((function(e,t){return i.default(e,(function(e){var r=t.builderName,n=t.id;var a=e.searchParams.current.advanced[r];var i=a.query;var o=T(i,n);if(o!==i){a.query=o;var s=L(i,n);s.pop();s.reverse();var u=s.find((function(e){return C(o,e)}));a.selectedQueryId=u}}))}));var F=function(e,t){return i.default(e,(function(e){var r=t.builderName,n=t.id;var a=e.searchParams.current.advanced[r];a.selectedQueryId=n}))};var Y=function(e){return{id:e.id,title:e.title,authors:e.authors,url:e.url,medium:o.getMedium(e),language:e.language||""}};var B=b((function(e,t){var r=t.id,n=t.data;return i.default(e,(function(e){var t=e.entries;var a=t.baseline,i=t.added,o=t.removed;var s=a.find((function(e){return e.id===r}));if(!s){var u=n.books.find((function(e){return e.id===r}));var l=!!i[r];if(u&&!l){i[r]=Y(u)}}delete o[r];_(t)}))}));var H=b((function(e,t){var r=t.data.books;r.reverse();return i.default(e,(function(e){var t=e.entries;var n=t.baseline,a=t.added,i=t.removed;var o=n.reduce((function(e,t){e[t.id]=true;return e}),{});r.filter((function(e){return!o[e.id]&&!a[e.id]})).map((function(e){return Y(e)})).forEach((function(e){return a[e.id]=e}));r.forEach((function(e){return delete i[e.id]}));_(t)}))}));var U=b((function(e,t){var r=t.id;return i.default(e,(function(e){var t=e.entries;var n=t.added,a=t.removed;if(n[r]){delete n[r]}else{a[r]=true}_(t)}))}));var z=b((function(e){return i.default(e,(function(e){var t=e.entries;var r=t.baseline,n=t.removed;r.forEach((function(e){n[e.id]=true}));t.added={};_(t)}))}));var q=b((function(e){return i.default(e,(function(e){var t=e.properties,r=e.searchParams,n=e.entries;t.current=t.baseline;r.current=r.baseline;n.added={};n.removed={};_(n)}))}));var V=function(e,t){var r=t.value,n=r===void 0?{}:r;if("enableAutoList"in n){return i.default(e,(function(e){e.isAutoUpdateEnabled=!!n.enableAutoList}))}return e};var W=function(e,t){var r=t.name,n=t.value;if(r==="enableAutoList"){return i.default(e,(function(e){e.isAutoUpdateEnabled=!!n}))}return e};t.default=function(e,r){if(e===void 0){e=t.initialState}switch(r.type){case s.default.OPEN_CUSTOM_LIST_EDITOR:return w(e,r);case s.default.CUSTOM_LISTS+"_"+s.default.LOAD:return E(e,r);case s.default.CUSTOM_LIST_DETAILS+"_"+s.default.LOAD:return x(e,r);case s.default.CUSTOM_LIST_DETAILS_MORE+"_"+s.default.LOAD:return k(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_PROPERTY:return S(e,r);case s.default.TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION:return O(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM:return M(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return N(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN:return I(e,r);case s.default.MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return P(e,r);case s.default.REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return R(e,r);case s.default.SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return F(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ENTRY:return B(e,r);case s.default.ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return H(e,r);case s.default.DELETE_CUSTOM_LIST_EDITOR_ENTRY:return U(e,r);case s.default.DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return z(e,r);case s.default.RESET_CUSTOM_LIST_EDITOR:return q(e,r);case s.default.SET_FEATURE_FLAGS:return V(e,r);case s.default.UPDATE_FEATURE_FLAG:return W(e,r);default:return e}}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:true});var a=r(8);var i=function(e,t){var r=JSON.parse(JSON.stringify(e.data));var n=Object.keys(r)[0];if(!r[n].length){return{}}r[n].forEach((function(e){if(e.id===t.data.self_test_results.id){e.self_test_results=t.data.self_test_results.self_test_results}}));return Object.assign({},e,{data:r,isFetching:false,isLoaded:true})};t.extraActions=(n={},n[a.default.GET_SELF_TESTS+"_"+a.default.LOAD]=i,n)},function(e,t,r){"use strict";r.r(t);function n(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(a){if(typeof a==="function"){return a(r,n,e)}return t(a)}}}}var a=n();a.withExtraArgument=n;t["default"]=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(65);var o=r(533);var s=r(835);var u=r(836);var l=r(177);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.borrow=r.borrow.bind(r);return r}t.prototype.render=function(){var e;var t=this.props.book;var r=t&&t.summary&&t.summary.replace(/<\/?[^>]+(>|$)/g," ")||"";var n=l.getMedium(t);var s=n?"show-media":"";var u=!!(t.authors&&t.authors.length);var c=!!(t.contributors&&t.contributors.length);var f=t.contributors&&t.contributors.length?t.contributors.join(", "):"";var d=u?(e=t.authors)===null||e===void 0?void 0:e.join(", "):f;return a.createElement("div",{className:"book "+s,lang:t.language},a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},a.createElement(o.default,{book:t}),a.createElement("div",{className:"compact-info "+s},l.getMediumSVG(n,false),a.createElement("div",{className:"empty"}),a.createElement("div",{className:"item-details"},a.createElement("div",{className:"title"},t.title),t.series&&t.series.name&&a.createElement("div",{className:"series"},t.series.name),(u||c)&&a.createElement("div",{className:"authors"},a.createElement("span",null,"By ",d))))),a.createElement("div",{className:"expanded-info"},a.createElement("div",{className:"header"},a.createElement("div",null,a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},a.createElement("div",{className:"title"},t.title)),t.series&&t.series.name&&a.createElement("div",{className:"series"},t.series.name),(u||c)&&a.createElement("div",{className:"authors"},a.createElement("span",null,"By ",d))),a.createElement("div",{className:"circulation-links"},this.circulationLinks())),a.createElement("div",{className:"details"},a.createElement("div",{className:"fields",lang:"en"},n&&a.createElement("span",null,l.getMediumSVG(n)),this.fields().map((function(e,t){return e.value?a.createElement("div",{className:e.name.toLowerCase().replace(" ","-"),key:e.name+"-"+t},e.name,": ",e.value):null}))),a.createElement("div",{className:"summary",lang:t.language},a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}),a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},"… More")))))};t.prototype.fields=function(){return this.props.book?[{name:"Publisher",value:this.props.book.publisher},{name:"Published",value:this.props.book.published},{name:"Categories",value:this.props.book.categories?this.props.book.categories.join(", "):null}]:[]};t.prototype.circulationLinks=function(){var e=this;var t,r,n;var i=[];if(l.bookIsOpenAccess(this.props.book)){if(this.props.epubReaderUrlTemplate){var o=0;for(var c=0,f=(t=this.props.book.openAccessLinks)!==null&&t!==void 0?t:[];c<f.length;c++){var d=f[c];if(d.type==="application/epub+zip"){i.push(a.createElement("span",{key:d.url+"-"+o},a.createElement("a",{className:"btn btn-default read-button",href:this.props.epubReaderUrlTemplate(d.url),target:"_blank"},"Read Online")));o++}}}(r=this.props.book.openAccessLinks)===null||r===void 0?void 0:r.forEach((function(t,r){i.push(a.createElement(u.default,{key:t.url+"-"+r,isPlainLink:true,link:t,title:e.props.book.title}))}))}else if(l.bookIsBorrowed(this.props.book)){var p="text/html;profile=http://librarysimplified.org/terms/profiles/streaming-media";var h=[];var v=[];for(var m=0,y=(n=this.props.book.fulfillmentLinks)!==null&&n!==void 0?n:[];m<y.length;m++){var d=y[m];if(d.type===p||d.indirectType===p){h.push(d)}else{v.push(d)}}h.forEach((function(t,r){var n=t.type===p;i.push(a.createElement(u.default,{key:t.url+"-"+r,link:t,title:e.props.book.title,isPlainLink:n||!e.props.isSignedIn}))}));i.push(a.createElement(s.default,{key:this.props.book.borrowUrl,className:"btn btn-default borrowed-button",disabled:true,borrow:this.borrow},"Borrowed"));v.forEach((function(t,r){i.push(a.createElement(u.default,{key:t.url+"-"+r,link:t,title:e.props.book.title,isPlainLink:!e.props.isSignedIn}))}))}if(l.bookIsReserved(this.props.book)){i.push(a.createElement("button",{key:"onhold",className:"btn btn-default disabled"},"Reserved"))}else if(!l.bookIsBorrowed(this.props.book)&&this.props.book.borrowUrl){var g=!l.bookIsReady(this.props.book)&&this.props.book.copies&&this.props.book.copies.available===0?"Reserve":"Borrow";i.push(a.createElement(s.default,{key:this.props.book.borrowUrl,borrow:this.borrow},g))}return i};t.prototype.borrow=function(){return this.props.updateBook(this.props.book.borrowUrl)};return t}(a.Component);t.default=c},function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){a(e,t,r[t])}))}return e}function a(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function i(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var o=r(153);var s=r(50);var u=r(101);var l=r(51);var c=r(181);var f=r(182);var d=r(66);var p=r(544);var h=r(82);var v=r(11);var m=r(546);var y=v.List,g=v.Record,b=v.Repeat,A=v.Map,_=v.OrderedMap;var w={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null};var E=g(w);var x=h("draft_tree_data_support")?l:u;var k=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getEntityMap=function e(){return c};r.getBlockMap=function e(){return this.get("blockMap")};r.getSelectionBefore=function e(){return this.get("selectionBefore")};r.getSelectionAfter=function e(){return this.get("selectionAfter")};r.getBlockForKey=function e(t){var r=this.getBlockMap().get(t);return r};r.getKeyBefore=function e(t){return this.getBlockMap().reverse().keySeq().skipUntil((function(e){return e===t})).skip(1).first()};r.getKeyAfter=function e(t){return this.getBlockMap().keySeq().skipUntil((function(e){return e===t})).skip(1).first()};r.getBlockAfter=function e(t){return this.getBlockMap().skipUntil((function(e,r){return r===t})).skip(1).first()};r.getBlockBefore=function e(t){return this.getBlockMap().reverse().skipUntil((function(e,r){return r===t})).skip(1).first()};r.getBlocksAsArray=function e(){return this.getBlockMap().toArray()};r.getFirstBlock=function e(){return this.getBlockMap().first()};r.getLastBlock=function e(){return this.getBlockMap().last()};r.getPlainText=function e(t){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(t||"\n")};r.getLastCreatedEntityKey=function e(){return c.__getLastCreatedEntityKey()};r.hasText=function e(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0};r.createEntity=function e(t,r,n){c.__create(t,r,n);return this};r.mergeEntityData=function e(t,r){c.__mergeData(t,r);return this};r.replaceEntityData=function e(t,r){c.__replaceData(t,r);return this};r.addEntity=function e(t){c.__add(t);return this};r.getEntity=function e(t){return c.__get(t)};r.getAllEntities=function e(){return c.__getAll()};r.loadWithEntities=function e(t){return c.__loadWithEntities(t)};t.createFromBlockArray=function e(r,n){var a=Array.isArray(r)?r:r.contentBlocks;var i=o.createFromArray(a);var s=i.isEmpty()?new f:f.createEmpty(i.first().getKey());return new t({blockMap:i,entityMap:n||c,selectionBefore:s,selectionAfter:s})};t.createFromText=function e(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:/\r\n?|\n/g;var a=r.split(n);var i=a.map((function(e){e=m(e);return new x({key:d(),text:e,type:"unstyled",characterList:y(b(s.EMPTY,e.length))})}));return t.createFromBlockArray(i)};t.fromJS=function e(r){return new t(n({},r,{blockMap:_(r.blockMap).map(t.createContentBlockFromJS),selectionBefore:new f(r.selectionBefore),selectionAfter:new f(r.selectionAfter)}))};t.createContentBlockFromJS=function e(t){var r=t.characterList;return new x(n({},t,{data:A(t.data),characterList:r!=null?y((Array.isArray(r)?r:p(r)).map((function(e){return s.fromJS(e)}))):undefined}))};return t}(E);e.exports=k},function(e,t,r){"use strict";var n=r(183);var a=r(16);var i={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻ"+"Ƽ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸ"+"ʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷ"+"ͺͻ-ͽͿΆΈ-ΊΌΎ-Ρ"+"Σ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ"+"՚-՟ա-և։ःऄ-हऻऽ"+"ा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥"+"०-९॰ॱॲ-ঀং-ঃঅ-ঌ"+"এ-ঐও-নপ-রলশ-হঽ"+"া-ীে-ৈো-ৌৎৗড়-ঢ়"+"য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃ"+"ਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼"+"ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯"+"ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-ર"+"લ-ળવ-હઽા-ીૉો-ૌૐ"+"ૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐ"+"ଓ-ନପ-ରଲ-ଳଵ-ହଽାୀ"+"େ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯"+"୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-க"+"ங-சஜஞ-டண-தந-பம-ஹ"+"ா-ிு-ூெ-ைொ-ௌௐௗ"+"௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐ"+"ఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ"+"౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನ"+"ಪ-ಳವ-ಹಽಾಿೀ-ೄೆ"+"ೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯"+"ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽ"+"ാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ"+"൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖ"+"ක-නඳ-රලව-ෆා-ෑෘ-ෟ"+"෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅ"+"ๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈ"+"ຊຍດ-ທນ-ຟມ-ຣລວ"+"ສ-ຫອ-ະາ-ຳຽເ-ໄໆ"+"໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔"+"༕-༗༚-༟༠-༩༪-༳༴༶༸"+"༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ"+"྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘"+"࿙-࿚က-ဪါ-ာေးျ-ြဿ"+"၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡ"+"ၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁ"+"ႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ"+"႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼ"+"ჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈ"+"ኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅ"+"ወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨"+"፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮"+"ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰ"+"ᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶"+"ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅ"+"ះ-ៈ។-៖ៗ៘-៚ៜ០-៩"+"᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪ"+"ᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱ"+"ᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫ"+"ᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖ"+"ᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤ"+"ᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭"+"ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ"+"᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠ"+"ᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧ"+"ᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫ"+"ᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙"+"ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡"+"ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫ"+"ᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕ"+"Ἐ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝ"+"Ὗ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌ"+"ῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎"+"ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝ"+"ℤΩℨK-ℭℯ-ℴℵ-ℸℹ"+"ℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄ"+"ↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿"+"Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤ"+"Ⳬ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ"+"⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾ"+"ⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇"+"〡-〩〮-〯〱-〵〸-〺〻〼"+"ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿ"+"ㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟"+"ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇"+"㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋"+"㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵"+"一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ"+"꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫ"+"Ꙁ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ"+"꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎ"+"Ꞑ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁ"+"ꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵"+"꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ"+"꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉"+"ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼ"+"ꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍"+"ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ"+"꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴ"+"ꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯ"+"ꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱ"+"ꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟"+"ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵ"+"ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮ"+"ꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤ"+"ꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣"+"ힰ-ퟆퟋ-ퟻ-豈-舘並-龎"+"ff-stﬓ-ﬗA-Za-zヲ-ッー"+"ア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬ"+"ᅭ-ᅲᅳ-ᅵ",R:"֐־׀׃׆׈-׏א-ת׫-ׯ"+"װ-ײ׳-״׵-׿߀-߉ߊ-ߪ"+"ߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ"+"࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞"+"࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ"+"﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",AL:"؈؋؍؛؜؝؞-؟ؠ-ؿـ"+"ف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦ"+"ۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏"+"ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿"+"ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒"+"ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ"+"﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵"+"ﹶ-ﻼ﻽-﻾"};var o=new RegExp("["+i.L+i.R+i.AL+"]");var s=new RegExp("["+i.R+i.AL+"]");function u(e){var t=o.exec(e);return t==null?null:t[0]}function l(e){var t=u(e);if(t==null){return n.NEUTRAL}return s.exec(t)?n.RTL:n.LTR}function c(e,t){t=t||n.NEUTRAL;if(!e.length){return t}var r=l(e);return r===n.NEUTRAL?t:r}function f(e,t){if(!t){t=n.getGlobalDir()}!n.isStrong(t)?false?undefined:a(false):void 0;return c(e,t)}function d(e,t){return f(e,t)===n.LTR}function p(e,t){return f(e,t)===n.RTL}var h={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:c,getDirection:f,isDirectionLTR:d,isDirectionRTL:p};e.exports=h},function(e,t,r){"use strict";var n=r(1);var a=r(102);var i=r(11),o=i.Map;var s=n.createElement("ul",{className:a("public/DraftStyleDefault/ul")});var u=n.createElement("ol",{className:a("public/DraftStyleDefault/ol")});var l=n.createElement("pre",{className:a("public/DraftStyleDefault/pre")});var c=o({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:s},"ordered-list-item":{element:"li",wrapper:u},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:l},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=c},function(e,t,r){"use strict";var n=r(556),a=n.notEmptyKey;function i(e,t){var r;if(t.isCollapsed()){var n=t.getAnchorKey();var a=t.getAnchorOffset();if(a>0){r=e.getBlockForKey(n).getEntityAt(a-1);if(r!==e.getBlockForKey(n).getEntityAt(a)){return null}return o(e.getEntityMap(),r)}return null}var i=t.getStartKey();var s=t.getStartOffset();var u=e.getBlockForKey(i);r=s===u.getLength()?null:u.getEntityAt(s);return o(e.getEntityMap(),r)}function o(e,t){if(a(t)){var r=e.__get(t);return r.getMutability()==="MUTABLE"?t:null}return null}e.exports=i},function(e,t,r){"use strict";var n=r(904);function a(e,t){if(!e||!t){return false}else if(e===t){return true}else if(n(e)){return false}else if(n(t)){return a(e,t.parentNode)}else if("contains"in e){return e.contains(t)}else if(e.compareDocumentPosition){return!!(e.compareDocumentPosition(t)&16)}else{return false}}e.exports=a},function(e,t,r){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var a={getTop:function e(t){var r=t.ownerDocument;return n(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function e(t,r){var a=t.ownerDocument;if(n(t,a)){a.body.scrollTop=a.documentElement.scrollTop=r}else{t.scrollTop=r}},getLeft:function e(t){var r=t.ownerDocument;return n(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function e(t,r){var a=t.ownerDocument;if(n(t,a)){a.body.scrollLeft=a.documentElement.scrollLeft=r}else{t.scrollLeft=r}}};e.exports=a},function(e,t,r){"use strict";var n=r(270);function a(e,t){var r=e.getSelection();false?undefined:void 0;var n=e.getCurrentContent();var a=r.getStartKey();var i=r.getStartOffset();var o=a;var s=0;if(t>i){var u=n.getKeyBefore(a);if(u==null){o=a}else{o=u;var l=n.getBlockForKey(u);s=l.getText().length}}else{s=i-t}return r.merge({focusKey:o,focusOffset:s,isBackward:true})}e.exports=a},function(e,t,r){"use strict";var n=r(565);function a(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}var a=0;var i="Warning: "+e.replace(/%s/g,(function(){return r[a++]}));if(typeof console!=="undefined"){console.error(i)}try{throw new Error(i)}catch(e){}}var i=false?undefined:n;e.exports=i},function(e,t,r){"use strict";var n=r(36);var a=r(931);var i=n.isPlatform("Mac OS X");var o={isCtrlKeyCommand:function e(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function e(t){return i&&t.altKey},usesMacOSHeuristics:function e(){return i},hasCommandModifier:function e(t){return i?!!t.metaKey&&!t.altKey:o.isCtrlKeyCommand(t)},isSoftNewlineEvent:a};e.exports=o},function(e,t,r){var n=r(969);e.exports=function(e,t,r){n(e);if(t===undefined)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(131);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;if(typeof(r=e.valueOf)=="function"&&!n(a=r.call(e)))return a;if(!t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){var r=Math.ceil;var n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(277)("keys");var a=r(193);e.exports=function(e){return n[e]||(n[e]=a(e))}},function(e,t,r){var n=r(30);var a=r(74);var i="__core-js_shared__";var o=a[i]||(a[i]={});(e.exports=function(e,t){return o[e]||(o[e]=t!==undefined?t:{})})("versions",[]).push({version:n.version,mode:r(192)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(130);var a=r(974);var i=r(278);var o=r(276)("IE_PROTO");var s=function(){};var u="prototype";var l=function(){var e=r(580)("iframe");var t=i.length;var n="<";var a=">";var o;e.style.display="none";r(975).appendChild(e);e.src="javascript:";o=e.contentWindow.document;o.open();o.write(n+"script"+a+"document.F=Object"+n+"/script"+a);o.close();l=o.F;while(t--)delete l[u][i[t]];return l()};e.exports=Object.create||function e(t,r){var i;if(t!==null){s[u]=n(t);i=new s;s[u]=null;i[o]=t}else i=l();return r===undefined?i:a(i,r)}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var a=n(r(79));var i="transform";t.transform=i;var o,s,u;t.animationEnd=u;t.transitionEnd=s;var l,c,f,d;t.transitionDelay=d;t.transitionTiming=f;t.transitionDuration=c;t.transitionProperty=l;var p,h,v,m;t.animationDelay=m;t.animationTiming=v;t.animationDuration=h;t.animationName=p;if(a.default){var y=b();o=y.prefix;t.transitionEnd=s=y.transitionEnd;t.animationEnd=u=y.animationEnd;t.transform=i=o+"-"+i;t.transitionProperty=l=o+"-transition-property";t.transitionDuration=c=o+"-transition-duration";t.transitionDelay=d=o+"-transition-delay";t.transitionTiming=f=o+"-transition-timing-function";t.animationName=p=o+"-animation-name";t.animationDuration=h=o+"-animation-duration";t.animationTiming=v=o+"-animation-delay";t.animationDelay=m=o+"-animation-timing-function"}var g={transform:i,end:s,property:l,timing:f,delay:d,duration:c};t.default=g;function b(){var e=document.createElement("div").style;var t={O:function e(t){return"o"+t.toLowerCase()},Moz:function e(t){return t.toLowerCase()},Webkit:function e(t){return"webkit"+t},ms:function e(t){return"MS"+t}};var r=Object.keys(t);var n,a;var i="";for(var o=0;o<r.length;o++){var s=r[o];if(s+"TransitionProperty"in e){i="-"+s.toLowerCase();n=t[s]("TransitionEnd");a=t[s]("AnimationEnd");break}}if(!n&&"transitionProperty"in e)n="transitionend";if(!a&&"animationName"in e)a="animationend";e=null;return{animationEnd:a,transitionEnd:n,prefix:i}}},function(e,t,r){var n=r(83).f;var a=r(108);var i=r(67)("toStringTag");e.exports=function(e,t,r){if(e&&!a(e=r?e:e.prototype,i))n(e,i,{configurable:true,value:t})}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=function e(){};if(a.default){i=function(){if(document.addEventListener)return function(e,t,r,n){return e.addEventListener(t,r,n||false)};else if(document.attachEvent)return function(e,t,r){return e.attachEvent("on"+t,(function(t){t=t||window.event;t.target=t.target||t.srcElement;t.currentTarget=e;r.call(e,t)}))}}()}var o=i;t.default=o;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=function e(){};if(a.default){i=function(){if(document.addEventListener)return function(e,t,r,n){return e.removeEventListener(t,r,n||false)};else if(document.attachEvent)return function(e,t,r){return e.detachEvent("on"+t,r)}}()}var o=i;t.default=o;e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);function a(e){return n.createElement("div",{className:"updating-loader-container"},e.show&&n.createElement("div",{className:"updating-loader"},e.text||"Updating",n.createElement("i",{className:"fa fa-spinner fa-spin"})))}t.default=a},function(e,t,r){var n=r(287),a=r(1042);function i(e,t){return e&&n(e,a(t))}e.exports=i},function(e,t,r){var n=r(1034),a=r(136);function i(e,t){return e&&n(e,t,a)}e.exports=i},function(e,t,r){var n=r(1037),a=r(61);var i=Object.prototype;var o=i.hasOwnProperty;var s=i.propertyIsEnumerable;var u=n(function(){return arguments}())?n:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,r){(function(e){var n=r(60),a=r(1038);var i=true&&t&&!t.nodeType&&t;var o=i&&typeof e=="object"&&e&&!e.nodeType&&e;var s=o&&o.exports===i;var u=s?n.Buffer:undefined;var l=u?u.isBuffer:undefined;var c=l||a;e.exports=c}).call(this,r(48)(e))},function(e,t){var r=9007199254740991;var n=/^(?:0|[1-9]\d*)$/;function a(e,t){var a=typeof e;t=t==null?r:t;return!!t&&(a=="number"||a!="symbol"&&n.test(e))&&(e>-1&&e%1==0&&e<t)}e.exports=a},function(e,t){var r=9007199254740991;function n(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=r}e.exports=n},function(e,t,r){(function(e){var n=r(607);var a=true&&t&&!t.nodeType&&t;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o&&n.process;var u=function(){try{var e=i&&i.require&&i.require("util").types;if(e){return e}return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,r(48)(e))},function(e,t){var r=Object.prototype;function n(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||r;return e===n}e.exports=n},function(e,t,r){var n=r(610);var a=n(Object.getPrototypeOf,Object);e.exports=a},function(e,t,r){var n=r(198),a=r(1050),i=r(1051),o=r(1052),s=r(1053),u=r(1054);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=a;l.prototype["delete"]=i;l.prototype.get=o;l.prototype.has=s;l.prototype.set=u;e.exports=l},function(e,t,r){var n=r(112),a=r(60);var i=n(a,"Map");e.exports=i},function(e,t,r){var n=r(1059),a=r(1066),i=r(1068),o=r(1069),s=r(1070);function u(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n;u.prototype["delete"]=a;u.prototype.get=i;u.prototype.has=o;u.prototype.set=s;e.exports=u},function(e,t,r){var n=r(1071),a=r(61);function i(e,t,r,o,s){if(e===t){return true}if(e==null||t==null||!a(e)&&!a(t)){return e!==e&&t!==t}return n(e,t,r,o,i,s)}e.exports=i},function(e,t,r){var n=r(297),a=r(1072),i=r(1073);function o(e){var t=-1,r=e==null?0:e.length;this.__data__=new n;while(++t<r){this.add(e[t])}}o.prototype.add=o.prototype.push=a;o.prototype.has=i;e.exports=o},function(e,t){function r(e,t){return e.has(t)}e.exports=r},function(e,t){function r(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}e.exports=r},function(e,t){function r(e,t){var r=-1,n=t.length,a=e.length;while(++r<n){e[a+r]=t[r]}return e}e.exports=r},function(e,t,r){var n=r(618),a=r(619);var i=Object.prototype;var o=i.propertyIsEnumerable;var s=Object.getOwnPropertySymbols;var u=!s?a:function(e){if(e==null){return[]}e=Object(e);return n(s(e),(function(t){return o.call(e,t)}))};e.exports=u},function(e,t,r){var n=r(12),a=r(138);var i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function s(e,t){if(n(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||a(e)){return true}return o.test(e)||!i.test(e)||t!=null&&e in Object(t)}e.exports=s},function(e,t,r){var n=r(626);function a(e,t,r){if(t=="__proto__"&&n){n(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}e.exports=a},function(e,t,r){var n=r(608),a=r(1099),i=r(110);function o(e){return i(e)?n(e,true):a(e)}e.exports=o},function(e,t,r){var n=r(615);function a(e){var t=new e.constructor(e.byteLength);new n(t).set(new n(e));return t}e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1132);Object.defineProperty(t,"DragDropContext",{enumerable:true,get:function e(){return o(n).default}});var a=r(1175);Object.defineProperty(t,"Droppable",{enumerable:true,get:function e(){return o(a).default}});var i=r(1184);Object.defineProperty(t,"Draggable",{enumerable:true,get:function e(){return o(i).default}});function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";t.__esModule=true;var n=r(1138);var a=u(n);var i=r(1144);var o=u(i);var s=typeof o.default==="function"&&typeof a.default==="symbol"?function(e){return typeof e}:function(e){return e&&typeof o.default==="function"&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function u(e){return e&&e.__esModule?e:{default:e}}t.default=typeof o.default==="function"&&s(a.default)==="symbol"?function(e){return typeof e==="undefined"?"undefined":s(e)}:function(e){return e&&typeof o.default==="function"&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e==="undefined"?"undefined":s(e)}},function(e,t,r){t.f=r(67)},function(e,t,r){var n=r(74);var a=r(30);var i=r(192);var o=r(310);var s=r(83).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=i?{}:n.Symbol||{});if(e.charAt(0)!="_"&&!(e in t))s(t,e,{value:o.f(e)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n={x:0,y:0};var a=t.noMovement={draggables:[],amount:n,isBeyondStartPosition:false};var i={movement:a,direction:null,destination:null};t.default=i},function(e,t,r){"use strict";t.__esModule=true;var n=r(1159);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++){r[t]=e[t]}return r}else{return(0,a.default)(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDroppableDimension=t.getDraggableDimension=t.getFragment=t.noSpacing=undefined;var n=r(1162);var a=r(315);var i=s(a);var o=r(207);function s(e){return e&&e.__esModule?e:{default:e}}var u={x:0,y:0};var l=t.noSpacing={top:0,right:0,bottom:0,left:0};var c=function e(t,r){var n=t.top,a=t.right,o=t.bottom,s=t.left;return(0,i.default)({top:n+r.y,left:s+r.x,bottom:o+r.y,right:a+r.x})};var f=function e(t,r){var n=t.top,a=t.right,o=t.bottom,s=t.left;return(0,i.default)({top:n-r.top,left:s-r.left,bottom:o+r.bottom,right:a+r.right})};var d=t.getFragment=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:u;var n=(0,i.default)({top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x});return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,center:{x:(n.right+n.left)/2,y:(n.bottom+n.top)/2}}};var p=t.getDraggableDimension=function e(t){var r=t.id,n=t.droppableId,a=t.clientRect,i=t.margin,o=i===undefined?l:i,s=t.windowScroll,p=s===undefined?u:s;var h=c(a,p);var v={id:r,droppableId:n,client:{withoutMargin:d(a),withMargin:d(f(a,o))},page:{withoutMargin:d(h),withMargin:d(f(h,o))}};return v};var h=t.getDroppableDimension=function e(t){var r=t.id,a=t.clientRect,i=t.containerRect,s=t.direction,p=s===undefined?"vertical":s,h=t.margin,v=h===undefined?l:h,m=t.padding,y=m===undefined?l:m,g=t.windowScroll,b=g===undefined?u:g,A=t.scroll,_=A===undefined?u:A,w=t.isEnabled,E=w===undefined?true:w;var x=f(a,v);var k=c(a,b);var S=!i||(0,o.isEqual)(i,a)?c(x,b):c(i,b);var O={id:r,isEnabled:E,axis:p==="vertical"?n.vertical:n.horizontal,client:{withoutMargin:d(a),withMargin:d(x),withMarginAndPadding:d(f(x,y))},page:{withoutMargin:d(k),withMargin:d(f(k,v)),withMarginAndPadding:d(f(k,(0,o.add)(v,y)))},container:{scroll:{initial:_,current:_},bounds:d(S)}};return O}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){var t=e.top,r=e.right,n=e.bottom,a=e.left;return{top:t,right:r,bottom:n,left:a,width:r-a,height:n-t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(){return{x:window.pageXOffset,y:window.pageYOffset}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lift=t.dropAnimationFinished=t.cancel=t.drop=t.completeDrop=t.prepare=t.clean=t.crossAxisMoveBackward=t.crossAxisMoveForward=t.moveForward=t.moveBackward=t.moveByWindowScroll=t.move=t.updateDroppableDimensionIsEnabled=t.updateDroppableDimensionScroll=t.publishDroppableDimension=t.publishDraggableDimension=t.completeLift=t.requestDimensions=undefined;var n=r(312);var a=u(n);var i=r(1182);var o=u(i);var s=r(43);function u(e){return e&&e.__esModule?e:{default:e}}var l={x:0,y:0};var c=function e(t){var r=t.initial,n=t.current,a=t.droppable;var i=(0,s.subtract)(r.windowScroll,n.windowScroll);var o=a?(0,s.subtract)(a.container.scroll.initial,a.container.scroll.current):l;return(0,s.add)(i,o)};var f=t.requestDimensions=function e(t){return{type:"REQUEST_DIMENSIONS",payload:t}};var d=t.completeLift=function e(t,r,n,a,i){return{type:"COMPLETE_LIFT",payload:{id:t,type:r,client:n,windowScroll:a,isScrollAllowed:i}}};var p=t.publishDraggableDimension=function e(t){return{type:"PUBLISH_DRAGGABLE_DIMENSION",payload:t}};var h=t.publishDroppableDimension=function e(t){return{type:"PUBLISH_DROPPABLE_DIMENSION",payload:t}};var v=t.updateDroppableDimensionScroll=function e(t,r){return{type:"UPDATE_DROPPABLE_DIMENSION_SCROLL",payload:{id:t,offset:r}}};var m=t.updateDroppableDimensionIsEnabled=function e(t,r){return{type:"UPDATE_DROPPABLE_DIMENSION_IS_ENABLED",payload:{id:t,isEnabled:r}}};var y=t.move=function e(t,r,n){return{type:"MOVE",payload:{id:t,client:r,windowScroll:n}}};var g=t.moveByWindowScroll=function e(t,r){return{type:"MOVE_BY_WINDOW_SCROLL",payload:{id:t,windowScroll:r}}};var b=t.moveBackward=function e(t){return{type:"MOVE_BACKWARD",payload:t}};var A=t.moveForward=function e(t){return{type:"MOVE_FORWARD",payload:t}};var _=t.crossAxisMoveForward=function e(t){return{type:"CROSS_AXIS_MOVE_FORWARD",payload:t}};var w=t.crossAxisMoveBackward=function e(t){return{type:"CROSS_AXIS_MOVE_BACKWARD",payload:t}};var E=t.clean=function e(){return{type:"CLEAN",payload:null}};var x=t.prepare=function e(){return{type:"PREPARE",payload:null}};var k=function e(t){var r=t.trigger,n=t.newHomeOffset,a=t.impact,i=t.result;return{type:"DROP_ANIMATE",payload:{trigger:r,newHomeOffset:n,impact:a,result:i}}};var S=t.completeDrop=function e(t){return{type:"DROP_COMPLETE",payload:t}};var O=t.drop=function e(){return function(e,t){var r=t();if(r.phase==="COLLECTING_DIMENSIONS"){e(E());return}if(r.phase!=="DRAGGING"){console.error("not able to drop in phase: '"+r.phase+"'");e(E());return}if(!r.drag){console.error("not able to drop when there is invalid drag state",r);e(E());return}var n=r.drag,a=n.impact,i=n.initial,u=n.current;var l=r.dimension.draggable[u.id];var f=r.dimension.droppable[l.droppableId];var d=a.destination?r.dimension.droppable[a.destination.droppableId]:null;var p={draggableId:u.id,type:u.type,source:i.source,destination:a.destination};var h=(0,o.default)({movement:a.movement,draggable:l,draggables:r.dimension.draggable,destination:d});var v=(0,s.subtract)(h,l.client.withMargin.center);var m=c({initial:i,current:u,droppable:d||f});var y=(0,s.add)(v,m);var g=!(0,s.isEqual)(u.client.offset,y);if(!g){e(S(p));return}e(k({trigger:"DROP",newHomeOffset:y,impact:a,result:p}))}};var M=t.cancel=function e(){return function(e,t){var r=t();if(r.phase!=="DRAGGING"){e(E());return}if(!r.drag){console.error("invalid drag state",r);e(E());return}var n=r.drag,i=n.initial,o=n.current;var u=r.dimension.droppable[i.source.droppableId];var f={draggableId:o.id,type:o.type,source:i.source,destination:null};var d=!(0,s.isEqual)(o.client.offset,l);if(!d){e(S(f));return}var p=c({initial:i,current:o,droppable:u});e(k({trigger:"CANCEL",newHomeOffset:p,impact:a.default,result:f}))}};var D=t.dropAnimationFinished=function e(){return function(e,t){var r=t();if(r.phase!=="DROP_ANIMATING"){console.error("cannot end drop that is no longer animating",r);e(E());return}if(!r.drop||!r.drop.pending){console.error("cannot end drop that has no pending state",r);e(E());return}e(S(r.drop.pending.result))}};var T=t.lift=function e(t,r,n,a,i){return function(e,o){var s=o();if(s.phase==="DROP_ANIMATING"){if(!s.drop||!s.drop.pending){console.error("cannot flush drop animation if there is no pending");e(E())}else{e(S(s.drop.pending.result))}}e(x());setTimeout((function(){var s=o();if(s.phase!=="PREPARING"){return}e(f(r));setTimeout((function(){var s=o();if(s.phase!=="COLLECTING_DIMENSIONS"){return}e(d(t,r,n,a,i))}))}))}}},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e){var t={};for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t[r]=0}}return t}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=a;var n=[0,0];function a(e,t,r,a,i,o,s){var u=-i*(t-a);var l=-o*r;var c=u+l;var f=r+c*e;var d=t+f*e;if(Math.abs(f)<s&&Math.abs(d-a)<s){n[0]=a;n[1]=0;return n}n[0]=d;n[1]=f;return n}e.exports=t["default"]},function(e,t,r){(function(t){(function(){var r,n,a;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof t!=="undefined"&&t!==null&&t.hrtime){e.exports=function(){return(r()-a)/1e6};n=t.hrtime;r=function(){var e;e=n();return e[0]*1e9+e[1]};a=r()}else if(Date.now){e.exports=function(){return Date.now()-a};a=Date.now()}else{e.exports=function(){return(new Date).getTime()-a};a=(new Date).getTime()}}).call(this)}).call(this,r(126))},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e,t,r){for(var n in t){if(!Object.prototype.hasOwnProperty.call(t,n)){continue}if(r[n]!==0){return false}var a=typeof t[n]==="number"?t[n]:t[n].val;if(e[n]!==a){return false}}return true}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(53);var a=s(n);var i=r(634);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var r=function e(r){if(t()){r()}};var n=(0,a.default)((function(t,r){var n={x:t,y:r};e.onMove(n)}));var i=(0,o.default)((function(e){r((function(){return n(e.x,e.y)}))}));var s=(0,o.default)((function(){r(e.onMoveForward)}));var u=(0,o.default)((function(){r(e.onMoveBackward)}));var l=(0,o.default)((function(){r(e.onCrossAxisMoveForward)}));var c=(0,o.default)((function(){r(e.onCrossAxisMoveBackward)}));var f=(0,o.default)((function(){r(e.onWindowScroll)}));return{move:i,moveForward:s,moveBackward:u,crossAxisMoveForward:l,crossAxisMoveBackward:c,windowScrollMove:f}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){return e?e.ownerDocument.defaultView:window}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.tab=9;var a=t.enter=13;var i=t.escape=27;var o=t.space=32;var s=t.arrowLeft=37;var u=t.arrowUp=38;var l=t.arrowRight=39;var c=t.arrowDown=40},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"47.31985",height:"29.64547",viewBox:"0 0 47.31985 29.64547","aria-hidden":"true"},n.createElement("title",null,"Grab Icon"),n.createElement("g",null,n.createElement("path",{d:"M43.05833,8.523H4.26152a4.26152,4.26152,0,0,1,0-8.523H43.05833a4.26152,4.26152,0,0,1,0,8.523Z"}),n.createElement("path",{d:"M43.05833,29.64547H4.26152a4.26152,4.26152,0,1,1,0-8.523H43.05833a4.26152,4.26152,0,0,1,0,8.523Z"})))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(340);var i=r(1391);var o=r(1216);var s=r(1217);t.fields=[{value:"data_source",label:"distributor"},{value:"publisher",label:"publisher"},{value:"published",label:"publication date"},{value:"genre",label:"genre"},{value:"language",label:"language"},{value:"classification",label:"subject"},{value:"audience",label:"audience"},{value:"author",label:"author"},{value:"title",label:"title"}];t.operators=[{value:"eq",label:"equals",symbol:"="},{value:"contains",label:"contains",symbol:":"},{value:"regex",label:"matches regex",symbol:"~"},{value:"neq",label:"does not equal",symbol:"≠"},{value:"gt",label:"is greater than",symbol:">"},{value:"gte",label:"is greater than or equals",symbol:"≥"},{value:"lt",label:"is less than",symbol:"<"},{value:"lte",label:"is less than or equals",symbol:"≤"}];function u(e){var t=e.name,r=e.query,u=e.selectedQueryId,l=e.addQuery,c=e.updateQueryBoolean,f=e.moveQuery,d=e.removeQuery,p=e.selectQuery;return n.createElement(a.DndProvider,{backend:i.HTML5Backend},n.createElement("div",{className:"advanced-search"},n.createElement(o.default,{name:t,onAdd:function(e){var r;return(r=l)===null||r===void 0?void 0:r(t,e)}}),n.createElement(s.default,{query:r,selectedQueryId:u,onBooleanChange:function(e,r){var n;return(n=c)===null||n===void 0?void 0:n(t,e,r)},onMove:function(e,r){var n;return(n=f)===null||n===void 0?void 0:n(t,e,r)},onRemove:function(e){var r;return(r=d)===null||r===void 0?void 0:r(t,e)},onSelect:function(e){var r;return(r=p)===null||r===void 0?void 0:r(t,e)}})))}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"67.52939",height:"40.71625",viewBox:"0 0 67.52939 40.71625","aria-hidden":"true"},n.createElement("title",null,"Visible Icon"),n.createElement("g",null,n.createElement("path",{d:"M33.7647,0C15.11694,0,0,13.90311,0,20.35813S15.11694,40.71625,33.7647,40.71625s33.7647-13.90311,33.7647-20.35813S52.41245,0,33.7647,0Zm0,34.26124A14.008,14.008,0,0,1,19.654,20.35813a14.1122,14.1122,0,0,1,28.2213,0A14.008,14.008,0,0,1,33.7647,34.26124Z"}),n.createElement("circle",{cx:"33.7647",cy:"20.35813",r:"7.94463"})))};t.default=a},function(e,t,r){var n=r(212);var a=r(649);var i=r(329);var o=Object.defineProperty;t.f=r(141)?Object.defineProperty:function e(t,r,s){n(t);r=i(r,true);n(s);if(a)try{return o(t,r,s)}catch(e){}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");if("value"in s)t[r]=s.value;return t}},function(e,t,r){var n=r(140);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;if(typeof(r=e.valueOf)=="function"&&!n(a=r.call(e)))return a;if(!t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function e(t){return(t=+t)==0||t!=t?t:t<0?-1:1}},function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!=-2e-17?function e(t){return(t=+t)==0?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(1259);var a=r(334);e.exports=function(e){return n(a(e))}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(17);var a=r(334);var i=r(90);var o=r(337);var s="["+o+"]";var u="​…";var l=RegExp("^"+s+s+"*");var c=RegExp(s+s+"*$");var f=function(e,t,r){var a={};var s=i((function(){return!!o[e]()||u[e]()!=u}));var l=a[e]=s?t(d):o[e];if(r)a[r]=l;n(n.P+n.F*s,"String",a)};var d=f.trim=function(e,t){e=String(a(e));if(t&1)e=e.replace(l,"");if(t&2)e=e.replace(c,"");return e};e.exports=f},function(e,t){e.exports="\t\n\v\f\r   ᠎    "+"          \u2028\u2029\ufeff"},function(e,t,r){var n=r(302),a=r(1299);function i(e,t,r,o,s){var u=-1,l=e.length;r||(r=a);s||(s=[]);while(++u<l){var c=e[u];if(t>0&&r(c)){if(t>1){i(c,t-1,r,o,s)}else{n(s,c)}}else if(!o){s[s.length]=c}}return s}e.exports=i},function(e,t,r){"use strict";var n=String.prototype.replace;var a=/%20/g;var i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},function(e,t,r){"use strict";r.r(t);r.d(t,"DndContext",(function(){return n["a"]}));r.d(t,"DndProvider",(function(){return a["a"]}));r.d(t,"DragPreviewImage",(function(){return o}));r.d(t,"DragSource",(function(){return xe}));r.d(t,"DropTarget",(function(){return ze}));r.d(t,"DragLayer",(function(){return rt}));r.d(t,"useDrag",(function(){return Gt}));r.d(t,"useDrop",(function(){return dr}));r.d(t,"useDragLayer",(function(){return br}));r.d(t,"useDragDropManager",(function(){return ft}));var n=r(218);var a=r(641);var i=r(1);var o=Object(i["memo"])((function e(t){var r=t.connect,n=t.src;Object(i["useEffect"])((function(){if(typeof Image==="undefined")return;var e=false;var t=new Image;t.src=n;t.onload=function(){r(t);e=true};return function(){if(e){r(null)}}}));return null}));var s=r(6);function u(e,t,r){var n=r.getRegistry();var a=n.addTarget(e,t);return[a,function(){return n.removeTarget(a)}]}function l(e,t,r){var n=r.getRegistry();var a=n.addSource(e,t);return[a,function(){return n.removeSource(a)}]}function c(e){if(typeof e.type==="string"){return}var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}function f(e){return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!Object(i["isValidElement"])(t)){var n=t;e(n,r);return n}var a=t;c(a);var o=r?function(t){return e(t,r)}:e;return h(a,o)}}function d(e){var t={};Object.keys(e).forEach((function(r){var n=e[r];if(r.endsWith("Ref")){t[r]=e[r]}else{var a=f(n);t[r]=function(){return a}}}));return t}function p(e,t){if(typeof e==="function"){e(t)}else{e.current=t}}function h(e,t){var r=e.ref;Object(s["a"])(typeof r!=="string","Cannot connect React DnD to an element with an existing string ref. "+"Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. "+"Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs");if(!r){return Object(i["cloneElement"])(e,{ref:t})}else{return Object(i["cloneElement"])(e,{ref:function e(n){p(r,n);p(t,n)}})}}function v(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){v=function e(t){return typeof t}}else{v=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return v(e)}function m(e){return e!==null&&v(e)==="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function y(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(a!==void 0){return!!a}if(e===t){return true}if(typeof e!=="object"||!e||typeof t!=="object"||!t){return false}var i=Object.keys(e);var o=Object.keys(t);if(i.length!==o.length){return false}var s=Object.prototype.hasOwnProperty.bind(t);for(var u=0;u<i.length;u++){var l=i[u];if(!s(l)){return false}var c=e[l];var f=t[l];a=r?r.call(n,c,f,l):void 0;if(a===false||a===void 0&&c!==f){return false}}return true}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function A(e,t,r){if(t)b(e.prototype,t);if(r)b(e,r);return e}function _(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var w=function(){function e(t){var r=this;g(this,e);_(this,"hooks",d({dragSource:function e(t,n){r.clearDragSource();r.dragSourceOptions=n||null;if(m(t)){r.dragSourceRef=t}else{r.dragSourceNode=t}r.reconnectDragSource()},dragPreview:function e(t,n){r.clearDragPreview();r.dragPreviewOptions=n||null;if(m(t)){r.dragPreviewRef=t}else{r.dragPreviewNode=t}r.reconnectDragPreview()}}));_(this,"handlerId",null);_(this,"dragSourceRef",null);_(this,"dragSourceNode",void 0);_(this,"dragSourceOptionsInternal",null);_(this,"dragSourceUnsubscribe",void 0);_(this,"dragPreviewRef",null);_(this,"dragPreviewNode",void 0);_(this,"dragPreviewOptionsInternal",null);_(this,"dragPreviewUnsubscribe",void 0);_(this,"lastConnectedHandlerId",null);_(this,"lastConnectedDragSource",null);_(this,"lastConnectedDragSourceOptions",null);_(this,"lastConnectedDragPreview",null);_(this,"lastConnectedDragPreviewOptions",null);_(this,"backend",void 0);this.backend=t}A(e,[{key:"receiveHandlerId",value:function e(t){if(this.handlerId===t){return}this.handlerId=t;this.reconnect()}},{key:"connectTarget",get:function e(){return this.dragSource}},{key:"dragSourceOptions",get:function e(){return this.dragSourceOptionsInternal},set:function e(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function e(){return this.dragPreviewOptionsInternal},set:function e(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function e(){this.reconnectDragSource();this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function e(){var t=this.dragSource;var r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r){this.disconnectDragSource()}if(!this.handlerId){return}if(!t){this.lastConnectedDragSource=t;return}if(r){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragSource=t;this.lastConnectedDragSourceOptions=this.dragSourceOptions;this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)}}},{key:"reconnectDragPreview",value:function e(){var t=this.dragPreview;var r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r){this.disconnectDragPreview()}if(!this.handlerId){return}if(!t){this.lastConnectedDragPreview=t;return}if(r){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragPreview=t;this.lastConnectedDragPreviewOptions=this.dragPreviewOptions;this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)}}},{key:"didHandlerIdChange",value:function e(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function e(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function e(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function e(){return!y(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function e(){return!y(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function e(){if(this.dragSourceUnsubscribe){this.dragSourceUnsubscribe();this.dragSourceUnsubscribe=undefined}}},{key:"disconnectDragPreview",value:function e(){if(this.dragPreviewUnsubscribe){this.dragPreviewUnsubscribe();this.dragPreviewUnsubscribe=undefined;this.dragPreviewNode=null;this.dragPreviewRef=null}}},{key:"dragSource",get:function e(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function e(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function e(){this.dragSourceNode=null;this.dragSourceRef=null}},{key:"clearDragPreview",value:function e(){this.dragPreviewNode=null;this.dragPreviewRef=null}}]);return e}();function E(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function k(e,t,r){if(t)x(e.prototype,t);if(r)x(e,r);return e}function S(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var O=false;var M=false;var D=function(){function e(t){E(this,e);S(this,"internalMonitor",void 0);S(this,"sourceId",null);this.internalMonitor=t.getMonitor()}k(e,[{key:"receiveHandlerId",value:function e(t){this.sourceId=t}},{key:"getHandlerId",value:function e(){return this.sourceId}},{key:"canDrag",value:function e(){Object(s["a"])(!O,"You may not call monitor.canDrag() inside your canDrag() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{O=true;return this.internalMonitor.canDragSource(this.sourceId)}finally{O=false}}},{key:"isDragging",value:function e(){if(!this.sourceId){return false}Object(s["a"])(!M,"You may not call monitor.isDragging() inside your isDragging() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{M=true;return this.internalMonitor.isDraggingSource(this.sourceId)}finally{M=false}}},{key:"subscribeToStateChange",value:function e(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}},{key:"isDraggingSource",value:function e(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function e(t,r){return this.internalMonitor.isOverTarget(t,r)}},{key:"getTargetIds",value:function e(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function e(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function e(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function e(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function e(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function e(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function e(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function e(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function e(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function e(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function e(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function e(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function e(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function e(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function e(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]);return e}();function T(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){T=function e(t){return typeof t}}else{T=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return T(e)}function L(e){var t=e.current;if(t==null){return null}else if(t.decoratedRef){return t.decoratedRef.current}else{return t}}function C(e){return e&&e.prototype&&typeof e.prototype.render==="function"}function j(e){var t;var r=e;return(r===null||r===void 0?void 0:(t=r.$$typeof)===null||t===void 0?void 0:t.toString())==="Symbol(react.forward_ref)"}function N(e){return C(e)||j(e)}function I(e,t){if(false){var r,n}}function P(e){return typeof e==="function"}function R(){}function F(e){return T(e)==="object"&&e!==null}function Y(e){if(!F(e)){return false}if(Object.getPrototypeOf(e)===null){return true}var t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t}function B(e,t){return typeof e==="string"||T(e)==="symbol"||!!t&&Array.isArray(e)&&e.every((function(e){return B(e,false)}))}var H=r(97);function U(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function q(e,t,r){if(t)z(e.prototype,t);if(r)z(e,r);return e}function V(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var W=function(){function e(t){U(this,e);V(this,"isDisposed",false);V(this,"action",void 0);this.action=P(t)?t:R}q(e,[{key:"dispose",value:function e(){if(!this.isDisposed){this.action();this.isDisposed=true}}}],[{key:"isDisposable",value:function e(t){return Boolean(t&&P(t.dispose))}},{key:"_fixup",value:function t(r){return e.isDisposable(r)?r:e.empty}},{key:"create",value:function t(r){return new e(r)}}]);return e}();V(W,"empty",{dispose:R});var K=function(){function e(){U(this,e);V(this,"isDisposed",false);V(this,"disposables",void 0);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}this.disposables=r}q(e,[{key:"add",value:function e(t){if(this.isDisposed){t.dispose()}else{this.disposables.push(t)}}},{key:"remove",value:function e(t){var r=false;if(!this.isDisposed){var n=this.disposables.indexOf(t);if(n!==-1){r=true;this.disposables.splice(n,1);t.dispose()}}return r}},{key:"clear",value:function e(){if(!this.isDisposed){var t=this.disposables.length;var r=new Array(t);for(var n=0;n<t;n++){r[n]=this.disposables[n]}this.disposables=[];for(var a=0;a<t;a++){r[a].dispose()}}}},{key:"dispose",value:function e(){if(!this.isDisposed){this.isDisposed=true;var t=this.disposables.length;var r=new Array(t);for(var n=0;n<t;n++){r[n]=this.disposables[n]}this.disposables=[];for(var a=0;a<t;a++){r[a].dispose()}}}}]);return e}();var G=function(){function e(){U(this,e);V(this,"isDisposed",false);V(this,"current",void 0)}q(e,[{key:"getDisposable",value:function e(){return this.current}},{key:"setDisposable",value:function e(t){var r=this.isDisposed;if(!r){var n=this.current;this.current=t;if(n){n.dispose()}}if(r&&t){t.dispose()}}},{key:"dispose",value:function e(){if(!this.isDisposed){this.isDisposed=true;var t=this.current;this.current=undefined;if(t){t.dispose()}}}}]);return e}();var Q=r(62);var J=r.n(Q);function Z(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Z=function e(t){return typeof t}}else{Z=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Z(e)}function X(e,t){return ne(e)||re(e,t)||ee(e,t)||$()}function $(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ee(e,t){if(!e)return;if(typeof e==="string")return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return te(e,t)}function te(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function re(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function ne(e){if(Array.isArray(e))return e}function ae(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function oe(e,t,r){if(t)ie(e.prototype,t);if(r)ie(e,r);return e}function se(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)ue(e,t)}function ue(e,t){ue=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return ue(e,t)}function le(e){var t=de();return function r(){var n=pe(e),a;if(t){var i=pe(this).constructor;a=Reflect.construct(n,arguments,i)}else{a=n.apply(this,arguments)}return ce(this,a)}}function ce(e,t){if(t&&(Z(t)==="object"||typeof t==="function")){return t}else if(t!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return fe(e)}function fe(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function de(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(e){return false}}function pe(e){pe=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return pe(e)}function he(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ve(e){var t=e.DecoratedComponent,r=e.createHandler,a=e.createMonitor,o=e.createConnector,u=e.registerHandler,l=e.containerDisplayName,c=e.getType,f=e.collect,d=e.options;var p=d.arePropsEqual,h=p===void 0?y:p;var v=t;var m=t.displayName||t.name||"Component";var g=function(e){se(l,e);var t=le(l);function l(e){var r;ae(this,l);r=t.call(this,e);he(fe(r),"decoratedRef",Object(i["createRef"])());he(fe(r),"handlerId",void 0);he(fe(r),"manager",void 0);he(fe(r),"handlerMonitor",void 0);he(fe(r),"handlerConnector",void 0);he(fe(r),"handler",void 0);he(fe(r),"disposable",void 0);he(fe(r),"currentType",void 0);he(fe(r),"handleChange",(function(){var e=r.getCurrentState();if(!y(e,r.state)){r.setState(e)}}));r.disposable=new G;r.receiveProps(e);r.dispose();return r}oe(l,[{key:"getHandlerId",value:function e(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function e(){Object(s["a"])(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()");return this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function e(t,r){return!h(t,this.props)||!y(r,this.state)}},{key:"componentDidMount",value:function e(){this.disposable=new G;this.currentType=undefined;this.receiveProps(this.props);this.handleChange()}},{key:"componentDidUpdate",value:function e(t){if(!h(this.props,t)){this.receiveProps(this.props);this.handleChange()}}},{key:"componentWillUnmount",value:function e(){this.dispose()}},{key:"receiveProps",value:function e(t){if(!this.handler){return}this.handler.receiveProps(t);this.receiveType(c(t))}},{key:"receiveType",value:function e(t){if(!this.handlerMonitor||!this.manager||!this.handlerConnector){return}if(t===this.currentType){return}this.currentType=t;var r=u(t,this.handler,this.manager),n=X(r,2),a=n[0],i=n[1];this.handlerId=a;this.handlerMonitor.receiveHandlerId(a);this.handlerConnector.receiveHandlerId(a);var o=this.manager.getMonitor();var s=o.subscribeToStateChange(this.handleChange,{handlerIds:[a]});this.disposable.setDisposable(new K(new W(s),new W(i)))}},{key:"dispose",value:function e(){this.disposable.dispose();if(this.handlerConnector){this.handlerConnector.receiveHandlerId(null)}}},{key:"getCurrentState",value:function e(){if(!this.handlerConnector){return{}}var t=f(this.handlerConnector.hooks,this.handlerMonitor,this.props);if(false){}return t}},{key:"render",value:function e(){var t=this;return Object(H["jsx"])(n["a"].Consumer,{children:function e(r){var n=r.dragDropManager;t.receiveDragDropManager(n);if(typeof requestAnimationFrame!=="undefined"){requestAnimationFrame((function(){var e;return(e=t.handlerConnector)===null||e===void 0?void 0:e.reconnect()}))}return Object(H["jsx"])(v,Object.assign({},t.props,t.getCurrentState(),{ref:N(v)?t.decoratedRef:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function e(t){if(this.manager!==undefined){return}Object(s["a"])(t!==undefined,"Could not find the drag and drop manager in the context of %s. "+"Make sure to render a DndProvider component in your top-level component. "+"Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",m,m);if(t===undefined){return}this.manager=t;this.handlerMonitor=a(t);this.handlerConnector=o(t.getBackend());this.handler=r(this.handlerMonitor,this.decoratedRef)}}]);return l}(i["Component"]);he(g,"DecoratedComponent",t);he(g,"displayName","".concat(l,"(").concat(m,")"));return J()(g,t)}function me(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function ge(e,t,r){if(t)ye(e.prototype,t);if(r)ye(e,r);return e}function be(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Ae=["canDrag","beginDrag","isDragging","endDrag"];var _e=["beginDrag"];var we=function(){function e(t,r,n){var a=this;me(this,e);be(this,"props",null);be(this,"spec",void 0);be(this,"monitor",void 0);be(this,"ref",void 0);be(this,"beginDrag",(function(){if(!a.props){return}var e=a.spec.beginDrag(a.props,a.monitor,a.ref.current);if(false){}return e}));this.spec=t;this.monitor=r;this.ref=n}ge(e,[{key:"receiveProps",value:function e(t){this.props=t}},{key:"canDrag",value:function e(){if(!this.props){return false}if(!this.spec.canDrag){return true}return this.spec.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function e(t,r){if(!this.props){return false}if(!this.spec.isDragging){return r===t.getSourceId()}return this.spec.isDragging(this.props,this.monitor)}},{key:"endDrag",value:function e(){if(!this.props){return}if(!this.spec.endDrag){return}this.spec.endDrag(this.props,this.monitor,L(this.ref))}}]);return e}();function Ee(e){Object.keys(e).forEach((function(t){Object(s["a"])(Ae.indexOf(t)>-1,"Expected the drag source specification to only have "+"some of the following keys: %s. "+'Instead received a specification with an unexpected "%s" key. '+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",Ae.join(", "),t);Object(s["a"])(typeof e[t]==="function","Expected %s in the drag source specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}));_e.forEach((function(t){Object(s["a"])(typeof e[t]==="function","Expected %s in the drag source specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}));return function t(r,n){return new we(e,r,n)}}function xe(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};I("DragSource","type, spec, collect[, options]",e,t,r,n);var a=e;if(typeof e!=="function"){Object(s["a"])(B(e),'Expected "type" provided as the first argument to DragSource to be '+"a string, or a function that returns a string given the current props. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",e);a=function t(){return e}}Object(s["a"])(Y(t),'Expected "spec" provided as the second argument to DragSource to be '+"a plain object. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t);var i=Ee(t);Object(s["a"])(typeof r==="function",'Expected "collect" provided as the third argument to DragSource to be '+"a function that returns a plain object of props to inject. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",r);Object(s["a"])(Y(n),'Expected "options" provided as the fourth argument to DragSource to be '+"a plain object when specified. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",r);return function e(t){return ve({containerDisplayName:"DragSource",createHandler:i,registerHandler:l,createConnector:function e(t){return new w(t)},createMonitor:function e(t){return new D(t)},DecoratedComponent:t,getType:a,collect:r,options:n})}}function ke(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Oe(e,t,r){if(t)Se(e.prototype,t);if(r)Se(e,r);return e}function Me(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var De=false;var Te=function(){function e(t){ke(this,e);Me(this,"internalMonitor",void 0);Me(this,"targetId",null);this.internalMonitor=t.getMonitor()}Oe(e,[{key:"receiveHandlerId",value:function e(t){this.targetId=t}},{key:"getHandlerId",value:function e(){return this.targetId}},{key:"subscribeToStateChange",value:function e(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}},{key:"canDrop",value:function e(){if(!this.targetId){return false}Object(s["a"])(!De,"You may not call monitor.canDrop() inside your canDrop() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{De=true;return this.internalMonitor.canDropOnTarget(this.targetId)}finally{De=false}}},{key:"isOver",value:function e(t){if(!this.targetId){return false}return this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function e(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function e(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function e(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function e(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function e(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function e(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function e(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function e(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function e(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]);return e}();function Le(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function je(e,t,r){if(t)Ce(e.prototype,t);if(r)Ce(e,r);return e}function Ne(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Ie=function(){function e(t){var r=this;Le(this,e);Ne(this,"hooks",d({dropTarget:function e(t,n){r.clearDropTarget();r.dropTargetOptions=n;if(m(t)){r.dropTargetRef=t}else{r.dropTargetNode=t}r.reconnect()}}));Ne(this,"handlerId",null);Ne(this,"dropTargetRef",null);Ne(this,"dropTargetNode",void 0);Ne(this,"dropTargetOptionsInternal",null);Ne(this,"unsubscribeDropTarget",void 0);Ne(this,"lastConnectedHandlerId",null);Ne(this,"lastConnectedDropTarget",null);Ne(this,"lastConnectedDropTargetOptions",null);Ne(this,"backend",void 0);this.backend=t}je(e,[{key:"connectTarget",get:function e(){return this.dropTarget}},{key:"reconnect",value:function e(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();if(t){this.disconnectDropTarget()}var r=this.dropTarget;if(!this.handlerId){return}if(!r){this.lastConnectedDropTarget=r;return}if(t){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDropTarget=r;this.lastConnectedDropTargetOptions=this.dropTargetOptions;this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions)}}},{key:"receiveHandlerId",value:function e(t){if(t===this.handlerId){return}this.handlerId=t;this.reconnect()}},{key:"dropTargetOptions",get:function e(){return this.dropTargetOptionsInternal},set:function e(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function e(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function e(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function e(){return!y(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function e(){if(this.unsubscribeDropTarget){this.unsubscribeDropTarget();this.unsubscribeDropTarget=undefined}}},{key:"dropTarget",get:function e(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function e(){this.dropTargetRef=null;this.dropTargetNode=null}}]);return e}();function Pe(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Fe(e,t,r){if(t)Re(e.prototype,t);if(r)Re(e,r);return e}function Ye(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Be=["canDrop","hover","drop"];var He=function(){function e(t,r,n){Pe(this,e);Ye(this,"props",null);Ye(this,"spec",void 0);Ye(this,"monitor",void 0);Ye(this,"ref",void 0);this.spec=t;this.monitor=r;this.ref=n}Fe(e,[{key:"receiveProps",value:function e(t){this.props=t}},{key:"receiveMonitor",value:function e(t){this.monitor=t}},{key:"canDrop",value:function e(){if(!this.spec.canDrop){return true}return this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function e(){if(!this.spec.hover||!this.props){return}this.spec.hover(this.props,this.monitor,L(this.ref))}},{key:"drop",value:function e(){if(!this.spec.drop){return undefined}var t=this.spec.drop(this.props,this.monitor,this.ref.current);if(false){}return t}}]);return e}();function Ue(e){Object.keys(e).forEach((function(t){Object(s["a"])(Be.indexOf(t)>-1,"Expected the drop target specification to only have "+"some of the following keys: %s. "+'Instead received a specification with an unexpected "%s" key. '+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",Be.join(", "),t);Object(s["a"])(typeof e[t]==="function","Expected %s in the drop target specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])}));return function t(r,n){return new He(e,r,n)}}function ze(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};I("DropTarget","type, spec, collect[, options]",e,t,r,n);var a=e;if(typeof e!=="function"){Object(s["a"])(B(e,true),'Expected "type" provided as the first argument to DropTarget to be '+"a string, an array of strings, or a function that returns either given "+"the current props. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",e);a=function t(){return e}}Object(s["a"])(Y(t),'Expected "spec" provided as the second argument to DropTarget to be '+"a plain object. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t);var i=Ue(t);Object(s["a"])(typeof r==="function",'Expected "collect" provided as the third argument to DropTarget to be '+"a function that returns a plain object of props to inject. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",r);Object(s["a"])(Y(n),'Expected "options" provided as the fourth argument to DropTarget to be '+"a plain object when specified. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",r);return function e(t){return ve({containerDisplayName:"DropTarget",createHandler:i,registerHandler:u,createMonitor:function e(t){return new Te(t)},createConnector:function e(t){return new Ie(t)},DecoratedComponent:t,getType:a,collect:r,options:n})}}function qe(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){qe=function e(t){return typeof t}}else{qe=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return qe(e)}function Ve(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Ke(e,t,r){if(t)We(e.prototype,t);if(r)We(e,r);return e}function Ge(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)Qe(e,t)}function Qe(e,t){Qe=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return Qe(e,t)}function Je(e){var t=$e();return function r(){var n=et(e),a;if(t){var i=et(this).constructor;a=Reflect.construct(n,arguments,i)}else{a=n.apply(this,arguments)}return Ze(this,a)}}function Ze(e,t){if(t&&(qe(t)==="object"||typeof t==="function")){return t}else if(t!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return Xe(e)}function Xe(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function $e(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(e){return false}}function et(e){et=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return et(e)}function tt(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function rt(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};I("DragLayer","collect[, options]",e,t);Object(s["a"])(typeof e==="function",'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e);Object(s["a"])(Y(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. '+"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",t);return function r(a){var o=a;var u=t.arePropsEqual,l=u===void 0?y:u;var c=o.displayName||o.name||"Component";var f=function(t){Ge(a,t);var r=Je(a);function a(){var e;Ve(this,a);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o]}e=r.call.apply(r,[this].concat(n));tt(Xe(e),"manager",void 0);tt(Xe(e),"isCurrentlyMounted",false);tt(Xe(e),"unsubscribeFromOffsetChange",void 0);tt(Xe(e),"unsubscribeFromStateChange",void 0);tt(Xe(e),"ref",Object(i["createRef"])());tt(Xe(e),"handleChange",(function(){if(!e.isCurrentlyMounted){return}var t=e.getCurrentState();if(!y(t,e.state)){e.setState(t)}}));return e}Ke(a,[{key:"getDecoratedComponentInstance",value:function e(){Object(s["a"])(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()");return this.ref.current}},{key:"shouldComponentUpdate",value:function e(t,r){return!l(t,this.props)||!y(r,this.state)}},{key:"componentDidMount",value:function e(){this.isCurrentlyMounted=true;this.handleChange()}},{key:"componentWillUnmount",value:function e(){this.isCurrentlyMounted=false;if(this.unsubscribeFromOffsetChange){this.unsubscribeFromOffsetChange();this.unsubscribeFromOffsetChange=undefined}if(this.unsubscribeFromStateChange){this.unsubscribeFromStateChange();this.unsubscribeFromStateChange=undefined}}},{key:"render",value:function e(){var t=this;return Object(H["jsx"])(n["a"].Consumer,{children:function e(r){var n=r.dragDropManager;if(n===undefined){return null}t.receiveDragDropManager(n);if(!t.isCurrentlyMounted){return null}return Object(H["jsx"])(o,Object.assign({},t.props,t.state,{ref:N(o)?t.ref:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function e(t){if(this.manager!==undefined){return}this.manager=t;Object(s["a"])(qe(t)==="object","Could not find the drag and drop manager in the context of %s. "+"Make sure to render a DndProvider component in your top-level component. "+"Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",c,c);var r=this.manager.getMonitor();this.unsubscribeFromOffsetChange=r.subscribeToOffsetChange(this.handleChange);this.unsubscribeFromStateChange=r.subscribeToStateChange(this.handleChange)}},{key:"getCurrentState",value:function t(){if(!this.manager){return{}}var r=this.manager.getMonitor();return e(r,this.props)}}]);return a}(i["Component"]);tt(f,"displayName","DragLayer(".concat(c,")"));tt(f,"DecoratedComponent",a);return J()(f,a)}}var nt=typeof window!=="undefined"?i["useLayoutEffect"]:i["useEffect"];function at(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){at=function e(t){return typeof t}}else{at=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return at(e)}function it(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function st(e,t,r){if(t)ot(e.prototype,t);if(r)ot(e,r);return e}function ut(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var lt=function(){function e(t,r,n){it(this,e);ut(this,"spec",void 0);ut(this,"monitor",void 0);ut(this,"connector",void 0);this.spec=t;this.monitor=r;this.connector=n}st(e,[{key:"beginDrag",value:function e(){var t;var r=this.spec;var n=this.monitor;var a=null;if(at(r.item)==="object"){a=r.item}else if(typeof r.item==="function"){a=r.item(n)}else{a={}}return(t=a)!==null&&t!==void 0?t:null}},{key:"canDrag",value:function e(){var t=this.spec;var r=this.monitor;if(typeof t.canDrag==="boolean"){return t.canDrag}else if(typeof t.canDrag==="function"){return t.canDrag(r)}else{return true}}},{key:"isDragging",value:function e(t,r){var n=this.spec;var a=this.monitor;var e=n.isDragging;return e?e(a):r===t.getSourceId()}},{key:"endDrag",value:function e(){var t=this.spec;var r=this.monitor;var n=this.connector;var a=t.end;if(a){a(r.getItem(),r)}n.reconnect()}}]);return e}();function ct(e,t,r){var n=Object(i["useMemo"])((function(){return new lt(e,t,r)}),[t,r]);Object(i["useEffect"])((function(){n.spec=e}),[e]);return n}function ft(){var e=Object(i["useContext"])(n["a"]),t=e.dragDropManager;Object(s["a"])(t!=null,"Expected drag drop context");return t}function dt(e){return Object(i["useMemo"])((function(){var t=e.type;Object(s["a"])(t!=null,"spec.type must be defined");return t}),[e])}function pt(e,t){return gt(e)||yt(e,t)||vt(e,t)||ht()}function ht(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vt(e,t){if(!e)return;if(typeof e==="string")return mt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mt(e,t)}function mt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function yt(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function gt(e){if(Array.isArray(e))return e}function bt(e,t,r){var n=ft();var a=ct(e,t,r);var i=dt(e);nt((function e(){if(i!=null){var o=l(i,a,n),s=pt(o,2),u=s[0],c=s[1];t.receiveHandlerId(u);r.receiveHandlerId(u);return c}}),[n,t,r,a,i])}function At(e){return xt(e)||Et(e)||wt(e)||_t()}function _t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(e,t){if(!e)return;if(typeof e==="string")return kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kt(e,t)}function Et(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xt(e){if(Array.isArray(e))return kt(e)}function kt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function St(e,t){var r=At(t||[]);if(t==null&&typeof e!=="function"){r.push(e)}return Object(i["useMemo"])((function(){return typeof e==="function"?e():e}),r)}function Ot(){var e=ft();return Object(i["useMemo"])((function(){return new D(e)}),[e])}function Mt(e,t){var r=ft();var n=Object(i["useMemo"])((function(){return new w(r.getBackend())}),[r]);nt((function(){n.dragSourceOptions=e||null;n.reconnect();return function(){return n.disconnectDragSource()}}),[n,e]);nt((function(){n.dragPreviewOptions=t||null;n.reconnect();return function(){return n.disconnectDragPreview()}}),[n,t]);return n}var Dt=r(694);var Tt=r.n(Dt);function Lt(e,t){return Pt(e)||It(e,t)||jt(e,t)||Ct()}function Ct(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jt(e,t){if(!e)return;if(typeof e==="string")return Nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nt(e,t)}function Nt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function It(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function Pt(e){if(Array.isArray(e))return e}function Rt(e,t,r){var n=Object(i["useState"])((function(){return t(e)})),a=Lt(n,2),o=a[0],s=a[1];var u=Object(i["useCallback"])((function(){var n=t(e);if(!Tt()(o,n)){s(n);if(r){r()}}}),[o,e,r]);nt(u);return[o,u]}function Ft(e,t){return zt(e)||Ut(e,t)||Bt(e,t)||Yt()}function Yt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Bt(e,t){if(!e)return;if(typeof e==="string")return Ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ht(e,t)}function Ht(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function Ut(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function zt(e){if(Array.isArray(e))return e}function qt(e,t,r){var n=Rt(e,t,r),a=Ft(n,2),i=a[0],o=a[1];nt((function t(){var r=e.getHandlerId();if(r==null){return}return e.subscribeToStateChange(o,{handlerIds:[r]})}),[e,o]);return i}function Vt(e,t,r){return qt(t,e||function(){return{}},(function(){return r.reconnect()}))}function Wt(e){return Object(i["useMemo"])((function(){return e.hooks.dragSource()}),[e])}function Kt(e){return Object(i["useMemo"])((function(){return e.hooks.dragPreview()}),[e])}function Gt(e,t){var r=St(e,t);Object(s["a"])(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var n=Ot();var a=Mt(r.options,r.previewOptions);bt(r,n,a);return[Vt(r.collect,n,a),Wt(a),Kt(a)]}function Qt(e){var t=e.accept;return Object(i["useMemo"])((function(){Object(s["a"])(e.accept!=null,"accept must be defined");return Array.isArray(t)?t:[t]}),[t])}function Jt(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Zt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Xt(e,t,r){if(t)Zt(e.prototype,t);if(r)Zt(e,r);return e}function $t(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var er=function(){function e(t,r){Jt(this,e);$t(this,"spec",void 0);$t(this,"monitor",void 0);this.spec=t;this.monitor=r}Xt(e,[{key:"canDrop",value:function e(){var t=this.spec;var r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):true}},{key:"hover",value:function e(){var t=this.spec;var r=this.monitor;if(t.hover){t.hover(r.getItem(),r)}}},{key:"drop",value:function e(){var t=this.spec;var r=this.monitor;if(t.drop){return t.drop(r.getItem(),r)}}}]);return e}();function tr(e,t){var r=Object(i["useMemo"])((function(){return new er(e,t)}),[t]);Object(i["useEffect"])((function(){r.spec=e}),[e]);return r}function rr(e,t){return sr(e)||or(e,t)||ar(e,t)||nr()}function nr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ar(e,t){if(!e)return;if(typeof e==="string")return ir(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ir(e,t)}function ir(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function or(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function sr(e){if(Array.isArray(e))return e}function ur(e,t,r){var n=ft();var a=tr(e,t);var i=Qt(e);nt((function e(){var o=u(i,a,n),s=rr(o,2),l=s[0],c=s[1];t.receiveHandlerId(l);r.receiveHandlerId(l);return c}),[n,t,a,r,i.map((function(e){return e.toString()})).join("|")])}function lr(){var e=ft();return Object(i["useMemo"])((function(){return new Te(e)}),[e])}function cr(e){var t=ft();var r=Object(i["useMemo"])((function(){return new Ie(t.getBackend())}),[t]);nt((function(){r.dropTargetOptions=e||null;r.reconnect();return function(){return r.disconnectDropTarget()}}),[e]);return r}function fr(e){return Object(i["useMemo"])((function(){return e.hooks.dropTarget()}),[e])}function dr(e,t){var r=St(e,t);var n=lr();var a=cr(r.options);ur(r,n,a);return[Vt(r.collect,n,a),fr(a)]}function pr(e,t){return gr(e)||yr(e,t)||vr(e,t)||hr()}function hr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vr(e,t){if(!e)return;if(typeof e==="string")return mr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mr(e,t)}function mr(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function yr(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function gr(e){if(Array.isArray(e))return e}function br(e){var t=ft();var r=t.getMonitor();var n=Rt(r,e),a=pr(n,2),o=a[0],s=a[1];Object(i["useEffect"])((function(){return r.subscribeToOffsetChange(s)}));Object(i["useEffect"])((function(){return r.subscribeToStateChange(s)}));return o}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(119));function i(e){if(e===void 0){e=(0,a.default)()}try{return e.activeElement}catch(e){}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=r(92);var a=v(n);var i=r(0);var o=v(i);var s=r(1);var u=v(s);var l=r(18);var c=v(l);var f=r(599);var d=v(f);var p=r(134);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=27;function A(e){return e.button===0}function _(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var w=function(e){g(t,e);function t(r,n){m(this,t);var i=y(this,e.call(this,r,n));i.addEventListeners=function(){var e=i.props.event;var t=(0,h.default)(i);i.documentMouseCaptureListener=(0,d.default)(t,e,i.handleMouseCapture,true);i.documentMouseListener=(0,d.default)(t,e,i.handleMouse);i.documentKeyupListener=(0,d.default)(t,"keyup",i.handleKeyUp)};i.removeEventListeners=function(){if(i.documentMouseCaptureListener){i.documentMouseCaptureListener.remove()}if(i.documentMouseListener){i.documentMouseListener.remove()}if(i.documentKeyupListener){i.documentKeyupListener.remove()}};i.handleMouseCapture=function(e){i.preventMouseRootClose=_(e)||!A(e)||(0,a.default)(c.default.findDOMNode(i),e.target)};i.handleMouse=function(e){if(!i.preventMouseRootClose&&i.props.onRootClose){i.props.onRootClose(e)}};i.handleKeyUp=function(e){if(e.keyCode===b&&i.props.onRootClose){i.props.onRootClose(e)}};i.preventMouseRootClose=false;return i}t.prototype.componentDidMount=function e(){if(!this.props.disabled){this.addEventListeners()}};t.prototype.componentDidUpdate=function e(t){if(!this.props.disabled&&t.disabled){this.addEventListeners()}else if(this.props.disabled&&!t.disabled){this.removeEventListeners()}};t.prototype.componentWillUnmount=function e(){if(!this.props.disabled){this.removeEventListeners()}};t.prototype.render=function e(){return this.props.children};return t}(u.default.Component);w.displayName="RootCloseWrapper";w.propTypes={onRootClose:o.default.func,children:o.default.element,disabled:o.default.bool,event:o.default.oneOf(["click","mousedown"])};w.defaultProps={event:"click"};t.default=w;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=c;var n=r(195);var a=s(n);var i=r(119);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return e&&e.tagName.toLowerCase()==="body"}function l(e){var t=(0,o.default)(e);var r=(0,a.default)(t);var n=r.innerWidth;if(!n){var i=t.documentElement.getBoundingClientRect();n=i.right-Math.abs(i.left)}return t.body.clientWidth<n}function c(e){var t=(0,a.default)(e);return t||u(e)?l(e):e.scrollHeight>e.clientHeight}e.exports=t["default"]},function(e,t,r){var n=r(27),a=r(1304),i=r(669);var o="Expected a function";var s=Math.max,u=Math.min;function l(e,t,r){var l,c,f,d,p,h,v=0,m=false,y=false,g=true;if(typeof e!="function"){throw new TypeError(o)}t=i(t)||0;if(n(r)){m=!!r.leading;y="maxWait"in r;f=y?s(i(r.maxWait)||0,t):f;g="trailing"in r?!!r.trailing:g}function b(t){var r=l,n=c;l=c=undefined;v=t;d=e.apply(n,r);return d}function A(e){v=e;p=setTimeout(E,t);return m?b(e):d}function _(e){var r=e-h,n=e-v,a=t-r;return y?u(a,f-n):a}function w(e){var r=e-h,n=e-v;return h===undefined||r>=t||r<0||y&&n>=f}function E(){var e=a();if(w(e)){return x(e)}p=setTimeout(E,_(e))}function x(e){p=undefined;if(g&&l){return b(e)}l=c=undefined;return d}function k(){if(p!==undefined){clearTimeout(p)}v=0;l=h=c=p=undefined}function S(){return p===undefined?d:x(a())}function O(){var e=a(),r=w(e);l=arguments;c=this;h=e;if(r){if(p===undefined){return A(h)}if(y){clearTimeout(p);p=setTimeout(E,t);return b(h)}}if(p===undefined){p=setTimeout(E,t)}return d}O.cancel=k;O.flush=S;return O}e.exports=l},function(e,t){function r(e){var t=e==null?0:e.length;return t?e[t-1]:undefined}e.exports=r},function(e,t,r){"use strict";r.r(t);r.d(t,"createStore",(function(){return o}));r.d(t,"combineReducers",(function(){return f}));r.d(t,"bindActionCreators",(function(){return p}));r.d(t,"applyMiddleware",(function(){return m}));r.d(t,"compose",(function(){return h}));var n=r(146);var a=r(148);var i={INIT:"@@redux/INIT"};function o(e,t,r){var s;if(typeof t==="function"&&typeof r==="undefined"){r=t;t=undefined}if(typeof r!=="undefined"){if(typeof r!=="function"){throw new Error("Expected the enhancer to be a function.")}return r(o)(e,t)}if(typeof e!=="function"){throw new Error("Expected the reducer to be a function.")}var u=e;var l=t;var c=[];var f=c;var d=false;function p(){if(f===c){f=c.slice()}}function h(){return l}function v(e){if(typeof e!=="function"){throw new Error("Expected listener to be a function.")}var t=true;p();f.push(e);return function r(){if(!t){return}t=false;p();var n=f.indexOf(e);f.splice(n,1)}}function m(e){if(!Object(n["a"])(e)){throw new Error("Actions must be plain objects. "+"Use custom middleware for async actions.")}if(typeof e.type==="undefined"){throw new Error('Actions may not have an undefined "type" property. '+"Have you misspelled a constant?")}if(d){throw new Error("Reducers may not dispatch actions.")}try{d=true;l=u(l,e)}finally{d=false}var t=c=f;for(var r=0;r<t.length;r++){var a=t[r];a()}return e}function y(e){if(typeof e!=="function"){throw new Error("Expected the nextReducer to be a function.")}u=e;m({type:i.INIT})}function g(){var e;var t=v;return e={subscribe:function e(r){if(typeof r!=="object"){throw new TypeError("Expected the observer to be an object.")}function n(){if(r.next){r.next(h())}}n();var a=t(n);return{unsubscribe:a}}},e[a["a"]]=function(){return this},e}m({type:i.INIT});return s={dispatch:m,subscribe:v,getState:h,replaceReducer:y},s[a["a"]]=g,s}function s(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function u(e,t){var r=t&&t.type;var n=r&&'"'+r.toString()+'"'||"an action";return"Given action "+n+', reducer "'+e+'" returned undefined. '+"To ignore an action, you must explicitly return the previous state. "+"If you want this reducer to hold no value, you can return null instead of undefined."}function l(e,t,r,a){var o=Object.keys(t);var s=r&&r.type===i.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0){return"Store does not have a valid reducer. Make sure the argument passed "+"to combineReducers is an object whose values are reducers."}if(!Object(n["a"])(e)){return"The "+s+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"')}var u=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!a[e]}));u.forEach((function(e){a[e]=true}));if(u.length>0){return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}}function c(e){Object.keys(e).forEach((function(t){var r=e[t];var n=r(undefined,{type:i.INIT});if(typeof n==="undefined"){throw new Error('Reducer "'+t+'" returned undefined during initialization. '+"If the state passed to the reducer is undefined, you must "+"explicitly return the initial state. The initial state may "+"not be undefined. If you don't want to set a value for this reducer, "+"you can use null instead of undefined.")}var a="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if(typeof r(undefined,{type:a})==="undefined"){throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+i.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the "+"current state for any unknown actions, unless it is undefined, "+"in which case you must return the initial state, regardless of the "+"action type. The initial state may not be undefined, but can be null.")}}))}function f(e){var t=Object.keys(e);var r={};for(var n=0;n<t.length;n++){var a=t[n];if(false){}if(typeof e[a]==="function"){r[a]=e[a]}}var i=Object.keys(r);var o=void 0;if(false){}var s=void 0;try{c(r)}catch(e){s=e}return function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments[1];if(s){throw s}if(false){var a}var o=false;var l={};for(var c=0;c<i.length;c++){var f=i[c];var d=r[f];var p=t[f];var h=d(p,n);if(typeof h==="undefined"){var v=u(f,n);throw new Error(v)}l[f]=h;o=o||h!==p}return o?l:t}}function d(e,t){return function(){return t(e.apply(undefined,arguments))}}function p(e,t){if(typeof e==="function"){return d(e,t)}if(typeof e!=="object"||e===null){throw new Error("bindActionCreators expected an object or a function, instead received "+(e===null?"null":typeof e)+". "+'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?')}var r=Object.keys(e);var n={};for(var a=0;a<r.length;a++){var i=r[a];var o=e[i];if(typeof o==="function"){n[i]=d(o,t)}}return n}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length===0){return function(e){return e}}if(t.length===1){return t[0]}return t.reduce((function(e,t){return function(){return e(t.apply(undefined,arguments))}}))}var v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}return function(e){return function(r,n,a){var i=e(r,n,a);var o=i.dispatch;var s=[];var u={getState:i.getState,dispatch:function e(t){return o(t)}};s=t.map((function(e){return e(u)}));o=h.apply(undefined,s)(i.dispatch);return v({},i,{dispatch:o})}}}function y(){}if(false){}},function(e,t,r){e.exports=r(991)},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(283));t.on=a.default;var i=n(r(284));t.off=i.default;var o=n(r(1004));t.filter=o.default;var s=n(r(1006));t.listen=s.default;var u={on:a.default,off:i.default,filter:o.default,listen:s.default};t.default=u},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(0);var i=m(a);var o=r(10);var s=m(o);var u=r(1);var l=m(u);var c=r(603);var f=m(c);var d=r(1015);var p=m(d);var h=r(342);var v=m(h);function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function A(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){A(t,e);function t(r,n){g(this,t);var a=b(this,e.call(this,r,n));a.handleHidden=function(){a.setState({exited:true});if(a.props.onExited){var e;(e=a.props).onExited.apply(e,arguments)}};a.state={exited:!r.show};a.onHiddenListener=a.handleHidden.bind(a);return a}t.prototype.componentWillReceiveProps=function e(t){if(t.show){this.setState({exited:false})}else if(!t.transition){this.setState({exited:true})}};t.prototype.render=function e(){var t=this.props,r=t.container,n=t.containerPadding,a=t.target,i=t.placement,o=t.shouldUpdatePosition,s=t.rootClose,u=t.children,c=t.transition,d=y(t,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);var h=d.show||c&&!this.state.exited;if(!h){return null}var m=u;m=l.default.createElement(p.default,{container:r,containerPadding:n,target:a,placement:i,shouldUpdatePosition:o},m);if(c){var g=d.onExit,b=d.onExiting,A=d.onEnter,_=d.onEntering,w=d.onEntered;m=l.default.createElement(c,{in:d.show,appear:true,onExit:g,onExiting:b,onExited:this.onHiddenListener,onEnter:A,onEntering:_,onEntered:w},m)}if(s){m=l.default.createElement(v.default,{onRootClose:d.onHide},m)}return l.default.createElement(f.default,{container:r},m)};return t}(l.default.Component);_.propTypes=n({},f.default.propTypes,p.default.propTypes,{show:i.default.bool,rootClose:i.default.bool,onHide:function e(t){var r=i.default.func;if(t.rootClose){r=r.isRequired}for(var n=arguments.length,a=Array(n>1?n-1:0),o=1;o<n;o++){a[o-1]=arguments[o]}return r.apply(undefined,[t].concat(a))},transition:s.default,onEnter:i.default.func,onEntering:i.default.func,onEntered:i.default.func,onExit:i.default.func,onExiting:i.default.func,onExited:i.default.func});t.default=_;e.exports=t["default"]},function(e,t,r){"use strict";(function(e){var n=r(223);var a=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o&&n["a"].process;var u=function(){try{var e=i&&i.require&&i.require("util").types;if(e){return e}return s&&s.binding&&s.binding("util")}catch(e){}}();t["a"]=u}).call(this,r(172)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"getTickValues",{enumerable:true,get:function e(){return n.getTickValues}});Object.defineProperty(t,"getNiceTickValues",{enumerable:true,get:function e(){return n.getNiceTickValues}});Object.defineProperty(t,"getTickValuesFixedDomain",{enumerable:true,get:function e(){return n.getTickValuesFixedDomain}});var n=r(1317)},function(e,t,r){var n=r(305),a=r(287),i=r(52);function o(e,t){var r={};t=i(t,3);a(e,(function(e,a,i){n(r,a,t(e,a,i))}));return r}e.exports=o},,,,function(e,t,r){"use strict";t.__esModule=true;t.readState=t.saveState=undefined;var n=r(24);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o={QuotaExceededError:true,QUOTA_EXCEEDED_ERR:true};var s={SecurityError:true};var u="@@History/";var l=function e(t){return u+t};var c=t.saveState=function e(t,r){if(!window.sessionStorage){false?undefined:void 0;return}try{if(r==null){window.sessionStorage.removeItem(l(t))}else{window.sessionStorage.setItem(l(t),JSON.stringify(r))}}catch(e){if(s[e.name]){false?undefined:void 0;return}if(o[e.name]&&window.sessionStorage.length===0){false?undefined:void 0;return}throw e}};var f=t.readState=function e(t){var r=void 0;try{r=window.sessionStorage.getItem(l(t))}catch(e){if(s[e.name]){false?undefined:void 0;return undefined}}if(r){try{return JSON.parse(r)}catch(e){}}return undefined}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(358);var a=r(359);var i=r(729);var o=r(730);var s=r(731);var u=r(732);var l=n.combineReducers({collection:a.default,book:i.default,loans:s.default,auth:o.default,preferences:u.default});t.default=l},function(e,t,r){"use strict";r.r(t);r.d(t,"createStore",(function(){return s}));r.d(t,"combineReducers",(function(){return d}));r.d(t,"bindActionCreators",(function(){return h}));r.d(t,"applyMiddleware",(function(){return g}));r.d(t,"compose",(function(){return y}));r.d(t,"__DO_NOT_USE__ActionTypes",(function(){return i}));var n=r(148);var a=function e(){return Math.random().toString(36).substring(7).split("").join(".")};var i={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function e(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function o(e){if(typeof e!=="object"||e===null)return false;var t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t}function s(e,t,r){var a;if(typeof t==="function"&&typeof r==="function"||typeof r==="function"&&typeof arguments[3]==="function"){throw new Error("It looks like you are passing several store enhancers to "+"createStore(). This is not supported. Instead, compose them "+"together to a single function")}if(typeof t==="function"&&typeof r==="undefined"){r=t;t=undefined}if(typeof r!=="undefined"){if(typeof r!=="function"){throw new Error("Expected the enhancer to be a function.")}return r(s)(e,t)}if(typeof e!=="function"){throw new Error("Expected the reducer to be a function.")}var u=e;var l=t;var c=[];var f=c;var d=false;function p(){if(f===c){f=c.slice()}}function h(){if(d){throw new Error("You may not call store.getState() while the reducer is executing. "+"The reducer has already received the state as an argument. "+"Pass it down from the top reducer instead of reading it from the store.")}return l}function v(e){if(typeof e!=="function"){throw new Error("Expected the listener to be a function.")}if(d){throw new Error("You may not call store.subscribe() while the reducer is executing. "+"If you would like to be notified after the store has been updated, subscribe from a "+"component and invoke store.getState() in the callback to access the latest state. "+"See https://redux.js.org/api-reference/store#subscribe(listener) for more details.")}var t=true;p();f.push(e);return function r(){if(!t){return}if(d){throw new Error("You may not unsubscribe from a store listener while the reducer is executing. "+"See https://redux.js.org/api-reference/store#subscribe(listener) for more details.")}t=false;p();var n=f.indexOf(e);f.splice(n,1)}}function m(e){if(!o(e)){throw new Error("Actions must be plain objects. "+"Use custom middleware for async actions.")}if(typeof e.type==="undefined"){throw new Error('Actions may not have an undefined "type" property. '+"Have you misspelled a constant?")}if(d){throw new Error("Reducers may not dispatch actions.")}try{d=true;l=u(l,e)}finally{d=false}var t=c=f;for(var r=0;r<t.length;r++){var n=t[r];n()}return e}function y(e){if(typeof e!=="function"){throw new Error("Expected the nextReducer to be a function.")}u=e;m({type:i.REPLACE})}function g(){var e;var t=v;return e={subscribe:function e(r){if(typeof r!=="object"||r===null){throw new TypeError("Expected the observer to be an object.")}function n(){if(r.next){r.next(h())}}n();var a=t(n);return{unsubscribe:a}}},e[n["a"]]=function(){return this},e}m({type:i.INIT});return a={dispatch:m,subscribe:v,getState:h,replaceReducer:y},a[n["a"]]=g,a}function u(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function l(e,t){var r=t&&t.type;var n=r&&'action "'+String(r)+'"'||"an action";return"Given "+n+', reducer "'+e+'" returned undefined. '+"To ignore an action, you must explicitly return the previous state. "+"If you want this reducer to hold no value, you can return null instead of undefined."}function c(e,t,r,n){var a=Object.keys(t);var s=r&&r.type===i.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(a.length===0){return"Store does not have a valid reducer. Make sure the argument passed "+"to combineReducers is an object whose values are reducers."}if(!o(e)){return"The "+s+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+a.join('", "')+'"')}var u=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!n[e]}));u.forEach((function(e){n[e]=true}));if(r&&r.type===i.REPLACE)return;if(u.length>0){return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+a.join('", "')+'". Unexpected keys will be ignored.')}}function f(e){Object.keys(e).forEach((function(t){var r=e[t];var n=r(undefined,{type:i.INIT});if(typeof n==="undefined"){throw new Error('Reducer "'+t+'" returned undefined during initialization. '+"If the state passed to the reducer is undefined, you must "+"explicitly return the initial state. The initial state may "+"not be undefined. If you don't want to set a value for this reducer, "+"you can use null instead of undefined.")}if(typeof r(undefined,{type:i.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+i.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the "+"current state for any unknown actions, unless it is undefined, "+"in which case you must return the initial state, regardless of the "+"action type. The initial state may not be undefined, but can be null.")}}))}function d(e){var t=Object.keys(e);var r={};for(var n=0;n<t.length;n++){var a=t[n];if(false){}if(typeof e[a]==="function"){r[a]=e[a]}}var i=Object.keys(r);var o;if(false){}var s;try{f(r)}catch(e){s=e}return function e(t,n){if(t===void 0){t={}}if(s){throw s}if(false){var a}var o=false;var u={};for(var c=0;c<i.length;c++){var f=i[c];var d=r[f];var p=t[f];var h=d(p,n);if(typeof h==="undefined"){var v=l(f,n);throw new Error(v)}u[f]=h;o=o||h!==p}return o?u:t}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if(typeof e==="function"){return p(e,t)}if(typeof e!=="object"||e===null){throw new Error("bindActionCreators expected an object or a function, instead received "+(e===null?"null":typeof e)+". "+'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?')}var r=Object.keys(e);var n={};for(var a=0;a<r.length;a++){var i=r[a];var o=e[i];if(typeof o==="function"){n[i]=p(o,t)}}return n}function v(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){v(e,t,r[t])}))}return e}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length===0){return function(e){return e}}if(t.length===1){return t[0]}return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return function(e){return function(){var r=e.apply(void 0,arguments);var n=function e(){throw new Error("Dispatching while constructing your middleware is not allowed. "+"Other middleware would not be applied to this dispatch.")};var a={getState:r.getState,dispatch:function e(){return n.apply(void 0,arguments)}};var i=t.map((function(e){return e(a)}));n=y.apply(void 0,i)(r.dispatch);return m({},r,{dispatch:n})}}}function b(){}if(false){}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};var a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});t.initialState=void 0;var i=r(728);var o=r(64);t.initialState={url:null,data:null,isFetching:false,isFetchingPage:false,error:null,history:[]};var s=function(e,r){var s,u;if(e===void 0){e=t.initialState}switch(r.type){case o.default.COLLECTION_REQUEST:return n(n({},e),{isFetching:true,error:null});case o.default.COLLECTION_FAILURE:return n(n({},e),{isFetching:false,error:r.error});case o.default.COLLECTION_LOAD:return n(n({},e),{data:r.data,url:r.url?r.url:e.url,isFetching:false,error:null,history:i.default(e,r)});case o.default.COLLECTION_CLEAR:return n(n({},e),{data:null,url:null,error:null,history:e.history.slice(0,-1)});case o.default.PAGE_REQUEST:return n(n({},e),{pageUrl:r.url,isFetchingPage:true,error:null});case o.default.PAGE_FAILURE:return n(n({},e),{isFetchingPage:false,error:r.error});case o.default.PAGE_LOAD:return n(n({},e),{data:Object.assign({},e.data,{books:a((u=(s=e.data)===null||s===void 0?void 0:s.books)!==null&&u!==void 0?u:[]).concat(r.data.books),nextPageUrl:r.data.nextPageUrl}),isFetchingPage:false});case o.default.SEARCH_DESCRIPTION_LOAD:return n(n({},e),{data:Object.assign({},e.data,{search:r.data})});case o.default.CLOSE_ERROR:return n(n({},e),{error:null});default:return e}};t.default=s},function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});t.isServerSamlProvider=t.getEnglishValue=t.flattenSamlProviders=t.generateCredentials=t.SAML_AUTH_TYPE=void 0;t.SAML_AUTH_TYPE="http://librarysimplified.org/authtype/SAML-2.0";function a(e,t){var r=btoa(e+":"+t);return"Basic "+r}t.generateCredentials=a;function i(e){return e.reduce((function(e,r){if(t.isServerSamlProvider(r)){return n(e,o(r))}return n(e,[r])}),[])}t.flattenSamlProviders=i;function o(e){return e.method.links.map((function(r){var n;return{method:{href:r.href,type:e.method.type,description:(n=t.getEnglishValue(r.display_names))!==null&&n!==void 0?n:"Unknown SAML Provider"},id:r.href,plugin:e.plugin}}))}t.getEnglishValue=function(e){var t;return(t=e.find((function(e){return e.language==="en"})))===null||t===void 0?void 0:t.value};t.isServerSamlProvider=function(e){return e.id===t.SAML_AUTH_TYPE&&"links"in e.method}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(735);var a=r(236);t.OPDSFeed=a.default;var i=r(362);t.NavigationFeed=i.default;var o=r(363);t.AcquisitionFeed=o.default;var s=r(239);t.OPDSEntry=s.default;var u=r(373);t.PartialOPDSEntry=u.default;var l=r(374);t.Contributor=l.default;var c=r(376);t.Category=c.default;var f=r(375);t.Series=f.default;var d=r(377);t.Summary=d.default;var p=r(58);t.OPDSLink=p.default;var h=r(365);t.OPDSCatalogRootLink=h.default;var v=r(366);t.OPDSFacetLink=v.default;var m=r(367);t.SearchLink=m.default;var y=r(237);t.AlternateLink=y.default;var g=r(238);t.CompleteEntryLink=g.default;var b=r(369);t.OPDSCrawlableLink=b.default;var A=r(371);t.OPDSShelfLink=A.default;var _=r(235);t.OPDSAcquisitionLink=_.default;var w=r(368);t.OPDSArtworkLink=w.default;var E=r(370);t.OPDSCollectionLink=E.default;t.default=n.default},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(236);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(236);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=r(365);var o=r(366);var s=r(367);var u=r(235);var l=r(737);var c=r(738);var f=r(739);var d=r(740);var p=r(741);var h=r(368);var v=r(237);var m=r(238);var y=r(369);var g=r(370);var b=r(371);var A=r(99);var _=r(59);var w=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.parseAttribute(e,"href");var r=this.parseAttribute(e,"rel");var n=this.parseAttribute(e,"type");var _=this.parseAttribute(e,"title");var w=this.parseAttribute(e,"role");if(r===i.default.REL){return new i.default({href:t,type:n,title:_})}else if(r===o.default.REL){var E=this.prefixes[A.default.OPDS_URI];var x=this.parseAttribute(e,E+"facetGroup");var k=this.parseAttribute(e,E+"activeFacet")==="true";var S=this.prefixes[A.default.THR_URI];var O=parseInt(this.parseAttribute(e,S+"count"),10);return new o.default({href:t,type:n,title:_,facetGroup:x,activeFacet:k,count:O})}else if(r===s.default.REL){return new s.default({href:t,type:n,title:_})}else if(this.isAcquisitionLinkRel(r)){var E=this.prefixes[A.default.OPDS_URI];var M=new l.default(this.prefixes);var D=this.parseSubtags(e,E+"price",M);var T=new c.default(this.prefixes);var L=this.parseSubtags(e,E+"indirectAcquisition",T);var C=new f.default(this.prefixes);var j=this.parseSubtag(e,E+"availability",C);var N=new d.default(this.prefixes);var I=this.parseSubtag(e,E+"holds",N);var P=new p.default(this.prefixes);var R=this.parseSubtag(e,E+"copies",P);return new u.default({href:t,rel:r,type:n,title:_,prices:D,indirectAcquisitions:L,availability:j,holds:I,copies:R})}else if(r===v.default.REL){if(n===m.default.TYPE){return new m.default({href:t,type:n,title:_})}else{return new v.default({href:t,type:n,title:_})}}else if(this.isArtworkLinkRel(r)){return new h.default({href:t,rel:r,type:n,title:_})}else if(r===y.default.REL){return new y.default({href:t,rel:r,type:n,title:_})}else if(r===g.default.REL){return new g.default({href:t,rel:r,type:n,title:_})}else if(r===b.default.REL){return new b.default({href:t,rel:r})}else{return new a.default({href:t,rel:r,type:n,title:_,role:w})}};t.prototype.isAcquisitionLinkRel=function(e){return u.default.RELS.indexOf(e)!==-1};t.prototype.isArtworkLinkRel=function(e){return h.default.RELS.indexOf(e)!==-1};return t}(_.default);t.default=w},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="start";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/facet";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="search";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.BASE_REL="http://opds-spec.org/image";t.IMAGE_REL=t.BASE_REL;t.THUMBNAIL_REL=t.BASE_REL+"/thumbnail";t.RELS=[t.IMAGE_REL,t.THUMBNAIL_REL];return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/crawlable";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="collection";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/shelf";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(239);var i=r(373);var o=r(238);var s=r(364);var u=r(742);var l=r(743);var c=r(744);var f=r(99);var d=r(377);var p=r(59);var h=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=new s.default(this.prefixes);var r=this.prefixes[f.default.ATOM_URI];var n=this.prefixes[f.default.DC_URI];var p=this.prefixes[f.default.SCHEMA_URI];var h=this.parseSubtagContent(e,r+"id");var v=this.parseSubtagContent(e,r+"updated");var m=this.parseSubtagContent(e,r+"title");var y=new u.default(this.prefixes);var g=this.parseSubtags(e,r+"author",y);var b=this.parseSubtags(e,r+"contributor",y);var A=this.parseSubtagContent(e,p+"alternativeHeadline");var _=new l.default(this.prefixes);var w=this.parseSubtag(e,p+"Series",_);var E=this.parseSubtags(e,r+"link",t);var x=new c.default(this.prefixes);var k=this.parseSubtags(e,r+"category",x);var S=e[n+"identifier"];var O;if(S&&S.length>0){O=S.map((function(e){return e["_"]}))}else{O=[]}var M=this.parseSubtagContent(e,n+"issued");var D=this.parseSubtagContent(e,n+"language");var T=this.parseSubtagContent(e,r+"rights");var L=this.parseSubtagContent(e,n+"publisher");var C=this.parseSubtagContent(e,r+"published");var j;var N=this.parseSubtagContent(e,r+"content");if(!N){var I=e[r+"content"];if(I&&I.length>0){j=this.parseAttribute(I[0],"src")}}if(!N){N=this.parseSubtagContent(e,r+"summary")}var P=new d.default({content:N,link:j});var R=a.default;var F=E.find((function(e){return e instanceof o.default}));if(F){R=i.default}return new R({id:h,updated:v,title:m,authors:g,contributors:b,subtitle:A,series:w,links:E,categories:k,identifiers:O,issued:M,language:D,rights:T,publisher:L,published:C,summary:P,unparsed:e})};return t}(p.default);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(239);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){(function(){"use strict";var e,n,a,i,o=function(e,t){for(var r in t){if(s.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},s={}.hasOwnProperty;n=r(240);e=r(745);a=r(754);i=r(392);t.defaults=n.defaults;t.processors=i;t.ValidationError=function(e){o(t,e);function t(e){this.message=e}return t}(Error);t.Builder=e.Builder;t.Parser=a.Parser;t.parseString=a.parseString;t.parseStringPromise=a.parseStringPromise}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(){}e.prototype.hasFeature=function(e,t){return true};e.prototype.createDocumentType=function(e,t,r){throw new Error("This DOM method is not implemented.")};e.prototype.createDocument=function(e,t,r){throw new Error("This DOM method is not implemented.")};e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")};e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c=function(e,t){for(var r in t){if(f.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},f={}.hasOwnProperty;l=r(71).isPlainObject;a=r(379);n=r(747);o=r(47);t=r(26);u=r(383);s=r(254);e.exports=i=function(e){c(r,e);function r(e){r.__super__.constructor.call(this,null);this.name="#document";this.type=t.Document;this.documentURI=null;this.domConfig=new n;e||(e={});if(!e.writer){e.writer=new s}this.options=e;this.stringify=new u(e)}Object.defineProperty(r.prototype,"implementation",{value:new a});Object.defineProperty(r.prototype,"doctype",{get:function(){var e,r,n,a;a=this.children;for(r=0,n=a.length;r<n;r++){e=a[r];if(e.type===t.DocType){return e}}return null}});Object.defineProperty(r.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(r.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(r.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(r.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(r.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(r.prototype,"origin",{get:function(){return null}});Object.defineProperty(r.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(r.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(r.prototype,"contentType",{get:function(){return null}});r.prototype.end=function(e){var t;t={};if(!e){e=this.options.writer}else if(l(e)){t=e;e=this.options.writer}return e.document(this,e.filterOptions(t))};r.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))};r.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createProcessingInstruction=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.importNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createElementNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.renameNode=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createNodeIterator=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createTreeWalker=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};return r}(o)}).call(this)},function(e,t,r){(function(){var t,n,a;t=r(26);a=r(47);e.exports=n=function(){function e(e,r,n){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(r==null){throw new Error("Missing attribute name. "+this.debugInfo(r))}this.name=this.stringify.name(r);this.value=this.stringify.attValue(n);this.type=t.Attribute;this.isId=false;this.schemaTypeInfo=null}Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}});Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(e.prototype,"prefix",{get:function(){return""}});Object.defineProperty(e.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(e.prototype,"specified",{get:function(){return true}});e.prototype.clone=function(){return Object.create(this)};e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))};e.prototype.debugInfo=function(e){e=e||this.name;if(e==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+e+"}, parent: <"+this.parent.name+">"}};e.prototype.isEqualNode=function(e){if(e.namespaceURI!==this.namespaceURI){return false}if(e.prefix!==this.prefix){return false}if(e.localName!==this.localName){return false}if(e.value!==this.value){return false}return true};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i=function(e,t){for(var r in t){if(o.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},o={}.hasOwnProperty;a=r(47);t=r(26);e.exports=n=function(e){i(r,e);function r(e){r.__super__.constructor.call(this,e);this.type=t.Dummy}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return""};return r}(a)}).call(this)},function(e,t){(function(){var t,r=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;e.exports=t=function(){function e(e){this.assertLegalName=r(this.assertLegalName,this);this.assertLegalChar=r(this.assertLegalChar,this);var t,a,i;e||(e={});this.options=e;if(!this.options.version){this.options.version="1.0"}a=e.stringify||{};for(t in a){if(!n.call(a,t))continue;i=a[t];this[t]=i}}e.prototype.name=function(e){if(this.options.noValidation){return e}return this.assertLegalName(""+e||"")};e.prototype.text=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(this.textEscape(""+e||""))};e.prototype.cdata=function(e){if(this.options.noValidation){return e}e=""+e||"";e=e.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(e)};e.prototype.comment=function(e){if(this.options.noValidation){return e}e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};e.prototype.raw=function(e){if(this.options.noValidation){return e}return""+e||""};e.prototype.attValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(this.attEscape(e=""+e||""))};e.prototype.insTarget=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.insValue=function(e){if(this.options.noValidation){return e}e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return this.assertLegalChar(e)};e.prototype.xmlVersion=function(e){if(this.options.noValidation){return e}e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};e.prototype.xmlEncoding=function(e){if(this.options.noValidation){return e}e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return this.assertLegalChar(e)};e.prototype.xmlStandalone=function(e){if(this.options.noValidation){return e}if(e){return"yes"}else{return"no"}};e.prototype.dtdPubID=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdSysID=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdElementValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdAttType=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdAttDefault=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdEntityValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdNData=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.convertAttKey="@";e.prototype.convertPIKey="?";e.prototype.convertTextKey="#text";e.prototype.convertCDataKey="#cdata";e.prototype.convertCommentKey="#comment";e.prototype.convertRawKey="#raw";e.prototype.assertLegalChar=function(e){var t,r;if(this.options.noValidation){return e}t="";if(this.options.version==="1.0"){t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(r=e.match(t)){throw new Error("Invalid character in string: "+e+" at index "+r.index)}}else if(this.options.version==="1.1"){t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(r=e.match(t)){throw new Error("Invalid character in string: "+e+" at index "+r.index)}}return e};e.prototype.assertLegalName=function(e){var t;if(this.options.noValidation){return e}this.assertLegalChar(e);t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!e.match(t)){throw new Error("Invalid character in name")}return e};e.prototype.textEscape=function(e){var t;if(this.options.noValidation){return e}t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")};e.prototype.attEscape=function(e){var t;if(this.options.noValidation){return e}t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f,d,p,h,v,m,y,g,b={}.hasOwnProperty;g=r(71).assign;t=r(26);c=r(245);f=r(246);a=r(243);i=r(244);p=r(241);v=r(251);m=r(252);h=r(253);d=r(382);o=r(247);s=r(249);u=r(248);l=r(250);n=r(174);e.exports=y=function(){function e(e){var t,r,n;e||(e={});this.options=e;r=e.writer||{};for(t in r){if(!b.call(r,t))continue;n=r[t];this["_"+t]=this[t];this[t]=n}}e.prototype.filterOptions=function(e){var t,r,a,i,o,s,u,l;e||(e={});e=g({},this.options,e);t={writer:this};t.pretty=e.pretty||false;t.allowEmpty=e.allowEmpty||false;t.indent=(r=e.indent)!=null?r:" ";t.newline=(a=e.newline)!=null?a:"\n";t.offset=(i=e.offset)!=null?i:0;t.dontPrettyTextNodes=(o=(s=e.dontPrettyTextNodes)!=null?s:e.dontprettytextnodes)!=null?o:0;t.spaceBeforeSlash=(u=(l=e.spaceBeforeSlash)!=null?l:e.spacebeforeslash)!=null?u:"";if(t.spaceBeforeSlash===true){t.spaceBeforeSlash=" "}t.suppressPrettyCount=0;t.user={};t.state=n.None;return t};e.prototype.indent=function(e,t,r){var n;if(!t.pretty||t.suppressPrettyCount){return""}else if(t.pretty){n=(r||0)+t.offset+1;if(n>0){return new Array(n).join(t.indent)}}return""};e.prototype.endline=function(e,t,r){if(!t.pretty||t.suppressPrettyCount){return""}else{return t.newline}};e.prototype.attribute=function(e,t,r){var n;this.openAttribute(e,t,r);n=" "+e.name+'="'+e.value+'"';this.closeAttribute(e,t,r);return n};e.prototype.cdata=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<![CDATA[";t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+="]]>"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.comment=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"\x3c!-- ";t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=" --\x3e"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.declaration=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<?xml";t.state=n.InsideTag;a+=' version="'+e.version+'"';if(e.encoding!=null){a+=' encoding="'+e.encoding+'"'}if(e.standalone!=null){a+=' standalone="'+e.standalone+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+"?>";a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.docType=function(e,t,r){var a,i,o,s,u;r||(r=0);this.openNode(e,t,r);t.state=n.OpenTag;s=this.indent(e,t,r);s+="<!DOCTYPE "+e.root().name;if(e.pubID&&e.sysID){s+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.sysID){s+=' SYSTEM "'+e.sysID+'"'}if(e.children.length>0){s+=" [";s+=this.endline(e,t,r);t.state=n.InsideTag;u=e.children;for(i=0,o=u.length;i<o;i++){a=u[i];s+=this.writeChildNode(a,t,r+1)}t.state=n.CloseTag;s+="]"}t.state=n.CloseTag;s+=t.spaceBeforeSlash+">";s+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return s};e.prototype.element=function(e,r,a){var i,o,s,u,l,c,f,d,p,h,v,m,y,g;a||(a=0);h=false;v="";this.openNode(e,r,a);r.state=n.OpenTag;v+=this.indent(e,r,a)+"<"+e.name;m=e.attribs;for(p in m){if(!b.call(m,p))continue;i=m[p];v+=this.attribute(i,r,a)}s=e.children.length;u=s===0?null:e.children[0];if(s===0||e.children.every((function(e){return(e.type===t.Text||e.type===t.Raw)&&e.value===""}))){if(r.allowEmpty){v+=">";r.state=n.CloseTag;v+="</"+e.name+">"+this.endline(e,r,a)}else{r.state=n.CloseTag;v+=r.spaceBeforeSlash+"/>"+this.endline(e,r,a)}}else if(r.pretty&&s===1&&(u.type===t.Text||u.type===t.Raw)&&u.value!=null){v+=">";r.state=n.InsideTag;r.suppressPrettyCount++;h=true;v+=this.writeChildNode(u,r,a+1);r.suppressPrettyCount--;h=false;r.state=n.CloseTag;v+="</"+e.name+">"+this.endline(e,r,a)}else{if(r.dontPrettyTextNodes){y=e.children;for(l=0,f=y.length;l<f;l++){o=y[l];if((o.type===t.Text||o.type===t.Raw)&&o.value!=null){r.suppressPrettyCount++;h=true;break}}}v+=">"+this.endline(e,r,a);r.state=n.InsideTag;g=e.children;for(c=0,d=g.length;c<d;c++){o=g[c];v+=this.writeChildNode(o,r,a+1)}r.state=n.CloseTag;v+=this.indent(e,r,a)+"</"+e.name+">";if(h){r.suppressPrettyCount--}v+=this.endline(e,r,a);r.state=n.None}this.closeNode(e,r,a);return v};e.prototype.writeChildNode=function(e,r,n){switch(e.type){case t.CData:return this.cdata(e,r,n);case t.Comment:return this.comment(e,r,n);case t.Element:return this.element(e,r,n);case t.Raw:return this.raw(e,r,n);case t.Text:return this.text(e,r,n);case t.ProcessingInstruction:return this.processingInstruction(e,r,n);case t.Dummy:return"";case t.Declaration:return this.declaration(e,r,n);case t.DocType:return this.docType(e,r,n);case t.AttributeDeclaration:return this.dtdAttList(e,r,n);case t.ElementDeclaration:return this.dtdElement(e,r,n);case t.EntityDeclaration:return this.dtdEntity(e,r,n);case t.NotationDeclaration:return this.dtdNotation(e,r,n);default:throw new Error("Unknown XML node type: "+e.constructor.name)}};e.prototype.processingInstruction=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<?";t.state=n.InsideTag;a+=e.target;if(e.value){a+=" "+e.value}t.state=n.CloseTag;a+=t.spaceBeforeSlash+"?>";a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.raw=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r);t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.text=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r);t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdAttList=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ATTLIST";t.state=n.InsideTag;a+=" "+e.elementName+" "+e.attributeName+" "+e.attributeType;if(e.defaultValueType!=="#DEFAULT"){a+=" "+e.defaultValueType}if(e.defaultValue){a+=' "'+e.defaultValue+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdElement=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ELEMENT";t.state=n.InsideTag;a+=" "+e.name+" "+e.value;t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdEntity=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ENTITY";t.state=n.InsideTag;if(e.pe){a+=" %"}a+=" "+e.name;if(e.value){a+=' "'+e.value+'"'}else{if(e.pubID&&e.sysID){a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.sysID){a+=' SYSTEM "'+e.sysID+'"'}if(e.nData){a+=" NDATA "+e.nData}}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdNotation=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!NOTATION";t.state=n.InsideTag;a+=" "+e.name;if(e.pubID&&e.sysID){a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.pubID){a+=' PUBLIC "'+e.pubID+'"'}else if(e.sysID){a+=' SYSTEM "'+e.sysID+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.openNode=function(e,t,r){};e.prototype.closeNode=function(e,t,r){};e.prototype.openAttribute=function(e,t,r){};e.prototype.closeAttribute=function(e,t,r){};return e}()}).call(this)},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return r.call(e)=="[object Array]"}},function(e,t,r){"use strict";(function(t,n){var a=r(175);e.exports=E;var i=r(385);var o;E.ReadableState=w;var s=r(142).EventEmitter;var u=function(e,t){return e.listeners(t).length};var l=r(387);var c=r(176).Buffer;var f=t.Uint8Array||function(){};function d(e){return c.from(e)}function p(e){return c.isBuffer(e)||e instanceof f}var h=Object.create(r(152));h.inherits=r(125);var v=r(759);var m=void 0;if(v&&v.debuglog){m=v.debuglog("stream")}else{m=function(){}}var y=r(760);var g=r(388);var b;h.inherits(E,l);var A=["error","close","destroy","pause","resume"];function _(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(i(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function w(e,t){o=o||r(100);e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.readableObjectMode;var a=e.highWaterMark;var i=e.readableHighWaterMark;var s=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new y;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!b)b=r(258).StringDecoder;this.decoder=new b(e.encoding);this.encoding=e.encoding}}function E(e){o=o||r(100);if(!(this instanceof E))return new E(e);this._readableState=new w(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}l.call(this)}Object.defineProperty(E.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});E.prototype.destroy=g.destroy;E.prototype._undestroy=g.undestroy;E.prototype._destroy=function(e,t){this.push(null);t(e)};E.prototype.push=function(e,t){var r=this._readableState;var n;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=c.from(e,t);t=""}n=true}}else{n=true}return x(this,e,t,false,n)};E.prototype.unshift=function(e){return x(this,e,null,true,false)};function x(e,t,r,n,a){var i=e._readableState;if(t===null){i.reading=false;L(e,i)}else{var o;if(!a)o=S(i,t);if(o){e.emit("error",o)}else if(i.objectMode||t&&t.length>0){if(typeof t!=="string"&&!i.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=d(t)}if(n){if(i.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else k(e,i,t,true)}else if(i.ended){e.emit("error",new Error("stream.push() after EOF"))}else{i.reading=false;if(i.decoder&&!r){t=i.decoder.write(t);if(i.objectMode||t.length!==0)k(e,i,t,false);else N(e,i)}else{k(e,i,t,false)}}}else if(!n){i.reading=false}}return O(i)}function k(e,t,r,n){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(n)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)C(e)}N(e,t)}function S(e,t){var r;if(!p(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function O(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}E.prototype.isPaused=function(){return this._readableState.flowing===false};E.prototype.setEncoding=function(e){if(!b)b=r(258).StringDecoder;this._readableState.decoder=new b(e);this._readableState.encoding=e;return this};var M=8388608;function D(e){if(e>=M){e=M}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function T(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=D(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}E.prototype.read=function(e){m("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){m("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)V(this);else C(this);return null}e=T(e,t);if(e===0&&t.ended){if(t.length===0)V(this);return null}var n=t.needReadable;m("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;m("length less than watermark",n)}if(t.ended||t.reading){n=false;m("reading or ended",n)}else if(n){m("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=T(r,t)}var a;if(e>0)a=H(e,t);else a=null;if(a===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)V(this)}if(a!==null)this.emit("data",a);return a};function L(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;C(e)}function C(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){m("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)a.nextTick(j,e);else j(e)}}function j(e){m("emit readable");e.emit("readable");B(e)}function N(e,t){if(!t.readingMore){t.readingMore=true;a.nextTick(I,e,t)}}function I(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){m("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}E.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};E.prototype.pipe=function(e,t){var r=this;var i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1;m("pipe count=%d opts=%j",i.pipesCount,t);var o=(!t||t.end!==false)&&e!==n.stdout&&e!==n.stderr;var s=o?c:A;if(i.endEmitted)a.nextTick(s);else r.once("end",s);e.on("unpipe",l);function l(e,t){m("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;p()}}}function c(){m("onend");e.end()}var f=P(r);e.on("drain",f);var d=false;function p(){m("cleanup");e.removeListener("close",g);e.removeListener("finish",b);e.removeListener("drain",f);e.removeListener("error",y);e.removeListener("unpipe",l);r.removeListener("end",c);r.removeListener("end",A);r.removeListener("data",v);d=true;if(i.awaitDrain&&(!e._writableState||e._writableState.needDrain))f()}var h=false;r.on("data",v);function v(t){m("ondata");h=false;var n=e.write(t);if(false===n&&!h){if((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&K(i.pipes,e)!==-1)&&!d){m("false write response, pause",r._readableState.awaitDrain);r._readableState.awaitDrain++;h=true}r.pause()}}function y(t){m("onerror",t);A();e.removeListener("error",y);if(u(e,"error")===0)e.emit("error",t)}_(e,"error",y);function g(){e.removeListener("finish",b);A()}e.once("close",g);function b(){m("onfinish");e.removeListener("close",g);A()}e.once("finish",b);function A(){m("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!i.flowing){m("pipe resume");r.resume()}return e};function P(e){return function(){var t=e._readableState;m("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&u(e,"data")){t.flowing=true;B(e)}}}E.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var n=t.pipes;var a=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var i=0;i<a;i++){n[i].emit("unpipe",this,r)}return this}var o=K(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};E.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var n=this._readableState;if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.emittedReadable=false;if(!n.reading){a.nextTick(R,this)}else if(n.length){C(this)}}}return r};E.prototype.addListener=E.prototype.on;function R(e){m("readable nexttick read 0");e.read(0)}E.prototype.resume=function(){var e=this._readableState;if(!e.flowing){m("resume");e.flowing=true;F(this,e)}return this};function F(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;a.nextTick(Y,e,t)}}function Y(e,t){if(!t.reading){m("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");B(e);if(t.flowing&&!t.reading)e.read(0)}E.prototype.pause=function(){m("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){m("pause");this._readableState.flowing=false;this.emit("pause")}return this};function B(e){var t=e._readableState;m("flow",t.flowing);while(t.flowing&&e.read()!==null){}}E.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=false;e.on("end",(function(){m("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(a){m("wrapped data");if(r.decoder)a=r.decoder.write(a);if(r.objectMode&&(a===null||a===undefined))return;else if(!r.objectMode&&(!a||!a.length))return;var i=t.push(a);if(!i){n=true;e.pause()}}));for(var a in e){if(this[a]===undefined&&typeof e[a]==="function"){this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a)}}for(var i=0;i<A.length;i++){e.on(A[i],this.emit.bind(this,A[i]))}this._read=function(t){m("wrapped _read",t);if(n){n=false;e.resume()}};return this};Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});E._fromList=H;function H(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=U(e,t.buffer,t.decoder)}return r}function U(e,t,r){var n;if(e<t.head.data.length){n=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){n=t.shift()}else{n=r?z(e,t):q(e,t)}return n}function z(e,t){var r=t.head;var n=1;var a=r.data;e-=a.length;while(r=r.next){var i=r.data;var o=e>i.length?i.length:e;if(o===i.length)a+=i;else a+=i.slice(0,e);e-=o;if(e===0){if(o===i.length){++n;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=i.slice(o)}break}++n}t.length-=n;return a}function q(e,t){var r=c.allocUnsafe(e);var n=t.head;var a=1;n.data.copy(r);e-=n.data.length;while(n=n.next){var i=n.data;var o=e>i.length?i.length:e;i.copy(r,r.length-e,0,o);e-=o;if(e===0){if(o===i.length){++a;if(n.next)t.head=n.next;else t.head=t.tail=null}else{t.head=n;n.data=i.slice(o)}break}++a}t.length-=a;return r}function V(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;a.nextTick(W,t,e)}}function W(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function K(e,t){for(var r=0,n=e.length;r<n;r++){if(e[r]===t)return r}return-1}}).call(this,r(25),r(126))},function(e,t,r){e.exports=r(142).EventEmitter},function(e,t,r){"use strict";var n=r(175);function a(e,t){var r=this;var a=this._readableState&&this._readableState.destroyed;var i=this._writableState&&this._writableState.destroyed;if(a||i){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){n.nextTick(o,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){n.nextTick(o,r,e);if(r._writableState){r._writableState.errorEmitted=true}}else if(t){t(e)}}));return this}function i(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function o(e,t){e.emit("error",t)}e.exports={destroy:a,undestroy:i}},function(e,t,r){(function(e){var n=typeof e!=="undefined"&&e||typeof self!=="undefined"&&self||window;var a=Function.prototype.apply;t.setTimeout=function(){return new i(a.call(setTimeout,n,arguments),clearTimeout)};t.setInterval=function(){return new i(a.call(setInterval,n,arguments),clearInterval)};t.clearTimeout=t.clearInterval=function(e){if(e){e.close()}};function i(e,t){this._id=e;this._clearFn=t}i.prototype.unref=i.prototype.ref=function(){};i.prototype.close=function(){this._clearFn.call(n,this._id)};t.enroll=function(e,t){clearTimeout(e._idleTimeoutId);e._idleTimeout=t};t.unenroll=function(e){clearTimeout(e._idleTimeoutId);e._idleTimeout=-1};t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;if(t>=0){e._idleTimeoutId=setTimeout((function t(){if(e._onTimeout)e._onTimeout()}),t)}};r(390);t.setImmediate=typeof self!=="undefined"&&self.setImmediate||typeof e!=="undefined"&&e.setImmediate||this&&this.setImmediate;t.clearImmediate=typeof self!=="undefined"&&self.clearImmediate||typeof e!=="undefined"&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(25))},function(e,t,r){(function(e,t){(function(e,r){"use strict";if(e.setImmediate){return}var n=1;var a={};var i=false;var o=e.document;var s;function u(e){if(typeof e!=="function"){e=new Function(""+e)}var t=new Array(arguments.length-1);for(var r=0;r<t.length;r++){t[r]=arguments[r+1]}var i={callback:e,args:t};a[n]=i;s(n);return n++}function l(e){delete a[e]}function c(e){var t=e.callback;var n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n);break}}function f(e){if(i){setTimeout(f,0,e)}else{var t=a[e];if(t){i=true;try{c(t)}finally{l(e);i=false}}}}function d(){s=function(e){t.nextTick((function(){f(e)}))}}function p(){if(e.postMessage&&!e.importScripts){var t=true;var r=e.onmessage;e.onmessage=function(){t=false};e.postMessage("","*");e.onmessage=r;return t}}function h(){var t="setImmediate$"+Math.random()+"$";var r=function(r){if(r.source===e&&typeof r.data==="string"&&r.data.indexOf(t)===0){f(+r.data.slice(t.length))}};if(e.addEventListener){e.addEventListener("message",r,false)}else{e.attachEvent("onmessage",r)}s=function(r){e.postMessage(t+r,"*")}}function v(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;f(t)};s=function(t){e.port2.postMessage(t)}}function m(){var e=o.documentElement;s=function(t){var r=o.createElement("script");r.onreadystatechange=function(){f(t);r.onreadystatechange=null;e.removeChild(r);r=null};e.appendChild(r)}}function y(){s=function(e){setTimeout(f,0,e)}}var g=Object.getPrototypeOf&&Object.getPrototypeOf(e);g=g&&g.setTimeout?g:e;if({}.toString.call(e.process)==="[object process]"){d()}else if(p()){h()}else if(e.MessageChannel){v()}else if(o&&"onreadystatechange"in o.createElement("script")){m()}else{y()}g.setImmediate=u;g.clearImmediate=l})(typeof self==="undefined"?typeof e==="undefined"?this:e:self)}).call(this,r(25),r(126))},function(e,t,r){"use strict";e.exports=o;var n=r(100);var a=Object.create(r(152));a.inherits=r(125);a.inherits(o,n);function i(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(!n){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);n(e);var a=this._readableState;a.reading=false;if(a.needReadable||a.length<a.highWaterMark){this._read(a.highWaterMark)}}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e);this._transformState={afterTransform:i.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",s)}function s(){var e=this;if(typeof this._flush==="function"){this._flush((function(t,r){u(e,t,r)}))}else{u(this,null,null)}}o.prototype.push=function(e,t){this._transformState.needTransform=false;return n.prototype.push.call(this,e,t)};o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};o.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r;n.writechunk=e;n.writeencoding=t;if(!n.transforming){var a=this._readableState;if(n.needTransform||a.needReadable||a.length<a.highWaterMark)this._read(a.highWaterMark)}};o.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e);r.emit("close")}))};function u(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(8);t.default=function(e){var t={isFetching:false,fetchError:null};var r=function(r,a){if(r===void 0){r=t}switch(a.type){case e+"_"+n.default.REQUEST:return Object.assign({},r,{isFetching:true,fetchError:null});case e+"_"+n.default.FAILURE:return Object.assign({},r,{isFetching:false,fetchError:a.error});case e+"_"+n.default.SUCCESS:return Object.assign({},r,{isFetching:false,fetchError:null});default:return r}};return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){this.email=null;this.systemAdmin=false;this.sitewideLibraryManager=false;this.sitewideLibrarian=false;this.manager=false;this.libraryRoles={};this.roles=e;this.email=t;for(var r=0,n=e;r<n.length;r++){var a=n[r];switch(a.role){case"system":{this.systemAdmin=true}case"manager-all":{this.sitewideLibraryManager=true;this.manager=true}case"librarian-all":{this.sitewideLibrarian=true;break}case"manager":{this.manager=true;this.libraryRoles[a.library]="manager";break}case"librarian":{this.libraryRoles[a.library]="librarian";break}default:{break}}}}e.prototype.hasRole=function(e,t){if(this.isSystemAdmin()){return true}if(e!=="system"&&this.isSitewideLibraryManager()){return true}if(e==="librarian-all"&&this.isSitewideLibrarian()){return true}if(e==="manager"&&this.isLibraryManager(t)){return true}if(e==="librarian"&&this.isLibrarian(t)){return true}return false};e.prototype.isSystemAdmin=function(){return this.systemAdmin};e.prototype.isSitewideLibraryManager=function(){return this.sitewideLibraryManager};e.prototype.isSitewideLibrarian=function(){return this.sitewideLibrarian};e.prototype.isLibraryManager=function(e){return this.sitewideLibraryManager||this.libraryRoles[e]==="manager"};e.prototype.isLibrarian=function(e){return this.isLibraryManager(e)||this.sitewideLibrarian||this.libraryRoles[e]==="librarian"};e.prototype.isLibraryManagerOfSomeLibrary=function(){return this.manager};return e}();t.default=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});t.usePathFor=t.PathForContext=void 0;var a=r(1);var i=r(0);t.PathForContext=a.createContext(undefined);var o=function(e){n(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.getChildContext=function(){return{pathFor:this.props.pathFor}};r.prototype.render=function(){return a.createElement(t.PathForContext.Provider,{value:this.props.pathFor},this.props.children)};r.childContextTypes={pathFor:i.func.isRequired};return r}(a.Component);t.default=o;function s(){var e=a.useContext(t.PathForContext);if(typeof e==="undefined"){throw new Error("usePathFor must be used within a PathForProvider")}return e}t.usePathFor=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);t.TOSContext=n.createContext(null);t.TOSContextProvider=t.TOSContext.Provider},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(3);var o=r(533);var s=r(262);var u=r(177);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e;var t=this.fields();var r=u.getMedium(this.props.book);return a.createElement("div",{className:"book-details"},a.createElement("div",{className:"top",lang:this.props.book.language},a.createElement("div",{className:"cover"},a.createElement(o.default,{book:this.props.book})),a.createElement("div",{className:"details"},a.createElement("h1",{className:"title"},this.props.book.title),this.props.book.subtitle&&a.createElement("p",{className:"subtitle"},this.props.book.subtitle),this.props.book.series&&this.props.book.series.name&&a.createElement("p",{className:"series"},this.props.book.series.name),this.props.book.authors&&this.props.book.authors.length>0&&a.createElement("p",{className:"authors"},"By ",this.props.book.authors.join(", ")),this.props.book.contributors&&this.props.book.contributors.length>0&&a.createElement("p",{className:"contributors"},"Contributors: ",this.props.book.contributors.join(", ")),a.createElement("ul",{className:"fields",lang:"en"},t.map((function(e){return e.value&&a.createElement("li",{className:e.name.toLowerCase().replace(" ","-"),key:e.name},e.name,": ",e.value)})),r&&a.createElement("li",{className:"item-icon-container"},u.getMediumSVG(r))))),a.createElement("div",{className:"divider"}),a.createElement("div",{className:"main"},a.createElement("div",{className:"row"},a.createElement("div",{className:"top col-sm-6 col-sm-offset-3"},a.createElement("div",{className:"circulation-links"},this.circulationLinks()),a.createElement("div",{className:"circulation-info"},this.circulationInfo())),a.createElement("div",{className:"right-column-links col-sm-3"},this.rightColumnLinks())),a.createElement("h2",null,"Summary"),a.createElement("div",{className:"summary",lang:this.props.book.language,dangerouslySetInnerHTML:{__html:(e=this.props.book.summary)!==null&&e!==void 0?e:""}})))};t.prototype.componentDidMount=function(){this.setBodyOverflow("hidden")};t.prototype.componentWillUnmount=function(){this.setBodyOverflow("visible")};t.prototype.setBodyOverflow=function(e){var t=document.getElementsByTagName("body")[0];if(t){t.style.overflow=e}};t.prototype.circulationInfo=function(){if(u.bookIsOpenAccess(this.props.book)){return[a.createElement("div",{key:"oa",className:"open-access-info"},"This open-access book is available to keep.")]}if(u.bookIsBorrowed(this.props.book)){var e=this.props.book.availability&&this.props.book.availability.until;if(e){var t=i(e).fromNow(true);return[a.createElement("div",{key:"loan",className:"loan-info"},"You have this book on loan for ",t,".")]}return[]}var r=[];var n=this.props.book.copies&&this.props.book.copies.available;var o=this.props.book.copies&&this.props.book.copies.total;var s=this.props.book.holds&&this.props.book.holds.total;var l=this.props.book.holds&&this.props.book.holds.position;if(n!==undefined&&n!==null&&o!==undefined&&o!==null){r.push(a.createElement("div",{key:"copies",className:"copies-info"},n," of ",o," copies available"))}if(s&&n===0){r.push(a.createElement("div",{key:"holds",className:"holds-info"},s," patrons in hold queue"));if(u.bookIsReserved(this.props.book)&&l!==undefined&&l!==null){r.push(a.createElement("div",{key:"holds-position",className:"holds-info"},"Your holds position: ",l))}}return r};t.prototype.rightColumnLinks=function(){};return t}(s.default);t.default=l},function(e,t,r){(function(e,t){true?t(r(3)):undefined})(this,(function(e){"use strict";
42
42
  //! moment.js locale configuration
43
43
  var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,r){if(e<12){return r?"vm":"VM"}else{return r?"nm":"NM"}},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(e===1||e===8||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},function(e,t,r){(function(e,t){true?t(r(3)):undefined})(this,(function(e){"use strict";
44
44
  //! moment.js locale configuration
@@ -340,7 +340,7 @@ var t=e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_
340
340
  *
341
341
  * This source code is licensed under the MIT license found in the
342
342
  * LICENSE file in the root directory of this source tree.
343
- */var n="function"===typeof Symbol&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,v=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,A=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type,e){case f:case d:case o:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof,e){case c:case p:case y:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=f;t.ConcurrentMode=d;t.ContextConsumer=c;t.ContextProvider=l;t.Element=a;t.ForwardRef=p;t.Fragment=o;t.Lazy=y;t.Memo=m;t.Portal=i;t.Profiler=u;t.StrictMode=s;t.Suspense=h;t.isAsyncMode=function(e){return E(e)||w(e)===f};t.isConcurrentMode=E;t.isContextConsumer=function(e){return w(e)===c};t.isContextProvider=function(e){return w(e)===l};t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===a};t.isForwardRef=function(e){return w(e)===p};t.isFragment=function(e){return w(e)===o};t.isLazy=function(e){return w(e)===y};t.isMemo=function(e){return w(e)===m};t.isPortal=function(e){return w(e)===i};t.isProfiler=function(e){return w(e)===u};t.isStrictMode=function(e){return w(e)===s};t.isSuspense=function(e){return w(e)===h};t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===u||e===s||e===h||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===A||e.$$typeof===_||e.$$typeof===g)};t.typeOf=w},function(e,t,r){"use strict";var n=r(722);var a=r(46);function i(e){switch(e.arrayFormat){case"index":return function(t,r,n){return r===null?[s(t,e),"[",n,"]"].join(""):[s(t,e),"[",s(n,e),"]=",s(r,e)].join("")};case"bracket":return function(t,r){return r===null?s(t,e):[s(t,e),"[]=",s(r,e)].join("")};default:return function(t,r){return r===null?s(t,e):[s(t,e),"=",s(r,e)].join("")}}}function o(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e);e=e.replace(/\[\d*\]$/,"");if(!t){n[e]=r;return}if(n[e]===undefined){n[e]={}}n[e][t[1]]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e);e=e.replace(/\[\]$/,"");if(!t){n[e]=r;return}else if(n[e]===undefined){n[e]=[r];return}n[e]=[].concat(n[e],r)};default:return function(e,t,r){if(r[e]===undefined){r[e]=t;return}r[e]=[].concat(r[e],t)}}}function s(e,t){if(t.encode){return t.strict?n(e):encodeURIComponent(e)}return e}function u(e){if(Array.isArray(e)){return e.sort()}else if(typeof e==="object"){return u(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]}))}return e}t.extract=function(e){return e.split("?")[1]||""};t.parse=function(e,t){t=a({arrayFormat:"none"},t);var r=o(t);var n=Object.create(null);if(typeof e!=="string"){return n}e=e.trim().replace(/^(\?|#|&)/,"");if(!e){return n}e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("=");var a=t.shift();var i=t.length>0?t.join("="):undefined;i=i===undefined?null:decodeURIComponent(i);r(decodeURIComponent(a),i,n)}));return Object.keys(n).sort().reduce((function(e,t){var r=n[t];if(Boolean(r)&&typeof r==="object"&&!Array.isArray(r)){e[t]=u(r)}else{e[t]=r}return e}),Object.create(null))};t.stringify=function(e,t){var r={encode:true,strict:true,arrayFormat:"none"};t=a(r,t);var n=i(t);return e?Object.keys(e).sort().map((function(r){var a=e[r];if(a===undefined){return""}if(a===null){return s(r,t)}if(Array.isArray(a)){var i=[];a.slice().forEach((function(e){if(e===undefined){return}i.push(n(r,e,i.length))}));return i.join("&")}return s(r,t)+"="+s(a,t)})).filter((function(e){return e.length>0})).join("&"):""}},function(e,t,r){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,r){"use strict";t.__esModule=true;var n=t.loopAsync=function e(t,r,n){var a=0,i=false;var o=false,s=false,u=void 0;var l=function e(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++){r[a]=arguments[a]}i=true;if(o){u=r;return}n.apply(undefined,r)};var c=function e(){if(i)return;s=true;if(o)return;o=true;while(!i&&a<t&&s){s=false;r(a++,e,l)}o=false;if(i){n.apply(undefined,u);return}if(a>=t&&s){i=true;n()}};c()}},function(e,t,r){"use strict";t.__esModule=true;t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=undefined;var n=r(234);Object.defineProperty(t,"getUserConfirmation",{enumerable:true,get:function e(){return n.getUserConfirmation}});Object.defineProperty(t,"go",{enumerable:true,get:function e(){return n.go}});var a=r(124);var i=r(81);var o=t.getCurrentLocation=function e(){return(0,a.createLocation)(window.location)};var s=t.pushLocation=function e(t){window.location.href=(0,i.createPath)(t);return false};var u=t.replaceLocation=function e(t){window.location.replace((0,i.createPath)(t));return false}},function(e,t,r){"use strict";t.__esModule=true;t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=undefined;var n=r(234);Object.defineProperty(t,"getUserConfirmation",{enumerable:true,get:function e(){return n.getUserConfirmation}});Object.defineProperty(t,"go",{enumerable:true,get:function e(){return n.go}});var a=r(24);var i=c(a);var o=r(124);var s=r(171);var u=r(356);var l=r(81);function c(e){return e&&e.__esModule?e:{default:e}}var f="hashchange";var d=function e(){var t=window.location.href;var r=t.indexOf("#");return r===-1?"":t.substring(r+1)};var p=function e(t){return window.location.hash=t};var h=function e(t){var r=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,r>=0?r:0)+"#"+t)};var v=t.getCurrentLocation=function e(t,r){var n=t.decodePath(d());var a=(0,l.getQueryStringValueFromPath)(n,r);var i=void 0;if(a){n=(0,l.stripQueryStringValueFromPath)(n,r);i=(0,u.readState)(a)}var s=(0,l.parsePath)(n);s.state=i;return(0,o.createLocation)(s,undefined,a)};var m=void 0;var y=t.startListener=function e(t,r,n){var a=function e(){var a=d();var i=r.encodePath(a);if(a!==i){h(i)}else{var o=v(r,n);if(m&&o.key&&m.key===o.key)return;m=o;t(o)}};var i=d();var o=r.encodePath(i);if(i!==o)h(o);(0,s.addEventListener)(window,f,a);return function(){return(0,s.removeEventListener)(window,f,a)}};var g=function e(t,r,n,a){var i=t.state,o=t.key;var s=r.encodePath((0,l.createPath)(t));if(i!==undefined){s=(0,l.addQueryStringValueToPath)(s,n,o);(0,u.saveState)(o,i)}m=t;a(s)};var b=t.pushLocation=function e(t,r,n){return g(t,r,n,(function(e){if(d()!==e){p(e)}else{false?undefined:void 0}}))};var A=t.replaceLocation=function e(t,r,n){return g(t,r,n,(function(e){if(d()!==e)h(e)}))}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(727);var s=r(394);var u=r(395);var l=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.store=o.default();r.admin=new s.default(t.roles||[],t.email||null);r.pathFor=function(e,t,n){var a="/admin/web";a+=e?"/collection/"+r.prepareCollectionUrl(e):"";a+=t?"/book/"+r.prepareBookUrl(t):"";a+=n?"/tab/"+n:"";return a};return r}t.prototype.prepareCollectionUrl=function(e){return encodeURIComponent(e.replace(document.location.origin+"/","").replace(/\/$/,"").replace(/^\//,""))};t.prototype.prepareBookUrl=function(e){var t=new RegExp(document.location.origin+"/(.*)/works/(.*)");var r=t.exec(e);if(r){var n=r[1];var a=r[2];return encodeURIComponent(n+"/"+a)}else{return e}};t.prototype.getChildContext=function(){return{editorStore:this.store,csrfToken:this.props.csrfToken,showCircEventsDownload:this.props.showCircEventsDownload||false,settingUp:this.props.settingUp||false,admin:this.admin}};t.prototype.render=function(){return a.createElement(u.default,{pathFor:this.pathFor},a.Children.only(this.props.children))};t.childContextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired,showCircEventsDownload:i.bool.isRequired,settingUp:i.bool.isRequired,admin:i.object.isRequired};return t}(a.Component);t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(121);var a=r(357);var i=r(733);var o=r(261).default;var s=n.combineReducers({editor:i.default,catalog:a.default});var u=window["__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"]||n.compose;function l(e){return n.createStore(s,e,u(n.applyMiddleware(o)))}t.default=l},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});t.onlyRoot=t.shouldAddRoot=t.shorten=t.addCollection=t.addLink=t.shouldClear=void 0;function a(e,t){return t&&(e.url===t.url||e.id===t.id)}function i(e,t){var r;return((r=t===null||t===void 0?void 0:t.catalogRootLink)===null||r===void 0?void 0:r.url)===e.url}function o(e){var t;return((t=e===null||e===void 0?void 0:e.catalogRootLink)===null||t===void 0?void 0:t.url)===e.url}function s(e,t){return!!(t&&e.catalogRootLink&&t.catalogRootLink&&e.catalogRootLink.url!==t.catalogRootLink.url)}function u(e,t){return i(e,t)||o(e)||s(e,t)}t.shouldClear=u;function l(e,t){return e.concat([n({id:null},t)])}t.addLink=l;function c(e,t){return e.concat([{id:t.id,url:t.url,text:t.title}])}t.addCollection=c;function f(e,t){var r=e.findIndex((function(e){return e.url===t}));if(r!==-1){return e.slice(0,r)}else{return e}}t.shorten=f;function d(e){var t;return!!(((t=e.catalogRootLink)===null||t===void 0?void 0:t.text)&&!o(e))}t.shouldAddRoot=d;function p(e){return l([],e.catalogRootLink)}t.onlyRoot=p;t.default=function(e,t){var r=e.history.slice(0);var n=Object.freeze(t.data);var i=Object.freeze(e.data);var o=false;if(u(n,i)){r=[];o=true}var s=r.slice(0);r=f(s,n.url);var l=r!==s;if(!o&&!l&&i&&!a(n,i)){r=c(r,i)}if(r.length===0&&d(n)){r=p(n)}return r}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(64);var i={url:null,data:null,isFetching:false,error:null};var o=function(e,t){if(e===void 0){e=i}switch(t.type){case a.default.BOOK_REQUEST:return n(n({},e),{isFetching:true,error:null});case a.default.BOOK_FAILURE:return n(n({},e),{isFetching:false,error:t.error});case a.default.BOOK_LOAD:return n(n({},e),{data:t.data,url:t.url?t.url:e.url,isFetching:false});case a.default.BOOK_CLEAR:return n(n({},e),{data:null,url:null,error:null});case a.default.CLOSE_ERROR:return n(n({},e),{error:null});case a.default.FULFILL_BOOK_REQUEST:case a.default.UPDATE_BOOK_REQUEST:return n(n({},e),{isFetching:true});case a.default.FULFILL_BOOK_SUCCESS:case a.default.UPDATE_BOOK_SUCCESS:return n(n({},e),{isFetching:false});case a.default.FULFILL_BOOK_FAILURE:case a.default.UPDATE_BOOK_FAILURE:return n(n({},e),{isFetching:false,error:t.error});case a.default.UPDATE_BOOK_LOAD:if(e.data===null){return e}return n(n({},e),{data:n(n({},e.data),t.data)});default:return e}};t.default=o},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(64);var i={showForm:false,callback:null,cancel:null,credentials:null,title:null,error:null,attemptedProvider:null,providers:null};t.default=function(e,t){if(e===void 0){e=i}switch(t.type){case a.default.SHOW_AUTH_FORM:return n(n({},e),{showForm:true,callback:t.callback,cancel:t.cancel,title:t.error?e.title:t.title,error:t.error||null,attemptedProvider:t.attemptedProvider||null,providers:t.providers});case a.default.HIDE_AUTH_FORM:return n(n({},e),{showForm:false,error:null});case a.default.SAVE_AUTH_CREDENTIALS:return n(n({},e),{credentials:t.credentials});case a.default.CLEAR_AUTH_CREDENTIALS:return n(n({},e),{credentials:null});default:return e}}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(64);var i={url:null,books:[]};t.default=function(e,t){if(e===void 0){e=i}switch(t.type){case a.default.COLLECTION_LOAD:var r=t.data.shelfUrl||e.url;var o=t.url===r;return n(n({},e),{url:t.data.shelfUrl||e.url,books:o?t.data.books:e.books});case a.default.LOANS_LOAD:return n(n({},e),{books:t.data.books});case a.default.CLEAR_AUTH_CREDENTIALS:return n(n({},e),{books:[]});case a.default.UPDATE_BOOK_LOAD:var s=t.data;var u=s.availability&&s.availability.status==="reserved";var l=s.fulfillmentLinks&&s.fulfillmentLinks.length>0;var c=[];for(var f=0,d=e.books;f<d.length;f++){var p=d[f];if(p.id!==s.id){c.push(p)}}if(u||l){c.push(s)}return n(n({},e),{books:c});default:return e}}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(64);var i={};t.default=function(e,t){if(e===void 0){e=i}switch(t.type){case a.default.SET_PREFERENCE:var r={};r[t.key]=t.value;return n(n({},e),r);default:return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(121);var a=r(734);var i=r(780);var o=r(781);var s=r(782);var u=r(783);var l=r(784);var c=r(785);var f=r(786);var d=r(787);var p=r(788);var h=r(789);var v=r(790);var m=r(791);var y=r(792);var g=r(793);var b=r(794);var A=r(795);var _=r(796);var w=r(797);var E=r(798);var x=r(799);var k=r(800);var S=r(801);var O=r(802);var M=r(803);var D=r(804);var T=r(805);var L=r(806);var C=r(807);var j=r(259);var N=r(808);var I=r(809);var P=r(810);var R=r(811);var F=r(812);var Y=r(813);var B=r(814);var H=r(815);var U=r(816);var z=r(359);var q=r(817);var V=r(818);t.default=n.combineReducers({book:a.default,complaints:i.default,classifications:o.default,bookCoverPreview:s.default,bookCover:u.default,customListsForBook:l.default,circulationEvents:c.default,stats:f.default,diagnostics:d.default,libraries:p.default,collections:h.default,adminAuthServices:v.default,individualAdmins:m.default,patronAuthServices:y.default,sitewideSettings:g.default,loggingServices:b.default,metadataServices:A.default,analyticsServices:_.default,cdnServices:w.default,searchServices:E.default,storageServices:x.default,catalogServices:k.default,discoveryServices:S.default,registerLibraryWithDiscoveryService:O.default,discoveryServiceLibraryRegistrations:M.default,registerLibraryWithCollection:D.default,collectionLibraryRegistrations:T.default,customLists:L.default,customListDetails:C.default,customListEditor:j.default,collection:z.default,lanes:N.default,laneVisibility:I.default,resetLanes:P.default,laneOrder:R.default,selfTests:F.default,roles:Y.default,media:B.default,languages:H.default,rightsStatuses:U.default,changePassword:q.default,patronManager:V.default})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(8);var a={url:null,data:null,isFetching:false,fetchError:null,editError:null};t.default=function(e,t){if(e===void 0){e=a}switch(t.type){case n.default.BOOK_CLEAR:return a;case n.default.BOOK_ADMIN_REQUEST:return Object.assign({},e,{url:t.url,isFetching:true,fetchError:null,editError:null});case n.default.EDIT_BOOK_REQUEST:return Object.assign({},e,{isFetching:true,editError:null});case n.default.BOOK_ADMIN_LOAD:return Object.assign({},e,{url:t.url,data:t.data,isFetching:false});case n.default.BOOK_ADMIN_FAILURE:return Object.assign({},e,{fetchError:t.error,isFetching:false});case n.default.EDIT_BOOK_FAILURE:return Object.assign({},e,{editError:t.error,isFetching:false});default:return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(99);var a=r(736);var i=r(372);var o=r(378);var s=new o.Parser({xmlns:true});var u=new n.default;var l=function(){function e(){}e.prototype.parse=function(e){return new Promise((function(t,r){s.parseString(e,(function(e,n){if(e){r(e)}else{if(n.feed){var o=u.prefixes(n.feed);var s=new a.default(o);var l=s.parse(n.feed);t(l)}else if(n.entry){var o=u.prefixes(n.entry);var c=new i.default(o);var f=c.parse(n.entry);t(f)}else{r("No feed found")}}}))}))};return e}();t.default=l},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(235);var i=r(362);var o=r(363);var s=r(364);var u=r(372);var l=r(99);var c=r(59);var f=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.prefixes[l.default.ATOM_URI];var r=this.prefixes[l.default.FH_URI];var n=new s.default(this.prefixes);var c=new u.default(this.prefixes);var f=this.parseSubtagContent(e,t+"id");var d=this.parseSubtagContent(e,t+"title");var p=this.parseSubtagContent(e,t+"updated");var h=this.parseSubtags(e,t+"link",n);var v=this.parseSubtags(e,t+"entry",c);var m=!!e[r+"complete"];var y=this.prefixes[l.default.OPEN_SEARCH_URI];var g=parseInt(this.parseSubtagContent(e,y+"totalResults"),10);var b=parseInt(this.parseSubtagContent(e,y+"startIndex"),10);var A=parseInt(this.parseSubtagContent(e,y+"itemsPerPage"),10);var _={totalResults:g,startIndex:b,itemsPerPage:A};var w={id:f,title:d,updated:p,entries:v,links:h,complete:m,search:_,unparsed:e};var E=v.every((function(e){return!!e.links.find((function(e){return e instanceof a.default}))}));if(E){return new o.default(w)}else{return new i.default(w)}};return t}(c.default);t.default=f},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(59);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=e["_"];var r=this.parseAttribute(e,"currencyCode");return{value:t,currencyCode:r}};return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(59);var i=r(99);var o=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this;var r={type:this.parseAttribute(e,"type")};var n=this.prefixes[i.default.OPDS_URI];var a=n+"indirectAcquisition";if(e[a]){r.indirectAcquisitions=e[a].map((function(e){return t.parse(e)}))}return r};return t}(a.default);t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(59);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t={status:this.parseAttribute(e,"status"),since:this.parseAttribute(e,"since"),until:this.parseAttribute(e,"until")};return t};return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(59);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t={total:parseInt(this.parseAttribute(e,"total")),position:parseInt(this.parseAttribute(e,"position"))};return t};return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(59);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t={total:parseInt(this.parseAttribute(e,"total")),available:parseInt(this.parseAttribute(e,"available"))};return t};return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(374);var i=r(99);var o=r(59);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.parseSubtagContent(e,"name");var r=this.parseSubtagContent(e,"uri");var n=this.prefixes[i.default.OPF_URI];var o=this.parseAttribute(e,n+"role");return new a.default({name:t,uri:r,role:o})};return t}(o.default);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(375);var i=r(99);var o=r(59);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.prefixes[i.default.SCHEMA_URI];var r=this.parseAttribute(e,"name");var n=this.parseAttribute(e,t+"position");return new a.default({name:r,position:n})};return t}(o.default);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(376);var i=r(59);var o=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.parseAttribute(e,"term");var r=this.parseAttribute(e,"scheme");var n=this.parseAttribute(e,"label");return new a.default({term:t,scheme:r,label:n})};return t}(i.default);t.default=o},function(e,t,r){(function(){"use strict";var e,n,a,i,o,s={}.hasOwnProperty;e=r(746);n=r(240).defaults;i=function(e){return typeof e==="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};o=function(e){return"<![CDATA["+a(e)+"]]>"};a=function(e){return e.replace("]]>","]]]]><![CDATA[>")};t.Builder=function(){function t(e){var t,r,a;this.options={};r=n["0.2"];for(t in r){if(!s.call(r,t))continue;a=r[t];this.options[t]=a}for(t in e){if(!s.call(e,t))continue;a=e[t];this.options[t]=a}}t.prototype.buildObject=function(t){var r,a,u,l,c;r=this.options.attrkey;a=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===n["0.2"].rootName){c=Object.keys(t)[0];t=t[c]}else{c=this.options.rootName}u=function(e){return function(t,n){var l,c,f,d,p,h;if(typeof n!=="object"){if(e.options.cdata&&i(n)){t.raw(o(n))}else{t.txt(n)}}else if(Array.isArray(n)){for(d in n){if(!s.call(n,d))continue;c=n[d];for(p in c){f=c[p];t=u(t.ele(p),f).up()}}}else{for(p in n){if(!s.call(n,p))continue;c=n[p];if(p===r){if(typeof c==="object"){for(l in c){h=c[l];t=t.att(l,h)}}}else if(p===a){if(e.options.cdata&&i(c)){t=t.raw(o(c))}else{t=t.txt(c)}}else if(Array.isArray(c)){for(d in c){if(!s.call(c,d))continue;f=c[d];if(typeof f==="string"){if(e.options.cdata&&i(f)){t=t.ele(p).raw(o(f)).up()}else{t=t.ele(p,f).up()}}else{t=u(t.ele(p),f).up()}}}else if(typeof c==="object"){t=u(t.ele(p),c).up()}else{if(typeof c==="string"&&e.options.cdata&&i(c)){t=t.ele(p).raw(o(c)).up()}else{if(c==null){c=""}t=t.ele(p,c.toString()).up()}}}}return t}}(this);l=e.create(c,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(l,t).end(this.options.renderOpts)};return t}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f;f=r(71),l=f.assign,c=f.isFunction;a=r(379);i=r(380);o=r(752);u=r(254);s=r(753);t=r(26);n=r(174);e.exports.create=function(e,t,r,n){var a,o;if(e==null){throw new Error("Root element needs a name.")}n=l({},t,r,n);a=new i(n);o=a.element(e);if(!n.headless){a.declaration(n);if(n.pubID!=null||n.sysID!=null){a.dtd(n)}}return o};e.exports.begin=function(e,t,r){var n;if(c(e)){n=[e,t],t=n[0],r=n[1];e={}}if(t){return new o(e,t,r)}else{return new i(e)}};e.exports.stringWriter=function(e){return new u(e)};e.exports.streamWriter=function(e,t){return new s(e,t)};e.exports.implementation=new a;e.exports.nodeType=t;e.exports.writerState=n}).call(this)},function(e,t,r){(function(){var t,n,a;n=r(748);a=r(749);e.exports=t=function(){function e(){var e;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new n,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=e=Object.create(this.defaultParams)}Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}});e.prototype.getParameter=function(e){if(this.params.hasOwnProperty(e)){return this.params[e]}else{return null}};e.prototype.canSetParameter=function(e,t){return true};e.prototype.setParameter=function(e,t){if(t!=null){return this.params[e]=t}else{return delete this.params[e]}};return e}()}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(){}e.prototype.handleError=function(e){throw new Error(e)};return e}()}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(e){this.arr=e||[]}Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}});e.prototype.item=function(e){return this.arr[e]||null};e.prototype.contains=function(e){return this.arr.indexOf(e)!==-1};return e}()}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(e){this.nodes=e}Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}});e.prototype.clone=function(){return this.nodes=null};e.prototype.item=function(e){return this.nodes[e]||null};return e}()}).call(this)},function(e,t){(function(){e.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f,d,p,h,v,m,y,g,b,A,_,w,E,x,k,S={}.hasOwnProperty;k=r(71),E=k.isObject,w=k.isFunction,x=k.isPlainObject,_=k.getValue;t=r(26);p=r(380);v=r(241);i=r(243);o=r(244);y=r(251);A=r(252);m=r(253);f=r(245);d=r(246);s=r(247);l=r(248);u=r(249);c=r(250);a=r(381);b=r(383);g=r(254);n=r(174);e.exports=h=function(){function e(e,r,n){var a;this.name="?xml";this.type=t.Document;e||(e={});a={};if(!e.writer){e.writer=new g}else if(x(e.writer)){a=e.writer;e.writer=new g}this.options=e;this.writer=e.writer;this.writerOptions=this.writer.filterOptions(a);this.stringify=new b(e);this.onDataCallback=r||function(){};this.onEndCallback=n||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}e.prototype.createChildNode=function(e){var r,n,a,i,o,s,u,l;switch(e.type){case t.CData:this.cdata(e.value);break;case t.Comment:this.comment(e.value);break;case t.Element:a={};u=e.attribs;for(n in u){if(!S.call(u,n))continue;r=u[n];a[n]=r.value}this.node(e.name,a);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(e.value);break;case t.Text:this.text(e.value);break;case t.ProcessingInstruction:this.instruction(e.target,e.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+e.constructor.name)}l=e.children;for(o=0,s=l.length;o<s;o++){i=l[o];this.createChildNode(i);if(i.type===t.Element){this.up()}}return this};e.prototype.dummy=function(){return this};e.prototype.node=function(e,t,r){var n;if(e==null){throw new Error("Missing node name.")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node. "+this.debugInfo(e))}this.openCurrent();e=_(e);if(t==null){t={}}t=_(t);if(!E(t)){n=[t,r],r=n[0],t=n[1]}this.currentNode=new v(this,e,t);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(r!=null){this.text(r)}return this};e.prototype.element=function(e,r,n){var a,i,o,s,u,l;if(this.currentNode&&this.currentNode.type===t.DocType){this.dtdElement.apply(this,arguments)}else{if(Array.isArray(e)||E(e)||w(e)){s=this.options.noValidation;this.options.noValidation=true;l=new p(this.options).element("TEMP_ROOT");l.element(e);this.options.noValidation=s;u=l.children;for(i=0,o=u.length;i<o;i++){a=u[i];this.createChildNode(a);if(a.type===t.Element){this.up()}}}else{this.node(e,r,n)}}return this};e.prototype.attribute=function(e,t){var r,n;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(e))}if(e!=null){e=_(e)}if(E(e)){for(r in e){if(!S.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(w(t)){t=t.apply()}if(this.options.keepNullAttributes&&t==null){this.currentNode.attribs[e]=new a(this,e,"")}else if(t!=null){this.currentNode.attribs[e]=new a(this,e,t)}}return this};e.prototype.text=function(e){var t;this.openCurrent();t=new A(this,e);this.onData(this.writer.text(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.cdata=function(e){var t;this.openCurrent();t=new i(this,e);this.onData(this.writer.cdata(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.comment=function(e){var t;this.openCurrent();t=new o(this,e);this.onData(this.writer.comment(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.raw=function(e){var t;this.openCurrent();t=new y(this,e);this.onData(this.writer.raw(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.instruction=function(e,t){var r,n,a,i,o;this.openCurrent();if(e!=null){e=_(e)}if(t!=null){t=_(t)}if(Array.isArray(e)){for(r=0,i=e.length;r<i;r++){n=e[r];this.instruction(n)}}else if(E(e)){for(n in e){if(!S.call(e,n))continue;a=e[n];this.instruction(n,a)}}else{if(w(t)){t=t.apply()}o=new m(this,e,t);this.onData(this.writer.processingInstruction(o,this.writerOptions,this.currentLevel+1),this.currentLevel+1)}return this};e.prototype.declaration=function(e,t,r){var n;this.openCurrent();if(this.documentStarted){throw new Error("declaration() must be the first node.")}n=new f(this,e,t,r);this.onData(this.writer.declaration(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.doctype=function(e,t,r){this.openCurrent();if(e==null){throw new Error("Missing root node name.")}if(this.root){throw new Error("dtd() must come before the root node.")}this.currentNode=new d(this,t,r);this.currentNode.rootNodeName=e;this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;return this};e.prototype.dtdElement=function(e,t){var r;this.openCurrent();r=new u(this,e,t);this.onData(this.writer.dtdElement(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.attList=function(e,t,r,n,a){var i;this.openCurrent();i=new s(this,e,t,r,n,a);this.onData(this.writer.dtdAttList(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.entity=function(e,t){var r;this.openCurrent();r=new l(this,false,e,t);this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.pEntity=function(e,t){var r;this.openCurrent();r=new l(this,true,e,t);this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.notation=function(e,t){var r;this.openCurrent();r=new c(this,e,t);this.onData(this.writer.dtdNotation(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.up=function(){if(this.currentLevel<0){throw new Error("The document node has no parent.")}if(this.currentNode){if(this.currentNode.children){this.closeNode(this.currentNode)}else{this.openNode(this.currentNode)}this.currentNode=null}else{this.closeNode(this.openTags[this.currentLevel])}delete this.openTags[this.currentLevel];this.currentLevel--;return this};e.prototype.end=function(){while(this.currentLevel>=0){this.up()}return this.onEnd()};e.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};e.prototype.openNode=function(e){var r,a,i,o;if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e.type===t.Element){this.root=e}a="";if(e.type===t.Element){this.writerOptions.state=n.OpenTag;a=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name;o=e.attribs;for(i in o){if(!S.call(o,i))continue;r=o[i];a+=this.writer.attribute(r,this.writerOptions,this.currentLevel)}a+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel);this.writerOptions.state=n.InsideTag}else{this.writerOptions.state=n.OpenTag;a=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+e.rootNodeName;if(e.pubID&&e.sysID){a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.sysID){a+=' SYSTEM "'+e.sysID+'"'}if(e.children){a+=" [";this.writerOptions.state=n.InsideTag}else{this.writerOptions.state=n.CloseTag;a+=">"}a+=this.writer.endline(e,this.writerOptions,this.currentLevel)}this.onData(a,this.currentLevel);return e.isOpen=true}};e.prototype.closeNode=function(e){var r;if(!e.isClosed){r="";this.writerOptions.state=n.CloseTag;if(e.type===t.Element){r=this.writer.indent(e,this.writerOptions,this.currentLevel)+"</"+e.name+">"+this.writer.endline(e,this.writerOptions,this.currentLevel)}else{r=this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel)}this.writerOptions.state=n.None;this.onData(r,this.currentLevel);return e.isClosed=true}};e.prototype.onData=function(e,t){this.documentStarted=true;return this.onDataCallback(e,t+1)};e.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};e.prototype.debugInfo=function(e){if(e==null){return""}else{return"node: <"+e+">"}};e.prototype.ele=function(){return this.element.apply(this,arguments)};e.prototype.nod=function(e,t,r){return this.node(e,t,r)};e.prototype.txt=function(e){return this.text(e)};e.prototype.dat=function(e){return this.cdata(e)};e.prototype.com=function(e){return this.comment(e)};e.prototype.ins=function(e,t){return this.instruction(e,t)};e.prototype.dec=function(e,t,r){return this.declaration(e,t,r)};e.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)};e.prototype.e=function(e,t,r){return this.element(e,t,r)};e.prototype.n=function(e,t,r){return this.node(e,t,r)};e.prototype.t=function(e){return this.text(e)};e.prototype.d=function(e){return this.cdata(e)};e.prototype.c=function(e){return this.comment(e)};e.prototype.r=function(e){return this.raw(e)};e.prototype.i=function(e,t){return this.instruction(e,t)};e.prototype.att=function(){if(this.currentNode&&this.currentNode.type===t.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};e.prototype.a=function(){if(this.currentNode&&this.currentNode.type===t.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};e.prototype.ent=function(e,t){return this.entity(e,t)};e.prototype.pent=function(e,t){return this.pEntity(e,t)};e.prototype.not=function(e,t){return this.notation(e,t)};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o=function(e,t){for(var r in t){if(s.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},s={}.hasOwnProperty;t=r(26);i=r(384);n=r(174);e.exports=a=function(e){o(r,e);function r(e,t){this.stream=e;r.__super__.constructor.call(this,t)}r.prototype.endline=function(e,t,a){if(e.isLastRootNode&&t.state===n.CloseTag){return""}else{return r.__super__.endline.call(this,e,t,a)}};r.prototype.document=function(e,t){var r,n,a,i,o,s,u,l,c;u=e.children;for(n=a=0,o=u.length;a<o;n=++a){r=u[n];r.isLastRootNode=n===e.children.length-1}t=this.filterOptions(t);l=e.children;c=[];for(i=0,s=l.length;i<s;i++){r=l[i];c.push(this.writeChildNode(r,t,0))}return c};r.prototype.attribute=function(e,t,n){return this.stream.write(r.__super__.attribute.call(this,e,t,n))};r.prototype.cdata=function(e,t,n){return this.stream.write(r.__super__.cdata.call(this,e,t,n))};r.prototype.comment=function(e,t,n){return this.stream.write(r.__super__.comment.call(this,e,t,n))};r.prototype.declaration=function(e,t,n){return this.stream.write(r.__super__.declaration.call(this,e,t,n))};r.prototype.docType=function(e,t,r){var a,i,o,s;r||(r=0);this.openNode(e,t,r);t.state=n.OpenTag;this.stream.write(this.indent(e,t,r));this.stream.write("<!DOCTYPE "+e.root().name);if(e.pubID&&e.sysID){this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"')}else if(e.sysID){this.stream.write(' SYSTEM "'+e.sysID+'"')}if(e.children.length>0){this.stream.write(" [");this.stream.write(this.endline(e,t,r));t.state=n.InsideTag;s=e.children;for(i=0,o=s.length;i<o;i++){a=s[i];this.writeChildNode(a,t,r+1)}t.state=n.CloseTag;this.stream.write("]")}t.state=n.CloseTag;this.stream.write(t.spaceBeforeSlash+">");this.stream.write(this.endline(e,t,r));t.state=n.None;return this.closeNode(e,t,r)};r.prototype.element=function(e,r,a){var i,o,u,l,c,f,d,p,h,v;a||(a=0);this.openNode(e,r,a);r.state=n.OpenTag;this.stream.write(this.indent(e,r,a)+"<"+e.name);h=e.attribs;for(d in h){if(!s.call(h,d))continue;i=h[d];this.attribute(i,r,a)}u=e.children.length;l=u===0?null:e.children[0];if(u===0||e.children.every((function(e){return(e.type===t.Text||e.type===t.Raw)&&e.value===""}))){if(r.allowEmpty){this.stream.write(">");r.state=n.CloseTag;this.stream.write("</"+e.name+">")}else{r.state=n.CloseTag;this.stream.write(r.spaceBeforeSlash+"/>")}}else if(r.pretty&&u===1&&(l.type===t.Text||l.type===t.Raw)&&l.value!=null){this.stream.write(">");r.state=n.InsideTag;r.suppressPrettyCount++;p=true;this.writeChildNode(l,r,a+1);r.suppressPrettyCount--;p=false;r.state=n.CloseTag;this.stream.write("</"+e.name+">")}else{this.stream.write(">"+this.endline(e,r,a));r.state=n.InsideTag;v=e.children;for(c=0,f=v.length;c<f;c++){o=v[c];this.writeChildNode(o,r,a+1)}r.state=n.CloseTag;this.stream.write(this.indent(e,r,a)+"</"+e.name+">")}this.stream.write(this.endline(e,r,a));r.state=n.None;return this.closeNode(e,r,a)};r.prototype.processingInstruction=function(e,t,n){return this.stream.write(r.__super__.processingInstruction.call(this,e,t,n))};r.prototype.raw=function(e,t,n){return this.stream.write(r.__super__.raw.call(this,e,t,n))};r.prototype.text=function(e,t,n){return this.stream.write(r.__super__.text.call(this,e,t,n))};r.prototype.dtdAttList=function(e,t,n){return this.stream.write(r.__super__.dtdAttList.call(this,e,t,n))};r.prototype.dtdElement=function(e,t,n){return this.stream.write(r.__super__.dtdElement.call(this,e,t,n))};r.prototype.dtdEntity=function(e,t,n){return this.stream.write(r.__super__.dtdEntity.call(this,e,t,n))};r.prototype.dtdNotation=function(e,t,n){return this.stream.write(r.__super__.dtdNotation.call(this,e,t,n))};return r}(i)}).call(this)},function(e,t,r){(function(){"use strict";var e,n,a,i,o,s,u,l,c=function(e,t){return function(){return e.apply(t,arguments)}},f=function(e,t){for(var r in t){if(d.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},d={}.hasOwnProperty;u=r(755);a=r(142);e=r(768);s=r(392);l=r(389).setImmediate;n=r(240).defaults;i=function(e){return typeof e==="object"&&e!=null&&Object.keys(e).length===0};o=function(e,t,r){var n,a,i;for(n=0,a=e.length;n<a;n++){i=e[n];t=i(t,r)}return t};t.Parser=function(r){f(a,r);function a(e){this.parseStringPromise=c(this.parseStringPromise,this);this.parseString=c(this.parseString,this);this.reset=c(this.reset,this);this.assignOrPush=c(this.assignOrPush,this);this.processAsync=c(this.processAsync,this);var r,a,i;if(!(this instanceof t.Parser)){return new t.Parser(e)}this.options={};a=n["0.2"];for(r in a){if(!d.call(a,r))continue;i=a[r];this.options[r]=i}for(r in e){if(!d.call(e,r))continue;i=e[r];this.options[r]=i}if(this.options.xmlns){this.options.xmlnskey=this.options.attrkey+"ns"}if(this.options.normalizeTags){if(!this.options.tagNameProcessors){this.options.tagNameProcessors=[]}this.options.tagNameProcessors.unshift(s.normalize)}this.reset()}a.prototype.processAsync=function(){var e,t;try{if(this.remaining.length<=this.options.chunkSize){e=this.remaining;this.remaining="";this.saxParser=this.saxParser.write(e);return this.saxParser.close()}else{e=this.remaining.substr(0,this.options.chunkSize);this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length);this.saxParser=this.saxParser.write(e);return l(this.processAsync)}}catch(e){t=e;if(!this.saxParser.errThrown){this.saxParser.errThrown=true;return this.emit(t)}}};a.prototype.assignOrPush=function(e,t,r){if(!(t in e)){if(!this.options.explicitArray){return e[t]=r}else{return e[t]=[r]}}else{if(!(e[t]instanceof Array)){e[t]=[e[t]]}return e[t].push(r)}};a.prototype.reset=function(){var e,t,r,n;this.removeAllListeners();this.saxParser=u.parser(this.options.strict,{trim:false,normalize:false,xmlns:this.options.xmlns});this.saxParser.errThrown=false;this.saxParser.onerror=function(e){return function(t){e.saxParser.resume();if(!e.saxParser.errThrown){e.saxParser.errThrown=true;return e.emit("error",t)}}}(this);this.saxParser.onend=function(e){return function(){if(!e.saxParser.ended){e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);this.saxParser.ended=false;this.EXPLICIT_CHARKEY=this.options.explicitCharkey;this.resultObject=null;n=[];e=this.options.attrkey;t=this.options.charkey;this.saxParser.onopentag=function(r){return function(a){var i,s,u,l,c;u={};u[t]="";if(!r.options.ignoreAttrs){c=a.attributes;for(i in c){if(!d.call(c,i))continue;if(!(e in u)&&!r.options.mergeAttrs){u[e]={}}s=r.options.attrValueProcessors?o(r.options.attrValueProcessors,a.attributes[i],i):a.attributes[i];l=r.options.attrNameProcessors?o(r.options.attrNameProcessors,i):i;if(r.options.mergeAttrs){r.assignOrPush(u,l,s)}else{u[e][l]=s}}}u["#name"]=r.options.tagNameProcessors?o(r.options.tagNameProcessors,a.name):a.name;if(r.options.xmlns){u[r.options.xmlnskey]={uri:a.uri,local:a.local}}return n.push(u)}}(this);this.saxParser.onclosetag=function(e){return function(){var r,a,s,u,l,c,f,p,h,v;c=n.pop();l=c["#name"];if(!e.options.explicitChildren||!e.options.preserveChildrenOrder){delete c["#name"]}if(c.cdata===true){r=c.cdata;delete c.cdata}h=n[n.length-1];if(c[t].match(/^\s*$/)&&!r){a=c[t];delete c[t]}else{if(e.options.trim){c[t]=c[t].trim()}if(e.options.normalize){c[t]=c[t].replace(/\s{2,}/g," ").trim()}c[t]=e.options.valueProcessors?o(e.options.valueProcessors,c[t],l):c[t];if(Object.keys(c).length===1&&t in c&&!e.EXPLICIT_CHARKEY){c=c[t]}}if(i(c)){c=e.options.emptyTag!==""?e.options.emptyTag:a}if(e.options.validator!=null){v="/"+function(){var e,t,r;r=[];for(e=0,t=n.length;e<t;e++){u=n[e];r.push(u["#name"])}return r}().concat(l).join("/");(function(){var t;try{return c=e.options.validator(v,h&&h[l],c)}catch(r){t=r;return e.emit("error",t)}})()}if(e.options.explicitChildren&&!e.options.mergeAttrs&&typeof c==="object"){if(!e.options.preserveChildrenOrder){u={};if(e.options.attrkey in c){u[e.options.attrkey]=c[e.options.attrkey];delete c[e.options.attrkey]}if(!e.options.charsAsChildren&&e.options.charkey in c){u[e.options.charkey]=c[e.options.charkey];delete c[e.options.charkey]}if(Object.getOwnPropertyNames(c).length>0){u[e.options.childkey]=c}c=u}else if(h){h[e.options.childkey]=h[e.options.childkey]||[];f={};for(s in c){if(!d.call(c,s))continue;f[s]=c[s]}h[e.options.childkey].push(f);delete c["#name"];if(Object.keys(c).length===1&&t in c&&!e.EXPLICIT_CHARKEY){c=c[t]}}}if(n.length>0){return e.assignOrPush(h,l,c)}else{if(e.options.explicitRoot){p=c;c={};c[l]=p}e.resultObject=c;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);r=function(e){return function(r){var a,i;i=n[n.length-1];if(i){i[t]+=r;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||r.replace(/\\n/g,"").trim()!=="")){i[e.options.childkey]=i[e.options.childkey]||[];a={"#name":"__text__"};a[t]=r;if(e.options.normalize){a[t]=a[t].replace(/\s{2,}/g," ").trim()}i[e.options.childkey].push(a)}return i}}}(this);this.saxParser.ontext=r;return this.saxParser.oncdata=function(e){return function(e){var t;t=r(e);if(t){return t.cdata=true}}}(this)};a.prototype.parseString=function(t,r){var n;if(r!=null&&typeof r==="function"){this.on("end",(function(e){this.reset();return r(null,e)}));this.on("error",(function(e){this.reset();return r(e)}))}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;l(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){n=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",n);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw n}}};a.prototype.parseStringPromise=function(e){return new Promise(function(t){return function(r,n){return t.parseString(e,(function(e,t){if(e){return n(e)}else{return r(t)}}))}}(this))};return a}(a);t.parseString=function(e,r,n){var a,i,o;if(n!=null){if(typeof n==="function"){a=n}if(typeof r==="object"){i=r}}else{if(typeof r==="function"){a=r}i={}}o=new t.Parser(i);return o.parseString(e,a)};t.parseStringPromise=function(e,r){var n,a;if(typeof r==="object"){n=r}a=new t.Parser(n);return a.parseStringPromise(e)}}).call(this)},function(e,t,r){(function(e){(function(t){t.parser=function(e,t){return new a(e,t)};t.SAXParser=a;t.SAXStream=f;t.createStream=c;t.MAX_BUFFER_LENGTH=64*1024;var n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(e,r){if(!(this instanceof a)){return new a(e,r)}var n=this;o(n);n.q=n.c="";n.bufferCheckPosition=t.MAX_BUFFER_LENGTH;n.opt=r||{};n.opt.lowercase=n.opt.lowercase||n.opt.lowercasetags;n.looseCase=n.opt.lowercase?"toLowerCase":"toUpperCase";n.tags=[];n.closed=n.closedRoot=n.sawRoot=false;n.tag=n.error=null;n.strict=!!e;n.noscript=!!(e||n.opt.noscript);n.state=S.BEGIN;n.strictEntities=n.opt.strictEntities;n.ENTITIES=n.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES);n.attribList=[];if(n.opt.xmlns){n.ns=Object.create(m)}n.trackPosition=n.opt.position!==false;if(n.trackPosition){n.position=n.line=n.column=0}M(n,"onready")}if(!Object.create){Object.create=function(e){function t(){}t.prototype=e;var r=new t;return r}}if(!Object.keys){Object.keys=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))t.push(r);return t}}function i(e){var r=Math.max(t.MAX_BUFFER_LENGTH,10);var a=0;for(var i=0,o=n.length;i<o;i++){var s=e[n[i]].length;if(s>r){switch(n[i]){case"textNode":T(e);break;case"cdata":D(e,"oncdata",e.cdata);e.cdata="";break;case"script":D(e,"onscript",e.script);e.script="";break;default:C(e,"Max buffer length exceeded: "+n[i])}}a=Math.max(a,s)}var u=t.MAX_BUFFER_LENGTH-a;e.bufferCheckPosition=u+e.position}function o(e){for(var t=0,r=n.length;t<r;t++){e[n[t]]=""}}function s(e){T(e);if(e.cdata!==""){D(e,"oncdata",e.cdata);e.cdata=""}if(e.script!==""){D(e,"onscript",e.script);e.script=""}}a.prototype={end:function(){j(this)},write:z,resume:function(){this.error=null;return this},close:function(){return this.write(null)},flush:function(){s(this)}};var u;try{u=r(758).Stream}catch(e){u=function(){}}var l=t.EVENTS.filter((function(e){return e!=="error"&&e!=="end"}));function c(e,t){return new f(e,t)}function f(e,t){if(!(this instanceof f)){return new f(e,t)}u.apply(this);this._parser=new a(e,t);this.writable=true;this.readable=true;var r=this;this._parser.onend=function(){r.emit("end")};this._parser.onerror=function(e){r.emit("error",e);r._parser.error=null};this._decoder=null;l.forEach((function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t){r.removeAllListeners(e);r._parser["on"+e]=t;return t}r.on(e,t)},enumerable:true,configurable:false})}))}f.prototype=Object.create(u.prototype,{constructor:{value:f}});f.prototype.write=function(t){if(typeof e==="function"&&typeof e.isBuffer==="function"&&e.isBuffer(t)){if(!this._decoder){var n=r(258).StringDecoder;this._decoder=new n("utf8")}t=this._decoder.write(t)}this._parser.write(t.toString());this.emit("data",t);return true};f.prototype.end=function(e){if(e&&e.length){this.write(e)}this._parser.end();return true};f.prototype.on=function(e,t){var r=this;if(!r._parser["on"+e]&&l.indexOf(e)!==-1){r._parser["on"+e]=function(){var t=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e);r.emit.apply(r,t)}}return u.prototype.on.call(r,e,t)};var d="[CDATA[";var p="DOCTYPE";var h="http://www.w3.org/XML/1998/namespace";var v="http://www.w3.org/2000/xmlns/";var m={xml:h,xmlns:v};var y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;var b=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var A=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function _(e){return e===" "||e==="\n"||e==="\r"||e==="\t"}function w(e){return e==='"'||e==="'"}function E(e){return e===">"||_(e)}function x(e,t){return e.test(t)}function k(e,t){return!x(e,t)}var S=0;t.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++};t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(t.ENTITIES).forEach((function(e){var r=t.ENTITIES[e];var n=typeof r==="number"?String.fromCharCode(r):r;t.ENTITIES[e]=n}));for(var O in t.STATE){t.STATE[t.STATE[O]]=O}S=t.STATE;function M(e,t,r){e[t]&&e[t](r)}function D(e,t,r){if(e.textNode)T(e);M(e,t,r)}function T(e){e.textNode=L(e.opt,e.textNode);if(e.textNode)M(e,"ontext",e.textNode);e.textNode=""}function L(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function C(e,t){T(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;M(e,"onerror",t);return e}function j(e){if(e.sawRoot&&!e.closedRoot)N(e,"Unclosed root tag");if(e.state!==S.BEGIN&&e.state!==S.BEGIN_WHITESPACE&&e.state!==S.TEXT){C(e,"Unexpected end")}T(e);e.c="";e.closed=true;M(e,"onend");a.call(e,e.strict,e.opt);return e}function N(e,t){if(typeof e!=="object"||!(e instanceof a)){throw new Error("bad call to strictFail")}if(e.strict){C(e,t)}}function I(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var r=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){r.ns=t.ns}e.attribList.length=0;D(e,"onopentagstart",r)}function P(e,t){var r=e.indexOf(":");var n=r<0?["",e]:e.split(":");var a=n[0];var i=n[1];if(t&&e==="xmlns"){a="xmlns";i=""}return{prefix:a,local:i}}function R(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=P(e.attribName,true);var r=t.prefix;var n=t.local;if(r==="xmlns"){if(n==="xml"&&e.attribValue!==h){N(e,"xml: prefix must be bound to "+h+"\n"+"Actual: "+e.attribValue)}else if(n==="xmlns"&&e.attribValue!==v){N(e,"xmlns: prefix must be bound to "+v+"\n"+"Actual: "+e.attribValue)}else{var a=e.tag;var i=e.tags[e.tags.length-1]||e;if(a.ns===i.ns){a.ns=Object.create(i.ns)}a.ns[n]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;D(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function F(e,t){if(e.opt.xmlns){var r=e.tag;var n=P(e.tagName);r.prefix=n.prefix;r.local=n.local;r.uri=r.ns[n.prefix]||"";if(r.prefix&&!r.uri){N(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));r.uri=n.prefix}var a=e.tags[e.tags.length-1]||e;if(r.ns&&a.ns!==r.ns){Object.keys(r.ns).forEach((function(t){D(e,"onopennamespace",{prefix:t,uri:r.ns[t]})}))}for(var i=0,o=e.attribList.length;i<o;i++){var s=e.attribList[i];var u=s[0];var l=s[1];var c=P(u,true);var f=c.prefix;var d=c.local;var p=f===""?"":r.ns[f]||"";var h={name:u,value:l,prefix:f,local:d,uri:p};if(f&&f!=="xmlns"&&!p){N(e,"Unbound namespace prefix: "+JSON.stringify(f));h.uri=f}e.tag.attributes[u]=h;D(e,"onattribute",h)}e.attribList.length=0}e.tag.isSelfClosing=!!t;e.sawRoot=true;e.tags.push(e.tag);D(e,"onopentag",e.tag);if(!t){if(!e.noscript&&e.tagName.toLowerCase()==="script"){e.state=S.SCRIPT}else{e.state=S.TEXT}e.tag=null;e.tagName=""}e.attribName=e.attribValue="";e.attribList.length=0}function Y(e){if(!e.tagName){N(e,"Weird empty close tag.");e.textNode+="</>";e.state=S.TEXT;return}if(e.script){if(e.tagName!=="script"){e.script+="</"+e.tagName+">";e.tagName="";e.state=S.SCRIPT;return}D(e,"onscript",e.script);e.script=""}var t=e.tags.length;var r=e.tagName;if(!e.strict){r=r[e.looseCase]()}var n=r;while(t--){var a=e.tags[t];if(a.name!==n){N(e,"Unexpected close tag")}else{break}}if(t<0){N(e,"Unmatched closing tag: "+e.tagName);e.textNode+="</"+e.tagName+">";e.state=S.TEXT;return}e.tagName=r;var i=e.tags.length;while(i-- >t){var o=e.tag=e.tags.pop();e.tagName=e.tag.name;D(e,"onclosetag",e.tagName);var s={};for(var u in o.ns){s[u]=o.ns[u]}var l=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&o.ns!==l.ns){Object.keys(o.ns).forEach((function(t){var r=o.ns[t];D(e,"onclosenamespace",{prefix:t,uri:r})}))}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=S.TEXT}function B(e){var t=e.entity;var r=t.toLowerCase();var n;var a="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[r]){return e.ENTITIES[r]}t=r;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);n=parseInt(t,16);a=n.toString(16)}else{t=t.slice(1);n=parseInt(t,10);a=n.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(n)||a.toLowerCase()!==t){N(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(n)}function H(e,t){if(t==="<"){e.state=S.OPEN_WAKA;e.startTagPosition=e.position}else if(!_(t)){N(e,"Non-whitespace before first tag.");e.textNode=t;e.state=S.TEXT}}function U(e,t){var r="";if(t<e.length){r=e.charAt(t)}return r}function z(e){var t=this;if(this.error){throw this.error}if(t.closed){return C(t,"Cannot write after close. Assign an onready handler.")}if(e===null){return j(t)}if(typeof e==="object"){e=e.toString()}var r=0;var n="";while(true){n=U(e,r++);t.c=n;if(!n){break}if(t.trackPosition){t.position++;if(n==="\n"){t.line++;t.column=0}else{t.column++}}switch(t.state){case S.BEGIN:t.state=S.BEGIN_WHITESPACE;if(n==="\ufeff"){continue}H(t,n);continue;case S.BEGIN_WHITESPACE:H(t,n);continue;case S.TEXT:if(t.sawRoot&&!t.closedRoot){var a=r-1;while(n&&n!=="<"&&n!=="&"){n=U(e,r++);if(n&&t.trackPosition){t.position++;if(n==="\n"){t.line++;t.column=0}else{t.column++}}}t.textNode+=e.substring(a,r-1)}if(n==="<"&&!(t.sawRoot&&t.closedRoot&&!t.strict)){t.state=S.OPEN_WAKA;t.startTagPosition=t.position}else{if(!_(n)&&(!t.sawRoot||t.closedRoot)){N(t,"Text data outside of root node.")}if(n==="&"){t.state=S.TEXT_ENTITY}else{t.textNode+=n}}continue;case S.SCRIPT:if(n==="<"){t.state=S.SCRIPT_ENDING}else{t.script+=n}continue;case S.SCRIPT_ENDING:if(n==="/"){t.state=S.CLOSE_TAG}else{t.script+="<"+n;t.state=S.SCRIPT}continue;case S.OPEN_WAKA:if(n==="!"){t.state=S.SGML_DECL;t.sgmlDecl=""}else if(_(n)){}else if(x(y,n)){t.state=S.OPEN_TAG;t.tagName=n}else if(n==="/"){t.state=S.CLOSE_TAG;t.tagName=""}else if(n==="?"){t.state=S.PROC_INST;t.procInstName=t.procInstBody=""}else{N(t,"Unencoded <");if(t.startTagPosition+1<t.position){var o=t.position-t.startTagPosition;n=new Array(o).join(" ")+n}t.textNode+="<"+n;t.state=S.TEXT}continue;case S.SGML_DECL:if((t.sgmlDecl+n).toUpperCase()===d){D(t,"onopencdata");t.state=S.CDATA;t.sgmlDecl="";t.cdata=""}else if(t.sgmlDecl+n==="--"){t.state=S.COMMENT;t.comment="";t.sgmlDecl=""}else if((t.sgmlDecl+n).toUpperCase()===p){t.state=S.DOCTYPE;if(t.doctype||t.sawRoot){N(t,"Inappropriately located doctype declaration")}t.doctype="";t.sgmlDecl=""}else if(n===">"){D(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=S.TEXT}else if(w(n)){t.state=S.SGML_DECL_QUOTED;t.sgmlDecl+=n}else{t.sgmlDecl+=n}continue;case S.SGML_DECL_QUOTED:if(n===t.q){t.state=S.SGML_DECL;t.q=""}t.sgmlDecl+=n;continue;case S.DOCTYPE:if(n===">"){t.state=S.TEXT;D(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=n;if(n==="["){t.state=S.DOCTYPE_DTD}else if(w(n)){t.state=S.DOCTYPE_QUOTED;t.q=n}}continue;case S.DOCTYPE_QUOTED:t.doctype+=n;if(n===t.q){t.q="";t.state=S.DOCTYPE}continue;case S.DOCTYPE_DTD:t.doctype+=n;if(n==="]"){t.state=S.DOCTYPE}else if(w(n)){t.state=S.DOCTYPE_DTD_QUOTED;t.q=n}continue;case S.DOCTYPE_DTD_QUOTED:t.doctype+=n;if(n===t.q){t.state=S.DOCTYPE_DTD;t.q=""}continue;case S.COMMENT:if(n==="-"){t.state=S.COMMENT_ENDING}else{t.comment+=n}continue;case S.COMMENT_ENDING:if(n==="-"){t.state=S.COMMENT_ENDED;t.comment=L(t.opt,t.comment);if(t.comment){D(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+n;t.state=S.COMMENT}continue;case S.COMMENT_ENDED:if(n!==">"){N(t,"Malformed comment");t.comment+="--"+n;t.state=S.COMMENT}else{t.state=S.TEXT}continue;case S.CDATA:if(n==="]"){t.state=S.CDATA_ENDING}else{t.cdata+=n}continue;case S.CDATA_ENDING:if(n==="]"){t.state=S.CDATA_ENDING_2}else{t.cdata+="]"+n;t.state=S.CDATA}continue;case S.CDATA_ENDING_2:if(n===">"){if(t.cdata){D(t,"oncdata",t.cdata)}D(t,"onclosecdata");t.cdata="";t.state=S.TEXT}else if(n==="]"){t.cdata+="]"}else{t.cdata+="]]"+n;t.state=S.CDATA}continue;case S.PROC_INST:if(n==="?"){t.state=S.PROC_INST_ENDING}else if(_(n)){t.state=S.PROC_INST_BODY}else{t.procInstName+=n}continue;case S.PROC_INST_BODY:if(!t.procInstBody&&_(n)){continue}else if(n==="?"){t.state=S.PROC_INST_ENDING}else{t.procInstBody+=n}continue;case S.PROC_INST_ENDING:if(n===">"){D(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=S.TEXT}else{t.procInstBody+="?"+n;t.state=S.PROC_INST_BODY}continue;case S.OPEN_TAG:if(x(g,n)){t.tagName+=n}else{I(t);if(n===">"){F(t)}else if(n==="/"){t.state=S.OPEN_TAG_SLASH}else{if(!_(n)){N(t,"Invalid character in tag name")}t.state=S.ATTRIB}}continue;case S.OPEN_TAG_SLASH:if(n===">"){F(t,true);Y(t)}else{N(t,"Forward-slash in opening tag not followed by >");t.state=S.ATTRIB}continue;case S.ATTRIB:if(_(n)){continue}else if(n===">"){F(t)}else if(n==="/"){t.state=S.OPEN_TAG_SLASH}else if(x(y,n)){t.attribName=n;t.attribValue="";t.state=S.ATTRIB_NAME}else{N(t,"Invalid attribute name")}continue;case S.ATTRIB_NAME:if(n==="="){t.state=S.ATTRIB_VALUE}else if(n===">"){N(t,"Attribute without value");t.attribValue=t.attribName;R(t);F(t)}else if(_(n)){t.state=S.ATTRIB_NAME_SAW_WHITE}else if(x(g,n)){t.attribName+=n}else{N(t,"Invalid attribute name")}continue;case S.ATTRIB_NAME_SAW_WHITE:if(n==="="){t.state=S.ATTRIB_VALUE}else if(_(n)){continue}else{N(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";D(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(n===">"){F(t)}else if(x(y,n)){t.attribName=n;t.state=S.ATTRIB_NAME}else{N(t,"Invalid attribute name");t.state=S.ATTRIB}}continue;case S.ATTRIB_VALUE:if(_(n)){continue}else if(w(n)){t.q=n;t.state=S.ATTRIB_VALUE_QUOTED}else{N(t,"Unquoted attribute value");t.state=S.ATTRIB_VALUE_UNQUOTED;t.attribValue=n}continue;case S.ATTRIB_VALUE_QUOTED:if(n!==t.q){if(n==="&"){t.state=S.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=n}continue}R(t);t.q="";t.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:if(_(n)){t.state=S.ATTRIB}else if(n===">"){F(t)}else if(n==="/"){t.state=S.OPEN_TAG_SLASH}else if(x(y,n)){N(t,"No whitespace between attributes");t.attribName=n;t.attribValue="";t.state=S.ATTRIB_NAME}else{N(t,"Invalid attribute name")}continue;case S.ATTRIB_VALUE_UNQUOTED:if(!E(n)){if(n==="&"){t.state=S.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=n}continue}R(t);if(n===">"){F(t)}else{t.state=S.ATTRIB}continue;case S.CLOSE_TAG:if(!t.tagName){if(_(n)){continue}else if(k(y,n)){if(t.script){t.script+="</"+n;t.state=S.SCRIPT}else{N(t,"Invalid tagname in closing tag.")}}else{t.tagName=n}}else if(n===">"){Y(t)}else if(x(g,n)){t.tagName+=n}else if(t.script){t.script+="</"+t.tagName;t.tagName="";t.state=S.SCRIPT}else{if(!_(n)){N(t,"Invalid tagname in closing tag")}t.state=S.CLOSE_TAG_SAW_WHITE}continue;case S.CLOSE_TAG_SAW_WHITE:if(_(n)){continue}if(n===">"){Y(t)}else{N(t,"Invalid characters in closing tag")}continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var s;var u;switch(t.state){case S.TEXT_ENTITY:s=S.TEXT;u="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:s=S.ATTRIB_VALUE_QUOTED;u="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:s=S.ATTRIB_VALUE_UNQUOTED;u="attribValue";break}if(n===";"){t[u]+=B(t);t.entity="";t.state=s}else if(x(t.entity.length?A:b,n)){t.entity+=n}else{N(t,"Invalid character in entity name");t[u]+="&"+t.entity+n;t.entity="";t.state=s}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){i(t)}return t}
343
+ */var n="function"===typeof Symbol&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,v=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,A=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type,e){case f:case d:case o:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof,e){case c:case p:case y:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=f;t.ConcurrentMode=d;t.ContextConsumer=c;t.ContextProvider=l;t.Element=a;t.ForwardRef=p;t.Fragment=o;t.Lazy=y;t.Memo=m;t.Portal=i;t.Profiler=u;t.StrictMode=s;t.Suspense=h;t.isAsyncMode=function(e){return E(e)||w(e)===f};t.isConcurrentMode=E;t.isContextConsumer=function(e){return w(e)===c};t.isContextProvider=function(e){return w(e)===l};t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===a};t.isForwardRef=function(e){return w(e)===p};t.isFragment=function(e){return w(e)===o};t.isLazy=function(e){return w(e)===y};t.isMemo=function(e){return w(e)===m};t.isPortal=function(e){return w(e)===i};t.isProfiler=function(e){return w(e)===u};t.isStrictMode=function(e){return w(e)===s};t.isSuspense=function(e){return w(e)===h};t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===u||e===s||e===h||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===A||e.$$typeof===_||e.$$typeof===g)};t.typeOf=w},function(e,t,r){"use strict";var n=r(722);var a=r(46);function i(e){switch(e.arrayFormat){case"index":return function(t,r,n){return r===null?[s(t,e),"[",n,"]"].join(""):[s(t,e),"[",s(n,e),"]=",s(r,e)].join("")};case"bracket":return function(t,r){return r===null?s(t,e):[s(t,e),"[]=",s(r,e)].join("")};default:return function(t,r){return r===null?s(t,e):[s(t,e),"=",s(r,e)].join("")}}}function o(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e);e=e.replace(/\[\d*\]$/,"");if(!t){n[e]=r;return}if(n[e]===undefined){n[e]={}}n[e][t[1]]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e);e=e.replace(/\[\]$/,"");if(!t){n[e]=r;return}else if(n[e]===undefined){n[e]=[r];return}n[e]=[].concat(n[e],r)};default:return function(e,t,r){if(r[e]===undefined){r[e]=t;return}r[e]=[].concat(r[e],t)}}}function s(e,t){if(t.encode){return t.strict?n(e):encodeURIComponent(e)}return e}function u(e){if(Array.isArray(e)){return e.sort()}else if(typeof e==="object"){return u(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]}))}return e}t.extract=function(e){return e.split("?")[1]||""};t.parse=function(e,t){t=a({arrayFormat:"none"},t);var r=o(t);var n=Object.create(null);if(typeof e!=="string"){return n}e=e.trim().replace(/^(\?|#|&)/,"");if(!e){return n}e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("=");var a=t.shift();var i=t.length>0?t.join("="):undefined;i=i===undefined?null:decodeURIComponent(i);r(decodeURIComponent(a),i,n)}));return Object.keys(n).sort().reduce((function(e,t){var r=n[t];if(Boolean(r)&&typeof r==="object"&&!Array.isArray(r)){e[t]=u(r)}else{e[t]=r}return e}),Object.create(null))};t.stringify=function(e,t){var r={encode:true,strict:true,arrayFormat:"none"};t=a(r,t);var n=i(t);return e?Object.keys(e).sort().map((function(r){var a=e[r];if(a===undefined){return""}if(a===null){return s(r,t)}if(Array.isArray(a)){var i=[];a.slice().forEach((function(e){if(e===undefined){return}i.push(n(r,e,i.length))}));return i.join("&")}return s(r,t)+"="+s(a,t)})).filter((function(e){return e.length>0})).join("&"):""}},function(e,t,r){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,r){"use strict";t.__esModule=true;var n=t.loopAsync=function e(t,r,n){var a=0,i=false;var o=false,s=false,u=void 0;var l=function e(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++){r[a]=arguments[a]}i=true;if(o){u=r;return}n.apply(undefined,r)};var c=function e(){if(i)return;s=true;if(o)return;o=true;while(!i&&a<t&&s){s=false;r(a++,e,l)}o=false;if(i){n.apply(undefined,u);return}if(a>=t&&s){i=true;n()}};c()}},function(e,t,r){"use strict";t.__esModule=true;t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=undefined;var n=r(234);Object.defineProperty(t,"getUserConfirmation",{enumerable:true,get:function e(){return n.getUserConfirmation}});Object.defineProperty(t,"go",{enumerable:true,get:function e(){return n.go}});var a=r(124);var i=r(81);var o=t.getCurrentLocation=function e(){return(0,a.createLocation)(window.location)};var s=t.pushLocation=function e(t){window.location.href=(0,i.createPath)(t);return false};var u=t.replaceLocation=function e(t){window.location.replace((0,i.createPath)(t));return false}},function(e,t,r){"use strict";t.__esModule=true;t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=undefined;var n=r(234);Object.defineProperty(t,"getUserConfirmation",{enumerable:true,get:function e(){return n.getUserConfirmation}});Object.defineProperty(t,"go",{enumerable:true,get:function e(){return n.go}});var a=r(24);var i=c(a);var o=r(124);var s=r(171);var u=r(356);var l=r(81);function c(e){return e&&e.__esModule?e:{default:e}}var f="hashchange";var d=function e(){var t=window.location.href;var r=t.indexOf("#");return r===-1?"":t.substring(r+1)};var p=function e(t){return window.location.hash=t};var h=function e(t){var r=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,r>=0?r:0)+"#"+t)};var v=t.getCurrentLocation=function e(t,r){var n=t.decodePath(d());var a=(0,l.getQueryStringValueFromPath)(n,r);var i=void 0;if(a){n=(0,l.stripQueryStringValueFromPath)(n,r);i=(0,u.readState)(a)}var s=(0,l.parsePath)(n);s.state=i;return(0,o.createLocation)(s,undefined,a)};var m=void 0;var y=t.startListener=function e(t,r,n){var a=function e(){var a=d();var i=r.encodePath(a);if(a!==i){h(i)}else{var o=v(r,n);if(m&&o.key&&m.key===o.key)return;m=o;t(o)}};var i=d();var o=r.encodePath(i);if(i!==o)h(o);(0,s.addEventListener)(window,f,a);return function(){return(0,s.removeEventListener)(window,f,a)}};var g=function e(t,r,n,a){var i=t.state,o=t.key;var s=r.encodePath((0,l.createPath)(t));if(i!==undefined){s=(0,l.addQueryStringValueToPath)(s,n,o);(0,u.saveState)(o,i)}m=t;a(s)};var b=t.pushLocation=function e(t,r,n){return g(t,r,n,(function(e){if(d()!==e){p(e)}else{false?undefined:void 0}}))};var A=t.replaceLocation=function e(t,r,n){return g(t,r,n,(function(e){if(d()!==e)h(e)}))}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(727);var s=r(394);var u=r(395);var l=r(8);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.store=o.default();r.admin=new s.default(t.roles||[],t.email||null);r.pathFor=function(e,t,n){var a="/admin/web";a+=e?"/collection/"+r.prepareCollectionUrl(e):"";a+=t?"/book/"+r.prepareBookUrl(t):"";a+=n?"/tab/"+n:"";return a};return r}t.prototype.componentDidMount=function(){this.storeConfiguration()};t.prototype.storeConfiguration=function(){var e=new l.default;this.store.dispatch(e.setFeatureFlags(this.props.featureFlags))};t.prototype.prepareCollectionUrl=function(e){return encodeURIComponent(e.replace(document.location.origin+"/","").replace(/\/$/,"").replace(/^\//,""))};t.prototype.prepareBookUrl=function(e){var t=new RegExp(document.location.origin+"/(.*)/works/(.*)");var r=t.exec(e);if(r){var n=r[1];var a=r[2];return encodeURIComponent(n+"/"+a)}else{return e}};t.prototype.getChildContext=function(){return{editorStore:this.store,csrfToken:this.props.csrfToken,showCircEventsDownload:this.props.showCircEventsDownload||false,settingUp:this.props.settingUp||false,admin:this.admin}};t.prototype.render=function(){return a.createElement(u.default,{pathFor:this.pathFor},a.Children.only(this.props.children))};t.childContextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired,showCircEventsDownload:i.bool.isRequired,settingUp:i.bool.isRequired,admin:i.object.isRequired};return t}(a.Component);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(121);var a=r(357);var i=r(733);var o=r(261).default;var s=n.combineReducers({editor:i.default,catalog:a.default});var u=window["__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"]||n.compose;function l(e){return n.createStore(s,e,u(n.applyMiddleware(o)))}t.default=l},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});t.onlyRoot=t.shouldAddRoot=t.shorten=t.addCollection=t.addLink=t.shouldClear=void 0;function a(e,t){return t&&(e.url===t.url||e.id===t.id)}function i(e,t){var r;return((r=t===null||t===void 0?void 0:t.catalogRootLink)===null||r===void 0?void 0:r.url)===e.url}function o(e){var t;return((t=e===null||e===void 0?void 0:e.catalogRootLink)===null||t===void 0?void 0:t.url)===e.url}function s(e,t){return!!(t&&e.catalogRootLink&&t.catalogRootLink&&e.catalogRootLink.url!==t.catalogRootLink.url)}function u(e,t){return i(e,t)||o(e)||s(e,t)}t.shouldClear=u;function l(e,t){return e.concat([n({id:null},t)])}t.addLink=l;function c(e,t){return e.concat([{id:t.id,url:t.url,text:t.title}])}t.addCollection=c;function f(e,t){var r=e.findIndex((function(e){return e.url===t}));if(r!==-1){return e.slice(0,r)}else{return e}}t.shorten=f;function d(e){var t;return!!(((t=e.catalogRootLink)===null||t===void 0?void 0:t.text)&&!o(e))}t.shouldAddRoot=d;function p(e){return l([],e.catalogRootLink)}t.onlyRoot=p;t.default=function(e,t){var r=e.history.slice(0);var n=Object.freeze(t.data);var i=Object.freeze(e.data);var o=false;if(u(n,i)){r=[];o=true}var s=r.slice(0);r=f(s,n.url);var l=r!==s;if(!o&&!l&&i&&!a(n,i)){r=c(r,i)}if(r.length===0&&d(n)){r=p(n)}return r}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(64);var i={url:null,data:null,isFetching:false,error:null};var o=function(e,t){if(e===void 0){e=i}switch(t.type){case a.default.BOOK_REQUEST:return n(n({},e),{isFetching:true,error:null});case a.default.BOOK_FAILURE:return n(n({},e),{isFetching:false,error:t.error});case a.default.BOOK_LOAD:return n(n({},e),{data:t.data,url:t.url?t.url:e.url,isFetching:false});case a.default.BOOK_CLEAR:return n(n({},e),{data:null,url:null,error:null});case a.default.CLOSE_ERROR:return n(n({},e),{error:null});case a.default.FULFILL_BOOK_REQUEST:case a.default.UPDATE_BOOK_REQUEST:return n(n({},e),{isFetching:true});case a.default.FULFILL_BOOK_SUCCESS:case a.default.UPDATE_BOOK_SUCCESS:return n(n({},e),{isFetching:false});case a.default.FULFILL_BOOK_FAILURE:case a.default.UPDATE_BOOK_FAILURE:return n(n({},e),{isFetching:false,error:t.error});case a.default.UPDATE_BOOK_LOAD:if(e.data===null){return e}return n(n({},e),{data:n(n({},e.data),t.data)});default:return e}};t.default=o},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(64);var i={showForm:false,callback:null,cancel:null,credentials:null,title:null,error:null,attemptedProvider:null,providers:null};t.default=function(e,t){if(e===void 0){e=i}switch(t.type){case a.default.SHOW_AUTH_FORM:return n(n({},e),{showForm:true,callback:t.callback,cancel:t.cancel,title:t.error?e.title:t.title,error:t.error||null,attemptedProvider:t.attemptedProvider||null,providers:t.providers});case a.default.HIDE_AUTH_FORM:return n(n({},e),{showForm:false,error:null});case a.default.SAVE_AUTH_CREDENTIALS:return n(n({},e),{credentials:t.credentials});case a.default.CLEAR_AUTH_CREDENTIALS:return n(n({},e),{credentials:null});default:return e}}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(64);var i={url:null,books:[]};t.default=function(e,t){if(e===void 0){e=i}switch(t.type){case a.default.COLLECTION_LOAD:var r=t.data.shelfUrl||e.url;var o=t.url===r;return n(n({},e),{url:t.data.shelfUrl||e.url,books:o?t.data.books:e.books});case a.default.LOANS_LOAD:return n(n({},e),{books:t.data.books});case a.default.CLEAR_AUTH_CREDENTIALS:return n(n({},e),{books:[]});case a.default.UPDATE_BOOK_LOAD:var s=t.data;var u=s.availability&&s.availability.status==="reserved";var l=s.fulfillmentLinks&&s.fulfillmentLinks.length>0;var c=[];for(var f=0,d=e.books;f<d.length;f++){var p=d[f];if(p.id!==s.id){c.push(p)}}if(u||l){c.push(s)}return n(n({},e),{books:c});default:return e}}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(64);var i={};t.default=function(e,t){if(e===void 0){e=i}switch(t.type){case a.default.SET_PREFERENCE:var r={};r[t.key]=t.value;return n(n({},e),r);default:return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(121);var a=r(734);var i=r(780);var o=r(781);var s=r(782);var u=r(783);var l=r(784);var c=r(785);var f=r(786);var d=r(787);var p=r(788);var h=r(789);var v=r(790);var m=r(791);var y=r(792);var g=r(793);var b=r(794);var A=r(795);var _=r(796);var w=r(797);var E=r(798);var x=r(799);var k=r(800);var S=r(801);var O=r(802);var M=r(803);var D=r(804);var T=r(805);var L=r(806);var C=r(807);var j=r(259);var N=r(808);var I=r(809);var P=r(810);var R=r(811);var F=r(812);var Y=r(813);var B=r(814);var H=r(815);var U=r(816);var z=r(359);var q=r(817);var V=r(818);t.default=n.combineReducers({book:a.default,complaints:i.default,classifications:o.default,bookCoverPreview:s.default,bookCover:u.default,customListsForBook:l.default,circulationEvents:c.default,stats:f.default,diagnostics:d.default,libraries:p.default,collections:h.default,adminAuthServices:v.default,individualAdmins:m.default,patronAuthServices:y.default,sitewideSettings:g.default,loggingServices:b.default,metadataServices:A.default,analyticsServices:_.default,cdnServices:w.default,searchServices:E.default,storageServices:x.default,catalogServices:k.default,discoveryServices:S.default,registerLibraryWithDiscoveryService:O.default,discoveryServiceLibraryRegistrations:M.default,registerLibraryWithCollection:D.default,collectionLibraryRegistrations:T.default,customLists:L.default,customListDetails:C.default,customListEditor:j.default,collection:z.default,lanes:N.default,laneVisibility:I.default,resetLanes:P.default,laneOrder:R.default,selfTests:F.default,roles:Y.default,media:B.default,languages:H.default,rightsStatuses:U.default,changePassword:q.default,patronManager:V.default})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(8);var a={url:null,data:null,isFetching:false,fetchError:null,editError:null};t.default=function(e,t){if(e===void 0){e=a}switch(t.type){case n.default.BOOK_CLEAR:return a;case n.default.BOOK_ADMIN_REQUEST:return Object.assign({},e,{url:t.url,isFetching:true,fetchError:null,editError:null});case n.default.EDIT_BOOK_REQUEST:return Object.assign({},e,{isFetching:true,editError:null});case n.default.BOOK_ADMIN_LOAD:return Object.assign({},e,{url:t.url,data:t.data,isFetching:false});case n.default.BOOK_ADMIN_FAILURE:return Object.assign({},e,{fetchError:t.error,isFetching:false});case n.default.EDIT_BOOK_FAILURE:return Object.assign({},e,{editError:t.error,isFetching:false});default:return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(99);var a=r(736);var i=r(372);var o=r(378);var s=new o.Parser({xmlns:true});var u=new n.default;var l=function(){function e(){}e.prototype.parse=function(e){return new Promise((function(t,r){s.parseString(e,(function(e,n){if(e){r(e)}else{if(n.feed){var o=u.prefixes(n.feed);var s=new a.default(o);var l=s.parse(n.feed);t(l)}else if(n.entry){var o=u.prefixes(n.entry);var c=new i.default(o);var f=c.parse(n.entry);t(f)}else{r("No feed found")}}}))}))};return e}();t.default=l},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(235);var i=r(362);var o=r(363);var s=r(364);var u=r(372);var l=r(99);var c=r(59);var f=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.prefixes[l.default.ATOM_URI];var r=this.prefixes[l.default.FH_URI];var n=new s.default(this.prefixes);var c=new u.default(this.prefixes);var f=this.parseSubtagContent(e,t+"id");var d=this.parseSubtagContent(e,t+"title");var p=this.parseSubtagContent(e,t+"updated");var h=this.parseSubtags(e,t+"link",n);var v=this.parseSubtags(e,t+"entry",c);var m=!!e[r+"complete"];var y=this.prefixes[l.default.OPEN_SEARCH_URI];var g=parseInt(this.parseSubtagContent(e,y+"totalResults"),10);var b=parseInt(this.parseSubtagContent(e,y+"startIndex"),10);var A=parseInt(this.parseSubtagContent(e,y+"itemsPerPage"),10);var _={totalResults:g,startIndex:b,itemsPerPage:A};var w={id:f,title:d,updated:p,entries:v,links:h,complete:m,search:_,unparsed:e};var E=v.every((function(e){return!!e.links.find((function(e){return e instanceof a.default}))}));if(E){return new o.default(w)}else{return new i.default(w)}};return t}(c.default);t.default=f},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(59);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=e["_"];var r=this.parseAttribute(e,"currencyCode");return{value:t,currencyCode:r}};return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(59);var i=r(99);var o=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this;var r={type:this.parseAttribute(e,"type")};var n=this.prefixes[i.default.OPDS_URI];var a=n+"indirectAcquisition";if(e[a]){r.indirectAcquisitions=e[a].map((function(e){return t.parse(e)}))}return r};return t}(a.default);t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(59);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t={status:this.parseAttribute(e,"status"),since:this.parseAttribute(e,"since"),until:this.parseAttribute(e,"until")};return t};return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(59);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t={total:parseInt(this.parseAttribute(e,"total")),position:parseInt(this.parseAttribute(e,"position"))};return t};return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(59);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t={total:parseInt(this.parseAttribute(e,"total")),available:parseInt(this.parseAttribute(e,"available"))};return t};return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(374);var i=r(99);var o=r(59);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.parseSubtagContent(e,"name");var r=this.parseSubtagContent(e,"uri");var n=this.prefixes[i.default.OPF_URI];var o=this.parseAttribute(e,n+"role");return new a.default({name:t,uri:r,role:o})};return t}(o.default);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(375);var i=r(99);var o=r(59);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.prefixes[i.default.SCHEMA_URI];var r=this.parseAttribute(e,"name");var n=this.parseAttribute(e,t+"position");return new a.default({name:r,position:n})};return t}(o.default);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(376);var i=r(59);var o=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.parseAttribute(e,"term");var r=this.parseAttribute(e,"scheme");var n=this.parseAttribute(e,"label");return new a.default({term:t,scheme:r,label:n})};return t}(i.default);t.default=o},function(e,t,r){(function(){"use strict";var e,n,a,i,o,s={}.hasOwnProperty;e=r(746);n=r(240).defaults;i=function(e){return typeof e==="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};o=function(e){return"<![CDATA["+a(e)+"]]>"};a=function(e){return e.replace("]]>","]]]]><![CDATA[>")};t.Builder=function(){function t(e){var t,r,a;this.options={};r=n["0.2"];for(t in r){if(!s.call(r,t))continue;a=r[t];this.options[t]=a}for(t in e){if(!s.call(e,t))continue;a=e[t];this.options[t]=a}}t.prototype.buildObject=function(t){var r,a,u,l,c;r=this.options.attrkey;a=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===n["0.2"].rootName){c=Object.keys(t)[0];t=t[c]}else{c=this.options.rootName}u=function(e){return function(t,n){var l,c,f,d,p,h;if(typeof n!=="object"){if(e.options.cdata&&i(n)){t.raw(o(n))}else{t.txt(n)}}else if(Array.isArray(n)){for(d in n){if(!s.call(n,d))continue;c=n[d];for(p in c){f=c[p];t=u(t.ele(p),f).up()}}}else{for(p in n){if(!s.call(n,p))continue;c=n[p];if(p===r){if(typeof c==="object"){for(l in c){h=c[l];t=t.att(l,h)}}}else if(p===a){if(e.options.cdata&&i(c)){t=t.raw(o(c))}else{t=t.txt(c)}}else if(Array.isArray(c)){for(d in c){if(!s.call(c,d))continue;f=c[d];if(typeof f==="string"){if(e.options.cdata&&i(f)){t=t.ele(p).raw(o(f)).up()}else{t=t.ele(p,f).up()}}else{t=u(t.ele(p),f).up()}}}else if(typeof c==="object"){t=u(t.ele(p),c).up()}else{if(typeof c==="string"&&e.options.cdata&&i(c)){t=t.ele(p).raw(o(c)).up()}else{if(c==null){c=""}t=t.ele(p,c.toString()).up()}}}}return t}}(this);l=e.create(c,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(l,t).end(this.options.renderOpts)};return t}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f;f=r(71),l=f.assign,c=f.isFunction;a=r(379);i=r(380);o=r(752);u=r(254);s=r(753);t=r(26);n=r(174);e.exports.create=function(e,t,r,n){var a,o;if(e==null){throw new Error("Root element needs a name.")}n=l({},t,r,n);a=new i(n);o=a.element(e);if(!n.headless){a.declaration(n);if(n.pubID!=null||n.sysID!=null){a.dtd(n)}}return o};e.exports.begin=function(e,t,r){var n;if(c(e)){n=[e,t],t=n[0],r=n[1];e={}}if(t){return new o(e,t,r)}else{return new i(e)}};e.exports.stringWriter=function(e){return new u(e)};e.exports.streamWriter=function(e,t){return new s(e,t)};e.exports.implementation=new a;e.exports.nodeType=t;e.exports.writerState=n}).call(this)},function(e,t,r){(function(){var t,n,a;n=r(748);a=r(749);e.exports=t=function(){function e(){var e;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new n,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=e=Object.create(this.defaultParams)}Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}});e.prototype.getParameter=function(e){if(this.params.hasOwnProperty(e)){return this.params[e]}else{return null}};e.prototype.canSetParameter=function(e,t){return true};e.prototype.setParameter=function(e,t){if(t!=null){return this.params[e]=t}else{return delete this.params[e]}};return e}()}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(){}e.prototype.handleError=function(e){throw new Error(e)};return e}()}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(e){this.arr=e||[]}Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}});e.prototype.item=function(e){return this.arr[e]||null};e.prototype.contains=function(e){return this.arr.indexOf(e)!==-1};return e}()}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(e){this.nodes=e}Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}});e.prototype.clone=function(){return this.nodes=null};e.prototype.item=function(e){return this.nodes[e]||null};return e}()}).call(this)},function(e,t){(function(){e.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f,d,p,h,v,m,y,g,b,A,_,w,E,x,k,S={}.hasOwnProperty;k=r(71),E=k.isObject,w=k.isFunction,x=k.isPlainObject,_=k.getValue;t=r(26);p=r(380);v=r(241);i=r(243);o=r(244);y=r(251);A=r(252);m=r(253);f=r(245);d=r(246);s=r(247);l=r(248);u=r(249);c=r(250);a=r(381);b=r(383);g=r(254);n=r(174);e.exports=h=function(){function e(e,r,n){var a;this.name="?xml";this.type=t.Document;e||(e={});a={};if(!e.writer){e.writer=new g}else if(x(e.writer)){a=e.writer;e.writer=new g}this.options=e;this.writer=e.writer;this.writerOptions=this.writer.filterOptions(a);this.stringify=new b(e);this.onDataCallback=r||function(){};this.onEndCallback=n||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}e.prototype.createChildNode=function(e){var r,n,a,i,o,s,u,l;switch(e.type){case t.CData:this.cdata(e.value);break;case t.Comment:this.comment(e.value);break;case t.Element:a={};u=e.attribs;for(n in u){if(!S.call(u,n))continue;r=u[n];a[n]=r.value}this.node(e.name,a);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(e.value);break;case t.Text:this.text(e.value);break;case t.ProcessingInstruction:this.instruction(e.target,e.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+e.constructor.name)}l=e.children;for(o=0,s=l.length;o<s;o++){i=l[o];this.createChildNode(i);if(i.type===t.Element){this.up()}}return this};e.prototype.dummy=function(){return this};e.prototype.node=function(e,t,r){var n;if(e==null){throw new Error("Missing node name.")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node. "+this.debugInfo(e))}this.openCurrent();e=_(e);if(t==null){t={}}t=_(t);if(!E(t)){n=[t,r],r=n[0],t=n[1]}this.currentNode=new v(this,e,t);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(r!=null){this.text(r)}return this};e.prototype.element=function(e,r,n){var a,i,o,s,u,l;if(this.currentNode&&this.currentNode.type===t.DocType){this.dtdElement.apply(this,arguments)}else{if(Array.isArray(e)||E(e)||w(e)){s=this.options.noValidation;this.options.noValidation=true;l=new p(this.options).element("TEMP_ROOT");l.element(e);this.options.noValidation=s;u=l.children;for(i=0,o=u.length;i<o;i++){a=u[i];this.createChildNode(a);if(a.type===t.Element){this.up()}}}else{this.node(e,r,n)}}return this};e.prototype.attribute=function(e,t){var r,n;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(e))}if(e!=null){e=_(e)}if(E(e)){for(r in e){if(!S.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(w(t)){t=t.apply()}if(this.options.keepNullAttributes&&t==null){this.currentNode.attribs[e]=new a(this,e,"")}else if(t!=null){this.currentNode.attribs[e]=new a(this,e,t)}}return this};e.prototype.text=function(e){var t;this.openCurrent();t=new A(this,e);this.onData(this.writer.text(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.cdata=function(e){var t;this.openCurrent();t=new i(this,e);this.onData(this.writer.cdata(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.comment=function(e){var t;this.openCurrent();t=new o(this,e);this.onData(this.writer.comment(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.raw=function(e){var t;this.openCurrent();t=new y(this,e);this.onData(this.writer.raw(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.instruction=function(e,t){var r,n,a,i,o;this.openCurrent();if(e!=null){e=_(e)}if(t!=null){t=_(t)}if(Array.isArray(e)){for(r=0,i=e.length;r<i;r++){n=e[r];this.instruction(n)}}else if(E(e)){for(n in e){if(!S.call(e,n))continue;a=e[n];this.instruction(n,a)}}else{if(w(t)){t=t.apply()}o=new m(this,e,t);this.onData(this.writer.processingInstruction(o,this.writerOptions,this.currentLevel+1),this.currentLevel+1)}return this};e.prototype.declaration=function(e,t,r){var n;this.openCurrent();if(this.documentStarted){throw new Error("declaration() must be the first node.")}n=new f(this,e,t,r);this.onData(this.writer.declaration(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.doctype=function(e,t,r){this.openCurrent();if(e==null){throw new Error("Missing root node name.")}if(this.root){throw new Error("dtd() must come before the root node.")}this.currentNode=new d(this,t,r);this.currentNode.rootNodeName=e;this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;return this};e.prototype.dtdElement=function(e,t){var r;this.openCurrent();r=new u(this,e,t);this.onData(this.writer.dtdElement(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.attList=function(e,t,r,n,a){var i;this.openCurrent();i=new s(this,e,t,r,n,a);this.onData(this.writer.dtdAttList(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.entity=function(e,t){var r;this.openCurrent();r=new l(this,false,e,t);this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.pEntity=function(e,t){var r;this.openCurrent();r=new l(this,true,e,t);this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.notation=function(e,t){var r;this.openCurrent();r=new c(this,e,t);this.onData(this.writer.dtdNotation(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};e.prototype.up=function(){if(this.currentLevel<0){throw new Error("The document node has no parent.")}if(this.currentNode){if(this.currentNode.children){this.closeNode(this.currentNode)}else{this.openNode(this.currentNode)}this.currentNode=null}else{this.closeNode(this.openTags[this.currentLevel])}delete this.openTags[this.currentLevel];this.currentLevel--;return this};e.prototype.end=function(){while(this.currentLevel>=0){this.up()}return this.onEnd()};e.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};e.prototype.openNode=function(e){var r,a,i,o;if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e.type===t.Element){this.root=e}a="";if(e.type===t.Element){this.writerOptions.state=n.OpenTag;a=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name;o=e.attribs;for(i in o){if(!S.call(o,i))continue;r=o[i];a+=this.writer.attribute(r,this.writerOptions,this.currentLevel)}a+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel);this.writerOptions.state=n.InsideTag}else{this.writerOptions.state=n.OpenTag;a=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+e.rootNodeName;if(e.pubID&&e.sysID){a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.sysID){a+=' SYSTEM "'+e.sysID+'"'}if(e.children){a+=" [";this.writerOptions.state=n.InsideTag}else{this.writerOptions.state=n.CloseTag;a+=">"}a+=this.writer.endline(e,this.writerOptions,this.currentLevel)}this.onData(a,this.currentLevel);return e.isOpen=true}};e.prototype.closeNode=function(e){var r;if(!e.isClosed){r="";this.writerOptions.state=n.CloseTag;if(e.type===t.Element){r=this.writer.indent(e,this.writerOptions,this.currentLevel)+"</"+e.name+">"+this.writer.endline(e,this.writerOptions,this.currentLevel)}else{r=this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel)}this.writerOptions.state=n.None;this.onData(r,this.currentLevel);return e.isClosed=true}};e.prototype.onData=function(e,t){this.documentStarted=true;return this.onDataCallback(e,t+1)};e.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};e.prototype.debugInfo=function(e){if(e==null){return""}else{return"node: <"+e+">"}};e.prototype.ele=function(){return this.element.apply(this,arguments)};e.prototype.nod=function(e,t,r){return this.node(e,t,r)};e.prototype.txt=function(e){return this.text(e)};e.prototype.dat=function(e){return this.cdata(e)};e.prototype.com=function(e){return this.comment(e)};e.prototype.ins=function(e,t){return this.instruction(e,t)};e.prototype.dec=function(e,t,r){return this.declaration(e,t,r)};e.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)};e.prototype.e=function(e,t,r){return this.element(e,t,r)};e.prototype.n=function(e,t,r){return this.node(e,t,r)};e.prototype.t=function(e){return this.text(e)};e.prototype.d=function(e){return this.cdata(e)};e.prototype.c=function(e){return this.comment(e)};e.prototype.r=function(e){return this.raw(e)};e.prototype.i=function(e,t){return this.instruction(e,t)};e.prototype.att=function(){if(this.currentNode&&this.currentNode.type===t.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};e.prototype.a=function(){if(this.currentNode&&this.currentNode.type===t.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};e.prototype.ent=function(e,t){return this.entity(e,t)};e.prototype.pent=function(e,t){return this.pEntity(e,t)};e.prototype.not=function(e,t){return this.notation(e,t)};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o=function(e,t){for(var r in t){if(s.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},s={}.hasOwnProperty;t=r(26);i=r(384);n=r(174);e.exports=a=function(e){o(r,e);function r(e,t){this.stream=e;r.__super__.constructor.call(this,t)}r.prototype.endline=function(e,t,a){if(e.isLastRootNode&&t.state===n.CloseTag){return""}else{return r.__super__.endline.call(this,e,t,a)}};r.prototype.document=function(e,t){var r,n,a,i,o,s,u,l,c;u=e.children;for(n=a=0,o=u.length;a<o;n=++a){r=u[n];r.isLastRootNode=n===e.children.length-1}t=this.filterOptions(t);l=e.children;c=[];for(i=0,s=l.length;i<s;i++){r=l[i];c.push(this.writeChildNode(r,t,0))}return c};r.prototype.attribute=function(e,t,n){return this.stream.write(r.__super__.attribute.call(this,e,t,n))};r.prototype.cdata=function(e,t,n){return this.stream.write(r.__super__.cdata.call(this,e,t,n))};r.prototype.comment=function(e,t,n){return this.stream.write(r.__super__.comment.call(this,e,t,n))};r.prototype.declaration=function(e,t,n){return this.stream.write(r.__super__.declaration.call(this,e,t,n))};r.prototype.docType=function(e,t,r){var a,i,o,s;r||(r=0);this.openNode(e,t,r);t.state=n.OpenTag;this.stream.write(this.indent(e,t,r));this.stream.write("<!DOCTYPE "+e.root().name);if(e.pubID&&e.sysID){this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"')}else if(e.sysID){this.stream.write(' SYSTEM "'+e.sysID+'"')}if(e.children.length>0){this.stream.write(" [");this.stream.write(this.endline(e,t,r));t.state=n.InsideTag;s=e.children;for(i=0,o=s.length;i<o;i++){a=s[i];this.writeChildNode(a,t,r+1)}t.state=n.CloseTag;this.stream.write("]")}t.state=n.CloseTag;this.stream.write(t.spaceBeforeSlash+">");this.stream.write(this.endline(e,t,r));t.state=n.None;return this.closeNode(e,t,r)};r.prototype.element=function(e,r,a){var i,o,u,l,c,f,d,p,h,v;a||(a=0);this.openNode(e,r,a);r.state=n.OpenTag;this.stream.write(this.indent(e,r,a)+"<"+e.name);h=e.attribs;for(d in h){if(!s.call(h,d))continue;i=h[d];this.attribute(i,r,a)}u=e.children.length;l=u===0?null:e.children[0];if(u===0||e.children.every((function(e){return(e.type===t.Text||e.type===t.Raw)&&e.value===""}))){if(r.allowEmpty){this.stream.write(">");r.state=n.CloseTag;this.stream.write("</"+e.name+">")}else{r.state=n.CloseTag;this.stream.write(r.spaceBeforeSlash+"/>")}}else if(r.pretty&&u===1&&(l.type===t.Text||l.type===t.Raw)&&l.value!=null){this.stream.write(">");r.state=n.InsideTag;r.suppressPrettyCount++;p=true;this.writeChildNode(l,r,a+1);r.suppressPrettyCount--;p=false;r.state=n.CloseTag;this.stream.write("</"+e.name+">")}else{this.stream.write(">"+this.endline(e,r,a));r.state=n.InsideTag;v=e.children;for(c=0,f=v.length;c<f;c++){o=v[c];this.writeChildNode(o,r,a+1)}r.state=n.CloseTag;this.stream.write(this.indent(e,r,a)+"</"+e.name+">")}this.stream.write(this.endline(e,r,a));r.state=n.None;return this.closeNode(e,r,a)};r.prototype.processingInstruction=function(e,t,n){return this.stream.write(r.__super__.processingInstruction.call(this,e,t,n))};r.prototype.raw=function(e,t,n){return this.stream.write(r.__super__.raw.call(this,e,t,n))};r.prototype.text=function(e,t,n){return this.stream.write(r.__super__.text.call(this,e,t,n))};r.prototype.dtdAttList=function(e,t,n){return this.stream.write(r.__super__.dtdAttList.call(this,e,t,n))};r.prototype.dtdElement=function(e,t,n){return this.stream.write(r.__super__.dtdElement.call(this,e,t,n))};r.prototype.dtdEntity=function(e,t,n){return this.stream.write(r.__super__.dtdEntity.call(this,e,t,n))};r.prototype.dtdNotation=function(e,t,n){return this.stream.write(r.__super__.dtdNotation.call(this,e,t,n))};return r}(i)}).call(this)},function(e,t,r){(function(){"use strict";var e,n,a,i,o,s,u,l,c=function(e,t){return function(){return e.apply(t,arguments)}},f=function(e,t){for(var r in t){if(d.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},d={}.hasOwnProperty;u=r(755);a=r(142);e=r(768);s=r(392);l=r(389).setImmediate;n=r(240).defaults;i=function(e){return typeof e==="object"&&e!=null&&Object.keys(e).length===0};o=function(e,t,r){var n,a,i;for(n=0,a=e.length;n<a;n++){i=e[n];t=i(t,r)}return t};t.Parser=function(r){f(a,r);function a(e){this.parseStringPromise=c(this.parseStringPromise,this);this.parseString=c(this.parseString,this);this.reset=c(this.reset,this);this.assignOrPush=c(this.assignOrPush,this);this.processAsync=c(this.processAsync,this);var r,a,i;if(!(this instanceof t.Parser)){return new t.Parser(e)}this.options={};a=n["0.2"];for(r in a){if(!d.call(a,r))continue;i=a[r];this.options[r]=i}for(r in e){if(!d.call(e,r))continue;i=e[r];this.options[r]=i}if(this.options.xmlns){this.options.xmlnskey=this.options.attrkey+"ns"}if(this.options.normalizeTags){if(!this.options.tagNameProcessors){this.options.tagNameProcessors=[]}this.options.tagNameProcessors.unshift(s.normalize)}this.reset()}a.prototype.processAsync=function(){var e,t;try{if(this.remaining.length<=this.options.chunkSize){e=this.remaining;this.remaining="";this.saxParser=this.saxParser.write(e);return this.saxParser.close()}else{e=this.remaining.substr(0,this.options.chunkSize);this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length);this.saxParser=this.saxParser.write(e);return l(this.processAsync)}}catch(e){t=e;if(!this.saxParser.errThrown){this.saxParser.errThrown=true;return this.emit(t)}}};a.prototype.assignOrPush=function(e,t,r){if(!(t in e)){if(!this.options.explicitArray){return e[t]=r}else{return e[t]=[r]}}else{if(!(e[t]instanceof Array)){e[t]=[e[t]]}return e[t].push(r)}};a.prototype.reset=function(){var e,t,r,n;this.removeAllListeners();this.saxParser=u.parser(this.options.strict,{trim:false,normalize:false,xmlns:this.options.xmlns});this.saxParser.errThrown=false;this.saxParser.onerror=function(e){return function(t){e.saxParser.resume();if(!e.saxParser.errThrown){e.saxParser.errThrown=true;return e.emit("error",t)}}}(this);this.saxParser.onend=function(e){return function(){if(!e.saxParser.ended){e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);this.saxParser.ended=false;this.EXPLICIT_CHARKEY=this.options.explicitCharkey;this.resultObject=null;n=[];e=this.options.attrkey;t=this.options.charkey;this.saxParser.onopentag=function(r){return function(a){var i,s,u,l,c;u={};u[t]="";if(!r.options.ignoreAttrs){c=a.attributes;for(i in c){if(!d.call(c,i))continue;if(!(e in u)&&!r.options.mergeAttrs){u[e]={}}s=r.options.attrValueProcessors?o(r.options.attrValueProcessors,a.attributes[i],i):a.attributes[i];l=r.options.attrNameProcessors?o(r.options.attrNameProcessors,i):i;if(r.options.mergeAttrs){r.assignOrPush(u,l,s)}else{u[e][l]=s}}}u["#name"]=r.options.tagNameProcessors?o(r.options.tagNameProcessors,a.name):a.name;if(r.options.xmlns){u[r.options.xmlnskey]={uri:a.uri,local:a.local}}return n.push(u)}}(this);this.saxParser.onclosetag=function(e){return function(){var r,a,s,u,l,c,f,p,h,v;c=n.pop();l=c["#name"];if(!e.options.explicitChildren||!e.options.preserveChildrenOrder){delete c["#name"]}if(c.cdata===true){r=c.cdata;delete c.cdata}h=n[n.length-1];if(c[t].match(/^\s*$/)&&!r){a=c[t];delete c[t]}else{if(e.options.trim){c[t]=c[t].trim()}if(e.options.normalize){c[t]=c[t].replace(/\s{2,}/g," ").trim()}c[t]=e.options.valueProcessors?o(e.options.valueProcessors,c[t],l):c[t];if(Object.keys(c).length===1&&t in c&&!e.EXPLICIT_CHARKEY){c=c[t]}}if(i(c)){c=e.options.emptyTag!==""?e.options.emptyTag:a}if(e.options.validator!=null){v="/"+function(){var e,t,r;r=[];for(e=0,t=n.length;e<t;e++){u=n[e];r.push(u["#name"])}return r}().concat(l).join("/");(function(){var t;try{return c=e.options.validator(v,h&&h[l],c)}catch(r){t=r;return e.emit("error",t)}})()}if(e.options.explicitChildren&&!e.options.mergeAttrs&&typeof c==="object"){if(!e.options.preserveChildrenOrder){u={};if(e.options.attrkey in c){u[e.options.attrkey]=c[e.options.attrkey];delete c[e.options.attrkey]}if(!e.options.charsAsChildren&&e.options.charkey in c){u[e.options.charkey]=c[e.options.charkey];delete c[e.options.charkey]}if(Object.getOwnPropertyNames(c).length>0){u[e.options.childkey]=c}c=u}else if(h){h[e.options.childkey]=h[e.options.childkey]||[];f={};for(s in c){if(!d.call(c,s))continue;f[s]=c[s]}h[e.options.childkey].push(f);delete c["#name"];if(Object.keys(c).length===1&&t in c&&!e.EXPLICIT_CHARKEY){c=c[t]}}}if(n.length>0){return e.assignOrPush(h,l,c)}else{if(e.options.explicitRoot){p=c;c={};c[l]=p}e.resultObject=c;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);r=function(e){return function(r){var a,i;i=n[n.length-1];if(i){i[t]+=r;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||r.replace(/\\n/g,"").trim()!=="")){i[e.options.childkey]=i[e.options.childkey]||[];a={"#name":"__text__"};a[t]=r;if(e.options.normalize){a[t]=a[t].replace(/\s{2,}/g," ").trim()}i[e.options.childkey].push(a)}return i}}}(this);this.saxParser.ontext=r;return this.saxParser.oncdata=function(e){return function(e){var t;t=r(e);if(t){return t.cdata=true}}}(this)};a.prototype.parseString=function(t,r){var n;if(r!=null&&typeof r==="function"){this.on("end",(function(e){this.reset();return r(null,e)}));this.on("error",(function(e){this.reset();return r(e)}))}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;l(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){n=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",n);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw n}}};a.prototype.parseStringPromise=function(e){return new Promise(function(t){return function(r,n){return t.parseString(e,(function(e,t){if(e){return n(e)}else{return r(t)}}))}}(this))};return a}(a);t.parseString=function(e,r,n){var a,i,o;if(n!=null){if(typeof n==="function"){a=n}if(typeof r==="object"){i=r}}else{if(typeof r==="function"){a=r}i={}}o=new t.Parser(i);return o.parseString(e,a)};t.parseStringPromise=function(e,r){var n,a;if(typeof r==="object"){n=r}a=new t.Parser(n);return a.parseStringPromise(e)}}).call(this)},function(e,t,r){(function(e){(function(t){t.parser=function(e,t){return new a(e,t)};t.SAXParser=a;t.SAXStream=f;t.createStream=c;t.MAX_BUFFER_LENGTH=64*1024;var n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(e,r){if(!(this instanceof a)){return new a(e,r)}var n=this;o(n);n.q=n.c="";n.bufferCheckPosition=t.MAX_BUFFER_LENGTH;n.opt=r||{};n.opt.lowercase=n.opt.lowercase||n.opt.lowercasetags;n.looseCase=n.opt.lowercase?"toLowerCase":"toUpperCase";n.tags=[];n.closed=n.closedRoot=n.sawRoot=false;n.tag=n.error=null;n.strict=!!e;n.noscript=!!(e||n.opt.noscript);n.state=S.BEGIN;n.strictEntities=n.opt.strictEntities;n.ENTITIES=n.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES);n.attribList=[];if(n.opt.xmlns){n.ns=Object.create(m)}n.trackPosition=n.opt.position!==false;if(n.trackPosition){n.position=n.line=n.column=0}M(n,"onready")}if(!Object.create){Object.create=function(e){function t(){}t.prototype=e;var r=new t;return r}}if(!Object.keys){Object.keys=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))t.push(r);return t}}function i(e){var r=Math.max(t.MAX_BUFFER_LENGTH,10);var a=0;for(var i=0,o=n.length;i<o;i++){var s=e[n[i]].length;if(s>r){switch(n[i]){case"textNode":T(e);break;case"cdata":D(e,"oncdata",e.cdata);e.cdata="";break;case"script":D(e,"onscript",e.script);e.script="";break;default:C(e,"Max buffer length exceeded: "+n[i])}}a=Math.max(a,s)}var u=t.MAX_BUFFER_LENGTH-a;e.bufferCheckPosition=u+e.position}function o(e){for(var t=0,r=n.length;t<r;t++){e[n[t]]=""}}function s(e){T(e);if(e.cdata!==""){D(e,"oncdata",e.cdata);e.cdata=""}if(e.script!==""){D(e,"onscript",e.script);e.script=""}}a.prototype={end:function(){j(this)},write:z,resume:function(){this.error=null;return this},close:function(){return this.write(null)},flush:function(){s(this)}};var u;try{u=r(758).Stream}catch(e){u=function(){}}var l=t.EVENTS.filter((function(e){return e!=="error"&&e!=="end"}));function c(e,t){return new f(e,t)}function f(e,t){if(!(this instanceof f)){return new f(e,t)}u.apply(this);this._parser=new a(e,t);this.writable=true;this.readable=true;var r=this;this._parser.onend=function(){r.emit("end")};this._parser.onerror=function(e){r.emit("error",e);r._parser.error=null};this._decoder=null;l.forEach((function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t){r.removeAllListeners(e);r._parser["on"+e]=t;return t}r.on(e,t)},enumerable:true,configurable:false})}))}f.prototype=Object.create(u.prototype,{constructor:{value:f}});f.prototype.write=function(t){if(typeof e==="function"&&typeof e.isBuffer==="function"&&e.isBuffer(t)){if(!this._decoder){var n=r(258).StringDecoder;this._decoder=new n("utf8")}t=this._decoder.write(t)}this._parser.write(t.toString());this.emit("data",t);return true};f.prototype.end=function(e){if(e&&e.length){this.write(e)}this._parser.end();return true};f.prototype.on=function(e,t){var r=this;if(!r._parser["on"+e]&&l.indexOf(e)!==-1){r._parser["on"+e]=function(){var t=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e);r.emit.apply(r,t)}}return u.prototype.on.call(r,e,t)};var d="[CDATA[";var p="DOCTYPE";var h="http://www.w3.org/XML/1998/namespace";var v="http://www.w3.org/2000/xmlns/";var m={xml:h,xmlns:v};var y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;var b=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var A=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function _(e){return e===" "||e==="\n"||e==="\r"||e==="\t"}function w(e){return e==='"'||e==="'"}function E(e){return e===">"||_(e)}function x(e,t){return e.test(t)}function k(e,t){return!x(e,t)}var S=0;t.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++};t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(t.ENTITIES).forEach((function(e){var r=t.ENTITIES[e];var n=typeof r==="number"?String.fromCharCode(r):r;t.ENTITIES[e]=n}));for(var O in t.STATE){t.STATE[t.STATE[O]]=O}S=t.STATE;function M(e,t,r){e[t]&&e[t](r)}function D(e,t,r){if(e.textNode)T(e);M(e,t,r)}function T(e){e.textNode=L(e.opt,e.textNode);if(e.textNode)M(e,"ontext",e.textNode);e.textNode=""}function L(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function C(e,t){T(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;M(e,"onerror",t);return e}function j(e){if(e.sawRoot&&!e.closedRoot)N(e,"Unclosed root tag");if(e.state!==S.BEGIN&&e.state!==S.BEGIN_WHITESPACE&&e.state!==S.TEXT){C(e,"Unexpected end")}T(e);e.c="";e.closed=true;M(e,"onend");a.call(e,e.strict,e.opt);return e}function N(e,t){if(typeof e!=="object"||!(e instanceof a)){throw new Error("bad call to strictFail")}if(e.strict){C(e,t)}}function I(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var r=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){r.ns=t.ns}e.attribList.length=0;D(e,"onopentagstart",r)}function P(e,t){var r=e.indexOf(":");var n=r<0?["",e]:e.split(":");var a=n[0];var i=n[1];if(t&&e==="xmlns"){a="xmlns";i=""}return{prefix:a,local:i}}function R(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=P(e.attribName,true);var r=t.prefix;var n=t.local;if(r==="xmlns"){if(n==="xml"&&e.attribValue!==h){N(e,"xml: prefix must be bound to "+h+"\n"+"Actual: "+e.attribValue)}else if(n==="xmlns"&&e.attribValue!==v){N(e,"xmlns: prefix must be bound to "+v+"\n"+"Actual: "+e.attribValue)}else{var a=e.tag;var i=e.tags[e.tags.length-1]||e;if(a.ns===i.ns){a.ns=Object.create(i.ns)}a.ns[n]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;D(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function F(e,t){if(e.opt.xmlns){var r=e.tag;var n=P(e.tagName);r.prefix=n.prefix;r.local=n.local;r.uri=r.ns[n.prefix]||"";if(r.prefix&&!r.uri){N(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));r.uri=n.prefix}var a=e.tags[e.tags.length-1]||e;if(r.ns&&a.ns!==r.ns){Object.keys(r.ns).forEach((function(t){D(e,"onopennamespace",{prefix:t,uri:r.ns[t]})}))}for(var i=0,o=e.attribList.length;i<o;i++){var s=e.attribList[i];var u=s[0];var l=s[1];var c=P(u,true);var f=c.prefix;var d=c.local;var p=f===""?"":r.ns[f]||"";var h={name:u,value:l,prefix:f,local:d,uri:p};if(f&&f!=="xmlns"&&!p){N(e,"Unbound namespace prefix: "+JSON.stringify(f));h.uri=f}e.tag.attributes[u]=h;D(e,"onattribute",h)}e.attribList.length=0}e.tag.isSelfClosing=!!t;e.sawRoot=true;e.tags.push(e.tag);D(e,"onopentag",e.tag);if(!t){if(!e.noscript&&e.tagName.toLowerCase()==="script"){e.state=S.SCRIPT}else{e.state=S.TEXT}e.tag=null;e.tagName=""}e.attribName=e.attribValue="";e.attribList.length=0}function Y(e){if(!e.tagName){N(e,"Weird empty close tag.");e.textNode+="</>";e.state=S.TEXT;return}if(e.script){if(e.tagName!=="script"){e.script+="</"+e.tagName+">";e.tagName="";e.state=S.SCRIPT;return}D(e,"onscript",e.script);e.script=""}var t=e.tags.length;var r=e.tagName;if(!e.strict){r=r[e.looseCase]()}var n=r;while(t--){var a=e.tags[t];if(a.name!==n){N(e,"Unexpected close tag")}else{break}}if(t<0){N(e,"Unmatched closing tag: "+e.tagName);e.textNode+="</"+e.tagName+">";e.state=S.TEXT;return}e.tagName=r;var i=e.tags.length;while(i-- >t){var o=e.tag=e.tags.pop();e.tagName=e.tag.name;D(e,"onclosetag",e.tagName);var s={};for(var u in o.ns){s[u]=o.ns[u]}var l=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&o.ns!==l.ns){Object.keys(o.ns).forEach((function(t){var r=o.ns[t];D(e,"onclosenamespace",{prefix:t,uri:r})}))}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=S.TEXT}function B(e){var t=e.entity;var r=t.toLowerCase();var n;var a="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[r]){return e.ENTITIES[r]}t=r;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);n=parseInt(t,16);a=n.toString(16)}else{t=t.slice(1);n=parseInt(t,10);a=n.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(n)||a.toLowerCase()!==t){N(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(n)}function H(e,t){if(t==="<"){e.state=S.OPEN_WAKA;e.startTagPosition=e.position}else if(!_(t)){N(e,"Non-whitespace before first tag.");e.textNode=t;e.state=S.TEXT}}function U(e,t){var r="";if(t<e.length){r=e.charAt(t)}return r}function z(e){var t=this;if(this.error){throw this.error}if(t.closed){return C(t,"Cannot write after close. Assign an onready handler.")}if(e===null){return j(t)}if(typeof e==="object"){e=e.toString()}var r=0;var n="";while(true){n=U(e,r++);t.c=n;if(!n){break}if(t.trackPosition){t.position++;if(n==="\n"){t.line++;t.column=0}else{t.column++}}switch(t.state){case S.BEGIN:t.state=S.BEGIN_WHITESPACE;if(n==="\ufeff"){continue}H(t,n);continue;case S.BEGIN_WHITESPACE:H(t,n);continue;case S.TEXT:if(t.sawRoot&&!t.closedRoot){var a=r-1;while(n&&n!=="<"&&n!=="&"){n=U(e,r++);if(n&&t.trackPosition){t.position++;if(n==="\n"){t.line++;t.column=0}else{t.column++}}}t.textNode+=e.substring(a,r-1)}if(n==="<"&&!(t.sawRoot&&t.closedRoot&&!t.strict)){t.state=S.OPEN_WAKA;t.startTagPosition=t.position}else{if(!_(n)&&(!t.sawRoot||t.closedRoot)){N(t,"Text data outside of root node.")}if(n==="&"){t.state=S.TEXT_ENTITY}else{t.textNode+=n}}continue;case S.SCRIPT:if(n==="<"){t.state=S.SCRIPT_ENDING}else{t.script+=n}continue;case S.SCRIPT_ENDING:if(n==="/"){t.state=S.CLOSE_TAG}else{t.script+="<"+n;t.state=S.SCRIPT}continue;case S.OPEN_WAKA:if(n==="!"){t.state=S.SGML_DECL;t.sgmlDecl=""}else if(_(n)){}else if(x(y,n)){t.state=S.OPEN_TAG;t.tagName=n}else if(n==="/"){t.state=S.CLOSE_TAG;t.tagName=""}else if(n==="?"){t.state=S.PROC_INST;t.procInstName=t.procInstBody=""}else{N(t,"Unencoded <");if(t.startTagPosition+1<t.position){var o=t.position-t.startTagPosition;n=new Array(o).join(" ")+n}t.textNode+="<"+n;t.state=S.TEXT}continue;case S.SGML_DECL:if((t.sgmlDecl+n).toUpperCase()===d){D(t,"onopencdata");t.state=S.CDATA;t.sgmlDecl="";t.cdata=""}else if(t.sgmlDecl+n==="--"){t.state=S.COMMENT;t.comment="";t.sgmlDecl=""}else if((t.sgmlDecl+n).toUpperCase()===p){t.state=S.DOCTYPE;if(t.doctype||t.sawRoot){N(t,"Inappropriately located doctype declaration")}t.doctype="";t.sgmlDecl=""}else if(n===">"){D(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=S.TEXT}else if(w(n)){t.state=S.SGML_DECL_QUOTED;t.sgmlDecl+=n}else{t.sgmlDecl+=n}continue;case S.SGML_DECL_QUOTED:if(n===t.q){t.state=S.SGML_DECL;t.q=""}t.sgmlDecl+=n;continue;case S.DOCTYPE:if(n===">"){t.state=S.TEXT;D(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=n;if(n==="["){t.state=S.DOCTYPE_DTD}else if(w(n)){t.state=S.DOCTYPE_QUOTED;t.q=n}}continue;case S.DOCTYPE_QUOTED:t.doctype+=n;if(n===t.q){t.q="";t.state=S.DOCTYPE}continue;case S.DOCTYPE_DTD:t.doctype+=n;if(n==="]"){t.state=S.DOCTYPE}else if(w(n)){t.state=S.DOCTYPE_DTD_QUOTED;t.q=n}continue;case S.DOCTYPE_DTD_QUOTED:t.doctype+=n;if(n===t.q){t.state=S.DOCTYPE_DTD;t.q=""}continue;case S.COMMENT:if(n==="-"){t.state=S.COMMENT_ENDING}else{t.comment+=n}continue;case S.COMMENT_ENDING:if(n==="-"){t.state=S.COMMENT_ENDED;t.comment=L(t.opt,t.comment);if(t.comment){D(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+n;t.state=S.COMMENT}continue;case S.COMMENT_ENDED:if(n!==">"){N(t,"Malformed comment");t.comment+="--"+n;t.state=S.COMMENT}else{t.state=S.TEXT}continue;case S.CDATA:if(n==="]"){t.state=S.CDATA_ENDING}else{t.cdata+=n}continue;case S.CDATA_ENDING:if(n==="]"){t.state=S.CDATA_ENDING_2}else{t.cdata+="]"+n;t.state=S.CDATA}continue;case S.CDATA_ENDING_2:if(n===">"){if(t.cdata){D(t,"oncdata",t.cdata)}D(t,"onclosecdata");t.cdata="";t.state=S.TEXT}else if(n==="]"){t.cdata+="]"}else{t.cdata+="]]"+n;t.state=S.CDATA}continue;case S.PROC_INST:if(n==="?"){t.state=S.PROC_INST_ENDING}else if(_(n)){t.state=S.PROC_INST_BODY}else{t.procInstName+=n}continue;case S.PROC_INST_BODY:if(!t.procInstBody&&_(n)){continue}else if(n==="?"){t.state=S.PROC_INST_ENDING}else{t.procInstBody+=n}continue;case S.PROC_INST_ENDING:if(n===">"){D(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=S.TEXT}else{t.procInstBody+="?"+n;t.state=S.PROC_INST_BODY}continue;case S.OPEN_TAG:if(x(g,n)){t.tagName+=n}else{I(t);if(n===">"){F(t)}else if(n==="/"){t.state=S.OPEN_TAG_SLASH}else{if(!_(n)){N(t,"Invalid character in tag name")}t.state=S.ATTRIB}}continue;case S.OPEN_TAG_SLASH:if(n===">"){F(t,true);Y(t)}else{N(t,"Forward-slash in opening tag not followed by >");t.state=S.ATTRIB}continue;case S.ATTRIB:if(_(n)){continue}else if(n===">"){F(t)}else if(n==="/"){t.state=S.OPEN_TAG_SLASH}else if(x(y,n)){t.attribName=n;t.attribValue="";t.state=S.ATTRIB_NAME}else{N(t,"Invalid attribute name")}continue;case S.ATTRIB_NAME:if(n==="="){t.state=S.ATTRIB_VALUE}else if(n===">"){N(t,"Attribute without value");t.attribValue=t.attribName;R(t);F(t)}else if(_(n)){t.state=S.ATTRIB_NAME_SAW_WHITE}else if(x(g,n)){t.attribName+=n}else{N(t,"Invalid attribute name")}continue;case S.ATTRIB_NAME_SAW_WHITE:if(n==="="){t.state=S.ATTRIB_VALUE}else if(_(n)){continue}else{N(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";D(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(n===">"){F(t)}else if(x(y,n)){t.attribName=n;t.state=S.ATTRIB_NAME}else{N(t,"Invalid attribute name");t.state=S.ATTRIB}}continue;case S.ATTRIB_VALUE:if(_(n)){continue}else if(w(n)){t.q=n;t.state=S.ATTRIB_VALUE_QUOTED}else{N(t,"Unquoted attribute value");t.state=S.ATTRIB_VALUE_UNQUOTED;t.attribValue=n}continue;case S.ATTRIB_VALUE_QUOTED:if(n!==t.q){if(n==="&"){t.state=S.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=n}continue}R(t);t.q="";t.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:if(_(n)){t.state=S.ATTRIB}else if(n===">"){F(t)}else if(n==="/"){t.state=S.OPEN_TAG_SLASH}else if(x(y,n)){N(t,"No whitespace between attributes");t.attribName=n;t.attribValue="";t.state=S.ATTRIB_NAME}else{N(t,"Invalid attribute name")}continue;case S.ATTRIB_VALUE_UNQUOTED:if(!E(n)){if(n==="&"){t.state=S.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=n}continue}R(t);if(n===">"){F(t)}else{t.state=S.ATTRIB}continue;case S.CLOSE_TAG:if(!t.tagName){if(_(n)){continue}else if(k(y,n)){if(t.script){t.script+="</"+n;t.state=S.SCRIPT}else{N(t,"Invalid tagname in closing tag.")}}else{t.tagName=n}}else if(n===">"){Y(t)}else if(x(g,n)){t.tagName+=n}else if(t.script){t.script+="</"+t.tagName;t.tagName="";t.state=S.SCRIPT}else{if(!_(n)){N(t,"Invalid tagname in closing tag")}t.state=S.CLOSE_TAG_SAW_WHITE}continue;case S.CLOSE_TAG_SAW_WHITE:if(_(n)){continue}if(n===">"){Y(t)}else{N(t,"Invalid characters in closing tag")}continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var s;var u;switch(t.state){case S.TEXT_ENTITY:s=S.TEXT;u="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:s=S.ATTRIB_VALUE_QUOTED;u="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:s=S.ATTRIB_VALUE_UNQUOTED;u="attribValue";break}if(n===";"){t[u]+=B(t);t.entity="";t.state=s}else if(x(t.entity.length?A:b,n)){t.entity+=n}else{N(t,"Invalid character in entity name");t[u]+="&"+t.entity+n;t.entity="";t.state=s}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){i(t)}return t}
344
344
  /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var r=function(){var r=16384;var n=[];var a;var i;var o=-1;var s=arguments.length;if(!s){return""}var u="";while(++o<s){var l=Number(arguments[o]);if(!isFinite(l)||l<0||l>1114111||t(l)!==l){throw RangeError("Invalid code point: "+l)}if(l<=65535){n.push(l)}else{l-=65536;a=(l>>10)+55296;i=l%1024+56320;n.push(a,i)}if(o+1===s||n.length>r){u+=e.apply(null,n);n.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:r,configurable:true,writable:true})}else{String.fromCodePoint=r}})()}})(false?undefined:t)}).call(this,r(255).Buffer)},function(e,t,r){"use strict";t.byteLength=c;t.toByteArray=d;t.fromByteArray=v;var n=[];var a=[];var i=typeof Uint8Array!=="undefined"?Uint8Array:Array;var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var s=0,u=o.length;s<u;++s){n[s]=o[s];a[o.charCodeAt(s)]=s}a["-".charCodeAt(0)]=62;a["_".charCodeAt(0)]=63;function l(e){var t=e.length;if(t%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var r=e.indexOf("=");if(r===-1)r=t;var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=l(e);var r=t[0];var n=t[1];return(r+n)*3/4-n}function f(e,t,r){return(t+r)*3/4-r}function d(e){var t;var r=l(e);var n=r[0];var o=r[1];var s=new i(f(e,n,o));var u=0;var c=o>0?n-4:n;var d;for(d=0;d<c;d+=4){t=a[e.charCodeAt(d)]<<18|a[e.charCodeAt(d+1)]<<12|a[e.charCodeAt(d+2)]<<6|a[e.charCodeAt(d+3)];s[u++]=t>>16&255;s[u++]=t>>8&255;s[u++]=t&255}if(o===2){t=a[e.charCodeAt(d)]<<2|a[e.charCodeAt(d+1)]>>4;s[u++]=t&255}if(o===1){t=a[e.charCodeAt(d)]<<10|a[e.charCodeAt(d+1)]<<4|a[e.charCodeAt(d+2)]>>2;s[u++]=t>>8&255;s[u++]=t&255}return s}function p(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[e&63]}function h(e,t,r){var n;var a=[];for(var i=t;i<r;i+=3){n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255);a.push(p(n))}return a.join("")}function v(e){var t;var r=e.length;var a=r%3;var i=[];var o=16383;for(var s=0,u=r-a;s<u;s+=o){i.push(h(e,s,s+o>u?u:s+o))}if(a===1){t=e[r-1];i.push(n[t>>2]+n[t<<4&63]+"==")}else if(a===2){t=(e[r-2]<<8)+e[r-1];i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")}return i.join("")}},function(e,t){
345
345
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
346
346
  t.read=function(e,t,r,n,a){var i,o;var s=a*8-n-1;var u=(1<<s)-1;var l=u>>1;var c=-7;var f=r?a-1:0;var d=r?-1:1;var p=e[t+f];f+=d;i=p&(1<<-c)-1;p>>=-c;c+=s;for(;c>0;i=i*256+e[t+f],f+=d,c-=8){}o=i&(1<<-c)-1;i>>=-c;c+=n;for(;c>0;o=o*256+e[t+f],f+=d,c-=8){}if(i===0){i=1-l}else if(i===u){return o?NaN:(p?-1:1)*Infinity}else{o=o+Math.pow(2,n);i=i-l}return(p?-1:1)*o*Math.pow(2,i-n)};t.write=function(e,t,r,n,a,i){var o,s,u;var l=i*8-a-1;var c=(1<<l)-1;var f=c>>1;var d=a===23?Math.pow(2,-24)-Math.pow(2,-77):0;var p=n?0:i-1;var h=n?1:-1;var v=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===Infinity){s=isNaN(t)?1:0;o=c}else{o=Math.floor(Math.log(t)/Math.LN2);if(t*(u=Math.pow(2,-o))<1){o--;u*=2}if(o+f>=1){t+=d/u}else{t+=d*Math.pow(2,1-f)}if(t*u>=2){o++;u/=2}if(o+f>=c){s=0;o=c}else if(o+f>=1){s=(t*u-1)*Math.pow(2,a);o=o+f}else{s=t*Math.pow(2,f-1)*Math.pow(2,a);o=0}}for(;a>=8;e[r+p]=s&255,p+=h,s/=256,a-=8){}o=o<<a|s;l+=a;for(;l>0;e[r+p]=o&255,p+=h,o/=256,l-=8){}e[r+p-h]|=v*128}},function(e,t,r){e.exports=i;var n=r(142).EventEmitter;var a=r(125);a(i,n);i.Readable=r(256);i.Writable=r(764);i.Duplex=r(765);i.Transform=r(766);i.PassThrough=r(767);i.Stream=i;function i(){n.call(this)}i.prototype.pipe=function(e,t){var r=this;function a(t){if(e.writable){if(false===e.write(t)&&r.pause){r.pause()}}}r.on("data",a);function i(){if(r.readable&&r.resume){r.resume()}}e.on("drain",i);if(!e._isStdio&&(!t||t.end!==false)){r.on("end",s);r.on("close",u)}var o=false;function s(){if(o)return;o=true;e.end()}function u(){if(o)return;o=true;if(typeof e.destroy==="function")e.destroy()}function l(e){c();if(n.listenerCount(this,"error")===0){throw e}}r.on("error",l);e.on("error",l);function c(){r.removeListener("data",a);e.removeListener("drain",i);r.removeListener("end",s);r.removeListener("close",u);r.removeListener("error",l);e.removeListener("error",l);r.removeListener("end",c);r.removeListener("close",c);e.removeListener("close",c)}r.on("end",c);r.on("close",c);e.on("close",c);e.emit("pipe",r);return e}},function(e,t){},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var a=r(176).Buffer;var i=r(761);function o(e,t,r){e.copy(t,r)}e.exports=function(){function e(){n(this,e);this.head=null;this.tail=null;this.length=0}e.prototype.push=function e(t){var r={data:t,next:null};if(this.length>0)this.tail.next=r;else this.head=r;this.tail=r;++this.length};e.prototype.unshift=function e(t){var r={data:t,next:this.head};if(this.length===0)this.tail=r;this.head=r;++this.length};e.prototype.shift=function e(){if(this.length===0)return;var t=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return t};e.prototype.clear=function e(){this.head=this.tail=null;this.length=0};e.prototype.join=function e(t){if(this.length===0)return"";var r=this.head;var n=""+r.data;while(r=r.next){n+=t+r.data}return n};e.prototype.concat=function e(t){if(this.length===0)return a.alloc(0);if(this.length===1)return this.head.data;var r=a.allocUnsafe(t>>>0);var n=this.head;var i=0;while(n){o(n.data,r,i);i+=n.data.length;n=n.next}return r};return e}();if(i&&i.inspect&&i.inspect.custom){e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e}}},function(e,t){},function(e,t,r){(function(t){e.exports=r;function r(e,t){if(n("noDeprecation")){return e}var r=false;function a(){if(!r){if(n("throwDeprecation")){throw new Error(t)}else if(n("traceDeprecation")){console.trace(t)}else{console.warn(t)}r=true}return e.apply(this,arguments)}return a}function n(e){try{if(!t.localStorage)return false}catch(e){return false}var r=t.localStorage[e];if(null==r)return false;return String(r).toLowerCase()==="true"}}).call(this,r(25))},function(e,t,r){"use strict";e.exports=i;var n=r(391);var a=Object.create(r(152));a.inherits=r(125);a.inherits(i,n);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(257)},function(e,t,r){e.exports=r(100)},function(e,t,r){e.exports=r(256).Transform},function(e,t,r){e.exports=r(256).PassThrough},function(e,t){(function(){"use strict";t.stripBOM=function(e){if(e[0]==="\ufeff"){return e.substring(1)}else{return e}}}).call(this)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(378);var a=r(770);var i=new n.Parser({xmlns:true});var o=function(){function e(){}e.prototype.parse=function(e,t){return new Promise((function(r,n){i.parseString(e,(function(e,i){if(e){n(e)}else{if(i.OpenSearchDescription){var o=i.OpenSearchDescription;var s=o["Description"][0]["_"];var u=o["ShortName"][0]["_"];var l=o["Url"][0]["$"].template.value;var c=function(e){return a.resolve(t,l.replace("{searchTerms}",e))};r({searchData:{description:s,shortName:u,template:c}})}}}))}))};return e}();t.default=o},function(e,t,r){"use strict";var n=r(771);var a=r(772);t.parse=_;t.resolve=E;t.resolveObject=x;t.format=w;t.Url=i;function i(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),f=["'"].concat(c),d=["%","/","?",";","#"].concat(f),p=["/","?","#"],h=255,v=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:true,"javascript:":true},g={javascript:true,"javascript:":true},b={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true},A=r(773);function _(e,t,r){if(e&&a.isObject(e)&&e instanceof i)return e;var n=new i;n.parse(e,t,r);return n}i.prototype.parse=function(e,t,r){if(!a.isString(e)){throw new TypeError("Parameter 'url' must be a string, not "+typeof e)}var i=e.indexOf("?"),s=i!==-1&&i<e.indexOf("#")?"?":"#",l=e.split(s),c=/\\/g;l[0]=l[0].replace(c,"/");e=l.join(s);var _=e;_=_.trim();if(!r&&e.split("#").length===1){var w=u.exec(_);if(w){this.path=_;this.href=_;this.pathname=w[1];if(w[2]){this.search=w[2];if(t){this.query=A.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(t){this.search="";this.query={}}return this}}var E=o.exec(_);if(E){E=E[0];var x=E.toLowerCase();this.protocol=x;_=_.substr(E.length)}if(r||E||_.match(/^\/\/[^@\/]+@[^@\/]+/)){var k=_.substr(0,2)==="//";if(k&&!(E&&g[E])){_=_.substr(2);this.slashes=true}}if(!g[E]&&(k||E&&!b[E])){var S=-1;for(var O=0;O<p.length;O++){var M=_.indexOf(p[O]);if(M!==-1&&(S===-1||M<S))S=M}var D,T;if(S===-1){T=_.lastIndexOf("@")}else{T=_.lastIndexOf("@",S)}if(T!==-1){D=_.slice(0,T);_=_.slice(T+1);this.auth=decodeURIComponent(D)}S=-1;for(var O=0;O<d.length;O++){var M=_.indexOf(d[O]);if(M!==-1&&(S===-1||M<S))S=M}if(S===-1)S=_.length;this.host=_.slice(0,S);_=_.slice(S);this.parseHost();this.hostname=this.hostname||"";var L=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!L){var C=this.hostname.split(/\./);for(var O=0,j=C.length;O<j;O++){var N=C[O];if(!N)continue;if(!N.match(v)){var I="";for(var P=0,R=N.length;P<R;P++){if(N.charCodeAt(P)>127){I+="x"}else{I+=N[P]}}if(!I.match(v)){var F=C.slice(0,O);var Y=C.slice(O+1);var B=N.match(m);if(B){F.push(B[1]);Y.unshift(B[2])}if(Y.length){_="/"+Y.join(".")+_}this.hostname=F.join(".");break}}}}if(this.hostname.length>h){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!L){this.hostname=n.toASCII(this.hostname)}var H=this.port?":"+this.port:"";var U=this.hostname||"";this.host=U+H;this.href+=this.host;if(L){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(_[0]!=="/"){_="/"+_}}}if(!y[x]){for(var O=0,j=f.length;O<j;O++){var z=f[O];if(_.indexOf(z)===-1)continue;var q=encodeURIComponent(z);if(q===z){q=escape(z)}_=_.split(z).join(q)}}var V=_.indexOf("#");if(V!==-1){this.hash=_.substr(V);_=_.slice(0,V)}var W=_.indexOf("?");if(W!==-1){this.search=_.substr(W);this.query=_.substr(W+1);if(t){this.query=A.parse(this.query)}_=_.slice(0,W)}else if(t){this.search="";this.query={}}if(_)this.pathname=_;if(b[x]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var H=this.pathname||"";var K=this.search||"";this.path=H+K}this.href=this.format();return this};function w(e){if(a.isString(e))e=_(e);if(!(e instanceof i))return i.prototype.format.call(e);return e.format()}i.prototype.format=function(){var e=this.auth||"";if(e){e=encodeURIComponent(e);e=e.replace(/%3A/i,":");e+="@"}var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=false,o="";if(this.host){i=e+this.host}else if(this.hostname){i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]");if(this.port){i+=":"+this.port}}if(this.query&&a.isObject(this.query)&&Object.keys(this.query).length){o=A.stringify(this.query)}var s=this.search||o&&"?"+o||"";if(t&&t.substr(-1)!==":")t+=":";if(this.slashes||(!t||b[t])&&i!==false){i="//"+(i||"");if(r&&r.charAt(0)!=="/")r="/"+r}else if(!i){i=""}if(n&&n.charAt(0)!=="#")n="#"+n;if(s&&s.charAt(0)!=="?")s="?"+s;r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)}));s=s.replace("#","%23");return t+i+r+s+n};function E(e,t){return _(e,false,true).resolve(t)}i.prototype.resolve=function(e){return this.resolveObject(_(e,false,true)).format()};function x(e,t){if(!e)return t;return _(e,false,true).resolveObject(t)}i.prototype.resolveObject=function(e){if(a.isString(e)){var t=new i;t.parse(e,false,true);e=t}var r=new i;var n=Object.keys(this);for(var o=0;o<n.length;o++){var s=n[o];r[s]=this[s]}r.hash=e.hash;if(e.href===""){r.href=r.format();return r}if(e.slashes&&!e.protocol){var u=Object.keys(e);for(var l=0;l<u.length;l++){var c=u[l];if(c!=="protocol")r[c]=e[c]}if(b[r.protocol]&&r.hostname&&!r.pathname){r.path=r.pathname="/"}r.href=r.format();return r}if(e.protocol&&e.protocol!==r.protocol){if(!b[e.protocol]){var f=Object.keys(e);for(var d=0;d<f.length;d++){var p=f[d];r[p]=e[p]}r.href=r.format();return r}r.protocol=e.protocol;if(!e.host&&!g[e.protocol]){var h=(e.pathname||"").split("/");while(h.length&&!(e.host=h.shift()));if(!e.host)e.host="";if(!e.hostname)e.hostname="";if(h[0]!=="")h.unshift("");if(h.length<2)h.unshift("");r.pathname=h.join("/")}else{r.pathname=e.pathname}r.search=e.search;r.query=e.query;r.host=e.host||"";r.auth=e.auth;r.hostname=e.hostname||e.host;r.port=e.port;if(r.pathname||r.search){var v=r.pathname||"";var m=r.search||"";r.path=v+m}r.slashes=r.slashes||e.slashes;r.href=r.format();return r}var y=r.pathname&&r.pathname.charAt(0)==="/",A=e.host||e.pathname&&e.pathname.charAt(0)==="/",_=A||y||r.host&&e.pathname,w=_,E=r.pathname&&r.pathname.split("/")||[],h=e.pathname&&e.pathname.split("/")||[],x=r.protocol&&!b[r.protocol];if(x){r.hostname="";r.port=null;if(r.host){if(E[0]==="")E[0]=r.host;else E.unshift(r.host)}r.host="";if(e.protocol){e.hostname=null;e.port=null;if(e.host){if(h[0]==="")h[0]=e.host;else h.unshift(e.host)}e.host=null}_=_&&(h[0]===""||E[0]==="")}if(A){r.host=e.host||e.host===""?e.host:r.host;r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname;r.search=e.search;r.query=e.query;E=h}else if(h.length){if(!E)E=[];E.pop();E=E.concat(h);r.search=e.search;r.query=e.query}else if(!a.isNullOrUndefined(e.search)){if(x){r.hostname=r.host=E.shift();var k=r.host&&r.host.indexOf("@")>0?r.host.split("@"):false;if(k){r.auth=k.shift();r.host=r.hostname=k.shift()}}r.search=e.search;r.query=e.query;if(!a.isNull(r.pathname)||!a.isNull(r.search)){r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")}r.href=r.format();return r}if(!E.length){r.pathname=null;if(r.search){r.path="/"+r.search}else{r.path=null}r.href=r.format();return r}var S=E.slice(-1)[0];var O=(r.host||e.host||E.length>1)&&(S==="."||S==="..")||S==="";var M=0;for(var D=E.length;D>=0;D--){S=E[D];if(S==="."){E.splice(D,1)}else if(S===".."){E.splice(D,1);M++}else if(M){E.splice(D,1);M--}}if(!_&&!w){for(;M--;M){E.unshift("..")}}if(_&&E[0]!==""&&(!E[0]||E[0].charAt(0)!=="/")){E.unshift("")}if(O&&E.join("/").substr(-1)!=="/"){E.push("")}var T=E[0]===""||E[0]&&E[0].charAt(0)==="/";if(x){r.hostname=r.host=T?"":E.length?E.shift():"";var k=r.host&&r.host.indexOf("@")>0?r.host.split("@"):false;if(k){r.auth=k.shift();r.host=r.hostname=k.shift()}}_=_||r.host&&E.length;if(_&&!T){E.unshift("")}if(!E.length){r.pathname=null;r.path=null}else{r.pathname=E.join("/")}if(!a.isNull(r.pathname)||!a.isNull(r.search)){r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")}r.auth=e.auth||r.auth;r.slashes=r.slashes||e.slashes;r.href=r.format();return r};i.prototype.parseHost=function(){var e=this.host;var t=s.exec(e);if(t){t=t[0];if(t!==":"){this.port=t.substr(1)}e=e.substr(0,e.length-t.length)}if(e)this.hostname=e}},function(e,t,r){(function(e,n){var a;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(i){var o=true&&t&&!t.nodeType&&t;var s=true&&e&&!e.nodeType&&e;var u=typeof n=="object"&&n;if(u.global===u||u.window===u||u.self===u){i=u}var l,c=2147483647,f=36,d=1,p=26,h=38,v=700,m=72,y=128,g="-",b=/^xn--/,A=/[^\x20-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=f-d,x=Math.floor,k=String.fromCharCode,S;function O(e){throw new RangeError(w[e])}function M(e,t){var r=e.length;var n=[];while(r--){n[r]=t(e[r])}return n}function D(e,t){var r=e.split("@");var n="";if(r.length>1){n=r[0]+"@";e=r[1]}e=e.replace(_,".");var a=e.split(".");var i=M(a,t).join(".");return n+i}function T(e){var t=[],r=0,n=e.length,a,i;while(r<n){a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){i=e.charCodeAt(r++);if((i&64512)==56320){t.push(((a&1023)<<10)+(i&1023)+65536)}else{t.push(a);r--}}else{t.push(a)}}return t}function L(e){return M(e,(function(e){var t="";if(e>65535){e-=65536;t+=k(e>>>10&1023|55296);e=56320|e&1023}t+=k(e);return t})).join("")}function C(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return f}function j(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function N(e,t,r){var n=0;e=r?x(e/v):e>>1;e+=x(e/t);for(;e>E*p>>1;n+=f){e=x(e/E)}return x(n+(E+1)*e/(e+h))}function I(e){var t=[],r=e.length,n,a=0,i=y,o=m,s,u,l,h,v,b,A,_,w;s=e.lastIndexOf(g);if(s<0){s=0}for(u=0;u<s;++u){if(e.charCodeAt(u)>=128){O("not-basic")}t.push(e.charCodeAt(u))}for(l=s>0?s+1:0;l<r;){for(h=a,v=1,b=f;;b+=f){if(l>=r){O("invalid-input")}A=C(e.charCodeAt(l++));if(A>=f||A>x((c-a)/v)){O("overflow")}a+=A*v;_=b<=o?d:b>=o+p?p:b-o;if(A<_){break}w=f-_;if(v>x(c/w)){O("overflow")}v*=w}n=t.length+1;o=N(a-h,n,h==0);if(x(a/n)>c-i){O("overflow")}i+=x(a/n);a%=n;t.splice(a++,0,i)}return L(t)}function P(e){var t,r,n,a,i,o,s,u,l,h,v,b=[],A,_,w,E;e=T(e);A=e.length;t=y;r=0;i=m;for(o=0;o<A;++o){v=e[o];if(v<128){b.push(k(v))}}n=a=b.length;if(a){b.push(g)}while(n<A){for(s=c,o=0;o<A;++o){v=e[o];if(v>=t&&v<s){s=v}}_=n+1;if(s-t>x((c-r)/_)){O("overflow")}r+=(s-t)*_;t=s;for(o=0;o<A;++o){v=e[o];if(v<t&&++r>c){O("overflow")}if(v==t){for(u=r,l=f;;l+=f){h=l<=i?d:l>=i+p?p:l-i;if(u<h){break}E=u-h;w=f-h;b.push(k(j(h+E%w,0)));u=x(E/w)}b.push(k(j(u,0)));i=N(r,_,n==a);r=0;++n}}++r;++t}return b.join("")}function R(e){return D(e,(function(e){return b.test(e)?I(e.slice(4).toLowerCase()):e}))}function F(e){return D(e,(function(e){return A.test(e)?"xn--"+P(e):e}))}l={version:"1.4.1",ucs2:{decode:T,encode:L},decode:I,encode:P,toASCII:F,toUnicode:R};if(true){!(a=function(){return l}.call(t,r,t,e),a!==undefined&&(e.exports=a))}else{}})(this)}).call(this,r(48)(e),r(25))},function(e,t,r){"use strict";e.exports={isString:function(e){return typeof e==="string"},isObject:function(e){return typeof e==="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}}},function(e,t,r){"use strict";t.decode=t.parse=r(774);t.encode=t.stringify=r(775)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,i){t=t||"&";r=r||"=";var o={};if(typeof e!=="string"||e.length===0){return o}var s=/\+/g;e=e.split(t);var u=1e3;if(i&&typeof i.maxKeys==="number"){u=i.maxKeys}var l=e.length;if(u>0&&l>u){l=u}for(var c=0;c<l;++c){var f=e[c].replace(s,"%20"),d=f.indexOf(r),p,h,v,m;if(d>=0){p=f.substr(0,d);h=f.substr(d+1)}else{p=f;h=""}v=decodeURIComponent(p);m=decodeURIComponent(h);if(!n(o,v)){o[v]=m}else if(a(o[v])){o[v].push(m)}else{o[v]=[o[v],m]}}return o};var a=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,s){t=t||"&";r=r||"=";if(e===null){e=undefined}if(typeof e==="object"){return i(o(e),(function(o){var s=encodeURIComponent(n(o))+r;if(a(e[o])){return i(e[o],(function(e){return s+encodeURIComponent(n(e))})).join(t)}else{return s+encodeURIComponent(n(e[o]))}})).join(t)}if(!s)return"";return encodeURIComponent(n(s))+r+encodeURIComponent(n(e))};var a=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function i(e,t){if(e.map)return e.map(t);var r=[];for(var n=0;n<e.length;n++){r.push(t(e[n],n))}return r}var o=Object.keys||function(e){var t=[];for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t.push(r)}return t}},function(e,t,r){var n,a;
@@ -368,7 +368,7 @@ t.read=function(e,t,r,n,a){var i,o;var s=a*8-n-1;var u=(1<<s)-1;var l=u>>1;var c
368
368
  *
369
369
  * This source code is licensed under the MIT license found in the
370
370
  * LICENSE file in the root directory of this source tree.
371
- */var n=r(46),a=r(1);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o="function"===typeof Symbol&&Symbol.for,s=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,f=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,v=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,A=o?Symbol.for("react.fundamental"):60117,_=o?Symbol.for("react.scope"):60119;function w(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t();e._result=t;t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}function E(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case u:return"Fragment";case s:return"Portal";case c:return"Profiler";case l:return"StrictMode";case v:return"Suspense";case m:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case d:return"Context.Consumer";case f:return"Context.Provider";case h:var t=e.render;t=t.displayName||t.name||"";return e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case y:return E(e.type);case b:return E(e.render);case g:if(e=1===e._status?e._result:null)return E(e)}return null}var x=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;x.hasOwnProperty("ReactCurrentDispatcher")||(x.ReactCurrentDispatcher={current:null});x.hasOwnProperty("ReactCurrentBatchConfig")||(x.ReactCurrentBatchConfig={suspense:null});var k={};function S(e,t){for(var r=e._threadCount|0;r<=t;r++)e[r]=e._currentValue2,e._threadCount=r+1}function O(e,t,r,n){if(n&&(n=e.contextType,"object"===typeof n&&null!==n))return S(n,r),n[r];if(e=e.contextTypes){r={};for(var a in e)r[a]=t[a];t=r}else t=k;return t}for(var M=new Uint16Array(16),D=0;15>D;D++)M[D]=D+1;M[15]=0;var T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,L=Object.prototype.hasOwnProperty,C={},j={};function N(e){if(L.call(j,e))return!0;if(L.call(C,e))return!1;if(T.test(e))return j[e]=!0;C[e]=!0;return!1}function I(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(n)return!1;if(null!==r)return!r.acceptsBooleans;e=e.toLowerCase().slice(0,5);return"data-"!==e&&"aria-"!==e;default:return!1}}function P(e,t,r,n){if(null===t||"undefined"===typeof t||I(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function R(e,t,r,n,a,i){this.acceptsBooleans=2===t||3===t||4===t;this.attributeName=n;this.attributeNamespace=a;this.mustUseProperty=r;this.propertyName=e;this.type=t;this.sanitizeURL=i}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){F[e]=new R(e,0,!1,e,null,!1)}));[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];F[t]=new R(t,1,!1,e[1],null,!1)}));["contentEditable","draggable","spellCheck","value"].forEach((function(e){F[e]=new R(e,2,!1,e.toLowerCase(),null,!1)}));["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){F[e]=new R(e,2,!1,e,null,!1)}));"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){F[e]=new R(e,3,!1,e.toLowerCase(),null,!1)}));["checked","multiple","muted","selected"].forEach((function(e){F[e]=new R(e,3,!0,e,null,!1)}));["capture","download"].forEach((function(e){F[e]=new R(e,4,!1,e,null,!1)}));["cols","rows","size","span"].forEach((function(e){F[e]=new R(e,6,!1,e,null,!1)}));["rowSpan","start"].forEach((function(e){F[e]=new R(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function B(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,null,!1)}));"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}));["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}));["tabIndex","crossOrigin"].forEach((function(e){F[e]=new R(e,1,!1,e.toLowerCase(),null,!1)}));F.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach((function(e){F[e]=new R(e,1,!1,e.toLowerCase(),null,!0)}));var H=/["'&<>]/;function U(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=H.exec(e);if(t){var r="",n,a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==n&&(r+=e.substring(a,n));a=n+1;r+=t}e=a!==n?r+e.substring(a,n):r}return e}function z(e,t){var r=F.hasOwnProperty(e)?F[e]:null;var n;if(n="style"!==e)n=null!==r?0===r.type:!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]?!1:!0;if(n||P(e,t,r,!1))return"";if(null!==r){e=r.attributeName;n=r.type;if(3===n||4===n&&!0===t)return e+'=""';r.sanitizeURL&&(t=""+t);return e+'="'+(U(t)+'"')}return N(e)?e+'="'+(U(t)+'"'):""}function q(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}var V="function"===typeof Object.is?Object.is:q,W=null,K=null,G=null,Q=!1,J=!1,Z=null,X=0;function $(){if(null===W)throw Error(i(321));return W}function ee(){if(0<X)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function te(){null===G?null===K?(Q=!1,K=G=ee()):(Q=!0,G=K):null===G.next?(Q=!1,G=G.next=ee()):(Q=!0,G=G.next);return G}function re(e,t,r,n){for(;J;)J=!1,X+=1,G=null,r=e(t,n);K=W=null;X=0;G=Z=null;return r}function ne(e,t){return"function"===typeof t?t(e):t}function ae(e,t,r){W=$();G=te();if(Q){var n=G.queue;t=n.dispatch;if(null!==Z&&(r=Z.get(n),void 0!==r)){Z.delete(n);n=G.memoizedState;do{n=e(n,r.action),r=r.next}while(null!==r);G.memoizedState=n;return[n,t]}return[G.memoizedState,t]}e=e===ne?"function"===typeof t?t():t:void 0!==r?r(t):t;G.memoizedState=e;e=G.queue={last:null,dispatch:null};e=e.dispatch=ie.bind(null,W,e);return[G.memoizedState,e]}function ie(e,t,r){if(!(25>X))throw Error(i(301));if(e===W)if(J=!0,e={action:r,next:null},null===Z&&(Z=new Map),r=Z.get(t),void 0===r)Z.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function oe(){}var se=0,ue={readContext:function(e){var t=se;S(e,t);return e[t]},useContext:function(e){$();var t=se;S(e,t);return e[t]},useMemo:function(e,t){W=$();G=te();t=void 0===t?null:t;if(null!==G){var r=G.memoizedState;if(null!==r&&null!==t){e:{var n=r[1];if(null===n)n=!1;else{for(var a=0;a<n.length&&a<t.length;a++)if(!V(t[a],n[a])){n=!1;break e}n=!0}}if(n)return r[0]}}e=e();G.memoizedState=[e,t];return e},useReducer:ae,useRef:function(e){W=$();G=te();var t=G.memoizedState;return null===t?(e={current:e},G.memoizedState=e):t},useState:function(e){return ae(ne,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:oe,useEffect:oe,useDebugValue:oe,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){$();return e},useTransition:function(){$();return[function(e){e()},!1]}},le={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ce(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var fe={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},de=n({menuitem:!0},fe),pe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1);pe[t]=pe[e]}))}));var ve=/([A-Z])/g,me=/^ms-/,ye=a.Children.toArray,ge=x.ReactCurrentDispatcher,be={listing:!0,pre:!0,textarea:!0},Ae=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_e={},we={};function Ee(e){if(void 0===e||null===e)return e;var t="";a.Children.forEach(e,(function(e){null!=e&&(t+=e)}));return t}var xe=Object.prototype.hasOwnProperty,ke={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Se(e,t){if(void 0===e)throw Error(i(152,E(t)||"Component"))}function Oe(e,t,r){function o(a,o){var s=o.prototype&&o.prototype.isReactComponent,u=O(o,t,r,s),l=[],c=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===l)return null},enqueueReplaceState:function(e,t){c=!0;l=[t]},enqueueSetState:function(e,t){if(null===l)return null;l.push(t)}};if(s){if(s=new o(a.props,u,f),"function"===typeof o.getDerivedStateFromProps){var d=o.getDerivedStateFromProps.call(null,a.props,s.state);null!=d&&(s.state=n({},s.state,d))}}else if(W={},s=o(a.props,u,f),s=re(o,a.props,s,u),null==s||null==s.render){e=s;Se(e,o);return}s.props=a.props;s.context=u;s.updater=f;f=s.state;void 0===f&&(s.state=f=null);if("function"===typeof s.UNSAFE_componentWillMount||"function"===typeof s.componentWillMount)if("function"===typeof s.componentWillMount&&"function"!==typeof o.getDerivedStateFromProps&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&"function"!==typeof o.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),l.length){f=l;var p=c;l=null;c=!1;if(p&&1===f.length)s.state=f[0];else{d=p?f[0]:s.state;var h=!0;for(p=p?1:0;p<f.length;p++){var v=f[p];v="function"===typeof v?v.call(s,d,a.props,u):v;null!=v&&(h?(h=!1,d=n({},d,v)):n(d,v))}s.state=d}}else l=null;e=s.render();Se(e,o);if("function"===typeof s.getChildContext&&(a=o.childContextTypes,"object"===typeof a)){var m=s.getChildContext();for(var y in m)if(!(y in a))throw Error(i(108,E(o)||"Unknown",y))}m&&(t=n({},t,m))}for(;a.isValidElement(e);){var s=e,u=s.type;if("function"!==typeof u)break;o(s,u)}return{child:e,context:t}}var Me=function(){function e(e,t){a.isValidElement(e)?e.type!==u?e=[e]:(e=e.props.children,e=a.isValidElement(e)?[e]:ye(e)):e=ye(e);e={type:null,domNamespace:le.html,children:e,childIndex:0,context:k,footer:""};var r=M[0];if(0===r){var n=M;r=n.length;var o=2*r;if(!(65536>=o))throw Error(i(304));var s=new Uint16Array(o);s.set(n);M=s;M[0]=r+1;for(n=r;n<o-1;n++)M[n]=n+1;M[o-1]=0}else M[0]=M[r];this.threadID=r;this.stack=[e];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=t;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}var t=e.prototype;t.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var e=this.threadID;M[e]=M[0];M[0]=e}};t.pushProvider=function(e){var t=++this.contextIndex,r=e.type._context,n=this.threadID;S(r,n);var a=r[n];this.contextStack[t]=r;this.contextValueStack[t]=a;r[n]=e.props.value};t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],r=this.contextValueStack[e];this.contextStack[e]=null;this.contextValueStack[e]=null;this.contextIndex--;t[this.threadID]=r};t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]};t.read=function(e){if(this.exhausted)return null;var t=se;se=this.threadID;var r=ge.current;ge.current=ue;try{for(var n=[""],a=!1;n[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var o=this.threadID;M[o]=M[0];M[0]=o;break}var s=this.stack[this.stack.length-1];if(a||s.childIndex>=s.children.length){var u=s.footer;""!==u&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===f)this.popProvider(s.type);else if(s.type===v){this.suspenseDepth--;var l=n.pop();if(a){a=!1;var c=s.fallbackFrame;if(!c)throw Error(i(303));this.stack.push(c);n[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else n[this.suspenseDepth]+=l}n[this.suspenseDepth]+=u}else{var d=s.children[s.childIndex++],p="";try{p+=this.render(d,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"===typeof e.then)throw Error(i(294));throw e}finally{}n.length<=this.suspenseDepth&&n.push("");n[this.suspenseDepth]+=p}}return n[0]}finally{ge.current=r,se=t}};t.render=function(e,t,r){if("string"===typeof e||"number"===typeof e){r=""+e;if(""===r)return"";if(this.makeStaticMarkup)return U(r);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+U(r);this.previousWasTextNode=!0;return U(r)}t=Oe(e,t,this.threadID);e=t.child;t=t.context;if(null===e||!1===e)return"";if(!a.isValidElement(e)){if(null!=e&&null!=e.$$typeof){r=e.$$typeof;if(r===s)throw Error(i(257));throw Error(i(258,r.toString()))}e=ye(e);this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""});return""}var o=e.type;if("string"===typeof o)return this.renderDOM(e,t,r);switch(o){case l:case p:case c:case m:case u:return e=ye(e.props.children),this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case v:throw Error(i(294))}if("object"===typeof o&&null!==o)switch(o.$$typeof){case h:W={};var b=o.render(e.props,e.ref);b=re(o.render,e.props,b,e.ref);b=ye(b);this.stack.push({type:null,domNamespace:r,children:b,childIndex:0,context:t,footer:""});return"";case y:return e=[a.createElement(o.type,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case f:return o=ye(e.props.children),r={type:e,domNamespace:r,children:o,childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(r),"";case d:o=e.type;b=e.props;var E=this.threadID;S(o,E);o=ye(b.children(o[E]));this.stack.push({type:e,domNamespace:r,children:o,childIndex:0,context:t,footer:""});return"";case A:throw Error(i(338));case g:switch(o=e.type,w(o),o._status){case 1:return e=[a.createElement(o._result,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw o._result;default:throw Error(i(295))}case _:throw Error(i(343))}throw Error(i(130,null==o?o:typeof o,""))};t.renderDOM=function(e,t,r){var a=e.type.toLowerCase();r===le.html&&ce(a);if(!_e.hasOwnProperty(a)){if(!Ae.test(a))throw Error(i(65,a));_e[a]=!0}var o=e.props;if("input"===a)o=n({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===a){var s=o.value;if(null==s){s=o.defaultValue;var u=o.children;if(null!=u){if(null!=s)throw Error(i(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(i(93));u=u[0]}s=""+u}null==s&&(s="")}o=n({},o,{value:void 0,children:""+s})}else if("select"===a)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=n({},o,{value:void 0});else if("option"===a){u=this.currentSelectValue;var l=Ee(o.children);if(null!=u){var c=null!=o.value?o.value+"":l;s=!1;if(Array.isArray(u))for(var f=0;f<u.length;f++){if(""+u[f]===c){s=!0;break}}else s=""+u===c;o=n({selected:void 0,children:void 0},o,{selected:s,children:l})}}if(s=o){if(de[a]&&(null!=s.children||null!=s.dangerouslySetInnerHTML))throw Error(i(137,a,""));if(null!=s.dangerouslySetInnerHTML){if(null!=s.children)throw Error(i(60));if(!("object"===typeof s.dangerouslySetInnerHTML&&"__html"in s.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=s.style&&"object"!==typeof s.style)throw Error(i(62,""))}s=o;u=this.makeStaticMarkup;l=1===this.stack.length;c="<"+e.type;for(b in s)if(xe.call(s,b)){var d=s[b];if(null!=d){if("style"===b){f=void 0;var p="",h="";for(f in d)if(d.hasOwnProperty(f)){var v=0===f.indexOf("--"),m=d[f];if(null!=m){if(v)var y=f;else if(y=f,we.hasOwnProperty(y))y=we[y];else{var g=y.replace(ve,"-$1").toLowerCase().replace(me,"-ms-");y=we[y]=g}p+=h+y+":";h=f;v=null==m||"boolean"===typeof m||""===m?"":v||"number"!==typeof m||0===m||pe.hasOwnProperty(h)&&pe[h]?(""+m).trim():m+"px";p+=v;h=";"}}d=p||null}f=null;e:if(v=a,m=s,-1===v.indexOf("-"))v="string"===typeof m.is;else switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":v=!1;break e;default:v=!0}v?ke.hasOwnProperty(b)||(f=b,f=N(f)&&null!=d?f+'="'+(U(d)+'"'):""):f=z(b,d);f&&(c+=" "+f)}}u||l&&(c+=' data-reactroot=""');var b=c;s="";fe.hasOwnProperty(a)?b+="/>":(b+=">",s="</"+e.type+">");e:{u=o.dangerouslySetInnerHTML;if(null!=u){if(null!=u.__html){u=u.__html;break e}}else if(u=o.children,"string"===typeof u||"number"===typeof u){u=U(u);break e}u=null}null!=u?(o=[],be.hasOwnProperty(a)&&"\n"===u.charAt(0)&&(b+="\n"),b+=u):o=ye(o.children);e=e.type;r=null==r||"http://www.w3.org/1999/xhtml"===r?ce(e):"http://www.w3.org/2000/svg"===r&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":r;this.stack.push({domNamespace:r,type:a,children:o,childIndex:0,context:t,footer:s});this.previousWasTextNode=!1;return b};return e}(),De={renderToString:function(e){e=new Me(e,!1);try{return e.read(Infinity)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new Me(e,!0);try{return e.read(Infinity)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.14.0"};e.exports=De.default||De},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(20);var o=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.inputRef=a.createRef();return t}t.prototype.render=function(){var e=this;return a.createElement("div",null,a.createElement(i.default,{elementType:"input",type:"text",disabled:this.props.disabled,name:this.props.name,list:this.props.name+"-autocomplete-list",label:this.props.label,value:this.props.value,ref:this.inputRef,optionalText:false,onChange:this.props.onChange}),a.createElement("datalist",{id:this.props.name+"-autocomplete-list"},this.props.autocompleteValues.map((function(t){return a.createElement("option",{value:t,key:t,"aria-selected":e.props.value===t})}))))};t.prototype.getValue=function(){return this.inputRef.current.getValue()};t.prototype.clear=function(){this.inputRef.current.setState({value:""})};return t}(a.Component);t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(20);var o=r(13);var s=r(190);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addContributorRole=a.createRef();r.addContributorName=a.createRef();r.state={contributors:r.props.contributors||[],disabled:true};r.addContributor=r.addContributor.bind(r);r.removeContributor=r.removeContributor.bind(r);r.toggleDisabled=r.toggleDisabled.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"form-group"},a.createElement("label",null,"Authors and Contributors"),this.existingContributors(),this.newContributor())};t.prototype.newContributor=function(){var e=this.addContributorRole.current;var t=e&&e.getValue();var r=this.state.disabled||this.props.disabled;return a.createElement("span",{className:"contributor-form"},this.contributorSelect(t,true),this.contributorField(),a.createElement(o.Button,{type:"button",className:"add-contributor small",disabled:r,callback:this.addContributor,content:"Add"}))};t.prototype.contributorSelect=function(e,t){if(t===void 0){t=false}return a.createElement(i.default,{elementType:"select",disabled:this.props.disabled,name:"contributor-role",value:e||"Author",ref:t&&this.addContributorRole,"aria-label":"Select a contributor role type"},this.props.roles&&Object.values(this.props.roles).map((function(t){return a.createElement("option",{value:t,key:t,"aria-selected":e===t},t)})))};t.prototype.contributorField=function(e){return a.createElement(i.default,{elementType:"input",type:"text",disabled:this.props.disabled,name:"contributor-name","aria-label":"Enter contributor name",value:e&&e.name,ref:!e&&this.addContributorName,onChange:this.toggleDisabled,optionalText:false})};t.prototype.existingContributors=function(){var e=this;return this.state.contributors.map((function(t){var r=e.getContributorRole(t);return a.createElement(s.default,{key:t.name+t.role,disabled:e.props.disabled,onRemove:function(){return e.removeContributor(t)}},a.createElement("span",{className:"contributor-form"},e.contributorSelect(r),e.contributorField(t)))}))};t.prototype.toggleDisabled=function(e){this.setState({disabled:e.length<1})};t.prototype.getContributorRole=function(e){if(this.props.roles){if(this.props.roles[e.role]){return this.props.roles[e.role]}}return e.role};t.prototype.removeContributor=function(e){var t=this.state.contributors.filter((function(t){return!(t.name===e.name&&t.role===e.role)}));this.setState({contributors:t})};t.prototype.addContributor=function(){var e=this.addContributorName.current.getValue();var t=this.addContributorRole.current.getValue();this.setState({contributors:this.state.contributors.concat({role:t,name:e}),disabled:true});this.addContributorName.current.clear();this.addContributorRole.current.setValue("Author")};return t}(a.Component);t.default=u},function(e,t,r){var n=r(42);n(n.S+n.F,"Object",{assign:r(970)})},function(e,t){e.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";var n=r(75);var a=r(132);var i=r(279);var o=r(158);var s=r(133);var u=r(582);var l=Object.assign;e.exports=!l||r(107)((function(){var e={};var t={};var r=Symbol();var n="abcdefghijklmnopqrst";e[r]=7;n.split("").forEach((function(e){t[e]=e}));return l({},e)[r]!=7||Object.keys(l({},t)).join("")!=n}))?function e(t,r){var l=s(t);var c=arguments.length;var f=1;var d=i.f;var p=o.f;while(c>f){var h=u(arguments[f++]);var v=d?a(h).concat(d(h)):a(h);var m=v.length;var y=0;var g;while(m>y){g=v[y++];if(!n||p.call(h,g))l[g]=h[g]}}return l}:l},function(e,t,r){var n=r(109);var a=r(583);var i=r(972);e.exports=function(e){return function(t,r,o){var s=n(t);var u=a(s.length);var l=i(o,u);var c;if(e&&r!=r)while(u>l){c=s[l++];if(c!=c)return true}else for(;u>l;l++)if(e||l in s){if(s[l]===r)return e||l||0}return!e&&-1}}},function(e,t,r){var n=r(275);var a=Math.max;var i=Math.min;e.exports=function(e,t){e=n(e);return e<0?a(e+t,0):i(e,t)}},function(e,t,r){var n=r(42);n(n.S,"Object",{create:r(280)})},function(e,t,r){var n=r(83);var a=r(130);var i=r(132);e.exports=r(75)?Object.defineProperties:function e(t,r){a(t);var o=i(r);var s=o.length;var u=0;var l;while(s>u)n.f(t,l=o[u++],r[l]);return t}},function(e,t,r){var n=r(74).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(42);n(n.S,"Object",{setPrototypeOf:r(977).set})},function(e,t,r){var n=r(131);var a=r(130);var i=function(e,t){a(e);if(!n(t)&&t!==null)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=r(272)(Function.call,r(586).f(Object.prototype,"__proto__").set,2);n(e,[]);t=!(e instanceof Array)}catch(e){t=true}return function e(r,a){i(r,a);if(t)r.__proto__=a;else n(r,a);return r}}({},false):undefined),check:i}},function(e,t,r){var n=r(133);var a=r(132);r(588)("keys",(function(){return function e(t){return a(n(t))}}))},function(e,t,r){"use strict";t.__esModule=true;t.uncontrolledPropTypes=s;t.isProp=u;t.defaultKey=l;t.isReactComponent=c;var n=a(r(9));function a(e){return e&&e.__esModule?e:{default:e}}var i=function e(){};function o(e,t){return function(r,n){if(r[n]!==undefined){if(!r[e]){return new Error("You have provided a `"+n+"` prop to `"+t+"` "+("without an `"+e+"` handler prop. This will render a read-only field. ")+("If the field should be mutable use `"+l(n)+"`. ")+("Otherwise, set `"+e+"`."))}}}}function s(e,t){var r={};Object.keys(e).forEach((function(e){r[l(e)]=i;if(false){var t}}));return r}function u(e,t){return e[t]!==undefined}function l(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function c(e){return!!(e&&e.prototype&&e.prototype.isReactComponent)}},function(e,t,r){r(981);e.exports=r(30).Object.entries},function(e,t,r){var n=r(42);var a=r(589)(true);n(n.S,"Object",{entries:function e(t){return a(t)}})},function(e,t,r){r(983);e.exports=r(30).Object.values},function(e,t,r){var n=r(42);var a=r(589)(false);n(n.S,"Object",{values:function e(t){return a(t)}})},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(281));var i=n(r(120));function o(e,t,r){var n={target:e,currentTarget:e},i;if(!a.default.end)r=0;else if(r==null)r=u(e)||0;if(a.default.end){e.addEventListener(a.default.end,o,false);i=setTimeout((function(){return o(n)}),(r||100)*1.5)}else setTimeout(o.bind(null,n),0);function o(e){if(e.target!==e.currentTarget)return;clearTimeout(i);e.target.removeEventListener(a.default.end,o);t.call(this)}}o._parseDuration=u;var s=o;t.default=s;function u(e){var t=(0,i.default)(e,a.default.duration),r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/-(.)/g;function a(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=o;var a=n(r(987));var i=/^ms-/;function o(e){return(0,a.default)(e).replace(i,"-ms-")}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/([A-Z])/g;function a(e){return e.replace(n,"-$1").toLowerCase()}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=s;var a=n(r(590));var i=/^(top|right|bottom|left)$/;var o=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;function s(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function t(r){var n=e.style;r=(0,a.default)(r);if(r=="float")r="styleFloat";var s=e.currentStyle[r]||null;if(s==null&&n&&n[r])s=n[r];if(o.test(s)&&!i.test(r)){var u=n.left;var l=e.runtimeStyle;var c=l&&l.left;if(c)l.left=e.currentStyle.left;n.left=r==="fontSize"?"1em":s;s=n.pixelLeft+"px";n.left=u;if(c)l.left=c}return s}}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function a(e){return!!(e&&n.test(e))}e.exports=t["default"]},function(e,t,r){r(992);e.exports=r(30).parseInt},function(e,t,r){var n=r(42);var a=r(993);n(n.G+n.F*(parseInt!=a),{parseInt:a})},function(e,t,r){var n=r(74).parseInt;var a=r(994).trim;var i=r(591);var o=/^[-+]?0[xX]/;e.exports=n(i+"08")!==8||n(i+"0x16")!==22?function e(t,r){var i=a(String(t),3);return n(i,r>>>0||(o.test(i)?16:10))}:n},function(e,t,r){var n=r(42);var a=r(191);var i=r(107);var o=r(591);var s="["+o+"]";var u="​…";var l=RegExp("^"+s+s+"*");var c=RegExp(s+s+"*$");var f=function(e,t,r){var a={};var s=i((function(){return!!o[e]()||u[e]()!=u}));var l=a[e]=s?t(d):o[e];if(r)a[r]=l;n(n.P+n.F*s,"String",a)};var d=f.trim=function(e,t){e=String(a(e));if(t&1)e=e.replace(l,"");if(t&2)e=e.replace(c,"");return e};e.exports=f},function(e,t,r){var n=r(275);var a=r(191);e.exports=function(e){return function(t,r){var i=String(a(t));var o=n(r);var s=i.length;var u,l;if(o<0||o>=s)return e?"":undefined;u=i.charCodeAt(o);return u<55296||u>56319||o+1===s||(l=i.charCodeAt(o+1))<56320||l>57343?e?i.charAt(o):u:e?i.slice(o,o+2):(u-55296<<10)+(l-56320)+65536}}},function(e,t,r){"use strict";var n=r(280);var a=r(157);var i=r(282);var o={};r(129)(o,r(67)("iterator"),(function(){return this}));e.exports=function(e,t,r){e.prototype=n(o,{next:a(1,r)});i(e,t+" Iterator")}},function(e,t,r){"use strict";var n=r(272);var a=r(42);var i=r(133);var o=r(998);var s=r(999);var u=r(583);var l=r(1e3);var c=r(1001);a(a.S+a.F*!r(1003)((function(e){Array.from(e)})),"Array",{from:function e(t){var r=i(t);var a=typeof this=="function"?this:Array;var f=arguments.length;var d=f>1?arguments[1]:undefined;var p=d!==undefined;var h=0;var v=c(r);var m,y,g,b;if(p)d=n(d,f>2?arguments[2]:undefined,2);if(v!=undefined&&!(a==Array&&s(v))){for(b=v.call(r),y=new a;!(g=b.next()).done;h++){l(y,h,p?o(b,d,[g.value,h],true):g.value)}}else{m=u(r.length);for(y=new a(m);m>h;h++){l(y,h,p?d(r[h],h):r[h])}}y.length=h;return y}})},function(e,t,r){var n=r(130);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(t){var i=e["return"];if(i!==undefined)n(i.call(e));throw t}}},function(e,t,r){var n=r(159);var a=r(67)("iterator");var i=Array.prototype;e.exports=function(e){return e!==undefined&&(n.Array===e||i[a]===e)}},function(e,t,r){"use strict";var n=r(83);var a=r(157);e.exports=function(e,t,r){if(t in e)n.f(e,t,a(0,r));else e[t]=r}},function(e,t,r){var n=r(1002);var a=r(67)("iterator");var i=r(159);e.exports=r(30).getIteratorMethod=function(e){if(e!=undefined)return e[a]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(274);var a=r(67)("toStringTag");var i=n(function(){return arguments}())=="Arguments";var o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,s;return e===undefined?"Undefined":e===null?"Null":typeof(r=o(t=Object(e),a))=="string"?r:i?n(t):(s=n(t))=="Object"&&typeof t.callee=="function"?"Arguments":s}},function(e,t,r){var n=r(67)("iterator");var a=false;try{var i=[7][n]();i["return"]=function(){a=true};Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return false;var r=false;try{var i=[7];var o=i[n]();o.next=function(){return{done:r=true}};i[n]=function(){return o};e(i)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=o;var a=n(r(92));var i=n(r(1005));function o(e,t){return function r(n){var o=n.currentTarget,s=n.target,u=(0,i.default)(o,e);if(u.some((function(e){return(0,a.default)(e,s)})))t.call(this,n)}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=i;var n=/^[\w-]*$/;var a=Function.prototype.bind.call(Function.prototype.call,[].slice);function i(e,t){var r=t[0]==="#",i=t[0]===".",o=r||i?t.slice(1):t,s=n.test(o),u;if(s){if(r){e=e.getElementById?e:document;return(u=e.getElementById(o))?[u]:[]}if(e.getElementsByClassName&&i)return a(e.getElementsByClassName(o));return a(e.getElementsByTagName(t))}return a(e.querySelectorAll(t))}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=n(r(283));var o=n(r(284));var s=function e(){};if(a.default){s=function e(t,r,n,a){(0,i.default)(t,r,n,a);return function(){(0,o.default)(t,r,n,a)}}}var u=s;t.default=u;e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(1008);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o={};function s(e,t){return function r(n,i,s,u,l){var c=s||"<<anonymous>>";var f=l||i;if(n[i]!=null){var d=s+"."+i;(0,a.default)(o[d],"The "+u+" `"+f+"` of "+("`"+c+"` is deprecated. "+t+"."));o[d]=true}for(var p=arguments.length,h=Array(p>5?p-5:0),v=5;v<p;v++){h[v-5]=arguments[v]}return e.apply(undefined,[n,i,s,u,l].concat(h))}}function u(){o={}}s._resetWarned=u;e.exports=t["default"]},function(e,t,r){"use strict";var n="production"!=="production";var a=function(){};if(n){var i=function e(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var a=1;a<n;a++){r[a-1]=arguments[a]}var i=0;var o="Warning: "+t.replace(/%s/g,(function(){return r[i++]}));if(typeof console!=="undefined"){console.error(o)}try{throw new Error(o)}catch(e){}};a=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var a=2;a<n;a++){r[a-2]=arguments[a]}if(t===undefined){throw new Error("`warning(condition, format, ...args)` requires a warning "+"message argument")}if(!e){i.apply(null,[t].concat(r))}}}e.exports=a},function(e,t,r){"use strict";t.__esModule=true;var n=r(1010);var a=d(n);var i=r(120);var o=d(i);var s=r(222);var u=d(s);var l=r(343);var c=d(l);var f=r(1011);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function h(e,t){var r=-1;e.some((function(e,n){if(t(e,n)){r=n;return true}}));return r}function v(e,t){return h(e,(function(e){return e.modals.indexOf(t)!==-1}))}function m(e,t){var r={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight};if(e.overflowing){r.paddingRight=parseInt((0,o.default)(t,"paddingRight")||0,10)+(0,u.default)()+"px"}(0,o.default)(t,r)}function y(e,t){var r=e.style;Object.keys(r).forEach((function(e){return t.style[e]=r[e]}))}var g=function e(){var t=this;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=r.hideSiblingNodes,i=n===undefined?true:n,o=r.handleContainerOverflow,s=o===undefined?true:o;p(this,e);this.add=function(e,r,n){var i=t.modals.indexOf(e);var o=t.containers.indexOf(r);if(i!==-1){return i}i=t.modals.length;t.modals.push(e);if(t.hideSiblingNodes){(0,f.hideSiblings)(r,e.mountNode)}if(o!==-1){t.data[o].modals.push(e);return i}var s={modals:[e],classes:n?n.split(/\s+/):[],overflowing:(0,c.default)(r)};if(t.handleContainerOverflow){m(s,r)}s.classes.forEach(a.default.addClass.bind(null,r));t.containers.push(r);t.data.push(s);return i};this.remove=function(e){var r=t.modals.indexOf(e);if(r===-1){return}var n=v(t.data,e);var i=t.data[n];var o=t.containers[n];i.modals.splice(i.modals.indexOf(e),1);t.modals.splice(r,1);if(i.modals.length===0){i.classes.forEach(a.default.removeClass.bind(null,o));if(t.handleContainerOverflow){y(i,o)}if(t.hideSiblingNodes){(0,f.showSiblings)(o,e.mountNode)}t.containers.splice(n,1);t.data.splice(n,1)}else if(t.hideSiblingNodes){(0,f.ariaHidden)(false,i.modals[i.modals.length-1].mountNode)}};this.isTopModal=function(e){return!!t.modals.length&&t.modals[t.modals.length-1]===e};this.hideSiblingNodes=i;this.handleContainerOverflow=s;this.modals=[];this.containers=[];this.data=[]};t.default=g;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(600));t.addClass=a.default;var i=n(r(602));t.removeClass=i.default;var o=n(r(601));t.hasClass=o.default;var s={addClass:a.default,removeClass:i.default,hasClass:o.default};t.default=s},function(e,t,r){"use strict";t.__esModule=true;t.ariaHidden=o;t.hideSiblings=s;t.showSiblings=u;var n=["template","script","style"];var a=function e(t){var r=t.nodeType,a=t.tagName;return r===1&&n.indexOf(a.toLowerCase())===-1};var i=function e(t,r,n){r=[].concat(r);[].forEach.call(t.children,(function(e){if(r.indexOf(e)===-1&&a(e)){n(e)}}))};function o(e,t){if(!t){return}if(e){t.setAttribute("aria-hidden","true")}else{t.removeAttribute("aria-hidden")}}function s(e,t){i(e,t,(function(e){return o(true,e)}))}function u(e,t){i(e,t,(function(e){return o(false,e)}))}},function(e,t,r){"use strict";t.__esModule=true;var n=r(0);var a=v(n);var i=r(194);var o=v(i);var s=r(1);var u=v(s);var l=r(18);var c=v(l);var f=r(196);var d=v(f);var p=r(134);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=function(e){g(t,e);function t(){var r,n,a;m(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++){o[s]=arguments[s]}return a=(r=(n=y(this,e.call.apply(e,[this].concat(o))),n),n._mountOverlayTarget=function(){if(!n._overlayTarget){n._overlayTarget=document.createElement("div");n._portalContainerNode=(0,d.default)(n.props.container,(0,h.default)(n).body);n._portalContainerNode.appendChild(n._overlayTarget)}},n._unmountOverlayTarget=function(){if(n._overlayTarget){n._portalContainerNode.removeChild(n._overlayTarget);n._overlayTarget=null}n._portalContainerNode=null},n._renderOverlay=function(){var e=!n.props.children?null:u.default.Children.only(n.props.children);if(e!==null){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=c.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){if(t&&n.props.onRendered){n.props.onRendered()}}))}else{n._unrenderOverlay();n._unmountOverlayTarget()}},n._unrenderOverlay=function(){if(n._overlayTarget){c.default.unmountComponentAtNode(n._overlayTarget);n._overlayInstance=null}},n.getMountNode=function(){return n._overlayTarget},r),y(n,a)}t.prototype.componentDidMount=function e(){this._isMounted=true;this._renderOverlay()};t.prototype.componentDidUpdate=function e(){this._renderOverlay()};t.prototype.componentWillReceiveProps=function e(t){if(this._overlayTarget&&t.container!==this.props.container){this._portalContainerNode.removeChild(this._overlayTarget);this._portalContainerNode=(0,d.default)(t.container,(0,h.default)(this).body);this._portalContainerNode.appendChild(this._overlayTarget)}};t.prototype.componentWillUnmount=function e(){this._isMounted=false;this._unrenderOverlay();this._unmountOverlayTarget()};t.prototype.render=function e(){return null};return t}(u.default.Component);b.displayName="Portal";b.propTypes={container:a.default.oneOfType([o.default,a.default.func]),onRendered:a.default.func};t.default=b;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=r(0);var a=s(n);var i=r(1);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f={children:a.default.node};var d=function(e){c(t,e);function t(){u(this,t);return l(this,e.apply(this,arguments))}t.prototype.render=function e(){return this.props.children};return t}(o.default.Component);d.propTypes=f;t.default=d;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){var t=!document.addEventListener;var r=void 0;if(t){document.attachEvent("onfocusin",e);r=function t(){return document.detachEvent("onfocusin",e)}}else{document.addEventListener("focus",e,true);r=function t(){return document.removeEventListener("focus",e,true)}}return{remove:r}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(2);var i=A(a);var o=r(0);var s=A(o);var u=r(194);var l=A(u);var c=r(1);var f=A(c);var d=r(18);var p=A(d);var h=r(1016);var v=A(h);var m=r(196);var y=A(m);var g=r(134);var b=A(g);function A(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}function w(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function E(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function x(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var k=function(e){x(t,e);function t(r,n){w(this,t);var a=E(this,e.call(this,r,n));a.getTarget=function(){var e=a.props.target;var t=typeof e==="function"?e():e;return t&&p.default.findDOMNode(t)||null};a.maybeUpdatePosition=function(e){var t=a.getTarget();if(!a.props.shouldUpdatePosition&&t===a._lastTarget&&!e){return}a.updatePosition(t)};a.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null};a._needsFlush=false;a._lastTarget=null;return a}t.prototype.componentDidMount=function e(){this.updatePosition(this.getTarget())};t.prototype.componentWillReceiveProps=function e(){this._needsFlush=true};t.prototype.componentDidUpdate=function e(t){if(this._needsFlush){this._needsFlush=false;this.maybeUpdatePosition(this.props.placement!==t.placement)}};t.prototype.render=function e(){var t=this.props,r=t.children,a=t.className,o=_(t,["children","className"]);var s=this.state,u=s.positionLeft,l=s.positionTop,d=_(s,["positionLeft","positionTop"]);delete o.target;delete o.container;delete o.containerPadding;delete o.shouldUpdatePosition;var p=f.default.Children.only(r);return(0,c.cloneElement)(p,n({},o,d,{positionLeft:u,positionTop:l,className:(0,i.default)(a,p.props.className),style:n({},p.props.style,{left:u,top:l})}))};t.prototype.updatePosition=function e(t){this._lastTarget=t;if(!t){this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null});return}var r=p.default.findDOMNode(this);var n=(0,y.default)(this.props.container,(0,b.default)(this).body);this.setState((0,v.default)(this.props.placement,r,t,n,this.props.containerPadding))};return t}(f.default.Component);k.propTypes={target:s.default.oneOfType([l.default,s.default.func]),container:s.default.oneOfType([l.default,s.default.func]),containerPadding:s.default.number,placement:s.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:s.default.bool};k.displayName="Position";k.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:false};t.default=k;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=v;var n=r(604);var a=f(n);var i=r(1017);var o=f(i);var s=r(605);var u=f(s);var l=r(134);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=void 0,r=void 0,n=void 0;if(e.tagName==="BODY"){t=window.innerWidth;r=window.innerHeight;n=(0,u.default)((0,c.default)(e).documentElement)||(0,u.default)(e)}else{var i=(0,a.default)(e);t=i.width;r=i.height;n=(0,u.default)(e)}return{width:t,height:r,scroll:n}}function p(e,t,r,n){var a=d(r);var i=a.scroll;var o=a.height;var s=e-n-i;var u=e+n-i+t;if(s<0){return-s}else if(u>o){return o-u}else{return 0}}function h(e,t,r,n){var a=d(r);var i=a.width;var o=e-n;var s=e+n+t;if(o<0){return-o}else if(s>i){return i-s}return 0}function v(e,t,r,n,i){var s=n.tagName==="BODY"?(0,a.default)(r):(0,o.default)(r,n);var u=(0,a.default)(t),l=u.height,c=u.width;var f=void 0,d=void 0,v=void 0,m=void 0;if(e==="left"||e==="right"){d=s.top+(s.height-l)/2;if(e==="left"){f=s.left-c}else{f=s.left+s.width}var y=p(d,l,n,i);d+=y;m=50*(1-2*y/l)+"%";v=void 0}else if(e==="top"||e==="bottom"){f=s.left+(s.width-c)/2;if(e==="top"){d=s.top-l}else{d=s.top+s.height}var g=h(f,c,n,i);f+=g;v=50*(1-2*g/c)+"%";m=void 0}else{throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.')}return{positionLeft:f,positionTop:d,arrowOffsetLeft:v,arrowOffsetTop:m}}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=f;var a=n(r(1018));var i=n(r(604));var o=n(r(1019));var s=n(r(605));var u=n(r(1020));var l=n(r(120));function c(e){return e.nodeName&&e.nodeName.toLowerCase()}function f(e,t){var r={top:0,left:0},n;if((0,l.default)(e,"position")==="fixed"){n=e.getBoundingClientRect()}else{t=t||(0,o.default)(e);n=(0,i.default)(e);if(c(t)!=="html")r=(0,i.default)(t);r.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,s.default)(t)||0;r.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,u.default)(t)||0}return(0,a.default)({},n,{top:n.top-r.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:n.left-r.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})}e.exports=t["default"]},function(e,t){function r(){e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};return r.apply(this,arguments)}e.exports=r},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=s;var a=n(r(119));var i=n(r(120));function o(e){return e.nodeName&&e.nodeName.toLowerCase()}function s(e){var t=(0,a.default)(e),r=e&&e.offsetParent;while(r&&o(e)!=="html"&&(0,i.default)(r,"position")==="static"){r=r.offsetParent}return r||t.documentElement}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(195));function i(e,t){var r=(0,a.default)(e);if(t===undefined)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;if(r)r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop);else e.scrollLeft=t}e.exports=t["default"]},function(e,t,r){r(1022);e.exports=r(30).Array.isArray},function(e,t,r){var n=r(42);n(n.S,"Array",{isArray:r(606)})},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){function t(t,r,n,a,i,o){var s=a||"<<anonymous>>";var u=o||n;if(r[n]==null){if(t){return new Error("Required "+i+" `"+u+"` was not specified "+("in `"+s+"`."))}return null}for(var l=arguments.length,c=Array(l>6?l-6:0),f=6;f<l;f++){c[f-6]=arguments[f]}return e.apply(undefined,[r,n,s,i,u].concat(c))}var r=t.bind(null,false);r.isRequired=t.bind(null,true);return r}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(179);var s=r(41);var u=r(8);var l=r(37);var c=r(1025);var f=r(1027);var d=r(285);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.refresh=r.refresh.bind(r);r.editClassifications=r.editClassifications.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"classifications"},this.props.book&&a.createElement(a.Fragment,null,a.createElement("h2",null,this.props.book.title),a.createElement(d.default,{show:this.props.isFetching})),this.props.fetchError&&a.createElement(l.default,{error:this.props.fetchError}),this.props.book&&this.props.genreTree&&a.createElement(c.default,{book:this.props.book,genreTree:this.props.genreTree,disabled:this.props.isFetching,editClassifications:this.editClassifications}),this.props.classifications&&this.props.classifications.length>0&&a.createElement(f.default,{classifications:this.props.classifications}))};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.bookUrl){this.props.fetchGenreTree("/admin/genres");this.props.fetchClassifications(this.classificationsUrl())}};t.prototype.classificationsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/classifications"};t.prototype.editClassificationsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/edit_classifications"};t.prototype.refresh=function(){this.props.fetchBook(this.props.bookAdminUrl);this.props.fetchClassifications(this.classificationsUrl());this.props.refreshCatalog()};t.prototype.editClassifications=function(e){var t=this;return this.props.editClassifications(this.editClassificationsUrl(),e).then((function(e){t.refresh()}))};return t}(a.Component);t.Classifications=p;function h(e,t){return{bookAdminUrl:e.editor.book.url,genreTree:e.editor.classifications.genreTree,classifications:e.editor.classifications.classifications,isFetching:e.editor.classifications.isFetchingGenreTree||e.editor.classifications.isEditingClassifications||e.editor.classifications.isFetchingClassifications||e.editor.book.isFetching,fetchError:e.editor.classifications.fetchError}}function v(e,t){var r=new s.default({adapter:o.default});var n=new u.default(r,t.csrfToken);return{fetchBook:function(t){return e(n.fetchBookAdmin(t))},fetchGenreTree:function(t){return e(n.fetchGenreTree(t))},fetchClassifications:function(t){return e(n.fetchClassifications(t))},editClassifications:function(t,r){return e(n.editClassifications(t,r))}}}var m=i.connect(h,v)(p);t.default=m},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(18);var o=r(20);var s=r(190);var u=r(1026);var l=r(13);var c=r(118);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.errorMessageRef=a.createRef();r.audienceRef=a.createRef();r.targetAgeMinRef=a.createRef();r.targetAgeMaxRef=a.createRef();r.noFictionSelectedRef=a.createRef();r.fictionRef=a.createRef();r.nonfictionRef=a.createRef();r.state={audience:t.book&&t.book.audience?t.book.audience:"None",fiction:t.book?t.book.fiction:undefined,genres:[],error:null};r.handleAudienceChange=r.handleAudienceChange.bind(r);r.handleFictionChange=r.handleFictionChange.bind(r);r.addGenre=r.addGenre.bind(r);r.removeGenre=r.removeGenre.bind(r);r.submit=r.submit.bind(r);return r}t.prototype.render=function(){var e=this;var t=this.state,r=t.audience,n=t.fiction,i=t.error,f=t.genres;var d=this.genreOptions();var p=r==="None"||i&&i["audience"];var h=n===undefined||i&&i["fiction"];return a.createElement("fieldset",{className:"classifications-form"},a.createElement("legend",{className:"visuallyHidden"},"Classifications"),i&&a.createElement(c.Alert,{bsStyle:"danger",ref:this.errorMessageRef,tabIndex:-1},Object.keys(i).map((function(e){return a.createElement("p",{key:e},i[e])}))),a.createElement(l.Panel,{id:"classifications",headerText:"Classifications",collapsible:false,onEnter:this.submit,content:a.createElement("div",null,a.createElement(o.default,{elementType:"select",disabled:this.props.disabled,name:"audience",label:"Audience",ref:this.audienceRef,value:this.props.book.audience||"None",onChange:this.handleAudienceChange,clientError:p},(!r||r==="None")&&a.createElement("option",{value:"None","aria-selected":r==="None"},"None"),a.createElement("option",{value:"Children","aria-selected":r==="Children"},"Children"),a.createElement("option",{value:"Young Adult","aria-selected":r==="Young Adult"},"Young Adult"),a.createElement("option",{value:"Adult","aria-selected":r==="Adult"},"Adult"),a.createElement("option",{value:"Adults Only","aria-selected":r==="Adults Only"},"Adults Only"),a.createElement("option",{value:"All Ages","aria-selected":r==="All Ages"},"All Ages"),a.createElement("option",{value:"Research","aria-selected":r==="Research"},"Research")),this.shouldShowTargetAge()&&a.createElement("div",{className:"form-group target-age"},a.createElement("p",null,"Target Age Range"),a.createElement("div",{className:"form-inline"},a.createElement(o.default,{elementType:"input",ref:this.targetAgeMinRef,type:"text",disabled:this.props.disabled,name:"target_age_min","aria-label":"Enter a minimum target age",value:this.props.book.targetAgeRange[0]}),a.createElement("span",null,"  -  "),a.createElement(o.default,{elementType:"input",ref:this.targetAgeMaxRef,type:"text",disabled:this.props.disabled,name:"target_age_max","aria-label":"Enter a maximum target age",value:this.props.book.targetAgeRange[1]}))),a.createElement("div",{className:"form-group fiction-radio-input"},a.createElement("p",null,"Fiction Classification"),a.createElement("div",{className:"form-inline"},n===undefined&&a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"none",label:"None",ref:this.noFictionSelectedRef,checked:true,onChange:this.handleFictionChange,clientError:h}),a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"fiction",label:"Fiction",ref:this.fictionRef,checked:n!==undefined&&n,onChange:this.handleFictionChange,clientError:h}),a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"nonfiction",label:"Nonfiction",ref:this.nonfictionRef,checked:n!==undefined&&!n,onChange:this.handleFictionChange,clientError:h}))),a.createElement("div",{className:"form-group genre-group-form"},a.createElement("p",null,"Genres"),f.sort().map((function(t){return a.createElement(s.default,{key:t,disabled:e.props.disabled,onRemove:function(){return e.removeGenre(t)}},e.fullGenre(t))})),a.createElement("p",{className:"add-genre-form-title"},"Add Genre"),a.createElement(u.default,{disabled:this.props.disabled,genreOptions:d,bookGenres:f,addGenre:this.addGenre})))}),a.createElement(l.Button,{className:"left-align",callback:this.submit,content:"Save"}))};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.book){this.setState({audience:this.props.book.audience||"None"});this.setState({fiction:this.props.book.fiction});this.setState({genres:this.bookGenres(this.props.book)})}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.bookChanged(e.book)){this.setState({audience:e.book.audience});this.setState({fiction:e.book.fiction});this.setState({genres:this.bookGenres(e.book)})}};t.prototype.bookChanged=function(e){return e.audience!==this.props.book.audience||e.targetAgeRange[0]!==this.props.book.targetAgeRange[0]||e.targetAgeRange[1]!==this.props.book.targetAgeRange[1]||e.fiction!==this.props.book.fiction||e.categories.sort()!==this.props.book.categories.sort()};t.prototype.bookGenres=function(e){var t=this;if(!e||!e.categories||!this.props.genreTree){return[]}return e.categories.filter((function(e){return!!t.props.genreTree["Fiction"][e]||!!t.props.genreTree["Nonfiction"][e]}))};t.prototype.shouldShowTargetAge=function(){return this.state.audience==="Children"||this.state.audience==="Young Adult"};t.prototype.filterGenres=function(e,t){var r=this;if(t===void 0){t=true}var n=t?"Fiction":"Nonfiction";if(!this.props.genreTree[n]){return[]}return e.filter((function(e){return r.props.genreTree[n][e]}))};t.prototype.genreOptions=function(){var e=this;if(!this.props.book||!this.props.genreTree){return[]}var t=this.state.fiction?"Fiction":"Nonfiction";if(!this.props.genreTree[t]){return[]}return Object.keys(this.props.genreTree[t]).map((function(r){return e.props.genreTree[t][r]}))};t.prototype.fullGenre=function(e){for(var t=0,r=["Fiction","Nonfiction"];t<r.length;t++){var n=r[t];var a=this.props.genreTree[n][e];if(a){return a.parents.concat([a.name]).join(" > ")}}return e};t.prototype.validateAudience=function(e,t){if(t.indexOf("Erotica")!==-1&&e!=="Adults Only"){alert("Erotica genre requires Adults Only audience");return false}else{return true}};t.prototype.handleAudienceChange=function(){var e=this.audienceRef.current.getValue();if(this.validateAudience(e,this.state.genres)){this.setState({audience:e})}else{return false}};t.prototype.handleFictionChange=function(){var e=this.fictionRef.current.getChecked();var t=e?"Nonfiction":"Fiction";var r="Are you sure? This will clear any "+t+" genres you have chosen!";if(this.state.genres.length===0||window.confirm(r)){this.setState({fiction:e,genres:this.filterGenres(this.state.genres,e)})}};t.prototype.addGenre=function(e){if(this.validateAudience(this.state.audience,[e])){this.setState({genres:this.state.genres.concat([e])})}};t.prototype.removeGenre=function(e){this.setState({genres:this.state.genres.filter((function(t){return t!==e}))})};t.prototype.submit=function(){var e=this;var t=this.state,r=t.audience,n=t.fiction;var a=new window.FormData;var o={};if(!r||r==="None"){o["audience"]="No Audience classification selected."}if(n===undefined){o["fiction"]="No Fiction classification selected."}if(o["audience"]||o["fiction"]){this.setState({error:o});setTimeout((function(){if(e.errorMessageRef.current){i.findDOMNode(e.errorMessageRef.current).focus()}}),500);return}a.append("audience",r);if(this.shouldShowTargetAge()){a.append("target_age_min",this.targetAgeMinRef.current.getValue());a.append("target_age_max",this.targetAgeMaxRef.current.getValue())}a.append("fiction",n?"fiction":"nonfiction");this.state.genres.forEach((function(e){return a.append("genres",e)}));this.setState({error:null});return this.props.editClassifications(a)};return t}(a.Component);t.default=f},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var i=r(1);var o=r(13);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={genre:null,subgenre:null};r.handleGenreSelect=r.handleGenreSelect.bind(r);r.handleSubgenreSelect=r.handleSubgenreSelect.bind(r);r.addGenre=r.addGenre.bind(r);return r}t.prototype.render=function(){var e=this;var t=null;if(this.state.genre){var r=this.props.genreOptions.find((function(t){return t.name===e.state.genre}));if(r){t=r.subgenres.sort()}}var n=this.props.disabled?{disabled:true}:{};return i.createElement("div",{className:"genre-form"},i.createElement("div",{className:"form-inline"},i.createElement("select",a({name:"genre","aria-label":"Select one of the following genres",size:this.topLevelGenres().length,className:"form-control"},n),this.topLevelGenres().map((function(t){return i.createElement("option",{key:t.name,value:t.name,disabled:e.bookHasGenre(t.name),onClick:e.handleGenreSelect,"aria-selected":t.name===e.state.genre},t.name+(t.subgenres.length>0?" >":""))}))),t&&t.length>0&&i.createElement("select",a({name:"subgenre",size:t.length,className:"form-control subgenres"},n),t.map((function(t){return i.createElement("option",{key:t,value:t,disabled:e.bookHasGenre(t),onClick:e.handleSubgenreSelect,"aria-selected":t===e.state.subgenre},t)}))),this.state.genre&&i.createElement(o.Button,{className:"top-align",callback:this.addGenre,content:"Add"})))};t.prototype.topLevelGenres=function(){return this.props.genreOptions.filter((function(e){return e.parents.length===0}))};t.prototype.bookHasGenre=function(e){return this.props.bookGenres.indexOf(e)!==-1};t.prototype.handleGenreSelect=function(e){this.setState({genre:e.target.value,subgenre:null})};t.prototype.handleSubgenreSelect=function(e){this.setState({genre:this.state.genre,subgenre:e.target.value})};t.prototype.resetForm=function(){this.setState({genre:null,subgenre:null})};t.prototype.addGenre=function(){var e=this.state.subgenre||this.state.genre;this.props.addGenre(e);this.resetForm()};return t}(i.Component);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=this;return a.createElement("div",{className:"classifications-table"},a.createElement("h3",null,"Related Classifications"),a.createElement("table",{className:"table"},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",null,"Type"),a.createElement("th",null,"Name"),a.createElement("th",null,"Source"),a.createElement("th",null,"Weight"))),a.createElement("tbody",null,this.props.classifications.map((function(t,r){return a.createElement("tr",{key:t.source+":"+(t.name||r)},a.createElement("td",null,e.readableType(t.type)),a.createElement("td",null,t.name),a.createElement("td",null,t.source),a.createElement("td",null,t.weight))})))))};t.prototype.readableType=function(e){return e.replace(/http:\/\/librarysimplified\.org\/terms\/genres\/([^\/]+)\//,"$1")};return t}(a.Component);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(179);var s=r(41);var u=r(8);var l=r(37);var c=r(20);var f=r(13);var d=r(285);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.formContainerRef=a.createRef();r.imageFormRef=a.createRef();r.coverUrlRef=a.createRef();r.coverFileRef=a.createRef();r.titlePositionRef=a.createRef();r.rightsFormRef=a.createRef();r.rightStatusRef=a.createRef();r.refresh=r.refresh.bind(r);r.preview=r.preview.bind(r);r.save=r.save.bind(r);r.renderCoverForm=r.renderCoverForm.bind(r);return r}t.prototype.UNSAFE_componentWillMount=function(){if(this.props.clearPreview){this.props.clearPreview()}if(this.props.fetchRightsStatuses){this.props.fetchRightsStatuses()}};t.prototype.render=function(){return this.props.book&&a.createElement("div",null,a.createElement("h2",null,this.props.book.title),a.createElement(d.default,{show:this.props.isFetching}),a.createElement("div",null,a.createElement("h3",null,"Current cover:"),a.createElement("img",{src:this.props.book.coverUrl,className:"book-cover current-cover",alt:"Current book cover"})),a.createElement("div",{ref:this.formContainerRef,className:"cover-edit-form"},a.createElement("h3",null,"Change cover:"),a.createElement(f.Panel,{id:"cover-metadata",headerText:"Cover Metadata",openByDefault:true,content:this.renderCoverForm(),onEnter:this.save}),this.props.rightsStatuses&&a.createElement(f.Panel,{id:"rights",headerText:"Rights",openByDefault:true,onEnter:this.save,content:this.renderRightsForm()}),a.createElement(f.Button,{className:"left-align",content:"Save this cover",disabled:this.props.isFetching||!this.props.preview,callback:this.save})),this.props.fetchError&&a.createElement(l.default,{error:this.props.fetchError}))};t.prototype.renderCoverForm=function(){var e=this.titlePositionRef.current;var t=e&&e.getValue();return a.createElement("div",null,a.createElement("p",null,"Cover must be at least 600px x 900px and in PNG, JPG, or GIF format."),a.createElement(f.Form,{ref:this.imageFormRef,className:"edit-form",onSubmit:this.preview,buttonContent:"Preview",buttonClass:"top-align",errorText:this.props.previewFetchError&&a.createElement(l.default,{error:this.props.previewFetchError}),content:a.createElement("fieldset",{key:"cover-image"},a.createElement("legend",{className:"visuallyHidden"},"Cover Image"),a.createElement(c.default,{elementType:"input",type:"text",disabled:this.props.isFetching,name:"cover_url",label:"URL for cover image",description:this.props.book.coverUrl?"Current URL: "+this.props.book.coverUrl:"",ref:this.coverUrlRef,optionalText:false}),a.createElement(c.default,{elementType:"input",type:"file",disabled:this.props.isFetching,name:"cover_file",label:"Or upload cover image",accept:"image/*",ref:this.coverFileRef,optionalText:false}),a.createElement(c.default,{elementType:"select",disabled:this.props.isFetching,name:"title_position",label:"Title and Author Position",value:"none",ref:this.titlePositionRef},a.createElement("option",{value:"none","aria-selected":t==="none"},"None"),a.createElement("option",{value:"top","aria-selected":t==="top"},"Top"),a.createElement("option",{value:"center","aria-selected":t==="center"},"Center"),a.createElement("option",{value:"bottom","aria-selected":t==="bottom"},"Bottom")))}),a.createElement(d.default,{text:"Updating Preview",show:this.props.isFetchingPreview}),this.props.preview&&a.createElement("div",null,a.createElement("h4",null,"Preview:"),a.createElement("img",{src:this.props.preview,className:"book-cover preview-cover",alt:"Preview of new cover"})))};t.prototype.previewUrl=function(){return this.props.bookAdminUrl+"/preview_book_cover"};t.prototype.preview=function(e){var t=this.coverFileRef.current.getValue();var r=this.coverUrlRef.current.getValue();if(!t&&!r&&this.props.clearPreview){this.props.clearPreview()}if((t||r)&&this.props.fetchPreview){this.props.fetchPreview(this.previewUrl(),e)}};t.prototype.renderRightsForm=function(){var e=this;var t="http://librarysimplified.org/terms/rights-status/in-copyright";var r="http://librarysimplified.org/terms/rights-status/unknown";var n=this.rightStatusRef.current;var i=n&&n.getValue();return a.createElement(f.Form,{ref:this.rightsFormRef,onSubmit:this.save,className:"edit-form",withoutButton:true,content:a.createElement("fieldset",{key:"rights"},a.createElement("legend",{className:"visuallyHidden"},"Rights:"),a.createElement(c.default,{elementType:"select",disabled:this.props.isFetching,name:"rights_status",ref:this.rightStatusRef,label:"License"},Object.keys(this.props.rightsStatuses).map((function(t){var r=e.props.rightsStatuses[t];if(r.allows_derivatives){return a.createElement("option",{value:t,key:t,"aria-selected":i===t},r.name)}return null})),a.createElement("option",{value:t,"aria-selected":i===t},"In Copyright"),a.createElement("option",{value:r,"aria-selected":i===r},"Other")),a.createElement(c.default,{elementType:"textarea",disabled:this.props.isFetching,name:"rights_explanation",label:"Explanation of rights",optionalText:false}))})};t.prototype.refresh=function(){this.props.fetchBook(this.props.bookAdminUrl);this.props.refreshCatalog()};t.prototype.save=function(){var e=new window.FormData;var t=this.props.book&&this.props.book.changeCoverLink&&this.props.book.changeCoverLink.href;var r=this.imageFormRef.current.formRef.current;var n=new window.FormData(r);e.append("cover_file",n.get("cover_file"));e.append("cover_url",n.get("cover_url"));e.append("title_position",n.get("title_position"));var a=this.rightsFormRef.current.formRef.current;var i=new window.FormData(a);e.append("rights_status",i.get("rights_status"));e.append("rights_explanation",i.get("rights_explanation"));if(t&&this.props.preview&&this.props.editCover){this.props.editCover(t,e).then(this.refresh)}};return t}(a.Component);t.BookCoverEditor=p;function h(e,t){return{bookAdminUrl:e.editor.book.url,preview:e.editor.bookCoverPreview.data,rightsStatuses:e.editor.rightsStatuses.data,isFetching:e.editor.book.isFetching||e.editor.bookCover.isFetching||e.editor.rightsStatuses.isFetching||e.editor.bookCover.isEditing,fetchError:e.editor.book.fetchError||e.editor.bookCover.fetchError||e.editor.rightsStatuses.fetchError,isFetchingPreview:e.editor.bookCoverPreview.isFetching,previewFetchError:e.editor.bookCoverPreview.fetchError}}function v(e,t){var r=new s.default({adapter:o.default});var n=new u.default(r,t.csrfToken);return{fetchBook:function(t){return e(n.fetchBookAdmin(t))},fetchPreview:function(t,r){return e(n.fetchBookCoverPreview(t,r))},clearPreview:function(){return e(n.clearBookCoverPreview())},editCover:function(t,r){return e(n.editBookCover(t,r))},fetchRightsStatuses:function(){return e(n.fetchRightsStatuses())}}}var m=i.connect(h,v)(p);t.default=m},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(41);var s=r(8);var u=r(37);var l=r(197);var c=r(91);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addListRef=a.createRef();r.state={customLists:r.props.customListsForBook};r.refresh=r.refresh.bind(r);r.save=r.save.bind(r);r.makeURL=r.makeURL.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"custom-list-for-book"},this.props.book&&a.createElement("h2",null,this.props.book.title),a.createElement("h3",null,"Lists:"),this.props.fetchError&&a.createElement(u.default,{error:this.props.fetchError,tryAgain:this.refresh}),a.createElement("div",{className:"edit-form"},this.renderInputList(),this.renderLink()))};t.prototype.makeOption=function(e){return a.createElement("option",{value:e.name,key:e.id,"aria-selected":false},e.name)};t.prototype.renderLink=function(){return a.createElement("div",{key:"list-creator-link"},a.createElement(c.Link,{to:{pathname:"/admin/web/lists/"+this.props.library+"/create",state:{bookTitle:this.props.book&&this.props.book.title}}},"Create a new list"),a.createElement("p",null,"(The book title will be automatically copied and searched on the list creator page.)"))};t.prototype.renderInputList=function(){var e=this;var t=this.props.allCustomLists||[];if(t.length>0){return a.createElement(l.default,{key:"lists",ref:this.addListRef,setting:{menuTitle:"Select an existing list",type:"menu",format:"narrow",key:"lists-input",label:null,custom_lists:this.state.customLists,required:false,menuOptions:t.filter((function(e){return e.name})).map((function(t){return e.makeOption(t)})),urlBase:this.makeURL},title:"Current Lists",disabled:this.props.isFetching,value:this.props.customListsForBook&&this.props.customListsForBook.map((function(e){return e.name})),altValue:"This book is not currently on any lists.",onSubmit:this.save,onEmpty:"This book has been added to all the available lists."})}else{return a.createElement("p",null,"There are no available lists.")}};t.prototype.makeURL=function(e){var t=(this.props.allCustomLists||[]).find((function(t){return t.name===e}));if(t){return"/admin/web/lists/"+this.props.library+"/edit/"+t.id}};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.bookUrl){this.props.fetchCustomListsForBook(this.listsUrl());if(!this.props.allCustomLists){this.props.fetchAllCustomLists()}}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.props.bookUrl!==e.bookUrl){this.setState({customLists:e.customListsForBook})}};t.prototype.listsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/lists"};t.prototype.refresh=function(){this.props.fetchAllCustomLists();this.props.fetchCustomListsForBook(this.listsUrl());this.props.refreshCatalog()};t.prototype.save=function(){var e=this;var t=this.addListRef.current.getValue();var r=this.listsUrl();var n=new window.FormData;var a=[];t.map((function(t){var r=e.props.allCustomLists.find((function(e){return e.name===t}));a.push(r)}));n.append("lists",JSON.stringify(a));return this.props.editCustomListsForBook(r,n).then(this.refresh)};return t}(a.Component);t.CustomListsForBook=f;function d(e,t){return{allCustomLists:e.editor.customLists.data&&e.editor.customLists.data.custom_lists,customListsForBook:e.editor.customListsForBook.data&&e.editor.customListsForBook.data.custom_lists,isFetching:e.editor.customListsForBook.isFetching,fetchError:e.editor.customListsForBook.fetchError}}function p(e,t){var r=new o.default;var n=new s.default(r,t.csrfToken);return{fetchAllCustomLists:function(){return e(n.fetchCustomLists(t.library))},fetchCustomListsForBook:function(t){return e(n.fetchCustomListsForBook(t))},editCustomListsForBook:function(t,r){return e(n.editCustomListsForBook(t,r))}}}var h=i.connect(d,p)(f);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1389);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={value:r.props.value};r.handleChange=r.handleChange.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"color-picker"},a.createElement(i.CompactPicker,{color:this.state.value,triangle:"hide",width:"500px",onChangeComplete:this.handleChange}),a.createElement("input",{type:"hidden",name:this.props.setting.key,value:this.state.value}))};t.prototype.handleChange=function(e,t){this.setState({value:e.hex})};t.prototype.getValue=function(){return this.state.value};return t}(a.Component);t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.flattenNames=undefined;var n=r(55);var a=f(n);var i=r(286);var o=f(i);var s=r(144);var u=f(s);var l=r(611);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=t.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var r=[];(0,c.default)(t,(function(t){if(Array.isArray(t)){e(t).map((function(e){return r.push(e)}))}else if((0,u.default)(t)){(0,o.default)(t,(function(e,t){e===true&&r.push(t);r.push(t+"-"+e)}))}else if((0,a.default)(t)){r.push(t)}}));return r};t.default=d},function(e,t,r){var n=r(135);var a=Object.prototype;var i=a.hasOwnProperty;var o=a.toString;var s=n?n.toStringTag:undefined;function u(e){var t=i.call(e,s),r=e[s];try{e[s]=undefined;var n=true}catch(e){}var a=o.call(e);if(n){if(t){e[s]=r}else{delete e[s]}}return a}e.exports=u},function(e,t){var r=Object.prototype;var n=r.toString;function a(e){return n.call(e)}e.exports=a},function(e,t,r){var n=r(1035);var a=n();e.exports=a},function(e,t){function r(e){return function(t,r,n){var a=-1,i=Object(t),o=n(t),s=o.length;while(s--){var u=o[e?s:++a];if(r(i[u],u,i)===false){break}}return t}}e.exports=r},function(e,t){function r(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}e.exports=r},function(e,t,r){var n=r(84),a=r(61);var i="[object Arguments]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t){function r(){return false}e.exports=r},function(e,t,r){var n=r(84),a=r(291),i=r(61);var o="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",v="[object RegExp]",m="[object Set]",y="[object String]",g="[object WeakMap]";var b="[object ArrayBuffer]",A="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",S="[object Uint8Array]",O="[object Uint8ClampedArray]",M="[object Uint16Array]",D="[object Uint32Array]";var T={};T[_]=T[w]=T[E]=T[x]=T[k]=T[S]=T[O]=T[M]=T[D]=true;T[o]=T[s]=T[b]=T[u]=T[A]=T[l]=T[c]=T[f]=T[d]=T[p]=T[h]=T[v]=T[m]=T[y]=T[g]=false;function L(e){return i(e)&&a(e.length)&&!!T[n(e)]}e.exports=L},function(e,t,r){var n=r(293),a=r(1041);var i=Object.prototype;var o=i.hasOwnProperty;function s(e){if(!n(e)){return a(e)}var t=[];for(var r in Object(e)){if(o.call(e,r)&&r!="constructor"){t.push(r)}}return t}e.exports=s},function(e,t,r){var n=r(610);var a=n(Object.keys,Object);e.exports=a},function(e,t,r){var n=r(111);function a(e){return typeof e=="function"?e:n}e.exports=a},function(e,t,r){var n=r(1044),a=r(1080),i=r(622);function o(e){var t=a(e);if(t.length==1&&t[0][2]){return i(t[0][0],t[0][1])}return function(r){return r===e||n(r,e,t)}}e.exports=o},function(e,t,r){var n=r(295),a=r(298);var i=1,o=2;function s(e,t,r,s){var u=r.length,l=u,c=!s;if(e==null){return!l}e=Object(e);while(u--){var f=r[u];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e)){return false}}while(++u<l){f=r[u];var d=f[0],p=e[d],h=f[1];if(c&&f[2]){if(p===undefined&&!(d in e)){return false}}else{var v=new n;if(s){var m=s(p,h,d,e,t,v)}if(!(m===undefined?a(h,p,i|o,s,v):m)){return false}}}return true}e.exports=s},function(e,t){function r(){this.__data__=[];this.size=0}e.exports=r},function(e,t,r){var n=r(199);var a=Array.prototype;var i=a.splice;function o(e){var t=this.__data__,r=n(t,e);if(r<0){return false}var a=t.length-1;if(r==a){t.pop()}else{i.call(t,r,1)}--this.size;return true}e.exports=o},function(e,t,r){var n=r(199);function a(e){var t=this.__data__,r=n(t,e);return r<0?undefined:t[r][1]}e.exports=a},function(e,t,r){var n=r(199);function a(e){return n(this.__data__,e)>-1}e.exports=a},function(e,t,r){var n=r(199);function a(e,t){var r=this.__data__,a=n(r,e);if(a<0){++this.size;r.push([e,t])}else{r[a][1]=t}return this}e.exports=a},function(e,t,r){var n=r(198);function a(){this.__data__=new n;this.size=0}e.exports=a},function(e,t){function r(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}e.exports=r},function(e,t){function r(e){return this.__data__.get(e)}e.exports=r},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){var n=r(198),a=r(296),i=r(297);var o=200;function s(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!a||s.length<o-1){s.push([e,t]);this.size=++r.size;return this}r=this.__data__=new i(s)}r.set(e,t);this.size=r.size;return this}e.exports=s},function(e,t,r){var n=r(4),a=r(1056),i=r(27),o=r(612);var s=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var l=Function.prototype,c=Object.prototype;var f=l.toString;var d=c.hasOwnProperty;var p=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(e){if(!i(e)||a(e)){return false}var t=n(e)?p:u;return t.test(o(e))}e.exports=h},function(e,t,r){var n=r(1057);var a=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i(e){return!!a&&a in e}e.exports=i},function(e,t,r){var n=r(60);var a=n["__core-js_shared__"];e.exports=a},function(e,t){function r(e,t){return e==null?undefined:e[t]}e.exports=r},function(e,t,r){var n=r(1060),a=r(198),i=r(296);function o(){this.size=0;this.__data__={hash:new n,map:new(i||a),string:new n}}e.exports=o},function(e,t,r){var n=r(1061),a=r(1062),i=r(1063),o=r(1064),s=r(1065);function u(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n;u.prototype["delete"]=a;u.prototype.get=i;u.prototype.has=o;u.prototype.set=s;e.exports=u},function(e,t,r){var n=r(201);function a(){this.__data__=n?n(null):{};this.size=0}e.exports=a},function(e,t){function r(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}e.exports=r},function(e,t,r){var n=r(201);var a="__lodash_hash_undefined__";var i=Object.prototype;var o=i.hasOwnProperty;function s(e){var t=this.__data__;if(n){var r=t[e];return r===a?undefined:r}return o.call(t,e)?t[e]:undefined}e.exports=s},function(e,t,r){var n=r(201);var a=Object.prototype;var i=a.hasOwnProperty;function o(e){var t=this.__data__;return n?t[e]!==undefined:i.call(t,e)}e.exports=o},function(e,t,r){var n=r(201);var a="__lodash_hash_undefined__";function i(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=n&&t===undefined?a:t;return this}e.exports=i},function(e,t,r){var n=r(202);function a(e){var t=n(this,e)["delete"](e);this.size-=t?1:0;return t}e.exports=a},function(e,t){function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}e.exports=r},function(e,t,r){var n=r(202);function a(e){return n(this,e).get(e)}e.exports=a},function(e,t,r){var n=r(202);function a(e){return n(this,e).has(e)}e.exports=a},function(e,t,r){var n=r(202);function a(e,t){var r=n(this,e),a=r.size;r.set(e,t);this.size+=r.size==a?0:1;return this}e.exports=a},function(e,t,r){var n=r(295),a=r(613),i=r(1074),o=r(1076),s=r(203),u=r(12),l=r(289),c=r(609);var f=1;var d="[object Arguments]",p="[object Array]",h="[object Object]";var v=Object.prototype;var m=v.hasOwnProperty;function y(e,t,r,v,y,g){var b=u(e),A=u(t),_=b?p:s(e),w=A?p:s(t);_=_==d?h:_;w=w==d?h:w;var E=_==h,x=w==h,k=_==w;if(k&&l(e)){if(!l(t)){return false}b=true;E=false}if(k&&!E){g||(g=new n);return b||c(e)?a(e,t,r,v,y,g):i(e,t,_,r,v,y,g)}if(!(r&f)){var S=E&&m.call(e,"__wrapped__"),O=x&&m.call(t,"__wrapped__");if(S||O){var M=S?e.value():e,D=O?t.value():t;g||(g=new n);return y(M,D,r,v,g)}}if(!k){return false}g||(g=new n);return o(e,t,r,v,y,g)}e.exports=y},function(e,t){var r="__lodash_hash_undefined__";function n(e){this.__data__.set(e,r);return this}e.exports=n},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){var n=r(135),a=r(615),i=r(200),o=r(613),s=r(1075),u=r(301);var l=1,c=2;var f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",v="[object Number]",m="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]";var A="[object ArrayBuffer]",_="[object DataView]";var w=n?n.prototype:undefined,E=w?w.valueOf:undefined;function x(e,t,r,n,w,x,k){switch(r){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case A:if(e.byteLength!=t.byteLength||!x(new a(e),new a(t))){return false}return true;case f:case d:case v:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case h:var S=s;case y:var O=n&l;S||(S=u);if(e.size!=t.size&&!O){return false}var M=k.get(e);if(M){return M==t}n|=c;k.set(e,t);var D=o(S(e),S(t),n,w,x,k);k["delete"](e);return D;case b:if(E){return E.call(e)==E.call(t)}}return false}e.exports=x},function(e,t){function r(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}e.exports=r},function(e,t,r){var n=r(616);var a=1;var i=Object.prototype;var o=i.hasOwnProperty;function s(e,t,r,i,s,u){var l=r&a,c=n(e),f=c.length,d=n(t),p=d.length;if(f!=p&&!l){return false}var h=f;while(h--){var v=c[h];if(!(l?v in t:o.call(t,v))){return false}}var m=u.get(e);var y=u.get(t);if(m&&y){return m==t&&y==e}var g=true;u.set(e,t);u.set(t,e);var b=l;while(++h<f){v=c[h];var A=e[v],_=t[v];if(i){var w=l?i(_,A,v,t,e,u):i(A,_,v,e,t,u)}if(!(w===undefined?A===_||s(A,_,r,i,u):w)){g=false;break}b||(b=v=="constructor")}if(g&&!b){var E=e.constructor,x=t.constructor;if(E!=x&&("constructor"in e&&"constructor"in t)&&!(typeof E=="function"&&E instanceof E&&typeof x=="function"&&x instanceof x)){g=false}}u["delete"](e);u["delete"](t);return g}e.exports=s},function(e,t,r){var n=r(112),a=r(60);var i=n(a,"DataView");e.exports=i},function(e,t,r){var n=r(112),a=r(60);var i=n(a,"Promise");e.exports=i},function(e,t,r){var n=r(112),a=r(60);var i=n(a,"WeakMap");e.exports=i},function(e,t,r){var n=r(621),a=r(136);function i(e){var t=a(e),r=t.length;while(r--){var i=t[r],o=e[i];t[r]=[i,o,n(o)]}return t}e.exports=i},function(e,t,r){var n=r(298),a=r(33),i=r(1087),o=r(304),s=r(621),u=r(622),l=r(161);var c=1,f=2;function d(e,t){if(o(e)&&s(t)){return u(l(e),t)}return function(r){var o=a(r,e);return o===undefined&&o===t?i(r,e):n(t,o,c|f)}}e.exports=d},function(e,t,r){var n=r(1083);var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var i=/\\(\\)?/g;var o=n((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(a,(function(e,r,n,a){t.push(n?a.replace(i,"$1"):r||e)}));return t}));e.exports=o},function(e,t,r){var n=r(1084);var a=500;function i(e){var t=n(e,(function(e){if(r.size===a){r.clear()}return e}));var r=t.cache;return t}e.exports=i},function(e,t,r){var n=r(297);var a="Expected a function";function i(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(a)}var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a)){return i.get(a)}var o=e.apply(this,n);r.cache=i.set(a,o)||i;return o};r.cache=new(i.Cache||n);return r}i.Cache=n;e.exports=i},function(e,t,r){var n=r(1086);function a(e){return e==null?"":n(e)}e.exports=a},function(e,t,r){var n=r(135),a=r(137),i=r(12),o=r(138);var s=1/0;var u=n?n.prototype:undefined,l=u?u.toString:undefined;function c(e){if(typeof e=="string"){return e}if(i(e)){return a(e,c)+""}if(o(e)){return l?l.call(e):""}var t=e+"";return t=="0"&&1/e==-s?"-0":t}e.exports=c},function(e,t,r){var n=r(1088),a=r(1089);function i(e,t){return e!=null&&a(e,t,n)}e.exports=i},function(e,t){function r(e,t){return e!=null&&t in Object(e)}e.exports=r},function(e,t,r){var n=r(205),a=r(288),i=r(12),o=r(290),s=r(291),u=r(161);function l(e,t,r){t=n(t,e);var l=-1,c=t.length,f=false;while(++l<c){var d=u(t[l]);if(!(f=e!=null&&r(e,d))){break}e=e[d]}if(f||++l!=c){return f}c=e==null?0:e.length;return!!c&&s(c)&&o(d,c)&&(i(e)||a(e))}e.exports=l},function(e,t,r){var n=r(1091),a=r(1092),i=r(304),o=r(161);function s(e){return i(e)?n(o(e)):a(e)}e.exports=s},function(e,t){function r(e){return function(t){return t==null?undefined:t[e]}}e.exports=r},function(e,t,r){var n=r(204);function a(e){return function(t){return n(t,e)}}e.exports=a},function(e,t,r){var n=r(110);function a(e,t){return function(r,a){if(r==null){return r}if(!n(r)){return e(r,a)}var i=r.length,o=t?i:-1,s=Object(r);while(t?o--:++o<i){if(a(s[o],o,s)===false){break}}return r}}e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeClasses=undefined;var n=r(286);var a=u(n);var i=r(1095);var o=u(i);var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function u(e){return e&&e.__esModule?e:{default:e}}var l=t.mergeClasses=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=t.default&&(0,o.default)(t.default)||{};r.map((function(e){var r=t[e];if(r){(0,a.default)(r,(function(e,t){if(!n[t]){n[t]={}}n[t]=s({},n[t],r[t])}))}return e}));return n};t.default=l},function(e,t,r){var n=r(624);var a=1,i=4;function o(e){return n(e,a|i)}e.exports=o},function(e,t){function r(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}e.exports=r},function(e,t,r){var n=r(162),a=r(136);function i(e,t){return e&&n(t,a(t),e)}e.exports=i},function(e,t,r){var n=r(162),a=r(306);function i(e,t){return e&&n(t,a(t),e)}e.exports=i},function(e,t,r){var n=r(27),a=r(293),i=r(1100);var o=Object.prototype;var s=o.hasOwnProperty;function u(e){if(!n(e)){return i(e)}var t=a(e),r=[];for(var o in e){if(!(o=="constructor"&&(t||!s.call(e,o)))){r.push(o)}}return r}e.exports=u},function(e,t){function r(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}e.exports=r},function(e,t,r){(function(e){var n=r(60);var a=true&&t&&!t.nodeType&&t;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o?n.Buffer:undefined,u=s?s.allocUnsafe:undefined;function l(e,t){if(t){return e.slice()}var r=e.length,n=u?u(r):new e.constructor(r);e.copy(n);return n}e.exports=l}).call(this,r(48)(e))},function(e,t){function r(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n){t[r]=e[r]}return t}e.exports=r},function(e,t,r){var n=r(162),a=r(303);function i(e,t){return n(e,a(e),t)}e.exports=i},function(e,t,r){var n=r(162),a=r(627);function i(e,t){return n(e,a(e),t)}e.exports=i},function(e,t){var r=Object.prototype;var n=r.hasOwnProperty;function a(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&n.call(e,"index")){r.index=e.index;r.input=e.input}return r}e.exports=a},function(e,t,r){var n=r(307),a=r(1107),i=r(1108),o=r(1109),s=r(1110);var u="[object Boolean]",l="[object Date]",c="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",h="[object String]",v="[object Symbol]";var m="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",A="[object Int8Array]",_="[object Int16Array]",w="[object Int32Array]",E="[object Uint8Array]",x="[object Uint8ClampedArray]",k="[object Uint16Array]",S="[object Uint32Array]";function O(e,t,r){var O=e.constructor;switch(t){case m:return n(e);case u:case l:return new O(+e);case y:return a(e,r);case g:case b:case A:case _:case w:case E:case x:case k:case S:return s(e,r);case c:return new O;case f:case h:return new O(e);case d:return i(e);case p:return new O;case v:return o(e)}}e.exports=O},function(e,t,r){var n=r(307);function a(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}e.exports=a},function(e,t){var r=/\w*$/;function n(e){var t=new e.constructor(e.source,r.exec(e));t.lastIndex=e.lastIndex;return t}e.exports=n},function(e,t,r){var n=r(135);var a=n?n.prototype:undefined,i=a?a.valueOf:undefined;function o(e){return i?Object(i.call(e)):{}}e.exports=o},function(e,t,r){var n=r(307);function a(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}e.exports=a},function(e,t,r){var n=r(1112),a=r(294),i=r(293);function o(e){return typeof e.constructor=="function"&&!i(e)?n(a(e)):{}}e.exports=o},function(e,t,r){var n=r(27);var a=Object.create;var i=function(){function e(){}return function(t){if(!n(t)){return{}}if(a){return a(t)}e.prototype=t;var r=new e;e.prototype=undefined;return r}}();e.exports=i},function(e,t,r){var n=r(1114),a=r(160),i=r(292);var o=i&&i.isMap;var s=o?a(o):n;e.exports=s},function(e,t,r){var n=r(203),a=r(61);var i="[object Map]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t,r){var n=r(1116),a=r(160),i=r(292);var o=i&&i.isSet;var s=o?a(o):n;e.exports=s},function(e,t,r){var n=r(203),a=r(61);var i="[object Set]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.autoprefix=undefined;var n=r(286);var a=o(n);var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function o(e){return e&&e.__esModule?e:{default:e}}var s={borderRadius:function e(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function e(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function e(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function e(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function e(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function e(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function e(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function e(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function e(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function e(t,r){var n=r[t];if(n){return n}return{extend:t}}};var u=t.autoprefix=function e(t){var r={};(0,a.default)(t,(function(e,t){var n={};(0,a.default)(e,(function(e,t){var r=s[t];if(r){n=i({},n,r(e))}else{n[t]=e}}));r[t]=n}));return r};t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hover=undefined;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function u(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=t.hover=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"span";return function(e){l(a,e);function a(){var e;var o,l,c;s(this,a);for(var f=arguments.length,d=Array(f),p=0;p<f;p++){d[p]=arguments[p]}return c=(o=(l=u(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(d))),l),l.state={hover:false},l.handleMouseOver=function(){return l.setState({hover:true})},l.handleMouseOut=function(){return l.setState({hover:false})},l.render=function(){return i.default.createElement(r,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},i.default.createElement(t,n({},l.props,l.state)))},o),u(l,c)}return a}(i.default.Component)};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.active=undefined;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function u(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=t.active=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"span";return function(e){l(a,e);function a(){var e;var o,l,c;s(this,a);for(var f=arguments.length,d=Array(f),p=0;p<f;p++){d[p]=arguments[p]}return c=(o=(l=u(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(d))),l),l.state={active:false},l.handleMouseDown=function(){return l.setState({active:true})},l.handleMouseUp=function(){return l.setState({active:false})},l.render=function(){return i.default.createElement(r,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},i.default.createElement(t,n({},l.props,l.state)))},o),u(l,c)}return a}(i.default.Component)};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function e(t,r){var n={};var a=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;n[t]=r};t===0&&a("first-child");t===r-1&&a("last-child");(t===0||t%2===0)&&a("even");Math.abs(t%2)===1&&a("odd");a("nth-child",t);return n};t.default=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};var i=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var o=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});var s=r(1);var u=r(190);var l=r(577);var c=r(629);var f=r(127);var d=r(13);var p=r(105);var h=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addListItemRef=s.createRef();var n=t.setting.type==="menu";r.state={listItems:t.value||t.setting.default||[],newItem:"",options:n&&r.filterMenu()};r.updateNewItem=r.updateNewItem.bind(r);r.addListItem=r.addListItem.bind(r);r.removeListItem=r.removeListItem.bind(r);r.clear=r.clear.bind(r);r.filterMenu=r.filterMenu.bind(r);r.capitalize=r.capitalize.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.state.listItems&&e.value&&!p.isEqual(this.state.listItems,e.value)){this.setState({listItems:e.value})}};t.prototype.componentDidUpdate=function(e,t){if(t.listItems&&this.state.listItems&&!p.isEqual(t.listItems,this.state.listItems)){this.props.setting.format==="narrow"&&this.setState({options:this.filterMenu()})}};t.prototype.render=function(){var e=this.props.setting;var t=!this.state.options||this.state.options.length>0;var r=this.state.listItems&&this.state.listItems.length>0;var n;var a=this.props.disabled||this.props.disableButton||e.type!=="menu"&&!this.state.newItem.length;if(e.format==="language-code"){n=s.createElement(l.default,{disabled:this.props.disabled,ref:this.addListItemRef,name:e.key,languages:this.props.additionalData,onChange:this.updateNewItem})}else if(e.type==="menu"){n=this.renderMenu(e)}else{n=this.props.createEditableInput(e,{value:null,disabled:this.props.disabled,onChange:this.updateNewItem,ref:this.addListItemRef,label:null,description:null,readOnly:this.props.readOnly})}return s.createElement("div",{className:"input-list"},this.props.labelAndDescription&&this.props.labelAndDescription(e),this.props.altValue&&!r&&s.createElement("span",null,this.props.altValue),this.props.title&&r&&s.createElement("h4",null,this.props.title),r&&this.renderList(this.state.listItems,e),s.createElement("div",{className:"add-list-item-container"},s.createElement("span",{className:"add-list-item"},n),t&&s.createElement(d.Button,{type:"button",className:"add-list-item inline small bottom-align",callback:this.addListItem,content:"Add",disabled:a})))};t.prototype.renderList=function(e,t){var r=this;return s.createElement("ul",{className:"input-list-ul"},e.filter((function(e){return e})).map((function(e){var n=typeof e==="string"?e:Object.keys(e)[0];return r.renderListItem(t,n,e)})))};t.prototype.renderListItem=function(e,t,r){var n=this;var a;var i;var o=e.options?(a=e.options.find((function(e){return e.key===t})))===null||a===void 0?void 0:a.label:t;if(e.format==="language-code"){i=s.createElement(l.default,{disabled:this.props.disabled,value:t,name:e.key,languages:this.props.additionalData})}else if(e.urlBase){i=s.createElement("a",{href:e.urlBase(r)},r)}else{i=this.props.createEditableInput(e,{type:"text",description:null,disabled:this.props.disabled,value:o,name:e.type==="menu"?e.key+"_"+t:e.key,label:null,extraContent:this.renderToolTip(r,e.format),optionalText:false,readOnly:this.props.readOnly})}var c=this.props.disabled||this.props.disableButton;return s.createElement("li",{className:"input-list-item",key:t},s.createElement(u.default,{disabled:c,onRemove:function(){return n.removeListItem(r)}},i))};t.prototype.renderMenu=function(e){var t=this.state.options;if(t&&t.length>0){return this.props.createEditableInput(e,{elementType:"select",name:e.key+"_menu",value:e.key,label:e.menuTitle,required:e.required,ref:this.addListItemRef,optionalText:!e.required,description:!e.required?"(Optional) ":""},t)}else if(this.props.onEmpty){return this.props.onEmpty}};t.prototype.renderToolTip=function(e,t){var r={geographic:s.createElement(f.LocatorIcon,null)};if(typeof e==="object"){return s.createElement("span",{className:"input-group-addon"},s.createElement(c.default,{trigger:r[t],direction:"point-right",text:Object.values(e)[0].toString()}))}return null};t.prototype.filterMenu=function(){var e=this.props.setting.menuOptions;if(!e){try{e=this.props.setting.options.map((function(e){return s.createElement("option",{key:e.key,value:e.key,"aria-selected":false},e.label)}))}catch(e){return}}var t=this.state?this.state.listItems:this.props.value||this.props.setting.default;var r=t?e.filter((function(e){return t.indexOf(e.props.value)<0})):[];return r};t.prototype.updateNewItem=function(){var e=this.props.setting.format==="language-code"?this.addListItemRef.current.autocompleteRef.current:this.addListItemRef.current;this.setState(a(a({},this.state),{newItem:e.getValue()}))};t.prototype.removeListItem=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.setState({listItems:this.state.listItems.filter((function(t){return t!==e}))})];case 1:t.sent();this.props.onChange&&this.props.onChange(this.state);if(!this.props.onSubmit)return[3,3];return[4,this.props.onSubmit()];case 2:t.sent();t.label=3;case 3:return[2]}}))}))};t.prototype.addListItem=function(){return i(this,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:e=this.props.setting.format==="language-code"?this.addListItemRef.current.autocompleteRef.current:this.addListItemRef.current;t=this.props.setting.capitalize?this.capitalize(e.getValue()):e.getValue();return[4,this.setState({listItems:this.state.listItems.concat(t),newItem:""})];case 1:r.sent();this.props.onChange&&this.props.onChange(this.state);if(!this.props.onSubmit)return[3,3];return[4,this.props.onSubmit()];case 2:r.sent();r.label=3;case 3:if(this.props.setting.type!=="menu"){e.clear()}return[2]}}))}))};t.prototype.capitalize=function(e){var t=this;return e.split(" ").map((function(e){return e.length===2&&t.props.setting.format==="geographic"?e.toUpperCase():p.formatString(e)})).join(" ")};t.prototype.getValue=function(){return this.state.listItems};t.prototype.clear=function(){this.setState({listItems:[]})};return t}(s.Component);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(397);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.fieldNames=function(){return["Published","Publisher","Audience","Categories","Distributed By"]};t.prototype.fields=function(){var t=e.prototype.fields.call(this);var r=t.findIndex((function(e){return e.name==="Categories"}));t[r].value=this.categories();t.push({name:"Audience",value:this.audience()});t.push({name:"Distributed By",value:this.distributor()});return t};t.prototype.audience=function(){if(!this.props.book){return null}var e=this.props.book.raw.category;if(!e){return null}var t=e.find((function(e){return e["$"]["scheme"]&&e["$"]["scheme"]["value"]==="http://schema.org/audience"}));if(!t){return null}var r=t["$"]["label"]&&t["$"]["label"]["value"];if(["Adult","Adults Only"].indexOf(r)!==-1){return r}var n=e.find((function(e){return e["$"]["scheme"]&&e["$"]["scheme"]["value"]==="http://schema.org/typicalAgeRange"}));if(n){var a=n["$"]["label"]&&n["$"]["label"]["value"];r+=" (age "+a+")"}return r};t.prototype.categories=function(){if(!this.props.book){return null}var e=["http://schema.org/audience","http://schema.org/typicalAgeRange"];var t="http://librarysimplified.org/terms/fiction/";var r=this.props.book.raw.category||[];var n=r.filter((function(r){return r["$"]["label"]&&r["$"]["scheme"]&&e.concat([t]).indexOf(r["$"]["scheme"]["value"])===-1})).map((function(e){return e["$"]["label"]["value"]}));if(!n.length){n=r.filter((function(e){return e["$"]["label"]&&e["$"]["scheme"]&&e["$"]["scheme"]["value"]===t})).map((function(e){return e["$"]["label"]["value"]}))}return n.length>0?n.join(", "):null};t.prototype.distributor=function(){if(!this.props.book){return null}var e=this.props.book.raw["bibframe:distribution"];if(!e||e.length<1){return null}var t=e[0]["$"]["bibframe:ProviderName"];if(!t){return null}return t.value};t.prototype.circulationLinks=function(){return null};return t}(a.default);t.default=i},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjQuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1NDkuNyAyODIuNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTQ5LjcgMjgyLjc7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojM0RCQUU4O30KCS5zdDF7ZmlsbDojMjEyNkFEO30KCS5zdDJ7ZmlsbDojRkM4NTQyO30KCS5zdDN7ZmlsbDojRkEzNjFDO30KPC9zdHlsZT4KPGc+Cgk8cG9seWdvbiBjbGFzcz0ic3QwIiBwb2ludHM9Ijc4LjcsMTEwLjIgNzguNywxNjggMTU3LjMsMTEyLjkgMTU3LjMsNTUuMSAJIi8+Cgk8cG9seWdvbiBjbGFzcz0ic3QxIiBwb2ludHM9IjE1Ny4zLDU1LjEgMTU3LjMsNTUuMSA3OC43LDAgNzguNyw2Ny44IDEwOSw4OSAJIi8+Cgk8cG9seWdvbiBjbGFzcz0ic3QyIiBwb2ludHM9IjAsMTc3LjQgMjQuNCwxNjYgNDguNywyMTEuNSA0OC43LDg5LjIgMCw1NS4xIAkiLz4KCTxwb2x5Z29uIGNsYXNzPSJzdDMiIHBvaW50cz0iMCw1NS4xIDAuMiw1NS4yIDQ4LjcsODkuMiA3OC43LDY3LjggNzguNywwIAkiLz4KCTxnPgoJCTxwYXRoIGQ9Ik0yMjMuOSw4MC4zYzItMS41LDIuOS0zLjgsMi45LTYuN2MwLTIuOS0xLTUtMi45LTYuNGMtMS45LTEuNC00LjUtMi4xLTcuOC0yLjFoLTguOHYxNy42aDguNwoJCQlDMjE5LjMsODIuNiwyMjEuOSw4MS44LDIyMy45LDgwLjMgTTIyOC41LDU3LjVjMy4yLDEuNiw1LjcsMy43LDcuNSw2LjVjMS43LDIuOCwyLjYsNS45LDIuNiw5LjNjMCwzLjUtMSw2LjgtMi45LDkuNwoJCQljLTEuOSwyLjktNC41LDUuMi03LjgsNi44Yy0zLjMsMS43LTcsMi41LTExLDIuNWgtOS41djIwLjRoLTExLjhWNTUuMkgyMTdDMjIxLjQsNTUuMiwyMjUuMiw1NiwyMjguNSw1Ny41Ii8+CgkJPHBhdGggZD0iTTI2OS4zLDkwLjVjLTAuNSwxLTEuNSwxLjktMi44LDIuN2MtMS4zLDAuOC0zLjIsMS40LTUuOCwyYy0yLjYsMC41LTQuNSwxLjItNS43LDIuMWMtMS4yLDAuOS0xLjgsMi0xLjgsMy40CgkJCWMwLDEuNCwwLjYsMi42LDEuNywzLjZjMS4xLDAuOSwyLjgsMS40LDQuOSwxLjRjMi44LDAsNS4xLTEsNi44LTIuOWMxLjctMS45LDIuNi01LjEsMi42LTkuNVY5MC41eiBNMjgxLDExMi43aC0xMS4zCgkJCWMtMC4zLTEuMy0wLjQtMi42LTAuNC0zLjd2LTIuM2gtMC4xYy0yLjYsNC43LTYuOCw3LjEtMTIuNyw3LjFjLTIuOSwwLTUuNS0wLjUtNy43LTEuNmMtMi4yLTEtMy45LTIuNS01LjItNC40CgkJCWMtMS4yLTEuOS0xLjgtNC4xLTEuOC02LjVjMC0zLjQsMS4xLTYuMSwzLjItOGMyLjEtMS45LDQuNS0zLjIsNy0zLjhjMi41LTAuNyw1LjQtMS4yLDguOC0xLjdjMi4xLTAuMywzLjctMC42LDQuOC0wLjgKCQkJYzEuMS0wLjMsMS45LTAuOCwyLjUtMS40YzAuNi0wLjYsMC45LTEuNSwwLjktMi43YzAtMS42LTAuNi0yLjgtMS45LTMuNmMtMS4zLTAuOS0zLTEuMy01LjItMS4zYy0xLjksMC0zLjYsMC41LTQuOSwxLjYKCQkJYy0xLjMsMS0yLjMsMi41LTIuOCw0LjNoLTEwLjZjMC40LTIuNSwxLjQtNC44LDIuOS02LjljMS41LTIuMSwzLjYtMy45LDYuMi01LjJjMi42LTEuMyw1LjYtMiw5LjEtMmM2LDAsMTAuNiwxLjYsMTMuNyw0LjcKCQkJYzMuMSwzLjEsNC42LDcuNiw0LjYsMTMuNFYxMDJDMjgwLjIsMTA2LjgsMjgwLjUsMTEwLjMsMjgxLDExMi43Ii8+Cgk8L2c+Cgk8cmVjdCB4PSIyODkuMiIgeT0iNTUuMiIgd2lkdGg9IjExLjQiIGhlaWdodD0iNTcuNSIvPgoJPGc+CgkJPHBhdGggZD0iTTMzNS4zLDkwLjVjLTAuNSwxLTEuNSwxLjktMi44LDIuN2MtMS4zLDAuOC0zLjIsMS40LTUuOCwyYy0yLjYsMC41LTQuNSwxLjItNS43LDIuMWMtMS4yLDAuOS0xLjgsMi0xLjgsMy40CgkJCWMwLDEuNCwwLjYsMi42LDEuNywzLjZjMS4xLDAuOSwyLjgsMS40LDQuOSwxLjRjMi44LDAsNS4xLTEsNi44LTIuOWMxLjctMS45LDIuNi01LjEsMi42LTkuNVY5MC41eiBNMzQ3LDExMi43aC0xMS4zCgkJCWMtMC4zLTEuMy0wLjQtMi42LTAuNC0zLjd2LTIuM2gtMC4xYy0yLjYsNC43LTYuOCw3LjEtMTIuNyw3LjFjLTIuOSwwLTUuNS0wLjUtNy43LTEuNmMtMi4yLTEtMy45LTIuNS01LjItNC40CgkJCWMtMS4yLTEuOS0xLjgtNC4xLTEuOC02LjVjMC0zLjQsMS4xLTYuMSwzLjItOGMyLjEtMS45LDQuNS0zLjIsNy0zLjhjMi41LTAuNyw1LjQtMS4yLDguOC0xLjdjMi4xLTAuMywzLjctMC42LDQuOC0wLjgKCQkJYzEuMS0wLjMsMS45LTAuOCwyLjUtMS40YzAuNi0wLjYsMC45LTEuNSwwLjktMi43YzAtMS42LTAuNi0yLjgtMS45LTMuNmMtMS4zLTAuOS0zLTEuMy01LjItMS4zYy0xLjksMC0zLjYsMC41LTQuOSwxLjYKCQkJYy0xLjMsMS0yLjMsMi41LTIuOCw0LjNoLTEwLjZjMC40LTIuNSwxLjQtNC44LDIuOS02LjljMS41LTIuMSwzLjYtMy45LDYuMi01LjJjMi42LTEuMyw1LjYtMiw5LjEtMmM2LDAsMTAuNiwxLjYsMTMuNyw0LjcKCQkJYzMuMSwzLjEsNC42LDcuNiw0LjYsMTMuNFYxMDJDMzQ2LjIsMTA2LjgsMzQ2LjUsMTEwLjMsMzQ3LDExMi43Ii8+CgkJPHBhdGggZD0iTTM5MS40LDEwNi44Yy0xLjksMi40LTQuMiw0LjEtNyw1LjRjLTIuOCwxLjItNS45LDEuOC05LjIsMS44Yy00LjEsMC03LjgtMC45LTExLjMtMi43Yy0zLjQtMS44LTYuMi00LjMtOC4yLTcuNwoJCQljLTItMy40LTMuMS03LjMtMy4xLTExLjhjMC00LjUsMS04LjQsMy4xLTExLjhjMi0zLjMsNC44LTUuOSw4LjItNy42YzMuNC0xLjcsNy4yLTIuNiwxMS4zLTIuNmMzLjMsMCw2LjQsMC42LDkuMiwxLjgKCQkJYzIuOCwxLjIsNS4xLDMsNyw1LjJjMS44LDIuMywzLDUsMy41LDguMWgtMTAuNmMtMC42LTIuMS0xLjgtMy43LTMuNC00LjdjLTEuNi0xLTMuNS0xLjYtNS43LTEuNmMtMi4zLDAtNC4yLDAuNi01LjksMS43CgkJCWMtMS43LDEuMi0zLDIuNy0zLjksNC44Yy0wLjksMi0xLjQsNC4zLTEuNCw2LjdjMCwyLjUsMC41LDQuNywxLjQsNi43YzAuOSwyLDIuMiwzLjYsMy45LDQuOGMxLjcsMS4yLDMuNywxLjcsNS45LDEuNwoJCQljMi4zLDAsNC4yLTAuNiw1LjktMS43YzEuNy0xLjEsMi44LTIuOCwzLjQtNS4xSDM5NUMzOTQuNCwxMDEuNiwzOTMuMiwxMDQuNSwzOTEuNCwxMDYuOCIvPgoJCTxwYXRoIGQ9Ik00MzEuNCw4Ny43Yy0wLjMtMi42LTEuMy00LjktMy02LjdjLTEuNy0xLjgtNC0yLjctNy0yLjdjLTIuOCwwLTUuMiwwLjktNy4xLDIuNmMtMS45LDEuNy0zLjEsNC0zLjUsNi44SDQzMS40egoJCQkgTTQ0Mi4yLDk1LjFoLTMxLjZjMC4zLDIsMC45LDMuNywxLjksNS4yYzEsMS41LDIuMiwyLjcsMy43LDMuNWMxLjUsMC44LDMuMiwxLjIsNS4xLDEuMmMyLDAsMy44LTAuNCw1LjQtMS4xCgkJCWMxLjYtMC44LDIuNy0xLjksMy41LTMuNGgxMS40Yy0wLjksMi43LTIuMiw1LjEtNC4xLDcuMmMtMS45LDItNC4yLDMuNi03LDQuOGMtMi44LDEuMS01LjgsMS43LTkuMiwxLjdjLTQuMiwwLTcuOS0wLjktMTEuMi0yLjgKCQkJYy0zLjMtMS45LTUuOC00LjUtNy43LTcuOWMtMS44LTMuNC0yLjctNy4zLTIuNy0xMS42YzAtNC4yLDAuOS04LDIuOC0xMS4zYzEuOS0zLjQsNC41LTYsNy44LTcuOWMzLjMtMS45LDctMi45LDExLjItMi45CgkJCWM0LjUsMCw4LjIsMSwxMS40LDNjMy4xLDIsNS40LDQuOCw3LDguMmMxLjYsMy41LDIuNCw3LjQsMi40LDExLjhDNDQyLjMsOTMuNyw0NDIuMyw5NC41LDQ0Mi4yLDk1LjEiLz4KCQk8cGF0aCBkPSJNMjQzLjMsMTgxLjljLTIuMywyLjctNS4yLDQuOC04LjgsNi40Yy0zLjYsMS42LTcuNywyLjQtMTIuMiwyLjRjLTYuMSwwLTExLjMtMS4zLTE1LjctNGMtNC40LTIuNy03LjgtNi4yLTEwLjEtMTAuOAoJCQljLTIuMy00LjUtMy41LTkuNS0zLjUtMTVjMC01LjUsMS4yLTEwLjUsMy41LTE1YzIuMy00LjUsNS43LTguMSwxMC4xLTEwLjhjNC40LTIuNyw5LjYtNCwxNS43LTRjNi43LDAsMTIuMiwxLjYsMTYuNCw0LjgKCQkJYzQuMiwzLjIsNy4zLDcuNCw5LjEsMTIuOGgtNi44Yy0xLjYtMy44LTMuOS02LjctNi45LTguOGMtMy0yLTYuOS0zLjEtMTEuOC0zLjFjLTQuOCwwLTguOSwxLjEtMTIuMiwzLjMKCQkJYy0zLjQsMi4yLTUuOSw1LjEtNy43LDguOGMtMS43LDMuNy0yLjYsNy42LTIuNiwxMS45YzAsNC4zLDAuOCw4LjMsMi41LDExLjljMS43LDMuNyw0LjIsNi42LDcuNiw4LjhjMy40LDIuMiw3LjUsMy4zLDEyLjMsMy4zCgkJCWM0LjksMCw4LjktMS4xLDEyLjEtMy4zYzMuMi0yLjIsNS40LTUuMSw2LjYtOC43aDYuOEMyNDcuMSwxNzYuMiwyNDUuNSwxNzkuMiwyNDMuMywxODEuOSIvPgoJCTxwYXRoIGQ9Ik0yODIuNywxODIuOWMyLjEtMS41LDMuOC0zLjQsNS01LjljMS4yLTIuNSwxLjgtNS4yLDEuOC04LjFjMC0zLTAuNi01LjctMS44LTguMmMtMS4yLTIuNS0yLjktNC40LTUtNS45CgkJCWMtMi4xLTEuNC00LjYtMi4yLTcuNC0yLjJjLTIuNywwLTUuMiwwLjctNy40LDIuMmMtMi4yLDEuNS0zLjksMy40LTUsNS45Yy0xLjIsMi41LTEuOCw1LjItMS44LDguMmMwLDMsMC42LDUuNywxLjgsOC4xCgkJCWMxLjIsMi41LDIuOSw0LjQsNSw1LjljMi4yLDEuNCw0LjYsMi4yLDcuNCwyLjJDMjc4LDE4NS4xLDI4MC41LDE4NC40LDI4Mi43LDE4Mi45IE0yNjQuNCwxODcuN2MtMy4xLTEuOS01LjUtNC41LTcuMi03LjgKCQkJYy0xLjctMy4zLTIuNS02LjktMi41LTExYzAtNCwwLjgtNy43LDIuNS0xMWMxLjctMy4zLDQuMS01LjksNy4yLTcuOGMzLjEtMS45LDYuNy0yLjksMTAuOS0yLjljNC4xLDAsNy44LDEsMTAuOSwyLjkKCQkJYzMuMSwxLjksNS42LDQuNSw3LjMsNy44YzEuNywzLjMsMi41LDcsMi41LDExYzAsNC0wLjgsNy43LTIuNSwxMWMtMS43LDMuMy00LjEsNS45LTcuMyw3LjhjLTMuMSwxLjktNi44LDIuOS0xMC45LDIuOQoJCQlDMjcxLjEsMTkwLjUsMjY3LjUsMTg5LjYsMjY0LjQsMTg3LjciLz4KCTwvZz4KCTxyZWN0IHg9IjMwMy44IiB5PSIxMzIuMiIgd2lkdGg9IjYuNCIgaGVpZ2h0PSI1Ny41Ii8+Cgk8cmVjdCB4PSIzMjAuOCIgeT0iMTMyLjIiIHdpZHRoPSI2LjQiIGhlaWdodD0iNTcuNSIvPgoJPGc+CgkJPHBhdGggZD0iTTM0OC4zLDE1NC4xYy0yLDEuMS0zLjUsMi42LTQuNyw0LjZjLTEuMiwyLTEuOSw0LjItMi4zLDYuOGgyNi41Yy0wLjQtNC4xLTEuNi03LjMtMy43LTkuNmMtMi4xLTIuMy01LjEtMy41LTktMy41CgkJCUMzNTIuNiwxNTIuNSwzNTAuMywxNTMsMzQ4LjMsMTU0LjEgTTM2My4xLDE4My4yYzIuMS0xLjMsMy42LTMuMyw0LjQtNS45aDYuNGMtMS4yLDQuMi0zLjQsNy41LTYuNiw5LjgKCQkJYy0zLjIsMi4zLTcuMiwzLjQtMTEuOCwzLjRjLTQuMSwwLTcuNy0wLjktMTAuNy0yLjhjLTMuMS0xLjktNS40LTQuNC03LjEtNy43Yy0xLjctMy4zLTIuNS03LTIuNS0xMS4yYzAtNC4xLDAuOC03LjgsMi41LTExCgkJCWMxLjctMy4zLDQuMS01LjgsNy4xLTcuN2MzLTEuOSw2LjUtMi44LDEwLjQtMi44YzQuNSwwLDguMSwxLDEwLjksMy4xYzIuOCwyLDQuOSw0LjcsNi4yLDhjMS4zLDMuMywyLDYuOSwyLjEsMTAuOGwwLjEsMS42aC0zMy4xCgkJCWMwLjIsMywwLjgsNS41LDIuMSw3LjdjMS4yLDIuMiwyLjgsMy45LDQuOSw1YzIsMS4yLDQuNCwxLjcsNywxLjdDMzU4LjMsMTg1LjIsMzYwLjksMTg0LjUsMzYzLjEsMTgzLjIiLz4KCQk8cGF0aCBkPSJNNDEzLDE4Ny4xYy0zLjEsMi4zLTcsMy41LTExLjksMy41Yy00LjIsMC03LjktMC45LTExLjEtMi44Yy0zLjItMS45LTUuNy00LjUtNy40LTcuN2MtMS43LTMuMy0yLjYtNy0yLjYtMTEKCQkJYzAtNC4xLDAuOS03LjgsMi42LTExLjFjMS43LTMuMyw0LjItNS45LDcuNC03LjhjMy4yLTEuOSw2LjktMi44LDExLjEtMi44YzQuOSwwLDguOSwxLjIsMTEuOSwzLjVjMy4xLDIuNCw1LjEsNS41LDYsOS40aC02LjUKCQkJYy0wLjktMi4zLTIuMy00LjItNC4xLTUuNmMtMS45LTEuNC00LjMtMi4xLTcuNS0yLjFjLTIuOCwwLTUuNCwwLjctNy42LDIuMmMtMi4yLDEuNC0zLjksMy40LTUuMSw1LjljLTEuMiwyLjUtMS44LDUuMy0xLjgsOC4zCgkJCXMwLjYsNS44LDEuOCw4LjNjMS4yLDIuNSwyLjksNC40LDUuMSw1LjhjMi4yLDEuNCw0LjcsMi4xLDcuNiwyLjFjNiwwLDkuOS0yLjcsMTEuOC04aDYuNUM0MTguMiwxODEuNSw0MTYuMSwxODQuNyw0MTMsMTg3LjEiLz4KCQk8cGF0aCBkPSJNNDQzLjgsMTg0LjR2NS4zaC0zLjVjLTMuNywwLTYuNS0wLjktOC4zLTIuOGMtMS44LTEuOS0yLjctNC40LTIuNy03Ljd2LTI1LjloLTYuM3YtNS4zaDYuM3YtOS44bDYuMy0yLjl2MTIuN2g4djUuM2gtOAoJCQl2MjUuNWMwLDEuOCwwLjUsMy4xLDEuNCw0LjFjMC45LDAuOSwyLjIsMS40LDMuOCwxLjRINDQzLjh6Ii8+Cgk8L2c+Cgk8cGF0aCBkPSJNNDUxLjYsMTMyLjJoNi45djguMWgtNi45VjEzMi4yeiBNNDUxLjUsMTQ4LjFoNi40djQxLjZoLTYuNFYxNDguMXoiLz4KCTxnPgoJCTxwYXRoIGQ9Ik00OTQuNCwxODIuOWMyLjEtMS41LDMuOC0zLjQsNS01LjljMS4yLTIuNSwxLjgtNS4yLDEuOC04LjFjMC0zLTAuNi01LjctMS44LTguMmMtMS4yLTIuNS0yLjktNC40LTUtNS45CgkJCWMtMi4xLTEuNC00LjYtMi4yLTcuNC0yLjJjLTIuNywwLTUuMiwwLjctNy40LDIuMmMtMi4yLDEuNS0zLjksMy40LTUsNS45Yy0xLjIsMi41LTEuOCw1LjItMS44LDguMmMwLDMsMC42LDUuNywxLjgsOC4xCgkJCWMxLjIsMi41LDIuOSw0LjQsNSw1LjljMi4yLDEuNCw0LjYsMi4yLDcuNCwyLjJDNDg5LjcsMTg1LjEsNDkyLjIsMTg0LjQsNDk0LjQsMTgyLjkgTTQ3Ni4xLDE4Ny43Yy0zLjEtMS45LTUuNS00LjUtNy4yLTcuOAoJCQljLTEuNy0zLjMtMi41LTYuOS0yLjUtMTFjMC00LDAuOC03LjcsMi41LTExYzEuNy0zLjMsNC4xLTUuOSw3LjItNy44YzMuMS0xLjksNi43LTIuOSwxMC45LTIuOWM0LjEsMCw3LjgsMSwxMC45LDIuOQoJCQljMy4xLDEuOSw1LjYsNC41LDcuMyw3LjhjMS43LDMuMywyLjUsNywyLjUsMTFjMCw0LTAuOCw3LjctMi41LDExYy0xLjcsMy4zLTQuMSw1LjktNy4zLDcuOGMtMy4xLDEuOS02LjgsMi45LTEwLjksMi45CgkJCUM0ODIuOCwxOTAuNSw0NzkuMiwxODkuNiw0NzYuMSwxODcuNyIvPgoJCTxwYXRoIGQ9Ik01MjIsMTQ4LjF2Ny44YzEuMi0yLjYsMi44LTQuNyw0LjktNi4yYzIuMS0xLjYsNC43LTIuNCw3LjctMi40YzUsMCw4LjgsMS40LDExLjMsNC4yYzIuNSwyLjgsMy44LDYuNiwzLjgsMTEuNXYyNi43CgkJCWgtNi40di0yNi4yYzAtMy44LTAuOC02LjYtMi40LTguM2MtMS42LTEuNy0zLjktMi42LTYuOS0yLjZjLTIuMSwwLTQuMSwwLjYtNS45LDEuN2MtMS44LDEuMi0zLjIsMy00LjQsNS40CgkJCWMtMS4xLDIuNC0xLjcsNS41LTEuNyw5LjF2MjAuOGgtNi40di00MS42SDUyMnoiLz4KCTwvZz4KCTxwb2x5Z29uIHBvaW50cz0iMTk2LjEsMjA5LjIgMjA3LjMsMjA5LjMgMjI0LjMsMjU4LjcgMjI0LjQsMjU4LjcgMjQxLjMsMjA5LjIgMjUyLjYsMjA5LjIgMjUyLjYsMjY2LjcgMjQ1LjgsMjY2LjcgMjQ1LjgsMjE2LjggCgkJMjQ1LjcsMjE2LjggMjI4LjMsMjY2LjcgMjIwLjUsMjY2LjcgMjAzLDIxNi44IDIwMi44LDIxNi44IDIwMi44LDI2Ni43IDE5Ni4xLDI2Ni43IAkiLz4KCTxnPgoJCTxwYXRoIGQ9Ik0yODMuOSwyNjAuN2MyLTEuMSwzLjYtMi44LDQuOC01YzEuMi0yLjIsMS44LTUsMS44LTguM3YtNmMtMC41LDEuNS0xLjcsMi44LTMuNSwzLjhjLTEuOCwxLTQuNywxLjktOC43LDIuNQoJCQljLTMuNCwwLjYtNiwxLjUtNy44LDIuN2MtMS43LDEuMi0yLjYsMi44LTIuNiw0LjljMCwxLjQsMC40LDIuNiwxLjIsMy43YzAuOCwxLDEuOSwxLjksMy4zLDIuNWMxLjQsMC42LDMsMC45LDQuOSwwLjkKCQkJQzI3OS43LDI2Mi40LDI4MS45LDI2MS44LDI4My45LDI2MC43IE0yOTAuNSwyNjAuNXYtMS44aC0wLjFjLTAuOCwyLjMtMi4zLDQuNC00LjYsNi4yYy0yLjIsMS44LTUuNCwyLjctOS41LDIuNwoJCQljLTMuMiwwLTUuOS0wLjYtOC4xLTEuN2MtMi4yLTEuMi0zLjktMi43LTUtNC42Yy0xLjEtMS45LTEuNy0zLjktMS43LTZjMC0zLDAuOS01LjQsMi44LTcuMWMxLjktMS43LDQuMS0zLDYuNS0zLjcKCQkJYzIuNS0wLjcsNS40LTEuNCw4LjktMS45bDEuOS0wLjNjMi4xLTAuNCwzLjgtMC44LDUtMS4zYzEuMi0wLjUsMi4xLTEuMSwyLjctMS45YzAuNi0wLjgsMC45LTEuNywwLjktMi45YzAtMi4xLTAuOS0zLjctMi43LTQuOQoJCQljLTEuOC0xLjItNC4yLTEuOC03LjMtMS44Yy0yLjYsMC00LjksMC43LTYuNywyLjFjLTEuOSwxLjQtMywzLjQtMy42LDUuOGgtNi40YzAuNC0yLjIsMS4yLTQuMywyLjUtNi40YzEuMy0yLDMuMi0zLjcsNS41LTUKCQkJYzIuNC0xLjMsNS4yLTIsOC41LTJjMTEsMCwxNi40LDUuMiwxNi40LDE1LjV2MTguNWMwLDIuOCwwLjIsNS42LDAuNiw4LjVoLTYuOEMyOTAuNSwyNjUuMywyOTAuNSwyNjMuMywyOTAuNSwyNjAuNSIvPgoJCTxwYXRoIGQ9Ik0zMTMuNiwyMjUuMXY3LjhjMS4yLTIuNiwyLjgtNC43LDQuOS02LjJjMi4xLTEuNiw0LjctMi40LDcuNy0yLjRjNSwwLDguOCwxLjQsMTEuMyw0LjJjMi41LDIuOCwzLjgsNi42LDMuOCwxMS41djI2LjcKCQkJaC02LjR2LTI2LjJjMC0zLjgtMC44LTYuNi0yLjQtOC4zYy0xLjYtMS43LTMuOS0yLjYtNi45LTIuNmMtMi4xLDAtNC4xLDAuNi01LjksMS43Yy0xLjgsMS4yLTMuMiwzLTQuNCw1LjQKCQkJYy0xLjEsMi40LTEuNyw1LjUtMS43LDkuMXYyMC44aC02LjR2LTQxLjZIMzEzLjZ6Ii8+CgkJPHBhdGggZD0iTTM3MS42LDI2MC43YzItMS4xLDMuNi0yLjgsNC44LTVjMS4yLTIuMiwxLjgtNSwxLjgtOC4zdi02Yy0wLjUsMS41LTEuNywyLjgtMy41LDMuOGMtMS44LDEtNC43LDEuOS04LjcsMi41CgkJCWMtMy40LDAuNi02LDEuNS03LjgsMi43Yy0xLjcsMS4yLTIuNiwyLjgtMi42LDQuOWMwLDEuNCwwLjQsMi42LDEuMiwzLjdjMC44LDEsMS45LDEuOSwzLjMsMi41czMsMC45LDQuOSwwLjkKCQkJQzM2Ny40LDI2Mi40LDM2OS42LDI2MS44LDM3MS42LDI2MC43IE0zNzguMiwyNjAuNXYtMS44aC0wLjFjLTAuOCwyLjMtMi4zLDQuNC00LjYsNi4yYy0yLjIsMS44LTUuNCwyLjctOS41LDIuNwoJCQljLTMuMiwwLTUuOS0wLjYtOC4xLTEuN2MtMi4yLTEuMi0zLjktMi43LTUtNC42Yy0xLjEtMS45LTEuNy0zLjktMS43LTZjMC0zLDAuOS01LjQsMi44LTcuMWMxLjktMS43LDQuMS0zLDYuNS0zLjcKCQkJYzIuNS0wLjcsNS40LTEuNCw4LjktMS45bDEuOS0wLjNjMi4xLTAuNCwzLjgtMC44LDUtMS4zYzEuMi0wLjUsMi4xLTEuMSwyLjctMS45YzAuNi0wLjgsMC45LTEuNywwLjktMi45YzAtMi4xLTAuOS0zLjctMi43LTQuOQoJCQljLTEuOC0xLjItNC4yLTEuOC03LjMtMS44Yy0yLjYsMC00LjksMC43LTYuNywyLjFjLTEuOSwxLjQtMywzLjQtMy42LDUuOGgtNi40YzAuNC0yLjIsMS4yLTQuMywyLjUtNi40YzEuMy0yLDMuMi0zLjcsNS41LTUKCQkJYzIuNC0xLjMsNS4yLTIsOC41LTJjMTEsMCwxNi40LDUuMiwxNi40LDE1LjV2MTguNWMwLDIuOCwwLjIsNS42LDAuNiw4LjVoLTYuOEMzNzguMiwyNjUuMywzNzguMiwyNjMuMywzNzguMiwyNjAuNSIvPgoJCTxwYXRoIGQ9Ik00MDAuMywyNTRjMSwyLjUsMi41LDQuNCw0LjYsNS45YzIsMS40LDQuNiwyLjIsNy42LDIuMmMzLjIsMCw1LjktMC44LDcuOS0yLjVjMi4xLTEuNiwzLjUtMy43LDQuNC02LjIKCQkJYzAuOS0yLjUsMS4zLTUsMS4zLTcuNmMwLTIuNi0wLjUtNS4xLTEuNi03LjZjLTEtMi41LTIuNi00LjYtNC43LTYuMmMtMi4xLTEuNi00LjYtMi40LTcuNC0yLjRjLTIuOSwwLTUuNCwwLjctNy41LDIuMgoJCQljLTIuMSwxLjUtMy42LDMuNC00LjcsNS45Yy0xLDIuNC0xLjYsNS4xLTEuNiw4LjFDMzk4LjcsMjQ4LjgsMzk5LjIsMjUxLjUsNDAwLjMsMjU0IE00MzIuMiwyNjMuOWMwLDMuOC0wLjgsNy4xLTIuNSwxMAoJCQljLTEuNiwyLjgtMy45LDUtNi44LDYuNmMtMi45LDEuNS02LjEsMi4zLTkuNywyLjNjLTMuNCwwLTYuNS0wLjYtOS4zLTEuN2MtMi43LTEuMS01LTIuOC02LjYtNC45Yy0xLjctMi4xLTIuNy00LjYtMy03LjVoNi41CgkJCWMwLjQsMywxLjcsNS4xLDMuOCw2LjVjMi4xLDEuNCw1LDIuMSw4LjYsMi4xYzMuOSwwLDYuOS0xLjEsOS4yLTMuNGMyLjMtMi4zLDMuNC01LjYsMy40LTEwLjJ2LTUuNGgtMC4xYy0xLjEsMi44LTIuOCw1LjEtNSw2LjcKCQkJYy0yLjMsMS42LTUuNCwyLjUtOS4yLDIuNWMtMy45LDAtNy4zLTEtMTAuMi0yLjljLTIuOS0xLjktNS4xLTQuNS02LjYtNy44Yy0xLjUtMy4zLTIuMy03LTIuMy0xMWMwLTQuMSwwLjgtNy44LDIuMy0xMQoJCQljMS41LTMuMywzLjctNS45LDYuNi03LjdjMi45LTEuOSw2LjMtMi44LDEwLjItMi44YzMuOCwwLDYuOCwwLjgsOS4yLDIuNWMyLjQsMS43LDQuMSwzLjcsNSw2LjJoMC4xdi03LjloNi40VjI2My45eiIvPgoJCTxwYXRoIGQ9Ik00NTMuNCwyMzEuMWMtMiwxLjEtMy41LDIuNi00LjcsNC42Yy0xLjIsMi0xLjksNC4yLTIuMyw2LjhoMjYuNWMtMC40LTQuMS0xLjYtNy4zLTMuNy05LjZjLTIuMS0yLjMtNS4xLTMuNS05LTMuNQoJCQlDNDU3LjYsMjI5LjUsNDU1LjQsMjMwLDQ1My40LDIzMS4xIE00NjguMSwyNjAuMmMyLjEtMS4zLDMuNi0zLjMsNC40LTUuOWg2LjRjLTEuMiw0LjItMy40LDcuNS02LjYsOS44CgkJCWMtMy4yLDIuMy03LjIsMy40LTExLjgsMy40Yy00LjEsMC03LjctMC45LTEwLjctMi44Yy0zLjEtMS45LTUuNC00LjQtNy4xLTcuN2MtMS43LTMuMy0yLjUtNy0yLjUtMTEuMmMwLTQuMSwwLjgtNy44LDIuNS0xMQoJCQljMS43LTMuMyw0LjEtNS44LDcuMS03LjdjMy0xLjksNi41LTIuOCwxMC40LTIuOGM0LjUsMCw4LjEsMSwxMC45LDMuMWMyLjgsMiw0LjksNC43LDYuMiw4YzEuMywzLjMsMiw2LjksMi4xLDEwLjhsMC4xLDEuNmgtMzMuMQoJCQljMC4yLDMsMC44LDUuNSwyLjEsNy43YzEuMiwyLjIsMi44LDMuOSw0LjksNXM0LjQsMS43LDcsMS43QzQ2My4zLDI2Mi4yLDQ2NS45LDI2MS41LDQ2OC4xLDI2MC4yIi8+CgkJPHBhdGggZD0iTTQ5OC43LDIyN2MyLjEtMS40LDQuNy0yLjEsOC0yLjF2NmMtMC41LDAtMS4xLDAuMS0xLjgsMC4yYy0wLjcsMC4xLTEuMywwLjItMS45LDAuNGMtMS44LDAuNS0zLjMsMS4yLTQuNiwyLjIKCQkJYy0xLjMsMS0yLjMsMi41LTMuMSw0LjZjLTAuOCwyLjEtMS4yLDQuOC0xLjIsOC4zdjIwLjFoLTYuNHYtNDEuNmg2LjR2OC4zQzQ5NS4xLDIzMC41LDQ5Ni42LDIyOC4zLDQ5OC43LDIyNyIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo="},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(535);t.default=function(e,t){var r=[];if(e&&e.raw&&e.raw["simplified:breadcrumbs"]&&e.raw["simplified:breadcrumbs"][0]&&e.raw["simplified:breadcrumbs"][0].link){var a=e.raw["simplified:breadcrumbs"][0].link;r=a.map((function(e){return{url:e["$"].href.value,text:e["$"].title.value}}));r.push({url:e.url,text:e.title})}else{r=n.hierarchyComputeBreadcrumbs(e,t)}return r}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1126);var o=r(536);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=a.Children.only(this.props.children);var t=JSON.parse(JSON.stringify(e.props.collection));var r=t&&t.facetGroups?t.facetGroups:[];var n=Object.assign({},e.props);var s=[];if(r&&r.length){var u;r.forEach((function(e,t){if(e.label==="Formats"){u=t;s=e.facets.slice()}}));if(u!==undefined){r.splice(u,1)}}t.facetGroups=r;n.collection=t;var l=a.createElement(o.default,n);return a.createElement("div",{className:"entry-points-tab-container"},a.createElement(i.default,{facets:s}),l)};return t}(a.Component);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(65);var o=r(0);var s=r(127);var u=function(e){n(t,e);function t(t){return e.call(this,t)||this}t.prototype.render=function(){var e=this.props.facets?this.props.facets:[];if(!e.length){return null}var t={All:"http://schema.org/CreativeWork",eBooks:"http://schema.org/EBook",Audiobooks:"http://bib.schema.org/Audiobook"};var r={"http://bib.schema.org/Audiobook":a.createElement(s.AudioHeadphoneIcon,{ariaHidden:true,title:"Audio Headphones Icon"}),"http://schema.org/EBook":a.createElement(s.BookIcon,{ariaHidden:true,title:"Book Icon"}),"http://schema.org/CreativeWork":null};return a.createElement("ul",{className:"nav nav-tabs entry-points-list"},e.map((function(e){var n=e.label;var o=t[n];var s=e.active?"active":"";var u=e.href;var l=r[o]?r[o]:null;var c=!l?"no-svg":"";return a.createElement("li",{key:n,role:"presentation",className:s+" "+c},a.createElement(i.default,{collectionUrl:u,bookUrl:null},l,n))})))};t.contextTypes={router:o.object.isRequired,pathFor:o.func.isRequired};return t}(a.Component);t.EntryPointsTabs=u;t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(76);var o=r(77);var s=r(118);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement("div",{className:"welcome-page"},a.createElement(i.default,null),a.createElement(s.Jumbotron,null,a.createElement("h2",null,"Welcome to the Circulation Admin Interface!"),a.createElement("hr",null),a.createElement("p",null,"You don't have any libraries yet. To get started, go to the System Configuration section and",a.createElement("a",{href:"/admin/web/config/libraries/create"}," ","create a new library"),".")),a.createElement(o.default,null))};return t}(a.Component);t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(76);var s=r(77);var u=r(1129);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.getChildContext=function(){var e=this;return{library:function(){return e.props.params.library}}};t.prototype.render=function(){var e;if(this.props.location&&this.props.location.state){e=this.props.location.state.bookTitle}return a.createElement("div",{className:"custom-list-page"},a.createElement(o.default,null),a.createElement(u.default,{library:this.props.params.library,editOrCreate:this.props.params.editOrCreate,identifier:this.props.params.identifier,store:this.context.editorStore,csrfToken:this.context.csrfToken,startingTitle:e}),a.createElement(s.default,null))};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};t.childContextTypes={library:i.func};return t}(a.Component);t.default=l},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};var i=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var o=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});var s=r(1);var u=r(14);var l=r(0);var c=r(8);var f=r(41);var d=r(178);var p=r(1130);var h=r(72);var v=r(37);var m=r(1221);var y=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.saveCustomListEditor=r.saveCustomListEditor.bind(r);r.deleteCustomList=r.deleteCustomList.bind(r);r.changeSort=r.changeSort.bind(r);r.getEnabledEntryPoints=r.getEnabledEntryPoints.bind(r);r.state={sort:"asc"};return r}t.prototype.render=function(){return s.createElement("main",{className:"custom-lists-container"},this.props.fetchError&&s.createElement(v.default,{error:this.props.fetchError}),this.props.isFetching&&s.createElement(h.default,null),s.createElement("div",{className:"custom-lists"},this.renderSidebar(),this.props.editOrCreate&&this.renderEditor()))};t.prototype.renderSidebar=function(){return s.createElement(m.default,{lists:this.sortedLists(),library:this.props.library,identifier:this.props.identifier,isLibraryManager:this.context.admin.isLibraryManager(this.props.library),deleteCustomList:this.deleteCustomList,changeSort:this.changeSort,sortOrder:this.state.sort})};t.prototype.renderEditor=function(){var e=this;var t,r,n;var i={collections:this.collectionsForLibrary(),properties:this.props.customListEditorProperties,searchParams:this.props.customListEditorSearchParams,isLoaded:this.props.customListEditorIsLoaded,isValid:this.props.customListEditorIsValid,isModified:this.props.customListEditorIsModified,entries:this.props.customListEditorEntries,save:this.saveCustomListEditor,reset:this.props.resetCustomListEditor,entryPoints:this.getEnabledEntryPoints(this.props.libraries),isFetchingMoreCustomListEntries:this.props.isFetchingMoreCustomListEntries,isFetchingSearchResults:this.props.isFetchingSearchResults,isFetchingMoreSearchResults:this.props.isFetchingMoreSearchResults,languages:this.props.languages,library:(t=this.props.libraries)===null||t===void 0?void 0:t.find((function(t){return t.short_name===e.props.library})),loadMoreEntries:((r=this.props.listDetails)===null||r===void 0?void 0:r.nextPageUrl)&&this.props.loadMoreEntries,loadMoreSearchResults:((n=this.props.searchResults)===null||n===void 0?void 0:n.nextPageUrl)&&this.props.loadMoreSearchResults,search:this.props.executeCustomListEditorSearch,searchResults:this.props.searchResults,updateProperty:this.props.updateCustomListEditorProperty,toggleCollection:this.props.toggleCustomListEditorCollection,updateSearchParam:this.props.updateCustomListEditorSearchParam,addAdvSearchQuery:this.props.addCustomListEditorAdvSearchQuery,updateAdvSearchQueryBoolean:this.props.updateCustomListEditorAdvSearchQueryBoolean,moveAdvSearchQuery:this.props.moveCustomListEditorAdvSearchQuery,removeAdvSearchQuery:this.props.removeCustomListEditorAdvSearchQuery,selectAdvSearchQuery:this.props.selectCustomListEditorAdvSearchQuery,addEntry:this.props.addCustomListEditorEntry,addAllEntries:this.props.addAllCustomListEditorEntries,deleteEntry:this.props.deleteCustomListEditorEntry,deleteAllEntries:this.props.deleteAllCustomListEditorEntries};var o=this.props.editOrCreate==="create"?{startingTitle:this.props.startingTitle}:{listId:this.props.identifier};return s.createElement(p.default,a({},a(a({},i),o)))};t.prototype.UNSAFE_componentWillMount=function(){var e,t,r,n,a,i;var o=this.props,s=o.editOrCreate,u=o.fetchCollections,l=o.fetchCustomListDetails,c=o.fetchCustomLists,f=o.fetchLibraries,d=o.fetchLanguages,p=o.identifier,h=o.openCustomListEditor;(e=c)===null||e===void 0?void 0:e();(t=h)===null||t===void 0?void 0:t(p);if(s==="edit"){(r=l)===null||r===void 0?void 0:r(p)}(n=u)===null||n===void 0?void 0:n();(a=f)===null||a===void 0?void 0:a();(i=d)===null||i===void 0?void 0:i()};t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t,r;var n=e.editOrCreate,a=e.fetchError,i=e.lists;if(!n&&i&&!a){if(i.length===0){window.location.href+="/create"}else{var o=this.sortedLists(i)[0];window.location.href+="/edit/"+o.id}}var s=e.identifier,u=e.fetchCustomListDetails,l=e.openCustomListEditor;if(s!==this.props.identifier){(t=l)===null||t===void 0?void 0:t(s);if(s){(r=u)===null||r===void 0?void 0:r(s)}}};t.prototype.changeSort=function(){var e=this.state.sort;if(e==="asc"){this.setState({sort:"desc"})}else{this.setState({sort:"asc"})}};t.prototype.sortedLists=function(e){var t=this;e=e||this.props.lists||[];return e.sort((function(e,r){var n=e;var a=r;if(t.state.sort==="desc"){n=r;a=e}if(n.name<a.name){return-1}else if(n.name===a.name){return 0}else{return 1}}))};t.prototype.getEnabledEntryPoints=function(e){var t=this;if(!e){return[]}var r;e.forEach((function(e){if(e.short_name===t.props.library){r=e}}));return r.settings.enabled_entry_points||[]};t.prototype.saveCustomListEditor=function(){return i(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:e=this.props.identifier;return[4,this.props.saveCustomListEditor()];case 1:t.sent();this.props.fetchCustomLists();if(e){this.props.fetchCustomListDetails(e)}return[2]}}))}))};t.prototype.deleteCustomList=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(a){switch(a.label){case 0:return[4,this.getDeletedLanes(e.id)];case 1:t=a.sent();r="";if(t&&t.length){r=this.deletedLaneNames(t)}n='Delete list "'+e.name+'"? '+r;if(!window.confirm(n))return[3,3];return[4,this.props.deleteCustomList(String(e.id))];case 2:a.sent();this.props.fetchCustomLists();a.label=3;case 3:return[2]}}))}))};t.prototype.getDeletedLanes=function(e){return i(this,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:t=[];r=this.props.lanes;if(!!r)return[3,2];return[4,this.props.fetchLanes()];case 1:n.sent();r=this.props.lanes;n.label=2;case 2:if(r&&r.length){r.forEach((function(r){var n=r.custom_list_ids;if(n.length===1&&n[0]===e){t.push(r)}}))}return[2,t]}}))}))};t.prototype.deletedLaneNames=function(e){var t="Deleting this list will delete the following lanes:\n";e.forEach((function(e){return t+="\nLane name: "+e.display_name}));return t};t.prototype.collectionsForLibrary=function(){var e=[];for(var t=0,r=this.props.collections||[];t<r.length;t++){var n=r[t];for(var a=0,i=n.libraries||[];a<i.length;a++){var o=i[a];if(o.short_name===this.props.library){e.push(n);break}}}return e};t.contextTypes={admin:l.object.isRequired};return t}(s.Component);t.CustomLists=y;function g(e,t){var r,n;return{customListEditorProperties:e.editor.customListEditor.properties.current,customListEditorSearchParams:e.editor.customListEditor.searchParams.current,customListEditorEntries:e.editor.customListEditor.entries,customListEditorIsLoaded:e.editor.customListEditor.isLoaded,customListEditorIsValid:e.editor.customListEditor.isValid,customListEditorIsModified:e.editor.customListEditor.isModified,lists:e.editor.customLists&&e.editor.customLists.data&&e.editor.customLists.data.custom_lists,listDetails:e.editor.customListDetails&&e.editor.customListDetails.data,isFetchingMoreCustomListEntries:e.editor.customListDetails&&e.editor.customListDetails.isFetchingMoreEntries,fetchError:e.editor.customLists.fetchError||e.editor.collections.fetchError,isFetching:e.editor.customLists.isFetching||e.editor.customLists.isEditing||e.editor.customListDetails.isFetching||e.editor.customListDetails.isEditing||!t.editOrCreate||e.editor.collections.isFetching,searchResults:e.editor.collection&&e.editor.collection.data,isFetchingSearchResults:(r=e.editor.collection)===null||r===void 0?void 0:r.isFetching,isFetchingMoreSearchResults:(n=e.editor.collection)===null||n===void 0?void 0:n.isFetchingPage,collections:e.editor.collections&&e.editor.collections.data&&e.editor.collections.data.collections,languages:e.editor.languages&&e.editor.languages.data,libraries:e.editor.libraries.data&&e.editor.libraries.data.libraries,lanes:e.editor.lanes.data&&e.editor.lanes.data.lanes}}function b(e,t){var r=new f.default({adapter:d.adapter});var n=new c.default(r,t.csrfToken);return{fetchCustomLists:function(){return e(n.fetchCustomLists(t.library))},fetchCustomListDetails:function(r){return e(n.fetchCustomListDetails(t.library,r))},saveCustomListEditor:function(){return e(n.saveCustomListEditor(t.library))},resetCustomListEditor:function(){e(n.resetCustomListEditor());e(n.executeCustomListEditorSearch(t.library))},executeCustomListEditorSearch:function(){return e(n.executeCustomListEditorSearch(t.library))},loadMoreSearchResults:function(){return e(n.fetchMoreCustomListEditorSearchResults())},deleteCustomList:function(r){return e(n.deleteCustomList(t.library,r))},openCustomListEditor:function(t){return e(n.openCustomListEditor(t))},loadMoreEntries:function(){return e(n.fetchMoreCustomListEntries())},fetchCollections:function(){return e(n.fetchCollections())},fetchLibraries:function(){return e(n.fetchLibraries())},fetchLanes:function(){return e(n.fetchLanes(t.library))},fetchLanguages:function(){return e(n.fetchLanguages())},updateCustomListEditorProperty:function(t,r){return e(n.updateCustomListEditorProperty(t,r))},toggleCustomListEditorCollection:function(t){return e(n.toggleCustomListEditorCollection(t))},updateCustomListEditorSearchParam:function(r,a){e(n.updateCustomListEditorSearchParam(r,a));e(n.executeCustomListEditorSearch(t.library))},addCustomListEditorAdvSearchQuery:function(r,a){e(n.addCustomListEditorAdvSearchQuery(r,a));e(n.executeCustomListEditorSearch(t.library))},updateCustomListEditorAdvSearchQueryBoolean:function(r,a,i){e(n.updateCustomListEditorAdvSearchQueryBoolean(r,a,i));e(n.executeCustomListEditorSearch(t.library))},moveCustomListEditorAdvSearchQuery:function(r,a,i){e(n.moveCustomListEditorAdvSearchQuery(r,a,i));e(n.executeCustomListEditorSearch(t.library))},removeCustomListEditorAdvSearchQuery:function(r,a){e(n.removeCustomListEditorAdvSearchQuery(r,a));e(n.executeCustomListEditorSearch(t.library))},selectCustomListEditorAdvSearchQuery:function(t,r){return e(n.selectCustomListEditorAdvSearchQuery(t,r))},addCustomListEditorEntry:function(t){return e(n.addCustomListEditorEntry(t))},addAllCustomListEditorEntries:function(){return e(n.addAllCustomListEditorEntries())},deleteCustomListEditorEntry:function(t){return e(n.deleteCustomListEditorEntry(t))},deleteAllCustomListEditorEntries:function(){return e(n.deleteAllCustomListEditorEntries())}}}var A=u.connect(g,b)(y);t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(13);var i=r(1131);var o=r(1210);var s=r(20);var u=r(645);function l(e){var t=e.collections,r=e.entries,l=e.entryPoints,c=e.isFetchingMoreCustomListEntries,f=e.isFetchingSearchResults,d=e.isFetchingMoreSearchResults,p=e.isLoaded,h=e.isModified,v=e.isValid,m=e.languages,y=e.library,g=e.listId,b=e.properties,A=e.searchParams,_=e.searchResults,w=e.startingTitle,E=e.addAllEntries,x=e.addEntry,k=e.deleteAllEntries,S=e.deleteEntry,O=e.loadMoreEntries,M=e.loadMoreSearchResults,D=e.reset,T=e.save,L=e.search,C=e.toggleCollection,j=e.updateProperty,N=e.updateSearchParam,I=e.addAdvSearchQuery,P=e.updateAdvSearchQueryBoolean,R=e.moveAdvSearchQuery,F=e.removeAdvSearchQuery,Y=e.selectAdvSearchQuery;var B,H;var U=b.collections,z=b.name;n.useEffect((function(){var e;(e=L)===null||e===void 0?void 0:e()}),[g,p]);return n.createElement("div",{className:"custom-list-editor"},n.createElement("div",{className:"custom-list-editor-header"},n.createElement("div",{className:"edit-custom-list-title"},n.createElement("fieldset",{className:"save-or-edit"},n.createElement("legend",{className:"visuallyHidden"},"List name"),n.createElement(u.default,{text:z,placeholder:"list title",onUpdate:function(e){var t;return(t=j)===null||t===void 0?void 0:t("name",e)},"aria-label":"Enter a title for this list",disableIfBlank:true})),g&&n.createElement("h4",null,"ID-",g)),n.createElement("div",{className:"save-or-cancel-list"},n.createElement(a.Button,{callback:T,disabled:!h||!v,content:"Save this list"}),n.createElement(a.Button,{className:"inverted",callback:D,disabled:!h,content:"Cancel Changes"}))),n.createElement("div",{className:"custom-list-editor-body"},n.createElement("section",null,((B=t)===null||B===void 0?void 0:B.length)>0&&n.createElement("div",{className:"custom-list-filters"},n.createElement(a.Panel,{headerText:"Add from collections",id:"add-from-collections",content:n.createElement("div",{className:"collections"},n.createElement("div",null,"Automatically add new books from these collections to this list:"),t.map((function(e){var t=e.id,r=e.name;return n.createElement(s.default,{key:t,type:"checkbox",name:"collection",checked:U.includes(t),label:r,value:t,onChange:function(e){var t;return(t=C)===null||t===void 0?void 0:t(parseInt(e))}})})))})),n.createElement(o.default,{autoUpdate:b.autoUpdate,searchParams:A,updateAutoUpdate:function(e){var t;return(t=j)===null||t===void 0?void 0:t("autoUpdate",e)},updateSearchParam:N,search:L,entryPoints:l,startingTitle:w,library:y,languages:m,addAdvSearchQuery:I,updateAdvSearchQueryBoolean:P,moveAdvSearchQuery:R,removeAdvSearchQuery:F,selectAdvSearchQuery:Y})),n.createElement(i.default,{autoUpdate:b.autoUpdate,searchResults:_,entries:r.current,loadMoreSearchResults:M,loadMoreEntries:O,isFetchingSearchResults:f,isFetchingMoreSearchResults:d,isFetchingMoreCustomListEntries:c,opdsFeedUrl:((H=y)===null||H===void 0?void 0:H.short_name)+"/"+(z?"lists/"+z+"/":"")+"crawlable",entryCount:r.currentTotalCount,listId:g,addEntry:x,addAllEntries:E,deleteEntry:S,deleteAllEntries:k,refreshResults:L})))}t.default=l},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(13);var o=r(65);var s=r(177);var u=r(308);var l=r(1205);var c=r(106);var f=r(325);var d=r(210);var p=r(1206);var h=r(1207);var v=r(1208);var m=function(e,t){var r=e.title,n=e.url;if(!n){return null}return a.createElement(o.default,{collectionUrl:t,bookUrl:n,title:r,target:"_blank",className:"btn inverted left-align small top-align"},"View details")};var y=function(e){var t=e.autoUpdate,r=e.entries,o=e.entryCount,y=e.isFetchingMoreCustomListEntries,g=e.isFetchingSearchResults,b=e.isFetchingMoreSearchResults,A=e.listId,_=e.opdsFeedUrl,w=e.searchResults,E=e.addAllEntries,x=e.addEntry,k=e.deleteAllEntries,S=e.deleteEntry,O=e.loadMoreEntries,M=e.loadMoreSearchResults,D=e.refreshResults;var T;var L=a.useState(null),C=L[0],j=L[1];a.useEffect((function(){j(null)}),[A,r]);a.useEffect((function(){var e;if(r){(e=document.getElementById("custom-list-entries-droppable"))===null||e===void 0?void 0:e.scrollTo(0,0)}}),[r]);var N=a.useMemo((function(){var e,n;if(!((n=(e=w)===null||e===void 0?void 0:e.books)===null||n===void 0?void 0:n.length)){return[]}if(t){return w.books}var a=r.reduce((function(e,t){e[t.id]=true;return e}),{});return w.books.filter((function(e){return!a[e.id]}))}),[t,r,w]);var I=function(e){j(e.source.droppableId);document.body.classList.add("dragging")};var P=function(e){var t,r,n,a;var i=e.draggableId,o=e.source,s=e.destination;if(o.droppableId==="search-results"&&((t=s)===null||t===void 0?void 0:t.droppableId)==="custom-list-entries"){(r=x)===null||r===void 0?void 0:r(i)}else if(o.droppableId==="custom-list-entries"&&((n=s)===null||n===void 0?void 0:n.droppableId)==="search-results"){(a=S)===null||a===void 0?void 0:a(i)}else{j(null)}document.body.classList.remove("dragging")};var R=null;if(!t){var F=r.length;var Y=F>0?1:0;var B=F;var H=o===1?"book":"books";var U=o>0?"Displaying "+Y+" - "+B+" of "+o+" "+H:"No books in this list";R=a.createElement("div",{className:"custom-list-entries"},a.createElement("div",{className:"droppable-header"},a.createElement("h4",null,U),((T=r)===null||T===void 0?void 0:T.length)>0&&a.createElement("div",null,a.createElement("span",null,"Remove all currently visible items from list:"),a.createElement(i.Button,{className:"danger delete-all-button top-align",callback:k,content:a.createElement("span",null,"Delete",a.createElement(c.default,null))}))),a.createElement("p",null,"Drag search results here to add them to the list."),a.createElement(u.Droppable,{droppableId:"custom-list-entries",isDropDisabled:C!=="search-results"},(function(e,t){var o;return a.createElement("ul",{ref:e.innerRef,id:"custom-list-entries-droppable",className:t.isDraggingOver?" droppable dragging-over":"droppable"},(o=r)===null||o===void 0?void 0:o.map((function(e){return a.createElement(u.Draggable,{key:e.id,draggableId:e.id},(function(t,r){return a.createElement("li",null,a.createElement("div",n({className:"custom-list-entry"+(r.isDragging?" dragging":""),ref:t.innerRef,style:t.draggableStyle},t.dragHandleProps),a.createElement(f.default,null),a.createElement("div",null,a.createElement("div",{className:"title"},e.title),a.createElement("div",{className:"authors"},e.authors.join(", "))),s.getMediumSVG(s.getMedium(e)),a.createElement("div",{className:"links"},m(e,_),a.createElement(i.Button,{className:"small right-align",callback:function(){var t;return(t=S)===null||t===void 0?void 0:t(e.id)},content:a.createElement("span",null,"Remove from list",a.createElement(c.default,null))}))),t.placeholder)}))})),e.placeholder)})),O&&a.createElement(v.default,{isFetching:y,loadMore:O}))}return a.createElement(u.DragDropContext,{onDragStart:I,onDragEnd:P},a.createElement("div",{className:"custom-list-drag-and-drop"},a.createElement("div",{className:"custom-list-search-results"},a.createElement("div",{className:"droppable-header"},a.createElement("h4",null,"Search Results"),a.createElement(i.Button,{"aria-label":"Refresh",className:"refresh-button inverted",callback:D,content:a.createElement(p.default,null),disabled:g}),!t&&!g&&N.length>0&&a.createElement(i.Button,{className:"add-all-button",callback:E,content:a.createElement("span",null,"Add all to list",a.createElement(l.default,null))})),g&&a.createElement(h.default,null),!g&&a.createElement(u.Droppable,{droppableId:"search-results",isDropDisabled:C!=="custom-list-entries"},(function(e,r){return a.createElement("ul",{ref:e.innerRef,className:r.isDraggingOver?"droppable dragging-over":"droppable"},C==="custom-list-entries"&&a.createElement("p",null,"Drag books here to remove them from the list."),C!=="custom-list-entries"&&N.map((function(e){return a.createElement(u.Draggable,{key:e.id,draggableId:e.id},(function(r,o){return a.createElement("li",null,a.createElement("div",n({className:"search-result"+(o.isDragging?" dragging":""),ref:r.innerRef,style:r.draggableStyle},r.dragHandleProps),a.createElement(f.default,null),a.createElement("div",null,a.createElement("div",{className:"title"},e.title),a.createElement("div",{className:"authors"},e.authors.join(", "))),s.getMediumSVG(s.getMedium(e)),a.createElement("div",{className:"links"},m(e,_),!t&&a.createElement(i.Button,{callback:function(){var t;return(t=x)===null||t===void 0?void 0:t(e.id)},className:"right-align",content:a.createElement("span",null,"Add to list",a.createElement(d.default,null))}))),r.placeholder)}))})),e.placeholder)})),!g&&M&&a.createElement(v.default,{isFetching:b,loadMore:M})),R))};t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1133);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(163);var a=x(n);var i=r(85);var o=x(i);var s=r(86);var u=x(s);var l=r(87);var c=x(l);var f=r(88);var d=x(f);var p=r(89);var h=x(p);var v=r(1);var m=x(v);var y=r(0);var g=x(y);var b=r(1155);var A=x(b);var _=r(1174);var w=x(_);var E=r(117);function x(e){return e&&e.__esModule?e:{default:e}}var k=function(e){(0,h.default)(t,e);function t(){(0,u.default)(this,t);return(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}(0,c.default)(t,[{key:"getChildContext",value:function e(){return(0,a.default)({},E.storeKey,this.store)}},{key:"componentWillMount",value:function e(){var t=this;this.store=(0,A.default)();var r=this.store.getState();this.unsubscribe=this.store.subscribe((function(){var e=t.store.getState();var n={onDragStart:t.props.onDragStart,onDragEnd:t.props.onDragEnd};(0,w.default)(n,e,r);r=e}))}},{key:"componentWillUnmount",value:function e(){this.unsubscribe()}},{key:"render",value:function e(){return this.props.children}}]);return t}(m.default.Component);k.childContextTypes=(0,a.default)({},E.storeKey,g.default.shape({dispatch:g.default.func.isRequired,subscribe:g.default.func.isRequired,getState:g.default.func.isRequired}).isRequired);t.default=k},function(e,t,r){r(1135);var n=r(30).Object;e.exports=function e(t,r,a){return n.defineProperty(t,r,a)}},function(e,t,r){var n=r(42);n(n.S+n.F*!r(75),"Object",{defineProperty:r(83).f})},function(e,t,r){r(1137);e.exports=r(30).Object.getPrototypeOf},function(e,t,r){var n=r(133);var a=r(598);r(588)("getPrototypeOf",(function(){return function e(t){return a(n(t))}}))},function(e,t,r){e.exports={default:r(1139),__esModule:true}},function(e,t,r){r(595);r(1140);e.exports=r(310).f("iterator")},function(e,t,r){r(1141);var n=r(74);var a=r(129);var i=r(159);var o=r(67)("toStringTag");var s=("CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,"+"DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,"+"MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,"+"SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,"+"TextTrackList,TouchList").split(",");for(var u=0;u<s.length;u++){var l=s[u];var c=n[l];var f=c&&c.prototype;if(f&&!f[o])a(f,o,l);i[l]=i.Array}},function(e,t,r){"use strict";var n=r(1142);var a=r(1143);var i=r(159);var o=r(109);e.exports=r(596)(Array,"Array",(function(e,t){this._t=o(e);this._i=0;this._k=t}),(function(){var e=this._t;var t=this._k;var r=this._i++;if(!e||r>=e.length){this._t=undefined;return a(1)}if(t=="keys")return a(0,r);if(t=="values")return a(0,e[r]);return a(0,[r,e[r]])}),"values");i.Arguments=i.Array;n("keys");n("values");n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){e.exports={default:r(1145),__esModule:true}},function(e,t,r){r(1146);r(1150);r(1151);r(1152);e.exports=r(30).Symbol},function(e,t,r){"use strict";var n=r(74);var a=r(108);var i=r(75);var o=r(42);var s=r(597);var u=r(1147).KEY;var l=r(107);var c=r(277);var f=r(282);var d=r(193);var p=r(67);var h=r(310);var v=r(311);var m=r(1148);var y=r(606);var g=r(130);var b=r(131);var A=r(133);var _=r(109);var w=r(273);var E=r(157);var x=r(280);var k=r(1149);var S=r(586);var O=r(279);var M=r(83);var D=r(132);var T=S.f;var L=M.f;var C=k.f;var j=n.Symbol;var N=n.JSON;var I=N&&N.stringify;var P="prototype";var R=p("_hidden");var F=p("toPrimitive");var Y={}.propertyIsEnumerable;var B=c("symbol-registry");var H=c("symbols");var U=c("op-symbols");var z=Object[P];var q=typeof j=="function"&&!!O.f;var V=n.QObject;var W=!V||!V[P]||!V[P].findChild;var K=i&&l((function(){return x(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a!=7}))?function(e,t,r){var n=T(z,t);if(n)delete z[t];L(e,t,r);if(n&&e!==z)L(z,t,n)}:L;var G=function(e){var t=H[e]=x(j[P]);t._k=e;return t};var Q=q&&typeof j.iterator=="symbol"?function(e){return typeof e=="symbol"}:function(e){return e instanceof j};var J=function e(t,r,n){if(t===z)J(U,r,n);g(t);r=w(r,true);g(n);if(a(H,r)){if(!n.enumerable){if(!a(t,R))L(t,R,E(1,{}));t[R][r]=true}else{if(a(t,R)&&t[R][r])t[R][r]=false;n=x(n,{enumerable:E(0,false)})}return K(t,r,n)}return L(t,r,n)};var Z=function e(t,r){g(t);var n=m(r=_(r));var a=0;var i=n.length;var o;while(i>a)J(t,o=n[a++],r[o]);return t};var X=function e(t,r){return r===undefined?x(t):Z(x(t),r)};var $=function e(t){var r=Y.call(this,t=w(t,true));if(this===z&&a(H,t)&&!a(U,t))return false;return r||!a(this,t)||!a(H,t)||a(this,R)&&this[R][t]?r:true};var ee=function e(t,r){t=_(t);r=w(r,true);if(t===z&&a(H,r)&&!a(U,r))return;var n=T(t,r);if(n&&a(H,r)&&!(a(t,R)&&t[R][r]))n.enumerable=true;return n};var te=function e(t){var r=C(_(t));var n=[];var i=0;var o;while(r.length>i){if(!a(H,o=r[i++])&&o!=R&&o!=u)n.push(o)}return n};var re=function e(t){var r=t===z;var n=C(r?U:_(t));var i=[];var o=0;var s;while(n.length>o){if(a(H,s=n[o++])&&(r?a(z,s):true))i.push(H[s])}return i};if(!q){j=function e(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:undefined);var r=function(e){if(this===z)r.call(U,e);if(a(this,R)&&a(this[R],t))this[R][t]=false;K(this,t,E(1,e))};if(i&&W)K(z,t,{configurable:true,set:r});return G(t)};s(j[P],"toString",(function e(){return this._k}));S.f=ee;M.f=J;r(631).f=k.f=te;r(158).f=$;O.f=re;if(i&&!r(192)){s(z,"propertyIsEnumerable",$,true)}h.f=function(e){return G(p(e))}}o(o.G+o.W+o.F*!q,{Symbol:j});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ae=0;ne.length>ae;)p(ne[ae++]);for(var ie=D(p.store),oe=0;ie.length>oe;)v(ie[oe++]);o(o.S+o.F*!q,"Symbol",{for:function(e){return a(B,e+="")?B[e]:B[e]=j(e)},keyFor:function e(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var r in B)if(B[r]===t)return r},useSetter:function(){W=true},useSimple:function(){W=false}});o(o.S+o.F*!q,"Object",{create:X,defineProperty:J,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:re});var se=l((function(){O.f(1)}));o(o.S+o.F*se,"Object",{getOwnPropertySymbols:function e(t){return O.f(A(t))}});N&&o(o.S+o.F*(!q||l((function(){var e=j();return I([e])!="[null]"||I({a:e})!="{}"||I(Object(e))!="{}"}))),"JSON",{stringify:function e(t){var r=[t];var n=1;var a,i;while(arguments.length>n)r.push(arguments[n++]);i=a=r[1];if(!b(a)&&t===undefined||Q(t))return;if(!y(a))a=function(e,t){if(typeof i=="function")t=i.call(this,e,t);if(!Q(t))return t};r[1]=a;return I.apply(N,r)}});j[P][F]||r(129)(j[P],F,j[P].valueOf);f(j,"Symbol");f(Math,"Math",true);f(n.JSON,"JSON",true)},function(e,t,r){var n=r(193)("meta");var a=r(131);var i=r(108);var o=r(83).f;var s=0;var u=Object.isExtensible||function(){return true};var l=!r(107)((function(){return u(Object.preventExtensions({}))}));var c=function(e){o(e,n,{value:{i:"O"+ ++s,w:{}}})};var f=function(e,t){if(!a(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!i(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i};var d=function(e,t){if(!i(e,n)){if(!u(e))return true;if(!t)return false;c(e)}return e[n].w};var p=function(e){if(l&&h.NEED&&u(e)&&!i(e,n))c(e);return e};var h=e.exports={KEY:n,NEED:false,fastKey:f,getWeak:d,onFreeze:p}},function(e,t,r){var n=r(132);var a=r(279);var i=r(158);e.exports=function(e){var t=n(e);var r=a.f;if(r){var o=r(e);var s=i.f;var u=0;var l;while(o.length>u)if(s.call(e,l=o[u++]))t.push(l)}return t}},function(e,t,r){var n=r(109);var a=r(631).f;var i={}.toString;var o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var s=function(e){try{return a(e)}catch(e){return o.slice()}};e.exports.f=function e(t){return o&&i.call(t)=="[object Window]"?s(t):a(n(t))}},function(e,t){},function(e,t,r){r(311)("asyncIterator")},function(e,t,r){r(311)("observable")},function(e,t,r){e.exports={default:r(585),__esModule:true}},function(e,t,r){e.exports={default:r(584),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(309);var a=c(n);var i=r(346);var o=r(261);var s=c(o);var u=r(1156);var l=c(u);function c(e){return e&&e.__esModule?e:{default:e}}var f=(typeof window==="undefined"?"undefined":(0,a.default)(window))==="object"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:i.compose;t.default=function(){return(0,i.createStore)(l.default,f((0,i.applyMiddleware)(s.default)))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(114);var a=A(n);var i=r(163);var o=A(i);var s=r(115);var u=A(s);var l=r(53);var c=A(l);var f=r(1158);var d=A(f);var p=r(43);var h=r(1160);var v=A(h);var m=r(1165);var y=A(m);var g=r(1168);var b=A(g);function A(e){return e&&e.__esModule?e:{default:e}}var _={request:null,draggable:{},droppable:{}};var w={x:0,y:0};var E=(0,c.default)((function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"IDLE";return{phase:e,drag:null,drop:null,dimension:_}}));var x=function e(t){var r=t.state,n=t.clientSelection,a=t.shouldAnimate,i=a===undefined?false:a,o=t.windowScroll,s=t.impact;if(r.phase!=="DRAGGING"){console.error("cannot move while not dragging");return E()}if(r.drag==null){console.error("cannot move if there is no drag information");return E()}var l=r.drag.current;var c=r.drag.initial;var f=o||l.windowScroll;var d=function(){var e=(0,p.subtract)(n,c.client.selection);var t={offset:e,selection:n,center:(0,p.add)(e,c.client.center)};return t}();var h={selection:(0,p.add)(d.selection,f),offset:(0,p.add)(d.offset,f),center:(0,p.add)(d.center,f)};var m={id:l.id,type:l.type,isScrollAllowed:l.isScrollAllowed,client:d,page:h,shouldAnimate:i,windowScroll:f};var y=r.drag&&r.drag.impact.destination?r.drag.impact.destination.droppableId:null;var g=s||(0,v.default)({pageCenter:h.center,draggable:r.dimension.draggable[m.id],draggables:r.dimension.draggable,droppables:r.dimension.droppable,previousDroppableOverId:y});var b={initial:c,impact:g,current:m,previous:{droppableOverId:y}};return(0,u.default)({},r,{drag:b})};t.default=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:E("IDLE");var t=arguments[1];if(t.type==="CLEAN"){return E()}if(t.type==="PREPARE"){return E("PREPARING")}if(t.type==="REQUEST_DIMENSIONS"){if(e.phase!=="PREPARING"){console.error("trying to start a lift while not preparing for a lift");return E()}var r=t.payload;return{phase:"COLLECTING_DIMENSIONS",drag:null,drop:null,dimension:{request:r,draggable:{},droppable:{}}}}if(t.type==="PUBLISH_DRAGGABLE_DIMENSION"){var n=t.payload;if(e.phase!=="COLLECTING_DIMENSIONS"){console.warn("dimension rejected as no longer requesting dimensions",n);return e}if(e.dimension.draggable[n.id]){console.error("dimension already exists for "+n.id);return e}return(0,u.default)({},e,{dimension:{request:e.dimension.request,droppable:e.dimension.droppable,draggable:(0,u.default)({},e.dimension.draggable,(0,o.default)({},n.id,n))}})}if(t.type==="PUBLISH_DROPPABLE_DIMENSION"){var i=t.payload;if(e.phase!=="COLLECTING_DIMENSIONS"){console.warn("dimension rejected as no longer requesting dimensions",i);return e}if(e.dimension.droppable[i.id]){console.error("dimension already exists for "+i.id);return e}return(0,u.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},i.id,i))}})}if(t.type==="COMPLETE_LIFT"){if(e.phase!=="COLLECTING_DIMENSIONS"){console.error("trying complete lift without collecting dimensions");return e}var s=t.payload,l=s.id,c=s.type,f=s.client,h=s.windowScroll,v=s.isScrollAllowed;var m=e.dimension.draggable;var g=e.dimension.draggable[l];var A=e.dimension.droppable[g.droppableId];var k={selection:(0,p.add)(f.selection,h),center:(0,p.add)(f.center,h)};var S=(0,d.default)({draggable:g,droppable:A,draggables:m});if(!S||!S.destination){console.error("invalid lift state");return E()}var O=S.destination;var M={source:O,client:f,page:k,windowScroll:h};var D={id:l,type:c,client:{selection:f.selection,center:f.center,offset:w},page:{selection:k.selection,center:k.center,offset:w},windowScroll:h,isScrollAllowed:v,shouldAnimate:false};return(0,u.default)({},e,{phase:"DRAGGING",drag:{initial:M,current:D,impact:S}})}if(t.type==="UPDATE_DROPPABLE_DIMENSION_SCROLL"){if(e.phase!=="DRAGGING"){console.error("cannot update a droppable dimensions scroll when not dragging");return E()}if(e.drag==null){console.error("invalid store state");return E()}if(!e.drag.current.isScrollAllowed){return E()}var T=t.payload,L=T.id,C=T.offset;var j=e.dimension.droppable[L];if(!j){console.error("cannot update a droppable that is not inside of the state",L);return E()}var N=(0,u.default)({},j,{container:(0,u.default)({},j.container,{scroll:(0,u.default)({},j.container.scroll,{current:C})})});var I=(0,u.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},L,N))}});return x({state:I,clientSelection:e.drag.current.client.selection})}if(t.type==="UPDATE_DROPPABLE_DIMENSION_IS_ENABLED"){if(!(0,a.default)(e.dimension.droppable).length){return e}var P=t.payload,R=P.id,F=P.isEnabled;var Y=e.dimension.droppable[R];if(!Y){console.error("cannot update enabled flag on droppable that does not have a dimension");return E()}if(Y.isEnabled===F){console.warn("trying to set droppable isEnabled to "+String(F)+" but it is already "+String(F));return e}var B=(0,u.default)({},Y,{isEnabled:F});return(0,u.default)({},e,{dimension:(0,u.default)({},e.dimension,{droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},R,B))})})}if(t.type==="MOVE"){var H=t.payload,U=H.client,z=H.windowScroll;return x({state:e,clientSelection:U,windowScroll:z})}if(t.type==="MOVE_BY_WINDOW_SCROLL"){var q=t.payload.windowScroll;if(!e.drag){console.error("cannot move with window scrolling if no current drag");return E()}return x({state:e,clientSelection:e.drag.current.client.selection,windowScroll:q})}if(t.type==="MOVE_FORWARD"||t.type==="MOVE_BACKWARD"){if(e.phase!=="DRAGGING"){console.error("cannot move while not dragging",t);return E()}if(!e.drag){console.error("cannot move if there is no drag information");return E()}var V=e.drag;var W=t.type==="MOVE_FORWARD";if(!V.impact.destination){console.error("cannot move if there is no previous destination");return E()}var K=e.dimension.droppable[V.impact.destination.droppableId];var G=(0,y.default)({isMovingForward:W,draggableId:V.current.id,impact:V.impact,droppable:K,draggables:e.dimension.draggable});if(!G){return e}var Q=G.impact;var J=G.pageCenter;var Z=(0,p.subtract)(J,V.current.windowScroll);return x({state:e,impact:Q,clientSelection:Z,shouldAnimate:true})}if(t.type==="CROSS_AXIS_MOVE_FORWARD"||t.type==="CROSS_AXIS_MOVE_BACKWARD"){if(e.phase!=="DRAGGING"){console.error("cannot move cross axis when not dragging");return E()}if(!e.drag){console.error("cannot move cross axis if there is no drag information");return E()}if(!e.drag.impact.destination){console.error("cannot move cross axis if not in a droppable");return E()}var X=e.drag.current;var $=X.id;var ee=X.page.center;var te=e.drag.impact.destination.droppableId;var re=e.drag.initial.source;var ne=(0,b.default)({isMovingForward:t.type==="CROSS_AXIS_MOVE_FORWARD",pageCenter:ee,draggableId:$,droppableId:te,home:re,draggables:e.dimension.draggable,droppables:e.dimension.droppable});if(!ne){return e}var ae=ne.pageCenter;var ie=(0,p.subtract)(ae,X.windowScroll);return x({state:e,clientSelection:ie,impact:ne.impact,shouldAnimate:true})}if(t.type==="DROP_ANIMATE"){var oe=t.payload,se=oe.trigger,ue=oe.newHomeOffset,le=oe.impact,ce=oe.result;if(e.phase!=="DRAGGING"){console.error("cannot animate drop while not dragging",t);return e}if(!e.drag){console.error("cannot animate drop - invalid drag state");return E()}var fe={trigger:se,newHomeOffset:ue,result:ce,impact:le};return{phase:"DROP_ANIMATING",drag:null,drop:{pending:fe,result:null},dimension:e.dimension}}if(t.type==="DROP_COMPLETE"){var de=t.payload;return{phase:"DROP_COMPLETE",drag:null,drop:{pending:null,result:de},dimension:_}}return e}},function(e,t,r){e.exports={default:r(578),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(116);var a=o(n);var i=r(312);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggable,r=e.droppable,n=e.draggables;var o=(0,a.default)(r,n);var s=o.indexOf(t);if(s===-1){console.error("lifting a draggable that is not inside a droppable");return null}var u={index:s,droppableId:r.id};var l={movement:i.noMovement,direction:r.axis.direction,destination:u};return l}},function(e,t,r){e.exports={default:r(594),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1161);var a=p(n);var i=r(116);var o=p(i);var s=r(312);var u=p(s);var l=r(1163);var c=p(l);var f=r(1164);var d=p(f);function p(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,r=e.draggable,n=e.draggables,i=e.droppables,s=e.previousDroppableOverId;var l=(0,a.default)({target:t,draggable:r,draggables:n,droppables:i,previousDroppableOverId:s});if(!l){return u.default}var f=i[l];if(!f.isEnabled){return u.default}var p=i[r.droppableId];var h=p.id===l;var v=(0,o.default)(f,n);if(h){return(0,c.default)({pageCenter:t,draggable:r,home:p,insideHome:v})}return(0,d.default)({pageCenter:t,draggable:r,destination:f,insideDestination:v})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(114);var a=y(n);var i=r(115);var o=y(i);var s=r(53);var u=y(s);var l=r(314);var c=r(315);var f=y(c);var d=r(116);var p=y(d);var h=r(164);var v=r(43);var m=r(207);function y(e){return e&&e.__esModule?e:{default:e}}var g={x:0,y:0};var b=function e(t){return function(e){return(0,l.getFragment)((0,f.default)((0,m.addPosition)(e,t)))}};var A=(0,u.default)((function(e,t){var r=t.id,n=t.axis,a=t.isEnabled,i=t.client,s=t.container,u=t.page;var l=b(e);var c={withoutMargin:l(i.withoutMargin),withMargin:l(i.withMargin),withMarginAndPadding:l(i.withMarginAndPadding)};var f={withoutMargin:l(u.withoutMargin),withMargin:l(u.withMargin),withMarginAndPadding:l(u.withMarginAndPadding)};var d=t.page.withMargin[t.axis.size]<=t.container.bounds[t.axis.size];var p=d?l(s.bounds):(0,o.default)({},s.bounds);return{id:r,axis:n,isEnabled:a,client:c,page:f,container:{scroll:s.scroll,bounds:p}}}));var _=(0,u.default)((function(e,t,r){var n=(0,p.default)(r,t);if(!n.length){return g}var a=r.page.withMargin[r.axis.end]-n[n.length-1].page.withMargin[r.axis.end];var i=Math.max(e.page.withMargin[r.axis.size]-a,0);var o=(0,v.patch)(r.axis.line,i);return o}));var w=function e(t){var r=t.draggable,n=t.draggables,a=t.droppable,i=t.previousDroppableOverId;var o=r.droppableId===a.id;var s=i&&i===a.id;if(o||!s){return a}var u=_(r,n,a);return A(u,a)};t.default=function(e){var t=e.target,r=e.draggable,n=e.draggables,i=e.droppables,o=e.previousDroppableOverId;var s=(0,a.default)(i).map((function(e){return i[e]})).find((function(e){var a=w({draggable:r,draggables:n,droppable:e,previousDroppableOverId:o});return(0,h.isPointWithinDroppable)(a)(t)}));return s?s.id:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.vertical={direction:"vertical",line:"y",crossLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"};var a=t.horizontal={direction:"horizontal",line:"x",crossLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);t.default=function(e){var t=e.pageCenter,r=e.draggable,a=e.home,i=e.insideHome;var o=a.axis;var s=(0,n.subtract)(a.container.scroll.current,a.container.scroll.initial);var u=(0,n.add)(t,s);var l=r.page.withoutMargin.center;var c=u[o.line]-l[o.line]>0;var f=i.filter((function(e){if(e===r){return false}var t=e.page.withoutMargin;if(c){if(t.center[o.line]<l[o.line]){return false}return u[o.line]>t[o.start]}if(l[o.line]<t.center[o.line]){return false}return u[o.line]<t[o.end]})).map((function(e){return e.id}));var d=c?f.reverse():f;var p=function(){var e=i.indexOf(r);if(!f.length){return e}if(c){return e+f.length}return e-f.length}();var h={amount:(0,n.patch)(o.line,r.page.withMargin[o.size]),draggables:d,isBeyondStartPosition:c};var v={movement:h,direction:o.direction,destination:{droppableId:a.id,index:p}};return v}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);t.default=function(e){var t=e.pageCenter,r=e.draggable,a=e.destination,i=e.insideDestination;var o=a.axis;var s=(0,n.subtract)(a.container.scroll.current,a.container.scroll.initial);var u=(0,n.add)(t,s);var l=i.filter((function(e){var t=e.page.withoutMargin[o.end];return t>u[o.line]})).map((function(e){return e.id}));var c=i.length-l.length;var f={amount:(0,n.patch)(o.line,r.page.withMargin[o.size]),draggables:l,isBeyondStartPosition:false};var d={movement:f,direction:o.direction,destination:{droppableId:a.id,index:c}};return d}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1166);var a=s(n);var i=r(1167);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggableId,r=e.draggables,n=e.droppable;var i=r[t];var s=i.droppableId===n.id;if(!n.isEnabled){return null}if(s){return(0,a.default)(e)}return(0,o.default)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(313);var a=p(n);var i=r(53);var o=p(i);var s=r(116);var u=p(s);var l=r(164);var c=r(43);var f=r(165);var d=p(f);function p(e){return e&&e.__esModule?e:{default:e}}var h=(0,o.default)((function(e,t){return e.indexOf(t)}));t.default=function(e){var t=e.isMovingForward,r=e.draggableId,n=e.impact,i=e.droppable,o=e.draggables;if(!n.destination){console.error("cannot move to next index when there is not previous destination");return null}var s=n.destination;var f=o[r];var p=i.axis;var v=(0,u.default)(i,o);var m=h(v,f);var y=s.index;var g=t?y+1:y-1;if(m===-1){console.error("could not find draggable inside current droppable");return null}if(g>v.length-1){return null}if(g<0){return null}var b=v[g];var A=t&&g<=m||!t&&g>=m;var _=function(){if(!A){return t?"end":"start"}return t?"start":"end"}();var w=(0,d.default)({source:f.page.withoutMargin,sourceEdge:_,destination:b.page.withoutMargin,destinationEdge:_,destinationAxis:i.axis});var E=(0,l.isPointWithinDroppable)(i)(w);if(!E){return null}var x=A?n.movement.draggables.slice(1,n.movement.draggables.length):[b.id].concat((0,a.default)(n.movement.draggables));var k={movement:{draggables:x,amount:(0,c.patch)(p.line,f.page.withMargin[p.size]),isBeyondStartPosition:g>m},destination:{droppableId:i.id,index:g},direction:i.axis.direction};var S={pageCenter:w,impact:k};return S}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(313);var a=f(n);var i=r(116);var o=f(i);var s=r(164);var u=r(43);var l=r(165);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.draggableId,n=e.impact,i=e.droppable,l=e.draggables;if(!n.destination){console.error("cannot move to next index when there is not previous destination");return null}var f=n.destination;var d=l[r];var p=i.axis;var h=(0,o.default)(i,l);var v=f.index;var m=t?v+1:v-1;var y=h.length-1;if(m>h.length){return null}if(m<0){return null}var g=h[Math.min(m,y)];var b=m>y;var A="start";var _=function(){if(b){return"end"}return"start"}();var w=(0,c.default)({source:d.page.withoutMargin,sourceEdge:A,destination:g.page.withMargin,destinationEdge:_,destinationAxis:i.axis});var E=function(){if(b){return true}return(0,s.isPointWithinDroppable)(i)(w)}();if(!E){return null}var x=t?n.movement.draggables.slice(1,n.movement.draggables.length):[g.id].concat((0,a.default)(n.movement.draggables));var k={movement:{draggables:x,amount:(0,u.patch)(p.line,d.page.withMargin[p.size]),isBeyondStartPosition:false},destination:{droppableId:i.id,index:m},direction:i.axis.direction};return{pageCenter:w,impact:k}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1169);var a=f(n);var i=r(1170);var o=f(i);var s=r(1171);var u=f(s);var l=r(116);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.pageCenter,n=e.draggableId,i=e.droppableId,s=e.home,l=e.draggables,f=e.droppables;var d=l[n];var p=f[i];var h=(0,a.default)({isMovingForward:t,pageCenter:r,source:p,droppables:f});if(!h){return null}var v=(0,c.default)(h,l);var m=(0,o.default)({axis:h.axis,pageCenter:r,destination:h,insideDestination:v});if(v.length&&!m){return null}return(0,u.default)({pageCenter:r,destination:h,draggable:d,target:m,insideDestination:v,home:s})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(114);var a=c(n);var i=r(43);var o=r(632);var s=c(o);var u=r(207);var l=r(164);function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.pageCenter,n=e.source,o=e.droppables;var c=n.axis;var f=(0,l.getVisibleBounds)(n);var d=(0,a.default)(o).map((function(e){return o[e]})).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).map((function(e){return{bounds:(0,l.getVisibleBounds)(e),droppable:e}})).filter((function(e){var r=e.bounds;if(t){return f[c.crossAxisEnd]<=r[c.crossAxisStart]}return r[c.crossAxisEnd]<=f[c.crossAxisStart]})).filter((function(e){var t=e.bounds;var r=(0,s.default)(f[c.start],f[c.end]);var n=(0,s.default)(t[c.start],t[c.end]);return r(t[c.start])||r(t[c.end])||n(f[c.start])||n(f[c.end])})).filter((function(e){var t=e.droppable;return t.page.withoutMargin[c.crossAxisStart]>=t.container.bounds[c.crossAxisStart]&&t.page.withoutMargin[c.crossAxisEnd]<=t.container.bounds[c.crossAxisEnd]})).sort((function(e,r){var n=e.bounds;var a=r.bounds;var i=n[c.crossAxisStart];var o=a[c.crossAxisStart];if(t){return i-o}return o-i})).filter((function(e,t,r){var n=e.bounds;return n[c.crossAxisStart]===r[0].bounds[c.crossAxisStart]}));if(!d.length){return null}if(d.length===1){return d[0].droppable}var p=d.filter((function(e){var t=e.bounds;var n=(0,s.default)(t[c.start],t[c.end]);return n(r[c.line])}));if(p.length===1){return p[0].droppable}if(p.length>1){return p.sort((function(e,t){var r=e.bounds;var n=t.bounds;return r[c.start]-n[c.start]}))[0].droppable}return d.sort((function(e,t){var n=e.bounds;var a=t.bounds;var o=(0,i.closest)(r,(0,u.getCorners)(n));var s=(0,i.closest)(r,(0,u.getCorners)(a));if(o!==s){return o-s}return n[c.start]-a[c.start]}))[0].droppable}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);var a=r(164);t.default=function(e){var t=e.axis,r=e.pageCenter,i=e.destination,o=e.insideDestination;if(!o.length){return null}var s=(0,a.isDraggableWithin)(i.container.bounds);var u=o.filter(s).sort((function(e,a){var i=(0,n.distance)(r,e.page.withMargin.center);var o=(0,n.distance)(r,a.page.withMargin.center);if(i<o){return-1}if(o<i){return 1}return e.page.withMargin[t.start]-a.page.withMargin[t.start]}));return u.length?u[0]:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1172);var a=u(n);var i=r(1173);var o=u(i);var s=r(43);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,r=e.destination,n=e.draggable,i=e.target,u=e.home,l=e.insideDestination;var c=(0,s.patch)(r.axis.line,n.page.withMargin[r.axis.size]);if(r.id===n.droppableId){return(0,a.default)({amount:c,originalIndex:u.index,target:i,insideDroppable:l,draggable:n,droppable:r})}return(0,o.default)({amount:c,pageCenter:t,target:i,insideDroppable:l,draggable:n,droppable:r})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,r=e.originalIndex,n=e.target,i=e.insideDroppable,o=e.draggable,s=e.droppable;if(!n){console.error("there will always be a target in the original list");return null}var u=s.axis;var l=i.indexOf(n);if(l===-1){console.error("unable to find target in destination droppable");return null}if(l===r){var c=o.page.withoutMargin.center;var f={movement:{draggables:[],amount:t,isBeyondStartPosition:false},direction:s.axis.direction,destination:{droppableId:s.id,index:r}};return{pageCenter:c,impact:f}}var d=l>r;var p=d?"end":"start";var h=(0,a.default)({source:o.page.withoutMargin,sourceEdge:p,destination:d?n.page.withoutMargin:n.page.withMargin,destinationEdge:p,destinationAxis:u});var v=function(){if(!d){return i.slice(l,r)}var e=r+1;var t=l+1;return i.slice(e,t).reverse()}().map((function(e){return e.id}));var m={movement:{draggables:v,amount:t,isBeyondStartPosition:d},direction:u.direction,destination:{droppableId:s.id,index:l}};return{pageCenter:h,impact:m}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,r=e.pageCenter,n=e.target,i=e.insideDroppable,o=e.draggable,s=e.droppable;var u=s.axis;var l=Boolean(n&&r[s.axis.line]<n.page.withMargin.center[s.axis.line]);if(!n){var c=(0,a.default)({source:o.page.withoutMargin,sourceEdge:"start",destination:s.page.withMarginAndPadding,destinationEdge:"start",destinationAxis:u});var f={movement:{draggables:[],amount:t,isBeyondStartPosition:false},direction:u.direction,destination:{droppableId:s.id,index:0}};return{pageCenter:c,impact:f}}var d=i.indexOf(n);var p=l?d:d+1;if(d===-1){console.error("could not find target inside destination");return null}var h=(0,a.default)({source:o.page.withoutMargin,sourceEdge:"start",destination:n.page.withMargin,destinationEdge:l?"start":"end",destinationAxis:u});var v=i.slice(p,i.length).map((function(e){return e.id}));var m={movement:{draggables:v,amount:t,isBeyondStartPosition:false},direction:u.direction,destination:{droppableId:s.id,index:p}};return{pageCenter:h,impact:m}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e,t,r){var n=e.onDragStart,a=e.onDragEnd;var i=t.phase;var o=r.phase;if(i===o){return}if(i==="DRAGGING"&&o!=="DRAGGING"){if(!n){return}if(!t.drag){console.error("cannot fire onDragStart hook without drag state",{current:t,previous:r});return}var s={draggableId:t.drag.current.id,type:t.drag.current.type,source:t.drag.initial.source};n(s);return}if(i==="DROP_COMPLETE"&&o!=="DROP_COMPLETE"){if(!t.drop||!t.drop.result){console.error("cannot fire onDragEnd hook without drag state",{current:t,previous:r});return}var u=t.drop.result,l=u.source,c=u.destination,f=u.draggableId,d=u.type;if(!c){a(t.drop.result);return}var p=l.droppableId!==c.droppableId||l.index!==c.index;if(p){a(t.drop.result);return}var h={draggableId:f,type:d,source:l,destination:null};a(h)}if(i==="IDLE"&&o==="DRAGGING"){if(!r.drag){console.error("cannot fire onDragEnd for cancel because cannot find previous drag");return}var v={draggableId:r.drag.current.id,type:r.drag.current.type,source:r.drag.initial.source,destination:null};a(v)}if(i==="IDLE"&&o==="DROP_ANIMATING"){if(!r.drop||!r.drop.pending){console.error("cannot fire onDragEnd for cancel because cannot find previous pending drop");return}var m={draggableId:r.drop.pending.result.draggableId,type:r.drop.pending.result.type,source:r.drop.pending.result.source,destination:null};a(m)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1176);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(217);var a=r(166);var i=r(53);var o=f(i);var s=r(117);var u=r(633);var l=r(1177);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=t.makeSelector=function e(){var t=function e(t,r){return r.droppableId};var r=function e(t,r){return r.isDropDisabled||false};var n=(0,o.default)((function(e,t){if(!t){return false}return t.droppableId===e}));var i=(0,o.default)((function(e,t){return{width:e,height:t}}));var s=(0,o.default)((function(e,t,r,n){if(!r){return null}if(r.droppableId!==e){return null}if(t.droppableId===r.droppableId){return null}if(!n){return null}var a=i(n.client.withoutMargin.width,n.client.withoutMargin.height);return a}));var l=(0,o.default)((function(e,t){return{isDraggingOver:e,placeholder:t}}));return(0,a.createSelector)([u.phaseSelector,u.dragSelector,u.draggingDraggableSelector,u.pendingDropSelector,t,r],(function(e,t,r,a,i,o){if(o){return l(false,null)}if(e==="DRAGGING"){if(!t){console.error("cannot determine dragging over as there is not drag");return l(false,null)}var u=n(i,t.impact.destination);var c=s(i,t.initial.source,t.impact.destination,r);return l(u,c)}if(e==="DROP_ANIMATING"){if(!a){console.error("cannot determine dragging over as there is no pending result");return l(false,null)}var f=n(i,a.impact.destination);var d=s(i,a.result.source,a.result.destination,r);return l(f,d)}return l(false,null)}))};var p=function e(){var t=d();return function(e,r){return t(e,r)}};t.default=(0,n.connect)(p,null,null,{storeKey:s.storeKey})(c.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(163);var a=x(n);var i=r(85);var o=x(i);var s=r(86);var u=x(s);var l=r(87);var c=x(l);var f=r(88);var d=x(f);var p=r(89);var h=x(p);var v=r(1);var m=x(v);var y=r(0);var g=x(y);var b=r(1178);var A=x(b);var _=r(635);var w=x(_);var E=r(117);function x(e){return e&&e.__esModule?e:{default:e}}var k=function(e){(0,h.default)(t,e);function t(){var e;var r,n,a;(0,u.default)(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++){s[l]=arguments[l]}return a=(r=(n=(0,d.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(s))),n),n.state={ref:null},n.setRef=function(e){if(e===null){return}if(e===n.state.ref){return}n.setState({ref:e})},r),(0,d.default)(n,a)}(0,c.default)(t,[{key:"getChildContext",value:function e(){var t=(0,a.default)({},E.droppableIdKey,this.props.droppableId);return t}},{key:"getPlaceholder",value:function e(){if(!this.props.placeholder){return null}return m.default.createElement(w.default,{height:this.props.placeholder.height,width:this.props.placeholder.width})}},{key:"render",value:function e(){var t=this.props,r=t.children,n=t.direction,a=t.droppableId,i=t.ignoreContainerClipping,o=t.isDraggingOver,s=t.isDropDisabled,u=t.type;var l={innerRef:this.setRef,placeholder:this.getPlaceholder()};var c={isDraggingOver:o};return m.default.createElement(A.default,{droppableId:a,direction:n,ignoreContainerClipping:i,isDropDisabled:s,type:u,targetRef:this.state.ref},r(l,c))}}]);return t}(v.Component);k.defaultProps={type:"DEFAULT",isDropDisabled:false,direction:"vertical",ignoreContainerClipping:false};k.childContextTypes=(0,a.default)({},E.droppableIdKey,g.default.string.isRequired);t.default=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1179);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(217);var a=r(166);var i=r(53);var o=f(i);var s=r(117);var u=r(1180);var l=f(u);var c=r(317);function f(e){return e&&e.__esModule?e:{default:e}}var d=function e(t){return t.dimension.request};var p=function e(t,r){return r.type};var h=t.makeSelector=function e(){var t=(0,o.default)((function(e){return{shouldPublish:e}}));return(0,a.createSelector)([p,d],(function(e,r){return t(e===r)}))};var v=function e(){var t=h();return function(e,r){return t(e,r)}};var m={publish:c.publishDroppableDimension,updateScroll:c.updateDroppableDimensionScroll,updateIsEnabled:c.updateDroppableDimensionIsEnabled};t.default=(0,n.connect)(v,m,null,{storeKey:s.storeKey})(l.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=O(n);var i=r(86);var o=O(i);var s=r(87);var u=O(s);var l=r(88);var c=O(l);var f=r(89);var d=O(f);var p=r(1);var h=r(9);var v=O(h);var m=r(634);var y=O(m);var g=r(53);var b=O(g);var A=r(316);var _=O(A);var w=r(315);var E=O(w);var x=r(314);var k=r(1181);var S=O(k);function O(e){return e&&e.__esModule?e:{default:e}}var M={x:0,y:0};var D=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.isWatchingScroll=false,n.closestScrollable=null,n.getScrollOffset=function(){if(!n.closestScrollable){return M}var e={x:n.closestScrollable.scrollLeft,y:n.closestScrollable.scrollTop};return e},n.getDimension=function(){var e=n.props,t=e.droppableId,r=e.direction,a=e.ignoreContainerClipping,i=e.isDropDisabled,o=e.targetRef;if(!o){throw new Error("DimensionPublisher cannot calculate a dimension when not attached to the DOM")}var s=n.getScrollOffset();var u=window.getComputedStyle(o);var l={top:parseInt(u.marginTop,10),right:parseInt(u.marginRight,10),bottom:parseInt(u.marginBottom,10),left:parseInt(u.marginLeft,10)};var c={top:parseInt(u.paddingTop,10),right:parseInt(u.paddingRight,10),bottom:parseInt(u.paddingBottom,10),left:parseInt(u.paddingLeft,10)};var f=o.getBoundingClientRect();var d=a||!n.closestScrollable||n.closestScrollable===o?f:(0,E.default)(n.closestScrollable.getBoundingClientRect());var p=(0,x.getDroppableDimension)({id:t,direction:r,clientRect:f,containerRect:d,margin:l,padding:c,windowScroll:(0,_.default)(),scroll:s,isEnabled:!i});return p},n.memoizedUpdateScroll=(0,b.default)((function(e,t){var r={x:e,y:t};n.props.updateScroll(n.props.droppableId,r)})),n.scheduleScrollUpdate=(0,y.default)((function(e){if(n.isWatchingScroll){n.memoizedUpdateScroll(e.x,e.y)}})),n.onClosestScroll=function(){n.scheduleScrollUpdate(n.getScrollOffset())},n.watchScroll=function(){(0,v.default)(n.props.targetRef,"cannot watch scroll if not in the dom");if(n.closestScrollable==null){return}if(n.isWatchingScroll){return}n.isWatchingScroll=true;n.closestScrollable.addEventListener("scroll",n.onClosestScroll,{passive:true})},n.unwatchScroll=function(){if(!n.isWatchingScroll){return}n.isWatchingScroll=false;if(!n.closestScrollable){console.error("cannot unbind event listener if element is null");return}n.closestScrollable.removeEventListener("scroll",n.onClosestScroll)},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillUnmount",value:function e(){if(this.isWatchingScroll){this.unwatchScroll()}}},{key:"componentWillReceiveProps",value:function e(t){var r=!this.props.shouldPublish&&t.shouldPublish;var n=this.props.shouldPublish&&t.shouldPublish;var a=this.props.shouldPublish&&!t.shouldPublish;if(a){this.unwatchScroll();return}if(n){if(t.targetRef!==this.props.targetRef){if(this.isWatchingScroll){console.warn("changing targetRef while watching scroll!");this.unwatchScroll()}}if(t.isDropDisabled!==this.props.isDropDisabled){this.props.updateIsEnabled(this.props.droppableId,!t.isDropDisabled)}return}if(!r){return}this.closestScrollable=(0,S.default)(this.props.targetRef);this.props.publish(this.getDimension());this.watchScroll()}},{key:"render",value:function e(){return this.props.children}}]);return t}(p.Component);t.default=D},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function e(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++){r[n]=arguments[n]}return r.some((function(e){return e==="auto"||e==="scroll"}))};var a=function e(t){var r=window.getComputedStyle(t);return n(r.overflow,r.overflowY,r.overflowX)};var i=function e(t){if(t==null){return null}if(!a(t)){return e(t.parentElement)}return t};t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=s(n);var i=r(116);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.movement,r=e.draggable,n=e.draggables,i=e.destination;var s=r.client.withMargin.center;if(i==null){return s}var u=t.draggables,l=t.isBeyondStartPosition;var c=i.axis;var f=i.id===r.droppableId;if(f&&!u.length){return s}var d=(0,o.default)(i,n);var p=function(){if(f){return n[u[0]].client.withMargin}if(u.length){return n[u[0]].client.withMargin}if(d.length){return d[d.length-1].client.withMargin}return i.client.withMarginAndPadding}();var h=function(){if(f){if(l){return{sourceEdge:"end",destinationEdge:"end"}}return{sourceEdge:"start",destinationEdge:"start"}}if(!u.length&&d.length){return{sourceEdge:"start",destinationEdge:"end"}}return{sourceEdge:"start",destinationEdge:"start"}}(),v=h.sourceEdge,m=h.destinationEdge;var y=r.client.withMargin;var g=(0,a.default)({source:y,sourceEdge:v,destination:p,destinationEdge:m,destinationAxis:c});return g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=v(n);var i=r(86);var o=v(i);var s=r(87);var u=v(s);var l=r(88);var c=v(l);var f=r(89);var d=v(f);var p=r(1);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}var m=function(e){(0,d.default)(t,e);function t(){(0,o.default)(this,t);return(0,c.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}(0,u.default)(t,[{key:"render",value:function e(){var t={width:this.props.width,height:this.props.height,pointerEvents:"none"};return h.default.createElement("div",{style:t})}}]);return t}(p.PureComponent);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1185);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(115);var a=v(n);var i=r(53);var o=v(i);var s=r(217);var u=r(166);var l=r(633);var c=r(1186);var f=v(c);var d=r(117);var p=r(43);var h=r(317);function v(e){return e&&e.__esModule?e:{default:e}}var m={x:0,y:0};var y={isDropAnimating:false,isDragging:false,canLift:true,canAnimate:false,offset:m,dimension:null,direction:null};var g=(0,a.default)({},y,{canLift:false});var b=t.makeSelector=function e(){var t=function e(t,r){return r.draggableId};var r=function e(t,r){return r.type||"DEFAULT"};var n=(0,o.default)((function(e,t){return{x:e,y:t}}));var a=(0,o.default)((function(e,t){return{isDropAnimating:false,isDragging:false,canAnimate:true,canLift:t,offset:e,dimension:null,direction:null}}));var i=(0,o.default)((function(e,t,r){var i=t.draggables.indexOf(e)!==-1;if(!i){return a(m,r)}var o=t.isBeyondStartPosition?(0,p.negate)(t.amount):t.amount;return a(n(o.x,o.y),r)}));var s=function e(t,r){if(!t.dimension){return null}var n=t.dimension.draggable[r.draggableId];if(!n){return null}return n};return(0,u.createSelector)([t,r,l.phaseSelector,l.dragSelector,l.pendingDropSelector,s],(function(e,t,r,n,a,o){if(r==="DRAGGING"){if(!n){console.error("invalid dragging state");return y}var s=n.current,u=n.impact;if(s.type!==t){return y}if(s.id!==e){return i(e,u.movement,false)}var l=s.client.offset;var c=s.shouldAnimate;return{isDragging:true,canLift:false,isDropAnimating:false,canAnimate:c,offset:l,dimension:o,direction:u.direction}}if(r==="DROP_ANIMATING"){if(!a){console.error("cannot animate drop without a pending drop");return y}if(t!==a.result.type){return y}if(a.result.draggableId!==e){var f=a.trigger==="DROP";return i(e,a.impact.movement,f)}return{isDragging:false,isDropAnimating:true,canAnimate:true,offset:a.newHomeOffset,canLift:false,dimension:o,direction:null}}if(r==="PREPARING"||r==="COLLECTING_DIMENSIONS"){return g}return y}))};var A=function e(){var t=b();return function(e,r){return t(e,r)}};var _={lift:h.lift,move:h.move,moveForward:h.moveForward,moveBackward:h.moveBackward,crossAxisMoveForward:h.crossAxisMoveForward,crossAxisMoveBackward:h.crossAxisMoveBackward,moveByWindowScroll:h.moveByWindowScroll,drop:h.drop,dropAnimationFinished:h.dropAnimationFinished,cancel:h.cancel};t.default=(0,s.connect)(A,_,null,{storeKey:d.storeKey})(f.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.zIndexOptions=undefined;var n=r(163);var a=R(n);var i=r(85);var o=R(i);var s=r(86);var u=R(s);var l=r(87);var c=R(l);var f=r(88);var d=R(f);var p=r(89);var h=R(p);var v=r(1);var m=R(v);var y=r(0);var g=R(y);var b=r(53);var A=R(b);var _=r(9);var w=R(_);var E=r(1187);var x=R(E);var k=r(1190);var S=R(k);var O=r(1200);var M=R(O);var D=r(637);var T=r(316);var L=R(T);var C=r(640);var j=R(C);var N=r(635);var I=R(N);var P=r(117);function R(e){return e&&e.__esModule?e:{default:e}}var F=t.zIndexOptions={dragging:5e3,dropAnimating:4500};var Y=function(e){(0,h.default)(t,e);function t(e,r){(0,u.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,r));n.state={ref:null};n.onMoveEnd=function(){if(!n.props.isDropAnimating){return}n.props.dropAnimationFinished()};n.onLift=function(e){n.throwIfCannotDrag();var t=e.client,r=e.isScrollAllowed;var a=n.props,i=a.lift,o=a.draggableId,s=a.type;var u=n.state.ref;if(!u){throw new Error("cannot lift at this time")}var l={selection:t,center:(0,j.default)(u)};var c=(0,L.default)();i(o,s,l,c,r)};n.onMove=function(e){n.throwIfCannotDrag();var t=n.props,r=t.draggableId,a=t.dimension,i=t.move;if(!a){return}var o=(0,L.default)();i(r,e,o)};n.onMoveForward=function(){n.throwIfCannotDrag();n.props.moveForward(n.props.draggableId)};n.onMoveBackward=function(){n.throwIfCannotDrag();n.props.moveBackward(n.props.draggableId)};n.onCrossAxisMoveForward=function(){n.throwIfCannotDrag();n.props.crossAxisMoveForward(n.props.draggableId)};n.onCrossAxisMoveBackward=function(){n.throwIfCannotDrag();n.props.crossAxisMoveBackward(n.props.draggableId)};n.onWindowScroll=function(){n.throwIfCannotDrag();var e=(0,L.default)();n.props.moveByWindowScroll(n.props.draggableId,e)};n.onDrop=function(){n.throwIfCannotDrag();n.props.drop()};n.onCancel=function(){n.props.cancel()};n.setRef=function(e){if(e===null){return}if(e===n.state.ref){return}n.setState({ref:e})};n.getDraggableRef=function(){return n.state.ref};n.getDraggingStyle=(0,A.default)((function(e,t,r,n,a,i){var o={position:"fixed",boxSizing:"border-box",pointerEvents:"none",zIndex:a?F.dropAnimating:F.dragging,width:e,height:t,top:r,left:n,margin:0,transform:i.transform?""+i.transform:null,WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",touchAction:"none"};return o}));n.getNotDraggingStyle=(0,A.default)((function(e,t,r){var n={transition:e?D.css.outOfTheWay:null,transform:t.transform,pointerEvents:r?"auto":"none",WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",touchAction:"none"};return n}));n.getProvided=(0,A.default)((function(e,t,r,a,i,o,s){var u=e||t;var l=function(){if(!u){return n.getNotDraggingStyle(a,s,r)}(0,w.default)(i,"draggable dimension required for dragging");var e=i.client.withoutMargin,o=e.width,l=e.height,c=e.top,f=e.left;return n.getDraggingStyle(o,l,c,f,t,s)}();var c={innerRef:n.setRef,placeholder:u?n.getPlaceholder():null,dragHandleProps:o,draggableStyle:l};return c}));n.getSnapshot=(0,A.default)((function(e,t){return{isDragging:e||t}}));n.getSpeed=(0,A.default)((function(e,t,r){if(!r){return"INSTANT"}if(t){return"STANDARD"}if(e){return"FAST"}return"INSTANT"}));var a={onLift:n.onLift,onMove:n.onMove,onDrop:n.onDrop,onCancel:n.onCancel,onMoveBackward:n.onMoveBackward,onMoveForward:n.onMoveForward,onCrossAxisMoveForward:n.onCrossAxisMoveForward,onCrossAxisMoveBackward:n.onCrossAxisMoveBackward,onWindowScroll:n.onWindowScroll};n.callbacks=a;return n}(0,c.default)(t,[{key:"throwIfCannotDrag",value:function e(){(0,w.default)(this.state.ref,"Draggable: cannot drag as no DOM node has been provided");(0,w.default)(!this.props.isDragDisabled,"Draggable: cannot drag as dragging is not enabled")}},{key:"getPlaceholder",value:function e(){var t=this.props.dimension;(0,w.default)(t,"cannot get a drag placeholder when not dragging");return m.default.createElement(I.default,{height:t.page.withMargin.height,width:t.page.withMargin.width})}},{key:"render",value:function e(){var t=this;var r=this.props,n=r.draggableId,a=r.type,i=r.offset,o=r.isDragging,s=r.isDropAnimating,u=r.canLift,l=r.canAnimate,c=r.isDragDisabled,f=r.dimension,d=r.children,p=r.direction;var h=this.getSpeed(o,s,l);return m.default.createElement(x.default,{draggableId:n,droppableId:this.context[P.droppableIdKey],type:a,targetRef:this.state.ref},m.default.createElement(S.default,{speed:h,destination:i,onMoveEnd:this.onMoveEnd},(function(e){return m.default.createElement(M.default,{isDragging:o,direction:p,isEnabled:!c,canLift:u,callbacks:t.callbacks,getDraggableRef:t.getDraggableRef},(function(r){return d(t.getProvided(o,s,u,l,f,r,e),t.getSnapshot(o,s))}))})))}}]);return t}(v.Component);Y.defaultProps={isDragDisabled:false,type:"DEFAULT"};Y.contextTypes=(0,a.default)({},P.droppableIdKey,g.default.string.isRequired);t.default=Y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1188);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(217);var a=r(53);var i=f(a);var o=r(166);var s=r(117);var u=r(317);var l=r(1189);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=function e(t){return t.dimension.request};var p=function e(t,r){return r.type};var h=t.makeSelector=function e(){var t=(0,i.default)((function(e){return{shouldPublish:e}}));return(0,o.createSelector)([p,d],(function(e,r){return t(e===r)}))};var v=function e(){var t=h();return function(e,r){return t(e,r)}};var m={publish:u.publishDraggableDimension};t.default=(0,n.connect)(v,m,null,{storeKey:s.storeKey})(c.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=b(n);var i=r(86);var o=b(i);var s=r(87);var u=b(s);var l=r(88);var c=b(l);var f=r(89);var d=b(f);var p=r(1);var h=r(9);var v=b(h);var m=r(316);var y=b(m);var g=r(314);function b(e){return e&&e.__esModule?e:{default:e}}var A=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.getDimension=function(){var e=n.props,t=e.draggableId,r=e.droppableId,a=e.targetRef;(0,v.default)(a,"DraggableDimensionPublisher cannot calculate a dimension when not attached to the DOM");var i=window.getComputedStyle(a);var o={top:parseInt(i.marginTop,10),right:parseInt(i.marginRight,10),bottom:parseInt(i.marginBottom,10),left:parseInt(i.marginLeft,10)};var s=a.getBoundingClientRect();var u=(0,g.getDraggableDimension)({id:t,droppableId:r,clientRect:s,margin:o,windowScroll:(0,y.default)()});return u},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillReceiveProps",value:function e(t){var r=!this.props.shouldPublish&&t.shouldPublish;if(r){this.props.publish(this.getDimension())}}},{key:"render",value:function e(){return this.props.children}}]);return t}(p.Component);t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1191);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=y(n);var i=r(86);var o=y(i);var s=r(87);var u=y(s);var l=r(88);var c=y(l);var f=r(89);var d=y(f);var p=r(1);var h=y(p);var v=r(1192);var m=r(637);function y(e){return e&&e.__esModule?e:{default:e}}var g={x:0,y:0};var b={transform:null};var A=function e(t){return t.x===g.x&&t.y===g.y};var _=function e(t,r,n){if(t){return b}var a={x:r,y:n};if(A(a)){return b}var i={transform:"translate("+a.x+"px, "+a.y+"px)"};return i};var w=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.onRest=function(){var e=n.props.onMoveEnd;if(!e){return}setTimeout((function(){return e()}))},n.getFinal=function(){var e=n.props.destination;var t=n.props.speed;if(t==="INSTANT"){return e}var r=t==="FAST"?m.physics.fast:m.physics.standard;return{x:(0,v.spring)(e.x,r),y:(0,v.spring)(e.y,r)}},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"render",value:function e(){var t=this;var r=this.getFinal();var n=A(r);return h.default.createElement(v.Motion,{defaultStyle:g,style:r,onRest:this.onRest},(function(e){return t.props.children(_(n,e.x,e.y))}))}}]);return t}(p.Component);w.defaultProps={destination:g};t.default=w},function(e,t,r){"use strict";t.__esModule=true;function n(e){return e&&e.__esModule?e["default"]:e}var a=r(1193);t.Motion=n(a);var i=r(1195);t.StaggeredMotion=n(i);var o=r(1196);t.TransitionMotion=n(o);var s=r(1198);t.spring=n(s);var u=r(636);t.presets=n(u);var l=r(208);t.stripStyle=n(l);var c=r(1199);t.reorderKeys=n(c)},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(318);var l=i(u);var c=r(208);var f=i(c);var d=r(319);var p=i(d);var h=r(320);var v=i(h);var m=r(63);var y=i(m);var g=r(321);var b=i(g);var A=r(1);var _=i(A);var w=r(0);var E=i(w);var x=1e3/60;var k=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyle:E["default"].objectOf(E["default"].number),style:E["default"].objectOf(E["default"].oneOfType([E["default"].number,E["default"].object])).isRequired,children:E["default"].func.isRequired,onRest:E["default"].func},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.wasAnimating=false;this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyle=null;this.clearUnreadPropStyle=function(e){var t=false;var r=a.state;var i=r.currentStyle;var o=r.currentVelocity;var s=r.lastIdealStyle;var u=r.lastIdealVelocity;for(var l in e){if(!Object.prototype.hasOwnProperty.call(e,l)){continue}var c=e[l];if(typeof c==="number"){if(!t){t=true;i=n({},i);o=n({},o);s=n({},s);u=n({},u)}i[l]=c;o[l]=0;s[l]=c;u[l]=0}}if(t){a.setState({currentStyle:i,currentVelocity:o,lastIdealStyle:s,lastIdealVelocity:u})}};this.startAnimationIfNecessary=function(){a.animationID=y["default"]((function(e){var t=a.props.style;if(b["default"](a.state.currentStyle,t,a.state.currentVelocity)){if(a.wasAnimating&&a.props.onRest){a.props.onRest()}a.animationID=null;a.wasAnimating=false;a.accumulatedTime=0;return}a.wasAnimating=true;var r=e||v["default"]();var n=r-a.prevTime;a.prevTime=r;a.accumulatedTime=a.accumulatedTime+n;if(a.accumulatedTime>x*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var i=(a.accumulatedTime-Math.floor(a.accumulatedTime/x)*x)/x;var o=Math.floor(a.accumulatedTime/x);var s={};var u={};var l={};var c={};for(var f in t){if(!Object.prototype.hasOwnProperty.call(t,f)){continue}var d=t[f];if(typeof d==="number"){l[f]=d;c[f]=0;s[f]=d;u[f]=0}else{var h=a.state.lastIdealStyle[f];var m=a.state.lastIdealVelocity[f];for(var y=0;y<o;y++){var g=p["default"](x/1e3,h,m,d.val,d.stiffness,d.damping,d.precision);h=g[0];m=g[1]}var A=p["default"](x/1e3,h,m,d.val,d.stiffness,d.damping,d.precision);var _=A[0];var w=A[1];l[f]=h+(_-h)*i;c[f]=m+(w-m)*i;s[f]=h;u[f]=m}}a.animationID=null;a.accumulatedTime-=o*x;a.setState({currentStyle:l,currentVelocity:c,lastIdealStyle:s,lastIdealVelocity:u});a.unreadPropStyle=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyle;var n=t.style;var a=r||f["default"](n);var i=l["default"](a);return{currentStyle:a,currentVelocity:i,lastIdealStyle:a,lastIdealVelocity:i}};t.prototype.componentDidMount=function e(){this.prevTime=v["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyle!=null){this.clearUnreadPropStyle(this.unreadPropStyle)}this.unreadPropStyle=t.style;if(this.animationID==null){this.prevTime=v["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){if(this.animationID!=null){y["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=this.props.children(this.state.currentStyle);return t&&_["default"].Children.only(t)};return t}(_["default"].Component);t["default"]=k;e.exports=t["default"]},function(e,t,r){(function(t){(function(){var r,n,a,i,o,s;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof t!=="undefined"&&t!==null&&t.hrtime){e.exports=function(){return(r()-o)/1e6};n=t.hrtime;r=function(){var e;e=n();return e[0]*1e9+e[1]};i=r();s=t.uptime()*1e9;o=i-s}else if(Date.now){e.exports=function(){return Date.now()-a};a=Date.now()}else{e.exports=function(){return(new Date).getTime()-a};a=(new Date).getTime()}}).call(this)}).call(this,r(126))},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(318);var l=i(u);var c=r(208);var f=i(c);var d=r(319);var p=i(d);var h=r(320);var v=i(h);var m=r(63);var y=i(m);var g=r(321);var b=i(g);var A=r(1);var _=i(A);var w=r(0);var E=i(w);var x=1e3/60;function k(e,t,r){for(var n=0;n<e.length;n++){if(!b["default"](e[n],t[n],r[n])){return false}}return true}var S=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyles:E["default"].arrayOf(E["default"].objectOf(E["default"].number)),styles:E["default"].func.isRequired,children:E["default"].func.isRequired},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyles=null;this.clearUnreadPropStyle=function(e){var t=a.state;var r=t.currentStyles;var i=t.currentVelocities;var o=t.lastIdealStyles;var s=t.lastIdealVelocities;var u=false;for(var l=0;l<e.length;l++){var c=e[l];var f=false;for(var d in c){if(!Object.prototype.hasOwnProperty.call(c,d)){continue}var p=c[d];if(typeof p==="number"){if(!f){f=true;u=true;r[l]=n({},r[l]);i[l]=n({},i[l]);o[l]=n({},o[l]);s[l]=n({},s[l])}r[l][d]=p;i[l][d]=0;o[l][d]=p;s[l][d]=0}}}if(u){a.setState({currentStyles:r,currentVelocities:i,lastIdealStyles:o,lastIdealVelocities:s})}};this.startAnimationIfNecessary=function(){a.animationID=y["default"]((function(e){var t=a.props.styles(a.state.lastIdealStyles);if(k(a.state.currentStyles,t,a.state.currentVelocities)){a.animationID=null;a.accumulatedTime=0;return}var r=e||v["default"]();var n=r-a.prevTime;a.prevTime=r;a.accumulatedTime=a.accumulatedTime+n;if(a.accumulatedTime>x*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var i=(a.accumulatedTime-Math.floor(a.accumulatedTime/x)*x)/x;var o=Math.floor(a.accumulatedTime/x);var s=[];var u=[];var l=[];var c=[];for(var f=0;f<t.length;f++){var d=t[f];var h={};var m={};var y={};var g={};for(var b in d){if(!Object.prototype.hasOwnProperty.call(d,b)){continue}var A=d[b];if(typeof A==="number"){h[b]=A;m[b]=0;y[b]=A;g[b]=0}else{var _=a.state.lastIdealStyles[f][b];var w=a.state.lastIdealVelocities[f][b];for(var E=0;E<o;E++){var S=p["default"](x/1e3,_,w,A.val,A.stiffness,A.damping,A.precision);_=S[0];w=S[1]}var O=p["default"](x/1e3,_,w,A.val,A.stiffness,A.damping,A.precision);var M=O[0];var D=O[1];h[b]=_+(M-_)*i;m[b]=w+(D-w)*i;y[b]=_;g[b]=w}}l[f]=h;c[f]=m;s[f]=y;u[f]=g}a.animationID=null;a.accumulatedTime-=o*x;a.setState({currentStyles:l,currentVelocities:c,lastIdealStyles:s,lastIdealVelocities:u});a.unreadPropStyles=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyles;var n=t.styles;var a=r||n().map(f["default"]);var i=a.map((function(e){return l["default"](e)}));return{currentStyles:a,currentVelocities:i,lastIdealStyles:a,lastIdealVelocities:i}};t.prototype.componentDidMount=function e(){this.prevTime=v["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyles!=null){this.clearUnreadPropStyle(this.unreadPropStyles)}this.unreadPropStyles=t.styles(this.state.lastIdealStyles);if(this.animationID==null){this.prevTime=v["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){if(this.animationID!=null){y["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=this.props.children(this.state.currentStyles);return t&&_["default"].Children.only(t)};return t}(_["default"].Component);t["default"]=S;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(318);var l=i(u);var c=r(208);var f=i(c);var d=r(319);var p=i(d);var h=r(1197);var v=i(h);var m=r(320);var y=i(m);var g=r(63);var b=i(g);var A=r(321);var _=i(A);var w=r(1);var E=i(w);var x=r(0);var k=i(x);var S=1e3/60;function O(e,t,r){var n=t;if(n==null){return e.map((function(e,t){return{key:e.key,data:e.data,style:r[t]}}))}return e.map((function(e,t){for(var a=0;a<n.length;a++){if(n[a].key===e.key){return{key:n[a].key,data:n[a].data,style:r[t]}}}return{key:e.key,data:e.data,style:r[t]}}))}function M(e,t,r,n){if(n.length!==t.length){return false}for(var a=0;a<n.length;a++){if(n[a].key!==t[a].key){return false}}for(var a=0;a<n.length;a++){if(!_["default"](e[a],t[a].style,r[a])){return false}}return true}function D(e,t,r,n,a,i,o,s,u){var c=v["default"](n,a,(function(e,n){var a=t(n);if(a==null){r({key:n.key,data:n.data});return null}if(_["default"](i[e],a,o[e])){r({key:n.key,data:n.data});return null}return{key:n.key,data:n.data,style:a}}));var f=[];var d=[];var p=[];var h=[];for(var m=0;m<c.length;m++){var y=c[m];var g=null;for(var b=0;b<n.length;b++){if(n[b].key===y.key){g=b;break}}if(g==null){var A=e(y);f[m]=A;p[m]=A;var w=l["default"](y.style);d[m]=w;h[m]=w}else{f[m]=i[g];p[m]=s[g];d[m]=o[g];h[m]=u[g]}}return[c,f,d,p,h]}var T=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyles:k["default"].arrayOf(k["default"].shape({key:k["default"].string.isRequired,data:k["default"].any,style:k["default"].objectOf(k["default"].number).isRequired})),styles:k["default"].oneOfType([k["default"].func,k["default"].arrayOf(k["default"].shape({key:k["default"].string.isRequired,data:k["default"].any,style:k["default"].objectOf(k["default"].oneOfType([k["default"].number,k["default"].object])).isRequired}))]).isRequired,children:k["default"].func.isRequired,willEnter:k["default"].func,willLeave:k["default"].func,didLeave:k["default"].func},enumerable:true},{key:"defaultProps",value:{willEnter:function e(t){return f["default"](t.style)},willLeave:function e(){return null},didLeave:function e(){}},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.unmounting=false;this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyles=null;this.clearUnreadPropStyle=function(e){var t=D(a.props.willEnter,a.props.willLeave,a.props.didLeave,a.state.mergedPropsStyles,e,a.state.currentStyles,a.state.currentVelocities,a.state.lastIdealStyles,a.state.lastIdealVelocities);var r=t[0];var i=t[1];var o=t[2];var s=t[3];var u=t[4];for(var l=0;l<e.length;l++){var c=e[l].style;var f=false;for(var d in c){if(!Object.prototype.hasOwnProperty.call(c,d)){continue}var p=c[d];if(typeof p==="number"){if(!f){f=true;i[l]=n({},i[l]);o[l]=n({},o[l]);s[l]=n({},s[l]);u[l]=n({},u[l]);r[l]={key:r[l].key,data:r[l].data,style:n({},r[l].style)}}i[l][d]=p;o[l][d]=0;s[l][d]=p;u[l][d]=0;r[l].style[d]=p}}}a.setState({currentStyles:i,currentVelocities:o,mergedPropsStyles:r,lastIdealStyles:s,lastIdealVelocities:u})};this.startAnimationIfNecessary=function(){if(a.unmounting){return}a.animationID=b["default"]((function(e){if(a.unmounting){return}var t=a.props.styles;var r=typeof t==="function"?t(O(a.state.mergedPropsStyles,a.unreadPropStyles,a.state.lastIdealStyles)):t;if(M(a.state.currentStyles,r,a.state.currentVelocities,a.state.mergedPropsStyles)){a.animationID=null;a.accumulatedTime=0;return}var n=e||y["default"]();var i=n-a.prevTime;a.prevTime=n;a.accumulatedTime=a.accumulatedTime+i;if(a.accumulatedTime>S*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var o=(a.accumulatedTime-Math.floor(a.accumulatedTime/S)*S)/S;var s=Math.floor(a.accumulatedTime/S);var u=D(a.props.willEnter,a.props.willLeave,a.props.didLeave,a.state.mergedPropsStyles,r,a.state.currentStyles,a.state.currentVelocities,a.state.lastIdealStyles,a.state.lastIdealVelocities);var l=u[0];var c=u[1];var f=u[2];var d=u[3];var h=u[4];for(var v=0;v<l.length;v++){var m=l[v].style;var g={};var b={};var A={};var _={};for(var w in m){if(!Object.prototype.hasOwnProperty.call(m,w)){continue}var E=m[w];if(typeof E==="number"){g[w]=E;b[w]=0;A[w]=E;_[w]=0}else{var x=d[v][w];var k=h[v][w];for(var T=0;T<s;T++){var L=p["default"](S/1e3,x,k,E.val,E.stiffness,E.damping,E.precision);x=L[0];k=L[1]}var C=p["default"](S/1e3,x,k,E.val,E.stiffness,E.damping,E.precision);var j=C[0];var N=C[1];g[w]=x+(j-x)*o;b[w]=k+(N-k)*o;A[w]=x;_[w]=k}}d[v]=A;h[v]=_;c[v]=g;f[v]=b}a.animationID=null;a.accumulatedTime-=s*S;a.setState({currentStyles:c,currentVelocities:f,lastIdealStyles:d,lastIdealVelocities:h,mergedPropsStyles:l});a.unreadPropStyles=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyles;var n=t.styles;var a=t.willEnter;var i=t.willLeave;var o=t.didLeave;var s=typeof n==="function"?n(r):n;var u=undefined;if(r==null){u=s}else{u=r.map((function(e){for(var t=0;t<s.length;t++){if(s[t].key===e.key){return s[t]}}return e}))}var c=r==null?s.map((function(e){return f["default"](e.style)})):r.map((function(e){return f["default"](e.style)}));var d=r==null?s.map((function(e){return l["default"](e.style)})):r.map((function(e){return l["default"](e.style)}));var p=D(a,i,o,u,s,c,d,c,d);var h=p[0];var v=p[1];var m=p[2];var y=p[3];var g=p[4];return{currentStyles:v,currentVelocities:m,lastIdealStyles:y,lastIdealVelocities:g,mergedPropsStyles:h}};t.prototype.componentDidMount=function e(){this.prevTime=y["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyles){this.clearUnreadPropStyle(this.unreadPropStyles)}var r=t.styles;if(typeof r==="function"){this.unreadPropStyles=r(O(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles))}else{this.unreadPropStyles=r}if(this.animationID==null){this.prevTime=y["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){this.unmounting=true;if(this.animationID!=null){b["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=O(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles);var r=this.props.children(t);return r&&E["default"].Children.only(r)};return t}(E["default"].Component);t["default"]=T;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e,t,r){var n={};for(var a=0;a<e.length;a++){n[e[a].key]=a}var i={};for(var a=0;a<t.length;a++){i[t[a].key]=a}var o=[];for(var a=0;a<t.length;a++){o[a]=t[a]}for(var a=0;a<e.length;a++){if(!Object.prototype.hasOwnProperty.call(i,e[a].key)){var s=r(a,e[a]);if(s!=null){o.push(s)}}}return o.sort((function(e,r){var a=i[e.key];var o=i[r.key];var s=n[e.key];var u=n[r.key];if(a!=null&&o!=null){return i[e.key]-i[r.key]}else if(s!=null&&u!=null){return n[e.key]-n[r.key]}else if(a!=null){for(var l=0;l<t.length;l++){var c=t[l].key;if(!Object.prototype.hasOwnProperty.call(n,c)){continue}if(a<i[c]&&u>n[c]){return-1}else if(a>i[c]&&u<n[c]){return 1}}return 1}for(var l=0;l<t.length;l++){var c=t[l].key;if(!Object.prototype.hasOwnProperty.call(n,c)){continue}if(o<i[c]&&s>n[c]){return 1}else if(o>i[c]&&s<n[c]){return-1}}return-1}))}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};t["default"]=u;function a(e){return e&&e.__esModule?e:{default:e}}var i=r(636);var o=a(i);var s=n({},o["default"].noWobble,{precision:.01});function u(e,t){return n({},s,t,{val:e})}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=a;var n=false;function a(){if(false){}}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1201);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=w(n);var i=r(86);var o=w(i);var s=r(87);var u=w(s);var l=r(88);var c=w(l);var f=r(89);var d=w(f);var p=r(1);var h=r(53);var v=w(h);var m=r(1202);var y=w(m);var g=r(1203);var b=w(g);var A=r(1204);var _=w(A);function w(e){return e&&e.__esModule?e:{default:e}}var E=function e(){return false};var x=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.mouseSensor=(0,y.default)(n.props.callbacks,n.props.getDraggableRef),n.keyboardSensor=(0,b.default)(n.props.callbacks,n.props.getDraggableRef),n.touchSensor=(0,_.default)(n.props.callbacks,n.props.getDraggableRef),n.sensors=[n.mouseSensor,n.keyboardSensor,n.touchSensor],n.onKeyDown=function(e){if(n.mouseSensor.isCapturing()){return}n.keyboardSensor.onKeyDown(e,n.props)},n.onMouseDown=function(e){if(n.keyboardSensor.isCapturing()){return}n.mouseSensor.onMouseDown(e,n.props)},n.onTouchStart=function(e){if(n.mouseSensor.isCapturing()||n.keyboardSensor.isCapturing()){console.error("mouse or keyboard already listening when attempting to touch drag");return}n.touchSensor.onTouchStart(e,n.props)},n.onTouchMove=function(e){n.touchSensor.onTouchMove(e)},n.onClick=function(e){n.mouseSensor.onClick(e);n.touchSensor.onClick(e)},n.isAnySensorDragging=function(){return n.sensors.some((function(e){return e.isDragging()}))},n.isAnySensorCapturing=function(){return n.sensors.some((function(e){return e.isCapturing()}))},n.getProvided=(0,v.default)((function(e,t){if(!e){return null}var r={onMouseDown:n.onMouseDown,onKeyDown:n.onKeyDown,onTouchStart:n.onTouchStart,onTouchMove:n.onTouchMove,onClick:n.onClick,tabIndex:0,"aria-grabbed":t,draggable:false,onDragStart:E,onDrop:E};return r})),r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillUnmount",value:function e(){var t=this;this.sensors.forEach((function(e){var r=e.isCapturing();var n=e.isDragging();if(r){e.kill()}if(n){t.props.callbacks.onCancel()}}))}},{key:"componentWillReceiveProps",value:function e(t){var r=this;var n=this.isAnySensorCapturing();if(!n){return}var a=this.props.isDragging&&!t.isDragging;if(a){this.sensors.forEach((function(e){if(e.isCapturing()){e.kill()}}));return}if(!t.isEnabled){this.sensors.forEach((function(e){if(e.isCapturing()){var t=e.isDragging();e.kill();if(t){r.props.callbacks.onCancel()}}}))}}},{key:"render",value:function e(){var t=this.props,r=t.children,n=t.isEnabled;return r(this.getProvided(n,this.isAnySensorDragging()))}}]);return t}(p.Component);t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(114);var a=A(n);var i=r(115);var o=A(i);var s=r(209);var u=A(s);var l=r(322);var c=A(l);var f=r(638);var d=A(f);var p=r(323);var h=A(p);var v=r(324);var m=b(v);var y=r(639);var g=A(y);function b(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function A(e){return e&&e.__esModule?e:{default:e}}var _=0;var w=function e(){};t.default=function(e,t){var r={isDragging:false,pending:null,preventClick:false};var n=function e(t){var n=(0,o.default)({},r,t);r=n};var i=function e(){return r.isDragging};var s=function e(){return Boolean(r.pending||r.isDragging)};var l=(0,c.default)(e,i);var f=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;n({pending:null,isDragging:true,preventClick:true});t()};var p=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;S();n({isDragging:false,pending:null});t()};var v=function e(t){n({pending:t,isDragging:false});k()};var y=function e(){n({preventClick:false});p()};var b=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;if(r.pending){y();return}p(t)};var A=function t(){b(e.onCancel)};var E={mousemove:function t(n){var a=n.button,i=n.clientX,o=n.clientY;if(a!==_){return}var s={x:i,y:o};if(r.isDragging){l.move(s);return}if(!r.pending){console.error("invalid state");return}if(!(0,d.default)(r.pending,s)){return}f((function(){return e.onLift({client:s,isScrollAllowed:true})}))},mouseup:function t(){if(r.pending){y();return}p(e.onDrop)},mousedown:function t(){p(e.onCancel)},keydown:function e(t){if(t.keyCode===m.escape){(0,u.default)(t);A();return}(0,g.default)(t)},resize:A,scroll:function e(){if(r.pending){y();return}l.windowScrollMove()},webkitmouseforcechanged:function e(t){if(t.webkitForce==null||MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN==null){console.error("handling a mouse force changed event when it is not supported");return}var r=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN;var n=t.webkitForce>=r;if(n){A()}}};var x=(0,a.default)(E);var k=function e(){var r=(0,h.default)(t());x.forEach((function(e){if(e==="scroll"){r.addEventListener(e,E.scroll,{passive:true});return}r.addEventListener(e,E[e])}))};var S=function e(){var r=(0,h.default)(t());x.forEach((function(e){return r.removeEventListener(e,E[e])}))};var O=function e(t,r){if(!r.canLift){return}if(s()){console.error("should not be able to perform a mouse down while a drag or pending drag is occurring");A();return}var n=t.button,a=t.clientX,i=t.clientY;if(n!==_){return}(0,u.default)(t);var o={x:a,y:i};v(o)};var M=function e(t){if(!r.preventClick){return}n({preventClick:false});(0,u.default)(t)};var D={onMouseDown:O,onClick:M,kill:b,isCapturing:s,isDragging:i};return D}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(114);var a=g(n);var i=r(209);var o=g(i);var s=r(322);var u=g(s);var l=r(639);var c=g(l);var f=r(324);var d=y(f);var p=r(323);var h=g(p);var v=r(640);var m=g(v);function y(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function g(e){return e&&e.__esModule?e:{default:e}}var b=function e(){};t.default=function(e,t){var r={isDragging:false};var n=function e(t){r=t};var i=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:b;n({isDragging:true});_();t()};var s=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:b;w();n({isDragging:false});t()};var l=function e(){return s()};var f=function t(){s(e.onCancel)};var p=function e(){return r.isDragging};var v=(0,u.default)(e,p);var y=function r(n,a){var u=a.canLift,l=a.direction;if(!p()){if(!u){return}if(n.keyCode!==d.space){return}(0,o.default)(n);var h=t();if(!h){console.error("cannot start a keyboard drag without a draggable ref");return}var y=(0,m.default)(h);i((function(){return e.onLift({client:y,isScrollAllowed:false})}));return}if(!l){console.error("cannot handle keyboard event if direction is not provided");(0,o.default)(n);f();return}if(n.keyCode===d.escape){(0,o.default)(n);f();return}if(n.keyCode===d.space){(0,o.default)(n);s(e.onDrop);return}var g=function e(t){if(l==="vertical"){t.vertical();return}t.horizontal()};if(n.keyCode===d.arrowDown){(0,o.default)(n);g({vertical:v.moveForward,horizontal:v.crossAxisMoveForward});return}if(n.keyCode===d.arrowUp){(0,o.default)(n);g({vertical:v.moveBackward,horizontal:v.crossAxisMoveBackward});return}if(n.keyCode===d.arrowRight){(0,o.default)(n);g({vertical:v.crossAxisMoveForward,horizontal:v.moveForward});return}if(n.keyCode===d.arrowLeft){(0,o.default)(n);g({vertical:v.crossAxisMoveBackward,horizontal:v.moveBackward})}(0,c.default)(n)};var g={mousedown:f,resize:f,scroll:f};var A=(0,a.default)(g);var _=function e(){var r=(0,h.default)(t());A.forEach((function(e){r.addEventListener(e,g[e])}))};var w=function e(){var r=(0,h.default)(t());A.forEach((function(e){r.removeEventListener(e,g[e])}))};var E={onKeyDown:y,kill:l,isDragging:p,isCapturing:p};return E}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forcePressThreshold=t.timeForLongPress=undefined;var n=r(114);var a=v(n);var i=r(115);var o=v(i);var s=r(209);var u=v(s);var l=r(322);var c=v(l);var f=r(638);var d=v(f);var p=r(323);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}var m=t.timeForLongPress=200;var y=t.forcePressThreshold=.15;var g=function e(){};var b={isDragging:false,pending:null,hasMoved:false,preventClick:false,longPressTimerId:null};t.default=function(e,t){var r=b;var n=function e(t){r=(0,o.default)({},r,t)};var i=function e(){return r.isDragging};var s=function e(){return Boolean(r.pending||r.isDragging||r.longPressTimerId)};var l=(0,c.default)(e,i);var f=function t(){if(r.longPressTimerId){clearTimeout(r.longPressTimerId)}var a=r.pending;if(!r.pending){console.error("cannot start a touch drag without a pending position");_();return}n({isDragging:true,hasMoved:false,pending:null,longPressTimerId:null});e.onLift({client:a,isScrollAllowed:false})};var p=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:g;S();n((0,o.default)({},b,{preventClick:true}));t()};var v=function e(t){var r=t.touches[0];var a=r.clientX,i=r.clientY;var o={x:a,y:i};var s=setTimeout(f,m);n({longPressTimerId:s,pending:o,isDragging:false,hasMoved:false});k()};var A=function e(){clearTimeout(r.longPressTimerId);S();n(b)};var _=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:g;if(r.pending){A();return}p(t)};var w=function t(){_(e.onCancel)};var E={touchmove:function e(t){var a=t.touches[0],i=a.clientX,o=a.clientY;var s={x:i,y:o};(0,u.default)(t);if(!r.hasMoved){n({hasMoved:true})}if(r.pending){if(!(0,d.default)(r.pending,s)){return}f();return}l.move(s)},touchend:function t(n){if(r.pending){A();return}p(e.onDrop);(0,u.default)(n)},touchcancel:function e(){if(r.pending){A();return}w()},touchstart:function e(){if(i()){console.error("touch start fired while already dragging");w()}},orientationchange:w,resize:w,scroll:w,contextmenu:u.default,keydown:w,touchforcechange:function e(t){if(r.hasMoved){return}var n=t.touches[0];if(n.force>=y){w()}}};var x=(0,a.default)(E);var k=function e(){var r=(0,h.default)(t());x.forEach((function(e){var t=E[e];if(e==="touchmove"){r.addEventListener(e,t,{passive:false});return}r.addEventListener(e,t)}))};var S=function e(){var r=(0,h.default)(t());x.forEach((function(e){return r.removeEventListener(e,E[e])}))};var O=function e(t,r){if(!r.canLift){return}if(s()){console.error("should not be able to perform a touch start while a drag or pending drag is occurring");w();return}t.stopPropagation();v(t)};var M=function e(t){if(s()){t.preventDefault()}};var D=function e(t){if(!r.preventClick){return}(0,u.default)(t);n(b)};var T={onTouchStart:O,onTouchMove:M,onClick:D,kill:_,isCapturing:s,isDragging:i};return T}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41.66739",height:"49.79988",viewBox:"0 0 41.66739 49.79988","aria-hidden":"true"},n.createElement("title",null,"Apply Icon"),n.createElement("g",null,n.createElement("path",{d:"M38.97923,20.60587a3.1833,3.1833,0,0,0-4.332,0L23.33308,31.71167V2.91584C23.33308,1.31208,22.43745,0,20.83369,0s-2.49938,1.31208-2.49938,2.91584V31.71167L7.0202,20.60587a3.05228,3.05228,0,0,0-4.22789,0,2.925,2.925,0,0,0-.05208,4.12374L18.78063,40.796c.0061.0061-.00539.01464.00071.02075a2.92278,2.92278,0,0,0,4.121,0c.0061-.0061.006-.01464.0121-.02075L38.98,24.7296A2.92444,2.92444,0,0,0,38.97923,20.60587Z"}),n.createElement("rect",{x:"17.91775",y:"26.05024",width:"5.83189",height:"41.66739",rx:"1.16667",ry:"1.16667",transform:"translate(-26.05024 67.71763) rotate(-90)"})))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",viewBox:"0 0 48 48","aria-hidden":"true"},n.createElement("title",null,"Refresh Icon"),n.createElement("path",{d:"M24 40q-6.65 0-11.325-4.675Q8 30.65 8 24q0-6.65 4.675-11.325Q17.35 8 24 8q4.25 0 7.45 1.725T37 14.45V8h3v12.7H27.3v-3h8.4q-1.9-3-4.85-4.85Q27.9 11 24 11q-5.45 0-9.225 3.775Q11 18.55 11 24q0 5.45 3.775 9.225Q18.55 37 24 37q4.15 0 7.6-2.375 3.45-2.375 4.8-6.275h3.1q-1.45 5.25-5.75 8.45Q29.45 40 24 40Z"}))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);function a(){return n.createElement("div",{className:"list-loading"},"Loading")}t.default=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1209);var o=r(13);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement(o.Button,{className:"load-more-button",disabled:this.props.isFetching,callback:this.props.loadMore,content:this.props.isFetching?a.createElement(i.default,null):"Load more"})};return t}(a.Component);t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48.55458",height:"8.74913",viewBox:"0 0 48.55458 8.74913","aria-hidden":"true"},n.createElement("title",null,"More Dots Icon"),n.createElement("g",null,n.createElement("circle",{cx:"4.37456",cy:"4.37456",r:"4.37456"}),n.createElement("circle",{cx:"24.27729",cy:"4.37456",r:"4.37456"}),n.createElement("circle",{cx:"44.18002",cy:"4.37456",r:"4.37456"})))};t.default=a},function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(13);var o=r(326);var s=r(1220);var u=r(20);var l=[{value:null,label:"Relevance"},{value:"title",label:"Title"},{value:"author",label:"Author"}];var c=function(e){var t=e.autoUpdate,r=e.entryPoints,c=e.library,f=e.searchParams,d=e.startingTitle,p=e.updateAutoUpdate,h=e.updateSearchParam,v=e.search,m=e.addAdvSearchQuery,y=e.updateAdvSearchQueryBoolean,g=e.moveAdvSearchQuery,b=e.removeAdvSearchQuery,A=e.selectAdvSearchQuery;var _;a.useEffect((function(){var e,t;if(d){(e=m)===null||e===void 0?void 0:e("include",{key:"title",op:"eq",value:d});(t=v)===null||t===void 0?void 0:t()}}),[]);var w=r.includes("All")?r:n(["All"],r);var E=f.entryPoint.toLowerCase();var x=function(e){var t=f.advanced[e];return a.createElement(o.default,{name:e,query:t.query,selectedQueryId:t.selectedQueryId,addQuery:m,updateQueryBoolean:y,moveQuery:g,removeQuery:b,selectQuery:A})};var k=a.createElement("div",{className:"search-titles"},a.createElement("div",{className:"entry-points"},a.createElement("span",null,"Search for:"),a.createElement("div",{className:"entry-points-selection"},w.map((function(e){return a.createElement(u.default,{key:e,type:"radio",name:"entry-points-selection",checked:e.toLowerCase()===E,label:e,value:e,onChange:function(){var t;return(t=h)===null||t===void 0?void 0:t("entryPoint",e)}})})))),a.createElement("div",{className:"search-options"},a.createElement("span",null,"Sort by:"),a.createElement("div",{className:"search-options-selection"},l.map((function(e){var t=e.value,r=e.label;return a.createElement(u.default,{key:t,type:"radio",name:"sort-selection",value:t,label:r,checked:t===f.sort,onChange:function(){var e;return(e=h)===null||e===void 0?void 0:e("sort",t)}})}))),a.createElement("aside",null,'Results can be sorted by attributes that are enabled in this library\'s Lanes & Filters configuration. Selecting "Title" or "Author" will automatically filter out less relevant results.')),a.createElement("div",{className:"search-builders"},a.createElement(i.Panel,{headerText:"Works to include",id:"search-filters-include",openByDefault:true,content:x("include")}),a.createElement(i.Panel,{headerText:"Works to exclude",id:"search-filters-exclude",openByDefault:false,content:x("exclude")})),a.createElement("div",{key:"query-viewer"},a.createElement(s.default,{library:(_=c)===null||_===void 0?void 0:_.short_name,searchParams:f})),a.createElement("div",{className:"auto-update"},a.createElement("span",null,"Use search to:"),a.createElement("div",{className:"auto-update-selection"},a.createElement("div",null,a.createElement(u.default,{type:"radio",name:"auto-update",checked:t,label:"Automatically update this list",onChange:function(){var e;return(e=p)===null||e===void 0?void 0:e(true)}}),a.createElement("aside",null,"The system will periodically execute this search and automatically update the list with the results. The search results below represent the titles that would be in the list if it were updated now, but the actual contents of the list will change over time.")),a.createElement("div",null,a.createElement(u.default,{type:"radio",name:"auto-update",checked:!t,label:"Manually select titles",onChange:function(){var e;return(e=p)===null||e===void 0?void 0:e(false)}}),a.createElement("aside",null,"Move the desired titles from the search results column on the left to the column on the right to add them to the list. Titles may be removed from the list automatically if they become unavailable, but the list is otherwise fixed.")))));return a.createElement(i.Panel,{headerText:"Search for titles",id:"search-titles",openByDefault:true,onEnter:v,content:k})};t.default=c},function(e,t,r){"use strict";
371
+ */var n=r(46),a=r(1);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o="function"===typeof Symbol&&Symbol.for,s=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,f=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,v=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,A=o?Symbol.for("react.fundamental"):60117,_=o?Symbol.for("react.scope"):60119;function w(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t();e._result=t;t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}function E(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case u:return"Fragment";case s:return"Portal";case c:return"Profiler";case l:return"StrictMode";case v:return"Suspense";case m:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case d:return"Context.Consumer";case f:return"Context.Provider";case h:var t=e.render;t=t.displayName||t.name||"";return e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case y:return E(e.type);case b:return E(e.render);case g:if(e=1===e._status?e._result:null)return E(e)}return null}var x=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;x.hasOwnProperty("ReactCurrentDispatcher")||(x.ReactCurrentDispatcher={current:null});x.hasOwnProperty("ReactCurrentBatchConfig")||(x.ReactCurrentBatchConfig={suspense:null});var k={};function S(e,t){for(var r=e._threadCount|0;r<=t;r++)e[r]=e._currentValue2,e._threadCount=r+1}function O(e,t,r,n){if(n&&(n=e.contextType,"object"===typeof n&&null!==n))return S(n,r),n[r];if(e=e.contextTypes){r={};for(var a in e)r[a]=t[a];t=r}else t=k;return t}for(var M=new Uint16Array(16),D=0;15>D;D++)M[D]=D+1;M[15]=0;var T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,L=Object.prototype.hasOwnProperty,C={},j={};function N(e){if(L.call(j,e))return!0;if(L.call(C,e))return!1;if(T.test(e))return j[e]=!0;C[e]=!0;return!1}function I(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(n)return!1;if(null!==r)return!r.acceptsBooleans;e=e.toLowerCase().slice(0,5);return"data-"!==e&&"aria-"!==e;default:return!1}}function P(e,t,r,n){if(null===t||"undefined"===typeof t||I(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function R(e,t,r,n,a,i){this.acceptsBooleans=2===t||3===t||4===t;this.attributeName=n;this.attributeNamespace=a;this.mustUseProperty=r;this.propertyName=e;this.type=t;this.sanitizeURL=i}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){F[e]=new R(e,0,!1,e,null,!1)}));[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];F[t]=new R(t,1,!1,e[1],null,!1)}));["contentEditable","draggable","spellCheck","value"].forEach((function(e){F[e]=new R(e,2,!1,e.toLowerCase(),null,!1)}));["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){F[e]=new R(e,2,!1,e,null,!1)}));"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){F[e]=new R(e,3,!1,e.toLowerCase(),null,!1)}));["checked","multiple","muted","selected"].forEach((function(e){F[e]=new R(e,3,!0,e,null,!1)}));["capture","download"].forEach((function(e){F[e]=new R(e,4,!1,e,null,!1)}));["cols","rows","size","span"].forEach((function(e){F[e]=new R(e,6,!1,e,null,!1)}));["rowSpan","start"].forEach((function(e){F[e]=new R(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function B(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,null,!1)}));"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}));["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}));["tabIndex","crossOrigin"].forEach((function(e){F[e]=new R(e,1,!1,e.toLowerCase(),null,!1)}));F.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach((function(e){F[e]=new R(e,1,!1,e.toLowerCase(),null,!0)}));var H=/["'&<>]/;function U(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=H.exec(e);if(t){var r="",n,a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==n&&(r+=e.substring(a,n));a=n+1;r+=t}e=a!==n?r+e.substring(a,n):r}return e}function z(e,t){var r=F.hasOwnProperty(e)?F[e]:null;var n;if(n="style"!==e)n=null!==r?0===r.type:!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]?!1:!0;if(n||P(e,t,r,!1))return"";if(null!==r){e=r.attributeName;n=r.type;if(3===n||4===n&&!0===t)return e+'=""';r.sanitizeURL&&(t=""+t);return e+'="'+(U(t)+'"')}return N(e)?e+'="'+(U(t)+'"'):""}function q(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}var V="function"===typeof Object.is?Object.is:q,W=null,K=null,G=null,Q=!1,J=!1,Z=null,X=0;function $(){if(null===W)throw Error(i(321));return W}function ee(){if(0<X)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function te(){null===G?null===K?(Q=!1,K=G=ee()):(Q=!0,G=K):null===G.next?(Q=!1,G=G.next=ee()):(Q=!0,G=G.next);return G}function re(e,t,r,n){for(;J;)J=!1,X+=1,G=null,r=e(t,n);K=W=null;X=0;G=Z=null;return r}function ne(e,t){return"function"===typeof t?t(e):t}function ae(e,t,r){W=$();G=te();if(Q){var n=G.queue;t=n.dispatch;if(null!==Z&&(r=Z.get(n),void 0!==r)){Z.delete(n);n=G.memoizedState;do{n=e(n,r.action),r=r.next}while(null!==r);G.memoizedState=n;return[n,t]}return[G.memoizedState,t]}e=e===ne?"function"===typeof t?t():t:void 0!==r?r(t):t;G.memoizedState=e;e=G.queue={last:null,dispatch:null};e=e.dispatch=ie.bind(null,W,e);return[G.memoizedState,e]}function ie(e,t,r){if(!(25>X))throw Error(i(301));if(e===W)if(J=!0,e={action:r,next:null},null===Z&&(Z=new Map),r=Z.get(t),void 0===r)Z.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function oe(){}var se=0,ue={readContext:function(e){var t=se;S(e,t);return e[t]},useContext:function(e){$();var t=se;S(e,t);return e[t]},useMemo:function(e,t){W=$();G=te();t=void 0===t?null:t;if(null!==G){var r=G.memoizedState;if(null!==r&&null!==t){e:{var n=r[1];if(null===n)n=!1;else{for(var a=0;a<n.length&&a<t.length;a++)if(!V(t[a],n[a])){n=!1;break e}n=!0}}if(n)return r[0]}}e=e();G.memoizedState=[e,t];return e},useReducer:ae,useRef:function(e){W=$();G=te();var t=G.memoizedState;return null===t?(e={current:e},G.memoizedState=e):t},useState:function(e){return ae(ne,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:oe,useEffect:oe,useDebugValue:oe,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){$();return e},useTransition:function(){$();return[function(e){e()},!1]}},le={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ce(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var fe={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},de=n({menuitem:!0},fe),pe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1);pe[t]=pe[e]}))}));var ve=/([A-Z])/g,me=/^ms-/,ye=a.Children.toArray,ge=x.ReactCurrentDispatcher,be={listing:!0,pre:!0,textarea:!0},Ae=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_e={},we={};function Ee(e){if(void 0===e||null===e)return e;var t="";a.Children.forEach(e,(function(e){null!=e&&(t+=e)}));return t}var xe=Object.prototype.hasOwnProperty,ke={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Se(e,t){if(void 0===e)throw Error(i(152,E(t)||"Component"))}function Oe(e,t,r){function o(a,o){var s=o.prototype&&o.prototype.isReactComponent,u=O(o,t,r,s),l=[],c=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===l)return null},enqueueReplaceState:function(e,t){c=!0;l=[t]},enqueueSetState:function(e,t){if(null===l)return null;l.push(t)}};if(s){if(s=new o(a.props,u,f),"function"===typeof o.getDerivedStateFromProps){var d=o.getDerivedStateFromProps.call(null,a.props,s.state);null!=d&&(s.state=n({},s.state,d))}}else if(W={},s=o(a.props,u,f),s=re(o,a.props,s,u),null==s||null==s.render){e=s;Se(e,o);return}s.props=a.props;s.context=u;s.updater=f;f=s.state;void 0===f&&(s.state=f=null);if("function"===typeof s.UNSAFE_componentWillMount||"function"===typeof s.componentWillMount)if("function"===typeof s.componentWillMount&&"function"!==typeof o.getDerivedStateFromProps&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&"function"!==typeof o.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),l.length){f=l;var p=c;l=null;c=!1;if(p&&1===f.length)s.state=f[0];else{d=p?f[0]:s.state;var h=!0;for(p=p?1:0;p<f.length;p++){var v=f[p];v="function"===typeof v?v.call(s,d,a.props,u):v;null!=v&&(h?(h=!1,d=n({},d,v)):n(d,v))}s.state=d}}else l=null;e=s.render();Se(e,o);if("function"===typeof s.getChildContext&&(a=o.childContextTypes,"object"===typeof a)){var m=s.getChildContext();for(var y in m)if(!(y in a))throw Error(i(108,E(o)||"Unknown",y))}m&&(t=n({},t,m))}for(;a.isValidElement(e);){var s=e,u=s.type;if("function"!==typeof u)break;o(s,u)}return{child:e,context:t}}var Me=function(){function e(e,t){a.isValidElement(e)?e.type!==u?e=[e]:(e=e.props.children,e=a.isValidElement(e)?[e]:ye(e)):e=ye(e);e={type:null,domNamespace:le.html,children:e,childIndex:0,context:k,footer:""};var r=M[0];if(0===r){var n=M;r=n.length;var o=2*r;if(!(65536>=o))throw Error(i(304));var s=new Uint16Array(o);s.set(n);M=s;M[0]=r+1;for(n=r;n<o-1;n++)M[n]=n+1;M[o-1]=0}else M[0]=M[r];this.threadID=r;this.stack=[e];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=t;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}var t=e.prototype;t.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var e=this.threadID;M[e]=M[0];M[0]=e}};t.pushProvider=function(e){var t=++this.contextIndex,r=e.type._context,n=this.threadID;S(r,n);var a=r[n];this.contextStack[t]=r;this.contextValueStack[t]=a;r[n]=e.props.value};t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],r=this.contextValueStack[e];this.contextStack[e]=null;this.contextValueStack[e]=null;this.contextIndex--;t[this.threadID]=r};t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]};t.read=function(e){if(this.exhausted)return null;var t=se;se=this.threadID;var r=ge.current;ge.current=ue;try{for(var n=[""],a=!1;n[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var o=this.threadID;M[o]=M[0];M[0]=o;break}var s=this.stack[this.stack.length-1];if(a||s.childIndex>=s.children.length){var u=s.footer;""!==u&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===f)this.popProvider(s.type);else if(s.type===v){this.suspenseDepth--;var l=n.pop();if(a){a=!1;var c=s.fallbackFrame;if(!c)throw Error(i(303));this.stack.push(c);n[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else n[this.suspenseDepth]+=l}n[this.suspenseDepth]+=u}else{var d=s.children[s.childIndex++],p="";try{p+=this.render(d,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"===typeof e.then)throw Error(i(294));throw e}finally{}n.length<=this.suspenseDepth&&n.push("");n[this.suspenseDepth]+=p}}return n[0]}finally{ge.current=r,se=t}};t.render=function(e,t,r){if("string"===typeof e||"number"===typeof e){r=""+e;if(""===r)return"";if(this.makeStaticMarkup)return U(r);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+U(r);this.previousWasTextNode=!0;return U(r)}t=Oe(e,t,this.threadID);e=t.child;t=t.context;if(null===e||!1===e)return"";if(!a.isValidElement(e)){if(null!=e&&null!=e.$$typeof){r=e.$$typeof;if(r===s)throw Error(i(257));throw Error(i(258,r.toString()))}e=ye(e);this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""});return""}var o=e.type;if("string"===typeof o)return this.renderDOM(e,t,r);switch(o){case l:case p:case c:case m:case u:return e=ye(e.props.children),this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case v:throw Error(i(294))}if("object"===typeof o&&null!==o)switch(o.$$typeof){case h:W={};var b=o.render(e.props,e.ref);b=re(o.render,e.props,b,e.ref);b=ye(b);this.stack.push({type:null,domNamespace:r,children:b,childIndex:0,context:t,footer:""});return"";case y:return e=[a.createElement(o.type,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case f:return o=ye(e.props.children),r={type:e,domNamespace:r,children:o,childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(r),"";case d:o=e.type;b=e.props;var E=this.threadID;S(o,E);o=ye(b.children(o[E]));this.stack.push({type:e,domNamespace:r,children:o,childIndex:0,context:t,footer:""});return"";case A:throw Error(i(338));case g:switch(o=e.type,w(o),o._status){case 1:return e=[a.createElement(o._result,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw o._result;default:throw Error(i(295))}case _:throw Error(i(343))}throw Error(i(130,null==o?o:typeof o,""))};t.renderDOM=function(e,t,r){var a=e.type.toLowerCase();r===le.html&&ce(a);if(!_e.hasOwnProperty(a)){if(!Ae.test(a))throw Error(i(65,a));_e[a]=!0}var o=e.props;if("input"===a)o=n({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===a){var s=o.value;if(null==s){s=o.defaultValue;var u=o.children;if(null!=u){if(null!=s)throw Error(i(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(i(93));u=u[0]}s=""+u}null==s&&(s="")}o=n({},o,{value:void 0,children:""+s})}else if("select"===a)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=n({},o,{value:void 0});else if("option"===a){u=this.currentSelectValue;var l=Ee(o.children);if(null!=u){var c=null!=o.value?o.value+"":l;s=!1;if(Array.isArray(u))for(var f=0;f<u.length;f++){if(""+u[f]===c){s=!0;break}}else s=""+u===c;o=n({selected:void 0,children:void 0},o,{selected:s,children:l})}}if(s=o){if(de[a]&&(null!=s.children||null!=s.dangerouslySetInnerHTML))throw Error(i(137,a,""));if(null!=s.dangerouslySetInnerHTML){if(null!=s.children)throw Error(i(60));if(!("object"===typeof s.dangerouslySetInnerHTML&&"__html"in s.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=s.style&&"object"!==typeof s.style)throw Error(i(62,""))}s=o;u=this.makeStaticMarkup;l=1===this.stack.length;c="<"+e.type;for(b in s)if(xe.call(s,b)){var d=s[b];if(null!=d){if("style"===b){f=void 0;var p="",h="";for(f in d)if(d.hasOwnProperty(f)){var v=0===f.indexOf("--"),m=d[f];if(null!=m){if(v)var y=f;else if(y=f,we.hasOwnProperty(y))y=we[y];else{var g=y.replace(ve,"-$1").toLowerCase().replace(me,"-ms-");y=we[y]=g}p+=h+y+":";h=f;v=null==m||"boolean"===typeof m||""===m?"":v||"number"!==typeof m||0===m||pe.hasOwnProperty(h)&&pe[h]?(""+m).trim():m+"px";p+=v;h=";"}}d=p||null}f=null;e:if(v=a,m=s,-1===v.indexOf("-"))v="string"===typeof m.is;else switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":v=!1;break e;default:v=!0}v?ke.hasOwnProperty(b)||(f=b,f=N(f)&&null!=d?f+'="'+(U(d)+'"'):""):f=z(b,d);f&&(c+=" "+f)}}u||l&&(c+=' data-reactroot=""');var b=c;s="";fe.hasOwnProperty(a)?b+="/>":(b+=">",s="</"+e.type+">");e:{u=o.dangerouslySetInnerHTML;if(null!=u){if(null!=u.__html){u=u.__html;break e}}else if(u=o.children,"string"===typeof u||"number"===typeof u){u=U(u);break e}u=null}null!=u?(o=[],be.hasOwnProperty(a)&&"\n"===u.charAt(0)&&(b+="\n"),b+=u):o=ye(o.children);e=e.type;r=null==r||"http://www.w3.org/1999/xhtml"===r?ce(e):"http://www.w3.org/2000/svg"===r&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":r;this.stack.push({domNamespace:r,type:a,children:o,childIndex:0,context:t,footer:s});this.previousWasTextNode=!1;return b};return e}(),De={renderToString:function(e){e=new Me(e,!1);try{return e.read(Infinity)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new Me(e,!0);try{return e.read(Infinity)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.14.0"};e.exports=De.default||De},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(20);var o=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.inputRef=a.createRef();return t}t.prototype.render=function(){var e=this;return a.createElement("div",null,a.createElement(i.default,{elementType:"input",type:"text",disabled:this.props.disabled,name:this.props.name,list:this.props.name+"-autocomplete-list",label:this.props.label,value:this.props.value,ref:this.inputRef,optionalText:false,onChange:this.props.onChange}),a.createElement("datalist",{id:this.props.name+"-autocomplete-list"},this.props.autocompleteValues.map((function(t){return a.createElement("option",{value:t,key:t,"aria-selected":e.props.value===t})}))))};t.prototype.getValue=function(){return this.inputRef.current.getValue()};t.prototype.clear=function(){this.inputRef.current.setState({value:""})};return t}(a.Component);t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(20);var o=r(13);var s=r(190);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addContributorRole=a.createRef();r.addContributorName=a.createRef();r.state={contributors:r.props.contributors||[],disabled:true};r.addContributor=r.addContributor.bind(r);r.removeContributor=r.removeContributor.bind(r);r.toggleDisabled=r.toggleDisabled.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"form-group"},a.createElement("label",null,"Authors and Contributors"),this.existingContributors(),this.newContributor())};t.prototype.newContributor=function(){var e=this.addContributorRole.current;var t=e&&e.getValue();var r=this.state.disabled||this.props.disabled;return a.createElement("span",{className:"contributor-form"},this.contributorSelect(t,true),this.contributorField(),a.createElement(o.Button,{type:"button",className:"add-contributor small",disabled:r,callback:this.addContributor,content:"Add"}))};t.prototype.contributorSelect=function(e,t){if(t===void 0){t=false}return a.createElement(i.default,{elementType:"select",disabled:this.props.disabled,name:"contributor-role",value:e||"Author",ref:t&&this.addContributorRole,"aria-label":"Select a contributor role type"},this.props.roles&&Object.values(this.props.roles).map((function(t){return a.createElement("option",{value:t,key:t,"aria-selected":e===t},t)})))};t.prototype.contributorField=function(e){return a.createElement(i.default,{elementType:"input",type:"text",disabled:this.props.disabled,name:"contributor-name","aria-label":"Enter contributor name",value:e&&e.name,ref:!e&&this.addContributorName,onChange:this.toggleDisabled,optionalText:false})};t.prototype.existingContributors=function(){var e=this;return this.state.contributors.map((function(t){var r=e.getContributorRole(t);return a.createElement(s.default,{key:t.name+t.role,disabled:e.props.disabled,onRemove:function(){return e.removeContributor(t)}},a.createElement("span",{className:"contributor-form"},e.contributorSelect(r),e.contributorField(t)))}))};t.prototype.toggleDisabled=function(e){this.setState({disabled:e.length<1})};t.prototype.getContributorRole=function(e){if(this.props.roles){if(this.props.roles[e.role]){return this.props.roles[e.role]}}return e.role};t.prototype.removeContributor=function(e){var t=this.state.contributors.filter((function(t){return!(t.name===e.name&&t.role===e.role)}));this.setState({contributors:t})};t.prototype.addContributor=function(){var e=this.addContributorName.current.getValue();var t=this.addContributorRole.current.getValue();this.setState({contributors:this.state.contributors.concat({role:t,name:e}),disabled:true});this.addContributorName.current.clear();this.addContributorRole.current.setValue("Author")};return t}(a.Component);t.default=u},function(e,t,r){var n=r(42);n(n.S+n.F,"Object",{assign:r(970)})},function(e,t){e.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";var n=r(75);var a=r(132);var i=r(279);var o=r(158);var s=r(133);var u=r(582);var l=Object.assign;e.exports=!l||r(107)((function(){var e={};var t={};var r=Symbol();var n="abcdefghijklmnopqrst";e[r]=7;n.split("").forEach((function(e){t[e]=e}));return l({},e)[r]!=7||Object.keys(l({},t)).join("")!=n}))?function e(t,r){var l=s(t);var c=arguments.length;var f=1;var d=i.f;var p=o.f;while(c>f){var h=u(arguments[f++]);var v=d?a(h).concat(d(h)):a(h);var m=v.length;var y=0;var g;while(m>y){g=v[y++];if(!n||p.call(h,g))l[g]=h[g]}}return l}:l},function(e,t,r){var n=r(109);var a=r(583);var i=r(972);e.exports=function(e){return function(t,r,o){var s=n(t);var u=a(s.length);var l=i(o,u);var c;if(e&&r!=r)while(u>l){c=s[l++];if(c!=c)return true}else for(;u>l;l++)if(e||l in s){if(s[l]===r)return e||l||0}return!e&&-1}}},function(e,t,r){var n=r(275);var a=Math.max;var i=Math.min;e.exports=function(e,t){e=n(e);return e<0?a(e+t,0):i(e,t)}},function(e,t,r){var n=r(42);n(n.S,"Object",{create:r(280)})},function(e,t,r){var n=r(83);var a=r(130);var i=r(132);e.exports=r(75)?Object.defineProperties:function e(t,r){a(t);var o=i(r);var s=o.length;var u=0;var l;while(s>u)n.f(t,l=o[u++],r[l]);return t}},function(e,t,r){var n=r(74).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(42);n(n.S,"Object",{setPrototypeOf:r(977).set})},function(e,t,r){var n=r(131);var a=r(130);var i=function(e,t){a(e);if(!n(t)&&t!==null)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=r(272)(Function.call,r(586).f(Object.prototype,"__proto__").set,2);n(e,[]);t=!(e instanceof Array)}catch(e){t=true}return function e(r,a){i(r,a);if(t)r.__proto__=a;else n(r,a);return r}}({},false):undefined),check:i}},function(e,t,r){var n=r(133);var a=r(132);r(588)("keys",(function(){return function e(t){return a(n(t))}}))},function(e,t,r){"use strict";t.__esModule=true;t.uncontrolledPropTypes=s;t.isProp=u;t.defaultKey=l;t.isReactComponent=c;var n=a(r(9));function a(e){return e&&e.__esModule?e:{default:e}}var i=function e(){};function o(e,t){return function(r,n){if(r[n]!==undefined){if(!r[e]){return new Error("You have provided a `"+n+"` prop to `"+t+"` "+("without an `"+e+"` handler prop. This will render a read-only field. ")+("If the field should be mutable use `"+l(n)+"`. ")+("Otherwise, set `"+e+"`."))}}}}function s(e,t){var r={};Object.keys(e).forEach((function(e){r[l(e)]=i;if(false){var t}}));return r}function u(e,t){return e[t]!==undefined}function l(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function c(e){return!!(e&&e.prototype&&e.prototype.isReactComponent)}},function(e,t,r){r(981);e.exports=r(30).Object.entries},function(e,t,r){var n=r(42);var a=r(589)(true);n(n.S,"Object",{entries:function e(t){return a(t)}})},function(e,t,r){r(983);e.exports=r(30).Object.values},function(e,t,r){var n=r(42);var a=r(589)(false);n(n.S,"Object",{values:function e(t){return a(t)}})},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(281));var i=n(r(120));function o(e,t,r){var n={target:e,currentTarget:e},i;if(!a.default.end)r=0;else if(r==null)r=u(e)||0;if(a.default.end){e.addEventListener(a.default.end,o,false);i=setTimeout((function(){return o(n)}),(r||100)*1.5)}else setTimeout(o.bind(null,n),0);function o(e){if(e.target!==e.currentTarget)return;clearTimeout(i);e.target.removeEventListener(a.default.end,o);t.call(this)}}o._parseDuration=u;var s=o;t.default=s;function u(e){var t=(0,i.default)(e,a.default.duration),r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/-(.)/g;function a(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=o;var a=n(r(987));var i=/^ms-/;function o(e){return(0,a.default)(e).replace(i,"-ms-")}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/([A-Z])/g;function a(e){return e.replace(n,"-$1").toLowerCase()}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=s;var a=n(r(590));var i=/^(top|right|bottom|left)$/;var o=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;function s(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function t(r){var n=e.style;r=(0,a.default)(r);if(r=="float")r="styleFloat";var s=e.currentStyle[r]||null;if(s==null&&n&&n[r])s=n[r];if(o.test(s)&&!i.test(r)){var u=n.left;var l=e.runtimeStyle;var c=l&&l.left;if(c)l.left=e.currentStyle.left;n.left=r==="fontSize"?"1em":s;s=n.pixelLeft+"px";n.left=u;if(c)l.left=c}return s}}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function a(e){return!!(e&&n.test(e))}e.exports=t["default"]},function(e,t,r){r(992);e.exports=r(30).parseInt},function(e,t,r){var n=r(42);var a=r(993);n(n.G+n.F*(parseInt!=a),{parseInt:a})},function(e,t,r){var n=r(74).parseInt;var a=r(994).trim;var i=r(591);var o=/^[-+]?0[xX]/;e.exports=n(i+"08")!==8||n(i+"0x16")!==22?function e(t,r){var i=a(String(t),3);return n(i,r>>>0||(o.test(i)?16:10))}:n},function(e,t,r){var n=r(42);var a=r(191);var i=r(107);var o=r(591);var s="["+o+"]";var u="​…";var l=RegExp("^"+s+s+"*");var c=RegExp(s+s+"*$");var f=function(e,t,r){var a={};var s=i((function(){return!!o[e]()||u[e]()!=u}));var l=a[e]=s?t(d):o[e];if(r)a[r]=l;n(n.P+n.F*s,"String",a)};var d=f.trim=function(e,t){e=String(a(e));if(t&1)e=e.replace(l,"");if(t&2)e=e.replace(c,"");return e};e.exports=f},function(e,t,r){var n=r(275);var a=r(191);e.exports=function(e){return function(t,r){var i=String(a(t));var o=n(r);var s=i.length;var u,l;if(o<0||o>=s)return e?"":undefined;u=i.charCodeAt(o);return u<55296||u>56319||o+1===s||(l=i.charCodeAt(o+1))<56320||l>57343?e?i.charAt(o):u:e?i.slice(o,o+2):(u-55296<<10)+(l-56320)+65536}}},function(e,t,r){"use strict";var n=r(280);var a=r(157);var i=r(282);var o={};r(129)(o,r(67)("iterator"),(function(){return this}));e.exports=function(e,t,r){e.prototype=n(o,{next:a(1,r)});i(e,t+" Iterator")}},function(e,t,r){"use strict";var n=r(272);var a=r(42);var i=r(133);var o=r(998);var s=r(999);var u=r(583);var l=r(1e3);var c=r(1001);a(a.S+a.F*!r(1003)((function(e){Array.from(e)})),"Array",{from:function e(t){var r=i(t);var a=typeof this=="function"?this:Array;var f=arguments.length;var d=f>1?arguments[1]:undefined;var p=d!==undefined;var h=0;var v=c(r);var m,y,g,b;if(p)d=n(d,f>2?arguments[2]:undefined,2);if(v!=undefined&&!(a==Array&&s(v))){for(b=v.call(r),y=new a;!(g=b.next()).done;h++){l(y,h,p?o(b,d,[g.value,h],true):g.value)}}else{m=u(r.length);for(y=new a(m);m>h;h++){l(y,h,p?d(r[h],h):r[h])}}y.length=h;return y}})},function(e,t,r){var n=r(130);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(t){var i=e["return"];if(i!==undefined)n(i.call(e));throw t}}},function(e,t,r){var n=r(159);var a=r(67)("iterator");var i=Array.prototype;e.exports=function(e){return e!==undefined&&(n.Array===e||i[a]===e)}},function(e,t,r){"use strict";var n=r(83);var a=r(157);e.exports=function(e,t,r){if(t in e)n.f(e,t,a(0,r));else e[t]=r}},function(e,t,r){var n=r(1002);var a=r(67)("iterator");var i=r(159);e.exports=r(30).getIteratorMethod=function(e){if(e!=undefined)return e[a]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(274);var a=r(67)("toStringTag");var i=n(function(){return arguments}())=="Arguments";var o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,s;return e===undefined?"Undefined":e===null?"Null":typeof(r=o(t=Object(e),a))=="string"?r:i?n(t):(s=n(t))=="Object"&&typeof t.callee=="function"?"Arguments":s}},function(e,t,r){var n=r(67)("iterator");var a=false;try{var i=[7][n]();i["return"]=function(){a=true};Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return false;var r=false;try{var i=[7];var o=i[n]();o.next=function(){return{done:r=true}};i[n]=function(){return o};e(i)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=o;var a=n(r(92));var i=n(r(1005));function o(e,t){return function r(n){var o=n.currentTarget,s=n.target,u=(0,i.default)(o,e);if(u.some((function(e){return(0,a.default)(e,s)})))t.call(this,n)}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=i;var n=/^[\w-]*$/;var a=Function.prototype.bind.call(Function.prototype.call,[].slice);function i(e,t){var r=t[0]==="#",i=t[0]===".",o=r||i?t.slice(1):t,s=n.test(o),u;if(s){if(r){e=e.getElementById?e:document;return(u=e.getElementById(o))?[u]:[]}if(e.getElementsByClassName&&i)return a(e.getElementsByClassName(o));return a(e.getElementsByTagName(t))}return a(e.querySelectorAll(t))}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=n(r(283));var o=n(r(284));var s=function e(){};if(a.default){s=function e(t,r,n,a){(0,i.default)(t,r,n,a);return function(){(0,o.default)(t,r,n,a)}}}var u=s;t.default=u;e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(1008);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o={};function s(e,t){return function r(n,i,s,u,l){var c=s||"<<anonymous>>";var f=l||i;if(n[i]!=null){var d=s+"."+i;(0,a.default)(o[d],"The "+u+" `"+f+"` of "+("`"+c+"` is deprecated. "+t+"."));o[d]=true}for(var p=arguments.length,h=Array(p>5?p-5:0),v=5;v<p;v++){h[v-5]=arguments[v]}return e.apply(undefined,[n,i,s,u,l].concat(h))}}function u(){o={}}s._resetWarned=u;e.exports=t["default"]},function(e,t,r){"use strict";var n="production"!=="production";var a=function(){};if(n){var i=function e(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var a=1;a<n;a++){r[a-1]=arguments[a]}var i=0;var o="Warning: "+t.replace(/%s/g,(function(){return r[i++]}));if(typeof console!=="undefined"){console.error(o)}try{throw new Error(o)}catch(e){}};a=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var a=2;a<n;a++){r[a-2]=arguments[a]}if(t===undefined){throw new Error("`warning(condition, format, ...args)` requires a warning "+"message argument")}if(!e){i.apply(null,[t].concat(r))}}}e.exports=a},function(e,t,r){"use strict";t.__esModule=true;var n=r(1010);var a=d(n);var i=r(120);var o=d(i);var s=r(222);var u=d(s);var l=r(343);var c=d(l);var f=r(1011);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function h(e,t){var r=-1;e.some((function(e,n){if(t(e,n)){r=n;return true}}));return r}function v(e,t){return h(e,(function(e){return e.modals.indexOf(t)!==-1}))}function m(e,t){var r={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight};if(e.overflowing){r.paddingRight=parseInt((0,o.default)(t,"paddingRight")||0,10)+(0,u.default)()+"px"}(0,o.default)(t,r)}function y(e,t){var r=e.style;Object.keys(r).forEach((function(e){return t.style[e]=r[e]}))}var g=function e(){var t=this;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=r.hideSiblingNodes,i=n===undefined?true:n,o=r.handleContainerOverflow,s=o===undefined?true:o;p(this,e);this.add=function(e,r,n){var i=t.modals.indexOf(e);var o=t.containers.indexOf(r);if(i!==-1){return i}i=t.modals.length;t.modals.push(e);if(t.hideSiblingNodes){(0,f.hideSiblings)(r,e.mountNode)}if(o!==-1){t.data[o].modals.push(e);return i}var s={modals:[e],classes:n?n.split(/\s+/):[],overflowing:(0,c.default)(r)};if(t.handleContainerOverflow){m(s,r)}s.classes.forEach(a.default.addClass.bind(null,r));t.containers.push(r);t.data.push(s);return i};this.remove=function(e){var r=t.modals.indexOf(e);if(r===-1){return}var n=v(t.data,e);var i=t.data[n];var o=t.containers[n];i.modals.splice(i.modals.indexOf(e),1);t.modals.splice(r,1);if(i.modals.length===0){i.classes.forEach(a.default.removeClass.bind(null,o));if(t.handleContainerOverflow){y(i,o)}if(t.hideSiblingNodes){(0,f.showSiblings)(o,e.mountNode)}t.containers.splice(n,1);t.data.splice(n,1)}else if(t.hideSiblingNodes){(0,f.ariaHidden)(false,i.modals[i.modals.length-1].mountNode)}};this.isTopModal=function(e){return!!t.modals.length&&t.modals[t.modals.length-1]===e};this.hideSiblingNodes=i;this.handleContainerOverflow=s;this.modals=[];this.containers=[];this.data=[]};t.default=g;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(600));t.addClass=a.default;var i=n(r(602));t.removeClass=i.default;var o=n(r(601));t.hasClass=o.default;var s={addClass:a.default,removeClass:i.default,hasClass:o.default};t.default=s},function(e,t,r){"use strict";t.__esModule=true;t.ariaHidden=o;t.hideSiblings=s;t.showSiblings=u;var n=["template","script","style"];var a=function e(t){var r=t.nodeType,a=t.tagName;return r===1&&n.indexOf(a.toLowerCase())===-1};var i=function e(t,r,n){r=[].concat(r);[].forEach.call(t.children,(function(e){if(r.indexOf(e)===-1&&a(e)){n(e)}}))};function o(e,t){if(!t){return}if(e){t.setAttribute("aria-hidden","true")}else{t.removeAttribute("aria-hidden")}}function s(e,t){i(e,t,(function(e){return o(true,e)}))}function u(e,t){i(e,t,(function(e){return o(false,e)}))}},function(e,t,r){"use strict";t.__esModule=true;var n=r(0);var a=v(n);var i=r(194);var o=v(i);var s=r(1);var u=v(s);var l=r(18);var c=v(l);var f=r(196);var d=v(f);var p=r(134);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=function(e){g(t,e);function t(){var r,n,a;m(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++){o[s]=arguments[s]}return a=(r=(n=y(this,e.call.apply(e,[this].concat(o))),n),n._mountOverlayTarget=function(){if(!n._overlayTarget){n._overlayTarget=document.createElement("div");n._portalContainerNode=(0,d.default)(n.props.container,(0,h.default)(n).body);n._portalContainerNode.appendChild(n._overlayTarget)}},n._unmountOverlayTarget=function(){if(n._overlayTarget){n._portalContainerNode.removeChild(n._overlayTarget);n._overlayTarget=null}n._portalContainerNode=null},n._renderOverlay=function(){var e=!n.props.children?null:u.default.Children.only(n.props.children);if(e!==null){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=c.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){if(t&&n.props.onRendered){n.props.onRendered()}}))}else{n._unrenderOverlay();n._unmountOverlayTarget()}},n._unrenderOverlay=function(){if(n._overlayTarget){c.default.unmountComponentAtNode(n._overlayTarget);n._overlayInstance=null}},n.getMountNode=function(){return n._overlayTarget},r),y(n,a)}t.prototype.componentDidMount=function e(){this._isMounted=true;this._renderOverlay()};t.prototype.componentDidUpdate=function e(){this._renderOverlay()};t.prototype.componentWillReceiveProps=function e(t){if(this._overlayTarget&&t.container!==this.props.container){this._portalContainerNode.removeChild(this._overlayTarget);this._portalContainerNode=(0,d.default)(t.container,(0,h.default)(this).body);this._portalContainerNode.appendChild(this._overlayTarget)}};t.prototype.componentWillUnmount=function e(){this._isMounted=false;this._unrenderOverlay();this._unmountOverlayTarget()};t.prototype.render=function e(){return null};return t}(u.default.Component);b.displayName="Portal";b.propTypes={container:a.default.oneOfType([o.default,a.default.func]),onRendered:a.default.func};t.default=b;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=r(0);var a=s(n);var i=r(1);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f={children:a.default.node};var d=function(e){c(t,e);function t(){u(this,t);return l(this,e.apply(this,arguments))}t.prototype.render=function e(){return this.props.children};return t}(o.default.Component);d.propTypes=f;t.default=d;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){var t=!document.addEventListener;var r=void 0;if(t){document.attachEvent("onfocusin",e);r=function t(){return document.detachEvent("onfocusin",e)}}else{document.addEventListener("focus",e,true);r=function t(){return document.removeEventListener("focus",e,true)}}return{remove:r}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(2);var i=A(a);var o=r(0);var s=A(o);var u=r(194);var l=A(u);var c=r(1);var f=A(c);var d=r(18);var p=A(d);var h=r(1016);var v=A(h);var m=r(196);var y=A(m);var g=r(134);var b=A(g);function A(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}function w(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function E(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function x(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var k=function(e){x(t,e);function t(r,n){w(this,t);var a=E(this,e.call(this,r,n));a.getTarget=function(){var e=a.props.target;var t=typeof e==="function"?e():e;return t&&p.default.findDOMNode(t)||null};a.maybeUpdatePosition=function(e){var t=a.getTarget();if(!a.props.shouldUpdatePosition&&t===a._lastTarget&&!e){return}a.updatePosition(t)};a.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null};a._needsFlush=false;a._lastTarget=null;return a}t.prototype.componentDidMount=function e(){this.updatePosition(this.getTarget())};t.prototype.componentWillReceiveProps=function e(){this._needsFlush=true};t.prototype.componentDidUpdate=function e(t){if(this._needsFlush){this._needsFlush=false;this.maybeUpdatePosition(this.props.placement!==t.placement)}};t.prototype.render=function e(){var t=this.props,r=t.children,a=t.className,o=_(t,["children","className"]);var s=this.state,u=s.positionLeft,l=s.positionTop,d=_(s,["positionLeft","positionTop"]);delete o.target;delete o.container;delete o.containerPadding;delete o.shouldUpdatePosition;var p=f.default.Children.only(r);return(0,c.cloneElement)(p,n({},o,d,{positionLeft:u,positionTop:l,className:(0,i.default)(a,p.props.className),style:n({},p.props.style,{left:u,top:l})}))};t.prototype.updatePosition=function e(t){this._lastTarget=t;if(!t){this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null});return}var r=p.default.findDOMNode(this);var n=(0,y.default)(this.props.container,(0,b.default)(this).body);this.setState((0,v.default)(this.props.placement,r,t,n,this.props.containerPadding))};return t}(f.default.Component);k.propTypes={target:s.default.oneOfType([l.default,s.default.func]),container:s.default.oneOfType([l.default,s.default.func]),containerPadding:s.default.number,placement:s.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:s.default.bool};k.displayName="Position";k.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:false};t.default=k;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=v;var n=r(604);var a=f(n);var i=r(1017);var o=f(i);var s=r(605);var u=f(s);var l=r(134);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=void 0,r=void 0,n=void 0;if(e.tagName==="BODY"){t=window.innerWidth;r=window.innerHeight;n=(0,u.default)((0,c.default)(e).documentElement)||(0,u.default)(e)}else{var i=(0,a.default)(e);t=i.width;r=i.height;n=(0,u.default)(e)}return{width:t,height:r,scroll:n}}function p(e,t,r,n){var a=d(r);var i=a.scroll;var o=a.height;var s=e-n-i;var u=e+n-i+t;if(s<0){return-s}else if(u>o){return o-u}else{return 0}}function h(e,t,r,n){var a=d(r);var i=a.width;var o=e-n;var s=e+n+t;if(o<0){return-o}else if(s>i){return i-s}return 0}function v(e,t,r,n,i){var s=n.tagName==="BODY"?(0,a.default)(r):(0,o.default)(r,n);var u=(0,a.default)(t),l=u.height,c=u.width;var f=void 0,d=void 0,v=void 0,m=void 0;if(e==="left"||e==="right"){d=s.top+(s.height-l)/2;if(e==="left"){f=s.left-c}else{f=s.left+s.width}var y=p(d,l,n,i);d+=y;m=50*(1-2*y/l)+"%";v=void 0}else if(e==="top"||e==="bottom"){f=s.left+(s.width-c)/2;if(e==="top"){d=s.top-l}else{d=s.top+s.height}var g=h(f,c,n,i);f+=g;v=50*(1-2*g/c)+"%";m=void 0}else{throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.')}return{positionLeft:f,positionTop:d,arrowOffsetLeft:v,arrowOffsetTop:m}}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=f;var a=n(r(1018));var i=n(r(604));var o=n(r(1019));var s=n(r(605));var u=n(r(1020));var l=n(r(120));function c(e){return e.nodeName&&e.nodeName.toLowerCase()}function f(e,t){var r={top:0,left:0},n;if((0,l.default)(e,"position")==="fixed"){n=e.getBoundingClientRect()}else{t=t||(0,o.default)(e);n=(0,i.default)(e);if(c(t)!=="html")r=(0,i.default)(t);r.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,s.default)(t)||0;r.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,u.default)(t)||0}return(0,a.default)({},n,{top:n.top-r.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:n.left-r.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})}e.exports=t["default"]},function(e,t){function r(){e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};return r.apply(this,arguments)}e.exports=r},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=s;var a=n(r(119));var i=n(r(120));function o(e){return e.nodeName&&e.nodeName.toLowerCase()}function s(e){var t=(0,a.default)(e),r=e&&e.offsetParent;while(r&&o(e)!=="html"&&(0,i.default)(r,"position")==="static"){r=r.offsetParent}return r||t.documentElement}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(195));function i(e,t){var r=(0,a.default)(e);if(t===undefined)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;if(r)r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop);else e.scrollLeft=t}e.exports=t["default"]},function(e,t,r){r(1022);e.exports=r(30).Array.isArray},function(e,t,r){var n=r(42);n(n.S,"Array",{isArray:r(606)})},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){function t(t,r,n,a,i,o){var s=a||"<<anonymous>>";var u=o||n;if(r[n]==null){if(t){return new Error("Required "+i+" `"+u+"` was not specified "+("in `"+s+"`."))}return null}for(var l=arguments.length,c=Array(l>6?l-6:0),f=6;f<l;f++){c[f-6]=arguments[f]}return e.apply(undefined,[r,n,s,i,u].concat(c))}var r=t.bind(null,false);r.isRequired=t.bind(null,true);return r}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(179);var s=r(41);var u=r(8);var l=r(37);var c=r(1025);var f=r(1027);var d=r(285);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.refresh=r.refresh.bind(r);r.editClassifications=r.editClassifications.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"classifications"},this.props.book&&a.createElement(a.Fragment,null,a.createElement("h2",null,this.props.book.title),a.createElement(d.default,{show:this.props.isFetching})),this.props.fetchError&&a.createElement(l.default,{error:this.props.fetchError}),this.props.book&&this.props.genreTree&&a.createElement(c.default,{book:this.props.book,genreTree:this.props.genreTree,disabled:this.props.isFetching,editClassifications:this.editClassifications}),this.props.classifications&&this.props.classifications.length>0&&a.createElement(f.default,{classifications:this.props.classifications}))};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.bookUrl){this.props.fetchGenreTree("/admin/genres");this.props.fetchClassifications(this.classificationsUrl())}};t.prototype.classificationsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/classifications"};t.prototype.editClassificationsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/edit_classifications"};t.prototype.refresh=function(){this.props.fetchBook(this.props.bookAdminUrl);this.props.fetchClassifications(this.classificationsUrl());this.props.refreshCatalog()};t.prototype.editClassifications=function(e){var t=this;return this.props.editClassifications(this.editClassificationsUrl(),e).then((function(e){t.refresh()}))};return t}(a.Component);t.Classifications=p;function h(e,t){return{bookAdminUrl:e.editor.book.url,genreTree:e.editor.classifications.genreTree,classifications:e.editor.classifications.classifications,isFetching:e.editor.classifications.isFetchingGenreTree||e.editor.classifications.isEditingClassifications||e.editor.classifications.isFetchingClassifications||e.editor.book.isFetching,fetchError:e.editor.classifications.fetchError}}function v(e,t){var r=new s.default({adapter:o.default});var n=new u.default(r,t.csrfToken);return{fetchBook:function(t){return e(n.fetchBookAdmin(t))},fetchGenreTree:function(t){return e(n.fetchGenreTree(t))},fetchClassifications:function(t){return e(n.fetchClassifications(t))},editClassifications:function(t,r){return e(n.editClassifications(t,r))}}}var m=i.connect(h,v)(p);t.default=m},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(18);var o=r(20);var s=r(190);var u=r(1026);var l=r(13);var c=r(118);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.errorMessageRef=a.createRef();r.audienceRef=a.createRef();r.targetAgeMinRef=a.createRef();r.targetAgeMaxRef=a.createRef();r.noFictionSelectedRef=a.createRef();r.fictionRef=a.createRef();r.nonfictionRef=a.createRef();r.state={audience:t.book&&t.book.audience?t.book.audience:"None",fiction:t.book?t.book.fiction:undefined,genres:[],error:null};r.handleAudienceChange=r.handleAudienceChange.bind(r);r.handleFictionChange=r.handleFictionChange.bind(r);r.addGenre=r.addGenre.bind(r);r.removeGenre=r.removeGenre.bind(r);r.submit=r.submit.bind(r);return r}t.prototype.render=function(){var e=this;var t=this.state,r=t.audience,n=t.fiction,i=t.error,f=t.genres;var d=this.genreOptions();var p=r==="None"||i&&i["audience"];var h=n===undefined||i&&i["fiction"];return a.createElement("fieldset",{className:"classifications-form"},a.createElement("legend",{className:"visuallyHidden"},"Classifications"),i&&a.createElement(c.Alert,{bsStyle:"danger",ref:this.errorMessageRef,tabIndex:-1},Object.keys(i).map((function(e){return a.createElement("p",{key:e},i[e])}))),a.createElement(l.Panel,{id:"classifications",headerText:"Classifications",collapsible:false,onEnter:this.submit,content:a.createElement("div",null,a.createElement(o.default,{elementType:"select",disabled:this.props.disabled,name:"audience",label:"Audience",ref:this.audienceRef,value:this.props.book.audience||"None",onChange:this.handleAudienceChange,clientError:p},(!r||r==="None")&&a.createElement("option",{value:"None","aria-selected":r==="None"},"None"),a.createElement("option",{value:"Children","aria-selected":r==="Children"},"Children"),a.createElement("option",{value:"Young Adult","aria-selected":r==="Young Adult"},"Young Adult"),a.createElement("option",{value:"Adult","aria-selected":r==="Adult"},"Adult"),a.createElement("option",{value:"Adults Only","aria-selected":r==="Adults Only"},"Adults Only"),a.createElement("option",{value:"All Ages","aria-selected":r==="All Ages"},"All Ages"),a.createElement("option",{value:"Research","aria-selected":r==="Research"},"Research")),this.shouldShowTargetAge()&&a.createElement("div",{className:"form-group target-age"},a.createElement("p",null,"Target Age Range"),a.createElement("div",{className:"form-inline"},a.createElement(o.default,{elementType:"input",ref:this.targetAgeMinRef,type:"text",disabled:this.props.disabled,name:"target_age_min","aria-label":"Enter a minimum target age",value:this.props.book.targetAgeRange[0]}),a.createElement("span",null,"  -  "),a.createElement(o.default,{elementType:"input",ref:this.targetAgeMaxRef,type:"text",disabled:this.props.disabled,name:"target_age_max","aria-label":"Enter a maximum target age",value:this.props.book.targetAgeRange[1]}))),a.createElement("div",{className:"form-group fiction-radio-input"},a.createElement("p",null,"Fiction Classification"),a.createElement("div",{className:"form-inline"},n===undefined&&a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"none",label:"None",ref:this.noFictionSelectedRef,checked:true,onChange:this.handleFictionChange,clientError:h}),a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"fiction",label:"Fiction",ref:this.fictionRef,checked:n!==undefined&&n,onChange:this.handleFictionChange,clientError:h}),a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"nonfiction",label:"Nonfiction",ref:this.nonfictionRef,checked:n!==undefined&&!n,onChange:this.handleFictionChange,clientError:h}))),a.createElement("div",{className:"form-group genre-group-form"},a.createElement("p",null,"Genres"),f.sort().map((function(t){return a.createElement(s.default,{key:t,disabled:e.props.disabled,onRemove:function(){return e.removeGenre(t)}},e.fullGenre(t))})),a.createElement("p",{className:"add-genre-form-title"},"Add Genre"),a.createElement(u.default,{disabled:this.props.disabled,genreOptions:d,bookGenres:f,addGenre:this.addGenre})))}),a.createElement(l.Button,{className:"left-align",callback:this.submit,content:"Save"}))};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.book){this.setState({audience:this.props.book.audience||"None"});this.setState({fiction:this.props.book.fiction});this.setState({genres:this.bookGenres(this.props.book)})}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.bookChanged(e.book)){this.setState({audience:e.book.audience});this.setState({fiction:e.book.fiction});this.setState({genres:this.bookGenres(e.book)})}};t.prototype.bookChanged=function(e){return e.audience!==this.props.book.audience||e.targetAgeRange[0]!==this.props.book.targetAgeRange[0]||e.targetAgeRange[1]!==this.props.book.targetAgeRange[1]||e.fiction!==this.props.book.fiction||e.categories.sort()!==this.props.book.categories.sort()};t.prototype.bookGenres=function(e){var t=this;if(!e||!e.categories||!this.props.genreTree){return[]}return e.categories.filter((function(e){return!!t.props.genreTree["Fiction"][e]||!!t.props.genreTree["Nonfiction"][e]}))};t.prototype.shouldShowTargetAge=function(){return this.state.audience==="Children"||this.state.audience==="Young Adult"};t.prototype.filterGenres=function(e,t){var r=this;if(t===void 0){t=true}var n=t?"Fiction":"Nonfiction";if(!this.props.genreTree[n]){return[]}return e.filter((function(e){return r.props.genreTree[n][e]}))};t.prototype.genreOptions=function(){var e=this;if(!this.props.book||!this.props.genreTree){return[]}var t=this.state.fiction?"Fiction":"Nonfiction";if(!this.props.genreTree[t]){return[]}return Object.keys(this.props.genreTree[t]).map((function(r){return e.props.genreTree[t][r]}))};t.prototype.fullGenre=function(e){for(var t=0,r=["Fiction","Nonfiction"];t<r.length;t++){var n=r[t];var a=this.props.genreTree[n][e];if(a){return a.parents.concat([a.name]).join(" > ")}}return e};t.prototype.validateAudience=function(e,t){if(t.indexOf("Erotica")!==-1&&e!=="Adults Only"){alert("Erotica genre requires Adults Only audience");return false}else{return true}};t.prototype.handleAudienceChange=function(){var e=this.audienceRef.current.getValue();if(this.validateAudience(e,this.state.genres)){this.setState({audience:e})}else{return false}};t.prototype.handleFictionChange=function(){var e=this.fictionRef.current.getChecked();var t=e?"Nonfiction":"Fiction";var r="Are you sure? This will clear any "+t+" genres you have chosen!";if(this.state.genres.length===0||window.confirm(r)){this.setState({fiction:e,genres:this.filterGenres(this.state.genres,e)})}};t.prototype.addGenre=function(e){if(this.validateAudience(this.state.audience,[e])){this.setState({genres:this.state.genres.concat([e])})}};t.prototype.removeGenre=function(e){this.setState({genres:this.state.genres.filter((function(t){return t!==e}))})};t.prototype.submit=function(){var e=this;var t=this.state,r=t.audience,n=t.fiction;var a=new window.FormData;var o={};if(!r||r==="None"){o["audience"]="No Audience classification selected."}if(n===undefined){o["fiction"]="No Fiction classification selected."}if(o["audience"]||o["fiction"]){this.setState({error:o});setTimeout((function(){if(e.errorMessageRef.current){i.findDOMNode(e.errorMessageRef.current).focus()}}),500);return}a.append("audience",r);if(this.shouldShowTargetAge()){a.append("target_age_min",this.targetAgeMinRef.current.getValue());a.append("target_age_max",this.targetAgeMaxRef.current.getValue())}a.append("fiction",n?"fiction":"nonfiction");this.state.genres.forEach((function(e){return a.append("genres",e)}));this.setState({error:null});return this.props.editClassifications(a)};return t}(a.Component);t.default=f},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var i=r(1);var o=r(13);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={genre:null,subgenre:null};r.handleGenreSelect=r.handleGenreSelect.bind(r);r.handleSubgenreSelect=r.handleSubgenreSelect.bind(r);r.addGenre=r.addGenre.bind(r);return r}t.prototype.render=function(){var e=this;var t=null;if(this.state.genre){var r=this.props.genreOptions.find((function(t){return t.name===e.state.genre}));if(r){t=r.subgenres.sort()}}var n=this.props.disabled?{disabled:true}:{};return i.createElement("div",{className:"genre-form"},i.createElement("div",{className:"form-inline"},i.createElement("select",a({name:"genre","aria-label":"Select one of the following genres",size:this.topLevelGenres().length,className:"form-control"},n),this.topLevelGenres().map((function(t){return i.createElement("option",{key:t.name,value:t.name,disabled:e.bookHasGenre(t.name),onClick:e.handleGenreSelect,"aria-selected":t.name===e.state.genre},t.name+(t.subgenres.length>0?" >":""))}))),t&&t.length>0&&i.createElement("select",a({name:"subgenre",size:t.length,className:"form-control subgenres"},n),t.map((function(t){return i.createElement("option",{key:t,value:t,disabled:e.bookHasGenre(t),onClick:e.handleSubgenreSelect,"aria-selected":t===e.state.subgenre},t)}))),this.state.genre&&i.createElement(o.Button,{className:"top-align",callback:this.addGenre,content:"Add"})))};t.prototype.topLevelGenres=function(){return this.props.genreOptions.filter((function(e){return e.parents.length===0}))};t.prototype.bookHasGenre=function(e){return this.props.bookGenres.indexOf(e)!==-1};t.prototype.handleGenreSelect=function(e){this.setState({genre:e.target.value,subgenre:null})};t.prototype.handleSubgenreSelect=function(e){this.setState({genre:this.state.genre,subgenre:e.target.value})};t.prototype.resetForm=function(){this.setState({genre:null,subgenre:null})};t.prototype.addGenre=function(){var e=this.state.subgenre||this.state.genre;this.props.addGenre(e);this.resetForm()};return t}(i.Component);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=this;return a.createElement("div",{className:"classifications-table"},a.createElement("h3",null,"Related Classifications"),a.createElement("table",{className:"table"},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",null,"Type"),a.createElement("th",null,"Name"),a.createElement("th",null,"Source"),a.createElement("th",null,"Weight"))),a.createElement("tbody",null,this.props.classifications.map((function(t,r){return a.createElement("tr",{key:t.source+":"+(t.name||r)},a.createElement("td",null,e.readableType(t.type)),a.createElement("td",null,t.name),a.createElement("td",null,t.source),a.createElement("td",null,t.weight))})))))};t.prototype.readableType=function(e){return e.replace(/http:\/\/librarysimplified\.org\/terms\/genres\/([^\/]+)\//,"$1")};return t}(a.Component);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(179);var s=r(41);var u=r(8);var l=r(37);var c=r(20);var f=r(13);var d=r(285);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.formContainerRef=a.createRef();r.imageFormRef=a.createRef();r.coverUrlRef=a.createRef();r.coverFileRef=a.createRef();r.titlePositionRef=a.createRef();r.rightsFormRef=a.createRef();r.rightStatusRef=a.createRef();r.refresh=r.refresh.bind(r);r.preview=r.preview.bind(r);r.save=r.save.bind(r);r.renderCoverForm=r.renderCoverForm.bind(r);return r}t.prototype.UNSAFE_componentWillMount=function(){if(this.props.clearPreview){this.props.clearPreview()}if(this.props.fetchRightsStatuses){this.props.fetchRightsStatuses()}};t.prototype.render=function(){return this.props.book&&a.createElement("div",null,a.createElement("h2",null,this.props.book.title),a.createElement(d.default,{show:this.props.isFetching}),a.createElement("div",null,a.createElement("h3",null,"Current cover:"),a.createElement("img",{src:this.props.book.coverUrl,className:"book-cover current-cover",alt:"Current book cover"})),a.createElement("div",{ref:this.formContainerRef,className:"cover-edit-form"},a.createElement("h3",null,"Change cover:"),a.createElement(f.Panel,{id:"cover-metadata",headerText:"Cover Metadata",openByDefault:true,content:this.renderCoverForm(),onEnter:this.save}),this.props.rightsStatuses&&a.createElement(f.Panel,{id:"rights",headerText:"Rights",openByDefault:true,onEnter:this.save,content:this.renderRightsForm()}),a.createElement(f.Button,{className:"left-align",content:"Save this cover",disabled:this.props.isFetching||!this.props.preview,callback:this.save})),this.props.fetchError&&a.createElement(l.default,{error:this.props.fetchError}))};t.prototype.renderCoverForm=function(){var e=this.titlePositionRef.current;var t=e&&e.getValue();return a.createElement("div",null,a.createElement("p",null,"Cover must be at least 600px x 900px and in PNG, JPG, or GIF format."),a.createElement(f.Form,{ref:this.imageFormRef,className:"edit-form",onSubmit:this.preview,buttonContent:"Preview",buttonClass:"top-align",errorText:this.props.previewFetchError&&a.createElement(l.default,{error:this.props.previewFetchError}),content:a.createElement("fieldset",{key:"cover-image"},a.createElement("legend",{className:"visuallyHidden"},"Cover Image"),a.createElement(c.default,{elementType:"input",type:"text",disabled:this.props.isFetching,name:"cover_url",label:"URL for cover image",description:this.props.book.coverUrl?"Current URL: "+this.props.book.coverUrl:"",ref:this.coverUrlRef,optionalText:false}),a.createElement(c.default,{elementType:"input",type:"file",disabled:this.props.isFetching,name:"cover_file",label:"Or upload cover image",accept:"image/*",ref:this.coverFileRef,optionalText:false}),a.createElement(c.default,{elementType:"select",disabled:this.props.isFetching,name:"title_position",label:"Title and Author Position",value:"none",ref:this.titlePositionRef},a.createElement("option",{value:"none","aria-selected":t==="none"},"None"),a.createElement("option",{value:"top","aria-selected":t==="top"},"Top"),a.createElement("option",{value:"center","aria-selected":t==="center"},"Center"),a.createElement("option",{value:"bottom","aria-selected":t==="bottom"},"Bottom")))}),a.createElement(d.default,{text:"Updating Preview",show:this.props.isFetchingPreview}),this.props.preview&&a.createElement("div",null,a.createElement("h4",null,"Preview:"),a.createElement("img",{src:this.props.preview,className:"book-cover preview-cover",alt:"Preview of new cover"})))};t.prototype.previewUrl=function(){return this.props.bookAdminUrl+"/preview_book_cover"};t.prototype.preview=function(e){var t=this.coverFileRef.current.getValue();var r=this.coverUrlRef.current.getValue();if(!t&&!r&&this.props.clearPreview){this.props.clearPreview()}if((t||r)&&this.props.fetchPreview){this.props.fetchPreview(this.previewUrl(),e)}};t.prototype.renderRightsForm=function(){var e=this;var t="http://librarysimplified.org/terms/rights-status/in-copyright";var r="http://librarysimplified.org/terms/rights-status/unknown";var n=this.rightStatusRef.current;var i=n&&n.getValue();return a.createElement(f.Form,{ref:this.rightsFormRef,onSubmit:this.save,className:"edit-form",withoutButton:true,content:a.createElement("fieldset",{key:"rights"},a.createElement("legend",{className:"visuallyHidden"},"Rights:"),a.createElement(c.default,{elementType:"select",disabled:this.props.isFetching,name:"rights_status",ref:this.rightStatusRef,label:"License"},Object.keys(this.props.rightsStatuses).map((function(t){var r=e.props.rightsStatuses[t];if(r.allows_derivatives){return a.createElement("option",{value:t,key:t,"aria-selected":i===t},r.name)}return null})),a.createElement("option",{value:t,"aria-selected":i===t},"In Copyright"),a.createElement("option",{value:r,"aria-selected":i===r},"Other")),a.createElement(c.default,{elementType:"textarea",disabled:this.props.isFetching,name:"rights_explanation",label:"Explanation of rights",optionalText:false}))})};t.prototype.refresh=function(){this.props.fetchBook(this.props.bookAdminUrl);this.props.refreshCatalog()};t.prototype.save=function(){var e=new window.FormData;var t=this.props.book&&this.props.book.changeCoverLink&&this.props.book.changeCoverLink.href;var r=this.imageFormRef.current.formRef.current;var n=new window.FormData(r);e.append("cover_file",n.get("cover_file"));e.append("cover_url",n.get("cover_url"));e.append("title_position",n.get("title_position"));var a=this.rightsFormRef.current.formRef.current;var i=new window.FormData(a);e.append("rights_status",i.get("rights_status"));e.append("rights_explanation",i.get("rights_explanation"));if(t&&this.props.preview&&this.props.editCover){this.props.editCover(t,e).then(this.refresh)}};return t}(a.Component);t.BookCoverEditor=p;function h(e,t){return{bookAdminUrl:e.editor.book.url,preview:e.editor.bookCoverPreview.data,rightsStatuses:e.editor.rightsStatuses.data,isFetching:e.editor.book.isFetching||e.editor.bookCover.isFetching||e.editor.rightsStatuses.isFetching||e.editor.bookCover.isEditing,fetchError:e.editor.book.fetchError||e.editor.bookCover.fetchError||e.editor.rightsStatuses.fetchError,isFetchingPreview:e.editor.bookCoverPreview.isFetching,previewFetchError:e.editor.bookCoverPreview.fetchError}}function v(e,t){var r=new s.default({adapter:o.default});var n=new u.default(r,t.csrfToken);return{fetchBook:function(t){return e(n.fetchBookAdmin(t))},fetchPreview:function(t,r){return e(n.fetchBookCoverPreview(t,r))},clearPreview:function(){return e(n.clearBookCoverPreview())},editCover:function(t,r){return e(n.editBookCover(t,r))},fetchRightsStatuses:function(){return e(n.fetchRightsStatuses())}}}var m=i.connect(h,v)(p);t.default=m},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(41);var s=r(8);var u=r(37);var l=r(197);var c=r(91);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addListRef=a.createRef();r.state={customLists:r.props.customListsForBook};r.refresh=r.refresh.bind(r);r.save=r.save.bind(r);r.makeURL=r.makeURL.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"custom-list-for-book"},this.props.book&&a.createElement("h2",null,this.props.book.title),a.createElement("h3",null,"Lists:"),this.props.fetchError&&a.createElement(u.default,{error:this.props.fetchError,tryAgain:this.refresh}),a.createElement("div",{className:"edit-form"},this.renderInputList(),this.renderLink()))};t.prototype.makeOption=function(e){return a.createElement("option",{value:e.name,key:e.id,"aria-selected":false},e.name)};t.prototype.renderLink=function(){return a.createElement("div",{key:"list-creator-link"},a.createElement(c.Link,{to:{pathname:"/admin/web/lists/"+this.props.library+"/create",state:{bookTitle:this.props.book&&this.props.book.title}}},"Create a new list"),a.createElement("p",null,"(The book title will be automatically copied and searched on the list creator page.)"))};t.prototype.renderInputList=function(){var e=this;var t=this.props.allCustomLists||[];if(t.length>0){return a.createElement(l.default,{key:"lists",ref:this.addListRef,setting:{menuTitle:"Select an existing list",type:"menu",format:"narrow",key:"lists-input",label:null,custom_lists:this.state.customLists,required:false,menuOptions:t.filter((function(e){return e.name})).map((function(t){return e.makeOption(t)})),urlBase:this.makeURL},title:"Current Lists",disabled:this.props.isFetching,value:this.props.customListsForBook&&this.props.customListsForBook.map((function(e){return e.name})),altValue:"This book is not currently on any lists.",onSubmit:this.save,onEmpty:"This book has been added to all the available lists."})}else{return a.createElement("p",null,"There are no available lists.")}};t.prototype.makeURL=function(e){var t=(this.props.allCustomLists||[]).find((function(t){return t.name===e}));if(t){return"/admin/web/lists/"+this.props.library+"/edit/"+t.id}};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.bookUrl){this.props.fetchCustomListsForBook(this.listsUrl());if(!this.props.allCustomLists){this.props.fetchAllCustomLists()}}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.props.bookUrl!==e.bookUrl){this.setState({customLists:e.customListsForBook})}};t.prototype.listsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/lists"};t.prototype.refresh=function(){this.props.fetchAllCustomLists();this.props.fetchCustomListsForBook(this.listsUrl());this.props.refreshCatalog()};t.prototype.save=function(){var e=this;var t=this.addListRef.current.getValue();var r=this.listsUrl();var n=new window.FormData;var a=[];t.map((function(t){var r=e.props.allCustomLists.find((function(e){return e.name===t}));a.push(r)}));n.append("lists",JSON.stringify(a));return this.props.editCustomListsForBook(r,n).then(this.refresh)};return t}(a.Component);t.CustomListsForBook=f;function d(e,t){return{allCustomLists:e.editor.customLists.data&&e.editor.customLists.data.custom_lists,customListsForBook:e.editor.customListsForBook.data&&e.editor.customListsForBook.data.custom_lists,isFetching:e.editor.customListsForBook.isFetching,fetchError:e.editor.customListsForBook.fetchError}}function p(e,t){var r=new o.default;var n=new s.default(r,t.csrfToken);return{fetchAllCustomLists:function(){return e(n.fetchCustomLists(t.library))},fetchCustomListsForBook:function(t){return e(n.fetchCustomListsForBook(t))},editCustomListsForBook:function(t,r){return e(n.editCustomListsForBook(t,r))}}}var h=i.connect(d,p)(f);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1389);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={value:r.props.value};r.handleChange=r.handleChange.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"color-picker"},a.createElement(i.CompactPicker,{color:this.state.value,triangle:"hide",width:"500px",onChangeComplete:this.handleChange}),a.createElement("input",{type:"hidden",name:this.props.setting.key,value:this.state.value}))};t.prototype.handleChange=function(e,t){this.setState({value:e.hex})};t.prototype.getValue=function(){return this.state.value};return t}(a.Component);t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.flattenNames=undefined;var n=r(55);var a=f(n);var i=r(286);var o=f(i);var s=r(144);var u=f(s);var l=r(611);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=t.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var r=[];(0,c.default)(t,(function(t){if(Array.isArray(t)){e(t).map((function(e){return r.push(e)}))}else if((0,u.default)(t)){(0,o.default)(t,(function(e,t){e===true&&r.push(t);r.push(t+"-"+e)}))}else if((0,a.default)(t)){r.push(t)}}));return r};t.default=d},function(e,t,r){var n=r(135);var a=Object.prototype;var i=a.hasOwnProperty;var o=a.toString;var s=n?n.toStringTag:undefined;function u(e){var t=i.call(e,s),r=e[s];try{e[s]=undefined;var n=true}catch(e){}var a=o.call(e);if(n){if(t){e[s]=r}else{delete e[s]}}return a}e.exports=u},function(e,t){var r=Object.prototype;var n=r.toString;function a(e){return n.call(e)}e.exports=a},function(e,t,r){var n=r(1035);var a=n();e.exports=a},function(e,t){function r(e){return function(t,r,n){var a=-1,i=Object(t),o=n(t),s=o.length;while(s--){var u=o[e?s:++a];if(r(i[u],u,i)===false){break}}return t}}e.exports=r},function(e,t){function r(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}e.exports=r},function(e,t,r){var n=r(84),a=r(61);var i="[object Arguments]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t){function r(){return false}e.exports=r},function(e,t,r){var n=r(84),a=r(291),i=r(61);var o="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",v="[object RegExp]",m="[object Set]",y="[object String]",g="[object WeakMap]";var b="[object ArrayBuffer]",A="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",S="[object Uint8Array]",O="[object Uint8ClampedArray]",M="[object Uint16Array]",D="[object Uint32Array]";var T={};T[_]=T[w]=T[E]=T[x]=T[k]=T[S]=T[O]=T[M]=T[D]=true;T[o]=T[s]=T[b]=T[u]=T[A]=T[l]=T[c]=T[f]=T[d]=T[p]=T[h]=T[v]=T[m]=T[y]=T[g]=false;function L(e){return i(e)&&a(e.length)&&!!T[n(e)]}e.exports=L},function(e,t,r){var n=r(293),a=r(1041);var i=Object.prototype;var o=i.hasOwnProperty;function s(e){if(!n(e)){return a(e)}var t=[];for(var r in Object(e)){if(o.call(e,r)&&r!="constructor"){t.push(r)}}return t}e.exports=s},function(e,t,r){var n=r(610);var a=n(Object.keys,Object);e.exports=a},function(e,t,r){var n=r(111);function a(e){return typeof e=="function"?e:n}e.exports=a},function(e,t,r){var n=r(1044),a=r(1080),i=r(622);function o(e){var t=a(e);if(t.length==1&&t[0][2]){return i(t[0][0],t[0][1])}return function(r){return r===e||n(r,e,t)}}e.exports=o},function(e,t,r){var n=r(295),a=r(298);var i=1,o=2;function s(e,t,r,s){var u=r.length,l=u,c=!s;if(e==null){return!l}e=Object(e);while(u--){var f=r[u];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e)){return false}}while(++u<l){f=r[u];var d=f[0],p=e[d],h=f[1];if(c&&f[2]){if(p===undefined&&!(d in e)){return false}}else{var v=new n;if(s){var m=s(p,h,d,e,t,v)}if(!(m===undefined?a(h,p,i|o,s,v):m)){return false}}}return true}e.exports=s},function(e,t){function r(){this.__data__=[];this.size=0}e.exports=r},function(e,t,r){var n=r(199);var a=Array.prototype;var i=a.splice;function o(e){var t=this.__data__,r=n(t,e);if(r<0){return false}var a=t.length-1;if(r==a){t.pop()}else{i.call(t,r,1)}--this.size;return true}e.exports=o},function(e,t,r){var n=r(199);function a(e){var t=this.__data__,r=n(t,e);return r<0?undefined:t[r][1]}e.exports=a},function(e,t,r){var n=r(199);function a(e){return n(this.__data__,e)>-1}e.exports=a},function(e,t,r){var n=r(199);function a(e,t){var r=this.__data__,a=n(r,e);if(a<0){++this.size;r.push([e,t])}else{r[a][1]=t}return this}e.exports=a},function(e,t,r){var n=r(198);function a(){this.__data__=new n;this.size=0}e.exports=a},function(e,t){function r(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}e.exports=r},function(e,t){function r(e){return this.__data__.get(e)}e.exports=r},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){var n=r(198),a=r(296),i=r(297);var o=200;function s(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!a||s.length<o-1){s.push([e,t]);this.size=++r.size;return this}r=this.__data__=new i(s)}r.set(e,t);this.size=r.size;return this}e.exports=s},function(e,t,r){var n=r(4),a=r(1056),i=r(27),o=r(612);var s=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var l=Function.prototype,c=Object.prototype;var f=l.toString;var d=c.hasOwnProperty;var p=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(e){if(!i(e)||a(e)){return false}var t=n(e)?p:u;return t.test(o(e))}e.exports=h},function(e,t,r){var n=r(1057);var a=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i(e){return!!a&&a in e}e.exports=i},function(e,t,r){var n=r(60);var a=n["__core-js_shared__"];e.exports=a},function(e,t){function r(e,t){return e==null?undefined:e[t]}e.exports=r},function(e,t,r){var n=r(1060),a=r(198),i=r(296);function o(){this.size=0;this.__data__={hash:new n,map:new(i||a),string:new n}}e.exports=o},function(e,t,r){var n=r(1061),a=r(1062),i=r(1063),o=r(1064),s=r(1065);function u(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n;u.prototype["delete"]=a;u.prototype.get=i;u.prototype.has=o;u.prototype.set=s;e.exports=u},function(e,t,r){var n=r(201);function a(){this.__data__=n?n(null):{};this.size=0}e.exports=a},function(e,t){function r(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}e.exports=r},function(e,t,r){var n=r(201);var a="__lodash_hash_undefined__";var i=Object.prototype;var o=i.hasOwnProperty;function s(e){var t=this.__data__;if(n){var r=t[e];return r===a?undefined:r}return o.call(t,e)?t[e]:undefined}e.exports=s},function(e,t,r){var n=r(201);var a=Object.prototype;var i=a.hasOwnProperty;function o(e){var t=this.__data__;return n?t[e]!==undefined:i.call(t,e)}e.exports=o},function(e,t,r){var n=r(201);var a="__lodash_hash_undefined__";function i(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=n&&t===undefined?a:t;return this}e.exports=i},function(e,t,r){var n=r(202);function a(e){var t=n(this,e)["delete"](e);this.size-=t?1:0;return t}e.exports=a},function(e,t){function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}e.exports=r},function(e,t,r){var n=r(202);function a(e){return n(this,e).get(e)}e.exports=a},function(e,t,r){var n=r(202);function a(e){return n(this,e).has(e)}e.exports=a},function(e,t,r){var n=r(202);function a(e,t){var r=n(this,e),a=r.size;r.set(e,t);this.size+=r.size==a?0:1;return this}e.exports=a},function(e,t,r){var n=r(295),a=r(613),i=r(1074),o=r(1076),s=r(203),u=r(12),l=r(289),c=r(609);var f=1;var d="[object Arguments]",p="[object Array]",h="[object Object]";var v=Object.prototype;var m=v.hasOwnProperty;function y(e,t,r,v,y,g){var b=u(e),A=u(t),_=b?p:s(e),w=A?p:s(t);_=_==d?h:_;w=w==d?h:w;var E=_==h,x=w==h,k=_==w;if(k&&l(e)){if(!l(t)){return false}b=true;E=false}if(k&&!E){g||(g=new n);return b||c(e)?a(e,t,r,v,y,g):i(e,t,_,r,v,y,g)}if(!(r&f)){var S=E&&m.call(e,"__wrapped__"),O=x&&m.call(t,"__wrapped__");if(S||O){var M=S?e.value():e,D=O?t.value():t;g||(g=new n);return y(M,D,r,v,g)}}if(!k){return false}g||(g=new n);return o(e,t,r,v,y,g)}e.exports=y},function(e,t){var r="__lodash_hash_undefined__";function n(e){this.__data__.set(e,r);return this}e.exports=n},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){var n=r(135),a=r(615),i=r(200),o=r(613),s=r(1075),u=r(301);var l=1,c=2;var f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",v="[object Number]",m="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]";var A="[object ArrayBuffer]",_="[object DataView]";var w=n?n.prototype:undefined,E=w?w.valueOf:undefined;function x(e,t,r,n,w,x,k){switch(r){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case A:if(e.byteLength!=t.byteLength||!x(new a(e),new a(t))){return false}return true;case f:case d:case v:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case h:var S=s;case y:var O=n&l;S||(S=u);if(e.size!=t.size&&!O){return false}var M=k.get(e);if(M){return M==t}n|=c;k.set(e,t);var D=o(S(e),S(t),n,w,x,k);k["delete"](e);return D;case b:if(E){return E.call(e)==E.call(t)}}return false}e.exports=x},function(e,t){function r(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}e.exports=r},function(e,t,r){var n=r(616);var a=1;var i=Object.prototype;var o=i.hasOwnProperty;function s(e,t,r,i,s,u){var l=r&a,c=n(e),f=c.length,d=n(t),p=d.length;if(f!=p&&!l){return false}var h=f;while(h--){var v=c[h];if(!(l?v in t:o.call(t,v))){return false}}var m=u.get(e);var y=u.get(t);if(m&&y){return m==t&&y==e}var g=true;u.set(e,t);u.set(t,e);var b=l;while(++h<f){v=c[h];var A=e[v],_=t[v];if(i){var w=l?i(_,A,v,t,e,u):i(A,_,v,e,t,u)}if(!(w===undefined?A===_||s(A,_,r,i,u):w)){g=false;break}b||(b=v=="constructor")}if(g&&!b){var E=e.constructor,x=t.constructor;if(E!=x&&("constructor"in e&&"constructor"in t)&&!(typeof E=="function"&&E instanceof E&&typeof x=="function"&&x instanceof x)){g=false}}u["delete"](e);u["delete"](t);return g}e.exports=s},function(e,t,r){var n=r(112),a=r(60);var i=n(a,"DataView");e.exports=i},function(e,t,r){var n=r(112),a=r(60);var i=n(a,"Promise");e.exports=i},function(e,t,r){var n=r(112),a=r(60);var i=n(a,"WeakMap");e.exports=i},function(e,t,r){var n=r(621),a=r(136);function i(e){var t=a(e),r=t.length;while(r--){var i=t[r],o=e[i];t[r]=[i,o,n(o)]}return t}e.exports=i},function(e,t,r){var n=r(298),a=r(33),i=r(1087),o=r(304),s=r(621),u=r(622),l=r(161);var c=1,f=2;function d(e,t){if(o(e)&&s(t)){return u(l(e),t)}return function(r){var o=a(r,e);return o===undefined&&o===t?i(r,e):n(t,o,c|f)}}e.exports=d},function(e,t,r){var n=r(1083);var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var i=/\\(\\)?/g;var o=n((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(a,(function(e,r,n,a){t.push(n?a.replace(i,"$1"):r||e)}));return t}));e.exports=o},function(e,t,r){var n=r(1084);var a=500;function i(e){var t=n(e,(function(e){if(r.size===a){r.clear()}return e}));var r=t.cache;return t}e.exports=i},function(e,t,r){var n=r(297);var a="Expected a function";function i(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(a)}var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a)){return i.get(a)}var o=e.apply(this,n);r.cache=i.set(a,o)||i;return o};r.cache=new(i.Cache||n);return r}i.Cache=n;e.exports=i},function(e,t,r){var n=r(1086);function a(e){return e==null?"":n(e)}e.exports=a},function(e,t,r){var n=r(135),a=r(137),i=r(12),o=r(138);var s=1/0;var u=n?n.prototype:undefined,l=u?u.toString:undefined;function c(e){if(typeof e=="string"){return e}if(i(e)){return a(e,c)+""}if(o(e)){return l?l.call(e):""}var t=e+"";return t=="0"&&1/e==-s?"-0":t}e.exports=c},function(e,t,r){var n=r(1088),a=r(1089);function i(e,t){return e!=null&&a(e,t,n)}e.exports=i},function(e,t){function r(e,t){return e!=null&&t in Object(e)}e.exports=r},function(e,t,r){var n=r(205),a=r(288),i=r(12),o=r(290),s=r(291),u=r(161);function l(e,t,r){t=n(t,e);var l=-1,c=t.length,f=false;while(++l<c){var d=u(t[l]);if(!(f=e!=null&&r(e,d))){break}e=e[d]}if(f||++l!=c){return f}c=e==null?0:e.length;return!!c&&s(c)&&o(d,c)&&(i(e)||a(e))}e.exports=l},function(e,t,r){var n=r(1091),a=r(1092),i=r(304),o=r(161);function s(e){return i(e)?n(o(e)):a(e)}e.exports=s},function(e,t){function r(e){return function(t){return t==null?undefined:t[e]}}e.exports=r},function(e,t,r){var n=r(204);function a(e){return function(t){return n(t,e)}}e.exports=a},function(e,t,r){var n=r(110);function a(e,t){return function(r,a){if(r==null){return r}if(!n(r)){return e(r,a)}var i=r.length,o=t?i:-1,s=Object(r);while(t?o--:++o<i){if(a(s[o],o,s)===false){break}}return r}}e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeClasses=undefined;var n=r(286);var a=u(n);var i=r(1095);var o=u(i);var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function u(e){return e&&e.__esModule?e:{default:e}}var l=t.mergeClasses=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=t.default&&(0,o.default)(t.default)||{};r.map((function(e){var r=t[e];if(r){(0,a.default)(r,(function(e,t){if(!n[t]){n[t]={}}n[t]=s({},n[t],r[t])}))}return e}));return n};t.default=l},function(e,t,r){var n=r(624);var a=1,i=4;function o(e){return n(e,a|i)}e.exports=o},function(e,t){function r(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}e.exports=r},function(e,t,r){var n=r(162),a=r(136);function i(e,t){return e&&n(t,a(t),e)}e.exports=i},function(e,t,r){var n=r(162),a=r(306);function i(e,t){return e&&n(t,a(t),e)}e.exports=i},function(e,t,r){var n=r(27),a=r(293),i=r(1100);var o=Object.prototype;var s=o.hasOwnProperty;function u(e){if(!n(e)){return i(e)}var t=a(e),r=[];for(var o in e){if(!(o=="constructor"&&(t||!s.call(e,o)))){r.push(o)}}return r}e.exports=u},function(e,t){function r(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}e.exports=r},function(e,t,r){(function(e){var n=r(60);var a=true&&t&&!t.nodeType&&t;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o?n.Buffer:undefined,u=s?s.allocUnsafe:undefined;function l(e,t){if(t){return e.slice()}var r=e.length,n=u?u(r):new e.constructor(r);e.copy(n);return n}e.exports=l}).call(this,r(48)(e))},function(e,t){function r(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n){t[r]=e[r]}return t}e.exports=r},function(e,t,r){var n=r(162),a=r(303);function i(e,t){return n(e,a(e),t)}e.exports=i},function(e,t,r){var n=r(162),a=r(627);function i(e,t){return n(e,a(e),t)}e.exports=i},function(e,t){var r=Object.prototype;var n=r.hasOwnProperty;function a(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&n.call(e,"index")){r.index=e.index;r.input=e.input}return r}e.exports=a},function(e,t,r){var n=r(307),a=r(1107),i=r(1108),o=r(1109),s=r(1110);var u="[object Boolean]",l="[object Date]",c="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",h="[object String]",v="[object Symbol]";var m="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",A="[object Int8Array]",_="[object Int16Array]",w="[object Int32Array]",E="[object Uint8Array]",x="[object Uint8ClampedArray]",k="[object Uint16Array]",S="[object Uint32Array]";function O(e,t,r){var O=e.constructor;switch(t){case m:return n(e);case u:case l:return new O(+e);case y:return a(e,r);case g:case b:case A:case _:case w:case E:case x:case k:case S:return s(e,r);case c:return new O;case f:case h:return new O(e);case d:return i(e);case p:return new O;case v:return o(e)}}e.exports=O},function(e,t,r){var n=r(307);function a(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}e.exports=a},function(e,t){var r=/\w*$/;function n(e){var t=new e.constructor(e.source,r.exec(e));t.lastIndex=e.lastIndex;return t}e.exports=n},function(e,t,r){var n=r(135);var a=n?n.prototype:undefined,i=a?a.valueOf:undefined;function o(e){return i?Object(i.call(e)):{}}e.exports=o},function(e,t,r){var n=r(307);function a(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}e.exports=a},function(e,t,r){var n=r(1112),a=r(294),i=r(293);function o(e){return typeof e.constructor=="function"&&!i(e)?n(a(e)):{}}e.exports=o},function(e,t,r){var n=r(27);var a=Object.create;var i=function(){function e(){}return function(t){if(!n(t)){return{}}if(a){return a(t)}e.prototype=t;var r=new e;e.prototype=undefined;return r}}();e.exports=i},function(e,t,r){var n=r(1114),a=r(160),i=r(292);var o=i&&i.isMap;var s=o?a(o):n;e.exports=s},function(e,t,r){var n=r(203),a=r(61);var i="[object Map]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t,r){var n=r(1116),a=r(160),i=r(292);var o=i&&i.isSet;var s=o?a(o):n;e.exports=s},function(e,t,r){var n=r(203),a=r(61);var i="[object Set]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.autoprefix=undefined;var n=r(286);var a=o(n);var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function o(e){return e&&e.__esModule?e:{default:e}}var s={borderRadius:function e(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function e(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function e(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function e(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function e(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function e(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function e(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function e(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function e(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function e(t,r){var n=r[t];if(n){return n}return{extend:t}}};var u=t.autoprefix=function e(t){var r={};(0,a.default)(t,(function(e,t){var n={};(0,a.default)(e,(function(e,t){var r=s[t];if(r){n=i({},n,r(e))}else{n[t]=e}}));r[t]=n}));return r};t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hover=undefined;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function u(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=t.hover=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"span";return function(e){l(a,e);function a(){var e;var o,l,c;s(this,a);for(var f=arguments.length,d=Array(f),p=0;p<f;p++){d[p]=arguments[p]}return c=(o=(l=u(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(d))),l),l.state={hover:false},l.handleMouseOver=function(){return l.setState({hover:true})},l.handleMouseOut=function(){return l.setState({hover:false})},l.render=function(){return i.default.createElement(r,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},i.default.createElement(t,n({},l.props,l.state)))},o),u(l,c)}return a}(i.default.Component)};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.active=undefined;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function u(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=t.active=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"span";return function(e){l(a,e);function a(){var e;var o,l,c;s(this,a);for(var f=arguments.length,d=Array(f),p=0;p<f;p++){d[p]=arguments[p]}return c=(o=(l=u(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(d))),l),l.state={active:false},l.handleMouseDown=function(){return l.setState({active:true})},l.handleMouseUp=function(){return l.setState({active:false})},l.render=function(){return i.default.createElement(r,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},i.default.createElement(t,n({},l.props,l.state)))},o),u(l,c)}return a}(i.default.Component)};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function e(t,r){var n={};var a=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;n[t]=r};t===0&&a("first-child");t===r-1&&a("last-child");(t===0||t%2===0)&&a("even");Math.abs(t%2)===1&&a("odd");a("nth-child",t);return n};t.default=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};var i=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var o=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});var s=r(1);var u=r(190);var l=r(577);var c=r(629);var f=r(127);var d=r(13);var p=r(105);var h=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addListItemRef=s.createRef();var n=t.setting.type==="menu";r.state={listItems:t.value||t.setting.default||[],newItem:"",options:n&&r.filterMenu()};r.updateNewItem=r.updateNewItem.bind(r);r.addListItem=r.addListItem.bind(r);r.removeListItem=r.removeListItem.bind(r);r.clear=r.clear.bind(r);r.filterMenu=r.filterMenu.bind(r);r.capitalize=r.capitalize.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.state.listItems&&e.value&&!p.isEqual(this.state.listItems,e.value)){this.setState({listItems:e.value})}};t.prototype.componentDidUpdate=function(e,t){if(t.listItems&&this.state.listItems&&!p.isEqual(t.listItems,this.state.listItems)){this.props.setting.format==="narrow"&&this.setState({options:this.filterMenu()})}};t.prototype.render=function(){var e=this.props.setting;var t=!this.state.options||this.state.options.length>0;var r=this.state.listItems&&this.state.listItems.length>0;var n;var a=this.props.disabled||this.props.disableButton||e.type!=="menu"&&!this.state.newItem.length;if(e.format==="language-code"){n=s.createElement(l.default,{disabled:this.props.disabled,ref:this.addListItemRef,name:e.key,languages:this.props.additionalData,onChange:this.updateNewItem})}else if(e.type==="menu"){n=this.renderMenu(e)}else{n=this.props.createEditableInput(e,{value:null,disabled:this.props.disabled,onChange:this.updateNewItem,ref:this.addListItemRef,label:null,description:null,readOnly:this.props.readOnly})}return s.createElement("div",{className:"input-list"},this.props.labelAndDescription&&this.props.labelAndDescription(e),this.props.altValue&&!r&&s.createElement("span",null,this.props.altValue),this.props.title&&r&&s.createElement("h4",null,this.props.title),r&&this.renderList(this.state.listItems,e),s.createElement("div",{className:"add-list-item-container"},s.createElement("span",{className:"add-list-item"},n),t&&s.createElement(d.Button,{type:"button",className:"add-list-item inline small bottom-align",callback:this.addListItem,content:"Add",disabled:a})))};t.prototype.renderList=function(e,t){var r=this;return s.createElement("ul",{className:"input-list-ul"},e.filter((function(e){return e})).map((function(e){var n=typeof e==="string"?e:Object.keys(e)[0];return r.renderListItem(t,n,e)})))};t.prototype.renderListItem=function(e,t,r){var n=this;var a;var i;var o=e.options?(a=e.options.find((function(e){return e.key===t})))===null||a===void 0?void 0:a.label:t;if(e.format==="language-code"){i=s.createElement(l.default,{disabled:this.props.disabled,value:t,name:e.key,languages:this.props.additionalData})}else if(e.urlBase){i=s.createElement("a",{href:e.urlBase(r)},r)}else{i=this.props.createEditableInput(e,{type:"text",description:null,disabled:this.props.disabled,value:o,name:e.type==="menu"?e.key+"_"+t:e.key,label:null,extraContent:this.renderToolTip(r,e.format),optionalText:false,readOnly:this.props.readOnly})}var c=this.props.disabled||this.props.disableButton;return s.createElement("li",{className:"input-list-item",key:t},s.createElement(u.default,{disabled:c,onRemove:function(){return n.removeListItem(r)}},i))};t.prototype.renderMenu=function(e){var t=this.state.options;if(t&&t.length>0){return this.props.createEditableInput(e,{elementType:"select",name:e.key+"_menu",value:e.key,label:e.menuTitle,required:e.required,ref:this.addListItemRef,optionalText:!e.required,description:!e.required?"(Optional) ":""},t)}else if(this.props.onEmpty){return this.props.onEmpty}};t.prototype.renderToolTip=function(e,t){var r={geographic:s.createElement(f.LocatorIcon,null)};if(typeof e==="object"){return s.createElement("span",{className:"input-group-addon"},s.createElement(c.default,{trigger:r[t],direction:"point-right",text:Object.values(e)[0].toString()}))}return null};t.prototype.filterMenu=function(){var e=this.props.setting.menuOptions;if(!e){try{e=this.props.setting.options.map((function(e){return s.createElement("option",{key:e.key,value:e.key,"aria-selected":false},e.label)}))}catch(e){return}}var t=this.state?this.state.listItems:this.props.value||this.props.setting.default;var r=t?e.filter((function(e){return t.indexOf(e.props.value)<0})):[];return r};t.prototype.updateNewItem=function(){var e=this.props.setting.format==="language-code"?this.addListItemRef.current.autocompleteRef.current:this.addListItemRef.current;this.setState(a(a({},this.state),{newItem:e.getValue()}))};t.prototype.removeListItem=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.setState({listItems:this.state.listItems.filter((function(t){return t!==e}))})];case 1:t.sent();this.props.onChange&&this.props.onChange(this.state);if(!this.props.onSubmit)return[3,3];return[4,this.props.onSubmit()];case 2:t.sent();t.label=3;case 3:return[2]}}))}))};t.prototype.addListItem=function(){return i(this,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:e=this.props.setting.format==="language-code"?this.addListItemRef.current.autocompleteRef.current:this.addListItemRef.current;t=this.props.setting.capitalize?this.capitalize(e.getValue()):e.getValue();return[4,this.setState({listItems:this.state.listItems.concat(t),newItem:""})];case 1:r.sent();this.props.onChange&&this.props.onChange(this.state);if(!this.props.onSubmit)return[3,3];return[4,this.props.onSubmit()];case 2:r.sent();r.label=3;case 3:if(this.props.setting.type!=="menu"){e.clear()}return[2]}}))}))};t.prototype.capitalize=function(e){var t=this;return e.split(" ").map((function(e){return e.length===2&&t.props.setting.format==="geographic"?e.toUpperCase():p.formatString(e)})).join(" ")};t.prototype.getValue=function(){return this.state.listItems};t.prototype.clear=function(){this.setState({listItems:[]})};return t}(s.Component);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(397);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.fieldNames=function(){return["Published","Publisher","Audience","Categories","Distributed By"]};t.prototype.fields=function(){var t=e.prototype.fields.call(this);var r=t.findIndex((function(e){return e.name==="Categories"}));t[r].value=this.categories();t.push({name:"Audience",value:this.audience()});t.push({name:"Distributed By",value:this.distributor()});return t};t.prototype.audience=function(){if(!this.props.book){return null}var e=this.props.book.raw.category;if(!e){return null}var t=e.find((function(e){return e["$"]["scheme"]&&e["$"]["scheme"]["value"]==="http://schema.org/audience"}));if(!t){return null}var r=t["$"]["label"]&&t["$"]["label"]["value"];if(["Adult","Adults Only"].indexOf(r)!==-1){return r}var n=e.find((function(e){return e["$"]["scheme"]&&e["$"]["scheme"]["value"]==="http://schema.org/typicalAgeRange"}));if(n){var a=n["$"]["label"]&&n["$"]["label"]["value"];r+=" (age "+a+")"}return r};t.prototype.categories=function(){if(!this.props.book){return null}var e=["http://schema.org/audience","http://schema.org/typicalAgeRange"];var t="http://librarysimplified.org/terms/fiction/";var r=this.props.book.raw.category||[];var n=r.filter((function(r){return r["$"]["label"]&&r["$"]["scheme"]&&e.concat([t]).indexOf(r["$"]["scheme"]["value"])===-1})).map((function(e){return e["$"]["label"]["value"]}));if(!n.length){n=r.filter((function(e){return e["$"]["label"]&&e["$"]["scheme"]&&e["$"]["scheme"]["value"]===t})).map((function(e){return e["$"]["label"]["value"]}))}return n.length>0?n.join(", "):null};t.prototype.distributor=function(){if(!this.props.book){return null}var e=this.props.book.raw["bibframe:distribution"];if(!e||e.length<1){return null}var t=e[0]["$"]["bibframe:ProviderName"];if(!t){return null}return t.value};t.prototype.circulationLinks=function(){return null};return t}(a.default);t.default=i},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjQuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1NDkuNyAyODIuNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTQ5LjcgMjgyLjc7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojM0RCQUU4O30KCS5zdDF7ZmlsbDojMjEyNkFEO30KCS5zdDJ7ZmlsbDojRkM4NTQyO30KCS5zdDN7ZmlsbDojRkEzNjFDO30KPC9zdHlsZT4KPGc+Cgk8cG9seWdvbiBjbGFzcz0ic3QwIiBwb2ludHM9Ijc4LjcsMTEwLjIgNzguNywxNjggMTU3LjMsMTEyLjkgMTU3LjMsNTUuMSAJIi8+Cgk8cG9seWdvbiBjbGFzcz0ic3QxIiBwb2ludHM9IjE1Ny4zLDU1LjEgMTU3LjMsNTUuMSA3OC43LDAgNzguNyw2Ny44IDEwOSw4OSAJIi8+Cgk8cG9seWdvbiBjbGFzcz0ic3QyIiBwb2ludHM9IjAsMTc3LjQgMjQuNCwxNjYgNDguNywyMTEuNSA0OC43LDg5LjIgMCw1NS4xIAkiLz4KCTxwb2x5Z29uIGNsYXNzPSJzdDMiIHBvaW50cz0iMCw1NS4xIDAuMiw1NS4yIDQ4LjcsODkuMiA3OC43LDY3LjggNzguNywwIAkiLz4KCTxnPgoJCTxwYXRoIGQ9Ik0yMjMuOSw4MC4zYzItMS41LDIuOS0zLjgsMi45LTYuN2MwLTIuOS0xLTUtMi45LTYuNGMtMS45LTEuNC00LjUtMi4xLTcuOC0yLjFoLTguOHYxNy42aDguNwoJCQlDMjE5LjMsODIuNiwyMjEuOSw4MS44LDIyMy45LDgwLjMgTTIyOC41LDU3LjVjMy4yLDEuNiw1LjcsMy43LDcuNSw2LjVjMS43LDIuOCwyLjYsNS45LDIuNiw5LjNjMCwzLjUtMSw2LjgtMi45LDkuNwoJCQljLTEuOSwyLjktNC41LDUuMi03LjgsNi44Yy0zLjMsMS43LTcsMi41LTExLDIuNWgtOS41djIwLjRoLTExLjhWNTUuMkgyMTdDMjIxLjQsNTUuMiwyMjUuMiw1NiwyMjguNSw1Ny41Ii8+CgkJPHBhdGggZD0iTTI2OS4zLDkwLjVjLTAuNSwxLTEuNSwxLjktMi44LDIuN2MtMS4zLDAuOC0zLjIsMS40LTUuOCwyYy0yLjYsMC41LTQuNSwxLjItNS43LDIuMWMtMS4yLDAuOS0xLjgsMi0xLjgsMy40CgkJCWMwLDEuNCwwLjYsMi42LDEuNywzLjZjMS4xLDAuOSwyLjgsMS40LDQuOSwxLjRjMi44LDAsNS4xLTEsNi44LTIuOWMxLjctMS45LDIuNi01LjEsMi42LTkuNVY5MC41eiBNMjgxLDExMi43aC0xMS4zCgkJCWMtMC4zLTEuMy0wLjQtMi42LTAuNC0zLjd2LTIuM2gtMC4xYy0yLjYsNC43LTYuOCw3LjEtMTIuNyw3LjFjLTIuOSwwLTUuNS0wLjUtNy43LTEuNmMtMi4yLTEtMy45LTIuNS01LjItNC40CgkJCWMtMS4yLTEuOS0xLjgtNC4xLTEuOC02LjVjMC0zLjQsMS4xLTYuMSwzLjItOGMyLjEtMS45LDQuNS0zLjIsNy0zLjhjMi41LTAuNyw1LjQtMS4yLDguOC0xLjdjMi4xLTAuMywzLjctMC42LDQuOC0wLjgKCQkJYzEuMS0wLjMsMS45LTAuOCwyLjUtMS40YzAuNi0wLjYsMC45LTEuNSwwLjktMi43YzAtMS42LTAuNi0yLjgtMS45LTMuNmMtMS4zLTAuOS0zLTEuMy01LjItMS4zYy0xLjksMC0zLjYsMC41LTQuOSwxLjYKCQkJYy0xLjMsMS0yLjMsMi41LTIuOCw0LjNoLTEwLjZjMC40LTIuNSwxLjQtNC44LDIuOS02LjljMS41LTIuMSwzLjYtMy45LDYuMi01LjJjMi42LTEuMyw1LjYtMiw5LjEtMmM2LDAsMTAuNiwxLjYsMTMuNyw0LjcKCQkJYzMuMSwzLjEsNC42LDcuNiw0LjYsMTMuNFYxMDJDMjgwLjIsMTA2LjgsMjgwLjUsMTEwLjMsMjgxLDExMi43Ii8+Cgk8L2c+Cgk8cmVjdCB4PSIyODkuMiIgeT0iNTUuMiIgd2lkdGg9IjExLjQiIGhlaWdodD0iNTcuNSIvPgoJPGc+CgkJPHBhdGggZD0iTTMzNS4zLDkwLjVjLTAuNSwxLTEuNSwxLjktMi44LDIuN2MtMS4zLDAuOC0zLjIsMS40LTUuOCwyYy0yLjYsMC41LTQuNSwxLjItNS43LDIuMWMtMS4yLDAuOS0xLjgsMi0xLjgsMy40CgkJCWMwLDEuNCwwLjYsMi42LDEuNywzLjZjMS4xLDAuOSwyLjgsMS40LDQuOSwxLjRjMi44LDAsNS4xLTEsNi44LTIuOWMxLjctMS45LDIuNi01LjEsMi42LTkuNVY5MC41eiBNMzQ3LDExMi43aC0xMS4zCgkJCWMtMC4zLTEuMy0wLjQtMi42LTAuNC0zLjd2LTIuM2gtMC4xYy0yLjYsNC43LTYuOCw3LjEtMTIuNyw3LjFjLTIuOSwwLTUuNS0wLjUtNy43LTEuNmMtMi4yLTEtMy45LTIuNS01LjItNC40CgkJCWMtMS4yLTEuOS0xLjgtNC4xLTEuOC02LjVjMC0zLjQsMS4xLTYuMSwzLjItOGMyLjEtMS45LDQuNS0zLjIsNy0zLjhjMi41LTAuNyw1LjQtMS4yLDguOC0xLjdjMi4xLTAuMywzLjctMC42LDQuOC0wLjgKCQkJYzEuMS0wLjMsMS45LTAuOCwyLjUtMS40YzAuNi0wLjYsMC45LTEuNSwwLjktMi43YzAtMS42LTAuNi0yLjgtMS45LTMuNmMtMS4zLTAuOS0zLTEuMy01LjItMS4zYy0xLjksMC0zLjYsMC41LTQuOSwxLjYKCQkJYy0xLjMsMS0yLjMsMi41LTIuOCw0LjNoLTEwLjZjMC40LTIuNSwxLjQtNC44LDIuOS02LjljMS41LTIuMSwzLjYtMy45LDYuMi01LjJjMi42LTEuMyw1LjYtMiw5LjEtMmM2LDAsMTAuNiwxLjYsMTMuNyw0LjcKCQkJYzMuMSwzLjEsNC42LDcuNiw0LjYsMTMuNFYxMDJDMzQ2LjIsMTA2LjgsMzQ2LjUsMTEwLjMsMzQ3LDExMi43Ii8+CgkJPHBhdGggZD0iTTM5MS40LDEwNi44Yy0xLjksMi40LTQuMiw0LjEtNyw1LjRjLTIuOCwxLjItNS45LDEuOC05LjIsMS44Yy00LjEsMC03LjgtMC45LTExLjMtMi43Yy0zLjQtMS44LTYuMi00LjMtOC4yLTcuNwoJCQljLTItMy40LTMuMS03LjMtMy4xLTExLjhjMC00LjUsMS04LjQsMy4xLTExLjhjMi0zLjMsNC44LTUuOSw4LjItNy42YzMuNC0xLjcsNy4yLTIuNiwxMS4zLTIuNmMzLjMsMCw2LjQsMC42LDkuMiwxLjgKCQkJYzIuOCwxLjIsNS4xLDMsNyw1LjJjMS44LDIuMywzLDUsMy41LDguMWgtMTAuNmMtMC42LTIuMS0xLjgtMy43LTMuNC00LjdjLTEuNi0xLTMuNS0xLjYtNS43LTEuNmMtMi4zLDAtNC4yLDAuNi01LjksMS43CgkJCWMtMS43LDEuMi0zLDIuNy0zLjksNC44Yy0wLjksMi0xLjQsNC4zLTEuNCw2LjdjMCwyLjUsMC41LDQuNywxLjQsNi43YzAuOSwyLDIuMiwzLjYsMy45LDQuOGMxLjcsMS4yLDMuNywxLjcsNS45LDEuNwoJCQljMi4zLDAsNC4yLTAuNiw1LjktMS43YzEuNy0xLjEsMi44LTIuOCwzLjQtNS4xSDM5NUMzOTQuNCwxMDEuNiwzOTMuMiwxMDQuNSwzOTEuNCwxMDYuOCIvPgoJCTxwYXRoIGQ9Ik00MzEuNCw4Ny43Yy0wLjMtMi42LTEuMy00LjktMy02LjdjLTEuNy0xLjgtNC0yLjctNy0yLjdjLTIuOCwwLTUuMiwwLjktNy4xLDIuNmMtMS45LDEuNy0zLjEsNC0zLjUsNi44SDQzMS40egoJCQkgTTQ0Mi4yLDk1LjFoLTMxLjZjMC4zLDIsMC45LDMuNywxLjksNS4yYzEsMS41LDIuMiwyLjcsMy43LDMuNWMxLjUsMC44LDMuMiwxLjIsNS4xLDEuMmMyLDAsMy44LTAuNCw1LjQtMS4xCgkJCWMxLjYtMC44LDIuNy0xLjksMy41LTMuNGgxMS40Yy0wLjksMi43LTIuMiw1LjEtNC4xLDcuMmMtMS45LDItNC4yLDMuNi03LDQuOGMtMi44LDEuMS01LjgsMS43LTkuMiwxLjdjLTQuMiwwLTcuOS0wLjktMTEuMi0yLjgKCQkJYy0zLjMtMS45LTUuOC00LjUtNy43LTcuOWMtMS44LTMuNC0yLjctNy4zLTIuNy0xMS42YzAtNC4yLDAuOS04LDIuOC0xMS4zYzEuOS0zLjQsNC41LTYsNy44LTcuOWMzLjMtMS45LDctMi45LDExLjItMi45CgkJCWM0LjUsMCw4LjIsMSwxMS40LDNjMy4xLDIsNS40LDQuOCw3LDguMmMxLjYsMy41LDIuNCw3LjQsMi40LDExLjhDNDQyLjMsOTMuNyw0NDIuMyw5NC41LDQ0Mi4yLDk1LjEiLz4KCQk8cGF0aCBkPSJNMjQzLjMsMTgxLjljLTIuMywyLjctNS4yLDQuOC04LjgsNi40Yy0zLjYsMS42LTcuNywyLjQtMTIuMiwyLjRjLTYuMSwwLTExLjMtMS4zLTE1LjctNGMtNC40LTIuNy03LjgtNi4yLTEwLjEtMTAuOAoJCQljLTIuMy00LjUtMy41LTkuNS0zLjUtMTVjMC01LjUsMS4yLTEwLjUsMy41LTE1YzIuMy00LjUsNS43LTguMSwxMC4xLTEwLjhjNC40LTIuNyw5LjYtNCwxNS43LTRjNi43LDAsMTIuMiwxLjYsMTYuNCw0LjgKCQkJYzQuMiwzLjIsNy4zLDcuNCw5LjEsMTIuOGgtNi44Yy0xLjYtMy44LTMuOS02LjctNi45LTguOGMtMy0yLTYuOS0zLjEtMTEuOC0zLjFjLTQuOCwwLTguOSwxLjEtMTIuMiwzLjMKCQkJYy0zLjQsMi4yLTUuOSw1LjEtNy43LDguOGMtMS43LDMuNy0yLjYsNy42LTIuNiwxMS45YzAsNC4zLDAuOCw4LjMsMi41LDExLjljMS43LDMuNyw0LjIsNi42LDcuNiw4LjhjMy40LDIuMiw3LjUsMy4zLDEyLjMsMy4zCgkJCWM0LjksMCw4LjktMS4xLDEyLjEtMy4zYzMuMi0yLjIsNS40LTUuMSw2LjYtOC43aDYuOEMyNDcuMSwxNzYuMiwyNDUuNSwxNzkuMiwyNDMuMywxODEuOSIvPgoJCTxwYXRoIGQ9Ik0yODIuNywxODIuOWMyLjEtMS41LDMuOC0zLjQsNS01LjljMS4yLTIuNSwxLjgtNS4yLDEuOC04LjFjMC0zLTAuNi01LjctMS44LTguMmMtMS4yLTIuNS0yLjktNC40LTUtNS45CgkJCWMtMi4xLTEuNC00LjYtMi4yLTcuNC0yLjJjLTIuNywwLTUuMiwwLjctNy40LDIuMmMtMi4yLDEuNS0zLjksMy40LTUsNS45Yy0xLjIsMi41LTEuOCw1LjItMS44LDguMmMwLDMsMC42LDUuNywxLjgsOC4xCgkJCWMxLjIsMi41LDIuOSw0LjQsNSw1LjljMi4yLDEuNCw0LjYsMi4yLDcuNCwyLjJDMjc4LDE4NS4xLDI4MC41LDE4NC40LDI4Mi43LDE4Mi45IE0yNjQuNCwxODcuN2MtMy4xLTEuOS01LjUtNC41LTcuMi03LjgKCQkJYy0xLjctMy4zLTIuNS02LjktMi41LTExYzAtNCwwLjgtNy43LDIuNS0xMWMxLjctMy4zLDQuMS01LjksNy4yLTcuOGMzLjEtMS45LDYuNy0yLjksMTAuOS0yLjljNC4xLDAsNy44LDEsMTAuOSwyLjkKCQkJYzMuMSwxLjksNS42LDQuNSw3LjMsNy44YzEuNywzLjMsMi41LDcsMi41LDExYzAsNC0wLjgsNy43LTIuNSwxMWMtMS43LDMuMy00LjEsNS45LTcuMyw3LjhjLTMuMSwxLjktNi44LDIuOS0xMC45LDIuOQoJCQlDMjcxLjEsMTkwLjUsMjY3LjUsMTg5LjYsMjY0LjQsMTg3LjciLz4KCTwvZz4KCTxyZWN0IHg9IjMwMy44IiB5PSIxMzIuMiIgd2lkdGg9IjYuNCIgaGVpZ2h0PSI1Ny41Ii8+Cgk8cmVjdCB4PSIzMjAuOCIgeT0iMTMyLjIiIHdpZHRoPSI2LjQiIGhlaWdodD0iNTcuNSIvPgoJPGc+CgkJPHBhdGggZD0iTTM0OC4zLDE1NC4xYy0yLDEuMS0zLjUsMi42LTQuNyw0LjZjLTEuMiwyLTEuOSw0LjItMi4zLDYuOGgyNi41Yy0wLjQtNC4xLTEuNi03LjMtMy43LTkuNmMtMi4xLTIuMy01LjEtMy41LTktMy41CgkJCUMzNTIuNiwxNTIuNSwzNTAuMywxNTMsMzQ4LjMsMTU0LjEgTTM2My4xLDE4My4yYzIuMS0xLjMsMy42LTMuMyw0LjQtNS45aDYuNGMtMS4yLDQuMi0zLjQsNy41LTYuNiw5LjgKCQkJYy0zLjIsMi4zLTcuMiwzLjQtMTEuOCwzLjRjLTQuMSwwLTcuNy0wLjktMTAuNy0yLjhjLTMuMS0xLjktNS40LTQuNC03LjEtNy43Yy0xLjctMy4zLTIuNS03LTIuNS0xMS4yYzAtNC4xLDAuOC03LjgsMi41LTExCgkJCWMxLjctMy4zLDQuMS01LjgsNy4xLTcuN2MzLTEuOSw2LjUtMi44LDEwLjQtMi44YzQuNSwwLDguMSwxLDEwLjksMy4xYzIuOCwyLDQuOSw0LjcsNi4yLDhjMS4zLDMuMywyLDYuOSwyLjEsMTAuOGwwLjEsMS42aC0zMy4xCgkJCWMwLjIsMywwLjgsNS41LDIuMSw3LjdjMS4yLDIuMiwyLjgsMy45LDQuOSw1YzIsMS4yLDQuNCwxLjcsNywxLjdDMzU4LjMsMTg1LjIsMzYwLjksMTg0LjUsMzYzLjEsMTgzLjIiLz4KCQk8cGF0aCBkPSJNNDEzLDE4Ny4xYy0zLjEsMi4zLTcsMy41LTExLjksMy41Yy00LjIsMC03LjktMC45LTExLjEtMi44Yy0zLjItMS45LTUuNy00LjUtNy40LTcuN2MtMS43LTMuMy0yLjYtNy0yLjYtMTEKCQkJYzAtNC4xLDAuOS03LjgsMi42LTExLjFjMS43LTMuMyw0LjItNS45LDcuNC03LjhjMy4yLTEuOSw2LjktMi44LDExLjEtMi44YzQuOSwwLDguOSwxLjIsMTEuOSwzLjVjMy4xLDIuNCw1LjEsNS41LDYsOS40aC02LjUKCQkJYy0wLjktMi4zLTIuMy00LjItNC4xLTUuNmMtMS45LTEuNC00LjMtMi4xLTcuNS0yLjFjLTIuOCwwLTUuNCwwLjctNy42LDIuMmMtMi4yLDEuNC0zLjksMy40LTUuMSw1LjljLTEuMiwyLjUtMS44LDUuMy0xLjgsOC4zCgkJCXMwLjYsNS44LDEuOCw4LjNjMS4yLDIuNSwyLjksNC40LDUuMSw1LjhjMi4yLDEuNCw0LjcsMi4xLDcuNiwyLjFjNiwwLDkuOS0yLjcsMTEuOC04aDYuNUM0MTguMiwxODEuNSw0MTYuMSwxODQuNyw0MTMsMTg3LjEiLz4KCQk8cGF0aCBkPSJNNDQzLjgsMTg0LjR2NS4zaC0zLjVjLTMuNywwLTYuNS0wLjktOC4zLTIuOGMtMS44LTEuOS0yLjctNC40LTIuNy03Ljd2LTI1LjloLTYuM3YtNS4zaDYuM3YtOS44bDYuMy0yLjl2MTIuN2g4djUuM2gtOAoJCQl2MjUuNWMwLDEuOCwwLjUsMy4xLDEuNCw0LjFjMC45LDAuOSwyLjIsMS40LDMuOCwxLjRINDQzLjh6Ii8+Cgk8L2c+Cgk8cGF0aCBkPSJNNDUxLjYsMTMyLjJoNi45djguMWgtNi45VjEzMi4yeiBNNDUxLjUsMTQ4LjFoNi40djQxLjZoLTYuNFYxNDguMXoiLz4KCTxnPgoJCTxwYXRoIGQ9Ik00OTQuNCwxODIuOWMyLjEtMS41LDMuOC0zLjQsNS01LjljMS4yLTIuNSwxLjgtNS4yLDEuOC04LjFjMC0zLTAuNi01LjctMS44LTguMmMtMS4yLTIuNS0yLjktNC40LTUtNS45CgkJCWMtMi4xLTEuNC00LjYtMi4yLTcuNC0yLjJjLTIuNywwLTUuMiwwLjctNy40LDIuMmMtMi4yLDEuNS0zLjksMy40LTUsNS45Yy0xLjIsMi41LTEuOCw1LjItMS44LDguMmMwLDMsMC42LDUuNywxLjgsOC4xCgkJCWMxLjIsMi41LDIuOSw0LjQsNSw1LjljMi4yLDEuNCw0LjYsMi4yLDcuNCwyLjJDNDg5LjcsMTg1LjEsNDkyLjIsMTg0LjQsNDk0LjQsMTgyLjkgTTQ3Ni4xLDE4Ny43Yy0zLjEtMS45LTUuNS00LjUtNy4yLTcuOAoJCQljLTEuNy0zLjMtMi41LTYuOS0yLjUtMTFjMC00LDAuOC03LjcsMi41LTExYzEuNy0zLjMsNC4xLTUuOSw3LjItNy44YzMuMS0xLjksNi43LTIuOSwxMC45LTIuOWM0LjEsMCw3LjgsMSwxMC45LDIuOQoJCQljMy4xLDEuOSw1LjYsNC41LDcuMyw3LjhjMS43LDMuMywyLjUsNywyLjUsMTFjMCw0LTAuOCw3LjctMi41LDExYy0xLjcsMy4zLTQuMSw1LjktNy4zLDcuOGMtMy4xLDEuOS02LjgsMi45LTEwLjksMi45CgkJCUM0ODIuOCwxOTAuNSw0NzkuMiwxODkuNiw0NzYuMSwxODcuNyIvPgoJCTxwYXRoIGQ9Ik01MjIsMTQ4LjF2Ny44YzEuMi0yLjYsMi44LTQuNyw0LjktNi4yYzIuMS0xLjYsNC43LTIuNCw3LjctMi40YzUsMCw4LjgsMS40LDExLjMsNC4yYzIuNSwyLjgsMy44LDYuNiwzLjgsMTEuNXYyNi43CgkJCWgtNi40di0yNi4yYzAtMy44LTAuOC02LjYtMi40LTguM2MtMS42LTEuNy0zLjktMi42LTYuOS0yLjZjLTIuMSwwLTQuMSwwLjYtNS45LDEuN2MtMS44LDEuMi0zLjIsMy00LjQsNS40CgkJCWMtMS4xLDIuNC0xLjcsNS41LTEuNyw5LjF2MjAuOGgtNi40di00MS42SDUyMnoiLz4KCTwvZz4KCTxwb2x5Z29uIHBvaW50cz0iMTk2LjEsMjA5LjIgMjA3LjMsMjA5LjMgMjI0LjMsMjU4LjcgMjI0LjQsMjU4LjcgMjQxLjMsMjA5LjIgMjUyLjYsMjA5LjIgMjUyLjYsMjY2LjcgMjQ1LjgsMjY2LjcgMjQ1LjgsMjE2LjggCgkJMjQ1LjcsMjE2LjggMjI4LjMsMjY2LjcgMjIwLjUsMjY2LjcgMjAzLDIxNi44IDIwMi44LDIxNi44IDIwMi44LDI2Ni43IDE5Ni4xLDI2Ni43IAkiLz4KCTxnPgoJCTxwYXRoIGQ9Ik0yODMuOSwyNjAuN2MyLTEuMSwzLjYtMi44LDQuOC01YzEuMi0yLjIsMS44LTUsMS44LTguM3YtNmMtMC41LDEuNS0xLjcsMi44LTMuNSwzLjhjLTEuOCwxLTQuNywxLjktOC43LDIuNQoJCQljLTMuNCwwLjYtNiwxLjUtNy44LDIuN2MtMS43LDEuMi0yLjYsMi44LTIuNiw0LjljMCwxLjQsMC40LDIuNiwxLjIsMy43YzAuOCwxLDEuOSwxLjksMy4zLDIuNWMxLjQsMC42LDMsMC45LDQuOSwwLjkKCQkJQzI3OS43LDI2Mi40LDI4MS45LDI2MS44LDI4My45LDI2MC43IE0yOTAuNSwyNjAuNXYtMS44aC0wLjFjLTAuOCwyLjMtMi4zLDQuNC00LjYsNi4yYy0yLjIsMS44LTUuNCwyLjctOS41LDIuNwoJCQljLTMuMiwwLTUuOS0wLjYtOC4xLTEuN2MtMi4yLTEuMi0zLjktMi43LTUtNC42Yy0xLjEtMS45LTEuNy0zLjktMS43LTZjMC0zLDAuOS01LjQsMi44LTcuMWMxLjktMS43LDQuMS0zLDYuNS0zLjcKCQkJYzIuNS0wLjcsNS40LTEuNCw4LjktMS45bDEuOS0wLjNjMi4xLTAuNCwzLjgtMC44LDUtMS4zYzEuMi0wLjUsMi4xLTEuMSwyLjctMS45YzAuNi0wLjgsMC45LTEuNywwLjktMi45YzAtMi4xLTAuOS0zLjctMi43LTQuOQoJCQljLTEuOC0xLjItNC4yLTEuOC03LjMtMS44Yy0yLjYsMC00LjksMC43LTYuNywyLjFjLTEuOSwxLjQtMywzLjQtMy42LDUuOGgtNi40YzAuNC0yLjIsMS4yLTQuMywyLjUtNi40YzEuMy0yLDMuMi0zLjcsNS41LTUKCQkJYzIuNC0xLjMsNS4yLTIsOC41LTJjMTEsMCwxNi40LDUuMiwxNi40LDE1LjV2MTguNWMwLDIuOCwwLjIsNS42LDAuNiw4LjVoLTYuOEMyOTAuNSwyNjUuMywyOTAuNSwyNjMuMywyOTAuNSwyNjAuNSIvPgoJCTxwYXRoIGQ9Ik0zMTMuNiwyMjUuMXY3LjhjMS4yLTIuNiwyLjgtNC43LDQuOS02LjJjMi4xLTEuNiw0LjctMi40LDcuNy0yLjRjNSwwLDguOCwxLjQsMTEuMyw0LjJjMi41LDIuOCwzLjgsNi42LDMuOCwxMS41djI2LjcKCQkJaC02LjR2LTI2LjJjMC0zLjgtMC44LTYuNi0yLjQtOC4zYy0xLjYtMS43LTMuOS0yLjYtNi45LTIuNmMtMi4xLDAtNC4xLDAuNi01LjksMS43Yy0xLjgsMS4yLTMuMiwzLTQuNCw1LjQKCQkJYy0xLjEsMi40LTEuNyw1LjUtMS43LDkuMXYyMC44aC02LjR2LTQxLjZIMzEzLjZ6Ii8+CgkJPHBhdGggZD0iTTM3MS42LDI2MC43YzItMS4xLDMuNi0yLjgsNC44LTVjMS4yLTIuMiwxLjgtNSwxLjgtOC4zdi02Yy0wLjUsMS41LTEuNywyLjgtMy41LDMuOGMtMS44LDEtNC43LDEuOS04LjcsMi41CgkJCWMtMy40LDAuNi02LDEuNS03LjgsMi43Yy0xLjcsMS4yLTIuNiwyLjgtMi42LDQuOWMwLDEuNCwwLjQsMi42LDEuMiwzLjdjMC44LDEsMS45LDEuOSwzLjMsMi41czMsMC45LDQuOSwwLjkKCQkJQzM2Ny40LDI2Mi40LDM2OS42LDI2MS44LDM3MS42LDI2MC43IE0zNzguMiwyNjAuNXYtMS44aC0wLjFjLTAuOCwyLjMtMi4zLDQuNC00LjYsNi4yYy0yLjIsMS44LTUuNCwyLjctOS41LDIuNwoJCQljLTMuMiwwLTUuOS0wLjYtOC4xLTEuN2MtMi4yLTEuMi0zLjktMi43LTUtNC42Yy0xLjEtMS45LTEuNy0zLjktMS43LTZjMC0zLDAuOS01LjQsMi44LTcuMWMxLjktMS43LDQuMS0zLDYuNS0zLjcKCQkJYzIuNS0wLjcsNS40LTEuNCw4LjktMS45bDEuOS0wLjNjMi4xLTAuNCwzLjgtMC44LDUtMS4zYzEuMi0wLjUsMi4xLTEuMSwyLjctMS45YzAuNi0wLjgsMC45LTEuNywwLjktMi45YzAtMi4xLTAuOS0zLjctMi43LTQuOQoJCQljLTEuOC0xLjItNC4yLTEuOC03LjMtMS44Yy0yLjYsMC00LjksMC43LTYuNywyLjFjLTEuOSwxLjQtMywzLjQtMy42LDUuOGgtNi40YzAuNC0yLjIsMS4yLTQuMywyLjUtNi40YzEuMy0yLDMuMi0zLjcsNS41LTUKCQkJYzIuNC0xLjMsNS4yLTIsOC41LTJjMTEsMCwxNi40LDUuMiwxNi40LDE1LjV2MTguNWMwLDIuOCwwLjIsNS42LDAuNiw4LjVoLTYuOEMzNzguMiwyNjUuMywzNzguMiwyNjMuMywzNzguMiwyNjAuNSIvPgoJCTxwYXRoIGQ9Ik00MDAuMywyNTRjMSwyLjUsMi41LDQuNCw0LjYsNS45YzIsMS40LDQuNiwyLjIsNy42LDIuMmMzLjIsMCw1LjktMC44LDcuOS0yLjVjMi4xLTEuNiwzLjUtMy43LDQuNC02LjIKCQkJYzAuOS0yLjUsMS4zLTUsMS4zLTcuNmMwLTIuNi0wLjUtNS4xLTEuNi03LjZjLTEtMi41LTIuNi00LjYtNC43LTYuMmMtMi4xLTEuNi00LjYtMi40LTcuNC0yLjRjLTIuOSwwLTUuNCwwLjctNy41LDIuMgoJCQljLTIuMSwxLjUtMy42LDMuNC00LjcsNS45Yy0xLDIuNC0xLjYsNS4xLTEuNiw4LjFDMzk4LjcsMjQ4LjgsMzk5LjIsMjUxLjUsNDAwLjMsMjU0IE00MzIuMiwyNjMuOWMwLDMuOC0wLjgsNy4xLTIuNSwxMAoJCQljLTEuNiwyLjgtMy45LDUtNi44LDYuNmMtMi45LDEuNS02LjEsMi4zLTkuNywyLjNjLTMuNCwwLTYuNS0wLjYtOS4zLTEuN2MtMi43LTEuMS01LTIuOC02LjYtNC45Yy0xLjctMi4xLTIuNy00LjYtMy03LjVoNi41CgkJCWMwLjQsMywxLjcsNS4xLDMuOCw2LjVjMi4xLDEuNCw1LDIuMSw4LjYsMi4xYzMuOSwwLDYuOS0xLjEsOS4yLTMuNGMyLjMtMi4zLDMuNC01LjYsMy40LTEwLjJ2LTUuNGgtMC4xYy0xLjEsMi44LTIuOCw1LjEtNSw2LjcKCQkJYy0yLjMsMS42LTUuNCwyLjUtOS4yLDIuNWMtMy45LDAtNy4zLTEtMTAuMi0yLjljLTIuOS0xLjktNS4xLTQuNS02LjYtNy44Yy0xLjUtMy4zLTIuMy03LTIuMy0xMWMwLTQuMSwwLjgtNy44LDIuMy0xMQoJCQljMS41LTMuMywzLjctNS45LDYuNi03LjdjMi45LTEuOSw2LjMtMi44LDEwLjItMi44YzMuOCwwLDYuOCwwLjgsOS4yLDIuNWMyLjQsMS43LDQuMSwzLjcsNSw2LjJoMC4xdi03LjloNi40VjI2My45eiIvPgoJCTxwYXRoIGQ9Ik00NTMuNCwyMzEuMWMtMiwxLjEtMy41LDIuNi00LjcsNC42Yy0xLjIsMi0xLjksNC4yLTIuMyw2LjhoMjYuNWMtMC40LTQuMS0xLjYtNy4zLTMuNy05LjZjLTIuMS0yLjMtNS4xLTMuNS05LTMuNQoJCQlDNDU3LjYsMjI5LjUsNDU1LjQsMjMwLDQ1My40LDIzMS4xIE00NjguMSwyNjAuMmMyLjEtMS4zLDMuNi0zLjMsNC40LTUuOWg2LjRjLTEuMiw0LjItMy40LDcuNS02LjYsOS44CgkJCWMtMy4yLDIuMy03LjIsMy40LTExLjgsMy40Yy00LjEsMC03LjctMC45LTEwLjctMi44Yy0zLjEtMS45LTUuNC00LjQtNy4xLTcuN2MtMS43LTMuMy0yLjUtNy0yLjUtMTEuMmMwLTQuMSwwLjgtNy44LDIuNS0xMQoJCQljMS43LTMuMyw0LjEtNS44LDcuMS03LjdjMy0xLjksNi41LTIuOCwxMC40LTIuOGM0LjUsMCw4LjEsMSwxMC45LDMuMWMyLjgsMiw0LjksNC43LDYuMiw4YzEuMywzLjMsMiw2LjksMi4xLDEwLjhsMC4xLDEuNmgtMzMuMQoJCQljMC4yLDMsMC44LDUuNSwyLjEsNy43YzEuMiwyLjIsMi44LDMuOSw0LjksNXM0LjQsMS43LDcsMS43QzQ2My4zLDI2Mi4yLDQ2NS45LDI2MS41LDQ2OC4xLDI2MC4yIi8+CgkJPHBhdGggZD0iTTQ5OC43LDIyN2MyLjEtMS40LDQuNy0yLjEsOC0yLjF2NmMtMC41LDAtMS4xLDAuMS0xLjgsMC4yYy0wLjcsMC4xLTEuMywwLjItMS45LDAuNGMtMS44LDAuNS0zLjMsMS4yLTQuNiwyLjIKCQkJYy0xLjMsMS0yLjMsMi41LTMuMSw0LjZjLTAuOCwyLjEtMS4yLDQuOC0xLjIsOC4zdjIwLjFoLTYuNHYtNDEuNmg2LjR2OC4zQzQ5NS4xLDIzMC41LDQ5Ni42LDIyOC4zLDQ5OC43LDIyNyIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo="},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(535);t.default=function(e,t){var r=[];if(e&&e.raw&&e.raw["simplified:breadcrumbs"]&&e.raw["simplified:breadcrumbs"][0]&&e.raw["simplified:breadcrumbs"][0].link){var a=e.raw["simplified:breadcrumbs"][0].link;r=a.map((function(e){return{url:e["$"].href.value,text:e["$"].title.value}}));r.push({url:e.url,text:e.title})}else{r=n.hierarchyComputeBreadcrumbs(e,t)}return r}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1126);var o=r(536);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=a.Children.only(this.props.children);var t=JSON.parse(JSON.stringify(e.props.collection));var r=t&&t.facetGroups?t.facetGroups:[];var n=Object.assign({},e.props);var s=[];if(r&&r.length){var u;r.forEach((function(e,t){if(e.label==="Formats"){u=t;s=e.facets.slice()}}));if(u!==undefined){r.splice(u,1)}}t.facetGroups=r;n.collection=t;var l=a.createElement(o.default,n);return a.createElement("div",{className:"entry-points-tab-container"},a.createElement(i.default,{facets:s}),l)};return t}(a.Component);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(65);var o=r(0);var s=r(127);var u=function(e){n(t,e);function t(t){return e.call(this,t)||this}t.prototype.render=function(){var e=this.props.facets?this.props.facets:[];if(!e.length){return null}var t={All:"http://schema.org/CreativeWork",eBooks:"http://schema.org/EBook",Audiobooks:"http://bib.schema.org/Audiobook"};var r={"http://bib.schema.org/Audiobook":a.createElement(s.AudioHeadphoneIcon,{ariaHidden:true,title:"Audio Headphones Icon"}),"http://schema.org/EBook":a.createElement(s.BookIcon,{ariaHidden:true,title:"Book Icon"}),"http://schema.org/CreativeWork":null};return a.createElement("ul",{className:"nav nav-tabs entry-points-list"},e.map((function(e){var n=e.label;var o=t[n];var s=e.active?"active":"";var u=e.href;var l=r[o]?r[o]:null;var c=!l?"no-svg":"";return a.createElement("li",{key:n,role:"presentation",className:s+" "+c},a.createElement(i.default,{collectionUrl:u,bookUrl:null},l,n))})))};t.contextTypes={router:o.object.isRequired,pathFor:o.func.isRequired};return t}(a.Component);t.EntryPointsTabs=u;t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(76);var o=r(77);var s=r(118);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement("div",{className:"welcome-page"},a.createElement(i.default,null),a.createElement(s.Jumbotron,null,a.createElement("h2",null,"Welcome to the Circulation Admin Interface!"),a.createElement("hr",null),a.createElement("p",null,"You don't have any libraries yet. To get started, go to the System Configuration section and",a.createElement("a",{href:"/admin/web/config/libraries/create"}," ","create a new library"),".")),a.createElement(o.default,null))};return t}(a.Component);t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(76);var s=r(77);var u=r(1129);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.getChildContext=function(){var e=this;return{library:function(){return e.props.params.library}}};t.prototype.render=function(){var e;if(this.props.location&&this.props.location.state){e=this.props.location.state.bookTitle}return a.createElement("div",{className:"custom-list-page"},a.createElement(o.default,null),a.createElement(u.default,{library:this.props.params.library,editOrCreate:this.props.params.editOrCreate,identifier:this.props.params.identifier,store:this.context.editorStore,csrfToken:this.context.csrfToken,startingTitle:e}),a.createElement(s.default,null))};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};t.childContextTypes={library:i.func};return t}(a.Component);t.default=l},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};var i=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var o=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});var s=r(1);var u=r(14);var l=r(0);var c=r(8);var f=r(41);var d=r(178);var p=r(1130);var h=r(72);var v=r(37);var m=r(1221);var y=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.saveCustomListEditor=r.saveCustomListEditor.bind(r);r.deleteCustomList=r.deleteCustomList.bind(r);r.changeSort=r.changeSort.bind(r);r.getEnabledEntryPoints=r.getEnabledEntryPoints.bind(r);r.state={sort:"asc"};return r}t.prototype.render=function(){return s.createElement("main",{className:"custom-lists-container"},this.props.fetchError&&s.createElement(v.default,{error:this.props.fetchError}),this.props.isFetching&&s.createElement(h.default,null),s.createElement("div",{className:"custom-lists"},this.renderSidebar(),this.props.editOrCreate&&this.renderEditor()))};t.prototype.renderSidebar=function(){return s.createElement(m.default,{lists:this.sortedLists(),library:this.props.library,identifier:this.props.identifier,isLibraryManager:this.context.admin.isLibraryManager(this.props.library),deleteCustomList:this.deleteCustomList,changeSort:this.changeSort,sortOrder:this.state.sort})};t.prototype.renderEditor=function(){var e=this;var t,r,n;var i={collections:this.collectionsForLibrary(),isAutoUpdateEnabled:this.props.customListEditorIsAutoUpdateEnabled,properties:this.props.customListEditorProperties,searchParams:this.props.customListEditorSearchParams,isLoaded:this.props.customListEditorIsLoaded,isValid:this.props.customListEditorIsValid,isModified:this.props.customListEditorIsModified,entries:this.props.customListEditorEntries,save:this.saveCustomListEditor,reset:this.props.resetCustomListEditor,entryPoints:this.getEnabledEntryPoints(this.props.libraries),isFetchingMoreCustomListEntries:this.props.isFetchingMoreCustomListEntries,isFetchingSearchResults:this.props.isFetchingSearchResults,isFetchingMoreSearchResults:this.props.isFetchingMoreSearchResults,languages:this.props.languages,library:(t=this.props.libraries)===null||t===void 0?void 0:t.find((function(t){return t.short_name===e.props.library})),loadMoreEntries:((r=this.props.listDetails)===null||r===void 0?void 0:r.nextPageUrl)&&this.props.loadMoreEntries,loadMoreSearchResults:((n=this.props.searchResults)===null||n===void 0?void 0:n.nextPageUrl)&&this.props.loadMoreSearchResults,search:this.props.executeCustomListEditorSearch,searchResults:this.props.searchResults,updateProperty:this.props.updateCustomListEditorProperty,toggleCollection:this.props.toggleCustomListEditorCollection,updateSearchParam:this.props.updateCustomListEditorSearchParam,addAdvSearchQuery:this.props.addCustomListEditorAdvSearchQuery,updateAdvSearchQueryBoolean:this.props.updateCustomListEditorAdvSearchQueryBoolean,moveAdvSearchQuery:this.props.moveCustomListEditorAdvSearchQuery,removeAdvSearchQuery:this.props.removeCustomListEditorAdvSearchQuery,selectAdvSearchQuery:this.props.selectCustomListEditorAdvSearchQuery,addEntry:this.props.addCustomListEditorEntry,addAllEntries:this.props.addAllCustomListEditorEntries,deleteEntry:this.props.deleteCustomListEditorEntry,deleteAllEntries:this.props.deleteAllCustomListEditorEntries};var o=this.props.editOrCreate==="create"?{startingTitle:this.props.startingTitle}:{listId:this.props.identifier};return s.createElement(p.default,a({},a(a({},i),o)))};t.prototype.UNSAFE_componentWillMount=function(){var e,t,r,n,a,i;var o=this.props,s=o.editOrCreate,u=o.fetchCollections,l=o.fetchCustomListDetails,c=o.fetchCustomLists,f=o.fetchLibraries,d=o.fetchLanguages,p=o.identifier,h=o.openCustomListEditor;(e=c)===null||e===void 0?void 0:e();(t=h)===null||t===void 0?void 0:t(p);if(s==="edit"){(r=l)===null||r===void 0?void 0:r(p)}(n=u)===null||n===void 0?void 0:n();(a=f)===null||a===void 0?void 0:a();(i=d)===null||i===void 0?void 0:i()};t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t,r;var n=e.editOrCreate,a=e.fetchError,i=e.lists;if(!n&&i&&!a){if(i.length===0){window.location.href+="/create"}else{var o=this.sortedLists(i)[0];window.location.href+="/edit/"+o.id}}var s=e.identifier,u=e.fetchCustomListDetails,l=e.openCustomListEditor;if(s!==this.props.identifier){(t=l)===null||t===void 0?void 0:t(s);if(s){(r=u)===null||r===void 0?void 0:r(s)}}};t.prototype.changeSort=function(){var e=this.state.sort;if(e==="asc"){this.setState({sort:"desc"})}else{this.setState({sort:"asc"})}};t.prototype.sortedLists=function(e){var t=this;e=e||this.props.lists||[];return e.sort((function(e,r){var n=e;var a=r;if(t.state.sort==="desc"){n=r;a=e}if(n.name<a.name){return-1}else if(n.name===a.name){return 0}else{return 1}}))};t.prototype.getEnabledEntryPoints=function(e){var t=this;if(!e){return[]}var r;e.forEach((function(e){if(e.short_name===t.props.library){r=e}}));return r.settings.enabled_entry_points||[]};t.prototype.saveCustomListEditor=function(){return i(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:e=this.props.identifier;return[4,this.props.saveCustomListEditor()];case 1:t.sent();this.props.fetchCustomLists();if(e){this.props.fetchCustomListDetails(e)}return[2]}}))}))};t.prototype.deleteCustomList=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(a){switch(a.label){case 0:return[4,this.getDeletedLanes(e.id)];case 1:t=a.sent();r="";if(t&&t.length){r=this.deletedLaneNames(t)}n='Delete list "'+e.name+'"? '+r;if(!window.confirm(n))return[3,3];return[4,this.props.deleteCustomList(String(e.id))];case 2:a.sent();this.props.fetchCustomLists();a.label=3;case 3:return[2]}}))}))};t.prototype.getDeletedLanes=function(e){return i(this,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:t=[];r=this.props.lanes;if(!!r)return[3,2];return[4,this.props.fetchLanes()];case 1:n.sent();r=this.props.lanes;n.label=2;case 2:if(r&&r.length){r.forEach((function(r){var n=r.custom_list_ids;if(n.length===1&&n[0]===e){t.push(r)}}))}return[2,t]}}))}))};t.prototype.deletedLaneNames=function(e){var t="Deleting this list will delete the following lanes:\n";e.forEach((function(e){return t+="\nLane name: "+e.display_name}));return t};t.prototype.collectionsForLibrary=function(){var e=[];for(var t=0,r=this.props.collections||[];t<r.length;t++){var n=r[t];for(var a=0,i=n.libraries||[];a<i.length;a++){var o=i[a];if(o.short_name===this.props.library){e.push(n);break}}}return e};t.contextTypes={admin:l.object.isRequired};return t}(s.Component);t.CustomLists=y;function g(e,t){var r,n;return{customListEditorProperties:e.editor.customListEditor.properties.current,customListEditorSearchParams:e.editor.customListEditor.searchParams.current,customListEditorEntries:e.editor.customListEditor.entries,customListEditorIsLoaded:e.editor.customListEditor.isLoaded,customListEditorIsValid:e.editor.customListEditor.isValid,customListEditorIsModified:e.editor.customListEditor.isModified,customListEditorIsAutoUpdateEnabled:e.editor.customListEditor.isAutoUpdateEnabled,lists:e.editor.customLists&&e.editor.customLists.data&&e.editor.customLists.data.custom_lists,listDetails:e.editor.customListDetails&&e.editor.customListDetails.data,isFetchingMoreCustomListEntries:e.editor.customListDetails&&e.editor.customListDetails.isFetchingMoreEntries,fetchError:e.editor.customLists.fetchError||e.editor.collections.fetchError,isFetching:e.editor.customLists.isFetching||e.editor.customLists.isEditing||e.editor.customListDetails.isFetching||e.editor.customListDetails.isEditing||!t.editOrCreate||e.editor.collections.isFetching,searchResults:e.editor.collection&&e.editor.collection.data,isFetchingSearchResults:(r=e.editor.collection)===null||r===void 0?void 0:r.isFetching,isFetchingMoreSearchResults:(n=e.editor.collection)===null||n===void 0?void 0:n.isFetchingPage,collections:e.editor.collections&&e.editor.collections.data&&e.editor.collections.data.collections,languages:e.editor.languages&&e.editor.languages.data,libraries:e.editor.libraries.data&&e.editor.libraries.data.libraries,lanes:e.editor.lanes.data&&e.editor.lanes.data.lanes}}function b(e,t){var r=new f.default({adapter:d.adapter});var n=new c.default(r,t.csrfToken);return{fetchCustomLists:function(){return e(n.fetchCustomLists(t.library))},fetchCustomListDetails:function(r){return e(n.fetchCustomListDetails(t.library,r))},saveCustomListEditor:function(){return e(n.saveCustomListEditor(t.library))},resetCustomListEditor:function(){e(n.resetCustomListEditor());e(n.executeCustomListEditorSearch(t.library))},executeCustomListEditorSearch:function(){return e(n.executeCustomListEditorSearch(t.library))},loadMoreSearchResults:function(){return e(n.fetchMoreCustomListEditorSearchResults())},deleteCustomList:function(r){return e(n.deleteCustomList(t.library,r))},openCustomListEditor:function(t){return e(n.openCustomListEditor(t))},loadMoreEntries:function(){return e(n.fetchMoreCustomListEntries())},fetchCollections:function(){return e(n.fetchCollections())},fetchLibraries:function(){return e(n.fetchLibraries())},fetchLanes:function(){return e(n.fetchLanes(t.library))},fetchLanguages:function(){return e(n.fetchLanguages())},updateCustomListEditorProperty:function(t,r){return e(n.updateCustomListEditorProperty(t,r))},toggleCustomListEditorCollection:function(t){return e(n.toggleCustomListEditorCollection(t))},updateCustomListEditorSearchParam:function(r,a){e(n.updateCustomListEditorSearchParam(r,a));e(n.executeCustomListEditorSearch(t.library))},addCustomListEditorAdvSearchQuery:function(r,a){e(n.addCustomListEditorAdvSearchQuery(r,a));e(n.executeCustomListEditorSearch(t.library))},updateCustomListEditorAdvSearchQueryBoolean:function(r,a,i){e(n.updateCustomListEditorAdvSearchQueryBoolean(r,a,i));e(n.executeCustomListEditorSearch(t.library))},moveCustomListEditorAdvSearchQuery:function(r,a,i){e(n.moveCustomListEditorAdvSearchQuery(r,a,i));e(n.executeCustomListEditorSearch(t.library))},removeCustomListEditorAdvSearchQuery:function(r,a){e(n.removeCustomListEditorAdvSearchQuery(r,a));e(n.executeCustomListEditorSearch(t.library))},selectCustomListEditorAdvSearchQuery:function(t,r){return e(n.selectCustomListEditorAdvSearchQuery(t,r))},addCustomListEditorEntry:function(t){return e(n.addCustomListEditorEntry(t))},addAllCustomListEditorEntries:function(){return e(n.addAllCustomListEditorEntries())},deleteCustomListEditorEntry:function(t){return e(n.deleteCustomListEditorEntry(t))},deleteAllCustomListEditorEntries:function(){return e(n.deleteAllCustomListEditorEntries())}}}var A=u.connect(g,b)(y);t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(13);var i=r(1131);var o=r(1210);var s=r(20);var u=r(645);function l(e){var t=e.collections,r=e.entries,l=e.entryPoints,c=e.isAutoUpdateEnabled,f=e.isFetchingMoreCustomListEntries,d=e.isFetchingSearchResults,p=e.isFetchingMoreSearchResults,h=e.isLoaded,v=e.isModified,m=e.isValid,y=e.languages,g=e.library,b=e.listId,A=e.properties,_=e.searchParams,w=e.searchResults,E=e.startingTitle,x=e.addAllEntries,k=e.addEntry,S=e.deleteAllEntries,O=e.deleteEntry,M=e.loadMoreEntries,D=e.loadMoreSearchResults,T=e.reset,L=e.save,C=e.search,j=e.toggleCollection,N=e.updateProperty,I=e.updateSearchParam,P=e.addAdvSearchQuery,R=e.updateAdvSearchQueryBoolean,F=e.moveAdvSearchQuery,Y=e.removeAdvSearchQuery,B=e.selectAdvSearchQuery;var H,U;var z=A.collections,q=A.name;n.useEffect((function(){var e;(e=C)===null||e===void 0?void 0:e()}),[b,h]);return n.createElement("div",{className:"custom-list-editor"},n.createElement("div",{className:"custom-list-editor-header"},n.createElement("div",{className:"edit-custom-list-title"},n.createElement("fieldset",{className:"save-or-edit"},n.createElement("legend",{className:"visuallyHidden"},"List name"),n.createElement(u.default,{text:q,placeholder:"list title",onUpdate:function(e){var t;return(t=N)===null||t===void 0?void 0:t("name",e)},"aria-label":"Enter a title for this list",disableIfBlank:true})),b&&n.createElement("h4",null,"ID-",b)),n.createElement("div",{className:"save-or-cancel-list"},n.createElement(a.Button,{callback:L,disabled:!v||!m,content:"Save this list"}),n.createElement(a.Button,{className:"inverted",callback:T,disabled:!v,content:"Cancel Changes"}))),n.createElement("div",{className:"custom-list-editor-body"},n.createElement("section",null,((H=t)===null||H===void 0?void 0:H.length)>0&&n.createElement("div",{className:"custom-list-filters"},n.createElement(a.Panel,{headerText:"Add from collections",id:"add-from-collections",content:n.createElement("div",{className:"collections"},n.createElement("div",null,"Automatically add new books from these collections to this list:"),t.map((function(e){var t=e.id,r=e.name;return n.createElement(s.default,{key:t,type:"checkbox",name:"collection",checked:z.includes(t),label:r,value:t,onChange:function(e){var t;return(t=j)===null||t===void 0?void 0:t(parseInt(e))}})})))})),n.createElement(o.default,{autoUpdate:A.autoUpdate,searchParams:_,updateAutoUpdate:function(e){var t;return(t=N)===null||t===void 0?void 0:t("autoUpdate",e)},updateSearchParam:I,search:C,entryPoints:l,startingTitle:E,library:g,languages:y,showAutoUpdate:c,addAdvSearchQuery:P,updateAdvSearchQueryBoolean:R,moveAdvSearchQuery:F,removeAdvSearchQuery:Y,selectAdvSearchQuery:B})),n.createElement(i.default,{autoUpdate:A.autoUpdate,searchResults:w,entries:r.current,loadMoreSearchResults:D,loadMoreEntries:M,isFetchingSearchResults:d,isFetchingMoreSearchResults:p,isFetchingMoreCustomListEntries:f,opdsFeedUrl:((U=g)===null||U===void 0?void 0:U.short_name)+"/"+(q?"lists/"+q+"/":"")+"crawlable",entryCount:r.currentTotalCount,listId:b,addEntry:k,addAllEntries:x,deleteEntry:O,deleteAllEntries:S,refreshResults:C})))}t.default=l},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(13);var o=r(65);var s=r(177);var u=r(308);var l=r(1205);var c=r(106);var f=r(325);var d=r(210);var p=r(1206);var h=r(1207);var v=r(1208);var m=function(e,t){var r=e.title,n=e.url;if(!n){return null}return a.createElement(o.default,{collectionUrl:t,bookUrl:n,title:r,target:"_blank",className:"btn inverted left-align small top-align"},"View details")};var y=function(e){var t=e.autoUpdate,r=e.entries,o=e.entryCount,y=e.isFetchingMoreCustomListEntries,g=e.isFetchingSearchResults,b=e.isFetchingMoreSearchResults,A=e.listId,_=e.opdsFeedUrl,w=e.searchResults,E=e.addAllEntries,x=e.addEntry,k=e.deleteAllEntries,S=e.deleteEntry,O=e.loadMoreEntries,M=e.loadMoreSearchResults,D=e.refreshResults;var T;var L=a.useState(null),C=L[0],j=L[1];a.useEffect((function(){j(null)}),[A,r]);a.useEffect((function(){var e;if(r){(e=document.getElementById("custom-list-entries-droppable"))===null||e===void 0?void 0:e.scrollTo(0,0)}}),[r]);var N=a.useMemo((function(){var e,n;if(!((n=(e=w)===null||e===void 0?void 0:e.books)===null||n===void 0?void 0:n.length)){return[]}if(t){return w.books}var a=r.reduce((function(e,t){e[t.id]=true;return e}),{});return w.books.filter((function(e){return!a[e.id]}))}),[t,r,w]);var I=function(e){j(e.source.droppableId);document.body.classList.add("dragging")};var P=function(e){var t,r,n,a;var i=e.draggableId,o=e.source,s=e.destination;if(o.droppableId==="search-results"&&((t=s)===null||t===void 0?void 0:t.droppableId)==="custom-list-entries"){(r=x)===null||r===void 0?void 0:r(i)}else if(o.droppableId==="custom-list-entries"&&((n=s)===null||n===void 0?void 0:n.droppableId)==="search-results"){(a=S)===null||a===void 0?void 0:a(i)}else{j(null)}document.body.classList.remove("dragging")};var R=null;if(!t){var F=r.length;var Y=F>0?1:0;var B=F;var H=o===1?"book":"books";var U=o>0?"Displaying "+Y+" - "+B+" of "+o+" "+H:"No books in this list";R=a.createElement("div",{className:"custom-list-entries"},a.createElement("div",{className:"droppable-header"},a.createElement("h4",null,U),((T=r)===null||T===void 0?void 0:T.length)>0&&a.createElement("div",null,a.createElement("span",null,"Remove all currently visible items from list:"),a.createElement(i.Button,{className:"danger delete-all-button top-align",callback:k,content:a.createElement("span",null,"Delete",a.createElement(c.default,null))}))),a.createElement("p",null,"Drag search results here to add them to the list."),a.createElement(u.Droppable,{droppableId:"custom-list-entries",isDropDisabled:C!=="search-results"},(function(e,t){var o;return a.createElement("ul",{ref:e.innerRef,id:"custom-list-entries-droppable",className:t.isDraggingOver?" droppable dragging-over":"droppable"},(o=r)===null||o===void 0?void 0:o.map((function(e){return a.createElement(u.Draggable,{key:e.id,draggableId:e.id},(function(t,r){return a.createElement("li",null,a.createElement("div",n({className:"custom-list-entry"+(r.isDragging?" dragging":""),ref:t.innerRef,style:t.draggableStyle},t.dragHandleProps),a.createElement(f.default,null),a.createElement("div",null,a.createElement("div",{className:"title"},e.title),a.createElement("div",{className:"authors"},e.authors.join(", "))),s.getMediumSVG(s.getMedium(e)),a.createElement("div",{className:"links"},m(e,_),a.createElement(i.Button,{className:"small right-align",callback:function(){var t;return(t=S)===null||t===void 0?void 0:t(e.id)},content:a.createElement("span",null,"Remove from list",a.createElement(c.default,null))}))),t.placeholder)}))})),e.placeholder)})),O&&a.createElement(v.default,{isFetching:y,loadMore:O}))}return a.createElement(u.DragDropContext,{onDragStart:I,onDragEnd:P},a.createElement("div",{className:"custom-list-drag-and-drop"},a.createElement("div",{className:"custom-list-search-results"},a.createElement("div",{className:"droppable-header"},a.createElement("h4",null,"Search Results"),a.createElement(i.Button,{"aria-label":"Refresh",className:"refresh-button inverted",callback:D,content:a.createElement(p.default,null),disabled:g}),!t&&!g&&N.length>0&&a.createElement(i.Button,{className:"add-all-button",callback:E,content:a.createElement("span",null,"Add all to list",a.createElement(l.default,null))})),g&&a.createElement(h.default,null),!g&&a.createElement(u.Droppable,{droppableId:"search-results",isDropDisabled:C!=="custom-list-entries"},(function(e,r){return a.createElement("ul",{ref:e.innerRef,className:r.isDraggingOver?"droppable dragging-over":"droppable"},C==="custom-list-entries"&&a.createElement("p",null,"Drag books here to remove them from the list."),C!=="custom-list-entries"&&N.map((function(e){return a.createElement(u.Draggable,{key:e.id,draggableId:e.id},(function(r,o){return a.createElement("li",null,a.createElement("div",n({className:"search-result"+(o.isDragging?" dragging":""),ref:r.innerRef,style:r.draggableStyle},r.dragHandleProps),a.createElement(f.default,null),a.createElement("div",null,a.createElement("div",{className:"title"},e.title),a.createElement("div",{className:"authors"},e.authors.join(", "))),s.getMediumSVG(s.getMedium(e)),a.createElement("div",{className:"links"},m(e,_),!t&&a.createElement(i.Button,{callback:function(){var t;return(t=x)===null||t===void 0?void 0:t(e.id)},className:"right-align",content:a.createElement("span",null,"Add to list",a.createElement(d.default,null))}))),r.placeholder)}))})),e.placeholder)})),!g&&M&&a.createElement(v.default,{isFetching:b,loadMore:M})),R))};t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1133);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(163);var a=x(n);var i=r(85);var o=x(i);var s=r(86);var u=x(s);var l=r(87);var c=x(l);var f=r(88);var d=x(f);var p=r(89);var h=x(p);var v=r(1);var m=x(v);var y=r(0);var g=x(y);var b=r(1155);var A=x(b);var _=r(1174);var w=x(_);var E=r(117);function x(e){return e&&e.__esModule?e:{default:e}}var k=function(e){(0,h.default)(t,e);function t(){(0,u.default)(this,t);return(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}(0,c.default)(t,[{key:"getChildContext",value:function e(){return(0,a.default)({},E.storeKey,this.store)}},{key:"componentWillMount",value:function e(){var t=this;this.store=(0,A.default)();var r=this.store.getState();this.unsubscribe=this.store.subscribe((function(){var e=t.store.getState();var n={onDragStart:t.props.onDragStart,onDragEnd:t.props.onDragEnd};(0,w.default)(n,e,r);r=e}))}},{key:"componentWillUnmount",value:function e(){this.unsubscribe()}},{key:"render",value:function e(){return this.props.children}}]);return t}(m.default.Component);k.childContextTypes=(0,a.default)({},E.storeKey,g.default.shape({dispatch:g.default.func.isRequired,subscribe:g.default.func.isRequired,getState:g.default.func.isRequired}).isRequired);t.default=k},function(e,t,r){r(1135);var n=r(30).Object;e.exports=function e(t,r,a){return n.defineProperty(t,r,a)}},function(e,t,r){var n=r(42);n(n.S+n.F*!r(75),"Object",{defineProperty:r(83).f})},function(e,t,r){r(1137);e.exports=r(30).Object.getPrototypeOf},function(e,t,r){var n=r(133);var a=r(598);r(588)("getPrototypeOf",(function(){return function e(t){return a(n(t))}}))},function(e,t,r){e.exports={default:r(1139),__esModule:true}},function(e,t,r){r(595);r(1140);e.exports=r(310).f("iterator")},function(e,t,r){r(1141);var n=r(74);var a=r(129);var i=r(159);var o=r(67)("toStringTag");var s=("CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,"+"DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,"+"MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,"+"SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,"+"TextTrackList,TouchList").split(",");for(var u=0;u<s.length;u++){var l=s[u];var c=n[l];var f=c&&c.prototype;if(f&&!f[o])a(f,o,l);i[l]=i.Array}},function(e,t,r){"use strict";var n=r(1142);var a=r(1143);var i=r(159);var o=r(109);e.exports=r(596)(Array,"Array",(function(e,t){this._t=o(e);this._i=0;this._k=t}),(function(){var e=this._t;var t=this._k;var r=this._i++;if(!e||r>=e.length){this._t=undefined;return a(1)}if(t=="keys")return a(0,r);if(t=="values")return a(0,e[r]);return a(0,[r,e[r]])}),"values");i.Arguments=i.Array;n("keys");n("values");n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){e.exports={default:r(1145),__esModule:true}},function(e,t,r){r(1146);r(1150);r(1151);r(1152);e.exports=r(30).Symbol},function(e,t,r){"use strict";var n=r(74);var a=r(108);var i=r(75);var o=r(42);var s=r(597);var u=r(1147).KEY;var l=r(107);var c=r(277);var f=r(282);var d=r(193);var p=r(67);var h=r(310);var v=r(311);var m=r(1148);var y=r(606);var g=r(130);var b=r(131);var A=r(133);var _=r(109);var w=r(273);var E=r(157);var x=r(280);var k=r(1149);var S=r(586);var O=r(279);var M=r(83);var D=r(132);var T=S.f;var L=M.f;var C=k.f;var j=n.Symbol;var N=n.JSON;var I=N&&N.stringify;var P="prototype";var R=p("_hidden");var F=p("toPrimitive");var Y={}.propertyIsEnumerable;var B=c("symbol-registry");var H=c("symbols");var U=c("op-symbols");var z=Object[P];var q=typeof j=="function"&&!!O.f;var V=n.QObject;var W=!V||!V[P]||!V[P].findChild;var K=i&&l((function(){return x(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a!=7}))?function(e,t,r){var n=T(z,t);if(n)delete z[t];L(e,t,r);if(n&&e!==z)L(z,t,n)}:L;var G=function(e){var t=H[e]=x(j[P]);t._k=e;return t};var Q=q&&typeof j.iterator=="symbol"?function(e){return typeof e=="symbol"}:function(e){return e instanceof j};var J=function e(t,r,n){if(t===z)J(U,r,n);g(t);r=w(r,true);g(n);if(a(H,r)){if(!n.enumerable){if(!a(t,R))L(t,R,E(1,{}));t[R][r]=true}else{if(a(t,R)&&t[R][r])t[R][r]=false;n=x(n,{enumerable:E(0,false)})}return K(t,r,n)}return L(t,r,n)};var Z=function e(t,r){g(t);var n=m(r=_(r));var a=0;var i=n.length;var o;while(i>a)J(t,o=n[a++],r[o]);return t};var X=function e(t,r){return r===undefined?x(t):Z(x(t),r)};var $=function e(t){var r=Y.call(this,t=w(t,true));if(this===z&&a(H,t)&&!a(U,t))return false;return r||!a(this,t)||!a(H,t)||a(this,R)&&this[R][t]?r:true};var ee=function e(t,r){t=_(t);r=w(r,true);if(t===z&&a(H,r)&&!a(U,r))return;var n=T(t,r);if(n&&a(H,r)&&!(a(t,R)&&t[R][r]))n.enumerable=true;return n};var te=function e(t){var r=C(_(t));var n=[];var i=0;var o;while(r.length>i){if(!a(H,o=r[i++])&&o!=R&&o!=u)n.push(o)}return n};var re=function e(t){var r=t===z;var n=C(r?U:_(t));var i=[];var o=0;var s;while(n.length>o){if(a(H,s=n[o++])&&(r?a(z,s):true))i.push(H[s])}return i};if(!q){j=function e(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:undefined);var r=function(e){if(this===z)r.call(U,e);if(a(this,R)&&a(this[R],t))this[R][t]=false;K(this,t,E(1,e))};if(i&&W)K(z,t,{configurable:true,set:r});return G(t)};s(j[P],"toString",(function e(){return this._k}));S.f=ee;M.f=J;r(631).f=k.f=te;r(158).f=$;O.f=re;if(i&&!r(192)){s(z,"propertyIsEnumerable",$,true)}h.f=function(e){return G(p(e))}}o(o.G+o.W+o.F*!q,{Symbol:j});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ae=0;ne.length>ae;)p(ne[ae++]);for(var ie=D(p.store),oe=0;ie.length>oe;)v(ie[oe++]);o(o.S+o.F*!q,"Symbol",{for:function(e){return a(B,e+="")?B[e]:B[e]=j(e)},keyFor:function e(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var r in B)if(B[r]===t)return r},useSetter:function(){W=true},useSimple:function(){W=false}});o(o.S+o.F*!q,"Object",{create:X,defineProperty:J,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:re});var se=l((function(){O.f(1)}));o(o.S+o.F*se,"Object",{getOwnPropertySymbols:function e(t){return O.f(A(t))}});N&&o(o.S+o.F*(!q||l((function(){var e=j();return I([e])!="[null]"||I({a:e})!="{}"||I(Object(e))!="{}"}))),"JSON",{stringify:function e(t){var r=[t];var n=1;var a,i;while(arguments.length>n)r.push(arguments[n++]);i=a=r[1];if(!b(a)&&t===undefined||Q(t))return;if(!y(a))a=function(e,t){if(typeof i=="function")t=i.call(this,e,t);if(!Q(t))return t};r[1]=a;return I.apply(N,r)}});j[P][F]||r(129)(j[P],F,j[P].valueOf);f(j,"Symbol");f(Math,"Math",true);f(n.JSON,"JSON",true)},function(e,t,r){var n=r(193)("meta");var a=r(131);var i=r(108);var o=r(83).f;var s=0;var u=Object.isExtensible||function(){return true};var l=!r(107)((function(){return u(Object.preventExtensions({}))}));var c=function(e){o(e,n,{value:{i:"O"+ ++s,w:{}}})};var f=function(e,t){if(!a(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!i(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i};var d=function(e,t){if(!i(e,n)){if(!u(e))return true;if(!t)return false;c(e)}return e[n].w};var p=function(e){if(l&&h.NEED&&u(e)&&!i(e,n))c(e);return e};var h=e.exports={KEY:n,NEED:false,fastKey:f,getWeak:d,onFreeze:p}},function(e,t,r){var n=r(132);var a=r(279);var i=r(158);e.exports=function(e){var t=n(e);var r=a.f;if(r){var o=r(e);var s=i.f;var u=0;var l;while(o.length>u)if(s.call(e,l=o[u++]))t.push(l)}return t}},function(e,t,r){var n=r(109);var a=r(631).f;var i={}.toString;var o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var s=function(e){try{return a(e)}catch(e){return o.slice()}};e.exports.f=function e(t){return o&&i.call(t)=="[object Window]"?s(t):a(n(t))}},function(e,t){},function(e,t,r){r(311)("asyncIterator")},function(e,t,r){r(311)("observable")},function(e,t,r){e.exports={default:r(585),__esModule:true}},function(e,t,r){e.exports={default:r(584),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(309);var a=c(n);var i=r(346);var o=r(261);var s=c(o);var u=r(1156);var l=c(u);function c(e){return e&&e.__esModule?e:{default:e}}var f=(typeof window==="undefined"?"undefined":(0,a.default)(window))==="object"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:i.compose;t.default=function(){return(0,i.createStore)(l.default,f((0,i.applyMiddleware)(s.default)))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(114);var a=A(n);var i=r(163);var o=A(i);var s=r(115);var u=A(s);var l=r(53);var c=A(l);var f=r(1158);var d=A(f);var p=r(43);var h=r(1160);var v=A(h);var m=r(1165);var y=A(m);var g=r(1168);var b=A(g);function A(e){return e&&e.__esModule?e:{default:e}}var _={request:null,draggable:{},droppable:{}};var w={x:0,y:0};var E=(0,c.default)((function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"IDLE";return{phase:e,drag:null,drop:null,dimension:_}}));var x=function e(t){var r=t.state,n=t.clientSelection,a=t.shouldAnimate,i=a===undefined?false:a,o=t.windowScroll,s=t.impact;if(r.phase!=="DRAGGING"){console.error("cannot move while not dragging");return E()}if(r.drag==null){console.error("cannot move if there is no drag information");return E()}var l=r.drag.current;var c=r.drag.initial;var f=o||l.windowScroll;var d=function(){var e=(0,p.subtract)(n,c.client.selection);var t={offset:e,selection:n,center:(0,p.add)(e,c.client.center)};return t}();var h={selection:(0,p.add)(d.selection,f),offset:(0,p.add)(d.offset,f),center:(0,p.add)(d.center,f)};var m={id:l.id,type:l.type,isScrollAllowed:l.isScrollAllowed,client:d,page:h,shouldAnimate:i,windowScroll:f};var y=r.drag&&r.drag.impact.destination?r.drag.impact.destination.droppableId:null;var g=s||(0,v.default)({pageCenter:h.center,draggable:r.dimension.draggable[m.id],draggables:r.dimension.draggable,droppables:r.dimension.droppable,previousDroppableOverId:y});var b={initial:c,impact:g,current:m,previous:{droppableOverId:y}};return(0,u.default)({},r,{drag:b})};t.default=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:E("IDLE");var t=arguments[1];if(t.type==="CLEAN"){return E()}if(t.type==="PREPARE"){return E("PREPARING")}if(t.type==="REQUEST_DIMENSIONS"){if(e.phase!=="PREPARING"){console.error("trying to start a lift while not preparing for a lift");return E()}var r=t.payload;return{phase:"COLLECTING_DIMENSIONS",drag:null,drop:null,dimension:{request:r,draggable:{},droppable:{}}}}if(t.type==="PUBLISH_DRAGGABLE_DIMENSION"){var n=t.payload;if(e.phase!=="COLLECTING_DIMENSIONS"){console.warn("dimension rejected as no longer requesting dimensions",n);return e}if(e.dimension.draggable[n.id]){console.error("dimension already exists for "+n.id);return e}return(0,u.default)({},e,{dimension:{request:e.dimension.request,droppable:e.dimension.droppable,draggable:(0,u.default)({},e.dimension.draggable,(0,o.default)({},n.id,n))}})}if(t.type==="PUBLISH_DROPPABLE_DIMENSION"){var i=t.payload;if(e.phase!=="COLLECTING_DIMENSIONS"){console.warn("dimension rejected as no longer requesting dimensions",i);return e}if(e.dimension.droppable[i.id]){console.error("dimension already exists for "+i.id);return e}return(0,u.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},i.id,i))}})}if(t.type==="COMPLETE_LIFT"){if(e.phase!=="COLLECTING_DIMENSIONS"){console.error("trying complete lift without collecting dimensions");return e}var s=t.payload,l=s.id,c=s.type,f=s.client,h=s.windowScroll,v=s.isScrollAllowed;var m=e.dimension.draggable;var g=e.dimension.draggable[l];var A=e.dimension.droppable[g.droppableId];var k={selection:(0,p.add)(f.selection,h),center:(0,p.add)(f.center,h)};var S=(0,d.default)({draggable:g,droppable:A,draggables:m});if(!S||!S.destination){console.error("invalid lift state");return E()}var O=S.destination;var M={source:O,client:f,page:k,windowScroll:h};var D={id:l,type:c,client:{selection:f.selection,center:f.center,offset:w},page:{selection:k.selection,center:k.center,offset:w},windowScroll:h,isScrollAllowed:v,shouldAnimate:false};return(0,u.default)({},e,{phase:"DRAGGING",drag:{initial:M,current:D,impact:S}})}if(t.type==="UPDATE_DROPPABLE_DIMENSION_SCROLL"){if(e.phase!=="DRAGGING"){console.error("cannot update a droppable dimensions scroll when not dragging");return E()}if(e.drag==null){console.error("invalid store state");return E()}if(!e.drag.current.isScrollAllowed){return E()}var T=t.payload,L=T.id,C=T.offset;var j=e.dimension.droppable[L];if(!j){console.error("cannot update a droppable that is not inside of the state",L);return E()}var N=(0,u.default)({},j,{container:(0,u.default)({},j.container,{scroll:(0,u.default)({},j.container.scroll,{current:C})})});var I=(0,u.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},L,N))}});return x({state:I,clientSelection:e.drag.current.client.selection})}if(t.type==="UPDATE_DROPPABLE_DIMENSION_IS_ENABLED"){if(!(0,a.default)(e.dimension.droppable).length){return e}var P=t.payload,R=P.id,F=P.isEnabled;var Y=e.dimension.droppable[R];if(!Y){console.error("cannot update enabled flag on droppable that does not have a dimension");return E()}if(Y.isEnabled===F){console.warn("trying to set droppable isEnabled to "+String(F)+" but it is already "+String(F));return e}var B=(0,u.default)({},Y,{isEnabled:F});return(0,u.default)({},e,{dimension:(0,u.default)({},e.dimension,{droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},R,B))})})}if(t.type==="MOVE"){var H=t.payload,U=H.client,z=H.windowScroll;return x({state:e,clientSelection:U,windowScroll:z})}if(t.type==="MOVE_BY_WINDOW_SCROLL"){var q=t.payload.windowScroll;if(!e.drag){console.error("cannot move with window scrolling if no current drag");return E()}return x({state:e,clientSelection:e.drag.current.client.selection,windowScroll:q})}if(t.type==="MOVE_FORWARD"||t.type==="MOVE_BACKWARD"){if(e.phase!=="DRAGGING"){console.error("cannot move while not dragging",t);return E()}if(!e.drag){console.error("cannot move if there is no drag information");return E()}var V=e.drag;var W=t.type==="MOVE_FORWARD";if(!V.impact.destination){console.error("cannot move if there is no previous destination");return E()}var K=e.dimension.droppable[V.impact.destination.droppableId];var G=(0,y.default)({isMovingForward:W,draggableId:V.current.id,impact:V.impact,droppable:K,draggables:e.dimension.draggable});if(!G){return e}var Q=G.impact;var J=G.pageCenter;var Z=(0,p.subtract)(J,V.current.windowScroll);return x({state:e,impact:Q,clientSelection:Z,shouldAnimate:true})}if(t.type==="CROSS_AXIS_MOVE_FORWARD"||t.type==="CROSS_AXIS_MOVE_BACKWARD"){if(e.phase!=="DRAGGING"){console.error("cannot move cross axis when not dragging");return E()}if(!e.drag){console.error("cannot move cross axis if there is no drag information");return E()}if(!e.drag.impact.destination){console.error("cannot move cross axis if not in a droppable");return E()}var X=e.drag.current;var $=X.id;var ee=X.page.center;var te=e.drag.impact.destination.droppableId;var re=e.drag.initial.source;var ne=(0,b.default)({isMovingForward:t.type==="CROSS_AXIS_MOVE_FORWARD",pageCenter:ee,draggableId:$,droppableId:te,home:re,draggables:e.dimension.draggable,droppables:e.dimension.droppable});if(!ne){return e}var ae=ne.pageCenter;var ie=(0,p.subtract)(ae,X.windowScroll);return x({state:e,clientSelection:ie,impact:ne.impact,shouldAnimate:true})}if(t.type==="DROP_ANIMATE"){var oe=t.payload,se=oe.trigger,ue=oe.newHomeOffset,le=oe.impact,ce=oe.result;if(e.phase!=="DRAGGING"){console.error("cannot animate drop while not dragging",t);return e}if(!e.drag){console.error("cannot animate drop - invalid drag state");return E()}var fe={trigger:se,newHomeOffset:ue,result:ce,impact:le};return{phase:"DROP_ANIMATING",drag:null,drop:{pending:fe,result:null},dimension:e.dimension}}if(t.type==="DROP_COMPLETE"){var de=t.payload;return{phase:"DROP_COMPLETE",drag:null,drop:{pending:null,result:de},dimension:_}}return e}},function(e,t,r){e.exports={default:r(578),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(116);var a=o(n);var i=r(312);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggable,r=e.droppable,n=e.draggables;var o=(0,a.default)(r,n);var s=o.indexOf(t);if(s===-1){console.error("lifting a draggable that is not inside a droppable");return null}var u={index:s,droppableId:r.id};var l={movement:i.noMovement,direction:r.axis.direction,destination:u};return l}},function(e,t,r){e.exports={default:r(594),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1161);var a=p(n);var i=r(116);var o=p(i);var s=r(312);var u=p(s);var l=r(1163);var c=p(l);var f=r(1164);var d=p(f);function p(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,r=e.draggable,n=e.draggables,i=e.droppables,s=e.previousDroppableOverId;var l=(0,a.default)({target:t,draggable:r,draggables:n,droppables:i,previousDroppableOverId:s});if(!l){return u.default}var f=i[l];if(!f.isEnabled){return u.default}var p=i[r.droppableId];var h=p.id===l;var v=(0,o.default)(f,n);if(h){return(0,c.default)({pageCenter:t,draggable:r,home:p,insideHome:v})}return(0,d.default)({pageCenter:t,draggable:r,destination:f,insideDestination:v})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(114);var a=y(n);var i=r(115);var o=y(i);var s=r(53);var u=y(s);var l=r(314);var c=r(315);var f=y(c);var d=r(116);var p=y(d);var h=r(164);var v=r(43);var m=r(207);function y(e){return e&&e.__esModule?e:{default:e}}var g={x:0,y:0};var b=function e(t){return function(e){return(0,l.getFragment)((0,f.default)((0,m.addPosition)(e,t)))}};var A=(0,u.default)((function(e,t){var r=t.id,n=t.axis,a=t.isEnabled,i=t.client,s=t.container,u=t.page;var l=b(e);var c={withoutMargin:l(i.withoutMargin),withMargin:l(i.withMargin),withMarginAndPadding:l(i.withMarginAndPadding)};var f={withoutMargin:l(u.withoutMargin),withMargin:l(u.withMargin),withMarginAndPadding:l(u.withMarginAndPadding)};var d=t.page.withMargin[t.axis.size]<=t.container.bounds[t.axis.size];var p=d?l(s.bounds):(0,o.default)({},s.bounds);return{id:r,axis:n,isEnabled:a,client:c,page:f,container:{scroll:s.scroll,bounds:p}}}));var _=(0,u.default)((function(e,t,r){var n=(0,p.default)(r,t);if(!n.length){return g}var a=r.page.withMargin[r.axis.end]-n[n.length-1].page.withMargin[r.axis.end];var i=Math.max(e.page.withMargin[r.axis.size]-a,0);var o=(0,v.patch)(r.axis.line,i);return o}));var w=function e(t){var r=t.draggable,n=t.draggables,a=t.droppable,i=t.previousDroppableOverId;var o=r.droppableId===a.id;var s=i&&i===a.id;if(o||!s){return a}var u=_(r,n,a);return A(u,a)};t.default=function(e){var t=e.target,r=e.draggable,n=e.draggables,i=e.droppables,o=e.previousDroppableOverId;var s=(0,a.default)(i).map((function(e){return i[e]})).find((function(e){var a=w({draggable:r,draggables:n,droppable:e,previousDroppableOverId:o});return(0,h.isPointWithinDroppable)(a)(t)}));return s?s.id:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.vertical={direction:"vertical",line:"y",crossLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"};var a=t.horizontal={direction:"horizontal",line:"x",crossLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);t.default=function(e){var t=e.pageCenter,r=e.draggable,a=e.home,i=e.insideHome;var o=a.axis;var s=(0,n.subtract)(a.container.scroll.current,a.container.scroll.initial);var u=(0,n.add)(t,s);var l=r.page.withoutMargin.center;var c=u[o.line]-l[o.line]>0;var f=i.filter((function(e){if(e===r){return false}var t=e.page.withoutMargin;if(c){if(t.center[o.line]<l[o.line]){return false}return u[o.line]>t[o.start]}if(l[o.line]<t.center[o.line]){return false}return u[o.line]<t[o.end]})).map((function(e){return e.id}));var d=c?f.reverse():f;var p=function(){var e=i.indexOf(r);if(!f.length){return e}if(c){return e+f.length}return e-f.length}();var h={amount:(0,n.patch)(o.line,r.page.withMargin[o.size]),draggables:d,isBeyondStartPosition:c};var v={movement:h,direction:o.direction,destination:{droppableId:a.id,index:p}};return v}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);t.default=function(e){var t=e.pageCenter,r=e.draggable,a=e.destination,i=e.insideDestination;var o=a.axis;var s=(0,n.subtract)(a.container.scroll.current,a.container.scroll.initial);var u=(0,n.add)(t,s);var l=i.filter((function(e){var t=e.page.withoutMargin[o.end];return t>u[o.line]})).map((function(e){return e.id}));var c=i.length-l.length;var f={amount:(0,n.patch)(o.line,r.page.withMargin[o.size]),draggables:l,isBeyondStartPosition:false};var d={movement:f,direction:o.direction,destination:{droppableId:a.id,index:c}};return d}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1166);var a=s(n);var i=r(1167);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggableId,r=e.draggables,n=e.droppable;var i=r[t];var s=i.droppableId===n.id;if(!n.isEnabled){return null}if(s){return(0,a.default)(e)}return(0,o.default)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(313);var a=p(n);var i=r(53);var o=p(i);var s=r(116);var u=p(s);var l=r(164);var c=r(43);var f=r(165);var d=p(f);function p(e){return e&&e.__esModule?e:{default:e}}var h=(0,o.default)((function(e,t){return e.indexOf(t)}));t.default=function(e){var t=e.isMovingForward,r=e.draggableId,n=e.impact,i=e.droppable,o=e.draggables;if(!n.destination){console.error("cannot move to next index when there is not previous destination");return null}var s=n.destination;var f=o[r];var p=i.axis;var v=(0,u.default)(i,o);var m=h(v,f);var y=s.index;var g=t?y+1:y-1;if(m===-1){console.error("could not find draggable inside current droppable");return null}if(g>v.length-1){return null}if(g<0){return null}var b=v[g];var A=t&&g<=m||!t&&g>=m;var _=function(){if(!A){return t?"end":"start"}return t?"start":"end"}();var w=(0,d.default)({source:f.page.withoutMargin,sourceEdge:_,destination:b.page.withoutMargin,destinationEdge:_,destinationAxis:i.axis});var E=(0,l.isPointWithinDroppable)(i)(w);if(!E){return null}var x=A?n.movement.draggables.slice(1,n.movement.draggables.length):[b.id].concat((0,a.default)(n.movement.draggables));var k={movement:{draggables:x,amount:(0,c.patch)(p.line,f.page.withMargin[p.size]),isBeyondStartPosition:g>m},destination:{droppableId:i.id,index:g},direction:i.axis.direction};var S={pageCenter:w,impact:k};return S}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(313);var a=f(n);var i=r(116);var o=f(i);var s=r(164);var u=r(43);var l=r(165);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.draggableId,n=e.impact,i=e.droppable,l=e.draggables;if(!n.destination){console.error("cannot move to next index when there is not previous destination");return null}var f=n.destination;var d=l[r];var p=i.axis;var h=(0,o.default)(i,l);var v=f.index;var m=t?v+1:v-1;var y=h.length-1;if(m>h.length){return null}if(m<0){return null}var g=h[Math.min(m,y)];var b=m>y;var A="start";var _=function(){if(b){return"end"}return"start"}();var w=(0,c.default)({source:d.page.withoutMargin,sourceEdge:A,destination:g.page.withMargin,destinationEdge:_,destinationAxis:i.axis});var E=function(){if(b){return true}return(0,s.isPointWithinDroppable)(i)(w)}();if(!E){return null}var x=t?n.movement.draggables.slice(1,n.movement.draggables.length):[g.id].concat((0,a.default)(n.movement.draggables));var k={movement:{draggables:x,amount:(0,u.patch)(p.line,d.page.withMargin[p.size]),isBeyondStartPosition:false},destination:{droppableId:i.id,index:m},direction:i.axis.direction};return{pageCenter:w,impact:k}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1169);var a=f(n);var i=r(1170);var o=f(i);var s=r(1171);var u=f(s);var l=r(116);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.pageCenter,n=e.draggableId,i=e.droppableId,s=e.home,l=e.draggables,f=e.droppables;var d=l[n];var p=f[i];var h=(0,a.default)({isMovingForward:t,pageCenter:r,source:p,droppables:f});if(!h){return null}var v=(0,c.default)(h,l);var m=(0,o.default)({axis:h.axis,pageCenter:r,destination:h,insideDestination:v});if(v.length&&!m){return null}return(0,u.default)({pageCenter:r,destination:h,draggable:d,target:m,insideDestination:v,home:s})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(114);var a=c(n);var i=r(43);var o=r(632);var s=c(o);var u=r(207);var l=r(164);function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.pageCenter,n=e.source,o=e.droppables;var c=n.axis;var f=(0,l.getVisibleBounds)(n);var d=(0,a.default)(o).map((function(e){return o[e]})).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).map((function(e){return{bounds:(0,l.getVisibleBounds)(e),droppable:e}})).filter((function(e){var r=e.bounds;if(t){return f[c.crossAxisEnd]<=r[c.crossAxisStart]}return r[c.crossAxisEnd]<=f[c.crossAxisStart]})).filter((function(e){var t=e.bounds;var r=(0,s.default)(f[c.start],f[c.end]);var n=(0,s.default)(t[c.start],t[c.end]);return r(t[c.start])||r(t[c.end])||n(f[c.start])||n(f[c.end])})).filter((function(e){var t=e.droppable;return t.page.withoutMargin[c.crossAxisStart]>=t.container.bounds[c.crossAxisStart]&&t.page.withoutMargin[c.crossAxisEnd]<=t.container.bounds[c.crossAxisEnd]})).sort((function(e,r){var n=e.bounds;var a=r.bounds;var i=n[c.crossAxisStart];var o=a[c.crossAxisStart];if(t){return i-o}return o-i})).filter((function(e,t,r){var n=e.bounds;return n[c.crossAxisStart]===r[0].bounds[c.crossAxisStart]}));if(!d.length){return null}if(d.length===1){return d[0].droppable}var p=d.filter((function(e){var t=e.bounds;var n=(0,s.default)(t[c.start],t[c.end]);return n(r[c.line])}));if(p.length===1){return p[0].droppable}if(p.length>1){return p.sort((function(e,t){var r=e.bounds;var n=t.bounds;return r[c.start]-n[c.start]}))[0].droppable}return d.sort((function(e,t){var n=e.bounds;var a=t.bounds;var o=(0,i.closest)(r,(0,u.getCorners)(n));var s=(0,i.closest)(r,(0,u.getCorners)(a));if(o!==s){return o-s}return n[c.start]-a[c.start]}))[0].droppable}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);var a=r(164);t.default=function(e){var t=e.axis,r=e.pageCenter,i=e.destination,o=e.insideDestination;if(!o.length){return null}var s=(0,a.isDraggableWithin)(i.container.bounds);var u=o.filter(s).sort((function(e,a){var i=(0,n.distance)(r,e.page.withMargin.center);var o=(0,n.distance)(r,a.page.withMargin.center);if(i<o){return-1}if(o<i){return 1}return e.page.withMargin[t.start]-a.page.withMargin[t.start]}));return u.length?u[0]:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1172);var a=u(n);var i=r(1173);var o=u(i);var s=r(43);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,r=e.destination,n=e.draggable,i=e.target,u=e.home,l=e.insideDestination;var c=(0,s.patch)(r.axis.line,n.page.withMargin[r.axis.size]);if(r.id===n.droppableId){return(0,a.default)({amount:c,originalIndex:u.index,target:i,insideDroppable:l,draggable:n,droppable:r})}return(0,o.default)({amount:c,pageCenter:t,target:i,insideDroppable:l,draggable:n,droppable:r})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,r=e.originalIndex,n=e.target,i=e.insideDroppable,o=e.draggable,s=e.droppable;if(!n){console.error("there will always be a target in the original list");return null}var u=s.axis;var l=i.indexOf(n);if(l===-1){console.error("unable to find target in destination droppable");return null}if(l===r){var c=o.page.withoutMargin.center;var f={movement:{draggables:[],amount:t,isBeyondStartPosition:false},direction:s.axis.direction,destination:{droppableId:s.id,index:r}};return{pageCenter:c,impact:f}}var d=l>r;var p=d?"end":"start";var h=(0,a.default)({source:o.page.withoutMargin,sourceEdge:p,destination:d?n.page.withoutMargin:n.page.withMargin,destinationEdge:p,destinationAxis:u});var v=function(){if(!d){return i.slice(l,r)}var e=r+1;var t=l+1;return i.slice(e,t).reverse()}().map((function(e){return e.id}));var m={movement:{draggables:v,amount:t,isBeyondStartPosition:d},direction:u.direction,destination:{droppableId:s.id,index:l}};return{pageCenter:h,impact:m}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,r=e.pageCenter,n=e.target,i=e.insideDroppable,o=e.draggable,s=e.droppable;var u=s.axis;var l=Boolean(n&&r[s.axis.line]<n.page.withMargin.center[s.axis.line]);if(!n){var c=(0,a.default)({source:o.page.withoutMargin,sourceEdge:"start",destination:s.page.withMarginAndPadding,destinationEdge:"start",destinationAxis:u});var f={movement:{draggables:[],amount:t,isBeyondStartPosition:false},direction:u.direction,destination:{droppableId:s.id,index:0}};return{pageCenter:c,impact:f}}var d=i.indexOf(n);var p=l?d:d+1;if(d===-1){console.error("could not find target inside destination");return null}var h=(0,a.default)({source:o.page.withoutMargin,sourceEdge:"start",destination:n.page.withMargin,destinationEdge:l?"start":"end",destinationAxis:u});var v=i.slice(p,i.length).map((function(e){return e.id}));var m={movement:{draggables:v,amount:t,isBeyondStartPosition:false},direction:u.direction,destination:{droppableId:s.id,index:p}};return{pageCenter:h,impact:m}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e,t,r){var n=e.onDragStart,a=e.onDragEnd;var i=t.phase;var o=r.phase;if(i===o){return}if(i==="DRAGGING"&&o!=="DRAGGING"){if(!n){return}if(!t.drag){console.error("cannot fire onDragStart hook without drag state",{current:t,previous:r});return}var s={draggableId:t.drag.current.id,type:t.drag.current.type,source:t.drag.initial.source};n(s);return}if(i==="DROP_COMPLETE"&&o!=="DROP_COMPLETE"){if(!t.drop||!t.drop.result){console.error("cannot fire onDragEnd hook without drag state",{current:t,previous:r});return}var u=t.drop.result,l=u.source,c=u.destination,f=u.draggableId,d=u.type;if(!c){a(t.drop.result);return}var p=l.droppableId!==c.droppableId||l.index!==c.index;if(p){a(t.drop.result);return}var h={draggableId:f,type:d,source:l,destination:null};a(h)}if(i==="IDLE"&&o==="DRAGGING"){if(!r.drag){console.error("cannot fire onDragEnd for cancel because cannot find previous drag");return}var v={draggableId:r.drag.current.id,type:r.drag.current.type,source:r.drag.initial.source,destination:null};a(v)}if(i==="IDLE"&&o==="DROP_ANIMATING"){if(!r.drop||!r.drop.pending){console.error("cannot fire onDragEnd for cancel because cannot find previous pending drop");return}var m={draggableId:r.drop.pending.result.draggableId,type:r.drop.pending.result.type,source:r.drop.pending.result.source,destination:null};a(m)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1176);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(217);var a=r(166);var i=r(53);var o=f(i);var s=r(117);var u=r(633);var l=r(1177);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=t.makeSelector=function e(){var t=function e(t,r){return r.droppableId};var r=function e(t,r){return r.isDropDisabled||false};var n=(0,o.default)((function(e,t){if(!t){return false}return t.droppableId===e}));var i=(0,o.default)((function(e,t){return{width:e,height:t}}));var s=(0,o.default)((function(e,t,r,n){if(!r){return null}if(r.droppableId!==e){return null}if(t.droppableId===r.droppableId){return null}if(!n){return null}var a=i(n.client.withoutMargin.width,n.client.withoutMargin.height);return a}));var l=(0,o.default)((function(e,t){return{isDraggingOver:e,placeholder:t}}));return(0,a.createSelector)([u.phaseSelector,u.dragSelector,u.draggingDraggableSelector,u.pendingDropSelector,t,r],(function(e,t,r,a,i,o){if(o){return l(false,null)}if(e==="DRAGGING"){if(!t){console.error("cannot determine dragging over as there is not drag");return l(false,null)}var u=n(i,t.impact.destination);var c=s(i,t.initial.source,t.impact.destination,r);return l(u,c)}if(e==="DROP_ANIMATING"){if(!a){console.error("cannot determine dragging over as there is no pending result");return l(false,null)}var f=n(i,a.impact.destination);var d=s(i,a.result.source,a.result.destination,r);return l(f,d)}return l(false,null)}))};var p=function e(){var t=d();return function(e,r){return t(e,r)}};t.default=(0,n.connect)(p,null,null,{storeKey:s.storeKey})(c.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(163);var a=x(n);var i=r(85);var o=x(i);var s=r(86);var u=x(s);var l=r(87);var c=x(l);var f=r(88);var d=x(f);var p=r(89);var h=x(p);var v=r(1);var m=x(v);var y=r(0);var g=x(y);var b=r(1178);var A=x(b);var _=r(635);var w=x(_);var E=r(117);function x(e){return e&&e.__esModule?e:{default:e}}var k=function(e){(0,h.default)(t,e);function t(){var e;var r,n,a;(0,u.default)(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++){s[l]=arguments[l]}return a=(r=(n=(0,d.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(s))),n),n.state={ref:null},n.setRef=function(e){if(e===null){return}if(e===n.state.ref){return}n.setState({ref:e})},r),(0,d.default)(n,a)}(0,c.default)(t,[{key:"getChildContext",value:function e(){var t=(0,a.default)({},E.droppableIdKey,this.props.droppableId);return t}},{key:"getPlaceholder",value:function e(){if(!this.props.placeholder){return null}return m.default.createElement(w.default,{height:this.props.placeholder.height,width:this.props.placeholder.width})}},{key:"render",value:function e(){var t=this.props,r=t.children,n=t.direction,a=t.droppableId,i=t.ignoreContainerClipping,o=t.isDraggingOver,s=t.isDropDisabled,u=t.type;var l={innerRef:this.setRef,placeholder:this.getPlaceholder()};var c={isDraggingOver:o};return m.default.createElement(A.default,{droppableId:a,direction:n,ignoreContainerClipping:i,isDropDisabled:s,type:u,targetRef:this.state.ref},r(l,c))}}]);return t}(v.Component);k.defaultProps={type:"DEFAULT",isDropDisabled:false,direction:"vertical",ignoreContainerClipping:false};k.childContextTypes=(0,a.default)({},E.droppableIdKey,g.default.string.isRequired);t.default=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1179);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(217);var a=r(166);var i=r(53);var o=f(i);var s=r(117);var u=r(1180);var l=f(u);var c=r(317);function f(e){return e&&e.__esModule?e:{default:e}}var d=function e(t){return t.dimension.request};var p=function e(t,r){return r.type};var h=t.makeSelector=function e(){var t=(0,o.default)((function(e){return{shouldPublish:e}}));return(0,a.createSelector)([p,d],(function(e,r){return t(e===r)}))};var v=function e(){var t=h();return function(e,r){return t(e,r)}};var m={publish:c.publishDroppableDimension,updateScroll:c.updateDroppableDimensionScroll,updateIsEnabled:c.updateDroppableDimensionIsEnabled};t.default=(0,n.connect)(v,m,null,{storeKey:s.storeKey})(l.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=O(n);var i=r(86);var o=O(i);var s=r(87);var u=O(s);var l=r(88);var c=O(l);var f=r(89);var d=O(f);var p=r(1);var h=r(9);var v=O(h);var m=r(634);var y=O(m);var g=r(53);var b=O(g);var A=r(316);var _=O(A);var w=r(315);var E=O(w);var x=r(314);var k=r(1181);var S=O(k);function O(e){return e&&e.__esModule?e:{default:e}}var M={x:0,y:0};var D=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.isWatchingScroll=false,n.closestScrollable=null,n.getScrollOffset=function(){if(!n.closestScrollable){return M}var e={x:n.closestScrollable.scrollLeft,y:n.closestScrollable.scrollTop};return e},n.getDimension=function(){var e=n.props,t=e.droppableId,r=e.direction,a=e.ignoreContainerClipping,i=e.isDropDisabled,o=e.targetRef;if(!o){throw new Error("DimensionPublisher cannot calculate a dimension when not attached to the DOM")}var s=n.getScrollOffset();var u=window.getComputedStyle(o);var l={top:parseInt(u.marginTop,10),right:parseInt(u.marginRight,10),bottom:parseInt(u.marginBottom,10),left:parseInt(u.marginLeft,10)};var c={top:parseInt(u.paddingTop,10),right:parseInt(u.paddingRight,10),bottom:parseInt(u.paddingBottom,10),left:parseInt(u.paddingLeft,10)};var f=o.getBoundingClientRect();var d=a||!n.closestScrollable||n.closestScrollable===o?f:(0,E.default)(n.closestScrollable.getBoundingClientRect());var p=(0,x.getDroppableDimension)({id:t,direction:r,clientRect:f,containerRect:d,margin:l,padding:c,windowScroll:(0,_.default)(),scroll:s,isEnabled:!i});return p},n.memoizedUpdateScroll=(0,b.default)((function(e,t){var r={x:e,y:t};n.props.updateScroll(n.props.droppableId,r)})),n.scheduleScrollUpdate=(0,y.default)((function(e){if(n.isWatchingScroll){n.memoizedUpdateScroll(e.x,e.y)}})),n.onClosestScroll=function(){n.scheduleScrollUpdate(n.getScrollOffset())},n.watchScroll=function(){(0,v.default)(n.props.targetRef,"cannot watch scroll if not in the dom");if(n.closestScrollable==null){return}if(n.isWatchingScroll){return}n.isWatchingScroll=true;n.closestScrollable.addEventListener("scroll",n.onClosestScroll,{passive:true})},n.unwatchScroll=function(){if(!n.isWatchingScroll){return}n.isWatchingScroll=false;if(!n.closestScrollable){console.error("cannot unbind event listener if element is null");return}n.closestScrollable.removeEventListener("scroll",n.onClosestScroll)},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillUnmount",value:function e(){if(this.isWatchingScroll){this.unwatchScroll()}}},{key:"componentWillReceiveProps",value:function e(t){var r=!this.props.shouldPublish&&t.shouldPublish;var n=this.props.shouldPublish&&t.shouldPublish;var a=this.props.shouldPublish&&!t.shouldPublish;if(a){this.unwatchScroll();return}if(n){if(t.targetRef!==this.props.targetRef){if(this.isWatchingScroll){console.warn("changing targetRef while watching scroll!");this.unwatchScroll()}}if(t.isDropDisabled!==this.props.isDropDisabled){this.props.updateIsEnabled(this.props.droppableId,!t.isDropDisabled)}return}if(!r){return}this.closestScrollable=(0,S.default)(this.props.targetRef);this.props.publish(this.getDimension());this.watchScroll()}},{key:"render",value:function e(){return this.props.children}}]);return t}(p.Component);t.default=D},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function e(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++){r[n]=arguments[n]}return r.some((function(e){return e==="auto"||e==="scroll"}))};var a=function e(t){var r=window.getComputedStyle(t);return n(r.overflow,r.overflowY,r.overflowX)};var i=function e(t){if(t==null){return null}if(!a(t)){return e(t.parentElement)}return t};t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=s(n);var i=r(116);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.movement,r=e.draggable,n=e.draggables,i=e.destination;var s=r.client.withMargin.center;if(i==null){return s}var u=t.draggables,l=t.isBeyondStartPosition;var c=i.axis;var f=i.id===r.droppableId;if(f&&!u.length){return s}var d=(0,o.default)(i,n);var p=function(){if(f){return n[u[0]].client.withMargin}if(u.length){return n[u[0]].client.withMargin}if(d.length){return d[d.length-1].client.withMargin}return i.client.withMarginAndPadding}();var h=function(){if(f){if(l){return{sourceEdge:"end",destinationEdge:"end"}}return{sourceEdge:"start",destinationEdge:"start"}}if(!u.length&&d.length){return{sourceEdge:"start",destinationEdge:"end"}}return{sourceEdge:"start",destinationEdge:"start"}}(),v=h.sourceEdge,m=h.destinationEdge;var y=r.client.withMargin;var g=(0,a.default)({source:y,sourceEdge:v,destination:p,destinationEdge:m,destinationAxis:c});return g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=v(n);var i=r(86);var o=v(i);var s=r(87);var u=v(s);var l=r(88);var c=v(l);var f=r(89);var d=v(f);var p=r(1);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}var m=function(e){(0,d.default)(t,e);function t(){(0,o.default)(this,t);return(0,c.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}(0,u.default)(t,[{key:"render",value:function e(){var t={width:this.props.width,height:this.props.height,pointerEvents:"none"};return h.default.createElement("div",{style:t})}}]);return t}(p.PureComponent);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1185);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(115);var a=v(n);var i=r(53);var o=v(i);var s=r(217);var u=r(166);var l=r(633);var c=r(1186);var f=v(c);var d=r(117);var p=r(43);var h=r(317);function v(e){return e&&e.__esModule?e:{default:e}}var m={x:0,y:0};var y={isDropAnimating:false,isDragging:false,canLift:true,canAnimate:false,offset:m,dimension:null,direction:null};var g=(0,a.default)({},y,{canLift:false});var b=t.makeSelector=function e(){var t=function e(t,r){return r.draggableId};var r=function e(t,r){return r.type||"DEFAULT"};var n=(0,o.default)((function(e,t){return{x:e,y:t}}));var a=(0,o.default)((function(e,t){return{isDropAnimating:false,isDragging:false,canAnimate:true,canLift:t,offset:e,dimension:null,direction:null}}));var i=(0,o.default)((function(e,t,r){var i=t.draggables.indexOf(e)!==-1;if(!i){return a(m,r)}var o=t.isBeyondStartPosition?(0,p.negate)(t.amount):t.amount;return a(n(o.x,o.y),r)}));var s=function e(t,r){if(!t.dimension){return null}var n=t.dimension.draggable[r.draggableId];if(!n){return null}return n};return(0,u.createSelector)([t,r,l.phaseSelector,l.dragSelector,l.pendingDropSelector,s],(function(e,t,r,n,a,o){if(r==="DRAGGING"){if(!n){console.error("invalid dragging state");return y}var s=n.current,u=n.impact;if(s.type!==t){return y}if(s.id!==e){return i(e,u.movement,false)}var l=s.client.offset;var c=s.shouldAnimate;return{isDragging:true,canLift:false,isDropAnimating:false,canAnimate:c,offset:l,dimension:o,direction:u.direction}}if(r==="DROP_ANIMATING"){if(!a){console.error("cannot animate drop without a pending drop");return y}if(t!==a.result.type){return y}if(a.result.draggableId!==e){var f=a.trigger==="DROP";return i(e,a.impact.movement,f)}return{isDragging:false,isDropAnimating:true,canAnimate:true,offset:a.newHomeOffset,canLift:false,dimension:o,direction:null}}if(r==="PREPARING"||r==="COLLECTING_DIMENSIONS"){return g}return y}))};var A=function e(){var t=b();return function(e,r){return t(e,r)}};var _={lift:h.lift,move:h.move,moveForward:h.moveForward,moveBackward:h.moveBackward,crossAxisMoveForward:h.crossAxisMoveForward,crossAxisMoveBackward:h.crossAxisMoveBackward,moveByWindowScroll:h.moveByWindowScroll,drop:h.drop,dropAnimationFinished:h.dropAnimationFinished,cancel:h.cancel};t.default=(0,s.connect)(A,_,null,{storeKey:d.storeKey})(f.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.zIndexOptions=undefined;var n=r(163);var a=R(n);var i=r(85);var o=R(i);var s=r(86);var u=R(s);var l=r(87);var c=R(l);var f=r(88);var d=R(f);var p=r(89);var h=R(p);var v=r(1);var m=R(v);var y=r(0);var g=R(y);var b=r(53);var A=R(b);var _=r(9);var w=R(_);var E=r(1187);var x=R(E);var k=r(1190);var S=R(k);var O=r(1200);var M=R(O);var D=r(637);var T=r(316);var L=R(T);var C=r(640);var j=R(C);var N=r(635);var I=R(N);var P=r(117);function R(e){return e&&e.__esModule?e:{default:e}}var F=t.zIndexOptions={dragging:5e3,dropAnimating:4500};var Y=function(e){(0,h.default)(t,e);function t(e,r){(0,u.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,r));n.state={ref:null};n.onMoveEnd=function(){if(!n.props.isDropAnimating){return}n.props.dropAnimationFinished()};n.onLift=function(e){n.throwIfCannotDrag();var t=e.client,r=e.isScrollAllowed;var a=n.props,i=a.lift,o=a.draggableId,s=a.type;var u=n.state.ref;if(!u){throw new Error("cannot lift at this time")}var l={selection:t,center:(0,j.default)(u)};var c=(0,L.default)();i(o,s,l,c,r)};n.onMove=function(e){n.throwIfCannotDrag();var t=n.props,r=t.draggableId,a=t.dimension,i=t.move;if(!a){return}var o=(0,L.default)();i(r,e,o)};n.onMoveForward=function(){n.throwIfCannotDrag();n.props.moveForward(n.props.draggableId)};n.onMoveBackward=function(){n.throwIfCannotDrag();n.props.moveBackward(n.props.draggableId)};n.onCrossAxisMoveForward=function(){n.throwIfCannotDrag();n.props.crossAxisMoveForward(n.props.draggableId)};n.onCrossAxisMoveBackward=function(){n.throwIfCannotDrag();n.props.crossAxisMoveBackward(n.props.draggableId)};n.onWindowScroll=function(){n.throwIfCannotDrag();var e=(0,L.default)();n.props.moveByWindowScroll(n.props.draggableId,e)};n.onDrop=function(){n.throwIfCannotDrag();n.props.drop()};n.onCancel=function(){n.props.cancel()};n.setRef=function(e){if(e===null){return}if(e===n.state.ref){return}n.setState({ref:e})};n.getDraggableRef=function(){return n.state.ref};n.getDraggingStyle=(0,A.default)((function(e,t,r,n,a,i){var o={position:"fixed",boxSizing:"border-box",pointerEvents:"none",zIndex:a?F.dropAnimating:F.dragging,width:e,height:t,top:r,left:n,margin:0,transform:i.transform?""+i.transform:null,WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",touchAction:"none"};return o}));n.getNotDraggingStyle=(0,A.default)((function(e,t,r){var n={transition:e?D.css.outOfTheWay:null,transform:t.transform,pointerEvents:r?"auto":"none",WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",touchAction:"none"};return n}));n.getProvided=(0,A.default)((function(e,t,r,a,i,o,s){var u=e||t;var l=function(){if(!u){return n.getNotDraggingStyle(a,s,r)}(0,w.default)(i,"draggable dimension required for dragging");var e=i.client.withoutMargin,o=e.width,l=e.height,c=e.top,f=e.left;return n.getDraggingStyle(o,l,c,f,t,s)}();var c={innerRef:n.setRef,placeholder:u?n.getPlaceholder():null,dragHandleProps:o,draggableStyle:l};return c}));n.getSnapshot=(0,A.default)((function(e,t){return{isDragging:e||t}}));n.getSpeed=(0,A.default)((function(e,t,r){if(!r){return"INSTANT"}if(t){return"STANDARD"}if(e){return"FAST"}return"INSTANT"}));var a={onLift:n.onLift,onMove:n.onMove,onDrop:n.onDrop,onCancel:n.onCancel,onMoveBackward:n.onMoveBackward,onMoveForward:n.onMoveForward,onCrossAxisMoveForward:n.onCrossAxisMoveForward,onCrossAxisMoveBackward:n.onCrossAxisMoveBackward,onWindowScroll:n.onWindowScroll};n.callbacks=a;return n}(0,c.default)(t,[{key:"throwIfCannotDrag",value:function e(){(0,w.default)(this.state.ref,"Draggable: cannot drag as no DOM node has been provided");(0,w.default)(!this.props.isDragDisabled,"Draggable: cannot drag as dragging is not enabled")}},{key:"getPlaceholder",value:function e(){var t=this.props.dimension;(0,w.default)(t,"cannot get a drag placeholder when not dragging");return m.default.createElement(I.default,{height:t.page.withMargin.height,width:t.page.withMargin.width})}},{key:"render",value:function e(){var t=this;var r=this.props,n=r.draggableId,a=r.type,i=r.offset,o=r.isDragging,s=r.isDropAnimating,u=r.canLift,l=r.canAnimate,c=r.isDragDisabled,f=r.dimension,d=r.children,p=r.direction;var h=this.getSpeed(o,s,l);return m.default.createElement(x.default,{draggableId:n,droppableId:this.context[P.droppableIdKey],type:a,targetRef:this.state.ref},m.default.createElement(S.default,{speed:h,destination:i,onMoveEnd:this.onMoveEnd},(function(e){return m.default.createElement(M.default,{isDragging:o,direction:p,isEnabled:!c,canLift:u,callbacks:t.callbacks,getDraggableRef:t.getDraggableRef},(function(r){return d(t.getProvided(o,s,u,l,f,r,e),t.getSnapshot(o,s))}))})))}}]);return t}(v.Component);Y.defaultProps={isDragDisabled:false,type:"DEFAULT"};Y.contextTypes=(0,a.default)({},P.droppableIdKey,g.default.string.isRequired);t.default=Y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1188);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(217);var a=r(53);var i=f(a);var o=r(166);var s=r(117);var u=r(317);var l=r(1189);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=function e(t){return t.dimension.request};var p=function e(t,r){return r.type};var h=t.makeSelector=function e(){var t=(0,i.default)((function(e){return{shouldPublish:e}}));return(0,o.createSelector)([p,d],(function(e,r){return t(e===r)}))};var v=function e(){var t=h();return function(e,r){return t(e,r)}};var m={publish:u.publishDraggableDimension};t.default=(0,n.connect)(v,m,null,{storeKey:s.storeKey})(c.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=b(n);var i=r(86);var o=b(i);var s=r(87);var u=b(s);var l=r(88);var c=b(l);var f=r(89);var d=b(f);var p=r(1);var h=r(9);var v=b(h);var m=r(316);var y=b(m);var g=r(314);function b(e){return e&&e.__esModule?e:{default:e}}var A=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.getDimension=function(){var e=n.props,t=e.draggableId,r=e.droppableId,a=e.targetRef;(0,v.default)(a,"DraggableDimensionPublisher cannot calculate a dimension when not attached to the DOM");var i=window.getComputedStyle(a);var o={top:parseInt(i.marginTop,10),right:parseInt(i.marginRight,10),bottom:parseInt(i.marginBottom,10),left:parseInt(i.marginLeft,10)};var s=a.getBoundingClientRect();var u=(0,g.getDraggableDimension)({id:t,droppableId:r,clientRect:s,margin:o,windowScroll:(0,y.default)()});return u},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillReceiveProps",value:function e(t){var r=!this.props.shouldPublish&&t.shouldPublish;if(r){this.props.publish(this.getDimension())}}},{key:"render",value:function e(){return this.props.children}}]);return t}(p.Component);t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1191);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=y(n);var i=r(86);var o=y(i);var s=r(87);var u=y(s);var l=r(88);var c=y(l);var f=r(89);var d=y(f);var p=r(1);var h=y(p);var v=r(1192);var m=r(637);function y(e){return e&&e.__esModule?e:{default:e}}var g={x:0,y:0};var b={transform:null};var A=function e(t){return t.x===g.x&&t.y===g.y};var _=function e(t,r,n){if(t){return b}var a={x:r,y:n};if(A(a)){return b}var i={transform:"translate("+a.x+"px, "+a.y+"px)"};return i};var w=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.onRest=function(){var e=n.props.onMoveEnd;if(!e){return}setTimeout((function(){return e()}))},n.getFinal=function(){var e=n.props.destination;var t=n.props.speed;if(t==="INSTANT"){return e}var r=t==="FAST"?m.physics.fast:m.physics.standard;return{x:(0,v.spring)(e.x,r),y:(0,v.spring)(e.y,r)}},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"render",value:function e(){var t=this;var r=this.getFinal();var n=A(r);return h.default.createElement(v.Motion,{defaultStyle:g,style:r,onRest:this.onRest},(function(e){return t.props.children(_(n,e.x,e.y))}))}}]);return t}(p.Component);w.defaultProps={destination:g};t.default=w},function(e,t,r){"use strict";t.__esModule=true;function n(e){return e&&e.__esModule?e["default"]:e}var a=r(1193);t.Motion=n(a);var i=r(1195);t.StaggeredMotion=n(i);var o=r(1196);t.TransitionMotion=n(o);var s=r(1198);t.spring=n(s);var u=r(636);t.presets=n(u);var l=r(208);t.stripStyle=n(l);var c=r(1199);t.reorderKeys=n(c)},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(318);var l=i(u);var c=r(208);var f=i(c);var d=r(319);var p=i(d);var h=r(320);var v=i(h);var m=r(63);var y=i(m);var g=r(321);var b=i(g);var A=r(1);var _=i(A);var w=r(0);var E=i(w);var x=1e3/60;var k=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyle:E["default"].objectOf(E["default"].number),style:E["default"].objectOf(E["default"].oneOfType([E["default"].number,E["default"].object])).isRequired,children:E["default"].func.isRequired,onRest:E["default"].func},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.wasAnimating=false;this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyle=null;this.clearUnreadPropStyle=function(e){var t=false;var r=a.state;var i=r.currentStyle;var o=r.currentVelocity;var s=r.lastIdealStyle;var u=r.lastIdealVelocity;for(var l in e){if(!Object.prototype.hasOwnProperty.call(e,l)){continue}var c=e[l];if(typeof c==="number"){if(!t){t=true;i=n({},i);o=n({},o);s=n({},s);u=n({},u)}i[l]=c;o[l]=0;s[l]=c;u[l]=0}}if(t){a.setState({currentStyle:i,currentVelocity:o,lastIdealStyle:s,lastIdealVelocity:u})}};this.startAnimationIfNecessary=function(){a.animationID=y["default"]((function(e){var t=a.props.style;if(b["default"](a.state.currentStyle,t,a.state.currentVelocity)){if(a.wasAnimating&&a.props.onRest){a.props.onRest()}a.animationID=null;a.wasAnimating=false;a.accumulatedTime=0;return}a.wasAnimating=true;var r=e||v["default"]();var n=r-a.prevTime;a.prevTime=r;a.accumulatedTime=a.accumulatedTime+n;if(a.accumulatedTime>x*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var i=(a.accumulatedTime-Math.floor(a.accumulatedTime/x)*x)/x;var o=Math.floor(a.accumulatedTime/x);var s={};var u={};var l={};var c={};for(var f in t){if(!Object.prototype.hasOwnProperty.call(t,f)){continue}var d=t[f];if(typeof d==="number"){l[f]=d;c[f]=0;s[f]=d;u[f]=0}else{var h=a.state.lastIdealStyle[f];var m=a.state.lastIdealVelocity[f];for(var y=0;y<o;y++){var g=p["default"](x/1e3,h,m,d.val,d.stiffness,d.damping,d.precision);h=g[0];m=g[1]}var A=p["default"](x/1e3,h,m,d.val,d.stiffness,d.damping,d.precision);var _=A[0];var w=A[1];l[f]=h+(_-h)*i;c[f]=m+(w-m)*i;s[f]=h;u[f]=m}}a.animationID=null;a.accumulatedTime-=o*x;a.setState({currentStyle:l,currentVelocity:c,lastIdealStyle:s,lastIdealVelocity:u});a.unreadPropStyle=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyle;var n=t.style;var a=r||f["default"](n);var i=l["default"](a);return{currentStyle:a,currentVelocity:i,lastIdealStyle:a,lastIdealVelocity:i}};t.prototype.componentDidMount=function e(){this.prevTime=v["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyle!=null){this.clearUnreadPropStyle(this.unreadPropStyle)}this.unreadPropStyle=t.style;if(this.animationID==null){this.prevTime=v["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){if(this.animationID!=null){y["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=this.props.children(this.state.currentStyle);return t&&_["default"].Children.only(t)};return t}(_["default"].Component);t["default"]=k;e.exports=t["default"]},function(e,t,r){(function(t){(function(){var r,n,a,i,o,s;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof t!=="undefined"&&t!==null&&t.hrtime){e.exports=function(){return(r()-o)/1e6};n=t.hrtime;r=function(){var e;e=n();return e[0]*1e9+e[1]};i=r();s=t.uptime()*1e9;o=i-s}else if(Date.now){e.exports=function(){return Date.now()-a};a=Date.now()}else{e.exports=function(){return(new Date).getTime()-a};a=(new Date).getTime()}}).call(this)}).call(this,r(126))},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(318);var l=i(u);var c=r(208);var f=i(c);var d=r(319);var p=i(d);var h=r(320);var v=i(h);var m=r(63);var y=i(m);var g=r(321);var b=i(g);var A=r(1);var _=i(A);var w=r(0);var E=i(w);var x=1e3/60;function k(e,t,r){for(var n=0;n<e.length;n++){if(!b["default"](e[n],t[n],r[n])){return false}}return true}var S=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyles:E["default"].arrayOf(E["default"].objectOf(E["default"].number)),styles:E["default"].func.isRequired,children:E["default"].func.isRequired},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyles=null;this.clearUnreadPropStyle=function(e){var t=a.state;var r=t.currentStyles;var i=t.currentVelocities;var o=t.lastIdealStyles;var s=t.lastIdealVelocities;var u=false;for(var l=0;l<e.length;l++){var c=e[l];var f=false;for(var d in c){if(!Object.prototype.hasOwnProperty.call(c,d)){continue}var p=c[d];if(typeof p==="number"){if(!f){f=true;u=true;r[l]=n({},r[l]);i[l]=n({},i[l]);o[l]=n({},o[l]);s[l]=n({},s[l])}r[l][d]=p;i[l][d]=0;o[l][d]=p;s[l][d]=0}}}if(u){a.setState({currentStyles:r,currentVelocities:i,lastIdealStyles:o,lastIdealVelocities:s})}};this.startAnimationIfNecessary=function(){a.animationID=y["default"]((function(e){var t=a.props.styles(a.state.lastIdealStyles);if(k(a.state.currentStyles,t,a.state.currentVelocities)){a.animationID=null;a.accumulatedTime=0;return}var r=e||v["default"]();var n=r-a.prevTime;a.prevTime=r;a.accumulatedTime=a.accumulatedTime+n;if(a.accumulatedTime>x*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var i=(a.accumulatedTime-Math.floor(a.accumulatedTime/x)*x)/x;var o=Math.floor(a.accumulatedTime/x);var s=[];var u=[];var l=[];var c=[];for(var f=0;f<t.length;f++){var d=t[f];var h={};var m={};var y={};var g={};for(var b in d){if(!Object.prototype.hasOwnProperty.call(d,b)){continue}var A=d[b];if(typeof A==="number"){h[b]=A;m[b]=0;y[b]=A;g[b]=0}else{var _=a.state.lastIdealStyles[f][b];var w=a.state.lastIdealVelocities[f][b];for(var E=0;E<o;E++){var S=p["default"](x/1e3,_,w,A.val,A.stiffness,A.damping,A.precision);_=S[0];w=S[1]}var O=p["default"](x/1e3,_,w,A.val,A.stiffness,A.damping,A.precision);var M=O[0];var D=O[1];h[b]=_+(M-_)*i;m[b]=w+(D-w)*i;y[b]=_;g[b]=w}}l[f]=h;c[f]=m;s[f]=y;u[f]=g}a.animationID=null;a.accumulatedTime-=o*x;a.setState({currentStyles:l,currentVelocities:c,lastIdealStyles:s,lastIdealVelocities:u});a.unreadPropStyles=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyles;var n=t.styles;var a=r||n().map(f["default"]);var i=a.map((function(e){return l["default"](e)}));return{currentStyles:a,currentVelocities:i,lastIdealStyles:a,lastIdealVelocities:i}};t.prototype.componentDidMount=function e(){this.prevTime=v["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyles!=null){this.clearUnreadPropStyle(this.unreadPropStyles)}this.unreadPropStyles=t.styles(this.state.lastIdealStyles);if(this.animationID==null){this.prevTime=v["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){if(this.animationID!=null){y["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=this.props.children(this.state.currentStyles);return t&&_["default"].Children.only(t)};return t}(_["default"].Component);t["default"]=S;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(318);var l=i(u);var c=r(208);var f=i(c);var d=r(319);var p=i(d);var h=r(1197);var v=i(h);var m=r(320);var y=i(m);var g=r(63);var b=i(g);var A=r(321);var _=i(A);var w=r(1);var E=i(w);var x=r(0);var k=i(x);var S=1e3/60;function O(e,t,r){var n=t;if(n==null){return e.map((function(e,t){return{key:e.key,data:e.data,style:r[t]}}))}return e.map((function(e,t){for(var a=0;a<n.length;a++){if(n[a].key===e.key){return{key:n[a].key,data:n[a].data,style:r[t]}}}return{key:e.key,data:e.data,style:r[t]}}))}function M(e,t,r,n){if(n.length!==t.length){return false}for(var a=0;a<n.length;a++){if(n[a].key!==t[a].key){return false}}for(var a=0;a<n.length;a++){if(!_["default"](e[a],t[a].style,r[a])){return false}}return true}function D(e,t,r,n,a,i,o,s,u){var c=v["default"](n,a,(function(e,n){var a=t(n);if(a==null){r({key:n.key,data:n.data});return null}if(_["default"](i[e],a,o[e])){r({key:n.key,data:n.data});return null}return{key:n.key,data:n.data,style:a}}));var f=[];var d=[];var p=[];var h=[];for(var m=0;m<c.length;m++){var y=c[m];var g=null;for(var b=0;b<n.length;b++){if(n[b].key===y.key){g=b;break}}if(g==null){var A=e(y);f[m]=A;p[m]=A;var w=l["default"](y.style);d[m]=w;h[m]=w}else{f[m]=i[g];p[m]=s[g];d[m]=o[g];h[m]=u[g]}}return[c,f,d,p,h]}var T=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyles:k["default"].arrayOf(k["default"].shape({key:k["default"].string.isRequired,data:k["default"].any,style:k["default"].objectOf(k["default"].number).isRequired})),styles:k["default"].oneOfType([k["default"].func,k["default"].arrayOf(k["default"].shape({key:k["default"].string.isRequired,data:k["default"].any,style:k["default"].objectOf(k["default"].oneOfType([k["default"].number,k["default"].object])).isRequired}))]).isRequired,children:k["default"].func.isRequired,willEnter:k["default"].func,willLeave:k["default"].func,didLeave:k["default"].func},enumerable:true},{key:"defaultProps",value:{willEnter:function e(t){return f["default"](t.style)},willLeave:function e(){return null},didLeave:function e(){}},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.unmounting=false;this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyles=null;this.clearUnreadPropStyle=function(e){var t=D(a.props.willEnter,a.props.willLeave,a.props.didLeave,a.state.mergedPropsStyles,e,a.state.currentStyles,a.state.currentVelocities,a.state.lastIdealStyles,a.state.lastIdealVelocities);var r=t[0];var i=t[1];var o=t[2];var s=t[3];var u=t[4];for(var l=0;l<e.length;l++){var c=e[l].style;var f=false;for(var d in c){if(!Object.prototype.hasOwnProperty.call(c,d)){continue}var p=c[d];if(typeof p==="number"){if(!f){f=true;i[l]=n({},i[l]);o[l]=n({},o[l]);s[l]=n({},s[l]);u[l]=n({},u[l]);r[l]={key:r[l].key,data:r[l].data,style:n({},r[l].style)}}i[l][d]=p;o[l][d]=0;s[l][d]=p;u[l][d]=0;r[l].style[d]=p}}}a.setState({currentStyles:i,currentVelocities:o,mergedPropsStyles:r,lastIdealStyles:s,lastIdealVelocities:u})};this.startAnimationIfNecessary=function(){if(a.unmounting){return}a.animationID=b["default"]((function(e){if(a.unmounting){return}var t=a.props.styles;var r=typeof t==="function"?t(O(a.state.mergedPropsStyles,a.unreadPropStyles,a.state.lastIdealStyles)):t;if(M(a.state.currentStyles,r,a.state.currentVelocities,a.state.mergedPropsStyles)){a.animationID=null;a.accumulatedTime=0;return}var n=e||y["default"]();var i=n-a.prevTime;a.prevTime=n;a.accumulatedTime=a.accumulatedTime+i;if(a.accumulatedTime>S*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var o=(a.accumulatedTime-Math.floor(a.accumulatedTime/S)*S)/S;var s=Math.floor(a.accumulatedTime/S);var u=D(a.props.willEnter,a.props.willLeave,a.props.didLeave,a.state.mergedPropsStyles,r,a.state.currentStyles,a.state.currentVelocities,a.state.lastIdealStyles,a.state.lastIdealVelocities);var l=u[0];var c=u[1];var f=u[2];var d=u[3];var h=u[4];for(var v=0;v<l.length;v++){var m=l[v].style;var g={};var b={};var A={};var _={};for(var w in m){if(!Object.prototype.hasOwnProperty.call(m,w)){continue}var E=m[w];if(typeof E==="number"){g[w]=E;b[w]=0;A[w]=E;_[w]=0}else{var x=d[v][w];var k=h[v][w];for(var T=0;T<s;T++){var L=p["default"](S/1e3,x,k,E.val,E.stiffness,E.damping,E.precision);x=L[0];k=L[1]}var C=p["default"](S/1e3,x,k,E.val,E.stiffness,E.damping,E.precision);var j=C[0];var N=C[1];g[w]=x+(j-x)*o;b[w]=k+(N-k)*o;A[w]=x;_[w]=k}}d[v]=A;h[v]=_;c[v]=g;f[v]=b}a.animationID=null;a.accumulatedTime-=s*S;a.setState({currentStyles:c,currentVelocities:f,lastIdealStyles:d,lastIdealVelocities:h,mergedPropsStyles:l});a.unreadPropStyles=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyles;var n=t.styles;var a=t.willEnter;var i=t.willLeave;var o=t.didLeave;var s=typeof n==="function"?n(r):n;var u=undefined;if(r==null){u=s}else{u=r.map((function(e){for(var t=0;t<s.length;t++){if(s[t].key===e.key){return s[t]}}return e}))}var c=r==null?s.map((function(e){return f["default"](e.style)})):r.map((function(e){return f["default"](e.style)}));var d=r==null?s.map((function(e){return l["default"](e.style)})):r.map((function(e){return l["default"](e.style)}));var p=D(a,i,o,u,s,c,d,c,d);var h=p[0];var v=p[1];var m=p[2];var y=p[3];var g=p[4];return{currentStyles:v,currentVelocities:m,lastIdealStyles:y,lastIdealVelocities:g,mergedPropsStyles:h}};t.prototype.componentDidMount=function e(){this.prevTime=y["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyles){this.clearUnreadPropStyle(this.unreadPropStyles)}var r=t.styles;if(typeof r==="function"){this.unreadPropStyles=r(O(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles))}else{this.unreadPropStyles=r}if(this.animationID==null){this.prevTime=y["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){this.unmounting=true;if(this.animationID!=null){b["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=O(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles);var r=this.props.children(t);return r&&E["default"].Children.only(r)};return t}(E["default"].Component);t["default"]=T;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e,t,r){var n={};for(var a=0;a<e.length;a++){n[e[a].key]=a}var i={};for(var a=0;a<t.length;a++){i[t[a].key]=a}var o=[];for(var a=0;a<t.length;a++){o[a]=t[a]}for(var a=0;a<e.length;a++){if(!Object.prototype.hasOwnProperty.call(i,e[a].key)){var s=r(a,e[a]);if(s!=null){o.push(s)}}}return o.sort((function(e,r){var a=i[e.key];var o=i[r.key];var s=n[e.key];var u=n[r.key];if(a!=null&&o!=null){return i[e.key]-i[r.key]}else if(s!=null&&u!=null){return n[e.key]-n[r.key]}else if(a!=null){for(var l=0;l<t.length;l++){var c=t[l].key;if(!Object.prototype.hasOwnProperty.call(n,c)){continue}if(a<i[c]&&u>n[c]){return-1}else if(a>i[c]&&u<n[c]){return 1}}return 1}for(var l=0;l<t.length;l++){var c=t[l].key;if(!Object.prototype.hasOwnProperty.call(n,c)){continue}if(o<i[c]&&s>n[c]){return 1}else if(o>i[c]&&s<n[c]){return-1}}return-1}))}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};t["default"]=u;function a(e){return e&&e.__esModule?e:{default:e}}var i=r(636);var o=a(i);var s=n({},o["default"].noWobble,{precision:.01});function u(e,t){return n({},s,t,{val:e})}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=a;var n=false;function a(){if(false){}}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1201);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=w(n);var i=r(86);var o=w(i);var s=r(87);var u=w(s);var l=r(88);var c=w(l);var f=r(89);var d=w(f);var p=r(1);var h=r(53);var v=w(h);var m=r(1202);var y=w(m);var g=r(1203);var b=w(g);var A=r(1204);var _=w(A);function w(e){return e&&e.__esModule?e:{default:e}}var E=function e(){return false};var x=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.mouseSensor=(0,y.default)(n.props.callbacks,n.props.getDraggableRef),n.keyboardSensor=(0,b.default)(n.props.callbacks,n.props.getDraggableRef),n.touchSensor=(0,_.default)(n.props.callbacks,n.props.getDraggableRef),n.sensors=[n.mouseSensor,n.keyboardSensor,n.touchSensor],n.onKeyDown=function(e){if(n.mouseSensor.isCapturing()){return}n.keyboardSensor.onKeyDown(e,n.props)},n.onMouseDown=function(e){if(n.keyboardSensor.isCapturing()){return}n.mouseSensor.onMouseDown(e,n.props)},n.onTouchStart=function(e){if(n.mouseSensor.isCapturing()||n.keyboardSensor.isCapturing()){console.error("mouse or keyboard already listening when attempting to touch drag");return}n.touchSensor.onTouchStart(e,n.props)},n.onTouchMove=function(e){n.touchSensor.onTouchMove(e)},n.onClick=function(e){n.mouseSensor.onClick(e);n.touchSensor.onClick(e)},n.isAnySensorDragging=function(){return n.sensors.some((function(e){return e.isDragging()}))},n.isAnySensorCapturing=function(){return n.sensors.some((function(e){return e.isCapturing()}))},n.getProvided=(0,v.default)((function(e,t){if(!e){return null}var r={onMouseDown:n.onMouseDown,onKeyDown:n.onKeyDown,onTouchStart:n.onTouchStart,onTouchMove:n.onTouchMove,onClick:n.onClick,tabIndex:0,"aria-grabbed":t,draggable:false,onDragStart:E,onDrop:E};return r})),r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillUnmount",value:function e(){var t=this;this.sensors.forEach((function(e){var r=e.isCapturing();var n=e.isDragging();if(r){e.kill()}if(n){t.props.callbacks.onCancel()}}))}},{key:"componentWillReceiveProps",value:function e(t){var r=this;var n=this.isAnySensorCapturing();if(!n){return}var a=this.props.isDragging&&!t.isDragging;if(a){this.sensors.forEach((function(e){if(e.isCapturing()){e.kill()}}));return}if(!t.isEnabled){this.sensors.forEach((function(e){if(e.isCapturing()){var t=e.isDragging();e.kill();if(t){r.props.callbacks.onCancel()}}}))}}},{key:"render",value:function e(){var t=this.props,r=t.children,n=t.isEnabled;return r(this.getProvided(n,this.isAnySensorDragging()))}}]);return t}(p.Component);t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(114);var a=A(n);var i=r(115);var o=A(i);var s=r(209);var u=A(s);var l=r(322);var c=A(l);var f=r(638);var d=A(f);var p=r(323);var h=A(p);var v=r(324);var m=b(v);var y=r(639);var g=A(y);function b(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function A(e){return e&&e.__esModule?e:{default:e}}var _=0;var w=function e(){};t.default=function(e,t){var r={isDragging:false,pending:null,preventClick:false};var n=function e(t){var n=(0,o.default)({},r,t);r=n};var i=function e(){return r.isDragging};var s=function e(){return Boolean(r.pending||r.isDragging)};var l=(0,c.default)(e,i);var f=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;n({pending:null,isDragging:true,preventClick:true});t()};var p=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;S();n({isDragging:false,pending:null});t()};var v=function e(t){n({pending:t,isDragging:false});k()};var y=function e(){n({preventClick:false});p()};var b=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;if(r.pending){y();return}p(t)};var A=function t(){b(e.onCancel)};var E={mousemove:function t(n){var a=n.button,i=n.clientX,o=n.clientY;if(a!==_){return}var s={x:i,y:o};if(r.isDragging){l.move(s);return}if(!r.pending){console.error("invalid state");return}if(!(0,d.default)(r.pending,s)){return}f((function(){return e.onLift({client:s,isScrollAllowed:true})}))},mouseup:function t(){if(r.pending){y();return}p(e.onDrop)},mousedown:function t(){p(e.onCancel)},keydown:function e(t){if(t.keyCode===m.escape){(0,u.default)(t);A();return}(0,g.default)(t)},resize:A,scroll:function e(){if(r.pending){y();return}l.windowScrollMove()},webkitmouseforcechanged:function e(t){if(t.webkitForce==null||MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN==null){console.error("handling a mouse force changed event when it is not supported");return}var r=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN;var n=t.webkitForce>=r;if(n){A()}}};var x=(0,a.default)(E);var k=function e(){var r=(0,h.default)(t());x.forEach((function(e){if(e==="scroll"){r.addEventListener(e,E.scroll,{passive:true});return}r.addEventListener(e,E[e])}))};var S=function e(){var r=(0,h.default)(t());x.forEach((function(e){return r.removeEventListener(e,E[e])}))};var O=function e(t,r){if(!r.canLift){return}if(s()){console.error("should not be able to perform a mouse down while a drag or pending drag is occurring");A();return}var n=t.button,a=t.clientX,i=t.clientY;if(n!==_){return}(0,u.default)(t);var o={x:a,y:i};v(o)};var M=function e(t){if(!r.preventClick){return}n({preventClick:false});(0,u.default)(t)};var D={onMouseDown:O,onClick:M,kill:b,isCapturing:s,isDragging:i};return D}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(114);var a=g(n);var i=r(209);var o=g(i);var s=r(322);var u=g(s);var l=r(639);var c=g(l);var f=r(324);var d=y(f);var p=r(323);var h=g(p);var v=r(640);var m=g(v);function y(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function g(e){return e&&e.__esModule?e:{default:e}}var b=function e(){};t.default=function(e,t){var r={isDragging:false};var n=function e(t){r=t};var i=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:b;n({isDragging:true});_();t()};var s=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:b;w();n({isDragging:false});t()};var l=function e(){return s()};var f=function t(){s(e.onCancel)};var p=function e(){return r.isDragging};var v=(0,u.default)(e,p);var y=function r(n,a){var u=a.canLift,l=a.direction;if(!p()){if(!u){return}if(n.keyCode!==d.space){return}(0,o.default)(n);var h=t();if(!h){console.error("cannot start a keyboard drag without a draggable ref");return}var y=(0,m.default)(h);i((function(){return e.onLift({client:y,isScrollAllowed:false})}));return}if(!l){console.error("cannot handle keyboard event if direction is not provided");(0,o.default)(n);f();return}if(n.keyCode===d.escape){(0,o.default)(n);f();return}if(n.keyCode===d.space){(0,o.default)(n);s(e.onDrop);return}var g=function e(t){if(l==="vertical"){t.vertical();return}t.horizontal()};if(n.keyCode===d.arrowDown){(0,o.default)(n);g({vertical:v.moveForward,horizontal:v.crossAxisMoveForward});return}if(n.keyCode===d.arrowUp){(0,o.default)(n);g({vertical:v.moveBackward,horizontal:v.crossAxisMoveBackward});return}if(n.keyCode===d.arrowRight){(0,o.default)(n);g({vertical:v.crossAxisMoveForward,horizontal:v.moveForward});return}if(n.keyCode===d.arrowLeft){(0,o.default)(n);g({vertical:v.crossAxisMoveBackward,horizontal:v.moveBackward})}(0,c.default)(n)};var g={mousedown:f,resize:f,scroll:f};var A=(0,a.default)(g);var _=function e(){var r=(0,h.default)(t());A.forEach((function(e){r.addEventListener(e,g[e])}))};var w=function e(){var r=(0,h.default)(t());A.forEach((function(e){r.removeEventListener(e,g[e])}))};var E={onKeyDown:y,kill:l,isDragging:p,isCapturing:p};return E}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forcePressThreshold=t.timeForLongPress=undefined;var n=r(114);var a=v(n);var i=r(115);var o=v(i);var s=r(209);var u=v(s);var l=r(322);var c=v(l);var f=r(638);var d=v(f);var p=r(323);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}var m=t.timeForLongPress=200;var y=t.forcePressThreshold=.15;var g=function e(){};var b={isDragging:false,pending:null,hasMoved:false,preventClick:false,longPressTimerId:null};t.default=function(e,t){var r=b;var n=function e(t){r=(0,o.default)({},r,t)};var i=function e(){return r.isDragging};var s=function e(){return Boolean(r.pending||r.isDragging||r.longPressTimerId)};var l=(0,c.default)(e,i);var f=function t(){if(r.longPressTimerId){clearTimeout(r.longPressTimerId)}var a=r.pending;if(!r.pending){console.error("cannot start a touch drag without a pending position");_();return}n({isDragging:true,hasMoved:false,pending:null,longPressTimerId:null});e.onLift({client:a,isScrollAllowed:false})};var p=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:g;S();n((0,o.default)({},b,{preventClick:true}));t()};var v=function e(t){var r=t.touches[0];var a=r.clientX,i=r.clientY;var o={x:a,y:i};var s=setTimeout(f,m);n({longPressTimerId:s,pending:o,isDragging:false,hasMoved:false});k()};var A=function e(){clearTimeout(r.longPressTimerId);S();n(b)};var _=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:g;if(r.pending){A();return}p(t)};var w=function t(){_(e.onCancel)};var E={touchmove:function e(t){var a=t.touches[0],i=a.clientX,o=a.clientY;var s={x:i,y:o};(0,u.default)(t);if(!r.hasMoved){n({hasMoved:true})}if(r.pending){if(!(0,d.default)(r.pending,s)){return}f();return}l.move(s)},touchend:function t(n){if(r.pending){A();return}p(e.onDrop);(0,u.default)(n)},touchcancel:function e(){if(r.pending){A();return}w()},touchstart:function e(){if(i()){console.error("touch start fired while already dragging");w()}},orientationchange:w,resize:w,scroll:w,contextmenu:u.default,keydown:w,touchforcechange:function e(t){if(r.hasMoved){return}var n=t.touches[0];if(n.force>=y){w()}}};var x=(0,a.default)(E);var k=function e(){var r=(0,h.default)(t());x.forEach((function(e){var t=E[e];if(e==="touchmove"){r.addEventListener(e,t,{passive:false});return}r.addEventListener(e,t)}))};var S=function e(){var r=(0,h.default)(t());x.forEach((function(e){return r.removeEventListener(e,E[e])}))};var O=function e(t,r){if(!r.canLift){return}if(s()){console.error("should not be able to perform a touch start while a drag or pending drag is occurring");w();return}t.stopPropagation();v(t)};var M=function e(t){if(s()){t.preventDefault()}};var D=function e(t){if(!r.preventClick){return}(0,u.default)(t);n(b)};var T={onTouchStart:O,onTouchMove:M,onClick:D,kill:_,isCapturing:s,isDragging:i};return T}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41.66739",height:"49.79988",viewBox:"0 0 41.66739 49.79988","aria-hidden":"true"},n.createElement("title",null,"Apply Icon"),n.createElement("g",null,n.createElement("path",{d:"M38.97923,20.60587a3.1833,3.1833,0,0,0-4.332,0L23.33308,31.71167V2.91584C23.33308,1.31208,22.43745,0,20.83369,0s-2.49938,1.31208-2.49938,2.91584V31.71167L7.0202,20.60587a3.05228,3.05228,0,0,0-4.22789,0,2.925,2.925,0,0,0-.05208,4.12374L18.78063,40.796c.0061.0061-.00539.01464.00071.02075a2.92278,2.92278,0,0,0,4.121,0c.0061-.0061.006-.01464.0121-.02075L38.98,24.7296A2.92444,2.92444,0,0,0,38.97923,20.60587Z"}),n.createElement("rect",{x:"17.91775",y:"26.05024",width:"5.83189",height:"41.66739",rx:"1.16667",ry:"1.16667",transform:"translate(-26.05024 67.71763) rotate(-90)"})))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",viewBox:"0 0 48 48","aria-hidden":"true"},n.createElement("title",null,"Refresh Icon"),n.createElement("path",{d:"M24 40q-6.65 0-11.325-4.675Q8 30.65 8 24q0-6.65 4.675-11.325Q17.35 8 24 8q4.25 0 7.45 1.725T37 14.45V8h3v12.7H27.3v-3h8.4q-1.9-3-4.85-4.85Q27.9 11 24 11q-5.45 0-9.225 3.775Q11 18.55 11 24q0 5.45 3.775 9.225Q18.55 37 24 37q4.15 0 7.6-2.375 3.45-2.375 4.8-6.275h3.1q-1.45 5.25-5.75 8.45Q29.45 40 24 40Z"}))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);function a(){return n.createElement("div",{className:"list-loading"},"Loading")}t.default=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1209);var o=r(13);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement(o.Button,{className:"load-more-button",disabled:this.props.isFetching,callback:this.props.loadMore,content:this.props.isFetching?a.createElement(i.default,null):"Load more"})};return t}(a.Component);t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48.55458",height:"8.74913",viewBox:"0 0 48.55458 8.74913","aria-hidden":"true"},n.createElement("title",null,"More Dots Icon"),n.createElement("g",null,n.createElement("circle",{cx:"4.37456",cy:"4.37456",r:"4.37456"}),n.createElement("circle",{cx:"24.27729",cy:"4.37456",r:"4.37456"}),n.createElement("circle",{cx:"44.18002",cy:"4.37456",r:"4.37456"})))};t.default=a},function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(13);var o=r(326);var s=r(1220);var u=r(20);var l=[{value:null,label:"Relevance"},{value:"title",label:"Title"},{value:"author",label:"Author"}];var c=function(e){var t=e.autoUpdate,r=e.entryPoints,c=e.library,f=e.searchParams,d=e.showAutoUpdate,p=e.startingTitle,h=e.updateAutoUpdate,v=e.updateSearchParam,m=e.search,y=e.addAdvSearchQuery,g=e.updateAdvSearchQueryBoolean,b=e.moveAdvSearchQuery,A=e.removeAdvSearchQuery,_=e.selectAdvSearchQuery;var w;a.useEffect((function(){var e,t;if(p){(e=y)===null||e===void 0?void 0:e("include",{key:"title",op:"eq",value:p});(t=m)===null||t===void 0?void 0:t()}}),[]);var E=r.includes("All")?r:n(["All"],r);var x=f.entryPoint.toLowerCase();var k=function(e){var t=f.advanced[e];return a.createElement(o.default,{name:e,query:t.query,selectedQueryId:t.selectedQueryId,addQuery:y,updateQueryBoolean:g,moveQuery:b,removeQuery:A,selectQuery:_})};var S=a.createElement("div",{className:"search-titles"},a.createElement("div",{className:"entry-points"},a.createElement("span",null,"Search for:"),a.createElement("div",{className:"entry-points-selection"},E.map((function(e){return a.createElement(u.default,{key:e,type:"radio",name:"entry-points-selection",checked:e.toLowerCase()===x,label:e,value:e,onChange:function(){var t;return(t=v)===null||t===void 0?void 0:t("entryPoint",e)}})})))),a.createElement("div",{className:"search-options"},a.createElement("span",null,"Sort by:"),a.createElement("div",{className:"search-options-selection"},l.map((function(e){var t=e.value,r=e.label;return a.createElement(u.default,{key:t,type:"radio",name:"sort-selection",value:t,label:r,checked:t===f.sort,onChange:function(){var e;return(e=v)===null||e===void 0?void 0:e("sort",t)}})}))),a.createElement("aside",null,'Results can be sorted by attributes that are enabled in this library\'s Lanes & Filters configuration. Selecting "Title" or "Author" will automatically filter out less relevant results.')),a.createElement("div",{className:"search-builders"},a.createElement(i.Panel,{headerText:"Works to include",id:"search-filters-include",openByDefault:true,content:k("include")}),a.createElement(i.Panel,{headerText:"Works to exclude",id:"search-filters-exclude",openByDefault:false,content:k("exclude")})),a.createElement("div",{key:"query-viewer"},a.createElement(s.default,{library:(w=c)===null||w===void 0?void 0:w.short_name,searchParams:f})),d&&a.createElement("div",{className:"auto-update"},a.createElement("span",null,"Use search to:"),a.createElement("div",{className:"auto-update-selection"},a.createElement("div",null,a.createElement(u.default,{type:"radio",name:"auto-update",checked:t,label:"Automatically update this list",onChange:function(){var e;return(e=h)===null||e===void 0?void 0:e(true)}}),a.createElement("aside",null,"The system will periodically execute this search and automatically update the list with the results. The search results below represent the titles that would be in the list if it were updated now, but the actual contents of the list will change over time.")),a.createElement("div",null,a.createElement(u.default,{type:"radio",name:"auto-update",checked:!t,label:"Manually select titles",onChange:function(){var e;return(e=h)===null||e===void 0?void 0:e(false)}}),a.createElement("aside",null,"Move the desired titles from the search results column on the left to the column on the right to add them to the list. Titles may be removed from the list automatically if they become unavailable, but the list is otherwise fixed.")))));return a.createElement(i.Panel,{headerText:"Search for titles",id:"search-titles",openByDefault:true,onEnter:m,content:S})};t.default=c},function(e,t,r){"use strict";
372
372
  /** @license React v16.14.0
373
373
  * react-jsx-runtime.production.min.js
374
374
  *