@harvard-lts/mirador-hide-nav-plugin 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @harvard-lts/mirador-hide-nav-plugin v1.0.
|
|
2
|
+
* @harvard-lts/mirador-hide-nav-plugin v1.0.1
|
|
3
3
|
* MIT Licensed
|
|
4
4
|
*/
|
|
5
5
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.hideViewerNavigation=e(require("react")):t.hideViewerNavigation=e(t.React)}(window,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=47)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.BOOKMARKING="oa:bookmarking",t.CLASSIFYING="oa:classifying",t.COMMENTING="oa:commenting",t.DESCRIBING="oa:describing",t.EDITING="oa:editing",t.HIGHLIGHTING="oa:highlighting",t.IDENTIFYING="oa:identifying",t.LINKING="oa:linking",t.MODERATING="oa:moderating",t.PAINTING="sc:painting",t.QUESTIONING="oa:questioning",t.REPLYING="oa:replying",t.TAGGING="oa:tagging",t.TRANSCRIBING="oad:transcribing"}(e.AnnotationMotivation||(e.AnnotationMotivation={})),function(t){t.AUTO_ADVANCE="auto-advance",t.CONTINUOUS="continuous",t.FACING_PAGES="facing-pages",t.HIDDEN="hidden",t.INDIVIDUALS="individuals",t.MULTI_PART="multi-part",t.NO_NAV="no-nav",t.NON_PAGED="non-paged",t.PAGED="paged",t.REPEAT="repeat",t.SEQUENCE="sequence",t.THUMBNAIL_NAV="thumbnail-nav",t.TOGETHER="together",t.UNORDERED="unordered"}(e.Behavior||(e.Behavior={})),function(t){t.CANVAS="canvas",t.CHOICE="choice",t.OA_CHOICE="oa:choice",t.CONTENT_AS_TEXT="contentastext",t.DATASET="dataset",t.DOCUMENT="document",t.IMAGE="image",t.MODEL="model",t.MOVING_IMAGE="movingimage",t.PDF="pdf",t.PHYSICAL_OBJECT="physicalobject",t.SOUND="sound",t.TEXT="text",t.TEXTUALBODY="textualbody",t.VIDEO="video"}(e.ExternalResourceType||(e.ExternalResourceType={})),function(t){t.ANNOTATION="annotation",t.CANVAS="canvas",t.COLLECTION="collection",t.MANIFEST="manifest",t.RANGE="range",t.SEQUENCE="sequence"}(e.IIIFResourceType||(e.IIIFResourceType={})),function(t){t.AUDIO_MP4="audio/mp4",t.CORTO="application/corto",t.DICOM="application/dicom",t.DRACO="application/draco",t.EPUB="application/epub+zip",t.GIRDER="image/vnd.kitware.girder",t.GLB="model/gltf-binary",t.GLTF="model/gltf+json",t.IIIF_PRESENTATION_2='application/ld+json;profile="http://iiif.io/api/presentation/2/context.json"',t.IIIF_PRESENTATION_3='application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"',t.JPG="image/jpeg",t.M3U8="application/vnd.apple.mpegurl",t.MP3="audio/mp3",t.MPEG_DASH="application/dash+xml",t.OBJ="text/plain",t.OPF="application/oebps-package+xml",t.PDF="application/pdf",t.PLY="application/ply",t.THREEJS="application/vnd.threejs+json",t.USDZ="model/vnd.usd+zip",t.VIDEO_MP4="video/mp4",t.WAV="audio/wav",t.WEBM="video/webm"}(e.MediaType||(e.MediaType={})),function(t){t.DOC="application/msword",t.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",t.PDF="application/pdf"}(e.RenderingFormat||(e.RenderingFormat={})),function(t){t.IMAGE_0_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",t.IMAGE_0_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",t.IMAGE_0_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",t.IMAGE_0_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",t.IMAGE_0_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",t.IMAGE_0_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",t.IMAGE_1_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",t.IMAGE_1_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",t.IMAGE_1_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",t.IMAGE_1_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",t.IMAGE_1_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",t.IMAGE_1_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",t.IMAGE_1_LEVEL_0="http://iiif.io/api/image/1/level0.json",t.IMAGE_1_PROFILE_LEVEL_0="http://iiif.io/api/image/1/profiles/level0.json",t.IMAGE_1_LEVEL_1="http://iiif.io/api/image/1/level1.json",t.IMAGE_1_PROFILE_LEVEL_1="http://iiif.io/api/image/1/profiles/level1.json",t.IMAGE_1_LEVEL_2="http://iiif.io/api/image/1/level2.json",t.IMAGE_1_PROFILE_LEVEL_2="http://iiif.io/api/image/1/profiles/level2.json",t.IMAGE_2_LEVEL_0="http://iiif.io/api/image/2/level0.json",t.IMAGE_2_PROFILE_LEVEL_0="http://iiif.io/api/image/2/profiles/level0.json",t.IMAGE_2_LEVEL_1="http://iiif.io/api/image/2/level1.json",t.IMAGE_2_PROFILE_LEVEL_1="http://iiif.io/api/image/2/profiles/level1.json",t.IMAGE_2_LEVEL_2="http://iiif.io/api/image/2/level2.json",t.IMAGE_2_PROFILE_LEVEL_2="http://iiif.io/api/image/2/profiles/level2.json",t.AUTH_0_CLICK_THROUGH="http://iiif.io/api/auth/0/login/clickthrough",t.AUTH_0_LOGIN="http://iiif.io/api/auth/0/login",t.AUTH_0_LOGOUT="http://iiif.io/api/auth/0/logout",t.AUTH_0_RESTRICTED="http://iiif.io/api/auth/0/login/restricted",t.AUTH_0_TOKEN="http://iiif.io/api/auth/0/token",t.AUTH_1_CLICK_THROUGH="http://iiif.io/api/auth/1/clickthrough",t.AUTH_1_EXTERNAL="http://iiif.io/api/auth/1/external",t.AUTH_1_KIOSK="http://iiif.io/api/auth/1/kiosk",t.AUTH_1_LOGIN="http://iiif.io/api/auth/1/login",t.AUTH_1_LOGOUT="http://iiif.io/api/auth/1/logout",t.AUTH_1_PROBE="http://iiif.io/api/auth/1/probe",t.AUTH_1_TOKEN="http://iiif.io/api/auth/1/token",t.SEARCH_0="http://iiif.io/api/search/0/search",t.SEARCH_0_AUTO_COMPLETE="http://iiif.io/api/search/0/autocomplete",t.SEARCH_1="http://iiif.io/api/search/1/search",t.SEARCH_1_AUTO_COMPLETE="http://iiif.io/api/search/1/autocomplete",t.TRACKING_EXTENSIONS="http://universalviewer.io/tracking-extensions-profile",t.UI_EXTENSIONS="http://universalviewer.io/ui-extensions-profile",t.PRINT_EXTENSIONS="http://universalviewer.io/print-extensions-profile",t.SHARE_EXTENSIONS="http://universalviewer.io/share-extensions-profile",t.OTHER_MANIFESTATIONS="http://iiif.io/api/otherManifestations.json",t.IXIF="http://wellcomelibrary.org/ld/ixif/0/alpha.json"}(e.ServiceProfile||(e.ServiceProfile={})),function(t){t.BOTTOM_TO_TOP="bottom-to-top",t.LEFT_TO_RIGHT="left-to-right",t.RIGHT_TO_LEFT="right-to-left",t.TOP_TO_BOTTOM="top-to-bottom"}(e.ViewingDirection||(e.ViewingDirection={})),function(t){t.CONTINUOUS="continuous",t.INDIVIDUALS="individuals",t.NON_PAGED="non-paged",t.PAGED="paged",t.TOP="top"}(e.ViewingHint||(e.ViewingHint={}))},function(t,e,r){"use strict";r.r(e),r.d(e,"defaultMemoize",(function(){return o})),r.d(e,"defaultEqualityCheck",(function(){return n})),r.d(e,"createSelectorCreator",(function(){return a})),r.d(e,"createSelector",(function(){return c})),r.d(e,"createStructuredSelector",(function(){return u}));var n=function(t,e){return t===e};function o(t,e){var r,o,i="object"==typeof e?e:{equalityCheck:e},a=i.equalityCheck,c=void 0===a?n:a,u=i.maxSize,s=void 0===u?1:u,l=i.resultEqualityCheck,f=function(t){return function(e,r){if(null===e||null===r||e.length!==r.length)return!1;for(var n=e.length,o=0;o<n;o++)if(!t(e[o],r[o]))return!1;return!0}}(c),p=1===s?(r=f,{get:function(t){return o&&r(o.key,t)?o.value:"NOT_FOUND"},put:function(t,e){o={key:t,value:e}},getEntries:function(){return o?[o]:[]},clear:function(){o=void 0}}):function(t,e){var r=[];function n(t){var n=r.findIndex((function(r){return e(t,r.key)}));if(n>-1){var o=r[n];return n>0&&(r.splice(n,1),r.unshift(o)),o.value}return"NOT_FOUND"}return{get:n,put:function(e,o){"NOT_FOUND"===n(e)&&(r.unshift({key:e,value:o}),r.length>t&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(s,f);function h(){var e=p.get(arguments);if("NOT_FOUND"===e){if(e=t.apply(null,arguments),l){var r=p.getEntries(),n=r.find((function(t){return l(t.value,e)}));n&&(e=n.value)}p.put(arguments,e)}return e}return h.clearCache=function(){return p.clear()},h}function i(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return"function"==typeof t}))){var r=e.map((function(t){return"function"==typeof t?"function "+(t.name||"unnamed")+"()":typeof t})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return e}function a(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var a,c=0,u={memoizeOptions:void 0},s=n.pop();if("object"==typeof s&&(u=s,s=n.pop()),"function"!=typeof s)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof s+"]");var l=u,f=l.memoizeOptions,p=void 0===f?r:f,h=Array.isArray(p)?p:[p],g=i(n),v=t.apply(void 0,[function(){return c++,s.apply(null,arguments)}].concat(h)),_=t((function(){for(var t=[],e=g.length,r=0;r<e;r++)t.push(g[r].apply(null,arguments));return a=v.apply(null,t)}));return Object.assign(_,{resultFunc:s,memoizedResultFunc:v,dependencies:g,lastResult:function(){return a},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),_};return o}var c=a(o),u=function(t,e){if(void 0===e&&(e=c),"object"!=typeof t)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);var r=Object.keys(t);return e(r.map((function(e){return t[e]})),(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e,n){return t[r[n]]=e,t}),{})}))}},function(t,e,r){var n=r(26);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CONTINUE=100,e.SWITCHING_PROTOCOLS=101,e.PROCESSING=102,e.OK=200,e.CREATED=201,e.ACCEPTED=202,e.NON_AUTHORITATIVE_INFORMATION=203,e.NO_CONTENT=204,e.RESET_CONTENT=205,e.PARTIAL_CONTENT=206,e.MULTI_STATUS=207,e.MULTIPLE_CHOICES=300,e.MOVED_PERMANENTLY=301,e.MOVED_TEMPORARILY=302,e.SEE_OTHER=303,e.NOT_MODIFIED=304,e.USE_PROXY=305,e.TEMPORARY_REDIRECT=307,e.BAD_REQUEST=400,e.UNAUTHORIZED=401,e.PAYMENT_REQUIRED=402,e.FORBIDDEN=403,e.NOT_FOUND=404,e.METHOD_NOT_ALLOWED=405,e.NOT_ACCEPTABLE=406,e.PROXY_AUTHENTICATION_REQUIRED=407,e.REQUEST_TIME_OUT=408,e.CONFLICT=409,e.GONE=410,e.LENGTH_REQUIRED=411,e.PRECONDITION_FAILED=412,e.REQUEST_ENTITY_TOO_LARGE=413,e.REQUEST_URI_TOO_LARGE=414,e.UNSUPPORTED_MEDIA_TYPE=415,e.REQUESTED_RANGE_NOT_SATISFIABLE=416,e.EXPECTATION_FAILED=417,e.IM_A_TEAPOT=418,e.UNPROCESSABLE_ENTITY=422,e.LOCKED=423,e.FAILED_DEPENDENCY=424,e.UNORDERED_COLLECTION=425,e.UPGRADE_REQUIRED=426,e.PRECONDITION_REQUIRED=428,e.TOO_MANY_REQUESTS=429,e.REQUEST_HEADER_FIELDS_TOO_LARGE=431,e.INTERNAL_SERVER_ERROR=500,e.NOT_IMPLEMENTED=501,e.BAD_GATEWAY=502,e.SERVICE_UNAVAILABLE=503,e.GATEWAY_TIME_OUT=504,e.HTTP_VERSION_NOT_SUPPORTED=505,e.VARIANT_ALSO_NEGOTIATES=506,e.INSUFFICIENT_STORAGE=507,e.BANDWIDTH_LIMIT_EXCEEDED=509,e.NOT_EXTENDED=510,e.NETWORK_AUTHENTICATION_REQUIRED=511},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){var n=r(28),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e,r){var n=r(26);t.exports=function(t){return(null==t?0:t.length)?n(t,1/0):[]}},function(t,e,r){var n=r(56),o=r(59);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(5).Symbol;t.exports=n},function(t,e,r){var n=r(8),o=r(51),i=r(52),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(81),o=r(82),i=r(83),a=r(84),c=r(85);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},function(t,e,r){var n=r(38);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(7)(Object,"create");t.exports=n},function(t,e,r){var n=r(99);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(24);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(e,r){e.exports=t},function(t,e,r){var n=r(50),o=r(10),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(67),o=r(73),i=r(36);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,r){var n=r(7)(r(5),"Map");t.exports=n},function(t,e,r){var n=r(91),o=r(98),i=r(100),a=r(101),c=r(102);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},function(t,e,r){var n=r(4),o=r(24),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,r){var n=r(9),o=r(10);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},function(t,e,r){var n=r(54),o=r(60),i=Object.prototype.hasOwnProperty,a=o((function(t,e,r){i.call(t,r)?t[r].push(e):n(t,r,[e])}));t.exports=a},function(t,e,r){var n=r(27),o=r(48);t.exports=function t(e,r,i,a,c){var u=-1,s=e.length;for(i||(i=o),c||(c=[]);++u<s;){var l=e[u];r>0&&i(l)?r>1?t(l,r-1,i,a,c):n(c,l):a||(c[c.length]=l)}return c}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(49))},function(t,e,r){"use strict";r.r(e),e.default=function(t,e){return e=e||{},new Promise((function(r,n){var o=new XMLHttpRequest,i=[],a=[],c={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return i},entries:function(){return a},get:function(t){return c[t.toLowerCase()]},has:function(t){return t.toLowerCase()in c}}}};for(var s in o.open(e.method||"get",t,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){i.push(e=e.toLowerCase()),a.push([e,r]),c[e]=c[e]?c[e]+","+r:r})),r(u())},o.onerror=n,o.withCredentials="include"==e.credentials,e.headers)o.setRequestHeader(s,e.headers[s]);o.send(e.body||null)}))}},function(t,e,r){var n=r(9),o=r(18);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){(function(t){var n=r(5),o=r(69),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u}).call(this,r(33)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(70),o=r(71),i=r(72),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},function(t,e,r){var n=r(30),o=r(20);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){var n=r(11),o=r(86),i=r(87),a=r(88),c=r(89),u=r(90);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(103),o=r(10);t.exports=function t(e,r,i,a,c){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,c))}},function(t,e,r){var n=r(104),o=r(107),i=r(108);t.exports=function(t,e,r,a,c,u){var s=1&r,l=t.length,f=e.length;if(l!=f&&!(s&&f>l))return!1;var p=u.get(t),h=u.get(e);if(p&&h)return p==e&&h==t;var g=-1,v=!0,_=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++g<l;){var d=t[g],y=e[g];if(a)var E=s?a(y,d,g,e,t,u):a(d,y,g,t,e,u);if(void 0!==E){if(E)continue;v=!1;break}if(_){if(!o(e,(function(t,e){if(!i(_,e)&&(d===t||c(d,t,r,a,u)))return _.push(e)}))){v=!1;break}}else if(d!==y&&!c(d,y,r,a,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},function(t,e,r){var n=r(18);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},function(t,e,r){var n=r(44),o=r(15);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},function(t,e,r){var n=r(4),o=r(23),i=r(127),a=r(130);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,r){"use strict";var n=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function a(t,e,r){return t.concat(e).map((function(t){return i(t,r)}))}function c(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function u(t,e){try{return e in t}catch(t){return!1}}function s(t,e,r){var n={};return r.isMergeableObject(t)&&c(t).forEach((function(e){n[e]=i(t[e],r)})),c(e).forEach((function(o){(function(t,e){return u(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(u(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return l;var r=e.customMerge(t);return"function"==typeof r?r:l}(o,r)(t[o],e[o],r):n[o]=i(e[o],r))})),n}function l(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=i;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):s(t,e,r):i(e,r)}l.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return l(t,r,e)}),{})};var f=l;t.exports=f},function(t,e,r){!function(t,e){"use strict";function r(t){return"string"==typeof t||"number"==typeof t}var n=function(){function t(){this._cache={}}var e=t.prototype;return e.set=function(t,e){this._cache[t]=e},e.get=function(t){return this._cache[t]},e.remove=function(t){delete this._cache[t]},e.clear=function(){this._cache={}},e.isValidCacheKey=function(t){return r(t)},t}(),o=n,i=function(){return!0};function a(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(t,n){if(n)throw new Error('[re-reselect] "options" as second argument is not supported anymore. Please provide an option object as single argument.');var a="function"==typeof t?{keySelector:t}:Object.assign({},t),c=0,u=r.pop(),s=Array.isArray(r[0])?r[0]:[].concat(r);r.push((function(){return c++,u.apply(void 0,arguments)}));var l=a.cacheObject||new o,f=a.selectorCreator||e.createSelector,p=l.isValidCacheKey||i;a.keySelectorCreator&&(a.keySelector=a.keySelectorCreator({keySelector:a.keySelector,inputSelectors:s,resultFunc:u}));var h=function(){var t=a.keySelector.apply(a,arguments);if(p(t)){var e=l.get(t);return void 0===e&&(e=f.apply(void 0,r),l.set(t,e)),e.apply(void 0,arguments)}console.warn('[re-reselect] Invalid cache key "'+t+'" has been returned by keySelector function.')};return h.getMatchingSelector=function(){var t=a.keySelector.apply(a,arguments);return l.get(t)},h.removeMatchingSelector=function(){var t=a.keySelector.apply(a,arguments);l.remove(t)},h.clearCache=function(){l.clear()},h.resultFunc=u,h.dependencies=s,h.cache=l,h.recomputations=function(){return c},h.resetRecomputations=function(){return c=0},h.keySelector=a.keySelector,h}}function c(t){if(void 0===t)throw new Error('Missing the required property "cacheSize".');if(!Number.isInteger(t)||t<=0)throw new Error('The "cacheSize" property must be a positive integer value.')}var u=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;c(e),this._cache={},this._cacheOrdering=[],this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache[t]=e,this._cacheOrdering.push(t),this._cacheOrdering.length>this._cacheSize){var r=this._cacheOrdering[0];this.remove(r)}},e.get=function(t){return this._cache[t]},e.remove=function(t){var e=this._cacheOrdering.indexOf(t);e>-1&&this._cacheOrdering.splice(e,1),delete this._cache[t]},e.clear=function(){this._cache={},this._cacheOrdering=[]},e.isValidCacheKey=function(t){return r(t)},t}(),s=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;c(e),this._cache={},this._cacheOrdering=[],this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache[t]=e,this._registerCacheHit(t),this._cacheOrdering.length>this._cacheSize){var r=this._cacheOrdering[0];this.remove(r)}},e.get=function(t){return this._registerCacheHit(t),this._cache[t]},e.remove=function(t){this._deleteCacheHit(t),delete this._cache[t]},e.clear=function(){this._cache={},this._cacheOrdering=[]},e._registerCacheHit=function(t){this._deleteCacheHit(t),this._cacheOrdering.push(t)},e._deleteCacheHit=function(t){var e=this._cacheOrdering.indexOf(t);e>-1&&this._cacheOrdering.splice(e,1)},e.isValidCacheKey=function(t){return r(t)},t}(),l=function(){function t(){this._cache=new Map}var e=t.prototype;return e.set=function(t,e){this._cache.set(t,e)},e.get=function(t){return this._cache.get(t)},e.remove=function(t){this._cache.delete(t)},e.clear=function(){this._cache.clear()},t}(),f=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;c(e),this._cache=new Map,this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache.set(t,e),this._cache.size>this._cacheSize){var r=this._cache.keys().next().value;this.remove(r)}},e.get=function(t){return this._cache.get(t)},e.remove=function(t){this._cache.delete(t)},e.clear=function(){this._cache.clear()},t}(),p=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;c(e),this._cache=new Map,this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache.set(t,e),this._cache.size>this._cacheSize){var r=this._cache.keys().next().value;this.remove(r)}},e.get=function(t){var e=this._cache.get(t);return this._cache.has(t)&&(this.remove(t),this._cache.set(t,e)),e},e.remove=function(t){this._cache.delete(t)},e.clear=function(){this._cache.clear()},t}();t.FifoMapCache=f,t.FifoObjectCache=u,t.FlatMapCache=l,t.FlatObjectCache=n,t.LruMapCache=p,t.LruObjectCache=s,t.createCachedSelector=a,t.createStructuredCachedSelector=function(t){return e.createStructuredSelector(t,a)},t.default=a,Object.defineProperty(t,"__esModule",{value:!0})}(e,r(1))},function(t,e,r){t.exports=r(140)},function(t,e,r){var n=r(8),o=r(17),i=r(4),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(9),o=r(10);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,e,r){var n=r(8),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){t.exports=self.fetch||(self.fetch=r(29).default||r(29))},function(t,e,r){var n=r(55);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){var n=r(7),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,r){var n=r(30),o=r(57),i=r(18),a=r(31),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:c).test(a(t))}},function(t,e,r){var n,o=r(58),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},function(t,e,r){var n=r(5)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(61),o=r(62),i=r(78),a=r(4);t.exports=function(t,e){return function(r,c){var u=a(r)?n:o,s=e?e():{};return u(r,t,i(c,2),s)}}},function(t,e){t.exports=function(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(n,a,r(a),t)}return n}},function(t,e,r){var n=r(63);t.exports=function(t,e,r,o){return n(t,(function(t,n,i){e(o,t,r(t),i)})),o}},function(t,e,r){var n=r(64),o=r(77)(n);t.exports=o},function(t,e,r){var n=r(65),o=r(19);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e,r){var n=r(66)();t.exports=n},function(t,e){t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}},function(t,e,r){var n=r(68),o=r(17),i=r(4),a=r(32),c=r(34),u=r(35),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),f=!r&&!l&&a(t),p=!r&&!l&&!f&&u(t),h=r||l||f||p,g=h?n(t.length,String):[],v=g.length;for(var _ in t)!e&&!s.call(t,_)||h&&("length"==_||f&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||c(_,v))||g.push(_);return g}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(9),o=r(20),i=r(10),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(28),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c}).call(this,r(33)(t))},function(t,e,r){var n=r(74),o=r(75),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(76)(Object.keys,Object);t.exports=n},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(36);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,c=Object(r);(e?a--:++a<i)&&!1!==o(c[a],a,c););return r}}},function(t,e,r){var n=r(79),o=r(125),i=r(136),a=r(4),c=r(137);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):c(t)}},function(t,e,r){var n=r(80),o=r(124),i=r(42);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},function(t,e,r){var n=r(37),o=r(39);t.exports=function(t,e,r,i){var a=r.length,c=a,u=!i;if(null==t)return!c;for(t=Object(t);a--;){var s=r[a];if(u&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<c;){var l=(s=r[a])[0],f=t[l],p=s[1];if(u&&s[2]){if(void 0===f&&!(l in t))return!1}else{var h=new n;if(i)var g=i(f,p,l,t,e,h);if(!(void 0===g?o(p,f,3,i,h):g))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(12),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(12);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(12);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(12);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(11);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(11),o=r(21),i=r(22);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(92),o=r(11),i=r(21);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e,r){var n=r(93),o=r(94),i=r(95),a=r(96),c=r(97);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},function(t,e,r){var n=r(13);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(13),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(13),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(13);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(14);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(14);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(14);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(14);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(37),o=r(40),i=r(109),a=r(113),c=r(119),u=r(4),s=r(32),l=r(35),f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,h,g,v){var _=u(t),d=u(e),y=_?"[object Array]":c(t),E=d?"[object Array]":c(e),O=(y="[object Arguments]"==y?f:y)==f,m=(E="[object Arguments]"==E?f:E)==f,b=y==E;if(b&&s(t)){if(!s(e))return!1;_=!0,O=!1}if(b&&!O)return v||(v=new n),_||l(t)?o(t,e,r,h,g,v):i(t,e,y,r,h,g,v);if(!(1&r)){var I=O&&p.call(t,"__wrapped__"),A=m&&p.call(e,"__wrapped__");if(I||A){var L=I?t.value():t,T=A?e.value():e;return v||(v=new n),g(L,T,r,h,v)}}return!!b&&(v||(v=new n),a(t,e,r,h,g,v))}},function(t,e,r){var n=r(22),o=r(105),i=r(106);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(8),o=r(110),i=r(38),a=r(40),c=r(111),u=r(112),s=n?n.prototype:void 0,l=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=c;case"[object Set]":var g=1&n;if(h||(h=u),t.size!=e.size&&!g)return!1;var v=p.get(t);if(v)return v==e;n|=2,p.set(t,e);var _=a(h(t),h(e),n,s,f,p);return p.delete(t),_;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},function(t,e,r){var n=r(5).Uint8Array;t.exports=n},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},function(t,e,r){var n=r(114),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,c){var u=1&r,s=n(t),l=s.length;if(l!=n(e).length&&!u)return!1;for(var f=l;f--;){var p=s[f];if(!(u?p in e:o.call(e,p)))return!1}var h=c.get(t),g=c.get(e);if(h&&g)return h==e&&g==t;var v=!0;c.set(t,e),c.set(e,t);for(var _=u;++f<l;){var d=t[p=s[f]],y=e[p];if(i)var E=u?i(y,d,p,e,t,c):i(d,y,p,t,e,c);if(!(void 0===E?d===y||a(d,y,r,i,c):E)){v=!1;break}_||(_="constructor"==p)}if(v&&!_){var O=t.constructor,m=e.constructor;O==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof O&&O instanceof O&&"function"==typeof m&&m instanceof m||(v=!1)}return c.delete(t),c.delete(e),v}},function(t,e,r){var n=r(115),o=r(116),i=r(19);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(27),o=r(4);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},function(t,e,r){var n=r(117),o=r(118),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(120),o=r(21),i=r(121),a=r(122),c=r(123),u=r(9),s=r(31),l=s(n),f=s(o),p=s(i),h=s(a),g=s(c),v=u;(n&&"[object DataView]"!=v(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||c&&"[object WeakMap]"!=v(new c))&&(v=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case g:return"[object WeakMap]"}return e}),t.exports=v},function(t,e,r){var n=r(7)(r(5),"DataView");t.exports=n},function(t,e,r){var n=r(7)(r(5),"Promise");t.exports=n},function(t,e,r){var n=r(7)(r(5),"Set");t.exports=n},function(t,e,r){var n=r(7)(r(5),"WeakMap");t.exports=n},function(t,e,r){var n=r(41),o=r(19);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},function(t,e,r){var n=r(39),o=r(126),i=r(133),a=r(23),c=r(41),u=r(42),s=r(15);t.exports=function(t,e){return a(t)&&c(e)?u(s(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},function(t,e,r){var n=r(43);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},function(t,e,r){var n=r(128),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},function(t,e,r){var n=r(129);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},function(t,e,r){var n=r(22);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},function(t,e,r){var n=r(131);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(8),o=r(132),i=r(4),a=r(24),c=n?n.prototype:void 0,u=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){var n=r(134),o=r(135);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var n=r(44),o=r(17),i=r(4),a=r(34),c=r(20),u=r(15);t.exports=function(t,e,r){for(var s=-1,l=(e=n(e,t)).length,f=!1;++s<l;){var p=u(e[s]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&c(l)&&a(p,l)&&(i(t)||o(t))}},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(138),o=r(139),i=r(23),a=r(15);t.exports=function(t){return i(t)?n(a(t)):o(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,r){var n=r(43);t.exports=function(t){return function(e){return n(e,t)}}},function(t,e,r){"use strict";r.r(e),r.d(e,"hideViewerNavigationPlugin",(function(){return te}));var n,o,i=r(16),a=r.n(i),c=r(1),u=r(46),s=r.n(u),l=function(){function t(t){this.__jsonld=t,this.context=this.getProperty("context"),this.id=this.getProperty("id")}return t.prototype.getProperty=function(t){var e=null;return this.__jsonld&&((e=this.__jsonld[t])||(e=this.__jsonld["@"+t])),e},t}(),f=r(0),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=function(t){function e(e,r){var n=t.call(this,e)||this;return n.options=r,n}return p(e,t),e.prototype.getIIIFResourceType=function(){return F.normaliseType(this.getProperty("type"))},e.prototype.getLabel=function(){var t=this.getProperty("label");return t?z.parse(t,this.options.locale):new z([],this.options.locale)},e.prototype.getDefaultLabel=function(){return this.getLabel().getValue(this.options.locale)},e.prototype.getMetadata=function(){var t=this.getProperty("metadata"),e=[];if(!t)return e;for(var r=0;r<t.length;r++){var n=t[r],o=new N(this.options.locale);o.parse(n),e.push(o)}return e},e.prototype.getRendering=function(t){for(var e=this.getRenderings(),r=0;r<e.length;r++){var n=e[r];if(n.getFormat()===t)return n}return null},e.prototype.getRenderings=function(){var t,e=[];if(!(t=this.__jsonld?this.__jsonld.rendering:this.rendering))return e;Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];e.push(new X(n,this.options))}return e},e.prototype.getService=function(t){return F.getService(this,t)},e.prototype.getServices=function(){return F.getServices(this)},e.prototype.getThumbnail=function(){var t=this.getProperty("thumbnail");return Array.isArray(t)&&(t=t[0]),t?new ct(t,this.options):null},e.prototype.isAnnotation=function(){return this.getIIIFResourceType()===f.IIIFResourceType.ANNOTATION},e.prototype.isCanvas=function(){return this.getIIIFResourceType()===f.IIIFResourceType.CANVAS},e.prototype.isCollection=function(){return this.getIIIFResourceType()===f.IIIFResourceType.COLLECTION},e.prototype.isManifest=function(){return this.getIIIFResourceType()===f.IIIFResourceType.MANIFEST},e.prototype.isRange=function(){return this.getIIIFResourceType()===f.IIIFResourceType.RANGE},e.prototype.isSequence=function(){return this.getIIIFResourceType()===f.IIIFResourceType.SEQUENCE},e}(l),g=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=function(t){function e(e,r){return t.call(this,e,r)||this}return g(e,t),e.prototype.getFormat=function(){var t=this.getProperty("format");return t?t.toLowerCase():null},e.prototype.getResources=function(){var t=[];if(!this.__jsonld.resources)return t;for(var e=0;e<this.__jsonld.resources.length;e++){var r=this.__jsonld.resources[e],n=new E(r,this.options);t.push(n)}return t},e.prototype.getType=function(){var t=this.getProperty("type");return t?F.normaliseType(t):null},e.prototype.getWidth=function(){return this.getProperty("width")},e.prototype.getHeight=function(){return this.getProperty("height")},e.prototype.getMaxWidth=function(){return this.getProperty("maxWidth")},e.prototype.getMaxHeight=function(){return this.getProperty("maxHeight")?null:this.getMaxWidth()},e}(h),_=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(t){function e(e,r){var n=t.call(this,e,r)||this;n.index=-1,n.isLoaded=!1;var o={defaultLabel:"-",locale:"en-GB",resource:n,pessimisticAccessControl:!1};return n.options=Object.assign(o,r),n}return _(e,t),e.prototype.getAttribution=function(){var t=this.getProperty("attribution");return t?z.parse(t,this.options.locale):new z([],this.options.locale)},e.prototype.getDescription=function(){var t=this.getProperty("description");return t?z.parse(t,this.options.locale):new z([],this.options.locale)},e.prototype.getHomepage=function(){var t=this.getProperty("homepage");return t?"string"==typeof t?t:(Array.isArray(t)&&t.length&&(t=t[0]),t["@id"]||t.id):null},e.prototype.getIIIFResourceType=function(){return F.normaliseType(this.getProperty("type"))},e.prototype.getLogo=function(){var t=this.getProperty("logo");return t?"string"==typeof t?t:(Array.isArray(t)&&t.length&&(t=t[0]),t["@id"]||t.id):null},e.prototype.getLicense=function(){return F.getLocalisedValue(this.getProperty("license"),this.options.locale)},e.prototype.getNavDate=function(){return new Date(this.getProperty("navDate"))},e.prototype.getRelated=function(){return this.getProperty("related")},e.prototype.getSeeAlso=function(){return this.getProperty("seeAlso")},e.prototype.getTrackingLabel=function(){var t=this.getService(f.ServiceProfile.TRACKING_EXTENSIONS);return t?t.getProperty("trackingLabel"):""},e.prototype.getDefaultTree=function(){return this.defaultTree=new ut("root"),this.defaultTree.data=this,this.defaultTree},e.prototype.getRequiredStatement=function(){var t=null,e=this.getProperty("requiredStatement");if(e)(t=new N(this.options.locale)).parse(e);else{var r=this.getAttribution();r&&((t=new N(this.options.locale)).value=r)}return t},e.prototype.isCollection=function(){return this.getIIIFResourceType()===f.IIIFResourceType.COLLECTION},e.prototype.isManifest=function(){return this.getIIIFResourceType()===f.IIIFResourceType.MANIFEST},e.prototype.load=function(){var t=this;return new Promise((function(e){if(t.isLoaded)e(t);else{var r=t.options;r.navDate=t.getNavDate();var n=t.__jsonld.id;n||(n=t.__jsonld["@id"]),F.loadManifest(n).then((function(n){t.parentLabel=t.getLabel().getValue(r.locale);var o=tt.parse(n,r);(t=Object.assign(t,o)).index=r.index,e(t)}))}}))},e}(h),y=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),E=function(t){function e(e,r){return t.call(this,e,r)||this}return y(e,t),e.prototype.getBody=function(){var t=[],e=this.getProperty("body");if(e)if(Array.isArray(e))for(var r=0;r<e.length;r++){if((i=e[r]).items)for(var n=0;n<i.items.length;n++){var o=i.items[n];t.push(new m(o,this.options))}else t.push(new m(i,this.options))}else if(e.items)for(r=0;r<e.items.length;r++){var i=e.items[r];t.push(new m(i,this.options))}else t.push(new m(e,this.options));return t},e.prototype.getMotivation=function(){var t=this.getProperty("motivation");return t||null},e.prototype.getOn=function(){return this.getProperty("on")},e.prototype.getTarget=function(){return this.getProperty("target")},e.prototype.getResource=function(){return new v(this.getProperty("resource"),this.options)},e}(h),O=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),m=function(t){function e(e,r){return t.call(this,e,r)||this}return O(e,t),e.prototype.getFormat=function(){var t=this.getProperty("format");return t?F.getMediaType(t):null},e.prototype.getType=function(){return this.getProperty("type")?F.normaliseType(this.getProperty("type")):null},e.prototype.getWidth=function(){return this.getProperty("width")},e.prototype.getHeight=function(){return this.getProperty("height")},e}(h),b=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),I=function(t){function e(e,r,n){var o=t.call(this,r)||this;return o.label=e,o.options=n,o}return b(e,t),e.prototype.getIIIFResourceType=function(){return F.normaliseType(this.getProperty("type"))},e.prototype.getLabel=function(){return this.label},e.prototype.getResources=function(){var t=this;return this.getProperty("resources").map((function(e){return new E(e,t.options)}))},e.prototype.load=function(){var t=this;return new Promise((function(e,r){if(t.isLoaded)e(t);else{var n=t.__jsonld.id;n||(n=t.__jsonld["@id"]),F.loadManifest(n).then((function(r){t.__jsonld=r,t.context=t.getProperty("context"),t.id=t.getProperty("id"),t.isLoaded=!0,e(t)})).catch(r)}}))},e}(l),A=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),L=function(t){function e(e,r){return t.call(this,e,r)||this}return A(e,t),e.prototype.getItems=function(){return this.getProperty("items")},e}(h),T=r(2),P=r.n(T),S=r(6),w=r.n(S),j=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),C=function(t){function e(e,r){return t.call(this,e,r)||this}return j(e,t),e.prototype.getCanonicalImageUri=function(t){var e,r=null,n="default",o=t;if(this.externalResource&&this.externalResource.data&&this.externalResource.data["@id"])r=this.externalResource.data["@id"],o||(o=this.externalResource.data.width),this.externalResource.data["@context"]&&(this.externalResource.data["@context"].indexOf("/1.0/context.json")>-1||this.externalResource.data["@context"].indexOf("/1.1/context.json")>-1||this.externalResource.data["@context"].indexOf("/1/context.json")>-1)&&(n="native");else{var i=this.getImages();if(i&&i.length){var a=i[0].getResource(),c=a.getServices();if(o||(o=a.getWidth()),c.length){var u=c[0];r=u.id,n=F.getImageQuality(u.getProfile())}else if(o===a.getWidth())return a.id}if(!r){var s=this.getProperty("thumbnail");if(s){if("string"==typeof s)return s;if(s["@id"])return s["@id"];if(s.length)return s[0].id}}}return e=o+",",r&&r.endsWith("/")&&(r=r.substr(0,r.length-1)),[r,"full",e,0,n+".jpg"].join("/")},e.prototype.getMaxDimensions=function(){var t,e=null;return this.externalResource&&this.externalResource.data&&this.externalResource.data.profile&&(t=this.externalResource.data.profile,Array.isArray(t)&&(t=t.filter((function(t){return t.maxWidth}))[0])&&(e=new nt(t.maxWidth,t.maxHeight?t.maxHeight:t.maxWidth))),e},e.prototype.getContent=function(){var t=[],e=this.__jsonld.items||this.__jsonld.content;if(!e)return t;var r=null;if(e.length&&(r=new L(e[0],this.options)),!r)return t;for(var n=r.getItems(),o=0;o<n.length;o++){var i=n[o],a=new E(i,this.options);t.push(a)}return t},e.prototype.getDuration=function(){return this.getProperty("duration")},e.prototype.getImages=function(){var t=[];if(!this.__jsonld.images)return t;for(var e=0;e<this.__jsonld.images.length;e++){var r=this.__jsonld.images[e],n=new E(r,this.options);t.push(n)}return t},e.prototype.getIndex=function(){return this.getProperty("index")},e.prototype.getOtherContent=function(){var t=this,e=Array.isArray(this.getProperty("otherContent"))?this.getProperty("otherContent"):[this.getProperty("otherContent")],r=e.filter((function(t){return t&&(e=t["@type"],r="sc:AnnotationList","string"==typeof e&&"string"==typeof r&&e.toLowerCase()==e.toLowerCase());var e,r})).map((function(e,r){return new I(e.label||"Annotation list "+r,e,t.options)})).map((function(t){return t.load()}));return Promise.all(r)},e.prototype.getWidth=function(){return this.getProperty("width")},e.prototype.getHeight=function(){return this.getProperty("height")},e.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},Object.defineProperty(e.prototype,"imageResources",{get:function(){var t=this,r=w()([this.getImages().map((function(t){return t.getResource()})),this.getContent().map((function(t){return t.getBody()}))]);return P()(r.map((function(r){switch(r.getProperty("type").toLowerCase()){case f.ExternalResourceType.CHOICE:case f.ExternalResourceType.OA_CHOICE:return new e({images:P()([r.getProperty("default"),r.getProperty("item")]).map((function(t){return{resource:t}}))},t.options).getImages().map((function(t){return t.getResource()}));default:return r}})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resourceAnnotations",{get:function(){return w()([this.getImages(),this.getContent()])},enumerable:!0,configurable:!0}),e.prototype.resourceAnnotation=function(t){return this.resourceAnnotations.find((function(e){return e.getResource().id===t||P()(new Array(e.getBody())).some((function(e){return e.id===t}))}))},e.prototype.onFragment=function(t){var e=this.resourceAnnotation(t);if(e){var r=e.getProperty("on"),n=e.getProperty("target"),o=(r||n).match(/xywh=(.*)$/);if(o)return o[1].split(",").map((function(t){return parseInt(t,10)}))}},Object.defineProperty(e.prototype,"iiifImageResources",{get:function(){return this.imageResources.filter((function(t){return t&&t.getServices()[0]&&t.getServices()[0].id}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageServiceIds",{get:function(){return this.iiifImageResources.map((function(t){return t.getServices()[0].id}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aspectRatio",{get:function(){return this.getWidth()/this.getHeight()},enumerable:!0,configurable:!0}),e}(v),M=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),R=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.items=[],n._collections=null,n._manifests=null,e.__collection=n,n}return M(e,t),e.prototype.getCollections=function(){return this._collections?this._collections:this._collections=this.items.filter((function(t){return t.isCollection()}))},e.prototype.getManifests=function(){return this._manifests?this._manifests:this._manifests=this.items.filter((function(t){return t.isManifest()}))},e.prototype.getCollectionByIndex=function(t){for(var e,r=this.getCollections(),n=0;n<r.length;n++){var o=r[n];o.index===t&&(e=o)}if(e)return e.options.index=t,e.load();throw new Error("Collection index not found")},e.prototype.getManifestByIndex=function(t){for(var e,r=this.getManifests(),n=0;n<r.length;n++){var o=r[n];o.index===t&&(e=o)}if(e)return e.options.index=t,e.load();throw new Error("Manifest index not found")},e.prototype.getTotalCollections=function(){return this.getCollections().length},e.prototype.getTotalManifests=function(){return this.getManifests().length},e.prototype.getTotalItems=function(){return this.items.length},e.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):f.ViewingDirection.LEFT_TO_RIGHT},e.prototype.getBehavior=function(){var t=this.getProperty("behavior");return Array.isArray(t)&&(t=t[0]),t||null},e.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},e.prototype.getDefaultTree=function(){return t.prototype.getDefaultTree.call(this),this.defaultTree.data.type=F.normaliseType(ot.COLLECTION),this._parseManifests(this),this._parseCollections(this),F.generateTreeNodeIds(this.defaultTree),this.defaultTree},e.prototype._parseManifests=function(t){if(t.getManifests()&&t.getManifests().length)for(var e=0;e<t.getManifests().length;e++){var r=t.getManifests()[e],n=r.getDefaultTree();n.label=r.parentLabel||r.getLabel().getValue(this.options.locale)||"manifest "+(e+1),n.navDate=r.getNavDate(),n.data.id=r.id,n.data.type=F.normaliseType(ot.MANIFEST),t.defaultTree.addNode(n)}},e.prototype._parseCollections=function(t){if(t.getCollections()&&t.getCollections().length)for(var e=0;e<t.getCollections().length;e++){var r=t.getCollections()[e],n=r.getDefaultTree();n.label=r.parentLabel||r.getLabel().getValue(this.options.locale)||"collection "+(e+1),n.navDate=r.getNavDate(),n.data.id=r.id,n.data.type=F.normaliseType(ot.COLLECTION),t.defaultTree.addNode(n)}},e}(d),x=function(){function t(t,e){this.start=t,this.end=e}return t.prototype.getLength=function(){return this.end-this.start},t}(),N=function(){function t(t){this.defaultLocale=t}return t.prototype.parse=function(t){this.resource=t,this.label=z.parse(this.resource.label,this.defaultLocale),this.value=z.parse(this.resource.value,this.defaultLocale)},t.prototype.getLabel=function(t){return null===this.label?null:(Array.isArray(t)&&!t.length&&(t=void 0),this.label.getValue(t||this.defaultLocale))},t.prototype.setLabel=function(t){null===this.label&&(this.label=new z([])),this.label.setValue(t,this.defaultLocale)},t.prototype.getValue=function(t,e){return void 0===e&&(e="<br/>"),null===this.value?null:(Array.isArray(t)&&!t.length&&(t=void 0),this.value.getValue(t||this.defaultLocale,e))},t.prototype.getValues=function(t){return null===this.value?[]:(Array.isArray(t)&&!t.length&&(t=void 0),this.value.getValues(t||this.defaultLocale))},t.prototype.setValue=function(t){null===this.value&&(this.value=new z([])),this.value.setValue(t,this.defaultLocale)},t}(),V=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),D=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}V(e,t),e.getValue=function(t,e){return t.getValue(e,"<br/>")},e.getValues=function(t,e){return t.getValues(e)}}(Array),r(3)),U=(r(53),function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))}),G=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},F=function(){function t(){}return t.getMediaType=function(t){return(t=(t=t.toLowerCase()).split(";")[0]).trim()},t.getImageQuality=function(t){return t===f.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1||t===f.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2||t===f.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1||t===f.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2||t===f.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1||t===f.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2||t===f.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1||t===f.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2||t===f.ServiceProfile.IMAGE_1_LEVEL_1||t===f.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1||t===f.ServiceProfile.IMAGE_1_LEVEL_2||t===f.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2?"native":"default"},t.getInexactLocale=function(t){return-1!==t.indexOf("-")?t.substr(0,t.indexOf("-")):t},t.getLocalisedValue=function(t,e){if(!Array.isArray(t))return t;for(var r=0;r<t.length;r++){var n=t[r];if(e===n["@language"])return n["@value"]}var o=e.substr(0,e.indexOf("-"));for(r=0;r<t.length;r++){var i=t[r];if(i["@language"]===o)return i["@value"]}return null},t.generateTreeNodeIds=function(e,r){var n;void 0===r&&(r=0),n=e.parentNode?e.parentNode.id+"-"+r:"0",e.id=n;for(var o=0;o<e.nodes.length;o++){var i=e.nodes[o];t.generateTreeNodeIds(i,o)}},t.normaliseType=function(t){return-1!==(t=(t||"").toLowerCase()).indexOf(":")?t.split(":")[1]:t},t.normaliseUrl=function(t){return-1!==(t=t.substr(t.indexOf("://"))).indexOf("#")&&(t=t.split("#")[0]),t},t.normalisedUrlsMatch=function(e,r){return t.normaliseUrl(e)===t.normaliseUrl(r)},t.isImageProfile=function(e){return!!(t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},t.isLevel0ImageProfile=function(e){return!!(t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_LEVEL_0)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0))},t.isLevel1ImageProfile=function(e){return!!(t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_LEVEL_1)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1))},t.isLevel2ImageProfile=function(e){return!!(t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_LEVEL_2)||t.normalisedUrlsMatch(e,f.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},t.parseManifest=function(t,e){return tt.parse(t,e)},t.checkStatus=function(t){if(t.ok)return t;var e=new Error(t.statusText);return e.response=t,Promise.reject(e)},t.loadManifest=function(e){return new Promise((function(r,n){fetch(e).then(t.checkStatus).then((function(t){return t.json()})).then((function(t){r(t)})).catch((function(t){n()}))}))},t.loadExternalResourcesAuth1=function(e,r,n,o,i,a,c,u){return new Promise((function(s,l){var f=e.map((function(e){return t.loadExternalResourceAuth1(e,r,n,o,i,a,c,u)}));Promise.all(f).then((function(){s(e)})).catch((function(t){l(t)}))}))},t.loadExternalResourceAuth1=function(e,r,n,o,i,a,c,u){return U(this,void 0,void 0,(function(){var s;return G(this,(function(l){switch(l.label){case 0:return[4,o(e)];case 1:return(s=l.sent())?[4,e.getData(s)]:[3,6];case 2:return l.sent(),e.status!==D.OK?[3,3]:[2,e];case 3:return[4,t.doAuthChain(e,r,n,i,a,c,u)];case 4:l.sent(),l.label=5;case 5:if(e.status===D.OK||e.status===D.MOVED_TEMPORARILY)return[2,e];throw t.createAuthorizationFailedError();case 6:return[4,e.getData()];case 7:return l.sent(),e.status!==D.MOVED_TEMPORARILY&&e.status!==D.UNAUTHORIZED?[3,9]:[4,t.doAuthChain(e,r,n,i,a,c,u)];case 8:l.sent(),l.label=9;case 9:if(e.status===D.OK||e.status===D.MOVED_TEMPORARILY)return[2,e];throw t.createAuthorizationFailedError()}}))}))},t.doAuthChain=function(e,r,n,o,i,a,c){return U(this,void 0,void 0,(function(){var u,s,l,f,p,h,g,v;return G(this,(function(_){switch(_.label){case 0:return e.isAccessControlled()?((u=e.externalService)&&(u.options=e.options),(s=e.kioskService)&&(s.options=e.options),(l=e.clickThroughService)&&(l.options=e.options),(f=e.loginService)&&(f.options=e.options),e.isResponseHandled||e.status!==D.MOVED_TEMPORARILY?[3,2]:[4,a(e)]):[2,e];case 1:return _.sent(),[2,e];case 2:return p=null,h=null,(p=u)?(h=p,[4,t.attemptResourceWithToken(e,n,p)]):[3,4];case 3:return _.sent(),[2,e];case 4:return(p=s)?(h=p,(g=r(p))?[4,o(g)]:[3,7]):[3,7];case 5:return _.sent(),[4,t.attemptResourceWithToken(e,n,p)];case 6:return _.sent(),[2,e];case 7:return(p=l)?(h=p,[4,i(e,p)]):[3,11];case 8:return(v=_.sent())?[4,o(v)]:[3,11];case 9:return _.sent(),[4,t.attemptResourceWithToken(e,n,p)];case 10:return _.sent(),[2,e];case 11:return(p=f)?(h=p,[4,i(e,p)]):[3,15];case 12:return(v=_.sent())?[4,o(v)]:[3,15];case 13:return _.sent(),[4,t.attemptResourceWithToken(e,n,p)];case 14:return _.sent(),[2,e];case 15:return h&&c(e,h),[2]}}))}))},t.attemptResourceWithToken=function(t,e,r){return U(this,void 0,void 0,(function(){var n,o;return G(this,(function(i){switch(i.label){case 0:return(n=r.getService(f.ServiceProfile.AUTH_1_TOKEN))?[4,e(t,n)]:[3,3];case 1:return(o=i.sent())&&o.accessToken?[4,t.getData(o)]:[3,3];case 2:return i.sent(),[2,t];case 3:return[2]}}))}))},t.loadExternalResourcesAuth09=function(e,r,n,o,i,a,c,u,s,l){return new Promise((function(f,p){var h=e.map((function(e){return t.loadExternalResourceAuth09(e,r,n,o,i,a,c,u,s,l)}));Promise.all(h).then((function(){f(e)})).catch((function(t){p(t)}))}))},t.loadExternalResourceAuth09=function(e,r,n,o,i,a,c,u,s,l){return new Promise((function(f,p){l&&l.pessimisticAccessControl?e.getData().then((function(){e.isAccessControlled()?e.clickThroughService?(f(n(e)),f(o(e))):i(e).then((function(){a(e,!0).then((function(r){e.getData(r).then((function(){f(s(e))})).catch((function(e){p(t.createInternalServerError(e))}))})).catch((function(e){p(t.createInternalServerError(e))}))})).catch((function(e){p(t.createInternalServerError(e))})):f(e)})).catch((function(e){p(t.createInternalServerError(e))})):u(e,r).then((function(l){l?e.getData(l).then((function(){e.status===D.OK?f(s(e)):t.authorize(e,r,n,o,i,a,c,u).then((function(){f(s(e))})).catch((function(e){p(t.createAuthorizationFailedError())}))})).catch((function(e){p(t.createAuthorizationFailedError())})):t.authorize(e,r,n,o,i,a,c,u).then((function(){f(s(e))})).catch((function(e){p(t.createAuthorizationFailedError())}))})).catch((function(e){p(t.createAuthorizationFailedError())}))}))},t.createError=function(t,e){var r=new Error;return r.message=e,r.name=String(t),r},t.createAuthorizationFailedError=function(){return t.createError(Y.AUTHORIZATION_FAILED,"Authorization failed")},t.createRestrictedError=function(){return t.createError(Y.RESTRICTED,"Restricted")},t.createInternalServerError=function(e){return t.createError(Y.INTERNAL_SERVER_ERROR,e)},t.authorize=function(e,r,n,o,i,a,c,u){return new Promise((function(s,l){e.getData().then((function(){e.isAccessControlled()?u(e,r).then((function(u){u?e.getData(u).then((function(){e.status===D.OK?s(e):t.showAuthInteraction(e,r,n,o,i,a,c,s,l)})).catch((function(e){l(t.createInternalServerError(e))})):a(e,!1).then((function(u){u?c(e,u,r).then((function(){e.getData(u).then((function(){e.status===D.OK?s(e):t.showAuthInteraction(e,r,n,o,i,a,c,s,l)})).catch((function(e){l(t.createInternalServerError(e))}))})).catch((function(e){l(t.createInternalServerError(e))})):t.showAuthInteraction(e,r,n,o,i,a,c,s,l)}))})).catch((function(e){l(t.createInternalServerError(e))})):s(e)}))}))},t.showAuthInteraction=function(e,r,n,o,i,a,c,u,s){e.status!==D.MOVED_TEMPORARILY||e.isResponseHandled?e.clickThroughService&&!e.isResponseHandled?n(e).then((function(){a(e,!0).then((function(n){c(e,n,r).then((function(){e.getData(n).then((function(){u(e)})).catch((function(e){s(t.createInternalServerError(e))}))})).catch((function(e){s(t.createInternalServerError(e))}))})).catch((function(e){s(t.createInternalServerError(e))}))})):i(e).then((function(){a(e,!0).then((function(n){c(e,n,r).then((function(){e.getData(n).then((function(){u(e)})).catch((function(e){s(t.createInternalServerError(e))}))})).catch((function(e){s(t.createInternalServerError(e))}))})).catch((function(e){s(t.createInternalServerError(e))}))})):u(e)},t.getService=function(t,e){for(var r=this.getServices(t),n=0;n<r.length;n++){var o=r[n];if(o.getProfile()===e)return o}return null},t.getResourceById=function(e,r){return t.traverseAndFind(e.__jsonld,"@id",r)},t.traverseAndFind=function(e,r,n){if(e.hasOwnProperty(r)&&e[r]===n)return e;for(var o=0;o<Object.keys(e).length;o++)if("object"==typeof e[Object.keys(e)[o]]){var i=t.traverseAndFind(e[Object.keys(e)[o]],r,n);if(null!=i)return i}},t.getServices=function(t){var e,r=[];if(!(e=t.__jsonld?t.__jsonld.service:t.service))return r;Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var o=e[n];if("string"==typeof o){var i=this.getResourceById(t.options.resource,o);i&&r.push(new rt(i.__jsonld||i,t.options))}else r.push(new rt(o,t.options))}return r},t.getTemporalComponent=function(t){var e=/t=([^&]+)/g.exec(t),r=null;return e&&e[1]&&(r=e[1].split(",")),r},t}(),H=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),k=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n},B=function(){function t(t,e,r){void 0===r&&(r="none"),Array.isArray(t)&&1===t.length?this._value=t[0]:this._value=t,"none"!==e&&"@none"!==e||(e=void 0),this._locale=e,this._defaultLocale=r}return t.parseV2Value=function(e,r){return"string"==typeof e?new t(e,void 0,r):e["@value"]?new t(e["@value"],e["@language"],r):null},Object.defineProperty(t.prototype,"value",{get:function(){return Array.isArray(this._value)?this._value.join("<br/>"):this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return void 0===this._locale?this._defaultLocale:this._locale},enumerable:!0,configurable:!0}),t.prototype.addValue=function(t){Array.isArray(this._value)||(this._value=[this._value]),Array.isArray(t)?this._value=this._value.concat(t):this._value.push(t)},t}(),z=function(t){function e(r,n){void 0===r&&(r=[]);var o=t.apply(this,r)||this;return o.__proto__=e.prototype,o._defaultLocale=n,o}return H(e,t),e.parse=function(t,r){if(!t)return new e([],r);if(Array.isArray(t)){var n=(o=t.map((function(t){return B.parseV2Value(t,r)})).filter((function(t){return null!==t}))).reduce((function(t,e){var r=e._locale;return r||(r="none"),t[r]?t[r].addValue(e._value):t[r]=e,t}),{});return new e(Object.values(n),r)}return"string"==typeof t?new e([new B(t,void 0,r)],r):t["@language"]?new e(null!==(o=B.parseV2Value(t))?[o]:[],r):new e(Object.keys(t).map((function(e){var n=t[e];if(!Array.isArray(n))throw new Error("A IIIF v3 localized property value must have an array as the value for a given language.");return new B(n,e,r)})),r);var o},e.prototype.getSuitableLocale=function(t){for(var e=k(this).map((function(t){return t._locale})).filter((function(t){return void 0!==t})),r=function(t){var r=e.find((function(e){return e===t}));if(r)return{value:r}},n=0,o=t;n<o.length;n++){var i=r(o[n]);if("object"==typeof i)return i.value}for(var a=function(t){var r=e.find((function(e){return F.getInexactLocale(e)===F.getInexactLocale(t)}));if(r)return{value:r}},c=0,u=t;c<u.length;c++){var s=a(u[c]);if("object"==typeof s)return s.value}},e.prototype.setValue=function(t,e){var r=void 0;if(e){var n=this.getSuitableLocale([e]);n&&(r=this.find((function(t){return t._locale===n})))}else r=this.find((function(t){return void 0===t._locale}));r?r._value=t:this.push(new B(t,e,this._defaultLocale))},e.prototype.getValue=function(t,e){var r=this.getValues(t);return 0===r.length?null:e?r.join(e):r[0]},e.prototype.getValues=function(t){if(!this.length)return[];var e;if(e=t?Array.isArray(t)?t:[t]:[],1===this.length&&void 0===this[0]._locale){var r=this[0]._value;return Array.isArray(r)?r:[r]}var n=this.getSuitableLocale(e);if(n){r=this.find((function(t){return t._locale===n}))._value;return Array.isArray(r)?r:[r]}if(!this.find((function(t){return void 0===t._locale}))){r=this[0]._value;return Array.isArray(r)?r:[r]}var o=this.find((function(t){return void 0===t._locale}));return o?Array.isArray(o._value)?o._value:[o._value]:[]},e}(Array),W=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),q=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(n.index=0,n._allRanges=null,n.items=[],n._topRanges=[],n.__jsonld.structures&&n.__jsonld.structures.length)for(var o=n._getTopRanges(),i=0;i<o.length;i++){var a=o[i];n._parseRanges(a,String(i))}return n}return W(e,t),e.prototype.getPosterCanvas=function(){var t=this.getProperty("posterCanvas");return t&&(t=new C(t,this.options)),t},e.prototype.getAccompanyingCanvas=function(){var t=this.getProperty("accompanyingCanvas");return t&&(t=new C(t,this.options)),t},e.prototype.getBehavior=function(){var t=this.getProperty("behavior");return Array.isArray(t)&&(t=t[0]),t||null},e.prototype.getDefaultTree=function(){if(t.prototype.getDefaultTree.call(this),this.defaultTree.data.type=F.normaliseType(ot.MANIFEST),!this.isLoaded)return this.defaultTree;var e=this.getTopRanges();return e.length&&e[0].getTree(this.defaultTree),F.generateTreeNodeIds(this.defaultTree),this.defaultTree},e.prototype._getTopRanges=function(){var t=[];if(this.__jsonld.structures&&this.__jsonld.structures.length){for(var e=0;e<this.__jsonld.structures.length;e++){var r=this.__jsonld.structures[e];r.viewingHint===f.ViewingHint.TOP&&t.push(r)}if(!t.length){var n={};n.ranges=this.__jsonld.structures,t.push(n)}}return t},e.prototype.getTopRanges=function(){return this._topRanges},e.prototype._getRangeById=function(t){if(this.__jsonld.structures&&this.__jsonld.structures.length)for(var e=0;e<this.__jsonld.structures.length;e++){var r=this.__jsonld.structures[e];if(r["@id"]===t||r.id===t)return r}return null},e.prototype._parseRanges=function(t,e,r){var n,o=null;if("string"==typeof t&&(o=t,t=this._getRangeById(o)),t){(n=new $(t,this.options)).parentRange=r,n.path=e,r?r.items.push(n):this._topRanges.push(n);var i=t.items||t.members;if(i)for(var a=0;a<i.length;a++){var c=i[a];if(c["@type"]&&"sc:range"===c["@type"].toLowerCase()||c.type&&"range"===c.type.toLowerCase())this._parseRanges(c,e+"/"+a,n);else if(c["@type"]&&"sc:canvas"===c["@type"].toLowerCase()||c.type&&"canvas"===c.type.toLowerCase()){n.canvases||(n.canvases=[]);var u=c.id||c["@id"];n.canvases.push(u)}}else if(t.ranges)for(a=0;a<t.ranges.length;a++)this._parseRanges(t.ranges[a],e+"/"+a,n)}else console.warn("Range:",o,"does not exist")},e.prototype.getAllRanges=function(){if(null!=this._allRanges)return this._allRanges;this._allRanges=[];for(var t=this.getTopRanges(),e=function(e){var n=t[e];n.id&&r._allRanges.push(n);var o=function(t,e){t.add(e);var r=e.getRanges();return r.length?r.reduce(o,t):t},i=Array.from(n.getRanges().reduce(o,new Set));r._allRanges=r._allRanges.concat(i)},r=this,n=0;n<t.length;n++)e(n);return this._allRanges},e.prototype.getRangeById=function(t){for(var e=this.getAllRanges(),r=0;r<e.length;r++){var n=e[r];if(n.id===t)return n}return null},e.prototype.getRangeByPath=function(t){for(var e=this.getAllRanges(),r=0;r<e.length;r++){var n=e[r];if(n.path===t)return n}return null},e.prototype.getSequences=function(){if(this.items.length)return this.items;var t=this.__jsonld.mediaSequences||this.__jsonld.sequences;if(t)for(var e=0;e<t.length;e++){var r=t[e],n=new J(r,this.options);this.items.push(n)}else if(this.__jsonld.items){n=new J(this.__jsonld.items,this.options);this.items.push(n)}return this.items},e.prototype.getSequenceByIndex=function(t){return this.getSequences()[t]},e.prototype.getTotalSequences=function(){return this.getSequences().length},e.prototype.getManifestType=function(){var t=this.getService(f.ServiceProfile.UI_EXTENSIONS);return t?t.getProperty("manifestType"):o.EMPTY},e.prototype.isMultiSequence=function(){return this.getTotalSequences()>1},e.prototype.isPagingEnabled=function(){var t=this.getViewingHint();if(t)return t===f.ViewingHint.PAGED;var e=this.getBehavior();return!!e&&e===f.Behavior.PAGED},e.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},e.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},e}(d);!function(t){t.EMPTY="",t.MANUSCRIPT="manuscript",t.MONOGRAPH="monograph"}(o||(o={}));var Y,K=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),$=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n._ranges=null,n.canvases=null,n.items=[],n}return K(e,t),e.prototype.getCanvasIds=function(){return this.__jsonld.canvases?this.__jsonld.canvases:this.canvases?this.canvases:[]},e.prototype.getDuration=function(){if(this.canvases&&this.canvases.length){for(var t=[],e=[],r=0,n=this.canvases;r<n.length;r++){if(h=n[r]){var o=h.match(/(.*)#t=([0-9.]+),?([0-9.]+)?/)||[void 0,h],i=o[1],a=o[2],c=o[3];i&&(t.push(parseFloat(a)),e.push(parseFloat(c)))}}if(t.length&&e.length)return new x(Math.min.apply(Math,t),Math.max.apply(Math,e))}else{t=[],e=[];for(var u=0,s=v=this.getRanges();u<s.length;u++){(_=s[u].getDuration())&&(t.push(_.start),e.push(_.end))}if(t.length&&e.length)return new x(Math.min.apply(Math,t),Math.max.apply(Math,e))}var l,f;if(this.canvases&&this.canvases.length)for(var p=0;p<this.canvases.length;p++){var h=this.canvases[p],g=F.getTemporalComponent(h);g&&g.length>1&&(0===p&&(l=Number(g[0])),p===this.canvases.length-1&&(f=Number(g[1])))}else{var v=this.getRanges();for(p=0;p<v.length;p++){var _;(_=v[p].getDuration())&&(0===p&&(l=_.start),p===v.length-1&&(f=_.end))}}if(void 0!==l&&void 0!==f)return new x(l,f)},e.prototype.getRanges=function(){return this._ranges?this._ranges:this._ranges=this.items.filter((function(t){return t.isRange()}))},e.prototype.getBehavior=function(){var t=this.getProperty("behavior");return Array.isArray(t)&&(t=t[0]),t||null},e.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},e.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},e.prototype.getTree=function(t){t.data=this,this.treeNode=t;var e=this.getRanges();if(e&&e.length)for(var r=0;r<e.length;r++){var n=e[r],o=new ut;t.addNode(o),this._parseTreeNode(o,n)}return F.generateTreeNodeIds(t),t},e.prototype.spansTime=function(t){var e=this.getDuration();return!!(e&&t>=e.start&&t<=e.end)},e.prototype._parseTreeNode=function(t,e){t.label=e.getLabel().getValue(this.options.locale),t.data=e,t.data.type=F.normaliseType(ot.RANGE),e.treeNode=t;var r=e.getRanges();if(r&&r.length)for(var n=0;n<r.length;n++){var o=r[n];if(o.getBehavior()!==f.Behavior.NO_NAV){var i=new ut;t.addNode(i),this._parseTreeNode(i,o)}}},e}(h),Q=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),X=function(t){function e(e,r){return t.call(this,e,r)||this}return Q(e,t),e.prototype.getFormat=function(){return this.getProperty("format")},e}(h),Z=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),J=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.items=[],n._thumbnails=null,n}return Z(e,t),e.prototype.getCanvases=function(){if(this.items.length)return this.items;var t=this.__jsonld.canvases||this.__jsonld.elements;if(t)for(var e=0;e<t.length;e++){var r=t[e];(n=new C(r,this.options)).index=e,this.items.push(n)}else if(this.__jsonld)for(e=0;e<this.__jsonld.length;e++){var n;r=this.__jsonld[e];(n=new C(r,this.options)).index=e,this.items.push(n)}return this.items},e.prototype.getCanvasById=function(t){for(var e=0;e<this.getTotalCanvases();e++){var r=this.getCanvasByIndex(e),n=F.normaliseUrl(r.id);if(F.normaliseUrl(t)===n)return r}return null},e.prototype.getCanvasByIndex=function(t){return this.getCanvases()[t]},e.prototype.getCanvasIndexById=function(t){for(var e=0;e<this.getTotalCanvases();e++){if(this.getCanvasByIndex(e).id===t)return e}return null},e.prototype.getCanvasIndexByLabel=function(t,e){t=t.trim(),isNaN(t)||(t=parseInt(t,10).toString(),e&&(t+="r"));for(var r,n,o,i=/(\d*)\D+(\d*)/,a=0;a<this.getTotalCanvases();a++){var c=this.getCanvasByIndex(a);if(c.getLabel().getValue(this.options.locale)===t)return a;if((r=i.exec(t))&&(n=r[1],(o=r[2])&&new RegExp("^"+n+"\\D+"+o+"$").test(c.getLabel().toString())))return a}return-1},e.prototype.getLastCanvasLabel=function(t){for(var e=this.getTotalCanvases()-1;e>=0;e--){var r=this.getCanvasByIndex(e).getLabel().getValue(this.options.locale);if(t){if(/^[a-zA-Z0-9]*$/.test(r))return r}else if(r)return r}return this.options.defaultLabel},e.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},e.prototype.getNextPageIndex=function(t,e){var r;if(e){var n=this.getPagedIndices(t),o=this.getViewingDirection();r=o&&o===f.ViewingDirection.RIGHT_TO_LEFT?n[0]+1:n[n.length-1]+1}else r=t+1;return r>this.getLastPageIndex()?-1:r},e.prototype.getPagedIndices=function(t,e){var r=[];if(e){r=this.isFirstCanvas(t)||this.isLastCanvas(t)?[t]:t%2?[t,t+1]:[t-1,t];var n=this.getViewingDirection();n&&n===f.ViewingDirection.RIGHT_TO_LEFT&&(r=r.reverse())}else r.push(t);return r},e.prototype.getPrevPageIndex=function(t,e){var r;if(e){var n=this.getPagedIndices(t),o=this.getViewingDirection();r=o&&o===f.ViewingDirection.RIGHT_TO_LEFT?n[n.length-1]-1:n[0]-1}else r=t-1;return r},e.prototype.getStartCanvasIndex=function(){var t=this.getStartCanvas();if(t)for(var e=0;e<this.getTotalCanvases();e++){if(this.getCanvasByIndex(e).id===t)return e}return 0},e.prototype.getThumbs=function(t,e){for(var r=[],n=this.getTotalCanvases(),o=0;o<n;o++){var i=this.getCanvasByIndex(o),a=new it(t,i);r.push(a)}return r},e.prototype.getThumbnails=function(){if(null!=this._thumbnails)return this._thumbnails;this._thumbnails=[];for(var t=this.getCanvases(),e=0;e<t.length;e++){var r=t[e].getThumbnail();r&&this._thumbnails.push(r)}return this._thumbnails},e.prototype.getStartCanvas=function(){return this.getProperty("startCanvas")},e.prototype.getTotalCanvases=function(){return this.getCanvases().length},e.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):this.options.resource.getViewingDirection?this.options.resource.getViewingDirection():null},e.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},e.prototype.isCanvasIndexOutOfRange=function(t){return t>this.getTotalCanvases()-1},e.prototype.isFirstCanvas=function(t){return 0===t},e.prototype.isLastCanvas=function(t){return t===this.getTotalCanvases()-1},e.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},e.prototype.isPagingEnabled=function(){var t=this.getViewingHint();return!!t&&t===f.ViewingHint.PAGED},e.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2==0},e}(h),tt=function(){function t(){}return t.parse=function(t,e){return"string"==typeof t&&(t=JSON.parse(t)),this.parseJson(t,e)},t.parseJson=function(t,e){var r;if(e&&e.navDate&&!isNaN(e.navDate.getTime())&&(t.navDate=e.navDate.toString()),t["@type"])switch(t["@type"]){case"sc:Collection":r=this.parseCollection(t,e);break;case"sc:Manifest":r=this.parseManifest(t,e);break;default:return null}else switch(t.type){case"Collection":r=this.parseCollection(t,e);break;case"Manifest":r=this.parseManifest(t,e);break;default:return null}return r.isLoaded=!0,r},t.parseCollection=function(t,e){var r=new R(t,e);return e?(r.index=e.index||0,e.resource&&(r.parentCollection=e.resource.parentCollection)):r.index=0,this.parseCollections(r,e),this.parseManifests(r,e),this.parseItems(r,e),r},t.parseCollections=function(t,e){var r;if(t.__jsonld.collections?r=t.__jsonld.collections:t.__jsonld.items&&(r=t.__jsonld.items.filter((function(t){return"collection"===t.type.toLowerCase()}))),r)for(var n=0;n<r.length;n++){e&&(e.index=n);var o=this.parseCollection(r[n],e);o.index=n,o.parentCollection=t,t.items.push(o)}},t.parseManifest=function(t,e){return new q(t,e)},t.parseManifests=function(t,e){var r;if(t.__jsonld.manifests?r=t.__jsonld.manifests:t.__jsonld.items&&(r=t.__jsonld.items.filter((function(t){return"manifest"===t.type.toLowerCase()}))),r)for(var n=0;n<r.length;n++){var o=this.parseManifest(r[n],e);o.index=n,o.parentCollection=t,t.items.push(o)}},t.parseItem=function(t,e){if(t["@type"]){if("sc:manifest"===t["@type"].toLowerCase())return this.parseManifest(t,e);if("sc:collection"===t["@type"].toLowerCase())return this.parseCollection(t,e)}else if(t.type){if("manifest"===t.type.toLowerCase())return this.parseManifest(t,e);if("collection"===t.type.toLowerCase())return this.parseCollection(t,e)}return null},t.parseItems=function(t,e){var r=t.__jsonld.members||t.__jsonld.items;if(r)for(var n=function(n){e&&(e.index=n);var i=o.parseItem(r[n],e);return i?t.items.filter((function(t){return t.id===i.id}))[0]?"continue":(i.index=n,i.parentCollection=t,void t.items.push(i)):{value:void 0}},o=this,i=0;i<r.length;i++){var a=n(i);if("object"==typeof a)return a.value}},t}(),et=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),rt=function(t){function e(e,r){return t.call(this,e,r)||this}return et(e,t),e.prototype.getProfile=function(){var t=this.getProperty("profile");return t||(t=this.getProperty("dcterms:conformsTo")),Array.isArray(t)?t[0]:t},e.prototype.getConfirmLabel=function(){return F.getLocalisedValue(this.getProperty("confirmLabel"),this.options.locale)},e.prototype.getDescription=function(){return F.getLocalisedValue(this.getProperty("description"),this.options.locale)},e.prototype.getFailureDescription=function(){return F.getLocalisedValue(this.getProperty("failureDescription"),this.options.locale)},e.prototype.getFailureHeader=function(){return F.getLocalisedValue(this.getProperty("failureHeader"),this.options.locale)},e.prototype.getHeader=function(){return F.getLocalisedValue(this.getProperty("header"),this.options.locale)},e.prototype.getServiceLabel=function(){return F.getLocalisedValue(this.getProperty("label"),this.options.locale)},e.prototype.getInfoUri=function(){var t=this.id;return t.endsWith("/")||(t+="/"),t+="info.json"},e}(h),nt=function(t,e){this.width=t,this.height=e};!function(t){t[t.AUTHORIZATION_FAILED=1]="AUTHORIZATION_FAILED",t[t.FORBIDDEN=2]="FORBIDDEN",t[t.INTERNAL_SERVER_ERROR=3]="INTERNAL_SERVER_ERROR",t[t.RESTRICTED=4]="RESTRICTED"}(Y||(Y={}));var ot,it=function(t,e){this.data=e,this.index=e.index,this.width=t;var r=e.getHeight()/e.getWidth();this.height=r?Math.floor(this.width*r):t,this.uri=e.getCanonicalImageUri(t),this.label=e.getLabel().getValue()},at=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ct=function(t){function e(e,r){return t.call(this,e,r)||this}return at(e,t),e}(v),ut=function(){function t(t,e){this.label=t,this.data=e||{},this.nodes=[]}return t.prototype.addNode=function(t){this.nodes.push(t),t.parentNode=this},t.prototype.isCollection=function(){return this.data.type===F.normaliseType(ot.COLLECTION)},t.prototype.isManifest=function(){return this.data.type===F.normaliseType(ot.MANIFEST)},t.prototype.isRange=function(){return this.data.type===F.normaliseType(ot.RANGE)},t}();!function(t){t.COLLECTION="collection",t.MANIFEST="manifest",t.RANGE="range"}(ot||(ot={}));function st(t){return void 0===t?[]:Array.isArray(t)?t:[t]}var lt,ft=r(25),pt=r.n(ft),ht=new Uint8Array(16);function gt(){if(!lt&&!(lt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lt(ht)}var vt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var _t=function(t){return"string"==typeof t&&vt.test(t)},dt=[],yt=0;yt<256;++yt)dt.push((yt+256).toString(16).substr(1));var Et=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(dt[t[e+0]]+dt[t[e+1]]+dt[t[e+2]]+dt[t[e+3]]+"-"+dt[t[e+4]]+dt[t[e+5]]+"-"+dt[t[e+6]]+dt[t[e+7]]+"-"+dt[t[e+8]]+dt[t[e+9]]+"-"+dt[t[e+10]]+dt[t[e+11]]+dt[t[e+12]]+dt[t[e+13]]+dt[t[e+14]]+dt[t[e+15]]).toLowerCase();if(!_t(r))throw TypeError("Stringified UUID is invalid");return r};var Ot=function(t,e,r){var n=(t=t||{}).random||(t.rng||gt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return Et(n)};function mt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bt={};mt({},"@media (min-width:600px)",{margin:0}),mt({},"@media (min-width:600px)",{margin:0}),mt({},"@media (min-width:600px)",{margin:0}),mt({},"@media (min-width:600px)",{margin:0}),Ot();function It(t){return bt.slice?t[bt.slice]:t}function At(t){return It(t).windows||{}}function Lt(t,e){var r=e.windowId;return At(t)[r]}Object(c.createSelector)([function(t){return It(t).viewers},function(t,e){return e.windowId}],(function(t,e){return t[e]}));function Tt(t){return It(t).workspace}Object(c.createSelector)([Tt],(function(t){return t.windowIds||[]}));function Pt(t,e){var r=e.manifestId,n=e.windowId,o=function(t){return It(t).manifests||{}}(t);return o&&o[r||n&&(Lt(t,{windowId:n})||{}).manifestId]}function St(t){return function(t){if(Array.isArray(t))return wt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return wt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jt(Object(r),!0).forEach((function(e){Mt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Mt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rt(t){return It(t).companionWindows||{}}var xt=Object(c.createSelector)([Rt,function(t,e){return e.companionWindowId}],(function(t,e){return e&&t[e]})),Nt=(Object(c.createSelector)([Lt,Rt],(function(t,e){return t&&e[t.thumbnailNavigationId]&&e[t.thumbnailNavigationId].position})),Object(c.createSelector)([At,Rt],(function(t,e){return(Object.keys(t)||[]).reduce((function(r,n){return Ct(Ct({},r),{},Mt({},n,pt()(t[n].companionWindowIds,(function(t){return e[t]&&e[t].position}))))}),{})}))),Vt=Object(c.createSelector)([At,Rt],(function(t,e){return(Object.keys(t)||[]).reduce((function(r,n){return Ct(Ct({},r),{},Mt({},n,pt()(t[n].companionWindowIds.map((function(t){return e[t]})),(function(t){return t.position}))))}),{})})),Dt=Object(c.createSelector)([function(t,e){return e.windowId},Vt],(function(t,e){return e[t]||{}})),Ut=Object(c.createSelector)([function(t,e){return e.windowId},Nt],(function(t,e){return e[t]||{}})),Gt=(Object(c.createSelector)([Dt,function(t,e){return{position:e.position}}],(function(t,e){return t[e.position]||Gt})),Object(c.createSelector)([Dt,function(t,e){return{content:e.content}}],(function(t,e){var r,n=e.content;return(r=[]).concat.apply(r,St(Object.values(t))).filter((function(t){return t.content===n}))})),[]),Ft=(Object(c.createSelector)([Ut,function(t,e){return{position:e.position}}],(function(t,e){return t[e.position]||Gt})),Object(c.createSelector)([function(t,e){return e.position},Lt],(function(t,e){if(!e)return!1;var r=e.companionAreaOpen,n=e.sideBarOpen;return"left"!==t||!(!r||!n)})),Object(c.createSelector)([Dt],(function(t){var e,r=0,n=0;return(e=[]).concat.apply(e,St(Object.values(t))).forEach((function(t){t.position.match(/right/)&&(r+=235),t.position.match(/bottom/)&&(n+=201)})),{height:n,width:r}})),r(45)),Ht=r.n(Ft);function kt(t){return It(t||{}).config||{}}Object(c.createSelector)([kt],(function(t){var e=t.availableLanguages,r=t.language;return Object.keys(e).map((function(t){return{current:t===r,label:e[t],locale:t}}))})),Object(c.createSelector)([Tt,kt],(function(t,e){return void 0===t.showZoomControls?e.workspace.showZoomControls:t.showZoomControls})),Object(c.createSelector)([kt],(function(t){var e=t.theme,r=t.themes,n=t.selectedTheme;return Ht()(e,r[n]||{})})),Object(c.createSelector)([kt],(function(t){var e=t.themes;return Object.keys(e)})),Object(c.createSelector)([kt],(function(t){return t.id})),Object(c.createSelector)([kt],(function(t){return t.theme.direction||"ltr"})),Object(c.createSelector)([kt],(function(t){return t.requests||{}}));function Bt(t){return function(t){if(Array.isArray(t))return zt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return zt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Wt(t,e){if(t){var r=F.parseManifest(t,e?{locale:e}:void 0);return"function"!=typeof r.getSequences&&(r.getSequences=function(){return[]}),r}}var qt=Object(c.createSelector)([xt,kt],(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.locale||e.language})),Yt=(Object(c.createSelector)([Pt],(function(t){return t||{missing:!0}})),Object(c.createSelector)([Pt],(function(t){return t&&t.error})),s()(Pt,qt,(function(t,e){return t&&Wt(t.json,e)}))((function(t,e){var r=e.companionWindowId;return[e.manifestId,e.windowId,qt(t,{companionWindowId:r})].join(" - ")}))),Kt=Object(c.createSelector)(Yt,(function(t,e){return e.json}),qt,(function(t,e,r){return e&&Wt(e,r)||t})),$t=Object(c.createSelector)([Kt],(function(t){return t&&t.options&&t.options.locale&&t.options.locale.replace(/-.*$/,"")}));function Qt(t){return Object(c.createSelector)([Kt],(function(e){return e&&e.getProperty(t)}))}Object(c.createSelector)([Kt],(function(t){return t&&t.getLogo()})),Object(c.createSelector)([Qt("provider"),$t],(function(t,e){return t&&t[0].label&&z.parse(t[0].label,e).getValue()})),Object(c.createSelector)([Qt("homepage"),$t],(function(t,e){return t&&st(t).map((function(t){return{label:z.parse(t.label,e).getValue(),value:t.id||t["@id"]}}))})),Object(c.createSelector)([Kt],(function(t){return t&&t.getRenderings().map((function(t){return{label:t.getLabel().getValue(),value:t.id}}))})),Object(c.createSelector)([Qt("seeAlso"),$t],(function(t,e){return t&&st(t).map((function(t){return{format:t.format,label:z.parse(t.label,e).getValue(),value:t.id||t["@id"]}}))})),Object(c.createSelector)([Kt],(function(t){return t&&st(t.getRequiredStatement()).filter((function(t){return t.getValues().some((function(t){return t}))})).map((function(t){return{label:t.label&&t.label.getValue()||null,values:t.getValues()}}))})),Object(c.createSelector)([Qt("rights"),Qt("license"),$t],(function(t,e,r){var n=t||e;return st(z.parse(n,r).getValues())}));Object(c.createSelector)([Kt],(function(t){return t&&t.getLabel().getValue()})),Object(c.createSelector)([Kt],(function(t){return t&&t.getDescription().getValue()})),Object(c.createSelector)([Kt],(function(t){return t&&t.id}));Object(c.createSelector)([Kt],(function(t){return t&&((e=t)&&e.getMetadata().map((function(t){return{label:t.getLabel(),values:t.getValues()}})));var e}));function Xt(t){var e=[];return Array.isArray(t)?e.push.apply(e,Bt(t.filter((function(t){return"object"==typeof t&&t["@language"]})).map((function(t){return t["@language"]})))):t&&"object"==typeof t&&t["@language"]&&e.push(t["@language"]),e}Object(c.createSelector)([Kt],(function(t){return function(t){if(!t)return[];for(var e=t.getProperty("metadata")||[],r={},n=0;n<e.length;n+=1){var o=e[n];Xt(o.label).forEach((function(t){r[t]=!0})),Xt(o.value).forEach((function(t){r[t]=!0}))}return Object.keys(r)}(t)}));var Zt=Object(c.createSelector)([Kt],(function(t){if(!t)return null;var e=t.getService("http://iiif.io/api/search/0/search")||t.getService("http://iiif.io/api/search/1/search");return e||null}));Object(c.createSelector)([Zt],(function(t){var e=t&&(t.getService("http://iiif.io/api/search/0/autocomplete")||t.getService("http://iiif.io/api/search/1/autocomplete"));return e&&e}));function Jt(t,e){return(Jt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var te={target:"Window",mode:"add",component:function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,Jt(e,r);var o=n.prototype;return o.viewingHint=function(){var t=this.props.manifest;return t&&t.getSequences()&&t.getSequences()[0]&&t.getSequences()[0].getProperty("viewingHint")?t.getSequences()[0].getProperty("viewingHint"):[""]},o.render=function(){return a.a.createElement(a.a.Fragment,null)},o.componentDidUpdate=function(){"individuals"==this.viewingHint()&&(window.document.querySelectorAll(".mirador-osd-info").forEach((function(t){return t.remove()})),window.document.querySelectorAll(".mirador-osd-navigation").forEach((function(t){return t.remove()})),window.document.querySelectorAll('[class*="Connect(WithPlugins(ZoomControls))-divider-"]').forEach((function(t){return t.remove()})))},n}(i.Component),mapStateToProps:function(t,e){var r=e.windowId;return{manifestId:(Kt(t,{windowId:r})||{}).id,manifest:Kt(t,{windowId:r})}}};e.default=[te]}]).default}));
|