From 149a3bdf84ff0eeb65b6d994cf16afeb224b6068 Mon Sep 17 00:00:00 2001 From: Rafael Schwemmer Date: Fri, 28 Jan 2022 17:39:43 +0100 Subject: [PATCH] Update pre-conigured remote manifest storage endpoint URI for JsonStorage.net. Add clearer warning to Settings dialog that JsonStorage.net should not be used as the main storage solution for manifests. See issue #59 --- app/components/SettingsDialog.jsx | 7 ++++-- package-lock.json | 20 ++++----------- public/bundle.js | 42 +------------------------------ 3 files changed, 11 insertions(+), 58 deletions(-) diff --git a/app/components/SettingsDialog.jsx b/app/components/SettingsDialog.jsx index 980e723..e661ec9 100644 --- a/app/components/SettingsDialog.jsx +++ b/app/components/SettingsDialog.jsx @@ -225,7 +225,7 @@ var SettingsDialog = React.createClass({ }, prefillRemoteJsonSettings: function() { this.refs.serverEndpointName.value = 'JsonStorage.net'; - this.refs.serverEndpointUri.value = 'https://jsonstorage.net/api/items' + this.refs.serverEndpointUri.value = 'https://api.jsonstorage.net/v1/json' }, displayServerEndpointConfiguration: function() { if(this.state.savedServerEndpoint === '' ) { @@ -239,7 +239,10 @@ var SettingsDialog = React.createClass({ requests in order to retrieve, store and update manifests. Download and install  IIIF Manifest Store or - click here to use JsonStorage.net to try this feature. Please note that your content on JsonStorage.net is publicly visible and the service might not be suitable for long-term storage of IIIF manifests. + click here to use JsonStorage.net to try this feature. + Please note that this is for demonstration purposes only. Your content on JsonStorage.net is publicly + visible and the service is not suitable for long-term storage of IIIF manifests. DO NOT USE JsonStorage.net + as your main manifest storage solution.


diff --git a/package-lock.json b/package-lock.json index 1a746ce..67abab1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2,7 +2,6 @@ "name": "iiif-manifest-editor", "version": "0.7.0", "lockfileVersion": 1, - "requires": true, "dependencies": { "abbrev": { "version": "1.1.1", @@ -2857,9 +2856,6 @@ } } }, - "exjs": { - "version": "git://github.com/BSick7/exjs.git#98195810790c0e61cb5beb510da4b756528f92f2" - }, "expand-braces": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/expand-braces/-/expand-braces-0.1.2.tgz", @@ -2995,9 +2991,6 @@ "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", "dev": true }, - "extensions": { - "version": "git://github.com/edsilv/extensions.git#d89cc2d73827e1cab11c9071599c837ebe6c58d6" - }, "extglob": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", @@ -4617,9 +4610,6 @@ "sshpk": "1.13.1" } }, - "http-status-codes": { - "version": "git://github.com/edsilv/http-status-codes.git#1f8456f7af1edc92350f8a5df6d3d2887a2cad58" - }, "https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", @@ -8563,6 +8553,11 @@ "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=" }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" + }, "string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", @@ -8574,11 +8569,6 @@ "strip-ansi": "3.0.1" } }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" - }, "stringstream": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", diff --git a/public/bundle.js b/public/bundle.js index b9ed5f0..6ade75e 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -1,41 +1 @@ -!function(A){function t(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return A[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var e={};t.m=A,t.c=e,t.d=function(A,e,n){t.o(A,e)||Object.defineProperty(A,e,{configurable:!1,enumerable:!0,get:n})},t.n=function(A){var e=A&&A.__esModule?function(){return A.default}:function(){return A};return t.d(e,"a",e),e},t.o=function(A,t){return Object.prototype.hasOwnProperty.call(A,t)},t.p="",t(t.s=193)}([function(A,t,e){"use strict";A.exports=e(199)},function(A,t,e){"use strict";function n(A,t,e,n,o,g,M,r){if(i(t),!A){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var E=[e,n,o,g,M,r],I=0;a=new Error(t.replace(/%s/g,function(){return E[I++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}}var i=function(A){};A.exports=n},function(A,t,e){"use strict";function n(A){for(var t=arguments.length-1,e="Minified React error #"+A+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+A,n=0;n2?e-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:"[Unknown Language]",e={ab:"Abkhazian",af:"Afrikaans",am:"Amharic",ar:"Arabic",az:"Azerbaijani",ba:"Bashkir",be:"Byelorussian",bg:"Bulgarian",bn:"Bengali",bo:"Tibetan",br:"Breton",ca:"Catalan",co:"Corsican",cs:"Czech",cy:"Welch",da:"Danish",de:"German",deu:"German","de-DE":"German",dz:"Bhutani",el:"Greek",en:"English",eng:"English","en-US":"English","en-UK":"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fj:"Fiji",fo:"Faeroese",fr:"French",fra:"French",fy:"Frisian",ga:"Irish",gd:"Scots Gaelic",gl:"Galician",hi:"Hindi",he:"Hebrew",hr:"Croatian",hu:"Hungarian",hy:"Armenian",id:"Indonesian",is:"Icelandic",it:"Italian",ita:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",kl:"Greenlandic",km:"Cambodian",ko:"Korean",ks:"Kashmiri",ku:"Kurdish",ky:"Kirghiz",la:"Latin",lo:"Laothian",lt:"Lithuanian",lv:"Latvian, Lettish",mg:"Malagasy",mi:"Maori",mk:"Macedonian",mn:"Mongolian",mo:"Moldavian",ms:"Malay",mt:"Maltese",my:"Burmese",na:"Nauru",ne:"Nepali",nl:"Dutch",no:"Norwegian",oc:"Occitan",pa:"Punjabi",pl:"Polish",pt:"Portuguese",qu:"Quechua",rm:"Rhaeto-Romance",rn:"Kirundi",ro:"Romanian",ru:"Russian",sa:"Sanskrit",sh:"Serbo-Croatian",si:"Singhalese",sk:"Slovak",sl:"Slovenian",sm:"Samoan",so:"Somali",sq:"Albanian",sr:"Serbian",su:"Sudanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",th:"Thai",ti:"Tigrinya",tk:"Turkmen",tl:"Tagalog",tr:"Turkish",tt:"Tatar",ug:"Uigur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",yi:"Yiddish",zh:"Chinese",zu:"Zulu"};return void 0!==e[A]?e[A]:t},t.getTranslatedPropertyName=function(A,t){var e={label:{"@value":"Label","@language":"Language"},description:{"@value":"Description","@language":"Language"},attribution:{"@value":"Attribution","@language":"Language"},related:{"@id":"URL",label:"Label",format:"Format"},undefined:{"@value":"Value","@language":"Language"}};return void 0!==e[A]&&void 0!==e[A][t]?e[A][t]:t},t.getLocalizedPropertyValue=function(A){return"string"==typeof A||A instanceof String?A:A instanceof Object&&("en"===A["@language"]||"eng"===A["@language"])?A["@value"]:""},t.getMetadataField=function(A,t){if("string"==typeof t||t instanceof String)return t;if(!Array.isArray(t))return t instanceof Object&&("seeAlso"!==A&&"logo"!==A||!t["@id"]?"
"+JSON.stringify(t,null,2)+"
":t["@id"]);for(var e=!1,n=0;n"+JSON.stringify(t,null,2)+""}},t.addMetadataFieldValue=function(A,t){return void 0===A||""===A?t:Array.isArray(A)?[].concat(n(A),[t]):[A,t]},t.updateMetadataFieldValue=function(A,t,e){return Array.isArray(A)?(A[e]=t,A):t}},function(A,t,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};A.exports=i},function(A,t,e){"use strict";function n(A){return function(){return A}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(A){return A},A.exports=i},function(A,t,e){"use strict";var n=null;A.exports={debugTool:n}},function(A,t,e){"use strict";function n(A){return void 0!==A.ref}function i(A){return void 0!==A.key}var o=e(5),g=e(25),M=(e(4),e(106),Object.prototype.hasOwnProperty),r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a={key:!0,ref:!0,__self:!0,__source:!0},E=function(A,t,e,n,i,o,g){var M={$$typeof:r,type:A,key:t,ref:e,props:g,_owner:o};return M};E.createElement=function(A,t,e){var o,r={},I=null,c=null;if(null!=t){n(t)&&(c=t.ref),i(t)&&(I=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(o in t)M.call(t,o)&&!a.hasOwnProperty(o)&&(r[o]=t[o])}var s=arguments.length-2;if(1===s)r.children=e;else if(s>1){for(var T=Array(s),N=0;N1){for(var C=Array(l),B=0;B1)for(var e=1;e should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=n;var i=e(0),o=i.PropTypes.func,g=i.PropTypes.object,M=i.PropTypes.arrayOf,r=i.PropTypes.oneOfType,a=i.PropTypes.element,E=i.PropTypes.shape,I=i.PropTypes.string,c=(t.history=E({listen:o.isRequired,push:o.isRequired,replace:o.isRequired,go:o.isRequired,goBack:o.isRequired,goForward:o.isRequired}),t.component=r([o,I])),s=(t.components=r([c,g]),t.route=r([g,a]));t.routes=r([s,M(s)])},function(A,t,e){"use strict";function n(A){var t=A.match(/^https?:\/\/[^\/]*/);return null==t?A:A.substring(t[0].length)}function i(A){var t=n(A),e="",i="",o=t.indexOf("#");-1!==o&&(i=t.substring(o),t=t.substring(0,o));var g=t.indexOf("?");return-1!==g&&(e=t.substring(g),t=t.substring(0,g)),""===t&&(t="/"),{pathname:t,search:e,hash:i}}t.__esModule=!0,t.extractPath=n,t.parsePath=i;var o=e(20);!function(A){A&&A.__esModule}(o)},function(A,t,e){"use strict";(function(A){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(A,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|A}function N(A){return+A!=A&&(A=0),o.alloc(+A)}function l(A,t){if(o.isBuffer(A))return A.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(A)||A instanceof ArrayBuffer))return A.byteLength;"string"!=typeof A&&(A=""+A);var e=A.length;if(0===e)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return H(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return W(A).length;default:if(n)return H(A).length;t=(""+t).toLowerCase(),n=!0}}function C(A,t,e){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if(e>>>=0,t>>>=0,e<=t)return"";for(A||(A="utf8");;)switch(A){case"hex":return m(this,t,e);case"utf8":case"utf-8":return j(this,t,e);case"ascii":return f(this,t,e);case"latin1":case"binary":return Y(this,t,e);case"base64":return p(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),n=!0}}function B(A,t,e){var n=A[t];A[t]=A[e],A[e]=n}function D(A,t,e,n,i){if(0===A.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:A.length-1),e<0&&(e=A.length+e),e>=A.length){if(i)return-1;e=A.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:d(A,t,e,n,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(A,t,e):Uint8Array.prototype.lastIndexOf.call(A,t,e):d(A,[t],e,n,i);throw new TypeError("val must be string, number or Buffer")}function d(A,t,e,n,i){function o(A,t){return 1===g?A[t]:A.readUInt16BE(t*g)}var g=1,M=A.length,r=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(A.length<2||t.length<2)return-1;g=2,M/=2,r/=2,e/=2}var a;if(i){var E=-1;for(a=e;aM&&(e=M-r),a=e;a>=0;a--){for(var I=!0,c=0;ci&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var g=0;g239?4:o>223?3:o>191?2:1;if(i+M<=e){var r,a,E,I;switch(M){case 1:o<128&&(g=o);break;case 2:r=A[i+1],128==(192&r)&&(I=(31&o)<<6|63&r)>127&&(g=I);break;case 3:r=A[i+1],a=A[i+2],128==(192&r)&&128==(192&a)&&(I=(15&o)<<12|(63&r)<<6|63&a)>2047&&(I<55296||I>57343)&&(g=I);break;case 4:r=A[i+1],a=A[i+2],E=A[i+3],128==(192&r)&&128==(192&a)&&128==(192&E)&&(I=(15&o)<<18|(63&r)<<12|(63&a)<<6|63&E)>65535&&I<1114112&&(g=I)}}null===g?(g=65533,M=1):g>65535&&(g-=65536,n.push(g>>>10&1023|55296),g=56320|1023&g),n.push(g),i+=M}return L(n)}function L(A){var t=A.length;if(t<=$)return String.fromCharCode.apply(String,A);for(var e="",n=0;nn)&&(e=n);for(var i="",o=t;oe)throw new RangeError("Trying to access beyond buffer length")}function U(A,t,e,n,i,g){if(!o.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||tA.length)throw new RangeError("Index out of range")}function O(A,t,e,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(A.length-e,2);i>>8*(n?i:1-i)}function b(A,t,e,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(A.length-e,4);i>>8*(n?i:3-i)&255}function F(A,t,e,n,i,o){if(e+n>A.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function v(A,t,e,n,i){return i||F(A,t,e,4,3.4028234663852886e38,-3.4028234663852886e38),q.write(A,t,e,n,23,4),e+4}function k(A,t,e,n,i){return i||F(A,t,e,8,1.7976931348623157e308,-1.7976931348623157e308),q.write(A,t,e,n,52,8),e+8}function R(A){if(A=G(A).replace(AA,""),A.length<2)return"";for(;A.length%4!=0;)A+="=";return A}function G(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")}function J(A){return A<16?"0"+A.toString(16):A.toString(16)}function H(A,t){t=t||1/0;for(var e,n=A.length,i=null,o=[],g=0;g55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(g+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;o.push(e)}else if(e<2048){if((t-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((t-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function X(A){for(var t=[],e=0;e>8,i=e%256,o.push(i),o.push(n);return o}function W(A){return K.toByteArray(R(A))}function V(A,t,e,n){for(var i=0;i=t.length||i>=A.length);++i)t[i+e]=A[i];return i}function Z(A){return A!==A}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -var K=e(370),q=e(371),_=e(372);t.Buffer=o,t.SlowBuffer=N,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==A.TYPED_ARRAY_SUPPORT?A.TYPED_ARRAY_SUPPORT:function(){try{var A=new Uint8Array(1);return A.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===A.foo()&&"function"==typeof A.subarray&&0===A.subarray(1,1).byteLength}catch(A){return!1}}(),t.kMaxLength=n(),o.poolSize=8192,o._augment=function(A){return A.__proto__=o.prototype,A},o.from=function(A,t,e){return g(null,A,t,e)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(A,t,e){return r(null,A,t,e)},o.allocUnsafe=function(A){return a(null,A)},o.allocUnsafeSlow=function(A){return a(null,A)},o.isBuffer=function(A){return!(null==A||!A._isBuffer)},o.compare=function(A,t){if(!o.isBuffer(A)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(A===t)return 0;for(var e=A.length,n=t.length,i=0,g=Math.min(e,n);i0&&(A=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(A+=" ... ")),""},o.prototype.compare=function(A,t,e,n,i){if(!o.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===e&&(e=A?A.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||e>A.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=e)return 0;if(n>=i)return-1;if(t>=e)return 1;if(t>>>=0,e>>>=0,n>>>=0,i>>>=0,this===A)return 0;for(var g=i-n,M=e-t,r=Math.min(g,M),a=this.slice(n,i),E=A.slice(t,e),I=0;Ii)&&(e=i),A.length>0&&(e<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return u(this,A,t,e);case"utf8":case"utf-8":return h(this,A,t,e);case"ascii":return Q(this,A,t,e);case"latin1":case"binary":return y(this,A,t,e);case"base64":return w(this,A,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,A,t,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;o.prototype.slice=function(A,t){var e=this.length;A=~~A,t=void 0===t?e:~~t,A<0?(A+=e)<0&&(A=0):A>e&&(A=e),t<0?(t+=e)<0&&(t=0):t>e&&(t=e),t0&&(i*=256);)n+=this[A+--t]*i;return n},o.prototype.readUInt8=function(A,t){return t||z(A,1,this.length),this[A]},o.prototype.readUInt16LE=function(A,t){return t||z(A,2,this.length),this[A]|this[A+1]<<8},o.prototype.readUInt16BE=function(A,t){return t||z(A,2,this.length),this[A]<<8|this[A+1]},o.prototype.readUInt32LE=function(A,t){return t||z(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},o.prototype.readUInt32BE=function(A,t){return t||z(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},o.prototype.readIntLE=function(A,t,e){A|=0,t|=0,e||z(A,t,this.length);for(var n=this[A],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(A,t,e){A|=0,t|=0,e||z(A,t,this.length);for(var n=t,i=1,o=this[A+--n];n>0&&(i*=256);)o+=this[A+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(A,t){return t||z(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},o.prototype.readInt16LE=function(A,t){t||z(A,2,this.length);var e=this[A]|this[A+1]<<8;return 32768&e?4294901760|e:e},o.prototype.readInt16BE=function(A,t){t||z(A,2,this.length);var e=this[A+1]|this[A]<<8;return 32768&e?4294901760|e:e},o.prototype.readInt32LE=function(A,t){return t||z(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},o.prototype.readInt32BE=function(A,t){return t||z(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},o.prototype.readFloatLE=function(A,t){return t||z(A,4,this.length),q.read(this,A,!0,23,4)},o.prototype.readFloatBE=function(A,t){return t||z(A,4,this.length),q.read(this,A,!1,23,4)},o.prototype.readDoubleLE=function(A,t){return t||z(A,8,this.length),q.read(this,A,!0,52,8)},o.prototype.readDoubleBE=function(A,t){return t||z(A,8,this.length),q.read(this,A,!1,52,8)},o.prototype.writeUIntLE=function(A,t,e,n){if(A=+A,t|=0,e|=0,!n){U(this,A,t,e,Math.pow(2,8*e)-1,0)}var i=1,o=0;for(this[t]=255&A;++o=0&&(o*=256);)this[t+i]=A/o&255;return t+e},o.prototype.writeUInt8=function(A,t,e){return A=+A,t|=0,e||U(this,A,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[t]=255&A,t+1},o.prototype.writeUInt16LE=function(A,t,e){return A=+A,t|=0,e||U(this,A,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&A,this[t+1]=A>>>8):O(this,A,t,!0),t+2},o.prototype.writeUInt16BE=function(A,t,e){return A=+A,t|=0,e||U(this,A,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=A>>>8,this[t+1]=255&A):O(this,A,t,!1),t+2},o.prototype.writeUInt32LE=function(A,t,e){return A=+A,t|=0,e||U(this,A,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=A>>>24,this[t+2]=A>>>16,this[t+1]=A>>>8,this[t]=255&A):b(this,A,t,!0),t+4},o.prototype.writeUInt32BE=function(A,t,e){return A=+A,t|=0,e||U(this,A,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=A>>>24,this[t+1]=A>>>16,this[t+2]=A>>>8,this[t+3]=255&A):b(this,A,t,!1),t+4},o.prototype.writeIntLE=function(A,t,e,n){if(A=+A,t|=0,!n){var i=Math.pow(2,8*e-1);U(this,A,t,e,i-1,-i)}var o=0,g=1,M=0;for(this[t]=255&A;++o>0)-M&255;return t+e},o.prototype.writeIntBE=function(A,t,e,n){if(A=+A,t|=0,!n){var i=Math.pow(2,8*e-1);U(this,A,t,e,i-1,-i)}var o=e-1,g=1,M=0;for(this[t+o]=255&A;--o>=0&&(g*=256);)A<0&&0===M&&0!==this[t+o+1]&&(M=1),this[t+o]=(A/g>>0)-M&255;return t+e},o.prototype.writeInt8=function(A,t,e){return A=+A,t|=0,e||U(this,A,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[t]=255&A,t+1},o.prototype.writeInt16LE=function(A,t,e){return A=+A,t|=0,e||U(this,A,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&A,this[t+1]=A>>>8):O(this,A,t,!0),t+2},o.prototype.writeInt16BE=function(A,t,e){return A=+A,t|=0,e||U(this,A,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=A>>>8,this[t+1]=255&A):O(this,A,t,!1),t+2},o.prototype.writeInt32LE=function(A,t,e){return A=+A,t|=0,e||U(this,A,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&A,this[t+1]=A>>>8,this[t+2]=A>>>16,this[t+3]=A>>>24):b(this,A,t,!0),t+4},o.prototype.writeInt32BE=function(A,t,e){return A=+A,t|=0,e||U(this,A,t,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),o.TYPED_ARRAY_SUPPORT?(this[t]=A>>>24,this[t+1]=A>>>16,this[t+2]=A>>>8,this[t+3]=255&A):b(this,A,t,!1),t+4},o.prototype.writeFloatLE=function(A,t,e){return v(this,A,t,!0,e)},o.prototype.writeFloatBE=function(A,t,e){return v(this,A,t,!1,e)},o.prototype.writeDoubleLE=function(A,t,e){return k(this,A,t,!0,e)},o.prototype.writeDoubleBE=function(A,t,e){return k(this,A,t,!1,e)},o.prototype.copy=function(A,t,e,n){if(e||(e=0),n||0===n||(n=this.length),t>=A.length&&(t=A.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),A.length-t=0;--i)A[i+t]=this[i+e];else if(g<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,e=void 0===e?this.length:e>>>0,A||(A=0);var g;if("number"==typeof A)for(g=t;g0||(0,I.default)(!1),null!=E&&(g+=encodeURI(E))):"("===r?i+=1:")"===r?i-=1:":"===r.charAt(0)?(a=r.substring(1),E=t[a],null!=E||i>0||(0,I.default)(!1),null!=E&&(g+=encodeURIComponent(E))):g+=r;return g.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=o,t.matchPattern=g,t.getParamNames=M,t.getParams=r,t.formatPattern=a;var E=e(11),I=function(A){return A&&A.__esModule?A:{default:A}}(E),c=Object.create(null)},function(A,t,e){"use strict";t.__esModule=!0;t.PUSH="PUSH";t.REPLACE="REPLACE";t.POP="POP",t.default={PUSH:"PUSH",REPLACE:"REPLACE",POP:"POP"}},function(A,t,e){(function(t){var n;!function(A){A.version="0.4.0"}(n||(n={}));var n;!function(A){Array.isArray||(Array.isArray=function(A){return"[object Array]"===Object.prototype.toString.call(A)})}(n||(n={}));var n;!function(A){var t=function(){function A(){}return A.prototype.getEnumerator=function(){return{moveNext:function(){return!1},current:void 0}},A.prototype.aggregate=function(A,t){for(var e=A,n=this.getEnumerator();n.moveNext();)e=t(e,n.current);return e},A.prototype.all=function(A){if(A)for(var t=this.getEnumerator(),e=0;t.moveNext();){if(!A(t.current,e))return!1;e++}return!0},A.prototype.any=function(A){for(var t=this.getEnumerator(),e=0;t.moveNext();){if(!A)return!0;if(A(t.current,e))return!0;e++}return!1},A.prototype.append=function(){for(var A=[],t=0;t-1&&(this._keys.splice(t,1),this._values.splice(t,1),this.size--,!0)},t.prototype.entries=function(){var t=this;return A.range(0,this.size).select(function(A){return[t._keys[A],t._values[A]]})},t.prototype.forEach=function(A,t){null==t&&(t=this);for(var e=0,n=this._keys,i=this._values,o=n.length;o>e;e++)A.call(t,i[e],n[e],this)},t.prototype.get=function(A){var t=this._keys.indexOf(A);return this._values[t]},t.prototype.has=function(A){return this._keys.indexOf(A)>-1},t.prototype.keys=function(){return this._keys.en()},t.prototype.set=function(A,t){var e=this._keys.indexOf(A);e>-1?this._values[e]=t:(this._keys.push(A),this._values.push(t),this.size++)},t.prototype.values=function(){return this._values.en()},t}();A.Map3=t,A.Enumerable.prototype.toMap=function(A,e){for(var n=new t,i=this.getEnumerator();i.moveNext();)n.set(A(i.current),e(i.current));return n},A.List&&(A.List.prototype.toMap=A.Enumerable.prototype.toMap)}(n||(n={})),function(A){A.Map||(A.Map=n.Map3)}("undefined"==typeof window?t:window);var n;!function(A){function t(t){var e=new A.Enumerable;return e.getEnumerator=function(){var A={current:void 0,moveNext:function(){return t(A)}};return A},e}A.anonymous=t}(n||(n={}));var n;!function(A){function t(A,t){var e,n,i=1,o={current:void 0,moveNext:function(){if(2>i){if(e=e||A.getEnumerator(),e.moveNext())return o.current=e.current,!0;i++}return n=n||t.en().getEnumerator(),n.moveNext()?(o.current=n.current,!0):(o.current=void 0,!1)}};return o}A.Enumerable.prototype.append=function(){for(var e=this,n=[],i=0;i=t?(e.current=void 0,!1):(e.current=A[n],!0)},e}function e(){return this&&Array.isArray(this)?new n(this):new A.Enumerable}var n=function(A){function e(e){A.call(this),this.getEnumerator=function(){return t(e)},this.toArray=function(){return e.slice(0)}}return i(e,A),e}(A.Enumerable);try{Object.defineProperty(Array.prototype,"en",{value:e,enumerable:!1,writable:!1,configurable:!1})}catch(A){Array.prototype.en=e}}(n||(n={}));var n;!function(A){function t(A,t){var e,n=!1,i={current:void 0,moveNext:function(){return e||(e=A.getEnumerator()),i.current=void 0,e.moveNext()?(i.current=e.current,!0):!n&&(n=!0,e=t.getEnumerator(),!!e.moveNext()&&(i.current=e.current,!0))}};return i}A.Enumerable.prototype.concat=function(e){var n=this,i=e instanceof Array?e.en():e,o=new A.Enumerable;return o.getEnumerator=function(){return t(n,i)},o},A.List&&(A.List.prototype.concat=A.Enumerable.prototype.concat)}(n||(n={}));var n;!function(A){function t(A,t){var e,n=[],i={current:void 0,moveNext:function(){if(e||(e=A.getEnumerator()),i.current=void 0,!t){for(;e.moveNext();)if(n.indexOf(e.current)<0)return n.push(i.current=e.current),!0;return!1}for(;e.moveNext();){for(var o=0,g=n.length,M=!1;g>o&&!M;o++)M=!!t(n[o],e.current);if(!M)return n.push(i.current=e.current),!0}return!1}};return i}A.Enumerable.prototype.distinct=function(e){var n=this,i=new A.Enumerable;return i.getEnumerator=function(){return t(n,e)},i},A.List&&(A.List.prototype.distinct=A.Enumerable.prototype.distinct)}(n||(n={}));var n;!function(A){function t(A,t,e){e=e||function(A,t){return A===t};var n,i={current:void 0,moveNext:function(){for(n||(n=A.getEnumerator()),i.current=void 0;n.moveNext();){for(var o=!1,g=t.getEnumerator();g.moveNext()&&!o;)o=e(n.current,g.current);if(!o)return i.current=n.current,!0}return!1}};return i}A.Enumerable.prototype.except=function(e,n){var i=this,o=e instanceof Array?e.en():e,g=new A.Enumerable;return g.getEnumerator=function(){return t(i,o,n)},g},A.List&&(A.List.prototype.except=A.Enumerable.prototype.except)}(n||(n={})),Function.prototype.fromJson=function(A,t){function e(A,t){if(null==A)return A;if(t instanceof Function)return t(A);if(t instanceof Array){if(!((t=t[0])instanceof Function&&A instanceof Array))return;for(var e=[],n=0;n-1)){var g=e(A[o],this.$jsonMappings[o]);void 0!==g&&(n[o]=g,i.push(o))}for(var o in A)i.indexOf(o)>-1||(n[o]=A[o]);return n};var n;!function(A){function t(A,t,n){var i,o=0,g={current:void 0,moveNext:function(){return i||(i=e(A,t,n)),g.current=void 0,!(o>=i.length)&&(g.current=i[o],o++,!0)}};return g}function e(A,t,e){e=e||function(A,t){return A===t};for(var i,o=[],g=[],M=A.getEnumerator();M.moveNext();){i=t(M.current);for(var r=-1,a=0,E=g.length;E>a;a++)if(e(i,g[a])){r=a;break}var I;0>r?(g.push(i),o.push(I=new n(i))):I=o[r],I._add(M.current)}return o}var n=function(A){function t(t){var e=this;A.call(this),this.key=t,this._arr=[],this.getEnumerator=function(){return e._arr.en().getEnumerator()}}return i(t,A),t.prototype._add=function(A){this._arr.push(A)},t}(A.Enumerable);A.Enumerable.prototype.groupBy=function(e,n){var i=this,o=new A.Enumerable;return o.getEnumerator=function(){return t(i,e,n)},o},A.List&&(A.List.prototype.groupBy=A.Enumerable.prototype.groupBy)}(n||(n={}));var n;!function(A){function t(t,e,n){n=n||function(A,t){return A===t};var i,o={current:void 0,moveNext:function(){for(i||(i=A.en(t).distinct().getEnumerator()),o.current=void 0;i.moveNext();){for(var g=!1,M=e.getEnumerator();M.moveNext()&&!g;)g=n(i.current,M.current);if(g)return o.current=i.current,!0}return!1}};return o}A.Enumerable.prototype.intersect=function(e,n){var i=this,o=e instanceof Array?e.en():e,g=new A.Enumerable;return g.getEnumerator=function(){return t(i,o,n)},g},A.List&&(A.List.prototype.intersect=A.Enumerable.prototype.intersect)}(n||(n={}));var n;!function(A){function t(t,e,n,i,o,g){g=g||function(A,t){return A===t};var M,r,a=0,E={current:void 0,moveNext:function(){if(E.current=void 0,!M){if(M=t.getEnumerator(),!M.moveNext())return!1;r=A.en(e).toArray()}var I;do{for(;a=t?(e.current=void 0,!1):(e.current=A[n],!0)},e},e.prototype.remove=function(A){return this.removeWhere(function(t){return t===A}).any()},e.prototype.removeWhere=function(A){for(var t,e=[],n=this.length-1;n>=0;n--)t=this[n],!0===A(t,n)&&(this.splice(n,1),e.push(t));return e.en().reverse()}}(n||(n={}));var n;!function(A){function t(A,t,n,i){return new e(A,t,n,i)}var e=function(t){function e(A,e,n,i){t.call(this),this.Source=A,i=i||function(A,t){return A>t?1:t>A?-1:0};var o=!0===n?-1:1;this.Sorter=function(A,t){return o*i(e(A),e(t))}}return i(e,t),e.prototype.getEnumerator=function(){var t,e=this.Source,n=this.Sorter,i=0,o={current:void 0,moveNext:function(){return t||(t=A.en(e).toArray(),t.sort(n)),o.current=void 0,!(i>=t.length)&&(o.current=t[i],i++,!0)}};return o},e.prototype.thenBy=function(A,t){return new n(this,A,!1,t)},e.prototype.thenByDescending=function(A,t){return new n(this,A,!0,t)},e}(A.Enumerable),n=function(A){function t(t,e,n,i){A.call(this,t,e,n,i);var o=t.Sorter,g=this.Sorter;this.Sorter=function(A,t){return o(A,t)||g(A,t)}}return i(t,A),t}(e),o=A.Enumerable.prototype;o.orderBy=function(A,e){return t(this,A,!1,e)},o.orderByDescending=function(A,e){return t(this,A,!0,e)},A.List&&(A.List.prototype.orderBy=A.Enumerable.prototype.orderBy,A.List.prototype.orderByDescending=A.Enumerable.prototype.orderByDescending)}(n||(n={}));var n;!function(A){function t(A,t){var e,n,i=1,o={current:void 0,moveNext:function(){if(2>i){if(e=e||t.en().getEnumerator(),e.moveNext())return o.current=e.current,!0;i++}return n=n||A.getEnumerator(),n.moveNext()?(o.current=n.current,!0):(o.current=void 0,!1)}};return o}A.Enumerable.prototype.prepend=function(){for(var e=this,n=[],i=0;i=t)&&(i.current=n,!0)}};return i}function e(e,n,i){if(e=e||0,n=n||0,e>n)throw new Error("Start cannot be greater than end.");null==i&&(i=1);var o=new A.Enumerable;return o.getEnumerator=function(){return t(e,n,i)},o}A.range=e}(n||(n={}));var n;!function(A){function t(t){var e,n=0,i={current:void 0,moveNext:function(){return e||(e=A.en(t).toArray(),n=e.length),n--,i.current=e[n],n>=0}};return i}A.Enumerable.prototype.reverse=function(){var e=this,n=new A.Enumerable;return n.getEnumerator=function(){return t(e)},n},A.List&&(A.List.prototype.reverse=A.Enumerable.prototype.reverse)}(n||(n={}));var n;!function(A){function t(A,t){if(0===(t=t||0))return Math.round(A);var e=Math.pow(10,t);return Math.round(A*e)/e}A.round=t}(n||(n={}));var n;!function(A){function t(A,t){var e,n=0,i={current:void 0,moveNext:function(){return e||(e=A.getEnumerator()),!!e.moveNext()&&(i.current=t(e.current,n),n++,!0)}};return i}function e(t,e){var n,i,o={current:void 0,moveNext:function(){for(o.current=void 0,n||(n=t.getEnumerator());!i||!i.moveNext();){if(!n.moveNext())return!1;i=A.selectorEnumerator(e(n.current))}return o.current=i.current,!0}};return o}A.Enumerable.prototype.select=function(e){var n=this,i=new A.Enumerable;return i.getEnumerator=function(){return t(n,e)},i},A.Enumerable.prototype.selectMany=function(t){var n=this,i=new A.Enumerable;return i.getEnumerator=function(){return e(n,t)},i},A.List&&(A.List.prototype.select=A.Enumerable.prototype.select,A.List.prototype.selectMany=A.Enumerable.prototype.selectMany)}(n||(n={}));var n;!function(A){function t(A){return Array.isArray(A)?A.en().getEnumerator():null!=A&&"function"==typeof A.getEnumerator?A.getEnumerator():null}A.selectorEnumerator=t}(n||(n={}));var n;!function(A){function t(A,t){var e,n={current:void 0,moveNext:function(){if(!e){e=A.getEnumerator();for(var i=0;t>i;i++)if(!e.moveNext())return!1}return e.moveNext()?(n.current=e.current,!0):(n.current=void 0,!1)}};return n}function e(A,t){var e,n={current:void 0,moveNext:function(){if(!e){e=A.getEnumerator();for(var i=0;e.moveNext();i++)if(!t(n.current=e.current,i))return!0;return n.current=void 0,!1}return e.moveNext()?(n.current=e.current,!0):(n.current=void 0,!1)}};return n}A.Enumerable.prototype.skip=function(e){var n=this,i=new A.Enumerable;return i.getEnumerator=function(){return t(n,e)},i},A.Enumerable.prototype.skipWhile=function(t){var n=this,i=new A.Enumerable;return i.getEnumerator=function(){return e(n,t)},i},A.List&&(A.List.prototype.skip=A.Enumerable.prototype.skip,A.List.prototype.skipWhile=A.Enumerable.prototype.skipWhile)}(n||(n={}));var n;!function(A){function t(A,t){var e,n=0,i={current:void 0,moveNext:function(){return e||(e=A.getEnumerator()),!(++n>t)&&(i.current=void 0,!!e.moveNext()&&(i.current=e.current,!0))}};return i}function e(A,t){var e,n=0,i={current:void 0,moveNext:function(){return e||(e=A.getEnumerator()),e.moveNext()&&t(e.current,n)?(n++,i.current=e.current,!0):(i.current=void 0,!1)}};return i}A.Enumerable.prototype.take=function(e){var n=this,i=new A.Enumerable;return i.getEnumerator=function(){return t(n,e)},i},A.Enumerable.prototype.takeWhile=function(t){var n=this,i=new A.Enumerable;return i.getEnumerator=function(){return e(n,t)},i},A.List&&(A.List.prototype.take=A.Enumerable.prototype.take,A.List.prototype.takeWhile=A.Enumerable.prototype.takeWhile)}(n||(n={}));var n;!function(A){function t(t,e){var n,i=!1,o=[],g={current:void 0,moveNext:function(){if(i){if(null==n)return!1;o.push(n),n=A.selectorEnumerator(e(g.current))}else n=t.getEnumerator(),i=!0;for(;!(n&&n.moveNext()||o.length<1);)n=o.pop();return g.current=null==n?void 0:n.current,void 0!==g.current}};return g}function e(t,e,n){var i,o=!1,g=[],M={current:void 0,moveNext:function(){if(o){if(null==i)return!1;g.push(i),i=A.selectorEnumerator(e(M.current))}else i=t.getEnumerator(),o=!0;do{for(;!(i&&i.moveNext()||g.length<1);)i=g.pop();M.current=null==i?void 0:i.current}while(n(M.current));return void 0!==M.current}};return M}A.Enumerable.prototype.traverse=function(e){var n=this,i=new A.Enumerable;return i.getEnumerator=function(){return t(n,e)},i},A.Enumerable.prototype.traverseUnique=function(t,n){var i=this,o=[],g=new A.Enumerable;return g.getEnumerator=n?function(){return e(i,t,function(A){return!!o.some(function(t){return n(A,t)})||(o.push(A),!1)})}:function(){return e(i,t,function(A){return o.indexOf(A)>-1||(o.push(A),!1)})},g},A.List&&(A.List.prototype.traverse=A.Enumerable.prototype.traverse,A.List.prototype.traverseUnique=A.Enumerable.prototype.traverseUnique)}(n||(n={}));var n;!function(A){function t(t,e,n){n=n||function(A,t){return A===t};var i,o,g=[],M={current:void 0,moveNext:function(){if(i||(i=A.en(t).distinct().getEnumerator()),M.current=void 0,!o&&i.moveNext())return g.push(M.current=i.current),!0;for(o=o||A.en(e).distinct().getEnumerator();o.moveNext();){for(var r=0,a=!1,E=g.length;E>r&&!a;r++)a=n(g[r],o.current);if(!a)return M.current=o.current,!0}return!1}};return M}A.Enumerable.prototype.union=function(e,n){var i=this,o=e instanceof Array?e.en():e,g=new A.Enumerable;return g.getEnumerator=function(){return t(i,o,n)},g},A.List&&(A.List.prototype.union=A.Enumerable.prototype.union)}(n||(n={}));var n;!function(A){function t(A,t){var e,n={current:void 0,moveNext:function(){e||(e=A.getEnumerator());for(var i;e.moveNext();)if(t(i=e.current))return n.current=i,!0;return!1}};return n}A.Enumerable.prototype.where=function(e){var n=this,i=new A.Enumerable;return i.getEnumerator=function(){return t(n,e)},i},A.List&&(A.List.prototype.where=A.Enumerable.prototype.where)}(n||(n={}));var n;!function(A){function t(t){var n=new A.Enumerable;return n.getEnumerator=function(){return e(t)},n}function e(A){var t=A.getEnumerator(),e={current:void 0,moveNext:void 0};return e.moveNext=function(){return t.moveNext()?(e.current=t.current,!0):(e.current=void 0,!1)},e}A.en=t}(n||(n={}));var n;n.en;!function(A){function t(A,t,e){var n,i,o={current:void 0,moveNext:function(){return n||(n=A.getEnumerator()),i||(i=t.getEnumerator()),o.current=void 0,!(!n.moveNext()||!i.moveNext())&&(o.current=e(n.current,i.current),!0)}};return o}A.Enumerable.prototype.zip=function(e,n){var i=this,o=e instanceof Array?e.en():e,g=new A.Enumerable;return g.getEnumerator=function(){return t(i,o,n)},g},A.List&&(A.List.prototype.zip=A.Enumerable.prototype.zip)}(n||(n={})),Array.prototype.clone||(Array.prototype.clone=function(){return this.slice(0)}),Array.prototype.contains||(Array.prototype.contains=function(A){return-1!==this.indexOf(A)}),Array.prototype.indexOf||(Array.prototype.indexOf=function(A,t){var e=t||0,n=this.length;for(e;n>e;e++)if(this[e]===A)return e;return-1}),Array.prototype.indexOfTest=function(A,t){var e=t||0,n=this.length;for(e;n>e;e++)if(A(this[e]))return e;return-1},Array.prototype.insert=function(A,t){this.splice(t,0,A)},Array.prototype.last||(Array.prototype.last=function(){return this[this.length-1]}),Array.prototype.move=function(A,t){this.splice(t,0,this.splice(A,1)[0])},Array.prototype.remove=function(A){var t=this.indexOf(A);t>-1&&this.splice(t,1)},Array.prototype.removeAt=function(A){this.splice(A,1)},Math.clamp=function(A,t,e){return Math.min(Math.max(A,t),e)},Math.constrain=function(A,t,e){return Math.clamp(A,t,e)},Math.degreesToRadians=function(A){return Math.TAU*(A/360)},Math.distanceBetween=function(A,t,e,n){return Math.sqrt(Math.sq(e-A)+Math.sq(n-t))},Math.lerp=function(A,t,e){return A+(t-A)*e},Math.mag=function(A,t,e){return Math.sqrt(A*A+t*t+e*e)},Math.map=function(A,t,e,n,i){return n+(A-t)/(e-t)*(i-n)},Math.median=function(A){A.sort(function(A,t){return A-t});var t=Math.floor(A.length/2);return A.length%2?A[t]:(A[t-1]+A[t])/2},Math.normalise=function(A,t,e){return(A-t)/(e-t)},Math.radiansToDegrees=function(A){return 360*A/Math.TAU},Math.randomBetween=function(A,t){return t||(t=A,A=0),A>=t?A:A+(t-A)*Math.random()},Math.roundToDecimalPlace=function(A,t){return Math.round(A*Math.pow(10,t))/Math.pow(10,t)},Math.sq=function(A){return A*A},Math.TAU=2*Math.PI,Number.prototype.isInteger||(Number.prototype.isInteger=function(){return this%1==0}),"function"!=typeof Object.create&&(Object.create=function(A,t){function e(){}e.prototype=A;var n=new e;if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i].value);return n}),Object.keys||(Object.keys=function(){var A=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),e=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=e.length;return function(i){if("object"!=typeof i&&"function"!=typeof i||null===i)throw new TypeError("Object.keys called on non-object");var o=[];for(var g in i)A.call(i,g)&&o.push(g);if(t)for(var M=0;n>M;M++)A.call(i,e[M])&&o.push(e[M]);return o}}()),String.prototype.b64_to_utf8=function(){return decodeURIComponent(escape(window.atob(this)))},String.prototype.contains=function(A){return-1!==this.indexOf(A)},String.prototype.endsWith||(String.prototype.endsWith=function(A){return-1!==this.indexOf(A,this.length-A.length)}),String.format=function(){for(var A=arguments[0],t=0;tA;A++)t=this.charCodeAt(A),n=(n<<5)-n+t,n|=0;return n.toString()},String.prototype.isAlphanumeric=function(){return/^[a-zA-Z0-9]*$/.test(this)},String.prototype.ltrim=function(){return this.replace(/^\s+/,"")},String.prototype.rtrim=function(){return this.replace(/\s+$/,"")},String.prototype.startsWith||(String.prototype.startsWith=function(A){return 0==this.indexOf(A)}),String.prototype.toCssClass=function(){return this.replace(/[^a-z0-9]/g,function(A){var t=A.charCodeAt(0);return 32==t?"-":t>=65&&90>=t?"_"+A.toLowerCase():"__"+("000"+t.toString(16)).slice(-4)})},String.prototype.toFileName=function(){return this.replace(/[^a-z0-9]/gi,"_").toLowerCase()},String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}),String.prototype.utf8_to_b64=function(){return window.btoa(unescape(encodeURIComponent(this)))};var o;!function(A){A.CONTINUE=100,A.SWITCHING_PROTOCOLS=101,A.PROCESSING=102,A.OK=200,A.CREATED=201,A.ACCEPTED=202,A.NON_AUTHORITATIVE_INFORMATION=203,A.NO_CONTENT=204,A.RESET_CONTENT=205,A.PARTIAL_CONTENT=206,A.MULTI_STATUS=207,A.MULTIPLE_CHOICES=300,A.MOVED_PERMANENTLY=301,A.MOVED_TEMPORARILY=302,A.SEE_OTHER=303,A.NOT_MODIFIED=304,A.USE_PROXY=305,A.TEMPORARY_REDIRECT=307,A.BAD_REQUEST=400,A.UNAUTHORIZED=401,A.PAYMENT_REQUIRED=402,A.FORBIDDEN=403,A.NOT_FOUND=404,A.METHOD_NOT_ALLOWED=405,A.NOT_ACCEPTABLE=406,A.PROXY_AUTHENTICATION_REQUIRED=407,A.REQUEST_TIME_OUT=408,A.CONFLICT=409,A.GONE=410,A.LENGTH_REQUIRED=411,A.PRECONDITION_FAILED=412,A.REQUEST_ENTITY_TOO_LARGE=413,A.REQUEST_URI_TOO_LARGE=414,A.UNSUPPORTED_MEDIA_TYPE=415,A.REQUESTED_RANGE_NOT_SATISFIABLE=416,A.EXPECTATION_FAILED=417,A.IM_A_TEAPOT=418,A.UNPROCESSABLE_ENTITY=422,A.LOCKED=423,A.FAILED_DEPENDENCY=424,A.UNORDERED_COLLECTION=425,A.UPGRADE_REQUIRED=426,A.PRECONDITION_REQUIRED=428,A.TOO_MANY_REQUESTS=429,A.REQUEST_HEADER_FIELDS_TOO_LARGE=431,A.INTERNAL_SERVER_ERROR=500,A.NOT_IMPLEMENTED=501,A.BAD_GATEWAY=502,A.SERVICE_UNAVAILABLE=503,A.GATEWAY_TIME_OUT=504,A.HTTP_VERSION_NOT_SUPPORTED=505,A.VARIANT_ALSO_NEGOTIATES=506,A.INSUFFICIENT_STORAGE=507,A.BANDWIDTH_LIMIT_EXCEEDED=509,A.NOT_EXTENDED=510,A.NETWORK_AUTHENTICATION_REQUIRED=511}(o||(o={}));var g;!function(A){var t=function(){function A(A){this.value="",A&&(this.value=A.toLowerCase())}return A.prototype.toString=function(){return this.value},A}();A.StringValue=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(A){function t(){A.apply(this,arguments)}return i(t,A),t.prototype.bookmarking=function(){return new t(t.BOOKMARKING.toString())},t.prototype.classifying=function(){return new t(t.CLASSIFYING.toString())},t.prototype.commenting=function(){return new t(t.COMMENTING.toString())},t.prototype.describing=function(){return new t(t.DESCRIBING.toString())},t.prototype.editing=function(){return new t(t.EDITING.toString())},t.prototype.highlighting=function(){return new t(t.HIGHLIGHTING.toString())},t.prototype.identifying=function(){return new t(t.IDENTIFYING.toString())},t.prototype.linking=function(){return new t(t.LINKING.toString())},t.prototype.moderating=function(){return new t(t.MODERATING.toString())},t.prototype.painting=function(){return new t(t.PAINTING.toString())},t.prototype.questioning=function(){return new t(t.QUESTIONING.toString())},t.prototype.replying=function(){return new t(t.REPLYING.toString())},t.prototype.tagging=function(){return new t(t.TAGGING.toString())},t.prototype.transcribing=function(){return new t(t.TRANSCRIBING.toString())},t.BOOKMARKING=new t("oa:bookmarking"),t.CLASSIFYING=new t("oa:classifying"),t.COMMENTING=new t("oa:commenting"),t.DESCRIBING=new t("oa:describing"),t.EDITING=new t("oa:editing"),t.HIGHLIGHTING=new t("oa:highlighting"),t.IDENTIFYING=new t("oa:identifying"),t.LINKING=new t("oa:linking"),t.MODERATING=new t("oa:moderating"),t.PAINTING=new t("sc:painting"),t.QUESTIONING=new t("oa:questioning"),t.REPLYING=new t("oa:replying"),t.TAGGING=new t("oa:tagging"),t.TRANSCRIBING=new t("oad:transcribing"),t}(A.StringValue);A.AnnotationMotivation=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(A){function t(){A.apply(this,arguments)}return i(t,A),t.prototype.canvas=function(){return new t(t.CANVAS.toString())},t.prototype.document=function(){return new t(t.DOCUMENT.toString())},t.prototype.image=function(){return new t(t.IMAGE.toString())},t.prototype.movingimage=function(){return new t(t.MOVINGIMAGE.toString())},t.prototype.physicalobject=function(){return new t(t.PHYSICALOBJECT.toString())},t.prototype.sound=function(){return new t(t.SOUND.toString())},t.CANVAS=new t("sc:canvas"),t.DOCUMENT=new t("foaf:document"),t.IMAGE=new t("dcTypes:image"),t.MOVINGIMAGE=new t("dctypes:movingimage"),t.PHYSICALOBJECT=new t("dctypes:physicalobject"),t.SOUND=new t("dctypes:sound"),t}(A.StringValue);A.ElementType=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(A){function t(){A.apply(this,arguments)}return i(t,A),t.prototype.manifest=function(){return new t(t.MANIFEST.toString())},t.prototype.collection=function(){return new t(t.COLLECTION.toString())},t.MANIFEST=new t("sc:manifest"),t.COLLECTION=new t("sc:collection"),t}(A.StringValue);A.IIIFResourceType=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(A){function t(){A.apply(this,arguments)}return i(t,A),t.prototype.empty=function(){return new t(t.EMPTY.toString())},t.prototype.manuscript=function(){return new t(t.MANUSCRIPT.toString())},t.prototype.monograph=function(){return new t(t.MONOGRAPH.toString())},t.EMPTY=new t(""),t.MANUSCRIPT=new t("manuscript"),t.MONOGRAPH=new t("monograph"),t}(A.StringValue);A.ManifestType=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(A){function t(){A.apply(this,arguments)}return i(t,A),t.prototype.pdf=function(){return new t(t.PDF.toString())},t.prototype.doc=function(){return new t(t.DOC.toString())},t.prototype.docx=function(){return new t(t.DOCX.toString())},t.PDF=new t("application/pdf"),t.DOC=new t("application/msword"),t.DOCX=new t("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t}(A.StringValue);A.RenderingFormat=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(A){function t(){A.apply(this,arguments)}return i(t,A),t.prototype.jpgimage=function(){return new t(t.JPGIMAGE.toString())},t.prototype.pdf=function(){return new t(t.PDF.toString())},t.JPGIMAGE=new t("image/jpeg"),t.PDF=new t("application/pdf"),t}(A.StringValue);A.ResourceFormat=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(A){function t(){A.apply(this,arguments)}return i(t,A),t.prototype.image=function(){return new t(t.IMAGE.toString())},t.IMAGE=new t("dctypes:image"),t}(A.StringValue);A.ResourceType=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(A){function t(){A.apply(this,arguments)}return i(t,A),t.prototype.autoComplete=function(){return new t(t.AUTOCOMPLETE.toString())},t.prototype.iiif1ImageLevel1=function(){return new t(t.IIIF1IMAGELEVEL1.toString())},t.prototype.iiif1ImageLevel2=function(){return new t(t.IIIF1IMAGELEVEL2.toString())},t.prototype.iiif2ImageLevel1=function(){return new t(t.IIIF2IMAGELEVEL1.toString())},t.prototype.iiif2ImageLevel2=function(){return new t(t.IIIF2IMAGELEVEL2.toString())},t.prototype.ixif=function(){return new t(t.IXIF.toString())},t.prototype.login=function(){return new t(t.LOGIN.toString())},t.prototype.clickThrough=function(){return new t(t.CLICKTHROUGH.toString())},t.prototype.restricted=function(){return new t(t.RESTRICTED.toString())},t.prototype.logout=function(){return new t(t.LOGOUT.toString())},t.prototype.otherManifestations=function(){return new t(t.OTHERMANIFESTATIONS.toString())},t.prototype.searchWithin=function(){return new t(t.SEARCHWITHIN.toString())},t.prototype.stanfordIIIFImageCompliance1=function(){return new t(t.STANFORDIIIFIMAGECOMPLIANCE1.toString())},t.prototype.stanfordIIIFImageCompliance2=function(){return new t(t.STANFORDIIIFIMAGECOMPLIANCE2.toString())},t.prototype.stanfordIIIFImageConformance1=function(){return new t(t.STANFORDIIIFIMAGECONFORMANCE1.toString())},t.prototype.stanfordIIIFImageConformance2=function(){return new t(t.STANFORDIIIFIMAGECONFORMANCE2.toString())},t.prototype.stanfordIIIF1ImageCompliance1=function(){return new t(t.STANFORDIIIF1IMAGECOMPLIANCE1.toString())},t.prototype.stanfordIIIF1ImageCompliance2=function(){return new t(t.STANFORDIIIF1IMAGECOMPLIANCE2.toString())},t.prototype.stanfordIIIF1ImageConformance1=function(){return new t(t.STANFORDIIIF1IMAGECONFORMANCE1.toString())},t.prototype.stanfordIIIF1ImageConformance2=function(){return new t(t.STANFORDIIIF1IMAGECONFORMANCE2.toString())},t.prototype.token=function(){return new t(t.TOKEN.toString())},t.prototype.trackingExtensions=function(){return new t(t.TRACKINGEXTENSIONS.toString())},t.prototype.uiExtensions=function(){return new t(t.UIEXTENSIONS.toString())},t.AUTOCOMPLETE=new t("http://iiif.io/api/search/0/autocomplete"),t.STANFORDIIIFIMAGECOMPLIANCE0=new t("http://library.stanford.edu/iiif/image-api/compliance.html#level0"),t.STANFORDIIIFIMAGECOMPLIANCE1=new t("http://library.stanford.edu/iiif/image-api/compliance.html#level1"),t.STANFORDIIIFIMAGECOMPLIANCE2=new t("http://library.stanford.edu/iiif/image-api/compliance.html#level2"),t.STANFORDIIIFIMAGECONFORMANCE0=new t("http://library.stanford.edu/iiif/image-api/conformance.html#level0"),t.STANFORDIIIFIMAGECONFORMANCE1=new t("http://library.stanford.edu/iiif/image-api/conformance.html#level1"),t.STANFORDIIIFIMAGECONFORMANCE2=new t("http://library.stanford.edu/iiif/image-api/conformance.html#level2"),t.STANFORDIIIF1IMAGECOMPLIANCE0=new t("http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0"),t.STANFORDIIIF1IMAGECOMPLIANCE1=new t("http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1"),t.STANFORDIIIF1IMAGECOMPLIANCE2=new t("http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2"),t.STANFORDIIIF1IMAGECONFORMANCE0=new t("http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0"),t.STANFORDIIIF1IMAGECONFORMANCE1=new t("http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1"),t.STANFORDIIIF1IMAGECONFORMANCE2=new t("http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2"),t.IIIF1IMAGELEVEL0=new t("http://iiif.io/api/image/1/level0.json"),t.IIIF1IMAGELEVEL0PROFILE=new t("http://iiif.io/api/image/1/profiles/level0.json"),t.IIIF1IMAGELEVEL1=new t("http://iiif.io/api/image/1/level1.json"),t.IIIF1IMAGELEVEL1PROFILE=new t("http://iiif.io/api/image/1/profiles/level1.json"),t.IIIF1IMAGELEVEL2=new t("http://iiif.io/api/image/1/level2.json"),t.IIIF1IMAGELEVEL2PROFILE=new t("http://iiif.io/api/image/1/profiles/level2.json"),t.IIIF2IMAGELEVEL0=new t("http://iiif.io/api/image/2/level0.json"),t.IIIF2IMAGELEVEL0PROFILE=new t("http://iiif.io/api/image/2/profiles/level0.json"),t.IIIF2IMAGELEVEL1=new t("http://iiif.io/api/image/2/level1.json"),t.IIIF2IMAGELEVEL1PROFILE=new t("http://iiif.io/api/image/2/profiles/level1.json"),t.IIIF2IMAGELEVEL2=new t("http://iiif.io/api/image/2/level2.json"),t.IIIF2IMAGELEVEL2PROFILE=new t("http://iiif.io/api/image/2/profiles/level2.json"),t.IXIF=new t("http://wellcomelibrary.org/ld/ixif/0/alpha.json"),t.LOGIN=new t("http://iiif.io/api/auth/0/login"),t.CLICKTHROUGH=new t("http://iiif.io/api/auth/0/login/clickthrough"),t.RESTRICTED=new t("http://iiif.io/api/auth/0/login/restricted"),t.LOGOUT=new t("http://iiif.io/api/auth/0/logout"),t.OTHERMANIFESTATIONS=new t("http://iiif.io/api/otherManifestations.json"),t.SEARCHWITHIN=new t("http://iiif.io/api/search/0/search"),t.TOKEN=new t("http://iiif.io/api/auth/0/token"),t.TRACKINGEXTENSIONS=new t("http://universalviewer.io/tracking-extensions-profile"),t.UIEXTENSIONS=new t("http://universalviewer.io/ui-extensions-profile"),t}(A.StringValue);A.ServiceProfile=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(A){function t(){A.apply(this,arguments)}return i(t,A),t.prototype.leftToRight=function(){return new t(t.LEFTTORIGHT.toString())},t.prototype.rightToLeft=function(){return new t(t.RIGHTTOLEFT.toString())},t.prototype.topToBottom=function(){return new t(t.TOPTOBOTTOM.toString())},t.prototype.bottomToTop=function(){return new t(t.BOTTOMTOTOP.toString())},t.LEFTTORIGHT=new t("left-to-right"),t.RIGHTTOLEFT=new t("right-to-left"),t.TOPTOBOTTOM=new t("top-to-bottom"),t.BOTTOMTOTOP=new t("bottom-to-top"),t}(A.StringValue);A.ViewingDirection=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(A){function t(){A.apply(this,arguments)}return i(t,A),t.prototype.continuous=function(){return new t(t.CONTINUOUS.toString())},t.prototype.empty=function(){return new t(t.EMPTY.toString())},t.prototype.individuals=function(){return new t(t.INDIVIDUALS.toString())},t.prototype.nonPaged=function(){return new t(t.NONPAGED.toString())},t.prototype.paged=function(){return new t(t.PAGED.toString())},t.prototype.top=function(){return new t(t.TOP.toString())},t.CONTINUOUS=new t("continuous"),t.EMPTY=new t(""),t.INDIVIDUALS=new t("individuals"),t.NONPAGED=new t("non-paged"),t.PAGED=new t("paged"),t.TOP=new t("top"),t}(A.StringValue);A.ViewingHint=t}(g||(g={}));var g;!function(A){var t=function(){function A(A){this.__jsonld=A,this.context=this.getProperty("@context"),this.id=this.getProperty("@id")}return A.prototype.getProperty=function(A){return this.__jsonld[A]},A}();A.JSONLDResource=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(t){function e(A,e){t.call(this,A),this.options=e}return i(e,t),e.prototype.getLabel=function(){return A.Utils.getLocalisedValue(this.getProperty("label"),this.options.locale)},e.prototype.getMetadata=function(){var t=this.getProperty("metadata");if(!t)return[];for(var e=0;e-1||this.externalResource.data["@context"].indexOf("/1.1/context.json")>-1||this.externalResource.data["@context"].indexOf("/1/context.json")>-1)&&(i="native");else{var g=this.getImages();if(g&&g.length){var M=g[0],r=M.getResource(),a=r.getServices();if(o||(o=r.getWidth()),a.length){var E=a[0];e=E.id,i=A.Utils.getImageQuality(E.getProfile())}}if(!e)return void 0===this.__jsonld.thumbnail?null:this.__jsonld.thumbnail}return n=o+",",[e,"full",n,0,i+".jpg"].join("/")},e.prototype.getImages=function(){var t=[];if(!this.__jsonld.images)return t;for(var e=0;e1},e.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?new A.ViewingDirection(this.getProperty("viewingDirection")):A.ViewingDirection.LEFTTORIGHT},e.prototype.getViewingHint=function(){return this.getProperty("viewingHint")?new A.ViewingHint(this.getProperty("viewingHint")):A.ViewingHint.EMPTY},e}(A.IIIFResource);A.Manifest=t}(g||(g={}));var g,i=this&&this.__extends||function(A,t){function e(){this.constructor=A}for(var n in t)t.hasOwnProperty(n)&&(A[n]=t[n]);A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)};!function(A){var t=function(t){function e(A,e){t.call(this,A,e),this.collections=[],this.manifests=[],A.__collection=this}return i(e,t),e.prototype.getCollectionByIndex=function(A){var t=this.collections[A];return t.options.index=A,t.load()},e.prototype.getManifestByIndex=function(A){var t=this.manifests[A];return t.options.index=A,t.load()},e.prototype.getTotalCollections=function(){return this.collections.length},e.prototype.getTotalManifests=function(){return this.manifests.length},e.prototype.getTree=function(){return t.prototype.getTree.call(this),this.treeRoot.data.type=A.TreeNodeType.COLLECTION.toString(),this._parseManifests(this),this._parseCollections(this),this.generateTreeNodeIds(this.treeRoot),this.treeRoot},e.prototype._parseManifests=function(t){if(t.manifests&&t.manifests.length)for(var e=0;e=0;t--){var e=this.getCanvasByIndex(t),n=e.getLabel();if(A){if(/^[a-zA-Z0-9]*$/.test(n))return n}else if(n)return n}return this.options.defaultLabel},e.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},e.prototype.getNextPageIndex=function(t,e){var n;if(e){var i=this.getPagedIndices(t);n=this.getViewingDirection().toString()===A.ViewingDirection.RIGHTTOLEFT.toString()?i[0]+1:r(i)+1}else n=t+1;return n>this.getLastPageIndex()?-1:n},e.prototype.getPagedIndices=function(t,e){var n=[];return e?(n=this.isFirstCanvas(t)||this.isLastCanvas(t)?[t]:t%2?[t,t+1]:[t-1,t],this.getViewingDirection().toString()===A.ViewingDirection.RIGHTTOLEFT.toString()&&(n=n.reverse())):n.push(t),n},e.prototype.getPrevPageIndex=function(t,e){var n;if(e){var i=this.getPagedIndices(t);n=this.getViewingDirection().toString()===A.ViewingDirection.RIGHTTOLEFT.toString()?r(i)-1:i[0]-1}else n=t-1;return n},e.prototype.getStartCanvasIndex=function(){var A=this.getStartCanvas();if(A)for(var t=0;tthis.getTotalCanvases()-1},e.prototype.isFirstCanvas=function(A){return 0===A},e.prototype.isLastCanvas=function(A){return A===this.getTotalCanvases()-1},e.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},e.prototype.isPagingEnabled=function(){return this.getViewingHint().toString()===A.ViewingHint.PAGED.toString()},e.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2==0},e}(A.ManifestResource);A.Sequence=t}(g||(g={}));var g,c=e(368);!function(A){var t=function(){function t(){}return t.parse=function(A,t){return this.parseJson(JSON.parse(A),t)},t.parseJson=function(A,t){var e;switch(t&&t.navDate&&!isNaN(t.navDate.getTime())&&(A.navDate=t.navDate.toString()),A["@type"]){case"sc:Collection":e=this.parseCollection(A,t);break;case"sc:Manifest":e=this.parseManifest(A,t);break;default:return null}return e.isLoaded=!0,e},t.parseCollection=function(t,e){var n=new A.Collection(t,e);return n.index=e?e.index||0:0,this.parseCollections(n,e),this.parseManifests(n,e),n},t.parseCollections=function(A,t){var e=A.__jsonld.collections;if(e)for(var n=0;n-1&&A%1==0&&A<=N}function i(A){return o(A)&&c.call(A)==M}function o(A){var t=typeof A;return!!A&&("object"==t||"function"==t)}function g(A){return null!=A&&(i(A)?s.test(E.call(A)):e(A)&&r.test(A))}var M="[object Function]",r=/^\[object .+?Constructor\]$/,a=Object.prototype,E=Function.prototype.toString,I=a.hasOwnProperty,c=a.toString,s=RegExp("^"+E.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=function(A,t){var e=null==A?void 0:A[t];return g(e)?e:void 0}(Array,"isArray"),N=9007199254740991,l=T||function(A){return e(A)&&n(A.length)&&"[object Array]"==c.call(A)};A.exports=l},function(A,t,e){"use strict";function n(A){if(!(this instanceof n))return new n(A);a.call(this,A),E.call(this,A),A&&!1===A.readable&&(this.readable=!1),A&&!1===A.writable&&(this.writable=!1),this.allowHalfOpen=!0,A&&!1===A.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||g(o,this)}function o(A){A.end()}var g=e(64).nextTick,M=Object.keys||function(A){var t=[];for(var e in A)t.push(e);return t};A.exports=n;var r=e(49);r.inherits=e(32);var a=e(165),E=e(169);r.inherits(n,a);for(var I=M(E.prototype),c=0;c-1&&A%1==0&&A-1&&A%1==0&&A<=l}function g(A){for(var t=r(A),e=t.length,n=e&&A.length,g=!!n&&o(n)&&(I(A)||E(A)),M=-1,a=[];++M0;++n]/,r=e(83),a=r(function(A,t){if(A.namespaceURI!==o.svg||"innerHTML"in A)A.innerHTML=t;else{n=n||document.createElement("div"),n.innerHTML=""+t+"";for(var e=n.firstChild;e.firstChild;)A.appendChild(e.firstChild)}});if(i.canUseDOM){var E=document.createElement("div");E.innerHTML=" ",""===E.innerHTML&&(a=function(A,t){if(A.parentNode&&A.parentNode.replaceChild(A,A),g.test(t)||"<"===t[0]&&M.test(t)){A.innerHTML=String.fromCharCode(65279)+t;var e=A.firstChild;1===e.data.length?A.removeChild(e):e.deleteData(0,1)}else A.innerHTML=t}),E=null}A.exports=a},function(A,t,e){"use strict";function n(A){var t=""+A,e=o.exec(t);if(!e)return t;var n,i="",g=0,M=0;for(g=e.index;g]/;A.exports=i},function(A,t,e){"use strict";function n(A){return Object.prototype.hasOwnProperty.call(A,l)||(A[l]=T++,c[A[l]]={}),c[A[l]]}var i,o=e(5),g=e(21),M=e(75),r=e(231),a=e(118),E=e(232),I=e(79),c={},s=!1,T=0,N={topAbort:"abort",topAnimationEnd:E("animationend")||"animationend",topAnimationIteration:E("animationiteration")||"animationiteration",topAnimationStart:E("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:E("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},l="_reactListenersID"+String(Math.random()).slice(2),C=o({},r,{ReactEventListener:null,injection:{injectReactEventListener:function(A){A.setHandleTopLevel(C.handleTopLevel),C.ReactEventListener=A}},setEnabled:function(A){C.ReactEventListener&&C.ReactEventListener.setEnabled(A)},isEnabled:function(){return!(!C.ReactEventListener||!C.ReactEventListener.isEnabled())},listenTo:function(A,t){for(var e=t,i=n(e),o=M.registrationNameDependencies[A],r=g.topLevelTypes,a=0;a1?n-1:0),o=1;o-1||g("96",A),!a.plugins[e]){t.extractEvents||g("97",A),a.plugins[e]=t;var n=t.eventTypes;for(var o in n)i(n[o],t,o)||g("98",o,A)}}}function i(A,t,e){a.eventNameDispatchConfigs.hasOwnProperty(e)&&g("99",e),a.eventNameDispatchConfigs[e]=A;var n=A.phasedRegistrationNames;if(n){for(var i in n)if(n.hasOwnProperty(i)){var M=n[i];o(M,t,e)}return!0}return!!A.registrationName&&(o(A.registrationName,t,e),!0)}function o(A,t,e){a.registrationNameModules[A]&&g("100",A),a.registrationNameModules[A]=t,a.registrationNameDependencies[A]=t.eventTypes[e].dependencies}var g=e(2),M=(e(1),null),r={},a={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(A){M&&g("101"),M=Array.prototype.slice.call(A),n()},injectEventPluginsByName:function(A){var t=!1;for(var e in A)if(A.hasOwnProperty(e)){var i=A[e];r.hasOwnProperty(e)&&r[e]===i||(r[e]&&g("102",e),r[e]=i,t=!0)}t&&n()},getPluginModuleForEvent:function(A){var t=A.dispatchConfig;if(t.registrationName)return a.registrationNameModules[t.registrationName]||null;for(var e in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(e)){var n=a.registrationNameModules[t.phasedRegistrationNames[e]];if(n)return n}return null},_resetEventPlugins:function(){M=null;for(var A in r)r.hasOwnProperty(A)&&delete r[A];a.plugins.length=0;var t=a.eventNameDispatchConfigs;for(var e in t)t.hasOwnProperty(e)&&delete t[e];var n=a.registrationNameModules;for(var i in n)n.hasOwnProperty(i)&&delete n[i]}};A.exports=a},function(A,t,e){"use strict";function n(A){return A===B.topMouseUp||A===B.topTouchEnd||A===B.topTouchCancel}function i(A){return A===B.topMouseMove||A===B.topTouchMove}function o(A){return A===B.topMouseDown||A===B.topTouchStart}function g(A,t,e,n){var i=A.type||"unknown-event";A.currentTarget=D.getNodeFromInstance(n),t?l.invokeGuardedCallbackWithCatch(i,e,A):l.invokeGuardedCallback(i,e,A),A.currentTarget=null}function M(A,t){var e=A._dispatchListeners,n=A._dispatchInstances;if(Array.isArray(e))for(var i=0;i0&&n.length<20?e+" (keys: "+n.join(", ")+")":e}function o(A,t){var e=M.get(A);if(!e){return null}return e}var g=e(2),M=(e(25),e(47)),r=(e(16),e(18)),a=(e(1),e(4),{isMounted:function(A){var t=M.get(A);return!!t&&!!t._renderedComponent},enqueueCallback:function(A,t,e){a.validateCallback(t,e);var i=o(A);if(!i)return null;i._pendingCallbacks?i._pendingCallbacks.push(t):i._pendingCallbacks=[t],n(i)},enqueueCallbackInternal:function(A,t){A._pendingCallbacks?A._pendingCallbacks.push(t):A._pendingCallbacks=[t],n(A)},enqueueForceUpdate:function(A){var t=o(A,"forceUpdate");t&&(t._pendingForceUpdate=!0,n(t))},enqueueReplaceState:function(A,t){var e=o(A,"replaceState");e&&(e._pendingStateQueue=[t],e._pendingReplaceState=!0,n(e))},enqueueSetState:function(A,t){var e=o(A,"setState");if(e){(e._pendingStateQueue||(e._pendingStateQueue=[])).push(t),n(e)}},enqueueElementInternal:function(A,t,e){A._pendingElement=t,A._context=e,n(A)},validateCallback:function(A,t){A&&"function"!=typeof A&&g("122",t,i(A))}});A.exports=a},function(A,t,e){"use strict";var n=(e(5),e(15)),i=(e(4),n);A.exports=i},function(A,t,e){"use strict";function n(A){var t,e=A.keyCode;return"charCode"in A?0===(t=A.charCode)&&13===e&&(t=13):t=e,t>=32||13===t?t:0}A.exports=n},function(A,t,e){A.exports=e(276)()},function(A,t){A.exports=function(A){return A.webpackPolyfill||(A.deprecate=function(){},A.paths=[],A.children||(A.children=[]),Object.defineProperty(A,"loaded",{enumerable:!0,get:function(){return A.l}}),Object.defineProperty(A,"id",{enumerable:!0,get:function(){return A.i}}),A.webpackPolyfill=1),A}},function(A,t,e){"use strict";function n(A){return A&&A.__esModule?A:{default:A}}t.__esModule=!0,t.router=t.routes=t.route=t.components=t.component=t.location=t.history=t.falsy=t.locationShape=t.routerShape=void 0;var i=e(0),o=e(60),g=(n(o),e(29)),M=function(A){if(A&&A.__esModule)return A;var t={};if(null!=A)for(var e in A)Object.prototype.hasOwnProperty.call(A,e)&&(t[e]=A[e]);return t.default=A,t}(g),r=e(10),a=(n(r),i.PropTypes.func),E=i.PropTypes.object,I=i.PropTypes.shape,c=i.PropTypes.string,s=t.routerShape=I({push:a.isRequired,replace:a.isRequired,go:a.isRequired,goBack:a.isRequired,goForward:a.isRequired,setRouteLeaveHook:a.isRequired,isActive:a.isRequired}),T=t.locationShape=I({pathname:c.isRequired,search:c.isRequired,state:E,action:c.isRequired,key:c}),N=t.falsy=M.falsy,l=t.history=M.history,C=t.location=T,B=t.component=M.component,D=t.components=M.components,d=t.route=M.route,u=(t.routes=M.routes,t.router=s),h={falsy:N,history:l,location:C,component:B,components:D,route:d,router:u};t.default=h},function(A,t,e){"use strict";function n(A,t,e){A.addEventListener?A.addEventListener(t,e,!1):A.attachEvent("on"+t,e)}function i(A,t,e){A.removeEventListener?A.removeEventListener(t,e,!1):A.detachEvent("on"+t,e)}function o(){return window.location.href.split("#")[1]||""}function g(A){window.location.replace(window.location.pathname+window.location.search+"#"+A)}function M(){return window.location.pathname+window.location.search+window.location.hash}function r(A){A&&window.history.go(A)}function a(A,t){t(window.confirm(A))}function E(){var A=navigator.userAgent;return(-1===A.indexOf("Android 2.")&&-1===A.indexOf("Android 4.0")||-1===A.indexOf("Mobile Safari")||-1!==A.indexOf("Chrome")||-1!==A.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}function I(){return-1===navigator.userAgent.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=n,t.removeEventListener=i,t.getHashPath=o,t.replaceHashPath=g,t.getWindowPath=M,t.go=r,t.getUserConfirmation=a,t.supportsHistory=E,t.supportsGoWithoutReloadUsingHash=I},function(A,t,e){"use strict";function n(A,t,e){var n=A(t,e);A.length<2&&e(n)}t.__esModule=!0;var i=e(20);!function(A){A&&A.__esModule}(i);t.default=n,A.exports=t.default},function(A,t,e){"use strict";function n(A,t){return function(){return A.apply(this,arguments)}}t.__esModule=!0;var i=e(20);!function(A){A&&A.__esModule}(i);t.default=n,A.exports=t.default},function(A,t,e){"use strict";function n(A){return A&&A.__esModule?A:{default:A}}function i(A){for(var t in A)if(Object.prototype.hasOwnProperty.call(A,t))return!0;return!1}function o(A,t){function e(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],i=void 0;return e&&!0!==e||null!==n?(t={pathname:t,query:e},i=n||!1):(t=A.createLocation(t),i=e),(0,c.default)(t,i,D.location,D.routes,D.params)}function n(A,e){d&&d.location===A?o(d,e):(0,l.default)(t,A,function(t,n){t?e(t):n?o(g({},n,{location:A}),e):e()})}function o(A,t){function e(e,i){if(e||i)return n(e,i);(0,T.default)(A,function(e,n){e?t(e):t(null,null,D=g({},A,{components:n}))})}function n(A,e){A?t(A):t(null,e)}var i=(0,a.default)(D,A),o=i.leaveRoutes,M=i.changeRoutes,r=i.enterRoutes;(0,E.runLeaveHooks)(o,D),o.filter(function(A){return-1===r.indexOf(A)}).forEach(N),(0,E.runChangeHooks)(M,D,A,function(t,i){if(t||i)return n(t,i);(0,E.runEnterHooks)(r,A,e)})}function M(A){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];return A.__id__||t&&(A.__id__=u++)}function r(A){return A.reduce(function(A,t){return A.push.apply(A,h[M(t)]),A},[])}function I(A,e){(0,l.default)(t,A,function(t,n){if(null==n)return void e();d=g({},n,{location:A});for(var i=r((0,a.default)(D,d).leaveRoutes),o=void 0,M=0,E=i.length;null==o&&M=A&&r&&(g=!0,e())}}var o=0,g=!1,M=!1,r=!1,a=void 0;i()}function i(A,t,e){function n(A,t,n){g||(t?(g=!0,e(t)):(o[A]=n,(g=++M===i)&&e(null,o)))}var i=A.length,o=[];if(0===i)return e(null,o);var g=!1,M=0;A.forEach(function(A,e){t(A,e,function(A,t){n(e,A,t)})})}t.__esModule=!0,t.loopAsync=n,t.mapAsync=i},function(A,t,e){"use strict";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(A,t,e){if(A&&a.isObject(A)&&A instanceof n)return A;var i=new n;return i.parse(A,t,e),i}function o(A){return a.isString(A)&&(A=i(A)),A instanceof n?A.format():n.prototype.format.call(A)}function g(A,t){return i(A,!1,!0).resolve(t)}function M(A,t){return A?i(A,!1,!0).resolveObject(t):t}var r=e(384),a=e(385);t.parse=i,t.resolve=g,t.resolveObject=M,t.format=o,t.Url=n;var E=/^([a-z0-9.+-]+:)/i,I=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["<",">",'"',"`"," ","\r","\n","\t"],T=["{","}","|","\\","^","`"].concat(s),N=["'"].concat(T),l=["%","/","?",";","#"].concat(N),C=["/","?","#"],B=/^[+a-z0-9A-Z_-]{0,63}$/,D=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},u={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Q=e(386);n.prototype.parse=function(A,t,e){if(!a.isString(A))throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var n=A.indexOf("?"),i=-1!==n&&n127?z+="x":z+=S[U];if(!z.match(B)){var b=Y.slice(0,x),F=Y.slice(x+1),v=S.match(D);v&&(b.push(v[1]),F.unshift(v[2])),F.length&&(M="/"+F.join(".")+M),this.hostname=b.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),f||(this.hostname=r.toASCII(this.hostname));var k=this.port?":"+this.port:"",R=this.hostname||"";this.host=R+k,this.href+=this.host,f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==M[0]&&(M="/"+M))}if(!d[T])for(var x=0,m=N.length;x0)&&e.host.split("@");w&&(e.auth=w.shift(),e.host=e.hostname=w.shift())}return e.search=A.search,e.query=A.query,a.isNull(e.pathname)&&a.isNull(e.search)||(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.href=e.format(),e}if(!Q.length)return e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format(),e;for(var x=Q.slice(-1)[0],p=(e.host||A.host||Q.length>1)&&("."===x||".."===x)||""===x,j=0,L=Q.length;L>=0;L--)x=Q[L],"."===x?Q.splice(L,1):".."===x?(Q.splice(L,1),j++):j&&(Q.splice(L,1),j--);if(!D&&!d)for(;j--;j)Q.unshift("..");!D||""===Q[0]||Q[0]&&"/"===Q[0].charAt(0)||Q.unshift(""),p&&"/"!==Q.join("/").substr(-1)&&Q.push("");var f=""===Q[0]||Q[0]&&"/"===Q[0].charAt(0);if(y){e.hostname=e.host=f?"":Q.length?Q.shift():"";var w=!!(e.host&&e.host.indexOf("@")>0)&&e.host.split("@");w&&(e.auth=w.shift(),e.host=e.hostname=w.shift())}return D=D||e.host&&Q.length,D&&!f&&Q.unshift(""),Q.length?e.pathname=Q.join("/"):(e.pathname=null,e.path=null),a.isNull(e.pathname)&&a.isNull(e.search)||(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.auth=A.auth||e.auth,e.slashes=e.slashes||A.slashes,e.href=e.format(),e},n.prototype.parseHost=function(){var A=this.host,t=I.exec(A);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),A=A.substr(0,A.length-t.length)),A&&(this.hostname=A)}},function(A,t,e){A.exports=e(424)},function(A,t,e){"use strict";var n=e(0),i=e(3),o=i.connect,g=(e(40),e(13)),M=n.createClass({displayName:"MetadataSidebarCanvas",getMainImage:function(A){return null!==A&&A.getImages().length>0?A.getCanonicalImageUri(100):"/img/empty-canvas.png"},render:function(){var A=this.props.manifestoObject.getSequenceByIndex(0).getCanvasById(this.props.canvasId);return n.createElement("div",{style:{background:"#fff url(./img/loading-small.gif) no-repeat center center"},className:"metadata-sidebar-canvas"},n.createElement("img",{src:this.getMainImage(A),alt:null!==A?g.getLocalizedPropertyValue(A.getLabel()):"",height:"150"}),n.createElement("div",{className:"canvas-label"},null!==A?g.getLocalizedPropertyValue(A.getLabel()):"Empty canvas"))}});A.exports=o(function(A){return{manifestoObject:A.manifestReducer.manifestoObject}})(M)},function(A,t,e){"use strict";var n=e(0),i=e(3),o=i.connect,g=n.createClass({displayName:"DeleteMetadataPropertyButton",render:function(){var A=this;return n.createElement("dd",{className:"metadata-field-delete"},n.createElement("a",{href:"javascript:;",onClick:function(){return A.props.deleteHandler()}},n.createElement("span",{className:"fa fa-times-circle"})))}});A.exports=o()(g)},function(A,t){A.exports=function(A){"function"==typeof execScript?execScript(A):eval.call(null,A)}},function(A,t,e){"use strict";function n(A){return(""+A).replace(d,"$&/")}function i(A,t){this.func=A,this.context=t,this.count=0}function o(A,t,e){var n=A.func,i=A.context;n.call(i,t,A.count++)}function g(A,t,e){if(null==A)return A;var n=i.getPooled(t,e);C(A,o,n),i.release(n)}function M(A,t,e,n){this.result=A,this.keyPrefix=t,this.func=e,this.context=n,this.count=0}function r(A,t,e){var i=A.result,o=A.keyPrefix,g=A.func,M=A.context,r=g.call(M,t,A.count++);Array.isArray(r)?a(r,i,e,l.thatReturnsArgument):null!=r&&(N.isValidElement(r)&&(r=N.cloneAndReplaceKey(r,o+(!r.key||t&&t.key===r.key?"":n(r.key)+"/")+e)),i.push(r))}function a(A,t,e,i,o){var g="";null!=e&&(g=n(e)+"/");var a=M.getPooled(t,g,i,o);C(A,r,a),M.release(a)}function E(A,t,e){if(null==A)return A;var n=[];return a(A,n,null,t,e),n}function I(A,t,e){return null}function c(A,t){return C(A,I,null)}function s(A){var t=[];return a(A,t,null,l.thatReturnsArgument),t}var T=e(24),N=e(17),l=e(15),C=e(68),B=T.twoArgumentPooler,D=T.fourArgumentPooler,d=/\/+/g;i.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},T.addPoolingTo(i,B),M.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},T.addPoolingTo(M,D);var u={forEach:g,map:E,mapIntoWithKeyPrefixInternal:a,count:c,toArray:s};A.exports=u},function(A,t,e){"use strict";var n=!1;A.exports=n},function(A,t,e){"use strict";function n(A){var t=A&&(i&&A[i]||A[o]);if("function"==typeof t)return t}var i="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";A.exports=n},function(A,t,e){"use strict";function n(A,t){var e=h.hasOwnProperty(t)?h[t]:null;y.hasOwnProperty(t)&&e!==d.OVERRIDE_BASE&&I("73",t),A&&e!==d.DEFINE_MANY&&e!==d.DEFINE_MANY_MERGED&&I("74",t)}function i(A,t){if(t){"function"==typeof t&&I("75"),T.isValidElement(t)&&I("76");var e=A.prototype,i=e.__reactAutoBindPairs;t.hasOwnProperty(D)&&Q.mixins(A,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==D){var g=t[o],a=e.hasOwnProperty(o);if(n(a,o),Q.hasOwnProperty(o))Q[o](A,g);else{var E=h.hasOwnProperty(o),c="function"==typeof g,s=c&&!E&&!a&&!1!==t.autobind;if(s)i.push(o,g),e[o]=g;else if(a){var N=h[o];(!E||N!==d.DEFINE_MANY_MERGED&&N!==d.DEFINE_MANY)&&I("77",N,o),N===d.DEFINE_MANY_MERGED?e[o]=M(e[o],g):N===d.DEFINE_MANY&&(e[o]=r(e[o],g))}else e[o]=g}}}else;}function o(A,t){if(t)for(var e in t){var n=t[e];if(t.hasOwnProperty(e)){var i=e in Q;i&&I("78",e);var o=e in A;o&&I("79",e),A[e]=n}}}function g(A,t){A&&t&&"object"==typeof A&&"object"==typeof t||I("80");for(var e in t)t.hasOwnProperty(e)&&(void 0!==A[e]&&I("81",e),A[e]=t[e]);return A}function M(A,t){return function(){var e=A.apply(this,arguments),n=t.apply(this,arguments);if(null==e)return n;if(null==n)return e;var i={};return g(i,e),g(i,n),i}}function r(A,t){return function(){A.apply(this,arguments),t.apply(this,arguments)}}function a(A,t){var e=t.bind(A);return e}function E(A){for(var t=A.__reactAutoBindPairs,e=0;e>"),y={array:g("array"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:function(){return o(u.thatReturns(null))}(),arrayOf:M,element:function(){function A(A,t,e,n,o){var g=A[t];if(!B.isValidElement(g)){return new i("Invalid "+D[n]+" `"+o+"` of type `"+N(g)+"` supplied to `"+e+"`, expected a single ReactElement.")}return null}return o(A)}(),instanceOf:r,node:function(){function A(A,t,e,n,o){if(!s(A[t])){return new i("Invalid "+D[n]+" `"+o+"` supplied to `"+e+"`, expected a ReactNode.")}return null}return o(A)}(),objectOf:E,oneOf:a,oneOfType:I,shape:c};i.prototype=Error.prototype,A.exports=y},function(A,t,e){"use strict";A.exports="15.3.2"},function(A,t,e){"use strict";var n={hasCachedChildNodes:1};A.exports=n},function(A,t,e){"use strict";function n(A,t){return null==t&&i("30"),null==A?t:Array.isArray(A)?Array.isArray(t)?(A.push.apply(A,t),A):(A.push(t),A):Array.isArray(t)?[A].concat(t):[A,t]}var i=e(2);e(1);A.exports=n},function(A,t,e){"use strict";function n(A,t,e){Array.isArray(A)?A.forEach(t,e):A&&t.call(e,A)}A.exports=n},function(A,t,e){"use strict";function n(){return!o&&i.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var i=e(14),o=null;A.exports=n},function(A,t,e){"use strict";function n(){this._callbacks=null,this._contexts=null}var i=e(2),o=e(5),g=e(24);e(1);o(n.prototype,{enqueue:function(A,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(A),this._contexts.push(t)},notifyAll:function(){var A=this._callbacks,t=this._contexts;if(A){A.length!==t.length&&i("24"),this._callbacks=null,this._contexts=null;for(var e=0;e.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var g,M=d(F,null,null,null,null,null,t);if(A){var r=h.get(A);g=r._processChildContext(r._context)}else g=p;var E=c(e);if(E){var I=E._currentElement,T=I.props;if(f(T,t)){var N=E._renderedComponent.getPublicInstance(),l=n&&function(){n.call(N)};return v._updateRootComponent(E,M,g,e,l),N}v.unmountComponentAtNode(e)}var C=i(e),B=C&&!!o(C),D=a(e),u=B&&!E&&!D,Q=v._renderNewRootComponent(M,e,u,g)._renderedComponent.getPublicInstance();return n&&n.call(Q),Q},render:function(A,t,e){return v._renderSubtreeIntoContainer(null,A,t,e)},unmountComponentAtNode:function(A){E(A)||s("40");var t=c(A);if(!t){a(A),1===A.nodeType&&A.hasAttribute(m);return!1}return delete O[t._instance.rootID],x.batchedUpdates(r,t,A,!1),!0},_mountImageIntoNode:function(A,t,e,o,g){if(E(t)||s("41"),o){var M=i(t);if(Q.canReuseMarkup(A,M))return void C.precacheNode(e,M);var r=M.getAttribute(Q.CHECKSUM_ATTR_NAME);M.removeAttribute(Q.CHECKSUM_ATTR_NAME);var a=M.outerHTML;M.setAttribute(Q.CHECKSUM_ATTR_NAME,r);var I=A,c=n(I,a),N=" (client) "+I.substring(c-20,c+20)+"\n (server) "+a.substring(c-20,c+20);t.nodeType===z&&s("42",N)}if(t.nodeType===z&&s("43"),g.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);T.insertTreeBefore(t,A,null)}else L(t,A),C.precacheNode(e,t.firstChild)}};A.exports=v},function(A,t,e){"use strict";function n(A){for(var t;(t=A._renderedNodeType)===i.COMPOSITE;)A=A._renderedComponent;return t===i.HOST?A._renderedComponent:t===i.EMPTY?null:void 0}var i=e(126);A.exports=n},function(A,t,e){"use strict";t.__esModule=!0;var n=e(92),i=function(A){return A&&A.__esModule?A:{default:A}}(n);t.default=i.default.shape({subscribe:i.default.func.isRequired,dispatch:i.default.func.isRequired,getState:i.default.func.isRequired})},function(A,t,e){"use strict";function n(A){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(A);try{throw new Error(A)}catch(A){}}t.__esModule=!0,t.default=n},function(A,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e(137),i=e(292),o=e(293),g=e(294),M=e(141);e(140);e.d(t,"createStore",function(){return n.b}),e.d(t,"combineReducers",function(){return i.a}),e.d(t,"bindActionCreators",function(){return o.a}),e.d(t,"applyMiddleware",function(){return g.a}),e.d(t,"compose",function(){return M.a})},function(A,t,e){"use strict";function n(A,t,e){function o(){C===l&&(C=l.slice())}function r(){return N}function a(A){if("function"!=typeof A)throw new Error("Expected listener to be a function.");var t=!0;return o(),C.push(A),function(){if(t){t=!1,o();var e=C.indexOf(A);C.splice(e,1)}}}function E(A){if(!Object(i.a)(A))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===A.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(B)throw new Error("Reducers may not dispatch actions.");try{B=!0,N=T(N,A)}finally{B=!1}for(var t=l=C,e=0;e=0&&0===window.sessionStorage.length)return;throw A}}function o(A){var t=void 0;try{t=window.sessionStorage.getItem(n(A))}catch(A){if(A.name===a)return null}if(t)try{return JSON.parse(t)}catch(A){}return null}t.__esModule=!0,t.saveState=i,t.readState=o;var g=e(20),M=(function(A){A&&A.__esModule}(g),"@@History/"),r=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],a="SecurityError"},function(A,t,e){"use strict";function n(A){return A&&A.__esModule?A:{default:A}}function i(A){function t(A){return r.canUseDOM||M.default(!1),e.listen(A)}var e=I.default(o({getUserConfirmation:a.getUserConfirmation},A,{go:a.go}));return o({},e,{listen:t})}t.__esModule=!0;var o=Object.assign||function(A){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n]);return e}function o(A){return 0===A.button}function g(A){return!!(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey)}function M(A){for(var t in A)if(Object.prototype.hasOwnProperty.call(A,t))return!1;return!0}function r(A,t){var e=t.query,n=t.hash,i=t.state;return e||n||i?{pathname:A,query:e,hash:n,state:i}:A}t.__esModule=!0;var a=Object.assign||function(A){for(var t=1;t=0;n--){var i=A[n],o=i.path||"";if(e=o.replace(/\/*$/,"/")+e,0===o.indexOf("/"))break}return"/"+e}},propTypes:{path:c,from:c,to:c.isRequired,query:s,state:s,onEnter:E.falsy,children:E.falsy},render:function(){(0,M.default)(!1)}});t.default=T,A.exports=t.default},function(A,t,e){"use strict";function n(A){return A&&A.__esModule?A:{default:A}}function i(A){var t=(0,E.default)(A),e=function(){return t},n=(0,g.default)((0,r.default)(e))(A);return n.__v2_compatible__=!0,n}t.__esModule=!0,t.default=i;var o=e(62),g=n(o),M=e(153),r=n(M),a=e(330),E=n(a);A.exports=t.default},function(A,t,e){"use strict";function n(A){return A&&A.__esModule?A:{default:A}}function i(A){return function(){function t(){if(!u){if(null==d&&M.canUseDOM){var A=document.getElementsByTagName("base")[0],t=A&&A.getAttribute("href");null!=t&&(d=t)}u=!0}}function e(A){return t(),d&&null==A.basename&&(0===A.pathname.indexOf(d)?(A.pathname=A.pathname.substring(d.length),A.basename=d,""===A.pathname&&(A.pathname="/")):A.basename=""),A}function n(A){if(t(),!d)return A;"string"==typeof A&&(A=r.parsePath(A));var e=A.pathname,n="/"===d.slice(-1)?d:d+"/",i="/"===e.charAt(0)?e.slice(1):e;return o({},A,{pathname:n+i})}function i(A){return D.listenBefore(function(t,n){E.default(A,e(t),n)})}function g(A){return D.listen(function(t){A(e(t))})}function a(A){D.push(n(A))}function I(A){D.replace(n(A))}function s(A){return D.createPath(n(A))}function T(A){return D.createHref(n(A))}function N(A){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o=t?A:t)),A}function i(A){var t=o(A)?w.call(A):"";return t==l||t==C}function o(A){var t=typeof A;return!!A&&("object"==t||"function"==t)}function g(A){return!!A&&"object"==typeof A}function M(A){return"symbol"==typeof A||g(A)&&w.call(A)==B}function r(A){if(!A)return 0===A?A:0;if((A=a(A))===s||A===-s){return(A<0?-1:1)*T}var t=A%1;return A===A?t?A-t:A:0}function a(A){if(o(A)){var t=i(A.valueOf)?A.valueOf():A;A=o(t)?t+"":t}if("string"!=typeof A)return 0===A?A:+A;A=A.replace(D,"");var e=u.test(A);return e||h.test(A)?Q(A.slice(2),e?2:8):d.test(A)?N:+A}function E(A){if("string"==typeof A)return A;if(null==A)return"";if(M(A))return x?j.call(A):"";var t=A+"";return"0"==t&&1/A==-s?"-0":t}function I(A,t,e){A=E(A),t="string"==typeof t?t:t+"";var i=A.length;return e=void 0===e?i:n(r(e),0,i),(e-=t.length)>=0&&A.indexOf(t,e)==e}var c=e(352),s=1/0,T=1.7976931348623157e308,N=NaN,l="[object Function]",C="[object GeneratorFunction]",B="[object Symbol]",D=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,h=/^0o[0-7]+$/i,Q=parseInt,y=Object.prototype,w=y.toString,x=c.Symbol,p=x?x.prototype:void 0,j=x?p.toString:void 0;A.exports=I},function(A,t){function e(A){var t=A?A.length:0;return t?A[t-1]:void 0}A.exports=e},function(A,t){function e(A,t,e){if("function"!=typeof A)return n;if(void 0===t)return A;switch(e){case 1:return function(e){return A.call(t,e)};case 3:return function(e,n,i){return A.call(t,e,n,i)};case 4:return function(e,n,i,o){return A.call(t,e,n,i,o)};case 5:return function(e,n,i,o,g){return A.call(t,e,n,i,o,g)}}return function(){return A.apply(t,arguments)}}function n(A){return A}A.exports=e},function(A,t,e){(function(A){var n=e(369),i=e(163),o=e(382),g=e(383),M=e(100),r=t;r.request=function(t,e){t="string"==typeof t?M.parse(t):o(t);var i=-1===A.location.protocol.search(/^https?:$/)?"http:":"",g=t.protocol||i,r=t.hostname||t.host,a=t.port,E=t.path||"/";r&&-1!==r.indexOf(":")&&(r="["+r+"]"),t.url=(r?g+"//"+r:"")+(a?":"+a:"")+E,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var I=new n(t);return e&&I.on("response",e),I},r.get=function(A,t){var e=r.request(A,t);return e.end(),e},r.ClientRequest=n,r.IncomingMessage=i,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.STATUS_CODES=g,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(t,e(9))},function(A,t,e){(function(A){function e(){if(void 0!==o)return o;if(A.XMLHttpRequest){o=new A.XMLHttpRequest;try{o.open("GET",A.XDomainRequest?"/":"https://example.com")}catch(A){o=null}}else o=null;return o}function n(A){var t=e();if(!t)return!1;try{return t.responseType=A,t.responseType===A}catch(A){}return!1}function i(A){return"function"==typeof A}t.fetch=i(A.fetch)&&i(A.ReadableStream),t.writableStream=i(A.WritableStream),t.abortController=i(A.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(A){}var o,g=void 0!==A.ArrayBuffer,M=g&&i(A.ArrayBuffer.prototype.slice);t.arraybuffer=t.fetch||g&&n("arraybuffer"),t.msstream=!t.fetch&&M&&n("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&g&&n("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!e()&&i(e().overrideMimeType),t.vbArray=i(A.VBArray),o=null}).call(t,e(9))},function(A,t,e){(function(A,n,i){var o=e(162),g=e(32),M=e(164),r=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=t.IncomingMessage=function(t,e,i){function g(){E.read().then(function(A){if(!r._destroyed){if(A.done)return void r.push(null);r.push(new n(A.value)),g()}}).catch(function(A){r._destroyed||r.emit("error",A)})}var r=this;if(M.Readable.call(r),r._mode=i,r.headers={},r.rawHeaders=[],r.trailers={},r.rawTrailers=[],r.on("end",function(){A.nextTick(function(){r.emit("close")})}),"fetch"===i){if(r._fetchResponse=e,r.url=e.url,r.statusCode=e.status,r.statusMessage=e.statusText,e.headers.forEach(function(A,t){r.headers[t.toLowerCase()]=A,r.rawHeaders.push(t,A)}),o.writableStream){var a=new WritableStream({write:function(A){return new Promise(function(t,e){r._destroyed||(r.push(new n(A))?t():r._resumeFetch=t)})},close:function(){r._destroyed||r.push(null)},abort:function(A){r._destroyed||r.emit("error",A)}});try{return void e.body.pipeTo(a)}catch(A){}}var E=e.body.getReader();g()}else{r._xhr=t,r._pos=0,r.url=t.responseURL,r.statusCode=t.status,r.statusMessage=t.statusText;if(t.getAllResponseHeaders().split(/\r?\n/).forEach(function(A){var t=A.match(/^([^:]+):\s*(.*)/);if(t){var e=t[1].toLowerCase();"set-cookie"===e?(void 0===r.headers[e]&&(r.headers[e]=[]),r.headers[e].push(t[2])):void 0!==r.headers[e]?r.headers[e]+=", "+t[2]:r.headers[e]=t[2],r.rawHeaders.push(t[1],t[2])}}),r._charset="x-user-defined",!o.overrideMimeType){var I=r.rawHeaders["mime-type"];if(I){var c=I.match(/;\s*charset=([^;])(;|$)/);c&&(r._charset=c[1].toLowerCase())}r._charset||(r._charset="utf-8")}}};g(a,M.Readable),a.prototype._read=function(){var A=this,t=A._resumeFetch;t&&(A._resumeFetch=null,t())},a.prototype._onXHRProgress=function(){var A=this,t=A._xhr,e=null;switch(A._mode){case"text:vbarray":if(t.readyState!==r.DONE)break;try{e=new i.VBArray(t.responseBody).toArray()}catch(A){}if(null!==e){A.push(new n(e));break}case"text":try{e=t.responseText}catch(t){A._mode="text:vbarray";break}if(e.length>A._pos){var o=e.substr(A._pos);if("x-user-defined"===A._charset){for(var g=new n(o.length),M=0;MA._pos&&(A.push(new n(new Uint8Array(a.result.slice(A._pos)))),A._pos=a.result.byteLength)},a.onload=function(){A.push(null)},a.readAsArrayBuffer(e)}A._xhr.readyState===r.DONE&&"ms-stream"!==A._mode&&A.push(null)}}).call(t,e(19),e(31).Buffer,e(9))},function(A,t,e){t=A.exports=e(165),t.Stream=t,t.Readable=t,t.Writable=e(169),t.Duplex=e(42),t.Transform=e(171),t.PassThrough=e(380)},function(A,t,e){"use strict";(function(t,n){function i(A){return b.from(A)}function o(A){return b.isBuffer(A)||A instanceof F}function g(A,t,e){if("function"==typeof A.prependListener)return A.prependListener(t,e);A._events&&A._events[t]?z(A._events[t])?A._events[t].unshift(e):A._events[t]=[e,A._events[t]]:A.on(t,e)}function M(A,t){S=S||e(42),A=A||{};var n=t instanceof S;this.objectMode=!!A.objectMode,n&&(this.objectMode=this.objectMode||!!A.readableObjectMode);var i=A.highWaterMark,o=A.readableHighWaterMark,g=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:g,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new J,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=A.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,A.encoding&&(G||(G=e(170).StringDecoder),this.decoder=new G(A.encoding),this.encoding=A.encoding)}function r(A){if(S=S||e(42),!(this instanceof r))return new r(A);this._readableState=new M(A,this),this.readable=!0,A&&("function"==typeof A.read&&(this._read=A.read),"function"==typeof A.destroy&&(this._destroy=A.destroy)),O.call(this)}function a(A,t,e,n,o){var g=A._readableState;if(null===t)g.reading=!1,N(A,g);else{var M;o||(M=I(g,t)),M?A.emit("error",M):g.objectMode||t&&t.length>0?("string"==typeof t||g.objectMode||Object.getPrototypeOf(t)===b.prototype||(t=i(t)),n?g.endEmitted?A.emit("error",new Error("stream.unshift() after end event")):E(A,g,t,!0):g.ended?A.emit("error",new Error("stream.push() after EOF")):(g.reading=!1,g.decoder&&!e?(t=g.decoder.write(t),g.objectMode||0!==t.length?E(A,g,t,!1):B(A,g)):E(A,g,t,!1))):n||(g.reading=!1)}return c(g)}function E(A,t,e,n){t.flowing&&0===t.length&&!t.sync?(A.emit("data",e),A.read(0)):(t.length+=t.objectMode?1:e.length,n?t.buffer.unshift(e):t.buffer.push(e),t.needReadable&&l(A)),B(A,t)}function I(A,t){var e;return o(t)||"string"==typeof t||void 0===t||A.objectMode||(e=new TypeError("Invalid non-string/buffer chunk")),e}function c(A){return!A.ended&&(A.needReadable||A.length=P?A=P:(A--,A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A++),A}function T(A,t){return A<=0||0===t.length&&t.ended?0:t.objectMode?1:A!==A?t.flowing&&t.length?t.buffer.head.data.length:t.length:(A>t.highWaterMark&&(t.highWaterMark=s(A)),A<=t.length?A:t.ended?t.length:(t.needReadable=!0,0))}function N(A,t){if(!t.ended){if(t.decoder){var e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,l(A)}}function l(A){var t=A._readableState;t.needReadable=!1,t.emittedReadable||(R("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?m(C,A):C(A))}function C(A){R("emit readable"),A.emit("readable"),y(A)}function B(A,t){t.readingMore||(t.readingMore=!0,m(D,A,t))}function D(A,t){for(var e=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(e=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):e=x(A,t.buffer,t.decoder),e}function x(A,t,e){var n;return Ao.length?o.length:A;if(g===o.length?i+=o:i+=o.slice(0,A),0===(A-=g)){g===o.length?(++n,e.next?t.head=e.next:t.head=t.tail=null):(t.head=e,e.data=o.slice(g));break}++n}return t.length-=n,i}function j(A,t){var e=b.allocUnsafe(A),n=t.head,i=1;for(n.data.copy(e),A-=n.data.length;n=n.next;){var o=n.data,g=A>o.length?o.length:A;if(o.copy(e,e.length-A,0,g),0===(A-=g)){g===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(g));break}++i}return t.length-=i,e}function L(A){var t=A._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,m(f,t,A))}function f(A,t){A.endEmitted||0!==A.length||(A.endEmitted=!0,t.readable=!1,t.emit("end"))}function Y(A,t){for(var e=0,n=A.length;e=t.highWaterMark||t.ended))return R("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):l(this),null;if(0===(A=T(A,t))&&t.ended)return 0===t.length&&L(this),null;var n=t.needReadable;R("need readable",n),(0===t.length||t.length-A0?w(A,t):null,null===i?(t.needReadable=!0,A=0):t.length-=A,0===t.length&&(t.ended||(t.needReadable=!0),e!==A&&t.ended&&L(this)),null!==i&&this.emit("data",i),i},r.prototype._read=function(A){this.emit("error",new Error("_read() is not implemented"))},r.prototype.pipe=function(A,t){function e(A,t){R("onunpipe"),A===c&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){R("onend"),A.end()}function o(){R("cleanup"),A.removeListener("close",a),A.removeListener("finish",E),A.removeListener("drain",l),A.removeListener("error",r),A.removeListener("unpipe",e),c.removeListener("end",i),c.removeListener("end",I),c.removeListener("data",M),C=!0,!s.awaitDrain||A._writableState&&!A._writableState.needDrain||l()}function M(t){R("ondata"),B=!1,!1!==A.write(t)||B||((1===s.pipesCount&&s.pipes===A||s.pipesCount>1&&-1!==Y(s.pipes,A))&&!C&&(R("false write response, pause",c._readableState.awaitDrain),c._readableState.awaitDrain++,B=!0),c.pause())}function r(t){R("onerror",t),I(),A.removeListener("error",r),0===U(A,"error")&&A.emit("error",t)}function a(){A.removeListener("finish",E),I()}function E(){R("onfinish"),A.removeListener("close",a),I()}function I(){R("unpipe"),c.unpipe(A)}var c=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=A;break;case 1:s.pipes=[s.pipes,A];break;default:s.pipes.push(A)}s.pipesCount+=1,R("pipe count=%d opts=%j",s.pipesCount,t);var T=(!t||!1!==t.end)&&A!==n.stdout&&A!==n.stderr,N=T?i:I;s.endEmitted?m(N):c.once("end",N),A.on("unpipe",e);var l=d(c);A.on("drain",l);var C=!1,B=!1;return c.on("data",M),g(A,"error",r),A.once("close",a),A.once("finish",E),A.emit("pipe",c),s.flowing||(R("pipe resume"),c.resume()),A},r.prototype.unpipe=function(A){var t=this._readableState,e={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return A&&A!==t.pipes?this:(A||(A=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,A&&A.emit("unpipe",this,e),this);if(!A){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0&&this._events[A].length>i&&(this._events[A].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[A].length),"function"==typeof console.trace&&console.trace()),this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(A,t){function e(){this.removeListener(A,e),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return e.listener=t,this.on(A,e),this},e.prototype.removeListener=function(A,t){var e,i,g,M;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[A])return this;if(e=this._events[A],g=e.length,i=-1,e===t||n(e.listener)&&e.listener===t)delete this._events[A],this._events.removeListener&&this.emit("removeListener",A,t);else if(o(e)){for(M=g;M-- >0;)if(e[M]===t||e[M].listener&&e[M].listener===t){i=M;break}if(i<0)return this;1===e.length?(e.length=0,delete this._events[A]):e.splice(i,1),this._events.removeListener&&this.emit("removeListener",A,t)}return this},e.prototype.removeAllListeners=function(A){var t,e;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[A]&&delete this._events[A],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(e=this._events[A],n(e))this.removeListener(A,e);else if(e)for(;e.length;)this.removeListener(A,e[e.length-1]);return delete this._events[A],this},e.prototype.listeners=function(A){return this._events&&this._events[A]?n(this._events[A])?[this._events[A]]:this._events[A].slice():[]},e.prototype.listenerCount=function(A){if(this._events){var t=this._events[A];if(n(t))return 1;if(t)return t.length}return 0},e.listenerCount=function(A,t){return A.listenerCount(t)}},function(A,t,e){A.exports=e(166).EventEmitter},function(A,t,e){"use strict";function n(A,t){var e=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(A):!A||this._writableState&&this._writableState.errorEmitted||g(o,this,A),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(A||null,function(A){!t&&A?(g(o,e,A),e._writableState&&(e._writableState.errorEmitted=!0)):t&&t(A)}),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(A,t){A.emit("error",t)}var g=e(64).nextTick;A.exports={destroy:n,undestroy:i}},function(A,t,e){"use strict";(function(t,n,i){function o(A){var t=this;this.next=null,this.entry=null,this.finish=function(){p(t,A)}}function g(A){return z.from(A)}function M(A){return z.isBuffer(A)||A instanceof U}function r(){}function a(A,t){L=L||e(42),A=A||{};var n=t instanceof L;this.objectMode=!!A.objectMode,n&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var i=A.highWaterMark,g=A.writableHighWaterMark,M=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(g||0===g)?g:M,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var r=!1===A.decodeStrings;this.decodeStrings=!r,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(A){B(t,A)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function E(A){if(L=L||e(42),!(b.call(E,this)||this instanceof L))return new E(A);this._writableState=new a(A,this),this.writable=!0,A&&("function"==typeof A.write&&(this._write=A.write),"function"==typeof A.writev&&(this._writev=A.writev),"function"==typeof A.destroy&&(this._destroy=A.destroy),"function"==typeof A.final&&(this._final=A.final)),S.call(this)}function I(A,t){var e=new Error("write after end");A.emit("error",e),j(t,e)}function c(A,t,e,n){var i=!0,o=!1;return null===e?o=new TypeError("May not write null values to stream"):"string"==typeof e||void 0===e||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(A.emit("error",o),j(n,o),i=!1),i}function s(A,t,e){return A.objectMode||!1===A.decodeStrings||"string"!=typeof t||(t=z.from(t,e)),t}function T(A,t,e,n,i,o){if(!e){var g=s(t,n,i);n!==g&&(e=!0,i="buffer",n=g)}var M=t.objectMode?1:n.length;t.length+=M;var r=t.length-1?n:j;E.WritableState=a;var Y=e(49);Y.inherits=e(32);var m={deprecate:e(379)},S=e(167),z=e(65).Buffer,U=i.Uint8Array||function(){},O=e(168);Y.inherits(E,S),a.prototype.getBuffer=function(){for(var A=this.bufferedRequest,t=[];A;)t.push(A),A=A.next;return t},function(){try{Object.defineProperty(a.prototype,"buffer",{get:m.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(A){}}();var b;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(A){return!!b.call(this,A)||this===E&&(A&&A._writableState instanceof a)}})):b=function(A){return A instanceof this},E.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},E.prototype.write=function(A,t,e){var n=this._writableState,i=!1,o=!n.objectMode&&M(A);return o&&!z.isBuffer(A)&&(A=g(A)),"function"==typeof t&&(e=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof e&&(e=r),n.ended?I(this,e):(o||c(this,n,A,e))&&(n.pendingcb++,i=T(this,n,o,A,t,e)),i},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,A.writing||A.corked||A.finished||A.bufferProcessing||!A.bufferedRequest||u(this,A))},E.prototype.setDefaultEncoding=function(A){if("string"==typeof A&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this},E.prototype._write=function(A,t,e){e(new Error("_write() is not implemented"))},E.prototype._writev=null,E.prototype.end=function(A,t,e){var n=this._writableState;"function"==typeof A?(e=A,A=null,t=null):"function"==typeof t&&(e=t,t=null),null!==A&&void 0!==A&&this.write(A,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||x(this,n,e)},Object.defineProperty(E.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),E.prototype.destroy=O.destroy,E.prototype._undestroy=O.undestroy,E.prototype._destroy=function(A,t){this.end(),t(A)}}).call(t,e(19),e(377).setImmediate,e(9))},function(A,t,e){"use strict";function n(A){if(!A)return"utf8";for(var t;;)switch(A){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 A;default:if(t)return;A=(""+A).toLowerCase(),t=!0}}function i(A){var t=n(A);if("string"!=typeof t&&(B.isEncoding===D||!D(A)))throw new Error("Unknown encoding: "+A);return t||A}function o(A){this.encoding=i(A);var t;switch(this.encoding){case"utf16le":this.text=c,this.end=s,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=T,this.end=N,t=3;break;default:return this.write=l,void(this.end=C)}this.lastNeed=0,this.lastTotal=0,this.lastChar=B.allocUnsafe(t)}function g(A){return A<=127?0:A>>5==6?2:A>>4==14?3:A>>3==30?4:-1}function M(A,t,e){var n=t.length-1;if(n=0?(i>0&&(A.lastNeed=i-1),i):--n=0?(i>0&&(A.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:A.lastNeed=i-3),i):0)}function r(A,t,e){if(128!=(192&t[0]))return A.lastNeed=0,"�".repeat(e);if(A.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return A.lastNeed=1,"�".repeat(e+1);if(A.lastNeed>2&&t.length>2&&128!=(192&t[2]))return A.lastNeed=2,"�".repeat(e+2)}}function a(A){var t=this.lastTotal-this.lastNeed,e=r(this,A,t);return void 0!==e?e:this.lastNeed<=A.length?(A.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(A.copy(this.lastChar,t,0,A.length),void(this.lastNeed-=A.length))}function E(A,t){var e=M(this,A,t);if(!this.lastNeed)return A.toString("utf8",t);this.lastTotal=e;var n=A.length-(e-this.lastNeed);return A.copy(this.lastChar,0,n),A.toString("utf8",t,n)}function I(A){var t=A&&A.length?this.write(A):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t}function c(A,t){if((A.length-t)%2==0){var e=A.toString("utf16le",t);if(e){var n=e.charCodeAt(e.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=A[A.length-2],this.lastChar[1]=A[A.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=A[A.length-1],A.toString("utf16le",t,A.length-1)}function s(A){var t=A&&A.length?this.write(A):"";if(this.lastNeed){var e=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,e)}return t}function T(A,t){var e=(A.length-t)%3;return 0===e?A.toString("base64",t):(this.lastNeed=3-e,this.lastTotal=3,1===e?this.lastChar[0]=A[A.length-1]:(this.lastChar[0]=A[A.length-2],this.lastChar[1]=A[A.length-1]),A.toString("base64",t,A.length-e))}function N(A){var t=A&&A.length?this.write(A):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(A){return A.toString(this.encoding)}function C(A){return A&&A.length?this.write(A):""}var B=e(65).Buffer,D=B.isEncoding||function(A){switch((A=""+A)&&A.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!0;default:return!1}};t.StringDecoder=o,o.prototype.write=function(A){if(0===A.length)return"";var t,e;if(this.lastNeed){if(void 0===(t=this.fillLast(A)))return"";e=this.lastNeed,this.lastNeed=0}else e=0;return e1?i.createElement(E,{search:A.state.filterChars},t.label):t.label))}))):void 0!==A.state.subCollectionsList?i.createElement("div",{className:"subcollections-list"},i.createElement("a",{onClick:function(){return A.resetSelectedContentProvider()},style:{cursor:"pointer"}},i.createElement("i",{className:"fa fa-arrow-left"})," List of Content Providers"),i.createElement("h4",null,A.state.selectedContentProvider),i.createElement("input",{className:"form-control filter-manifests",type:"text",ref:"filterChars",placeholder:"Filter manifests",onKeyUp:(0,n.debounce)(200,A.filterManifestList)}),i.createElement("ul",{className:"discover-content-list"},A.state.subCollectionsList.map(function(t,e){return i.createElement("li",{key:e,className:t.label.toLowerCase().includes(A.state.filterChars)?"subcollection-list-item":"hidden"},i.createElement("a",{onClick:function(){return A.loadSubCollectionsManifestsFromContentProvider(t["@id"],t.label)},style:{cursor:"pointer"}},""!==A.state.filterChars&&A.state.filterChars.length>1?i.createElement(E,{search:A.state.filterChars},t.label):t.label))}))):void 0:i.createElement("div",null,i.createElement("h3",null,"Select Content Provider:"),i.createElement("div",{className:"content-providers-list"},i.createElement("div",null,a.collections.map(function(t,e){return i.createElement("div",{onClick:function(){return A.loadManifestsFromContentProvider(t["@id"],t.label)},className:"content-provider-item",key:e},i.createElement("a",null,i.createElement("img",{src:"./img/logos/"+t.logo,alt:t.label,title:t.label,className:"content-provider-logo"})))}))))}(),this.displayLoadingIndicator(),this.displayErrorMessage()),i.createElement("div",{className:"modal-footer"},i.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},i.createElement("i",{className:"fa fa-close"})," Close")))))}});A.exports=M(function(A){return{manifestData:A.manifestReducer.manifestData}})(I)},function(A,t){A.exports=function(A,t,e,n){function i(){function i(){g=Number(new Date),e.apply(r,E)}function M(){o=void 0}var r=this,a=Number(new Date)-g,E=arguments;n&&!o&&i(),o&&clearTimeout(o),void 0===n&&a>A?i():!0!==t&&(o=setTimeout(n?M:i,void 0===n?A-a:A))}var o,g=0;return"boolean"!=typeof t&&(n=e,e=t,t=void 0),i}},function(A,t){var e="undefined"!=typeof crypto&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&msCrypto.getRandomValues.bind(msCrypto);if(e){var n=new Uint8Array(16);A.exports=function(){return e(n),n}}else{var i=new Array(16);A.exports=function(){for(var A,t=0;t<16;t++)0==(3&t)&&(A=4294967296*Math.random()),i[t]=A>>>((3&t)<<3)&255;return i}}},function(A,t){function e(A,t){var e=t||0,i=n;return i[A[e++]]+i[A[e++]]+i[A[e++]]+i[A[e++]]+"-"+i[A[e++]]+i[A[e++]]+"-"+i[A[e++]]+i[A[e++]]+"-"+i[A[e++]]+i[A[e++]]+"-"+i[A[e++]]+i[A[e++]]+i[A[e++]]+i[A[e++]]+i[A[e++]]+i[A[e++]]}for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);A.exports=e},function(A,t,e){"use strict";function n(A){return A&&A.__esModule?A:{default:A}}function i(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function o(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?A:t}function g(A,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var M=function(){function A(A,t){for(var e=0;e0&&void 0!==this.props.onChangeHandler&&this.props.onChangeHandler(this.props.canvasIndex-1,this.props.sequence):this.props.canvasIndex20){t=this.props.manifestoObject.getSequenceByIndex(0).canvases.length}var e=A.dataTransfer.getData("text/plain");if(""!==e)for(var n=JSON.parse(e),i=n.length-1;i>=0;i--)this.props.dispatch(M.addCanvasAtIndex(n[i],t));return!1},cancelDragOver:function(A){return A.preventDefault&&A.preventDefault(),A.stopPropagation&&A.stopPropagation(),!1},deSelectCanvases:function(){this.setState({selectedCanvasStartIndex:void 0,selectedCanvasEndIndex:void 0}),this.toggleDeleteSelectedCanvasesPrompt(!1)},updateSelectedCanvasIndexes:function(A){var t=this.props.manifestoObject,e=t.getSequenceByIndex(0),n=e.getCanvasById(this.props.selectedCanvasId),i=e.getCanvasIndexById(n.id),o=i>A?A:i,g=i>A?i:A;this.setState({selectedCanvasStartIndex:o,selectedCanvasEndIndex:g}),this.toggleDeleteSelectedCanvasesPrompt(!0)},toggleDeleteSelectedCanvasesPrompt:function(A){var e=t(i.findDOMNode(this.refs.deleteSelectedCanvasPrompt));A?e.slideDown():e.slideUp()},isCanvasSelected:function(A){return A>=this.state.selectedCanvasStartIndex&&A<=this.state.selectedCanvasEndIndex},deleteSelectedCanvases:function(){for(var A=this.props,t=A.dispatch,e=A.canvasIndex,e=this.state.selectedCanvasEndIndex;e>=this.state.selectedCanvasStartIndex;e--)e==this.props.manifestoObject.getSequenceByIndex(0).getCanvasIndexById(this.props.selectedCanvasId)&&t(M.setSelectedCanvasId(void 0)),t(M.deleteCanvasAtIndex(e));this.deSelectCanvases()},render:function(){var A=this,t=this;return n.createElement("div",{className:"thumbnail-strip-container",onDragOver:this.cancelDragOver,onDrop:this.addCanvases},n.createElement(s,{ref:"onScreenHelp",section:this.state.helpSection}),n.createElement("div",{className:"alert alert-danger delete-selected-canvases-prompt",ref:"deleteSelectedCanvasPrompt"},"Delete selected canvases?",n.createElement("button",{type:"button",className:"btn btn-default",onClick:this.deleteSelectedCanvases},n.createElement("i",{className:"fa fa-check"})," OK"),n.createElement("button",{type:"button",className:"btn btn-default",onClick:this.deSelectCanvases},n.createElement("i",{className:"fa fa-times"})," Cancel")),n.createElement("a",{className:"help-icon",href:"javascript:;",onClick:function(){return A.showHelp("ThumbnailStrip")}},n.createElement("i",{className:"fa fa-question-circle-o"})),n.createElement(I,{name:"simple-sort",onSort:this.handleSort},this.props.manifestoObject.getSequenceByIndex(0).getCanvases().map(function(A,e){return n.createElement(c,{key:e,draggable:!0,className:"simple-sort-item"},n.createElement(r,{key:e,canvasIndex:e,canvasId:A.id,isSelectedCanvas:t.isCanvasSelected(e),onCanvasNormalClick:t.deSelectCanvases,onCanvasShiftClick:t.updateSelectedCanvasIndexes}))})),n.createElement("button",{type:"button",className:"btn btn-default add-new-canvas-button",title:"Add new canvas to end of sequence",onClick:this.appendEmptyCanvasToSequence},n.createElement("span",{className:"fa fa-plus-circle fa-2x"}),n.createElement("br",null),"Add Canvas"))}});A.exports=g(function(A){return{manifestoObject:A.manifestReducer.manifestoObject,manifestData:A.manifestReducer.manifestData,selectedCanvasId:A.manifestReducer.selectedCanvasId}})(T)}).call(t,e(12))},function(A,t,e){"use strict";function n(A){return A&&A.__esModule?A:{default:A}}function i(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function o(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?A:t}function g(A,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var M=function(){function A(A,t){for(var e=0;e0&&(A.debounce?e.lazyLoadHandler=(0,N.default)(e.lazyLoadHandler,A.throttle):e.lazyLoadHandler=(0,C.default)(e.lazyLoadHandler,A.throttle)),e.state={visible:!1},e}return g(t,A),M(t,[{key:"componentDidMount",value:function(){this._mounted=!0;var A=this.getEventNode();this.lazyLoadHandler(),this.lazyLoadHandler.flush&&this.lazyLoadHandler.flush(),(0,s.add)(window,"resize",this.lazyLoadHandler),(0,s.add)(A,"scroll",this.lazyLoadHandler)}},{key:"componentWillReceiveProps",value:function(){this.state.visible||this.lazyLoadHandler()}},{key:"shouldComponentUpdate",value:function(A,t){return t.visible}},{key:"componentWillUnmount",value:function(){this._mounted=!1,this.lazyLoadHandler.cancel&&this.lazyLoadHandler.cancel(),this.detachListeners()}},{key:"getEventNode",value:function(){return(0,D.default)((0,c.findDOMNode)(this))}},{key:"getOffset",value:function(){var A=this.props,t=A.offset,e=A.offsetVertical,n=A.offsetHorizontal,i=A.offsetTop,o=A.offsetBottom,g=A.offsetLeft,M=A.offsetRight,r=A.threshold,a=r||t,E=e||a,I=n||a;return{top:i||E,bottom:o||E,left:g||I,right:M||I}}},{key:"lazyLoadHandler",value:function(){if(this._mounted){var A=this.getOffset(),t=(0,c.findDOMNode)(this),e=this.getEventNode();if((0,u.default)(t,e,A)){var n=this.props.onContentVisible;this.setState({visible:!0},function(){n&&n()}),this.detachListeners()}}}},{key:"detachListeners",value:function(){var A=this.getEventNode();(0,s.remove)(window,"resize",this.lazyLoadHandler),(0,s.remove)(A,"scroll",this.lazyLoadHandler)}},{key:"render",value:function(){var A=this.props,t=A.children,e=A.className,n=A.height,i=A.width,o=this.state.visible,g={height:n,width:i},M="LazyLoad"+(o?" is-visible":"")+(e?" "+e:"");return a.default.createElement(this.props.elementType,{className:M,style:g},o&&r.Children.only(t))}}]),t}(r.Component);t.default=h,h.propTypes={children:I.default.node.isRequired,className:I.default.string,debounce:I.default.bool,elementType:I.default.string,height:I.default.oneOfType([I.default.string,I.default.number]),offset:I.default.number,offsetBottom:I.default.number,offsetHorizontal:I.default.number,offsetLeft:I.default.number,offsetRight:I.default.number,offsetTop:I.default.number,offsetVertical:I.default.number,threshold:I.default.number,throttle:I.default.number,width:I.default.oneOfType([I.default.string,I.default.number]),onContentVisible:I.default.func},h.defaultProps={elementType:"div",debounce:!0,offset:0,offsetBottom:0,offsetHorizontal:0,offsetLeft:0,offsetRight:0,offsetTop:0,offsetVertical:0,throttle:250}},function(A,t){A.exports=function(){var A=[];return A.toString=function(){for(var A=[],t=0;t=0&&B.splice(t,1)}function g(A){var t=document.createElement("style");return t.type="text/css",i(A,t),t}function M(A){var t=document.createElement("link");return t.rel="stylesheet",i(A,t),t}function r(A,t){var e,n,i;if(t.singleton){var r=C++;e=l||(l=g(t)),n=a.bind(null,e,r,!1),i=a.bind(null,e,r,!0)}else A.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(e=M(t),n=I.bind(null,e),i=function(){o(e),e.href&&URL.revokeObjectURL(e.href)}):(e=g(t),n=E.bind(null,e),i=function(){o(e)});return n(A),function(t){if(t){if(t.css===A.css&&t.media===A.media&&t.sourceMap===A.sourceMap)return;n(A=t)}else i()}}function a(A,t,e,n){var i=e?"":n.css;if(A.styleSheet)A.styleSheet.cssText=D(t,i);else{var o=document.createTextNode(i),g=A.childNodes;g[t]&&A.removeChild(g[t]),g.length?A.insertBefore(o,g[t]):A.appendChild(o)}}function E(A,t){var e=t.css,n=t.media;if(n&&A.setAttribute("media",n),A.styleSheet)A.styleSheet.cssText=e;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(e))}}function I(A,t){var e=t.css,n=t.sourceMap;n&&(e+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var i=new Blob([e],{type:"text/css"}),o=A.href;A.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var c={},s=function(A){var t;return function(){return void 0===t&&(t=A.apply(this,arguments)),t}},T=s(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),N=s(function(){return document.head||document.getElementsByTagName("head")[0]}),l=null,C=0,B=[];A.exports=function(A,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},void 0===t.singleton&&(t.singleton=T()),void 0===t.insertAt&&(t.insertAt="bottom");var i=n(A);return e(i,t),function(A){for(var o=[],g=0;g=0&&n0&&t-1 in e)}var E=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,y,v,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ae(),k=ae(),S=ae(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,q=A.push,L=A.push,H=A.slice,O=function(e,t){for(var n=0,r=e.length;n+~]|"+M+")"+M+"*"),z=new RegExp("="+M+"*([^\\\\]\'\\"]*?)"+M+"*\\\\]","g"),X=new RegExp(W),U=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\("+M+"*(even|odd|(([+-]|)(\\\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\\\d+)|))"+M+"*\\\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\("+M+"*((?:-\\\\d)?\\\\d*)"+M+"*\\\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\\d$/i,Q=/^[^{]+\\{\\s*\\[native \\w/,J=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\\\\\([\\\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,ne=function(e,t){return t?"\\0"===e?"\\ufffd":e.slice(0,-1)+"\\\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\\\"+e},re=function(){p()},ie=me(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{L.apply(A=H.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){L={apply:A.length?function(e,t){q.apply(e,H.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function oe(e,t,r,i){var o,s,l,c,f,h,v,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=J.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!S[e+" "]&&(!y||!y.test(e))){if(1!==T)m=t,v=e;else if("object"!==t.nodeName.toLowerCase()){(c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=b),s=(h=a(e)).length;while(s--)h[s]="#"+c+" "+ve(h[s]);v=h.join(","),m=K.test(e)&&ge(t.parentNode)||t}if(v)try{return L.apply(r,m.querySelectorAll(v)),r}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ae(){var e=[];function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}return t}function se(e){return e[b]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){var n=e.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function de(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ge(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(d=a,h=d.documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],y=[],(n.qsa=Q.test(d.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^=\'\']").length&&y.push("[*^$]="+M+"*(?:\'\'|\\"\\")"),e.querySelectorAll("[selected]").length||y.push("\\\\["+M+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||y.push(".#.+[+~]")}),ue(function(e){e.innerHTML="";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(n.matchesSelector=Q.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!=\'\']:x"),v.push("!=",W)}),y=y.length&&new RegExp(y.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(h.compareDocumentPosition),x=t||Q.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return ce(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?ce(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),t=t.replace(z,"=\'$1\']"),n.matchesSelector&&g&&!S[t+" "]&&(!v||!v.test(t))&&(!y||!y.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,d,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),f){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return c=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",y=t.parentNode,v=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(y){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?y.firstChild:y.lastChild],a&&m){x=(d=(l=(c=(f=(p=y)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&y.childNodes[d];while(p=++d&&p&&p[g]||(x=d=0)||h.pop())if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)while(p=++d&&p&&p[g]||(x=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===v:1===p.nodeType)&&++x&&(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p===t))break;return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){var r,o=i(e,t),a=o.length;while(a--)e[r=O(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?se(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return U.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function be(e,t,n){for(var r=0,i=t.length;r-1&&(o[l]=!(a[l]=f))}}else v=we(v===a?v.splice(h,v.length):v),i?i(null,a,v,u):L.apply(a,v)})}function Ce(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=me(function(e){return e===t},s,!0),f=me(function(e){return O(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u1&&xe(p),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),n,u0,i=e.length>0,o=function(o,a,s,u,c){var f,h,y,v=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){h=0,a||f.ownerDocument===d||(p(f),s=!g);while(y=e[h++])if(y(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!y&&f)&&v--,o&&x.push(f))}if(v+=m,n&&m!==v){h=0;while(y=t[h++])y(x,b,a,s);if(o){if(v>0)while(m--)x[m]||b[m]||(b[m]=j.call(u));b=we(b)}L.apply(u,b),c&&!o&&b.length>0&&v+t.length>1&&oe.uniqueSort(u)}return c&&(T=E,l=w),x};return n?se(o):o}return s=oe.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=a(e)),n=t.length;while(n--)(o=Ce(t[n]))[b]?r.push(o):i.push(o);(o=S(e,Ee(i,r))).selector=e}return o},u=oe.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(Z,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}o=V.needsContext.test(e)?0:u.length;while(o--){if(l=u[o],r.relative[c=l.type])break;if((f=r.find[c])&&(i=f(l.matches[0].replace(Z,ee),K.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&ve(u)))return L.apply(n,i),n;break}}}return(p||s(e,d))(i,t,!g,n,!t||K.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split("").sort(D).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ue(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(e);w.find=E,w.expr=E.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=E.uniqueSort,w.text=E.getText,w.isXMLDoc=E.isXML,w.contains=E.contains,w.escapeSelector=E.escape;var k=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=w.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i;function j(e,t,n){return g(t)?w.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return u.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&D.test(e)?w(e):e||[],!1).length}});var q,L=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/;(w.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),A.test(i[1])&&w.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,q=w(r);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(w(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,n){return k(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,n){return k(e,"nextSibling",n)},prevUntil:function(e,t,n){return k(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return N(e,"iframe")?e.contentDocument:(N(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=w.filter(r,i)),this.length>1&&(O[e]||w.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}});var M=/[^\\x20\\t\\r\\n\\f]+/g;function R(e){var t={};return w.each(e.match(M)||[],function(e,n){t[n]=!0}),t}w.Callbacks=function(e){e="string"==typeof e?R(e):w.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1){n=a.shift();while(++s-1)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l};function I(e){return e}function W(e){throw e}function $(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t=o&&(r!==W&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(a(0,e,g(i)?i:I,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:I)),n[2][3].add(a(0,e,g(r)?r:W))}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={};return w.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=w.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&($(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();while(n--)$(i[n],s(n),a.reject);return a.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&B.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var F=w.Deferred();w.fn.ready=function(e){return F.then(e)["catch"](function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||F.resolveWith(r,[w]))}}),w.ready.then=F.then;function _(){r.removeEventListener("DOMContentLoaded",_),e.removeEventListener("load",_),w.ready()}"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(w.ready):(r.addEventListener("DOMContentLoaded",_),e.addEventListener("load",_));var z=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n)){i=!0;for(s in n)z(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(w(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,i=n.shift(),o=w._queueHooks(e,t),a=function(){w.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:w.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\\x20\\t\\r\\n\\f]+)/i,he=/^$|^module$|\\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?w.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n-1)i&&i.push(o);else if(l=w.contains(o.ownerDocument,o),a=ye(f.appendChild(o),"script"),l&&ve(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}!function(){var e=r.createDocumentFragment().appendChild(r.createElement("div")),t=r.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var be=r.documentElement,we=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\\.(.+)|)/;function Ee(){return!0}function ke(){return!1}function Se(){try{return r.activeElement}catch(e){}}function De(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)De(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ke;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,i,r,n)})}w.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=J.get(e);if(y){n.handler&&(n=(o=n).handler,i=o.selector),i&&w.find.matchesSelector(be,i),n.guid||(n.guid=w.guid++),(u=y.events)||(u=y.events={}),(a=y.handle)||(a=y.handle=function(t){return"undefined"!=typeof w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(M)||[""]).length;while(l--)d=g=(s=Ce.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=w.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=w.event.special[d]||{},c=w.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=J.hasData(e)&&J.get(e);if(y&&(u=y.events)){l=(t=(t||"").match(M)||[""]).length;while(l--)if(s=Ce.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){f=w.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\\\.)"+h.join("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,y.handle)||w.removeEvent(e,d,y.handle),delete u[d])}else for(d in u)w.event.remove(e,d+t[l],n,r,!0);w.isEmptyObject(u)&&J.remove(e,"handle events")}},dispatch:function(e){var t=w.event.fix(e),n,r,i,o,a,s,u=new Array(arguments.length),l=(J.get(this,"events")||{})[t.type]||[],c=w.event.special[t.type]||{};for(u[0]=t,n=1;n=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n-1:w.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi,Ae=/\\s*$/g;function Le(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")?w(e).children("tbody")[0]||e:e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Pe(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(J.hasData(e)&&(o=J.access(e),a=J.set(t,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;n1&&"string"==typeof y&&!h.checkClone&&je.test(y))return e.each(function(i){var o=e.eq(i);v&&(t[0]=y.call(this,i,o.html())),Re(o,t,n,r)});if(p&&(i=xe(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=w.map(ye(i,"script"),He)).length;f")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=w.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=ye(s),r=0,i=(o=ye(e)).length;r0&&ve(a,!u&&ye(e,"script")),s},cleanData:function(e){for(var t,n,r,i=w.event.special,o=0;void 0!==(n=e[o]);o++)if(Y(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)i[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Ie(this,e,!0)},remove:function(e){return Ie(this,e)},text:function(e){return z(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))),u}function et(e,t,n){var r=$e(e),i=Fe(e,t,r),o="border-box"===w.css(e,"boxSizing",!1,r),a=o;if(We.test(i)){if(!n)return i;i="auto"}return a=a&&(h.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===w.css(e,"display",!1,r))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(i=parseFloat(i)||0)+Ze(e,t,n||(o?"border":"content"),a,r,i)+"px"}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Fe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=G(t),u=Xe.test(t),l=e.style;if(u||(t=Je(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"==(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(w.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=G(t);return Xe.test(t)||(t=Je(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Fe(e,t,r)),"normal"===i&&t in Ve&&(i=Ve[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!ze.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,r):se(e,Ue,function(){return et(e,t,r)})},set:function(e,n,r){var i,o=$e(e),a="border-box"===w.css(e,"boxSizing",!1,o),s=r&&Ze(e,t,r,a,o);return a&&h.scrollboxSize()===o.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Ze(e,t,"border",!1,o)-.5)),s&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Ke(e,n,s)}}}),w.cssHooks.marginLeft=_e(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Fe(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(w.cssHooks[e+t].set=Ke)}),w.fn.extend({css:function(e,t){return z(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=$e(e),i=t.length;a1)}});function tt(e,t,n,r,i){return new tt.prototype.init(e,t,n,r,i)}w.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[w.cssProps[e.prop]]&&!w.cssHooks[e.prop]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=tt.prototype.init,w.fx.step={};var nt,rt,it=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function at(){rt&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(at):e.setTimeout(at,w.fx.interval),w.fx.tick())}function st(){return e.setTimeout(function(){nt=void 0}),nt=Date.now()}function ut(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function lt(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(M);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\\w+/g),function(e,t){var n=ht[t]||w.find.attr;ht[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ht[a],ht[a]=i,i=null!=n(e,t,r)?a:null,ht[a]=o),i}});var gt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;w.fn.extend({prop:function(e,t){return z(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,i=w.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),h.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function vt(e){return(e.match(M)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e?e.match(M)||[]:[]}w.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){w(this).addClass(e.call(this,t,mt(this)))});if((t=xt(e)).length)while(n=this[u++])if(i=mt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=t[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){w(this).removeClass(e.call(this,t,mt(this)))});if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)while(n=this[u++])if(i=mt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=t[a++])while(r.indexOf(" "+o+" ")>-1)r=r.replace(" "+o+" "," ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,mt(this),t),t)}):this.each(function(){var t,i,o,a;if(r){i=0,o=w(this),a=xt(e);while(t=a[i++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else void 0!==e&&"boolean"!==n||((t=mt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&(" "+vt(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\\r/g;w.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=g(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,w(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=w.map(i,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(bt,""):null==n?"":n}}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:vt(w.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,i,o){var a,s,u,l,c,p,d,h,v=[i||r],m=f.call(t,"type")?t.type:t,x=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!wt.test(m+w.event.triggered)&&(m.indexOf(".")>-1&&(m=(x=m.split(".")).shift(),x.sort()),c=m.indexOf(":")<0&&"on"+m,t=t[w.expando]?t:new w.Event(m,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\\\.)"+x.join("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:w.makeArray(n,[t]),d=w.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!y(i)){for(l=d.delegateType||m,wt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)v.push(s),u=s;u===(i.ownerDocument||r)&&v.push(u.defaultView||u.parentWindow||e)}a=0;while((s=v[a++])&&!t.isPropagationStopped())h=s,t.type=a>1?l:d.bindType||m,(p=(J.get(s,"events")||{})[t.type]&&J.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&Y(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(v.pop(),n)||!Y(i)||c&&g(i[m])&&!y(i)&&((u=i[c])&&(i[c]=null),w.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Tt),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,Tt),w.event.triggered=void 0,u&&(i[c]=u)),t.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),h.focusin||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=J.access(r,t);i||r.addEventListener(e,n,!0),J.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=J.access(r,t)-1;i?J.access(r,t,i):(r.removeEventListener(e,n,!0),J.remove(r,t))}}});var Ct=e.location,Et=Date.now(),kt=/\\?/;w.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),n};var St=/\\[\\]$/,Dt=/\\r?\\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))w.each(t,function(t,i){n||St.test(e)?r(e,i):jt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==x(t))r(e,t);else for(i in t)jt(e+"["+i+"]",t[i],n,r)}w.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){i(this.name,this.value)});else for(n in e)jt(n,e[n],t,i);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&At.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(Dt,"\\r\\n")}}):{name:t.name,value:n.replace(Dt,"\\r\\n")}}).get()}});var qt=/%20/g,Lt=/#.*$/,Ht=/([?&])_=[^&]*/,Ot=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,Pt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mt=/^(?:GET|HEAD)$/,Rt=/^\\/\\//,It={},Wt={},$t="*/".concat("*"),Bt=r.createElement("a");Bt.href=Ct.href;function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(M)||[];if(g(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function _t(e,t,n,r){var i={},o=e===Wt;function a(s){var u;return i[s]=!0,w.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function zt(e,t){var n,r,i=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}function Xt(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function Ut(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:Pt.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\\bxml\\b/,html:/\\bhtml/,json:/\\bjson\\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,w.ajaxSettings),t):zt(w.ajaxSettings,e)},ajaxPrefilter:Ft(It),ajaxTransport:Ft(Wt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=w.ajaxSetup({},n),g=h.context||h,y=h.context&&(g.nodeType||g.jquery)?w(g):w.event,v=w.Deferred(),m=w.Callbacks("once memory"),x=h.statusCode||{},b={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s){s={};while(t=Ot.exec(a))s[t[1].toLowerCase()]=t[2]}t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),k(0,t),this}};if(v.promise(E),h.url=((t||h.url||Ct.href)+"").replace(Rt,Ct.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(M)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Bt.protocol+"//"+Bt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),_t(It,h,n,E),c)return E;(f=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Mt.test(h.type),o=h.url.replace(Lt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(qt,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(kt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ht,"$1"),d=(kt.test(o)?"&":"?")+"_="+Et+++d),h.url=o+d),h.ifModified&&(w.lastModified[o]&&E.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&E.setRequestHeader("If-None-Match",w.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+$t+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C="abort",m.add(h.complete),E.done(h.success),E.fail(h.error),i=_t(Wt,h,n,E)){if(E.readyState=1,f&&y.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(u=e.setTimeout(function(){E.abort("timeout")},h.timeout));try{c=!1,i.send(b,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,n,r,s){var l,p,d,b,T,C=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",E.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(b=Xt(h,E,r)),b=Ut(h,b,E,l),l?(h.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(w.etag[o]=T)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=b.state,p=b.data,l=!(d=b.error))):(d=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",l?v.resolveWith(g,[p,C,E]):v.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&y.trigger(l?"ajaxSuccess":"ajaxError",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(y.trigger("ajaxComplete",[E,h]),--w.active||w.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:n,success:r},w.isPlainObject(e)&&e))}}),w._evalUrl=function(e){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return g(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=g(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Gt=w.ajaxSettings.xhr();h.cors=!!Gt&&"withCredentials"in Gt,h.ajax=Gt=!!Gt,w.ajaxTransport(function(t){var n,r;if(h.cors||Gt&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Vt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\\b(?:java|ecma)script\\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(i,o){t=w("