@thepalaceproject/circulation-admin 0.4.0 → 0.4.1
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.
- package/CHANGELOG.md +6 -0
- package/dist/circulation-admin.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -38,7 +38,7 @@ object-assign
|
|
|
38
38
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
39
39
|
* @license MIT
|
|
40
40
|
*/
|
|
41
|
-
var n=r(759);var a=r(760);var i=r(386);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(387);t.Stream=t;t.Readable=t;t.Writable=r(259);t.Duplex=r(101);t.Transform=r(392);t.PassThrough=r(766)},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(765)};var d=r(388);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(389);c.inherits(_,d);function g(){}function b(e,t){l=l||r(101);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(101);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(390).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(782);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.buildSearchFacetString=function(e){var t=e.entryPoint,r=e.sort;var n={};if(t!=="All"){n.media=t}if(r){n.order=r}return JSON.stringify(n)};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));r.append("auto_update_facets",t.buildSearchFacetString(o.current))}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("media="+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=function(e){if(!e){return{}}return JSON.parse(e)||{}};var h={name:"",collections:[],autoUpdate:false};var v={entryPoint:"All",terms:"",sort:null,language:"all",advanced:{include:{query:null,selectedQueryId:null},exclude:{query:null,selectedQueryId:null}}};t.initialState={id:null,autoUpdateStatus:"",isAutoUpdateEnabled:false,isLoaded:false,isOwner:true,isShared:false,isSharePending:false,properties:{baseline:h,current:h},searchParams:{baseline:v,current:v},entries:{baseline:[],baselineTotalCount:0,added:{},removed:{},current:[],currentTotalCount:0},isValid:false,isModified:false,isSearchModified:false,error:null};var m=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 y=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 g=function(e){return i.default(e,(function(e){e.isSearchModified=y(e)}))};var b=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&&e.isSearchModified||i.collections.length!==o.collections.length||!i.collections.every((function(e){return o.collections.includes(e)}))};var A=function(e){return i.default(e,(function(e){e.isValid=m(e);e.isModified=b(e)}))};var _=function(e){return function(t,r){return A(e(t,r))}};var w=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;r.isOwner=a.is_owner;r.isShared=a.is_shared;r.autoUpdateStatus=n&&!!a.auto_update?a.auto_update_status:"";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;var c=p(a.auto_update_facets),f=c.media,d=c.order;if(f){r.searchParams.baseline.entryPoint=f;r.searchParams.current.entryPoint=f}if(d){r.searchParams.baseline.sort=d;r.searchParams.current.sort=d}}r.error=o}))};var E=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 x=function(e,r){var n=r.id,a=r.data;var o=i.default(t.initialState,(function(t){t.isAutoUpdateEnabled=e.isAutoUpdateEnabled}));return w(n?parseInt(n,10):null,a,o)};var k=function(e,t){if(t.isAfterShare){return e}var r=e.id;var n=t.data;return w(r,n,e)};var S=_((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=t.data.books;E(r)}))}));var O=_((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=r.baseline.concat(t.data.books);E(r)}))}));var M=_((function(e,t){var r=t.name,n=t.value;return i.default(e,(function(e){e.properties.current[r]=n}))}));var D=_((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 T=_((function(e,t){var r=t.name,n=t.value;return g(i.default(e,(function(e){e.searchParams.current[r]=n})))}));var L=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=L(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 C=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=C(c,t);if(f!==c){var d=a(s);d[l]=f;return i={id:e.id},i[o]=d,i}}}return e};var j=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=j(o,t);if(s){return a([e.id],s)}}}return null};var N=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=N(o,t);if(s){return s}}}return null};var I=function(e){return e==="include"?"and":"or"};var P=_((function(e,t){return g(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=L(o,s||o.id,u,I(r))}})))}));var R=_((function(e,t){return g(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=N(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 F=_((function(e,t){return g(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=N(s,a);var l=n(n({},u),{id:c()});var f=L(s,i,l,I(r));var d=C(f,a);o.query=d;o.selectedQueryId=i})))}));var Y=_((function(e,t){return g(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=C(i,n);if(o!==i){a.query=o;var s=j(i,n);s.pop();s.reverse();var u=s.find((function(e){return N(o,e)}));a.selectedQueryId=u}})))}));var B=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 H=function(e){return{id:e.id,title:e.title,authors:e.authors,url:e.url,medium:o.getMedium(e),language:e.language||""}};var U=_((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]=H(u)}}delete o[r];E(t)}))}));var z=_((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 H(e)})).forEach((function(e){return a[e.id]=e}));r.forEach((function(e){return delete i[e.id]}));E(t)}))}));var q=_((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}E(t)}))}));var V=_((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={};E(t)}))}));var W=_((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={};E(n)}))}));var K=function(e,t){var r=t.listId;var n=e.id;if(parseInt(r,10)===n){return i.default(e,(function(e){e.isSharePending=true}))}return e};var G=function(e,t){var r;var n=t.data,a=t.listId;var o=e.id;if(parseInt(a,10)===o){var s=(r=n)===null||r===void 0?void 0:r.custom_lists.find((function(e){return e.id===o}));return i.default(e,(function(e){e.isSharePending=false;if(s){e.isShared=s.is_shared}}))}return e};var Q=function(e,t){var r=t.error,n=t.listId;var a=e.id;if(parseInt(n,10)===a){return i.default(e,(function(e){e.isSharePending=false;e.error=r.message}))}return e};var J=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 Z=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 x(e,r);case s.default.CUSTOM_LISTS+"_"+s.default.LOAD:return k(e,r);case s.default.CUSTOM_LIST_DETAILS+"_"+s.default.LOAD:return S(e,r);case s.default.CUSTOM_LIST_DETAILS_MORE+"_"+s.default.LOAD:return O(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_PROPERTY:return M(e,r);case s.default.TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION:return D(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM:return T(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return P(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN:return R(e,r);case s.default.MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return F(e,r);case s.default.REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return Y(e,r);case s.default.SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return B(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ENTRY:return U(e,r);case s.default.ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return z(e,r);case s.default.DELETE_CUSTOM_LIST_EDITOR_ENTRY:return q(e,r);case s.default.DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return V(e,r);case s.default.RESET_CUSTOM_LIST_EDITOR:return W(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.REQUEST:return K(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.SUCCESS:return G(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.FAILURE:return Q(e,r);case s.default.SET_FEATURE_FLAGS:return J(e,r);case s.default.UPDATE_FEATURE_FLAG:return Z(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(534);var s=r(839);var u=r(840);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(102);var l=r(51);var c=r(181);var f=r(182);var d=r(67);var p=r(545);var h=r(82);var v=r(11);var m=r(547);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(103);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(557),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(908);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(272);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(566);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(38);var a=r(935);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(973);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(279)("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(978);var i=r(280);var o=r(278)("IE_PROTO");var s=function(){};var u="prototype";var l=function(){var e=r(581)("iframe");var t=i.length;var n="<";var a=">";var o;e.style.display="none";r(979).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(109);var i=r(68)("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(289),a=r(1046);function i(e,t){return e&&n(e,a(t))}e.exports=i},function(e,t,r){var n=r(1038),a=r(136);function i(e,t){return e&&n(e,t,a)}e.exports=i},function(e,t,r){var n=r(1041),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(1042);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(608);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(611);var a=n(Object.getPrototypeOf,Object);e.exports=a},function(e,t,r){var n=r(198),a=r(1054),i=r(1055),o=r(1056),s=r(1057),u=r(1058);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(113),a=r(60);var i=n(a,"Map");e.exports=i},function(e,t,r){var n=r(1063),a=r(1070),i=r(1072),o=r(1073),s=r(1074);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(1075),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(299),a=r(1076),i=r(1077);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(619),a=r(620);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(627);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(609),a=r(1103),i=r(111);function o(e){return i(e)?n(e,true):a(e)}e.exports=o},function(e,t,r){var n=r(616);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(1136);Object.defineProperty(t,"DragDropContext",{enumerable:true,get:function e(){return o(n).default}});var a=r(1179);Object.defineProperty(t,"Droppable",{enumerable:true,get:function e(){return o(a).default}});var i=r(1188);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(1142);var a=u(n);var i=r(1148);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(68)},function(e,t,r){var n=r(74);var a=r(30);var i=r(192);var o=r(312);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(1163);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(1166);var a=r(317);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(314);var a=u(n);var i=r(1186);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(635);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(341);var i=r(1396);var o=r(1220);var s=r(1221);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.isOwner,r=e.name,u=e.query,l=e.selectedQueryId,c=e.addQuery,f=e.updateQueryBoolean,d=e.moveQuery,p=e.removeQuery,h=e.selectQuery;var v=!t;return n.createElement(a.DndProvider,{backend:i.HTML5Backend},n.createElement("div",{className:"advanced-search"},!v&&n.createElement(o.default,{name:r,onAdd:function(e){var t;return(t=c)===null||t===void 0?void 0:t(r,e)}}),n.createElement(s.default,{query:u,readOnly:v,selectedQueryId:l,onBooleanChange:function(e,t){var n;return(n=f)===null||n===void 0?void 0:n(r,e,t)},onMove:function(e,t){var n;return(n=d)===null||n===void 0?void 0:n(r,e,t)},onRemove:function(e){var t;return(t=p)===null||t===void 0?void 0:t(r,e)},onSelect:function(e){var t;return(t=h)===null||t===void 0?void 0:t(r,e)}})))}t.default=u},function(e,t,r){var n=r(214);var a=r(651);var i=r(330);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(1264);var a=r(335);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(335);var i=r(90);var o=r(338);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(304),a=r(1304);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(220);var a=r(643);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(98);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(697);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(93);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(600);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(1309),i=r(671);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(995)},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(285));t.on=a.default;var i=n(r(286));t.off=i.default;var o=n(r(1008));t.filter=o.default;var s=n(r(1010));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(604);var f=m(c);var d=r(1019);var p=m(d);var h=r(343);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(225);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(1322)},function(e,t,r){var n=r(307),a=r(289),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(359);var a=r(360);var i=r(732);var o=r(733);var s=r(734);var u=r(735);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(731);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(738);var a=r(238);t.OPDSFeed=a.default;var i=r(363);t.NavigationFeed=i.default;var o=r(364);t.AcquisitionFeed=o.default;var s=r(241);t.OPDSEntry=s.default;var u=r(374);t.PartialOPDSEntry=u.default;var l=r(375);t.Contributor=l.default;var c=r(377);t.Category=c.default;var f=r(376);t.Series=f.default;var d=r(378);t.Summary=d.default;var p=r(58);t.OPDSLink=p.default;var h=r(366);t.OPDSCatalogRootLink=h.default;var v=r(367);t.OPDSFacetLink=v.default;var m=r(368);t.SearchLink=m.default;var y=r(239);t.AlternateLink=y.default;var g=r(240);t.CompleteEntryLink=g.default;var b=r(370);t.OPDSCrawlableLink=b.default;var A=r(372);t.OPDSShelfLink=A.default;var _=r(237);t.OPDSAcquisitionLink=_.default;var w=r(369);t.OPDSArtworkLink=w.default;var E=r(371);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(238);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(238);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(366);var o=r(367);var s=r(368);var u=r(237);var l=r(740);var c=r(741);var f=r(742);var d=r(743);var p=r(744);var h=r(369);var v=r(239);var m=r(240);var y=r(370);var g=r(371);var b=r(372);var A=r(100);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(241);var i=r(374);var o=r(240);var s=r(365);var u=r(745);var l=r(746);var c=r(747);var f=r(100);var d=r(378);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(241);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(242);e=r(748);a=r(757);i=r(393);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(72).isPlainObject;a=r(380);n=r(750);o=r(47);t=r(26);u=r(384);s=r(256);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,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")};e.prototype.attEscape=function(e){var t;if(this.options.noValidation){return e}t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")};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(72).assign;t=r(26);c=r(247);f=r(248);a=r(245);i=r(246);p=r(243);v=r(253);m=r(254);h=r(255);d=r(383);o=r(249);s=r(251);u=r(250);l=r(252);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(386);var o;E.ReadableState=w;var s=r(142).EventEmitter;var u=function(e,t){return e.listeners(t).length};var l=r(388);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(762);var m=void 0;if(v&&v.debuglog){m=v.debuglog("stream")}else{m=function(){}}var y=r(763);var g=r(389);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(101);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(260).StringDecoder;this.decoder=new b(e.encoding);this.encoding=e.encoding}}function E(e){o=o||r(101);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(260).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(391);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(101);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(534);var s=r(264);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(759);var a=r(760);var i=r(386);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(387);t.Stream=t;t.Readable=t;t.Writable=r(259);t.Duplex=r(101);t.Transform=r(392);t.PassThrough=r(766)},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(765)};var d=r(388);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(389);c.inherits(_,d);function g(){}function b(e,t){l=l||r(101);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(101);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(390).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(782);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.buildSearchFacetString=function(e){var t=e.entryPoint,r=e.sort;var n={};if(t!=="All"){n.media=t}if(r){n.order=r}return JSON.stringify(n)};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));r.append("auto_update_facets",t.buildSearchFacetString(o.current))}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("media="+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=function(e){if(!e){return{}}return JSON.parse(e)||{}};var h={name:"",collections:[],autoUpdate:false};var v={entryPoint:"All",terms:"",sort:null,language:"all",advanced:{include:{query:null,selectedQueryId:null},exclude:{query:null,selectedQueryId:null}}};t.initialState={id:null,autoUpdateStatus:"",isAutoUpdateEnabled:false,isLoaded:false,isOwner:true,isShared:false,isSharePending:false,properties:{baseline:h,current:h},searchParams:{baseline:v,current:v},entries:{baseline:[],baselineTotalCount:0,added:{},removed:{},current:[],currentTotalCount:0},isValid:false,isModified:false,isSearchModified:false,error:null};var m=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 y=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 g=function(e){return i.default(e,(function(e){e.isSearchModified=y(e)}))};var b=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&&e.isSearchModified||i.collections.length!==o.collections.length||!i.collections.every((function(e){return o.collections.includes(e)}))};var A=function(e){return i.default(e,(function(e){e.isValid=m(e);e.isModified=b(e)}))};var _=function(e){return function(t,r){return A(e(t,r))}};var w=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;r.isOwner=a.is_owner;r.isShared=a.is_shared;r.autoUpdateStatus=n&&!!a.auto_update?a.auto_update_status:"";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;var c=p(a.auto_update_facets),f=c.media,d=c.order;if(f){r.searchParams.baseline.entryPoint=f;r.searchParams.current.entryPoint=f}if(d){r.searchParams.baseline.sort=d;r.searchParams.current.sort=d}r.isSearchModified=false}r.error=o}))};var E=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 x=function(e,r){var n=r.id,a=r.data;var o=i.default(t.initialState,(function(t){t.isAutoUpdateEnabled=e.isAutoUpdateEnabled}));return w(n?parseInt(n,10):null,a,o)};var k=_((function(e,t){if(t.isAfterShare){return e}var r=e.id;var n=t.data;return w(r,n,e)}));var S=_((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=t.data.books;E(r)}))}));var O=_((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=r.baseline.concat(t.data.books);E(r)}))}));var M=_((function(e,t){var r=t.name,n=t.value;return i.default(e,(function(e){e.properties.current[r]=n}))}));var D=_((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 T=_((function(e,t){var r=t.name,n=t.value;return g(i.default(e,(function(e){e.searchParams.current[r]=n})))}));var L=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=L(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 C=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=C(c,t);if(f!==c){var d=a(s);d[l]=f;return i={id:e.id},i[o]=d,i}}}return e};var j=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=j(o,t);if(s){return a([e.id],s)}}}return null};var N=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=N(o,t);if(s){return s}}}return null};var I=function(e){return e==="include"?"and":"or"};var P=_((function(e,t){return g(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=L(o,s||o.id,u,I(r))}})))}));var R=_((function(e,t){return g(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=N(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 F=_((function(e,t){return g(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=N(s,a);var l=n(n({},u),{id:c()});var f=L(s,i,l,I(r));var d=C(f,a);o.query=d;o.selectedQueryId=i})))}));var Y=_((function(e,t){return g(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=C(i,n);if(o!==i){a.query=o;var s=j(i,n);s.pop();s.reverse();var u=s.find((function(e){return N(o,e)}));a.selectedQueryId=u}})))}));var B=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 H=function(e){return{id:e.id,title:e.title,authors:e.authors,url:e.url,medium:o.getMedium(e),language:e.language||""}};var U=_((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]=H(u)}}delete o[r];E(t)}))}));var z=_((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 H(e)})).forEach((function(e){return a[e.id]=e}));r.forEach((function(e){return delete i[e.id]}));E(t)}))}));var q=_((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}E(t)}))}));var V=_((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={};E(t)}))}));var W=_((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={};E(n)}))}));var K=function(e,t){var r=t.listId;var n=e.id;if(parseInt(r,10)===n){return i.default(e,(function(e){e.isSharePending=true}))}return e};var G=function(e,t){var r;var n=t.data,a=t.listId;var o=e.id;if(parseInt(a,10)===o){var s=(r=n)===null||r===void 0?void 0:r.custom_lists.find((function(e){return e.id===o}));return i.default(e,(function(e){e.isSharePending=false;if(s){e.isShared=s.is_shared}}))}return e};var Q=function(e,t){var r=t.error,n=t.listId;var a=e.id;if(parseInt(n,10)===a){return i.default(e,(function(e){e.isSharePending=false;e.error=r.message}))}return e};var J=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 Z=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 x(e,r);case s.default.CUSTOM_LISTS+"_"+s.default.LOAD:return k(e,r);case s.default.CUSTOM_LIST_DETAILS+"_"+s.default.LOAD:return S(e,r);case s.default.CUSTOM_LIST_DETAILS_MORE+"_"+s.default.LOAD:return O(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_PROPERTY:return M(e,r);case s.default.TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION:return D(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM:return T(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return P(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN:return R(e,r);case s.default.MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return F(e,r);case s.default.REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return Y(e,r);case s.default.SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return B(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ENTRY:return U(e,r);case s.default.ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return z(e,r);case s.default.DELETE_CUSTOM_LIST_EDITOR_ENTRY:return q(e,r);case s.default.DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return V(e,r);case s.default.RESET_CUSTOM_LIST_EDITOR:return W(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.REQUEST:return K(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.SUCCESS:return G(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.FAILURE:return Q(e,r);case s.default.SET_FEATURE_FLAGS:return J(e,r);case s.default.UPDATE_FEATURE_FLAG:return Z(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(534);var s=r(839);var u=r(840);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(102);var l=r(51);var c=r(181);var f=r(182);var d=r(67);var p=r(545);var h=r(82);var v=r(11);var m=r(547);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(103);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(557),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(908);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(272);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(566);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(38);var a=r(935);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(973);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(279)("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(978);var i=r(280);var o=r(278)("IE_PROTO");var s=function(){};var u="prototype";var l=function(){var e=r(581)("iframe");var t=i.length;var n="<";var a=">";var o;e.style.display="none";r(979).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(109);var i=r(68)("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(289),a=r(1046);function i(e,t){return e&&n(e,a(t))}e.exports=i},function(e,t,r){var n=r(1038),a=r(136);function i(e,t){return e&&n(e,t,a)}e.exports=i},function(e,t,r){var n=r(1041),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(1042);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(608);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(611);var a=n(Object.getPrototypeOf,Object);e.exports=a},function(e,t,r){var n=r(198),a=r(1054),i=r(1055),o=r(1056),s=r(1057),u=r(1058);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(113),a=r(60);var i=n(a,"Map");e.exports=i},function(e,t,r){var n=r(1063),a=r(1070),i=r(1072),o=r(1073),s=r(1074);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(1075),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(299),a=r(1076),i=r(1077);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(619),a=r(620);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(627);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(609),a=r(1103),i=r(111);function o(e){return i(e)?n(e,true):a(e)}e.exports=o},function(e,t,r){var n=r(616);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(1136);Object.defineProperty(t,"DragDropContext",{enumerable:true,get:function e(){return o(n).default}});var a=r(1179);Object.defineProperty(t,"Droppable",{enumerable:true,get:function e(){return o(a).default}});var i=r(1188);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(1142);var a=u(n);var i=r(1148);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(68)},function(e,t,r){var n=r(74);var a=r(30);var i=r(192);var o=r(312);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(1163);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(1166);var a=r(317);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(314);var a=u(n);var i=r(1186);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(635);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(341);var i=r(1396);var o=r(1220);var s=r(1221);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.isOwner,r=e.name,u=e.query,l=e.selectedQueryId,c=e.addQuery,f=e.updateQueryBoolean,d=e.moveQuery,p=e.removeQuery,h=e.selectQuery;var v=!t;return n.createElement(a.DndProvider,{backend:i.HTML5Backend},n.createElement("div",{className:"advanced-search"},!v&&n.createElement(o.default,{name:r,onAdd:function(e){var t;return(t=c)===null||t===void 0?void 0:t(r,e)}}),n.createElement(s.default,{query:u,readOnly:v,selectedQueryId:l,onBooleanChange:function(e,t){var n;return(n=f)===null||n===void 0?void 0:n(r,e,t)},onMove:function(e,t){var n;return(n=d)===null||n===void 0?void 0:n(r,e,t)},onRemove:function(e){var t;return(t=p)===null||t===void 0?void 0:t(r,e)},onSelect:function(e){var t;return(t=h)===null||t===void 0?void 0:t(r,e)}})))}t.default=u},function(e,t,r){var n=r(214);var a=r(651);var i=r(330);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(1264);var a=r(335);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(335);var i=r(90);var o=r(338);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(304),a=r(1304);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(220);var a=r(643);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(98);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(697);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(93);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(600);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(1309),i=r(671);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(995)},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(285));t.on=a.default;var i=n(r(286));t.off=i.default;var o=n(r(1008));t.filter=o.default;var s=n(r(1010));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(604);var f=m(c);var d=r(1019);var p=m(d);var h=r(343);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(225);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(1322)},function(e,t,r){var n=r(307),a=r(289),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(359);var a=r(360);var i=r(732);var o=r(733);var s=r(734);var u=r(735);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(731);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(738);var a=r(238);t.OPDSFeed=a.default;var i=r(363);t.NavigationFeed=i.default;var o=r(364);t.AcquisitionFeed=o.default;var s=r(241);t.OPDSEntry=s.default;var u=r(374);t.PartialOPDSEntry=u.default;var l=r(375);t.Contributor=l.default;var c=r(377);t.Category=c.default;var f=r(376);t.Series=f.default;var d=r(378);t.Summary=d.default;var p=r(58);t.OPDSLink=p.default;var h=r(366);t.OPDSCatalogRootLink=h.default;var v=r(367);t.OPDSFacetLink=v.default;var m=r(368);t.SearchLink=m.default;var y=r(239);t.AlternateLink=y.default;var g=r(240);t.CompleteEntryLink=g.default;var b=r(370);t.OPDSCrawlableLink=b.default;var A=r(372);t.OPDSShelfLink=A.default;var _=r(237);t.OPDSAcquisitionLink=_.default;var w=r(369);t.OPDSArtworkLink=w.default;var E=r(371);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(238);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(238);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(366);var o=r(367);var s=r(368);var u=r(237);var l=r(740);var c=r(741);var f=r(742);var d=r(743);var p=r(744);var h=r(369);var v=r(239);var m=r(240);var y=r(370);var g=r(371);var b=r(372);var A=r(100);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(241);var i=r(374);var o=r(240);var s=r(365);var u=r(745);var l=r(746);var c=r(747);var f=r(100);var d=r(378);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(241);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(242);e=r(748);a=r(757);i=r(393);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(72).isPlainObject;a=r(380);n=r(750);o=r(47);t=r(26);u=r(384);s=r(256);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,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")};e.prototype.attEscape=function(e){var t;if(this.options.noValidation){return e}t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")};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(72).assign;t=r(26);c=r(247);f=r(248);a=r(245);i=r(246);p=r(243);v=r(253);m=r(254);h=r(255);d=r(383);o=r(249);s=r(251);u=r(250);l=r(252);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(386);var o;E.ReadableState=w;var s=r(142).EventEmitter;var u=function(e,t){return e.listeners(t).length};var l=r(388);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(762);var m=void 0;if(v&&v.debuglog){m=v.debuglog("stream")}else{m=function(){}}var y=r(763);var g=r(389);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(101);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(260).StringDecoder;this.decoder=new b(e.encoding);this.encoding=e.encoding}}function E(e){o=o||r(101);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(260).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(391);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(101);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(534);var s=r(264);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
|
package/package.json
CHANGED